@constructive-sdk/cli 0.14.10 → 0.14.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/admin/orm/client.d.ts +2 -2
- package/admin/orm/query-builder.js +10 -10
- package/auth/orm/client.d.ts +2 -2
- package/auth/orm/query-builder.js +10 -10
- package/esm/admin/orm/client.d.ts +2 -2
- package/esm/admin/orm/query-builder.js +1 -1
- package/esm/auth/orm/client.d.ts +2 -2
- package/esm/auth/orm/query-builder.js +1 -1
- package/esm/objects/orm/client.d.ts +2 -2
- package/esm/objects/orm/query-builder.js +1 -1
- package/esm/public/cli/commands/notifications-module.js +122 -12
- package/esm/public/orm/client.d.ts +2 -2
- package/esm/public/orm/input-types.d.ts +69 -17
- package/esm/public/orm/query-builder.js +1 -1
- package/objects/orm/client.d.ts +2 -2
- package/objects/orm/query-builder.js +10 -10
- package/package.json +4 -3
- package/public/cli/commands/notifications-module.js +122 -12
- package/public/orm/client.d.ts +2 -2
- package/public/orm/input-types.d.ts +69 -17
- package/public/orm/query-builder.js +10 -10
package/admin/orm/client.d.ts
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
6
|
-
import type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-
|
|
7
|
-
export type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-
|
|
6
|
+
import type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-query/runtime';
|
|
7
|
+
export type { GraphQLAdapter, GraphQLError, QueryResult, } from '@constructive-io/graphql-query/runtime';
|
|
8
8
|
/**
|
|
9
9
|
* Default adapter that uses fetch for HTTP requests.
|
|
10
10
|
* This is used when no custom adapter is provided.
|
|
@@ -50,7 +50,7 @@ exports.buildCustomDocument = buildCustomDocument;
|
|
|
50
50
|
* @generated by @constructive-io/graphql-codegen
|
|
51
51
|
* DO NOT EDIT - changes will be overwritten
|
|
52
52
|
*/
|
|
53
|
-
const
|
|
53
|
+
const runtime_1 = require("@constructive-io/graphql-query/runtime");
|
|
54
54
|
const t = __importStar(require("gql-ast"));
|
|
55
55
|
const client_1 = require("./client");
|
|
56
56
|
class QueryBuilder {
|
|
@@ -221,7 +221,7 @@ function buildFindManyDocument(operationName, queryField, select, args, filterTy
|
|
|
221
221
|
}),
|
|
222
222
|
],
|
|
223
223
|
});
|
|
224
|
-
return { document: (0,
|
|
224
|
+
return { document: (0, runtime_1.print)(document), variables };
|
|
225
225
|
}
|
|
226
226
|
function buildFindFirstDocument(operationName, queryField, select, args, filterTypeName, connectionFieldsMap) {
|
|
227
227
|
const selections = select
|
|
@@ -262,7 +262,7 @@ function buildFindFirstDocument(operationName, queryField, select, args, filterT
|
|
|
262
262
|
}),
|
|
263
263
|
],
|
|
264
264
|
});
|
|
265
|
-
return { document: (0,
|
|
265
|
+
return { document: (0, runtime_1.print)(document), variables };
|
|
266
266
|
}
|
|
267
267
|
function buildCreateDocument(operationName, mutationField, entityField, select, data, inputTypeName, connectionFieldsMap) {
|
|
268
268
|
const selections = select
|
|
@@ -342,7 +342,7 @@ function buildFindOneDocument(operationName, queryField, id, select, idArgName,
|
|
|
342
342
|
const variableDefinitions = [
|
|
343
343
|
t.variableDefinition({
|
|
344
344
|
variable: t.variable({ name: idArgName }),
|
|
345
|
-
type: (0,
|
|
345
|
+
type: (0, runtime_1.parseType)(idTypeName),
|
|
346
346
|
}),
|
|
347
347
|
];
|
|
348
348
|
const queryArgs = [
|
|
@@ -370,7 +370,7 @@ function buildFindOneDocument(operationName, queryField, id, select, idArgName,
|
|
|
370
370
|
],
|
|
371
371
|
});
|
|
372
372
|
return {
|
|
373
|
-
document: (0,
|
|
373
|
+
document: (0, runtime_1.print)(document),
|
|
374
374
|
variables: { [idArgName]: id },
|
|
375
375
|
};
|
|
376
376
|
}
|
|
@@ -445,7 +445,7 @@ function buildCustomDocument(operationType, operationName, fieldName, select, ar
|
|
|
445
445
|
: [];
|
|
446
446
|
const variableDefs = variableDefinitions.map((definition) => t.variableDefinition({
|
|
447
447
|
variable: t.variable({ name: definition.name }),
|
|
448
|
-
type: (0,
|
|
448
|
+
type: (0, runtime_1.parseType)(definition.type),
|
|
449
449
|
}));
|
|
450
450
|
const fieldArgs = variableDefinitions.map((definition) => t.argument({
|
|
451
451
|
name: definition.name,
|
|
@@ -473,7 +473,7 @@ function buildCustomDocument(operationType, operationName, fieldName, select, ar
|
|
|
473
473
|
],
|
|
474
474
|
});
|
|
475
475
|
return {
|
|
476
|
-
document: (0,
|
|
476
|
+
document: (0, runtime_1.print)(document),
|
|
477
477
|
variables: (args ?? {}),
|
|
478
478
|
};
|
|
479
479
|
}
|
|
@@ -551,7 +551,7 @@ function buildInputMutationDocument(config) {
|
|
|
551
551
|
variableDefinitions: [
|
|
552
552
|
t.variableDefinition({
|
|
553
553
|
variable: t.variable({ name: 'input' }),
|
|
554
|
-
type: (0,
|
|
554
|
+
type: (0, runtime_1.parseType)(config.inputTypeName + '!'),
|
|
555
555
|
}),
|
|
556
556
|
],
|
|
557
557
|
selectionSet: t.selectionSet({
|
|
@@ -573,14 +573,14 @@ function buildInputMutationDocument(config) {
|
|
|
573
573
|
}),
|
|
574
574
|
],
|
|
575
575
|
});
|
|
576
|
-
return (0,
|
|
576
|
+
return (0, runtime_1.print)(document);
|
|
577
577
|
}
|
|
578
578
|
function addVariable(spec, definitions, args, variables) {
|
|
579
579
|
if (spec.value === undefined || !spec.typeName)
|
|
580
580
|
return;
|
|
581
581
|
definitions.push(t.variableDefinition({
|
|
582
582
|
variable: t.variable({ name: spec.varName }),
|
|
583
|
-
type: (0,
|
|
583
|
+
type: (0, runtime_1.parseType)(spec.typeName),
|
|
584
584
|
}));
|
|
585
585
|
args.push(t.argument({
|
|
586
586
|
name: spec.argName ?? spec.varName,
|
package/auth/orm/client.d.ts
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
6
|
-
import type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-
|
|
7
|
-
export type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-
|
|
6
|
+
import type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-query/runtime';
|
|
7
|
+
export type { GraphQLAdapter, GraphQLError, QueryResult, } from '@constructive-io/graphql-query/runtime';
|
|
8
8
|
/**
|
|
9
9
|
* Default adapter that uses fetch for HTTP requests.
|
|
10
10
|
* This is used when no custom adapter is provided.
|
|
@@ -50,7 +50,7 @@ exports.buildCustomDocument = buildCustomDocument;
|
|
|
50
50
|
* @generated by @constructive-io/graphql-codegen
|
|
51
51
|
* DO NOT EDIT - changes will be overwritten
|
|
52
52
|
*/
|
|
53
|
-
const
|
|
53
|
+
const runtime_1 = require("@constructive-io/graphql-query/runtime");
|
|
54
54
|
const t = __importStar(require("gql-ast"));
|
|
55
55
|
const client_1 = require("./client");
|
|
56
56
|
class QueryBuilder {
|
|
@@ -221,7 +221,7 @@ function buildFindManyDocument(operationName, queryField, select, args, filterTy
|
|
|
221
221
|
}),
|
|
222
222
|
],
|
|
223
223
|
});
|
|
224
|
-
return { document: (0,
|
|
224
|
+
return { document: (0, runtime_1.print)(document), variables };
|
|
225
225
|
}
|
|
226
226
|
function buildFindFirstDocument(operationName, queryField, select, args, filterTypeName, connectionFieldsMap) {
|
|
227
227
|
const selections = select
|
|
@@ -262,7 +262,7 @@ function buildFindFirstDocument(operationName, queryField, select, args, filterT
|
|
|
262
262
|
}),
|
|
263
263
|
],
|
|
264
264
|
});
|
|
265
|
-
return { document: (0,
|
|
265
|
+
return { document: (0, runtime_1.print)(document), variables };
|
|
266
266
|
}
|
|
267
267
|
function buildCreateDocument(operationName, mutationField, entityField, select, data, inputTypeName, connectionFieldsMap) {
|
|
268
268
|
const selections = select
|
|
@@ -342,7 +342,7 @@ function buildFindOneDocument(operationName, queryField, id, select, idArgName,
|
|
|
342
342
|
const variableDefinitions = [
|
|
343
343
|
t.variableDefinition({
|
|
344
344
|
variable: t.variable({ name: idArgName }),
|
|
345
|
-
type: (0,
|
|
345
|
+
type: (0, runtime_1.parseType)(idTypeName),
|
|
346
346
|
}),
|
|
347
347
|
];
|
|
348
348
|
const queryArgs = [
|
|
@@ -370,7 +370,7 @@ function buildFindOneDocument(operationName, queryField, id, select, idArgName,
|
|
|
370
370
|
],
|
|
371
371
|
});
|
|
372
372
|
return {
|
|
373
|
-
document: (0,
|
|
373
|
+
document: (0, runtime_1.print)(document),
|
|
374
374
|
variables: { [idArgName]: id },
|
|
375
375
|
};
|
|
376
376
|
}
|
|
@@ -445,7 +445,7 @@ function buildCustomDocument(operationType, operationName, fieldName, select, ar
|
|
|
445
445
|
: [];
|
|
446
446
|
const variableDefs = variableDefinitions.map((definition) => t.variableDefinition({
|
|
447
447
|
variable: t.variable({ name: definition.name }),
|
|
448
|
-
type: (0,
|
|
448
|
+
type: (0, runtime_1.parseType)(definition.type),
|
|
449
449
|
}));
|
|
450
450
|
const fieldArgs = variableDefinitions.map((definition) => t.argument({
|
|
451
451
|
name: definition.name,
|
|
@@ -473,7 +473,7 @@ function buildCustomDocument(operationType, operationName, fieldName, select, ar
|
|
|
473
473
|
],
|
|
474
474
|
});
|
|
475
475
|
return {
|
|
476
|
-
document: (0,
|
|
476
|
+
document: (0, runtime_1.print)(document),
|
|
477
477
|
variables: (args ?? {}),
|
|
478
478
|
};
|
|
479
479
|
}
|
|
@@ -551,7 +551,7 @@ function buildInputMutationDocument(config) {
|
|
|
551
551
|
variableDefinitions: [
|
|
552
552
|
t.variableDefinition({
|
|
553
553
|
variable: t.variable({ name: 'input' }),
|
|
554
|
-
type: (0,
|
|
554
|
+
type: (0, runtime_1.parseType)(config.inputTypeName + '!'),
|
|
555
555
|
}),
|
|
556
556
|
],
|
|
557
557
|
selectionSet: t.selectionSet({
|
|
@@ -573,14 +573,14 @@ function buildInputMutationDocument(config) {
|
|
|
573
573
|
}),
|
|
574
574
|
],
|
|
575
575
|
});
|
|
576
|
-
return (0,
|
|
576
|
+
return (0, runtime_1.print)(document);
|
|
577
577
|
}
|
|
578
578
|
function addVariable(spec, definitions, args, variables) {
|
|
579
579
|
if (spec.value === undefined || !spec.typeName)
|
|
580
580
|
return;
|
|
581
581
|
definitions.push(t.variableDefinition({
|
|
582
582
|
variable: t.variable({ name: spec.varName }),
|
|
583
|
-
type: (0,
|
|
583
|
+
type: (0, runtime_1.parseType)(spec.typeName),
|
|
584
584
|
}));
|
|
585
585
|
args.push(t.argument({
|
|
586
586
|
name: spec.argName ?? spec.varName,
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
6
|
-
import type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-
|
|
7
|
-
export type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-
|
|
6
|
+
import type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-query/runtime';
|
|
7
|
+
export type { GraphQLAdapter, GraphQLError, QueryResult, } from '@constructive-io/graphql-query/runtime';
|
|
8
8
|
/**
|
|
9
9
|
* Default adapter that uses fetch for HTTP requests.
|
|
10
10
|
* This is used when no custom adapter is provided.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
6
|
-
import { parseType, print } from '@
|
|
6
|
+
import { parseType, print } from '@constructive-io/graphql-query/runtime';
|
|
7
7
|
import * as t from 'gql-ast';
|
|
8
8
|
import { GraphQLRequestError } from './client';
|
|
9
9
|
export class QueryBuilder {
|
package/esm/auth/orm/client.d.ts
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
6
|
-
import type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-
|
|
7
|
-
export type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-
|
|
6
|
+
import type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-query/runtime';
|
|
7
|
+
export type { GraphQLAdapter, GraphQLError, QueryResult, } from '@constructive-io/graphql-query/runtime';
|
|
8
8
|
/**
|
|
9
9
|
* Default adapter that uses fetch for HTTP requests.
|
|
10
10
|
* This is used when no custom adapter is provided.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
6
|
-
import { parseType, print } from '@
|
|
6
|
+
import { parseType, print } from '@constructive-io/graphql-query/runtime';
|
|
7
7
|
import * as t from 'gql-ast';
|
|
8
8
|
import { GraphQLRequestError } from './client';
|
|
9
9
|
export class QueryBuilder {
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
6
|
-
import type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-
|
|
7
|
-
export type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-
|
|
6
|
+
import type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-query/runtime';
|
|
7
|
+
export type { GraphQLAdapter, GraphQLError, QueryResult, } from '@constructive-io/graphql-query/runtime';
|
|
8
8
|
/**
|
|
9
9
|
* Default adapter that uses fetch for HTTP requests.
|
|
10
10
|
* This is used when no custom adapter is provided.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
6
|
-
import { parseType, print } from '@
|
|
6
|
+
import { parseType, print } from '@constructive-io/graphql-query/runtime';
|
|
7
7
|
import * as t from 'gql-ast';
|
|
8
8
|
import { GraphQLRequestError } from './client';
|
|
9
9
|
export class QueryBuilder {
|
|
@@ -12,13 +12,18 @@ const fieldSchema = {
|
|
|
12
12
|
schemaId: 'uuid',
|
|
13
13
|
privateSchemaId: 'uuid',
|
|
14
14
|
notificationsTableId: 'uuid',
|
|
15
|
-
|
|
15
|
+
readStateTableId: 'uuid',
|
|
16
16
|
preferencesTableId: 'uuid',
|
|
17
17
|
channelsTableId: 'uuid',
|
|
18
18
|
deliveryLogTableId: 'uuid',
|
|
19
19
|
ownerTableId: 'uuid',
|
|
20
20
|
userSettingsTableId: 'uuid',
|
|
21
21
|
organizationSettingsTableId: 'uuid',
|
|
22
|
+
hasChannels: 'boolean',
|
|
23
|
+
hasPreferences: 'boolean',
|
|
24
|
+
hasSettingsExtension: 'boolean',
|
|
25
|
+
hasDigestMetadata: 'boolean',
|
|
26
|
+
hasSubscriptions: 'boolean',
|
|
22
27
|
};
|
|
23
28
|
const usage = '\nnotifications-module <command>\n\nCommands:\n list List notificationsModule records\n find-first Find first matching notificationsModule record\n get Get a notificationsModule by ID\n create Create a new notificationsModule\n update Update an existing notificationsModule\n delete Delete a notificationsModule\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';
|
|
24
29
|
export default async (argv, prompter, _options) => {
|
|
@@ -67,13 +72,18 @@ async function handleList(argv, _prompter) {
|
|
|
67
72
|
schemaId: true,
|
|
68
73
|
privateSchemaId: true,
|
|
69
74
|
notificationsTableId: true,
|
|
70
|
-
|
|
75
|
+
readStateTableId: true,
|
|
71
76
|
preferencesTableId: true,
|
|
72
77
|
channelsTableId: true,
|
|
73
78
|
deliveryLogTableId: true,
|
|
74
79
|
ownerTableId: true,
|
|
75
80
|
userSettingsTableId: true,
|
|
76
81
|
organizationSettingsTableId: true,
|
|
82
|
+
hasChannels: true,
|
|
83
|
+
hasPreferences: true,
|
|
84
|
+
hasSettingsExtension: true,
|
|
85
|
+
hasDigestMetadata: true,
|
|
86
|
+
hasSubscriptions: true,
|
|
77
87
|
};
|
|
78
88
|
const findManyArgs = parseFindManyArgs(argv, defaultSelect);
|
|
79
89
|
const client = getClient();
|
|
@@ -96,13 +106,18 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
96
106
|
schemaId: true,
|
|
97
107
|
privateSchemaId: true,
|
|
98
108
|
notificationsTableId: true,
|
|
99
|
-
|
|
109
|
+
readStateTableId: true,
|
|
100
110
|
preferencesTableId: true,
|
|
101
111
|
channelsTableId: true,
|
|
102
112
|
deliveryLogTableId: true,
|
|
103
113
|
ownerTableId: true,
|
|
104
114
|
userSettingsTableId: true,
|
|
105
115
|
organizationSettingsTableId: true,
|
|
116
|
+
hasChannels: true,
|
|
117
|
+
hasPreferences: true,
|
|
118
|
+
hasSettingsExtension: true,
|
|
119
|
+
hasDigestMetadata: true,
|
|
120
|
+
hasSubscriptions: true,
|
|
106
121
|
};
|
|
107
122
|
const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
|
|
108
123
|
const client = getClient();
|
|
@@ -137,13 +152,18 @@ async function handleGet(argv, prompter) {
|
|
|
137
152
|
schemaId: true,
|
|
138
153
|
privateSchemaId: true,
|
|
139
154
|
notificationsTableId: true,
|
|
140
|
-
|
|
155
|
+
readStateTableId: true,
|
|
141
156
|
preferencesTableId: true,
|
|
142
157
|
channelsTableId: true,
|
|
143
158
|
deliveryLogTableId: true,
|
|
144
159
|
ownerTableId: true,
|
|
145
160
|
userSettingsTableId: true,
|
|
146
161
|
organizationSettingsTableId: true,
|
|
162
|
+
hasChannels: true,
|
|
163
|
+
hasPreferences: true,
|
|
164
|
+
hasSettingsExtension: true,
|
|
165
|
+
hasDigestMetadata: true,
|
|
166
|
+
hasSubscriptions: true,
|
|
147
167
|
},
|
|
148
168
|
})
|
|
149
169
|
.execute();
|
|
@@ -189,8 +209,8 @@ async function handleCreate(argv, prompter) {
|
|
|
189
209
|
},
|
|
190
210
|
{
|
|
191
211
|
type: 'text',
|
|
192
|
-
name: '
|
|
193
|
-
message: '
|
|
212
|
+
name: 'readStateTableId',
|
|
213
|
+
message: 'readStateTableId',
|
|
194
214
|
required: false,
|
|
195
215
|
skipPrompt: true,
|
|
196
216
|
},
|
|
@@ -236,6 +256,41 @@ async function handleCreate(argv, prompter) {
|
|
|
236
256
|
required: false,
|
|
237
257
|
skipPrompt: true,
|
|
238
258
|
},
|
|
259
|
+
{
|
|
260
|
+
type: 'boolean',
|
|
261
|
+
name: 'hasChannels',
|
|
262
|
+
message: 'hasChannels',
|
|
263
|
+
required: false,
|
|
264
|
+
skipPrompt: true,
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
type: 'boolean',
|
|
268
|
+
name: 'hasPreferences',
|
|
269
|
+
message: 'hasPreferences',
|
|
270
|
+
required: false,
|
|
271
|
+
skipPrompt: true,
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
type: 'boolean',
|
|
275
|
+
name: 'hasSettingsExtension',
|
|
276
|
+
message: 'hasSettingsExtension',
|
|
277
|
+
required: false,
|
|
278
|
+
skipPrompt: true,
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
type: 'boolean',
|
|
282
|
+
name: 'hasDigestMetadata',
|
|
283
|
+
message: 'hasDigestMetadata',
|
|
284
|
+
required: false,
|
|
285
|
+
skipPrompt: true,
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
type: 'boolean',
|
|
289
|
+
name: 'hasSubscriptions',
|
|
290
|
+
message: 'hasSubscriptions',
|
|
291
|
+
required: false,
|
|
292
|
+
skipPrompt: true,
|
|
293
|
+
},
|
|
239
294
|
]);
|
|
240
295
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
241
296
|
const cleanedData = stripUndefined(answers, fieldSchema);
|
|
@@ -247,13 +302,18 @@ async function handleCreate(argv, prompter) {
|
|
|
247
302
|
schemaId: cleanedData.schemaId,
|
|
248
303
|
privateSchemaId: cleanedData.privateSchemaId,
|
|
249
304
|
notificationsTableId: cleanedData.notificationsTableId,
|
|
250
|
-
|
|
305
|
+
readStateTableId: cleanedData.readStateTableId,
|
|
251
306
|
preferencesTableId: cleanedData.preferencesTableId,
|
|
252
307
|
channelsTableId: cleanedData.channelsTableId,
|
|
253
308
|
deliveryLogTableId: cleanedData.deliveryLogTableId,
|
|
254
309
|
ownerTableId: cleanedData.ownerTableId,
|
|
255
310
|
userSettingsTableId: cleanedData.userSettingsTableId,
|
|
256
311
|
organizationSettingsTableId: cleanedData.organizationSettingsTableId,
|
|
312
|
+
hasChannels: cleanedData.hasChannels,
|
|
313
|
+
hasPreferences: cleanedData.hasPreferences,
|
|
314
|
+
hasSettingsExtension: cleanedData.hasSettingsExtension,
|
|
315
|
+
hasDigestMetadata: cleanedData.hasDigestMetadata,
|
|
316
|
+
hasSubscriptions: cleanedData.hasSubscriptions,
|
|
257
317
|
},
|
|
258
318
|
select: {
|
|
259
319
|
id: true,
|
|
@@ -261,13 +321,18 @@ async function handleCreate(argv, prompter) {
|
|
|
261
321
|
schemaId: true,
|
|
262
322
|
privateSchemaId: true,
|
|
263
323
|
notificationsTableId: true,
|
|
264
|
-
|
|
324
|
+
readStateTableId: true,
|
|
265
325
|
preferencesTableId: true,
|
|
266
326
|
channelsTableId: true,
|
|
267
327
|
deliveryLogTableId: true,
|
|
268
328
|
ownerTableId: true,
|
|
269
329
|
userSettingsTableId: true,
|
|
270
330
|
organizationSettingsTableId: true,
|
|
331
|
+
hasChannels: true,
|
|
332
|
+
hasPreferences: true,
|
|
333
|
+
hasSettingsExtension: true,
|
|
334
|
+
hasDigestMetadata: true,
|
|
335
|
+
hasSubscriptions: true,
|
|
271
336
|
},
|
|
272
337
|
})
|
|
273
338
|
.execute();
|
|
@@ -319,8 +384,8 @@ async function handleUpdate(argv, prompter) {
|
|
|
319
384
|
},
|
|
320
385
|
{
|
|
321
386
|
type: 'text',
|
|
322
|
-
name: '
|
|
323
|
-
message: '
|
|
387
|
+
name: 'readStateTableId',
|
|
388
|
+
message: 'readStateTableId',
|
|
324
389
|
required: false,
|
|
325
390
|
skipPrompt: true,
|
|
326
391
|
},
|
|
@@ -366,6 +431,41 @@ async function handleUpdate(argv, prompter) {
|
|
|
366
431
|
required: false,
|
|
367
432
|
skipPrompt: true,
|
|
368
433
|
},
|
|
434
|
+
{
|
|
435
|
+
type: 'boolean',
|
|
436
|
+
name: 'hasChannels',
|
|
437
|
+
message: 'hasChannels',
|
|
438
|
+
required: false,
|
|
439
|
+
skipPrompt: true,
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
type: 'boolean',
|
|
443
|
+
name: 'hasPreferences',
|
|
444
|
+
message: 'hasPreferences',
|
|
445
|
+
required: false,
|
|
446
|
+
skipPrompt: true,
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
type: 'boolean',
|
|
450
|
+
name: 'hasSettingsExtension',
|
|
451
|
+
message: 'hasSettingsExtension',
|
|
452
|
+
required: false,
|
|
453
|
+
skipPrompt: true,
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
type: 'boolean',
|
|
457
|
+
name: 'hasDigestMetadata',
|
|
458
|
+
message: 'hasDigestMetadata',
|
|
459
|
+
required: false,
|
|
460
|
+
skipPrompt: true,
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
type: 'boolean',
|
|
464
|
+
name: 'hasSubscriptions',
|
|
465
|
+
message: 'hasSubscriptions',
|
|
466
|
+
required: false,
|
|
467
|
+
skipPrompt: true,
|
|
468
|
+
},
|
|
369
469
|
]);
|
|
370
470
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
371
471
|
const cleanedData = stripUndefined(answers, fieldSchema);
|
|
@@ -380,13 +480,18 @@ async function handleUpdate(argv, prompter) {
|
|
|
380
480
|
schemaId: cleanedData.schemaId,
|
|
381
481
|
privateSchemaId: cleanedData.privateSchemaId,
|
|
382
482
|
notificationsTableId: cleanedData.notificationsTableId,
|
|
383
|
-
|
|
483
|
+
readStateTableId: cleanedData.readStateTableId,
|
|
384
484
|
preferencesTableId: cleanedData.preferencesTableId,
|
|
385
485
|
channelsTableId: cleanedData.channelsTableId,
|
|
386
486
|
deliveryLogTableId: cleanedData.deliveryLogTableId,
|
|
387
487
|
ownerTableId: cleanedData.ownerTableId,
|
|
388
488
|
userSettingsTableId: cleanedData.userSettingsTableId,
|
|
389
489
|
organizationSettingsTableId: cleanedData.organizationSettingsTableId,
|
|
490
|
+
hasChannels: cleanedData.hasChannels,
|
|
491
|
+
hasPreferences: cleanedData.hasPreferences,
|
|
492
|
+
hasSettingsExtension: cleanedData.hasSettingsExtension,
|
|
493
|
+
hasDigestMetadata: cleanedData.hasDigestMetadata,
|
|
494
|
+
hasSubscriptions: cleanedData.hasSubscriptions,
|
|
390
495
|
},
|
|
391
496
|
select: {
|
|
392
497
|
id: true,
|
|
@@ -394,13 +499,18 @@ async function handleUpdate(argv, prompter) {
|
|
|
394
499
|
schemaId: true,
|
|
395
500
|
privateSchemaId: true,
|
|
396
501
|
notificationsTableId: true,
|
|
397
|
-
|
|
502
|
+
readStateTableId: true,
|
|
398
503
|
preferencesTableId: true,
|
|
399
504
|
channelsTableId: true,
|
|
400
505
|
deliveryLogTableId: true,
|
|
401
506
|
ownerTableId: true,
|
|
402
507
|
userSettingsTableId: true,
|
|
403
508
|
organizationSettingsTableId: true,
|
|
509
|
+
hasChannels: true,
|
|
510
|
+
hasPreferences: true,
|
|
511
|
+
hasSettingsExtension: true,
|
|
512
|
+
hasDigestMetadata: true,
|
|
513
|
+
hasSubscriptions: true,
|
|
404
514
|
},
|
|
405
515
|
})
|
|
406
516
|
.execute();
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
6
|
-
import type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-
|
|
7
|
-
export type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-
|
|
6
|
+
import type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-query/runtime';
|
|
7
|
+
export type { GraphQLAdapter, GraphQLError, QueryResult, } from '@constructive-io/graphql-query/runtime';
|
|
8
8
|
/**
|
|
9
9
|
* Default adapter that uses fetch for HTTP requests.
|
|
10
10
|
* This is used when no custom adapter is provided.
|