@constructive-sdk/cli 0.10.0 → 0.10.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/README.md +0 -8
- package/admin/cli/commands/app-level-requirement.js +0 -2
- package/admin/cli/commands/app-level.js +0 -2
- package/admin/cli/commands/app-permission.js +0 -2
- package/admin/cli/commands/invite.js +0 -2
- package/admin/cli/commands/membership-type.js +0 -3
- package/admin/cli/commands/org-chart-edge-grant.js +3 -3
- package/admin/cli/commands/org-chart-edge.js +0 -2
- package/admin/cli/commands/org-invite.js +0 -2
- package/admin/cli/commands/org-permission.js +0 -2
- package/admin/orm/input-types.d.ts +33 -127
- package/auth/cli/commands/audit-log.js +0 -2
- package/auth/cli/commands/connected-account.js +0 -3
- package/auth/cli/commands/crypto-address.js +0 -2
- package/auth/cli/commands/phone-number.js +0 -3
- package/auth/cli/commands.js +7 -7
- package/auth/cli/executor.d.ts +3 -3
- package/auth/orm/index.d.ts +6 -6
- package/auth/orm/index.js +6 -6
- package/auth/orm/input-types.d.ts +279 -327
- package/auth/orm/input-types.js +9 -1
- package/auth/orm/models/index.d.ts +3 -3
- package/auth/orm/models/index.js +7 -7
- package/esm/admin/cli/commands/app-level-requirement.js +0 -2
- package/esm/admin/cli/commands/app-level.js +0 -2
- package/esm/admin/cli/commands/app-permission.js +0 -2
- package/esm/admin/cli/commands/invite.js +0 -2
- package/esm/admin/cli/commands/membership-type.js +0 -3
- package/esm/admin/cli/commands/org-chart-edge-grant.js +3 -3
- package/esm/admin/cli/commands/org-chart-edge.js +0 -2
- package/esm/admin/cli/commands/org-invite.js +0 -2
- package/esm/admin/cli/commands/org-permission.js +0 -2
- package/esm/admin/orm/input-types.d.ts +33 -127
- package/esm/auth/cli/commands/audit-log.js +0 -2
- package/esm/auth/cli/commands/connected-account.js +0 -3
- package/esm/auth/cli/commands/crypto-address.js +0 -2
- package/esm/auth/cli/commands/phone-number.js +0 -3
- package/esm/auth/cli/commands.js +7 -7
- package/esm/auth/cli/executor.d.ts +3 -3
- package/esm/auth/orm/index.d.ts +6 -6
- package/esm/auth/orm/index.js +6 -6
- package/esm/auth/orm/input-types.d.ts +279 -327
- package/esm/auth/orm/input-types.js +9 -1
- package/esm/auth/orm/models/index.d.ts +3 -3
- package/esm/auth/orm/models/index.js +3 -3
- package/esm/index.d.ts +3 -3
- package/esm/index.js +3 -3
- package/esm/objects/cli/commands/commit.js +0 -2
- package/esm/objects/cli/commands/ref.js +0 -2
- package/esm/objects/cli/commands/store.js +0 -2
- package/esm/objects/orm/input-types.d.ts +17 -48
- package/esm/public/cli/commands/accept-database-transfer.d.ts +8 -0
- package/esm/public/cli/commands/accept-database-transfer.js +34 -0
- package/esm/public/cli/commands/api-module.js +0 -2
- package/esm/public/cli/commands/api.js +0 -5
- package/esm/public/cli/commands/app-level-requirement.js +0 -2
- package/esm/public/cli/commands/app-level.js +0 -2
- package/esm/public/cli/commands/app-permission.js +0 -2
- package/esm/public/cli/commands/app.js +0 -4
- package/esm/public/cli/commands/ast-migration.js +0 -2
- package/esm/public/cli/commands/audit-log.js +0 -2
- package/esm/public/cli/commands/blueprint-template.d.ts +8 -0
- package/esm/public/cli/commands/blueprint-template.js +549 -0
- package/esm/public/cli/commands/{uuid-module.d.ts → blueprint.d.ts} +1 -1
- package/esm/public/cli/commands/blueprint.js +484 -0
- package/esm/public/cli/commands/cancel-database-transfer.d.ts +8 -0
- package/esm/public/cli/commands/cancel-database-transfer.js +34 -0
- package/esm/public/cli/commands/check-constraint.js +0 -4
- package/esm/public/cli/commands/commit.js +0 -2
- package/esm/public/cli/commands/connected-account.js +0 -3
- package/esm/public/cli/commands/connected-accounts-module.js +0 -2
- package/esm/public/cli/commands/construct-blueprint.d.ts +8 -0
- package/esm/public/cli/commands/construct-blueprint.js +34 -0
- package/esm/public/cli/commands/copy-template-to-blueprint.d.ts +8 -0
- package/esm/public/cli/commands/copy-template-to-blueprint.js +34 -0
- package/esm/public/cli/commands/crypto-address.js +0 -2
- package/esm/public/cli/commands/crypto-addresses-module.js +0 -3
- package/esm/public/cli/commands/crypto-auth-module.js +0 -7
- package/esm/public/cli/commands/database-provision-module.js +0 -6
- package/esm/public/cli/commands/database-transfer.d.ts +8 -0
- package/esm/public/cli/commands/database-transfer.js +425 -0
- package/esm/public/cli/commands/database.js +0 -4
- package/esm/public/cli/commands/default-privilege.js +0 -4
- package/esm/public/cli/commands/denormalized-table-field.js +0 -2
- package/esm/public/cli/commands/emails-module.js +0 -2
- package/esm/public/cli/commands/embedding-chunk.d.ts +8 -0
- package/esm/public/cli/commands/embedding-chunk.js +513 -0
- package/esm/public/cli/commands/encrypted-secrets-module.js +0 -2
- package/{public/cli/commands/uuid-module.d.ts → esm/public/cli/commands/enum.d.ts} +1 -1
- package/esm/public/cli/commands/{uuid-module.js → enum.js} +175 -33
- package/esm/public/cli/commands/field-module.js +0 -2
- package/esm/public/cli/commands/field.js +21 -7
- package/esm/public/cli/commands/foreign-key-constraint.js +0 -7
- package/esm/public/cli/commands/hierarchy-module.js +0 -11
- package/esm/public/cli/commands/index.js +0 -4
- package/esm/public/cli/commands/invite.js +0 -2
- package/esm/public/cli/commands/invites-module.js +0 -5
- package/esm/public/cli/commands/levels-module.js +0 -16
- package/esm/public/cli/commands/limits-module.js +0 -10
- package/esm/public/cli/commands/membership-type.js +0 -3
- package/esm/public/cli/commands/membership-types-module.js +0 -2
- package/esm/public/cli/commands/memberships-module.js +0 -13
- package/esm/public/cli/commands/node-type-registry.js +0 -6
- package/esm/public/cli/commands/org-chart-edge-grant.js +3 -3
- package/esm/public/cli/commands/org-chart-edge.js +0 -2
- package/esm/public/cli/commands/org-invite.js +0 -2
- package/esm/public/cli/commands/org-permission.js +0 -2
- package/esm/public/cli/commands/permissions-module.js +0 -8
- package/esm/public/cli/commands/phone-number.js +0 -3
- package/esm/public/cli/commands/phone-numbers-module.js +0 -2
- package/esm/public/cli/commands/policy.js +0 -6
- package/esm/public/cli/commands/primary-key-constraint.js +0 -4
- package/esm/public/cli/commands/profiles-module.js +0 -6
- package/esm/public/cli/commands/ref.js +0 -2
- package/esm/public/cli/commands/reject-database-transfer.d.ts +8 -0
- package/esm/public/cli/commands/reject-database-transfer.js +34 -0
- package/esm/public/cli/commands/relation-provision.js +63 -11
- package/esm/public/cli/commands/rls-module.js +0 -5
- package/esm/public/cli/commands/schema-grant.js +0 -2
- package/esm/public/cli/commands/schema.js +0 -6
- package/esm/public/cli/commands/secrets-module.js +0 -2
- package/esm/public/cli/commands/secure-table-provision.js +0 -6
- package/esm/public/cli/commands/sessions-module.js +0 -4
- package/esm/public/cli/commands/site-metadatum.js +0 -3
- package/esm/public/cli/commands/site-module.js +0 -2
- package/esm/public/cli/commands/site.js +0 -4
- package/esm/public/cli/commands/sql-migration.js +0 -7
- package/esm/public/cli/commands/store.js +0 -2
- package/esm/public/cli/commands/table-grant.js +0 -3
- package/esm/public/cli/commands/table-template-module.js +0 -3
- package/esm/public/cli/commands/table.js +0 -7
- package/esm/public/cli/commands/trigger-function.js +0 -3
- package/esm/public/cli/commands/trigger.js +0 -5
- package/esm/public/cli/commands/unique-constraint.js +0 -5
- package/esm/public/cli/commands/user-auth-module.js +0 -17
- package/esm/public/cli/commands/users-module.js +0 -3
- package/esm/public/cli/commands/view-grant.js +0 -3
- package/esm/public/cli/commands/view-rule.js +0 -4
- package/esm/public/cli/commands/view.js +0 -5
- package/esm/public/cli/commands.js +53 -35
- package/esm/public/cli/executor.d.ts +68 -39
- package/esm/public/orm/index.d.ts +81 -48
- package/esm/public/orm/index.js +26 -18
- package/esm/public/orm/input-types.d.ts +2447 -2980
- package/esm/public/orm/input-types.js +26 -1
- package/esm/public/orm/models/blueprint.d.ts +56 -0
- package/esm/public/orm/models/blueprint.js +94 -0
- package/esm/public/orm/models/blueprintTemplate.d.ts +56 -0
- package/esm/public/orm/models/blueprintTemplate.js +94 -0
- package/esm/public/orm/models/databaseTransfer.d.ts +56 -0
- package/esm/public/orm/models/databaseTransfer.js +94 -0
- package/esm/public/orm/models/embeddingChunk.d.ts +56 -0
- package/esm/public/orm/models/embeddingChunk.js +94 -0
- package/esm/public/orm/models/enum.d.ts +56 -0
- package/esm/public/orm/models/{uuidModule.js → enum.js} +23 -23
- package/esm/public/orm/models/index.d.ts +13 -9
- package/esm/public/orm/models/index.js +13 -9
- package/esm/public/orm/mutation/index.d.ts +98 -50
- package/esm/public/orm/mutation/index.js +126 -66
- package/index.d.ts +3 -3
- package/index.js +8 -8
- package/objects/cli/commands/commit.js +0 -2
- package/objects/cli/commands/ref.js +0 -2
- package/objects/cli/commands/store.js +0 -2
- package/objects/orm/input-types.d.ts +17 -48
- package/package.json +3 -3
- package/public/cli/commands/accept-database-transfer.d.ts +8 -0
- package/public/cli/commands/accept-database-transfer.js +36 -0
- package/public/cli/commands/api-module.js +0 -2
- package/public/cli/commands/api.js +0 -5
- package/public/cli/commands/app-level-requirement.js +0 -2
- package/public/cli/commands/app-level.js +0 -2
- package/public/cli/commands/app-permission.js +0 -2
- package/public/cli/commands/app.js +0 -4
- package/public/cli/commands/ast-migration.js +0 -2
- package/public/cli/commands/audit-log.js +0 -2
- package/public/cli/commands/blueprint-template.d.ts +8 -0
- package/public/cli/commands/blueprint-template.js +551 -0
- package/public/cli/commands/blueprint.d.ts +8 -0
- package/public/cli/commands/blueprint.js +486 -0
- package/public/cli/commands/cancel-database-transfer.d.ts +8 -0
- package/public/cli/commands/cancel-database-transfer.js +36 -0
- package/public/cli/commands/check-constraint.js +0 -4
- package/public/cli/commands/commit.js +0 -2
- package/public/cli/commands/connected-account.js +0 -3
- package/public/cli/commands/connected-accounts-module.js +0 -2
- package/public/cli/commands/construct-blueprint.d.ts +8 -0
- package/public/cli/commands/construct-blueprint.js +36 -0
- package/public/cli/commands/copy-template-to-blueprint.d.ts +8 -0
- package/public/cli/commands/copy-template-to-blueprint.js +36 -0
- package/public/cli/commands/crypto-address.js +0 -2
- package/public/cli/commands/crypto-addresses-module.js +0 -3
- package/public/cli/commands/crypto-auth-module.js +0 -7
- package/public/cli/commands/database-provision-module.js +0 -6
- package/public/cli/commands/database-transfer.d.ts +8 -0
- package/public/cli/commands/database-transfer.js +427 -0
- package/public/cli/commands/database.js +0 -4
- package/public/cli/commands/default-privilege.js +0 -4
- package/public/cli/commands/denormalized-table-field.js +0 -2
- package/public/cli/commands/emails-module.js +0 -2
- package/public/cli/commands/embedding-chunk.d.ts +8 -0
- package/public/cli/commands/embedding-chunk.js +515 -0
- package/public/cli/commands/encrypted-secrets-module.js +0 -2
- package/public/cli/commands/enum.d.ts +8 -0
- package/public/cli/commands/{uuid-module.js → enum.js} +175 -33
- package/public/cli/commands/field-module.js +0 -2
- package/public/cli/commands/field.js +21 -7
- package/public/cli/commands/foreign-key-constraint.js +0 -7
- package/public/cli/commands/hierarchy-module.js +0 -11
- package/public/cli/commands/index.js +0 -4
- package/public/cli/commands/invite.js +0 -2
- package/public/cli/commands/invites-module.js +0 -5
- package/public/cli/commands/levels-module.js +0 -16
- package/public/cli/commands/limits-module.js +0 -10
- package/public/cli/commands/membership-type.js +0 -3
- package/public/cli/commands/membership-types-module.js +0 -2
- package/public/cli/commands/memberships-module.js +0 -13
- package/public/cli/commands/node-type-registry.js +0 -6
- package/public/cli/commands/org-chart-edge-grant.js +3 -3
- package/public/cli/commands/org-chart-edge.js +0 -2
- package/public/cli/commands/org-invite.js +0 -2
- package/public/cli/commands/org-permission.js +0 -2
- package/public/cli/commands/permissions-module.js +0 -8
- package/public/cli/commands/phone-number.js +0 -3
- package/public/cli/commands/phone-numbers-module.js +0 -2
- package/public/cli/commands/policy.js +0 -6
- package/public/cli/commands/primary-key-constraint.js +0 -4
- package/public/cli/commands/profiles-module.js +0 -6
- package/public/cli/commands/ref.js +0 -2
- package/public/cli/commands/reject-database-transfer.d.ts +8 -0
- package/public/cli/commands/reject-database-transfer.js +36 -0
- package/public/cli/commands/relation-provision.js +63 -11
- package/public/cli/commands/rls-module.js +0 -5
- package/public/cli/commands/schema-grant.js +0 -2
- package/public/cli/commands/schema.js +0 -6
- package/public/cli/commands/secrets-module.js +0 -2
- package/public/cli/commands/secure-table-provision.js +0 -6
- package/public/cli/commands/sessions-module.js +0 -4
- package/public/cli/commands/site-metadatum.js +0 -3
- package/public/cli/commands/site-module.js +0 -2
- package/public/cli/commands/site.js +0 -4
- package/public/cli/commands/sql-migration.js +0 -7
- package/public/cli/commands/store.js +0 -2
- package/public/cli/commands/table-grant.js +0 -3
- package/public/cli/commands/table-template-module.js +0 -3
- package/public/cli/commands/table.js +0 -7
- package/public/cli/commands/trigger-function.js +0 -3
- package/public/cli/commands/trigger.js +0 -5
- package/public/cli/commands/unique-constraint.js +0 -5
- package/public/cli/commands/user-auth-module.js +0 -17
- package/public/cli/commands/users-module.js +0 -3
- package/public/cli/commands/view-grant.js +0 -3
- package/public/cli/commands/view-rule.js +0 -4
- package/public/cli/commands/view.js +0 -5
- package/public/cli/commands.js +53 -35
- package/public/cli/executor.d.ts +68 -39
- package/public/orm/index.d.ts +81 -48
- package/public/orm/index.js +26 -18
- package/public/orm/input-types.d.ts +2447 -2980
- package/public/orm/input-types.js +26 -1
- package/public/orm/models/blueprint.d.ts +56 -0
- package/public/orm/models/blueprint.js +98 -0
- package/public/orm/models/blueprintTemplate.d.ts +56 -0
- package/public/orm/models/blueprintTemplate.js +98 -0
- package/public/orm/models/databaseTransfer.d.ts +56 -0
- package/public/orm/models/databaseTransfer.js +98 -0
- package/public/orm/models/embeddingChunk.d.ts +56 -0
- package/public/orm/models/embeddingChunk.js +98 -0
- package/public/orm/models/enum.d.ts +56 -0
- package/public/orm/models/{uuidModule.js → enum.js} +25 -25
- package/public/orm/models/index.d.ts +13 -9
- package/public/orm/models/index.js +29 -21
- package/public/orm/mutation/index.d.ts +98 -50
- package/public/orm/mutation/index.js +126 -66
- package/esm/public/orm/models/uuidModule.d.ts +0 -56
- package/public/orm/models/uuidModule.d.ts +0 -56
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* CLI commands for
|
|
2
|
+
* CLI commands for Enum
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
@@ -10,13 +10,17 @@ const fieldSchema = {
|
|
|
10
10
|
id: 'uuid',
|
|
11
11
|
databaseId: 'uuid',
|
|
12
12
|
schemaId: 'uuid',
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
name: 'string',
|
|
14
|
+
label: 'string',
|
|
15
|
+
description: 'string',
|
|
16
|
+
values: 'string',
|
|
17
|
+
smartTags: 'json',
|
|
18
|
+
category: 'string',
|
|
19
|
+
module: 'string',
|
|
20
|
+
scope: 'int',
|
|
21
|
+
tags: 'string',
|
|
18
22
|
};
|
|
19
|
-
const usage = '\
|
|
23
|
+
const usage = '\nenum <command>\n\nCommands:\n list List all enum records\n get Get a enum by ID\n create Create a new enum\n update Update an existing enum\n delete Delete a enum\n\n --help, -h Show this help message\n';
|
|
20
24
|
export default async (argv, prompter, _options) => {
|
|
21
25
|
if (argv.help || argv.h) {
|
|
22
26
|
console.log(usage);
|
|
@@ -56,14 +60,21 @@ async function handleTableSubcommand(subcommand, argv, prompter) {
|
|
|
56
60
|
async function handleList(_argv, _prompter) {
|
|
57
61
|
try {
|
|
58
62
|
const client = getClient();
|
|
59
|
-
const result = await client.
|
|
63
|
+
const result = await client.enum
|
|
60
64
|
.findMany({
|
|
61
65
|
select: {
|
|
62
66
|
id: true,
|
|
63
67
|
databaseId: true,
|
|
64
68
|
schemaId: true,
|
|
65
|
-
|
|
66
|
-
|
|
69
|
+
name: true,
|
|
70
|
+
label: true,
|
|
71
|
+
description: true,
|
|
72
|
+
values: true,
|
|
73
|
+
smartTags: true,
|
|
74
|
+
category: true,
|
|
75
|
+
module: true,
|
|
76
|
+
scope: true,
|
|
77
|
+
tags: true,
|
|
67
78
|
},
|
|
68
79
|
})
|
|
69
80
|
.execute();
|
|
@@ -88,15 +99,22 @@ async function handleGet(argv, prompter) {
|
|
|
88
99
|
},
|
|
89
100
|
]);
|
|
90
101
|
const client = getClient();
|
|
91
|
-
const result = await client.
|
|
102
|
+
const result = await client.enum
|
|
92
103
|
.findOne({
|
|
93
104
|
id: answers.id,
|
|
94
105
|
select: {
|
|
95
106
|
id: true,
|
|
96
107
|
databaseId: true,
|
|
97
108
|
schemaId: true,
|
|
98
|
-
|
|
99
|
-
|
|
109
|
+
name: true,
|
|
110
|
+
label: true,
|
|
111
|
+
description: true,
|
|
112
|
+
values: true,
|
|
113
|
+
smartTags: true,
|
|
114
|
+
category: true,
|
|
115
|
+
module: true,
|
|
116
|
+
scope: true,
|
|
117
|
+
tags: true,
|
|
100
118
|
},
|
|
101
119
|
})
|
|
102
120
|
.execute();
|
|
@@ -123,40 +141,102 @@ async function handleCreate(argv, prompter) {
|
|
|
123
141
|
type: 'text',
|
|
124
142
|
name: 'schemaId',
|
|
125
143
|
message: 'schemaId',
|
|
144
|
+
required: true,
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
type: 'text',
|
|
148
|
+
name: 'name',
|
|
149
|
+
message: 'name',
|
|
150
|
+
required: true,
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
type: 'text',
|
|
154
|
+
name: 'label',
|
|
155
|
+
message: 'label',
|
|
126
156
|
required: false,
|
|
127
157
|
skipPrompt: true,
|
|
128
158
|
},
|
|
129
159
|
{
|
|
130
160
|
type: 'text',
|
|
131
|
-
name: '
|
|
132
|
-
message: '
|
|
161
|
+
name: 'description',
|
|
162
|
+
message: 'description',
|
|
133
163
|
required: false,
|
|
134
164
|
skipPrompt: true,
|
|
135
165
|
},
|
|
136
166
|
{
|
|
137
167
|
type: 'text',
|
|
138
|
-
name: '
|
|
139
|
-
message: '
|
|
140
|
-
required:
|
|
168
|
+
name: 'values',
|
|
169
|
+
message: 'values',
|
|
170
|
+
required: false,
|
|
171
|
+
skipPrompt: true,
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
type: 'json',
|
|
175
|
+
name: 'smartTags',
|
|
176
|
+
message: 'smartTags',
|
|
177
|
+
required: false,
|
|
178
|
+
skipPrompt: true,
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
type: 'text',
|
|
182
|
+
name: 'category',
|
|
183
|
+
message: 'category',
|
|
184
|
+
required: false,
|
|
185
|
+
skipPrompt: true,
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
type: 'text',
|
|
189
|
+
name: 'module',
|
|
190
|
+
message: 'module',
|
|
191
|
+
required: false,
|
|
192
|
+
skipPrompt: true,
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
type: 'text',
|
|
196
|
+
name: 'scope',
|
|
197
|
+
message: 'scope',
|
|
198
|
+
required: false,
|
|
199
|
+
skipPrompt: true,
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
type: 'text',
|
|
203
|
+
name: 'tags',
|
|
204
|
+
message: 'tags',
|
|
205
|
+
required: false,
|
|
206
|
+
skipPrompt: true,
|
|
141
207
|
},
|
|
142
208
|
]);
|
|
143
209
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
144
210
|
const cleanedData = stripUndefined(answers, fieldSchema);
|
|
145
211
|
const client = getClient();
|
|
146
|
-
const result = await client.
|
|
212
|
+
const result = await client.enum
|
|
147
213
|
.create({
|
|
148
214
|
data: {
|
|
149
215
|
databaseId: cleanedData.databaseId,
|
|
150
216
|
schemaId: cleanedData.schemaId,
|
|
151
|
-
|
|
152
|
-
|
|
217
|
+
name: cleanedData.name,
|
|
218
|
+
label: cleanedData.label,
|
|
219
|
+
description: cleanedData.description,
|
|
220
|
+
values: cleanedData.values,
|
|
221
|
+
smartTags: cleanedData.smartTags,
|
|
222
|
+
category: cleanedData.category,
|
|
223
|
+
module: cleanedData.module,
|
|
224
|
+
scope: cleanedData.scope,
|
|
225
|
+
tags: cleanedData.tags,
|
|
153
226
|
},
|
|
154
227
|
select: {
|
|
155
228
|
id: true,
|
|
156
229
|
databaseId: true,
|
|
157
230
|
schemaId: true,
|
|
158
|
-
|
|
159
|
-
|
|
231
|
+
name: true,
|
|
232
|
+
label: true,
|
|
233
|
+
description: true,
|
|
234
|
+
values: true,
|
|
235
|
+
smartTags: true,
|
|
236
|
+
category: true,
|
|
237
|
+
module: true,
|
|
238
|
+
scope: true,
|
|
239
|
+
tags: true,
|
|
160
240
|
},
|
|
161
241
|
})
|
|
162
242
|
.execute();
|
|
@@ -190,26 +270,74 @@ async function handleUpdate(argv, prompter) {
|
|
|
190
270
|
name: 'schemaId',
|
|
191
271
|
message: 'schemaId',
|
|
192
272
|
required: false,
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
type: 'text',
|
|
276
|
+
name: 'name',
|
|
277
|
+
message: 'name',
|
|
278
|
+
required: false,
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
type: 'text',
|
|
282
|
+
name: 'label',
|
|
283
|
+
message: 'label',
|
|
284
|
+
required: false,
|
|
285
|
+
skipPrompt: true,
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
type: 'text',
|
|
289
|
+
name: 'description',
|
|
290
|
+
message: 'description',
|
|
291
|
+
required: false,
|
|
292
|
+
skipPrompt: true,
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
type: 'text',
|
|
296
|
+
name: 'values',
|
|
297
|
+
message: 'values',
|
|
298
|
+
required: false,
|
|
299
|
+
skipPrompt: true,
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
type: 'json',
|
|
303
|
+
name: 'smartTags',
|
|
304
|
+
message: 'smartTags',
|
|
305
|
+
required: false,
|
|
193
306
|
skipPrompt: true,
|
|
194
307
|
},
|
|
195
308
|
{
|
|
196
309
|
type: 'text',
|
|
197
|
-
name: '
|
|
198
|
-
message: '
|
|
310
|
+
name: 'category',
|
|
311
|
+
message: 'category',
|
|
199
312
|
required: false,
|
|
200
313
|
skipPrompt: true,
|
|
201
314
|
},
|
|
202
315
|
{
|
|
203
316
|
type: 'text',
|
|
204
|
-
name: '
|
|
205
|
-
message: '
|
|
317
|
+
name: 'module',
|
|
318
|
+
message: 'module',
|
|
206
319
|
required: false,
|
|
320
|
+
skipPrompt: true,
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
type: 'text',
|
|
324
|
+
name: 'scope',
|
|
325
|
+
message: 'scope',
|
|
326
|
+
required: false,
|
|
327
|
+
skipPrompt: true,
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
type: 'text',
|
|
331
|
+
name: 'tags',
|
|
332
|
+
message: 'tags',
|
|
333
|
+
required: false,
|
|
334
|
+
skipPrompt: true,
|
|
207
335
|
},
|
|
208
336
|
]);
|
|
209
337
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
210
338
|
const cleanedData = stripUndefined(answers, fieldSchema);
|
|
211
339
|
const client = getClient();
|
|
212
|
-
const result = await client.
|
|
340
|
+
const result = await client.enum
|
|
213
341
|
.update({
|
|
214
342
|
where: {
|
|
215
343
|
id: answers.id,
|
|
@@ -217,15 +345,29 @@ async function handleUpdate(argv, prompter) {
|
|
|
217
345
|
data: {
|
|
218
346
|
databaseId: cleanedData.databaseId,
|
|
219
347
|
schemaId: cleanedData.schemaId,
|
|
220
|
-
|
|
221
|
-
|
|
348
|
+
name: cleanedData.name,
|
|
349
|
+
label: cleanedData.label,
|
|
350
|
+
description: cleanedData.description,
|
|
351
|
+
values: cleanedData.values,
|
|
352
|
+
smartTags: cleanedData.smartTags,
|
|
353
|
+
category: cleanedData.category,
|
|
354
|
+
module: cleanedData.module,
|
|
355
|
+
scope: cleanedData.scope,
|
|
356
|
+
tags: cleanedData.tags,
|
|
222
357
|
},
|
|
223
358
|
select: {
|
|
224
359
|
id: true,
|
|
225
360
|
databaseId: true,
|
|
226
361
|
schemaId: true,
|
|
227
|
-
|
|
228
|
-
|
|
362
|
+
name: true,
|
|
363
|
+
label: true,
|
|
364
|
+
description: true,
|
|
365
|
+
values: true,
|
|
366
|
+
smartTags: true,
|
|
367
|
+
category: true,
|
|
368
|
+
module: true,
|
|
369
|
+
scope: true,
|
|
370
|
+
tags: true,
|
|
229
371
|
},
|
|
230
372
|
})
|
|
231
373
|
.execute();
|
|
@@ -251,7 +393,7 @@ async function handleDelete(argv, prompter) {
|
|
|
251
393
|
]);
|
|
252
394
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
253
395
|
const client = getClient();
|
|
254
|
-
const result = await client.
|
|
396
|
+
const result = await client.enum
|
|
255
397
|
.delete({
|
|
256
398
|
where: {
|
|
257
399
|
id: answers.id,
|
|
@@ -16,8 +16,6 @@ const fieldSchema = {
|
|
|
16
16
|
data: 'json',
|
|
17
17
|
triggers: 'string',
|
|
18
18
|
functions: 'string',
|
|
19
|
-
nodeTypeTrgmSimilarity: 'float',
|
|
20
|
-
searchScore: 'float',
|
|
21
19
|
};
|
|
22
20
|
const usage = '\nfield-module <command>\n\nCommands:\n list List all fieldModule records\n get Get a fieldModule by ID\n create Create a new fieldModule\n update Update an existing fieldModule\n delete Delete a fieldModule\n\n --help, -h Show this help message\n';
|
|
23
21
|
export default async (argv, prompter, _options) => {
|
|
@@ -15,6 +15,7 @@ const fieldSchema = {
|
|
|
15
15
|
description: 'string',
|
|
16
16
|
smartTags: 'json',
|
|
17
17
|
isRequired: 'boolean',
|
|
18
|
+
apiRequired: 'boolean',
|
|
18
19
|
defaultValue: 'string',
|
|
19
20
|
defaultValueAst: 'json',
|
|
20
21
|
isHidden: 'boolean',
|
|
@@ -31,13 +32,6 @@ const fieldSchema = {
|
|
|
31
32
|
scope: 'int',
|
|
32
33
|
createdAt: 'string',
|
|
33
34
|
updatedAt: 'string',
|
|
34
|
-
nameTrgmSimilarity: 'float',
|
|
35
|
-
labelTrgmSimilarity: 'float',
|
|
36
|
-
descriptionTrgmSimilarity: 'float',
|
|
37
|
-
defaultValueTrgmSimilarity: 'float',
|
|
38
|
-
regexpTrgmSimilarity: 'float',
|
|
39
|
-
moduleTrgmSimilarity: 'float',
|
|
40
|
-
searchScore: 'float',
|
|
41
35
|
};
|
|
42
36
|
const usage = '\nfield <command>\n\nCommands:\n list List all field records\n get Get a field by ID\n create Create a new field\n update Update an existing field\n delete Delete a field\n\n --help, -h Show this help message\n';
|
|
43
37
|
export default async (argv, prompter, _options) => {
|
|
@@ -90,6 +84,7 @@ async function handleList(_argv, _prompter) {
|
|
|
90
84
|
description: true,
|
|
91
85
|
smartTags: true,
|
|
92
86
|
isRequired: true,
|
|
87
|
+
apiRequired: true,
|
|
93
88
|
defaultValue: true,
|
|
94
89
|
defaultValueAst: true,
|
|
95
90
|
isHidden: true,
|
|
@@ -142,6 +137,7 @@ async function handleGet(argv, prompter) {
|
|
|
142
137
|
description: true,
|
|
143
138
|
smartTags: true,
|
|
144
139
|
isRequired: true,
|
|
140
|
+
apiRequired: true,
|
|
145
141
|
defaultValue: true,
|
|
146
142
|
defaultValueAst: true,
|
|
147
143
|
isHidden: true,
|
|
@@ -221,6 +217,13 @@ async function handleCreate(argv, prompter) {
|
|
|
221
217
|
required: false,
|
|
222
218
|
skipPrompt: true,
|
|
223
219
|
},
|
|
220
|
+
{
|
|
221
|
+
type: 'boolean',
|
|
222
|
+
name: 'apiRequired',
|
|
223
|
+
message: 'apiRequired',
|
|
224
|
+
required: false,
|
|
225
|
+
skipPrompt: true,
|
|
226
|
+
},
|
|
224
227
|
{
|
|
225
228
|
type: 'text',
|
|
226
229
|
name: 'defaultValue',
|
|
@@ -332,6 +335,7 @@ async function handleCreate(argv, prompter) {
|
|
|
332
335
|
description: cleanedData.description,
|
|
333
336
|
smartTags: cleanedData.smartTags,
|
|
334
337
|
isRequired: cleanedData.isRequired,
|
|
338
|
+
apiRequired: cleanedData.apiRequired,
|
|
335
339
|
defaultValue: cleanedData.defaultValue,
|
|
336
340
|
defaultValueAst: cleanedData.defaultValueAst,
|
|
337
341
|
isHidden: cleanedData.isHidden,
|
|
@@ -356,6 +360,7 @@ async function handleCreate(argv, prompter) {
|
|
|
356
360
|
description: true,
|
|
357
361
|
smartTags: true,
|
|
358
362
|
isRequired: true,
|
|
363
|
+
apiRequired: true,
|
|
359
364
|
defaultValue: true,
|
|
360
365
|
defaultValueAst: true,
|
|
361
366
|
isHidden: true,
|
|
@@ -441,6 +446,13 @@ async function handleUpdate(argv, prompter) {
|
|
|
441
446
|
required: false,
|
|
442
447
|
skipPrompt: true,
|
|
443
448
|
},
|
|
449
|
+
{
|
|
450
|
+
type: 'boolean',
|
|
451
|
+
name: 'apiRequired',
|
|
452
|
+
message: 'apiRequired',
|
|
453
|
+
required: false,
|
|
454
|
+
skipPrompt: true,
|
|
455
|
+
},
|
|
444
456
|
{
|
|
445
457
|
type: 'text',
|
|
446
458
|
name: 'defaultValue',
|
|
@@ -555,6 +567,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
555
567
|
description: cleanedData.description,
|
|
556
568
|
smartTags: cleanedData.smartTags,
|
|
557
569
|
isRequired: cleanedData.isRequired,
|
|
570
|
+
apiRequired: cleanedData.apiRequired,
|
|
558
571
|
defaultValue: cleanedData.defaultValue,
|
|
559
572
|
defaultValueAst: cleanedData.defaultValueAst,
|
|
560
573
|
isHidden: cleanedData.isHidden,
|
|
@@ -579,6 +592,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
579
592
|
description: true,
|
|
580
593
|
smartTags: true,
|
|
581
594
|
isRequired: true,
|
|
595
|
+
apiRequired: true,
|
|
582
596
|
defaultValue: true,
|
|
583
597
|
defaultValueAst: true,
|
|
584
598
|
isHidden: true,
|
|
@@ -25,13 +25,6 @@ const fieldSchema = {
|
|
|
25
25
|
tags: 'string',
|
|
26
26
|
createdAt: 'string',
|
|
27
27
|
updatedAt: 'string',
|
|
28
|
-
nameTrgmSimilarity: 'float',
|
|
29
|
-
descriptionTrgmSimilarity: 'float',
|
|
30
|
-
typeTrgmSimilarity: 'float',
|
|
31
|
-
deleteActionTrgmSimilarity: 'float',
|
|
32
|
-
updateActionTrgmSimilarity: 'float',
|
|
33
|
-
moduleTrgmSimilarity: 'float',
|
|
34
|
-
searchScore: 'float',
|
|
35
28
|
};
|
|
36
29
|
const usage = '\nforeign-key-constraint <command>\n\nCommands:\n list List all foreignKeyConstraint records\n get Get a foreignKeyConstraint by ID\n create Create a new foreignKeyConstraint\n update Update an existing foreignKeyConstraint\n delete Delete a foreignKeyConstraint\n\n --help, -h Show this help message\n';
|
|
37
30
|
export default async (argv, prompter, _options) => {
|
|
@@ -27,17 +27,6 @@ const fieldSchema = {
|
|
|
27
27
|
getManagersFunction: 'string',
|
|
28
28
|
isManagerOfFunction: 'string',
|
|
29
29
|
createdAt: 'string',
|
|
30
|
-
chartEdgesTableNameTrgmSimilarity: 'float',
|
|
31
|
-
hierarchySprtTableNameTrgmSimilarity: 'float',
|
|
32
|
-
chartEdgeGrantsTableNameTrgmSimilarity: 'float',
|
|
33
|
-
prefixTrgmSimilarity: 'float',
|
|
34
|
-
privateSchemaNameTrgmSimilarity: 'float',
|
|
35
|
-
sprtTableNameTrgmSimilarity: 'float',
|
|
36
|
-
rebuildHierarchyFunctionTrgmSimilarity: 'float',
|
|
37
|
-
getSubordinatesFunctionTrgmSimilarity: 'float',
|
|
38
|
-
getManagersFunctionTrgmSimilarity: 'float',
|
|
39
|
-
isManagerOfFunctionTrgmSimilarity: 'float',
|
|
40
|
-
searchScore: 'float',
|
|
41
30
|
};
|
|
42
31
|
const usage = '\nhierarchy-module <command>\n\nCommands:\n list List all hierarchyModule records\n get Get a hierarchyModule by ID\n create Create a new hierarchyModule\n update Update an existing hierarchyModule\n delete Delete a hierarchyModule\n\n --help, -h Show this help message\n';
|
|
43
32
|
export default async (argv, prompter, _options) => {
|
|
@@ -26,10 +26,6 @@ const fieldSchema = {
|
|
|
26
26
|
tags: 'string',
|
|
27
27
|
createdAt: 'string',
|
|
28
28
|
updatedAt: 'string',
|
|
29
|
-
nameTrgmSimilarity: 'float',
|
|
30
|
-
accessMethodTrgmSimilarity: 'float',
|
|
31
|
-
moduleTrgmSimilarity: 'float',
|
|
32
|
-
searchScore: 'float',
|
|
33
29
|
};
|
|
34
30
|
const usage = '\nindex <command>\n\nCommands:\n list List all index records\n get Get a index by ID\n create Create a new index\n update Update an existing index\n delete Delete a index\n\n --help, -h Show this help message\n';
|
|
35
31
|
export default async (argv, prompter, _options) => {
|
|
@@ -19,8 +19,6 @@ const fieldSchema = {
|
|
|
19
19
|
expiresAt: 'string',
|
|
20
20
|
createdAt: 'string',
|
|
21
21
|
updatedAt: 'string',
|
|
22
|
-
inviteTokenTrgmSimilarity: 'float',
|
|
23
|
-
searchScore: 'float',
|
|
24
22
|
};
|
|
25
23
|
const usage = '\ninvite <command>\n\nCommands:\n list List all invite records\n get Get a invite by ID\n create Create a new invite\n update Update an existing invite\n delete Delete a invite\n\n --help, -h Show this help message\n';
|
|
26
24
|
export default async (argv, prompter, _options) => {
|
|
@@ -21,11 +21,6 @@ const fieldSchema = {
|
|
|
21
21
|
prefix: 'string',
|
|
22
22
|
membershipType: 'int',
|
|
23
23
|
entityTableId: 'uuid',
|
|
24
|
-
invitesTableNameTrgmSimilarity: 'float',
|
|
25
|
-
claimedInvitesTableNameTrgmSimilarity: 'float',
|
|
26
|
-
submitInviteCodeFunctionTrgmSimilarity: 'float',
|
|
27
|
-
prefixTrgmSimilarity: 'float',
|
|
28
|
-
searchScore: 'float',
|
|
29
24
|
};
|
|
30
25
|
const usage = '\ninvites-module <command>\n\nCommands:\n list List all invitesModule records\n get Get a invitesModule by ID\n create Create a new invitesModule\n update Update an existing invitesModule\n delete Delete a invitesModule\n\n --help, -h Show this help message\n';
|
|
31
26
|
export default async (argv, prompter, _options) => {
|
|
@@ -33,22 +33,6 @@ const fieldSchema = {
|
|
|
33
33
|
membershipType: 'int',
|
|
34
34
|
entityTableId: 'uuid',
|
|
35
35
|
actorTableId: 'uuid',
|
|
36
|
-
stepsTableNameTrgmSimilarity: 'float',
|
|
37
|
-
achievementsTableNameTrgmSimilarity: 'float',
|
|
38
|
-
levelsTableNameTrgmSimilarity: 'float',
|
|
39
|
-
levelRequirementsTableNameTrgmSimilarity: 'float',
|
|
40
|
-
completedStepTrgmSimilarity: 'float',
|
|
41
|
-
incompletedStepTrgmSimilarity: 'float',
|
|
42
|
-
tgAchievementTrgmSimilarity: 'float',
|
|
43
|
-
tgAchievementToggleTrgmSimilarity: 'float',
|
|
44
|
-
tgAchievementToggleBooleanTrgmSimilarity: 'float',
|
|
45
|
-
tgAchievementBooleanTrgmSimilarity: 'float',
|
|
46
|
-
upsertAchievementTrgmSimilarity: 'float',
|
|
47
|
-
tgUpdateAchievementsTrgmSimilarity: 'float',
|
|
48
|
-
stepsRequiredTrgmSimilarity: 'float',
|
|
49
|
-
levelAchievedTrgmSimilarity: 'float',
|
|
50
|
-
prefixTrgmSimilarity: 'float',
|
|
51
|
-
searchScore: 'float',
|
|
52
36
|
};
|
|
53
37
|
const usage = '\nlevels-module <command>\n\nCommands:\n list List all levelsModule records\n get Get a levelsModule by ID\n create Create a new levelsModule\n update Update an existing levelsModule\n delete Delete a levelsModule\n\n --help, -h Show this help message\n';
|
|
54
38
|
export default async (argv, prompter, _options) => {
|
|
@@ -25,16 +25,6 @@ const fieldSchema = {
|
|
|
25
25
|
membershipType: 'int',
|
|
26
26
|
entityTableId: 'uuid',
|
|
27
27
|
actorTableId: 'uuid',
|
|
28
|
-
tableNameTrgmSimilarity: 'float',
|
|
29
|
-
defaultTableNameTrgmSimilarity: 'float',
|
|
30
|
-
limitIncrementFunctionTrgmSimilarity: 'float',
|
|
31
|
-
limitDecrementFunctionTrgmSimilarity: 'float',
|
|
32
|
-
limitIncrementTriggerTrgmSimilarity: 'float',
|
|
33
|
-
limitDecrementTriggerTrgmSimilarity: 'float',
|
|
34
|
-
limitUpdateTriggerTrgmSimilarity: 'float',
|
|
35
|
-
limitCheckFunctionTrgmSimilarity: 'float',
|
|
36
|
-
prefixTrgmSimilarity: 'float',
|
|
37
|
-
searchScore: 'float',
|
|
38
28
|
};
|
|
39
29
|
const usage = '\nlimits-module <command>\n\nCommands:\n list List all limitsModule records\n get Get a limitsModule by ID\n create Create a new limitsModule\n update Update an existing limitsModule\n delete Delete a limitsModule\n\n --help, -h Show this help message\n';
|
|
40
30
|
export default async (argv, prompter, _options) => {
|
|
@@ -11,9 +11,6 @@ const fieldSchema = {
|
|
|
11
11
|
name: 'string',
|
|
12
12
|
description: 'string',
|
|
13
13
|
prefix: 'string',
|
|
14
|
-
descriptionTrgmSimilarity: 'float',
|
|
15
|
-
prefixTrgmSimilarity: 'float',
|
|
16
|
-
searchScore: 'float',
|
|
17
14
|
};
|
|
18
15
|
const usage = '\nmembership-type <command>\n\nCommands:\n list List all membershipType records\n get Get a membershipType by ID\n create Create a new membershipType\n update Update an existing membershipType\n delete Delete a membershipType\n\n --help, -h Show this help message\n';
|
|
19
16
|
export default async (argv, prompter, _options) => {
|
|
@@ -12,8 +12,6 @@ const fieldSchema = {
|
|
|
12
12
|
schemaId: 'uuid',
|
|
13
13
|
tableId: 'uuid',
|
|
14
14
|
tableName: 'string',
|
|
15
|
-
tableNameTrgmSimilarity: 'float',
|
|
16
|
-
searchScore: 'float',
|
|
17
15
|
};
|
|
18
16
|
const usage = '\nmembership-types-module <command>\n\nCommands:\n list List all membershipTypesModule records\n get Get a membershipTypesModule by ID\n create Create a new membershipTypesModule\n update Update an existing membershipTypesModule\n delete Delete a membershipTypesModule\n\n --help, -h Show this help message\n';
|
|
19
17
|
export default async (argv, prompter, _options) => {
|
|
@@ -38,19 +38,6 @@ const fieldSchema = {
|
|
|
38
38
|
entityIdsByMask: 'string',
|
|
39
39
|
entityIdsByPerm: 'string',
|
|
40
40
|
entityIdsFunction: 'string',
|
|
41
|
-
membershipsTableNameTrgmSimilarity: 'float',
|
|
42
|
-
membersTableNameTrgmSimilarity: 'float',
|
|
43
|
-
membershipDefaultsTableNameTrgmSimilarity: 'float',
|
|
44
|
-
grantsTableNameTrgmSimilarity: 'float',
|
|
45
|
-
adminGrantsTableNameTrgmSimilarity: 'float',
|
|
46
|
-
ownerGrantsTableNameTrgmSimilarity: 'float',
|
|
47
|
-
prefixTrgmSimilarity: 'float',
|
|
48
|
-
actorMaskCheckTrgmSimilarity: 'float',
|
|
49
|
-
actorPermCheckTrgmSimilarity: 'float',
|
|
50
|
-
entityIdsByMaskTrgmSimilarity: 'float',
|
|
51
|
-
entityIdsByPermTrgmSimilarity: 'float',
|
|
52
|
-
entityIdsFunctionTrgmSimilarity: 'float',
|
|
53
|
-
searchScore: 'float',
|
|
54
41
|
};
|
|
55
42
|
const usage = '\nmemberships-module <command>\n\nCommands:\n list List all membershipsModule records\n get Get a membershipsModule by ID\n create Create a new membershipsModule\n update Update an existing membershipsModule\n delete Delete a membershipsModule\n\n --help, -h Show this help message\n';
|
|
56
43
|
export default async (argv, prompter, _options) => {
|
|
@@ -16,12 +16,6 @@ const fieldSchema = {
|
|
|
16
16
|
tags: 'string',
|
|
17
17
|
createdAt: 'string',
|
|
18
18
|
updatedAt: 'string',
|
|
19
|
-
nameTrgmSimilarity: 'float',
|
|
20
|
-
slugTrgmSimilarity: 'float',
|
|
21
|
-
categoryTrgmSimilarity: 'float',
|
|
22
|
-
displayNameTrgmSimilarity: 'float',
|
|
23
|
-
descriptionTrgmSimilarity: 'float',
|
|
24
|
-
searchScore: 'float',
|
|
25
19
|
};
|
|
26
20
|
const usage = '\nnode-type-registry <command>\n\nCommands:\n list List all nodeTypeRegistry records\n get Get a nodeTypeRegistry by ID\n create Create a new nodeTypeRegistry\n update Update an existing nodeTypeRegistry\n delete Delete a nodeTypeRegistry\n\n --help, -h Show this help message\n';
|
|
27
21
|
export default async (argv, prompter, _options) => {
|
|
@@ -16,8 +16,6 @@ const fieldSchema = {
|
|
|
16
16
|
positionTitle: 'string',
|
|
17
17
|
positionLevel: 'int',
|
|
18
18
|
createdAt: 'string',
|
|
19
|
-
positionTitleTrgmSimilarity: 'float',
|
|
20
|
-
searchScore: 'float',
|
|
21
19
|
};
|
|
22
20
|
const usage = '\norg-chart-edge-grant <command>\n\nCommands:\n list List all orgChartEdgeGrant records\n get Get a orgChartEdgeGrant by ID\n create Create a new orgChartEdgeGrant\n update Update an existing orgChartEdgeGrant\n delete Delete a orgChartEdgeGrant\n\n --help, -h Show this help message\n';
|
|
23
21
|
export default async (argv, prompter, _options) => {
|
|
@@ -147,7 +145,8 @@ async function handleCreate(argv, prompter) {
|
|
|
147
145
|
type: 'text',
|
|
148
146
|
name: 'grantorId',
|
|
149
147
|
message: 'grantorId',
|
|
150
|
-
required:
|
|
148
|
+
required: false,
|
|
149
|
+
skipPrompt: true,
|
|
151
150
|
},
|
|
152
151
|
{
|
|
153
152
|
type: 'boolean',
|
|
@@ -241,6 +240,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
241
240
|
name: 'grantorId',
|
|
242
241
|
message: 'grantorId',
|
|
243
242
|
required: false,
|
|
243
|
+
skipPrompt: true,
|
|
244
244
|
},
|
|
245
245
|
{
|
|
246
246
|
type: 'boolean',
|
|
@@ -15,8 +15,6 @@ const fieldSchema = {
|
|
|
15
15
|
parentId: 'uuid',
|
|
16
16
|
positionTitle: 'string',
|
|
17
17
|
positionLevel: 'int',
|
|
18
|
-
positionTitleTrgmSimilarity: 'float',
|
|
19
|
-
searchScore: 'float',
|
|
20
18
|
};
|
|
21
19
|
const usage = '\norg-chart-edge <command>\n\nCommands:\n list List all orgChartEdge records\n get Get a orgChartEdge by ID\n create Create a new orgChartEdge\n update Update an existing orgChartEdge\n delete Delete a orgChartEdge\n\n --help, -h Show this help message\n';
|
|
22
20
|
export default async (argv, prompter, _options) => {
|
|
@@ -21,8 +21,6 @@ const fieldSchema = {
|
|
|
21
21
|
createdAt: 'string',
|
|
22
22
|
updatedAt: 'string',
|
|
23
23
|
entityId: 'uuid',
|
|
24
|
-
inviteTokenTrgmSimilarity: 'float',
|
|
25
|
-
searchScore: 'float',
|
|
26
24
|
};
|
|
27
25
|
const usage = '\norg-invite <command>\n\nCommands:\n list List all orgInvite records\n get Get a orgInvite by ID\n create Create a new orgInvite\n update Update an existing orgInvite\n delete Delete a orgInvite\n\n --help, -h Show this help message\n';
|
|
28
26
|
export default async (argv, prompter, _options) => {
|
|
@@ -12,8 +12,6 @@ const fieldSchema = {
|
|
|
12
12
|
bitnum: 'int',
|
|
13
13
|
bitstr: 'string',
|
|
14
14
|
description: 'string',
|
|
15
|
-
descriptionTrgmSimilarity: 'float',
|
|
16
|
-
searchScore: 'float',
|
|
17
15
|
};
|
|
18
16
|
const usage = '\norg-permission <command>\n\nCommands:\n list List all orgPermission records\n get Get a orgPermission by ID\n create Create a new orgPermission\n update Update an existing orgPermission\n delete Delete a orgPermission\n\n --help, -h Show this help message\n';
|
|
19
17
|
export default async (argv, prompter, _options) => {
|
|
@@ -24,14 +24,6 @@ const fieldSchema = {
|
|
|
24
24
|
getMask: 'string',
|
|
25
25
|
getByMask: 'string',
|
|
26
26
|
getMaskByName: 'string',
|
|
27
|
-
tableNameTrgmSimilarity: 'float',
|
|
28
|
-
defaultTableNameTrgmSimilarity: 'float',
|
|
29
|
-
prefixTrgmSimilarity: 'float',
|
|
30
|
-
getPaddedMaskTrgmSimilarity: 'float',
|
|
31
|
-
getMaskTrgmSimilarity: 'float',
|
|
32
|
-
getByMaskTrgmSimilarity: 'float',
|
|
33
|
-
getMaskByNameTrgmSimilarity: 'float',
|
|
34
|
-
searchScore: 'float',
|
|
35
27
|
};
|
|
36
28
|
const usage = '\npermissions-module <command>\n\nCommands:\n list List all permissionsModule records\n get Get a permissionsModule by ID\n create Create a new permissionsModule\n update Update an existing permissionsModule\n delete Delete a permissionsModule\n\n --help, -h Show this help message\n';
|
|
37
29
|
export default async (argv, prompter, _options) => {
|