@constructive-sdk/cli 0.2.0 → 0.3.0
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 -1
- package/admin/cli/commands/app-admin-grant.js +4 -1
- package/admin/cli/commands/app-grant.js +6 -1
- package/admin/cli/commands/app-level-requirement.js +6 -1
- package/admin/cli/commands/app-level.js +6 -1
- package/admin/cli/commands/app-limit-default.js +2 -1
- package/admin/cli/commands/app-limit.js +6 -1
- package/admin/cli/commands/app-membership-default.js +8 -1
- package/admin/cli/commands/app-membership.js +24 -1
- package/admin/cli/commands/app-owner-grant.js +4 -1
- package/admin/cli/commands/app-permission-default.js +2 -1
- package/admin/cli/commands/app-permission.js +8 -1
- package/admin/cli/commands/app-permissions-get-mask-by-names.js +3 -1
- package/admin/cli/commands/app-permissions-get-mask.js +3 -1
- package/admin/cli/commands/app-permissions-get-padded-mask.js +3 -1
- package/admin/cli/commands/app-step.js +4 -1
- package/admin/cli/commands/auth.js +0 -1
- package/admin/cli/commands/claimed-invite.js +6 -1
- package/admin/cli/commands/context.js +2 -3
- package/admin/cli/commands/invite.js +18 -1
- package/admin/cli/commands/membership-type.js +0 -1
- package/admin/cli/commands/org-admin-grant.js +4 -1
- package/admin/cli/commands/org-chart-edge-grant.js +8 -1
- package/admin/cli/commands/org-chart-edge.js +6 -1
- package/admin/cli/commands/org-claimed-invite.js +6 -1
- package/admin/cli/commands/org-get-managers-record.js +2 -121
- package/admin/cli/commands/org-get-subordinates-record.js +2 -121
- package/admin/cli/commands/org-grant.js +6 -1
- package/admin/cli/commands/org-invite.js +20 -1
- package/admin/cli/commands/org-is-manager-of.js +3 -1
- package/admin/cli/commands/org-limit-default.js +2 -1
- package/admin/cli/commands/org-limit.js +6 -1
- package/admin/cli/commands/org-member.js +2 -1
- package/admin/cli/commands/org-membership-default.js +10 -1
- package/admin/cli/commands/org-membership.js +22 -1
- package/admin/cli/commands/org-owner-grant.js +4 -1
- package/admin/cli/commands/org-permission-default.js +2 -1
- package/admin/cli/commands/org-permission.js +8 -1
- package/admin/cli/commands/org-permissions-get-mask-by-names.js +3 -1
- package/admin/cli/commands/org-permissions-get-mask.js +3 -1
- package/admin/cli/commands/org-permissions-get-padded-mask.js +3 -1
- package/admin/cli/commands/steps-achieved.js +3 -1
- package/admin/cli/commands.js +0 -1
- package/admin/cli/executor.js +0 -1
- package/admin/cli/index.js +0 -1
- package/admin/cli/node-fetch.js +0 -1
- package/admin/cli/utils.js +0 -1
- package/auth/cli/commands/audit-log.js +8 -1
- package/auth/cli/commands/auth.js +0 -1
- package/auth/cli/commands/connected-account.js +4 -1
- package/auth/cli/commands/context.js +2 -3
- package/auth/cli/commands/crypto-address.js +6 -1
- package/auth/cli/commands/email.js +6 -1
- package/auth/cli/commands/phone-number.js +6 -1
- package/auth/cli/commands/role-type.js +0 -1
- package/auth/cli/commands/user.js +10 -15
- package/auth/cli/commands.js +0 -1
- package/auth/cli/executor.js +0 -1
- package/auth/cli/index.js +0 -1
- package/auth/cli/node-fetch.js +0 -1
- package/auth/cli/utils.js +0 -1
- package/esm/admin/cli/commands/app-achievement.js +4 -1
- package/esm/admin/cli/commands/app-admin-grant.js +4 -1
- package/esm/admin/cli/commands/app-grant.js +6 -1
- package/esm/admin/cli/commands/app-level-requirement.js +6 -1
- package/esm/admin/cli/commands/app-level.js +6 -1
- package/esm/admin/cli/commands/app-limit-default.js +2 -1
- package/esm/admin/cli/commands/app-limit.js +6 -1
- package/esm/admin/cli/commands/app-membership-default.js +8 -1
- package/esm/admin/cli/commands/app-membership.js +24 -1
- package/esm/admin/cli/commands/app-owner-grant.js +4 -1
- package/esm/admin/cli/commands/app-permission-default.js +2 -1
- package/esm/admin/cli/commands/app-permission.js +8 -1
- package/esm/admin/cli/commands/app-permissions-get-mask-by-names.js +3 -1
- package/esm/admin/cli/commands/app-permissions-get-mask.js +3 -1
- package/esm/admin/cli/commands/app-permissions-get-padded-mask.js +3 -1
- package/esm/admin/cli/commands/app-step.js +4 -1
- package/esm/admin/cli/commands/auth.js +0 -1
- package/esm/admin/cli/commands/claimed-invite.js +6 -1
- package/esm/admin/cli/commands/context.js +2 -3
- package/esm/admin/cli/commands/invite.js +18 -1
- package/esm/admin/cli/commands/membership-type.js +0 -1
- package/esm/admin/cli/commands/org-admin-grant.js +4 -1
- package/esm/admin/cli/commands/org-chart-edge-grant.js +8 -1
- package/esm/admin/cli/commands/org-chart-edge.js +6 -1
- package/esm/admin/cli/commands/org-claimed-invite.js +6 -1
- package/esm/admin/cli/commands/org-get-managers-record.js +2 -121
- package/esm/admin/cli/commands/org-get-subordinates-record.js +2 -121
- package/esm/admin/cli/commands/org-grant.js +6 -1
- package/esm/admin/cli/commands/org-invite.js +20 -1
- package/esm/admin/cli/commands/org-is-manager-of.js +3 -1
- package/esm/admin/cli/commands/org-limit-default.js +2 -1
- package/esm/admin/cli/commands/org-limit.js +6 -1
- package/esm/admin/cli/commands/org-member.js +2 -1
- package/esm/admin/cli/commands/org-membership-default.js +10 -1
- package/esm/admin/cli/commands/org-membership.js +22 -1
- package/esm/admin/cli/commands/org-owner-grant.js +4 -1
- package/esm/admin/cli/commands/org-permission-default.js +2 -1
- package/esm/admin/cli/commands/org-permission.js +8 -1
- package/esm/admin/cli/commands/org-permissions-get-mask-by-names.js +3 -1
- package/esm/admin/cli/commands/org-permissions-get-mask.js +3 -1
- package/esm/admin/cli/commands/org-permissions-get-padded-mask.js +3 -1
- package/esm/admin/cli/commands/steps-achieved.js +3 -1
- package/esm/admin/cli/commands.js +0 -1
- package/esm/admin/cli/executor.js +0 -1
- package/esm/admin/cli/index.js +0 -1
- package/esm/admin/cli/node-fetch.js +0 -1
- package/esm/admin/cli/utils.js +0 -1
- package/esm/auth/cli/commands/audit-log.js +8 -1
- package/esm/auth/cli/commands/auth.js +0 -1
- package/esm/auth/cli/commands/connected-account.js +4 -1
- package/esm/auth/cli/commands/context.js +2 -3
- package/esm/auth/cli/commands/crypto-address.js +6 -1
- package/esm/auth/cli/commands/email.js +6 -1
- package/esm/auth/cli/commands/phone-number.js +6 -1
- package/esm/auth/cli/commands/role-type.js +0 -1
- package/esm/auth/cli/commands/user.js +10 -15
- package/esm/auth/cli/commands.js +0 -1
- package/esm/auth/cli/executor.js +0 -1
- package/esm/auth/cli/index.js +0 -1
- package/esm/auth/cli/node-fetch.js +0 -1
- package/esm/auth/cli/utils.js +0 -1
- package/esm/objects/cli/commands/auth.js +0 -1
- package/esm/objects/cli/commands/commit.js +12 -1
- package/esm/objects/cli/commands/context.js +2 -3
- package/esm/objects/cli/commands/get-all-record.js +2 -121
- package/esm/objects/cli/commands/object.js +8 -15
- package/esm/objects/cli/commands/ref.js +2 -1
- package/esm/objects/cli/commands/store.js +2 -1
- package/esm/objects/cli/commands.js +0 -1
- package/esm/objects/cli/executor.js +0 -1
- package/esm/objects/cli/index.js +0 -1
- package/esm/objects/cli/node-fetch.js +0 -1
- package/esm/objects/cli/utils.js +0 -1
- package/esm/public/cli/commands/api-module.js +0 -1
- package/esm/public/cli/commands/api-schema.js +0 -1
- package/esm/public/cli/commands/api.js +8 -1
- package/esm/public/cli/commands/app-achievement.js +4 -1
- package/esm/public/cli/commands/app-admin-grant.js +4 -1
- package/esm/public/cli/commands/app-grant.js +6 -1
- package/esm/public/cli/commands/app-level-requirement.js +6 -1
- package/esm/public/cli/commands/app-level.js +6 -1
- package/esm/public/cli/commands/app-limit-default.js +2 -1
- package/esm/public/cli/commands/app-limit.js +6 -1
- package/esm/public/cli/commands/app-membership-default.js +8 -1
- package/esm/public/cli/commands/app-membership.js +24 -1
- package/esm/public/cli/commands/app-owner-grant.js +4 -1
- package/esm/public/cli/commands/app-permission-default.js +2 -1
- package/esm/public/cli/commands/app-permission.js +8 -1
- package/esm/public/cli/commands/app-permissions-get-mask-by-names.js +3 -1
- package/esm/public/cli/commands/app-permissions-get-mask.js +3 -1
- package/esm/public/cli/commands/app-permissions-get-padded-mask.js +3 -1
- package/esm/public/cli/commands/app-step.js +4 -1
- package/esm/public/cli/commands/app.js +12 -1
- package/esm/public/cli/commands/ast-migration.js +13 -206
- package/esm/public/cli/commands/audit-log.js +8 -1
- package/esm/public/cli/commands/auth.js +0 -1
- package/esm/public/cli/commands/check-constraint.js +18 -1
- package/esm/public/cli/commands/claimed-invite.js +6 -1
- package/esm/public/cli/commands/commit.js +12 -1
- package/esm/public/cli/commands/connected-account.js +4 -1
- package/esm/public/cli/commands/connected-accounts-module.js +8 -1
- package/esm/public/cli/commands/context.js +2 -3
- package/esm/public/cli/commands/crypto-address.js +6 -1
- package/esm/public/cli/commands/crypto-addresses-module.js +10 -1
- package/esm/public/cli/commands/crypto-auth-module.js +22 -1
- package/esm/public/cli/commands/database-provision-module.js +16 -1
- package/esm/public/cli/commands/database.js +10 -1
- package/esm/public/cli/commands/default-ids-module.js +0 -1
- package/esm/public/cli/commands/default-privilege.js +4 -1
- package/esm/public/cli/commands/denormalized-table-field.js +12 -1
- package/esm/public/cli/commands/domain.js +8 -1
- package/esm/public/cli/commands/email.js +6 -1
- package/esm/public/cli/commands/emails-module.js +8 -1
- package/esm/public/cli/commands/encrypted-secrets-module.js +6 -1
- package/esm/public/cli/commands/field-module.js +12 -1
- package/esm/public/cli/commands/field.js +36 -1
- package/esm/public/cli/commands/foreign-key-constraint.js +22 -1
- package/esm/public/cli/commands/full-text-search.js +2 -1
- package/esm/public/cli/commands/get-all-record.js +2 -121
- package/esm/public/cli/commands/hierarchy-module.js +30 -1
- package/esm/public/cli/commands/index.js +24 -1
- package/esm/public/cli/commands/invite.js +18 -1
- package/esm/public/cli/commands/invites-module.js +22 -1
- package/esm/public/cli/commands/levels-module.js +46 -1
- package/esm/public/cli/commands/limits-module.js +30 -1
- package/esm/public/cli/commands/membership-type.js +0 -1
- package/esm/public/cli/commands/membership-types-module.js +6 -1
- package/esm/public/cli/commands/memberships-module.js +56 -1
- package/esm/public/cli/commands/node-type-registry.js +15 -1
- package/esm/public/cli/commands/object.js +8 -15
- package/esm/public/cli/commands/org-admin-grant.js +4 -1
- package/esm/public/cli/commands/org-chart-edge-grant.js +8 -1
- package/esm/public/cli/commands/org-chart-edge.js +6 -1
- package/esm/public/cli/commands/org-claimed-invite.js +6 -1
- package/esm/public/cli/commands/org-get-managers-record.js +2 -121
- package/esm/public/cli/commands/org-get-subordinates-record.js +2 -121
- package/esm/public/cli/commands/org-grant.js +6 -1
- package/esm/public/cli/commands/org-invite.js +20 -1
- package/esm/public/cli/commands/org-is-manager-of.js +3 -1
- package/esm/public/cli/commands/org-limit-default.js +2 -1
- package/esm/public/cli/commands/org-limit.js +6 -1
- package/esm/public/cli/commands/org-member.js +2 -1
- package/esm/public/cli/commands/org-membership-default.js +10 -1
- package/esm/public/cli/commands/org-membership.js +22 -1
- package/esm/public/cli/commands/org-owner-grant.js +4 -1
- package/esm/public/cli/commands/org-permission-default.js +2 -1
- package/esm/public/cli/commands/org-permission.js +8 -1
- package/esm/public/cli/commands/org-permissions-get-mask-by-names.js +3 -1
- package/esm/public/cli/commands/org-permissions-get-mask.js +3 -1
- package/esm/public/cli/commands/org-permissions-get-padded-mask.js +3 -1
- package/esm/public/cli/commands/permissions-module.js +28 -1
- package/esm/public/cli/commands/phone-number.js +6 -1
- package/esm/public/cli/commands/phone-numbers-module.js +8 -1
- package/esm/public/cli/commands/policy.js +26 -1
- package/esm/public/cli/commands/primary-key-constraint.js +16 -1
- package/esm/public/cli/commands/profiles-module.js +30 -1
- package/esm/public/cli/commands/ref.js +2 -1
- package/esm/public/cli/commands/relation-provision.js +46 -1
- package/esm/public/cli/commands/rls-module.js +20 -1
- package/esm/public/cli/commands/role-type.js +0 -1
- package/esm/public/cli/commands/schema-grant.js +2 -1
- package/esm/public/cli/commands/schema.js +16 -1
- package/esm/public/cli/commands/secrets-module.js +6 -1
- package/esm/public/cli/commands/secure-table-provision.js +30 -1
- package/esm/public/cli/commands/sessions-module.js +18 -1
- package/esm/public/cli/commands/site-metadatum.js +6 -1
- package/esm/public/cli/commands/site-module.js +0 -1
- package/esm/public/cli/commands/site-theme.js +0 -1
- package/esm/public/cli/commands/site.js +14 -1
- package/esm/public/cli/commands/sql-migration.js +13 -206
- package/esm/public/cli/commands/steps-achieved.js +3 -1
- package/esm/public/cli/commands/store.js +2 -1
- package/esm/public/cli/commands/table-grant.js +6 -1
- package/esm/public/cli/commands/table-module.js +12 -1
- package/esm/public/cli/commands/table-template-module.js +10 -1
- package/esm/public/cli/commands/table.js +28 -1
- package/esm/public/cli/commands/trigger-function.js +2 -1
- package/esm/public/cli/commands/trigger.js +16 -1
- package/esm/public/cli/commands/unique-constraint.js +18 -1
- package/esm/public/cli/commands/user-auth-module.js +48 -1
- package/esm/public/cli/commands/user.js +10 -15
- package/esm/public/cli/commands/users-module.js +10 -1
- package/esm/public/cli/commands/uuid-module.js +4 -1
- package/esm/public/cli/commands/view-grant.js +6 -1
- package/esm/public/cli/commands/view-rule.js +4 -1
- package/esm/public/cli/commands/view-table.js +2 -1
- package/esm/public/cli/commands/view.js +24 -1
- package/esm/public/cli/commands.js +0 -1
- package/esm/public/cli/executor.js +0 -1
- package/esm/public/cli/index.js +0 -1
- package/esm/public/cli/node-fetch.js +0 -1
- package/esm/public/cli/utils.js +0 -1
- package/objects/cli/commands/auth.js +0 -1
- package/objects/cli/commands/commit.js +12 -1
- package/objects/cli/commands/context.js +2 -3
- package/objects/cli/commands/get-all-record.js +2 -121
- package/objects/cli/commands/object.js +8 -15
- package/objects/cli/commands/ref.js +2 -1
- package/objects/cli/commands/store.js +2 -1
- package/objects/cli/commands.js +0 -1
- package/objects/cli/executor.js +0 -1
- package/objects/cli/index.js +0 -1
- package/objects/cli/node-fetch.js +0 -1
- package/objects/cli/utils.js +0 -1
- package/package.json +4 -4
- package/public/cli/commands/api-module.js +0 -1
- package/public/cli/commands/api-schema.js +0 -1
- package/public/cli/commands/api.js +8 -1
- package/public/cli/commands/app-achievement.js +4 -1
- package/public/cli/commands/app-admin-grant.js +4 -1
- package/public/cli/commands/app-grant.js +6 -1
- package/public/cli/commands/app-level-requirement.js +6 -1
- package/public/cli/commands/app-level.js +6 -1
- package/public/cli/commands/app-limit-default.js +2 -1
- package/public/cli/commands/app-limit.js +6 -1
- package/public/cli/commands/app-membership-default.js +8 -1
- package/public/cli/commands/app-membership.js +24 -1
- package/public/cli/commands/app-owner-grant.js +4 -1
- package/public/cli/commands/app-permission-default.js +2 -1
- package/public/cli/commands/app-permission.js +8 -1
- package/public/cli/commands/app-permissions-get-mask-by-names.js +3 -1
- package/public/cli/commands/app-permissions-get-mask.js +3 -1
- package/public/cli/commands/app-permissions-get-padded-mask.js +3 -1
- package/public/cli/commands/app-step.js +4 -1
- package/public/cli/commands/app.js +12 -1
- package/public/cli/commands/ast-migration.js +13 -206
- package/public/cli/commands/audit-log.js +8 -1
- package/public/cli/commands/auth.js +0 -1
- package/public/cli/commands/check-constraint.js +18 -1
- package/public/cli/commands/claimed-invite.js +6 -1
- package/public/cli/commands/commit.js +12 -1
- package/public/cli/commands/connected-account.js +4 -1
- package/public/cli/commands/connected-accounts-module.js +8 -1
- package/public/cli/commands/context.js +2 -3
- package/public/cli/commands/crypto-address.js +6 -1
- package/public/cli/commands/crypto-addresses-module.js +10 -1
- package/public/cli/commands/crypto-auth-module.js +22 -1
- package/public/cli/commands/database-provision-module.js +16 -1
- package/public/cli/commands/database.js +10 -1
- package/public/cli/commands/default-ids-module.js +0 -1
- package/public/cli/commands/default-privilege.js +4 -1
- package/public/cli/commands/denormalized-table-field.js +12 -1
- package/public/cli/commands/domain.js +8 -1
- package/public/cli/commands/email.js +6 -1
- package/public/cli/commands/emails-module.js +8 -1
- package/public/cli/commands/encrypted-secrets-module.js +6 -1
- package/public/cli/commands/field-module.js +12 -1
- package/public/cli/commands/field.js +36 -1
- package/public/cli/commands/foreign-key-constraint.js +22 -1
- package/public/cli/commands/full-text-search.js +2 -1
- package/public/cli/commands/get-all-record.js +2 -121
- package/public/cli/commands/hierarchy-module.js +30 -1
- package/public/cli/commands/index.js +24 -1
- package/public/cli/commands/invite.js +18 -1
- package/public/cli/commands/invites-module.js +22 -1
- package/public/cli/commands/levels-module.js +46 -1
- package/public/cli/commands/limits-module.js +30 -1
- package/public/cli/commands/membership-type.js +0 -1
- package/public/cli/commands/membership-types-module.js +6 -1
- package/public/cli/commands/memberships-module.js +56 -1
- package/public/cli/commands/node-type-registry.js +15 -1
- package/public/cli/commands/object.js +8 -15
- package/public/cli/commands/org-admin-grant.js +4 -1
- package/public/cli/commands/org-chart-edge-grant.js +8 -1
- package/public/cli/commands/org-chart-edge.js +6 -1
- package/public/cli/commands/org-claimed-invite.js +6 -1
- package/public/cli/commands/org-get-managers-record.js +2 -121
- package/public/cli/commands/org-get-subordinates-record.js +2 -121
- package/public/cli/commands/org-grant.js +6 -1
- package/public/cli/commands/org-invite.js +20 -1
- package/public/cli/commands/org-is-manager-of.js +3 -1
- package/public/cli/commands/org-limit-default.js +2 -1
- package/public/cli/commands/org-limit.js +6 -1
- package/public/cli/commands/org-member.js +2 -1
- package/public/cli/commands/org-membership-default.js +10 -1
- package/public/cli/commands/org-membership.js +22 -1
- package/public/cli/commands/org-owner-grant.js +4 -1
- package/public/cli/commands/org-permission-default.js +2 -1
- package/public/cli/commands/org-permission.js +8 -1
- package/public/cli/commands/org-permissions-get-mask-by-names.js +3 -1
- package/public/cli/commands/org-permissions-get-mask.js +3 -1
- package/public/cli/commands/org-permissions-get-padded-mask.js +3 -1
- package/public/cli/commands/permissions-module.js +28 -1
- package/public/cli/commands/phone-number.js +6 -1
- package/public/cli/commands/phone-numbers-module.js +8 -1
- package/public/cli/commands/policy.js +26 -1
- package/public/cli/commands/primary-key-constraint.js +16 -1
- package/public/cli/commands/profiles-module.js +30 -1
- package/public/cli/commands/ref.js +2 -1
- package/public/cli/commands/relation-provision.js +46 -1
- package/public/cli/commands/rls-module.js +20 -1
- package/public/cli/commands/role-type.js +0 -1
- package/public/cli/commands/schema-grant.js +2 -1
- package/public/cli/commands/schema.js +16 -1
- package/public/cli/commands/secrets-module.js +6 -1
- package/public/cli/commands/secure-table-provision.js +30 -1
- package/public/cli/commands/sessions-module.js +18 -1
- package/public/cli/commands/site-metadatum.js +6 -1
- package/public/cli/commands/site-module.js +0 -1
- package/public/cli/commands/site-theme.js +0 -1
- package/public/cli/commands/site.js +14 -1
- package/public/cli/commands/sql-migration.js +13 -206
- package/public/cli/commands/steps-achieved.js +3 -1
- package/public/cli/commands/store.js +2 -1
- package/public/cli/commands/table-grant.js +6 -1
- package/public/cli/commands/table-module.js +12 -1
- package/public/cli/commands/table-template-module.js +10 -1
- package/public/cli/commands/table.js +28 -1
- package/public/cli/commands/trigger-function.js +2 -1
- package/public/cli/commands/trigger.js +16 -1
- package/public/cli/commands/unique-constraint.js +18 -1
- package/public/cli/commands/user-auth-module.js +48 -1
- package/public/cli/commands/user.js +10 -15
- package/public/cli/commands/users-module.js +10 -1
- package/public/cli/commands/uuid-module.js +4 -1
- package/public/cli/commands/view-grant.js +6 -1
- package/public/cli/commands/view-rule.js +4 -1
- package/public/cli/commands/view-table.js +2 -1
- package/public/cli/commands/view.js +24 -1
- package/public/cli/commands.js +0 -1
- package/public/cli/executor.js +0 -1
- package/public/cli/index.js +0 -1
- package/public/cli/node-fetch.js +0 -1
- package/public/cli/utils.js +0 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
1
|
/**
|
|
3
2
|
* CLI commands for User
|
|
4
3
|
* @generated by @constructive-io/graphql-codegen
|
|
@@ -128,36 +127,35 @@ async function handleCreate(argv, prompter) {
|
|
|
128
127
|
name: 'username',
|
|
129
128
|
message: 'username',
|
|
130
129
|
required: false,
|
|
130
|
+
skipPrompt: true,
|
|
131
131
|
},
|
|
132
132
|
{
|
|
133
133
|
type: 'text',
|
|
134
134
|
name: 'displayName',
|
|
135
135
|
message: 'displayName',
|
|
136
136
|
required: false,
|
|
137
|
+
skipPrompt: true,
|
|
137
138
|
},
|
|
138
139
|
{
|
|
139
140
|
type: 'text',
|
|
140
141
|
name: 'profilePicture',
|
|
141
142
|
message: 'profilePicture',
|
|
142
143
|
required: false,
|
|
144
|
+
skipPrompt: true,
|
|
143
145
|
},
|
|
144
146
|
{
|
|
145
147
|
type: 'text',
|
|
146
148
|
name: 'searchTsv',
|
|
147
149
|
message: 'searchTsv',
|
|
148
150
|
required: false,
|
|
151
|
+
skipPrompt: true,
|
|
149
152
|
},
|
|
150
153
|
{
|
|
151
154
|
type: 'text',
|
|
152
155
|
name: 'type',
|
|
153
156
|
message: 'type',
|
|
154
157
|
required: false,
|
|
155
|
-
|
|
156
|
-
{
|
|
157
|
-
type: 'text',
|
|
158
|
-
name: 'searchTsvRank',
|
|
159
|
-
message: 'searchTsvRank',
|
|
160
|
-
required: true,
|
|
158
|
+
skipPrompt: true,
|
|
161
159
|
},
|
|
162
160
|
]);
|
|
163
161
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
@@ -171,7 +169,6 @@ async function handleCreate(argv, prompter) {
|
|
|
171
169
|
profilePicture: cleanedData.profilePicture,
|
|
172
170
|
searchTsv: cleanedData.searchTsv,
|
|
173
171
|
type: cleanedData.type,
|
|
174
|
-
searchTsvRank: cleanedData.searchTsvRank,
|
|
175
172
|
},
|
|
176
173
|
select: {
|
|
177
174
|
id: true,
|
|
@@ -210,36 +207,35 @@ async function handleUpdate(argv, prompter) {
|
|
|
210
207
|
name: 'username',
|
|
211
208
|
message: 'username',
|
|
212
209
|
required: false,
|
|
210
|
+
skipPrompt: true,
|
|
213
211
|
},
|
|
214
212
|
{
|
|
215
213
|
type: 'text',
|
|
216
214
|
name: 'displayName',
|
|
217
215
|
message: 'displayName',
|
|
218
216
|
required: false,
|
|
217
|
+
skipPrompt: true,
|
|
219
218
|
},
|
|
220
219
|
{
|
|
221
220
|
type: 'text',
|
|
222
221
|
name: 'profilePicture',
|
|
223
222
|
message: 'profilePicture',
|
|
224
223
|
required: false,
|
|
224
|
+
skipPrompt: true,
|
|
225
225
|
},
|
|
226
226
|
{
|
|
227
227
|
type: 'text',
|
|
228
228
|
name: 'searchTsv',
|
|
229
229
|
message: 'searchTsv',
|
|
230
230
|
required: false,
|
|
231
|
+
skipPrompt: true,
|
|
231
232
|
},
|
|
232
233
|
{
|
|
233
234
|
type: 'text',
|
|
234
235
|
name: 'type',
|
|
235
236
|
message: 'type',
|
|
236
237
|
required: false,
|
|
237
|
-
|
|
238
|
-
{
|
|
239
|
-
type: 'text',
|
|
240
|
-
name: 'searchTsvRank',
|
|
241
|
-
message: 'searchTsvRank',
|
|
242
|
-
required: false,
|
|
238
|
+
skipPrompt: true,
|
|
243
239
|
},
|
|
244
240
|
]);
|
|
245
241
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
@@ -256,7 +252,6 @@ async function handleUpdate(argv, prompter) {
|
|
|
256
252
|
profilePicture: cleanedData.profilePicture,
|
|
257
253
|
searchTsv: cleanedData.searchTsv,
|
|
258
254
|
type: cleanedData.type,
|
|
259
|
-
searchTsvRank: cleanedData.searchTsvRank,
|
|
260
255
|
},
|
|
261
256
|
select: {
|
|
262
257
|
id: true,
|
package/esm/auth/cli/commands.js
CHANGED
package/esm/auth/cli/executor.js
CHANGED
package/esm/auth/cli/index.js
CHANGED
package/esm/auth/cli/utils.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
1
|
/**
|
|
3
2
|
* CLI commands for Commit
|
|
4
3
|
* @generated by @constructive-io/graphql-codegen
|
|
@@ -128,6 +127,7 @@ async function handleCreate(argv, prompter) {
|
|
|
128
127
|
name: 'message',
|
|
129
128
|
message: 'message',
|
|
130
129
|
required: false,
|
|
130
|
+
skipPrompt: true,
|
|
131
131
|
},
|
|
132
132
|
{
|
|
133
133
|
type: 'text',
|
|
@@ -146,30 +146,35 @@ async function handleCreate(argv, prompter) {
|
|
|
146
146
|
name: 'parentIds',
|
|
147
147
|
message: 'parentIds',
|
|
148
148
|
required: false,
|
|
149
|
+
skipPrompt: true,
|
|
149
150
|
},
|
|
150
151
|
{
|
|
151
152
|
type: 'text',
|
|
152
153
|
name: 'authorId',
|
|
153
154
|
message: 'authorId',
|
|
154
155
|
required: false,
|
|
156
|
+
skipPrompt: true,
|
|
155
157
|
},
|
|
156
158
|
{
|
|
157
159
|
type: 'text',
|
|
158
160
|
name: 'committerId',
|
|
159
161
|
message: 'committerId',
|
|
160
162
|
required: false,
|
|
163
|
+
skipPrompt: true,
|
|
161
164
|
},
|
|
162
165
|
{
|
|
163
166
|
type: 'text',
|
|
164
167
|
name: 'treeId',
|
|
165
168
|
message: 'treeId',
|
|
166
169
|
required: false,
|
|
170
|
+
skipPrompt: true,
|
|
167
171
|
},
|
|
168
172
|
{
|
|
169
173
|
type: 'text',
|
|
170
174
|
name: 'date',
|
|
171
175
|
message: 'date',
|
|
172
176
|
required: false,
|
|
177
|
+
skipPrompt: true,
|
|
173
178
|
},
|
|
174
179
|
]);
|
|
175
180
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
@@ -224,6 +229,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
224
229
|
name: 'message',
|
|
225
230
|
message: 'message',
|
|
226
231
|
required: false,
|
|
232
|
+
skipPrompt: true,
|
|
227
233
|
},
|
|
228
234
|
{
|
|
229
235
|
type: 'text',
|
|
@@ -242,30 +248,35 @@ async function handleUpdate(argv, prompter) {
|
|
|
242
248
|
name: 'parentIds',
|
|
243
249
|
message: 'parentIds',
|
|
244
250
|
required: false,
|
|
251
|
+
skipPrompt: true,
|
|
245
252
|
},
|
|
246
253
|
{
|
|
247
254
|
type: 'text',
|
|
248
255
|
name: 'authorId',
|
|
249
256
|
message: 'authorId',
|
|
250
257
|
required: false,
|
|
258
|
+
skipPrompt: true,
|
|
251
259
|
},
|
|
252
260
|
{
|
|
253
261
|
type: 'text',
|
|
254
262
|
name: 'committerId',
|
|
255
263
|
message: 'committerId',
|
|
256
264
|
required: false,
|
|
265
|
+
skipPrompt: true,
|
|
257
266
|
},
|
|
258
267
|
{
|
|
259
268
|
type: 'text',
|
|
260
269
|
name: 'treeId',
|
|
261
270
|
message: 'treeId',
|
|
262
271
|
required: false,
|
|
272
|
+
skipPrompt: true,
|
|
263
273
|
},
|
|
264
274
|
{
|
|
265
275
|
type: 'text',
|
|
266
276
|
name: 'date',
|
|
267
277
|
message: 'date',
|
|
268
278
|
required: false,
|
|
279
|
+
skipPrompt: true,
|
|
269
280
|
},
|
|
270
281
|
]);
|
|
271
282
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
1
|
/**
|
|
3
2
|
* Context management commands
|
|
4
3
|
* @generated by @constructive-io/graphql-codegen
|
|
@@ -46,7 +45,7 @@ async function handleSubcommand(subcommand, argv, prompter, store) {
|
|
|
46
45
|
}
|
|
47
46
|
async function handleCreate(argv, prompter, store) {
|
|
48
47
|
const { first: name, newArgv: restArgv } = extractFirst(argv);
|
|
49
|
-
const answers = await prompter.prompt({
|
|
48
|
+
const answers = (await prompter.prompt({
|
|
50
49
|
name,
|
|
51
50
|
...restArgv,
|
|
52
51
|
}, [
|
|
@@ -62,7 +61,7 @@ async function handleCreate(argv, prompter, store) {
|
|
|
62
61
|
message: 'GraphQL endpoint URL',
|
|
63
62
|
required: true,
|
|
64
63
|
},
|
|
65
|
-
]);
|
|
64
|
+
]));
|
|
66
65
|
const contextName = answers.name;
|
|
67
66
|
const endpoint = answers.endpoint;
|
|
68
67
|
store.createContext(contextName, {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
1
|
/**
|
|
3
2
|
* CLI commands for GetAllRecord
|
|
4
3
|
* @generated by @constructive-io/graphql-codegen
|
|
@@ -11,7 +10,7 @@ const fieldSchema = {
|
|
|
11
10
|
path: 'string',
|
|
12
11
|
data: 'json',
|
|
13
12
|
};
|
|
14
|
-
const usage = '\nget-all-record <command>\n\nCommands:\n list List all getAllRecord records\n
|
|
13
|
+
const usage = '\nget-all-record <command>\n\nCommands:\n list List all getAllRecord records\n create Create a new getAllRecord\n\n --help, -h Show this help message\n';
|
|
15
14
|
export default async (argv, prompter, _options) => {
|
|
16
15
|
if (argv.help || argv.h) {
|
|
17
16
|
console.log(usage);
|
|
@@ -24,7 +23,7 @@ export default async (argv, prompter, _options) => {
|
|
|
24
23
|
type: 'autocomplete',
|
|
25
24
|
name: 'subcommand',
|
|
26
25
|
message: 'What do you want to do?',
|
|
27
|
-
options: ['list', '
|
|
26
|
+
options: ['list', 'create'],
|
|
28
27
|
},
|
|
29
28
|
]);
|
|
30
29
|
return handleTableSubcommand(answer.subcommand, newArgv, prompter);
|
|
@@ -35,14 +34,8 @@ async function handleTableSubcommand(subcommand, argv, prompter) {
|
|
|
35
34
|
switch (subcommand) {
|
|
36
35
|
case 'list':
|
|
37
36
|
return handleList(argv, prompter);
|
|
38
|
-
case 'get':
|
|
39
|
-
return handleGet(argv, prompter);
|
|
40
37
|
case 'create':
|
|
41
38
|
return handleCreate(argv, prompter);
|
|
42
|
-
case 'update':
|
|
43
|
-
return handleUpdate(argv, prompter);
|
|
44
|
-
case 'delete':
|
|
45
|
-
return handleDelete(argv, prompter);
|
|
46
39
|
default:
|
|
47
40
|
console.log(usage);
|
|
48
41
|
process.exit(1);
|
|
@@ -69,36 +62,6 @@ async function handleList(_argv, _prompter) {
|
|
|
69
62
|
process.exit(1);
|
|
70
63
|
}
|
|
71
64
|
}
|
|
72
|
-
async function handleGet(argv, prompter) {
|
|
73
|
-
try {
|
|
74
|
-
const answers = await prompter.prompt(argv, [
|
|
75
|
-
{
|
|
76
|
-
type: 'text',
|
|
77
|
-
name: 'id',
|
|
78
|
-
message: 'id',
|
|
79
|
-
required: true,
|
|
80
|
-
},
|
|
81
|
-
]);
|
|
82
|
-
const client = getClient();
|
|
83
|
-
const result = await client.getAllRecord
|
|
84
|
-
.findOne({
|
|
85
|
-
id: answers.id,
|
|
86
|
-
select: {
|
|
87
|
-
path: true,
|
|
88
|
-
data: true,
|
|
89
|
-
},
|
|
90
|
-
})
|
|
91
|
-
.execute();
|
|
92
|
-
console.log(JSON.stringify(result, null, 2));
|
|
93
|
-
}
|
|
94
|
-
catch (error) {
|
|
95
|
-
console.error('Record not found.');
|
|
96
|
-
if (error instanceof Error) {
|
|
97
|
-
console.error(error.message);
|
|
98
|
-
}
|
|
99
|
-
process.exit(1);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
65
|
async function handleCreate(argv, prompter) {
|
|
103
66
|
try {
|
|
104
67
|
const rawAnswers = await prompter.prompt(argv, [
|
|
@@ -140,85 +103,3 @@ async function handleCreate(argv, prompter) {
|
|
|
140
103
|
process.exit(1);
|
|
141
104
|
}
|
|
142
105
|
}
|
|
143
|
-
async function handleUpdate(argv, prompter) {
|
|
144
|
-
try {
|
|
145
|
-
const rawAnswers = await prompter.prompt(argv, [
|
|
146
|
-
{
|
|
147
|
-
type: 'text',
|
|
148
|
-
name: 'id',
|
|
149
|
-
message: 'id',
|
|
150
|
-
required: true,
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
type: 'text',
|
|
154
|
-
name: 'path',
|
|
155
|
-
message: 'path',
|
|
156
|
-
required: false,
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
type: 'text',
|
|
160
|
-
name: 'data',
|
|
161
|
-
message: 'data',
|
|
162
|
-
required: false,
|
|
163
|
-
},
|
|
164
|
-
]);
|
|
165
|
-
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
166
|
-
const cleanedData = stripUndefined(answers, fieldSchema);
|
|
167
|
-
const client = getClient();
|
|
168
|
-
const result = await client.getAllRecord
|
|
169
|
-
.update({
|
|
170
|
-
where: {
|
|
171
|
-
id: answers.id,
|
|
172
|
-
},
|
|
173
|
-
data: {
|
|
174
|
-
path: cleanedData.path,
|
|
175
|
-
data: cleanedData.data,
|
|
176
|
-
},
|
|
177
|
-
select: {
|
|
178
|
-
path: true,
|
|
179
|
-
data: true,
|
|
180
|
-
},
|
|
181
|
-
})
|
|
182
|
-
.execute();
|
|
183
|
-
console.log(JSON.stringify(result, null, 2));
|
|
184
|
-
}
|
|
185
|
-
catch (error) {
|
|
186
|
-
console.error('Failed to update record.');
|
|
187
|
-
if (error instanceof Error) {
|
|
188
|
-
console.error(error.message);
|
|
189
|
-
}
|
|
190
|
-
process.exit(1);
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
async function handleDelete(argv, prompter) {
|
|
194
|
-
try {
|
|
195
|
-
const rawAnswers = await prompter.prompt(argv, [
|
|
196
|
-
{
|
|
197
|
-
type: 'text',
|
|
198
|
-
name: 'id',
|
|
199
|
-
message: 'id',
|
|
200
|
-
required: true,
|
|
201
|
-
},
|
|
202
|
-
]);
|
|
203
|
-
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
204
|
-
const client = getClient();
|
|
205
|
-
const result = await client.getAllRecord
|
|
206
|
-
.delete({
|
|
207
|
-
where: {
|
|
208
|
-
id: answers.id,
|
|
209
|
-
},
|
|
210
|
-
select: {
|
|
211
|
-
id: true,
|
|
212
|
-
},
|
|
213
|
-
})
|
|
214
|
-
.execute();
|
|
215
|
-
console.log(JSON.stringify(result, null, 2));
|
|
216
|
-
}
|
|
217
|
-
catch (error) {
|
|
218
|
-
console.error('Failed to delete record.');
|
|
219
|
-
if (error instanceof Error) {
|
|
220
|
-
console.error(error.message);
|
|
221
|
-
}
|
|
222
|
-
process.exit(1);
|
|
223
|
-
}
|
|
224
|
-
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
1
|
/**
|
|
3
2
|
* CLI commands for Object
|
|
4
3
|
* @generated by @constructive-io/graphql-codegen
|
|
@@ -120,12 +119,6 @@ async function handleGet(argv, prompter) {
|
|
|
120
119
|
async function handleCreate(argv, prompter) {
|
|
121
120
|
try {
|
|
122
121
|
const rawAnswers = await prompter.prompt(argv, [
|
|
123
|
-
{
|
|
124
|
-
type: 'text',
|
|
125
|
-
name: 'hashUuid',
|
|
126
|
-
message: 'hashUuid',
|
|
127
|
-
required: true,
|
|
128
|
-
},
|
|
129
122
|
{
|
|
130
123
|
type: 'text',
|
|
131
124
|
name: 'databaseId',
|
|
@@ -137,24 +130,28 @@ async function handleCreate(argv, prompter) {
|
|
|
137
130
|
name: 'kids',
|
|
138
131
|
message: 'kids',
|
|
139
132
|
required: false,
|
|
133
|
+
skipPrompt: true,
|
|
140
134
|
},
|
|
141
135
|
{
|
|
142
136
|
type: 'text',
|
|
143
137
|
name: 'ktree',
|
|
144
138
|
message: 'ktree',
|
|
145
139
|
required: false,
|
|
140
|
+
skipPrompt: true,
|
|
146
141
|
},
|
|
147
142
|
{
|
|
148
143
|
type: 'text',
|
|
149
144
|
name: 'data',
|
|
150
145
|
message: 'data',
|
|
151
146
|
required: false,
|
|
147
|
+
skipPrompt: true,
|
|
152
148
|
},
|
|
153
149
|
{
|
|
154
150
|
type: 'text',
|
|
155
151
|
name: 'frzn',
|
|
156
152
|
message: 'frzn',
|
|
157
153
|
required: false,
|
|
154
|
+
skipPrompt: true,
|
|
158
155
|
},
|
|
159
156
|
]);
|
|
160
157
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
@@ -163,7 +160,6 @@ async function handleCreate(argv, prompter) {
|
|
|
163
160
|
const result = await client.object
|
|
164
161
|
.create({
|
|
165
162
|
data: {
|
|
166
|
-
hashUuid: cleanedData.hashUuid,
|
|
167
163
|
databaseId: cleanedData.databaseId,
|
|
168
164
|
kids: cleanedData.kids,
|
|
169
165
|
ktree: cleanedData.ktree,
|
|
@@ -201,12 +197,6 @@ async function handleUpdate(argv, prompter) {
|
|
|
201
197
|
message: 'id',
|
|
202
198
|
required: true,
|
|
203
199
|
},
|
|
204
|
-
{
|
|
205
|
-
type: 'text',
|
|
206
|
-
name: 'hashUuid',
|
|
207
|
-
message: 'hashUuid',
|
|
208
|
-
required: false,
|
|
209
|
-
},
|
|
210
200
|
{
|
|
211
201
|
type: 'text',
|
|
212
202
|
name: 'databaseId',
|
|
@@ -218,24 +208,28 @@ async function handleUpdate(argv, prompter) {
|
|
|
218
208
|
name: 'kids',
|
|
219
209
|
message: 'kids',
|
|
220
210
|
required: false,
|
|
211
|
+
skipPrompt: true,
|
|
221
212
|
},
|
|
222
213
|
{
|
|
223
214
|
type: 'text',
|
|
224
215
|
name: 'ktree',
|
|
225
216
|
message: 'ktree',
|
|
226
217
|
required: false,
|
|
218
|
+
skipPrompt: true,
|
|
227
219
|
},
|
|
228
220
|
{
|
|
229
221
|
type: 'text',
|
|
230
222
|
name: 'data',
|
|
231
223
|
message: 'data',
|
|
232
224
|
required: false,
|
|
225
|
+
skipPrompt: true,
|
|
233
226
|
},
|
|
234
227
|
{
|
|
235
228
|
type: 'text',
|
|
236
229
|
name: 'frzn',
|
|
237
230
|
message: 'frzn',
|
|
238
231
|
required: false,
|
|
232
|
+
skipPrompt: true,
|
|
239
233
|
},
|
|
240
234
|
]);
|
|
241
235
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
@@ -247,7 +241,6 @@ async function handleUpdate(argv, prompter) {
|
|
|
247
241
|
id: answers.id,
|
|
248
242
|
},
|
|
249
243
|
data: {
|
|
250
|
-
hashUuid: cleanedData.hashUuid,
|
|
251
244
|
databaseId: cleanedData.databaseId,
|
|
252
245
|
kids: cleanedData.kids,
|
|
253
246
|
ktree: cleanedData.ktree,
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
1
|
/**
|
|
3
2
|
* CLI commands for Ref
|
|
4
3
|
* @generated by @constructive-io/graphql-codegen
|
|
@@ -134,6 +133,7 @@ async function handleCreate(argv, prompter) {
|
|
|
134
133
|
name: 'commitId',
|
|
135
134
|
message: 'commitId',
|
|
136
135
|
required: false,
|
|
136
|
+
skipPrompt: true,
|
|
137
137
|
},
|
|
138
138
|
]);
|
|
139
139
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
@@ -198,6 +198,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
198
198
|
name: 'commitId',
|
|
199
199
|
message: 'commitId',
|
|
200
200
|
required: false,
|
|
201
|
+
skipPrompt: true,
|
|
201
202
|
},
|
|
202
203
|
]);
|
|
203
204
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
1
|
/**
|
|
3
2
|
* CLI commands for Store
|
|
4
3
|
* @generated by @constructive-io/graphql-codegen
|
|
@@ -128,6 +127,7 @@ async function handleCreate(argv, prompter) {
|
|
|
128
127
|
name: 'hash',
|
|
129
128
|
message: 'hash',
|
|
130
129
|
required: false,
|
|
130
|
+
skipPrompt: true,
|
|
131
131
|
},
|
|
132
132
|
]);
|
|
133
133
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
@@ -185,6 +185,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
185
185
|
name: 'hash',
|
|
186
186
|
message: 'hash',
|
|
187
187
|
required: false,
|
|
188
|
+
skipPrompt: true,
|
|
188
189
|
},
|
|
189
190
|
]);
|
|
190
191
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
package/esm/objects/cli/index.js
CHANGED
package/esm/objects/cli/utils.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
1
|
/**
|
|
3
2
|
* CLI commands for Api
|
|
4
3
|
* @generated by @constructive-io/graphql-codegen
|
|
@@ -134,24 +133,28 @@ async function handleCreate(argv, prompter) {
|
|
|
134
133
|
name: 'dbname',
|
|
135
134
|
message: 'dbname',
|
|
136
135
|
required: false,
|
|
136
|
+
skipPrompt: true,
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
139
|
type: 'text',
|
|
140
140
|
name: 'roleName',
|
|
141
141
|
message: 'roleName',
|
|
142
142
|
required: false,
|
|
143
|
+
skipPrompt: true,
|
|
143
144
|
},
|
|
144
145
|
{
|
|
145
146
|
type: 'text',
|
|
146
147
|
name: 'anonRole',
|
|
147
148
|
message: 'anonRole',
|
|
148
149
|
required: false,
|
|
150
|
+
skipPrompt: true,
|
|
149
151
|
},
|
|
150
152
|
{
|
|
151
153
|
type: 'text',
|
|
152
154
|
name: 'isPublic',
|
|
153
155
|
message: 'isPublic',
|
|
154
156
|
required: false,
|
|
157
|
+
skipPrompt: true,
|
|
155
158
|
},
|
|
156
159
|
]);
|
|
157
160
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
@@ -214,24 +217,28 @@ async function handleUpdate(argv, prompter) {
|
|
|
214
217
|
name: 'dbname',
|
|
215
218
|
message: 'dbname',
|
|
216
219
|
required: false,
|
|
220
|
+
skipPrompt: true,
|
|
217
221
|
},
|
|
218
222
|
{
|
|
219
223
|
type: 'text',
|
|
220
224
|
name: 'roleName',
|
|
221
225
|
message: 'roleName',
|
|
222
226
|
required: false,
|
|
227
|
+
skipPrompt: true,
|
|
223
228
|
},
|
|
224
229
|
{
|
|
225
230
|
type: 'text',
|
|
226
231
|
name: 'anonRole',
|
|
227
232
|
message: 'anonRole',
|
|
228
233
|
required: false,
|
|
234
|
+
skipPrompt: true,
|
|
229
235
|
},
|
|
230
236
|
{
|
|
231
237
|
type: 'text',
|
|
232
238
|
name: 'isPublic',
|
|
233
239
|
message: 'isPublic',
|
|
234
240
|
required: false,
|
|
241
|
+
skipPrompt: true,
|
|
235
242
|
},
|
|
236
243
|
]);
|
|
237
244
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|