@konplit-services/common 1.0.305 → 1.0.307

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,3 +10,4 @@ export * from "./subscription-created.interface";
10
10
  export * from "./subscription-reminder-cancelled-interface";
11
11
  export * from "./subscription-reminder.interface";
12
12
  export * from "./subscription-updated.interface";
13
+ export * from "./subscription-reminder-updated.interface";
@@ -26,3 +26,4 @@ __exportStar(require("./subscription-created.interface"), exports);
26
26
  __exportStar(require("./subscription-reminder-cancelled-interface"), exports);
27
27
  __exportStar(require("./subscription-reminder.interface"), exports);
28
28
  __exportStar(require("./subscription-updated.interface"), exports);
29
+ __exportStar(require("./subscription-reminder-updated.interface"), exports);
@@ -0,0 +1,16 @@
1
+ import { SUBSCRIPTION_STATUS, Usage } from "../../../helper";
2
+ import { StreamEvent, StreamName, Subjects } from "../../subjects";
3
+ export interface SubscriptionReminderUpdatedEvent {
4
+ subject: Subjects.KORE_SUBSCRIPTION_REMINDER_UPDATED;
5
+ streamName: StreamName.name;
6
+ streamEvents: StreamEvent.Event;
7
+ data: {
8
+ subscriptionId: string;
9
+ planId: string;
10
+ customerId: string;
11
+ cronPattern: string;
12
+ reminderPattern: string;
13
+ status: SUBSCRIPTION_STATUS;
14
+ usage: Usage;
15
+ };
16
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,4 @@
1
- import { Usage } from "../../../helper";
1
+ import { SUBSCRIPTION_STATUS, Usage } from "../../../helper";
2
2
  import { StreamEvent, StreamName, Subjects } from "../../subjects";
3
3
  export interface SubscriptionUpdatedEvent {
4
4
  subject: Subjects.KORE_SUBSCRIPTION_UPDATED;
@@ -10,6 +10,7 @@ export interface SubscriptionUpdatedEvent {
10
10
  customerId: string;
11
11
  cronPattern: string;
12
12
  reminderPattern: string;
13
+ status: SUBSCRIPTION_STATUS;
13
14
  usage: Usage;
14
15
  amount: number;
15
16
  endDate?: Date;
@@ -87,6 +87,7 @@ export declare enum Subjects {
87
87
  KORE_SUBSCRIPTION_CANCELLED = "events.subscription.cancelled",
88
88
  KORE_SUBSCRIPTION_CREATED = "events.subscription.created",
89
89
  KORE_SUBSCRIPTION_UPDATED = "events.subscription.updated",
90
+ KORE_SUBSCRIPTION_REMINDER_UPDATED = "events.subscription.reminder.updated",
90
91
  KORE_SUBSCRIPTION_RENEWED = "events.subscription.renewed",
91
92
  KORE_SUBSCRIPTION_PAYMENT_CREATED = "events.subscription.payment.created",
92
93
  KORE_SUBSCRIPTION_PAYMENT_FAILED = "events.subscription.payment.failed",
@@ -118,6 +118,7 @@ var Subjects;
118
118
  Subjects["KORE_SUBSCRIPTION_CANCELLED"] = "events.subscription.cancelled";
119
119
  Subjects["KORE_SUBSCRIPTION_CREATED"] = "events.subscription.created";
120
120
  Subjects["KORE_SUBSCRIPTION_UPDATED"] = "events.subscription.updated";
121
+ Subjects["KORE_SUBSCRIPTION_REMINDER_UPDATED"] = "events.subscription.reminder.updated";
121
122
  Subjects["KORE_SUBSCRIPTION_RENEWED"] = "events.subscription.renewed";
122
123
  Subjects["KORE_SUBSCRIPTION_PAYMENT_CREATED"] = "events.subscription.payment.created";
123
124
  Subjects["KORE_SUBSCRIPTION_PAYMENT_FAILED"] = "events.subscription.payment.failed";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konplit-services/common",
3
- "version": "1.0.305",
3
+ "version": "1.0.307",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",