@nxtedition/types 23.0.1 → 23.0.3
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 +1 -12
- package/dist/asset.d.ts +10 -0
- package/dist/asset.js +1 -0
- package/dist/common/block.d.ts +1 -1
- package/dist/common/clone.d.ts +32 -0
- package/dist/common/clone.js +602 -0
- package/dist/common/index.d.ts +3 -0
- package/dist/common/index.js +3 -0
- package/dist/common/nxtpression.d.ts +19 -0
- package/dist/common/nxtpression.js +240 -0
- package/dist/common/search.d.ts +69 -0
- package/dist/common/search.js +1591 -0
- package/dist/common/settings.d.ts +6 -5
- package/dist/common/settings.js +89 -36
- package/dist/domains/asset.d.ts +22 -0
- package/dist/domains/asset.js +232 -0
- package/dist/domains/clone.d.ts +14 -0
- package/dist/domains/clone.js +192 -0
- package/dist/domains/connection.d.ts +39 -15
- package/dist/domains/connection.js +621 -174
- package/dist/domains/design.d.ts +24 -0
- package/dist/domains/design.js +303 -0
- package/dist/domains/file.d.ts +17 -0
- package/dist/domains/file.js +233 -0
- package/dist/domains/index.d.ts +11 -1
- package/dist/domains/index.js +5 -0
- package/dist/domains/media.d.ts +28 -0
- package/dist/domains/media.js +346 -0
- package/dist/domains/published.d.ts +18 -0
- package/dist/domains/published.js +164 -0
- package/dist/domains/revs.d.ts +13 -0
- package/dist/domains/revs.js +125 -0
- package/dist/domains/search.d.ts +3 -0
- package/dist/domains/search.js +62 -13
- package/dist/domains/settings.js +70 -26
- package/dist/domains/user.d.ts +14 -0
- package/dist/domains/user.js +141 -0
- package/dist/index.d.ts +20 -6
- package/dist/index.js +135 -0
- package/dist/rpc.d.ts +48 -13
- package/dist/rpc.js +505 -1
- package/dist/schema.json +3014 -0
- package/package.json +7 -3
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type AssertionGuard as __AssertionGuard } from "typia";
|
|
2
|
+
export interface DesignDomainRecords {
|
|
3
|
+
":design": DesignDomainRecord;
|
|
4
|
+
}
|
|
5
|
+
export interface DesignDomainRecord<Id = string, Key = string, Value = unknown> {
|
|
6
|
+
rows: DesignViewRow<Id, Key, Value>[];
|
|
7
|
+
}
|
|
8
|
+
export declare const isDesignDomainRecord: (input: unknown) => input is DesignDomainRecord<string, string, unknown>;
|
|
9
|
+
export declare const assertDesignDomainRecord: (input: unknown) => DesignDomainRecord<string, string, unknown>;
|
|
10
|
+
export declare const randomDesignDomainRecord: () => DesignDomainRecord<string, string, unknown>;
|
|
11
|
+
export declare const assertGuardDesignDomainRecord: __AssertionGuard<DesignDomainRecord>;
|
|
12
|
+
export declare const stringifyDesignDomainRecord: (input: DesignDomainRecord<string, string, unknown>) => string;
|
|
13
|
+
export declare const assertStringifyDesignDomainRecord: (input: unknown) => string;
|
|
14
|
+
export interface DesignViewRow<Id = string, Key = string, Value = void> {
|
|
15
|
+
id: Id;
|
|
16
|
+
key: Key;
|
|
17
|
+
value: Value;
|
|
18
|
+
}
|
|
19
|
+
export declare const isDesignViewRow: (input: unknown) => input is DesignViewRow<string, string, void>;
|
|
20
|
+
export declare const assertDesignViewRow: (input: unknown) => DesignViewRow<string, string, void>;
|
|
21
|
+
export declare const randomDesignViewRow: () => DesignViewRow<string, string, void>;
|
|
22
|
+
export declare const assertGuardDesignViewRow: __AssertionGuard<DesignViewRow>;
|
|
23
|
+
export declare const stringifyDesignViewRow: (input: DesignViewRow<string, string, void>) => string;
|
|
24
|
+
export declare const assertStringifyDesignViewRow: (input: unknown) => string;
|
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
import __typia from "typia";
|
|
2
|
+
export const isDesignDomainRecord = input => {
|
|
3
|
+
const $io0 = input => Array.isArray(input.rows) && input.rows.every(elem => "object" === typeof elem && null !== elem && $io1(elem));
|
|
4
|
+
const $io1 = input => "string" === typeof input.id && "string" === typeof input.key && true;
|
|
5
|
+
return "object" === typeof input && null !== input && $io0(input);
|
|
6
|
+
};
|
|
7
|
+
export const assertDesignDomainRecord = (input, errorFactory) => {
|
|
8
|
+
const __is = input => {
|
|
9
|
+
const $io0 = input => Array.isArray(input.rows) && input.rows.every(elem => "object" === typeof elem && null !== elem && $io1(elem));
|
|
10
|
+
const $io1 = input => "string" === typeof input.id && "string" === typeof input.key && true;
|
|
11
|
+
return "object" === typeof input && null !== input && $io0(input);
|
|
12
|
+
};
|
|
13
|
+
if (false === __is(input))
|
|
14
|
+
((input, _path, _exceptionable = true) => {
|
|
15
|
+
const $guard = __typia.createAssert.guard;
|
|
16
|
+
const $ao0 = (input, _path, _exceptionable = true) => (Array.isArray(input.rows) || $guard(_exceptionable, {
|
|
17
|
+
path: _path + ".rows",
|
|
18
|
+
expected: "Array<DesignViewRow<string, string, unknown>>",
|
|
19
|
+
value: input.rows
|
|
20
|
+
}, errorFactory)) && input.rows.every((elem, _index1) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
|
|
21
|
+
path: _path + ".rows[" + _index1 + "]",
|
|
22
|
+
expected: "DesignViewRow<string, string, unknown>",
|
|
23
|
+
value: elem
|
|
24
|
+
}, errorFactory)) && $ao1(elem, _path + ".rows[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
25
|
+
path: _path + ".rows[" + _index1 + "]",
|
|
26
|
+
expected: "DesignViewRow<string, string, unknown>",
|
|
27
|
+
value: elem
|
|
28
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
29
|
+
path: _path + ".rows",
|
|
30
|
+
expected: "Array<DesignViewRow<string, string, unknown>>",
|
|
31
|
+
value: input.rows
|
|
32
|
+
}, errorFactory);
|
|
33
|
+
const $ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.id || $guard(_exceptionable, {
|
|
34
|
+
path: _path + ".id",
|
|
35
|
+
expected: "string",
|
|
36
|
+
value: input.id
|
|
37
|
+
}, errorFactory)) && ("string" === typeof input.key || $guard(_exceptionable, {
|
|
38
|
+
path: _path + ".key",
|
|
39
|
+
expected: "string",
|
|
40
|
+
value: input.key
|
|
41
|
+
}, errorFactory)) && true;
|
|
42
|
+
return ("object" === typeof input && null !== input || $guard(true, {
|
|
43
|
+
path: _path + "",
|
|
44
|
+
expected: "DesignDomainRecord<string, string, unknown>",
|
|
45
|
+
value: input
|
|
46
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
47
|
+
path: _path + "",
|
|
48
|
+
expected: "DesignDomainRecord<string, string, unknown>",
|
|
49
|
+
value: input
|
|
50
|
+
}, errorFactory);
|
|
51
|
+
})(input, "$input", true);
|
|
52
|
+
return input;
|
|
53
|
+
};
|
|
54
|
+
export const randomDesignDomainRecord = generator => {
|
|
55
|
+
const $generator = __typia.createRandom.generator;
|
|
56
|
+
const $ro0 = (_recursive = false, _depth = 0) => ({
|
|
57
|
+
rows: (generator?.array ?? $generator.array)(() => $ro1(_recursive, _recursive ? 1 + _depth : _depth))
|
|
58
|
+
});
|
|
59
|
+
const $ro1 = (_recursive = false, _depth = 0) => ({
|
|
60
|
+
id: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
61
|
+
key: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
62
|
+
value: "any type used..."
|
|
63
|
+
});
|
|
64
|
+
return $ro0();
|
|
65
|
+
};
|
|
66
|
+
export const assertGuardDesignDomainRecord = (input, errorFactory) => {
|
|
67
|
+
const __is = input => {
|
|
68
|
+
const $io0 = input => Array.isArray(input.rows) && input.rows.every(elem => "object" === typeof elem && null !== elem && $io1(elem));
|
|
69
|
+
const $io1 = input => "string" === typeof input.id && "string" === typeof input.key && true;
|
|
70
|
+
return "object" === typeof input && null !== input && $io0(input);
|
|
71
|
+
};
|
|
72
|
+
if (false === __is(input))
|
|
73
|
+
((input, _path, _exceptionable = true) => {
|
|
74
|
+
const $guard = __typia.createAssertGuard.guard;
|
|
75
|
+
const $ao0 = (input, _path, _exceptionable = true) => (Array.isArray(input.rows) || $guard(_exceptionable, {
|
|
76
|
+
path: _path + ".rows",
|
|
77
|
+
expected: "Array<DesignViewRow<string, string, unknown>>",
|
|
78
|
+
value: input.rows
|
|
79
|
+
}, errorFactory)) && input.rows.every((elem, _index1) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
|
|
80
|
+
path: _path + ".rows[" + _index1 + "]",
|
|
81
|
+
expected: "DesignViewRow<string, string, unknown>",
|
|
82
|
+
value: elem
|
|
83
|
+
}, errorFactory)) && $ao1(elem, _path + ".rows[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
84
|
+
path: _path + ".rows[" + _index1 + "]",
|
|
85
|
+
expected: "DesignViewRow<string, string, unknown>",
|
|
86
|
+
value: elem
|
|
87
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
88
|
+
path: _path + ".rows",
|
|
89
|
+
expected: "Array<DesignViewRow<string, string, unknown>>",
|
|
90
|
+
value: input.rows
|
|
91
|
+
}, errorFactory);
|
|
92
|
+
const $ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.id || $guard(_exceptionable, {
|
|
93
|
+
path: _path + ".id",
|
|
94
|
+
expected: "string",
|
|
95
|
+
value: input.id
|
|
96
|
+
}, errorFactory)) && ("string" === typeof input.key || $guard(_exceptionable, {
|
|
97
|
+
path: _path + ".key",
|
|
98
|
+
expected: "string",
|
|
99
|
+
value: input.key
|
|
100
|
+
}, errorFactory)) && true;
|
|
101
|
+
return ("object" === typeof input && null !== input || $guard(true, {
|
|
102
|
+
path: _path + "",
|
|
103
|
+
expected: "DesignDomainRecord<string, string, unknown>",
|
|
104
|
+
value: input
|
|
105
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
106
|
+
path: _path + "",
|
|
107
|
+
expected: "DesignDomainRecord<string, string, unknown>",
|
|
108
|
+
value: input
|
|
109
|
+
}, errorFactory);
|
|
110
|
+
})(input, "$input", true);
|
|
111
|
+
};
|
|
112
|
+
export const stringifyDesignDomainRecord = input => {
|
|
113
|
+
const $io1 = input => "string" === typeof input.id && "string" === typeof input.key && true;
|
|
114
|
+
const $string = __typia.json.createStringify.string;
|
|
115
|
+
const $so0 = input => `{"rows":${`[${input.rows.map(elem => $so1(elem)).join(",")}]`}}`;
|
|
116
|
+
const $so1 = input => `{${undefined === input.value || "function" === typeof input.value ? "" : `"value":${undefined !== input.value ? JSON.stringify(input.value) : undefined},`}"id":${$string(input.id)},"key":${$string(input.key)}}`;
|
|
117
|
+
return $so0(input);
|
|
118
|
+
};
|
|
119
|
+
export const assertStringifyDesignDomainRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
120
|
+
const __is = input => {
|
|
121
|
+
const $io0 = input => Array.isArray(input.rows) && input.rows.every(elem => "object" === typeof elem && null !== elem && $io1(elem));
|
|
122
|
+
const $io1 = input => "string" === typeof input.id && "string" === typeof input.key && true;
|
|
123
|
+
return "object" === typeof input && null !== input && $io0(input);
|
|
124
|
+
};
|
|
125
|
+
if (false === __is(input))
|
|
126
|
+
((input, _path, _exceptionable = true) => {
|
|
127
|
+
const $guard = __typia.json.createAssertStringify.guard;
|
|
128
|
+
const $ao0 = (input, _path, _exceptionable = true) => (Array.isArray(input.rows) || $guard(_exceptionable, {
|
|
129
|
+
path: _path + ".rows",
|
|
130
|
+
expected: "Array<DesignViewRow<string, string, unknown>>",
|
|
131
|
+
value: input.rows
|
|
132
|
+
}, errorFactory)) && input.rows.every((elem, _index1) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
|
|
133
|
+
path: _path + ".rows[" + _index1 + "]",
|
|
134
|
+
expected: "DesignViewRow<string, string, unknown>",
|
|
135
|
+
value: elem
|
|
136
|
+
}, errorFactory)) && $ao1(elem, _path + ".rows[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
137
|
+
path: _path + ".rows[" + _index1 + "]",
|
|
138
|
+
expected: "DesignViewRow<string, string, unknown>",
|
|
139
|
+
value: elem
|
|
140
|
+
}, errorFactory)) || $guard(_exceptionable, {
|
|
141
|
+
path: _path + ".rows",
|
|
142
|
+
expected: "Array<DesignViewRow<string, string, unknown>>",
|
|
143
|
+
value: input.rows
|
|
144
|
+
}, errorFactory);
|
|
145
|
+
const $ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.id || $guard(_exceptionable, {
|
|
146
|
+
path: _path + ".id",
|
|
147
|
+
expected: "string",
|
|
148
|
+
value: input.id
|
|
149
|
+
}, errorFactory)) && ("string" === typeof input.key || $guard(_exceptionable, {
|
|
150
|
+
path: _path + ".key",
|
|
151
|
+
expected: "string",
|
|
152
|
+
value: input.key
|
|
153
|
+
}, errorFactory)) && true;
|
|
154
|
+
return ("object" === typeof input && null !== input || $guard(true, {
|
|
155
|
+
path: _path + "",
|
|
156
|
+
expected: "DesignDomainRecord<string, string, unknown>",
|
|
157
|
+
value: input
|
|
158
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
159
|
+
path: _path + "",
|
|
160
|
+
expected: "DesignDomainRecord<string, string, unknown>",
|
|
161
|
+
value: input
|
|
162
|
+
}, errorFactory);
|
|
163
|
+
})(input, "$input", true);
|
|
164
|
+
return input;
|
|
165
|
+
}; const stringify = input => {
|
|
166
|
+
const $io1 = input => "string" === typeof input.id && "string" === typeof input.key && true;
|
|
167
|
+
const $string = __typia.json.createAssertStringify.string;
|
|
168
|
+
const $so0 = input => `{"rows":${`[${input.rows.map(elem => $so1(elem)).join(",")}]`}}`;
|
|
169
|
+
const $so1 = input => `{${undefined === input.value || "function" === typeof input.value ? "" : `"value":${undefined !== input.value ? JSON.stringify(input.value) : undefined},`}"id":${$string(input.id)},"key":${$string(input.key)}}`;
|
|
170
|
+
return $so0(input);
|
|
171
|
+
}; return stringify(assert(input, errorFactory)); };
|
|
172
|
+
export const isDesignViewRow = input => {
|
|
173
|
+
const $io0 = input => "string" === typeof input.id && "string" === typeof input.key && (null !== input.value && undefined === input.value);
|
|
174
|
+
return "object" === typeof input && null !== input && $io0(input);
|
|
175
|
+
};
|
|
176
|
+
export const assertDesignViewRow = (input, errorFactory) => {
|
|
177
|
+
const __is = input => {
|
|
178
|
+
const $io0 = input => "string" === typeof input.id && "string" === typeof input.key && (null !== input.value && undefined === input.value);
|
|
179
|
+
return "object" === typeof input && null !== input && $io0(input);
|
|
180
|
+
};
|
|
181
|
+
if (false === __is(input))
|
|
182
|
+
((input, _path, _exceptionable = true) => {
|
|
183
|
+
const $guard = __typia.createAssert.guard;
|
|
184
|
+
const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.id || $guard(_exceptionable, {
|
|
185
|
+
path: _path + ".id",
|
|
186
|
+
expected: "string",
|
|
187
|
+
value: input.id
|
|
188
|
+
}, errorFactory)) && ("string" === typeof input.key || $guard(_exceptionable, {
|
|
189
|
+
path: _path + ".key",
|
|
190
|
+
expected: "string",
|
|
191
|
+
value: input.key
|
|
192
|
+
}, errorFactory)) && ((null !== input.value || $guard(_exceptionable, {
|
|
193
|
+
path: _path + ".value",
|
|
194
|
+
expected: "undefined",
|
|
195
|
+
value: input.value
|
|
196
|
+
}, errorFactory)) && (undefined === input.value || $guard(_exceptionable, {
|
|
197
|
+
path: _path + ".value",
|
|
198
|
+
expected: "undefined",
|
|
199
|
+
value: input.value
|
|
200
|
+
}, errorFactory)));
|
|
201
|
+
return ("object" === typeof input && null !== input || $guard(true, {
|
|
202
|
+
path: _path + "",
|
|
203
|
+
expected: "DesignViewRow<string, string, void>",
|
|
204
|
+
value: input
|
|
205
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
206
|
+
path: _path + "",
|
|
207
|
+
expected: "DesignViewRow<string, string, void>",
|
|
208
|
+
value: input
|
|
209
|
+
}, errorFactory);
|
|
210
|
+
})(input, "$input", true);
|
|
211
|
+
return input;
|
|
212
|
+
};
|
|
213
|
+
export const randomDesignViewRow = generator => {
|
|
214
|
+
const $generator = __typia.createRandom.generator;
|
|
215
|
+
const $ro0 = (_recursive = false, _depth = 0) => ({
|
|
216
|
+
id: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
217
|
+
key: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
218
|
+
value: undefined
|
|
219
|
+
});
|
|
220
|
+
return $ro0();
|
|
221
|
+
};
|
|
222
|
+
export const assertGuardDesignViewRow = (input, errorFactory) => {
|
|
223
|
+
const __is = input => {
|
|
224
|
+
const $io0 = input => "string" === typeof input.id && "string" === typeof input.key && (null !== input.value && undefined === input.value);
|
|
225
|
+
return "object" === typeof input && null !== input && $io0(input);
|
|
226
|
+
};
|
|
227
|
+
if (false === __is(input))
|
|
228
|
+
((input, _path, _exceptionable = true) => {
|
|
229
|
+
const $guard = __typia.createAssertGuard.guard;
|
|
230
|
+
const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.id || $guard(_exceptionable, {
|
|
231
|
+
path: _path + ".id",
|
|
232
|
+
expected: "string",
|
|
233
|
+
value: input.id
|
|
234
|
+
}, errorFactory)) && ("string" === typeof input.key || $guard(_exceptionable, {
|
|
235
|
+
path: _path + ".key",
|
|
236
|
+
expected: "string",
|
|
237
|
+
value: input.key
|
|
238
|
+
}, errorFactory)) && ((null !== input.value || $guard(_exceptionable, {
|
|
239
|
+
path: _path + ".value",
|
|
240
|
+
expected: "undefined",
|
|
241
|
+
value: input.value
|
|
242
|
+
}, errorFactory)) && (undefined === input.value || $guard(_exceptionable, {
|
|
243
|
+
path: _path + ".value",
|
|
244
|
+
expected: "undefined",
|
|
245
|
+
value: input.value
|
|
246
|
+
}, errorFactory)));
|
|
247
|
+
return ("object" === typeof input && null !== input || $guard(true, {
|
|
248
|
+
path: _path + "",
|
|
249
|
+
expected: "DesignViewRow<string, string, void>",
|
|
250
|
+
value: input
|
|
251
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
252
|
+
path: _path + "",
|
|
253
|
+
expected: "DesignViewRow<string, string, void>",
|
|
254
|
+
value: input
|
|
255
|
+
}, errorFactory);
|
|
256
|
+
})(input, "$input", true);
|
|
257
|
+
};
|
|
258
|
+
export const stringifyDesignViewRow = input => {
|
|
259
|
+
const $string = __typia.json.createStringify.string;
|
|
260
|
+
const $so0 = input => `{"id":${$string(input.id)},"key":${$string(input.key)}}`;
|
|
261
|
+
return $so0(input);
|
|
262
|
+
};
|
|
263
|
+
export const assertStringifyDesignViewRow = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
264
|
+
const __is = input => {
|
|
265
|
+
const $io0 = input => "string" === typeof input.id && "string" === typeof input.key && (null !== input.value && undefined === input.value);
|
|
266
|
+
return "object" === typeof input && null !== input && $io0(input);
|
|
267
|
+
};
|
|
268
|
+
if (false === __is(input))
|
|
269
|
+
((input, _path, _exceptionable = true) => {
|
|
270
|
+
const $guard = __typia.json.createAssertStringify.guard;
|
|
271
|
+
const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.id || $guard(_exceptionable, {
|
|
272
|
+
path: _path + ".id",
|
|
273
|
+
expected: "string",
|
|
274
|
+
value: input.id
|
|
275
|
+
}, errorFactory)) && ("string" === typeof input.key || $guard(_exceptionable, {
|
|
276
|
+
path: _path + ".key",
|
|
277
|
+
expected: "string",
|
|
278
|
+
value: input.key
|
|
279
|
+
}, errorFactory)) && ((null !== input.value || $guard(_exceptionable, {
|
|
280
|
+
path: _path + ".value",
|
|
281
|
+
expected: "undefined",
|
|
282
|
+
value: input.value
|
|
283
|
+
}, errorFactory)) && (undefined === input.value || $guard(_exceptionable, {
|
|
284
|
+
path: _path + ".value",
|
|
285
|
+
expected: "undefined",
|
|
286
|
+
value: input.value
|
|
287
|
+
}, errorFactory)));
|
|
288
|
+
return ("object" === typeof input && null !== input || $guard(true, {
|
|
289
|
+
path: _path + "",
|
|
290
|
+
expected: "DesignViewRow<string, string, void>",
|
|
291
|
+
value: input
|
|
292
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
293
|
+
path: _path + "",
|
|
294
|
+
expected: "DesignViewRow<string, string, void>",
|
|
295
|
+
value: input
|
|
296
|
+
}, errorFactory);
|
|
297
|
+
})(input, "$input", true);
|
|
298
|
+
return input;
|
|
299
|
+
}; const stringify = input => {
|
|
300
|
+
const $string = __typia.json.createAssertStringify.string;
|
|
301
|
+
const $so0 = input => `{"id":${$string(input.id)},"key":${$string(input.key)}}`;
|
|
302
|
+
return $so0(input);
|
|
303
|
+
}; return stringify(assert(input, errorFactory)); };
|
package/dist/domains/file.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { type AssertionGuard as __AssertionGuard } from "typia";
|
|
|
2
2
|
import { NxtError } from '../common/error.js';
|
|
3
3
|
export interface FileDomainRecords {
|
|
4
4
|
":file.replicate": FileReplicateRecord;
|
|
5
|
+
":file.restrictions": FileRestrictionsRecord;
|
|
5
6
|
}
|
|
6
7
|
export interface FileReplicateRecord {
|
|
7
8
|
replicas: string[];
|
|
@@ -24,3 +25,19 @@ export declare const randomFileReplica: () => FileReplica;
|
|
|
24
25
|
export declare const assertGuardFileReplica: __AssertionGuard<FileReplica>;
|
|
25
26
|
export declare const stringifyFileReplica: (input: FileReplica) => string;
|
|
26
27
|
export declare const assertStringifyFileReplica: (input: unknown) => string;
|
|
28
|
+
export interface FileRestrictionsRecord {
|
|
29
|
+
[restrictionId: string]: {
|
|
30
|
+
asset: string;
|
|
31
|
+
date: string;
|
|
32
|
+
user: string;
|
|
33
|
+
text: string;
|
|
34
|
+
start: number;
|
|
35
|
+
end: number;
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export declare const isFileRestrictionsRecord: (input: unknown) => input is FileRestrictionsRecord;
|
|
39
|
+
export declare const assertFileRestrictionsRecord: (input: unknown) => FileRestrictionsRecord;
|
|
40
|
+
export declare const randomFileRestrictionsRecord: () => FileRestrictionsRecord;
|
|
41
|
+
export declare const assertGuardFileRestrictionsRecord: __AssertionGuard<FileRestrictionsRecord>;
|
|
42
|
+
export declare const stringifyFileRestrictionsRecord: (input: FileRestrictionsRecord) => string;
|
|
43
|
+
export declare const assertStringifyFileRestrictionsRecord: (input: unknown) => string;
|
package/dist/domains/file.js
CHANGED
|
@@ -969,3 +969,236 @@ export const assertStringifyFileReplica = (input, errorFactory) => { const asser
|
|
|
969
969
|
return ""; return `${JSON.stringify(key)}:${$string(value)}`; }).filter(str => "" !== str).join(",")}}`;
|
|
970
970
|
return $so0(input);
|
|
971
971
|
}; return stringify(assert(input, errorFactory)); };
|
|
972
|
+
export const isFileRestrictionsRecord = input => {
|
|
973
|
+
const $io0 = input => Object.keys(input).every(key => {
|
|
974
|
+
const value = input[key];
|
|
975
|
+
if (undefined === value)
|
|
976
|
+
return true;
|
|
977
|
+
return "object" === typeof value && null !== value && ("string" === typeof value.asset && "string" === typeof value.date && "string" === typeof value.user && "string" === typeof value.text && "number" === typeof value.start && "number" === typeof value.end);
|
|
978
|
+
});
|
|
979
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
980
|
+
};
|
|
981
|
+
export const assertFileRestrictionsRecord = (input, errorFactory) => {
|
|
982
|
+
const __is = input => {
|
|
983
|
+
const $io0 = input => Object.keys(input).every(key => {
|
|
984
|
+
const value = input[key];
|
|
985
|
+
if (undefined === value)
|
|
986
|
+
return true;
|
|
987
|
+
return "object" === typeof value && null !== value && ("string" === typeof value.asset && "string" === typeof value.date && "string" === typeof value.user && "string" === typeof value.text && "number" === typeof value.start && "number" === typeof value.end);
|
|
988
|
+
});
|
|
989
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
990
|
+
};
|
|
991
|
+
if (false === __is(input))
|
|
992
|
+
((input, _path, _exceptionable = true) => {
|
|
993
|
+
const $guard = __typia.createAssert.guard;
|
|
994
|
+
const $join = __typia.createAssert.join;
|
|
995
|
+
const $ao0 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
996
|
+
const value = input[key];
|
|
997
|
+
if (undefined === value)
|
|
998
|
+
return true;
|
|
999
|
+
return ("object" === typeof value && null !== value || $guard(_exceptionable, {
|
|
1000
|
+
path: _path + $join(key),
|
|
1001
|
+
expected: "__type",
|
|
1002
|
+
value: value
|
|
1003
|
+
}, errorFactory)) && $ao1(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
|
|
1004
|
+
path: _path + $join(key),
|
|
1005
|
+
expected: "__type",
|
|
1006
|
+
value: value
|
|
1007
|
+
}, errorFactory);
|
|
1008
|
+
});
|
|
1009
|
+
const $ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.asset || $guard(_exceptionable, {
|
|
1010
|
+
path: _path + ".asset",
|
|
1011
|
+
expected: "string",
|
|
1012
|
+
value: input.asset
|
|
1013
|
+
}, errorFactory)) && ("string" === typeof input.date || $guard(_exceptionable, {
|
|
1014
|
+
path: _path + ".date",
|
|
1015
|
+
expected: "string",
|
|
1016
|
+
value: input.date
|
|
1017
|
+
}, errorFactory)) && ("string" === typeof input.user || $guard(_exceptionable, {
|
|
1018
|
+
path: _path + ".user",
|
|
1019
|
+
expected: "string",
|
|
1020
|
+
value: input.user
|
|
1021
|
+
}, errorFactory)) && ("string" === typeof input.text || $guard(_exceptionable, {
|
|
1022
|
+
path: _path + ".text",
|
|
1023
|
+
expected: "string",
|
|
1024
|
+
value: input.text
|
|
1025
|
+
}, errorFactory)) && ("number" === typeof input.start || $guard(_exceptionable, {
|
|
1026
|
+
path: _path + ".start",
|
|
1027
|
+
expected: "number",
|
|
1028
|
+
value: input.start
|
|
1029
|
+
}, errorFactory)) && ("number" === typeof input.end || $guard(_exceptionable, {
|
|
1030
|
+
path: _path + ".end",
|
|
1031
|
+
expected: "number",
|
|
1032
|
+
value: input.end
|
|
1033
|
+
}, errorFactory));
|
|
1034
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
1035
|
+
path: _path + "",
|
|
1036
|
+
expected: "FileRestrictionsRecord",
|
|
1037
|
+
value: input
|
|
1038
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
1039
|
+
path: _path + "",
|
|
1040
|
+
expected: "FileRestrictionsRecord",
|
|
1041
|
+
value: input
|
|
1042
|
+
}, errorFactory);
|
|
1043
|
+
})(input, "$input", true);
|
|
1044
|
+
return input;
|
|
1045
|
+
};
|
|
1046
|
+
export const randomFileRestrictionsRecord = generator => {
|
|
1047
|
+
const $generator = __typia.createRandom.generator;
|
|
1048
|
+
const $ro0 = (_recursive = false, _depth = 0) => {
|
|
1049
|
+
const output = {};
|
|
1050
|
+
(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));
|
|
1051
|
+
return output;
|
|
1052
|
+
};
|
|
1053
|
+
const $ro1 = (_recursive = false, _depth = 0) => ({
|
|
1054
|
+
asset: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
1055
|
+
date: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
1056
|
+
user: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
1057
|
+
text: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
|
|
1058
|
+
start: (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100),
|
|
1059
|
+
end: (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
|
|
1060
|
+
});
|
|
1061
|
+
return $ro0();
|
|
1062
|
+
};
|
|
1063
|
+
export const assertGuardFileRestrictionsRecord = (input, errorFactory) => {
|
|
1064
|
+
const __is = input => {
|
|
1065
|
+
const $io0 = input => Object.keys(input).every(key => {
|
|
1066
|
+
const value = input[key];
|
|
1067
|
+
if (undefined === value)
|
|
1068
|
+
return true;
|
|
1069
|
+
return "object" === typeof value && null !== value && ("string" === typeof value.asset && "string" === typeof value.date && "string" === typeof value.user && "string" === typeof value.text && "number" === typeof value.start && "number" === typeof value.end);
|
|
1070
|
+
});
|
|
1071
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
1072
|
+
};
|
|
1073
|
+
if (false === __is(input))
|
|
1074
|
+
((input, _path, _exceptionable = true) => {
|
|
1075
|
+
const $guard = __typia.createAssertGuard.guard;
|
|
1076
|
+
const $join = __typia.createAssertGuard.join;
|
|
1077
|
+
const $ao0 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
1078
|
+
const value = input[key];
|
|
1079
|
+
if (undefined === value)
|
|
1080
|
+
return true;
|
|
1081
|
+
return ("object" === typeof value && null !== value || $guard(_exceptionable, {
|
|
1082
|
+
path: _path + $join(key),
|
|
1083
|
+
expected: "__type",
|
|
1084
|
+
value: value
|
|
1085
|
+
}, errorFactory)) && $ao1(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
|
|
1086
|
+
path: _path + $join(key),
|
|
1087
|
+
expected: "__type",
|
|
1088
|
+
value: value
|
|
1089
|
+
}, errorFactory);
|
|
1090
|
+
});
|
|
1091
|
+
const $ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.asset || $guard(_exceptionable, {
|
|
1092
|
+
path: _path + ".asset",
|
|
1093
|
+
expected: "string",
|
|
1094
|
+
value: input.asset
|
|
1095
|
+
}, errorFactory)) && ("string" === typeof input.date || $guard(_exceptionable, {
|
|
1096
|
+
path: _path + ".date",
|
|
1097
|
+
expected: "string",
|
|
1098
|
+
value: input.date
|
|
1099
|
+
}, errorFactory)) && ("string" === typeof input.user || $guard(_exceptionable, {
|
|
1100
|
+
path: _path + ".user",
|
|
1101
|
+
expected: "string",
|
|
1102
|
+
value: input.user
|
|
1103
|
+
}, errorFactory)) && ("string" === typeof input.text || $guard(_exceptionable, {
|
|
1104
|
+
path: _path + ".text",
|
|
1105
|
+
expected: "string",
|
|
1106
|
+
value: input.text
|
|
1107
|
+
}, errorFactory)) && ("number" === typeof input.start || $guard(_exceptionable, {
|
|
1108
|
+
path: _path + ".start",
|
|
1109
|
+
expected: "number",
|
|
1110
|
+
value: input.start
|
|
1111
|
+
}, errorFactory)) && ("number" === typeof input.end || $guard(_exceptionable, {
|
|
1112
|
+
path: _path + ".end",
|
|
1113
|
+
expected: "number",
|
|
1114
|
+
value: input.end
|
|
1115
|
+
}, errorFactory));
|
|
1116
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
1117
|
+
path: _path + "",
|
|
1118
|
+
expected: "FileRestrictionsRecord",
|
|
1119
|
+
value: input
|
|
1120
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
1121
|
+
path: _path + "",
|
|
1122
|
+
expected: "FileRestrictionsRecord",
|
|
1123
|
+
value: input
|
|
1124
|
+
}, errorFactory);
|
|
1125
|
+
})(input, "$input", true);
|
|
1126
|
+
};
|
|
1127
|
+
export const stringifyFileRestrictionsRecord = input => {
|
|
1128
|
+
const $io1 = input => "string" === typeof input.asset && "string" === typeof input.date && "string" === typeof input.user && "string" === typeof input.text && "number" === typeof input.start && "number" === typeof input.end;
|
|
1129
|
+
const $string = __typia.json.createStringify.string;
|
|
1130
|
+
const $so0 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
1131
|
+
return ""; return `${JSON.stringify(key)}:${`{"asset":${$string(value.asset)},"date":${$string(value.date)},"user":${$string(value.user)},"text":${$string(value.text)},"start":${value.start},"end":${value.end}}`}`; }).filter(str => "" !== str).join(",")}}`;
|
|
1132
|
+
return $so0(input);
|
|
1133
|
+
};
|
|
1134
|
+
export const assertStringifyFileRestrictionsRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
1135
|
+
const __is = input => {
|
|
1136
|
+
const $io0 = input => Object.keys(input).every(key => {
|
|
1137
|
+
const value = input[key];
|
|
1138
|
+
if (undefined === value)
|
|
1139
|
+
return true;
|
|
1140
|
+
return "object" === typeof value && null !== value && ("string" === typeof value.asset && "string" === typeof value.date && "string" === typeof value.user && "string" === typeof value.text && ("number" === typeof value.start && !Number.isNaN(value.start)) && ("number" === typeof value.end && !Number.isNaN(value.end)));
|
|
1141
|
+
});
|
|
1142
|
+
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
1143
|
+
};
|
|
1144
|
+
if (false === __is(input))
|
|
1145
|
+
((input, _path, _exceptionable = true) => {
|
|
1146
|
+
const $guard = __typia.json.createAssertStringify.guard;
|
|
1147
|
+
const $join = __typia.json.createAssertStringify.join;
|
|
1148
|
+
const $ao0 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
1149
|
+
const value = input[key];
|
|
1150
|
+
if (undefined === value)
|
|
1151
|
+
return true;
|
|
1152
|
+
return ("object" === typeof value && null !== value || $guard(_exceptionable, {
|
|
1153
|
+
path: _path + $join(key),
|
|
1154
|
+
expected: "__type",
|
|
1155
|
+
value: value
|
|
1156
|
+
}, errorFactory)) && $ao1(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
|
|
1157
|
+
path: _path + $join(key),
|
|
1158
|
+
expected: "__type",
|
|
1159
|
+
value: value
|
|
1160
|
+
}, errorFactory);
|
|
1161
|
+
});
|
|
1162
|
+
const $ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.asset || $guard(_exceptionable, {
|
|
1163
|
+
path: _path + ".asset",
|
|
1164
|
+
expected: "string",
|
|
1165
|
+
value: input.asset
|
|
1166
|
+
}, errorFactory)) && ("string" === typeof input.date || $guard(_exceptionable, {
|
|
1167
|
+
path: _path + ".date",
|
|
1168
|
+
expected: "string",
|
|
1169
|
+
value: input.date
|
|
1170
|
+
}, errorFactory)) && ("string" === typeof input.user || $guard(_exceptionable, {
|
|
1171
|
+
path: _path + ".user",
|
|
1172
|
+
expected: "string",
|
|
1173
|
+
value: input.user
|
|
1174
|
+
}, errorFactory)) && ("string" === typeof input.text || $guard(_exceptionable, {
|
|
1175
|
+
path: _path + ".text",
|
|
1176
|
+
expected: "string",
|
|
1177
|
+
value: input.text
|
|
1178
|
+
}, errorFactory)) && ("number" === typeof input.start && !Number.isNaN(input.start) || $guard(_exceptionable, {
|
|
1179
|
+
path: _path + ".start",
|
|
1180
|
+
expected: "number",
|
|
1181
|
+
value: input.start
|
|
1182
|
+
}, errorFactory)) && ("number" === typeof input.end && !Number.isNaN(input.end) || $guard(_exceptionable, {
|
|
1183
|
+
path: _path + ".end",
|
|
1184
|
+
expected: "number",
|
|
1185
|
+
value: input.end
|
|
1186
|
+
}, errorFactory));
|
|
1187
|
+
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
|
|
1188
|
+
path: _path + "",
|
|
1189
|
+
expected: "FileRestrictionsRecord",
|
|
1190
|
+
value: input
|
|
1191
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
1192
|
+
path: _path + "",
|
|
1193
|
+
expected: "FileRestrictionsRecord",
|
|
1194
|
+
value: input
|
|
1195
|
+
}, errorFactory);
|
|
1196
|
+
})(input, "$input", true);
|
|
1197
|
+
return input;
|
|
1198
|
+
}; const stringify = input => {
|
|
1199
|
+
const $io1 = input => "string" === typeof input.asset && "string" === typeof input.date && "string" === typeof input.user && "string" === typeof input.text && "number" === typeof input.start && "number" === typeof input.end;
|
|
1200
|
+
const $string = __typia.json.createAssertStringify.string;
|
|
1201
|
+
const $so0 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
1202
|
+
return ""; return `${JSON.stringify(key)}:${`{"asset":${$string(value.asset)},"date":${$string(value.date)},"user":${$string(value.user)},"text":${$string(value.text)},"start":${value.start},"end":${value.end}}`}`; }).filter(str => "" !== str).join(",")}}`;
|
|
1203
|
+
return $so0(input);
|
|
1204
|
+
}; return stringify(assert(input, errorFactory)); };
|
package/dist/domains/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { AssetDomainRecords } from './asset.js';
|
|
2
2
|
import type { BundleDomainRecords } from './bundle.js';
|
|
3
|
+
import type { CloneDomainRecords } from './clone.js';
|
|
3
4
|
import type { ConnectionDomainRecords } from './connection.js';
|
|
4
5
|
import type { ContactDomainRecords } from './contact.js';
|
|
6
|
+
import type { DesignDomainRecords } from './design.js';
|
|
5
7
|
import type { EventDomainRecords } from './event.js';
|
|
6
8
|
import type { FileDomainRecords } from './file.js';
|
|
7
9
|
import type { GeneralDomainRecords } from './general.js';
|
|
@@ -9,15 +11,20 @@ import type { MediaDomainRecords } from './media.js';
|
|
|
9
11
|
import type { PermissionDomainRecords } from './permission.js';
|
|
10
12
|
import type { PlanningDomainRecords } from './planning.js';
|
|
11
13
|
import type { PublishDomainRecords } from './publish.js';
|
|
14
|
+
import type { PublishedDomainRecords } from './published.js';
|
|
15
|
+
import type { RevsDomainRecords } from './revs.js';
|
|
12
16
|
import type { RoleDomainRecords } from './role.js';
|
|
13
17
|
import type { ScriptDomainRecords } from './script.js';
|
|
14
18
|
import type { SearchDomainRecords } from './search.js';
|
|
15
19
|
import type { SettingsDomainRecords } from './settings.js';
|
|
16
20
|
import type { TemplateDomainRecords } from './template.js';
|
|
21
|
+
import type { UserDomainRecords } from './user.js';
|
|
17
22
|
export * from './asset.js';
|
|
18
23
|
export * from './bundle.js';
|
|
24
|
+
export * from './clone.js';
|
|
19
25
|
export * from './connection.js';
|
|
20
26
|
export * from './contact.js';
|
|
27
|
+
export * from './design.js';
|
|
21
28
|
export * from './event.js';
|
|
22
29
|
export * from './file.js';
|
|
23
30
|
export * from './general.js';
|
|
@@ -25,9 +32,12 @@ export * from './media.js';
|
|
|
25
32
|
export * from './permission.js';
|
|
26
33
|
export * from './planning.js';
|
|
27
34
|
export * from './publish.js';
|
|
35
|
+
export * from './published.js';
|
|
36
|
+
export * from './revs.js';
|
|
28
37
|
export * from './role.js';
|
|
29
38
|
export * from './script.js';
|
|
30
39
|
export * from './search.js';
|
|
31
40
|
export * from './settings.js';
|
|
32
41
|
export * from './template.js';
|
|
33
|
-
export
|
|
42
|
+
export * from './user.js';
|
|
43
|
+
export type DomainRecords = AssetDomainRecords & BundleDomainRecords & CloneDomainRecords & ConnectionDomainRecords & ContactDomainRecords & DesignDomainRecords & EventDomainRecords & FileDomainRecords & GeneralDomainRecords & MediaDomainRecords & PermissionDomainRecords & PlanningDomainRecords & PublishDomainRecords & PublishedDomainRecords & RevsDomainRecords & RoleDomainRecords & ScriptDomainRecords & SearchDomainRecords & SettingsDomainRecords & TemplateDomainRecords & UserDomainRecords;
|