@todesktop/shared 7.60.0 → 7.61.0
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/lib/desktopify2.d.ts +10 -6
- package/lib/toDesktop.d.ts +5 -3
- package/package.json +1 -1
- package/src/desktopify2.ts +10 -6
- package/src/toDesktop.ts +6 -3
package/lib/desktopify2.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { IApp, ISwitchableValue } from "./toDesktop";
|
|
2
|
+
import { IApp, ISwitchableValue, Schemable } from "./toDesktop";
|
|
3
3
|
import { MenuItemConstructorOptions, BrowserWindowConstructorOptions, WebPreferences } from "@todesktop/client-electron-types";
|
|
4
4
|
/**
|
|
5
5
|
* Custom ToDesktop Roles for Application & Tray Menus
|
|
@@ -135,15 +135,19 @@ export interface DesktopifyAppWindow {
|
|
|
135
135
|
webPreferences?: Pick<WebPreferences, whitelistedWebPreferencesOptions>;
|
|
136
136
|
};
|
|
137
137
|
}
|
|
138
|
-
export interface DesktopifyApp2 {
|
|
139
|
-
/**
|
|
140
|
-
* The name of the app
|
|
141
|
-
*/
|
|
142
|
-
name: string;
|
|
138
|
+
export interface DesktopifyApp2 extends Schemable {
|
|
143
139
|
/**
|
|
144
140
|
* A unique app id
|
|
145
141
|
*/
|
|
146
142
|
id: string;
|
|
143
|
+
/**
|
|
144
|
+
* The current schema version, 2 or higher
|
|
145
|
+
*/
|
|
146
|
+
schemaVersion: number;
|
|
147
|
+
/**
|
|
148
|
+
* The name of the app
|
|
149
|
+
*/
|
|
150
|
+
name: string;
|
|
147
151
|
/**
|
|
148
152
|
* The app icon
|
|
149
153
|
*/
|
package/lib/toDesktop.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { ExtraFileReference, FilePath, IAppBuilderLib, URL } from "./desktopify";
|
|
2
|
+
export interface Schemable {
|
|
3
|
+
schemaVersion?: number;
|
|
4
|
+
}
|
|
2
5
|
export declare type IUploadFileStatus = "error" | "success" | "done" | "uploading" | "removed";
|
|
3
6
|
export interface IUploadFile {
|
|
4
7
|
uid: string;
|
|
@@ -233,7 +236,7 @@ export interface CustomWindowsCodeSignEV {
|
|
|
233
236
|
hsmCertType: WindowsHSMCertType.ev;
|
|
234
237
|
hsmCertName: string;
|
|
235
238
|
}
|
|
236
|
-
export interface IApp {
|
|
239
|
+
export interface IApp extends Schemable {
|
|
237
240
|
appModelId: string;
|
|
238
241
|
appPkgName?: string;
|
|
239
242
|
appProtocol?: ISwitchableValue<string>;
|
|
@@ -302,9 +305,8 @@ export interface IApp {
|
|
|
302
305
|
windowOptions: IWindowOptions;
|
|
303
306
|
pollForAppUpdatesEveryXMinutes?: number;
|
|
304
307
|
}
|
|
305
|
-
export interface IUser {
|
|
308
|
+
export interface IUser extends Schemable {
|
|
306
309
|
id: string;
|
|
307
|
-
schemaVersion?: number;
|
|
308
310
|
authInfo?: {};
|
|
309
311
|
avatar?: string;
|
|
310
312
|
currentApplication?: string;
|
package/package.json
CHANGED
package/src/desktopify2.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IApp, ISwitchableValue } from "./toDesktop";
|
|
1
|
+
import { IApp, ISwitchableValue, Schemable } from "./toDesktop";
|
|
2
2
|
import {
|
|
3
3
|
MenuItemConstructorOptions,
|
|
4
4
|
BrowserWindowConstructorOptions,
|
|
@@ -242,15 +242,19 @@ export interface DesktopifyAppWindow {
|
|
|
242
242
|
}
|
|
243
243
|
// TODO: Look into hasMinHeight, etc
|
|
244
244
|
|
|
245
|
-
export interface DesktopifyApp2 {
|
|
246
|
-
/**
|
|
247
|
-
* The name of the app
|
|
248
|
-
*/
|
|
249
|
-
name: string;
|
|
245
|
+
export interface DesktopifyApp2 extends Schemable {
|
|
250
246
|
/**
|
|
251
247
|
* A unique app id
|
|
252
248
|
*/
|
|
253
249
|
id: string;
|
|
250
|
+
/**
|
|
251
|
+
* The current schema version, 2 or higher
|
|
252
|
+
*/
|
|
253
|
+
schemaVersion: number;
|
|
254
|
+
/**
|
|
255
|
+
* The name of the app
|
|
256
|
+
*/
|
|
257
|
+
name: string;
|
|
254
258
|
/**
|
|
255
259
|
* The app icon
|
|
256
260
|
*/
|
package/src/toDesktop.ts
CHANGED
|
@@ -5,6 +5,10 @@ import {
|
|
|
5
5
|
URL,
|
|
6
6
|
} from "./desktopify";
|
|
7
7
|
|
|
8
|
+
export interface Schemable {
|
|
9
|
+
schemaVersion?: number;
|
|
10
|
+
}
|
|
11
|
+
|
|
8
12
|
export type IUploadFileStatus =
|
|
9
13
|
| "error"
|
|
10
14
|
| "success"
|
|
@@ -267,7 +271,7 @@ export interface CustomWindowsCodeSignEV {
|
|
|
267
271
|
hsmCertName: string;
|
|
268
272
|
}
|
|
269
273
|
|
|
270
|
-
export interface IApp {
|
|
274
|
+
export interface IApp extends Schemable {
|
|
271
275
|
appModelId: string;
|
|
272
276
|
appPkgName?: string;
|
|
273
277
|
appProtocol?: ISwitchableValue<string>;
|
|
@@ -334,9 +338,8 @@ export interface IApp {
|
|
|
334
338
|
pollForAppUpdatesEveryXMinutes?: number;
|
|
335
339
|
}
|
|
336
340
|
|
|
337
|
-
export interface IUser {
|
|
341
|
+
export interface IUser extends Schemable {
|
|
338
342
|
id: string;
|
|
339
|
-
schemaVersion?: number;
|
|
340
343
|
authInfo?: {};
|
|
341
344
|
avatar?: string;
|
|
342
345
|
currentApplication?: string;
|