@constructive-sdk/cli 0.25.8 → 0.25.10
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-admin-grant.js +3 -1
- package/admin/cli/commands/app-grant.js +3 -1
- package/admin/cli/commands/app-invite.js +44 -0
- package/admin/cli/commands/app-owner-grant.js +3 -1
- package/admin/cli/commands/app-permission-default-grant.d.ts +8 -0
- package/admin/cli/commands/app-permission-default-grant.js +286 -0
- package/admin/cli/commands/app-permission-default-permission.d.ts +8 -0
- package/admin/cli/commands/app-permission-default-permission.js +242 -0
- package/admin/cli/commands/org-admin-grant.js +3 -1
- package/admin/cli/commands/org-grant.js +3 -1
- package/admin/cli/commands/org-invite.js +44 -0
- package/admin/cli/commands/org-owner-grant.js +3 -1
- package/admin/cli/commands/org-permission-default-grant.d.ts +8 -0
- package/admin/cli/commands/org-permission-default-grant.js +306 -0
- package/admin/cli/commands/org-permission-default-permission.d.ts +8 -0
- package/admin/cli/commands/org-permission-default-permission.js +262 -0
- package/admin/cli/commands.js +11 -3
- package/admin/cli/executor.d.ts +5 -1
- package/admin/orm/index.d.ts +10 -2
- package/admin/orm/index.js +10 -2
- package/admin/orm/input-types.d.ts +1611 -230
- package/admin/orm/input-types.js +9 -1
- package/admin/orm/models/appPermissionDefaultGrant.d.ts +54 -0
- package/admin/orm/models/appPermissionDefaultGrant.js +104 -0
- package/admin/orm/models/appPermissionDefaultPermission.d.ts +54 -0
- package/admin/orm/models/appPermissionDefaultPermission.js +104 -0
- package/admin/orm/models/index.d.ts +5 -1
- package/admin/orm/models/index.js +11 -3
- package/admin/orm/models/orgPermissionDefaultGrant.d.ts +54 -0
- package/admin/orm/models/orgPermissionDefaultGrant.js +104 -0
- package/admin/orm/models/orgPermissionDefaultPermission.d.ts +54 -0
- package/admin/orm/models/orgPermissionDefaultPermission.js +104 -0
- package/agent/cli/commands/agent-message.js +34 -12
- package/agent/cli/commands/agent-task.js +12 -12
- package/agent/cli/embedder.d.ts +5 -0
- package/agent/cli/embedder.js +46 -9
- package/agent/orm/input-types.d.ts +289 -47
- package/agent/orm/input-types.js +1 -0
- package/api/cli/commands/check-constraint.js +0 -22
- package/api/cli/commands/composite-type.d.ts +8 -0
- package/api/cli/commands/composite-type.js +424 -0
- package/api/cli/commands/enum.js +0 -22
- package/api/cli/commands/field.js +0 -22
- package/api/cli/commands/foreign-key-constraint.js +0 -22
- package/api/cli/commands/index.js +0 -22
- package/api/cli/commands/policy.js +0 -22
- package/api/cli/commands/primary-key-constraint.js +0 -22
- package/api/cli/commands/schema.js +0 -22
- package/api/cli/commands/spatial-relation.js +0 -22
- package/api/cli/commands/table.js +6 -28
- package/api/cli/commands/trigger.js +0 -22
- package/api/cli/commands/unique-constraint.js +0 -22
- package/api/cli/commands/view-table.js +22 -0
- package/api/cli/commands/view.js +0 -22
- package/api/cli/commands.js +3 -1
- package/api/cli/executor.d.ts +1 -0
- package/api/orm/index.d.ts +2 -0
- package/api/orm/index.js +2 -0
- package/api/orm/input-types.d.ts +1064 -125
- package/api/orm/input-types.js +3 -0
- package/api/orm/models/compositeType.d.ts +54 -0
- package/api/orm/models/compositeType.js +104 -0
- package/api/orm/models/index.d.ts +1 -0
- package/api/orm/models/index.js +3 -1
- package/auth/cli/commands/link-identity.d.ts +8 -0
- package/auth/cli/commands/link-identity.js +36 -0
- package/auth/cli/commands/sign-in-sms-otp.d.ts +8 -0
- package/auth/cli/commands/sign-in-sms-otp.js +36 -0
- package/auth/cli/commands/sign-up-sms.d.ts +8 -0
- package/auth/cli/commands/sign-up-sms.js +36 -0
- package/auth/cli/commands.js +7 -1
- package/auth/cli/executor.d.ts +15 -0
- package/auth/orm/index.d.ts +15 -0
- package/auth/orm/input-types.d.ts +197 -1
- package/auth/orm/mutation/index.d.ts +25 -1
- package/auth/orm/mutation/index.js +36 -0
- package/esm/admin/cli/commands/app-admin-grant.js +3 -1
- package/esm/admin/cli/commands/app-grant.js +3 -1
- package/esm/admin/cli/commands/app-invite.js +44 -0
- package/esm/admin/cli/commands/app-owner-grant.js +3 -1
- package/esm/admin/cli/commands/app-permission-default-grant.d.ts +8 -0
- package/esm/admin/cli/commands/app-permission-default-grant.js +284 -0
- package/esm/admin/cli/commands/app-permission-default-permission.d.ts +8 -0
- package/esm/admin/cli/commands/app-permission-default-permission.js +240 -0
- package/esm/admin/cli/commands/org-admin-grant.js +3 -1
- package/esm/admin/cli/commands/org-grant.js +3 -1
- package/esm/admin/cli/commands/org-invite.js +44 -0
- package/esm/admin/cli/commands/org-owner-grant.js +3 -1
- package/esm/admin/cli/commands/org-permission-default-grant.d.ts +8 -0
- package/esm/admin/cli/commands/org-permission-default-grant.js +304 -0
- package/esm/admin/cli/commands/org-permission-default-permission.d.ts +8 -0
- package/esm/admin/cli/commands/org-permission-default-permission.js +260 -0
- package/esm/admin/cli/commands.js +11 -3
- package/esm/admin/cli/executor.d.ts +5 -1
- package/esm/admin/orm/index.d.ts +10 -2
- package/esm/admin/orm/index.js +10 -2
- package/esm/admin/orm/input-types.d.ts +1611 -230
- package/esm/admin/orm/input-types.js +9 -1
- package/esm/admin/orm/models/appPermissionDefaultGrant.d.ts +54 -0
- package/esm/admin/orm/models/appPermissionDefaultGrant.js +100 -0
- package/esm/admin/orm/models/appPermissionDefaultPermission.d.ts +54 -0
- package/esm/admin/orm/models/appPermissionDefaultPermission.js +100 -0
- package/esm/admin/orm/models/index.d.ts +5 -1
- package/esm/admin/orm/models/index.js +5 -1
- package/esm/admin/orm/models/orgPermissionDefaultGrant.d.ts +54 -0
- package/esm/admin/orm/models/orgPermissionDefaultGrant.js +100 -0
- package/esm/admin/orm/models/orgPermissionDefaultPermission.d.ts +54 -0
- package/esm/admin/orm/models/orgPermissionDefaultPermission.js +100 -0
- package/esm/agent/cli/commands/agent-message.js +34 -12
- package/esm/agent/cli/commands/agent-task.js +12 -12
- package/esm/agent/cli/embedder.d.ts +5 -0
- package/esm/agent/cli/embedder.js +10 -2
- package/esm/agent/orm/input-types.d.ts +289 -47
- package/esm/agent/orm/input-types.js +1 -0
- package/esm/api/cli/commands/check-constraint.js +0 -22
- package/esm/api/cli/commands/composite-type.d.ts +8 -0
- package/esm/api/cli/commands/composite-type.js +422 -0
- package/esm/api/cli/commands/enum.js +0 -22
- package/esm/api/cli/commands/field.js +0 -22
- package/esm/api/cli/commands/foreign-key-constraint.js +0 -22
- package/esm/api/cli/commands/index.js +0 -22
- package/esm/api/cli/commands/policy.js +0 -22
- package/esm/api/cli/commands/primary-key-constraint.js +0 -22
- package/esm/api/cli/commands/schema.js +0 -22
- package/esm/api/cli/commands/spatial-relation.js +0 -22
- package/esm/api/cli/commands/table.js +6 -28
- package/esm/api/cli/commands/trigger.js +0 -22
- package/esm/api/cli/commands/unique-constraint.js +0 -22
- package/esm/api/cli/commands/view-table.js +22 -0
- package/esm/api/cli/commands/view.js +0 -22
- package/esm/api/cli/commands.js +3 -1
- package/esm/api/cli/executor.d.ts +1 -0
- package/esm/api/orm/index.d.ts +2 -0
- package/esm/api/orm/index.js +2 -0
- package/esm/api/orm/input-types.d.ts +1064 -125
- package/esm/api/orm/input-types.js +3 -0
- package/esm/api/orm/models/compositeType.d.ts +54 -0
- package/esm/api/orm/models/compositeType.js +100 -0
- package/esm/api/orm/models/index.d.ts +1 -0
- package/esm/api/orm/models/index.js +1 -0
- package/esm/auth/cli/commands/link-identity.d.ts +8 -0
- package/esm/auth/cli/commands/link-identity.js +34 -0
- package/esm/auth/cli/commands/sign-in-sms-otp.d.ts +8 -0
- package/esm/auth/cli/commands/sign-in-sms-otp.js +34 -0
- package/esm/auth/cli/commands/sign-up-sms.d.ts +8 -0
- package/esm/auth/cli/commands/sign-up-sms.js +34 -0
- package/esm/auth/cli/commands.js +7 -1
- package/esm/auth/cli/executor.d.ts +15 -0
- package/esm/auth/orm/index.d.ts +15 -0
- package/esm/auth/orm/input-types.d.ts +197 -1
- package/esm/auth/orm/mutation/index.d.ts +25 -1
- package/esm/auth/orm/mutation/index.js +36 -0
- package/esm/modules/cli/commands/agent-module.js +88 -0
- package/esm/modules/cli/commands/billing-module.js +66 -0
- package/esm/modules/cli/commands/compute-log-module.js +44 -0
- package/esm/modules/cli/commands/config-secrets-module.js +44 -0
- package/esm/modules/cli/commands/db-usage-module.js +66 -0
- package/esm/modules/cli/commands/entity-type-provision.js +0 -44
- package/esm/modules/cli/commands/events-module.js +66 -0
- package/esm/modules/cli/commands/function-invocation-module.d.ts +8 -0
- package/esm/modules/cli/commands/function-invocation-module.js +580 -0
- package/esm/modules/cli/commands/function-module.js +22 -198
- package/esm/modules/cli/commands/graph-module.js +22 -0
- package/esm/modules/cli/commands/hierarchy-module.js +22 -0
- package/esm/modules/cli/commands/identity-providers-module.js +44 -0
- package/esm/modules/cli/commands/inference-log-module.js +44 -0
- package/esm/modules/cli/commands/invites-module.js +44 -0
- package/esm/modules/cli/commands/limits-module.js +44 -0
- package/esm/modules/cli/commands/memberships-module.js +88 -0
- package/esm/modules/cli/commands/merkle-store-module.js +22 -0
- package/esm/modules/cli/commands/namespace-module.js +22 -0
- package/esm/modules/cli/commands/notifications-module.js +88 -0
- package/esm/modules/cli/commands/permissions-module.js +44 -0
- package/esm/modules/cli/commands/plans-module.js +44 -0
- package/esm/modules/cli/commands/profiles-module.js +44 -0
- package/esm/modules/cli/commands/rate-limit-meters-module.js +66 -0
- package/esm/modules/cli/commands/storage-log-module.js +44 -0
- package/esm/modules/cli/commands/storage-module.js +66 -0
- package/esm/modules/cli/commands/transfer-log-module.js +44 -0
- package/esm/modules/cli/commands.js +29 -27
- package/esm/modules/cli/executor.d.ts +14 -13
- package/esm/modules/orm/index.d.ts +28 -26
- package/esm/modules/orm/index.js +28 -26
- package/esm/modules/orm/input-types.d.ts +4485 -2514
- package/esm/modules/orm/models/functionInvocationModule.d.ts +54 -0
- package/esm/modules/orm/models/functionInvocationModule.js +100 -0
- package/esm/modules/orm/models/index.d.ts +14 -13
- package/esm/modules/orm/models/index.js +14 -13
- package/esm/objects/orm/input-types.d.ts +62 -0
- package/esm/usage/orm/input-types.d.ts +314 -19
- package/modules/cli/commands/agent-module.js +88 -0
- package/modules/cli/commands/billing-module.js +66 -0
- package/modules/cli/commands/compute-log-module.js +44 -0
- package/modules/cli/commands/config-secrets-module.js +44 -0
- package/modules/cli/commands/db-usage-module.js +66 -0
- package/modules/cli/commands/entity-type-provision.js +0 -44
- package/modules/cli/commands/events-module.js +66 -0
- package/modules/cli/commands/function-invocation-module.d.ts +8 -0
- package/modules/cli/commands/function-invocation-module.js +582 -0
- package/modules/cli/commands/function-module.js +22 -198
- package/modules/cli/commands/graph-module.js +22 -0
- package/modules/cli/commands/hierarchy-module.js +22 -0
- package/modules/cli/commands/identity-providers-module.js +44 -0
- package/modules/cli/commands/inference-log-module.js +44 -0
- package/modules/cli/commands/invites-module.js +44 -0
- package/modules/cli/commands/limits-module.js +44 -0
- package/modules/cli/commands/memberships-module.js +88 -0
- package/modules/cli/commands/merkle-store-module.js +22 -0
- package/modules/cli/commands/namespace-module.js +22 -0
- package/modules/cli/commands/notifications-module.js +88 -0
- package/modules/cli/commands/permissions-module.js +44 -0
- package/modules/cli/commands/plans-module.js +44 -0
- package/modules/cli/commands/profiles-module.js +44 -0
- package/modules/cli/commands/rate-limit-meters-module.js +66 -0
- package/modules/cli/commands/storage-log-module.js +44 -0
- package/modules/cli/commands/storage-module.js +66 -0
- package/modules/cli/commands/transfer-log-module.js +44 -0
- package/modules/cli/commands.js +29 -27
- package/modules/cli/executor.d.ts +14 -13
- package/modules/orm/index.d.ts +28 -26
- package/modules/orm/index.js +28 -26
- package/modules/orm/input-types.d.ts +4485 -2514
- package/modules/orm/models/functionInvocationModule.d.ts +54 -0
- package/modules/orm/models/functionInvocationModule.js +104 -0
- package/modules/orm/models/index.d.ts +14 -13
- package/modules/orm/models/index.js +30 -28
- package/objects/orm/input-types.d.ts +62 -0
- package/package.json +4 -4
- package/usage/orm/input-types.d.ts +314 -19
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI commands for AppPermissionDefaultGrant
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { extractFirst } from 'inquirerer';
|
|
7
|
+
import { getClient } from '../executor';
|
|
8
|
+
import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils';
|
|
9
|
+
const fieldSchema = {
|
|
10
|
+
id: 'uuid',
|
|
11
|
+
permissionId: 'uuid',
|
|
12
|
+
isGrant: 'boolean',
|
|
13
|
+
grantorId: 'uuid',
|
|
14
|
+
createdAt: 'string',
|
|
15
|
+
updatedAt: 'string',
|
|
16
|
+
};
|
|
17
|
+
const usage = '\napp-permission-default-grant <command>\n\nCommands:\n list List appPermissionDefaultGrant records\n find-first Find first matching appPermissionDefaultGrant record\n get Get a appPermissionDefaultGrant by ID\n create Create a new appPermissionDefaultGrant\n update Update an existing appPermissionDefaultGrant\n delete Delete a appPermissionDefaultGrant\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 --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n';
|
|
18
|
+
export default async (argv, prompter, _options) => {
|
|
19
|
+
if (argv.help || argv.h) {
|
|
20
|
+
console.log(usage);
|
|
21
|
+
process.exit(0);
|
|
22
|
+
}
|
|
23
|
+
const { first: subcommand, newArgv } = extractFirst(argv);
|
|
24
|
+
if (!subcommand) {
|
|
25
|
+
const answer = await prompter.prompt(argv, [
|
|
26
|
+
{
|
|
27
|
+
type: 'autocomplete',
|
|
28
|
+
name: 'subcommand',
|
|
29
|
+
message: 'What do you want to do?',
|
|
30
|
+
options: ['list', 'find-first', 'get', 'create', 'update', 'delete'],
|
|
31
|
+
},
|
|
32
|
+
]);
|
|
33
|
+
return handleTableSubcommand(answer.subcommand, newArgv, prompter);
|
|
34
|
+
}
|
|
35
|
+
return handleTableSubcommand(subcommand, newArgv, prompter);
|
|
36
|
+
};
|
|
37
|
+
async function handleTableSubcommand(subcommand, argv, prompter) {
|
|
38
|
+
switch (subcommand) {
|
|
39
|
+
case 'list':
|
|
40
|
+
return handleList(argv, prompter);
|
|
41
|
+
case 'find-first':
|
|
42
|
+
return handleFindFirst(argv, prompter);
|
|
43
|
+
case 'get':
|
|
44
|
+
return handleGet(argv, prompter);
|
|
45
|
+
case 'create':
|
|
46
|
+
return handleCreate(argv, prompter);
|
|
47
|
+
case 'update':
|
|
48
|
+
return handleUpdate(argv, prompter);
|
|
49
|
+
case 'delete':
|
|
50
|
+
return handleDelete(argv, prompter);
|
|
51
|
+
default:
|
|
52
|
+
console.log(usage);
|
|
53
|
+
process.exit(1);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
async function handleList(argv, _prompter) {
|
|
57
|
+
try {
|
|
58
|
+
const defaultSelect = {
|
|
59
|
+
id: true,
|
|
60
|
+
permissionId: true,
|
|
61
|
+
isGrant: true,
|
|
62
|
+
grantorId: true,
|
|
63
|
+
createdAt: true,
|
|
64
|
+
updatedAt: true,
|
|
65
|
+
};
|
|
66
|
+
const findManyArgs = parseFindManyArgs(argv, defaultSelect);
|
|
67
|
+
const client = getClient();
|
|
68
|
+
const result = await client.appPermissionDefaultGrant.findMany(findManyArgs).execute();
|
|
69
|
+
console.log(JSON.stringify(result, null, 2));
|
|
70
|
+
}
|
|
71
|
+
catch (error) {
|
|
72
|
+
console.error('Failed to list records.');
|
|
73
|
+
if (error instanceof Error) {
|
|
74
|
+
console.error(error.message);
|
|
75
|
+
}
|
|
76
|
+
process.exit(1);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
async function handleFindFirst(argv, _prompter) {
|
|
80
|
+
try {
|
|
81
|
+
const defaultSelect = {
|
|
82
|
+
id: true,
|
|
83
|
+
permissionId: true,
|
|
84
|
+
isGrant: true,
|
|
85
|
+
grantorId: true,
|
|
86
|
+
createdAt: true,
|
|
87
|
+
updatedAt: true,
|
|
88
|
+
};
|
|
89
|
+
const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
|
|
90
|
+
const client = getClient();
|
|
91
|
+
const result = await client.appPermissionDefaultGrant.findFirst(findFirstArgs).execute();
|
|
92
|
+
console.log(JSON.stringify(result, null, 2));
|
|
93
|
+
}
|
|
94
|
+
catch (error) {
|
|
95
|
+
console.error('Failed to find record.');
|
|
96
|
+
if (error instanceof Error) {
|
|
97
|
+
console.error(error.message);
|
|
98
|
+
}
|
|
99
|
+
process.exit(1);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
async function handleGet(argv, prompter) {
|
|
103
|
+
try {
|
|
104
|
+
const answers = await prompter.prompt(argv, [
|
|
105
|
+
{
|
|
106
|
+
type: 'text',
|
|
107
|
+
name: 'id',
|
|
108
|
+
message: 'id',
|
|
109
|
+
required: true,
|
|
110
|
+
},
|
|
111
|
+
]);
|
|
112
|
+
const client = getClient();
|
|
113
|
+
const result = await client.appPermissionDefaultGrant
|
|
114
|
+
.findOne({
|
|
115
|
+
id: answers.id,
|
|
116
|
+
select: {
|
|
117
|
+
id: true,
|
|
118
|
+
permissionId: true,
|
|
119
|
+
isGrant: true,
|
|
120
|
+
grantorId: true,
|
|
121
|
+
createdAt: true,
|
|
122
|
+
updatedAt: true,
|
|
123
|
+
},
|
|
124
|
+
})
|
|
125
|
+
.execute();
|
|
126
|
+
console.log(JSON.stringify(result, null, 2));
|
|
127
|
+
}
|
|
128
|
+
catch (error) {
|
|
129
|
+
console.error('Record not found.');
|
|
130
|
+
if (error instanceof Error) {
|
|
131
|
+
console.error(error.message);
|
|
132
|
+
}
|
|
133
|
+
process.exit(1);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
async function handleCreate(argv, prompter) {
|
|
137
|
+
try {
|
|
138
|
+
const rawAnswers = await prompter.prompt(argv, [
|
|
139
|
+
{
|
|
140
|
+
type: 'text',
|
|
141
|
+
name: 'permissionId',
|
|
142
|
+
message: 'permissionId',
|
|
143
|
+
required: true,
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
type: 'boolean',
|
|
147
|
+
name: 'isGrant',
|
|
148
|
+
message: 'isGrant',
|
|
149
|
+
required: false,
|
|
150
|
+
skipPrompt: true,
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
type: 'text',
|
|
154
|
+
name: 'grantorId',
|
|
155
|
+
message: 'grantorId',
|
|
156
|
+
required: false,
|
|
157
|
+
skipPrompt: true,
|
|
158
|
+
},
|
|
159
|
+
]);
|
|
160
|
+
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
161
|
+
const cleanedData = stripUndefined(answers, fieldSchema);
|
|
162
|
+
const client = getClient();
|
|
163
|
+
const result = await client.appPermissionDefaultGrant
|
|
164
|
+
.create({
|
|
165
|
+
data: {
|
|
166
|
+
permissionId: cleanedData.permissionId,
|
|
167
|
+
isGrant: cleanedData.isGrant,
|
|
168
|
+
grantorId: cleanedData.grantorId,
|
|
169
|
+
},
|
|
170
|
+
select: {
|
|
171
|
+
id: true,
|
|
172
|
+
permissionId: true,
|
|
173
|
+
isGrant: true,
|
|
174
|
+
grantorId: true,
|
|
175
|
+
createdAt: true,
|
|
176
|
+
updatedAt: true,
|
|
177
|
+
},
|
|
178
|
+
})
|
|
179
|
+
.execute();
|
|
180
|
+
console.log(JSON.stringify(result, null, 2));
|
|
181
|
+
}
|
|
182
|
+
catch (error) {
|
|
183
|
+
console.error('Failed to create record.');
|
|
184
|
+
if (error instanceof Error) {
|
|
185
|
+
console.error(error.message);
|
|
186
|
+
}
|
|
187
|
+
process.exit(1);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
async function handleUpdate(argv, prompter) {
|
|
191
|
+
try {
|
|
192
|
+
const rawAnswers = await prompter.prompt(argv, [
|
|
193
|
+
{
|
|
194
|
+
type: 'text',
|
|
195
|
+
name: 'id',
|
|
196
|
+
message: 'id',
|
|
197
|
+
required: true,
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
type: 'text',
|
|
201
|
+
name: 'permissionId',
|
|
202
|
+
message: 'permissionId',
|
|
203
|
+
required: false,
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
type: 'boolean',
|
|
207
|
+
name: 'isGrant',
|
|
208
|
+
message: 'isGrant',
|
|
209
|
+
required: false,
|
|
210
|
+
skipPrompt: true,
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
type: 'text',
|
|
214
|
+
name: 'grantorId',
|
|
215
|
+
message: 'grantorId',
|
|
216
|
+
required: false,
|
|
217
|
+
skipPrompt: true,
|
|
218
|
+
},
|
|
219
|
+
]);
|
|
220
|
+
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
221
|
+
const cleanedData = stripUndefined(answers, fieldSchema);
|
|
222
|
+
const client = getClient();
|
|
223
|
+
const result = await client.appPermissionDefaultGrant
|
|
224
|
+
.update({
|
|
225
|
+
where: {
|
|
226
|
+
id: answers.id,
|
|
227
|
+
},
|
|
228
|
+
data: {
|
|
229
|
+
permissionId: cleanedData.permissionId,
|
|
230
|
+
isGrant: cleanedData.isGrant,
|
|
231
|
+
grantorId: cleanedData.grantorId,
|
|
232
|
+
},
|
|
233
|
+
select: {
|
|
234
|
+
id: true,
|
|
235
|
+
permissionId: true,
|
|
236
|
+
isGrant: true,
|
|
237
|
+
grantorId: true,
|
|
238
|
+
createdAt: true,
|
|
239
|
+
updatedAt: true,
|
|
240
|
+
},
|
|
241
|
+
})
|
|
242
|
+
.execute();
|
|
243
|
+
console.log(JSON.stringify(result, null, 2));
|
|
244
|
+
}
|
|
245
|
+
catch (error) {
|
|
246
|
+
console.error('Failed to update record.');
|
|
247
|
+
if (error instanceof Error) {
|
|
248
|
+
console.error(error.message);
|
|
249
|
+
}
|
|
250
|
+
process.exit(1);
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
async function handleDelete(argv, prompter) {
|
|
254
|
+
try {
|
|
255
|
+
const rawAnswers = await prompter.prompt(argv, [
|
|
256
|
+
{
|
|
257
|
+
type: 'text',
|
|
258
|
+
name: 'id',
|
|
259
|
+
message: 'id',
|
|
260
|
+
required: true,
|
|
261
|
+
},
|
|
262
|
+
]);
|
|
263
|
+
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
264
|
+
const client = getClient();
|
|
265
|
+
const result = await client.appPermissionDefaultGrant
|
|
266
|
+
.delete({
|
|
267
|
+
where: {
|
|
268
|
+
id: answers.id,
|
|
269
|
+
},
|
|
270
|
+
select: {
|
|
271
|
+
id: true,
|
|
272
|
+
},
|
|
273
|
+
})
|
|
274
|
+
.execute();
|
|
275
|
+
console.log(JSON.stringify(result, null, 2));
|
|
276
|
+
}
|
|
277
|
+
catch (error) {
|
|
278
|
+
console.error('Failed to delete record.');
|
|
279
|
+
if (error instanceof Error) {
|
|
280
|
+
console.error(error.message);
|
|
281
|
+
}
|
|
282
|
+
process.exit(1);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI commands for AppPermissionDefaultPermission
|
|
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,240 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI commands for AppPermissionDefaultPermission
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { extractFirst } from 'inquirerer';
|
|
7
|
+
import { getClient } from '../executor';
|
|
8
|
+
import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils';
|
|
9
|
+
const fieldSchema = {
|
|
10
|
+
id: 'uuid',
|
|
11
|
+
permissionId: 'uuid',
|
|
12
|
+
createdAt: 'string',
|
|
13
|
+
updatedAt: 'string',
|
|
14
|
+
};
|
|
15
|
+
const usage = '\napp-permission-default-permission <command>\n\nCommands:\n list List appPermissionDefaultPermission records\n find-first Find first matching appPermissionDefaultPermission record\n get Get a appPermissionDefaultPermission by ID\n create Create a new appPermissionDefaultPermission\n update Update an existing appPermissionDefaultPermission\n delete Delete a appPermissionDefaultPermission\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 --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n';
|
|
16
|
+
export default async (argv, prompter, _options) => {
|
|
17
|
+
if (argv.help || argv.h) {
|
|
18
|
+
console.log(usage);
|
|
19
|
+
process.exit(0);
|
|
20
|
+
}
|
|
21
|
+
const { first: subcommand, newArgv } = extractFirst(argv);
|
|
22
|
+
if (!subcommand) {
|
|
23
|
+
const answer = await prompter.prompt(argv, [
|
|
24
|
+
{
|
|
25
|
+
type: 'autocomplete',
|
|
26
|
+
name: 'subcommand',
|
|
27
|
+
message: 'What do you want to do?',
|
|
28
|
+
options: ['list', 'find-first', 'get', 'create', 'update', 'delete'],
|
|
29
|
+
},
|
|
30
|
+
]);
|
|
31
|
+
return handleTableSubcommand(answer.subcommand, newArgv, prompter);
|
|
32
|
+
}
|
|
33
|
+
return handleTableSubcommand(subcommand, newArgv, prompter);
|
|
34
|
+
};
|
|
35
|
+
async function handleTableSubcommand(subcommand, argv, prompter) {
|
|
36
|
+
switch (subcommand) {
|
|
37
|
+
case 'list':
|
|
38
|
+
return handleList(argv, prompter);
|
|
39
|
+
case 'find-first':
|
|
40
|
+
return handleFindFirst(argv, prompter);
|
|
41
|
+
case 'get':
|
|
42
|
+
return handleGet(argv, prompter);
|
|
43
|
+
case 'create':
|
|
44
|
+
return handleCreate(argv, prompter);
|
|
45
|
+
case 'update':
|
|
46
|
+
return handleUpdate(argv, prompter);
|
|
47
|
+
case 'delete':
|
|
48
|
+
return handleDelete(argv, prompter);
|
|
49
|
+
default:
|
|
50
|
+
console.log(usage);
|
|
51
|
+
process.exit(1);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
async function handleList(argv, _prompter) {
|
|
55
|
+
try {
|
|
56
|
+
const defaultSelect = {
|
|
57
|
+
id: true,
|
|
58
|
+
permissionId: true,
|
|
59
|
+
createdAt: true,
|
|
60
|
+
updatedAt: true,
|
|
61
|
+
};
|
|
62
|
+
const findManyArgs = parseFindManyArgs(argv, defaultSelect);
|
|
63
|
+
const client = getClient();
|
|
64
|
+
const result = await client.appPermissionDefaultPermission.findMany(findManyArgs).execute();
|
|
65
|
+
console.log(JSON.stringify(result, null, 2));
|
|
66
|
+
}
|
|
67
|
+
catch (error) {
|
|
68
|
+
console.error('Failed to list records.');
|
|
69
|
+
if (error instanceof Error) {
|
|
70
|
+
console.error(error.message);
|
|
71
|
+
}
|
|
72
|
+
process.exit(1);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
async function handleFindFirst(argv, _prompter) {
|
|
76
|
+
try {
|
|
77
|
+
const defaultSelect = {
|
|
78
|
+
id: true,
|
|
79
|
+
permissionId: true,
|
|
80
|
+
createdAt: true,
|
|
81
|
+
updatedAt: true,
|
|
82
|
+
};
|
|
83
|
+
const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
|
|
84
|
+
const client = getClient();
|
|
85
|
+
const result = await client.appPermissionDefaultPermission.findFirst(findFirstArgs).execute();
|
|
86
|
+
console.log(JSON.stringify(result, null, 2));
|
|
87
|
+
}
|
|
88
|
+
catch (error) {
|
|
89
|
+
console.error('Failed to find record.');
|
|
90
|
+
if (error instanceof Error) {
|
|
91
|
+
console.error(error.message);
|
|
92
|
+
}
|
|
93
|
+
process.exit(1);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
async function handleGet(argv, prompter) {
|
|
97
|
+
try {
|
|
98
|
+
const answers = await prompter.prompt(argv, [
|
|
99
|
+
{
|
|
100
|
+
type: 'text',
|
|
101
|
+
name: 'id',
|
|
102
|
+
message: 'id',
|
|
103
|
+
required: true,
|
|
104
|
+
},
|
|
105
|
+
]);
|
|
106
|
+
const client = getClient();
|
|
107
|
+
const result = await client.appPermissionDefaultPermission
|
|
108
|
+
.findOne({
|
|
109
|
+
id: answers.id,
|
|
110
|
+
select: {
|
|
111
|
+
id: true,
|
|
112
|
+
permissionId: true,
|
|
113
|
+
createdAt: true,
|
|
114
|
+
updatedAt: true,
|
|
115
|
+
},
|
|
116
|
+
})
|
|
117
|
+
.execute();
|
|
118
|
+
console.log(JSON.stringify(result, null, 2));
|
|
119
|
+
}
|
|
120
|
+
catch (error) {
|
|
121
|
+
console.error('Record not found.');
|
|
122
|
+
if (error instanceof Error) {
|
|
123
|
+
console.error(error.message);
|
|
124
|
+
}
|
|
125
|
+
process.exit(1);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
async function handleCreate(argv, prompter) {
|
|
129
|
+
try {
|
|
130
|
+
const rawAnswers = await prompter.prompt(argv, [
|
|
131
|
+
{
|
|
132
|
+
type: 'text',
|
|
133
|
+
name: 'permissionId',
|
|
134
|
+
message: 'permissionId',
|
|
135
|
+
required: true,
|
|
136
|
+
},
|
|
137
|
+
]);
|
|
138
|
+
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
139
|
+
const cleanedData = stripUndefined(answers, fieldSchema);
|
|
140
|
+
const client = getClient();
|
|
141
|
+
const result = await client.appPermissionDefaultPermission
|
|
142
|
+
.create({
|
|
143
|
+
data: {
|
|
144
|
+
permissionId: cleanedData.permissionId,
|
|
145
|
+
},
|
|
146
|
+
select: {
|
|
147
|
+
id: true,
|
|
148
|
+
permissionId: true,
|
|
149
|
+
createdAt: true,
|
|
150
|
+
updatedAt: true,
|
|
151
|
+
},
|
|
152
|
+
})
|
|
153
|
+
.execute();
|
|
154
|
+
console.log(JSON.stringify(result, null, 2));
|
|
155
|
+
}
|
|
156
|
+
catch (error) {
|
|
157
|
+
console.error('Failed to create record.');
|
|
158
|
+
if (error instanceof Error) {
|
|
159
|
+
console.error(error.message);
|
|
160
|
+
}
|
|
161
|
+
process.exit(1);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
async function handleUpdate(argv, prompter) {
|
|
165
|
+
try {
|
|
166
|
+
const rawAnswers = await prompter.prompt(argv, [
|
|
167
|
+
{
|
|
168
|
+
type: 'text',
|
|
169
|
+
name: 'id',
|
|
170
|
+
message: 'id',
|
|
171
|
+
required: true,
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
type: 'text',
|
|
175
|
+
name: 'permissionId',
|
|
176
|
+
message: 'permissionId',
|
|
177
|
+
required: false,
|
|
178
|
+
},
|
|
179
|
+
]);
|
|
180
|
+
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
181
|
+
const cleanedData = stripUndefined(answers, fieldSchema);
|
|
182
|
+
const client = getClient();
|
|
183
|
+
const result = await client.appPermissionDefaultPermission
|
|
184
|
+
.update({
|
|
185
|
+
where: {
|
|
186
|
+
id: answers.id,
|
|
187
|
+
},
|
|
188
|
+
data: {
|
|
189
|
+
permissionId: cleanedData.permissionId,
|
|
190
|
+
},
|
|
191
|
+
select: {
|
|
192
|
+
id: true,
|
|
193
|
+
permissionId: true,
|
|
194
|
+
createdAt: true,
|
|
195
|
+
updatedAt: true,
|
|
196
|
+
},
|
|
197
|
+
})
|
|
198
|
+
.execute();
|
|
199
|
+
console.log(JSON.stringify(result, null, 2));
|
|
200
|
+
}
|
|
201
|
+
catch (error) {
|
|
202
|
+
console.error('Failed to update record.');
|
|
203
|
+
if (error instanceof Error) {
|
|
204
|
+
console.error(error.message);
|
|
205
|
+
}
|
|
206
|
+
process.exit(1);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
async function handleDelete(argv, prompter) {
|
|
210
|
+
try {
|
|
211
|
+
const rawAnswers = await prompter.prompt(argv, [
|
|
212
|
+
{
|
|
213
|
+
type: 'text',
|
|
214
|
+
name: 'id',
|
|
215
|
+
message: 'id',
|
|
216
|
+
required: true,
|
|
217
|
+
},
|
|
218
|
+
]);
|
|
219
|
+
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
220
|
+
const client = getClient();
|
|
221
|
+
const result = await client.appPermissionDefaultPermission
|
|
222
|
+
.delete({
|
|
223
|
+
where: {
|
|
224
|
+
id: answers.id,
|
|
225
|
+
},
|
|
226
|
+
select: {
|
|
227
|
+
id: true,
|
|
228
|
+
},
|
|
229
|
+
})
|
|
230
|
+
.execute();
|
|
231
|
+
console.log(JSON.stringify(result, null, 2));
|
|
232
|
+
}
|
|
233
|
+
catch (error) {
|
|
234
|
+
console.error('Failed to delete record.');
|
|
235
|
+
if (error instanceof Error) {
|
|
236
|
+
console.error(error.message);
|
|
237
|
+
}
|
|
238
|
+
process.exit(1);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
@@ -151,7 +151,8 @@ async function handleCreate(argv, prompter) {
|
|
|
151
151
|
type: 'text',
|
|
152
152
|
name: 'actorId',
|
|
153
153
|
message: 'actorId',
|
|
154
|
-
required:
|
|
154
|
+
required: false,
|
|
155
|
+
skipPrompt: true,
|
|
155
156
|
},
|
|
156
157
|
{
|
|
157
158
|
type: 'text',
|
|
@@ -220,6 +221,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
220
221
|
name: 'actorId',
|
|
221
222
|
message: 'actorId',
|
|
222
223
|
required: false,
|
|
224
|
+
skipPrompt: true,
|
|
223
225
|
},
|
|
224
226
|
{
|
|
225
227
|
type: 'text',
|
|
@@ -162,7 +162,8 @@ async function handleCreate(argv, prompter) {
|
|
|
162
162
|
type: 'text',
|
|
163
163
|
name: 'actorId',
|
|
164
164
|
message: 'actorId',
|
|
165
|
-
required:
|
|
165
|
+
required: false,
|
|
166
|
+
skipPrompt: true,
|
|
166
167
|
},
|
|
167
168
|
{
|
|
168
169
|
type: 'text',
|
|
@@ -240,6 +241,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
240
241
|
name: 'actorId',
|
|
241
242
|
message: 'actorId',
|
|
242
243
|
required: false,
|
|
244
|
+
skipPrompt: true,
|
|
243
245
|
},
|
|
244
246
|
{
|
|
245
247
|
type: 'text',
|
|
@@ -8,7 +8,9 @@ import { getClient } from '../executor';
|
|
|
8
8
|
import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils';
|
|
9
9
|
const fieldSchema = {
|
|
10
10
|
id: 'uuid',
|
|
11
|
+
channel: 'string',
|
|
11
12
|
email: 'string',
|
|
13
|
+
phone: 'string',
|
|
12
14
|
senderId: 'uuid',
|
|
13
15
|
receiverId: 'uuid',
|
|
14
16
|
inviteToken: 'string',
|
|
@@ -67,7 +69,9 @@ async function handleList(argv, _prompter) {
|
|
|
67
69
|
try {
|
|
68
70
|
const defaultSelect = {
|
|
69
71
|
id: true,
|
|
72
|
+
channel: true,
|
|
70
73
|
email: true,
|
|
74
|
+
phone: true,
|
|
71
75
|
senderId: true,
|
|
72
76
|
receiverId: true,
|
|
73
77
|
inviteToken: true,
|
|
@@ -100,7 +104,9 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
100
104
|
try {
|
|
101
105
|
const defaultSelect = {
|
|
102
106
|
id: true,
|
|
107
|
+
channel: true,
|
|
103
108
|
email: true,
|
|
109
|
+
phone: true,
|
|
104
110
|
senderId: true,
|
|
105
111
|
receiverId: true,
|
|
106
112
|
inviteToken: true,
|
|
@@ -145,7 +151,9 @@ async function handleGet(argv, prompter) {
|
|
|
145
151
|
id: answers.id,
|
|
146
152
|
select: {
|
|
147
153
|
id: true,
|
|
154
|
+
channel: true,
|
|
148
155
|
email: true,
|
|
156
|
+
phone: true,
|
|
149
157
|
senderId: true,
|
|
150
158
|
receiverId: true,
|
|
151
159
|
inviteToken: true,
|
|
@@ -176,6 +184,13 @@ async function handleGet(argv, prompter) {
|
|
|
176
184
|
async function handleCreate(argv, prompter) {
|
|
177
185
|
try {
|
|
178
186
|
const rawAnswers = await prompter.prompt(argv, [
|
|
187
|
+
{
|
|
188
|
+
type: 'text',
|
|
189
|
+
name: 'channel',
|
|
190
|
+
message: 'channel',
|
|
191
|
+
required: false,
|
|
192
|
+
skipPrompt: true,
|
|
193
|
+
},
|
|
179
194
|
{
|
|
180
195
|
type: 'text',
|
|
181
196
|
name: 'email',
|
|
@@ -183,6 +198,13 @@ async function handleCreate(argv, prompter) {
|
|
|
183
198
|
required: false,
|
|
184
199
|
skipPrompt: true,
|
|
185
200
|
},
|
|
201
|
+
{
|
|
202
|
+
type: 'text',
|
|
203
|
+
name: 'phone',
|
|
204
|
+
message: 'phone',
|
|
205
|
+
required: false,
|
|
206
|
+
skipPrompt: true,
|
|
207
|
+
},
|
|
186
208
|
{
|
|
187
209
|
type: 'text',
|
|
188
210
|
name: 'senderId',
|
|
@@ -273,7 +295,9 @@ async function handleCreate(argv, prompter) {
|
|
|
273
295
|
const result = await client.orgInvite
|
|
274
296
|
.create({
|
|
275
297
|
data: {
|
|
298
|
+
channel: cleanedData.channel,
|
|
276
299
|
email: cleanedData.email,
|
|
300
|
+
phone: cleanedData.phone,
|
|
277
301
|
senderId: cleanedData.senderId,
|
|
278
302
|
receiverId: cleanedData.receiverId,
|
|
279
303
|
inviteToken: cleanedData.inviteToken,
|
|
@@ -289,7 +313,9 @@ async function handleCreate(argv, prompter) {
|
|
|
289
313
|
},
|
|
290
314
|
select: {
|
|
291
315
|
id: true,
|
|
316
|
+
channel: true,
|
|
292
317
|
email: true,
|
|
318
|
+
phone: true,
|
|
293
319
|
senderId: true,
|
|
294
320
|
receiverId: true,
|
|
295
321
|
inviteToken: true,
|
|
@@ -326,6 +352,13 @@ async function handleUpdate(argv, prompter) {
|
|
|
326
352
|
message: 'id',
|
|
327
353
|
required: true,
|
|
328
354
|
},
|
|
355
|
+
{
|
|
356
|
+
type: 'text',
|
|
357
|
+
name: 'channel',
|
|
358
|
+
message: 'channel',
|
|
359
|
+
required: false,
|
|
360
|
+
skipPrompt: true,
|
|
361
|
+
},
|
|
329
362
|
{
|
|
330
363
|
type: 'text',
|
|
331
364
|
name: 'email',
|
|
@@ -333,6 +366,13 @@ async function handleUpdate(argv, prompter) {
|
|
|
333
366
|
required: false,
|
|
334
367
|
skipPrompt: true,
|
|
335
368
|
},
|
|
369
|
+
{
|
|
370
|
+
type: 'text',
|
|
371
|
+
name: 'phone',
|
|
372
|
+
message: 'phone',
|
|
373
|
+
required: false,
|
|
374
|
+
skipPrompt: true,
|
|
375
|
+
},
|
|
336
376
|
{
|
|
337
377
|
type: 'text',
|
|
338
378
|
name: 'senderId',
|
|
@@ -426,7 +466,9 @@ async function handleUpdate(argv, prompter) {
|
|
|
426
466
|
id: answers.id,
|
|
427
467
|
},
|
|
428
468
|
data: {
|
|
469
|
+
channel: cleanedData.channel,
|
|
429
470
|
email: cleanedData.email,
|
|
471
|
+
phone: cleanedData.phone,
|
|
430
472
|
senderId: cleanedData.senderId,
|
|
431
473
|
receiverId: cleanedData.receiverId,
|
|
432
474
|
inviteToken: cleanedData.inviteToken,
|
|
@@ -442,7 +484,9 @@ async function handleUpdate(argv, prompter) {
|
|
|
442
484
|
},
|
|
443
485
|
select: {
|
|
444
486
|
id: true,
|
|
487
|
+
channel: true,
|
|
445
488
|
email: true,
|
|
489
|
+
phone: true,
|
|
446
490
|
senderId: true,
|
|
447
491
|
receiverId: true,
|
|
448
492
|
inviteToken: true,
|