@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
|
@@ -116,22 +116,25 @@ async function handleCreate(argv, prompter) {
|
|
|
116
116
|
try {
|
|
117
117
|
const rawAnswers = await prompter.prompt(argv, [
|
|
118
118
|
{
|
|
119
|
-
type: '
|
|
119
|
+
type: 'json',
|
|
120
120
|
name: 'data',
|
|
121
121
|
message: 'data',
|
|
122
122
|
required: false,
|
|
123
|
+
skipPrompt: true,
|
|
123
124
|
},
|
|
124
125
|
{
|
|
125
126
|
type: 'text',
|
|
126
127
|
name: 'senderId',
|
|
127
128
|
message: 'senderId',
|
|
128
129
|
required: false,
|
|
130
|
+
skipPrompt: true,
|
|
129
131
|
},
|
|
130
132
|
{
|
|
131
133
|
type: 'text',
|
|
132
134
|
name: 'receiverId',
|
|
133
135
|
message: 'receiverId',
|
|
134
136
|
required: false,
|
|
137
|
+
skipPrompt: true,
|
|
135
138
|
},
|
|
136
139
|
]);
|
|
137
140
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
@@ -174,22 +177,25 @@ async function handleUpdate(argv, prompter) {
|
|
|
174
177
|
required: true,
|
|
175
178
|
},
|
|
176
179
|
{
|
|
177
|
-
type: '
|
|
180
|
+
type: 'json',
|
|
178
181
|
name: 'data',
|
|
179
182
|
message: 'data',
|
|
180
183
|
required: false,
|
|
184
|
+
skipPrompt: true,
|
|
181
185
|
},
|
|
182
186
|
{
|
|
183
187
|
type: 'text',
|
|
184
188
|
name: 'senderId',
|
|
185
189
|
message: 'senderId',
|
|
186
190
|
required: false,
|
|
191
|
+
skipPrompt: true,
|
|
187
192
|
},
|
|
188
193
|
{
|
|
189
194
|
type: 'text',
|
|
190
195
|
name: 'receiverId',
|
|
191
196
|
message: 'receiverId',
|
|
192
197
|
required: false,
|
|
198
|
+
skipPrompt: true,
|
|
193
199
|
},
|
|
194
200
|
]);
|
|
195
201
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
@@ -138,54 +138,63 @@ async function handleCreate(argv, prompter) {
|
|
|
138
138
|
name: 'email',
|
|
139
139
|
message: 'email',
|
|
140
140
|
required: false,
|
|
141
|
+
skipPrompt: true,
|
|
141
142
|
},
|
|
142
143
|
{
|
|
143
144
|
type: 'text',
|
|
144
145
|
name: 'senderId',
|
|
145
146
|
message: 'senderId',
|
|
146
147
|
required: false,
|
|
148
|
+
skipPrompt: true,
|
|
147
149
|
},
|
|
148
150
|
{
|
|
149
151
|
type: 'text',
|
|
150
152
|
name: 'inviteToken',
|
|
151
153
|
message: 'inviteToken',
|
|
152
154
|
required: false,
|
|
155
|
+
skipPrompt: true,
|
|
153
156
|
},
|
|
154
157
|
{
|
|
155
|
-
type: '
|
|
158
|
+
type: 'boolean',
|
|
156
159
|
name: 'inviteValid',
|
|
157
160
|
message: 'inviteValid',
|
|
158
161
|
required: false,
|
|
162
|
+
skipPrompt: true,
|
|
159
163
|
},
|
|
160
164
|
{
|
|
161
165
|
type: 'text',
|
|
162
166
|
name: 'inviteLimit',
|
|
163
167
|
message: 'inviteLimit',
|
|
164
168
|
required: false,
|
|
169
|
+
skipPrompt: true,
|
|
165
170
|
},
|
|
166
171
|
{
|
|
167
172
|
type: 'text',
|
|
168
173
|
name: 'inviteCount',
|
|
169
174
|
message: 'inviteCount',
|
|
170
175
|
required: false,
|
|
176
|
+
skipPrompt: true,
|
|
171
177
|
},
|
|
172
178
|
{
|
|
173
|
-
type: '
|
|
179
|
+
type: 'boolean',
|
|
174
180
|
name: 'multiple',
|
|
175
181
|
message: 'multiple',
|
|
176
182
|
required: false,
|
|
183
|
+
skipPrompt: true,
|
|
177
184
|
},
|
|
178
185
|
{
|
|
179
|
-
type: '
|
|
186
|
+
type: 'json',
|
|
180
187
|
name: 'data',
|
|
181
188
|
message: 'data',
|
|
182
189
|
required: false,
|
|
190
|
+
skipPrompt: true,
|
|
183
191
|
},
|
|
184
192
|
{
|
|
185
193
|
type: 'text',
|
|
186
194
|
name: 'expiresAt',
|
|
187
195
|
message: 'expiresAt',
|
|
188
196
|
required: false,
|
|
197
|
+
skipPrompt: true,
|
|
189
198
|
},
|
|
190
199
|
]);
|
|
191
200
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
@@ -244,54 +253,63 @@ async function handleUpdate(argv, prompter) {
|
|
|
244
253
|
name: 'email',
|
|
245
254
|
message: 'email',
|
|
246
255
|
required: false,
|
|
256
|
+
skipPrompt: true,
|
|
247
257
|
},
|
|
248
258
|
{
|
|
249
259
|
type: 'text',
|
|
250
260
|
name: 'senderId',
|
|
251
261
|
message: 'senderId',
|
|
252
262
|
required: false,
|
|
263
|
+
skipPrompt: true,
|
|
253
264
|
},
|
|
254
265
|
{
|
|
255
266
|
type: 'text',
|
|
256
267
|
name: 'inviteToken',
|
|
257
268
|
message: 'inviteToken',
|
|
258
269
|
required: false,
|
|
270
|
+
skipPrompt: true,
|
|
259
271
|
},
|
|
260
272
|
{
|
|
261
|
-
type: '
|
|
273
|
+
type: 'boolean',
|
|
262
274
|
name: 'inviteValid',
|
|
263
275
|
message: 'inviteValid',
|
|
264
276
|
required: false,
|
|
277
|
+
skipPrompt: true,
|
|
265
278
|
},
|
|
266
279
|
{
|
|
267
280
|
type: 'text',
|
|
268
281
|
name: 'inviteLimit',
|
|
269
282
|
message: 'inviteLimit',
|
|
270
283
|
required: false,
|
|
284
|
+
skipPrompt: true,
|
|
271
285
|
},
|
|
272
286
|
{
|
|
273
287
|
type: 'text',
|
|
274
288
|
name: 'inviteCount',
|
|
275
289
|
message: 'inviteCount',
|
|
276
290
|
required: false,
|
|
291
|
+
skipPrompt: true,
|
|
277
292
|
},
|
|
278
293
|
{
|
|
279
|
-
type: '
|
|
294
|
+
type: 'boolean',
|
|
280
295
|
name: 'multiple',
|
|
281
296
|
message: 'multiple',
|
|
282
297
|
required: false,
|
|
298
|
+
skipPrompt: true,
|
|
283
299
|
},
|
|
284
300
|
{
|
|
285
|
-
type: '
|
|
301
|
+
type: 'json',
|
|
286
302
|
name: 'data',
|
|
287
303
|
message: 'data',
|
|
288
304
|
required: false,
|
|
305
|
+
skipPrompt: true,
|
|
289
306
|
},
|
|
290
307
|
{
|
|
291
308
|
type: 'text',
|
|
292
309
|
name: 'expiresAt',
|
|
293
310
|
message: 'expiresAt',
|
|
294
311
|
required: false,
|
|
312
|
+
skipPrompt: true,
|
|
295
313
|
},
|
|
296
314
|
]);
|
|
297
315
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
@@ -119,10 +119,11 @@ async function handleCreate(argv, prompter) {
|
|
|
119
119
|
try {
|
|
120
120
|
const rawAnswers = await prompter.prompt(argv, [
|
|
121
121
|
{
|
|
122
|
-
type: '
|
|
122
|
+
type: 'boolean',
|
|
123
123
|
name: 'isGrant',
|
|
124
124
|
message: 'isGrant',
|
|
125
125
|
required: false,
|
|
126
|
+
skipPrompt: true,
|
|
126
127
|
},
|
|
127
128
|
{
|
|
128
129
|
type: 'text',
|
|
@@ -141,6 +142,7 @@ async function handleCreate(argv, prompter) {
|
|
|
141
142
|
name: 'grantorId',
|
|
142
143
|
message: 'grantorId',
|
|
143
144
|
required: false,
|
|
145
|
+
skipPrompt: true,
|
|
144
146
|
},
|
|
145
147
|
]);
|
|
146
148
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
@@ -185,10 +187,11 @@ async function handleUpdate(argv, prompter) {
|
|
|
185
187
|
required: true,
|
|
186
188
|
},
|
|
187
189
|
{
|
|
188
|
-
type: '
|
|
190
|
+
type: 'boolean',
|
|
189
191
|
name: 'isGrant',
|
|
190
192
|
message: 'isGrant',
|
|
191
193
|
required: false,
|
|
194
|
+
skipPrompt: true,
|
|
192
195
|
},
|
|
193
196
|
{
|
|
194
197
|
type: 'text',
|
|
@@ -207,6 +210,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
207
210
|
name: 'grantorId',
|
|
208
211
|
message: 'grantorId',
|
|
209
212
|
required: false,
|
|
213
|
+
skipPrompt: true,
|
|
210
214
|
},
|
|
211
215
|
]);
|
|
212
216
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
@@ -141,6 +141,7 @@ async function handleCreate(argv, prompter) {
|
|
|
141
141
|
name: 'parentId',
|
|
142
142
|
message: 'parentId',
|
|
143
143
|
required: false,
|
|
144
|
+
skipPrompt: true,
|
|
144
145
|
},
|
|
145
146
|
{
|
|
146
147
|
type: 'text',
|
|
@@ -149,22 +150,25 @@ async function handleCreate(argv, prompter) {
|
|
|
149
150
|
required: true,
|
|
150
151
|
},
|
|
151
152
|
{
|
|
152
|
-
type: '
|
|
153
|
+
type: 'boolean',
|
|
153
154
|
name: 'isGrant',
|
|
154
155
|
message: 'isGrant',
|
|
155
156
|
required: false,
|
|
157
|
+
skipPrompt: true,
|
|
156
158
|
},
|
|
157
159
|
{
|
|
158
160
|
type: 'text',
|
|
159
161
|
name: 'positionTitle',
|
|
160
162
|
message: 'positionTitle',
|
|
161
163
|
required: false,
|
|
164
|
+
skipPrompt: true,
|
|
162
165
|
},
|
|
163
166
|
{
|
|
164
167
|
type: 'text',
|
|
165
168
|
name: 'positionLevel',
|
|
166
169
|
message: 'positionLevel',
|
|
167
170
|
required: false,
|
|
171
|
+
skipPrompt: true,
|
|
168
172
|
},
|
|
169
173
|
]);
|
|
170
174
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
@@ -230,6 +234,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
230
234
|
name: 'parentId',
|
|
231
235
|
message: 'parentId',
|
|
232
236
|
required: false,
|
|
237
|
+
skipPrompt: true,
|
|
233
238
|
},
|
|
234
239
|
{
|
|
235
240
|
type: 'text',
|
|
@@ -238,22 +243,25 @@ async function handleUpdate(argv, prompter) {
|
|
|
238
243
|
required: false,
|
|
239
244
|
},
|
|
240
245
|
{
|
|
241
|
-
type: '
|
|
246
|
+
type: 'boolean',
|
|
242
247
|
name: 'isGrant',
|
|
243
248
|
message: 'isGrant',
|
|
244
249
|
required: false,
|
|
250
|
+
skipPrompt: true,
|
|
245
251
|
},
|
|
246
252
|
{
|
|
247
253
|
type: 'text',
|
|
248
254
|
name: 'positionTitle',
|
|
249
255
|
message: 'positionTitle',
|
|
250
256
|
required: false,
|
|
257
|
+
skipPrompt: true,
|
|
251
258
|
},
|
|
252
259
|
{
|
|
253
260
|
type: 'text',
|
|
254
261
|
name: 'positionLevel',
|
|
255
262
|
message: 'positionLevel',
|
|
256
263
|
required: false,
|
|
264
|
+
skipPrompt: true,
|
|
257
265
|
},
|
|
258
266
|
]);
|
|
259
267
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
@@ -138,18 +138,21 @@ async function handleCreate(argv, prompter) {
|
|
|
138
138
|
name: 'parentId',
|
|
139
139
|
message: 'parentId',
|
|
140
140
|
required: false,
|
|
141
|
+
skipPrompt: true,
|
|
141
142
|
},
|
|
142
143
|
{
|
|
143
144
|
type: 'text',
|
|
144
145
|
name: 'positionTitle',
|
|
145
146
|
message: 'positionTitle',
|
|
146
147
|
required: false,
|
|
148
|
+
skipPrompt: true,
|
|
147
149
|
},
|
|
148
150
|
{
|
|
149
151
|
type: 'text',
|
|
150
152
|
name: 'positionLevel',
|
|
151
153
|
message: 'positionLevel',
|
|
152
154
|
required: false,
|
|
155
|
+
skipPrompt: true,
|
|
153
156
|
},
|
|
154
157
|
]);
|
|
155
158
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
@@ -212,18 +215,21 @@ async function handleUpdate(argv, prompter) {
|
|
|
212
215
|
name: 'parentId',
|
|
213
216
|
message: 'parentId',
|
|
214
217
|
required: false,
|
|
218
|
+
skipPrompt: true,
|
|
215
219
|
},
|
|
216
220
|
{
|
|
217
221
|
type: 'text',
|
|
218
222
|
name: 'positionTitle',
|
|
219
223
|
message: 'positionTitle',
|
|
220
224
|
required: false,
|
|
225
|
+
skipPrompt: true,
|
|
221
226
|
},
|
|
222
227
|
{
|
|
223
228
|
type: 'text',
|
|
224
229
|
name: 'positionLevel',
|
|
225
230
|
message: 'positionLevel',
|
|
226
231
|
required: false,
|
|
232
|
+
skipPrompt: true,
|
|
227
233
|
},
|
|
228
234
|
]);
|
|
229
235
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
@@ -119,22 +119,25 @@ async function handleCreate(argv, prompter) {
|
|
|
119
119
|
try {
|
|
120
120
|
const rawAnswers = await prompter.prompt(argv, [
|
|
121
121
|
{
|
|
122
|
-
type: '
|
|
122
|
+
type: 'json',
|
|
123
123
|
name: 'data',
|
|
124
124
|
message: 'data',
|
|
125
125
|
required: false,
|
|
126
|
+
skipPrompt: true,
|
|
126
127
|
},
|
|
127
128
|
{
|
|
128
129
|
type: 'text',
|
|
129
130
|
name: 'senderId',
|
|
130
131
|
message: 'senderId',
|
|
131
132
|
required: false,
|
|
133
|
+
skipPrompt: true,
|
|
132
134
|
},
|
|
133
135
|
{
|
|
134
136
|
type: 'text',
|
|
135
137
|
name: 'receiverId',
|
|
136
138
|
message: 'receiverId',
|
|
137
139
|
required: false,
|
|
140
|
+
skipPrompt: true,
|
|
138
141
|
},
|
|
139
142
|
{
|
|
140
143
|
type: 'text',
|
|
@@ -185,22 +188,25 @@ async function handleUpdate(argv, prompter) {
|
|
|
185
188
|
required: true,
|
|
186
189
|
},
|
|
187
190
|
{
|
|
188
|
-
type: '
|
|
191
|
+
type: 'json',
|
|
189
192
|
name: 'data',
|
|
190
193
|
message: 'data',
|
|
191
194
|
required: false,
|
|
195
|
+
skipPrompt: true,
|
|
192
196
|
},
|
|
193
197
|
{
|
|
194
198
|
type: 'text',
|
|
195
199
|
name: 'senderId',
|
|
196
200
|
message: 'senderId',
|
|
197
201
|
required: false,
|
|
202
|
+
skipPrompt: true,
|
|
198
203
|
},
|
|
199
204
|
{
|
|
200
205
|
type: 'text',
|
|
201
206
|
name: 'receiverId',
|
|
202
207
|
message: 'receiverId',
|
|
203
208
|
required: false,
|
|
209
|
+
skipPrompt: true,
|
|
204
210
|
},
|
|
205
211
|
{
|
|
206
212
|
type: 'text',
|
|
@@ -126,12 +126,14 @@ async function handleCreate(argv, prompter) {
|
|
|
126
126
|
name: 'permissions',
|
|
127
127
|
message: 'permissions',
|
|
128
128
|
required: false,
|
|
129
|
+
skipPrompt: true,
|
|
129
130
|
},
|
|
130
131
|
{
|
|
131
|
-
type: '
|
|
132
|
+
type: 'boolean',
|
|
132
133
|
name: 'isGrant',
|
|
133
134
|
message: 'isGrant',
|
|
134
135
|
required: false,
|
|
136
|
+
skipPrompt: true,
|
|
135
137
|
},
|
|
136
138
|
{
|
|
137
139
|
type: 'text',
|
|
@@ -150,6 +152,7 @@ async function handleCreate(argv, prompter) {
|
|
|
150
152
|
name: 'grantorId',
|
|
151
153
|
message: 'grantorId',
|
|
152
154
|
required: false,
|
|
155
|
+
skipPrompt: true,
|
|
153
156
|
},
|
|
154
157
|
]);
|
|
155
158
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
@@ -200,12 +203,14 @@ async function handleUpdate(argv, prompter) {
|
|
|
200
203
|
name: 'permissions',
|
|
201
204
|
message: 'permissions',
|
|
202
205
|
required: false,
|
|
206
|
+
skipPrompt: true,
|
|
203
207
|
},
|
|
204
208
|
{
|
|
205
|
-
type: '
|
|
209
|
+
type: 'boolean',
|
|
206
210
|
name: 'isGrant',
|
|
207
211
|
message: 'isGrant',
|
|
208
212
|
required: false,
|
|
213
|
+
skipPrompt: true,
|
|
209
214
|
},
|
|
210
215
|
{
|
|
211
216
|
type: 'text',
|
|
@@ -224,6 +229,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
224
229
|
name: 'grantorId',
|
|
225
230
|
message: 'grantorId',
|
|
226
231
|
required: false,
|
|
232
|
+
skipPrompt: true,
|
|
227
233
|
},
|
|
228
234
|
]);
|
|
229
235
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
@@ -144,60 +144,70 @@ async function handleCreate(argv, prompter) {
|
|
|
144
144
|
name: 'email',
|
|
145
145
|
message: 'email',
|
|
146
146
|
required: false,
|
|
147
|
+
skipPrompt: true,
|
|
147
148
|
},
|
|
148
149
|
{
|
|
149
150
|
type: 'text',
|
|
150
151
|
name: 'senderId',
|
|
151
152
|
message: 'senderId',
|
|
152
153
|
required: false,
|
|
154
|
+
skipPrompt: true,
|
|
153
155
|
},
|
|
154
156
|
{
|
|
155
157
|
type: 'text',
|
|
156
158
|
name: 'receiverId',
|
|
157
159
|
message: 'receiverId',
|
|
158
160
|
required: false,
|
|
161
|
+
skipPrompt: true,
|
|
159
162
|
},
|
|
160
163
|
{
|
|
161
164
|
type: 'text',
|
|
162
165
|
name: 'inviteToken',
|
|
163
166
|
message: 'inviteToken',
|
|
164
167
|
required: false,
|
|
168
|
+
skipPrompt: true,
|
|
165
169
|
},
|
|
166
170
|
{
|
|
167
|
-
type: '
|
|
171
|
+
type: 'boolean',
|
|
168
172
|
name: 'inviteValid',
|
|
169
173
|
message: 'inviteValid',
|
|
170
174
|
required: false,
|
|
175
|
+
skipPrompt: true,
|
|
171
176
|
},
|
|
172
177
|
{
|
|
173
178
|
type: 'text',
|
|
174
179
|
name: 'inviteLimit',
|
|
175
180
|
message: 'inviteLimit',
|
|
176
181
|
required: false,
|
|
182
|
+
skipPrompt: true,
|
|
177
183
|
},
|
|
178
184
|
{
|
|
179
185
|
type: 'text',
|
|
180
186
|
name: 'inviteCount',
|
|
181
187
|
message: 'inviteCount',
|
|
182
188
|
required: false,
|
|
189
|
+
skipPrompt: true,
|
|
183
190
|
},
|
|
184
191
|
{
|
|
185
|
-
type: '
|
|
192
|
+
type: 'boolean',
|
|
186
193
|
name: 'multiple',
|
|
187
194
|
message: 'multiple',
|
|
188
195
|
required: false,
|
|
196
|
+
skipPrompt: true,
|
|
189
197
|
},
|
|
190
198
|
{
|
|
191
|
-
type: '
|
|
199
|
+
type: 'json',
|
|
192
200
|
name: 'data',
|
|
193
201
|
message: 'data',
|
|
194
202
|
required: false,
|
|
203
|
+
skipPrompt: true,
|
|
195
204
|
},
|
|
196
205
|
{
|
|
197
206
|
type: 'text',
|
|
198
207
|
name: 'expiresAt',
|
|
199
208
|
message: 'expiresAt',
|
|
200
209
|
required: false,
|
|
210
|
+
skipPrompt: true,
|
|
201
211
|
},
|
|
202
212
|
{
|
|
203
213
|
type: 'text',
|
|
@@ -266,60 +276,70 @@ async function handleUpdate(argv, prompter) {
|
|
|
266
276
|
name: 'email',
|
|
267
277
|
message: 'email',
|
|
268
278
|
required: false,
|
|
279
|
+
skipPrompt: true,
|
|
269
280
|
},
|
|
270
281
|
{
|
|
271
282
|
type: 'text',
|
|
272
283
|
name: 'senderId',
|
|
273
284
|
message: 'senderId',
|
|
274
285
|
required: false,
|
|
286
|
+
skipPrompt: true,
|
|
275
287
|
},
|
|
276
288
|
{
|
|
277
289
|
type: 'text',
|
|
278
290
|
name: 'receiverId',
|
|
279
291
|
message: 'receiverId',
|
|
280
292
|
required: false,
|
|
293
|
+
skipPrompt: true,
|
|
281
294
|
},
|
|
282
295
|
{
|
|
283
296
|
type: 'text',
|
|
284
297
|
name: 'inviteToken',
|
|
285
298
|
message: 'inviteToken',
|
|
286
299
|
required: false,
|
|
300
|
+
skipPrompt: true,
|
|
287
301
|
},
|
|
288
302
|
{
|
|
289
|
-
type: '
|
|
303
|
+
type: 'boolean',
|
|
290
304
|
name: 'inviteValid',
|
|
291
305
|
message: 'inviteValid',
|
|
292
306
|
required: false,
|
|
307
|
+
skipPrompt: true,
|
|
293
308
|
},
|
|
294
309
|
{
|
|
295
310
|
type: 'text',
|
|
296
311
|
name: 'inviteLimit',
|
|
297
312
|
message: 'inviteLimit',
|
|
298
313
|
required: false,
|
|
314
|
+
skipPrompt: true,
|
|
299
315
|
},
|
|
300
316
|
{
|
|
301
317
|
type: 'text',
|
|
302
318
|
name: 'inviteCount',
|
|
303
319
|
message: 'inviteCount',
|
|
304
320
|
required: false,
|
|
321
|
+
skipPrompt: true,
|
|
305
322
|
},
|
|
306
323
|
{
|
|
307
|
-
type: '
|
|
324
|
+
type: 'boolean',
|
|
308
325
|
name: 'multiple',
|
|
309
326
|
message: 'multiple',
|
|
310
327
|
required: false,
|
|
328
|
+
skipPrompt: true,
|
|
311
329
|
},
|
|
312
330
|
{
|
|
313
|
-
type: '
|
|
331
|
+
type: 'json',
|
|
314
332
|
name: 'data',
|
|
315
333
|
message: 'data',
|
|
316
334
|
required: false,
|
|
335
|
+
skipPrompt: true,
|
|
317
336
|
},
|
|
318
337
|
{
|
|
319
338
|
type: 'text',
|
|
320
339
|
name: 'expiresAt',
|
|
321
340
|
message: 'expiresAt',
|
|
322
341
|
required: false,
|
|
342
|
+
skipPrompt: true,
|
|
323
343
|
},
|
|
324
344
|
{
|
|
325
345
|
type: 'text',
|
|
@@ -117,6 +117,7 @@ async function handleCreate(argv, prompter) {
|
|
|
117
117
|
name: 'max',
|
|
118
118
|
message: 'max',
|
|
119
119
|
required: false,
|
|
120
|
+
skipPrompt: true,
|
|
120
121
|
},
|
|
121
122
|
]);
|
|
122
123
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
@@ -165,6 +166,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
165
166
|
name: 'max',
|
|
166
167
|
message: 'max',
|
|
167
168
|
required: false,
|
|
169
|
+
skipPrompt: true,
|
|
168
170
|
},
|
|
169
171
|
]);
|
|
170
172
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
@@ -120,6 +120,7 @@ async function handleCreate(argv, prompter) {
|
|
|
120
120
|
name: 'name',
|
|
121
121
|
message: 'name',
|
|
122
122
|
required: false,
|
|
123
|
+
skipPrompt: true,
|
|
123
124
|
},
|
|
124
125
|
{
|
|
125
126
|
type: 'text',
|
|
@@ -132,12 +133,14 @@ async function handleCreate(argv, prompter) {
|
|
|
132
133
|
name: 'num',
|
|
133
134
|
message: 'num',
|
|
134
135
|
required: false,
|
|
136
|
+
skipPrompt: true,
|
|
135
137
|
},
|
|
136
138
|
{
|
|
137
139
|
type: 'text',
|
|
138
140
|
name: 'max',
|
|
139
141
|
message: 'max',
|
|
140
142
|
required: false,
|
|
143
|
+
skipPrompt: true,
|
|
141
144
|
},
|
|
142
145
|
{
|
|
143
146
|
type: 'text',
|
|
@@ -192,6 +195,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
192
195
|
name: 'name',
|
|
193
196
|
message: 'name',
|
|
194
197
|
required: false,
|
|
198
|
+
skipPrompt: true,
|
|
195
199
|
},
|
|
196
200
|
{
|
|
197
201
|
type: 'text',
|
|
@@ -204,12 +208,14 @@ async function handleUpdate(argv, prompter) {
|
|
|
204
208
|
name: 'num',
|
|
205
209
|
message: 'num',
|
|
206
210
|
required: false,
|
|
211
|
+
skipPrompt: true,
|
|
207
212
|
},
|
|
208
213
|
{
|
|
209
214
|
type: 'text',
|
|
210
215
|
name: 'max',
|
|
211
216
|
message: 'max',
|
|
212
217
|
required: false,
|
|
218
|
+
skipPrompt: true,
|
|
213
219
|
},
|
|
214
220
|
{
|
|
215
221
|
type: 'text',
|
|
@@ -110,10 +110,11 @@ async function handleCreate(argv, prompter) {
|
|
|
110
110
|
try {
|
|
111
111
|
const rawAnswers = await prompter.prompt(argv, [
|
|
112
112
|
{
|
|
113
|
-
type: '
|
|
113
|
+
type: 'boolean',
|
|
114
114
|
name: 'isAdmin',
|
|
115
115
|
message: 'isAdmin',
|
|
116
116
|
required: false,
|
|
117
|
+
skipPrompt: true,
|
|
117
118
|
},
|
|
118
119
|
{
|
|
119
120
|
type: 'text',
|
|
@@ -166,10 +167,11 @@ async function handleUpdate(argv, prompter) {
|
|
|
166
167
|
required: true,
|
|
167
168
|
},
|
|
168
169
|
{
|
|
169
|
-
type: '
|
|
170
|
+
type: 'boolean',
|
|
170
171
|
name: 'isAdmin',
|
|
171
172
|
message: 'isAdmin',
|
|
172
173
|
required: false,
|
|
174
|
+
skipPrompt: true,
|
|
173
175
|
},
|
|
174
176
|
{
|
|
175
177
|
type: 'text',
|