Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions sdk/constructive-cli/scripts/generate-sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ async function main() {
},
reactQuery: false,
verbose: true,
codegen: {
condition: false,
},
docs: {
agents: false,
mcp: false,
Expand Down
281 changes: 0 additions & 281 deletions sdk/constructive-cli/src/admin/orm/input-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1410,287 +1410,6 @@ export interface OrgInviteFilter {
or?: OrgInviteFilter[];
not?: OrgInviteFilter;
}
// ============ Table Condition Types ============
export interface OrgGetManagersRecordCondition {
userId?: string | null;
depth?: number | null;
}
export interface OrgGetSubordinatesRecordCondition {
userId?: string | null;
depth?: number | null;
}
export interface AppPermissionCondition {
id?: string | null;
name?: string | null;
bitnum?: number | null;
bitstr?: string | null;
description?: string | null;
}
export interface OrgPermissionCondition {
id?: string | null;
name?: string | null;
bitnum?: number | null;
bitstr?: string | null;
description?: string | null;
}
export interface AppLevelRequirementCondition {
id?: string | null;
name?: string | null;
level?: string | null;
description?: string | null;
requiredCount?: number | null;
priority?: number | null;
createdAt?: string | null;
updatedAt?: string | null;
}
export interface OrgMemberCondition {
id?: string | null;
isAdmin?: boolean | null;
actorId?: string | null;
entityId?: string | null;
}
export interface AppPermissionDefaultCondition {
id?: string | null;
permissions?: string | null;
}
export interface OrgPermissionDefaultCondition {
id?: string | null;
permissions?: string | null;
entityId?: string | null;
}
export interface AppAdminGrantCondition {
id?: string | null;
isGrant?: boolean | null;
actorId?: string | null;
grantorId?: string | null;
createdAt?: string | null;
updatedAt?: string | null;
}
export interface AppOwnerGrantCondition {
id?: string | null;
isGrant?: boolean | null;
actorId?: string | null;
grantorId?: string | null;
createdAt?: string | null;
updatedAt?: string | null;
}
export interface OrgAdminGrantCondition {
id?: string | null;
isGrant?: boolean | null;
actorId?: string | null;
entityId?: string | null;
grantorId?: string | null;
createdAt?: string | null;
updatedAt?: string | null;
}
export interface OrgOwnerGrantCondition {
id?: string | null;
isGrant?: boolean | null;
actorId?: string | null;
entityId?: string | null;
grantorId?: string | null;
createdAt?: string | null;
updatedAt?: string | null;
}
export interface AppLimitDefaultCondition {
id?: string | null;
name?: string | null;
max?: number | null;
}
export interface OrgLimitDefaultCondition {
id?: string | null;
name?: string | null;
max?: number | null;
}
export interface MembershipTypeCondition {
id?: number | null;
name?: string | null;
description?: string | null;
prefix?: string | null;
}
export interface OrgChartEdgeGrantCondition {
id?: string | null;
entityId?: string | null;
childId?: string | null;
parentId?: string | null;
grantorId?: string | null;
isGrant?: boolean | null;
positionTitle?: string | null;
positionLevel?: number | null;
createdAt?: string | null;
}
export interface AppLimitCondition {
id?: string | null;
name?: string | null;
actorId?: string | null;
num?: number | null;
max?: number | null;
}
export interface AppAchievementCondition {
id?: string | null;
actorId?: string | null;
name?: string | null;
count?: number | null;
createdAt?: string | null;
updatedAt?: string | null;
}
export interface AppStepCondition {
id?: string | null;
actorId?: string | null;
name?: string | null;
count?: number | null;
createdAt?: string | null;
updatedAt?: string | null;
}
export interface ClaimedInviteCondition {
id?: string | null;
data?: unknown | null;
senderId?: string | null;
receiverId?: string | null;
createdAt?: string | null;
updatedAt?: string | null;
}
export interface AppGrantCondition {
id?: string | null;
permissions?: string | null;
isGrant?: boolean | null;
actorId?: string | null;
grantorId?: string | null;
createdAt?: string | null;
updatedAt?: string | null;
}
export interface AppMembershipDefaultCondition {
id?: string | null;
createdAt?: string | null;
updatedAt?: string | null;
createdBy?: string | null;
updatedBy?: string | null;
isApproved?: boolean | null;
isVerified?: boolean | null;
}
export interface OrgLimitCondition {
id?: string | null;
name?: string | null;
actorId?: string | null;
num?: number | null;
max?: number | null;
entityId?: string | null;
}
export interface OrgClaimedInviteCondition {
id?: string | null;
data?: unknown | null;
senderId?: string | null;
receiverId?: string | null;
createdAt?: string | null;
updatedAt?: string | null;
entityId?: string | null;
}
export interface OrgGrantCondition {
id?: string | null;
permissions?: string | null;
isGrant?: boolean | null;
actorId?: string | null;
entityId?: string | null;
grantorId?: string | null;
createdAt?: string | null;
updatedAt?: string | null;
}
export interface OrgChartEdgeCondition {
id?: string | null;
createdAt?: string | null;
updatedAt?: string | null;
entityId?: string | null;
childId?: string | null;
parentId?: string | null;
positionTitle?: string | null;
positionLevel?: number | null;
}
export interface OrgMembershipDefaultCondition {
id?: string | null;
createdAt?: string | null;
updatedAt?: string | null;
createdBy?: string | null;
updatedBy?: string | null;
isApproved?: boolean | null;
entityId?: string | null;
deleteMemberCascadeGroups?: boolean | null;
createGroupsCascadeMembers?: boolean | null;
}
export interface InviteCondition {
id?: string | null;
email?: unknown | null;
senderId?: string | null;
inviteToken?: string | null;
inviteValid?: boolean | null;
inviteLimit?: number | null;
inviteCount?: number | null;
multiple?: boolean | null;
data?: unknown | null;
expiresAt?: string | null;
createdAt?: string | null;
updatedAt?: string | null;
}
export interface AppLevelCondition {
id?: string | null;
name?: string | null;
description?: string | null;
image?: unknown | null;
ownerId?: string | null;
createdAt?: string | null;
updatedAt?: string | null;
}
export interface AppMembershipCondition {
id?: string | null;
createdAt?: string | null;
updatedAt?: string | null;
createdBy?: string | null;
updatedBy?: string | null;
isApproved?: boolean | null;
isBanned?: boolean | null;
isDisabled?: boolean | null;
isVerified?: boolean | null;
isActive?: boolean | null;
isOwner?: boolean | null;
isAdmin?: boolean | null;
permissions?: string | null;
granted?: string | null;
actorId?: string | null;
profileId?: string | null;
}
export interface OrgMembershipCondition {
id?: string | null;
createdAt?: string | null;
updatedAt?: string | null;
createdBy?: string | null;
updatedBy?: string | null;
isApproved?: boolean | null;
isBanned?: boolean | null;
isDisabled?: boolean | null;
isActive?: boolean | null;
isOwner?: boolean | null;
isAdmin?: boolean | null;
permissions?: string | null;
granted?: string | null;
actorId?: string | null;
entityId?: string | null;
profileId?: string | null;
}
export interface OrgInviteCondition {
id?: string | null;
email?: unknown | null;
senderId?: string | null;
receiverId?: string | null;
inviteToken?: string | null;
inviteValid?: boolean | null;
inviteLimit?: number | null;
inviteCount?: number | null;
multiple?: boolean | null;
data?: unknown | null;
expiresAt?: string | null;
createdAt?: string | null;
updatedAt?: string | null;
entityId?: string | null;
}
// ============ OrderBy Types ============
export type OrgGetManagersRecordsOrderBy =
| 'PRIMARY_KEY_ASC'
Expand Down
13 changes: 4 additions & 9 deletions sdk/constructive-cli/src/admin/orm/models/appAchievement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import type {
AppAchievementWithRelations,
AppAchievementSelect,
AppAchievementFilter,
AppAchievementCondition,
AppAchievementOrderBy,
CreateAppAchievementInput,
UpdateAppAchievementInput,
Expand All @@ -38,7 +37,7 @@ import { connectionFieldsMap } from '../input-types';
export class AppAchievementModel {
constructor(private client: OrmClient) {}
findMany<S extends AppAchievementSelect>(
args: FindManyArgs<S, AppAchievementFilter, AppAchievementCondition, AppAchievementOrderBy> & {
args: FindManyArgs<S, AppAchievementFilter, AppAchievementOrderBy> & {
select: S;
} & StrictSelect<S, AppAchievementSelect>
): QueryBuilder<{
Expand All @@ -50,7 +49,6 @@ export class AppAchievementModel {
args.select,
{
where: args?.where,
condition: args?.condition,
orderBy: args?.orderBy as string[] | undefined,
first: args?.first,
last: args?.last,
Expand All @@ -60,8 +58,7 @@ export class AppAchievementModel {
},
'AppAchievementFilter',
'AppAchievementOrderBy',
connectionFieldsMap,
'AppAchievementCondition'
connectionFieldsMap
);
return new QueryBuilder({
client: this.client,
Expand All @@ -73,7 +70,7 @@ export class AppAchievementModel {
});
}
findFirst<S extends AppAchievementSelect>(
args: FindFirstArgs<S, AppAchievementFilter, AppAchievementCondition> & {
args: FindFirstArgs<S, AppAchievementFilter> & {
select: S;
} & StrictSelect<S, AppAchievementSelect>
): QueryBuilder<{
Expand All @@ -87,11 +84,9 @@ export class AppAchievementModel {
args.select,
{
where: args?.where,
condition: args?.condition,
},
'AppAchievementFilter',
connectionFieldsMap,
'AppAchievementCondition'
connectionFieldsMap
);
return new QueryBuilder({
client: this.client,
Expand Down
Loading