@hastehaul/common 2.17.0 → 2.18.0
Sign up to get free protection for your applications and to get access to all the features.
- package/build/events/common/enums/durable-names/customer-dname.d.ts +1 -0
- package/build/events/common/enums/durable-names/customer-dname.js +1 -0
- package/build/events/common/enums/subjects/customer-subjects.d.ts +1 -0
- package/build/events/common/enums/subjects/customer-subjects.js +1 -0
- package/build/events/common/interfaces/customer-events-interfaces/customer-new-updated-event.d.ts +14 -0
- package/build/events/common/interfaces/customer-events-interfaces/customer-new-updated-event.js +2 -0
- package/package.json +1 -1
@@ -14,6 +14,7 @@ export declare enum CustomerDurableName {
|
|
14
14
|
* The durable name for the consumer handling customer created events.
|
15
15
|
*/
|
16
16
|
CustomerCreatedDurablename = "customer-created-consumer",
|
17
|
+
CustomerNewUpdatedDurablename = "customer-new-updated",
|
17
18
|
CustomerCreatedNotificationDurablename = "customer-created-notification-consumer",
|
18
19
|
CustomerOtpRequestDurablename = "customer-otp-request",
|
19
20
|
CustomerPaymentMethodRequestDurablename = "customer-paymentmethod-request",
|
@@ -18,6 +18,7 @@ var CustomerDurableName;
|
|
18
18
|
* The durable name for the consumer handling customer created events.
|
19
19
|
*/
|
20
20
|
CustomerDurableName["CustomerCreatedDurablename"] = "customer-created-consumer";
|
21
|
+
CustomerDurableName["CustomerNewUpdatedDurablename"] = "customer-new-updated";
|
21
22
|
CustomerDurableName["CustomerCreatedNotificationDurablename"] = "customer-created-notification-consumer";
|
22
23
|
CustomerDurableName["CustomerOtpRequestDurablename"] = "customer-otp-request";
|
23
24
|
CustomerDurableName["CustomerPaymentMethodRequestDurablename"] = "customer-paymentmethod-request";
|
package/build/events/common/interfaces/customer-events-interfaces/customer-new-updated-event.d.ts
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
import { CustomerDurableName } from '../../enums/durable-names/customer-dname';
|
2
|
+
import { CustomerStream } from '../../enums/streams/customer-stream';
|
3
|
+
import { CustomerSubjects } from '../../enums/subjects/customer-subjects';
|
4
|
+
export interface CustomerNewUpdatedEvent {
|
5
|
+
subject: CustomerSubjects.CustomerNewUpdated;
|
6
|
+
durableName?: CustomerDurableName.CustomerNewUpdatedDurablename;
|
7
|
+
stream: CustomerStream.Customer;
|
8
|
+
data: {
|
9
|
+
userId: null | string;
|
10
|
+
phoneNumber: string;
|
11
|
+
isNew: boolean;
|
12
|
+
referalCode?: string;
|
13
|
+
};
|
14
|
+
}
|