@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
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/**
|
|
4
|
+
* CLI commands for OrgLimitEvent
|
|
5
|
+
* @generated by @constructive-io/graphql-codegen
|
|
6
|
+
* DO NOT EDIT - changes will be overwritten
|
|
7
|
+
*/
|
|
8
|
+
const inquirerer_1 = require("inquirerer");
|
|
9
|
+
const executor_1 = require("../executor");
|
|
10
|
+
const utils_1 = require("../utils");
|
|
11
|
+
const fieldSchema = {
|
|
12
|
+
name: 'string',
|
|
13
|
+
actorId: 'uuid',
|
|
14
|
+
entityId: 'uuid',
|
|
15
|
+
eventType: 'string',
|
|
16
|
+
delta: 'int',
|
|
17
|
+
numBefore: 'int',
|
|
18
|
+
numAfter: 'int',
|
|
19
|
+
maxAtEvent: 'int',
|
|
20
|
+
reason: 'string',
|
|
21
|
+
};
|
|
22
|
+
const usage = '\norg-limit-event <command>\n\nCommands:\n list List orgLimitEvent records\n find-first Find first matching orgLimitEvent record\n create Create a new orgLimitEvent\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';
|
|
23
|
+
exports.default = async (argv, prompter, _options) => {
|
|
24
|
+
if (argv.help || argv.h) {
|
|
25
|
+
console.log(usage);
|
|
26
|
+
process.exit(0);
|
|
27
|
+
}
|
|
28
|
+
const { first: subcommand, newArgv } = (0, inquirerer_1.extractFirst)(argv);
|
|
29
|
+
if (!subcommand) {
|
|
30
|
+
const answer = await prompter.prompt(argv, [
|
|
31
|
+
{
|
|
32
|
+
type: 'autocomplete',
|
|
33
|
+
name: 'subcommand',
|
|
34
|
+
message: 'What do you want to do?',
|
|
35
|
+
options: ['list', 'find-first', 'create'],
|
|
36
|
+
},
|
|
37
|
+
]);
|
|
38
|
+
return handleTableSubcommand(answer.subcommand, newArgv, prompter);
|
|
39
|
+
}
|
|
40
|
+
return handleTableSubcommand(subcommand, newArgv, prompter);
|
|
41
|
+
};
|
|
42
|
+
async function handleTableSubcommand(subcommand, argv, prompter) {
|
|
43
|
+
switch (subcommand) {
|
|
44
|
+
case 'list':
|
|
45
|
+
return handleList(argv, prompter);
|
|
46
|
+
case 'find-first':
|
|
47
|
+
return handleFindFirst(argv, prompter);
|
|
48
|
+
case 'create':
|
|
49
|
+
return handleCreate(argv, prompter);
|
|
50
|
+
default:
|
|
51
|
+
console.log(usage);
|
|
52
|
+
process.exit(1);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
async function handleList(argv, _prompter) {
|
|
56
|
+
try {
|
|
57
|
+
const defaultSelect = {
|
|
58
|
+
name: true,
|
|
59
|
+
actorId: true,
|
|
60
|
+
entityId: true,
|
|
61
|
+
eventType: true,
|
|
62
|
+
delta: true,
|
|
63
|
+
numBefore: true,
|
|
64
|
+
numAfter: true,
|
|
65
|
+
maxAtEvent: true,
|
|
66
|
+
reason: true,
|
|
67
|
+
};
|
|
68
|
+
const findManyArgs = (0, utils_1.parseFindManyArgs)(argv, defaultSelect);
|
|
69
|
+
const client = (0, executor_1.getClient)();
|
|
70
|
+
const result = await client.orgLimitEvent.findMany(findManyArgs).execute();
|
|
71
|
+
console.log(JSON.stringify(result, null, 2));
|
|
72
|
+
}
|
|
73
|
+
catch (error) {
|
|
74
|
+
console.error('Failed to list records.');
|
|
75
|
+
if (error instanceof Error) {
|
|
76
|
+
console.error(error.message);
|
|
77
|
+
}
|
|
78
|
+
process.exit(1);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
async function handleFindFirst(argv, _prompter) {
|
|
82
|
+
try {
|
|
83
|
+
const defaultSelect = {
|
|
84
|
+
name: true,
|
|
85
|
+
actorId: true,
|
|
86
|
+
entityId: true,
|
|
87
|
+
eventType: true,
|
|
88
|
+
delta: true,
|
|
89
|
+
numBefore: true,
|
|
90
|
+
numAfter: true,
|
|
91
|
+
maxAtEvent: true,
|
|
92
|
+
reason: true,
|
|
93
|
+
};
|
|
94
|
+
const findFirstArgs = (0, utils_1.parseFindFirstArgs)(argv, defaultSelect);
|
|
95
|
+
const client = (0, executor_1.getClient)();
|
|
96
|
+
const result = await client.orgLimitEvent.findFirst(findFirstArgs).execute();
|
|
97
|
+
console.log(JSON.stringify(result, null, 2));
|
|
98
|
+
}
|
|
99
|
+
catch (error) {
|
|
100
|
+
console.error('Failed to find record.');
|
|
101
|
+
if (error instanceof Error) {
|
|
102
|
+
console.error(error.message);
|
|
103
|
+
}
|
|
104
|
+
process.exit(1);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
async function handleCreate(argv, prompter) {
|
|
108
|
+
try {
|
|
109
|
+
const rawAnswers = await prompter.prompt(argv, [
|
|
110
|
+
{
|
|
111
|
+
type: 'text',
|
|
112
|
+
name: 'name',
|
|
113
|
+
message: 'name',
|
|
114
|
+
required: false,
|
|
115
|
+
skipPrompt: true,
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
type: 'text',
|
|
119
|
+
name: 'actorId',
|
|
120
|
+
message: 'actorId',
|
|
121
|
+
required: false,
|
|
122
|
+
skipPrompt: true,
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
type: 'text',
|
|
126
|
+
name: 'entityId',
|
|
127
|
+
message: 'entityId',
|
|
128
|
+
required: false,
|
|
129
|
+
skipPrompt: true,
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
type: 'text',
|
|
133
|
+
name: 'eventType',
|
|
134
|
+
message: 'eventType',
|
|
135
|
+
required: false,
|
|
136
|
+
skipPrompt: true,
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
type: 'text',
|
|
140
|
+
name: 'delta',
|
|
141
|
+
message: 'delta',
|
|
142
|
+
required: false,
|
|
143
|
+
skipPrompt: true,
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
type: 'text',
|
|
147
|
+
name: 'numBefore',
|
|
148
|
+
message: 'numBefore',
|
|
149
|
+
required: false,
|
|
150
|
+
skipPrompt: true,
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
type: 'text',
|
|
154
|
+
name: 'numAfter',
|
|
155
|
+
message: 'numAfter',
|
|
156
|
+
required: false,
|
|
157
|
+
skipPrompt: true,
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
type: 'text',
|
|
161
|
+
name: 'maxAtEvent',
|
|
162
|
+
message: 'maxAtEvent',
|
|
163
|
+
required: false,
|
|
164
|
+
skipPrompt: true,
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
type: 'text',
|
|
168
|
+
name: 'reason',
|
|
169
|
+
message: 'reason',
|
|
170
|
+
required: false,
|
|
171
|
+
skipPrompt: true,
|
|
172
|
+
},
|
|
173
|
+
]);
|
|
174
|
+
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
175
|
+
const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
|
|
176
|
+
const client = (0, executor_1.getClient)();
|
|
177
|
+
const result = await client.orgLimitEvent
|
|
178
|
+
.create({
|
|
179
|
+
data: {
|
|
180
|
+
name: cleanedData.name,
|
|
181
|
+
actorId: cleanedData.actorId,
|
|
182
|
+
entityId: cleanedData.entityId,
|
|
183
|
+
eventType: cleanedData.eventType,
|
|
184
|
+
delta: cleanedData.delta,
|
|
185
|
+
numBefore: cleanedData.numBefore,
|
|
186
|
+
numAfter: cleanedData.numAfter,
|
|
187
|
+
maxAtEvent: cleanedData.maxAtEvent,
|
|
188
|
+
reason: cleanedData.reason,
|
|
189
|
+
},
|
|
190
|
+
select: {
|
|
191
|
+
name: true,
|
|
192
|
+
actorId: true,
|
|
193
|
+
entityId: true,
|
|
194
|
+
eventType: true,
|
|
195
|
+
delta: true,
|
|
196
|
+
numBefore: true,
|
|
197
|
+
numAfter: true,
|
|
198
|
+
maxAtEvent: true,
|
|
199
|
+
reason: true,
|
|
200
|
+
},
|
|
201
|
+
})
|
|
202
|
+
.execute();
|
|
203
|
+
console.log(JSON.stringify(result, null, 2));
|
|
204
|
+
}
|
|
205
|
+
catch (error) {
|
|
206
|
+
console.error('Failed to create record.');
|
|
207
|
+
if (error instanceof Error) {
|
|
208
|
+
console.error(error.message);
|
|
209
|
+
}
|
|
210
|
+
process.exit(1);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
@@ -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();
|
package/admin/cli/commands.js
CHANGED
|
@@ -22,27 +22,30 @@ const app_permission_default_1 = __importDefault(require("./commands/app-permiss
|
|
|
22
22
|
const org_permission_default_1 = __importDefault(require("./commands/org-permission-default"));
|
|
23
23
|
const app_admin_grant_1 = __importDefault(require("./commands/app-admin-grant"));
|
|
24
24
|
const app_owner_grant_1 = __importDefault(require("./commands/app-owner-grant"));
|
|
25
|
-
const app_limit_default_1 = __importDefault(require("./commands/app-limit-default"));
|
|
26
|
-
const org_limit_default_1 = __importDefault(require("./commands/org-limit-default"));
|
|
27
|
-
const org_admin_grant_1 = __importDefault(require("./commands/org-admin-grant"));
|
|
28
|
-
const org_owner_grant_1 = __importDefault(require("./commands/org-owner-grant"));
|
|
29
|
-
const app_limit_1 = __importDefault(require("./commands/app-limit"));
|
|
30
25
|
const app_achievement_1 = __importDefault(require("./commands/app-achievement"));
|
|
31
26
|
const app_step_1 = __importDefault(require("./commands/app-step"));
|
|
32
|
-
const
|
|
33
|
-
const
|
|
34
|
-
const org_limit_1 = __importDefault(require("./commands/org-limit"));
|
|
27
|
+
const org_admin_grant_1 = __importDefault(require("./commands/org-admin-grant"));
|
|
28
|
+
const org_owner_grant_1 = __importDefault(require("./commands/org-owner-grant"));
|
|
35
29
|
const membership_type_1 = __importDefault(require("./commands/membership-type"));
|
|
30
|
+
const app_limit_default_1 = __importDefault(require("./commands/app-limit-default"));
|
|
31
|
+
const org_limit_default_1 = __importDefault(require("./commands/org-limit-default"));
|
|
32
|
+
const org_chart_edge_grant_1 = __importDefault(require("./commands/org-chart-edge-grant"));
|
|
33
|
+
const app_claimed_invite_1 = __importDefault(require("./commands/app-claimed-invite"));
|
|
36
34
|
const app_grant_1 = __importDefault(require("./commands/app-grant"));
|
|
37
35
|
const app_membership_default_1 = __importDefault(require("./commands/app-membership-default"));
|
|
38
36
|
const org_membership_default_1 = __importDefault(require("./commands/org-membership-default"));
|
|
39
37
|
const org_claimed_invite_1 = __importDefault(require("./commands/org-claimed-invite"));
|
|
38
|
+
const app_limit_event_1 = __importDefault(require("./commands/app-limit-event"));
|
|
39
|
+
const org_limit_event_1 = __importDefault(require("./commands/org-limit-event"));
|
|
40
40
|
const org_grant_1 = __importDefault(require("./commands/org-grant"));
|
|
41
41
|
const org_chart_edge_1 = __importDefault(require("./commands/org-chart-edge"));
|
|
42
|
+
const app_limit_1 = __importDefault(require("./commands/app-limit"));
|
|
43
|
+
const org_limit_aggregate_1 = __importDefault(require("./commands/org-limit-aggregate"));
|
|
42
44
|
const org_member_profile_1 = __importDefault(require("./commands/org-member-profile"));
|
|
43
|
-
const
|
|
45
|
+
const org_limit_1 = __importDefault(require("./commands/org-limit"));
|
|
44
46
|
const app_level_1 = __importDefault(require("./commands/app-level"));
|
|
45
47
|
const app_invite_1 = __importDefault(require("./commands/app-invite"));
|
|
48
|
+
const org_membership_setting_1 = __importDefault(require("./commands/org-membership-setting"));
|
|
46
49
|
const org_invite_1 = __importDefault(require("./commands/org-invite"));
|
|
47
50
|
const app_membership_1 = __importDefault(require("./commands/app-membership"));
|
|
48
51
|
const org_membership_1 = __importDefault(require("./commands/org-membership"));
|
|
@@ -60,7 +63,6 @@ const steps_required_1 = __importDefault(require("./commands/steps-required"));
|
|
|
60
63
|
const submit_app_invite_code_1 = __importDefault(require("./commands/submit-app-invite-code"));
|
|
61
64
|
const submit_org_invite_code_1 = __importDefault(require("./commands/submit-org-invite-code"));
|
|
62
65
|
const request_upload_url_1 = __importDefault(require("./commands/request-upload-url"));
|
|
63
|
-
const confirm_upload_1 = __importDefault(require("./commands/confirm-upload"));
|
|
64
66
|
const provision_bucket_1 = __importDefault(require("./commands/provision-bucket"));
|
|
65
67
|
const createCommandMap = () => ({
|
|
66
68
|
context: context_1.default,
|
|
@@ -75,27 +77,30 @@ const createCommandMap = () => ({
|
|
|
75
77
|
'org-permission-default': org_permission_default_1.default,
|
|
76
78
|
'app-admin-grant': app_admin_grant_1.default,
|
|
77
79
|
'app-owner-grant': app_owner_grant_1.default,
|
|
78
|
-
'app-limit-default': app_limit_default_1.default,
|
|
79
|
-
'org-limit-default': org_limit_default_1.default,
|
|
80
|
-
'org-admin-grant': org_admin_grant_1.default,
|
|
81
|
-
'org-owner-grant': org_owner_grant_1.default,
|
|
82
|
-
'app-limit': app_limit_1.default,
|
|
83
80
|
'app-achievement': app_achievement_1.default,
|
|
84
81
|
'app-step': app_step_1.default,
|
|
85
|
-
'
|
|
86
|
-
'org-
|
|
87
|
-
'org-limit': org_limit_1.default,
|
|
82
|
+
'org-admin-grant': org_admin_grant_1.default,
|
|
83
|
+
'org-owner-grant': org_owner_grant_1.default,
|
|
88
84
|
'membership-type': membership_type_1.default,
|
|
85
|
+
'app-limit-default': app_limit_default_1.default,
|
|
86
|
+
'org-limit-default': org_limit_default_1.default,
|
|
87
|
+
'org-chart-edge-grant': org_chart_edge_grant_1.default,
|
|
88
|
+
'app-claimed-invite': app_claimed_invite_1.default,
|
|
89
89
|
'app-grant': app_grant_1.default,
|
|
90
90
|
'app-membership-default': app_membership_default_1.default,
|
|
91
91
|
'org-membership-default': org_membership_default_1.default,
|
|
92
92
|
'org-claimed-invite': org_claimed_invite_1.default,
|
|
93
|
+
'app-limit-event': app_limit_event_1.default,
|
|
94
|
+
'org-limit-event': org_limit_event_1.default,
|
|
93
95
|
'org-grant': org_grant_1.default,
|
|
94
96
|
'org-chart-edge': org_chart_edge_1.default,
|
|
97
|
+
'app-limit': app_limit_1.default,
|
|
98
|
+
'org-limit-aggregate': org_limit_aggregate_1.default,
|
|
95
99
|
'org-member-profile': org_member_profile_1.default,
|
|
96
|
-
'org-
|
|
100
|
+
'org-limit': org_limit_1.default,
|
|
97
101
|
'app-level': app_level_1.default,
|
|
98
102
|
'app-invite': app_invite_1.default,
|
|
103
|
+
'org-membership-setting': org_membership_setting_1.default,
|
|
99
104
|
'org-invite': org_invite_1.default,
|
|
100
105
|
'app-membership': app_membership_1.default,
|
|
101
106
|
'org-membership': org_membership_1.default,
|
|
@@ -113,10 +118,9 @@ const createCommandMap = () => ({
|
|
|
113
118
|
'submit-app-invite-code': submit_app_invite_code_1.default,
|
|
114
119
|
'submit-org-invite-code': submit_org_invite_code_1.default,
|
|
115
120
|
'request-upload-url': request_upload_url_1.default,
|
|
116
|
-
'confirm-upload': confirm_upload_1.default,
|
|
117
121
|
'provision-bucket': provision_bucket_1.default,
|
|
118
122
|
});
|
|
119
|
-
const usage =
|
|
123
|
+
const usage = '\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n org-get-managers-record orgGetManagersRecord CRUD operations\n org-get-subordinates-record orgGetSubordinatesRecord CRUD operations\n app-permission appPermission CRUD operations\n org-permission orgPermission CRUD operations\n app-level-requirement appLevelRequirement CRUD operations\n org-member orgMember CRUD operations\n app-permission-default appPermissionDefault CRUD operations\n org-permission-default orgPermissionDefault CRUD operations\n app-admin-grant appAdminGrant CRUD operations\n app-owner-grant appOwnerGrant CRUD operations\n app-achievement appAchievement CRUD operations\n app-step appStep CRUD operations\n org-admin-grant orgAdminGrant CRUD operations\n org-owner-grant orgOwnerGrant CRUD operations\n membership-type membershipType CRUD operations\n app-limit-default appLimitDefault CRUD operations\n org-limit-default orgLimitDefault CRUD operations\n org-chart-edge-grant orgChartEdgeGrant CRUD operations\n app-claimed-invite appClaimedInvite CRUD operations\n app-grant appGrant CRUD operations\n app-membership-default appMembershipDefault CRUD operations\n org-membership-default orgMembershipDefault CRUD operations\n org-claimed-invite orgClaimedInvite CRUD operations\n app-limit-event appLimitEvent CRUD operations\n org-limit-event orgLimitEvent CRUD operations\n org-grant orgGrant CRUD operations\n org-chart-edge orgChartEdge CRUD operations\n app-limit appLimit CRUD operations\n org-limit-aggregate orgLimitAggregate CRUD operations\n org-member-profile orgMemberProfile CRUD operations\n org-limit orgLimit CRUD operations\n app-level appLevel CRUD operations\n app-invite appInvite CRUD operations\n org-membership-setting orgMembershipSetting CRUD operations\n org-invite orgInvite CRUD operations\n app-membership appMembership CRUD operations\n org-membership orgMembership CRUD operations\n app-permissions-get-padded-mask appPermissionsGetPaddedMask\n org-permissions-get-padded-mask orgPermissionsGetPaddedMask\n org-is-manager-of orgIsManagerOf\n app-permissions-get-mask appPermissionsGetMask\n org-permissions-get-mask orgPermissionsGetMask\n steps-achieved stepsAchieved\n app-permissions-get-mask-by-names appPermissionsGetMaskByNames\n org-permissions-get-mask-by-names orgPermissionsGetMaskByNames\n app-permissions-get-by-mask Reads and enables pagination through a set of `AppPermission`.\n org-permissions-get-by-mask Reads and enables pagination through a set of `OrgPermission`.\n steps-required Reads and enables pagination through a set of `AppLevelRequirement`.\n submit-app-invite-code submitAppInviteCode\n submit-org-invite-code submitOrgInviteCode\n request-upload-url Request a presigned URL for uploading a file directly to S3.\nClient computes SHA-256 of the file content and provides it here.\nIf a file with the same hash already exists (dedup), returns the\nexisting file ID and deduplicated=true with no uploadUrl.\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n';
|
|
120
124
|
const commands = async (argv, prompter, options) => {
|
|
121
125
|
if (argv.help || argv.h) {
|
|
122
126
|
console.log(usage);
|
package/admin/cli/executor.d.ts
CHANGED
|
@@ -10,27 +10,30 @@ export declare function getClient(contextName?: string): {
|
|
|
10
10
|
orgPermissionDefault: import("../orm").OrgPermissionDefaultModel;
|
|
11
11
|
appAdminGrant: import("../orm").AppAdminGrantModel;
|
|
12
12
|
appOwnerGrant: import("../orm").AppOwnerGrantModel;
|
|
13
|
-
appLimitDefault: import("../orm").AppLimitDefaultModel;
|
|
14
|
-
orgLimitDefault: import("../orm").OrgLimitDefaultModel;
|
|
15
|
-
orgAdminGrant: import("../orm").OrgAdminGrantModel;
|
|
16
|
-
orgOwnerGrant: import("../orm").OrgOwnerGrantModel;
|
|
17
|
-
appLimit: import("../orm").AppLimitModel;
|
|
18
13
|
appAchievement: import("../orm").AppAchievementModel;
|
|
19
14
|
appStep: import("../orm").AppStepModel;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
orgLimit: import("../orm").OrgLimitModel;
|
|
15
|
+
orgAdminGrant: import("../orm").OrgAdminGrantModel;
|
|
16
|
+
orgOwnerGrant: import("../orm").OrgOwnerGrantModel;
|
|
23
17
|
membershipType: import("../orm").MembershipTypeModel;
|
|
18
|
+
appLimitDefault: import("../orm").AppLimitDefaultModel;
|
|
19
|
+
orgLimitDefault: import("../orm").OrgLimitDefaultModel;
|
|
20
|
+
orgChartEdgeGrant: import("../orm").OrgChartEdgeGrantModel;
|
|
21
|
+
appClaimedInvite: import("../orm").AppClaimedInviteModel;
|
|
24
22
|
appGrant: import("../orm").AppGrantModel;
|
|
25
23
|
appMembershipDefault: import("../orm").AppMembershipDefaultModel;
|
|
26
24
|
orgMembershipDefault: import("../orm").OrgMembershipDefaultModel;
|
|
27
25
|
orgClaimedInvite: import("../orm").OrgClaimedInviteModel;
|
|
26
|
+
appLimitEvent: import("../orm").AppLimitEventModel;
|
|
27
|
+
orgLimitEvent: import("../orm").OrgLimitEventModel;
|
|
28
28
|
orgGrant: import("../orm").OrgGrantModel;
|
|
29
29
|
orgChartEdge: import("../orm").OrgChartEdgeModel;
|
|
30
|
+
appLimit: import("../orm").AppLimitModel;
|
|
31
|
+
orgLimitAggregate: import("../orm").OrgLimitAggregateModel;
|
|
30
32
|
orgMemberProfile: import("../orm").OrgMemberProfileModel;
|
|
31
|
-
|
|
33
|
+
orgLimit: import("../orm").OrgLimitModel;
|
|
32
34
|
appLevel: import("../orm").AppLevelModel;
|
|
33
35
|
appInvite: import("../orm").AppInviteModel;
|
|
36
|
+
orgMembershipSetting: import("../orm").OrgMembershipSettingModel;
|
|
34
37
|
orgInvite: import("../orm").OrgInviteModel;
|
|
35
38
|
appMembership: import("../orm").AppMembershipModel;
|
|
36
39
|
orgMembership: import("../orm").OrgMembershipModel;
|
|
@@ -107,11 +110,6 @@ export declare function getClient(contextName?: string): {
|
|
|
107
110
|
} & import("../orm").StrictSelect<S, import("../orm/input-types").RequestUploadUrlPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
108
111
|
requestUploadUrl: import("../orm").InferSelectResult<import("../orm/input-types").RequestUploadUrlPayload, S> | null;
|
|
109
112
|
}>;
|
|
110
|
-
confirmUpload: <S extends import("../orm/input-types").ConfirmUploadPayloadSelect>(args: import("../orm/mutation").ConfirmUploadVariables, options: {
|
|
111
|
-
select: S;
|
|
112
|
-
} & import("../orm").StrictSelect<S, import("../orm/input-types").ConfirmUploadPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
113
|
-
confirmUpload: import("../orm").InferSelectResult<import("../orm/input-types").ConfirmUploadPayload, S> | null;
|
|
114
|
-
}>;
|
|
115
113
|
provisionBucket: <S extends import("../orm/input-types").ProvisionBucketPayloadSelect>(args: import("../orm/mutation").ProvisionBucketVariables, options: {
|
|
116
114
|
select: S;
|
|
117
115
|
} & import("../orm").StrictSelect<S, import("../orm/input-types").ProvisionBucketPayloadSelect>) => import("../orm").QueryBuilder<{
|