@misternooblet/squara-types 1.0.16 → 1.0.17
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/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/notification/index.d.ts +1 -0
- package/dist/notification/index.js +6 -0
- package/dist/notification/notification.d.ts +13 -0
- package/dist/notification/notification.js +10 -0
- package/dist/user/user.d.ts +2 -0
- package/dist/user/user.js +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -21,3 +21,4 @@ __exportStar(require("./group/index.js"), exports);
|
|
|
21
21
|
__exportStar(require("./client-config/index.js"), exports);
|
|
22
22
|
__exportStar(require("./settlement/index.js"), exports);
|
|
23
23
|
__exportStar(require("./recurring-expense/index.js"), exports);
|
|
24
|
+
__exportStar(require("./notification/index.js"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NotificationType, Notification, GroupUpdateNotification, NOTIFICATION_TYPE_TO_PAYLOAD_MAP } from "./notification";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NOTIFICATION_TYPE_TO_PAYLOAD_MAP = exports.NotificationType = void 0;
|
|
4
|
+
var notification_1 = require("./notification");
|
|
5
|
+
Object.defineProperty(exports, "NotificationType", { enumerable: true, get: function () { return notification_1.NotificationType; } });
|
|
6
|
+
Object.defineProperty(exports, "NOTIFICATION_TYPE_TO_PAYLOAD_MAP", { enumerable: true, get: function () { return notification_1.NOTIFICATION_TYPE_TO_PAYLOAD_MAP; } });
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare enum NotificationType {
|
|
2
|
+
GroupUpdate = "GROUP_UPDATE"
|
|
3
|
+
}
|
|
4
|
+
export interface Notification {
|
|
5
|
+
type: NotificationType;
|
|
6
|
+
}
|
|
7
|
+
export interface GroupUpdateNotification extends Notification {
|
|
8
|
+
type: NotificationType.GroupUpdate;
|
|
9
|
+
groupId: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const NOTIFICATION_TYPE_TO_PAYLOAD_MAP: {
|
|
12
|
+
GROUP_UPDATE: GroupUpdateNotification;
|
|
13
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NOTIFICATION_TYPE_TO_PAYLOAD_MAP = exports.NotificationType = void 0;
|
|
4
|
+
var NotificationType;
|
|
5
|
+
(function (NotificationType) {
|
|
6
|
+
NotificationType["GroupUpdate"] = "GROUP_UPDATE";
|
|
7
|
+
})(NotificationType || (exports.NotificationType = NotificationType = {}));
|
|
8
|
+
exports.NOTIFICATION_TYPE_TO_PAYLOAD_MAP = {
|
|
9
|
+
[NotificationType.GroupUpdate]: {},
|
|
10
|
+
};
|
package/dist/user/user.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export interface User {
|
|
|
14
14
|
createdAt: string;
|
|
15
15
|
updatedAt: string;
|
|
16
16
|
lastActiveAt: string;
|
|
17
|
+
fcmTokens: string[];
|
|
17
18
|
}
|
|
18
19
|
export declare const DEFAULT_USER_DOCUMENT: {
|
|
19
20
|
plan: SubscriptionPlan;
|
|
@@ -22,4 +23,5 @@ export declare const DEFAULT_USER_DOCUMENT: {
|
|
|
22
23
|
scanCount: number;
|
|
23
24
|
ownedGroupCount: number;
|
|
24
25
|
currency: string;
|
|
26
|
+
fcmTokens: never[];
|
|
25
27
|
};
|
package/dist/user/user.js
CHANGED