feat(customer): add remove from group, update group (#6158)

Open #6149 again - was merged to wrong base branch.
This commit is contained in:
Sebastian Rindom authored and GitHub committed 2024-01-22 13:49:13 +00:00
1 parent 99045848fd
commit f72340ad87
3 files changed
+194 -1

No files matched your search

+25
View File
@@ -57,6 +57,22 @@ export interface ICustomerModuleService extends IModuleService {
sharedContext?: Context
): Promise<CustomerGroupDTO>
updateCustomerGroup(
groupId: string,
data: Partial<CreateCustomerGroupDTO>,
sharedContext?: Context
): Promise<CustomerGroupDTO>
updateCustomerGroup(
groupIds: string[],
data: Partial<CreateCustomerGroupDTO>,
sharedContext?: Context
): Promise<CustomerGroupDTO[]>
updateCustomerGroup(
selector: FilterableCustomerGroupProps,
data: Partial<CreateCustomerGroupDTO>,
sharedContext?: Context
): Promise<CustomerGroupDTO[]>
addCustomerToGroup(
groupCustomerPair: GroupCustomerPair,
sharedContext?: Context
@@ -67,6 +83,15 @@ export interface ICustomerModuleService extends IModuleService {
sharedContext?: Context
): Promise<{ id: string }[]>
removeCustomerFromGroup(
groupCustomerPair: { customer_id: string; customer_group_id: string },
sharedContext?: Context
): Promise<void>
removeCustomerFromGroup(
groupCustomerPairs: { customer_id: string; customer_group_id: string }[],
sharedContext?: Context
): Promise<void>
list(
filters?: FilterableCustomerProps,
config?: FindConfig<CustomerDTO>,