@constructive-sdk/cli 0.29.0 → 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/cli/commands/api.js +44 -0
- package/api/cli/commands/check-constraint.js +0 -22
- package/api/cli/commands/composite-type.js +0 -22
- package/api/cli/commands/database-setting.js +44 -0
- package/api/cli/commands/domain.js +66 -0
- package/api/cli/commands/enum.js +0 -22
- package/api/cli/commands/field.js +0 -22
- package/api/cli/commands/foreign-key-constraint.js +0 -22
- package/api/cli/commands/index.js +0 -22
- package/api/cli/commands/policy.js +0 -22
- package/api/cli/commands/primary-key-constraint.js +0 -22
- package/api/cli/commands/schema.js +0 -22
- package/api/cli/commands/site.js +44 -0
- package/api/cli/commands/spatial-relation.js +0 -22
- package/api/cli/commands/table.js +0 -22
- package/api/cli/commands/trigger.js +0 -22
- package/api/cli/commands/unique-constraint.js +0 -22
- package/api/cli/commands/view.js +0 -22
- package/api/orm/input-types.d.ts +144 -171
- package/auth/cli/commands/create-org-api-key.d.ts +8 -0
- package/auth/cli/commands/create-org-api-key.js +36 -0
- package/auth/cli/commands/create-org-principal.d.ts +8 -0
- package/auth/cli/commands/create-org-principal.js +36 -0
- package/auth/cli/commands/delete-org-principal.d.ts +8 -0
- package/auth/cli/commands/delete-org-principal.js +36 -0
- package/auth/cli/commands/org-api-key-list.d.ts +8 -0
- package/auth/cli/commands/org-api-key-list.js +224 -0
- package/auth/cli/commands/principal-entity.d.ts +8 -0
- package/auth/cli/commands/principal-entity.js +282 -0
- package/auth/cli/commands/principal-scope-override.d.ts +8 -0
- package/auth/cli/commands/principal-scope-override.js +171 -0
- package/auth/cli/commands/principal.d.ts +8 -0
- package/auth/cli/commands/principal.js +171 -0
- package/auth/cli/commands/revoke-org-api-key.d.ts +8 -0
- package/auth/cli/commands/revoke-org-api-key.js +36 -0
- package/auth/cli/commands.js +19 -3
- package/auth/cli/executor.d.ts +28 -4
- 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/cli/commands/function-graph-execution.js +0 -22
- package/compute/cli/commands/function-graph.js +0 -20
- package/compute/cli/commands/platform-namespace-event.d.ts +8 -0
- package/compute/cli/commands/platform-namespace-event.js +510 -0
- package/compute/cli/commands/platform-namespace.d.ts +8 -0
- package/compute/cli/commands/platform-namespace.js +436 -0
- package/compute/cli/commands/resource-event.d.ts +8 -0
- package/compute/cli/commands/resource-event.js +356 -0
- package/compute/cli/commands/resource.d.ts +8 -0
- package/compute/cli/commands/resource.js +520 -0
- package/compute/cli/commands.js +13 -5
- package/compute/cli/executor.d.ts +10 -6
- 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/cli/commands/api.js +44 -0
- package/esm/api/cli/commands/check-constraint.js +0 -22
- package/esm/api/cli/commands/composite-type.js +0 -22
- package/esm/api/cli/commands/database-setting.js +44 -0
- package/esm/api/cli/commands/domain.js +66 -0
- package/esm/api/cli/commands/enum.js +0 -22
- package/esm/api/cli/commands/field.js +0 -22
- package/esm/api/cli/commands/foreign-key-constraint.js +0 -22
- package/esm/api/cli/commands/index.js +0 -22
- package/esm/api/cli/commands/policy.js +0 -22
- package/esm/api/cli/commands/primary-key-constraint.js +0 -22
- package/esm/api/cli/commands/schema.js +0 -22
- package/esm/api/cli/commands/site.js +44 -0
- package/esm/api/cli/commands/spatial-relation.js +0 -22
- package/esm/api/cli/commands/table.js +0 -22
- package/esm/api/cli/commands/trigger.js +0 -22
- package/esm/api/cli/commands/unique-constraint.js +0 -22
- package/esm/api/cli/commands/view.js +0 -22
- package/esm/api/orm/input-types.d.ts +144 -171
- package/esm/auth/cli/commands/create-org-api-key.d.ts +8 -0
- package/esm/auth/cli/commands/create-org-api-key.js +34 -0
- package/esm/auth/cli/commands/create-org-principal.d.ts +8 -0
- package/esm/auth/cli/commands/create-org-principal.js +34 -0
- package/esm/auth/cli/commands/delete-org-principal.d.ts +8 -0
- package/esm/auth/cli/commands/delete-org-principal.js +34 -0
- package/esm/auth/cli/commands/org-api-key-list.d.ts +8 -0
- package/esm/auth/cli/commands/org-api-key-list.js +222 -0
- package/esm/auth/cli/commands/principal-entity.d.ts +8 -0
- package/esm/auth/cli/commands/principal-entity.js +280 -0
- package/esm/auth/cli/commands/principal-scope-override.d.ts +8 -0
- package/esm/auth/cli/commands/principal-scope-override.js +169 -0
- package/esm/auth/cli/commands/principal.d.ts +8 -0
- package/esm/auth/cli/commands/principal.js +169 -0
- package/esm/auth/cli/commands/revoke-org-api-key.d.ts +8 -0
- package/esm/auth/cli/commands/revoke-org-api-key.js +34 -0
- package/esm/auth/cli/commands.js +19 -3
- package/esm/auth/cli/executor.d.ts +28 -4
- 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/cli/commands/function-graph-execution.js +0 -22
- package/esm/compute/cli/commands/function-graph.js +0 -20
- package/esm/compute/cli/commands/platform-namespace-event.d.ts +8 -0
- package/esm/compute/cli/commands/platform-namespace-event.js +508 -0
- package/esm/compute/cli/commands/platform-namespace.d.ts +8 -0
- package/esm/compute/cli/commands/platform-namespace.js +434 -0
- package/esm/compute/cli/commands/resource-event.d.ts +8 -0
- package/esm/compute/cli/commands/resource-event.js +354 -0
- package/esm/compute/cli/commands/resource.d.ts +8 -0
- package/esm/compute/cli/commands/resource.js +518 -0
- package/esm/compute/cli/commands.js +13 -5
- package/esm/compute/cli/executor.d.ts +10 -6
- 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/cli/commands/merkle-store-module.js +22 -0
- package/esm/modules/cli/commands/principal-auth-module.d.ts +8 -0
- package/esm/modules/cli/commands/principal-auth-module.js +580 -0
- package/esm/modules/cli/commands/resource-module.d.ts +8 -0
- package/esm/modules/cli/commands/resource-module.js +602 -0
- package/esm/modules/cli/commands.js +9 -5
- package/esm/modules/cli/executor.d.ts +4 -2
- 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/cli/commands/merkle-store-module.js +22 -0
- package/modules/cli/commands/principal-auth-module.d.ts +8 -0
- package/modules/cli/commands/principal-auth-module.js +582 -0
- package/modules/cli/commands/resource-module.d.ts +8 -0
- package/modules/cli/commands/resource-module.js +604 -0
- package/modules/cli/commands.js +9 -5
- package/modules/cli/executor.d.ts +4 -2
- 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 +5 -5
package/auth/orm/input-types.js
CHANGED
|
@@ -3,7 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.connectionFieldsMap = void 0;
|
|
4
4
|
// ============ Connection Fields Map ============
|
|
5
5
|
exports.connectionFieldsMap = {
|
|
6
|
+
Principal: {
|
|
7
|
+
principalEntities: 'PrincipalEntity',
|
|
8
|
+
principalScopeOverrides: 'PrincipalScopeOverride',
|
|
9
|
+
},
|
|
6
10
|
User: {
|
|
11
|
+
ownedPrincipals: 'Principal',
|
|
12
|
+
principals: 'Principal',
|
|
13
|
+
principalEntitiesByEntityId: 'PrincipalEntity',
|
|
7
14
|
ownedEmails: 'Email',
|
|
8
15
|
ownedPhoneNumbers: 'PhoneNumber',
|
|
9
16
|
ownedCryptoAddresses: 'CryptoAddress',
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
6
|
+
export { PrincipalModel } from './principal';
|
|
7
|
+
export { PrincipalEntityModel } from './principalEntity';
|
|
8
|
+
export { PrincipalScopeOverrideModel } from './principalScopeOverride';
|
|
6
9
|
export { EmailModel } from './email';
|
|
7
10
|
export { PhoneNumberModel } from './phoneNumber';
|
|
8
11
|
export { CryptoAddressModel } from './cryptoAddress';
|
|
@@ -11,4 +14,5 @@ export { AuditLogAuthModel } from './auditLogAuth';
|
|
|
11
14
|
export { IdentityProviderModel } from './identityProvider';
|
|
12
15
|
export { RoleTypeModel } from './roleType';
|
|
13
16
|
export { UserConnectedAccountModel } from './userConnectedAccount';
|
|
17
|
+
export { OrgApiKeyListModel } from './orgApiKeyList';
|
|
14
18
|
export { UserModel } from './user';
|
package/auth/orm/models/index.js
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserModel = exports.UserConnectedAccountModel = exports.RoleTypeModel = exports.IdentityProviderModel = exports.AuditLogAuthModel = exports.WebauthnCredentialModel = exports.CryptoAddressModel = exports.PhoneNumberModel = exports.EmailModel = void 0;
|
|
3
|
+
exports.UserModel = exports.OrgApiKeyListModel = exports.UserConnectedAccountModel = exports.RoleTypeModel = exports.IdentityProviderModel = exports.AuditLogAuthModel = exports.WebauthnCredentialModel = exports.CryptoAddressModel = exports.PhoneNumberModel = exports.EmailModel = exports.PrincipalScopeOverrideModel = exports.PrincipalEntityModel = exports.PrincipalModel = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Models barrel export
|
|
6
6
|
* @generated by @constructive-io/graphql-codegen
|
|
7
7
|
* DO NOT EDIT - changes will be overwritten
|
|
8
8
|
*/
|
|
9
|
+
var principal_1 = require("./principal");
|
|
10
|
+
Object.defineProperty(exports, "PrincipalModel", { enumerable: true, get: function () { return principal_1.PrincipalModel; } });
|
|
11
|
+
var principalEntity_1 = require("./principalEntity");
|
|
12
|
+
Object.defineProperty(exports, "PrincipalEntityModel", { enumerable: true, get: function () { return principalEntity_1.PrincipalEntityModel; } });
|
|
13
|
+
var principalScopeOverride_1 = require("./principalScopeOverride");
|
|
14
|
+
Object.defineProperty(exports, "PrincipalScopeOverrideModel", { enumerable: true, get: function () { return principalScopeOverride_1.PrincipalScopeOverrideModel; } });
|
|
9
15
|
var email_1 = require("./email");
|
|
10
16
|
Object.defineProperty(exports, "EmailModel", { enumerable: true, get: function () { return email_1.EmailModel; } });
|
|
11
17
|
var phoneNumber_1 = require("./phoneNumber");
|
|
@@ -22,5 +28,7 @@ var roleType_1 = require("./roleType");
|
|
|
22
28
|
Object.defineProperty(exports, "RoleTypeModel", { enumerable: true, get: function () { return roleType_1.RoleTypeModel; } });
|
|
23
29
|
var userConnectedAccount_1 = require("./userConnectedAccount");
|
|
24
30
|
Object.defineProperty(exports, "UserConnectedAccountModel", { enumerable: true, get: function () { return userConnectedAccount_1.UserConnectedAccountModel; } });
|
|
31
|
+
var orgApiKeyList_1 = require("./orgApiKeyList");
|
|
32
|
+
Object.defineProperty(exports, "OrgApiKeyListModel", { enumerable: true, get: function () { return orgApiKeyList_1.OrgApiKeyListModel; } });
|
|
25
33
|
var user_1 = require("./user");
|
|
26
34
|
Object.defineProperty(exports, "UserModel", { enumerable: true, get: function () { return user_1.UserModel; } });
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OrgApiKeyList 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, InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
+
import type { OrgApiKeyListWithRelations, OrgApiKeyListSelect, OrgApiKeyListFilter, OrgApiKeyListOrderBy, CreateOrgApiKeyListInput } from '../input-types';
|
|
10
|
+
export declare class OrgApiKeyListModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends OrgApiKeyListSelect>(args: FindManyArgs<S, OrgApiKeyListFilter, OrgApiKeyListOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, OrgApiKeyListSelect>): QueryBuilder<{
|
|
16
|
+
orgApiKeyLists: ConnectionResult<InferSelectResult<OrgApiKeyListWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends OrgApiKeyListSelect>(args: FindFirstArgs<S, OrgApiKeyListFilter, OrgApiKeyListOrderBy> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, OrgApiKeyListSelect>): QueryBuilder<{
|
|
21
|
+
orgApiKeyList: InferSelectResult<OrgApiKeyListWithRelations, S> | null;
|
|
22
|
+
}>;
|
|
23
|
+
findOne<S extends OrgApiKeyListSelect>(args: {
|
|
24
|
+
id: string;
|
|
25
|
+
select: S;
|
|
26
|
+
} & StrictSelect<S, OrgApiKeyListSelect>): QueryBuilder<{
|
|
27
|
+
orgApiKeyList: InferSelectResult<OrgApiKeyListWithRelations, S> | null;
|
|
28
|
+
}>;
|
|
29
|
+
create<S extends OrgApiKeyListSelect>(args: CreateArgs<S, CreateOrgApiKeyListInput['orgApiKeyList']> & {
|
|
30
|
+
select: S;
|
|
31
|
+
} & StrictSelect<S, OrgApiKeyListSelect>): QueryBuilder<{
|
|
32
|
+
createOrgApiKeyList: {
|
|
33
|
+
orgApiKeyList: InferSelectResult<OrgApiKeyListWithRelations, S>;
|
|
34
|
+
};
|
|
35
|
+
}>;
|
|
36
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrgApiKeyListModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class OrgApiKeyListModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('OrgApiKeyList', 'orgApiKeyLists', 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
|
+
}, 'OrgApiKeyListFilter', 'OrgApiKeyListOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'OrgApiKeyList',
|
|
25
|
+
fieldName: 'orgApiKeyLists',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('OrgApiKeyList', 'orgApiKeyLists', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
orderBy: args?.orderBy,
|
|
34
|
+
}, 'OrgApiKeyListFilter', 'OrgApiKeyListOrderBy', input_types_1.connectionFieldsMap);
|
|
35
|
+
return new query_builder_1.QueryBuilder({
|
|
36
|
+
client: this.client,
|
|
37
|
+
operation: 'query',
|
|
38
|
+
operationName: 'OrgApiKeyList',
|
|
39
|
+
fieldName: 'orgApiKeyList',
|
|
40
|
+
document,
|
|
41
|
+
variables,
|
|
42
|
+
transform: (data) => ({
|
|
43
|
+
orgApiKeyList: data.orgApiKeyLists?.nodes?.[0] ?? null,
|
|
44
|
+
}),
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
findOne(args) {
|
|
48
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('OrgApiKeyList', 'orgApiKeyLists', args.select, {
|
|
49
|
+
where: {
|
|
50
|
+
id: {
|
|
51
|
+
equalTo: args.id,
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
first: 1,
|
|
55
|
+
}, 'OrgApiKeyListFilter', 'OrgApiKeyListOrderBy', input_types_1.connectionFieldsMap);
|
|
56
|
+
return new query_builder_1.QueryBuilder({
|
|
57
|
+
client: this.client,
|
|
58
|
+
operation: 'query',
|
|
59
|
+
operationName: 'OrgApiKeyList',
|
|
60
|
+
fieldName: 'orgApiKeyList',
|
|
61
|
+
document,
|
|
62
|
+
variables,
|
|
63
|
+
transform: (data) => ({
|
|
64
|
+
orgApiKeyList: data.orgApiKeyLists?.nodes?.[0] ?? null,
|
|
65
|
+
}),
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
create(args) {
|
|
69
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('OrgApiKeyList', 'createOrgApiKeyList', 'orgApiKeyList', args.select, args.data, 'CreateOrgApiKeyListInput', input_types_1.connectionFieldsMap);
|
|
70
|
+
return new query_builder_1.QueryBuilder({
|
|
71
|
+
client: this.client,
|
|
72
|
+
operation: 'mutation',
|
|
73
|
+
operationName: 'OrgApiKeyList',
|
|
74
|
+
fieldName: 'createOrgApiKeyList',
|
|
75
|
+
document,
|
|
76
|
+
variables,
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
exports.OrgApiKeyListModel = OrgApiKeyListModel;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Principal 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, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
+
import type { PrincipalWithRelations, PrincipalSelect, PrincipalFilter, PrincipalOrderBy, CreatePrincipalInput } from '../input-types';
|
|
10
|
+
export declare class PrincipalModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends PrincipalSelect>(args: FindManyArgs<S, PrincipalFilter, PrincipalOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, PrincipalSelect>): QueryBuilder<{
|
|
16
|
+
principals: ConnectionResult<InferSelectResult<PrincipalWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends PrincipalSelect>(args: FindFirstArgs<S, PrincipalFilter, PrincipalOrderBy> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, PrincipalSelect>): QueryBuilder<{
|
|
21
|
+
principal: InferSelectResult<PrincipalWithRelations, S> | null;
|
|
22
|
+
}>;
|
|
23
|
+
findOne<S extends PrincipalSelect>(args: {
|
|
24
|
+
principalId: string;
|
|
25
|
+
select: S;
|
|
26
|
+
} & StrictSelect<S, PrincipalSelect>): QueryBuilder<{
|
|
27
|
+
principal: InferSelectResult<PrincipalWithRelations, S> | null;
|
|
28
|
+
}>;
|
|
29
|
+
create<S extends PrincipalSelect>(args: CreateArgs<S, CreatePrincipalInput['principal']> & {
|
|
30
|
+
select: S;
|
|
31
|
+
} & StrictSelect<S, PrincipalSelect>): QueryBuilder<{
|
|
32
|
+
createPrincipal: {
|
|
33
|
+
principal: InferSelectResult<PrincipalWithRelations, S>;
|
|
34
|
+
};
|
|
35
|
+
}>;
|
|
36
|
+
delete<S extends PrincipalSelect>(args: DeleteArgs<{
|
|
37
|
+
principalId: string;
|
|
38
|
+
}, S> & {
|
|
39
|
+
select: S;
|
|
40
|
+
} & StrictSelect<S, PrincipalSelect>): QueryBuilder<{
|
|
41
|
+
deletePrincipal: {
|
|
42
|
+
principal: InferSelectResult<PrincipalWithRelations, S>;
|
|
43
|
+
};
|
|
44
|
+
}>;
|
|
45
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PrincipalModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class PrincipalModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('Principal', 'principals', 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
|
+
}, 'PrincipalFilter', 'PrincipalOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'Principal',
|
|
25
|
+
fieldName: 'principals',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('Principal', 'principals', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
orderBy: args?.orderBy,
|
|
34
|
+
}, 'PrincipalFilter', 'PrincipalOrderBy', input_types_1.connectionFieldsMap);
|
|
35
|
+
return new query_builder_1.QueryBuilder({
|
|
36
|
+
client: this.client,
|
|
37
|
+
operation: 'query',
|
|
38
|
+
operationName: 'Principal',
|
|
39
|
+
fieldName: 'principal',
|
|
40
|
+
document,
|
|
41
|
+
variables,
|
|
42
|
+
transform: (data) => ({
|
|
43
|
+
principal: data.principals?.nodes?.[0] ?? null,
|
|
44
|
+
}),
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
findOne(args) {
|
|
48
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('Principal', 'principals', args.select, {
|
|
49
|
+
where: {
|
|
50
|
+
principalId: {
|
|
51
|
+
equalTo: args.principalId,
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
first: 1,
|
|
55
|
+
}, 'PrincipalFilter', 'PrincipalOrderBy', input_types_1.connectionFieldsMap);
|
|
56
|
+
return new query_builder_1.QueryBuilder({
|
|
57
|
+
client: this.client,
|
|
58
|
+
operation: 'query',
|
|
59
|
+
operationName: 'Principal',
|
|
60
|
+
fieldName: 'principal',
|
|
61
|
+
document,
|
|
62
|
+
variables,
|
|
63
|
+
transform: (data) => ({
|
|
64
|
+
principal: data.principals?.nodes?.[0] ?? null,
|
|
65
|
+
}),
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
create(args) {
|
|
69
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('Principal', 'createPrincipal', 'principal', args.select, args.data, 'CreatePrincipalInput', input_types_1.connectionFieldsMap);
|
|
70
|
+
return new query_builder_1.QueryBuilder({
|
|
71
|
+
client: this.client,
|
|
72
|
+
operation: 'mutation',
|
|
73
|
+
operationName: 'Principal',
|
|
74
|
+
fieldName: 'createPrincipal',
|
|
75
|
+
document,
|
|
76
|
+
variables,
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
delete(args) {
|
|
80
|
+
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('Principal', 'deletePrincipal', 'principal', {
|
|
81
|
+
principalId: args.where.principalId,
|
|
82
|
+
}, 'DeletePrincipalInput', args.select, input_types_1.connectionFieldsMap);
|
|
83
|
+
return new query_builder_1.QueryBuilder({
|
|
84
|
+
client: this.client,
|
|
85
|
+
operation: 'mutation',
|
|
86
|
+
operationName: 'Principal',
|
|
87
|
+
fieldName: 'deletePrincipal',
|
|
88
|
+
document,
|
|
89
|
+
variables,
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
exports.PrincipalModel = PrincipalModel;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PrincipalEntity 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 { PrincipalEntityWithRelations, PrincipalEntitySelect, PrincipalEntityFilter, PrincipalEntityOrderBy, CreatePrincipalEntityInput, PrincipalEntityPatch } from '../input-types';
|
|
10
|
+
export declare class PrincipalEntityModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends PrincipalEntitySelect>(args: FindManyArgs<S, PrincipalEntityFilter, PrincipalEntityOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, PrincipalEntitySelect>): QueryBuilder<{
|
|
16
|
+
principalEntities: ConnectionResult<InferSelectResult<PrincipalEntityWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends PrincipalEntitySelect>(args: FindFirstArgs<S, PrincipalEntityFilter, PrincipalEntityOrderBy> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, PrincipalEntitySelect>): QueryBuilder<{
|
|
21
|
+
principalEntity: InferSelectResult<PrincipalEntityWithRelations, S> | null;
|
|
22
|
+
}>;
|
|
23
|
+
findOne<S extends PrincipalEntitySelect>(args: {
|
|
24
|
+
id: string;
|
|
25
|
+
select: S;
|
|
26
|
+
} & StrictSelect<S, PrincipalEntitySelect>): QueryBuilder<{
|
|
27
|
+
principalEntity: InferSelectResult<PrincipalEntityWithRelations, S> | null;
|
|
28
|
+
}>;
|
|
29
|
+
create<S extends PrincipalEntitySelect>(args: CreateArgs<S, CreatePrincipalEntityInput['principalEntity']> & {
|
|
30
|
+
select: S;
|
|
31
|
+
} & StrictSelect<S, PrincipalEntitySelect>): QueryBuilder<{
|
|
32
|
+
createPrincipalEntity: {
|
|
33
|
+
principalEntity: InferSelectResult<PrincipalEntityWithRelations, S>;
|
|
34
|
+
};
|
|
35
|
+
}>;
|
|
36
|
+
update<S extends PrincipalEntitySelect>(args: UpdateArgs<S, {
|
|
37
|
+
id: string;
|
|
38
|
+
}, PrincipalEntityPatch> & {
|
|
39
|
+
select: S;
|
|
40
|
+
} & StrictSelect<S, PrincipalEntitySelect>): QueryBuilder<{
|
|
41
|
+
updatePrincipalEntity: {
|
|
42
|
+
principalEntity: InferSelectResult<PrincipalEntityWithRelations, S>;
|
|
43
|
+
};
|
|
44
|
+
}>;
|
|
45
|
+
delete<S extends PrincipalEntitySelect>(args: DeleteArgs<{
|
|
46
|
+
id: string;
|
|
47
|
+
}, S> & {
|
|
48
|
+
select: S;
|
|
49
|
+
} & StrictSelect<S, PrincipalEntitySelect>): QueryBuilder<{
|
|
50
|
+
deletePrincipalEntity: {
|
|
51
|
+
principalEntity: InferSelectResult<PrincipalEntityWithRelations, S>;
|
|
52
|
+
};
|
|
53
|
+
}>;
|
|
54
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PrincipalEntityModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class PrincipalEntityModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('PrincipalEntity', 'principalEntities', 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
|
+
}, 'PrincipalEntityFilter', 'PrincipalEntityOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'PrincipalEntity',
|
|
25
|
+
fieldName: 'principalEntities',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('PrincipalEntity', 'principalEntities', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
orderBy: args?.orderBy,
|
|
34
|
+
}, 'PrincipalEntityFilter', 'PrincipalEntityOrderBy', input_types_1.connectionFieldsMap);
|
|
35
|
+
return new query_builder_1.QueryBuilder({
|
|
36
|
+
client: this.client,
|
|
37
|
+
operation: 'query',
|
|
38
|
+
operationName: 'PrincipalEntity',
|
|
39
|
+
fieldName: 'principalEntity',
|
|
40
|
+
document,
|
|
41
|
+
variables,
|
|
42
|
+
transform: (data) => ({
|
|
43
|
+
principalEntity: data.principalEntities?.nodes?.[0] ?? null,
|
|
44
|
+
}),
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
findOne(args) {
|
|
48
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('PrincipalEntity', 'principalEntities', args.select, {
|
|
49
|
+
where: {
|
|
50
|
+
id: {
|
|
51
|
+
equalTo: args.id,
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
first: 1,
|
|
55
|
+
}, 'PrincipalEntityFilter', 'PrincipalEntityOrderBy', input_types_1.connectionFieldsMap);
|
|
56
|
+
return new query_builder_1.QueryBuilder({
|
|
57
|
+
client: this.client,
|
|
58
|
+
operation: 'query',
|
|
59
|
+
operationName: 'PrincipalEntity',
|
|
60
|
+
fieldName: 'principalEntity',
|
|
61
|
+
document,
|
|
62
|
+
variables,
|
|
63
|
+
transform: (data) => ({
|
|
64
|
+
principalEntity: data.principalEntities?.nodes?.[0] ?? null,
|
|
65
|
+
}),
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
create(args) {
|
|
69
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('PrincipalEntity', 'createPrincipalEntity', 'principalEntity', args.select, args.data, 'CreatePrincipalEntityInput', input_types_1.connectionFieldsMap);
|
|
70
|
+
return new query_builder_1.QueryBuilder({
|
|
71
|
+
client: this.client,
|
|
72
|
+
operation: 'mutation',
|
|
73
|
+
operationName: 'PrincipalEntity',
|
|
74
|
+
fieldName: 'createPrincipalEntity',
|
|
75
|
+
document,
|
|
76
|
+
variables,
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
update(args) {
|
|
80
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('PrincipalEntity', 'updatePrincipalEntity', 'principalEntity', args.select, args.where.id, args.data, 'UpdatePrincipalEntityInput', 'id', 'principalEntityPatch', input_types_1.connectionFieldsMap, undefined);
|
|
81
|
+
return new query_builder_1.QueryBuilder({
|
|
82
|
+
client: this.client,
|
|
83
|
+
operation: 'mutation',
|
|
84
|
+
operationName: 'PrincipalEntity',
|
|
85
|
+
fieldName: 'updatePrincipalEntity',
|
|
86
|
+
document,
|
|
87
|
+
variables,
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
delete(args) {
|
|
91
|
+
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('PrincipalEntity', 'deletePrincipalEntity', 'principalEntity', {
|
|
92
|
+
id: args.where.id,
|
|
93
|
+
}, 'DeletePrincipalEntityInput', args.select, input_types_1.connectionFieldsMap);
|
|
94
|
+
return new query_builder_1.QueryBuilder({
|
|
95
|
+
client: this.client,
|
|
96
|
+
operation: 'mutation',
|
|
97
|
+
operationName: 'PrincipalEntity',
|
|
98
|
+
fieldName: 'deletePrincipalEntity',
|
|
99
|
+
document,
|
|
100
|
+
variables,
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
exports.PrincipalEntityModel = PrincipalEntityModel;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PrincipalScopeOverride 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, InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
+
import type { PrincipalScopeOverrideWithRelations, PrincipalScopeOverrideSelect, PrincipalScopeOverrideFilter, PrincipalScopeOverrideOrderBy, CreatePrincipalScopeOverrideInput } from '../input-types';
|
|
10
|
+
export declare class PrincipalScopeOverrideModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends PrincipalScopeOverrideSelect>(args: FindManyArgs<S, PrincipalScopeOverrideFilter, PrincipalScopeOverrideOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, PrincipalScopeOverrideSelect>): QueryBuilder<{
|
|
16
|
+
principalScopeOverrides: ConnectionResult<InferSelectResult<PrincipalScopeOverrideWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends PrincipalScopeOverrideSelect>(args: FindFirstArgs<S, PrincipalScopeOverrideFilter, PrincipalScopeOverrideOrderBy> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, PrincipalScopeOverrideSelect>): QueryBuilder<{
|
|
21
|
+
principalScopeOverride: InferSelectResult<PrincipalScopeOverrideWithRelations, S> | null;
|
|
22
|
+
}>;
|
|
23
|
+
findOne<S extends PrincipalScopeOverrideSelect>(args: {
|
|
24
|
+
id: string;
|
|
25
|
+
select: S;
|
|
26
|
+
} & StrictSelect<S, PrincipalScopeOverrideSelect>): QueryBuilder<{
|
|
27
|
+
principalScopeOverride: InferSelectResult<PrincipalScopeOverrideWithRelations, S> | null;
|
|
28
|
+
}>;
|
|
29
|
+
create<S extends PrincipalScopeOverrideSelect>(args: CreateArgs<S, CreatePrincipalScopeOverrideInput['principalScopeOverride']> & {
|
|
30
|
+
select: S;
|
|
31
|
+
} & StrictSelect<S, PrincipalScopeOverrideSelect>): QueryBuilder<{
|
|
32
|
+
createPrincipalScopeOverride: {
|
|
33
|
+
principalScopeOverride: InferSelectResult<PrincipalScopeOverrideWithRelations, S>;
|
|
34
|
+
};
|
|
35
|
+
}>;
|
|
36
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PrincipalScopeOverrideModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class PrincipalScopeOverrideModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('PrincipalScopeOverride', 'principalScopeOverrides', 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
|
+
}, 'PrincipalScopeOverrideFilter', 'PrincipalScopeOverrideOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'PrincipalScopeOverride',
|
|
25
|
+
fieldName: 'principalScopeOverrides',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('PrincipalScopeOverride', 'principalScopeOverrides', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
orderBy: args?.orderBy,
|
|
34
|
+
}, 'PrincipalScopeOverrideFilter', 'PrincipalScopeOverrideOrderBy', input_types_1.connectionFieldsMap);
|
|
35
|
+
return new query_builder_1.QueryBuilder({
|
|
36
|
+
client: this.client,
|
|
37
|
+
operation: 'query',
|
|
38
|
+
operationName: 'PrincipalScopeOverride',
|
|
39
|
+
fieldName: 'principalScopeOverride',
|
|
40
|
+
document,
|
|
41
|
+
variables,
|
|
42
|
+
transform: (data) => ({
|
|
43
|
+
principalScopeOverride: data.principalScopeOverrides?.nodes?.[0] ?? null,
|
|
44
|
+
}),
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
findOne(args) {
|
|
48
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('PrincipalScopeOverride', 'principalScopeOverrides', args.select, {
|
|
49
|
+
where: {
|
|
50
|
+
id: {
|
|
51
|
+
equalTo: args.id,
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
first: 1,
|
|
55
|
+
}, 'PrincipalScopeOverrideFilter', 'PrincipalScopeOverrideOrderBy', input_types_1.connectionFieldsMap);
|
|
56
|
+
return new query_builder_1.QueryBuilder({
|
|
57
|
+
client: this.client,
|
|
58
|
+
operation: 'query',
|
|
59
|
+
operationName: 'PrincipalScopeOverride',
|
|
60
|
+
fieldName: 'principalScopeOverride',
|
|
61
|
+
document,
|
|
62
|
+
variables,
|
|
63
|
+
transform: (data) => ({
|
|
64
|
+
principalScopeOverride: data.principalScopeOverrides?.nodes?.[0] ?? null,
|
|
65
|
+
}),
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
create(args) {
|
|
69
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('PrincipalScopeOverride', 'createPrincipalScopeOverride', 'principalScopeOverride', args.select, args.data, 'CreatePrincipalScopeOverrideInput', input_types_1.connectionFieldsMap);
|
|
70
|
+
return new query_builder_1.QueryBuilder({
|
|
71
|
+
client: this.client,
|
|
72
|
+
operation: 'mutation',
|
|
73
|
+
operationName: 'PrincipalScopeOverride',
|
|
74
|
+
fieldName: 'createPrincipalScopeOverride',
|
|
75
|
+
document,
|
|
76
|
+
variables,
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
exports.PrincipalScopeOverrideModel = PrincipalScopeOverrideModel;
|