@nerdjs/sales-kit 1.0.2 → 1.0.3
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/accessorial/accessorial.d.ts +12 -0
- package/dist/entities/accessorial/accessorial.js +41 -0
- package/dist/entities/accessorial/accessorial.js.map +1 -0
- package/dist/entities/accessorial/helper.d.ts +5 -0
- package/dist/entities/accessorial/helper.js +16 -0
- package/dist/entities/accessorial/helper.js.map +1 -0
- package/dist/entities/accessorial/index.d.ts +2 -0
- package/dist/entities/accessorial/index.js +3 -0
- package/dist/entities/accessorial/index.js.map +1 -0
- package/dist/entities/accessorials/accessorials.d.ts +7 -0
- package/dist/entities/accessorials/accessorials.js +29 -0
- package/dist/entities/accessorials/accessorials.js.map +1 -0
- package/dist/entities/accessorials/helper.d.ts +5 -0
- package/dist/entities/accessorials/helper.js +16 -0
- package/dist/entities/accessorials/helper.js.map +1 -0
- package/dist/entities/accessorials/index.d.ts +2 -0
- package/dist/entities/accessorials/index.js +3 -0
- package/dist/entities/accessorials/index.js.map +1 -0
- package/dist/{cjs/entities → entities}/customer/customer.d.ts +16 -16
- package/dist/entities/customer/customer.js +63 -0
- package/dist/entities/customer/customer.js.map +1 -0
- package/dist/{cjs/entities → entities}/customer/helper.d.ts +5 -5
- package/dist/entities/customer/helper.js +16 -0
- package/dist/entities/customer/helper.js.map +1 -0
- package/dist/{cjs/entities → entities}/customer/index.d.ts +1 -1
- package/dist/entities/customer/index.js +2 -0
- package/dist/entities/customer/index.js.map +1 -0
- package/dist/entities/holiday/helper.d.ts +5 -0
- package/dist/entities/holiday/helper.js +16 -0
- package/dist/entities/holiday/helper.js.map +1 -0
- package/dist/entities/holiday/holiday.d.ts +7 -0
- package/dist/entities/holiday/holiday.js +31 -0
- package/dist/entities/holiday/holiday.js.map +1 -0
- package/dist/entities/holiday/index.d.ts +2 -0
- package/dist/entities/holiday/index.js +3 -0
- package/dist/entities/holiday/index.js.map +1 -0
- package/dist/entities/index.d.ts +12 -0
- package/dist/entities/index.js +13 -0
- package/dist/entities/index.js.map +1 -0
- package/dist/entities/load/helper.d.ts +6 -0
- package/dist/entities/load/helper.js +28 -0
- package/dist/entities/load/helper.js.map +1 -0
- package/dist/entities/load/index.d.ts +2 -0
- package/dist/entities/load/index.js +3 -0
- package/dist/entities/load/index.js.map +1 -0
- package/dist/entities/load/load.d.ts +102 -0
- package/dist/entities/load/load.js +224 -0
- package/dist/entities/load/load.js.map +1 -0
- package/dist/entities/loadAdjustment/helper.d.ts +5 -0
- package/dist/entities/loadAdjustment/helper.js +16 -0
- package/dist/entities/loadAdjustment/helper.js.map +1 -0
- package/dist/entities/loadAdjustment/index.d.ts +2 -0
- package/dist/entities/loadAdjustment/index.js +3 -0
- package/dist/entities/loadAdjustment/index.js.map +1 -0
- package/dist/entities/loadAdjustment/loadAdjustment.d.ts +15 -0
- package/dist/entities/loadAdjustment/loadAdjustment.js +48 -0
- package/dist/entities/loadAdjustment/loadAdjustment.js.map +1 -0
- package/dist/{cjs/entities → entities}/location/helper.d.ts +5 -5
- package/dist/entities/location/helper.js +16 -0
- package/dist/entities/location/helper.js.map +1 -0
- package/dist/{cjs/entities → entities}/location/index.d.ts +2 -2
- package/dist/entities/location/index.js +3 -0
- package/dist/entities/location/index.js.map +1 -0
- package/dist/{cjs/entities → entities}/location/location.d.ts +33 -32
- package/dist/entities/location/location.js +47 -0
- package/dist/entities/location/location.js.map +1 -0
- package/dist/{cjs/entities → entities}/marketCosts/helper.d.ts +5 -5
- package/dist/entities/marketCosts/helper.js +16 -0
- package/dist/entities/marketCosts/helper.js.map +1 -0
- package/dist/{cjs/entities → entities}/marketCosts/index.d.ts +2 -2
- package/dist/entities/marketCosts/index.js +3 -0
- package/dist/entities/marketCosts/index.js.map +1 -0
- package/dist/{cjs/entities → entities}/marketCosts/marketCosts.d.ts +22 -22
- package/dist/entities/marketCosts/marketCosts.js +60 -0
- package/dist/entities/marketCosts/marketCosts.js.map +1 -0
- package/dist/{cjs/entities → entities}/quote/helper.d.ts +5 -5
- package/dist/entities/quote/helper.js +16 -0
- package/dist/entities/quote/helper.js.map +1 -0
- package/dist/{cjs/entities → entities}/quote/index.d.ts +2 -2
- package/dist/entities/quote/index.js +3 -0
- package/dist/entities/quote/index.js.map +1 -0
- package/dist/entities/quote/quote.d.ts +76 -0
- package/dist/entities/quote/quote.js +46 -0
- package/dist/entities/quote/quote.js.map +1 -0
- package/dist/entities/quoteAccessorial/helper.d.ts +5 -0
- package/dist/entities/quoteAccessorial/helper.js +16 -0
- package/dist/entities/quoteAccessorial/helper.js.map +1 -0
- package/dist/entities/quoteAccessorial/index.d.ts +2 -0
- package/dist/entities/quoteAccessorial/index.js +3 -0
- package/dist/entities/quoteAccessorial/index.js.map +1 -0
- package/dist/entities/quoteAccessorial/quoteAccessorial.d.ts +29 -0
- package/dist/entities/quoteAccessorial/quoteAccessorial.js +77 -0
- package/dist/entities/quoteAccessorial/quoteAccessorial.js.map +1 -0
- package/dist/entities/quoteResponse/helper.d.ts +5 -0
- package/dist/entities/quoteResponse/helper.js +16 -0
- package/dist/entities/quoteResponse/helper.js.map +1 -0
- package/dist/entities/quoteResponse/index.d.ts +2 -0
- package/dist/entities/quoteResponse/index.js +3 -0
- package/dist/entities/quoteResponse/index.js.map +1 -0
- package/dist/entities/quoteResponse/quoteResponse.d.ts +72 -0
- package/dist/entities/quoteResponse/quoteResponse.js +67 -0
- package/dist/entities/quoteResponse/quoteResponse.js.map +1 -0
- package/dist/entities/shipcon/helper.d.ts +6 -0
- package/dist/entities/shipcon/helper.js +20 -0
- package/dist/entities/shipcon/helper.js.map +1 -0
- package/dist/entities/shipcon/index.d.ts +2 -0
- package/dist/entities/shipcon/index.js +3 -0
- package/dist/entities/shipcon/index.js.map +1 -0
- package/dist/entities/shipcon/shipcon.d.ts +27 -0
- package/dist/entities/shipcon/shipcon.js +74 -0
- package/dist/entities/shipcon/shipcon.js.map +1 -0
- package/dist/helpers.d.ts +18 -0
- package/dist/helpers.js +29 -0
- package/dist/helpers.js.map +1 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.js +3 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/locationsForm/index.d.ts +1 -0
- package/dist/hooks/locationsForm/index.js +2 -0
- package/dist/hooks/locationsForm/index.js.map +1 -0
- package/dist/hooks/locationsForm/locationsForm.d.ts +2 -0
- package/dist/hooks/locationsForm/locationsForm.js +35 -0
- package/dist/hooks/locationsForm/locationsForm.js.map +1 -0
- package/dist/hooks/quote/constants.d.ts +187 -0
- package/dist/hooks/quote/constants.js +137 -0
- package/dist/hooks/quote/constants.js.map +1 -0
- package/dist/hooks/quote/form.d.ts +7 -0
- package/dist/hooks/quote/form.js +203 -0
- package/dist/hooks/quote/form.js.map +1 -0
- package/dist/hooks/quote/helpers.d.ts +39 -0
- package/dist/hooks/quote/helpers.js +366 -0
- package/dist/hooks/quote/helpers.js.map +1 -0
- package/dist/hooks/quote/index.d.ts +5 -0
- package/dist/hooks/quote/index.js +6 -0
- package/dist/hooks/quote/index.js.map +1 -0
- package/dist/hooks/quote/result.d.ts +7 -0
- package/dist/hooks/quote/result.js +196 -0
- package/dist/hooks/quote/result.js.map +1 -0
- package/dist/hooks/quote/template.d.ts +7 -0
- package/dist/hooks/quote/template.js +113 -0
- package/dist/hooks/quote/template.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -0
- package/dist/redux/appState.d.ts +4 -0
- package/dist/redux/appState.js +2 -0
- package/dist/redux/appState.js.map +1 -0
- package/dist/redux/customer/customerActions.d.ts +97 -0
- package/dist/redux/customer/customerActions.js +210 -0
- package/dist/redux/customer/customerActions.js.map +1 -0
- package/dist/redux/customer/customerReducer.d.ts +2 -0
- package/dist/redux/customer/customerReducer.js +42 -0
- package/dist/redux/customer/customerReducer.js.map +1 -0
- package/dist/redux/customer/customerSelector.d.ts +27 -0
- package/dist/redux/customer/customerSelector.js +38 -0
- package/dist/redux/customer/customerSelector.js.map +1 -0
- package/dist/redux/customer/customerState.d.ts +11 -0
- package/dist/redux/customer/customerState.js +2 -0
- package/dist/redux/customer/customerState.js.map +1 -0
- package/dist/redux/customer/index.d.ts +4 -0
- package/dist/redux/customer/index.js +5 -0
- package/dist/redux/customer/index.js.map +1 -0
- package/dist/redux/index.d.ts +8 -0
- package/dist/redux/index.js +9 -0
- package/dist/redux/index.js.map +1 -0
- package/dist/redux/load/index.d.ts +4 -0
- package/dist/redux/load/index.js +5 -0
- package/dist/redux/load/index.js.map +1 -0
- package/dist/redux/load/loadActions.d.ts +80 -0
- package/dist/redux/load/loadActions.js +172 -0
- package/dist/redux/load/loadActions.js.map +1 -0
- package/dist/redux/load/loadReducer.d.ts +2 -0
- package/dist/redux/load/loadReducer.js +35 -0
- package/dist/redux/load/loadReducer.js.map +1 -0
- package/dist/redux/load/loadSelector.d.ts +27 -0
- package/dist/redux/load/loadSelector.js +19 -0
- package/dist/redux/load/loadSelector.js.map +1 -0
- package/dist/redux/load/loadState.d.ts +8 -0
- package/dist/redux/load/loadState.js +2 -0
- package/dist/redux/load/loadState.js.map +1 -0
- package/dist/redux/loadAdjustment/index.d.ts +4 -0
- package/dist/redux/loadAdjustment/index.js +5 -0
- package/dist/redux/loadAdjustment/index.js.map +1 -0
- package/dist/redux/loadAdjustment/loadAdjustmentActions.d.ts +80 -0
- package/dist/redux/loadAdjustment/loadAdjustmentActions.js +172 -0
- package/dist/redux/loadAdjustment/loadAdjustmentActions.js.map +1 -0
- package/dist/redux/loadAdjustment/loadAdjustmentReducer.d.ts +2 -0
- package/dist/redux/loadAdjustment/loadAdjustmentReducer.js +35 -0
- package/dist/redux/loadAdjustment/loadAdjustmentReducer.js.map +1 -0
- package/dist/redux/loadAdjustment/loadAdjustmentSelector.d.ts +15 -0
- package/dist/redux/loadAdjustment/loadAdjustmentSelector.js +12 -0
- package/dist/redux/loadAdjustment/loadAdjustmentSelector.js.map +1 -0
- package/dist/redux/loadAdjustment/loadAdjustmentState.d.ts +8 -0
- package/dist/redux/loadAdjustment/loadAdjustmentState.js +2 -0
- package/dist/redux/loadAdjustment/loadAdjustmentState.js.map +1 -0
- package/dist/redux/location/index.d.ts +4 -0
- package/dist/redux/location/index.js +5 -0
- package/dist/redux/location/index.js.map +1 -0
- package/dist/redux/location/locationActions.d.ts +101 -0
- package/dist/redux/location/locationActions.js +218 -0
- package/dist/redux/location/locationActions.js.map +1 -0
- package/dist/redux/location/locationReducer.d.ts +2 -0
- package/dist/redux/location/locationReducer.js +54 -0
- package/dist/redux/location/locationReducer.js.map +1 -0
- package/dist/redux/location/locationSelector.d.ts +53 -0
- package/dist/redux/location/locationSelector.js +32 -0
- package/dist/redux/location/locationSelector.js.map +1 -0
- package/dist/redux/location/locationState.d.ts +15 -0
- package/dist/redux/location/locationState.js +2 -0
- package/dist/redux/location/locationState.js.map +1 -0
- package/dist/{cjs/redux → redux}/quote/index.d.ts +5 -4
- package/dist/redux/quote/index.js +6 -0
- package/dist/redux/quote/index.js.map +1 -0
- package/dist/redux/quote/quoteAction.d.ts +177 -0
- package/dist/redux/quote/quoteAction.js +351 -0
- package/dist/redux/quote/quoteAction.js.map +1 -0
- package/dist/redux/quote/quoteMiddleware.d.ts +2 -0
- package/dist/redux/quote/quoteMiddleware.js +31 -0
- package/dist/redux/quote/quoteMiddleware.js.map +1 -0
- package/dist/redux/quote/quoteReducer.d.ts +27 -0
- package/dist/redux/quote/quoteReducer.js +207 -0
- package/dist/redux/quote/quoteReducer.js.map +1 -0
- package/dist/redux/quote/quoteSelector.d.ts +199 -0
- package/dist/redux/quote/quoteSelector.js +141 -0
- package/dist/redux/quote/quoteSelector.js.map +1 -0
- package/dist/redux/quote/quoteState.d.ts +9 -0
- package/dist/redux/quote/quoteState.js +2 -0
- package/dist/redux/quote/quoteState.js.map +1 -0
- package/dist/redux/quoteAccessorial/index.d.ts +3 -0
- package/dist/redux/quoteAccessorial/index.js +4 -0
- package/dist/redux/quoteAccessorial/index.js.map +1 -0
- package/dist/redux/quoteAccessorial/quoteAccessorialActions.d.ts +70 -0
- package/dist/redux/quoteAccessorial/quoteAccessorialActions.js +149 -0
- package/dist/redux/quoteAccessorial/quoteAccessorialActions.js.map +1 -0
- package/dist/redux/quoteAccessorial/quoteAccessorialReducer.d.ts +2 -0
- package/dist/redux/quoteAccessorial/quoteAccessorialReducer.js +29 -0
- package/dist/redux/quoteAccessorial/quoteAccessorialReducer.js.map +1 -0
- package/dist/redux/quoteAccessorial/quoteAccessorialState.d.ts +8 -0
- package/dist/redux/quoteAccessorial/quoteAccessorialState.js +2 -0
- package/dist/redux/quoteAccessorial/quoteAccessorialState.js.map +1 -0
- package/dist/redux/salesKitReducer.d.ts +25 -0
- package/dist/redux/salesKitReducer.js +18 -0
- package/dist/redux/salesKitReducer.js.map +1 -0
- package/dist/redux/shipcon/index.d.ts +4 -0
- package/dist/redux/shipcon/index.js +5 -0
- package/dist/redux/shipcon/index.js.map +1 -0
- package/dist/redux/shipcon/shipconActions.d.ts +80 -0
- package/dist/redux/shipcon/shipconActions.js +172 -0
- package/dist/redux/shipcon/shipconActions.js.map +1 -0
- package/dist/redux/shipcon/shipconReducer.d.ts +2 -0
- package/dist/redux/shipcon/shipconReducer.js +35 -0
- package/dist/redux/shipcon/shipconReducer.js.map +1 -0
- package/dist/redux/shipcon/shipconSelector.d.ts +22 -0
- package/dist/redux/shipcon/shipconSelector.js +19 -0
- package/dist/redux/shipcon/shipconSelector.js.map +1 -0
- package/dist/redux/shipcon/shipconState.d.ts +8 -0
- package/dist/redux/shipcon/shipconState.js +2 -0
- package/dist/redux/shipcon/shipconState.js.map +1 -0
- package/package.json +39 -70
- package/dist/cjs/components/calendar/calendar.d.ts +0 -5
- package/dist/cjs/components/calendar/day/day.d.ts +0 -8
- package/dist/cjs/components/calendar/day/index.d.ts +0 -1
- package/dist/cjs/components/calendar/day/typings.d.ts +0 -16
- package/dist/cjs/components/calendar/index.d.ts +0 -2
- package/dist/cjs/components/calendar/typings.d.ts +0 -27
- package/dist/cjs/components/customerFinder/customerFinder.d.ts +0 -11
- package/dist/cjs/components/customerFinder/index.d.ts +0 -2
- package/dist/cjs/components/customerFinder/optionTemplate.d.ts +0 -6
- package/dist/cjs/components/index.d.ts +0 -4
- package/dist/cjs/components/locationFinder/editLocation.d.ts +0 -15
- package/dist/cjs/components/locationFinder/index.d.ts +0 -1
- package/dist/cjs/components/locationFinder/locationByAddress.d.ts +0 -18
- package/dist/cjs/components/locationFinder/locationFinder.d.ts +0 -7
- package/dist/cjs/components/locationFinder/locationsFound.d.ts +0 -12
- package/dist/cjs/components/locationFinder/newLocationForm.d.ts +0 -20
- package/dist/cjs/components/locationFinder/optionTemplate.d.ts +0 -8
- package/dist/cjs/components/locationFinder/typings.d.ts +0 -23
- package/dist/cjs/components/salesQuote/components/aboutQuote/aboutQuote.d.ts +0 -5
- package/dist/cjs/components/salesQuote/components/aboutQuote/commodityDescription.d.ts +0 -16
- package/dist/cjs/components/salesQuote/components/aboutQuote/index.d.ts +0 -2
- package/dist/cjs/components/salesQuote/components/aboutQuote/quoteCheck.d.ts +0 -6
- package/dist/cjs/components/salesQuote/components/pallet/editPallet.d.ts +0 -11
- package/dist/cjs/components/salesQuote/components/pallet/palletChecker.d.ts +0 -15
- package/dist/cjs/components/salesQuote/components/pallet/palletCount.d.ts +0 -13
- package/dist/cjs/components/salesQuote/components/quoteCalendar/quoteCalendar.d.ts +0 -24
- package/dist/cjs/components/salesQuote/components/quoteResultAccordion/costBreakdown.d.ts +0 -14
- package/dist/cjs/components/salesQuote/components/quoteResultAccordion/marketCosts.d.ts +0 -7
- package/dist/cjs/components/salesQuote/components/quoteResultAccordion/quoteResultAccessorials.d.ts +0 -13
- package/dist/cjs/components/salesQuote/components/quoteResultAccordion/quoteResultAccordion.d.ts +0 -17
- package/dist/cjs/components/salesQuote/components/quoteSelect.d.ts +0 -4
- package/dist/cjs/components/salesQuote/components/quoteSummary/quoteSummary.d.ts +0 -4
- package/dist/cjs/components/salesQuote/components/quoteSummary/quoteSummaryBody.d.ts +0 -12
- package/dist/cjs/components/salesQuote/components/quoteSummary/quoteSummaryHeader.d.ts +0 -10
- package/dist/cjs/components/salesQuote/components/quoteSummary/typings.d.ts +0 -47
- package/dist/cjs/components/salesQuote/index.d.ts +0 -4
- package/dist/cjs/components/salesQuote/salesQuote.d.ts +0 -17
- package/dist/cjs/components/salesQuote/typings.d.ts +0 -156
- package/dist/cjs/components/shared/bootstrapDialogTitle/bootstrapDialogTitle.d.ts +0 -11
- package/dist/cjs/components/shared/bootstrapDialogTitle/index.d.ts +0 -1
- package/dist/cjs/components/shared/index.d.ts +0 -2
- package/dist/cjs/components/shared/loading/index.d.ts +0 -1
- package/dist/cjs/components/shared/loading/loading.d.ts +0 -6
- package/dist/cjs/components/stop/index.d.ts +0 -2
- package/dist/cjs/components/stop/menuAccessorials.d.ts +0 -27
- package/dist/cjs/components/stop/stop.d.ts +0 -4
- package/dist/cjs/components/stop/stopDetail.d.ts +0 -5
- package/dist/cjs/components/stop/stopDetailHeader.d.ts +0 -6
- package/dist/cjs/entities/index.d.ts +0 -4
- package/dist/cjs/entities/quote/quote.d.ts +0 -80
- package/dist/cjs/index.d.ts +0 -4
- package/dist/cjs/index.js +0 -3169
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/redux/calendar/calendarSlice.d.ts +0 -12
- package/dist/cjs/redux/calendar/index.d.ts +0 -1
- package/dist/cjs/redux/index.d.ts +0 -3
- package/dist/cjs/redux/nerdSalesKitReducer.d.ts +0 -10
- package/dist/cjs/redux/quote/quoteAction.d.ts +0 -125
- package/dist/cjs/redux/quote/quoteReducer.d.ts +0 -28
- package/dist/cjs/redux/quote/quoteSelector.d.ts +0 -22
- package/dist/cjs/redux/quote/quoteState.d.ts +0 -124
- package/dist/cjs/utils/constants.d.ts +0 -5
- package/dist/cjs/utils/helpers.d.ts +0 -17
- package/dist/cjs/utils/index.d.ts +0 -2
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { PayloadAction } from "@reduxjs/toolkit";
|
|
2
|
-
import { IserviceLevel } from "../../components/calendar/typings";
|
|
3
|
-
export interface IselectedDateRangeState {
|
|
4
|
-
date: string;
|
|
5
|
-
element: IserviceLevel;
|
|
6
|
-
}
|
|
7
|
-
export declare const calendarSlice: import("@reduxjs/toolkit").Slice<IselectedDateRangeState, {
|
|
8
|
-
DateSelectedHandler: (state: import("immer/dist/internal").WritableDraft<IselectedDateRangeState>, action: PayloadAction<IselectedDateRangeState>) => import("immer/dist/internal").WritableDraft<IselectedDateRangeState>;
|
|
9
|
-
}, "calendarSlice">;
|
|
10
|
-
export declare const DateSelectedHandler: import("@reduxjs/toolkit").ActionCreatorWithPayload<IselectedDateRangeState, string>;
|
|
11
|
-
declare const _default: import("redux").Reducer<IselectedDateRangeState, import("redux").AnyAction>;
|
|
12
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./calendarSlice";
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IselectedDateRangeState } from "./calendar/calendarSlice";
|
|
2
|
-
import { IQuoteState } from "./quote/quoteReducer";
|
|
3
|
-
export interface NerdSalesKitState {
|
|
4
|
-
selectedDateRange: IselectedDateRangeState;
|
|
5
|
-
quoteState: IQuoteState;
|
|
6
|
-
}
|
|
7
|
-
export declare const nerdSalesKitReducer: import("redux").Reducer<import("redux").CombinedState<{
|
|
8
|
-
selectedDateRange: IselectedDateRangeState;
|
|
9
|
-
quoteState: IQuoteState;
|
|
10
|
-
}>, import("redux").AnyAction>;
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { GetAction, PostAction, PutAction } from "@nerdjs/nerd-network";
|
|
2
|
-
import { IPallet } from "../../components/salesQuote/typings";
|
|
3
|
-
import Customer from "../../entities/customer/helper";
|
|
4
|
-
import Location from "../../entities/location/helper";
|
|
5
|
-
import MarketCosts from "../../entities/marketCosts/helper";
|
|
6
|
-
import QuoteRequest from "../../entities/quote/helper";
|
|
7
|
-
import { ApiError, IAccessorialObj, ICommodityDescription, ICostBreakdown, INewLocation, IPalletUnits, IQuoteForm } from "./quoteState";
|
|
8
|
-
export declare const getQuoteAccessorials: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[], {
|
|
9
|
-
id: string;
|
|
10
|
-
request: GetAction;
|
|
11
|
-
}, "newQuote/getAccessorials", never, never>;
|
|
12
|
-
export declare const getQuoteAccessorialsSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[accessorials: {
|
|
13
|
-
ltlAccessorials: IAccessorialObj[];
|
|
14
|
-
tlAccessorials: IAccessorialObj[];
|
|
15
|
-
}], {
|
|
16
|
-
accessorials: {
|
|
17
|
-
ltlAccessorials: IAccessorialObj[];
|
|
18
|
-
tlAccessorials: IAccessorialObj[];
|
|
19
|
-
};
|
|
20
|
-
id: string;
|
|
21
|
-
createdAt: string;
|
|
22
|
-
}, "quote/getQuoteSuccess", never, never>;
|
|
23
|
-
export declare const getQuoteCommodityDescription: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[], {
|
|
24
|
-
id: string;
|
|
25
|
-
request: GetAction;
|
|
26
|
-
}, "newQuote/getQuoteCommodityDescription", never, never>;
|
|
27
|
-
export declare const getQuoteCommodityDescirptionSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[commodityDescriptions: ICommodityDescription[]], {
|
|
28
|
-
commodityDescriptions: ICommodityDescription[];
|
|
29
|
-
id: string;
|
|
30
|
-
createdAt: string;
|
|
31
|
-
}, "quote/getCommodityDescriptionSuccess", never, never>;
|
|
32
|
-
export declare const storePallets: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[pallets: IPallet[]], {
|
|
33
|
-
id: string;
|
|
34
|
-
createdAt: string;
|
|
35
|
-
request: PostAction;
|
|
36
|
-
}, "quote/storePallets", never, never>;
|
|
37
|
-
export declare const storePalletUnitSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[units: IPalletUnits], {
|
|
38
|
-
units: IPalletUnits;
|
|
39
|
-
id: string;
|
|
40
|
-
createdAt: string;
|
|
41
|
-
}, "quote/storePalletUnitSuccess", never, never>;
|
|
42
|
-
export declare const storePalletError: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ApiError], {
|
|
43
|
-
error: ApiError;
|
|
44
|
-
id: string;
|
|
45
|
-
createdAt: string;
|
|
46
|
-
}, "quote/storePalletError", never, never>;
|
|
47
|
-
export declare const getCustomers: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[query: {
|
|
48
|
-
[key: string]: unknown;
|
|
49
|
-
}], {
|
|
50
|
-
id: string;
|
|
51
|
-
request: GetAction;
|
|
52
|
-
}, "customers/search/getCustomers", never, never>;
|
|
53
|
-
export declare const getCustomersSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[customers: Customer[]], {
|
|
54
|
-
customers: Customer[];
|
|
55
|
-
id: string;
|
|
56
|
-
createdAt: string;
|
|
57
|
-
}, "customers/search/getCustomersSuccess", never, never>;
|
|
58
|
-
export declare const getFacility: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[query: {
|
|
59
|
-
[key: string]: unknown;
|
|
60
|
-
}], {
|
|
61
|
-
id: string;
|
|
62
|
-
request: GetAction;
|
|
63
|
-
}, "locations/search/getFacility", never, never>;
|
|
64
|
-
export declare const getArcherLocationsSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[locations: Location[]], {
|
|
65
|
-
locations: Location[];
|
|
66
|
-
id: string;
|
|
67
|
-
createdAt: string;
|
|
68
|
-
}, "locations/search/getArcherLocationsSuccess", never, never>;
|
|
69
|
-
export declare const removeArcherLocations: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[], {}, "locations/search/removeArcherLocations", never, never>;
|
|
70
|
-
export declare const storeNewLocation: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[newLocation: INewLocation], {
|
|
71
|
-
id: string;
|
|
72
|
-
createdAt: string;
|
|
73
|
-
request: PostAction;
|
|
74
|
-
}, "locations/saveNewLocation", never, never>;
|
|
75
|
-
export declare const setSavingActionLocation: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[isSuccess: boolean, method: string], {
|
|
76
|
-
changeLocationSucess: {
|
|
77
|
-
isSuccess: boolean;
|
|
78
|
-
method: string;
|
|
79
|
-
};
|
|
80
|
-
id: string;
|
|
81
|
-
createdAt: string;
|
|
82
|
-
}, "locations/setSavingActionLocation", never, never>;
|
|
83
|
-
export declare const updateLocation: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[id: number, newLocation: Omit<INewLocation, "address">], {
|
|
84
|
-
id: string;
|
|
85
|
-
createdAt: string;
|
|
86
|
-
request: PutAction;
|
|
87
|
-
}, "locations/updateLocation", never, never>;
|
|
88
|
-
export declare const storeQuoteFormData: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[quoteFormData: Partial<IQuoteForm>], {
|
|
89
|
-
quoteFormData: Partial<IQuoteForm>;
|
|
90
|
-
}, "locations/storeQuoteFormData", never, never>;
|
|
91
|
-
export declare const setIsQuoteFormSubmitted: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[isQuoteFormSubmitted: boolean], {
|
|
92
|
-
isQuoteFormSubmitted: boolean;
|
|
93
|
-
}, "quote/isQuoteFormSubmitted", never, never>;
|
|
94
|
-
export declare const sendFormData: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[quoteFormData: IQuoteForm], {
|
|
95
|
-
id: string;
|
|
96
|
-
createdAt: string;
|
|
97
|
-
request: PostAction;
|
|
98
|
-
}, "quote-service/quotes/multistop", never, never>;
|
|
99
|
-
export declare const getQuoteResponseSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[quoteResponse: QuoteRequest], {
|
|
100
|
-
quoteResponse: QuoteRequest;
|
|
101
|
-
}, "quote/getQuoteResponseSuccess", never, never>;
|
|
102
|
-
export declare const getMarketCosts: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[quoteId: number], {
|
|
103
|
-
id: string;
|
|
104
|
-
request: GetAction;
|
|
105
|
-
}, "quote/getMarketCosts", never, never>;
|
|
106
|
-
export declare const getMarketCostsSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[marketCosts: MarketCosts], {
|
|
107
|
-
marketCosts: MarketCosts;
|
|
108
|
-
id: string;
|
|
109
|
-
createdAt: string;
|
|
110
|
-
}, "quote/getMarketCosts/getMarketCostsSuccess", never, never>;
|
|
111
|
-
export declare const getQuoteById: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[quoteId: number], {
|
|
112
|
-
id: string;
|
|
113
|
-
request: GetAction;
|
|
114
|
-
}, "quote-service/quotes/:id", never, never>;
|
|
115
|
-
export declare const getQuotePathEdgeCosts: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[query: {
|
|
116
|
-
[key: string]: unknown;
|
|
117
|
-
}], {
|
|
118
|
-
id: string;
|
|
119
|
-
request: GetAction;
|
|
120
|
-
}, "quote_path_edge_costs", never, never>;
|
|
121
|
-
export declare const getQuotePathEdgeCostsSucess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[costsBreakdown: ICostBreakdown[]], {
|
|
122
|
-
costsBreakdown: ICostBreakdown[];
|
|
123
|
-
id: string;
|
|
124
|
-
createdAt: string;
|
|
125
|
-
}, "quote/quote_path_edge_costs/getQuotePathEdgeCostsSucess", never, never>;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { ReducerWithInitialState } from "@reduxjs/toolkit/dist/createReducer";
|
|
2
|
-
import Customer from "../../entities/customer/helper";
|
|
3
|
-
import Location from "../../entities/location/helper";
|
|
4
|
-
import MarketCosts from "../../entities/marketCosts/helper";
|
|
5
|
-
import QuoteRequest from "../../entities/quote/helper";
|
|
6
|
-
import { ApiError, IAccessorialObj, ICommodityDescription, ICostBreakdown, IPalletUnits, IQuoteForm } from "./quoteState";
|
|
7
|
-
export interface IQuoteState {
|
|
8
|
-
accessorials: {
|
|
9
|
-
ltlAccessorials: IAccessorialObj[];
|
|
10
|
-
tlAccessorials: IAccessorialObj[];
|
|
11
|
-
};
|
|
12
|
-
commodity_descriptions: ICommodityDescription[];
|
|
13
|
-
units: IPalletUnits;
|
|
14
|
-
error: ApiError;
|
|
15
|
-
customers: Customer[];
|
|
16
|
-
archerLocations: Location[];
|
|
17
|
-
newLocation: Partial<Location>;
|
|
18
|
-
changeLocationSucess: {
|
|
19
|
-
isSuccess: boolean;
|
|
20
|
-
method: string;
|
|
21
|
-
};
|
|
22
|
-
quoteFormData: IQuoteForm;
|
|
23
|
-
isQuoteFormSubmitted: boolean;
|
|
24
|
-
quoteResponse: QuoteRequest;
|
|
25
|
-
marketCosts: MarketCosts;
|
|
26
|
-
costsBreakdown: ICostBreakdown[];
|
|
27
|
-
}
|
|
28
|
-
export declare const quoteReducer: ReducerWithInitialState<IQuoteState>;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import Customer from "../../entities/customer/helper";
|
|
2
|
-
import Location from "../../entities/location/helper";
|
|
3
|
-
import { IQuoteState } from "./quoteReducer";
|
|
4
|
-
import { ApiError, IAccessorial, ICommodityDescription, IPalletUnits } from "./quoteState";
|
|
5
|
-
export declare const quoteAccessorialsSelector: (state: {
|
|
6
|
-
quoteState: IQuoteState;
|
|
7
|
-
}) => IAccessorial;
|
|
8
|
-
export declare const quoteCommodityDescriptionSelector: (state: {
|
|
9
|
-
quoteState: IQuoteState;
|
|
10
|
-
}) => ICommodityDescription[];
|
|
11
|
-
export declare const quoteUnitsSelector: (state: {
|
|
12
|
-
quoteState: IQuoteState;
|
|
13
|
-
}) => IPalletUnits;
|
|
14
|
-
export declare const quoteErrorSelector: (state: {
|
|
15
|
-
quoteState: IQuoteState;
|
|
16
|
-
}) => ApiError;
|
|
17
|
-
export declare const quoteCustomersSelector: (state: {
|
|
18
|
-
quoteState: IQuoteState;
|
|
19
|
-
}) => Customer[];
|
|
20
|
-
export declare const quoteArcherLocationsSelector: (state: {
|
|
21
|
-
quoteState: IQuoteState;
|
|
22
|
-
}) => Location[];
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
export interface IAccessorial {
|
|
2
|
-
ltlAccessorials: IAccessorialObj[];
|
|
3
|
-
tlAccessorials: IAccessorialObj[];
|
|
4
|
-
}
|
|
5
|
-
export interface IAccessorialObj {
|
|
6
|
-
accessorialId?: number;
|
|
7
|
-
name?: string;
|
|
8
|
-
costAmount?: number;
|
|
9
|
-
unitType?: string;
|
|
10
|
-
customerId?: null;
|
|
11
|
-
loadType?: string;
|
|
12
|
-
defaultContract?: boolean;
|
|
13
|
-
quoteVisible?: boolean;
|
|
14
|
-
conditionA?: number;
|
|
15
|
-
conditionB?: number;
|
|
16
|
-
}
|
|
17
|
-
export interface ICommodityDescription {
|
|
18
|
-
created_at?: Date | string;
|
|
19
|
-
description?: string | null;
|
|
20
|
-
hidden?: boolean;
|
|
21
|
-
id?: number;
|
|
22
|
-
item?: number;
|
|
23
|
-
name?: string;
|
|
24
|
-
updated_at?: Date | string;
|
|
25
|
-
}
|
|
26
|
-
export interface IPalletUnits {
|
|
27
|
-
feet: number;
|
|
28
|
-
height: number;
|
|
29
|
-
palletPositions: number;
|
|
30
|
-
pallets: number;
|
|
31
|
-
pieces: number;
|
|
32
|
-
weight: number;
|
|
33
|
-
}
|
|
34
|
-
export interface IQuoteForm {
|
|
35
|
-
customerId?: number;
|
|
36
|
-
customerName?: string;
|
|
37
|
-
service: string;
|
|
38
|
-
commodityDescriptionId: number;
|
|
39
|
-
freightClass: string;
|
|
40
|
-
mode: string;
|
|
41
|
-
dryVanOnly: boolean;
|
|
42
|
-
shippers: IStateShippers[];
|
|
43
|
-
consignees: IStateShippers[];
|
|
44
|
-
units: {
|
|
45
|
-
palletDimensions: IQuoteFormPallet[];
|
|
46
|
-
totalDimensions: {
|
|
47
|
-
totalWeight: string;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
reefer: {
|
|
51
|
-
reeferTemp?: string;
|
|
52
|
-
reeferCont?: boolean;
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
export interface IStateShippers {
|
|
56
|
-
id?: number;
|
|
57
|
-
name?: string;
|
|
58
|
-
type?: string;
|
|
59
|
-
date: Date | string | null;
|
|
60
|
-
city?: string;
|
|
61
|
-
state?: string;
|
|
62
|
-
zip: string | number;
|
|
63
|
-
address?: {
|
|
64
|
-
locationId?: number;
|
|
65
|
-
line1: string;
|
|
66
|
-
city: string;
|
|
67
|
-
state: string;
|
|
68
|
-
zip: string;
|
|
69
|
-
latitude: number;
|
|
70
|
-
longitude: number;
|
|
71
|
-
};
|
|
72
|
-
locationId?: number;
|
|
73
|
-
accessorialIds: number[];
|
|
74
|
-
}
|
|
75
|
-
export interface IQuoteFormPallet {
|
|
76
|
-
key?: number;
|
|
77
|
-
count: number | string;
|
|
78
|
-
length: number;
|
|
79
|
-
width: number;
|
|
80
|
-
height: number;
|
|
81
|
-
units: string;
|
|
82
|
-
stackable: boolean;
|
|
83
|
-
}
|
|
84
|
-
export interface INewLocation {
|
|
85
|
-
name: string;
|
|
86
|
-
contact: string;
|
|
87
|
-
phone: string;
|
|
88
|
-
accessorialTags: string[];
|
|
89
|
-
address: {
|
|
90
|
-
formattedAddress: string;
|
|
91
|
-
line1: string;
|
|
92
|
-
line2: string;
|
|
93
|
-
city: string;
|
|
94
|
-
state: string;
|
|
95
|
-
zip: string;
|
|
96
|
-
country: string;
|
|
97
|
-
latitude: number;
|
|
98
|
-
longitude: number;
|
|
99
|
-
verified: boolean;
|
|
100
|
-
placeId: string;
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
export interface ApiError {
|
|
104
|
-
uuid: string;
|
|
105
|
-
status: number;
|
|
106
|
-
errorCode?: string;
|
|
107
|
-
description?: string;
|
|
108
|
-
resolution?: string;
|
|
109
|
-
action?: string;
|
|
110
|
-
function?: string;
|
|
111
|
-
stack?: string[];
|
|
112
|
-
errors?: object;
|
|
113
|
-
message?: string;
|
|
114
|
-
}
|
|
115
|
-
export interface ICostBreakdown {
|
|
116
|
-
cost_amount: number;
|
|
117
|
-
cost_id: number | null;
|
|
118
|
-
description: string;
|
|
119
|
-
fuel_surcharge: boolean | null;
|
|
120
|
-
group: string;
|
|
121
|
-
id: number;
|
|
122
|
-
quote_path_edge_id: number;
|
|
123
|
-
service_level: string;
|
|
124
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import moment from "moment";
|
|
2
|
-
/**
|
|
3
|
-
* @param x
|
|
4
|
-
*/
|
|
5
|
-
export declare function formattedPrice(x: number): string;
|
|
6
|
-
/**
|
|
7
|
-
* @param date
|
|
8
|
-
*/
|
|
9
|
-
export declare function safariFix(date: string): string;
|
|
10
|
-
/**
|
|
11
|
-
* @param {Date | moment} start The start date
|
|
12
|
-
* @param {Date | moment} end The end date
|
|
13
|
-
* @param startDate
|
|
14
|
-
* @param endDate
|
|
15
|
-
* @param {string} type The range type. eg: 'days', 'hours' etc
|
|
16
|
-
*/
|
|
17
|
-
export declare function getRange(startDate: moment.MomentInput, endDate: moment.MomentInput, type?: any): moment.Moment[];
|