@constructive-sdk/cli 0.29.1 → 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 +4 -4
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
|
|
2
|
+
import { connectionFieldsMap } from '../input-types';
|
|
3
|
+
export class ResourceEventModel {
|
|
4
|
+
client;
|
|
5
|
+
constructor(client) {
|
|
6
|
+
this.client = client;
|
|
7
|
+
}
|
|
8
|
+
findMany(args) {
|
|
9
|
+
const { document, variables } = buildFindManyDocument('ResourceEvent', 'resourceEvents', args.select, {
|
|
10
|
+
where: args?.where,
|
|
11
|
+
orderBy: args?.orderBy,
|
|
12
|
+
first: args?.first,
|
|
13
|
+
last: args?.last,
|
|
14
|
+
after: args?.after,
|
|
15
|
+
before: args?.before,
|
|
16
|
+
offset: args?.offset,
|
|
17
|
+
}, 'ResourceEventFilter', 'ResourceEventOrderBy', connectionFieldsMap);
|
|
18
|
+
return new QueryBuilder({
|
|
19
|
+
client: this.client,
|
|
20
|
+
operation: 'query',
|
|
21
|
+
operationName: 'ResourceEvent',
|
|
22
|
+
fieldName: 'resourceEvents',
|
|
23
|
+
document,
|
|
24
|
+
variables,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
findFirst(args) {
|
|
28
|
+
const { document, variables } = buildFindFirstDocument('ResourceEvent', 'resourceEvents', args.select, {
|
|
29
|
+
where: args?.where,
|
|
30
|
+
orderBy: args?.orderBy,
|
|
31
|
+
}, 'ResourceEventFilter', 'ResourceEventOrderBy', connectionFieldsMap);
|
|
32
|
+
return new QueryBuilder({
|
|
33
|
+
client: this.client,
|
|
34
|
+
operation: 'query',
|
|
35
|
+
operationName: 'ResourceEvent',
|
|
36
|
+
fieldName: 'resourceEvent',
|
|
37
|
+
document,
|
|
38
|
+
variables,
|
|
39
|
+
transform: (data) => ({
|
|
40
|
+
resourceEvent: data.resourceEvents?.nodes?.[0] ?? null,
|
|
41
|
+
}),
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
findOne(args) {
|
|
45
|
+
const { document, variables } = buildFindManyDocument('ResourceEvent', 'resourceEvents', args.select, {
|
|
46
|
+
where: {
|
|
47
|
+
id: {
|
|
48
|
+
equalTo: args.id,
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
first: 1,
|
|
52
|
+
}, 'ResourceEventFilter', 'ResourceEventOrderBy', connectionFieldsMap);
|
|
53
|
+
return new QueryBuilder({
|
|
54
|
+
client: this.client,
|
|
55
|
+
operation: 'query',
|
|
56
|
+
operationName: 'ResourceEvent',
|
|
57
|
+
fieldName: 'resourceEvent',
|
|
58
|
+
document,
|
|
59
|
+
variables,
|
|
60
|
+
transform: (data) => ({
|
|
61
|
+
resourceEvent: data.resourceEvents?.nodes?.[0] ?? null,
|
|
62
|
+
}),
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
create(args) {
|
|
66
|
+
const { document, variables } = buildCreateDocument('ResourceEvent', 'createResourceEvent', 'resourceEvent', args.select, args.data, 'CreateResourceEventInput', connectionFieldsMap);
|
|
67
|
+
return new QueryBuilder({
|
|
68
|
+
client: this.client,
|
|
69
|
+
operation: 'mutation',
|
|
70
|
+
operationName: 'ResourceEvent',
|
|
71
|
+
fieldName: 'createResourceEvent',
|
|
72
|
+
document,
|
|
73
|
+
variables,
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
update(args) {
|
|
77
|
+
const { document, variables } = buildUpdateByPkDocument('ResourceEvent', 'updateResourceEvent', 'resourceEvent', args.select, args.where.id, args.data, 'UpdateResourceEventInput', 'id', 'resourceEventPatch', connectionFieldsMap, {
|
|
78
|
+
createdAt: args.where.createdAt,
|
|
79
|
+
});
|
|
80
|
+
return new QueryBuilder({
|
|
81
|
+
client: this.client,
|
|
82
|
+
operation: 'mutation',
|
|
83
|
+
operationName: 'ResourceEvent',
|
|
84
|
+
fieldName: 'updateResourceEvent',
|
|
85
|
+
document,
|
|
86
|
+
variables,
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
delete(args) {
|
|
90
|
+
const { document, variables } = buildDeleteByPkDocument('ResourceEvent', 'deleteResourceEvent', 'resourceEvent', {
|
|
91
|
+
id: args.where.id,
|
|
92
|
+
createdAt: args.where.createdAt,
|
|
93
|
+
}, 'DeleteResourceEventInput', args.select, connectionFieldsMap);
|
|
94
|
+
return new QueryBuilder({
|
|
95
|
+
client: this.client,
|
|
96
|
+
operation: 'mutation',
|
|
97
|
+
operationName: 'ResourceEvent',
|
|
98
|
+
fieldName: 'deleteResourceEvent',
|
|
99
|
+
document,
|
|
100
|
+
variables,
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { OrmClient } from '../client';
|
|
7
7
|
import { QueryBuilder } from '../query-builder';
|
|
8
8
|
import type { InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
-
import type { ValidateFunctionGraphInput, InitEmptyRepoInput, SetDataAtPathInput, ImportDefinitionsInput, CopyGraphInput, SaveGraphInput, AddEdgeAndSaveInput, AddNodeAndSaveInput, AddEdgeInput, AddNodeInput,
|
|
9
|
+
import type { ValidateFunctionGraphInput, InitEmptyRepoInput, SetDataAtPathInput, ImportDefinitionsInput, CopyGraphInput, SaveGraphInput, AddEdgeAndSaveInput, AddNodeAndSaveInput, ImportGraphJsonInput, AddEdgeInput, AddNodeInput, InsertNodeAtPathInput, StartExecutionInput, ProvisionBucketInput, ValidateFunctionGraphPayload, InitEmptyRepoPayload, SetDataAtPathPayload, ImportDefinitionsPayload, CopyGraphPayload, SaveGraphPayload, AddEdgeAndSavePayload, AddNodeAndSavePayload, ImportGraphJsonPayload, AddEdgePayload, AddNodePayload, InsertNodeAtPathPayload, StartExecutionPayload, ProvisionBucketPayload, ValidateFunctionGraphPayloadSelect, InitEmptyRepoPayloadSelect, SetDataAtPathPayloadSelect, ImportDefinitionsPayloadSelect, CopyGraphPayloadSelect, SaveGraphPayloadSelect, AddEdgeAndSavePayloadSelect, AddNodeAndSavePayloadSelect, ImportGraphJsonPayloadSelect, AddEdgePayloadSelect, AddNodePayloadSelect, InsertNodeAtPathPayloadSelect, StartExecutionPayloadSelect, ProvisionBucketPayloadSelect } from '../input-types';
|
|
10
10
|
export interface ValidateFunctionGraphVariables {
|
|
11
11
|
input: ValidateFunctionGraphInput;
|
|
12
12
|
}
|
|
@@ -31,15 +31,15 @@ export interface AddEdgeAndSaveVariables {
|
|
|
31
31
|
export interface AddNodeAndSaveVariables {
|
|
32
32
|
input: AddNodeAndSaveInput;
|
|
33
33
|
}
|
|
34
|
+
export interface ImportGraphJsonVariables {
|
|
35
|
+
input: ImportGraphJsonInput;
|
|
36
|
+
}
|
|
34
37
|
export interface AddEdgeVariables {
|
|
35
38
|
input: AddEdgeInput;
|
|
36
39
|
}
|
|
37
40
|
export interface AddNodeVariables {
|
|
38
41
|
input: AddNodeInput;
|
|
39
42
|
}
|
|
40
|
-
export interface ImportGraphJsonVariables {
|
|
41
|
-
input: ImportGraphJsonInput;
|
|
42
|
-
}
|
|
43
43
|
export interface InsertNodeAtPathVariables {
|
|
44
44
|
input: InsertNodeAtPathInput;
|
|
45
45
|
}
|
|
@@ -97,6 +97,11 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
97
97
|
} & StrictSelect<S, AddNodeAndSavePayloadSelect>) => QueryBuilder<{
|
|
98
98
|
addNodeAndSave: InferSelectResult<AddNodeAndSavePayload, S> | null;
|
|
99
99
|
}>;
|
|
100
|
+
importGraphJson: <S extends ImportGraphJsonPayloadSelect>(args: ImportGraphJsonVariables, options: {
|
|
101
|
+
select: S;
|
|
102
|
+
} & StrictSelect<S, ImportGraphJsonPayloadSelect>) => QueryBuilder<{
|
|
103
|
+
importGraphJson: InferSelectResult<ImportGraphJsonPayload, S> | null;
|
|
104
|
+
}>;
|
|
100
105
|
addEdge: <S extends AddEdgePayloadSelect>(args: AddEdgeVariables, options: {
|
|
101
106
|
select: S;
|
|
102
107
|
} & StrictSelect<S, AddEdgePayloadSelect>) => QueryBuilder<{
|
|
@@ -107,11 +112,6 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
107
112
|
} & StrictSelect<S, AddNodePayloadSelect>) => QueryBuilder<{
|
|
108
113
|
addNode: InferSelectResult<AddNodePayload, S> | null;
|
|
109
114
|
}>;
|
|
110
|
-
importGraphJson: <S extends ImportGraphJsonPayloadSelect>(args: ImportGraphJsonVariables, options: {
|
|
111
|
-
select: S;
|
|
112
|
-
} & StrictSelect<S, ImportGraphJsonPayloadSelect>) => QueryBuilder<{
|
|
113
|
-
importGraphJson: InferSelectResult<ImportGraphJsonPayload, S> | null;
|
|
114
|
-
}>;
|
|
115
115
|
insertNodeAtPath: <S extends InsertNodeAtPathPayloadSelect>(args: InsertNodeAtPathVariables, options: {
|
|
116
116
|
select: S;
|
|
117
117
|
} & StrictSelect<S, InsertNodeAtPathPayloadSelect>) => QueryBuilder<{
|
|
@@ -98,6 +98,18 @@ export function createMutationOperations(client) {
|
|
|
98
98
|
},
|
|
99
99
|
], connectionFieldsMap, 'AddNodeAndSavePayload'),
|
|
100
100
|
}),
|
|
101
|
+
importGraphJson: (args, options) => new QueryBuilder({
|
|
102
|
+
client,
|
|
103
|
+
operation: 'mutation',
|
|
104
|
+
operationName: 'ImportGraphJson',
|
|
105
|
+
fieldName: 'importGraphJson',
|
|
106
|
+
...buildCustomDocument('mutation', 'ImportGraphJson', 'importGraphJson', options.select, args, [
|
|
107
|
+
{
|
|
108
|
+
name: 'input',
|
|
109
|
+
type: 'ImportGraphJsonInput!',
|
|
110
|
+
},
|
|
111
|
+
], connectionFieldsMap, 'ImportGraphJsonPayload'),
|
|
112
|
+
}),
|
|
101
113
|
addEdge: (args, options) => new QueryBuilder({
|
|
102
114
|
client,
|
|
103
115
|
operation: 'mutation',
|
|
@@ -122,18 +134,6 @@ export function createMutationOperations(client) {
|
|
|
122
134
|
},
|
|
123
135
|
], connectionFieldsMap, 'AddNodePayload'),
|
|
124
136
|
}),
|
|
125
|
-
importGraphJson: (args, options) => new QueryBuilder({
|
|
126
|
-
client,
|
|
127
|
-
operation: 'mutation',
|
|
128
|
-
operationName: 'ImportGraphJson',
|
|
129
|
-
fieldName: 'importGraphJson',
|
|
130
|
-
...buildCustomDocument('mutation', 'ImportGraphJson', 'importGraphJson', options.select, args, [
|
|
131
|
-
{
|
|
132
|
-
name: 'input',
|
|
133
|
-
type: 'ImportGraphJsonInput!',
|
|
134
|
-
},
|
|
135
|
-
], connectionFieldsMap, 'ImportGraphJsonPayload'),
|
|
136
|
-
}),
|
|
137
137
|
insertNodeAtPath: (args, options) => new QueryBuilder({
|
|
138
138
|
client,
|
|
139
139
|
operation: 'mutation',
|
|
@@ -22,6 +22,7 @@ const fieldSchema = {
|
|
|
22
22
|
privateApiName: 'string',
|
|
23
23
|
scope: 'string',
|
|
24
24
|
functionPrefix: 'string',
|
|
25
|
+
permissionKey: 'string',
|
|
25
26
|
createdAt: 'string',
|
|
26
27
|
};
|
|
27
28
|
const usage = '\nmerkle-store-module <command>\n\nCommands:\n list List merkleStoreModule records\n find-first Find first matching merkleStoreModule record\n get Get a merkleStoreModule by ID\n create Create a new merkleStoreModule\n update Update an existing merkleStoreModule\n delete Delete a merkleStoreModule\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';
|
|
@@ -81,6 +82,7 @@ async function handleList(argv, _prompter) {
|
|
|
81
82
|
privateApiName: true,
|
|
82
83
|
scope: true,
|
|
83
84
|
functionPrefix: true,
|
|
85
|
+
permissionKey: true,
|
|
84
86
|
createdAt: true,
|
|
85
87
|
};
|
|
86
88
|
const findManyArgs = parseFindManyArgs(argv, defaultSelect);
|
|
@@ -114,6 +116,7 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
114
116
|
privateApiName: true,
|
|
115
117
|
scope: true,
|
|
116
118
|
functionPrefix: true,
|
|
119
|
+
permissionKey: true,
|
|
117
120
|
createdAt: true,
|
|
118
121
|
};
|
|
119
122
|
const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
|
|
@@ -159,6 +162,7 @@ async function handleGet(argv, prompter) {
|
|
|
159
162
|
privateApiName: true,
|
|
160
163
|
scope: true,
|
|
161
164
|
functionPrefix: true,
|
|
165
|
+
permissionKey: true,
|
|
162
166
|
createdAt: true,
|
|
163
167
|
},
|
|
164
168
|
})
|
|
@@ -273,6 +277,13 @@ async function handleCreate(argv, prompter) {
|
|
|
273
277
|
required: false,
|
|
274
278
|
skipPrompt: true,
|
|
275
279
|
},
|
|
280
|
+
{
|
|
281
|
+
type: 'text',
|
|
282
|
+
name: 'permissionKey',
|
|
283
|
+
message: 'permissionKey',
|
|
284
|
+
required: false,
|
|
285
|
+
skipPrompt: true,
|
|
286
|
+
},
|
|
276
287
|
]);
|
|
277
288
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
278
289
|
const cleanedData = stripUndefined(answers, fieldSchema);
|
|
@@ -294,6 +305,7 @@ async function handleCreate(argv, prompter) {
|
|
|
294
305
|
privateApiName: cleanedData.privateApiName,
|
|
295
306
|
scope: cleanedData.scope,
|
|
296
307
|
functionPrefix: cleanedData.functionPrefix,
|
|
308
|
+
permissionKey: cleanedData.permissionKey,
|
|
297
309
|
},
|
|
298
310
|
select: {
|
|
299
311
|
id: true,
|
|
@@ -311,6 +323,7 @@ async function handleCreate(argv, prompter) {
|
|
|
311
323
|
privateApiName: true,
|
|
312
324
|
scope: true,
|
|
313
325
|
functionPrefix: true,
|
|
326
|
+
permissionKey: true,
|
|
314
327
|
createdAt: true,
|
|
315
328
|
},
|
|
316
329
|
})
|
|
@@ -431,6 +444,13 @@ async function handleUpdate(argv, prompter) {
|
|
|
431
444
|
required: false,
|
|
432
445
|
skipPrompt: true,
|
|
433
446
|
},
|
|
447
|
+
{
|
|
448
|
+
type: 'text',
|
|
449
|
+
name: 'permissionKey',
|
|
450
|
+
message: 'permissionKey',
|
|
451
|
+
required: false,
|
|
452
|
+
skipPrompt: true,
|
|
453
|
+
},
|
|
434
454
|
]);
|
|
435
455
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
436
456
|
const cleanedData = stripUndefined(answers, fieldSchema);
|
|
@@ -455,6 +475,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
455
475
|
privateApiName: cleanedData.privateApiName,
|
|
456
476
|
scope: cleanedData.scope,
|
|
457
477
|
functionPrefix: cleanedData.functionPrefix,
|
|
478
|
+
permissionKey: cleanedData.permissionKey,
|
|
458
479
|
},
|
|
459
480
|
select: {
|
|
460
481
|
id: true,
|
|
@@ -472,6 +493,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
472
493
|
privateApiName: true,
|
|
473
494
|
scope: true,
|
|
474
495
|
functionPrefix: true,
|
|
496
|
+
permissionKey: true,
|
|
475
497
|
createdAt: true,
|
|
476
498
|
},
|
|
477
499
|
})
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI commands for PrincipalAuthModule
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { CLIOptions, Inquirerer } from 'inquirerer';
|
|
7
|
+
declare const _default: (argv: Partial<Record<string, unknown>>, prompter: Inquirerer, _options: CLIOptions) => Promise<void>;
|
|
8
|
+
export default _default;
|