@nxtedition/types 23.0.1 → 23.0.3
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 +1 -12
- package/dist/asset.d.ts +10 -0
- package/dist/asset.js +1 -0
- package/dist/common/block.d.ts +1 -1
- package/dist/common/clone.d.ts +32 -0
- package/dist/common/clone.js +602 -0
- package/dist/common/index.d.ts +3 -0
- package/dist/common/index.js +3 -0
- package/dist/common/nxtpression.d.ts +19 -0
- package/dist/common/nxtpression.js +240 -0
- package/dist/common/search.d.ts +69 -0
- package/dist/common/search.js +1591 -0
- package/dist/common/settings.d.ts +6 -5
- package/dist/common/settings.js +89 -36
- package/dist/domains/asset.d.ts +22 -0
- package/dist/domains/asset.js +232 -0
- package/dist/domains/clone.d.ts +14 -0
- package/dist/domains/clone.js +192 -0
- package/dist/domains/connection.d.ts +39 -15
- package/dist/domains/connection.js +621 -174
- package/dist/domains/design.d.ts +24 -0
- package/dist/domains/design.js +303 -0
- package/dist/domains/file.d.ts +17 -0
- package/dist/domains/file.js +233 -0
- package/dist/domains/index.d.ts +11 -1
- package/dist/domains/index.js +5 -0
- package/dist/domains/media.d.ts +28 -0
- package/dist/domains/media.js +346 -0
- package/dist/domains/published.d.ts +18 -0
- package/dist/domains/published.js +164 -0
- package/dist/domains/revs.d.ts +13 -0
- package/dist/domains/revs.js +125 -0
- package/dist/domains/search.d.ts +3 -0
- package/dist/domains/search.js +62 -13
- package/dist/domains/settings.js +70 -26
- package/dist/domains/user.d.ts +14 -0
- package/dist/domains/user.js +141 -0
- package/dist/index.d.ts +20 -6
- package/dist/index.js +135 -0
- package/dist/rpc.d.ts +48 -13
- package/dist/rpc.js +505 -1
- package/dist/schema.json +3014 -0
- package/package.json +7 -3
package/dist/domains/index.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export * from './asset.js';
|
|
2
2
|
export * from './bundle.js';
|
|
3
|
+
export * from './clone.js';
|
|
3
4
|
export * from './connection.js';
|
|
4
5
|
export * from './contact.js';
|
|
6
|
+
export * from './design.js';
|
|
5
7
|
export * from './event.js';
|
|
6
8
|
export * from './file.js';
|
|
7
9
|
export * from './general.js';
|
|
@@ -9,8 +11,11 @@ export * from './media.js';
|
|
|
9
11
|
export * from './permission.js';
|
|
10
12
|
export * from './planning.js';
|
|
11
13
|
export * from './publish.js';
|
|
14
|
+
export * from './published.js';
|
|
15
|
+
export * from './revs.js';
|
|
12
16
|
export * from './role.js';
|
|
13
17
|
export * from './script.js';
|
|
14
18
|
export * from './search.js';
|
|
15
19
|
export * from './settings.js';
|
|
16
20
|
export * from './template.js';
|
|
21
|
+
export * from './user.js';
|
package/dist/domains/media.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ export interface MediaDomainRecords {
|
|
|
5
5
|
":media.consolidate": MediaConsolidateRecord;
|
|
6
6
|
":media.renders?": MediaRendersRecord;
|
|
7
7
|
":media.transcriptChanges": MediaTranscriptChangesRecord;
|
|
8
|
+
":media.font": MediaFontRecord;
|
|
9
|
+
":media.restrictions?": MediaRestrictionsRecord;
|
|
8
10
|
}
|
|
9
11
|
export interface MediaSourceRecord {
|
|
10
12
|
input?: {
|
|
@@ -84,3 +86,29 @@ export declare const randomMediaTranscriptChangesRecordValue: () => MediaTranscr
|
|
|
84
86
|
export declare const assertGuardMediaTranscriptChangesRecordValue: __AssertionGuard<MediaTranscriptChangesRecordValue>;
|
|
85
87
|
export declare const stringifyMediaTranscriptChangesRecordValue: (input: MediaTranscriptChangesRecordValue) => string;
|
|
86
88
|
export declare const assertStringifyMediaTranscriptChangesRecordValue: (input: unknown) => string;
|
|
89
|
+
export interface MediaFontRecord {
|
|
90
|
+
sampleText?: string;
|
|
91
|
+
}
|
|
92
|
+
export declare const isMediaFontRecord: (input: unknown) => input is MediaFontRecord;
|
|
93
|
+
export declare const assertMediaFontRecord: (input: unknown) => MediaFontRecord;
|
|
94
|
+
export declare const randomMediaFontRecord: () => MediaFontRecord;
|
|
95
|
+
export declare const assertGuardMediaFontRecord: __AssertionGuard<MediaFontRecord>;
|
|
96
|
+
export declare const stringifyMediaFontRecord: (input: MediaFontRecord) => string;
|
|
97
|
+
export declare const assertStringifyMediaFontRecord: (input: unknown) => string;
|
|
98
|
+
export interface MediaRestrictionsRecord {
|
|
99
|
+
[restrictionId: string]: {
|
|
100
|
+
asset: string;
|
|
101
|
+
date: string;
|
|
102
|
+
user: string;
|
|
103
|
+
text: string;
|
|
104
|
+
start: number;
|
|
105
|
+
end: number;
|
|
106
|
+
file: string;
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
export declare const isMediaRestrictionsRecord: (input: unknown) => input is MediaRestrictionsRecord;
|
|
110
|
+
export declare const assertMediaRestrictionsRecord: (input: unknown) => MediaRestrictionsRecord;
|
|
111
|
+
export declare const randomMediaRestrictionsRecord: () => MediaRestrictionsRecord;
|
|
112
|
+
export declare const assertGuardMediaRestrictionsRecord: __AssertionGuard<MediaRestrictionsRecord>;
|
|
113
|
+
export declare const stringifyMediaRestrictionsRecord: (input: MediaRestrictionsRecord) => string;
|
|
114
|
+
export declare const assertStringifyMediaRestrictionsRecord: (input: unknown) => string;
|
package/dist/domains/media.js
CHANGED
|
@@ -2460,3 +2460,349 @@ export const assertStringifyMediaTranscriptChangesRecordValue = (input, errorFac
|
|
|
2460
2460
|
})();
|
|
2461
2461
|
return $so0(input);
|
|
2462
2462
|
}; return stringify(assert(input, errorFactory)); };
|
|
2463
|
+
export const isMediaFontRecord = input => {
|
|
2464
|
+
const $io0 = input => undefined === input.sampleText || "string" === typeof input.sampleText;
|
|
2465
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
2466
|
+
};
|
|
2467
|
+
export const assertMediaFontRecord = (input, errorFactory) => {
|
|
2468
|
+
const __is = input => {
|
|
2469
|
+
const $io0 = input => undefined === input.sampleText || "string" === typeof input.sampleText;
|
|
2470
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
2471
|
+
};
|
|
2472
|
+
if (false === __is(input))
|
|
2473
|
+
((input, _path, _exceptionable = true) => {
|
|
2474
|
+
const $guard = __typia.createAssert.guard;
|
|
2475
|
+
const $ao0 = (input, _path, _exceptionable = true) => undefined === input.sampleText || "string" === typeof input.sampleText || $guard(_exceptionable, {
|
|
2476
|
+
path: _path + ".sampleText",
|
|
2477
|
+
expected: "(string | undefined)",
|
|
2478
|
+
value: input.sampleText
|
|
2479
|
+
}, errorFactory);
|
|
2480
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
2481
|
+
path: _path + "",
|
|
2482
|
+
expected: "MediaFontRecord",
|
|
2483
|
+
value: input
|
|
2484
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
2485
|
+
path: _path + "",
|
|
2486
|
+
expected: "MediaFontRecord",
|
|
2487
|
+
value: input
|
|
2488
|
+
}, errorFactory);
|
|
2489
|
+
})(input, "$input", true);
|
|
2490
|
+
return input;
|
|
2491
|
+
};
|
|
2492
|
+
export const randomMediaFontRecord = generator => {
|
|
2493
|
+
const $generator = __typia.createRandom.generator;
|
|
2494
|
+
const $pick = __typia.createRandom.pick;
|
|
2495
|
+
const $ro0 = (_recursive = false, _depth = 0) => ({
|
|
2496
|
+
sampleText: $pick([
|
|
2497
|
+
() => undefined,
|
|
2498
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
2499
|
+
])()
|
|
2500
|
+
});
|
|
2501
|
+
return $ro0();
|
|
2502
|
+
};
|
|
2503
|
+
export const assertGuardMediaFontRecord = (input, errorFactory) => {
|
|
2504
|
+
const __is = input => {
|
|
2505
|
+
const $io0 = input => undefined === input.sampleText || "string" === typeof input.sampleText;
|
|
2506
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
2507
|
+
};
|
|
2508
|
+
if (false === __is(input))
|
|
2509
|
+
((input, _path, _exceptionable = true) => {
|
|
2510
|
+
const $guard = __typia.createAssertGuard.guard;
|
|
2511
|
+
const $ao0 = (input, _path, _exceptionable = true) => undefined === input.sampleText || "string" === typeof input.sampleText || $guard(_exceptionable, {
|
|
2512
|
+
path: _path + ".sampleText",
|
|
2513
|
+
expected: "(string | undefined)",
|
|
2514
|
+
value: input.sampleText
|
|
2515
|
+
}, errorFactory);
|
|
2516
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
2517
|
+
path: _path + "",
|
|
2518
|
+
expected: "MediaFontRecord",
|
|
2519
|
+
value: input
|
|
2520
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
2521
|
+
path: _path + "",
|
|
2522
|
+
expected: "MediaFontRecord",
|
|
2523
|
+
value: input
|
|
2524
|
+
}, errorFactory);
|
|
2525
|
+
})(input, "$input", true);
|
|
2526
|
+
};
|
|
2527
|
+
export const stringifyMediaFontRecord = input => {
|
|
2528
|
+
const $string = __typia.json.createStringify.string;
|
|
2529
|
+
const $tail = __typia.json.createStringify.tail;
|
|
2530
|
+
const $so0 = input => `{${$tail(`${undefined === input.sampleText ? "" : `"sampleText":${undefined !== input.sampleText ? $string(input.sampleText) : undefined}`}`)}}`;
|
|
2531
|
+
return $so0(input);
|
|
2532
|
+
};
|
|
2533
|
+
export const assertStringifyMediaFontRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
2534
|
+
const __is = input => {
|
|
2535
|
+
const $io0 = input => undefined === input.sampleText || "string" === typeof input.sampleText;
|
|
2536
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
2537
|
+
};
|
|
2538
|
+
if (false === __is(input))
|
|
2539
|
+
((input, _path, _exceptionable = true) => {
|
|
2540
|
+
const $guard = __typia.json.createAssertStringify.guard;
|
|
2541
|
+
const $ao0 = (input, _path, _exceptionable = true) => undefined === input.sampleText || "string" === typeof input.sampleText || $guard(_exceptionable, {
|
|
2542
|
+
path: _path + ".sampleText",
|
|
2543
|
+
expected: "(string | undefined)",
|
|
2544
|
+
value: input.sampleText
|
|
2545
|
+
}, errorFactory);
|
|
2546
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
2547
|
+
path: _path + "",
|
|
2548
|
+
expected: "MediaFontRecord",
|
|
2549
|
+
value: input
|
|
2550
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
2551
|
+
path: _path + "",
|
|
2552
|
+
expected: "MediaFontRecord",
|
|
2553
|
+
value: input
|
|
2554
|
+
}, errorFactory);
|
|
2555
|
+
})(input, "$input", true);
|
|
2556
|
+
return input;
|
|
2557
|
+
}; const stringify = input => {
|
|
2558
|
+
const $string = __typia.json.createAssertStringify.string;
|
|
2559
|
+
const $tail = __typia.json.createAssertStringify.tail;
|
|
2560
|
+
const $so0 = input => `{${$tail(`${undefined === input.sampleText ? "" : `"sampleText":${undefined !== input.sampleText ? $string(input.sampleText) : undefined}`}`)}}`;
|
|
2561
|
+
return $so0(input);
|
|
2562
|
+
}; return stringify(assert(input, errorFactory)); };
|
|
2563
|
+
export const isMediaRestrictionsRecord = input => {
|
|
2564
|
+
const $io0 = input => Object.keys(input).every(key => {
|
|
2565
|
+
const value = input[key];
|
|
2566
|
+
if (undefined === value)
|
|
2567
|
+
return true;
|
|
2568
|
+
return "object" === typeof value && null !== value && ("string" === typeof value.asset && "string" === typeof value.date && "string" === typeof value.user && "string" === typeof value.text && "number" === typeof value.start && "number" === typeof value.end && "string" === typeof value.file);
|
|
2569
|
+
});
|
|
2570
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
2571
|
+
};
|
|
2572
|
+
export const assertMediaRestrictionsRecord = (input, errorFactory) => {
|
|
2573
|
+
const __is = input => {
|
|
2574
|
+
const $io0 = input => Object.keys(input).every(key => {
|
|
2575
|
+
const value = input[key];
|
|
2576
|
+
if (undefined === value)
|
|
2577
|
+
return true;
|
|
2578
|
+
return "object" === typeof value && null !== value && ("string" === typeof value.asset && "string" === typeof value.date && "string" === typeof value.user && "string" === typeof value.text && "number" === typeof value.start && "number" === typeof value.end && "string" === typeof value.file);
|
|
2579
|
+
});
|
|
2580
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
2581
|
+
};
|
|
2582
|
+
if (false === __is(input))
|
|
2583
|
+
((input, _path, _exceptionable = true) => {
|
|
2584
|
+
const $guard = __typia.createAssert.guard;
|
|
2585
|
+
const $join = __typia.createAssert.join;
|
|
2586
|
+
const $ao0 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
2587
|
+
const value = input[key];
|
|
2588
|
+
if (undefined === value)
|
|
2589
|
+
return true;
|
|
2590
|
+
return ("object" === typeof value && null !== value || $guard(_exceptionable, {
|
|
2591
|
+
path: _path + $join(key),
|
|
2592
|
+
expected: "__type",
|
|
2593
|
+
value: value
|
|
2594
|
+
}, errorFactory)) && $ao1(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
|
|
2595
|
+
path: _path + $join(key),
|
|
2596
|
+
expected: "__type",
|
|
2597
|
+
value: value
|
|
2598
|
+
}, errorFactory);
|
|
2599
|
+
});
|
|
2600
|
+
const $ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.asset || $guard(_exceptionable, {
|
|
2601
|
+
path: _path + ".asset",
|
|
2602
|
+
expected: "string",
|
|
2603
|
+
value: input.asset
|
|
2604
|
+
}, errorFactory)) && ("string" === typeof input.date || $guard(_exceptionable, {
|
|
2605
|
+
path: _path + ".date",
|
|
2606
|
+
expected: "string",
|
|
2607
|
+
value: input.date
|
|
2608
|
+
}, errorFactory)) && ("string" === typeof input.user || $guard(_exceptionable, {
|
|
2609
|
+
path: _path + ".user",
|
|
2610
|
+
expected: "string",
|
|
2611
|
+
value: input.user
|
|
2612
|
+
}, errorFactory)) && ("string" === typeof input.text || $guard(_exceptionable, {
|
|
2613
|
+
path: _path + ".text",
|
|
2614
|
+
expected: "string",
|
|
2615
|
+
value: input.text
|
|
2616
|
+
}, errorFactory)) && ("number" === typeof input.start || $guard(_exceptionable, {
|
|
2617
|
+
path: _path + ".start",
|
|
2618
|
+
expected: "number",
|
|
2619
|
+
value: input.start
|
|
2620
|
+
}, errorFactory)) && ("number" === typeof input.end || $guard(_exceptionable, {
|
|
2621
|
+
path: _path + ".end",
|
|
2622
|
+
expected: "number",
|
|
2623
|
+
value: input.end
|
|
2624
|
+
}, errorFactory)) && ("string" === typeof input.file || $guard(_exceptionable, {
|
|
2625
|
+
path: _path + ".file",
|
|
2626
|
+
expected: "string",
|
|
2627
|
+
value: input.file
|
|
2628
|
+
}, errorFactory));
|
|
2629
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
2630
|
+
path: _path + "",
|
|
2631
|
+
expected: "MediaRestrictionsRecord",
|
|
2632
|
+
value: input
|
|
2633
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
2634
|
+
path: _path + "",
|
|
2635
|
+
expected: "MediaRestrictionsRecord",
|
|
2636
|
+
value: input
|
|
2637
|
+
}, errorFactory);
|
|
2638
|
+
})(input, "$input", true);
|
|
2639
|
+
return input;
|
|
2640
|
+
};
|
|
2641
|
+
export const randomMediaRestrictionsRecord = generator => {
|
|
2642
|
+
const $generator = __typia.createRandom.generator;
|
|
2643
|
+
const $ro0 = (_recursive = false, _depth = 0) => {
|
|
2644
|
+
const output = {};
|
|
2645
|
+
(generator?.array ?? $generator.array)(() => output[(generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()] = $ro1(_recursive, _recursive ? 1 + _depth : _depth), (generator?.integer ?? $generator.integer)(0, 3));
|
|
2646
|
+
return output;
|
|
2647
|
+
};
|
|
2648
|
+
const $ro1 = (_recursive = false, _depth = 0) => ({
|
|
2649
|
+
asset: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
2650
|
+
date: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
2651
|
+
user: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
2652
|
+
text: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
2653
|
+
start: (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100),
|
|
2654
|
+
end: (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100),
|
|
2655
|
+
file: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
2656
|
+
});
|
|
2657
|
+
return $ro0();
|
|
2658
|
+
};
|
|
2659
|
+
export const assertGuardMediaRestrictionsRecord = (input, errorFactory) => {
|
|
2660
|
+
const __is = input => {
|
|
2661
|
+
const $io0 = input => Object.keys(input).every(key => {
|
|
2662
|
+
const value = input[key];
|
|
2663
|
+
if (undefined === value)
|
|
2664
|
+
return true;
|
|
2665
|
+
return "object" === typeof value && null !== value && ("string" === typeof value.asset && "string" === typeof value.date && "string" === typeof value.user && "string" === typeof value.text && "number" === typeof value.start && "number" === typeof value.end && "string" === typeof value.file);
|
|
2666
|
+
});
|
|
2667
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
2668
|
+
};
|
|
2669
|
+
if (false === __is(input))
|
|
2670
|
+
((input, _path, _exceptionable = true) => {
|
|
2671
|
+
const $guard = __typia.createAssertGuard.guard;
|
|
2672
|
+
const $join = __typia.createAssertGuard.join;
|
|
2673
|
+
const $ao0 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
2674
|
+
const value = input[key];
|
|
2675
|
+
if (undefined === value)
|
|
2676
|
+
return true;
|
|
2677
|
+
return ("object" === typeof value && null !== value || $guard(_exceptionable, {
|
|
2678
|
+
path: _path + $join(key),
|
|
2679
|
+
expected: "__type",
|
|
2680
|
+
value: value
|
|
2681
|
+
}, errorFactory)) && $ao1(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
|
|
2682
|
+
path: _path + $join(key),
|
|
2683
|
+
expected: "__type",
|
|
2684
|
+
value: value
|
|
2685
|
+
}, errorFactory);
|
|
2686
|
+
});
|
|
2687
|
+
const $ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.asset || $guard(_exceptionable, {
|
|
2688
|
+
path: _path + ".asset",
|
|
2689
|
+
expected: "string",
|
|
2690
|
+
value: input.asset
|
|
2691
|
+
}, errorFactory)) && ("string" === typeof input.date || $guard(_exceptionable, {
|
|
2692
|
+
path: _path + ".date",
|
|
2693
|
+
expected: "string",
|
|
2694
|
+
value: input.date
|
|
2695
|
+
}, errorFactory)) && ("string" === typeof input.user || $guard(_exceptionable, {
|
|
2696
|
+
path: _path + ".user",
|
|
2697
|
+
expected: "string",
|
|
2698
|
+
value: input.user
|
|
2699
|
+
}, errorFactory)) && ("string" === typeof input.text || $guard(_exceptionable, {
|
|
2700
|
+
path: _path + ".text",
|
|
2701
|
+
expected: "string",
|
|
2702
|
+
value: input.text
|
|
2703
|
+
}, errorFactory)) && ("number" === typeof input.start || $guard(_exceptionable, {
|
|
2704
|
+
path: _path + ".start",
|
|
2705
|
+
expected: "number",
|
|
2706
|
+
value: input.start
|
|
2707
|
+
}, errorFactory)) && ("number" === typeof input.end || $guard(_exceptionable, {
|
|
2708
|
+
path: _path + ".end",
|
|
2709
|
+
expected: "number",
|
|
2710
|
+
value: input.end
|
|
2711
|
+
}, errorFactory)) && ("string" === typeof input.file || $guard(_exceptionable, {
|
|
2712
|
+
path: _path + ".file",
|
|
2713
|
+
expected: "string",
|
|
2714
|
+
value: input.file
|
|
2715
|
+
}, errorFactory));
|
|
2716
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
2717
|
+
path: _path + "",
|
|
2718
|
+
expected: "MediaRestrictionsRecord",
|
|
2719
|
+
value: input
|
|
2720
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
2721
|
+
path: _path + "",
|
|
2722
|
+
expected: "MediaRestrictionsRecord",
|
|
2723
|
+
value: input
|
|
2724
|
+
}, errorFactory);
|
|
2725
|
+
})(input, "$input", true);
|
|
2726
|
+
};
|
|
2727
|
+
export const stringifyMediaRestrictionsRecord = input => {
|
|
2728
|
+
const $io1 = input => "string" === typeof input.asset && "string" === typeof input.date && "string" === typeof input.user && "string" === typeof input.text && "number" === typeof input.start && "number" === typeof input.end && "string" === typeof input.file;
|
|
2729
|
+
const $string = __typia.json.createStringify.string;
|
|
2730
|
+
const $so0 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
2731
|
+
return ""; return `${JSON.stringify(key)}:${`{"asset":${$string(value.asset)},"date":${$string(value.date)},"user":${$string(value.user)},"text":${$string(value.text)},"start":${value.start},"end":${value.end},"file":${$string(value.file)}}`}`; }).filter(str => "" !== str).join(",")}}`;
|
|
2732
|
+
return $so0(input);
|
|
2733
|
+
};
|
|
2734
|
+
export const assertStringifyMediaRestrictionsRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
2735
|
+
const __is = input => {
|
|
2736
|
+
const $io0 = input => Object.keys(input).every(key => {
|
|
2737
|
+
const value = input[key];
|
|
2738
|
+
if (undefined === value)
|
|
2739
|
+
return true;
|
|
2740
|
+
return "object" === typeof value && null !== value && ("string" === typeof value.asset && "string" === typeof value.date && "string" === typeof value.user && "string" === typeof value.text && ("number" === typeof value.start && !Number.isNaN(value.start)) && ("number" === typeof value.end && !Number.isNaN(value.end)) && "string" === typeof value.file);
|
|
2741
|
+
});
|
|
2742
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
2743
|
+
};
|
|
2744
|
+
if (false === __is(input))
|
|
2745
|
+
((input, _path, _exceptionable = true) => {
|
|
2746
|
+
const $guard = __typia.json.createAssertStringify.guard;
|
|
2747
|
+
const $join = __typia.json.createAssertStringify.join;
|
|
2748
|
+
const $ao0 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
2749
|
+
const value = input[key];
|
|
2750
|
+
if (undefined === value)
|
|
2751
|
+
return true;
|
|
2752
|
+
return ("object" === typeof value && null !== value || $guard(_exceptionable, {
|
|
2753
|
+
path: _path + $join(key),
|
|
2754
|
+
expected: "__type",
|
|
2755
|
+
value: value
|
|
2756
|
+
}, errorFactory)) && $ao1(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
|
|
2757
|
+
path: _path + $join(key),
|
|
2758
|
+
expected: "__type",
|
|
2759
|
+
value: value
|
|
2760
|
+
}, errorFactory);
|
|
2761
|
+
});
|
|
2762
|
+
const $ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.asset || $guard(_exceptionable, {
|
|
2763
|
+
path: _path + ".asset",
|
|
2764
|
+
expected: "string",
|
|
2765
|
+
value: input.asset
|
|
2766
|
+
}, errorFactory)) && ("string" === typeof input.date || $guard(_exceptionable, {
|
|
2767
|
+
path: _path + ".date",
|
|
2768
|
+
expected: "string",
|
|
2769
|
+
value: input.date
|
|
2770
|
+
}, errorFactory)) && ("string" === typeof input.user || $guard(_exceptionable, {
|
|
2771
|
+
path: _path + ".user",
|
|
2772
|
+
expected: "string",
|
|
2773
|
+
value: input.user
|
|
2774
|
+
}, errorFactory)) && ("string" === typeof input.text || $guard(_exceptionable, {
|
|
2775
|
+
path: _path + ".text",
|
|
2776
|
+
expected: "string",
|
|
2777
|
+
value: input.text
|
|
2778
|
+
}, errorFactory)) && ("number" === typeof input.start && !Number.isNaN(input.start) || $guard(_exceptionable, {
|
|
2779
|
+
path: _path + ".start",
|
|
2780
|
+
expected: "number",
|
|
2781
|
+
value: input.start
|
|
2782
|
+
}, errorFactory)) && ("number" === typeof input.end && !Number.isNaN(input.end) || $guard(_exceptionable, {
|
|
2783
|
+
path: _path + ".end",
|
|
2784
|
+
expected: "number",
|
|
2785
|
+
value: input.end
|
|
2786
|
+
}, errorFactory)) && ("string" === typeof input.file || $guard(_exceptionable, {
|
|
2787
|
+
path: _path + ".file",
|
|
2788
|
+
expected: "string",
|
|
2789
|
+
value: input.file
|
|
2790
|
+
}, errorFactory));
|
|
2791
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
2792
|
+
path: _path + "",
|
|
2793
|
+
expected: "MediaRestrictionsRecord",
|
|
2794
|
+
value: input
|
|
2795
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
2796
|
+
path: _path + "",
|
|
2797
|
+
expected: "MediaRestrictionsRecord",
|
|
2798
|
+
value: input
|
|
2799
|
+
}, errorFactory);
|
|
2800
|
+
})(input, "$input", true);
|
|
2801
|
+
return input;
|
|
2802
|
+
}; const stringify = input => {
|
|
2803
|
+
const $io1 = input => "string" === typeof input.asset && "string" === typeof input.date && "string" === typeof input.user && "string" === typeof input.text && "number" === typeof input.start && "number" === typeof input.end && "string" === typeof input.file;
|
|
2804
|
+
const $string = __typia.json.createAssertStringify.string;
|
|
2805
|
+
const $so0 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
2806
|
+
return ""; return `${JSON.stringify(key)}:${`{"asset":${$string(value.asset)},"date":${$string(value.date)},"user":${$string(value.user)},"text":${$string(value.text)},"start":${value.start},"end":${value.end},"file":${$string(value.file)}}`}`; }).filter(str => "" !== str).join(",")}}`;
|
|
2807
|
+
return $so0(input);
|
|
2808
|
+
}; return stringify(assert(input, errorFactory)); };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type AssertionGuard as __AssertionGuard } from "typia";
|
|
2
|
+
export interface PublishedDomainRecords {
|
|
3
|
+
[":published"]: PublishedRecord;
|
|
4
|
+
}
|
|
5
|
+
export interface PublishedRecord {
|
|
6
|
+
type: string;
|
|
7
|
+
parent: string;
|
|
8
|
+
asset: string;
|
|
9
|
+
time: number;
|
|
10
|
+
connection: string;
|
|
11
|
+
user?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const isPublishedRecord: (input: unknown) => input is PublishedRecord;
|
|
14
|
+
export declare const assertPublishedRecord: (input: unknown) => PublishedRecord;
|
|
15
|
+
export declare const randomPublishedRecord: () => PublishedRecord;
|
|
16
|
+
export declare const assertGuardPublishedRecord: __AssertionGuard<PublishedRecord>;
|
|
17
|
+
export declare const stringifyPublishedRecord: (input: PublishedRecord) => string;
|
|
18
|
+
export declare const assertStringifyPublishedRecord: (input: unknown) => string;
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import __typia from "typia";
|
|
2
|
+
export const isPublishedRecord = input => {
|
|
3
|
+
const $io0 = input => "string" === typeof input.type && "string" === typeof input.parent && "string" === typeof input.asset && "number" === typeof input.time && "string" === typeof input.connection && (undefined === input.user || "string" === typeof input.user);
|
|
4
|
+
return "object" === typeof input && null !== input && $io0(input);
|
|
5
|
+
};
|
|
6
|
+
export const assertPublishedRecord = (input, errorFactory) => {
|
|
7
|
+
const __is = input => {
|
|
8
|
+
const $io0 = input => "string" === typeof input.type && "string" === typeof input.parent && "string" === typeof input.asset && "number" === typeof input.time && "string" === typeof input.connection && (undefined === input.user || "string" === typeof input.user);
|
|
9
|
+
return "object" === typeof input && null !== input && $io0(input);
|
|
10
|
+
};
|
|
11
|
+
if (false === __is(input))
|
|
12
|
+
((input, _path, _exceptionable = true) => {
|
|
13
|
+
const $guard = __typia.createAssert.guard;
|
|
14
|
+
const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.type || $guard(_exceptionable, {
|
|
15
|
+
path: _path + ".type",
|
|
16
|
+
expected: "string",
|
|
17
|
+
value: input.type
|
|
18
|
+
}, errorFactory)) && ("string" === typeof input.parent || $guard(_exceptionable, {
|
|
19
|
+
path: _path + ".parent",
|
|
20
|
+
expected: "string",
|
|
21
|
+
value: input.parent
|
|
22
|
+
}, errorFactory)) && ("string" === typeof input.asset || $guard(_exceptionable, {
|
|
23
|
+
path: _path + ".asset",
|
|
24
|
+
expected: "string",
|
|
25
|
+
value: input.asset
|
|
26
|
+
}, errorFactory)) && ("number" === typeof input.time || $guard(_exceptionable, {
|
|
27
|
+
path: _path + ".time",
|
|
28
|
+
expected: "number",
|
|
29
|
+
value: input.time
|
|
30
|
+
}, errorFactory)) && ("string" === typeof input.connection || $guard(_exceptionable, {
|
|
31
|
+
path: _path + ".connection",
|
|
32
|
+
expected: "string",
|
|
33
|
+
value: input.connection
|
|
34
|
+
}, errorFactory)) && (undefined === input.user || "string" === typeof input.user || $guard(_exceptionable, {
|
|
35
|
+
path: _path + ".user",
|
|
36
|
+
expected: "(string | undefined)",
|
|
37
|
+
value: input.user
|
|
38
|
+
}, errorFactory));
|
|
39
|
+
return ("object" === typeof input && null !== input || $guard(true, {
|
|
40
|
+
path: _path + "",
|
|
41
|
+
expected: "PublishedRecord",
|
|
42
|
+
value: input
|
|
43
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
44
|
+
path: _path + "",
|
|
45
|
+
expected: "PublishedRecord",
|
|
46
|
+
value: input
|
|
47
|
+
}, errorFactory);
|
|
48
|
+
})(input, "$input", true);
|
|
49
|
+
return input;
|
|
50
|
+
};
|
|
51
|
+
export const randomPublishedRecord = generator => {
|
|
52
|
+
const $generator = __typia.createRandom.generator;
|
|
53
|
+
const $pick = __typia.createRandom.pick;
|
|
54
|
+
const $ro0 = (_recursive = false, _depth = 0) => ({
|
|
55
|
+
type: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
56
|
+
parent: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
57
|
+
asset: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
58
|
+
time: (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100),
|
|
59
|
+
connection: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
60
|
+
user: $pick([
|
|
61
|
+
() => undefined,
|
|
62
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
63
|
+
])()
|
|
64
|
+
});
|
|
65
|
+
return $ro0();
|
|
66
|
+
};
|
|
67
|
+
export const assertGuardPublishedRecord = (input, errorFactory) => {
|
|
68
|
+
const __is = input => {
|
|
69
|
+
const $io0 = input => "string" === typeof input.type && "string" === typeof input.parent && "string" === typeof input.asset && "number" === typeof input.time && "string" === typeof input.connection && (undefined === input.user || "string" === typeof input.user);
|
|
70
|
+
return "object" === typeof input && null !== input && $io0(input);
|
|
71
|
+
};
|
|
72
|
+
if (false === __is(input))
|
|
73
|
+
((input, _path, _exceptionable = true) => {
|
|
74
|
+
const $guard = __typia.createAssertGuard.guard;
|
|
75
|
+
const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.type || $guard(_exceptionable, {
|
|
76
|
+
path: _path + ".type",
|
|
77
|
+
expected: "string",
|
|
78
|
+
value: input.type
|
|
79
|
+
}, errorFactory)) && ("string" === typeof input.parent || $guard(_exceptionable, {
|
|
80
|
+
path: _path + ".parent",
|
|
81
|
+
expected: "string",
|
|
82
|
+
value: input.parent
|
|
83
|
+
}, errorFactory)) && ("string" === typeof input.asset || $guard(_exceptionable, {
|
|
84
|
+
path: _path + ".asset",
|
|
85
|
+
expected: "string",
|
|
86
|
+
value: input.asset
|
|
87
|
+
}, errorFactory)) && ("number" === typeof input.time || $guard(_exceptionable, {
|
|
88
|
+
path: _path + ".time",
|
|
89
|
+
expected: "number",
|
|
90
|
+
value: input.time
|
|
91
|
+
}, errorFactory)) && ("string" === typeof input.connection || $guard(_exceptionable, {
|
|
92
|
+
path: _path + ".connection",
|
|
93
|
+
expected: "string",
|
|
94
|
+
value: input.connection
|
|
95
|
+
}, errorFactory)) && (undefined === input.user || "string" === typeof input.user || $guard(_exceptionable, {
|
|
96
|
+
path: _path + ".user",
|
|
97
|
+
expected: "(string | undefined)",
|
|
98
|
+
value: input.user
|
|
99
|
+
}, errorFactory));
|
|
100
|
+
return ("object" === typeof input && null !== input || $guard(true, {
|
|
101
|
+
path: _path + "",
|
|
102
|
+
expected: "PublishedRecord",
|
|
103
|
+
value: input
|
|
104
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
105
|
+
path: _path + "",
|
|
106
|
+
expected: "PublishedRecord",
|
|
107
|
+
value: input
|
|
108
|
+
}, errorFactory);
|
|
109
|
+
})(input, "$input", true);
|
|
110
|
+
};
|
|
111
|
+
export const stringifyPublishedRecord = input => {
|
|
112
|
+
const $string = __typia.json.createStringify.string;
|
|
113
|
+
const $so0 = input => `{${undefined === input.user ? "" : `"user":${undefined !== input.user ? $string(input.user) : undefined},`}"type":${$string(input.type)},"parent":${$string(input.parent)},"asset":${$string(input.asset)},"time":${input.time},"connection":${$string(input.connection)}}`;
|
|
114
|
+
return $so0(input);
|
|
115
|
+
};
|
|
116
|
+
export const assertStringifyPublishedRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
117
|
+
const __is = input => {
|
|
118
|
+
const $io0 = input => "string" === typeof input.type && "string" === typeof input.parent && "string" === typeof input.asset && ("number" === typeof input.time && !Number.isNaN(input.time)) && "string" === typeof input.connection && (undefined === input.user || "string" === typeof input.user);
|
|
119
|
+
return "object" === typeof input && null !== input && $io0(input);
|
|
120
|
+
};
|
|
121
|
+
if (false === __is(input))
|
|
122
|
+
((input, _path, _exceptionable = true) => {
|
|
123
|
+
const $guard = __typia.json.createAssertStringify.guard;
|
|
124
|
+
const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.type || $guard(_exceptionable, {
|
|
125
|
+
path: _path + ".type",
|
|
126
|
+
expected: "string",
|
|
127
|
+
value: input.type
|
|
128
|
+
}, errorFactory)) && ("string" === typeof input.parent || $guard(_exceptionable, {
|
|
129
|
+
path: _path + ".parent",
|
|
130
|
+
expected: "string",
|
|
131
|
+
value: input.parent
|
|
132
|
+
}, errorFactory)) && ("string" === typeof input.asset || $guard(_exceptionable, {
|
|
133
|
+
path: _path + ".asset",
|
|
134
|
+
expected: "string",
|
|
135
|
+
value: input.asset
|
|
136
|
+
}, errorFactory)) && ("number" === typeof input.time && !Number.isNaN(input.time) || $guard(_exceptionable, {
|
|
137
|
+
path: _path + ".time",
|
|
138
|
+
expected: "number",
|
|
139
|
+
value: input.time
|
|
140
|
+
}, errorFactory)) && ("string" === typeof input.connection || $guard(_exceptionable, {
|
|
141
|
+
path: _path + ".connection",
|
|
142
|
+
expected: "string",
|
|
143
|
+
value: input.connection
|
|
144
|
+
}, errorFactory)) && (undefined === input.user || "string" === typeof input.user || $guard(_exceptionable, {
|
|
145
|
+
path: _path + ".user",
|
|
146
|
+
expected: "(string | undefined)",
|
|
147
|
+
value: input.user
|
|
148
|
+
}, errorFactory));
|
|
149
|
+
return ("object" === typeof input && null !== input || $guard(true, {
|
|
150
|
+
path: _path + "",
|
|
151
|
+
expected: "PublishedRecord",
|
|
152
|
+
value: input
|
|
153
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
154
|
+
path: _path + "",
|
|
155
|
+
expected: "PublishedRecord",
|
|
156
|
+
value: input
|
|
157
|
+
}, errorFactory);
|
|
158
|
+
})(input, "$input", true);
|
|
159
|
+
return input;
|
|
160
|
+
}; const stringify = input => {
|
|
161
|
+
const $string = __typia.json.createAssertStringify.string;
|
|
162
|
+
const $so0 = input => `{${undefined === input.user ? "" : `"user":${undefined !== input.user ? $string(input.user) : undefined},`}"type":${$string(input.type)},"parent":${$string(input.parent)},"asset":${$string(input.asset)},"time":${input.time},"connection":${$string(input.connection)}}`;
|
|
163
|
+
return $so0(input);
|
|
164
|
+
}; return stringify(assert(input, errorFactory)); };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type AssertionGuard as __AssertionGuard } from "typia";
|
|
2
|
+
export interface RevsDomainRecords {
|
|
3
|
+
":revs?": RevsRecord;
|
|
4
|
+
}
|
|
5
|
+
export interface RevsRecord {
|
|
6
|
+
value?: string[];
|
|
7
|
+
}
|
|
8
|
+
export declare const isRevsRecord: (input: unknown) => input is RevsRecord;
|
|
9
|
+
export declare const assertRevsRecord: (input: unknown) => RevsRecord;
|
|
10
|
+
export declare const randomRevsRecord: () => RevsRecord;
|
|
11
|
+
export declare const assertGuardRevsRecord: __AssertionGuard<RevsRecord>;
|
|
12
|
+
export declare const stringifyRevsRecord: (input: RevsRecord) => string;
|
|
13
|
+
export declare const assertStringifyRevsRecord: (input: unknown) => string;
|