@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.
@@ -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";
@@ -10,6 +10,7 @@ export declare enum CustomerSubjects {
10
10
  * The subject for customer created events.
11
11
  */
12
12
  CustomerCreated = "customer.created",
13
+ CustomerNewUpdated = "customer.new-updated",
13
14
  /**
14
15
  * The subject for customer created events.
15
16
  */
@@ -14,6 +14,7 @@ var CustomerSubjects;
14
14
  * The subject for customer created events.
15
15
  */
16
16
  CustomerSubjects["CustomerCreated"] = "customer.created";
17
+ CustomerSubjects["CustomerNewUpdated"] = "customer.new-updated";
17
18
  /**
18
19
  * The subject for customer created events.
19
20
  */
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hastehaul/common",
3
- "version": "2.17.0",
3
+ "version": "2.18.0",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",