@constructive-sdk/cli 0.29.1 → 0.29.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/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
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
// ============ Connection Fields Map ============
|
|
2
2
|
export const connectionFieldsMap = {
|
|
3
|
+
Principal: {
|
|
4
|
+
principalEntities: 'PrincipalEntity',
|
|
5
|
+
principalScopeOverrides: 'PrincipalScopeOverride',
|
|
6
|
+
},
|
|
3
7
|
User: {
|
|
8
|
+
ownedPrincipals: 'Principal',
|
|
9
|
+
principals: 'Principal',
|
|
10
|
+
principalEntitiesByEntityId: 'PrincipalEntity',
|
|
4
11
|
ownedEmails: 'Email',
|
|
5
12
|
ownedPhoneNumbers: 'PhoneNumber',
|
|
6
13
|
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';
|
|
@@ -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';
|
|
@@ -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,76 @@
|
|
|
1
|
+
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, } from '../query-builder';
|
|
2
|
+
import { connectionFieldsMap } from '../input-types';
|
|
3
|
+
export class OrgApiKeyListModel {
|
|
4
|
+
client;
|
|
5
|
+
constructor(client) {
|
|
6
|
+
this.client = client;
|
|
7
|
+
}
|
|
8
|
+
findMany(args) {
|
|
9
|
+
const { document, variables } = buildFindManyDocument('OrgApiKeyList', 'orgApiKeyLists', 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
|
+
}, 'OrgApiKeyListFilter', 'OrgApiKeyListOrderBy', connectionFieldsMap);
|
|
18
|
+
return new QueryBuilder({
|
|
19
|
+
client: this.client,
|
|
20
|
+
operation: 'query',
|
|
21
|
+
operationName: 'OrgApiKeyList',
|
|
22
|
+
fieldName: 'orgApiKeyLists',
|
|
23
|
+
document,
|
|
24
|
+
variables,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
findFirst(args) {
|
|
28
|
+
const { document, variables } = buildFindFirstDocument('OrgApiKeyList', 'orgApiKeyLists', args.select, {
|
|
29
|
+
where: args?.where,
|
|
30
|
+
orderBy: args?.orderBy,
|
|
31
|
+
}, 'OrgApiKeyListFilter', 'OrgApiKeyListOrderBy', connectionFieldsMap);
|
|
32
|
+
return new QueryBuilder({
|
|
33
|
+
client: this.client,
|
|
34
|
+
operation: 'query',
|
|
35
|
+
operationName: 'OrgApiKeyList',
|
|
36
|
+
fieldName: 'orgApiKeyList',
|
|
37
|
+
document,
|
|
38
|
+
variables,
|
|
39
|
+
transform: (data) => ({
|
|
40
|
+
orgApiKeyList: data.orgApiKeyLists?.nodes?.[0] ?? null,
|
|
41
|
+
}),
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
findOne(args) {
|
|
45
|
+
const { document, variables } = buildFindManyDocument('OrgApiKeyList', 'orgApiKeyLists', args.select, {
|
|
46
|
+
where: {
|
|
47
|
+
id: {
|
|
48
|
+
equalTo: args.id,
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
first: 1,
|
|
52
|
+
}, 'OrgApiKeyListFilter', 'OrgApiKeyListOrderBy', connectionFieldsMap);
|
|
53
|
+
return new QueryBuilder({
|
|
54
|
+
client: this.client,
|
|
55
|
+
operation: 'query',
|
|
56
|
+
operationName: 'OrgApiKeyList',
|
|
57
|
+
fieldName: 'orgApiKeyList',
|
|
58
|
+
document,
|
|
59
|
+
variables,
|
|
60
|
+
transform: (data) => ({
|
|
61
|
+
orgApiKeyList: data.orgApiKeyLists?.nodes?.[0] ?? null,
|
|
62
|
+
}),
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
create(args) {
|
|
66
|
+
const { document, variables } = buildCreateDocument('OrgApiKeyList', 'createOrgApiKeyList', 'orgApiKeyList', args.select, args.data, 'CreateOrgApiKeyListInput', connectionFieldsMap);
|
|
67
|
+
return new QueryBuilder({
|
|
68
|
+
client: this.client,
|
|
69
|
+
operation: 'mutation',
|
|
70
|
+
operationName: 'OrgApiKeyList',
|
|
71
|
+
fieldName: 'createOrgApiKeyList',
|
|
72
|
+
document,
|
|
73
|
+
variables,
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -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,89 @@
|
|
|
1
|
+
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildDeleteByPkDocument, } from '../query-builder';
|
|
2
|
+
import { connectionFieldsMap } from '../input-types';
|
|
3
|
+
export class PrincipalModel {
|
|
4
|
+
client;
|
|
5
|
+
constructor(client) {
|
|
6
|
+
this.client = client;
|
|
7
|
+
}
|
|
8
|
+
findMany(args) {
|
|
9
|
+
const { document, variables } = buildFindManyDocument('Principal', 'principals', 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
|
+
}, 'PrincipalFilter', 'PrincipalOrderBy', connectionFieldsMap);
|
|
18
|
+
return new QueryBuilder({
|
|
19
|
+
client: this.client,
|
|
20
|
+
operation: 'query',
|
|
21
|
+
operationName: 'Principal',
|
|
22
|
+
fieldName: 'principals',
|
|
23
|
+
document,
|
|
24
|
+
variables,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
findFirst(args) {
|
|
28
|
+
const { document, variables } = buildFindFirstDocument('Principal', 'principals', args.select, {
|
|
29
|
+
where: args?.where,
|
|
30
|
+
orderBy: args?.orderBy,
|
|
31
|
+
}, 'PrincipalFilter', 'PrincipalOrderBy', connectionFieldsMap);
|
|
32
|
+
return new QueryBuilder({
|
|
33
|
+
client: this.client,
|
|
34
|
+
operation: 'query',
|
|
35
|
+
operationName: 'Principal',
|
|
36
|
+
fieldName: 'principal',
|
|
37
|
+
document,
|
|
38
|
+
variables,
|
|
39
|
+
transform: (data) => ({
|
|
40
|
+
principal: data.principals?.nodes?.[0] ?? null,
|
|
41
|
+
}),
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
findOne(args) {
|
|
45
|
+
const { document, variables } = buildFindManyDocument('Principal', 'principals', args.select, {
|
|
46
|
+
where: {
|
|
47
|
+
principalId: {
|
|
48
|
+
equalTo: args.principalId,
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
first: 1,
|
|
52
|
+
}, 'PrincipalFilter', 'PrincipalOrderBy', connectionFieldsMap);
|
|
53
|
+
return new QueryBuilder({
|
|
54
|
+
client: this.client,
|
|
55
|
+
operation: 'query',
|
|
56
|
+
operationName: 'Principal',
|
|
57
|
+
fieldName: 'principal',
|
|
58
|
+
document,
|
|
59
|
+
variables,
|
|
60
|
+
transform: (data) => ({
|
|
61
|
+
principal: data.principals?.nodes?.[0] ?? null,
|
|
62
|
+
}),
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
create(args) {
|
|
66
|
+
const { document, variables } = buildCreateDocument('Principal', 'createPrincipal', 'principal', args.select, args.data, 'CreatePrincipalInput', connectionFieldsMap);
|
|
67
|
+
return new QueryBuilder({
|
|
68
|
+
client: this.client,
|
|
69
|
+
operation: 'mutation',
|
|
70
|
+
operationName: 'Principal',
|
|
71
|
+
fieldName: 'createPrincipal',
|
|
72
|
+
document,
|
|
73
|
+
variables,
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
delete(args) {
|
|
77
|
+
const { document, variables } = buildDeleteByPkDocument('Principal', 'deletePrincipal', 'principal', {
|
|
78
|
+
principalId: args.where.principalId,
|
|
79
|
+
}, 'DeletePrincipalInput', args.select, connectionFieldsMap);
|
|
80
|
+
return new QueryBuilder({
|
|
81
|
+
client: this.client,
|
|
82
|
+
operation: 'mutation',
|
|
83
|
+
operationName: 'Principal',
|
|
84
|
+
fieldName: 'deletePrincipal',
|
|
85
|
+
document,
|
|
86
|
+
variables,
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -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,100 @@
|
|
|
1
|
+
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
|
|
2
|
+
import { connectionFieldsMap } from '../input-types';
|
|
3
|
+
export class PrincipalEntityModel {
|
|
4
|
+
client;
|
|
5
|
+
constructor(client) {
|
|
6
|
+
this.client = client;
|
|
7
|
+
}
|
|
8
|
+
findMany(args) {
|
|
9
|
+
const { document, variables } = buildFindManyDocument('PrincipalEntity', 'principalEntities', 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
|
+
}, 'PrincipalEntityFilter', 'PrincipalEntityOrderBy', connectionFieldsMap);
|
|
18
|
+
return new QueryBuilder({
|
|
19
|
+
client: this.client,
|
|
20
|
+
operation: 'query',
|
|
21
|
+
operationName: 'PrincipalEntity',
|
|
22
|
+
fieldName: 'principalEntities',
|
|
23
|
+
document,
|
|
24
|
+
variables,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
findFirst(args) {
|
|
28
|
+
const { document, variables } = buildFindFirstDocument('PrincipalEntity', 'principalEntities', args.select, {
|
|
29
|
+
where: args?.where,
|
|
30
|
+
orderBy: args?.orderBy,
|
|
31
|
+
}, 'PrincipalEntityFilter', 'PrincipalEntityOrderBy', connectionFieldsMap);
|
|
32
|
+
return new QueryBuilder({
|
|
33
|
+
client: this.client,
|
|
34
|
+
operation: 'query',
|
|
35
|
+
operationName: 'PrincipalEntity',
|
|
36
|
+
fieldName: 'principalEntity',
|
|
37
|
+
document,
|
|
38
|
+
variables,
|
|
39
|
+
transform: (data) => ({
|
|
40
|
+
principalEntity: data.principalEntities?.nodes?.[0] ?? null,
|
|
41
|
+
}),
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
findOne(args) {
|
|
45
|
+
const { document, variables } = buildFindManyDocument('PrincipalEntity', 'principalEntities', args.select, {
|
|
46
|
+
where: {
|
|
47
|
+
id: {
|
|
48
|
+
equalTo: args.id,
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
first: 1,
|
|
52
|
+
}, 'PrincipalEntityFilter', 'PrincipalEntityOrderBy', connectionFieldsMap);
|
|
53
|
+
return new QueryBuilder({
|
|
54
|
+
client: this.client,
|
|
55
|
+
operation: 'query',
|
|
56
|
+
operationName: 'PrincipalEntity',
|
|
57
|
+
fieldName: 'principalEntity',
|
|
58
|
+
document,
|
|
59
|
+
variables,
|
|
60
|
+
transform: (data) => ({
|
|
61
|
+
principalEntity: data.principalEntities?.nodes?.[0] ?? null,
|
|
62
|
+
}),
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
create(args) {
|
|
66
|
+
const { document, variables } = buildCreateDocument('PrincipalEntity', 'createPrincipalEntity', 'principalEntity', args.select, args.data, 'CreatePrincipalEntityInput', connectionFieldsMap);
|
|
67
|
+
return new QueryBuilder({
|
|
68
|
+
client: this.client,
|
|
69
|
+
operation: 'mutation',
|
|
70
|
+
operationName: 'PrincipalEntity',
|
|
71
|
+
fieldName: 'createPrincipalEntity',
|
|
72
|
+
document,
|
|
73
|
+
variables,
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
update(args) {
|
|
77
|
+
const { document, variables } = buildUpdateByPkDocument('PrincipalEntity', 'updatePrincipalEntity', 'principalEntity', args.select, args.where.id, args.data, 'UpdatePrincipalEntityInput', 'id', 'principalEntityPatch', connectionFieldsMap, undefined);
|
|
78
|
+
return new QueryBuilder({
|
|
79
|
+
client: this.client,
|
|
80
|
+
operation: 'mutation',
|
|
81
|
+
operationName: 'PrincipalEntity',
|
|
82
|
+
fieldName: 'updatePrincipalEntity',
|
|
83
|
+
document,
|
|
84
|
+
variables,
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
delete(args) {
|
|
88
|
+
const { document, variables } = buildDeleteByPkDocument('PrincipalEntity', 'deletePrincipalEntity', 'principalEntity', {
|
|
89
|
+
id: args.where.id,
|
|
90
|
+
}, 'DeletePrincipalEntityInput', args.select, connectionFieldsMap);
|
|
91
|
+
return new QueryBuilder({
|
|
92
|
+
client: this.client,
|
|
93
|
+
operation: 'mutation',
|
|
94
|
+
operationName: 'PrincipalEntity',
|
|
95
|
+
fieldName: 'deletePrincipalEntity',
|
|
96
|
+
document,
|
|
97
|
+
variables,
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -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,76 @@
|
|
|
1
|
+
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, } from '../query-builder';
|
|
2
|
+
import { connectionFieldsMap } from '../input-types';
|
|
3
|
+
export class PrincipalScopeOverrideModel {
|
|
4
|
+
client;
|
|
5
|
+
constructor(client) {
|
|
6
|
+
this.client = client;
|
|
7
|
+
}
|
|
8
|
+
findMany(args) {
|
|
9
|
+
const { document, variables } = buildFindManyDocument('PrincipalScopeOverride', 'principalScopeOverrides', 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
|
+
}, 'PrincipalScopeOverrideFilter', 'PrincipalScopeOverrideOrderBy', connectionFieldsMap);
|
|
18
|
+
return new QueryBuilder({
|
|
19
|
+
client: this.client,
|
|
20
|
+
operation: 'query',
|
|
21
|
+
operationName: 'PrincipalScopeOverride',
|
|
22
|
+
fieldName: 'principalScopeOverrides',
|
|
23
|
+
document,
|
|
24
|
+
variables,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
findFirst(args) {
|
|
28
|
+
const { document, variables } = buildFindFirstDocument('PrincipalScopeOverride', 'principalScopeOverrides', args.select, {
|
|
29
|
+
where: args?.where,
|
|
30
|
+
orderBy: args?.orderBy,
|
|
31
|
+
}, 'PrincipalScopeOverrideFilter', 'PrincipalScopeOverrideOrderBy', connectionFieldsMap);
|
|
32
|
+
return new QueryBuilder({
|
|
33
|
+
client: this.client,
|
|
34
|
+
operation: 'query',
|
|
35
|
+
operationName: 'PrincipalScopeOverride',
|
|
36
|
+
fieldName: 'principalScopeOverride',
|
|
37
|
+
document,
|
|
38
|
+
variables,
|
|
39
|
+
transform: (data) => ({
|
|
40
|
+
principalScopeOverride: data.principalScopeOverrides?.nodes?.[0] ?? null,
|
|
41
|
+
}),
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
findOne(args) {
|
|
45
|
+
const { document, variables } = buildFindManyDocument('PrincipalScopeOverride', 'principalScopeOverrides', args.select, {
|
|
46
|
+
where: {
|
|
47
|
+
id: {
|
|
48
|
+
equalTo: args.id,
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
first: 1,
|
|
52
|
+
}, 'PrincipalScopeOverrideFilter', 'PrincipalScopeOverrideOrderBy', connectionFieldsMap);
|
|
53
|
+
return new QueryBuilder({
|
|
54
|
+
client: this.client,
|
|
55
|
+
operation: 'query',
|
|
56
|
+
operationName: 'PrincipalScopeOverride',
|
|
57
|
+
fieldName: 'principalScopeOverride',
|
|
58
|
+
document,
|
|
59
|
+
variables,
|
|
60
|
+
transform: (data) => ({
|
|
61
|
+
principalScopeOverride: data.principalScopeOverrides?.nodes?.[0] ?? null,
|
|
62
|
+
}),
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
create(args) {
|
|
66
|
+
const { document, variables } = buildCreateDocument('PrincipalScopeOverride', 'createPrincipalScopeOverride', 'principalScopeOverride', args.select, args.data, 'CreatePrincipalScopeOverrideInput', connectionFieldsMap);
|
|
67
|
+
return new QueryBuilder({
|
|
68
|
+
client: this.client,
|
|
69
|
+
operation: 'mutation',
|
|
70
|
+
operationName: 'PrincipalScopeOverride',
|
|
71
|
+
fieldName: 'createPrincipalScopeOverride',
|
|
72
|
+
document,
|
|
73
|
+
variables,
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { OrmClient } from '../client';
|
|
7
7
|
import { QueryBuilder } from '../query-builder';
|
|
8
8
|
import type { InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
-
import type { SignOutInput, SendAccountDeletionEmailInput, CheckPasswordInput, DisconnectAccountInput, RevokeApiKeyInput, RevokeSessionInput, VerifyPasswordInput, VerifyTotpInput, ConfirmDeleteAccountInput, SetPasswordInput, VerifyEmailInput, ProvisionNewUserInput, ResetPasswordInput, SignInCrossOriginInput, SignInSmsOtpInput, SignUpSmsInput, SignUpInput, SignInInput, LinkIdentityInput, ExtendTokenExpiresInput, CreateApiKeyInput, RequestCrossOriginTokenInput, ForgotPasswordInput, SendVerificationEmailInput, ProvisionBucketInput, SignOutPayload, SendAccountDeletionEmailPayload, CheckPasswordPayload, DisconnectAccountPayload, RevokeApiKeyPayload, RevokeSessionPayload, VerifyPasswordPayload, VerifyTotpPayload, ConfirmDeleteAccountPayload, SetPasswordPayload, VerifyEmailPayload, ProvisionNewUserPayload, ResetPasswordPayload, SignInCrossOriginPayload, SignInSmsOtpPayload, SignUpSmsPayload, SignUpPayload, SignInPayload, LinkIdentityPayload, ExtendTokenExpiresPayload, CreateApiKeyPayload, RequestCrossOriginTokenPayload, ForgotPasswordPayload, SendVerificationEmailPayload, ProvisionBucketPayload, SignOutPayloadSelect, SendAccountDeletionEmailPayloadSelect, CheckPasswordPayloadSelect, DisconnectAccountPayloadSelect, RevokeApiKeyPayloadSelect, RevokeSessionPayloadSelect, VerifyPasswordPayloadSelect, VerifyTotpPayloadSelect, ConfirmDeleteAccountPayloadSelect, SetPasswordPayloadSelect, VerifyEmailPayloadSelect, ProvisionNewUserPayloadSelect, ResetPasswordPayloadSelect, SignInCrossOriginPayloadSelect, SignInSmsOtpPayloadSelect, SignUpSmsPayloadSelect, SignUpPayloadSelect, SignInPayloadSelect, LinkIdentityPayloadSelect, ExtendTokenExpiresPayloadSelect, CreateApiKeyPayloadSelect, RequestCrossOriginTokenPayloadSelect, ForgotPasswordPayloadSelect, SendVerificationEmailPayloadSelect, ProvisionBucketPayloadSelect } from '../input-types';
|
|
9
|
+
import type { SignOutInput, SendAccountDeletionEmailInput, CheckPasswordInput, DeleteOrgPrincipalInput, DisconnectAccountInput, RevokeApiKeyInput, RevokeSessionInput, VerifyPasswordInput, VerifyTotpInput, ConfirmDeleteAccountInput, RevokeOrgApiKeyInput, SetPasswordInput, VerifyEmailInput, ProvisionNewUserInput, ResetPasswordInput, SignInCrossOriginInput, SignInSmsOtpInput, SignUpSmsInput, SignUpInput, SignInInput, LinkIdentityInput, CreateOrgPrincipalInput, ExtendTokenExpiresInput, CreateOrgApiKeyInput, CreateApiKeyInput, RequestCrossOriginTokenInput, ForgotPasswordInput, SendVerificationEmailInput, ProvisionBucketInput, SignOutPayload, SendAccountDeletionEmailPayload, CheckPasswordPayload, DeleteOrgPrincipalPayload, DisconnectAccountPayload, RevokeApiKeyPayload, RevokeSessionPayload, VerifyPasswordPayload, VerifyTotpPayload, ConfirmDeleteAccountPayload, RevokeOrgApiKeyPayload, SetPasswordPayload, VerifyEmailPayload, ProvisionNewUserPayload, ResetPasswordPayload, SignInCrossOriginPayload, SignInSmsOtpPayload, SignUpSmsPayload, SignUpPayload, SignInPayload, LinkIdentityPayload, CreateOrgPrincipalPayload, ExtendTokenExpiresPayload, CreateOrgApiKeyPayload, CreateApiKeyPayload, RequestCrossOriginTokenPayload, ForgotPasswordPayload, SendVerificationEmailPayload, ProvisionBucketPayload, SignOutPayloadSelect, SendAccountDeletionEmailPayloadSelect, CheckPasswordPayloadSelect, DeleteOrgPrincipalPayloadSelect, DisconnectAccountPayloadSelect, RevokeApiKeyPayloadSelect, RevokeSessionPayloadSelect, VerifyPasswordPayloadSelect, VerifyTotpPayloadSelect, ConfirmDeleteAccountPayloadSelect, RevokeOrgApiKeyPayloadSelect, SetPasswordPayloadSelect, VerifyEmailPayloadSelect, ProvisionNewUserPayloadSelect, ResetPasswordPayloadSelect, SignInCrossOriginPayloadSelect, SignInSmsOtpPayloadSelect, SignUpSmsPayloadSelect, SignUpPayloadSelect, SignInPayloadSelect, LinkIdentityPayloadSelect, CreateOrgPrincipalPayloadSelect, ExtendTokenExpiresPayloadSelect, CreateOrgApiKeyPayloadSelect, CreateApiKeyPayloadSelect, RequestCrossOriginTokenPayloadSelect, ForgotPasswordPayloadSelect, SendVerificationEmailPayloadSelect, ProvisionBucketPayloadSelect } from '../input-types';
|
|
10
10
|
export interface SignOutVariables {
|
|
11
11
|
input: SignOutInput;
|
|
12
12
|
}
|
|
@@ -16,6 +16,9 @@ export interface SendAccountDeletionEmailVariables {
|
|
|
16
16
|
export interface CheckPasswordVariables {
|
|
17
17
|
input: CheckPasswordInput;
|
|
18
18
|
}
|
|
19
|
+
export interface DeleteOrgPrincipalVariables {
|
|
20
|
+
input: DeleteOrgPrincipalInput;
|
|
21
|
+
}
|
|
19
22
|
export interface DisconnectAccountVariables {
|
|
20
23
|
input: DisconnectAccountInput;
|
|
21
24
|
}
|
|
@@ -34,6 +37,9 @@ export interface VerifyTotpVariables {
|
|
|
34
37
|
export interface ConfirmDeleteAccountVariables {
|
|
35
38
|
input: ConfirmDeleteAccountInput;
|
|
36
39
|
}
|
|
40
|
+
export interface RevokeOrgApiKeyVariables {
|
|
41
|
+
input: RevokeOrgApiKeyInput;
|
|
42
|
+
}
|
|
37
43
|
export interface SetPasswordVariables {
|
|
38
44
|
input: SetPasswordInput;
|
|
39
45
|
}
|
|
@@ -64,9 +70,15 @@ export interface SignInVariables {
|
|
|
64
70
|
export interface LinkIdentityVariables {
|
|
65
71
|
input: LinkIdentityInput;
|
|
66
72
|
}
|
|
73
|
+
export interface CreateOrgPrincipalVariables {
|
|
74
|
+
input: CreateOrgPrincipalInput;
|
|
75
|
+
}
|
|
67
76
|
export interface ExtendTokenExpiresVariables {
|
|
68
77
|
input: ExtendTokenExpiresInput;
|
|
69
78
|
}
|
|
79
|
+
export interface CreateOrgApiKeyVariables {
|
|
80
|
+
input: CreateOrgApiKeyInput;
|
|
81
|
+
}
|
|
70
82
|
export interface CreateApiKeyVariables {
|
|
71
83
|
input: CreateApiKeyInput;
|
|
72
84
|
}
|
|
@@ -105,6 +117,11 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
105
117
|
} & StrictSelect<S, CheckPasswordPayloadSelect>) => QueryBuilder<{
|
|
106
118
|
checkPassword: InferSelectResult<CheckPasswordPayload, S> | null;
|
|
107
119
|
}>;
|
|
120
|
+
deleteOrgPrincipal: <S extends DeleteOrgPrincipalPayloadSelect>(args: DeleteOrgPrincipalVariables, options: {
|
|
121
|
+
select: S;
|
|
122
|
+
} & StrictSelect<S, DeleteOrgPrincipalPayloadSelect>) => QueryBuilder<{
|
|
123
|
+
deleteOrgPrincipal: InferSelectResult<DeleteOrgPrincipalPayload, S> | null;
|
|
124
|
+
}>;
|
|
108
125
|
disconnectAccount: <S extends DisconnectAccountPayloadSelect>(args: DisconnectAccountVariables, options: {
|
|
109
126
|
select: S;
|
|
110
127
|
} & StrictSelect<S, DisconnectAccountPayloadSelect>) => QueryBuilder<{
|
|
@@ -135,6 +152,11 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
135
152
|
} & StrictSelect<S, ConfirmDeleteAccountPayloadSelect>) => QueryBuilder<{
|
|
136
153
|
confirmDeleteAccount: InferSelectResult<ConfirmDeleteAccountPayload, S> | null;
|
|
137
154
|
}>;
|
|
155
|
+
revokeOrgApiKey: <S extends RevokeOrgApiKeyPayloadSelect>(args: RevokeOrgApiKeyVariables, options: {
|
|
156
|
+
select: S;
|
|
157
|
+
} & StrictSelect<S, RevokeOrgApiKeyPayloadSelect>) => QueryBuilder<{
|
|
158
|
+
revokeOrgApiKey: InferSelectResult<RevokeOrgApiKeyPayload, S> | null;
|
|
159
|
+
}>;
|
|
138
160
|
setPassword: <S extends SetPasswordPayloadSelect>(args: SetPasswordVariables, options: {
|
|
139
161
|
select: S;
|
|
140
162
|
} & StrictSelect<S, SetPasswordPayloadSelect>) => QueryBuilder<{
|
|
@@ -185,11 +207,21 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
185
207
|
} & StrictSelect<S, LinkIdentityPayloadSelect>) => QueryBuilder<{
|
|
186
208
|
linkIdentity: InferSelectResult<LinkIdentityPayload, S> | null;
|
|
187
209
|
}>;
|
|
210
|
+
createOrgPrincipal: <S extends CreateOrgPrincipalPayloadSelect>(args: CreateOrgPrincipalVariables, options: {
|
|
211
|
+
select: S;
|
|
212
|
+
} & StrictSelect<S, CreateOrgPrincipalPayloadSelect>) => QueryBuilder<{
|
|
213
|
+
createOrgPrincipal: InferSelectResult<CreateOrgPrincipalPayload, S> | null;
|
|
214
|
+
}>;
|
|
188
215
|
extendTokenExpires: <S extends ExtendTokenExpiresPayloadSelect>(args: ExtendTokenExpiresVariables, options: {
|
|
189
216
|
select: S;
|
|
190
217
|
} & StrictSelect<S, ExtendTokenExpiresPayloadSelect>) => QueryBuilder<{
|
|
191
218
|
extendTokenExpires: InferSelectResult<ExtendTokenExpiresPayload, S> | null;
|
|
192
219
|
}>;
|
|
220
|
+
createOrgApiKey: <S extends CreateOrgApiKeyPayloadSelect>(args: CreateOrgApiKeyVariables, options: {
|
|
221
|
+
select: S;
|
|
222
|
+
} & StrictSelect<S, CreateOrgApiKeyPayloadSelect>) => QueryBuilder<{
|
|
223
|
+
createOrgApiKey: InferSelectResult<CreateOrgApiKeyPayload, S> | null;
|
|
224
|
+
}>;
|
|
193
225
|
createApiKey: <S extends CreateApiKeyPayloadSelect>(args: CreateApiKeyVariables, options: {
|
|
194
226
|
select: S;
|
|
195
227
|
} & StrictSelect<S, CreateApiKeyPayloadSelect>) => QueryBuilder<{
|