@nxtedition/types 23.0.13 → 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/common/settings.d.ts +7 -4
- package/dist/common/settings.js +468 -393
- package/dist/domains/comment.d.ts +1 -1
- package/dist/domains/comment.js +16 -15
- package/dist/domains/settings.js +466 -389
- package/dist/schema.json +18 -0
- package/package.json +1 -1
package/dist/domains/comment.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import __typia from "typia";
|
|
2
2
|
export const isCommentDomainCommentRecord = input => {
|
|
3
|
-
const $io0 = input => (undefined === input.asset || "string" === typeof input.asset) && (undefined === input.content || "object" === typeof input.content && null !== input.content && $io1(input.content)) && (null === input.mediaRevisionId || undefined === input.mediaRevisionId || "string" === typeof input.mediaRevisionId) && (undefined === input.timecode || "object" === typeof input.timecode && null !== input.timecode && $io8(input.timecode)) && (undefined === input.replyTo || "string" === typeof input.replyTo);
|
|
3
|
+
const $io0 = input => (undefined === input.asset || "string" === typeof input.asset) && (null === input.content || undefined === input.content || "object" === typeof input.content && null !== input.content && $io1(input.content)) && (null === input.mediaRevisionId || undefined === input.mediaRevisionId || "string" === typeof input.mediaRevisionId) && (undefined === input.timecode || "object" === typeof input.timecode && null !== input.timecode && $io8(input.timecode)) && (undefined === input.replyTo || "string" === typeof input.replyTo);
|
|
4
4
|
const $io1 = input => "root" === input.type && 1 === input.version && "string" === typeof input.direction && "string" === typeof input.format && "number" === typeof input.indent && (Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && $iu0(elem)));
|
|
5
5
|
const $io2 = input => "paragraph" === input.type && 1 === input.version && "string" === typeof input.direction && "string" === typeof input.format && "number" === typeof input.indent && "number" === typeof input.textFormat && "string" === typeof input.textStyle && (Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && $iu0(elem)));
|
|
6
6
|
const $io3 = input => "text" === input.type && 1 === input.version && "number" === typeof input.detail && "number" === typeof input.format && "string" === typeof input.mode && "string" === typeof input.style && "string" === typeof input.text;
|
|
@@ -31,7 +31,7 @@ export const isCommentDomainCommentRecord = input => {
|
|
|
31
31
|
};
|
|
32
32
|
export const assertCommentDomainCommentRecord = (input, errorFactory) => {
|
|
33
33
|
const __is = input => {
|
|
34
|
-
const $io0 = input => (undefined === input.asset || "string" === typeof input.asset) && (undefined === input.content || "object" === typeof input.content && null !== input.content && $io1(input.content)) && (null === input.mediaRevisionId || undefined === input.mediaRevisionId || "string" === typeof input.mediaRevisionId) && (undefined === input.timecode || "object" === typeof input.timecode && null !== input.timecode && $io8(input.timecode)) && (undefined === input.replyTo || "string" === typeof input.replyTo);
|
|
34
|
+
const $io0 = input => (undefined === input.asset || "string" === typeof input.asset) && (null === input.content || undefined === input.content || "object" === typeof input.content && null !== input.content && $io1(input.content)) && (null === input.mediaRevisionId || undefined === input.mediaRevisionId || "string" === typeof input.mediaRevisionId) && (undefined === input.timecode || "object" === typeof input.timecode && null !== input.timecode && $io8(input.timecode)) && (undefined === input.replyTo || "string" === typeof input.replyTo);
|
|
35
35
|
const $io1 = input => "root" === input.type && 1 === input.version && "string" === typeof input.direction && "string" === typeof input.format && "number" === typeof input.indent && (Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && $iu0(elem)));
|
|
36
36
|
const $io2 = input => "paragraph" === input.type && 1 === input.version && "string" === typeof input.direction && "string" === typeof input.format && "number" === typeof input.indent && "number" === typeof input.textFormat && "string" === typeof input.textStyle && (Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && $iu0(elem)));
|
|
37
37
|
const $io3 = input => "text" === input.type && 1 === input.version && "number" === typeof input.detail && "number" === typeof input.format && "string" === typeof input.mode && "string" === typeof input.style && "string" === typeof input.text;
|
|
@@ -67,13 +67,13 @@ export const assertCommentDomainCommentRecord = (input, errorFactory) => {
|
|
|
67
67
|
path: _path + ".asset",
|
|
68
68
|
expected: "(string | undefined)",
|
|
69
69
|
value: input.asset
|
|
70
|
-
}, errorFactory)) && (undefined === input.content || ("object" === typeof input.content && null !== input.content || $guard(_exceptionable, {
|
|
70
|
+
}, errorFactory)) && (null === input.content || undefined === input.content || ("object" === typeof input.content && null !== input.content || $guard(_exceptionable, {
|
|
71
71
|
path: _path + ".content",
|
|
72
|
-
expected: "(SerializedRootNode | undefined)",
|
|
72
|
+
expected: "(SerializedRootNode | null | undefined)",
|
|
73
73
|
value: input.content
|
|
74
74
|
}, errorFactory)) && $ao1(input.content, _path + ".content", true && _exceptionable) || $guard(_exceptionable, {
|
|
75
75
|
path: _path + ".content",
|
|
76
|
-
expected: "(SerializedRootNode | undefined)",
|
|
76
|
+
expected: "(SerializedRootNode | null | undefined)",
|
|
77
77
|
value: input.content
|
|
78
78
|
}, errorFactory)) && (null === input.mediaRevisionId || undefined === input.mediaRevisionId || "string" === typeof input.mediaRevisionId || $guard(_exceptionable, {
|
|
79
79
|
path: _path + ".mediaRevisionId",
|
|
@@ -324,6 +324,7 @@ export const randomCommentDomainCommentRecord = generator => {
|
|
|
324
324
|
])(),
|
|
325
325
|
content: $pick([
|
|
326
326
|
() => undefined,
|
|
327
|
+
() => null,
|
|
327
328
|
() => $ro1(_recursive, _recursive ? 1 + _depth : _depth)
|
|
328
329
|
])(),
|
|
329
330
|
mediaRevisionId: $pick([
|
|
@@ -418,7 +419,7 @@ export const randomCommentDomainCommentRecord = generator => {
|
|
|
418
419
|
};
|
|
419
420
|
export const assertGuardCommentDomainCommentRecord = (input, errorFactory) => {
|
|
420
421
|
const __is = input => {
|
|
421
|
-
const $io0 = input => (undefined === input.asset || "string" === typeof input.asset) && (undefined === input.content || "object" === typeof input.content && null !== input.content && $io1(input.content)) && (null === input.mediaRevisionId || undefined === input.mediaRevisionId || "string" === typeof input.mediaRevisionId) && (undefined === input.timecode || "object" === typeof input.timecode && null !== input.timecode && $io8(input.timecode)) && (undefined === input.replyTo || "string" === typeof input.replyTo);
|
|
422
|
+
const $io0 = input => (undefined === input.asset || "string" === typeof input.asset) && (null === input.content || undefined === input.content || "object" === typeof input.content && null !== input.content && $io1(input.content)) && (null === input.mediaRevisionId || undefined === input.mediaRevisionId || "string" === typeof input.mediaRevisionId) && (undefined === input.timecode || "object" === typeof input.timecode && null !== input.timecode && $io8(input.timecode)) && (undefined === input.replyTo || "string" === typeof input.replyTo);
|
|
422
423
|
const $io1 = input => "root" === input.type && 1 === input.version && "string" === typeof input.direction && "string" === typeof input.format && "number" === typeof input.indent && (Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && $iu0(elem)));
|
|
423
424
|
const $io2 = input => "paragraph" === input.type && 1 === input.version && "string" === typeof input.direction && "string" === typeof input.format && "number" === typeof input.indent && "number" === typeof input.textFormat && "string" === typeof input.textStyle && (Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && $iu0(elem)));
|
|
424
425
|
const $io3 = input => "text" === input.type && 1 === input.version && "number" === typeof input.detail && "number" === typeof input.format && "string" === typeof input.mode && "string" === typeof input.style && "string" === typeof input.text;
|
|
@@ -454,13 +455,13 @@ export const assertGuardCommentDomainCommentRecord = (input, errorFactory) => {
|
|
|
454
455
|
path: _path + ".asset",
|
|
455
456
|
expected: "(string | undefined)",
|
|
456
457
|
value: input.asset
|
|
457
|
-
}, errorFactory)) && (undefined === input.content || ("object" === typeof input.content && null !== input.content || $guard(_exceptionable, {
|
|
458
|
+
}, errorFactory)) && (null === input.content || undefined === input.content || ("object" === typeof input.content && null !== input.content || $guard(_exceptionable, {
|
|
458
459
|
path: _path + ".content",
|
|
459
|
-
expected: "(SerializedRootNode | undefined)",
|
|
460
|
+
expected: "(SerializedRootNode | null | undefined)",
|
|
460
461
|
value: input.content
|
|
461
462
|
}, errorFactory)) && $ao1(input.content, _path + ".content", true && _exceptionable) || $guard(_exceptionable, {
|
|
462
463
|
path: _path + ".content",
|
|
463
|
-
expected: "(SerializedRootNode | undefined)",
|
|
464
|
+
expected: "(SerializedRootNode | null | undefined)",
|
|
464
465
|
value: input.content
|
|
465
466
|
}, errorFactory)) && (null === input.mediaRevisionId || undefined === input.mediaRevisionId || "string" === typeof input.mediaRevisionId || $guard(_exceptionable, {
|
|
466
467
|
path: _path + ".mediaRevisionId",
|
|
@@ -730,7 +731,7 @@ export const stringifyCommentDomainCommentRecord = input => {
|
|
|
730
731
|
const $string = __typia.json.createStringify.string;
|
|
731
732
|
const $tail = __typia.json.createStringify.tail;
|
|
732
733
|
const $throws = __typia.json.createStringify.throws;
|
|
733
|
-
const $so0 = input => `{${$tail(`${undefined === input.asset ? "" : `"asset":${undefined !== input.asset ? $string(input.asset) : undefined},`}${undefined === input.content ? "" : `"content":${undefined !== input.content ? $so1(input.content) : undefined},`}${undefined === input.mediaRevisionId ? "" : `"mediaRevisionId":${undefined !== input.mediaRevisionId ? null !== input.mediaRevisionId ? $string(input.mediaRevisionId) : "null" : undefined},`}${undefined === input.timecode ? "" : `"timecode":${undefined !== input.timecode ? $so8(input.timecode) : undefined},`}${undefined === input.replyTo ? "" : `"replyTo":${undefined !== input.replyTo ? $string(input.replyTo) : undefined}`}`)}}`;
|
|
734
|
+
const $so0 = input => `{${$tail(`${undefined === input.asset ? "" : `"asset":${undefined !== input.asset ? $string(input.asset) : undefined},`}${undefined === input.content ? "" : `"content":${undefined !== input.content ? null !== input.content ? $so1(input.content) : "null" : undefined},`}${undefined === input.mediaRevisionId ? "" : `"mediaRevisionId":${undefined !== input.mediaRevisionId ? null !== input.mediaRevisionId ? $string(input.mediaRevisionId) : "null" : undefined},`}${undefined === input.timecode ? "" : `"timecode":${undefined !== input.timecode ? $so8(input.timecode) : undefined},`}${undefined === input.replyTo ? "" : `"replyTo":${undefined !== input.replyTo ? $string(input.replyTo) : undefined}`}`)}}`;
|
|
734
735
|
const $so1 = input => `{"type":${(() => {
|
|
735
736
|
if ("string" === typeof input.type)
|
|
736
737
|
return $string(input.type);
|
|
@@ -827,7 +828,7 @@ export const stringifyCommentDomainCommentRecord = input => {
|
|
|
827
828
|
};
|
|
828
829
|
export const assertStringifyCommentDomainCommentRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
829
830
|
const __is = input => {
|
|
830
|
-
const $io0 = input => (undefined === input.asset || "string" === typeof input.asset) && (undefined === input.content || "object" === typeof input.content && null !== input.content && $io1(input.content)) && (null === input.mediaRevisionId || undefined === input.mediaRevisionId || "string" === typeof input.mediaRevisionId) && (undefined === input.timecode || "object" === typeof input.timecode && null !== input.timecode && $io8(input.timecode)) && (undefined === input.replyTo || "string" === typeof input.replyTo);
|
|
831
|
+
const $io0 = input => (undefined === input.asset || "string" === typeof input.asset) && (null === input.content || undefined === input.content || "object" === typeof input.content && null !== input.content && $io1(input.content)) && (null === input.mediaRevisionId || undefined === input.mediaRevisionId || "string" === typeof input.mediaRevisionId) && (undefined === input.timecode || "object" === typeof input.timecode && null !== input.timecode && $io8(input.timecode)) && (undefined === input.replyTo || "string" === typeof input.replyTo);
|
|
831
832
|
const $io1 = input => "root" === input.type && 1 === input.version && "string" === typeof input.direction && "string" === typeof input.format && ("number" === typeof input.indent && !Number.isNaN(input.indent)) && (Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && $iu0(elem)));
|
|
832
833
|
const $io2 = input => "paragraph" === input.type && 1 === input.version && "string" === typeof input.direction && "string" === typeof input.format && ("number" === typeof input.indent && !Number.isNaN(input.indent)) && ("number" === typeof input.textFormat && !Number.isNaN(input.textFormat)) && "string" === typeof input.textStyle && (Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && $iu0(elem)));
|
|
833
834
|
const $io3 = input => "text" === input.type && 1 === input.version && ("number" === typeof input.detail && !Number.isNaN(input.detail)) && ("number" === typeof input.format && !Number.isNaN(input.format)) && "string" === typeof input.mode && "string" === typeof input.style && "string" === typeof input.text;
|
|
@@ -863,13 +864,13 @@ export const assertStringifyCommentDomainCommentRecord = (input, errorFactory) =
|
|
|
863
864
|
path: _path + ".asset",
|
|
864
865
|
expected: "(string | undefined)",
|
|
865
866
|
value: input.asset
|
|
866
|
-
}, errorFactory)) && (undefined === input.content || ("object" === typeof input.content && null !== input.content || $guard(_exceptionable, {
|
|
867
|
+
}, errorFactory)) && (null === input.content || undefined === input.content || ("object" === typeof input.content && null !== input.content || $guard(_exceptionable, {
|
|
867
868
|
path: _path + ".content",
|
|
868
|
-
expected: "(SerializedRootNode | undefined)",
|
|
869
|
+
expected: "(SerializedRootNode | null | undefined)",
|
|
869
870
|
value: input.content
|
|
870
871
|
}, errorFactory)) && $ao1(input.content, _path + ".content", true && _exceptionable) || $guard(_exceptionable, {
|
|
871
872
|
path: _path + ".content",
|
|
872
|
-
expected: "(SerializedRootNode | undefined)",
|
|
873
|
+
expected: "(SerializedRootNode | null | undefined)",
|
|
873
874
|
value: input.content
|
|
874
875
|
}, errorFactory)) && (null === input.mediaRevisionId || undefined === input.mediaRevisionId || "string" === typeof input.mediaRevisionId || $guard(_exceptionable, {
|
|
875
876
|
path: _path + ".mediaRevisionId",
|
|
@@ -1139,7 +1140,7 @@ export const assertStringifyCommentDomainCommentRecord = (input, errorFactory) =
|
|
|
1139
1140
|
const $string = __typia.json.createAssertStringify.string;
|
|
1140
1141
|
const $tail = __typia.json.createAssertStringify.tail;
|
|
1141
1142
|
const $throws = __typia.json.createAssertStringify.throws;
|
|
1142
|
-
const $so0 = input => `{${$tail(`${undefined === input.asset ? "" : `"asset":${undefined !== input.asset ? $string(input.asset) : undefined},`}${undefined === input.content ? "" : `"content":${undefined !== input.content ? $so1(input.content) : undefined},`}${undefined === input.mediaRevisionId ? "" : `"mediaRevisionId":${undefined !== input.mediaRevisionId ? null !== input.mediaRevisionId ? $string(input.mediaRevisionId) : "null" : undefined},`}${undefined === input.timecode ? "" : `"timecode":${undefined !== input.timecode ? $so8(input.timecode) : undefined},`}${undefined === input.replyTo ? "" : `"replyTo":${undefined !== input.replyTo ? $string(input.replyTo) : undefined}`}`)}}`;
|
|
1143
|
+
const $so0 = input => `{${$tail(`${undefined === input.asset ? "" : `"asset":${undefined !== input.asset ? $string(input.asset) : undefined},`}${undefined === input.content ? "" : `"content":${undefined !== input.content ? null !== input.content ? $so1(input.content) : "null" : undefined},`}${undefined === input.mediaRevisionId ? "" : `"mediaRevisionId":${undefined !== input.mediaRevisionId ? null !== input.mediaRevisionId ? $string(input.mediaRevisionId) : "null" : undefined},`}${undefined === input.timecode ? "" : `"timecode":${undefined !== input.timecode ? $so8(input.timecode) : undefined},`}${undefined === input.replyTo ? "" : `"replyTo":${undefined !== input.replyTo ? $string(input.replyTo) : undefined}`}`)}}`;
|
|
1143
1144
|
const $so1 = input => `{"type":${(() => {
|
|
1144
1145
|
if ("string" === typeof input.type)
|
|
1145
1146
|
return $string(input.type);
|