@constructive-sdk/cli 0.13.3 → 0.13.4
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/{claimed-invite.d.ts → app-claimed-invite.d.ts} +1 -1
- package/admin/cli/commands/{claimed-invite.js → app-claimed-invite.js} +8 -8
- package/{esm/public/cli/commands/invite.d.ts → admin/cli/commands/app-invite.d.ts} +1 -1
- package/{public/cli/commands/invite.js → admin/cli/commands/app-invite.js} +8 -8
- package/admin/cli/commands/steps-achieved.js +4 -4
- package/admin/cli/commands/steps-required.js +4 -4
- package/admin/cli/commands/{submit-invite-code.d.ts → submit-app-invite-code.d.ts} +1 -1
- package/admin/cli/commands/{submit-invite-code.js → submit-app-invite-code.js} +3 -3
- package/admin/cli/commands.js +7 -7
- package/admin/cli/executor.d.ts +5 -5
- package/admin/orm/index.d.ts +7 -7
- package/admin/orm/index.js +4 -4
- package/admin/orm/input-types.d.ts +99 -99
- package/admin/orm/models/appClaimedInvite.d.ts +56 -0
- package/{public/orm/models/claimedInvite.js → admin/orm/models/appClaimedInvite.js} +26 -26
- package/admin/orm/models/appInvite.d.ts +56 -0
- package/{public/orm/models/invite.js → admin/orm/models/appInvite.js} +26 -26
- package/admin/orm/models/index.d.ts +2 -2
- package/admin/orm/models/index.js +5 -5
- package/admin/orm/mutation/index.d.ts +6 -6
- package/admin/orm/mutation/index.js +6 -6
- package/admin/orm/query/index.d.ts +4 -4
- package/admin/orm/query/index.js +4 -4
- package/auth/cli/commands.js +5 -5
- package/auth/cli/executor.d.ts +10 -10
- package/auth/orm/index.d.ts +10 -10
- package/auth/orm/input-types.d.ts +24 -72
- package/auth/orm/mutation/index.d.ts +17 -17
- package/auth/orm/mutation/index.js +24 -24
- package/esm/admin/cli/commands/{claimed-invite.d.ts → app-claimed-invite.d.ts} +1 -1
- package/esm/admin/cli/commands/{claimed-invite.js → app-claimed-invite.js} +8 -8
- package/esm/admin/cli/commands/{invite.d.ts → app-invite.d.ts} +1 -1
- package/esm/{public/cli/commands/invite.js → admin/cli/commands/app-invite.js} +8 -8
- package/esm/admin/cli/commands/steps-achieved.js +4 -4
- package/esm/admin/cli/commands/steps-required.js +4 -4
- package/esm/admin/cli/commands/submit-app-invite-code.d.ts +8 -0
- package/esm/admin/cli/commands/{submit-invite-code.js → submit-app-invite-code.js} +3 -3
- package/esm/admin/cli/commands.js +7 -7
- package/esm/admin/cli/executor.d.ts +5 -5
- package/esm/admin/orm/index.d.ts +7 -7
- package/esm/admin/orm/index.js +4 -4
- package/esm/admin/orm/input-types.d.ts +99 -99
- package/esm/admin/orm/models/appClaimedInvite.d.ts +56 -0
- package/esm/admin/orm/models/{claimedInvite.js → appClaimedInvite.js} +24 -24
- package/esm/admin/orm/models/appInvite.d.ts +56 -0
- package/esm/admin/orm/models/{invite.js → appInvite.js} +24 -24
- package/esm/admin/orm/models/index.d.ts +2 -2
- package/esm/admin/orm/models/index.js +2 -2
- package/esm/admin/orm/mutation/index.d.ts +6 -6
- package/esm/admin/orm/mutation/index.js +6 -6
- package/esm/admin/orm/query/index.d.ts +4 -4
- package/esm/admin/orm/query/index.js +4 -4
- package/esm/auth/cli/commands.js +5 -5
- package/esm/auth/cli/executor.d.ts +10 -10
- package/esm/auth/orm/index.d.ts +10 -10
- package/esm/auth/orm/input-types.d.ts +24 -72
- package/esm/auth/orm/mutation/index.d.ts +17 -17
- package/esm/auth/orm/mutation/index.js +24 -24
- package/esm/public/cli/commands/app-claimed-invite.d.ts +8 -0
- package/esm/public/cli/commands/{claimed-invite.js → app-claimed-invite.js} +8 -8
- package/{admin/cli/commands/invite.d.ts → esm/public/cli/commands/app-invite.d.ts} +1 -1
- package/esm/{admin/cli/commands/invite.js → public/cli/commands/app-invite.js} +8 -8
- package/esm/public/cli/commands/rate-limits-module.d.ts +8 -0
- package/esm/public/cli/commands/rate-limits-module.js +382 -0
- package/esm/public/cli/commands/steps-achieved.js +4 -4
- package/esm/public/cli/commands/steps-required.js +4 -4
- package/esm/public/cli/commands/submit-app-invite-code.d.ts +8 -0
- package/esm/public/cli/commands/{submit-invite-code.js → submit-app-invite-code.js} +3 -3
- package/esm/public/cli/commands.js +13 -11
- package/esm/public/cli/executor.d.ts +16 -15
- package/esm/public/orm/index.d.ts +19 -17
- package/esm/public/orm/index.js +6 -4
- package/esm/public/orm/input-types.d.ts +402 -230
- package/esm/public/orm/input-types.js +3 -3
- package/esm/public/orm/models/appClaimedInvite.d.ts +56 -0
- package/esm/public/orm/models/{claimedInvite.js → appClaimedInvite.js} +24 -24
- package/esm/public/orm/models/appInvite.d.ts +56 -0
- package/esm/public/orm/models/{invite.js → appInvite.js} +24 -24
- package/esm/public/orm/models/index.d.ts +3 -2
- package/esm/public/orm/models/index.js +3 -2
- package/esm/public/orm/models/rateLimitsModule.d.ts +56 -0
- package/esm/public/orm/models/rateLimitsModule.js +96 -0
- package/esm/public/orm/mutation/index.d.ts +22 -22
- package/esm/public/orm/mutation/index.js +30 -30
- package/esm/public/orm/query/index.d.ts +4 -4
- package/esm/public/orm/query/index.js +4 -4
- package/package.json +2 -2
- package/public/cli/commands/app-claimed-invite.d.ts +8 -0
- package/public/cli/commands/{claimed-invite.js → app-claimed-invite.js} +8 -8
- package/public/cli/commands/{invite.d.ts → app-invite.d.ts} +1 -1
- package/{admin/cli/commands/invite.js → public/cli/commands/app-invite.js} +8 -8
- package/public/cli/commands/rate-limits-module.d.ts +8 -0
- package/public/cli/commands/rate-limits-module.js +384 -0
- package/public/cli/commands/steps-achieved.js +4 -4
- package/public/cli/commands/steps-required.js +4 -4
- package/public/cli/commands/submit-app-invite-code.d.ts +8 -0
- package/public/cli/commands/{submit-invite-code.js → submit-app-invite-code.js} +3 -3
- package/public/cli/commands.js +13 -11
- package/public/cli/executor.d.ts +16 -15
- package/public/orm/index.d.ts +19 -17
- package/public/orm/index.js +6 -4
- package/public/orm/input-types.d.ts +402 -230
- package/public/orm/input-types.js +3 -3
- package/public/orm/models/appClaimedInvite.d.ts +56 -0
- package/{admin/orm/models/claimedInvite.js → public/orm/models/appClaimedInvite.js} +26 -26
- package/public/orm/models/appInvite.d.ts +56 -0
- package/{admin/orm/models/invite.js → public/orm/models/appInvite.js} +26 -26
- package/public/orm/models/index.d.ts +3 -2
- package/public/orm/models/index.js +8 -6
- package/public/orm/models/rateLimitsModule.d.ts +56 -0
- package/public/orm/models/rateLimitsModule.js +100 -0
- package/public/orm/mutation/index.d.ts +22 -22
- package/public/orm/mutation/index.js +30 -30
- package/public/orm/query/index.d.ts +4 -4
- package/public/orm/query/index.js +4 -4
- package/admin/orm/models/claimedInvite.d.ts +0 -56
- package/admin/orm/models/invite.d.ts +0 -56
- package/esm/admin/cli/commands/submit-invite-code.d.ts +0 -8
- package/esm/admin/orm/models/claimedInvite.d.ts +0 -56
- package/esm/admin/orm/models/invite.d.ts +0 -56
- package/esm/public/cli/commands/claimed-invite.d.ts +0 -8
- package/esm/public/cli/commands/submit-invite-code.d.ts +0 -8
- package/esm/public/orm/models/claimedInvite.d.ts +0 -56
- package/esm/public/orm/models/invite.d.ts +0 -56
- package/public/cli/commands/claimed-invite.d.ts +0 -8
- package/public/cli/commands/submit-invite-code.d.ts +0 -8
- package/public/orm/models/claimedInvite.d.ts +0 -56
- package/public/orm/models/invite.d.ts +0 -56
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
/**
|
|
4
|
-
* CLI commands for
|
|
4
|
+
* CLI commands for AppClaimedInvite
|
|
5
5
|
* @generated by @constructive-io/graphql-codegen
|
|
6
6
|
* DO NOT EDIT - changes will be overwritten
|
|
7
7
|
*/
|
|
@@ -16,7 +16,7 @@ const fieldSchema = {
|
|
|
16
16
|
createdAt: 'string',
|
|
17
17
|
updatedAt: 'string',
|
|
18
18
|
};
|
|
19
|
-
const usage = '\
|
|
19
|
+
const usage = '\napp-claimed-invite <command>\n\nCommands:\n list List appClaimedInvite records\n find-first Find first matching appClaimedInvite record\n get Get a appClaimedInvite by ID\n create Create a new appClaimedInvite\n update Update an existing appClaimedInvite\n delete Delete a appClaimedInvite\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';
|
|
20
20
|
exports.default = async (argv, prompter, _options) => {
|
|
21
21
|
if (argv.help || argv.h) {
|
|
22
22
|
console.log(usage);
|
|
@@ -67,7 +67,7 @@ async function handleList(argv, _prompter) {
|
|
|
67
67
|
};
|
|
68
68
|
const findManyArgs = (0, utils_1.parseFindManyArgs)(argv, defaultSelect);
|
|
69
69
|
const client = (0, executor_1.getClient)();
|
|
70
|
-
const result = await client.
|
|
70
|
+
const result = await client.appClaimedInvite.findMany(findManyArgs).execute();
|
|
71
71
|
console.log(JSON.stringify(result, null, 2));
|
|
72
72
|
}
|
|
73
73
|
catch (error) {
|
|
@@ -90,7 +90,7 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
90
90
|
};
|
|
91
91
|
const findFirstArgs = (0, utils_1.parseFindFirstArgs)(argv, defaultSelect);
|
|
92
92
|
const client = (0, executor_1.getClient)();
|
|
93
|
-
const result = await client.
|
|
93
|
+
const result = await client.appClaimedInvite.findFirst(findFirstArgs).execute();
|
|
94
94
|
console.log(JSON.stringify(result, null, 2));
|
|
95
95
|
}
|
|
96
96
|
catch (error) {
|
|
@@ -112,7 +112,7 @@ async function handleGet(argv, prompter) {
|
|
|
112
112
|
},
|
|
113
113
|
]);
|
|
114
114
|
const client = (0, executor_1.getClient)();
|
|
115
|
-
const result = await client.
|
|
115
|
+
const result = await client.appClaimedInvite
|
|
116
116
|
.findOne({
|
|
117
117
|
id: answers.id,
|
|
118
118
|
select: {
|
|
@@ -163,7 +163,7 @@ async function handleCreate(argv, prompter) {
|
|
|
163
163
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
164
164
|
const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
|
|
165
165
|
const client = (0, executor_1.getClient)();
|
|
166
|
-
const result = await client.
|
|
166
|
+
const result = await client.appClaimedInvite
|
|
167
167
|
.create({
|
|
168
168
|
data: {
|
|
169
169
|
data: cleanedData.data,
|
|
@@ -224,7 +224,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
224
224
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
225
225
|
const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
|
|
226
226
|
const client = (0, executor_1.getClient)();
|
|
227
|
-
const result = await client.
|
|
227
|
+
const result = await client.appClaimedInvite
|
|
228
228
|
.update({
|
|
229
229
|
where: {
|
|
230
230
|
id: answers.id,
|
|
@@ -266,7 +266,7 @@ async function handleDelete(argv, prompter) {
|
|
|
266
266
|
]);
|
|
267
267
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
268
268
|
const client = (0, executor_1.getClient)();
|
|
269
|
-
const result = await client.
|
|
269
|
+
const result = await client.appClaimedInvite
|
|
270
270
|
.delete({
|
|
271
271
|
where: {
|
|
272
272
|
id: answers.id,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
/**
|
|
4
|
-
* CLI commands for
|
|
4
|
+
* CLI commands for AppInvite
|
|
5
5
|
* @generated by @constructive-io/graphql-codegen
|
|
6
6
|
* DO NOT EDIT - changes will be overwritten
|
|
7
7
|
*/
|
|
@@ -22,7 +22,7 @@ const fieldSchema = {
|
|
|
22
22
|
createdAt: 'string',
|
|
23
23
|
updatedAt: 'string',
|
|
24
24
|
};
|
|
25
|
-
const usage = '\
|
|
25
|
+
const usage = '\napp-invite <command>\n\nCommands:\n list List appInvite records\n find-first Find first matching appInvite record\n get Get a appInvite by ID\n create Create a new appInvite\n update Update an existing appInvite\n delete Delete a appInvite\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
26
|
exports.default = async (argv, prompter, _options) => {
|
|
27
27
|
if (argv.help || argv.h) {
|
|
28
28
|
console.log(usage);
|
|
@@ -79,7 +79,7 @@ async function handleList(argv, _prompter) {
|
|
|
79
79
|
};
|
|
80
80
|
const findManyArgs = (0, utils_1.parseFindManyArgs)(argv, defaultSelect);
|
|
81
81
|
const client = (0, executor_1.getClient)();
|
|
82
|
-
const result = await client.
|
|
82
|
+
const result = await client.appInvite.findMany(findManyArgs).execute();
|
|
83
83
|
console.log(JSON.stringify(result, null, 2));
|
|
84
84
|
}
|
|
85
85
|
catch (error) {
|
|
@@ -108,7 +108,7 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
108
108
|
};
|
|
109
109
|
const findFirstArgs = (0, utils_1.parseFindFirstArgs)(argv, defaultSelect);
|
|
110
110
|
const client = (0, executor_1.getClient)();
|
|
111
|
-
const result = await client.
|
|
111
|
+
const result = await client.appInvite.findFirst(findFirstArgs).execute();
|
|
112
112
|
console.log(JSON.stringify(result, null, 2));
|
|
113
113
|
}
|
|
114
114
|
catch (error) {
|
|
@@ -130,7 +130,7 @@ async function handleGet(argv, prompter) {
|
|
|
130
130
|
},
|
|
131
131
|
]);
|
|
132
132
|
const client = (0, executor_1.getClient)();
|
|
133
|
-
const result = await client.
|
|
133
|
+
const result = await client.appInvite
|
|
134
134
|
.findOne({
|
|
135
135
|
id: answers.id,
|
|
136
136
|
select: {
|
|
@@ -229,7 +229,7 @@ async function handleCreate(argv, prompter) {
|
|
|
229
229
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
230
230
|
const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
|
|
231
231
|
const client = (0, executor_1.getClient)();
|
|
232
|
-
const result = await client.
|
|
232
|
+
const result = await client.appInvite
|
|
233
233
|
.create({
|
|
234
234
|
data: {
|
|
235
235
|
email: cleanedData.email,
|
|
@@ -344,7 +344,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
344
344
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
345
345
|
const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
|
|
346
346
|
const client = (0, executor_1.getClient)();
|
|
347
|
-
const result = await client.
|
|
347
|
+
const result = await client.appInvite
|
|
348
348
|
.update({
|
|
349
349
|
where: {
|
|
350
350
|
id: answers.id,
|
|
@@ -398,7 +398,7 @@ async function handleDelete(argv, prompter) {
|
|
|
398
398
|
]);
|
|
399
399
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
400
400
|
const client = (0, executor_1.getClient)();
|
|
401
|
-
const result = await client.
|
|
401
|
+
const result = await client.appInvite
|
|
402
402
|
.delete({
|
|
403
403
|
where: {
|
|
404
404
|
id: answers.id,
|
|
@@ -10,13 +10,13 @@ exports.default = async (argv, prompter, _options) => {
|
|
|
10
10
|
const answers = await prompter.prompt(argv, [
|
|
11
11
|
{
|
|
12
12
|
type: 'text',
|
|
13
|
-
name: '
|
|
14
|
-
message: '
|
|
13
|
+
name: 'level',
|
|
14
|
+
message: 'level',
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
type: 'text',
|
|
18
|
-
name: '
|
|
19
|
-
message: '
|
|
18
|
+
name: 'roleId',
|
|
19
|
+
message: 'roleId',
|
|
20
20
|
},
|
|
21
21
|
]);
|
|
22
22
|
const client = (0, executor_1.getClient)();
|
|
@@ -11,13 +11,13 @@ exports.default = async (argv, prompter, _options) => {
|
|
|
11
11
|
const answers = await prompter.prompt(argv, [
|
|
12
12
|
{
|
|
13
13
|
type: 'text',
|
|
14
|
-
name: '
|
|
15
|
-
message: '
|
|
14
|
+
name: 'level',
|
|
15
|
+
message: 'level',
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
type: 'text',
|
|
19
|
-
name: '
|
|
20
|
-
message: '
|
|
19
|
+
name: 'roleId',
|
|
20
|
+
message: 'roleId',
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
type: 'text',
|
|
@@ -5,7 +5,7 @@ const utils_1 = require("../utils");
|
|
|
5
5
|
exports.default = async (argv, prompter, _options) => {
|
|
6
6
|
try {
|
|
7
7
|
if (argv.help || argv.h) {
|
|
8
|
-
console.log('submit-invite-code -
|
|
8
|
+
console.log('submit-app-invite-code - submitAppInviteCode\n\nUsage: submit-app-invite-code [OPTIONS]\n');
|
|
9
9
|
process.exit(0);
|
|
10
10
|
}
|
|
11
11
|
const answers = await prompter.prompt(argv, [
|
|
@@ -20,14 +20,14 @@ exports.default = async (argv, prompter, _options) => {
|
|
|
20
20
|
const parsedAnswers = (0, utils_1.unflattenDotNotation)(answers);
|
|
21
21
|
const selectFields = (0, utils_1.buildSelectFromPaths)(argv.select ?? 'clientMutationId');
|
|
22
22
|
const result = await client.mutation
|
|
23
|
-
.
|
|
23
|
+
.submitAppInviteCode(parsedAnswers, {
|
|
24
24
|
select: selectFields,
|
|
25
25
|
})
|
|
26
26
|
.execute();
|
|
27
27
|
console.log(JSON.stringify(result, null, 2));
|
|
28
28
|
}
|
|
29
29
|
catch (error) {
|
|
30
|
-
console.error('Failed:
|
|
30
|
+
console.error('Failed: submitAppInviteCode');
|
|
31
31
|
if (error instanceof Error) {
|
|
32
32
|
console.error(error.message);
|
|
33
33
|
}
|
package/admin/cli/commands.js
CHANGED
|
@@ -30,7 +30,7 @@ const membership_type_1 = __importDefault(require("./commands/membership-type"))
|
|
|
30
30
|
const app_limit_1 = __importDefault(require("./commands/app-limit"));
|
|
31
31
|
const app_achievement_1 = __importDefault(require("./commands/app-achievement"));
|
|
32
32
|
const app_step_1 = __importDefault(require("./commands/app-step"));
|
|
33
|
-
const
|
|
33
|
+
const app_claimed_invite_1 = __importDefault(require("./commands/app-claimed-invite"));
|
|
34
34
|
const org_chart_edge_grant_1 = __importDefault(require("./commands/org-chart-edge-grant"));
|
|
35
35
|
const org_limit_1 = __importDefault(require("./commands/org-limit"));
|
|
36
36
|
const app_grant_1 = __importDefault(require("./commands/app-grant"));
|
|
@@ -40,7 +40,7 @@ const org_grant_1 = __importDefault(require("./commands/org-grant"));
|
|
|
40
40
|
const org_chart_edge_1 = __importDefault(require("./commands/org-chart-edge"));
|
|
41
41
|
const org_membership_default_1 = __importDefault(require("./commands/org-membership-default"));
|
|
42
42
|
const app_level_1 = __importDefault(require("./commands/app-level"));
|
|
43
|
-
const
|
|
43
|
+
const app_invite_1 = __importDefault(require("./commands/app-invite"));
|
|
44
44
|
const app_membership_1 = __importDefault(require("./commands/app-membership"));
|
|
45
45
|
const org_membership_1 = __importDefault(require("./commands/org-membership"));
|
|
46
46
|
const org_invite_1 = __importDefault(require("./commands/org-invite"));
|
|
@@ -55,7 +55,7 @@ const org_permissions_get_mask_by_names_1 = __importDefault(require("./commands/
|
|
|
55
55
|
const app_permissions_get_by_mask_1 = __importDefault(require("./commands/app-permissions-get-by-mask"));
|
|
56
56
|
const org_permissions_get_by_mask_1 = __importDefault(require("./commands/org-permissions-get-by-mask"));
|
|
57
57
|
const steps_required_1 = __importDefault(require("./commands/steps-required"));
|
|
58
|
-
const
|
|
58
|
+
const submit_app_invite_code_1 = __importDefault(require("./commands/submit-app-invite-code"));
|
|
59
59
|
const submit_org_invite_code_1 = __importDefault(require("./commands/submit-org-invite-code"));
|
|
60
60
|
const request_upload_url_1 = __importDefault(require("./commands/request-upload-url"));
|
|
61
61
|
const confirm_upload_1 = __importDefault(require("./commands/confirm-upload"));
|
|
@@ -81,7 +81,7 @@ const createCommandMap = () => ({
|
|
|
81
81
|
'app-limit': app_limit_1.default,
|
|
82
82
|
'app-achievement': app_achievement_1.default,
|
|
83
83
|
'app-step': app_step_1.default,
|
|
84
|
-
'claimed-invite':
|
|
84
|
+
'app-claimed-invite': app_claimed_invite_1.default,
|
|
85
85
|
'org-chart-edge-grant': org_chart_edge_grant_1.default,
|
|
86
86
|
'org-limit': org_limit_1.default,
|
|
87
87
|
'app-grant': app_grant_1.default,
|
|
@@ -91,7 +91,7 @@ const createCommandMap = () => ({
|
|
|
91
91
|
'org-chart-edge': org_chart_edge_1.default,
|
|
92
92
|
'org-membership-default': org_membership_default_1.default,
|
|
93
93
|
'app-level': app_level_1.default,
|
|
94
|
-
invite:
|
|
94
|
+
'app-invite': app_invite_1.default,
|
|
95
95
|
'app-membership': app_membership_1.default,
|
|
96
96
|
'org-membership': org_membership_1.default,
|
|
97
97
|
'org-invite': org_invite_1.default,
|
|
@@ -106,13 +106,13 @@ const createCommandMap = () => ({
|
|
|
106
106
|
'app-permissions-get-by-mask': app_permissions_get_by_mask_1.default,
|
|
107
107
|
'org-permissions-get-by-mask': org_permissions_get_by_mask_1.default,
|
|
108
108
|
'steps-required': steps_required_1.default,
|
|
109
|
-
'submit-invite-code':
|
|
109
|
+
'submit-app-invite-code': submit_app_invite_code_1.default,
|
|
110
110
|
'submit-org-invite-code': submit_org_invite_code_1.default,
|
|
111
111
|
'request-upload-url': request_upload_url_1.default,
|
|
112
112
|
'confirm-upload': confirm_upload_1.default,
|
|
113
113
|
'provision-bucket': provision_bucket_1.default,
|
|
114
114
|
});
|
|
115
|
-
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-limit-default appLimitDefault CRUD operations\n org-limit-default orgLimitDefault 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 appLimit CRUD operations\n app-achievement appAchievement CRUD operations\n app-step appStep CRUD operations\n claimed-invite
|
|
115
|
+
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-limit-default appLimitDefault CRUD operations\n org-limit-default orgLimitDefault 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 appLimit CRUD operations\n app-achievement appAchievement CRUD operations\n app-step appStep CRUD operations\n app-claimed-invite appClaimedInvite CRUD operations\n org-chart-edge-grant orgChartEdgeGrant CRUD operations\n org-limit orgLimit CRUD operations\n app-grant appGrant CRUD operations\n app-membership-default appMembershipDefault CRUD operations\n org-claimed-invite orgClaimedInvite CRUD operations\n org-grant orgGrant CRUD operations\n org-chart-edge orgChartEdge CRUD operations\n org-membership-default orgMembershipDefault CRUD operations\n app-level appLevel CRUD operations\n app-invite appInvite CRUD operations\n app-membership appMembership CRUD operations\n org-membership orgMembership CRUD operations\n org-invite orgInvite 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 confirm-upload Confirm that a file has been uploaded to S3.\nVerifies the object exists in S3, checks content-type,\nand transitions the file status from 'pending' to 'ready'.\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";
|
|
116
116
|
const commands = async (argv, prompter, options) => {
|
|
117
117
|
if (argv.help || argv.h) {
|
|
118
118
|
console.log(usage);
|
package/admin/cli/executor.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export declare function getClient(contextName?: string): {
|
|
|
18
18
|
appLimit: import("../orm").AppLimitModel;
|
|
19
19
|
appAchievement: import("../orm").AppAchievementModel;
|
|
20
20
|
appStep: import("../orm").AppStepModel;
|
|
21
|
-
|
|
21
|
+
appClaimedInvite: import("../orm").AppClaimedInviteModel;
|
|
22
22
|
orgChartEdgeGrant: import("../orm").OrgChartEdgeGrantModel;
|
|
23
23
|
orgLimit: import("../orm").OrgLimitModel;
|
|
24
24
|
appGrant: import("../orm").AppGrantModel;
|
|
@@ -28,7 +28,7 @@ export declare function getClient(contextName?: string): {
|
|
|
28
28
|
orgChartEdge: import("../orm").OrgChartEdgeModel;
|
|
29
29
|
orgMembershipDefault: import("../orm").OrgMembershipDefaultModel;
|
|
30
30
|
appLevel: import("../orm").AppLevelModel;
|
|
31
|
-
|
|
31
|
+
appInvite: import("../orm").AppInviteModel;
|
|
32
32
|
appMembership: import("../orm").AppMembershipModel;
|
|
33
33
|
orgMembership: import("../orm").OrgMembershipModel;
|
|
34
34
|
orgInvite: import("../orm").OrgInviteModel;
|
|
@@ -90,10 +90,10 @@ export declare function getClient(contextName?: string): {
|
|
|
90
90
|
}>;
|
|
91
91
|
};
|
|
92
92
|
mutation: {
|
|
93
|
-
|
|
93
|
+
submitAppInviteCode: <S extends import("../orm/input-types").SubmitAppInviteCodePayloadSelect>(args: import("../orm/mutation").SubmitAppInviteCodeVariables, options: {
|
|
94
94
|
select: S;
|
|
95
|
-
} & import("../orm").StrictSelect<S, import("../orm/input-types").
|
|
96
|
-
|
|
95
|
+
} & import("../orm").StrictSelect<S, import("../orm/input-types").SubmitAppInviteCodePayloadSelect>) => import("../orm").QueryBuilder<{
|
|
96
|
+
submitAppInviteCode: import("../orm").InferSelectResult<import("../orm/input-types").SubmitAppInviteCodePayload, S> | null;
|
|
97
97
|
}>;
|
|
98
98
|
submitOrgInviteCode: <S extends import("../orm/input-types").SubmitOrgInviteCodePayloadSelect>(args: import("../orm/mutation").SubmitOrgInviteCodeVariables, options: {
|
|
99
99
|
select: S;
|
package/admin/orm/index.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ import { MembershipTypeModel } from './models/membershipType';
|
|
|
17
17
|
import { AppLimitModel } from './models/appLimit';
|
|
18
18
|
import { AppAchievementModel } from './models/appAchievement';
|
|
19
19
|
import { AppStepModel } from './models/appStep';
|
|
20
|
-
import {
|
|
20
|
+
import { AppClaimedInviteModel } from './models/appClaimedInvite';
|
|
21
21
|
import { OrgChartEdgeGrantModel } from './models/orgChartEdgeGrant';
|
|
22
22
|
import { OrgLimitModel } from './models/orgLimit';
|
|
23
23
|
import { AppGrantModel } from './models/appGrant';
|
|
@@ -27,7 +27,7 @@ import { OrgGrantModel } from './models/orgGrant';
|
|
|
27
27
|
import { OrgChartEdgeModel } from './models/orgChartEdge';
|
|
28
28
|
import { OrgMembershipDefaultModel } from './models/orgMembershipDefault';
|
|
29
29
|
import { AppLevelModel } from './models/appLevel';
|
|
30
|
-
import {
|
|
30
|
+
import { AppInviteModel } from './models/appInvite';
|
|
31
31
|
import { AppMembershipModel } from './models/appMembership';
|
|
32
32
|
import { OrgMembershipModel } from './models/orgMembership';
|
|
33
33
|
import { OrgInviteModel } from './models/orgInvite';
|
|
@@ -81,7 +81,7 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
81
81
|
appLimit: AppLimitModel;
|
|
82
82
|
appAchievement: AppAchievementModel;
|
|
83
83
|
appStep: AppStepModel;
|
|
84
|
-
|
|
84
|
+
appClaimedInvite: AppClaimedInviteModel;
|
|
85
85
|
orgChartEdgeGrant: OrgChartEdgeGrantModel;
|
|
86
86
|
orgLimit: OrgLimitModel;
|
|
87
87
|
appGrant: AppGrantModel;
|
|
@@ -91,7 +91,7 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
91
91
|
orgChartEdge: OrgChartEdgeModel;
|
|
92
92
|
orgMembershipDefault: OrgMembershipDefaultModel;
|
|
93
93
|
appLevel: AppLevelModel;
|
|
94
|
-
|
|
94
|
+
appInvite: AppInviteModel;
|
|
95
95
|
appMembership: AppMembershipModel;
|
|
96
96
|
orgMembership: OrgMembershipModel;
|
|
97
97
|
orgInvite: OrgInviteModel;
|
|
@@ -153,10 +153,10 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
153
153
|
}>;
|
|
154
154
|
};
|
|
155
155
|
mutation: {
|
|
156
|
-
|
|
156
|
+
submitAppInviteCode: <S extends import("./input-types").SubmitAppInviteCodePayloadSelect>(args: import("./mutation").SubmitAppInviteCodeVariables, options: {
|
|
157
157
|
select: S;
|
|
158
|
-
} & import("./select-types").StrictSelect<S, import("./input-types").
|
|
159
|
-
|
|
158
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").SubmitAppInviteCodePayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
159
|
+
submitAppInviteCode: import("./select-types").InferSelectResult<import("./input-types").SubmitAppInviteCodePayload, S> | null;
|
|
160
160
|
}>;
|
|
161
161
|
submitOrgInviteCode: <S extends import("./input-types").SubmitOrgInviteCodePayloadSelect>(args: import("./mutation").SubmitOrgInviteCodeVariables, options: {
|
|
162
162
|
select: S;
|
package/admin/orm/index.js
CHANGED
|
@@ -40,7 +40,7 @@ const membershipType_1 = require("./models/membershipType");
|
|
|
40
40
|
const appLimit_1 = require("./models/appLimit");
|
|
41
41
|
const appAchievement_1 = require("./models/appAchievement");
|
|
42
42
|
const appStep_1 = require("./models/appStep");
|
|
43
|
-
const
|
|
43
|
+
const appClaimedInvite_1 = require("./models/appClaimedInvite");
|
|
44
44
|
const orgChartEdgeGrant_1 = require("./models/orgChartEdgeGrant");
|
|
45
45
|
const orgLimit_1 = require("./models/orgLimit");
|
|
46
46
|
const appGrant_1 = require("./models/appGrant");
|
|
@@ -50,7 +50,7 @@ const orgGrant_1 = require("./models/orgGrant");
|
|
|
50
50
|
const orgChartEdge_1 = require("./models/orgChartEdge");
|
|
51
51
|
const orgMembershipDefault_1 = require("./models/orgMembershipDefault");
|
|
52
52
|
const appLevel_1 = require("./models/appLevel");
|
|
53
|
-
const
|
|
53
|
+
const appInvite_1 = require("./models/appInvite");
|
|
54
54
|
const appMembership_1 = require("./models/appMembership");
|
|
55
55
|
const orgMembership_1 = require("./models/orgMembership");
|
|
56
56
|
const orgInvite_1 = require("./models/orgInvite");
|
|
@@ -112,7 +112,7 @@ function createClient(config) {
|
|
|
112
112
|
appLimit: new appLimit_1.AppLimitModel(client),
|
|
113
113
|
appAchievement: new appAchievement_1.AppAchievementModel(client),
|
|
114
114
|
appStep: new appStep_1.AppStepModel(client),
|
|
115
|
-
|
|
115
|
+
appClaimedInvite: new appClaimedInvite_1.AppClaimedInviteModel(client),
|
|
116
116
|
orgChartEdgeGrant: new orgChartEdgeGrant_1.OrgChartEdgeGrantModel(client),
|
|
117
117
|
orgLimit: new orgLimit_1.OrgLimitModel(client),
|
|
118
118
|
appGrant: new appGrant_1.AppGrantModel(client),
|
|
@@ -122,7 +122,7 @@ function createClient(config) {
|
|
|
122
122
|
orgChartEdge: new orgChartEdge_1.OrgChartEdgeModel(client),
|
|
123
123
|
orgMembershipDefault: new orgMembershipDefault_1.OrgMembershipDefaultModel(client),
|
|
124
124
|
appLevel: new appLevel_1.AppLevelModel(client),
|
|
125
|
-
|
|
125
|
+
appInvite: new appInvite_1.AppInviteModel(client),
|
|
126
126
|
appMembership: new appMembership_1.AppMembershipModel(client),
|
|
127
127
|
orgMembership: new orgMembership_1.OrgMembershipModel(client),
|
|
128
128
|
orgInvite: new orgInvite_1.OrgInviteModel(client),
|