@constructive-sdk/cli 0.8.1 → 0.8.3
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-level-requirement.js +2 -0
- package/admin/cli/commands/app-level.js +2 -0
- package/admin/cli/commands/app-permission.js +2 -0
- package/admin/cli/commands/invite.js +2 -0
- package/admin/cli/commands/membership-type.js +3 -0
- package/admin/cli/commands/org-chart-edge-grant.js +2 -0
- package/admin/cli/commands/org-chart-edge.js +2 -0
- package/admin/cli/commands/org-invite.js +2 -0
- package/admin/cli/commands/org-permission.js +2 -0
- package/admin/cli/commands.js +7 -7
- package/admin/cli/executor.d.ts +3 -3
- package/admin/orm/index.d.ts +6 -6
- package/admin/orm/index.js +6 -6
- package/admin/orm/input-types.d.ts +481 -386
- package/admin/orm/models/appAchievement.d.ts +1 -1
- package/admin/orm/models/appAdminGrant.d.ts +1 -1
- package/admin/orm/models/appGrant.d.ts +1 -1
- package/admin/orm/models/appLevel.d.ts +1 -1
- package/admin/orm/models/appLevelRequirement.d.ts +1 -1
- package/admin/orm/models/appLimit.d.ts +1 -1
- package/admin/orm/models/appLimitDefault.d.ts +1 -1
- package/admin/orm/models/appMembership.d.ts +1 -1
- package/admin/orm/models/appMembershipDefault.d.ts +1 -1
- package/admin/orm/models/appOwnerGrant.d.ts +1 -1
- package/admin/orm/models/appPermission.d.ts +1 -1
- package/admin/orm/models/appPermissionDefault.d.ts +1 -1
- package/admin/orm/models/appStep.d.ts +1 -1
- package/admin/orm/models/claimedInvite.d.ts +1 -1
- package/admin/orm/models/index.d.ts +3 -3
- package/admin/orm/models/index.js +7 -7
- package/admin/orm/models/invite.d.ts +1 -1
- package/admin/orm/models/membershipType.d.ts +1 -1
- package/admin/orm/models/orgAdminGrant.d.ts +1 -1
- package/admin/orm/models/orgChartEdge.d.ts +1 -1
- package/admin/orm/models/orgChartEdgeGrant.d.ts +1 -1
- package/admin/orm/models/orgClaimedInvite.d.ts +1 -1
- package/admin/orm/models/orgGetManagersRecord.d.ts +1 -1
- package/admin/orm/models/orgGetSubordinatesRecord.d.ts +1 -1
- package/admin/orm/models/orgGrant.d.ts +1 -1
- package/admin/orm/models/orgInvite.d.ts +1 -1
- package/admin/orm/models/orgLimit.d.ts +1 -1
- package/admin/orm/models/orgLimitDefault.d.ts +1 -1
- package/admin/orm/models/orgMember.d.ts +1 -1
- package/admin/orm/models/orgMembership.d.ts +1 -1
- package/admin/orm/models/orgMembershipDefault.d.ts +1 -1
- package/admin/orm/models/orgOwnerGrant.d.ts +1 -1
- package/admin/orm/models/orgPermission.d.ts +1 -1
- package/admin/orm/models/orgPermissionDefault.d.ts +1 -1
- package/admin/orm/query-builder.js +0 -2
- package/auth/cli/commands/audit-log.js +2 -0
- package/auth/cli/commands/connected-account.js +3 -0
- package/auth/cli/commands/crypto-address.js +2 -0
- package/auth/cli/commands/phone-number.js +3 -0
- package/auth/cli/commands/user.js +2 -4
- package/auth/cli/commands.js +3 -3
- package/auth/cli/executor.d.ts +1 -1
- package/auth/orm/index.d.ts +2 -2
- package/auth/orm/index.js +2 -2
- package/auth/orm/input-types.d.ts +189 -99
- package/auth/orm/models/auditLog.d.ts +1 -1
- package/auth/orm/models/connectedAccount.d.ts +1 -1
- package/auth/orm/models/cryptoAddress.d.ts +1 -1
- package/auth/orm/models/email.d.ts +1 -1
- package/auth/orm/models/index.d.ts +1 -1
- package/auth/orm/models/index.js +3 -3
- package/auth/orm/models/phoneNumber.d.ts +1 -1
- package/auth/orm/models/roleType.d.ts +1 -1
- package/auth/orm/models/user.d.ts +1 -1
- package/auth/orm/query-builder.js +0 -2
- package/esm/admin/cli/commands/app-level-requirement.js +2 -0
- package/esm/admin/cli/commands/app-level.js +2 -0
- package/esm/admin/cli/commands/app-permission.js +2 -0
- package/esm/admin/cli/commands/invite.js +2 -0
- package/esm/admin/cli/commands/membership-type.js +3 -0
- package/esm/admin/cli/commands/org-chart-edge-grant.js +2 -0
- package/esm/admin/cli/commands/org-chart-edge.js +2 -0
- package/esm/admin/cli/commands/org-invite.js +2 -0
- package/esm/admin/cli/commands/org-permission.js +2 -0
- package/esm/admin/cli/commands.js +7 -7
- package/esm/admin/cli/executor.d.ts +3 -3
- package/esm/admin/orm/index.d.ts +6 -6
- package/esm/admin/orm/index.js +6 -6
- package/esm/admin/orm/input-types.d.ts +481 -386
- package/esm/admin/orm/models/appAchievement.d.ts +1 -1
- package/esm/admin/orm/models/appAdminGrant.d.ts +1 -1
- package/esm/admin/orm/models/appGrant.d.ts +1 -1
- package/esm/admin/orm/models/appLevel.d.ts +1 -1
- package/esm/admin/orm/models/appLevelRequirement.d.ts +1 -1
- package/esm/admin/orm/models/appLimit.d.ts +1 -1
- package/esm/admin/orm/models/appLimitDefault.d.ts +1 -1
- package/esm/admin/orm/models/appMembership.d.ts +1 -1
- package/esm/admin/orm/models/appMembershipDefault.d.ts +1 -1
- package/esm/admin/orm/models/appOwnerGrant.d.ts +1 -1
- package/esm/admin/orm/models/appPermission.d.ts +1 -1
- package/esm/admin/orm/models/appPermissionDefault.d.ts +1 -1
- package/esm/admin/orm/models/appStep.d.ts +1 -1
- package/esm/admin/orm/models/claimedInvite.d.ts +1 -1
- package/esm/admin/orm/models/index.d.ts +3 -3
- package/esm/admin/orm/models/index.js +3 -3
- package/esm/admin/orm/models/invite.d.ts +1 -1
- package/esm/admin/orm/models/membershipType.d.ts +1 -1
- package/esm/admin/orm/models/orgAdminGrant.d.ts +1 -1
- package/esm/admin/orm/models/orgChartEdge.d.ts +1 -1
- package/esm/admin/orm/models/orgChartEdgeGrant.d.ts +1 -1
- package/esm/admin/orm/models/orgClaimedInvite.d.ts +1 -1
- package/esm/admin/orm/models/orgGetManagersRecord.d.ts +1 -1
- package/esm/admin/orm/models/orgGetSubordinatesRecord.d.ts +1 -1
- package/esm/admin/orm/models/orgGrant.d.ts +1 -1
- package/esm/admin/orm/models/orgInvite.d.ts +1 -1
- package/esm/admin/orm/models/orgLimit.d.ts +1 -1
- package/esm/admin/orm/models/orgLimitDefault.d.ts +1 -1
- package/esm/admin/orm/models/orgMember.d.ts +1 -1
- package/esm/admin/orm/models/orgMembership.d.ts +1 -1
- package/esm/admin/orm/models/orgMembershipDefault.d.ts +1 -1
- package/esm/admin/orm/models/orgOwnerGrant.d.ts +1 -1
- package/esm/admin/orm/models/orgPermission.d.ts +1 -1
- package/esm/admin/orm/models/orgPermissionDefault.d.ts +1 -1
- package/esm/admin/orm/query-builder.js +0 -2
- package/esm/auth/cli/commands/audit-log.js +2 -0
- package/esm/auth/cli/commands/connected-account.js +3 -0
- package/esm/auth/cli/commands/crypto-address.js +2 -0
- package/esm/auth/cli/commands/phone-number.js +3 -0
- package/esm/auth/cli/commands/user.js +2 -4
- package/esm/auth/cli/commands.js +3 -3
- package/esm/auth/cli/executor.d.ts +1 -1
- package/esm/auth/orm/index.d.ts +2 -2
- package/esm/auth/orm/index.js +2 -2
- package/esm/auth/orm/input-types.d.ts +189 -99
- package/esm/auth/orm/models/auditLog.d.ts +1 -1
- package/esm/auth/orm/models/connectedAccount.d.ts +1 -1
- package/esm/auth/orm/models/cryptoAddress.d.ts +1 -1
- package/esm/auth/orm/models/email.d.ts +1 -1
- package/esm/auth/orm/models/index.d.ts +1 -1
- package/esm/auth/orm/models/index.js +1 -1
- package/esm/auth/orm/models/phoneNumber.d.ts +1 -1
- package/esm/auth/orm/models/roleType.d.ts +1 -1
- package/esm/auth/orm/models/user.d.ts +1 -1
- package/esm/auth/orm/query-builder.js +0 -2
- package/esm/objects/cli/commands/commit.js +2 -0
- package/esm/objects/cli/commands/object.js +0 -4
- package/esm/objects/cli/commands/ref.js +2 -0
- package/esm/objects/cli/commands/store.js +2 -0
- package/esm/objects/orm/input-types.d.ts +33 -3
- package/esm/objects/orm/models/commit.d.ts +1 -1
- package/esm/objects/orm/models/getAllRecord.d.ts +1 -1
- package/esm/objects/orm/models/object.d.ts +1 -1
- package/esm/objects/orm/models/ref.d.ts +1 -1
- package/esm/objects/orm/models/store.d.ts +1 -1
- package/esm/objects/orm/query-builder.js +0 -2
- package/esm/public/cli/commands/api-module.js +2 -0
- package/esm/public/cli/commands/api.js +5 -0
- package/esm/public/cli/commands/app-level-requirement.js +2 -0
- package/esm/public/cli/commands/app-level.js +2 -0
- package/esm/public/cli/commands/app-permission.js +2 -0
- package/esm/public/cli/commands/app.js +4 -0
- package/esm/public/cli/commands/ast-migration.js +2 -0
- package/esm/public/cli/commands/audit-log.js +2 -0
- package/esm/public/cli/commands/check-constraint.js +4 -0
- package/esm/public/cli/commands/commit.js +2 -0
- package/esm/public/cli/commands/connected-account.js +3 -0
- package/esm/public/cli/commands/connected-accounts-module.js +2 -0
- package/esm/public/cli/commands/crypto-address.js +2 -0
- package/esm/public/cli/commands/crypto-addresses-module.js +3 -0
- package/esm/public/cli/commands/crypto-auth-module.js +7 -0
- package/esm/public/cli/commands/database-provision-module.js +6 -0
- package/esm/public/cli/commands/database.js +4 -0
- package/esm/public/cli/commands/default-privilege.js +4 -0
- package/esm/public/cli/commands/denormalized-table-field.js +2 -0
- package/esm/public/cli/commands/emails-module.js +2 -0
- package/esm/public/cli/commands/encrypted-secrets-module.js +2 -0
- package/esm/public/cli/commands/field-module.js +2 -0
- package/esm/public/cli/commands/field.js +7 -0
- package/esm/public/cli/commands/foreign-key-constraint.js +7 -0
- package/esm/public/cli/commands/hierarchy-module.js +11 -0
- package/esm/public/cli/commands/index.js +46 -0
- package/esm/public/cli/commands/invite.js +2 -0
- package/esm/public/cli/commands/invites-module.js +5 -0
- package/esm/public/cli/commands/levels-module.js +16 -0
- package/esm/public/cli/commands/limits-module.js +10 -0
- package/esm/public/cli/commands/membership-type.js +3 -0
- package/esm/public/cli/commands/membership-types-module.js +2 -0
- package/esm/public/cli/commands/memberships-module.js +13 -0
- package/esm/public/cli/commands/node-type-registry.js +6 -0
- package/esm/public/cli/commands/object.js +0 -4
- package/esm/public/cli/commands/org-chart-edge-grant.js +2 -0
- package/esm/public/cli/commands/org-chart-edge.js +2 -0
- package/esm/public/cli/commands/org-invite.js +2 -0
- package/esm/public/cli/commands/org-permission.js +2 -0
- package/esm/public/cli/commands/permissions-module.js +8 -0
- package/esm/public/cli/commands/phone-number.js +3 -0
- package/esm/public/cli/commands/phone-numbers-module.js +2 -0
- package/esm/public/cli/commands/policy.js +6 -0
- package/esm/public/cli/commands/primary-key-constraint.js +4 -0
- package/esm/public/cli/commands/profiles-module.js +6 -0
- package/esm/public/cli/commands/ref.js +2 -0
- package/esm/public/cli/commands/relation-provision.js +11 -0
- package/esm/public/cli/commands/rls-module.js +5 -21
- package/esm/public/cli/commands/schema-grant.js +2 -0
- package/esm/public/cli/commands/schema.js +6 -0
- package/esm/public/cli/commands/secrets-module.js +2 -0
- package/esm/public/cli/commands/secure-table-provision.js +27 -0
- package/esm/public/cli/commands/sessions-module.js +4 -0
- package/esm/public/cli/commands/site-metadatum.js +3 -0
- package/esm/public/cli/commands/site-module.js +2 -0
- package/esm/public/cli/commands/site.js +4 -0
- package/esm/public/cli/commands/sql-migration.js +7 -0
- package/esm/public/cli/commands/store.js +2 -0
- package/esm/public/cli/commands/table-grant.js +3 -0
- package/esm/public/cli/commands/table-template-module.js +3 -0
- package/esm/public/cli/commands/table.js +7 -0
- package/esm/public/cli/commands/trigger-function.js +3 -0
- package/esm/public/cli/commands/trigger.js +5 -0
- package/esm/public/cli/commands/unique-constraint.js +5 -0
- package/esm/public/cli/commands/user-auth-module.js +17 -0
- package/esm/public/cli/commands/user.js +2 -4
- package/esm/public/cli/commands/users-module.js +3 -0
- package/esm/public/cli/commands/uuid-module.js +3 -0
- package/esm/public/cli/commands/view-grant.js +3 -0
- package/esm/public/cli/commands/view-rule.js +4 -0
- package/esm/public/cli/commands/view.js +5 -0
- package/esm/public/cli/commands.js +15 -17
- package/esm/public/cli/executor.d.ts +11 -12
- package/esm/public/orm/index.d.ts +17 -19
- package/esm/public/orm/index.js +12 -14
- package/esm/public/orm/input-types.d.ts +2363 -927
- package/esm/public/orm/input-types.js +0 -3
- package/esm/public/orm/models/api.d.ts +1 -1
- package/esm/public/orm/models/apiModule.d.ts +1 -1
- package/esm/public/orm/models/apiSchema.d.ts +1 -1
- package/esm/public/orm/models/app.d.ts +1 -1
- package/esm/public/orm/models/appAchievement.d.ts +1 -1
- package/esm/public/orm/models/appAdminGrant.d.ts +1 -1
- package/esm/public/orm/models/appGrant.d.ts +1 -1
- package/esm/public/orm/models/appLevel.d.ts +1 -1
- package/esm/public/orm/models/appLevelRequirement.d.ts +1 -1
- package/esm/public/orm/models/appLimit.d.ts +1 -1
- package/esm/public/orm/models/appLimitDefault.d.ts +1 -1
- package/esm/public/orm/models/appMembership.d.ts +1 -1
- package/esm/public/orm/models/appMembershipDefault.d.ts +1 -1
- package/esm/public/orm/models/appOwnerGrant.d.ts +1 -1
- package/esm/public/orm/models/appPermission.d.ts +1 -1
- package/esm/public/orm/models/appPermissionDefault.d.ts +1 -1
- package/esm/public/orm/models/appStep.d.ts +1 -1
- package/esm/public/orm/models/astMigration.d.ts +1 -1
- package/esm/public/orm/models/auditLog.d.ts +1 -1
- package/esm/public/orm/models/checkConstraint.d.ts +1 -1
- package/esm/public/orm/models/claimedInvite.d.ts +1 -1
- package/esm/public/orm/models/commit.d.ts +1 -1
- package/esm/public/orm/models/connectedAccount.d.ts +1 -1
- package/esm/public/orm/models/connectedAccountsModule.d.ts +1 -1
- package/esm/public/orm/models/cryptoAddress.d.ts +1 -1
- package/esm/public/orm/models/cryptoAddressesModule.d.ts +1 -1
- package/esm/public/orm/models/cryptoAuthModule.d.ts +1 -1
- package/esm/public/orm/models/database.d.ts +1 -1
- package/esm/public/orm/models/databaseProvisionModule.d.ts +1 -1
- package/esm/public/orm/models/defaultIdsModule.d.ts +1 -1
- package/esm/public/orm/models/defaultPrivilege.d.ts +1 -1
- package/esm/public/orm/models/denormalizedTableField.d.ts +1 -1
- package/esm/public/orm/models/domain.d.ts +1 -1
- package/esm/public/orm/models/email.d.ts +1 -1
- package/esm/public/orm/models/emailsModule.d.ts +1 -1
- package/esm/public/orm/models/encryptedSecretsModule.d.ts +1 -1
- package/esm/public/orm/models/field.d.ts +1 -1
- package/esm/public/orm/models/fieldModule.d.ts +1 -1
- package/esm/public/orm/models/foreignKeyConstraint.d.ts +1 -1
- package/esm/public/orm/models/fullTextSearch.d.ts +1 -1
- package/esm/public/orm/models/getAllRecord.d.ts +1 -1
- package/esm/public/orm/models/hierarchyModule.d.ts +1 -1
- package/esm/public/orm/models/index.d.ts +6 -7
- package/esm/public/orm/models/index.js +6 -7
- package/esm/public/orm/models/indexModel.d.ts +1 -1
- package/esm/public/orm/models/invite.d.ts +1 -1
- package/esm/public/orm/models/invitesModule.d.ts +1 -1
- package/esm/public/orm/models/levelsModule.d.ts +1 -1
- package/esm/public/orm/models/limitsModule.d.ts +1 -1
- package/esm/public/orm/models/membershipType.d.ts +1 -1
- package/esm/public/orm/models/membershipTypesModule.d.ts +1 -1
- package/esm/public/orm/models/membershipsModule.d.ts +1 -1
- package/esm/public/orm/models/nodeTypeRegistry.d.ts +1 -1
- package/esm/public/orm/models/object.d.ts +1 -1
- package/esm/public/orm/models/orgAdminGrant.d.ts +1 -1
- package/esm/public/orm/models/orgChartEdge.d.ts +1 -1
- package/esm/public/orm/models/orgChartEdgeGrant.d.ts +1 -1
- package/esm/public/orm/models/orgClaimedInvite.d.ts +1 -1
- package/esm/public/orm/models/orgGetManagersRecord.d.ts +1 -1
- package/esm/public/orm/models/orgGetSubordinatesRecord.d.ts +1 -1
- package/esm/public/orm/models/orgGrant.d.ts +1 -1
- package/esm/public/orm/models/orgInvite.d.ts +1 -1
- package/esm/public/orm/models/orgLimit.d.ts +1 -1
- package/esm/public/orm/models/orgLimitDefault.d.ts +1 -1
- package/esm/public/orm/models/orgMember.d.ts +1 -1
- package/esm/public/orm/models/orgMembership.d.ts +1 -1
- package/esm/public/orm/models/orgMembershipDefault.d.ts +1 -1
- package/esm/public/orm/models/orgOwnerGrant.d.ts +1 -1
- package/esm/public/orm/models/orgPermission.d.ts +1 -1
- package/esm/public/orm/models/orgPermissionDefault.d.ts +1 -1
- package/esm/public/orm/models/permissionsModule.d.ts +1 -1
- package/esm/public/orm/models/phoneNumber.d.ts +1 -1
- package/esm/public/orm/models/phoneNumbersModule.d.ts +1 -1
- package/esm/public/orm/models/policy.d.ts +1 -1
- package/esm/public/orm/models/primaryKeyConstraint.d.ts +1 -1
- package/esm/public/orm/models/profilesModule.d.ts +1 -1
- package/esm/public/orm/models/ref.d.ts +1 -1
- package/esm/public/orm/models/relationProvision.d.ts +1 -1
- package/esm/public/orm/models/rlsModule.d.ts +1 -1
- package/esm/public/orm/models/roleType.d.ts +1 -1
- package/esm/public/orm/models/schema.d.ts +1 -1
- package/esm/public/orm/models/schemaGrant.d.ts +1 -1
- package/esm/public/orm/models/secretsModule.d.ts +1 -1
- package/esm/public/orm/models/secureTableProvision.d.ts +1 -1
- package/esm/public/orm/models/sessionsModule.d.ts +1 -1
- package/esm/public/orm/models/site.d.ts +1 -1
- package/esm/public/orm/models/siteMetadatum.d.ts +1 -1
- package/esm/public/orm/models/siteModule.d.ts +1 -1
- package/esm/public/orm/models/siteTheme.d.ts +1 -1
- package/esm/public/orm/models/sqlMigration.d.ts +1 -1
- package/esm/public/orm/models/store.d.ts +1 -1
- package/esm/public/orm/models/table.d.ts +1 -1
- package/esm/public/orm/models/tableGrant.d.ts +1 -1
- package/esm/public/orm/models/tableTemplateModule.d.ts +1 -1
- package/esm/public/orm/models/trigger.d.ts +1 -1
- package/esm/public/orm/models/triggerFunction.d.ts +1 -1
- package/esm/public/orm/models/uniqueConstraint.d.ts +1 -1
- package/esm/public/orm/models/user.d.ts +1 -1
- package/esm/public/orm/models/userAuthModule.d.ts +1 -1
- package/esm/public/orm/models/usersModule.d.ts +1 -1
- package/esm/public/orm/models/uuidModule.d.ts +1 -1
- package/esm/public/orm/models/view.d.ts +1 -1
- package/esm/public/orm/models/viewGrant.d.ts +1 -1
- package/esm/public/orm/models/viewRule.d.ts +1 -1
- package/esm/public/orm/models/viewTable.d.ts +1 -1
- package/esm/public/orm/mutation/index.d.ts +9 -9
- package/esm/public/orm/mutation/index.js +12 -12
- package/esm/public/orm/query-builder.js +0 -2
- package/objects/cli/commands/commit.js +2 -0
- package/objects/cli/commands/object.js +0 -4
- package/objects/cli/commands/ref.js +2 -0
- package/objects/cli/commands/store.js +2 -0
- package/objects/orm/input-types.d.ts +33 -3
- package/objects/orm/models/commit.d.ts +1 -1
- package/objects/orm/models/getAllRecord.d.ts +1 -1
- package/objects/orm/models/object.d.ts +1 -1
- package/objects/orm/models/ref.d.ts +1 -1
- package/objects/orm/models/store.d.ts +1 -1
- package/objects/orm/query-builder.js +0 -2
- package/package.json +3 -3
- package/public/cli/commands/api-module.js +2 -0
- package/public/cli/commands/api.js +5 -0
- package/public/cli/commands/app-level-requirement.js +2 -0
- package/public/cli/commands/app-level.js +2 -0
- package/public/cli/commands/app-permission.js +2 -0
- package/public/cli/commands/app.js +4 -0
- package/public/cli/commands/ast-migration.js +2 -0
- package/public/cli/commands/audit-log.js +2 -0
- package/public/cli/commands/check-constraint.js +4 -0
- package/public/cli/commands/commit.js +2 -0
- package/public/cli/commands/connected-account.js +3 -0
- package/public/cli/commands/connected-accounts-module.js +2 -0
- package/public/cli/commands/crypto-address.js +2 -0
- package/public/cli/commands/crypto-addresses-module.js +3 -0
- package/public/cli/commands/crypto-auth-module.js +7 -0
- package/public/cli/commands/database-provision-module.js +6 -0
- package/public/cli/commands/database.js +4 -0
- package/public/cli/commands/default-privilege.js +4 -0
- package/public/cli/commands/denormalized-table-field.js +2 -0
- package/public/cli/commands/emails-module.js +2 -0
- package/public/cli/commands/encrypted-secrets-module.js +2 -0
- package/public/cli/commands/field-module.js +2 -0
- package/public/cli/commands/field.js +7 -0
- package/public/cli/commands/foreign-key-constraint.js +7 -0
- package/public/cli/commands/hierarchy-module.js +11 -0
- package/public/cli/commands/index.js +46 -0
- package/public/cli/commands/invite.js +2 -0
- package/public/cli/commands/invites-module.js +5 -0
- package/public/cli/commands/levels-module.js +16 -0
- package/public/cli/commands/limits-module.js +10 -0
- package/public/cli/commands/membership-type.js +3 -0
- package/public/cli/commands/membership-types-module.js +2 -0
- package/public/cli/commands/memberships-module.js +13 -0
- package/public/cli/commands/node-type-registry.js +6 -0
- package/public/cli/commands/object.js +0 -4
- package/public/cli/commands/org-chart-edge-grant.js +2 -0
- package/public/cli/commands/org-chart-edge.js +2 -0
- package/public/cli/commands/org-invite.js +2 -0
- package/public/cli/commands/org-permission.js +2 -0
- package/public/cli/commands/permissions-module.js +8 -0
- package/public/cli/commands/phone-number.js +3 -0
- package/public/cli/commands/phone-numbers-module.js +2 -0
- package/public/cli/commands/policy.js +6 -0
- package/public/cli/commands/primary-key-constraint.js +4 -0
- package/public/cli/commands/profiles-module.js +6 -0
- package/public/cli/commands/ref.js +2 -0
- package/public/cli/commands/relation-provision.js +11 -0
- package/public/cli/commands/rls-module.js +5 -21
- package/public/cli/commands/schema-grant.js +2 -0
- package/public/cli/commands/schema.js +6 -0
- package/public/cli/commands/secrets-module.js +2 -0
- package/public/cli/commands/secure-table-provision.js +27 -0
- package/public/cli/commands/sessions-module.js +4 -0
- package/public/cli/commands/site-metadatum.js +3 -0
- package/public/cli/commands/site-module.js +2 -0
- package/public/cli/commands/site.js +4 -0
- package/public/cli/commands/sql-migration.js +7 -0
- package/public/cli/commands/store.js +2 -0
- package/public/cli/commands/table-grant.js +3 -0
- package/public/cli/commands/table-template-module.js +3 -0
- package/public/cli/commands/table.js +7 -0
- package/public/cli/commands/trigger-function.js +3 -0
- package/public/cli/commands/trigger.js +5 -0
- package/public/cli/commands/unique-constraint.js +5 -0
- package/public/cli/commands/user-auth-module.js +17 -0
- package/public/cli/commands/user.js +2 -4
- package/public/cli/commands/users-module.js +3 -0
- package/public/cli/commands/uuid-module.js +3 -0
- package/public/cli/commands/view-grant.js +3 -0
- package/public/cli/commands/view-rule.js +4 -0
- package/public/cli/commands/view.js +5 -0
- package/public/cli/commands.js +15 -17
- package/public/cli/executor.d.ts +11 -12
- package/public/orm/index.d.ts +17 -19
- package/public/orm/index.js +12 -14
- package/public/orm/input-types.d.ts +2363 -927
- package/public/orm/input-types.js +0 -3
- package/public/orm/models/api.d.ts +1 -1
- package/public/orm/models/apiModule.d.ts +1 -1
- package/public/orm/models/apiSchema.d.ts +1 -1
- package/public/orm/models/app.d.ts +1 -1
- package/public/orm/models/appAchievement.d.ts +1 -1
- package/public/orm/models/appAdminGrant.d.ts +1 -1
- package/public/orm/models/appGrant.d.ts +1 -1
- package/public/orm/models/appLevel.d.ts +1 -1
- package/public/orm/models/appLevelRequirement.d.ts +1 -1
- package/public/orm/models/appLimit.d.ts +1 -1
- package/public/orm/models/appLimitDefault.d.ts +1 -1
- package/public/orm/models/appMembership.d.ts +1 -1
- package/public/orm/models/appMembershipDefault.d.ts +1 -1
- package/public/orm/models/appOwnerGrant.d.ts +1 -1
- package/public/orm/models/appPermission.d.ts +1 -1
- package/public/orm/models/appPermissionDefault.d.ts +1 -1
- package/public/orm/models/appStep.d.ts +1 -1
- package/public/orm/models/astMigration.d.ts +1 -1
- package/public/orm/models/auditLog.d.ts +1 -1
- package/public/orm/models/checkConstraint.d.ts +1 -1
- package/public/orm/models/claimedInvite.d.ts +1 -1
- package/public/orm/models/commit.d.ts +1 -1
- package/public/orm/models/connectedAccount.d.ts +1 -1
- package/public/orm/models/connectedAccountsModule.d.ts +1 -1
- package/public/orm/models/cryptoAddress.d.ts +1 -1
- package/public/orm/models/cryptoAddressesModule.d.ts +1 -1
- package/public/orm/models/cryptoAuthModule.d.ts +1 -1
- package/public/orm/models/database.d.ts +1 -1
- package/public/orm/models/databaseProvisionModule.d.ts +1 -1
- package/public/orm/models/defaultIdsModule.d.ts +1 -1
- package/public/orm/models/defaultPrivilege.d.ts +1 -1
- package/public/orm/models/denormalizedTableField.d.ts +1 -1
- package/public/orm/models/domain.d.ts +1 -1
- package/public/orm/models/email.d.ts +1 -1
- package/public/orm/models/emailsModule.d.ts +1 -1
- package/public/orm/models/encryptedSecretsModule.d.ts +1 -1
- package/public/orm/models/field.d.ts +1 -1
- package/public/orm/models/fieldModule.d.ts +1 -1
- package/public/orm/models/foreignKeyConstraint.d.ts +1 -1
- package/public/orm/models/fullTextSearch.d.ts +1 -1
- package/public/orm/models/getAllRecord.d.ts +1 -1
- package/public/orm/models/hierarchyModule.d.ts +1 -1
- package/public/orm/models/index.d.ts +6 -7
- package/public/orm/models/index.js +15 -17
- package/public/orm/models/indexModel.d.ts +1 -1
- package/public/orm/models/invite.d.ts +1 -1
- package/public/orm/models/invitesModule.d.ts +1 -1
- package/public/orm/models/levelsModule.d.ts +1 -1
- package/public/orm/models/limitsModule.d.ts +1 -1
- package/public/orm/models/membershipType.d.ts +1 -1
- package/public/orm/models/membershipTypesModule.d.ts +1 -1
- package/public/orm/models/membershipsModule.d.ts +1 -1
- package/public/orm/models/nodeTypeRegistry.d.ts +1 -1
- package/public/orm/models/object.d.ts +1 -1
- package/public/orm/models/orgAdminGrant.d.ts +1 -1
- package/public/orm/models/orgChartEdge.d.ts +1 -1
- package/public/orm/models/orgChartEdgeGrant.d.ts +1 -1
- package/public/orm/models/orgClaimedInvite.d.ts +1 -1
- package/public/orm/models/orgGetManagersRecord.d.ts +1 -1
- package/public/orm/models/orgGetSubordinatesRecord.d.ts +1 -1
- package/public/orm/models/orgGrant.d.ts +1 -1
- package/public/orm/models/orgInvite.d.ts +1 -1
- package/public/orm/models/orgLimit.d.ts +1 -1
- package/public/orm/models/orgLimitDefault.d.ts +1 -1
- package/public/orm/models/orgMember.d.ts +1 -1
- package/public/orm/models/orgMembership.d.ts +1 -1
- package/public/orm/models/orgMembershipDefault.d.ts +1 -1
- package/public/orm/models/orgOwnerGrant.d.ts +1 -1
- package/public/orm/models/orgPermission.d.ts +1 -1
- package/public/orm/models/orgPermissionDefault.d.ts +1 -1
- package/public/orm/models/permissionsModule.d.ts +1 -1
- package/public/orm/models/phoneNumber.d.ts +1 -1
- package/public/orm/models/phoneNumbersModule.d.ts +1 -1
- package/public/orm/models/policy.d.ts +1 -1
- package/public/orm/models/primaryKeyConstraint.d.ts +1 -1
- package/public/orm/models/profilesModule.d.ts +1 -1
- package/public/orm/models/ref.d.ts +1 -1
- package/public/orm/models/relationProvision.d.ts +1 -1
- package/public/orm/models/rlsModule.d.ts +1 -1
- package/public/orm/models/roleType.d.ts +1 -1
- package/public/orm/models/schema.d.ts +1 -1
- package/public/orm/models/schemaGrant.d.ts +1 -1
- package/public/orm/models/secretsModule.d.ts +1 -1
- package/public/orm/models/secureTableProvision.d.ts +1 -1
- package/public/orm/models/sessionsModule.d.ts +1 -1
- package/public/orm/models/site.d.ts +1 -1
- package/public/orm/models/siteMetadatum.d.ts +1 -1
- package/public/orm/models/siteModule.d.ts +1 -1
- package/public/orm/models/siteTheme.d.ts +1 -1
- package/public/orm/models/sqlMigration.d.ts +1 -1
- package/public/orm/models/store.d.ts +1 -1
- package/public/orm/models/table.d.ts +1 -1
- package/public/orm/models/tableGrant.d.ts +1 -1
- package/public/orm/models/tableTemplateModule.d.ts +1 -1
- package/public/orm/models/trigger.d.ts +1 -1
- package/public/orm/models/triggerFunction.d.ts +1 -1
- package/public/orm/models/uniqueConstraint.d.ts +1 -1
- package/public/orm/models/user.d.ts +1 -1
- package/public/orm/models/userAuthModule.d.ts +1 -1
- package/public/orm/models/usersModule.d.ts +1 -1
- package/public/orm/models/uuidModule.d.ts +1 -1
- package/public/orm/models/view.d.ts +1 -1
- package/public/orm/models/viewGrant.d.ts +1 -1
- package/public/orm/models/viewRule.d.ts +1 -1
- package/public/orm/models/viewTable.d.ts +1 -1
- package/public/orm/mutation/index.d.ts +9 -9
- package/public/orm/mutation/index.js +12 -12
- package/public/orm/query-builder.js +0 -2
- package/esm/public/cli/commands/table-module.d.ts +0 -8
- package/esm/public/cli/commands/table-module.js +0 -354
- package/esm/public/orm/models/tableModule.d.ts +0 -56
- package/esm/public/orm/models/tableModule.js +0 -94
- package/public/cli/commands/table-module.d.ts +0 -8
- package/public/cli/commands/table-module.js +0 -356
- package/public/orm/models/tableModule.d.ts +0 -56
- package/public/orm/models/tableModule.js +0 -98
|
@@ -1,356 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
/**
|
|
4
|
-
* CLI commands for TableModule
|
|
5
|
-
* @generated by @constructive-io/graphql-codegen
|
|
6
|
-
* DO NOT EDIT - changes will be overwritten
|
|
7
|
-
*/
|
|
8
|
-
const inquirerer_1 = require("inquirerer");
|
|
9
|
-
const executor_1 = require("../executor");
|
|
10
|
-
const utils_1 = require("../utils");
|
|
11
|
-
const fieldSchema = {
|
|
12
|
-
id: 'uuid',
|
|
13
|
-
databaseId: 'uuid',
|
|
14
|
-
schemaId: 'uuid',
|
|
15
|
-
tableId: 'uuid',
|
|
16
|
-
tableName: 'string',
|
|
17
|
-
nodeType: 'string',
|
|
18
|
-
useRls: 'boolean',
|
|
19
|
-
data: 'json',
|
|
20
|
-
fields: 'uuid',
|
|
21
|
-
};
|
|
22
|
-
const usage = '\ntable-module <command>\n\nCommands:\n list List all tableModule records\n get Get a tableModule by ID\n create Create a new tableModule\n update Update an existing tableModule\n delete Delete a tableModule\n\n --help, -h Show this help message\n';
|
|
23
|
-
exports.default = async (argv, prompter, _options) => {
|
|
24
|
-
if (argv.help || argv.h) {
|
|
25
|
-
console.log(usage);
|
|
26
|
-
process.exit(0);
|
|
27
|
-
}
|
|
28
|
-
const { first: subcommand, newArgv } = (0, inquirerer_1.extractFirst)(argv);
|
|
29
|
-
if (!subcommand) {
|
|
30
|
-
const answer = await prompter.prompt(argv, [
|
|
31
|
-
{
|
|
32
|
-
type: 'autocomplete',
|
|
33
|
-
name: 'subcommand',
|
|
34
|
-
message: 'What do you want to do?',
|
|
35
|
-
options: ['list', 'get', 'create', 'update', 'delete'],
|
|
36
|
-
},
|
|
37
|
-
]);
|
|
38
|
-
return handleTableSubcommand(answer.subcommand, newArgv, prompter);
|
|
39
|
-
}
|
|
40
|
-
return handleTableSubcommand(subcommand, newArgv, prompter);
|
|
41
|
-
};
|
|
42
|
-
async function handleTableSubcommand(subcommand, argv, prompter) {
|
|
43
|
-
switch (subcommand) {
|
|
44
|
-
case 'list':
|
|
45
|
-
return handleList(argv, prompter);
|
|
46
|
-
case 'get':
|
|
47
|
-
return handleGet(argv, prompter);
|
|
48
|
-
case 'create':
|
|
49
|
-
return handleCreate(argv, prompter);
|
|
50
|
-
case 'update':
|
|
51
|
-
return handleUpdate(argv, prompter);
|
|
52
|
-
case 'delete':
|
|
53
|
-
return handleDelete(argv, prompter);
|
|
54
|
-
default:
|
|
55
|
-
console.log(usage);
|
|
56
|
-
process.exit(1);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
async function handleList(_argv, _prompter) {
|
|
60
|
-
try {
|
|
61
|
-
const client = (0, executor_1.getClient)();
|
|
62
|
-
const result = await client.tableModule
|
|
63
|
-
.findMany({
|
|
64
|
-
select: {
|
|
65
|
-
id: true,
|
|
66
|
-
databaseId: true,
|
|
67
|
-
schemaId: true,
|
|
68
|
-
tableId: true,
|
|
69
|
-
tableName: true,
|
|
70
|
-
nodeType: true,
|
|
71
|
-
useRls: true,
|
|
72
|
-
data: true,
|
|
73
|
-
fields: true,
|
|
74
|
-
},
|
|
75
|
-
})
|
|
76
|
-
.execute();
|
|
77
|
-
console.log(JSON.stringify(result, null, 2));
|
|
78
|
-
}
|
|
79
|
-
catch (error) {
|
|
80
|
-
console.error('Failed to list records.');
|
|
81
|
-
if (error instanceof Error) {
|
|
82
|
-
console.error(error.message);
|
|
83
|
-
}
|
|
84
|
-
process.exit(1);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
async function handleGet(argv, prompter) {
|
|
88
|
-
try {
|
|
89
|
-
const answers = await prompter.prompt(argv, [
|
|
90
|
-
{
|
|
91
|
-
type: 'text',
|
|
92
|
-
name: 'id',
|
|
93
|
-
message: 'id',
|
|
94
|
-
required: true,
|
|
95
|
-
},
|
|
96
|
-
]);
|
|
97
|
-
const client = (0, executor_1.getClient)();
|
|
98
|
-
const result = await client.tableModule
|
|
99
|
-
.findOne({
|
|
100
|
-
id: answers.id,
|
|
101
|
-
select: {
|
|
102
|
-
id: true,
|
|
103
|
-
databaseId: true,
|
|
104
|
-
schemaId: true,
|
|
105
|
-
tableId: true,
|
|
106
|
-
tableName: true,
|
|
107
|
-
nodeType: true,
|
|
108
|
-
useRls: true,
|
|
109
|
-
data: true,
|
|
110
|
-
fields: true,
|
|
111
|
-
},
|
|
112
|
-
})
|
|
113
|
-
.execute();
|
|
114
|
-
console.log(JSON.stringify(result, null, 2));
|
|
115
|
-
}
|
|
116
|
-
catch (error) {
|
|
117
|
-
console.error('Record not found.');
|
|
118
|
-
if (error instanceof Error) {
|
|
119
|
-
console.error(error.message);
|
|
120
|
-
}
|
|
121
|
-
process.exit(1);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
async function handleCreate(argv, prompter) {
|
|
125
|
-
try {
|
|
126
|
-
const rawAnswers = await prompter.prompt(argv, [
|
|
127
|
-
{
|
|
128
|
-
type: 'text',
|
|
129
|
-
name: 'databaseId',
|
|
130
|
-
message: 'databaseId',
|
|
131
|
-
required: true,
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
type: 'text',
|
|
135
|
-
name: 'schemaId',
|
|
136
|
-
message: 'schemaId',
|
|
137
|
-
required: false,
|
|
138
|
-
skipPrompt: true,
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
type: 'text',
|
|
142
|
-
name: 'tableId',
|
|
143
|
-
message: 'tableId',
|
|
144
|
-
required: false,
|
|
145
|
-
skipPrompt: true,
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
type: 'text',
|
|
149
|
-
name: 'tableName',
|
|
150
|
-
message: 'tableName',
|
|
151
|
-
required: false,
|
|
152
|
-
skipPrompt: true,
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
type: 'text',
|
|
156
|
-
name: 'nodeType',
|
|
157
|
-
message: 'nodeType',
|
|
158
|
-
required: true,
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
type: 'boolean',
|
|
162
|
-
name: 'useRls',
|
|
163
|
-
message: 'useRls',
|
|
164
|
-
required: false,
|
|
165
|
-
skipPrompt: true,
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
type: 'json',
|
|
169
|
-
name: 'data',
|
|
170
|
-
message: 'data',
|
|
171
|
-
required: false,
|
|
172
|
-
skipPrompt: true,
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
type: 'text',
|
|
176
|
-
name: 'fields',
|
|
177
|
-
message: 'fields',
|
|
178
|
-
required: false,
|
|
179
|
-
skipPrompt: true,
|
|
180
|
-
},
|
|
181
|
-
]);
|
|
182
|
-
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
183
|
-
const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
|
|
184
|
-
const client = (0, executor_1.getClient)();
|
|
185
|
-
const result = await client.tableModule
|
|
186
|
-
.create({
|
|
187
|
-
data: {
|
|
188
|
-
databaseId: cleanedData.databaseId,
|
|
189
|
-
schemaId: cleanedData.schemaId,
|
|
190
|
-
tableId: cleanedData.tableId,
|
|
191
|
-
tableName: cleanedData.tableName,
|
|
192
|
-
nodeType: cleanedData.nodeType,
|
|
193
|
-
useRls: cleanedData.useRls,
|
|
194
|
-
data: cleanedData.data,
|
|
195
|
-
fields: cleanedData.fields,
|
|
196
|
-
},
|
|
197
|
-
select: {
|
|
198
|
-
id: true,
|
|
199
|
-
databaseId: true,
|
|
200
|
-
schemaId: true,
|
|
201
|
-
tableId: true,
|
|
202
|
-
tableName: true,
|
|
203
|
-
nodeType: true,
|
|
204
|
-
useRls: true,
|
|
205
|
-
data: true,
|
|
206
|
-
fields: true,
|
|
207
|
-
},
|
|
208
|
-
})
|
|
209
|
-
.execute();
|
|
210
|
-
console.log(JSON.stringify(result, null, 2));
|
|
211
|
-
}
|
|
212
|
-
catch (error) {
|
|
213
|
-
console.error('Failed to create record.');
|
|
214
|
-
if (error instanceof Error) {
|
|
215
|
-
console.error(error.message);
|
|
216
|
-
}
|
|
217
|
-
process.exit(1);
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
async function handleUpdate(argv, prompter) {
|
|
221
|
-
try {
|
|
222
|
-
const rawAnswers = await prompter.prompt(argv, [
|
|
223
|
-
{
|
|
224
|
-
type: 'text',
|
|
225
|
-
name: 'id',
|
|
226
|
-
message: 'id',
|
|
227
|
-
required: true,
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
type: 'text',
|
|
231
|
-
name: 'databaseId',
|
|
232
|
-
message: 'databaseId',
|
|
233
|
-
required: false,
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
type: 'text',
|
|
237
|
-
name: 'schemaId',
|
|
238
|
-
message: 'schemaId',
|
|
239
|
-
required: false,
|
|
240
|
-
skipPrompt: true,
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
type: 'text',
|
|
244
|
-
name: 'tableId',
|
|
245
|
-
message: 'tableId',
|
|
246
|
-
required: false,
|
|
247
|
-
skipPrompt: true,
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
type: 'text',
|
|
251
|
-
name: 'tableName',
|
|
252
|
-
message: 'tableName',
|
|
253
|
-
required: false,
|
|
254
|
-
skipPrompt: true,
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
type: 'text',
|
|
258
|
-
name: 'nodeType',
|
|
259
|
-
message: 'nodeType',
|
|
260
|
-
required: false,
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
type: 'boolean',
|
|
264
|
-
name: 'useRls',
|
|
265
|
-
message: 'useRls',
|
|
266
|
-
required: false,
|
|
267
|
-
skipPrompt: true,
|
|
268
|
-
},
|
|
269
|
-
{
|
|
270
|
-
type: 'json',
|
|
271
|
-
name: 'data',
|
|
272
|
-
message: 'data',
|
|
273
|
-
required: false,
|
|
274
|
-
skipPrompt: true,
|
|
275
|
-
},
|
|
276
|
-
{
|
|
277
|
-
type: 'text',
|
|
278
|
-
name: 'fields',
|
|
279
|
-
message: 'fields',
|
|
280
|
-
required: false,
|
|
281
|
-
skipPrompt: true,
|
|
282
|
-
},
|
|
283
|
-
]);
|
|
284
|
-
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
285
|
-
const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
|
|
286
|
-
const client = (0, executor_1.getClient)();
|
|
287
|
-
const result = await client.tableModule
|
|
288
|
-
.update({
|
|
289
|
-
where: {
|
|
290
|
-
id: answers.id,
|
|
291
|
-
},
|
|
292
|
-
data: {
|
|
293
|
-
databaseId: cleanedData.databaseId,
|
|
294
|
-
schemaId: cleanedData.schemaId,
|
|
295
|
-
tableId: cleanedData.tableId,
|
|
296
|
-
tableName: cleanedData.tableName,
|
|
297
|
-
nodeType: cleanedData.nodeType,
|
|
298
|
-
useRls: cleanedData.useRls,
|
|
299
|
-
data: cleanedData.data,
|
|
300
|
-
fields: cleanedData.fields,
|
|
301
|
-
},
|
|
302
|
-
select: {
|
|
303
|
-
id: true,
|
|
304
|
-
databaseId: true,
|
|
305
|
-
schemaId: true,
|
|
306
|
-
tableId: true,
|
|
307
|
-
tableName: true,
|
|
308
|
-
nodeType: true,
|
|
309
|
-
useRls: true,
|
|
310
|
-
data: true,
|
|
311
|
-
fields: true,
|
|
312
|
-
},
|
|
313
|
-
})
|
|
314
|
-
.execute();
|
|
315
|
-
console.log(JSON.stringify(result, null, 2));
|
|
316
|
-
}
|
|
317
|
-
catch (error) {
|
|
318
|
-
console.error('Failed to update record.');
|
|
319
|
-
if (error instanceof Error) {
|
|
320
|
-
console.error(error.message);
|
|
321
|
-
}
|
|
322
|
-
process.exit(1);
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
async function handleDelete(argv, prompter) {
|
|
326
|
-
try {
|
|
327
|
-
const rawAnswers = await prompter.prompt(argv, [
|
|
328
|
-
{
|
|
329
|
-
type: 'text',
|
|
330
|
-
name: 'id',
|
|
331
|
-
message: 'id',
|
|
332
|
-
required: true,
|
|
333
|
-
},
|
|
334
|
-
]);
|
|
335
|
-
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
336
|
-
const client = (0, executor_1.getClient)();
|
|
337
|
-
const result = await client.tableModule
|
|
338
|
-
.delete({
|
|
339
|
-
where: {
|
|
340
|
-
id: answers.id,
|
|
341
|
-
},
|
|
342
|
-
select: {
|
|
343
|
-
id: true,
|
|
344
|
-
},
|
|
345
|
-
})
|
|
346
|
-
.execute();
|
|
347
|
-
console.log(JSON.stringify(result, null, 2));
|
|
348
|
-
}
|
|
349
|
-
catch (error) {
|
|
350
|
-
console.error('Failed to delete record.');
|
|
351
|
-
if (error instanceof Error) {
|
|
352
|
-
console.error(error.message);
|
|
353
|
-
}
|
|
354
|
-
process.exit(1);
|
|
355
|
-
}
|
|
356
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* TableModule model for ORM client
|
|
3
|
-
* @generated by @constructive-io/graphql-codegen
|
|
4
|
-
* DO NOT EDIT - changes will be overwritten
|
|
5
|
-
*/
|
|
6
|
-
import { OrmClient } from '../client';
|
|
7
|
-
import { QueryBuilder } from '../query-builder';
|
|
8
|
-
import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
-
import type { TableModuleWithRelations, TableModuleSelect, TableModuleFilter, TableModuleOrderBy, CreateTableModuleInput, TableModulePatch } from '../input-types';
|
|
10
|
-
export declare class TableModuleModel {
|
|
11
|
-
private client;
|
|
12
|
-
constructor(client: OrmClient);
|
|
13
|
-
findMany<S extends TableModuleSelect>(args: FindManyArgs<S, TableModuleFilter, TableModuleOrderBy> & {
|
|
14
|
-
select: S;
|
|
15
|
-
} & StrictSelect<S, TableModuleSelect>): QueryBuilder<{
|
|
16
|
-
tableModules: ConnectionResult<InferSelectResult<TableModuleWithRelations, S>>;
|
|
17
|
-
}>;
|
|
18
|
-
findFirst<S extends TableModuleSelect>(args: FindFirstArgs<S, TableModuleFilter> & {
|
|
19
|
-
select: S;
|
|
20
|
-
} & StrictSelect<S, TableModuleSelect>): QueryBuilder<{
|
|
21
|
-
tableModules: {
|
|
22
|
-
nodes: InferSelectResult<TableModuleWithRelations, S>[];
|
|
23
|
-
};
|
|
24
|
-
}>;
|
|
25
|
-
findOne<S extends TableModuleSelect>(args: {
|
|
26
|
-
id: string;
|
|
27
|
-
select: S;
|
|
28
|
-
} & StrictSelect<S, TableModuleSelect>): QueryBuilder<{
|
|
29
|
-
tableModule: InferSelectResult<TableModuleWithRelations, S> | null;
|
|
30
|
-
}>;
|
|
31
|
-
create<S extends TableModuleSelect>(args: CreateArgs<S, CreateTableModuleInput['tableModule']> & {
|
|
32
|
-
select: S;
|
|
33
|
-
} & StrictSelect<S, TableModuleSelect>): QueryBuilder<{
|
|
34
|
-
createTableModule: {
|
|
35
|
-
tableModule: InferSelectResult<TableModuleWithRelations, S>;
|
|
36
|
-
};
|
|
37
|
-
}>;
|
|
38
|
-
update<S extends TableModuleSelect>(args: UpdateArgs<S, {
|
|
39
|
-
id: string;
|
|
40
|
-
}, TableModulePatch> & {
|
|
41
|
-
select: S;
|
|
42
|
-
} & StrictSelect<S, TableModuleSelect>): QueryBuilder<{
|
|
43
|
-
updateTableModule: {
|
|
44
|
-
tableModule: InferSelectResult<TableModuleWithRelations, S>;
|
|
45
|
-
};
|
|
46
|
-
}>;
|
|
47
|
-
delete<S extends TableModuleSelect>(args: DeleteArgs<{
|
|
48
|
-
id: string;
|
|
49
|
-
}, S> & {
|
|
50
|
-
select: S;
|
|
51
|
-
} & StrictSelect<S, TableModuleSelect>): QueryBuilder<{
|
|
52
|
-
deleteTableModule: {
|
|
53
|
-
tableModule: InferSelectResult<TableModuleWithRelations, S>;
|
|
54
|
-
};
|
|
55
|
-
}>;
|
|
56
|
-
}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TableModuleModel = void 0;
|
|
4
|
-
const query_builder_1 = require("../query-builder");
|
|
5
|
-
const input_types_1 = require("../input-types");
|
|
6
|
-
class TableModuleModel {
|
|
7
|
-
client;
|
|
8
|
-
constructor(client) {
|
|
9
|
-
this.client = client;
|
|
10
|
-
}
|
|
11
|
-
findMany(args) {
|
|
12
|
-
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('TableModule', 'tableModules', args.select, {
|
|
13
|
-
where: args?.where,
|
|
14
|
-
orderBy: args?.orderBy,
|
|
15
|
-
first: args?.first,
|
|
16
|
-
last: args?.last,
|
|
17
|
-
after: args?.after,
|
|
18
|
-
before: args?.before,
|
|
19
|
-
offset: args?.offset,
|
|
20
|
-
}, 'TableModuleFilter', 'TableModuleOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
-
return new query_builder_1.QueryBuilder({
|
|
22
|
-
client: this.client,
|
|
23
|
-
operation: 'query',
|
|
24
|
-
operationName: 'TableModule',
|
|
25
|
-
fieldName: 'tableModules',
|
|
26
|
-
document,
|
|
27
|
-
variables,
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
findFirst(args) {
|
|
31
|
-
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('TableModule', 'tableModules', args.select, {
|
|
32
|
-
where: args?.where,
|
|
33
|
-
}, 'TableModuleFilter', input_types_1.connectionFieldsMap);
|
|
34
|
-
return new query_builder_1.QueryBuilder({
|
|
35
|
-
client: this.client,
|
|
36
|
-
operation: 'query',
|
|
37
|
-
operationName: 'TableModule',
|
|
38
|
-
fieldName: 'tableModules',
|
|
39
|
-
document,
|
|
40
|
-
variables,
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
findOne(args) {
|
|
44
|
-
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('TableModule', 'tableModules', args.select, {
|
|
45
|
-
where: {
|
|
46
|
-
id: {
|
|
47
|
-
equalTo: args.id,
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
first: 1,
|
|
51
|
-
}, 'TableModuleFilter', 'TableModuleOrderBy', input_types_1.connectionFieldsMap);
|
|
52
|
-
return new query_builder_1.QueryBuilder({
|
|
53
|
-
client: this.client,
|
|
54
|
-
operation: 'query',
|
|
55
|
-
operationName: 'TableModule',
|
|
56
|
-
fieldName: 'tableModule',
|
|
57
|
-
document,
|
|
58
|
-
variables,
|
|
59
|
-
transform: (data) => ({
|
|
60
|
-
tableModule: data.tableModules?.nodes?.[0] ?? null,
|
|
61
|
-
}),
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
create(args) {
|
|
65
|
-
const { document, variables } = (0, query_builder_1.buildCreateDocument)('TableModule', 'createTableModule', 'tableModule', args.select, args.data, 'CreateTableModuleInput', input_types_1.connectionFieldsMap);
|
|
66
|
-
return new query_builder_1.QueryBuilder({
|
|
67
|
-
client: this.client,
|
|
68
|
-
operation: 'mutation',
|
|
69
|
-
operationName: 'TableModule',
|
|
70
|
-
fieldName: 'createTableModule',
|
|
71
|
-
document,
|
|
72
|
-
variables,
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
update(args) {
|
|
76
|
-
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('TableModule', 'updateTableModule', 'tableModule', args.select, args.where.id, args.data, 'UpdateTableModuleInput', 'id', 'tableModulePatch', input_types_1.connectionFieldsMap);
|
|
77
|
-
return new query_builder_1.QueryBuilder({
|
|
78
|
-
client: this.client,
|
|
79
|
-
operation: 'mutation',
|
|
80
|
-
operationName: 'TableModule',
|
|
81
|
-
fieldName: 'updateTableModule',
|
|
82
|
-
document,
|
|
83
|
-
variables,
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
delete(args) {
|
|
87
|
-
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('TableModule', 'deleteTableModule', 'tableModule', args.where.id, 'DeleteTableModuleInput', 'id', args.select, input_types_1.connectionFieldsMap);
|
|
88
|
-
return new query_builder_1.QueryBuilder({
|
|
89
|
-
client: this.client,
|
|
90
|
-
operation: 'mutation',
|
|
91
|
-
operationName: 'TableModule',
|
|
92
|
-
fieldName: 'deleteTableModule',
|
|
93
|
-
document,
|
|
94
|
-
variables,
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
exports.TableModuleModel = TableModuleModel;
|