@bjsdistribution/dms-client-return 0.1.49-prod → 0.1.50-prod

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.
Files changed (26) hide show
  1. package/dist/components/order-view/northern-southern-info/CustomInput.d.ts +17 -0
  2. package/dist/components/order-view/northern-southern-info/index.d.ts +3 -0
  3. package/dist/components/order-view/return-client-products/product-table/ReturnProductTable.d.ts +1 -0
  4. package/dist/components/order-view/types.d.ts +37 -0
  5. package/dist/components/order-view/utils.d.ts +24 -0
  6. package/dist/components/store.d.ts +1 -0
  7. package/dist/dms-client-return.cjs.development.js +1089 -616
  8. package/dist/dms-client-return.cjs.development.js.map +1 -1
  9. package/dist/dms-client-return.cjs.production.min.js +1 -1
  10. package/dist/dms-client-return.cjs.production.min.js.map +1 -1
  11. package/dist/dms-client-return.esm.js +1090 -617
  12. package/dist/dms-client-return.esm.js.map +1 -1
  13. package/package.json +1 -1
  14. package/src/components/order-daily-overview/return-order-table/return-orders-filters/returnstyles.ts +30 -0
  15. package/src/components/order-view/index.tsx +67 -3
  16. package/src/components/order-view/northern-southern-info/CustomInput.tsx +80 -0
  17. package/src/components/order-view/northern-southern-info/index.tsx +94 -0
  18. package/src/components/order-view/order-details/expanded-content/customer-section/location-info/Postcode.tsx +170 -8
  19. package/src/components/order-view/order-details/expanded-content/footer/index.tsx +53 -2
  20. package/src/components/order-view/order-details/expanded-content/index.tsx +13 -1
  21. package/src/components/order-view/products-info/collapsed-content/index.tsx +29 -0
  22. package/src/components/order-view/return-client-products/product-table/ReturnProductTable.tsx +166 -43
  23. package/src/components/order-view/store.ts +20 -0
  24. package/src/components/order-view/types.ts +39 -0
  25. package/src/components/order-view/utils.ts +29 -0
  26. package/src/components/store.ts +4 -1
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ declare type CustomInputProps = {
3
+ label: string;
4
+ name?: string;
5
+ type?: string;
6
+ placeholder?: string;
7
+ value?: string | number;
8
+ onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
9
+ onBlur?: (e: React.FocusEvent<HTMLInputElement>) => void;
10
+ onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
11
+ minLength?: number;
12
+ maxLength?: number;
13
+ disabled?: boolean;
14
+ direction?: 'row' | 'column';
15
+ };
16
+ declare const CustomInput: React.FC<CustomInputProps>;
17
+ export default CustomInput;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const NorthernSouthernInfoView: () => React.JSX.Element;
3
+ export default NorthernSouthernInfoView;
@@ -5,4 +5,5 @@ interface IPROS {
5
5
  locationloading: boolean;
6
6
  }
7
7
  declare const ReturnProductTable: (props: IPROS) => React.JSX.Element;
8
+ export declare const NSWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
8
9
  export default ReturnProductTable;
@@ -94,6 +94,20 @@ export interface OrderRouteType {
94
94
  export interface orderType {
95
95
  type: string | null;
96
96
  }
97
+ export interface OrderCustomsDetails {
98
+ consignor_eori?: string | undefined;
99
+ consignee_country?: string | undefined;
100
+ commodity_code?: string | undefined;
101
+ country_of_origin?: string | undefined;
102
+ item_invoice_amount?: string | undefined;
103
+ procedure_code?: string | undefined;
104
+ ni_additional_information_codes?: string | undefined;
105
+ additional_procedure_code?: string | undefined;
106
+ additional_procedures?: string | undefined;
107
+ id?: number | null;
108
+ order_id?: number | null;
109
+ packaging_type?: string | undefined;
110
+ }
97
111
  export interface OrdersType {
98
112
  depot_id: number | null;
99
113
  gsit_order_id: number | null;
@@ -143,6 +157,29 @@ export interface OrdersType {
143
157
  collect_disposal: boolean;
144
158
  assembly_type: string | null;
145
159
  labels?: any;
160
+ route_id: any;
161
+ order_locked_time: string | null;
162
+ refused_service: any[];
163
+ refused_service_reason: string;
164
+ tomtom_status?: [];
165
+ carrier_name?: string;
166
+ sub_contracted_date?: string;
167
+ sub_contractor_transfer_id?: number;
168
+ hold_untill?: Date | null;
169
+ hold_reason?: null;
170
+ order_on_hold?: {
171
+ order_id: null;
172
+ hold_indefinitely: null;
173
+ hold_until: Date | null;
174
+ reason_id: null;
175
+ un_hold: Date | null;
176
+ };
177
+ invalid_order: boolean | null;
178
+ owner_name: string | null;
179
+ force_debrief_enabled: boolean | null;
180
+ order_customs_details?: OrderCustomsDetails;
181
+ show_customs_details?: false;
182
+ import_reference: string | null;
146
183
  }
147
184
  export declare type DeleteProds = {
148
185
  id: number | null | undefined;
@@ -77,5 +77,29 @@ export declare const compareOrderDetailsStates: (oldData: OrdersType, newData: O
77
77
  collect_disposal: boolean;
78
78
  assembly_type: string | null;
79
79
  labels?: any;
80
+ route_id: any;
81
+ order_locked_time: string | null;
82
+ refused_service: any[];
83
+ refused_service_reason: string;
84
+ tomtom_status?: [] | undefined;
85
+ carrier_name?: string | undefined;
86
+ sub_contracted_date?: string | undefined;
87
+ sub_contractor_transfer_id?: number | undefined;
88
+ hold_untill?: Date | null | undefined;
89
+ hold_reason?: null | undefined;
90
+ order_on_hold?: {
91
+ order_id: null;
92
+ hold_indefinitely: null;
93
+ hold_until: Date | null;
94
+ reason_id: null;
95
+ un_hold: Date | null;
96
+ } | undefined;
97
+ invalid_order: boolean | null;
98
+ owner_name: string | null;
99
+ force_debrief_enabled: boolean | null;
100
+ order_customs_details?: import("./types").OrderCustomsDetails | undefined;
101
+ show_customs_details?: false | undefined;
102
+ import_reference: string | null;
80
103
  };
81
104
  export declare const sanitizeInput: (value: string) => string;
105
+ export declare const getEnvironment: () => 'development' | 'release_us' | 'release_uk' | 'staging';
@@ -37,6 +37,7 @@ declare function useEndDate(): [dayjs.Dayjs | null, (args_0: dayjs.Dayjs | ((pre
37
37
  export declare const useStickyStatus: () => [boolean, (args_0: boolean | ((prev: boolean) => boolean)) => void];
38
38
  export declare const useSearchText: () => [any, (args_0: any) => void];
39
39
  export declare const useSearchAfterText: () => [any, (args_0: any) => void];
40
+ export declare function useIsShowNorthSouth(): [any, (args_0: any) => void];
40
41
  export declare function useClientOutstandingReturnData(): [any[], (args_0: any[] | ((prev: any[]) => any[])) => void];
41
42
  export declare function useReturnConfirmedOrderData(): [any[], (args_0: any[] | ((prev: any[]) => any[])) => void];
42
43
  export declare function useStatsCPCount(): [any, (args_0: any) => void];