@contractspec/example.marketplace 1.46.1 → 1.47.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/entities/index.d.ts +296 -296
- package/dist/entities/index.js.map +1 -1
- package/dist/entities/order.d.ts +78 -78
- package/dist/entities/payout.d.ts +65 -65
- package/dist/entities/product.d.ts +70 -70
- package/dist/entities/review.d.ts +56 -56
- package/dist/entities/store.d.ts +41 -41
- package/dist/entities/store.d.ts.map +1 -1
- package/dist/example.d.ts +2 -2
- package/dist/example.d.ts.map +1 -1
- package/dist/example.js +4 -2
- package/dist/example.js.map +1 -1
- package/dist/handlers/index.d.ts +2 -0
- package/dist/handlers/index.js +3 -0
- package/dist/handlers/marketplace.handlers.d.ts +155 -0
- package/dist/handlers/marketplace.handlers.d.ts.map +1 -0
- package/dist/handlers/marketplace.handlers.js +329 -0
- package/dist/handlers/marketplace.handlers.js.map +1 -0
- package/dist/index.d.ts +6 -1
- package/dist/index.js +6 -1
- package/dist/marketplace.capability.d.ts +9 -0
- package/dist/marketplace.capability.d.ts.map +1 -0
- package/dist/marketplace.capability.js +34 -0
- package/dist/marketplace.capability.js.map +1 -0
- package/dist/marketplace.feature.d.ts +2 -2
- package/dist/marketplace.feature.d.ts.map +1 -1
- package/dist/marketplace.feature.js +7 -2
- package/dist/marketplace.feature.js.map +1 -1
- package/dist/order/order.enum.d.ts +2 -2
- package/dist/order/order.enum.d.ts.map +1 -1
- package/dist/order/order.event.d.ts +39 -39
- package/dist/order/order.event.d.ts.map +1 -1
- package/dist/order/order.event.js +1 -1
- package/dist/order/order.operations.d.ts +90 -90
- package/dist/order/order.operations.d.ts.map +1 -1
- package/dist/order/order.presentation.d.ts +4 -4
- package/dist/order/order.presentation.d.ts.map +1 -1
- package/dist/order/order.presentation.js +7 -7
- package/dist/order/order.presentation.js.map +1 -1
- package/dist/order/order.schema.d.ts +39 -39
- package/dist/payout/payout.enum.d.ts +2 -2
- package/dist/payout/payout.event.d.ts +17 -17
- package/dist/payout/payout.event.js +1 -1
- package/dist/payout/payout.operations.d.ts +24 -24
- package/dist/payout/payout.operations.d.ts.map +1 -1
- package/dist/payout/payout.presentation.d.ts +3 -3
- package/dist/payout/payout.presentation.d.ts.map +1 -1
- package/dist/payout/payout.presentation.js +5 -5
- package/dist/payout/payout.presentation.js.map +1 -1
- package/dist/payout/payout.schema.d.ts +37 -37
- package/dist/payout/payout.schema.d.ts.map +1 -1
- package/dist/product/product.enum.d.ts +2 -2
- package/dist/product/product.enum.d.ts.map +1 -1
- package/dist/product/product.event.d.ts +20 -20
- package/dist/product/product.event.d.ts.map +1 -1
- package/dist/product/product.event.js +1 -1
- package/dist/product/product.operations.d.ts +68 -68
- package/dist/product/product.operations.d.ts.map +1 -1
- package/dist/product/product.presentation.d.ts +4 -4
- package/dist/product/product.presentation.d.ts.map +1 -1
- package/dist/product/product.presentation.js +7 -7
- package/dist/product/product.presentation.js.map +1 -1
- package/dist/product/product.schema.d.ts +52 -52
- package/dist/review/review.enum.d.ts +2 -2
- package/dist/review/review.event.d.ts +15 -15
- package/dist/review/review.event.js +1 -1
- package/dist/review/review.operations.d.ts +59 -59
- package/dist/review/review.presentation.d.ts +3 -3
- package/dist/review/review.presentation.d.ts.map +1 -1
- package/dist/review/review.presentation.js +5 -5
- package/dist/review/review.presentation.js.map +1 -1
- package/dist/review/review.schema.d.ts +45 -45
- package/dist/review/review.schema.d.ts.map +1 -1
- package/dist/seeders/index.d.ts +10 -0
- package/dist/seeders/index.d.ts.map +1 -0
- package/dist/seeders/index.js +18 -0
- package/dist/seeders/index.js.map +1 -0
- package/dist/store/store.enum.d.ts +2 -2
- package/dist/store/store.event.d.ts +14 -14
- package/dist/store/store.event.d.ts.map +1 -1
- package/dist/store/store.event.js +1 -1
- package/dist/store/store.operations.d.ts +33 -33
- package/dist/store/store.operations.d.ts.map +1 -1
- package/dist/store/store.presentation.d.ts +3 -3
- package/dist/store/store.presentation.d.ts.map +1 -1
- package/dist/store/store.presentation.js +5 -5
- package/dist/store/store.presentation.js.map +1 -1
- package/dist/store/store.schema.d.ts +20 -20
- package/dist/store/store.schema.d.ts.map +1 -1
- package/dist/tests/operations.test-spec.d.ts +11 -0
- package/dist/tests/operations.test-spec.d.ts.map +1 -0
- package/dist/tests/operations.test-spec.js +152 -0
- package/dist/tests/operations.test-spec.js.map +1 -0
- package/dist/ui/MarketplaceDashboard.d.ts +7 -0
- package/dist/ui/MarketplaceDashboard.d.ts.map +1 -0
- package/dist/ui/MarketplaceDashboard.js +319 -0
- package/dist/ui/MarketplaceDashboard.js.map +1 -0
- package/dist/ui/hooks/index.d.ts +2 -0
- package/dist/ui/hooks/index.js +5 -0
- package/dist/ui/hooks/useMarketplaceData.d.ts +23 -0
- package/dist/ui/hooks/useMarketplaceData.d.ts.map +1 -0
- package/dist/ui/hooks/useMarketplaceData.js +64 -0
- package/dist/ui/hooks/useMarketplaceData.js.map +1 -0
- package/dist/ui/index.d.ts +6 -0
- package/dist/ui/index.js +6 -0
- package/dist/ui/renderers/index.d.ts +2 -0
- package/dist/ui/renderers/index.js +3 -0
- package/dist/ui/renderers/marketplace.markdown.d.ts +28 -0
- package/dist/ui/renderers/marketplace.markdown.d.ts.map +1 -0
- package/dist/ui/renderers/marketplace.markdown.js +244 -0
- package/dist/ui/renderers/marketplace.markdown.js.map +1 -0
- package/package.json +24 -8
|
@@ -1,142 +1,142 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_contracts11 from "@contractspec/lib.contracts";
|
|
2
|
+
import * as _contractspec_lib_schema143 from "@contractspec/lib.schema";
|
|
3
3
|
|
|
4
4
|
//#region src/order/order.event.d.ts
|
|
5
|
-
declare const OrderCreatedEvent:
|
|
5
|
+
declare const OrderCreatedEvent: _contractspec_lib_contracts11.EventSpec<_contractspec_lib_schema143.SchemaModel<{
|
|
6
6
|
orderId: {
|
|
7
|
-
type:
|
|
7
|
+
type: _contractspec_lib_schema143.FieldType<string, string>;
|
|
8
8
|
isOptional: false;
|
|
9
9
|
};
|
|
10
10
|
orderNumber: {
|
|
11
|
-
type:
|
|
11
|
+
type: _contractspec_lib_schema143.FieldType<string, string>;
|
|
12
12
|
isOptional: false;
|
|
13
13
|
};
|
|
14
14
|
buyerId: {
|
|
15
|
-
type:
|
|
15
|
+
type: _contractspec_lib_schema143.FieldType<string, string>;
|
|
16
16
|
isOptional: false;
|
|
17
17
|
};
|
|
18
18
|
storeId: {
|
|
19
|
-
type:
|
|
19
|
+
type: _contractspec_lib_schema143.FieldType<string, string>;
|
|
20
20
|
isOptional: false;
|
|
21
21
|
};
|
|
22
22
|
total: {
|
|
23
|
-
type:
|
|
23
|
+
type: _contractspec_lib_schema143.FieldType<number, number>;
|
|
24
24
|
isOptional: false;
|
|
25
25
|
};
|
|
26
26
|
currency: {
|
|
27
|
-
type:
|
|
27
|
+
type: _contractspec_lib_schema143.FieldType<string, string>;
|
|
28
28
|
isOptional: false;
|
|
29
29
|
};
|
|
30
30
|
itemCount: {
|
|
31
|
-
type:
|
|
31
|
+
type: _contractspec_lib_schema143.FieldType<number, number>;
|
|
32
32
|
isOptional: false;
|
|
33
33
|
};
|
|
34
34
|
timestamp: {
|
|
35
|
-
type:
|
|
35
|
+
type: _contractspec_lib_schema143.FieldType<Date, string>;
|
|
36
36
|
isOptional: false;
|
|
37
37
|
};
|
|
38
38
|
}>>;
|
|
39
|
-
declare const OrderPaidEvent:
|
|
39
|
+
declare const OrderPaidEvent: _contractspec_lib_contracts11.EventSpec<_contractspec_lib_schema143.SchemaModel<{
|
|
40
40
|
orderId: {
|
|
41
|
-
type:
|
|
41
|
+
type: _contractspec_lib_schema143.FieldType<string, string>;
|
|
42
42
|
isOptional: false;
|
|
43
43
|
};
|
|
44
44
|
orderNumber: {
|
|
45
|
-
type:
|
|
45
|
+
type: _contractspec_lib_schema143.FieldType<string, string>;
|
|
46
46
|
isOptional: false;
|
|
47
47
|
};
|
|
48
48
|
total: {
|
|
49
|
-
type:
|
|
49
|
+
type: _contractspec_lib_schema143.FieldType<number, number>;
|
|
50
50
|
isOptional: false;
|
|
51
51
|
};
|
|
52
52
|
paymentMethod: {
|
|
53
|
-
type:
|
|
53
|
+
type: _contractspec_lib_schema143.FieldType<string, string>;
|
|
54
54
|
isOptional: false;
|
|
55
55
|
};
|
|
56
56
|
timestamp: {
|
|
57
|
-
type:
|
|
57
|
+
type: _contractspec_lib_schema143.FieldType<Date, string>;
|
|
58
58
|
isOptional: false;
|
|
59
59
|
};
|
|
60
60
|
}>>;
|
|
61
|
-
declare const OrderStatusUpdatedEvent:
|
|
61
|
+
declare const OrderStatusUpdatedEvent: _contractspec_lib_contracts11.EventSpec<_contractspec_lib_schema143.SchemaModel<{
|
|
62
62
|
orderId: {
|
|
63
|
-
type:
|
|
63
|
+
type: _contractspec_lib_schema143.FieldType<string, string>;
|
|
64
64
|
isOptional: false;
|
|
65
65
|
};
|
|
66
66
|
orderNumber: {
|
|
67
|
-
type:
|
|
67
|
+
type: _contractspec_lib_schema143.FieldType<string, string>;
|
|
68
68
|
isOptional: false;
|
|
69
69
|
};
|
|
70
70
|
previousStatus: {
|
|
71
|
-
type:
|
|
71
|
+
type: _contractspec_lib_schema143.FieldType<string, string>;
|
|
72
72
|
isOptional: false;
|
|
73
73
|
};
|
|
74
74
|
newStatus: {
|
|
75
|
-
type:
|
|
75
|
+
type: _contractspec_lib_schema143.FieldType<string, string>;
|
|
76
76
|
isOptional: false;
|
|
77
77
|
};
|
|
78
78
|
updatedBy: {
|
|
79
|
-
type:
|
|
79
|
+
type: _contractspec_lib_schema143.FieldType<string, string>;
|
|
80
80
|
isOptional: false;
|
|
81
81
|
};
|
|
82
82
|
timestamp: {
|
|
83
|
-
type:
|
|
83
|
+
type: _contractspec_lib_schema143.FieldType<Date, string>;
|
|
84
84
|
isOptional: false;
|
|
85
85
|
};
|
|
86
86
|
}>>;
|
|
87
|
-
declare const OrderShippedEvent:
|
|
87
|
+
declare const OrderShippedEvent: _contractspec_lib_contracts11.EventSpec<_contractspec_lib_schema143.SchemaModel<{
|
|
88
88
|
orderId: {
|
|
89
|
-
type:
|
|
89
|
+
type: _contractspec_lib_schema143.FieldType<string, string>;
|
|
90
90
|
isOptional: false;
|
|
91
91
|
};
|
|
92
92
|
orderNumber: {
|
|
93
|
-
type:
|
|
93
|
+
type: _contractspec_lib_schema143.FieldType<string, string>;
|
|
94
94
|
isOptional: false;
|
|
95
95
|
};
|
|
96
96
|
trackingNumber: {
|
|
97
|
-
type:
|
|
97
|
+
type: _contractspec_lib_schema143.FieldType<string, string>;
|
|
98
98
|
isOptional: true;
|
|
99
99
|
};
|
|
100
100
|
trackingUrl: {
|
|
101
|
-
type:
|
|
101
|
+
type: _contractspec_lib_schema143.FieldType<string, string>;
|
|
102
102
|
isOptional: true;
|
|
103
103
|
};
|
|
104
104
|
carrier: {
|
|
105
|
-
type:
|
|
105
|
+
type: _contractspec_lib_schema143.FieldType<string, string>;
|
|
106
106
|
isOptional: true;
|
|
107
107
|
};
|
|
108
108
|
timestamp: {
|
|
109
|
-
type:
|
|
109
|
+
type: _contractspec_lib_schema143.FieldType<Date, string>;
|
|
110
110
|
isOptional: false;
|
|
111
111
|
};
|
|
112
112
|
}>>;
|
|
113
|
-
declare const OrderCompletedEvent:
|
|
113
|
+
declare const OrderCompletedEvent: _contractspec_lib_contracts11.EventSpec<_contractspec_lib_schema143.SchemaModel<{
|
|
114
114
|
orderId: {
|
|
115
|
-
type:
|
|
115
|
+
type: _contractspec_lib_schema143.FieldType<string, string>;
|
|
116
116
|
isOptional: false;
|
|
117
117
|
};
|
|
118
118
|
orderNumber: {
|
|
119
|
-
type:
|
|
119
|
+
type: _contractspec_lib_schema143.FieldType<string, string>;
|
|
120
120
|
isOptional: false;
|
|
121
121
|
};
|
|
122
122
|
buyerId: {
|
|
123
|
-
type:
|
|
123
|
+
type: _contractspec_lib_schema143.FieldType<string, string>;
|
|
124
124
|
isOptional: false;
|
|
125
125
|
};
|
|
126
126
|
storeId: {
|
|
127
|
-
type:
|
|
127
|
+
type: _contractspec_lib_schema143.FieldType<string, string>;
|
|
128
128
|
isOptional: false;
|
|
129
129
|
};
|
|
130
130
|
total: {
|
|
131
|
-
type:
|
|
131
|
+
type: _contractspec_lib_schema143.FieldType<number, number>;
|
|
132
132
|
isOptional: false;
|
|
133
133
|
};
|
|
134
134
|
sellerPayout: {
|
|
135
|
-
type:
|
|
135
|
+
type: _contractspec_lib_schema143.FieldType<number, number>;
|
|
136
136
|
isOptional: false;
|
|
137
137
|
};
|
|
138
138
|
timestamp: {
|
|
139
|
-
type:
|
|
139
|
+
type: _contractspec_lib_schema143.FieldType<Date, string>;
|
|
140
140
|
isOptional: false;
|
|
141
141
|
};
|
|
142
142
|
}>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order.event.d.ts","names":[],"sources":["../../src/order/order.event.ts"],"sourcesContent":[],"mappings":";;;;cA0Ea,mBAAiB,
|
|
1
|
+
{"version":3,"file":"order.event.d.ts","names":[],"sources":["../../src/order/order.event.ts"],"sourcesContent":[],"mappings":";;;;cA0Ea,mBAAiB,6BAAA,CAAA,sCAAA;;UAU5B,2BAAA,CAAA;;EAVW,CAAA;EAUX,WAAA,EAAA;;;;;;;;;+CAV4B,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAAA,CAAA;EAYjB,KAAA,EAAA;IAUX,IAAA,uCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;EAVyB,SAAA,EAAA;IAAA,IAAA,uCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAYd,UAAA,EAAA,KAAA;EAUX,CAAA;;;;;;cAtBW,gBAAc,6BAAA,CAAA,sCAAA;;IAYS,IAAA,EAFlC,2BAAA,CAAA,SAEkC,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAYvB,CAAA;EAUX,WAAA,EAAA;;;;;;;;EAV4B,aAAA,EAAA;IAAA,IAAA,uCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAYjB,UAAA,EAAA,KAAA;EAUX,CAAA;;;;;;cAlCW,yBAAuB,6BAAA,CAAA,sCAAA;;UAUlC,2BAAA,CAAA,SAc8B,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;cAZnB,mBAAiB,6BAAA,CAAA,sCAAA;;UAU5B,2BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;cAEW,qBAAmB,6BAAA,CAAA,sCAAA;;UAU9B,2BAAA,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
|
|
2
1
|
import { defineEvent } from "@contractspec/lib.contracts";
|
|
2
|
+
import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
|
|
3
3
|
|
|
4
4
|
//#region src/order/order.event.ts
|
|
5
5
|
const OrderCreatedPayload = defineSchemaModel({
|
|
@@ -1,97 +1,97 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_contracts16 from "@contractspec/lib.contracts";
|
|
2
|
+
import * as _contractspec_lib_schema180 from "@contractspec/lib.schema";
|
|
3
3
|
|
|
4
4
|
//#region src/order/order.operations.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Create a new order.
|
|
7
7
|
*/
|
|
8
|
-
declare const CreateOrderContract:
|
|
8
|
+
declare const CreateOrderContract: _contractspec_lib_contracts16.OperationSpec<_contractspec_lib_schema180.SchemaModel<{
|
|
9
9
|
storeId: {
|
|
10
|
-
type:
|
|
10
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
11
11
|
isOptional: false;
|
|
12
12
|
};
|
|
13
13
|
items: {
|
|
14
|
-
type:
|
|
14
|
+
type: _contractspec_lib_schema180.FieldType<unknown, unknown>;
|
|
15
15
|
isOptional: false;
|
|
16
16
|
description: string;
|
|
17
17
|
};
|
|
18
18
|
shippingAddress: {
|
|
19
|
-
type:
|
|
19
|
+
type: _contractspec_lib_schema180.FieldType<unknown, unknown>;
|
|
20
20
|
isOptional: true;
|
|
21
21
|
};
|
|
22
22
|
billingAddress: {
|
|
23
|
-
type:
|
|
23
|
+
type: _contractspec_lib_schema180.FieldType<unknown, unknown>;
|
|
24
24
|
isOptional: true;
|
|
25
25
|
};
|
|
26
26
|
buyerNote: {
|
|
27
|
-
type:
|
|
27
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
28
28
|
isOptional: true;
|
|
29
29
|
};
|
|
30
|
-
}>,
|
|
30
|
+
}>, _contractspec_lib_schema180.SchemaModel<{
|
|
31
31
|
id: {
|
|
32
|
-
type:
|
|
32
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
33
33
|
isOptional: false;
|
|
34
34
|
};
|
|
35
35
|
orderNumber: {
|
|
36
|
-
type:
|
|
36
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
37
37
|
isOptional: false;
|
|
38
38
|
};
|
|
39
39
|
buyerId: {
|
|
40
|
-
type:
|
|
40
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
41
41
|
isOptional: false;
|
|
42
42
|
};
|
|
43
43
|
storeId: {
|
|
44
|
-
type:
|
|
44
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
45
45
|
isOptional: false;
|
|
46
46
|
};
|
|
47
47
|
status: {
|
|
48
|
-
type:
|
|
48
|
+
type: _contractspec_lib_schema180.EnumType<[string, string, string, string, string, string, string, string, string, string]>;
|
|
49
49
|
isOptional: false;
|
|
50
50
|
};
|
|
51
51
|
subtotal: {
|
|
52
|
-
type:
|
|
52
|
+
type: _contractspec_lib_schema180.FieldType<number, number>;
|
|
53
53
|
isOptional: false;
|
|
54
54
|
};
|
|
55
55
|
shippingTotal: {
|
|
56
|
-
type:
|
|
56
|
+
type: _contractspec_lib_schema180.FieldType<number, number>;
|
|
57
57
|
isOptional: false;
|
|
58
58
|
};
|
|
59
59
|
taxTotal: {
|
|
60
|
-
type:
|
|
60
|
+
type: _contractspec_lib_schema180.FieldType<number, number>;
|
|
61
61
|
isOptional: false;
|
|
62
62
|
};
|
|
63
63
|
total: {
|
|
64
|
-
type:
|
|
64
|
+
type: _contractspec_lib_schema180.FieldType<number, number>;
|
|
65
65
|
isOptional: false;
|
|
66
66
|
};
|
|
67
67
|
currency: {
|
|
68
|
-
type:
|
|
68
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
69
69
|
isOptional: false;
|
|
70
70
|
};
|
|
71
71
|
items: {
|
|
72
|
-
type:
|
|
72
|
+
type: _contractspec_lib_schema180.SchemaModel<{
|
|
73
73
|
id: {
|
|
74
|
-
type:
|
|
74
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
75
75
|
isOptional: false;
|
|
76
76
|
};
|
|
77
77
|
productId: {
|
|
78
|
-
type:
|
|
78
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
79
79
|
isOptional: false;
|
|
80
80
|
};
|
|
81
81
|
productName: {
|
|
82
|
-
type:
|
|
82
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
83
83
|
isOptional: false;
|
|
84
84
|
};
|
|
85
85
|
unitPrice: {
|
|
86
|
-
type:
|
|
86
|
+
type: _contractspec_lib_schema180.FieldType<number, number>;
|
|
87
87
|
isOptional: false;
|
|
88
88
|
};
|
|
89
89
|
quantity: {
|
|
90
|
-
type:
|
|
90
|
+
type: _contractspec_lib_schema180.FieldType<number, number>;
|
|
91
91
|
isOptional: false;
|
|
92
92
|
};
|
|
93
93
|
subtotal: {
|
|
94
|
-
type:
|
|
94
|
+
type: _contractspec_lib_schema180.FieldType<number, number>;
|
|
95
95
|
isOptional: false;
|
|
96
96
|
};
|
|
97
97
|
}>;
|
|
@@ -99,78 +99,78 @@ declare const CreateOrderContract: _contractspec_lib_contracts4.OperationSpec<_c
|
|
|
99
99
|
isOptional: true;
|
|
100
100
|
};
|
|
101
101
|
createdAt: {
|
|
102
|
-
type:
|
|
102
|
+
type: _contractspec_lib_schema180.FieldType<Date, string>;
|
|
103
103
|
isOptional: false;
|
|
104
104
|
};
|
|
105
105
|
}>, {
|
|
106
106
|
key: string;
|
|
107
107
|
version: string;
|
|
108
108
|
when: string;
|
|
109
|
-
payload:
|
|
109
|
+
payload: _contractspec_lib_schema180.SchemaModel<{
|
|
110
110
|
id: {
|
|
111
|
-
type:
|
|
111
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
112
112
|
isOptional: false;
|
|
113
113
|
};
|
|
114
114
|
orderNumber: {
|
|
115
|
-
type:
|
|
115
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
116
116
|
isOptional: false;
|
|
117
117
|
};
|
|
118
118
|
buyerId: {
|
|
119
|
-
type:
|
|
119
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
120
120
|
isOptional: false;
|
|
121
121
|
};
|
|
122
122
|
storeId: {
|
|
123
|
-
type:
|
|
123
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
124
124
|
isOptional: false;
|
|
125
125
|
};
|
|
126
126
|
status: {
|
|
127
|
-
type:
|
|
127
|
+
type: _contractspec_lib_schema180.EnumType<[string, string, string, string, string, string, string, string, string, string]>;
|
|
128
128
|
isOptional: false;
|
|
129
129
|
};
|
|
130
130
|
subtotal: {
|
|
131
|
-
type:
|
|
131
|
+
type: _contractspec_lib_schema180.FieldType<number, number>;
|
|
132
132
|
isOptional: false;
|
|
133
133
|
};
|
|
134
134
|
shippingTotal: {
|
|
135
|
-
type:
|
|
135
|
+
type: _contractspec_lib_schema180.FieldType<number, number>;
|
|
136
136
|
isOptional: false;
|
|
137
137
|
};
|
|
138
138
|
taxTotal: {
|
|
139
|
-
type:
|
|
139
|
+
type: _contractspec_lib_schema180.FieldType<number, number>;
|
|
140
140
|
isOptional: false;
|
|
141
141
|
};
|
|
142
142
|
total: {
|
|
143
|
-
type:
|
|
143
|
+
type: _contractspec_lib_schema180.FieldType<number, number>;
|
|
144
144
|
isOptional: false;
|
|
145
145
|
};
|
|
146
146
|
currency: {
|
|
147
|
-
type:
|
|
147
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
148
148
|
isOptional: false;
|
|
149
149
|
};
|
|
150
150
|
items: {
|
|
151
|
-
type:
|
|
151
|
+
type: _contractspec_lib_schema180.SchemaModel<{
|
|
152
152
|
id: {
|
|
153
|
-
type:
|
|
153
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
154
154
|
isOptional: false;
|
|
155
155
|
};
|
|
156
156
|
productId: {
|
|
157
|
-
type:
|
|
157
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
158
158
|
isOptional: false;
|
|
159
159
|
};
|
|
160
160
|
productName: {
|
|
161
|
-
type:
|
|
161
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
162
162
|
isOptional: false;
|
|
163
163
|
};
|
|
164
164
|
unitPrice: {
|
|
165
|
-
type:
|
|
165
|
+
type: _contractspec_lib_schema180.FieldType<number, number>;
|
|
166
166
|
isOptional: false;
|
|
167
167
|
};
|
|
168
168
|
quantity: {
|
|
169
|
-
type:
|
|
169
|
+
type: _contractspec_lib_schema180.FieldType<number, number>;
|
|
170
170
|
isOptional: false;
|
|
171
171
|
};
|
|
172
172
|
subtotal: {
|
|
173
|
-
type:
|
|
173
|
+
type: _contractspec_lib_schema180.FieldType<number, number>;
|
|
174
174
|
isOptional: false;
|
|
175
175
|
};
|
|
176
176
|
}>;
|
|
@@ -178,7 +178,7 @@ declare const CreateOrderContract: _contractspec_lib_contracts4.OperationSpec<_c
|
|
|
178
178
|
isOptional: true;
|
|
179
179
|
};
|
|
180
180
|
createdAt: {
|
|
181
|
-
type:
|
|
181
|
+
type: _contractspec_lib_schema180.FieldType<Date, string>;
|
|
182
182
|
isOptional: false;
|
|
183
183
|
};
|
|
184
184
|
}>;
|
|
@@ -186,92 +186,92 @@ declare const CreateOrderContract: _contractspec_lib_contracts4.OperationSpec<_c
|
|
|
186
186
|
/**
|
|
187
187
|
* Update order status.
|
|
188
188
|
*/
|
|
189
|
-
declare const UpdateOrderStatusContract:
|
|
189
|
+
declare const UpdateOrderStatusContract: _contractspec_lib_contracts16.OperationSpec<_contractspec_lib_schema180.SchemaModel<{
|
|
190
190
|
orderId: {
|
|
191
|
-
type:
|
|
191
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
192
192
|
isOptional: false;
|
|
193
193
|
};
|
|
194
194
|
status: {
|
|
195
|
-
type:
|
|
195
|
+
type: _contractspec_lib_schema180.EnumType<[string, string, string, string, string, string, string, string, string, string]>;
|
|
196
196
|
isOptional: false;
|
|
197
197
|
};
|
|
198
198
|
trackingNumber: {
|
|
199
|
-
type:
|
|
199
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
200
200
|
isOptional: true;
|
|
201
201
|
};
|
|
202
202
|
trackingUrl: {
|
|
203
|
-
type:
|
|
203
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
204
204
|
isOptional: true;
|
|
205
205
|
};
|
|
206
206
|
note: {
|
|
207
|
-
type:
|
|
207
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
208
208
|
isOptional: true;
|
|
209
209
|
};
|
|
210
|
-
}>,
|
|
210
|
+
}>, _contractspec_lib_schema180.SchemaModel<{
|
|
211
211
|
id: {
|
|
212
|
-
type:
|
|
212
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
213
213
|
isOptional: false;
|
|
214
214
|
};
|
|
215
215
|
orderNumber: {
|
|
216
|
-
type:
|
|
216
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
217
217
|
isOptional: false;
|
|
218
218
|
};
|
|
219
219
|
buyerId: {
|
|
220
|
-
type:
|
|
220
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
221
221
|
isOptional: false;
|
|
222
222
|
};
|
|
223
223
|
storeId: {
|
|
224
|
-
type:
|
|
224
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
225
225
|
isOptional: false;
|
|
226
226
|
};
|
|
227
227
|
status: {
|
|
228
|
-
type:
|
|
228
|
+
type: _contractspec_lib_schema180.EnumType<[string, string, string, string, string, string, string, string, string, string]>;
|
|
229
229
|
isOptional: false;
|
|
230
230
|
};
|
|
231
231
|
subtotal: {
|
|
232
|
-
type:
|
|
232
|
+
type: _contractspec_lib_schema180.FieldType<number, number>;
|
|
233
233
|
isOptional: false;
|
|
234
234
|
};
|
|
235
235
|
shippingTotal: {
|
|
236
|
-
type:
|
|
236
|
+
type: _contractspec_lib_schema180.FieldType<number, number>;
|
|
237
237
|
isOptional: false;
|
|
238
238
|
};
|
|
239
239
|
taxTotal: {
|
|
240
|
-
type:
|
|
240
|
+
type: _contractspec_lib_schema180.FieldType<number, number>;
|
|
241
241
|
isOptional: false;
|
|
242
242
|
};
|
|
243
243
|
total: {
|
|
244
|
-
type:
|
|
244
|
+
type: _contractspec_lib_schema180.FieldType<number, number>;
|
|
245
245
|
isOptional: false;
|
|
246
246
|
};
|
|
247
247
|
currency: {
|
|
248
|
-
type:
|
|
248
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
249
249
|
isOptional: false;
|
|
250
250
|
};
|
|
251
251
|
items: {
|
|
252
|
-
type:
|
|
252
|
+
type: _contractspec_lib_schema180.SchemaModel<{
|
|
253
253
|
id: {
|
|
254
|
-
type:
|
|
254
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
255
255
|
isOptional: false;
|
|
256
256
|
};
|
|
257
257
|
productId: {
|
|
258
|
-
type:
|
|
258
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
259
259
|
isOptional: false;
|
|
260
260
|
};
|
|
261
261
|
productName: {
|
|
262
|
-
type:
|
|
262
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
263
263
|
isOptional: false;
|
|
264
264
|
};
|
|
265
265
|
unitPrice: {
|
|
266
|
-
type:
|
|
266
|
+
type: _contractspec_lib_schema180.FieldType<number, number>;
|
|
267
267
|
isOptional: false;
|
|
268
268
|
};
|
|
269
269
|
quantity: {
|
|
270
|
-
type:
|
|
270
|
+
type: _contractspec_lib_schema180.FieldType<number, number>;
|
|
271
271
|
isOptional: false;
|
|
272
272
|
};
|
|
273
273
|
subtotal: {
|
|
274
|
-
type:
|
|
274
|
+
type: _contractspec_lib_schema180.FieldType<number, number>;
|
|
275
275
|
isOptional: false;
|
|
276
276
|
};
|
|
277
277
|
}>;
|
|
@@ -279,78 +279,78 @@ declare const UpdateOrderStatusContract: _contractspec_lib_contracts4.OperationS
|
|
|
279
279
|
isOptional: true;
|
|
280
280
|
};
|
|
281
281
|
createdAt: {
|
|
282
|
-
type:
|
|
282
|
+
type: _contractspec_lib_schema180.FieldType<Date, string>;
|
|
283
283
|
isOptional: false;
|
|
284
284
|
};
|
|
285
285
|
}>, {
|
|
286
286
|
key: string;
|
|
287
287
|
version: string;
|
|
288
288
|
when: string;
|
|
289
|
-
payload:
|
|
289
|
+
payload: _contractspec_lib_schema180.SchemaModel<{
|
|
290
290
|
id: {
|
|
291
|
-
type:
|
|
291
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
292
292
|
isOptional: false;
|
|
293
293
|
};
|
|
294
294
|
orderNumber: {
|
|
295
|
-
type:
|
|
295
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
296
296
|
isOptional: false;
|
|
297
297
|
};
|
|
298
298
|
buyerId: {
|
|
299
|
-
type:
|
|
299
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
300
300
|
isOptional: false;
|
|
301
301
|
};
|
|
302
302
|
storeId: {
|
|
303
|
-
type:
|
|
303
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
304
304
|
isOptional: false;
|
|
305
305
|
};
|
|
306
306
|
status: {
|
|
307
|
-
type:
|
|
307
|
+
type: _contractspec_lib_schema180.EnumType<[string, string, string, string, string, string, string, string, string, string]>;
|
|
308
308
|
isOptional: false;
|
|
309
309
|
};
|
|
310
310
|
subtotal: {
|
|
311
|
-
type:
|
|
311
|
+
type: _contractspec_lib_schema180.FieldType<number, number>;
|
|
312
312
|
isOptional: false;
|
|
313
313
|
};
|
|
314
314
|
shippingTotal: {
|
|
315
|
-
type:
|
|
315
|
+
type: _contractspec_lib_schema180.FieldType<number, number>;
|
|
316
316
|
isOptional: false;
|
|
317
317
|
};
|
|
318
318
|
taxTotal: {
|
|
319
|
-
type:
|
|
319
|
+
type: _contractspec_lib_schema180.FieldType<number, number>;
|
|
320
320
|
isOptional: false;
|
|
321
321
|
};
|
|
322
322
|
total: {
|
|
323
|
-
type:
|
|
323
|
+
type: _contractspec_lib_schema180.FieldType<number, number>;
|
|
324
324
|
isOptional: false;
|
|
325
325
|
};
|
|
326
326
|
currency: {
|
|
327
|
-
type:
|
|
327
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
328
328
|
isOptional: false;
|
|
329
329
|
};
|
|
330
330
|
items: {
|
|
331
|
-
type:
|
|
331
|
+
type: _contractspec_lib_schema180.SchemaModel<{
|
|
332
332
|
id: {
|
|
333
|
-
type:
|
|
333
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
334
334
|
isOptional: false;
|
|
335
335
|
};
|
|
336
336
|
productId: {
|
|
337
|
-
type:
|
|
337
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
338
338
|
isOptional: false;
|
|
339
339
|
};
|
|
340
340
|
productName: {
|
|
341
|
-
type:
|
|
341
|
+
type: _contractspec_lib_schema180.FieldType<string, string>;
|
|
342
342
|
isOptional: false;
|
|
343
343
|
};
|
|
344
344
|
unitPrice: {
|
|
345
|
-
type:
|
|
345
|
+
type: _contractspec_lib_schema180.FieldType<number, number>;
|
|
346
346
|
isOptional: false;
|
|
347
347
|
};
|
|
348
348
|
quantity: {
|
|
349
|
-
type:
|
|
349
|
+
type: _contractspec_lib_schema180.FieldType<number, number>;
|
|
350
350
|
isOptional: false;
|
|
351
351
|
};
|
|
352
352
|
subtotal: {
|
|
353
|
-
type:
|
|
353
|
+
type: _contractspec_lib_schema180.FieldType<number, number>;
|
|
354
354
|
isOptional: false;
|
|
355
355
|
};
|
|
356
356
|
}>;
|
|
@@ -358,7 +358,7 @@ declare const UpdateOrderStatusContract: _contractspec_lib_contracts4.OperationS
|
|
|
358
358
|
isOptional: true;
|
|
359
359
|
};
|
|
360
360
|
createdAt: {
|
|
361
|
-
type:
|
|
361
|
+
type: _contractspec_lib_schema180.FieldType<Date, string>;
|
|
362
362
|
isOptional: false;
|
|
363
363
|
};
|
|
364
364
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order.operations.d.ts","names":[],"sources":["../../src/order/order.operations.ts"],"sourcesContent":[],"mappings":";;;;;;;cAYa,
|
|
1
|
+
{"version":3,"file":"order.operations.d.ts","names":[],"sources":["../../src/order/order.operations.ts"],"sourcesContent":[],"mappings":";;;;;;;cAYa,mDAAmB,0CAAA;EAAnB,OAAA,EAAA;IA4CX,IAAA,EAAA,2BAAA,CAAA,SAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;IA5C8B,WAAA,EAAA,MAAA;;;;;;;;;;;;;;;;UAAA,2BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;+CAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAiDnB,CAAA;EA6CX,QAAA,EAAA;;;;;+CA7CoC,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAA,GAAA,EAAA,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAAzB,yDAAyB,0CAAA;;UA6CpC,2BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;UA7CoC,2BAAA,CAAA"}
|