Skip to content
Merged
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
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<!-- @constructive-io/graphql-codegen - DO NOT EDIT -->

Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Five phases: (1) provision_table() for each table with all nodes[], fields[], policies[], grants, and table-level indexes/fts/unique_constraints in a single call, (2) provision_relation() for each relation, (3) provision_index() for top-level indexes, (4) provision_full_text_search() for top-level FTS, (5) provision_unique_constraint() for top-level unique constraints. Tables are identified by table_name with optional per-table schema_name. Relations use $type for relation_type with source_table/target_table. Returns the construction record ID on success, NULL on failure.
Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Five phases: (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints are deferred), (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints. Table-level indexes/fts/unique_constraints are deferred to phases 3-5 so they can reference columns created by relations in phase 2. Tables are identified by table_name with optional per-table schema_name. Relations use $type for relation_type with source_table/target_table. Returns the construction record ID on success, NULL on failure.

## Usage

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<!-- @constructive-io/graphql-codegen - DO NOT EDIT -->

Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Five phases: (1) provision_table() for each table with all nodes[], fields[], policies[], grants, and table-level indexes/fts/unique_constraints in a single call, (2) provision_relation() for each relation, (3) provision_index() for top-level indexes, (4) provision_full_text_search() for top-level FTS, (5) provision_unique_constraint() for top-level unique constraints. Tables are identified by table_name with optional per-table schema_name. Relations use $type for relation_type with source_table/target_table. Returns the construction record ID on success, NULL on failure.
Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Five phases: (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints are deferred), (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints. Table-level indexes/fts/unique_constraints are deferred to phases 3-5 so they can reference columns created by relations in phase 2. Tables are identified by table_name with optional per-table schema_name. Relations use $type for relation_type with source_table/target_table. Returns the construction record ID on success, NULL on failure.

## Usage

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<!-- @constructive-io/graphql-codegen - DO NOT EDIT -->

Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Five phases: (1) provision_table() for each table with all nodes[], fields[], policies[], grants, and table-level indexes/fts/unique_constraints in a single call, (2) provision_relation() for each relation, (3) provision_index() for top-level indexes, (4) provision_full_text_search() for top-level FTS, (5) provision_unique_constraint() for top-level unique constraints. Tables are identified by table_name with optional per-table schema_name. Relations use $type for relation_type with source_table/target_table. Returns the construction record ID on success, NULL on failure.
Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Five phases: (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints are deferred), (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints. Table-level indexes/fts/unique_constraints are deferred to phases 3-5 so they can reference columns created by relations in phase 2. Tables are identified by table_name with optional per-table schema_name. Relations use $type for relation_type with source_table/target_table. Returns the construction record ID on success, NULL on failure.

## Usage

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ async function handleList(argv: Partial<Record<string, unknown>>, _prompter: Inq
updatedAt: true,
};
const findManyArgs = parseFindManyArgs<
FindManyArgs<AppAchievementSelect, AppAchievementFilter, never, AppAchievementOrderBy> & {
FindManyArgs<AppAchievementSelect, AppAchievementFilter, AppAchievementOrderBy> & {
select: AppAchievementSelect;
}
>(argv, defaultSelect);
Expand All @@ -108,7 +108,7 @@ async function handleFindFirst(argv: Partial<Record<string, unknown>>, _prompter
updatedAt: true,
};
const findFirstArgs = parseFindFirstArgs<
FindFirstArgs<AppAchievementSelect, AppAchievementFilter, never> & {
FindFirstArgs<AppAchievementSelect, AppAchievementFilter> & {
select: AppAchievementSelect;
}
>(argv, defaultSelect);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ async function handleList(argv: Partial<Record<string, unknown>>, _prompter: Inq
updatedAt: true,
};
const findManyArgs = parseFindManyArgs<
FindManyArgs<AppAdminGrantSelect, AppAdminGrantFilter, never, AppAdminGrantOrderBy> & {
FindManyArgs<AppAdminGrantSelect, AppAdminGrantFilter, AppAdminGrantOrderBy> & {
select: AppAdminGrantSelect;
}
>(argv, defaultSelect);
Expand All @@ -108,7 +108,7 @@ async function handleFindFirst(argv: Partial<Record<string, unknown>>, _prompter
updatedAt: true,
};
const findFirstArgs = parseFindFirstArgs<
FindFirstArgs<AppAdminGrantSelect, AppAdminGrantFilter, never> & {
FindFirstArgs<AppAdminGrantSelect, AppAdminGrantFilter> & {
select: AppAdminGrantSelect;
}
>(argv, defaultSelect);
Expand Down
4 changes: 2 additions & 2 deletions sdk/constructive-cli/src/admin/cli/commands/app-grant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ async function handleList(argv: Partial<Record<string, unknown>>, _prompter: Inq
updatedAt: true,
};
const findManyArgs = parseFindManyArgs<
FindManyArgs<AppGrantSelect, AppGrantFilter, never, AppGrantOrderBy> & {
FindManyArgs<AppGrantSelect, AppGrantFilter, AppGrantOrderBy> & {
select: AppGrantSelect;
}
>(argv, defaultSelect);
Expand All @@ -111,7 +111,7 @@ async function handleFindFirst(argv: Partial<Record<string, unknown>>, _prompter
updatedAt: true,
};
const findFirstArgs = parseFindFirstArgs<
FindFirstArgs<AppGrantSelect, AppGrantFilter, never> & {
FindFirstArgs<AppGrantSelect, AppGrantFilter> & {
select: AppGrantSelect;
}
>(argv, defaultSelect);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ async function handleList(argv: Partial<Record<string, unknown>>, _prompter: Inq
FindManyArgs<
AppLevelRequirementSelect,
AppLevelRequirementFilter,
never,
AppLevelRequirementOrderBy
> & {
select: AppLevelRequirementSelect;
Expand Down Expand Up @@ -119,7 +118,7 @@ async function handleFindFirst(argv: Partial<Record<string, unknown>>, _prompter
updatedAt: true,
};
const findFirstArgs = parseFindFirstArgs<
FindFirstArgs<AppLevelRequirementSelect, AppLevelRequirementFilter, never> & {
FindFirstArgs<AppLevelRequirementSelect, AppLevelRequirementFilter> & {
select: AppLevelRequirementSelect;
}
>(argv, defaultSelect);
Expand Down
4 changes: 2 additions & 2 deletions sdk/constructive-cli/src/admin/cli/commands/app-level.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ async function handleList(argv: Partial<Record<string, unknown>>, _prompter: Inq
updatedAt: true,
};
const findManyArgs = parseFindManyArgs<
FindManyArgs<AppLevelSelect, AppLevelFilter, never, AppLevelOrderBy> & {
FindManyArgs<AppLevelSelect, AppLevelFilter, AppLevelOrderBy> & {
select: AppLevelSelect;
}
>(argv, defaultSelect);
Expand All @@ -111,7 +111,7 @@ async function handleFindFirst(argv: Partial<Record<string, unknown>>, _prompter
updatedAt: true,
};
const findFirstArgs = parseFindFirstArgs<
FindFirstArgs<AppLevelSelect, AppLevelFilter, never> & {
FindFirstArgs<AppLevelSelect, AppLevelFilter> & {
select: AppLevelSelect;
}
>(argv, defaultSelect);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ async function handleList(argv: Partial<Record<string, unknown>>, _prompter: Inq
max: true,
};
const findManyArgs = parseFindManyArgs<
FindManyArgs<AppLimitDefaultSelect, AppLimitDefaultFilter, never, AppLimitDefaultOrderBy> & {
FindManyArgs<AppLimitDefaultSelect, AppLimitDefaultFilter, AppLimitDefaultOrderBy> & {
select: AppLimitDefaultSelect;
}
>(argv, defaultSelect);
Expand All @@ -99,7 +99,7 @@ async function handleFindFirst(argv: Partial<Record<string, unknown>>, _prompter
max: true,
};
const findFirstArgs = parseFindFirstArgs<
FindFirstArgs<AppLimitDefaultSelect, AppLimitDefaultFilter, never> & {
FindFirstArgs<AppLimitDefaultSelect, AppLimitDefaultFilter> & {
select: AppLimitDefaultSelect;
}
>(argv, defaultSelect);
Expand Down
4 changes: 2 additions & 2 deletions sdk/constructive-cli/src/admin/cli/commands/app-limit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ async function handleList(argv: Partial<Record<string, unknown>>, _prompter: Inq
max: true,
};
const findManyArgs = parseFindManyArgs<
FindManyArgs<AppLimitSelect, AppLimitFilter, never, AppLimitOrderBy> & {
FindManyArgs<AppLimitSelect, AppLimitFilter, AppLimitOrderBy> & {
select: AppLimitSelect;
}
>(argv, defaultSelect);
Expand All @@ -105,7 +105,7 @@ async function handleFindFirst(argv: Partial<Record<string, unknown>>, _prompter
max: true,
};
const findFirstArgs = parseFindFirstArgs<
FindFirstArgs<AppLimitSelect, AppLimitFilter, never> & {
FindFirstArgs<AppLimitSelect, AppLimitFilter> & {
select: AppLimitSelect;
}
>(argv, defaultSelect);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ async function handleList(argv: Partial<Record<string, unknown>>, _prompter: Inq
FindManyArgs<
AppMembershipDefaultSelect,
AppMembershipDefaultFilter,
never,
AppMembershipDefaultOrderBy
> & {
select: AppMembershipDefaultSelect;
Expand Down Expand Up @@ -116,7 +115,7 @@ async function handleFindFirst(argv: Partial<Record<string, unknown>>, _prompter
isVerified: true,
};
const findFirstArgs = parseFindFirstArgs<
FindFirstArgs<AppMembershipDefaultSelect, AppMembershipDefaultFilter, never> & {
FindFirstArgs<AppMembershipDefaultSelect, AppMembershipDefaultFilter> & {
select: AppMembershipDefaultSelect;
}
>(argv, defaultSelect);
Expand Down
4 changes: 2 additions & 2 deletions sdk/constructive-cli/src/admin/cli/commands/app-membership.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ async function handleList(argv: Partial<Record<string, unknown>>, _prompter: Inq
profileId: true,
};
const findManyArgs = parseFindManyArgs<
FindManyArgs<AppMembershipSelect, AppMembershipFilter, never, AppMembershipOrderBy> & {
FindManyArgs<AppMembershipSelect, AppMembershipFilter, AppMembershipOrderBy> & {
select: AppMembershipSelect;
}
>(argv, defaultSelect);
Expand Down Expand Up @@ -138,7 +138,7 @@ async function handleFindFirst(argv: Partial<Record<string, unknown>>, _prompter
profileId: true,
};
const findFirstArgs = parseFindFirstArgs<
FindFirstArgs<AppMembershipSelect, AppMembershipFilter, never> & {
FindFirstArgs<AppMembershipSelect, AppMembershipFilter> & {
select: AppMembershipSelect;
}
>(argv, defaultSelect);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ async function handleList(argv: Partial<Record<string, unknown>>, _prompter: Inq
updatedAt: true,
};
const findManyArgs = parseFindManyArgs<
FindManyArgs<AppOwnerGrantSelect, AppOwnerGrantFilter, never, AppOwnerGrantOrderBy> & {
FindManyArgs<AppOwnerGrantSelect, AppOwnerGrantFilter, AppOwnerGrantOrderBy> & {
select: AppOwnerGrantSelect;
}
>(argv, defaultSelect);
Expand All @@ -108,7 +108,7 @@ async function handleFindFirst(argv: Partial<Record<string, unknown>>, _prompter
updatedAt: true,
};
const findFirstArgs = parseFindFirstArgs<
FindFirstArgs<AppOwnerGrantSelect, AppOwnerGrantFilter, never> & {
FindFirstArgs<AppOwnerGrantSelect, AppOwnerGrantFilter> & {
select: AppOwnerGrantSelect;
}
>(argv, defaultSelect);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ async function handleList(argv: Partial<Record<string, unknown>>, _prompter: Inq
FindManyArgs<
AppPermissionDefaultSelect,
AppPermissionDefaultFilter,
never,
AppPermissionDefaultOrderBy
> & {
select: AppPermissionDefaultSelect;
Expand All @@ -101,7 +100,7 @@ async function handleFindFirst(argv: Partial<Record<string, unknown>>, _prompter
permissions: true,
};
const findFirstArgs = parseFindFirstArgs<
FindFirstArgs<AppPermissionDefaultSelect, AppPermissionDefaultFilter, never> & {
FindFirstArgs<AppPermissionDefaultSelect, AppPermissionDefaultFilter> & {
select: AppPermissionDefaultSelect;
}
>(argv, defaultSelect);
Expand Down
4 changes: 2 additions & 2 deletions sdk/constructive-cli/src/admin/cli/commands/app-permission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ async function handleList(argv: Partial<Record<string, unknown>>, _prompter: Inq
description: true,
};
const findManyArgs = parseFindManyArgs<
FindManyArgs<AppPermissionSelect, AppPermissionFilter, never, AppPermissionOrderBy> & {
FindManyArgs<AppPermissionSelect, AppPermissionFilter, AppPermissionOrderBy> & {
select: AppPermissionSelect;
}
>(argv, defaultSelect);
Expand All @@ -105,7 +105,7 @@ async function handleFindFirst(argv: Partial<Record<string, unknown>>, _prompter
description: true,
};
const findFirstArgs = parseFindFirstArgs<
FindFirstArgs<AppPermissionSelect, AppPermissionFilter, never> & {
FindFirstArgs<AppPermissionSelect, AppPermissionFilter> & {
select: AppPermissionSelect;
}
>(argv, defaultSelect);
Expand Down
4 changes: 2 additions & 2 deletions sdk/constructive-cli/src/admin/cli/commands/app-step.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ async function handleList(argv: Partial<Record<string, unknown>>, _prompter: Inq
updatedAt: true,
};
const findManyArgs = parseFindManyArgs<
FindManyArgs<AppStepSelect, AppStepFilter, never, AppStepOrderBy> & {
FindManyArgs<AppStepSelect, AppStepFilter, AppStepOrderBy> & {
select: AppStepSelect;
}
>(argv, defaultSelect);
Expand All @@ -108,7 +108,7 @@ async function handleFindFirst(argv: Partial<Record<string, unknown>>, _prompter
updatedAt: true,
};
const findFirstArgs = parseFindFirstArgs<
FindFirstArgs<AppStepSelect, AppStepFilter, never> & {
FindFirstArgs<AppStepSelect, AppStepFilter> & {
select: AppStepSelect;
}
>(argv, defaultSelect);
Expand Down
4 changes: 2 additions & 2 deletions sdk/constructive-cli/src/admin/cli/commands/claimed-invite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ async function handleList(argv: Partial<Record<string, unknown>>, _prompter: Inq
updatedAt: true,
};
const findManyArgs = parseFindManyArgs<
FindManyArgs<ClaimedInviteSelect, ClaimedInviteFilter, never, ClaimedInviteOrderBy> & {
FindManyArgs<ClaimedInviteSelect, ClaimedInviteFilter, ClaimedInviteOrderBy> & {
select: ClaimedInviteSelect;
}
>(argv, defaultSelect);
Expand All @@ -108,7 +108,7 @@ async function handleFindFirst(argv: Partial<Record<string, unknown>>, _prompter
updatedAt: true,
};
const findFirstArgs = parseFindFirstArgs<
FindFirstArgs<ClaimedInviteSelect, ClaimedInviteFilter, never> & {
FindFirstArgs<ClaimedInviteSelect, ClaimedInviteFilter> & {
select: ClaimedInviteSelect;
}
>(argv, defaultSelect);
Expand Down
4 changes: 2 additions & 2 deletions sdk/constructive-cli/src/admin/cli/commands/invite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ async function handleList(argv: Partial<Record<string, unknown>>, _prompter: Inq
updatedAt: true,
};
const findManyArgs = parseFindManyArgs<
FindManyArgs<InviteSelect, InviteFilter, never, InviteOrderBy> & {
FindManyArgs<InviteSelect, InviteFilter, InviteOrderBy> & {
select: InviteSelect;
}
>(argv, defaultSelect);
Expand Down Expand Up @@ -126,7 +126,7 @@ async function handleFindFirst(argv: Partial<Record<string, unknown>>, _prompter
updatedAt: true,
};
const findFirstArgs = parseFindFirstArgs<
FindFirstArgs<InviteSelect, InviteFilter, never> & {
FindFirstArgs<InviteSelect, InviteFilter> & {
select: InviteSelect;
}
>(argv, defaultSelect);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ async function handleList(argv: Partial<Record<string, unknown>>, _prompter: Inq
prefix: true,
};
const findManyArgs = parseFindManyArgs<
FindManyArgs<MembershipTypeSelect, MembershipTypeFilter, never, MembershipTypeOrderBy> & {
FindManyArgs<MembershipTypeSelect, MembershipTypeFilter, MembershipTypeOrderBy> & {
select: MembershipTypeSelect;
}
>(argv, defaultSelect);
Expand All @@ -102,7 +102,7 @@ async function handleFindFirst(argv: Partial<Record<string, unknown>>, _prompter
prefix: true,
};
const findFirstArgs = parseFindFirstArgs<
FindFirstArgs<MembershipTypeSelect, MembershipTypeFilter, never> & {
FindFirstArgs<MembershipTypeSelect, MembershipTypeFilter> & {
select: MembershipTypeSelect;
}
>(argv, defaultSelect);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ async function handleList(argv: Partial<Record<string, unknown>>, _prompter: Inq
updatedAt: true,
};
const findManyArgs = parseFindManyArgs<
FindManyArgs<OrgAdminGrantSelect, OrgAdminGrantFilter, never, OrgAdminGrantOrderBy> & {
FindManyArgs<OrgAdminGrantSelect, OrgAdminGrantFilter, OrgAdminGrantOrderBy> & {
select: OrgAdminGrantSelect;
}
>(argv, defaultSelect);
Expand All @@ -111,7 +111,7 @@ async function handleFindFirst(argv: Partial<Record<string, unknown>>, _prompter
updatedAt: true,
};
const findFirstArgs = parseFindFirstArgs<
FindFirstArgs<OrgAdminGrantSelect, OrgAdminGrantFilter, never> & {
FindFirstArgs<OrgAdminGrantSelect, OrgAdminGrantFilter> & {
select: OrgAdminGrantSelect;
}
>(argv, defaultSelect);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,7 @@ async function handleList(argv: Partial<Record<string, unknown>>, _prompter: Inq
createdAt: true,
};
const findManyArgs = parseFindManyArgs<
FindManyArgs<
OrgChartEdgeGrantSelect,
OrgChartEdgeGrantFilter,
never,
OrgChartEdgeGrantOrderBy
> & {
FindManyArgs<OrgChartEdgeGrantSelect, OrgChartEdgeGrantFilter, OrgChartEdgeGrantOrderBy> & {
select: OrgChartEdgeGrantSelect;
}
>(argv, defaultSelect);
Expand Down Expand Up @@ -122,7 +117,7 @@ async function handleFindFirst(argv: Partial<Record<string, unknown>>, _prompter
createdAt: true,
};
const findFirstArgs = parseFindFirstArgs<
FindFirstArgs<OrgChartEdgeGrantSelect, OrgChartEdgeGrantFilter, never> & {
FindFirstArgs<OrgChartEdgeGrantSelect, OrgChartEdgeGrantFilter> & {
select: OrgChartEdgeGrantSelect;
}
>(argv, defaultSelect);
Expand Down
4 changes: 2 additions & 2 deletions sdk/constructive-cli/src/admin/cli/commands/org-chart-edge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ async function handleList(argv: Partial<Record<string, unknown>>, _prompter: Inq
positionLevel: true,
};
const findManyArgs = parseFindManyArgs<
FindManyArgs<OrgChartEdgeSelect, OrgChartEdgeFilter, never, OrgChartEdgeOrderBy> & {
FindManyArgs<OrgChartEdgeSelect, OrgChartEdgeFilter, OrgChartEdgeOrderBy> & {
select: OrgChartEdgeSelect;
}
>(argv, defaultSelect);
Expand Down Expand Up @@ -114,7 +114,7 @@ async function handleFindFirst(argv: Partial<Record<string, unknown>>, _prompter
positionLevel: true,
};
const findFirstArgs = parseFindFirstArgs<
FindFirstArgs<OrgChartEdgeSelect, OrgChartEdgeFilter, never> & {
FindFirstArgs<OrgChartEdgeSelect, OrgChartEdgeFilter> & {
select: OrgChartEdgeSelect;
}
>(argv, defaultSelect);
Expand Down
Loading
Loading