feat(products,types,pricing): allow scoping products by collection_id + pricing by currency_code (#4965)

* chore: allow scoping products by collection_id

* chore: scope money amounts by currency code + change category_ids to category_id

* chore: add an extra product to test without collection

---------

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
This commit is contained in:
Riqwan Thamir
2023-09-07 09:06:50 +02:00
committed by GitHub
co-authored by Oli Juhl
parent b71776738c
commit 66bd9a835c
11 changed files with 438 additions and 140 deletions
@@ -30,4 +30,5 @@ export interface UpdateMoneyAmountDTO {
export interface FilterableMoneyAmountProps
extends BaseFilterable<FilterableMoneyAmountProps> {
id?: string[]
currency_code?: string | string[]
}
+2 -1
View File
@@ -164,7 +164,8 @@ export interface FilterableProductProps
categories?: {
id?: string | string[] | OperatorMap<string>
}
category_ids?: string | string[] | OperatorMap<string>
category_id?: string | string[] | OperatorMap<string>
collection_id?: string | string[] | OperatorMap<string>
}
export interface FilterableProductTagProps