@constructive-io/sdk 0.14.0 → 0.14.1
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 +6 -4
- package/admin/orm/index.js +6 -4
- package/admin/orm/input-types.d.ts +503 -295
- package/admin/orm/models/index.d.ts +3 -2
- package/admin/orm/models/index.js +7 -5
- package/admin/orm/models/orgMemberProfile.d.ts +56 -0
- package/{auth/orm/models/connectedAccount.js → admin/orm/models/orgMemberProfile.js} +26 -26
- package/auth/orm/index.d.ts +45 -15
- package/auth/orm/index.js +2 -2
- package/auth/orm/input-types.d.ts +186 -251
- package/auth/orm/input-types.js +0 -1
- package/auth/orm/models/index.d.ts +1 -1
- package/auth/orm/models/index.js +3 -3
- package/auth/orm/models/userConnectedAccount.d.ts +38 -0
- package/auth/orm/models/userConnectedAccount.js +76 -0
- package/auth/orm/mutation/index.d.ts +56 -16
- package/auth/orm/mutation/index.js +78 -18
- package/auth/orm/query/index.d.ts +12 -4
- package/auth/orm/query/index.js +19 -7
- package/esm/admin/orm/index.d.ts +6 -4
- package/esm/admin/orm/index.js +6 -4
- package/esm/admin/orm/input-types.d.ts +503 -295
- package/esm/admin/orm/models/index.d.ts +3 -2
- package/esm/admin/orm/models/index.js +3 -2
- package/esm/admin/orm/models/orgMemberProfile.d.ts +56 -0
- package/esm/{public/orm/models/connectedAccount.js → admin/orm/models/orgMemberProfile.js} +24 -24
- package/esm/auth/orm/index.d.ts +45 -15
- package/esm/auth/orm/index.js +2 -2
- package/esm/auth/orm/input-types.d.ts +186 -251
- package/esm/auth/orm/input-types.js +0 -1
- package/esm/auth/orm/models/index.d.ts +1 -1
- package/esm/auth/orm/models/index.js +1 -1
- package/esm/auth/orm/models/userConnectedAccount.d.ts +38 -0
- package/esm/auth/orm/models/userConnectedAccount.js +72 -0
- package/esm/auth/orm/mutation/index.d.ts +56 -16
- package/esm/auth/orm/mutation/index.js +78 -18
- package/esm/auth/orm/query/index.d.ts +12 -4
- package/esm/auth/orm/query/index.js +19 -7
- package/esm/public/orm/index.d.ts +69 -19
- package/esm/public/orm/index.js +16 -6
- package/esm/public/orm/input-types.d.ts +2047 -640
- package/esm/public/orm/input-types.js +15 -6
- package/esm/public/orm/models/devicesModule.d.ts +56 -0
- package/esm/public/orm/models/devicesModule.js +96 -0
- package/esm/public/orm/models/entityTypeProvision.d.ts +56 -0
- package/esm/public/orm/models/{tableTemplateModule.js → entityTypeProvision.js} +24 -24
- package/esm/public/orm/models/index.d.ts +8 -3
- package/esm/public/orm/models/index.js +8 -3
- package/esm/public/orm/models/orgMemberProfile.d.ts +56 -0
- package/esm/{auth/orm/models/connectedAccount.js → public/orm/models/orgMemberProfile.js} +24 -24
- package/esm/public/orm/models/sessionSecretsModule.d.ts +56 -0
- package/esm/public/orm/models/sessionSecretsModule.js +96 -0
- package/esm/public/orm/models/spatialRelation.d.ts +56 -0
- package/esm/public/orm/models/spatialRelation.js +96 -0
- package/esm/public/orm/models/userConnectedAccount.d.ts +38 -0
- package/esm/public/orm/models/userConnectedAccount.js +72 -0
- package/esm/public/orm/models/webauthnCredentialsModule.d.ts +56 -0
- package/esm/public/orm/models/webauthnCredentialsModule.js +96 -0
- package/esm/public/orm/mutation/index.d.ts +72 -20
- package/esm/public/orm/mutation/index.js +96 -24
- package/esm/public/orm/query/index.d.ts +24 -2
- package/esm/public/orm/query/index.js +36 -4
- package/package.json +2 -2
- package/public/orm/index.d.ts +69 -19
- package/public/orm/index.js +16 -6
- package/public/orm/input-types.d.ts +2047 -640
- package/public/orm/input-types.js +15 -6
- package/public/orm/models/devicesModule.d.ts +56 -0
- package/public/orm/models/devicesModule.js +100 -0
- package/public/orm/models/entityTypeProvision.d.ts +56 -0
- package/public/orm/models/{tableTemplateModule.js → entityTypeProvision.js} +26 -26
- package/public/orm/models/index.d.ts +8 -3
- package/public/orm/models/index.js +19 -9
- package/public/orm/models/orgMemberProfile.d.ts +56 -0
- package/public/orm/models/{connectedAccount.js → orgMemberProfile.js} +26 -26
- package/public/orm/models/sessionSecretsModule.d.ts +56 -0
- package/public/orm/models/sessionSecretsModule.js +100 -0
- package/public/orm/models/spatialRelation.d.ts +56 -0
- package/public/orm/models/spatialRelation.js +100 -0
- package/public/orm/models/userConnectedAccount.d.ts +38 -0
- package/public/orm/models/userConnectedAccount.js +76 -0
- package/public/orm/models/webauthnCredentialsModule.d.ts +56 -0
- package/public/orm/models/webauthnCredentialsModule.js +100 -0
- package/public/orm/mutation/index.d.ts +72 -20
- package/public/orm/mutation/index.js +96 -24
- package/public/orm/query/index.d.ts +24 -2
- package/public/orm/query/index.js +36 -4
- package/auth/orm/models/connectedAccount.d.ts +0 -56
- package/esm/auth/orm/models/connectedAccount.d.ts +0 -56
- package/esm/public/orm/models/connectedAccount.d.ts +0 -56
- package/esm/public/orm/models/tableTemplateModule.d.ts +0 -56
- package/public/orm/models/connectedAccount.d.ts +0 -56
- package/public/orm/models/tableTemplateModule.d.ts +0 -56
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
export { EmailModel } from './email';
|
|
7
7
|
export { PhoneNumberModel } from './phoneNumber';
|
|
8
8
|
export { CryptoAddressModel } from './cryptoAddress';
|
|
9
|
-
export { ConnectedAccountModel } from './connectedAccount';
|
|
10
9
|
export { AuditLogModel } from './auditLog';
|
|
11
10
|
export { RoleTypeModel } from './roleType';
|
|
11
|
+
export { UserConnectedAccountModel } from './userConnectedAccount';
|
|
12
12
|
export { UserModel } from './user';
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
export { EmailModel } from './email';
|
|
7
7
|
export { PhoneNumberModel } from './phoneNumber';
|
|
8
8
|
export { CryptoAddressModel } from './cryptoAddress';
|
|
9
|
-
export { ConnectedAccountModel } from './connectedAccount';
|
|
10
9
|
export { AuditLogModel } from './auditLog';
|
|
11
10
|
export { RoleTypeModel } from './roleType';
|
|
11
|
+
export { UserConnectedAccountModel } from './userConnectedAccount';
|
|
12
12
|
export { UserModel } from './user';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UserConnectedAccount 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 { UserConnectedAccountWithRelations, UserConnectedAccountSelect, UserConnectedAccountFilter, UserConnectedAccountOrderBy, CreateUserConnectedAccountInput } from '../input-types';
|
|
10
|
+
export declare class UserConnectedAccountModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends UserConnectedAccountSelect>(args: FindManyArgs<S, UserConnectedAccountFilter, UserConnectedAccountOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, UserConnectedAccountSelect>): QueryBuilder<{
|
|
16
|
+
userConnectedAccounts: ConnectionResult<InferSelectResult<UserConnectedAccountWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends UserConnectedAccountSelect>(args: FindFirstArgs<S, UserConnectedAccountFilter> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, UserConnectedAccountSelect>): QueryBuilder<{
|
|
21
|
+
userConnectedAccounts: {
|
|
22
|
+
nodes: InferSelectResult<UserConnectedAccountWithRelations, S>[];
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
25
|
+
findOne<S extends UserConnectedAccountSelect>(args: {
|
|
26
|
+
id: string;
|
|
27
|
+
select: S;
|
|
28
|
+
} & StrictSelect<S, UserConnectedAccountSelect>): QueryBuilder<{
|
|
29
|
+
userConnectedAccount: InferSelectResult<UserConnectedAccountWithRelations, S> | null;
|
|
30
|
+
}>;
|
|
31
|
+
create<S extends UserConnectedAccountSelect>(args: CreateArgs<S, CreateUserConnectedAccountInput['userConnectedAccount']> & {
|
|
32
|
+
select: S;
|
|
33
|
+
} & StrictSelect<S, UserConnectedAccountSelect>): QueryBuilder<{
|
|
34
|
+
createUserConnectedAccount: {
|
|
35
|
+
userConnectedAccount: InferSelectResult<UserConnectedAccountWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}>;
|
|
38
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, } from '../query-builder';
|
|
2
|
+
import { connectionFieldsMap } from '../input-types';
|
|
3
|
+
export class UserConnectedAccountModel {
|
|
4
|
+
client;
|
|
5
|
+
constructor(client) {
|
|
6
|
+
this.client = client;
|
|
7
|
+
}
|
|
8
|
+
findMany(args) {
|
|
9
|
+
const { document, variables } = buildFindManyDocument('UserConnectedAccount', 'userConnectedAccounts', 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
|
+
}, 'UserConnectedAccountFilter', 'UserConnectedAccountOrderBy', connectionFieldsMap);
|
|
18
|
+
return new QueryBuilder({
|
|
19
|
+
client: this.client,
|
|
20
|
+
operation: 'query',
|
|
21
|
+
operationName: 'UserConnectedAccount',
|
|
22
|
+
fieldName: 'userConnectedAccounts',
|
|
23
|
+
document,
|
|
24
|
+
variables,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
findFirst(args) {
|
|
28
|
+
const { document, variables } = buildFindFirstDocument('UserConnectedAccount', 'userConnectedAccounts', args.select, {
|
|
29
|
+
where: args?.where,
|
|
30
|
+
}, 'UserConnectedAccountFilter', connectionFieldsMap);
|
|
31
|
+
return new QueryBuilder({
|
|
32
|
+
client: this.client,
|
|
33
|
+
operation: 'query',
|
|
34
|
+
operationName: 'UserConnectedAccount',
|
|
35
|
+
fieldName: 'userConnectedAccounts',
|
|
36
|
+
document,
|
|
37
|
+
variables,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
findOne(args) {
|
|
41
|
+
const { document, variables } = buildFindManyDocument('UserConnectedAccount', 'userConnectedAccounts', args.select, {
|
|
42
|
+
where: {
|
|
43
|
+
id: {
|
|
44
|
+
equalTo: args.id,
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
first: 1,
|
|
48
|
+
}, 'UserConnectedAccountFilter', 'UserConnectedAccountOrderBy', connectionFieldsMap);
|
|
49
|
+
return new QueryBuilder({
|
|
50
|
+
client: this.client,
|
|
51
|
+
operation: 'query',
|
|
52
|
+
operationName: 'UserConnectedAccount',
|
|
53
|
+
fieldName: 'userConnectedAccount',
|
|
54
|
+
document,
|
|
55
|
+
variables,
|
|
56
|
+
transform: (data) => ({
|
|
57
|
+
userConnectedAccount: data.userConnectedAccounts?.nodes?.[0] ?? null,
|
|
58
|
+
}),
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
create(args) {
|
|
62
|
+
const { document, variables } = buildCreateDocument('UserConnectedAccount', 'createUserConnectedAccount', 'userConnectedAccount', args.select, args.data, 'CreateUserConnectedAccountInput', connectionFieldsMap);
|
|
63
|
+
return new QueryBuilder({
|
|
64
|
+
client: this.client,
|
|
65
|
+
operation: 'mutation',
|
|
66
|
+
operationName: 'UserConnectedAccount',
|
|
67
|
+
fieldName: 'createUserConnectedAccount',
|
|
68
|
+
document,
|
|
69
|
+
variables,
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -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, VerifyPasswordInput, VerifyTotpInput, ConfirmDeleteAccountInput, SetPasswordInput, VerifyEmailInput, ResetPasswordInput,
|
|
9
|
+
import type { SignOutInput, SendAccountDeletionEmailInput, CheckPasswordInput, DisconnectAccountInput, RevokeApiKeyInput, RevokeSessionInput, VerifyPasswordInput, VerifyTotpInput, ConfirmDeleteAccountInput, SetPasswordInput, VerifyEmailInput, ProvisionNewUserInput, ResetPasswordInput, CreateApiKeyInput, SignInCrossOriginInput, SignUpInput, RequestCrossOriginTokenInput, SignInInput, ExtendTokenExpiresInput, ForgotPasswordInput, SendVerificationEmailInput, RequestUploadUrlInput, ConfirmUploadInput, ProvisionBucketInput, SignOutPayload, SendAccountDeletionEmailPayload, CheckPasswordPayload, DisconnectAccountPayload, RevokeApiKeyPayload, RevokeSessionPayload, VerifyPasswordPayload, VerifyTotpPayload, ConfirmDeleteAccountPayload, SetPasswordPayload, VerifyEmailPayload, ProvisionNewUserPayload, ResetPasswordPayload, CreateApiKeyPayload, SignInCrossOriginPayload, SignUpPayload, RequestCrossOriginTokenPayload, SignInPayload, ExtendTokenExpiresPayload, ForgotPasswordPayload, SendVerificationEmailPayload, RequestUploadUrlPayload, ConfirmUploadPayload, ProvisionBucketPayload, SignOutPayloadSelect, SendAccountDeletionEmailPayloadSelect, CheckPasswordPayloadSelect, DisconnectAccountPayloadSelect, RevokeApiKeyPayloadSelect, RevokeSessionPayloadSelect, VerifyPasswordPayloadSelect, VerifyTotpPayloadSelect, ConfirmDeleteAccountPayloadSelect, SetPasswordPayloadSelect, VerifyEmailPayloadSelect, ProvisionNewUserPayloadSelect, ResetPasswordPayloadSelect, CreateApiKeyPayloadSelect, SignInCrossOriginPayloadSelect, SignUpPayloadSelect, RequestCrossOriginTokenPayloadSelect, SignInPayloadSelect, ExtendTokenExpiresPayloadSelect, ForgotPasswordPayloadSelect, SendVerificationEmailPayloadSelect, RequestUploadUrlPayloadSelect, ConfirmUploadPayloadSelect, ProvisionBucketPayloadSelect } from '../input-types';
|
|
10
10
|
export interface SignOutVariables {
|
|
11
11
|
input: SignOutInput;
|
|
12
12
|
}
|
|
@@ -16,6 +16,15 @@ export interface SendAccountDeletionEmailVariables {
|
|
|
16
16
|
export interface CheckPasswordVariables {
|
|
17
17
|
input: CheckPasswordInput;
|
|
18
18
|
}
|
|
19
|
+
export interface DisconnectAccountVariables {
|
|
20
|
+
input: DisconnectAccountInput;
|
|
21
|
+
}
|
|
22
|
+
export interface RevokeApiKeyVariables {
|
|
23
|
+
input: RevokeApiKeyInput;
|
|
24
|
+
}
|
|
25
|
+
export interface RevokeSessionVariables {
|
|
26
|
+
input: RevokeSessionInput;
|
|
27
|
+
}
|
|
19
28
|
export interface VerifyPasswordVariables {
|
|
20
29
|
input: VerifyPasswordInput;
|
|
21
30
|
}
|
|
@@ -31,20 +40,26 @@ export interface SetPasswordVariables {
|
|
|
31
40
|
export interface VerifyEmailVariables {
|
|
32
41
|
input: VerifyEmailInput;
|
|
33
42
|
}
|
|
43
|
+
export interface ProvisionNewUserVariables {
|
|
44
|
+
input: ProvisionNewUserInput;
|
|
45
|
+
}
|
|
34
46
|
export interface ResetPasswordVariables {
|
|
35
47
|
input: ResetPasswordInput;
|
|
36
48
|
}
|
|
37
|
-
export interface
|
|
38
|
-
input:
|
|
49
|
+
export interface CreateApiKeyVariables {
|
|
50
|
+
input: CreateApiKeyInput;
|
|
39
51
|
}
|
|
40
|
-
export interface
|
|
41
|
-
input:
|
|
52
|
+
export interface SignInCrossOriginVariables {
|
|
53
|
+
input: SignInCrossOriginInput;
|
|
42
54
|
}
|
|
43
55
|
export interface SignUpVariables {
|
|
44
56
|
input: SignUpInput;
|
|
45
57
|
}
|
|
46
|
-
export interface
|
|
47
|
-
input:
|
|
58
|
+
export interface RequestCrossOriginTokenVariables {
|
|
59
|
+
input: RequestCrossOriginTokenInput;
|
|
60
|
+
}
|
|
61
|
+
export interface SignInVariables {
|
|
62
|
+
input: SignInInput;
|
|
48
63
|
}
|
|
49
64
|
export interface ExtendTokenExpiresVariables {
|
|
50
65
|
input: ExtendTokenExpiresInput;
|
|
@@ -100,6 +115,21 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
100
115
|
} & StrictSelect<S, CheckPasswordPayloadSelect>) => QueryBuilder<{
|
|
101
116
|
checkPassword: InferSelectResult<CheckPasswordPayload, S> | null;
|
|
102
117
|
}>;
|
|
118
|
+
disconnectAccount: <S extends DisconnectAccountPayloadSelect>(args: DisconnectAccountVariables, options: {
|
|
119
|
+
select: S;
|
|
120
|
+
} & StrictSelect<S, DisconnectAccountPayloadSelect>) => QueryBuilder<{
|
|
121
|
+
disconnectAccount: InferSelectResult<DisconnectAccountPayload, S> | null;
|
|
122
|
+
}>;
|
|
123
|
+
revokeApiKey: <S extends RevokeApiKeyPayloadSelect>(args: RevokeApiKeyVariables, options: {
|
|
124
|
+
select: S;
|
|
125
|
+
} & StrictSelect<S, RevokeApiKeyPayloadSelect>) => QueryBuilder<{
|
|
126
|
+
revokeApiKey: InferSelectResult<RevokeApiKeyPayload, S> | null;
|
|
127
|
+
}>;
|
|
128
|
+
revokeSession: <S extends RevokeSessionPayloadSelect>(args: RevokeSessionVariables, options: {
|
|
129
|
+
select: S;
|
|
130
|
+
} & StrictSelect<S, RevokeSessionPayloadSelect>) => QueryBuilder<{
|
|
131
|
+
revokeSession: InferSelectResult<RevokeSessionPayload, S> | null;
|
|
132
|
+
}>;
|
|
103
133
|
verifyPassword: <S extends VerifyPasswordPayloadSelect>(args: VerifyPasswordVariables, options: {
|
|
104
134
|
select: S;
|
|
105
135
|
} & StrictSelect<S, VerifyPasswordPayloadSelect>) => QueryBuilder<{
|
|
@@ -125,30 +155,40 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
125
155
|
} & StrictSelect<S, VerifyEmailPayloadSelect>) => QueryBuilder<{
|
|
126
156
|
verifyEmail: InferSelectResult<VerifyEmailPayload, S> | null;
|
|
127
157
|
}>;
|
|
158
|
+
provisionNewUser: <S extends ProvisionNewUserPayloadSelect>(args: ProvisionNewUserVariables, options: {
|
|
159
|
+
select: S;
|
|
160
|
+
} & StrictSelect<S, ProvisionNewUserPayloadSelect>) => QueryBuilder<{
|
|
161
|
+
provisionNewUser: InferSelectResult<ProvisionNewUserPayload, S> | null;
|
|
162
|
+
}>;
|
|
128
163
|
resetPassword: <S extends ResetPasswordPayloadSelect>(args: ResetPasswordVariables, options: {
|
|
129
164
|
select: S;
|
|
130
165
|
} & StrictSelect<S, ResetPasswordPayloadSelect>) => QueryBuilder<{
|
|
131
166
|
resetPassword: InferSelectResult<ResetPasswordPayload, S> | null;
|
|
132
167
|
}>;
|
|
133
|
-
|
|
168
|
+
createApiKey: <S extends CreateApiKeyPayloadSelect>(args: CreateApiKeyVariables, options: {
|
|
134
169
|
select: S;
|
|
135
|
-
} & StrictSelect<S,
|
|
136
|
-
|
|
170
|
+
} & StrictSelect<S, CreateApiKeyPayloadSelect>) => QueryBuilder<{
|
|
171
|
+
createApiKey: InferSelectResult<CreateApiKeyPayload, S> | null;
|
|
137
172
|
}>;
|
|
138
|
-
|
|
173
|
+
signInCrossOrigin: <S extends SignInCrossOriginPayloadSelect>(args: SignInCrossOriginVariables, options: {
|
|
139
174
|
select: S;
|
|
140
|
-
} & StrictSelect<S,
|
|
141
|
-
|
|
175
|
+
} & StrictSelect<S, SignInCrossOriginPayloadSelect>) => QueryBuilder<{
|
|
176
|
+
signInCrossOrigin: InferSelectResult<SignInCrossOriginPayload, S> | null;
|
|
142
177
|
}>;
|
|
143
178
|
signUp: <S extends SignUpPayloadSelect>(args: SignUpVariables, options: {
|
|
144
179
|
select: S;
|
|
145
180
|
} & StrictSelect<S, SignUpPayloadSelect>) => QueryBuilder<{
|
|
146
181
|
signUp: InferSelectResult<SignUpPayload, S> | null;
|
|
147
182
|
}>;
|
|
148
|
-
|
|
183
|
+
requestCrossOriginToken: <S extends RequestCrossOriginTokenPayloadSelect>(args: RequestCrossOriginTokenVariables, options: {
|
|
184
|
+
select: S;
|
|
185
|
+
} & StrictSelect<S, RequestCrossOriginTokenPayloadSelect>) => QueryBuilder<{
|
|
186
|
+
requestCrossOriginToken: InferSelectResult<RequestCrossOriginTokenPayload, S> | null;
|
|
187
|
+
}>;
|
|
188
|
+
signIn: <S extends SignInPayloadSelect>(args: SignInVariables, options: {
|
|
149
189
|
select: S;
|
|
150
|
-
} & StrictSelect<S,
|
|
151
|
-
|
|
190
|
+
} & StrictSelect<S, SignInPayloadSelect>) => QueryBuilder<{
|
|
191
|
+
signIn: InferSelectResult<SignInPayload, S> | null;
|
|
152
192
|
}>;
|
|
153
193
|
extendTokenExpires: <S extends ExtendTokenExpiresPayloadSelect>(args: ExtendTokenExpiresVariables, options: {
|
|
154
194
|
select: S;
|
|
@@ -38,6 +38,42 @@ export function createMutationOperations(client) {
|
|
|
38
38
|
},
|
|
39
39
|
], connectionFieldsMap, 'CheckPasswordPayload'),
|
|
40
40
|
}),
|
|
41
|
+
disconnectAccount: (args, options) => new QueryBuilder({
|
|
42
|
+
client,
|
|
43
|
+
operation: 'mutation',
|
|
44
|
+
operationName: 'DisconnectAccount',
|
|
45
|
+
fieldName: 'disconnectAccount',
|
|
46
|
+
...buildCustomDocument('mutation', 'DisconnectAccount', 'disconnectAccount', options.select, args, [
|
|
47
|
+
{
|
|
48
|
+
name: 'input',
|
|
49
|
+
type: 'DisconnectAccountInput!',
|
|
50
|
+
},
|
|
51
|
+
], connectionFieldsMap, 'DisconnectAccountPayload'),
|
|
52
|
+
}),
|
|
53
|
+
revokeApiKey: (args, options) => new QueryBuilder({
|
|
54
|
+
client,
|
|
55
|
+
operation: 'mutation',
|
|
56
|
+
operationName: 'RevokeApiKey',
|
|
57
|
+
fieldName: 'revokeApiKey',
|
|
58
|
+
...buildCustomDocument('mutation', 'RevokeApiKey', 'revokeApiKey', options.select, args, [
|
|
59
|
+
{
|
|
60
|
+
name: 'input',
|
|
61
|
+
type: 'RevokeApiKeyInput!',
|
|
62
|
+
},
|
|
63
|
+
], connectionFieldsMap, 'RevokeApiKeyPayload'),
|
|
64
|
+
}),
|
|
65
|
+
revokeSession: (args, options) => new QueryBuilder({
|
|
66
|
+
client,
|
|
67
|
+
operation: 'mutation',
|
|
68
|
+
operationName: 'RevokeSession',
|
|
69
|
+
fieldName: 'revokeSession',
|
|
70
|
+
...buildCustomDocument('mutation', 'RevokeSession', 'revokeSession', options.select, args, [
|
|
71
|
+
{
|
|
72
|
+
name: 'input',
|
|
73
|
+
type: 'RevokeSessionInput!',
|
|
74
|
+
},
|
|
75
|
+
], connectionFieldsMap, 'RevokeSessionPayload'),
|
|
76
|
+
}),
|
|
41
77
|
verifyPassword: (args, options) => new QueryBuilder({
|
|
42
78
|
client,
|
|
43
79
|
operation: 'mutation',
|
|
@@ -98,6 +134,18 @@ export function createMutationOperations(client) {
|
|
|
98
134
|
},
|
|
99
135
|
], connectionFieldsMap, 'VerifyEmailPayload'),
|
|
100
136
|
}),
|
|
137
|
+
provisionNewUser: (args, options) => new QueryBuilder({
|
|
138
|
+
client,
|
|
139
|
+
operation: 'mutation',
|
|
140
|
+
operationName: 'ProvisionNewUser',
|
|
141
|
+
fieldName: 'provisionNewUser',
|
|
142
|
+
...buildCustomDocument('mutation', 'ProvisionNewUser', 'provisionNewUser', options.select, args, [
|
|
143
|
+
{
|
|
144
|
+
name: 'input',
|
|
145
|
+
type: 'ProvisionNewUserInput!',
|
|
146
|
+
},
|
|
147
|
+
], connectionFieldsMap, 'ProvisionNewUserPayload'),
|
|
148
|
+
}),
|
|
101
149
|
resetPassword: (args, options) => new QueryBuilder({
|
|
102
150
|
client,
|
|
103
151
|
operation: 'mutation',
|
|
@@ -110,29 +158,29 @@ export function createMutationOperations(client) {
|
|
|
110
158
|
},
|
|
111
159
|
], connectionFieldsMap, 'ResetPasswordPayload'),
|
|
112
160
|
}),
|
|
113
|
-
|
|
161
|
+
createApiKey: (args, options) => new QueryBuilder({
|
|
114
162
|
client,
|
|
115
163
|
operation: 'mutation',
|
|
116
|
-
operationName: '
|
|
117
|
-
fieldName: '
|
|
118
|
-
...buildCustomDocument('mutation', '
|
|
164
|
+
operationName: 'CreateApiKey',
|
|
165
|
+
fieldName: 'createApiKey',
|
|
166
|
+
...buildCustomDocument('mutation', 'CreateApiKey', 'createApiKey', options.select, args, [
|
|
119
167
|
{
|
|
120
168
|
name: 'input',
|
|
121
|
-
type: '
|
|
169
|
+
type: 'CreateApiKeyInput!',
|
|
122
170
|
},
|
|
123
|
-
], connectionFieldsMap, '
|
|
171
|
+
], connectionFieldsMap, 'CreateApiKeyPayload'),
|
|
124
172
|
}),
|
|
125
|
-
|
|
173
|
+
signInCrossOrigin: (args, options) => new QueryBuilder({
|
|
126
174
|
client,
|
|
127
175
|
operation: 'mutation',
|
|
128
|
-
operationName: '
|
|
129
|
-
fieldName: '
|
|
130
|
-
...buildCustomDocument('mutation', '
|
|
176
|
+
operationName: 'SignInCrossOrigin',
|
|
177
|
+
fieldName: 'signInCrossOrigin',
|
|
178
|
+
...buildCustomDocument('mutation', 'SignInCrossOrigin', 'signInCrossOrigin', options.select, args, [
|
|
131
179
|
{
|
|
132
180
|
name: 'input',
|
|
133
|
-
type: '
|
|
181
|
+
type: 'SignInCrossOriginInput!',
|
|
134
182
|
},
|
|
135
|
-
], connectionFieldsMap, '
|
|
183
|
+
], connectionFieldsMap, 'SignInCrossOriginPayload'),
|
|
136
184
|
}),
|
|
137
185
|
signUp: (args, options) => new QueryBuilder({
|
|
138
186
|
client,
|
|
@@ -146,17 +194,29 @@ export function createMutationOperations(client) {
|
|
|
146
194
|
},
|
|
147
195
|
], connectionFieldsMap, 'SignUpPayload'),
|
|
148
196
|
}),
|
|
149
|
-
|
|
197
|
+
requestCrossOriginToken: (args, options) => new QueryBuilder({
|
|
150
198
|
client,
|
|
151
199
|
operation: 'mutation',
|
|
152
|
-
operationName: '
|
|
153
|
-
fieldName: '
|
|
154
|
-
...buildCustomDocument('mutation', '
|
|
200
|
+
operationName: 'RequestCrossOriginToken',
|
|
201
|
+
fieldName: 'requestCrossOriginToken',
|
|
202
|
+
...buildCustomDocument('mutation', 'RequestCrossOriginToken', 'requestCrossOriginToken', options.select, args, [
|
|
155
203
|
{
|
|
156
204
|
name: 'input',
|
|
157
|
-
type: '
|
|
205
|
+
type: 'RequestCrossOriginTokenInput!',
|
|
158
206
|
},
|
|
159
|
-
], connectionFieldsMap, '
|
|
207
|
+
], connectionFieldsMap, 'RequestCrossOriginTokenPayload'),
|
|
208
|
+
}),
|
|
209
|
+
signIn: (args, options) => new QueryBuilder({
|
|
210
|
+
client,
|
|
211
|
+
operation: 'mutation',
|
|
212
|
+
operationName: 'SignIn',
|
|
213
|
+
fieldName: 'signIn',
|
|
214
|
+
...buildCustomDocument('mutation', 'SignIn', 'signIn', options.select, args, [
|
|
215
|
+
{
|
|
216
|
+
name: 'input',
|
|
217
|
+
type: 'SignInInput!',
|
|
218
|
+
},
|
|
219
|
+
], connectionFieldsMap, 'SignInPayload'),
|
|
160
220
|
}),
|
|
161
221
|
extendTokenExpires: (args, options) => new QueryBuilder({
|
|
162
222
|
client,
|
|
@@ -7,22 +7,30 @@ import { OrmClient } from '../client';
|
|
|
7
7
|
import { QueryBuilder } from '../query-builder';
|
|
8
8
|
import type { InferSelectResult, StrictSelect } from '../select-types';
|
|
9
9
|
import type { User, UserSelect } from '../input-types';
|
|
10
|
+
export interface RequireStepUpVariables {
|
|
11
|
+
stepUpType?: string;
|
|
12
|
+
}
|
|
10
13
|
export declare function createQueryOperations(client: OrmClient): {
|
|
11
|
-
|
|
14
|
+
currentUserAgent: (options?: {
|
|
12
15
|
select?: Record<string, unknown>;
|
|
13
16
|
}) => QueryBuilder<{
|
|
14
|
-
|
|
17
|
+
currentUserAgent: string | null;
|
|
15
18
|
}>;
|
|
16
|
-
|
|
19
|
+
currentIpAddress: (options?: {
|
|
17
20
|
select?: Record<string, unknown>;
|
|
18
21
|
}) => QueryBuilder<{
|
|
19
|
-
|
|
22
|
+
currentIpAddress: string | null;
|
|
20
23
|
}>;
|
|
21
24
|
currentUserId: (options?: {
|
|
22
25
|
select?: Record<string, unknown>;
|
|
23
26
|
}) => QueryBuilder<{
|
|
24
27
|
currentUserId: string | null;
|
|
25
28
|
}>;
|
|
29
|
+
requireStepUp: (args: RequireStepUpVariables, options?: {
|
|
30
|
+
select?: Record<string, unknown>;
|
|
31
|
+
}) => QueryBuilder<{
|
|
32
|
+
requireStepUp: boolean | null;
|
|
33
|
+
}>;
|
|
26
34
|
currentUser: <S extends UserSelect>(options: {
|
|
27
35
|
select: S;
|
|
28
36
|
} & StrictSelect<S, UserSelect>) => QueryBuilder<{
|
|
@@ -2,13 +2,6 @@ import { QueryBuilder, buildCustomDocument } from '../query-builder';
|
|
|
2
2
|
import { connectionFieldsMap } from '../input-types';
|
|
3
3
|
export function createQueryOperations(client) {
|
|
4
4
|
return {
|
|
5
|
-
currentIpAddress: (options) => new QueryBuilder({
|
|
6
|
-
client,
|
|
7
|
-
operation: 'query',
|
|
8
|
-
operationName: 'CurrentIpAddress',
|
|
9
|
-
fieldName: 'currentIpAddress',
|
|
10
|
-
...buildCustomDocument('query', 'CurrentIpAddress', 'currentIpAddress', options?.select, undefined, [], connectionFieldsMap, undefined),
|
|
11
|
-
}),
|
|
12
5
|
currentUserAgent: (options) => new QueryBuilder({
|
|
13
6
|
client,
|
|
14
7
|
operation: 'query',
|
|
@@ -16,6 +9,13 @@ export function createQueryOperations(client) {
|
|
|
16
9
|
fieldName: 'currentUserAgent',
|
|
17
10
|
...buildCustomDocument('query', 'CurrentUserAgent', 'currentUserAgent', options?.select, undefined, [], connectionFieldsMap, undefined),
|
|
18
11
|
}),
|
|
12
|
+
currentIpAddress: (options) => new QueryBuilder({
|
|
13
|
+
client,
|
|
14
|
+
operation: 'query',
|
|
15
|
+
operationName: 'CurrentIpAddress',
|
|
16
|
+
fieldName: 'currentIpAddress',
|
|
17
|
+
...buildCustomDocument('query', 'CurrentIpAddress', 'currentIpAddress', options?.select, undefined, [], connectionFieldsMap, undefined),
|
|
18
|
+
}),
|
|
19
19
|
currentUserId: (options) => new QueryBuilder({
|
|
20
20
|
client,
|
|
21
21
|
operation: 'query',
|
|
@@ -23,6 +23,18 @@ export function createQueryOperations(client) {
|
|
|
23
23
|
fieldName: 'currentUserId',
|
|
24
24
|
...buildCustomDocument('query', 'CurrentUserId', 'currentUserId', options?.select, undefined, [], connectionFieldsMap, undefined),
|
|
25
25
|
}),
|
|
26
|
+
requireStepUp: (args, options) => new QueryBuilder({
|
|
27
|
+
client,
|
|
28
|
+
operation: 'query',
|
|
29
|
+
operationName: 'RequireStepUp',
|
|
30
|
+
fieldName: 'requireStepUp',
|
|
31
|
+
...buildCustomDocument('query', 'RequireStepUp', 'requireStepUp', options?.select, args, [
|
|
32
|
+
{
|
|
33
|
+
name: 'stepUpType',
|
|
34
|
+
type: 'String',
|
|
35
|
+
},
|
|
36
|
+
], connectionFieldsMap, undefined),
|
|
37
|
+
}),
|
|
26
38
|
currentUser: (options) => new QueryBuilder({
|
|
27
39
|
client,
|
|
28
40
|
operation: 'query',
|