@constructive-io/sdk 1.11.1 → 1.11.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.
- 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 +5 -5
- 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
package/admin/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;
|
package/agent/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;
|
|
@@ -1350,7 +1350,6 @@ export interface CreateAgentResourceInput {
|
|
|
1350
1350
|
description?: string;
|
|
1351
1351
|
embedding?: number[];
|
|
1352
1352
|
embeddingText?: string;
|
|
1353
|
-
embeddingUpdatedAt?: string;
|
|
1354
1353
|
isActive?: boolean;
|
|
1355
1354
|
isArchived?: boolean;
|
|
1356
1355
|
keywords?: string[];
|
|
@@ -1369,7 +1368,6 @@ export interface AgentResourcePatch {
|
|
|
1369
1368
|
description?: string | null;
|
|
1370
1369
|
embedding?: number[] | null;
|
|
1371
1370
|
embeddingText?: string | null;
|
|
1372
|
-
embeddingUpdatedAt?: string | null;
|
|
1373
1371
|
isActive?: boolean | null;
|
|
1374
1372
|
isArchived?: boolean | null;
|
|
1375
1373
|
keywords?: string[] | null;
|
|
@@ -1807,7 +1805,6 @@ export interface AgentResourceInput {
|
|
|
1807
1805
|
embedding?: number[];
|
|
1808
1806
|
/** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */
|
|
1809
1807
|
embeddingText?: string;
|
|
1810
|
-
embeddingUpdatedAt?: string;
|
|
1811
1808
|
id?: string;
|
|
1812
1809
|
/** Whether this resource is active and retrievable */
|
|
1813
1810
|
isActive?: boolean;
|
package/api/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;
|
package/api/orm/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { OrmClientConfig } from './client';
|
|
2
|
-
import { ApiModel } from './models/api';
|
|
3
2
|
import { ApiSchemaModel } from './models/apiSchema';
|
|
4
3
|
import { ApiSettingModel } from './models/apiSetting';
|
|
4
|
+
import { ApisModel } from './models/apis';
|
|
5
5
|
import { AstMigrationModel } from './models/astMigration';
|
|
6
6
|
import { CheckConstraintModel } from './models/checkConstraint';
|
|
7
7
|
import { CompositeTypeModel } from './models/compositeType';
|
|
@@ -10,6 +10,7 @@ import { DatabaseModel } from './models/database';
|
|
|
10
10
|
import { DatabaseSettingModel } from './models/databaseSetting';
|
|
11
11
|
import { DatabaseTransferModel } from './models/databaseTransfer';
|
|
12
12
|
import { DefaultPrivilegeModel } from './models/defaultPrivilege';
|
|
13
|
+
import { DeriveModel } from './models/derive';
|
|
13
14
|
import { DomainModel } from './models/domain';
|
|
14
15
|
import { DomainEventModel } from './models/domainEvent';
|
|
15
16
|
import { DomainTypeModel } from './models/domainType';
|
|
@@ -17,7 +18,9 @@ import { DomainVerificationModel } from './models/domainVerification';
|
|
|
17
18
|
import { EmbeddingChunkModel } from './models/embeddingChunk';
|
|
18
19
|
import { EnumModel } from './models/enum';
|
|
19
20
|
import { ExclusionConstraintModel } from './models/exclusionConstraint';
|
|
21
|
+
import { FieldBehaviorModel } from './models/fieldBehavior';
|
|
20
22
|
import { FieldModel } from './models/field';
|
|
23
|
+
import { ForeignKeyConstraintBehaviorModel } from './models/foreignKeyConstraintBehavior';
|
|
21
24
|
import { ForeignKeyConstraintModel } from './models/foreignKeyConstraint';
|
|
22
25
|
import { FullTextSearchModel } from './models/fullTextSearch';
|
|
23
26
|
import { FunctionModel } from './models/function';
|
|
@@ -26,19 +29,25 @@ import { HttpRouteModel } from './models/httpRoute';
|
|
|
26
29
|
import { IndexModel } from './models/index';
|
|
27
30
|
import { ManagedDomainModel } from './models/managedDomain';
|
|
28
31
|
import { NodeTypeRegistryModel } from './models/nodeTypeRegistry';
|
|
32
|
+
import { PageModel } from './models/page';
|
|
29
33
|
import { PartitionModel } from './models/partition';
|
|
30
|
-
import { PlatformApiModel } from './models/platformApi';
|
|
31
34
|
import { PlatformApiSchemaModel } from './models/platformApiSchema';
|
|
32
35
|
import { PlatformApiSettingModel } from './models/platformApiSetting';
|
|
36
|
+
import { PlatformApisModel } from './models/platformApis';
|
|
33
37
|
import { PlatformCorsSettingModel } from './models/platformCorsSetting';
|
|
34
38
|
import { PlatformDomainModel } from './models/platformDomain';
|
|
35
39
|
import { PlatformDomainEventModel } from './models/platformDomainEvent';
|
|
36
40
|
import { PlatformDomainVerificationModel } from './models/platformDomainVerification';
|
|
37
41
|
import { PlatformManagedDomainModel } from './models/platformManagedDomain';
|
|
42
|
+
import { PlatformPageModel } from './models/platformPage';
|
|
43
|
+
import { PlatformSiteAppLinkModel } from './models/platformSiteAppLink';
|
|
38
44
|
import { PlatformSiteModel } from './models/platformSite';
|
|
45
|
+
import { PlatformSiteDeepLinkModel } from './models/platformSiteDeepLink';
|
|
46
|
+
import { PlatformSiteErrorPageModel } from './models/platformSiteErrorPage';
|
|
39
47
|
import { PlatformSiteMetadatumModel } from './models/platformSiteMetadatum';
|
|
40
48
|
import { PlatformSiteModuleModel } from './models/platformSiteModule';
|
|
41
49
|
import { PlatformSiteThemeModel } from './models/platformSiteTheme';
|
|
50
|
+
import { PlatformSiteWebConfigModel } from './models/platformSiteWebConfig';
|
|
42
51
|
import { PolicyModel } from './models/policy';
|
|
43
52
|
import { PrimaryKeyConstraintModel } from './models/primaryKeyConstraint';
|
|
44
53
|
import { PubkeySettingModel } from './models/pubkeySetting';
|
|
@@ -47,17 +56,24 @@ import { RouteBindingModel } from './models/routeBinding';
|
|
|
47
56
|
import { RouteModel } from './models/route';
|
|
48
57
|
import { SchemaModel } from './models/schema';
|
|
49
58
|
import { SchemaGrantModel } from './models/schemaGrant';
|
|
59
|
+
import { SiteAppLinkModel } from './models/siteAppLink';
|
|
50
60
|
import { SiteModel } from './models/site';
|
|
61
|
+
import { SiteDeepLinkModel } from './models/siteDeepLink';
|
|
62
|
+
import { SiteErrorPageModel } from './models/siteErrorPage';
|
|
51
63
|
import { SiteMetadatumModel } from './models/siteMetadatum';
|
|
52
64
|
import { SiteModuleModel } from './models/siteModule';
|
|
53
65
|
import { SiteThemeModel } from './models/siteTheme';
|
|
66
|
+
import { SiteWebConfigModel } from './models/siteWebConfig';
|
|
54
67
|
import { SpatialRelationModel } from './models/spatialRelation';
|
|
55
68
|
import { SqlActionModel } from './models/sqlAction';
|
|
69
|
+
import { TableBehaviorModel } from './models/tableBehavior';
|
|
56
70
|
import { TableModel } from './models/table';
|
|
57
71
|
import { TableGrantModel } from './models/tableGrant';
|
|
58
72
|
import { TriggerModel } from './models/trigger';
|
|
59
73
|
import { TriggerFunctionModel } from './models/triggerFunction';
|
|
74
|
+
import { UniqueConstraintBehaviorModel } from './models/uniqueConstraintBehavior';
|
|
60
75
|
import { UniqueConstraintModel } from './models/uniqueConstraint';
|
|
76
|
+
import { ViewBehaviorModel } from './models/viewBehavior';
|
|
61
77
|
import { ViewModel } from './models/view';
|
|
62
78
|
import { ViewGrantModel } from './models/viewGrant';
|
|
63
79
|
import { ViewRuleModel } from './models/viewRule';
|
|
@@ -94,9 +110,9 @@ export { createMutationOperations } from './mutation';
|
|
|
94
110
|
* ```
|
|
95
111
|
*/
|
|
96
112
|
export declare function createClient(config: OrmClientConfig): {
|
|
97
|
-
api: ApiModel;
|
|
98
113
|
apiSchema: ApiSchemaModel;
|
|
99
114
|
apiSetting: ApiSettingModel;
|
|
115
|
+
apis: ApisModel;
|
|
100
116
|
astMigration: AstMigrationModel;
|
|
101
117
|
checkConstraint: CheckConstraintModel;
|
|
102
118
|
compositeType: CompositeTypeModel;
|
|
@@ -105,6 +121,7 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
105
121
|
databaseSetting: DatabaseSettingModel;
|
|
106
122
|
databaseTransfer: DatabaseTransferModel;
|
|
107
123
|
defaultPrivilege: DefaultPrivilegeModel;
|
|
124
|
+
derive: DeriveModel;
|
|
108
125
|
domain: DomainModel;
|
|
109
126
|
domainEvent: DomainEventModel;
|
|
110
127
|
domainType: DomainTypeModel;
|
|
@@ -112,7 +129,9 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
112
129
|
embeddingChunk: EmbeddingChunkModel;
|
|
113
130
|
enum: EnumModel;
|
|
114
131
|
exclusionConstraint: ExclusionConstraintModel;
|
|
132
|
+
fieldBehavior: FieldBehaviorModel;
|
|
115
133
|
field: FieldModel;
|
|
134
|
+
foreignKeyConstraintBehavior: ForeignKeyConstraintBehaviorModel;
|
|
116
135
|
foreignKeyConstraint: ForeignKeyConstraintModel;
|
|
117
136
|
fullTextSearch: FullTextSearchModel;
|
|
118
137
|
function: FunctionModel;
|
|
@@ -121,19 +140,25 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
121
140
|
index: IndexModel;
|
|
122
141
|
managedDomain: ManagedDomainModel;
|
|
123
142
|
nodeTypeRegistry: NodeTypeRegistryModel;
|
|
143
|
+
page: PageModel;
|
|
124
144
|
partition: PartitionModel;
|
|
125
|
-
platformApi: PlatformApiModel;
|
|
126
145
|
platformApiSchema: PlatformApiSchemaModel;
|
|
127
146
|
platformApiSetting: PlatformApiSettingModel;
|
|
147
|
+
platformApis: PlatformApisModel;
|
|
128
148
|
platformCorsSetting: PlatformCorsSettingModel;
|
|
129
149
|
platformDomain: PlatformDomainModel;
|
|
130
150
|
platformDomainEvent: PlatformDomainEventModel;
|
|
131
151
|
platformDomainVerification: PlatformDomainVerificationModel;
|
|
132
152
|
platformManagedDomain: PlatformManagedDomainModel;
|
|
153
|
+
platformPage: PlatformPageModel;
|
|
154
|
+
platformSiteAppLink: PlatformSiteAppLinkModel;
|
|
133
155
|
platformSite: PlatformSiteModel;
|
|
156
|
+
platformSiteDeepLink: PlatformSiteDeepLinkModel;
|
|
157
|
+
platformSiteErrorPage: PlatformSiteErrorPageModel;
|
|
134
158
|
platformSiteMetadatum: PlatformSiteMetadatumModel;
|
|
135
159
|
platformSiteModule: PlatformSiteModuleModel;
|
|
136
160
|
platformSiteTheme: PlatformSiteThemeModel;
|
|
161
|
+
platformSiteWebConfig: PlatformSiteWebConfigModel;
|
|
137
162
|
policy: PolicyModel;
|
|
138
163
|
primaryKeyConstraint: PrimaryKeyConstraintModel;
|
|
139
164
|
pubkeySetting: PubkeySettingModel;
|
|
@@ -142,17 +167,24 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
142
167
|
route: RouteModel;
|
|
143
168
|
schema: SchemaModel;
|
|
144
169
|
schemaGrant: SchemaGrantModel;
|
|
170
|
+
siteAppLink: SiteAppLinkModel;
|
|
145
171
|
site: SiteModel;
|
|
172
|
+
siteDeepLink: SiteDeepLinkModel;
|
|
173
|
+
siteErrorPage: SiteErrorPageModel;
|
|
146
174
|
siteMetadatum: SiteMetadatumModel;
|
|
147
175
|
siteModule: SiteModuleModel;
|
|
148
176
|
siteTheme: SiteThemeModel;
|
|
177
|
+
siteWebConfig: SiteWebConfigModel;
|
|
149
178
|
spatialRelation: SpatialRelationModel;
|
|
150
179
|
sqlAction: SqlActionModel;
|
|
180
|
+
tableBehavior: TableBehaviorModel;
|
|
151
181
|
table: TableModel;
|
|
152
182
|
tableGrant: TableGrantModel;
|
|
153
183
|
trigger: TriggerModel;
|
|
154
184
|
triggerFunction: TriggerFunctionModel;
|
|
185
|
+
uniqueConstraintBehavior: UniqueConstraintBehaviorModel;
|
|
155
186
|
uniqueConstraint: UniqueConstraintModel;
|
|
187
|
+
viewBehavior: ViewBehaviorModel;
|
|
156
188
|
view: ViewModel;
|
|
157
189
|
viewGrant: ViewGrantModel;
|
|
158
190
|
viewRule: ViewRuleModel;
|
|
@@ -169,6 +201,11 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
169
201
|
}) => import("./query-builder").QueryBuilder<{
|
|
170
202
|
applyRegistryDefaults: unknown | null;
|
|
171
203
|
}>;
|
|
204
|
+
resolveDeepLink: (args: import("./query").ResolveDeepLinkVariables, options?: {
|
|
205
|
+
select?: Record<string, unknown>;
|
|
206
|
+
}) => import("./query-builder").QueryBuilder<{
|
|
207
|
+
resolveDeepLink: unknown | null;
|
|
208
|
+
}>;
|
|
172
209
|
resolveHttpRoute: <S extends import("./input-types").ResolveHttpRouteRecordSelect>(args: import("./query").ResolveHttpRouteVariables, options: {
|
|
173
210
|
select: S;
|
|
174
211
|
} & import("./select-types").StrictSelect<S, import("./input-types").ResolveHttpRouteRecordSelect>) => import("./query-builder").QueryBuilder<{
|
|
@@ -179,6 +216,11 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
179
216
|
} & import("./select-types").StrictSelect<S, import("./input-types").ResolveRouteRecordSelect>) => import("./query-builder").QueryBuilder<{
|
|
180
217
|
resolveRoute: import("./select-types").InferSelectResult<import("./input-types").ResolveRouteRecord, S> | null;
|
|
181
218
|
}>;
|
|
219
|
+
resolveSiteAppLinks: (args: import("./query").ResolveSiteAppLinksVariables, options?: {
|
|
220
|
+
select?: Record<string, unknown>;
|
|
221
|
+
}) => import("./query-builder").QueryBuilder<{
|
|
222
|
+
resolveSiteAppLinks: unknown | null;
|
|
223
|
+
}>;
|
|
182
224
|
};
|
|
183
225
|
mutation: {
|
|
184
226
|
acceptDatabaseTransfer: <S extends import("./input-types").AcceptDatabaseTransferPayloadSelect>(args: import("./mutation").AcceptDatabaseTransferVariables, options: {
|
|
@@ -196,6 +238,21 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
196
238
|
} & import("./select-types").StrictSelect<S, import("./input-types").CancelDatabaseTransferPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
197
239
|
cancelDatabaseTransfer: import("./select-types").InferSelectResult<import("./input-types").CancelDatabaseTransferPayload, S> | null;
|
|
198
240
|
}>;
|
|
241
|
+
domainsAssignSubdomain: <S extends import("./input-types").DomainsAssignSubdomainPayloadSelect>(args: import("./mutation").DomainsAssignSubdomainVariables, options: {
|
|
242
|
+
select: S;
|
|
243
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").DomainsAssignSubdomainPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
244
|
+
domainsAssignSubdomain: import("./select-types").InferSelectResult<import("./input-types").DomainsAssignSubdomainPayload, S> | null;
|
|
245
|
+
}>;
|
|
246
|
+
platformDomainsAssignSubdomain: <S extends import("./input-types").PlatformDomainsAssignSubdomainPayloadSelect>(args: import("./mutation").PlatformDomainsAssignSubdomainVariables, options: {
|
|
247
|
+
select: S;
|
|
248
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").PlatformDomainsAssignSubdomainPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
249
|
+
platformDomainsAssignSubdomain: import("./select-types").InferSelectResult<import("./input-types").PlatformDomainsAssignSubdomainPayload, S> | null;
|
|
250
|
+
}>;
|
|
251
|
+
platformSitesProvisionStaticSite: <S extends import("./input-types").PlatformSitesProvisionStaticSitePayloadSelect>(args: import("./mutation").PlatformSitesProvisionStaticSiteVariables, options: {
|
|
252
|
+
select: S;
|
|
253
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").PlatformSitesProvisionStaticSitePayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
254
|
+
platformSitesProvisionStaticSite: import("./select-types").InferSelectResult<import("./input-types").PlatformSitesProvisionStaticSitePayload, S> | null;
|
|
255
|
+
}>;
|
|
199
256
|
provisionBucket: <S extends import("./input-types").ProvisionBucketPayloadSelect>(args: import("./mutation").ProvisionBucketVariables, options: {
|
|
200
257
|
select: S;
|
|
201
258
|
} & import("./select-types").StrictSelect<S, import("./input-types").ProvisionBucketPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
@@ -216,5 +273,10 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
216
273
|
} & import("./select-types").StrictSelect<S, import("./input-types").SetFieldOrderPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
217
274
|
setFieldOrder: import("./select-types").InferSelectResult<import("./input-types").SetFieldOrderPayload, S> | null;
|
|
218
275
|
}>;
|
|
276
|
+
sitesProvisionStaticSite: <S extends import("./input-types").SitesProvisionStaticSitePayloadSelect>(args: import("./mutation").SitesProvisionStaticSiteVariables, options: {
|
|
277
|
+
select: S;
|
|
278
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").SitesProvisionStaticSitePayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
279
|
+
sitesProvisionStaticSite: import("./select-types").InferSelectResult<import("./input-types").SitesProvisionStaticSitePayload, S> | null;
|
|
280
|
+
}>;
|
|
219
281
|
};
|
|
220
282
|
};
|
package/api/orm/index.js
CHANGED
|
@@ -22,9 +22,9 @@ exports.createClient = createClient;
|
|
|
22
22
|
* DO NOT EDIT - changes will be overwritten
|
|
23
23
|
*/
|
|
24
24
|
const client_1 = require("./client");
|
|
25
|
-
const api_1 = require("./models/api");
|
|
26
25
|
const apiSchema_1 = require("./models/apiSchema");
|
|
27
26
|
const apiSetting_1 = require("./models/apiSetting");
|
|
27
|
+
const apis_1 = require("./models/apis");
|
|
28
28
|
const astMigration_1 = require("./models/astMigration");
|
|
29
29
|
const checkConstraint_1 = require("./models/checkConstraint");
|
|
30
30
|
const compositeType_1 = require("./models/compositeType");
|
|
@@ -33,6 +33,7 @@ const database_1 = require("./models/database");
|
|
|
33
33
|
const databaseSetting_1 = require("./models/databaseSetting");
|
|
34
34
|
const databaseTransfer_1 = require("./models/databaseTransfer");
|
|
35
35
|
const defaultPrivilege_1 = require("./models/defaultPrivilege");
|
|
36
|
+
const derive_1 = require("./models/derive");
|
|
36
37
|
const domain_1 = require("./models/domain");
|
|
37
38
|
const domainEvent_1 = require("./models/domainEvent");
|
|
38
39
|
const domainType_1 = require("./models/domainType");
|
|
@@ -40,7 +41,9 @@ const domainVerification_1 = require("./models/domainVerification");
|
|
|
40
41
|
const embeddingChunk_1 = require("./models/embeddingChunk");
|
|
41
42
|
const enum_1 = require("./models/enum");
|
|
42
43
|
const exclusionConstraint_1 = require("./models/exclusionConstraint");
|
|
44
|
+
const fieldBehavior_1 = require("./models/fieldBehavior");
|
|
43
45
|
const field_1 = require("./models/field");
|
|
46
|
+
const foreignKeyConstraintBehavior_1 = require("./models/foreignKeyConstraintBehavior");
|
|
44
47
|
const foreignKeyConstraint_1 = require("./models/foreignKeyConstraint");
|
|
45
48
|
const fullTextSearch_1 = require("./models/fullTextSearch");
|
|
46
49
|
const function_1 = require("./models/function");
|
|
@@ -49,19 +52,25 @@ const httpRoute_1 = require("./models/httpRoute");
|
|
|
49
52
|
const index_1 = require("./models/index");
|
|
50
53
|
const managedDomain_1 = require("./models/managedDomain");
|
|
51
54
|
const nodeTypeRegistry_1 = require("./models/nodeTypeRegistry");
|
|
55
|
+
const page_1 = require("./models/page");
|
|
52
56
|
const partition_1 = require("./models/partition");
|
|
53
|
-
const platformApi_1 = require("./models/platformApi");
|
|
54
57
|
const platformApiSchema_1 = require("./models/platformApiSchema");
|
|
55
58
|
const platformApiSetting_1 = require("./models/platformApiSetting");
|
|
59
|
+
const platformApis_1 = require("./models/platformApis");
|
|
56
60
|
const platformCorsSetting_1 = require("./models/platformCorsSetting");
|
|
57
61
|
const platformDomain_1 = require("./models/platformDomain");
|
|
58
62
|
const platformDomainEvent_1 = require("./models/platformDomainEvent");
|
|
59
63
|
const platformDomainVerification_1 = require("./models/platformDomainVerification");
|
|
60
64
|
const platformManagedDomain_1 = require("./models/platformManagedDomain");
|
|
65
|
+
const platformPage_1 = require("./models/platformPage");
|
|
66
|
+
const platformSiteAppLink_1 = require("./models/platformSiteAppLink");
|
|
61
67
|
const platformSite_1 = require("./models/platformSite");
|
|
68
|
+
const platformSiteDeepLink_1 = require("./models/platformSiteDeepLink");
|
|
69
|
+
const platformSiteErrorPage_1 = require("./models/platformSiteErrorPage");
|
|
62
70
|
const platformSiteMetadatum_1 = require("./models/platformSiteMetadatum");
|
|
63
71
|
const platformSiteModule_1 = require("./models/platformSiteModule");
|
|
64
72
|
const platformSiteTheme_1 = require("./models/platformSiteTheme");
|
|
73
|
+
const platformSiteWebConfig_1 = require("./models/platformSiteWebConfig");
|
|
65
74
|
const policy_1 = require("./models/policy");
|
|
66
75
|
const primaryKeyConstraint_1 = require("./models/primaryKeyConstraint");
|
|
67
76
|
const pubkeySetting_1 = require("./models/pubkeySetting");
|
|
@@ -70,17 +79,24 @@ const routeBinding_1 = require("./models/routeBinding");
|
|
|
70
79
|
const route_1 = require("./models/route");
|
|
71
80
|
const schema_1 = require("./models/schema");
|
|
72
81
|
const schemaGrant_1 = require("./models/schemaGrant");
|
|
82
|
+
const siteAppLink_1 = require("./models/siteAppLink");
|
|
73
83
|
const site_1 = require("./models/site");
|
|
84
|
+
const siteDeepLink_1 = require("./models/siteDeepLink");
|
|
85
|
+
const siteErrorPage_1 = require("./models/siteErrorPage");
|
|
74
86
|
const siteMetadatum_1 = require("./models/siteMetadatum");
|
|
75
87
|
const siteModule_1 = require("./models/siteModule");
|
|
76
88
|
const siteTheme_1 = require("./models/siteTheme");
|
|
89
|
+
const siteWebConfig_1 = require("./models/siteWebConfig");
|
|
77
90
|
const spatialRelation_1 = require("./models/spatialRelation");
|
|
78
91
|
const sqlAction_1 = require("./models/sqlAction");
|
|
92
|
+
const tableBehavior_1 = require("./models/tableBehavior");
|
|
79
93
|
const table_1 = require("./models/table");
|
|
80
94
|
const tableGrant_1 = require("./models/tableGrant");
|
|
81
95
|
const trigger_1 = require("./models/trigger");
|
|
82
96
|
const triggerFunction_1 = require("./models/triggerFunction");
|
|
97
|
+
const uniqueConstraintBehavior_1 = require("./models/uniqueConstraintBehavior");
|
|
83
98
|
const uniqueConstraint_1 = require("./models/uniqueConstraint");
|
|
99
|
+
const viewBehavior_1 = require("./models/viewBehavior");
|
|
84
100
|
const view_1 = require("./models/view");
|
|
85
101
|
const viewGrant_1 = require("./models/viewGrant");
|
|
86
102
|
const viewRule_1 = require("./models/viewRule");
|
|
@@ -125,9 +141,9 @@ Object.defineProperty(exports, "createMutationOperations", { enumerable: true, g
|
|
|
125
141
|
function createClient(config) {
|
|
126
142
|
const client = new client_1.OrmClient(config);
|
|
127
143
|
return {
|
|
128
|
-
api: new api_1.ApiModel(client),
|
|
129
144
|
apiSchema: new apiSchema_1.ApiSchemaModel(client),
|
|
130
145
|
apiSetting: new apiSetting_1.ApiSettingModel(client),
|
|
146
|
+
apis: new apis_1.ApisModel(client),
|
|
131
147
|
astMigration: new astMigration_1.AstMigrationModel(client),
|
|
132
148
|
checkConstraint: new checkConstraint_1.CheckConstraintModel(client),
|
|
133
149
|
compositeType: new compositeType_1.CompositeTypeModel(client),
|
|
@@ -136,6 +152,7 @@ function createClient(config) {
|
|
|
136
152
|
databaseSetting: new databaseSetting_1.DatabaseSettingModel(client),
|
|
137
153
|
databaseTransfer: new databaseTransfer_1.DatabaseTransferModel(client),
|
|
138
154
|
defaultPrivilege: new defaultPrivilege_1.DefaultPrivilegeModel(client),
|
|
155
|
+
derive: new derive_1.DeriveModel(client),
|
|
139
156
|
domain: new domain_1.DomainModel(client),
|
|
140
157
|
domainEvent: new domainEvent_1.DomainEventModel(client),
|
|
141
158
|
domainType: new domainType_1.DomainTypeModel(client),
|
|
@@ -143,7 +160,9 @@ function createClient(config) {
|
|
|
143
160
|
embeddingChunk: new embeddingChunk_1.EmbeddingChunkModel(client),
|
|
144
161
|
enum: new enum_1.EnumModel(client),
|
|
145
162
|
exclusionConstraint: new exclusionConstraint_1.ExclusionConstraintModel(client),
|
|
163
|
+
fieldBehavior: new fieldBehavior_1.FieldBehaviorModel(client),
|
|
146
164
|
field: new field_1.FieldModel(client),
|
|
165
|
+
foreignKeyConstraintBehavior: new foreignKeyConstraintBehavior_1.ForeignKeyConstraintBehaviorModel(client),
|
|
147
166
|
foreignKeyConstraint: new foreignKeyConstraint_1.ForeignKeyConstraintModel(client),
|
|
148
167
|
fullTextSearch: new fullTextSearch_1.FullTextSearchModel(client),
|
|
149
168
|
function: new function_1.FunctionModel(client),
|
|
@@ -152,19 +171,25 @@ function createClient(config) {
|
|
|
152
171
|
index: new index_1.IndexModel(client),
|
|
153
172
|
managedDomain: new managedDomain_1.ManagedDomainModel(client),
|
|
154
173
|
nodeTypeRegistry: new nodeTypeRegistry_1.NodeTypeRegistryModel(client),
|
|
174
|
+
page: new page_1.PageModel(client),
|
|
155
175
|
partition: new partition_1.PartitionModel(client),
|
|
156
|
-
platformApi: new platformApi_1.PlatformApiModel(client),
|
|
157
176
|
platformApiSchema: new platformApiSchema_1.PlatformApiSchemaModel(client),
|
|
158
177
|
platformApiSetting: new platformApiSetting_1.PlatformApiSettingModel(client),
|
|
178
|
+
platformApis: new platformApis_1.PlatformApisModel(client),
|
|
159
179
|
platformCorsSetting: new platformCorsSetting_1.PlatformCorsSettingModel(client),
|
|
160
180
|
platformDomain: new platformDomain_1.PlatformDomainModel(client),
|
|
161
181
|
platformDomainEvent: new platformDomainEvent_1.PlatformDomainEventModel(client),
|
|
162
182
|
platformDomainVerification: new platformDomainVerification_1.PlatformDomainVerificationModel(client),
|
|
163
183
|
platformManagedDomain: new platformManagedDomain_1.PlatformManagedDomainModel(client),
|
|
184
|
+
platformPage: new platformPage_1.PlatformPageModel(client),
|
|
185
|
+
platformSiteAppLink: new platformSiteAppLink_1.PlatformSiteAppLinkModel(client),
|
|
164
186
|
platformSite: new platformSite_1.PlatformSiteModel(client),
|
|
187
|
+
platformSiteDeepLink: new platformSiteDeepLink_1.PlatformSiteDeepLinkModel(client),
|
|
188
|
+
platformSiteErrorPage: new platformSiteErrorPage_1.PlatformSiteErrorPageModel(client),
|
|
165
189
|
platformSiteMetadatum: new platformSiteMetadatum_1.PlatformSiteMetadatumModel(client),
|
|
166
190
|
platformSiteModule: new platformSiteModule_1.PlatformSiteModuleModel(client),
|
|
167
191
|
platformSiteTheme: new platformSiteTheme_1.PlatformSiteThemeModel(client),
|
|
192
|
+
platformSiteWebConfig: new platformSiteWebConfig_1.PlatformSiteWebConfigModel(client),
|
|
168
193
|
policy: new policy_1.PolicyModel(client),
|
|
169
194
|
primaryKeyConstraint: new primaryKeyConstraint_1.PrimaryKeyConstraintModel(client),
|
|
170
195
|
pubkeySetting: new pubkeySetting_1.PubkeySettingModel(client),
|
|
@@ -173,17 +198,24 @@ function createClient(config) {
|
|
|
173
198
|
route: new route_1.RouteModel(client),
|
|
174
199
|
schema: new schema_1.SchemaModel(client),
|
|
175
200
|
schemaGrant: new schemaGrant_1.SchemaGrantModel(client),
|
|
201
|
+
siteAppLink: new siteAppLink_1.SiteAppLinkModel(client),
|
|
176
202
|
site: new site_1.SiteModel(client),
|
|
203
|
+
siteDeepLink: new siteDeepLink_1.SiteDeepLinkModel(client),
|
|
204
|
+
siteErrorPage: new siteErrorPage_1.SiteErrorPageModel(client),
|
|
177
205
|
siteMetadatum: new siteMetadatum_1.SiteMetadatumModel(client),
|
|
178
206
|
siteModule: new siteModule_1.SiteModuleModel(client),
|
|
179
207
|
siteTheme: new siteTheme_1.SiteThemeModel(client),
|
|
208
|
+
siteWebConfig: new siteWebConfig_1.SiteWebConfigModel(client),
|
|
180
209
|
spatialRelation: new spatialRelation_1.SpatialRelationModel(client),
|
|
181
210
|
sqlAction: new sqlAction_1.SqlActionModel(client),
|
|
211
|
+
tableBehavior: new tableBehavior_1.TableBehaviorModel(client),
|
|
182
212
|
table: new table_1.TableModel(client),
|
|
183
213
|
tableGrant: new tableGrant_1.TableGrantModel(client),
|
|
184
214
|
trigger: new trigger_1.TriggerModel(client),
|
|
185
215
|
triggerFunction: new triggerFunction_1.TriggerFunctionModel(client),
|
|
216
|
+
uniqueConstraintBehavior: new uniqueConstraintBehavior_1.UniqueConstraintBehaviorModel(client),
|
|
186
217
|
uniqueConstraint: new uniqueConstraint_1.UniqueConstraintModel(client),
|
|
218
|
+
viewBehavior: new viewBehavior_1.ViewBehaviorModel(client),
|
|
187
219
|
view: new view_1.ViewModel(client),
|
|
188
220
|
viewGrant: new viewGrant_1.ViewGrantModel(client),
|
|
189
221
|
viewRule: new viewRule_1.ViewRuleModel(client),
|