internal
Namespaces
Enumerations
Classes
- AbstractEventBusModuleService
- AbstractSearchService
- AdditionalItem
- AdditionalItem
- AdditionalItem
- AdminCreateCondition
- AdminDeleteDiscountsDiscountConditionsConditionBatchReq
- AdminGetDiscountsDiscountConditionsConditionParams
- AdminGetDiscountsDiscountRuleParams
- AdminGetDiscountsParams
- AdminListOrdersSelector
- AdminPostDiscountsDiscountConditions
- AdminPostDiscountsDiscountConditionsCondition
- AdminPostDiscountsDiscountConditionsConditionBatchParams
- AdminPostDiscountsDiscountConditionsConditionBatchReq
- AdminPostDiscountsDiscountConditionsConditionParams
- AdminPostDiscountsDiscountConditionsParams
- AdminPostDiscountsDiscountDynamicCodesReq
- AdminPostDiscountsDiscountReq
- AdminPostDiscountsDiscountRule
- AdminPostDiscountsReq
- AdminPriceSelectionParams
- AdminProductCategoriesReqBase
- AdminUpdateDiscountRule
- AdminUpsertCondition
- AdminUpsertConditionsReq
- Blob
- CustomShippingOption
- CustomerGroup
- CustomerGroup
- CustomerGroupUpdate
- Discount
- Discount
- Discount
- Discount
- Duplex
- EventEmitter
- FilterableCartProps
- FilterableDiscountProps
- FilterableLineItemAdjustmentProps
- FilterableProductProps
- FilterableProductVariantProps
- FlagRouter
- FulfillmentService
- GiftCard
- GiftCard
- Image
- Item
- Item
- Item
- Item
- Item
- Item
- Item
- MedusaError
- NotificationProvider
- OptionRequirement
- OptionRequirement
- OrdersReturnItem
- PassThrough
- PaymentMethod
- PaymentService
- PriceSelectionParams
- ProductBatchProductCategory
- ProductBatchSalesChannel
- ProductOptionReq
- ProductProductCategoryReq
- ProductSalesChannelReq
- ProductTagReq
- ProductTypeReq
- ProductVariantOptionReq
- ProductVariantOptionReq
- ProductVariantOptionReq
- ProductVariantOptionReq
- ProductVariantPricesCreateReq
- ProductVariantPricesUpdateReq
- ProductVariantReq
- ProductVariantReq
- Readable
- ReadableBase
- ReturnItem
- ReturnShipping
- ReturnShipping
- ReturnShipping
- ReturnShipping
- ShippingMethod
- ShippingMethod
- ShippingMethod
- ShippingMethod
- Socket
- StockLocationAddress
- StockLocationAddress
- Stream
- Tag
- Transform
- WritableBase
- internal
Interfaces
- AddressInfo
- ArrayBufferView
- ArrayLike
- AsyncGenerator
- AsyncGeneratorFunction
- AsyncIterable
- AsyncIterableIterator
- AsyncIterator
- BaseRepositoryService
- BlobOptions
- Buffer
- BufferConstructor
- CallSite
- ConnectOpts
- CreateNoteInput
- CreateUserInput
- Dict
- DuplexOptions
- ErrnoException
- Error
- EventEmitter
- EventEmitterOptions
- ICacheService
- IEventBusModuleService
- IEventBusService
- IInventoryService
- IPricingModuleService
- IStockLocationService
- ITransactionBaseService
- IncomingHttpHeaders
- IpcSocketConnectOpts
- Iterable
- IterableIterator
- Iterator
- IteratorReturnResult
- IteratorYieldResult
- Logger
- LookupOneOptions
- LookupOptions
- Object
- OnReadOpts
- PromiseLike
- QueuingStrategy
- QueuingStrategySize
- ReadWriteStream
- ReadableByteStreamController
- ReadableByteStreamControllerCallback
- ReadableStream
- ReadableStream
- ReadableStreamDefaultController
- ReadableStreamDefaultReadDoneResult
- ReadableStreamDefaultReadValueResult
- ReadableStreamDefaultReader
- ReadableStreamErrorCallback
- ReadableStreamGenericReader
- ReadableWritablePair
- SharedArrayBuffer
- SharedArrayBufferConstructor
- SocketConstructorOpts
- StaticEventEmitterOptions
- StreamPipeOptions
- TcpSocketConnectOpts
- TransformOptions
- UnderlyingByteSource
- UnderlyingSink
- UnderlyingSinkAbortCallback
- UnderlyingSinkCloseCallback
- UnderlyingSinkStartCallback
- UnderlyingSinkWriteCallback
- UnderlyingSource
- UnderlyingSourceCancelCallback
- UnderlyingSourcePullCallback
- UnderlyingSourceStartCallback
- UpdateUserInput
- WritableStream
- WritableStream
- WritableStreamDefaultController
- WritableStreamDefaultWriter
- _DOMEventTarget
- _NodeEventTarget
References
Abortable
Re-exports Abortable
ReadableOptions
Re-exports ReadableOptions
WritableOptions
Re-exports WritableOptions
Enumeration Members
DEFAULT
DEFAULT: "default"
Type Aliases
AddOrderEditLineItemInput
AddOrderEditLineItemInput: Object
Type declaration
metadata
Record<string, unknown>quantity
numberRequiredvariant_id
stringRequiredAdjustmentContext
AdjustmentContext: Object
Type declaration
variant
objectRequiredvariant.product_id
stringRequiredAdminDiscountConditionsRes
AdminDiscountConditionsRes: Object
Schema
Discount condition details.
Type declaration
AdminDiscountsListRes
AdminDiscountsListRes: PaginatedResponse
& { discounts
: Discount
[] }
Schema
AdminDiscountsListRes type: object x-expanded-relations: field: discounts relations:
required:
- discounts
- count
- offset
- limit properties: discounts: type: array items: $ref: "#/components/schemas/Discount" count: type: integer description: The total number of items available offset: type: integer description: The number of discounts skipped when retrieving the discounts. limit: type: integer description: The number of items per page
AdminDiscountsRes
AdminDiscountsRes: Object
Schema
Discount details.
Type declaration
AllocationMapOptions
AllocationMapOptions: Object
Type declaration
exclude_discounts
booleanexclude_gift_cards
booleanArrayBufferLike
ArrayBufferLike: ArrayBufferTypes
[keyof ArrayBufferTypes
]
ArrayBufferView
ArrayBufferView: TypedArray
| DataView
AuthenticateResult
AuthenticateResult: Object
Type declaration
AvailabilityContext
AvailabilityContext: Object
Type declaration
inventoryLocationMap
Map<string, InventoryLevelDTO[]>variantInventoryMap
Map<string, ProductVariantInventoryItem[]>BinaryLike
BinaryLike: string
| ArrayBufferView
BufferEncoding
BufferEncoding: "ascii"
| "utf8"
| "utf-8"
| "utf16le"
| "ucs2"
| "ucs-2"
| "base64"
| "base64url"
| "latin1"
| "binary"
| "hex"
CalculateOptionPriceInput
CalculateOptionPriceInput: Object
Type declaration
data
Record<string, unknown>Requiredprovider_id
stringRequiredCalculationContextData
CalculationContextData: Object
Type declaration
CalculationContextOptions
CalculationContextOptions: Object
Type declaration
exclude_discounts
booleanexclude_gift_cards
booleanexclude_shipping
booleanis_return
booleanCartCreateProps
CartCreateProps: Object
Type declaration
billing_address
Partial<AddressPayload>billing_address_id
stringcontext
objectcountry_code
stringcustomer_id
stringdiscounts
Discount[]email
stringgift_cards
GiftCard[]metadata
Record<string, unknown>region
Regionregion_id
stringsales_channel_id
stringshipping_address
Partial<AddressPayload>shipping_address_id
stringtype
CartTypeCartUpdateProps
CartUpdateProps: Object
Type declaration
billing_address
AddressPayload | stringbilling_address_id
stringcompleted_at
Datecontext
objectcountry_code
stringcustomer_id
stringdiscounts
Discount[]email
stringgift_cards
GiftCard[]metadata
Record<string, unknown>payment_authorized_at
Date | nullregion_id
stringsales_channel_id
stringshipping_address
AddressPayload | stringshipping_address_id
stringCategoryQueryParams
CategoryQueryParams: Object
Type declaration
value
string[]RequiredClaimTypeValue
ClaimTypeValue: `${ClaimType}`
ConfigModule
ConfigModule: Object
Type declaration
featureFlags
Record<string, boolean | string>Requiredmodules
Record<string, false | string | Partial<InternalModuleDeclaration | ExternalModuleDeclaration>>plugins
({ options: Record<string, unknown> ; resolve: string } | string)[]RequiredConstructor
Constructor<T
>: Object
Type parameters
T
objectRequiredCreateAnalyticsConfig
CreateAnalyticsConfig: Object
Type declaration
anonymize
booleanRequiredopt_out
booleanRequiredCreateClaimInput
CreateClaimInput: Object
Type declaration
additional_items
CreateClaimItemAdditionalItemInput[]claim_order_id
stringmetadata
Record<string, unknown>no_notification
booleanrefund_amount
numberreturn_location_id
stringreturn_shipping
CreateClaimReturnShippingInputshipping_address
AddressPayloadshipping_address_id
stringshipping_methods
CreateClaimShippingMethodInput[]CreateClaimItemAdditionalItemInput
CreateClaimItemAdditionalItemInput: Object
Type declaration
quantity
numberRequiredvariant_id
stringRequiredCreateClaimItemInput
CreateClaimItemInput: Object
Type declaration
claim_order_id
stringimages
string[]item_id
stringRequirednote
stringquantity
numberRequiredtags
string[]CreateClaimReturnShippingInput
CreateClaimReturnShippingInput: Object
Type declaration
option_id
stringprice
numberCreateClaimShippingMethodInput
CreateClaimShippingMethodInput: Object
Type declaration
data
Record<string, unknown>id
stringoption_id
stringprice
numberCreateCustomShippingOptionInput
CreateCustomShippingOptionInput: Object
Type declaration
cart_id
stringmetadata
Record<string, unknown>price
numberRequiredshipping_option_id
stringRequiredCreateCustomerInput
CreateCustomerInput: Object
Type declaration
email
stringRequiredfirst_name
stringhas_account
booleanlast_name
stringmetadata
Record<string, unknown>password
stringpassword_hash
stringphone
stringCreateDiscountInput
CreateDiscountInput: Object
Type declaration
code
stringRequiredends_at
Dateis_disabled
booleanRequiredis_dynamic
booleanRequiredmetadata
Record<string, unknown>regions
string[] | Region[]starts_at
Dateusage_limit
numbervalid_duration
stringCreateDiscountRuleInput
CreateDiscountRuleInput: Object
Type declaration
CreateDynamicDiscountInput
CreateDynamicDiscountInput: Object
Type declaration
code
stringRequiredends_at
Datemetadata
Record<string, unknown>usage_limit
numberRequiredCreateFulfillmentOrder
CreateFulfillmentOrder: Omit
<ClaimOrder
, "beforeInsert"
> & { billing_address
: Address
; currency_code
: string
; discounts
: Discount
[] ; display_id
: number
; email?
: string
; is_claim?
: boolean
; is_swap?
: boolean
; items
: LineItem
[] ; no_notification
: boolean
; payments
: Payment
[] ; region?
: Region
; region_id
: string
; shipping_methods
: ShippingMethod
[] ; tax_rate
: number
| null
}
CreateGiftCardInput
CreateGiftCardInput: Object
Type declaration
balance
numberends_at
Dateis_disabled
booleanmetadata
Record<string, unknown>order_id
stringregion_id
stringRequiredtax_rate
number | nullvalue
numberCreateGiftCardTransactionInput
CreateGiftCardTransactionInput: Object
Type declaration
amount
numberRequiredcreated_at
Dategift_card_id
stringRequiredis_taxable
booleanorder_id
stringRequiredtax_rate
number | nullCreateIdempotencyKeyInput
CreateIdempotencyKeyInput: Object
Type declaration
idempotency_key
stringrequest_method
stringrequest_params
Record<string, unknown>request_path
stringCreateOauthInput
CreateOauthInput: Object
Type declaration
application_name
stringRequireddisplay_name
stringRequiredinstall_url
stringuninstall_url
stringCreateOrderEditInput
CreateOrderEditInput: Object
Type declaration
internal_note
stringorder_id
stringRequiredCreateOrderEditItemChangeInput
CreateOrderEditItemChangeInput: Object
Type declaration
line_item_id
stringorder_edit_id
stringRequiredoriginal_line_item_id
stringCreatePaymentCollectionInput
CreatePaymentCollectionInput: Object
Type declaration
amount
numberRequiredcreated_by
stringRequiredcurrency_code
stringRequireddescription
stringmetadata
anyregion_id
stringRequiredCreatePaymentInput
CreatePaymentInput: Object
Type declaration
amount
numberRequiredcart_id
stringcurrency_code
stringRequiredprovider_id
stringresource_id
stringCreateProductCategoryInput
CreateProductCategoryInput: ProductCategoryInput
& { name
: string
}
CreateProductCollection
CreateProductCollection: Object
Type declaration
handle
stringmetadata
Record<string, unknown>title
stringRequiredCreateProductInput
CreateProductInput: Object
Service Level DTOs
Type declaration
categories
CreateProductProductCategoryInput[] | nullcollection_id
stringdescription
stringdiscountable
booleanexternal_id
string | nullhandle
stringheight
numberhs_code
stringimages
string[]is_giftcard
booleanlength
numbermaterial
stringmetadata
Record<string, unknown>mid_code
stringoptions
CreateProductProductOption[]origin_country
stringprofile_id
stringsales_channels
CreateProductProductSalesChannelInput[] | nullstatus
ProductStatussubtitle
stringthumbnail
stringtitle
stringRequiredvariants
CreateProductProductVariantInput[]weight
numberwidth
numberCreateProductProductCategoryInput
CreateProductProductCategoryInput: Object
Type declaration
id
stringRequiredCreateProductProductOption
CreateProductProductOption: Object
Type declaration
title
stringRequiredCreateProductProductSalesChannelInput
CreateProductProductSalesChannelInput: Object
Type declaration
id
stringRequiredCreateProductProductTagInput
CreateProductProductTagInput: Object
Type declaration
id
stringvalue
stringRequiredCreateProductProductTypeInput
CreateProductProductTypeInput: Object
Type declaration
id
stringvalue
stringRequiredCreateProductProductVariantInput
CreateProductProductVariantInput: Object
Type declaration
allow_backorder
booleanbarcode
stringean
stringheight
numberhs_code
stringinventory_quantity
numberlength
numbermanage_inventory
booleanmaterial
stringmetadata
Record<string, unknown>mid_code
stringoptions
{ value: string }[]origin_country
stringsku
stringtitle
stringRequiredupc
stringweight
numberwidth
numberCreateProductProductVariantPriceInput
CreateProductProductVariantPriceInput: Object
Type declaration
amount
numberRequiredcurrency_code
stringmax_quantity
numbermin_quantity
numberregion_id
stringCreateProductVariantInput
CreateProductVariantInput: Object
Type declaration
allow_backorder
booleanbarcode
stringean
stringheight
numberhs_code
stringinventory_quantity
numberlength
numbermanage_inventory
booleanmaterial
stringmetadata
Record<string, unknown>mid_code
stringorigin_country
stringproduct_id
stringsku
stringtitle
stringupc
stringvariant_rank
numberweight
numberwidth
numberCreateRegionInput
CreateRegionInput: Object
Type declaration
countries
string[]Requiredcurrency_code
stringRequiredfulfillment_providers
string[]Requiredincludes_tax
booleanmetadata
Record<string, unknown>name
stringRequiredpayment_providers
string[]Requiredtax_code
stringtax_rate
numberRequiredCreateReturnInput
CreateReturnInput: Object
Type declaration
claim_order_id
stringitems
OrdersReturnItem[]location_id
stringmetadata
Record<string, unknown>no_notification
booleanorder_id
stringRequiredrefund_amount
numbershipping_method
objectshipping_method.option_id
stringshipping_method.price
numberswap_id
stringCreateReturnReason
CreateReturnReason: Object
Type declaration
description
stringlabel
stringRequiredmetadata
Record<string, unknown>parent_return_reason_id
stringvalue
stringRequiredCreateReturnType
CreateReturnType: Omit
<Return
, "beforeInsert"
>
CreateSalesChannelInput
CreateSalesChannelInput: Object
Type declaration
description
stringis_disabled
booleanname
stringRequiredCreateShipmentConfig
CreateShipmentConfig: Object
Type declaration
location_id
stringmetadata
Record<string, unknown>no_notification
booleanCreateShippingMethod
CreateShippingMethod: Object
Type declaration
cart_id
stringclaim_order_id
stringdata
anydraft_order_id
stringorder_id
stringprice
numberreturn_id
stringshipping_option_id
stringswap_id
stringCreateShippingMethodDto
CreateShippingMethodDto: CreateShippingMethod
& { cart?
: Cart
; order?
: Order
}
CreateShippingOptionInput
CreateShippingOptionInput: Object
Type declaration
admin_only
booleanamount
numberdata
Record<string, unknown>Requiredincludes_tax
booleanis_return
booleanmetadata
Record<string, unknown>name
stringRequiredprofile_id
stringRequiredprovider_id
stringRequiredregion_id
stringRequiredrequirements
ShippingOptionRequirement[]CreateShippingProfile
CreateShippingProfile: Object
Type declaration
CreateTaxRateInput
CreateTaxRateInput: Object
Type declaration
code
stringRequiredname
stringRequiredrate
number | nullregion_id
stringRequiredCustomerGroupConstructorProps
CustomerGroupConstructorProps: Object
Type declaration
manager
EntityManagerRequiredDefaultWithoutRelations
DefaultWithoutRelations: Omit
<ExtendedFindConfig
<CustomerGroup
>, "relations"
>
DefaultWithoutRelations
DefaultWithoutRelations: Omit
<ExtendedFindConfig
<Product
>, "relations"
>
DeleteFileType
DeleteFileType: Object
Index signature
▪ [x: string
]: unknown
Type declaration
fileKey
stringRequiredDeleteResponse
DeleteResponse: Object
Type declaration
deleted
booleanRequiredid
stringRequiredobject
stringRequiredDictionary
Dictionary<T
>: object
Type parameters
T
objectRequiredIndex signature
▪ [k: string
]: T
Discount
Discount: Object
Type declaration
code
stringRequiredDiscountAllocation
DiscountAllocation: Object
The amount of a discount allocated to a line item
Type declaration
amount
numberRequiredunit_amount
numberRequiredDiscountConditionInput
DiscountConditionInput: Object
Type declaration
customer_groups
(string | { id: string })[]id
stringoperator
DiscountConditionOperatorproduct_collections
(string | { id: string })[]product_tags
(string | { id: string })[]product_types
(string | { id: string })[]products
(string | { id: string })[]rule_id
stringDiscountConditionResourceType
DiscountConditionResourceType: EntityTarget
<DiscountConditionProduct
| DiscountConditionProductType
| DiscountConditionProductCollection
| DiscountConditionProductTag
| DiscountConditionCustomerGroup
>
DraftOrderCreateProps
DraftOrderCreateProps: Object
Type declaration
billing_address
Partial<AddressPayload>billing_address_id
stringcustomer_id
stringdiscounts
Discount[]email
stringRequiredidempotency_key
stringitems
Item[]metadata
Record<string, unknown>no_notification_order
booleanregion_id
stringRequiredshipping_address
Partial<AddressPayload>shipping_address_id
stringstatus
stringEmitData
EmitData<T
>: Object
Type parameters
T
objectRequiredType declaration
data
TRequiredeventName
stringRequiredoptions
Record<string, unknown>ExpandScalar
ExpandScalar<T
>: null
| T
extends string
? string
| RegExp
: T
extends Date
? Date
| string
: T
Type parameters
T
objectRequiredExtendedStoreDTO
ExtendedStoreDTO: Store
& { feature_flags
: FeatureFlagsResponse
; fulfillment_providers
: FulfillmentProvider
[] ; modules
: ModulesResponse
; payment_providers
: PaymentProvider
[] }
Schema
ExtendedStoreDTO allOf:
- $ref: "#/components/schemas/Store"
- type: object
required:
- payment_providers
- fulfillment_providers
- feature_flags
- modules properties: payment_providers: $ref: "#/components/schemas/PaymentProvider" fulfillment_providers: $ref: "#/components/schemas/FulfillmentProvider" feature_flags: $ref: "#/components/schemas/FeatureFlagsResponse" modules: $ref: "#/components/schemas/ModulesResponse"
FeatureFlagsResponse
FeatureFlagsResponse: { key
: string
; value
: boolean
| Record<string
, boolean
> }[]
Schema
FeatureFlagsResponse type: array items: type: object required:
properties: key: description: The key of the feature flag. type: string value: description: The value of the feature flag. type: boolean
FileServiceGetUploadStreamResult
FileServiceGetUploadStreamResult: Object
Index signature
▪ [x: string
]: unknown
Type declaration
FileServiceUploadResult
FileServiceUploadResult: Object
Type declaration
key
stringRequiredurl
stringRequiredFilterValue
FilterValue<T
>: OperatorMap
<FilterValue2
<T
>> | FilterValue2
<T
> | FilterValue2
<T
>[] | null
Type parameters
T
objectRequiredFilterValue2
FilterValue2<T
>: T
| ExpandScalar
<T
> | Primary
<T
>
Type parameters
T
objectRequiredFilterableTaxRateProps
FilterableTaxRateProps: Object
Type declaration
code
string | string[] | StringComparisonOperatorcreated_at
Date | DateComparisonOperatordeleted_at
Date | DateComparisonOperatorname
string | string[]rate
number | NumericalComparisonOperatorregion_id
string | string[]updated_at
Date | DateComparisonOperatorFilterableUserProps
FilterableUserProps: PartialPick
<User
, "email"
| "first_name"
| "last_name"
| "created_at"
| "updated_at"
| "deleted_at"
>
FindProductConfig
FindProductConfig: FindConfig
<Product
> & PriceListLoadConfig
FindWithRelationsOptions
FindWithRelationsOptions: FindManyOptions
<ProductVariant
> & { order?
: FindOptionsOrder
<ProductVariant
> ; withDeleted?
: boolean
}
FindWithoutRelationsOptions
FindWithoutRelationsOptions: DefaultWithoutRelations
& { where
: DefaultWithoutRelations
["where"
] & { discount_condition_id?
: string
| FindOperator
<string
> } }
FindWithoutRelationsOptions
FindWithoutRelationsOptions: DefaultWithoutRelations
& { where
: DefaultWithoutRelations
["where"
] & { categories?
: FindOptionsWhere
<ProductCategory
> ; category_id?
: CategoryQueryParams
; discount_condition_id?
: string
; include_category_children?
: boolean
; price_list_id?
: FindOperator
<PriceList
> ; sales_channel_id?
: FindOperator
<SalesChannel
> ; tags?
: FindOperator
<ProductTag
> } }
FulFillmentItemType
FulFillmentItemType: Object
Type declaration
item_id
stringRequiredquantity
numberRequiredFulfillmentItemPartition
FulfillmentItemPartition: Object
Type declaration
FulfillmentOptions
FulfillmentOptions: Object
Type declaration
options
Record<string, unknown>[]Requiredprovider_id
stringRequiredFulfillmentProviderContainer
FulfillmentProviderContainer: MedusaContainer
& { fulfillmentProviderRepository
: typeof FulfillmentProviderRepository
; manager
: EntityManager
} & { [key in `${FulfillmentProviderKey}`]: typeof BaseFulfillmentService }
FulfillmentProviderData
FulfillmentProviderData: Record<string
, unknown
>
FulfillmentProviderKey
FulfillmentProviderKey: `fp_${string}`
GenerateInputData
GenerateInputData: Object
Type declaration
metadata
Record<string, unknown>quantity
numberRequiredunit_price
numbervariantId
stringRequiredGenerateLineItemContext
GenerateLineItemContext: Object
Type declaration
customer_id
stringincludes_tax
booleanmetadata
Record<string, unknown>order_edit_id
stringregion_id
stringunit_price
numberGeneratedAdjustment
GeneratedAdjustment: Object
Type declaration
amount
numberRequireddescription
stringRequireddiscount_id
stringRequiredGetLineItemTotalOptions
GetLineItemTotalOptions: Object
Type declaration
exclude_discounts
booleaninclude_tax
booleanGetRegionPriceContext
GetRegionPriceContext: Object
Type declaration
customer_id
stringinclude_discount_prices
booleanquantity
numberregionId
stringRequiredGetShippingMethodTotalsOptions
GetShippingMethodTotalsOptions: Object
Type declaration
GetTotalsOptions
GetTotalsOptions: Object
Type declaration
exclude_gift_cards
booleanforce_taxes
booleanGetUploadedFileType
GetUploadedFileType: Object
Index signature
▪ [x: string
]: unknown
Type declaration
fileKey
stringRequiredisPrivate
booleanGiftCardAllocation
GiftCardAllocation: Object
The amount of a gift card allocated to a line item
Type declaration
amount
numberRequiredunit_amount
numberRequiredGiftCardTransaction
GiftCardTransaction: Object
Type declaration
amount
numberRequiredis_taxable
boolean | nullRequiredtax_rate
number | nullRequiredIdempotencyCallbackResult
IdempotencyCallbackResult: Object
Type declaration
recovery_point
stringresponse_body
Record<string, unknown>response_code
numberInjectedDependencies
InjectedDependencies: Object
Type declaration
manager
EntityManagerRequiredInjectedDependencies
InjectedDependencies: Object
Type declaration
InjectedDependencies
InjectedDependencies: Object
Type declaration
manager
EntityManagerRequiredInjectedDependencies
InjectedDependencies: Object
Type declaration
manager
EntityManagerRequiredInjectedDependencies
InjectedDependencies: Object
Type declaration
manager
EntityManagerRequiredInjectedDependencies
InjectedDependencies: Object
Type declaration
manager
EntityManagerRequiredInjectedDependencies
InjectedDependencies: Object
Type declaration
manager
EntityManagerRequiredInjectedDependencies
InjectedDependencies: Object
Type declaration
manager
EntityManagerRequiredInjectedDependencies
InjectedDependencies: Object
Type declaration
manager
EntityManagerRequiredInjectedDependencies
InjectedDependencies: Object
Type declaration
manager
EntityManagerRequiredInjectedDependencies
InjectedDependencies: Object
Type declaration
InjectedDependencies
InjectedDependencies: Object
Type declaration
manager
EntityManagerRequiredInjectedDependencies
InjectedDependencies: Object
Type declaration
manager
EntityManagerRequiredInjectedDependencies
InjectedDependencies: Object
Type declaration
manager
EntityManagerRequiredInjectedDependencies
InjectedDependencies: Object
Type declaration
manager
EntityManagerRequiredInjectedDependencies
InjectedDependencies: Object
Type declaration
manager
EntityManagerRequiredInjectedDependencies
InjectedDependencies: Object
Type declaration
manager
EntityManagerRequiredInjectedDependencies
InjectedDependencies: MedusaContainer
& { eventBusService
: EventBusService
; manager
: EntityManager
; oauthRepository
: typeof OauthRepository
}
InjectedDependencies
InjectedDependencies: Object
Type declaration
manager
EntityManagerRequiredInjectedDependencies
InjectedDependencies: Object
Type declaration
InjectedDependencies
InjectedDependencies: Object
Type declaration
manager
EntityManagerRequiredInjectedDependencies
InjectedDependencies: Object
Type declaration
manager
EntityManagerRequiredInjectedDependencies
InjectedDependencies: { customerService
: CustomerService
; featureFlagRouter
: FlagRouter
; logger
: Logger
; manager
: EntityManager
; paymentProviderRepository
: typeof PaymentProviderRepository
; paymentRepository
: typeof PaymentRepository
; paymentService
: PaymentService
; paymentSessionRepository
: typeof PaymentSessionRepository
; refundRepository
: typeof RefundRepository
} & { [key in `${PaymentProviderKey}`]: AbstractPaymentService | typeof BasePaymentService }
InjectedDependencies
InjectedDependencies: Object
Type declaration
manager
EntityManagerRequiredInjectedDependencies
InjectedDependencies: Object
Type declaration
manager
EntityManagerRequiredInjectedDependencies
InjectedDependencies: Object
Type declaration
manager
EntityManagerRequiredInjectedDependencies
InjectedDependencies: Object
Type declaration
manager
EntityManagerRequiredInjectedDependencies
InjectedDependencies: Object
Type declaration
manager
EntityManagerRequiredInjectedDependencies
InjectedDependencies: Object
Type declaration
manager
EntityManagerRequiredInjectedDependencies
InjectedDependencies: Object
Type declaration
manager
EntityManagerRequiredInjectedDependencies
InjectedDependencies: Object
Type declaration
manager
EntityManagerRequiredInjectedDependencies
InjectedDependencies: Object
Type declaration
manager
EntityManagerRequiredInjectedDependencies
InjectedDependencies: Object
Type declaration
manager
EntityManagerRequiredInjectedDependencies
InjectedDependencies: Object
Type declaration
manager
EntityManagerRequiredInjectedDependencies
InjectedDependencies: Object
Type declaration
manager
EntityManagerRequiredInjectedDependencies
InjectedDependencies: Object
Type declaration
manager
EntityManagerRequiredInjectedDependencies
InjectedDependencies: Object
Type declaration
manager
EntityManagerRequiredInjectedDependencies
InjectedDependencies: Object
Type declaration
manager
EntityManagerRequiredInjectedDependencies
InjectedDependencies: Object
Index signature
▪ [key: string
]: unknown
Type declaration
manager
EntityManagerRequiredInjectedDependencies
InjectedDependencies: Object
Type declaration
InjectedDependencies
InjectedDependencies: Object
Type declaration
manager
EntityManagerRequiredInjectedDependencies
InjectedDependencies: Object
Type declaration
manager
EntityManagerRequiredInjectedProps
InjectedProps: Object
Type declaration
manager
EntityManagerRequiredInventoryItemDTO
InventoryItemDTO: Object
Schema
Title of the inventory item
Type declaration
created_at
string | DateRequireddeleted_at
string | Date | nullRequireddescription
string | nullheight
number | nullhs_code
string | nullid
stringRequiredlength
number | nullmaterial
string | nullmetadata
Record<string, unknown> | nullmid_code
string | nullorigin_country
string | nullrequires_shipping
booleanRequiredsku
string | nullthumbnail
string | nulltitle
string | nullupdated_at
string | DateRequiredweight
number | nullwidth
number | nullInventoryLevelDTO
InventoryLevelDTO: Object
Schema
The date with timezone at which the resource was created.
Type declaration
created_at
string | DateRequireddeleted_at
string | Date | nullRequiredid
stringRequiredincoming_quantity
numberRequiredinventory_item_id
stringRequiredlocation_id
stringRequiredmetadata
Record<string, unknown> | nullRequiredreserved_quantity
numberRequiredstocked_quantity
numberRequiredupdated_at
string | DateRequiredItem
Item: Object
Type declaration
metadata
Record<string, unknown>quantity
numberRequiredtitle
stringunit_price
numbervariant_id
stringIteratorResult
IteratorResult<T
, TReturn
>: IteratorYieldResult
<T
> | IteratorReturnResult
<TReturn
>
Type parameters
T
objectRequiredTReturn
objectRequiredLineAllocationsMap
LineAllocationsMap: object
A map of line item ids and its corresponding gift card and discount allocations
Index signature
▪ [K: string
]: { discount?
: DiscountAllocation
; gift_card?
: GiftCardAllocation
}
LineDiscount
LineDiscount: Object
Associates a line item and discount allocation.
Type declaration
LineDiscountAmount
LineDiscountAmount: Object
Associates a line item and discount allocation.
Type declaration
LineItemAdjustmentServiceProps
LineItemAdjustmentServiceProps: Object
Type declaration
manager
EntityManagerRequiredLineItemTotals
LineItemTotals: Object
Type declaration
discount_total
numberRequiredoriginal_tax_total
numberRequiredoriginal_total
numberRequiredquantity
numberRequiredraw_discount_total
numberRequiredsubtotal
numberRequiredtax_total
numberRequiredtotal
numberRequiredunit_price
numberRequiredLineItemTotals
LineItemTotals: Object
Type declaration
discount_total
numberRequiredoriginal_tax_total
numberRequiredoriginal_total
numberRequiredquantity
numberRequiredraw_discount_total
numberRequiredsubtotal
numberRequiredtax_total
numberRequiredtotal
numberRequiredunit_price
numberRequiredLineItemTotalsOptions
LineItemTotalsOptions: Object
Type declaration
calculation_context
TaxCalculationContextexclude_gift_cards
booleaninclude_tax
booleanuse_tax_lines
booleanLineItemUpdate
LineItemUpdate: Object
Type declaration
metadata
Record<string, unknown>quantity
numberregion_id
stringshould_calculate_prices
booleantitle
stringunit_price
numbervariant_id
stringLineItemValidateData
LineItemValidateData: Object
Type declaration
variant
objectvariant.product_id
stringRequiredvariant_id
stringRequiredListAndCountSelector
ListAndCountSelector: Selector
<ProductCollection
> & { discount_condition_id?
: string
; q?
: string
}
LookupFunction
LookupFunction: (hostname
: string
, options
: LookupOneOptions
, callback
: (err
: ErrnoException
| null
, address
: string
, family
: number
) => void
) => void
Type declaration
(hostname
, options
, callback
): void
Parameters
hostname
stringRequiredReturns
void
void
voidMedusaContainer
MedusaContainer: AwilixContainer
& { createScope
: () => MedusaContainer
; registerAdd
: <T>(name
: string
, registration
: T
) => MedusaContainer
}
MedusaContainer
MedusaContainer: AwilixContainer
& { createScope
: () => MedusaContainer
; registerAdd
: <T>(name
: string
, registration
: T
) => MedusaContainer
}
MiddlewareVerb
MiddlewareVerb: "USE"
| "ALL"
| RouteVerb
ModuleDeclaration
ModuleDeclaration: ExternalModuleDeclaration
| InternalModuleDeclaration
ModulesResponse
ModulesResponse: ModulesResponse
Schema
ModulesResponse type: array items: type: object required:
properties: module: description: The key of the module. type: string resolution: description: The resolution path of the module or false if module is not installed. type: string
OperatorMap
OperatorMap<T
>: Object
Type parameters
T
objectRequiredType declaration
$and
Query<T>[]$contained
string[]$contains
string[]$eq
ExpandScalar<T> | ExpandScalar<T>[]$exists
boolean$fulltext
string$gt
ExpandScalar<T>$gte
ExpandScalar<T>$ilike
string$in
ExpandScalar<T>[]$like
string$lt
ExpandScalar<T>$lte
ExpandScalar<T>$ne
ExpandScalar<T>$nin
ExpandScalar<T>[]$not
Query<T>$or
Query<T>[]$overlap
string[]$re
stringOrder
Order<T
>: { [key in keyof T]?: "ASC" | "DESC" | Order<T[key] extends any[] ? T[key][0] : T[key]\> }
Type parameters
T
objectRequiredOrdersReturnItem
OrdersReturnItem: Object
Type declaration
item_id
stringRequirednote
stringquantity
numberRequiredreason_id
stringPaginatedResponse
PaginatedResponse: Object
Type declaration
count
numberRequiredlimit
numberRequiredoffset
numberRequiredPartial
Partial<T
>: { [P in keyof T]?: T[P] }
Make all properties in T optional
Type parameters
T
objectRequiredPaymentCollectionsSessionsBatchInput
PaymentCollectionsSessionsBatchInput: Object
Type declaration
amount
numberRequiredprovider_id
stringRequiredsession_id
stringPaymentCollectionsSessionsInput
PaymentCollectionsSessionsInput: Object
Type declaration
provider_id
stringRequiredPaymentDataInput
PaymentDataInput: Object
Type declaration
amount
numberRequiredcurrency_code
stringRequireddata
Record<string, unknown>Requiredprovider_id
stringRequiredPaymentProviderKey
PaymentProviderKey: `pp_${string}` | "systemPaymentProviderService"
PaymentSessionInput
PaymentSessionInput: Object
Type declaration
amount
numberRequiredcart
Cart | { billing_address?: Address | null ; context: Record<string, unknown> ; email: string ; id: string ; shipping_address: Address | null ; shipping_methods: ShippingMethod[] }Requiredcurrency_code
stringRequiredcustomer
Customer | nullpaymentSessionData
Record<string, unknown>payment_session_id
stringprovider_id
stringRequiredresource_id
stringPrevLimit
PrevLimit: [never
, 1
, 2
, 3
]
Price
Price: Partial
<Omit
<MoneyAmount
, "created_at"
| "updated_at"
| "deleted_at"
>> & { amount
: number
}
PriceListConstructorProps
PriceListConstructorProps: Object
Type declaration
manager
EntityManagerRequiredPricedProduct
PricedProduct: Omit
<Partial
<Product
>, "variants"
> & { variants
: PricedVariant
[] }
Schema
PricedProduct title: "Priced Product" type: object allOf:
- $ref: "#/components/schemas/Product"
- type: object properties: variants: type: array items: $ref: "#/components/schemas/PricedVariant"
PricedShippingOption
PricedShippingOption: Partial
<ShippingOption
> & ShippingOptionPricing
Schema
PricedShippingOption title: "Priced Shipping Option" type: object allOf:
- $ref: "#/components/schemas/ShippingOption"
- type: object properties: price_incl_tax: type: number description: Price including taxes tax_rates: type: array description: An array of applied tax rates items: type: object properties: rate: type: number description: The tax rate value name: type: string description: The name of the tax rate code: type: string description: The code of the tax rate tax_amount: type: number description: The taxes applied.
PricedVariant
PricedVariant: Partial
<ProductVariant
> & ProductVariantPricing
Schema
PricedVariant title: "Priced Product Variant" type: object allOf:
- $ref: "#/components/schemas/ProductVariant"
- type: object properties: original_price: type: number description: The original price of the variant without any discounted prices applied. calculated_price: type: number description: The calculated price of the variant. Can be a discounted price. original_price_incl_tax: type: number description: The original price of the variant including taxes. calculated_price_incl_tax: type: number description: The calculated price of the variant including taxes. original_tax: type: number description: The taxes applied on the original price. calculated_tax: type: number description: The taxes applied on the calculated price. tax_rates: type: array description: An array of applied tax rates items: type: object properties: rate: type: number description: The tax rate value name: type: string description: The name of the tax rate code: type: string description: The code of the tax rate
PricingContext
PricingContext: Object
Type declaration
automatic_taxes
booleanRequiredtax_rate
number | nullRequiredPrimary
Primary<T
>: T
extends { [PrimaryKeyType]?
: infer PK } ? ReadonlyPrimary
<PK
> : T
extends { _id?
: infer PK } ? ReadonlyPrimary
<PK
> | string
: T
extends { uuid?
: infer PK } ? ReadonlyPrimary
<PK
> : T
extends { id?
: infer PK } ? ReadonlyPrimary
<PK
> : never
Type parameters
T
objectRequiredProductCategoryInput
ProductCategoryInput: Object
Type declaration
handle
stringis_active
booleanis_internal
booleanparent_category
ProductCategory | nullparent_category_id
string | nullrank
numberProductOptionInput
ProductOptionInput: Object
Type declaration
title
stringRequiredvalues
ProductOptionValue[]ProductSelector
ProductSelector: FilterableProductProps
| Selector
<Product
> & { category_id?
: string
[] | FindOperator
<ProductCategory
> ; discount_condition_id?
: string
; price_list_id?
: string
[] | FindOperator
<PriceList
> ; q?
: string
; sales_channel_id?
: string
[] | FindOperator
<SalesChannel
> }
ProductVariantOption
ProductVariantOption: Object
Type declaration
option_id
stringRequiredvalue
stringRequiredProductVariantPrice
ProductVariantPrice: Object
Type declaration
amount
numberRequiredcurrency_code
stringid
stringmax_quantity
numbermin_quantity
numberregion_id
stringProductVariantPricing
ProductVariantPricing: { calculated_price
: number
| null
; calculated_price_includes_tax?
: boolean
| null
; calculated_price_type?
: string
| null
; original_price
: number
| null
; original_price_includes_tax?
: boolean
| null
; prices
: MoneyAmount
[] } & TaxedPricing
PropertyDecorator
PropertyDecorator: (target
: Object
, propertyKey
: string
| symbol
) => void
Type declaration
(target
, propertyKey
): void
Parameters
propertyKey
string | symbolRequiredReturns
void
void
voidPropertyKey
PropertyKey: string
| number
| symbol
ProviderLineItemTaxLine
ProviderLineItemTaxLine: Object
The tax line properties for a given line item.
Type declaration
code
string | nullRequireditem_id
stringRequiredmetadata
Record<string, unknown>name
stringRequiredrate
numberRequiredProviderShippingMethodTaxLine
ProviderShippingMethodTaxLine: Object
The tax line properties for a given shipping method.
Type declaration
code
string | nullRequiredmetadata
Record<string, unknown>name
stringRequiredrate
numberRequiredshipping_method_id
stringRequiredProviderTaxLine
ProviderTaxLine: ProviderLineItemTaxLine
| ProviderShippingMethodTaxLine
A union type of the possible provider tax lines.
Query
Query<T
>: T
extends object
? T
extends Scalar
? never
: FilterQuery
<T
> : FilterValue
<T
>
Type parameters
T
objectRequiredReadableStreamController
ReadableStreamController<T
>: ReadableStreamDefaultController
<T
>
Type parameters
T
objectRequiredReadableStreamDefaultReadResult
ReadableStreamDefaultReadResult<T
>: ReadableStreamDefaultReadValueResult
<T
> | ReadableStreamDefaultReadDoneResult
Type parameters
T
objectRequiredReadonly
Readonly<T
>: { readonly [P in keyof T]: T[P] }
Make all properties in T readonly
Type parameters
T
objectRequiredReadonlyPrimary
ReadonlyPrimary<T
>: T
extends any
[] ? Readonly
<T
> : T
Type parameters
T
objectRequiredRegionDetails
RegionDetails: Object
Type declaration
id
stringRequiredtax_rate
number | nullRequiredRemoteQueryFunction
RemoteQueryFunction: (query
: string
| RemoteJoinerQuery
| object
, variables?
: Record<string
, unknown
>) => Promise
<any
> | null
Type declaration
(query
, variables?
): Promise
<any
> | null
Parameters
variables
Record<string, unknown>Returns
Promise
<any
> | null
Promise<any\> \| ``null``
Promise<any> | nullReorderConditions
ReorderConditions: Object
Type declaration
originalParentId
string | nullRequiredoriginalRank
numberRequiredshouldChangeParent
booleanRequiredshouldChangeRank
booleanRequiredshouldDeleteElement
booleanRequiredshouldIncrementRank
booleanRequiredtargetCategoryId
stringRequiredtargetParentId
string | null | undefinedRequiredtargetRank
number | undefinedRequiredRequestContext
RequestContext: Object
Type declaration
ip
stringRequiredReservationItemDTO
ReservationItemDTO: Object
Schema
Represents a reservation of an inventory item at a stock location
Type declaration
created_at
string | DateRequiredcreated_by
string | nulldeleted_at
string | Date | nullRequireddescription
string | nullid
stringRequiredinventory_item_id
stringRequiredline_item_id
string | nulllocation_id
stringRequiredmetadata
Record<string, unknown> | nullRequiredquantity
numberRequiredupdated_at
string | DateRequiredReserveQuantityContext
ReserveQuantityContext: Object
Type declaration
lineItemId
stringlocationId
stringsalesChannelId
string | nullReturnedData
ReturnedData: Object
Type declaration
data
Record<string, unknown>Requiredstatus
stringRequiredto
stringRequiredRouteVerb
RouteVerb: typeof HTTP_METHODS
[number
]
Scalar
Scalar: boolean
| number
| string
| bigint
| symbol
| Date
| RegExp
| Buffer
| { toHexString
: Method toHexString }
SessionOptions
SessionOptions: Object
Type declaration
name
stringresave
booleanrolling
booleansaveUninitialized
booleansecret
stringttl
numberShippingMethod
ShippingMethod: Object
Type declaration
data
Record<string, unknown>option_id
stringRequiredprice
numberShippingMethodData
ShippingMethodData: Record<string
, unknown
>
ShippingMethodTotals
ShippingMethodTotals: Object
Type declaration
original_tax_total
numberRequiredoriginal_total
numberRequiredprice
numberRequiredsubtotal
numberRequiredtax_total
numberRequiredtotal
numberRequiredShippingMethodTotals
ShippingMethodTotals: Object
Type declaration
original_tax_total
numberRequiredoriginal_total
numberRequiredprice
numberRequiredsubtotal
numberRequiredtax_total
numberRequiredtotal
numberRequiredShippingMethodUpdate
ShippingMethodUpdate: Object
Type declaration
claim_order_id
string | nulldata
anyorder_id
stringprice
numberreturn_id
stringswap_id
stringShippingOptionData
ShippingOptionData: Record<string
, unknown
>
ShippingOptionPricing
ShippingOptionPricing: Object
Type declaration
SocketConnectOpts
SocketConnectOpts: TcpSocketConnectOpts
| IpcSocketConnectOpts
SocketReadyState
SocketReadyState: "opening"
| "open"
| "readOnly"
| "writeOnly"
| "closed"
StagedJobServiceProps
StagedJobServiceProps: Object
Type declaration
manager
EntityManagerRequiredStockLocationDTO
StockLocationDTO: Object
Schema
Represents a Stock Location
Type declaration
address
StockLocationAddressDTOaddress_id
stringRequiredcreated_at
string | DateRequireddeleted_at
string | Date | nullRequiredid
stringRequiredmetadata
Record<string, unknown> | nullRequiredname
stringRequiredupdated_at
string | DateRequiredStockLocationExpandedDTO
StockLocationExpandedDTO: StockLocationDTO
& { sales_channels?
: any
[] }
Schema
StockLocationExpandedDTO allOf:
- $ref: "#/components/schemas/StockLocationDTO"
- type: object properties: sales_channels: $ref: "#/components/schemas/SalesChannel"
Subscriber
Subscriber<T
>: (data
: T
, eventName
: string
) => Promise
<void
>
Type parameters
T
objectRequiredType declaration
(data
, eventName
): Promise
<void
>
Parameters
data
TRequiredeventName
stringRequiredReturns
Promise
<void
>
Promise
Promise<void>RequiredSubscriberContext
SubscriberContext: Object
Type declaration
subscriberId
stringRequiredSubtotalOptions
SubtotalOptions: Object
Options to use for subtotal calculations
Type declaration
excludeNonDiscounts
booleanTaxLinesMaps
TaxLinesMaps: Object
Type declaration
lineItemsTaxLines
objectRequiredshippingMethodsTaxLines
objectRequiredTaxRateListByConfig
TaxRateListByConfig: Object
Type declaration
region_id
stringTaxServiceRate
TaxServiceRate: Object
The tax rate object as configured in Medusa. These may have an unspecified numerical rate as they may be used for lookup purposes in the tax provider plugin.
Type declaration
code
string | nullRequiredname
stringRequiredrate
number | nullTaxedPricing
TaxedPricing: Object
Type declaration
calculated_price_incl_tax
number | nullRequiredcalculated_tax
number | nullRequiredoriginal_price_incl_tax
number | nullRequiredoriginal_tax
number | nullRequiredTotalsConfig
TotalsConfig: Object
Type declaration
force_taxes
booleanTotalsContext
TotalsContext: Object
Type declaration
force_taxes
booleanincludes
objectincludes.returnable_items
booleanTotalsServiceProps
TotalsServiceProps: Object
Type declaration
manager
EntityManagerRequiredTransformCallback
TransformCallback: (error?
: Error
| null
, data?
: any
) => void
Type declaration
(error?
, data?
): void
Parameters
error
Error | nulldata
anyReturns
void
void
voidTransformer
Transformer: (item?
: LineItem
, quantity?
: number
, additional?
: OrdersReturnItem
) => Promise
<DeepPartial
<LineItem
>> | DeepPartial
<LineItem
>
Type declaration
(item?
, quantity?
, additional?
): Promise
<DeepPartial
<LineItem
>> | DeepPartial
<LineItem
>
Parameters
Returns
Promise
<DeepPartial
<LineItem
>> | DeepPartial
<LineItem
>
TypedArray
TypedArray: Uint8Array
| Uint8ClampedArray
| Uint16Array
| Uint32Array
| Int8Array
| Int16Array
| Int32Array
| BigUint64Array
| BigInt64Array
| Float32Array
| Float64Array
UpdateAnalyticsConfig
UpdateAnalyticsConfig: Object
Type declaration
anonymize
booleanopt_out
booleanUpdateClaimInput
UpdateClaimInput: Object
Type declaration
claim_items
UpdateClaimItemInput[]metadata
Record<string, unknown>no_notification
booleanshipping_methods
UpdateClaimShippingMethodInput[]UpdateClaimItemImageInput
UpdateClaimItemImageInput: Object
Type declaration
id
stringurl
stringUpdateClaimItemInput
UpdateClaimItemInput: Object
Type declaration
id
stringRequiredmetadata
Record<string, unknown>note
stringreason
stringUpdateClaimItemTagInput
UpdateClaimItemTagInput: Object
Type declaration
id
stringvalue
stringUpdateClaimShippingMethodInput
UpdateClaimShippingMethodInput: Object
Type declaration
data
Record<string, unknown>id
stringoption_id
stringprice
numberUpdateCurrencyInput
UpdateCurrencyInput: Object
Type declaration
includes_tax
booleanUpdateCustomerInput
UpdateCustomerInput: Object
Type declaration
billing_address
AddressPayload | stringbilling_address_id
stringemail
stringfirst_name
stringgroups
{ id: string }[]last_name
stringmetadata
Record<string, unknown>password
stringphone
stringUpdateDiscountInput
UpdateDiscountInput: Object
Type declaration
code
stringends_at
Date | nullis_disabled
booleanmetadata
Record<string, unknown>regions
string[]starts_at
Dateusage_limit
number | nullvalid_duration
string | nullUpdateDiscountRuleInput
UpdateDiscountRuleInput: Object
Type declaration
allocation
AllocationTypeconditions
DiscountConditionInput[]description
stringid
stringRequiredvalue
numberUpdateGiftCardInput
UpdateGiftCardInput: Object
Type declaration
balance
numberends_at
Date | nullis_disabled
booleanmetadata
Record<string, unknown>region_id
stringUpdateOauthInput
UpdateOauthInput: Object
Type declaration
data
Record<string, unknown>RequiredUpdateOrderInput
UpdateOrderInput: Object
Type declaration
billing_address
AddressPayloadcustomer_id
stringdiscounts
object[]email
stringfulfillment_status
FulfillmentStatusitems
object[]metadata
Record<string, unknown>no_notification
booleanpayment
Paymentpayment_method
objectpayment_method.data
Record<string, unknown>payment_method.provider_id
stringpayment_status
PaymentStatusregion
stringshipping_address
AddressPayloadshipping_method
{ data?: Record<string, unknown> ; items?: Record<string, unknown>[] ; price?: number ; profile_id?: string ; provider_id?: string }[]status
OrderStatusUpdateProductCategoryInput
UpdateProductCategoryInput: ProductCategoryInput
& { name?
: string
}
UpdateProductCollection
UpdateProductCollection: Object
Type declaration
handle
stringmetadata
Record<string, unknown>title
stringUpdateProductInput
UpdateProductInput: Omit
<Partial
<CreateProductInput
>, "variants"
> & { variants?
: UpdateProductProductVariantDTO
[] }
UpdateProductProductVariantDTO
UpdateProductProductVariantDTO: Object
Type declaration
allow_backorder
booleanbarcode
stringean
stringheight
numberhs_code
stringid
stringinventory_quantity
numberlength
numbermanage_inventory
booleanmaterial
stringmetadata
Record<string, unknown>mid_code
stringoptions
{ option_id: string ; value: string }[]origin_country
stringsku
stringtitle
stringupc
stringweight
numberwidth
numberUpdateProductVariantData
UpdateProductVariantData: Object
Type declaration
UpdateProductVariantInput
UpdateProductVariantInput: Object
Type declaration
allow_backorder
booleanbarcode
stringean
stringheight
numberhs_code
stringinventory_quantity
numberlength
numbermanage_inventory
booleanmaterial
stringmetadata
Record<string, unknown>mid_code
stringoptions
ProductVariantOption[]origin_country
stringprices
ProductVariantPrice[]product_id
stringsku
stringtitle
stringupc
stringvariant_rank
numberweight
numberwidth
numberUpdateRegionInput
UpdateRegionInput: Object
Type declaration
automatic_taxes
booleancountries
string[]currency_code
stringfulfillment_providers
string[]gift_cards_taxable
booleanincludes_tax
booleanmetadata
Record<string, unknown>name
stringpayment_providers
string[]tax_code
stringtax_provider_id
string | nulltax_rate
numberUpdateReturnInput
UpdateReturnInput: Object
Type declaration
items
OrdersReturnItem[]metadata
Record<string, unknown>no_notification
booleanshipping_method
objectshipping_method.option_id
stringRequiredshipping_method.price
numberUpdateReturnReason
UpdateReturnReason: Object
Type declaration
description
stringlabel
stringmetadata
Record<string, unknown>parent_return_reason_id
stringUpdateShippingOptionInput
UpdateShippingOptionInput: Object
Type declaration
admin_only
booleanamount
numberdata
stringincludes_tax
booleanis_return
booleanmetadata
Record<string, unknown>name
stringprice_type
ShippingOptionPriceTypeprofile_id
stringprovider_id
stringregion_id
stringrequirements
ShippingOptionRequirement[]UpdateShippingProfile
UpdateShippingProfile: Object
Type declaration
metadata
Record<string, unknown>name
stringproducts
string[]shipping_options
string[]UpdateStoreInput
UpdateStoreInput: Object
Type declaration
currencies
string[]default_currency_code
stringdefault_sales_channel_id
stringinvite_link_template
stringmetadata
Record<string, unknown>name
stringpayment_link_template
stringswap_link_template
stringUpdateTaxRateInput
UpdateTaxRateInput: Object
Type declaration
code
stringname
stringrate
number | nullregion_id
stringUpdateVariantPricesData
UpdateVariantPricesData: Object
Type declaration
variantId
stringRequiredUpdateVariantRegionPriceData
UpdateVariantRegionPriceData: Object
Type declaration
price
objectRequiredprice.amount
numberRequiredprice.currency_code
stringRequiredprice.region_id
stringRequiredvariantId
stringRequiredUploadStreamDescriptorType
UploadStreamDescriptorType: Object
Index signature
▪ [x: string
]: unknown
Type declaration
ext
stringisPrivate
booleanname
stringRequiredUpsertTagsInput
UpsertTagsInput: Partial
<ProductTag
> & { value
: string
}[]
UpsertTypeInput
UpsertTypeInput: Partial
<ProductType
> & { value
: string
}
UserServiceProps
UserServiceProps: Object
Type declaration
manager
EntityManagerRequiredWithImplicitCoercion
WithImplicitCoercion<T
>: T
| { valueOf
: Method valueOf }
Type parameters
T
objectRequiredhandler
handler: (req
: Request
, res
: Response
) => Promise
<void
>
Type declaration
(req
, res
): Promise
<void
>
Parameters
req
RequestRequiredres
ResponseRequiredReturns
Promise
<void
>
Promise
Promise<void>RequiredmiddlewareHandlerType
middlewareHandlerType: (options
: Record<string
, unknown
>) => RequestHandler
Type declaration
(options
): RequestHandler
Parameters
options
Record<string, unknown>RequiredReturns
RequestHandler
middlewareType
middlewareType: Object
Type declaration
options
Record<string, unknown>RequiredVariables
AddressRepository
Const
AddressRepository: Repository
AdminGetDiscountsParams_base
Const
AdminGetDiscountsParams_base: internal
AdminGetInventoryItemsParams_base
Const
AdminGetInventoryItemsParams_base: internal
AdminGetPriceListsPriceListProductsParams_base
Const
AdminGetPriceListsPriceListProductsParams_base: internal
AdminGetProductCategoriesParams_base
Const
AdminGetProductCategoriesParams_base: internal
AdminGetReservationsParams_base
Const
AdminGetReservationsParams_base: internal
AdminGetSalesChannelsParams_base
Const
AdminGetSalesChannelsParams_base: internal
AdminGetStockLocationsParams_base
Const
AdminGetStockLocationsParams_base: internal
AnalyticsConfigRepository
Const
AnalyticsConfigRepository: Repository
BatchJobRepository
Const
BatchJobRepository: Repository
Buffer
Buffer: BufferConstructor
CartRepository
Const
CartRepository: Repository
& { findOneWithRelations
: Method findOneWithRelations ; findWithRelations
: Method findWithRelations }
ClaimRepository
Const
ClaimRepository: Repository
CountryRepository
Const
CountryRepository: Repository
CurrencyRepository
Const
CurrencyRepository: Repository
CustomShippingOptionRepository
Const
CustomShippingOptionRepository: Repository
CustomerGroupRepository
Const
CustomerGroupRepository: Repository
& { addCustomers
: Method addCustomers ; findWithRelationsAndCount
: Method findWithRelationsAndCount ; removeCustomers
: Method removeCustomers }
CustomerRepository
Const
CustomerRepository: Repository
& { listAndCount
: Method listAndCount }
DiscountConditionRepository
Const
DiscountConditionRepository: Repository
& { addConditionResources
: Method addConditionResources ; canApplyForCustomer
: Method canApplyForCustomer ; findOneWithDiscount
: Method findOneWithDiscount ; getJoinTableResourceIdentifiers
: Method getJoinTableResourceIdentifiers ; isValidForProduct
: Method isValidForProduct ; queryConditionTable
: Method queryConditionTable ; removeConditionResources
: Method removeConditionResources }
DraftOrderRepository
Const
DraftOrderRepository: Repository
FulfillmentProviderRepository
Const
FulfillmentProviderRepository: Repository
FulfillmentRepository
Const
FulfillmentRepository: Repository
GetOrderEditsParams_base
Const
GetOrderEditsParams_base: internal
GetPublishableApiKeySalesChannelsParams_base
Const
GetPublishableApiKeySalesChannelsParams_base: internal
GetPublishableApiKeysParams_base
Const
GetPublishableApiKeysParams_base: internal
GiftCardRepository
Const
GiftCardRepository: Repository
& { listGiftCardsAndCount
: Method listGiftCardsAndCount }
GiftCardTransactionRepository
Const
GiftCardTransactionRepository: Repository
HTTP_METHODS
Const
HTTP_METHODS: readonly ["GET"
, "POST"
, "PUT"
, "PATCH"
, "DELETE"
, "OPTIONS"
, "HEAD"
]
List of all the supported HTTP methods
IdempotencyKeyRepository
Const
IdempotencyKeyRepository: Repository
ImageRepository
Const
ImageRepository: Repository
& { insertBulk
: Method insertBulk ; upsertImages
: Method upsertImages }
LineItemAdjustmentRepository
Const
LineItemAdjustmentRepository: Repository
LineItemRepository
Const
LineItemRepository: Repository
& { findByReturn
: Method findByReturn }
LineItemTaxLineRepository
Const
LineItemTaxLineRepository: Repository
& { deleteForCart
: Method deleteForCart ; upsertLines
: Method upsertLines }
MoneyAmountRepository
Const
MoneyAmountRepository: Repository
& { addPriceListPrices
: Method addPriceListPrices ; createProductVariantMoneyAmounts
: Method createProductVariantMoneyAmounts ; deletePriceListPrices
: Method deletePriceListPrices ; deleteVariantPricesNotIn
: Method deleteVariantPricesNotIn ; findCurrencyMoneyAmounts
: Method findCurrencyMoneyAmounts ; findManyForVariantInPriceList
: Method findManyForVariantInPriceList ; findManyForVariantInRegion
: Method findManyForVariantInRegion ; findManyForVariantsInRegion
: Method findManyForVariantsInRegion ; findRegionMoneyAmounts
: Method findRegionMoneyAmounts ; findVariantPricesNotIn
: Method findVariantPricesNotIn ; getPricesForVariantInRegion
: Method getPricesForVariantInRegion ; insertBulk
: Method insertBulk ; updatePriceListPrices
: Method updatePriceListPrices ; upsertVariantCurrencyPrice
: Method upsertVariantCurrencyPrice }
NoteRepository
Const
NoteRepository: Repository
NotificationProviderRepository
Const
NotificationProviderRepository: Repository
NotificationRepository
Const
NotificationRepository: Repository
OauthRepository
Const
OauthRepository: Repository
OrderEditRepository
Const
OrderEditRepository: Repository
OrderItemChangeRepository
Const
OrderItemChangeRepository: Repository
OrderRepository
Const
OrderRepository: Repository
& { findOneWithRelations
: Method findOneWithRelations ; findWithRelations
: Method findWithRelations }
PaymentCollectionRepository
Const
PaymentCollectionRepository: Repository
& { getPaymentCollectionIdByPaymentId
: Method getPaymentCollectionIdByPaymentId ; getPaymentCollectionIdBySessionId
: Method getPaymentCollectionIdBySessionId }
PaymentProviderRepository
Const
PaymentProviderRepository: Repository
PaymentRepository
Const
PaymentRepository: Repository
PaymentSessionRepository
Const
PaymentSessionRepository: Repository
PriceListRepository
Const
PriceListRepository: Repository
& { listAndCount
: Method listAndCount ; listPriceListsVariantIdsMap
: Method listPriceListsVariantIdsMap }
ProductCategoryRepository
Const
ProductCategoryRepository: TreeRepository
& { addProducts
: Method addProducts ; findOneWithDescendants
: Method findOneWithDescendants ; getFreeTextSearchResultsAndCount
: Method getFreeTextSearchResultsAndCount ; removeProducts
: Method removeProducts }
ProductCollectionRepository
Const
ProductCollectionRepository: Repository
& { findAndCountByDiscountConditionId
: Method findAndCountByDiscountConditionId }
ProductOptionRepository
Const
ProductOptionRepository: Repository
ProductRepository
Const
ProductRepository: Repository
& { _applyCategoriesQuery
: Method _applyCategoriesQuery ; _findWithRelations
: Method _findWithRelations ; bulkAddToCollection
: Method bulkAddToCollection ; bulkRemoveFromCollection
: Method bulkRemoveFromCollection ; findOneWithRelations
: Method findOneWithRelations ; findWithRelations
: Method findWithRelations ; findWithRelationsAndCount
: Method findWithRelationsAndCount ; getCategoryIdsFromInput
: Method getCategoryIdsFromInput ; getCategoryIdsRecursively
: Method getCategoryIdsRecursively ; getFreeTextSearchResultsAndCount
: Method getFreeTextSearchResultsAndCount ; isProductInSalesChannels
: Method isProductInSalesChannels ; queryProducts
: Method queryProducts ; queryProductsWithIds
: Method queryProductsWithIds }
ProductTagRepository
Const
ProductTagRepository: Repository
& { findAndCountByDiscountConditionId
: Method findAndCountByDiscountConditionId ; insertBulk
: Method insertBulk ; listTagsByUsage
: Method listTagsByUsage ; upsertTags
: Method upsertTags }
ProductTypeRepository
Const
ProductTypeRepository: Repository
& { findAndCountByDiscountConditionId
: Method findAndCountByDiscountConditionId ; upsertType
: Method upsertType }
ProductVariantRepository
Const
ProductVariantRepository: Repository
ReadableByteStreamController
ReadableByteStreamController: Object
Call signature
new ReadableByteStreamController(): ReadableByteStreamController
Returns
Type declaration
ReadableStream
ReadableStream: Object
Call signature
new ReadableStream(underlyingSource
, strategy?
): ReadableStream
<Uint8Array
>
Parameters
strategy
QueuingStrategy<Uint8Array>Returns
ReadableStream
<Uint8Array
>
new ReadableStream<R
>(underlyingSource?
, strategy?
): ReadableStream
<R
>
R
objectRequiredParameters
underlyingSource
UnderlyingSource<R>strategy
QueuingStrategy<R>Returns
Type declaration
ReadableStreamDefaultController
ReadableStreamDefaultController: Object
Call signature
new ReadableStreamDefaultController(): ReadableStreamDefaultController
<any
>
Returns
ReadableStreamDefaultController
<any
>
Type declaration
ReadableStreamDefaultReader
ReadableStreamDefaultReader: Object
Call signature
new ReadableStreamDefaultReader<R
>(stream
): ReadableStreamDefaultReader
<R
>
R
objectRequiredParameters
Returns
ReadableStreamDefaultReader
<R
>
Type declaration
RefundRepository
Const
RefundRepository: Repository
RegionRepository
Const
RegionRepository: Repository
ReturnItemRepository
Const
ReturnItemRepository: Repository
ReturnReasonRepository
Const
ReturnReasonRepository: Repository
ReturnRepository
Const
ReturnRepository: Repository
SalesChannelRepository
Const
SalesChannelRepository: Repository
& { addProducts
: Method addProducts ; getFreeTextSearchResultsAndCount
: Method getFreeTextSearchResultsAndCount ; listProductIdsBySalesChannelIds
: Method listProductIdsBySalesChannelIds ; removeProducts
: Method removeProducts }
SharedArrayBuffer
SharedArrayBuffer: SharedArrayBufferConstructor
ShippingMethodRepository
Const
ShippingMethodRepository: Repository
ShippingOptionRepository
Const
ShippingOptionRepository: Repository
& { upsertShippingProfile
: Method upsertShippingProfile }
ShippingOptionRequirementRepository
Const
ShippingOptionRequirementRepository: Repository
ShippingProfileRepository
Const
ShippingProfileRepository: Repository
& { findByProducts
: Method findByProducts }
StagedJobRepository
Const
StagedJobRepository: Repository
& { insertBulk
: Method insertBulk }
StoreGetProductCategoriesParams_base
Const
StoreGetProductCategoriesParams_base: internal
StoreRepository
Const
StoreRepository: Repository
SwapRepository
Const
SwapRepository: Repository
TaxProviderRepository
Const
TaxProviderRepository: Repository
TrackingLinkRepository
Const
TrackingLinkRepository: Repository
UserRepository
Const
UserRepository: Repository
WritableStream
WritableStream: Object
Call signature
new WritableStream<W
>(underlyingSink?
, strategy?
): WritableStream
<W
>
W
objectRequiredParameters
underlyingSink
UnderlyingSink<W>strategy
QueuingStrategy<W>Returns
Type declaration
WritableStreamDefaultController
WritableStreamDefaultController: Object
Call signature
new WritableStreamDefaultController(): WritableStreamDefaultController
Returns
WritableStreamDefaultController
Type declaration
WritableStreamDefaultWriter
WritableStreamDefaultWriter: Object
Call signature
new WritableStreamDefaultWriter<W
>(stream
): WritableStreamDefaultWriter
<W
>
W
objectRequiredParameters
Returns
WritableStreamDefaultWriter
<W
>
Type declaration
Functions
Error
Error(message?
): Error
Parameters
message
stringReturns
Object
Object(): any
Provides functionality common to all JavaScript objects.
Returns
any
any
anyObject(value
): any
Provides functionality common to all JavaScript objects.
Parameters
value
anyRequiredReturns
any
any
any