@nxtedition/types 23.0.39 → 23.0.40
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 +0 -18
- package/dist/app.js +5 -173
- package/dist/common/render-query.js +280 -191
- package/dist/common/render-scene.js +336 -158
- package/dist/common/settings.d.ts +24 -5
- package/dist/common/settings.js +1903 -1335
- package/dist/domains/event.d.ts +129 -1
- package/dist/domains/event.js +2025 -0
- package/dist/domains/media.js +168 -79
- package/dist/domains/publish.d.ts +55 -0
- package/dist/domains/publish.js +4668 -3689
- package/dist/domains/render.d.ts +10 -24
- package/dist/domains/render.js +497 -828
- package/dist/domains/script.d.ts +250 -0
- package/dist/domains/script.js +6652 -0
- package/dist/domains/settings.js +1867 -1311
- package/dist/domains/subtitle-style.d.ts +5 -0
- package/dist/domains/subtitle-style.js +95 -6
- package/dist/index.d.ts +23 -0
- package/dist/index.js +294 -12
- package/dist/nxtpression.d.ts +238 -26
- package/dist/rpc.d.ts +9 -0
- package/dist/schema.json +878 -117
- package/package.json +2 -1
package/dist/app.d.ts
CHANGED
|
@@ -16,7 +16,6 @@ export interface ElectronHubApi {
|
|
|
16
16
|
controlDownloadItem: (id: string, action: "pause" | "resume" | "cancel") => void;
|
|
17
17
|
openInApp: (...args: unknown[]) => void;
|
|
18
18
|
installDavinciPlugin: (url: string) => Promise<void>;
|
|
19
|
-
clipboard: ElectronHubApiClipboard;
|
|
20
19
|
downloadFile: (options: DownloadFileOptions) => void;
|
|
21
20
|
showItemInFolder: (fullPath: string) => void;
|
|
22
21
|
openPath: (path: string) => void;
|
|
@@ -34,10 +33,6 @@ export declare const randomElectronHubApi: () => {
|
|
|
34
33
|
controlDownloadItem: never;
|
|
35
34
|
openInApp: never;
|
|
36
35
|
installDavinciPlugin: never;
|
|
37
|
-
clipboard: {
|
|
38
|
-
readText: never;
|
|
39
|
-
writeText: never;
|
|
40
|
-
};
|
|
41
36
|
downloadFile: never;
|
|
42
37
|
showItemInFolder: never;
|
|
43
38
|
openPath: never;
|
|
@@ -45,19 +40,6 @@ export declare const randomElectronHubApi: () => {
|
|
|
45
40
|
export declare const assertGuardElectronHubApi: __AssertionGuard<ElectronHubApi>;
|
|
46
41
|
export declare const stringifyElectronHubApi: (input: ElectronHubApi) => string;
|
|
47
42
|
export declare const assertStringifyElectronHubApi: (input: unknown) => string;
|
|
48
|
-
export interface ElectronHubApiClipboard {
|
|
49
|
-
readText: () => Promise<string>;
|
|
50
|
-
writeText: (text: string) => Promise<void>;
|
|
51
|
-
}
|
|
52
|
-
export declare const isElectronHubApiClipboard: (input: unknown) => input is ElectronHubApiClipboard;
|
|
53
|
-
export declare const assertElectronHubApiClipboard: (input: unknown) => ElectronHubApiClipboard;
|
|
54
|
-
export declare const randomElectronHubApiClipboard: () => {
|
|
55
|
-
readText: never;
|
|
56
|
-
writeText: never;
|
|
57
|
-
};
|
|
58
|
-
export declare const assertGuardElectronHubApiClipboard: __AssertionGuard<ElectronHubApiClipboard>;
|
|
59
|
-
export declare const stringifyElectronHubApiClipboard: (input: ElectronHubApiClipboard) => string;
|
|
60
|
-
export declare const assertStringifyElectronHubApiClipboard: (input: unknown) => string;
|
|
61
43
|
export interface DownloadFileOptions {
|
|
62
44
|
/**
|
|
63
45
|
* Unique ID of the download, to be used to control and track the download progress.
|
package/dist/app.js
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import __typia from "typia";
|
|
2
2
|
export const isElectronHubApi = input => {
|
|
3
|
-
const $io0 = input => true && true && true && true && true && true && true && true && true && true &&
|
|
4
|
-
const $io1 = input => true && true;
|
|
3
|
+
const $io0 = input => true && true && true && true && true && true && true && true && true && true && true && true && true;
|
|
5
4
|
return "object" === typeof input && null !== input && $io0(input);
|
|
6
5
|
};
|
|
7
6
|
export const assertElectronHubApi = (input, errorFactory) => {
|
|
8
7
|
const __is = input => {
|
|
9
|
-
const $io0 = input => true && true && true && true && true && true && true && true && true && true &&
|
|
10
|
-
const $io1 = input => true && true;
|
|
8
|
+
const $io0 = input => true && true && true && true && true && true && true && true && true && true && true && true && true;
|
|
11
9
|
return "object" === typeof input && null !== input && $io0(input);
|
|
12
10
|
};
|
|
13
11
|
if (false === __is(input))
|
|
@@ -53,14 +51,6 @@ export const assertElectronHubApi = (input, errorFactory) => {
|
|
|
53
51
|
path: _path + ".installDavinciPlugin",
|
|
54
52
|
expected: "unknown",
|
|
55
53
|
value: input.installDavinciPlugin
|
|
56
|
-
}, errorFactory)) && (("object" === typeof input.clipboard && null !== input.clipboard || $guard(_exceptionable, {
|
|
57
|
-
path: _path + ".clipboard",
|
|
58
|
-
expected: "ElectronHubApiClipboard",
|
|
59
|
-
value: input.clipboard
|
|
60
|
-
}, errorFactory)) && $ao1(input.clipboard, _path + ".clipboard", true && _exceptionable) || $guard(_exceptionable, {
|
|
61
|
-
path: _path + ".clipboard",
|
|
62
|
-
expected: "ElectronHubApiClipboard",
|
|
63
|
-
value: input.clipboard
|
|
64
54
|
}, errorFactory)) && (true || $guard(_exceptionable, {
|
|
65
55
|
path: _path + ".downloadFile",
|
|
66
56
|
expected: "unknown",
|
|
@@ -74,15 +64,6 @@ export const assertElectronHubApi = (input, errorFactory) => {
|
|
|
74
64
|
expected: "unknown",
|
|
75
65
|
value: input.openPath
|
|
76
66
|
}, errorFactory));
|
|
77
|
-
const $ao1 = (input, _path, _exceptionable = true) => (true || $guard(_exceptionable, {
|
|
78
|
-
path: _path + ".readText",
|
|
79
|
-
expected: "unknown",
|
|
80
|
-
value: input.readText
|
|
81
|
-
}, errorFactory)) && (true || $guard(_exceptionable, {
|
|
82
|
-
path: _path + ".writeText",
|
|
83
|
-
expected: "unknown",
|
|
84
|
-
value: input.writeText
|
|
85
|
-
}, errorFactory));
|
|
86
67
|
return ("object" === typeof input && null !== input || $guard(true, {
|
|
87
68
|
path: _path + "",
|
|
88
69
|
expected: "ElectronHubApi",
|
|
@@ -107,21 +88,15 @@ export const randomElectronHubApi = generator => {
|
|
|
107
88
|
controlDownloadItem: undefined,
|
|
108
89
|
openInApp: undefined,
|
|
109
90
|
installDavinciPlugin: undefined,
|
|
110
|
-
clipboard: $ro1(_recursive, _recursive ? 1 + _depth : _depth),
|
|
111
91
|
downloadFile: undefined,
|
|
112
92
|
showItemInFolder: undefined,
|
|
113
93
|
openPath: undefined
|
|
114
94
|
});
|
|
115
|
-
const $ro1 = (_recursive = false, _depth = 0) => ({
|
|
116
|
-
readText: undefined,
|
|
117
|
-
writeText: undefined
|
|
118
|
-
});
|
|
119
95
|
return $ro0();
|
|
120
96
|
};
|
|
121
97
|
export const assertGuardElectronHubApi = (input, errorFactory) => {
|
|
122
98
|
const __is = input => {
|
|
123
|
-
const $io0 = input => true && true && true && true && true && true && true && true && true && true &&
|
|
124
|
-
const $io1 = input => true && true;
|
|
99
|
+
const $io0 = input => true && true && true && true && true && true && true && true && true && true && true && true && true;
|
|
125
100
|
return "object" === typeof input && null !== input && $io0(input);
|
|
126
101
|
};
|
|
127
102
|
if (false === __is(input))
|
|
@@ -167,14 +142,6 @@ export const assertGuardElectronHubApi = (input, errorFactory) => {
|
|
|
167
142
|
path: _path + ".installDavinciPlugin",
|
|
168
143
|
expected: "unknown",
|
|
169
144
|
value: input.installDavinciPlugin
|
|
170
|
-
}, errorFactory)) && (("object" === typeof input.clipboard && null !== input.clipboard || $guard(_exceptionable, {
|
|
171
|
-
path: _path + ".clipboard",
|
|
172
|
-
expected: "ElectronHubApiClipboard",
|
|
173
|
-
value: input.clipboard
|
|
174
|
-
}, errorFactory)) && $ao1(input.clipboard, _path + ".clipboard", true && _exceptionable) || $guard(_exceptionable, {
|
|
175
|
-
path: _path + ".clipboard",
|
|
176
|
-
expected: "ElectronHubApiClipboard",
|
|
177
|
-
value: input.clipboard
|
|
178
145
|
}, errorFactory)) && (true || $guard(_exceptionable, {
|
|
179
146
|
path: _path + ".downloadFile",
|
|
180
147
|
expected: "unknown",
|
|
@@ -188,15 +155,6 @@ export const assertGuardElectronHubApi = (input, errorFactory) => {
|
|
|
188
155
|
expected: "unknown",
|
|
189
156
|
value: input.openPath
|
|
190
157
|
}, errorFactory));
|
|
191
|
-
const $ao1 = (input, _path, _exceptionable = true) => (true || $guard(_exceptionable, {
|
|
192
|
-
path: _path + ".readText",
|
|
193
|
-
expected: "unknown",
|
|
194
|
-
value: input.readText
|
|
195
|
-
}, errorFactory)) && (true || $guard(_exceptionable, {
|
|
196
|
-
path: _path + ".writeText",
|
|
197
|
-
expected: "unknown",
|
|
198
|
-
value: input.writeText
|
|
199
|
-
}, errorFactory));
|
|
200
158
|
return ("object" === typeof input && null !== input || $guard(true, {
|
|
201
159
|
path: _path + "",
|
|
202
160
|
expected: "ElectronHubApi",
|
|
@@ -209,15 +167,12 @@ export const assertGuardElectronHubApi = (input, errorFactory) => {
|
|
|
209
167
|
})(input, "$input", true);
|
|
210
168
|
};
|
|
211
169
|
export const stringifyElectronHubApi = input => {
|
|
212
|
-
const $
|
|
213
|
-
const $so0 = input => `{"clipboard":${$so1(input.clipboard)}}`;
|
|
214
|
-
const $so1 = input => "{}";
|
|
170
|
+
const $so0 = input => "{}";
|
|
215
171
|
return $so0(input);
|
|
216
172
|
};
|
|
217
173
|
export const assertStringifyElectronHubApi = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
218
174
|
const __is = input => {
|
|
219
|
-
const $io0 = input => true && true && true && true && true && true && true && true && true && true &&
|
|
220
|
-
const $io1 = input => true && true;
|
|
175
|
+
const $io0 = input => true && true && true && true && true && true && true && true && true && true && true && true && true;
|
|
221
176
|
return "object" === typeof input && null !== input && $io0(input);
|
|
222
177
|
};
|
|
223
178
|
if (false === __is(input))
|
|
@@ -263,14 +218,6 @@ export const assertStringifyElectronHubApi = (input, errorFactory) => { const as
|
|
|
263
218
|
path: _path + ".installDavinciPlugin",
|
|
264
219
|
expected: "unknown",
|
|
265
220
|
value: input.installDavinciPlugin
|
|
266
|
-
}, errorFactory)) && (("object" === typeof input.clipboard && null !== input.clipboard || $guard(_exceptionable, {
|
|
267
|
-
path: _path + ".clipboard",
|
|
268
|
-
expected: "ElectronHubApiClipboard",
|
|
269
|
-
value: input.clipboard
|
|
270
|
-
}, errorFactory)) && $ao1(input.clipboard, _path + ".clipboard", true && _exceptionable) || $guard(_exceptionable, {
|
|
271
|
-
path: _path + ".clipboard",
|
|
272
|
-
expected: "ElectronHubApiClipboard",
|
|
273
|
-
value: input.clipboard
|
|
274
221
|
}, errorFactory)) && (true || $guard(_exceptionable, {
|
|
275
222
|
path: _path + ".downloadFile",
|
|
276
223
|
expected: "unknown",
|
|
@@ -284,15 +231,6 @@ export const assertStringifyElectronHubApi = (input, errorFactory) => { const as
|
|
|
284
231
|
expected: "unknown",
|
|
285
232
|
value: input.openPath
|
|
286
233
|
}, errorFactory));
|
|
287
|
-
const $ao1 = (input, _path, _exceptionable = true) => (true || $guard(_exceptionable, {
|
|
288
|
-
path: _path + ".readText",
|
|
289
|
-
expected: "unknown",
|
|
290
|
-
value: input.readText
|
|
291
|
-
}, errorFactory)) && (true || $guard(_exceptionable, {
|
|
292
|
-
path: _path + ".writeText",
|
|
293
|
-
expected: "unknown",
|
|
294
|
-
value: input.writeText
|
|
295
|
-
}, errorFactory));
|
|
296
234
|
return ("object" === typeof input && null !== input || $guard(true, {
|
|
297
235
|
path: _path + "",
|
|
298
236
|
expected: "ElectronHubApi",
|
|
@@ -304,112 +242,6 @@ export const assertStringifyElectronHubApi = (input, errorFactory) => { const as
|
|
|
304
242
|
}, errorFactory);
|
|
305
243
|
})(input, "$input", true);
|
|
306
244
|
return input;
|
|
307
|
-
}; const stringify = input => {
|
|
308
|
-
const $io1 = input => true && true;
|
|
309
|
-
const $so0 = input => `{"clipboard":${$so1(input.clipboard)}}`;
|
|
310
|
-
const $so1 = input => "{}";
|
|
311
|
-
return $so0(input);
|
|
312
|
-
}; return stringify(assert(input, errorFactory)); };
|
|
313
|
-
export const isElectronHubApiClipboard = input => {
|
|
314
|
-
const $io0 = input => true && true;
|
|
315
|
-
return "object" === typeof input && null !== input && $io0(input);
|
|
316
|
-
};
|
|
317
|
-
export const assertElectronHubApiClipboard = (input, errorFactory) => {
|
|
318
|
-
const __is = input => {
|
|
319
|
-
const $io0 = input => true && true;
|
|
320
|
-
return "object" === typeof input && null !== input && $io0(input);
|
|
321
|
-
};
|
|
322
|
-
if (false === __is(input))
|
|
323
|
-
((input, _path, _exceptionable = true) => {
|
|
324
|
-
const $guard = __typia.createAssert.guard;
|
|
325
|
-
const $ao0 = (input, _path, _exceptionable = true) => (true || $guard(_exceptionable, {
|
|
326
|
-
path: _path + ".readText",
|
|
327
|
-
expected: "unknown",
|
|
328
|
-
value: input.readText
|
|
329
|
-
}, errorFactory)) && (true || $guard(_exceptionable, {
|
|
330
|
-
path: _path + ".writeText",
|
|
331
|
-
expected: "unknown",
|
|
332
|
-
value: input.writeText
|
|
333
|
-
}, errorFactory));
|
|
334
|
-
return ("object" === typeof input && null !== input || $guard(true, {
|
|
335
|
-
path: _path + "",
|
|
336
|
-
expected: "ElectronHubApiClipboard",
|
|
337
|
-
value: input
|
|
338
|
-
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
339
|
-
path: _path + "",
|
|
340
|
-
expected: "ElectronHubApiClipboard",
|
|
341
|
-
value: input
|
|
342
|
-
}, errorFactory);
|
|
343
|
-
})(input, "$input", true);
|
|
344
|
-
return input;
|
|
345
|
-
};
|
|
346
|
-
export const randomElectronHubApiClipboard = generator => {
|
|
347
|
-
const $ro0 = (_recursive = false, _depth = 0) => ({
|
|
348
|
-
readText: undefined,
|
|
349
|
-
writeText: undefined
|
|
350
|
-
});
|
|
351
|
-
return $ro0();
|
|
352
|
-
};
|
|
353
|
-
export const assertGuardElectronHubApiClipboard = (input, errorFactory) => {
|
|
354
|
-
const __is = input => {
|
|
355
|
-
const $io0 = input => true && true;
|
|
356
|
-
return "object" === typeof input && null !== input && $io0(input);
|
|
357
|
-
};
|
|
358
|
-
if (false === __is(input))
|
|
359
|
-
((input, _path, _exceptionable = true) => {
|
|
360
|
-
const $guard = __typia.createAssertGuard.guard;
|
|
361
|
-
const $ao0 = (input, _path, _exceptionable = true) => (true || $guard(_exceptionable, {
|
|
362
|
-
path: _path + ".readText",
|
|
363
|
-
expected: "unknown",
|
|
364
|
-
value: input.readText
|
|
365
|
-
}, errorFactory)) && (true || $guard(_exceptionable, {
|
|
366
|
-
path: _path + ".writeText",
|
|
367
|
-
expected: "unknown",
|
|
368
|
-
value: input.writeText
|
|
369
|
-
}, errorFactory));
|
|
370
|
-
return ("object" === typeof input && null !== input || $guard(true, {
|
|
371
|
-
path: _path + "",
|
|
372
|
-
expected: "ElectronHubApiClipboard",
|
|
373
|
-
value: input
|
|
374
|
-
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
375
|
-
path: _path + "",
|
|
376
|
-
expected: "ElectronHubApiClipboard",
|
|
377
|
-
value: input
|
|
378
|
-
}, errorFactory);
|
|
379
|
-
})(input, "$input", true);
|
|
380
|
-
};
|
|
381
|
-
export const stringifyElectronHubApiClipboard = input => {
|
|
382
|
-
const $so0 = input => "{}";
|
|
383
|
-
return $so0(input);
|
|
384
|
-
};
|
|
385
|
-
export const assertStringifyElectronHubApiClipboard = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
386
|
-
const __is = input => {
|
|
387
|
-
const $io0 = input => true && true;
|
|
388
|
-
return "object" === typeof input && null !== input && $io0(input);
|
|
389
|
-
};
|
|
390
|
-
if (false === __is(input))
|
|
391
|
-
((input, _path, _exceptionable = true) => {
|
|
392
|
-
const $guard = __typia.json.createAssertStringify.guard;
|
|
393
|
-
const $ao0 = (input, _path, _exceptionable = true) => (true || $guard(_exceptionable, {
|
|
394
|
-
path: _path + ".readText",
|
|
395
|
-
expected: "unknown",
|
|
396
|
-
value: input.readText
|
|
397
|
-
}, errorFactory)) && (true || $guard(_exceptionable, {
|
|
398
|
-
path: _path + ".writeText",
|
|
399
|
-
expected: "unknown",
|
|
400
|
-
value: input.writeText
|
|
401
|
-
}, errorFactory));
|
|
402
|
-
return ("object" === typeof input && null !== input || $guard(true, {
|
|
403
|
-
path: _path + "",
|
|
404
|
-
expected: "ElectronHubApiClipboard",
|
|
405
|
-
value: input
|
|
406
|
-
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
407
|
-
path: _path + "",
|
|
408
|
-
expected: "ElectronHubApiClipboard",
|
|
409
|
-
value: input
|
|
410
|
-
}, errorFactory);
|
|
411
|
-
})(input, "$input", true);
|
|
412
|
-
return input;
|
|
413
245
|
}; const stringify = input => {
|
|
414
246
|
const $so0 = input => "{}";
|
|
415
247
|
return $so0(input);
|