@nxtedition/types 23.0.11 → 23.0.13
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/file.d.ts +1 -1
- package/dist/common/file.js +32 -32
- package/dist/common/index.d.ts +1 -0
- package/dist/common/index.js +1 -0
- package/dist/common/settings.d.ts +34 -6
- package/dist/common/settings.js +1399 -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 +5729 -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 +1401 -534
- 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 +1438 -35
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type AssertionGuard as __AssertionGuard } from "typia";
|
|
2
|
+
export type NotificationReason = "mentioned" | "assigned" | "author" | "participated" | "always";
|
|
3
|
+
export declare const isNotificationReason: (input: unknown) => input is NotificationReason;
|
|
4
|
+
export declare const assertNotificationReason: (input: unknown) => NotificationReason;
|
|
5
|
+
export declare const randomNotificationReason: () => NotificationReason;
|
|
6
|
+
export declare const assertGuardNotificationReason: __AssertionGuard<NotificationReason>;
|
|
7
|
+
export declare const stringifyNotificationReason: (input: NotificationReason) => string;
|
|
8
|
+
export declare const assertStringifyNotificationReason: (input: unknown) => string;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import __typia from "typia";
|
|
2
|
+
export const isNotificationReason = input => {
|
|
3
|
+
return "mentioned" === input || "assigned" === input || "author" === input || "participated" === input || "always" === input;
|
|
4
|
+
};
|
|
5
|
+
export const assertNotificationReason = (input, errorFactory) => {
|
|
6
|
+
const __is = input => {
|
|
7
|
+
return "mentioned" === input || "assigned" === input || "author" === input || "participated" === input || "always" === input;
|
|
8
|
+
};
|
|
9
|
+
if (false === __is(input))
|
|
10
|
+
((input, _path, _exceptionable = true) => {
|
|
11
|
+
const $guard = __typia.createAssert.guard;
|
|
12
|
+
return "mentioned" === input || "assigned" === input || "author" === input || "participated" === input || "always" === input || $guard(true, {
|
|
13
|
+
path: _path + "",
|
|
14
|
+
expected: "(\"always\" | \"assigned\" | \"author\" | \"mentioned\" | \"participated\")",
|
|
15
|
+
value: input
|
|
16
|
+
}, errorFactory);
|
|
17
|
+
})(input, "$input", true);
|
|
18
|
+
return input;
|
|
19
|
+
};
|
|
20
|
+
export const randomNotificationReason = generator => {
|
|
21
|
+
const $pick = __typia.createRandom.pick;
|
|
22
|
+
return $pick([
|
|
23
|
+
() => "mentioned",
|
|
24
|
+
() => "assigned",
|
|
25
|
+
() => "author",
|
|
26
|
+
() => "participated",
|
|
27
|
+
() => "always"
|
|
28
|
+
])();
|
|
29
|
+
};
|
|
30
|
+
export const assertGuardNotificationReason = (input, errorFactory) => {
|
|
31
|
+
const __is = input => {
|
|
32
|
+
return "mentioned" === input || "assigned" === input || "author" === input || "participated" === input || "always" === input;
|
|
33
|
+
};
|
|
34
|
+
if (false === __is(input))
|
|
35
|
+
((input, _path, _exceptionable = true) => {
|
|
36
|
+
const $guard = __typia.createAssertGuard.guard;
|
|
37
|
+
return "mentioned" === input || "assigned" === input || "author" === input || "participated" === input || "always" === input || $guard(true, {
|
|
38
|
+
path: _path + "",
|
|
39
|
+
expected: "(\"always\" | \"assigned\" | \"author\" | \"mentioned\" | \"participated\")",
|
|
40
|
+
value: input
|
|
41
|
+
}, errorFactory);
|
|
42
|
+
})(input, "$input", true);
|
|
43
|
+
};
|
|
44
|
+
export const stringifyNotificationReason = input => {
|
|
45
|
+
const $string = __typia.json.createStringify.string;
|
|
46
|
+
const $throws = __typia.json.createStringify.throws;
|
|
47
|
+
return (() => {
|
|
48
|
+
if ("string" === typeof input)
|
|
49
|
+
return $string(input);
|
|
50
|
+
if ("string" === typeof input)
|
|
51
|
+
return "\"" + input + "\"";
|
|
52
|
+
$throws({
|
|
53
|
+
expected: "(\"always\" | \"assigned\" | \"author\" | \"mentioned\" | \"participated\")",
|
|
54
|
+
value: input
|
|
55
|
+
});
|
|
56
|
+
})();
|
|
57
|
+
};
|
|
58
|
+
export const assertStringifyNotificationReason = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
59
|
+
const __is = input => {
|
|
60
|
+
return "mentioned" === input || "assigned" === input || "author" === input || "participated" === input || "always" === input;
|
|
61
|
+
};
|
|
62
|
+
if (false === __is(input))
|
|
63
|
+
((input, _path, _exceptionable = true) => {
|
|
64
|
+
const $guard = __typia.json.createAssertStringify.guard;
|
|
65
|
+
return "mentioned" === input || "assigned" === input || "author" === input || "participated" === input || "always" === input || $guard(true, {
|
|
66
|
+
path: _path + "",
|
|
67
|
+
expected: "(\"always\" | \"assigned\" | \"author\" | \"mentioned\" | \"participated\")",
|
|
68
|
+
value: input
|
|
69
|
+
}, errorFactory);
|
|
70
|
+
})(input, "$input", true);
|
|
71
|
+
return input;
|
|
72
|
+
}; const stringify = input => {
|
|
73
|
+
const $string = __typia.json.createAssertStringify.string;
|
|
74
|
+
const $throws = __typia.json.createAssertStringify.throws;
|
|
75
|
+
return (() => {
|
|
76
|
+
if ("string" === typeof input)
|
|
77
|
+
return $string(input);
|
|
78
|
+
if ("string" === typeof input)
|
|
79
|
+
return "\"" + input + "\"";
|
|
80
|
+
$throws({
|
|
81
|
+
expected: "(\"always\" | \"assigned\" | \"author\" | \"mentioned\" | \"participated\")",
|
|
82
|
+
value: input
|
|
83
|
+
});
|
|
84
|
+
})();
|
|
85
|
+
}; return stringify(assert(input, errorFactory)); };
|
package/dist/domains/asset.d.ts
CHANGED
|
@@ -19,6 +19,8 @@ export interface AssetDomainRecords {
|
|
|
19
19
|
":asset.controllers?": AssetDomainControllersProvidedRecord;
|
|
20
20
|
":asset.embedding?": AssetDomainEmbeddingProvidedRecord;
|
|
21
21
|
":asset.media?": AssetDomainMediaProvidedRecord;
|
|
22
|
+
":asset.presence?": AssetDomainPresenceProvidedRecord;
|
|
23
|
+
":asset.comments?": AssetCommentsRecord;
|
|
22
24
|
}
|
|
23
25
|
export interface AssetTitleProvidedRecord {
|
|
24
26
|
value?: string;
|
|
@@ -201,4 +203,25 @@ export declare const randomAssetDomainMediaProvidedRecord: () => AssetDomainMedi
|
|
|
201
203
|
export declare const assertGuardAssetDomainMediaProvidedRecord: __AssertionGuard<AssetDomainMediaProvidedRecord>;
|
|
202
204
|
export declare const stringifyAssetDomainMediaProvidedRecord: (input: AssetDomainMediaProvidedRecord) => string;
|
|
203
205
|
export declare const assertStringifyAssetDomainMediaProvidedRecord: (input: unknown) => string;
|
|
206
|
+
export interface AssetDomainPresenceProvidedRecord {
|
|
207
|
+
value?: string[];
|
|
208
|
+
}
|
|
209
|
+
export declare const isAssetDomainPresenceProvidedRecord: (input: unknown) => input is AssetDomainPresenceProvidedRecord;
|
|
210
|
+
export declare const assertAssetDomainPresenceProvidedRecord: (input: unknown) => AssetDomainPresenceProvidedRecord;
|
|
211
|
+
export declare const randomAssetDomainPresenceProvidedRecord: () => AssetDomainPresenceProvidedRecord;
|
|
212
|
+
export declare const assertGuardAssetDomainPresenceProvidedRecord: __AssertionGuard<AssetDomainPresenceProvidedRecord>;
|
|
213
|
+
export declare const stringifyAssetDomainPresenceProvidedRecord: (input: AssetDomainPresenceProvidedRecord) => string;
|
|
214
|
+
export declare const assertStringifyAssetDomainPresenceProvidedRecord: (input: unknown) => string;
|
|
215
|
+
export interface AssetCommentsRecord {
|
|
216
|
+
/**
|
|
217
|
+
* IDs of comment assets associated with the asset.
|
|
218
|
+
*/
|
|
219
|
+
value?: string[];
|
|
220
|
+
}
|
|
221
|
+
export declare const isAssetCommentsRecord: (input: unknown) => input is AssetCommentsRecord;
|
|
222
|
+
export declare const assertAssetCommentsRecord: (input: unknown) => AssetCommentsRecord;
|
|
223
|
+
export declare const randomAssetCommentsRecord: () => AssetCommentsRecord;
|
|
224
|
+
export declare const assertGuardAssetCommentsRecord: __AssertionGuard<AssetCommentsRecord>;
|
|
225
|
+
export declare const stringifyAssetCommentsRecord: (input: AssetCommentsRecord) => string;
|
|
226
|
+
export declare const assertStringifyAssetCommentsRecord: (input: unknown) => string;
|
|
204
227
|
export {};
|
package/dist/domains/asset.js
CHANGED
|
@@ -2422,3 +2422,251 @@ export const assertStringifyAssetDomainMediaProvidedRecord = (input, errorFactor
|
|
|
2422
2422
|
return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`;
|
|
2423
2423
|
return $so0(input);
|
|
2424
2424
|
}; return stringify(assert(input, errorFactory)); };
|
|
2425
|
+
export const isAssetDomainPresenceProvidedRecord = input => {
|
|
2426
|
+
const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
2427
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
2428
|
+
};
|
|
2429
|
+
export const assertAssetDomainPresenceProvidedRecord = (input, errorFactory) => {
|
|
2430
|
+
const __is = input => {
|
|
2431
|
+
const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
2432
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
2433
|
+
};
|
|
2434
|
+
if (false === __is(input))
|
|
2435
|
+
((input, _path, _exceptionable = true) => {
|
|
2436
|
+
const $guard = __typia.createAssert.guard;
|
|
2437
|
+
const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
|
|
2438
|
+
path: _path + ".value",
|
|
2439
|
+
expected: "(Array<string> | undefined)",
|
|
2440
|
+
value: input.value
|
|
2441
|
+
}, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
2442
|
+
path: _path + ".value[" + _index1 + "]",
|
|
2443
|
+
expected: "string",
|
|
2444
|
+
value: elem
|
|
2445
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
2446
|
+
path: _path + ".value",
|
|
2447
|
+
expected: "(Array<string> | undefined)",
|
|
2448
|
+
value: input.value
|
|
2449
|
+
}, errorFactory);
|
|
2450
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
2451
|
+
path: _path + "",
|
|
2452
|
+
expected: "AssetDomainPresenceProvidedRecord",
|
|
2453
|
+
value: input
|
|
2454
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
2455
|
+
path: _path + "",
|
|
2456
|
+
expected: "AssetDomainPresenceProvidedRecord",
|
|
2457
|
+
value: input
|
|
2458
|
+
}, errorFactory);
|
|
2459
|
+
})(input, "$input", true);
|
|
2460
|
+
return input;
|
|
2461
|
+
};
|
|
2462
|
+
export const randomAssetDomainPresenceProvidedRecord = generator => {
|
|
2463
|
+
const $generator = __typia.createRandom.generator;
|
|
2464
|
+
const $pick = __typia.createRandom.pick;
|
|
2465
|
+
const $ro0 = (_recursive = false, _depth = 0) => ({
|
|
2466
|
+
value: $pick([
|
|
2467
|
+
() => undefined,
|
|
2468
|
+
() => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
|
|
2469
|
+
])()
|
|
2470
|
+
});
|
|
2471
|
+
return $ro0();
|
|
2472
|
+
};
|
|
2473
|
+
export const assertGuardAssetDomainPresenceProvidedRecord = (input, errorFactory) => {
|
|
2474
|
+
const __is = input => {
|
|
2475
|
+
const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
2476
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
2477
|
+
};
|
|
2478
|
+
if (false === __is(input))
|
|
2479
|
+
((input, _path, _exceptionable = true) => {
|
|
2480
|
+
const $guard = __typia.createAssertGuard.guard;
|
|
2481
|
+
const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
|
|
2482
|
+
path: _path + ".value",
|
|
2483
|
+
expected: "(Array<string> | undefined)",
|
|
2484
|
+
value: input.value
|
|
2485
|
+
}, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
2486
|
+
path: _path + ".value[" + _index1 + "]",
|
|
2487
|
+
expected: "string",
|
|
2488
|
+
value: elem
|
|
2489
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
2490
|
+
path: _path + ".value",
|
|
2491
|
+
expected: "(Array<string> | undefined)",
|
|
2492
|
+
value: input.value
|
|
2493
|
+
}, errorFactory);
|
|
2494
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
2495
|
+
path: _path + "",
|
|
2496
|
+
expected: "AssetDomainPresenceProvidedRecord",
|
|
2497
|
+
value: input
|
|
2498
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
2499
|
+
path: _path + "",
|
|
2500
|
+
expected: "AssetDomainPresenceProvidedRecord",
|
|
2501
|
+
value: input
|
|
2502
|
+
}, errorFactory);
|
|
2503
|
+
})(input, "$input", true);
|
|
2504
|
+
};
|
|
2505
|
+
export const stringifyAssetDomainPresenceProvidedRecord = input => {
|
|
2506
|
+
const $string = __typia.json.createStringify.string;
|
|
2507
|
+
const $tail = __typia.json.createStringify.tail;
|
|
2508
|
+
const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => $string(elem)).join(",")}]` : undefined}`}`)}}`;
|
|
2509
|
+
return $so0(input);
|
|
2510
|
+
};
|
|
2511
|
+
export const assertStringifyAssetDomainPresenceProvidedRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
2512
|
+
const __is = input => {
|
|
2513
|
+
const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
2514
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
2515
|
+
};
|
|
2516
|
+
if (false === __is(input))
|
|
2517
|
+
((input, _path, _exceptionable = true) => {
|
|
2518
|
+
const $guard = __typia.json.createAssertStringify.guard;
|
|
2519
|
+
const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
|
|
2520
|
+
path: _path + ".value",
|
|
2521
|
+
expected: "(Array<string> | undefined)",
|
|
2522
|
+
value: input.value
|
|
2523
|
+
}, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
2524
|
+
path: _path + ".value[" + _index1 + "]",
|
|
2525
|
+
expected: "string",
|
|
2526
|
+
value: elem
|
|
2527
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
2528
|
+
path: _path + ".value",
|
|
2529
|
+
expected: "(Array<string> | undefined)",
|
|
2530
|
+
value: input.value
|
|
2531
|
+
}, errorFactory);
|
|
2532
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
2533
|
+
path: _path + "",
|
|
2534
|
+
expected: "AssetDomainPresenceProvidedRecord",
|
|
2535
|
+
value: input
|
|
2536
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
2537
|
+
path: _path + "",
|
|
2538
|
+
expected: "AssetDomainPresenceProvidedRecord",
|
|
2539
|
+
value: input
|
|
2540
|
+
}, errorFactory);
|
|
2541
|
+
})(input, "$input", true);
|
|
2542
|
+
return input;
|
|
2543
|
+
}; const stringify = input => {
|
|
2544
|
+
const $string = __typia.json.createAssertStringify.string;
|
|
2545
|
+
const $tail = __typia.json.createAssertStringify.tail;
|
|
2546
|
+
const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => $string(elem)).join(",")}]` : undefined}`}`)}}`;
|
|
2547
|
+
return $so0(input);
|
|
2548
|
+
}; return stringify(assert(input, errorFactory)); };
|
|
2549
|
+
export const isAssetCommentsRecord = input => {
|
|
2550
|
+
const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
2551
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
2552
|
+
};
|
|
2553
|
+
export const assertAssetCommentsRecord = (input, errorFactory) => {
|
|
2554
|
+
const __is = input => {
|
|
2555
|
+
const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
2556
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
2557
|
+
};
|
|
2558
|
+
if (false === __is(input))
|
|
2559
|
+
((input, _path, _exceptionable = true) => {
|
|
2560
|
+
const $guard = __typia.createAssert.guard;
|
|
2561
|
+
const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
|
|
2562
|
+
path: _path + ".value",
|
|
2563
|
+
expected: "(Array<string> | undefined)",
|
|
2564
|
+
value: input.value
|
|
2565
|
+
}, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
2566
|
+
path: _path + ".value[" + _index1 + "]",
|
|
2567
|
+
expected: "string",
|
|
2568
|
+
value: elem
|
|
2569
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
2570
|
+
path: _path + ".value",
|
|
2571
|
+
expected: "(Array<string> | undefined)",
|
|
2572
|
+
value: input.value
|
|
2573
|
+
}, errorFactory);
|
|
2574
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
2575
|
+
path: _path + "",
|
|
2576
|
+
expected: "AssetCommentsRecord",
|
|
2577
|
+
value: input
|
|
2578
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
2579
|
+
path: _path + "",
|
|
2580
|
+
expected: "AssetCommentsRecord",
|
|
2581
|
+
value: input
|
|
2582
|
+
}, errorFactory);
|
|
2583
|
+
})(input, "$input", true);
|
|
2584
|
+
return input;
|
|
2585
|
+
};
|
|
2586
|
+
export const randomAssetCommentsRecord = generator => {
|
|
2587
|
+
const $generator = __typia.createRandom.generator;
|
|
2588
|
+
const $pick = __typia.createRandom.pick;
|
|
2589
|
+
const $ro0 = (_recursive = false, _depth = 0) => ({
|
|
2590
|
+
value: $pick([
|
|
2591
|
+
() => undefined,
|
|
2592
|
+
() => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
|
|
2593
|
+
])()
|
|
2594
|
+
});
|
|
2595
|
+
return $ro0();
|
|
2596
|
+
};
|
|
2597
|
+
export const assertGuardAssetCommentsRecord = (input, errorFactory) => {
|
|
2598
|
+
const __is = input => {
|
|
2599
|
+
const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
2600
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
2601
|
+
};
|
|
2602
|
+
if (false === __is(input))
|
|
2603
|
+
((input, _path, _exceptionable = true) => {
|
|
2604
|
+
const $guard = __typia.createAssertGuard.guard;
|
|
2605
|
+
const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
|
|
2606
|
+
path: _path + ".value",
|
|
2607
|
+
expected: "(Array<string> | undefined)",
|
|
2608
|
+
value: input.value
|
|
2609
|
+
}, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
2610
|
+
path: _path + ".value[" + _index1 + "]",
|
|
2611
|
+
expected: "string",
|
|
2612
|
+
value: elem
|
|
2613
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
2614
|
+
path: _path + ".value",
|
|
2615
|
+
expected: "(Array<string> | undefined)",
|
|
2616
|
+
value: input.value
|
|
2617
|
+
}, errorFactory);
|
|
2618
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
2619
|
+
path: _path + "",
|
|
2620
|
+
expected: "AssetCommentsRecord",
|
|
2621
|
+
value: input
|
|
2622
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
2623
|
+
path: _path + "",
|
|
2624
|
+
expected: "AssetCommentsRecord",
|
|
2625
|
+
value: input
|
|
2626
|
+
}, errorFactory);
|
|
2627
|
+
})(input, "$input", true);
|
|
2628
|
+
};
|
|
2629
|
+
export const stringifyAssetCommentsRecord = input => {
|
|
2630
|
+
const $string = __typia.json.createStringify.string;
|
|
2631
|
+
const $tail = __typia.json.createStringify.tail;
|
|
2632
|
+
const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => $string(elem)).join(",")}]` : undefined}`}`)}}`;
|
|
2633
|
+
return $so0(input);
|
|
2634
|
+
};
|
|
2635
|
+
export const assertStringifyAssetCommentsRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
2636
|
+
const __is = input => {
|
|
2637
|
+
const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
|
|
2638
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
2639
|
+
};
|
|
2640
|
+
if (false === __is(input))
|
|
2641
|
+
((input, _path, _exceptionable = true) => {
|
|
2642
|
+
const $guard = __typia.json.createAssertStringify.guard;
|
|
2643
|
+
const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
|
|
2644
|
+
path: _path + ".value",
|
|
2645
|
+
expected: "(Array<string> | undefined)",
|
|
2646
|
+
value: input.value
|
|
2647
|
+
}, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
2648
|
+
path: _path + ".value[" + _index1 + "]",
|
|
2649
|
+
expected: "string",
|
|
2650
|
+
value: elem
|
|
2651
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
2652
|
+
path: _path + ".value",
|
|
2653
|
+
expected: "(Array<string> | undefined)",
|
|
2654
|
+
value: input.value
|
|
2655
|
+
}, errorFactory);
|
|
2656
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
2657
|
+
path: _path + "",
|
|
2658
|
+
expected: "AssetCommentsRecord",
|
|
2659
|
+
value: input
|
|
2660
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
2661
|
+
path: _path + "",
|
|
2662
|
+
expected: "AssetCommentsRecord",
|
|
2663
|
+
value: input
|
|
2664
|
+
}, errorFactory);
|
|
2665
|
+
})(input, "$input", true);
|
|
2666
|
+
return input;
|
|
2667
|
+
}; const stringify = input => {
|
|
2668
|
+
const $string = __typia.json.createAssertStringify.string;
|
|
2669
|
+
const $tail = __typia.json.createAssertStringify.tail;
|
|
2670
|
+
const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => $string(elem)).join(",")}]` : undefined}`}`)}}`;
|
|
2671
|
+
return $so0(input);
|
|
2672
|
+
}; return stringify(assert(input, errorFactory)); };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type AssertionGuard as __AssertionGuard } from "typia";
|
|
2
|
+
export interface CommentReactionDomainRecords {
|
|
3
|
+
"comment-reaction": CommentReactionDomainRecord;
|
|
4
|
+
}
|
|
5
|
+
export interface CommentReactionDomainRecord {
|
|
6
|
+
comment: string;
|
|
7
|
+
user: string;
|
|
8
|
+
reaction: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const isCommentReactionDomainRecord: (input: unknown) => input is CommentReactionDomainRecord;
|
|
11
|
+
export declare const assertCommentReactionDomainRecord: (input: unknown) => CommentReactionDomainRecord;
|
|
12
|
+
export declare const randomCommentReactionDomainRecord: () => CommentReactionDomainRecord;
|
|
13
|
+
export declare const assertGuardCommentReactionDomainRecord: __AssertionGuard<CommentReactionDomainRecord>;
|
|
14
|
+
export declare const stringifyCommentReactionDomainRecord: (input: CommentReactionDomainRecord) => string;
|
|
15
|
+
export declare const assertStringifyCommentReactionDomainRecord: (input: unknown) => string;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import __typia from "typia";
|
|
2
|
+
export const isCommentReactionDomainRecord = input => {
|
|
3
|
+
return "object" === typeof input && null !== input && ("string" === typeof input.comment && "string" === typeof input.user && "string" === typeof input.reaction);
|
|
4
|
+
};
|
|
5
|
+
export const assertCommentReactionDomainRecord = (input, errorFactory) => {
|
|
6
|
+
const __is = input => {
|
|
7
|
+
return "object" === typeof input && null !== input && ("string" === typeof input.comment && "string" === typeof input.user && "string" === typeof input.reaction);
|
|
8
|
+
};
|
|
9
|
+
if (false === __is(input))
|
|
10
|
+
((input, _path, _exceptionable = true) => {
|
|
11
|
+
const $guard = __typia.createAssert.guard;
|
|
12
|
+
const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.comment || $guard(_exceptionable, {
|
|
13
|
+
path: _path + ".comment",
|
|
14
|
+
expected: "string",
|
|
15
|
+
value: input.comment
|
|
16
|
+
}, errorFactory)) && ("string" === typeof input.user || $guard(_exceptionable, {
|
|
17
|
+
path: _path + ".user",
|
|
18
|
+
expected: "string",
|
|
19
|
+
value: input.user
|
|
20
|
+
}, errorFactory)) && ("string" === typeof input.reaction || $guard(_exceptionable, {
|
|
21
|
+
path: _path + ".reaction",
|
|
22
|
+
expected: "string",
|
|
23
|
+
value: input.reaction
|
|
24
|
+
}, errorFactory));
|
|
25
|
+
return ("object" === typeof input && null !== input || $guard(true, {
|
|
26
|
+
path: _path + "",
|
|
27
|
+
expected: "CommentReactionDomainRecord",
|
|
28
|
+
value: input
|
|
29
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
30
|
+
path: _path + "",
|
|
31
|
+
expected: "CommentReactionDomainRecord",
|
|
32
|
+
value: input
|
|
33
|
+
}, errorFactory);
|
|
34
|
+
})(input, "$input", true);
|
|
35
|
+
return input;
|
|
36
|
+
};
|
|
37
|
+
export const randomCommentReactionDomainRecord = generator => {
|
|
38
|
+
const $generator = __typia.createRandom.generator;
|
|
39
|
+
const $ro0 = (_recursive = false, _depth = 0) => ({
|
|
40
|
+
comment: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
41
|
+
user: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
42
|
+
reaction: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
43
|
+
});
|
|
44
|
+
return $ro0();
|
|
45
|
+
};
|
|
46
|
+
export const assertGuardCommentReactionDomainRecord = (input, errorFactory) => {
|
|
47
|
+
const __is = input => {
|
|
48
|
+
return "object" === typeof input && null !== input && ("string" === typeof input.comment && "string" === typeof input.user && "string" === typeof input.reaction);
|
|
49
|
+
};
|
|
50
|
+
if (false === __is(input))
|
|
51
|
+
((input, _path, _exceptionable = true) => {
|
|
52
|
+
const $guard = __typia.createAssertGuard.guard;
|
|
53
|
+
const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.comment || $guard(_exceptionable, {
|
|
54
|
+
path: _path + ".comment",
|
|
55
|
+
expected: "string",
|
|
56
|
+
value: input.comment
|
|
57
|
+
}, errorFactory)) && ("string" === typeof input.user || $guard(_exceptionable, {
|
|
58
|
+
path: _path + ".user",
|
|
59
|
+
expected: "string",
|
|
60
|
+
value: input.user
|
|
61
|
+
}, errorFactory)) && ("string" === typeof input.reaction || $guard(_exceptionable, {
|
|
62
|
+
path: _path + ".reaction",
|
|
63
|
+
expected: "string",
|
|
64
|
+
value: input.reaction
|
|
65
|
+
}, errorFactory));
|
|
66
|
+
return ("object" === typeof input && null !== input || $guard(true, {
|
|
67
|
+
path: _path + "",
|
|
68
|
+
expected: "CommentReactionDomainRecord",
|
|
69
|
+
value: input
|
|
70
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
71
|
+
path: _path + "",
|
|
72
|
+
expected: "CommentReactionDomainRecord",
|
|
73
|
+
value: input
|
|
74
|
+
}, errorFactory);
|
|
75
|
+
})(input, "$input", true);
|
|
76
|
+
};
|
|
77
|
+
export const stringifyCommentReactionDomainRecord = input => {
|
|
78
|
+
const $string = __typia.json.createStringify.string;
|
|
79
|
+
return `{"comment":${$string(input.comment)},"user":${$string(input.user)},"reaction":${$string(input.reaction)}}`;
|
|
80
|
+
};
|
|
81
|
+
export const assertStringifyCommentReactionDomainRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
82
|
+
const __is = input => {
|
|
83
|
+
return "object" === typeof input && null !== input && ("string" === typeof input.comment && "string" === typeof input.user && "string" === typeof input.reaction);
|
|
84
|
+
};
|
|
85
|
+
if (false === __is(input))
|
|
86
|
+
((input, _path, _exceptionable = true) => {
|
|
87
|
+
const $guard = __typia.json.createAssertStringify.guard;
|
|
88
|
+
const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.comment || $guard(_exceptionable, {
|
|
89
|
+
path: _path + ".comment",
|
|
90
|
+
expected: "string",
|
|
91
|
+
value: input.comment
|
|
92
|
+
}, errorFactory)) && ("string" === typeof input.user || $guard(_exceptionable, {
|
|
93
|
+
path: _path + ".user",
|
|
94
|
+
expected: "string",
|
|
95
|
+
value: input.user
|
|
96
|
+
}, errorFactory)) && ("string" === typeof input.reaction || $guard(_exceptionable, {
|
|
97
|
+
path: _path + ".reaction",
|
|
98
|
+
expected: "string",
|
|
99
|
+
value: input.reaction
|
|
100
|
+
}, errorFactory));
|
|
101
|
+
return ("object" === typeof input && null !== input || $guard(true, {
|
|
102
|
+
path: _path + "",
|
|
103
|
+
expected: "CommentReactionDomainRecord",
|
|
104
|
+
value: input
|
|
105
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
106
|
+
path: _path + "",
|
|
107
|
+
expected: "CommentReactionDomainRecord",
|
|
108
|
+
value: input
|
|
109
|
+
}, errorFactory);
|
|
110
|
+
})(input, "$input", true);
|
|
111
|
+
return input;
|
|
112
|
+
}; const stringify = input => {
|
|
113
|
+
const $string = __typia.json.createAssertStringify.string;
|
|
114
|
+
return `{"comment":${$string(input.comment)},"user":${$string(input.user)},"reaction":${$string(input.reaction)}}`;
|
|
115
|
+
}; return stringify(assert(input, errorFactory)); };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type AssertionGuard as __AssertionGuard } from "typia";
|
|
2
|
+
export interface CommentReadMarkDomainRecords {
|
|
3
|
+
"comment-read-mark": CommentReadMarkDomainRecord;
|
|
4
|
+
}
|
|
5
|
+
export interface CommentReadMarkDomainRecord {
|
|
6
|
+
comment: string;
|
|
7
|
+
user: string;
|
|
8
|
+
time: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const isCommentReadMarkDomainRecord: (input: unknown) => input is CommentReadMarkDomainRecord;
|
|
11
|
+
export declare const assertCommentReadMarkDomainRecord: (input: unknown) => CommentReadMarkDomainRecord;
|
|
12
|
+
export declare const randomCommentReadMarkDomainRecord: () => CommentReadMarkDomainRecord;
|
|
13
|
+
export declare const assertGuardCommentReadMarkDomainRecord: __AssertionGuard<CommentReadMarkDomainRecord>;
|
|
14
|
+
export declare const stringifyCommentReadMarkDomainRecord: (input: CommentReadMarkDomainRecord) => string;
|
|
15
|
+
export declare const assertStringifyCommentReadMarkDomainRecord: (input: unknown) => string;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import __typia from "typia";
|
|
2
|
+
export const isCommentReadMarkDomainRecord = input => {
|
|
3
|
+
return "object" === typeof input && null !== input && ("string" === typeof input.comment && "string" === typeof input.user && "string" === typeof input.time);
|
|
4
|
+
};
|
|
5
|
+
export const assertCommentReadMarkDomainRecord = (input, errorFactory) => {
|
|
6
|
+
const __is = input => {
|
|
7
|
+
return "object" === typeof input && null !== input && ("string" === typeof input.comment && "string" === typeof input.user && "string" === typeof input.time);
|
|
8
|
+
};
|
|
9
|
+
if (false === __is(input))
|
|
10
|
+
((input, _path, _exceptionable = true) => {
|
|
11
|
+
const $guard = __typia.createAssert.guard;
|
|
12
|
+
const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.comment || $guard(_exceptionable, {
|
|
13
|
+
path: _path + ".comment",
|
|
14
|
+
expected: "string",
|
|
15
|
+
value: input.comment
|
|
16
|
+
}, errorFactory)) && ("string" === typeof input.user || $guard(_exceptionable, {
|
|
17
|
+
path: _path + ".user",
|
|
18
|
+
expected: "string",
|
|
19
|
+
value: input.user
|
|
20
|
+
}, errorFactory)) && ("string" === typeof input.time || $guard(_exceptionable, {
|
|
21
|
+
path: _path + ".time",
|
|
22
|
+
expected: "string",
|
|
23
|
+
value: input.time
|
|
24
|
+
}, errorFactory));
|
|
25
|
+
return ("object" === typeof input && null !== input || $guard(true, {
|
|
26
|
+
path: _path + "",
|
|
27
|
+
expected: "CommentReadMarkDomainRecord",
|
|
28
|
+
value: input
|
|
29
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
30
|
+
path: _path + "",
|
|
31
|
+
expected: "CommentReadMarkDomainRecord",
|
|
32
|
+
value: input
|
|
33
|
+
}, errorFactory);
|
|
34
|
+
})(input, "$input", true);
|
|
35
|
+
return input;
|
|
36
|
+
};
|
|
37
|
+
export const randomCommentReadMarkDomainRecord = generator => {
|
|
38
|
+
const $generator = __typia.createRandom.generator;
|
|
39
|
+
const $ro0 = (_recursive = false, _depth = 0) => ({
|
|
40
|
+
comment: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
41
|
+
user: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
42
|
+
time: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
43
|
+
});
|
|
44
|
+
return $ro0();
|
|
45
|
+
};
|
|
46
|
+
export const assertGuardCommentReadMarkDomainRecord = (input, errorFactory) => {
|
|
47
|
+
const __is = input => {
|
|
48
|
+
return "object" === typeof input && null !== input && ("string" === typeof input.comment && "string" === typeof input.user && "string" === typeof input.time);
|
|
49
|
+
};
|
|
50
|
+
if (false === __is(input))
|
|
51
|
+
((input, _path, _exceptionable = true) => {
|
|
52
|
+
const $guard = __typia.createAssertGuard.guard;
|
|
53
|
+
const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.comment || $guard(_exceptionable, {
|
|
54
|
+
path: _path + ".comment",
|
|
55
|
+
expected: "string",
|
|
56
|
+
value: input.comment
|
|
57
|
+
}, errorFactory)) && ("string" === typeof input.user || $guard(_exceptionable, {
|
|
58
|
+
path: _path + ".user",
|
|
59
|
+
expected: "string",
|
|
60
|
+
value: input.user
|
|
61
|
+
}, errorFactory)) && ("string" === typeof input.time || $guard(_exceptionable, {
|
|
62
|
+
path: _path + ".time",
|
|
63
|
+
expected: "string",
|
|
64
|
+
value: input.time
|
|
65
|
+
}, errorFactory));
|
|
66
|
+
return ("object" === typeof input && null !== input || $guard(true, {
|
|
67
|
+
path: _path + "",
|
|
68
|
+
expected: "CommentReadMarkDomainRecord",
|
|
69
|
+
value: input
|
|
70
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
71
|
+
path: _path + "",
|
|
72
|
+
expected: "CommentReadMarkDomainRecord",
|
|
73
|
+
value: input
|
|
74
|
+
}, errorFactory);
|
|
75
|
+
})(input, "$input", true);
|
|
76
|
+
};
|
|
77
|
+
export const stringifyCommentReadMarkDomainRecord = input => {
|
|
78
|
+
const $string = __typia.json.createStringify.string;
|
|
79
|
+
return `{"comment":${$string(input.comment)},"user":${$string(input.user)},"time":${$string(input.time)}}`;
|
|
80
|
+
};
|
|
81
|
+
export const assertStringifyCommentReadMarkDomainRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
82
|
+
const __is = input => {
|
|
83
|
+
return "object" === typeof input && null !== input && ("string" === typeof input.comment && "string" === typeof input.user && "string" === typeof input.time);
|
|
84
|
+
};
|
|
85
|
+
if (false === __is(input))
|
|
86
|
+
((input, _path, _exceptionable = true) => {
|
|
87
|
+
const $guard = __typia.json.createAssertStringify.guard;
|
|
88
|
+
const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.comment || $guard(_exceptionable, {
|
|
89
|
+
path: _path + ".comment",
|
|
90
|
+
expected: "string",
|
|
91
|
+
value: input.comment
|
|
92
|
+
}, errorFactory)) && ("string" === typeof input.user || $guard(_exceptionable, {
|
|
93
|
+
path: _path + ".user",
|
|
94
|
+
expected: "string",
|
|
95
|
+
value: input.user
|
|
96
|
+
}, errorFactory)) && ("string" === typeof input.time || $guard(_exceptionable, {
|
|
97
|
+
path: _path + ".time",
|
|
98
|
+
expected: "string",
|
|
99
|
+
value: input.time
|
|
100
|
+
}, errorFactory));
|
|
101
|
+
return ("object" === typeof input && null !== input || $guard(true, {
|
|
102
|
+
path: _path + "",
|
|
103
|
+
expected: "CommentReadMarkDomainRecord",
|
|
104
|
+
value: input
|
|
105
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
106
|
+
path: _path + "",
|
|
107
|
+
expected: "CommentReadMarkDomainRecord",
|
|
108
|
+
value: input
|
|
109
|
+
}, errorFactory);
|
|
110
|
+
})(input, "$input", true);
|
|
111
|
+
return input;
|
|
112
|
+
}; const stringify = input => {
|
|
113
|
+
const $string = __typia.json.createAssertStringify.string;
|
|
114
|
+
return `{"comment":${$string(input.comment)},"user":${$string(input.user)},"time":${$string(input.time)}}`;
|
|
115
|
+
}; return stringify(assert(input, errorFactory)); };
|