@nxtedition/types 23.0.20 → 23.0.22

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.
@@ -117,6 +117,7 @@ export declare const assertGuardMediaRestrictionsRecord: __AssertionGuard<MediaR
117
117
  export declare const stringifyMediaRestrictionsRecord: (input: MediaRestrictionsRecord) => string;
118
118
  export declare const assertStringifyMediaRestrictionsRecord: (input: unknown) => string;
119
119
  export interface MediaProbeRecord {
120
+ duration?: number | null;
120
121
  error: NxtError | null;
121
122
  type: MediaType;
122
123
  }
@@ -3028,7 +3028,7 @@ export const assertStringifyMediaRestrictionsRecord = (input, errorFactory) => {
3028
3028
  return $so0(input);
3029
3029
  }; return stringify(assert(input, errorFactory)); };
3030
3030
  export const isMediaProbeRecord = input => {
3031
- const $io0 = input => (null === input.error || "object" === typeof input.error && null !== input.error && $io1(input.error)) && ("audio" === input.type || "video" === input.type || "image" === input.type);
3031
+ const $io0 = input => (null === input.duration || undefined === input.duration || "number" === typeof input.duration) && (null === input.error || "object" === typeof input.error && null !== input.error && $io1(input.error)) && ("audio" === input.type || "video" === input.type || "image" === input.type);
3032
3032
  const $io1 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io2(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io3(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io1(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
3033
3033
  const $io2 = input => Object.keys(input).every(key => {
3034
3034
  const value = input[key];
@@ -3041,7 +3041,7 @@ export const isMediaProbeRecord = input => {
3041
3041
  };
3042
3042
  export const assertMediaProbeRecord = (input, errorFactory) => {
3043
3043
  const __is = input => {
3044
- const $io0 = input => (null === input.error || "object" === typeof input.error && null !== input.error && $io1(input.error)) && ("audio" === input.type || "video" === input.type || "image" === input.type);
3044
+ const $io0 = input => (null === input.duration || undefined === input.duration || "number" === typeof input.duration) && (null === input.error || "object" === typeof input.error && null !== input.error && $io1(input.error)) && ("audio" === input.type || "video" === input.type || "image" === input.type);
3045
3045
  const $io1 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io2(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io3(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io1(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
3046
3046
  const $io2 = input => Object.keys(input).every(key => {
3047
3047
  const value = input[key];
@@ -3056,7 +3056,11 @@ export const assertMediaProbeRecord = (input, errorFactory) => {
3056
3056
  ((input, _path, _exceptionable = true) => {
3057
3057
  const $guard = __typia.createAssert.guard;
3058
3058
  const $join = __typia.createAssert.join;
3059
- const $ao0 = (input, _path, _exceptionable = true) => (null === input.error || ("object" === typeof input.error && null !== input.error || $guard(_exceptionable, {
3059
+ const $ao0 = (input, _path, _exceptionable = true) => (null === input.duration || undefined === input.duration || "number" === typeof input.duration || $guard(_exceptionable, {
3060
+ path: _path + ".duration",
3061
+ expected: "(null | number | undefined)",
3062
+ value: input.duration
3063
+ }, errorFactory)) && (null === input.error || ("object" === typeof input.error && null !== input.error || $guard(_exceptionable, {
3060
3064
  path: _path + ".error",
3061
3065
  expected: "(NxtError | null)",
3062
3066
  value: input.error
@@ -3158,9 +3162,14 @@ export const assertMediaProbeRecord = (input, errorFactory) => {
3158
3162
  return input;
3159
3163
  };
3160
3164
  export const randomMediaProbeRecord = generator => {
3161
- const $pick = __typia.createRandom.pick;
3162
3165
  const $generator = __typia.createRandom.generator;
3166
+ const $pick = __typia.createRandom.pick;
3163
3167
  const $ro0 = (_recursive = false, _depth = 0) => ({
3168
+ duration: $pick([
3169
+ () => undefined,
3170
+ () => null,
3171
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
3172
+ ])(),
3164
3173
  error: $pick([
3165
3174
  () => null,
3166
3175
  () => $ro1(_recursive, _recursive ? 1 + _depth : _depth)
@@ -3222,7 +3231,7 @@ export const randomMediaProbeRecord = generator => {
3222
3231
  };
3223
3232
  export const assertGuardMediaProbeRecord = (input, errorFactory) => {
3224
3233
  const __is = input => {
3225
- const $io0 = input => (null === input.error || "object" === typeof input.error && null !== input.error && $io1(input.error)) && ("audio" === input.type || "video" === input.type || "image" === input.type);
3234
+ const $io0 = input => (null === input.duration || undefined === input.duration || "number" === typeof input.duration) && (null === input.error || "object" === typeof input.error && null !== input.error && $io1(input.error)) && ("audio" === input.type || "video" === input.type || "image" === input.type);
3226
3235
  const $io1 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io2(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io3(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io1(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
3227
3236
  const $io2 = input => Object.keys(input).every(key => {
3228
3237
  const value = input[key];
@@ -3237,7 +3246,11 @@ export const assertGuardMediaProbeRecord = (input, errorFactory) => {
3237
3246
  ((input, _path, _exceptionable = true) => {
3238
3247
  const $guard = __typia.createAssertGuard.guard;
3239
3248
  const $join = __typia.createAssertGuard.join;
3240
- const $ao0 = (input, _path, _exceptionable = true) => (null === input.error || ("object" === typeof input.error && null !== input.error || $guard(_exceptionable, {
3249
+ const $ao0 = (input, _path, _exceptionable = true) => (null === input.duration || undefined === input.duration || "number" === typeof input.duration || $guard(_exceptionable, {
3250
+ path: _path + ".duration",
3251
+ expected: "(null | number | undefined)",
3252
+ value: input.duration
3253
+ }, errorFactory)) && (null === input.error || ("object" === typeof input.error && null !== input.error || $guard(_exceptionable, {
3241
3254
  path: _path + ".error",
3242
3255
  expected: "(NxtError | null)",
3243
3256
  value: input.error
@@ -3348,7 +3361,7 @@ export const stringifyMediaProbeRecord = input => {
3348
3361
  const $io3 = input => true;
3349
3362
  const $string = __typia.json.createStringify.string;
3350
3363
  const $throws = __typia.json.createStringify.throws;
3351
- const $so0 = input => `{"error":${null !== input.error ? $so1(input.error) : "null"},"type":${(() => {
3364
+ const $so0 = input => `{${undefined === input.duration ? "" : `"duration":${undefined !== input.duration ? null !== input.duration ? input.duration : "null" : undefined},`}"error":${null !== input.error ? $so1(input.error) : "null"},"type":${(() => {
3352
3365
  if ("string" === typeof input.type)
3353
3366
  return $string(input.type);
3354
3367
  if ("string" === typeof input.type)
@@ -3365,7 +3378,7 @@ export const stringifyMediaProbeRecord = input => {
3365
3378
  };
3366
3379
  export const assertStringifyMediaProbeRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
3367
3380
  const __is = input => {
3368
- const $io0 = input => (null === input.error || "object" === typeof input.error && null !== input.error && $io1(input.error)) && ("audio" === input.type || "video" === input.type || "image" === input.type);
3381
+ const $io0 = input => (null === input.duration || undefined === input.duration || "number" === typeof input.duration && !Number.isNaN(input.duration)) && (null === input.error || "object" === typeof input.error && null !== input.error && $io1(input.error)) && ("audio" === input.type || "video" === input.type || "image" === input.type);
3369
3382
  const $io1 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode && !Number.isNaN(input.exitCode)) && (undefined === input.signalCode || "number" === typeof input.signalCode && !Number.isNaN(input.signalCode)) && (undefined === input.statusCode || "number" === typeof input.statusCode && !Number.isNaN(input.statusCode)) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io2(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io3(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io1(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
3370
3383
  const $io2 = input => Object.keys(input).every(key => {
3371
3384
  const value = input[key];
@@ -3380,7 +3393,11 @@ export const assertStringifyMediaProbeRecord = (input, errorFactory) => { const
3380
3393
  ((input, _path, _exceptionable = true) => {
3381
3394
  const $guard = __typia.json.createAssertStringify.guard;
3382
3395
  const $join = __typia.json.createAssertStringify.join;
3383
- const $ao0 = (input, _path, _exceptionable = true) => (null === input.error || ("object" === typeof input.error && null !== input.error || $guard(_exceptionable, {
3396
+ const $ao0 = (input, _path, _exceptionable = true) => (null === input.duration || undefined === input.duration || "number" === typeof input.duration && !Number.isNaN(input.duration) || $guard(_exceptionable, {
3397
+ path: _path + ".duration",
3398
+ expected: "(null | number | undefined)",
3399
+ value: input.duration
3400
+ }, errorFactory)) && (null === input.error || ("object" === typeof input.error && null !== input.error || $guard(_exceptionable, {
3384
3401
  path: _path + ".error",
3385
3402
  expected: "(NxtError | null)",
3386
3403
  value: input.error
@@ -3491,7 +3508,7 @@ export const assertStringifyMediaProbeRecord = (input, errorFactory) => { const
3491
3508
  const $io3 = input => true;
3492
3509
  const $string = __typia.json.createAssertStringify.string;
3493
3510
  const $throws = __typia.json.createAssertStringify.throws;
3494
- const $so0 = input => `{"error":${null !== input.error ? $so1(input.error) : "null"},"type":${(() => {
3511
+ const $so0 = input => `{${undefined === input.duration ? "" : `"duration":${undefined !== input.duration ? null !== input.duration ? input.duration : "null" : undefined},`}"error":${null !== input.error ? $so1(input.error) : "null"},"type":${(() => {
3495
3512
  if ("string" === typeof input.type)
3496
3513
  return $string(input.type);
3497
3514
  if ("string" === typeof input.type)
@@ -5,6 +5,7 @@ export interface PipelineDomainRecords {
5
5
  }
6
6
  export interface PipelineDomainRecord {
7
7
  dummy?: boolean;
8
+ assetType?: "pipeline" | "collection";
8
9
  preset?: string;
9
10
  color?: string;
10
11
  tags?: string[];
@@ -1,6 +1,6 @@
1
1
  import __typia from "typia";
2
2
  export const isPipelineDomainRecord = input => {
3
- const $io0 = input => (undefined === input.dummy || "boolean" === typeof input.dummy) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.color || "string" === typeof input.color) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.type || "string" === typeof input.type) && (undefined === input.bookmarkId || "string" === typeof input.bookmarkId) && (undefined === input.hiddenCreateMenuItems || "object" === typeof input.hiddenCreateMenuItems && null !== input.hiddenCreateMenuItems && false === Array.isArray(input.hiddenCreateMenuItems) && $io1(input.hiddenCreateMenuItems));
3
+ const $io0 = input => (undefined === input.dummy || "boolean" === typeof input.dummy) && (undefined === input.assetType || "pipeline" === input.assetType || "collection" === input.assetType) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.color || "string" === typeof input.color) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.type || "string" === typeof input.type) && (undefined === input.bookmarkId || "string" === typeof input.bookmarkId) && (undefined === input.hiddenCreateMenuItems || "object" === typeof input.hiddenCreateMenuItems && null !== input.hiddenCreateMenuItems && false === Array.isArray(input.hiddenCreateMenuItems) && $io1(input.hiddenCreateMenuItems));
4
4
  const $io1 = input => Object.keys(input).every(key => {
5
5
  const value = input[key];
6
6
  if (undefined === value)
@@ -11,7 +11,7 @@ export const isPipelineDomainRecord = input => {
11
11
  };
12
12
  export const assertPipelineDomainRecord = (input, errorFactory) => {
13
13
  const __is = input => {
14
- const $io0 = input => (undefined === input.dummy || "boolean" === typeof input.dummy) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.color || "string" === typeof input.color) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.type || "string" === typeof input.type) && (undefined === input.bookmarkId || "string" === typeof input.bookmarkId) && (undefined === input.hiddenCreateMenuItems || "object" === typeof input.hiddenCreateMenuItems && null !== input.hiddenCreateMenuItems && false === Array.isArray(input.hiddenCreateMenuItems) && $io1(input.hiddenCreateMenuItems));
14
+ const $io0 = input => (undefined === input.dummy || "boolean" === typeof input.dummy) && (undefined === input.assetType || "pipeline" === input.assetType || "collection" === input.assetType) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.color || "string" === typeof input.color) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.type || "string" === typeof input.type) && (undefined === input.bookmarkId || "string" === typeof input.bookmarkId) && (undefined === input.hiddenCreateMenuItems || "object" === typeof input.hiddenCreateMenuItems && null !== input.hiddenCreateMenuItems && false === Array.isArray(input.hiddenCreateMenuItems) && $io1(input.hiddenCreateMenuItems));
15
15
  const $io1 = input => Object.keys(input).every(key => {
16
16
  const value = input[key];
17
17
  if (undefined === value)
@@ -28,6 +28,10 @@ export const assertPipelineDomainRecord = (input, errorFactory) => {
28
28
  path: _path + ".dummy",
29
29
  expected: "(boolean | undefined)",
30
30
  value: input.dummy
31
+ }, errorFactory)) && (undefined === input.assetType || "pipeline" === input.assetType || "collection" === input.assetType || $guard(_exceptionable, {
32
+ path: _path + ".assetType",
33
+ expected: "(\"collection\" | \"pipeline\" | undefined)",
34
+ value: input.assetType
31
35
  }, errorFactory)) && (undefined === input.preset || "string" === typeof input.preset || $guard(_exceptionable, {
32
36
  path: _path + ".preset",
33
37
  expected: "(string | undefined)",
@@ -91,6 +95,11 @@ export const randomPipelineDomainRecord = generator => {
91
95
  () => undefined,
92
96
  () => (generator?.boolean ?? $generator.boolean)()
93
97
  ])(),
98
+ assetType: $pick([
99
+ () => undefined,
100
+ () => "pipeline",
101
+ () => "collection"
102
+ ])(),
94
103
  preset: $pick([
95
104
  () => undefined,
96
105
  () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
@@ -125,7 +134,7 @@ export const randomPipelineDomainRecord = generator => {
125
134
  };
126
135
  export const assertGuardPipelineDomainRecord = (input, errorFactory) => {
127
136
  const __is = input => {
128
- const $io0 = input => (undefined === input.dummy || "boolean" === typeof input.dummy) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.color || "string" === typeof input.color) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.type || "string" === typeof input.type) && (undefined === input.bookmarkId || "string" === typeof input.bookmarkId) && (undefined === input.hiddenCreateMenuItems || "object" === typeof input.hiddenCreateMenuItems && null !== input.hiddenCreateMenuItems && false === Array.isArray(input.hiddenCreateMenuItems) && $io1(input.hiddenCreateMenuItems));
137
+ const $io0 = input => (undefined === input.dummy || "boolean" === typeof input.dummy) && (undefined === input.assetType || "pipeline" === input.assetType || "collection" === input.assetType) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.color || "string" === typeof input.color) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.type || "string" === typeof input.type) && (undefined === input.bookmarkId || "string" === typeof input.bookmarkId) && (undefined === input.hiddenCreateMenuItems || "object" === typeof input.hiddenCreateMenuItems && null !== input.hiddenCreateMenuItems && false === Array.isArray(input.hiddenCreateMenuItems) && $io1(input.hiddenCreateMenuItems));
129
138
  const $io1 = input => Object.keys(input).every(key => {
130
139
  const value = input[key];
131
140
  if (undefined === value)
@@ -142,6 +151,10 @@ export const assertGuardPipelineDomainRecord = (input, errorFactory) => {
142
151
  path: _path + ".dummy",
143
152
  expected: "(boolean | undefined)",
144
153
  value: input.dummy
154
+ }, errorFactory)) && (undefined === input.assetType || "pipeline" === input.assetType || "collection" === input.assetType || $guard(_exceptionable, {
155
+ path: _path + ".assetType",
156
+ expected: "(\"collection\" | \"pipeline\" | undefined)",
157
+ value: input.assetType
145
158
  }, errorFactory)) && (undefined === input.preset || "string" === typeof input.preset || $guard(_exceptionable, {
146
159
  path: _path + ".preset",
147
160
  expected: "(string | undefined)",
@@ -204,15 +217,25 @@ export const stringifyPipelineDomainRecord = input => {
204
217
  return true;
205
218
  });
206
219
  const $string = __typia.json.createStringify.string;
220
+ const $throws = __typia.json.createStringify.throws;
207
221
  const $tail = __typia.json.createStringify.tail;
208
- const $so0 = input => `{${$tail(`${undefined === input.dummy ? "" : `"dummy":${undefined !== input.dummy ? input.dummy : undefined},`}${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? $string(input.preset) : undefined},`}${undefined === input.color ? "" : `"color":${undefined !== input.color ? $string(input.color) : undefined},`}${undefined === input.tags ? "" : `"tags":${undefined !== input.tags ? `[${input.tags.map(elem => $string(elem)).join(",")}]` : undefined},`}${undefined === input.type ? "" : `"type":${undefined !== input.type ? $string(input.type) : undefined},`}${undefined === input.bookmarkId ? "" : `"bookmarkId":${undefined !== input.bookmarkId ? $string(input.bookmarkId) : undefined},`}${undefined === input.hiddenCreateMenuItems ? "" : `"hiddenCreateMenuItems":${undefined !== input.hiddenCreateMenuItems ? $so1(input.hiddenCreateMenuItems) : undefined}`}`)}}`;
222
+ const $so0 = input => `{${$tail(`${undefined === input.dummy ? "" : `"dummy":${undefined !== input.dummy ? input.dummy : undefined},`}${undefined === input.assetType ? "" : `"assetType":${undefined !== input.assetType ? (() => {
223
+ if ("string" === typeof input.assetType)
224
+ return $string(input.assetType);
225
+ if ("string" === typeof input.assetType)
226
+ return "\"" + input.assetType + "\"";
227
+ $throws({
228
+ expected: "(\"collection\" | \"pipeline\" | undefined)",
229
+ value: input.assetType
230
+ });
231
+ })() : undefined},`}${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? $string(input.preset) : undefined},`}${undefined === input.color ? "" : `"color":${undefined !== input.color ? $string(input.color) : undefined},`}${undefined === input.tags ? "" : `"tags":${undefined !== input.tags ? `[${input.tags.map(elem => $string(elem)).join(",")}]` : undefined},`}${undefined === input.type ? "" : `"type":${undefined !== input.type ? $string(input.type) : undefined},`}${undefined === input.bookmarkId ? "" : `"bookmarkId":${undefined !== input.bookmarkId ? $string(input.bookmarkId) : undefined},`}${undefined === input.hiddenCreateMenuItems ? "" : `"hiddenCreateMenuItems":${undefined !== input.hiddenCreateMenuItems ? $so1(input.hiddenCreateMenuItems) : undefined}`}`)}}`;
209
232
  const $so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
210
233
  return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`;
211
234
  return $so0(input);
212
235
  };
213
236
  export const assertStringifyPipelineDomainRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
214
237
  const __is = input => {
215
- const $io0 = input => (undefined === input.dummy || "boolean" === typeof input.dummy) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.color || "string" === typeof input.color) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.type || "string" === typeof input.type) && (undefined === input.bookmarkId || "string" === typeof input.bookmarkId) && (undefined === input.hiddenCreateMenuItems || "object" === typeof input.hiddenCreateMenuItems && null !== input.hiddenCreateMenuItems && false === Array.isArray(input.hiddenCreateMenuItems) && $io1(input.hiddenCreateMenuItems));
238
+ const $io0 = input => (undefined === input.dummy || "boolean" === typeof input.dummy) && (undefined === input.assetType || "pipeline" === input.assetType || "collection" === input.assetType) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.color || "string" === typeof input.color) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.type || "string" === typeof input.type) && (undefined === input.bookmarkId || "string" === typeof input.bookmarkId) && (undefined === input.hiddenCreateMenuItems || "object" === typeof input.hiddenCreateMenuItems && null !== input.hiddenCreateMenuItems && false === Array.isArray(input.hiddenCreateMenuItems) && $io1(input.hiddenCreateMenuItems));
216
239
  const $io1 = input => Object.keys(input).every(key => {
217
240
  const value = input[key];
218
241
  if (undefined === value)
@@ -229,6 +252,10 @@ export const assertStringifyPipelineDomainRecord = (input, errorFactory) => { co
229
252
  path: _path + ".dummy",
230
253
  expected: "(boolean | undefined)",
231
254
  value: input.dummy
255
+ }, errorFactory)) && (undefined === input.assetType || "pipeline" === input.assetType || "collection" === input.assetType || $guard(_exceptionable, {
256
+ path: _path + ".assetType",
257
+ expected: "(\"collection\" | \"pipeline\" | undefined)",
258
+ value: input.assetType
232
259
  }, errorFactory)) && (undefined === input.preset || "string" === typeof input.preset || $guard(_exceptionable, {
233
260
  path: _path + ".preset",
234
261
  expected: "(string | undefined)",
@@ -291,8 +318,18 @@ export const assertStringifyPipelineDomainRecord = (input, errorFactory) => { co
291
318
  return true;
292
319
  });
293
320
  const $string = __typia.json.createAssertStringify.string;
321
+ const $throws = __typia.json.createAssertStringify.throws;
294
322
  const $tail = __typia.json.createAssertStringify.tail;
295
- const $so0 = input => `{${$tail(`${undefined === input.dummy ? "" : `"dummy":${undefined !== input.dummy ? input.dummy : undefined},`}${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? $string(input.preset) : undefined},`}${undefined === input.color ? "" : `"color":${undefined !== input.color ? $string(input.color) : undefined},`}${undefined === input.tags ? "" : `"tags":${undefined !== input.tags ? `[${input.tags.map(elem => $string(elem)).join(",")}]` : undefined},`}${undefined === input.type ? "" : `"type":${undefined !== input.type ? $string(input.type) : undefined},`}${undefined === input.bookmarkId ? "" : `"bookmarkId":${undefined !== input.bookmarkId ? $string(input.bookmarkId) : undefined},`}${undefined === input.hiddenCreateMenuItems ? "" : `"hiddenCreateMenuItems":${undefined !== input.hiddenCreateMenuItems ? $so1(input.hiddenCreateMenuItems) : undefined}`}`)}}`;
323
+ const $so0 = input => `{${$tail(`${undefined === input.dummy ? "" : `"dummy":${undefined !== input.dummy ? input.dummy : undefined},`}${undefined === input.assetType ? "" : `"assetType":${undefined !== input.assetType ? (() => {
324
+ if ("string" === typeof input.assetType)
325
+ return $string(input.assetType);
326
+ if ("string" === typeof input.assetType)
327
+ return "\"" + input.assetType + "\"";
328
+ $throws({
329
+ expected: "(\"collection\" | \"pipeline\" | undefined)",
330
+ value: input.assetType
331
+ });
332
+ })() : undefined},`}${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? $string(input.preset) : undefined},`}${undefined === input.color ? "" : `"color":${undefined !== input.color ? $string(input.color) : undefined},`}${undefined === input.tags ? "" : `"tags":${undefined !== input.tags ? `[${input.tags.map(elem => $string(elem)).join(",")}]` : undefined},`}${undefined === input.type ? "" : `"type":${undefined !== input.type ? $string(input.type) : undefined},`}${undefined === input.bookmarkId ? "" : `"bookmarkId":${undefined !== input.bookmarkId ? $string(input.bookmarkId) : undefined},`}${undefined === input.hiddenCreateMenuItems ? "" : `"hiddenCreateMenuItems":${undefined !== input.hiddenCreateMenuItems ? $so1(input.hiddenCreateMenuItems) : undefined}`}`)}}`;
296
333
  const $so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
297
334
  return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`;
298
335
  return $so0(input);