@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
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ViewBehaviorModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class ViewBehaviorModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('ViewBehavior', 'viewBehaviors', 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
|
+
}, 'ViewBehaviorFilter', 'ViewBehaviorOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'ViewBehavior',
|
|
25
|
+
fieldName: 'viewBehaviors',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('ViewBehavior', 'viewBehaviors', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
orderBy: args?.orderBy,
|
|
34
|
+
}, 'ViewBehaviorFilter', 'ViewBehaviorOrderBy', input_types_1.connectionFieldsMap);
|
|
35
|
+
return new query_builder_1.QueryBuilder({
|
|
36
|
+
client: this.client,
|
|
37
|
+
operation: 'query',
|
|
38
|
+
operationName: 'ViewBehavior',
|
|
39
|
+
fieldName: 'viewBehavior',
|
|
40
|
+
document,
|
|
41
|
+
variables,
|
|
42
|
+
transform: (data) => ({
|
|
43
|
+
viewBehavior: data.viewBehaviors?.nodes?.[0] ?? null,
|
|
44
|
+
}),
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
findOne(args) {
|
|
48
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('ViewBehavior', 'viewBehaviors', args.select, {
|
|
49
|
+
where: {
|
|
50
|
+
id: {
|
|
51
|
+
equalTo: args.id,
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
first: 1,
|
|
55
|
+
}, 'ViewBehaviorFilter', 'ViewBehaviorOrderBy', input_types_1.connectionFieldsMap);
|
|
56
|
+
return new query_builder_1.QueryBuilder({
|
|
57
|
+
client: this.client,
|
|
58
|
+
operation: 'query',
|
|
59
|
+
operationName: 'ViewBehavior',
|
|
60
|
+
fieldName: 'viewBehavior',
|
|
61
|
+
document,
|
|
62
|
+
variables,
|
|
63
|
+
transform: (data) => ({
|
|
64
|
+
viewBehavior: data.viewBehaviors?.nodes?.[0] ?? null,
|
|
65
|
+
}),
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
create(args) {
|
|
69
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('ViewBehavior', 'createViewBehavior', 'viewBehavior', args.select, args.data, 'CreateViewBehaviorInput', input_types_1.connectionFieldsMap);
|
|
70
|
+
return new query_builder_1.QueryBuilder({
|
|
71
|
+
client: this.client,
|
|
72
|
+
operation: 'mutation',
|
|
73
|
+
operationName: 'ViewBehavior',
|
|
74
|
+
fieldName: 'createViewBehavior',
|
|
75
|
+
document,
|
|
76
|
+
variables,
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
update(args) {
|
|
80
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('ViewBehavior', 'updateViewBehavior', 'viewBehavior', args.select, args.where.id, args.data, 'UpdateViewBehaviorInput', 'id', 'viewBehaviorPatch', input_types_1.connectionFieldsMap, undefined);
|
|
81
|
+
return new query_builder_1.QueryBuilder({
|
|
82
|
+
client: this.client,
|
|
83
|
+
operation: 'mutation',
|
|
84
|
+
operationName: 'ViewBehavior',
|
|
85
|
+
fieldName: 'updateViewBehavior',
|
|
86
|
+
document,
|
|
87
|
+
variables,
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
delete(args) {
|
|
91
|
+
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('ViewBehavior', 'deleteViewBehavior', 'viewBehavior', {
|
|
92
|
+
id: args.where.id,
|
|
93
|
+
}, 'DeleteViewBehaviorInput', args.select, input_types_1.connectionFieldsMap);
|
|
94
|
+
return new query_builder_1.QueryBuilder({
|
|
95
|
+
client: this.client,
|
|
96
|
+
operation: 'mutation',
|
|
97
|
+
operationName: 'ViewBehavior',
|
|
98
|
+
fieldName: 'deleteViewBehavior',
|
|
99
|
+
document,
|
|
100
|
+
variables,
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
exports.ViewBehaviorModel = ViewBehaviorModel;
|
|
@@ -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 { AcceptDatabaseTransferInput, ApplyRlsInput, CancelDatabaseTransferInput, ProvisionBucketInput, RejectDatabaseTransferInput, RequestDatabaseInput, SetFieldOrderInput, AcceptDatabaseTransferPayload, ApplyRlsPayload, CancelDatabaseTransferPayload, ProvisionBucketPayload, RejectDatabaseTransferPayload, RequestDatabasePayload, SetFieldOrderPayload, AcceptDatabaseTransferPayloadSelect, ApplyRlsPayloadSelect, CancelDatabaseTransferPayloadSelect, ProvisionBucketPayloadSelect, RejectDatabaseTransferPayloadSelect, RequestDatabasePayloadSelect, SetFieldOrderPayloadSelect } from '../input-types';
|
|
9
|
+
import type { AcceptDatabaseTransferInput, ApplyRlsInput, CancelDatabaseTransferInput, DomainsAssignSubdomainInput, PlatformDomainsAssignSubdomainInput, PlatformSitesProvisionStaticSiteInput, ProvisionBucketInput, RejectDatabaseTransferInput, RequestDatabaseInput, SetFieldOrderInput, SitesProvisionStaticSiteInput, AcceptDatabaseTransferPayload, ApplyRlsPayload, CancelDatabaseTransferPayload, DomainsAssignSubdomainPayload, PlatformDomainsAssignSubdomainPayload, PlatformSitesProvisionStaticSitePayload, ProvisionBucketPayload, RejectDatabaseTransferPayload, RequestDatabasePayload, SetFieldOrderPayload, SitesProvisionStaticSitePayload, AcceptDatabaseTransferPayloadSelect, ApplyRlsPayloadSelect, CancelDatabaseTransferPayloadSelect, DomainsAssignSubdomainPayloadSelect, PlatformDomainsAssignSubdomainPayloadSelect, PlatformSitesProvisionStaticSitePayloadSelect, ProvisionBucketPayloadSelect, RejectDatabaseTransferPayloadSelect, RequestDatabasePayloadSelect, SetFieldOrderPayloadSelect, SitesProvisionStaticSitePayloadSelect } from '../input-types';
|
|
10
10
|
export interface AcceptDatabaseTransferVariables {
|
|
11
11
|
input: AcceptDatabaseTransferInput;
|
|
12
12
|
}
|
|
@@ -16,6 +16,15 @@ export interface ApplyRlsVariables {
|
|
|
16
16
|
export interface CancelDatabaseTransferVariables {
|
|
17
17
|
input: CancelDatabaseTransferInput;
|
|
18
18
|
}
|
|
19
|
+
export interface DomainsAssignSubdomainVariables {
|
|
20
|
+
input: DomainsAssignSubdomainInput;
|
|
21
|
+
}
|
|
22
|
+
export interface PlatformDomainsAssignSubdomainVariables {
|
|
23
|
+
input: PlatformDomainsAssignSubdomainInput;
|
|
24
|
+
}
|
|
25
|
+
export interface PlatformSitesProvisionStaticSiteVariables {
|
|
26
|
+
input: PlatformSitesProvisionStaticSiteInput;
|
|
27
|
+
}
|
|
19
28
|
/**
|
|
20
29
|
* Variables for provisionBucket
|
|
21
30
|
* Provision an S3 bucket for a logical bucket in the database.
|
|
@@ -45,6 +54,9 @@ export interface RequestDatabaseVariables {
|
|
|
45
54
|
export interface SetFieldOrderVariables {
|
|
46
55
|
input: SetFieldOrderInput;
|
|
47
56
|
}
|
|
57
|
+
export interface SitesProvisionStaticSiteVariables {
|
|
58
|
+
input: SitesProvisionStaticSiteInput;
|
|
59
|
+
}
|
|
48
60
|
export declare function createMutationOperations(client: OrmClient): {
|
|
49
61
|
acceptDatabaseTransfer: <S extends AcceptDatabaseTransferPayloadSelect>(args: AcceptDatabaseTransferVariables, options: {
|
|
50
62
|
select: S;
|
|
@@ -61,6 +73,21 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
61
73
|
} & StrictSelect<S, CancelDatabaseTransferPayloadSelect>) => QueryBuilder<{
|
|
62
74
|
cancelDatabaseTransfer: InferSelectResult<CancelDatabaseTransferPayload, S> | null;
|
|
63
75
|
}>;
|
|
76
|
+
domainsAssignSubdomain: <S extends DomainsAssignSubdomainPayloadSelect>(args: DomainsAssignSubdomainVariables, options: {
|
|
77
|
+
select: S;
|
|
78
|
+
} & StrictSelect<S, DomainsAssignSubdomainPayloadSelect>) => QueryBuilder<{
|
|
79
|
+
domainsAssignSubdomain: InferSelectResult<DomainsAssignSubdomainPayload, S> | null;
|
|
80
|
+
}>;
|
|
81
|
+
platformDomainsAssignSubdomain: <S extends PlatformDomainsAssignSubdomainPayloadSelect>(args: PlatformDomainsAssignSubdomainVariables, options: {
|
|
82
|
+
select: S;
|
|
83
|
+
} & StrictSelect<S, PlatformDomainsAssignSubdomainPayloadSelect>) => QueryBuilder<{
|
|
84
|
+
platformDomainsAssignSubdomain: InferSelectResult<PlatformDomainsAssignSubdomainPayload, S> | null;
|
|
85
|
+
}>;
|
|
86
|
+
platformSitesProvisionStaticSite: <S extends PlatformSitesProvisionStaticSitePayloadSelect>(args: PlatformSitesProvisionStaticSiteVariables, options: {
|
|
87
|
+
select: S;
|
|
88
|
+
} & StrictSelect<S, PlatformSitesProvisionStaticSitePayloadSelect>) => QueryBuilder<{
|
|
89
|
+
platformSitesProvisionStaticSite: InferSelectResult<PlatformSitesProvisionStaticSitePayload, S> | null;
|
|
90
|
+
}>;
|
|
64
91
|
provisionBucket: <S extends ProvisionBucketPayloadSelect>(args: ProvisionBucketVariables, options: {
|
|
65
92
|
select: S;
|
|
66
93
|
} & StrictSelect<S, ProvisionBucketPayloadSelect>) => QueryBuilder<{
|
|
@@ -81,4 +108,9 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
81
108
|
} & StrictSelect<S, SetFieldOrderPayloadSelect>) => QueryBuilder<{
|
|
82
109
|
setFieldOrder: InferSelectResult<SetFieldOrderPayload, S> | null;
|
|
83
110
|
}>;
|
|
111
|
+
sitesProvisionStaticSite: <S extends SitesProvisionStaticSitePayloadSelect>(args: SitesProvisionStaticSiteVariables, options: {
|
|
112
|
+
select: S;
|
|
113
|
+
} & StrictSelect<S, SitesProvisionStaticSitePayloadSelect>) => QueryBuilder<{
|
|
114
|
+
sitesProvisionStaticSite: InferSelectResult<SitesProvisionStaticSitePayload, S> | null;
|
|
115
|
+
}>;
|
|
84
116
|
};
|
|
@@ -41,6 +41,42 @@ function createMutationOperations(client) {
|
|
|
41
41
|
},
|
|
42
42
|
], input_types_1.connectionFieldsMap, 'CancelDatabaseTransferPayload'),
|
|
43
43
|
}),
|
|
44
|
+
domainsAssignSubdomain: (args, options) => new query_builder_1.QueryBuilder({
|
|
45
|
+
client,
|
|
46
|
+
operation: 'mutation',
|
|
47
|
+
operationName: 'DomainsAssignSubdomain',
|
|
48
|
+
fieldName: 'domainsAssignSubdomain',
|
|
49
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'DomainsAssignSubdomain', 'domainsAssignSubdomain', options.select, args, [
|
|
50
|
+
{
|
|
51
|
+
name: 'input',
|
|
52
|
+
type: 'DomainsAssignSubdomainInput!',
|
|
53
|
+
},
|
|
54
|
+
], input_types_1.connectionFieldsMap, 'DomainsAssignSubdomainPayload'),
|
|
55
|
+
}),
|
|
56
|
+
platformDomainsAssignSubdomain: (args, options) => new query_builder_1.QueryBuilder({
|
|
57
|
+
client,
|
|
58
|
+
operation: 'mutation',
|
|
59
|
+
operationName: 'PlatformDomainsAssignSubdomain',
|
|
60
|
+
fieldName: 'platformDomainsAssignSubdomain',
|
|
61
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'PlatformDomainsAssignSubdomain', 'platformDomainsAssignSubdomain', options.select, args, [
|
|
62
|
+
{
|
|
63
|
+
name: 'input',
|
|
64
|
+
type: 'PlatformDomainsAssignSubdomainInput!',
|
|
65
|
+
},
|
|
66
|
+
], input_types_1.connectionFieldsMap, 'PlatformDomainsAssignSubdomainPayload'),
|
|
67
|
+
}),
|
|
68
|
+
platformSitesProvisionStaticSite: (args, options) => new query_builder_1.QueryBuilder({
|
|
69
|
+
client,
|
|
70
|
+
operation: 'mutation',
|
|
71
|
+
operationName: 'PlatformSitesProvisionStaticSite',
|
|
72
|
+
fieldName: 'platformSitesProvisionStaticSite',
|
|
73
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'PlatformSitesProvisionStaticSite', 'platformSitesProvisionStaticSite', options.select, args, [
|
|
74
|
+
{
|
|
75
|
+
name: 'input',
|
|
76
|
+
type: 'PlatformSitesProvisionStaticSiteInput!',
|
|
77
|
+
},
|
|
78
|
+
], input_types_1.connectionFieldsMap, 'PlatformSitesProvisionStaticSitePayload'),
|
|
79
|
+
}),
|
|
44
80
|
provisionBucket: (args, options) => new query_builder_1.QueryBuilder({
|
|
45
81
|
client,
|
|
46
82
|
operation: 'mutation',
|
|
@@ -89,5 +125,17 @@ function createMutationOperations(client) {
|
|
|
89
125
|
},
|
|
90
126
|
], input_types_1.connectionFieldsMap, 'SetFieldOrderPayload'),
|
|
91
127
|
}),
|
|
128
|
+
sitesProvisionStaticSite: (args, options) => new query_builder_1.QueryBuilder({
|
|
129
|
+
client,
|
|
130
|
+
operation: 'mutation',
|
|
131
|
+
operationName: 'SitesProvisionStaticSite',
|
|
132
|
+
fieldName: 'sitesProvisionStaticSite',
|
|
133
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'SitesProvisionStaticSite', 'sitesProvisionStaticSite', options.select, args, [
|
|
134
|
+
{
|
|
135
|
+
name: 'input',
|
|
136
|
+
type: 'SitesProvisionStaticSiteInput!',
|
|
137
|
+
},
|
|
138
|
+
], input_types_1.connectionFieldsMap, 'SitesProvisionStaticSitePayload'),
|
|
139
|
+
}),
|
|
92
140
|
};
|
|
93
141
|
}
|
package/api/orm/query/index.d.ts
CHANGED
|
@@ -14,6 +14,10 @@ export interface ApplyRegistryDefaultsVariables {
|
|
|
14
14
|
data?: unknown;
|
|
15
15
|
nodeType?: string;
|
|
16
16
|
}
|
|
17
|
+
export interface ResolveDeepLinkVariables {
|
|
18
|
+
linkSlug?: string;
|
|
19
|
+
targetSiteId?: string;
|
|
20
|
+
}
|
|
17
21
|
export interface ResolveHttpRouteVariables {
|
|
18
22
|
requestHost?: string;
|
|
19
23
|
requestMethod?: string;
|
|
@@ -24,6 +28,9 @@ export interface ResolveRouteVariables {
|
|
|
24
28
|
requestMethod?: string;
|
|
25
29
|
requestPath?: string;
|
|
26
30
|
}
|
|
31
|
+
export interface ResolveSiteAppLinksVariables {
|
|
32
|
+
targetSiteId?: string;
|
|
33
|
+
}
|
|
27
34
|
export declare function createQueryOperations(client: OrmClient): {
|
|
28
35
|
apiSchemaNames: (args: ApiSchemaNamesVariables, options?: {
|
|
29
36
|
select?: Record<string, unknown>;
|
|
@@ -35,6 +42,11 @@ export declare function createQueryOperations(client: OrmClient): {
|
|
|
35
42
|
}) => QueryBuilder<{
|
|
36
43
|
applyRegistryDefaults: unknown | null;
|
|
37
44
|
}>;
|
|
45
|
+
resolveDeepLink: (args: ResolveDeepLinkVariables, options?: {
|
|
46
|
+
select?: Record<string, unknown>;
|
|
47
|
+
}) => QueryBuilder<{
|
|
48
|
+
resolveDeepLink: unknown | null;
|
|
49
|
+
}>;
|
|
38
50
|
resolveHttpRoute: <S extends ResolveHttpRouteRecordSelect>(args: ResolveHttpRouteVariables, options: {
|
|
39
51
|
select: S;
|
|
40
52
|
} & StrictSelect<S, ResolveHttpRouteRecordSelect>) => QueryBuilder<{
|
|
@@ -45,4 +57,9 @@ export declare function createQueryOperations(client: OrmClient): {
|
|
|
45
57
|
} & StrictSelect<S, ResolveRouteRecordSelect>) => QueryBuilder<{
|
|
46
58
|
resolveRoute: InferSelectResult<ResolveRouteRecord, S> | null;
|
|
47
59
|
}>;
|
|
60
|
+
resolveSiteAppLinks: (args: ResolveSiteAppLinksVariables, options?: {
|
|
61
|
+
select?: Record<string, unknown>;
|
|
62
|
+
}) => QueryBuilder<{
|
|
63
|
+
resolveSiteAppLinks: unknown | null;
|
|
64
|
+
}>;
|
|
48
65
|
};
|
package/api/orm/query/index.js
CHANGED
|
@@ -33,6 +33,22 @@ function createQueryOperations(client) {
|
|
|
33
33
|
},
|
|
34
34
|
], input_types_1.connectionFieldsMap, undefined),
|
|
35
35
|
}),
|
|
36
|
+
resolveDeepLink: (args, options) => new query_builder_1.QueryBuilder({
|
|
37
|
+
client,
|
|
38
|
+
operation: 'query',
|
|
39
|
+
operationName: 'ResolveDeepLink',
|
|
40
|
+
fieldName: 'resolveDeepLink',
|
|
41
|
+
...(0, query_builder_1.buildCustomDocument)('query', 'ResolveDeepLink', 'resolveDeepLink', options?.select, args, [
|
|
42
|
+
{
|
|
43
|
+
name: 'linkSlug',
|
|
44
|
+
type: 'String',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'targetSiteId',
|
|
48
|
+
type: 'UUID',
|
|
49
|
+
},
|
|
50
|
+
], input_types_1.connectionFieldsMap, undefined),
|
|
51
|
+
}),
|
|
36
52
|
resolveHttpRoute: (args, options) => new query_builder_1.QueryBuilder({
|
|
37
53
|
client,
|
|
38
54
|
operation: 'query',
|
|
@@ -73,5 +89,17 @@ function createQueryOperations(client) {
|
|
|
73
89
|
},
|
|
74
90
|
], input_types_1.connectionFieldsMap, 'ResolveRouteRecord'),
|
|
75
91
|
}),
|
|
92
|
+
resolveSiteAppLinks: (args, options) => new query_builder_1.QueryBuilder({
|
|
93
|
+
client,
|
|
94
|
+
operation: 'query',
|
|
95
|
+
operationName: 'ResolveSiteAppLinks',
|
|
96
|
+
fieldName: 'resolveSiteAppLinks',
|
|
97
|
+
...(0, query_builder_1.buildCustomDocument)('query', 'ResolveSiteAppLinks', 'resolveSiteAppLinks', options?.select, args, [
|
|
98
|
+
{
|
|
99
|
+
name: 'targetSiteId',
|
|
100
|
+
type: 'UUID',
|
|
101
|
+
},
|
|
102
|
+
], input_types_1.connectionFieldsMap, undefined),
|
|
103
|
+
}),
|
|
76
104
|
};
|
|
77
105
|
}
|
package/auth/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;
|