@nxtedition/types 23.0.2 → 23.0.4

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.
Files changed (59) hide show
  1. package/dist/asset.d.ts +10 -0
  2. package/dist/asset.js +1 -0
  3. package/dist/common/clone.d.ts +32 -0
  4. package/dist/common/clone.js +602 -0
  5. package/dist/common/date.d.ts +8 -0
  6. package/dist/common/date.js +59 -0
  7. package/dist/common/index.d.ts +8 -0
  8. package/dist/common/index.js +8 -0
  9. package/dist/common/media.d.ts +8 -0
  10. package/dist/common/media.js +83 -0
  11. package/dist/common/nxtpression.d.ts +19 -0
  12. package/dist/common/nxtpression.js +240 -0
  13. package/dist/common/pipeline.d.ts +8 -0
  14. package/dist/common/pipeline.js +88 -0
  15. package/dist/common/promoted-tag.d.ts +13 -0
  16. package/dist/common/promoted-tag.js +147 -0
  17. package/dist/common/render-preset.d.ts +32 -0
  18. package/dist/common/render-preset.js +516 -0
  19. package/dist/common/search.d.ts +69 -0
  20. package/dist/common/search.js +1591 -0
  21. package/dist/common/settings.d.ts +26 -11
  22. package/dist/common/settings.js +812 -333
  23. package/dist/domains/asset.d.ts +172 -49
  24. package/dist/domains/asset.js +1533 -72
  25. package/dist/domains/clone.d.ts +14 -0
  26. package/dist/domains/clone.js +192 -0
  27. package/dist/domains/connection.d.ts +39 -15
  28. package/dist/domains/connection.js +621 -174
  29. package/dist/domains/design.d.ts +24 -0
  30. package/dist/domains/design.js +303 -0
  31. package/dist/domains/file.d.ts +17 -0
  32. package/dist/domains/file.js +233 -0
  33. package/dist/domains/index.d.ts +19 -1
  34. package/dist/domains/index.js +9 -0
  35. package/dist/domains/media.d.ts +42 -2
  36. package/dist/domains/media.js +1070 -24
  37. package/dist/domains/pipeline-preset.d.ts +17 -0
  38. package/dist/domains/pipeline-preset.js +225 -0
  39. package/dist/domains/pipeline.d.ts +29 -0
  40. package/dist/domains/pipeline.js +423 -0
  41. package/dist/domains/published.d.ts +18 -0
  42. package/dist/domains/published.js +164 -0
  43. package/dist/domains/render-preset.d.ts +4 -0
  44. package/dist/domains/render-preset.js +1 -0
  45. package/dist/domains/revs.d.ts +13 -0
  46. package/dist/domains/revs.js +125 -0
  47. package/dist/domains/search.d.ts +3 -0
  48. package/dist/domains/search.js +62 -13
  49. package/dist/domains/settings.js +796 -339
  50. package/dist/domains/storyboard.d.ts +14 -0
  51. package/dist/domains/storyboard.js +125 -0
  52. package/dist/domains/user.d.ts +14 -0
  53. package/dist/domains/user.js +141 -0
  54. package/dist/index.d.ts +88 -5
  55. package/dist/index.js +151 -0
  56. package/dist/rpc.d.ts +8 -13
  57. package/dist/rpc.js +9 -9
  58. package/dist/schema.json +1701 -1565
  59. package/package.json +1 -1
