@larisarozin/dodone-shared 1.0.1 → 1.0.3

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.
@@ -40,6 +40,8 @@ export interface SubscriptionStatusResponse {
40
40
  expirationDate?: Date;
41
41
  isTrialActive: boolean;
42
42
  trialEndsAt?: Date;
43
+ isGracePeriodActive: boolean;
44
+ gracePeriodEndsAt?: Date;
43
45
  platform?: string;
44
46
  isActive: boolean;
45
47
  }
@@ -47,7 +47,11 @@ export declare enum NotificationType {
47
47
  TaskEndingSoon = 1005,
48
48
  TaskEnded = 1006,
49
49
  AllowanceDaySoon = 1007,
50
- AllowanceDay = 1008
50
+ AllowanceDay = 1008,
51
+ TrialWelcome = -1001,
52
+ Trial3DayWarning = -1002,
53
+ Trial1DayWarning = -1003,
54
+ TrialEndedWarning = -1004
51
55
  }
52
56
  export declare enum NotificationChannel {
53
57
  Email = 0,
@@ -58,6 +58,11 @@ var NotificationType;
58
58
  NotificationType[NotificationType["TaskEnded"] = 1006] = "TaskEnded";
59
59
  NotificationType[NotificationType["AllowanceDaySoon"] = 1007] = "AllowanceDaySoon";
60
60
  NotificationType[NotificationType["AllowanceDay"] = 1008] = "AllowanceDay";
61
+ // Subscription Trial Notifications
62
+ NotificationType[NotificationType["TrialWelcome"] = -1001] = "TrialWelcome";
63
+ NotificationType[NotificationType["Trial3DayWarning"] = -1002] = "Trial3DayWarning";
64
+ NotificationType[NotificationType["Trial1DayWarning"] = -1003] = "Trial1DayWarning";
65
+ NotificationType[NotificationType["TrialEndedWarning"] = -1004] = "TrialEndedWarning";
61
66
  })(NotificationType || (exports.NotificationType = NotificationType = {}));
62
67
  var NotificationChannel;
63
68
  (function (NotificationChannel) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@larisarozin/dodone-shared",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Shared utilities and components for DoDone",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",