@collctiv/l2s-models 1.0.89 → 1.0.91
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/dist/entities/token.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token.d.ts","sourceRoot":"","sources":["../../entities/token.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAGvE,qBACa,KAAM,YAAW,WAAW,EAAE,UAAU;IAE1C,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,IAAI,CAAc;IAC/B,KAAK,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"token.d.ts","sourceRoot":"","sources":["../../entities/token.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAGvE,qBACa,KAAM,YAAW,WAAW,EAAE,UAAU;IAE1C,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,IAAI,CAAc;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IAGb,QAAQ,EAAE,OAAO,CAAS;IAG1B,OAAO,EAAE,MAAM,CAAC;IAEhB,WAAW,EAAE,IAAI,CAAC;gBAEN,IAAI,GAAE,OAAO,CAAC,KAAK,CAAM;IAIrC,OAAO,IAAI,OAAO;CAI5B"}
|
package/dist/entities/token.js
CHANGED
|
@@ -2,6 +2,7 @@ import type { IEvent } from "../global/interfaces.js";
|
|
|
2
2
|
import type { Country, Currency } from "../global/types.js";
|
|
3
3
|
import type { UserStatus } from "../entities/user.js";
|
|
4
4
|
import type { PotCategory } from "../entities/pot.js";
|
|
5
|
+
import { CourierType, type OrderItemType, SupplierType } from "../entities/order.js";
|
|
5
6
|
export declare class UserCreatedEvent implements IEvent {
|
|
6
7
|
event_date: Date;
|
|
7
8
|
first_name: string;
|
|
@@ -66,7 +67,7 @@ export declare class PaymentReceivedEvent implements IEvent {
|
|
|
66
67
|
pot_category: PotCategory;
|
|
67
68
|
constructor(args?: Partial<PaymentReceivedEvent>);
|
|
68
69
|
}
|
|
69
|
-
export declare class
|
|
70
|
+
export declare class OrderPlacedEvent implements IEvent {
|
|
70
71
|
event_date: Date;
|
|
71
72
|
order_no: string;
|
|
72
73
|
sub_total: number;
|
|
@@ -76,6 +77,23 @@ export declare class GiftCardOrderPlacedEvent implements IEvent {
|
|
|
76
77
|
shipping_type: string;
|
|
77
78
|
shipping_email: string;
|
|
78
79
|
shipping_name: string;
|
|
79
|
-
|
|
80
|
+
counts: Record<OrderItemType, number>;
|
|
81
|
+
delivery: OrderPlacedEventDelivery[];
|
|
82
|
+
constructor(args?: Partial<OrderPlacedEvent>);
|
|
80
83
|
}
|
|
84
|
+
export type OrderPlacedEventDelivery = {
|
|
85
|
+
supplier: SupplierType;
|
|
86
|
+
courier: CourierType;
|
|
87
|
+
product_name: string;
|
|
88
|
+
product_description: string;
|
|
89
|
+
product_image: string;
|
|
90
|
+
product_terms: string;
|
|
91
|
+
type: OrderItemType;
|
|
92
|
+
amount: number;
|
|
93
|
+
currency: Currency;
|
|
94
|
+
url?: string;
|
|
95
|
+
code?: string;
|
|
96
|
+
pin?: string;
|
|
97
|
+
expiry_date: string | null;
|
|
98
|
+
};
|
|
81
99
|
//# sourceMappingURL=notifications.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../../events/notifications.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;
|
|
1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,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;IACtC,QAAQ,EAAE,wBAAwB,EAAE,CAAM;gBAE9B,IAAI,GAAE,OAAO,CAAC,gBAAgB,CAAM;CAG1D;AAED,MAAM,MAAM,wBAAwB,GAAG;IACnC,QAAQ,EAAE,YAAY,CAAC;IACvB,OAAO,EAAE,WAAW,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,aAAa,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,QAAQ,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B,CAAA"}
|
|
@@ -8,6 +8,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
10
|
import { Notification } from "../global/decorators.js";
|
|
11
|
+
import { CourierType, SupplierType } from "../entities/order.js";
|
|
11
12
|
let UserCreatedEvent = class UserCreatedEvent {
|
|
12
13
|
event_date;
|
|
13
14
|
first_name;
|
|
@@ -128,7 +129,7 @@ PaymentReceivedEvent = __decorate([
|
|
|
128
129
|
__metadata("design:paramtypes", [Object])
|
|
129
130
|
], PaymentReceivedEvent);
|
|
130
131
|
export { PaymentReceivedEvent };
|
|
131
|
-
let
|
|
132
|
+
let OrderPlacedEvent = class OrderPlacedEvent {
|
|
132
133
|
event_date;
|
|
133
134
|
order_no;
|
|
134
135
|
sub_total;
|
|
@@ -138,12 +139,14 @@ let GiftCardOrderPlacedEvent = class GiftCardOrderPlacedEvent {
|
|
|
138
139
|
shipping_type;
|
|
139
140
|
shipping_email;
|
|
140
141
|
shipping_name;
|
|
142
|
+
counts;
|
|
143
|
+
delivery = [];
|
|
141
144
|
constructor(args = {}) {
|
|
142
145
|
Object.assign(this, args);
|
|
143
146
|
}
|
|
144
147
|
};
|
|
145
|
-
|
|
146
|
-
Notification("
|
|
148
|
+
OrderPlacedEvent = __decorate([
|
|
149
|
+
Notification("order_placed"),
|
|
147
150
|
__metadata("design:paramtypes", [Object])
|
|
148
|
-
],
|
|
149
|
-
export {
|
|
151
|
+
], OrderPlacedEvent);
|
|
152
|
+
export { OrderPlacedEvent };
|