@medusajs/medusa 1.3.6-test.0 → 1.3.7
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/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +8 -3
- package/dist/api/routes/admin/discounts/create-condition.d.ts +2 -2
- package/dist/api/routes/admin/discounts/create-condition.js +2 -2
- package/dist/api/routes/admin/discounts/update-condition.d.ts +2 -2
- package/dist/api/routes/admin/discounts/update-condition.js +2 -2
- package/dist/api/routes/admin/gift-cards/update-gift-card.d.ts +2 -2
- package/dist/api/routes/admin/gift-cards/update-gift-card.js +2 -2
- package/dist/api/routes/store/customers/list-orders.d.ts +94 -7
- package/dist/api/routes/store/customers/list-orders.js +96 -9
- package/dist/api/routes/store/customers/list-orders.js.map +1 -1
- package/dist/commands/develop.js +3 -0
- package/dist/commands/develop.js.map +1 -1
- package/dist/models/shipping-method-tax-line.d.ts +4 -4
- package/dist/models/shipping-method-tax-line.js +4 -4
- package/dist/models/shipping-method.d.ts +1 -1
- package/dist/models/shipping-method.js +1 -1
- package/package.json +4 -4
package/.turbo/turbo-build.log
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[
|
|
1
|
+
[32m@medusajs/medusa:build[0m: cache hit, replaying output [2mef9d9e7f4ae60a2a[0m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
## 1.3.
|
|
3
|
+
## 1.3.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2105](https://github.com/medusajs/medusa/pull/2105) [`846ae637e`](https://github.com/medusajs/medusa/commit/846ae637e2be6d557df37f45421da689127b9da6) Thanks [@carlos-r-l-rodrigues](https://github.com/carlos-r-l-rodrigues)! - Fix development hot reload on Windows
|
|
8
|
+
|
|
9
|
+
## 1.3.6
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
6
12
|
|
|
@@ -36,8 +42,7 @@
|
|
|
36
42
|
- [#1968](https://github.com/medusajs/medusa/pull/1968) [`4b663cca3`](https://github.com/medusajs/medusa/commit/4b663cca3acf43b0e02a1fb94b8d4f14913bfe45) Thanks [@adrien2p](https://github.com/adrien2p)! - Use transactions in CartCompletionStrategy phases
|
|
37
43
|
|
|
38
44
|
- Updated dependencies [[`c97ccd3fb`](https://github.com/medusajs/medusa/commit/c97ccd3fb5dbe796b0e4fbf37def5bb6e8201557)]:
|
|
39
|
-
- medusa-interfaces@1.3.3
|
|
40
|
-
- @medusajs/medusa-cli@1.3.2-test.0
|
|
45
|
+
- medusa-interfaces@1.3.3
|
|
41
46
|
|
|
42
47
|
## 1.3.5
|
|
43
48
|
|
|
@@ -3,13 +3,13 @@ import { AdminUpsertConditionsReq } from "../../../../types/discount";
|
|
|
3
3
|
/**
|
|
4
4
|
* @oas [post] /discounts/{discount_id}/conditions
|
|
5
5
|
* operationId: "PostDiscountsDiscountConditions"
|
|
6
|
-
* summary: "
|
|
6
|
+
* summary: "Create a DiscountCondition"
|
|
7
|
+
* description: "Creates a DiscountCondition. Only one of `products`, `product_types`, `product_collections`, `product_tags`, and `customer_groups` should be provided."
|
|
7
8
|
* x-authenticated: true
|
|
8
9
|
* parameters:
|
|
9
10
|
* - (path) discount_id=* {string} The ID of the Product.
|
|
10
11
|
* - (query) expand {string} (Comma separated) Which fields should be expanded in each product of the result.
|
|
11
12
|
* - (query) fields {string} (Comma separated) Which fields should be included in each product of the result.
|
|
12
|
-
* description: "Creates a DiscountCondition"
|
|
13
13
|
* requestBody:
|
|
14
14
|
* content:
|
|
15
15
|
* application/json:
|
|
@@ -81,13 +81,13 @@ var validator_1 = require("../../../../utils/validator");
|
|
|
81
81
|
/**
|
|
82
82
|
* @oas [post] /discounts/{discount_id}/conditions
|
|
83
83
|
* operationId: "PostDiscountsDiscountConditions"
|
|
84
|
-
* summary: "
|
|
84
|
+
* summary: "Create a DiscountCondition"
|
|
85
|
+
* description: "Creates a DiscountCondition. Only one of `products`, `product_types`, `product_collections`, `product_tags`, and `customer_groups` should be provided."
|
|
85
86
|
* x-authenticated: true
|
|
86
87
|
* parameters:
|
|
87
88
|
* - (path) discount_id=* {string} The ID of the Product.
|
|
88
89
|
* - (query) expand {string} (Comma separated) Which fields should be expanded in each product of the result.
|
|
89
90
|
* - (query) fields {string} (Comma separated) Which fields should be included in each product of the result.
|
|
90
|
-
* description: "Creates a DiscountCondition"
|
|
91
91
|
* requestBody:
|
|
92
92
|
* content:
|
|
93
93
|
* application/json:
|
|
@@ -2,14 +2,14 @@ import { AdminUpsertConditionsReq } from "../../../../types/discount";
|
|
|
2
2
|
/**
|
|
3
3
|
* @oas [post] /discounts/{discount_id}/conditions/{condition_id}
|
|
4
4
|
* operationId: "PostDiscountsDiscountConditionsCondition"
|
|
5
|
-
* summary: "
|
|
5
|
+
* summary: "Update a DiscountCondition"
|
|
6
|
+
* description: "Updates a DiscountCondition. Only one of `products`, `product_types`, `product_collections`, `product_tags`, and `customer_groups` should be provided."
|
|
6
7
|
* x-authenticated: true
|
|
7
8
|
* parameters:
|
|
8
9
|
* - (path) discount_id=* {string} The ID of the Product.
|
|
9
10
|
* - (path) condition_id=* {string} The ID of the DiscountCondition.
|
|
10
11
|
* - (query) expand {string} (Comma separated) Which fields should be expanded in each item of the result.
|
|
11
12
|
* - (query) fields {string} (Comma separated) Which fields should be included in each item of the result.
|
|
12
|
-
* description: "Updates a DiscountCondition"
|
|
13
13
|
* requestBody:
|
|
14
14
|
* content:
|
|
15
15
|
* application/json:
|
|
@@ -80,14 +80,14 @@ var validator_1 = require("../../../../utils/validator");
|
|
|
80
80
|
/**
|
|
81
81
|
* @oas [post] /discounts/{discount_id}/conditions/{condition_id}
|
|
82
82
|
* operationId: "PostDiscountsDiscountConditionsCondition"
|
|
83
|
-
* summary: "
|
|
83
|
+
* summary: "Update a DiscountCondition"
|
|
84
|
+
* description: "Updates a DiscountCondition. Only one of `products`, `product_types`, `product_collections`, `product_tags`, and `customer_groups` should be provided."
|
|
84
85
|
* x-authenticated: true
|
|
85
86
|
* parameters:
|
|
86
87
|
* - (path) discount_id=* {string} The ID of the Product.
|
|
87
88
|
* - (path) condition_id=* {string} The ID of the DiscountCondition.
|
|
88
89
|
* - (query) expand {string} (Comma separated) Which fields should be expanded in each item of the result.
|
|
89
90
|
* - (query) fields {string} (Comma separated) Which fields should be included in each item of the result.
|
|
90
|
-
* description: "Updates a DiscountCondition"
|
|
91
91
|
* requestBody:
|
|
92
92
|
* content:
|
|
93
93
|
* application/json:
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @oas [post] /gift-cards/{id}
|
|
3
3
|
* operationId: "PostGiftCardsGiftCard"
|
|
4
|
-
* summary: "
|
|
5
|
-
* description: "
|
|
4
|
+
* summary: "Update a Gift Card"
|
|
5
|
+
* description: "Update a Gift Card that can redeemed by its unique code. The Gift Card is only valid within 1 region."
|
|
6
6
|
* x-authenticated: true
|
|
7
7
|
* parameters:
|
|
8
8
|
* - (path) id=* {string} The ID of the Gift Card.
|
|
@@ -53,8 +53,8 @@ var validator_1 = require("../../../../utils/validator");
|
|
|
53
53
|
/**
|
|
54
54
|
* @oas [post] /gift-cards/{id}
|
|
55
55
|
* operationId: "PostGiftCardsGiftCard"
|
|
56
|
-
* summary: "
|
|
57
|
-
* description: "
|
|
56
|
+
* summary: "Update a Gift Card"
|
|
57
|
+
* description: "Update a Gift Card that can redeemed by its unique code. The Gift Card is only valid within 1 region."
|
|
58
58
|
* x-authenticated: true
|
|
59
59
|
* parameters:
|
|
60
60
|
* - (path) id=* {string} The ID of the Gift Card.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Request, Response } from "express";
|
|
2
1
|
import { FulfillmentStatus, OrderStatus, PaymentStatus } from "../../../../models/order";
|
|
2
|
+
import { Request, Response } from "express";
|
|
3
3
|
import { DateComparisonOperator } from "../../../../types/common";
|
|
4
4
|
/**
|
|
5
5
|
* @oas [get] /customers/me/orders
|
|
@@ -10,18 +10,105 @@ import { DateComparisonOperator } from "../../../../types/common";
|
|
|
10
10
|
* parameters:
|
|
11
11
|
* - (query) q {string} Query used for searching orders.
|
|
12
12
|
* - (query) id {string} Id of the order to search for.
|
|
13
|
-
* -
|
|
14
|
-
*
|
|
15
|
-
*
|
|
13
|
+
* - in: query
|
|
14
|
+
* name: status
|
|
15
|
+
* style: form
|
|
16
|
+
* explode: false
|
|
17
|
+
* description: Status to search for.
|
|
18
|
+
* schema:
|
|
19
|
+
* type: array
|
|
20
|
+
* items:
|
|
21
|
+
* type: string
|
|
22
|
+
* - in: query
|
|
23
|
+
* name: fulfillment_status
|
|
24
|
+
* style: form
|
|
25
|
+
* explode: false
|
|
26
|
+
* description: Fulfillment status to search for.
|
|
27
|
+
* schema:
|
|
28
|
+
* type: array
|
|
29
|
+
* items:
|
|
30
|
+
* type: string
|
|
31
|
+
* - in: query
|
|
32
|
+
* name: payment_status
|
|
33
|
+
* style: form
|
|
34
|
+
* explode: false
|
|
35
|
+
* description: Payment status to search for.
|
|
36
|
+
* schema:
|
|
37
|
+
* type: array
|
|
38
|
+
* items:
|
|
39
|
+
* type: string
|
|
16
40
|
* - (query) display_id {string} Display id to search for.
|
|
17
41
|
* - (query) cart_id {string} to search for.
|
|
18
42
|
* - (query) email {string} to search for.
|
|
19
43
|
* - (query) region_id {string} to search for.
|
|
20
44
|
* - (query) currency_code {string} to search for.
|
|
21
45
|
* - (query) tax_rate {string} to search for.
|
|
22
|
-
* -
|
|
23
|
-
*
|
|
24
|
-
*
|
|
46
|
+
* - in: query
|
|
47
|
+
* name: created_at
|
|
48
|
+
* description: Date comparison for when resulting collections were created.
|
|
49
|
+
* schema:
|
|
50
|
+
* type: object
|
|
51
|
+
* properties:
|
|
52
|
+
* lt:
|
|
53
|
+
* type: string
|
|
54
|
+
* description: filter by dates less than this date
|
|
55
|
+
* format: date
|
|
56
|
+
* gt:
|
|
57
|
+
* type: string
|
|
58
|
+
* description: filter by dates greater than this date
|
|
59
|
+
* format: date
|
|
60
|
+
* lte:
|
|
61
|
+
* type: string
|
|
62
|
+
* description: filter by dates less than or equal to this date
|
|
63
|
+
* format: date
|
|
64
|
+
* gte:
|
|
65
|
+
* type: string
|
|
66
|
+
* description: filter by dates greater than or equal to this date
|
|
67
|
+
* format: date
|
|
68
|
+
* - in: query
|
|
69
|
+
* name: updated_at
|
|
70
|
+
* description: Date comparison for when resulting collections were updated.
|
|
71
|
+
* schema:
|
|
72
|
+
* type: object
|
|
73
|
+
* properties:
|
|
74
|
+
* lt:
|
|
75
|
+
* type: string
|
|
76
|
+
* description: filter by dates less than this date
|
|
77
|
+
* format: date
|
|
78
|
+
* gt:
|
|
79
|
+
* type: string
|
|
80
|
+
* description: filter by dates greater than this date
|
|
81
|
+
* format: date
|
|
82
|
+
* lte:
|
|
83
|
+
* type: string
|
|
84
|
+
* description: filter by dates less than or equal to this date
|
|
85
|
+
* format: date
|
|
86
|
+
* gte:
|
|
87
|
+
* type: string
|
|
88
|
+
* description: filter by dates greater than or equal to this date
|
|
89
|
+
* format: date
|
|
90
|
+
* - in: query
|
|
91
|
+
* name: canceled_at
|
|
92
|
+
* description: Date comparison for when resulting collections were canceled.
|
|
93
|
+
* schema:
|
|
94
|
+
* type: object
|
|
95
|
+
* properties:
|
|
96
|
+
* lt:
|
|
97
|
+
* type: string
|
|
98
|
+
* description: filter by dates less than this date
|
|
99
|
+
* format: date
|
|
100
|
+
* gt:
|
|
101
|
+
* type: string
|
|
102
|
+
* description: filter by dates greater than this date
|
|
103
|
+
* format: date
|
|
104
|
+
* lte:
|
|
105
|
+
* type: string
|
|
106
|
+
* description: filter by dates less than or equal to this date
|
|
107
|
+
* format: date
|
|
108
|
+
* gte:
|
|
109
|
+
* type: string
|
|
110
|
+
* description: filter by dates greater than or equal to this date
|
|
111
|
+
* format: date
|
|
25
112
|
* - (query) limit=10 {integer} How many orders to return.
|
|
26
113
|
* - (query) offset=0 {integer} The offset in the resulting orders.
|
|
27
114
|
* - (query) fields {string} (Comma separated string) Which fields should be included in the resulting orders.
|
|
@@ -88,11 +88,11 @@ var __read = (this && this.__read) || function (o, n) {
|
|
|
88
88
|
};
|
|
89
89
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
90
90
|
exports.StoreGetCustomersCustomerOrdersParams = exports.StoreGetCustomersCustomerOrdersPaginationParams = void 0;
|
|
91
|
-
var class_transformer_1 = require("class-transformer");
|
|
92
|
-
var class_validator_1 = require("class-validator");
|
|
93
|
-
var medusa_core_utils_1 = require("medusa-core-utils");
|
|
94
91
|
var order_1 = require("../../../../models/order");
|
|
92
|
+
var class_validator_1 = require("class-validator");
|
|
95
93
|
var common_1 = require("../../../../types/common");
|
|
94
|
+
var medusa_core_utils_1 = require("medusa-core-utils");
|
|
95
|
+
var class_transformer_1 = require("class-transformer");
|
|
96
96
|
/**
|
|
97
97
|
* @oas [get] /customers/me/orders
|
|
98
98
|
* operationId: GetCustomersCustomerOrders
|
|
@@ -102,18 +102,105 @@ var common_1 = require("../../../../types/common");
|
|
|
102
102
|
* parameters:
|
|
103
103
|
* - (query) q {string} Query used for searching orders.
|
|
104
104
|
* - (query) id {string} Id of the order to search for.
|
|
105
|
-
* -
|
|
106
|
-
*
|
|
107
|
-
*
|
|
105
|
+
* - in: query
|
|
106
|
+
* name: status
|
|
107
|
+
* style: form
|
|
108
|
+
* explode: false
|
|
109
|
+
* description: Status to search for.
|
|
110
|
+
* schema:
|
|
111
|
+
* type: array
|
|
112
|
+
* items:
|
|
113
|
+
* type: string
|
|
114
|
+
* - in: query
|
|
115
|
+
* name: fulfillment_status
|
|
116
|
+
* style: form
|
|
117
|
+
* explode: false
|
|
118
|
+
* description: Fulfillment status to search for.
|
|
119
|
+
* schema:
|
|
120
|
+
* type: array
|
|
121
|
+
* items:
|
|
122
|
+
* type: string
|
|
123
|
+
* - in: query
|
|
124
|
+
* name: payment_status
|
|
125
|
+
* style: form
|
|
126
|
+
* explode: false
|
|
127
|
+
* description: Payment status to search for.
|
|
128
|
+
* schema:
|
|
129
|
+
* type: array
|
|
130
|
+
* items:
|
|
131
|
+
* type: string
|
|
108
132
|
* - (query) display_id {string} Display id to search for.
|
|
109
133
|
* - (query) cart_id {string} to search for.
|
|
110
134
|
* - (query) email {string} to search for.
|
|
111
135
|
* - (query) region_id {string} to search for.
|
|
112
136
|
* - (query) currency_code {string} to search for.
|
|
113
137
|
* - (query) tax_rate {string} to search for.
|
|
114
|
-
* -
|
|
115
|
-
*
|
|
116
|
-
*
|
|
138
|
+
* - in: query
|
|
139
|
+
* name: created_at
|
|
140
|
+
* description: Date comparison for when resulting collections were created.
|
|
141
|
+
* schema:
|
|
142
|
+
* type: object
|
|
143
|
+
* properties:
|
|
144
|
+
* lt:
|
|
145
|
+
* type: string
|
|
146
|
+
* description: filter by dates less than this date
|
|
147
|
+
* format: date
|
|
148
|
+
* gt:
|
|
149
|
+
* type: string
|
|
150
|
+
* description: filter by dates greater than this date
|
|
151
|
+
* format: date
|
|
152
|
+
* lte:
|
|
153
|
+
* type: string
|
|
154
|
+
* description: filter by dates less than or equal to this date
|
|
155
|
+
* format: date
|
|
156
|
+
* gte:
|
|
157
|
+
* type: string
|
|
158
|
+
* description: filter by dates greater than or equal to this date
|
|
159
|
+
* format: date
|
|
160
|
+
* - in: query
|
|
161
|
+
* name: updated_at
|
|
162
|
+
* description: Date comparison for when resulting collections were updated.
|
|
163
|
+
* schema:
|
|
164
|
+
* type: object
|
|
165
|
+
* properties:
|
|
166
|
+
* lt:
|
|
167
|
+
* type: string
|
|
168
|
+
* description: filter by dates less than this date
|
|
169
|
+
* format: date
|
|
170
|
+
* gt:
|
|
171
|
+
* type: string
|
|
172
|
+
* description: filter by dates greater than this date
|
|
173
|
+
* format: date
|
|
174
|
+
* lte:
|
|
175
|
+
* type: string
|
|
176
|
+
* description: filter by dates less than or equal to this date
|
|
177
|
+
* format: date
|
|
178
|
+
* gte:
|
|
179
|
+
* type: string
|
|
180
|
+
* description: filter by dates greater than or equal to this date
|
|
181
|
+
* format: date
|
|
182
|
+
* - in: query
|
|
183
|
+
* name: canceled_at
|
|
184
|
+
* description: Date comparison for when resulting collections were canceled.
|
|
185
|
+
* schema:
|
|
186
|
+
* type: object
|
|
187
|
+
* properties:
|
|
188
|
+
* lt:
|
|
189
|
+
* type: string
|
|
190
|
+
* description: filter by dates less than this date
|
|
191
|
+
* format: date
|
|
192
|
+
* gt:
|
|
193
|
+
* type: string
|
|
194
|
+
* description: filter by dates greater than this date
|
|
195
|
+
* format: date
|
|
196
|
+
* lte:
|
|
197
|
+
* type: string
|
|
198
|
+
* description: filter by dates less than or equal to this date
|
|
199
|
+
* format: date
|
|
200
|
+
* gte:
|
|
201
|
+
* type: string
|
|
202
|
+
* description: filter by dates greater than or equal to this date
|
|
203
|
+
* format: date
|
|
117
204
|
* - (query) limit=10 {integer} How many orders to return.
|
|
118
205
|
* - (query) offset=0 {integer} The offset in the resulting orders.
|
|
119
206
|
* - (query) fields {string} (Comma separated string) Which fields should be included in the resulting orders.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-orders.js","sourceRoot":"","sources":["../../../../../src/api/routes/store/customers/list-orders.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"list-orders.js","sourceRoot":"","sources":["../../../../../src/api/routes/store/customers/list-orders.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAIiC;AACjC,mDAMwB;AAGxB,mDAAiE;AACjE,uDAA+C;AAE/C,uDAAwC;AAExC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;QACZ,IAAA,gCAAc,GAAE;QAChB,IAAA,wBAAI,EAAC,cAAM,OAAA,+BAAsB,EAAtB,CAAsB,CAAC;kCACtB,+BAAsB;6EAAA;IAKnC;QAHC,IAAA,gCAAc,GAAE;QAChB,IAAA,4BAAU,GAAE;QACZ,IAAA,wBAAI,EAAC,cAAM,OAAA,+BAAsB,EAAtB,CAAsB,CAAC;kCACrB,+BAAsB;8EAAA;IACtC,4CAAC;CAAA,AA3DD,CAA2D,+CAA+C,GA2DzG;AA3DY,sFAAqC"}
|
package/dist/commands/develop.js
CHANGED
|
@@ -92,6 +92,9 @@ function default_1(_a) {
|
|
|
92
92
|
chokidar_1.default.watch("".concat(directory, "/src")).on("change", function (file) {
|
|
93
93
|
var f = file.split("src")[1];
|
|
94
94
|
logger_1.default.info("".concat(f, " changed: restarting..."));
|
|
95
|
+
if (process.platform === "win32") {
|
|
96
|
+
(0, child_process_1.execSync)("taskkill /PID ".concat(child.pid, " /F /T"));
|
|
97
|
+
}
|
|
95
98
|
child.kill("SIGINT");
|
|
96
99
|
(0, child_process_1.execSync)("".concat(babelPath, " src -d dist --extensions \".ts,.js\""), {
|
|
97
100
|
cwd: directory,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"develop.js","sourceRoot":"","sources":["../../src/commands/develop.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAAuB;AACvB,+CAAwC;AACxC,4DAA+B;AAC/B,sDAA+B;AAE/B,6DAAsC;AAEtC,
|
|
1
|
+
{"version":3,"file":"develop.js","sourceRoot":"","sources":["../../src/commands/develop.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAAuB;AACvB,+CAAwC;AACxC,4DAA+B;AAC/B,sDAA+B;AAE/B,6DAAsC;AAEtC,mBAA8B,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AQ,CAAC,CAAA;gBAEpB,IAAA,wBAAQ,EAAC,UAAG,SAAS,0CAAuC,EAAE;oBAC5D,GAAG,EAAE,SAAS;oBACd,KAAK,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC;iBAChD,CAAC,CAAA;gBAEF,gBAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;gBAEtB,KAAK,GAAG,IAAA,qBAAK,EAAC,OAAO,iBAAG,OAAO,UAAK,IAAI,WAAG;oBACzC,GAAG,EAAE,SAAS;oBACd,GAAG,EAAE,OAAO,CAAC,GAAG;oBAChB,KAAK,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC;iBAChD,CAAC,CAAA;YACJ,CAAC,CAAC,CAAA;;;;CACH;AA3CD,4BA2CC"}
|
|
@@ -6,10 +6,10 @@ export declare class ShippingMethodTaxLine extends TaxLine {
|
|
|
6
6
|
private beforeInsert;
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
|
-
* @schema
|
|
10
|
-
* title: "
|
|
11
|
-
* description: "
|
|
12
|
-
* x-resourceId:
|
|
9
|
+
* @schema shipping_method_tax_line
|
|
10
|
+
* title: "Shipping Method Tax Line"
|
|
11
|
+
* description: "Shipping Method Tax Line"
|
|
12
|
+
* x-resourceId: shipping_method_tax_line
|
|
13
13
|
* required:
|
|
14
14
|
* - shipping_method_id
|
|
15
15
|
* - rate
|
|
@@ -61,10 +61,10 @@ var ShippingMethodTaxLine = /** @class */ (function (_super) {
|
|
|
61
61
|
}(tax_line_1.TaxLine));
|
|
62
62
|
exports.ShippingMethodTaxLine = ShippingMethodTaxLine;
|
|
63
63
|
/**
|
|
64
|
-
* @schema
|
|
65
|
-
* title: "
|
|
66
|
-
* description: "
|
|
67
|
-
* x-resourceId:
|
|
64
|
+
* @schema shipping_method_tax_line
|
|
65
|
+
* title: "Shipping Method Tax Line"
|
|
66
|
+
* description: "Shipping Method Tax Line"
|
|
67
|
+
* x-resourceId: shipping_method_tax_line
|
|
68
68
|
* required:
|
|
69
69
|
* - shipping_method_id
|
|
70
70
|
* - rate
|
|
@@ -83,7 +83,7 @@ export declare class ShippingMethod {
|
|
|
83
83
|
* type: array
|
|
84
84
|
* description: Available if the relation `tax_lines` is expanded.
|
|
85
85
|
* items:
|
|
86
|
-
* $ref: "#/components/schemas/
|
|
86
|
+
* $ref: "#/components/schemas/shipping_method_tax_line"
|
|
87
87
|
* price:
|
|
88
88
|
* description: "The amount to charge for the Shipping Method. The currency of the price is defined by the Region that the Order that the Shipping Method belongs to is a part of."
|
|
89
89
|
* type: integer
|
|
@@ -177,7 +177,7 @@ exports.ShippingMethod = ShippingMethod;
|
|
|
177
177
|
* type: array
|
|
178
178
|
* description: Available if the relation `tax_lines` is expanded.
|
|
179
179
|
* items:
|
|
180
|
-
* $ref: "#/components/schemas/
|
|
180
|
+
* $ref: "#/components/schemas/shipping_method_tax_line"
|
|
181
181
|
* price:
|
|
182
182
|
* description: "The amount to charge for the Shipping Method. The currency of the price is defined by the Region that the Order that the Shipping Method belongs to is a part of."
|
|
183
183
|
* type: integer
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medusajs/medusa",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.7",
|
|
4
4
|
"description": "E-commerce for JAMstack",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": "./cli.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"cross-env": "^5.2.1",
|
|
27
27
|
"eslint": "^7.32.0",
|
|
28
28
|
"jest": "^25.5.2",
|
|
29
|
-
"medusa-interfaces": "^1.3.3
|
|
29
|
+
"medusa-interfaces": "^1.3.3",
|
|
30
30
|
"nodemon": "^2.0.1",
|
|
31
31
|
"prettier": "^1.19.1",
|
|
32
32
|
"sqlite3": "^5.0.2",
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
"test:unit": "jest"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"medusa-interfaces": "1.3.3
|
|
46
|
+
"medusa-interfaces": "1.3.3",
|
|
47
47
|
"typeorm": "0.2.x"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@hapi/joi": "^16.1.8",
|
|
51
|
-
"@medusajs/medusa-cli": "^1.3.
|
|
51
|
+
"@medusajs/medusa-cli": "^1.3.1",
|
|
52
52
|
"@types/lodash": "^4.14.168",
|
|
53
53
|
"awilix": "^4.2.3",
|
|
54
54
|
"body-parser": "^1.19.0",
|