@constructive-sdk/cli 0.29.0 → 0.29.2
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/api/cli/commands/api.js +44 -0
- package/api/cli/commands/check-constraint.js +0 -22
- package/api/cli/commands/composite-type.js +0 -22
- package/api/cli/commands/database-setting.js +44 -0
- package/api/cli/commands/domain.js +66 -0
- package/api/cli/commands/enum.js +0 -22
- package/api/cli/commands/field.js +0 -22
- package/api/cli/commands/foreign-key-constraint.js +0 -22
- package/api/cli/commands/index.js +0 -22
- package/api/cli/commands/policy.js +0 -22
- package/api/cli/commands/primary-key-constraint.js +0 -22
- package/api/cli/commands/schema.js +0 -22
- package/api/cli/commands/site.js +44 -0
- package/api/cli/commands/spatial-relation.js +0 -22
- package/api/cli/commands/table.js +0 -22
- package/api/cli/commands/trigger.js +0 -22
- package/api/cli/commands/unique-constraint.js +0 -22
- package/api/cli/commands/view.js +0 -22
- package/api/orm/input-types.d.ts +144 -171
- package/auth/cli/commands/create-org-api-key.d.ts +8 -0
- package/auth/cli/commands/create-org-api-key.js +36 -0
- package/auth/cli/commands/create-org-principal.d.ts +8 -0
- package/auth/cli/commands/create-org-principal.js +36 -0
- package/auth/cli/commands/delete-org-principal.d.ts +8 -0
- package/auth/cli/commands/delete-org-principal.js +36 -0
- package/auth/cli/commands/org-api-key-list.d.ts +8 -0
- package/auth/cli/commands/org-api-key-list.js +224 -0
- package/auth/cli/commands/principal-entity.d.ts +8 -0
- package/auth/cli/commands/principal-entity.js +282 -0
- package/auth/cli/commands/principal-scope-override.d.ts +8 -0
- package/auth/cli/commands/principal-scope-override.js +171 -0
- package/auth/cli/commands/principal.d.ts +8 -0
- package/auth/cli/commands/principal.js +171 -0
- package/auth/cli/commands/revoke-org-api-key.d.ts +8 -0
- package/auth/cli/commands/revoke-org-api-key.js +36 -0
- package/auth/cli/commands.js +19 -3
- package/auth/cli/executor.d.ts +28 -4
- package/auth/orm/index.d.ts +32 -4
- package/auth/orm/index.js +8 -0
- package/auth/orm/input-types.d.ts +915 -145
- package/auth/orm/input-types.js +7 -0
- package/auth/orm/models/index.d.ts +4 -0
- package/auth/orm/models/index.js +9 -1
- package/auth/orm/models/orgApiKeyList.d.ts +36 -0
- package/auth/orm/models/orgApiKeyList.js +80 -0
- package/auth/orm/models/principal.d.ts +45 -0
- package/auth/orm/models/principal.js +93 -0
- package/auth/orm/models/principalEntity.d.ts +54 -0
- package/auth/orm/models/principalEntity.js +104 -0
- package/auth/orm/models/principalScopeOverride.d.ts +36 -0
- package/auth/orm/models/principalScopeOverride.js +80 -0
- package/auth/orm/mutation/index.d.ts +33 -1
- package/auth/orm/mutation/index.js +48 -0
- package/auth/orm/query/index.d.ts +4 -4
- package/auth/orm/query/index.js +7 -7
- package/compute/cli/commands/function-graph-execution.js +0 -22
- package/compute/cli/commands/function-graph.js +0 -20
- package/compute/cli/commands/platform-namespace-event.d.ts +8 -0
- package/compute/cli/commands/platform-namespace-event.js +510 -0
- package/compute/cli/commands/platform-namespace.d.ts +8 -0
- package/compute/cli/commands/platform-namespace.js +436 -0
- package/compute/cli/commands/resource-event.d.ts +8 -0
- package/compute/cli/commands/resource-event.js +356 -0
- package/compute/cli/commands/resource.d.ts +8 -0
- package/compute/cli/commands/resource.js +520 -0
- package/compute/cli/commands.js +13 -5
- package/compute/cli/executor.d.ts +10 -6
- package/compute/orm/index.d.ts +15 -7
- package/compute/orm/index.js +10 -2
- package/compute/orm/input-types.d.ts +1159 -221
- package/compute/orm/input-types.js +4 -0
- package/compute/orm/models/index.d.ts +5 -1
- package/compute/orm/models/index.js +11 -3
- package/compute/orm/models/platformNamespace.d.ts +54 -0
- package/compute/orm/models/platformNamespace.js +104 -0
- package/compute/orm/models/platformNamespaceEvent.d.ts +56 -0
- package/compute/orm/models/platformNamespaceEvent.js +107 -0
- package/compute/orm/models/resource.d.ts +54 -0
- package/compute/orm/models/resource.js +104 -0
- package/compute/orm/models/resourceEvent.d.ts +56 -0
- package/compute/orm/models/resourceEvent.js +107 -0
- package/compute/orm/mutation/index.d.ts +9 -9
- package/compute/orm/mutation/index.js +12 -12
- package/esm/api/cli/commands/api.js +44 -0
- package/esm/api/cli/commands/check-constraint.js +0 -22
- package/esm/api/cli/commands/composite-type.js +0 -22
- package/esm/api/cli/commands/database-setting.js +44 -0
- package/esm/api/cli/commands/domain.js +66 -0
- package/esm/api/cli/commands/enum.js +0 -22
- package/esm/api/cli/commands/field.js +0 -22
- package/esm/api/cli/commands/foreign-key-constraint.js +0 -22
- package/esm/api/cli/commands/index.js +0 -22
- package/esm/api/cli/commands/policy.js +0 -22
- package/esm/api/cli/commands/primary-key-constraint.js +0 -22
- package/esm/api/cli/commands/schema.js +0 -22
- package/esm/api/cli/commands/site.js +44 -0
- package/esm/api/cli/commands/spatial-relation.js +0 -22
- package/esm/api/cli/commands/table.js +0 -22
- package/esm/api/cli/commands/trigger.js +0 -22
- package/esm/api/cli/commands/unique-constraint.js +0 -22
- package/esm/api/cli/commands/view.js +0 -22
- package/esm/api/orm/input-types.d.ts +144 -171
- package/esm/auth/cli/commands/create-org-api-key.d.ts +8 -0
- package/esm/auth/cli/commands/create-org-api-key.js +34 -0
- package/esm/auth/cli/commands/create-org-principal.d.ts +8 -0
- package/esm/auth/cli/commands/create-org-principal.js +34 -0
- package/esm/auth/cli/commands/delete-org-principal.d.ts +8 -0
- package/esm/auth/cli/commands/delete-org-principal.js +34 -0
- package/esm/auth/cli/commands/org-api-key-list.d.ts +8 -0
- package/esm/auth/cli/commands/org-api-key-list.js +222 -0
- package/esm/auth/cli/commands/principal-entity.d.ts +8 -0
- package/esm/auth/cli/commands/principal-entity.js +280 -0
- package/esm/auth/cli/commands/principal-scope-override.d.ts +8 -0
- package/esm/auth/cli/commands/principal-scope-override.js +169 -0
- package/esm/auth/cli/commands/principal.d.ts +8 -0
- package/esm/auth/cli/commands/principal.js +169 -0
- package/esm/auth/cli/commands/revoke-org-api-key.d.ts +8 -0
- package/esm/auth/cli/commands/revoke-org-api-key.js +34 -0
- package/esm/auth/cli/commands.js +19 -3
- package/esm/auth/cli/executor.d.ts +28 -4
- package/esm/auth/orm/index.d.ts +32 -4
- package/esm/auth/orm/index.js +8 -0
- package/esm/auth/orm/input-types.d.ts +915 -145
- package/esm/auth/orm/input-types.js +7 -0
- package/esm/auth/orm/models/index.d.ts +4 -0
- package/esm/auth/orm/models/index.js +4 -0
- package/esm/auth/orm/models/orgApiKeyList.d.ts +36 -0
- package/esm/auth/orm/models/orgApiKeyList.js +76 -0
- package/esm/auth/orm/models/principal.d.ts +45 -0
- package/esm/auth/orm/models/principal.js +89 -0
- package/esm/auth/orm/models/principalEntity.d.ts +54 -0
- package/esm/auth/orm/models/principalEntity.js +100 -0
- package/esm/auth/orm/models/principalScopeOverride.d.ts +36 -0
- package/esm/auth/orm/models/principalScopeOverride.js +76 -0
- package/esm/auth/orm/mutation/index.d.ts +33 -1
- package/esm/auth/orm/mutation/index.js +48 -0
- package/esm/auth/orm/query/index.d.ts +4 -4
- package/esm/auth/orm/query/index.js +7 -7
- package/esm/compute/cli/commands/function-graph-execution.js +0 -22
- package/esm/compute/cli/commands/function-graph.js +0 -20
- package/esm/compute/cli/commands/platform-namespace-event.d.ts +8 -0
- package/esm/compute/cli/commands/platform-namespace-event.js +508 -0
- package/esm/compute/cli/commands/platform-namespace.d.ts +8 -0
- package/esm/compute/cli/commands/platform-namespace.js +434 -0
- package/esm/compute/cli/commands/resource-event.d.ts +8 -0
- package/esm/compute/cli/commands/resource-event.js +354 -0
- package/esm/compute/cli/commands/resource.d.ts +8 -0
- package/esm/compute/cli/commands/resource.js +518 -0
- package/esm/compute/cli/commands.js +13 -5
- package/esm/compute/cli/executor.d.ts +10 -6
- package/esm/compute/orm/index.d.ts +15 -7
- package/esm/compute/orm/index.js +10 -2
- package/esm/compute/orm/input-types.d.ts +1159 -221
- package/esm/compute/orm/input-types.js +4 -0
- package/esm/compute/orm/models/index.d.ts +5 -1
- package/esm/compute/orm/models/index.js +5 -1
- package/esm/compute/orm/models/platformNamespace.d.ts +54 -0
- package/esm/compute/orm/models/platformNamespace.js +100 -0
- package/esm/compute/orm/models/platformNamespaceEvent.d.ts +56 -0
- package/esm/compute/orm/models/platformNamespaceEvent.js +103 -0
- package/esm/compute/orm/models/resource.d.ts +54 -0
- package/esm/compute/orm/models/resource.js +100 -0
- package/esm/compute/orm/models/resourceEvent.d.ts +56 -0
- package/esm/compute/orm/models/resourceEvent.js +103 -0
- package/esm/compute/orm/mutation/index.d.ts +9 -9
- package/esm/compute/orm/mutation/index.js +12 -12
- package/esm/modules/cli/commands/merkle-store-module.js +22 -0
- package/esm/modules/cli/commands/principal-auth-module.d.ts +8 -0
- package/esm/modules/cli/commands/principal-auth-module.js +580 -0
- package/esm/modules/cli/commands/resource-module.d.ts +8 -0
- package/esm/modules/cli/commands/resource-module.js +602 -0
- package/esm/modules/cli/commands.js +9 -5
- package/esm/modules/cli/executor.d.ts +4 -2
- package/esm/modules/orm/index.d.ts +8 -4
- package/esm/modules/orm/index.js +8 -4
- package/esm/modules/orm/input-types.d.ts +868 -411
- package/esm/modules/orm/models/index.d.ts +4 -2
- package/esm/modules/orm/models/index.js +4 -2
- package/esm/modules/orm/models/principalAuthModule.d.ts +54 -0
- package/esm/modules/orm/models/principalAuthModule.js +100 -0
- package/esm/modules/orm/models/resourceModule.d.ts +54 -0
- package/esm/modules/orm/models/resourceModule.js +100 -0
- package/modules/cli/commands/merkle-store-module.js +22 -0
- package/modules/cli/commands/principal-auth-module.d.ts +8 -0
- package/modules/cli/commands/principal-auth-module.js +582 -0
- package/modules/cli/commands/resource-module.d.ts +8 -0
- package/modules/cli/commands/resource-module.js +604 -0
- package/modules/cli/commands.js +9 -5
- package/modules/cli/executor.d.ts +4 -2
- package/modules/orm/index.d.ts +8 -4
- package/modules/orm/index.js +8 -4
- package/modules/orm/input-types.d.ts +868 -411
- package/modules/orm/models/index.d.ts +4 -2
- package/modules/orm/models/index.js +10 -6
- package/modules/orm/models/principalAuthModule.d.ts +54 -0
- package/modules/orm/models/principalAuthModule.js +104 -0
- package/modules/orm/models/resourceModule.d.ts +54 -0
- package/modules/orm/models/resourceModule.js +104 -0
- package/package.json +5 -5
|
@@ -0,0 +1,518 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI commands for Resource
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { extractFirst } from 'inquirerer';
|
|
7
|
+
import { getClient } from '../executor';
|
|
8
|
+
import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils';
|
|
9
|
+
const fieldSchema = {
|
|
10
|
+
id: 'uuid',
|
|
11
|
+
createdAt: 'string',
|
|
12
|
+
updatedAt: 'string',
|
|
13
|
+
createdBy: 'uuid',
|
|
14
|
+
updatedBy: 'uuid',
|
|
15
|
+
namespaceId: 'uuid',
|
|
16
|
+
kind: 'string',
|
|
17
|
+
name: 'string',
|
|
18
|
+
slug: 'string',
|
|
19
|
+
spec: 'json',
|
|
20
|
+
status: 'string',
|
|
21
|
+
statusObserved: 'json',
|
|
22
|
+
lastError: 'string',
|
|
23
|
+
errorCount: 'int',
|
|
24
|
+
labels: 'json',
|
|
25
|
+
annotations: 'json',
|
|
26
|
+
databaseId: 'uuid',
|
|
27
|
+
};
|
|
28
|
+
const usage = '\nresource <command>\n\nCommands:\n list List resource records\n find-first Find first matching resource record\n get Get a resource by ID\n create Create a new resource\n update Update an existing resource\n delete Delete a resource\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';
|
|
29
|
+
export default async (argv, prompter, _options) => {
|
|
30
|
+
if (argv.help || argv.h) {
|
|
31
|
+
console.log(usage);
|
|
32
|
+
process.exit(0);
|
|
33
|
+
}
|
|
34
|
+
const { first: subcommand, newArgv } = extractFirst(argv);
|
|
35
|
+
if (!subcommand) {
|
|
36
|
+
const answer = await prompter.prompt(argv, [
|
|
37
|
+
{
|
|
38
|
+
type: 'autocomplete',
|
|
39
|
+
name: 'subcommand',
|
|
40
|
+
message: 'What do you want to do?',
|
|
41
|
+
options: ['list', 'find-first', 'get', 'create', 'update', 'delete'],
|
|
42
|
+
},
|
|
43
|
+
]);
|
|
44
|
+
return handleTableSubcommand(answer.subcommand, newArgv, prompter);
|
|
45
|
+
}
|
|
46
|
+
return handleTableSubcommand(subcommand, newArgv, prompter);
|
|
47
|
+
};
|
|
48
|
+
async function handleTableSubcommand(subcommand, argv, prompter) {
|
|
49
|
+
switch (subcommand) {
|
|
50
|
+
case 'list':
|
|
51
|
+
return handleList(argv, prompter);
|
|
52
|
+
case 'find-first':
|
|
53
|
+
return handleFindFirst(argv, prompter);
|
|
54
|
+
case 'get':
|
|
55
|
+
return handleGet(argv, prompter);
|
|
56
|
+
case 'create':
|
|
57
|
+
return handleCreate(argv, prompter);
|
|
58
|
+
case 'update':
|
|
59
|
+
return handleUpdate(argv, prompter);
|
|
60
|
+
case 'delete':
|
|
61
|
+
return handleDelete(argv, prompter);
|
|
62
|
+
default:
|
|
63
|
+
console.log(usage);
|
|
64
|
+
process.exit(1);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
async function handleList(argv, _prompter) {
|
|
68
|
+
try {
|
|
69
|
+
const defaultSelect = {
|
|
70
|
+
id: true,
|
|
71
|
+
createdAt: true,
|
|
72
|
+
updatedAt: true,
|
|
73
|
+
createdBy: true,
|
|
74
|
+
updatedBy: true,
|
|
75
|
+
namespaceId: true,
|
|
76
|
+
kind: true,
|
|
77
|
+
name: true,
|
|
78
|
+
slug: true,
|
|
79
|
+
spec: true,
|
|
80
|
+
status: true,
|
|
81
|
+
statusObserved: true,
|
|
82
|
+
lastError: true,
|
|
83
|
+
errorCount: true,
|
|
84
|
+
labels: true,
|
|
85
|
+
annotations: true,
|
|
86
|
+
databaseId: true,
|
|
87
|
+
};
|
|
88
|
+
const findManyArgs = parseFindManyArgs(argv, defaultSelect);
|
|
89
|
+
const client = getClient();
|
|
90
|
+
const result = await client.resource.findMany(findManyArgs).execute();
|
|
91
|
+
console.log(JSON.stringify(result, null, 2));
|
|
92
|
+
}
|
|
93
|
+
catch (error) {
|
|
94
|
+
console.error('Failed to list records.');
|
|
95
|
+
if (error instanceof Error) {
|
|
96
|
+
console.error(error.message);
|
|
97
|
+
}
|
|
98
|
+
process.exit(1);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
async function handleFindFirst(argv, _prompter) {
|
|
102
|
+
try {
|
|
103
|
+
const defaultSelect = {
|
|
104
|
+
id: true,
|
|
105
|
+
createdAt: true,
|
|
106
|
+
updatedAt: true,
|
|
107
|
+
createdBy: true,
|
|
108
|
+
updatedBy: true,
|
|
109
|
+
namespaceId: true,
|
|
110
|
+
kind: true,
|
|
111
|
+
name: true,
|
|
112
|
+
slug: true,
|
|
113
|
+
spec: true,
|
|
114
|
+
status: true,
|
|
115
|
+
statusObserved: true,
|
|
116
|
+
lastError: true,
|
|
117
|
+
errorCount: true,
|
|
118
|
+
labels: true,
|
|
119
|
+
annotations: true,
|
|
120
|
+
databaseId: true,
|
|
121
|
+
};
|
|
122
|
+
const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
|
|
123
|
+
const client = getClient();
|
|
124
|
+
const result = await client.resource.findFirst(findFirstArgs).execute();
|
|
125
|
+
console.log(JSON.stringify(result, null, 2));
|
|
126
|
+
}
|
|
127
|
+
catch (error) {
|
|
128
|
+
console.error('Failed to find record.');
|
|
129
|
+
if (error instanceof Error) {
|
|
130
|
+
console.error(error.message);
|
|
131
|
+
}
|
|
132
|
+
process.exit(1);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
async function handleGet(argv, prompter) {
|
|
136
|
+
try {
|
|
137
|
+
const answers = await prompter.prompt(argv, [
|
|
138
|
+
{
|
|
139
|
+
type: 'text',
|
|
140
|
+
name: 'id',
|
|
141
|
+
message: 'id',
|
|
142
|
+
required: true,
|
|
143
|
+
},
|
|
144
|
+
]);
|
|
145
|
+
const client = getClient();
|
|
146
|
+
const result = await client.resource
|
|
147
|
+
.findOne({
|
|
148
|
+
id: answers.id,
|
|
149
|
+
select: {
|
|
150
|
+
id: true,
|
|
151
|
+
createdAt: true,
|
|
152
|
+
updatedAt: true,
|
|
153
|
+
createdBy: true,
|
|
154
|
+
updatedBy: true,
|
|
155
|
+
namespaceId: true,
|
|
156
|
+
kind: true,
|
|
157
|
+
name: true,
|
|
158
|
+
slug: true,
|
|
159
|
+
spec: true,
|
|
160
|
+
status: true,
|
|
161
|
+
statusObserved: true,
|
|
162
|
+
lastError: true,
|
|
163
|
+
errorCount: true,
|
|
164
|
+
labels: true,
|
|
165
|
+
annotations: true,
|
|
166
|
+
databaseId: true,
|
|
167
|
+
},
|
|
168
|
+
})
|
|
169
|
+
.execute();
|
|
170
|
+
console.log(JSON.stringify(result, null, 2));
|
|
171
|
+
}
|
|
172
|
+
catch (error) {
|
|
173
|
+
console.error('Record not found.');
|
|
174
|
+
if (error instanceof Error) {
|
|
175
|
+
console.error(error.message);
|
|
176
|
+
}
|
|
177
|
+
process.exit(1);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
async function handleCreate(argv, prompter) {
|
|
181
|
+
try {
|
|
182
|
+
const rawAnswers = await prompter.prompt(argv, [
|
|
183
|
+
{
|
|
184
|
+
type: 'text',
|
|
185
|
+
name: 'createdBy',
|
|
186
|
+
message: 'createdBy',
|
|
187
|
+
required: false,
|
|
188
|
+
skipPrompt: true,
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
type: 'text',
|
|
192
|
+
name: 'updatedBy',
|
|
193
|
+
message: 'updatedBy',
|
|
194
|
+
required: false,
|
|
195
|
+
skipPrompt: true,
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
type: 'text',
|
|
199
|
+
name: 'namespaceId',
|
|
200
|
+
message: 'namespaceId',
|
|
201
|
+
required: true,
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
type: 'text',
|
|
205
|
+
name: 'kind',
|
|
206
|
+
message: 'kind',
|
|
207
|
+
required: true,
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
type: 'text',
|
|
211
|
+
name: 'name',
|
|
212
|
+
message: 'name',
|
|
213
|
+
required: true,
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
type: 'text',
|
|
217
|
+
name: 'slug',
|
|
218
|
+
message: 'slug',
|
|
219
|
+
required: true,
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
type: 'json',
|
|
223
|
+
name: 'spec',
|
|
224
|
+
message: 'spec',
|
|
225
|
+
required: false,
|
|
226
|
+
skipPrompt: true,
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
type: 'text',
|
|
230
|
+
name: 'status',
|
|
231
|
+
message: 'status',
|
|
232
|
+
required: false,
|
|
233
|
+
skipPrompt: true,
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
type: 'json',
|
|
237
|
+
name: 'statusObserved',
|
|
238
|
+
message: 'statusObserved',
|
|
239
|
+
required: false,
|
|
240
|
+
skipPrompt: true,
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
type: 'text',
|
|
244
|
+
name: 'lastError',
|
|
245
|
+
message: 'lastError',
|
|
246
|
+
required: false,
|
|
247
|
+
skipPrompt: true,
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
type: 'text',
|
|
251
|
+
name: 'errorCount',
|
|
252
|
+
message: 'errorCount',
|
|
253
|
+
required: false,
|
|
254
|
+
skipPrompt: true,
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
type: 'json',
|
|
258
|
+
name: 'labels',
|
|
259
|
+
message: 'labels',
|
|
260
|
+
required: false,
|
|
261
|
+
skipPrompt: true,
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
type: 'json',
|
|
265
|
+
name: 'annotations',
|
|
266
|
+
message: 'annotations',
|
|
267
|
+
required: false,
|
|
268
|
+
skipPrompt: true,
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
type: 'text',
|
|
272
|
+
name: 'databaseId',
|
|
273
|
+
message: 'databaseId',
|
|
274
|
+
required: true,
|
|
275
|
+
},
|
|
276
|
+
]);
|
|
277
|
+
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
278
|
+
const cleanedData = stripUndefined(answers, fieldSchema);
|
|
279
|
+
const client = getClient();
|
|
280
|
+
const result = await client.resource
|
|
281
|
+
.create({
|
|
282
|
+
data: {
|
|
283
|
+
createdBy: cleanedData.createdBy,
|
|
284
|
+
updatedBy: cleanedData.updatedBy,
|
|
285
|
+
namespaceId: cleanedData.namespaceId,
|
|
286
|
+
kind: cleanedData.kind,
|
|
287
|
+
name: cleanedData.name,
|
|
288
|
+
slug: cleanedData.slug,
|
|
289
|
+
spec: cleanedData.spec,
|
|
290
|
+
status: cleanedData.status,
|
|
291
|
+
statusObserved: cleanedData.statusObserved,
|
|
292
|
+
lastError: cleanedData.lastError,
|
|
293
|
+
errorCount: cleanedData.errorCount,
|
|
294
|
+
labels: cleanedData.labels,
|
|
295
|
+
annotations: cleanedData.annotations,
|
|
296
|
+
databaseId: cleanedData.databaseId,
|
|
297
|
+
},
|
|
298
|
+
select: {
|
|
299
|
+
id: true,
|
|
300
|
+
createdAt: true,
|
|
301
|
+
updatedAt: true,
|
|
302
|
+
createdBy: true,
|
|
303
|
+
updatedBy: true,
|
|
304
|
+
namespaceId: true,
|
|
305
|
+
kind: true,
|
|
306
|
+
name: true,
|
|
307
|
+
slug: true,
|
|
308
|
+
spec: true,
|
|
309
|
+
status: true,
|
|
310
|
+
statusObserved: true,
|
|
311
|
+
lastError: true,
|
|
312
|
+
errorCount: true,
|
|
313
|
+
labels: true,
|
|
314
|
+
annotations: true,
|
|
315
|
+
databaseId: true,
|
|
316
|
+
},
|
|
317
|
+
})
|
|
318
|
+
.execute();
|
|
319
|
+
console.log(JSON.stringify(result, null, 2));
|
|
320
|
+
}
|
|
321
|
+
catch (error) {
|
|
322
|
+
console.error('Failed to create record.');
|
|
323
|
+
if (error instanceof Error) {
|
|
324
|
+
console.error(error.message);
|
|
325
|
+
}
|
|
326
|
+
process.exit(1);
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
async function handleUpdate(argv, prompter) {
|
|
330
|
+
try {
|
|
331
|
+
const rawAnswers = await prompter.prompt(argv, [
|
|
332
|
+
{
|
|
333
|
+
type: 'text',
|
|
334
|
+
name: 'id',
|
|
335
|
+
message: 'id',
|
|
336
|
+
required: true,
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
type: 'text',
|
|
340
|
+
name: 'createdBy',
|
|
341
|
+
message: 'createdBy',
|
|
342
|
+
required: false,
|
|
343
|
+
skipPrompt: true,
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
type: 'text',
|
|
347
|
+
name: 'updatedBy',
|
|
348
|
+
message: 'updatedBy',
|
|
349
|
+
required: false,
|
|
350
|
+
skipPrompt: true,
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
type: 'text',
|
|
354
|
+
name: 'namespaceId',
|
|
355
|
+
message: 'namespaceId',
|
|
356
|
+
required: false,
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
type: 'text',
|
|
360
|
+
name: 'kind',
|
|
361
|
+
message: 'kind',
|
|
362
|
+
required: false,
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
type: 'text',
|
|
366
|
+
name: 'name',
|
|
367
|
+
message: 'name',
|
|
368
|
+
required: false,
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
type: 'text',
|
|
372
|
+
name: 'slug',
|
|
373
|
+
message: 'slug',
|
|
374
|
+
required: false,
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
type: 'json',
|
|
378
|
+
name: 'spec',
|
|
379
|
+
message: 'spec',
|
|
380
|
+
required: false,
|
|
381
|
+
skipPrompt: true,
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
type: 'text',
|
|
385
|
+
name: 'status',
|
|
386
|
+
message: 'status',
|
|
387
|
+
required: false,
|
|
388
|
+
skipPrompt: true,
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
type: 'json',
|
|
392
|
+
name: 'statusObserved',
|
|
393
|
+
message: 'statusObserved',
|
|
394
|
+
required: false,
|
|
395
|
+
skipPrompt: true,
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
type: 'text',
|
|
399
|
+
name: 'lastError',
|
|
400
|
+
message: 'lastError',
|
|
401
|
+
required: false,
|
|
402
|
+
skipPrompt: true,
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
type: 'text',
|
|
406
|
+
name: 'errorCount',
|
|
407
|
+
message: 'errorCount',
|
|
408
|
+
required: false,
|
|
409
|
+
skipPrompt: true,
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
type: 'json',
|
|
413
|
+
name: 'labels',
|
|
414
|
+
message: 'labels',
|
|
415
|
+
required: false,
|
|
416
|
+
skipPrompt: true,
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
type: 'json',
|
|
420
|
+
name: 'annotations',
|
|
421
|
+
message: 'annotations',
|
|
422
|
+
required: false,
|
|
423
|
+
skipPrompt: true,
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
type: 'text',
|
|
427
|
+
name: 'databaseId',
|
|
428
|
+
message: 'databaseId',
|
|
429
|
+
required: false,
|
|
430
|
+
},
|
|
431
|
+
]);
|
|
432
|
+
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
433
|
+
const cleanedData = stripUndefined(answers, fieldSchema);
|
|
434
|
+
const client = getClient();
|
|
435
|
+
const result = await client.resource
|
|
436
|
+
.update({
|
|
437
|
+
where: {
|
|
438
|
+
id: answers.id,
|
|
439
|
+
},
|
|
440
|
+
data: {
|
|
441
|
+
createdBy: cleanedData.createdBy,
|
|
442
|
+
updatedBy: cleanedData.updatedBy,
|
|
443
|
+
namespaceId: cleanedData.namespaceId,
|
|
444
|
+
kind: cleanedData.kind,
|
|
445
|
+
name: cleanedData.name,
|
|
446
|
+
slug: cleanedData.slug,
|
|
447
|
+
spec: cleanedData.spec,
|
|
448
|
+
status: cleanedData.status,
|
|
449
|
+
statusObserved: cleanedData.statusObserved,
|
|
450
|
+
lastError: cleanedData.lastError,
|
|
451
|
+
errorCount: cleanedData.errorCount,
|
|
452
|
+
labels: cleanedData.labels,
|
|
453
|
+
annotations: cleanedData.annotations,
|
|
454
|
+
databaseId: cleanedData.databaseId,
|
|
455
|
+
},
|
|
456
|
+
select: {
|
|
457
|
+
id: true,
|
|
458
|
+
createdAt: true,
|
|
459
|
+
updatedAt: true,
|
|
460
|
+
createdBy: true,
|
|
461
|
+
updatedBy: true,
|
|
462
|
+
namespaceId: true,
|
|
463
|
+
kind: true,
|
|
464
|
+
name: true,
|
|
465
|
+
slug: true,
|
|
466
|
+
spec: true,
|
|
467
|
+
status: true,
|
|
468
|
+
statusObserved: true,
|
|
469
|
+
lastError: true,
|
|
470
|
+
errorCount: true,
|
|
471
|
+
labels: true,
|
|
472
|
+
annotations: true,
|
|
473
|
+
databaseId: true,
|
|
474
|
+
},
|
|
475
|
+
})
|
|
476
|
+
.execute();
|
|
477
|
+
console.log(JSON.stringify(result, null, 2));
|
|
478
|
+
}
|
|
479
|
+
catch (error) {
|
|
480
|
+
console.error('Failed to update record.');
|
|
481
|
+
if (error instanceof Error) {
|
|
482
|
+
console.error(error.message);
|
|
483
|
+
}
|
|
484
|
+
process.exit(1);
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
async function handleDelete(argv, prompter) {
|
|
488
|
+
try {
|
|
489
|
+
const rawAnswers = await prompter.prompt(argv, [
|
|
490
|
+
{
|
|
491
|
+
type: 'text',
|
|
492
|
+
name: 'id',
|
|
493
|
+
message: 'id',
|
|
494
|
+
required: true,
|
|
495
|
+
},
|
|
496
|
+
]);
|
|
497
|
+
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
498
|
+
const client = getClient();
|
|
499
|
+
const result = await client.resource
|
|
500
|
+
.delete({
|
|
501
|
+
where: {
|
|
502
|
+
id: answers.id,
|
|
503
|
+
},
|
|
504
|
+
select: {
|
|
505
|
+
id: true,
|
|
506
|
+
},
|
|
507
|
+
})
|
|
508
|
+
.execute();
|
|
509
|
+
console.log(JSON.stringify(result, null, 2));
|
|
510
|
+
}
|
|
511
|
+
catch (error) {
|
|
512
|
+
console.error('Failed to delete record.');
|
|
513
|
+
if (error instanceof Error) {
|
|
514
|
+
console.error(error.message);
|
|
515
|
+
}
|
|
516
|
+
process.exit(1);
|
|
517
|
+
}
|
|
518
|
+
}
|
|
@@ -9,19 +9,23 @@ import authCmd from './commands/auth';
|
|
|
9
9
|
import getAllRecordCmd from './commands/get-all-record';
|
|
10
10
|
import functionApiBindingCmd from './commands/function-api-binding';
|
|
11
11
|
import functionDeploymentCmd from './commands/function-deployment';
|
|
12
|
+
import resourceCmd from './commands/resource';
|
|
12
13
|
import functionGraphRefCmd from './commands/function-graph-ref';
|
|
13
14
|
import functionGraphStoreCmd from './commands/function-graph-store';
|
|
14
15
|
import functionGraphObjectCmd from './commands/function-graph-object';
|
|
15
16
|
import functionDeploymentEventCmd from './commands/function-deployment-event';
|
|
16
17
|
import orgFunctionExecutionLogCmd from './commands/org-function-execution-log';
|
|
18
|
+
import resourceEventCmd from './commands/resource-event';
|
|
17
19
|
import functionGraphExecutionOutputCmd from './commands/function-graph-execution-output';
|
|
18
20
|
import functionGraphCommitCmd from './commands/function-graph-commit';
|
|
19
21
|
import secretDefinitionCmd from './commands/secret-definition';
|
|
20
22
|
import functionExecutionLogCmd from './commands/function-execution-log';
|
|
21
|
-
import functionGraphExecutionNodeStateCmd from './commands/function-graph-execution-node-state';
|
|
22
23
|
import functionGraphCmd from './commands/function-graph';
|
|
24
|
+
import functionGraphExecutionNodeStateCmd from './commands/function-graph-execution-node-state';
|
|
25
|
+
import platformNamespaceCmd from './commands/platform-namespace';
|
|
23
26
|
import orgFunctionInvocationCmd from './commands/org-function-invocation';
|
|
24
27
|
import functionInvocationCmd from './commands/function-invocation';
|
|
28
|
+
import platformNamespaceEventCmd from './commands/platform-namespace-event';
|
|
25
29
|
import functionGraphExecutionCmd from './commands/function-graph-execution';
|
|
26
30
|
import functionDefinitionCmd from './commands/function-definition';
|
|
27
31
|
import readFunctionGraphCmd from './commands/read-function-graph';
|
|
@@ -33,9 +37,9 @@ import copyGraphCmd from './commands/copy-graph';
|
|
|
33
37
|
import saveGraphCmd from './commands/save-graph';
|
|
34
38
|
import addEdgeAndSaveCmd from './commands/add-edge-and-save';
|
|
35
39
|
import addNodeAndSaveCmd from './commands/add-node-and-save';
|
|
40
|
+
import importGraphJsonCmd from './commands/import-graph-json';
|
|
36
41
|
import addEdgeCmd from './commands/add-edge';
|
|
37
42
|
import addNodeCmd from './commands/add-node';
|
|
38
|
-
import importGraphJsonCmd from './commands/import-graph-json';
|
|
39
43
|
import insertNodeAtPathCmd from './commands/insert-node-at-path';
|
|
40
44
|
import startExecutionCmd from './commands/start-execution';
|
|
41
45
|
import provisionBucketCmd from './commands/provision-bucket';
|
|
@@ -45,19 +49,23 @@ const createCommandMap = () => ({
|
|
|
45
49
|
'get-all-record': getAllRecordCmd,
|
|
46
50
|
'function-api-binding': functionApiBindingCmd,
|
|
47
51
|
'function-deployment': functionDeploymentCmd,
|
|
52
|
+
resource: resourceCmd,
|
|
48
53
|
'function-graph-ref': functionGraphRefCmd,
|
|
49
54
|
'function-graph-store': functionGraphStoreCmd,
|
|
50
55
|
'function-graph-object': functionGraphObjectCmd,
|
|
51
56
|
'function-deployment-event': functionDeploymentEventCmd,
|
|
52
57
|
'org-function-execution-log': orgFunctionExecutionLogCmd,
|
|
58
|
+
'resource-event': resourceEventCmd,
|
|
53
59
|
'function-graph-execution-output': functionGraphExecutionOutputCmd,
|
|
54
60
|
'function-graph-commit': functionGraphCommitCmd,
|
|
55
61
|
'secret-definition': secretDefinitionCmd,
|
|
56
62
|
'function-execution-log': functionExecutionLogCmd,
|
|
57
|
-
'function-graph-execution-node-state': functionGraphExecutionNodeStateCmd,
|
|
58
63
|
'function-graph': functionGraphCmd,
|
|
64
|
+
'function-graph-execution-node-state': functionGraphExecutionNodeStateCmd,
|
|
65
|
+
'platform-namespace': platformNamespaceCmd,
|
|
59
66
|
'org-function-invocation': orgFunctionInvocationCmd,
|
|
60
67
|
'function-invocation': functionInvocationCmd,
|
|
68
|
+
'platform-namespace-event': platformNamespaceEventCmd,
|
|
61
69
|
'function-graph-execution': functionGraphExecutionCmd,
|
|
62
70
|
'function-definition': functionDefinitionCmd,
|
|
63
71
|
'read-function-graph': readFunctionGraphCmd,
|
|
@@ -69,14 +77,14 @@ const createCommandMap = () => ({
|
|
|
69
77
|
'save-graph': saveGraphCmd,
|
|
70
78
|
'add-edge-and-save': addEdgeAndSaveCmd,
|
|
71
79
|
'add-node-and-save': addNodeAndSaveCmd,
|
|
80
|
+
'import-graph-json': importGraphJsonCmd,
|
|
72
81
|
'add-edge': addEdgeCmd,
|
|
73
82
|
'add-node': addNodeCmd,
|
|
74
|
-
'import-graph-json': importGraphJsonCmd,
|
|
75
83
|
'insert-node-at-path': insertNodeAtPathCmd,
|
|
76
84
|
'start-execution': startExecutionCmd,
|
|
77
85
|
'provision-bucket': provisionBucketCmd,
|
|
78
86
|
});
|
|
79
|
-
const usage = '\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n get-all-record getAllRecord CRUD operations\n function-api-binding functionApiBinding CRUD operations\n function-deployment functionDeployment CRUD operations\n function-graph-ref functionGraphRef CRUD operations\n function-graph-store functionGraphStore CRUD operations\n function-graph-object functionGraphObject CRUD operations\n function-deployment-event functionDeploymentEvent CRUD operations\n org-function-execution-log orgFunctionExecutionLog CRUD operations\n function-graph-execution-output functionGraphExecutionOutput CRUD operations\n function-graph-commit functionGraphCommit CRUD operations\n secret-definition secretDefinition CRUD operations\n function-execution-log functionExecutionLog CRUD operations\n function-graph-execution-node-state functionGraphExecutionNodeState CRUD operations\n
|
|
87
|
+
const usage = '\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n get-all-record getAllRecord CRUD operations\n function-api-binding functionApiBinding CRUD operations\n function-deployment functionDeployment CRUD operations\n resource resource CRUD operations\n function-graph-ref functionGraphRef CRUD operations\n function-graph-store functionGraphStore CRUD operations\n function-graph-object functionGraphObject CRUD operations\n function-deployment-event functionDeploymentEvent CRUD operations\n org-function-execution-log orgFunctionExecutionLog CRUD operations\n resource-event resourceEvent CRUD operations\n function-graph-execution-output functionGraphExecutionOutput CRUD operations\n function-graph-commit functionGraphCommit CRUD operations\n secret-definition secretDefinition CRUD operations\n function-execution-log functionExecutionLog CRUD operations\n function-graph functionGraph CRUD operations\n function-graph-execution-node-state functionGraphExecutionNodeState CRUD operations\n platform-namespace platformNamespace CRUD operations\n org-function-invocation orgFunctionInvocation CRUD operations\n function-invocation functionInvocation CRUD operations\n platform-namespace-event platformNamespaceEvent CRUD operations\n function-graph-execution functionGraphExecution CRUD operations\n function-definition functionDefinition CRUD operations\n read-function-graph readFunctionGraph\n validate-function-graph validateFunctionGraph\n init-empty-repo initEmptyRepo\n set-data-at-path setDataAtPath\n import-definitions importDefinitions\n copy-graph copyGraph\n save-graph saveGraph\n add-edge-and-save addEdgeAndSave\n add-node-and-save addNodeAndSave\n import-graph-json importGraphJson\n add-edge addEdge\n add-node addNode\n insert-node-at-path insertNodeAtPath\n start-execution startExecution\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';
|
|
80
88
|
export const commands = async (argv, prompter, options) => {
|
|
81
89
|
if (argv.help || argv.h) {
|
|
82
90
|
console.log(usage);
|
|
@@ -3,19 +3,23 @@ export declare function getClient(contextName?: string): {
|
|
|
3
3
|
getAllRecord: import("..").GetAllRecordModel;
|
|
4
4
|
functionApiBinding: import("..").FunctionApiBindingModel;
|
|
5
5
|
functionDeployment: import("..").FunctionDeploymentModel;
|
|
6
|
+
resource: import("..").ResourceModel;
|
|
6
7
|
functionGraphRef: import("..").FunctionGraphRefModel;
|
|
7
8
|
functionGraphStore: import("..").FunctionGraphStoreModel;
|
|
8
9
|
functionGraphObject: import("..").FunctionGraphObjectModel;
|
|
9
10
|
functionDeploymentEvent: import("..").FunctionDeploymentEventModel;
|
|
10
11
|
orgFunctionExecutionLog: import("..").OrgFunctionExecutionLogModel;
|
|
12
|
+
resourceEvent: import("..").ResourceEventModel;
|
|
11
13
|
functionGraphExecutionOutput: import("..").FunctionGraphExecutionOutputModel;
|
|
12
14
|
functionGraphCommit: import("..").FunctionGraphCommitModel;
|
|
13
15
|
secretDefinition: import("..").SecretDefinitionModel;
|
|
14
16
|
functionExecutionLog: import("..").FunctionExecutionLogModel;
|
|
15
|
-
functionGraphExecutionNodeState: import("..").FunctionGraphExecutionNodeStateModel;
|
|
16
17
|
functionGraph: import("..").FunctionGraphModel;
|
|
18
|
+
functionGraphExecutionNodeState: import("..").FunctionGraphExecutionNodeStateModel;
|
|
19
|
+
platformNamespace: import("..").PlatformNamespaceModel;
|
|
17
20
|
orgFunctionInvocation: import("..").OrgFunctionInvocationModel;
|
|
18
21
|
functionInvocation: import("..").FunctionInvocationModel;
|
|
22
|
+
platformNamespaceEvent: import("..").PlatformNamespaceEventModel;
|
|
19
23
|
functionGraphExecution: import("..").FunctionGraphExecutionModel;
|
|
20
24
|
functionDefinition: import("..").FunctionDefinitionModel;
|
|
21
25
|
query: {
|
|
@@ -66,6 +70,11 @@ export declare function getClient(contextName?: string): {
|
|
|
66
70
|
} & import("..").StrictSelect<S, import("../orm/input-types").AddNodeAndSavePayloadSelect>) => import("..").QueryBuilder<{
|
|
67
71
|
addNodeAndSave: import("..").InferSelectResult<import("../orm/input-types").AddNodeAndSavePayload, S> | null;
|
|
68
72
|
}>;
|
|
73
|
+
importGraphJson: <S extends import("../orm/input-types").ImportGraphJsonPayloadSelect>(args: import("../orm/mutation").ImportGraphJsonVariables, options: {
|
|
74
|
+
select: S;
|
|
75
|
+
} & import("..").StrictSelect<S, import("../orm/input-types").ImportGraphJsonPayloadSelect>) => import("..").QueryBuilder<{
|
|
76
|
+
importGraphJson: import("..").InferSelectResult<import("../orm/input-types").ImportGraphJsonPayload, S> | null;
|
|
77
|
+
}>;
|
|
69
78
|
addEdge: <S extends import("../orm/input-types").AddEdgePayloadSelect>(args: import("../orm/mutation").AddEdgeVariables, options: {
|
|
70
79
|
select: S;
|
|
71
80
|
} & import("..").StrictSelect<S, import("../orm/input-types").AddEdgePayloadSelect>) => import("..").QueryBuilder<{
|
|
@@ -76,11 +85,6 @@ export declare function getClient(contextName?: string): {
|
|
|
76
85
|
} & import("..").StrictSelect<S, import("../orm/input-types").AddNodePayloadSelect>) => import("..").QueryBuilder<{
|
|
77
86
|
addNode: import("..").InferSelectResult<import("../orm/input-types").AddNodePayload, S> | null;
|
|
78
87
|
}>;
|
|
79
|
-
importGraphJson: <S extends import("../orm/input-types").ImportGraphJsonPayloadSelect>(args: import("../orm/mutation").ImportGraphJsonVariables, options: {
|
|
80
|
-
select: S;
|
|
81
|
-
} & import("..").StrictSelect<S, import("../orm/input-types").ImportGraphJsonPayloadSelect>) => import("..").QueryBuilder<{
|
|
82
|
-
importGraphJson: import("..").InferSelectResult<import("../orm/input-types").ImportGraphJsonPayload, S> | null;
|
|
83
|
-
}>;
|
|
84
88
|
insertNodeAtPath: <S extends import("../orm/input-types").InsertNodeAtPathPayloadSelect>(args: import("../orm/mutation").InsertNodeAtPathVariables, options: {
|
|
85
89
|
select: S;
|
|
86
90
|
} & import("..").StrictSelect<S, import("../orm/input-types").InsertNodeAtPathPayloadSelect>) => import("..").QueryBuilder<{
|