@nerdjs/sales-kit 1.0.9 → 2.0.1

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 (274) hide show
  1. package/dist/entities/archerFile/archerFile.d.ts +11 -0
  2. package/dist/entities/archerFile/archerFile.js +48 -0
  3. package/dist/entities/archerFile/archerFile.js.map +1 -0
  4. package/dist/entities/archerFile/helper.d.ts +5 -0
  5. package/dist/entities/archerFile/helper.js +16 -0
  6. package/dist/entities/archerFile/helper.js.map +1 -0
  7. package/dist/entities/archerFile/index.d.ts +2 -0
  8. package/dist/entities/archerFile/index.js +3 -0
  9. package/dist/entities/archerFile/index.js.map +1 -0
  10. package/dist/entities/customer/index.d.ts +2 -1
  11. package/dist/entities/customer/index.js +2 -1
  12. package/dist/entities/customer/index.js.map +1 -1
  13. package/dist/entities/holiday/helper.d.ts +2 -0
  14. package/dist/entities/holiday/helper.js +4 -0
  15. package/dist/entities/holiday/helper.js.map +1 -1
  16. package/dist/entities/index.d.ts +3 -0
  17. package/dist/entities/index.js +3 -0
  18. package/dist/entities/index.js.map +1 -1
  19. package/dist/entities/location/helper.d.ts +3 -0
  20. package/dist/entities/location/helper.js +9 -0
  21. package/dist/entities/location/helper.js.map +1 -1
  22. package/dist/entities/location/index.d.ts +2 -2
  23. package/dist/entities/location/index.js +2 -2
  24. package/dist/entities/location/index.js.map +1 -1
  25. package/dist/entities/location/location.d.ts +5 -0
  26. package/dist/entities/location/location.js +7 -0
  27. package/dist/entities/location/location.js.map +1 -1
  28. package/dist/entities/path/helper.d.ts +5 -0
  29. package/dist/entities/path/helper.js +16 -0
  30. package/dist/entities/path/helper.js.map +1 -0
  31. package/dist/entities/path/index.d.ts +2 -0
  32. package/dist/entities/path/index.js +3 -0
  33. package/dist/entities/path/index.js.map +1 -0
  34. package/dist/entities/path/path.d.ts +20 -0
  35. package/dist/entities/path/path.js +35 -0
  36. package/dist/entities/path/path.js.map +1 -0
  37. package/dist/entities/quoteResponse/quoteResponse.d.ts +1 -0
  38. package/dist/entities/quoteResponse/quoteResponse.js +2 -0
  39. package/dist/entities/quoteResponse/quoteResponse.js.map +1 -1
  40. package/dist/entities/tenderCommodity/helper.d.ts +5 -0
  41. package/dist/entities/tenderCommodity/helper.js +16 -0
  42. package/dist/entities/tenderCommodity/helper.js.map +1 -0
  43. package/dist/entities/tenderCommodity/index.d.ts +2 -0
  44. package/dist/entities/tenderCommodity/index.js +3 -0
  45. package/dist/entities/tenderCommodity/index.js.map +1 -0
  46. package/dist/entities/tenderCommodity/tenderCommodity.d.ts +11 -0
  47. package/dist/entities/tenderCommodity/tenderCommodity.js +39 -0
  48. package/dist/entities/tenderCommodity/tenderCommodity.js.map +1 -0
  49. package/dist/entities/tenderRequest/helper.d.ts +5 -0
  50. package/dist/entities/tenderRequest/helper.js +16 -0
  51. package/dist/entities/tenderRequest/helper.js.map +1 -0
  52. package/dist/entities/tenderRequest/index.d.ts +2 -0
  53. package/dist/entities/tenderRequest/index.js +3 -0
  54. package/dist/entities/tenderRequest/index.js.map +1 -0
  55. package/dist/entities/tenderRequest/tenderRequest.d.ts +14 -0
  56. package/dist/entities/tenderRequest/tenderRequest.js +39 -0
  57. package/dist/entities/tenderRequest/tenderRequest.js.map +1 -0
  58. package/dist/entities/tenderResponse/helper.d.ts +5 -0
  59. package/dist/entities/tenderResponse/helper.js +16 -0
  60. package/dist/entities/tenderResponse/helper.js.map +1 -0
  61. package/dist/entities/tenderResponse/index.d.ts +2 -0
  62. package/dist/entities/tenderResponse/index.js +3 -0
  63. package/dist/entities/tenderResponse/index.js.map +1 -0
  64. package/dist/entities/tenderResponse/tenderResponse.d.ts +41 -0
  65. package/dist/entities/tenderResponse/tenderResponse.js +49 -0
  66. package/dist/entities/tenderResponse/tenderResponse.js.map +1 -0
  67. package/dist/entities/tenderStop/helper.d.ts +5 -0
  68. package/dist/entities/tenderStop/helper.js +16 -0
  69. package/dist/entities/tenderStop/helper.js.map +1 -0
  70. package/dist/entities/tenderStop/index.d.ts +2 -0
  71. package/dist/entities/tenderStop/index.js +3 -0
  72. package/dist/entities/tenderStop/index.js.map +1 -0
  73. package/dist/entities/tenderStop/tenderStop.d.ts +22 -0
  74. package/dist/entities/tenderStop/tenderStop.js +59 -0
  75. package/dist/entities/tenderStop/tenderStop.js.map +1 -0
  76. package/dist/hooks/customer/customerAutocomplete.d.ts +18 -0
  77. package/dist/hooks/customer/customerAutocomplete.js +36 -0
  78. package/dist/hooks/customer/customerAutocomplete.js.map +1 -0
  79. package/dist/hooks/index.d.ts +1 -0
  80. package/dist/hooks/index.js +1 -0
  81. package/dist/hooks/index.js.map +1 -1
  82. package/dist/hooks/locationsForm/locationsForm.d.ts +11 -2
  83. package/dist/hooks/locationsForm/locationsForm.js +117 -13
  84. package/dist/hooks/locationsForm/locationsForm.js.map +1 -1
  85. package/dist/hooks/quote/form.d.ts +2 -0
  86. package/dist/hooks/quote/form.js +59 -32
  87. package/dist/hooks/quote/form.js.map +1 -1
  88. package/dist/hooks/quote/helpers.d.ts +13 -8
  89. package/dist/hooks/quote/helpers.js +232 -92
  90. package/dist/hooks/quote/helpers.js.map +1 -1
  91. package/dist/hooks/quote/result.d.ts +8 -1
  92. package/dist/hooks/quote/result.js +269 -52
  93. package/dist/hooks/quote/result.js.map +1 -1
  94. package/dist/hooks/quote/template.d.ts +8 -1
  95. package/dist/hooks/quote/template.js +49 -41
  96. package/dist/hooks/quote/template.js.map +1 -1
  97. package/dist/hooks/tender/constants.d.ts +200 -0
  98. package/dist/hooks/tender/constants.js +77 -0
  99. package/dist/hooks/tender/constants.js.map +1 -0
  100. package/dist/hooks/tender/form.d.ts +10 -0
  101. package/dist/hooks/tender/form.js +669 -0
  102. package/dist/hooks/tender/form.js.map +1 -0
  103. package/dist/hooks/tender/helpers.d.ts +51 -0
  104. package/dist/hooks/tender/helpers.js +465 -0
  105. package/dist/hooks/tender/helpers.js.map +1 -0
  106. package/dist/hooks/tender/index.d.ts +1 -0
  107. package/dist/hooks/tender/index.js +2 -0
  108. package/dist/hooks/tender/index.js.map +1 -0
  109. package/dist/hooks/tender/template.d.ts +10 -0
  110. package/dist/hooks/tender/template.js +25 -0
  111. package/dist/hooks/tender/template.js.map +1 -0
  112. package/dist/locales/salesKitEn.d.ts +66 -0
  113. package/dist/locales/salesKitEn.js +66 -0
  114. package/dist/locales/salesKitEn.js.map +1 -1
  115. package/dist/redux/api/index.d.ts +1 -0
  116. package/dist/redux/api/index.js +2 -0
  117. package/dist/redux/api/index.js.map +1 -0
  118. package/dist/redux/api/salesApi.d.ts +1 -0
  119. package/dist/redux/api/salesApi.js +22 -0
  120. package/dist/redux/api/salesApi.js.map +1 -0
  121. package/dist/redux/customer/customerEndpoints.d.ts +28 -0
  122. package/dist/redux/customer/customerEndpoints.js +76 -0
  123. package/dist/redux/customer/customerEndpoints.js.map +1 -0
  124. package/dist/redux/customer/index.d.ts +1 -4
  125. package/dist/redux/customer/index.js +1 -4
  126. package/dist/redux/customer/index.js.map +1 -1
  127. package/dist/redux/holiday/holidayEndpoints.d.ts +26 -0
  128. package/dist/redux/holiday/holidayEndpoints.js +63 -0
  129. package/dist/redux/holiday/holidayEndpoints.js.map +1 -0
  130. package/dist/redux/holiday/index.d.ts +2 -0
  131. package/dist/redux/holiday/index.js +3 -0
  132. package/dist/redux/holiday/index.js.map +1 -0
  133. package/dist/redux/index.d.ts +2 -0
  134. package/dist/redux/index.js +2 -0
  135. package/dist/redux/index.js.map +1 -1
  136. package/dist/redux/load/index.d.ts +1 -4
  137. package/dist/redux/load/index.js +1 -4
  138. package/dist/redux/load/index.js.map +1 -1
  139. package/dist/redux/load/loadEndpoints.d.ts +26 -0
  140. package/dist/redux/load/loadEndpoints.js +63 -0
  141. package/dist/redux/load/loadEndpoints.js.map +1 -0
  142. package/dist/redux/loadAdjustment/index.d.ts +1 -4
  143. package/dist/redux/loadAdjustment/index.js +1 -4
  144. package/dist/redux/loadAdjustment/index.js.map +1 -1
  145. package/dist/redux/loadAdjustment/loadAdjustmentEndpoints.d.ts +26 -0
  146. package/dist/redux/loadAdjustment/loadAdjustmentEndpoints.js +63 -0
  147. package/dist/redux/loadAdjustment/loadAdjustmentEndpoints.js.map +1 -0
  148. package/dist/redux/location/index.d.ts +1 -4
  149. package/dist/redux/location/index.js +1 -4
  150. package/dist/redux/location/index.js.map +1 -1
  151. package/dist/redux/location/locationEndpoints.d.ts +37 -0
  152. package/dist/redux/location/locationEndpoints.js +107 -0
  153. package/dist/redux/location/locationEndpoints.js.map +1 -0
  154. package/dist/redux/quote/index.d.ts +0 -1
  155. package/dist/redux/quote/index.js +0 -1
  156. package/dist/redux/quote/index.js.map +1 -1
  157. package/dist/redux/quote/quoteAction.d.ts +12 -78
  158. package/dist/redux/quote/quoteAction.js +221 -165
  159. package/dist/redux/quote/quoteAction.js.map +1 -1
  160. package/dist/redux/quote/quoteEndpoints.d.ts +114 -0
  161. package/dist/redux/quote/quoteEndpoints.js +80 -0
  162. package/dist/redux/quote/quoteEndpoints.js.map +1 -0
  163. package/dist/redux/quote/quoteHooks.d.ts +171 -0
  164. package/dist/redux/quote/quoteHooks.js +51 -0
  165. package/dist/redux/quote/quoteHooks.js.map +1 -0
  166. package/dist/redux/quote/quoteReducer.d.ts +5 -1
  167. package/dist/redux/quote/quoteReducer.js +8 -39
  168. package/dist/redux/quote/quoteReducer.js.map +1 -1
  169. package/dist/redux/quote/quoteSelector.d.ts +8 -89
  170. package/dist/redux/quote/quoteSelector.js +27 -41
  171. package/dist/redux/quote/quoteSelector.js.map +1 -1
  172. package/dist/redux/quoteAccessorial/index.d.ts +1 -3
  173. package/dist/redux/quoteAccessorial/index.js +1 -3
  174. package/dist/redux/quoteAccessorial/index.js.map +1 -1
  175. package/dist/redux/quoteAccessorial/quoteAccessorialEndpoints.d.ts +18 -0
  176. package/dist/redux/quoteAccessorial/quoteAccessorialEndpoints.js +52 -0
  177. package/dist/redux/quoteAccessorial/quoteAccessorialEndpoints.js.map +1 -0
  178. package/dist/redux/salesKitReducer.d.ts +3 -18
  179. package/dist/redux/salesKitReducer.js +2 -12
  180. package/dist/redux/salesKitReducer.js.map +1 -1
  181. package/dist/redux/shipcon/index.d.ts +1 -4
  182. package/dist/redux/shipcon/index.js +1 -4
  183. package/dist/redux/shipcon/index.js.map +1 -1
  184. package/dist/redux/shipcon/shipconEndpoints.d.ts +26 -0
  185. package/dist/redux/shipcon/shipconEndpoints.js +63 -0
  186. package/dist/redux/shipcon/shipconEndpoints.js.map +1 -0
  187. package/dist/redux/tender/index.d.ts +0 -0
  188. package/dist/redux/tender/index.js +2 -0
  189. package/dist/redux/tender/index.js.map +1 -0
  190. package/dist/redux/tender/tenderEndpoints.d.ts +34 -0
  191. package/dist/redux/tender/tenderEndpoints.js +52 -0
  192. package/dist/redux/tender/tenderEndpoints.js.map +1 -0
  193. package/dist/redux/tender/tenderSelector.d.ts +53 -0
  194. package/dist/redux/tender/tenderSelector.js +34 -0
  195. package/dist/redux/tender/tenderSelector.js.map +1 -0
  196. package/dist/redux/tender/tenderSlice.d.ts +40 -0
  197. package/dist/redux/tender/tenderSlice.js +69 -0
  198. package/dist/redux/tender/tenderSlice.js.map +1 -0
  199. package/dist/redux/types.d.ts +15 -0
  200. package/dist/redux/types.js +10 -0
  201. package/dist/redux/types.js.map +1 -0
  202. package/package.json +4 -3
  203. package/dist/redux/customer/customerActions.d.ts +0 -97
  204. package/dist/redux/customer/customerActions.js +0 -210
  205. package/dist/redux/customer/customerActions.js.map +0 -1
  206. package/dist/redux/customer/customerReducer.d.ts +0 -2
  207. package/dist/redux/customer/customerReducer.js +0 -42
  208. package/dist/redux/customer/customerReducer.js.map +0 -1
  209. package/dist/redux/customer/customerSelector.d.ts +0 -27
  210. package/dist/redux/customer/customerSelector.js +0 -38
  211. package/dist/redux/customer/customerSelector.js.map +0 -1
  212. package/dist/redux/customer/customerState.d.ts +0 -11
  213. package/dist/redux/customer/customerState.js +0 -2
  214. package/dist/redux/customer/customerState.js.map +0 -1
  215. package/dist/redux/load/loadActions.d.ts +0 -80
  216. package/dist/redux/load/loadActions.js +0 -172
  217. package/dist/redux/load/loadActions.js.map +0 -1
  218. package/dist/redux/load/loadReducer.d.ts +0 -2
  219. package/dist/redux/load/loadReducer.js +0 -35
  220. package/dist/redux/load/loadReducer.js.map +0 -1
  221. package/dist/redux/load/loadSelector.d.ts +0 -27
  222. package/dist/redux/load/loadSelector.js +0 -19
  223. package/dist/redux/load/loadSelector.js.map +0 -1
  224. package/dist/redux/load/loadState.d.ts +0 -8
  225. package/dist/redux/load/loadState.js +0 -2
  226. package/dist/redux/load/loadState.js.map +0 -1
  227. package/dist/redux/loadAdjustment/loadAdjustmentActions.d.ts +0 -80
  228. package/dist/redux/loadAdjustment/loadAdjustmentActions.js +0 -172
  229. package/dist/redux/loadAdjustment/loadAdjustmentActions.js.map +0 -1
  230. package/dist/redux/loadAdjustment/loadAdjustmentReducer.d.ts +0 -2
  231. package/dist/redux/loadAdjustment/loadAdjustmentReducer.js +0 -35
  232. package/dist/redux/loadAdjustment/loadAdjustmentReducer.js.map +0 -1
  233. package/dist/redux/loadAdjustment/loadAdjustmentSelector.d.ts +0 -15
  234. package/dist/redux/loadAdjustment/loadAdjustmentSelector.js +0 -12
  235. package/dist/redux/loadAdjustment/loadAdjustmentSelector.js.map +0 -1
  236. package/dist/redux/loadAdjustment/loadAdjustmentState.d.ts +0 -8
  237. package/dist/redux/loadAdjustment/loadAdjustmentState.js +0 -2
  238. package/dist/redux/loadAdjustment/loadAdjustmentState.js.map +0 -1
  239. package/dist/redux/location/locationActions.d.ts +0 -101
  240. package/dist/redux/location/locationActions.js +0 -218
  241. package/dist/redux/location/locationActions.js.map +0 -1
  242. package/dist/redux/location/locationReducer.d.ts +0 -2
  243. package/dist/redux/location/locationReducer.js +0 -54
  244. package/dist/redux/location/locationReducer.js.map +0 -1
  245. package/dist/redux/location/locationSelector.d.ts +0 -53
  246. package/dist/redux/location/locationSelector.js +0 -32
  247. package/dist/redux/location/locationSelector.js.map +0 -1
  248. package/dist/redux/location/locationState.d.ts +0 -15
  249. package/dist/redux/location/locationState.js +0 -2
  250. package/dist/redux/location/locationState.js.map +0 -1
  251. package/dist/redux/quote/quoteMiddleware.d.ts +0 -2
  252. package/dist/redux/quote/quoteMiddleware.js +0 -31
  253. package/dist/redux/quote/quoteMiddleware.js.map +0 -1
  254. package/dist/redux/quoteAccessorial/quoteAccessorialActions.d.ts +0 -70
  255. package/dist/redux/quoteAccessorial/quoteAccessorialActions.js +0 -149
  256. package/dist/redux/quoteAccessorial/quoteAccessorialActions.js.map +0 -1
  257. package/dist/redux/quoteAccessorial/quoteAccessorialReducer.d.ts +0 -2
  258. package/dist/redux/quoteAccessorial/quoteAccessorialReducer.js +0 -29
  259. package/dist/redux/quoteAccessorial/quoteAccessorialReducer.js.map +0 -1
  260. package/dist/redux/quoteAccessorial/quoteAccessorialState.d.ts +0 -8
  261. package/dist/redux/quoteAccessorial/quoteAccessorialState.js +0 -2
  262. package/dist/redux/quoteAccessorial/quoteAccessorialState.js.map +0 -1
  263. package/dist/redux/shipcon/shipconActions.d.ts +0 -80
  264. package/dist/redux/shipcon/shipconActions.js +0 -172
  265. package/dist/redux/shipcon/shipconActions.js.map +0 -1
  266. package/dist/redux/shipcon/shipconReducer.d.ts +0 -2
  267. package/dist/redux/shipcon/shipconReducer.js +0 -35
  268. package/dist/redux/shipcon/shipconReducer.js.map +0 -1
  269. package/dist/redux/shipcon/shipconSelector.d.ts +0 -22
  270. package/dist/redux/shipcon/shipconSelector.js +0 -19
  271. package/dist/redux/shipcon/shipconSelector.js.map +0 -1
  272. package/dist/redux/shipcon/shipconState.d.ts +0 -8
  273. package/dist/redux/shipcon/shipconState.js +0 -2
  274. package/dist/redux/shipcon/shipconState.js.map +0 -1
