@constructive-sdk/cli 0.13.4 → 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/cli/commands/app-membership.js +22 -0
- package/admin/cli/commands/membership-type.js +44 -0
- package/{auth/cli/commands/connected-account.d.ts → admin/cli/commands/org-member-profile.d.ts} +1 -1
- package/admin/cli/commands/org-member-profile.js +392 -0
- package/admin/cli/commands/org-membership.js +44 -0
- package/admin/cli/commands.js +7 -5
- package/admin/cli/executor.d.ts +3 -2
- 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/{esm/auth/cli/commands/one-time-token.d.ts → auth/cli/commands/create-api-key.d.ts} +1 -1
- package/{public/cli/commands/one-time-token.js → auth/cli/commands/create-api-key.js} +3 -3
- package/auth/cli/commands/disconnect-account.d.ts +8 -0
- package/auth/cli/commands/{sign-in-one-time-token.js → disconnect-account.js} +3 -3
- package/auth/cli/commands/provision-new-user.d.ts +8 -0
- package/{public/cli/commands/sign-in-one-time-token.js → auth/cli/commands/provision-new-user.js} +3 -3
- package/auth/cli/commands/request-cross-origin-token.d.ts +8 -0
- package/auth/cli/commands/request-cross-origin-token.js +36 -0
- package/auth/cli/commands/require-step-up.d.ts +8 -0
- package/auth/cli/commands/require-step-up.js +30 -0
- package/auth/cli/commands/{one-time-token.d.ts → revoke-api-key.d.ts} +1 -1
- package/auth/cli/commands/{one-time-token.js → revoke-api-key.js} +3 -3
- package/auth/cli/commands/revoke-session.d.ts +8 -0
- package/auth/cli/commands/revoke-session.js +36 -0
- package/auth/cli/commands/sign-in-cross-origin.d.ts +8 -0
- package/auth/cli/commands/sign-in-cross-origin.js +36 -0
- package/auth/cli/commands/user-connected-account.d.ts +8 -0
- package/auth/cli/commands/user-connected-account.js +176 -0
- package/auth/cli/commands.js +23 -11
- package/auth/cli/executor.d.ts +44 -14
- 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/cli/commands/app-membership.js +22 -0
- package/esm/admin/cli/commands/membership-type.js +44 -0
- package/esm/{public/cli/commands/connected-account.d.ts → admin/cli/commands/org-member-profile.d.ts} +1 -1
- package/esm/admin/cli/commands/org-member-profile.js +390 -0
- package/esm/admin/cli/commands/org-membership.js +44 -0
- package/esm/admin/cli/commands.js +7 -5
- package/esm/admin/cli/executor.d.ts +3 -2
- 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/cli/commands/create-api-key.d.ts +8 -0
- package/esm/{public/cli/commands/one-time-token.js → auth/cli/commands/create-api-key.js} +3 -3
- package/esm/auth/cli/commands/disconnect-account.d.ts +8 -0
- package/esm/auth/cli/commands/{sign-in-one-time-token.js → disconnect-account.js} +3 -3
- package/esm/auth/cli/commands/provision-new-user.d.ts +8 -0
- package/esm/{public/cli/commands/sign-in-one-time-token.js → auth/cli/commands/provision-new-user.js} +3 -3
- package/esm/auth/cli/commands/request-cross-origin-token.d.ts +8 -0
- package/esm/auth/cli/commands/request-cross-origin-token.js +34 -0
- package/esm/auth/cli/commands/require-step-up.d.ts +8 -0
- package/esm/auth/cli/commands/require-step-up.js +28 -0
- package/esm/auth/cli/commands/revoke-api-key.d.ts +8 -0
- package/esm/auth/cli/commands/{one-time-token.js → revoke-api-key.js} +3 -3
- package/esm/auth/cli/commands/revoke-session.d.ts +8 -0
- package/esm/auth/cli/commands/revoke-session.js +34 -0
- package/esm/auth/cli/commands/sign-in-cross-origin.d.ts +8 -0
- package/esm/auth/cli/commands/sign-in-cross-origin.js +34 -0
- package/esm/auth/cli/commands/user-connected-account.d.ts +8 -0
- package/esm/auth/cli/commands/user-connected-account.js +174 -0
- package/esm/auth/cli/commands.js +23 -11
- package/esm/auth/cli/executor.d.ts +44 -14
- 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/cli/commands/app-membership.js +22 -0
- package/esm/public/cli/commands/construct-blueprint.js +1 -1
- package/esm/public/cli/commands/create-api-key.d.ts +8 -0
- package/esm/public/cli/commands/create-api-key.js +34 -0
- package/{public/cli/commands/connected-account.d.ts → esm/public/cli/commands/devices-module.d.ts} +1 -1
- package/esm/public/cli/commands/{connected-account.js → devices-module.js} +101 -87
- package/esm/public/cli/commands/disconnect-account.d.ts +8 -0
- package/esm/public/cli/commands/disconnect-account.js +34 -0
- package/esm/public/cli/commands/{table-template-module.d.ts → entity-type-provision.d.ts} +1 -1
- package/esm/public/cli/commands/entity-type-provision.js +554 -0
- package/esm/public/cli/commands/membership-type.js +44 -0
- package/esm/public/cli/commands/memberships-module.js +22 -0
- package/esm/{auth/cli/commands/connected-account.d.ts → public/cli/commands/org-member-profile.d.ts} +1 -1
- package/esm/public/cli/commands/org-member-profile.js +390 -0
- package/esm/public/cli/commands/org-membership.js +44 -0
- package/esm/public/cli/commands/provision-new-user.d.ts +8 -0
- package/esm/public/cli/commands/provision-new-user.js +34 -0
- package/esm/public/cli/commands/provision-spatial-relation.d.ts +8 -0
- package/esm/public/cli/commands/provision-spatial-relation.js +34 -0
- package/esm/public/cli/commands/request-cross-origin-token.d.ts +8 -0
- package/esm/public/cli/commands/request-cross-origin-token.js +34 -0
- package/esm/public/cli/commands/require-step-up.d.ts +8 -0
- package/esm/public/cli/commands/require-step-up.js +28 -0
- package/{auth/cli/commands/sign-in-one-time-token.d.ts → esm/public/cli/commands/resolve-blueprint-field.d.ts} +1 -1
- package/esm/public/cli/commands/resolve-blueprint-field.js +38 -0
- package/esm/public/cli/commands/revoke-api-key.d.ts +8 -0
- package/esm/public/cli/commands/revoke-api-key.js +34 -0
- package/esm/public/cli/commands/revoke-session.d.ts +8 -0
- package/esm/public/cli/commands/revoke-session.js +34 -0
- package/esm/public/cli/commands/session-secrets-module.d.ts +8 -0
- package/esm/{auth/cli/commands/connected-account.js → public/cli/commands/session-secrets-module.js} +82 -90
- package/esm/public/cli/commands/sign-in-cross-origin.d.ts +8 -0
- package/esm/public/cli/commands/sign-in-cross-origin.js +34 -0
- package/esm/public/cli/commands/spatial-relation.d.ts +8 -0
- package/esm/public/cli/commands/spatial-relation.js +472 -0
- package/esm/public/cli/commands/user-auth-module.js +24 -24
- package/esm/public/cli/commands/user-connected-account.d.ts +8 -0
- package/esm/public/cli/commands/user-connected-account.js +174 -0
- package/esm/public/cli/commands/webauthn-credentials-module.d.ts +8 -0
- package/esm/public/cli/commands/{table-template-module.js → webauthn-credentials-module.js} +8 -48
- package/esm/public/cli/commands.js +41 -15
- package/esm/public/cli/executor.d.ts +61 -16
- 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 +5 -5
- package/public/cli/commands/app-membership.js +22 -0
- package/public/cli/commands/construct-blueprint.js +1 -1
- package/public/cli/commands/create-api-key.d.ts +8 -0
- package/public/cli/commands/create-api-key.js +36 -0
- package/public/cli/commands/devices-module.d.ts +8 -0
- package/{auth/cli/commands/connected-account.js → public/cli/commands/devices-module.js} +101 -87
- package/public/cli/commands/disconnect-account.d.ts +8 -0
- package/public/cli/commands/disconnect-account.js +36 -0
- package/public/cli/commands/entity-type-provision.d.ts +8 -0
- package/public/cli/commands/entity-type-provision.js +556 -0
- package/public/cli/commands/membership-type.js +44 -0
- package/public/cli/commands/memberships-module.js +22 -0
- package/public/cli/commands/org-member-profile.d.ts +8 -0
- package/public/cli/commands/org-member-profile.js +392 -0
- package/public/cli/commands/org-membership.js +44 -0
- package/public/cli/commands/provision-new-user.d.ts +8 -0
- package/public/cli/commands/provision-new-user.js +36 -0
- package/public/cli/commands/provision-spatial-relation.d.ts +8 -0
- package/public/cli/commands/provision-spatial-relation.js +36 -0
- package/public/cli/commands/request-cross-origin-token.d.ts +8 -0
- package/public/cli/commands/request-cross-origin-token.js +36 -0
- package/public/cli/commands/require-step-up.d.ts +8 -0
- package/public/cli/commands/require-step-up.js +30 -0
- package/public/cli/commands/resolve-blueprint-field.d.ts +8 -0
- package/public/cli/commands/resolve-blueprint-field.js +40 -0
- package/public/cli/commands/revoke-api-key.d.ts +8 -0
- package/public/cli/commands/revoke-api-key.js +36 -0
- package/public/cli/commands/revoke-session.d.ts +8 -0
- package/public/cli/commands/revoke-session.js +36 -0
- package/public/cli/commands/session-secrets-module.d.ts +8 -0
- package/public/cli/commands/{connected-account.js → session-secrets-module.js} +82 -90
- package/public/cli/commands/sign-in-cross-origin.d.ts +8 -0
- package/public/cli/commands/sign-in-cross-origin.js +36 -0
- package/public/cli/commands/spatial-relation.d.ts +8 -0
- package/public/cli/commands/spatial-relation.js +474 -0
- package/public/cli/commands/user-auth-module.js +24 -24
- package/public/cli/commands/user-connected-account.d.ts +8 -0
- package/public/cli/commands/user-connected-account.js +176 -0
- package/public/cli/commands/webauthn-credentials-module.d.ts +8 -0
- package/public/cli/commands/{table-template-module.js → webauthn-credentials-module.js} +8 -48
- package/public/cli/commands.js +41 -15
- package/public/cli/executor.d.ts +61 -16
- 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/cli/commands/sign-in-one-time-token.d.ts +0 -8
- package/esm/auth/orm/models/connectedAccount.d.ts +0 -56
- package/esm/public/cli/commands/one-time-token.d.ts +0 -8
- package/esm/public/cli/commands/sign-in-one-time-token.d.ts +0 -8
- package/esm/public/orm/models/connectedAccount.d.ts +0 -56
- package/esm/public/orm/models/tableTemplateModule.d.ts +0 -56
- package/public/cli/commands/one-time-token.d.ts +0 -8
- package/public/cli/commands/sign-in-one-time-token.d.ts +0 -8
- package/public/cli/commands/table-template-module.d.ts +0 -8
- package/public/orm/models/connectedAccount.d.ts +0 -56
- package/public/orm/models/tableTemplateModule.d.ts +0 -56
package/auth/orm/input-types.js
CHANGED
|
@@ -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';
|
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.
|
|
3
|
+
exports.UserModel = exports.UserConnectedAccountModel = exports.RoleTypeModel = exports.AuditLogModel = exports.CryptoAddressModel = exports.PhoneNumberModel = exports.EmailModel = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Models barrel export
|
|
6
6
|
* @generated by @constructive-io/graphql-codegen
|
|
@@ -12,11 +12,11 @@ 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 connectedAccount_1 = require("./connectedAccount");
|
|
16
|
-
Object.defineProperty(exports, "ConnectedAccountModel", { enumerable: true, get: function () { return connectedAccount_1.ConnectedAccountModel; } });
|
|
17
15
|
var auditLog_1 = require("./auditLog");
|
|
18
16
|
Object.defineProperty(exports, "AuditLogModel", { enumerable: true, get: function () { return auditLog_1.AuditLogModel; } });
|
|
19
17
|
var roleType_1 = require("./roleType");
|
|
20
18
|
Object.defineProperty(exports, "RoleTypeModel", { enumerable: true, get: function () { return roleType_1.RoleTypeModel; } });
|
|
19
|
+
var userConnectedAccount_1 = require("./userConnectedAccount");
|
|
20
|
+
Object.defineProperty(exports, "UserConnectedAccountModel", { enumerable: true, get: function () { return userConnectedAccount_1.UserConnectedAccountModel; } });
|
|
21
21
|
var user_1 = require("./user");
|
|
22
22
|
Object.defineProperty(exports, "UserModel", { enumerable: true, get: function () { return user_1.UserModel; } });
|
|
@@ -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,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserConnectedAccountModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class UserConnectedAccountModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('UserConnectedAccount', 'userConnectedAccounts', 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
|
+
}, 'UserConnectedAccountFilter', 'UserConnectedAccountOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'UserConnectedAccount',
|
|
25
|
+
fieldName: 'userConnectedAccounts',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('UserConnectedAccount', 'userConnectedAccounts', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
}, 'UserConnectedAccountFilter', input_types_1.connectionFieldsMap);
|
|
34
|
+
return new query_builder_1.QueryBuilder({
|
|
35
|
+
client: this.client,
|
|
36
|
+
operation: 'query',
|
|
37
|
+
operationName: 'UserConnectedAccount',
|
|
38
|
+
fieldName: 'userConnectedAccounts',
|
|
39
|
+
document,
|
|
40
|
+
variables,
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
findOne(args) {
|
|
44
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('UserConnectedAccount', 'userConnectedAccounts', args.select, {
|
|
45
|
+
where: {
|
|
46
|
+
id: {
|
|
47
|
+
equalTo: args.id,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
first: 1,
|
|
51
|
+
}, 'UserConnectedAccountFilter', 'UserConnectedAccountOrderBy', input_types_1.connectionFieldsMap);
|
|
52
|
+
return new query_builder_1.QueryBuilder({
|
|
53
|
+
client: this.client,
|
|
54
|
+
operation: 'query',
|
|
55
|
+
operationName: 'UserConnectedAccount',
|
|
56
|
+
fieldName: 'userConnectedAccount',
|
|
57
|
+
document,
|
|
58
|
+
variables,
|
|
59
|
+
transform: (data) => ({
|
|
60
|
+
userConnectedAccount: data.userConnectedAccounts?.nodes?.[0] ?? null,
|
|
61
|
+
}),
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
create(args) {
|
|
65
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('UserConnectedAccount', 'createUserConnectedAccount', 'userConnectedAccount', args.select, args.data, 'CreateUserConnectedAccountInput', input_types_1.connectionFieldsMap);
|
|
66
|
+
return new query_builder_1.QueryBuilder({
|
|
67
|
+
client: this.client,
|
|
68
|
+
operation: 'mutation',
|
|
69
|
+
operationName: 'UserConnectedAccount',
|
|
70
|
+
fieldName: 'createUserConnectedAccount',
|
|
71
|
+
document,
|
|
72
|
+
variables,
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
exports.UserConnectedAccountModel = UserConnectedAccountModel;
|
|
@@ -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;
|
|
@@ -41,6 +41,42 @@ function createMutationOperations(client) {
|
|
|
41
41
|
},
|
|
42
42
|
], input_types_1.connectionFieldsMap, 'CheckPasswordPayload'),
|
|
43
43
|
}),
|
|
44
|
+
disconnectAccount: (args, options) => new query_builder_1.QueryBuilder({
|
|
45
|
+
client,
|
|
46
|
+
operation: 'mutation',
|
|
47
|
+
operationName: 'DisconnectAccount',
|
|
48
|
+
fieldName: 'disconnectAccount',
|
|
49
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'DisconnectAccount', 'disconnectAccount', options.select, args, [
|
|
50
|
+
{
|
|
51
|
+
name: 'input',
|
|
52
|
+
type: 'DisconnectAccountInput!',
|
|
53
|
+
},
|
|
54
|
+
], input_types_1.connectionFieldsMap, 'DisconnectAccountPayload'),
|
|
55
|
+
}),
|
|
56
|
+
revokeApiKey: (args, options) => new query_builder_1.QueryBuilder({
|
|
57
|
+
client,
|
|
58
|
+
operation: 'mutation',
|
|
59
|
+
operationName: 'RevokeApiKey',
|
|
60
|
+
fieldName: 'revokeApiKey',
|
|
61
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'RevokeApiKey', 'revokeApiKey', options.select, args, [
|
|
62
|
+
{
|
|
63
|
+
name: 'input',
|
|
64
|
+
type: 'RevokeApiKeyInput!',
|
|
65
|
+
},
|
|
66
|
+
], input_types_1.connectionFieldsMap, 'RevokeApiKeyPayload'),
|
|
67
|
+
}),
|
|
68
|
+
revokeSession: (args, options) => new query_builder_1.QueryBuilder({
|
|
69
|
+
client,
|
|
70
|
+
operation: 'mutation',
|
|
71
|
+
operationName: 'RevokeSession',
|
|
72
|
+
fieldName: 'revokeSession',
|
|
73
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'RevokeSession', 'revokeSession', options.select, args, [
|
|
74
|
+
{
|
|
75
|
+
name: 'input',
|
|
76
|
+
type: 'RevokeSessionInput!',
|
|
77
|
+
},
|
|
78
|
+
], input_types_1.connectionFieldsMap, 'RevokeSessionPayload'),
|
|
79
|
+
}),
|
|
44
80
|
verifyPassword: (args, options) => new query_builder_1.QueryBuilder({
|
|
45
81
|
client,
|
|
46
82
|
operation: 'mutation',
|
|
@@ -101,6 +137,18 @@ function createMutationOperations(client) {
|
|
|
101
137
|
},
|
|
102
138
|
], input_types_1.connectionFieldsMap, 'VerifyEmailPayload'),
|
|
103
139
|
}),
|
|
140
|
+
provisionNewUser: (args, options) => new query_builder_1.QueryBuilder({
|
|
141
|
+
client,
|
|
142
|
+
operation: 'mutation',
|
|
143
|
+
operationName: 'ProvisionNewUser',
|
|
144
|
+
fieldName: 'provisionNewUser',
|
|
145
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'ProvisionNewUser', 'provisionNewUser', options.select, args, [
|
|
146
|
+
{
|
|
147
|
+
name: 'input',
|
|
148
|
+
type: 'ProvisionNewUserInput!',
|
|
149
|
+
},
|
|
150
|
+
], input_types_1.connectionFieldsMap, 'ProvisionNewUserPayload'),
|
|
151
|
+
}),
|
|
104
152
|
resetPassword: (args, options) => new query_builder_1.QueryBuilder({
|
|
105
153
|
client,
|
|
106
154
|
operation: 'mutation',
|
|
@@ -113,29 +161,29 @@ function createMutationOperations(client) {
|
|
|
113
161
|
},
|
|
114
162
|
], input_types_1.connectionFieldsMap, 'ResetPasswordPayload'),
|
|
115
163
|
}),
|
|
116
|
-
|
|
164
|
+
createApiKey: (args, options) => new query_builder_1.QueryBuilder({
|
|
117
165
|
client,
|
|
118
166
|
operation: 'mutation',
|
|
119
|
-
operationName: '
|
|
120
|
-
fieldName: '
|
|
121
|
-
...(0, query_builder_1.buildCustomDocument)('mutation', '
|
|
167
|
+
operationName: 'CreateApiKey',
|
|
168
|
+
fieldName: 'createApiKey',
|
|
169
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'CreateApiKey', 'createApiKey', options.select, args, [
|
|
122
170
|
{
|
|
123
171
|
name: 'input',
|
|
124
|
-
type: '
|
|
172
|
+
type: 'CreateApiKeyInput!',
|
|
125
173
|
},
|
|
126
|
-
], input_types_1.connectionFieldsMap, '
|
|
174
|
+
], input_types_1.connectionFieldsMap, 'CreateApiKeyPayload'),
|
|
127
175
|
}),
|
|
128
|
-
|
|
176
|
+
signInCrossOrigin: (args, options) => new query_builder_1.QueryBuilder({
|
|
129
177
|
client,
|
|
130
178
|
operation: 'mutation',
|
|
131
|
-
operationName: '
|
|
132
|
-
fieldName: '
|
|
133
|
-
...(0, query_builder_1.buildCustomDocument)('mutation', '
|
|
179
|
+
operationName: 'SignInCrossOrigin',
|
|
180
|
+
fieldName: 'signInCrossOrigin',
|
|
181
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'SignInCrossOrigin', 'signInCrossOrigin', options.select, args, [
|
|
134
182
|
{
|
|
135
183
|
name: 'input',
|
|
136
|
-
type: '
|
|
184
|
+
type: 'SignInCrossOriginInput!',
|
|
137
185
|
},
|
|
138
|
-
], input_types_1.connectionFieldsMap, '
|
|
186
|
+
], input_types_1.connectionFieldsMap, 'SignInCrossOriginPayload'),
|
|
139
187
|
}),
|
|
140
188
|
signUp: (args, options) => new query_builder_1.QueryBuilder({
|
|
141
189
|
client,
|
|
@@ -149,17 +197,29 @@ function createMutationOperations(client) {
|
|
|
149
197
|
},
|
|
150
198
|
], input_types_1.connectionFieldsMap, 'SignUpPayload'),
|
|
151
199
|
}),
|
|
152
|
-
|
|
200
|
+
requestCrossOriginToken: (args, options) => new query_builder_1.QueryBuilder({
|
|
153
201
|
client,
|
|
154
202
|
operation: 'mutation',
|
|
155
|
-
operationName: '
|
|
156
|
-
fieldName: '
|
|
157
|
-
...(0, query_builder_1.buildCustomDocument)('mutation', '
|
|
203
|
+
operationName: 'RequestCrossOriginToken',
|
|
204
|
+
fieldName: 'requestCrossOriginToken',
|
|
205
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'RequestCrossOriginToken', 'requestCrossOriginToken', options.select, args, [
|
|
158
206
|
{
|
|
159
207
|
name: 'input',
|
|
160
|
-
type: '
|
|
208
|
+
type: 'RequestCrossOriginTokenInput!',
|
|
161
209
|
},
|
|
162
|
-
], input_types_1.connectionFieldsMap, '
|
|
210
|
+
], input_types_1.connectionFieldsMap, 'RequestCrossOriginTokenPayload'),
|
|
211
|
+
}),
|
|
212
|
+
signIn: (args, options) => new query_builder_1.QueryBuilder({
|
|
213
|
+
client,
|
|
214
|
+
operation: 'mutation',
|
|
215
|
+
operationName: 'SignIn',
|
|
216
|
+
fieldName: 'signIn',
|
|
217
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'SignIn', 'signIn', options.select, args, [
|
|
218
|
+
{
|
|
219
|
+
name: 'input',
|
|
220
|
+
type: 'SignInInput!',
|
|
221
|
+
},
|
|
222
|
+
], input_types_1.connectionFieldsMap, 'SignInPayload'),
|
|
163
223
|
}),
|
|
164
224
|
extendTokenExpires: (args, options) => new query_builder_1.QueryBuilder({
|
|
165
225
|
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<{
|
package/auth/orm/query/index.js
CHANGED
|
@@ -5,13 +5,6 @@ const query_builder_1 = require("../query-builder");
|
|
|
5
5
|
const input_types_1 = require("../input-types");
|
|
6
6
|
function createQueryOperations(client) {
|
|
7
7
|
return {
|
|
8
|
-
currentIpAddress: (options) => new query_builder_1.QueryBuilder({
|
|
9
|
-
client,
|
|
10
|
-
operation: 'query',
|
|
11
|
-
operationName: 'CurrentIpAddress',
|
|
12
|
-
fieldName: 'currentIpAddress',
|
|
13
|
-
...(0, query_builder_1.buildCustomDocument)('query', 'CurrentIpAddress', 'currentIpAddress', options?.select, undefined, [], input_types_1.connectionFieldsMap, undefined),
|
|
14
|
-
}),
|
|
15
8
|
currentUserAgent: (options) => new query_builder_1.QueryBuilder({
|
|
16
9
|
client,
|
|
17
10
|
operation: 'query',
|
|
@@ -19,6 +12,13 @@ function createQueryOperations(client) {
|
|
|
19
12
|
fieldName: 'currentUserAgent',
|
|
20
13
|
...(0, query_builder_1.buildCustomDocument)('query', 'CurrentUserAgent', 'currentUserAgent', options?.select, undefined, [], input_types_1.connectionFieldsMap, undefined),
|
|
21
14
|
}),
|
|
15
|
+
currentIpAddress: (options) => new query_builder_1.QueryBuilder({
|
|
16
|
+
client,
|
|
17
|
+
operation: 'query',
|
|
18
|
+
operationName: 'CurrentIpAddress',
|
|
19
|
+
fieldName: 'currentIpAddress',
|
|
20
|
+
...(0, query_builder_1.buildCustomDocument)('query', 'CurrentIpAddress', 'currentIpAddress', options?.select, undefined, [], input_types_1.connectionFieldsMap, undefined),
|
|
21
|
+
}),
|
|
22
22
|
currentUserId: (options) => new query_builder_1.QueryBuilder({
|
|
23
23
|
client,
|
|
24
24
|
operation: 'query',
|
|
@@ -26,6 +26,18 @@ function createQueryOperations(client) {
|
|
|
26
26
|
fieldName: 'currentUserId',
|
|
27
27
|
...(0, query_builder_1.buildCustomDocument)('query', 'CurrentUserId', 'currentUserId', options?.select, undefined, [], input_types_1.connectionFieldsMap, undefined),
|
|
28
28
|
}),
|
|
29
|
+
requireStepUp: (args, options) => new query_builder_1.QueryBuilder({
|
|
30
|
+
client,
|
|
31
|
+
operation: 'query',
|
|
32
|
+
operationName: 'RequireStepUp',
|
|
33
|
+
fieldName: 'requireStepUp',
|
|
34
|
+
...(0, query_builder_1.buildCustomDocument)('query', 'RequireStepUp', 'requireStepUp', options?.select, args, [
|
|
35
|
+
{
|
|
36
|
+
name: 'stepUpType',
|
|
37
|
+
type: 'String',
|
|
38
|
+
},
|
|
39
|
+
], input_types_1.connectionFieldsMap, undefined),
|
|
40
|
+
}),
|
|
29
41
|
currentUser: (options) => new query_builder_1.QueryBuilder({
|
|
30
42
|
client,
|
|
31
43
|
operation: 'query',
|
|
@@ -17,6 +17,7 @@ const fieldSchema = {
|
|
|
17
17
|
isDisabled: 'boolean',
|
|
18
18
|
isVerified: 'boolean',
|
|
19
19
|
isActive: 'boolean',
|
|
20
|
+
isExternal: 'boolean',
|
|
20
21
|
isOwner: 'boolean',
|
|
21
22
|
isAdmin: 'boolean',
|
|
22
23
|
permissions: 'string',
|
|
@@ -76,6 +77,7 @@ async function handleList(argv, _prompter) {
|
|
|
76
77
|
isDisabled: true,
|
|
77
78
|
isVerified: true,
|
|
78
79
|
isActive: true,
|
|
80
|
+
isExternal: true,
|
|
79
81
|
isOwner: true,
|
|
80
82
|
isAdmin: true,
|
|
81
83
|
permissions: true,
|
|
@@ -109,6 +111,7 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
109
111
|
isDisabled: true,
|
|
110
112
|
isVerified: true,
|
|
111
113
|
isActive: true,
|
|
114
|
+
isExternal: true,
|
|
112
115
|
isOwner: true,
|
|
113
116
|
isAdmin: true,
|
|
114
117
|
permissions: true,
|
|
@@ -154,6 +157,7 @@ async function handleGet(argv, prompter) {
|
|
|
154
157
|
isDisabled: true,
|
|
155
158
|
isVerified: true,
|
|
156
159
|
isActive: true,
|
|
160
|
+
isExternal: true,
|
|
157
161
|
isOwner: true,
|
|
158
162
|
isAdmin: true,
|
|
159
163
|
permissions: true,
|
|
@@ -225,6 +229,13 @@ async function handleCreate(argv, prompter) {
|
|
|
225
229
|
required: false,
|
|
226
230
|
skipPrompt: true,
|
|
227
231
|
},
|
|
232
|
+
{
|
|
233
|
+
type: 'boolean',
|
|
234
|
+
name: 'isExternal',
|
|
235
|
+
message: 'isExternal',
|
|
236
|
+
required: false,
|
|
237
|
+
skipPrompt: true,
|
|
238
|
+
},
|
|
228
239
|
{
|
|
229
240
|
type: 'boolean',
|
|
230
241
|
name: 'isOwner',
|
|
@@ -280,6 +291,7 @@ async function handleCreate(argv, prompter) {
|
|
|
280
291
|
isDisabled: cleanedData.isDisabled,
|
|
281
292
|
isVerified: cleanedData.isVerified,
|
|
282
293
|
isActive: cleanedData.isActive,
|
|
294
|
+
isExternal: cleanedData.isExternal,
|
|
283
295
|
isOwner: cleanedData.isOwner,
|
|
284
296
|
isAdmin: cleanedData.isAdmin,
|
|
285
297
|
permissions: cleanedData.permissions,
|
|
@@ -298,6 +310,7 @@ async function handleCreate(argv, prompter) {
|
|
|
298
310
|
isDisabled: true,
|
|
299
311
|
isVerified: true,
|
|
300
312
|
isActive: true,
|
|
313
|
+
isExternal: true,
|
|
301
314
|
isOwner: true,
|
|
302
315
|
isAdmin: true,
|
|
303
316
|
permissions: true,
|
|
@@ -375,6 +388,13 @@ async function handleUpdate(argv, prompter) {
|
|
|
375
388
|
required: false,
|
|
376
389
|
skipPrompt: true,
|
|
377
390
|
},
|
|
391
|
+
{
|
|
392
|
+
type: 'boolean',
|
|
393
|
+
name: 'isExternal',
|
|
394
|
+
message: 'isExternal',
|
|
395
|
+
required: false,
|
|
396
|
+
skipPrompt: true,
|
|
397
|
+
},
|
|
378
398
|
{
|
|
379
399
|
type: 'boolean',
|
|
380
400
|
name: 'isOwner',
|
|
@@ -433,6 +453,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
433
453
|
isDisabled: cleanedData.isDisabled,
|
|
434
454
|
isVerified: cleanedData.isVerified,
|
|
435
455
|
isActive: cleanedData.isActive,
|
|
456
|
+
isExternal: cleanedData.isExternal,
|
|
436
457
|
isOwner: cleanedData.isOwner,
|
|
437
458
|
isAdmin: cleanedData.isAdmin,
|
|
438
459
|
permissions: cleanedData.permissions,
|
|
@@ -451,6 +472,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
451
472
|
isDisabled: true,
|
|
452
473
|
isVerified: true,
|
|
453
474
|
isActive: true,
|
|
475
|
+
isExternal: true,
|
|
454
476
|
isOwner: true,
|
|
455
477
|
isAdmin: true,
|
|
456
478
|
permissions: true,
|