Skip to content

Commit 039a062

Browse files
committed
chore(sdk): regenerate stale CLI/migrate models for new tables
The earlier SDK regen pass missed 30 model files in sdk/constructive-cli/src/{admin,public}/orm/models/ — tables added on main by automated bot commits between May 9-11 using the pre-#752 codegen. They retained the old 6-arg buildFindFirstDocument call, breaking the CLI build with TS2345 once query-builder.ts moved to the new 7-arg signature. Re-ran pregenerate (rimraf) + generate cleanly across all four SDK targets: @constructive-sdk/cli, @constructive-io/sdk, @constructive-io/react, @pgpmjs/migrate-client.
1 parent 70085fb commit 039a062

140 files changed

Lines changed: 2214 additions & 394 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

sdk/constructive-cli/src/admin/cli/commands/app-limit-cap.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const fieldSchema: FieldSchema = {
2222
max: 'int',
2323
};
2424
const usage =
25-
'\napp-limit-cap <command>\n\nCommands:\n list List appLimitCap records\n find-first Find first matching appLimitCap record\n get Get a appLimitCap by ID\n create Create a new appLimitCap\n update Update an existing appLimitCap\n delete Delete a appLimitCap\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n\n --help, -h Show this help message\n';
25+
'\napp-limit-cap <command>\n\nCommands:\n list List appLimitCap records\n find-first Find first matching appLimitCap record\n get Get a appLimitCap by ID\n create Create a new appLimitCap\n update Update an existing appLimitCap\n delete Delete a appLimitCap\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n';
2626
export default async (
2727
argv: Partial<Record<string, unknown>>,
2828
prompter: Inquirerer,
@@ -102,7 +102,7 @@ async function handleFindFirst(argv: Partial<Record<string, unknown>>, _prompter
102102
max: true,
103103
};
104104
const findFirstArgs = parseFindFirstArgs<
105-
FindFirstArgs<AppLimitCapSelect, AppLimitCapFilter> & {
105+
FindFirstArgs<AppLimitCapSelect, AppLimitCapFilter, AppLimitCapOrderBy> & {
106106
select: AppLimitCapSelect;
107107
}
108108
>(argv, defaultSelect);

sdk/constructive-cli/src/admin/cli/commands/app-limit-caps-default.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const fieldSchema: FieldSchema = {
2121
max: 'int',
2222
};
2323
const usage =
24-
'\napp-limit-caps-default <command>\n\nCommands:\n list List appLimitCapsDefault records\n find-first Find first matching appLimitCapsDefault record\n get Get a appLimitCapsDefault by ID\n create Create a new appLimitCapsDefault\n update Update an existing appLimitCapsDefault\n delete Delete a appLimitCapsDefault\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n\n --help, -h Show this help message\n';
24+
'\napp-limit-caps-default <command>\n\nCommands:\n list List appLimitCapsDefault records\n find-first Find first matching appLimitCapsDefault record\n get Get a appLimitCapsDefault by ID\n create Create a new appLimitCapsDefault\n update Update an existing appLimitCapsDefault\n delete Delete a appLimitCapsDefault\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n';
2525
export default async (
2626
argv: Partial<Record<string, unknown>>,
2727
prompter: Inquirerer,
@@ -103,7 +103,11 @@ async function handleFindFirst(argv: Partial<Record<string, unknown>>, _prompter
103103
max: true,
104104
};
105105
const findFirstArgs = parseFindFirstArgs<
106-
FindFirstArgs<AppLimitCapsDefaultSelect, AppLimitCapsDefaultFilter> & {
106+
FindFirstArgs<
107+
AppLimitCapsDefaultSelect,
108+
AppLimitCapsDefaultFilter,
109+
AppLimitCapsDefaultOrderBy
110+
> & {
107111
select: AppLimitCapsDefaultSelect;
108112
}
109113
>(argv, defaultSelect);

sdk/constructive-cli/src/admin/cli/commands/app-limit-credit-code-item.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const fieldSchema: FieldSchema = {
2323
creditType: 'string',
2424
};
2525
const usage =
26-
'\napp-limit-credit-code-item <command>\n\nCommands:\n list List appLimitCreditCodeItem records\n find-first Find first matching appLimitCreditCodeItem record\n get Get a appLimitCreditCodeItem by ID\n create Create a new appLimitCreditCodeItem\n update Update an existing appLimitCreditCodeItem\n delete Delete a appLimitCreditCodeItem\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n\n --help, -h Show this help message\n';
26+
'\napp-limit-credit-code-item <command>\n\nCommands:\n list List appLimitCreditCodeItem records\n find-first Find first matching appLimitCreditCodeItem record\n get Get a appLimitCreditCodeItem by ID\n create Create a new appLimitCreditCodeItem\n update Update an existing appLimitCreditCodeItem\n delete Delete a appLimitCreditCodeItem\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n';
2727
export default async (
2828
argv: Partial<Record<string, unknown>>,
2929
prompter: Inquirerer,
@@ -109,7 +109,11 @@ async function handleFindFirst(argv: Partial<Record<string, unknown>>, _prompter
109109
creditType: true,
110110
};
111111
const findFirstArgs = parseFindFirstArgs<
112-
FindFirstArgs<AppLimitCreditCodeItemSelect, AppLimitCreditCodeItemFilter> & {
112+
FindFirstArgs<
113+
AppLimitCreditCodeItemSelect,
114+
AppLimitCreditCodeItemFilter,
115+
AppLimitCreditCodeItemOrderBy
116+
> & {
113117
select: AppLimitCreditCodeItemSelect;
114118
}
115119
>(argv, defaultSelect);

sdk/constructive-cli/src/admin/cli/commands/app-limit-credit-code.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const fieldSchema: FieldSchema = {
2323
expiresAt: 'string',
2424
};
2525
const usage =
26-
'\napp-limit-credit-code <command>\n\nCommands:\n list List appLimitCreditCode records\n find-first Find first matching appLimitCreditCode record\n get Get a appLimitCreditCode by ID\n create Create a new appLimitCreditCode\n update Update an existing appLimitCreditCode\n delete Delete a appLimitCreditCode\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n\n --help, -h Show this help message\n';
26+
'\napp-limit-credit-code <command>\n\nCommands:\n list List appLimitCreditCode records\n find-first Find first matching appLimitCreditCode record\n get Get a appLimitCreditCode by ID\n create Create a new appLimitCreditCode\n update Update an existing appLimitCreditCode\n delete Delete a appLimitCreditCode\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n';
2727
export default async (
2828
argv: Partial<Record<string, unknown>>,
2929
prompter: Inquirerer,
@@ -109,7 +109,11 @@ async function handleFindFirst(argv: Partial<Record<string, unknown>>, _prompter
109109
expiresAt: true,
110110
};
111111
const findFirstArgs = parseFindFirstArgs<
112-
FindFirstArgs<AppLimitCreditCodeSelect, AppLimitCreditCodeFilter> & {
112+
FindFirstArgs<
113+
AppLimitCreditCodeSelect,
114+
AppLimitCreditCodeFilter,
115+
AppLimitCreditCodeOrderBy
116+
> & {
113117
select: AppLimitCreditCodeSelect;
114118
}
115119
>(argv, defaultSelect);

sdk/constructive-cli/src/admin/cli/commands/app-limit-credit-redemption.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const fieldSchema: FieldSchema = {
2121
entityId: 'uuid',
2222
};
2323
const usage =
24-
'\napp-limit-credit-redemption <command>\n\nCommands:\n list List appLimitCreditRedemption records\n find-first Find first matching appLimitCreditRedemption record\n get Get a appLimitCreditRedemption by ID\n create Create a new appLimitCreditRedemption\n update Update an existing appLimitCreditRedemption\n delete Delete a appLimitCreditRedemption\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n\n --help, -h Show this help message\n';
24+
'\napp-limit-credit-redemption <command>\n\nCommands:\n list List appLimitCreditRedemption records\n find-first Find first matching appLimitCreditRedemption record\n get Get a appLimitCreditRedemption by ID\n create Create a new appLimitCreditRedemption\n update Update an existing appLimitCreditRedemption\n delete Delete a appLimitCreditRedemption\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n';
2525
export default async (
2626
argv: Partial<Record<string, unknown>>,
2727
prompter: Inquirerer,
@@ -103,7 +103,11 @@ async function handleFindFirst(argv: Partial<Record<string, unknown>>, _prompter
103103
entityId: true,
104104
};
105105
const findFirstArgs = parseFindFirstArgs<
106-
FindFirstArgs<AppLimitCreditRedemptionSelect, AppLimitCreditRedemptionFilter> & {
106+
FindFirstArgs<
107+
AppLimitCreditRedemptionSelect,
108+
AppLimitCreditRedemptionFilter,
109+
AppLimitCreditRedemptionOrderBy
110+
> & {
107111
select: AppLimitCreditRedemptionSelect;
108112
}
109113
>(argv, defaultSelect);

sdk/constructive-cli/src/admin/cli/commands/app-limit-credit.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const fieldSchema: FieldSchema = {
2424
reason: 'string',
2525
};
2626
const usage =
27-
'\napp-limit-credit <command>\n\nCommands:\n list List appLimitCredit records\n find-first Find first matching appLimitCredit record\n get Get a appLimitCredit by ID\n create Create a new appLimitCredit\n update Update an existing appLimitCredit\n delete Delete a appLimitCredit\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n\n --help, -h Show this help message\n';
27+
'\napp-limit-credit <command>\n\nCommands:\n list List appLimitCredit records\n find-first Find first matching appLimitCredit record\n get Get a appLimitCredit by ID\n create Create a new appLimitCredit\n update Update an existing appLimitCredit\n delete Delete a appLimitCredit\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n';
2828
export default async (
2929
argv: Partial<Record<string, unknown>>,
3030
prompter: Inquirerer,
@@ -108,7 +108,7 @@ async function handleFindFirst(argv: Partial<Record<string, unknown>>, _prompter
108108
reason: true,
109109
};
110110
const findFirstArgs = parseFindFirstArgs<
111-
FindFirstArgs<AppLimitCreditSelect, AppLimitCreditFilter> & {
111+
FindFirstArgs<AppLimitCreditSelect, AppLimitCreditFilter, AppLimitCreditOrderBy> & {
112112
select: AppLimitCreditSelect;
113113
}
114114
>(argv, defaultSelect);

0 commit comments

Comments
 (0)