feat: region payment providers management workflows/api (#6864)

This commit is contained in:
Adrien de Peretti
2024-04-04 20:41:34 +02:00
committed by GitHub
parent 12fcb655cd
commit e944a627f0
48 changed files with 1033 additions and 89 deletions
+1 -1
View File
@@ -465,7 +465,7 @@ export interface FilterablePaymentProviderProps
/**
* The IDs to filter the payment collection by.
*/
id?: string | string[]
id?: string | string[] | OperatorMap<string | string[]>
/**
* Filter by enabled status
+1 -1
View File
@@ -76,7 +76,7 @@ export interface FilterableRegionProps
/**
* The IDs to filter the regions by.
*/
id?: string[] | string
id?: string[] | string | OperatorMap<string | string[]>
/**
* Filter regions by their name.
*/
+1
View File
@@ -4,4 +4,5 @@ export * as ProductWorkflow from "./product"
export * as InventoryWorkflow from "./inventory"
export * as PriceListWorkflow from "./price-list"
export * as UserWorkflow from "./user"
export * as RegionWorkflow from "./region"
export * as InviteWorkflow from "./invite"
@@ -0,0 +1,9 @@
import { CreateRegionDTO, RegionDTO } from "../../region"
export interface CreateRegionsWorkflowInput {
regions: (CreateRegionDTO & {
payment_providers?: string[]
})[]
}
export type CreateRegionsWorkflowOutput = RegionDTO[]
@@ -0,0 +1,2 @@
export * from "./update-regions"
export * from "./create-regions"
@@ -0,0 +1,10 @@
import { FilterableRegionProps, RegionDTO, UpdateRegionDTO } from "../../region"
export interface UpdateRegionsWorkflowInput {
selector: FilterableRegionProps
update: UpdateRegionDTO & {
payment_providers?: string[]
}
}
export type UpdateRegionsWorkflowOutput = RegionDTO[]