@constructive-io/sdk 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/orm/input-types.d.ts +144 -171
- 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/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/orm/input-types.d.ts +144 -171
- 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/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/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/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
|
@@ -38,6 +38,18 @@ export function createMutationOperations(client) {
|
|
|
38
38
|
},
|
|
39
39
|
], connectionFieldsMap, 'CheckPasswordPayload'),
|
|
40
40
|
}),
|
|
41
|
+
deleteOrgPrincipal: (args, options) => new QueryBuilder({
|
|
42
|
+
client,
|
|
43
|
+
operation: 'mutation',
|
|
44
|
+
operationName: 'DeleteOrgPrincipal',
|
|
45
|
+
fieldName: 'deleteOrgPrincipal',
|
|
46
|
+
...buildCustomDocument('mutation', 'DeleteOrgPrincipal', 'deleteOrgPrincipal', options.select, args, [
|
|
47
|
+
{
|
|
48
|
+
name: 'input',
|
|
49
|
+
type: 'DeleteOrgPrincipalInput!',
|
|
50
|
+
},
|
|
51
|
+
], connectionFieldsMap, 'DeleteOrgPrincipalPayload'),
|
|
52
|
+
}),
|
|
41
53
|
disconnectAccount: (args, options) => new QueryBuilder({
|
|
42
54
|
client,
|
|
43
55
|
operation: 'mutation',
|
|
@@ -110,6 +122,18 @@ export function createMutationOperations(client) {
|
|
|
110
122
|
},
|
|
111
123
|
], connectionFieldsMap, 'ConfirmDeleteAccountPayload'),
|
|
112
124
|
}),
|
|
125
|
+
revokeOrgApiKey: (args, options) => new QueryBuilder({
|
|
126
|
+
client,
|
|
127
|
+
operation: 'mutation',
|
|
128
|
+
operationName: 'RevokeOrgApiKey',
|
|
129
|
+
fieldName: 'revokeOrgApiKey',
|
|
130
|
+
...buildCustomDocument('mutation', 'RevokeOrgApiKey', 'revokeOrgApiKey', options.select, args, [
|
|
131
|
+
{
|
|
132
|
+
name: 'input',
|
|
133
|
+
type: 'RevokeOrgApiKeyInput!',
|
|
134
|
+
},
|
|
135
|
+
], connectionFieldsMap, 'RevokeOrgApiKeyPayload'),
|
|
136
|
+
}),
|
|
113
137
|
setPassword: (args, options) => new QueryBuilder({
|
|
114
138
|
client,
|
|
115
139
|
operation: 'mutation',
|
|
@@ -230,6 +254,18 @@ export function createMutationOperations(client) {
|
|
|
230
254
|
},
|
|
231
255
|
], connectionFieldsMap, 'LinkIdentityPayload'),
|
|
232
256
|
}),
|
|
257
|
+
createOrgPrincipal: (args, options) => new QueryBuilder({
|
|
258
|
+
client,
|
|
259
|
+
operation: 'mutation',
|
|
260
|
+
operationName: 'CreateOrgPrincipal',
|
|
261
|
+
fieldName: 'createOrgPrincipal',
|
|
262
|
+
...buildCustomDocument('mutation', 'CreateOrgPrincipal', 'createOrgPrincipal', options.select, args, [
|
|
263
|
+
{
|
|
264
|
+
name: 'input',
|
|
265
|
+
type: 'CreateOrgPrincipalInput!',
|
|
266
|
+
},
|
|
267
|
+
], connectionFieldsMap, 'CreateOrgPrincipalPayload'),
|
|
268
|
+
}),
|
|
233
269
|
extendTokenExpires: (args, options) => new QueryBuilder({
|
|
234
270
|
client,
|
|
235
271
|
operation: 'mutation',
|
|
@@ -242,6 +278,18 @@ export function createMutationOperations(client) {
|
|
|
242
278
|
},
|
|
243
279
|
], connectionFieldsMap, 'ExtendTokenExpiresPayload'),
|
|
244
280
|
}),
|
|
281
|
+
createOrgApiKey: (args, options) => new QueryBuilder({
|
|
282
|
+
client,
|
|
283
|
+
operation: 'mutation',
|
|
284
|
+
operationName: 'CreateOrgApiKey',
|
|
285
|
+
fieldName: 'createOrgApiKey',
|
|
286
|
+
...buildCustomDocument('mutation', 'CreateOrgApiKey', 'createOrgApiKey', options.select, args, [
|
|
287
|
+
{
|
|
288
|
+
name: 'input',
|
|
289
|
+
type: 'CreateOrgApiKeyInput!',
|
|
290
|
+
},
|
|
291
|
+
], connectionFieldsMap, 'CreateOrgApiKeyPayload'),
|
|
292
|
+
}),
|
|
245
293
|
createApiKey: (args, options) => new QueryBuilder({
|
|
246
294
|
client,
|
|
247
295
|
operation: 'mutation',
|
|
@@ -16,15 +16,15 @@ export declare function createQueryOperations(client: OrmClient): {
|
|
|
16
16
|
}) => QueryBuilder<{
|
|
17
17
|
currentUserAgent: string | null;
|
|
18
18
|
}>;
|
|
19
|
-
|
|
19
|
+
currentUserId: (options?: {
|
|
20
20
|
select?: Record<string, unknown>;
|
|
21
21
|
}) => QueryBuilder<{
|
|
22
|
-
|
|
22
|
+
currentUserId: string | null;
|
|
23
23
|
}>;
|
|
24
|
-
|
|
24
|
+
currentIpAddress: (options?: {
|
|
25
25
|
select?: Record<string, unknown>;
|
|
26
26
|
}) => QueryBuilder<{
|
|
27
|
-
|
|
27
|
+
currentIpAddress: string | null;
|
|
28
28
|
}>;
|
|
29
29
|
requireStepUp: (args: RequireStepUpVariables, options?: {
|
|
30
30
|
select?: Record<string, unknown>;
|
|
@@ -9,13 +9,6 @@ export function createQueryOperations(client) {
|
|
|
9
9
|
fieldName: 'currentUserAgent',
|
|
10
10
|
...buildCustomDocument('query', 'CurrentUserAgent', 'currentUserAgent', options?.select, undefined, [], connectionFieldsMap, undefined),
|
|
11
11
|
}),
|
|
12
|
-
currentIpAddress: (options) => new QueryBuilder({
|
|
13
|
-
client,
|
|
14
|
-
operation: 'query',
|
|
15
|
-
operationName: 'CurrentIpAddress',
|
|
16
|
-
fieldName: 'currentIpAddress',
|
|
17
|
-
...buildCustomDocument('query', 'CurrentIpAddress', 'currentIpAddress', options?.select, undefined, [], connectionFieldsMap, undefined),
|
|
18
|
-
}),
|
|
19
12
|
currentUserId: (options) => new QueryBuilder({
|
|
20
13
|
client,
|
|
21
14
|
operation: 'query',
|
|
@@ -23,6 +16,13 @@ export function createQueryOperations(client) {
|
|
|
23
16
|
fieldName: 'currentUserId',
|
|
24
17
|
...buildCustomDocument('query', 'CurrentUserId', 'currentUserId', options?.select, undefined, [], connectionFieldsMap, undefined),
|
|
25
18
|
}),
|
|
19
|
+
currentIpAddress: (options) => new QueryBuilder({
|
|
20
|
+
client,
|
|
21
|
+
operation: 'query',
|
|
22
|
+
operationName: 'CurrentIpAddress',
|
|
23
|
+
fieldName: 'currentIpAddress',
|
|
24
|
+
...buildCustomDocument('query', 'CurrentIpAddress', 'currentIpAddress', options?.select, undefined, [], connectionFieldsMap, undefined),
|
|
25
|
+
}),
|
|
26
26
|
requireStepUp: (args, options) => new QueryBuilder({
|
|
27
27
|
client,
|
|
28
28
|
operation: 'query',
|
|
@@ -2,19 +2,23 @@ import type { OrmClientConfig } from './client';
|
|
|
2
2
|
import { GetAllRecordModel } from './models/getAllRecord';
|
|
3
3
|
import { FunctionApiBindingModel } from './models/functionApiBinding';
|
|
4
4
|
import { FunctionDeploymentModel } from './models/functionDeployment';
|
|
5
|
+
import { ResourceModel } from './models/resource';
|
|
5
6
|
import { FunctionGraphRefModel } from './models/functionGraphRef';
|
|
6
7
|
import { FunctionGraphStoreModel } from './models/functionGraphStore';
|
|
7
8
|
import { FunctionGraphObjectModel } from './models/functionGraphObject';
|
|
8
9
|
import { FunctionDeploymentEventModel } from './models/functionDeploymentEvent';
|
|
9
10
|
import { OrgFunctionExecutionLogModel } from './models/orgFunctionExecutionLog';
|
|
11
|
+
import { ResourceEventModel } from './models/resourceEvent';
|
|
10
12
|
import { FunctionGraphExecutionOutputModel } from './models/functionGraphExecutionOutput';
|
|
11
13
|
import { FunctionGraphCommitModel } from './models/functionGraphCommit';
|
|
12
14
|
import { SecretDefinitionModel } from './models/secretDefinition';
|
|
13
15
|
import { FunctionExecutionLogModel } from './models/functionExecutionLog';
|
|
14
|
-
import { FunctionGraphExecutionNodeStateModel } from './models/functionGraphExecutionNodeState';
|
|
15
16
|
import { FunctionGraphModel } from './models/functionGraph';
|
|
17
|
+
import { FunctionGraphExecutionNodeStateModel } from './models/functionGraphExecutionNodeState';
|
|
18
|
+
import { PlatformNamespaceModel } from './models/platformNamespace';
|
|
16
19
|
import { OrgFunctionInvocationModel } from './models/orgFunctionInvocation';
|
|
17
20
|
import { FunctionInvocationModel } from './models/functionInvocation';
|
|
21
|
+
import { PlatformNamespaceEventModel } from './models/platformNamespaceEvent';
|
|
18
22
|
import { FunctionGraphExecutionModel } from './models/functionGraphExecution';
|
|
19
23
|
import { FunctionDefinitionModel } from './models/functionDefinition';
|
|
20
24
|
export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client';
|
|
@@ -51,19 +55,23 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
51
55
|
getAllRecord: GetAllRecordModel;
|
|
52
56
|
functionApiBinding: FunctionApiBindingModel;
|
|
53
57
|
functionDeployment: FunctionDeploymentModel;
|
|
58
|
+
resource: ResourceModel;
|
|
54
59
|
functionGraphRef: FunctionGraphRefModel;
|
|
55
60
|
functionGraphStore: FunctionGraphStoreModel;
|
|
56
61
|
functionGraphObject: FunctionGraphObjectModel;
|
|
57
62
|
functionDeploymentEvent: FunctionDeploymentEventModel;
|
|
58
63
|
orgFunctionExecutionLog: OrgFunctionExecutionLogModel;
|
|
64
|
+
resourceEvent: ResourceEventModel;
|
|
59
65
|
functionGraphExecutionOutput: FunctionGraphExecutionOutputModel;
|
|
60
66
|
functionGraphCommit: FunctionGraphCommitModel;
|
|
61
67
|
secretDefinition: SecretDefinitionModel;
|
|
62
68
|
functionExecutionLog: FunctionExecutionLogModel;
|
|
63
|
-
functionGraphExecutionNodeState: FunctionGraphExecutionNodeStateModel;
|
|
64
69
|
functionGraph: FunctionGraphModel;
|
|
70
|
+
functionGraphExecutionNodeState: FunctionGraphExecutionNodeStateModel;
|
|
71
|
+
platformNamespace: PlatformNamespaceModel;
|
|
65
72
|
orgFunctionInvocation: OrgFunctionInvocationModel;
|
|
66
73
|
functionInvocation: FunctionInvocationModel;
|
|
74
|
+
platformNamespaceEvent: PlatformNamespaceEventModel;
|
|
67
75
|
functionGraphExecution: FunctionGraphExecutionModel;
|
|
68
76
|
functionDefinition: FunctionDefinitionModel;
|
|
69
77
|
query: {
|
|
@@ -114,6 +122,11 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
114
122
|
} & import("./select-types").StrictSelect<S, import("./input-types").AddNodeAndSavePayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
115
123
|
addNodeAndSave: import("./select-types").InferSelectResult<import("./input-types").AddNodeAndSavePayload, S> | null;
|
|
116
124
|
}>;
|
|
125
|
+
importGraphJson: <S extends import("./input-types").ImportGraphJsonPayloadSelect>(args: import("./mutation").ImportGraphJsonVariables, options: {
|
|
126
|
+
select: S;
|
|
127
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").ImportGraphJsonPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
128
|
+
importGraphJson: import("./select-types").InferSelectResult<import("./input-types").ImportGraphJsonPayload, S> | null;
|
|
129
|
+
}>;
|
|
117
130
|
addEdge: <S extends import("./input-types").AddEdgePayloadSelect>(args: import("./mutation").AddEdgeVariables, options: {
|
|
118
131
|
select: S;
|
|
119
132
|
} & import("./select-types").StrictSelect<S, import("./input-types").AddEdgePayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
@@ -124,11 +137,6 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
124
137
|
} & import("./select-types").StrictSelect<S, import("./input-types").AddNodePayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
125
138
|
addNode: import("./select-types").InferSelectResult<import("./input-types").AddNodePayload, S> | null;
|
|
126
139
|
}>;
|
|
127
|
-
importGraphJson: <S extends import("./input-types").ImportGraphJsonPayloadSelect>(args: import("./mutation").ImportGraphJsonVariables, options: {
|
|
128
|
-
select: S;
|
|
129
|
-
} & import("./select-types").StrictSelect<S, import("./input-types").ImportGraphJsonPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
130
|
-
importGraphJson: import("./select-types").InferSelectResult<import("./input-types").ImportGraphJsonPayload, S> | null;
|
|
131
|
-
}>;
|
|
132
140
|
insertNodeAtPath: <S extends import("./input-types").InsertNodeAtPathPayloadSelect>(args: import("./mutation").InsertNodeAtPathVariables, options: {
|
|
133
141
|
select: S;
|
|
134
142
|
} & import("./select-types").StrictSelect<S, import("./input-types").InsertNodeAtPathPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
package/esm/compute/orm/index.js
CHANGED
|
@@ -7,19 +7,23 @@ import { OrmClient } from './client';
|
|
|
7
7
|
import { GetAllRecordModel } from './models/getAllRecord';
|
|
8
8
|
import { FunctionApiBindingModel } from './models/functionApiBinding';
|
|
9
9
|
import { FunctionDeploymentModel } from './models/functionDeployment';
|
|
10
|
+
import { ResourceModel } from './models/resource';
|
|
10
11
|
import { FunctionGraphRefModel } from './models/functionGraphRef';
|
|
11
12
|
import { FunctionGraphStoreModel } from './models/functionGraphStore';
|
|
12
13
|
import { FunctionGraphObjectModel } from './models/functionGraphObject';
|
|
13
14
|
import { FunctionDeploymentEventModel } from './models/functionDeploymentEvent';
|
|
14
15
|
import { OrgFunctionExecutionLogModel } from './models/orgFunctionExecutionLog';
|
|
16
|
+
import { ResourceEventModel } from './models/resourceEvent';
|
|
15
17
|
import { FunctionGraphExecutionOutputModel } from './models/functionGraphExecutionOutput';
|
|
16
18
|
import { FunctionGraphCommitModel } from './models/functionGraphCommit';
|
|
17
19
|
import { SecretDefinitionModel } from './models/secretDefinition';
|
|
18
20
|
import { FunctionExecutionLogModel } from './models/functionExecutionLog';
|
|
19
|
-
import { FunctionGraphExecutionNodeStateModel } from './models/functionGraphExecutionNodeState';
|
|
20
21
|
import { FunctionGraphModel } from './models/functionGraph';
|
|
22
|
+
import { FunctionGraphExecutionNodeStateModel } from './models/functionGraphExecutionNodeState';
|
|
23
|
+
import { PlatformNamespaceModel } from './models/platformNamespace';
|
|
21
24
|
import { OrgFunctionInvocationModel } from './models/orgFunctionInvocation';
|
|
22
25
|
import { FunctionInvocationModel } from './models/functionInvocation';
|
|
26
|
+
import { PlatformNamespaceEventModel } from './models/platformNamespaceEvent';
|
|
23
27
|
import { FunctionGraphExecutionModel } from './models/functionGraphExecution';
|
|
24
28
|
import { FunctionDefinitionModel } from './models/functionDefinition';
|
|
25
29
|
import { createQueryOperations } from './query';
|
|
@@ -59,19 +63,23 @@ export function createClient(config) {
|
|
|
59
63
|
getAllRecord: new GetAllRecordModel(client),
|
|
60
64
|
functionApiBinding: new FunctionApiBindingModel(client),
|
|
61
65
|
functionDeployment: new FunctionDeploymentModel(client),
|
|
66
|
+
resource: new ResourceModel(client),
|
|
62
67
|
functionGraphRef: new FunctionGraphRefModel(client),
|
|
63
68
|
functionGraphStore: new FunctionGraphStoreModel(client),
|
|
64
69
|
functionGraphObject: new FunctionGraphObjectModel(client),
|
|
65
70
|
functionDeploymentEvent: new FunctionDeploymentEventModel(client),
|
|
66
71
|
orgFunctionExecutionLog: new OrgFunctionExecutionLogModel(client),
|
|
72
|
+
resourceEvent: new ResourceEventModel(client),
|
|
67
73
|
functionGraphExecutionOutput: new FunctionGraphExecutionOutputModel(client),
|
|
68
74
|
functionGraphCommit: new FunctionGraphCommitModel(client),
|
|
69
75
|
secretDefinition: new SecretDefinitionModel(client),
|
|
70
76
|
functionExecutionLog: new FunctionExecutionLogModel(client),
|
|
71
|
-
functionGraphExecutionNodeState: new FunctionGraphExecutionNodeStateModel(client),
|
|
72
77
|
functionGraph: new FunctionGraphModel(client),
|
|
78
|
+
functionGraphExecutionNodeState: new FunctionGraphExecutionNodeStateModel(client),
|
|
79
|
+
platformNamespace: new PlatformNamespaceModel(client),
|
|
73
80
|
orgFunctionInvocation: new OrgFunctionInvocationModel(client),
|
|
74
81
|
functionInvocation: new FunctionInvocationModel(client),
|
|
82
|
+
platformNamespaceEvent: new PlatformNamespaceEventModel(client),
|
|
75
83
|
functionGraphExecution: new FunctionGraphExecutionModel(client),
|
|
76
84
|
functionDefinition: new FunctionDefinitionModel(client),
|
|
77
85
|
query: createQueryOperations(client),
|