@constructive-sdk/cli 0.12.7 → 0.12.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/admin/cli/commands/app-achievement.js +38 -15
- package/admin/cli/commands/app-admin-grant.js +38 -15
- package/admin/cli/commands/app-grant.js +40 -16
- package/admin/cli/commands/app-level-requirement.js +42 -17
- package/admin/cli/commands/app-level.js +40 -16
- package/admin/cli/commands/app-limit-default.js +32 -12
- package/admin/cli/commands/app-limit.js +36 -14
- package/admin/cli/commands/app-membership-default.js +40 -16
- package/admin/cli/commands/app-membership.js +58 -25
- package/admin/cli/commands/app-owner-grant.js +38 -15
- package/admin/cli/commands/app-permission-default.js +30 -11
- package/admin/cli/commands/app-permission.js +36 -14
- package/admin/cli/commands/app-step.js +38 -15
- package/admin/cli/commands/claimed-invite.js +38 -15
- package/admin/cli/commands/invite.js +50 -21
- package/admin/cli/commands/membership-type.js +34 -13
- package/admin/cli/commands/org-admin-grant.js +40 -16
- package/admin/cli/commands/org-chart-edge-grant.js +44 -18
- package/admin/cli/commands/org-chart-edge.js +42 -17
- package/admin/cli/commands/org-claimed-invite.js +40 -16
- package/admin/cli/commands/org-get-managers-record.js +30 -11
- package/admin/cli/commands/org-get-subordinates-record.js +30 -11
- package/admin/cli/commands/org-grant.js +42 -17
- package/admin/cli/commands/org-invite.js +54 -23
- package/admin/cli/commands/org-limit-default.js +32 -12
- package/admin/cli/commands/org-limit.js +38 -15
- package/admin/cli/commands/org-member.js +34 -13
- package/admin/cli/commands/org-membership-default.js +44 -18
- package/admin/cli/commands/org-membership.js +58 -25
- package/admin/cli/commands/org-owner-grant.js +40 -16
- package/admin/cli/commands/org-permission-default.js +32 -12
- package/admin/cli/commands/org-permission.js +36 -14
- package/admin/cli/utils.d.ts +38 -0
- package/admin/cli/utils.js +96 -0
- package/auth/cli/commands/audit-log.js +42 -17
- package/auth/cli/commands/connected-account.js +42 -17
- package/auth/cli/commands/crypto-address.js +40 -16
- package/auth/cli/commands/email.js +40 -16
- package/auth/cli/commands/phone-number.js +42 -17
- package/auth/cli/commands/role-type.js +30 -11
- package/auth/cli/commands/user.js +80 -16
- package/auth/cli/utils.d.ts +38 -0
- package/auth/cli/utils.js +96 -0
- package/esm/admin/cli/commands/app-achievement.js +39 -16
- package/esm/admin/cli/commands/app-admin-grant.js +39 -16
- package/esm/admin/cli/commands/app-grant.js +41 -17
- package/esm/admin/cli/commands/app-level-requirement.js +43 -18
- package/esm/admin/cli/commands/app-level.js +41 -17
- package/esm/admin/cli/commands/app-limit-default.js +33 -13
- package/esm/admin/cli/commands/app-limit.js +37 -15
- package/esm/admin/cli/commands/app-membership-default.js +41 -17
- package/esm/admin/cli/commands/app-membership.js +59 -26
- package/esm/admin/cli/commands/app-owner-grant.js +39 -16
- package/esm/admin/cli/commands/app-permission-default.js +31 -12
- package/esm/admin/cli/commands/app-permission.js +37 -15
- package/esm/admin/cli/commands/app-step.js +39 -16
- package/esm/admin/cli/commands/claimed-invite.js +39 -16
- package/esm/admin/cli/commands/invite.js +51 -22
- package/esm/admin/cli/commands/membership-type.js +35 -14
- package/esm/admin/cli/commands/org-admin-grant.js +41 -17
- package/esm/admin/cli/commands/org-chart-edge-grant.js +45 -19
- package/esm/admin/cli/commands/org-chart-edge.js +43 -18
- package/esm/admin/cli/commands/org-claimed-invite.js +41 -17
- package/esm/admin/cli/commands/org-get-managers-record.js +31 -12
- package/esm/admin/cli/commands/org-get-subordinates-record.js +31 -12
- package/esm/admin/cli/commands/org-grant.js +43 -18
- package/esm/admin/cli/commands/org-invite.js +55 -24
- package/esm/admin/cli/commands/org-limit-default.js +33 -13
- package/esm/admin/cli/commands/org-limit.js +39 -16
- package/esm/admin/cli/commands/org-member.js +35 -14
- package/esm/admin/cli/commands/org-membership-default.js +45 -19
- package/esm/admin/cli/commands/org-membership.js +59 -26
- package/esm/admin/cli/commands/org-owner-grant.js +41 -17
- package/esm/admin/cli/commands/org-permission-default.js +33 -13
- package/esm/admin/cli/commands/org-permission.js +37 -15
- package/esm/admin/cli/utils.d.ts +38 -0
- package/esm/admin/cli/utils.js +90 -0
- package/esm/auth/cli/commands/audit-log.js +43 -18
- package/esm/auth/cli/commands/connected-account.js +43 -18
- package/esm/auth/cli/commands/crypto-address.js +41 -17
- package/esm/auth/cli/commands/email.js +41 -17
- package/esm/auth/cli/commands/phone-number.js +43 -18
- package/esm/auth/cli/commands/role-type.js +31 -12
- package/esm/auth/cli/commands/user.js +81 -17
- package/esm/auth/cli/utils.d.ts +38 -0
- package/esm/auth/cli/utils.js +90 -0
- package/esm/objects/cli/commands/commit.js +45 -19
- package/esm/objects/cli/commands/get-all-record.js +31 -12
- package/esm/objects/cli/commands/object.js +41 -17
- package/esm/objects/cli/commands/ref.js +37 -15
- package/esm/objects/cli/commands/store.js +37 -15
- package/esm/objects/cli/utils.d.ts +38 -0
- package/esm/objects/cli/utils.js +90 -0
- package/esm/public/cli/commands/api-module.js +37 -15
- package/esm/public/cli/commands/api-schema.js +35 -14
- package/esm/public/cli/commands/api.js +41 -17
- package/esm/public/cli/commands/app-achievement.js +39 -16
- package/esm/public/cli/commands/app-admin-grant.js +39 -16
- package/esm/public/cli/commands/app-grant.js +41 -17
- package/esm/public/cli/commands/app-level-requirement.js +43 -18
- package/esm/public/cli/commands/app-level.js +41 -17
- package/esm/public/cli/commands/app-limit-default.js +33 -13
- package/esm/public/cli/commands/app-limit.js +37 -15
- package/esm/public/cli/commands/app-membership-default.js +41 -17
- package/esm/public/cli/commands/app-membership.js +59 -26
- package/esm/public/cli/commands/app-owner-grant.js +39 -16
- package/esm/public/cli/commands/app-permission-default.js +31 -12
- package/esm/public/cli/commands/app-permission.js +37 -15
- package/esm/public/cli/commands/app-step.js +39 -16
- package/esm/public/cli/commands/app.js +45 -19
- package/esm/public/cli/commands/ast-migration.js +53 -23
- package/esm/public/cli/commands/audit-log.js +43 -18
- package/esm/public/cli/commands/blueprint-template.js +67 -30
- package/esm/public/cli/commands/blueprint.js +61 -27
- package/esm/public/cli/commands/check-constraint.js +55 -24
- package/esm/public/cli/commands/claimed-invite.js +39 -16
- package/esm/public/cli/commands/commit.js +45 -19
- package/esm/public/cli/commands/connected-account.js +43 -18
- package/esm/public/cli/commands/connected-accounts-module.js +41 -17
- package/esm/public/cli/commands/crypto-address.js +41 -17
- package/esm/public/cli/commands/crypto-addresses-module.js +43 -18
- package/esm/public/cli/commands/crypto-auth-module.js +55 -24
- package/esm/public/cli/commands/database-provision-module.js +55 -24
- package/esm/public/cli/commands/database-transfer.js +55 -24
- package/esm/public/cli/commands/database.js +43 -18
- package/esm/public/cli/commands/default-ids-module.js +31 -12
- package/esm/public/cli/commands/default-privilege.js +41 -17
- package/esm/public/cli/commands/denormalized-table-field.js +51 -22
- package/esm/public/cli/commands/domain.js +39 -16
- package/esm/public/cli/commands/email.js +41 -17
- package/esm/public/cli/commands/emails-module.js +41 -17
- package/esm/public/cli/commands/embedding-chunk.js +63 -28
- package/esm/public/cli/commands/encrypted-secrets-module.js +37 -15
- package/esm/public/cli/commands/enum.js +51 -22
- package/esm/public/cli/commands/field.js +75 -34
- package/esm/public/cli/commands/foreign-key-constraint.js +63 -28
- package/esm/public/cli/commands/full-text-search.js +45 -19
- package/esm/public/cli/commands/get-all-record.js +31 -12
- package/esm/public/cli/commands/hierarchy-module.js +67 -30
- package/esm/public/cli/commands/index.js +65 -29
- package/esm/public/cli/commands/invite.js +51 -22
- package/esm/public/cli/commands/invites-module.js +55 -24
- package/esm/public/cli/commands/levels-module.js +79 -36
- package/esm/public/cli/commands/limits-module.js +63 -28
- package/esm/public/cli/commands/membership-type.js +35 -14
- package/esm/public/cli/commands/membership-types-module.js +37 -15
- package/esm/public/cli/commands/memberships-module.js +89 -41
- package/esm/public/cli/commands/migrate-file.js +33 -13
- package/esm/public/cli/commands/node-type-registry.js +89 -19
- package/esm/public/cli/commands/object.js +41 -17
- package/esm/public/cli/commands/org-admin-grant.js +41 -17
- package/esm/public/cli/commands/org-chart-edge-grant.js +45 -19
- package/esm/public/cli/commands/org-chart-edge.js +43 -18
- package/esm/public/cli/commands/org-claimed-invite.js +41 -17
- package/esm/public/cli/commands/org-get-managers-record.js +31 -12
- package/esm/public/cli/commands/org-get-subordinates-record.js +31 -12
- package/esm/public/cli/commands/org-grant.js +43 -18
- package/esm/public/cli/commands/org-invite.js +55 -24
- package/esm/public/cli/commands/org-limit-default.js +33 -13
- package/esm/public/cli/commands/org-limit.js +39 -16
- package/esm/public/cli/commands/org-member.js +35 -14
- package/esm/public/cli/commands/org-membership-default.js +45 -19
- package/esm/public/cli/commands/org-membership.js +59 -26
- package/esm/public/cli/commands/org-owner-grant.js +41 -17
- package/esm/public/cli/commands/org-permission-default.js +33 -13
- package/esm/public/cli/commands/org-permission.js +37 -15
- package/esm/public/cli/commands/permissions-module.js +61 -27
- package/esm/public/cli/commands/phone-number.js +43 -18
- package/esm/public/cli/commands/phone-numbers-module.js +41 -17
- package/esm/public/cli/commands/policy.js +61 -27
- package/esm/public/cli/commands/primary-key-constraint.js +53 -23
- package/esm/public/cli/commands/profiles-module.js +63 -28
- package/esm/public/cli/commands/ref.js +37 -15
- package/esm/public/cli/commands/relation-provision.js +89 -41
- package/esm/public/cli/commands/rls-module.js +49 -21
- package/esm/public/cli/commands/role-type.js +31 -12
- package/esm/public/cli/commands/schema-grant.js +39 -16
- package/esm/public/cli/commands/schema.js +55 -24
- package/esm/public/cli/commands/secrets-module.js +37 -15
- package/esm/public/cli/commands/secure-table-provision.js +63 -28
- package/esm/public/cli/commands/sessions-module.js +49 -21
- package/esm/public/cli/commands/site-metadatum.js +39 -16
- package/esm/public/cli/commands/site-module.js +37 -15
- package/esm/public/cli/commands/site-theme.js +35 -14
- package/esm/public/cli/commands/site.js +45 -19
- package/esm/public/cli/commands/sql-action.js +53 -23
- package/esm/public/cli/commands/store.js +37 -15
- package/esm/public/cli/commands/table-grant.js +45 -19
- package/esm/public/cli/commands/table-template-module.js +45 -19
- package/esm/public/cli/commands/table.js +65 -29
- package/esm/public/cli/commands/trigger-function.js +39 -16
- package/esm/public/cli/commands/trigger.js +53 -23
- package/esm/public/cli/commands/unique-constraint.js +55 -24
- package/esm/public/cli/commands/user-auth-module.js +79 -36
- package/esm/public/cli/commands/user.js +81 -17
- package/esm/public/cli/commands/users-module.js +41 -17
- package/esm/public/cli/commands/view-grant.js +41 -17
- package/esm/public/cli/commands/view-rule.js +39 -16
- package/esm/public/cli/commands/view-table.js +35 -14
- package/esm/public/cli/commands/view.js +59 -26
- package/esm/public/cli/commands.js +3 -3
- package/esm/public/cli/executor.d.ts +1 -1
- package/esm/public/cli/utils.d.ts +38 -0
- package/esm/public/cli/utils.js +90 -0
- package/esm/public/orm/index.d.ts +2 -2
- package/esm/public/orm/index.js +2 -2
- package/esm/public/orm/input-types.d.ts +161 -147
- package/esm/public/orm/models/index.d.ts +1 -1
- package/esm/public/orm/models/index.js +1 -1
- package/objects/cli/commands/commit.js +44 -18
- package/objects/cli/commands/get-all-record.js +30 -11
- package/objects/cli/commands/object.js +40 -16
- package/objects/cli/commands/ref.js +36 -14
- package/objects/cli/commands/store.js +36 -14
- package/objects/cli/utils.d.ts +38 -0
- package/objects/cli/utils.js +96 -0
- package/package.json +3 -3
- package/public/cli/commands/api-module.js +36 -14
- package/public/cli/commands/api-schema.js +34 -13
- package/public/cli/commands/api.js +40 -16
- package/public/cli/commands/app-achievement.js +38 -15
- package/public/cli/commands/app-admin-grant.js +38 -15
- package/public/cli/commands/app-grant.js +40 -16
- package/public/cli/commands/app-level-requirement.js +42 -17
- package/public/cli/commands/app-level.js +40 -16
- package/public/cli/commands/app-limit-default.js +32 -12
- package/public/cli/commands/app-limit.js +36 -14
- package/public/cli/commands/app-membership-default.js +40 -16
- package/public/cli/commands/app-membership.js +58 -25
- package/public/cli/commands/app-owner-grant.js +38 -15
- package/public/cli/commands/app-permission-default.js +30 -11
- package/public/cli/commands/app-permission.js +36 -14
- package/public/cli/commands/app-step.js +38 -15
- package/public/cli/commands/app.js +44 -18
- package/public/cli/commands/ast-migration.js +52 -22
- package/public/cli/commands/audit-log.js +42 -17
- package/public/cli/commands/blueprint-template.js +66 -29
- package/public/cli/commands/blueprint.js +60 -26
- package/public/cli/commands/check-constraint.js +54 -23
- package/public/cli/commands/claimed-invite.js +38 -15
- package/public/cli/commands/commit.js +44 -18
- package/public/cli/commands/connected-account.js +42 -17
- package/public/cli/commands/connected-accounts-module.js +40 -16
- package/public/cli/commands/crypto-address.js +40 -16
- package/public/cli/commands/crypto-addresses-module.js +42 -17
- package/public/cli/commands/crypto-auth-module.js +54 -23
- package/public/cli/commands/database-provision-module.js +54 -23
- package/public/cli/commands/database-transfer.js +54 -23
- package/public/cli/commands/database.js +42 -17
- package/public/cli/commands/default-ids-module.js +30 -11
- package/public/cli/commands/default-privilege.js +40 -16
- package/public/cli/commands/denormalized-table-field.js +50 -21
- package/public/cli/commands/domain.js +38 -15
- package/public/cli/commands/email.js +40 -16
- package/public/cli/commands/emails-module.js +40 -16
- package/public/cli/commands/embedding-chunk.js +62 -27
- package/public/cli/commands/encrypted-secrets-module.js +36 -14
- package/public/cli/commands/enum.js +50 -21
- package/public/cli/commands/field.js +74 -33
- package/public/cli/commands/foreign-key-constraint.js +62 -27
- package/public/cli/commands/full-text-search.js +44 -18
- package/public/cli/commands/get-all-record.js +30 -11
- package/public/cli/commands/hierarchy-module.js +66 -29
- package/public/cli/commands/index.js +64 -28
- package/public/cli/commands/invite.js +50 -21
- package/public/cli/commands/invites-module.js +54 -23
- package/public/cli/commands/levels-module.js +78 -35
- package/public/cli/commands/limits-module.js +62 -27
- package/public/cli/commands/membership-type.js +34 -13
- package/public/cli/commands/membership-types-module.js +36 -14
- package/public/cli/commands/memberships-module.js +88 -40
- package/public/cli/commands/migrate-file.js +32 -12
- package/public/cli/commands/node-type-registry.js +88 -18
- package/public/cli/commands/object.js +40 -16
- package/public/cli/commands/org-admin-grant.js +40 -16
- package/public/cli/commands/org-chart-edge-grant.js +44 -18
- package/public/cli/commands/org-chart-edge.js +42 -17
- package/public/cli/commands/org-claimed-invite.js +40 -16
- package/public/cli/commands/org-get-managers-record.js +30 -11
- package/public/cli/commands/org-get-subordinates-record.js +30 -11
- package/public/cli/commands/org-grant.js +42 -17
- package/public/cli/commands/org-invite.js +54 -23
- package/public/cli/commands/org-limit-default.js +32 -12
- package/public/cli/commands/org-limit.js +38 -15
- package/public/cli/commands/org-member.js +34 -13
- package/public/cli/commands/org-membership-default.js +44 -18
- package/public/cli/commands/org-membership.js +58 -25
- package/public/cli/commands/org-owner-grant.js +40 -16
- package/public/cli/commands/org-permission-default.js +32 -12
- package/public/cli/commands/org-permission.js +36 -14
- package/public/cli/commands/permissions-module.js +60 -26
- package/public/cli/commands/phone-number.js +42 -17
- package/public/cli/commands/phone-numbers-module.js +40 -16
- package/public/cli/commands/policy.js +60 -26
- package/public/cli/commands/primary-key-constraint.js +52 -22
- package/public/cli/commands/profiles-module.js +62 -27
- package/public/cli/commands/ref.js +36 -14
- package/public/cli/commands/relation-provision.js +88 -40
- package/public/cli/commands/rls-module.js +48 -20
- package/public/cli/commands/role-type.js +30 -11
- package/public/cli/commands/schema-grant.js +38 -15
- package/public/cli/commands/schema.js +54 -23
- package/public/cli/commands/secrets-module.js +36 -14
- package/public/cli/commands/secure-table-provision.js +62 -27
- package/public/cli/commands/sessions-module.js +48 -20
- package/public/cli/commands/site-metadatum.js +38 -15
- package/public/cli/commands/site-module.js +36 -14
- package/public/cli/commands/site-theme.js +34 -13
- package/public/cli/commands/site.js +44 -18
- package/public/cli/commands/sql-action.js +52 -22
- package/public/cli/commands/store.js +36 -14
- package/public/cli/commands/table-grant.js +44 -18
- package/public/cli/commands/table-template-module.js +44 -18
- package/public/cli/commands/table.js +64 -28
- package/public/cli/commands/trigger-function.js +38 -15
- package/public/cli/commands/trigger.js +52 -22
- package/public/cli/commands/unique-constraint.js +54 -23
- package/public/cli/commands/user-auth-module.js +78 -35
- package/public/cli/commands/user.js +80 -16
- package/public/cli/commands/users-module.js +40 -16
- package/public/cli/commands/view-grant.js +40 -16
- package/public/cli/commands/view-rule.js +38 -15
- package/public/cli/commands/view-table.js +34 -13
- package/public/cli/commands/view.js +58 -25
- package/public/cli/commands.js +3 -3
- package/public/cli/executor.d.ts +1 -1
- package/public/cli/utils.d.ts +38 -0
- package/public/cli/utils.js +96 -0
- package/public/orm/index.d.ts +2 -2
- package/public/orm/index.js +2 -2
- package/public/orm/input-types.d.ts +161 -147
- package/public/orm/models/index.d.ts +1 -1
- package/public/orm/models/index.js +4 -4
package/public/cli/utils.js
CHANGED
|
@@ -7,6 +7,12 @@ exports.coerceAnswers = coerceAnswers;
|
|
|
7
7
|
exports.stripUndefined = stripUndefined;
|
|
8
8
|
exports.parseMutationInput = parseMutationInput;
|
|
9
9
|
exports.unflattenDotNotation = unflattenDotNotation;
|
|
10
|
+
exports.parseIntFlag = parseIntFlag;
|
|
11
|
+
exports.parseStringFlag = parseStringFlag;
|
|
12
|
+
exports.parseOrderByFlag = parseOrderByFlag;
|
|
13
|
+
exports.parseSelectFlag = parseSelectFlag;
|
|
14
|
+
exports.parseFindManyArgs = parseFindManyArgs;
|
|
15
|
+
exports.parseFindFirstArgs = parseFindFirstArgs;
|
|
10
16
|
exports.buildSelectFromPaths = buildSelectFromPaths;
|
|
11
17
|
/**
|
|
12
18
|
* CLI utility functions for type coercion and input handling
|
|
@@ -163,6 +169,96 @@ function unflattenDotNotation(answers) {
|
|
|
163
169
|
* @param paths - Comma-separated dot-notation field paths (e.g. 'clientMutationId,result.accessToken')
|
|
164
170
|
* @returns The nested select object for the ORM
|
|
165
171
|
*/
|
|
172
|
+
/**
|
|
173
|
+
* Parse a CLI flag as an integer.
|
|
174
|
+
* Handles minimist delivering numbers or strings depending on the input.
|
|
175
|
+
* Returns undefined when the flag is missing or not a valid number.
|
|
176
|
+
*/
|
|
177
|
+
function parseIntFlag(argv, name) {
|
|
178
|
+
const val = argv[name];
|
|
179
|
+
if (typeof val === 'number')
|
|
180
|
+
return val;
|
|
181
|
+
if (typeof val === 'string') {
|
|
182
|
+
const n = parseInt(val, 10);
|
|
183
|
+
return isNaN(n) ? undefined : n;
|
|
184
|
+
}
|
|
185
|
+
return undefined;
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Parse a CLI flag as a string.
|
|
189
|
+
* Returns undefined when the flag is missing or not a string.
|
|
190
|
+
*/
|
|
191
|
+
function parseStringFlag(argv, name) {
|
|
192
|
+
const val = argv[name];
|
|
193
|
+
return typeof val === 'string' ? val : undefined;
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Parse --orderBy flag as a comma-separated list of enum values.
|
|
197
|
+
* e.g. --orderBy NAME_ASC,CREATED_AT_DESC → ['NAME_ASC', 'CREATED_AT_DESC']
|
|
198
|
+
*/
|
|
199
|
+
function parseOrderByFlag(argv) {
|
|
200
|
+
const val = argv.orderBy;
|
|
201
|
+
return typeof val === 'string' ? val.split(',') : undefined;
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* Parse --select flag into a select object, falling back to a default.
|
|
205
|
+
* e.g. --select id,name → { id: true, name: true }
|
|
206
|
+
*/
|
|
207
|
+
function parseSelectFlag(argv, defaultSelect) {
|
|
208
|
+
const raw = argv.select;
|
|
209
|
+
return typeof raw === 'string' ? buildSelectFromPaths(raw) : defaultSelect;
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Build the full findManyArgs object from CLI argv.
|
|
213
|
+
* Parses all pagination, filtering, ordering, and field selection flags
|
|
214
|
+
* in one call. Accepts an optional `extraWhere` to merge with dot-notation
|
|
215
|
+
* --where flags (used by the search handler to inject search clauses).
|
|
216
|
+
*
|
|
217
|
+
* @example
|
|
218
|
+
* const findManyArgs = parseFindManyArgs(argv, { id: true, name: true });
|
|
219
|
+
* const result = await client.user.findMany(findManyArgs).execute();
|
|
220
|
+
*/
|
|
221
|
+
function parseFindManyArgs(argv, defaultSelect, extraWhere) {
|
|
222
|
+
const limit = parseIntFlag(argv, 'limit');
|
|
223
|
+
const last = parseIntFlag(argv, 'last');
|
|
224
|
+
const offset = parseIntFlag(argv, 'offset');
|
|
225
|
+
const after = parseStringFlag(argv, 'after');
|
|
226
|
+
const before = parseStringFlag(argv, 'before');
|
|
227
|
+
const select = parseSelectFlag(argv, defaultSelect);
|
|
228
|
+
const parsed = unflattenDotNotation(argv);
|
|
229
|
+
const where = (parsed.where ?? extraWhere)
|
|
230
|
+
? { ...(extraWhere ?? {}), ...(parsed.where ?? {}) }
|
|
231
|
+
: undefined;
|
|
232
|
+
const condition = parsed.condition;
|
|
233
|
+
const orderBy = parseOrderByFlag(argv);
|
|
234
|
+
return {
|
|
235
|
+
select,
|
|
236
|
+
...(limit !== undefined ? { first: limit } : {}),
|
|
237
|
+
...(after !== undefined ? { after } : {}),
|
|
238
|
+
...(last !== undefined ? { last } : {}),
|
|
239
|
+
...(before !== undefined ? { before } : {}),
|
|
240
|
+
...(offset !== undefined ? { offset } : {}),
|
|
241
|
+
...(where !== undefined ? { where } : {}),
|
|
242
|
+
...(condition !== undefined ? { condition } : {}),
|
|
243
|
+
...(orderBy !== undefined ? { orderBy } : {}),
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Build findFirst args from CLI argv.
|
|
248
|
+
* Like parseFindManyArgs but only includes select, where, and condition
|
|
249
|
+
* (no pagination flags — findFirst returns the first matching record).
|
|
250
|
+
*/
|
|
251
|
+
function parseFindFirstArgs(argv, defaultSelect) {
|
|
252
|
+
const select = parseSelectFlag(argv, defaultSelect);
|
|
253
|
+
const parsed = unflattenDotNotation(argv);
|
|
254
|
+
const where = parsed.where;
|
|
255
|
+
const condition = parsed.condition;
|
|
256
|
+
return {
|
|
257
|
+
select,
|
|
258
|
+
...(where !== undefined ? { where } : {}),
|
|
259
|
+
...(condition !== undefined ? { condition } : {}),
|
|
260
|
+
};
|
|
261
|
+
}
|
|
166
262
|
function buildSelectFromPaths(paths) {
|
|
167
263
|
const result = {};
|
|
168
264
|
const trimmedPaths = paths
|
package/public/orm/index.d.ts
CHANGED
|
@@ -95,11 +95,11 @@ import { RoleTypeModel } from './models/roleType';
|
|
|
95
95
|
import { MigrateFileModel } from './models/migrateFile';
|
|
96
96
|
import { AppLimitDefaultModel } from './models/appLimitDefault';
|
|
97
97
|
import { OrgLimitDefaultModel } from './models/orgLimitDefault';
|
|
98
|
-
import { NodeTypeRegistryModel } from './models/nodeTypeRegistry';
|
|
99
98
|
import { MembershipTypeModel } from './models/membershipType';
|
|
100
99
|
import { CommitModel } from './models/commit';
|
|
101
100
|
import { AppMembershipDefaultModel } from './models/appMembershipDefault';
|
|
102
101
|
import { RlsModuleModel } from './models/rlsModule';
|
|
102
|
+
import { NodeTypeRegistryModel } from './models/nodeTypeRegistry';
|
|
103
103
|
import { OrgMembershipDefaultModel } from './models/orgMembershipDefault';
|
|
104
104
|
import { SqlActionModel } from './models/sqlAction';
|
|
105
105
|
import { UserModel } from './models/user';
|
|
@@ -234,11 +234,11 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
234
234
|
migrateFile: MigrateFileModel;
|
|
235
235
|
appLimitDefault: AppLimitDefaultModel;
|
|
236
236
|
orgLimitDefault: OrgLimitDefaultModel;
|
|
237
|
-
nodeTypeRegistry: NodeTypeRegistryModel;
|
|
238
237
|
membershipType: MembershipTypeModel;
|
|
239
238
|
commit: CommitModel;
|
|
240
239
|
appMembershipDefault: AppMembershipDefaultModel;
|
|
241
240
|
rlsModule: RlsModuleModel;
|
|
241
|
+
nodeTypeRegistry: NodeTypeRegistryModel;
|
|
242
242
|
orgMembershipDefault: OrgMembershipDefaultModel;
|
|
243
243
|
sqlAction: SqlActionModel;
|
|
244
244
|
user: UserModel;
|
package/public/orm/index.js
CHANGED
|
@@ -118,11 +118,11 @@ const roleType_1 = require("./models/roleType");
|
|
|
118
118
|
const migrateFile_1 = require("./models/migrateFile");
|
|
119
119
|
const appLimitDefault_1 = require("./models/appLimitDefault");
|
|
120
120
|
const orgLimitDefault_1 = require("./models/orgLimitDefault");
|
|
121
|
-
const nodeTypeRegistry_1 = require("./models/nodeTypeRegistry");
|
|
122
121
|
const membershipType_1 = require("./models/membershipType");
|
|
123
122
|
const commit_1 = require("./models/commit");
|
|
124
123
|
const appMembershipDefault_1 = require("./models/appMembershipDefault");
|
|
125
124
|
const rlsModule_1 = require("./models/rlsModule");
|
|
125
|
+
const nodeTypeRegistry_1 = require("./models/nodeTypeRegistry");
|
|
126
126
|
const orgMembershipDefault_1 = require("./models/orgMembershipDefault");
|
|
127
127
|
const sqlAction_1 = require("./models/sqlAction");
|
|
128
128
|
const user_1 = require("./models/user");
|
|
@@ -265,11 +265,11 @@ function createClient(config) {
|
|
|
265
265
|
migrateFile: new migrateFile_1.MigrateFileModel(client),
|
|
266
266
|
appLimitDefault: new appLimitDefault_1.AppLimitDefaultModel(client),
|
|
267
267
|
orgLimitDefault: new orgLimitDefault_1.OrgLimitDefaultModel(client),
|
|
268
|
-
nodeTypeRegistry: new nodeTypeRegistry_1.NodeTypeRegistryModel(client),
|
|
269
268
|
membershipType: new membershipType_1.MembershipTypeModel(client),
|
|
270
269
|
commit: new commit_1.CommitModel(client),
|
|
271
270
|
appMembershipDefault: new appMembershipDefault_1.AppMembershipDefaultModel(client),
|
|
272
271
|
rlsModule: new rlsModule_1.RlsModuleModel(client),
|
|
272
|
+
nodeTypeRegistry: new nodeTypeRegistry_1.NodeTypeRegistryModel(client),
|
|
273
273
|
orgMembershipDefault: new orgMembershipDefault_1.OrgMembershipDefaultModel(client),
|
|
274
274
|
sqlAction: new sqlAction_1.SqlActionModel(client),
|
|
275
275
|
user: new user_1.UserModel(client),
|
|
@@ -1792,25 +1792,6 @@ export interface OrgLimitDefault {
|
|
|
1792
1792
|
/** Default maximum usage allowed for this limit */
|
|
1793
1793
|
max?: number | null;
|
|
1794
1794
|
}
|
|
1795
|
-
/** Registry of high-level semantic AST node types using domain-prefixed naming. These IR nodes compile to multiple targets (Postgres RLS, egress, ingress, etc.). */
|
|
1796
|
-
export interface NodeTypeRegistry {
|
|
1797
|
-
/** PascalCase domain-prefixed node type name (e.g., AuthzDirectOwner, DataTimestamps, DataImmutableFields) */
|
|
1798
|
-
name?: string | null;
|
|
1799
|
-
/** snake_case slug for use in code and configuration (e.g., authz_direct_owner, data_timestamps) */
|
|
1800
|
-
slug?: string | null;
|
|
1801
|
-
/** Node type category: authz (authorization semantics), data (table-level behaviors), view (view query types), relation (relational structure between tables) */
|
|
1802
|
-
category?: string | null;
|
|
1803
|
-
/** Human-readable display name for UI */
|
|
1804
|
-
displayName?: string | null;
|
|
1805
|
-
/** Description of what this node type does */
|
|
1806
|
-
description?: string | null;
|
|
1807
|
-
/** JSON Schema defining valid parameters for this node type */
|
|
1808
|
-
parameterSchema?: Record<string, unknown> | null;
|
|
1809
|
-
/** Tags for categorization and filtering (e.g., ownership, membership, temporal, rls) */
|
|
1810
|
-
tags?: string[] | null;
|
|
1811
|
-
createdAt?: string | null;
|
|
1812
|
-
updatedAt?: string | null;
|
|
1813
|
-
}
|
|
1814
1795
|
/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */
|
|
1815
1796
|
export interface MembershipType {
|
|
1816
1797
|
/** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */
|
|
@@ -1866,6 +1847,29 @@ export interface RlsModule {
|
|
|
1866
1847
|
currentRole?: string | null;
|
|
1867
1848
|
currentRoleId?: string | null;
|
|
1868
1849
|
}
|
|
1850
|
+
/** Registry of high-level semantic AST node types using domain-prefixed naming. These IR nodes compile to multiple targets (Postgres RLS, egress, ingress, etc.). */
|
|
1851
|
+
export interface NodeTypeRegistry {
|
|
1852
|
+
/** PascalCase domain-prefixed node type name (e.g., AuthzDirectOwner, DataTimestamps, DataImmutableFields) */
|
|
1853
|
+
name?: string | null;
|
|
1854
|
+
/** snake_case slug for use in code and configuration (e.g., authz_direct_owner, data_timestamps) */
|
|
1855
|
+
slug?: string | null;
|
|
1856
|
+
/** Node type category: authz (authorization semantics), data (table-level behaviors), view (view query types), relation (relational structure between tables) */
|
|
1857
|
+
category?: string | null;
|
|
1858
|
+
/** Human-readable display name for UI */
|
|
1859
|
+
displayName?: string | null;
|
|
1860
|
+
/** Description of what this node type does */
|
|
1861
|
+
description?: string | null;
|
|
1862
|
+
/** Casual, approachable marketing description for onboarding UIs. Explains what the node type does and when you would use it in plain language. */
|
|
1863
|
+
summary?: string | null;
|
|
1864
|
+
/** JSON Schema defining valid parameters for this node type */
|
|
1865
|
+
parameterSchema?: Record<string, unknown> | null;
|
|
1866
|
+
/** Machine-readable usage guidance: privilege recommendations, combination patterns, warnings, anti-patterns. All fields optional. Keys: recommended_privileges, privilege_note, standalone_ok, suggested_companions, combination_note, typical_pattern, status, status_note, alternatives, warnings, anti_patterns, performance_note, requires, decision_semantics, related_nodes, examples */
|
|
1867
|
+
guidance?: Record<string, unknown> | null;
|
|
1868
|
+
/** Tags for categorization and filtering (e.g., ownership, membership, temporal, rls) */
|
|
1869
|
+
tags?: string[] | null;
|
|
1870
|
+
createdAt?: string | null;
|
|
1871
|
+
updatedAt?: string | null;
|
|
1872
|
+
}
|
|
1869
1873
|
/** Default membership settings per entity, controlling initial approval and verification state for new members */
|
|
1870
1874
|
export interface OrgMembershipDefault {
|
|
1871
1875
|
id: string;
|
|
@@ -2522,8 +2526,6 @@ export interface AppLimitDefaultRelations {
|
|
|
2522
2526
|
}
|
|
2523
2527
|
export interface OrgLimitDefaultRelations {
|
|
2524
2528
|
}
|
|
2525
|
-
export interface NodeTypeRegistryRelations {
|
|
2526
|
-
}
|
|
2527
2529
|
export interface MembershipTypeRelations {
|
|
2528
2530
|
}
|
|
2529
2531
|
export interface CommitRelations {
|
|
@@ -2538,6 +2540,8 @@ export interface RlsModuleRelations {
|
|
|
2538
2540
|
sessionsTable?: Table | null;
|
|
2539
2541
|
usersTable?: Table | null;
|
|
2540
2542
|
}
|
|
2543
|
+
export interface NodeTypeRegistryRelations {
|
|
2544
|
+
}
|
|
2541
2545
|
export interface OrgMembershipDefaultRelations {
|
|
2542
2546
|
entity?: User | null;
|
|
2543
2547
|
}
|
|
@@ -2707,11 +2711,11 @@ export type RoleTypeWithRelations = RoleType & RoleTypeRelations;
|
|
|
2707
2711
|
export type MigrateFileWithRelations = MigrateFile & MigrateFileRelations;
|
|
2708
2712
|
export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations;
|
|
2709
2713
|
export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations;
|
|
2710
|
-
export type NodeTypeRegistryWithRelations = NodeTypeRegistry & NodeTypeRegistryRelations;
|
|
2711
2714
|
export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations;
|
|
2712
2715
|
export type CommitWithRelations = Commit & CommitRelations;
|
|
2713
2716
|
export type AppMembershipDefaultWithRelations = AppMembershipDefault & AppMembershipDefaultRelations;
|
|
2714
2717
|
export type RlsModuleWithRelations = RlsModule & RlsModuleRelations;
|
|
2718
|
+
export type NodeTypeRegistryWithRelations = NodeTypeRegistry & NodeTypeRegistryRelations;
|
|
2715
2719
|
export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & OrgMembershipDefaultRelations;
|
|
2716
2720
|
export type SqlActionWithRelations = SqlAction & SqlActionRelations;
|
|
2717
2721
|
export type UserWithRelations = User & UserRelations;
|
|
@@ -5143,17 +5147,6 @@ export type OrgLimitDefaultSelect = {
|
|
|
5143
5147
|
name?: boolean;
|
|
5144
5148
|
max?: boolean;
|
|
5145
5149
|
};
|
|
5146
|
-
export type NodeTypeRegistrySelect = {
|
|
5147
|
-
name?: boolean;
|
|
5148
|
-
slug?: boolean;
|
|
5149
|
-
category?: boolean;
|
|
5150
|
-
displayName?: boolean;
|
|
5151
|
-
description?: boolean;
|
|
5152
|
-
parameterSchema?: boolean;
|
|
5153
|
-
tags?: boolean;
|
|
5154
|
-
createdAt?: boolean;
|
|
5155
|
-
updatedAt?: boolean;
|
|
5156
|
-
};
|
|
5157
5150
|
export type MembershipTypeSelect = {
|
|
5158
5151
|
id?: boolean;
|
|
5159
5152
|
name?: boolean;
|
|
@@ -5211,6 +5204,19 @@ export type RlsModuleSelect = {
|
|
|
5211
5204
|
select: TableSelect;
|
|
5212
5205
|
};
|
|
5213
5206
|
};
|
|
5207
|
+
export type NodeTypeRegistrySelect = {
|
|
5208
|
+
name?: boolean;
|
|
5209
|
+
slug?: boolean;
|
|
5210
|
+
category?: boolean;
|
|
5211
|
+
displayName?: boolean;
|
|
5212
|
+
description?: boolean;
|
|
5213
|
+
summary?: boolean;
|
|
5214
|
+
parameterSchema?: boolean;
|
|
5215
|
+
guidance?: boolean;
|
|
5216
|
+
tags?: boolean;
|
|
5217
|
+
createdAt?: boolean;
|
|
5218
|
+
updatedAt?: boolean;
|
|
5219
|
+
};
|
|
5214
5220
|
export type OrgMembershipDefaultSelect = {
|
|
5215
5221
|
id?: boolean;
|
|
5216
5222
|
createdAt?: boolean;
|
|
@@ -9179,32 +9185,6 @@ export interface OrgLimitDefaultFilter {
|
|
|
9179
9185
|
/** Negates the expression. */
|
|
9180
9186
|
not?: OrgLimitDefaultFilter;
|
|
9181
9187
|
}
|
|
9182
|
-
export interface NodeTypeRegistryFilter {
|
|
9183
|
-
/** Filter by the object’s `name` field. */
|
|
9184
|
-
name?: StringFilter;
|
|
9185
|
-
/** Filter by the object’s `slug` field. */
|
|
9186
|
-
slug?: StringFilter;
|
|
9187
|
-
/** Filter by the object’s `category` field. */
|
|
9188
|
-
category?: StringFilter;
|
|
9189
|
-
/** Filter by the object’s `displayName` field. */
|
|
9190
|
-
displayName?: StringFilter;
|
|
9191
|
-
/** Filter by the object’s `description` field. */
|
|
9192
|
-
description?: StringFilter;
|
|
9193
|
-
/** Filter by the object’s `parameterSchema` field. */
|
|
9194
|
-
parameterSchema?: JSONFilter;
|
|
9195
|
-
/** Filter by the object’s `tags` field. */
|
|
9196
|
-
tags?: StringListFilter;
|
|
9197
|
-
/** Filter by the object’s `createdAt` field. */
|
|
9198
|
-
createdAt?: DatetimeFilter;
|
|
9199
|
-
/** Filter by the object’s `updatedAt` field. */
|
|
9200
|
-
updatedAt?: DatetimeFilter;
|
|
9201
|
-
/** Checks for all expressions in this list. */
|
|
9202
|
-
and?: NodeTypeRegistryFilter[];
|
|
9203
|
-
/** Checks for any expressions in this list. */
|
|
9204
|
-
or?: NodeTypeRegistryFilter[];
|
|
9205
|
-
/** Negates the expression. */
|
|
9206
|
-
not?: NodeTypeRegistryFilter;
|
|
9207
|
-
}
|
|
9208
9188
|
export interface MembershipTypeFilter {
|
|
9209
9189
|
/** Filter by the object’s `id` field. */
|
|
9210
9190
|
id?: IntFilter;
|
|
@@ -9311,6 +9291,36 @@ export interface RlsModuleFilter {
|
|
|
9311
9291
|
/** Filter by the object’s `usersTable` relation. */
|
|
9312
9292
|
usersTable?: TableFilter;
|
|
9313
9293
|
}
|
|
9294
|
+
export interface NodeTypeRegistryFilter {
|
|
9295
|
+
/** Filter by the object’s `name` field. */
|
|
9296
|
+
name?: StringFilter;
|
|
9297
|
+
/** Filter by the object’s `slug` field. */
|
|
9298
|
+
slug?: StringFilter;
|
|
9299
|
+
/** Filter by the object’s `category` field. */
|
|
9300
|
+
category?: StringFilter;
|
|
9301
|
+
/** Filter by the object’s `displayName` field. */
|
|
9302
|
+
displayName?: StringFilter;
|
|
9303
|
+
/** Filter by the object’s `description` field. */
|
|
9304
|
+
description?: StringFilter;
|
|
9305
|
+
/** Filter by the object’s `summary` field. */
|
|
9306
|
+
summary?: StringFilter;
|
|
9307
|
+
/** Filter by the object’s `parameterSchema` field. */
|
|
9308
|
+
parameterSchema?: JSONFilter;
|
|
9309
|
+
/** Filter by the object’s `guidance` field. */
|
|
9310
|
+
guidance?: JSONFilter;
|
|
9311
|
+
/** Filter by the object’s `tags` field. */
|
|
9312
|
+
tags?: StringListFilter;
|
|
9313
|
+
/** Filter by the object’s `createdAt` field. */
|
|
9314
|
+
createdAt?: DatetimeFilter;
|
|
9315
|
+
/** Filter by the object’s `updatedAt` field. */
|
|
9316
|
+
updatedAt?: DatetimeFilter;
|
|
9317
|
+
/** Checks for all expressions in this list. */
|
|
9318
|
+
and?: NodeTypeRegistryFilter[];
|
|
9319
|
+
/** Checks for any expressions in this list. */
|
|
9320
|
+
or?: NodeTypeRegistryFilter[];
|
|
9321
|
+
/** Negates the expression. */
|
|
9322
|
+
not?: NodeTypeRegistryFilter;
|
|
9323
|
+
}
|
|
9314
9324
|
export interface OrgMembershipDefaultFilter {
|
|
9315
9325
|
/** Filter by the object’s `id` field. */
|
|
9316
9326
|
id?: UUIDFilter;
|
|
@@ -9844,11 +9854,11 @@ export type RoleTypeOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC'
|
|
|
9844
9854
|
export type MigrateFileOrderBy = 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC';
|
|
9845
9855
|
export type AppLimitDefaultOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC';
|
|
9846
9856
|
export type OrgLimitDefaultOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC';
|
|
9847
|
-
export type NodeTypeRegistryOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'SLUG_ASC' | 'SLUG_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC';
|
|
9848
9857
|
export type MembershipTypeOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC';
|
|
9849
9858
|
export type CommitOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC';
|
|
9850
9859
|
export type AppMembershipDefaultOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC';
|
|
9851
9860
|
export type RlsModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC';
|
|
9861
|
+
export type NodeTypeRegistryOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'SLUG_ASC' | 'SLUG_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC';
|
|
9852
9862
|
export type OrgMembershipDefaultOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC';
|
|
9853
9863
|
export type SqlActionOrderBy = 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DEPLOY_ASC' | 'DEPLOY_DESC' | 'CONTENT_ASC' | 'CONTENT_DESC' | 'REVERT_ASC' | 'REVERT_DESC' | 'VERIFY_ASC' | 'VERIFY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'ACTION_ASC' | 'ACTION_DESC' | 'ACTION_ID_ASC' | 'ACTION_ID_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC';
|
|
9854
9864
|
export type UserOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'USERNAME_ASC' | 'USERNAME_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'SEARCH_TSV_RANK_ASC' | 'SEARCH_TSV_RANK_DESC' | 'DISPLAY_NAME_TRGM_SIMILARITY_ASC' | 'DISPLAY_NAME_TRGM_SIMILARITY_DESC' | 'SEARCH_SCORE_ASC' | 'SEARCH_SCORE_DESC';
|
|
@@ -12910,36 +12920,6 @@ export interface DeleteOrgLimitDefaultInput {
|
|
|
12910
12920
|
clientMutationId?: string;
|
|
12911
12921
|
id: string;
|
|
12912
12922
|
}
|
|
12913
|
-
export interface CreateNodeTypeRegistryInput {
|
|
12914
|
-
clientMutationId?: string;
|
|
12915
|
-
nodeTypeRegistry: {
|
|
12916
|
-
name: string;
|
|
12917
|
-
slug: string;
|
|
12918
|
-
category: string;
|
|
12919
|
-
displayName?: string;
|
|
12920
|
-
description?: string;
|
|
12921
|
-
parameterSchema?: Record<string, unknown>;
|
|
12922
|
-
tags?: string[];
|
|
12923
|
-
};
|
|
12924
|
-
}
|
|
12925
|
-
export interface NodeTypeRegistryPatch {
|
|
12926
|
-
name?: string | null;
|
|
12927
|
-
slug?: string | null;
|
|
12928
|
-
category?: string | null;
|
|
12929
|
-
displayName?: string | null;
|
|
12930
|
-
description?: string | null;
|
|
12931
|
-
parameterSchema?: Record<string, unknown> | null;
|
|
12932
|
-
tags?: string[] | null;
|
|
12933
|
-
}
|
|
12934
|
-
export interface UpdateNodeTypeRegistryInput {
|
|
12935
|
-
clientMutationId?: string;
|
|
12936
|
-
name: string;
|
|
12937
|
-
nodeTypeRegistryPatch: NodeTypeRegistryPatch;
|
|
12938
|
-
}
|
|
12939
|
-
export interface DeleteNodeTypeRegistryInput {
|
|
12940
|
-
clientMutationId?: string;
|
|
12941
|
-
name: string;
|
|
12942
|
-
}
|
|
12943
12923
|
export interface CreateMembershipTypeInput {
|
|
12944
12924
|
clientMutationId?: string;
|
|
12945
12925
|
membershipType: {
|
|
@@ -13054,6 +13034,40 @@ export interface DeleteRlsModuleInput {
|
|
|
13054
13034
|
clientMutationId?: string;
|
|
13055
13035
|
id: string;
|
|
13056
13036
|
}
|
|
13037
|
+
export interface CreateNodeTypeRegistryInput {
|
|
13038
|
+
clientMutationId?: string;
|
|
13039
|
+
nodeTypeRegistry: {
|
|
13040
|
+
name: string;
|
|
13041
|
+
slug: string;
|
|
13042
|
+
category: string;
|
|
13043
|
+
displayName?: string;
|
|
13044
|
+
description?: string;
|
|
13045
|
+
summary?: string;
|
|
13046
|
+
parameterSchema?: Record<string, unknown>;
|
|
13047
|
+
guidance?: Record<string, unknown>;
|
|
13048
|
+
tags?: string[];
|
|
13049
|
+
};
|
|
13050
|
+
}
|
|
13051
|
+
export interface NodeTypeRegistryPatch {
|
|
13052
|
+
name?: string | null;
|
|
13053
|
+
slug?: string | null;
|
|
13054
|
+
category?: string | null;
|
|
13055
|
+
displayName?: string | null;
|
|
13056
|
+
description?: string | null;
|
|
13057
|
+
summary?: string | null;
|
|
13058
|
+
parameterSchema?: Record<string, unknown> | null;
|
|
13059
|
+
guidance?: Record<string, unknown> | null;
|
|
13060
|
+
tags?: string[] | null;
|
|
13061
|
+
}
|
|
13062
|
+
export interface UpdateNodeTypeRegistryInput {
|
|
13063
|
+
clientMutationId?: string;
|
|
13064
|
+
name: string;
|
|
13065
|
+
nodeTypeRegistryPatch: NodeTypeRegistryPatch;
|
|
13066
|
+
}
|
|
13067
|
+
export interface DeleteNodeTypeRegistryInput {
|
|
13068
|
+
clientMutationId?: string;
|
|
13069
|
+
name: string;
|
|
13070
|
+
}
|
|
13057
13071
|
export interface CreateOrgMembershipDefaultInput {
|
|
13058
13072
|
clientMutationId?: string;
|
|
13059
13073
|
orgMembershipDefault: {
|
|
@@ -23943,51 +23957,6 @@ export type DeleteOrgLimitDefaultPayloadSelect = {
|
|
|
23943
23957
|
select: OrgLimitDefaultEdgeSelect;
|
|
23944
23958
|
};
|
|
23945
23959
|
};
|
|
23946
|
-
export interface CreateNodeTypeRegistryPayload {
|
|
23947
|
-
clientMutationId?: string | null;
|
|
23948
|
-
/** The `NodeTypeRegistry` that was created by this mutation. */
|
|
23949
|
-
nodeTypeRegistry?: NodeTypeRegistry | null;
|
|
23950
|
-
nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null;
|
|
23951
|
-
}
|
|
23952
|
-
export type CreateNodeTypeRegistryPayloadSelect = {
|
|
23953
|
-
clientMutationId?: boolean;
|
|
23954
|
-
nodeTypeRegistry?: {
|
|
23955
|
-
select: NodeTypeRegistrySelect;
|
|
23956
|
-
};
|
|
23957
|
-
nodeTypeRegistryEdge?: {
|
|
23958
|
-
select: NodeTypeRegistryEdgeSelect;
|
|
23959
|
-
};
|
|
23960
|
-
};
|
|
23961
|
-
export interface UpdateNodeTypeRegistryPayload {
|
|
23962
|
-
clientMutationId?: string | null;
|
|
23963
|
-
/** The `NodeTypeRegistry` that was updated by this mutation. */
|
|
23964
|
-
nodeTypeRegistry?: NodeTypeRegistry | null;
|
|
23965
|
-
nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null;
|
|
23966
|
-
}
|
|
23967
|
-
export type UpdateNodeTypeRegistryPayloadSelect = {
|
|
23968
|
-
clientMutationId?: boolean;
|
|
23969
|
-
nodeTypeRegistry?: {
|
|
23970
|
-
select: NodeTypeRegistrySelect;
|
|
23971
|
-
};
|
|
23972
|
-
nodeTypeRegistryEdge?: {
|
|
23973
|
-
select: NodeTypeRegistryEdgeSelect;
|
|
23974
|
-
};
|
|
23975
|
-
};
|
|
23976
|
-
export interface DeleteNodeTypeRegistryPayload {
|
|
23977
|
-
clientMutationId?: string | null;
|
|
23978
|
-
/** The `NodeTypeRegistry` that was deleted by this mutation. */
|
|
23979
|
-
nodeTypeRegistry?: NodeTypeRegistry | null;
|
|
23980
|
-
nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null;
|
|
23981
|
-
}
|
|
23982
|
-
export type DeleteNodeTypeRegistryPayloadSelect = {
|
|
23983
|
-
clientMutationId?: boolean;
|
|
23984
|
-
nodeTypeRegistry?: {
|
|
23985
|
-
select: NodeTypeRegistrySelect;
|
|
23986
|
-
};
|
|
23987
|
-
nodeTypeRegistryEdge?: {
|
|
23988
|
-
select: NodeTypeRegistryEdgeSelect;
|
|
23989
|
-
};
|
|
23990
|
-
};
|
|
23991
23960
|
export interface CreateMembershipTypePayload {
|
|
23992
23961
|
clientMutationId?: string | null;
|
|
23993
23962
|
/** The `MembershipType` that was created by this mutation. */
|
|
@@ -24168,6 +24137,51 @@ export type DeleteRlsModulePayloadSelect = {
|
|
|
24168
24137
|
select: RlsModuleEdgeSelect;
|
|
24169
24138
|
};
|
|
24170
24139
|
};
|
|
24140
|
+
export interface CreateNodeTypeRegistryPayload {
|
|
24141
|
+
clientMutationId?: string | null;
|
|
24142
|
+
/** The `NodeTypeRegistry` that was created by this mutation. */
|
|
24143
|
+
nodeTypeRegistry?: NodeTypeRegistry | null;
|
|
24144
|
+
nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null;
|
|
24145
|
+
}
|
|
24146
|
+
export type CreateNodeTypeRegistryPayloadSelect = {
|
|
24147
|
+
clientMutationId?: boolean;
|
|
24148
|
+
nodeTypeRegistry?: {
|
|
24149
|
+
select: NodeTypeRegistrySelect;
|
|
24150
|
+
};
|
|
24151
|
+
nodeTypeRegistryEdge?: {
|
|
24152
|
+
select: NodeTypeRegistryEdgeSelect;
|
|
24153
|
+
};
|
|
24154
|
+
};
|
|
24155
|
+
export interface UpdateNodeTypeRegistryPayload {
|
|
24156
|
+
clientMutationId?: string | null;
|
|
24157
|
+
/** The `NodeTypeRegistry` that was updated by this mutation. */
|
|
24158
|
+
nodeTypeRegistry?: NodeTypeRegistry | null;
|
|
24159
|
+
nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null;
|
|
24160
|
+
}
|
|
24161
|
+
export type UpdateNodeTypeRegistryPayloadSelect = {
|
|
24162
|
+
clientMutationId?: boolean;
|
|
24163
|
+
nodeTypeRegistry?: {
|
|
24164
|
+
select: NodeTypeRegistrySelect;
|
|
24165
|
+
};
|
|
24166
|
+
nodeTypeRegistryEdge?: {
|
|
24167
|
+
select: NodeTypeRegistryEdgeSelect;
|
|
24168
|
+
};
|
|
24169
|
+
};
|
|
24170
|
+
export interface DeleteNodeTypeRegistryPayload {
|
|
24171
|
+
clientMutationId?: string | null;
|
|
24172
|
+
/** The `NodeTypeRegistry` that was deleted by this mutation. */
|
|
24173
|
+
nodeTypeRegistry?: NodeTypeRegistry | null;
|
|
24174
|
+
nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null;
|
|
24175
|
+
}
|
|
24176
|
+
export type DeleteNodeTypeRegistryPayloadSelect = {
|
|
24177
|
+
clientMutationId?: boolean;
|
|
24178
|
+
nodeTypeRegistry?: {
|
|
24179
|
+
select: NodeTypeRegistrySelect;
|
|
24180
|
+
};
|
|
24181
|
+
nodeTypeRegistryEdge?: {
|
|
24182
|
+
select: NodeTypeRegistryEdgeSelect;
|
|
24183
|
+
};
|
|
24184
|
+
};
|
|
24171
24185
|
export interface CreateOrgMembershipDefaultPayload {
|
|
24172
24186
|
clientMutationId?: string | null;
|
|
24173
24187
|
/** The `OrgMembershipDefault` that was created by this mutation. */
|
|
@@ -25621,18 +25635,6 @@ export type OrgLimitDefaultEdgeSelect = {
|
|
|
25621
25635
|
select: OrgLimitDefaultSelect;
|
|
25622
25636
|
};
|
|
25623
25637
|
};
|
|
25624
|
-
/** A `NodeTypeRegistry` edge in the connection. */
|
|
25625
|
-
export interface NodeTypeRegistryEdge {
|
|
25626
|
-
cursor?: string | null;
|
|
25627
|
-
/** The `NodeTypeRegistry` at the end of the edge. */
|
|
25628
|
-
node?: NodeTypeRegistry | null;
|
|
25629
|
-
}
|
|
25630
|
-
export type NodeTypeRegistryEdgeSelect = {
|
|
25631
|
-
cursor?: boolean;
|
|
25632
|
-
node?: {
|
|
25633
|
-
select: NodeTypeRegistrySelect;
|
|
25634
|
-
};
|
|
25635
|
-
};
|
|
25636
25638
|
/** A `MembershipType` edge in the connection. */
|
|
25637
25639
|
export interface MembershipTypeEdge {
|
|
25638
25640
|
cursor?: string | null;
|
|
@@ -25681,6 +25683,18 @@ export type RlsModuleEdgeSelect = {
|
|
|
25681
25683
|
select: RlsModuleSelect;
|
|
25682
25684
|
};
|
|
25683
25685
|
};
|
|
25686
|
+
/** A `NodeTypeRegistry` edge in the connection. */
|
|
25687
|
+
export interface NodeTypeRegistryEdge {
|
|
25688
|
+
cursor?: string | null;
|
|
25689
|
+
/** The `NodeTypeRegistry` at the end of the edge. */
|
|
25690
|
+
node?: NodeTypeRegistry | null;
|
|
25691
|
+
}
|
|
25692
|
+
export type NodeTypeRegistryEdgeSelect = {
|
|
25693
|
+
cursor?: boolean;
|
|
25694
|
+
node?: {
|
|
25695
|
+
select: NodeTypeRegistrySelect;
|
|
25696
|
+
};
|
|
25697
|
+
};
|
|
25684
25698
|
/** A `OrgMembershipDefault` edge in the connection. */
|
|
25685
25699
|
export interface OrgMembershipDefaultEdge {
|
|
25686
25700
|
cursor?: string | null;
|
|
@@ -99,11 +99,11 @@ export { RoleTypeModel } from './roleType';
|
|
|
99
99
|
export { MigrateFileModel } from './migrateFile';
|
|
100
100
|
export { AppLimitDefaultModel } from './appLimitDefault';
|
|
101
101
|
export { OrgLimitDefaultModel } from './orgLimitDefault';
|
|
102
|
-
export { NodeTypeRegistryModel } from './nodeTypeRegistry';
|
|
103
102
|
export { MembershipTypeModel } from './membershipType';
|
|
104
103
|
export { CommitModel } from './commit';
|
|
105
104
|
export { AppMembershipDefaultModel } from './appMembershipDefault';
|
|
106
105
|
export { RlsModuleModel } from './rlsModule';
|
|
106
|
+
export { NodeTypeRegistryModel } from './nodeTypeRegistry';
|
|
107
107
|
export { OrgMembershipDefaultModel } from './orgMembershipDefault';
|
|
108
108
|
export { SqlActionModel } from './sqlAction';
|
|
109
109
|
export { UserModel } from './user';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InvitesModuleModel = exports.EncryptedSecretsModuleModel = exports.EmailsModuleModel = exports.DenormalizedTableFieldModel = exports.DefaultIdsModuleModel = exports.CryptoAuthModuleModel = exports.CryptoAddressesModuleModel = exports.ConnectedAccountsModuleModel = exports.AppModel = exports.SiteModel = exports.ApiModel = exports.DatabaseTransferModel = exports.TriggerFunctionModel = exports.SiteThemeModel = exports.SiteModuleModel = exports.SiteMetadatumModel = exports.DomainModel = exports.ApiModuleModel = exports.ApiSchemaModel = exports.EnumModel = exports.DefaultPrivilegeModel = exports.SchemaGrantModel = exports.RelationProvisionModel = exports.SecureTableProvisionModel = exports.TableTemplateModuleModel = exports.EmbeddingChunkModel = exports.ViewRuleModel = exports.ViewGrantModel = exports.ViewTableModel = exports.ViewModel = exports.UniqueConstraintModel = exports.TriggerModel = exports.TableGrantModel = exports.PrimaryKeyConstraintModel = exports.PolicyModel = exports.IndexModel = exports.FullTextSearchModel = exports.ForeignKeyConstraintModel = exports.FieldModel = exports.CheckConstraintModel = exports.TableModel = exports.SchemaModel = exports.DatabaseModel = exports.AppLevelRequirementModel = exports.OrgPermissionModel = exports.AppPermissionModel = exports.ObjectModel = exports.OrgGetSubordinatesRecordModel = exports.OrgGetManagersRecordModel = exports.GetAllRecordModel = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.HierarchyModuleModel = exports.AppMembershipModel = exports.AstMigrationModel = exports.UserModel = exports.SqlActionModel = exports.OrgMembershipDefaultModel = exports.
|
|
4
|
+
exports.RlsModuleModel = exports.AppMembershipDefaultModel = exports.CommitModel = exports.MembershipTypeModel = exports.OrgLimitDefaultModel = exports.AppLimitDefaultModel = exports.MigrateFileModel = exports.RoleTypeModel = exports.AppPermissionDefaultModel = exports.StoreModel = exports.RefModel = exports.AuditLogModel = exports.OrgClaimedInviteModel = exports.OrgInviteModel = exports.ClaimedInviteModel = exports.InviteModel = exports.ConnectedAccountModel = exports.CryptoAddressModel = exports.PhoneNumberModel = exports.EmailModel = exports.AppLevelModel = exports.AppAchievementModel = exports.AppStepModel = exports.OrgLimitModel = exports.AppLimitModel = exports.OrgPermissionDefaultModel = exports.OrgChartEdgeGrantModel = exports.OrgChartEdgeModel = exports.OrgGrantModel = exports.OrgOwnerGrantModel = exports.OrgAdminGrantModel = exports.OrgMemberModel = exports.OrgMembershipModel = exports.AppGrantModel = exports.AppOwnerGrantModel = exports.AppAdminGrantModel = exports.DatabaseProvisionModuleModel = exports.BlueprintTemplateModel = exports.BlueprintModel = exports.UsersModuleModel = exports.UserAuthModuleModel = exports.SessionsModuleModel = exports.SecretsModuleModel = exports.ProfilesModuleModel = exports.PhoneNumbersModuleModel = exports.PermissionsModuleModel = exports.MembershipsModuleModel = exports.MembershipTypesModuleModel = exports.LimitsModuleModel = exports.LevelsModuleModel = void 0;
|
|
5
|
+
exports.HierarchyModuleModel = exports.AppMembershipModel = exports.AstMigrationModel = exports.UserModel = exports.SqlActionModel = exports.OrgMembershipDefaultModel = exports.NodeTypeRegistryModel = void 0;
|
|
6
6
|
/**
|
|
7
7
|
* Models barrel export
|
|
8
8
|
* @generated by @constructive-io/graphql-codegen
|
|
@@ -200,8 +200,6 @@ var appLimitDefault_1 = require("./appLimitDefault");
|
|
|
200
200
|
Object.defineProperty(exports, "AppLimitDefaultModel", { enumerable: true, get: function () { return appLimitDefault_1.AppLimitDefaultModel; } });
|
|
201
201
|
var orgLimitDefault_1 = require("./orgLimitDefault");
|
|
202
202
|
Object.defineProperty(exports, "OrgLimitDefaultModel", { enumerable: true, get: function () { return orgLimitDefault_1.OrgLimitDefaultModel; } });
|
|
203
|
-
var nodeTypeRegistry_1 = require("./nodeTypeRegistry");
|
|
204
|
-
Object.defineProperty(exports, "NodeTypeRegistryModel", { enumerable: true, get: function () { return nodeTypeRegistry_1.NodeTypeRegistryModel; } });
|
|
205
203
|
var membershipType_1 = require("./membershipType");
|
|
206
204
|
Object.defineProperty(exports, "MembershipTypeModel", { enumerable: true, get: function () { return membershipType_1.MembershipTypeModel; } });
|
|
207
205
|
var commit_1 = require("./commit");
|
|
@@ -210,6 +208,8 @@ var appMembershipDefault_1 = require("./appMembershipDefault");
|
|
|
210
208
|
Object.defineProperty(exports, "AppMembershipDefaultModel", { enumerable: true, get: function () { return appMembershipDefault_1.AppMembershipDefaultModel; } });
|
|
211
209
|
var rlsModule_1 = require("./rlsModule");
|
|
212
210
|
Object.defineProperty(exports, "RlsModuleModel", { enumerable: true, get: function () { return rlsModule_1.RlsModuleModel; } });
|
|
211
|
+
var nodeTypeRegistry_1 = require("./nodeTypeRegistry");
|
|
212
|
+
Object.defineProperty(exports, "NodeTypeRegistryModel", { enumerable: true, get: function () { return nodeTypeRegistry_1.NodeTypeRegistryModel; } });
|
|
213
213
|
var orgMembershipDefault_1 = require("./orgMembershipDefault");
|
|
214
214
|
Object.defineProperty(exports, "OrgMembershipDefaultModel", { enumerable: true, get: function () { return orgMembershipDefault_1.OrgMembershipDefaultModel; } });
|
|
215
215
|
var sqlAction_1 = require("./sqlAction");
|