@@ -0,0 +1,63 @@
1
+ import { createEntityAdapter, createSelector, } from "@reduxjs/toolkit";
2
+ import { salesApi } from "../api/salesApi";
3
+ const shipconsAdapter = createEntityAdapter();
4
+ const shipconsInitialState = shipconsAdapter.getInitialState();
5
+ export const shipconEndpoints = salesApi.injectEndpoints({
6
+ endpoints: (build) => ({
7
+ getShipcons: build.query({
8
+ query: (args) => {
9
+ return {
10
+ url: `sales/shipcons`,
11
+ params: args,
12
+ };
13
+ },
14
+ transformResponse: (responseData) => {
15
+ return shipconsAdapter.setAll(shipconsInitialState, responseData);
16
+ },
17
+ providesTags: ["shipcons"],
18
+ }),
19
+ getShipcon: build.query({
20
+ query: (id) => `sales/shipcons/${id}`,
21
+ providesTags: (_result, _error, id) => [{ type: "shipcons", id }],
22
+ }),
23
+ createShipcon: build.mutation({
24
+ query: (body) => ({
25
+ method: "POST",
26
+ body,
27
+ url: `sales/shipcons`,
28
+ }),
29
+ invalidatesTags: ["shipcons"],
30
+ }),
31
+ updateShipcon: build.mutation({
32
+ query: (args) => ({
33
+ method: "PUT",
34
+ body: args.body,
35
+ url: `sales/shipcons/${args.id}`,
36
+ }),
37
+ invalidatesTags: (_result, _error, { id }) => [
38
+ { type: "shipcons", id },
39
+ "shipcons",
40
+ ],
41
+ }),
42
+ deleteShipcon: build.mutation({
43
+ query: (id) => ({
44
+ method: "DELETE",
45
+ url: `sales/shipcons/${id}`,
46
+ }),
47
+ invalidatesTags: ["shipcons"],
48
+ }),
49
+ getShipconSearchMetadata: build.query({
50
+ query: () => `sales/shipcons/searchMetadata`,
51
+ }),
52
+ }),
53
+ });
54
+ export const { useGetShipconQuery, useGetShipconsQuery, useGetShipconSearchMetadataQuery, useLazyGetShipconsQuery, useLazyGetShipconQuery, useLazyGetShipconSearchMetadataQuery, useCreateShipconMutation, useDeleteShipconMutation, useUpdateShipconMutation, } = shipconEndpoints;
55
+ export default shipconEndpoints;
56
+ export const getShipconsSelectors = (params) => {
57
+ return shipconsAdapter.getSelectors((state) => {
58
+ return (createSelector(shipconEndpoints.endpoints.getShipcons.select(params), (shipconsResult) => {
59
+ return shipconsResult.data;
60
+ })(state) ?? shipconsInitialState);
61
+ });
62
+ };
63
+ //# sourceMappingURL=shipconEndpoints.js.map
@@ -0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Ac,CAAC,IAAI,CAAC;QAC7B,CAAC,CACF,CAAC,KAAK,CAAC,IAAI,oBAAoB,CACjC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"}
File without changes
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/redux/tender/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,34 @@
1
+ import { TenderRequest_Entity } from "../../entities/tenderRequest";
2
+ import { TenderCommodity_Entity } from "../../entities/tenderCommodity";
3
+ import { PathPallet_Entity } from "../../entities/path/path";
4
+ import { TenderResponse_Entity } from "../../entities/tenderResponse";
5
+ import { ArcherFile_Entity } from "../../entities";
6
+ export declare const tenderEndpoints: import("@reduxjs/toolkit/dist/query").Api<(args: any, api: import("@reduxjs/toolkit/dist/query").BaseQueryApi) => import("@reduxjs/toolkit/dist/query/tsHelpers").MaybePromise<import("@reduxjs/toolkit/dist/query/baseQueryTypes").QueryReturnValue<unknown, import("@reduxjs/toolkit/dist/query").FetchBaseQueryError, {}>>, {
7
+ getCommodities: import("@reduxjs/toolkit/dist/query").MutationDefinition<{
8
+ commoditySet: PathPallet_Entity[][];
9
+ total: {
10
+ feet: number | undefined;
11
+ weight: number;
12
+ };
13
+ }, (args: any, api: import("@reduxjs/toolkit/dist/query").BaseQueryApi) => import("@reduxjs/toolkit/dist/query/tsHelpers").MaybePromise<import("@reduxjs/toolkit/dist/query/baseQueryTypes").QueryReturnValue<unknown, import("@reduxjs/toolkit/dist/query").FetchBaseQueryError, {}>>, "shipcons" | "files" | "quotes" | "loads" | "customers" | "loadAdjustments" | "locations" | "quoteAccessorials" | "tenders" | "holidays", TenderCommodity_Entity[], "salesApi">;
14
+ confirmTender: import("@reduxjs/toolkit/dist/query").MutationDefinition<Partial<TenderRequest_Entity>, (args: any, api: import("@reduxjs/toolkit/dist/query").BaseQueryApi) => import("@reduxjs/toolkit/dist/query/tsHelpers").MaybePromise<import("@reduxjs/toolkit/dist/query/baseQueryTypes").QueryReturnValue<unknown, import("@reduxjs/toolkit/dist/query").FetchBaseQueryError, {}>>, "shipcons" | "files" | "quotes" | "loads" | "customers" | "loadAdjustments" | "locations" | "quoteAccessorials" | "tenders" | "holidays", TenderResponse_Entity, "salesApi">;
15
+ getFiles: import("@reduxjs/toolkit/dist/query").QueryDefinition<number, (args: any, api: import("@reduxjs/toolkit/dist/query").BaseQueryApi) => import("@reduxjs/toolkit/dist/query/tsHelpers").MaybePromise<import("@reduxjs/toolkit/dist/query/baseQueryTypes").QueryReturnValue<unknown, import("@reduxjs/toolkit/dist/query").FetchBaseQueryError, {}>>, "shipcons" | "files" | "quotes" | "loads" | "customers" | "loadAdjustments" | "locations" | "quoteAccessorials" | "tenders" | "holidays", ArcherFile_Entity[], "salesApi">;
16
+ uploadFile: import("@reduxjs/toolkit/dist/query").MutationDefinition<{
17
+ id: number;
18
+ description: string;
19
+ file: File;
20
+ }, (args: any, api: import("@reduxjs/toolkit/dist/query").BaseQueryApi) => import("@reduxjs/toolkit/dist/query/tsHelpers").MaybePromise<import("@reduxjs/toolkit/dist/query/baseQueryTypes").QueryReturnValue<unknown, import("@reduxjs/toolkit/dist/query").FetchBaseQueryError, {}>>, "shipcons" | "files" | "quotes" | "loads" | "customers" | "loadAdjustments" | "locations" | "quoteAccessorials" | "tenders" | "holidays", ArcherFile_Entity, "salesApi">;
21
+ deleteTender: import("@reduxjs/toolkit/dist/query").MutationDefinition<number, (args: any, api: import("@reduxjs/toolkit/dist/query").BaseQueryApi) => import("@reduxjs/toolkit/dist/query/tsHelpers").MaybePromise<import("@reduxjs/toolkit/dist/query/baseQueryTypes").QueryReturnValue<unknown, import("@reduxjs/toolkit/dist/query").FetchBaseQueryError, {}>>, "shipcons" | "files" | "quotes" | "loads" | "customers" | "loadAdjustments" | "locations" | "quoteAccessorials" | "tenders" | "holidays", void, "salesApi">;
22
+ }, "salesApi", "shipcons" | "files" | "quotes" | "loads" | "customers" | "loadAdjustments" | "locations" | "quoteAccessorials" | "tenders" | "holidays", typeof import("@reduxjs/toolkit/dist/query/core/module").coreModuleName | typeof import("@reduxjs/toolkit/dist/query/react/module").reactHooksModuleName>;
23
+ export declare const useConfirmTenderMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/dist/query").MutationDefinition<Partial<TenderRequest_Entity>, (args: any, api: import("@reduxjs/toolkit/dist/query").BaseQueryApi) => import("@reduxjs/toolkit/dist/query/tsHelpers").MaybePromise<import("@reduxjs/toolkit/dist/query/baseQueryTypes").QueryReturnValue<unknown, import("@reduxjs/toolkit/dist/query").FetchBaseQueryError, {}>>, "shipcons" | "files" | "quotes" | "loads" | "customers" | "loadAdjustments" | "locations" | "quoteAccessorials" | "tenders" | "holidays", TenderResponse_Entity, "salesApi">>, useGetCommoditiesMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/dist/query").MutationDefinition<{
24
+ commoditySet: PathPallet_Entity[][];
25
+ total: {
26
+ feet: number | undefined;
27
+ weight: number;
28
+ };
29
+ }, (args: any, api: import("@reduxjs/toolkit/dist/query").BaseQueryApi) => import("@reduxjs/toolkit/dist/query/tsHelpers").MaybePromise<import("@reduxjs/toolkit/dist/query/baseQueryTypes").QueryReturnValue<unknown, import("@reduxjs/toolkit/dist/query").FetchBaseQueryError, {}>>, "shipcons" | "files" | "quotes" | "loads" | "customers" | "loadAdjustments" | "locations" | "quoteAccessorials" | "tenders" | "holidays", TenderCommodity_Entity[], "salesApi">>, useGetFilesQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/dist/query").QueryDefinition<number, (args: any, api: import("@reduxjs/toolkit/dist/query").BaseQueryApi) => import("@reduxjs/toolkit/dist/query/tsHelpers").MaybePromise<import("@reduxjs/toolkit/dist/query/baseQueryTypes").QueryReturnValue<unknown, import("@reduxjs/toolkit/dist/query").FetchBaseQueryError, {}>>, "shipcons" | "files" | "quotes" | "loads" | "customers" | "loadAdjustments" | "locations" | "quoteAccessorials" | "tenders" | "holidays", ArcherFile_Entity[], "salesApi">>, useLazyGetFilesQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseLazyQuery<import("@reduxjs/toolkit/dist/query").QueryDefinition<number, (args: any, api: import("@reduxjs/toolkit/dist/query").BaseQueryApi) => import("@reduxjs/toolkit/dist/query/tsHelpers").MaybePromise<import("@reduxjs/toolkit/dist/query/baseQueryTypes").QueryReturnValue<unknown, import("@reduxjs/toolkit/dist/query").FetchBaseQueryError, {}>>, "shipcons" | "files" | "quotes" | "loads" | "customers" | "loadAdjustments" | "locations" | "quoteAccessorials" | "tenders" | "holidays", ArcherFile_Entity[], "salesApi">>, useUploadFileMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/dist/query").MutationDefinition<{
30
+ id: number;
31
+ description: string;
32
+ file: File;
33
+ }, (args: any, api: import("@reduxjs/toolkit/dist/query").BaseQueryApi) => import("@reduxjs/toolkit/dist/query/tsHelpers").MaybePromise<import("@reduxjs/toolkit/dist/query/baseQueryTypes").QueryReturnValue<unknown, import("@reduxjs/toolkit/dist/query").FetchBaseQueryError, {}>>, "shipcons" | "files" | "quotes" | "loads" | "customers" | "loadAdjustments" | "locations" | "quoteAccessorials" | "tenders" | "holidays", ArcherFile_Entity, "salesApi">>, useDeleteTenderMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/dist/query").MutationDefinition<number, (args: any, api: import("@reduxjs/toolkit/dist/query").BaseQueryApi) => import("@reduxjs/toolkit/dist/query/tsHelpers").MaybePromise<import("@reduxjs/toolkit/dist/query/baseQueryTypes").QueryReturnValue<unknown, import("@reduxjs/toolkit/dist/query").FetchBaseQueryError, {}>>, "shipcons" | "files" | "quotes" | "loads" | "customers" | "loadAdjustments" | "locations" | "quoteAccessorials" | "tenders" | "holidays", void, "salesApi">>;
34
+ export default tenderEndpoints;
@@ -0,0 +1,52 @@
1
+ import { salesApi } from "../api/salesApi";
2
+ export const tenderEndpoints = salesApi.injectEndpoints({
3
+ endpoints: (build) => ({
4
+ getCommodities: build.mutation({
5
+ query: (body) => ({
6
+ method: "POST",
7
+ body,
8
+ url: `quote-service/pallets/commodities`,
9
+ }),
10
+ }),
11
+ confirmTender: build.mutation({
12
+ query: (body) => ({
13
+ method: "POST",
14
+ body,
15
+ url: `quote-service/quotes/tender`,
16
+ }),
17
+ }),
18
+ getFiles: build.query({
19
+ query: (args) => {
20
+ return {
21
+ url: `file-service/loads/${args}/files`,
22
+ };
23
+ },
24
+ providesTags: ["files"],
25
+ }),
26
+ uploadFile: build.mutation({
27
+ query: (args) => {
28
+ const body = new FormData();
29
+ body.append("description", args.description);
30
+ body.append("file", args.file);
31
+ return {
32
+ method: "POST",
33
+ body: body,
34
+ url: `file-service/loads/${args.id}/files`,
35
+ headers: {
36
+ "Content-Type": "multipart/form-data",
37
+ },
38
+ };
39
+ },
40
+ invalidatesTags: ["files"],
41
+ }),
42
+ deleteTender: build.mutation({
43
+ query: (id) => ({
44
+ method: "DELETE",
45
+ url: `quote-service/quotes/tender/${id}`,
46
+ }),
47
+ }),
48
+ }),
49
+ });
50
+ export const { useConfirmTenderMutation, useGetCommoditiesMutation, useGetFilesQuery, useLazyGetFilesQuery, useUploadFileMutation, useDeleteTenderMutation, } = tenderEndpoints;
51
+ export default tenderEndpoints;
52
+ //# sourceMappingURL=tenderEndpoints.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tenderEndpoints.js","sourceRoot":"","sources":["../../../src/redux/tender/tenderEndpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAO3C,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAC,eAAe,CAAC;IACtD,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACrB,cAA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,+BAA+B,EAAE,EAAE;aACzC,CAAC;SACH,CAAC;KACH,CAAC;CACH,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,EACX,wBAAwB,EACxB,yBAAyB,EACzB,gBAAgB,EAChB,oBAAoB,EACpB,qBAAqB,EACrB,uBAAuB,GACxB,GAAG,eAAe,CAAC;AAEpB,eAAe,eAAe,CAAC"}
@@ -0,0 +1,53 @@
1
+ import { QuoteResponse } from "../../entities";
2
+ import { AppState } from "../appState";
3
+ export declare const selectPickups: ((state: AppState) => import("../../entities/tenderStop").TenderStop_Entity[] | undefined) & import("reselect").OutputSelectorFields<(args_0: import("../../entities/tenderStop").TenderStop_Entity[] | undefined) => import("../../entities/tenderStop").TenderStop_Entity[] & {
4
+ clearCache: () => void;
5
+ }> & {
6
+ clearCache: () => void;
7
+ };
8
+ export declare const selectDropoffs: ((state: AppState) => import("../../entities/tenderStop").TenderStop_Entity[] | undefined) & import("reselect").OutputSelectorFields<(args_0: import("../../entities/tenderStop").TenderStop_Entity[] | undefined) => import("../../entities/tenderStop").TenderStop_Entity[] & {
9
+ clearCache: () => void;
10
+ }> & {
11
+ clearCache: () => void;
12
+ };
13
+ export declare const selectTenderBody: ((state: AppState) => Partial<import("../../entities/tenderRequest").TenderRequest_Entity>) & import("reselect").OutputSelectorFields<(args_0: Partial<import("../../entities/tenderRequest").TenderRequest_Entity>) => Partial<import("../../entities/tenderRequest").TenderRequest_Entity> & {
14
+ clearCache: () => void;
15
+ }> & {
16
+ clearCache: () => void;
17
+ };
18
+ export declare const selectTenderCommodities: ((state: AppState) => import("../../entities/tenderCommodity").TenderCommodity_Entity[] | undefined) & import("reselect").OutputSelectorFields<(args_0: import("../../entities/tenderCommodity").TenderCommodity_Entity[] | undefined) => import("../../entities/tenderCommodity").TenderCommodity_Entity[] & {
19
+ clearCache: () => void;
20
+ }> & {
21
+ clearCache: () => void;
22
+ };
23
+ export declare const selectTenderPaths: ((state: AppState) => import("../../entities").Path_Entity[] | undefined) & import("reselect").OutputSelectorFields<(args_0: import("../../entities").Path_Entity[] | undefined) => import("../../entities").Path_Entity[] & {
24
+ clearCache: () => void;
25
+ }> & {
26
+ clearCache: () => void;
27
+ };
28
+ export declare const selectTenderErrors: ((state: AppState) => string[] | undefined) & import("reselect").OutputSelectorFields<(args_0: string[] | undefined) => string[] & {
29
+ clearCache: () => void;
30
+ }> & {
31
+ clearCache: () => void;
32
+ };
33
+ export declare const selectRemainingPallets: (quote: QuoteResponse) => ((state: AppState) => {
34
+ id: number;
35
+ units: string;
36
+ length: number;
37
+ width: number;
38
+ height: number;
39
+ weight: number;
40
+ count: number;
41
+ }[]) & import("reselect").OutputSelectorFields<(args_0: import("../../entities").Path_Entity[] | undefined) => {
42
+ id: number;
43
+ units: string;
44
+ length: number;
45
+ width: number;
46
+ height: number;
47
+ weight: number;
48
+ count: number;
49
+ }[] & {
50
+ clearCache: () => void;
51
+ }> & {
52
+ clearCache: () => void;
53
+ };
@@ -0,0 +1,34 @@
1
+ import { createSelector } from "@reduxjs/toolkit";
2
+ const selectStops = (state) => state.salesKitState.tender.body.tenderStops;
3
+ const selectCommodities = (state) => state.salesKitState.tender.body.tenderCommodities;
4
+ const selectPaths = (state) => state.salesKitState.tender.body.paths;
5
+ const selectBody = (state) => state.salesKitState.tender.body;
6
+ const selectErrors = (state) => state.salesKitState.tender.errors;
7
+ export const selectPickups = createSelector(selectStops, (stops) => {
8
+ return stops?.filter((stop) => stop.type === "shipper");
9
+ });
10
+ export const selectDropoffs = createSelector(selectStops, (stops) => {
11
+ return stops?.filter((stop) => stop.type === "consignee");
12
+ });
13
+ export const selectTenderBody = createSelector(selectBody, (body) => body);
14
+ export const selectTenderCommodities = createSelector(selectCommodities, (commodities) => commodities);
15
+ export const selectTenderPaths = createSelector(selectPaths, (paths) => paths);
16
+ export const selectTenderErrors = createSelector(selectErrors, (errors) => errors);
17
+ export const selectRemainingPallets = (quote) => {
18
+ return createSelector(selectPaths, (paths) => {
19
+ const palletDimensions = quote.units.palletDimensions?.map((pallet, i) => ({
20
+ ...pallet,
21
+ id: i,
22
+ }));
23
+ paths?.forEach((path) => {
24
+ const pallets = path.pallets;
25
+ pallets.forEach((pallet) => {
26
+ const palletToUpdate = palletDimensions?.find((p) => p.id === pallet.id);
27
+ if (palletToUpdate)
28
+ palletToUpdate.count -= pallet.count;
29
+ });
30
+ });
31
+ return palletDimensions || [];
32
+ });
33
+ };
34
+ //# sourceMappingURL=tenderSelector.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tenderSelector.js","sourceRoot":"","sources":["../../../src/redux/tender/tenderSelector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIlD,MAAM,WAAW,GAAG,CAAC,KAAe,EAAE,EAAE,CACtC,KAAK,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC;AAE9C,MAAM,iBAAiB,GAAG,CAAC,KAAe,EAAE,EAAE,CAC5C,KAAK,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC;AAEpD,MAAM,WAAW,GAAG,CAAC,KAAe,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC;AAE/E,MAAM,UAAU,GAAG,CAAC,KAAe,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC;AAExE,MAAM,YAAY,GAAG,CAAC,KAAe,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;AAE5E,MAAM,CAAC,MAAM,aAAa,GAAG,cAAc,CAAC,WAAW,EAAE,CAAC,KAAK,EAAE,EAAE;IACjE,OAAO,KAAK,EAAE,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC;AAC1D,CAAC,CAAC,CAAC;AAEH,MAAM,CAAC,MAA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CAAC,EAAE,CAC1B,CAAC;gBACF,IAAI,cAAc;oBAAE,cAAc,CAAC,KAAK,IAAI,MAAM,CAAC,KAAK,CAAC;YAC3D,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;QACH,OAAO,gBAAgB,IAAI,EAAE,CAAC;IAChC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"}
@@ -0,0 +1,40 @@
1
+ import { PayloadAction } from "@reduxjs/toolkit";
2
+ import { Path_Entity } from "../../entities/path";
3
+ import { TenderRequest_Entity } from "../../entities/tenderRequest";
4
+ import { TenderStop_Entity } from "../../entities/tenderStop";
5
+ export interface TenderState {
6
+ body: Partial<TenderRequest_Entity>;
7
+ errors?: string[];
8
+ }
9
+ export declare const tenderSlice: import("@reduxjs/toolkit").Slice<TenderState, {
10
+ updateBody: (state: import("immer/dist/internal").WritableDraft<TenderState>, action: PayloadAction<Partial<TenderRequest_Entity>>) => import("immer/dist/internal").WritableDraft<TenderState>;
11
+ updateStop: (state: import("immer/dist/internal").WritableDraft<TenderState>, action: PayloadAction<{
12
+ id: number;
13
+ stop: TenderStop_Entity;
14
+ }>) => import("immer/dist/internal").WritableDraft<TenderState>;
15
+ tenderAddPallet: (state: import("immer/dist/internal").WritableDraft<TenderState>, action: PayloadAction<{
16
+ fromID: number;
17
+ toID: number;
18
+ id: number;
19
+ }>) => import("immer/dist/internal").WritableDraft<TenderState>;
20
+ tenderRemovePallet: (state: import("immer/dist/internal").WritableDraft<TenderState>, action: PayloadAction<{
21
+ fromID: number;
22
+ toID: number;
23
+ id: number;
24
+ }>) => import("immer/dist/internal").WritableDraft<TenderState>;
25
+ updatePath: (state: import("immer/dist/internal").WritableDraft<TenderState>, action: PayloadAction<Path_Entity>) => import("immer/dist/internal").WritableDraft<TenderState>;
26
+ setTenderErrors: (state: import("immer/dist/internal").WritableDraft<TenderState>, action: PayloadAction<string[] | undefined>) => import("immer/dist/internal").WritableDraft<TenderState>;
27
+ }, "tenderSlice">;
28
+ export declare const updateBody: import("@reduxjs/toolkit").ActionCreatorWithPayload<Partial<TenderRequest_Entity>, "tenderSlice/updateBody">, updateStop: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
29
+ id: number;
30
+ stop: TenderStop_Entity;
31
+ }, "tenderSlice/updateStop">, tenderAddPallet: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
32
+ fromID: number;
33
+ toID: number;
34
+ id: number;
35
+ }, "tenderSlice/tenderAddPallet">, tenderRemovePallet: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
36
+ fromID: number;
37
+ toID: number;
38
+ id: number;
39
+ }, "tenderSlice/tenderRemovePallet">, updatePath: import("@reduxjs/toolkit").ActionCreatorWithPayload<Path_Entity, "tenderSlice/updatePath">, setTenderErrors: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<string[] | undefined, "tenderSlice/setTenderErrors">;
40
+ export declare const tenderReducer: import("redux").Reducer<TenderState, import("redux").AnyAction>;
@@ -0,0 +1,69 @@
1
+ import { createSlice } from "@reduxjs/toolkit";
2
+ const initialState = {
3
+ body: {},
4
+ };
5
+ export const tenderSlice = createSlice({
6
+ name: "tenderSlice",
7
+ initialState: initialState,
8
+ reducers: {
9
+ updateBody: (state, action) => {
10
+ state.body = action.payload;
11
+ return state;
12
+ },
13
+ updateStop: (state, action) => {
14
+ if (state.body.tenderStops) {
15
+ const index = state.body.tenderStops?.findIndex((stop) => stop.shipConId == action.payload.id);
16
+ state.body.tenderStops[index] = action.payload.stop;
17
+ }
18
+ if (state.body.paths) {
19
+ state.body.paths.forEach((path) => {
20
+ if (path.from.shipConId == action.payload.id) {
21
+ path.from = action.payload.stop;
22
+ }
23
+ if (path.to.shipConId == action.payload.id) {
24
+ path.to = action.payload.stop;
25
+ }
26
+ });
27
+ }
28
+ return state;
29
+ },
30
+ tenderAddPallet: (state, action) => {
31
+ const { fromID, id, toID } = action.payload;
32
+ const path = state.body.paths?.find((p) => p.from.shipConId == fromID && p.to.shipConId == toID);
33
+ if (path) {
34
+ const pallet = path.pallets.find((p) => p.id == id);
35
+ if (pallet)
36
+ pallet.count += 1;
37
+ }
38
+ return state;
39
+ },
40
+ tenderRemovePallet: (state, action) => {
41
+ const { fromID, id, toID } = action.payload;
42
+ const path = state.body.paths?.find((p) => p.from.shipConId == fromID && p.to.shipConId == toID);
43
+ if (path) {
44
+ const pallet = path.pallets.find((p) => p.id == id);
45
+ if (pallet)
46
+ pallet.count -= 1;
47
+ }
48
+ return state;
49
+ },
50
+ updatePath: (state, action) => {
51
+ const newPath = action.payload;
52
+ const index = state.body.paths?.findIndex((p) => {
53
+ return (p.from.shipConId == newPath.from.shipConId &&
54
+ p.to.shipConId == newPath.to.shipConId);
55
+ });
56
+ if (index != -1 && index != undefined && state.body.paths?.[index]) {
57
+ state.body.paths[index] = newPath;
58
+ }
59
+ return state;
60
+ },
61
+ setTenderErrors: (state, action) => {
62
+ state.errors = action.payload;
63
+ return state;
64
+ },
65
+ },
66
+ });
67
+ export const { updateBody, updateStop, tenderAddPallet, tenderRemovePallet, updatePath, setTenderErrors, } = tenderSlice.actions;
68
+ export const tenderReducer = tenderSlice.reducer;
69
+ //# sourceMappingURL=tenderSlice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tenderSlice.js","sourceRoot":"","sources":["../../../src/redux/tender/tenderSlice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAiB,MAAM,kBAAkB,CAAC;AAU9D,MAAM,YAAY,GAAgB;IAChC,IAAI,EAAE,EAAE;CACT,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,WAAW,CAAC;IACrC,IAAI,EAAE,aAAa;IACnB,YAAY,EAAE,YAAY;IAC1B,QAAQ,EAAE;QACR,UAAU,EAAE,CACV,KAAK,EACL,MAAoD,EACpD,EAAE;YACF,KAAK,CAAC,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC;YAC5B,OAAO,KAAK,CAAC;QACf,CAAC;QACD,UAAU,EAAE,CACV,KAAK,EACL,MA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,KAAK,IAAI,CAAC,CAAC,IAAI,KAAK,IAAI,SAAS,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,EAAE;gBAClE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC;aACnC;YAED,OAAO,KAAK,CAAC;QACf,CAAC;QACD,eAAe,EAAE,CAAC,KAAK,EAAE,MAA2C,EAAE,EAAE;YACtE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC;YAC9B,OAAO,KAAK,CAAC;QACf,CAAC;KACF;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,EACX,UAAU,EACV,UAAU,EACV,eAAe,EACf,kBAAkB,EAClB,UAAU,EACV,eAAe,GAChB,GAAG,WAAW,CAAC,OAAO,CAAC;AAExB,MAAM,CAAC,MAAM,aAAa,GAAG,WAAW,CAAC,OAAO,CAAC"}
@@ -0,0 +1,15 @@
1
+ declare const store: import("@reduxjs/toolkit/dist/configureStore").ToolkitStore<{
2
+ salesApi: import("@reduxjs/toolkit/dist/query/core/apiState").CombinedState<{}, "shipcons" | "files" | "quotes" | "loads" | "customers" | "loadAdjustments" | "locations" | "quoteAccessorials" | "tenders" | "holidays", "salesApi">;
3
+ salesKitState: import("redux").CombinedState<{
4
+ quote: import("./quote").QuoteState;
5
+ tender: import("./tender/tenderSlice").TenderState;
6
+ }>;
7
+ }, import("redux").AnyAction, [import("@reduxjs/toolkit").ThunkMiddleware<{
8
+ salesApi: import("@reduxjs/toolkit/dist/query/core/apiState").CombinedState<{}, "shipcons" | "files" | "quotes" | "loads" | "customers" | "loadAdjustments" | "locations" | "quoteAccessorials" | "tenders" | "holidays", "salesApi">;
9
+ salesKitState: import("redux").CombinedState<{
10
+ quote: import("./quote").QuoteState;
11
+ tender: import("./tender/tenderSlice").TenderState;
12
+ }>;
13
+ }, import("redux").AnyAction, undefined>]>;
14
+ export type RootState = ReturnType<typeof store.getState>;
15
+ export {};
@@ -0,0 +1,10 @@
1
+ import { configureStore } from "@reduxjs/toolkit";
2
+ import { salesApi } from "./api/salesApi";
3
+ import { salesKitReducer } from "./salesKitReducer";
4
+ const store = configureStore({
5
+ reducer: {
6
+ [salesApi.reducerPath]: salesApi.reducer,
7
+ salesKitState: salesKitReducer,
8
+ },
9
+ });
10
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/redux/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,MAAM,KAAK,GAAG,cAAc,CAAC;IAC3B,OAAO,EAAE;QACP,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,QAAQ,CAAC,OAAO;QACxC,aAAa,EAAE,eAAe;KAC/B;CACF,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nerdjs/sales-kit",
3
- "version": "1.0.9",
3
+ "version": "2.0.1",
4
4
  "description": "This is a @nerdjs library for the WA Sales Service",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -22,7 +22,8 @@
