@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
package/dist/app.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
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: () => {
|
|
17
|
+
startDrag: never;
|
|
18
|
+
getWebdavPath: never;
|
|
19
|
+
showOpenDialog: never;
|
|
20
|
+
getCurrentVersion: never;
|
|
21
|
+
getLatestVersion: never;
|
|
22
|
+
triggerUpdate: never;
|
|
23
|
+
controlDownloadItem: never;
|
|
24
|
+
openInApp: never;
|
|
25
|
+
installDavinciPlugin: never;
|
|
26
|
+
clipboard: unknown;
|
|
27
|
+
};
|
|
28
|
+
export declare const assertGuardElectronHubApi: __AssertionGuard<ElectronHubApi>;
|
|
29
|
+
export declare const stringifyElectronHubApi: (input: ElectronHubApi) => string;
|
|
30
|
+
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/index.d.ts
CHANGED
|
@@ -17,20 +17,3 @@ export declare const randomMessage: () => Message;
|
|
|
17
17
|
export declare const assertGuardMessage: __AssertionGuard<Message>;
|
|
18
18
|
export declare const stringifyMessage: (input: Message) => string;
|
|
19
19
|
export declare const assertStringifyMessage: (input: unknown) => string;
|
|
20
|
-
export type RpcMethods = Record<string, RpcMethod>;
|
|
21
|
-
export declare const isRpcMethods: (input: unknown) => input is RpcMethods;
|
|
22
|
-
export declare const assertRpcMethods: (input: unknown) => RpcMethods;
|
|
23
|
-
export declare const randomRpcMethods: () => RpcMethods;
|
|
24
|
-
export declare const assertGuardRpcMethods: __AssertionGuard<RpcMethods>;
|
|
25
|
-
export declare const stringifyRpcMethods: (input: RpcMethods) => string;
|
|
26
|
-
export declare const assertStringifyRpcMethods: (input: unknown) => string;
|
|
27
|
-
export interface RpcMethod {
|
|
28
|
-
rpcId: string;
|
|
29
|
-
rpcData: Record<string, unknown>;
|
|
30
|
-
}
|
|
31
|
-
export declare const isRpcMethod: (input: unknown) => input is RpcMethod;
|
|
32
|
-
export declare const assertRpcMethod: (input: unknown) => RpcMethod;
|
|
33
|
-
export declare const randomRpcMethod: () => RpcMethod;
|
|
34
|
-
export declare const assertGuardRpcMethod: __AssertionGuard<RpcMethod>;
|
|
35
|
-
export declare const stringifyRpcMethod: (input: RpcMethod) => string;
|
|
36
|
-
export declare const assertStringifyRpcMethod: (input: unknown) => string;
|