feat(customer): add remove from group, update group (#6158)
Open #6149 again - was merged to wrong base branch.
This commit is contained in:
1 parent
99045848fd
commit
f72340ad87
3 files changed
+194
-1
No files matched your search
@@ -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>,
|
||||
|
||||
Reference in new issue
Block a user