@constructive-sdk/cli 0.17.1 → 0.17.3
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-invite.js +22 -0
- package/admin/cli/commands/app-limit-default.js +22 -0
- package/admin/cli/commands/{confirm-upload.d.ts → app-limit-event.d.ts} +1 -1
- package/admin/cli/commands/app-limit-event.js +212 -0
- package/admin/cli/commands/app-limit.js +66 -0
- package/admin/cli/commands/app-membership.js +0 -22
- package/admin/cli/commands/org-invite.js +22 -0
- package/{esm/admin/cli/commands/confirm-upload.d.ts → admin/cli/commands/org-limit-aggregate.d.ts} +1 -1
- package/admin/cli/commands/org-limit-aggregate.js +362 -0
- package/admin/cli/commands/org-limit-default.js +22 -0
- package/{auth/cli/commands/confirm-upload.d.ts → admin/cli/commands/org-limit-event.d.ts} +1 -1
- package/admin/cli/commands/org-limit-event.js +212 -0
- package/admin/cli/commands/org-limit.js +66 -0
- package/admin/cli/commands/org-membership-setting.js +44 -0
- package/admin/cli/commands.js +25 -21
- package/admin/cli/executor.d.ts +12 -14
- package/admin/orm/index.d.ts +24 -23
- package/admin/orm/index.js +24 -18
- package/admin/orm/input-types.d.ts +1297 -839
- package/admin/orm/models/appLimitEvent.d.ts +32 -0
- package/admin/orm/models/appLimitEvent.js +55 -0
- package/admin/orm/models/index.d.ts +12 -9
- package/admin/orm/models/index.js +25 -19
- package/admin/orm/models/orgLimitAggregate.d.ts +56 -0
- package/admin/orm/models/orgLimitAggregate.js +100 -0
- package/admin/orm/models/orgLimitEvent.d.ts +32 -0
- package/admin/orm/models/orgLimitEvent.js +55 -0
- package/admin/orm/mutation/index.d.ts +1 -15
- package/admin/orm/mutation/index.js +0 -12
- package/auth/cli/commands.js +1 -3
- package/auth/cli/executor.d.ts +0 -5
- package/auth/orm/index.d.ts +0 -5
- package/auth/orm/input-types.d.ts +0 -20
- package/auth/orm/mutation/index.d.ts +1 -15
- package/auth/orm/mutation/index.js +0 -12
- package/esm/admin/cli/commands/app-invite.js +22 -0
- package/esm/admin/cli/commands/app-limit-default.js +22 -0
- package/esm/{auth/cli/commands/confirm-upload.d.ts → admin/cli/commands/app-limit-event.d.ts} +1 -1
- package/esm/admin/cli/commands/app-limit-event.js +210 -0
- package/esm/admin/cli/commands/app-limit.js +66 -0
- package/esm/admin/cli/commands/app-membership.js +0 -22
- package/esm/admin/cli/commands/org-invite.js +22 -0
- package/esm/admin/cli/commands/org-limit-aggregate.d.ts +8 -0
- package/esm/admin/cli/commands/org-limit-aggregate.js +360 -0
- package/esm/admin/cli/commands/org-limit-default.js +22 -0
- package/esm/admin/cli/commands/org-limit-event.d.ts +8 -0
- package/esm/admin/cli/commands/org-limit-event.js +210 -0
- package/esm/admin/cli/commands/org-limit.js +66 -0
- package/esm/admin/cli/commands/org-membership-setting.js +44 -0
- package/esm/admin/cli/commands.js +25 -21
- package/esm/admin/cli/executor.d.ts +12 -14
- package/esm/admin/orm/index.d.ts +24 -23
- package/esm/admin/orm/index.js +24 -18
- package/esm/admin/orm/input-types.d.ts +1297 -839
- package/esm/admin/orm/models/appLimitEvent.d.ts +32 -0
- package/esm/admin/orm/models/appLimitEvent.js +51 -0
- package/esm/admin/orm/models/index.d.ts +12 -9
- package/esm/admin/orm/models/index.js +12 -9
- package/esm/admin/orm/models/orgLimitAggregate.d.ts +56 -0
- package/esm/admin/orm/models/orgLimitAggregate.js +96 -0
- package/esm/admin/orm/models/orgLimitEvent.d.ts +32 -0
- package/esm/admin/orm/models/orgLimitEvent.js +51 -0
- package/esm/admin/orm/mutation/index.d.ts +1 -15
- package/esm/admin/orm/mutation/index.js +0 -12
- package/esm/auth/cli/commands.js +1 -3
- package/esm/auth/cli/executor.d.ts +0 -5
- package/esm/auth/orm/index.d.ts +0 -5
- package/esm/auth/orm/input-types.d.ts +0 -20
- package/esm/auth/orm/mutation/index.d.ts +1 -15
- package/esm/auth/orm/mutation/index.js +0 -12
- package/esm/objects/cli/commands.js +1 -3
- package/esm/objects/cli/executor.d.ts +0 -5
- package/esm/objects/orm/index.d.ts +0 -5
- package/esm/objects/orm/input-types.d.ts +0 -20
- package/esm/objects/orm/mutation/index.d.ts +1 -15
- package/esm/objects/orm/mutation/index.js +0 -12
- package/esm/public/cli/commands/agent-message.d.ts +8 -0
- package/esm/public/cli/commands/agent-message.js +324 -0
- package/esm/public/cli/commands/agent-task.d.ts +8 -0
- package/esm/public/cli/commands/agent-task.js +368 -0
- package/esm/public/cli/commands/agent-thread.d.ts +8 -0
- package/esm/public/cli/commands/agent-thread.js +372 -0
- package/esm/public/cli/commands/app-invite.js +22 -0
- package/esm/public/cli/commands/app-limit-default.js +22 -0
- package/esm/public/cli/commands/app-limit-event.d.ts +8 -0
- package/esm/public/cli/commands/app-limit-event.js +210 -0
- package/esm/public/cli/commands/app-limit.js +66 -0
- package/esm/public/cli/commands/app-membership.js +0 -22
- package/esm/public/cli/commands/billing-module.d.ts +8 -0
- package/esm/public/cli/commands/billing-module.js +492 -0
- package/esm/public/cli/commands/limits-module.js +22 -0
- package/esm/public/cli/commands/node-type-registry.d.ts +8 -0
- package/esm/public/cli/commands/node-type-registry.js +343 -0
- package/esm/public/cli/commands/org-invite.js +22 -0
- package/esm/public/cli/commands/org-limit-aggregate.d.ts +8 -0
- package/esm/public/cli/commands/org-limit-aggregate.js +360 -0
- package/esm/public/cli/commands/org-limit-default.js +22 -0
- package/esm/public/cli/commands/org-limit-event.d.ts +8 -0
- package/esm/public/cli/commands/org-limit-event.js +210 -0
- package/esm/public/cli/commands/org-limit.js +66 -0
- package/esm/public/cli/commands/org-membership-setting.js +44 -0
- package/esm/public/cli/commands/plans-module.d.ts +8 -0
- package/esm/public/cli/commands/plans-module.js +426 -0
- package/esm/public/cli/commands/profiles-module.js +44 -0
- package/esm/public/cli/commands/storage-module.js +22 -44
- package/esm/public/cli/commands.js +45 -29
- package/esm/public/cli/executor.d.ts +38 -34
- package/esm/public/orm/index.d.ts +56 -43
- package/esm/public/orm/index.js +36 -18
- package/esm/public/orm/input-types.d.ts +2983 -1112
- package/esm/public/orm/input-types.js +9 -0
- package/esm/public/orm/models/agentMessage.d.ts +56 -0
- package/esm/public/orm/models/agentMessage.js +96 -0
- package/esm/public/orm/models/agentTask.d.ts +56 -0
- package/esm/public/orm/models/agentTask.js +96 -0
- package/esm/public/orm/models/agentThread.d.ts +56 -0
- package/esm/public/orm/models/agentThread.js +96 -0
- package/esm/public/orm/models/appLimitEvent.d.ts +32 -0
- package/esm/public/orm/models/appLimitEvent.js +51 -0
- package/esm/public/orm/models/billingModule.d.ts +56 -0
- package/esm/public/orm/models/billingModule.js +96 -0
- package/esm/public/orm/models/index.d.ts +18 -9
- package/esm/public/orm/models/index.js +18 -9
- package/esm/public/orm/models/nodeTypeRegistry.d.ts +56 -0
- package/esm/public/orm/models/nodeTypeRegistry.js +96 -0
- package/esm/public/orm/models/orgLimitAggregate.d.ts +56 -0
- package/esm/public/orm/models/orgLimitAggregate.js +96 -0
- package/esm/public/orm/models/orgLimitEvent.d.ts +32 -0
- package/esm/public/orm/models/orgLimitEvent.js +51 -0
- package/esm/public/orm/models/plansModule.d.ts +56 -0
- package/esm/public/orm/models/plansModule.js +96 -0
- package/esm/public/orm/mutation/index.d.ts +17 -31
- package/esm/public/orm/mutation/index.js +24 -36
- package/esm/public/orm/query/index.d.ts +28 -28
- package/esm/public/orm/query/index.js +48 -48
- package/objects/cli/commands.js +1 -3
- package/objects/cli/executor.d.ts +0 -5
- package/objects/orm/index.d.ts +0 -5
- package/objects/orm/input-types.d.ts +0 -20
- package/objects/orm/mutation/index.d.ts +1 -15
- package/objects/orm/mutation/index.js +0 -12
- package/package.json +4 -4
- package/public/cli/commands/agent-message.d.ts +8 -0
- package/public/cli/commands/agent-message.js +326 -0
- package/public/cli/commands/agent-task.d.ts +8 -0
- package/public/cli/commands/agent-task.js +370 -0
- package/public/cli/commands/agent-thread.d.ts +8 -0
- package/public/cli/commands/agent-thread.js +374 -0
- package/public/cli/commands/app-invite.js +22 -0
- package/public/cli/commands/app-limit-default.js +22 -0
- package/public/cli/commands/app-limit-event.d.ts +8 -0
- package/public/cli/commands/app-limit-event.js +212 -0
- package/public/cli/commands/app-limit.js +66 -0
- package/public/cli/commands/app-membership.js +0 -22
- package/public/cli/commands/billing-module.d.ts +8 -0
- package/public/cli/commands/billing-module.js +494 -0
- package/public/cli/commands/limits-module.js +22 -0
- package/public/cli/commands/node-type-registry.d.ts +8 -0
- package/public/cli/commands/node-type-registry.js +345 -0
- package/public/cli/commands/org-invite.js +22 -0
- package/public/cli/commands/org-limit-aggregate.d.ts +8 -0
- package/public/cli/commands/org-limit-aggregate.js +362 -0
- package/public/cli/commands/org-limit-default.js +22 -0
- package/public/cli/commands/org-limit-event.d.ts +8 -0
- package/public/cli/commands/org-limit-event.js +212 -0
- package/public/cli/commands/org-limit.js +66 -0
- package/public/cli/commands/org-membership-setting.js +44 -0
- package/public/cli/commands/plans-module.d.ts +8 -0
- package/public/cli/commands/plans-module.js +428 -0
- package/public/cli/commands/profiles-module.js +44 -0
- package/public/cli/commands/storage-module.js +22 -44
- package/public/cli/commands.js +45 -29
- package/public/cli/executor.d.ts +38 -34
- package/public/orm/index.d.ts +56 -43
- package/public/orm/index.js +36 -18
- package/public/orm/input-types.d.ts +2983 -1112
- package/public/orm/input-types.js +9 -0
- package/public/orm/models/agentMessage.d.ts +56 -0
- package/public/orm/models/agentMessage.js +100 -0
- package/public/orm/models/agentTask.d.ts +56 -0
- package/public/orm/models/agentTask.js +100 -0
- package/public/orm/models/agentThread.d.ts +56 -0
- package/public/orm/models/agentThread.js +100 -0
- package/public/orm/models/appLimitEvent.d.ts +32 -0
- package/public/orm/models/appLimitEvent.js +55 -0
- package/public/orm/models/billingModule.d.ts +56 -0
- package/public/orm/models/billingModule.js +100 -0
- package/public/orm/models/index.d.ts +18 -9
- package/public/orm/models/index.js +39 -21
- package/public/orm/models/nodeTypeRegistry.d.ts +56 -0
- package/public/orm/models/nodeTypeRegistry.js +100 -0
- package/public/orm/models/orgLimitAggregate.d.ts +56 -0
- package/public/orm/models/orgLimitAggregate.js +100 -0
- package/public/orm/models/orgLimitEvent.d.ts +32 -0
- package/public/orm/models/orgLimitEvent.js +55 -0
- package/public/orm/models/plansModule.d.ts +56 -0
- package/public/orm/models/plansModule.js +100 -0
- package/public/orm/mutation/index.d.ts +17 -31
- package/public/orm/mutation/index.js +24 -36
- package/public/orm/query/index.d.ts +28 -28
- package/public/orm/query/index.js +48 -48
- package/admin/cli/commands/confirm-upload.js +0 -36
- package/auth/cli/commands/confirm-upload.js +0 -36
- package/esm/admin/cli/commands/confirm-upload.js +0 -34
- package/esm/auth/cli/commands/confirm-upload.js +0 -34
- package/esm/objects/cli/commands/confirm-upload.d.ts +0 -8
- package/esm/objects/cli/commands/confirm-upload.js +0 -34
- package/esm/public/cli/commands/confirm-upload.d.ts +0 -8
- package/esm/public/cli/commands/confirm-upload.js +0 -34
- package/objects/cli/commands/confirm-upload.d.ts +0 -8
- package/objects/cli/commands/confirm-upload.js +0 -36
- package/public/cli/commands/confirm-upload.d.ts +0 -8
- package/public/cli/commands/confirm-upload.js +0 -36
|
@@ -14,6 +14,9 @@ const fieldSchema = {
|
|
|
14
14
|
actorId: 'uuid',
|
|
15
15
|
num: 'int',
|
|
16
16
|
max: 'int',
|
|
17
|
+
softMax: 'int',
|
|
18
|
+
windowStart: 'string',
|
|
19
|
+
windowDuration: 'string',
|
|
17
20
|
entityId: 'uuid',
|
|
18
21
|
};
|
|
19
22
|
const usage = '\norg-limit <command>\n\nCommands:\n list List orgLimit records\n find-first Find first matching orgLimit record\n get Get a orgLimit by ID\n create Create a new orgLimit\n update Update an existing orgLimit\n delete Delete a orgLimit\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\n --help, -h Show this help message\n';
|
|
@@ -63,6 +66,9 @@ async function handleList(argv, _prompter) {
|
|
|
63
66
|
actorId: true,
|
|
64
67
|
num: true,
|
|
65
68
|
max: true,
|
|
69
|
+
softMax: true,
|
|
70
|
+
windowStart: true,
|
|
71
|
+
windowDuration: true,
|
|
66
72
|
entityId: true,
|
|
67
73
|
};
|
|
68
74
|
const findManyArgs = (0, utils_1.parseFindManyArgs)(argv, defaultSelect);
|
|
@@ -86,6 +92,9 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
86
92
|
actorId: true,
|
|
87
93
|
num: true,
|
|
88
94
|
max: true,
|
|
95
|
+
softMax: true,
|
|
96
|
+
windowStart: true,
|
|
97
|
+
windowDuration: true,
|
|
89
98
|
entityId: true,
|
|
90
99
|
};
|
|
91
100
|
const findFirstArgs = (0, utils_1.parseFindFirstArgs)(argv, defaultSelect);
|
|
@@ -121,6 +130,9 @@ async function handleGet(argv, prompter) {
|
|
|
121
130
|
actorId: true,
|
|
122
131
|
num: true,
|
|
123
132
|
max: true,
|
|
133
|
+
softMax: true,
|
|
134
|
+
windowStart: true,
|
|
135
|
+
windowDuration: true,
|
|
124
136
|
entityId: true,
|
|
125
137
|
},
|
|
126
138
|
})
|
|
@@ -165,6 +177,27 @@ async function handleCreate(argv, prompter) {
|
|
|
165
177
|
required: false,
|
|
166
178
|
skipPrompt: true,
|
|
167
179
|
},
|
|
180
|
+
{
|
|
181
|
+
type: 'text',
|
|
182
|
+
name: 'softMax',
|
|
183
|
+
message: 'softMax',
|
|
184
|
+
required: false,
|
|
185
|
+
skipPrompt: true,
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
type: 'text',
|
|
189
|
+
name: 'windowStart',
|
|
190
|
+
message: 'windowStart',
|
|
191
|
+
required: false,
|
|
192
|
+
skipPrompt: true,
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
type: 'text',
|
|
196
|
+
name: 'windowDuration',
|
|
197
|
+
message: 'windowDuration',
|
|
198
|
+
required: false,
|
|
199
|
+
skipPrompt: true,
|
|
200
|
+
},
|
|
168
201
|
{
|
|
169
202
|
type: 'text',
|
|
170
203
|
name: 'entityId',
|
|
@@ -182,6 +215,9 @@ async function handleCreate(argv, prompter) {
|
|
|
182
215
|
actorId: cleanedData.actorId,
|
|
183
216
|
num: cleanedData.num,
|
|
184
217
|
max: cleanedData.max,
|
|
218
|
+
softMax: cleanedData.softMax,
|
|
219
|
+
windowStart: cleanedData.windowStart,
|
|
220
|
+
windowDuration: cleanedData.windowDuration,
|
|
185
221
|
entityId: cleanedData.entityId,
|
|
186
222
|
},
|
|
187
223
|
select: {
|
|
@@ -190,6 +226,9 @@ async function handleCreate(argv, prompter) {
|
|
|
190
226
|
actorId: true,
|
|
191
227
|
num: true,
|
|
192
228
|
max: true,
|
|
229
|
+
softMax: true,
|
|
230
|
+
windowStart: true,
|
|
231
|
+
windowDuration: true,
|
|
193
232
|
entityId: true,
|
|
194
233
|
},
|
|
195
234
|
})
|
|
@@ -240,6 +279,27 @@ async function handleUpdate(argv, prompter) {
|
|
|
240
279
|
required: false,
|
|
241
280
|
skipPrompt: true,
|
|
242
281
|
},
|
|
282
|
+
{
|
|
283
|
+
type: 'text',
|
|
284
|
+
name: 'softMax',
|
|
285
|
+
message: 'softMax',
|
|
286
|
+
required: false,
|
|
287
|
+
skipPrompt: true,
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
type: 'text',
|
|
291
|
+
name: 'windowStart',
|
|
292
|
+
message: 'windowStart',
|
|
293
|
+
required: false,
|
|
294
|
+
skipPrompt: true,
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
type: 'text',
|
|
298
|
+
name: 'windowDuration',
|
|
299
|
+
message: 'windowDuration',
|
|
300
|
+
required: false,
|
|
301
|
+
skipPrompt: true,
|
|
302
|
+
},
|
|
243
303
|
{
|
|
244
304
|
type: 'text',
|
|
245
305
|
name: 'entityId',
|
|
@@ -260,6 +320,9 @@ async function handleUpdate(argv, prompter) {
|
|
|
260
320
|
actorId: cleanedData.actorId,
|
|
261
321
|
num: cleanedData.num,
|
|
262
322
|
max: cleanedData.max,
|
|
323
|
+
softMax: cleanedData.softMax,
|
|
324
|
+
windowStart: cleanedData.windowStart,
|
|
325
|
+
windowDuration: cleanedData.windowDuration,
|
|
263
326
|
entityId: cleanedData.entityId,
|
|
264
327
|
},
|
|
265
328
|
select: {
|
|
@@ -268,6 +331,9 @@ async function handleUpdate(argv, prompter) {
|
|
|
268
331
|
actorId: true,
|
|
269
332
|
num: true,
|
|
270
333
|
max: true,
|
|
334
|
+
softMax: true,
|
|
335
|
+
windowStart: true,
|
|
336
|
+
windowDuration: true,
|
|
271
337
|
entityId: true,
|
|
272
338
|
},
|
|
273
339
|
})
|
|
@@ -20,7 +20,9 @@ const fieldSchema = {
|
|
|
20
20
|
createChildCascadeAdmins: 'boolean',
|
|
21
21
|
createChildCascadeMembers: 'boolean',
|
|
22
22
|
allowExternalMembers: 'boolean',
|
|
23
|
+
inviteProfileAssignmentMode: 'string',
|
|
23
24
|
populateMemberEmail: 'boolean',
|
|
25
|
+
limitAllocationMode: 'string',
|
|
24
26
|
};
|
|
25
27
|
const usage = '\norg-membership-setting <command>\n\nCommands:\n list List orgMembershipSetting records\n find-first Find first matching orgMembershipSetting record\n get Get a orgMembershipSetting by ID\n create Create a new orgMembershipSetting\n update Update an existing orgMembershipSetting\n delete Delete a orgMembershipSetting\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\n --help, -h Show this help message\n';
|
|
26
28
|
exports.default = async (argv, prompter, _options) => {
|
|
@@ -75,7 +77,9 @@ async function handleList(argv, _prompter) {
|
|
|
75
77
|
createChildCascadeAdmins: true,
|
|
76
78
|
createChildCascadeMembers: true,
|
|
77
79
|
allowExternalMembers: true,
|
|
80
|
+
inviteProfileAssignmentMode: true,
|
|
78
81
|
populateMemberEmail: true,
|
|
82
|
+
limitAllocationMode: true,
|
|
79
83
|
};
|
|
80
84
|
const findManyArgs = (0, utils_1.parseFindManyArgs)(argv, defaultSelect);
|
|
81
85
|
const client = (0, executor_1.getClient)();
|
|
@@ -104,7 +108,9 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
104
108
|
createChildCascadeAdmins: true,
|
|
105
109
|
createChildCascadeMembers: true,
|
|
106
110
|
allowExternalMembers: true,
|
|
111
|
+
inviteProfileAssignmentMode: true,
|
|
107
112
|
populateMemberEmail: true,
|
|
113
|
+
limitAllocationMode: true,
|
|
108
114
|
};
|
|
109
115
|
const findFirstArgs = (0, utils_1.parseFindFirstArgs)(argv, defaultSelect);
|
|
110
116
|
const client = (0, executor_1.getClient)();
|
|
@@ -145,7 +151,9 @@ async function handleGet(argv, prompter) {
|
|
|
145
151
|
createChildCascadeAdmins: true,
|
|
146
152
|
createChildCascadeMembers: true,
|
|
147
153
|
allowExternalMembers: true,
|
|
154
|
+
inviteProfileAssignmentMode: true,
|
|
148
155
|
populateMemberEmail: true,
|
|
156
|
+
limitAllocationMode: true,
|
|
149
157
|
},
|
|
150
158
|
})
|
|
151
159
|
.execute();
|
|
@@ -217,6 +225,13 @@ async function handleCreate(argv, prompter) {
|
|
|
217
225
|
required: false,
|
|
218
226
|
skipPrompt: true,
|
|
219
227
|
},
|
|
228
|
+
{
|
|
229
|
+
type: 'text',
|
|
230
|
+
name: 'inviteProfileAssignmentMode',
|
|
231
|
+
message: 'inviteProfileAssignmentMode',
|
|
232
|
+
required: false,
|
|
233
|
+
skipPrompt: true,
|
|
234
|
+
},
|
|
220
235
|
{
|
|
221
236
|
type: 'boolean',
|
|
222
237
|
name: 'populateMemberEmail',
|
|
@@ -224,6 +239,13 @@ async function handleCreate(argv, prompter) {
|
|
|
224
239
|
required: false,
|
|
225
240
|
skipPrompt: true,
|
|
226
241
|
},
|
|
242
|
+
{
|
|
243
|
+
type: 'text',
|
|
244
|
+
name: 'limitAllocationMode',
|
|
245
|
+
message: 'limitAllocationMode',
|
|
246
|
+
required: false,
|
|
247
|
+
skipPrompt: true,
|
|
248
|
+
},
|
|
227
249
|
]);
|
|
228
250
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
229
251
|
const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
|
|
@@ -239,7 +261,9 @@ async function handleCreate(argv, prompter) {
|
|
|
239
261
|
createChildCascadeAdmins: cleanedData.createChildCascadeAdmins,
|
|
240
262
|
createChildCascadeMembers: cleanedData.createChildCascadeMembers,
|
|
241
263
|
allowExternalMembers: cleanedData.allowExternalMembers,
|
|
264
|
+
inviteProfileAssignmentMode: cleanedData.inviteProfileAssignmentMode,
|
|
242
265
|
populateMemberEmail: cleanedData.populateMemberEmail,
|
|
266
|
+
limitAllocationMode: cleanedData.limitAllocationMode,
|
|
243
267
|
},
|
|
244
268
|
select: {
|
|
245
269
|
id: true,
|
|
@@ -253,7 +277,9 @@ async function handleCreate(argv, prompter) {
|
|
|
253
277
|
createChildCascadeAdmins: true,
|
|
254
278
|
createChildCascadeMembers: true,
|
|
255
279
|
allowExternalMembers: true,
|
|
280
|
+
inviteProfileAssignmentMode: true,
|
|
256
281
|
populateMemberEmail: true,
|
|
282
|
+
limitAllocationMode: true,
|
|
257
283
|
},
|
|
258
284
|
})
|
|
259
285
|
.execute();
|
|
@@ -331,6 +357,13 @@ async function handleUpdate(argv, prompter) {
|
|
|
331
357
|
required: false,
|
|
332
358
|
skipPrompt: true,
|
|
333
359
|
},
|
|
360
|
+
{
|
|
361
|
+
type: 'text',
|
|
362
|
+
name: 'inviteProfileAssignmentMode',
|
|
363
|
+
message: 'inviteProfileAssignmentMode',
|
|
364
|
+
required: false,
|
|
365
|
+
skipPrompt: true,
|
|
366
|
+
},
|
|
334
367
|
{
|
|
335
368
|
type: 'boolean',
|
|
336
369
|
name: 'populateMemberEmail',
|
|
@@ -338,6 +371,13 @@ async function handleUpdate(argv, prompter) {
|
|
|
338
371
|
required: false,
|
|
339
372
|
skipPrompt: true,
|
|
340
373
|
},
|
|
374
|
+
{
|
|
375
|
+
type: 'text',
|
|
376
|
+
name: 'limitAllocationMode',
|
|
377
|
+
message: 'limitAllocationMode',
|
|
378
|
+
required: false,
|
|
379
|
+
skipPrompt: true,
|
|
380
|
+
},
|
|
341
381
|
]);
|
|
342
382
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
343
383
|
const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
|
|
@@ -356,7 +396,9 @@ async function handleUpdate(argv, prompter) {
|
|
|
356
396
|
createChildCascadeAdmins: cleanedData.createChildCascadeAdmins,
|
|
357
397
|
createChildCascadeMembers: cleanedData.createChildCascadeMembers,
|
|
358
398
|
allowExternalMembers: cleanedData.allowExternalMembers,
|
|
399
|
+
inviteProfileAssignmentMode: cleanedData.inviteProfileAssignmentMode,
|
|
359
400
|
populateMemberEmail: cleanedData.populateMemberEmail,
|
|
401
|
+
limitAllocationMode: cleanedData.limitAllocationMode,
|
|
360
402
|
},
|
|
361
403
|
select: {
|
|
362
404
|
id: true,
|
|
@@ -370,7 +412,9 @@ async function handleUpdate(argv, prompter) {
|
|
|
370
412
|
createChildCascadeAdmins: true,
|
|
371
413
|
createChildCascadeMembers: true,
|
|
372
414
|
allowExternalMembers: true,
|
|
415
|
+
inviteProfileAssignmentMode: true,
|
|
373
416
|
populateMemberEmail: true,
|
|
417
|
+
limitAllocationMode: true,
|
|
374
418
|
},
|
|
375
419
|
})
|
|
376
420
|
.execute();
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI commands for PlansModule
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { CLIOptions, Inquirerer } from 'inquirerer';
|
|
7
|
+
declare const _default: (argv: Partial<Record<string, unknown>>, prompter: Inquirerer, _options: CLIOptions) => Promise<void>;
|
|
8
|
+
export default _default;
|