@nerdjs/sales-kit 1.0.8 → 2.0.0
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/entities/archerFile/archerFile.d.ts +11 -0
- package/dist/entities/archerFile/archerFile.js +48 -0
- package/dist/entities/archerFile/archerFile.js.map +1 -0
- package/dist/entities/archerFile/helper.d.ts +5 -0
- package/dist/entities/archerFile/helper.js +16 -0
- package/dist/entities/archerFile/helper.js.map +1 -0
- package/dist/entities/archerFile/index.d.ts +2 -0
- package/dist/entities/archerFile/index.js +3 -0
- package/dist/entities/archerFile/index.js.map +1 -0
- package/dist/entities/customer/index.d.ts +2 -1
- package/dist/entities/customer/index.js +2 -1
- package/dist/entities/customer/index.js.map +1 -1
- package/dist/entities/holiday/helper.d.ts +2 -0
- package/dist/entities/holiday/helper.js +4 -0
- package/dist/entities/holiday/helper.js.map +1 -1
- package/dist/entities/index.d.ts +3 -0
- package/dist/entities/index.js +3 -0
- package/dist/entities/index.js.map +1 -1
- package/dist/entities/location/helper.d.ts +3 -0
- package/dist/entities/location/helper.js +9 -0
- package/dist/entities/location/helper.js.map +1 -1
- package/dist/entities/location/index.d.ts +2 -2
- package/dist/entities/location/index.js +2 -2
- package/dist/entities/location/index.js.map +1 -1
- package/dist/entities/location/location.d.ts +5 -0
- package/dist/entities/location/location.js +7 -0
- package/dist/entities/location/location.js.map +1 -1
- package/dist/entities/path/helper.d.ts +5 -0
- package/dist/entities/path/helper.js +16 -0
- package/dist/entities/path/helper.js.map +1 -0
- package/dist/entities/path/index.d.ts +2 -0
- package/dist/entities/path/index.js +3 -0
- package/dist/entities/path/index.js.map +1 -0
- package/dist/entities/path/path.d.ts +20 -0
- package/dist/entities/path/path.js +35 -0
- package/dist/entities/path/path.js.map +1 -0
- package/dist/entities/quoteResponse/quoteResponse.d.ts +1 -0
- package/dist/entities/quoteResponse/quoteResponse.js +2 -0
- package/dist/entities/quoteResponse/quoteResponse.js.map +1 -1
- package/dist/entities/tenderCommodity/helper.d.ts +5 -0
- package/dist/entities/tenderCommodity/helper.js +16 -0
- package/dist/entities/tenderCommodity/helper.js.map +1 -0
- package/dist/entities/tenderCommodity/index.d.ts +2 -0
- package/dist/entities/tenderCommodity/index.js +3 -0
- package/dist/entities/tenderCommodity/index.js.map +1 -0
- package/dist/entities/tenderCommodity/tenderCommodity.d.ts +11 -0
- package/dist/entities/tenderCommodity/tenderCommodity.js +39 -0
- package/dist/entities/tenderCommodity/tenderCommodity.js.map +1 -0
- package/dist/entities/tenderRequest/helper.d.ts +5 -0
- package/dist/entities/tenderRequest/helper.js +16 -0
- package/dist/entities/tenderRequest/helper.js.map +1 -0
- package/dist/entities/tenderRequest/index.d.ts +2 -0
- package/dist/entities/tenderRequest/index.js +3 -0
- package/dist/entities/tenderRequest/index.js.map +1 -0
- package/dist/entities/tenderRequest/tenderRequest.d.ts +14 -0
- package/dist/entities/tenderRequest/tenderRequest.js +39 -0
- package/dist/entities/tenderRequest/tenderRequest.js.map +1 -0
- package/dist/entities/tenderResponse/helper.d.ts +5 -0
- package/dist/entities/tenderResponse/helper.js +16 -0
- package/dist/entities/tenderResponse/helper.js.map +1 -0
- package/dist/entities/tenderResponse/index.d.ts +2 -0
- package/dist/entities/tenderResponse/index.js +3 -0
- package/dist/entities/tenderResponse/index.js.map +1 -0
- package/dist/entities/tenderResponse/tenderResponse.d.ts +41 -0
- package/dist/entities/tenderResponse/tenderResponse.js +49 -0
- package/dist/entities/tenderResponse/tenderResponse.js.map +1 -0
- package/dist/entities/tenderStop/helper.d.ts +5 -0
- package/dist/entities/tenderStop/helper.js +16 -0
- package/dist/entities/tenderStop/helper.js.map +1 -0
- package/dist/entities/tenderStop/index.d.ts +2 -0
- package/dist/entities/tenderStop/index.js +3 -0
- package/dist/entities/tenderStop/index.js.map +1 -0
- package/dist/entities/tenderStop/tenderStop.d.ts +22 -0
- package/dist/entities/tenderStop/tenderStop.js +59 -0
- package/dist/entities/tenderStop/tenderStop.js.map +1 -0
- package/dist/hooks/customer/customerAutocomplete.d.ts +17 -0
- package/dist/hooks/customer/customerAutocomplete.js +35 -0
- package/dist/hooks/customer/customerAutocomplete.js.map +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +1 -0
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/locationsForm/locationsForm.d.ts +9 -1
- package/dist/hooks/locationsForm/locationsForm.js +127 -13
- package/dist/hooks/locationsForm/locationsForm.js.map +1 -1
- package/dist/hooks/quote/form.d.ts +2 -0
- package/dist/hooks/quote/form.js +59 -32
- package/dist/hooks/quote/form.js.map +1 -1
- package/dist/hooks/quote/helpers.d.ts +13 -8
- package/dist/hooks/quote/helpers.js +232 -92
- package/dist/hooks/quote/helpers.js.map +1 -1
- package/dist/hooks/quote/result.d.ts +8 -1
- package/dist/hooks/quote/result.js +233 -46
- package/dist/hooks/quote/result.js.map +1 -1
- package/dist/hooks/quote/template.d.ts +8 -1
- package/dist/hooks/quote/template.js +49 -41
- package/dist/hooks/quote/template.js.map +1 -1
- package/dist/hooks/tender/constants.d.ts +200 -0
- package/dist/hooks/tender/constants.js +77 -0
- package/dist/hooks/tender/constants.js.map +1 -0
- package/dist/hooks/tender/form.d.ts +10 -0
- package/dist/hooks/tender/form.js +669 -0
- package/dist/hooks/tender/form.js.map +1 -0
- package/dist/hooks/tender/helpers.d.ts +51 -0
- package/dist/hooks/tender/helpers.js +465 -0
- package/dist/hooks/tender/helpers.js.map +1 -0
- package/dist/hooks/tender/index.d.ts +1 -0
- package/dist/hooks/tender/index.js +2 -0
- package/dist/hooks/tender/index.js.map +1 -0
- package/dist/hooks/tender/template.d.ts +10 -0
- package/dist/hooks/tender/template.js +25 -0
- package/dist/hooks/tender/template.js.map +1 -0
- package/dist/locales/salesKitEn.d.ts +57 -0
- package/dist/locales/salesKitEn.js +57 -0
- package/dist/locales/salesKitEn.js.map +1 -1
- package/dist/redux/api/index.d.ts +1 -0
- package/dist/redux/api/index.js +2 -0
- package/dist/redux/api/index.js.map +1 -0
- package/dist/redux/api/salesApi.d.ts +1 -0
- package/dist/redux/api/salesApi.js +22 -0
- package/dist/redux/api/salesApi.js.map +1 -0
- package/dist/redux/customer/customerEndpoints.d.ts +28 -0
- package/dist/redux/customer/customerEndpoints.js +76 -0
- package/dist/redux/customer/customerEndpoints.js.map +1 -0
- package/dist/redux/customer/index.d.ts +1 -4
- package/dist/redux/customer/index.js +1 -4
- package/dist/redux/customer/index.js.map +1 -1
- package/dist/redux/holiday/holidayEndpoints.d.ts +26 -0
- package/dist/redux/holiday/holidayEndpoints.js +63 -0
- package/dist/redux/holiday/holidayEndpoints.js.map +1 -0
- package/dist/redux/holiday/index.d.ts +2 -0
- package/dist/redux/holiday/index.js +3 -0
- package/dist/redux/holiday/index.js.map +1 -0
- package/dist/redux/index.d.ts +2 -0
- package/dist/redux/index.js +2 -0
- package/dist/redux/index.js.map +1 -1
- package/dist/redux/load/index.d.ts +1 -4
- package/dist/redux/load/index.js +1 -4
- package/dist/redux/load/index.js.map +1 -1
- package/dist/redux/load/loadEndpoints.d.ts +26 -0
- package/dist/redux/load/loadEndpoints.js +63 -0
- package/dist/redux/load/loadEndpoints.js.map +1 -0
- package/dist/redux/loadAdjustment/index.d.ts +1 -4
- package/dist/redux/loadAdjustment/index.js +1 -4
- package/dist/redux/loadAdjustment/index.js.map +1 -1
- package/dist/redux/loadAdjustment/loadAdjustmentEndpoints.d.ts +26 -0
- package/dist/redux/loadAdjustment/loadAdjustmentEndpoints.js +63 -0
- package/dist/redux/loadAdjustment/loadAdjustmentEndpoints.js.map +1 -0
- package/dist/redux/location/index.d.ts +1 -4
- package/dist/redux/location/index.js +1 -4
- package/dist/redux/location/index.js.map +1 -1
- package/dist/redux/location/locationEndpoints.d.ts +37 -0
- package/dist/redux/location/locationEndpoints.js +107 -0
- package/dist/redux/location/locationEndpoints.js.map +1 -0
- package/dist/redux/quote/index.d.ts +0 -1
- package/dist/redux/quote/index.js +0 -1
- package/dist/redux/quote/index.js.map +1 -1
- package/dist/redux/quote/quoteAction.d.ts +12 -78
- package/dist/redux/quote/quoteAction.js +221 -165
- package/dist/redux/quote/quoteAction.js.map +1 -1
- package/dist/redux/quote/quoteEndpoints.d.ts +114 -0
- package/dist/redux/quote/quoteEndpoints.js +80 -0
- package/dist/redux/quote/quoteEndpoints.js.map +1 -0
- package/dist/redux/quote/quoteHooks.d.ts +171 -0
- package/dist/redux/quote/quoteHooks.js +51 -0
- package/dist/redux/quote/quoteHooks.js.map +1 -0
- package/dist/redux/quote/quoteReducer.d.ts +5 -1
- package/dist/redux/quote/quoteReducer.js +8 -39
- package/dist/redux/quote/quoteReducer.js.map +1 -1
- package/dist/redux/quote/quoteSelector.d.ts +8 -89
- package/dist/redux/quote/quoteSelector.js +27 -41
- package/dist/redux/quote/quoteSelector.js.map +1 -1
- package/dist/redux/quoteAccessorial/index.d.ts +1 -3
- package/dist/redux/quoteAccessorial/index.js +1 -3
- package/dist/redux/quoteAccessorial/index.js.map +1 -1
- package/dist/redux/quoteAccessorial/quoteAccessorialEndpoints.d.ts +18 -0
- package/dist/redux/quoteAccessorial/quoteAccessorialEndpoints.js +52 -0
- package/dist/redux/quoteAccessorial/quoteAccessorialEndpoints.js.map +1 -0
- package/dist/redux/salesKitReducer.d.ts +3 -18
- package/dist/redux/salesKitReducer.js +2 -12
- package/dist/redux/salesKitReducer.js.map +1 -1
- package/dist/redux/shipcon/index.d.ts +1 -4
- package/dist/redux/shipcon/index.js +1 -4
- package/dist/redux/shipcon/index.js.map +1 -1
- package/dist/redux/shipcon/shipconEndpoints.d.ts +26 -0
- package/dist/redux/shipcon/shipconEndpoints.js +63 -0
- package/dist/redux/shipcon/shipconEndpoints.js.map +1 -0
- package/dist/redux/tender/index.d.ts +0 -0
- package/dist/redux/tender/index.js +2 -0
- package/dist/redux/tender/index.js.map +1 -0
- package/dist/redux/tender/tenderEndpoints.d.ts +34 -0
- package/dist/redux/tender/tenderEndpoints.js +52 -0
- package/dist/redux/tender/tenderEndpoints.js.map +1 -0
- package/dist/redux/tender/tenderSelector.d.ts +53 -0
- package/dist/redux/tender/tenderSelector.js +34 -0
- package/dist/redux/tender/tenderSelector.js.map +1 -0
- package/dist/redux/tender/tenderSlice.d.ts +40 -0
- package/dist/redux/tender/tenderSlice.js +69 -0
- package/dist/redux/tender/tenderSlice.js.map +1 -0
- package/dist/redux/types.d.ts +15 -0
- package/dist/redux/types.js +10 -0
- package/dist/redux/types.js.map +1 -0
- package/package.json +4 -3
- package/dist/redux/customer/customerActions.d.ts +0 -97
- package/dist/redux/customer/customerActions.js +0 -210
- package/dist/redux/customer/customerActions.js.map +0 -1
- package/dist/redux/customer/customerReducer.d.ts +0 -2
- package/dist/redux/customer/customerReducer.js +0 -42
- package/dist/redux/customer/customerReducer.js.map +0 -1
- package/dist/redux/customer/customerSelector.d.ts +0 -27
- package/dist/redux/customer/customerSelector.js +0 -38
- package/dist/redux/customer/customerSelector.js.map +0 -1
- package/dist/redux/customer/customerState.d.ts +0 -11
- package/dist/redux/customer/customerState.js +0 -2
- package/dist/redux/customer/customerState.js.map +0 -1
- package/dist/redux/load/loadActions.d.ts +0 -80
- package/dist/redux/load/loadActions.js +0 -172
- package/dist/redux/load/loadActions.js.map +0 -1
- package/dist/redux/load/loadReducer.d.ts +0 -2
- package/dist/redux/load/loadReducer.js +0 -35
- package/dist/redux/load/loadReducer.js.map +0 -1
- package/dist/redux/load/loadSelector.d.ts +0 -27
- package/dist/redux/load/loadSelector.js +0 -19
- package/dist/redux/load/loadSelector.js.map +0 -1
- package/dist/redux/load/loadState.d.ts +0 -8
- package/dist/redux/load/loadState.js +0 -2
- package/dist/redux/load/loadState.js.map +0 -1
- package/dist/redux/loadAdjustment/loadAdjustmentActions.d.ts +0 -80
- package/dist/redux/loadAdjustment/loadAdjustmentActions.js +0 -172
- package/dist/redux/loadAdjustment/loadAdjustmentActions.js.map +0 -1
- package/dist/redux/loadAdjustment/loadAdjustmentReducer.d.ts +0 -2
- package/dist/redux/loadAdjustment/loadAdjustmentReducer.js +0 -35
- package/dist/redux/loadAdjustment/loadAdjustmentReducer.js.map +0 -1
- package/dist/redux/loadAdjustment/loadAdjustmentSelector.d.ts +0 -15
- package/dist/redux/loadAdjustment/loadAdjustmentSelector.js +0 -12
- package/dist/redux/loadAdjustment/loadAdjustmentSelector.js.map +0 -1
- package/dist/redux/loadAdjustment/loadAdjustmentState.d.ts +0 -8
- package/dist/redux/loadAdjustment/loadAdjustmentState.js +0 -2
- package/dist/redux/loadAdjustment/loadAdjustmentState.js.map +0 -1
- package/dist/redux/location/locationActions.d.ts +0 -101
- package/dist/redux/location/locationActions.js +0 -218
- package/dist/redux/location/locationActions.js.map +0 -1
- package/dist/redux/location/locationReducer.d.ts +0 -2
- package/dist/redux/location/locationReducer.js +0 -54
- package/dist/redux/location/locationReducer.js.map +0 -1
- package/dist/redux/location/locationSelector.d.ts +0 -53
- package/dist/redux/location/locationSelector.js +0 -32
- package/dist/redux/location/locationSelector.js.map +0 -1
- package/dist/redux/location/locationState.d.ts +0 -15
- package/dist/redux/location/locationState.js +0 -2
- package/dist/redux/location/locationState.js.map +0 -1
- package/dist/redux/quote/quoteMiddleware.d.ts +0 -2
- package/dist/redux/quote/quoteMiddleware.js +0 -31
- package/dist/redux/quote/quoteMiddleware.js.map +0 -1
- package/dist/redux/quoteAccessorial/quoteAccessorialActions.d.ts +0 -70
- package/dist/redux/quoteAccessorial/quoteAccessorialActions.js +0 -149
- package/dist/redux/quoteAccessorial/quoteAccessorialActions.js.map +0 -1
- package/dist/redux/quoteAccessorial/quoteAccessorialReducer.d.ts +0 -2
- package/dist/redux/quoteAccessorial/quoteAccessorialReducer.js +0 -29
- package/dist/redux/quoteAccessorial/quoteAccessorialReducer.js.map +0 -1
- package/dist/redux/quoteAccessorial/quoteAccessorialState.d.ts +0 -8
- package/dist/redux/quoteAccessorial/quoteAccessorialState.js +0 -2
- package/dist/redux/quoteAccessorial/quoteAccessorialState.js.map +0 -1
- package/dist/redux/shipcon/shipconActions.d.ts +0 -80
- package/dist/redux/shipcon/shipconActions.js +0 -172
- package/dist/redux/shipcon/shipconActions.js.map +0 -1
- package/dist/redux/shipcon/shipconReducer.d.ts +0 -2
- package/dist/redux/shipcon/shipconReducer.js +0 -35
- package/dist/redux/shipcon/shipconReducer.js.map +0 -1
- package/dist/redux/shipcon/shipconSelector.d.ts +0 -22
- package/dist/redux/shipcon/shipconSelector.js +0 -19
- package/dist/redux/shipcon/shipconSelector.js.map +0 -1
- package/dist/redux/shipcon/shipconState.d.ts +0 -8
- package/dist/redux/shipcon/shipconState.js +0 -2
- package/dist/redux/shipcon/shipconState.js.map +0 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { EntityState } from "@reduxjs/toolkit";
|
|
2
|
+
import { Load_Entity } from "../../entities";
|
|
3
|
+
import { SearchMetadata } from "@nerdjs/nerd-core";
|
|
4
|
+
export declare const loadEndpoints: 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, {}>>, {
|
|
5
|
+
getLoads: import("@reduxjs/toolkit/dist/query").QueryDefinition<void | Record<string, unknown>, (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", EntityState<Load_Entity>, "salesApi">;
|
|
6
|
+
getLoad: 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", Load_Entity, "salesApi">;
|
|
7
|
+
createLoad: import("@reduxjs/toolkit/dist/query").MutationDefinition<Partial<Load_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", Load_Entity, "salesApi">;
|
|
8
|
+
updateLoad: import("@reduxjs/toolkit/dist/query").MutationDefinition<{
|
|
9
|
+
id: number;
|
|
10
|
+
body: Partial<Load_Entity>;
|
|
11
|
+
}, (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">;
|
|
12
|
+
deleteLoad: 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">;
|
|
13
|
+
getLoadSearchMetadata: import("@reduxjs/toolkit/dist/query").QueryDefinition<void, (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", SearchMetadata, "salesApi">;
|
|
14
|
+
}, "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>;
|
|
15
|
+
export declare const useGetLoadQuery: 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", Load_Entity, "salesApi">>, useGetLoadsQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/dist/query").QueryDefinition<void | Record<string, unknown>, (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", EntityState<Load_Entity>, "salesApi">>, useGetLoadSearchMetadataQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/dist/query").QueryDefinition<void, (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", SearchMetadata, "salesApi">>, useLazyGetLoadsQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseLazyQuery<import("@reduxjs/toolkit/dist/query").QueryDefinition<void | Record<string, unknown>, (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", EntityState<Load_Entity>, "salesApi">>, useLazyGetLoadQuery: 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", Load_Entity, "salesApi">>, useLazyGetLoadSearchMetadataQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseLazyQuery<import("@reduxjs/toolkit/dist/query").QueryDefinition<void, (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", SearchMetadata, "salesApi">>, useCreateLoadMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/dist/query").MutationDefinition<Partial<Load_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", Load_Entity, "salesApi">>, useDeleteLoadMutation: 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">>, useUpdateLoadMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/dist/query").MutationDefinition<{
|
|
16
|
+
id: number;
|
|
17
|
+
body: Partial<Load_Entity>;
|
|
18
|
+
}, (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">>;
|
|
19
|
+
export default loadEndpoints;
|
|
20
|
+
export declare const getLoadsSelectors: (params: Record<string, unknown> | void) => import("@reduxjs/toolkit").EntitySelectors<Load_Entity, {
|
|
21
|
+
salesApi: import("@reduxjs/toolkit/dist/query/core/apiState").CombinedState<{}, "shipcons" | "files" | "quotes" | "loads" | "customers" | "loadAdjustments" | "locations" | "quoteAccessorials" | "tenders" | "holidays", "salesApi">;
|
|
22
|
+
salesKitState: import("redux").CombinedState<{
|
|
23
|
+
quote: import("..").QuoteState;
|
|
24
|
+
tender: import("../tender/tenderSlice").TenderState;
|
|
25
|
+
}>;
|
|
26
|
+
}>;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { createEntityAdapter, createSelector, } from "@reduxjs/toolkit";
|
|
2
|
+
import { salesApi } from "../api/salesApi";
|
|
3
|
+
const loadsAdapter = createEntityAdapter();
|
|
4
|
+
const loadsInitialState = loadsAdapter.getInitialState();
|
|
5
|
+
export const loadEndpoints = salesApi.injectEndpoints({
|
|
6
|
+
endpoints: (build) => ({
|
|
7
|
+
getLoads: build.query({
|
|
8
|
+
query: (args) => {
|
|
9
|
+
return {
|
|
10
|
+
url: `sales/loads`,
|
|
11
|
+
params: args,
|
|
12
|
+
};
|
|
13
|
+
},
|
|
14
|
+
transformResponse: (responseData) => {
|
|
15
|
+
return loadsAdapter.setAll(loadsInitialState, responseData);
|
|
16
|
+
},
|
|
17
|
+
providesTags: ["loads"],
|
|
18
|
+
}),
|
|
19
|
+
getLoad: build.query({
|
|
20
|
+
query: (id) => `sales/loads/${id}`,
|
|
21
|
+
providesTags: (_result, _error, id) => [{ type: "loads", id }],
|
|
22
|
+
}),
|
|
23
|
+
createLoad: build.mutation({
|
|
24
|
+
query: (body) => ({
|
|
25
|
+
method: "POST",
|
|
26
|
+
body,
|
|
27
|
+
url: `sales/loads`,
|
|
28
|
+
}),
|
|
29
|
+
invalidatesTags: ["loads"],
|
|
30
|
+
}),
|
|
31
|
+
updateLoad: build.mutation({
|
|
32
|
+
query: (args) => ({
|
|
33
|
+
method: "PUT",
|
|
34
|
+
body: args.body,
|
|
35
|
+
url: `sales/loads/${args.id}`,
|
|
36
|
+
}),
|
|
37
|
+
invalidatesTags: (_result, _error, { id }) => [
|
|
38
|
+
{ type: "loads", id },
|
|
39
|
+
"loads",
|
|
40
|
+
],
|
|
41
|
+
}),
|
|
42
|
+
deleteLoad: build.mutation({
|
|
43
|
+
query: (id) => ({
|
|
44
|
+
method: "DELETE",
|
|
45
|
+
url: `sales/loads/${id}`,
|
|
46
|
+
}),
|
|
47
|
+
invalidatesTags: ["loads"],
|
|
48
|
+
}),
|
|
49
|
+
getLoadSearchMetadata: build.query({
|
|
50
|
+
query: () => `sales/loads/searchMetadata`,
|
|
51
|
+
}),
|
|
52
|
+
}),
|
|
53
|
+
});
|
|
54
|
+
export const { useGetLoadQuery, useGetLoadsQuery, useGetLoadSearchMetadataQuery, useLazyGetLoadsQuery, useLazyGetLoadQuery, useLazyGetLoadSearchMetadataQuery, useCreateLoadMutation, useDeleteLoadMutation, useUpdateLoadMutation, } = loadEndpoints;
|
|
55
|
+
export default loadEndpoints;
|
|
56
|
+
export const getLoadsSelectors = (params) => {
|
|
57
|
+
return loadsAdapter.getSelectors((state) => {
|
|
58
|
+
return (createSelector(loadEndpoints.endpoints.getLoads.select(params), (loadsResult) => {
|
|
59
|
+
return loadsResult.data;
|
|
60
|
+
})(state) ?? loadsInitialState);
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
//# sourceMappingURL=loadEndpoints.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loadEndpoints.js","sourceRoot":"","sources":["../../../src/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,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/redux/loadAdjustment/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/redux/loadAdjustment/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { EntityState } from "@reduxjs/toolkit";
|
|
2
|
+
import { LoadAdjustment_Entity } from "../../entities";
|
|
3
|
+
import { SearchMetadata } from "@nerdjs/nerd-core";
|
|
4
|
+
export declare const loadAdjustmentEndpoints: 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, {}>>, {
|
|
5
|
+
getLoadAdjustments: import("@reduxjs/toolkit/dist/query").QueryDefinition<void | Record<string, unknown>, (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", EntityState<LoadAdjustment_Entity>, "salesApi">;
|
|
6
|
+
getLoadAdjustment: 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", LoadAdjustment_Entity, "salesApi">;
|
|
7
|
+
createLoadAdjustment: import("@reduxjs/toolkit/dist/query").MutationDefinition<Partial<LoadAdjustment_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", LoadAdjustment_Entity, "salesApi">;
|
|
8
|
+
updateLoadAdjustment: import("@reduxjs/toolkit/dist/query").MutationDefinition<{
|
|
9
|
+
id: number;
|
|
10
|
+
body: Partial<LoadAdjustment_Entity>;
|
|
11
|
+
}, (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">;
|
|
12
|
+
deleteLoadAdjustment: 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">;
|
|
13
|
+
getLoadAdjustmentSearchMetadata: import("@reduxjs/toolkit/dist/query").QueryDefinition<void, (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", SearchMetadata, "salesApi">;
|
|
14
|
+
}, "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>;
|
|
15
|
+
export declare const useGetLoadAdjustmentQuery: 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", LoadAdjustment_Entity, "salesApi">>, useGetLoadAdjustmentsQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/dist/query").QueryDefinition<void | Record<string, unknown>, (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", EntityState<LoadAdjustment_Entity>, "salesApi">>, useGetLoadAdjustmentSearchMetadataQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/dist/query").QueryDefinition<void, (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", SearchMetadata, "salesApi">>, useLazyGetLoadAdjustmentsQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseLazyQuery<import("@reduxjs/toolkit/dist/query").QueryDefinition<void | Record<string, unknown>, (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", EntityState<LoadAdjustment_Entity>, "salesApi">>, useLazyGetLoadAdjustmentQuery: 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", LoadAdjustment_Entity, "salesApi">>, useLazyGetLoadAdjustmentSearchMetadataQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseLazyQuery<import("@reduxjs/toolkit/dist/query").QueryDefinition<void, (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", SearchMetadata, "salesApi">>, useCreateLoadAdjustmentMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/dist/query").MutationDefinition<Partial<LoadAdjustment_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", LoadAdjustment_Entity, "salesApi">>, useDeleteLoadAdjustmentMutation: 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">>, useUpdateLoadAdjustmentMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/dist/query").MutationDefinition<{
|
|
16
|
+
id: number;
|
|
17
|
+
body: Partial<LoadAdjustment_Entity>;
|
|
18
|
+
}, (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">>;
|
|
19
|
+
export default loadAdjustmentEndpoints;
|
|
20
|
+
export declare const getLoadAdjustmentsSelectors: (params: Record<string, unknown> | void) => import("@reduxjs/toolkit").EntitySelectors<LoadAdjustment_Entity, {
|
|
21
|
+
salesApi: import("@reduxjs/toolkit/dist/query/core/apiState").CombinedState<{}, "shipcons" | "files" | "quotes" | "loads" | "customers" | "loadAdjustments" | "locations" | "quoteAccessorials" | "tenders" | "holidays", "salesApi">;
|
|
22
|
+
salesKitState: import("redux").CombinedState<{
|
|
23
|
+
quote: import("..").QuoteState;
|
|
24
|
+
tender: import("../tender/tenderSlice").TenderState;
|
|
25
|
+
}>;
|
|
26
|
+
}>;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { createEntityAdapter, createSelector, } from "@reduxjs/toolkit";
|
|
2
|
+
import { salesApi } from "../api/salesApi";
|
|
3
|
+
const loadAdjustmentsAdapter = createEntityAdapter();
|
|
4
|
+
const loadAdjustmentsInitialState = loadAdjustmentsAdapter.getInitialState();
|
|
5
|
+
export const loadAdjustmentEndpoints = salesApi.injectEndpoints({
|
|
6
|
+
endpoints: (build) => ({
|
|
7
|
+
getLoadAdjustments: build.query({
|
|
8
|
+
query: (args) => {
|
|
9
|
+
return {
|
|
10
|
+
url: `sales/loadAdjustments`,
|
|
11
|
+
params: args,
|
|
12
|
+
};
|
|
13
|
+
},
|
|
14
|
+
transformResponse: (responseData) => {
|
|
15
|
+
return loadAdjustmentsAdapter.setAll(loadAdjustmentsInitialState, responseData);
|
|
16
|
+
},
|
|
17
|
+
providesTags: ["loadAdjustments"],
|
|
18
|
+
}),
|
|
19
|
+
getLoadAdjustment: build.query({
|
|
20
|
+
query: (id) => `sales/loadAdjustments/${id}`,
|
|
21
|
+
providesTags: (_result, _error, id) => [{ type: "loadAdjustments", id }],
|
|
22
|
+
}),
|
|
23
|
+
createLoadAdjustment: build.mutation({
|
|
24
|
+
query: (body) => ({
|
|
25
|
+
method: "POST",
|
|
26
|
+
body,
|
|
27
|
+
url: `sales/loadAdjustments`,
|
|
28
|
+
}),
|
|
29
|
+
invalidatesTags: ["loadAdjustments"],
|
|
30
|
+
}),
|
|
31
|
+
updateLoadAdjustment: build.mutation({
|
|
32
|
+
query: (args) => ({
|
|
33
|
+
method: "PUT",
|
|
34
|
+
body: args.body,
|
|
35
|
+
url: `sales/loadAdjustments/${args.id}`,
|
|
36
|
+
}),
|
|
37
|
+
invalidatesTags: (_result, _error, { id }) => [
|
|
38
|
+
{ type: "loadAdjustments", id },
|
|
39
|
+
"loadAdjustments",
|
|
40
|
+
],
|
|
41
|
+
}),
|
|
42
|
+
deleteLoadAdjustment: build.mutation({
|
|
43
|
+
query: (id) => ({
|
|
44
|
+
method: "DELETE",
|
|
45
|
+
url: `sales/loadAdjustments/${id}`,
|
|
46
|
+
}),
|
|
47
|
+
invalidatesTags: ["loadAdjustments"],
|
|
48
|
+
}),
|
|
49
|
+
getLoadAdjustmentSearchMetadata: build.query({
|
|
50
|
+
query: () => `sales/loadAdjustments/searchMetadata`,
|
|
51
|
+
}),
|
|
52
|
+
}),
|
|
53
|
+
});
|
|
54
|
+
export const { useGetLoadAdjustmentQuery, useGetLoadAdjustmentsQuery, useGetLoadAdjustmentSearchMetadataQuery, useLazyGetLoadAdjustmentsQuery, useLazyGetLoadAdjustmentQuery, useLazyGetLoadAdjustmentSearchMetadataQuery, useCreateLoadAdjustmentMutation, useDeleteLoadAdjustmentMutation, useUpdateLoadAdjustmentMutation, } = loadAdjustmentEndpoints;
|
|
55
|
+
export default loadAdjustmentEndpoints;
|
|
56
|
+
export const getLoadAdjustmentsSelectors = (params) => {
|
|
57
|
+
return loadAdjustmentsAdapter.getSelectors((state) => {
|
|
58
|
+
return (createSelector(loadAdjustmentEndpoints.endpoints.getLoadAdjustments.select(params), (loadAdjustmentsResult) => {
|
|
59
|
+
return loadAdjustmentsResult.data;
|
|
60
|
+
})(state) ?? loadAdjustmentsInitialState);
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
//# sourceMappingURL=loadAdjustmentEndpoints.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loadAdjustmentEndpoints.js","sourceRoot":"","sources":["../../../src/redux/loadAdjustment/loadAdjustmentEndpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EAEnB,cAAc,GACf,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAI3C,MAAM,sBAAsB,GAAG,mBAAmB,EAAyB,CAAC;AAC5E,MAAM,2BAA2B,GAAG,sBAAsB,CAAC,eAAe,EAAE,CAAC;AAE7E,MAAM,CAAC,MAAM,uBAAuB,GAAG,QAAQ,CAAC,eAAe,CAAC;IAC9D,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACrB,kBAAkB,EAAE,KAAK,CAAC,KAAK,CAG7B;YACA,KAAK,EAAE,CAAC,IAAI,EAAE,EAAE;gBACd,OAAO;oBACL,GAAG,EAAE,uBAAuB;oBAC5B,MAAM,EAAE,IAAI;iBACb,CAAC;YACJ,CAAC;YACD,iBAAiB,EAAE,CAAC,YAAqC,EAAE,EAAE;gBAC3D,OAAO,sBAAsB,CAAC,MAAM,CAClC,2BAA2B,EAC3B,YAAY,CACb,CAAC;YACJ,CAAC;YACD,YAAY,EAAE,CAAC,iBAAiB,CAAC;SAClC,CAAC;QACF,iBAAiB,EAAE,KAAK,CAAC,KAAK,CAAgC;YAC5D,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,CA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6B,EAC7B,2CAA2C,EAC3C,+BAA+B,EAC/B,+BAA+B,EAC/B,+BAA+B,GAChC,GAAG,uBAAuB,CAAC;AAE5B,eAAe,uBAAuB,CAAC;AAEvC,MAAM,CAAC,MAAM,2BAA2B,GAAG,CACzC,MAAsC,EACtC,EAAE;IACF,OAAO,sBAAsB,CAAC,YAAY,CAAY,CAAC,KAAK,EAAE,EAAE;QAC9D,OAAO,CACL,cAAc,CACZ,uBAAuB,CAAC,SAAS,CAAC,kBAAkB,CAAC,MAAM,CAAC,MAAM,CAAC,EACnE,CAAC,qBAAqB,EAAE,EAAE;YACxB,OAAO,qBAAqB,CAAC,IAAI,CAAC;QACpC,CAAC,CACF,CAAC,KAAK,CAAC,IAAI,2BAA2B,CACxC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/redux/location/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/redux/location/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { EntityState } from "@reduxjs/toolkit";
|
|
2
|
+
import { Location_Entity } from "../../entities";
|
|
3
|
+
import { SearchMetadata } from "@nerdjs/nerd-core";
|
|
4
|
+
export declare const locationEndpoints: 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, {}>>, {
|
|
5
|
+
getLocations: import("@reduxjs/toolkit/dist/query").QueryDefinition<void | Record<string, unknown>, (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", EntityState<Location_Entity>, "salesApi">;
|
|
6
|
+
getLocation: 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", Location_Entity, "salesApi">;
|
|
7
|
+
createLocation: import("@reduxjs/toolkit/dist/query").MutationDefinition<Partial<Location_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", Location_Entity, "salesApi">;
|
|
8
|
+
updateLocation: import("@reduxjs/toolkit/dist/query").MutationDefinition<{
|
|
9
|
+
id: number;
|
|
10
|
+
body: Partial<Location_Entity>;
|
|
11
|
+
}, (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">;
|
|
12
|
+
deleteLocation: 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">;
|
|
13
|
+
getLocationSearchMetadata: import("@reduxjs/toolkit/dist/query").QueryDefinition<void, (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", SearchMetadata, "salesApi">;
|
|
14
|
+
searchExistingLocation: import("@reduxjs/toolkit/dist/query").QueryDefinition<string, (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", Location_Entity[], "salesApi">;
|
|
15
|
+
searchLocation: import("@reduxjs/toolkit/dist/query").QueryDefinition<{
|
|
16
|
+
zip: string;
|
|
17
|
+
location: string;
|
|
18
|
+
}, (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", Location_Entity[], "salesApi">;
|
|
19
|
+
}, "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>;
|
|
20
|
+
export declare const useGetLocationQuery: 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", Location_Entity, "salesApi">>, useGetLocationsQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/dist/query").QueryDefinition<void | Record<string, unknown>, (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", EntityState<Location_Entity>, "salesApi">>, useGetLocationSearchMetadataQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/dist/query").QueryDefinition<void, (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", SearchMetadata, "salesApi">>, useLazyGetLocationsQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseLazyQuery<import("@reduxjs/toolkit/dist/query").QueryDefinition<void | Record<string, unknown>, (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", EntityState<Location_Entity>, "salesApi">>, useLazyGetLocationQuery: 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", Location_Entity, "salesApi">>, useLazyGetLocationSearchMetadataQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseLazyQuery<import("@reduxjs/toolkit/dist/query").QueryDefinition<void, (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", SearchMetadata, "salesApi">>, useCreateLocationMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/dist/query").MutationDefinition<Partial<Location_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", Location_Entity, "salesApi">>, useDeleteLocationMutation: 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">>, useUpdateLocationMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/dist/query").MutationDefinition<{
|
|
21
|
+
id: number;
|
|
22
|
+
body: Partial<Location_Entity>;
|
|
23
|
+
}, (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">>, useLazySearchExistingLocationQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseLazyQuery<import("@reduxjs/toolkit/dist/query").QueryDefinition<string, (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", Location_Entity[], "salesApi">>, useLazySearchLocationQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseLazyQuery<import("@reduxjs/toolkit/dist/query").QueryDefinition<{
|
|
24
|
+
zip: string;
|
|
25
|
+
location: string;
|
|
26
|
+
}, (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", Location_Entity[], "salesApi">>, useSearchExistingLocationQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/dist/query").QueryDefinition<string, (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", Location_Entity[], "salesApi">>, useSearchLocationQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/dist/query").QueryDefinition<{
|
|
27
|
+
zip: string;
|
|
28
|
+
location: string;
|
|
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", Location_Entity[], "salesApi">>;
|
|
30
|
+
export default locationEndpoints;
|
|
31
|
+
export declare const getLocationsSelectors: (params: Record<string, unknown> | void) => import("@reduxjs/toolkit").EntitySelectors<Location_Entity, {
|
|
32
|
+
salesApi: import("@reduxjs/toolkit/dist/query/core/apiState").CombinedState<{}, "shipcons" | "files" | "quotes" | "loads" | "customers" | "loadAdjustments" | "locations" | "quoteAccessorials" | "tenders" | "holidays", "salesApi">;
|
|
33
|
+
salesKitState: import("redux").CombinedState<{
|
|
34
|
+
quote: import("..").QuoteState;
|
|
35
|
+
tender: import("../tender/tenderSlice").TenderState;
|
|
36
|
+
}>;
|
|
37
|
+
}>;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { createEntityAdapter, createSelector, } from "@reduxjs/toolkit";
|
|
2
|
+
import { salesApi } from "../api/salesApi";
|
|
3
|
+
const locationsAdapter = createEntityAdapter();
|
|
4
|
+
const locationsInitialState = locationsAdapter.getInitialState();
|
|
5
|
+
// const searchExistingLocationsAdapter = createEntityAdapter<Location_Entity>();
|
|
6
|
+
// const searchExistingLocationsInitialState =
|
|
7
|
+
// searchExistingLocationsAdapter.getInitialState();
|
|
8
|
+
// const searchLocationsAdapter = createEntityAdapter<Location_Entity>();
|
|
9
|
+
// const searchLocationsInitialState = searchLocationsAdapter.getInitialState();
|
|
10
|
+
export const locationEndpoints = salesApi.injectEndpoints({
|
|
11
|
+
endpoints: (build) => ({
|
|
12
|
+
getLocations: build.query({
|
|
13
|
+
query: (args) => {
|
|
14
|
+
return {
|
|
15
|
+
url: `locations`,
|
|
16
|
+
params: args,
|
|
17
|
+
};
|
|
18
|
+
},
|
|
19
|
+
transformResponse: (responseData) => {
|
|
20
|
+
return locationsAdapter.setAll(locationsInitialState, responseData);
|
|
21
|
+
},
|
|
22
|
+
providesTags: ["locations"],
|
|
23
|
+
}),
|
|
24
|
+
getLocation: build.query({
|
|
25
|
+
query: (id) => ({ url: `locations/${id}` }),
|
|
26
|
+
providesTags: (_result, _error, id) => [{ type: "locations", id }],
|
|
27
|
+
}),
|
|
28
|
+
createLocation: build.mutation({
|
|
29
|
+
query: (body) => ({
|
|
30
|
+
method: "POST",
|
|
31
|
+
body,
|
|
32
|
+
url: `locations`,
|
|
33
|
+
}),
|
|
34
|
+
invalidatesTags: ["locations"],
|
|
35
|
+
}),
|
|
36
|
+
updateLocation: build.mutation({
|
|
37
|
+
query: (args) => ({
|
|
38
|
+
method: "PUT",
|
|
39
|
+
body: args.body,
|
|
40
|
+
url: `locations/${args.id}`,
|
|
41
|
+
}),
|
|
42
|
+
invalidatesTags: (_result, _error, { id }) => [
|
|
43
|
+
{ type: "locations", id },
|
|
44
|
+
"locations",
|
|
45
|
+
],
|
|
46
|
+
}),
|
|
47
|
+
deleteLocation: build.mutation({
|
|
48
|
+
query: (id) => ({
|
|
49
|
+
method: "DELETE",
|
|
50
|
+
url: `locations/${id}`,
|
|
51
|
+
}),
|
|
52
|
+
invalidatesTags: ["locations"],
|
|
53
|
+
}),
|
|
54
|
+
getLocationSearchMetadata: build.query({
|
|
55
|
+
query: () => ({ url: `locations/searchMetadata` }),
|
|
56
|
+
}),
|
|
57
|
+
searchExistingLocation: build.query({
|
|
58
|
+
query: (placeId) => ({
|
|
59
|
+
url: `locations/search?placeId=${placeId}`,
|
|
60
|
+
}),
|
|
61
|
+
providesTags: ["locations"],
|
|
62
|
+
}),
|
|
63
|
+
searchLocation: build.query({
|
|
64
|
+
query: ({ location, zip }) => ({
|
|
65
|
+
url: `locations/search?zip=${zip}&location=${location}`,
|
|
66
|
+
}),
|
|
67
|
+
providesTags: ["locations"],
|
|
68
|
+
}),
|
|
69
|
+
}),
|
|
70
|
+
});
|
|
71
|
+
export const { useGetLocationQuery, useGetLocationsQuery, useGetLocationSearchMetadataQuery, useLazyGetLocationsQuery, useLazyGetLocationQuery, useLazyGetLocationSearchMetadataQuery, useCreateLocationMutation, useDeleteLocationMutation, useUpdateLocationMutation, useLazySearchExistingLocationQuery, useLazySearchLocationQuery, useSearchExistingLocationQuery, useSearchLocationQuery, } = locationEndpoints;
|
|
72
|
+
export default locationEndpoints;
|
|
73
|
+
export const getLocationsSelectors = (params) => {
|
|
74
|
+
return locationsAdapter.getSelectors((state) => {
|
|
75
|
+
return (createSelector(locationEndpoints.endpoints.getLocations.select(params), (locationsResult) => {
|
|
76
|
+
return locationsResult.data;
|
|
77
|
+
})(state) ?? locationsInitialState);
|
|
78
|
+
});
|
|
79
|
+
};
|
|
80
|
+
// export const getSearchExistingLocationsSelectors = () => {
|
|
81
|
+
// return searchExistingLocationsAdapter.getSelectors<RootState>((state) => {
|
|
82
|
+
// return (
|
|
83
|
+
// createSelector(
|
|
84
|
+
// locationEndpoints.endpoints.searchExistingLocation.select(""),
|
|
85
|
+
// (locationsResult) => {
|
|
86
|
+
// return locationsResult.data;
|
|
87
|
+
// }
|
|
88
|
+
// )(state) ?? searchExistingLocationsInitialState
|
|
89
|
+
// );
|
|
90
|
+
// });
|
|
91
|
+
// };
|
|
92
|
+
// export const getSearchLocationsSelectors = () => {
|
|
93
|
+
// return searchLocationsAdapter.getSelectors<RootState>((state) => {
|
|
94
|
+
// return (
|
|
95
|
+
// createSelector(
|
|
96
|
+
// locationEndpoints.endpoints.searchLocation.select({
|
|
97
|
+
// location: "",
|
|
98
|
+
// zip: "",
|
|
99
|
+
// }),
|
|
100
|
+
// (locationsResult) => {
|
|
101
|
+
// return locationsResult.data;
|
|
102
|
+
// }
|
|
103
|
+
// )(state) ?? searchLocationsInitialState
|
|
104
|
+
// );
|
|
105
|
+
// });
|
|
106
|
+
// };
|
|
107
|
+
//# sourceMappingURL=locationEndpoints.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locationEndpoints.js","sourceRoot":"","sources":["../../../src/redux/location/locationEndpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EAEnB,cAAc,GACf,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAI3C,MAAM,gBAAgB,GAAG,mBAAmB,EAAmB,CAAC;AAChE,MAAM,qBAAqB,GAAG,gBAAgB,CAAC,eAAe,EAAE,CAAC;AACjE,iFAAiF;AACjF,8CAA8C;AAC9C,sDAAsD;AACtD,yEAAyE;AACzE,gFAAgF;AAEhF,MAAM,CAAC,MAAM,iBAAiB,GAAG,QAAQ,CAAC,eAAe,CAAC;IACxD,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACrB,YAAY,EAAE,KAAK,CAAC,KAAK,CAGvB;YACA,KAAK,EAAE,CAAC,IAAI,EAAE,EAAE;gBACd,OAAO;oBACL,GAAG,EAAE,WAAW;oBAChB,MAAM,EAAE,IAAI;iBACb,CAAC;YACJ,CAAC;YACD,iBAAiB,EAAE,CAAC,YAA+B,EAAE,EAAE;gBACrD,OAAO,gBAAgB,CAAC,MAAM,CAAC,qBAAqB,EAAE,YAAY,CAAC,CAAC;YACtE,CAAC;YACD,YAAY,EAAE,CAAC,WAAW,CAAC;SAC5B,CAAC;QACF,WAAW,EAAE,KAAK,CAAC,KAAK,CAA0B;YAChD,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,aAAa,EAAE,EAAE,EAAE,CAAC;YAC3C,YAAY,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,E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}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/redux/quote/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/redux/quote/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC"}
|
|
@@ -1,29 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import Quote_Entity, {
|
|
5
|
-
import
|
|
6
|
-
import { ICommodityDescription } from "./quoteState";
|
|
7
|
-
export declare const getMarketCost: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[quoteID: number], {
|
|
8
|
-
id: string;
|
|
9
|
-
createdAt: string;
|
|
10
|
-
request: GetAction;
|
|
11
|
-
}, "getMarketCost", never, never>;
|
|
12
|
-
export declare const getMarketCostSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[marketCost: MarketCost_Entity], {
|
|
13
|
-
marketCost: MarketCost_Entity;
|
|
14
|
-
id: string;
|
|
15
|
-
createdAt: string;
|
|
16
|
-
}, "getMarketCostSuccess", never, never>;
|
|
17
|
-
export declare const getCostBreakdown: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[quoteID: number], {
|
|
18
|
-
id: string;
|
|
19
|
-
createdAt: string;
|
|
20
|
-
request: GetAction;
|
|
21
|
-
}, "getCostBreakdown", never, never>;
|
|
22
|
-
export declare const getCostBreakdownSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[costBreakdown: CostBreakdown_Entity[]], {
|
|
23
|
-
costBreakdown: CostBreakdown_Entity[];
|
|
24
|
-
id: string;
|
|
25
|
-
createdAt: string;
|
|
26
|
-
}, "getCostBreakdownSuccess", never, never>;
|
|
1
|
+
/// <reference types="google.maps" />
|
|
2
|
+
import { Moment } from "moment";
|
|
3
|
+
import { Location_Entity } from "../../entities";
|
|
4
|
+
import Quote_Entity, { PalletDimensions_Entity, Reefer_Entity, Stop_Entity, TotalDimension_Entity } from "../../entities/quote/quote";
|
|
5
|
+
import { ServiceLevel_Entity } from "../../entities/quoteResponse/quoteResponse";
|
|
27
6
|
export declare const setCostBreakdownOpen: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[costBreakdownOpen: boolean], {
|
|
28
7
|
costBreakdownOpen: boolean;
|
|
29
8
|
id: string;
|
|
@@ -49,18 +28,9 @@ export declare const setQuoteRunning: import("@reduxjs/toolkit").ActionCreatorWi
|
|
|
49
28
|
id: string;
|
|
50
29
|
createdAt: string;
|
|
51
30
|
}, "setQuoteRunning", never, never>;
|
|
52
|
-
export declare const
|
|
53
|
-
id: string;
|
|
54
|
-
createdAt: string;
|
|
55
|
-
request: PostAction;
|
|
56
|
-
}, "newQuote", never, never>;
|
|
57
|
-
export declare const newQuoteSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[response: QuoteResponse_Entity], {
|
|
58
|
-
response: QuoteResponse_Entity;
|
|
59
|
-
id: string;
|
|
60
|
-
createdAt: string;
|
|
61
|
-
}, "newQuoteSuccess", never, never>;
|
|
62
|
-
export declare const setLocationFormOpen: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[open: boolean], {
|
|
31
|
+
export declare const setLocationFormOpen: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[open: boolean, place: Location_Entity | google.maps.GeocoderResult | undefined], {
|
|
63
32
|
open: boolean;
|
|
33
|
+
place: Location_Entity | google.maps.GeocoderResult | undefined;
|
|
64
34
|
id: string;
|
|
65
35
|
createdAt: string;
|
|
66
36
|
}, "setLocationFormOpen", never, never>;
|
|
@@ -68,10 +38,6 @@ export declare const restartQuote: import("@reduxjs/toolkit").ActionCreatorWithP
|
|
|
68
38
|
id: string;
|
|
69
39
|
createdAt: string;
|
|
70
40
|
}, "restartQuote", never, never>;
|
|
71
|
-
export declare const runQuote: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[], {
|
|
72
|
-
id: string;
|
|
73
|
-
createdAt: string;
|
|
74
|
-
}, "runQuote", never, never>;
|
|
75
41
|
export declare const setQuoteErrors: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[errors?: string[] | undefined], {
|
|
76
42
|
errors: string[] | undefined;
|
|
77
43
|
id: string;
|
|
@@ -133,45 +99,13 @@ export declare const setQuoteReefer: import("@reduxjs/toolkit").ActionCreatorWit
|
|
|
133
99
|
id: string;
|
|
134
100
|
createdAt: string;
|
|
135
101
|
}, "setQuoteReefer", never, never>;
|
|
136
|
-
export declare const getQuoteAccessorials: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[], {
|
|
137
|
-
id: string;
|
|
138
|
-
request: GetAction;
|
|
139
|
-
}, "getQuoteAccessorials", never, never>;
|
|
140
|
-
export declare const getQuoteAccessorialsSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[quoteAccessorials: Accessorials], {
|
|
141
|
-
quoteAccessorials: Accessorials;
|
|
142
|
-
id: string;
|
|
143
|
-
createdAt: string;
|
|
144
|
-
}, "getQuoteAccessorialsSuccess", never, never>;
|
|
145
|
-
export declare const getHolidays: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[], {
|
|
146
|
-
id: string;
|
|
147
|
-
request: GetAction;
|
|
148
|
-
}, "getHolidays", never, never>;
|
|
149
|
-
export declare const getHolidaysSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[holidays: Holiday_Entity[]], {
|
|
150
|
-
holidays: Holiday_Entity[];
|
|
151
|
-
id: string;
|
|
152
|
-
createdAt: string;
|
|
153
|
-
}, "getHolidaysSuccess", never, never>;
|
|
154
|
-
export declare const getQuoteCommodityDescription: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[customerPortal: boolean], {
|
|
155
|
-
id: string;
|
|
156
|
-
request: GetAction;
|
|
157
|
-
}, "getQuoteCommodityDescription", never, never>;
|
|
158
|
-
export declare const getQuoteCommodityDescriptionSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[commodityDescriptions: ICommodityDescription[]], {
|
|
159
|
-
commodityDescriptions: ICommodityDescription[];
|
|
160
|
-
id: string;
|
|
161
|
-
createdAt: string;
|
|
162
|
-
}, "getQuoteCommodityDescriptionSuccess", never, never>;
|
|
163
|
-
export declare const checkPallets: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[pallets: PalletDimensions_Entity[]], {
|
|
164
|
-
id: string;
|
|
165
|
-
createdAt: string;
|
|
166
|
-
request: PostAction;
|
|
167
|
-
}, "checkPallets", never, never>;
|
|
168
|
-
export declare const checkPalletsSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[checkPallets: CheckPallet_Entity], {
|
|
169
|
-
checkPallets: CheckPallet_Entity;
|
|
170
|
-
id: string;
|
|
171
|
-
createdAt: string;
|
|
172
|
-
}, "checkPalletsSuccess", never, never>;
|
|
173
102
|
export declare const checkPalletsError: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[message: string], {
|
|
174
103
|
message: string;
|
|
175
104
|
id: string;
|
|
176
105
|
createdAt: string;
|
|
177
106
|
}, "checkPalletsError", never, never>;
|
|
107
|
+
export declare const setSelectedDate: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[date: Moment | null], {
|
|
108
|
+
date: Moment | null;
|
|
109
|
+
id: string;
|
|
110
|
+
createdAt: string;
|
|
111
|
+
}, "setSelectedDate", never, never>;
|