@hastehaul/common 2.0.20 → 2.0.22
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/base/base-consumer.js +1 -1
- package/build/events/base/base-publisher.js +1 -1
- package/build/events/common/interfaces/customer-events-interfaces/customer-created-event.d.ts +1 -1
- package/build/events/common/interfaces/customer-events-interfaces/customer-new-event.d.ts +2 -2
- package/package.json +1 -1
@@ -36,7 +36,7 @@ class NatsPublisher {
|
|
36
36
|
return yield jetStreamClient.publish(this.subject, typeof data === "string" ? this.sc.encode(data) : this.jc.encode(data));
|
37
37
|
}
|
38
38
|
catch (error) {
|
39
|
-
console.error(error
|
39
|
+
console.error(error);
|
40
40
|
throw new Error(`Failed to publish message. Error: [${error.message}]`);
|
41
41
|
}
|
42
42
|
});
|
package/build/events/common/interfaces/customer-events-interfaces/customer-created-event.d.ts
CHANGED
@@ -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
|
}
|