@bjsdistribution/dms-client-return 0.0.9 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/order-daily-overview/return-after-table/table-filters/ReturnFilterStore.d.ts +16 -0
- package/dist/components/order-daily-overview/return-after-table/table-filters/ReturnOrderFilter.d.ts +1 -0
- package/dist/components/store.d.ts +12 -2
- package/dist/components/types.d.ts +7 -0
- package/dist/dms-client-return.cjs.development.js +657 -478
- package/dist/dms-client-return.cjs.development.js.map +1 -1
- package/dist/dms-client-return.cjs.production.min.js +1 -1
- package/dist/dms-client-return.cjs.production.min.js.map +1 -1
- package/dist/dms-client-return.esm.js +663 -484
- package/dist/dms-client-return.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/common/custom-switch/index.tsx +12 -4
- package/src/components/order-daily-overview/filters/FilterStyle.tsx +2 -13
- package/src/components/order-daily-overview/filters/Filters.tsx +7 -1
- package/src/components/order-daily-overview/header-filters/HeaderFilter.tsx +1 -1
- package/src/components/order-daily-overview/header-filters/SelectionFilter.tsx +46 -1
- package/src/components/order-daily-overview/return-after-table/ReturnAfterTable.tsx +6 -5
- package/src/components/order-daily-overview/return-after-table/table-filters/ReturnFilterStore.ts +130 -0
- package/src/components/order-daily-overview/return-after-table/table-filters/ReturnOrderFilter.tsx +152 -69
- package/src/components/order-daily-overview/return-order-table/return-orders-filters/ReturnFilter.tsx +3 -2
- package/src/components/order-daily-overview/return-order-table/return-orders-filters/ReturnOrderTable.tsx +131 -23
- package/src/components/order-daily-overview/return-order-table/return-orders-filters/returnstyles.ts +15 -1
- package/src/components/order-daily-overview/shared/utlis.ts +7 -1
- package/src/components/order-daily-overview/table/ReturnTable.tsx +12 -0
- package/src/components/order-view/hooks/useGetEventNotes.tsx +15 -2
- package/src/components/order-view/hooks/useGetSystemLogs.tsx +14 -2
- package/src/components/order-view/hooks/useUpdateOrder.ts +13 -2
- package/src/components/order-view/modalsPopup/CreateReturnModal.tsx +14 -17
- package/src/components/order-view/modalsPopup/ModalManager.tsx +90 -62
- package/src/components/order-view/notes/AddNote.tsx +7 -2
- package/src/components/order-view/order-actions/actions/change-customer-account/ChangeCustomerAccModal.tsx +6 -2
- package/src/components/order-view/order-actions/actions/escalation/Dropdowns.tsx +5 -0
- package/src/components/order-view/order-actions/actions/escalation/upgrade/index.tsx +7 -1
- package/src/components/order-view/order-actions/hooks/useAllReminderData.ts +13 -2
- package/src/components/order-view/order-actions/hooks/useAllTaskData.ts +15 -5
- package/src/components/order-view/order-actions/hooks/useCreateReminder.ts +20 -4
- package/src/components/order-view/order-actions/hooks/useCreateTask.ts +14 -3
- package/src/components/order-view/order-actions/hooks/useFetchSingleFlagData.ts +15 -3
- package/src/components/order-view/order-actions/hooks/useFetchSingleReminder.ts +13 -2
- package/src/components/order-view/order-actions/hooks/useUpdateFlag.ts +12 -2
- package/src/components/order-view/order-actions/hooks/useUpdateReminder.ts +12 -2
- package/src/components/order-view/products-info/expanded-content/index.tsx +6 -1
- package/src/components/order-view/return-client-products/product-table-footer/ProductDetailsFooter.tsx +6 -1
- package/src/components/order-view/system-event-logs/expanded-content/index.tsx +7 -1
- package/src/components/order-view/view-reminder/AssigneeDropdown.tsx +6 -1
- package/src/components/store.ts +30 -1
- package/src/components/types.ts +8 -0
- package/src/index.tsx +8 -4
package/dist/components/order-daily-overview/return-after-table/table-filters/ReturnFilterStore.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const usedate: () => [Date, (args_0: Date | ((prev: Date) => Date)) => void];
|
|
2
|
+
interface Filter {
|
|
3
|
+
field: string;
|
|
4
|
+
op: string;
|
|
5
|
+
value: any;
|
|
6
|
+
}
|
|
7
|
+
interface Pagination {
|
|
8
|
+
page: number;
|
|
9
|
+
per_page: number;
|
|
10
|
+
}
|
|
11
|
+
interface FilterState {
|
|
12
|
+
'x-filters': Filter[];
|
|
13
|
+
'x-pagination': Pagination;
|
|
14
|
+
}
|
|
15
|
+
export declare const filtersReducerAtom: import("jotai/esm/").WritableAtom<FilterState, [unknown], void>;
|
|
16
|
+
export {};
|
package/dist/components/order-daily-overview/return-after-table/table-filters/ReturnOrderFilter.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
declare const ReturnOrderFilter: () => React.JSX.Element;
|
|
3
|
+
export declare const StyledAntSelect: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
4
|
export default ReturnOrderFilter;
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import { useAtom } from 'jotai';
|
|
2
|
-
import { SelectDateType } from './types';
|
|
2
|
+
import { CreateReturnPayload, SelectDateType } from './types';
|
|
3
3
|
export declare const filtersInitialValue: {
|
|
4
4
|
date: {
|
|
5
5
|
startDate: undefined;
|
|
6
6
|
endDate: undefined;
|
|
7
7
|
};
|
|
8
8
|
};
|
|
9
|
+
export declare const CreateReturnInitial: {
|
|
10
|
+
customer_id: number;
|
|
11
|
+
account_number: string;
|
|
12
|
+
return_location_token: string;
|
|
13
|
+
products: never[];
|
|
14
|
+
return_action: never[];
|
|
15
|
+
};
|
|
9
16
|
export declare const triggerApiCallAtom: import("jotai/esm/").PrimitiveAtom<boolean> & {
|
|
10
17
|
init: boolean;
|
|
11
18
|
};
|
|
@@ -21,4 +28,7 @@ export declare const useStickyStatus: () => [boolean, (args_0: boolean | ((prev:
|
|
|
21
28
|
declare function useCustomerData(): [any, (args_0: any) => void];
|
|
22
29
|
declare function useActionType(): [any, (args_0: any) => void];
|
|
23
30
|
declare function useLocationData(): [any, (args_0: any) => void];
|
|
24
|
-
|
|
31
|
+
declare function useReturnPayload(): [CreateReturnPayload, (args_0: CreateReturnPayload | ((prev: CreateReturnPayload) => CreateReturnPayload)) => void];
|
|
32
|
+
declare function useNewReturnPayload(): [any, (args_0: any) => void];
|
|
33
|
+
declare function useGroupedPayload(): [any, (args_0: any) => void];
|
|
34
|
+
export { useAtom, useFilter, useStaticData, useRowCollectedCount, useRowDeliveredCount, useReminderData, useInQueueData, useEmailInvoice, useCustomerData, useActionType, useLocationData, useSelectedOrders, useReturnPayload, useNewReturnPayload, useGroupedPayload, };
|
|
@@ -201,4 +201,11 @@ export declare type InvoiceOverviewType = {
|
|
|
201
201
|
total_orders: number;
|
|
202
202
|
vat_rate: number;
|
|
203
203
|
};
|
|
204
|
+
export declare type CreateReturnPayload = {
|
|
205
|
+
customer_id: number;
|
|
206
|
+
account_number: string;
|
|
207
|
+
return_location_token: string;
|
|
208
|
+
products: number[];
|
|
209
|
+
return_action: string[];
|
|
210
|
+
};
|
|
204
211
|
export {};
|