@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
|
@@ -129,18 +129,21 @@ async function handleCreate(argv, prompter) {
|
|
|
129
129
|
name: 'createdBy',
|
|
130
130
|
message: 'createdBy',
|
|
131
131
|
required: false,
|
|
132
|
+
skipPrompt: true,
|
|
132
133
|
},
|
|
133
134
|
{
|
|
134
135
|
type: 'text',
|
|
135
136
|
name: 'updatedBy',
|
|
136
137
|
message: 'updatedBy',
|
|
137
138
|
required: false,
|
|
139
|
+
skipPrompt: true,
|
|
138
140
|
},
|
|
139
141
|
{
|
|
140
|
-
type: '
|
|
142
|
+
type: 'boolean',
|
|
141
143
|
name: 'isApproved',
|
|
142
144
|
message: 'isApproved',
|
|
143
145
|
required: false,
|
|
146
|
+
skipPrompt: true,
|
|
144
147
|
},
|
|
145
148
|
{
|
|
146
149
|
type: 'text',
|
|
@@ -149,16 +152,18 @@ async function handleCreate(argv, prompter) {
|
|
|
149
152
|
required: true,
|
|
150
153
|
},
|
|
151
154
|
{
|
|
152
|
-
type: '
|
|
155
|
+
type: 'boolean',
|
|
153
156
|
name: 'deleteMemberCascadeGroups',
|
|
154
157
|
message: 'deleteMemberCascadeGroups',
|
|
155
158
|
required: false,
|
|
159
|
+
skipPrompt: true,
|
|
156
160
|
},
|
|
157
161
|
{
|
|
158
|
-
type: '
|
|
162
|
+
type: 'boolean',
|
|
159
163
|
name: 'createGroupsCascadeMembers',
|
|
160
164
|
message: 'createGroupsCascadeMembers',
|
|
161
165
|
required: false,
|
|
166
|
+
skipPrompt: true,
|
|
162
167
|
},
|
|
163
168
|
]);
|
|
164
169
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
@@ -211,18 +216,21 @@ async function handleUpdate(argv, prompter) {
|
|
|
211
216
|
name: 'createdBy',
|
|
212
217
|
message: 'createdBy',
|
|
213
218
|
required: false,
|
|
219
|
+
skipPrompt: true,
|
|
214
220
|
},
|
|
215
221
|
{
|
|
216
222
|
type: 'text',
|
|
217
223
|
name: 'updatedBy',
|
|
218
224
|
message: 'updatedBy',
|
|
219
225
|
required: false,
|
|
226
|
+
skipPrompt: true,
|
|
220
227
|
},
|
|
221
228
|
{
|
|
222
|
-
type: '
|
|
229
|
+
type: 'boolean',
|
|
223
230
|
name: 'isApproved',
|
|
224
231
|
message: 'isApproved',
|
|
225
232
|
required: false,
|
|
233
|
+
skipPrompt: true,
|
|
226
234
|
},
|
|
227
235
|
{
|
|
228
236
|
type: 'text',
|
|
@@ -231,16 +239,18 @@ async function handleUpdate(argv, prompter) {
|
|
|
231
239
|
required: false,
|
|
232
240
|
},
|
|
233
241
|
{
|
|
234
|
-
type: '
|
|
242
|
+
type: 'boolean',
|
|
235
243
|
name: 'deleteMemberCascadeGroups',
|
|
236
244
|
message: 'deleteMemberCascadeGroups',
|
|
237
245
|
required: false,
|
|
246
|
+
skipPrompt: true,
|
|
238
247
|
},
|
|
239
248
|
{
|
|
240
|
-
type: '
|
|
249
|
+
type: 'boolean',
|
|
241
250
|
name: 'createGroupsCascadeMembers',
|
|
242
251
|
message: 'createGroupsCascadeMembers',
|
|
243
252
|
required: false,
|
|
253
|
+
skipPrompt: true,
|
|
244
254
|
},
|
|
245
255
|
]);
|
|
246
256
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
@@ -150,60 +150,70 @@ async function handleCreate(argv, prompter) {
|
|
|
150
150
|
name: 'createdBy',
|
|
151
151
|
message: 'createdBy',
|
|
152
152
|
required: false,
|
|
153
|
+
skipPrompt: true,
|
|
153
154
|
},
|
|
154
155
|
{
|
|
155
156
|
type: 'text',
|
|
156
157
|
name: 'updatedBy',
|
|
157
158
|
message: 'updatedBy',
|
|
158
159
|
required: false,
|
|
160
|
+
skipPrompt: true,
|
|
159
161
|
},
|
|
160
162
|
{
|
|
161
|
-
type: '
|
|
163
|
+
type: 'boolean',
|
|
162
164
|
name: 'isApproved',
|
|
163
165
|
message: 'isApproved',
|
|
164
166
|
required: false,
|
|
167
|
+
skipPrompt: true,
|
|
165
168
|
},
|
|
166
169
|
{
|
|
167
|
-
type: '
|
|
170
|
+
type: 'boolean',
|
|
168
171
|
name: 'isBanned',
|
|
169
172
|
message: 'isBanned',
|
|
170
173
|
required: false,
|
|
174
|
+
skipPrompt: true,
|
|
171
175
|
},
|
|
172
176
|
{
|
|
173
|
-
type: '
|
|
177
|
+
type: 'boolean',
|
|
174
178
|
name: 'isDisabled',
|
|
175
179
|
message: 'isDisabled',
|
|
176
180
|
required: false,
|
|
181
|
+
skipPrompt: true,
|
|
177
182
|
},
|
|
178
183
|
{
|
|
179
|
-
type: '
|
|
184
|
+
type: 'boolean',
|
|
180
185
|
name: 'isActive',
|
|
181
186
|
message: 'isActive',
|
|
182
187
|
required: false,
|
|
188
|
+
skipPrompt: true,
|
|
183
189
|
},
|
|
184
190
|
{
|
|
185
|
-
type: '
|
|
191
|
+
type: 'boolean',
|
|
186
192
|
name: 'isOwner',
|
|
187
193
|
message: 'isOwner',
|
|
188
194
|
required: false,
|
|
195
|
+
skipPrompt: true,
|
|
189
196
|
},
|
|
190
197
|
{
|
|
191
|
-
type: '
|
|
198
|
+
type: 'boolean',
|
|
192
199
|
name: 'isAdmin',
|
|
193
200
|
message: 'isAdmin',
|
|
194
201
|
required: false,
|
|
202
|
+
skipPrompt: true,
|
|
195
203
|
},
|
|
196
204
|
{
|
|
197
205
|
type: 'text',
|
|
198
206
|
name: 'permissions',
|
|
199
207
|
message: 'permissions',
|
|
200
208
|
required: false,
|
|
209
|
+
skipPrompt: true,
|
|
201
210
|
},
|
|
202
211
|
{
|
|
203
212
|
type: 'text',
|
|
204
213
|
name: 'granted',
|
|
205
214
|
message: 'granted',
|
|
206
215
|
required: false,
|
|
216
|
+
skipPrompt: true,
|
|
207
217
|
},
|
|
208
218
|
{
|
|
209
219
|
type: 'text',
|
|
@@ -222,6 +232,7 @@ async function handleCreate(argv, prompter) {
|
|
|
222
232
|
name: 'profileId',
|
|
223
233
|
message: 'profileId',
|
|
224
234
|
required: false,
|
|
235
|
+
skipPrompt: true,
|
|
225
236
|
},
|
|
226
237
|
]);
|
|
227
238
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
@@ -288,60 +299,70 @@ async function handleUpdate(argv, prompter) {
|
|
|
288
299
|
name: 'createdBy',
|
|
289
300
|
message: 'createdBy',
|
|
290
301
|
required: false,
|
|
302
|
+
skipPrompt: true,
|
|
291
303
|
},
|
|
292
304
|
{
|
|
293
305
|
type: 'text',
|
|
294
306
|
name: 'updatedBy',
|
|
295
307
|
message: 'updatedBy',
|
|
296
308
|
required: false,
|
|
309
|
+
skipPrompt: true,
|
|
297
310
|
},
|
|
298
311
|
{
|
|
299
|
-
type: '
|
|
312
|
+
type: 'boolean',
|
|
300
313
|
name: 'isApproved',
|
|
301
314
|
message: 'isApproved',
|
|
302
315
|
required: false,
|
|
316
|
+
skipPrompt: true,
|
|
303
317
|
},
|
|
304
318
|
{
|
|
305
|
-
type: '
|
|
319
|
+
type: 'boolean',
|
|
306
320
|
name: 'isBanned',
|
|
307
321
|
message: 'isBanned',
|
|
308
322
|
required: false,
|
|
323
|
+
skipPrompt: true,
|
|
309
324
|
},
|
|
310
325
|
{
|
|
311
|
-
type: '
|
|
326
|
+
type: 'boolean',
|
|
312
327
|
name: 'isDisabled',
|
|
313
328
|
message: 'isDisabled',
|
|
314
329
|
required: false,
|
|
330
|
+
skipPrompt: true,
|
|
315
331
|
},
|
|
316
332
|
{
|
|
317
|
-
type: '
|
|
333
|
+
type: 'boolean',
|
|
318
334
|
name: 'isActive',
|
|
319
335
|
message: 'isActive',
|
|
320
336
|
required: false,
|
|
337
|
+
skipPrompt: true,
|
|
321
338
|
},
|
|
322
339
|
{
|
|
323
|
-
type: '
|
|
340
|
+
type: 'boolean',
|
|
324
341
|
name: 'isOwner',
|
|
325
342
|
message: 'isOwner',
|
|
326
343
|
required: false,
|
|
344
|
+
skipPrompt: true,
|
|
327
345
|
},
|
|
328
346
|
{
|
|
329
|
-
type: '
|
|
347
|
+
type: 'boolean',
|
|
330
348
|
name: 'isAdmin',
|
|
331
349
|
message: 'isAdmin',
|
|
332
350
|
required: false,
|
|
351
|
+
skipPrompt: true,
|
|
333
352
|
},
|
|
334
353
|
{
|
|
335
354
|
type: 'text',
|
|
336
355
|
name: 'permissions',
|
|
337
356
|
message: 'permissions',
|
|
338
357
|
required: false,
|
|
358
|
+
skipPrompt: true,
|
|
339
359
|
},
|
|
340
360
|
{
|
|
341
361
|
type: 'text',
|
|
342
362
|
name: 'granted',
|
|
343
363
|
message: 'granted',
|
|
344
364
|
required: false,
|
|
365
|
+
skipPrompt: true,
|
|
345
366
|
},
|
|
346
367
|
{
|
|
347
368
|
type: 'text',
|
|
@@ -360,6 +381,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
360
381
|
name: 'profileId',
|
|
361
382
|
message: 'profileId',
|
|
362
383
|
required: false,
|
|
384
|
+
skipPrompt: true,
|
|
363
385
|
},
|
|
364
386
|
]);
|
|
365
387
|
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);
|
|
@@ -111,6 +111,7 @@ async function handleCreate(argv, prompter) {
|
|
|
111
111
|
name: 'permissions',
|
|
112
112
|
message: 'permissions',
|
|
113
113
|
required: false,
|
|
114
|
+
skipPrompt: true,
|
|
114
115
|
},
|
|
115
116
|
{
|
|
116
117
|
type: 'text',
|
|
@@ -159,6 +160,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
159
160
|
name: 'permissions',
|
|
160
161
|
message: 'permissions',
|
|
161
162
|
required: false,
|
|
163
|
+
skipPrompt: true,
|
|
162
164
|
},
|
|
163
165
|
{
|
|
164
166
|
type: 'text',
|
|
@@ -117,24 +117,28 @@ 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',
|
|
123
124
|
name: 'bitnum',
|
|
124
125
|
message: 'bitnum',
|
|
125
126
|
required: false,
|
|
127
|
+
skipPrompt: true,
|
|
126
128
|
},
|
|
127
129
|
{
|
|
128
130
|
type: 'text',
|
|
129
131
|
name: 'bitstr',
|
|
130
132
|
message: 'bitstr',
|
|
131
133
|
required: false,
|
|
134
|
+
skipPrompt: true,
|
|
132
135
|
},
|
|
133
136
|
{
|
|
134
137
|
type: 'text',
|
|
135
138
|
name: 'description',
|
|
136
139
|
message: 'description',
|
|
137
140
|
required: false,
|
|
141
|
+
skipPrompt: true,
|
|
138
142
|
},
|
|
139
143
|
]);
|
|
140
144
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
@@ -181,24 +185,28 @@ async function handleUpdate(argv, prompter) {
|
|
|
181
185
|
name: 'name',
|
|
182
186
|
message: 'name',
|
|
183
187
|
required: false,
|
|
188
|
+
skipPrompt: true,
|
|
184
189
|
},
|
|
185
190
|
{
|
|
186
191
|
type: 'text',
|
|
187
192
|
name: 'bitnum',
|
|
188
193
|
message: 'bitnum',
|
|
189
194
|
required: false,
|
|
195
|
+
skipPrompt: true,
|
|
190
196
|
},
|
|
191
197
|
{
|
|
192
198
|
type: 'text',
|
|
193
199
|
name: 'bitstr',
|
|
194
200
|
message: 'bitstr',
|
|
195
201
|
required: false,
|
|
202
|
+
skipPrompt: true,
|
|
196
203
|
},
|
|
197
204
|
{
|
|
198
205
|
type: 'text',
|
|
199
206
|
name: 'description',
|
|
200
207
|
message: 'description',
|
|
201
208
|
required: false,
|
|
209
|
+
skipPrompt: true,
|
|
202
210
|
},
|
|
203
211
|
]);
|
|
204
212
|
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
|
.submitInviteCode(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
|
.submitOrgInviteCode(parsedAnswers, {
|
package/admin/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/admin/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/admin/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'
|
|
@@ -132,27 +132,31 @@ async function handleCreate(argv, prompter) {
|
|
|
132
132
|
name: 'actorId',
|
|
133
133
|
message: 'actorId',
|
|
134
134
|
required: false,
|
|
135
|
+
skipPrompt: true,
|
|
135
136
|
},
|
|
136
137
|
{
|
|
137
138
|
type: 'text',
|
|
138
139
|
name: 'origin',
|
|
139
140
|
message: 'origin',
|
|
140
141
|
required: false,
|
|
142
|
+
skipPrompt: true,
|
|
141
143
|
},
|
|
142
144
|
{
|
|
143
145
|
type: 'text',
|
|
144
146
|
name: 'userAgent',
|
|
145
147
|
message: 'userAgent',
|
|
146
148
|
required: false,
|
|
149
|
+
skipPrompt: true,
|
|
147
150
|
},
|
|
148
151
|
{
|
|
149
152
|
type: 'text',
|
|
150
153
|
name: 'ipAddress',
|
|
151
154
|
message: 'ipAddress',
|
|
152
155
|
required: false,
|
|
156
|
+
skipPrompt: true,
|
|
153
157
|
},
|
|
154
158
|
{
|
|
155
|
-
type: '
|
|
159
|
+
type: 'boolean',
|
|
156
160
|
name: 'success',
|
|
157
161
|
message: 'success',
|
|
158
162
|
required: true,
|
|
@@ -213,27 +217,31 @@ async function handleUpdate(argv, prompter) {
|
|
|
213
217
|
name: 'actorId',
|
|
214
218
|
message: 'actorId',
|
|
215
219
|
required: false,
|
|
220
|
+
skipPrompt: true,
|
|
216
221
|
},
|
|
217
222
|
{
|
|
218
223
|
type: 'text',
|
|
219
224
|
name: 'origin',
|
|
220
225
|
message: 'origin',
|
|
221
226
|
required: false,
|
|
227
|
+
skipPrompt: true,
|
|
222
228
|
},
|
|
223
229
|
{
|
|
224
230
|
type: 'text',
|
|
225
231
|
name: 'userAgent',
|
|
226
232
|
message: 'userAgent',
|
|
227
233
|
required: false,
|
|
234
|
+
skipPrompt: true,
|
|
228
235
|
},
|
|
229
236
|
{
|
|
230
237
|
type: 'text',
|
|
231
238
|
name: 'ipAddress',
|
|
232
239
|
message: 'ipAddress',
|
|
233
240
|
required: false,
|
|
241
|
+
skipPrompt: true,
|
|
234
242
|
},
|
|
235
243
|
{
|
|
236
|
-
type: '
|
|
244
|
+
type: 'boolean',
|
|
237
245
|
name: 'success',
|
|
238
246
|
message: 'success',
|
|
239
247
|
required: false,
|
|
@@ -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
|
.checkPassword(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
|
.confirmDeleteAccount(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,17 @@ async function handleCreate(argv, prompter) {
|
|
|
140
141
|
required: true,
|
|
141
142
|
},
|
|
142
143
|
{
|
|
143
|
-
type: '
|
|
144
|
+
type: 'json',
|
|
144
145
|
name: 'details',
|
|
145
146
|
message: 'details',
|
|
146
147
|
required: true,
|
|
147
148
|
},
|
|
148
149
|
{
|
|
149
|
-
type: '
|
|
150
|
+
type: 'boolean',
|
|
150
151
|
name: 'isVerified',
|
|
151
152
|
message: 'isVerified',
|
|
152
153
|
required: false,
|
|
154
|
+
skipPrompt: true,
|
|
153
155
|
},
|
|
154
156
|
]);
|
|
155
157
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
@@ -200,6 +202,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
200
202
|
name: 'ownerId',
|
|
201
203
|
message: 'ownerId',
|
|
202
204
|
required: false,
|
|
205
|
+
skipPrompt: true,
|
|
203
206
|
},
|
|
204
207
|
{
|
|
205
208
|
type: 'text',
|
|
@@ -214,16 +217,17 @@ async function handleUpdate(argv, prompter) {
|
|
|
214
217
|
required: false,
|
|
215
218
|
},
|
|
216
219
|
{
|
|
217
|
-
type: '
|
|
220
|
+
type: 'json',
|
|
218
221
|
name: 'details',
|
|
219
222
|
message: 'details',
|
|
220
223
|
required: false,
|
|
221
224
|
},
|
|
222
225
|
{
|
|
223
|
-
type: '
|
|
226
|
+
type: 'boolean',
|
|
224
227
|
name: 'isVerified',
|
|
225
228
|
message: 'isVerified',
|
|
226
229
|
required: false,
|
|
230
|
+
skipPrompt: true,
|
|
227
231
|
},
|
|
228
232
|
]);
|
|
229
233
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
@@ -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);
|