@constructive-sdk/cli 0.14.7 → 0.14.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/admin/cli/commands/org-membership-default.js +0 -44
- package/admin/cli/commands/org-membership-setting.d.ts +8 -0
- package/admin/cli/commands/org-membership-setting.js +418 -0
- package/admin/cli/commands.js +5 -3
- package/admin/cli/executor.d.ts +2 -1
- package/admin/orm/index.d.ts +4 -2
- package/admin/orm/index.js +4 -2
- package/admin/orm/input-types.d.ts +303 -142
- package/admin/orm/models/index.d.ts +2 -1
- package/admin/orm/models/index.js +5 -3
- package/admin/orm/models/orgMembershipSetting.d.ts +56 -0
- package/admin/orm/models/orgMembershipSetting.js +100 -0
- package/auth/cli/commands/crypto-address.js +22 -0
- package/auth/cli/commands/email.js +22 -0
- package/auth/cli/commands/identity-provider.d.ts +8 -0
- package/auth/cli/commands/identity-provider.js +164 -0
- package/auth/cli/commands/phone-number.js +22 -0
- package/auth/cli/commands/webauthn-credential.d.ts +8 -0
- package/auth/cli/commands/webauthn-credential.js +456 -0
- package/auth/cli/commands.js +7 -3
- package/auth/cli/executor.d.ts +7 -5
- package/auth/orm/index.d.ts +9 -5
- package/auth/orm/index.js +4 -0
- package/auth/orm/input-types.d.ts +525 -81
- package/auth/orm/input-types.js +1 -0
- package/auth/orm/models/identityProvider.d.ts +32 -0
- package/auth/orm/models/identityProvider.js +55 -0
- package/auth/orm/models/index.d.ts +2 -0
- package/auth/orm/models/index.js +5 -1
- package/auth/orm/models/webauthnCredential.d.ts +56 -0
- package/auth/orm/models/webauthnCredential.js +100 -0
- package/auth/orm/mutation/index.d.ts +9 -9
- package/auth/orm/mutation/index.js +12 -12
- package/esm/admin/cli/commands/org-membership-default.js +0 -44
- package/esm/admin/cli/commands/org-membership-setting.d.ts +8 -0
- package/esm/admin/cli/commands/org-membership-setting.js +416 -0
- package/esm/admin/cli/commands.js +5 -3
- package/esm/admin/cli/executor.d.ts +2 -1
- package/esm/admin/orm/index.d.ts +4 -2
- package/esm/admin/orm/index.js +4 -2
- package/esm/admin/orm/input-types.d.ts +303 -142
- package/esm/admin/orm/models/index.d.ts +2 -1
- package/esm/admin/orm/models/index.js +2 -1
- package/esm/admin/orm/models/orgMembershipSetting.d.ts +56 -0
- package/esm/admin/orm/models/orgMembershipSetting.js +96 -0
- package/esm/auth/cli/commands/crypto-address.js +22 -0
- package/esm/auth/cli/commands/email.js +22 -0
- package/esm/auth/cli/commands/identity-provider.d.ts +8 -0
- package/esm/auth/cli/commands/identity-provider.js +162 -0
- package/esm/auth/cli/commands/phone-number.js +22 -0
- package/esm/auth/cli/commands/webauthn-credential.d.ts +8 -0
- package/esm/auth/cli/commands/webauthn-credential.js +454 -0
- package/esm/auth/cli/commands.js +7 -3
- package/esm/auth/cli/executor.d.ts +7 -5
- package/esm/auth/orm/index.d.ts +9 -5
- package/esm/auth/orm/index.js +4 -0
- package/esm/auth/orm/input-types.d.ts +525 -81
- package/esm/auth/orm/input-types.js +1 -0
- package/esm/auth/orm/models/identityProvider.d.ts +32 -0
- package/esm/auth/orm/models/identityProvider.js +51 -0
- package/esm/auth/orm/models/index.d.ts +2 -0
- package/esm/auth/orm/models/index.js +2 -0
- package/esm/auth/orm/models/webauthnCredential.d.ts +56 -0
- package/esm/auth/orm/models/webauthnCredential.js +96 -0
- package/esm/auth/orm/mutation/index.d.ts +9 -9
- package/esm/auth/orm/mutation/index.js +12 -12
- package/esm/objects/orm/input-types.d.ts +12 -0
- package/esm/public/cli/commands/crypto-address.js +22 -0
- package/esm/public/cli/commands/email.js +22 -0
- package/esm/public/cli/commands/entity-type-provision.js +110 -0
- package/esm/public/cli/commands/identity-provider.d.ts +8 -0
- package/esm/public/cli/commands/identity-provider.js +162 -0
- package/esm/public/cli/commands/identity-providers-module.d.ts +8 -0
- package/esm/public/cli/commands/identity-providers-module.js +316 -0
- package/esm/public/cli/commands/memberships-module.js +44 -0
- package/esm/public/cli/commands/notifications-module.d.ts +8 -0
- package/esm/public/cli/commands/notifications-module.js +448 -0
- package/esm/public/cli/commands/org-membership-default.js +0 -44
- package/esm/public/cli/commands/org-membership-setting.d.ts +8 -0
- package/esm/public/cli/commands/org-membership-setting.js +416 -0
- package/esm/public/cli/commands/phone-number.js +22 -0
- package/esm/public/cli/commands/relation-provision.js +24 -156
- package/esm/public/cli/commands/secure-table-provision.js +24 -156
- package/esm/public/cli/commands/storage-module.js +44 -0
- package/esm/public/cli/commands/webauthn-auth-module.d.ts +8 -0
- package/esm/public/cli/commands/webauthn-auth-module.js +536 -0
- package/esm/public/cli/commands/webauthn-credential.d.ts +8 -0
- package/esm/public/cli/commands/webauthn-credential.js +454 -0
- package/esm/public/cli/commands.js +17 -5
- package/esm/public/cli/executor.d.ts +12 -6
- package/esm/public/orm/index.d.ts +19 -7
- package/esm/public/orm/index.js +14 -2
- package/esm/public/orm/input-types.d.ts +1827 -366
- package/esm/public/orm/input-types.js +7 -0
- package/esm/public/orm/models/identityProvider.d.ts +32 -0
- package/esm/public/orm/models/identityProvider.js +51 -0
- package/esm/public/orm/models/identityProvidersModule.d.ts +56 -0
- package/esm/public/orm/models/identityProvidersModule.js +96 -0
- package/esm/public/orm/models/index.d.ts +7 -1
- package/esm/public/orm/models/index.js +7 -1
- package/esm/public/orm/models/notificationsModule.d.ts +56 -0
- package/esm/public/orm/models/notificationsModule.js +96 -0
- package/esm/public/orm/models/orgMembershipSetting.d.ts +56 -0
- package/esm/public/orm/models/orgMembershipSetting.js +96 -0
- package/esm/public/orm/models/webauthnAuthModule.d.ts +56 -0
- package/esm/public/orm/models/webauthnAuthModule.js +96 -0
- package/esm/public/orm/models/webauthnCredential.d.ts +56 -0
- package/esm/public/orm/models/webauthnCredential.js +96 -0
- package/esm/public/orm/mutation/index.d.ts +9 -9
- package/esm/public/orm/mutation/index.js +12 -12
- package/objects/orm/input-types.d.ts +12 -0
- package/package.json +3 -3
- package/public/cli/commands/crypto-address.js +22 -0
- package/public/cli/commands/email.js +22 -0
- package/public/cli/commands/entity-type-provision.js +110 -0
- package/public/cli/commands/identity-provider.d.ts +8 -0
- package/public/cli/commands/identity-provider.js +164 -0
- package/public/cli/commands/identity-providers-module.d.ts +8 -0
- package/public/cli/commands/identity-providers-module.js +318 -0
- package/public/cli/commands/memberships-module.js +44 -0
- package/public/cli/commands/notifications-module.d.ts +8 -0
- package/public/cli/commands/notifications-module.js +450 -0
- package/public/cli/commands/org-membership-default.js +0 -44
- package/public/cli/commands/org-membership-setting.d.ts +8 -0
- package/public/cli/commands/org-membership-setting.js +418 -0
- package/public/cli/commands/phone-number.js +22 -0
- package/public/cli/commands/relation-provision.js +24 -156
- package/public/cli/commands/secure-table-provision.js +24 -156
- package/public/cli/commands/storage-module.js +44 -0
- package/public/cli/commands/webauthn-auth-module.d.ts +8 -0
- package/public/cli/commands/webauthn-auth-module.js +538 -0
- package/public/cli/commands/webauthn-credential.d.ts +8 -0
- package/public/cli/commands/webauthn-credential.js +456 -0
- package/public/cli/commands.js +17 -5
- package/public/cli/executor.d.ts +12 -6
- package/public/orm/index.d.ts +19 -7
- package/public/orm/index.js +14 -2
- package/public/orm/input-types.d.ts +1827 -366
- package/public/orm/input-types.js +7 -0
- package/public/orm/models/identityProvider.d.ts +32 -0
- package/public/orm/models/identityProvider.js +55 -0
- package/public/orm/models/identityProvidersModule.d.ts +56 -0
- package/public/orm/models/identityProvidersModule.js +100 -0
- package/public/orm/models/index.d.ts +7 -1
- package/public/orm/models/index.js +17 -5
- package/public/orm/models/notificationsModule.d.ts +56 -0
- package/public/orm/models/notificationsModule.js +100 -0
- package/public/orm/models/orgMembershipSetting.d.ts +56 -0
- package/public/orm/models/orgMembershipSetting.js +100 -0
- package/public/orm/models/webauthnAuthModule.d.ts +56 -0
- package/public/orm/models/webauthnAuthModule.js +100 -0
- package/public/orm/models/webauthnCredential.d.ts +56 -0
- package/public/orm/models/webauthnCredential.js +100 -0
- package/public/orm/mutation/index.d.ts +9 -9
- package/public/orm/mutation/index.js +12 -12
package/auth/orm/input-types.js
CHANGED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IdentityProvider model for ORM client
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { OrmClient } from '../client';
|
|
7
|
+
import { QueryBuilder } from '../query-builder';
|
|
8
|
+
import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
+
import type { IdentityProviderWithRelations, IdentityProviderSelect, IdentityProviderFilter, IdentityProviderOrderBy, CreateIdentityProviderInput } from '../input-types';
|
|
10
|
+
export declare class IdentityProviderModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends IdentityProviderSelect>(args: FindManyArgs<S, IdentityProviderFilter, IdentityProviderOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, IdentityProviderSelect>): QueryBuilder<{
|
|
16
|
+
identityProviders: ConnectionResult<InferSelectResult<IdentityProviderWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends IdentityProviderSelect>(args: FindFirstArgs<S, IdentityProviderFilter> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, IdentityProviderSelect>): QueryBuilder<{
|
|
21
|
+
identityProviders: {
|
|
22
|
+
nodes: InferSelectResult<IdentityProviderWithRelations, S>[];
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
25
|
+
create<S extends IdentityProviderSelect>(args: CreateArgs<S, CreateIdentityProviderInput['identityProvider']> & {
|
|
26
|
+
select: S;
|
|
27
|
+
} & StrictSelect<S, IdentityProviderSelect>): QueryBuilder<{
|
|
28
|
+
createIdentityProvider: {
|
|
29
|
+
identityProvider: InferSelectResult<IdentityProviderWithRelations, S>;
|
|
30
|
+
};
|
|
31
|
+
}>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IdentityProviderModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class IdentityProviderModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('IdentityProvider', 'identityProviders', args.select, {
|
|
13
|
+
where: args?.where,
|
|
14
|
+
orderBy: args?.orderBy,
|
|
15
|
+
first: args?.first,
|
|
16
|
+
last: args?.last,
|
|
17
|
+
after: args?.after,
|
|
18
|
+
before: args?.before,
|
|
19
|
+
offset: args?.offset,
|
|
20
|
+
}, 'IdentityProviderFilter', 'IdentityProviderOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'IdentityProvider',
|
|
25
|
+
fieldName: 'identityProviders',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('IdentityProvider', 'identityProviders', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
}, 'IdentityProviderFilter', input_types_1.connectionFieldsMap);
|
|
34
|
+
return new query_builder_1.QueryBuilder({
|
|
35
|
+
client: this.client,
|
|
36
|
+
operation: 'query',
|
|
37
|
+
operationName: 'IdentityProvider',
|
|
38
|
+
fieldName: 'identityProviders',
|
|
39
|
+
document,
|
|
40
|
+
variables,
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
create(args) {
|
|
44
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('IdentityProvider', 'createIdentityProvider', 'identityProvider', args.select, args.data, 'CreateIdentityProviderInput', input_types_1.connectionFieldsMap);
|
|
45
|
+
return new query_builder_1.QueryBuilder({
|
|
46
|
+
client: this.client,
|
|
47
|
+
operation: 'mutation',
|
|
48
|
+
operationName: 'IdentityProvider',
|
|
49
|
+
fieldName: 'createIdentityProvider',
|
|
50
|
+
document,
|
|
51
|
+
variables,
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
exports.IdentityProviderModel = IdentityProviderModel;
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
export { EmailModel } from './email';
|
|
7
7
|
export { PhoneNumberModel } from './phoneNumber';
|
|
8
8
|
export { CryptoAddressModel } from './cryptoAddress';
|
|
9
|
+
export { WebauthnCredentialModel } from './webauthnCredential';
|
|
9
10
|
export { AuditLogModel } from './auditLog';
|
|
11
|
+
export { IdentityProviderModel } from './identityProvider';
|
|
10
12
|
export { RoleTypeModel } from './roleType';
|
|
11
13
|
export { UserConnectedAccountModel } from './userConnectedAccount';
|
|
12
14
|
export { UserModel } from './user';
|
package/auth/orm/models/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserModel = exports.UserConnectedAccountModel = exports.RoleTypeModel = exports.AuditLogModel = exports.CryptoAddressModel = exports.PhoneNumberModel = exports.EmailModel = void 0;
|
|
3
|
+
exports.UserModel = exports.UserConnectedAccountModel = exports.RoleTypeModel = exports.IdentityProviderModel = exports.AuditLogModel = exports.WebauthnCredentialModel = exports.CryptoAddressModel = exports.PhoneNumberModel = exports.EmailModel = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Models barrel export
|
|
6
6
|
* @generated by @constructive-io/graphql-codegen
|
|
@@ -12,8 +12,12 @@ var phoneNumber_1 = require("./phoneNumber");
|
|
|
12
12
|
Object.defineProperty(exports, "PhoneNumberModel", { enumerable: true, get: function () { return phoneNumber_1.PhoneNumberModel; } });
|
|
13
13
|
var cryptoAddress_1 = require("./cryptoAddress");
|
|
14
14
|
Object.defineProperty(exports, "CryptoAddressModel", { enumerable: true, get: function () { return cryptoAddress_1.CryptoAddressModel; } });
|
|
15
|
+
var webauthnCredential_1 = require("./webauthnCredential");
|
|
16
|
+
Object.defineProperty(exports, "WebauthnCredentialModel", { enumerable: true, get: function () { return webauthnCredential_1.WebauthnCredentialModel; } });
|
|
15
17
|
var auditLog_1 = require("./auditLog");
|
|
16
18
|
Object.defineProperty(exports, "AuditLogModel", { enumerable: true, get: function () { return auditLog_1.AuditLogModel; } });
|
|
19
|
+
var identityProvider_1 = require("./identityProvider");
|
|
20
|
+
Object.defineProperty(exports, "IdentityProviderModel", { enumerable: true, get: function () { return identityProvider_1.IdentityProviderModel; } });
|
|
17
21
|
var roleType_1 = require("./roleType");
|
|
18
22
|
Object.defineProperty(exports, "RoleTypeModel", { enumerable: true, get: function () { return roleType_1.RoleTypeModel; } });
|
|
19
23
|
var userConnectedAccount_1 = require("./userConnectedAccount");
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WebauthnCredential model for ORM client
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { OrmClient } from '../client';
|
|
7
|
+
import { QueryBuilder } from '../query-builder';
|
|
8
|
+
import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
+
import type { WebauthnCredentialWithRelations, WebauthnCredentialSelect, WebauthnCredentialFilter, WebauthnCredentialOrderBy, CreateWebauthnCredentialInput, WebauthnCredentialPatch } from '../input-types';
|
|
10
|
+
export declare class WebauthnCredentialModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends WebauthnCredentialSelect>(args: FindManyArgs<S, WebauthnCredentialFilter, WebauthnCredentialOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, WebauthnCredentialSelect>): QueryBuilder<{
|
|
16
|
+
webauthnCredentials: ConnectionResult<InferSelectResult<WebauthnCredentialWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends WebauthnCredentialSelect>(args: FindFirstArgs<S, WebauthnCredentialFilter> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, WebauthnCredentialSelect>): QueryBuilder<{
|
|
21
|
+
webauthnCredentials: {
|
|
22
|
+
nodes: InferSelectResult<WebauthnCredentialWithRelations, S>[];
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
25
|
+
findOne<S extends WebauthnCredentialSelect>(args: {
|
|
26
|
+
id: string;
|
|
27
|
+
select: S;
|
|
28
|
+
} & StrictSelect<S, WebauthnCredentialSelect>): QueryBuilder<{
|
|
29
|
+
webauthnCredential: InferSelectResult<WebauthnCredentialWithRelations, S> | null;
|
|
30
|
+
}>;
|
|
31
|
+
create<S extends WebauthnCredentialSelect>(args: CreateArgs<S, CreateWebauthnCredentialInput['webauthnCredential']> & {
|
|
32
|
+
select: S;
|
|
33
|
+
} & StrictSelect<S, WebauthnCredentialSelect>): QueryBuilder<{
|
|
34
|
+
createWebauthnCredential: {
|
|
35
|
+
webauthnCredential: InferSelectResult<WebauthnCredentialWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}>;
|
|
38
|
+
update<S extends WebauthnCredentialSelect>(args: UpdateArgs<S, {
|
|
39
|
+
id: string;
|
|
40
|
+
}, WebauthnCredentialPatch> & {
|
|
41
|
+
select: S;
|
|
42
|
+
} & StrictSelect<S, WebauthnCredentialSelect>): QueryBuilder<{
|
|
43
|
+
updateWebauthnCredential: {
|
|
44
|
+
webauthnCredential: InferSelectResult<WebauthnCredentialWithRelations, S>;
|
|
45
|
+
};
|
|
46
|
+
}>;
|
|
47
|
+
delete<S extends WebauthnCredentialSelect>(args: DeleteArgs<{
|
|
48
|
+
id: string;
|
|
49
|
+
}, S> & {
|
|
50
|
+
select: S;
|
|
51
|
+
} & StrictSelect<S, WebauthnCredentialSelect>): QueryBuilder<{
|
|
52
|
+
deleteWebauthnCredential: {
|
|
53
|
+
webauthnCredential: InferSelectResult<WebauthnCredentialWithRelations, S>;
|
|
54
|
+
};
|
|
55
|
+
}>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebauthnCredentialModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class WebauthnCredentialModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('WebauthnCredential', 'webauthnCredentials', args.select, {
|
|
13
|
+
where: args?.where,
|
|
14
|
+
orderBy: args?.orderBy,
|
|
15
|
+
first: args?.first,
|
|
16
|
+
last: args?.last,
|
|
17
|
+
after: args?.after,
|
|
18
|
+
before: args?.before,
|
|
19
|
+
offset: args?.offset,
|
|
20
|
+
}, 'WebauthnCredentialFilter', 'WebauthnCredentialOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'WebauthnCredential',
|
|
25
|
+
fieldName: 'webauthnCredentials',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('WebauthnCredential', 'webauthnCredentials', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
}, 'WebauthnCredentialFilter', input_types_1.connectionFieldsMap);
|
|
34
|
+
return new query_builder_1.QueryBuilder({
|
|
35
|
+
client: this.client,
|
|
36
|
+
operation: 'query',
|
|
37
|
+
operationName: 'WebauthnCredential',
|
|
38
|
+
fieldName: 'webauthnCredentials',
|
|
39
|
+
document,
|
|
40
|
+
variables,
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
findOne(args) {
|
|
44
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('WebauthnCredential', 'webauthnCredentials', args.select, {
|
|
45
|
+
where: {
|
|
46
|
+
id: {
|
|
47
|
+
equalTo: args.id,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
first: 1,
|
|
51
|
+
}, 'WebauthnCredentialFilter', 'WebauthnCredentialOrderBy', input_types_1.connectionFieldsMap);
|
|
52
|
+
return new query_builder_1.QueryBuilder({
|
|
53
|
+
client: this.client,
|
|
54
|
+
operation: 'query',
|
|
55
|
+
operationName: 'WebauthnCredential',
|
|
56
|
+
fieldName: 'webauthnCredential',
|
|
57
|
+
document,
|
|
58
|
+
variables,
|
|
59
|
+
transform: (data) => ({
|
|
60
|
+
webauthnCredential: data.webauthnCredentials?.nodes?.[0] ?? null,
|
|
61
|
+
}),
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
create(args) {
|
|
65
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('WebauthnCredential', 'createWebauthnCredential', 'webauthnCredential', args.select, args.data, 'CreateWebauthnCredentialInput', input_types_1.connectionFieldsMap);
|
|
66
|
+
return new query_builder_1.QueryBuilder({
|
|
67
|
+
client: this.client,
|
|
68
|
+
operation: 'mutation',
|
|
69
|
+
operationName: 'WebauthnCredential',
|
|
70
|
+
fieldName: 'createWebauthnCredential',
|
|
71
|
+
document,
|
|
72
|
+
variables,
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
update(args) {
|
|
76
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('WebauthnCredential', 'updateWebauthnCredential', 'webauthnCredential', args.select, args.where.id, args.data, 'UpdateWebauthnCredentialInput', 'id', 'webauthnCredentialPatch', input_types_1.connectionFieldsMap);
|
|
77
|
+
return new query_builder_1.QueryBuilder({
|
|
78
|
+
client: this.client,
|
|
79
|
+
operation: 'mutation',
|
|
80
|
+
operationName: 'WebauthnCredential',
|
|
81
|
+
fieldName: 'updateWebauthnCredential',
|
|
82
|
+
document,
|
|
83
|
+
variables,
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
delete(args) {
|
|
87
|
+
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('WebauthnCredential', 'deleteWebauthnCredential', 'webauthnCredential', {
|
|
88
|
+
id: args.where.id,
|
|
89
|
+
}, 'DeleteWebauthnCredentialInput', args.select, input_types_1.connectionFieldsMap);
|
|
90
|
+
return new query_builder_1.QueryBuilder({
|
|
91
|
+
client: this.client,
|
|
92
|
+
operation: 'mutation',
|
|
93
|
+
operationName: 'WebauthnCredential',
|
|
94
|
+
fieldName: 'deleteWebauthnCredential',
|
|
95
|
+
document,
|
|
96
|
+
variables,
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
exports.WebauthnCredentialModel = WebauthnCredentialModel;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { OrmClient } from '../client';
|
|
7
7
|
import { QueryBuilder } from '../query-builder';
|
|
8
8
|
import type { InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
-
import type { SignOutInput, SendAccountDeletionEmailInput, CheckPasswordInput, DisconnectAccountInput, RevokeApiKeyInput, RevokeSessionInput, VerifyPasswordInput, VerifyTotpInput, ConfirmDeleteAccountInput, SetPasswordInput, VerifyEmailInput, ProvisionNewUserInput, ResetPasswordInput,
|
|
9
|
+
import type { SignOutInput, SendAccountDeletionEmailInput, CheckPasswordInput, DisconnectAccountInput, RevokeApiKeyInput, RevokeSessionInput, VerifyPasswordInput, VerifyTotpInput, ConfirmDeleteAccountInput, SetPasswordInput, VerifyEmailInput, ProvisionNewUserInput, ResetPasswordInput, SignInCrossOriginInput, SignUpInput, RequestCrossOriginTokenInput, SignInInput, ExtendTokenExpiresInput, CreateApiKeyInput, ForgotPasswordInput, SendVerificationEmailInput, RequestUploadUrlInput, ConfirmUploadInput, ProvisionBucketInput, SignOutPayload, SendAccountDeletionEmailPayload, CheckPasswordPayload, DisconnectAccountPayload, RevokeApiKeyPayload, RevokeSessionPayload, VerifyPasswordPayload, VerifyTotpPayload, ConfirmDeleteAccountPayload, SetPasswordPayload, VerifyEmailPayload, ProvisionNewUserPayload, ResetPasswordPayload, SignInCrossOriginPayload, SignUpPayload, RequestCrossOriginTokenPayload, SignInPayload, ExtendTokenExpiresPayload, CreateApiKeyPayload, ForgotPasswordPayload, SendVerificationEmailPayload, RequestUploadUrlPayload, ConfirmUploadPayload, ProvisionBucketPayload, SignOutPayloadSelect, SendAccountDeletionEmailPayloadSelect, CheckPasswordPayloadSelect, DisconnectAccountPayloadSelect, RevokeApiKeyPayloadSelect, RevokeSessionPayloadSelect, VerifyPasswordPayloadSelect, VerifyTotpPayloadSelect, ConfirmDeleteAccountPayloadSelect, SetPasswordPayloadSelect, VerifyEmailPayloadSelect, ProvisionNewUserPayloadSelect, ResetPasswordPayloadSelect, SignInCrossOriginPayloadSelect, SignUpPayloadSelect, RequestCrossOriginTokenPayloadSelect, SignInPayloadSelect, ExtendTokenExpiresPayloadSelect, CreateApiKeyPayloadSelect, ForgotPasswordPayloadSelect, SendVerificationEmailPayloadSelect, RequestUploadUrlPayloadSelect, ConfirmUploadPayloadSelect, ProvisionBucketPayloadSelect } from '../input-types';
|
|
10
10
|
export interface SignOutVariables {
|
|
11
11
|
input: SignOutInput;
|
|
12
12
|
}
|
|
@@ -46,9 +46,6 @@ export interface ProvisionNewUserVariables {
|
|
|
46
46
|
export interface ResetPasswordVariables {
|
|
47
47
|
input: ResetPasswordInput;
|
|
48
48
|
}
|
|
49
|
-
export interface CreateApiKeyVariables {
|
|
50
|
-
input: CreateApiKeyInput;
|
|
51
|
-
}
|
|
52
49
|
export interface SignInCrossOriginVariables {
|
|
53
50
|
input: SignInCrossOriginInput;
|
|
54
51
|
}
|
|
@@ -64,6 +61,9 @@ export interface SignInVariables {
|
|
|
64
61
|
export interface ExtendTokenExpiresVariables {
|
|
65
62
|
input: ExtendTokenExpiresInput;
|
|
66
63
|
}
|
|
64
|
+
export interface CreateApiKeyVariables {
|
|
65
|
+
input: CreateApiKeyInput;
|
|
66
|
+
}
|
|
67
67
|
export interface ForgotPasswordVariables {
|
|
68
68
|
input: ForgotPasswordInput;
|
|
69
69
|
}
|
|
@@ -165,11 +165,6 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
165
165
|
} & StrictSelect<S, ResetPasswordPayloadSelect>) => QueryBuilder<{
|
|
166
166
|
resetPassword: InferSelectResult<ResetPasswordPayload, S> | null;
|
|
167
167
|
}>;
|
|
168
|
-
createApiKey: <S extends CreateApiKeyPayloadSelect>(args: CreateApiKeyVariables, options: {
|
|
169
|
-
select: S;
|
|
170
|
-
} & StrictSelect<S, CreateApiKeyPayloadSelect>) => QueryBuilder<{
|
|
171
|
-
createApiKey: InferSelectResult<CreateApiKeyPayload, S> | null;
|
|
172
|
-
}>;
|
|
173
168
|
signInCrossOrigin: <S extends SignInCrossOriginPayloadSelect>(args: SignInCrossOriginVariables, options: {
|
|
174
169
|
select: S;
|
|
175
170
|
} & StrictSelect<S, SignInCrossOriginPayloadSelect>) => QueryBuilder<{
|
|
@@ -195,6 +190,11 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
195
190
|
} & StrictSelect<S, ExtendTokenExpiresPayloadSelect>) => QueryBuilder<{
|
|
196
191
|
extendTokenExpires: InferSelectResult<ExtendTokenExpiresPayload, S> | null;
|
|
197
192
|
}>;
|
|
193
|
+
createApiKey: <S extends CreateApiKeyPayloadSelect>(args: CreateApiKeyVariables, options: {
|
|
194
|
+
select: S;
|
|
195
|
+
} & StrictSelect<S, CreateApiKeyPayloadSelect>) => QueryBuilder<{
|
|
196
|
+
createApiKey: InferSelectResult<CreateApiKeyPayload, S> | null;
|
|
197
|
+
}>;
|
|
198
198
|
forgotPassword: <S extends ForgotPasswordPayloadSelect>(args: ForgotPasswordVariables, options: {
|
|
199
199
|
select: S;
|
|
200
200
|
} & StrictSelect<S, ForgotPasswordPayloadSelect>) => QueryBuilder<{
|
|
@@ -161,18 +161,6 @@ function createMutationOperations(client) {
|
|
|
161
161
|
},
|
|
162
162
|
], input_types_1.connectionFieldsMap, 'ResetPasswordPayload'),
|
|
163
163
|
}),
|
|
164
|
-
createApiKey: (args, options) => new query_builder_1.QueryBuilder({
|
|
165
|
-
client,
|
|
166
|
-
operation: 'mutation',
|
|
167
|
-
operationName: 'CreateApiKey',
|
|
168
|
-
fieldName: 'createApiKey',
|
|
169
|
-
...(0, query_builder_1.buildCustomDocument)('mutation', 'CreateApiKey', 'createApiKey', options.select, args, [
|
|
170
|
-
{
|
|
171
|
-
name: 'input',
|
|
172
|
-
type: 'CreateApiKeyInput!',
|
|
173
|
-
},
|
|
174
|
-
], input_types_1.connectionFieldsMap, 'CreateApiKeyPayload'),
|
|
175
|
-
}),
|
|
176
164
|
signInCrossOrigin: (args, options) => new query_builder_1.QueryBuilder({
|
|
177
165
|
client,
|
|
178
166
|
operation: 'mutation',
|
|
@@ -233,6 +221,18 @@ function createMutationOperations(client) {
|
|
|
233
221
|
},
|
|
234
222
|
], input_types_1.connectionFieldsMap, 'ExtendTokenExpiresPayload'),
|
|
235
223
|
}),
|
|
224
|
+
createApiKey: (args, options) => new query_builder_1.QueryBuilder({
|
|
225
|
+
client,
|
|
226
|
+
operation: 'mutation',
|
|
227
|
+
operationName: 'CreateApiKey',
|
|
228
|
+
fieldName: 'createApiKey',
|
|
229
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'CreateApiKey', 'createApiKey', options.select, args, [
|
|
230
|
+
{
|
|
231
|
+
name: 'input',
|
|
232
|
+
type: 'CreateApiKeyInput!',
|
|
233
|
+
},
|
|
234
|
+
], input_types_1.connectionFieldsMap, 'CreateApiKeyPayload'),
|
|
235
|
+
}),
|
|
236
236
|
forgotPassword: (args, options) => new query_builder_1.QueryBuilder({
|
|
237
237
|
client,
|
|
238
238
|
operation: 'mutation',
|
|
@@ -14,8 +14,6 @@ const fieldSchema = {
|
|
|
14
14
|
updatedBy: 'uuid',
|
|
15
15
|
isApproved: 'boolean',
|
|
16
16
|
entityId: 'uuid',
|
|
17
|
-
deleteMemberCascadeGroups: 'boolean',
|
|
18
|
-
createGroupsCascadeMembers: 'boolean',
|
|
19
17
|
};
|
|
20
18
|
const usage = '\norg-membership-default <command>\n\nCommands:\n list List orgMembershipDefault records\n find-first Find first matching orgMembershipDefault record\n get Get a orgMembershipDefault by ID\n create Create a new orgMembershipDefault\n update Update an existing orgMembershipDefault\n delete Delete a orgMembershipDefault\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n\n --help, -h Show this help message\n';
|
|
21
19
|
export default async (argv, prompter, _options) => {
|
|
@@ -66,8 +64,6 @@ async function handleList(argv, _prompter) {
|
|
|
66
64
|
updatedBy: true,
|
|
67
65
|
isApproved: true,
|
|
68
66
|
entityId: true,
|
|
69
|
-
deleteMemberCascadeGroups: true,
|
|
70
|
-
createGroupsCascadeMembers: true,
|
|
71
67
|
};
|
|
72
68
|
const findManyArgs = parseFindManyArgs(argv, defaultSelect);
|
|
73
69
|
const client = getClient();
|
|
@@ -92,8 +88,6 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
92
88
|
updatedBy: true,
|
|
93
89
|
isApproved: true,
|
|
94
90
|
entityId: true,
|
|
95
|
-
deleteMemberCascadeGroups: true,
|
|
96
|
-
createGroupsCascadeMembers: true,
|
|
97
91
|
};
|
|
98
92
|
const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
|
|
99
93
|
const client = getClient();
|
|
@@ -130,8 +124,6 @@ async function handleGet(argv, prompter) {
|
|
|
130
124
|
updatedBy: true,
|
|
131
125
|
isApproved: true,
|
|
132
126
|
entityId: true,
|
|
133
|
-
deleteMemberCascadeGroups: true,
|
|
134
|
-
createGroupsCascadeMembers: true,
|
|
135
127
|
},
|
|
136
128
|
})
|
|
137
129
|
.execute();
|
|
@@ -175,20 +167,6 @@ async function handleCreate(argv, prompter) {
|
|
|
175
167
|
message: 'entityId',
|
|
176
168
|
required: true,
|
|
177
169
|
},
|
|
178
|
-
{
|
|
179
|
-
type: 'boolean',
|
|
180
|
-
name: 'deleteMemberCascadeGroups',
|
|
181
|
-
message: 'deleteMemberCascadeGroups',
|
|
182
|
-
required: false,
|
|
183
|
-
skipPrompt: true,
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
type: 'boolean',
|
|
187
|
-
name: 'createGroupsCascadeMembers',
|
|
188
|
-
message: 'createGroupsCascadeMembers',
|
|
189
|
-
required: false,
|
|
190
|
-
skipPrompt: true,
|
|
191
|
-
},
|
|
192
170
|
]);
|
|
193
171
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
194
172
|
const cleanedData = stripUndefined(answers, fieldSchema);
|
|
@@ -200,8 +178,6 @@ async function handleCreate(argv, prompter) {
|
|
|
200
178
|
updatedBy: cleanedData.updatedBy,
|
|
201
179
|
isApproved: cleanedData.isApproved,
|
|
202
180
|
entityId: cleanedData.entityId,
|
|
203
|
-
deleteMemberCascadeGroups: cleanedData.deleteMemberCascadeGroups,
|
|
204
|
-
createGroupsCascadeMembers: cleanedData.createGroupsCascadeMembers,
|
|
205
181
|
},
|
|
206
182
|
select: {
|
|
207
183
|
id: true,
|
|
@@ -211,8 +187,6 @@ async function handleCreate(argv, prompter) {
|
|
|
211
187
|
updatedBy: true,
|
|
212
188
|
isApproved: true,
|
|
213
189
|
entityId: true,
|
|
214
|
-
deleteMemberCascadeGroups: true,
|
|
215
|
-
createGroupsCascadeMembers: true,
|
|
216
190
|
},
|
|
217
191
|
})
|
|
218
192
|
.execute();
|
|
@@ -262,20 +236,6 @@ async function handleUpdate(argv, prompter) {
|
|
|
262
236
|
message: 'entityId',
|
|
263
237
|
required: false,
|
|
264
238
|
},
|
|
265
|
-
{
|
|
266
|
-
type: 'boolean',
|
|
267
|
-
name: 'deleteMemberCascadeGroups',
|
|
268
|
-
message: 'deleteMemberCascadeGroups',
|
|
269
|
-
required: false,
|
|
270
|
-
skipPrompt: true,
|
|
271
|
-
},
|
|
272
|
-
{
|
|
273
|
-
type: 'boolean',
|
|
274
|
-
name: 'createGroupsCascadeMembers',
|
|
275
|
-
message: 'createGroupsCascadeMembers',
|
|
276
|
-
required: false,
|
|
277
|
-
skipPrompt: true,
|
|
278
|
-
},
|
|
279
239
|
]);
|
|
280
240
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
281
241
|
const cleanedData = stripUndefined(answers, fieldSchema);
|
|
@@ -290,8 +250,6 @@ async function handleUpdate(argv, prompter) {
|
|
|
290
250
|
updatedBy: cleanedData.updatedBy,
|
|
291
251
|
isApproved: cleanedData.isApproved,
|
|
292
252
|
entityId: cleanedData.entityId,
|
|
293
|
-
deleteMemberCascadeGroups: cleanedData.deleteMemberCascadeGroups,
|
|
294
|
-
createGroupsCascadeMembers: cleanedData.createGroupsCascadeMembers,
|
|
295
253
|
},
|
|
296
254
|
select: {
|
|
297
255
|
id: true,
|
|
@@ -301,8 +259,6 @@ async function handleUpdate(argv, prompter) {
|
|
|
301
259
|
updatedBy: true,
|
|
302
260
|
isApproved: true,
|
|
303
261
|
entityId: true,
|
|
304
|
-
deleteMemberCascadeGroups: true,
|
|
305
|
-
createGroupsCascadeMembers: true,
|
|
306
262
|
},
|
|
307
263
|
})
|
|
308
264
|
.execute();
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI commands for OrgMembershipSetting
|
|
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;
|