@konplit-services/common 1.0.306 → 1.0.308
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/build/events/kore-events/interfaces/index.d.ts +3 -0
- package/build/events/kore-events/interfaces/index.js +3 -0
- package/build/events/kore-events/interfaces/subscription-next.d.ts +19 -0
- package/build/events/kore-events/interfaces/subscription-next.js +2 -0
- package/build/events/kore-events/interfaces/subscription-reminder-next.d.ts +19 -0
- package/build/events/kore-events/interfaces/subscription-reminder-next.js +2 -0
- package/build/events/subjects.d.ts +2 -0
- package/build/events/subjects.js +2 -0
- package/package.json +1 -1
|
@@ -10,3 +10,6 @@ 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";
|
|
14
|
+
export * from "./subscription-next";
|
|
15
|
+
export * from "./subscription-reminder-next";
|
|
@@ -26,3 +26,6 @@ __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);
|
|
30
|
+
__exportStar(require("./subscription-next"), exports);
|
|
31
|
+
__exportStar(require("./subscription-reminder-next"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Usage } from "../../../helper";
|
|
2
|
+
import { StreamEvent, StreamName, Subjects } from "../../subjects";
|
|
3
|
+
export interface SubscriptionNextEvent {
|
|
4
|
+
subject: Subjects.KORE_SUBSCRIPTION_NEXT;
|
|
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
|
+
usage: Usage;
|
|
14
|
+
amount: number;
|
|
15
|
+
endDate?: Date;
|
|
16
|
+
startDate?: Date;
|
|
17
|
+
limit?: number;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Usage } from "../../../helper";
|
|
2
|
+
import { StreamEvent, StreamName, Subjects } from "../../subjects";
|
|
3
|
+
export interface SubscriptionReminderNextEvent {
|
|
4
|
+
subject: Subjects.KORE_SUBSCRIPTION_PAYMENT_REMINDER_NEXT;
|
|
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
|
+
usage: Usage;
|
|
14
|
+
amount: number;
|
|
15
|
+
endDate?: Date;
|
|
16
|
+
startDate?: Date;
|
|
17
|
+
limit?: number;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
@@ -86,6 +86,7 @@ export declare enum Subjects {
|
|
|
86
86
|
KORE_PLAN_CANCELLED = "events.plan.cancelled",
|
|
87
87
|
KORE_SUBSCRIPTION_CANCELLED = "events.subscription.cancelled",
|
|
88
88
|
KORE_SUBSCRIPTION_CREATED = "events.subscription.created",
|
|
89
|
+
KORE_SUBSCRIPTION_NEXT = "events.subscription.next",
|
|
89
90
|
KORE_SUBSCRIPTION_UPDATED = "events.subscription.updated",
|
|
90
91
|
KORE_SUBSCRIPTION_REMINDER_UPDATED = "events.subscription.reminder.updated",
|
|
91
92
|
KORE_SUBSCRIPTION_RENEWED = "events.subscription.renewed",
|
|
@@ -97,6 +98,7 @@ export declare enum Subjects {
|
|
|
97
98
|
KORE_SUBSCRIPTION_PAYMENT_RETRIED = "events.subscription.payment.retried",
|
|
98
99
|
KORE_SUBSCRIPTION_PAYMENT_DELAYED = "events.subscription.payment.delayed",
|
|
99
100
|
KORE_SUBSCRIPTION_PAYMENT_REMINDER = "events.subscription.payment.reminder",
|
|
101
|
+
KORE_SUBSCRIPTION_PAYMENT_REMINDER_NEXT = "events.subscription.payment.reminder.next",
|
|
100
102
|
KORE_SUBSCRIPTION_PAYMENT_REMINDER_CANCELLED = "events.subscription.payment.reminder.cancelled",
|
|
101
103
|
KORE_CUSTOMER_CREATED = "events.customer.created",
|
|
102
104
|
KORE_CUSTOMER_UPDATED = "events.customer.updated",
|
package/build/events/subjects.js
CHANGED
|
@@ -117,6 +117,7 @@ var Subjects;
|
|
|
117
117
|
Subjects["KORE_PLAN_CANCELLED"] = "events.plan.cancelled";
|
|
118
118
|
Subjects["KORE_SUBSCRIPTION_CANCELLED"] = "events.subscription.cancelled";
|
|
119
119
|
Subjects["KORE_SUBSCRIPTION_CREATED"] = "events.subscription.created";
|
|
120
|
+
Subjects["KORE_SUBSCRIPTION_NEXT"] = "events.subscription.next";
|
|
120
121
|
Subjects["KORE_SUBSCRIPTION_UPDATED"] = "events.subscription.updated";
|
|
121
122
|
Subjects["KORE_SUBSCRIPTION_REMINDER_UPDATED"] = "events.subscription.reminder.updated";
|
|
122
123
|
Subjects["KORE_SUBSCRIPTION_RENEWED"] = "events.subscription.renewed";
|
|
@@ -128,6 +129,7 @@ var Subjects;
|
|
|
128
129
|
Subjects["KORE_SUBSCRIPTION_PAYMENT_RETRIED"] = "events.subscription.payment.retried";
|
|
129
130
|
Subjects["KORE_SUBSCRIPTION_PAYMENT_DELAYED"] = "events.subscription.payment.delayed";
|
|
130
131
|
Subjects["KORE_SUBSCRIPTION_PAYMENT_REMINDER"] = "events.subscription.payment.reminder";
|
|
132
|
+
Subjects["KORE_SUBSCRIPTION_PAYMENT_REMINDER_NEXT"] = "events.subscription.payment.reminder.next";
|
|
131
133
|
Subjects["KORE_SUBSCRIPTION_PAYMENT_REMINDER_CANCELLED"] = "events.subscription.payment.reminder.cancelled";
|
|
132
134
|
Subjects["KORE_CUSTOMER_CREATED"] = "events.customer.created";
|
|
133
135
|
Subjects["KORE_CUSTOMER_UPDATED"] = "events.customer.updated";
|