Feat(medusajs) Allow to pass custom headers (#1009)

* Feat(medusajs) Allow to pass custom headers

* fix: axios exprexted output

* fix: integration test cart

* refactor: Update types object > Record<string, any>

Co-authored-by: Sebastian Rindom <skrindom@gmail.com>
This commit is contained in:
Adrien de Peretti
2022-02-17 16:50:03 +01:00
committed by GitHub
parent 449e666428
commit 22d387dcce
45 changed files with 572 additions and 433 deletions
@@ -189,7 +189,7 @@ export class AdminPostDraftOrdersReq {
@IsObject()
@IsOptional()
metadata?: object = {}
metadata?: Record<string, any> = {}
}
class ShippingMethod {
@@ -198,7 +198,7 @@ class ShippingMethod {
@IsObject()
@IsOptional()
data?: object = {}
data?: Record<string, any> = {}
@IsNumber()
@IsOptional()
@@ -228,5 +228,5 @@ class Item {
@IsObject()
@IsOptional()
metadata?: object = {}
metadata?: Record<string, any> = {}
}
@@ -134,5 +134,5 @@ export class AdminPostDraftOrdersDraftOrderLineItemsReq {
@IsObject()
@IsOptional()
metadata?: object = {}
metadata?: Record<string, any> = {}
}
@@ -128,5 +128,5 @@ export class AdminPostDraftOrdersDraftOrderLineItemsItemReq {
@IsObject()
@IsOptional()
metadata?: object = {}
metadata?: Record<string, any> = {}
}