@nxtedition/types 23.0.21 → 23.0.23

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.
@@ -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);
@@ -1,4 +1,4 @@
1
- import { RenderPreset } from '../common/index.js';
1
+ import type { RenderPresetObject } from '../common/index.js';
2
2
  export interface RenderPresetDomainRecords {
3
- ":render-preset": RenderPreset;
3
+ ":render-preset": RenderPresetObject;
4
4
  }
@@ -0,0 +1,44 @@
1
+ import { type AssertionGuard as __AssertionGuard } from "typia";
2
+ import type { RenderSceneObject, RenderProfileObject } from '../common/index.js';
3
+ export interface RenderDomainRecords {
4
+ ":render.stats?": RenderDomainStatsRecord;
5
+ ":render.query?": RenderDomainQueryRecord;
6
+ ":render.result?": RenderDomainResultRecord;
7
+ }
8
+ export interface RenderDomainStatsRecord {
9
+ progress?: number | null;
10
+ error?: Array<Record<string, unknown>> | null;
11
+ status?: string | null;
12
+ }
13
+ export declare const isRenderDomainStatsRecord: (input: unknown) => input is RenderDomainStatsRecord;
14
+ export declare const assertRenderDomainStatsRecord: (input: unknown) => RenderDomainStatsRecord;
15
+ export declare const randomRenderDomainStatsRecord: () => RenderDomainStatsRecord;
16
+ export declare const assertGuardRenderDomainStatsRecord: __AssertionGuard<RenderDomainStatsRecord>;
17
+ export declare const stringifyRenderDomainStatsRecord: (input: RenderDomainStatsRecord) => string;
18
+ export declare const assertStringifyRenderDomainStatsRecord: (input: unknown) => string;
19
+ export interface RenderDomainQueryRecord {
20
+ type: string;
21
+ title: string;
22
+ parent?: string;
23
+ description: {
24
+ scene: RenderSceneObject;
25
+ profile: RenderProfileObject;
26
+ };
27
+ }
28
+ export declare const isRenderDomainQueryRecord: (input: unknown) => input is RenderDomainQueryRecord;
29
+ export declare const assertRenderDomainQueryRecord: (input: unknown) => RenderDomainQueryRecord;
30
+ export declare const randomRenderDomainQueryRecord: () => RenderDomainQueryRecord;
31
+ export declare const assertGuardRenderDomainQueryRecord: __AssertionGuard<RenderDomainQueryRecord>;
32
+ export declare const stringifyRenderDomainQueryRecord: (input: RenderDomainQueryRecord) => string;
33
+ export declare const assertStringifyRenderDomainQueryRecord: (input: unknown) => string;
34
+ export interface RenderDomainResultRecord {
35
+ [key: string]: unknown;
36
+ url?: string;
37
+ result?: unknown;
38
+ }
39
+ export declare const isRenderDomainResultRecord: (input: unknown) => input is RenderDomainResultRecord;
40
+ export declare const assertRenderDomainResultRecord: (input: unknown) => RenderDomainResultRecord;
41
+ export declare const randomRenderDomainResultRecord: () => RenderDomainResultRecord;
42
+ export declare const assertGuardRenderDomainResultRecord: __AssertionGuard<RenderDomainResultRecord>;
43
+ export declare const stringifyRenderDomainResultRecord: (input: RenderDomainResultRecord) => string;
44
+ export declare const assertStringifyRenderDomainResultRecord: (input: unknown) => string;