@hastehaul/common 2.0.19 → 2.0.21

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,7 +22,6 @@ export interface CustomerCreatedEvent {
22
22
  * Events of different types may be grouped into different streams based on their common characteristics.
23
23
  */
24
24
  stream: CustomerStream.Customer;
25
- type: string;
26
25
  /**
27
26
  * The data payload of the "Customer Created" event.
28
27
  * The data payload contains specific details related to the customer cancellation, such as customer ID, version, status, user ID, and trip ID.
@@ -30,5 +29,6 @@ export interface CustomerCreatedEvent {
30
29
  data: {
31
30
  userId: null | string;
32
31
  phoneNumber: string;
32
+ isNew: boolean;
33
33
  };
34
34
  }
@@ -29,7 +29,7 @@ export interface CustomerNewEvent {
29
29
  data: {
30
30
  userId: string;
31
31
  phoneNumber: string;
32
- phoneUniqueId: string;
33
- hashedOtp: string;
32
+ phoneUniqueId?: string;
33
+ hashedOtp?: string;
34
34
  };
35
35
  }
@@ -25,6 +25,9 @@ export interface CustomerPaymentMethodEvent {
25
25
  data: {
26
26
  customerId: string;
27
27
  customerAccountId: string;
28
- paymentMethods: {}[];
28
+ paymentMethods: {
29
+ type: string;
30
+ status: string;
31
+ }[];
29
32
  };
30
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hastehaul/common",
3
- "version": "2.0.19",
3
+ "version": "2.0.21",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",