@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
|
@@ -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
|
.forgotPassword(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
|
.oneTimeToken(parsedAnswers, {
|
|
@@ -124,6 +124,7 @@ async function handleCreate(argv, prompter) {
|
|
|
124
124
|
name: 'ownerId',
|
|
125
125
|
message: 'ownerId',
|
|
126
126
|
required: false,
|
|
127
|
+
skipPrompt: true,
|
|
127
128
|
},
|
|
128
129
|
{
|
|
129
130
|
type: 'text',
|
|
@@ -138,16 +139,18 @@ async function handleCreate(argv, prompter) {
|
|
|
138
139
|
required: true,
|
|
139
140
|
},
|
|
140
141
|
{
|
|
141
|
-
type: '
|
|
142
|
+
type: 'boolean',
|
|
142
143
|
name: 'isVerified',
|
|
143
144
|
message: 'isVerified',
|
|
144
145
|
required: false,
|
|
146
|
+
skipPrompt: true,
|
|
145
147
|
},
|
|
146
148
|
{
|
|
147
|
-
type: '
|
|
149
|
+
type: 'boolean',
|
|
148
150
|
name: 'isPrimary',
|
|
149
151
|
message: 'isPrimary',
|
|
150
152
|
required: false,
|
|
153
|
+
skipPrompt: true,
|
|
151
154
|
},
|
|
152
155
|
]);
|
|
153
156
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
@@ -198,6 +201,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
198
201
|
name: 'ownerId',
|
|
199
202
|
message: 'ownerId',
|
|
200
203
|
required: false,
|
|
204
|
+
skipPrompt: true,
|
|
201
205
|
},
|
|
202
206
|
{
|
|
203
207
|
type: 'text',
|
|
@@ -212,16 +216,18 @@ async function handleUpdate(argv, prompter) {
|
|
|
212
216
|
required: false,
|
|
213
217
|
},
|
|
214
218
|
{
|
|
215
|
-
type: '
|
|
219
|
+
type: 'boolean',
|
|
216
220
|
name: 'isVerified',
|
|
217
221
|
message: 'isVerified',
|
|
218
222
|
required: false,
|
|
223
|
+
skipPrompt: true,
|
|
219
224
|
},
|
|
220
225
|
{
|
|
221
|
-
type: '
|
|
226
|
+
type: 'boolean',
|
|
222
227
|
name: 'isPrimary',
|
|
223
228
|
message: 'isPrimary',
|
|
224
229
|
required: false,
|
|
230
|
+
skipPrompt: true,
|
|
225
231
|
},
|
|
226
232
|
]);
|
|
227
233
|
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
|
.resetPassword(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
|
.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, {
|
|
@@ -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
|
.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, {
|
|
@@ -127,30 +127,35 @@ async function handleCreate(argv, prompter) {
|
|
|
127
127
|
name: 'username',
|
|
128
128
|
message: 'username',
|
|
129
129
|
required: false,
|
|
130
|
+
skipPrompt: true,
|
|
130
131
|
},
|
|
131
132
|
{
|
|
132
133
|
type: 'text',
|
|
133
134
|
name: 'displayName',
|
|
134
135
|
message: 'displayName',
|
|
135
136
|
required: false,
|
|
137
|
+
skipPrompt: true,
|
|
136
138
|
},
|
|
137
139
|
{
|
|
138
140
|
type: 'text',
|
|
139
141
|
name: 'profilePicture',
|
|
140
142
|
message: 'profilePicture',
|
|
141
143
|
required: false,
|
|
144
|
+
skipPrompt: true,
|
|
142
145
|
},
|
|
143
146
|
{
|
|
144
147
|
type: 'text',
|
|
145
148
|
name: 'searchTsv',
|
|
146
149
|
message: 'searchTsv',
|
|
147
150
|
required: false,
|
|
151
|
+
skipPrompt: true,
|
|
148
152
|
},
|
|
149
153
|
{
|
|
150
154
|
type: 'text',
|
|
151
155
|
name: 'type',
|
|
152
156
|
message: 'type',
|
|
153
157
|
required: false,
|
|
158
|
+
skipPrompt: true,
|
|
154
159
|
},
|
|
155
160
|
]);
|
|
156
161
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
@@ -202,30 +207,35 @@ async function handleUpdate(argv, prompter) {
|
|
|
202
207
|
name: 'username',
|
|
203
208
|
message: 'username',
|
|
204
209
|
required: false,
|
|
210
|
+
skipPrompt: true,
|
|
205
211
|
},
|
|
206
212
|
{
|
|
207
213
|
type: 'text',
|
|
208
214
|
name: 'displayName',
|
|
209
215
|
message: 'displayName',
|
|
210
216
|
required: false,
|
|
217
|
+
skipPrompt: true,
|
|
211
218
|
},
|
|
212
219
|
{
|
|
213
220
|
type: 'text',
|
|
214
221
|
name: 'profilePicture',
|
|
215
222
|
message: 'profilePicture',
|
|
216
223
|
required: false,
|
|
224
|
+
skipPrompt: true,
|
|
217
225
|
},
|
|
218
226
|
{
|
|
219
227
|
type: 'text',
|
|
220
228
|
name: 'searchTsv',
|
|
221
229
|
message: 'searchTsv',
|
|
222
230
|
required: false,
|
|
231
|
+
skipPrompt: true,
|
|
223
232
|
},
|
|
224
233
|
{
|
|
225
234
|
type: 'text',
|
|
226
235
|
name: 'type',
|
|
227
236
|
message: 'type',
|
|
228
237
|
required: false,
|
|
238
|
+
skipPrompt: true,
|
|
229
239
|
},
|
|
230
240
|
]);
|
|
231
241
|
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
|
.verifyEmail(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
|
.verifyPassword(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
|
.verifyTotp(parsedAnswers, {
|
package/esm/auth/cli/index.js
CHANGED
|
@@ -10,9 +10,9 @@ if (process.argv.includes('--version') || process.argv.includes('-v')) {
|
|
|
10
10
|
console.log(pkg.version);
|
|
11
11
|
process.exit(0);
|
|
12
12
|
}
|
|
13
|
-
// Check for --tty false to enable non-interactive mode (noTty)
|
|
13
|
+
// Check for --tty false or --no-tty to enable non-interactive mode (noTty)
|
|
14
14
|
const ttyIdx = process.argv.indexOf('--tty');
|
|
15
|
-
const noTty = ttyIdx !== -1 && process.argv[ttyIdx + 1] === 'false';
|
|
15
|
+
const noTty = (ttyIdx !== -1 && process.argv[ttyIdx + 1] === 'false') || process.argv.includes('--no-tty');
|
|
16
16
|
const options = {
|
|
17
17
|
noTty,
|
|
18
18
|
minimistOpts: { alias: { v: 'version', h: 'help' } },
|
package/esm/auth/cli/utils.d.ts
CHANGED
|
@@ -20,6 +20,19 @@ export declare function stripUndefined(obj: Record<string, unknown>, schema?: Fi
|
|
|
20
20
|
* from the CLI prompt. This parses it into a proper object.
|
|
21
21
|
*/
|
|
22
22
|
export declare function parseMutationInput(answers: Record<string, unknown>): Record<string, unknown>;
|
|
23
|
+
/**
|
|
24
|
+
* Reconstruct nested objects from dot-notation CLI answers.
|
|
25
|
+
* When INPUT_OBJECT args are flattened to dot-notation questions
|
|
26
|
+
* (e.g. `--input.email foo --input.password bar`), this function
|
|
27
|
+
* rebuilds the nested structure expected by the ORM:
|
|
28
|
+
*
|
|
29
|
+
* { 'input.email': 'foo', 'input.password': 'bar' }
|
|
30
|
+
* → { input: { email: 'foo', password: 'bar' } }
|
|
31
|
+
*
|
|
32
|
+
* Non-dotted keys are passed through unchanged.
|
|
33
|
+
* Uses `nested-obj` for safe nested property setting.
|
|
34
|
+
*/
|
|
35
|
+
export declare function unflattenDotNotation(answers: Record<string, unknown>): Record<string, unknown>;
|
|
23
36
|
/**
|
|
24
37
|
* Build a select object from a comma-separated list of dot-notation paths.
|
|
25
38
|
* Uses `nested-obj` to parse paths like 'clientMutationId,result.accessToken,result.userId'
|
package/esm/auth/cli/utils.js
CHANGED
|
@@ -115,6 +115,30 @@ export function parseMutationInput(answers) {
|
|
|
115
115
|
}
|
|
116
116
|
return answers;
|
|
117
117
|
}
|
|
118
|
+
/**
|
|
119
|
+
* Reconstruct nested objects from dot-notation CLI answers.
|
|
120
|
+
* When INPUT_OBJECT args are flattened to dot-notation questions
|
|
121
|
+
* (e.g. `--input.email foo --input.password bar`), this function
|
|
122
|
+
* rebuilds the nested structure expected by the ORM:
|
|
123
|
+
*
|
|
124
|
+
* { 'input.email': 'foo', 'input.password': 'bar' }
|
|
125
|
+
* → { input: { email: 'foo', password: 'bar' } }
|
|
126
|
+
*
|
|
127
|
+
* Non-dotted keys are passed through unchanged.
|
|
128
|
+
* Uses `nested-obj` for safe nested property setting.
|
|
129
|
+
*/
|
|
130
|
+
export function unflattenDotNotation(answers) {
|
|
131
|
+
const result = {};
|
|
132
|
+
for (const [key, value] of Object.entries(answers)) {
|
|
133
|
+
if (key.includes('.')) {
|
|
134
|
+
objectPath.set(result, key, value);
|
|
135
|
+
}
|
|
136
|
+
else {
|
|
137
|
+
result[key] = value;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
return result;
|
|
141
|
+
}
|
|
118
142
|
/**
|
|
119
143
|
* Build a select object from a comma-separated list of dot-notation paths.
|
|
120
144
|
* Uses `nested-obj` to parse paths like 'clientMutationId,result.accessToken,result.userId'
|
|
@@ -127,6 +127,7 @@ async function handleCreate(argv, prompter) {
|
|
|
127
127
|
name: 'message',
|
|
128
128
|
message: 'message',
|
|
129
129
|
required: false,
|
|
130
|
+
skipPrompt: true,
|
|
130
131
|
},
|
|
131
132
|
{
|
|
132
133
|
type: 'text',
|
|
@@ -145,30 +146,35 @@ async function handleCreate(argv, prompter) {
|
|
|
145
146
|
name: 'parentIds',
|
|
146
147
|
message: 'parentIds',
|
|
147
148
|
required: false,
|
|
149
|
+
skipPrompt: true,
|
|
148
150
|
},
|
|
149
151
|
{
|
|
150
152
|
type: 'text',
|
|
151
153
|
name: 'authorId',
|
|
152
154
|
message: 'authorId',
|
|
153
155
|
required: false,
|
|
156
|
+
skipPrompt: true,
|
|
154
157
|
},
|
|
155
158
|
{
|
|
156
159
|
type: 'text',
|
|
157
160
|
name: 'committerId',
|
|
158
161
|
message: 'committerId',
|
|
159
162
|
required: false,
|
|
163
|
+
skipPrompt: true,
|
|
160
164
|
},
|
|
161
165
|
{
|
|
162
166
|
type: 'text',
|
|
163
167
|
name: 'treeId',
|
|
164
168
|
message: 'treeId',
|
|
165
169
|
required: false,
|
|
170
|
+
skipPrompt: true,
|
|
166
171
|
},
|
|
167
172
|
{
|
|
168
173
|
type: 'text',
|
|
169
174
|
name: 'date',
|
|
170
175
|
message: 'date',
|
|
171
176
|
required: false,
|
|
177
|
+
skipPrompt: true,
|
|
172
178
|
},
|
|
173
179
|
]);
|
|
174
180
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
@@ -223,6 +229,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
223
229
|
name: 'message',
|
|
224
230
|
message: 'message',
|
|
225
231
|
required: false,
|
|
232
|
+
skipPrompt: true,
|
|
226
233
|
},
|
|
227
234
|
{
|
|
228
235
|
type: 'text',
|
|
@@ -241,30 +248,35 @@ async function handleUpdate(argv, prompter) {
|
|
|
241
248
|
name: 'parentIds',
|
|
242
249
|
message: 'parentIds',
|
|
243
250
|
required: false,
|
|
251
|
+
skipPrompt: true,
|
|
244
252
|
},
|
|
245
253
|
{
|
|
246
254
|
type: 'text',
|
|
247
255
|
name: 'authorId',
|
|
248
256
|
message: 'authorId',
|
|
249
257
|
required: false,
|
|
258
|
+
skipPrompt: true,
|
|
250
259
|
},
|
|
251
260
|
{
|
|
252
261
|
type: 'text',
|
|
253
262
|
name: 'committerId',
|
|
254
263
|
message: 'committerId',
|
|
255
264
|
required: false,
|
|
265
|
+
skipPrompt: true,
|
|
256
266
|
},
|
|
257
267
|
{
|
|
258
268
|
type: 'text',
|
|
259
269
|
name: 'treeId',
|
|
260
270
|
message: 'treeId',
|
|
261
271
|
required: false,
|
|
272
|
+
skipPrompt: true,
|
|
262
273
|
},
|
|
263
274
|
{
|
|
264
275
|
type: 'text',
|
|
265
276
|
name: 'date',
|
|
266
277
|
message: 'date',
|
|
267
278
|
required: false,
|
|
279
|
+
skipPrompt: true,
|
|
268
280
|
},
|
|
269
281
|
]);
|
|
270
282
|
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
|
.freezeObjects(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
|
.initEmptyRepo(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
|
.insertNodeAtPath(parsedAnswers, {
|
|
@@ -130,24 +130,28 @@ async function handleCreate(argv, prompter) {
|
|
|
130
130
|
name: 'kids',
|
|
131
131
|
message: 'kids',
|
|
132
132
|
required: false,
|
|
133
|
+
skipPrompt: true,
|
|
133
134
|
},
|
|
134
135
|
{
|
|
135
136
|
type: 'text',
|
|
136
137
|
name: 'ktree',
|
|
137
138
|
message: 'ktree',
|
|
138
139
|
required: false,
|
|
140
|
+
skipPrompt: true,
|
|
139
141
|
},
|
|
140
142
|
{
|
|
141
|
-
type: '
|
|
143
|
+
type: 'json',
|
|
142
144
|
name: 'data',
|
|
143
145
|
message: 'data',
|
|
144
146
|
required: false,
|
|
147
|
+
skipPrompt: true,
|
|
145
148
|
},
|
|
146
149
|
{
|
|
147
|
-
type: '
|
|
150
|
+
type: 'boolean',
|
|
148
151
|
name: 'frzn',
|
|
149
152
|
message: 'frzn',
|
|
150
153
|
required: false,
|
|
154
|
+
skipPrompt: true,
|
|
151
155
|
},
|
|
152
156
|
]);
|
|
153
157
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
@@ -204,24 +208,28 @@ async function handleUpdate(argv, prompter) {
|
|
|
204
208
|
name: 'kids',
|
|
205
209
|
message: 'kids',
|
|
206
210
|
required: false,
|
|
211
|
+
skipPrompt: true,
|
|
207
212
|
},
|
|
208
213
|
{
|
|
209
214
|
type: 'text',
|
|
210
215
|
name: 'ktree',
|
|
211
216
|
message: 'ktree',
|
|
212
217
|
required: false,
|
|
218
|
+
skipPrompt: true,
|
|
213
219
|
},
|
|
214
220
|
{
|
|
215
|
-
type: '
|
|
221
|
+
type: 'json',
|
|
216
222
|
name: 'data',
|
|
217
223
|
message: 'data',
|
|
218
224
|
required: false,
|
|
225
|
+
skipPrompt: true,
|
|
219
226
|
},
|
|
220
227
|
{
|
|
221
|
-
type: '
|
|
228
|
+
type: 'boolean',
|
|
222
229
|
name: 'frzn',
|
|
223
230
|
message: 'frzn',
|
|
224
231
|
required: false,
|
|
232
|
+
skipPrompt: true,
|
|
225
233
|
},
|
|
226
234
|
]);
|
|
227
235
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
@@ -133,6 +133,7 @@ async function handleCreate(argv, prompter) {
|
|
|
133
133
|
name: 'commitId',
|
|
134
134
|
message: 'commitId',
|
|
135
135
|
required: false,
|
|
136
|
+
skipPrompt: true,
|
|
136
137
|
},
|
|
137
138
|
]);
|
|
138
139
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
@@ -197,6 +198,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
197
198
|
name: 'commitId',
|
|
198
199
|
message: 'commitId',
|
|
199
200
|
required: false,
|
|
201
|
+
skipPrompt: true,
|
|
200
202
|
},
|
|
201
203
|
]);
|
|
202
204
|
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
|
.removeNodeAtPath(parsedAnswers, {
|