@hastehaul/common 2.0.25 → 2.0.26

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- CustomerSystemUpdateCustomerServiceDurablename = "customer-system-update_customer-service-consumer",
6
- CustomerSystemUpdatePaymentServiceDurablename = "customer-system-update_payment-service-consumer"
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["CustomerSystemUpdateCustomerServiceDurablename"] = "customer-system-update_customer-service-consumer";
10
- CustomerSystemDurableName["CustomerSystemUpdatePaymentServiceDurablename"] = "customer-system-update_payment-service-consumer";
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
- CustomerSystemUpdateCustomerService = "customer-system.update-customer-service",
6
- CustomerSystemUpdatePaymentService = "customer-system.updadte-notification-service",
7
- CustomerSystemUpdateDriverService = "customer-system.updadte-driver-service",
8
- CustomerSystemUpdateDiscountService = "customer-system.updadte-discount-service"
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["CustomerSystemUpdateCustomerService"] = "customer-system.update-customer-service";
10
- CustomerSystemSubjects["CustomerSystemUpdatePaymentService"] = "customer-system.updadte-notification-service";
11
- CustomerSystemSubjects["CustomerSystemUpdateDriverService"] = "customer-system.updadte-driver-service";
12
- CustomerSystemSubjects["CustomerSystemUpdateDiscountService"] = "customer-system.updadte-discount-service";
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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
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-updated-customer-service-event";
144
- export * from "./events/common/interfaces/customer-system-events-interfaces/customer-system-updated-payment-service-event";
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-updated-customer-service-event"), exports);
177
- __exportStar(require("./events/common/interfaces/customer-system-events-interfaces/customer-system-updated-payment-service-event"), exports);
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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hastehaul/common",
3
- "version": "2.0.25",
3
+ "version": "2.0.26",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",