@nxtedition/types 22.2.1 → 23.0.2
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 +19 -0
- package/dist/app.js +197 -0
- package/dist/common/block.d.ts +1 -1
- 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/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/schema.json +3836 -0
- package/package.json +8 -3
package/dist/app.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type AssertionGuard as __AssertionGuard } from "typia";
|
|
2
|
+
export interface ElectronHubApi {
|
|
3
|
+
startDrag: (file: string, base: string) => void;
|
|
4
|
+
getWebdavPath: () => string;
|
|
5
|
+
showOpenDialog: (options: unknown) => string[];
|
|
6
|
+
getCurrentVersion: () => Promise<string>;
|
|
7
|
+
getLatestVersion: () => Promise<string>;
|
|
8
|
+
triggerUpdate: (latestVersion: string) => void;
|
|
9
|
+
controlDownloadItem: (...args: unknown[]) => void;
|
|
10
|
+
openInApp: (...args: unknown[]) => void;
|
|
11
|
+
installDavinciPlugin: (url: string) => Promise<void>;
|
|
12
|
+
clipboard: unknown;
|
|
13
|
+
}
|
|
14
|
+
export declare const isElectronHubApi: (input: unknown) => input is ElectronHubApi;
|
|
15
|
+
export declare const assertElectronHubApi: (input: unknown) => ElectronHubApi;
|
|
16
|
+
export declare const randomElectronHubApi: () => ElectronHubApi;
|
|
17
|
+
export declare const assertGuardElectronHubApi: __AssertionGuard<ElectronHubApi>;
|
|
18
|
+
export declare const stringifyElectronHubApi: (input: ElectronHubApi) => string;
|
|
19
|
+
export declare const assertStringifyElectronHubApi: (input: unknown) => string;
|
package/dist/app.js
ADDED
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import __typia from "typia";
|
|
2
|
+
export const isElectronHubApi = input => {
|
|
3
|
+
const $io0 = input => true && true && true && true && true && true && true && true && true && true;
|
|
4
|
+
return "object" === typeof input && null !== input && $io0(input);
|
|
5
|
+
};
|
|
6
|
+
export const assertElectronHubApi = (input, errorFactory) => {
|
|
7
|
+
const __is = input => {
|
|
8
|
+
const $io0 = input => true && true && true && true && true && true && true && true && true && true;
|
|
9
|
+
return "object" === typeof input && null !== input && $io0(input);
|
|
10
|
+
};
|
|
11
|
+
if (false === __is(input))
|
|
12
|
+
((input, _path, _exceptionable = true) => {
|
|
13
|
+
const $guard = __typia.createAssert.guard;
|
|
14
|
+
const $ao0 = (input, _path, _exceptionable = true) => (true || $guard(_exceptionable, {
|
|
15
|
+
path: _path + ".startDrag",
|
|
16
|
+
expected: "unknown",
|
|
17
|
+
value: input.startDrag
|
|
18
|
+
}, errorFactory)) && (true || $guard(_exceptionable, {
|
|
19
|
+
path: _path + ".getWebdavPath",
|
|
20
|
+
expected: "unknown",
|
|
21
|
+
value: input.getWebdavPath
|
|
22
|
+
}, errorFactory)) && (true || $guard(_exceptionable, {
|
|
23
|
+
path: _path + ".showOpenDialog",
|
|
24
|
+
expected: "unknown",
|
|
25
|
+
value: input.showOpenDialog
|
|
26
|
+
}, errorFactory)) && (true || $guard(_exceptionable, {
|
|
27
|
+
path: _path + ".getCurrentVersion",
|
|
28
|
+
expected: "unknown",
|
|
29
|
+
value: input.getCurrentVersion
|
|
30
|
+
}, errorFactory)) && (true || $guard(_exceptionable, {
|
|
31
|
+
path: _path + ".getLatestVersion",
|
|
32
|
+
expected: "unknown",
|
|
33
|
+
value: input.getLatestVersion
|
|
34
|
+
}, errorFactory)) && (true || $guard(_exceptionable, {
|
|
35
|
+
path: _path + ".triggerUpdate",
|
|
36
|
+
expected: "unknown",
|
|
37
|
+
value: input.triggerUpdate
|
|
38
|
+
}, errorFactory)) && (true || $guard(_exceptionable, {
|
|
39
|
+
path: _path + ".controlDownloadItem",
|
|
40
|
+
expected: "unknown",
|
|
41
|
+
value: input.controlDownloadItem
|
|
42
|
+
}, errorFactory)) && (true || $guard(_exceptionable, {
|
|
43
|
+
path: _path + ".openInApp",
|
|
44
|
+
expected: "unknown",
|
|
45
|
+
value: input.openInApp
|
|
46
|
+
}, errorFactory)) && (true || $guard(_exceptionable, {
|
|
47
|
+
path: _path + ".installDavinciPlugin",
|
|
48
|
+
expected: "unknown",
|
|
49
|
+
value: input.installDavinciPlugin
|
|
50
|
+
}, errorFactory)) && true;
|
|
51
|
+
return ("object" === typeof input && null !== input || $guard(true, {
|
|
52
|
+
path: _path + "",
|
|
53
|
+
expected: "ElectronHubApi",
|
|
54
|
+
value: input
|
|
55
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
56
|
+
path: _path + "",
|
|
57
|
+
expected: "ElectronHubApi",
|
|
58
|
+
value: input
|
|
59
|
+
}, errorFactory);
|
|
60
|
+
})(input, "$input", true);
|
|
61
|
+
return input;
|
|
62
|
+
};
|
|
63
|
+
export const randomElectronHubApi = generator => {
|
|
64
|
+
const $ro0 = (_recursive = false, _depth = 0) => ({
|
|
65
|
+
startDrag: undefined,
|
|
66
|
+
getWebdavPath: undefined,
|
|
67
|
+
showOpenDialog: undefined,
|
|
68
|
+
getCurrentVersion: undefined,
|
|
69
|
+
getLatestVersion: undefined,
|
|
70
|
+
triggerUpdate: undefined,
|
|
71
|
+
controlDownloadItem: undefined,
|
|
72
|
+
openInApp: undefined,
|
|
73
|
+
installDavinciPlugin: undefined,
|
|
74
|
+
clipboard: "any type used..."
|
|
75
|
+
});
|
|
76
|
+
return $ro0();
|
|
77
|
+
};
|
|
78
|
+
export const assertGuardElectronHubApi = (input, errorFactory) => {
|
|
79
|
+
const __is = input => {
|
|
80
|
+
const $io0 = input => true && true && true && true && true && true && true && true && true && true;
|
|
81
|
+
return "object" === typeof input && null !== input && $io0(input);
|
|
82
|
+
};
|
|
83
|
+
if (false === __is(input))
|
|
84
|
+
((input, _path, _exceptionable = true) => {
|
|
85
|
+
const $guard = __typia.createAssertGuard.guard;
|
|
86
|
+
const $ao0 = (input, _path, _exceptionable = true) => (true || $guard(_exceptionable, {
|
|
87
|
+
path: _path + ".startDrag",
|
|
88
|
+
expected: "unknown",
|
|
89
|
+
value: input.startDrag
|
|
90
|
+
}, errorFactory)) && (true || $guard(_exceptionable, {
|
|
91
|
+
path: _path + ".getWebdavPath",
|
|
92
|
+
expected: "unknown",
|
|
93
|
+
value: input.getWebdavPath
|
|
94
|
+
}, errorFactory)) && (true || $guard(_exceptionable, {
|
|
95
|
+
path: _path + ".showOpenDialog",
|
|
96
|
+
expected: "unknown",
|
|
97
|
+
value: input.showOpenDialog
|
|
98
|
+
}, errorFactory)) && (true || $guard(_exceptionable, {
|
|
99
|
+
path: _path + ".getCurrentVersion",
|
|
100
|
+
expected: "unknown",
|
|
101
|
+
value: input.getCurrentVersion
|
|
102
|
+
}, errorFactory)) && (true || $guard(_exceptionable, {
|
|
103
|
+
path: _path + ".getLatestVersion",
|
|
104
|
+
expected: "unknown",
|
|
105
|
+
value: input.getLatestVersion
|
|
106
|
+
}, errorFactory)) && (true || $guard(_exceptionable, {
|
|
107
|
+
path: _path + ".triggerUpdate",
|
|
108
|
+
expected: "unknown",
|
|
109
|
+
value: input.triggerUpdate
|
|
110
|
+
}, errorFactory)) && (true || $guard(_exceptionable, {
|
|
111
|
+
path: _path + ".controlDownloadItem",
|
|
112
|
+
expected: "unknown",
|
|
113
|
+
value: input.controlDownloadItem
|
|
114
|
+
}, errorFactory)) && (true || $guard(_exceptionable, {
|
|
115
|
+
path: _path + ".openInApp",
|
|
116
|
+
expected: "unknown",
|
|
117
|
+
value: input.openInApp
|
|
118
|
+
}, errorFactory)) && (true || $guard(_exceptionable, {
|
|
119
|
+
path: _path + ".installDavinciPlugin",
|
|
120
|
+
expected: "unknown",
|
|
121
|
+
value: input.installDavinciPlugin
|
|
122
|
+
}, errorFactory)) && true;
|
|
123
|
+
return ("object" === typeof input && null !== input || $guard(true, {
|
|
124
|
+
path: _path + "",
|
|
125
|
+
expected: "ElectronHubApi",
|
|
126
|
+
value: input
|
|
127
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
128
|
+
path: _path + "",
|
|
129
|
+
expected: "ElectronHubApi",
|
|
130
|
+
value: input
|
|
131
|
+
}, errorFactory);
|
|
132
|
+
})(input, "$input", true);
|
|
133
|
+
};
|
|
134
|
+
export const stringifyElectronHubApi = input => {
|
|
135
|
+
const $so0 = input => `{${undefined === input.clipboard || "function" === typeof input.clipboard ? "" : `"clipboard":${undefined !== input.clipboard ? JSON.stringify(input.clipboard) : undefined}`}}`;
|
|
136
|
+
return $so0(input);
|
|
137
|
+
};
|
|
138
|
+
export const assertStringifyElectronHubApi = (input, errorFactory) => { const assert = (input, errorFactory) => {
|
|
139
|
+
const __is = input => {
|
|
140
|
+
const $io0 = input => true && true && true && true && true && true && true && true && true && true;
|
|
141
|
+
return "object" === typeof input && null !== input && $io0(input);
|
|
142
|
+
};
|
|
143
|
+
if (false === __is(input))
|
|
144
|
+
((input, _path, _exceptionable = true) => {
|
|
145
|
+
const $guard = __typia.json.createAssertStringify.guard;
|
|
146
|
+
const $ao0 = (input, _path, _exceptionable = true) => (true || $guard(_exceptionable, {
|
|
147
|
+
path: _path + ".startDrag",
|
|
148
|
+
expected: "unknown",
|
|
149
|
+
value: input.startDrag
|
|
150
|
+
}, errorFactory)) && (true || $guard(_exceptionable, {
|
|
151
|
+
path: _path + ".getWebdavPath",
|
|
152
|
+
expected: "unknown",
|
|
153
|
+
value: input.getWebdavPath
|
|
154
|
+
}, errorFactory)) && (true || $guard(_exceptionable, {
|
|
155
|
+
path: _path + ".showOpenDialog",
|
|
156
|
+
expected: "unknown",
|
|
157
|
+
value: input.showOpenDialog
|
|
158
|
+
}, errorFactory)) && (true || $guard(_exceptionable, {
|
|
159
|
+
path: _path + ".getCurrentVersion",
|
|
160
|
+
expected: "unknown",
|
|
161
|
+
value: input.getCurrentVersion
|
|
162
|
+
}, errorFactory)) && (true || $guard(_exceptionable, {
|
|
163
|
+
path: _path + ".getLatestVersion",
|
|
164
|
+
expected: "unknown",
|
|
165
|
+
value: input.getLatestVersion
|
|
166
|
+
}, errorFactory)) && (true || $guard(_exceptionable, {
|
|
167
|
+
path: _path + ".triggerUpdate",
|
|
168
|
+
expected: "unknown",
|
|
169
|
+
value: input.triggerUpdate
|
|
170
|
+
}, errorFactory)) && (true || $guard(_exceptionable, {
|
|
171
|
+
path: _path + ".controlDownloadItem",
|
|
172
|
+
expected: "unknown",
|
|
173
|
+
value: input.controlDownloadItem
|
|
174
|
+
}, errorFactory)) && (true || $guard(_exceptionable, {
|
|
175
|
+
path: _path + ".openInApp",
|
|
176
|
+
expected: "unknown",
|
|
177
|
+
value: input.openInApp
|
|
178
|
+
}, errorFactory)) && (true || $guard(_exceptionable, {
|
|
179
|
+
path: _path + ".installDavinciPlugin",
|
|
180
|
+
expected: "unknown",
|
|
181
|
+
value: input.installDavinciPlugin
|
|
182
|
+
}, errorFactory)) && true;
|
|
183
|
+
return ("object" === typeof input && null !== input || $guard(true, {
|
|
184
|
+
path: _path + "",
|
|
185
|
+
expected: "ElectronHubApi",
|
|
186
|
+
value: input
|
|
187
|
+
}, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
188
|
+
path: _path + "",
|
|
189
|
+
expected: "ElectronHubApi",
|
|
190
|
+
value: input
|
|
191
|
+
}, errorFactory);
|
|
192
|
+
})(input, "$input", true);
|
|
193
|
+
return input;
|
|
194
|
+
}; const stringify = input => {
|
|
195
|
+
const $so0 = input => `{${undefined === input.clipboard || "function" === typeof input.clipboard ? "" : `"clipboard":${undefined !== input.clipboard ? JSON.stringify(input.clipboard) : undefined}`}}`;
|
|
196
|
+
return $so0(input);
|
|
197
|
+
}; return stringify(assert(input, errorFactory)); };
|
package/dist/common/block.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export declare const assertStringifyBlock: (input: unknown) => string;
|
|
|
21
21
|
export type Blocks = Block[];
|
|
22
22
|
export declare const isBlocks: (input: unknown) => input is Blocks;
|
|
23
23
|
export declare const assertBlocks: (input: unknown) => Blocks;
|
|
24
|
-
export declare const randomBlocks: () =>
|
|
24
|
+
export declare const randomBlocks: () => any[];
|
|
25
25
|
export declare const assertGuardBlocks: __AssertionGuard<Blocks>;
|
|
26
26
|
export declare const stringifyBlocks: (input: Blocks) => string;
|
|
27
27
|
export declare const assertStringifyBlocks: (input: unknown) => string;
|
|
@@ -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;
|