@constructive-sdk/cli 0.17.2 → 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,210 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI commands for OrgLimitEvent
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { extractFirst } from 'inquirerer';
|
|
7
|
+
import { getClient } from '../executor';
|
|
8
|
+
import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils';
|
|
9
|
+
const fieldSchema = {
|
|
10
|
+
name: 'string',
|
|
11
|
+
actorId: 'uuid',
|
|
12
|
+
entityId: 'uuid',
|
|
13
|
+
eventType: 'string',
|
|
14
|
+
delta: 'int',
|
|
15
|
+
numBefore: 'int',
|
|
16
|
+
numAfter: 'int',
|
|
17
|
+
maxAtEvent: 'int',
|
|
18
|
+
reason: 'string',
|
|
19
|
+
};
|
|
20
|
+
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';
|
|
21
|
+
export default async (argv, prompter, _options) => {
|
|
22
|
+
if (argv.help || argv.h) {
|
|
23
|
+
console.log(usage);
|
|
24
|
+
process.exit(0);
|
|
25
|
+
}
|
|
26
|
+
const { first: subcommand, newArgv } = extractFirst(argv);
|
|
27
|
+
if (!subcommand) {
|
|
28
|
+
const answer = await prompter.prompt(argv, [
|
|
29
|
+
{
|
|
30
|
+
type: 'autocomplete',
|
|
31
|
+
name: 'subcommand',
|
|
32
|
+
message: 'What do you want to do?',
|
|
33
|
+
options: ['list', 'find-first', 'create'],
|
|
34
|
+
},
|
|
35
|
+
]);
|
|
36
|
+
return handleTableSubcommand(answer.subcommand, newArgv, prompter);
|
|
37
|
+
}
|
|
38
|
+
return handleTableSubcommand(subcommand, newArgv, prompter);
|
|
39
|
+
};
|
|
40
|
+
async function handleTableSubcommand(subcommand, argv, prompter) {
|
|
41
|
+
switch (subcommand) {
|
|
42
|
+
case 'list':
|
|
43
|
+
return handleList(argv, prompter);
|
|
44
|
+
case 'find-first':
|
|
45
|
+
return handleFindFirst(argv, prompter);
|
|
46
|
+
case 'create':
|
|
47
|
+
return handleCreate(argv, prompter);
|
|
48
|
+
default:
|
|
49
|
+
console.log(usage);
|
|
50
|
+
process.exit(1);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
async function handleList(argv, _prompter) {
|
|
54
|
+
try {
|
|
55
|
+
const defaultSelect = {
|
|
56
|
+
name: true,
|
|
57
|
+
actorId: true,
|
|
58
|
+
entityId: true,
|
|
59
|
+
eventType: true,
|
|
60
|
+
delta: true,
|
|
61
|
+
numBefore: true,
|
|
62
|
+
numAfter: true,
|
|
63
|
+
maxAtEvent: true,
|
|
64
|
+
reason: true,
|
|
65
|
+
};
|
|
66
|
+
const findManyArgs = parseFindManyArgs(argv, defaultSelect);
|
|
67
|
+
const client = getClient();
|
|
68
|
+
const result = await client.orgLimitEvent.findMany(findManyArgs).execute();
|
|
69
|
+
console.log(JSON.stringify(result, null, 2));
|
|
70
|
+
}
|
|
71
|
+
catch (error) {
|
|
72
|
+
console.error('Failed to list records.');
|
|
73
|
+
if (error instanceof Error) {
|
|
74
|
+
console.error(error.message);
|
|
75
|
+
}
|
|
76
|
+
process.exit(1);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
async function handleFindFirst(argv, _prompter) {
|
|
80
|
+
try {
|
|
81
|
+
const defaultSelect = {
|
|
82
|
+
name: true,
|
|
83
|
+
actorId: true,
|
|
84
|
+
entityId: true,
|
|
85
|
+
eventType: true,
|
|
86
|
+
delta: true,
|
|
87
|
+
numBefore: true,
|
|
88
|
+
numAfter: true,
|
|
89
|
+
maxAtEvent: true,
|
|
90
|
+
reason: true,
|
|
91
|
+
};
|
|
92
|
+
const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
|
|
93
|
+
const client = getClient();
|
|
94
|
+
const result = await client.orgLimitEvent.findFirst(findFirstArgs).execute();
|
|
95
|
+
console.log(JSON.stringify(result, null, 2));
|
|
96
|
+
}
|
|
97
|
+
catch (error) {
|
|
98
|
+
console.error('Failed to find record.');
|
|
99
|
+
if (error instanceof Error) {
|
|
100
|
+
console.error(error.message);
|
|
101
|
+
}
|
|
102
|
+
process.exit(1);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
async function handleCreate(argv, prompter) {
|
|
106
|
+
try {
|
|
107
|
+
const rawAnswers = await prompter.prompt(argv, [
|
|
108
|
+
{
|
|
109
|
+
type: 'text',
|
|
110
|
+
name: 'name',
|
|
111
|
+
message: 'name',
|
|
112
|
+
required: false,
|
|
113
|
+
skipPrompt: true,
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
type: 'text',
|
|
117
|
+
name: 'actorId',
|
|
118
|
+
message: 'actorId',
|
|
119
|
+
required: false,
|
|
120
|
+
skipPrompt: true,
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
type: 'text',
|
|
124
|
+
name: 'entityId',
|
|
125
|
+
message: 'entityId',
|
|
126
|
+
required: false,
|
|
127
|
+
skipPrompt: true,
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
type: 'text',
|
|
131
|
+
name: 'eventType',
|
|
132
|
+
message: 'eventType',
|
|
133
|
+
required: false,
|
|
134
|
+
skipPrompt: true,
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
type: 'text',
|
|
138
|
+
name: 'delta',
|
|
139
|
+
message: 'delta',
|
|
140
|
+
required: false,
|
|
141
|
+
skipPrompt: true,
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
type: 'text',
|
|
145
|
+
name: 'numBefore',
|
|
146
|
+
message: 'numBefore',
|
|
147
|
+
required: false,
|
|
148
|
+
skipPrompt: true,
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
type: 'text',
|
|
152
|
+
name: 'numAfter',
|
|
153
|
+
message: 'numAfter',
|
|
154
|
+
required: false,
|
|
155
|
+
skipPrompt: true,
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
type: 'text',
|
|
159
|
+
name: 'maxAtEvent',
|
|
160
|
+
message: 'maxAtEvent',
|
|
161
|
+
required: false,
|
|
162
|
+
skipPrompt: true,
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
type: 'text',
|
|
166
|
+
name: 'reason',
|
|
167
|
+
message: 'reason',
|
|
168
|
+
required: false,
|
|
169
|
+
skipPrompt: true,
|
|
170
|
+
},
|
|
171
|
+
]);
|
|
172
|
+
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
173
|
+
const cleanedData = stripUndefined(answers, fieldSchema);
|
|
174
|
+
const client = getClient();
|
|
175
|
+
const result = await client.orgLimitEvent
|
|
176
|
+
.create({
|
|
177
|
+
data: {
|
|
178
|
+
name: cleanedData.name,
|
|
179
|
+
actorId: cleanedData.actorId,
|
|
180
|
+
entityId: cleanedData.entityId,
|
|
181
|
+
eventType: cleanedData.eventType,
|
|
182
|
+
delta: cleanedData.delta,
|
|
183
|
+
numBefore: cleanedData.numBefore,
|
|
184
|
+
numAfter: cleanedData.numAfter,
|
|
185
|
+
maxAtEvent: cleanedData.maxAtEvent,
|
|
186
|
+
reason: cleanedData.reason,
|
|
187
|
+
},
|
|
188
|
+
select: {
|
|
189
|
+
name: true,
|
|
190
|
+
actorId: true,
|
|
191
|
+
entityId: true,
|
|
192
|
+
eventType: true,
|
|
193
|
+
delta: true,
|
|
194
|
+
numBefore: true,
|
|
195
|
+
numAfter: true,
|
|
196
|
+
maxAtEvent: true,
|
|
197
|
+
reason: true,
|
|
198
|
+
},
|
|
199
|
+
})
|
|
200
|
+
.execute();
|
|
201
|
+
console.log(JSON.stringify(result, null, 2));
|
|
202
|
+
}
|
|
203
|
+
catch (error) {
|
|
204
|
+
console.error('Failed to create record.');
|
|
205
|
+
if (error instanceof Error) {
|
|
206
|
+
console.error(error.message);
|
|
207
|
+
}
|
|
208
|
+
process.exit(1);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
@@ -12,6 +12,9 @@ const fieldSchema = {
|
|
|
12
12
|
actorId: 'uuid',
|
|
13
13
|
num: 'int',
|
|
14
14
|
max: 'int',
|
|
15
|
+
softMax: 'int',
|
|
16
|
+
windowStart: 'string',
|
|
17
|
+
windowDuration: 'string',
|
|
15
18
|
entityId: 'uuid',
|
|
16
19
|
};
|
|
17
20
|
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';
|
|
@@ -61,6 +64,9 @@ async function handleList(argv, _prompter) {
|
|
|
61
64
|
actorId: true,
|
|
62
65
|
num: true,
|
|
63
66
|
max: true,
|
|
67
|
+
softMax: true,
|
|
68
|
+
windowStart: true,
|
|
69
|
+
windowDuration: true,
|
|
64
70
|
entityId: true,
|
|
65
71
|
};
|
|
66
72
|
const findManyArgs = parseFindManyArgs(argv, defaultSelect);
|
|
@@ -84,6 +90,9 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
84
90
|
actorId: true,
|
|
85
91
|
num: true,
|
|
86
92
|
max: true,
|
|
93
|
+
softMax: true,
|
|
94
|
+
windowStart: true,
|
|
95
|
+
windowDuration: true,
|
|
87
96
|
entityId: true,
|
|
88
97
|
};
|
|
89
98
|
const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
|
|
@@ -119,6 +128,9 @@ async function handleGet(argv, prompter) {
|
|
|
119
128
|
actorId: true,
|
|
120
129
|
num: true,
|
|
121
130
|
max: true,
|
|
131
|
+
softMax: true,
|
|
132
|
+
windowStart: true,
|
|
133
|
+
windowDuration: true,
|
|
122
134
|
entityId: true,
|
|
123
135
|
},
|
|
124
136
|
})
|
|
@@ -163,6 +175,27 @@ async function handleCreate(argv, prompter) {
|
|
|
163
175
|
required: false,
|
|
164
176
|
skipPrompt: true,
|
|
165
177
|
},
|
|
178
|
+
{
|
|
179
|
+
type: 'text',
|
|
180
|
+
name: 'softMax',
|
|
181
|
+
message: 'softMax',
|
|
182
|
+
required: false,
|
|
183
|
+
skipPrompt: true,
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
type: 'text',
|
|
187
|
+
name: 'windowStart',
|
|
188
|
+
message: 'windowStart',
|
|
189
|
+
required: false,
|
|
190
|
+
skipPrompt: true,
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
type: 'text',
|
|
194
|
+
name: 'windowDuration',
|
|
195
|
+
message: 'windowDuration',
|
|
196
|
+
required: false,
|
|
197
|
+
skipPrompt: true,
|
|
198
|
+
},
|
|
166
199
|
{
|
|
167
200
|
type: 'text',
|
|
168
201
|
name: 'entityId',
|
|
@@ -180,6 +213,9 @@ async function handleCreate(argv, prompter) {
|
|
|
180
213
|
actorId: cleanedData.actorId,
|
|
181
214
|
num: cleanedData.num,
|
|
182
215
|
max: cleanedData.max,
|
|
216
|
+
softMax: cleanedData.softMax,
|
|
217
|
+
windowStart: cleanedData.windowStart,
|
|
218
|
+
windowDuration: cleanedData.windowDuration,
|
|
183
219
|
entityId: cleanedData.entityId,
|
|
184
220
|
},
|
|
185
221
|
select: {
|
|
@@ -188,6 +224,9 @@ async function handleCreate(argv, prompter) {
|
|
|
188
224
|
actorId: true,
|
|
189
225
|
num: true,
|
|
190
226
|
max: true,
|
|
227
|
+
softMax: true,
|
|
228
|
+
windowStart: true,
|
|
229
|
+
windowDuration: true,
|
|
191
230
|
entityId: true,
|
|
192
231
|
},
|
|
193
232
|
})
|
|
@@ -238,6 +277,27 @@ async function handleUpdate(argv, prompter) {
|
|
|
238
277
|
required: false,
|
|
239
278
|
skipPrompt: true,
|
|
240
279
|
},
|
|
280
|
+
{
|
|
281
|
+
type: 'text',
|
|
282
|
+
name: 'softMax',
|
|
283
|
+
message: 'softMax',
|
|
284
|
+
required: false,
|
|
285
|
+
skipPrompt: true,
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
type: 'text',
|
|
289
|
+
name: 'windowStart',
|
|
290
|
+
message: 'windowStart',
|
|
291
|
+
required: false,
|
|
292
|
+
skipPrompt: true,
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
type: 'text',
|
|
296
|
+
name: 'windowDuration',
|
|
297
|
+
message: 'windowDuration',
|
|
298
|
+
required: false,
|
|
299
|
+
skipPrompt: true,
|
|
300
|
+
},
|
|
241
301
|
{
|
|
242
302
|
type: 'text',
|
|
243
303
|
name: 'entityId',
|
|
@@ -258,6 +318,9 @@ async function handleUpdate(argv, prompter) {
|
|
|
258
318
|
actorId: cleanedData.actorId,
|
|
259
319
|
num: cleanedData.num,
|
|
260
320
|
max: cleanedData.max,
|
|
321
|
+
softMax: cleanedData.softMax,
|
|
322
|
+
windowStart: cleanedData.windowStart,
|
|
323
|
+
windowDuration: cleanedData.windowDuration,
|
|
261
324
|
entityId: cleanedData.entityId,
|
|
262
325
|
},
|
|
263
326
|
select: {
|
|
@@ -266,6 +329,9 @@ async function handleUpdate(argv, prompter) {
|
|
|
266
329
|
actorId: true,
|
|
267
330
|
num: true,
|
|
268
331
|
max: true,
|
|
332
|
+
softMax: true,
|
|
333
|
+
windowStart: true,
|
|
334
|
+
windowDuration: true,
|
|
269
335
|
entityId: true,
|
|
270
336
|
},
|
|
271
337
|
})
|
|
@@ -18,7 +18,9 @@ const fieldSchema = {
|
|
|
18
18
|
createChildCascadeAdmins: 'boolean',
|
|
19
19
|
createChildCascadeMembers: 'boolean',
|
|
20
20
|
allowExternalMembers: 'boolean',
|
|
21
|
+
inviteProfileAssignmentMode: 'string',
|
|
21
22
|
populateMemberEmail: 'boolean',
|
|
23
|
+
limitAllocationMode: 'string',
|
|
22
24
|
};
|
|
23
25
|
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';
|
|
24
26
|
export default async (argv, prompter, _options) => {
|
|
@@ -73,7 +75,9 @@ async function handleList(argv, _prompter) {
|
|
|
73
75
|
createChildCascadeAdmins: true,
|
|
74
76
|
createChildCascadeMembers: true,
|
|
75
77
|
allowExternalMembers: true,
|
|
78
|
+
inviteProfileAssignmentMode: true,
|
|
76
79
|
populateMemberEmail: true,
|
|
80
|
+
limitAllocationMode: true,
|
|
77
81
|
};
|
|
78
82
|
const findManyArgs = parseFindManyArgs(argv, defaultSelect);
|
|
79
83
|
const client = getClient();
|
|
@@ -102,7 +106,9 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
102
106
|
createChildCascadeAdmins: true,
|
|
103
107
|
createChildCascadeMembers: true,
|
|
104
108
|
allowExternalMembers: true,
|
|
109
|
+
inviteProfileAssignmentMode: true,
|
|
105
110
|
populateMemberEmail: true,
|
|
111
|
+
limitAllocationMode: true,
|
|
106
112
|
};
|
|
107
113
|
const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
|
|
108
114
|
const client = getClient();
|
|
@@ -143,7 +149,9 @@ async function handleGet(argv, prompter) {
|
|
|
143
149
|
createChildCascadeAdmins: true,
|
|
144
150
|
createChildCascadeMembers: true,
|
|
145
151
|
allowExternalMembers: true,
|
|
152
|
+
inviteProfileAssignmentMode: true,
|
|
146
153
|
populateMemberEmail: true,
|
|
154
|
+
limitAllocationMode: true,
|
|
147
155
|
},
|
|
148
156
|
})
|
|
149
157
|
.execute();
|
|
@@ -215,6 +223,13 @@ async function handleCreate(argv, prompter) {
|
|
|
215
223
|
required: false,
|
|
216
224
|
skipPrompt: true,
|
|
217
225
|
},
|
|
226
|
+
{
|
|
227
|
+
type: 'text',
|
|
228
|
+
name: 'inviteProfileAssignmentMode',
|
|
229
|
+
message: 'inviteProfileAssignmentMode',
|
|
230
|
+
required: false,
|
|
231
|
+
skipPrompt: true,
|
|
232
|
+
},
|
|
218
233
|
{
|
|
219
234
|
type: 'boolean',
|
|
220
235
|
name: 'populateMemberEmail',
|
|
@@ -222,6 +237,13 @@ async function handleCreate(argv, prompter) {
|
|
|
222
237
|
required: false,
|
|
223
238
|
skipPrompt: true,
|
|
224
239
|
},
|
|
240
|
+
{
|
|
241
|
+
type: 'text',
|
|
242
|
+
name: 'limitAllocationMode',
|
|
243
|
+
message: 'limitAllocationMode',
|
|
244
|
+
required: false,
|
|
245
|
+
skipPrompt: true,
|
|
246
|
+
},
|
|
225
247
|
]);
|
|
226
248
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
227
249
|
const cleanedData = stripUndefined(answers, fieldSchema);
|
|
@@ -237,7 +259,9 @@ async function handleCreate(argv, prompter) {
|
|
|
237
259
|
createChildCascadeAdmins: cleanedData.createChildCascadeAdmins,
|
|
238
260
|
createChildCascadeMembers: cleanedData.createChildCascadeMembers,
|
|
239
261
|
allowExternalMembers: cleanedData.allowExternalMembers,
|
|
262
|
+
inviteProfileAssignmentMode: cleanedData.inviteProfileAssignmentMode,
|
|
240
263
|
populateMemberEmail: cleanedData.populateMemberEmail,
|
|
264
|
+
limitAllocationMode: cleanedData.limitAllocationMode,
|
|
241
265
|
},
|
|
242
266
|
select: {
|
|
243
267
|
id: true,
|
|
@@ -251,7 +275,9 @@ async function handleCreate(argv, prompter) {
|
|
|
251
275
|
createChildCascadeAdmins: true,
|
|
252
276
|
createChildCascadeMembers: true,
|
|
253
277
|
allowExternalMembers: true,
|
|
278
|
+
inviteProfileAssignmentMode: true,
|
|
254
279
|
populateMemberEmail: true,
|
|
280
|
+
limitAllocationMode: true,
|
|
255
281
|
},
|
|
256
282
|
})
|
|
257
283
|
.execute();
|
|
@@ -329,6 +355,13 @@ async function handleUpdate(argv, prompter) {
|
|
|
329
355
|
required: false,
|
|
330
356
|
skipPrompt: true,
|
|
331
357
|
},
|
|
358
|
+
{
|
|
359
|
+
type: 'text',
|
|
360
|
+
name: 'inviteProfileAssignmentMode',
|
|
361
|
+
message: 'inviteProfileAssignmentMode',
|
|
362
|
+
required: false,
|
|
363
|
+
skipPrompt: true,
|
|
364
|
+
},
|
|
332
365
|
{
|
|
333
366
|
type: 'boolean',
|
|
334
367
|
name: 'populateMemberEmail',
|
|
@@ -336,6 +369,13 @@ async function handleUpdate(argv, prompter) {
|
|
|
336
369
|
required: false,
|
|
337
370
|
skipPrompt: true,
|
|
338
371
|
},
|
|
372
|
+
{
|
|
373
|
+
type: 'text',
|
|
374
|
+
name: 'limitAllocationMode',
|
|
375
|
+
message: 'limitAllocationMode',
|
|
376
|
+
required: false,
|
|
377
|
+
skipPrompt: true,
|
|
378
|
+
},
|
|
339
379
|
]);
|
|
340
380
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
341
381
|
const cleanedData = stripUndefined(answers, fieldSchema);
|
|
@@ -354,7 +394,9 @@ async function handleUpdate(argv, prompter) {
|
|
|
354
394
|
createChildCascadeAdmins: cleanedData.createChildCascadeAdmins,
|
|
355
395
|
createChildCascadeMembers: cleanedData.createChildCascadeMembers,
|
|
356
396
|
allowExternalMembers: cleanedData.allowExternalMembers,
|
|
397
|
+
inviteProfileAssignmentMode: cleanedData.inviteProfileAssignmentMode,
|
|
357
398
|
populateMemberEmail: cleanedData.populateMemberEmail,
|
|
399
|
+
limitAllocationMode: cleanedData.limitAllocationMode,
|
|
358
400
|
},
|
|
359
401
|
select: {
|
|
360
402
|
id: true,
|
|
@@ -368,7 +410,9 @@ async function handleUpdate(argv, prompter) {
|
|
|
368
410
|
createChildCascadeAdmins: true,
|
|
369
411
|
createChildCascadeMembers: true,
|
|
370
412
|
allowExternalMembers: true,
|
|
413
|
+
inviteProfileAssignmentMode: true,
|
|
371
414
|
populateMemberEmail: true,
|
|
415
|
+
limitAllocationMode: true,
|
|
372
416
|
},
|
|
373
417
|
})
|
|
374
418
|
.execute();
|
|
@@ -16,27 +16,30 @@ import appPermissionDefaultCmd from './commands/app-permission-default';
|
|
|
16
16
|
import orgPermissionDefaultCmd from './commands/org-permission-default';
|
|
17
17
|
import appAdminGrantCmd from './commands/app-admin-grant';
|
|
18
18
|
import appOwnerGrantCmd from './commands/app-owner-grant';
|
|
19
|
-
import appLimitDefaultCmd from './commands/app-limit-default';
|
|
20
|
-
import orgLimitDefaultCmd from './commands/org-limit-default';
|
|
21
|
-
import orgAdminGrantCmd from './commands/org-admin-grant';
|
|
22
|
-
import orgOwnerGrantCmd from './commands/org-owner-grant';
|
|
23
|
-
import appLimitCmd from './commands/app-limit';
|
|
24
19
|
import appAchievementCmd from './commands/app-achievement';
|
|
25
20
|
import appStepCmd from './commands/app-step';
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import orgLimitCmd from './commands/org-limit';
|
|
21
|
+
import orgAdminGrantCmd from './commands/org-admin-grant';
|
|
22
|
+
import orgOwnerGrantCmd from './commands/org-owner-grant';
|
|
29
23
|
import membershipTypeCmd from './commands/membership-type';
|
|
24
|
+
import appLimitDefaultCmd from './commands/app-limit-default';
|
|
25
|
+
import orgLimitDefaultCmd from './commands/org-limit-default';
|
|
26
|
+
import orgChartEdgeGrantCmd from './commands/org-chart-edge-grant';
|
|
27
|
+
import appClaimedInviteCmd from './commands/app-claimed-invite';
|
|
30
28
|
import appGrantCmd from './commands/app-grant';
|
|
31
29
|
import appMembershipDefaultCmd from './commands/app-membership-default';
|
|
32
30
|
import orgMembershipDefaultCmd from './commands/org-membership-default';
|
|
33
31
|
import orgClaimedInviteCmd from './commands/org-claimed-invite';
|
|
32
|
+
import appLimitEventCmd from './commands/app-limit-event';
|
|
33
|
+
import orgLimitEventCmd from './commands/org-limit-event';
|
|
34
34
|
import orgGrantCmd from './commands/org-grant';
|
|
35
35
|
import orgChartEdgeCmd from './commands/org-chart-edge';
|
|
36
|
+
import appLimitCmd from './commands/app-limit';
|
|
37
|
+
import orgLimitAggregateCmd from './commands/org-limit-aggregate';
|
|
36
38
|
import orgMemberProfileCmd from './commands/org-member-profile';
|
|
37
|
-
import
|
|
39
|
+
import orgLimitCmd from './commands/org-limit';
|
|
38
40
|
import appLevelCmd from './commands/app-level';
|
|
39
41
|
import appInviteCmd from './commands/app-invite';
|
|
42
|
+
import orgMembershipSettingCmd from './commands/org-membership-setting';
|
|
40
43
|
import orgInviteCmd from './commands/org-invite';
|
|
41
44
|
import appMembershipCmd from './commands/app-membership';
|
|
42
45
|
import orgMembershipCmd from './commands/org-membership';
|
|
@@ -54,7 +57,6 @@ import stepsRequiredCmd from './commands/steps-required';
|
|
|
54
57
|
import submitAppInviteCodeCmd from './commands/submit-app-invite-code';
|
|
55
58
|
import submitOrgInviteCodeCmd from './commands/submit-org-invite-code';
|
|
56
59
|
import requestUploadUrlCmd from './commands/request-upload-url';
|
|
57
|
-
import confirmUploadCmd from './commands/confirm-upload';
|
|
58
60
|
import provisionBucketCmd from './commands/provision-bucket';
|
|
59
61
|
const createCommandMap = () => ({
|
|
60
62
|
context: contextCmd,
|
|
@@ -69,27 +71,30 @@ const createCommandMap = () => ({
|
|
|
69
71
|
'org-permission-default': orgPermissionDefaultCmd,
|
|
70
72
|
'app-admin-grant': appAdminGrantCmd,
|
|
71
73
|
'app-owner-grant': appOwnerGrantCmd,
|
|
72
|
-
'app-limit-default': appLimitDefaultCmd,
|
|
73
|
-
'org-limit-default': orgLimitDefaultCmd,
|
|
74
|
-
'org-admin-grant': orgAdminGrantCmd,
|
|
75
|
-
'org-owner-grant': orgOwnerGrantCmd,
|
|
76
|
-
'app-limit': appLimitCmd,
|
|
77
74
|
'app-achievement': appAchievementCmd,
|
|
78
75
|
'app-step': appStepCmd,
|
|
79
|
-
'
|
|
80
|
-
'org-
|
|
81
|
-
'org-limit': orgLimitCmd,
|
|
76
|
+
'org-admin-grant': orgAdminGrantCmd,
|
|
77
|
+
'org-owner-grant': orgOwnerGrantCmd,
|
|
82
78
|
'membership-type': membershipTypeCmd,
|
|
79
|
+
'app-limit-default': appLimitDefaultCmd,
|
|
80
|
+
'org-limit-default': orgLimitDefaultCmd,
|
|
81
|
+
'org-chart-edge-grant': orgChartEdgeGrantCmd,
|
|
82
|
+
'app-claimed-invite': appClaimedInviteCmd,
|
|
83
83
|
'app-grant': appGrantCmd,
|
|
84
84
|
'app-membership-default': appMembershipDefaultCmd,
|
|
85
85
|
'org-membership-default': orgMembershipDefaultCmd,
|
|
86
86
|
'org-claimed-invite': orgClaimedInviteCmd,
|
|
87
|
+
'app-limit-event': appLimitEventCmd,
|
|
88
|
+
'org-limit-event': orgLimitEventCmd,
|
|
87
89
|
'org-grant': orgGrantCmd,
|
|
88
90
|
'org-chart-edge': orgChartEdgeCmd,
|
|
91
|
+
'app-limit': appLimitCmd,
|
|
92
|
+
'org-limit-aggregate': orgLimitAggregateCmd,
|
|
89
93
|
'org-member-profile': orgMemberProfileCmd,
|
|
90
|
-
'org-
|
|
94
|
+
'org-limit': orgLimitCmd,
|
|
91
95
|
'app-level': appLevelCmd,
|
|
92
96
|
'app-invite': appInviteCmd,
|
|
97
|
+
'org-membership-setting': orgMembershipSettingCmd,
|
|
93
98
|
'org-invite': orgInviteCmd,
|
|
94
99
|
'app-membership': appMembershipCmd,
|
|
95
100
|
'org-membership': orgMembershipCmd,
|
|
@@ -107,10 +112,9 @@ const createCommandMap = () => ({
|
|
|
107
112
|
'submit-app-invite-code': submitAppInviteCodeCmd,
|
|
108
113
|
'submit-org-invite-code': submitOrgInviteCodeCmd,
|
|
109
114
|
'request-upload-url': requestUploadUrlCmd,
|
|
110
|
-
'confirm-upload': confirmUploadCmd,
|
|
111
115
|
'provision-bucket': provisionBucketCmd,
|
|
112
116
|
});
|
|
113
|
-
const usage =
|
|
117
|
+
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';
|
|
114
118
|
export const commands = async (argv, prompter, options) => {
|
|
115
119
|
if (argv.help || argv.h) {
|
|
116
120
|
console.log(usage);
|
|
@@ -10,27 +10,30 @@ export declare function getClient(contextName?: string): {
|
|
|
10
10
|
orgPermissionDefault: import("..").OrgPermissionDefaultModel;
|
|
11
11
|
appAdminGrant: import("..").AppAdminGrantModel;
|
|
12
12
|
appOwnerGrant: import("..").AppOwnerGrantModel;
|
|
13
|
-
appLimitDefault: import("..").AppLimitDefaultModel;
|
|
14
|
-
orgLimitDefault: import("..").OrgLimitDefaultModel;
|
|
15
|
-
orgAdminGrant: import("..").OrgAdminGrantModel;
|
|
16
|
-
orgOwnerGrant: import("..").OrgOwnerGrantModel;
|
|
17
|
-
appLimit: import("..").AppLimitModel;
|
|
18
13
|
appAchievement: import("..").AppAchievementModel;
|
|
19
14
|
appStep: import("..").AppStepModel;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
orgLimit: import("..").OrgLimitModel;
|
|
15
|
+
orgAdminGrant: import("..").OrgAdminGrantModel;
|
|
16
|
+
orgOwnerGrant: import("..").OrgOwnerGrantModel;
|
|
23
17
|
membershipType: import("..").MembershipTypeModel;
|
|
18
|
+
appLimitDefault: import("..").AppLimitDefaultModel;
|
|
19
|
+
orgLimitDefault: import("..").OrgLimitDefaultModel;
|
|
20
|
+
orgChartEdgeGrant: import("..").OrgChartEdgeGrantModel;
|
|
21
|
+
appClaimedInvite: import("..").AppClaimedInviteModel;
|
|
24
22
|
appGrant: import("..").AppGrantModel;
|
|
25
23
|
appMembershipDefault: import("..").AppMembershipDefaultModel;
|
|
26
24
|
orgMembershipDefault: import("..").OrgMembershipDefaultModel;
|
|
27
25
|
orgClaimedInvite: import("..").OrgClaimedInviteModel;
|
|
26
|
+
appLimitEvent: import("..").AppLimitEventModel;
|
|
27
|
+
orgLimitEvent: import("..").OrgLimitEventModel;
|
|
28
28
|
orgGrant: import("..").OrgGrantModel;
|
|
29
29
|
orgChartEdge: import("..").OrgChartEdgeModel;
|
|
30
|
+
appLimit: import("..").AppLimitModel;
|
|
31
|
+
orgLimitAggregate: import("..").OrgLimitAggregateModel;
|
|
30
32
|
orgMemberProfile: import("..").OrgMemberProfileModel;
|
|
31
|
-
|
|
33
|
+
orgLimit: import("..").OrgLimitModel;
|
|
32
34
|
appLevel: import("..").AppLevelModel;
|
|
33
35
|
appInvite: import("..").AppInviteModel;
|
|
36
|
+
orgMembershipSetting: import("..").OrgMembershipSettingModel;
|
|
34
37
|
orgInvite: import("..").OrgInviteModel;
|
|
35
38
|
appMembership: import("..").AppMembershipModel;
|
|
36
39
|
orgMembership: import("..").OrgMembershipModel;
|
|
@@ -107,11 +110,6 @@ export declare function getClient(contextName?: string): {
|
|
|
107
110
|
} & import("..").StrictSelect<S, import("../orm/input-types").RequestUploadUrlPayloadSelect>) => import("..").QueryBuilder<{
|
|
108
111
|
requestUploadUrl: import("..").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("..").StrictSelect<S, import("../orm/input-types").ConfirmUploadPayloadSelect>) => import("..").QueryBuilder<{
|
|
113
|
-
confirmUpload: import("..").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("..").StrictSelect<S, import("../orm/input-types").ProvisionBucketPayloadSelect>) => import("..").QueryBuilder<{
|