22
22
  "dependencies": {
23
23
  "moment-range": "^4.0.2",
24
24
  "moment": "^2.29.4",
25
- "yup": "^0.32.11"
25
+ "yup": "^0.32.11",
26
+ "luxon": "^3.3.0"
26
27
  },
27
28
  "peerDependencies": {
28
29
  "@emotion/react": "^11.7.1",
@@ -32,7 +33,7 @@
32
33
  "@mui/material": "^5.2.7",
33
34
  "@nerdjs/nerd-core": "^1.0.10",
34
35
  "@nerdjs/nerd-network": "^1.0.20",
35
- "@nerdjs/nerd-ui": "^1.0.40",
36
+ "@nerdjs/nerd-ui": "^1.0.49",
36
37
  "@reduxjs/toolkit": "^1.8.1",
37
38
  "@types/react": "^18",
38
39
  "@types/react-dom": "^18",
@@ -1,97 +0,0 @@
1
- import { DeleteAction, GetAction, PostAction, PutAction } from "@nerdjs/nerd-network";
2
- import { AnyAction } from "@reduxjs/toolkit";
3
- import { Accessorials_Entity } from "../../entities/accessorials";
4
- import Customer_Entity from "../../entities/customer/customer";
5
- import Customer from "../../entities/customer/helper";
6
- export declare const getCustomerAccessorials: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[id: number], {
7
- id: string;
8
- createdAt: string;
9
- request: GetAction;
10
- }, "getCustomerAccessorials", never, never>;
11
- export declare const getCustomerAccessorialsSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[customerAccessorials?: Accessorials_Entity | undefined], {
12
- customerAccessorials: Accessorials_Entity | undefined;
13
- id: string;
14
- createdAt: string;
15
- }, "getCustomerAccessorialsSuccess", never, never>;
16
- export declare const searchCustomer: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[query: string], {
17
- id: string;
18
- createdAt: string;
19
- request: GetAction;
20
- }, "searchCustomer", never, never>;
21
- export declare const setSelectedCustomerID: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[customerID?: number | undefined], {
22
- customerID: number | undefined;
23
- id: string;
24
- createdAt: string;
25
- }, "setSelectedCustomerID", never, never>;
26
- export declare const getCustomers: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[], {
27
- id: string;
28
- createdAt: string;
29
- request: GetAction;
30
- }, "v1/customer/getCustomers", never, never>;
31
- export declare const getCustomersSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[customers: Customer[]], {
32
- customers: Customer[];
33
- id: string;
34
- createdAt: string;
35
- }, "v1/customer/getCustomerSuccess", never, never>;
36
- export declare const getCustomersByFilter: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[query: {
37
- [key: string]: unknown;
38
- }], {
39
- id: string;
40
- createdAt: string;
41
- request: GetAction;
42
- }, "v1/customer/getCustomersByFilter", never, never>;
43
- export declare const getCustomersByFilterSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[customers: Customer[]], {
44
- customers: Customer[];
45
- id: string;
46
- createdAt: string;
47
- }, "v1/customer/getCustomersByFilterSuccess", never, never>;
48
- export declare const getCustomerById: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[id: number], {
49
- id: string;
50
- createdAt: string;
51
- request: GetAction;
52
- }, "v1/customer/getById", never, never>;
53
- export declare const getCustomerByIdSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[customer?: Customer_Entity | undefined], {
54
- customer: Customer_Entity | undefined;
55
- id: string;
56
- createdAt: string;
57
- }, "v1/customer/getCustomerByIdSuccess", never, never>;
58
- export declare const deleteCustomer: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[id: number, successAction?: AnyAction | undefined], {
59
- id: string;
60
- createdAt: string;
61
- request: DeleteAction;
62
- }, "v1/removeCustomerById", never, never>;
63
- export declare const deleteCustomerSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[success: boolean], {
64
- success: boolean;
65
- id: string;
66
- createdAt: string;
67
- }, "v1/customers/deleteCustomerSuccess", never, never>;
68
- export declare const updateCustomer: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[id: number, body: Customer_Entity], {
69
- id: string;
70
- createdAt: string;
71
- request: PutAction;
72
- }, "v1/customers/updateCustomer", never, never>;
73
- export declare const updateCustomerSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[success: boolean], {
74
- success: boolean;
75
- id: string;
76
- createdAt: string;
77
- }, "v1/customers/updateCustomerSuccess", never, never>;
78
- export declare const createCustomer: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[body: Customer_Entity], {
79
- id: string;
80
- createdAt: string;
81
- request: PostAction;
82
- }, "v1/customers/createCustomer", never, never>;
83
- export declare const createCustomerSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[customer: Customer], {
84
- customer: Customer;
85
- id: string;
86
- createdAt: string;
87
- }, "v1/customers/createCustomerSuccess", never, never>;
88
- export declare const getCustomersSearchMetadata: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[], {
89
- id: string;
90
- createdAt: string;
91
- request: GetAction;
92
- }, "v1/getCustomersSearchMetadata", never, never>;
93
- export declare const getCustomersSearchMetadataSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[customersSearchMetadata: unknown], {
94
- customersSearchMetadata: unknown;
95
- id: string;
96
- createdAt: string;
97
- }, "v1/getCustomersSearchMetadataSuccess", never, never>;