|
@@ -1839,6 +1839,8 @@ export type Mutation = {
|
|
|
deleteCustomer: DeletionResponse;
|
|
deleteCustomer: DeletionResponse;
|
|
|
/** Update an existing Address */
|
|
/** Update an existing Address */
|
|
|
deleteCustomerAddress: Scalars['Boolean'];
|
|
deleteCustomerAddress: Scalars['Boolean'];
|
|
|
|
|
+ /** Delete a CustomerGroup */
|
|
|
|
|
+ deleteCustomerGroup: DeletionResponse;
|
|
|
/** Delete an existing Facet */
|
|
/** Delete an existing Facet */
|
|
|
deleteFacet: DeletionResponse;
|
|
deleteFacet: DeletionResponse;
|
|
|
/** Delete one or more FacetValues */
|
|
/** Delete one or more FacetValues */
|
|
@@ -2102,6 +2104,11 @@ export type MutationDeleteCustomerAddressArgs = {
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+export type MutationDeleteCustomerGroupArgs = {
|
|
|
|
|
+ id: Scalars['ID'];
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
export type MutationDeleteFacetArgs = {
|
|
export type MutationDeleteFacetArgs = {
|
|
|
id: Scalars['ID'];
|
|
id: Scalars['ID'];
|
|
|
force?: Maybe<Scalars['Boolean']>;
|
|
force?: Maybe<Scalars['Boolean']>;
|
|
@@ -4245,7 +4252,7 @@ export type GetCustomerListQuery = (
|
|
|
& Pick<CustomerList, 'totalItems'>
|
|
& Pick<CustomerList, 'totalItems'>
|
|
|
& { items: Array<(
|
|
& { items: Array<(
|
|
|
{ __typename?: 'Customer' }
|
|
{ __typename?: 'Customer' }
|
|
|
- & Pick<Customer, 'id' | 'title' | 'firstName' | 'lastName' | 'emailAddress'>
|
|
|
|
|
|
|
+ & Pick<Customer, 'id' | 'createdAt' | 'updatedAt' | 'title' | 'firstName' | 'lastName' | 'emailAddress'>
|
|
|
& { user?: Maybe<(
|
|
& { user?: Maybe<(
|
|
|
{ __typename?: 'User' }
|
|
{ __typename?: 'User' }
|
|
|
& Pick<User, 'id' | 'verified'>
|
|
& Pick<User, 'id' | 'verified'>
|
|
@@ -4330,6 +4337,112 @@ export type UpdateCustomerAddressMutation = (
|
|
|
) }
|
|
) }
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
|
|
+export type CreateCustomerGroupMutationVariables = {
|
|
|
|
|
+ input: CreateCustomerGroupInput;
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+export type CreateCustomerGroupMutation = (
|
|
|
|
|
+ { __typename?: 'Mutation' }
|
|
|
|
|
+ & { createCustomerGroup: (
|
|
|
|
|
+ { __typename?: 'CustomerGroup' }
|
|
|
|
|
+ & Pick<CustomerGroup, 'id' | 'createdAt' | 'updatedAt' | 'name'>
|
|
|
|
|
+ ) }
|
|
|
|
|
+);
|
|
|
|
|
+
|
|
|
|
|
+export type UpdateCustomerGroupMutationVariables = {
|
|
|
|
|
+ input: UpdateCustomerGroupInput;
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+export type UpdateCustomerGroupMutation = (
|
|
|
|
|
+ { __typename?: 'Mutation' }
|
|
|
|
|
+ & { updateCustomerGroup: (
|
|
|
|
|
+ { __typename?: 'CustomerGroup' }
|
|
|
|
|
+ & Pick<CustomerGroup, 'id' | 'createdAt' | 'updatedAt' | 'name'>
|
|
|
|
|
+ ) }
|
|
|
|
|
+);
|
|
|
|
|
+
|
|
|
|
|
+export type DeleteCustomerGroupMutationVariables = {
|
|
|
|
|
+ id: Scalars['ID'];
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+export type DeleteCustomerGroupMutation = (
|
|
|
|
|
+ { __typename?: 'Mutation' }
|
|
|
|
|
+ & { deleteCustomerGroup: (
|
|
|
|
|
+ { __typename?: 'DeletionResponse' }
|
|
|
|
|
+ & Pick<DeletionResponse, 'result' | 'message'>
|
|
|
|
|
+ ) }
|
|
|
|
|
+);
|
|
|
|
|
+
|
|
|
|
|
+export type GetCustomerGroupsQueryVariables = {
|
|
|
|
|
+ options?: Maybe<CustomerGroupListOptions>;
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+export type GetCustomerGroupsQuery = (
|
|
|
|
|
+ { __typename?: 'Query' }
|
|
|
|
|
+ & { customerGroups: (
|
|
|
|
|
+ { __typename?: 'CustomerGroupList' }
|
|
|
|
|
+ & Pick<CustomerGroupList, 'totalItems'>
|
|
|
|
|
+ & { items: Array<(
|
|
|
|
|
+ { __typename?: 'CustomerGroup' }
|
|
|
|
|
+ & Pick<CustomerGroup, 'id' | 'createdAt' | 'updatedAt' | 'name'>
|
|
|
|
|
+ )> }
|
|
|
|
|
+ ) }
|
|
|
|
|
+);
|
|
|
|
|
+
|
|
|
|
|
+export type GetCustomerGroupWithCustomersQueryVariables = {
|
|
|
|
|
+ id: Scalars['ID'];
|
|
|
|
|
+ options?: Maybe<CustomerListOptions>;
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+export type GetCustomerGroupWithCustomersQuery = (
|
|
|
|
|
+ { __typename?: 'Query' }
|
|
|
|
|
+ & { customerGroup?: Maybe<(
|
|
|
|
|
+ { __typename?: 'CustomerGroup' }
|
|
|
|
|
+ & Pick<CustomerGroup, 'id' | 'createdAt' | 'updatedAt' | 'name'>
|
|
|
|
|
+ & { customers: (
|
|
|
|
|
+ { __typename?: 'CustomerList' }
|
|
|
|
|
+ & Pick<CustomerList, 'totalItems'>
|
|
|
|
|
+ & { items: Array<(
|
|
|
|
|
+ { __typename?: 'Customer' }
|
|
|
|
|
+ & Pick<Customer, 'id' | 'createdAt' | 'updatedAt' | 'emailAddress' | 'firstName' | 'lastName'>
|
|
|
|
|
+ )> }
|
|
|
|
|
+ ) }
|
|
|
|
|
+ )> }
|
|
|
|
|
+);
|
|
|
|
|
+
|
|
|
|
|
+export type AddCustomersToGroupMutationVariables = {
|
|
|
|
|
+ groupId: Scalars['ID'];
|
|
|
|
|
+ customerIds: Array<Scalars['ID']>;
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+export type AddCustomersToGroupMutation = (
|
|
|
|
|
+ { __typename?: 'Mutation' }
|
|
|
|
|
+ & { addCustomersToGroup: (
|
|
|
|
|
+ { __typename?: 'CustomerGroup' }
|
|
|
|
|
+ & Pick<CustomerGroup, 'id' | 'createdAt' | 'updatedAt' | 'name'>
|
|
|
|
|
+ ) }
|
|
|
|
|
+);
|
|
|
|
|
+
|
|
|
|
|
+export type RemoveCustomersFromGroupMutationVariables = {
|
|
|
|
|
+ groupId: Scalars['ID'];
|
|
|
|
|
+ customerIds: Array<Scalars['ID']>;
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+export type RemoveCustomersFromGroupMutation = (
|
|
|
|
|
+ { __typename?: 'Mutation' }
|
|
|
|
|
+ & { removeCustomersFromGroup: (
|
|
|
|
|
+ { __typename?: 'CustomerGroup' }
|
|
|
|
|
+ & Pick<CustomerGroup, 'id' | 'createdAt' | 'updatedAt' | 'name'>
|
|
|
|
|
+ ) }
|
|
|
|
|
+);
|
|
|
|
|
+
|
|
|
export type FacetValueFragment = (
|
|
export type FacetValueFragment = (
|
|
|
{ __typename?: 'FacetValue' }
|
|
{ __typename?: 'FacetValue' }
|
|
|
& Pick<FacetValue, 'id' | 'createdAt' | 'updatedAt' | 'languageCode' | 'code' | 'name'>
|
|
& Pick<FacetValue, 'id' | 'createdAt' | 'updatedAt' | 'languageCode' | 'code' | 'name'>
|
|
@@ -6701,6 +6814,51 @@ export namespace UpdateCustomerAddress {
|
|
|
export type UpdateCustomerAddress = AddressFragment;
|
|
export type UpdateCustomerAddress = AddressFragment;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+export namespace CreateCustomerGroup {
|
|
|
|
|
+ export type Variables = CreateCustomerGroupMutationVariables;
|
|
|
|
|
+ export type Mutation = CreateCustomerGroupMutation;
|
|
|
|
|
+ export type CreateCustomerGroup = CreateCustomerGroupMutation['createCustomerGroup'];
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace UpdateCustomerGroup {
|
|
|
|
|
+ export type Variables = UpdateCustomerGroupMutationVariables;
|
|
|
|
|
+ export type Mutation = UpdateCustomerGroupMutation;
|
|
|
|
|
+ export type UpdateCustomerGroup = UpdateCustomerGroupMutation['updateCustomerGroup'];
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace DeleteCustomerGroup {
|
|
|
|
|
+ export type Variables = DeleteCustomerGroupMutationVariables;
|
|
|
|
|
+ export type Mutation = DeleteCustomerGroupMutation;
|
|
|
|
|
+ export type DeleteCustomerGroup = DeleteCustomerGroupMutation['deleteCustomerGroup'];
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace GetCustomerGroups {
|
|
|
|
|
+ export type Variables = GetCustomerGroupsQueryVariables;
|
|
|
|
|
+ export type Query = GetCustomerGroupsQuery;
|
|
|
|
|
+ export type CustomerGroups = GetCustomerGroupsQuery['customerGroups'];
|
|
|
|
|
+ export type Items = (NonNullable<GetCustomerGroupsQuery['customerGroups']['items'][0]>);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace GetCustomerGroupWithCustomers {
|
|
|
|
|
+ export type Variables = GetCustomerGroupWithCustomersQueryVariables;
|
|
|
|
|
+ export type Query = GetCustomerGroupWithCustomersQuery;
|
|
|
|
|
+ export type CustomerGroup = (NonNullable<GetCustomerGroupWithCustomersQuery['customerGroup']>);
|
|
|
|
|
+ export type Customers = (NonNullable<GetCustomerGroupWithCustomersQuery['customerGroup']>)['customers'];
|
|
|
|
|
+ export type Items = (NonNullable<(NonNullable<GetCustomerGroupWithCustomersQuery['customerGroup']>)['customers']['items'][0]>);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace AddCustomersToGroup {
|
|
|
|
|
+ export type Variables = AddCustomersToGroupMutationVariables;
|
|
|
|
|
+ export type Mutation = AddCustomersToGroupMutation;
|
|
|
|
|
+ export type AddCustomersToGroup = AddCustomersToGroupMutation['addCustomersToGroup'];
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace RemoveCustomersFromGroup {
|
|
|
|
|
+ export type Variables = RemoveCustomersFromGroupMutationVariables;
|
|
|
|
|
+ export type Mutation = RemoveCustomersFromGroupMutation;
|
|
|
|
|
+ export type RemoveCustomersFromGroup = RemoveCustomersFromGroupMutation['removeCustomersFromGroup'];
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
export namespace FacetValue {
|
|
export namespace FacetValue {
|
|
|
export type Fragment = FacetValueFragment;
|
|
export type Fragment = FacetValueFragment;
|
|
|
export type Translations = (NonNullable<FacetValueFragment['translations'][0]>);
|
|
export type Translations = (NonNullable<FacetValueFragment['translations'][0]>);
|