@hastehaul/common 2.0.14 → 2.0.16

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.
@@ -26,7 +26,7 @@ class SocketWrapper {
26
26
  */
27
27
  connect(httpServer, path) {
28
28
  this._io = new socket_io_1.Server(httpServer, {
29
- path: path || `/${path}/socket/`,
29
+ path: `/${path ? path + '/' : ''}socket/`,
30
30
  pingTimeout: 30000,
31
31
  pingInterval: 25000,
32
32
  cors: {
@@ -14,5 +14,6 @@ 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
- CustomerOtpRequestDurablename = "customer-otp-request"
17
+ CustomerOtpRequestDurablename = "customer-otp-request",
18
+ CustomerPaymentMethodRequestDurablename = "customer-paymentmethod-request"
18
19
  }
@@ -19,4 +19,5 @@ var CustomerDurableName;
19
19
  */
20
20
  CustomerDurableName["CustomerCreatedDurablename"] = "customer-created-consumer";
21
21
  CustomerDurableName["CustomerOtpRequestDurablename"] = "customer-otp-request";
22
+ CustomerDurableName["CustomerPaymentMethodRequestDurablename"] = "customer-paymentmethod-request";
22
23
  })(CustomerDurableName || (exports.CustomerDurableName = CustomerDurableName = {}));
@@ -15,7 +15,11 @@ export declare enum CustomerSubjects {
15
15
  */
16
16
  CustomerUnblocked = "customer.unblocked",
17
17
  /**
18
- * The subject for customer OTP request events.
19
- */
20
- CustomerOtpRequest = "customer.otp-request"
18
+ * The subject for customer OTP request events.
19
+ */
20
+ CustomerOtpRequest = "customer.otp-request",
21
+ /**
22
+ * The subject for a customer to reuest default payment methods
23
+ */
24
+ CustomerPaymentMethodRequest = "customer.paymentmethod-request"
21
25
  }
@@ -19,7 +19,11 @@ var CustomerSubjects;
19
19
  */
20
20
  CustomerSubjects["CustomerUnblocked"] = "customer.unblocked";
21
21
  /**
22
- * The subject for customer OTP request events.
23
- */
22
+ * The subject for customer OTP request events.
23
+ */
24
24
  CustomerSubjects["CustomerOtpRequest"] = "customer.otp-request";
25
+ /**
26
+ * The subject for a customer to reuest default payment methods
27
+ */
28
+ CustomerSubjects["CustomerPaymentMethodRequest"] = "customer.paymentmethod-request";
25
29
  })(CustomerSubjects || (exports.CustomerSubjects = CustomerSubjects = {}));
@@ -0,0 +1,25 @@
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
+ /**
5
+ * Interface representing the "Customer PaymentMethodRequest" event.
6
+ *
7
+ * The "CustomerPaymentMethodRequestEvent" 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 CustomerPaymentMethodRequestEvent {
11
+ /**
12
+ * The subject of the event, specifying that it represents an "Customer PaymentMethodRequest" event.
13
+ */
14
+ subject: CustomerSubjects.CustomerPaymentMethodRequest;
15
+ /**
16
+ * The durable name associated with the consumer handling the "Customer PaymentMethodRequest" event.
17
+ * This property is optional and may be used to identify the consumer processing the event in a durable manner.
18
+ */
19
+ durableName?: CustomerDurableName.CustomerPaymentMethodRequestDurablename;
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: CustomerStream.Customer;
25
+ }
@@ -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.0.14",
3
+ "version": "2.0.16",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",