@constructive-io/sdk 1.11.2 → 1.11.4
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/admin/orm/client.js +11 -1
- package/agent/orm/client.js +11 -1
- package/agent/orm/input-types.d.ts +0 -3
- package/api/orm/client.js +11 -1
- package/api/orm/index.d.ts +66 -4
- package/api/orm/index.js +36 -4
- package/api/orm/input-types.d.ts +4946 -630
- package/api/orm/input-types.js +34 -6
- package/api/orm/models/apis.d.ts +54 -0
- package/api/orm/models/{api.js → apis.js} +27 -27
- package/api/orm/models/derive.d.ts +54 -0
- package/api/orm/models/derive.js +104 -0
- package/api/orm/models/fieldBehavior.d.ts +54 -0
- package/api/orm/models/fieldBehavior.js +104 -0
- package/api/orm/models/foreignKeyConstraintBehavior.d.ts +54 -0
- package/api/orm/models/foreignKeyConstraintBehavior.js +104 -0
- package/api/orm/models/index.d.ts +18 -2
- package/api/orm/models/index.js +38 -6
- package/api/orm/models/page.d.ts +54 -0
- package/api/orm/models/page.js +104 -0
- package/api/orm/models/platformApis.d.ts +54 -0
- package/api/orm/models/platformApis.js +104 -0
- package/api/orm/models/platformPage.d.ts +54 -0
- package/api/orm/models/platformPage.js +104 -0
- package/api/orm/models/platformSiteAppLink.d.ts +54 -0
- package/api/orm/models/platformSiteAppLink.js +104 -0
- package/api/orm/models/platformSiteDeepLink.d.ts +54 -0
- package/api/orm/models/platformSiteDeepLink.js +104 -0
- package/api/orm/models/platformSiteErrorPage.d.ts +54 -0
- package/api/orm/models/platformSiteErrorPage.js +104 -0
- package/api/orm/models/platformSiteWebConfig.d.ts +54 -0
- package/api/orm/models/platformSiteWebConfig.js +104 -0
- package/api/orm/models/siteAppLink.d.ts +54 -0
- package/api/orm/models/{platformApi.js → siteAppLink.js} +27 -27
- package/api/orm/models/siteDeepLink.d.ts +54 -0
- package/api/orm/models/siteDeepLink.js +104 -0
- package/api/orm/models/siteErrorPage.d.ts +54 -0
- package/api/orm/models/siteErrorPage.js +104 -0
- package/api/orm/models/siteWebConfig.d.ts +54 -0
- package/api/orm/models/siteWebConfig.js +104 -0
- package/api/orm/models/tableBehavior.d.ts +54 -0
- package/api/orm/models/tableBehavior.js +104 -0
- package/api/orm/models/uniqueConstraintBehavior.d.ts +54 -0
- package/api/orm/models/uniqueConstraintBehavior.js +104 -0
- package/api/orm/models/viewBehavior.d.ts +54 -0
- package/api/orm/models/viewBehavior.js +104 -0
- package/api/orm/mutation/index.d.ts +33 -1
- package/api/orm/mutation/index.js +48 -0
- package/api/orm/query/index.d.ts +17 -0
- package/api/orm/query/index.js +28 -0
- package/auth/orm/client.js +11 -1
- package/auth/orm/input-types.d.ts +166 -220
- package/auth/orm/input-types.js +6 -11
- package/compute/orm/client.js +11 -1
- package/compute/orm/index.d.ts +4 -0
- package/compute/orm/index.js +4 -0
- package/compute/orm/input-types.d.ts +539 -8
- package/compute/orm/input-types.js +2 -0
- package/compute/orm/models/functionCapabilityBinding.d.ts +54 -0
- package/compute/orm/models/functionCapabilityBinding.js +104 -0
- package/compute/orm/models/index.d.ts +2 -0
- package/compute/orm/models/index.js +6 -2
- package/compute/orm/models/platformFunctionCapabilityBinding.d.ts +54 -0
- package/compute/orm/models/platformFunctionCapabilityBinding.js +104 -0
- package/config/orm/client.js +11 -1
- package/config/orm/input-types.d.ts +53 -5
- package/esm/admin/orm/client.js +11 -1
- package/esm/agent/orm/client.js +11 -1
- package/esm/agent/orm/input-types.d.ts +0 -3
- package/esm/api/orm/client.js +11 -1
- package/esm/api/orm/index.d.ts +66 -4
- package/esm/api/orm/index.js +36 -4
- package/esm/api/orm/input-types.d.ts +4946 -630
- package/esm/api/orm/input-types.js +34 -6
- package/esm/api/orm/models/apis.d.ts +54 -0
- package/esm/api/orm/models/{api.js → apis.js} +25 -25
- package/esm/api/orm/models/derive.d.ts +54 -0
- package/esm/api/orm/models/derive.js +100 -0
- package/esm/api/orm/models/fieldBehavior.d.ts +54 -0
- package/esm/api/orm/models/fieldBehavior.js +100 -0
- package/esm/api/orm/models/foreignKeyConstraintBehavior.d.ts +54 -0
- package/esm/api/orm/models/foreignKeyConstraintBehavior.js +100 -0
- package/esm/api/orm/models/index.d.ts +18 -2
- package/esm/api/orm/models/index.js +18 -2
- package/esm/api/orm/models/page.d.ts +54 -0
- package/esm/api/orm/models/page.js +100 -0
- package/esm/api/orm/models/platformApis.d.ts +54 -0
- package/esm/api/orm/models/{platformApi.js → platformApis.js} +25 -25
- package/esm/api/orm/models/platformPage.d.ts +54 -0
- package/esm/api/orm/models/platformPage.js +100 -0
- package/esm/api/orm/models/platformSiteAppLink.d.ts +54 -0
- package/esm/api/orm/models/platformSiteAppLink.js +100 -0
- package/esm/api/orm/models/platformSiteDeepLink.d.ts +54 -0
- package/esm/api/orm/models/platformSiteDeepLink.js +100 -0
- package/esm/api/orm/models/platformSiteErrorPage.d.ts +54 -0
- package/esm/api/orm/models/platformSiteErrorPage.js +100 -0
- package/esm/api/orm/models/platformSiteWebConfig.d.ts +54 -0
- package/esm/api/orm/models/platformSiteWebConfig.js +100 -0
- package/esm/api/orm/models/siteAppLink.d.ts +54 -0
- package/esm/api/orm/models/siteAppLink.js +100 -0
- package/esm/api/orm/models/siteDeepLink.d.ts +54 -0
- package/esm/api/orm/models/siteDeepLink.js +100 -0
- package/esm/api/orm/models/siteErrorPage.d.ts +54 -0
- package/esm/api/orm/models/siteErrorPage.js +100 -0
- package/esm/api/orm/models/siteWebConfig.d.ts +54 -0
- package/esm/api/orm/models/siteWebConfig.js +100 -0
- package/esm/api/orm/models/tableBehavior.d.ts +54 -0
- package/esm/api/orm/models/tableBehavior.js +100 -0
- package/esm/api/orm/models/uniqueConstraintBehavior.d.ts +54 -0
- package/esm/api/orm/models/uniqueConstraintBehavior.js +100 -0
- package/esm/api/orm/models/viewBehavior.d.ts +54 -0
- package/esm/api/orm/models/viewBehavior.js +100 -0
- package/esm/api/orm/mutation/index.d.ts +33 -1
- package/esm/api/orm/mutation/index.js +48 -0
- package/esm/api/orm/query/index.d.ts +17 -0
- package/esm/api/orm/query/index.js +28 -0
- package/esm/auth/orm/client.js +11 -1
- package/esm/auth/orm/input-types.d.ts +166 -220
- package/esm/auth/orm/input-types.js +6 -11
- package/esm/compute/orm/client.js +11 -1
- package/esm/compute/orm/index.d.ts +4 -0
- package/esm/compute/orm/index.js +4 -0
- package/esm/compute/orm/input-types.d.ts +539 -8
- package/esm/compute/orm/input-types.js +2 -0
- package/esm/compute/orm/models/functionCapabilityBinding.d.ts +54 -0
- package/esm/compute/orm/models/functionCapabilityBinding.js +100 -0
- package/esm/compute/orm/models/index.d.ts +2 -0
- package/esm/compute/orm/models/index.js +2 -0
- package/esm/compute/orm/models/platformFunctionCapabilityBinding.d.ts +54 -0
- package/esm/compute/orm/models/platformFunctionCapabilityBinding.js +100 -0
- package/esm/config/orm/client.js +11 -1
- package/esm/config/orm/input-types.d.ts +53 -5
- package/esm/infra/orm/client.js +11 -1
- package/esm/modules/orm/client.js +11 -1
- package/esm/modules/orm/index.d.ts +2 -0
- package/esm/modules/orm/index.js +2 -0
- package/esm/modules/orm/input-types.d.ts +2116 -122
- package/esm/modules/orm/input-types.js +40 -0
- package/esm/modules/orm/models/index.d.ts +1 -0
- package/esm/modules/orm/models/index.js +1 -0
- package/esm/modules/orm/models/pagesModule.d.ts +54 -0
- package/esm/modules/orm/models/pagesModule.js +100 -0
- package/esm/objects/orm/client.js +11 -1
- package/esm/usage/orm/client.js +11 -1
- package/infra/orm/client.js +11 -1
- package/modules/orm/client.js +11 -1
- package/modules/orm/index.d.ts +2 -0
- package/modules/orm/index.js +2 -0
- package/modules/orm/input-types.d.ts +2116 -122
- package/modules/orm/input-types.js +40 -0
- package/modules/orm/models/index.d.ts +1 -0
- package/modules/orm/models/index.js +4 -2
- package/modules/orm/models/pagesModule.d.ts +54 -0
- package/modules/orm/models/pagesModule.js +104 -0
- package/objects/orm/client.js +11 -1
- package/package.json +6 -6
- package/usage/orm/client.js +11 -1
- package/api/orm/models/api.d.ts +0 -54
- package/api/orm/models/platformApi.d.ts +0 -54
- package/esm/api/orm/models/api.d.ts +0 -54
- package/esm/api/orm/models/platformApi.d.ts +0 -54
|
@@ -8,6 +8,7 @@ exports.connectionFieldsMap = {
|
|
|
8
8
|
},
|
|
9
9
|
FunctionDefinition: {
|
|
10
10
|
functionApiBindings: 'FunctionApiBinding',
|
|
11
|
+
functionCapabilityBindingsByFunctionId: 'FunctionCapabilityBinding',
|
|
11
12
|
webhookEndpoints: 'WebhookEndpoint',
|
|
12
13
|
},
|
|
13
14
|
FunctionGraph: {
|
|
@@ -26,6 +27,7 @@ exports.connectionFieldsMap = {
|
|
|
26
27
|
},
|
|
27
28
|
PlatformFunctionDefinition: {
|
|
28
29
|
platformFunctionApiBindingsByFunctionDefinitionId: 'PlatformFunctionApiBinding',
|
|
30
|
+
platformFunctionCapabilityBindingsByFunctionId: 'PlatformFunctionCapabilityBinding',
|
|
29
31
|
platformWebhookEndpointsByFunctionDefinitionId: 'PlatformWebhookEndpoint',
|
|
30
32
|
},
|
|
31
33
|
PlatformNamespace: {
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FunctionCapabilityBinding model for ORM client
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { OrmClient } from '../client';
|
|
7
|
+
import { QueryBuilder } from '../query-builder';
|
|
8
|
+
import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
+
import type { FunctionCapabilityBindingWithRelations, FunctionCapabilityBindingSelect, FunctionCapabilityBindingFilter, FunctionCapabilityBindingOrderBy, CreateFunctionCapabilityBindingInput, FunctionCapabilityBindingPatch } from '../input-types';
|
|
10
|
+
export declare class FunctionCapabilityBindingModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends FunctionCapabilityBindingSelect>(args: FindManyArgs<S, FunctionCapabilityBindingFilter, FunctionCapabilityBindingOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, FunctionCapabilityBindingSelect>): QueryBuilder<{
|
|
16
|
+
functionCapabilityBindings: ConnectionResult<InferSelectResult<FunctionCapabilityBindingWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends FunctionCapabilityBindingSelect>(args: FindFirstArgs<S, FunctionCapabilityBindingFilter, FunctionCapabilityBindingOrderBy> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, FunctionCapabilityBindingSelect>): QueryBuilder<{
|
|
21
|
+
functionCapabilityBinding: InferSelectResult<FunctionCapabilityBindingWithRelations, S> | null;
|
|
22
|
+
}>;
|
|
23
|
+
findOne<S extends FunctionCapabilityBindingSelect>(args: {
|
|
24
|
+
id: string;
|
|
25
|
+
select: S;
|
|
26
|
+
} & StrictSelect<S, FunctionCapabilityBindingSelect>): QueryBuilder<{
|
|
27
|
+
functionCapabilityBinding: InferSelectResult<FunctionCapabilityBindingWithRelations, S> | null;
|
|
28
|
+
}>;
|
|
29
|
+
create<S extends FunctionCapabilityBindingSelect>(args: CreateArgs<S, CreateFunctionCapabilityBindingInput['functionCapabilityBinding']> & {
|
|
30
|
+
select: S;
|
|
31
|
+
} & StrictSelect<S, FunctionCapabilityBindingSelect>): QueryBuilder<{
|
|
32
|
+
createFunctionCapabilityBinding: {
|
|
33
|
+
functionCapabilityBinding: InferSelectResult<FunctionCapabilityBindingWithRelations, S>;
|
|
34
|
+
};
|
|
35
|
+
}>;
|
|
36
|
+
update<S extends FunctionCapabilityBindingSelect>(args: UpdateArgs<S, {
|
|
37
|
+
id: string;
|
|
38
|
+
}, FunctionCapabilityBindingPatch> & {
|
|
39
|
+
select: S;
|
|
40
|
+
} & StrictSelect<S, FunctionCapabilityBindingSelect>): QueryBuilder<{
|
|
41
|
+
updateFunctionCapabilityBinding: {
|
|
42
|
+
functionCapabilityBinding: InferSelectResult<FunctionCapabilityBindingWithRelations, S>;
|
|
43
|
+
};
|
|
44
|
+
}>;
|
|
45
|
+
delete<S extends FunctionCapabilityBindingSelect>(args: DeleteArgs<{
|
|
46
|
+
id: string;
|
|
47
|
+
}, S> & {
|
|
48
|
+
select: S;
|
|
49
|
+
} & StrictSelect<S, FunctionCapabilityBindingSelect>): QueryBuilder<{
|
|
50
|
+
deleteFunctionCapabilityBinding: {
|
|
51
|
+
functionCapabilityBinding: InferSelectResult<FunctionCapabilityBindingWithRelations, S>;
|
|
52
|
+
};
|
|
53
|
+
}>;
|
|
54
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FunctionCapabilityBindingModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class FunctionCapabilityBindingModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('FunctionCapabilityBinding', 'functionCapabilityBindings', args.select, {
|
|
13
|
+
where: args?.where,
|
|
14
|
+
orderBy: args?.orderBy,
|
|
15
|
+
first: args?.first,
|
|
16
|
+
last: args?.last,
|
|
17
|
+
after: args?.after,
|
|
18
|
+
before: args?.before,
|
|
19
|
+
offset: args?.offset,
|
|
20
|
+
}, 'FunctionCapabilityBindingFilter', 'FunctionCapabilityBindingOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'FunctionCapabilityBinding',
|
|
25
|
+
fieldName: 'functionCapabilityBindings',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('FunctionCapabilityBinding', 'functionCapabilityBindings', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
orderBy: args?.orderBy,
|
|
34
|
+
}, 'FunctionCapabilityBindingFilter', 'FunctionCapabilityBindingOrderBy', input_types_1.connectionFieldsMap);
|
|
35
|
+
return new query_builder_1.QueryBuilder({
|
|
36
|
+
client: this.client,
|
|
37
|
+
operation: 'query',
|
|
38
|
+
operationName: 'FunctionCapabilityBinding',
|
|
39
|
+
fieldName: 'functionCapabilityBinding',
|
|
40
|
+
document,
|
|
41
|
+
variables,
|
|
42
|
+
transform: (data) => ({
|
|
43
|
+
functionCapabilityBinding: data.functionCapabilityBindings?.nodes?.[0] ?? null,
|
|
44
|
+
}),
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
findOne(args) {
|
|
48
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('FunctionCapabilityBinding', 'functionCapabilityBindings', args.select, {
|
|
49
|
+
where: {
|
|
50
|
+
id: {
|
|
51
|
+
equalTo: args.id,
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
first: 1,
|
|
55
|
+
}, 'FunctionCapabilityBindingFilter', 'FunctionCapabilityBindingOrderBy', input_types_1.connectionFieldsMap);
|
|
56
|
+
return new query_builder_1.QueryBuilder({
|
|
57
|
+
client: this.client,
|
|
58
|
+
operation: 'query',
|
|
59
|
+
operationName: 'FunctionCapabilityBinding',
|
|
60
|
+
fieldName: 'functionCapabilityBinding',
|
|
61
|
+
document,
|
|
62
|
+
variables,
|
|
63
|
+
transform: (data) => ({
|
|
64
|
+
functionCapabilityBinding: data.functionCapabilityBindings?.nodes?.[0] ?? null,
|
|
65
|
+
}),
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
create(args) {
|
|
69
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('FunctionCapabilityBinding', 'createFunctionCapabilityBinding', 'functionCapabilityBinding', args.select, args.data, 'CreateFunctionCapabilityBindingInput', input_types_1.connectionFieldsMap);
|
|
70
|
+
return new query_builder_1.QueryBuilder({
|
|
71
|
+
client: this.client,
|
|
72
|
+
operation: 'mutation',
|
|
73
|
+
operationName: 'FunctionCapabilityBinding',
|
|
74
|
+
fieldName: 'createFunctionCapabilityBinding',
|
|
75
|
+
document,
|
|
76
|
+
variables,
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
update(args) {
|
|
80
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('FunctionCapabilityBinding', 'updateFunctionCapabilityBinding', 'functionCapabilityBinding', args.select, args.where.id, args.data, 'UpdateFunctionCapabilityBindingInput', 'id', 'functionCapabilityBindingPatch', input_types_1.connectionFieldsMap, undefined);
|
|
81
|
+
return new query_builder_1.QueryBuilder({
|
|
82
|
+
client: this.client,
|
|
83
|
+
operation: 'mutation',
|
|
84
|
+
operationName: 'FunctionCapabilityBinding',
|
|
85
|
+
fieldName: 'updateFunctionCapabilityBinding',
|
|
86
|
+
document,
|
|
87
|
+
variables,
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
delete(args) {
|
|
91
|
+
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('FunctionCapabilityBinding', 'deleteFunctionCapabilityBinding', 'functionCapabilityBinding', {
|
|
92
|
+
id: args.where.id,
|
|
93
|
+
}, 'DeleteFunctionCapabilityBindingInput', args.select, input_types_1.connectionFieldsMap);
|
|
94
|
+
return new query_builder_1.QueryBuilder({
|
|
95
|
+
client: this.client,
|
|
96
|
+
operation: 'mutation',
|
|
97
|
+
operationName: 'FunctionCapabilityBinding',
|
|
98
|
+
fieldName: 'deleteFunctionCapabilityBinding',
|
|
99
|
+
document,
|
|
100
|
+
variables,
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
exports.FunctionCapabilityBindingModel = FunctionCapabilityBindingModel;
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export { DbPresetModel } from './dbPreset';
|
|
7
7
|
export { FunctionApiBindingModel } from './functionApiBinding';
|
|
8
|
+
export { FunctionCapabilityBindingModel } from './functionCapabilityBinding';
|
|
8
9
|
export { FunctionDefinitionModel } from './functionDefinition';
|
|
9
10
|
export { FunctionDeploymentModel } from './functionDeployment';
|
|
10
11
|
export { FunctionDeploymentEventModel } from './functionDeploymentEvent';
|
|
@@ -29,6 +30,7 @@ export { IntegrationProviderModel } from './integrationProvider';
|
|
|
29
30
|
export { NamespaceModel } from './namespace';
|
|
30
31
|
export { NamespaceEventModel } from './namespaceEvent';
|
|
31
32
|
export { PlatformFunctionApiBindingModel } from './platformFunctionApiBinding';
|
|
33
|
+
export { PlatformFunctionCapabilityBindingModel } from './platformFunctionCapabilityBinding';
|
|
32
34
|
export { PlatformFunctionDefinitionModel } from './platformFunctionDefinition';
|
|
33
35
|
export { PlatformFunctionDeploymentModel } from './platformFunctionDeployment';
|
|
34
36
|
export { PlatformFunctionDeploymentEventModel } from './platformFunctionDeploymentEvent';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.WebhookEventModel = exports.WebhookEndpointModel = exports.ResourcesResolvedRequirementModel = exports.ResourcesRequirementsStateModel = exports.ResourcesHealthModel = exports.ResourceUtilizationModel = exports.ResourceUsageSummaryModel = exports.ResourceUsageLogModel = exports.ResourceStatusCheckModel = exports.ResourceInstallationModel = exports.ResourceEventModel = exports.ResourceDefinitionModel = exports.ResourceDeclaredCapacityModel = exports.ResourceModel = exports.PlatformWebhookEventModel = exports.PlatformWebhookEndpointModel = exports.PlatformResourcesResolvedRequirementModel = void 0;
|
|
3
|
+
exports.PlatformResourceUtilizationModel = exports.PlatformResourceUsageSummaryModel = exports.PlatformResourceUsageLogModel = exports.PlatformResourceStatusCheckModel = exports.PlatformResourceInstallationModel = exports.PlatformResourceEventModel = exports.PlatformResourceDefinitionModel = exports.PlatformResourceDeclaredCapacityModel = exports.PlatformResourceModel = exports.PlatformNamespaceEventModel = exports.PlatformNamespaceModel = exports.PlatformInfraStoreModel = exports.PlatformInfraRefModel = exports.PlatformInfraObjectModel = exports.PlatformInfraGetAllTreeNodesRecordModel = exports.PlatformInfraCommitModel = exports.PlatformFunctionInvocationModel = exports.PlatformFunctionInvocationAttemptModel = exports.PlatformFunctionExecutionLogModel = exports.PlatformFunctionDeploymentEventModel = exports.PlatformFunctionDeploymentModel = exports.PlatformFunctionDefinitionModel = exports.PlatformFunctionCapabilityBindingModel = exports.PlatformFunctionApiBindingModel = exports.NamespaceEventModel = exports.NamespaceModel = exports.IntegrationProviderModel = exports.InfraStoreModel = exports.InfraRefModel = exports.InfraObjectModel = exports.InfraGetAllTreeNodesRecordModel = exports.InfraCommitModel = exports.GetAllTreeNodesRecordModel = exports.FunctionInvocationModel = exports.FunctionInvocationAttemptModel = exports.FunctionGraphStoreModel = exports.FunctionGraphRefModel = exports.FunctionGraphObjectModel = exports.FunctionGraphExecutionOutputModel = exports.FunctionGraphExecutionNodeStateModel = exports.FunctionGraphExecutionModel = exports.FunctionGraphModel = exports.FunctionGraphCommitModel = exports.FunctionExecutionLogModel = exports.FunctionDeploymentEventModel = exports.FunctionDeploymentModel = exports.FunctionDefinitionModel = exports.FunctionCapabilityBindingModel = exports.FunctionApiBindingModel = exports.DbPresetModel = void 0;
|
|
4
|
+
exports.WebhookEventModel = exports.WebhookEndpointModel = exports.ResourcesResolvedRequirementModel = exports.ResourcesRequirementsStateModel = exports.ResourcesHealthModel = exports.ResourceUtilizationModel = exports.ResourceUsageSummaryModel = exports.ResourceUsageLogModel = exports.ResourceStatusCheckModel = exports.ResourceInstallationModel = exports.ResourceEventModel = exports.ResourceDefinitionModel = exports.ResourceDeclaredCapacityModel = exports.ResourceModel = exports.PlatformWebhookEventModel = exports.PlatformWebhookEndpointModel = exports.PlatformResourcesResolvedRequirementModel = exports.PlatformResourcesRequirementsStateModel = exports.PlatformResourcesHealthModel = void 0;
|
|
5
5
|
/**
|
|
6
6
|
* Models barrel export
|
|
7
7
|
* @generated by @constructive-io/graphql-codegen
|
|
@@ -11,6 +11,8 @@ var dbPreset_1 = require("./dbPreset");
|
|
|
11
11
|
Object.defineProperty(exports, "DbPresetModel", { enumerable: true, get: function () { return dbPreset_1.DbPresetModel; } });
|
|
12
12
|
var functionApiBinding_1 = require("./functionApiBinding");
|
|
13
13
|
Object.defineProperty(exports, "FunctionApiBindingModel", { enumerable: true, get: function () { return functionApiBinding_1.FunctionApiBindingModel; } });
|
|
14
|
+
var functionCapabilityBinding_1 = require("./functionCapabilityBinding");
|
|
15
|
+
Object.defineProperty(exports, "FunctionCapabilityBindingModel", { enumerable: true, get: function () { return functionCapabilityBinding_1.FunctionCapabilityBindingModel; } });
|
|
14
16
|
var functionDefinition_1 = require("./functionDefinition");
|
|
15
17
|
Object.defineProperty(exports, "FunctionDefinitionModel", { enumerable: true, get: function () { return functionDefinition_1.FunctionDefinitionModel; } });
|
|
16
18
|
var functionDeployment_1 = require("./functionDeployment");
|
|
@@ -59,6 +61,8 @@ var namespaceEvent_1 = require("./namespaceEvent");
|
|
|
59
61
|
Object.defineProperty(exports, "NamespaceEventModel", { enumerable: true, get: function () { return namespaceEvent_1.NamespaceEventModel; } });
|
|
60
62
|
var platformFunctionApiBinding_1 = require("./platformFunctionApiBinding");
|
|
61
63
|
Object.defineProperty(exports, "PlatformFunctionApiBindingModel", { enumerable: true, get: function () { return platformFunctionApiBinding_1.PlatformFunctionApiBindingModel; } });
|
|
64
|
+
var platformFunctionCapabilityBinding_1 = require("./platformFunctionCapabilityBinding");
|
|
65
|
+
Object.defineProperty(exports, "PlatformFunctionCapabilityBindingModel", { enumerable: true, get: function () { return platformFunctionCapabilityBinding_1.PlatformFunctionCapabilityBindingModel; } });
|
|
62
66
|
var platformFunctionDefinition_1 = require("./platformFunctionDefinition");
|
|
63
67
|
Object.defineProperty(exports, "PlatformFunctionDefinitionModel", { enumerable: true, get: function () { return platformFunctionDefinition_1.PlatformFunctionDefinitionModel; } });
|
|
64
68
|
var platformFunctionDeployment_1 = require("./platformFunctionDeployment");
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PlatformFunctionCapabilityBinding model for ORM client
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { OrmClient } from '../client';
|
|
7
|
+
import { QueryBuilder } from '../query-builder';
|
|
8
|
+
import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
+
import type { PlatformFunctionCapabilityBindingWithRelations, PlatformFunctionCapabilityBindingSelect, PlatformFunctionCapabilityBindingFilter, PlatformFunctionCapabilityBindingOrderBy, CreatePlatformFunctionCapabilityBindingInput, PlatformFunctionCapabilityBindingPatch } from '../input-types';
|
|
10
|
+
export declare class PlatformFunctionCapabilityBindingModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends PlatformFunctionCapabilityBindingSelect>(args: FindManyArgs<S, PlatformFunctionCapabilityBindingFilter, PlatformFunctionCapabilityBindingOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, PlatformFunctionCapabilityBindingSelect>): QueryBuilder<{
|
|
16
|
+
platformFunctionCapabilityBindings: ConnectionResult<InferSelectResult<PlatformFunctionCapabilityBindingWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends PlatformFunctionCapabilityBindingSelect>(args: FindFirstArgs<S, PlatformFunctionCapabilityBindingFilter, PlatformFunctionCapabilityBindingOrderBy> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, PlatformFunctionCapabilityBindingSelect>): QueryBuilder<{
|
|
21
|
+
platformFunctionCapabilityBinding: InferSelectResult<PlatformFunctionCapabilityBindingWithRelations, S> | null;
|
|
22
|
+
}>;
|
|
23
|
+
findOne<S extends PlatformFunctionCapabilityBindingSelect>(args: {
|
|
24
|
+
id: string;
|
|
25
|
+
select: S;
|
|
26
|
+
} & StrictSelect<S, PlatformFunctionCapabilityBindingSelect>): QueryBuilder<{
|
|
27
|
+
platformFunctionCapabilityBinding: InferSelectResult<PlatformFunctionCapabilityBindingWithRelations, S> | null;
|
|
28
|
+
}>;
|
|
29
|
+
create<S extends PlatformFunctionCapabilityBindingSelect>(args: CreateArgs<S, CreatePlatformFunctionCapabilityBindingInput['platformFunctionCapabilityBinding']> & {
|
|
30
|
+
select: S;
|
|
31
|
+
} & StrictSelect<S, PlatformFunctionCapabilityBindingSelect>): QueryBuilder<{
|
|
32
|
+
createPlatformFunctionCapabilityBinding: {
|
|
33
|
+
platformFunctionCapabilityBinding: InferSelectResult<PlatformFunctionCapabilityBindingWithRelations, S>;
|
|
34
|
+
};
|
|
35
|
+
}>;
|
|
36
|
+
update<S extends PlatformFunctionCapabilityBindingSelect>(args: UpdateArgs<S, {
|
|
37
|
+
id: string;
|
|
38
|
+
}, PlatformFunctionCapabilityBindingPatch> & {
|
|
39
|
+
select: S;
|
|
40
|
+
} & StrictSelect<S, PlatformFunctionCapabilityBindingSelect>): QueryBuilder<{
|
|
41
|
+
updatePlatformFunctionCapabilityBinding: {
|
|
42
|
+
platformFunctionCapabilityBinding: InferSelectResult<PlatformFunctionCapabilityBindingWithRelations, S>;
|
|
43
|
+
};
|
|
44
|
+
}>;
|
|
45
|
+
delete<S extends PlatformFunctionCapabilityBindingSelect>(args: DeleteArgs<{
|
|
46
|
+
id: string;
|
|
47
|
+
}, S> & {
|
|
48
|
+
select: S;
|
|
49
|
+
} & StrictSelect<S, PlatformFunctionCapabilityBindingSelect>): QueryBuilder<{
|
|
50
|
+
deletePlatformFunctionCapabilityBinding: {
|
|
51
|
+
platformFunctionCapabilityBinding: InferSelectResult<PlatformFunctionCapabilityBindingWithRelations, S>;
|
|
52
|
+
};
|
|
53
|
+
}>;
|
|
54
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PlatformFunctionCapabilityBindingModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class PlatformFunctionCapabilityBindingModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('PlatformFunctionCapabilityBinding', 'platformFunctionCapabilityBindings', args.select, {
|
|
13
|
+
where: args?.where,
|
|
14
|
+
orderBy: args?.orderBy,
|
|
15
|
+
first: args?.first,
|
|
16
|
+
last: args?.last,
|
|
17
|
+
after: args?.after,
|
|
18
|
+
before: args?.before,
|
|
19
|
+
offset: args?.offset,
|
|
20
|
+
}, 'PlatformFunctionCapabilityBindingFilter', 'PlatformFunctionCapabilityBindingOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'PlatformFunctionCapabilityBinding',
|
|
25
|
+
fieldName: 'platformFunctionCapabilityBindings',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('PlatformFunctionCapabilityBinding', 'platformFunctionCapabilityBindings', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
orderBy: args?.orderBy,
|
|
34
|
+
}, 'PlatformFunctionCapabilityBindingFilter', 'PlatformFunctionCapabilityBindingOrderBy', input_types_1.connectionFieldsMap);
|
|
35
|
+
return new query_builder_1.QueryBuilder({
|
|
36
|
+
client: this.client,
|
|
37
|
+
operation: 'query',
|
|
38
|
+
operationName: 'PlatformFunctionCapabilityBinding',
|
|
39
|
+
fieldName: 'platformFunctionCapabilityBinding',
|
|
40
|
+
document,
|
|
41
|
+
variables,
|
|
42
|
+
transform: (data) => ({
|
|
43
|
+
platformFunctionCapabilityBinding: data.platformFunctionCapabilityBindings?.nodes?.[0] ?? null,
|
|
44
|
+
}),
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
findOne(args) {
|
|
48
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('PlatformFunctionCapabilityBinding', 'platformFunctionCapabilityBindings', args.select, {
|
|
49
|
+
where: {
|
|
50
|
+
id: {
|
|
51
|
+
equalTo: args.id,
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
first: 1,
|
|
55
|
+
}, 'PlatformFunctionCapabilityBindingFilter', 'PlatformFunctionCapabilityBindingOrderBy', input_types_1.connectionFieldsMap);
|
|
56
|
+
return new query_builder_1.QueryBuilder({
|
|
57
|
+
client: this.client,
|
|
58
|
+
operation: 'query',
|
|
59
|
+
operationName: 'PlatformFunctionCapabilityBinding',
|
|
60
|
+
fieldName: 'platformFunctionCapabilityBinding',
|
|
61
|
+
document,
|
|
62
|
+
variables,
|
|
63
|
+
transform: (data) => ({
|
|
64
|
+
platformFunctionCapabilityBinding: data.platformFunctionCapabilityBindings?.nodes?.[0] ?? null,
|
|
65
|
+
}),
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
create(args) {
|
|
69
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('PlatformFunctionCapabilityBinding', 'createPlatformFunctionCapabilityBinding', 'platformFunctionCapabilityBinding', args.select, args.data, 'CreatePlatformFunctionCapabilityBindingInput', input_types_1.connectionFieldsMap);
|
|
70
|
+
return new query_builder_1.QueryBuilder({
|
|
71
|
+
client: this.client,
|
|
72
|
+
operation: 'mutation',
|
|
73
|
+
operationName: 'PlatformFunctionCapabilityBinding',
|
|
74
|
+
fieldName: 'createPlatformFunctionCapabilityBinding',
|
|
75
|
+
document,
|
|
76
|
+
variables,
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
update(args) {
|
|
80
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('PlatformFunctionCapabilityBinding', 'updatePlatformFunctionCapabilityBinding', 'platformFunctionCapabilityBinding', args.select, args.where.id, args.data, 'UpdatePlatformFunctionCapabilityBindingInput', 'id', 'platformFunctionCapabilityBindingPatch', input_types_1.connectionFieldsMap, undefined);
|
|
81
|
+
return new query_builder_1.QueryBuilder({
|
|
82
|
+
client: this.client,
|
|
83
|
+
operation: 'mutation',
|
|
84
|
+
operationName: 'PlatformFunctionCapabilityBinding',
|
|
85
|
+
fieldName: 'updatePlatformFunctionCapabilityBinding',
|
|
86
|
+
document,
|
|
87
|
+
variables,
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
delete(args) {
|
|
91
|
+
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('PlatformFunctionCapabilityBinding', 'deletePlatformFunctionCapabilityBinding', 'platformFunctionCapabilityBinding', {
|
|
92
|
+
id: args.where.id,
|
|
93
|
+
}, 'DeletePlatformFunctionCapabilityBindingInput', args.select, input_types_1.connectionFieldsMap);
|
|
94
|
+
return new query_builder_1.QueryBuilder({
|
|
95
|
+
client: this.client,
|
|
96
|
+
operation: 'mutation',
|
|
97
|
+
operationName: 'PlatformFunctionCapabilityBinding',
|
|
98
|
+
fieldName: 'deletePlatformFunctionCapabilityBinding',
|
|
99
|
+
document,
|
|
100
|
+
variables,
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
exports.PlatformFunctionCapabilityBindingModel = PlatformFunctionCapabilityBindingModel;
|
package/config/orm/client.js
CHANGED
|
@@ -64,6 +64,16 @@ class FetchAdapter {
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
exports.FetchAdapter = FetchAdapter;
|
|
67
|
+
/**
|
|
68
|
+
* Describe a single GraphQL error, falling back to its `extensions.code` when
|
|
69
|
+
* the server omits `message` so the error never renders as an empty string.
|
|
70
|
+
*/
|
|
71
|
+
function describeGraphQLError(error) {
|
|
72
|
+
if (error.message)
|
|
73
|
+
return error.message;
|
|
74
|
+
const code = error.extensions?.code;
|
|
75
|
+
return typeof code === 'string' ? code : 'Unknown error';
|
|
76
|
+
}
|
|
67
77
|
/**
|
|
68
78
|
* Error thrown when GraphQL request fails
|
|
69
79
|
*/
|
|
@@ -71,7 +81,7 @@ class GraphQLRequestError extends Error {
|
|
|
71
81
|
errors;
|
|
72
82
|
data;
|
|
73
83
|
constructor(errors, data = null) {
|
|
74
|
-
const messages = errors.map(
|
|
84
|
+
const messages = errors.map(describeGraphQLError).join('; ');
|
|
75
85
|
super(`GraphQL Error: ${messages}`);
|
|
76
86
|
this.errors = errors;
|
|
77
87
|
this.data = data;
|