@nxtedition/types 23.0.12 → 23.0.14
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/dist/app.d.ts +61 -1
- package/dist/app.js +218 -10
- package/dist/common/index.d.ts +1 -0
- package/dist/common/index.js +1 -0
- package/dist/common/settings.d.ts +37 -6
- package/dist/common/settings.js +1474 -535
- package/dist/common/user-notification.d.ts +8 -0
- package/dist/common/user-notification.js +85 -0
- package/dist/domains/asset.d.ts +23 -0
- package/dist/domains/asset.js +248 -0
- package/dist/domains/comment-reaction.d.ts +15 -0
- package/dist/domains/comment-reaction.js +115 -0
- package/dist/domains/comment-read-mark.d.ts +15 -0
- package/dist/domains/comment-read-mark.js +115 -0
- package/dist/domains/comment.d.ts +153 -0
- package/dist/domains/comment.js +5730 -0
- package/dist/domains/connection.d.ts +1 -1
- package/dist/domains/connection.js +118 -118
- package/dist/domains/deepstream.d.ts +14 -0
- package/dist/domains/deepstream.js +139 -0
- package/dist/domains/edit.d.ts +17 -0
- package/dist/domains/edit.js +224 -0
- package/dist/domains/index.d.ts +17 -1
- package/dist/domains/index.js +8 -0
- package/dist/domains/planning.d.ts +1 -1
- package/dist/domains/planning.js +29 -23
- package/dist/domains/publish.d.ts +1 -0
- package/dist/domains/publish.js +142 -46
- package/dist/domains/published.d.ts +2 -1
- package/dist/domains/published.js +50 -10
- package/dist/domains/settings.js +1480 -536
- package/dist/domains/subtitle-style.d.ts +13 -0
- package/dist/domains/subtitle-style.js +123 -0
- package/dist/domains/user-notification-status.d.ts +55 -0
- package/dist/domains/user-notification-status.js +715 -0
- package/dist/domains/user-notification.d.ts +118 -0
- package/dist/domains/user-notification.js +3040 -0
- package/dist/domains/user.d.ts +42 -8
- package/dist/domains/user.js +352 -12
- package/dist/index.d.ts +23 -1
- package/dist/index.js +30 -13
- package/dist/schema.json +1453 -32
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import __typia from "typia";
|
|
2
2
|
export const isConnectionRecord = input => {
|
|
3
|
-
const $io0 = input => "file" === input.type && "string" === typeof input.protocol && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && true && (undefined === input.bucket || "string" === typeof input.bucket) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.
|
|
3
|
+
const $io0 = input => "file" === input.type && "string" === typeof input.protocol && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && true && (undefined === input.bucket || "string" === typeof input.bucket) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
|
|
4
4
|
const $io1 = input => "string" === typeof input.content;
|
|
5
|
-
const $io2 = input => "reuters" === input.type && (undefined === input.clientId || "string" === typeof input.clientId) && (undefined === input.clientSecret || "string" === typeof input.clientSecret) && (undefined === input.audience || "string" === typeof input.audience) && (undefined === input.
|
|
6
|
-
const $io3 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem)) && (undefined === input.
|
|
5
|
+
const $io2 = input => "reuters" === input.type && (undefined === input.clientId || "string" === typeof input.clientId) && (undefined === input.clientSecret || "string" === typeof input.clientSecret) && (undefined === input.audience || "string" === typeof input.audience) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
|
|
6
|
+
const $io3 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
|
|
7
7
|
const $iu0 = input => (() => {
|
|
8
8
|
if ("file" === input.type)
|
|
9
9
|
return $io0(input);
|
|
@@ -18,10 +18,10 @@ export const isConnectionRecord = input => {
|
|
|
18
18
|
};
|
|
19
19
|
export const assertConnectionRecord = (input, errorFactory) => {
|
|
20
20
|
const __is = input => {
|
|
21
|
-
const $io0 = input => "file" === input.type && "string" === typeof input.protocol && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && true && (undefined === input.bucket || "string" === typeof input.bucket) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.
|
|
21
|
+
const $io0 = input => "file" === input.type && "string" === typeof input.protocol && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && true && (undefined === input.bucket || "string" === typeof input.bucket) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
|
|
22
22
|
const $io1 = input => "string" === typeof input.content;
|
|
23
|
-
const $io2 = input => "reuters" === input.type && (undefined === input.clientId || "string" === typeof input.clientId) && (undefined === input.clientSecret || "string" === typeof input.clientSecret) && (undefined === input.audience || "string" === typeof input.audience) && (undefined === input.
|
|
24
|
-
const $io3 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem)) && (undefined === input.
|
|
23
|
+
const $io2 = input => "reuters" === input.type && (undefined === input.clientId || "string" === typeof input.clientId) && (undefined === input.clientSecret || "string" === typeof input.clientSecret) && (undefined === input.audience || "string" === typeof input.audience) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
|
|
24
|
+
const $io3 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
|
|
25
25
|
const $iu0 = input => (() => {
|
|
26
26
|
if ("file" === input.type)
|
|
27
27
|
return $io0(input);
|
|
@@ -85,10 +85,10 @@ export const assertConnectionRecord = (input, errorFactory) => {
|
|
|
85
85
|
path: _path + ".metafile",
|
|
86
86
|
expected: "(__type | undefined)",
|
|
87
87
|
value: input.metafile
|
|
88
|
-
}, errorFactory)) && (undefined === input.
|
|
89
|
-
path: _path + ".
|
|
88
|
+
}, errorFactory)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled || $guard(_exceptionable, {
|
|
89
|
+
path: _path + ".userNotificationsEnabled",
|
|
90
90
|
expected: "(boolean | undefined)",
|
|
91
|
-
value: input.
|
|
91
|
+
value: input.userNotificationsEnabled
|
|
92
92
|
}, errorFactory));
|
|
93
93
|
const $ao1 = (input, _path, _exceptionable = true) => "string" === typeof input.content || $guard(_exceptionable, {
|
|
94
94
|
path: _path + ".content",
|
|
@@ -111,10 +111,10 @@ export const assertConnectionRecord = (input, errorFactory) => {
|
|
|
111
111
|
path: _path + ".audience",
|
|
112
112
|
expected: "(string | undefined)",
|
|
113
113
|
value: input.audience
|
|
114
|
-
}, errorFactory)) && (undefined === input.
|
|
115
|
-
path: _path + ".
|
|
114
|
+
}, errorFactory)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled || $guard(_exceptionable, {
|
|
115
|
+
path: _path + ".userNotificationsEnabled",
|
|
116
116
|
expected: "(boolean | undefined)",
|
|
117
|
-
value: input.
|
|
117
|
+
value: input.userNotificationsEnabled
|
|
118
118
|
}, errorFactory));
|
|
119
119
|
const $ao3 = (input, _path, _exceptionable = true) => ("facebook" === input.type || $guard(_exceptionable, {
|
|
120
120
|
path: _path + ".type",
|
|
@@ -132,10 +132,10 @@ export const assertConnectionRecord = (input, errorFactory) => {
|
|
|
132
132
|
path: _path + ".grantedScopes",
|
|
133
133
|
expected: "(Array<string> | undefined)",
|
|
134
134
|
value: input.grantedScopes
|
|
135
|
-
}, errorFactory)) && (undefined === input.
|
|
136
|
-
path: _path + ".
|
|
135
|
+
}, errorFactory)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled || $guard(_exceptionable, {
|
|
136
|
+
path: _path + ".userNotificationsEnabled",
|
|
137
137
|
expected: "(boolean | undefined)",
|
|
138
|
-
value: input.
|
|
138
|
+
value: input.userNotificationsEnabled
|
|
139
139
|
}, errorFactory));
|
|
140
140
|
const $au0 = (input, _path, _exceptionable = true) => (() => {
|
|
141
141
|
if ("file" === input.type)
|
|
@@ -209,7 +209,7 @@ export const randomConnectionRecord = generator => {
|
|
|
209
209
|
() => undefined,
|
|
210
210
|
() => $ro1(_recursive, _recursive ? 1 + _depth : _depth)
|
|
211
211
|
])(),
|
|
212
|
-
|
|
212
|
+
userNotificationsEnabled: $pick([
|
|
213
213
|
() => undefined,
|
|
214
214
|
() => (generator?.boolean ?? $generator.boolean)()
|
|
215
215
|
])()
|
|
@@ -231,7 +231,7 @@ export const randomConnectionRecord = generator => {
|
|
|
231
231
|
() => undefined,
|
|
232
232
|
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
233
233
|
])(),
|
|
234
|
-
|
|
234
|
+
userNotificationsEnabled: $pick([
|
|
235
235
|
() => undefined,
|
|
236
236
|
() => (generator?.boolean ?? $generator.boolean)()
|
|
237
237
|
])()
|
|
@@ -242,7 +242,7 @@ export const randomConnectionRecord = generator => {
|
|
|
242
242
|
() => undefined,
|
|
243
243
|
() => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
|
|
244
244
|
])(),
|
|
245
|
-
|
|
245
|
+
userNotificationsEnabled: $pick([
|
|
246
246
|
() => undefined,
|
|
247
247
|
() => (generator?.boolean ?? $generator.boolean)()
|
|
248
248
|
])()
|
|
@@ -255,10 +255,10 @@ export const randomConnectionRecord = generator => {
|
|
|
255
255
|
};
|
|
256
256
|
export const assertGuardConnectionRecord = (input, errorFactory) => {
|
|
257
257
|
const __is = input => {
|
|
258
|
-
const $io0 = input => "file" === input.type && "string" === typeof input.protocol && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && true && (undefined === input.bucket || "string" === typeof input.bucket) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.
|
|
258
|
+
const $io0 = input => "file" === input.type && "string" === typeof input.protocol && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && true && (undefined === input.bucket || "string" === typeof input.bucket) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
|
|
259
259
|
const $io1 = input => "string" === typeof input.content;
|
|
260
|
-
const $io2 = input => "reuters" === input.type && (undefined === input.clientId || "string" === typeof input.clientId) && (undefined === input.clientSecret || "string" === typeof input.clientSecret) && (undefined === input.audience || "string" === typeof input.audience) && (undefined === input.
|
|
261
|
-
const $io3 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem)) && (undefined === input.
|
|
260
|
+
const $io2 = input => "reuters" === input.type && (undefined === input.clientId || "string" === typeof input.clientId) && (undefined === input.clientSecret || "string" === typeof input.clientSecret) && (undefined === input.audience || "string" === typeof input.audience) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
|
|
261
|
+
const $io3 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
|
|
262
262
|
const $iu0 = input => (() => {
|
|
263
263
|
if ("file" === input.type)
|
|
264
264
|
return $io0(input);
|
|
@@ -322,10 +322,10 @@ export const assertGuardConnectionRecord = (input, errorFactory) => {
|
|
|
322
322
|
path: _path + ".metafile",
|
|
323
323
|
expected: "(__type | undefined)",
|
|
324
324
|
value: input.metafile
|
|
325
|
-
}, errorFactory)) && (undefined === input.
|
|
326
|
-
path: _path + ".
|
|
325
|
+
}, errorFactory)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled || $guard(_exceptionable, {
|
|
326
|
+
path: _path + ".userNotificationsEnabled",
|
|
327
327
|
expected: "(boolean | undefined)",
|
|
328
|
-
value: input.
|
|
328
|
+
value: input.userNotificationsEnabled
|
|
329
329
|
}, errorFactory));
|
|
330
330
|
const $ao1 = (input, _path, _exceptionable = true) => "string" === typeof input.content || $guard(_exceptionable, {
|
|
331
331
|
path: _path + ".content",
|
|
@@ -348,10 +348,10 @@ export const assertGuardConnectionRecord = (input, errorFactory) => {
|
|
|
348
348
|
path: _path + ".audience",
|
|
349
349
|
expected: "(string | undefined)",
|
|
350
350
|
value: input.audience
|
|
351
|
-
}, errorFactory)) && (undefined === input.
|
|
352
|
-
path: _path + ".
|
|
351
|
+
}, errorFactory)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled || $guard(_exceptionable, {
|
|
352
|
+
path: _path + ".userNotificationsEnabled",
|
|
353
353
|
expected: "(boolean | undefined)",
|
|
354
|
-
value: input.
|
|
354
|
+
value: input.userNotificationsEnabled
|
|
355
355
|
}, errorFactory));
|
|
356
356
|
const $ao3 = (input, _path, _exceptionable = true) => ("facebook" === input.type || $guard(_exceptionable, {
|
|
357
357
|
path: _path + ".type",
|
|
@@ -369,10 +369,10 @@ export const assertGuardConnectionRecord = (input, errorFactory) => {
|
|
|
369
369
|
path: _path + ".grantedScopes",
|
|
370
370
|
expected: "(Array<string> | undefined)",
|
|
371
371
|
value: input.grantedScopes
|
|
372
|
-
}, errorFactory)) && (undefined === input.
|
|
373
|
-
path: _path + ".
|
|
372
|
+
}, errorFactory)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled || $guard(_exceptionable, {
|
|
373
|
+
path: _path + ".userNotificationsEnabled",
|
|
374
374
|
expected: "(boolean | undefined)",
|
|
375
|
-
value: input.
|
|
375
|
+
value: input.userNotificationsEnabled
|
|
376
376
|
}, errorFactory));
|
|
377
377
|
const $au0 = (input, _path, _exceptionable = true) => (() => {
|
|
378
378
|
if ("file" === input.type)
|
|
@@ -400,13 +400,13 @@ export const assertGuardConnectionRecord = (input, errorFactory) => {
|
|
|
400
400
|
})(input, "$input", true);
|
|
401
401
|
};
|
|
402
402
|
export const stringifyConnectionRecord = input => {
|
|
403
|
-
const $io0 = input => "file" === input.type && "string" === typeof input.protocol && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && true && (undefined === input.bucket || "string" === typeof input.bucket) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.
|
|
403
|
+
const $io0 = input => "file" === input.type && "string" === typeof input.protocol && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && true && (undefined === input.bucket || "string" === typeof input.bucket) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
|
|
404
404
|
const $io1 = input => "string" === typeof input.content;
|
|
405
|
-
const $io2 = input => "reuters" === input.type && (undefined === input.clientId || "string" === typeof input.clientId) && (undefined === input.clientSecret || "string" === typeof input.clientSecret) && (undefined === input.audience || "string" === typeof input.audience) && (undefined === input.
|
|
406
|
-
const $io3 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem)) && (undefined === input.
|
|
405
|
+
const $io2 = input => "reuters" === input.type && (undefined === input.clientId || "string" === typeof input.clientId) && (undefined === input.clientSecret || "string" === typeof input.clientSecret) && (undefined === input.audience || "string" === typeof input.audience) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
|
|
406
|
+
const $io3 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
|
|
407
407
|
const $string = __typia.json.createStringify.string;
|
|
408
408
|
const $throws = __typia.json.createStringify.throws;
|
|
409
|
-
const $so0 = input => `{${undefined === input.host ? "" : `"host":${undefined !== input.host ? $string(input.host) : undefined},`}${undefined === input.port ? "" : `"port":${undefined !== input.port ? input.port : undefined},`}${undefined === input.ignoreMissing ? "" : `"ignoreMissing":${undefined !== input.ignoreMissing ? input.ignoreMissing : undefined},`}${undefined === input.concurrency ? "" : `"concurrency":${undefined !== input.concurrency ? input.concurrency : undefined},`}${undefined === input.stabilityThreshold ? "" : `"stabilityThreshold":${undefined !== input.stabilityThreshold ? input.stabilityThreshold : undefined},`}${undefined === input.pollInterval ? "" : `"pollInterval":${undefined !== input.pollInterval ? input.pollInterval : undefined},`}${undefined === input.listConcurrency ? "" : `"listConcurrency":${undefined !== input.listConcurrency ? input.listConcurrency : undefined},`}${undefined === input.client || "function" === typeof input.client ? "" : `"client":${undefined !== input.client ? JSON.stringify(input.client) : undefined},`}${undefined === input.bucket ? "" : `"bucket":${undefined !== input.bucket ? $string(input.bucket) : undefined},`}${undefined === input.metafile ? "" : `"metafile":${undefined !== input.metafile ? `{"content":${$string(input.metafile.content)}}` : undefined},`}${undefined === input.
|
|
409
|
+
const $so0 = input => `{${undefined === input.host ? "" : `"host":${undefined !== input.host ? $string(input.host) : undefined},`}${undefined === input.port ? "" : `"port":${undefined !== input.port ? input.port : undefined},`}${undefined === input.ignoreMissing ? "" : `"ignoreMissing":${undefined !== input.ignoreMissing ? input.ignoreMissing : undefined},`}${undefined === input.concurrency ? "" : `"concurrency":${undefined !== input.concurrency ? input.concurrency : undefined},`}${undefined === input.stabilityThreshold ? "" : `"stabilityThreshold":${undefined !== input.stabilityThreshold ? input.stabilityThreshold : undefined},`}${undefined === input.pollInterval ? "" : `"pollInterval":${undefined !== input.pollInterval ? input.pollInterval : undefined},`}${undefined === input.listConcurrency ? "" : `"listConcurrency":${undefined !== input.listConcurrency ? input.listConcurrency : undefined},`}${undefined === input.client || "function" === typeof input.client ? "" : `"client":${undefined !== input.client ? JSON.stringify(input.client) : undefined},`}${undefined === input.bucket ? "" : `"bucket":${undefined !== input.bucket ? $string(input.bucket) : undefined},`}${undefined === input.metafile ? "" : `"metafile":${undefined !== input.metafile ? `{"content":${$string(input.metafile.content)}}` : undefined},`}${undefined === input.userNotificationsEnabled ? "" : `"userNotificationsEnabled":${undefined !== input.userNotificationsEnabled ? input.userNotificationsEnabled : undefined},`}"type":${(() => {
|
|
410
410
|
if ("string" === typeof input.type)
|
|
411
411
|
return $string(input.type);
|
|
412
412
|
if ("string" === typeof input.type)
|
|
@@ -416,7 +416,7 @@ export const stringifyConnectionRecord = input => {
|
|
|
416
416
|
value: input.type
|
|
417
417
|
});
|
|
418
418
|
})()},"protocol":${$string(input.protocol)}}`;
|
|
419
|
-
const $so2 = input => `{${undefined === input.clientId ? "" : `"clientId":${undefined !== input.clientId ? $string(input.clientId) : undefined},`}${undefined === input.clientSecret ? "" : `"clientSecret":${undefined !== input.clientSecret ? $string(input.clientSecret) : undefined},`}${undefined === input.audience ? "" : `"audience":${undefined !== input.audience ? $string(input.audience) : undefined},`}${undefined === input.
|
|
419
|
+
const $so2 = input => `{${undefined === input.clientId ? "" : `"clientId":${undefined !== input.clientId ? $string(input.clientId) : undefined},`}${undefined === input.clientSecret ? "" : `"clientSecret":${undefined !== input.clientSecret ? $string(input.clientSecret) : undefined},`}${undefined === input.audience ? "" : `"audience":${undefined !== input.audience ? $string(input.audience) : undefined},`}${undefined === input.userNotificationsEnabled ? "" : `"userNotificationsEnabled":${undefined !== input.userNotificationsEnabled ? input.userNotificationsEnabled : undefined},`}"type":${(() => {
|
|
420
420
|
if ("string" === typeof input.type)
|
|
421
421
|
return $string(input.type);
|
|
422
422
|
if ("string" === typeof input.type)
|
|
@@ -426,7 +426,7 @@ export const stringifyConnectionRecord = input => {
|
|
|
426
426
|
value: input.type
|
|
427
427
|
});
|
|
428
428
|
})()}}`;
|
|
429
|
-
const $so3 = input => `{${undefined === input.grantedScopes ? "" : `"grantedScopes":${undefined !== input.grantedScopes ? `[${input.grantedScopes.map(elem => $string(elem)).join(",")}]` : undefined},`}${undefined === input.
|
|
429
|
+
const $so3 = input => `{${undefined === input.grantedScopes ? "" : `"grantedScopes":${undefined !== input.grantedScopes ? `[${input.grantedScopes.map(elem => $string(elem)).join(",")}]` : undefined},`}${undefined === input.userNotificationsEnabled ? "" : `"userNotificationsEnabled":${undefined !== input.userNotificationsEnabled ? input.userNotificationsEnabled : undefined},`}"type":${(() => {
|
|
430
430
|
if ("string" === typeof input.type)
|
|
431
431
|
return $string(input.type);
|
|
432
432
|
if ("string" === typeof input.type)
|
|
@@ -453,10 +453,10 @@ export const stringifyConnectionRecord = input => {
|
|
|
453
453
|
};
|
|
454
454
|
export const assertStringifyConnectionRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
455
455
|
const __is = input => {
|
|
456
|
-
const $io0 = input => "file" === input.type && "string" === typeof input.protocol && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "number" === typeof input.port && !Number.isNaN(input.port)) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency && !Number.isNaN(input.concurrency)) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold && !Number.isNaN(input.stabilityThreshold)) && (undefined === input.pollInterval || "number" === typeof input.pollInterval && !Number.isNaN(input.pollInterval)) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency && !Number.isNaN(input.listConcurrency)) && true && (undefined === input.bucket || "string" === typeof input.bucket) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.
|
|
456
|
+
const $io0 = input => "file" === input.type && "string" === typeof input.protocol && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "number" === typeof input.port && !Number.isNaN(input.port)) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency && !Number.isNaN(input.concurrency)) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold && !Number.isNaN(input.stabilityThreshold)) && (undefined === input.pollInterval || "number" === typeof input.pollInterval && !Number.isNaN(input.pollInterval)) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency && !Number.isNaN(input.listConcurrency)) && true && (undefined === input.bucket || "string" === typeof input.bucket) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
|
|
457
457
|
const $io1 = input => "string" === typeof input.content;
|
|
458
|
-
const $io2 = input => "reuters" === input.type && (undefined === input.clientId || "string" === typeof input.clientId) && (undefined === input.clientSecret || "string" === typeof input.clientSecret) && (undefined === input.audience || "string" === typeof input.audience) && (undefined === input.
|
|
459
|
-
const $io3 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem)) && (undefined === input.
|
|
458
|
+
const $io2 = input => "reuters" === input.type && (undefined === input.clientId || "string" === typeof input.clientId) && (undefined === input.clientSecret || "string" === typeof input.clientSecret) && (undefined === input.audience || "string" === typeof input.audience) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
|
|
459
|
+
const $io3 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
|
|
460
460
|
const $iu0 = input => (() => {
|
|
461
461
|
if ("file" === input.type)
|
|
462
462
|
return $io0(input);
|
|
@@ -520,10 +520,10 @@ export const assertStringifyConnectionRecord = (input, errorFactory) => { const
|
|
|
520
520
|
path: _path + ".metafile",
|
|
521
521
|
expected: "(__type | undefined)",
|
|
522
522
|
value: input.metafile
|
|
523
|
-
}, errorFactory)) && (undefined === input.
|
|
524
|
-
path: _path + ".
|
|
523
|
+
}, errorFactory)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled || $guard(_exceptionable, {
|
|
524
|
+
path: _path + ".userNotificationsEnabled",
|
|
525
525
|
expected: "(boolean | undefined)",
|
|
526
|
-
value: input.
|
|
526
|
+
value: input.userNotificationsEnabled
|
|
527
527
|
}, errorFactory));
|
|
528
528
|
const $ao1 = (input, _path, _exceptionable = true) => "string" === typeof input.content || $guard(_exceptionable, {
|
|
529
529
|
path: _path + ".content",
|
|
@@ -546,10 +546,10 @@ export const assertStringifyConnectionRecord = (input, errorFactory) => { const
|
|
|
546
546
|
path: _path + ".audience",
|
|
547
547
|
expected: "(string | undefined)",
|
|
548
548
|
value: input.audience
|
|
549
|
-
}, errorFactory)) && (undefined === input.
|
|
550
|
-
path: _path + ".
|
|
549
|
+
}, errorFactory)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled || $guard(_exceptionable, {
|
|
550
|
+
path: _path + ".userNotificationsEnabled",
|
|
551
551
|
expected: "(boolean | undefined)",
|
|
552
|
-
value: input.
|
|
552
|
+
value: input.userNotificationsEnabled
|
|
553
553
|
}, errorFactory));
|
|
554
554
|
const $ao3 = (input, _path, _exceptionable = true) => ("facebook" === input.type || $guard(_exceptionable, {
|
|
555
555
|
path: _path + ".type",
|
|
@@ -567,10 +567,10 @@ export const assertStringifyConnectionRecord = (input, errorFactory) => { const
|
|
|
567
567
|
path: _path + ".grantedScopes",
|
|
568
568
|
expected: "(Array<string> | undefined)",
|
|
569
569
|
value: input.grantedScopes
|
|
570
|
-
}, errorFactory)) && (undefined === input.
|
|
571
|
-
path: _path + ".
|
|
570
|
+
}, errorFactory)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled || $guard(_exceptionable, {
|
|
571
|
+
path: _path + ".userNotificationsEnabled",
|
|
572
572
|
expected: "(boolean | undefined)",
|
|
573
|
-
value: input.
|
|
573
|
+
value: input.userNotificationsEnabled
|
|
574
574
|
}, errorFactory));
|
|
575
575
|
const $au0 = (input, _path, _exceptionable = true) => (() => {
|
|
576
576
|
if ("file" === input.type)
|
|
@@ -598,13 +598,13 @@ export const assertStringifyConnectionRecord = (input, errorFactory) => { const
|
|
|
598
598
|
})(input, "$input", true);
|
|
599
599
|
return input;
|
|
600
600
|
}; const stringify = input => {
|
|
601
|
-
const $io0 = input => "file" === input.type && "string" === typeof input.protocol && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && true && (undefined === input.bucket || "string" === typeof input.bucket) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.
|
|
601
|
+
const $io0 = input => "file" === input.type && "string" === typeof input.protocol && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && true && (undefined === input.bucket || "string" === typeof input.bucket) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
|
|
602
602
|
const $io1 = input => "string" === typeof input.content;
|
|
603
|
-
const $io2 = input => "reuters" === input.type && (undefined === input.clientId || "string" === typeof input.clientId) && (undefined === input.clientSecret || "string" === typeof input.clientSecret) && (undefined === input.audience || "string" === typeof input.audience) && (undefined === input.
|
|
604
|
-
const $io3 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem)) && (undefined === input.
|
|
603
|
+
const $io2 = input => "reuters" === input.type && (undefined === input.clientId || "string" === typeof input.clientId) && (undefined === input.clientSecret || "string" === typeof input.clientSecret) && (undefined === input.audience || "string" === typeof input.audience) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
|
|
604
|
+
const $io3 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
|
|
605
605
|
const $string = __typia.json.createAssertStringify.string;
|
|
606
606
|
const $throws = __typia.json.createAssertStringify.throws;
|
|
607
|
-
const $so0 = input => `{${undefined === input.host ? "" : `"host":${undefined !== input.host ? $string(input.host) : undefined},`}${undefined === input.port ? "" : `"port":${undefined !== input.port ? input.port : undefined},`}${undefined === input.ignoreMissing ? "" : `"ignoreMissing":${undefined !== input.ignoreMissing ? input.ignoreMissing : undefined},`}${undefined === input.concurrency ? "" : `"concurrency":${undefined !== input.concurrency ? input.concurrency : undefined},`}${undefined === input.stabilityThreshold ? "" : `"stabilityThreshold":${undefined !== input.stabilityThreshold ? input.stabilityThreshold : undefined},`}${undefined === input.pollInterval ? "" : `"pollInterval":${undefined !== input.pollInterval ? input.pollInterval : undefined},`}${undefined === input.listConcurrency ? "" : `"listConcurrency":${undefined !== input.listConcurrency ? input.listConcurrency : undefined},`}${undefined === input.client || "function" === typeof input.client ? "" : `"client":${undefined !== input.client ? JSON.stringify(input.client) : undefined},`}${undefined === input.bucket ? "" : `"bucket":${undefined !== input.bucket ? $string(input.bucket) : undefined},`}${undefined === input.metafile ? "" : `"metafile":${undefined !== input.metafile ? `{"content":${$string(input.metafile.content)}}` : undefined},`}${undefined === input.
|
|
607
|
+
const $so0 = input => `{${undefined === input.host ? "" : `"host":${undefined !== input.host ? $string(input.host) : undefined},`}${undefined === input.port ? "" : `"port":${undefined !== input.port ? input.port : undefined},`}${undefined === input.ignoreMissing ? "" : `"ignoreMissing":${undefined !== input.ignoreMissing ? input.ignoreMissing : undefined},`}${undefined === input.concurrency ? "" : `"concurrency":${undefined !== input.concurrency ? input.concurrency : undefined},`}${undefined === input.stabilityThreshold ? "" : `"stabilityThreshold":${undefined !== input.stabilityThreshold ? input.stabilityThreshold : undefined},`}${undefined === input.pollInterval ? "" : `"pollInterval":${undefined !== input.pollInterval ? input.pollInterval : undefined},`}${undefined === input.listConcurrency ? "" : `"listConcurrency":${undefined !== input.listConcurrency ? input.listConcurrency : undefined},`}${undefined === input.client || "function" === typeof input.client ? "" : `"client":${undefined !== input.client ? JSON.stringify(input.client) : undefined},`}${undefined === input.bucket ? "" : `"bucket":${undefined !== input.bucket ? $string(input.bucket) : undefined},`}${undefined === input.metafile ? "" : `"metafile":${undefined !== input.metafile ? `{"content":${$string(input.metafile.content)}}` : undefined},`}${undefined === input.userNotificationsEnabled ? "" : `"userNotificationsEnabled":${undefined !== input.userNotificationsEnabled ? input.userNotificationsEnabled : undefined},`}"type":${(() => {
|
|
608
608
|
if ("string" === typeof input.type)
|
|
609
609
|
return $string(input.type);
|
|
610
610
|
if ("string" === typeof input.type)
|
|
@@ -614,7 +614,7 @@ export const assertStringifyConnectionRecord = (input, errorFactory) => { const
|
|
|
614
614
|
value: input.type
|
|
615
615
|
});
|
|
616
616
|
})()},"protocol":${$string(input.protocol)}}`;
|
|
617
|
-
const $so2 = input => `{${undefined === input.clientId ? "" : `"clientId":${undefined !== input.clientId ? $string(input.clientId) : undefined},`}${undefined === input.clientSecret ? "" : `"clientSecret":${undefined !== input.clientSecret ? $string(input.clientSecret) : undefined},`}${undefined === input.audience ? "" : `"audience":${undefined !== input.audience ? $string(input.audience) : undefined},`}${undefined === input.
|
|
617
|
+
const $so2 = input => `{${undefined === input.clientId ? "" : `"clientId":${undefined !== input.clientId ? $string(input.clientId) : undefined},`}${undefined === input.clientSecret ? "" : `"clientSecret":${undefined !== input.clientSecret ? $string(input.clientSecret) : undefined},`}${undefined === input.audience ? "" : `"audience":${undefined !== input.audience ? $string(input.audience) : undefined},`}${undefined === input.userNotificationsEnabled ? "" : `"userNotificationsEnabled":${undefined !== input.userNotificationsEnabled ? input.userNotificationsEnabled : undefined},`}"type":${(() => {
|
|
618
618
|
if ("string" === typeof input.type)
|
|
619
619
|
return $string(input.type);
|
|
620
620
|
if ("string" === typeof input.type)
|
|
@@ -624,7 +624,7 @@ export const assertStringifyConnectionRecord = (input, errorFactory) => { const
|
|
|
624
624
|
value: input.type
|
|
625
625
|
});
|
|
626
626
|
})()}}`;
|
|
627
|
-
const $so3 = input => `{${undefined === input.grantedScopes ? "" : `"grantedScopes":${undefined !== input.grantedScopes ? `[${input.grantedScopes.map(elem => $string(elem)).join(",")}]` : undefined},`}${undefined === input.
|
|
627
|
+
const $so3 = input => `{${undefined === input.grantedScopes ? "" : `"grantedScopes":${undefined !== input.grantedScopes ? `[${input.grantedScopes.map(elem => $string(elem)).join(",")}]` : undefined},`}${undefined === input.userNotificationsEnabled ? "" : `"userNotificationsEnabled":${undefined !== input.userNotificationsEnabled ? input.userNotificationsEnabled : undefined},`}"type":${(() => {
|
|
628
628
|
if ("string" === typeof input.type)
|
|
629
629
|
return $string(input.type);
|
|
630
630
|
if ("string" === typeof input.type)
|
|
@@ -650,12 +650,12 @@ export const assertStringifyConnectionRecord = (input, errorFactory) => { const
|
|
|
650
650
|
return $su0(input);
|
|
651
651
|
}; return stringify(assert(input, errorFactory)); };
|
|
652
652
|
export const isConnectionRecordCommon = input => {
|
|
653
|
-
const $io0 = input => "string" === typeof input.type && (undefined === input.
|
|
653
|
+
const $io0 = input => "string" === typeof input.type && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
|
|
654
654
|
return "object" === typeof input && null !== input && $io0(input);
|
|
655
655
|
};
|
|
656
656
|
export const assertConnectionRecordCommon = (input, errorFactory) => {
|
|
657
657
|
const __is = input => {
|
|
658
|
-
const $io0 = input => "string" === typeof input.type && (undefined === input.
|
|
658
|
+
const $io0 = input => "string" === typeof input.type && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
|
|
659
659
|
return "object" === typeof input && null !== input && $io0(input);
|
|
660
660
|
};
|
|
661
661
|
if (false === __is(input))
|
|
@@ -665,10 +665,10 @@ export const assertConnectionRecordCommon = (input, errorFactory) => {
|
|
|
665
665
|
path: _path + ".type",
|
|
666
666
|
expected: "string",
|
|
667
667
|
value: input.type
|
|
668
|
-
}, errorFactory)) && (undefined === input.
|
|
669
|
-
path: _path + ".
|
|
668
|
+
}, errorFactory)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled || $guard(_exceptionable, {
|
|
669
|
+
path: _path + ".userNotificationsEnabled",
|
|
670
670
|
expected: "(boolean | undefined)",
|
|
671
|
-
value: input.
|
|
671
|
+
value: input.userNotificationsEnabled
|
|
672
672
|
}, errorFactory));
|
|
673
673
|
return ("object" === typeof input && null !== input || $guard(true, {
|
|
674
674
|
path: _path + "",
|
|
@@ -687,7 +687,7 @@ export const randomConnectionRecordCommon = generator => {
|
|
|
687
687
|
const $pick = __typia.createRandom.pick;
|
|
688
688
|
const $ro0 = (_recursive = false, _depth = 0) => ({
|
|
689
689
|
type: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
690
|
-
|
|
690
|
+
userNotificationsEnabled: $pick([
|
|
691
691
|
() => undefined,
|
|
692
692
|
() => (generator?.boolean ?? $generator.boolean)()
|
|
693
693
|
])()
|
|
@@ -696,7 +696,7 @@ export const randomConnectionRecordCommon = generator => {
|
|
|
696
696
|
};
|
|
697
697
|
export const assertGuardConnectionRecordCommon = (input, errorFactory) => {
|
|
698
698
|
const __is = input => {
|
|
699
|
-
const $io0 = input => "string" === typeof input.type && (undefined === input.
|
|
699
|
+
const $io0 = input => "string" === typeof input.type && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
|
|
700
700
|
return "object" === typeof input && null !== input && $io0(input);
|
|
701
701
|
};
|
|
702
702
|
if (false === __is(input))
|
|
@@ -706,10 +706,10 @@ export const assertGuardConnectionRecordCommon = (input, errorFactory) => {
|
|
|
706
706
|
path: _path + ".type",
|
|
707
707
|
expected: "string",
|
|
708
708
|
value: input.type
|
|
709
|
-
}, errorFactory)) && (undefined === input.
|
|
710
|
-
path: _path + ".
|
|
709
|
+
}, errorFactory)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled || $guard(_exceptionable, {
|
|
710
|
+
path: _path + ".userNotificationsEnabled",
|
|
711
711
|
expected: "(boolean | undefined)",
|
|
712
|
-
value: input.
|
|
712
|
+
value: input.userNotificationsEnabled
|
|
713
713
|
}, errorFactory));
|
|
714
714
|
return ("object" === typeof input && null !== input || $guard(true, {
|
|
715
715
|
path: _path + "",
|
|
@@ -724,12 +724,12 @@ export const assertGuardConnectionRecordCommon = (input, errorFactory) => {
|
|
|
724
724
|
};
|
|
725
725
|
export const stringifyConnectionRecordCommon = input => {
|
|
726
726
|
const $string = __typia.json.createStringify.string;
|
|
727
|
-
const $so0 = input => `{${undefined === input.
|
|
727
|
+
const $so0 = input => `{${undefined === input.userNotificationsEnabled ? "" : `"userNotificationsEnabled":${undefined !== input.userNotificationsEnabled ? input.userNotificationsEnabled : undefined},`}"type":${$string(input.type)}}`;
|
|
728
728
|
return $so0(input);
|
|
729
729
|
};
|
|
730
730
|
export const assertStringifyConnectionRecordCommon = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
731
731
|
const __is = input => {
|
|
732
|
-
const $io0 = input => "string" === typeof input.type && (undefined === input.
|
|
732
|
+
const $io0 = input => "string" === typeof input.type && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
|
|
733
733
|
return "object" === typeof input && null !== input && $io0(input);
|
|
734
734
|
};
|
|
735
735
|
if (false === __is(input))
|
|
@@ -739,10 +739,10 @@ export const assertStringifyConnectionRecordCommon = (input, errorFactory) => {
|
|
|
739
739
|
path: _path + ".type",
|
|
740
740
|
expected: "string",
|
|
741
741
|
value: input.type
|
|
742
|
-
}, errorFactory)) && (undefined === input.
|
|
743
|
-
path: _path + ".
|
|
742
|
+
}, errorFactory)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled || $guard(_exceptionable, {
|
|
743
|
+
path: _path + ".userNotificationsEnabled",
|
|
744
744
|
expected: "(boolean | undefined)",
|
|
745
|
-
value: input.
|
|
745
|
+
value: input.userNotificationsEnabled
|
|
746
746
|
}, errorFactory));
|
|
747
747
|
return ("object" === typeof input && null !== input || $guard(true, {
|
|
748
748
|
path: _path + "",
|
|
@@ -757,16 +757,16 @@ export const assertStringifyConnectionRecordCommon = (input, errorFactory) => {
|
|
|
757
757
|
return input;
|
|
758
758
|
}; const stringify = input => {
|
|
759
759
|
const $string = __typia.json.createAssertStringify.string;
|
|
760
|
-
const $so0 = input => `{${undefined === input.
|
|
760
|
+
const $so0 = input => `{${undefined === input.userNotificationsEnabled ? "" : `"userNotificationsEnabled":${undefined !== input.userNotificationsEnabled ? input.userNotificationsEnabled : undefined},`}"type":${$string(input.type)}}`;
|
|
761
761
|
return $so0(input);
|
|
762
762
|
}; return stringify(assert(input, errorFactory)); };
|
|
763
763
|
export const isReutersConnectionRecord = input => {
|
|
764
|
-
const $io0 = input => "reuters" === input.type && (undefined === input.clientId || "string" === typeof input.clientId) && (undefined === input.clientSecret || "string" === typeof input.clientSecret) && (undefined === input.audience || "string" === typeof input.audience) && (undefined === input.
|
|
764
|
+
const $io0 = input => "reuters" === input.type && (undefined === input.clientId || "string" === typeof input.clientId) && (undefined === input.clientSecret || "string" === typeof input.clientSecret) && (undefined === input.audience || "string" === typeof input.audience) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
|
|
765
765
|
return "object" === typeof input && null !== input && $io0(input);
|
|
766
766
|
};
|
|
767
767
|
export const assertReutersConnectionRecord = (input, errorFactory) => {
|
|
768
768
|
const __is = input => {
|
|
769
|
-
const $io0 = input => "reuters" === input.type && (undefined === input.clientId || "string" === typeof input.clientId) && (undefined === input.clientSecret || "string" === typeof input.clientSecret) && (undefined === input.audience || "string" === typeof input.audience) && (undefined === input.
|
|
769
|
+
const $io0 = input => "reuters" === input.type && (undefined === input.clientId || "string" === typeof input.clientId) && (undefined === input.clientSecret || "string" === typeof input.clientSecret) && (undefined === input.audience || "string" === typeof input.audience) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
|
|
770
770
|
return "object" === typeof input && null !== input && $io0(input);
|
|
771
771
|
};
|
|
772
772
|
if (false === __is(input))
|
|
@@ -788,10 +788,10 @@ export const assertReutersConnectionRecord = (input, errorFactory) => {
|
|
|
788
788
|
path: _path + ".audience",
|
|
789
789
|
expected: "(string | undefined)",
|
|
790
790
|
value: input.audience
|
|
791
|
-
}, errorFactory)) && (undefined === input.
|
|
792
|
-
path: _path + ".
|
|
791
|
+
}, errorFactory)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled || $guard(_exceptionable, {
|
|
792
|
+
path: _path + ".userNotificationsEnabled",
|
|
793
793
|
expected: "(boolean | undefined)",
|
|
794
|
-
value: input.
|
|
794
|
+
value: input.userNotificationsEnabled
|
|
795
795
|
}, errorFactory));
|
|
796
796
|
return ("object" === typeof input && null !== input || $guard(true, {
|
|
797
797
|
path: _path + "",
|
|
@@ -822,7 +822,7 @@ export const randomReutersConnectionRecord = generator => {
|
|
|
822
822
|
() => undefined,
|
|
823
823
|
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
824
824
|
])(),
|
|
825
|
-
|
|
825
|
+
userNotificationsEnabled: $pick([
|
|
826
826
|
() => undefined,
|
|
827
827
|
() => (generator?.boolean ?? $generator.boolean)()
|
|
828
828
|
])()
|
|
@@ -831,7 +831,7 @@ export const randomReutersConnectionRecord = generator => {
|
|
|
831
831
|
};
|
|
832
832
|
export const assertGuardReutersConnectionRecord = (input, errorFactory) => {
|
|
833
833
|
const __is = input => {
|
|
834
|
-
const $io0 = input => "reuters" === input.type && (undefined === input.clientId || "string" === typeof input.clientId) && (undefined === input.clientSecret || "string" === typeof input.clientSecret) && (undefined === input.audience || "string" === typeof input.audience) && (undefined === input.
|
|
834
|
+
const $io0 = input => "reuters" === input.type && (undefined === input.clientId || "string" === typeof input.clientId) && (undefined === input.clientSecret || "string" === typeof input.clientSecret) && (undefined === input.audience || "string" === typeof input.audience) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
|
|
835
835
|
return "object" === typeof input && null !== input && $io0(input);
|
|
836
836
|
};
|
|
837
837
|
if (false === __is(input))
|
|
@@ -853,10 +853,10 @@ export const assertGuardReutersConnectionRecord = (input, errorFactory) => {
|
|
|
853
853
|
path: _path + ".audience",
|
|
854
854
|
expected: "(string | undefined)",
|
|
855
855
|
value: input.audience
|
|
856
|
-
}, errorFactory)) && (undefined === input.
|
|
857
|
-
path: _path + ".
|
|
856
|
+
}, errorFactory)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled || $guard(_exceptionable, {
|
|
857
|
+
path: _path + ".userNotificationsEnabled",
|
|
858
858
|
expected: "(boolean | undefined)",
|
|
859
|
-
value: input.
|
|
859
|
+
value: input.userNotificationsEnabled
|
|
860
860
|
}, errorFactory));
|
|
861
861
|
return ("object" === typeof input && null !== input || $guard(true, {
|
|
862
862
|
path: _path + "",
|
|
@@ -872,7 +872,7 @@ export const assertGuardReutersConnectionRecord = (input, errorFactory) => {
|
|
|
872
872
|
export const stringifyReutersConnectionRecord = input => {
|
|
873
873
|
const $string = __typia.json.createStringify.string;
|
|
874
874
|
const $throws = __typia.json.createStringify.throws;
|
|
875
|
-
const $so0 = input => `{${undefined === input.clientId ? "" : `"clientId":${undefined !== input.clientId ? $string(input.clientId) : undefined},`}${undefined === input.clientSecret ? "" : `"clientSecret":${undefined !== input.clientSecret ? $string(input.clientSecret) : undefined},`}${undefined === input.audience ? "" : `"audience":${undefined !== input.audience ? $string(input.audience) : undefined},`}${undefined === input.
|
|
875
|
+
const $so0 = input => `{${undefined === input.clientId ? "" : `"clientId":${undefined !== input.clientId ? $string(input.clientId) : undefined},`}${undefined === input.clientSecret ? "" : `"clientSecret":${undefined !== input.clientSecret ? $string(input.clientSecret) : undefined},`}${undefined === input.audience ? "" : `"audience":${undefined !== input.audience ? $string(input.audience) : undefined},`}${undefined === input.userNotificationsEnabled ? "" : `"userNotificationsEnabled":${undefined !== input.userNotificationsEnabled ? input.userNotificationsEnabled : undefined},`}"type":${(() => {
|
|
876
876
|
if ("string" === typeof input.type)
|
|
877
877
|
return $string(input.type);
|
|
878
878
|
if ("string" === typeof input.type)
|
|
@@ -886,7 +886,7 @@ export const stringifyReutersConnectionRecord = input => {
|
|
|
886
886
|
};
|
|
887
887
|
export const assertStringifyReutersConnectionRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
888
888
|
const __is = input => {
|
|
889
|
-
const $io0 = input => "reuters" === input.type && (undefined === input.clientId || "string" === typeof input.clientId) && (undefined === input.clientSecret || "string" === typeof input.clientSecret) && (undefined === input.audience || "string" === typeof input.audience) && (undefined === input.
|
|
889
|
+
const $io0 = input => "reuters" === input.type && (undefined === input.clientId || "string" === typeof input.clientId) && (undefined === input.clientSecret || "string" === typeof input.clientSecret) && (undefined === input.audience || "string" === typeof input.audience) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
|
|
890
890
|
return "object" === typeof input && null !== input && $io0(input);
|
|
891
891
|
};
|
|
892
892
|
if (false === __is(input))
|
|
@@ -908,10 +908,10 @@ export const assertStringifyReutersConnectionRecord = (input, errorFactory) => {
|
|
|
908
908
|
path: _path + ".audience",
|
|
909
909
|
expected: "(string | undefined)",
|
|
910
910
|
value: input.audience
|
|
911
|
-
}, errorFactory)) && (undefined === input.
|
|
912
|
-
path: _path + ".
|
|
911
|
+
}, errorFactory)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled || $guard(_exceptionable, {
|
|
912
|
+
path: _path + ".userNotificationsEnabled",
|
|
913
913
|
expected: "(boolean | undefined)",
|
|
914
|
-
value: input.
|
|
914
|
+
value: input.userNotificationsEnabled
|
|
915
915
|
}, errorFactory));
|
|
916
916
|
return ("object" === typeof input && null !== input || $guard(true, {
|
|
917
917
|
path: _path + "",
|
|
@@ -927,7 +927,7 @@ export const assertStringifyReutersConnectionRecord = (input, errorFactory) => {
|
|
|
927
927
|
}; const stringify = input => {
|
|
928
928
|
const $string = __typia.json.createAssertStringify.string;
|
|
929
929
|
const $throws = __typia.json.createAssertStringify.throws;
|
|
930
|
-
const $so0 = input => `{${undefined === input.clientId ? "" : `"clientId":${undefined !== input.clientId ? $string(input.clientId) : undefined},`}${undefined === input.clientSecret ? "" : `"clientSecret":${undefined !== input.clientSecret ? $string(input.clientSecret) : undefined},`}${undefined === input.audience ? "" : `"audience":${undefined !== input.audience ? $string(input.audience) : undefined},`}${undefined === input.
|
|
930
|
+
const $so0 = input => `{${undefined === input.clientId ? "" : `"clientId":${undefined !== input.clientId ? $string(input.clientId) : undefined},`}${undefined === input.clientSecret ? "" : `"clientSecret":${undefined !== input.clientSecret ? $string(input.clientSecret) : undefined},`}${undefined === input.audience ? "" : `"audience":${undefined !== input.audience ? $string(input.audience) : undefined},`}${undefined === input.userNotificationsEnabled ? "" : `"userNotificationsEnabled":${undefined !== input.userNotificationsEnabled ? input.userNotificationsEnabled : undefined},`}"type":${(() => {
|
|
931
931
|
if ("string" === typeof input.type)
|
|
932
932
|
return $string(input.type);
|
|
933
933
|
if ("string" === typeof input.type)
|
|
@@ -940,12 +940,12 @@ export const assertStringifyReutersConnectionRecord = (input, errorFactory) => {
|
|
|
940
940
|
return $so0(input);
|
|
941
941
|
}; return stringify(assert(input, errorFactory)); };
|
|
942
942
|
export const isFacebookConnectionRecord = input => {
|
|
943
|
-
const $io0 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem)) && (undefined === input.
|
|
943
|
+
const $io0 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
|
|
944
944
|
return "object" === typeof input && null !== input && $io0(input);
|
|
945
945
|
};
|
|
946
946
|
export const assertFacebookConnectionRecord = (input, errorFactory) => {
|
|
947
947
|
const __is = input => {
|
|
948
|
-
const $io0 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem)) && (undefined === input.
|
|
948
|
+
const $io0 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
|
|
949
949
|
return "object" === typeof input && null !== input && $io0(input);
|
|
950
950
|
};
|
|
951
951
|
if (false === __is(input))
|
|
@@ -967,10 +967,10 @@ export const assertFacebookConnectionRecord = (input, errorFactory) => {
|
|
|
967
967
|
path: _path + ".grantedScopes",
|
|
968
968
|
expected: "(Array<string> | undefined)",
|
|
969
969
|
value: input.grantedScopes
|
|
970
|
-
}, errorFactory)) && (undefined === input.
|
|
971
|
-
path: _path + ".
|
|
970
|
+
}, errorFactory)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled || $guard(_exceptionable, {
|
|
971
|
+
path: _path + ".userNotificationsEnabled",
|
|
972
972
|
expected: "(boolean | undefined)",
|
|
973
|
-
value: input.
|
|
973
|
+
value: input.userNotificationsEnabled
|
|
974
974
|
}, errorFactory));
|
|
975
975
|
return ("object" === typeof input && null !== input || $guard(true, {
|
|
976
976
|
path: _path + "",
|
|
@@ -993,7 +993,7 @@ export const randomFacebookConnectionRecord = generator => {
|
|
|
993
993
|
() => undefined,
|
|
994
994
|
() => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
|
|
995
995
|
])(),
|
|
996
|
-
|
|
996
|
+
userNotificationsEnabled: $pick([
|
|
997
997
|
() => undefined,
|
|
998
998
|
() => (generator?.boolean ?? $generator.boolean)()
|
|
999
999
|
])()
|
|
@@ -1002,7 +1002,7 @@ export const randomFacebookConnectionRecord = generator => {
|
|
|
1002
1002
|
};
|
|
1003
1003
|
export const assertGuardFacebookConnectionRecord = (input, errorFactory) => {
|
|
1004
1004
|
const __is = input => {
|
|
1005
|
-
const $io0 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem)) && (undefined === input.
|
|
1005
|
+
const $io0 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
|
|
1006
1006
|
return "object" === typeof input && null !== input && $io0(input);
|
|
1007
1007
|
};
|
|
1008
1008
|
if (false === __is(input))
|
|
@@ -1024,10 +1024,10 @@ export const assertGuardFacebookConnectionRecord = (input, errorFactory) => {
|
|
|
1024
1024
|
path: _path + ".grantedScopes",
|
|
1025
1025
|
expected: "(Array<string> | undefined)",
|
|
1026
1026
|
value: input.grantedScopes
|
|
1027
|
-
}, errorFactory)) && (undefined === input.
|
|
1028
|
-
path: _path + ".
|
|
1027
|
+
}, errorFactory)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled || $guard(_exceptionable, {
|
|
1028
|
+
path: _path + ".userNotificationsEnabled",
|
|
1029
1029
|
expected: "(boolean | undefined)",
|
|
1030
|
-
value: input.
|
|
1030
|
+
value: input.userNotificationsEnabled
|
|
1031
1031
|
}, errorFactory));
|
|
1032
1032
|
return ("object" === typeof input && null !== input || $guard(true, {
|
|
1033
1033
|
path: _path + "",
|
|
@@ -1043,7 +1043,7 @@ export const assertGuardFacebookConnectionRecord = (input, errorFactory) => {
|
|
|
1043
1043
|
export const stringifyFacebookConnectionRecord = input => {
|
|
1044
1044
|
const $string = __typia.json.createStringify.string;
|
|
1045
1045
|
const $throws = __typia.json.createStringify.throws;
|
|
1046
|
-
const $so0 = input => `{${undefined === input.grantedScopes ? "" : `"grantedScopes":${undefined !== input.grantedScopes ? `[${input.grantedScopes.map(elem => $string(elem)).join(",")}]` : undefined},`}${undefined === input.
|
|
1046
|
+
const $so0 = input => `{${undefined === input.grantedScopes ? "" : `"grantedScopes":${undefined !== input.grantedScopes ? `[${input.grantedScopes.map(elem => $string(elem)).join(",")}]` : undefined},`}${undefined === input.userNotificationsEnabled ? "" : `"userNotificationsEnabled":${undefined !== input.userNotificationsEnabled ? input.userNotificationsEnabled : undefined},`}"type":${(() => {
|
|
1047
1047
|
if ("string" === typeof input.type)
|
|
1048
1048
|
return $string(input.type);
|
|
1049
1049
|
if ("string" === typeof input.type)
|
|
@@ -1057,7 +1057,7 @@ export const stringifyFacebookConnectionRecord = input => {
|
|
|
1057
1057
|
};
|
|
1058
1058
|
export const assertStringifyFacebookConnectionRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
1059
1059
|
const __is = input => {
|
|
1060
|
-
const $io0 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem)) && (undefined === input.
|
|
1060
|
+
const $io0 = input => "facebook" === input.type && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
|
|
1061
1061
|
return "object" === typeof input && null !== input && $io0(input);
|
|
1062
1062
|
};
|
|
1063
1063
|
if (false === __is(input))
|
|
@@ -1079,10 +1079,10 @@ export const assertStringifyFacebookConnectionRecord = (input, errorFactory) =>
|
|
|
1079
1079
|
path: _path + ".grantedScopes",
|
|
1080
1080
|
expected: "(Array<string> | undefined)",
|
|
1081
1081
|
value: input.grantedScopes
|
|
1082
|
-
}, errorFactory)) && (undefined === input.
|
|
1083
|
-
path: _path + ".
|
|
1082
|
+
}, errorFactory)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled || $guard(_exceptionable, {
|
|
1083
|
+
path: _path + ".userNotificationsEnabled",
|
|
1084
1084
|
expected: "(boolean | undefined)",
|
|
1085
|
-
value: input.
|
|
1085
|
+
value: input.userNotificationsEnabled
|
|
1086
1086
|
}, errorFactory));
|
|
1087
1087
|
return ("object" === typeof input && null !== input || $guard(true, {
|
|
1088
1088
|
path: _path + "",
|
|
@@ -1098,7 +1098,7 @@ export const assertStringifyFacebookConnectionRecord = (input, errorFactory) =>
|
|
|
1098
1098
|
}; const stringify = input => {
|
|
1099
1099
|
const $string = __typia.json.createAssertStringify.string;
|
|
1100
1100
|
const $throws = __typia.json.createAssertStringify.throws;
|
|
1101
|
-
const $so0 = input => `{${undefined === input.grantedScopes ? "" : `"grantedScopes":${undefined !== input.grantedScopes ? `[${input.grantedScopes.map(elem => $string(elem)).join(",")}]` : undefined},`}${undefined === input.
|
|
1101
|
+
const $so0 = input => `{${undefined === input.grantedScopes ? "" : `"grantedScopes":${undefined !== input.grantedScopes ? `[${input.grantedScopes.map(elem => $string(elem)).join(",")}]` : undefined},`}${undefined === input.userNotificationsEnabled ? "" : `"userNotificationsEnabled":${undefined !== input.userNotificationsEnabled ? input.userNotificationsEnabled : undefined},`}"type":${(() => {
|
|
1102
1102
|
if ("string" === typeof input.type)
|
|
1103
1103
|
return $string(input.type);
|
|
1104
1104
|
if ("string" === typeof input.type)
|
|
@@ -1111,13 +1111,13 @@ export const assertStringifyFacebookConnectionRecord = (input, errorFactory) =>
|
|
|
1111
1111
|
return $so0(input);
|
|
1112
1112
|
}; return stringify(assert(input, errorFactory)); };
|
|
1113
1113
|
export const isFilePublishConnectionRecord = input => {
|
|
1114
|
-
const $io0 = input => "file" === input.type && "string" === typeof input.protocol && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && true && (undefined === input.bucket || "string" === typeof input.bucket) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.
|
|
1114
|
+
const $io0 = input => "file" === input.type && "string" === typeof input.protocol && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && true && (undefined === input.bucket || "string" === typeof input.bucket) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
|
|
1115
1115
|
const $io1 = input => "string" === typeof input.content;
|
|
1116
1116
|
return "object" === typeof input && null !== input && $io0(input);
|
|
1117
1117
|
};
|
|
1118
1118
|
export const assertFilePublishConnectionRecord = (input, errorFactory) => {
|
|
1119
1119
|
const __is = input => {
|
|
1120
|
-
const $io0 = input => "file" === input.type && "string" === typeof input.protocol && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && true && (undefined === input.bucket || "string" === typeof input.bucket) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.
|
|
1120
|
+
const $io0 = input => "file" === input.type && "string" === typeof input.protocol && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && true && (undefined === input.bucket || "string" === typeof input.bucket) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
|
|
1121
1121
|
const $io1 = input => "string" === typeof input.content;
|
|
1122
1122
|
return "object" === typeof input && null !== input && $io0(input);
|
|
1123
1123
|
};
|
|
@@ -1172,10 +1172,10 @@ export const assertFilePublishConnectionRecord = (input, errorFactory) => {
|
|
|
1172
1172
|
path: _path + ".metafile",
|
|
1173
1173
|
expected: "(__type | undefined)",
|
|
1174
1174
|
value: input.metafile
|
|
1175
|
-
}, errorFactory)) && (undefined === input.
|
|
1176
|
-
path: _path + ".
|
|
1175
|
+
}, errorFactory)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled || $guard(_exceptionable, {
|
|
1176
|
+
path: _path + ".userNotificationsEnabled",
|
|
1177
1177
|
expected: "(boolean | undefined)",
|
|
1178
|
-
value: input.
|
|
1178
|
+
value: input.userNotificationsEnabled
|
|
1179
1179
|
}, errorFactory));
|
|
1180
1180
|
const $ao1 = (input, _path, _exceptionable = true) => "string" === typeof input.content || $guard(_exceptionable, {
|
|
1181
1181
|
path: _path + ".content",
|
|
@@ -1240,7 +1240,7 @@ export const randomFilePublishConnectionRecord = generator => {
|
|
|
1240
1240
|
() => undefined,
|
|
1241
1241
|
() => $ro1(_recursive, _recursive ? 1 + _depth : _depth)
|
|
1242
1242
|
])(),
|
|
1243
|
-
|
|
1243
|
+
userNotificationsEnabled: $pick([
|
|
1244
1244
|
() => undefined,
|
|
1245
1245
|
() => (generator?.boolean ?? $generator.boolean)()
|
|
1246
1246
|
])()
|
|
@@ -1252,7 +1252,7 @@ export const randomFilePublishConnectionRecord = generator => {
|
|
|
1252
1252
|
};
|
|
1253
1253
|
export const assertGuardFilePublishConnectionRecord = (input, errorFactory) => {
|
|
1254
1254
|
const __is = input => {
|
|
1255
|
-
const $io0 = input => "file" === input.type && "string" === typeof input.protocol && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && true && (undefined === input.bucket || "string" === typeof input.bucket) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.
|
|
1255
|
+
const $io0 = input => "file" === input.type && "string" === typeof input.protocol && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && true && (undefined === input.bucket || "string" === typeof input.bucket) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
|
|
1256
1256
|
const $io1 = input => "string" === typeof input.content;
|
|
1257
1257
|
return "object" === typeof input && null !== input && $io0(input);
|
|
1258
1258
|
};
|
|
@@ -1307,10 +1307,10 @@ export const assertGuardFilePublishConnectionRecord = (input, errorFactory) => {
|
|
|
1307
1307
|
path: _path + ".metafile",
|
|
1308
1308
|
expected: "(__type | undefined)",
|
|
1309
1309
|
value: input.metafile
|
|
1310
|
-
}, errorFactory)) && (undefined === input.
|
|
1311
|
-
path: _path + ".
|
|
1310
|
+
}, errorFactory)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled || $guard(_exceptionable, {
|
|
1311
|
+
path: _path + ".userNotificationsEnabled",
|
|
1312
1312
|
expected: "(boolean | undefined)",
|
|
1313
|
-
value: input.
|
|
1313
|
+
value: input.userNotificationsEnabled
|
|
1314
1314
|
}, errorFactory));
|
|
1315
1315
|
const $ao1 = (input, _path, _exceptionable = true) => "string" === typeof input.content || $guard(_exceptionable, {
|
|
1316
1316
|
path: _path + ".content",
|
|
@@ -1332,7 +1332,7 @@ export const stringifyFilePublishConnectionRecord = input => {
|
|
|
1332
1332
|
const $io1 = input => "string" === typeof input.content;
|
|
1333
1333
|
const $string = __typia.json.createStringify.string;
|
|
1334
1334
|
const $throws = __typia.json.createStringify.throws;
|
|
1335
|
-
const $so0 = input => `{${undefined === input.host ? "" : `"host":${undefined !== input.host ? $string(input.host) : undefined},`}${undefined === input.port ? "" : `"port":${undefined !== input.port ? input.port : undefined},`}${undefined === input.ignoreMissing ? "" : `"ignoreMissing":${undefined !== input.ignoreMissing ? input.ignoreMissing : undefined},`}${undefined === input.concurrency ? "" : `"concurrency":${undefined !== input.concurrency ? input.concurrency : undefined},`}${undefined === input.stabilityThreshold ? "" : `"stabilityThreshold":${undefined !== input.stabilityThreshold ? input.stabilityThreshold : undefined},`}${undefined === input.pollInterval ? "" : `"pollInterval":${undefined !== input.pollInterval ? input.pollInterval : undefined},`}${undefined === input.listConcurrency ? "" : `"listConcurrency":${undefined !== input.listConcurrency ? input.listConcurrency : undefined},`}${undefined === input.client || "function" === typeof input.client ? "" : `"client":${undefined !== input.client ? JSON.stringify(input.client) : undefined},`}${undefined === input.bucket ? "" : `"bucket":${undefined !== input.bucket ? $string(input.bucket) : undefined},`}${undefined === input.metafile ? "" : `"metafile":${undefined !== input.metafile ? `{"content":${$string(input.metafile.content)}}` : undefined},`}${undefined === input.
|
|
1335
|
+
const $so0 = input => `{${undefined === input.host ? "" : `"host":${undefined !== input.host ? $string(input.host) : undefined},`}${undefined === input.port ? "" : `"port":${undefined !== input.port ? input.port : undefined},`}${undefined === input.ignoreMissing ? "" : `"ignoreMissing":${undefined !== input.ignoreMissing ? input.ignoreMissing : undefined},`}${undefined === input.concurrency ? "" : `"concurrency":${undefined !== input.concurrency ? input.concurrency : undefined},`}${undefined === input.stabilityThreshold ? "" : `"stabilityThreshold":${undefined !== input.stabilityThreshold ? input.stabilityThreshold : undefined},`}${undefined === input.pollInterval ? "" : `"pollInterval":${undefined !== input.pollInterval ? input.pollInterval : undefined},`}${undefined === input.listConcurrency ? "" : `"listConcurrency":${undefined !== input.listConcurrency ? input.listConcurrency : undefined},`}${undefined === input.client || "function" === typeof input.client ? "" : `"client":${undefined !== input.client ? JSON.stringify(input.client) : undefined},`}${undefined === input.bucket ? "" : `"bucket":${undefined !== input.bucket ? $string(input.bucket) : undefined},`}${undefined === input.metafile ? "" : `"metafile":${undefined !== input.metafile ? `{"content":${$string(input.metafile.content)}}` : undefined},`}${undefined === input.userNotificationsEnabled ? "" : `"userNotificationsEnabled":${undefined !== input.userNotificationsEnabled ? input.userNotificationsEnabled : undefined},`}"type":${(() => {
|
|
1336
1336
|
if ("string" === typeof input.type)
|
|
1337
1337
|
return $string(input.type);
|
|
1338
1338
|
if ("string" === typeof input.type)
|
|
@@ -1346,7 +1346,7 @@ export const stringifyFilePublishConnectionRecord = input => {
|
|
|
1346
1346
|
};
|
|
1347
1347
|
export const assertStringifyFilePublishConnectionRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
1348
1348
|
const __is = input => {
|
|
1349
|
-
const $io0 = input => "file" === input.type && "string" === typeof input.protocol && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "number" === typeof input.port && !Number.isNaN(input.port)) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency && !Number.isNaN(input.concurrency)) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold && !Number.isNaN(input.stabilityThreshold)) && (undefined === input.pollInterval || "number" === typeof input.pollInterval && !Number.isNaN(input.pollInterval)) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency && !Number.isNaN(input.listConcurrency)) && true && (undefined === input.bucket || "string" === typeof input.bucket) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.
|
|
1349
|
+
const $io0 = input => "file" === input.type && "string" === typeof input.protocol && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "number" === typeof input.port && !Number.isNaN(input.port)) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency && !Number.isNaN(input.concurrency)) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold && !Number.isNaN(input.stabilityThreshold)) && (undefined === input.pollInterval || "number" === typeof input.pollInterval && !Number.isNaN(input.pollInterval)) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency && !Number.isNaN(input.listConcurrency)) && true && (undefined === input.bucket || "string" === typeof input.bucket) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && $io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled);
|
|
1350
1350
|
const $io1 = input => "string" === typeof input.content;
|
|
1351
1351
|
return "object" === typeof input && null !== input && $io0(input);
|
|
1352
1352
|
};
|
|
@@ -1401,10 +1401,10 @@ export const assertStringifyFilePublishConnectionRecord = (input, errorFactory)
|
|
|
1401
1401
|
path: _path + ".metafile",
|
|
1402
1402
|
expected: "(__type | undefined)",
|
|
1403
1403
|
value: input.metafile
|
|
1404
|
-
}, errorFactory)) && (undefined === input.
|
|
1405
|
-
path: _path + ".
|
|
1404
|
+
}, errorFactory)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled || $guard(_exceptionable, {
|
|
1405
|
+
path: _path + ".userNotificationsEnabled",
|
|
1406
1406
|
expected: "(boolean | undefined)",
|
|
1407
|
-
value: input.
|
|
1407
|
+
value: input.userNotificationsEnabled
|
|
1408
1408
|
}, errorFactory));
|
|
1409
1409
|
const $ao1 = (input, _path, _exceptionable = true) => "string" === typeof input.content || $guard(_exceptionable, {
|
|
1410
1410
|
path: _path + ".content",
|
|
@@ -1426,7 +1426,7 @@ export const assertStringifyFilePublishConnectionRecord = (input, errorFactory)
|
|
|
1426
1426
|
const $io1 = input => "string" === typeof input.content;
|
|
1427
1427
|
const $string = __typia.json.createAssertStringify.string;
|
|
1428
1428
|
const $throws = __typia.json.createAssertStringify.throws;
|
|
1429
|
-
const $so0 = input => `{${undefined === input.host ? "" : `"host":${undefined !== input.host ? $string(input.host) : undefined},`}${undefined === input.port ? "" : `"port":${undefined !== input.port ? input.port : undefined},`}${undefined === input.ignoreMissing ? "" : `"ignoreMissing":${undefined !== input.ignoreMissing ? input.ignoreMissing : undefined},`}${undefined === input.concurrency ? "" : `"concurrency":${undefined !== input.concurrency ? input.concurrency : undefined},`}${undefined === input.stabilityThreshold ? "" : `"stabilityThreshold":${undefined !== input.stabilityThreshold ? input.stabilityThreshold : undefined},`}${undefined === input.pollInterval ? "" : `"pollInterval":${undefined !== input.pollInterval ? input.pollInterval : undefined},`}${undefined === input.listConcurrency ? "" : `"listConcurrency":${undefined !== input.listConcurrency ? input.listConcurrency : undefined},`}${undefined === input.client || "function" === typeof input.client ? "" : `"client":${undefined !== input.client ? JSON.stringify(input.client) : undefined},`}${undefined === input.bucket ? "" : `"bucket":${undefined !== input.bucket ? $string(input.bucket) : undefined},`}${undefined === input.metafile ? "" : `"metafile":${undefined !== input.metafile ? `{"content":${$string(input.metafile.content)}}` : undefined},`}${undefined === input.
|
|
1429
|
+
const $so0 = input => `{${undefined === input.host ? "" : `"host":${undefined !== input.host ? $string(input.host) : undefined},`}${undefined === input.port ? "" : `"port":${undefined !== input.port ? input.port : undefined},`}${undefined === input.ignoreMissing ? "" : `"ignoreMissing":${undefined !== input.ignoreMissing ? input.ignoreMissing : undefined},`}${undefined === input.concurrency ? "" : `"concurrency":${undefined !== input.concurrency ? input.concurrency : undefined},`}${undefined === input.stabilityThreshold ? "" : `"stabilityThreshold":${undefined !== input.stabilityThreshold ? input.stabilityThreshold : undefined},`}${undefined === input.pollInterval ? "" : `"pollInterval":${undefined !== input.pollInterval ? input.pollInterval : undefined},`}${undefined === input.listConcurrency ? "" : `"listConcurrency":${undefined !== input.listConcurrency ? input.listConcurrency : undefined},`}${undefined === input.client || "function" === typeof input.client ? "" : `"client":${undefined !== input.client ? JSON.stringify(input.client) : undefined},`}${undefined === input.bucket ? "" : `"bucket":${undefined !== input.bucket ? $string(input.bucket) : undefined},`}${undefined === input.metafile ? "" : `"metafile":${undefined !== input.metafile ? `{"content":${$string(input.metafile.content)}}` : undefined},`}${undefined === input.userNotificationsEnabled ? "" : `"userNotificationsEnabled":${undefined !== input.userNotificationsEnabled ? input.userNotificationsEnabled : undefined},`}"type":${(() => {
|
|
1430
1430
|
if ("string" === typeof input.type)
|
|
1431
1431
|
return $string(input.type);
|
|
1432
1432
|
if ("string" === typeof input.type)
|