@todesktop/shared 7.182.0 → 7.184.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 +5 -0
- package/lib/toDesktop.d.ts +4 -0
- package/package.json +1 -1
- package/src/desktopify2.ts +6 -0
- package/src/toDesktop.ts +6 -0
package/lib/desktopify2.d.ts
CHANGED
|
@@ -387,6 +387,11 @@ export interface DesktopifyApp2 {
|
|
|
387
387
|
* File assets that get bundled with the app and are available offline
|
|
388
388
|
*/
|
|
389
389
|
fileAssetDetailsList?: FileAssetDetails[];
|
|
390
|
+
/**
|
|
391
|
+
* Whether the app should have full access to Electron APIs
|
|
392
|
+
* @default false
|
|
393
|
+
*/
|
|
394
|
+
shouldHaveFullAccessToElectronAPIs?: boolean;
|
|
390
395
|
}
|
|
391
396
|
export interface IApp2 extends BaseApp {
|
|
392
397
|
desktopApp?: DesktopifyApp2;
|
package/lib/toDesktop.d.ts
CHANGED
|
@@ -175,6 +175,10 @@ export interface IUser extends Schemable {
|
|
|
175
175
|
isOldAccountThatNeedsNewPassword?: boolean;
|
|
176
176
|
accessToken?: string;
|
|
177
177
|
isAdmin?: boolean;
|
|
178
|
+
featureFlags?: FeatureFlags;
|
|
179
|
+
}
|
|
180
|
+
export interface FeatureFlags {
|
|
181
|
+
desktopAppPlugins: boolean;
|
|
178
182
|
}
|
|
179
183
|
export interface UserIHaveSentInviteTo {
|
|
180
184
|
email: string;
|
package/package.json
CHANGED
package/src/desktopify2.ts
CHANGED
|
@@ -512,6 +512,12 @@ export interface DesktopifyApp2 {
|
|
|
512
512
|
* File assets that get bundled with the app and are available offline
|
|
513
513
|
*/
|
|
514
514
|
fileAssetDetailsList?: FileAssetDetails[];
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* Whether the app should have full access to Electron APIs
|
|
518
|
+
* @default false
|
|
519
|
+
*/
|
|
520
|
+
shouldHaveFullAccessToElectronAPIs?: boolean;
|
|
515
521
|
}
|
|
516
522
|
|
|
517
523
|
export interface IApp2 extends BaseApp {
|
package/src/toDesktop.ts
CHANGED
|
@@ -193,6 +193,12 @@ export interface IUser extends Schemable {
|
|
|
193
193
|
isOldAccountThatNeedsNewPassword?: boolean;
|
|
194
194
|
accessToken?: string;
|
|
195
195
|
isAdmin?: boolean;
|
|
196
|
+
featureFlags?: FeatureFlags;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export interface FeatureFlags {
|
|
200
|
+
// Whether the user can install desktop app plugins using the ToDesktop Builder
|
|
201
|
+
desktopAppPlugins: boolean;
|
|
196
202
|
}
|
|
197
203
|
|
|
198
204
|
// uses an `email` identifier because an invited user may not have an account
|