@constructive-sdk/cli 1.20.6 → 1.20.8
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/agent/orm/input-types.d.ts +4 -4
- package/api/cli/commands/email-provider-account.js +0 -22
- package/api/cli/commands/list-suspended-databases-record.d.ts +8 -0
- package/api/cli/commands/list-suspended-databases-record.js +152 -0
- package/api/cli/commands/platform-email-provider-account.js +0 -22
- package/api/cli/commands.js +3 -1
- package/api/cli/executor.d.ts +1 -0
- package/api/orm/index.d.ts +2 -0
- package/api/orm/index.js +2 -0
- package/api/orm/input-types.d.ts +60 -30
- package/api/orm/models/index.d.ts +1 -0
- package/api/orm/models/index.js +4 -2
- package/api/orm/models/listSuspendedDatabasesRecord.d.ts +36 -0
- package/api/orm/models/listSuspendedDatabasesRecord.js +80 -0
- package/auth/cli/commands/{provision-new-user.d.ts → request-magic-link.d.ts} +1 -1
- package/auth/cli/commands/{provision-new-user.js → request-magic-link.js} +3 -3
- package/auth/cli/commands/send-mfa-challenge-code.d.ts +8 -0
- package/auth/cli/commands/send-mfa-challenge-code.js +36 -0
- package/{esm/auth/cli/commands/provision-new-user.d.ts → auth/cli/commands/send-sms-otp.d.ts} +1 -1
- package/auth/cli/commands/send-sms-otp.js +36 -0
- package/auth/cli/commands.js +7 -3
- package/auth/cli/executor.d.ts +15 -5
- package/auth/orm/index.d.ts +15 -5
- package/auth/orm/input-types.d.ts +44 -14
- package/auth/orm/mutation/index.d.ts +25 -9
- package/auth/orm/mutation/index.js +36 -12
- package/compute/cli/commands/function-execution-logs-append.d.ts +8 -0
- package/compute/cli/commands/function-execution-logs-append.js +36 -0
- package/compute/cli/commands/function-schedule.d.ts +8 -0
- package/compute/cli/commands/function-schedule.js +434 -0
- package/compute/cli/commands/platform-function-execution-logs-append.d.ts +8 -0
- package/compute/cli/commands/platform-function-execution-logs-append.js +36 -0
- package/compute/cli/commands/platform-function-schedule.d.ts +8 -0
- package/compute/cli/commands/platform-function-schedule.js +414 -0
- package/compute/cli/commands.js +9 -1
- package/compute/cli/executor.d.ts +12 -0
- package/compute/orm/index.d.ts +14 -0
- package/compute/orm/index.js +4 -0
- package/compute/orm/input-types.d.ts +553 -4
- package/compute/orm/input-types.js +2 -0
- package/compute/orm/models/functionSchedule.d.ts +54 -0
- package/compute/orm/models/functionSchedule.js +104 -0
- package/compute/orm/models/index.d.ts +2 -0
- package/compute/orm/models/index.js +7 -3
- package/compute/orm/models/platformFunctionSchedule.d.ts +54 -0
- package/compute/orm/models/platformFunctionSchedule.js +104 -0
- package/compute/orm/mutation/index.d.ts +17 -1
- package/compute/orm/mutation/index.js +24 -0
- package/esm/agent/orm/input-types.d.ts +4 -4
- package/esm/api/cli/commands/email-provider-account.js +0 -22
- package/esm/api/cli/commands/list-suspended-databases-record.d.ts +8 -0
- package/esm/api/cli/commands/list-suspended-databases-record.js +150 -0
- package/esm/api/cli/commands/platform-email-provider-account.js +0 -22
- package/esm/api/cli/commands.js +3 -1
- package/esm/api/cli/executor.d.ts +1 -0
- package/esm/api/orm/index.d.ts +2 -0
- package/esm/api/orm/index.js +2 -0
- package/esm/api/orm/input-types.d.ts +60 -30
- package/esm/api/orm/models/index.d.ts +1 -0
- package/esm/api/orm/models/index.js +1 -0
- package/esm/api/orm/models/listSuspendedDatabasesRecord.d.ts +36 -0
- package/esm/api/orm/models/listSuspendedDatabasesRecord.js +76 -0
- package/esm/auth/cli/commands/request-magic-link.d.ts +8 -0
- package/esm/auth/cli/commands/{provision-new-user.js → request-magic-link.js} +3 -3
- package/esm/auth/cli/commands/send-mfa-challenge-code.d.ts +8 -0
- package/esm/auth/cli/commands/send-mfa-challenge-code.js +34 -0
- package/esm/auth/cli/commands/send-sms-otp.d.ts +8 -0
- package/esm/auth/cli/commands/send-sms-otp.js +34 -0
- package/esm/auth/cli/commands.js +7 -3
- package/esm/auth/cli/executor.d.ts +15 -5
- package/esm/auth/orm/index.d.ts +15 -5
- package/esm/auth/orm/input-types.d.ts +44 -14
- package/esm/auth/orm/mutation/index.d.ts +25 -9
- package/esm/auth/orm/mutation/index.js +36 -12
- package/esm/compute/cli/commands/function-execution-logs-append.d.ts +8 -0
- package/esm/compute/cli/commands/function-execution-logs-append.js +34 -0
- package/esm/compute/cli/commands/function-schedule.d.ts +8 -0
- package/esm/compute/cli/commands/function-schedule.js +432 -0
- package/esm/compute/cli/commands/platform-function-execution-logs-append.d.ts +8 -0
- package/esm/compute/cli/commands/platform-function-execution-logs-append.js +34 -0
- package/esm/compute/cli/commands/platform-function-schedule.d.ts +8 -0
- package/esm/compute/cli/commands/platform-function-schedule.js +412 -0
- package/esm/compute/cli/commands.js +9 -1
- package/esm/compute/cli/executor.d.ts +12 -0
- package/esm/compute/orm/index.d.ts +14 -0
- package/esm/compute/orm/index.js +4 -0
- package/esm/compute/orm/input-types.d.ts +553 -4
- package/esm/compute/orm/input-types.js +2 -0
- package/esm/compute/orm/models/functionSchedule.d.ts +54 -0
- package/esm/compute/orm/models/functionSchedule.js +100 -0
- package/esm/compute/orm/models/index.d.ts +2 -0
- package/esm/compute/orm/models/index.js +2 -0
- package/esm/compute/orm/models/platformFunctionSchedule.d.ts +54 -0
- package/esm/compute/orm/models/platformFunctionSchedule.js +100 -0
- package/esm/compute/orm/mutation/index.d.ts +17 -1
- package/esm/compute/orm/mutation/index.js +24 -0
- package/esm/modules/cli/commands/billing-provider-module.js +66 -0
- package/esm/modules/cli/commands/entity-type-provision.js +0 -88
- package/esm/modules/cli/commands/plans-module.js +0 -22
- package/esm/modules/orm/input-types.d.ts +26 -48
- package/esm/remote/cli/commands/machine.js +22 -0
- package/esm/remote/orm/input-types.d.ts +13 -1
- package/modules/cli/commands/billing-provider-module.js +66 -0
- package/modules/cli/commands/entity-type-provision.js +0 -88
- package/modules/cli/commands/plans-module.js +0 -22
- package/modules/orm/input-types.d.ts +26 -48
- package/package.json +5 -5
- package/remote/cli/commands/machine.js +22 -0
- package/remote/orm/input-types.d.ts +13 -1
|
@@ -0,0 +1,414 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/**
|
|
4
|
+
* CLI commands for PlatformFunctionSchedule
|
|
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
|
+
actorId: 'uuid',
|
|
13
|
+
createdAt: 'string',
|
|
14
|
+
description: 'string',
|
|
15
|
+
functionDefinitionId: 'uuid',
|
|
16
|
+
id: 'uuid',
|
|
17
|
+
isActive: 'boolean',
|
|
18
|
+
name: 'string',
|
|
19
|
+
payload: 'json',
|
|
20
|
+
scheduleInfo: 'json',
|
|
21
|
+
suspendedAt: 'string',
|
|
22
|
+
suspendedReason: 'string',
|
|
23
|
+
updatedAt: 'string',
|
|
24
|
+
};
|
|
25
|
+
const usage = '\nplatform-function-schedule <command>\n\nCommands:\n list List platformFunctionSchedule records\n find-first Find first matching platformFunctionSchedule record\n get Get a platformFunctionSchedule by ID\n create Create a new platformFunctionSchedule\n update Update an existing platformFunctionSchedule\n delete Delete a platformFunctionSchedule\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 --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n';
|
|
26
|
+
exports.default = async (argv, prompter, _options) => {
|
|
27
|
+
if (argv.help || argv.h) {
|
|
28
|
+
console.log(usage);
|
|
29
|
+
process.exit(0);
|
|
30
|
+
}
|
|
31
|
+
const { first: subcommand, newArgv } = (0, inquirerer_1.extractFirst)(argv);
|
|
32
|
+
if (!subcommand) {
|
|
33
|
+
const answer = await prompter.prompt(argv, [
|
|
34
|
+
{
|
|
35
|
+
type: 'autocomplete',
|
|
36
|
+
name: 'subcommand',
|
|
37
|
+
message: 'What do you want to do?',
|
|
38
|
+
options: ['list', 'find-first', 'get', 'create', 'update', 'delete'],
|
|
39
|
+
},
|
|
40
|
+
]);
|
|
41
|
+
return handleTableSubcommand(answer.subcommand, newArgv, prompter);
|
|
42
|
+
}
|
|
43
|
+
return handleTableSubcommand(subcommand, newArgv, prompter);
|
|
44
|
+
};
|
|
45
|
+
async function handleTableSubcommand(subcommand, argv, prompter) {
|
|
46
|
+
switch (subcommand) {
|
|
47
|
+
case 'list':
|
|
48
|
+
return handleList(argv, prompter);
|
|
49
|
+
case 'find-first':
|
|
50
|
+
return handleFindFirst(argv, prompter);
|
|
51
|
+
case 'get':
|
|
52
|
+
return handleGet(argv, prompter);
|
|
53
|
+
case 'create':
|
|
54
|
+
return handleCreate(argv, prompter);
|
|
55
|
+
case 'update':
|
|
56
|
+
return handleUpdate(argv, prompter);
|
|
57
|
+
case 'delete':
|
|
58
|
+
return handleDelete(argv, prompter);
|
|
59
|
+
default:
|
|
60
|
+
console.log(usage);
|
|
61
|
+
process.exit(1);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
async function handleList(argv, _prompter) {
|
|
65
|
+
try {
|
|
66
|
+
const defaultSelect = {
|
|
67
|
+
actorId: true,
|
|
68
|
+
createdAt: true,
|
|
69
|
+
description: true,
|
|
70
|
+
functionDefinitionId: true,
|
|
71
|
+
id: true,
|
|
72
|
+
isActive: true,
|
|
73
|
+
name: true,
|
|
74
|
+
payload: true,
|
|
75
|
+
scheduleInfo: true,
|
|
76
|
+
suspendedAt: true,
|
|
77
|
+
suspendedReason: true,
|
|
78
|
+
updatedAt: true,
|
|
79
|
+
};
|
|
80
|
+
const findManyArgs = (0, utils_1.parseFindManyArgs)(argv, defaultSelect);
|
|
81
|
+
const client = (0, executor_1.getClient)();
|
|
82
|
+
const result = await client.platformFunctionSchedule.findMany(findManyArgs).execute();
|
|
83
|
+
console.log(JSON.stringify(result, null, 2));
|
|
84
|
+
}
|
|
85
|
+
catch (error) {
|
|
86
|
+
console.error('Failed to list records.');
|
|
87
|
+
if (error instanceof Error) {
|
|
88
|
+
console.error(error.message);
|
|
89
|
+
}
|
|
90
|
+
process.exit(1);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
async function handleFindFirst(argv, _prompter) {
|
|
94
|
+
try {
|
|
95
|
+
const defaultSelect = {
|
|
96
|
+
actorId: true,
|
|
97
|
+
createdAt: true,
|
|
98
|
+
description: true,
|
|
99
|
+
functionDefinitionId: true,
|
|
100
|
+
id: true,
|
|
101
|
+
isActive: true,
|
|
102
|
+
name: true,
|
|
103
|
+
payload: true,
|
|
104
|
+
scheduleInfo: true,
|
|
105
|
+
suspendedAt: true,
|
|
106
|
+
suspendedReason: true,
|
|
107
|
+
updatedAt: true,
|
|
108
|
+
};
|
|
109
|
+
const findFirstArgs = (0, utils_1.parseFindFirstArgs)(argv, defaultSelect);
|
|
110
|
+
const client = (0, executor_1.getClient)();
|
|
111
|
+
const result = await client.platformFunctionSchedule.findFirst(findFirstArgs).execute();
|
|
112
|
+
console.log(JSON.stringify(result, null, 2));
|
|
113
|
+
}
|
|
114
|
+
catch (error) {
|
|
115
|
+
console.error('Failed to find record.');
|
|
116
|
+
if (error instanceof Error) {
|
|
117
|
+
console.error(error.message);
|
|
118
|
+
}
|
|
119
|
+
process.exit(1);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
async function handleGet(argv, prompter) {
|
|
123
|
+
try {
|
|
124
|
+
const answers = await prompter.prompt(argv, [
|
|
125
|
+
{
|
|
126
|
+
type: 'text',
|
|
127
|
+
name: 'id',
|
|
128
|
+
message: 'id',
|
|
129
|
+
required: true,
|
|
130
|
+
},
|
|
131
|
+
]);
|
|
132
|
+
const client = (0, executor_1.getClient)();
|
|
133
|
+
const result = await client.platformFunctionSchedule
|
|
134
|
+
.findOne({
|
|
135
|
+
id: answers.id,
|
|
136
|
+
select: {
|
|
137
|
+
actorId: true,
|
|
138
|
+
createdAt: true,
|
|
139
|
+
description: true,
|
|
140
|
+
functionDefinitionId: true,
|
|
141
|
+
id: true,
|
|
142
|
+
isActive: true,
|
|
143
|
+
name: true,
|
|
144
|
+
payload: true,
|
|
145
|
+
scheduleInfo: true,
|
|
146
|
+
suspendedAt: true,
|
|
147
|
+
suspendedReason: true,
|
|
148
|
+
updatedAt: true,
|
|
149
|
+
},
|
|
150
|
+
})
|
|
151
|
+
.execute();
|
|
152
|
+
console.log(JSON.stringify(result, null, 2));
|
|
153
|
+
}
|
|
154
|
+
catch (error) {
|
|
155
|
+
console.error('Record not found.');
|
|
156
|
+
if (error instanceof Error) {
|
|
157
|
+
console.error(error.message);
|
|
158
|
+
}
|
|
159
|
+
process.exit(1);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
async function handleCreate(argv, prompter) {
|
|
163
|
+
try {
|
|
164
|
+
const rawAnswers = await prompter.prompt(argv, [
|
|
165
|
+
{
|
|
166
|
+
type: 'text',
|
|
167
|
+
name: 'actorId',
|
|
168
|
+
message: 'actorId',
|
|
169
|
+
required: false,
|
|
170
|
+
skipPrompt: true,
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
type: 'text',
|
|
174
|
+
name: 'description',
|
|
175
|
+
message: 'description',
|
|
176
|
+
required: false,
|
|
177
|
+
skipPrompt: true,
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
type: 'text',
|
|
181
|
+
name: 'functionDefinitionId',
|
|
182
|
+
message: 'functionDefinitionId',
|
|
183
|
+
required: true,
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
type: 'boolean',
|
|
187
|
+
name: 'isActive',
|
|
188
|
+
message: 'isActive',
|
|
189
|
+
required: false,
|
|
190
|
+
skipPrompt: true,
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
type: 'text',
|
|
194
|
+
name: 'name',
|
|
195
|
+
message: 'name',
|
|
196
|
+
required: true,
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
type: 'json',
|
|
200
|
+
name: 'payload',
|
|
201
|
+
message: 'payload',
|
|
202
|
+
required: false,
|
|
203
|
+
skipPrompt: true,
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
type: 'json',
|
|
207
|
+
name: 'scheduleInfo',
|
|
208
|
+
message: 'scheduleInfo',
|
|
209
|
+
required: true,
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
type: 'text',
|
|
213
|
+
name: 'suspendedAt',
|
|
214
|
+
message: 'suspendedAt',
|
|
215
|
+
required: false,
|
|
216
|
+
skipPrompt: true,
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
type: 'text',
|
|
220
|
+
name: 'suspendedReason',
|
|
221
|
+
message: 'suspendedReason',
|
|
222
|
+
required: false,
|
|
223
|
+
skipPrompt: true,
|
|
224
|
+
},
|
|
225
|
+
]);
|
|
226
|
+
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
227
|
+
const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
|
|
228
|
+
const client = (0, executor_1.getClient)();
|
|
229
|
+
const result = await client.platformFunctionSchedule
|
|
230
|
+
.create({
|
|
231
|
+
data: {
|
|
232
|
+
actorId: cleanedData.actorId,
|
|
233
|
+
description: cleanedData.description,
|
|
234
|
+
functionDefinitionId: cleanedData.functionDefinitionId,
|
|
235
|
+
isActive: cleanedData.isActive,
|
|
236
|
+
name: cleanedData.name,
|
|
237
|
+
payload: cleanedData.payload,
|
|
238
|
+
scheduleInfo: cleanedData.scheduleInfo,
|
|
239
|
+
suspendedAt: cleanedData.suspendedAt,
|
|
240
|
+
suspendedReason: cleanedData.suspendedReason,
|
|
241
|
+
},
|
|
242
|
+
select: {
|
|
243
|
+
actorId: true,
|
|
244
|
+
createdAt: true,
|
|
245
|
+
description: true,
|
|
246
|
+
functionDefinitionId: true,
|
|
247
|
+
id: true,
|
|
248
|
+
isActive: true,
|
|
249
|
+
name: true,
|
|
250
|
+
payload: true,
|
|
251
|
+
scheduleInfo: true,
|
|
252
|
+
suspendedAt: true,
|
|
253
|
+
suspendedReason: true,
|
|
254
|
+
updatedAt: true,
|
|
255
|
+
},
|
|
256
|
+
})
|
|
257
|
+
.execute();
|
|
258
|
+
console.log(JSON.stringify(result, null, 2));
|
|
259
|
+
}
|
|
260
|
+
catch (error) {
|
|
261
|
+
console.error('Failed to create record.');
|
|
262
|
+
if (error instanceof Error) {
|
|
263
|
+
console.error(error.message);
|
|
264
|
+
}
|
|
265
|
+
process.exit(1);
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
async function handleUpdate(argv, prompter) {
|
|
269
|
+
try {
|
|
270
|
+
const rawAnswers = await prompter.prompt(argv, [
|
|
271
|
+
{
|
|
272
|
+
type: 'text',
|
|
273
|
+
name: 'id',
|
|
274
|
+
message: 'id',
|
|
275
|
+
required: true,
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
type: 'text',
|
|
279
|
+
name: 'actorId',
|
|
280
|
+
message: 'actorId',
|
|
281
|
+
required: false,
|
|
282
|
+
skipPrompt: true,
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
type: 'text',
|
|
286
|
+
name: 'description',
|
|
287
|
+
message: 'description',
|
|
288
|
+
required: false,
|
|
289
|
+
skipPrompt: true,
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
type: 'text',
|
|
293
|
+
name: 'functionDefinitionId',
|
|
294
|
+
message: 'functionDefinitionId',
|
|
295
|
+
required: false,
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
type: 'boolean',
|
|
299
|
+
name: 'isActive',
|
|
300
|
+
message: 'isActive',
|
|
301
|
+
required: false,
|
|
302
|
+
skipPrompt: true,
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
type: 'text',
|
|
306
|
+
name: 'name',
|
|
307
|
+
message: 'name',
|
|
308
|
+
required: false,
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
type: 'json',
|
|
312
|
+
name: 'payload',
|
|
313
|
+
message: 'payload',
|
|
314
|
+
required: false,
|
|
315
|
+
skipPrompt: true,
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
type: 'json',
|
|
319
|
+
name: 'scheduleInfo',
|
|
320
|
+
message: 'scheduleInfo',
|
|
321
|
+
required: false,
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
type: 'text',
|
|
325
|
+
name: 'suspendedAt',
|
|
326
|
+
message: 'suspendedAt',
|
|
327
|
+
required: false,
|
|
328
|
+
skipPrompt: true,
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
type: 'text',
|
|
332
|
+
name: 'suspendedReason',
|
|
333
|
+
message: 'suspendedReason',
|
|
334
|
+
required: false,
|
|
335
|
+
skipPrompt: true,
|
|
336
|
+
},
|
|
337
|
+
]);
|
|
338
|
+
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
339
|
+
const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
|
|
340
|
+
const client = (0, executor_1.getClient)();
|
|
341
|
+
const result = await client.platformFunctionSchedule
|
|
342
|
+
.update({
|
|
343
|
+
where: {
|
|
344
|
+
id: answers.id,
|
|
345
|
+
},
|
|
346
|
+
data: {
|
|
347
|
+
actorId: cleanedData.actorId,
|
|
348
|
+
description: cleanedData.description,
|
|
349
|
+
functionDefinitionId: cleanedData.functionDefinitionId,
|
|
350
|
+
isActive: cleanedData.isActive,
|
|
351
|
+
name: cleanedData.name,
|
|
352
|
+
payload: cleanedData.payload,
|
|
353
|
+
scheduleInfo: cleanedData.scheduleInfo,
|
|
354
|
+
suspendedAt: cleanedData.suspendedAt,
|
|
355
|
+
suspendedReason: cleanedData.suspendedReason,
|
|
356
|
+
},
|
|
357
|
+
select: {
|
|
358
|
+
actorId: true,
|
|
359
|
+
createdAt: true,
|
|
360
|
+
description: true,
|
|
361
|
+
functionDefinitionId: true,
|
|
362
|
+
id: true,
|
|
363
|
+
isActive: true,
|
|
364
|
+
name: true,
|
|
365
|
+
payload: true,
|
|
366
|
+
scheduleInfo: true,
|
|
367
|
+
suspendedAt: true,
|
|
368
|
+
suspendedReason: true,
|
|
369
|
+
updatedAt: true,
|
|
370
|
+
},
|
|
371
|
+
})
|
|
372
|
+
.execute();
|
|
373
|
+
console.log(JSON.stringify(result, null, 2));
|
|
374
|
+
}
|
|
375
|
+
catch (error) {
|
|
376
|
+
console.error('Failed to update record.');
|
|
377
|
+
if (error instanceof Error) {
|
|
378
|
+
console.error(error.message);
|
|
379
|
+
}
|
|
380
|
+
process.exit(1);
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
async function handleDelete(argv, prompter) {
|
|
384
|
+
try {
|
|
385
|
+
const rawAnswers = await prompter.prompt(argv, [
|
|
386
|
+
{
|
|
387
|
+
type: 'text',
|
|
388
|
+
name: 'id',
|
|
389
|
+
message: 'id',
|
|
390
|
+
required: true,
|
|
391
|
+
},
|
|
392
|
+
]);
|
|
393
|
+
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
394
|
+
const client = (0, executor_1.getClient)();
|
|
395
|
+
const result = await client.platformFunctionSchedule
|
|
396
|
+
.delete({
|
|
397
|
+
where: {
|
|
398
|
+
id: answers.id,
|
|
399
|
+
},
|
|
400
|
+
select: {
|
|
401
|
+
id: true,
|
|
402
|
+
},
|
|
403
|
+
})
|
|
404
|
+
.execute();
|
|
405
|
+
console.log(JSON.stringify(result, null, 2));
|
|
406
|
+
}
|
|
407
|
+
catch (error) {
|
|
408
|
+
console.error('Failed to delete record.');
|
|
409
|
+
if (error instanceof Error) {
|
|
410
|
+
console.error(error.message);
|
|
411
|
+
}
|
|
412
|
+
process.exit(1);
|
|
413
|
+
}
|
|
414
|
+
}
|
package/compute/cli/commands.js
CHANGED
|
@@ -42,6 +42,7 @@ const function_graph_ref_1 = __importDefault(require("./commands/function-graph-
|
|
|
42
42
|
const function_graph_store_1 = __importDefault(require("./commands/function-graph-store"));
|
|
43
43
|
const function_invocation_attempt_1 = __importDefault(require("./commands/function-invocation-attempt"));
|
|
44
44
|
const function_invocation_1 = __importDefault(require("./commands/function-invocation"));
|
|
45
|
+
const function_schedule_1 = __importDefault(require("./commands/function-schedule"));
|
|
45
46
|
const get_all_tree_nodes_record_1 = __importDefault(require("./commands/get-all-tree-nodes-record"));
|
|
46
47
|
const image_1 = __importDefault(require("./commands/image"));
|
|
47
48
|
const image_grant_1 = __importDefault(require("./commands/image-grant"));
|
|
@@ -64,6 +65,7 @@ const platform_function_deployment_event_1 = __importDefault(require("./commands
|
|
|
64
65
|
const platform_function_execution_log_1 = __importDefault(require("./commands/platform-function-execution-log"));
|
|
65
66
|
const platform_function_invocation_attempt_1 = __importDefault(require("./commands/platform-function-invocation-attempt"));
|
|
66
67
|
const platform_function_invocation_1 = __importDefault(require("./commands/platform-function-invocation"));
|
|
68
|
+
const platform_function_schedule_1 = __importDefault(require("./commands/platform-function-schedule"));
|
|
67
69
|
const platform_image_1 = __importDefault(require("./commands/platform-image"));
|
|
68
70
|
const platform_image_grant_1 = __importDefault(require("./commands/platform-image-grant"));
|
|
69
71
|
const platform_infra_commit_1 = __importDefault(require("./commands/platform-infra-commit"));
|
|
@@ -157,6 +159,7 @@ const database_import_graph_json_1 = __importDefault(require("./commands/databas
|
|
|
157
159
|
const database_save_graph_1 = __importDefault(require("./commands/database-save-graph"));
|
|
158
160
|
const database_start_execution_1 = __importDefault(require("./commands/database-start-execution"));
|
|
159
161
|
const database_validate_function_graph_1 = __importDefault(require("./commands/database-validate-function-graph"));
|
|
162
|
+
const function_execution_logs_append_1 = __importDefault(require("./commands/function-execution-logs-append"));
|
|
160
163
|
const function_invocations_create_sync_1 = __importDefault(require("./commands/function-invocations-create-sync"));
|
|
161
164
|
const import_definitions_1 = __importDefault(require("./commands/import-definitions"));
|
|
162
165
|
const import_graph_json_1 = __importDefault(require("./commands/import-graph-json"));
|
|
@@ -169,6 +172,7 @@ const infra_set_many_and_commit_1 = __importDefault(require("./commands/infra-se
|
|
|
169
172
|
const init_empty_repo_1 = __importDefault(require("./commands/init-empty-repo"));
|
|
170
173
|
const insert_node_at_path_1 = __importDefault(require("./commands/insert-node-at-path"));
|
|
171
174
|
const insert_nodes_at_paths_1 = __importDefault(require("./commands/insert-nodes-at-paths"));
|
|
175
|
+
const platform_function_execution_logs_append_1 = __importDefault(require("./commands/platform-function-execution-logs-append"));
|
|
172
176
|
const platform_function_invocations_create_sync_1 = __importDefault(require("./commands/platform-function-invocations-create-sync"));
|
|
173
177
|
const platform_infra_init_empty_repo_1 = __importDefault(require("./commands/platform-infra-init-empty-repo"));
|
|
174
178
|
const platform_infra_insert_node_at_path_1 = __importDefault(require("./commands/platform-infra-insert-node-at-path"));
|
|
@@ -224,6 +228,7 @@ const createCommandMap = () => ({
|
|
|
224
228
|
'function-graph-store': function_graph_store_1.default,
|
|
225
229
|
'function-invocation-attempt': function_invocation_attempt_1.default,
|
|
226
230
|
'function-invocation': function_invocation_1.default,
|
|
231
|
+
'function-schedule': function_schedule_1.default,
|
|
227
232
|
'get-all-tree-nodes-record': get_all_tree_nodes_record_1.default,
|
|
228
233
|
image: image_1.default,
|
|
229
234
|
'image-grant': image_grant_1.default,
|
|
@@ -246,6 +251,7 @@ const createCommandMap = () => ({
|
|
|
246
251
|
'platform-function-execution-log': platform_function_execution_log_1.default,
|
|
247
252
|
'platform-function-invocation-attempt': platform_function_invocation_attempt_1.default,
|
|
248
253
|
'platform-function-invocation': platform_function_invocation_1.default,
|
|
254
|
+
'platform-function-schedule': platform_function_schedule_1.default,
|
|
249
255
|
'platform-image': platform_image_1.default,
|
|
250
256
|
'platform-image-grant': platform_image_grant_1.default,
|
|
251
257
|
'platform-infra-commit': platform_infra_commit_1.default,
|
|
@@ -339,6 +345,7 @@ const createCommandMap = () => ({
|
|
|
339
345
|
'database-save-graph': database_save_graph_1.default,
|
|
340
346
|
'database-start-execution': database_start_execution_1.default,
|
|
341
347
|
'database-validate-function-graph': database_validate_function_graph_1.default,
|
|
348
|
+
'function-execution-logs-append': function_execution_logs_append_1.default,
|
|
342
349
|
'function-invocations-create-sync': function_invocations_create_sync_1.default,
|
|
343
350
|
'import-definitions': import_definitions_1.default,
|
|
344
351
|
'import-graph-json': import_graph_json_1.default,
|
|
@@ -351,6 +358,7 @@ const createCommandMap = () => ({
|
|
|
351
358
|
'init-empty-repo': init_empty_repo_1.default,
|
|
352
359
|
'insert-node-at-path': insert_node_at_path_1.default,
|
|
353
360
|
'insert-nodes-at-paths': insert_nodes_at_paths_1.default,
|
|
361
|
+
'platform-function-execution-logs-append': platform_function_execution_logs_append_1.default,
|
|
354
362
|
'platform-function-invocations-create-sync': platform_function_invocations_create_sync_1.default,
|
|
355
363
|
'platform-infra-init-empty-repo': platform_infra_init_empty_repo_1.default,
|
|
356
364
|
'platform-infra-insert-node-at-path': platform_infra_insert_node_at_path_1.default,
|
|
@@ -374,7 +382,7 @@ const createCommandMap = () => ({
|
|
|
374
382
|
'start-execution': start_execution_1.default,
|
|
375
383
|
'validate-function-graph': validate_function_graph_1.default,
|
|
376
384
|
});
|
|
377
|
-
const usage = '\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n build build CRUD operations\n build-step buildStep CRUD operations\n builder-binding builderBinding CRUD operations\n content-preset contentPreset CRUD operations\n database-function-graph databaseFunctionGraph CRUD operations\n database-function-graph-execution databaseFunctionGraphExecution CRUD operations\n database-function-graph-execution-node-state databaseFunctionGraphExecutionNodeState CRUD operations\n database-function-graph-execution-output databaseFunctionGraphExecutionOutput CRUD operations\n database-graph-commit databaseGraphCommit CRUD operations\n database-graph-get-all-tree-nodes-record databaseGraphGetAllTreeNodesRecord CRUD operations\n database-graph-object databaseGraphObject CRUD operations\n database-graph-ref databaseGraphRef CRUD operations\n database-graph-store databaseGraphStore CRUD operations\n db-preset dbPreset CRUD operations\n function-api-binding functionApiBinding CRUD operations\n function-capability-binding functionCapabilityBinding CRUD operations\n function-definition functionDefinition CRUD operations\n function-deployment functionDeployment CRUD operations\n function-deployment-event functionDeploymentEvent CRUD operations\n function-execution-log functionExecutionLog CRUD operations\n function-graph-commit functionGraphCommit CRUD operations\n function-graph functionGraph CRUD operations\n function-graph-execution functionGraphExecution CRUD operations\n function-graph-execution-node-state functionGraphExecutionNodeState CRUD operations\n function-graph-execution-output functionGraphExecutionOutput CRUD operations\n function-graph-object functionGraphObject CRUD operations\n function-graph-ref functionGraphRef CRUD operations\n function-graph-store functionGraphStore CRUD operations\n function-invocation-attempt functionInvocationAttempt CRUD operations\n function-invocation functionInvocation CRUD operations\n get-all-tree-nodes-record getAllTreeNodesRecord CRUD operations\n image image CRUD operations\n image-grant imageGrant CRUD operations\n infra-commit infraCommit CRUD operations\n infra-get-all-tree-nodes-record infraGetAllTreeNodesRecord CRUD operations\n infra-object infraObject CRUD operations\n infra-ref infraRef CRUD operations\n infra-store infraStore CRUD operations\n integration-provider integrationProvider CRUD operations\n namespace namespace CRUD operations\n namespace-event namespaceEvent CRUD operations\n platform-build platformBuild CRUD operations\n platform-build-step platformBuildStep CRUD operations\n platform-builder-binding platformBuilderBinding CRUD operations\n platform-function-api-binding platformFunctionApiBinding CRUD operations\n platform-function-capability-binding platformFunctionCapabilityBinding CRUD operations\n platform-function-definition platformFunctionDefinition CRUD operations\n platform-function-deployment platformFunctionDeployment CRUD operations\n platform-function-deployment-event platformFunctionDeploymentEvent CRUD operations\n platform-function-execution-log platformFunctionExecutionLog CRUD operations\n platform-function-invocation-attempt platformFunctionInvocationAttempt CRUD operations\n platform-function-invocation platformFunctionInvocation CRUD operations\n platform-image platformImage CRUD operations\n platform-image-grant platformImageGrant CRUD operations\n platform-infra-commit platformInfraCommit CRUD operations\n platform-infra-get-all-tree-nodes-record platformInfraGetAllTreeNodesRecord CRUD operations\n platform-infra-object platformInfraObject CRUD operations\n platform-infra-ref platformInfraRef CRUD operations\n platform-infra-store platformInfraStore CRUD operations\n platform-k-8-s-resource-kind platformK8sResourceKind CRUD operations\n platform-k-8-s-spec-rule platformK8sSpecRule CRUD operations\n platform-namespace platformNamespace CRUD operations\n platform-namespace-event platformNamespaceEvent CRUD operations\n platform-proposal-comment platformProposalComment CRUD operations\n platform-proposal platformProposal CRUD operations\n platform-proposal-file-view platformProposalFileView CRUD operations\n platform-proposal-reaction platformProposalReaction CRUD operations\n platform-proposal-review platformProposalReview CRUD operations\n platform-proposals-chunk platformProposalsChunk CRUD operations\n platform-registry-binding platformRegistryBinding CRUD operations\n platform-registry platformRegistry CRUD operations\n platform-registry-grant platformRegistryGrant CRUD operations\n platform-repository platformRepository CRUD operations\n platform-repository-event platformRepositoryEvent CRUD operations\n platform-repository-required-check platformRepositoryRequiredCheck CRUD operations\n platform-repository-workflow platformRepositoryWorkflow CRUD operations\n platform-resource platformResource CRUD operations\n platform-resource-declared-capacity platformResourceDeclaredCapacity CRUD operations\n platform-resource-definition platformResourceDefinition CRUD operations\n platform-resource-event platformResourceEvent CRUD operations\n platform-resource-installation platformResourceInstallation CRUD operations\n platform-resource-observed-storage platformResourceObservedStorage CRUD operations\n platform-resource-status-check platformResourceStatusCheck CRUD operations\n platform-resource-usage-log platformResourceUsageLog CRUD operations\n platform-resource-usage-summary platformResourceUsageSummary CRUD operations\n platform-resource-utilization platformResourceUtilization CRUD operations\n platform-resources-health platformResourcesHealth CRUD operations\n platform-resources-requirements-state platformResourcesRequirementsState CRUD operations\n platform-resources-resolved-requirement platformResourcesResolvedRequirement CRUD operations\n platform-webhook-endpoint platformWebhookEndpoint CRUD operations\n platform-webhook-event platformWebhookEvent CRUD operations\n proposal-comment proposalComment CRUD operations\n proposal proposal CRUD operations\n proposal-file-view proposalFileView CRUD operations\n proposal-reaction proposalReaction CRUD operations\n proposal-review proposalReview CRUD operations\n proposals-chunk proposalsChunk CRUD operations\n registry-binding registryBinding CRUD operations\n registry registry CRUD operations\n registry-grant registryGrant CRUD operations\n repository repository CRUD operations\n repository-event repositoryEvent CRUD operations\n repository-required-check repositoryRequiredCheck CRUD operations\n repository-workflow repositoryWorkflow CRUD operations\n resource resource CRUD operations\n resource-declared-capacity resourceDeclaredCapacity CRUD operations\n resource-definition resourceDefinition CRUD operations\n resource-event resourceEvent CRUD operations\n resource-installation resourceInstallation CRUD operations\n resource-observed-storage resourceObservedStorage CRUD operations\n resource-status-check resourceStatusCheck CRUD operations\n resource-usage-log resourceUsageLog CRUD operations\n resource-usage-summary resourceUsageSummary CRUD operations\n resource-utilization resourceUtilization CRUD operations\n resources-health resourcesHealth CRUD operations\n resources-requirements-state resourcesRequirementsState CRUD operations\n resources-resolved-requirement resourcesResolvedRequirement CRUD operations\n webhook-endpoint webhookEndpoint CRUD operations\n webhook-event webhookEvent CRUD operations\n database-read-function-graph databaseReadFunctionGraph\n read-function-graph readFunctionGraph\n add-edge addEdge\n add-edge-and-save addEdgeAndSave\n add-node addNode\n add-node-and-save addNodeAndSave\n approve-node approveNode\n copy-graph copyGraph\n database-add-edge databaseAddEdge\n database-add-edge-and-save databaseAddEdgeAndSave\n database-add-node databaseAddNode\n database-add-node-and-save databaseAddNodeAndSave\n database-approve-node databaseApproveNode\n database-copy-graph databaseCopyGraph\n database-create-function-graph databaseCreateFunctionGraph\n database-graph-init-empty-repo databaseGraphInitEmptyRepo\n database-graph-insert-node-at-path databaseGraphInsertNodeAtPath\n database-graph-insert-nodes-at-paths databaseGraphInsertNodesAtPaths\n database-graph-set-and-commit databaseGraphSetAndCommit\n database-graph-set-data-at-path databaseGraphSetDataAtPath\n database-graph-set-many-and-commit databaseGraphSetManyAndCommit\n database-import-definitions databaseImportDefinitions\n database-import-graph-json databaseImportGraphJson\n database-save-graph databaseSaveGraph\n database-start-execution databaseStartExecution\n database-validate-function-graph databaseValidateFunctionGraph\n function-invocations-create-sync functionInvocationsCreateSync\n import-definitions importDefinitions\n import-graph-json importGraphJson\n infra-init-empty-repo infraInitEmptyRepo\n infra-insert-node-at-path infraInsertNodeAtPath\n infra-insert-nodes-at-paths infraInsertNodesAtPaths\n infra-set-and-commit infraSetAndCommit\n infra-set-data-at-path infraSetDataAtPath\n infra-set-many-and-commit infraSetManyAndCommit\n init-empty-repo initEmptyRepo\n insert-node-at-path insertNodeAtPath\n insert-nodes-at-paths insertNodesAtPaths\n platform-function-invocations-create-sync platformFunctionInvocationsCreateSync\n platform-infra-init-empty-repo platformInfraInitEmptyRepo\n platform-infra-insert-node-at-path platformInfraInsertNodeAtPath\n platform-infra-insert-nodes-at-paths platformInfraInsertNodesAtPaths\n platform-infra-set-and-commit platformInfraSetAndCommit\n platform-infra-set-data-at-path platformInfraSetDataAtPath\n platform-infra-set-many-and-commit platformInfraSetManyAndCommit\n platform-resource-installations-install platformResourceInstallationsInstall\n platform-resource-installations-rollback platformResourceInstallationsRollback\n platform-resource-installations-uninstall platformResourceInstallationsUninstall\n platform-resource-installations-upgrade platformResourceInstallationsUpgrade\n provision-bucket Reconcile an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then enqueues the same\nstorage:provision_bucket job used by the INSERT trigger. This is\nidempotent for an already-reconciled bucket; enqueue failures become\nGraphQL errors.\n resource-installations-install resourceInstallationsInstall\n resource-installations-rollback resourceInstallationsRollback\n resource-installations-uninstall resourceInstallationsUninstall\n resource-installations-upgrade resourceInstallationsUpgrade\n save-graph saveGraph\n set-and-commit setAndCommit\n set-data-at-path setDataAtPath\n set-many-and-commit setManyAndCommit\n start-execution startExecution\n validate-function-graph validateFunctionGraph\n\n --help, -h Show this help message\n --version, -v Show version\n';
|
|
385
|
+
const usage = '\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n build build CRUD operations\n build-step buildStep CRUD operations\n builder-binding builderBinding CRUD operations\n content-preset contentPreset CRUD operations\n database-function-graph databaseFunctionGraph CRUD operations\n database-function-graph-execution databaseFunctionGraphExecution CRUD operations\n database-function-graph-execution-node-state databaseFunctionGraphExecutionNodeState CRUD operations\n database-function-graph-execution-output databaseFunctionGraphExecutionOutput CRUD operations\n database-graph-commit databaseGraphCommit CRUD operations\n database-graph-get-all-tree-nodes-record databaseGraphGetAllTreeNodesRecord CRUD operations\n database-graph-object databaseGraphObject CRUD operations\n database-graph-ref databaseGraphRef CRUD operations\n database-graph-store databaseGraphStore CRUD operations\n db-preset dbPreset CRUD operations\n function-api-binding functionApiBinding CRUD operations\n function-capability-binding functionCapabilityBinding CRUD operations\n function-definition functionDefinition CRUD operations\n function-deployment functionDeployment CRUD operations\n function-deployment-event functionDeploymentEvent CRUD operations\n function-execution-log functionExecutionLog CRUD operations\n function-graph-commit functionGraphCommit CRUD operations\n function-graph functionGraph CRUD operations\n function-graph-execution functionGraphExecution CRUD operations\n function-graph-execution-node-state functionGraphExecutionNodeState CRUD operations\n function-graph-execution-output functionGraphExecutionOutput CRUD operations\n function-graph-object functionGraphObject CRUD operations\n function-graph-ref functionGraphRef CRUD operations\n function-graph-store functionGraphStore CRUD operations\n function-invocation-attempt functionInvocationAttempt CRUD operations\n function-invocation functionInvocation CRUD operations\n function-schedule functionSchedule CRUD operations\n get-all-tree-nodes-record getAllTreeNodesRecord CRUD operations\n image image CRUD operations\n image-grant imageGrant CRUD operations\n infra-commit infraCommit CRUD operations\n infra-get-all-tree-nodes-record infraGetAllTreeNodesRecord CRUD operations\n infra-object infraObject CRUD operations\n infra-ref infraRef CRUD operations\n infra-store infraStore CRUD operations\n integration-provider integrationProvider CRUD operations\n namespace namespace CRUD operations\n namespace-event namespaceEvent CRUD operations\n platform-build platformBuild CRUD operations\n platform-build-step platformBuildStep CRUD operations\n platform-builder-binding platformBuilderBinding CRUD operations\n platform-function-api-binding platformFunctionApiBinding CRUD operations\n platform-function-capability-binding platformFunctionCapabilityBinding CRUD operations\n platform-function-definition platformFunctionDefinition CRUD operations\n platform-function-deployment platformFunctionDeployment CRUD operations\n platform-function-deployment-event platformFunctionDeploymentEvent CRUD operations\n platform-function-execution-log platformFunctionExecutionLog CRUD operations\n platform-function-invocation-attempt platformFunctionInvocationAttempt CRUD operations\n platform-function-invocation platformFunctionInvocation CRUD operations\n platform-function-schedule platformFunctionSchedule CRUD operations\n platform-image platformImage CRUD operations\n platform-image-grant platformImageGrant CRUD operations\n platform-infra-commit platformInfraCommit CRUD operations\n platform-infra-get-all-tree-nodes-record platformInfraGetAllTreeNodesRecord CRUD operations\n platform-infra-object platformInfraObject CRUD operations\n platform-infra-ref platformInfraRef CRUD operations\n platform-infra-store platformInfraStore CRUD operations\n platform-k-8-s-resource-kind platformK8sResourceKind CRUD operations\n platform-k-8-s-spec-rule platformK8sSpecRule CRUD operations\n platform-namespace platformNamespace CRUD operations\n platform-namespace-event platformNamespaceEvent CRUD operations\n platform-proposal-comment platformProposalComment CRUD operations\n platform-proposal platformProposal CRUD operations\n platform-proposal-file-view platformProposalFileView CRUD operations\n platform-proposal-reaction platformProposalReaction CRUD operations\n platform-proposal-review platformProposalReview CRUD operations\n platform-proposals-chunk platformProposalsChunk CRUD operations\n platform-registry-binding platformRegistryBinding CRUD operations\n platform-registry platformRegistry CRUD operations\n platform-registry-grant platformRegistryGrant CRUD operations\n platform-repository platformRepository CRUD operations\n platform-repository-event platformRepositoryEvent CRUD operations\n platform-repository-required-check platformRepositoryRequiredCheck CRUD operations\n platform-repository-workflow platformRepositoryWorkflow CRUD operations\n platform-resource platformResource CRUD operations\n platform-resource-declared-capacity platformResourceDeclaredCapacity CRUD operations\n platform-resource-definition platformResourceDefinition CRUD operations\n platform-resource-event platformResourceEvent CRUD operations\n platform-resource-installation platformResourceInstallation CRUD operations\n platform-resource-observed-storage platformResourceObservedStorage CRUD operations\n platform-resource-status-check platformResourceStatusCheck CRUD operations\n platform-resource-usage-log platformResourceUsageLog CRUD operations\n platform-resource-usage-summary platformResourceUsageSummary CRUD operations\n platform-resource-utilization platformResourceUtilization CRUD operations\n platform-resources-health platformResourcesHealth CRUD operations\n platform-resources-requirements-state platformResourcesRequirementsState CRUD operations\n platform-resources-resolved-requirement platformResourcesResolvedRequirement CRUD operations\n platform-webhook-endpoint platformWebhookEndpoint CRUD operations\n platform-webhook-event platformWebhookEvent CRUD operations\n proposal-comment proposalComment CRUD operations\n proposal proposal CRUD operations\n proposal-file-view proposalFileView CRUD operations\n proposal-reaction proposalReaction CRUD operations\n proposal-review proposalReview CRUD operations\n proposals-chunk proposalsChunk CRUD operations\n registry-binding registryBinding CRUD operations\n registry registry CRUD operations\n registry-grant registryGrant CRUD operations\n repository repository CRUD operations\n repository-event repositoryEvent CRUD operations\n repository-required-check repositoryRequiredCheck CRUD operations\n repository-workflow repositoryWorkflow CRUD operations\n resource resource CRUD operations\n resource-declared-capacity resourceDeclaredCapacity CRUD operations\n resource-definition resourceDefinition CRUD operations\n resource-event resourceEvent CRUD operations\n resource-installation resourceInstallation CRUD operations\n resource-observed-storage resourceObservedStorage CRUD operations\n resource-status-check resourceStatusCheck CRUD operations\n resource-usage-log resourceUsageLog CRUD operations\n resource-usage-summary resourceUsageSummary CRUD operations\n resource-utilization resourceUtilization CRUD operations\n resources-health resourcesHealth CRUD operations\n resources-requirements-state resourcesRequirementsState CRUD operations\n resources-resolved-requirement resourcesResolvedRequirement CRUD operations\n webhook-endpoint webhookEndpoint CRUD operations\n webhook-event webhookEvent CRUD operations\n database-read-function-graph databaseReadFunctionGraph\n read-function-graph readFunctionGraph\n add-edge addEdge\n add-edge-and-save addEdgeAndSave\n add-node addNode\n add-node-and-save addNodeAndSave\n approve-node approveNode\n copy-graph copyGraph\n database-add-edge databaseAddEdge\n database-add-edge-and-save databaseAddEdgeAndSave\n database-add-node databaseAddNode\n database-add-node-and-save databaseAddNodeAndSave\n database-approve-node databaseApproveNode\n database-copy-graph databaseCopyGraph\n database-create-function-graph databaseCreateFunctionGraph\n database-graph-init-empty-repo databaseGraphInitEmptyRepo\n database-graph-insert-node-at-path databaseGraphInsertNodeAtPath\n database-graph-insert-nodes-at-paths databaseGraphInsertNodesAtPaths\n database-graph-set-and-commit databaseGraphSetAndCommit\n database-graph-set-data-at-path databaseGraphSetDataAtPath\n database-graph-set-many-and-commit databaseGraphSetManyAndCommit\n database-import-definitions databaseImportDefinitions\n database-import-graph-json databaseImportGraphJson\n database-save-graph databaseSaveGraph\n database-start-execution databaseStartExecution\n database-validate-function-graph databaseValidateFunctionGraph\n function-execution-logs-append functionExecutionLogsAppend\n function-invocations-create-sync functionInvocationsCreateSync\n import-definitions importDefinitions\n import-graph-json importGraphJson\n infra-init-empty-repo infraInitEmptyRepo\n infra-insert-node-at-path infraInsertNodeAtPath\n infra-insert-nodes-at-paths infraInsertNodesAtPaths\n infra-set-and-commit infraSetAndCommit\n infra-set-data-at-path infraSetDataAtPath\n infra-set-many-and-commit infraSetManyAndCommit\n init-empty-repo initEmptyRepo\n insert-node-at-path insertNodeAtPath\n insert-nodes-at-paths insertNodesAtPaths\n platform-function-execution-logs-append platformFunctionExecutionLogsAppend\n platform-function-invocations-create-sync platformFunctionInvocationsCreateSync\n platform-infra-init-empty-repo platformInfraInitEmptyRepo\n platform-infra-insert-node-at-path platformInfraInsertNodeAtPath\n platform-infra-insert-nodes-at-paths platformInfraInsertNodesAtPaths\n platform-infra-set-and-commit platformInfraSetAndCommit\n platform-infra-set-data-at-path platformInfraSetDataAtPath\n platform-infra-set-many-and-commit platformInfraSetManyAndCommit\n platform-resource-installations-install platformResourceInstallationsInstall\n platform-resource-installations-rollback platformResourceInstallationsRollback\n platform-resource-installations-uninstall platformResourceInstallationsUninstall\n platform-resource-installations-upgrade platformResourceInstallationsUpgrade\n provision-bucket Reconcile an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then enqueues the same\nstorage:provision_bucket job used by the INSERT trigger. This is\nidempotent for an already-reconciled bucket; enqueue failures become\nGraphQL errors.\n resource-installations-install resourceInstallationsInstall\n resource-installations-rollback resourceInstallationsRollback\n resource-installations-uninstall resourceInstallationsUninstall\n resource-installations-upgrade resourceInstallationsUpgrade\n save-graph saveGraph\n set-and-commit setAndCommit\n set-data-at-path setDataAtPath\n set-many-and-commit setManyAndCommit\n start-execution startExecution\n validate-function-graph validateFunctionGraph\n\n --help, -h Show this help message\n --version, -v Show version\n';
|
|
378
386
|
const commands = async (argv, prompter, options) => {
|
|
379
387
|
if (argv.help || argv.h) {
|
|
380
388
|
console.log(usage);
|
|
@@ -30,6 +30,7 @@ export declare function getClient(contextName?: string): {
|
|
|
30
30
|
functionGraphStore: import("../orm").FunctionGraphStoreModel;
|
|
31
31
|
functionInvocationAttempt: import("../orm").FunctionInvocationAttemptModel;
|
|
32
32
|
functionInvocation: import("../orm").FunctionInvocationModel;
|
|
33
|
+
functionSchedule: import("../orm").FunctionScheduleModel;
|
|
33
34
|
getAllTreeNodesRecord: import("../orm").GetAllTreeNodesRecordModel;
|
|
34
35
|
image: import("../orm").ImageModel;
|
|
35
36
|
imageGrant: import("../orm").ImageGrantModel;
|
|
@@ -52,6 +53,7 @@ export declare function getClient(contextName?: string): {
|
|
|
52
53
|
platformFunctionExecutionLog: import("../orm").PlatformFunctionExecutionLogModel;
|
|
53
54
|
platformFunctionInvocationAttempt: import("../orm").PlatformFunctionInvocationAttemptModel;
|
|
54
55
|
platformFunctionInvocation: import("../orm").PlatformFunctionInvocationModel;
|
|
56
|
+
platformFunctionSchedule: import("../orm").PlatformFunctionScheduleModel;
|
|
55
57
|
platformImage: import("../orm").PlatformImageModel;
|
|
56
58
|
platformImageGrant: import("../orm").PlatformImageGrantModel;
|
|
57
59
|
platformInfraCommit: import("../orm").PlatformInfraCommitModel;
|
|
@@ -252,6 +254,11 @@ export declare function getClient(contextName?: string): {
|
|
|
252
254
|
} & import("../orm").StrictSelect<S, import("../orm/input-types").DatabaseValidateFunctionGraphPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
253
255
|
databaseValidateFunctionGraph: import("../orm").InferSelectResult<import("../orm/input-types").DatabaseValidateFunctionGraphPayload, S> | null;
|
|
254
256
|
}>;
|
|
257
|
+
functionExecutionLogsAppend: <S extends import("../orm/input-types").FunctionExecutionLogsAppendPayloadSelect>(args: import("../orm/mutation").FunctionExecutionLogsAppendVariables, options: {
|
|
258
|
+
select: S;
|
|
259
|
+
} & import("../orm").StrictSelect<S, import("../orm/input-types").FunctionExecutionLogsAppendPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
260
|
+
functionExecutionLogsAppend: import("../orm").InferSelectResult<import("../orm/input-types").FunctionExecutionLogsAppendPayload, S> | null;
|
|
261
|
+
}>;
|
|
255
262
|
functionInvocationsCreateSync: <S extends import("../orm/input-types").FunctionInvocationsCreateSyncPayloadSelect>(args: import("../orm/mutation").FunctionInvocationsCreateSyncVariables, options: {
|
|
256
263
|
select: S;
|
|
257
264
|
} & import("../orm").StrictSelect<S, import("../orm/input-types").FunctionInvocationsCreateSyncPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
@@ -312,6 +319,11 @@ export declare function getClient(contextName?: string): {
|
|
|
312
319
|
} & import("../orm").StrictSelect<S, import("../orm/input-types").InsertNodesAtPathsPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
313
320
|
insertNodesAtPaths: import("../orm").InferSelectResult<import("../orm/input-types").InsertNodesAtPathsPayload, S> | null;
|
|
314
321
|
}>;
|
|
322
|
+
platformFunctionExecutionLogsAppend: <S extends import("../orm/input-types").PlatformFunctionExecutionLogsAppendPayloadSelect>(args: import("../orm/mutation").PlatformFunctionExecutionLogsAppendVariables, options: {
|
|
323
|
+
select: S;
|
|
324
|
+
} & import("../orm").StrictSelect<S, import("../orm/input-types").PlatformFunctionExecutionLogsAppendPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
325
|
+
platformFunctionExecutionLogsAppend: import("../orm").InferSelectResult<import("../orm/input-types").PlatformFunctionExecutionLogsAppendPayload, S> | null;
|
|
326
|
+
}>;
|
|
315
327
|
platformFunctionInvocationsCreateSync: <S extends import("../orm/input-types").PlatformFunctionInvocationsCreateSyncPayloadSelect>(args: import("../orm/mutation").PlatformFunctionInvocationsCreateSyncVariables, options: {
|
|
316
328
|
select: S;
|
|
317
329
|
} & import("../orm").StrictSelect<S, import("../orm/input-types").PlatformFunctionInvocationsCreateSyncPayloadSelect>) => import("../orm").QueryBuilder<{
|
package/compute/orm/index.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ import { FunctionGraphRefModel } from './models/functionGraphRef';
|
|
|
29
29
|
import { FunctionGraphStoreModel } from './models/functionGraphStore';
|
|
30
30
|
import { FunctionInvocationAttemptModel } from './models/functionInvocationAttempt';
|
|
31
31
|
import { FunctionInvocationModel } from './models/functionInvocation';
|
|
32
|
+
import { FunctionScheduleModel } from './models/functionSchedule';
|
|
32
33
|
import { GetAllTreeNodesRecordModel } from './models/getAllTreeNodesRecord';
|
|
33
34
|
import { ImageModel } from './models/image';
|
|
34
35
|
import { ImageGrantModel } from './models/imageGrant';
|
|
@@ -51,6 +52,7 @@ import { PlatformFunctionDeploymentEventModel } from './models/platformFunctionD
|
|
|
51
52
|
import { PlatformFunctionExecutionLogModel } from './models/platformFunctionExecutionLog';
|
|
52
53
|
import { PlatformFunctionInvocationAttemptModel } from './models/platformFunctionInvocationAttempt';
|
|
53
54
|
import { PlatformFunctionInvocationModel } from './models/platformFunctionInvocation';
|
|
55
|
+
import { PlatformFunctionScheduleModel } from './models/platformFunctionSchedule';
|
|
54
56
|
import { PlatformImageModel } from './models/platformImage';
|
|
55
57
|
import { PlatformImageGrantModel } from './models/platformImageGrant';
|
|
56
58
|
import { PlatformInfraCommitModel } from './models/platformInfraCommit';
|
|
@@ -179,6 +181,7 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
179
181
|
functionGraphStore: FunctionGraphStoreModel;
|
|
180
182
|
functionInvocationAttempt: FunctionInvocationAttemptModel;
|
|
181
183
|
functionInvocation: FunctionInvocationModel;
|
|
184
|
+
functionSchedule: FunctionScheduleModel;
|
|
182
185
|
getAllTreeNodesRecord: GetAllTreeNodesRecordModel;
|
|
183
186
|
image: ImageModel;
|
|
184
187
|
imageGrant: ImageGrantModel;
|
|
@@ -201,6 +204,7 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
201
204
|
platformFunctionExecutionLog: PlatformFunctionExecutionLogModel;
|
|
202
205
|
platformFunctionInvocationAttempt: PlatformFunctionInvocationAttemptModel;
|
|
203
206
|
platformFunctionInvocation: PlatformFunctionInvocationModel;
|
|
207
|
+
platformFunctionSchedule: PlatformFunctionScheduleModel;
|
|
204
208
|
platformImage: PlatformImageModel;
|
|
205
209
|
platformImageGrant: PlatformImageGrantModel;
|
|
206
210
|
platformInfraCommit: PlatformInfraCommitModel;
|
|
@@ -401,6 +405,11 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
401
405
|
} & import("./select-types").StrictSelect<S, import("./input-types").DatabaseValidateFunctionGraphPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
402
406
|
databaseValidateFunctionGraph: import("./select-types").InferSelectResult<import("./input-types").DatabaseValidateFunctionGraphPayload, S> | null;
|
|
403
407
|
}>;
|
|
408
|
+
functionExecutionLogsAppend: <S extends import("./input-types").FunctionExecutionLogsAppendPayloadSelect>(args: import("./mutation").FunctionExecutionLogsAppendVariables, options: {
|
|
409
|
+
select: S;
|
|
410
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").FunctionExecutionLogsAppendPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
411
|
+
functionExecutionLogsAppend: import("./select-types").InferSelectResult<import("./input-types").FunctionExecutionLogsAppendPayload, S> | null;
|
|
412
|
+
}>;
|
|
404
413
|
functionInvocationsCreateSync: <S extends import("./input-types").FunctionInvocationsCreateSyncPayloadSelect>(args: import("./mutation").FunctionInvocationsCreateSyncVariables, options: {
|
|
405
414
|
select: S;
|
|
406
415
|
} & import("./select-types").StrictSelect<S, import("./input-types").FunctionInvocationsCreateSyncPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
@@ -461,6 +470,11 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
461
470
|
} & import("./select-types").StrictSelect<S, import("./input-types").InsertNodesAtPathsPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
462
471
|
insertNodesAtPaths: import("./select-types").InferSelectResult<import("./input-types").InsertNodesAtPathsPayload, S> | null;
|
|
463
472
|
}>;
|
|
473
|
+
platformFunctionExecutionLogsAppend: <S extends import("./input-types").PlatformFunctionExecutionLogsAppendPayloadSelect>(args: import("./mutation").PlatformFunctionExecutionLogsAppendVariables, options: {
|
|
474
|
+
select: S;
|
|
475
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").PlatformFunctionExecutionLogsAppendPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
476
|
+
platformFunctionExecutionLogsAppend: import("./select-types").InferSelectResult<import("./input-types").PlatformFunctionExecutionLogsAppendPayload, S> | null;
|
|
477
|
+
}>;
|
|
464
478
|
platformFunctionInvocationsCreateSync: <S extends import("./input-types").PlatformFunctionInvocationsCreateSyncPayloadSelect>(args: import("./mutation").PlatformFunctionInvocationsCreateSyncVariables, options: {
|
|
465
479
|
select: S;
|
|
466
480
|
} & import("./select-types").StrictSelect<S, import("./input-types").PlatformFunctionInvocationsCreateSyncPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
package/compute/orm/index.js
CHANGED
|
@@ -52,6 +52,7 @@ const functionGraphRef_1 = require("./models/functionGraphRef");
|
|
|
52
52
|
const functionGraphStore_1 = require("./models/functionGraphStore");
|
|
53
53
|
const functionInvocationAttempt_1 = require("./models/functionInvocationAttempt");
|
|
54
54
|
const functionInvocation_1 = require("./models/functionInvocation");
|
|
55
|
+
const functionSchedule_1 = require("./models/functionSchedule");
|
|
55
56
|
const getAllTreeNodesRecord_1 = require("./models/getAllTreeNodesRecord");
|
|
56
57
|
const image_1 = require("./models/image");
|
|
57
58
|
const imageGrant_1 = require("./models/imageGrant");
|
|
@@ -74,6 +75,7 @@ const platformFunctionDeploymentEvent_1 = require("./models/platformFunctionDepl
|
|
|
74
75
|
const platformFunctionExecutionLog_1 = require("./models/platformFunctionExecutionLog");
|
|
75
76
|
const platformFunctionInvocationAttempt_1 = require("./models/platformFunctionInvocationAttempt");
|
|
76
77
|
const platformFunctionInvocation_1 = require("./models/platformFunctionInvocation");
|
|
78
|
+
const platformFunctionSchedule_1 = require("./models/platformFunctionSchedule");
|
|
77
79
|
const platformImage_1 = require("./models/platformImage");
|
|
78
80
|
const platformImageGrant_1 = require("./models/platformImageGrant");
|
|
79
81
|
const platformInfraCommit_1 = require("./models/platformInfraCommit");
|
|
@@ -210,6 +212,7 @@ function createClient(config) {
|
|
|
210
212
|
functionGraphStore: new functionGraphStore_1.FunctionGraphStoreModel(client),
|
|
211
213
|
functionInvocationAttempt: new functionInvocationAttempt_1.FunctionInvocationAttemptModel(client),
|
|
212
214
|
functionInvocation: new functionInvocation_1.FunctionInvocationModel(client),
|
|
215
|
+
functionSchedule: new functionSchedule_1.FunctionScheduleModel(client),
|
|
213
216
|
getAllTreeNodesRecord: new getAllTreeNodesRecord_1.GetAllTreeNodesRecordModel(client),
|
|
214
217
|
image: new image_1.ImageModel(client),
|
|
215
218
|
imageGrant: new imageGrant_1.ImageGrantModel(client),
|
|
@@ -232,6 +235,7 @@ function createClient(config) {
|
|
|
232
235
|
platformFunctionExecutionLog: new platformFunctionExecutionLog_1.PlatformFunctionExecutionLogModel(client),
|
|
233
236
|
platformFunctionInvocationAttempt: new platformFunctionInvocationAttempt_1.PlatformFunctionInvocationAttemptModel(client),
|
|
234
237
|
platformFunctionInvocation: new platformFunctionInvocation_1.PlatformFunctionInvocationModel(client),
|
|
238
|
+
platformFunctionSchedule: new platformFunctionSchedule_1.PlatformFunctionScheduleModel(client),
|
|
235
239
|
platformImage: new platformImage_1.PlatformImageModel(client),
|
|
236
240
|
platformImageGrant: new platformImageGrant_1.PlatformImageGrantModel(client),
|
|
237
241
|
platformInfraCommit: new platformInfraCommit_1.PlatformInfraCommitModel(client),
|