@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
|
@@ -1,368 +1,362 @@
|
|
|
1
|
-
import * as _contractspec_lib_contracts9 from "@contractspec/lib.contracts";
|
|
2
|
-
import * as _contractspec_lib_schema637 from "@contractspec/lib.schema";
|
|
3
|
-
|
|
4
|
-
//#region src/order/order.operations.d.ts
|
|
5
1
|
/**
|
|
6
2
|
* Create a new order.
|
|
7
3
|
*/
|
|
8
|
-
declare const CreateOrderContract:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
isOptional: false;
|
|
12
|
-
};
|
|
13
|
-
items: {
|
|
14
|
-
type: _contractspec_lib_schema637.FieldType<unknown, unknown>;
|
|
15
|
-
isOptional: false;
|
|
16
|
-
description: string;
|
|
17
|
-
};
|
|
18
|
-
shippingAddress: {
|
|
19
|
-
type: _contractspec_lib_schema637.FieldType<unknown, unknown>;
|
|
20
|
-
isOptional: true;
|
|
21
|
-
};
|
|
22
|
-
billingAddress: {
|
|
23
|
-
type: _contractspec_lib_schema637.FieldType<unknown, unknown>;
|
|
24
|
-
isOptional: true;
|
|
25
|
-
};
|
|
26
|
-
buyerNote: {
|
|
27
|
-
type: _contractspec_lib_schema637.FieldType<string, string>;
|
|
28
|
-
isOptional: true;
|
|
29
|
-
};
|
|
30
|
-
}>, _contractspec_lib_schema637.SchemaModel<{
|
|
31
|
-
id: {
|
|
32
|
-
type: _contractspec_lib_schema637.FieldType<string, string>;
|
|
33
|
-
isOptional: false;
|
|
34
|
-
};
|
|
35
|
-
orderNumber: {
|
|
36
|
-
type: _contractspec_lib_schema637.FieldType<string, string>;
|
|
37
|
-
isOptional: false;
|
|
38
|
-
};
|
|
39
|
-
buyerId: {
|
|
40
|
-
type: _contractspec_lib_schema637.FieldType<string, string>;
|
|
41
|
-
isOptional: false;
|
|
42
|
-
};
|
|
43
|
-
storeId: {
|
|
44
|
-
type: _contractspec_lib_schema637.FieldType<string, string>;
|
|
45
|
-
isOptional: false;
|
|
46
|
-
};
|
|
47
|
-
status: {
|
|
48
|
-
type: _contractspec_lib_schema637.EnumType<[string, string, string, string, string, string, string, string, string, string]>;
|
|
49
|
-
isOptional: false;
|
|
50
|
-
};
|
|
51
|
-
subtotal: {
|
|
52
|
-
type: _contractspec_lib_schema637.FieldType<number, number>;
|
|
53
|
-
isOptional: false;
|
|
54
|
-
};
|
|
55
|
-
shippingTotal: {
|
|
56
|
-
type: _contractspec_lib_schema637.FieldType<number, number>;
|
|
57
|
-
isOptional: false;
|
|
58
|
-
};
|
|
59
|
-
taxTotal: {
|
|
60
|
-
type: _contractspec_lib_schema637.FieldType<number, number>;
|
|
61
|
-
isOptional: false;
|
|
62
|
-
};
|
|
63
|
-
total: {
|
|
64
|
-
type: _contractspec_lib_schema637.FieldType<number, number>;
|
|
65
|
-
isOptional: false;
|
|
66
|
-
};
|
|
67
|
-
currency: {
|
|
68
|
-
type: _contractspec_lib_schema637.FieldType<string, string>;
|
|
69
|
-
isOptional: false;
|
|
70
|
-
};
|
|
71
|
-
items: {
|
|
72
|
-
type: _contractspec_lib_schema637.SchemaModel<{
|
|
73
|
-
id: {
|
|
74
|
-
type: _contractspec_lib_schema637.FieldType<string, string>;
|
|
75
|
-
isOptional: false;
|
|
76
|
-
};
|
|
77
|
-
productId: {
|
|
78
|
-
type: _contractspec_lib_schema637.FieldType<string, string>;
|
|
79
|
-
isOptional: false;
|
|
80
|
-
};
|
|
81
|
-
productName: {
|
|
82
|
-
type: _contractspec_lib_schema637.FieldType<string, string>;
|
|
83
|
-
isOptional: false;
|
|
84
|
-
};
|
|
85
|
-
unitPrice: {
|
|
86
|
-
type: _contractspec_lib_schema637.FieldType<number, number>;
|
|
87
|
-
isOptional: false;
|
|
88
|
-
};
|
|
89
|
-
quantity: {
|
|
90
|
-
type: _contractspec_lib_schema637.FieldType<number, number>;
|
|
4
|
+
export declare const CreateOrderContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
5
|
+
storeId: {
|
|
6
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
91
7
|
isOptional: false;
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
type:
|
|
8
|
+
};
|
|
9
|
+
items: {
|
|
10
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
95
11
|
isOptional: false;
|
|
96
|
-
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
12
|
+
description: string;
|
|
13
|
+
};
|
|
14
|
+
shippingAddress: {
|
|
15
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
16
|
+
isOptional: true;
|
|
17
|
+
};
|
|
18
|
+
billingAddress: {
|
|
19
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
20
|
+
isOptional: true;
|
|
21
|
+
};
|
|
22
|
+
buyerNote: {
|
|
23
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
24
|
+
isOptional: true;
|
|
25
|
+
};
|
|
26
|
+
}>, import("@contractspec/lib.schema").SchemaModel<{
|
|
110
27
|
id: {
|
|
111
|
-
|
|
112
|
-
|
|
28
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
29
|
+
isOptional: false;
|
|
113
30
|
};
|
|
114
31
|
orderNumber: {
|
|
115
|
-
|
|
116
|
-
|
|
32
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
33
|
+
isOptional: false;
|
|
117
34
|
};
|
|
118
35
|
buyerId: {
|
|
119
|
-
|
|
120
|
-
|
|
36
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
37
|
+
isOptional: false;
|
|
121
38
|
};
|
|
122
39
|
storeId: {
|
|
123
|
-
|
|
124
|
-
|
|
40
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
41
|
+
isOptional: false;
|
|
125
42
|
};
|
|
126
43
|
status: {
|
|
127
|
-
|
|
128
|
-
|
|
44
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string, string, string]>;
|
|
45
|
+
isOptional: false;
|
|
129
46
|
};
|
|
130
47
|
subtotal: {
|
|
131
|
-
|
|
132
|
-
|
|
48
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
49
|
+
isOptional: false;
|
|
133
50
|
};
|
|
134
51
|
shippingTotal: {
|
|
135
|
-
|
|
136
|
-
|
|
52
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
53
|
+
isOptional: false;
|
|
137
54
|
};
|
|
138
55
|
taxTotal: {
|
|
139
|
-
|
|
140
|
-
|
|
56
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
57
|
+
isOptional: false;
|
|
141
58
|
};
|
|
142
59
|
total: {
|
|
143
|
-
|
|
144
|
-
|
|
60
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
61
|
+
isOptional: false;
|
|
145
62
|
};
|
|
146
63
|
currency: {
|
|
147
|
-
|
|
148
|
-
|
|
64
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
65
|
+
isOptional: false;
|
|
149
66
|
};
|
|
150
67
|
items: {
|
|
151
|
-
|
|
68
|
+
type: import("@contractspec/lib.schema").SchemaModel<{
|
|
69
|
+
id: {
|
|
70
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
71
|
+
isOptional: false;
|
|
72
|
+
};
|
|
73
|
+
productId: {
|
|
74
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
75
|
+
isOptional: false;
|
|
76
|
+
};
|
|
77
|
+
productName: {
|
|
78
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
79
|
+
isOptional: false;
|
|
80
|
+
};
|
|
81
|
+
unitPrice: {
|
|
82
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
83
|
+
isOptional: false;
|
|
84
|
+
};
|
|
85
|
+
quantity: {
|
|
86
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
87
|
+
isOptional: false;
|
|
88
|
+
};
|
|
89
|
+
subtotal: {
|
|
90
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
91
|
+
isOptional: false;
|
|
92
|
+
};
|
|
93
|
+
}>;
|
|
94
|
+
isArray: true;
|
|
95
|
+
isOptional: true;
|
|
96
|
+
};
|
|
97
|
+
createdAt: {
|
|
98
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
99
|
+
isOptional: false;
|
|
100
|
+
};
|
|
101
|
+
}>, {
|
|
102
|
+
key: string;
|
|
103
|
+
version: string;
|
|
104
|
+
when: string;
|
|
105
|
+
payload: import("@contractspec/lib.schema").SchemaModel<{
|
|
152
106
|
id: {
|
|
153
|
-
|
|
154
|
-
|
|
107
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
108
|
+
isOptional: false;
|
|
155
109
|
};
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
110
|
+
orderNumber: {
|
|
111
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
112
|
+
isOptional: false;
|
|
159
113
|
};
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
114
|
+
buyerId: {
|
|
115
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
116
|
+
isOptional: false;
|
|
163
117
|
};
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
118
|
+
storeId: {
|
|
119
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
120
|
+
isOptional: false;
|
|
167
121
|
};
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
122
|
+
status: {
|
|
123
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string, string, string]>;
|
|
124
|
+
isOptional: false;
|
|
171
125
|
};
|
|
172
126
|
subtotal: {
|
|
173
|
-
|
|
174
|
-
|
|
127
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
128
|
+
isOptional: false;
|
|
175
129
|
};
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
130
|
+
shippingTotal: {
|
|
131
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
132
|
+
isOptional: false;
|
|
133
|
+
};
|
|
134
|
+
taxTotal: {
|
|
135
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
136
|
+
isOptional: false;
|
|
137
|
+
};
|
|
138
|
+
total: {
|
|
139
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
140
|
+
isOptional: false;
|
|
141
|
+
};
|
|
142
|
+
currency: {
|
|
143
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
144
|
+
isOptional: false;
|
|
145
|
+
};
|
|
146
|
+
items: {
|
|
147
|
+
type: import("@contractspec/lib.schema").SchemaModel<{
|
|
148
|
+
id: {
|
|
149
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
150
|
+
isOptional: false;
|
|
151
|
+
};
|
|
152
|
+
productId: {
|
|
153
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
154
|
+
isOptional: false;
|
|
155
|
+
};
|
|
156
|
+
productName: {
|
|
157
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
158
|
+
isOptional: false;
|
|
159
|
+
};
|
|
160
|
+
unitPrice: {
|
|
161
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
162
|
+
isOptional: false;
|
|
163
|
+
};
|
|
164
|
+
quantity: {
|
|
165
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
166
|
+
isOptional: false;
|
|
167
|
+
};
|
|
168
|
+
subtotal: {
|
|
169
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
170
|
+
isOptional: false;
|
|
171
|
+
};
|
|
172
|
+
}>;
|
|
173
|
+
isArray: true;
|
|
174
|
+
isOptional: true;
|
|
175
|
+
};
|
|
176
|
+
createdAt: {
|
|
177
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
178
|
+
isOptional: false;
|
|
179
|
+
};
|
|
180
|
+
}>;
|
|
185
181
|
}[]>;
|
|
186
182
|
/**
|
|
187
183
|
* Update order status.
|
|
188
184
|
*/
|
|
189
|
-
declare const UpdateOrderStatusContract:
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
isOptional: false;
|
|
193
|
-
};
|
|
194
|
-
status: {
|
|
195
|
-
type: _contractspec_lib_schema637.EnumType<[string, string, string, string, string, string, string, string, string, string]>;
|
|
196
|
-
isOptional: false;
|
|
197
|
-
};
|
|
198
|
-
trackingNumber: {
|
|
199
|
-
type: _contractspec_lib_schema637.FieldType<string, string>;
|
|
200
|
-
isOptional: true;
|
|
201
|
-
};
|
|
202
|
-
trackingUrl: {
|
|
203
|
-
type: _contractspec_lib_schema637.FieldType<string, string>;
|
|
204
|
-
isOptional: true;
|
|
205
|
-
};
|
|
206
|
-
note: {
|
|
207
|
-
type: _contractspec_lib_schema637.FieldType<string, string>;
|
|
208
|
-
isOptional: true;
|
|
209
|
-
};
|
|
210
|
-
}>, _contractspec_lib_schema637.SchemaModel<{
|
|
211
|
-
id: {
|
|
212
|
-
type: _contractspec_lib_schema637.FieldType<string, string>;
|
|
213
|
-
isOptional: false;
|
|
214
|
-
};
|
|
215
|
-
orderNumber: {
|
|
216
|
-
type: _contractspec_lib_schema637.FieldType<string, string>;
|
|
217
|
-
isOptional: false;
|
|
218
|
-
};
|
|
219
|
-
buyerId: {
|
|
220
|
-
type: _contractspec_lib_schema637.FieldType<string, string>;
|
|
221
|
-
isOptional: false;
|
|
222
|
-
};
|
|
223
|
-
storeId: {
|
|
224
|
-
type: _contractspec_lib_schema637.FieldType<string, string>;
|
|
225
|
-
isOptional: false;
|
|
226
|
-
};
|
|
227
|
-
status: {
|
|
228
|
-
type: _contractspec_lib_schema637.EnumType<[string, string, string, string, string, string, string, string, string, string]>;
|
|
229
|
-
isOptional: false;
|
|
230
|
-
};
|
|
231
|
-
subtotal: {
|
|
232
|
-
type: _contractspec_lib_schema637.FieldType<number, number>;
|
|
233
|
-
isOptional: false;
|
|
234
|
-
};
|
|
235
|
-
shippingTotal: {
|
|
236
|
-
type: _contractspec_lib_schema637.FieldType<number, number>;
|
|
237
|
-
isOptional: false;
|
|
238
|
-
};
|
|
239
|
-
taxTotal: {
|
|
240
|
-
type: _contractspec_lib_schema637.FieldType<number, number>;
|
|
241
|
-
isOptional: false;
|
|
242
|
-
};
|
|
243
|
-
total: {
|
|
244
|
-
type: _contractspec_lib_schema637.FieldType<number, number>;
|
|
245
|
-
isOptional: false;
|
|
246
|
-
};
|
|
247
|
-
currency: {
|
|
248
|
-
type: _contractspec_lib_schema637.FieldType<string, string>;
|
|
249
|
-
isOptional: false;
|
|
250
|
-
};
|
|
251
|
-
items: {
|
|
252
|
-
type: _contractspec_lib_schema637.SchemaModel<{
|
|
253
|
-
id: {
|
|
254
|
-
type: _contractspec_lib_schema637.FieldType<string, string>;
|
|
185
|
+
export declare const UpdateOrderStatusContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
186
|
+
orderId: {
|
|
187
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
255
188
|
isOptional: false;
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
type:
|
|
259
|
-
isOptional: false;
|
|
260
|
-
};
|
|
261
|
-
productName: {
|
|
262
|
-
type: _contractspec_lib_schema637.FieldType<string, string>;
|
|
263
|
-
isOptional: false;
|
|
264
|
-
};
|
|
265
|
-
unitPrice: {
|
|
266
|
-
type: _contractspec_lib_schema637.FieldType<number, number>;
|
|
267
|
-
isOptional: false;
|
|
268
|
-
};
|
|
269
|
-
quantity: {
|
|
270
|
-
type: _contractspec_lib_schema637.FieldType<number, number>;
|
|
271
|
-
isOptional: false;
|
|
272
|
-
};
|
|
273
|
-
subtotal: {
|
|
274
|
-
type: _contractspec_lib_schema637.FieldType<number, number>;
|
|
189
|
+
};
|
|
190
|
+
status: {
|
|
191
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string, string, string]>;
|
|
275
192
|
isOptional: false;
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
193
|
+
};
|
|
194
|
+
trackingNumber: {
|
|
195
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
196
|
+
isOptional: true;
|
|
197
|
+
};
|
|
198
|
+
trackingUrl: {
|
|
199
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
200
|
+
isOptional: true;
|
|
201
|
+
};
|
|
202
|
+
note: {
|
|
203
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
204
|
+
isOptional: true;
|
|
205
|
+
};
|
|
206
|
+
}>, import("@contractspec/lib.schema").SchemaModel<{
|
|
290
207
|
id: {
|
|
291
|
-
|
|
292
|
-
|
|
208
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
209
|
+
isOptional: false;
|
|
293
210
|
};
|
|
294
211
|
orderNumber: {
|
|
295
|
-
|
|
296
|
-
|
|
212
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
213
|
+
isOptional: false;
|
|
297
214
|
};
|
|
298
215
|
buyerId: {
|
|
299
|
-
|
|
300
|
-
|
|
216
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
217
|
+
isOptional: false;
|
|
301
218
|
};
|
|
302
219
|
storeId: {
|
|
303
|
-
|
|
304
|
-
|
|
220
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
221
|
+
isOptional: false;
|
|
305
222
|
};
|
|
306
223
|
status: {
|
|
307
|
-
|
|
308
|
-
|
|
224
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string, string, string]>;
|
|
225
|
+
isOptional: false;
|
|
309
226
|
};
|
|
310
227
|
subtotal: {
|
|
311
|
-
|
|
312
|
-
|
|
228
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
229
|
+
isOptional: false;
|
|
313
230
|
};
|
|
314
231
|
shippingTotal: {
|
|
315
|
-
|
|
316
|
-
|
|
232
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
233
|
+
isOptional: false;
|
|
317
234
|
};
|
|
318
235
|
taxTotal: {
|
|
319
|
-
|
|
320
|
-
|
|
236
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
237
|
+
isOptional: false;
|
|
321
238
|
};
|
|
322
239
|
total: {
|
|
323
|
-
|
|
324
|
-
|
|
240
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
241
|
+
isOptional: false;
|
|
325
242
|
};
|
|
326
243
|
currency: {
|
|
327
|
-
|
|
328
|
-
|
|
244
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
245
|
+
isOptional: false;
|
|
329
246
|
};
|
|
330
247
|
items: {
|
|
331
|
-
|
|
248
|
+
type: import("@contractspec/lib.schema").SchemaModel<{
|
|
249
|
+
id: {
|
|
250
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
251
|
+
isOptional: false;
|
|
252
|
+
};
|
|
253
|
+
productId: {
|
|
254
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
255
|
+
isOptional: false;
|
|
256
|
+
};
|
|
257
|
+
productName: {
|
|
258
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
259
|
+
isOptional: false;
|
|
260
|
+
};
|
|
261
|
+
unitPrice: {
|
|
262
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
263
|
+
isOptional: false;
|
|
264
|
+
};
|
|
265
|
+
quantity: {
|
|
266
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
267
|
+
isOptional: false;
|
|
268
|
+
};
|
|
269
|
+
subtotal: {
|
|
270
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
271
|
+
isOptional: false;
|
|
272
|
+
};
|
|
273
|
+
}>;
|
|
274
|
+
isArray: true;
|
|
275
|
+
isOptional: true;
|
|
276
|
+
};
|
|
277
|
+
createdAt: {
|
|
278
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
279
|
+
isOptional: false;
|
|
280
|
+
};
|
|
281
|
+
}>, {
|
|
282
|
+
key: string;
|
|
283
|
+
version: string;
|
|
284
|
+
when: string;
|
|
285
|
+
payload: import("@contractspec/lib.schema").SchemaModel<{
|
|
332
286
|
id: {
|
|
333
|
-
|
|
334
|
-
|
|
287
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
288
|
+
isOptional: false;
|
|
335
289
|
};
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
290
|
+
orderNumber: {
|
|
291
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
292
|
+
isOptional: false;
|
|
339
293
|
};
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
294
|
+
buyerId: {
|
|
295
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
296
|
+
isOptional: false;
|
|
343
297
|
};
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
298
|
+
storeId: {
|
|
299
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
300
|
+
isOptional: false;
|
|
347
301
|
};
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
302
|
+
status: {
|
|
303
|
+
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string, string, string]>;
|
|
304
|
+
isOptional: false;
|
|
351
305
|
};
|
|
352
306
|
subtotal: {
|
|
353
|
-
|
|
354
|
-
|
|
307
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
308
|
+
isOptional: false;
|
|
355
309
|
};
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
310
|
+
shippingTotal: {
|
|
311
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
312
|
+
isOptional: false;
|
|
313
|
+
};
|
|
314
|
+
taxTotal: {
|
|
315
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
316
|
+
isOptional: false;
|
|
317
|
+
};
|
|
318
|
+
total: {
|
|
319
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
320
|
+
isOptional: false;
|
|
321
|
+
};
|
|
322
|
+
currency: {
|
|
323
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
324
|
+
isOptional: false;
|
|
325
|
+
};
|
|
326
|
+
items: {
|
|
327
|
+
type: import("@contractspec/lib.schema").SchemaModel<{
|
|
328
|
+
id: {
|
|
329
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
330
|
+
isOptional: false;
|
|
331
|
+
};
|
|
332
|
+
productId: {
|
|
333
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
334
|
+
isOptional: false;
|
|
335
|
+
};
|
|
336
|
+
productName: {
|
|
337
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
338
|
+
isOptional: false;
|
|
339
|
+
};
|
|
340
|
+
unitPrice: {
|
|
341
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
342
|
+
isOptional: false;
|
|
343
|
+
};
|
|
344
|
+
quantity: {
|
|
345
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
346
|
+
isOptional: false;
|
|
347
|
+
};
|
|
348
|
+
subtotal: {
|
|
349
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
350
|
+
isOptional: false;
|
|
351
|
+
};
|
|
352
|
+
}>;
|
|
353
|
+
isArray: true;
|
|
354
|
+
isOptional: true;
|
|
355
|
+
};
|
|
356
|
+
createdAt: {
|
|
357
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
358
|
+
isOptional: false;
|
|
359
|
+
};
|
|
360
|
+
}>;
|
|
365
361
|
}[]>;
|
|
366
|
-
//#endregion
|
|
367
|
-
export { CreateOrderContract, UpdateOrderStatusContract };
|
|
368
362
|
//# sourceMappingURL=order.operations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order.operations.d.ts","
|
|
1
|
+
{"version":3,"file":"order.operations.d.ts","sourceRoot":"","sources":["../../src/order/order.operations.ts"],"names":[],"mappings":"AASA;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA4C9B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA6CpC,CAAC"}
|