@todesktop/shared 7.134.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.
- package/lib/toDesktop.d.ts +12 -0
- package/package.json +1 -1
- package/src/toDesktop.ts +16 -0
package/lib/toDesktop.d.ts
CHANGED
|
@@ -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
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;
|