@constructive-sdk/cli 0.2.1 → 0.6.2
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 +4 -0
- package/admin/cli/commands/app-admin-grant.js +6 -2
- package/admin/cli/commands/app-grant.js +8 -2
- package/admin/cli/commands/app-level-requirement.js +6 -0
- package/admin/cli/commands/app-level.js +6 -0
- package/admin/cli/commands/app-limit-default.js +2 -0
- package/admin/cli/commands/app-limit.js +6 -0
- package/admin/cli/commands/app-membership-default.js +12 -4
- package/admin/cli/commands/app-membership.js +38 -14
- package/admin/cli/commands/app-owner-grant.js +6 -2
- package/admin/cli/commands/app-permission-default.js +2 -0
- package/admin/cli/commands/app-permission.js +8 -0
- package/admin/cli/commands/app-step.js +4 -0
- package/admin/cli/commands/claimed-invite.js +8 -2
- package/admin/cli/commands/invite.js +24 -6
- package/admin/cli/commands/org-admin-grant.js +6 -2
- package/admin/cli/commands/org-chart-edge-grant.js +10 -2
- package/admin/cli/commands/org-chart-edge.js +6 -0
- package/admin/cli/commands/org-claimed-invite.js +8 -2
- package/admin/cli/commands/org-grant.js +8 -2
- package/admin/cli/commands/org-invite.js +26 -6
- package/admin/cli/commands/org-limit-default.js +2 -0
- package/admin/cli/commands/org-limit.js +6 -0
- package/admin/cli/commands/org-member.js +4 -2
- package/admin/cli/commands/org-membership-default.js +16 -6
- package/admin/cli/commands/org-membership.js +34 -12
- package/admin/cli/commands/org-owner-grant.js +6 -2
- package/admin/cli/commands/org-permission-default.js +2 -0
- package/admin/cli/commands/org-permission.js +8 -0
- package/admin/cli/commands/submit-invite-code.js +1 -1
- package/admin/cli/commands/submit-org-invite-code.js +1 -1
- package/admin/cli/index.js +2 -2
- package/admin/cli/utils.d.ts +13 -0
- package/admin/cli/utils.js +25 -0
- package/auth/cli/commands/audit-log.js +10 -2
- package/auth/cli/commands/check-password.js +1 -1
- package/auth/cli/commands/confirm-delete-account.js +1 -1
- package/auth/cli/commands/connected-account.js +8 -4
- package/auth/cli/commands/crypto-address.js +10 -4
- package/auth/cli/commands/email.js +10 -4
- package/auth/cli/commands/extend-token-expires.js +1 -1
- package/auth/cli/commands/forgot-password.js +1 -1
- package/auth/cli/commands/one-time-token.js +1 -1
- package/auth/cli/commands/phone-number.js +10 -4
- package/auth/cli/commands/reset-password.js +1 -1
- package/auth/cli/commands/send-account-deletion-email.js +1 -1
- package/auth/cli/commands/send-verification-email.js +1 -1
- package/auth/cli/commands/set-password.js +1 -1
- package/auth/cli/commands/sign-in-one-time-token.js +1 -1
- package/auth/cli/commands/sign-in.js +1 -1
- package/auth/cli/commands/sign-out.js +1 -1
- package/auth/cli/commands/sign-up.js +1 -1
- package/auth/cli/commands/user.js +10 -0
- package/auth/cli/commands/verify-email.js +1 -1
- package/auth/cli/commands/verify-password.js +1 -1
- package/auth/cli/commands/verify-totp.js +1 -1
- package/auth/cli/index.js +2 -2
- package/auth/cli/utils.d.ts +13 -0
- package/auth/cli/utils.js +25 -0
- package/esm/admin/cli/commands/app-achievement.js +4 -0
- package/esm/admin/cli/commands/app-admin-grant.js +6 -2
- package/esm/admin/cli/commands/app-grant.js +8 -2
- package/esm/admin/cli/commands/app-level-requirement.js +6 -0
- package/esm/admin/cli/commands/app-level.js +6 -0
- package/esm/admin/cli/commands/app-limit-default.js +2 -0
- package/esm/admin/cli/commands/app-limit.js +6 -0
- package/esm/admin/cli/commands/app-membership-default.js +12 -4
- package/esm/admin/cli/commands/app-membership.js +38 -14
- package/esm/admin/cli/commands/app-owner-grant.js +6 -2
- package/esm/admin/cli/commands/app-permission-default.js +2 -0
- package/esm/admin/cli/commands/app-permission.js +8 -0
- package/esm/admin/cli/commands/app-step.js +4 -0
- package/esm/admin/cli/commands/claimed-invite.js +8 -2
- package/esm/admin/cli/commands/invite.js +24 -6
- package/esm/admin/cli/commands/org-admin-grant.js +6 -2
- package/esm/admin/cli/commands/org-chart-edge-grant.js +10 -2
- package/esm/admin/cli/commands/org-chart-edge.js +6 -0
- package/esm/admin/cli/commands/org-claimed-invite.js +8 -2
- package/esm/admin/cli/commands/org-grant.js +8 -2
- package/esm/admin/cli/commands/org-invite.js +26 -6
- package/esm/admin/cli/commands/org-limit-default.js +2 -0
- package/esm/admin/cli/commands/org-limit.js +6 -0
- package/esm/admin/cli/commands/org-member.js +4 -2
- package/esm/admin/cli/commands/org-membership-default.js +16 -6
- package/esm/admin/cli/commands/org-membership.js +34 -12
- package/esm/admin/cli/commands/org-owner-grant.js +6 -2
- package/esm/admin/cli/commands/org-permission-default.js +2 -0
- package/esm/admin/cli/commands/org-permission.js +8 -0
- package/esm/admin/cli/commands/submit-invite-code.js +2 -2
- package/esm/admin/cli/commands/submit-org-invite-code.js +2 -2
- package/esm/admin/cli/index.js +2 -2
- package/esm/admin/cli/utils.d.ts +13 -0
- package/esm/admin/cli/utils.js +24 -0
- package/esm/auth/cli/commands/audit-log.js +10 -2
- package/esm/auth/cli/commands/check-password.js +2 -2
- package/esm/auth/cli/commands/confirm-delete-account.js +2 -2
- package/esm/auth/cli/commands/connected-account.js +8 -4
- package/esm/auth/cli/commands/crypto-address.js +10 -4
- package/esm/auth/cli/commands/email.js +10 -4
- package/esm/auth/cli/commands/extend-token-expires.js +2 -2
- package/esm/auth/cli/commands/forgot-password.js +2 -2
- package/esm/auth/cli/commands/one-time-token.js +2 -2
- package/esm/auth/cli/commands/phone-number.js +10 -4
- package/esm/auth/cli/commands/reset-password.js +2 -2
- package/esm/auth/cli/commands/send-account-deletion-email.js +2 -2
- package/esm/auth/cli/commands/send-verification-email.js +2 -2
- package/esm/auth/cli/commands/set-password.js +2 -2
- package/esm/auth/cli/commands/sign-in-one-time-token.js +2 -2
- package/esm/auth/cli/commands/sign-in.js +2 -2
- package/esm/auth/cli/commands/sign-out.js +2 -2
- package/esm/auth/cli/commands/sign-up.js +2 -2
- package/esm/auth/cli/commands/user.js +10 -0
- package/esm/auth/cli/commands/verify-email.js +2 -2
- package/esm/auth/cli/commands/verify-password.js +2 -2
- package/esm/auth/cli/commands/verify-totp.js +2 -2
- package/esm/auth/cli/index.js +2 -2
- package/esm/auth/cli/utils.d.ts +13 -0
- package/esm/auth/cli/utils.js +24 -0
- package/esm/objects/cli/commands/commit.js +12 -0
- package/esm/objects/cli/commands/freeze-objects.js +2 -2
- package/esm/objects/cli/commands/get-all-record.js +1 -1
- package/esm/objects/cli/commands/init-empty-repo.js +2 -2
- package/esm/objects/cli/commands/insert-node-at-path.js +2 -2
- package/esm/objects/cli/commands/object.js +12 -4
- package/esm/objects/cli/commands/ref.js +2 -0
- package/esm/objects/cli/commands/remove-node-at-path.js +2 -2
- package/esm/objects/cli/commands/set-and-commit.js +2 -2
- package/esm/objects/cli/commands/set-data-at-path.js +2 -2
- package/esm/objects/cli/commands/set-props-and-commit.js +2 -2
- package/esm/objects/cli/commands/store.js +2 -0
- package/esm/objects/cli/commands/update-node-at-path.js +2 -2
- package/esm/objects/cli/index.js +2 -2
- package/esm/objects/cli/utils.d.ts +13 -0
- package/esm/objects/cli/utils.js +24 -0
- package/esm/public/cli/commands/api-module.js +2 -2
- package/esm/public/cli/commands/api.js +10 -2
- package/esm/public/cli/commands/app-achievement.js +4 -0
- package/esm/public/cli/commands/app-admin-grant.js +6 -2
- package/esm/public/cli/commands/app-grant.js +8 -2
- package/esm/public/cli/commands/app-level-requirement.js +6 -0
- package/esm/public/cli/commands/app-level.js +6 -0
- package/esm/public/cli/commands/app-limit-default.js +2 -0
- package/esm/public/cli/commands/app-limit.js +6 -0
- package/esm/public/cli/commands/app-membership-default.js +12 -4
- package/esm/public/cli/commands/app-membership.js +38 -14
- package/esm/public/cli/commands/app-owner-grant.js +6 -2
- package/esm/public/cli/commands/app-permission-default.js +2 -0
- package/esm/public/cli/commands/app-permission.js +8 -0
- package/esm/public/cli/commands/app-step.js +4 -0
- package/esm/public/cli/commands/app.js +12 -0
- package/esm/public/cli/commands/apply-rls.js +2 -2
- package/esm/public/cli/commands/ast-migration.js +15 -4
- package/esm/public/cli/commands/audit-log.js +10 -2
- package/esm/public/cli/commands/bootstrap-user.js +2 -2
- package/esm/public/cli/commands/check-constraint.js +22 -4
- package/esm/public/cli/commands/check-password.js +2 -2
- package/esm/public/cli/commands/claimed-invite.js +8 -2
- package/esm/public/cli/commands/commit.js +12 -0
- package/esm/public/cli/commands/confirm-delete-account.js +2 -2
- package/esm/public/cli/commands/connected-account.js +8 -4
- package/esm/public/cli/commands/connected-accounts-module.js +8 -0
- package/esm/public/cli/commands/create-user-database.js +2 -2
- package/esm/public/cli/commands/crypto-address.js +10 -4
- package/esm/public/cli/commands/crypto-addresses-module.js +10 -0
- package/esm/public/cli/commands/crypto-auth-module.js +22 -0
- package/esm/public/cli/commands/database-provision-module.js +20 -4
- package/esm/public/cli/commands/database.js +10 -0
- package/esm/public/cli/commands/default-privilege.js +6 -2
- package/esm/public/cli/commands/denormalized-table-field.js +16 -4
- package/esm/public/cli/commands/domain.js +8 -0
- package/esm/public/cli/commands/email.js +10 -4
- package/esm/public/cli/commands/emails-module.js +8 -0
- package/esm/public/cli/commands/encrypted-secrets-module.js +6 -0
- package/esm/public/cli/commands/extend-token-expires.js +2 -2
- package/esm/public/cli/commands/field-module.js +14 -2
- package/esm/public/cli/commands/field.js +48 -12
- package/esm/public/cli/commands/foreign-key-constraint.js +24 -2
- package/esm/public/cli/commands/forgot-password.js +2 -2
- package/esm/public/cli/commands/freeze-objects.js +2 -2
- package/esm/public/cli/commands/full-text-search.js +2 -0
- package/esm/public/cli/commands/get-all-record.js +1 -1
- package/esm/public/cli/commands/hierarchy-module.js +30 -0
- package/esm/public/cli/commands/index.js +32 -8
- package/esm/public/cli/commands/init-empty-repo.js +2 -2
- package/esm/public/cli/commands/insert-node-at-path.js +2 -2
- package/esm/public/cli/commands/invite.js +24 -6
- package/esm/public/cli/commands/invites-module.js +22 -0
- package/esm/public/cli/commands/levels-module.js +46 -0
- package/esm/public/cli/commands/limits-module.js +30 -0
- package/esm/public/cli/commands/membership-types-module.js +6 -0
- package/esm/public/cli/commands/memberships-module.js +56 -0
- package/esm/public/cli/commands/node-type-registry.js +10 -2
- package/esm/public/cli/commands/object.js +12 -4
- package/esm/public/cli/commands/one-time-token.js +2 -2
- package/esm/public/cli/commands/org-admin-grant.js +6 -2
- package/esm/public/cli/commands/org-chart-edge-grant.js +10 -2
- package/esm/public/cli/commands/org-chart-edge.js +6 -0
- package/esm/public/cli/commands/org-claimed-invite.js +8 -2
- package/esm/public/cli/commands/org-grant.js +8 -2
- package/esm/public/cli/commands/org-invite.js +26 -6
- package/esm/public/cli/commands/org-limit-default.js +2 -0
- package/esm/public/cli/commands/org-limit.js +6 -0
- package/esm/public/cli/commands/org-member.js +4 -2
- package/esm/public/cli/commands/org-membership-default.js +16 -6
- package/esm/public/cli/commands/org-membership.js +34 -12
- package/esm/public/cli/commands/org-owner-grant.js +6 -2
- package/esm/public/cli/commands/org-permission-default.js +2 -0
- package/esm/public/cli/commands/org-permission.js +8 -0
- package/esm/public/cli/commands/permissions-module.js +28 -0
- package/esm/public/cli/commands/phone-number.js +10 -4
- package/esm/public/cli/commands/phone-numbers-module.js +8 -0
- package/esm/public/cli/commands/policy.js +34 -8
- package/esm/public/cli/commands/primary-key-constraint.js +18 -2
- package/esm/public/cli/commands/profiles-module.js +30 -0
- package/esm/public/cli/commands/provision-database-with-user.js +2 -2
- package/esm/public/cli/commands/ref.js +2 -0
- package/esm/public/cli/commands/relation-provision.js +58 -12
- package/esm/public/cli/commands/remove-node-at-path.js +2 -2
- package/esm/public/cli/commands/reset-password.js +2 -2
- package/esm/public/cli/commands/rls-module.js +20 -0
- package/esm/public/cli/commands/schema-grant.js +2 -0
- package/esm/public/cli/commands/schema.js +20 -4
- package/esm/public/cli/commands/secrets-module.js +6 -0
- package/esm/public/cli/commands/secure-table-provision.js +40 -10
- package/esm/public/cli/commands/send-account-deletion-email.js +2 -2
- package/esm/public/cli/commands/send-verification-email.js +2 -2
- package/esm/public/cli/commands/sessions-module.js +18 -0
- package/esm/public/cli/commands/set-and-commit.js +2 -2
- package/esm/public/cli/commands/set-data-at-path.js +2 -2
- package/esm/public/cli/commands/set-field-order.js +2 -2
- package/esm/public/cli/commands/set-password.js +2 -2
- package/esm/public/cli/commands/set-props-and-commit.js +2 -2
- package/esm/public/cli/commands/sign-in-one-time-token.js +2 -2
- package/esm/public/cli/commands/sign-in.js +2 -2
- package/esm/public/cli/commands/sign-out.js +2 -2
- package/esm/public/cli/commands/sign-up.js +2 -2
- package/esm/public/cli/commands/site-metadatum.js +6 -0
- package/esm/public/cli/commands/site-module.js +2 -2
- package/esm/public/cli/commands/site-theme.js +2 -2
- package/esm/public/cli/commands/site.js +14 -0
- package/esm/public/cli/commands/sql-migration.js +12 -1
- package/esm/public/cli/commands/store.js +2 -0
- package/esm/public/cli/commands/submit-invite-code.js +2 -2
- package/esm/public/cli/commands/submit-org-invite-code.js +2 -2
- package/esm/public/cli/commands/table-grant.js +8 -2
- package/esm/public/cli/commands/table-module.js +16 -4
- package/esm/public/cli/commands/table-template-module.js +12 -2
- package/esm/public/cli/commands/table.js +36 -8
- package/esm/public/cli/commands/trigger-function.js +2 -0
- package/esm/public/cli/commands/trigger.js +18 -2
- package/esm/public/cli/commands/unique-constraint.js +20 -2
- package/esm/public/cli/commands/update-node-at-path.js +2 -2
- package/esm/public/cli/commands/user-auth-module.js +48 -0
- package/esm/public/cli/commands/user.js +10 -0
- package/esm/public/cli/commands/users-module.js +10 -0
- package/esm/public/cli/commands/uuid-module.js +4 -0
- package/esm/public/cli/commands/verify-email.js +2 -2
- package/esm/public/cli/commands/verify-password.js +2 -2
- package/esm/public/cli/commands/verify-totp.js +2 -2
- package/esm/public/cli/commands/view-grant.js +10 -4
- package/esm/public/cli/commands/view-rule.js +4 -0
- package/esm/public/cli/commands/view-table.js +2 -0
- package/esm/public/cli/commands/view.js +34 -10
- package/esm/public/cli/index.js +2 -2
- package/esm/public/cli/utils.d.ts +13 -0
- package/esm/public/cli/utils.js +24 -0
- package/objects/cli/commands/commit.js +12 -0
- package/objects/cli/commands/freeze-objects.js +1 -1
- package/objects/cli/commands/get-all-record.js +1 -1
- package/objects/cli/commands/init-empty-repo.js +1 -1
- package/objects/cli/commands/insert-node-at-path.js +1 -1
- package/objects/cli/commands/object.js +12 -4
- package/objects/cli/commands/ref.js +2 -0
- package/objects/cli/commands/remove-node-at-path.js +1 -1
- package/objects/cli/commands/set-and-commit.js +1 -1
- package/objects/cli/commands/set-data-at-path.js +1 -1
- package/objects/cli/commands/set-props-and-commit.js +1 -1
- package/objects/cli/commands/store.js +2 -0
- package/objects/cli/commands/update-node-at-path.js +1 -1
- package/objects/cli/index.js +2 -2
- package/objects/cli/utils.d.ts +13 -0
- package/objects/cli/utils.js +25 -0
- package/package.json +6 -6
- package/public/cli/commands/api-module.js +2 -2
- package/public/cli/commands/api.js +10 -2
- package/public/cli/commands/app-achievement.js +4 -0
- package/public/cli/commands/app-admin-grant.js +6 -2
- package/public/cli/commands/app-grant.js +8 -2
- package/public/cli/commands/app-level-requirement.js +6 -0
- package/public/cli/commands/app-level.js +6 -0
- package/public/cli/commands/app-limit-default.js +2 -0
- package/public/cli/commands/app-limit.js +6 -0
- package/public/cli/commands/app-membership-default.js +12 -4
- package/public/cli/commands/app-membership.js +38 -14
- package/public/cli/commands/app-owner-grant.js +6 -2
- package/public/cli/commands/app-permission-default.js +2 -0
- package/public/cli/commands/app-permission.js +8 -0
- package/public/cli/commands/app-step.js +4 -0
- package/public/cli/commands/app.js +12 -0
- package/public/cli/commands/apply-rls.js +1 -1
- package/public/cli/commands/ast-migration.js +15 -4
- package/public/cli/commands/audit-log.js +10 -2
- package/public/cli/commands/bootstrap-user.js +1 -1
- package/public/cli/commands/check-constraint.js +22 -4
- package/public/cli/commands/check-password.js +1 -1
- package/public/cli/commands/claimed-invite.js +8 -2
- package/public/cli/commands/commit.js +12 -0
- package/public/cli/commands/confirm-delete-account.js +1 -1
- package/public/cli/commands/connected-account.js +8 -4
- package/public/cli/commands/connected-accounts-module.js +8 -0
- package/public/cli/commands/create-user-database.js +1 -1
- package/public/cli/commands/crypto-address.js +10 -4
- package/public/cli/commands/crypto-addresses-module.js +10 -0
- package/public/cli/commands/crypto-auth-module.js +22 -0
- package/public/cli/commands/database-provision-module.js +20 -4
- package/public/cli/commands/database.js +10 -0
- package/public/cli/commands/default-privilege.js +6 -2
- package/public/cli/commands/denormalized-table-field.js +16 -4
- package/public/cli/commands/domain.js +8 -0
- package/public/cli/commands/email.js +10 -4
- package/public/cli/commands/emails-module.js +8 -0
- package/public/cli/commands/encrypted-secrets-module.js +6 -0
- package/public/cli/commands/extend-token-expires.js +1 -1
- package/public/cli/commands/field-module.js +14 -2
- package/public/cli/commands/field.js +48 -12
- package/public/cli/commands/foreign-key-constraint.js +24 -2
- package/public/cli/commands/forgot-password.js +1 -1
- package/public/cli/commands/freeze-objects.js +1 -1
- package/public/cli/commands/full-text-search.js +2 -0
- package/public/cli/commands/get-all-record.js +1 -1
- package/public/cli/commands/hierarchy-module.js +30 -0
- package/public/cli/commands/index.js +32 -8
- package/public/cli/commands/init-empty-repo.js +1 -1
- package/public/cli/commands/insert-node-at-path.js +1 -1
- package/public/cli/commands/invite.js +24 -6
- package/public/cli/commands/invites-module.js +22 -0
- package/public/cli/commands/levels-module.js +46 -0
- package/public/cli/commands/limits-module.js +30 -0
- package/public/cli/commands/membership-types-module.js +6 -0
- package/public/cli/commands/memberships-module.js +56 -0
- package/public/cli/commands/node-type-registry.js +10 -2
- package/public/cli/commands/object.js +12 -4
- package/public/cli/commands/one-time-token.js +1 -1
- package/public/cli/commands/org-admin-grant.js +6 -2
- package/public/cli/commands/org-chart-edge-grant.js +10 -2
- package/public/cli/commands/org-chart-edge.js +6 -0
- package/public/cli/commands/org-claimed-invite.js +8 -2
- package/public/cli/commands/org-grant.js +8 -2
- package/public/cli/commands/org-invite.js +26 -6
- package/public/cli/commands/org-limit-default.js +2 -0
- package/public/cli/commands/org-limit.js +6 -0
- package/public/cli/commands/org-member.js +4 -2
- package/public/cli/commands/org-membership-default.js +16 -6
- package/public/cli/commands/org-membership.js +34 -12
- package/public/cli/commands/org-owner-grant.js +6 -2
- package/public/cli/commands/org-permission-default.js +2 -0
- package/public/cli/commands/org-permission.js +8 -0
- package/public/cli/commands/permissions-module.js +28 -0
- package/public/cli/commands/phone-number.js +10 -4
- package/public/cli/commands/phone-numbers-module.js +8 -0
- package/public/cli/commands/policy.js +34 -8
- package/public/cli/commands/primary-key-constraint.js +18 -2
- package/public/cli/commands/profiles-module.js +30 -0
- package/public/cli/commands/provision-database-with-user.js +1 -1
- package/public/cli/commands/ref.js +2 -0
- package/public/cli/commands/relation-provision.js +58 -12
- package/public/cli/commands/remove-node-at-path.js +1 -1
- package/public/cli/commands/reset-password.js +1 -1
- package/public/cli/commands/rls-module.js +20 -0
- package/public/cli/commands/schema-grant.js +2 -0
- package/public/cli/commands/schema.js +20 -4
- package/public/cli/commands/secrets-module.js +6 -0
- package/public/cli/commands/secure-table-provision.js +40 -10
- package/public/cli/commands/send-account-deletion-email.js +1 -1
- package/public/cli/commands/send-verification-email.js +1 -1
- package/public/cli/commands/sessions-module.js +18 -0
- package/public/cli/commands/set-and-commit.js +1 -1
- package/public/cli/commands/set-data-at-path.js +1 -1
- package/public/cli/commands/set-field-order.js +1 -1
- package/public/cli/commands/set-password.js +1 -1
- package/public/cli/commands/set-props-and-commit.js +1 -1
- package/public/cli/commands/sign-in-one-time-token.js +1 -1
- package/public/cli/commands/sign-in.js +1 -1
- package/public/cli/commands/sign-out.js +1 -1
- package/public/cli/commands/sign-up.js +1 -1
- package/public/cli/commands/site-metadatum.js +6 -0
- package/public/cli/commands/site-module.js +2 -2
- package/public/cli/commands/site-theme.js +2 -2
- package/public/cli/commands/site.js +14 -0
- package/public/cli/commands/sql-migration.js +12 -1
- package/public/cli/commands/store.js +2 -0
- package/public/cli/commands/submit-invite-code.js +1 -1
- package/public/cli/commands/submit-org-invite-code.js +1 -1
- package/public/cli/commands/table-grant.js +8 -2
- package/public/cli/commands/table-module.js +16 -4
- package/public/cli/commands/table-template-module.js +12 -2
- package/public/cli/commands/table.js +36 -8
- package/public/cli/commands/trigger-function.js +2 -0
- package/public/cli/commands/trigger.js +18 -2
- package/public/cli/commands/unique-constraint.js +20 -2
- package/public/cli/commands/update-node-at-path.js +1 -1
- package/public/cli/commands/user-auth-module.js +48 -0
- package/public/cli/commands/user.js +10 -0
- package/public/cli/commands/users-module.js +10 -0
- package/public/cli/commands/uuid-module.js +4 -0
- package/public/cli/commands/verify-email.js +1 -1
- package/public/cli/commands/verify-password.js +1 -1
- package/public/cli/commands/verify-totp.js +1 -1
- package/public/cli/commands/view-grant.js +10 -4
- package/public/cli/commands/view-rule.js +4 -0
- package/public/cli/commands/view-table.js +2 -0
- package/public/cli/commands/view.js +34 -10
- package/public/cli/index.js +2 -2
- package/public/cli/utils.d.ts +13 -0
- package/public/cli/utils.js +25 -0
|
@@ -123,6 +123,7 @@ async function handleCreate(argv, prompter) {
|
|
|
123
123
|
name: 'ownerId',
|
|
124
124
|
message: 'ownerId',
|
|
125
125
|
required: false,
|
|
126
|
+
skipPrompt: true,
|
|
126
127
|
},
|
|
127
128
|
{
|
|
128
129
|
type: 'text',
|
|
@@ -131,16 +132,18 @@ async function handleCreate(argv, prompter) {
|
|
|
131
132
|
required: true,
|
|
132
133
|
},
|
|
133
134
|
{
|
|
134
|
-
type: '
|
|
135
|
+
type: 'boolean',
|
|
135
136
|
name: 'isVerified',
|
|
136
137
|
message: 'isVerified',
|
|
137
138
|
required: false,
|
|
139
|
+
skipPrompt: true,
|
|
138
140
|
},
|
|
139
141
|
{
|
|
140
|
-
type: '
|
|
142
|
+
type: 'boolean',
|
|
141
143
|
name: 'isPrimary',
|
|
142
144
|
message: 'isPrimary',
|
|
143
145
|
required: false,
|
|
146
|
+
skipPrompt: true,
|
|
144
147
|
},
|
|
145
148
|
]);
|
|
146
149
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
@@ -189,6 +192,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
189
192
|
name: 'ownerId',
|
|
190
193
|
message: 'ownerId',
|
|
191
194
|
required: false,
|
|
195
|
+
skipPrompt: true,
|
|
192
196
|
},
|
|
193
197
|
{
|
|
194
198
|
type: 'text',
|
|
@@ -197,16 +201,18 @@ async function handleUpdate(argv, prompter) {
|
|
|
197
201
|
required: false,
|
|
198
202
|
},
|
|
199
203
|
{
|
|
200
|
-
type: '
|
|
204
|
+
type: 'boolean',
|
|
201
205
|
name: 'isVerified',
|
|
202
206
|
message: 'isVerified',
|
|
203
207
|
required: false,
|
|
208
|
+
skipPrompt: true,
|
|
204
209
|
},
|
|
205
210
|
{
|
|
206
|
-
type: '
|
|
211
|
+
type: 'boolean',
|
|
207
212
|
name: 'isPrimary',
|
|
208
213
|
message: 'isPrimary',
|
|
209
214
|
required: false,
|
|
215
|
+
skipPrompt: true,
|
|
210
216
|
},
|
|
211
217
|
]);
|
|
212
218
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
@@ -17,7 +17,7 @@ exports.default = async (argv, prompter, _options) => {
|
|
|
17
17
|
},
|
|
18
18
|
]);
|
|
19
19
|
const client = (0, executor_1.getClient)();
|
|
20
|
-
const parsedAnswers = (0, utils_1.
|
|
20
|
+
const parsedAnswers = (0, utils_1.unflattenDotNotation)(answers);
|
|
21
21
|
const selectFields = (0, utils_1.buildSelectFromPaths)(argv.select ?? 'clientMutationId');
|
|
22
22
|
const result = await client.mutation
|
|
23
23
|
.extendTokenExpires(parsedAnswers, {
|
|
@@ -17,7 +17,7 @@ exports.default = async (argv, prompter, _options) => {
|
|
|
17
17
|
},
|
|
18
18
|
]);
|
|
19
19
|
const client = (0, executor_1.getClient)();
|
|
20
|
-
const parsedAnswers = (0, utils_1.
|
|
20
|
+
const parsedAnswers = (0, utils_1.unflattenDotNotation)(answers);
|
|
21
21
|
const selectFields = (0, utils_1.buildSelectFromPaths)(argv.select ?? 'clientMutationId');
|
|
22
22
|
const result = await client.mutation
|
|
23
23
|
.forgotPassword(parsedAnswers, {
|
|
@@ -17,7 +17,7 @@ exports.default = async (argv, prompter, _options) => {
|
|
|
17
17
|
},
|
|
18
18
|
]);
|
|
19
19
|
const client = (0, executor_1.getClient)();
|
|
20
|
-
const parsedAnswers = (0, utils_1.
|
|
20
|
+
const parsedAnswers = (0, utils_1.unflattenDotNotation)(answers);
|
|
21
21
|
const selectFields = (0, utils_1.buildSelectFromPaths)(argv.select ?? 'clientMutationId');
|
|
22
22
|
const result = await client.mutation
|
|
23
23
|
.oneTimeToken(parsedAnswers, {
|
|
@@ -126,6 +126,7 @@ async function handleCreate(argv, prompter) {
|
|
|
126
126
|
name: 'ownerId',
|
|
127
127
|
message: 'ownerId',
|
|
128
128
|
required: false,
|
|
129
|
+
skipPrompt: true,
|
|
129
130
|
},
|
|
130
131
|
{
|
|
131
132
|
type: 'text',
|
|
@@ -140,16 +141,18 @@ async function handleCreate(argv, prompter) {
|
|
|
140
141
|
required: true,
|
|
141
142
|
},
|
|
142
143
|
{
|
|
143
|
-
type: '
|
|
144
|
+
type: 'boolean',
|
|
144
145
|
name: 'isVerified',
|
|
145
146
|
message: 'isVerified',
|
|
146
147
|
required: false,
|
|
148
|
+
skipPrompt: true,
|
|
147
149
|
},
|
|
148
150
|
{
|
|
149
|
-
type: '
|
|
151
|
+
type: 'boolean',
|
|
150
152
|
name: 'isPrimary',
|
|
151
153
|
message: 'isPrimary',
|
|
152
154
|
required: false,
|
|
155
|
+
skipPrompt: true,
|
|
153
156
|
},
|
|
154
157
|
]);
|
|
155
158
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
@@ -200,6 +203,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
200
203
|
name: 'ownerId',
|
|
201
204
|
message: 'ownerId',
|
|
202
205
|
required: false,
|
|
206
|
+
skipPrompt: true,
|
|
203
207
|
},
|
|
204
208
|
{
|
|
205
209
|
type: 'text',
|
|
@@ -214,16 +218,18 @@ async function handleUpdate(argv, prompter) {
|
|
|
214
218
|
required: false,
|
|
215
219
|
},
|
|
216
220
|
{
|
|
217
|
-
type: '
|
|
221
|
+
type: 'boolean',
|
|
218
222
|
name: 'isVerified',
|
|
219
223
|
message: 'isVerified',
|
|
220
224
|
required: false,
|
|
225
|
+
skipPrompt: true,
|
|
221
226
|
},
|
|
222
227
|
{
|
|
223
|
-
type: '
|
|
228
|
+
type: 'boolean',
|
|
224
229
|
name: 'isPrimary',
|
|
225
230
|
message: 'isPrimary',
|
|
226
231
|
required: false,
|
|
232
|
+
skipPrompt: true,
|
|
227
233
|
},
|
|
228
234
|
]);
|
|
229
235
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
@@ -17,7 +17,7 @@ exports.default = async (argv, prompter, _options) => {
|
|
|
17
17
|
},
|
|
18
18
|
]);
|
|
19
19
|
const client = (0, executor_1.getClient)();
|
|
20
|
-
const parsedAnswers = (0, utils_1.
|
|
20
|
+
const parsedAnswers = (0, utils_1.unflattenDotNotation)(answers);
|
|
21
21
|
const selectFields = (0, utils_1.buildSelectFromPaths)(argv.select ?? 'clientMutationId');
|
|
22
22
|
const result = await client.mutation
|
|
23
23
|
.resetPassword(parsedAnswers, {
|
|
@@ -17,7 +17,7 @@ exports.default = async (argv, prompter, _options) => {
|
|
|
17
17
|
},
|
|
18
18
|
]);
|
|
19
19
|
const client = (0, executor_1.getClient)();
|
|
20
|
-
const parsedAnswers = (0, utils_1.
|
|
20
|
+
const parsedAnswers = (0, utils_1.unflattenDotNotation)(answers);
|
|
21
21
|
const selectFields = (0, utils_1.buildSelectFromPaths)(argv.select ?? 'clientMutationId');
|
|
22
22
|
const result = await client.mutation
|
|
23
23
|
.sendAccountDeletionEmail(parsedAnswers, {
|
|
@@ -17,7 +17,7 @@ exports.default = async (argv, prompter, _options) => {
|
|
|
17
17
|
},
|
|
18
18
|
]);
|
|
19
19
|
const client = (0, executor_1.getClient)();
|
|
20
|
-
const parsedAnswers = (0, utils_1.
|
|
20
|
+
const parsedAnswers = (0, utils_1.unflattenDotNotation)(answers);
|
|
21
21
|
const selectFields = (0, utils_1.buildSelectFromPaths)(argv.select ?? 'clientMutationId');
|
|
22
22
|
const result = await client.mutation
|
|
23
23
|
.sendVerificationEmail(parsedAnswers, {
|
|
@@ -17,7 +17,7 @@ exports.default = async (argv, prompter, _options) => {
|
|
|
17
17
|
},
|
|
18
18
|
]);
|
|
19
19
|
const client = (0, executor_1.getClient)();
|
|
20
|
-
const parsedAnswers = (0, utils_1.
|
|
20
|
+
const parsedAnswers = (0, utils_1.unflattenDotNotation)(answers);
|
|
21
21
|
const selectFields = (0, utils_1.buildSelectFromPaths)(argv.select ?? 'clientMutationId');
|
|
22
22
|
const result = await client.mutation
|
|
23
23
|
.setPassword(parsedAnswers, {
|
|
@@ -17,7 +17,7 @@ exports.default = async (argv, prompter, _options) => {
|
|
|
17
17
|
},
|
|
18
18
|
]);
|
|
19
19
|
const client = (0, executor_1.getClient)();
|
|
20
|
-
const parsedAnswers = (0, utils_1.
|
|
20
|
+
const parsedAnswers = (0, utils_1.unflattenDotNotation)(answers);
|
|
21
21
|
const selectFields = (0, utils_1.buildSelectFromPaths)(argv.select ?? 'clientMutationId');
|
|
22
22
|
const result = await client.mutation
|
|
23
23
|
.signInOneTimeToken(parsedAnswers, {
|
|
@@ -17,7 +17,7 @@ exports.default = async (argv, prompter, _options) => {
|
|
|
17
17
|
},
|
|
18
18
|
]);
|
|
19
19
|
const client = (0, executor_1.getClient)();
|
|
20
|
-
const parsedAnswers = (0, utils_1.
|
|
20
|
+
const parsedAnswers = (0, utils_1.unflattenDotNotation)(answers);
|
|
21
21
|
const selectFields = (0, utils_1.buildSelectFromPaths)(argv.select ?? 'clientMutationId');
|
|
22
22
|
const result = await client.mutation
|
|
23
23
|
.signIn(parsedAnswers, {
|
|
@@ -17,7 +17,7 @@ exports.default = async (argv, prompter, _options) => {
|
|
|
17
17
|
},
|
|
18
18
|
]);
|
|
19
19
|
const client = (0, executor_1.getClient)();
|
|
20
|
-
const parsedAnswers = (0, utils_1.
|
|
20
|
+
const parsedAnswers = (0, utils_1.unflattenDotNotation)(answers);
|
|
21
21
|
const selectFields = (0, utils_1.buildSelectFromPaths)(argv.select ?? 'clientMutationId');
|
|
22
22
|
const result = await client.mutation
|
|
23
23
|
.signOut(parsedAnswers, {
|
|
@@ -17,7 +17,7 @@ exports.default = async (argv, prompter, _options) => {
|
|
|
17
17
|
},
|
|
18
18
|
]);
|
|
19
19
|
const client = (0, executor_1.getClient)();
|
|
20
|
-
const parsedAnswers = (0, utils_1.
|
|
20
|
+
const parsedAnswers = (0, utils_1.unflattenDotNotation)(answers);
|
|
21
21
|
const selectFields = (0, utils_1.buildSelectFromPaths)(argv.select ?? 'clientMutationId');
|
|
22
22
|
const result = await client.mutation
|
|
23
23
|
.signUp(parsedAnswers, {
|
|
@@ -129,30 +129,35 @@ async function handleCreate(argv, prompter) {
|
|
|
129
129
|
name: 'username',
|
|
130
130
|
message: 'username',
|
|
131
131
|
required: false,
|
|
132
|
+
skipPrompt: true,
|
|
132
133
|
},
|
|
133
134
|
{
|
|
134
135
|
type: 'text',
|
|
135
136
|
name: 'displayName',
|
|
136
137
|
message: 'displayName',
|
|
137
138
|
required: false,
|
|
139
|
+
skipPrompt: true,
|
|
138
140
|
},
|
|
139
141
|
{
|
|
140
142
|
type: 'text',
|
|
141
143
|
name: 'profilePicture',
|
|
142
144
|
message: 'profilePicture',
|
|
143
145
|
required: false,
|
|
146
|
+
skipPrompt: true,
|
|
144
147
|
},
|
|
145
148
|
{
|
|
146
149
|
type: 'text',
|
|
147
150
|
name: 'searchTsv',
|
|
148
151
|
message: 'searchTsv',
|
|
149
152
|
required: false,
|
|
153
|
+
skipPrompt: true,
|
|
150
154
|
},
|
|
151
155
|
{
|
|
152
156
|
type: 'text',
|
|
153
157
|
name: 'type',
|
|
154
158
|
message: 'type',
|
|
155
159
|
required: false,
|
|
160
|
+
skipPrompt: true,
|
|
156
161
|
},
|
|
157
162
|
]);
|
|
158
163
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
@@ -204,30 +209,35 @@ async function handleUpdate(argv, prompter) {
|
|
|
204
209
|
name: 'username',
|
|
205
210
|
message: 'username',
|
|
206
211
|
required: false,
|
|
212
|
+
skipPrompt: true,
|
|
207
213
|
},
|
|
208
214
|
{
|
|
209
215
|
type: 'text',
|
|
210
216
|
name: 'displayName',
|
|
211
217
|
message: 'displayName',
|
|
212
218
|
required: false,
|
|
219
|
+
skipPrompt: true,
|
|
213
220
|
},
|
|
214
221
|
{
|
|
215
222
|
type: 'text',
|
|
216
223
|
name: 'profilePicture',
|
|
217
224
|
message: 'profilePicture',
|
|
218
225
|
required: false,
|
|
226
|
+
skipPrompt: true,
|
|
219
227
|
},
|
|
220
228
|
{
|
|
221
229
|
type: 'text',
|
|
222
230
|
name: 'searchTsv',
|
|
223
231
|
message: 'searchTsv',
|
|
224
232
|
required: false,
|
|
233
|
+
skipPrompt: true,
|
|
225
234
|
},
|
|
226
235
|
{
|
|
227
236
|
type: 'text',
|
|
228
237
|
name: 'type',
|
|
229
238
|
message: 'type',
|
|
230
239
|
required: false,
|
|
240
|
+
skipPrompt: true,
|
|
231
241
|
},
|
|
232
242
|
]);
|
|
233
243
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
@@ -17,7 +17,7 @@ exports.default = async (argv, prompter, _options) => {
|
|
|
17
17
|
},
|
|
18
18
|
]);
|
|
19
19
|
const client = (0, executor_1.getClient)();
|
|
20
|
-
const parsedAnswers = (0, utils_1.
|
|
20
|
+
const parsedAnswers = (0, utils_1.unflattenDotNotation)(answers);
|
|
21
21
|
const selectFields = (0, utils_1.buildSelectFromPaths)(argv.select ?? 'clientMutationId');
|
|
22
22
|
const result = await client.mutation
|
|
23
23
|
.verifyEmail(parsedAnswers, {
|
|
@@ -17,7 +17,7 @@ exports.default = async (argv, prompter, _options) => {
|
|
|
17
17
|
},
|
|
18
18
|
]);
|
|
19
19
|
const client = (0, executor_1.getClient)();
|
|
20
|
-
const parsedAnswers = (0, utils_1.
|
|
20
|
+
const parsedAnswers = (0, utils_1.unflattenDotNotation)(answers);
|
|
21
21
|
const selectFields = (0, utils_1.buildSelectFromPaths)(argv.select ?? 'clientMutationId');
|
|
22
22
|
const result = await client.mutation
|
|
23
23
|
.verifyPassword(parsedAnswers, {
|
|
@@ -17,7 +17,7 @@ exports.default = async (argv, prompter, _options) => {
|
|
|
17
17
|
},
|
|
18
18
|
]);
|
|
19
19
|
const client = (0, executor_1.getClient)();
|
|
20
|
-
const parsedAnswers = (0, utils_1.
|
|
20
|
+
const parsedAnswers = (0, utils_1.unflattenDotNotation)(answers);
|
|
21
21
|
const selectFields = (0, utils_1.buildSelectFromPaths)(argv.select ?? 'clientMutationId');
|
|
22
22
|
const result = await client.mutation
|
|
23
23
|
.verifyTotp(parsedAnswers, {
|
package/auth/cli/index.js
CHANGED
|
@@ -12,9 +12,9 @@ if (process.argv.includes('--version') || process.argv.includes('-v')) {
|
|
|
12
12
|
console.log(pkg.version);
|
|
13
13
|
process.exit(0);
|
|
14
14
|
}
|
|
15
|
-
// Check for --tty false to enable non-interactive mode (noTty)
|
|
15
|
+
// Check for --tty false or --no-tty to enable non-interactive mode (noTty)
|
|
16
16
|
const ttyIdx = process.argv.indexOf('--tty');
|
|
17
|
-
const noTty = ttyIdx !== -1 && process.argv[ttyIdx + 1] === 'false';
|
|
17
|
+
const noTty = (ttyIdx !== -1 && process.argv[ttyIdx + 1] === 'false') || process.argv.includes('--no-tty');
|
|
18
18
|
const options = {
|
|
19
19
|
noTty,
|
|
20
20
|
minimistOpts: { alias: { v: 'version', h: 'help' } },
|
package/auth/cli/utils.d.ts
CHANGED
|
@@ -20,6 +20,19 @@ export declare function stripUndefined(obj: Record<string, unknown>, schema?: Fi
|
|
|
20
20
|
* from the CLI prompt. This parses it into a proper object.
|
|
21
21
|
*/
|
|
22
22
|
export declare function parseMutationInput(answers: Record<string, unknown>): Record<string, unknown>;
|
|
23
|
+
/**
|
|
24
|
+
* Reconstruct nested objects from dot-notation CLI answers.
|
|
25
|
+
* When INPUT_OBJECT args are flattened to dot-notation questions
|
|
26
|
+
* (e.g. `--input.email foo --input.password bar`), this function
|
|
27
|
+
* rebuilds the nested structure expected by the ORM:
|
|
28
|
+
*
|
|
29
|
+
* { 'input.email': 'foo', 'input.password': 'bar' }
|
|
30
|
+
* → { input: { email: 'foo', password: 'bar' } }
|
|
31
|
+
*
|
|
32
|
+
* Non-dotted keys are passed through unchanged.
|
|
33
|
+
* Uses `nested-obj` for safe nested property setting.
|
|
34
|
+
*/
|
|
35
|
+
export declare function unflattenDotNotation(answers: Record<string, unknown>): Record<string, unknown>;
|
|
23
36
|
/**
|
|
24
37
|
* Build a select object from a comma-separated list of dot-notation paths.
|
|
25
38
|
* Uses `nested-obj` to parse paths like 'clientMutationId,result.accessToken,result.userId'
|
package/auth/cli/utils.js
CHANGED
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.coerceAnswers = coerceAnswers;
|
|
7
7
|
exports.stripUndefined = stripUndefined;
|
|
8
8
|
exports.parseMutationInput = parseMutationInput;
|
|
9
|
+
exports.unflattenDotNotation = unflattenDotNotation;
|
|
9
10
|
exports.buildSelectFromPaths = buildSelectFromPaths;
|
|
10
11
|
/**
|
|
11
12
|
* CLI utility functions for type coercion and input handling
|
|
@@ -124,6 +125,30 @@ function parseMutationInput(answers) {
|
|
|
124
125
|
}
|
|
125
126
|
return answers;
|
|
126
127
|
}
|
|
128
|
+
/**
|
|
129
|
+
* Reconstruct nested objects from dot-notation CLI answers.
|
|
130
|
+
* When INPUT_OBJECT args are flattened to dot-notation questions
|
|
131
|
+
* (e.g. `--input.email foo --input.password bar`), this function
|
|
132
|
+
* rebuilds the nested structure expected by the ORM:
|
|
133
|
+
*
|
|
134
|
+
* { 'input.email': 'foo', 'input.password': 'bar' }
|
|
135
|
+
* → { input: { email: 'foo', password: 'bar' } }
|
|
136
|
+
*
|
|
137
|
+
* Non-dotted keys are passed through unchanged.
|
|
138
|
+
* Uses `nested-obj` for safe nested property setting.
|
|
139
|
+
*/
|
|
140
|
+
function unflattenDotNotation(answers) {
|
|
141
|
+
const result = {};
|
|
142
|
+
for (const [key, value] of Object.entries(answers)) {
|
|
143
|
+
if (key.includes('.')) {
|
|
144
|
+
nested_obj_1.default.set(result, key, value);
|
|
145
|
+
}
|
|
146
|
+
else {
|
|
147
|
+
result[key] = value;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
return result;
|
|
151
|
+
}
|
|
127
152
|
/**
|
|
128
153
|
* Build a select object from a comma-separated list of dot-notation paths.
|
|
129
154
|
* Uses `nested-obj` to parse paths like 'clientMutationId,result.accessToken,result.userId'
|
|
@@ -118,6 +118,7 @@ async function handleCreate(argv, prompter) {
|
|
|
118
118
|
name: 'actorId',
|
|
119
119
|
message: 'actorId',
|
|
120
120
|
required: false,
|
|
121
|
+
skipPrompt: true,
|
|
121
122
|
},
|
|
122
123
|
{
|
|
123
124
|
type: 'text',
|
|
@@ -130,6 +131,7 @@ async function handleCreate(argv, prompter) {
|
|
|
130
131
|
name: 'count',
|
|
131
132
|
message: 'count',
|
|
132
133
|
required: false,
|
|
134
|
+
skipPrompt: true,
|
|
133
135
|
},
|
|
134
136
|
]);
|
|
135
137
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
@@ -176,6 +178,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
176
178
|
name: 'actorId',
|
|
177
179
|
message: 'actorId',
|
|
178
180
|
required: false,
|
|
181
|
+
skipPrompt: true,
|
|
179
182
|
},
|
|
180
183
|
{
|
|
181
184
|
type: 'text',
|
|
@@ -188,6 +191,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
188
191
|
name: 'count',
|
|
189
192
|
message: 'count',
|
|
190
193
|
required: false,
|
|
194
|
+
skipPrompt: true,
|
|
191
195
|
},
|
|
192
196
|
]);
|
|
193
197
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
@@ -114,10 +114,11 @@ async function handleCreate(argv, prompter) {
|
|
|
114
114
|
try {
|
|
115
115
|
const rawAnswers = await prompter.prompt(argv, [
|
|
116
116
|
{
|
|
117
|
-
type: '
|
|
117
|
+
type: 'boolean',
|
|
118
118
|
name: 'isGrant',
|
|
119
119
|
message: 'isGrant',
|
|
120
120
|
required: false,
|
|
121
|
+
skipPrompt: true,
|
|
121
122
|
},
|
|
122
123
|
{
|
|
123
124
|
type: 'text',
|
|
@@ -130,6 +131,7 @@ async function handleCreate(argv, prompter) {
|
|
|
130
131
|
name: 'grantorId',
|
|
131
132
|
message: 'grantorId',
|
|
132
133
|
required: false,
|
|
134
|
+
skipPrompt: true,
|
|
133
135
|
},
|
|
134
136
|
]);
|
|
135
137
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
@@ -172,10 +174,11 @@ async function handleUpdate(argv, prompter) {
|
|
|
172
174
|
required: true,
|
|
173
175
|
},
|
|
174
176
|
{
|
|
175
|
-
type: '
|
|
177
|
+
type: 'boolean',
|
|
176
178
|
name: 'isGrant',
|
|
177
179
|
message: 'isGrant',
|
|
178
180
|
required: false,
|
|
181
|
+
skipPrompt: true,
|
|
179
182
|
},
|
|
180
183
|
{
|
|
181
184
|
type: 'text',
|
|
@@ -188,6 +191,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
188
191
|
name: 'grantorId',
|
|
189
192
|
message: 'grantorId',
|
|
190
193
|
required: false,
|
|
194
|
+
skipPrompt: true,
|
|
191
195
|
},
|
|
192
196
|
]);
|
|
193
197
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
@@ -121,12 +121,14 @@ async function handleCreate(argv, prompter) {
|
|
|
121
121
|
name: 'permissions',
|
|
122
122
|
message: 'permissions',
|
|
123
123
|
required: false,
|
|
124
|
+
skipPrompt: true,
|
|
124
125
|
},
|
|
125
126
|
{
|
|
126
|
-
type: '
|
|
127
|
+
type: 'boolean',
|
|
127
128
|
name: 'isGrant',
|
|
128
129
|
message: 'isGrant',
|
|
129
130
|
required: false,
|
|
131
|
+
skipPrompt: true,
|
|
130
132
|
},
|
|
131
133
|
{
|
|
132
134
|
type: 'text',
|
|
@@ -139,6 +141,7 @@ async function handleCreate(argv, prompter) {
|
|
|
139
141
|
name: 'grantorId',
|
|
140
142
|
message: 'grantorId',
|
|
141
143
|
required: false,
|
|
144
|
+
skipPrompt: true,
|
|
142
145
|
},
|
|
143
146
|
]);
|
|
144
147
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
@@ -187,12 +190,14 @@ async function handleUpdate(argv, prompter) {
|
|
|
187
190
|
name: 'permissions',
|
|
188
191
|
message: 'permissions',
|
|
189
192
|
required: false,
|
|
193
|
+
skipPrompt: true,
|
|
190
194
|
},
|
|
191
195
|
{
|
|
192
|
-
type: '
|
|
196
|
+
type: 'boolean',
|
|
193
197
|
name: 'isGrant',
|
|
194
198
|
message: 'isGrant',
|
|
195
199
|
required: false,
|
|
200
|
+
skipPrompt: true,
|
|
196
201
|
},
|
|
197
202
|
{
|
|
198
203
|
type: 'text',
|
|
@@ -205,6 +210,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
205
210
|
name: 'grantorId',
|
|
206
211
|
message: 'grantorId',
|
|
207
212
|
required: false,
|
|
213
|
+
skipPrompt: true,
|
|
208
214
|
},
|
|
209
215
|
]);
|
|
210
216
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
@@ -136,18 +136,21 @@ async function handleCreate(argv, prompter) {
|
|
|
136
136
|
name: 'description',
|
|
137
137
|
message: 'description',
|
|
138
138
|
required: false,
|
|
139
|
+
skipPrompt: true,
|
|
139
140
|
},
|
|
140
141
|
{
|
|
141
142
|
type: 'text',
|
|
142
143
|
name: 'requiredCount',
|
|
143
144
|
message: 'requiredCount',
|
|
144
145
|
required: false,
|
|
146
|
+
skipPrompt: true,
|
|
145
147
|
},
|
|
146
148
|
{
|
|
147
149
|
type: 'text',
|
|
148
150
|
name: 'priority',
|
|
149
151
|
message: 'priority',
|
|
150
152
|
required: false,
|
|
153
|
+
skipPrompt: true,
|
|
151
154
|
},
|
|
152
155
|
]);
|
|
153
156
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
@@ -210,18 +213,21 @@ async function handleUpdate(argv, prompter) {
|
|
|
210
213
|
name: 'description',
|
|
211
214
|
message: 'description',
|
|
212
215
|
required: false,
|
|
216
|
+
skipPrompt: true,
|
|
213
217
|
},
|
|
214
218
|
{
|
|
215
219
|
type: 'text',
|
|
216
220
|
name: 'requiredCount',
|
|
217
221
|
message: 'requiredCount',
|
|
218
222
|
required: false,
|
|
223
|
+
skipPrompt: true,
|
|
219
224
|
},
|
|
220
225
|
{
|
|
221
226
|
type: 'text',
|
|
222
227
|
name: 'priority',
|
|
223
228
|
message: 'priority',
|
|
224
229
|
required: false,
|
|
230
|
+
skipPrompt: true,
|
|
225
231
|
},
|
|
226
232
|
]);
|
|
227
233
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
@@ -127,18 +127,21 @@ async function handleCreate(argv, prompter) {
|
|
|
127
127
|
name: 'description',
|
|
128
128
|
message: 'description',
|
|
129
129
|
required: false,
|
|
130
|
+
skipPrompt: true,
|
|
130
131
|
},
|
|
131
132
|
{
|
|
132
133
|
type: 'text',
|
|
133
134
|
name: 'image',
|
|
134
135
|
message: 'image',
|
|
135
136
|
required: false,
|
|
137
|
+
skipPrompt: true,
|
|
136
138
|
},
|
|
137
139
|
{
|
|
138
140
|
type: 'text',
|
|
139
141
|
name: 'ownerId',
|
|
140
142
|
message: 'ownerId',
|
|
141
143
|
required: false,
|
|
144
|
+
skipPrompt: true,
|
|
142
145
|
},
|
|
143
146
|
]);
|
|
144
147
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
@@ -193,18 +196,21 @@ async function handleUpdate(argv, prompter) {
|
|
|
193
196
|
name: 'description',
|
|
194
197
|
message: 'description',
|
|
195
198
|
required: false,
|
|
199
|
+
skipPrompt: true,
|
|
196
200
|
},
|
|
197
201
|
{
|
|
198
202
|
type: 'text',
|
|
199
203
|
name: 'image',
|
|
200
204
|
message: 'image',
|
|
201
205
|
required: false,
|
|
206
|
+
skipPrompt: true,
|
|
202
207
|
},
|
|
203
208
|
{
|
|
204
209
|
type: 'text',
|
|
205
210
|
name: 'ownerId',
|
|
206
211
|
message: 'ownerId',
|
|
207
212
|
required: false,
|
|
213
|
+
skipPrompt: true,
|
|
208
214
|
},
|
|
209
215
|
]);
|
|
210
216
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
@@ -115,6 +115,7 @@ async function handleCreate(argv, prompter) {
|
|
|
115
115
|
name: 'max',
|
|
116
116
|
message: 'max',
|
|
117
117
|
required: false,
|
|
118
|
+
skipPrompt: true,
|
|
118
119
|
},
|
|
119
120
|
]);
|
|
120
121
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
@@ -163,6 +164,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
163
164
|
name: 'max',
|
|
164
165
|
message: 'max',
|
|
165
166
|
required: false,
|
|
167
|
+
skipPrompt: true,
|
|
166
168
|
},
|
|
167
169
|
]);
|
|
168
170
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|