@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.
Files changed (199) hide show
  1. package/api/cli/commands/api.js +44 -0
  2. package/api/cli/commands/check-constraint.js +0 -22
  3. package/api/cli/commands/composite-type.js +0 -22
  4. package/api/cli/commands/database-setting.js +44 -0
  5. package/api/cli/commands/domain.js +66 -0
  6. package/api/cli/commands/enum.js +0 -22
  7. package/api/cli/commands/field.js +0 -22
  8. package/api/cli/commands/foreign-key-constraint.js +0 -22
  9. package/api/cli/commands/index.js +0 -22
  10. package/api/cli/commands/policy.js +0 -22
  11. package/api/cli/commands/primary-key-constraint.js +0 -22
  12. package/api/cli/commands/schema.js +0 -22
  13. package/api/cli/commands/site.js +44 -0
  14. package/api/cli/commands/spatial-relation.js +0 -22
  15. package/api/cli/commands/table.js +0 -22
  16. package/api/cli/commands/trigger.js +0 -22
  17. package/api/cli/commands/unique-constraint.js +0 -22
  18. package/api/cli/commands/view.js +0 -22
  19. package/api/orm/input-types.d.ts +144 -171
  20. package/auth/cli/commands/create-org-api-key.d.ts +8 -0
  21. package/auth/cli/commands/create-org-api-key.js +36 -0
  22. package/auth/cli/commands/create-org-principal.d.ts +8 -0
  23. package/auth/cli/commands/create-org-principal.js +36 -0
  24. package/auth/cli/commands/delete-org-principal.d.ts +8 -0
  25. package/auth/cli/commands/delete-org-principal.js +36 -0
  26. package/auth/cli/commands/org-api-key-list.d.ts +8 -0
  27. package/auth/cli/commands/org-api-key-list.js +224 -0
  28. package/auth/cli/commands/principal-entity.d.ts +8 -0
  29. package/auth/cli/commands/principal-entity.js +282 -0
  30. package/auth/cli/commands/principal-scope-override.d.ts +8 -0
  31. package/auth/cli/commands/principal-scope-override.js +171 -0
  32. package/auth/cli/commands/principal.d.ts +8 -0
  33. package/auth/cli/commands/principal.js +171 -0
  34. package/auth/cli/commands/revoke-org-api-key.d.ts +8 -0
  35. package/auth/cli/commands/revoke-org-api-key.js +36 -0
  36. package/auth/cli/commands.js +19 -3
  37. package/auth/cli/executor.d.ts +28 -4
  38. package/auth/orm/index.d.ts +32 -4
  39. package/auth/orm/index.js +8 -0
  40. package/auth/orm/input-types.d.ts +915 -145
  41. package/auth/orm/input-types.js +7 -0
  42. package/auth/orm/models/index.d.ts +4 -0
  43. package/auth/orm/models/index.js +9 -1
  44. package/auth/orm/models/orgApiKeyList.d.ts +36 -0
  45. package/auth/orm/models/orgApiKeyList.js +80 -0
  46. package/auth/orm/models/principal.d.ts +45 -0
  47. package/auth/orm/models/principal.js +93 -0
  48. package/auth/orm/models/principalEntity.d.ts +54 -0
  49. package/auth/orm/models/principalEntity.js +104 -0
  50. package/auth/orm/models/principalScopeOverride.d.ts +36 -0
  51. package/auth/orm/models/principalScopeOverride.js +80 -0
  52. package/auth/orm/mutation/index.d.ts +33 -1
  53. package/auth/orm/mutation/index.js +48 -0
  54. package/auth/orm/query/index.d.ts +4 -4
  55. package/auth/orm/query/index.js +7 -7
  56. package/compute/cli/commands/function-graph-execution.js +0 -22
  57. package/compute/cli/commands/function-graph.js +0 -20
  58. package/compute/cli/commands/platform-namespace-event.d.ts +8 -0
  59. package/compute/cli/commands/platform-namespace-event.js +510 -0
  60. package/compute/cli/commands/platform-namespace.d.ts +8 -0
  61. package/compute/cli/commands/platform-namespace.js +436 -0
  62. package/compute/cli/commands/resource-event.d.ts +8 -0
  63. package/compute/cli/commands/resource-event.js +356 -0
  64. package/compute/cli/commands/resource.d.ts +8 -0
  65. package/compute/cli/commands/resource.js +520 -0
  66. package/compute/cli/commands.js +13 -5
  67. package/compute/cli/executor.d.ts +10 -6
  68. package/compute/orm/index.d.ts +15 -7
  69. package/compute/orm/index.js +10 -2
  70. package/compute/orm/input-types.d.ts +1159 -221
  71. package/compute/orm/input-types.js +4 -0
  72. package/compute/orm/models/index.d.ts +5 -1
  73. package/compute/orm/models/index.js +11 -3
  74. package/compute/orm/models/platformNamespace.d.ts +54 -0
  75. package/compute/orm/models/platformNamespace.js +104 -0
  76. package/compute/orm/models/platformNamespaceEvent.d.ts +56 -0
  77. package/compute/orm/models/platformNamespaceEvent.js +107 -0
  78. package/compute/orm/models/resource.d.ts +54 -0
  79. package/compute/orm/models/resource.js +104 -0
  80. package/compute/orm/models/resourceEvent.d.ts +56 -0
  81. package/compute/orm/models/resourceEvent.js +107 -0
  82. package/compute/orm/mutation/index.d.ts +9 -9
  83. package/compute/orm/mutation/index.js +12 -12
  84. package/esm/api/cli/commands/api.js +44 -0
  85. package/esm/api/cli/commands/check-constraint.js +0 -22
  86. package/esm/api/cli/commands/composite-type.js +0 -22
  87. package/esm/api/cli/commands/database-setting.js +44 -0
  88. package/esm/api/cli/commands/domain.js +66 -0
  89. package/esm/api/cli/commands/enum.js +0 -22
  90. package/esm/api/cli/commands/field.js +0 -22
  91. package/esm/api/cli/commands/foreign-key-constraint.js +0 -22
  92. package/esm/api/cli/commands/index.js +0 -22
  93. package/esm/api/cli/commands/policy.js +0 -22
  94. package/esm/api/cli/commands/primary-key-constraint.js +0 -22
  95. package/esm/api/cli/commands/schema.js +0 -22
  96. package/esm/api/cli/commands/site.js +44 -0
  97. package/esm/api/cli/commands/spatial-relation.js +0 -22
  98. package/esm/api/cli/commands/table.js +0 -22
  99. package/esm/api/cli/commands/trigger.js +0 -22
  100. package/esm/api/cli/commands/unique-constraint.js +0 -22
  101. package/esm/api/cli/commands/view.js +0 -22
  102. package/esm/api/orm/input-types.d.ts +144 -171
  103. package/esm/auth/cli/commands/create-org-api-key.d.ts +8 -0
  104. package/esm/auth/cli/commands/create-org-api-key.js +34 -0
  105. package/esm/auth/cli/commands/create-org-principal.d.ts +8 -0
  106. package/esm/auth/cli/commands/create-org-principal.js +34 -0
  107. package/esm/auth/cli/commands/delete-org-principal.d.ts +8 -0
  108. package/esm/auth/cli/commands/delete-org-principal.js +34 -0
  109. package/esm/auth/cli/commands/org-api-key-list.d.ts +8 -0
  110. package/esm/auth/cli/commands/org-api-key-list.js +222 -0
  111. package/esm/auth/cli/commands/principal-entity.d.ts +8 -0
  112. package/esm/auth/cli/commands/principal-entity.js +280 -0
  113. package/esm/auth/cli/commands/principal-scope-override.d.ts +8 -0
  114. package/esm/auth/cli/commands/principal-scope-override.js +169 -0
  115. package/esm/auth/cli/commands/principal.d.ts +8 -0
  116. package/esm/auth/cli/commands/principal.js +169 -0
  117. package/esm/auth/cli/commands/revoke-org-api-key.d.ts +8 -0
  118. package/esm/auth/cli/commands/revoke-org-api-key.js +34 -0
  119. package/esm/auth/cli/commands.js +19 -3
  120. package/esm/auth/cli/executor.d.ts +28 -4
  121. package/esm/auth/orm/index.d.ts +32 -4
  122. package/esm/auth/orm/index.js +8 -0
  123. package/esm/auth/orm/input-types.d.ts +915 -145
  124. package/esm/auth/orm/input-types.js +7 -0
  125. package/esm/auth/orm/models/index.d.ts +4 -0
  126. package/esm/auth/orm/models/index.js +4 -0
  127. package/esm/auth/orm/models/orgApiKeyList.d.ts +36 -0
  128. package/esm/auth/orm/models/orgApiKeyList.js +76 -0
  129. package/esm/auth/orm/models/principal.d.ts +45 -0
  130. package/esm/auth/orm/models/principal.js +89 -0
  131. package/esm/auth/orm/models/principalEntity.d.ts +54 -0
  132. package/esm/auth/orm/models/principalEntity.js +100 -0
  133. package/esm/auth/orm/models/principalScopeOverride.d.ts +36 -0
  134. package/esm/auth/orm/models/principalScopeOverride.js +76 -0
  135. package/esm/auth/orm/mutation/index.d.ts +33 -1
  136. package/esm/auth/orm/mutation/index.js +48 -0
  137. package/esm/auth/orm/query/index.d.ts +4 -4
  138. package/esm/auth/orm/query/index.js +7 -7
  139. package/esm/compute/cli/commands/function-graph-execution.js +0 -22
  140. package/esm/compute/cli/commands/function-graph.js +0 -20
  141. package/esm/compute/cli/commands/platform-namespace-event.d.ts +8 -0
  142. package/esm/compute/cli/commands/platform-namespace-event.js +508 -0
  143. package/esm/compute/cli/commands/platform-namespace.d.ts +8 -0
  144. package/esm/compute/cli/commands/platform-namespace.js +434 -0
  145. package/esm/compute/cli/commands/resource-event.d.ts +8 -0
  146. package/esm/compute/cli/commands/resource-event.js +354 -0
  147. package/esm/compute/cli/commands/resource.d.ts +8 -0
  148. package/esm/compute/cli/commands/resource.js +518 -0
  149. package/esm/compute/cli/commands.js +13 -5
  150. package/esm/compute/cli/executor.d.ts +10 -6
  151. package/esm/compute/orm/index.d.ts +15 -7
  152. package/esm/compute/orm/index.js +10 -2
  153. package/esm/compute/orm/input-types.d.ts +1159 -221
  154. package/esm/compute/orm/input-types.js +4 -0
  155. package/esm/compute/orm/models/index.d.ts +5 -1
  156. package/esm/compute/orm/models/index.js +5 -1
  157. package/esm/compute/orm/models/platformNamespace.d.ts +54 -0
  158. package/esm/compute/orm/models/platformNamespace.js +100 -0
  159. package/esm/compute/orm/models/platformNamespaceEvent.d.ts +56 -0
  160. package/esm/compute/orm/models/platformNamespaceEvent.js +103 -0
  161. package/esm/compute/orm/models/resource.d.ts +54 -0
  162. package/esm/compute/orm/models/resource.js +100 -0
  163. package/esm/compute/orm/models/resourceEvent.d.ts +56 -0
  164. package/esm/compute/orm/models/resourceEvent.js +103 -0
  165. package/esm/compute/orm/mutation/index.d.ts +9 -9
  166. package/esm/compute/orm/mutation/index.js +12 -12
  167. package/esm/modules/cli/commands/merkle-store-module.js +22 -0
  168. package/esm/modules/cli/commands/principal-auth-module.d.ts +8 -0
  169. package/esm/modules/cli/commands/principal-auth-module.js +580 -0
  170. package/esm/modules/cli/commands/resource-module.d.ts +8 -0
  171. package/esm/modules/cli/commands/resource-module.js +602 -0
  172. package/esm/modules/cli/commands.js +9 -5
  173. package/esm/modules/cli/executor.d.ts +4 -2
  174. package/esm/modules/orm/index.d.ts +8 -4
  175. package/esm/modules/orm/index.js +8 -4
  176. package/esm/modules/orm/input-types.d.ts +868 -411
  177. package/esm/modules/orm/models/index.d.ts +4 -2
  178. package/esm/modules/orm/models/index.js +4 -2
  179. package/esm/modules/orm/models/principalAuthModule.d.ts +54 -0
  180. package/esm/modules/orm/models/principalAuthModule.js +100 -0
  181. package/esm/modules/orm/models/resourceModule.d.ts +54 -0
  182. package/esm/modules/orm/models/resourceModule.js +100 -0
  183. package/modules/cli/commands/merkle-store-module.js +22 -0
  184. package/modules/cli/commands/principal-auth-module.d.ts +8 -0
  185. package/modules/cli/commands/principal-auth-module.js +582 -0
  186. package/modules/cli/commands/resource-module.d.ts +8 -0
  187. package/modules/cli/commands/resource-module.js +604 -0
  188. package/modules/cli/commands.js +9 -5
  189. package/modules/cli/executor.d.ts +4 -2
  190. package/modules/orm/index.d.ts +8 -4
  191. package/modules/orm/index.js +8 -4
  192. package/modules/orm/input-types.d.ts +868 -411
  193. package/modules/orm/models/index.d.ts +4 -2
  194. package/modules/orm/models/index.js +10 -6
  195. package/modules/orm/models/principalAuthModule.d.ts +54 -0
  196. package/modules/orm/models/principalAuthModule.js +104 -0
  197. package/modules/orm/models/resourceModule.d.ts +54 -0
  198. package/modules/orm/models/resourceModule.js +104 -0
  199. package/package.json +5 -5
@@ -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, ImportGraphJsonInput, InsertNodeAtPathInput, StartExecutionInput, ProvisionBucketInput, ValidateFunctionGraphPayload, InitEmptyRepoPayload, SetDataAtPathPayload, ImportDefinitionsPayload, CopyGraphPayload, SaveGraphPayload, AddEdgeAndSavePayload, AddNodeAndSavePayload, AddEdgePayload, AddNodePayload, ImportGraphJsonPayload, InsertNodeAtPathPayload, StartExecutionPayload, ProvisionBucketPayload, ValidateFunctionGraphPayloadSelect, InitEmptyRepoPayloadSelect, SetDataAtPathPayloadSelect, ImportDefinitionsPayloadSelect, CopyGraphPayloadSelect, SaveGraphPayloadSelect, AddEdgeAndSavePayloadSelect, AddNodeAndSavePayloadSelect, AddEdgePayloadSelect, AddNodePayloadSelect, ImportGraphJsonPayloadSelect, InsertNodeAtPathPayloadSelect, StartExecutionPayloadSelect, ProvisionBucketPayloadSelect } from '../input-types';
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;