@constructive-sdk/cli 0.29.1 → 0.29.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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,520 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/**
|
|
4
|
+
* CLI commands for Resource
|
|
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
|
+
id: 'uuid',
|
|
13
|
+
createdAt: 'string',
|
|
14
|
+
updatedAt: 'string',
|
|
15
|
+
createdBy: 'uuid',
|
|
16
|
+
updatedBy: 'uuid',
|
|
17
|
+
namespaceId: 'uuid',
|
|
18
|
+
kind: 'string',
|
|
19
|
+
name: 'string',
|
|
20
|
+
slug: 'string',
|
|
21
|
+
spec: 'json',
|
|
22
|
+
status: 'string',
|
|
23
|
+
statusObserved: 'json',
|
|
24
|
+
lastError: 'string',
|
|
25
|
+
errorCount: 'int',
|
|
26
|
+
labels: 'json',
|
|
27
|
+
annotations: 'json',
|
|
28
|
+
databaseId: 'uuid',
|
|
29
|
+
};
|
|
30
|
+
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';
|
|
31
|
+
exports.default = async (argv, prompter, _options) => {
|
|
32
|
+
if (argv.help || argv.h) {
|
|
33
|
+
console.log(usage);
|
|
34
|
+
process.exit(0);
|
|
35
|
+
}
|
|
36
|
+
const { first: subcommand, newArgv } = (0, inquirerer_1.extractFirst)(argv);
|
|
37
|
+
if (!subcommand) {
|
|
38
|
+
const answer = await prompter.prompt(argv, [
|
|
39
|
+
{
|
|
40
|
+
type: 'autocomplete',
|
|
41
|
+
name: 'subcommand',
|
|
42
|
+
message: 'What do you want to do?',
|
|
43
|
+
options: ['list', 'find-first', 'get', 'create', 'update', 'delete'],
|
|
44
|
+
},
|
|
45
|
+
]);
|
|
46
|
+
return handleTableSubcommand(answer.subcommand, newArgv, prompter);
|
|
47
|
+
}
|
|
48
|
+
return handleTableSubcommand(subcommand, newArgv, prompter);
|
|
49
|
+
};
|
|
50
|
+
async function handleTableSubcommand(subcommand, argv, prompter) {
|
|
51
|
+
switch (subcommand) {
|
|
52
|
+
case 'list':
|
|
53
|
+
return handleList(argv, prompter);
|
|
54
|
+
case 'find-first':
|
|
55
|
+
return handleFindFirst(argv, prompter);
|
|
56
|
+
case 'get':
|
|
57
|
+
return handleGet(argv, prompter);
|
|
58
|
+
case 'create':
|
|
59
|
+
return handleCreate(argv, prompter);
|
|
60
|
+
case 'update':
|
|
61
|
+
return handleUpdate(argv, prompter);
|
|
62
|
+
case 'delete':
|
|
63
|
+
return handleDelete(argv, prompter);
|
|
64
|
+
default:
|
|
65
|
+
console.log(usage);
|
|
66
|
+
process.exit(1);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
async function handleList(argv, _prompter) {
|
|
70
|
+
try {
|
|
71
|
+
const defaultSelect = {
|
|
72
|
+
id: true,
|
|
73
|
+
createdAt: true,
|
|
74
|
+
updatedAt: true,
|
|
75
|
+
createdBy: true,
|
|
76
|
+
updatedBy: true,
|
|
77
|
+
namespaceId: true,
|
|
78
|
+
kind: true,
|
|
79
|
+
name: true,
|
|
80
|
+
slug: true,
|
|
81
|
+
spec: true,
|
|
82
|
+
status: true,
|
|
83
|
+
statusObserved: true,
|
|
84
|
+
lastError: true,
|
|
85
|
+
errorCount: true,
|
|
86
|
+
labels: true,
|
|
87
|
+
annotations: true,
|
|
88
|
+
databaseId: true,
|
|
89
|
+
};
|
|
90
|
+
const findManyArgs = (0, utils_1.parseFindManyArgs)(argv, defaultSelect);
|
|
91
|
+
const client = (0, executor_1.getClient)();
|
|
92
|
+
const result = await client.resource.findMany(findManyArgs).execute();
|
|
93
|
+
console.log(JSON.stringify(result, null, 2));
|
|
94
|
+
}
|
|
95
|
+
catch (error) {
|
|
96
|
+
console.error('Failed to list records.');
|
|
97
|
+
if (error instanceof Error) {
|
|
98
|
+
console.error(error.message);
|
|
99
|
+
}
|
|
100
|
+
process.exit(1);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
async function handleFindFirst(argv, _prompter) {
|
|
104
|
+
try {
|
|
105
|
+
const defaultSelect = {
|
|
106
|
+
id: true,
|
|
107
|
+
createdAt: true,
|
|
108
|
+
updatedAt: true,
|
|
109
|
+
createdBy: true,
|
|
110
|
+
updatedBy: true,
|
|
111
|
+
namespaceId: true,
|
|
112
|
+
kind: true,
|
|
113
|
+
name: true,
|
|
114
|
+
slug: true,
|
|
115
|
+
spec: true,
|
|
116
|
+
status: true,
|
|
117
|
+
statusObserved: true,
|
|
118
|
+
lastError: true,
|
|
119
|
+
errorCount: true,
|
|
120
|
+
labels: true,
|
|
121
|
+
annotations: true,
|
|
122
|
+
databaseId: true,
|
|
123
|
+
};
|
|
124
|
+
const findFirstArgs = (0, utils_1.parseFindFirstArgs)(argv, defaultSelect);
|
|
125
|
+
const client = (0, executor_1.getClient)();
|
|
126
|
+
const result = await client.resource.findFirst(findFirstArgs).execute();
|
|
127
|
+
console.log(JSON.stringify(result, null, 2));
|
|
128
|
+
}
|
|
129
|
+
catch (error) {
|
|
130
|
+
console.error('Failed to find record.');
|
|
131
|
+
if (error instanceof Error) {
|
|
132
|
+
console.error(error.message);
|
|
133
|
+
}
|
|
134
|
+
process.exit(1);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
async function handleGet(argv, prompter) {
|
|
138
|
+
try {
|
|
139
|
+
const answers = await prompter.prompt(argv, [
|
|
140
|
+
{
|
|
141
|
+
type: 'text',
|
|
142
|
+
name: 'id',
|
|
143
|
+
message: 'id',
|
|
144
|
+
required: true,
|
|
145
|
+
},
|
|
146
|
+
]);
|
|
147
|
+
const client = (0, executor_1.getClient)();
|
|
148
|
+
const result = await client.resource
|
|
149
|
+
.findOne({
|
|
150
|
+
id: answers.id,
|
|
151
|
+
select: {
|
|
152
|
+
id: true,
|
|
153
|
+
createdAt: true,
|
|
154
|
+
updatedAt: true,
|
|
155
|
+
createdBy: true,
|
|
156
|
+
updatedBy: true,
|
|
157
|
+
namespaceId: true,
|
|
158
|
+
kind: true,
|
|
159
|
+
name: true,
|
|
160
|
+
slug: true,
|
|
161
|
+
spec: true,
|
|
162
|
+
status: true,
|
|
163
|
+
statusObserved: true,
|
|
164
|
+
lastError: true,
|
|
165
|
+
errorCount: true,
|
|
166
|
+
labels: true,
|
|
167
|
+
annotations: true,
|
|
168
|
+
databaseId: true,
|
|
169
|
+
},
|
|
170
|
+
})
|
|
171
|
+
.execute();
|
|
172
|
+
console.log(JSON.stringify(result, null, 2));
|
|
173
|
+
}
|
|
174
|
+
catch (error) {
|
|
175
|
+
console.error('Record not found.');
|
|
176
|
+
if (error instanceof Error) {
|
|
177
|
+
console.error(error.message);
|
|
178
|
+
}
|
|
179
|
+
process.exit(1);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
async function handleCreate(argv, prompter) {
|
|
183
|
+
try {
|
|
184
|
+
const rawAnswers = await prompter.prompt(argv, [
|
|
185
|
+
{
|
|
186
|
+
type: 'text',
|
|
187
|
+
name: 'createdBy',
|
|
188
|
+
message: 'createdBy',
|
|
189
|
+
required: false,
|
|
190
|
+
skipPrompt: true,
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
type: 'text',
|
|
194
|
+
name: 'updatedBy',
|
|
195
|
+
message: 'updatedBy',
|
|
196
|
+
required: false,
|
|
197
|
+
skipPrompt: true,
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
type: 'text',
|
|
201
|
+
name: 'namespaceId',
|
|
202
|
+
message: 'namespaceId',
|
|
203
|
+
required: true,
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
type: 'text',
|
|
207
|
+
name: 'kind',
|
|
208
|
+
message: 'kind',
|
|
209
|
+
required: true,
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
type: 'text',
|
|
213
|
+
name: 'name',
|
|
214
|
+
message: 'name',
|
|
215
|
+
required: true,
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
type: 'text',
|
|
219
|
+
name: 'slug',
|
|
220
|
+
message: 'slug',
|
|
221
|
+
required: true,
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
type: 'json',
|
|
225
|
+
name: 'spec',
|
|
226
|
+
message: 'spec',
|
|
227
|
+
required: false,
|
|
228
|
+
skipPrompt: true,
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
type: 'text',
|
|
232
|
+
name: 'status',
|
|
233
|
+
message: 'status',
|
|
234
|
+
required: false,
|
|
235
|
+
skipPrompt: true,
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
type: 'json',
|
|
239
|
+
name: 'statusObserved',
|
|
240
|
+
message: 'statusObserved',
|
|
241
|
+
required: false,
|
|
242
|
+
skipPrompt: true,
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
type: 'text',
|
|
246
|
+
name: 'lastError',
|
|
247
|
+
message: 'lastError',
|
|
248
|
+
required: false,
|
|
249
|
+
skipPrompt: true,
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
type: 'text',
|
|
253
|
+
name: 'errorCount',
|
|
254
|
+
message: 'errorCount',
|
|
255
|
+
required: false,
|
|
256
|
+
skipPrompt: true,
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
type: 'json',
|
|
260
|
+
name: 'labels',
|
|
261
|
+
message: 'labels',
|
|
262
|
+
required: false,
|
|
263
|
+
skipPrompt: true,
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
type: 'json',
|
|
267
|
+
name: 'annotations',
|
|
268
|
+
message: 'annotations',
|
|
269
|
+
required: false,
|
|
270
|
+
skipPrompt: true,
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
type: 'text',
|
|
274
|
+
name: 'databaseId',
|
|
275
|
+
message: 'databaseId',
|
|
276
|
+
required: true,
|
|
277
|
+
},
|
|
278
|
+
]);
|
|
279
|
+
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
280
|
+
const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
|
|
281
|
+
const client = (0, executor_1.getClient)();
|
|
282
|
+
const result = await client.resource
|
|
283
|
+
.create({
|
|
284
|
+
data: {
|
|
285
|
+
createdBy: cleanedData.createdBy,
|
|
286
|
+
updatedBy: cleanedData.updatedBy,
|
|
287
|
+
namespaceId: cleanedData.namespaceId,
|
|
288
|
+
kind: cleanedData.kind,
|
|
289
|
+
name: cleanedData.name,
|
|
290
|
+
slug: cleanedData.slug,
|
|
291
|
+
spec: cleanedData.spec,
|
|
292
|
+
status: cleanedData.status,
|
|
293
|
+
statusObserved: cleanedData.statusObserved,
|
|
294
|
+
lastError: cleanedData.lastError,
|
|
295
|
+
errorCount: cleanedData.errorCount,
|
|
296
|
+
labels: cleanedData.labels,
|
|
297
|
+
annotations: cleanedData.annotations,
|
|
298
|
+
databaseId: cleanedData.databaseId,
|
|
299
|
+
},
|
|
300
|
+
select: {
|
|
301
|
+
id: true,
|
|
302
|
+
createdAt: true,
|
|
303
|
+
updatedAt: true,
|
|
304
|
+
createdBy: true,
|
|
305
|
+
updatedBy: true,
|
|
306
|
+
namespaceId: true,
|
|
307
|
+
kind: true,
|
|
308
|
+
name: true,
|
|
309
|
+
slug: true,
|
|
310
|
+
spec: true,
|
|
311
|
+
status: true,
|
|
312
|
+
statusObserved: true,
|
|
313
|
+
lastError: true,
|
|
314
|
+
errorCount: true,
|
|
315
|
+
labels: true,
|
|
316
|
+
annotations: true,
|
|
317
|
+
databaseId: true,
|
|
318
|
+
},
|
|
319
|
+
})
|
|
320
|
+
.execute();
|
|
321
|
+
console.log(JSON.stringify(result, null, 2));
|
|
322
|
+
}
|
|
323
|
+
catch (error) {
|
|
324
|
+
console.error('Failed to create record.');
|
|
325
|
+
if (error instanceof Error) {
|
|
326
|
+
console.error(error.message);
|
|
327
|
+
}
|
|
328
|
+
process.exit(1);
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
async function handleUpdate(argv, prompter) {
|
|
332
|
+
try {
|
|
333
|
+
const rawAnswers = await prompter.prompt(argv, [
|
|
334
|
+
{
|
|
335
|
+
type: 'text',
|
|
336
|
+
name: 'id',
|
|
337
|
+
message: 'id',
|
|
338
|
+
required: true,
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
type: 'text',
|
|
342
|
+
name: 'createdBy',
|
|
343
|
+
message: 'createdBy',
|
|
344
|
+
required: false,
|
|
345
|
+
skipPrompt: true,
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
type: 'text',
|
|
349
|
+
name: 'updatedBy',
|
|
350
|
+
message: 'updatedBy',
|
|
351
|
+
required: false,
|
|
352
|
+
skipPrompt: true,
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
type: 'text',
|
|
356
|
+
name: 'namespaceId',
|
|
357
|
+
message: 'namespaceId',
|
|
358
|
+
required: false,
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
type: 'text',
|
|
362
|
+
name: 'kind',
|
|
363
|
+
message: 'kind',
|
|
364
|
+
required: false,
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
type: 'text',
|
|
368
|
+
name: 'name',
|
|
369
|
+
message: 'name',
|
|
370
|
+
required: false,
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
type: 'text',
|
|
374
|
+
name: 'slug',
|
|
375
|
+
message: 'slug',
|
|
376
|
+
required: false,
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
type: 'json',
|
|
380
|
+
name: 'spec',
|
|
381
|
+
message: 'spec',
|
|
382
|
+
required: false,
|
|
383
|
+
skipPrompt: true,
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
type: 'text',
|
|
387
|
+
name: 'status',
|
|
388
|
+
message: 'status',
|
|
389
|
+
required: false,
|
|
390
|
+
skipPrompt: true,
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
type: 'json',
|
|
394
|
+
name: 'statusObserved',
|
|
395
|
+
message: 'statusObserved',
|
|
396
|
+
required: false,
|
|
397
|
+
skipPrompt: true,
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
type: 'text',
|
|
401
|
+
name: 'lastError',
|
|
402
|
+
message: 'lastError',
|
|
403
|
+
required: false,
|
|
404
|
+
skipPrompt: true,
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
type: 'text',
|
|
408
|
+
name: 'errorCount',
|
|
409
|
+
message: 'errorCount',
|
|
410
|
+
required: false,
|
|
411
|
+
skipPrompt: true,
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
type: 'json',
|
|
415
|
+
name: 'labels',
|
|
416
|
+
message: 'labels',
|
|
417
|
+
required: false,
|
|
418
|
+
skipPrompt: true,
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
type: 'json',
|
|
422
|
+
name: 'annotations',
|
|
423
|
+
message: 'annotations',
|
|
424
|
+
required: false,
|
|
425
|
+
skipPrompt: true,
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
type: 'text',
|
|
429
|
+
name: 'databaseId',
|
|
430
|
+
message: 'databaseId',
|
|
431
|
+
required: false,
|
|
432
|
+
},
|
|
433
|
+
]);
|
|
434
|
+
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
435
|
+
const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
|
|
436
|
+
const client = (0, executor_1.getClient)();
|
|
437
|
+
const result = await client.resource
|
|
438
|
+
.update({
|
|
439
|
+
where: {
|
|
440
|
+
id: answers.id,
|
|
441
|
+
},
|
|
442
|
+
data: {
|
|
443
|
+
createdBy: cleanedData.createdBy,
|
|
444
|
+
updatedBy: cleanedData.updatedBy,
|
|
445
|
+
namespaceId: cleanedData.namespaceId,
|
|
446
|
+
kind: cleanedData.kind,
|
|
447
|
+
name: cleanedData.name,
|
|
448
|
+
slug: cleanedData.slug,
|
|
449
|
+
spec: cleanedData.spec,
|
|
450
|
+
status: cleanedData.status,
|
|
451
|
+
statusObserved: cleanedData.statusObserved,
|
|
452
|
+
lastError: cleanedData.lastError,
|
|
453
|
+
errorCount: cleanedData.errorCount,
|
|
454
|
+
labels: cleanedData.labels,
|
|
455
|
+
annotations: cleanedData.annotations,
|
|
456
|
+
databaseId: cleanedData.databaseId,
|
|
457
|
+
},
|
|
458
|
+
select: {
|
|
459
|
+
id: true,
|
|
460
|
+
createdAt: true,
|
|
461
|
+
updatedAt: true,
|
|
462
|
+
createdBy: true,
|
|
463
|
+
updatedBy: true,
|
|
464
|
+
namespaceId: true,
|
|
465
|
+
kind: true,
|
|
466
|
+
name: true,
|
|
467
|
+
slug: true,
|
|
468
|
+
spec: true,
|
|
469
|
+
status: true,
|
|
470
|
+
statusObserved: true,
|
|
471
|
+
lastError: true,
|
|
472
|
+
errorCount: true,
|
|
473
|
+
labels: true,
|
|
474
|
+
annotations: true,
|
|
475
|
+
databaseId: true,
|
|
476
|
+
},
|
|
477
|
+
})
|
|
478
|
+
.execute();
|
|
479
|
+
console.log(JSON.stringify(result, null, 2));
|
|
480
|
+
}
|
|
481
|
+
catch (error) {
|
|
482
|
+
console.error('Failed to update record.');
|
|
483
|
+
if (error instanceof Error) {
|
|
484
|
+
console.error(error.message);
|
|
485
|
+
}
|
|
486
|
+
process.exit(1);
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
async function handleDelete(argv, prompter) {
|
|
490
|
+
try {
|
|
491
|
+
const rawAnswers = await prompter.prompt(argv, [
|
|
492
|
+
{
|
|
493
|
+
type: 'text',
|
|
494
|
+
name: 'id',
|
|
495
|
+
message: 'id',
|
|
496
|
+
required: true,
|
|
497
|
+
},
|
|
498
|
+
]);
|
|
499
|
+
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
500
|
+
const client = (0, executor_1.getClient)();
|
|
501
|
+
const result = await client.resource
|
|
502
|
+
.delete({
|
|
503
|
+
where: {
|
|
504
|
+
id: answers.id,
|
|
505
|
+
},
|
|
506
|
+
select: {
|
|
507
|
+
id: true,
|
|
508
|
+
},
|
|
509
|
+
})
|
|
510
|
+
.execute();
|
|
511
|
+
console.log(JSON.stringify(result, null, 2));
|
|
512
|
+
}
|
|
513
|
+
catch (error) {
|
|
514
|
+
console.error('Failed to delete record.');
|
|
515
|
+
if (error instanceof Error) {
|
|
516
|
+
console.error(error.message);
|
|
517
|
+
}
|
|
518
|
+
process.exit(1);
|
|
519
|
+
}
|
|
520
|
+
}
|
package/compute/cli/commands.js
CHANGED
|
@@ -15,19 +15,23 @@ const auth_1 = __importDefault(require("./commands/auth"));
|
|
|
15
15
|
const get_all_record_1 = __importDefault(require("./commands/get-all-record"));
|
|
16
16
|
const function_api_binding_1 = __importDefault(require("./commands/function-api-binding"));
|
|
17
17
|
const function_deployment_1 = __importDefault(require("./commands/function-deployment"));
|
|
18
|
+
const resource_1 = __importDefault(require("./commands/resource"));
|
|
18
19
|
const function_graph_ref_1 = __importDefault(require("./commands/function-graph-ref"));
|
|
19
20
|
const function_graph_store_1 = __importDefault(require("./commands/function-graph-store"));
|
|
20
21
|
const function_graph_object_1 = __importDefault(require("./commands/function-graph-object"));
|
|
21
22
|
const function_deployment_event_1 = __importDefault(require("./commands/function-deployment-event"));
|
|
22
23
|
const org_function_execution_log_1 = __importDefault(require("./commands/org-function-execution-log"));
|
|
24
|
+
const resource_event_1 = __importDefault(require("./commands/resource-event"));
|
|
23
25
|
const function_graph_execution_output_1 = __importDefault(require("./commands/function-graph-execution-output"));
|
|
24
26
|
const function_graph_commit_1 = __importDefault(require("./commands/function-graph-commit"));
|
|
25
27
|
const secret_definition_1 = __importDefault(require("./commands/secret-definition"));
|
|
26
28
|
const function_execution_log_1 = __importDefault(require("./commands/function-execution-log"));
|
|
27
|
-
const function_graph_execution_node_state_1 = __importDefault(require("./commands/function-graph-execution-node-state"));
|
|
28
29
|
const function_graph_1 = __importDefault(require("./commands/function-graph"));
|
|
30
|
+
const function_graph_execution_node_state_1 = __importDefault(require("./commands/function-graph-execution-node-state"));
|
|
31
|
+
const platform_namespace_1 = __importDefault(require("./commands/platform-namespace"));
|
|
29
32
|
const org_function_invocation_1 = __importDefault(require("./commands/org-function-invocation"));
|
|
30
33
|
const function_invocation_1 = __importDefault(require("./commands/function-invocation"));
|
|
34
|
+
const platform_namespace_event_1 = __importDefault(require("./commands/platform-namespace-event"));
|
|
31
35
|
const function_graph_execution_1 = __importDefault(require("./commands/function-graph-execution"));
|
|
32
36
|
const function_definition_1 = __importDefault(require("./commands/function-definition"));
|
|
33
37
|
const read_function_graph_1 = __importDefault(require("./commands/read-function-graph"));
|
|
@@ -39,9 +43,9 @@ const copy_graph_1 = __importDefault(require("./commands/copy-graph"));
|
|
|
39
43
|
const save_graph_1 = __importDefault(require("./commands/save-graph"));
|
|
40
44
|
const add_edge_and_save_1 = __importDefault(require("./commands/add-edge-and-save"));
|
|
41
45
|
const add_node_and_save_1 = __importDefault(require("./commands/add-node-and-save"));
|
|
46
|
+
const import_graph_json_1 = __importDefault(require("./commands/import-graph-json"));
|
|
42
47
|
const add_edge_1 = __importDefault(require("./commands/add-edge"));
|
|
43
48
|
const add_node_1 = __importDefault(require("./commands/add-node"));
|
|
44
|
-
const import_graph_json_1 = __importDefault(require("./commands/import-graph-json"));
|
|
45
49
|
const insert_node_at_path_1 = __importDefault(require("./commands/insert-node-at-path"));
|
|
46
50
|
const start_execution_1 = __importDefault(require("./commands/start-execution"));
|
|
47
51
|
const provision_bucket_1 = __importDefault(require("./commands/provision-bucket"));
|
|
@@ -51,19 +55,23 @@ const createCommandMap = () => ({
|
|
|
51
55
|
'get-all-record': get_all_record_1.default,
|
|
52
56
|
'function-api-binding': function_api_binding_1.default,
|
|
53
57
|
'function-deployment': function_deployment_1.default,
|
|
58
|
+
resource: resource_1.default,
|
|
54
59
|
'function-graph-ref': function_graph_ref_1.default,
|
|
55
60
|
'function-graph-store': function_graph_store_1.default,
|
|
56
61
|
'function-graph-object': function_graph_object_1.default,
|
|
57
62
|
'function-deployment-event': function_deployment_event_1.default,
|
|
58
63
|
'org-function-execution-log': org_function_execution_log_1.default,
|
|
64
|
+
'resource-event': resource_event_1.default,
|
|
59
65
|
'function-graph-execution-output': function_graph_execution_output_1.default,
|
|
60
66
|
'function-graph-commit': function_graph_commit_1.default,
|
|
61
67
|
'secret-definition': secret_definition_1.default,
|
|
62
68
|
'function-execution-log': function_execution_log_1.default,
|
|
63
|
-
'function-graph-execution-node-state': function_graph_execution_node_state_1.default,
|
|
64
69
|
'function-graph': function_graph_1.default,
|
|
70
|
+
'function-graph-execution-node-state': function_graph_execution_node_state_1.default,
|
|
71
|
+
'platform-namespace': platform_namespace_1.default,
|
|
65
72
|
'org-function-invocation': org_function_invocation_1.default,
|
|
66
73
|
'function-invocation': function_invocation_1.default,
|
|
74
|
+
'platform-namespace-event': platform_namespace_event_1.default,
|
|
67
75
|
'function-graph-execution': function_graph_execution_1.default,
|
|
68
76
|
'function-definition': function_definition_1.default,
|
|
69
77
|
'read-function-graph': read_function_graph_1.default,
|
|
@@ -75,14 +83,14 @@ const createCommandMap = () => ({
|
|
|
75
83
|
'save-graph': save_graph_1.default,
|
|
76
84
|
'add-edge-and-save': add_edge_and_save_1.default,
|
|
77
85
|
'add-node-and-save': add_node_and_save_1.default,
|
|
86
|
+
'import-graph-json': import_graph_json_1.default,
|
|
78
87
|
'add-edge': add_edge_1.default,
|
|
79
88
|
'add-node': add_node_1.default,
|
|
80
|
-
'import-graph-json': import_graph_json_1.default,
|
|
81
89
|
'insert-node-at-path': insert_node_at_path_1.default,
|
|
82
90
|
'start-execution': start_execution_1.default,
|
|
83
91
|
'provision-bucket': provision_bucket_1.default,
|
|
84
92
|
});
|
|
85
|
-
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
|
|
93
|
+
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';
|
|
86
94
|
const commands = async (argv, prompter, options) => {
|
|
87
95
|
if (argv.help || argv.h) {
|
|
88
96
|
console.log(usage);
|
|
@@ -3,19 +3,23 @@ export declare function getClient(contextName?: string): {
|
|
|
3
3
|
getAllRecord: import("../orm").GetAllRecordModel;
|
|
4
4
|
functionApiBinding: import("../orm").FunctionApiBindingModel;
|
|
5
5
|
functionDeployment: import("../orm").FunctionDeploymentModel;
|
|
6
|
+
resource: import("../orm").ResourceModel;
|
|
6
7
|
functionGraphRef: import("../orm").FunctionGraphRefModel;
|
|
7
8
|
functionGraphStore: import("../orm").FunctionGraphStoreModel;
|
|
8
9
|
functionGraphObject: import("../orm").FunctionGraphObjectModel;
|
|
9
10
|
functionDeploymentEvent: import("../orm").FunctionDeploymentEventModel;
|
|
10
11
|
orgFunctionExecutionLog: import("../orm").OrgFunctionExecutionLogModel;
|
|
12
|
+
resourceEvent: import("../orm").ResourceEventModel;
|
|
11
13
|
functionGraphExecutionOutput: import("../orm").FunctionGraphExecutionOutputModel;
|
|
12
14
|
functionGraphCommit: import("../orm").FunctionGraphCommitModel;
|
|
13
15
|
secretDefinition: import("../orm").SecretDefinitionModel;
|
|
14
16
|
functionExecutionLog: import("../orm").FunctionExecutionLogModel;
|
|
15
|
-
functionGraphExecutionNodeState: import("../orm").FunctionGraphExecutionNodeStateModel;
|
|
16
17
|
functionGraph: import("../orm").FunctionGraphModel;
|
|
18
|
+
functionGraphExecutionNodeState: import("../orm").FunctionGraphExecutionNodeStateModel;
|
|
19
|
+
platformNamespace: import("../orm").PlatformNamespaceModel;
|
|
17
20
|
orgFunctionInvocation: import("../orm").OrgFunctionInvocationModel;
|
|
18
21
|
functionInvocation: import("../orm").FunctionInvocationModel;
|
|
22
|
+
platformNamespaceEvent: import("../orm").PlatformNamespaceEventModel;
|
|
19
23
|
functionGraphExecution: import("../orm").FunctionGraphExecutionModel;
|
|
20
24
|
functionDefinition: import("../orm").FunctionDefinitionModel;
|
|
21
25
|
query: {
|
|
@@ -66,6 +70,11 @@ export declare function getClient(contextName?: string): {
|
|
|
66
70
|
} & import("../orm").StrictSelect<S, import("../orm/input-types").AddNodeAndSavePayloadSelect>) => import("../orm").QueryBuilder<{
|
|
67
71
|
addNodeAndSave: import("../orm").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("../orm").StrictSelect<S, import("../orm/input-types").ImportGraphJsonPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
76
|
+
importGraphJson: import("../orm").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("../orm").StrictSelect<S, import("../orm/input-types").AddEdgePayloadSelect>) => import("../orm").QueryBuilder<{
|
|
@@ -76,11 +85,6 @@ export declare function getClient(contextName?: string): {
|
|
|
76
85
|
} & import("../orm").StrictSelect<S, import("../orm/input-types").AddNodePayloadSelect>) => import("../orm").QueryBuilder<{
|
|
77
86
|
addNode: import("../orm").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("../orm").StrictSelect<S, import("../orm/input-types").ImportGraphJsonPayloadSelect>) => import("../orm").QueryBuilder<{
|
|
82
|
-
importGraphJson: import("../orm").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("../orm").StrictSelect<S, import("../orm/input-types").InsertNodeAtPathPayloadSelect>) => import("../orm").QueryBuilder<{
|