@constructive-io/sdk 0.14.7 → 0.14.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/admin/orm/index.d.ts +4 -2
- package/admin/orm/index.js +4 -2
- package/admin/orm/input-types.d.ts +303 -142
- package/admin/orm/models/index.d.ts +2 -1
- package/admin/orm/models/index.js +5 -3
- package/admin/orm/models/orgMembershipSetting.d.ts +56 -0
- package/admin/orm/models/orgMembershipSetting.js +100 -0
- package/auth/orm/index.d.ts +9 -5
- package/auth/orm/index.js +4 -0
- package/auth/orm/input-types.d.ts +525 -81
- package/auth/orm/input-types.js +1 -0
- package/auth/orm/models/identityProvider.d.ts +32 -0
- package/auth/orm/models/identityProvider.js +55 -0
- package/auth/orm/models/index.d.ts +2 -0
- package/auth/orm/models/index.js +5 -1
- package/auth/orm/models/webauthnCredential.d.ts +56 -0
- package/auth/orm/models/webauthnCredential.js +100 -0
- package/auth/orm/mutation/index.d.ts +9 -9
- package/auth/orm/mutation/index.js +12 -12
- package/esm/admin/orm/index.d.ts +4 -2
- package/esm/admin/orm/index.js +4 -2
- package/esm/admin/orm/input-types.d.ts +303 -142
- package/esm/admin/orm/models/index.d.ts +2 -1
- package/esm/admin/orm/models/index.js +2 -1
- package/esm/admin/orm/models/orgMembershipSetting.d.ts +56 -0
- package/esm/admin/orm/models/orgMembershipSetting.js +96 -0
- package/esm/auth/orm/index.d.ts +9 -5
- package/esm/auth/orm/index.js +4 -0
- package/esm/auth/orm/input-types.d.ts +525 -81
- package/esm/auth/orm/input-types.js +1 -0
- package/esm/auth/orm/models/identityProvider.d.ts +32 -0
- package/esm/auth/orm/models/identityProvider.js +51 -0
- package/esm/auth/orm/models/index.d.ts +2 -0
- package/esm/auth/orm/models/index.js +2 -0
- package/esm/auth/orm/models/webauthnCredential.d.ts +56 -0
- package/esm/auth/orm/models/webauthnCredential.js +96 -0
- package/esm/auth/orm/mutation/index.d.ts +9 -9
- package/esm/auth/orm/mutation/index.js +12 -12
- package/esm/objects/orm/input-types.d.ts +12 -0
- package/esm/public/orm/index.d.ts +19 -7
- package/esm/public/orm/index.js +14 -2
- package/esm/public/orm/input-types.d.ts +1827 -366
- package/esm/public/orm/input-types.js +7 -0
- package/esm/public/orm/models/identityProvider.d.ts +32 -0
- package/esm/public/orm/models/identityProvider.js +51 -0
- package/esm/public/orm/models/identityProvidersModule.d.ts +56 -0
- package/esm/public/orm/models/identityProvidersModule.js +96 -0
- package/esm/public/orm/models/index.d.ts +7 -1
- package/esm/public/orm/models/index.js +7 -1
- package/esm/public/orm/models/notificationsModule.d.ts +56 -0
- package/esm/public/orm/models/notificationsModule.js +96 -0
- package/esm/public/orm/models/orgMembershipSetting.d.ts +56 -0
- package/esm/public/orm/models/orgMembershipSetting.js +96 -0
- package/esm/public/orm/models/webauthnAuthModule.d.ts +56 -0
- package/esm/public/orm/models/webauthnAuthModule.js +96 -0
- package/esm/public/orm/models/webauthnCredential.d.ts +56 -0
- package/esm/public/orm/models/webauthnCredential.js +96 -0
- package/esm/public/orm/mutation/index.d.ts +9 -9
- package/esm/public/orm/mutation/index.js +12 -12
- package/objects/orm/input-types.d.ts +12 -0
- package/package.json +3 -3
- package/public/orm/index.d.ts +19 -7
- package/public/orm/index.js +14 -2
- package/public/orm/input-types.d.ts +1827 -366
- package/public/orm/input-types.js +7 -0
- package/public/orm/models/identityProvider.d.ts +32 -0
- package/public/orm/models/identityProvider.js +55 -0
- package/public/orm/models/identityProvidersModule.d.ts +56 -0
- package/public/orm/models/identityProvidersModule.js +100 -0
- package/public/orm/models/index.d.ts +7 -1
- package/public/orm/models/index.js +17 -5
- package/public/orm/models/notificationsModule.d.ts +56 -0
- package/public/orm/models/notificationsModule.js +100 -0
- package/public/orm/models/orgMembershipSetting.d.ts +56 -0
- package/public/orm/models/orgMembershipSetting.js +100 -0
- package/public/orm/models/webauthnAuthModule.d.ts +56 -0
- package/public/orm/models/webauthnAuthModule.js +100 -0
- package/public/orm/models/webauthnCredential.d.ts +56 -0
- package/public/orm/models/webauthnCredential.js +100 -0
- package/public/orm/mutation/index.d.ts +9 -9
- package/public/orm/mutation/index.js +12 -12
package/auth/orm/input-types.js
CHANGED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IdentityProvider 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 { IdentityProviderWithRelations, IdentityProviderSelect, IdentityProviderFilter, IdentityProviderOrderBy, CreateIdentityProviderInput } from '../input-types';
|
|
10
|
+
export declare class IdentityProviderModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends IdentityProviderSelect>(args: FindManyArgs<S, IdentityProviderFilter, IdentityProviderOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, IdentityProviderSelect>): QueryBuilder<{
|
|
16
|
+
identityProviders: ConnectionResult<InferSelectResult<IdentityProviderWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends IdentityProviderSelect>(args: FindFirstArgs<S, IdentityProviderFilter> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, IdentityProviderSelect>): QueryBuilder<{
|
|
21
|
+
identityProviders: {
|
|
22
|
+
nodes: InferSelectResult<IdentityProviderWithRelations, S>[];
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
25
|
+
create<S extends IdentityProviderSelect>(args: CreateArgs<S, CreateIdentityProviderInput['identityProvider']> & {
|
|
26
|
+
select: S;
|
|
27
|
+
} & StrictSelect<S, IdentityProviderSelect>): QueryBuilder<{
|
|
28
|
+
createIdentityProvider: {
|
|
29
|
+
identityProvider: InferSelectResult<IdentityProviderWithRelations, S>;
|
|
30
|
+
};
|
|
31
|
+
}>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IdentityProviderModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class IdentityProviderModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('IdentityProvider', 'identityProviders', 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
|
+
}, 'IdentityProviderFilter', 'IdentityProviderOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'IdentityProvider',
|
|
25
|
+
fieldName: 'identityProviders',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('IdentityProvider', 'identityProviders', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
}, 'IdentityProviderFilter', input_types_1.connectionFieldsMap);
|
|
34
|
+
return new query_builder_1.QueryBuilder({
|
|
35
|
+
client: this.client,
|
|
36
|
+
operation: 'query',
|
|
37
|
+
operationName: 'IdentityProvider',
|
|
38
|
+
fieldName: 'identityProviders',
|
|
39
|
+
document,
|
|
40
|
+
variables,
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
create(args) {
|
|
44
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('IdentityProvider', 'createIdentityProvider', 'identityProvider', args.select, args.data, 'CreateIdentityProviderInput', input_types_1.connectionFieldsMap);
|
|
45
|
+
return new query_builder_1.QueryBuilder({
|
|
46
|
+
client: this.client,
|
|
47
|
+
operation: 'mutation',
|
|
48
|
+
operationName: 'IdentityProvider',
|
|
49
|
+
fieldName: 'createIdentityProvider',
|
|
50
|
+
document,
|
|
51
|
+
variables,
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
exports.IdentityProviderModel = IdentityProviderModel;
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
export { EmailModel } from './email';
|
|
7
7
|
export { PhoneNumberModel } from './phoneNumber';
|
|
8
8
|
export { CryptoAddressModel } from './cryptoAddress';
|
|
9
|
+
export { WebauthnCredentialModel } from './webauthnCredential';
|
|
9
10
|
export { AuditLogModel } from './auditLog';
|
|
11
|
+
export { IdentityProviderModel } from './identityProvider';
|
|
10
12
|
export { RoleTypeModel } from './roleType';
|
|
11
13
|
export { UserConnectedAccountModel } from './userConnectedAccount';
|
|
12
14
|
export { UserModel } from './user';
|
package/auth/orm/models/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserModel = exports.UserConnectedAccountModel = exports.RoleTypeModel = exports.AuditLogModel = exports.CryptoAddressModel = exports.PhoneNumberModel = exports.EmailModel = void 0;
|
|
3
|
+
exports.UserModel = exports.UserConnectedAccountModel = exports.RoleTypeModel = exports.IdentityProviderModel = exports.AuditLogModel = exports.WebauthnCredentialModel = exports.CryptoAddressModel = exports.PhoneNumberModel = exports.EmailModel = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Models barrel export
|
|
6
6
|
* @generated by @constructive-io/graphql-codegen
|
|
@@ -12,8 +12,12 @@ var phoneNumber_1 = require("./phoneNumber");
|
|
|
12
12
|
Object.defineProperty(exports, "PhoneNumberModel", { enumerable: true, get: function () { return phoneNumber_1.PhoneNumberModel; } });
|
|
13
13
|
var cryptoAddress_1 = require("./cryptoAddress");
|
|
14
14
|
Object.defineProperty(exports, "CryptoAddressModel", { enumerable: true, get: function () { return cryptoAddress_1.CryptoAddressModel; } });
|
|
15
|
+
var webauthnCredential_1 = require("./webauthnCredential");
|
|
16
|
+
Object.defineProperty(exports, "WebauthnCredentialModel", { enumerable: true, get: function () { return webauthnCredential_1.WebauthnCredentialModel; } });
|
|
15
17
|
var auditLog_1 = require("./auditLog");
|
|
16
18
|
Object.defineProperty(exports, "AuditLogModel", { enumerable: true, get: function () { return auditLog_1.AuditLogModel; } });
|
|
19
|
+
var identityProvider_1 = require("./identityProvider");
|
|
20
|
+
Object.defineProperty(exports, "IdentityProviderModel", { enumerable: true, get: function () { return identityProvider_1.IdentityProviderModel; } });
|
|
17
21
|
var roleType_1 = require("./roleType");
|
|
18
22
|
Object.defineProperty(exports, "RoleTypeModel", { enumerable: true, get: function () { return roleType_1.RoleTypeModel; } });
|
|
19
23
|
var userConnectedAccount_1 = require("./userConnectedAccount");
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WebauthnCredential 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 { WebauthnCredentialWithRelations, WebauthnCredentialSelect, WebauthnCredentialFilter, WebauthnCredentialOrderBy, CreateWebauthnCredentialInput, WebauthnCredentialPatch } from '../input-types';
|
|
10
|
+
export declare class WebauthnCredentialModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends WebauthnCredentialSelect>(args: FindManyArgs<S, WebauthnCredentialFilter, WebauthnCredentialOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, WebauthnCredentialSelect>): QueryBuilder<{
|
|
16
|
+
webauthnCredentials: ConnectionResult<InferSelectResult<WebauthnCredentialWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends WebauthnCredentialSelect>(args: FindFirstArgs<S, WebauthnCredentialFilter> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, WebauthnCredentialSelect>): QueryBuilder<{
|
|
21
|
+
webauthnCredentials: {
|
|
22
|
+
nodes: InferSelectResult<WebauthnCredentialWithRelations, S>[];
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
25
|
+
findOne<S extends WebauthnCredentialSelect>(args: {
|
|
26
|
+
id: string;
|
|
27
|
+
select: S;
|
|
28
|
+
} & StrictSelect<S, WebauthnCredentialSelect>): QueryBuilder<{
|
|
29
|
+
webauthnCredential: InferSelectResult<WebauthnCredentialWithRelations, S> | null;
|
|
30
|
+
}>;
|
|
31
|
+
create<S extends WebauthnCredentialSelect>(args: CreateArgs<S, CreateWebauthnCredentialInput['webauthnCredential']> & {
|
|
32
|
+
select: S;
|
|
33
|
+
} & StrictSelect<S, WebauthnCredentialSelect>): QueryBuilder<{
|
|
34
|
+
createWebauthnCredential: {
|
|
35
|
+
webauthnCredential: InferSelectResult<WebauthnCredentialWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}>;
|
|
38
|
+
update<S extends WebauthnCredentialSelect>(args: UpdateArgs<S, {
|
|
39
|
+
id: string;
|
|
40
|
+
}, WebauthnCredentialPatch> & {
|
|
41
|
+
select: S;
|
|
42
|
+
} & StrictSelect<S, WebauthnCredentialSelect>): QueryBuilder<{
|
|
43
|
+
updateWebauthnCredential: {
|
|
44
|
+
webauthnCredential: InferSelectResult<WebauthnCredentialWithRelations, S>;
|
|
45
|
+
};
|
|
46
|
+
}>;
|
|
47
|
+
delete<S extends WebauthnCredentialSelect>(args: DeleteArgs<{
|
|
48
|
+
id: string;
|
|
49
|
+
}, S> & {
|
|
50
|
+
select: S;
|
|
51
|
+
} & StrictSelect<S, WebauthnCredentialSelect>): QueryBuilder<{
|
|
52
|
+
deleteWebauthnCredential: {
|
|
53
|
+
webauthnCredential: InferSelectResult<WebauthnCredentialWithRelations, S>;
|
|
54
|
+
};
|
|
55
|
+
}>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebauthnCredentialModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class WebauthnCredentialModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('WebauthnCredential', 'webauthnCredentials', 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
|
+
}, 'WebauthnCredentialFilter', 'WebauthnCredentialOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'WebauthnCredential',
|
|
25
|
+
fieldName: 'webauthnCredentials',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('WebauthnCredential', 'webauthnCredentials', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
}, 'WebauthnCredentialFilter', input_types_1.connectionFieldsMap);
|
|
34
|
+
return new query_builder_1.QueryBuilder({
|
|
35
|
+
client: this.client,
|
|
36
|
+
operation: 'query',
|
|
37
|
+
operationName: 'WebauthnCredential',
|
|
38
|
+
fieldName: 'webauthnCredentials',
|
|
39
|
+
document,
|
|
40
|
+
variables,
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
findOne(args) {
|
|
44
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('WebauthnCredential', 'webauthnCredentials', args.select, {
|
|
45
|
+
where: {
|
|
46
|
+
id: {
|
|
47
|
+
equalTo: args.id,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
first: 1,
|
|
51
|
+
}, 'WebauthnCredentialFilter', 'WebauthnCredentialOrderBy', input_types_1.connectionFieldsMap);
|
|
52
|
+
return new query_builder_1.QueryBuilder({
|
|
53
|
+
client: this.client,
|
|
54
|
+
operation: 'query',
|
|
55
|
+
operationName: 'WebauthnCredential',
|
|
56
|
+
fieldName: 'webauthnCredential',
|
|
57
|
+
document,
|
|
58
|
+
variables,
|
|
59
|
+
transform: (data) => ({
|
|
60
|
+
webauthnCredential: data.webauthnCredentials?.nodes?.[0] ?? null,
|
|
61
|
+
}),
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
create(args) {
|
|
65
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('WebauthnCredential', 'createWebauthnCredential', 'webauthnCredential', args.select, args.data, 'CreateWebauthnCredentialInput', input_types_1.connectionFieldsMap);
|
|
66
|
+
return new query_builder_1.QueryBuilder({
|
|
67
|
+
client: this.client,
|
|
68
|
+
operation: 'mutation',
|
|
69
|
+
operationName: 'WebauthnCredential',
|
|
70
|
+
fieldName: 'createWebauthnCredential',
|
|
71
|
+
document,
|
|
72
|
+
variables,
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
update(args) {
|
|
76
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('WebauthnCredential', 'updateWebauthnCredential', 'webauthnCredential', args.select, args.where.id, args.data, 'UpdateWebauthnCredentialInput', 'id', 'webauthnCredentialPatch', input_types_1.connectionFieldsMap);
|
|
77
|
+
return new query_builder_1.QueryBuilder({
|
|
78
|
+
client: this.client,
|
|
79
|
+
operation: 'mutation',
|
|
80
|
+
operationName: 'WebauthnCredential',
|
|
81
|
+
fieldName: 'updateWebauthnCredential',
|
|
82
|
+
document,
|
|
83
|
+
variables,
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
delete(args) {
|
|
87
|
+
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('WebauthnCredential', 'deleteWebauthnCredential', 'webauthnCredential', {
|
|
88
|
+
id: args.where.id,
|
|
89
|
+
}, 'DeleteWebauthnCredentialInput', args.select, input_types_1.connectionFieldsMap);
|
|
90
|
+
return new query_builder_1.QueryBuilder({
|
|
91
|
+
client: this.client,
|
|
92
|
+
operation: 'mutation',
|
|
93
|
+
operationName: 'WebauthnCredential',
|
|
94
|
+
fieldName: 'deleteWebauthnCredential',
|
|
95
|
+
document,
|
|
96
|
+
variables,
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
exports.WebauthnCredentialModel = WebauthnCredentialModel;
|
|
@@ -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,
|
|
9
|
+
import type { SignOutInput, SendAccountDeletionEmailInput, CheckPasswordInput, DisconnectAccountInput, RevokeApiKeyInput, RevokeSessionInput, VerifyPasswordInput, VerifyTotpInput, ConfirmDeleteAccountInput, SetPasswordInput, VerifyEmailInput, ProvisionNewUserInput, ResetPasswordInput, SignInCrossOriginInput, SignUpInput, RequestCrossOriginTokenInput, SignInInput, ExtendTokenExpiresInput, CreateApiKeyInput, ForgotPasswordInput, SendVerificationEmailInput, RequestUploadUrlInput, ConfirmUploadInput, ProvisionBucketInput, SignOutPayload, SendAccountDeletionEmailPayload, CheckPasswordPayload, DisconnectAccountPayload, RevokeApiKeyPayload, RevokeSessionPayload, VerifyPasswordPayload, VerifyTotpPayload, ConfirmDeleteAccountPayload, SetPasswordPayload, VerifyEmailPayload, ProvisionNewUserPayload, ResetPasswordPayload, SignInCrossOriginPayload, SignUpPayload, RequestCrossOriginTokenPayload, SignInPayload, ExtendTokenExpiresPayload, CreateApiKeyPayload, ForgotPasswordPayload, SendVerificationEmailPayload, RequestUploadUrlPayload, ConfirmUploadPayload, ProvisionBucketPayload, SignOutPayloadSelect, SendAccountDeletionEmailPayloadSelect, CheckPasswordPayloadSelect, DisconnectAccountPayloadSelect, RevokeApiKeyPayloadSelect, RevokeSessionPayloadSelect, VerifyPasswordPayloadSelect, VerifyTotpPayloadSelect, ConfirmDeleteAccountPayloadSelect, SetPasswordPayloadSelect, VerifyEmailPayloadSelect, ProvisionNewUserPayloadSelect, ResetPasswordPayloadSelect, SignInCrossOriginPayloadSelect, SignUpPayloadSelect, RequestCrossOriginTokenPayloadSelect, SignInPayloadSelect, ExtendTokenExpiresPayloadSelect, CreateApiKeyPayloadSelect, ForgotPasswordPayloadSelect, SendVerificationEmailPayloadSelect, RequestUploadUrlPayloadSelect, ConfirmUploadPayloadSelect, ProvisionBucketPayloadSelect } from '../input-types';
|
|
10
10
|
export interface SignOutVariables {
|
|
11
11
|
input: SignOutInput;
|
|
12
12
|
}
|
|
@@ -46,9 +46,6 @@ export interface ProvisionNewUserVariables {
|
|
|
46
46
|
export interface ResetPasswordVariables {
|
|
47
47
|
input: ResetPasswordInput;
|
|
48
48
|
}
|
|
49
|
-
export interface CreateApiKeyVariables {
|
|
50
|
-
input: CreateApiKeyInput;
|
|
51
|
-
}
|
|
52
49
|
export interface SignInCrossOriginVariables {
|
|
53
50
|
input: SignInCrossOriginInput;
|
|
54
51
|
}
|
|
@@ -64,6 +61,9 @@ export interface SignInVariables {
|
|
|
64
61
|
export interface ExtendTokenExpiresVariables {
|
|
65
62
|
input: ExtendTokenExpiresInput;
|
|
66
63
|
}
|
|
64
|
+
export interface CreateApiKeyVariables {
|
|
65
|
+
input: CreateApiKeyInput;
|
|
66
|
+
}
|
|
67
67
|
export interface ForgotPasswordVariables {
|
|
68
68
|
input: ForgotPasswordInput;
|
|
69
69
|
}
|
|
@@ -165,11 +165,6 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
165
165
|
} & StrictSelect<S, ResetPasswordPayloadSelect>) => QueryBuilder<{
|
|
166
166
|
resetPassword: InferSelectResult<ResetPasswordPayload, S> | null;
|
|
167
167
|
}>;
|
|
168
|
-
createApiKey: <S extends CreateApiKeyPayloadSelect>(args: CreateApiKeyVariables, options: {
|
|
169
|
-
select: S;
|
|
170
|
-
} & StrictSelect<S, CreateApiKeyPayloadSelect>) => QueryBuilder<{
|
|
171
|
-
createApiKey: InferSelectResult<CreateApiKeyPayload, S> | null;
|
|
172
|
-
}>;
|
|
173
168
|
signInCrossOrigin: <S extends SignInCrossOriginPayloadSelect>(args: SignInCrossOriginVariables, options: {
|
|
174
169
|
select: S;
|
|
175
170
|
} & StrictSelect<S, SignInCrossOriginPayloadSelect>) => QueryBuilder<{
|
|
@@ -195,6 +190,11 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
195
190
|
} & StrictSelect<S, ExtendTokenExpiresPayloadSelect>) => QueryBuilder<{
|
|
196
191
|
extendTokenExpires: InferSelectResult<ExtendTokenExpiresPayload, S> | null;
|
|
197
192
|
}>;
|
|
193
|
+
createApiKey: <S extends CreateApiKeyPayloadSelect>(args: CreateApiKeyVariables, options: {
|
|
194
|
+
select: S;
|
|
195
|
+
} & StrictSelect<S, CreateApiKeyPayloadSelect>) => QueryBuilder<{
|
|
196
|
+
createApiKey: InferSelectResult<CreateApiKeyPayload, S> | null;
|
|
197
|
+
}>;
|
|
198
198
|
forgotPassword: <S extends ForgotPasswordPayloadSelect>(args: ForgotPasswordVariables, options: {
|
|
199
199
|
select: S;
|
|
200
200
|
} & StrictSelect<S, ForgotPasswordPayloadSelect>) => QueryBuilder<{
|
|
@@ -161,18 +161,6 @@ function createMutationOperations(client) {
|
|
|
161
161
|
},
|
|
162
162
|
], input_types_1.connectionFieldsMap, 'ResetPasswordPayload'),
|
|
163
163
|
}),
|
|
164
|
-
createApiKey: (args, options) => new query_builder_1.QueryBuilder({
|
|
165
|
-
client,
|
|
166
|
-
operation: 'mutation',
|
|
167
|
-
operationName: 'CreateApiKey',
|
|
168
|
-
fieldName: 'createApiKey',
|
|
169
|
-
...(0, query_builder_1.buildCustomDocument)('mutation', 'CreateApiKey', 'createApiKey', options.select, args, [
|
|
170
|
-
{
|
|
171
|
-
name: 'input',
|
|
172
|
-
type: 'CreateApiKeyInput!',
|
|
173
|
-
},
|
|
174
|
-
], input_types_1.connectionFieldsMap, 'CreateApiKeyPayload'),
|
|
175
|
-
}),
|
|
176
164
|
signInCrossOrigin: (args, options) => new query_builder_1.QueryBuilder({
|
|
177
165
|
client,
|
|
178
166
|
operation: 'mutation',
|
|
@@ -233,6 +221,18 @@ function createMutationOperations(client) {
|
|
|
233
221
|
},
|
|
234
222
|
], input_types_1.connectionFieldsMap, 'ExtendTokenExpiresPayload'),
|
|
235
223
|
}),
|
|
224
|
+
createApiKey: (args, options) => new query_builder_1.QueryBuilder({
|
|
225
|
+
client,
|
|
226
|
+
operation: 'mutation',
|
|
227
|
+
operationName: 'CreateApiKey',
|
|
228
|
+
fieldName: 'createApiKey',
|
|
229
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'CreateApiKey', 'createApiKey', options.select, args, [
|
|
230
|
+
{
|
|
231
|
+
name: 'input',
|
|
232
|
+
type: 'CreateApiKeyInput!',
|
|
233
|
+
},
|
|
234
|
+
], input_types_1.connectionFieldsMap, 'CreateApiKeyPayload'),
|
|
235
|
+
}),
|
|
236
236
|
forgotPassword: (args, options) => new query_builder_1.QueryBuilder({
|
|
237
237
|
client,
|
|
238
238
|
operation: 'mutation',
|
package/esm/admin/orm/index.d.ts
CHANGED
|
@@ -22,11 +22,12 @@ import { OrgLimitModel } from './models/orgLimit';
|
|
|
22
22
|
import { MembershipTypeModel } from './models/membershipType';
|
|
23
23
|
import { AppGrantModel } from './models/appGrant';
|
|
24
24
|
import { AppMembershipDefaultModel } from './models/appMembershipDefault';
|
|
25
|
+
import { OrgMembershipDefaultModel } from './models/orgMembershipDefault';
|
|
25
26
|
import { OrgClaimedInviteModel } from './models/orgClaimedInvite';
|
|
26
27
|
import { OrgGrantModel } from './models/orgGrant';
|
|
27
28
|
import { OrgChartEdgeModel } from './models/orgChartEdge';
|
|
28
|
-
import { OrgMembershipDefaultModel } from './models/orgMembershipDefault';
|
|
29
29
|
import { OrgMemberProfileModel } from './models/orgMemberProfile';
|
|
30
|
+
import { OrgMembershipSettingModel } from './models/orgMembershipSetting';
|
|
30
31
|
import { AppLevelModel } from './models/appLevel';
|
|
31
32
|
import { AppInviteModel } from './models/appInvite';
|
|
32
33
|
import { OrgInviteModel } from './models/orgInvite';
|
|
@@ -86,11 +87,12 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
86
87
|
membershipType: MembershipTypeModel;
|
|
87
88
|
appGrant: AppGrantModel;
|
|
88
89
|
appMembershipDefault: AppMembershipDefaultModel;
|
|
90
|
+
orgMembershipDefault: OrgMembershipDefaultModel;
|
|
89
91
|
orgClaimedInvite: OrgClaimedInviteModel;
|
|
90
92
|
orgGrant: OrgGrantModel;
|
|
91
93
|
orgChartEdge: OrgChartEdgeModel;
|
|
92
|
-
orgMembershipDefault: OrgMembershipDefaultModel;
|
|
93
94
|
orgMemberProfile: OrgMemberProfileModel;
|
|
95
|
+
orgMembershipSetting: OrgMembershipSettingModel;
|
|
94
96
|
appLevel: AppLevelModel;
|
|
95
97
|
appInvite: AppInviteModel;
|
|
96
98
|
orgInvite: OrgInviteModel;
|
package/esm/admin/orm/index.js
CHANGED
|
@@ -27,11 +27,12 @@ import { OrgLimitModel } from './models/orgLimit';
|
|
|
27
27
|
import { MembershipTypeModel } from './models/membershipType';
|
|
28
28
|
import { AppGrantModel } from './models/appGrant';
|
|
29
29
|
import { AppMembershipDefaultModel } from './models/appMembershipDefault';
|
|
30
|
+
import { OrgMembershipDefaultModel } from './models/orgMembershipDefault';
|
|
30
31
|
import { OrgClaimedInviteModel } from './models/orgClaimedInvite';
|
|
31
32
|
import { OrgGrantModel } from './models/orgGrant';
|
|
32
33
|
import { OrgChartEdgeModel } from './models/orgChartEdge';
|
|
33
|
-
import { OrgMembershipDefaultModel } from './models/orgMembershipDefault';
|
|
34
34
|
import { OrgMemberProfileModel } from './models/orgMemberProfile';
|
|
35
|
+
import { OrgMembershipSettingModel } from './models/orgMembershipSetting';
|
|
35
36
|
import { AppLevelModel } from './models/appLevel';
|
|
36
37
|
import { AppInviteModel } from './models/appInvite';
|
|
37
38
|
import { OrgInviteModel } from './models/orgInvite';
|
|
@@ -94,11 +95,12 @@ export function createClient(config) {
|
|
|
94
95
|
membershipType: new MembershipTypeModel(client),
|
|
95
96
|
appGrant: new AppGrantModel(client),
|
|
96
97
|
appMembershipDefault: new AppMembershipDefaultModel(client),
|
|
98
|
+
orgMembershipDefault: new OrgMembershipDefaultModel(client),
|
|
97
99
|
orgClaimedInvite: new OrgClaimedInviteModel(client),
|
|
98
100
|
orgGrant: new OrgGrantModel(client),
|
|
99
101
|
orgChartEdge: new OrgChartEdgeModel(client),
|
|
100
|
-
orgMembershipDefault: new OrgMembershipDefaultModel(client),
|
|
101
102
|
orgMemberProfile: new OrgMemberProfileModel(client),
|
|
103
|
+
orgMembershipSetting: new OrgMembershipSettingModel(client),
|
|
102
104
|
appLevel: new AppLevelModel(client),
|
|
103
105
|
appInvite: new AppInviteModel(client),
|
|
104
106
|
orgInvite: new OrgInviteModel(client),
|