@contractspec/example.marketplace 1.56.1 → 1.58.0
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/browser/docs/index.js +103 -0
- package/dist/browser/docs/marketplace.docblock.js +103 -0
- package/dist/browser/entities/index.js +721 -0
- package/dist/browser/entities/order.js +167 -0
- package/dist/browser/entities/payout.js +142 -0
- package/dist/browser/entities/product.js +152 -0
- package/dist/browser/entities/review.js +129 -0
- package/dist/browser/entities/store.js +97 -0
- package/dist/browser/example.js +42 -0
- package/dist/browser/handlers/index.js +303 -0
- package/dist/browser/handlers/marketplace.handlers.js +303 -0
- package/dist/browser/index.js +2016 -0
- package/dist/browser/marketplace.capability.js +40 -0
- package/dist/browser/marketplace.feature.js +137 -0
- package/dist/browser/order/index.js +307 -0
- package/dist/browser/order/order.enum.js +17 -0
- package/dist/browser/order/order.event.js +131 -0
- package/dist/browser/order/order.operations.js +172 -0
- package/dist/browser/order/order.presentation.js +153 -0
- package/dist/browser/order/order.schema.js +79 -0
- package/dist/browser/payout/index.js +152 -0
- package/dist/browser/payout/payout.enum.js +12 -0
- package/dist/browser/payout/payout.event.js +55 -0
- package/dist/browser/payout/payout.operations.js +94 -0
- package/dist/browser/payout/payout.presentation.js +111 -0
- package/dist/browser/payout/payout.schema.js +61 -0
- package/dist/browser/product/index.js +249 -0
- package/dist/browser/product/product.enum.js +13 -0
- package/dist/browser/product/product.event.js +74 -0
- package/dist/browser/product/product.operations.js +171 -0
- package/dist/browser/product/product.presentation.js +158 -0
- package/dist/browser/product/product.schema.js +84 -0
- package/dist/browser/review/index.js +206 -0
- package/dist/browser/review/review.enum.js +11 -0
- package/dist/browser/review/review.event.js +50 -0
- package/dist/browser/review/review.operations.js +152 -0
- package/dist/browser/review/review.presentation.js +123 -0
- package/dist/browser/review/review.schema.js +74 -0
- package/dist/browser/seeders/index.js +12 -0
- package/dist/browser/store/index.js +142 -0
- package/dist/browser/store/store.enum.js +11 -0
- package/dist/browser/store/store.event.js +52 -0
- package/dist/browser/store/store.operations.js +88 -0
- package/dist/browser/store/store.presentation.js +94 -0
- package/dist/browser/store/store.schema.js +43 -0
- package/dist/browser/tests/operations.test-spec.js +139 -0
- package/dist/browser/ui/MarketplaceDashboard.js +418 -0
- package/dist/browser/ui/hooks/index.js +59 -0
- package/dist/browser/ui/hooks/useMarketplaceData.js +56 -0
- package/dist/browser/ui/index.js +668 -0
- package/dist/browser/ui/renderers/index.js +248 -0
- package/dist/browser/ui/renderers/marketplace.markdown.js +248 -0
- package/dist/docs/index.d.ts +2 -1
- package/dist/docs/index.d.ts.map +1 -0
- package/dist/docs/index.js +104 -1
- package/dist/docs/marketplace.docblock.d.ts +2 -1
- package/dist/docs/marketplace.docblock.d.ts.map +1 -0
- package/dist/docs/marketplace.docblock.js +46 -57
- package/dist/entities/index.d.ts +302 -307
- package/dist/entities/index.d.ts.map +1 -1
- package/dist/entities/index.js +719 -43
- package/dist/entities/order.d.ts +77 -82
- package/dist/entities/order.d.ts.map +1 -1
- package/dist/entities/order.js +162 -167
- package/dist/entities/payout.d.ts +64 -69
- package/dist/entities/payout.d.ts.map +1 -1
- package/dist/entities/payout.js +137 -156
- package/dist/entities/product.d.ts +69 -74
- package/dist/entities/product.d.ts.map +1 -1
- package/dist/entities/product.js +148 -156
- package/dist/entities/review.d.ts +55 -60
- package/dist/entities/review.d.ts.map +1 -1
- package/dist/entities/review.js +124 -146
- package/dist/entities/store.d.ts +40 -45
- package/dist/entities/store.d.ts.map +1 -1
- package/dist/entities/store.js +94 -106
- package/dist/example.d.ts +2 -6
- package/dist/example.d.ts.map +1 -1
- package/dist/example.js +40 -55
- package/dist/handlers/index.d.ts +2 -2
- package/dist/handlers/index.d.ts.map +1 -0
- package/dist/handlers/index.js +304 -3
- package/dist/handlers/marketplace.handlers.d.ts +138 -138
- package/dist/handlers/marketplace.handlers.d.ts.map +1 -1
- package/dist/handlers/marketplace.handlers.js +284 -309
- package/dist/index.d.ts +13 -31
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2017 -32
- package/dist/marketplace.capability.d.ts +3 -8
- package/dist/marketplace.capability.d.ts.map +1 -1
- package/dist/marketplace.capability.js +41 -34
- package/dist/marketplace.feature.d.ts +1 -7
- package/dist/marketplace.feature.d.ts.map +1 -1
- package/dist/marketplace.feature.js +136 -313
- package/dist/node/docs/index.js +103 -0
- package/dist/node/docs/marketplace.docblock.js +103 -0
- package/dist/node/entities/index.js +721 -0
- package/dist/node/entities/order.js +167 -0
- package/dist/node/entities/payout.js +142 -0
- package/dist/node/entities/product.js +152 -0
- package/dist/node/entities/review.js +129 -0
- package/dist/node/entities/store.js +97 -0
- package/dist/node/example.js +42 -0
- package/dist/node/handlers/index.js +303 -0
- package/dist/node/handlers/marketplace.handlers.js +303 -0
- package/dist/node/index.js +2016 -0
- package/dist/node/marketplace.capability.js +40 -0
- package/dist/node/marketplace.feature.js +137 -0
- package/dist/node/order/index.js +307 -0
- package/dist/node/order/order.enum.js +17 -0
- package/dist/node/order/order.event.js +131 -0
- package/dist/node/order/order.operations.js +172 -0
- package/dist/node/order/order.presentation.js +153 -0
- package/dist/node/order/order.schema.js +79 -0
- package/dist/node/payout/index.js +152 -0
- package/dist/node/payout/payout.enum.js +12 -0
- package/dist/node/payout/payout.event.js +55 -0
- package/dist/node/payout/payout.operations.js +94 -0
- package/dist/node/payout/payout.presentation.js +111 -0
- package/dist/node/payout/payout.schema.js +61 -0
- package/dist/node/product/index.js +249 -0
- package/dist/node/product/product.enum.js +13 -0
- package/dist/node/product/product.event.js +74 -0
- package/dist/node/product/product.operations.js +171 -0
- package/dist/node/product/product.presentation.js +158 -0
- package/dist/node/product/product.schema.js +84 -0
- package/dist/node/review/index.js +206 -0
- package/dist/node/review/review.enum.js +11 -0
- package/dist/node/review/review.event.js +50 -0
- package/dist/node/review/review.operations.js +152 -0
- package/dist/node/review/review.presentation.js +123 -0
- package/dist/node/review/review.schema.js +74 -0
- package/dist/node/seeders/index.js +12 -0
- package/dist/node/store/index.js +142 -0
- package/dist/node/store/store.enum.js +11 -0
- package/dist/node/store/store.event.js +52 -0
- package/dist/node/store/store.operations.js +88 -0
- package/dist/node/store/store.presentation.js +94 -0
- package/dist/node/store/store.schema.js +43 -0
- package/dist/node/tests/operations.test-spec.js +139 -0
- package/dist/node/ui/MarketplaceDashboard.js +418 -0
- package/dist/node/ui/hooks/index.js +59 -0
- package/dist/node/ui/hooks/useMarketplaceData.js +56 -0
- package/dist/node/ui/index.js +668 -0
- package/dist/node/ui/renderers/index.js +248 -0
- package/dist/node/ui/renderers/marketplace.markdown.js +248 -0
- package/dist/order/index.d.ts +8 -5
- package/dist/order/index.d.ts.map +1 -0
- package/dist/order/index.js +307 -5
- package/dist/order/order.enum.d.ts +1 -6
- package/dist/order/order.enum.d.ts.map +1 -1
- package/dist/order/order.enum.js +16 -20
- package/dist/order/order.event.d.ts +133 -139
- package/dist/order/order.event.d.ts.map +1 -1
- package/dist/order/order.event.js +121 -205
- package/dist/order/order.operations.d.ts +291 -297
- package/dist/order/order.operations.d.ts.map +1 -1
- package/dist/order/order.operations.js +169 -115
- package/dist/order/order.presentation.d.ts +3 -8
- package/dist/order/order.presentation.d.ts.map +1 -1
- package/dist/order/order.presentation.js +149 -81
- package/dist/order/order.schema.d.ts +143 -148
- package/dist/order/order.schema.d.ts.map +1 -1
- package/dist/order/order.schema.js +75 -150
- package/dist/payout/index.d.ts +8 -5
- package/dist/payout/index.d.ts.map +1 -0
- package/dist/payout/index.js +152 -5
- package/dist/payout/payout.enum.d.ts +1 -6
- package/dist/payout/payout.enum.d.ts.map +1 -1
- package/dist/payout/payout.enum.js +11 -15
- package/dist/payout/payout.event.d.ts +54 -60
- package/dist/payout/payout.event.d.ts.map +1 -1
- package/dist/payout/payout.event.js +51 -87
- package/dist/payout/payout.operations.d.ts +82 -88
- package/dist/payout/payout.operations.d.ts.map +1 -1
- package/dist/payout/payout.operations.js +92 -50
- package/dist/payout/payout.presentation.d.ts +2 -7
- package/dist/payout/payout.presentation.d.ts.map +1 -1
- package/dist/payout/payout.presentation.js +108 -56
- package/dist/payout/payout.schema.d.ts +139 -144
- package/dist/payout/payout.schema.d.ts.map +1 -1
- package/dist/payout/payout.schema.js +58 -112
- package/dist/product/index.d.ts +8 -5
- package/dist/product/index.d.ts.map +1 -0
- package/dist/product/index.js +249 -5
- package/dist/product/product.enum.d.ts +1 -6
- package/dist/product/product.enum.d.ts.map +1 -1
- package/dist/product/product.enum.js +12 -16
- package/dist/product/product.event.d.ts +63 -69
- package/dist/product/product.event.d.ts.map +1 -1
- package/dist/product/product.event.js +68 -113
- package/dist/product/product.operations.d.ts +225 -231
- package/dist/product/product.operations.d.ts.map +1 -1
- package/dist/product/product.operations.js +168 -104
- package/dist/product/product.presentation.d.ts +3 -8
- package/dist/product/product.presentation.d.ts.map +1 -1
- package/dist/product/product.presentation.js +154 -81
- package/dist/product/product.schema.d.ts +196 -201
- package/dist/product/product.schema.d.ts.map +1 -1
- package/dist/product/product.schema.js +80 -171
- package/dist/review/index.d.ts +8 -5
- package/dist/review/index.d.ts.map +1 -0
- package/dist/review/index.js +206 -5
- package/dist/review/review.enum.d.ts +1 -6
- package/dist/review/review.enum.d.ts.map +1 -1
- package/dist/review/review.enum.js +10 -14
- package/dist/review/review.event.d.ts +46 -52
- package/dist/review/review.event.d.ts.map +1 -1
- package/dist/review/review.event.js +46 -79
- package/dist/review/review.operations.d.ts +190 -196
- package/dist/review/review.operations.d.ts.map +1 -1
- package/dist/review/review.operations.js +149 -102
- package/dist/review/review.presentation.d.ts +2 -7
- package/dist/review/review.presentation.d.ts.map +1 -1
- package/dist/review/review.presentation.js +120 -56
- package/dist/review/review.schema.d.ts +164 -169
- package/dist/review/review.schema.d.ts.map +1 -1
- package/dist/review/review.schema.js +70 -151
- package/dist/seeders/index.d.ts +4 -8
- package/dist/seeders/index.d.ts.map +1 -1
- package/dist/seeders/index.js +11 -16
- package/dist/store/index.d.ts +8 -5
- package/dist/store/index.d.ts.map +1 -0
- package/dist/store/index.js +142 -5
- package/dist/store/store.enum.d.ts +1 -6
- package/dist/store/store.enum.d.ts.map +1 -1
- package/dist/store/store.enum.js +10 -14
- package/dist/store/store.event.d.ts +42 -48
- package/dist/store/store.event.d.ts.map +1 -1
- package/dist/store/store.event.js +48 -75
- package/dist/store/store.operations.d.ts +98 -104
- package/dist/store/store.operations.d.ts.map +1 -1
- package/dist/store/store.operations.js +86 -58
- package/dist/store/store.presentation.d.ts +2 -7
- package/dist/store/store.presentation.d.ts.map +1 -1
- package/dist/store/store.presentation.js +91 -56
- package/dist/store/store.schema.d.ts +70 -75
- package/dist/store/store.schema.d.ts.map +1 -1
- package/dist/store/store.schema.js +41 -90
- package/dist/tests/operations.test-spec.d.ts +5 -10
- package/dist/tests/operations.test-spec.d.ts.map +1 -1
- package/dist/tests/operations.test-spec.js +134 -146
- package/dist/ui/MarketplaceDashboard.d.ts +1 -6
- package/dist/ui/MarketplaceDashboard.d.ts.map +1 -1
- package/dist/ui/MarketplaceDashboard.js +413 -313
- package/dist/ui/hooks/index.d.ts +2 -2
- package/dist/ui/hooks/index.d.ts.map +1 -0
- package/dist/ui/hooks/index.js +59 -4
- package/dist/ui/hooks/useMarketplaceData.d.ts +16 -20
- package/dist/ui/hooks/useMarketplaceData.d.ts.map +1 -1
- package/dist/ui/hooks/useMarketplaceData.js +53 -60
- package/dist/ui/index.d.ts +7 -6
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/index.js +668 -5
- package/dist/ui/renderers/index.d.ts +2 -2
- package/dist/ui/renderers/index.d.ts.map +1 -0
- package/dist/ui/renderers/index.js +249 -3
- package/dist/ui/renderers/marketplace.markdown.d.ts +13 -15
- package/dist/ui/renderers/marketplace.markdown.d.ts.map +1 -1
- package/dist/ui/renderers/marketplace.markdown.js +241 -236
- package/package.json +529 -110
- package/dist/docs/marketplace.docblock.js.map +0 -1
- package/dist/entities/index.js.map +0 -1
- package/dist/entities/order.js.map +0 -1
- package/dist/entities/payout.js.map +0 -1
- package/dist/entities/product.js.map +0 -1
- package/dist/entities/review.js.map +0 -1
- package/dist/entities/store.js.map +0 -1
- package/dist/example.js.map +0 -1
- package/dist/handlers/marketplace.handlers.js.map +0 -1
- package/dist/marketplace.capability.js.map +0 -1
- package/dist/marketplace.feature.js.map +0 -1
- package/dist/order/order.enum.js.map +0 -1
- package/dist/order/order.event.js.map +0 -1
- package/dist/order/order.operations.js.map +0 -1
- package/dist/order/order.presentation.js.map +0 -1
- package/dist/order/order.schema.js.map +0 -1
- package/dist/payout/payout.enum.js.map +0 -1
- package/dist/payout/payout.event.js.map +0 -1
- package/dist/payout/payout.operations.js.map +0 -1
- package/dist/payout/payout.presentation.js.map +0 -1
- package/dist/payout/payout.schema.js.map +0 -1
- package/dist/product/product.enum.js.map +0 -1
- package/dist/product/product.event.js.map +0 -1
- package/dist/product/product.operations.js.map +0 -1
- package/dist/product/product.presentation.js.map +0 -1
- package/dist/product/product.schema.js.map +0 -1
- package/dist/review/review.enum.js.map +0 -1
- package/dist/review/review.event.js.map +0 -1
- package/dist/review/review.operations.js.map +0 -1
- package/dist/review/review.presentation.js.map +0 -1
- package/dist/review/review.schema.js.map +0 -1
- package/dist/seeders/index.js.map +0 -1
- package/dist/store/store.enum.js.map +0 -1
- package/dist/store/store.event.js.map +0 -1
- package/dist/store/store.operations.js.map +0 -1
- package/dist/store/store.presentation.js.map +0 -1
- package/dist/store/store.schema.js.map +0 -1
- package/dist/tests/operations.test-spec.js.map +0 -1
- package/dist/ui/MarketplaceDashboard.js.map +0 -1
- package/dist/ui/hooks/useMarketplaceData.js.map +0 -1
- package/dist/ui/renderers/marketplace.markdown.js.map +0 -1
package/dist/order/index.js
CHANGED
|
@@ -1,6 +1,308 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
// @bun
|
|
2
|
+
// src/order/order.enum.ts
|
|
3
|
+
import { defineEnum } from "@contractspec/lib.schema";
|
|
4
|
+
var OrderStatusEnum = defineEnum("OrderStatus", [
|
|
5
|
+
"PENDING",
|
|
6
|
+
"PAID",
|
|
7
|
+
"PROCESSING",
|
|
8
|
+
"SHIPPED",
|
|
9
|
+
"DELIVERED",
|
|
10
|
+
"COMPLETED",
|
|
11
|
+
"CANCELLED",
|
|
12
|
+
"REFUNDED",
|
|
13
|
+
"PARTIALLY_REFUNDED",
|
|
14
|
+
"DISPUTED"
|
|
15
|
+
]);
|
|
5
16
|
|
|
6
|
-
|
|
17
|
+
// src/order/order.schema.ts
|
|
18
|
+
import { defineSchemaModel, ScalarTypeEnum } from "@contractspec/lib.schema";
|
|
19
|
+
var OrderItemModel = defineSchemaModel({
|
|
20
|
+
name: "OrderItemModel",
|
|
21
|
+
fields: {
|
|
22
|
+
id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
23
|
+
productId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
24
|
+
productName: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
25
|
+
unitPrice: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },
|
|
26
|
+
quantity: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },
|
|
27
|
+
subtotal: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false }
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
var OrderModel = defineSchemaModel({
|
|
31
|
+
name: "OrderModel",
|
|
32
|
+
description: "An order",
|
|
33
|
+
fields: {
|
|
34
|
+
id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
35
|
+
orderNumber: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
36
|
+
buyerId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
37
|
+
storeId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
38
|
+
status: { type: OrderStatusEnum, isOptional: false },
|
|
39
|
+
subtotal: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },
|
|
40
|
+
shippingTotal: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },
|
|
41
|
+
taxTotal: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },
|
|
42
|
+
total: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },
|
|
43
|
+
currency: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
44
|
+
items: { type: OrderItemModel, isArray: true, isOptional: true },
|
|
45
|
+
createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false }
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
var CreateOrderInputModel = defineSchemaModel({
|
|
49
|
+
name: "CreateOrderInput",
|
|
50
|
+
fields: {
|
|
51
|
+
storeId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
52
|
+
items: {
|
|
53
|
+
type: ScalarTypeEnum.JSON(),
|
|
54
|
+
isOptional: false,
|
|
55
|
+
description: "Array of {productId, variantId?, quantity}"
|
|
56
|
+
},
|
|
57
|
+
shippingAddress: { type: ScalarTypeEnum.JSON(), isOptional: true },
|
|
58
|
+
billingAddress: { type: ScalarTypeEnum.JSON(), isOptional: true },
|
|
59
|
+
buyerNote: { type: ScalarTypeEnum.String_unsecure(), isOptional: true }
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
var UpdateOrderStatusInputModel = defineSchemaModel({
|
|
63
|
+
name: "UpdateOrderStatusInput",
|
|
64
|
+
fields: {
|
|
65
|
+
orderId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
66
|
+
status: { type: OrderStatusEnum, isOptional: false },
|
|
67
|
+
trackingNumber: {
|
|
68
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
69
|
+
isOptional: true
|
|
70
|
+
},
|
|
71
|
+
trackingUrl: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
72
|
+
note: { type: ScalarTypeEnum.String_unsecure(), isOptional: true }
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
// src/order/order.operations.ts
|
|
77
|
+
import { defineCommand } from "@contractspec/lib.contracts/operations";
|
|
78
|
+
var OWNERS = ["@example.marketplace"];
|
|
79
|
+
var CreateOrderContract = defineCommand({
|
|
80
|
+
meta: {
|
|
81
|
+
key: "marketplace.order.create",
|
|
82
|
+
version: "1.0.0",
|
|
83
|
+
stability: "stable",
|
|
84
|
+
owners: [...OWNERS],
|
|
85
|
+
tags: ["marketplace", "order", "create"],
|
|
86
|
+
description: "Create a new order.",
|
|
87
|
+
goal: "Allow buyers to purchase products.",
|
|
88
|
+
context: "Checkout flow."
|
|
89
|
+
},
|
|
90
|
+
io: { input: CreateOrderInputModel, output: OrderModel },
|
|
91
|
+
policy: { auth: "user" },
|
|
92
|
+
sideEffects: {
|
|
93
|
+
emits: [
|
|
94
|
+
{
|
|
95
|
+
key: "marketplace.order.created",
|
|
96
|
+
version: "1.0.0",
|
|
97
|
+
when: "Order is created",
|
|
98
|
+
payload: OrderModel
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
audit: ["marketplace.order.created"]
|
|
102
|
+
},
|
|
103
|
+
acceptance: {
|
|
104
|
+
scenarios: [
|
|
105
|
+
{
|
|
106
|
+
key: "create-order-happy-path",
|
|
107
|
+
given: ["User is authenticated"],
|
|
108
|
+
when: ["User creates order with valid items"],
|
|
109
|
+
then: ["Order is created", "OrderCreated event is emitted"]
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
examples: [
|
|
113
|
+
{
|
|
114
|
+
key: "create-basic-order",
|
|
115
|
+
input: {
|
|
116
|
+
storeId: "store-123",
|
|
117
|
+
items: [{ productId: "prod-456", quantity: 1, unitPrice: 100 }]
|
|
118
|
+
},
|
|
119
|
+
output: { id: "order-789", status: "pending", total: 100 }
|
|
120
|
+
}
|
|
121
|
+
]
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
var UpdateOrderStatusContract = defineCommand({
|
|
125
|
+
meta: {
|
|
126
|
+
key: "marketplace.order.updateStatus",
|
|
127
|
+
version: "1.0.0",
|
|
128
|
+
stability: "stable",
|
|
129
|
+
owners: [...OWNERS],
|
|
130
|
+
tags: ["marketplace", "order", "status"],
|
|
131
|
+
description: "Update order status.",
|
|
132
|
+
goal: "Track order fulfillment.",
|
|
133
|
+
context: "Order management."
|
|
134
|
+
},
|
|
135
|
+
io: { input: UpdateOrderStatusInputModel, output: OrderModel },
|
|
136
|
+
policy: { auth: "user" },
|
|
137
|
+
sideEffects: {
|
|
138
|
+
emits: [
|
|
139
|
+
{
|
|
140
|
+
key: "marketplace.order.statusUpdated",
|
|
141
|
+
version: "1.0.0",
|
|
142
|
+
when: "Status changes",
|
|
143
|
+
payload: OrderModel
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
audit: ["marketplace.order.statusUpdated"]
|
|
147
|
+
},
|
|
148
|
+
acceptance: {
|
|
149
|
+
scenarios: [
|
|
150
|
+
{
|
|
151
|
+
key: "update-status-happy-path",
|
|
152
|
+
given: ["Order exists"],
|
|
153
|
+
when: ["Seller updates order status"],
|
|
154
|
+
then: ["Status is updated", "OrderStatusUpdated event is emitted"]
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
examples: [
|
|
158
|
+
{
|
|
159
|
+
key: "mark-shipped",
|
|
160
|
+
input: {
|
|
161
|
+
orderId: "order-789",
|
|
162
|
+
status: "shipped",
|
|
163
|
+
trackingNumber: "TRACK123"
|
|
164
|
+
},
|
|
165
|
+
output: { id: "order-789", status: "shipped" }
|
|
166
|
+
}
|
|
167
|
+
]
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
|
|
171
|
+
// src/order/order.event.ts
|
|
172
|
+
import { ScalarTypeEnum as ScalarTypeEnum2, defineSchemaModel as defineSchemaModel2 } from "@contractspec/lib.schema";
|
|
173
|
+
import { defineEvent } from "@contractspec/lib.contracts";
|
|
174
|
+
var OrderCreatedPayload = defineSchemaModel2({
|
|
175
|
+
name: "OrderCreatedEventPayload",
|
|
176
|
+
fields: {
|
|
177
|
+
orderId: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
|
|
178
|
+
orderNumber: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
|
|
179
|
+
buyerId: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
|
|
180
|
+
storeId: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
|
|
181
|
+
total: { type: ScalarTypeEnum2.Float_unsecure(), isOptional: false },
|
|
182
|
+
currency: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
|
|
183
|
+
itemCount: { type: ScalarTypeEnum2.Int_unsecure(), isOptional: false },
|
|
184
|
+
timestamp: { type: ScalarTypeEnum2.DateTime(), isOptional: false }
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
var OrderPaidPayload = defineSchemaModel2({
|
|
188
|
+
name: "OrderPaidEventPayload",
|
|
189
|
+
fields: {
|
|
190
|
+
orderId: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
|
|
191
|
+
orderNumber: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
|
|
192
|
+
total: { type: ScalarTypeEnum2.Float_unsecure(), isOptional: false },
|
|
193
|
+
paymentMethod: {
|
|
194
|
+
type: ScalarTypeEnum2.String_unsecure(),
|
|
195
|
+
isOptional: false
|
|
196
|
+
},
|
|
197
|
+
timestamp: { type: ScalarTypeEnum2.DateTime(), isOptional: false }
|
|
198
|
+
}
|
|
199
|
+
});
|
|
200
|
+
var OrderStatusUpdatedPayload = defineSchemaModel2({
|
|
201
|
+
name: "OrderStatusUpdatedEventPayload",
|
|
202
|
+
fields: {
|
|
203
|
+
orderId: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
|
|
204
|
+
orderNumber: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
|
|
205
|
+
previousStatus: {
|
|
206
|
+
type: ScalarTypeEnum2.String_unsecure(),
|
|
207
|
+
isOptional: false
|
|
208
|
+
},
|
|
209
|
+
newStatus: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
|
|
210
|
+
updatedBy: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
|
|
211
|
+
timestamp: { type: ScalarTypeEnum2.DateTime(), isOptional: false }
|
|
212
|
+
}
|
|
213
|
+
});
|
|
214
|
+
var OrderShippedPayload = defineSchemaModel2({
|
|
215
|
+
name: "OrderShippedEventPayload",
|
|
216
|
+
fields: {
|
|
217
|
+
orderId: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
|
|
218
|
+
orderNumber: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
|
|
219
|
+
trackingNumber: {
|
|
220
|
+
type: ScalarTypeEnum2.String_unsecure(),
|
|
221
|
+
isOptional: true
|
|
222
|
+
},
|
|
223
|
+
trackingUrl: { type: ScalarTypeEnum2.String_unsecure(), isOptional: true },
|
|
224
|
+
carrier: { type: ScalarTypeEnum2.String_unsecure(), isOptional: true },
|
|
225
|
+
timestamp: { type: ScalarTypeEnum2.DateTime(), isOptional: false }
|
|
226
|
+
}
|
|
227
|
+
});
|
|
228
|
+
var OrderCompletedPayload = defineSchemaModel2({
|
|
229
|
+
name: "OrderCompletedEventPayload",
|
|
230
|
+
fields: {
|
|
231
|
+
orderId: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
|
|
232
|
+
orderNumber: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
|
|
233
|
+
buyerId: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
|
|
234
|
+
storeId: { type: ScalarTypeEnum2.String_unsecure(), isOptional: false },
|
|
235
|
+
total: { type: ScalarTypeEnum2.Float_unsecure(), isOptional: false },
|
|
236
|
+
sellerPayout: { type: ScalarTypeEnum2.Float_unsecure(), isOptional: false },
|
|
237
|
+
timestamp: { type: ScalarTypeEnum2.DateTime(), isOptional: false }
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
var OrderCreatedEvent = defineEvent({
|
|
241
|
+
meta: {
|
|
242
|
+
key: "marketplace.order.created",
|
|
243
|
+
version: "1.0.0",
|
|
244
|
+
description: "A new order has been created.",
|
|
245
|
+
stability: "experimental",
|
|
246
|
+
owners: ["@marketplace-team"],
|
|
247
|
+
tags: ["marketplace", "order"]
|
|
248
|
+
},
|
|
249
|
+
payload: OrderCreatedPayload
|
|
250
|
+
});
|
|
251
|
+
var OrderPaidEvent = defineEvent({
|
|
252
|
+
meta: {
|
|
253
|
+
key: "marketplace.order.paid",
|
|
254
|
+
version: "1.0.0",
|
|
255
|
+
description: "An order has been paid.",
|
|
256
|
+
stability: "experimental",
|
|
257
|
+
owners: ["@marketplace-team"],
|
|
258
|
+
tags: ["marketplace", "order"]
|
|
259
|
+
},
|
|
260
|
+
payload: OrderPaidPayload
|
|
261
|
+
});
|
|
262
|
+
var OrderStatusUpdatedEvent = defineEvent({
|
|
263
|
+
meta: {
|
|
264
|
+
key: "marketplace.order.statusUpdated",
|
|
265
|
+
version: "1.0.0",
|
|
266
|
+
description: "An order status has been updated.",
|
|
267
|
+
stability: "experimental",
|
|
268
|
+
owners: ["@marketplace-team"],
|
|
269
|
+
tags: ["marketplace", "order"]
|
|
270
|
+
},
|
|
271
|
+
payload: OrderStatusUpdatedPayload
|
|
272
|
+
});
|
|
273
|
+
var OrderShippedEvent = defineEvent({
|
|
274
|
+
meta: {
|
|
275
|
+
key: "marketplace.order.shipped",
|
|
276
|
+
version: "1.0.0",
|
|
277
|
+
description: "An order has been shipped.",
|
|
278
|
+
stability: "experimental",
|
|
279
|
+
owners: ["@marketplace-team"],
|
|
280
|
+
tags: ["marketplace", "order"]
|
|
281
|
+
},
|
|
282
|
+
payload: OrderShippedPayload
|
|
283
|
+
});
|
|
284
|
+
var OrderCompletedEvent = defineEvent({
|
|
285
|
+
meta: {
|
|
286
|
+
key: "marketplace.order.completed",
|
|
287
|
+
version: "1.0.0",
|
|
288
|
+
description: "An order has been completed.",
|
|
289
|
+
stability: "experimental",
|
|
290
|
+
owners: ["@marketplace-team"],
|
|
291
|
+
tags: ["marketplace", "order"]
|
|
292
|
+
},
|
|
293
|
+
payload: OrderCompletedPayload
|
|
294
|
+
});
|
|
295
|
+
export {
|
|
296
|
+
UpdateOrderStatusInputModel,
|
|
297
|
+
UpdateOrderStatusContract,
|
|
298
|
+
OrderStatusUpdatedEvent,
|
|
299
|
+
OrderStatusEnum,
|
|
300
|
+
OrderShippedEvent,
|
|
301
|
+
OrderPaidEvent,
|
|
302
|
+
OrderModel,
|
|
303
|
+
OrderItemModel,
|
|
304
|
+
OrderCreatedEvent,
|
|
305
|
+
OrderCompletedEvent,
|
|
306
|
+
CreateOrderInputModel,
|
|
307
|
+
CreateOrderContract
|
|
308
|
+
};
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import * as _contractspec_lib_schema599 from "@contractspec/lib.schema";
|
|
2
|
-
|
|
3
|
-
//#region src/order/order.enum.d.ts
|
|
4
1
|
/**
|
|
5
2
|
* Order status enum.
|
|
6
3
|
*/
|
|
7
|
-
declare const OrderStatusEnum:
|
|
8
|
-
//#endregion
|
|
9
|
-
export { OrderStatusEnum };
|
|
4
|
+
export declare const OrderStatusEnum: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string, string, string]>;
|
|
10
5
|
//# sourceMappingURL=order.enum.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order.enum.d.ts","
|
|
1
|
+
{"version":3,"file":"order.enum.d.ts","sourceRoot":"","sources":["../../src/order/order.enum.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,eAAe,+HAW1B,CAAC"}
|
package/dist/order/order.enum.js
CHANGED
|
@@ -1,22 +1,18 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
// src/order/order.enum.ts
|
|
1
3
|
import { defineEnum } from "@contractspec/lib.schema";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"COMPLETED",
|
|
14
|
-
"CANCELLED",
|
|
15
|
-
"REFUNDED",
|
|
16
|
-
"PARTIALLY_REFUNDED",
|
|
17
|
-
"DISPUTED"
|
|
4
|
+
var OrderStatusEnum = defineEnum("OrderStatus", [
|
|
5
|
+
"PENDING",
|
|
6
|
+
"PAID",
|
|
7
|
+
"PROCESSING",
|
|
8
|
+
"SHIPPED",
|
|
9
|
+
"DELIVERED",
|
|
10
|
+
"COMPLETED",
|
|
11
|
+
"CANCELLED",
|
|
12
|
+
"REFUNDED",
|
|
13
|
+
"PARTIALLY_REFUNDED",
|
|
14
|
+
"DISPUTED"
|
|
18
15
|
]);
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
//# sourceMappingURL=order.enum.js.map
|
|
16
|
+
export {
|
|
17
|
+
OrderStatusEnum
|
|
18
|
+
};
|
|
@@ -1,145 +1,139 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
timestamp: {
|
|
35
|
-
type: _contractspec_lib_schema600.FieldType<Date, string>;
|
|
36
|
-
isOptional: false;
|
|
37
|
-
};
|
|
1
|
+
export declare const OrderCreatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
2
|
+
orderId: {
|
|
3
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
4
|
+
isOptional: false;
|
|
5
|
+
};
|
|
6
|
+
orderNumber: {
|
|
7
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
8
|
+
isOptional: false;
|
|
9
|
+
};
|
|
10
|
+
buyerId: {
|
|
11
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
12
|
+
isOptional: false;
|
|
13
|
+
};
|
|
14
|
+
storeId: {
|
|
15
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
16
|
+
isOptional: false;
|
|
17
|
+
};
|
|
18
|
+
total: {
|
|
19
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
20
|
+
isOptional: false;
|
|
21
|
+
};
|
|
22
|
+
currency: {
|
|
23
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
24
|
+
isOptional: false;
|
|
25
|
+
};
|
|
26
|
+
itemCount: {
|
|
27
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
28
|
+
isOptional: false;
|
|
29
|
+
};
|
|
30
|
+
timestamp: {
|
|
31
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
32
|
+
isOptional: false;
|
|
33
|
+
};
|
|
38
34
|
}>>;
|
|
39
|
-
declare const OrderPaidEvent:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
35
|
+
export declare const OrderPaidEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
36
|
+
orderId: {
|
|
37
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
38
|
+
isOptional: false;
|
|
39
|
+
};
|
|
40
|
+
orderNumber: {
|
|
41
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
42
|
+
isOptional: false;
|
|
43
|
+
};
|
|
44
|
+
total: {
|
|
45
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
46
|
+
isOptional: false;
|
|
47
|
+
};
|
|
48
|
+
paymentMethod: {
|
|
49
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
50
|
+
isOptional: false;
|
|
51
|
+
};
|
|
52
|
+
timestamp: {
|
|
53
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
54
|
+
isOptional: false;
|
|
55
|
+
};
|
|
60
56
|
}>>;
|
|
61
|
-
declare const OrderStatusUpdatedEvent:
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
57
|
+
export declare const OrderStatusUpdatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
58
|
+
orderId: {
|
|
59
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
60
|
+
isOptional: false;
|
|
61
|
+
};
|
|
62
|
+
orderNumber: {
|
|
63
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
64
|
+
isOptional: false;
|
|
65
|
+
};
|
|
66
|
+
previousStatus: {
|
|
67
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
68
|
+
isOptional: false;
|
|
69
|
+
};
|
|
70
|
+
newStatus: {
|
|
71
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
72
|
+
isOptional: false;
|
|
73
|
+
};
|
|
74
|
+
updatedBy: {
|
|
75
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
76
|
+
isOptional: false;
|
|
77
|
+
};
|
|
78
|
+
timestamp: {
|
|
79
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
80
|
+
isOptional: false;
|
|
81
|
+
};
|
|
86
82
|
}>>;
|
|
87
|
-
declare const OrderShippedEvent:
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
83
|
+
export declare const OrderShippedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
84
|
+
orderId: {
|
|
85
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
86
|
+
isOptional: false;
|
|
87
|
+
};
|
|
88
|
+
orderNumber: {
|
|
89
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
90
|
+
isOptional: false;
|
|
91
|
+
};
|
|
92
|
+
trackingNumber: {
|
|
93
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
94
|
+
isOptional: true;
|
|
95
|
+
};
|
|
96
|
+
trackingUrl: {
|
|
97
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
98
|
+
isOptional: true;
|
|
99
|
+
};
|
|
100
|
+
carrier: {
|
|
101
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
102
|
+
isOptional: true;
|
|
103
|
+
};
|
|
104
|
+
timestamp: {
|
|
105
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
106
|
+
isOptional: false;
|
|
107
|
+
};
|
|
112
108
|
}>>;
|
|
113
|
-
declare const OrderCompletedEvent:
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
109
|
+
export declare const OrderCompletedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
110
|
+
orderId: {
|
|
111
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
112
|
+
isOptional: false;
|
|
113
|
+
};
|
|
114
|
+
orderNumber: {
|
|
115
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
116
|
+
isOptional: false;
|
|
117
|
+
};
|
|
118
|
+
buyerId: {
|
|
119
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
120
|
+
isOptional: false;
|
|
121
|
+
};
|
|
122
|
+
storeId: {
|
|
123
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
124
|
+
isOptional: false;
|
|
125
|
+
};
|
|
126
|
+
total: {
|
|
127
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
128
|
+
isOptional: false;
|
|
129
|
+
};
|
|
130
|
+
sellerPayout: {
|
|
131
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
132
|
+
isOptional: false;
|
|
133
|
+
};
|
|
134
|
+
timestamp: {
|
|
135
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
136
|
+
isOptional: false;
|
|
137
|
+
};
|
|
142
138
|
}>>;
|
|
143
|
-
//#endregion
|
|
144
|
-
export { OrderCompletedEvent, OrderCreatedEvent, OrderPaidEvent, OrderShippedEvent, OrderStatusUpdatedEvent };
|
|
145
139
|
//# sourceMappingURL=order.event.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order.event.d.ts","
|
|
1
|
+
{"version":3,"file":"order.event.d.ts","sourceRoot":"","sources":["../../src/order/order.event.ts"],"names":[],"mappings":"AA0EA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAU5B,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;GAUzB,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;GAUlC,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;GAU5B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAU9B,CAAC"}
|