@fplpool/fpl-models 3.2.0 → 3.3.1
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.
|
@@ -10,13 +10,41 @@ export declare enum NotificationType {
|
|
|
10
10
|
NewPoolMember = "new_pool_member",
|
|
11
11
|
NewPoolAdmin = "new_pool_admin",
|
|
12
12
|
PoolInvite = "pool_invite",
|
|
13
|
+
InviteDeclined = "invite_declined",
|
|
14
|
+
MemberLeft = "member_left",
|
|
15
|
+
MemberRemoved = "member_removed",
|
|
16
|
+
AddedToGameweek = "added_to_gameweek",
|
|
17
|
+
RemovedFromGameweek = "removed_from_gameweek",
|
|
18
|
+
GameweekStarted = "gameweek_started",
|
|
19
|
+
GameweekWon = "gameweek_won",
|
|
20
|
+
WalletTopUp = "wallet_top_up",
|
|
21
|
+
RefundProcessed = "refund_processed",
|
|
22
|
+
WithdrawalInitiated = "withdrawal_initiated",
|
|
23
|
+
WithdrawalCompleted = "withdrawal_completed",
|
|
24
|
+
WithdrawalFailed = "withdrawal_failed",
|
|
25
|
+
OwnershipTransferred = "ownership_transferred",
|
|
26
|
+
TwoFactorEnabled = "two_factor_enabled",
|
|
27
|
+
TwoFactorDisabled = "two_factor_disabled",
|
|
28
|
+
PoolDeleted = "pool_deleted",
|
|
29
|
+
PoolUpdated = "pool_updated",
|
|
30
|
+
PoolCreated = "pool_created",
|
|
31
|
+
PoolJoined = "pool_joined",
|
|
32
|
+
PoolLeft = "pool_left",
|
|
13
33
|
Activity = "activity",
|
|
14
34
|
Announcement = "announcement"
|
|
15
35
|
}
|
|
36
|
+
export declare enum ActivityType {
|
|
37
|
+
Login = "login"
|
|
38
|
+
}
|
|
16
39
|
export interface PushNotificationPayload {
|
|
17
40
|
deviceType: DeviceType;
|
|
18
41
|
type: NotificationType;
|
|
19
42
|
user: IUser;
|
|
20
43
|
data: Record<string, any>;
|
|
21
44
|
}
|
|
45
|
+
export declare enum NotificationTarget {
|
|
46
|
+
ADMIN = "admin",
|
|
47
|
+
MEMBERS = "members",
|
|
48
|
+
SELF = "self"
|
|
49
|
+
}
|
|
22
50
|
//# sourceMappingURL=notification.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../src/types/notification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE7C,oBAAY,kBAAkB;IAC1B,IAAI,SAAS;IACb,MAAM,WAAW;CACpB;AAED,oBAAY,gBAAgB;IACxB,eAAe,qBAAqB;IACpC,eAAe,qBAAqB;IACpC,aAAa,oBAAoB;IACjC,YAAY,mBAAmB;IAC/B,UAAU,gBAAgB;IAC1B,QAAQ,aAAa;IACrB,YAAY,iBAAiB;CAChC;AAED,MAAM,WAAW,uBAAuB;IACpC,UAAU,EAAE,UAAU,CAAC;IACvB,IAAI,EAAE,gBAAgB,CAAC;IACvB,IAAI,EAAE,KAAK,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC7B"}
|
|
1
|
+
{"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../src/types/notification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE7C,oBAAY,kBAAkB;IAC1B,IAAI,SAAS;IACb,MAAM,WAAW;CACpB;AAED,oBAAY,gBAAgB;IACxB,eAAe,qBAAqB;IACpC,eAAe,qBAAqB;IACpC,aAAa,oBAAoB;IACjC,YAAY,mBAAmB;IAC/B,UAAU,gBAAgB;IAC1B,cAAc,oBAAoB;IAClC,UAAU,gBAAgB;IAC1B,aAAa,mBAAmB;IAChC,eAAe,sBAAsB;IACrC,mBAAmB,0BAA0B;IAC7C,eAAe,qBAAqB;IACpC,WAAW,iBAAiB;IAC5B,WAAW,kBAAkB;IAC7B,eAAe,qBAAqB;IACpC,mBAAmB,yBAAyB;IAC5C,mBAAmB,yBAAyB;IAC5C,gBAAgB,sBAAsB;IACtC,oBAAoB,0BAA0B;IAC9C,gBAAgB,uBAAuB;IACvC,iBAAiB,wBAAwB;IACzC,WAAW,iBAAiB;IAC5B,WAAW,iBAAiB;IAC5B,WAAW,iBAAiB;IAC5B,UAAU,gBAAgB;IAC1B,QAAQ,cAAc;IACtB,QAAQ,aAAa;IACrB,YAAY,iBAAiB;CAChC;AAGD,oBAAY,YAAY;IACpB,KAAK,UAAU;CAClB;AAED,MAAM,WAAW,uBAAuB;IACpC,UAAU,EAAE,UAAU,CAAC;IACvB,IAAI,EAAE,gBAAgB,CAAC;IACvB,IAAI,EAAE,KAAK,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC7B;AAGD,oBAAY,kBAAkB;IAC1B,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,IAAI,SAAS;CAChB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NotificationType = exports.NotificationStatus = void 0;
|
|
3
|
+
exports.NotificationTarget = exports.ActivityType = exports.NotificationType = exports.NotificationStatus = void 0;
|
|
4
4
|
var NotificationStatus;
|
|
5
5
|
(function (NotificationStatus) {
|
|
6
6
|
NotificationStatus["Read"] = "read";
|
|
@@ -13,7 +13,37 @@ var NotificationType;
|
|
|
13
13
|
NotificationType["NewPoolMember"] = "new_pool_member";
|
|
14
14
|
NotificationType["NewPoolAdmin"] = "new_pool_admin";
|
|
15
15
|
NotificationType["PoolInvite"] = "pool_invite";
|
|
16
|
+
NotificationType["InviteDeclined"] = "invite_declined";
|
|
17
|
+
NotificationType["MemberLeft"] = "member_left";
|
|
18
|
+
NotificationType["MemberRemoved"] = "member_removed";
|
|
19
|
+
NotificationType["AddedToGameweek"] = "added_to_gameweek";
|
|
20
|
+
NotificationType["RemovedFromGameweek"] = "removed_from_gameweek";
|
|
21
|
+
NotificationType["GameweekStarted"] = "gameweek_started";
|
|
22
|
+
NotificationType["GameweekWon"] = "gameweek_won";
|
|
23
|
+
NotificationType["WalletTopUp"] = "wallet_top_up";
|
|
24
|
+
NotificationType["RefundProcessed"] = "refund_processed";
|
|
25
|
+
NotificationType["WithdrawalInitiated"] = "withdrawal_initiated";
|
|
26
|
+
NotificationType["WithdrawalCompleted"] = "withdrawal_completed";
|
|
27
|
+
NotificationType["WithdrawalFailed"] = "withdrawal_failed";
|
|
28
|
+
NotificationType["OwnershipTransferred"] = "ownership_transferred";
|
|
29
|
+
NotificationType["TwoFactorEnabled"] = "two_factor_enabled";
|
|
30
|
+
NotificationType["TwoFactorDisabled"] = "two_factor_disabled";
|
|
31
|
+
NotificationType["PoolDeleted"] = "pool_deleted";
|
|
32
|
+
NotificationType["PoolUpdated"] = "pool_updated";
|
|
33
|
+
NotificationType["PoolCreated"] = "pool_created";
|
|
34
|
+
NotificationType["PoolJoined"] = "pool_joined";
|
|
35
|
+
NotificationType["PoolLeft"] = "pool_left";
|
|
16
36
|
NotificationType["Activity"] = "activity";
|
|
17
37
|
NotificationType["Announcement"] = "announcement";
|
|
18
38
|
})(NotificationType || (exports.NotificationType = NotificationType = {}));
|
|
39
|
+
var ActivityType;
|
|
40
|
+
(function (ActivityType) {
|
|
41
|
+
ActivityType["Login"] = "login";
|
|
42
|
+
})(ActivityType || (exports.ActivityType = ActivityType = {}));
|
|
43
|
+
var NotificationTarget;
|
|
44
|
+
(function (NotificationTarget) {
|
|
45
|
+
NotificationTarget["ADMIN"] = "admin";
|
|
46
|
+
NotificationTarget["MEMBERS"] = "members";
|
|
47
|
+
NotificationTarget["SELF"] = "self";
|
|
48
|
+
})(NotificationTarget || (exports.NotificationTarget = NotificationTarget = {}));
|
|
19
49
|
//# sourceMappingURL=notification.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.js","sourceRoot":"","sources":["../../src/types/notification.ts"],"names":[],"mappings":";;;AAGA,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC1B,mCAAa,CAAA;IACb,uCAAiB,CAAA;AACrB,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B;AAED,IAAY,
|
|
1
|
+
{"version":3,"file":"notification.js","sourceRoot":"","sources":["../../src/types/notification.ts"],"names":[],"mappings":";;;AAGA,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC1B,mCAAa,CAAA;IACb,uCAAiB,CAAA;AACrB,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B;AAED,IAAY,gBA4BX;AA5BD,WAAY,gBAAgB;IACxB,wDAAoC,CAAA;IACpC,wDAAoC,CAAA;IACpC,qDAAiC,CAAA;IACjC,mDAA+B,CAAA;IAC/B,8CAA0B,CAAA;IAC1B,sDAAkC,CAAA;IAClC,8CAA0B,CAAA;IAC1B,oDAAgC,CAAA;IAChC,yDAAqC,CAAA;IACrC,iEAA6C,CAAA;IAC7C,wDAAoC,CAAA;IACpC,gDAA4B,CAAA;IAC5B,iDAA6B,CAAA;IAC7B,wDAAoC,CAAA;IACpC,gEAA4C,CAAA;IAC5C,gEAA4C,CAAA;IAC5C,0DAAsC,CAAA;IACtC,kEAA8C,CAAA;IAC9C,2DAAuC,CAAA;IACvC,6DAAyC,CAAA;IACzC,gDAA4B,CAAA;IAC5B,gDAA4B,CAAA;IAC5B,gDAA4B,CAAA;IAC5B,8CAA0B,CAAA;IAC1B,0CAAsB,CAAA;IACtB,yCAAqB,CAAA;IACrB,iDAA6B,CAAA;AACjC,CAAC,EA5BW,gBAAgB,gCAAhB,gBAAgB,QA4B3B;AAGD,IAAY,YAEX;AAFD,WAAY,YAAY;IACpB,+BAAe,CAAA;AACnB,CAAC,EAFW,YAAY,4BAAZ,YAAY,QAEvB;AAUD,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC1B,qCAAe,CAAA;IACf,yCAAmB,CAAA;IACnB,mCAAa,CAAA;AACjB,CAAC,EAJW,kBAAkB,kCAAlB,kBAAkB,QAI7B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fplpool/fpl-models",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -8,8 +8,7 @@
|
|
|
8
8
|
],
|
|
9
9
|
"scripts": {
|
|
10
10
|
"build": "tsc",
|
|
11
|
-
"prepublishOnly": "npm run build"
|
|
12
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
11
|
+
"prepublishOnly": "npm run build"
|
|
13
12
|
},
|
|
14
13
|
"keywords": [],
|
|
15
14
|
"author": "Akamelu Sopuruchukwu",
|