@@ -0,0 +1,17 @@
1
+ import { type AssertionGuard as __AssertionGuard } from "typia";
2
+ import { PipelineSortMode } from '../common/index.js';
3
+ export interface PipelinePresetDomainRecords {
4
+ ":pipeline-preset": PipelinePresetDomainRecord;
5
+ }
6
+ export interface PipelinePresetDomainRecord {
7
+ createMenuItems?: string[] | null;
8
+ color?: string;
9
+ tags?: string[];
10
+ sortMode?: PipelineSortMode;
11
+ }
12
+ export declare const isPipelinePresetDomainRecord: (input: unknown) => input is PipelinePresetDomainRecord;
13
+ export declare const assertPipelinePresetDomainRecord: (input: unknown) => PipelinePresetDomainRecord;
14
+ export declare const randomPipelinePresetDomainRecord: () => PipelinePresetDomainRecord;
15
+ export declare const assertGuardPipelinePresetDomainRecord: __AssertionGuard<PipelinePresetDomainRecord>;
16
+ export declare const stringifyPipelinePresetDomainRecord: (input: PipelinePresetDomainRecord) => string;
17
+ export declare const assertStringifyPipelinePresetDomainRecord: (input: unknown) => string;
@@ -0,0 +1,225 @@
1
+ import __typia from "typia";
2
+ export const isPipelinePresetDomainRecord = input => {
3
+ const $io0 = input => (null === input.createMenuItems || undefined === input.createMenuItems || Array.isArray(input.createMenuItems) && input.createMenuItems.every(elem => "string" === typeof elem)) && (undefined === input.color || "string" === typeof input.color) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.sortMode || "default" === input.sortMode || "manual" === input.sortMode || "az" === input.sortMode || "za" === input.sortMode || "newest" === input.sortMode || "oldest" === input.sortMode || "mostrecent" === input.sortMode || "leastrecent" === input.sortMode);
4
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
5
+ };
6
+ export const assertPipelinePresetDomainRecord = (input, errorFactory) => {
7
+ const __is = input => {
8
+ const $io0 = input => (null === input.createMenuItems || undefined === input.createMenuItems || Array.isArray(input.createMenuItems) && input.createMenuItems.every(elem => "string" === typeof elem)) && (undefined === input.color || "string" === typeof input.color) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.sortMode || "default" === input.sortMode || "manual" === input.sortMode || "az" === input.sortMode || "za" === input.sortMode || "newest" === input.sortMode || "oldest" === input.sortMode || "mostrecent" === input.sortMode || "leastrecent" === input.sortMode);
9
+ return "object" === typeof input && null !== input && false === Array.isArray(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) => (null === input.createMenuItems || undefined === input.createMenuItems || (Array.isArray(input.createMenuItems) || $guard(_exceptionable, {
15
+ path: _path + ".createMenuItems",
16
+ expected: "(Array<string> | null | undefined)",
17
+ value: input.createMenuItems
18
+ }, errorFactory)) && input.createMenuItems.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
19
+ path: _path + ".createMenuItems[" + _index1 + "]",
20
+ expected: "string",
21
+ value: elem
22
+ }, errorFactory)) || $guard(_exceptionable, {
23
+ path: _path + ".createMenuItems",
24
+ expected: "(Array<string> | null | undefined)",
25
+ value: input.createMenuItems
26
+ }, errorFactory)) && (undefined === input.color || "string" === typeof input.color || $guard(_exceptionable, {
27
+ path: _path + ".color",
28
+ expected: "(string | undefined)",
29
+ value: input.color
30
+ }, errorFactory)) && (undefined === input.tags || (Array.isArray(input.tags) || $guard(_exceptionable, {
31
+ path: _path + ".tags",
32
+ expected: "(Array<string> | undefined)",
33
+ value: input.tags
34
+ }, errorFactory)) && input.tags.every((elem, _index2) => "string" === typeof elem || $guard(_exceptionable, {
35
+ path: _path + ".tags[" + _index2 + "]",
36
+ expected: "string",
37
+ value: elem
38
+ }, errorFactory)) || $guard(_exceptionable, {
39
+ path: _path + ".tags",
40
+ expected: "(Array<string> | undefined)",
41
+ value: input.tags
42
+ }, errorFactory)) && (undefined === input.sortMode || "default" === input.sortMode || "manual" === input.sortMode || "az" === input.sortMode || "za" === input.sortMode || "newest" === input.sortMode || "oldest" === input.sortMode || "mostrecent" === input.sortMode || "leastrecent" === input.sortMode || $guard(_exceptionable, {
43
+ path: _path + ".sortMode",
44
+ expected: "(\"az\" | \"default\" | \"leastrecent\" | \"manual\" | \"mostrecent\" | \"newest\" | \"oldest\" | \"za\" | undefined)",
45
+ value: input.sortMode
46
+ }, errorFactory));
47
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
48
+ path: _path + "",
49
+ expected: "PipelinePresetDomainRecord",
50
+ value: input
51
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
52
+ path: _path + "",
53
+ expected: "PipelinePresetDomainRecord",
54
+ value: input
55
+ }, errorFactory);
56
+ })(input, "$input", true);
57
+ return input;
58
+ };
59
+ export const randomPipelinePresetDomainRecord = generator => {
60
+ const $generator = __typia.createRandom.generator;
61
+ const $pick = __typia.createRandom.pick;
62
+ const $ro0 = (_recursive = false, _depth = 0) => ({
63
+ createMenuItems: $pick([
64
+ () => undefined,
65
+ () => null,
66
+ () => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
67
+ ])(),
68
+ color: $pick([
69
+ () => undefined,
70
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
71
+ ])(),
72
+ tags: $pick([
73
+ () => undefined,
74
+ () => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
75
+ ])(),
76
+ sortMode: $pick([
77
+ () => undefined,
78
+ () => "default",
79
+ () => "manual",
80
+ () => "az",
81
+ () => "za",
82
+ () => "newest",
83
+ () => "oldest",
84
+ () => "mostrecent",
85
+ () => "leastrecent"
86
+ ])()
87
+ });
88
+ return $ro0();
89
+ };
90
+ export const assertGuardPipelinePresetDomainRecord = (input, errorFactory) => {
91
+ const __is = input => {
92
+ const $io0 = input => (null === input.createMenuItems || undefined === input.createMenuItems || Array.isArray(input.createMenuItems) && input.createMenuItems.every(elem => "string" === typeof elem)) && (undefined === input.color || "string" === typeof input.color) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.sortMode || "default" === input.sortMode || "manual" === input.sortMode || "az" === input.sortMode || "za" === input.sortMode || "newest" === input.sortMode || "oldest" === input.sortMode || "mostrecent" === input.sortMode || "leastrecent" === input.sortMode);
93
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
94
+ };
95
+ if (false === __is(input))
96
+ ((input, _path, _exceptionable = true) => {
97
+ const $guard = __typia.createAssertGuard.guard;
98
+ const $ao0 = (input, _path, _exceptionable = true) => (null === input.createMenuItems || undefined === input.createMenuItems || (Array.isArray(input.createMenuItems) || $guard(_exceptionable, {
99
+ path: _path + ".createMenuItems",
100
+ expected: "(Array<string> | null | undefined)",
101
+ value: input.createMenuItems
102
+ }, errorFactory)) && input.createMenuItems.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
103
+ path: _path + ".createMenuItems[" + _index1 + "]",
104
+ expected: "string",
105
+ value: elem
106
+ }, errorFactory)) || $guard(_exceptionable, {
107
+ path: _path + ".createMenuItems",
108
+ expected: "(Array<string> | null | undefined)",
109
+ value: input.createMenuItems
110
+ }, errorFactory)) && (undefined === input.color || "string" === typeof input.color || $guard(_exceptionable, {
111
+ path: _path + ".color",
112
+ expected: "(string | undefined)",
113
+ value: input.color
114
+ }, errorFactory)) && (undefined === input.tags || (Array.isArray(input.tags) || $guard(_exceptionable, {
115
+ path: _path + ".tags",
116
+ expected: "(Array<string> | undefined)",
117
+ value: input.tags
118
+ }, errorFactory)) && input.tags.every((elem, _index2) => "string" === typeof elem || $guard(_exceptionable, {
119
+ path: _path + ".tags[" + _index2 + "]",
120
+ expected: "string",
121
+ value: elem
122
+ }, errorFactory)) || $guard(_exceptionable, {
123
+ path: _path + ".tags",
124
+ expected: "(Array<string> | undefined)",
125
+ value: input.tags
126
+ }, errorFactory)) && (undefined === input.sortMode || "default" === input.sortMode || "manual" === input.sortMode || "az" === input.sortMode || "za" === input.sortMode || "newest" === input.sortMode || "oldest" === input.sortMode || "mostrecent" === input.sortMode || "leastrecent" === input.sortMode || $guard(_exceptionable, {
127
+ path: _path + ".sortMode",
128
+ expected: "(\"az\" | \"default\" | \"leastrecent\" | \"manual\" | \"mostrecent\" | \"newest\" | \"oldest\" | \"za\" | undefined)",
129
+ value: input.sortMode
130
+ }, errorFactory));
131
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
132
+ path: _path + "",
133
+ expected: "PipelinePresetDomainRecord",
134
+ value: input
135
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
136
+ path: _path + "",
137
+ expected: "PipelinePresetDomainRecord",
138
+ value: input
139
+ }, errorFactory);
140
+ })(input, "$input", true);
141
+ };
142
+ export const stringifyPipelinePresetDomainRecord = input => {
143
+ const $string = __typia.json.createStringify.string;
144
+ const $throws = __typia.json.createStringify.throws;
145
+ const $tail = __typia.json.createStringify.tail;
146
+ const $so0 = input => `{${$tail(`${undefined === input.createMenuItems ? "" : `"createMenuItems":${undefined !== input.createMenuItems ? null !== input.createMenuItems ? `[${input.createMenuItems.map(elem => $string(elem)).join(",")}]` : "null" : 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.sortMode ? "" : `"sortMode":${undefined !== input.sortMode ? (() => {
147
+ if ("string" === typeof input.sortMode)
148
+ return $string(input.sortMode);
149
+ if ("string" === typeof input.sortMode)
150
+ return "\"" + input.sortMode + "\"";
151
+ $throws({
152
+ expected: "(\"az\" | \"default\" | \"leastrecent\" | \"manual\" | \"mostrecent\" | \"newest\" | \"oldest\" | \"za\" | undefined)",
153
+ value: input.sortMode
154
+ });
155
+ })() : undefined}`}`)}}`;
156
+ return $so0(input);
157
+ };
158
+ export const assertStringifyPipelinePresetDomainRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
159
+ const __is = input => {
160
+ const $io0 = input => (null === input.createMenuItems || undefined === input.createMenuItems || Array.isArray(input.createMenuItems) && input.createMenuItems.every(elem => "string" === typeof elem)) && (undefined === input.color || "string" === typeof input.color) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.sortMode || "default" === input.sortMode || "manual" === input.sortMode || "az" === input.sortMode || "za" === input.sortMode || "newest" === input.sortMode || "oldest" === input.sortMode || "mostrecent" === input.sortMode || "leastrecent" === input.sortMode);
161
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
162
+ };
163
+ if (false === __is(input))
164
+ ((input, _path, _exceptionable = true) => {
165
+ const $guard = __typia.json.createAssertStringify.guard;
166
+ const $ao0 = (input, _path, _exceptionable = true) => (null === input.createMenuItems || undefined === input.createMenuItems || (Array.isArray(input.createMenuItems) || $guard(_exceptionable, {
167
+ path: _path + ".createMenuItems",
168
+ expected: "(Array<string> | null | undefined)",
169
+ value: input.createMenuItems
170
+ }, errorFactory)) && input.createMenuItems.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
171
+ path: _path + ".createMenuItems[" + _index1 + "]",
172
+ expected: "string",
173
+ value: elem
174
+ }, errorFactory)) || $guard(_exceptionable, {
175
+ path: _path + ".createMenuItems",
176
+ expected: "(Array<string> | null | undefined)",
177
+ value: input.createMenuItems
178
+ }, errorFactory)) && (undefined === input.color || "string" === typeof input.color || $guard(_exceptionable, {
179
+ path: _path + ".color",
180
+ expected: "(string | undefined)",
181
+ value: input.color
182
+ }, errorFactory)) && (undefined === input.tags || (Array.isArray(input.tags) || $guard(_exceptionable, {
183
+ path: _path + ".tags",
184
+ expected: "(Array<string> | undefined)",
185
+ value: input.tags
186
+ }, errorFactory)) && input.tags.every((elem, _index2) => "string" === typeof elem || $guard(_exceptionable, {
187
+ path: _path + ".tags[" + _index2 + "]",
188
+ expected: "string",
189
+ value: elem
190
+ }, errorFactory)) || $guard(_exceptionable, {
191
+ path: _path + ".tags",
192
+ expected: "(Array<string> | undefined)",
193
+ value: input.tags
194
+ }, errorFactory)) && (undefined === input.sortMode || "default" === input.sortMode || "manual" === input.sortMode || "az" === input.sortMode || "za" === input.sortMode || "newest" === input.sortMode || "oldest" === input.sortMode || "mostrecent" === input.sortMode || "leastrecent" === input.sortMode || $guard(_exceptionable, {
195
+ path: _path + ".sortMode",
196
+ expected: "(\"az\" | \"default\" | \"leastrecent\" | \"manual\" | \"mostrecent\" | \"newest\" | \"oldest\" | \"za\" | undefined)",
197
+ value: input.sortMode
198
+ }, errorFactory));
199
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
200
+ path: _path + "",
201
+ expected: "PipelinePresetDomainRecord",
202
+ value: input
203
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
204
+ path: _path + "",
205
+ expected: "PipelinePresetDomainRecord",
206
+ value: input
207
+ }, errorFactory);
208
+ })(input, "$input", true);
209
+ return input;
210
+ }; const stringify = input => {
211
+ const $string = __typia.json.createAssertStringify.string;
212
+ const $throws = __typia.json.createAssertStringify.throws;
213
+ const $tail = __typia.json.createAssertStringify.tail;
214
+ const $so0 = input => `{${$tail(`${undefined === input.createMenuItems ? "" : `"createMenuItems":${undefined !== input.createMenuItems ? null !== input.createMenuItems ? `[${input.createMenuItems.map(elem => $string(elem)).join(",")}]` : "null" : 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.sortMode ? "" : `"sortMode":${undefined !== input.sortMode ? (() => {
215
+ if ("string" === typeof input.sortMode)
216
+ return $string(input.sortMode);
217
+ if ("string" === typeof input.sortMode)
218
+ return "\"" + input.sortMode + "\"";
219
+ $throws({
220
+ expected: "(\"az\" | \"default\" | \"leastrecent\" | \"manual\" | \"mostrecent\" | \"newest\" | \"oldest\" | \"za\" | undefined)",
221
+ value: input.sortMode
222
+ });
223
+ })() : undefined}`}`)}}`;
224
+ return $so0(input);
225
+ }; return stringify(assert(input, errorFactory)); };
@@ -0,0 +1,29 @@
1
+ import { type AssertionGuard as __AssertionGuard } from "typia";
2
+ export interface PipelineDomainRecords {
3
+ ":pipeline": PipelineDomainRecord;
4
+ ":pipeline.items": PipelineDomainItemsRecord;
5
+ }
6
+ export interface PipelineDomainRecord {
7
+ dummy?: boolean;
8
+ preset?: string;
9
+ color?: string;
10
+ tags?: string[];
11
+ type?: string;
12
+ bookmarkId?: string;
13
+ hiddenCreateMenuItems?: Record<string, unknown>;
14
+ }
15
+ export declare const isPipelineDomainRecord: (input: unknown) => input is PipelineDomainRecord;
16
+ export declare const assertPipelineDomainRecord: (input: unknown) => PipelineDomainRecord;
17
+ export declare const randomPipelineDomainRecord: () => PipelineDomainRecord;
18
+ export declare const assertGuardPipelineDomainRecord: __AssertionGuard<PipelineDomainRecord>;
19
+ export declare const stringifyPipelineDomainRecord: (input: PipelineDomainRecord) => string;
20
+ export declare const assertStringifyPipelineDomainRecord: (input: unknown) => string;
21
+ export interface PipelineDomainItemsRecord {
22
+ value?: string[];
23
+ }
24
+ export declare const isPipelineDomainItemsRecord: (input: unknown) => input is PipelineDomainItemsRecord;
25
+ export declare const assertPipelineDomainItemsRecord: (input: unknown) => PipelineDomainItemsRecord;
26
+ export declare const randomPipelineDomainItemsRecord: () => PipelineDomainItemsRecord;
27
+ export declare const assertGuardPipelineDomainItemsRecord: __AssertionGuard<PipelineDomainItemsRecord>;
28
+ export declare const stringifyPipelineDomainItemsRecord: (input: PipelineDomainItemsRecord) => string;
29
+ export declare const assertStringifyPipelineDomainItemsRecord: (input: unknown) => string;