@hastehaul/common 2.0.25 → 2.0.26
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/common/enums/durable-names/customer-system-dname.d.ts +2 -2
- package/build/events/common/enums/durable-names/customer-system-dname.js +2 -2
- package/build/events/common/enums/subjects/customer-system-subjects.d.ts +4 -4
- package/build/events/common/enums/subjects/customer-system-subjects.js +4 -4
- package/build/events/common/interfaces/customer-system-events-interfaces/customer-system-customer-service-event.d.ts +35 -0
- package/build/events/common/interfaces/customer-system-events-interfaces/customer-system-customer-service-event.js +2 -0
- package/build/events/common/interfaces/customer-system-events-interfaces/customer-system-payment-service-event.d.ts +35 -0
- package/build/events/common/interfaces/customer-system-events-interfaces/customer-system-payment-service-event.js +2 -0
- package/build/index.d.ts +2 -2
- package/build/index.js +2 -2
- package/package.json +1 -1
@@ -2,6 +2,6 @@
|
|
2
2
|
* Enum representing durable names for consumers associated with different customer events.
|
3
3
|
*/
|
4
4
|
export declare enum CustomerSystemDurableName {
|
5
|
-
|
6
|
-
|
5
|
+
CustomerSystemCustomerServiceDurablename = "customer-system-customer-service-consumer",
|
6
|
+
CustomerSystemPaymentServiceDurablename = "customer-system-payment-service-consumer"
|
7
7
|
}
|
@@ -6,6 +6,6 @@ exports.CustomerSystemDurableName = void 0;
|
|
6
6
|
*/
|
7
7
|
var CustomerSystemDurableName;
|
8
8
|
(function (CustomerSystemDurableName) {
|
9
|
-
CustomerSystemDurableName["
|
10
|
-
CustomerSystemDurableName["
|
9
|
+
CustomerSystemDurableName["CustomerSystemCustomerServiceDurablename"] = "customer-system-customer-service-consumer";
|
10
|
+
CustomerSystemDurableName["CustomerSystemPaymentServiceDurablename"] = "customer-system-payment-service-consumer";
|
11
11
|
})(CustomerSystemDurableName || (exports.CustomerSystemDurableName = CustomerSystemDurableName = {}));
|
@@ -2,8 +2,8 @@
|
|
2
2
|
* Enum representing the subjects for different customer system events.
|
3
3
|
*/
|
4
4
|
export declare enum CustomerSystemSubjects {
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
5
|
+
CustomerSystemCustomerService = "customer-system.customer-service",
|
6
|
+
CustomerSystemPaymentService = "customer-system.notification-service",
|
7
|
+
CustomerSystemDriverService = "customer-system.driver-service",
|
8
|
+
CustomerSystemDiscountService = "customer-system.discount-service"
|
9
9
|
}
|
@@ -6,8 +6,8 @@ exports.CustomerSystemSubjects = void 0;
|
|
6
6
|
*/
|
7
7
|
var CustomerSystemSubjects;
|
8
8
|
(function (CustomerSystemSubjects) {
|
9
|
-
CustomerSystemSubjects["
|
10
|
-
CustomerSystemSubjects["
|
11
|
-
CustomerSystemSubjects["
|
12
|
-
CustomerSystemSubjects["
|
9
|
+
CustomerSystemSubjects["CustomerSystemCustomerService"] = "customer-system.customer-service";
|
10
|
+
CustomerSystemSubjects["CustomerSystemPaymentService"] = "customer-system.notification-service";
|
11
|
+
CustomerSystemSubjects["CustomerSystemDriverService"] = "customer-system.driver-service";
|
12
|
+
CustomerSystemSubjects["CustomerSystemDiscountService"] = "customer-system.discount-service";
|
13
13
|
})(CustomerSystemSubjects || (exports.CustomerSystemSubjects = CustomerSystemSubjects = {}));
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import { CustomerSystemDurableName } from '../../enums/durable-names/customer-system-dname';
|
2
|
+
import { CustomerSystemStream } from '../../enums/streams/customer-system-stream';
|
3
|
+
import { CustomerSystemSubjects } from '../../enums/subjects/customer-system-subjects';
|
4
|
+
/**
|
5
|
+
* Interface representing the "Customer Customer Service" event.
|
6
|
+
*
|
7
|
+
* The "Customer Customer ServiceEvent" interface defines the structure of an event related to the cancellation of an customer.
|
8
|
+
* Events of this type are used to communicate customer cancellation details across the application.
|
9
|
+
*/
|
10
|
+
export interface CustomerSystemCustomerServiceEvent {
|
11
|
+
/**
|
12
|
+
* The subject of the event, specifying that it represents an "Customer Customer Service" event.
|
13
|
+
*/
|
14
|
+
subject: CustomerSystemSubjects.CustomerSystemCustomerService;
|
15
|
+
/**
|
16
|
+
* The durable name associated with the consumer handling the "Customer Customer Service" event.
|
17
|
+
* This property is optional and may be used to identify the consumer processing the event in a durable manner.
|
18
|
+
*/
|
19
|
+
durableName?: CustomerSystemDurableName.CustomerSystemCustomerServiceDurablename;
|
20
|
+
/**
|
21
|
+
* The stream to which the event belongs, specifying that it is an "Customer" stream.
|
22
|
+
* Events of different types may be grouped into different streams based on their common characteristics.
|
23
|
+
*/
|
24
|
+
stream: CustomerSystemStream.CustomerSystem;
|
25
|
+
/**
|
26
|
+
* The data payload of the "Customer Customer Service" event.
|
27
|
+
* The data payload contains specific details related to the customer cancellation, such as key, value and version
|
28
|
+
*/
|
29
|
+
data: {
|
30
|
+
key: string;
|
31
|
+
value: string;
|
32
|
+
version: number;
|
33
|
+
type: string;
|
34
|
+
};
|
35
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import { CustomerSystemDurableName } from '../../enums/durable-names/customer-system-dname';
|
2
|
+
import { CustomerSystemStream } from '../../enums/streams/customer-system-stream';
|
3
|
+
import { CustomerSystemSubjects } from '../../enums/subjects/customer-system-subjects';
|
4
|
+
/**
|
5
|
+
* Interface representing the "Customer Payment Service" event.
|
6
|
+
*
|
7
|
+
* The "Customer Payment ServiceEvent" interface defines the structure of an event related to the cancellation of an customer.
|
8
|
+
* Events of this type are used to communicate customer cancellation details across the application.
|
9
|
+
*/
|
10
|
+
export interface CustomerSystemPaymentServiceEvent {
|
11
|
+
/**
|
12
|
+
* The subject of the event, specifying that it represents an "Customer Payment Service" event.
|
13
|
+
*/
|
14
|
+
subject: CustomerSystemSubjects.CustomerSystemPaymentService;
|
15
|
+
/**
|
16
|
+
* The durable name associated with the consumer handling the "Customer Payment Service" event.
|
17
|
+
* This property is optional and may be used to identify the consumer processing the event in a durable manner.
|
18
|
+
*/
|
19
|
+
durableName?: CustomerSystemDurableName.CustomerSystemPaymentServiceDurablename;
|
20
|
+
/**
|
21
|
+
* The stream to which the event belongs, specifying that it is an "Customer" stream.
|
22
|
+
* Events of different types may be grouped into different streams based on their common characteristics.
|
23
|
+
*/
|
24
|
+
stream: CustomerSystemStream.CustomerSystem;
|
25
|
+
/**
|
26
|
+
* The data payload of the "Customer Payment Service" event.
|
27
|
+
* The data payload contains specific details related to the customer cancellation, such as key, value and version
|
28
|
+
*/
|
29
|
+
data: {
|
30
|
+
key: string;
|
31
|
+
value: string;
|
32
|
+
version: number;
|
33
|
+
type: string;
|
34
|
+
};
|
35
|
+
}
|
package/build/index.d.ts
CHANGED
@@ -140,8 +140,8 @@ export * from "./events/common/interfaces/customer-events-interfaces/customer-ne
|
|
140
140
|
export * from "./events/common/interfaces/customer-events-interfaces/customer-otp-request-event";
|
141
141
|
export * from "./events/common/interfaces/customer-events-interfaces/customer-paymentmethod-request";
|
142
142
|
export * from "./events/common/interfaces/customer-events-interfaces/customer-paymentmethod";
|
143
|
-
export * from "./events/common/interfaces/customer-system-events-interfaces/customer-system-
|
144
|
-
export * from "./events/common/interfaces/customer-system-events-interfaces/customer-system-
|
143
|
+
export * from "./events/common/interfaces/customer-system-events-interfaces/customer-system-customer-service-event";
|
144
|
+
export * from "./events/common/interfaces/customer-system-events-interfaces/customer-system-payment-service-event";
|
145
145
|
/**
|
146
146
|
* Re-exports all the interfaces related to streams from the "stream-interfaces" file.
|
147
147
|
*
|
package/build/index.js
CHANGED
@@ -173,8 +173,8 @@ __exportStar(require("./events/common/interfaces/customer-events-interfaces/cust
|
|
173
173
|
__exportStar(require("./events/common/interfaces/customer-events-interfaces/customer-paymentmethod-request"), exports);
|
174
174
|
__exportStar(require("./events/common/interfaces/customer-events-interfaces/customer-paymentmethod"), exports);
|
175
175
|
// CUSTOMER SYSTEM EVENTS
|
176
|
-
__exportStar(require("./events/common/interfaces/customer-system-events-interfaces/customer-system-
|
177
|
-
__exportStar(require("./events/common/interfaces/customer-system-events-interfaces/customer-system-
|
176
|
+
__exportStar(require("./events/common/interfaces/customer-system-events-interfaces/customer-system-customer-service-event"), exports);
|
177
|
+
__exportStar(require("./events/common/interfaces/customer-system-events-interfaces/customer-system-payment-service-event"), exports);
|
178
178
|
// PAYMENT EVENTS
|
179
179
|
//! Interfaces related to payment events are currently commented out using '//'.
|
180
180
|
// export * from "./payment-event-interfaces";
|