@constructive-sdk/cli 0.20.8 → 0.21.0
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/{esm/public/cli/commands/append-field-smart-tags.d.ts → admin/cli/commands/usage-snapshot.d.ts} +1 -1
- package/admin/cli/commands/usage-snapshot.js +316 -0
- package/admin/cli/commands.js +3 -1
- package/admin/cli/executor.d.ts +1 -0
- package/admin/orm/index.d.ts +2 -0
- package/admin/orm/index.js +2 -0
- package/admin/orm/input-types.d.ts +129 -0
- package/admin/orm/models/index.d.ts +1 -0
- package/admin/orm/models/index.js +3 -1
- package/admin/orm/models/usageSnapshot.d.ts +56 -0
- package/admin/orm/models/usageSnapshot.js +100 -0
- package/{public/cli/commands/append-field-smart-tags.d.ts → esm/admin/cli/commands/usage-snapshot.d.ts} +1 -1
- package/esm/admin/cli/commands/usage-snapshot.js +314 -0
- package/esm/admin/cli/commands.js +3 -1
- package/esm/admin/cli/executor.d.ts +1 -0
- package/esm/admin/orm/index.d.ts +2 -0
- package/esm/admin/orm/index.js +2 -0
- package/esm/admin/orm/input-types.d.ts +129 -0
- package/esm/admin/orm/models/index.d.ts +1 -0
- package/esm/admin/orm/models/index.js +1 -0
- package/esm/admin/orm/models/usageSnapshot.d.ts +56 -0
- package/esm/admin/orm/models/usageSnapshot.js +96 -0
- package/esm/public/cli/commands/{append-table-smart-tags.d.ts → usage-snapshot.d.ts} +1 -1
- package/esm/public/cli/commands/usage-snapshot.js +314 -0
- package/esm/public/cli/commands.js +3 -5
- package/esm/public/cli/executor.d.ts +1 -10
- package/esm/public/orm/index.d.ts +2 -10
- package/esm/public/orm/index.js +2 -0
- package/esm/public/orm/input-types.d.ts +129 -22
- package/esm/public/orm/models/index.d.ts +1 -0
- package/esm/public/orm/models/index.js +1 -0
- package/esm/public/orm/models/usageSnapshot.d.ts +56 -0
- package/esm/public/orm/models/usageSnapshot.js +96 -0
- package/esm/public/orm/mutation/index.d.ts +1 -17
- package/esm/public/orm/mutation/index.js +0 -24
- package/package.json +6 -6
- package/public/cli/commands/{append-table-smart-tags.d.ts → usage-snapshot.d.ts} +1 -1
- package/public/cli/commands/usage-snapshot.js +316 -0
- package/public/cli/commands.js +3 -5
- package/public/cli/executor.d.ts +1 -10
- package/public/orm/index.d.ts +2 -10
- package/public/orm/index.js +2 -0
- package/public/orm/input-types.d.ts +129 -22
- package/public/orm/models/index.d.ts +1 -0
- package/public/orm/models/index.js +3 -1
- package/public/orm/models/usageSnapshot.d.ts +56 -0
- package/public/orm/models/usageSnapshot.js +100 -0
- package/public/orm/mutation/index.d.ts +1 -17
- package/public/orm/mutation/index.js +0 -24
- package/esm/public/cli/commands/append-field-smart-tags.js +0 -34
- package/esm/public/cli/commands/append-table-smart-tags.js +0 -34
- package/public/cli/commands/append-field-smart-tags.js +0 -36
- package/public/cli/commands/append-table-smart-tags.js +0 -36
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/**
|
|
4
|
+
* CLI commands for UsageSnapshot
|
|
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
|
+
databaseId: 'uuid',
|
|
13
|
+
metricName: 'string',
|
|
14
|
+
metricValue: 'int',
|
|
15
|
+
dimensions: 'json',
|
|
16
|
+
capturedAt: 'string',
|
|
17
|
+
id: 'uuid',
|
|
18
|
+
};
|
|
19
|
+
const usage = '\nusage-snapshot <command>\n\nCommands:\n list List usageSnapshot records\n find-first Find first matching usageSnapshot record\n get Get a usageSnapshot by ID\n create Create a new usageSnapshot\n update Update an existing usageSnapshot\n delete Delete a usageSnapshot\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
|
+
exports.default = async (argv, prompter, _options) => {
|
|
21
|
+
if (argv.help || argv.h) {
|
|
22
|
+
console.log(usage);
|
|
23
|
+
process.exit(0);
|
|
24
|
+
}
|
|
25
|
+
const { first: subcommand, newArgv } = (0, inquirerer_1.extractFirst)(argv);
|
|
26
|
+
if (!subcommand) {
|
|
27
|
+
const answer = await prompter.prompt(argv, [
|
|
28
|
+
{
|
|
29
|
+
type: 'autocomplete',
|
|
30
|
+
name: 'subcommand',
|
|
31
|
+
message: 'What do you want to do?',
|
|
32
|
+
options: ['list', 'find-first', 'get', 'create', 'update', 'delete'],
|
|
33
|
+
},
|
|
34
|
+
]);
|
|
35
|
+
return handleTableSubcommand(answer.subcommand, newArgv, prompter);
|
|
36
|
+
}
|
|
37
|
+
return handleTableSubcommand(subcommand, newArgv, prompter);
|
|
38
|
+
};
|
|
39
|
+
async function handleTableSubcommand(subcommand, argv, prompter) {
|
|
40
|
+
switch (subcommand) {
|
|
41
|
+
case 'list':
|
|
42
|
+
return handleList(argv, prompter);
|
|
43
|
+
case 'find-first':
|
|
44
|
+
return handleFindFirst(argv, prompter);
|
|
45
|
+
case 'get':
|
|
46
|
+
return handleGet(argv, prompter);
|
|
47
|
+
case 'create':
|
|
48
|
+
return handleCreate(argv, prompter);
|
|
49
|
+
case 'update':
|
|
50
|
+
return handleUpdate(argv, prompter);
|
|
51
|
+
case 'delete':
|
|
52
|
+
return handleDelete(argv, prompter);
|
|
53
|
+
default:
|
|
54
|
+
console.log(usage);
|
|
55
|
+
process.exit(1);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
async function handleList(argv, _prompter) {
|
|
59
|
+
try {
|
|
60
|
+
const defaultSelect = {
|
|
61
|
+
databaseId: true,
|
|
62
|
+
metricName: true,
|
|
63
|
+
metricValue: true,
|
|
64
|
+
dimensions: true,
|
|
65
|
+
capturedAt: true,
|
|
66
|
+
id: true,
|
|
67
|
+
};
|
|
68
|
+
const findManyArgs = (0, utils_1.parseFindManyArgs)(argv, defaultSelect);
|
|
69
|
+
const client = (0, executor_1.getClient)();
|
|
70
|
+
const result = await client.usageSnapshot.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
|
+
databaseId: true,
|
|
85
|
+
metricName: true,
|
|
86
|
+
metricValue: true,
|
|
87
|
+
dimensions: true,
|
|
88
|
+
capturedAt: true,
|
|
89
|
+
id: true,
|
|
90
|
+
};
|
|
91
|
+
const findFirstArgs = (0, utils_1.parseFindFirstArgs)(argv, defaultSelect);
|
|
92
|
+
const client = (0, executor_1.getClient)();
|
|
93
|
+
const result = await client.usageSnapshot.findFirst(findFirstArgs).execute();
|
|
94
|
+
console.log(JSON.stringify(result, null, 2));
|
|
95
|
+
}
|
|
96
|
+
catch (error) {
|
|
97
|
+
console.error('Failed to find record.');
|
|
98
|
+
if (error instanceof Error) {
|
|
99
|
+
console.error(error.message);
|
|
100
|
+
}
|
|
101
|
+
process.exit(1);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
async function handleGet(argv, prompter) {
|
|
105
|
+
try {
|
|
106
|
+
const answers = await prompter.prompt(argv, [
|
|
107
|
+
{
|
|
108
|
+
type: 'text',
|
|
109
|
+
name: 'id',
|
|
110
|
+
message: 'id',
|
|
111
|
+
required: true,
|
|
112
|
+
},
|
|
113
|
+
]);
|
|
114
|
+
const client = (0, executor_1.getClient)();
|
|
115
|
+
const result = await client.usageSnapshot
|
|
116
|
+
.findOne({
|
|
117
|
+
id: answers.id,
|
|
118
|
+
select: {
|
|
119
|
+
databaseId: true,
|
|
120
|
+
metricName: true,
|
|
121
|
+
metricValue: true,
|
|
122
|
+
dimensions: true,
|
|
123
|
+
capturedAt: true,
|
|
124
|
+
id: true,
|
|
125
|
+
},
|
|
126
|
+
})
|
|
127
|
+
.execute();
|
|
128
|
+
console.log(JSON.stringify(result, null, 2));
|
|
129
|
+
}
|
|
130
|
+
catch (error) {
|
|
131
|
+
console.error('Record not found.');
|
|
132
|
+
if (error instanceof Error) {
|
|
133
|
+
console.error(error.message);
|
|
134
|
+
}
|
|
135
|
+
process.exit(1);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
async function handleCreate(argv, prompter) {
|
|
139
|
+
try {
|
|
140
|
+
const rawAnswers = await prompter.prompt(argv, [
|
|
141
|
+
{
|
|
142
|
+
type: 'text',
|
|
143
|
+
name: 'databaseId',
|
|
144
|
+
message: 'databaseId',
|
|
145
|
+
required: true,
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
type: 'text',
|
|
149
|
+
name: 'metricName',
|
|
150
|
+
message: 'metricName',
|
|
151
|
+
required: true,
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
type: 'text',
|
|
155
|
+
name: 'metricValue',
|
|
156
|
+
message: 'metricValue',
|
|
157
|
+
required: false,
|
|
158
|
+
skipPrompt: true,
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
type: 'json',
|
|
162
|
+
name: 'dimensions',
|
|
163
|
+
message: 'dimensions',
|
|
164
|
+
required: false,
|
|
165
|
+
skipPrompt: true,
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
type: 'text',
|
|
169
|
+
name: 'capturedAt',
|
|
170
|
+
message: 'capturedAt',
|
|
171
|
+
required: false,
|
|
172
|
+
skipPrompt: true,
|
|
173
|
+
},
|
|
174
|
+
]);
|
|
175
|
+
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
176
|
+
const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
|
|
177
|
+
const client = (0, executor_1.getClient)();
|
|
178
|
+
const result = await client.usageSnapshot
|
|
179
|
+
.create({
|
|
180
|
+
data: {
|
|
181
|
+
databaseId: cleanedData.databaseId,
|
|
182
|
+
metricName: cleanedData.metricName,
|
|
183
|
+
metricValue: cleanedData.metricValue,
|
|
184
|
+
dimensions: cleanedData.dimensions,
|
|
185
|
+
capturedAt: cleanedData.capturedAt,
|
|
186
|
+
},
|
|
187
|
+
select: {
|
|
188
|
+
databaseId: true,
|
|
189
|
+
metricName: true,
|
|
190
|
+
metricValue: true,
|
|
191
|
+
dimensions: true,
|
|
192
|
+
capturedAt: true,
|
|
193
|
+
id: true,
|
|
194
|
+
},
|
|
195
|
+
})
|
|
196
|
+
.execute();
|
|
197
|
+
console.log(JSON.stringify(result, null, 2));
|
|
198
|
+
}
|
|
199
|
+
catch (error) {
|
|
200
|
+
console.error('Failed to create record.');
|
|
201
|
+
if (error instanceof Error) {
|
|
202
|
+
console.error(error.message);
|
|
203
|
+
}
|
|
204
|
+
process.exit(1);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
async function handleUpdate(argv, prompter) {
|
|
208
|
+
try {
|
|
209
|
+
const rawAnswers = await prompter.prompt(argv, [
|
|
210
|
+
{
|
|
211
|
+
type: 'text',
|
|
212
|
+
name: 'id',
|
|
213
|
+
message: 'id',
|
|
214
|
+
required: true,
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
type: 'text',
|
|
218
|
+
name: 'databaseId',
|
|
219
|
+
message: 'databaseId',
|
|
220
|
+
required: false,
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
type: 'text',
|
|
224
|
+
name: 'metricName',
|
|
225
|
+
message: 'metricName',
|
|
226
|
+
required: false,
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
type: 'text',
|
|
230
|
+
name: 'metricValue',
|
|
231
|
+
message: 'metricValue',
|
|
232
|
+
required: false,
|
|
233
|
+
skipPrompt: true,
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
type: 'json',
|
|
237
|
+
name: 'dimensions',
|
|
238
|
+
message: 'dimensions',
|
|
239
|
+
required: false,
|
|
240
|
+
skipPrompt: true,
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
type: 'text',
|
|
244
|
+
name: 'capturedAt',
|
|
245
|
+
message: 'capturedAt',
|
|
246
|
+
required: false,
|
|
247
|
+
skipPrompt: true,
|
|
248
|
+
},
|
|
249
|
+
]);
|
|
250
|
+
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
251
|
+
const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
|
|
252
|
+
const client = (0, executor_1.getClient)();
|
|
253
|
+
const result = await client.usageSnapshot
|
|
254
|
+
.update({
|
|
255
|
+
where: {
|
|
256
|
+
id: answers.id,
|
|
257
|
+
},
|
|
258
|
+
data: {
|
|
259
|
+
databaseId: cleanedData.databaseId,
|
|
260
|
+
metricName: cleanedData.metricName,
|
|
261
|
+
metricValue: cleanedData.metricValue,
|
|
262
|
+
dimensions: cleanedData.dimensions,
|
|
263
|
+
capturedAt: cleanedData.capturedAt,
|
|
264
|
+
},
|
|
265
|
+
select: {
|
|
266
|
+
databaseId: true,
|
|
267
|
+
metricName: true,
|
|
268
|
+
metricValue: true,
|
|
269
|
+
dimensions: true,
|
|
270
|
+
capturedAt: true,
|
|
271
|
+
id: true,
|
|
272
|
+
},
|
|
273
|
+
})
|
|
274
|
+
.execute();
|
|
275
|
+
console.log(JSON.stringify(result, null, 2));
|
|
276
|
+
}
|
|
277
|
+
catch (error) {
|
|
278
|
+
console.error('Failed to update record.');
|
|
279
|
+
if (error instanceof Error) {
|
|
280
|
+
console.error(error.message);
|
|
281
|
+
}
|
|
282
|
+
process.exit(1);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
async function handleDelete(argv, prompter) {
|
|
286
|
+
try {
|
|
287
|
+
const rawAnswers = await prompter.prompt(argv, [
|
|
288
|
+
{
|
|
289
|
+
type: 'text',
|
|
290
|
+
name: 'id',
|
|
291
|
+
message: 'id',
|
|
292
|
+
required: true,
|
|
293
|
+
},
|
|
294
|
+
]);
|
|
295
|
+
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
296
|
+
const client = (0, executor_1.getClient)();
|
|
297
|
+
const result = await client.usageSnapshot
|
|
298
|
+
.delete({
|
|
299
|
+
where: {
|
|
300
|
+
id: answers.id,
|
|
301
|
+
},
|
|
302
|
+
select: {
|
|
303
|
+
id: true,
|
|
304
|
+
},
|
|
305
|
+
})
|
|
306
|
+
.execute();
|
|
307
|
+
console.log(JSON.stringify(result, null, 2));
|
|
308
|
+
}
|
|
309
|
+
catch (error) {
|
|
310
|
+
console.error('Failed to delete record.');
|
|
311
|
+
if (error instanceof Error) {
|
|
312
|
+
console.error(error.message);
|
|
313
|
+
}
|
|
314
|
+
process.exit(1);
|
|
315
|
+
}
|
|
316
|
+
}
|
package/admin/cli/commands.js
CHANGED
|
@@ -48,6 +48,7 @@ const app_limit_event_1 = __importDefault(require("./commands/app-limit-event"))
|
|
|
48
48
|
const org_limit_event_1 = __importDefault(require("./commands/org-limit-event"));
|
|
49
49
|
const org_grant_1 = __importDefault(require("./commands/org-grant"));
|
|
50
50
|
const org_chart_edge_1 = __importDefault(require("./commands/org-chart-edge"));
|
|
51
|
+
const usage_snapshot_1 = __importDefault(require("./commands/usage-snapshot"));
|
|
51
52
|
const org_member_profile_1 = __importDefault(require("./commands/org-member-profile"));
|
|
52
53
|
const app_level_1 = __importDefault(require("./commands/app-level"));
|
|
53
54
|
const app_limit_1 = __importDefault(require("./commands/app-limit"));
|
|
@@ -111,6 +112,7 @@ const createCommandMap = () => ({
|
|
|
111
112
|
'org-limit-event': org_limit_event_1.default,
|
|
112
113
|
'org-grant': org_grant_1.default,
|
|
113
114
|
'org-chart-edge': org_chart_edge_1.default,
|
|
115
|
+
'usage-snapshot': usage_snapshot_1.default,
|
|
114
116
|
'org-member-profile': org_member_profile_1.default,
|
|
115
117
|
'app-level': app_level_1.default,
|
|
116
118
|
'app-limit': app_limit_1.default,
|
|
@@ -136,7 +138,7 @@ const createCommandMap = () => ({
|
|
|
136
138
|
'submit-org-invite-code': submit_org_invite_code_1.default,
|
|
137
139
|
'provision-bucket': provision_bucket_1.default,
|
|
138
140
|
});
|
|
139
|
-
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 app-limit-credit-redemption appLimitCreditRedemption CRUD operations\n app-limit-credit-code-item appLimitCreditCodeItem CRUD operations\n app-limit-credit appLimitCredit CRUD operations\n org-member orgMember CRUD operations\n app-permission-default appPermissionDefault CRUD operations\n app-limit-credit-code appLimitCreditCode 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 app-limit-caps-default appLimitCapsDefault CRUD operations\n org-limit-caps-default orgLimitCapsDefault CRUD operations\n app-limit-cap appLimitCap CRUD operations\n org-limit-cap orgLimitCap 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-limit-credit orgLimitCredit 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 org-member-profile orgMemberProfile CRUD operations\n app-level appLevel CRUD operations\n app-limit appLimit CRUD operations\n app-invite appInvite CRUD operations\n org-membership-setting orgMembershipSetting CRUD operations\n org-limit-aggregate orgLimitAggregate CRUD operations\n org-limit orgLimit 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 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';
|
|
141
|
+
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 app-limit-credit-redemption appLimitCreditRedemption CRUD operations\n app-limit-credit-code-item appLimitCreditCodeItem CRUD operations\n app-limit-credit appLimitCredit CRUD operations\n org-member orgMember CRUD operations\n app-permission-default appPermissionDefault CRUD operations\n app-limit-credit-code appLimitCreditCode 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 app-limit-caps-default appLimitCapsDefault CRUD operations\n org-limit-caps-default orgLimitCapsDefault CRUD operations\n app-limit-cap appLimitCap CRUD operations\n org-limit-cap orgLimitCap 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-limit-credit orgLimitCredit 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 usage-snapshot usageSnapshot CRUD operations\n org-member-profile orgMemberProfile CRUD operations\n app-level appLevel CRUD operations\n app-limit appLimit CRUD operations\n app-invite appInvite CRUD operations\n org-membership-setting orgMembershipSetting CRUD operations\n org-limit-aggregate orgLimitAggregate CRUD operations\n org-limit orgLimit 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 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';
|
|
140
142
|
const commands = async (argv, prompter, options) => {
|
|
141
143
|
if (argv.help || argv.h) {
|
|
142
144
|
console.log(usage);
|
package/admin/cli/executor.d.ts
CHANGED
|
@@ -36,6 +36,7 @@ export declare function getClient(contextName?: string): {
|
|
|
36
36
|
orgLimitEvent: import("../orm").OrgLimitEventModel;
|
|
37
37
|
orgGrant: import("../orm").OrgGrantModel;
|
|
38
38
|
orgChartEdge: import("../orm").OrgChartEdgeModel;
|
|
39
|
+
usageSnapshot: import("../orm").UsageSnapshotModel;
|
|
39
40
|
orgMemberProfile: import("../orm").OrgMemberProfileModel;
|
|
40
41
|
appLevel: import("../orm").AppLevelModel;
|
|
41
42
|
appLimit: import("../orm").AppLimitModel;
|
package/admin/orm/index.d.ts
CHANGED
|
@@ -35,6 +35,7 @@ import { AppLimitEventModel } from './models/appLimitEvent';
|
|
|
35
35
|
import { OrgLimitEventModel } from './models/orgLimitEvent';
|
|
36
36
|
import { OrgGrantModel } from './models/orgGrant';
|
|
37
37
|
import { OrgChartEdgeModel } from './models/orgChartEdge';
|
|
38
|
+
import { UsageSnapshotModel } from './models/usageSnapshot';
|
|
38
39
|
import { OrgMemberProfileModel } from './models/orgMemberProfile';
|
|
39
40
|
import { AppLevelModel } from './models/appLevel';
|
|
40
41
|
import { AppLimitModel } from './models/appLimit';
|
|
@@ -113,6 +114,7 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
113
114
|
orgLimitEvent: OrgLimitEventModel;
|
|
114
115
|
orgGrant: OrgGrantModel;
|
|
115
116
|
orgChartEdge: OrgChartEdgeModel;
|
|
117
|
+
usageSnapshot: UsageSnapshotModel;
|
|
116
118
|
orgMemberProfile: OrgMemberProfileModel;
|
|
117
119
|
appLevel: AppLevelModel;
|
|
118
120
|
appLimit: AppLimitModel;
|
package/admin/orm/index.js
CHANGED
|
@@ -58,6 +58,7 @@ const appLimitEvent_1 = require("./models/appLimitEvent");
|
|
|
58
58
|
const orgLimitEvent_1 = require("./models/orgLimitEvent");
|
|
59
59
|
const orgGrant_1 = require("./models/orgGrant");
|
|
60
60
|
const orgChartEdge_1 = require("./models/orgChartEdge");
|
|
61
|
+
const usageSnapshot_1 = require("./models/usageSnapshot");
|
|
61
62
|
const orgMemberProfile_1 = require("./models/orgMemberProfile");
|
|
62
63
|
const appLevel_1 = require("./models/appLevel");
|
|
63
64
|
const appLimit_1 = require("./models/appLimit");
|
|
@@ -144,6 +145,7 @@ function createClient(config) {
|
|
|
144
145
|
orgLimitEvent: new orgLimitEvent_1.OrgLimitEventModel(client),
|
|
145
146
|
orgGrant: new orgGrant_1.OrgGrantModel(client),
|
|
146
147
|
orgChartEdge: new orgChartEdge_1.OrgChartEdgeModel(client),
|
|
148
|
+
usageSnapshot: new usageSnapshot_1.UsageSnapshotModel(client),
|
|
147
149
|
orgMemberProfile: new orgMemberProfile_1.OrgMemberProfileModel(client),
|
|
148
150
|
appLevel: new appLevel_1.AppLevelModel(client),
|
|
149
151
|
appLimit: new appLimit_1.AppLimitModel(client),
|
|
@@ -661,6 +661,20 @@ export interface OrgChartEdge {
|
|
|
661
661
|
/** Numeric seniority level for this position (higher = more senior) */
|
|
662
662
|
positionLevel?: number | null;
|
|
663
663
|
}
|
|
664
|
+
/** Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. */
|
|
665
|
+
export interface UsageSnapshot {
|
|
666
|
+
/** The database this snapshot belongs to. References metaschema_public.database.id but declared without an FK constraint — the snapshot collector runs in a platform context where the FK would add overhead without value. */
|
|
667
|
+
databaseId?: string | null;
|
|
668
|
+
/** Identifier for the metric being measured (e.g. 'reads', 'writes', 'storage_bytes', 'compute_time_ms'). */
|
|
669
|
+
metricName?: string | null;
|
|
670
|
+
/** The measured value at the time of capture. Interpretation depends on metric_name (count, bytes, milliseconds, etc.). */
|
|
671
|
+
metricValue?: string | null;
|
|
672
|
+
/** Optional sub-metric breakdowns as key-value pairs (e.g. {"query_type": "select"} for reads). Empty object when no breakdown is needed. */
|
|
673
|
+
dimensions?: Record<string, unknown> | null;
|
|
674
|
+
/** When this snapshot was taken. Defaults to the current timestamp; the snapshot collector may override this for backdated imports. */
|
|
675
|
+
capturedAt?: string | null;
|
|
676
|
+
id: string;
|
|
677
|
+
}
|
|
664
678
|
/** Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) */
|
|
665
679
|
export interface OrgMemberProfile {
|
|
666
680
|
id: string;
|
|
@@ -1008,6 +1022,8 @@ export interface OrgGrantRelations {
|
|
|
1008
1022
|
}
|
|
1009
1023
|
export interface OrgChartEdgeRelations {
|
|
1010
1024
|
}
|
|
1025
|
+
export interface UsageSnapshotRelations {
|
|
1026
|
+
}
|
|
1011
1027
|
export interface OrgMemberProfileRelations {
|
|
1012
1028
|
membership?: OrgMembership | null;
|
|
1013
1029
|
}
|
|
@@ -1066,6 +1082,7 @@ export type AppLimitEventWithRelations = AppLimitEvent & AppLimitEventRelations;
|
|
|
1066
1082
|
export type OrgLimitEventWithRelations = OrgLimitEvent & OrgLimitEventRelations;
|
|
1067
1083
|
export type OrgGrantWithRelations = OrgGrant & OrgGrantRelations;
|
|
1068
1084
|
export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations;
|
|
1085
|
+
export type UsageSnapshotWithRelations = UsageSnapshot & UsageSnapshotRelations;
|
|
1069
1086
|
export type OrgMemberProfileWithRelations = OrgMemberProfile & OrgMemberProfileRelations;
|
|
1070
1087
|
export type AppLevelWithRelations = AppLevel & AppLevelRelations;
|
|
1071
1088
|
export type AppLimitWithRelations = AppLimit & AppLimitRelations;
|
|
@@ -1393,6 +1410,14 @@ export type OrgChartEdgeSelect = {
|
|
|
1393
1410
|
positionTitle?: boolean;
|
|
1394
1411
|
positionLevel?: boolean;
|
|
1395
1412
|
};
|
|
1413
|
+
export type UsageSnapshotSelect = {
|
|
1414
|
+
databaseId?: boolean;
|
|
1415
|
+
metricName?: boolean;
|
|
1416
|
+
metricValue?: boolean;
|
|
1417
|
+
dimensions?: boolean;
|
|
1418
|
+
capturedAt?: boolean;
|
|
1419
|
+
id?: boolean;
|
|
1420
|
+
};
|
|
1396
1421
|
export type OrgMemberProfileSelect = {
|
|
1397
1422
|
id?: boolean;
|
|
1398
1423
|
createdAt?: boolean;
|
|
@@ -2252,6 +2277,26 @@ export interface OrgChartEdgeFilter {
|
|
|
2252
2277
|
/** Negates the expression. */
|
|
2253
2278
|
not?: OrgChartEdgeFilter;
|
|
2254
2279
|
}
|
|
2280
|
+
export interface UsageSnapshotFilter {
|
|
2281
|
+
/** Filter by the object’s `databaseId` field. */
|
|
2282
|
+
databaseId?: UUIDFilter;
|
|
2283
|
+
/** Filter by the object’s `metricName` field. */
|
|
2284
|
+
metricName?: StringFilter;
|
|
2285
|
+
/** Filter by the object’s `metricValue` field. */
|
|
2286
|
+
metricValue?: BigIntFilter;
|
|
2287
|
+
/** Filter by the object’s `dimensions` field. */
|
|
2288
|
+
dimensions?: JSONFilter;
|
|
2289
|
+
/** Filter by the object’s `capturedAt` field. */
|
|
2290
|
+
capturedAt?: DatetimeFilter;
|
|
2291
|
+
/** Filter by the object’s `id` field. */
|
|
2292
|
+
id?: UUIDFilter;
|
|
2293
|
+
/** Checks for all expressions in this list. */
|
|
2294
|
+
and?: UsageSnapshotFilter[];
|
|
2295
|
+
/** Checks for any expressions in this list. */
|
|
2296
|
+
or?: UsageSnapshotFilter[];
|
|
2297
|
+
/** Negates the expression. */
|
|
2298
|
+
not?: UsageSnapshotFilter;
|
|
2299
|
+
}
|
|
2255
2300
|
export interface OrgMemberProfileFilter {
|
|
2256
2301
|
/** Filter by the object’s `id` field. */
|
|
2257
2302
|
id?: UUIDFilter;
|
|
@@ -2628,6 +2673,7 @@ export type AppLimitEventOrderBy = 'NATURAL' | 'NAME_ASC' | 'NAME_DESC' | 'ACTOR
|
|
|
2628
2673
|
export type OrgLimitEventOrderBy = 'NATURAL' | 'NAME_ASC' | 'NAME_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'EVENT_TYPE_ASC' | 'EVENT_TYPE_DESC' | 'DELTA_ASC' | 'DELTA_DESC' | 'NUM_BEFORE_ASC' | 'NUM_BEFORE_DESC' | 'NUM_AFTER_ASC' | 'NUM_AFTER_DESC' | 'MAX_AT_EVENT_ASC' | 'MAX_AT_EVENT_DESC' | 'REASON_ASC' | 'REASON_DESC';
|
|
2629
2674
|
export type OrgGrantOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'PERMISSIONS_ASC' | 'PERMISSIONS_DESC' | 'IS_GRANT_ASC' | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
|
|
2630
2675
|
export type OrgChartEdgeOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'CHILD_ID_ASC' | 'CHILD_ID_DESC' | 'PARENT_ID_ASC' | 'PARENT_ID_DESC' | 'POSITION_TITLE_ASC' | 'POSITION_TITLE_DESC' | 'POSITION_LEVEL_ASC' | 'POSITION_LEVEL_DESC';
|
|
2676
|
+
export type UsageSnapshotOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'METRIC_NAME_ASC' | 'METRIC_NAME_DESC' | 'METRIC_VALUE_ASC' | 'METRIC_VALUE_DESC' | 'DIMENSIONS_ASC' | 'DIMENSIONS_DESC' | 'CAPTURED_AT_ASC' | 'CAPTURED_AT_DESC' | 'ID_ASC' | 'ID_DESC';
|
|
2631
2677
|
export type OrgMemberProfileOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'MEMBERSHIP_ID_ASC' | 'MEMBERSHIP_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'DISPLAY_NAME_ASC' | 'DISPLAY_NAME_DESC' | 'EMAIL_ASC' | 'EMAIL_DESC' | 'TITLE_ASC' | 'TITLE_DESC' | 'BIO_ASC' | 'BIO_DESC' | 'PROFILE_PICTURE_ASC' | 'PROFILE_PICTURE_DESC';
|
|
2632
2678
|
export type AppLevelOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'IMAGE_ASC' | 'IMAGE_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
|
|
2633
2679
|
export type AppLimitOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'NUM_ASC' | 'NUM_DESC' | 'MAX_ASC' | 'MAX_DESC' | 'SOFT_MAX_ASC' | 'SOFT_MAX_DESC' | 'WINDOW_START_ASC' | 'WINDOW_START_DESC' | 'WINDOW_DURATION_ASC' | 'WINDOW_DURATION_DESC' | 'PLAN_MAX_ASC' | 'PLAN_MAX_DESC' | 'PURCHASED_CREDITS_ASC' | 'PURCHASED_CREDITS_DESC' | 'PERIOD_CREDITS_ASC' | 'PERIOD_CREDITS_DESC';
|
|
@@ -3492,6 +3538,32 @@ export interface DeleteOrgChartEdgeInput {
|
|
|
3492
3538
|
clientMutationId?: string;
|
|
3493
3539
|
id: string;
|
|
3494
3540
|
}
|
|
3541
|
+
export interface CreateUsageSnapshotInput {
|
|
3542
|
+
clientMutationId?: string;
|
|
3543
|
+
usageSnapshot: {
|
|
3544
|
+
databaseId: string;
|
|
3545
|
+
metricName: string;
|
|
3546
|
+
metricValue?: string;
|
|
3547
|
+
dimensions?: Record<string, unknown>;
|
|
3548
|
+
capturedAt?: string;
|
|
3549
|
+
};
|
|
3550
|
+
}
|
|
3551
|
+
export interface UsageSnapshotPatch {
|
|
3552
|
+
databaseId?: string | null;
|
|
3553
|
+
metricName?: string | null;
|
|
3554
|
+
metricValue?: string | null;
|
|
3555
|
+
dimensions?: Record<string, unknown> | null;
|
|
3556
|
+
capturedAt?: string | null;
|
|
3557
|
+
}
|
|
3558
|
+
export interface UpdateUsageSnapshotInput {
|
|
3559
|
+
clientMutationId?: string;
|
|
3560
|
+
id: string;
|
|
3561
|
+
usageSnapshotPatch: UsageSnapshotPatch;
|
|
3562
|
+
}
|
|
3563
|
+
export interface DeleteUsageSnapshotInput {
|
|
3564
|
+
clientMutationId?: string;
|
|
3565
|
+
id: string;
|
|
3566
|
+
}
|
|
3495
3567
|
export interface CreateOrgMemberProfileInput {
|
|
3496
3568
|
clientMutationId?: string;
|
|
3497
3569
|
orgMemberProfile: {
|
|
@@ -5978,6 +6050,51 @@ export type DeleteOrgChartEdgePayloadSelect = {
|
|
|
5978
6050
|
select: OrgChartEdgeEdgeSelect;
|
|
5979
6051
|
};
|
|
5980
6052
|
};
|
|
6053
|
+
export interface CreateUsageSnapshotPayload {
|
|
6054
|
+
clientMutationId?: string | null;
|
|
6055
|
+
/** The `UsageSnapshot` that was created by this mutation. */
|
|
6056
|
+
usageSnapshot?: UsageSnapshot | null;
|
|
6057
|
+
usageSnapshotEdge?: UsageSnapshotEdge | null;
|
|
6058
|
+
}
|
|
6059
|
+
export type CreateUsageSnapshotPayloadSelect = {
|
|
6060
|
+
clientMutationId?: boolean;
|
|
6061
|
+
usageSnapshot?: {
|
|
6062
|
+
select: UsageSnapshotSelect;
|
|
6063
|
+
};
|
|
6064
|
+
usageSnapshotEdge?: {
|
|
6065
|
+
select: UsageSnapshotEdgeSelect;
|
|
6066
|
+
};
|
|
6067
|
+
};
|
|
6068
|
+
export interface UpdateUsageSnapshotPayload {
|
|
6069
|
+
clientMutationId?: string | null;
|
|
6070
|
+
/** The `UsageSnapshot` that was updated by this mutation. */
|
|
6071
|
+
usageSnapshot?: UsageSnapshot | null;
|
|
6072
|
+
usageSnapshotEdge?: UsageSnapshotEdge | null;
|
|
6073
|
+
}
|
|
6074
|
+
export type UpdateUsageSnapshotPayloadSelect = {
|
|
6075
|
+
clientMutationId?: boolean;
|
|
6076
|
+
usageSnapshot?: {
|
|
6077
|
+
select: UsageSnapshotSelect;
|
|
6078
|
+
};
|
|
6079
|
+
usageSnapshotEdge?: {
|
|
6080
|
+
select: UsageSnapshotEdgeSelect;
|
|
6081
|
+
};
|
|
6082
|
+
};
|
|
6083
|
+
export interface DeleteUsageSnapshotPayload {
|
|
6084
|
+
clientMutationId?: string | null;
|
|
6085
|
+
/** The `UsageSnapshot` that was deleted by this mutation. */
|
|
6086
|
+
usageSnapshot?: UsageSnapshot | null;
|
|
6087
|
+
usageSnapshotEdge?: UsageSnapshotEdge | null;
|
|
6088
|
+
}
|
|
6089
|
+
export type DeleteUsageSnapshotPayloadSelect = {
|
|
6090
|
+
clientMutationId?: boolean;
|
|
6091
|
+
usageSnapshot?: {
|
|
6092
|
+
select: UsageSnapshotSelect;
|
|
6093
|
+
};
|
|
6094
|
+
usageSnapshotEdge?: {
|
|
6095
|
+
select: UsageSnapshotEdgeSelect;
|
|
6096
|
+
};
|
|
6097
|
+
};
|
|
5981
6098
|
export interface CreateOrgMemberProfilePayload {
|
|
5982
6099
|
clientMutationId?: string | null;
|
|
5983
6100
|
/** The `OrgMemberProfile` that was created by this mutation. */
|
|
@@ -6829,6 +6946,18 @@ export type OrgChartEdgeEdgeSelect = {
|
|
|
6829
6946
|
select: OrgChartEdgeSelect;
|
|
6830
6947
|
};
|
|
6831
6948
|
};
|
|
6949
|
+
/** A `UsageSnapshot` edge in the connection. */
|
|
6950
|
+
export interface UsageSnapshotEdge {
|
|
6951
|
+
cursor?: string | null;
|
|
6952
|
+
/** The `UsageSnapshot` at the end of the edge. */
|
|
6953
|
+
node?: UsageSnapshot | null;
|
|
6954
|
+
}
|
|
6955
|
+
export type UsageSnapshotEdgeSelect = {
|
|
6956
|
+
cursor?: boolean;
|
|
6957
|
+
node?: {
|
|
6958
|
+
select: UsageSnapshotSelect;
|
|
6959
|
+
};
|
|
6960
|
+
};
|
|
6832
6961
|
/** A `OrgMemberProfile` edge in the connection. */
|
|
6833
6962
|
export interface OrgMemberProfileEdge {
|
|
6834
6963
|
cursor?: string | null;
|
|
@@ -39,6 +39,7 @@ export { AppLimitEventModel } from './appLimitEvent';
|
|
|
39
39
|
export { OrgLimitEventModel } from './orgLimitEvent';
|
|
40
40
|
export { OrgGrantModel } from './orgGrant';
|
|
41
41
|
export { OrgChartEdgeModel } from './orgChartEdge';
|
|
42
|
+
export { UsageSnapshotModel } from './usageSnapshot';
|
|
42
43
|
export { OrgMemberProfileModel } from './orgMemberProfile';
|
|
43
44
|
export { AppLevelModel } from './appLevel';
|
|
44
45
|
export { AppLimitModel } from './appLimit';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OrgMembershipModel = exports.AppMembershipModel = exports.OrgInviteModel = exports.OrgLimitModel = exports.OrgLimitAggregateModel = exports.OrgMembershipSettingModel = exports.AppInviteModel = exports.AppLimitModel = exports.AppLevelModel = exports.OrgMemberProfileModel = exports.OrgChartEdgeModel = exports.OrgGrantModel = exports.OrgLimitEventModel = exports.AppLimitEventModel = exports.OrgClaimedInviteModel = exports.OrgMembershipDefaultModel = exports.AppMembershipDefaultModel = exports.AppGrantModel = exports.AppClaimedInviteModel = exports.OrgChartEdgeGrantModel = exports.OrgLimitCreditModel = exports.OrgLimitDefaultModel = exports.AppLimitDefaultModel = exports.MembershipTypeModel = exports.OrgOwnerGrantModel = exports.OrgAdminGrantModel = exports.OrgLimitCapModel = exports.AppLimitCapModel = exports.OrgLimitCapsDefaultModel = exports.AppLimitCapsDefaultModel = exports.AppStepModel = exports.AppAchievementModel = exports.AppOwnerGrantModel = exports.AppAdminGrantModel = exports.OrgPermissionDefaultModel = exports.AppLimitCreditCodeModel = exports.AppPermissionDefaultModel = exports.OrgMemberModel = exports.AppLimitCreditModel = exports.AppLimitCreditCodeItemModel = exports.AppLimitCreditRedemptionModel = exports.AppLevelRequirementModel = exports.OrgPermissionModel = exports.AppPermissionModel = exports.OrgGetSubordinatesRecordModel = exports.OrgGetManagersRecordModel = void 0;
|
|
3
|
+
exports.OrgMembershipModel = exports.AppMembershipModel = exports.OrgInviteModel = exports.OrgLimitModel = exports.OrgLimitAggregateModel = exports.OrgMembershipSettingModel = exports.AppInviteModel = exports.AppLimitModel = exports.AppLevelModel = exports.OrgMemberProfileModel = exports.UsageSnapshotModel = exports.OrgChartEdgeModel = exports.OrgGrantModel = exports.OrgLimitEventModel = exports.AppLimitEventModel = exports.OrgClaimedInviteModel = exports.OrgMembershipDefaultModel = exports.AppMembershipDefaultModel = exports.AppGrantModel = exports.AppClaimedInviteModel = exports.OrgChartEdgeGrantModel = exports.OrgLimitCreditModel = exports.OrgLimitDefaultModel = exports.AppLimitDefaultModel = exports.MembershipTypeModel = exports.OrgOwnerGrantModel = exports.OrgAdminGrantModel = exports.OrgLimitCapModel = exports.AppLimitCapModel = exports.OrgLimitCapsDefaultModel = exports.AppLimitCapsDefaultModel = exports.AppStepModel = exports.AppAchievementModel = exports.AppOwnerGrantModel = exports.AppAdminGrantModel = exports.OrgPermissionDefaultModel = exports.AppLimitCreditCodeModel = exports.AppPermissionDefaultModel = exports.OrgMemberModel = exports.AppLimitCreditModel = exports.AppLimitCreditCodeItemModel = exports.AppLimitCreditRedemptionModel = exports.AppLevelRequirementModel = exports.OrgPermissionModel = exports.AppPermissionModel = exports.OrgGetSubordinatesRecordModel = exports.OrgGetManagersRecordModel = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Models barrel export
|
|
6
6
|
* @generated by @constructive-io/graphql-codegen
|
|
@@ -78,6 +78,8 @@ var orgGrant_1 = require("./orgGrant");
|
|
|
78
78
|
Object.defineProperty(exports, "OrgGrantModel", { enumerable: true, get: function () { return orgGrant_1.OrgGrantModel; } });
|
|
79
79
|
var orgChartEdge_1 = require("./orgChartEdge");
|
|
80
80
|
Object.defineProperty(exports, "OrgChartEdgeModel", { enumerable: true, get: function () { return orgChartEdge_1.OrgChartEdgeModel; } });
|
|
81
|
+
var usageSnapshot_1 = require("./usageSnapshot");
|
|
82
|
+
Object.defineProperty(exports, "UsageSnapshotModel", { enumerable: true, get: function () { return usageSnapshot_1.UsageSnapshotModel; } });
|
|
81
83
|
var orgMemberProfile_1 = require("./orgMemberProfile");
|
|
82
84
|
Object.defineProperty(exports, "OrgMemberProfileModel", { enumerable: true, get: function () { return orgMemberProfile_1.OrgMemberProfileModel; } });
|
|
83
85
|
var appLevel_1 = require("./appLevel");
|