@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
|
@@ -157,90 +157,105 @@ async function handleCreate(argv, prompter) {
|
|
|
157
157
|
name: 'schemaId',
|
|
158
158
|
message: 'schemaId',
|
|
159
159
|
required: false,
|
|
160
|
+
skipPrompt: true,
|
|
160
161
|
},
|
|
161
162
|
{
|
|
162
163
|
type: 'text',
|
|
163
164
|
name: 'tableId',
|
|
164
165
|
message: 'tableId',
|
|
165
166
|
required: false,
|
|
167
|
+
skipPrompt: true,
|
|
166
168
|
},
|
|
167
169
|
{
|
|
168
170
|
type: 'text',
|
|
169
171
|
name: 'tableName',
|
|
170
172
|
message: 'tableName',
|
|
171
173
|
required: false,
|
|
174
|
+
skipPrompt: true,
|
|
172
175
|
},
|
|
173
176
|
{
|
|
174
177
|
type: 'text',
|
|
175
178
|
name: 'nodeType',
|
|
176
179
|
message: 'nodeType',
|
|
177
180
|
required: false,
|
|
181
|
+
skipPrompt: true,
|
|
178
182
|
},
|
|
179
183
|
{
|
|
180
|
-
type: '
|
|
184
|
+
type: 'boolean',
|
|
181
185
|
name: 'useRls',
|
|
182
186
|
message: 'useRls',
|
|
183
187
|
required: false,
|
|
188
|
+
skipPrompt: true,
|
|
184
189
|
},
|
|
185
190
|
{
|
|
186
|
-
type: '
|
|
191
|
+
type: 'json',
|
|
187
192
|
name: 'nodeData',
|
|
188
193
|
message: 'nodeData',
|
|
189
194
|
required: false,
|
|
195
|
+
skipPrompt: true,
|
|
190
196
|
},
|
|
191
197
|
{
|
|
192
198
|
type: 'text',
|
|
193
199
|
name: 'grantRoles',
|
|
194
200
|
message: 'grantRoles',
|
|
195
201
|
required: false,
|
|
202
|
+
skipPrompt: true,
|
|
196
203
|
},
|
|
197
204
|
{
|
|
198
|
-
type: '
|
|
205
|
+
type: 'json',
|
|
199
206
|
name: 'grantPrivileges',
|
|
200
207
|
message: 'grantPrivileges',
|
|
201
208
|
required: false,
|
|
209
|
+
skipPrompt: true,
|
|
202
210
|
},
|
|
203
211
|
{
|
|
204
212
|
type: 'text',
|
|
205
213
|
name: 'policyType',
|
|
206
214
|
message: 'policyType',
|
|
207
215
|
required: false,
|
|
216
|
+
skipPrompt: true,
|
|
208
217
|
},
|
|
209
218
|
{
|
|
210
219
|
type: 'text',
|
|
211
220
|
name: 'policyPrivileges',
|
|
212
221
|
message: 'policyPrivileges',
|
|
213
222
|
required: false,
|
|
223
|
+
skipPrompt: true,
|
|
214
224
|
},
|
|
215
225
|
{
|
|
216
226
|
type: 'text',
|
|
217
227
|
name: 'policyRole',
|
|
218
228
|
message: 'policyRole',
|
|
219
229
|
required: false,
|
|
230
|
+
skipPrompt: true,
|
|
220
231
|
},
|
|
221
232
|
{
|
|
222
|
-
type: '
|
|
233
|
+
type: 'boolean',
|
|
223
234
|
name: 'policyPermissive',
|
|
224
235
|
message: 'policyPermissive',
|
|
225
236
|
required: false,
|
|
237
|
+
skipPrompt: true,
|
|
226
238
|
},
|
|
227
239
|
{
|
|
228
240
|
type: 'text',
|
|
229
241
|
name: 'policyName',
|
|
230
242
|
message: 'policyName',
|
|
231
243
|
required: false,
|
|
244
|
+
skipPrompt: true,
|
|
232
245
|
},
|
|
233
246
|
{
|
|
234
|
-
type: '
|
|
247
|
+
type: 'json',
|
|
235
248
|
name: 'policyData',
|
|
236
249
|
message: 'policyData',
|
|
237
250
|
required: false,
|
|
251
|
+
skipPrompt: true,
|
|
238
252
|
},
|
|
239
253
|
{
|
|
240
254
|
type: 'text',
|
|
241
255
|
name: 'outFields',
|
|
242
256
|
message: 'outFields',
|
|
243
257
|
required: false,
|
|
258
|
+
skipPrompt: true,
|
|
244
259
|
},
|
|
245
260
|
]);
|
|
246
261
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
@@ -317,90 +332,105 @@ async function handleUpdate(argv, prompter) {
|
|
|
317
332
|
name: 'schemaId',
|
|
318
333
|
message: 'schemaId',
|
|
319
334
|
required: false,
|
|
335
|
+
skipPrompt: true,
|
|
320
336
|
},
|
|
321
337
|
{
|
|
322
338
|
type: 'text',
|
|
323
339
|
name: 'tableId',
|
|
324
340
|
message: 'tableId',
|
|
325
341
|
required: false,
|
|
342
|
+
skipPrompt: true,
|
|
326
343
|
},
|
|
327
344
|
{
|
|
328
345
|
type: 'text',
|
|
329
346
|
name: 'tableName',
|
|
330
347
|
message: 'tableName',
|
|
331
348
|
required: false,
|
|
349
|
+
skipPrompt: true,
|
|
332
350
|
},
|
|
333
351
|
{
|
|
334
352
|
type: 'text',
|
|
335
353
|
name: 'nodeType',
|
|
336
354
|
message: 'nodeType',
|
|
337
355
|
required: false,
|
|
356
|
+
skipPrompt: true,
|
|
338
357
|
},
|
|
339
358
|
{
|
|
340
|
-
type: '
|
|
359
|
+
type: 'boolean',
|
|
341
360
|
name: 'useRls',
|
|
342
361
|
message: 'useRls',
|
|
343
362
|
required: false,
|
|
363
|
+
skipPrompt: true,
|
|
344
364
|
},
|
|
345
365
|
{
|
|
346
|
-
type: '
|
|
366
|
+
type: 'json',
|
|
347
367
|
name: 'nodeData',
|
|
348
368
|
message: 'nodeData',
|
|
349
369
|
required: false,
|
|
370
|
+
skipPrompt: true,
|
|
350
371
|
},
|
|
351
372
|
{
|
|
352
373
|
type: 'text',
|
|
353
374
|
name: 'grantRoles',
|
|
354
375
|
message: 'grantRoles',
|
|
355
376
|
required: false,
|
|
377
|
+
skipPrompt: true,
|
|
356
378
|
},
|
|
357
379
|
{
|
|
358
|
-
type: '
|
|
380
|
+
type: 'json',
|
|
359
381
|
name: 'grantPrivileges',
|
|
360
382
|
message: 'grantPrivileges',
|
|
361
383
|
required: false,
|
|
384
|
+
skipPrompt: true,
|
|
362
385
|
},
|
|
363
386
|
{
|
|
364
387
|
type: 'text',
|
|
365
388
|
name: 'policyType',
|
|
366
389
|
message: 'policyType',
|
|
367
390
|
required: false,
|
|
391
|
+
skipPrompt: true,
|
|
368
392
|
},
|
|
369
393
|
{
|
|
370
394
|
type: 'text',
|
|
371
395
|
name: 'policyPrivileges',
|
|
372
396
|
message: 'policyPrivileges',
|
|
373
397
|
required: false,
|
|
398
|
+
skipPrompt: true,
|
|
374
399
|
},
|
|
375
400
|
{
|
|
376
401
|
type: 'text',
|
|
377
402
|
name: 'policyRole',
|
|
378
403
|
message: 'policyRole',
|
|
379
404
|
required: false,
|
|
405
|
+
skipPrompt: true,
|
|
380
406
|
},
|
|
381
407
|
{
|
|
382
|
-
type: '
|
|
408
|
+
type: 'boolean',
|
|
383
409
|
name: 'policyPermissive',
|
|
384
410
|
message: 'policyPermissive',
|
|
385
411
|
required: false,
|
|
412
|
+
skipPrompt: true,
|
|
386
413
|
},
|
|
387
414
|
{
|
|
388
415
|
type: 'text',
|
|
389
416
|
name: 'policyName',
|
|
390
417
|
message: 'policyName',
|
|
391
418
|
required: false,
|
|
419
|
+
skipPrompt: true,
|
|
392
420
|
},
|
|
393
421
|
{
|
|
394
|
-
type: '
|
|
422
|
+
type: 'json',
|
|
395
423
|
name: 'policyData',
|
|
396
424
|
message: 'policyData',
|
|
397
425
|
required: false,
|
|
426
|
+
skipPrompt: true,
|
|
398
427
|
},
|
|
399
428
|
{
|
|
400
429
|
type: 'text',
|
|
401
430
|
name: 'outFields',
|
|
402
431
|
message: 'outFields',
|
|
403
432
|
required: false,
|
|
433
|
+
skipPrompt: true,
|
|
404
434
|
},
|
|
405
435
|
]);
|
|
406
436
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getClient } from '../executor';
|
|
2
|
-
import {
|
|
2
|
+
import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
|
|
3
3
|
export default async (argv, prompter, _options) => {
|
|
4
4
|
try {
|
|
5
5
|
if (argv.help || argv.h) {
|
|
@@ -15,7 +15,7 @@ export default async (argv, prompter, _options) => {
|
|
|
15
15
|
},
|
|
16
16
|
]);
|
|
17
17
|
const client = getClient();
|
|
18
|
-
const parsedAnswers =
|
|
18
|
+
const parsedAnswers = unflattenDotNotation(answers);
|
|
19
19
|
const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
|
|
20
20
|
const result = await client.mutation
|
|
21
21
|
.sendAccountDeletionEmail(parsedAnswers, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getClient } from '../executor';
|
|
2
|
-
import {
|
|
2
|
+
import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
|
|
3
3
|
export default async (argv, prompter, _options) => {
|
|
4
4
|
try {
|
|
5
5
|
if (argv.help || argv.h) {
|
|
@@ -15,7 +15,7 @@ export default async (argv, prompter, _options) => {
|
|
|
15
15
|
},
|
|
16
16
|
]);
|
|
17
17
|
const client = getClient();
|
|
18
|
-
const parsedAnswers =
|
|
18
|
+
const parsedAnswers = unflattenDotNotation(answers);
|
|
19
19
|
const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
|
|
20
20
|
const result = await client.mutation
|
|
21
21
|
.sendVerificationEmail(parsedAnswers, {
|
|
@@ -139,54 +139,63 @@ async function handleCreate(argv, prompter) {
|
|
|
139
139
|
name: 'schemaId',
|
|
140
140
|
message: 'schemaId',
|
|
141
141
|
required: false,
|
|
142
|
+
skipPrompt: true,
|
|
142
143
|
},
|
|
143
144
|
{
|
|
144
145
|
type: 'text',
|
|
145
146
|
name: 'sessionsTableId',
|
|
146
147
|
message: 'sessionsTableId',
|
|
147
148
|
required: false,
|
|
149
|
+
skipPrompt: true,
|
|
148
150
|
},
|
|
149
151
|
{
|
|
150
152
|
type: 'text',
|
|
151
153
|
name: 'sessionCredentialsTableId',
|
|
152
154
|
message: 'sessionCredentialsTableId',
|
|
153
155
|
required: false,
|
|
156
|
+
skipPrompt: true,
|
|
154
157
|
},
|
|
155
158
|
{
|
|
156
159
|
type: 'text',
|
|
157
160
|
name: 'authSettingsTableId',
|
|
158
161
|
message: 'authSettingsTableId',
|
|
159
162
|
required: false,
|
|
163
|
+
skipPrompt: true,
|
|
160
164
|
},
|
|
161
165
|
{
|
|
162
166
|
type: 'text',
|
|
163
167
|
name: 'usersTableId',
|
|
164
168
|
message: 'usersTableId',
|
|
165
169
|
required: false,
|
|
170
|
+
skipPrompt: true,
|
|
166
171
|
},
|
|
167
172
|
{
|
|
168
173
|
type: 'text',
|
|
169
174
|
name: 'sessionsDefaultExpiration',
|
|
170
175
|
message: 'sessionsDefaultExpiration',
|
|
171
176
|
required: false,
|
|
177
|
+
skipPrompt: true,
|
|
172
178
|
},
|
|
173
179
|
{
|
|
174
180
|
type: 'text',
|
|
175
181
|
name: 'sessionsTable',
|
|
176
182
|
message: 'sessionsTable',
|
|
177
183
|
required: false,
|
|
184
|
+
skipPrompt: true,
|
|
178
185
|
},
|
|
179
186
|
{
|
|
180
187
|
type: 'text',
|
|
181
188
|
name: 'sessionCredentialsTable',
|
|
182
189
|
message: 'sessionCredentialsTable',
|
|
183
190
|
required: false,
|
|
191
|
+
skipPrompt: true,
|
|
184
192
|
},
|
|
185
193
|
{
|
|
186
194
|
type: 'text',
|
|
187
195
|
name: 'authSettingsTable',
|
|
188
196
|
message: 'authSettingsTable',
|
|
189
197
|
required: false,
|
|
198
|
+
skipPrompt: true,
|
|
190
199
|
},
|
|
191
200
|
]);
|
|
192
201
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
@@ -251,54 +260,63 @@ async function handleUpdate(argv, prompter) {
|
|
|
251
260
|
name: 'schemaId',
|
|
252
261
|
message: 'schemaId',
|
|
253
262
|
required: false,
|
|
263
|
+
skipPrompt: true,
|
|
254
264
|
},
|
|
255
265
|
{
|
|
256
266
|
type: 'text',
|
|
257
267
|
name: 'sessionsTableId',
|
|
258
268
|
message: 'sessionsTableId',
|
|
259
269
|
required: false,
|
|
270
|
+
skipPrompt: true,
|
|
260
271
|
},
|
|
261
272
|
{
|
|
262
273
|
type: 'text',
|
|
263
274
|
name: 'sessionCredentialsTableId',
|
|
264
275
|
message: 'sessionCredentialsTableId',
|
|
265
276
|
required: false,
|
|
277
|
+
skipPrompt: true,
|
|
266
278
|
},
|
|
267
279
|
{
|
|
268
280
|
type: 'text',
|
|
269
281
|
name: 'authSettingsTableId',
|
|
270
282
|
message: 'authSettingsTableId',
|
|
271
283
|
required: false,
|
|
284
|
+
skipPrompt: true,
|
|
272
285
|
},
|
|
273
286
|
{
|
|
274
287
|
type: 'text',
|
|
275
288
|
name: 'usersTableId',
|
|
276
289
|
message: 'usersTableId',
|
|
277
290
|
required: false,
|
|
291
|
+
skipPrompt: true,
|
|
278
292
|
},
|
|
279
293
|
{
|
|
280
294
|
type: 'text',
|
|
281
295
|
name: 'sessionsDefaultExpiration',
|
|
282
296
|
message: 'sessionsDefaultExpiration',
|
|
283
297
|
required: false,
|
|
298
|
+
skipPrompt: true,
|
|
284
299
|
},
|
|
285
300
|
{
|
|
286
301
|
type: 'text',
|
|
287
302
|
name: 'sessionsTable',
|
|
288
303
|
message: 'sessionsTable',
|
|
289
304
|
required: false,
|
|
305
|
+
skipPrompt: true,
|
|
290
306
|
},
|
|
291
307
|
{
|
|
292
308
|
type: 'text',
|
|
293
309
|
name: 'sessionCredentialsTable',
|
|
294
310
|
message: 'sessionCredentialsTable',
|
|
295
311
|
required: false,
|
|
312
|
+
skipPrompt: true,
|
|
296
313
|
},
|
|
297
314
|
{
|
|
298
315
|
type: 'text',
|
|
299
316
|
name: 'authSettingsTable',
|
|
300
317
|
message: 'authSettingsTable',
|
|
301
318
|
required: false,
|
|
319
|
+
skipPrompt: true,
|
|
302
320
|
},
|
|
303
321
|
]);
|
|
304
322
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getClient } from '../executor';
|
|
2
|
-
import {
|
|
2
|
+
import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
|
|
3
3
|
export default async (argv, prompter, _options) => {
|
|
4
4
|
try {
|
|
5
5
|
if (argv.help || argv.h) {
|
|
@@ -15,7 +15,7 @@ export default async (argv, prompter, _options) => {
|
|
|
15
15
|
},
|
|
16
16
|
]);
|
|
17
17
|
const client = getClient();
|
|
18
|
-
const parsedAnswers =
|
|
18
|
+
const parsedAnswers = unflattenDotNotation(answers);
|
|
19
19
|
const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
|
|
20
20
|
const result = await client.mutation
|
|
21
21
|
.setAndCommit(parsedAnswers, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getClient } from '../executor';
|
|
2
|
-
import {
|
|
2
|
+
import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
|
|
3
3
|
export default async (argv, prompter, _options) => {
|
|
4
4
|
try {
|
|
5
5
|
if (argv.help || argv.h) {
|
|
@@ -15,7 +15,7 @@ export default async (argv, prompter, _options) => {
|
|
|
15
15
|
},
|
|
16
16
|
]);
|
|
17
17
|
const client = getClient();
|
|
18
|
-
const parsedAnswers =
|
|
18
|
+
const parsedAnswers = unflattenDotNotation(answers);
|
|
19
19
|
const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
|
|
20
20
|
const result = await client.mutation
|
|
21
21
|
.setDataAtPath(parsedAnswers, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getClient } from '../executor';
|
|
2
|
-
import {
|
|
2
|
+
import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
|
|
3
3
|
export default async (argv, prompter, _options) => {
|
|
4
4
|
try {
|
|
5
5
|
if (argv.help || argv.h) {
|
|
@@ -15,7 +15,7 @@ export default async (argv, prompter, _options) => {
|
|
|
15
15
|
},
|
|
16
16
|
]);
|
|
17
17
|
const client = getClient();
|
|
18
|
-
const parsedAnswers =
|
|
18
|
+
const parsedAnswers = unflattenDotNotation(answers);
|
|
19
19
|
const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
|
|
20
20
|
const result = await client.mutation
|
|
21
21
|
.setFieldOrder(parsedAnswers, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getClient } from '../executor';
|
|
2
|
-
import {
|
|
2
|
+
import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
|
|
3
3
|
export default async (argv, prompter, _options) => {
|
|
4
4
|
try {
|
|
5
5
|
if (argv.help || argv.h) {
|
|
@@ -15,7 +15,7 @@ export default async (argv, prompter, _options) => {
|
|
|
15
15
|
},
|
|
16
16
|
]);
|
|
17
17
|
const client = getClient();
|
|
18
|
-
const parsedAnswers =
|
|
18
|
+
const parsedAnswers = unflattenDotNotation(answers);
|
|
19
19
|
const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
|
|
20
20
|
const result = await client.mutation
|
|
21
21
|
.setPassword(parsedAnswers, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getClient } from '../executor';
|
|
2
|
-
import {
|
|
2
|
+
import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
|
|
3
3
|
export default async (argv, prompter, _options) => {
|
|
4
4
|
try {
|
|
5
5
|
if (argv.help || argv.h) {
|
|
@@ -15,7 +15,7 @@ export default async (argv, prompter, _options) => {
|
|
|
15
15
|
},
|
|
16
16
|
]);
|
|
17
17
|
const client = getClient();
|
|
18
|
-
const parsedAnswers =
|
|
18
|
+
const parsedAnswers = unflattenDotNotation(answers);
|
|
19
19
|
const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
|
|
20
20
|
const result = await client.mutation
|
|
21
21
|
.setPropsAndCommit(parsedAnswers, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getClient } from '../executor';
|
|
2
|
-
import {
|
|
2
|
+
import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
|
|
3
3
|
export default async (argv, prompter, _options) => {
|
|
4
4
|
try {
|
|
5
5
|
if (argv.help || argv.h) {
|
|
@@ -15,7 +15,7 @@ export default async (argv, prompter, _options) => {
|
|
|
15
15
|
},
|
|
16
16
|
]);
|
|
17
17
|
const client = getClient();
|
|
18
|
-
const parsedAnswers =
|
|
18
|
+
const parsedAnswers = unflattenDotNotation(answers);
|
|
19
19
|
const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
|
|
20
20
|
const result = await client.mutation
|
|
21
21
|
.signInOneTimeToken(parsedAnswers, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getClient } from '../executor';
|
|
2
|
-
import {
|
|
2
|
+
import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
|
|
3
3
|
export default async (argv, prompter, _options) => {
|
|
4
4
|
try {
|
|
5
5
|
if (argv.help || argv.h) {
|
|
@@ -15,7 +15,7 @@ export default async (argv, prompter, _options) => {
|
|
|
15
15
|
},
|
|
16
16
|
]);
|
|
17
17
|
const client = getClient();
|
|
18
|
-
const parsedAnswers =
|
|
18
|
+
const parsedAnswers = unflattenDotNotation(answers);
|
|
19
19
|
const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
|
|
20
20
|
const result = await client.mutation
|
|
21
21
|
.signIn(parsedAnswers, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getClient } from '../executor';
|
|
2
|
-
import {
|
|
2
|
+
import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
|
|
3
3
|
export default async (argv, prompter, _options) => {
|
|
4
4
|
try {
|
|
5
5
|
if (argv.help || argv.h) {
|
|
@@ -15,7 +15,7 @@ export default async (argv, prompter, _options) => {
|
|
|
15
15
|
},
|
|
16
16
|
]);
|
|
17
17
|
const client = getClient();
|
|
18
|
-
const parsedAnswers =
|
|
18
|
+
const parsedAnswers = unflattenDotNotation(answers);
|
|
19
19
|
const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
|
|
20
20
|
const result = await client.mutation
|
|
21
21
|
.signOut(parsedAnswers, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getClient } from '../executor';
|
|
2
|
-
import {
|
|
2
|
+
import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
|
|
3
3
|
export default async (argv, prompter, _options) => {
|
|
4
4
|
try {
|
|
5
5
|
if (argv.help || argv.h) {
|
|
@@ -15,7 +15,7 @@ export default async (argv, prompter, _options) => {
|
|
|
15
15
|
},
|
|
16
16
|
]);
|
|
17
17
|
const client = getClient();
|
|
18
|
-
const parsedAnswers =
|
|
18
|
+
const parsedAnswers = unflattenDotNotation(answers);
|
|
19
19
|
const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
|
|
20
20
|
const result = await client.mutation
|
|
21
21
|
.signUp(parsedAnswers, {
|
|
@@ -130,18 +130,21 @@ async function handleCreate(argv, prompter) {
|
|
|
130
130
|
name: 'title',
|
|
131
131
|
message: 'title',
|
|
132
132
|
required: false,
|
|
133
|
+
skipPrompt: true,
|
|
133
134
|
},
|
|
134
135
|
{
|
|
135
136
|
type: 'text',
|
|
136
137
|
name: 'description',
|
|
137
138
|
message: 'description',
|
|
138
139
|
required: false,
|
|
140
|
+
skipPrompt: true,
|
|
139
141
|
},
|
|
140
142
|
{
|
|
141
143
|
type: 'text',
|
|
142
144
|
name: 'ogImage',
|
|
143
145
|
message: 'ogImage',
|
|
144
146
|
required: false,
|
|
147
|
+
skipPrompt: true,
|
|
145
148
|
},
|
|
146
149
|
]);
|
|
147
150
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
@@ -202,18 +205,21 @@ async function handleUpdate(argv, prompter) {
|
|
|
202
205
|
name: 'title',
|
|
203
206
|
message: 'title',
|
|
204
207
|
required: false,
|
|
208
|
+
skipPrompt: true,
|
|
205
209
|
},
|
|
206
210
|
{
|
|
207
211
|
type: 'text',
|
|
208
212
|
name: 'description',
|
|
209
213
|
message: 'description',
|
|
210
214
|
required: false,
|
|
215
|
+
skipPrompt: true,
|
|
211
216
|
},
|
|
212
217
|
{
|
|
213
218
|
type: 'text',
|
|
214
219
|
name: 'ogImage',
|
|
215
220
|
message: 'ogImage',
|
|
216
221
|
required: false,
|
|
222
|
+
skipPrompt: true,
|
|
217
223
|
},
|
|
218
224
|
]);
|
|
219
225
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
@@ -129,7 +129,7 @@ async function handleCreate(argv, prompter) {
|
|
|
129
129
|
required: true,
|
|
130
130
|
},
|
|
131
131
|
{
|
|
132
|
-
type: '
|
|
132
|
+
type: 'json',
|
|
133
133
|
name: 'data',
|
|
134
134
|
message: 'data',
|
|
135
135
|
required: true,
|
|
@@ -193,7 +193,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
193
193
|
required: false,
|
|
194
194
|
},
|
|
195
195
|
{
|
|
196
|
-
type: '
|
|
196
|
+
type: 'json',
|
|
197
197
|
name: 'data',
|
|
198
198
|
message: 'data',
|
|
199
199
|
required: false,
|
|
@@ -120,7 +120,7 @@ async function handleCreate(argv, prompter) {
|
|
|
120
120
|
required: true,
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
|
-
type: '
|
|
123
|
+
type: 'json',
|
|
124
124
|
name: 'theme',
|
|
125
125
|
message: 'theme',
|
|
126
126
|
required: true,
|
|
@@ -176,7 +176,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
176
176
|
required: false,
|
|
177
177
|
},
|
|
178
178
|
{
|
|
179
|
-
type: '
|
|
179
|
+
type: 'json',
|
|
180
180
|
name: 'theme',
|
|
181
181
|
message: 'theme',
|
|
182
182
|
required: false,
|