feat(customer): add customer group management apis (#6233)
**What** ``` POST /admin/customer-groups POST /admin/customer-groups/:id GET /admin/customer-groups/:id DELETE /admin/customer-groups/:id ``` - Workflows
This commit is contained in:
@@ -71,7 +71,7 @@ export interface CreateCustomerGroupDTO {
|
||||
created_by?: string
|
||||
}
|
||||
|
||||
export interface CustomerGroupUpdatableFileds {
|
||||
export interface CustomerGroupUpdatableFields {
|
||||
name?: string
|
||||
metadata?: Record<string, unknown> | null
|
||||
}
|
||||
|
||||
@@ -17,6 +17,7 @@ import {
|
||||
CreateCustomerAddressDTO,
|
||||
CreateCustomerDTO,
|
||||
CreateCustomerGroupDTO,
|
||||
CustomerGroupUpdatableFields,
|
||||
CustomerUpdatableFields,
|
||||
UpdateCustomerAddressDTO,
|
||||
} from "./mutations"
|
||||
@@ -75,17 +76,17 @@ export interface ICustomerModuleService extends IModuleService {
|
||||
|
||||
updateCustomerGroup(
|
||||
groupId: string,
|
||||
data: Partial<CreateCustomerGroupDTO>,
|
||||
data: CustomerGroupUpdatableFields,
|
||||
sharedContext?: Context
|
||||
): Promise<CustomerGroupDTO>
|
||||
updateCustomerGroup(
|
||||
groupIds: string[],
|
||||
data: Partial<CreateCustomerGroupDTO>,
|
||||
data: CustomerGroupUpdatableFields,
|
||||
sharedContext?: Context
|
||||
): Promise<CustomerGroupDTO[]>
|
||||
updateCustomerGroup(
|
||||
selector: FilterableCustomerGroupProps,
|
||||
data: Partial<CreateCustomerGroupDTO>,
|
||||
data: CustomerGroupUpdatableFields,
|
||||
sharedContext?: Context
|
||||
): Promise<CustomerGroupDTO[]>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user