@constructive-sdk/cli 0.25.8 → 0.25.10
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-admin-grant.js +3 -1
- package/admin/cli/commands/app-grant.js +3 -1
- package/admin/cli/commands/app-invite.js +44 -0
- package/admin/cli/commands/app-owner-grant.js +3 -1
- package/admin/cli/commands/app-permission-default-grant.d.ts +8 -0
- package/admin/cli/commands/app-permission-default-grant.js +286 -0
- package/admin/cli/commands/app-permission-default-permission.d.ts +8 -0
- package/admin/cli/commands/app-permission-default-permission.js +242 -0
- package/admin/cli/commands/org-admin-grant.js +3 -1
- package/admin/cli/commands/org-grant.js +3 -1
- package/admin/cli/commands/org-invite.js +44 -0
- package/admin/cli/commands/org-owner-grant.js +3 -1
- package/admin/cli/commands/org-permission-default-grant.d.ts +8 -0
- package/admin/cli/commands/org-permission-default-grant.js +306 -0
- package/admin/cli/commands/org-permission-default-permission.d.ts +8 -0
- package/admin/cli/commands/org-permission-default-permission.js +262 -0
- package/admin/cli/commands.js +11 -3
- package/admin/cli/executor.d.ts +5 -1
- package/admin/orm/index.d.ts +10 -2
- package/admin/orm/index.js +10 -2
- package/admin/orm/input-types.d.ts +1611 -230
- package/admin/orm/input-types.js +9 -1
- package/admin/orm/models/appPermissionDefaultGrant.d.ts +54 -0
- package/admin/orm/models/appPermissionDefaultGrant.js +104 -0
- package/admin/orm/models/appPermissionDefaultPermission.d.ts +54 -0
- package/admin/orm/models/appPermissionDefaultPermission.js +104 -0
- package/admin/orm/models/index.d.ts +5 -1
- package/admin/orm/models/index.js +11 -3
- package/admin/orm/models/orgPermissionDefaultGrant.d.ts +54 -0
- package/admin/orm/models/orgPermissionDefaultGrant.js +104 -0
- package/admin/orm/models/orgPermissionDefaultPermission.d.ts +54 -0
- package/admin/orm/models/orgPermissionDefaultPermission.js +104 -0
- package/agent/cli/commands/agent-message.js +34 -12
- package/agent/cli/commands/agent-task.js +12 -12
- package/agent/cli/embedder.d.ts +5 -0
- package/agent/cli/embedder.js +46 -9
- package/agent/orm/input-types.d.ts +289 -47
- package/agent/orm/input-types.js +1 -0
- package/api/cli/commands/check-constraint.js +0 -22
- package/api/cli/commands/composite-type.d.ts +8 -0
- package/api/cli/commands/composite-type.js +424 -0
- package/api/cli/commands/enum.js +0 -22
- package/api/cli/commands/field.js +0 -22
- package/api/cli/commands/foreign-key-constraint.js +0 -22
- package/api/cli/commands/index.js +0 -22
- package/api/cli/commands/policy.js +0 -22
- package/api/cli/commands/primary-key-constraint.js +0 -22
- package/api/cli/commands/schema.js +0 -22
- package/api/cli/commands/spatial-relation.js +0 -22
- package/api/cli/commands/table.js +6 -28
- package/api/cli/commands/trigger.js +0 -22
- package/api/cli/commands/unique-constraint.js +0 -22
- package/api/cli/commands/view-table.js +22 -0
- package/api/cli/commands/view.js +0 -22
- package/api/cli/commands.js +3 -1
- package/api/cli/executor.d.ts +1 -0
- package/api/orm/index.d.ts +2 -0
- package/api/orm/index.js +2 -0
- package/api/orm/input-types.d.ts +1064 -125
- package/api/orm/input-types.js +3 -0
- package/api/orm/models/compositeType.d.ts +54 -0
- package/api/orm/models/compositeType.js +104 -0
- package/api/orm/models/index.d.ts +1 -0
- package/api/orm/models/index.js +3 -1
- package/auth/cli/commands/link-identity.d.ts +8 -0
- package/auth/cli/commands/link-identity.js +36 -0
- package/auth/cli/commands/sign-in-sms-otp.d.ts +8 -0
- package/auth/cli/commands/sign-in-sms-otp.js +36 -0
- package/auth/cli/commands/sign-up-sms.d.ts +8 -0
- package/auth/cli/commands/sign-up-sms.js +36 -0
- package/auth/cli/commands.js +7 -1
- package/auth/cli/executor.d.ts +15 -0
- package/auth/orm/index.d.ts +15 -0
- package/auth/orm/input-types.d.ts +197 -1
- package/auth/orm/mutation/index.d.ts +25 -1
- package/auth/orm/mutation/index.js +36 -0
- package/esm/admin/cli/commands/app-admin-grant.js +3 -1
- package/esm/admin/cli/commands/app-grant.js +3 -1
- package/esm/admin/cli/commands/app-invite.js +44 -0
- package/esm/admin/cli/commands/app-owner-grant.js +3 -1
- package/esm/admin/cli/commands/app-permission-default-grant.d.ts +8 -0
- package/esm/admin/cli/commands/app-permission-default-grant.js +284 -0
- package/esm/admin/cli/commands/app-permission-default-permission.d.ts +8 -0
- package/esm/admin/cli/commands/app-permission-default-permission.js +240 -0
- package/esm/admin/cli/commands/org-admin-grant.js +3 -1
- package/esm/admin/cli/commands/org-grant.js +3 -1
- package/esm/admin/cli/commands/org-invite.js +44 -0
- package/esm/admin/cli/commands/org-owner-grant.js +3 -1
- package/esm/admin/cli/commands/org-permission-default-grant.d.ts +8 -0
- package/esm/admin/cli/commands/org-permission-default-grant.js +304 -0
- package/esm/admin/cli/commands/org-permission-default-permission.d.ts +8 -0
- package/esm/admin/cli/commands/org-permission-default-permission.js +260 -0
- package/esm/admin/cli/commands.js +11 -3
- package/esm/admin/cli/executor.d.ts +5 -1
- package/esm/admin/orm/index.d.ts +10 -2
- package/esm/admin/orm/index.js +10 -2
- package/esm/admin/orm/input-types.d.ts +1611 -230
- package/esm/admin/orm/input-types.js +9 -1
- package/esm/admin/orm/models/appPermissionDefaultGrant.d.ts +54 -0
- package/esm/admin/orm/models/appPermissionDefaultGrant.js +100 -0
- package/esm/admin/orm/models/appPermissionDefaultPermission.d.ts +54 -0
- package/esm/admin/orm/models/appPermissionDefaultPermission.js +100 -0
- package/esm/admin/orm/models/index.d.ts +5 -1
- package/esm/admin/orm/models/index.js +5 -1
- package/esm/admin/orm/models/orgPermissionDefaultGrant.d.ts +54 -0
- package/esm/admin/orm/models/orgPermissionDefaultGrant.js +100 -0
- package/esm/admin/orm/models/orgPermissionDefaultPermission.d.ts +54 -0
- package/esm/admin/orm/models/orgPermissionDefaultPermission.js +100 -0
- package/esm/agent/cli/commands/agent-message.js +34 -12
- package/esm/agent/cli/commands/agent-task.js +12 -12
- package/esm/agent/cli/embedder.d.ts +5 -0
- package/esm/agent/cli/embedder.js +10 -2
- package/esm/agent/orm/input-types.d.ts +289 -47
- package/esm/agent/orm/input-types.js +1 -0
- package/esm/api/cli/commands/check-constraint.js +0 -22
- package/esm/api/cli/commands/composite-type.d.ts +8 -0
- package/esm/api/cli/commands/composite-type.js +422 -0
- package/esm/api/cli/commands/enum.js +0 -22
- package/esm/api/cli/commands/field.js +0 -22
- package/esm/api/cli/commands/foreign-key-constraint.js +0 -22
- package/esm/api/cli/commands/index.js +0 -22
- package/esm/api/cli/commands/policy.js +0 -22
- package/esm/api/cli/commands/primary-key-constraint.js +0 -22
- package/esm/api/cli/commands/schema.js +0 -22
- package/esm/api/cli/commands/spatial-relation.js +0 -22
- package/esm/api/cli/commands/table.js +6 -28
- package/esm/api/cli/commands/trigger.js +0 -22
- package/esm/api/cli/commands/unique-constraint.js +0 -22
- package/esm/api/cli/commands/view-table.js +22 -0
- package/esm/api/cli/commands/view.js +0 -22
- package/esm/api/cli/commands.js +3 -1
- package/esm/api/cli/executor.d.ts +1 -0
- package/esm/api/orm/index.d.ts +2 -0
- package/esm/api/orm/index.js +2 -0
- package/esm/api/orm/input-types.d.ts +1064 -125
- package/esm/api/orm/input-types.js +3 -0
- package/esm/api/orm/models/compositeType.d.ts +54 -0
- package/esm/api/orm/models/compositeType.js +100 -0
- package/esm/api/orm/models/index.d.ts +1 -0
- package/esm/api/orm/models/index.js +1 -0
- package/esm/auth/cli/commands/link-identity.d.ts +8 -0
- package/esm/auth/cli/commands/link-identity.js +34 -0
- package/esm/auth/cli/commands/sign-in-sms-otp.d.ts +8 -0
- package/esm/auth/cli/commands/sign-in-sms-otp.js +34 -0
- package/esm/auth/cli/commands/sign-up-sms.d.ts +8 -0
- package/esm/auth/cli/commands/sign-up-sms.js +34 -0
- package/esm/auth/cli/commands.js +7 -1
- package/esm/auth/cli/executor.d.ts +15 -0
- package/esm/auth/orm/index.d.ts +15 -0
- package/esm/auth/orm/input-types.d.ts +197 -1
- package/esm/auth/orm/mutation/index.d.ts +25 -1
- package/esm/auth/orm/mutation/index.js +36 -0
- package/esm/modules/cli/commands/agent-module.js +88 -0
- package/esm/modules/cli/commands/billing-module.js +66 -0
- package/esm/modules/cli/commands/compute-log-module.js +44 -0
- package/esm/modules/cli/commands/config-secrets-module.js +44 -0
- package/esm/modules/cli/commands/db-usage-module.js +66 -0
- package/esm/modules/cli/commands/entity-type-provision.js +0 -44
- package/esm/modules/cli/commands/events-module.js +66 -0
- package/esm/modules/cli/commands/function-invocation-module.d.ts +8 -0
- package/esm/modules/cli/commands/function-invocation-module.js +580 -0
- package/esm/modules/cli/commands/function-module.js +22 -198
- package/esm/modules/cli/commands/graph-module.js +22 -0
- package/esm/modules/cli/commands/hierarchy-module.js +22 -0
- package/esm/modules/cli/commands/identity-providers-module.js +44 -0
- package/esm/modules/cli/commands/inference-log-module.js +44 -0
- package/esm/modules/cli/commands/invites-module.js +44 -0
- package/esm/modules/cli/commands/limits-module.js +44 -0
- package/esm/modules/cli/commands/memberships-module.js +88 -0
- package/esm/modules/cli/commands/merkle-store-module.js +22 -0
- package/esm/modules/cli/commands/namespace-module.js +22 -0
- package/esm/modules/cli/commands/notifications-module.js +88 -0
- package/esm/modules/cli/commands/permissions-module.js +44 -0
- package/esm/modules/cli/commands/plans-module.js +44 -0
- package/esm/modules/cli/commands/profiles-module.js +44 -0
- package/esm/modules/cli/commands/rate-limit-meters-module.js +66 -0
- package/esm/modules/cli/commands/storage-log-module.js +44 -0
- package/esm/modules/cli/commands/storage-module.js +66 -0
- package/esm/modules/cli/commands/transfer-log-module.js +44 -0
- package/esm/modules/cli/commands.js +29 -27
- package/esm/modules/cli/executor.d.ts +14 -13
- package/esm/modules/orm/index.d.ts +28 -26
- package/esm/modules/orm/index.js +28 -26
- package/esm/modules/orm/input-types.d.ts +4485 -2514
- package/esm/modules/orm/models/functionInvocationModule.d.ts +54 -0
- package/esm/modules/orm/models/functionInvocationModule.js +100 -0
- package/esm/modules/orm/models/index.d.ts +14 -13
- package/esm/modules/orm/models/index.js +14 -13
- package/esm/objects/orm/input-types.d.ts +62 -0
- package/esm/usage/orm/input-types.d.ts +314 -19
- package/modules/cli/commands/agent-module.js +88 -0
- package/modules/cli/commands/billing-module.js +66 -0
- package/modules/cli/commands/compute-log-module.js +44 -0
- package/modules/cli/commands/config-secrets-module.js +44 -0
- package/modules/cli/commands/db-usage-module.js +66 -0
- package/modules/cli/commands/entity-type-provision.js +0 -44
- package/modules/cli/commands/events-module.js +66 -0
- package/modules/cli/commands/function-invocation-module.d.ts +8 -0
- package/modules/cli/commands/function-invocation-module.js +582 -0
- package/modules/cli/commands/function-module.js +22 -198
- package/modules/cli/commands/graph-module.js +22 -0
- package/modules/cli/commands/hierarchy-module.js +22 -0
- package/modules/cli/commands/identity-providers-module.js +44 -0
- package/modules/cli/commands/inference-log-module.js +44 -0
- package/modules/cli/commands/invites-module.js +44 -0
- package/modules/cli/commands/limits-module.js +44 -0
- package/modules/cli/commands/memberships-module.js +88 -0
- package/modules/cli/commands/merkle-store-module.js +22 -0
- package/modules/cli/commands/namespace-module.js +22 -0
- package/modules/cli/commands/notifications-module.js +88 -0
- package/modules/cli/commands/permissions-module.js +44 -0
- package/modules/cli/commands/plans-module.js +44 -0
- package/modules/cli/commands/profiles-module.js +44 -0
- package/modules/cli/commands/rate-limit-meters-module.js +66 -0
- package/modules/cli/commands/storage-log-module.js +44 -0
- package/modules/cli/commands/storage-module.js +66 -0
- package/modules/cli/commands/transfer-log-module.js +44 -0
- package/modules/cli/commands.js +29 -27
- package/modules/cli/executor.d.ts +14 -13
- package/modules/orm/index.d.ts +28 -26
- package/modules/orm/index.js +28 -26
- package/modules/orm/input-types.d.ts +4485 -2514
- package/modules/orm/models/functionInvocationModule.d.ts +54 -0
- package/modules/orm/models/functionInvocationModule.js +104 -0
- package/modules/orm/models/index.d.ts +14 -13
- package/modules/orm/models/index.js +30 -28
- package/objects/orm/input-types.d.ts +62 -0
- package/package.json +4 -4
- package/usage/orm/input-types.d.ts +314 -19
|
@@ -16,18 +16,9 @@ const fieldSchema = {
|
|
|
16
16
|
publicSchemaName: 'string',
|
|
17
17
|
privateSchemaName: 'string',
|
|
18
18
|
definitionsTableId: 'uuid',
|
|
19
|
-
invocationsTableId: 'uuid',
|
|
20
|
-
executionLogsTableId: 'uuid',
|
|
21
19
|
secretDefinitionsTableId: 'uuid',
|
|
22
|
-
requirementsTableId: 'uuid',
|
|
23
|
-
configDefinitionsTableId: 'uuid',
|
|
24
|
-
configRequirementsTableId: 'uuid',
|
|
25
20
|
definitionsTableName: 'string',
|
|
26
|
-
invocationsTableName: 'string',
|
|
27
|
-
executionLogsTableName: 'string',
|
|
28
21
|
secretDefinitionsTableName: 'string',
|
|
29
|
-
requirementsTableName: 'string',
|
|
30
|
-
configRequirementsTableName: 'string',
|
|
31
22
|
apiName: 'string',
|
|
32
23
|
privateApiName: 'string',
|
|
33
24
|
scope: 'string',
|
|
@@ -35,6 +26,7 @@ const fieldSchema = {
|
|
|
35
26
|
entityTableId: 'uuid',
|
|
36
27
|
policies: 'json',
|
|
37
28
|
provisions: 'json',
|
|
29
|
+
defaultPermissions: 'string',
|
|
38
30
|
};
|
|
39
31
|
const usage = '\nfunction-module <command>\n\nCommands:\n list List functionModule records\n find-first Find first matching functionModule record\n get Get a functionModule by ID\n create Create a new functionModule\n update Update an existing functionModule\n delete Delete a functionModule\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n';
|
|
40
32
|
exports.default = async (argv, prompter, _options) => {
|
|
@@ -85,18 +77,9 @@ async function handleList(argv, _prompter) {
|
|
|
85
77
|
publicSchemaName: true,
|
|
86
78
|
privateSchemaName: true,
|
|
87
79
|
definitionsTableId: true,
|
|
88
|
-
invocationsTableId: true,
|
|
89
|
-
executionLogsTableId: true,
|
|
90
80
|
secretDefinitionsTableId: true,
|
|
91
|
-
requirementsTableId: true,
|
|
92
|
-
configDefinitionsTableId: true,
|
|
93
|
-
configRequirementsTableId: true,
|
|
94
81
|
definitionsTableName: true,
|
|
95
|
-
invocationsTableName: true,
|
|
96
|
-
executionLogsTableName: true,
|
|
97
82
|
secretDefinitionsTableName: true,
|
|
98
|
-
requirementsTableName: true,
|
|
99
|
-
configRequirementsTableName: true,
|
|
100
83
|
apiName: true,
|
|
101
84
|
privateApiName: true,
|
|
102
85
|
scope: true,
|
|
@@ -104,6 +87,7 @@ async function handleList(argv, _prompter) {
|
|
|
104
87
|
entityTableId: true,
|
|
105
88
|
policies: true,
|
|
106
89
|
provisions: true,
|
|
90
|
+
defaultPermissions: true,
|
|
107
91
|
};
|
|
108
92
|
const findManyArgs = (0, utils_1.parseFindManyArgs)(argv, defaultSelect);
|
|
109
93
|
const client = (0, executor_1.getClient)();
|
|
@@ -128,18 +112,9 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
128
112
|
publicSchemaName: true,
|
|
129
113
|
privateSchemaName: true,
|
|
130
114
|
definitionsTableId: true,
|
|
131
|
-
invocationsTableId: true,
|
|
132
|
-
executionLogsTableId: true,
|
|
133
115
|
secretDefinitionsTableId: true,
|
|
134
|
-
requirementsTableId: true,
|
|
135
|
-
configDefinitionsTableId: true,
|
|
136
|
-
configRequirementsTableId: true,
|
|
137
116
|
definitionsTableName: true,
|
|
138
|
-
invocationsTableName: true,
|
|
139
|
-
executionLogsTableName: true,
|
|
140
117
|
secretDefinitionsTableName: true,
|
|
141
|
-
requirementsTableName: true,
|
|
142
|
-
configRequirementsTableName: true,
|
|
143
118
|
apiName: true,
|
|
144
119
|
privateApiName: true,
|
|
145
120
|
scope: true,
|
|
@@ -147,6 +122,7 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
147
122
|
entityTableId: true,
|
|
148
123
|
policies: true,
|
|
149
124
|
provisions: true,
|
|
125
|
+
defaultPermissions: true,
|
|
150
126
|
};
|
|
151
127
|
const findFirstArgs = (0, utils_1.parseFindFirstArgs)(argv, defaultSelect);
|
|
152
128
|
const client = (0, executor_1.getClient)();
|
|
@@ -183,18 +159,9 @@ async function handleGet(argv, prompter) {
|
|
|
183
159
|
publicSchemaName: true,
|
|
184
160
|
privateSchemaName: true,
|
|
185
161
|
definitionsTableId: true,
|
|
186
|
-
invocationsTableId: true,
|
|
187
|
-
executionLogsTableId: true,
|
|
188
162
|
secretDefinitionsTableId: true,
|
|
189
|
-
requirementsTableId: true,
|
|
190
|
-
configDefinitionsTableId: true,
|
|
191
|
-
configRequirementsTableId: true,
|
|
192
163
|
definitionsTableName: true,
|
|
193
|
-
invocationsTableName: true,
|
|
194
|
-
executionLogsTableName: true,
|
|
195
164
|
secretDefinitionsTableName: true,
|
|
196
|
-
requirementsTableName: true,
|
|
197
|
-
configRequirementsTableName: true,
|
|
198
165
|
apiName: true,
|
|
199
166
|
privateApiName: true,
|
|
200
167
|
scope: true,
|
|
@@ -202,6 +169,7 @@ async function handleGet(argv, prompter) {
|
|
|
202
169
|
entityTableId: true,
|
|
203
170
|
policies: true,
|
|
204
171
|
provisions: true,
|
|
172
|
+
defaultPermissions: true,
|
|
205
173
|
},
|
|
206
174
|
})
|
|
207
175
|
.execute();
|
|
@@ -259,20 +227,6 @@ async function handleCreate(argv, prompter) {
|
|
|
259
227
|
required: false,
|
|
260
228
|
skipPrompt: true,
|
|
261
229
|
},
|
|
262
|
-
{
|
|
263
|
-
type: 'text',
|
|
264
|
-
name: 'invocationsTableId',
|
|
265
|
-
message: 'invocationsTableId',
|
|
266
|
-
required: false,
|
|
267
|
-
skipPrompt: true,
|
|
268
|
-
},
|
|
269
|
-
{
|
|
270
|
-
type: 'text',
|
|
271
|
-
name: 'executionLogsTableId',
|
|
272
|
-
message: 'executionLogsTableId',
|
|
273
|
-
required: false,
|
|
274
|
-
skipPrompt: true,
|
|
275
|
-
},
|
|
276
230
|
{
|
|
277
231
|
type: 'text',
|
|
278
232
|
name: 'secretDefinitionsTableId',
|
|
@@ -280,27 +234,6 @@ async function handleCreate(argv, prompter) {
|
|
|
280
234
|
required: false,
|
|
281
235
|
skipPrompt: true,
|
|
282
236
|
},
|
|
283
|
-
{
|
|
284
|
-
type: 'text',
|
|
285
|
-
name: 'requirementsTableId',
|
|
286
|
-
message: 'requirementsTableId',
|
|
287
|
-
required: false,
|
|
288
|
-
skipPrompt: true,
|
|
289
|
-
},
|
|
290
|
-
{
|
|
291
|
-
type: 'text',
|
|
292
|
-
name: 'configDefinitionsTableId',
|
|
293
|
-
message: 'configDefinitionsTableId',
|
|
294
|
-
required: false,
|
|
295
|
-
skipPrompt: true,
|
|
296
|
-
},
|
|
297
|
-
{
|
|
298
|
-
type: 'text',
|
|
299
|
-
name: 'configRequirementsTableId',
|
|
300
|
-
message: 'configRequirementsTableId',
|
|
301
|
-
required: false,
|
|
302
|
-
skipPrompt: true,
|
|
303
|
-
},
|
|
304
237
|
{
|
|
305
238
|
type: 'text',
|
|
306
239
|
name: 'definitionsTableName',
|
|
@@ -308,20 +241,6 @@ async function handleCreate(argv, prompter) {
|
|
|
308
241
|
required: false,
|
|
309
242
|
skipPrompt: true,
|
|
310
243
|
},
|
|
311
|
-
{
|
|
312
|
-
type: 'text',
|
|
313
|
-
name: 'invocationsTableName',
|
|
314
|
-
message: 'invocationsTableName',
|
|
315
|
-
required: false,
|
|
316
|
-
skipPrompt: true,
|
|
317
|
-
},
|
|
318
|
-
{
|
|
319
|
-
type: 'text',
|
|
320
|
-
name: 'executionLogsTableName',
|
|
321
|
-
message: 'executionLogsTableName',
|
|
322
|
-
required: false,
|
|
323
|
-
skipPrompt: true,
|
|
324
|
-
},
|
|
325
244
|
{
|
|
326
245
|
type: 'text',
|
|
327
246
|
name: 'secretDefinitionsTableName',
|
|
@@ -329,20 +248,6 @@ async function handleCreate(argv, prompter) {
|
|
|
329
248
|
required: false,
|
|
330
249
|
skipPrompt: true,
|
|
331
250
|
},
|
|
332
|
-
{
|
|
333
|
-
type: 'text',
|
|
334
|
-
name: 'requirementsTableName',
|
|
335
|
-
message: 'requirementsTableName',
|
|
336
|
-
required: false,
|
|
337
|
-
skipPrompt: true,
|
|
338
|
-
},
|
|
339
|
-
{
|
|
340
|
-
type: 'text',
|
|
341
|
-
name: 'configRequirementsTableName',
|
|
342
|
-
message: 'configRequirementsTableName',
|
|
343
|
-
required: false,
|
|
344
|
-
skipPrompt: true,
|
|
345
|
-
},
|
|
346
251
|
{
|
|
347
252
|
type: 'text',
|
|
348
253
|
name: 'apiName',
|
|
@@ -392,6 +297,13 @@ async function handleCreate(argv, prompter) {
|
|
|
392
297
|
required: false,
|
|
393
298
|
skipPrompt: true,
|
|
394
299
|
},
|
|
300
|
+
{
|
|
301
|
+
type: 'text',
|
|
302
|
+
name: 'defaultPermissions',
|
|
303
|
+
message: 'defaultPermissions',
|
|
304
|
+
required: false,
|
|
305
|
+
skipPrompt: true,
|
|
306
|
+
},
|
|
395
307
|
]);
|
|
396
308
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
397
309
|
const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
|
|
@@ -405,18 +317,9 @@ async function handleCreate(argv, prompter) {
|
|
|
405
317
|
publicSchemaName: cleanedData.publicSchemaName,
|
|
406
318
|
privateSchemaName: cleanedData.privateSchemaName,
|
|
407
319
|
definitionsTableId: cleanedData.definitionsTableId,
|
|
408
|
-
invocationsTableId: cleanedData.invocationsTableId,
|
|
409
|
-
executionLogsTableId: cleanedData.executionLogsTableId,
|
|
410
320
|
secretDefinitionsTableId: cleanedData.secretDefinitionsTableId,
|
|
411
|
-
requirementsTableId: cleanedData.requirementsTableId,
|
|
412
|
-
configDefinitionsTableId: cleanedData.configDefinitionsTableId,
|
|
413
|
-
configRequirementsTableId: cleanedData.configRequirementsTableId,
|
|
414
321
|
definitionsTableName: cleanedData.definitionsTableName,
|
|
415
|
-
invocationsTableName: cleanedData.invocationsTableName,
|
|
416
|
-
executionLogsTableName: cleanedData.executionLogsTableName,
|
|
417
322
|
secretDefinitionsTableName: cleanedData.secretDefinitionsTableName,
|
|
418
|
-
requirementsTableName: cleanedData.requirementsTableName,
|
|
419
|
-
configRequirementsTableName: cleanedData.configRequirementsTableName,
|
|
420
323
|
apiName: cleanedData.apiName,
|
|
421
324
|
privateApiName: cleanedData.privateApiName,
|
|
422
325
|
scope: cleanedData.scope,
|
|
@@ -424,6 +327,7 @@ async function handleCreate(argv, prompter) {
|
|
|
424
327
|
entityTableId: cleanedData.entityTableId,
|
|
425
328
|
policies: cleanedData.policies,
|
|
426
329
|
provisions: cleanedData.provisions,
|
|
330
|
+
defaultPermissions: cleanedData.defaultPermissions,
|
|
427
331
|
},
|
|
428
332
|
select: {
|
|
429
333
|
id: true,
|
|
@@ -433,18 +337,9 @@ async function handleCreate(argv, prompter) {
|
|
|
433
337
|
publicSchemaName: true,
|
|
434
338
|
privateSchemaName: true,
|
|
435
339
|
definitionsTableId: true,
|
|
436
|
-
invocationsTableId: true,
|
|
437
|
-
executionLogsTableId: true,
|
|
438
340
|
secretDefinitionsTableId: true,
|
|
439
|
-
requirementsTableId: true,
|
|
440
|
-
configDefinitionsTableId: true,
|
|
441
|
-
configRequirementsTableId: true,
|
|
442
341
|
definitionsTableName: true,
|
|
443
|
-
invocationsTableName: true,
|
|
444
|
-
executionLogsTableName: true,
|
|
445
342
|
secretDefinitionsTableName: true,
|
|
446
|
-
requirementsTableName: true,
|
|
447
|
-
configRequirementsTableName: true,
|
|
448
343
|
apiName: true,
|
|
449
344
|
privateApiName: true,
|
|
450
345
|
scope: true,
|
|
@@ -452,6 +347,7 @@ async function handleCreate(argv, prompter) {
|
|
|
452
347
|
entityTableId: true,
|
|
453
348
|
policies: true,
|
|
454
349
|
provisions: true,
|
|
350
|
+
defaultPermissions: true,
|
|
455
351
|
},
|
|
456
352
|
})
|
|
457
353
|
.execute();
|
|
@@ -515,20 +411,6 @@ async function handleUpdate(argv, prompter) {
|
|
|
515
411
|
required: false,
|
|
516
412
|
skipPrompt: true,
|
|
517
413
|
},
|
|
518
|
-
{
|
|
519
|
-
type: 'text',
|
|
520
|
-
name: 'invocationsTableId',
|
|
521
|
-
message: 'invocationsTableId',
|
|
522
|
-
required: false,
|
|
523
|
-
skipPrompt: true,
|
|
524
|
-
},
|
|
525
|
-
{
|
|
526
|
-
type: 'text',
|
|
527
|
-
name: 'executionLogsTableId',
|
|
528
|
-
message: 'executionLogsTableId',
|
|
529
|
-
required: false,
|
|
530
|
-
skipPrompt: true,
|
|
531
|
-
},
|
|
532
414
|
{
|
|
533
415
|
type: 'text',
|
|
534
416
|
name: 'secretDefinitionsTableId',
|
|
@@ -536,27 +418,6 @@ async function handleUpdate(argv, prompter) {
|
|
|
536
418
|
required: false,
|
|
537
419
|
skipPrompt: true,
|
|
538
420
|
},
|
|
539
|
-
{
|
|
540
|
-
type: 'text',
|
|
541
|
-
name: 'requirementsTableId',
|
|
542
|
-
message: 'requirementsTableId',
|
|
543
|
-
required: false,
|
|
544
|
-
skipPrompt: true,
|
|
545
|
-
},
|
|
546
|
-
{
|
|
547
|
-
type: 'text',
|
|
548
|
-
name: 'configDefinitionsTableId',
|
|
549
|
-
message: 'configDefinitionsTableId',
|
|
550
|
-
required: false,
|
|
551
|
-
skipPrompt: true,
|
|
552
|
-
},
|
|
553
|
-
{
|
|
554
|
-
type: 'text',
|
|
555
|
-
name: 'configRequirementsTableId',
|
|
556
|
-
message: 'configRequirementsTableId',
|
|
557
|
-
required: false,
|
|
558
|
-
skipPrompt: true,
|
|
559
|
-
},
|
|
560
421
|
{
|
|
561
422
|
type: 'text',
|
|
562
423
|
name: 'definitionsTableName',
|
|
@@ -564,20 +425,6 @@ async function handleUpdate(argv, prompter) {
|
|
|
564
425
|
required: false,
|
|
565
426
|
skipPrompt: true,
|
|
566
427
|
},
|
|
567
|
-
{
|
|
568
|
-
type: 'text',
|
|
569
|
-
name: 'invocationsTableName',
|
|
570
|
-
message: 'invocationsTableName',
|
|
571
|
-
required: false,
|
|
572
|
-
skipPrompt: true,
|
|
573
|
-
},
|
|
574
|
-
{
|
|
575
|
-
type: 'text',
|
|
576
|
-
name: 'executionLogsTableName',
|
|
577
|
-
message: 'executionLogsTableName',
|
|
578
|
-
required: false,
|
|
579
|
-
skipPrompt: true,
|
|
580
|
-
},
|
|
581
428
|
{
|
|
582
429
|
type: 'text',
|
|
583
430
|
name: 'secretDefinitionsTableName',
|
|
@@ -585,20 +432,6 @@ async function handleUpdate(argv, prompter) {
|
|
|
585
432
|
required: false,
|
|
586
433
|
skipPrompt: true,
|
|
587
434
|
},
|
|
588
|
-
{
|
|
589
|
-
type: 'text',
|
|
590
|
-
name: 'requirementsTableName',
|
|
591
|
-
message: 'requirementsTableName',
|
|
592
|
-
required: false,
|
|
593
|
-
skipPrompt: true,
|
|
594
|
-
},
|
|
595
|
-
{
|
|
596
|
-
type: 'text',
|
|
597
|
-
name: 'configRequirementsTableName',
|
|
598
|
-
message: 'configRequirementsTableName',
|
|
599
|
-
required: false,
|
|
600
|
-
skipPrompt: true,
|
|
601
|
-
},
|
|
602
435
|
{
|
|
603
436
|
type: 'text',
|
|
604
437
|
name: 'apiName',
|
|
@@ -648,6 +481,13 @@ async function handleUpdate(argv, prompter) {
|
|
|
648
481
|
required: false,
|
|
649
482
|
skipPrompt: true,
|
|
650
483
|
},
|
|
484
|
+
{
|
|
485
|
+
type: 'text',
|
|
486
|
+
name: 'defaultPermissions',
|
|
487
|
+
message: 'defaultPermissions',
|
|
488
|
+
required: false,
|
|
489
|
+
skipPrompt: true,
|
|
490
|
+
},
|
|
651
491
|
]);
|
|
652
492
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
653
493
|
const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
|
|
@@ -664,18 +504,9 @@ async function handleUpdate(argv, prompter) {
|
|
|
664
504
|
publicSchemaName: cleanedData.publicSchemaName,
|
|
665
505
|
privateSchemaName: cleanedData.privateSchemaName,
|
|
666
506
|
definitionsTableId: cleanedData.definitionsTableId,
|
|
667
|
-
invocationsTableId: cleanedData.invocationsTableId,
|
|
668
|
-
executionLogsTableId: cleanedData.executionLogsTableId,
|
|
669
507
|
secretDefinitionsTableId: cleanedData.secretDefinitionsTableId,
|
|
670
|
-
requirementsTableId: cleanedData.requirementsTableId,
|
|
671
|
-
configDefinitionsTableId: cleanedData.configDefinitionsTableId,
|
|
672
|
-
configRequirementsTableId: cleanedData.configRequirementsTableId,
|
|
673
508
|
definitionsTableName: cleanedData.definitionsTableName,
|
|
674
|
-
invocationsTableName: cleanedData.invocationsTableName,
|
|
675
|
-
executionLogsTableName: cleanedData.executionLogsTableName,
|
|
676
509
|
secretDefinitionsTableName: cleanedData.secretDefinitionsTableName,
|
|
677
|
-
requirementsTableName: cleanedData.requirementsTableName,
|
|
678
|
-
configRequirementsTableName: cleanedData.configRequirementsTableName,
|
|
679
510
|
apiName: cleanedData.apiName,
|
|
680
511
|
privateApiName: cleanedData.privateApiName,
|
|
681
512
|
scope: cleanedData.scope,
|
|
@@ -683,6 +514,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
683
514
|
entityTableId: cleanedData.entityTableId,
|
|
684
515
|
policies: cleanedData.policies,
|
|
685
516
|
provisions: cleanedData.provisions,
|
|
517
|
+
defaultPermissions: cleanedData.defaultPermissions,
|
|
686
518
|
},
|
|
687
519
|
select: {
|
|
688
520
|
id: true,
|
|
@@ -692,18 +524,9 @@ async function handleUpdate(argv, prompter) {
|
|
|
692
524
|
publicSchemaName: true,
|
|
693
525
|
privateSchemaName: true,
|
|
694
526
|
definitionsTableId: true,
|
|
695
|
-
invocationsTableId: true,
|
|
696
|
-
executionLogsTableId: true,
|
|
697
527
|
secretDefinitionsTableId: true,
|
|
698
|
-
requirementsTableId: true,
|
|
699
|
-
configDefinitionsTableId: true,
|
|
700
|
-
configRequirementsTableId: true,
|
|
701
528
|
definitionsTableName: true,
|
|
702
|
-
invocationsTableName: true,
|
|
703
|
-
executionLogsTableName: true,
|
|
704
529
|
secretDefinitionsTableName: true,
|
|
705
|
-
requirementsTableName: true,
|
|
706
|
-
configRequirementsTableName: true,
|
|
707
530
|
apiName: true,
|
|
708
531
|
privateApiName: true,
|
|
709
532
|
scope: true,
|
|
@@ -711,6 +534,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
711
534
|
entityTableId: true,
|
|
712
535
|
policies: true,
|
|
713
536
|
provisions: true,
|
|
537
|
+
defaultPermissions: true,
|
|
714
538
|
},
|
|
715
539
|
})
|
|
716
540
|
.execute();
|
|
@@ -26,6 +26,7 @@ const fieldSchema = {
|
|
|
26
26
|
entityTableId: 'uuid',
|
|
27
27
|
policies: 'json',
|
|
28
28
|
provisions: 'json',
|
|
29
|
+
defaultPermissions: 'string',
|
|
29
30
|
createdAt: 'string',
|
|
30
31
|
};
|
|
31
32
|
const usage = '\ngraph-module <command>\n\nCommands:\n list List graphModule records\n find-first Find first matching graphModule record\n get Get a graphModule by ID\n create Create a new graphModule\n update Update an existing graphModule\n delete Delete a graphModule\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n';
|
|
@@ -87,6 +88,7 @@ async function handleList(argv, _prompter) {
|
|
|
87
88
|
entityTableId: true,
|
|
88
89
|
policies: true,
|
|
89
90
|
provisions: true,
|
|
91
|
+
defaultPermissions: true,
|
|
90
92
|
createdAt: true,
|
|
91
93
|
};
|
|
92
94
|
const findManyArgs = (0, utils_1.parseFindManyArgs)(argv, defaultSelect);
|
|
@@ -122,6 +124,7 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
122
124
|
entityTableId: true,
|
|
123
125
|
policies: true,
|
|
124
126
|
provisions: true,
|
|
127
|
+
defaultPermissions: true,
|
|
125
128
|
createdAt: true,
|
|
126
129
|
};
|
|
127
130
|
const findFirstArgs = (0, utils_1.parseFindFirstArgs)(argv, defaultSelect);
|
|
@@ -169,6 +172,7 @@ async function handleGet(argv, prompter) {
|
|
|
169
172
|
entityTableId: true,
|
|
170
173
|
policies: true,
|
|
171
174
|
provisions: true,
|
|
175
|
+
defaultPermissions: true,
|
|
172
176
|
createdAt: true,
|
|
173
177
|
},
|
|
174
178
|
})
|
|
@@ -296,6 +300,13 @@ async function handleCreate(argv, prompter) {
|
|
|
296
300
|
required: false,
|
|
297
301
|
skipPrompt: true,
|
|
298
302
|
},
|
|
303
|
+
{
|
|
304
|
+
type: 'text',
|
|
305
|
+
name: 'defaultPermissions',
|
|
306
|
+
message: 'defaultPermissions',
|
|
307
|
+
required: false,
|
|
308
|
+
skipPrompt: true,
|
|
309
|
+
},
|
|
299
310
|
]);
|
|
300
311
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
301
312
|
const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
|
|
@@ -319,6 +330,7 @@ async function handleCreate(argv, prompter) {
|
|
|
319
330
|
entityTableId: cleanedData.entityTableId,
|
|
320
331
|
policies: cleanedData.policies,
|
|
321
332
|
provisions: cleanedData.provisions,
|
|
333
|
+
defaultPermissions: cleanedData.defaultPermissions,
|
|
322
334
|
},
|
|
323
335
|
select: {
|
|
324
336
|
id: true,
|
|
@@ -338,6 +350,7 @@ async function handleCreate(argv, prompter) {
|
|
|
338
350
|
entityTableId: true,
|
|
339
351
|
policies: true,
|
|
340
352
|
provisions: true,
|
|
353
|
+
defaultPermissions: true,
|
|
341
354
|
createdAt: true,
|
|
342
355
|
},
|
|
343
356
|
})
|
|
@@ -471,6 +484,13 @@ async function handleUpdate(argv, prompter) {
|
|
|
471
484
|
required: false,
|
|
472
485
|
skipPrompt: true,
|
|
473
486
|
},
|
|
487
|
+
{
|
|
488
|
+
type: 'text',
|
|
489
|
+
name: 'defaultPermissions',
|
|
490
|
+
message: 'defaultPermissions',
|
|
491
|
+
required: false,
|
|
492
|
+
skipPrompt: true,
|
|
493
|
+
},
|
|
474
494
|
]);
|
|
475
495
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
476
496
|
const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
|
|
@@ -497,6 +517,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
497
517
|
entityTableId: cleanedData.entityTableId,
|
|
498
518
|
policies: cleanedData.policies,
|
|
499
519
|
provisions: cleanedData.provisions,
|
|
520
|
+
defaultPermissions: cleanedData.defaultPermissions,
|
|
500
521
|
},
|
|
501
522
|
select: {
|
|
502
523
|
id: true,
|
|
@@ -516,6 +537,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
516
537
|
entityTableId: true,
|
|
517
538
|
policies: true,
|
|
518
539
|
provisions: true,
|
|
540
|
+
defaultPermissions: true,
|
|
519
541
|
createdAt: true,
|
|
520
542
|
},
|
|
521
543
|
})
|
|
@@ -29,6 +29,7 @@ const fieldSchema = {
|
|
|
29
29
|
getSubordinatesFunction: 'string',
|
|
30
30
|
getManagersFunction: 'string',
|
|
31
31
|
isManagerOfFunction: 'string',
|
|
32
|
+
defaultPermissions: 'string',
|
|
32
33
|
createdAt: 'string',
|
|
33
34
|
};
|
|
34
35
|
const usage = '\nhierarchy-module <command>\n\nCommands:\n list List hierarchyModule records\n find-first Find first matching hierarchyModule record\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\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n';
|
|
@@ -93,6 +94,7 @@ async function handleList(argv, _prompter) {
|
|
|
93
94
|
getSubordinatesFunction: true,
|
|
94
95
|
getManagersFunction: true,
|
|
95
96
|
isManagerOfFunction: true,
|
|
97
|
+
defaultPermissions: true,
|
|
96
98
|
createdAt: true,
|
|
97
99
|
};
|
|
98
100
|
const findManyArgs = (0, utils_1.parseFindManyArgs)(argv, defaultSelect);
|
|
@@ -131,6 +133,7 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
131
133
|
getSubordinatesFunction: true,
|
|
132
134
|
getManagersFunction: true,
|
|
133
135
|
isManagerOfFunction: true,
|
|
136
|
+
defaultPermissions: true,
|
|
134
137
|
createdAt: true,
|
|
135
138
|
};
|
|
136
139
|
const findFirstArgs = (0, utils_1.parseFindFirstArgs)(argv, defaultSelect);
|
|
@@ -181,6 +184,7 @@ async function handleGet(argv, prompter) {
|
|
|
181
184
|
getSubordinatesFunction: true,
|
|
182
185
|
getManagersFunction: true,
|
|
183
186
|
isManagerOfFunction: true,
|
|
187
|
+
defaultPermissions: true,
|
|
184
188
|
createdAt: true,
|
|
185
189
|
},
|
|
186
190
|
})
|
|
@@ -328,6 +332,13 @@ async function handleCreate(argv, prompter) {
|
|
|
328
332
|
required: false,
|
|
329
333
|
skipPrompt: true,
|
|
330
334
|
},
|
|
335
|
+
{
|
|
336
|
+
type: 'text',
|
|
337
|
+
name: 'defaultPermissions',
|
|
338
|
+
message: 'defaultPermissions',
|
|
339
|
+
required: false,
|
|
340
|
+
skipPrompt: true,
|
|
341
|
+
},
|
|
331
342
|
]);
|
|
332
343
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
333
344
|
const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
|
|
@@ -354,6 +365,7 @@ async function handleCreate(argv, prompter) {
|
|
|
354
365
|
getSubordinatesFunction: cleanedData.getSubordinatesFunction,
|
|
355
366
|
getManagersFunction: cleanedData.getManagersFunction,
|
|
356
367
|
isManagerOfFunction: cleanedData.isManagerOfFunction,
|
|
368
|
+
defaultPermissions: cleanedData.defaultPermissions,
|
|
357
369
|
},
|
|
358
370
|
select: {
|
|
359
371
|
id: true,
|
|
@@ -376,6 +388,7 @@ async function handleCreate(argv, prompter) {
|
|
|
376
388
|
getSubordinatesFunction: true,
|
|
377
389
|
getManagersFunction: true,
|
|
378
390
|
isManagerOfFunction: true,
|
|
391
|
+
defaultPermissions: true,
|
|
379
392
|
createdAt: true,
|
|
380
393
|
},
|
|
381
394
|
})
|
|
@@ -529,6 +542,13 @@ async function handleUpdate(argv, prompter) {
|
|
|
529
542
|
required: false,
|
|
530
543
|
skipPrompt: true,
|
|
531
544
|
},
|
|
545
|
+
{
|
|
546
|
+
type: 'text',
|
|
547
|
+
name: 'defaultPermissions',
|
|
548
|
+
message: 'defaultPermissions',
|
|
549
|
+
required: false,
|
|
550
|
+
skipPrompt: true,
|
|
551
|
+
},
|
|
532
552
|
]);
|
|
533
553
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
534
554
|
const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
|
|
@@ -558,6 +578,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
558
578
|
getSubordinatesFunction: cleanedData.getSubordinatesFunction,
|
|
559
579
|
getManagersFunction: cleanedData.getManagersFunction,
|
|
560
580
|
isManagerOfFunction: cleanedData.isManagerOfFunction,
|
|
581
|
+
defaultPermissions: cleanedData.defaultPermissions,
|
|
561
582
|
},
|
|
562
583
|
select: {
|
|
563
584
|
id: true,
|
|
@@ -580,6 +601,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
580
601
|
getSubordinatesFunction: true,
|
|
581
602
|
getManagersFunction: true,
|
|
582
603
|
isManagerOfFunction: true,
|
|
604
|
+
defaultPermissions: true,
|
|
583
605
|
createdAt: true,
|
|
584
606
|
},
|
|
585
607
|
})
|