@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
|
@@ -132,24 +132,28 @@ async function handleCreate(argv, prompter) {
|
|
|
132
132
|
name: 'kids',
|
|
133
133
|
message: 'kids',
|
|
134
134
|
required: false,
|
|
135
|
+
skipPrompt: true,
|
|
135
136
|
},
|
|
136
137
|
{
|
|
137
138
|
type: 'text',
|
|
138
139
|
name: 'ktree',
|
|
139
140
|
message: 'ktree',
|
|
140
141
|
required: false,
|
|
142
|
+
skipPrompt: true,
|
|
141
143
|
},
|
|
142
144
|
{
|
|
143
|
-
type: '
|
|
145
|
+
type: 'json',
|
|
144
146
|
name: 'data',
|
|
145
147
|
message: 'data',
|
|
146
148
|
required: false,
|
|
149
|
+
skipPrompt: true,
|
|
147
150
|
},
|
|
148
151
|
{
|
|
149
|
-
type: '
|
|
152
|
+
type: 'boolean',
|
|
150
153
|
name: 'frzn',
|
|
151
154
|
message: 'frzn',
|
|
152
155
|
required: false,
|
|
156
|
+
skipPrompt: true,
|
|
153
157
|
},
|
|
154
158
|
]);
|
|
155
159
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
@@ -206,24 +210,28 @@ async function handleUpdate(argv, prompter) {
|
|
|
206
210
|
name: 'kids',
|
|
207
211
|
message: 'kids',
|
|
208
212
|
required: false,
|
|
213
|
+
skipPrompt: true,
|
|
209
214
|
},
|
|
210
215
|
{
|
|
211
216
|
type: 'text',
|
|
212
217
|
name: 'ktree',
|
|
213
218
|
message: 'ktree',
|
|
214
219
|
required: false,
|
|
220
|
+
skipPrompt: true,
|
|
215
221
|
},
|
|
216
222
|
{
|
|
217
|
-
type: '
|
|
223
|
+
type: 'json',
|
|
218
224
|
name: 'data',
|
|
219
225
|
message: 'data',
|
|
220
226
|
required: false,
|
|
227
|
+
skipPrompt: true,
|
|
221
228
|
},
|
|
222
229
|
{
|
|
223
|
-
type: '
|
|
230
|
+
type: 'boolean',
|
|
224
231
|
name: 'frzn',
|
|
225
232
|
message: 'frzn',
|
|
226
233
|
required: false,
|
|
234
|
+
skipPrompt: true,
|
|
227
235
|
},
|
|
228
236
|
]);
|
|
229
237
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
@@ -135,6 +135,7 @@ async function handleCreate(argv, prompter) {
|
|
|
135
135
|
name: 'commitId',
|
|
136
136
|
message: 'commitId',
|
|
137
137
|
required: false,
|
|
138
|
+
skipPrompt: true,
|
|
138
139
|
},
|
|
139
140
|
]);
|
|
140
141
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
@@ -199,6 +200,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
199
200
|
name: 'commitId',
|
|
200
201
|
message: 'commitId',
|
|
201
202
|
required: false,
|
|
203
|
+
skipPrompt: true,
|
|
202
204
|
},
|
|
203
205
|
]);
|
|
204
206
|
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
|
.removeNodeAtPath(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
|
.setAndCommit(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
|
.setDataAtPath(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
|
.setPropsAndCommit(parsedAnswers, {
|
|
@@ -129,6 +129,7 @@ async function handleCreate(argv, prompter) {
|
|
|
129
129
|
name: 'hash',
|
|
130
130
|
message: 'hash',
|
|
131
131
|
required: false,
|
|
132
|
+
skipPrompt: true,
|
|
132
133
|
},
|
|
133
134
|
]);
|
|
134
135
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
@@ -186,6 +187,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
186
187
|
name: 'hash',
|
|
187
188
|
message: 'hash',
|
|
188
189
|
required: false,
|
|
190
|
+
skipPrompt: true,
|
|
189
191
|
},
|
|
190
192
|
]);
|
|
191
193
|
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
|
.updateNodeAtPath(parsedAnswers, {
|
package/objects/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/objects/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/objects/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'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constructive-sdk/cli",
|
|
3
|
-
"version": "0.2
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "Constructive CLI SDK - Auto-generated GraphQL CLI with ORM client, context management, and interactive prompts",
|
|
6
6
|
"main": "index.js",
|
|
@@ -45,20 +45,20 @@
|
|
|
45
45
|
],
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@0no-co/graphql.web": "^1.1.2",
|
|
48
|
-
"@constructive-io/graphql-types": "^3.
|
|
48
|
+
"@constructive-io/graphql-types": "^3.3.2",
|
|
49
49
|
"appstash": "^0.5.0",
|
|
50
|
-
"gql-ast": "^3.
|
|
50
|
+
"gql-ast": "^3.3.2",
|
|
51
51
|
"graphql": "^16.13.0",
|
|
52
|
-
"inquirerer": "^4.
|
|
52
|
+
"inquirerer": "^4.7.0",
|
|
53
53
|
"nested-obj": "^0.2.1",
|
|
54
54
|
"yanse": "^0.2.1"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@constructive-io/graphql-codegen": "^4.
|
|
57
|
+
"@constructive-io/graphql-codegen": "^4.12.2",
|
|
58
58
|
"@types/node": "^22.19.11",
|
|
59
59
|
"makage": "^0.1.12",
|
|
60
60
|
"tsx": "^4.19.0",
|
|
61
61
|
"typescript": "^5.9.3"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "4fd2c9be786ad9ae2213453276a69723435d5315"
|
|
64
64
|
}
|
|
@@ -131,7 +131,7 @@ async function handleCreate(argv, prompter) {
|
|
|
131
131
|
required: true,
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
|
-
type: '
|
|
134
|
+
type: 'json',
|
|
135
135
|
name: 'data',
|
|
136
136
|
message: 'data',
|
|
137
137
|
required: true,
|
|
@@ -195,7 +195,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
195
195
|
required: false,
|
|
196
196
|
},
|
|
197
197
|
{
|
|
198
|
-
type: '
|
|
198
|
+
type: 'json',
|
|
199
199
|
name: 'data',
|
|
200
200
|
message: 'data',
|
|
201
201
|
required: false,
|
|
@@ -135,24 +135,28 @@ async function handleCreate(argv, prompter) {
|
|
|
135
135
|
name: 'dbname',
|
|
136
136
|
message: 'dbname',
|
|
137
137
|
required: false,
|
|
138
|
+
skipPrompt: true,
|
|
138
139
|
},
|
|
139
140
|
{
|
|
140
141
|
type: 'text',
|
|
141
142
|
name: 'roleName',
|
|
142
143
|
message: 'roleName',
|
|
143
144
|
required: false,
|
|
145
|
+
skipPrompt: true,
|
|
144
146
|
},
|
|
145
147
|
{
|
|
146
148
|
type: 'text',
|
|
147
149
|
name: 'anonRole',
|
|
148
150
|
message: 'anonRole',
|
|
149
151
|
required: false,
|
|
152
|
+
skipPrompt: true,
|
|
150
153
|
},
|
|
151
154
|
{
|
|
152
|
-
type: '
|
|
155
|
+
type: 'boolean',
|
|
153
156
|
name: 'isPublic',
|
|
154
157
|
message: 'isPublic',
|
|
155
158
|
required: false,
|
|
159
|
+
skipPrompt: true,
|
|
156
160
|
},
|
|
157
161
|
]);
|
|
158
162
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
@@ -215,24 +219,28 @@ async function handleUpdate(argv, prompter) {
|
|
|
215
219
|
name: 'dbname',
|
|
216
220
|
message: 'dbname',
|
|
217
221
|
required: false,
|
|
222
|
+
skipPrompt: true,
|
|
218
223
|
},
|
|
219
224
|
{
|
|
220
225
|
type: 'text',
|
|
221
226
|
name: 'roleName',
|
|
222
227
|
message: 'roleName',
|
|
223
228
|
required: false,
|
|
229
|
+
skipPrompt: true,
|
|
224
230
|
},
|
|
225
231
|
{
|
|
226
232
|
type: 'text',
|
|
227
233
|
name: 'anonRole',
|
|
228
234
|
message: 'anonRole',
|
|
229
235
|
required: false,
|
|
236
|
+
skipPrompt: true,
|
|
230
237
|
},
|
|
231
238
|
{
|
|
232
|
-
type: '
|
|
239
|
+
type: 'boolean',
|
|
233
240
|
name: 'isPublic',
|
|
234
241
|
message: 'isPublic',
|
|
235
242
|
required: false,
|
|
243
|
+
skipPrompt: true,
|
|
236
244
|
},
|
|
237
245
|
]);
|
|
238
246
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
@@ -120,6 +120,7 @@ async function handleCreate(argv, prompter) {
|
|
|
120
120
|
name: 'actorId',
|
|
121
121
|
message: 'actorId',
|
|
122
122
|
required: false,
|
|
123
|
+
skipPrompt: true,
|
|
123
124
|
},
|
|
124
125
|
{
|
|
125
126
|
type: 'text',
|
|
@@ -132,6 +133,7 @@ async function handleCreate(argv, prompter) {
|
|
|
132
133
|
name: 'count',
|
|
133
134
|
message: 'count',
|
|
134
135
|
required: false,
|
|
136
|
+
skipPrompt: true,
|
|
135
137
|
},
|
|
136
138
|
]);
|
|
137
139
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
@@ -178,6 +180,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
178
180
|
name: 'actorId',
|
|
179
181
|
message: 'actorId',
|
|
180
182
|
required: false,
|
|
183
|
+
skipPrompt: true,
|
|
181
184
|
},
|
|
182
185
|
{
|
|
183
186
|
type: 'text',
|
|
@@ -190,6 +193,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
190
193
|
name: 'count',
|
|
191
194
|
message: 'count',
|
|
192
195
|
required: false,
|
|
196
|
+
skipPrompt: true,
|
|
193
197
|
},
|
|
194
198
|
]);
|
|
195
199
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
@@ -116,10 +116,11 @@ async function handleCreate(argv, prompter) {
|
|
|
116
116
|
try {
|
|
117
117
|
const rawAnswers = await prompter.prompt(argv, [
|
|
118
118
|
{
|
|
119
|
-
type: '
|
|
119
|
+
type: 'boolean',
|
|
120
120
|
name: 'isGrant',
|
|
121
121
|
message: 'isGrant',
|
|
122
122
|
required: false,
|
|
123
|
+
skipPrompt: true,
|
|
123
124
|
},
|
|
124
125
|
{
|
|
125
126
|
type: 'text',
|
|
@@ -132,6 +133,7 @@ async function handleCreate(argv, prompter) {
|
|
|
132
133
|
name: 'grantorId',
|
|
133
134
|
message: 'grantorId',
|
|
134
135
|
required: false,
|
|
136
|
+
skipPrompt: true,
|
|
135
137
|
},
|
|
136
138
|
]);
|
|
137
139
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
@@ -174,10 +176,11 @@ async function handleUpdate(argv, prompter) {
|
|
|
174
176
|
required: true,
|
|
175
177
|
},
|
|
176
178
|
{
|
|
177
|
-
type: '
|
|
179
|
+
type: 'boolean',
|
|
178
180
|
name: 'isGrant',
|
|
179
181
|
message: 'isGrant',
|
|
180
182
|
required: false,
|
|
183
|
+
skipPrompt: true,
|
|
181
184
|
},
|
|
182
185
|
{
|
|
183
186
|
type: 'text',
|
|
@@ -190,6 +193,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
190
193
|
name: 'grantorId',
|
|
191
194
|
message: 'grantorId',
|
|
192
195
|
required: false,
|
|
196
|
+
skipPrompt: true,
|
|
193
197
|
},
|
|
194
198
|
]);
|
|
195
199
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
@@ -123,12 +123,14 @@ async function handleCreate(argv, prompter) {
|
|
|
123
123
|
name: 'permissions',
|
|
124
124
|
message: 'permissions',
|
|
125
125
|
required: false,
|
|
126
|
+
skipPrompt: true,
|
|
126
127
|
},
|
|
127
128
|
{
|
|
128
|
-
type: '
|
|
129
|
+
type: 'boolean',
|
|
129
130
|
name: 'isGrant',
|
|
130
131
|
message: 'isGrant',
|
|
131
132
|
required: false,
|
|
133
|
+
skipPrompt: true,
|
|
132
134
|
},
|
|
133
135
|
{
|
|
134
136
|
type: 'text',
|
|
@@ -141,6 +143,7 @@ async function handleCreate(argv, prompter) {
|
|
|
141
143
|
name: 'grantorId',
|
|
142
144
|
message: 'grantorId',
|
|
143
145
|
required: false,
|
|
146
|
+
skipPrompt: true,
|
|
144
147
|
},
|
|
145
148
|
]);
|
|
146
149
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
@@ -189,12 +192,14 @@ async function handleUpdate(argv, prompter) {
|
|
|
189
192
|
name: 'permissions',
|
|
190
193
|
message: 'permissions',
|
|
191
194
|
required: false,
|
|
195
|
+
skipPrompt: true,
|
|
192
196
|
},
|
|
193
197
|
{
|
|
194
|
-
type: '
|
|
198
|
+
type: 'boolean',
|
|
195
199
|
name: 'isGrant',
|
|
196
200
|
message: 'isGrant',
|
|
197
201
|
required: false,
|
|
202
|
+
skipPrompt: true,
|
|
198
203
|
},
|
|
199
204
|
{
|
|
200
205
|
type: 'text',
|
|
@@ -207,6 +212,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
207
212
|
name: 'grantorId',
|
|
208
213
|
message: 'grantorId',
|
|
209
214
|
required: false,
|
|
215
|
+
skipPrompt: true,
|
|
210
216
|
},
|
|
211
217
|
]);
|
|
212
218
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
@@ -138,18 +138,21 @@ async function handleCreate(argv, prompter) {
|
|
|
138
138
|
name: 'description',
|
|
139
139
|
message: 'description',
|
|
140
140
|
required: false,
|
|
141
|
+
skipPrompt: true,
|
|
141
142
|
},
|
|
142
143
|
{
|
|
143
144
|
type: 'text',
|
|
144
145
|
name: 'requiredCount',
|
|
145
146
|
message: 'requiredCount',
|
|
146
147
|
required: false,
|
|
148
|
+
skipPrompt: true,
|
|
147
149
|
},
|
|
148
150
|
{
|
|
149
151
|
type: 'text',
|
|
150
152
|
name: 'priority',
|
|
151
153
|
message: 'priority',
|
|
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: 'description',
|
|
213
216
|
message: 'description',
|
|
214
217
|
required: false,
|
|
218
|
+
skipPrompt: true,
|
|
215
219
|
},
|
|
216
220
|
{
|
|
217
221
|
type: 'text',
|
|
218
222
|
name: 'requiredCount',
|
|
219
223
|
message: 'requiredCount',
|
|
220
224
|
required: false,
|
|
225
|
+
skipPrompt: true,
|
|
221
226
|
},
|
|
222
227
|
{
|
|
223
228
|
type: 'text',
|
|
224
229
|
name: 'priority',
|
|
225
230
|
message: 'priority',
|
|
226
231
|
required: false,
|
|
232
|
+
skipPrompt: true,
|
|
227
233
|
},
|
|
228
234
|
]);
|
|
229
235
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
@@ -129,18 +129,21 @@ async function handleCreate(argv, prompter) {
|
|
|
129
129
|
name: 'description',
|
|
130
130
|
message: 'description',
|
|
131
131
|
required: false,
|
|
132
|
+
skipPrompt: true,
|
|
132
133
|
},
|
|
133
134
|
{
|
|
134
135
|
type: 'text',
|
|
135
136
|
name: 'image',
|
|
136
137
|
message: 'image',
|
|
137
138
|
required: false,
|
|
139
|
+
skipPrompt: true,
|
|
138
140
|
},
|
|
139
141
|
{
|
|
140
142
|
type: 'text',
|
|
141
143
|
name: 'ownerId',
|
|
142
144
|
message: 'ownerId',
|
|
143
145
|
required: false,
|
|
146
|
+
skipPrompt: true,
|
|
144
147
|
},
|
|
145
148
|
]);
|
|
146
149
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
@@ -195,18 +198,21 @@ async function handleUpdate(argv, prompter) {
|
|
|
195
198
|
name: 'description',
|
|
196
199
|
message: 'description',
|
|
197
200
|
required: false,
|
|
201
|
+
skipPrompt: true,
|
|
198
202
|
},
|
|
199
203
|
{
|
|
200
204
|
type: 'text',
|
|
201
205
|
name: 'image',
|
|
202
206
|
message: 'image',
|
|
203
207
|
required: false,
|
|
208
|
+
skipPrompt: true,
|
|
204
209
|
},
|
|
205
210
|
{
|
|
206
211
|
type: 'text',
|
|
207
212
|
name: 'ownerId',
|
|
208
213
|
message: 'ownerId',
|
|
209
214
|
required: false,
|
|
215
|
+
skipPrompt: true,
|
|
210
216
|
},
|
|
211
217
|
]);
|
|
212
218
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
@@ -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);
|
|
@@ -117,6 +117,7 @@ async function handleCreate(argv, prompter) {
|
|
|
117
117
|
name: 'name',
|
|
118
118
|
message: 'name',
|
|
119
119
|
required: false,
|
|
120
|
+
skipPrompt: true,
|
|
120
121
|
},
|
|
121
122
|
{
|
|
122
123
|
type: 'text',
|
|
@@ -129,12 +130,14 @@ async function handleCreate(argv, prompter) {
|
|
|
129
130
|
name: 'num',
|
|
130
131
|
message: 'num',
|
|
131
132
|
required: false,
|
|
133
|
+
skipPrompt: true,
|
|
132
134
|
},
|
|
133
135
|
{
|
|
134
136
|
type: 'text',
|
|
135
137
|
name: 'max',
|
|
136
138
|
message: 'max',
|
|
137
139
|
required: false,
|
|
140
|
+
skipPrompt: true,
|
|
138
141
|
},
|
|
139
142
|
]);
|
|
140
143
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
@@ -181,6 +184,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
181
184
|
name: 'name',
|
|
182
185
|
message: 'name',
|
|
183
186
|
required: false,
|
|
187
|
+
skipPrompt: true,
|
|
184
188
|
},
|
|
185
189
|
{
|
|
186
190
|
type: 'text',
|
|
@@ -193,12 +197,14 @@ async function handleUpdate(argv, prompter) {
|
|
|
193
197
|
name: 'num',
|
|
194
198
|
message: 'num',
|
|
195
199
|
required: false,
|
|
200
|
+
skipPrompt: true,
|
|
196
201
|
},
|
|
197
202
|
{
|
|
198
203
|
type: 'text',
|
|
199
204
|
name: 'max',
|
|
200
205
|
message: 'max',
|
|
201
206
|
required: false,
|
|
207
|
+
skipPrompt: true,
|
|
202
208
|
},
|
|
203
209
|
]);
|
|
204
210
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
@@ -123,24 +123,28 @@ async function handleCreate(argv, prompter) {
|
|
|
123
123
|
name: 'createdBy',
|
|
124
124
|
message: 'createdBy',
|
|
125
125
|
required: false,
|
|
126
|
+
skipPrompt: true,
|
|
126
127
|
},
|
|
127
128
|
{
|
|
128
129
|
type: 'text',
|
|
129
130
|
name: 'updatedBy',
|
|
130
131
|
message: 'updatedBy',
|
|
131
132
|
required: false,
|
|
133
|
+
skipPrompt: true,
|
|
132
134
|
},
|
|
133
135
|
{
|
|
134
|
-
type: '
|
|
136
|
+
type: 'boolean',
|
|
135
137
|
name: 'isApproved',
|
|
136
138
|
message: 'isApproved',
|
|
137
139
|
required: false,
|
|
140
|
+
skipPrompt: true,
|
|
138
141
|
},
|
|
139
142
|
{
|
|
140
|
-
type: '
|
|
143
|
+
type: 'boolean',
|
|
141
144
|
name: 'isVerified',
|
|
142
145
|
message: 'isVerified',
|
|
143
146
|
required: false,
|
|
147
|
+
skipPrompt: true,
|
|
144
148
|
},
|
|
145
149
|
]);
|
|
146
150
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
@@ -189,24 +193,28 @@ async function handleUpdate(argv, prompter) {
|
|
|
189
193
|
name: 'createdBy',
|
|
190
194
|
message: 'createdBy',
|
|
191
195
|
required: false,
|
|
196
|
+
skipPrompt: true,
|
|
192
197
|
},
|
|
193
198
|
{
|
|
194
199
|
type: 'text',
|
|
195
200
|
name: 'updatedBy',
|
|
196
201
|
message: 'updatedBy',
|
|
197
202
|
required: false,
|
|
203
|
+
skipPrompt: true,
|
|
198
204
|
},
|
|
199
205
|
{
|
|
200
|
-
type: '
|
|
206
|
+
type: 'boolean',
|
|
201
207
|
name: 'isApproved',
|
|
202
208
|
message: 'isApproved',
|
|
203
209
|
required: false,
|
|
210
|
+
skipPrompt: true,
|
|
204
211
|
},
|
|
205
212
|
{
|
|
206
|
-
type: '
|
|
213
|
+
type: 'boolean',
|
|
207
214
|
name: 'isVerified',
|
|
208
215
|
message: 'isVerified',
|
|
209
216
|
required: false,
|
|
217
|
+
skipPrompt: true,
|
|
210
218
|
},
|
|
211
219
|
]);
|
|
212
220
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|