@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
|
@@ -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',
|
|
@@ -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,
|
|
@@ -3,7 +3,7 @@ import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
|
|
|
3
3
|
export default async (argv, prompter, _options) => {
|
|
4
4
|
try {
|
|
5
5
|
if (argv.help || argv.h) {
|
|
6
|
-
console.log('construct-blueprint - Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt.
|
|
6
|
+
console.log('construct-blueprint - Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Six phases: (0) entity_type_provision for each membership_type entry \u2014 provisions entity tables, membership modules, and security, (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints are deferred), (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level indexes/fts/unique_constraints are deferred to phases 3-5 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure.\n\nUsage: construct-blueprint [OPTIONS]\n');
|
|
7
7
|
process.exit(0);
|
|
8
8
|
}
|
|
9
9
|
const answers = await prompter.prompt(argv, [
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI command for mutation createApiKey
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { CLIOptions, Inquirerer } from 'inquirerer';
|
|
7
|
+
declare const _default: (argv: Partial<Record<string, unknown>>, prompter: Inquirerer, _options: CLIOptions) => Promise<void>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { getClient } from '../executor';
|
|
2
|
+
import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
|
|
3
|
+
export default async (argv, prompter, _options) => {
|
|
4
|
+
try {
|
|
5
|
+
if (argv.help || argv.h) {
|
|
6
|
+
console.log('create-api-key - createApiKey\n\nUsage: create-api-key [OPTIONS]\n');
|
|
7
|
+
process.exit(0);
|
|
8
|
+
}
|
|
9
|
+
const answers = await prompter.prompt(argv, [
|
|
10
|
+
{
|
|
11
|
+
type: 'text',
|
|
12
|
+
name: 'input',
|
|
13
|
+
message: 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.',
|
|
14
|
+
required: true,
|
|
15
|
+
},
|
|
16
|
+
]);
|
|
17
|
+
const client = getClient();
|
|
18
|
+
const parsedAnswers = unflattenDotNotation(answers);
|
|
19
|
+
const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
|
|
20
|
+
const result = await client.mutation
|
|
21
|
+
.createApiKey(parsedAnswers, {
|
|
22
|
+
select: selectFields,
|
|
23
|
+
})
|
|
24
|
+
.execute();
|
|
25
|
+
console.log(JSON.stringify(result, null, 2));
|
|
26
|
+
}
|
|
27
|
+
catch (error) {
|
|
28
|
+
console.error('Failed: createApiKey');
|
|
29
|
+
if (error instanceof Error) {
|
|
30
|
+
console.error(error.message);
|
|
31
|
+
}
|
|
32
|
+
process.exit(1);
|
|
33
|
+
}
|
|
34
|
+
};
|