@nxtedition/types 1.6.14 → 23.0.1
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 +30 -0
- package/dist/app.js +197 -0
- package/dist/common/index.d.ts +0 -17
- package/dist/common/index.js +0 -447
- package/dist/common/settings.d.ts +11 -6
- package/dist/common/settings.js +556 -454
- package/dist/domains/bundle.d.ts +25 -0
- package/dist/domains/bundle.js +512 -0
- package/dist/domains/index.d.ts +3 -1
- package/dist/domains/index.js +1 -0
- package/dist/domains/media.d.ts +20 -0
- package/dist/domains/media.js +1500 -0
- package/dist/domains/publish.d.ts +5 -2
- package/dist/domains/settings.js +558 -469
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/rpc.d.ts +28 -0
- package/dist/rpc.js +1 -0
- package/package.json +3 -2
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type AssertionGuard as __AssertionGuard } from "typia";
|
|
2
|
+
export interface BundleDomainRecords {
|
|
3
|
+
[":bundle"]: BundleRecord;
|
|
4
|
+
[":bundle.revisions"]: BundleRevisionsRecord;
|
|
5
|
+
}
|
|
6
|
+
export interface BundleRecord {
|
|
7
|
+
user?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
files: Record<string, string>;
|
|
10
|
+
}
|
|
11
|
+
export declare const isBundleRecord: (input: unknown) => input is BundleRecord;
|
|
12
|
+
export declare const assertBundleRecord: (input: unknown) => BundleRecord;
|
|
13
|
+
export declare const randomBundleRecord: () => BundleRecord;
|
|
14
|
+
export declare const assertGuardBundleRecord: __AssertionGuard<BundleRecord>;
|
|
15
|
+
export declare const stringifyBundleRecord: (input: BundleRecord) => string;
|
|
16
|
+
export declare const assertStringifyBundleRecord: (input: unknown) => string;
|
|
17
|
+
export interface BundleRevisionsRecord {
|
|
18
|
+
[revisionId: string]: BundleRecord;
|
|
19
|
+
}
|
|
20
|
+
export declare const isBundleRevisionsRecord: (input: unknown) => input is BundleRevisionsRecord;
|
|
21
|
+
export declare const assertBundleRevisionsRecord: (input: unknown) => BundleRevisionsRecord;
|
|
22
|
+
export declare const randomBundleRevisionsRecord: () => BundleRevisionsRecord;
|
|
23
|
+
export declare const assertGuardBundleRevisionsRecord: __AssertionGuard<BundleRevisionsRecord>;
|
|
24
|
+
export declare const stringifyBundleRevisionsRecord: (input: BundleRevisionsRecord) => string;
|
|
25
|
+
export declare const assertStringifyBundleRevisionsRecord: (input: unknown) => string;
|
|
@@ -0,0 +1,512 @@
|
|
|
1
|
+
import __typia from "typia";
|
|
2
|
+
export const isBundleRecord = input => {
|
|
3
|
+
const $io0 = input => (undefined === input.user || "string" === typeof input.user) && (undefined === input.description || "string" === typeof input.description) && ("object" === typeof input.files && null !== input.files && false === Array.isArray(input.files) && $io1(input.files));
|
|
4
|
+
const $io1 = input => Object.keys(input).every(key => {
|
|
5
|
+
const value = input[key];
|
|
6
|
+
if (undefined === value)
|
|
7
|
+
return true;
|
|
8
|
+
return "string" === typeof value;
|
|
9
|
+
});
|
|
10
|
+
return "object" === typeof input && null !== input && $io0(input);
|
|
11
|
+
};
|
|
12
|
+
export const assertBundleRecord = (input, errorFactory) => {
|
|
13
|
+
const __is = input => {
|
|
14
|
+
const $io0 = input => (undefined === input.user || "string" === typeof input.user) && (undefined === input.description || "string" === typeof input.description) && ("object" === typeof input.files && null !== input.files && false === Array.isArray(input.files) && $io1(input.files));
|
|
15
|
+
const $io1 = input => Object.keys(input).every(key => {
|
|
16
|
+
const value = input[key];
|
|
17
|
+
if (undefined === value)
|
|
18
|
+
return true;
|
|
19
|
+
return "string" === typeof value;
|
|
20
|
+
});
|
|
21
|
+
return "object" === typeof input && null !== input && $io0(input);
|
|
22
|
+
};
|
|
23
|
+
if (false === __is(input))
|
|
24
|
+
((input, _path, _exceptionable = true) => {
|
|
25
|
+
const $guard = __typia.createAssert.guard;
|
|
26
|
+
const $join = __typia.createAssert.join;
|
|
27
|
+
const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.user || "string" === typeof input.user || $guard(_exceptionable, {
|
|
28
|
+
path: _path + ".user",
|
|
29
|
+
expected: "(string | undefined)",
|
|
30
|
+
value: input.user
|
|
31
|
+
}, errorFactory)) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
|
|
32
|
+
path: _path + ".description",
|
|
33
|
+
expected: "(string | undefined)",
|
|
34
|
+
value: input.description
|
|
35
|
+
}, errorFactory)) && (("object" === typeof input.files && null !== input.files && false === Array.isArray(input.files) || $guard(_exceptionable, {
|
|
36
|
+
path: _path + ".files",
|
|
37
|
+
expected: "Record<string, string>",
|
|
38
|
+
value: input.files
|
|
39
|
+
}, errorFactory)) && $ao1(input.files, _path + ".files", true && _exceptionable) || $guard(_exceptionable, {
|
|
40
|
+
path: _path + ".files",
|
|
41
|
+
expected: "Record<string, string>",
|
|
42
|
+
value: input.files
|
|
43
|
+
}, errorFactory));
|
|
44
|
+
const $ao1 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
45
|
+
const value = input[key];
|
|
46
|
+
if (undefined === value)
|
|
47
|
+
return true;
|
|
48
|
+
return "string" === typeof value || $guard(_exceptionable, {
|
|
49
|
+
path: _path + $join(key),
|
|
50
|
+
expected: "string",
|
|
51
|
+
value: value
|
|
52
|
+
}, errorFactory);
|
|
53
|
+
});
|
|
54
|
+
return ("object" === typeof input && null !== input || $guard(true, {
|
|
55
|
+
path: _path + "",
|
|
56
|
+
expected: "BundleRecord",
|
|
57
|
+
value: input
|
|
58
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
59
|
+
path: _path + "",
|
|
60
|
+
expected: "BundleRecord",
|
|
61
|
+
value: input
|
|
62
|
+
}, errorFactory);
|
|
63
|
+
})(input, "$input", true);
|
|
64
|
+
return input;
|
|
65
|
+
};
|
|
66
|
+
export const randomBundleRecord = generator => {
|
|
67
|
+
const $generator = __typia.createRandom.generator;
|
|
68
|
+
const $pick = __typia.createRandom.pick;
|
|
69
|
+
const $ro0 = (_recursive = false, _depth = 0) => ({
|
|
70
|
+
user: $pick([
|
|
71
|
+
() => undefined,
|
|
72
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
73
|
+
])(),
|
|
74
|
+
description: $pick([
|
|
75
|
+
() => undefined,
|
|
76
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
77
|
+
])(),
|
|
78
|
+
files: $ro1(_recursive, _recursive ? 1 + _depth : _depth)
|
|
79
|
+
});
|
|
80
|
+
const $ro1 = (_recursive = false, _depth = 0) => {
|
|
81
|
+
const output = {};
|
|
82
|
+
(generator?.array ?? $generator.array)(() => output[(generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()] = (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(), (generator?.integer ?? $generator.integer)(0, 3));
|
|
83
|
+
return output;
|
|
84
|
+
};
|
|
85
|
+
return $ro0();
|
|
86
|
+
};
|
|
87
|
+
export const assertGuardBundleRecord = (input, errorFactory) => {
|
|
88
|
+
const __is = input => {
|
|
89
|
+
const $io0 = input => (undefined === input.user || "string" === typeof input.user) && (undefined === input.description || "string" === typeof input.description) && ("object" === typeof input.files && null !== input.files && false === Array.isArray(input.files) && $io1(input.files));
|
|
90
|
+
const $io1 = input => Object.keys(input).every(key => {
|
|
91
|
+
const value = input[key];
|
|
92
|
+
if (undefined === value)
|
|
93
|
+
return true;
|
|
94
|
+
return "string" === typeof value;
|
|
95
|
+
});
|
|
96
|
+
return "object" === typeof input && null !== input && $io0(input);
|
|
97
|
+
};
|
|
98
|
+
if (false === __is(input))
|
|
99
|
+
((input, _path, _exceptionable = true) => {
|
|
100
|
+
const $guard = __typia.createAssertGuard.guard;
|
|
101
|
+
const $join = __typia.createAssertGuard.join;
|
|
102
|
+
const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.user || "string" === typeof input.user || $guard(_exceptionable, {
|
|
103
|
+
path: _path + ".user",
|
|
104
|
+
expected: "(string | undefined)",
|
|
105
|
+
value: input.user
|
|
106
|
+
}, errorFactory)) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
|
|
107
|
+
path: _path + ".description",
|
|
108
|
+
expected: "(string | undefined)",
|
|
109
|
+
value: input.description
|
|
110
|
+
}, errorFactory)) && (("object" === typeof input.files && null !== input.files && false === Array.isArray(input.files) || $guard(_exceptionable, {
|
|
111
|
+
path: _path + ".files",
|
|
112
|
+
expected: "Record<string, string>",
|
|
113
|
+
value: input.files
|
|
114
|
+
}, errorFactory)) && $ao1(input.files, _path + ".files", true && _exceptionable) || $guard(_exceptionable, {
|
|
115
|
+
path: _path + ".files",
|
|
116
|
+
expected: "Record<string, string>",
|
|
117
|
+
value: input.files
|
|
118
|
+
}, errorFactory));
|
|
119
|
+
const $ao1 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
120
|
+
const value = input[key];
|
|
121
|
+
if (undefined === value)
|
|
122
|
+
return true;
|
|
123
|
+
return "string" === typeof value || $guard(_exceptionable, {
|
|
124
|
+
path: _path + $join(key),
|
|
125
|
+
expected: "string",
|
|
126
|
+
value: value
|
|
127
|
+
}, errorFactory);
|
|
128
|
+
});
|
|
129
|
+
return ("object" === typeof input && null !== input || $guard(true, {
|
|
130
|
+
path: _path + "",
|
|
131
|
+
expected: "BundleRecord",
|
|
132
|
+
value: input
|
|
133
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
134
|
+
path: _path + "",
|
|
135
|
+
expected: "BundleRecord",
|
|
136
|
+
value: input
|
|
137
|
+
}, errorFactory);
|
|
138
|
+
})(input, "$input", true);
|
|
139
|
+
};
|
|
140
|
+
export const stringifyBundleRecord = input => {
|
|
141
|
+
const $io1 = input => Object.keys(input).every(key => {
|
|
142
|
+
const value = input[key];
|
|
143
|
+
if (undefined === value)
|
|
144
|
+
return true;
|
|
145
|
+
return "string" === typeof value;
|
|
146
|
+
});
|
|
147
|
+
const $string = __typia.json.createStringify.string;
|
|
148
|
+
const $so0 = input => `{${undefined === input.user ? "" : `"user":${undefined !== input.user ? $string(input.user) : undefined},`}${undefined === input.description ? "" : `"description":${undefined !== input.description ? $string(input.description) : undefined},`}"files":${$so1(input.files)}}`;
|
|
149
|
+
const $so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
150
|
+
return ""; return `${JSON.stringify(key)}:${$string(value)}`; }).filter(str => "" !== str).join(",")}}`;
|
|
151
|
+
return $so0(input);
|
|
152
|
+
};
|
|
153
|
+
export const assertStringifyBundleRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
154
|
+
const __is = input => {
|
|
155
|
+
const $io0 = input => (undefined === input.user || "string" === typeof input.user) && (undefined === input.description || "string" === typeof input.description) && ("object" === typeof input.files && null !== input.files && false === Array.isArray(input.files) && $io1(input.files));
|
|
156
|
+
const $io1 = input => Object.keys(input).every(key => {
|
|
157
|
+
const value = input[key];
|
|
158
|
+
if (undefined === value)
|
|
159
|
+
return true;
|
|
160
|
+
return "string" === typeof value;
|
|
161
|
+
});
|
|
162
|
+
return "object" === typeof input && null !== input && $io0(input);
|
|
163
|
+
};
|
|
164
|
+
if (false === __is(input))
|
|
165
|
+
((input, _path, _exceptionable = true) => {
|
|
166
|
+
const $guard = __typia.json.createAssertStringify.guard;
|
|
167
|
+
const $join = __typia.json.createAssertStringify.join;
|
|
168
|
+
const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.user || "string" === typeof input.user || $guard(_exceptionable, {
|
|
169
|
+
path: _path + ".user",
|
|
170
|
+
expected: "(string | undefined)",
|
|
171
|
+
value: input.user
|
|
172
|
+
}, errorFactory)) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
|
|
173
|
+
path: _path + ".description",
|
|
174
|
+
expected: "(string | undefined)",
|
|
175
|
+
value: input.description
|
|
176
|
+
}, errorFactory)) && (("object" === typeof input.files && null !== input.files && false === Array.isArray(input.files) || $guard(_exceptionable, {
|
|
177
|
+
path: _path + ".files",
|
|
178
|
+
expected: "Record<string, string>",
|
|
179
|
+
value: input.files
|
|
180
|
+
}, errorFactory)) && $ao1(input.files, _path + ".files", true && _exceptionable) || $guard(_exceptionable, {
|
|
181
|
+
path: _path + ".files",
|
|
182
|
+
expected: "Record<string, string>",
|
|
183
|
+
value: input.files
|
|
184
|
+
}, errorFactory));
|
|
185
|
+
const $ao1 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
186
|
+
const value = input[key];
|
|
187
|
+
if (undefined === value)
|
|
188
|
+
return true;
|
|
189
|
+
return "string" === typeof value || $guard(_exceptionable, {
|
|
190
|
+
path: _path + $join(key),
|
|
191
|
+
expected: "string",
|
|
192
|
+
value: value
|
|
193
|
+
}, errorFactory);
|
|
194
|
+
});
|
|
195
|
+
return ("object" === typeof input && null !== input || $guard(true, {
|
|
196
|
+
path: _path + "",
|
|
197
|
+
expected: "BundleRecord",
|
|
198
|
+
value: input
|
|
199
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
200
|
+
path: _path + "",
|
|
201
|
+
expected: "BundleRecord",
|
|
202
|
+
value: input
|
|
203
|
+
}, errorFactory);
|
|
204
|
+
})(input, "$input", true);
|
|
205
|
+
return input;
|
|
206
|
+
}; const stringify = input => {
|
|
207
|
+
const $io1 = input => Object.keys(input).every(key => {
|
|
208
|
+
const value = input[key];
|
|
209
|
+
if (undefined === value)
|
|
210
|
+
return true;
|
|
211
|
+
return "string" === typeof value;
|
|
212
|
+
});
|
|
213
|
+
const $string = __typia.json.createAssertStringify.string;
|
|
214
|
+
const $so0 = input => `{${undefined === input.user ? "" : `"user":${undefined !== input.user ? $string(input.user) : undefined},`}${undefined === input.description ? "" : `"description":${undefined !== input.description ? $string(input.description) : undefined},`}"files":${$so1(input.files)}}`;
|
|
215
|
+
const $so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
216
|
+
return ""; return `${JSON.stringify(key)}:${$string(value)}`; }).filter(str => "" !== str).join(",")}}`;
|
|
217
|
+
return $so0(input);
|
|
218
|
+
}; return stringify(assert(input, errorFactory)); };
|
|
219
|
+
export const isBundleRevisionsRecord = input => {
|
|
220
|
+
const $io0 = input => Object.keys(input).every(key => {
|
|
221
|
+
const value = input[key];
|
|
222
|
+
if (undefined === value)
|
|
223
|
+
return true;
|
|
224
|
+
return "object" === typeof value && null !== value && $io1(value);
|
|
225
|
+
});
|
|
226
|
+
const $io1 = input => (undefined === input.user || "string" === typeof input.user) && (undefined === input.description || "string" === typeof input.description) && ("object" === typeof input.files && null !== input.files && false === Array.isArray(input.files) && $io2(input.files));
|
|
227
|
+
const $io2 = input => Object.keys(input).every(key => {
|
|
228
|
+
const value = input[key];
|
|
229
|
+
if (undefined === value)
|
|
230
|
+
return true;
|
|
231
|
+
return "string" === typeof value;
|
|
232
|
+
});
|
|
233
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
234
|
+
};
|
|
235
|
+
export const assertBundleRevisionsRecord = (input, errorFactory) => {
|
|
236
|
+
const __is = input => {
|
|
237
|
+
const $io0 = input => Object.keys(input).every(key => {
|
|
238
|
+
const value = input[key];
|
|
239
|
+
if (undefined === value)
|
|
240
|
+
return true;
|
|
241
|
+
return "object" === typeof value && null !== value && $io1(value);
|
|
242
|
+
});
|
|
243
|
+
const $io1 = input => (undefined === input.user || "string" === typeof input.user) && (undefined === input.description || "string" === typeof input.description) && ("object" === typeof input.files && null !== input.files && false === Array.isArray(input.files) && $io2(input.files));
|
|
244
|
+
const $io2 = input => Object.keys(input).every(key => {
|
|
245
|
+
const value = input[key];
|
|
246
|
+
if (undefined === value)
|
|
247
|
+
return true;
|
|
248
|
+
return "string" === typeof value;
|
|
249
|
+
});
|
|
250
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
251
|
+
};
|
|
252
|
+
if (false === __is(input))
|
|
253
|
+
((input, _path, _exceptionable = true) => {
|
|
254
|
+
const $guard = __typia.createAssert.guard;
|
|
255
|
+
const $join = __typia.createAssert.join;
|
|
256
|
+
const $ao0 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
257
|
+
const value = input[key];
|
|
258
|
+
if (undefined === value)
|
|
259
|
+
return true;
|
|
260
|
+
return ("object" === typeof value && null !== value || $guard(_exceptionable, {
|
|
261
|
+
path: _path + $join(key),
|
|
262
|
+
expected: "BundleRecord",
|
|
263
|
+
value: value
|
|
264
|
+
}, errorFactory)) && $ao1(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
|
|
265
|
+
path: _path + $join(key),
|
|
266
|
+
expected: "BundleRecord",
|
|
267
|
+
value: value
|
|
268
|
+
}, errorFactory);
|
|
269
|
+
});
|
|
270
|
+
const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.user || "string" === typeof input.user || $guard(_exceptionable, {
|
|
271
|
+
path: _path + ".user",
|
|
272
|
+
expected: "(string | undefined)",
|
|
273
|
+
value: input.user
|
|
274
|
+
}, errorFactory)) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
|
|
275
|
+
path: _path + ".description",
|
|
276
|
+
expected: "(string | undefined)",
|
|
277
|
+
value: input.description
|
|
278
|
+
}, errorFactory)) && (("object" === typeof input.files && null !== input.files && false === Array.isArray(input.files) || $guard(_exceptionable, {
|
|
279
|
+
path: _path + ".files",
|
|
280
|
+
expected: "Record<string, string>",
|
|
281
|
+
value: input.files
|
|
282
|
+
}, errorFactory)) && $ao2(input.files, _path + ".files", true && _exceptionable) || $guard(_exceptionable, {
|
|
283
|
+
path: _path + ".files",
|
|
284
|
+
expected: "Record<string, string>",
|
|
285
|
+
value: input.files
|
|
286
|
+
}, errorFactory));
|
|
287
|
+
const $ao2 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
288
|
+
const value = input[key];
|
|
289
|
+
if (undefined === value)
|
|
290
|
+
return true;
|
|
291
|
+
return "string" === typeof value || $guard(_exceptionable, {
|
|
292
|
+
path: _path + $join(key),
|
|
293
|
+
expected: "string",
|
|
294
|
+
value: value
|
|
295
|
+
}, errorFactory);
|
|
296
|
+
});
|
|
297
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
298
|
+
path: _path + "",
|
|
299
|
+
expected: "BundleRevisionsRecord",
|
|
300
|
+
value: input
|
|
301
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
302
|
+
path: _path + "",
|
|
303
|
+
expected: "BundleRevisionsRecord",
|
|
304
|
+
value: input
|
|
305
|
+
}, errorFactory);
|
|
306
|
+
})(input, "$input", true);
|
|
307
|
+
return input;
|
|
308
|
+
};
|
|
309
|
+
export const randomBundleRevisionsRecord = generator => {
|
|
310
|
+
const $generator = __typia.createRandom.generator;
|
|
311
|
+
const $pick = __typia.createRandom.pick;
|
|
312
|
+
const $ro0 = (_recursive = false, _depth = 0) => {
|
|
313
|
+
const output = {};
|
|
314
|
+
(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));
|
|
315
|
+
return output;
|
|
316
|
+
};
|
|
317
|
+
const $ro1 = (_recursive = false, _depth = 0) => ({
|
|
318
|
+
user: $pick([
|
|
319
|
+
() => undefined,
|
|
320
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
321
|
+
])(),
|
|
322
|
+
description: $pick([
|
|
323
|
+
() => undefined,
|
|
324
|
+
() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
|
|
325
|
+
])(),
|
|
326
|
+
files: $ro2(_recursive, _recursive ? 1 + _depth : _depth)
|
|
327
|
+
});
|
|
328
|
+
const $ro2 = (_recursive = false, _depth = 0) => {
|
|
329
|
+
const output = {};
|
|
330
|
+
(generator?.array ?? $generator.array)(() => output[(generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()] = (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(), (generator?.integer ?? $generator.integer)(0, 3));
|
|
331
|
+
return output;
|
|
332
|
+
};
|
|
333
|
+
return $ro0();
|
|
334
|
+
};
|
|
335
|
+
export const assertGuardBundleRevisionsRecord = (input, errorFactory) => {
|
|
336
|
+
const __is = input => {
|
|
337
|
+
const $io0 = input => Object.keys(input).every(key => {
|
|
338
|
+
const value = input[key];
|
|
339
|
+
if (undefined === value)
|
|
340
|
+
return true;
|
|
341
|
+
return "object" === typeof value && null !== value && $io1(value);
|
|
342
|
+
});
|
|
343
|
+
const $io1 = input => (undefined === input.user || "string" === typeof input.user) && (undefined === input.description || "string" === typeof input.description) && ("object" === typeof input.files && null !== input.files && false === Array.isArray(input.files) && $io2(input.files));
|
|
344
|
+
const $io2 = input => Object.keys(input).every(key => {
|
|
345
|
+
const value = input[key];
|
|
346
|
+
if (undefined === value)
|
|
347
|
+
return true;
|
|
348
|
+
return "string" === typeof value;
|
|
349
|
+
});
|
|
350
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
351
|
+
};
|
|
352
|
+
if (false === __is(input))
|
|
353
|
+
((input, _path, _exceptionable = true) => {
|
|
354
|
+
const $guard = __typia.createAssertGuard.guard;
|
|
355
|
+
const $join = __typia.createAssertGuard.join;
|
|
356
|
+
const $ao0 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
357
|
+
const value = input[key];
|
|
358
|
+
if (undefined === value)
|
|
359
|
+
return true;
|
|
360
|
+
return ("object" === typeof value && null !== value || $guard(_exceptionable, {
|
|
361
|
+
path: _path + $join(key),
|
|
362
|
+
expected: "BundleRecord",
|
|
363
|
+
value: value
|
|
364
|
+
}, errorFactory)) && $ao1(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
|
|
365
|
+
path: _path + $join(key),
|
|
366
|
+
expected: "BundleRecord",
|
|
367
|
+
value: value
|
|
368
|
+
}, errorFactory);
|
|
369
|
+
});
|
|
370
|
+
const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.user || "string" === typeof input.user || $guard(_exceptionable, {
|
|
371
|
+
path: _path + ".user",
|
|
372
|
+
expected: "(string | undefined)",
|
|
373
|
+
value: input.user
|
|
374
|
+
}, errorFactory)) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
|
|
375
|
+
path: _path + ".description",
|
|
376
|
+
expected: "(string | undefined)",
|
|
377
|
+
value: input.description
|
|
378
|
+
}, errorFactory)) && (("object" === typeof input.files && null !== input.files && false === Array.isArray(input.files) || $guard(_exceptionable, {
|
|
379
|
+
path: _path + ".files",
|
|
380
|
+
expected: "Record<string, string>",
|
|
381
|
+
value: input.files
|
|
382
|
+
}, errorFactory)) && $ao2(input.files, _path + ".files", true && _exceptionable) || $guard(_exceptionable, {
|
|
383
|
+
path: _path + ".files",
|
|
384
|
+
expected: "Record<string, string>",
|
|
385
|
+
value: input.files
|
|
386
|
+
}, errorFactory));
|
|
387
|
+
const $ao2 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
388
|
+
const value = input[key];
|
|
389
|
+
if (undefined === value)
|
|
390
|
+
return true;
|
|
391
|
+
return "string" === typeof value || $guard(_exceptionable, {
|
|
392
|
+
path: _path + $join(key),
|
|
393
|
+
expected: "string",
|
|
394
|
+
value: value
|
|
395
|
+
}, errorFactory);
|
|
396
|
+
});
|
|
397
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
398
|
+
path: _path + "",
|
|
399
|
+
expected: "BundleRevisionsRecord",
|
|
400
|
+
value: input
|
|
401
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
402
|
+
path: _path + "",
|
|
403
|
+
expected: "BundleRevisionsRecord",
|
|
404
|
+
value: input
|
|
405
|
+
}, errorFactory);
|
|
406
|
+
})(input, "$input", true);
|
|
407
|
+
};
|
|
408
|
+
export const stringifyBundleRevisionsRecord = input => {
|
|
409
|
+
const $io1 = input => (undefined === input.user || "string" === typeof input.user) && (undefined === input.description || "string" === typeof input.description) && ("object" === typeof input.files && null !== input.files && false === Array.isArray(input.files) && $io2(input.files));
|
|
410
|
+
const $io2 = input => Object.keys(input).every(key => {
|
|
411
|
+
const value = input[key];
|
|
412
|
+
if (undefined === value)
|
|
413
|
+
return true;
|
|
414
|
+
return "string" === typeof value;
|
|
415
|
+
});
|
|
416
|
+
const $string = __typia.json.createStringify.string;
|
|
417
|
+
const $so0 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
418
|
+
return ""; return `${JSON.stringify(key)}:${$so1(value)}`; }).filter(str => "" !== str).join(",")}}`;
|
|
419
|
+
const $so1 = input => `{${undefined === input.user ? "" : `"user":${undefined !== input.user ? $string(input.user) : undefined},`}${undefined === input.description ? "" : `"description":${undefined !== input.description ? $string(input.description) : undefined},`}"files":${$so2(input.files)}}`;
|
|
420
|
+
const $so2 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
421
|
+
return ""; return `${JSON.stringify(key)}:${$string(value)}`; }).filter(str => "" !== str).join(",")}}`;
|
|
422
|
+
return $so0(input);
|
|
423
|
+
};
|
|
424
|
+
export const assertStringifyBundleRevisionsRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
425
|
+
const __is = input => {
|
|
426
|
+
const $io0 = input => Object.keys(input).every(key => {
|
|
427
|
+
const value = input[key];
|
|
428
|
+
if (undefined === value)
|
|
429
|
+
return true;
|
|
430
|
+
return "object" === typeof value && null !== value && $io1(value);
|
|
431
|
+
});
|
|
432
|
+
const $io1 = input => (undefined === input.user || "string" === typeof input.user) && (undefined === input.description || "string" === typeof input.description) && ("object" === typeof input.files && null !== input.files && false === Array.isArray(input.files) && $io2(input.files));
|
|
433
|
+
const $io2 = input => Object.keys(input).every(key => {
|
|
434
|
+
const value = input[key];
|
|
435
|
+
if (undefined === value)
|
|
436
|
+
return true;
|
|
437
|
+
return "string" === typeof value;
|
|
438
|
+
});
|
|
439
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
440
|
+
};
|
|
441
|
+
if (false === __is(input))
|
|
442
|
+
((input, _path, _exceptionable = true) => {
|
|
443
|
+
const $guard = __typia.json.createAssertStringify.guard;
|
|
444
|
+
const $join = __typia.json.createAssertStringify.join;
|
|
445
|
+
const $ao0 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
446
|
+
const value = input[key];
|
|
447
|
+
if (undefined === value)
|
|
448
|
+
return true;
|
|
449
|
+
return ("object" === typeof value && null !== value || $guard(_exceptionable, {
|
|
450
|
+
path: _path + $join(key),
|
|
451
|
+
expected: "BundleRecord",
|
|
452
|
+
value: value
|
|
453
|
+
}, errorFactory)) && $ao1(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
|
|
454
|
+
path: _path + $join(key),
|
|
455
|
+
expected: "BundleRecord",
|
|
456
|
+
value: value
|
|
457
|
+
}, errorFactory);
|
|
458
|
+
});
|
|
459
|
+
const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.user || "string" === typeof input.user || $guard(_exceptionable, {
|
|
460
|
+
path: _path + ".user",
|
|
461
|
+
expected: "(string | undefined)",
|
|
462
|
+
value: input.user
|
|
463
|
+
}, errorFactory)) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
|
|
464
|
+
path: _path + ".description",
|
|
465
|
+
expected: "(string | undefined)",
|
|
466
|
+
value: input.description
|
|
467
|
+
}, errorFactory)) && (("object" === typeof input.files && null !== input.files && false === Array.isArray(input.files) || $guard(_exceptionable, {
|
|
468
|
+
path: _path + ".files",
|
|
469
|
+
expected: "Record<string, string>",
|
|
470
|
+
value: input.files
|
|
471
|
+
}, errorFactory)) && $ao2(input.files, _path + ".files", true && _exceptionable) || $guard(_exceptionable, {
|
|
472
|
+
path: _path + ".files",
|
|
473
|
+
expected: "Record<string, string>",
|
|
474
|
+
value: input.files
|
|
475
|
+
}, errorFactory));
|
|
476
|
+
const $ao2 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
477
|
+
const value = input[key];
|
|
478
|
+
if (undefined === value)
|
|
479
|
+
return true;
|
|
480
|
+
return "string" === typeof value || $guard(_exceptionable, {
|
|
481
|
+
path: _path + $join(key),
|
|
482
|
+
expected: "string",
|
|
483
|
+
value: value
|
|
484
|
+
}, errorFactory);
|
|
485
|
+
});
|
|
486
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
487
|
+
path: _path + "",
|
|
488
|
+
expected: "BundleRevisionsRecord",
|
|
489
|
+
value: input
|
|
490
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
491
|
+
path: _path + "",
|
|
492
|
+
expected: "BundleRevisionsRecord",
|
|
493
|
+
value: input
|
|
494
|
+
}, errorFactory);
|
|
495
|
+
})(input, "$input", true);
|
|
496
|
+
return input;
|
|
497
|
+
}; const stringify = input => {
|
|
498
|
+
const $io1 = input => (undefined === input.user || "string" === typeof input.user) && (undefined === input.description || "string" === typeof input.description) && ("object" === typeof input.files && null !== input.files && false === Array.isArray(input.files) && $io2(input.files));
|
|
499
|
+
const $io2 = input => Object.keys(input).every(key => {
|
|
500
|
+
const value = input[key];
|
|
501
|
+
if (undefined === value)
|
|
502
|
+
return true;
|
|
503
|
+
return "string" === typeof value;
|
|
504
|
+
});
|
|
505
|
+
const $string = __typia.json.createAssertStringify.string;
|
|
506
|
+
const $so0 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
507
|
+
return ""; return `${JSON.stringify(key)}:${$so1(value)}`; }).filter(str => "" !== str).join(",")}}`;
|
|
508
|
+
const $so1 = input => `{${undefined === input.user ? "" : `"user":${undefined !== input.user ? $string(input.user) : undefined},`}${undefined === input.description ? "" : `"description":${undefined !== input.description ? $string(input.description) : undefined},`}"files":${$so2(input.files)}}`;
|
|
509
|
+
const $so2 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
510
|
+
return ""; return `${JSON.stringify(key)}:${$string(value)}`; }).filter(str => "" !== str).join(",")}}`;
|
|
511
|
+
return $so0(input);
|
|
512
|
+
}; return stringify(assert(input, errorFactory)); };
|
package/dist/domains/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { AssetDomainRecords } from './asset.js';
|
|
2
|
+
import type { BundleDomainRecords } from './bundle.js';
|
|
2
3
|
import type { ConnectionDomainRecords } from './connection.js';
|
|
3
4
|
import type { ContactDomainRecords } from './contact.js';
|
|
4
5
|
import type { EventDomainRecords } from './event.js';
|
|
@@ -14,6 +15,7 @@ import type { SearchDomainRecords } from './search.js';
|
|
|
14
15
|
import type { SettingsDomainRecords } from './settings.js';
|
|
15
16
|
import type { TemplateDomainRecords } from './template.js';
|
|
16
17
|
export * from './asset.js';
|
|
18
|
+
export * from './bundle.js';
|
|
17
19
|
export * from './connection.js';
|
|
18
20
|
export * from './contact.js';
|
|
19
21
|
export * from './event.js';
|
|
@@ -28,4 +30,4 @@ export * from './script.js';
|
|
|
28
30
|
export * from './search.js';
|
|
29
31
|
export * from './settings.js';
|
|
30
32
|
export * from './template.js';
|
|
31
|
-
export type DomainRecords = AssetDomainRecords & ConnectionDomainRecords & ContactDomainRecords & EventDomainRecords & FileDomainRecords & GeneralDomainRecords & MediaDomainRecords & PermissionDomainRecords & PlanningDomainRecords & PublishDomainRecords & RoleDomainRecords & ScriptDomainRecords & SearchDomainRecords & SettingsDomainRecords & TemplateDomainRecords;
|
|
33
|
+
export type DomainRecords = AssetDomainRecords & BundleDomainRecords & ConnectionDomainRecords & ContactDomainRecords & EventDomainRecords & FileDomainRecords & GeneralDomainRecords & MediaDomainRecords & PermissionDomainRecords & PlanningDomainRecords & PublishDomainRecords & RoleDomainRecords & ScriptDomainRecords & SearchDomainRecords & SettingsDomainRecords & TemplateDomainRecords;
|
package/dist/domains/index.js
CHANGED
package/dist/domains/media.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { type AssertionGuard as __AssertionGuard } from "typia";
|
|
2
|
+
import type { Operation } from 'rfc6902';
|
|
2
3
|
export interface MediaDomainRecords {
|
|
3
4
|
":media.source": MediaSourceRecord;
|
|
4
5
|
":media.consolidate": MediaConsolidateRecord;
|
|
5
6
|
":media.renders?": MediaRendersRecord;
|
|
7
|
+
":media.transcriptChanges": MediaTranscriptChangesRecord;
|
|
6
8
|
}
|
|
7
9
|
export interface MediaSourceRecord {
|
|
8
10
|
input?: {
|
|
@@ -64,3 +66,21 @@ export declare const randomMediaRenderRecordValue: () => MediaRenderRecordValue;
|
|
|
64
66
|
export declare const assertGuardMediaRenderRecordValue: __AssertionGuard<MediaRenderRecordValue>;
|
|
65
67
|
export declare const stringifyMediaRenderRecordValue: (input: MediaRenderRecordValue) => string;
|
|
66
68
|
export declare const assertStringifyMediaRenderRecordValue: (input: unknown) => string;
|
|
69
|
+
export type MediaTranscriptChangesRecord = {
|
|
70
|
+
[patchKey: string]: MediaTranscriptChangesRecordValue;
|
|
71
|
+
};
|
|
72
|
+
export declare const isMediaTranscriptChangesRecord: (input: unknown) => input is MediaTranscriptChangesRecord;
|
|
73
|
+
export declare const assertMediaTranscriptChangesRecord: (input: unknown) => MediaTranscriptChangesRecord;
|
|
74
|
+
export declare const randomMediaTranscriptChangesRecord: () => MediaTranscriptChangesRecord;
|
|
75
|
+
export declare const assertGuardMediaTranscriptChangesRecord: __AssertionGuard<MediaTranscriptChangesRecord>;
|
|
76
|
+
export declare const stringifyMediaTranscriptChangesRecord: (input: MediaTranscriptChangesRecord) => string;
|
|
77
|
+
export declare const assertStringifyMediaTranscriptChangesRecord: (input: unknown) => string;
|
|
78
|
+
export interface MediaTranscriptChangesRecordValue {
|
|
79
|
+
patch?: Operation[];
|
|
80
|
+
}
|
|
81
|
+
export declare const isMediaTranscriptChangesRecordValue: (input: unknown) => input is MediaTranscriptChangesRecordValue;
|
|
82
|
+
export declare const assertMediaTranscriptChangesRecordValue: (input: unknown) => MediaTranscriptChangesRecordValue;
|
|
83
|
+
export declare const randomMediaTranscriptChangesRecordValue: () => MediaTranscriptChangesRecordValue;
|
|
84
|
+
export declare const assertGuardMediaTranscriptChangesRecordValue: __AssertionGuard<MediaTranscriptChangesRecordValue>;
|
|
85
|
+
export declare const stringifyMediaTranscriptChangesRecordValue: (input: MediaTranscriptChangesRecordValue) => string;
|
|
86
|
+
export declare const assertStringifyMediaTranscriptChangesRecordValue: (input: unknown) => string;
|