@todesktop/shared 7.133.0 → 7.135.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.
@@ -221,6 +221,11 @@ export interface DesktopifyApp2 {
221
221
  * Whether the app should minimize to tray when all windows are closed. Requires at least one tray.
222
222
  */
223
223
  shouldMinimizeToTray?: boolean;
224
+ /**
225
+ * This option is only available when `shouldMinimizeToTray` is `true`.
226
+ * Always display the dock icon while the app is open. Even if there are no windows open.
227
+ */
228
+ shouldAlwaysDisplayDockIcon?: boolean;
224
229
  /**
225
230
  * Only allow a single instance of this app to run
226
231
  */
@@ -176,6 +176,18 @@ export interface IUser extends Schemable {
176
176
  accessToken?: string;
177
177
  isAdmin?: boolean;
178
178
  }
179
+ export interface UserIHaveSentInviteTo {
180
+ email: string;
181
+ permissions: string;
182
+ name: string;
183
+ sender: UserIHaveAcceptedInviteFrom;
184
+ }
185
+ export interface UserIHaveAcceptedInviteFrom {
186
+ id: string;
187
+ email: string;
188
+ firstName: string;
189
+ lastName: string;
190
+ }
179
191
  export interface CiInput {
180
192
  appData: IApp;
181
193
  buildId?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todesktop/shared",
3
- "version": "7.133.0",
3
+ "version": "7.135.0",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -344,6 +344,11 @@ export interface DesktopifyApp2 {
344
344
  * Whether the app should minimize to tray when all windows are closed. Requires at least one tray.
345
345
  */
346
346
  shouldMinimizeToTray?: boolean;
347
+ /**
348
+ * This option is only available when `shouldMinimizeToTray` is `true`.
349
+ * Always display the dock icon while the app is open. Even if there are no windows open.
350
+ */
351
+ shouldAlwaysDisplayDockIcon?: boolean;
347
352
  /**
348
353
  * Only allow a single instance of this app to run
349
354
  */
package/src/toDesktop.ts CHANGED
@@ -195,6 +195,22 @@ export interface IUser extends Schemable {
195
195
  isAdmin?: boolean;
196
196
  }
197
197
 
198
+ // uses an `email` identifier because an invited user may not have an account
199
+ export interface UserIHaveSentInviteTo {
200
+ email: string;
201
+ permissions: string;
202
+ name: string;
203
+ // this allows us to encode information about the sender without loosening firebase privileges
204
+ sender: UserIHaveAcceptedInviteFrom;
205
+ }
206
+
207
+ export interface UserIHaveAcceptedInviteFrom {
208
+ id: string;
209
+ email: string;
210
+ firstName: string;
211
+ lastName: string;
212
+ }
213
+
198
214
  export interface CiInput {
199
215
  appData: IApp;
200
216
  buildId?: string;