@constructive-io/sdk 0.29.1 → 0.29.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/orm/input-types.d.ts +144 -171
- package/auth/orm/index.d.ts +32 -4
- package/auth/orm/index.js +8 -0
- package/auth/orm/input-types.d.ts +915 -145
- package/auth/orm/input-types.js +7 -0
- package/auth/orm/models/index.d.ts +4 -0
- package/auth/orm/models/index.js +9 -1
- package/auth/orm/models/orgApiKeyList.d.ts +36 -0
- package/auth/orm/models/orgApiKeyList.js +80 -0
- package/auth/orm/models/principal.d.ts +45 -0
- package/auth/orm/models/principal.js +93 -0
- package/auth/orm/models/principalEntity.d.ts +54 -0
- package/auth/orm/models/principalEntity.js +104 -0
- package/auth/orm/models/principalScopeOverride.d.ts +36 -0
- package/auth/orm/models/principalScopeOverride.js +80 -0
- package/auth/orm/mutation/index.d.ts +33 -1
- package/auth/orm/mutation/index.js +48 -0
- package/auth/orm/query/index.d.ts +4 -4
- package/auth/orm/query/index.js +7 -7
- package/compute/orm/index.d.ts +15 -7
- package/compute/orm/index.js +10 -2
- package/compute/orm/input-types.d.ts +1159 -221
- package/compute/orm/input-types.js +4 -0
- package/compute/orm/models/index.d.ts +5 -1
- package/compute/orm/models/index.js +11 -3
- package/compute/orm/models/platformNamespace.d.ts +54 -0
- package/compute/orm/models/platformNamespace.js +104 -0
- package/compute/orm/models/platformNamespaceEvent.d.ts +56 -0
- package/compute/orm/models/platformNamespaceEvent.js +107 -0
- package/compute/orm/models/resource.d.ts +54 -0
- package/compute/orm/models/resource.js +104 -0
- package/compute/orm/models/resourceEvent.d.ts +56 -0
- package/compute/orm/models/resourceEvent.js +107 -0
- package/compute/orm/mutation/index.d.ts +9 -9
- package/compute/orm/mutation/index.js +12 -12
- package/esm/api/orm/input-types.d.ts +144 -171
- package/esm/auth/orm/index.d.ts +32 -4
- package/esm/auth/orm/index.js +8 -0
- package/esm/auth/orm/input-types.d.ts +915 -145
- package/esm/auth/orm/input-types.js +7 -0
- package/esm/auth/orm/models/index.d.ts +4 -0
- package/esm/auth/orm/models/index.js +4 -0
- package/esm/auth/orm/models/orgApiKeyList.d.ts +36 -0
- package/esm/auth/orm/models/orgApiKeyList.js +76 -0
- package/esm/auth/orm/models/principal.d.ts +45 -0
- package/esm/auth/orm/models/principal.js +89 -0
- package/esm/auth/orm/models/principalEntity.d.ts +54 -0
- package/esm/auth/orm/models/principalEntity.js +100 -0
- package/esm/auth/orm/models/principalScopeOverride.d.ts +36 -0
- package/esm/auth/orm/models/principalScopeOverride.js +76 -0
- package/esm/auth/orm/mutation/index.d.ts +33 -1
- package/esm/auth/orm/mutation/index.js +48 -0
- package/esm/auth/orm/query/index.d.ts +4 -4
- package/esm/auth/orm/query/index.js +7 -7
- package/esm/compute/orm/index.d.ts +15 -7
- package/esm/compute/orm/index.js +10 -2
- package/esm/compute/orm/input-types.d.ts +1159 -221
- package/esm/compute/orm/input-types.js +4 -0
- package/esm/compute/orm/models/index.d.ts +5 -1
- package/esm/compute/orm/models/index.js +5 -1
- package/esm/compute/orm/models/platformNamespace.d.ts +54 -0
- package/esm/compute/orm/models/platformNamespace.js +100 -0
- package/esm/compute/orm/models/platformNamespaceEvent.d.ts +56 -0
- package/esm/compute/orm/models/platformNamespaceEvent.js +103 -0
- package/esm/compute/orm/models/resource.d.ts +54 -0
- package/esm/compute/orm/models/resource.js +100 -0
- package/esm/compute/orm/models/resourceEvent.d.ts +56 -0
- package/esm/compute/orm/models/resourceEvent.js +103 -0
- package/esm/compute/orm/mutation/index.d.ts +9 -9
- package/esm/compute/orm/mutation/index.js +12 -12
- package/esm/modules/orm/index.d.ts +8 -4
- package/esm/modules/orm/index.js +8 -4
- package/esm/modules/orm/input-types.d.ts +868 -411
- package/esm/modules/orm/models/index.d.ts +4 -2
- package/esm/modules/orm/models/index.js +4 -2
- package/esm/modules/orm/models/principalAuthModule.d.ts +54 -0
- package/esm/modules/orm/models/principalAuthModule.js +100 -0
- package/esm/modules/orm/models/resourceModule.d.ts +54 -0
- package/esm/modules/orm/models/resourceModule.js +100 -0
- package/modules/orm/index.d.ts +8 -4
- package/modules/orm/index.js +8 -4
- package/modules/orm/input-types.d.ts +868 -411
- package/modules/orm/models/index.d.ts +4 -2
- package/modules/orm/models/index.js +10 -6
- package/modules/orm/models/principalAuthModule.d.ts +54 -0
- package/modules/orm/models/principalAuthModule.js +104 -0
- package/modules/orm/models/resourceModule.d.ts +54 -0
- package/modules/orm/models/resourceModule.js +104 -0
- package/package.json +4 -4
|
@@ -29,19 +29,21 @@ export { BlueprintConstructionModel } from './blueprintConstruction';
|
|
|
29
29
|
export { CryptoAuthModuleModel } from './cryptoAuthModule';
|
|
30
30
|
export { SessionsModuleModel } from './sessionsModule';
|
|
31
31
|
export { SecureTableProvisionModel } from './secureTableProvision';
|
|
32
|
-
export { MerkleStoreModuleModel } from './merkleStoreModule';
|
|
33
|
-
export { GraphModuleModel } from './graphModule';
|
|
34
32
|
export { DatabaseProvisionModuleModel } from './databaseProvisionModule';
|
|
35
33
|
export { ConfigSecretsModuleModel } from './configSecretsModule';
|
|
34
|
+
export { GraphModuleModel } from './graphModule';
|
|
35
|
+
export { MerkleStoreModuleModel } from './merkleStoreModule';
|
|
36
36
|
export { RateLimitMetersModuleModel } from './rateLimitMetersModule';
|
|
37
37
|
export { RealtimeModuleModel } from './realtimeModule';
|
|
38
38
|
export { WebauthnAuthModuleModel } from './webauthnAuthModule';
|
|
39
39
|
export { FunctionInvocationModuleModel } from './functionInvocationModule';
|
|
40
40
|
export { FunctionModuleModel } from './functionModule';
|
|
41
41
|
export { InvitesModuleModel } from './invitesModule';
|
|
42
|
+
export { PrincipalAuthModuleModel } from './principalAuthModule';
|
|
42
43
|
export { ComputeLogModuleModel } from './computeLogModule';
|
|
43
44
|
export { InferenceLogModuleModel } from './inferenceLogModule';
|
|
44
45
|
export { NamespaceModuleModel } from './namespaceModule';
|
|
46
|
+
export { ResourceModuleModel } from './resourceModule';
|
|
45
47
|
export { StorageLogModuleModel } from './storageLogModule';
|
|
46
48
|
export { TransferLogModuleModel } from './transferLogModule';
|
|
47
49
|
export { FunctionDeploymentModuleModel } from './functionDeploymentModule';
|
|
@@ -29,19 +29,21 @@ export { BlueprintConstructionModel } from './blueprintConstruction';
|
|
|
29
29
|
export { CryptoAuthModuleModel } from './cryptoAuthModule';
|
|
30
30
|
export { SessionsModuleModel } from './sessionsModule';
|
|
31
31
|
export { SecureTableProvisionModel } from './secureTableProvision';
|
|
32
|
-
export { MerkleStoreModuleModel } from './merkleStoreModule';
|
|
33
|
-
export { GraphModuleModel } from './graphModule';
|
|
34
32
|
export { DatabaseProvisionModuleModel } from './databaseProvisionModule';
|
|
35
33
|
export { ConfigSecretsModuleModel } from './configSecretsModule';
|
|
34
|
+
export { GraphModuleModel } from './graphModule';
|
|
35
|
+
export { MerkleStoreModuleModel } from './merkleStoreModule';
|
|
36
36
|
export { RateLimitMetersModuleModel } from './rateLimitMetersModule';
|
|
37
37
|
export { RealtimeModuleModel } from './realtimeModule';
|
|
38
38
|
export { WebauthnAuthModuleModel } from './webauthnAuthModule';
|
|
39
39
|
export { FunctionInvocationModuleModel } from './functionInvocationModule';
|
|
40
40
|
export { FunctionModuleModel } from './functionModule';
|
|
41
41
|
export { InvitesModuleModel } from './invitesModule';
|
|
42
|
+
export { PrincipalAuthModuleModel } from './principalAuthModule';
|
|
42
43
|
export { ComputeLogModuleModel } from './computeLogModule';
|
|
43
44
|
export { InferenceLogModuleModel } from './inferenceLogModule';
|
|
44
45
|
export { NamespaceModuleModel } from './namespaceModule';
|
|
46
|
+
export { ResourceModuleModel } from './resourceModule';
|
|
45
47
|
export { StorageLogModuleModel } from './storageLogModule';
|
|
46
48
|
export { TransferLogModuleModel } from './transferLogModule';
|
|
47
49
|
export { FunctionDeploymentModuleModel } from './functionDeploymentModule';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PrincipalAuthModule 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 { PrincipalAuthModuleWithRelations, PrincipalAuthModuleSelect, PrincipalAuthModuleFilter, PrincipalAuthModuleOrderBy, CreatePrincipalAuthModuleInput, PrincipalAuthModulePatch } from '../input-types';
|
|
10
|
+
export declare class PrincipalAuthModuleModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends PrincipalAuthModuleSelect>(args: FindManyArgs<S, PrincipalAuthModuleFilter, PrincipalAuthModuleOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, PrincipalAuthModuleSelect>): QueryBuilder<{
|
|
16
|
+
principalAuthModules: ConnectionResult<InferSelectResult<PrincipalAuthModuleWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends PrincipalAuthModuleSelect>(args: FindFirstArgs<S, PrincipalAuthModuleFilter, PrincipalAuthModuleOrderBy> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, PrincipalAuthModuleSelect>): QueryBuilder<{
|
|
21
|
+
principalAuthModule: InferSelectResult<PrincipalAuthModuleWithRelations, S> | null;
|
|
22
|
+
}>;
|
|
23
|
+
findOne<S extends PrincipalAuthModuleSelect>(args: {
|
|
24
|
+
id: string;
|
|
25
|
+
select: S;
|
|
26
|
+
} & StrictSelect<S, PrincipalAuthModuleSelect>): QueryBuilder<{
|
|
27
|
+
principalAuthModule: InferSelectResult<PrincipalAuthModuleWithRelations, S> | null;
|
|
28
|
+
}>;
|
|
29
|
+
create<S extends PrincipalAuthModuleSelect>(args: CreateArgs<S, CreatePrincipalAuthModuleInput['principalAuthModule']> & {
|
|
30
|
+
select: S;
|
|
31
|
+
} & StrictSelect<S, PrincipalAuthModuleSelect>): QueryBuilder<{
|
|
32
|
+
createPrincipalAuthModule: {
|
|
33
|
+
principalAuthModule: InferSelectResult<PrincipalAuthModuleWithRelations, S>;
|
|
34
|
+
};
|
|
35
|
+
}>;
|
|
36
|
+
update<S extends PrincipalAuthModuleSelect>(args: UpdateArgs<S, {
|
|
37
|
+
id: string;
|
|
38
|
+
}, PrincipalAuthModulePatch> & {
|
|
39
|
+
select: S;
|
|
40
|
+
} & StrictSelect<S, PrincipalAuthModuleSelect>): QueryBuilder<{
|
|
41
|
+
updatePrincipalAuthModule: {
|
|
42
|
+
principalAuthModule: InferSelectResult<PrincipalAuthModuleWithRelations, S>;
|
|
43
|
+
};
|
|
44
|
+
}>;
|
|
45
|
+
delete<S extends PrincipalAuthModuleSelect>(args: DeleteArgs<{
|
|
46
|
+
id: string;
|
|
47
|
+
}, S> & {
|
|
48
|
+
select: S;
|
|
49
|
+
} & StrictSelect<S, PrincipalAuthModuleSelect>): QueryBuilder<{
|
|
50
|
+
deletePrincipalAuthModule: {
|
|
51
|
+
principalAuthModule: InferSelectResult<PrincipalAuthModuleWithRelations, S>;
|
|
52
|
+
};
|
|
53
|
+
}>;
|
|
54
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
|
|
2
|
+
import { connectionFieldsMap } from '../input-types';
|
|
3
|
+
export class PrincipalAuthModuleModel {
|
|
4
|
+
client;
|
|
5
|
+
constructor(client) {
|
|
6
|
+
this.client = client;
|
|
7
|
+
}
|
|
8
|
+
findMany(args) {
|
|
9
|
+
const { document, variables } = buildFindManyDocument('PrincipalAuthModule', 'principalAuthModules', args.select, {
|
|
10
|
+
where: args?.where,
|
|
11
|
+
orderBy: args?.orderBy,
|
|
12
|
+
first: args?.first,
|
|
13
|
+
last: args?.last,
|
|
14
|
+
after: args?.after,
|
|
15
|
+
before: args?.before,
|
|
16
|
+
offset: args?.offset,
|
|
17
|
+
}, 'PrincipalAuthModuleFilter', 'PrincipalAuthModuleOrderBy', connectionFieldsMap);
|
|
18
|
+
return new QueryBuilder({
|
|
19
|
+
client: this.client,
|
|
20
|
+
operation: 'query',
|
|
21
|
+
operationName: 'PrincipalAuthModule',
|
|
22
|
+
fieldName: 'principalAuthModules',
|
|
23
|
+
document,
|
|
24
|
+
variables,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
findFirst(args) {
|
|
28
|
+
const { document, variables } = buildFindFirstDocument('PrincipalAuthModule', 'principalAuthModules', args.select, {
|
|
29
|
+
where: args?.where,
|
|
30
|
+
orderBy: args?.orderBy,
|
|
31
|
+
}, 'PrincipalAuthModuleFilter', 'PrincipalAuthModuleOrderBy', connectionFieldsMap);
|
|
32
|
+
return new QueryBuilder({
|
|
33
|
+
client: this.client,
|
|
34
|
+
operation: 'query',
|
|
35
|
+
operationName: 'PrincipalAuthModule',
|
|
36
|
+
fieldName: 'principalAuthModule',
|
|
37
|
+
document,
|
|
38
|
+
variables,
|
|
39
|
+
transform: (data) => ({
|
|
40
|
+
principalAuthModule: data.principalAuthModules?.nodes?.[0] ?? null,
|
|
41
|
+
}),
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
findOne(args) {
|
|
45
|
+
const { document, variables } = buildFindManyDocument('PrincipalAuthModule', 'principalAuthModules', args.select, {
|
|
46
|
+
where: {
|
|
47
|
+
id: {
|
|
48
|
+
equalTo: args.id,
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
first: 1,
|
|
52
|
+
}, 'PrincipalAuthModuleFilter', 'PrincipalAuthModuleOrderBy', connectionFieldsMap);
|
|
53
|
+
return new QueryBuilder({
|
|
54
|
+
client: this.client,
|
|
55
|
+
operation: 'query',
|
|
56
|
+
operationName: 'PrincipalAuthModule',
|
|
57
|
+
fieldName: 'principalAuthModule',
|
|
58
|
+
document,
|
|
59
|
+
variables,
|
|
60
|
+
transform: (data) => ({
|
|
61
|
+
principalAuthModule: data.principalAuthModules?.nodes?.[0] ?? null,
|
|
62
|
+
}),
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
create(args) {
|
|
66
|
+
const { document, variables } = buildCreateDocument('PrincipalAuthModule', 'createPrincipalAuthModule', 'principalAuthModule', args.select, args.data, 'CreatePrincipalAuthModuleInput', connectionFieldsMap);
|
|
67
|
+
return new QueryBuilder({
|
|
68
|
+
client: this.client,
|
|
69
|
+
operation: 'mutation',
|
|
70
|
+
operationName: 'PrincipalAuthModule',
|
|
71
|
+
fieldName: 'createPrincipalAuthModule',
|
|
72
|
+
document,
|
|
73
|
+
variables,
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
update(args) {
|
|
77
|
+
const { document, variables } = buildUpdateByPkDocument('PrincipalAuthModule', 'updatePrincipalAuthModule', 'principalAuthModule', args.select, args.where.id, args.data, 'UpdatePrincipalAuthModuleInput', 'id', 'principalAuthModulePatch', connectionFieldsMap, undefined);
|
|
78
|
+
return new QueryBuilder({
|
|
79
|
+
client: this.client,
|
|
80
|
+
operation: 'mutation',
|
|
81
|
+
operationName: 'PrincipalAuthModule',
|
|
82
|
+
fieldName: 'updatePrincipalAuthModule',
|
|
83
|
+
document,
|
|
84
|
+
variables,
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
delete(args) {
|
|
88
|
+
const { document, variables } = buildDeleteByPkDocument('PrincipalAuthModule', 'deletePrincipalAuthModule', 'principalAuthModule', {
|
|
89
|
+
id: args.where.id,
|
|
90
|
+
}, 'DeletePrincipalAuthModuleInput', args.select, connectionFieldsMap);
|
|
91
|
+
return new QueryBuilder({
|
|
92
|
+
client: this.client,
|
|
93
|
+
operation: 'mutation',
|
|
94
|
+
operationName: 'PrincipalAuthModule',
|
|
95
|
+
fieldName: 'deletePrincipalAuthModule',
|
|
96
|
+
document,
|
|
97
|
+
variables,
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ResourceModule 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 { ResourceModuleWithRelations, ResourceModuleSelect, ResourceModuleFilter, ResourceModuleOrderBy, CreateResourceModuleInput, ResourceModulePatch } from '../input-types';
|
|
10
|
+
export declare class ResourceModuleModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends ResourceModuleSelect>(args: FindManyArgs<S, ResourceModuleFilter, ResourceModuleOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, ResourceModuleSelect>): QueryBuilder<{
|
|
16
|
+
resourceModules: ConnectionResult<InferSelectResult<ResourceModuleWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends ResourceModuleSelect>(args: FindFirstArgs<S, ResourceModuleFilter, ResourceModuleOrderBy> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, ResourceModuleSelect>): QueryBuilder<{
|
|
21
|
+
resourceModule: InferSelectResult<ResourceModuleWithRelations, S> | null;
|
|
22
|
+
}>;
|
|
23
|
+
findOne<S extends ResourceModuleSelect>(args: {
|
|
24
|
+
id: string;
|
|
25
|
+
select: S;
|
|
26
|
+
} & StrictSelect<S, ResourceModuleSelect>): QueryBuilder<{
|
|
27
|
+
resourceModule: InferSelectResult<ResourceModuleWithRelations, S> | null;
|
|
28
|
+
}>;
|
|
29
|
+
create<S extends ResourceModuleSelect>(args: CreateArgs<S, CreateResourceModuleInput['resourceModule']> & {
|
|
30
|
+
select: S;
|
|
31
|
+
} & StrictSelect<S, ResourceModuleSelect>): QueryBuilder<{
|
|
32
|
+
createResourceModule: {
|
|
33
|
+
resourceModule: InferSelectResult<ResourceModuleWithRelations, S>;
|
|
34
|
+
};
|
|
35
|
+
}>;
|
|
36
|
+
update<S extends ResourceModuleSelect>(args: UpdateArgs<S, {
|
|
37
|
+
id: string;
|
|
38
|
+
}, ResourceModulePatch> & {
|
|
39
|
+
select: S;
|
|
40
|
+
} & StrictSelect<S, ResourceModuleSelect>): QueryBuilder<{
|
|
41
|
+
updateResourceModule: {
|
|
42
|
+
resourceModule: InferSelectResult<ResourceModuleWithRelations, S>;
|
|
43
|
+
};
|
|
44
|
+
}>;
|
|
45
|
+
delete<S extends ResourceModuleSelect>(args: DeleteArgs<{
|
|
46
|
+
id: string;
|
|
47
|
+
}, S> & {
|
|
48
|
+
select: S;
|
|
49
|
+
} & StrictSelect<S, ResourceModuleSelect>): QueryBuilder<{
|
|
50
|
+
deleteResourceModule: {
|
|
51
|
+
resourceModule: InferSelectResult<ResourceModuleWithRelations, S>;
|
|
52
|
+
};
|
|
53
|
+
}>;
|
|
54
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
|
|
2
|
+
import { connectionFieldsMap } from '../input-types';
|
|
3
|
+
export class ResourceModuleModel {
|
|
4
|
+
client;
|
|
5
|
+
constructor(client) {
|
|
6
|
+
this.client = client;
|
|
7
|
+
}
|
|
8
|
+
findMany(args) {
|
|
9
|
+
const { document, variables } = buildFindManyDocument('ResourceModule', 'resourceModules', args.select, {
|
|
10
|
+
where: args?.where,
|
|
11
|
+
orderBy: args?.orderBy,
|
|
12
|
+
first: args?.first,
|
|
13
|
+
last: args?.last,
|
|
14
|
+
after: args?.after,
|
|
15
|
+
before: args?.before,
|
|
16
|
+
offset: args?.offset,
|
|
17
|
+
}, 'ResourceModuleFilter', 'ResourceModuleOrderBy', connectionFieldsMap);
|
|
18
|
+
return new QueryBuilder({
|
|
19
|
+
client: this.client,
|
|
20
|
+
operation: 'query',
|
|
21
|
+
operationName: 'ResourceModule',
|
|
22
|
+
fieldName: 'resourceModules',
|
|
23
|
+
document,
|
|
24
|
+
variables,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
findFirst(args) {
|
|
28
|
+
const { document, variables } = buildFindFirstDocument('ResourceModule', 'resourceModules', args.select, {
|
|
29
|
+
where: args?.where,
|
|
30
|
+
orderBy: args?.orderBy,
|
|
31
|
+
}, 'ResourceModuleFilter', 'ResourceModuleOrderBy', connectionFieldsMap);
|
|
32
|
+
return new QueryBuilder({
|
|
33
|
+
client: this.client,
|
|
34
|
+
operation: 'query',
|
|
35
|
+
operationName: 'ResourceModule',
|
|
36
|
+
fieldName: 'resourceModule',
|
|
37
|
+
document,
|
|
38
|
+
variables,
|
|
39
|
+
transform: (data) => ({
|
|
40
|
+
resourceModule: data.resourceModules?.nodes?.[0] ?? null,
|
|
41
|
+
}),
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
findOne(args) {
|
|
45
|
+
const { document, variables } = buildFindManyDocument('ResourceModule', 'resourceModules', args.select, {
|
|
46
|
+
where: {
|
|
47
|
+
id: {
|
|
48
|
+
equalTo: args.id,
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
first: 1,
|
|
52
|
+
}, 'ResourceModuleFilter', 'ResourceModuleOrderBy', connectionFieldsMap);
|
|
53
|
+
return new QueryBuilder({
|
|
54
|
+
client: this.client,
|
|
55
|
+
operation: 'query',
|
|
56
|
+
operationName: 'ResourceModule',
|
|
57
|
+
fieldName: 'resourceModule',
|
|
58
|
+
document,
|
|
59
|
+
variables,
|
|
60
|
+
transform: (data) => ({
|
|
61
|
+
resourceModule: data.resourceModules?.nodes?.[0] ?? null,
|
|
62
|
+
}),
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
create(args) {
|
|
66
|
+
const { document, variables } = buildCreateDocument('ResourceModule', 'createResourceModule', 'resourceModule', args.select, args.data, 'CreateResourceModuleInput', connectionFieldsMap);
|
|
67
|
+
return new QueryBuilder({
|
|
68
|
+
client: this.client,
|
|
69
|
+
operation: 'mutation',
|
|
70
|
+
operationName: 'ResourceModule',
|
|
71
|
+
fieldName: 'createResourceModule',
|
|
72
|
+
document,
|
|
73
|
+
variables,
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
update(args) {
|
|
77
|
+
const { document, variables } = buildUpdateByPkDocument('ResourceModule', 'updateResourceModule', 'resourceModule', args.select, args.where.id, args.data, 'UpdateResourceModuleInput', 'id', 'resourceModulePatch', connectionFieldsMap, undefined);
|
|
78
|
+
return new QueryBuilder({
|
|
79
|
+
client: this.client,
|
|
80
|
+
operation: 'mutation',
|
|
81
|
+
operationName: 'ResourceModule',
|
|
82
|
+
fieldName: 'updateResourceModule',
|
|
83
|
+
document,
|
|
84
|
+
variables,
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
delete(args) {
|
|
88
|
+
const { document, variables } = buildDeleteByPkDocument('ResourceModule', 'deleteResourceModule', 'resourceModule', {
|
|
89
|
+
id: args.where.id,
|
|
90
|
+
}, 'DeleteResourceModuleInput', args.select, connectionFieldsMap);
|
|
91
|
+
return new QueryBuilder({
|
|
92
|
+
client: this.client,
|
|
93
|
+
operation: 'mutation',
|
|
94
|
+
operationName: 'ResourceModule',
|
|
95
|
+
fieldName: 'deleteResourceModule',
|
|
96
|
+
document,
|
|
97
|
+
variables,
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
}
|
package/modules/orm/index.d.ts
CHANGED
|
@@ -25,19 +25,21 @@ import { BlueprintConstructionModel } from './models/blueprintConstruction';
|
|
|
25
25
|
import { CryptoAuthModuleModel } from './models/cryptoAuthModule';
|
|
26
26
|
import { SessionsModuleModel } from './models/sessionsModule';
|
|
27
27
|
import { SecureTableProvisionModel } from './models/secureTableProvision';
|
|
28
|
-
import { MerkleStoreModuleModel } from './models/merkleStoreModule';
|
|
29
|
-
import { GraphModuleModel } from './models/graphModule';
|
|
30
28
|
import { DatabaseProvisionModuleModel } from './models/databaseProvisionModule';
|
|
31
29
|
import { ConfigSecretsModuleModel } from './models/configSecretsModule';
|
|
30
|
+
import { GraphModuleModel } from './models/graphModule';
|
|
31
|
+
import { MerkleStoreModuleModel } from './models/merkleStoreModule';
|
|
32
32
|
import { RateLimitMetersModuleModel } from './models/rateLimitMetersModule';
|
|
33
33
|
import { RealtimeModuleModel } from './models/realtimeModule';
|
|
34
34
|
import { WebauthnAuthModuleModel } from './models/webauthnAuthModule';
|
|
35
35
|
import { FunctionInvocationModuleModel } from './models/functionInvocationModule';
|
|
36
36
|
import { FunctionModuleModel } from './models/functionModule';
|
|
37
37
|
import { InvitesModuleModel } from './models/invitesModule';
|
|
38
|
+
import { PrincipalAuthModuleModel } from './models/principalAuthModule';
|
|
38
39
|
import { ComputeLogModuleModel } from './models/computeLogModule';
|
|
39
40
|
import { InferenceLogModuleModel } from './models/inferenceLogModule';
|
|
40
41
|
import { NamespaceModuleModel } from './models/namespaceModule';
|
|
42
|
+
import { ResourceModuleModel } from './models/resourceModule';
|
|
41
43
|
import { StorageLogModuleModel } from './models/storageLogModule';
|
|
42
44
|
import { TransferLogModuleModel } from './models/transferLogModule';
|
|
43
45
|
import { FunctionDeploymentModuleModel } from './models/functionDeploymentModule';
|
|
@@ -115,19 +117,21 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
115
117
|
cryptoAuthModule: CryptoAuthModuleModel;
|
|
116
118
|
sessionsModule: SessionsModuleModel;
|
|
117
119
|
secureTableProvision: SecureTableProvisionModel;
|
|
118
|
-
merkleStoreModule: MerkleStoreModuleModel;
|
|
119
|
-
graphModule: GraphModuleModel;
|
|
120
120
|
databaseProvisionModule: DatabaseProvisionModuleModel;
|
|
121
121
|
configSecretsModule: ConfigSecretsModuleModel;
|
|
122
|
+
graphModule: GraphModuleModel;
|
|
123
|
+
merkleStoreModule: MerkleStoreModuleModel;
|
|
122
124
|
rateLimitMetersModule: RateLimitMetersModuleModel;
|
|
123
125
|
realtimeModule: RealtimeModuleModel;
|
|
124
126
|
webauthnAuthModule: WebauthnAuthModuleModel;
|
|
125
127
|
functionInvocationModule: FunctionInvocationModuleModel;
|
|
126
128
|
functionModule: FunctionModuleModel;
|
|
127
129
|
invitesModule: InvitesModuleModel;
|
|
130
|
+
principalAuthModule: PrincipalAuthModuleModel;
|
|
128
131
|
computeLogModule: ComputeLogModuleModel;
|
|
129
132
|
inferenceLogModule: InferenceLogModuleModel;
|
|
130
133
|
namespaceModule: NamespaceModuleModel;
|
|
134
|
+
resourceModule: ResourceModuleModel;
|
|
131
135
|
storageLogModule: StorageLogModuleModel;
|
|
132
136
|
transferLogModule: TransferLogModuleModel;
|
|
133
137
|
functionDeploymentModule: FunctionDeploymentModuleModel;
|
package/modules/orm/index.js
CHANGED
|
@@ -48,19 +48,21 @@ const blueprintConstruction_1 = require("./models/blueprintConstruction");
|
|
|
48
48
|
const cryptoAuthModule_1 = require("./models/cryptoAuthModule");
|
|
49
49
|
const sessionsModule_1 = require("./models/sessionsModule");
|
|
50
50
|
const secureTableProvision_1 = require("./models/secureTableProvision");
|
|
51
|
-
const merkleStoreModule_1 = require("./models/merkleStoreModule");
|
|
52
|
-
const graphModule_1 = require("./models/graphModule");
|
|
53
51
|
const databaseProvisionModule_1 = require("./models/databaseProvisionModule");
|
|
54
52
|
const configSecretsModule_1 = require("./models/configSecretsModule");
|
|
53
|
+
const graphModule_1 = require("./models/graphModule");
|
|
54
|
+
const merkleStoreModule_1 = require("./models/merkleStoreModule");
|
|
55
55
|
const rateLimitMetersModule_1 = require("./models/rateLimitMetersModule");
|
|
56
56
|
const realtimeModule_1 = require("./models/realtimeModule");
|
|
57
57
|
const webauthnAuthModule_1 = require("./models/webauthnAuthModule");
|
|
58
58
|
const functionInvocationModule_1 = require("./models/functionInvocationModule");
|
|
59
59
|
const functionModule_1 = require("./models/functionModule");
|
|
60
60
|
const invitesModule_1 = require("./models/invitesModule");
|
|
61
|
+
const principalAuthModule_1 = require("./models/principalAuthModule");
|
|
61
62
|
const computeLogModule_1 = require("./models/computeLogModule");
|
|
62
63
|
const inferenceLogModule_1 = require("./models/inferenceLogModule");
|
|
63
64
|
const namespaceModule_1 = require("./models/namespaceModule");
|
|
65
|
+
const resourceModule_1 = require("./models/resourceModule");
|
|
64
66
|
const storageLogModule_1 = require("./models/storageLogModule");
|
|
65
67
|
const transferLogModule_1 = require("./models/transferLogModule");
|
|
66
68
|
const functionDeploymentModule_1 = require("./models/functionDeploymentModule");
|
|
@@ -146,19 +148,21 @@ function createClient(config) {
|
|
|
146
148
|
cryptoAuthModule: new cryptoAuthModule_1.CryptoAuthModuleModel(client),
|
|
147
149
|
sessionsModule: new sessionsModule_1.SessionsModuleModel(client),
|
|
148
150
|
secureTableProvision: new secureTableProvision_1.SecureTableProvisionModel(client),
|
|
149
|
-
merkleStoreModule: new merkleStoreModule_1.MerkleStoreModuleModel(client),
|
|
150
|
-
graphModule: new graphModule_1.GraphModuleModel(client),
|
|
151
151
|
databaseProvisionModule: new databaseProvisionModule_1.DatabaseProvisionModuleModel(client),
|
|
152
152
|
configSecretsModule: new configSecretsModule_1.ConfigSecretsModuleModel(client),
|
|
153
|
+
graphModule: new graphModule_1.GraphModuleModel(client),
|
|
154
|
+
merkleStoreModule: new merkleStoreModule_1.MerkleStoreModuleModel(client),
|
|
153
155
|
rateLimitMetersModule: new rateLimitMetersModule_1.RateLimitMetersModuleModel(client),
|
|
154
156
|
realtimeModule: new realtimeModule_1.RealtimeModuleModel(client),
|
|
155
157
|
webauthnAuthModule: new webauthnAuthModule_1.WebauthnAuthModuleModel(client),
|
|
156
158
|
functionInvocationModule: new functionInvocationModule_1.FunctionInvocationModuleModel(client),
|
|
157
159
|
functionModule: new functionModule_1.FunctionModuleModel(client),
|
|
158
160
|
invitesModule: new invitesModule_1.InvitesModuleModel(client),
|
|
161
|
+
principalAuthModule: new principalAuthModule_1.PrincipalAuthModuleModel(client),
|
|
159
162
|
computeLogModule: new computeLogModule_1.ComputeLogModuleModel(client),
|
|
160
163
|
inferenceLogModule: new inferenceLogModule_1.InferenceLogModuleModel(client),
|
|
161
164
|
namespaceModule: new namespaceModule_1.NamespaceModuleModel(client),
|
|
165
|
+
resourceModule: new resourceModule_1.ResourceModuleModel(client),
|
|
162
166
|
storageLogModule: new storageLogModule_1.StorageLogModuleModel(client),
|
|
163
167
|
transferLogModule: new transferLogModule_1.TransferLogModuleModel(client),
|
|
164
168
|
functionDeploymentModule: new functionDeploymentModule_1.FunctionDeploymentModuleModel(client),
|