@nerdjs/sales-kit 2.0.35-alpha.2 → 2.0.37
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/appointmentIssue/appointmentIssue.d.ts +46 -0
- package/dist/entities/appointmentIssue/appointmentIssue.js +116 -0
- package/dist/entities/appointmentIssue/appointmentIssue.js.map +1 -0
- package/dist/entities/appointmentIssue/helper.d.ts +5 -0
- package/dist/entities/appointmentIssue/helper.js +16 -0
- package/dist/entities/appointmentIssue/helper.js.map +1 -0
- package/dist/entities/appointmentIssue/index.d.ts +2 -0
- package/dist/entities/appointmentIssue/index.js +3 -0
- package/dist/entities/appointmentIssue/index.js.map +1 -0
- package/dist/entities/appointmentIssueCategory/appointmentIssueCategory.d.ts +10 -0
- package/dist/entities/appointmentIssueCategory/appointmentIssueCategory.js +40 -0
- package/dist/entities/appointmentIssueCategory/appointmentIssueCategory.js.map +1 -0
- package/dist/entities/appointmentIssueCategory/helper.d.ts +5 -0
- package/dist/entities/appointmentIssueCategory/helper.js +16 -0
- package/dist/entities/appointmentIssueCategory/helper.js.map +1 -0
- package/dist/entities/appointmentIssueCategory/index.d.ts +2 -0
- package/dist/entities/appointmentIssueCategory/index.js +3 -0
- package/dist/entities/appointmentIssueCategory/index.js.map +1 -0
- package/dist/entities/appointmentIssueSubcategory/appointmentIssueSubcategory.d.ts +11 -0
- package/dist/entities/appointmentIssueSubcategory/appointmentIssueSubcategory.js +43 -0
- package/dist/entities/appointmentIssueSubcategory/appointmentIssueSubcategory.js.map +1 -0
- package/dist/entities/appointmentIssueSubcategory/helper.d.ts +5 -0
- package/dist/entities/appointmentIssueSubcategory/helper.js +16 -0
- package/dist/entities/appointmentIssueSubcategory/helper.js.map +1 -0
- package/dist/entities/appointmentIssueSubcategory/index.d.ts +2 -0
- package/dist/entities/appointmentIssueSubcategory/index.js +3 -0
- package/dist/entities/appointmentIssueSubcategory/index.js.map +1 -0
- package/dist/entities/appointmentNote/appointmentNote.d.ts +13 -0
- package/dist/entities/appointmentNote/appointmentNote.js +44 -0
- package/dist/entities/appointmentNote/appointmentNote.js.map +1 -0
- package/dist/entities/appointmentNote/helper.d.ts +5 -0
- package/dist/entities/appointmentNote/helper.js +16 -0
- package/dist/entities/appointmentNote/helper.js.map +1 -0
- package/dist/entities/appointmentNote/index.d.ts +2 -0
- package/dist/entities/appointmentNote/index.js +3 -0
- package/dist/entities/appointmentNote/index.js.map +1 -0
- package/dist/entities/appointmentNoteType/appointmentNoteType.d.ts +8 -0
- package/dist/entities/appointmentNoteType/appointmentNoteType.js +34 -0
- package/dist/entities/appointmentNoteType/appointmentNoteType.js.map +1 -0
- package/dist/entities/appointmentNoteType/helper.d.ts +5 -0
- package/dist/entities/appointmentNoteType/helper.js +16 -0
- package/dist/entities/appointmentNoteType/helper.js.map +1 -0
- package/dist/entities/appointmentNoteType/index.d.ts +2 -0
- package/dist/entities/appointmentNoteType/index.js +3 -0
- package/dist/entities/appointmentNoteType/index.js.map +1 -0
- package/dist/entities/archerFileV1/archerFileV1.d.ts +25 -0
- package/dist/entities/archerFileV1/archerFileV1.js +63 -0
- package/dist/entities/archerFileV1/archerFileV1.js.map +1 -0
- package/dist/entities/archerFileV1/helper.d.ts +5 -0
- package/dist/entities/archerFileV1/helper.js +16 -0
- package/dist/entities/archerFileV1/helper.js.map +1 -0
- package/dist/entities/archerFileV1/index.d.ts +2 -0
- package/dist/entities/archerFileV1/index.js +3 -0
- package/dist/entities/archerFileV1/index.js.map +1 -0
- package/dist/entities/carrierName/carrierName.d.ts +16 -0
- package/dist/entities/carrierName/carrierName.js +49 -0
- package/dist/entities/carrierName/carrierName.js.map +1 -0
- package/dist/entities/carrierName/helper.d.ts +5 -0
- package/dist/entities/carrierName/helper.js +16 -0
- package/dist/entities/carrierName/helper.js.map +1 -0
- package/dist/entities/carrierName/index.d.ts +2 -0
- package/dist/entities/carrierName/index.js +3 -0
- package/dist/entities/carrierName/index.js.map +1 -0
- package/dist/entities/commodityV1/commodityV1.d.ts +26 -0
- package/dist/entities/commodityV1/commodityV1.js +69 -0
- package/dist/entities/commodityV1/commodityV1.js.map +1 -0
- package/dist/entities/commodityV1/helper.d.ts +5 -0
- package/dist/entities/commodityV1/helper.js +16 -0
- package/dist/entities/commodityV1/helper.js.map +1 -0
- package/dist/entities/commodityV1/index.d.ts +2 -0
- package/dist/entities/commodityV1/index.js +3 -0
- package/dist/entities/commodityV1/index.js.map +1 -0
- package/dist/entities/driverName/driverName.d.ts +16 -0
- package/dist/entities/driverName/driverName.js +49 -0
- package/dist/entities/driverName/driverName.js.map +1 -0
- package/dist/entities/driverName/helper.d.ts +5 -0
- package/dist/entities/driverName/helper.js +16 -0
- package/dist/entities/driverName/helper.js.map +1 -0
- package/dist/entities/driverName/index.d.ts +2 -0
- package/dist/entities/driverName/index.js +3 -0
- package/dist/entities/driverName/index.js.map +1 -0
- package/dist/entities/index.d.ts +19 -0
- package/dist/entities/index.js +19 -0
- package/dist/entities/index.js.map +1 -1
- package/dist/entities/loadAdjustmentV1/helper.d.ts +5 -0
- package/dist/entities/loadAdjustmentV1/helper.js +16 -0
- package/dist/entities/loadAdjustmentV1/helper.js.map +1 -0
- package/dist/entities/loadAdjustmentV1/index.d.ts +2 -0
- package/dist/entities/loadAdjustmentV1/index.js +3 -0
- package/dist/entities/loadAdjustmentV1/index.js.map +1 -0
- package/dist/entities/loadAdjustmentV1/loadAdjustmentV1.d.ts +16 -0
- package/dist/entities/loadAdjustmentV1/loadAdjustmentV1.js +50 -0
- package/dist/entities/loadAdjustmentV1/loadAdjustmentV1.js.map +1 -0
- package/dist/entities/loadV1/helper.d.ts +6 -0
- package/dist/entities/loadV1/helper.js +35 -0
- package/dist/entities/loadV1/helper.js.map +1 -0
- package/dist/entities/loadV1/index.d.ts +2 -0
- package/dist/entities/loadV1/index.js +3 -0
- package/dist/entities/loadV1/index.js.map +1 -0
- package/dist/entities/loadV1/loadV1.d.ts +120 -0
- package/dist/entities/loadV1/loadV1.js +260 -0
- package/dist/entities/loadV1/loadV1.js.map +1 -0
- package/dist/entities/location/index.d.ts +1 -0
- package/dist/entities/location/index.js +1 -0
- package/dist/entities/location/index.js.map +1 -1
- package/dist/entities/location/location.d.ts +2 -1
- package/dist/entities/location/location.js +9 -2
- package/dist/entities/location/location.js.map +1 -1
- package/dist/entities/locationAccessorial/helper.d.ts +5 -0
- package/dist/entities/locationAccessorial/helper.js +16 -0
- package/dist/entities/locationAccessorial/helper.js.map +1 -0
- package/dist/entities/locationAccessorial/index.d.ts +2 -0
- package/dist/entities/locationAccessorial/index.js +3 -0
- package/dist/entities/locationAccessorial/index.js.map +1 -0
- package/dist/entities/locationAccessorial/locationAccessorial.d.ts +13 -0
- package/dist/entities/locationAccessorial/locationAccessorial.js +44 -0
- package/dist/entities/locationAccessorial/locationAccessorial.js.map +1 -0
- package/dist/entities/locationV1/helper.d.ts +5 -0
- package/dist/entities/locationV1/helper.js +16 -0
- package/dist/entities/locationV1/helper.js.map +1 -0
- package/dist/entities/locationV1/index.d.ts +2 -0
- package/dist/entities/locationV1/index.js +3 -0
- package/dist/entities/locationV1/index.js.map +1 -0
- package/dist/entities/locationV1/locationV1.d.ts +73 -0
- package/dist/entities/locationV1/locationV1.js +163 -0
- package/dist/entities/locationV1/locationV1.js.map +1 -0
- package/dist/entities/nmfcClass/helper.d.ts +5 -0
- package/dist/entities/nmfcClass/helper.js +16 -0
- package/dist/entities/nmfcClass/helper.js.map +1 -0
- package/dist/entities/nmfcClass/index.d.ts +2 -0
- package/dist/entities/nmfcClass/index.js +3 -0
- package/dist/entities/nmfcClass/index.js.map +1 -0
- package/dist/entities/nmfcClass/nmfcClass.d.ts +11 -0
- package/dist/entities/nmfcClass/nmfcClass.js +39 -0
- package/dist/entities/nmfcClass/nmfcClass.js.map +1 -0
- package/dist/entities/nodeName/helper.d.ts +5 -0
- package/dist/entities/nodeName/helper.js +16 -0
- package/dist/entities/nodeName/helper.js.map +1 -0
- package/dist/entities/nodeName/index.d.ts +2 -0
- package/dist/entities/nodeName/index.js +3 -0
- package/dist/entities/nodeName/index.js.map +1 -0
- package/dist/entities/nodeName/nodeName.d.ts +14 -0
- package/dist/entities/nodeName/nodeName.js +45 -0
- package/dist/entities/nodeName/nodeName.js.map +1 -0
- package/dist/entities/personName/helper.d.ts +5 -0
- package/dist/entities/personName/helper.js +16 -0
- package/dist/entities/personName/helper.js.map +1 -0
- package/dist/entities/personName/index.d.ts +2 -0
- package/dist/entities/personName/index.js +3 -0
- package/dist/entities/personName/index.js.map +1 -0
- package/dist/entities/personName/personName.d.ts +12 -0
- package/dist/entities/personName/personName.js +41 -0
- package/dist/entities/personName/personName.js.map +1 -0
- package/dist/entities/quote/quote.d.ts +0 -1
- package/dist/entities/quoteAccessorialV1/helper.d.ts +5 -0
- package/dist/entities/quoteAccessorialV1/helper.js +16 -0
- package/dist/entities/quoteAccessorialV1/helper.js.map +1 -0
- package/dist/entities/quoteAccessorialV1/index.d.ts +2 -0
- package/dist/entities/quoteAccessorialV1/index.js +3 -0
- package/dist/entities/quoteAccessorialV1/index.js.map +1 -0
- package/dist/entities/quoteAccessorialV1/quoteAccessorialV1.d.ts +34 -0
- package/dist/entities/quoteAccessorialV1/quoteAccessorialV1.js +86 -0
- package/dist/entities/quoteAccessorialV1/quoteAccessorialV1.js.map +1 -0
- package/dist/entities/quoteResponse/quoteResponse.d.ts +0 -1
- package/dist/entities/quoteResponse/quoteResponse.js.map +1 -1
- package/dist/entities/shipconV1/helper.d.ts +5 -0
- package/dist/entities/shipconV1/helper.js +16 -0
- package/dist/entities/shipconV1/helper.js.map +1 -0
- package/dist/entities/shipconV1/index.d.ts +2 -0
- package/dist/entities/shipconV1/index.js +3 -0
- package/dist/entities/shipconV1/index.js.map +1 -0
- package/dist/entities/shipconV1/shipconV1.d.ts +163 -0
- package/dist/entities/shipconV1/shipconV1.js +350 -0
- package/dist/entities/shipconV1/shipconV1.js.map +1 -0
- package/dist/entities/userNoteV1/helper.d.ts +5 -0
- package/dist/entities/userNoteV1/helper.js +16 -0
- package/dist/entities/userNoteV1/helper.js.map +1 -0
- package/dist/entities/userNoteV1/index.d.ts +2 -0
- package/dist/entities/userNoteV1/index.js +3 -0
- package/dist/entities/userNoteV1/index.js.map +1 -0
- package/dist/entities/userNoteV1/userNoteV1.d.ts +14 -0
- package/dist/entities/userNoteV1/userNoteV1.js +46 -0
- package/dist/entities/userNoteV1/userNoteV1.js.map +1 -0
- package/dist/hooks/locationsForm/locationsForm.d.ts +1 -0
- package/dist/hooks/locationsForm/locationsForm.js +7 -7
- package/dist/hooks/locationsForm/locationsForm.js.map +1 -1
- package/dist/hooks/locationsForm/locationsFormSales.d.ts +11 -0
- package/dist/hooks/locationsForm/locationsFormSales.js +826 -0
- package/dist/hooks/locationsForm/locationsFormSales.js.map +1 -0
- package/dist/hooks/quote/constants.d.ts +42 -2
- package/dist/hooks/quote/constants.js +39 -2
- package/dist/hooks/quote/constants.js.map +1 -1
- package/dist/hooks/quote/form.js +37 -46
- package/dist/hooks/quote/form.js.map +1 -1
- package/dist/hooks/quote/helpers.d.ts +12 -5
- package/dist/hooks/quote/helpers.js +76 -101
- package/dist/hooks/quote/helpers.js.map +1 -1
- package/dist/hooks/quote/result.js +19 -23
- package/dist/hooks/quote/result.js.map +1 -1
- package/dist/hooks/tender/form.js +84 -67
- package/dist/hooks/tender/form.js.map +1 -1
- package/dist/hooks/tender/helpers.d.ts +2 -1
- package/dist/hooks/tender/helpers.js +14 -17
- package/dist/hooks/tender/helpers.js.map +1 -1
- package/dist/redux/api/salesApi.d.ts +1 -1
- package/dist/redux/api/salesApi.js +24 -0
- package/dist/redux/api/salesApi.js.map +1 -1
- package/dist/redux/appointmentIssue/appointmentIssueEndpoints.d.ts +32 -0
- package/dist/redux/appointmentIssue/appointmentIssueEndpoints.js +66 -0
- package/dist/redux/appointmentIssue/appointmentIssueEndpoints.js.map +1 -0
- package/dist/redux/appointmentIssue/index.d.ts +2 -0
- package/dist/redux/appointmentIssue/index.js +3 -0
- package/dist/redux/appointmentIssue/index.js.map +1 -0
- package/dist/redux/appointmentIssueCategory/appointmentIssueCategoryEndpoints.d.ts +27 -0
- package/dist/redux/appointmentIssueCategory/appointmentIssueCategoryEndpoints.js +72 -0
- package/dist/redux/appointmentIssueCategory/appointmentIssueCategoryEndpoints.js.map +1 -0
- package/dist/redux/appointmentIssueCategory/index.d.ts +2 -0
- package/dist/redux/appointmentIssueCategory/index.js +3 -0
- package/dist/redux/appointmentIssueCategory/index.js.map +1 -0
- package/dist/redux/appointmentIssueSubcategory/appointmentIssueSubcategoryEndpoints.d.ts +26 -0
- package/dist/redux/appointmentIssueSubcategory/appointmentIssueSubcategoryEndpoints.js +66 -0
- package/dist/redux/appointmentIssueSubcategory/appointmentIssueSubcategoryEndpoints.js.map +1 -0
- package/dist/redux/appointmentIssueSubcategory/index.d.ts +2 -0
- package/dist/redux/appointmentIssueSubcategory/index.js +3 -0
- package/dist/redux/appointmentIssueSubcategory/index.js.map +1 -0
- package/dist/redux/appointmentNote/appointmentNoteEndpoints.d.ts +26 -0
- package/dist/redux/appointmentNote/appointmentNoteEndpoints.js +70 -0
- package/dist/redux/appointmentNote/appointmentNoteEndpoints.js.map +1 -0
- package/dist/redux/appointmentNote/index.d.ts +2 -0
- package/dist/redux/appointmentNote/index.js +3 -0
- package/dist/redux/appointmentNote/index.js.map +1 -0
- package/dist/redux/appointmentNoteType/appointmentNoteTypeEndpoints.d.ts +26 -0
- package/dist/redux/appointmentNoteType/appointmentNoteTypeEndpoints.js +75 -0
- package/dist/redux/appointmentNoteType/appointmentNoteTypeEndpoints.js.map +1 -0
- package/dist/redux/appointmentNoteType/index.d.ts +2 -0
- package/dist/redux/appointmentNoteType/index.js +3 -0
- package/dist/redux/appointmentNoteType/index.js.map +1 -0
- package/dist/redux/archerFile/archerFileEndpoints.d.ts +20 -0
- package/dist/redux/archerFile/archerFileEndpoints.js +61 -0
- package/dist/redux/archerFile/archerFileEndpoints.js.map +1 -0
- package/dist/redux/archerFile/index.d.ts +2 -0
- package/dist/redux/archerFile/index.js +3 -0
- package/dist/redux/archerFile/index.js.map +1 -0
- package/dist/redux/carrierName/carrierNameEndpoints.d.ts +25 -0
- package/dist/redux/carrierName/carrierNameEndpoints.js +76 -0
- package/dist/redux/carrierName/carrierNameEndpoints.js.map +1 -0
- package/dist/redux/carrierName/index.d.ts +2 -0
- package/dist/redux/carrierName/index.js +3 -0
- package/dist/redux/carrierName/index.js.map +1 -0
- package/dist/redux/commodityV1/commodityV1Endpoints.d.ts +33 -0
- package/dist/redux/commodityV1/commodityV1Endpoints.js +71 -0
- package/dist/redux/commodityV1/commodityV1Endpoints.js.map +1 -0
- package/dist/redux/commodityV1/index.d.ts +2 -0
- package/dist/redux/commodityV1/index.js +3 -0
- package/dist/redux/commodityV1/index.js.map +1 -0
- package/dist/redux/customer/customerEndpoints.d.ts +14 -14
- package/dist/redux/driverName/driverNameEndpoints.d.ts +24 -0
- package/dist/redux/driverName/driverNameEndpoints.js +67 -0
- package/dist/redux/driverName/driverNameEndpoints.js.map +1 -0
- package/dist/redux/driverName/index.d.ts +2 -0
- package/dist/redux/driverName/index.js +3 -0
- package/dist/redux/driverName/index.js.map +1 -0
- package/dist/redux/holiday/holidayEndpoints.d.ts +10 -10
- package/dist/redux/index.d.ts +17 -0
- package/dist/redux/index.js +17 -0
- package/dist/redux/index.js.map +1 -1
- package/dist/redux/load/loadEndpoints.d.ts +10 -10
- package/dist/redux/loadAdjustment/loadAdjustmentEndpoints.d.ts +10 -10
- package/dist/redux/loadAdjustmentV1/index.d.ts +2 -0
- package/dist/redux/loadAdjustmentV1/index.js +3 -0
- package/dist/redux/loadAdjustmentV1/index.js.map +1 -0
- package/dist/redux/loadAdjustmentV1/loadAdjustmentV1Endpoints.d.ts +32 -0
- package/dist/redux/loadAdjustmentV1/loadAdjustmentV1Endpoints.js +66 -0
- package/dist/redux/loadAdjustmentV1/loadAdjustmentV1Endpoints.js.map +1 -0
- package/dist/redux/loadV1/index.d.ts +2 -0
- package/dist/redux/loadV1/index.js +3 -0
- package/dist/redux/loadV1/index.js.map +1 -0
- package/dist/redux/loadV1/loadV1Endpoints.d.ts +43 -0
- package/dist/redux/loadV1/loadV1Endpoints.js +100 -0
- package/dist/redux/loadV1/loadV1Endpoints.js.map +1 -0
- package/dist/redux/location/locationEndpoints.d.ts +14 -14
- package/dist/redux/locationV1/index.d.ts +2 -0
- package/dist/redux/locationV1/index.js +3 -0
- package/dist/redux/locationV1/index.js.map +1 -0
- package/dist/redux/locationV1/locationV1Endpoints.d.ts +59 -0
- package/dist/redux/locationV1/locationV1Endpoints.js +115 -0
- package/dist/redux/locationV1/locationV1Endpoints.js.map +1 -0
- package/dist/redux/nmfcClass/index.d.ts +2 -0
- package/dist/redux/nmfcClass/index.js +3 -0
- package/dist/redux/nmfcClass/index.js.map +1 -0
- package/dist/redux/nmfcClass/nmfcClassEndpoints.d.ts +24 -0
- package/dist/redux/nmfcClass/nmfcClassEndpoints.js +64 -0
- package/dist/redux/nmfcClass/nmfcClassEndpoints.js.map +1 -0
- package/dist/redux/nodeName/index.d.ts +2 -0
- package/dist/redux/nodeName/index.js +3 -0
- package/dist/redux/nodeName/index.js.map +1 -0
- package/dist/redux/nodeName/nodeNameEndpoints.d.ts +26 -0
- package/dist/redux/nodeName/nodeNameEndpoints.js +67 -0
- package/dist/redux/nodeName/nodeNameEndpoints.js.map +1 -0
- package/dist/redux/personName/index.d.ts +2 -0
- package/dist/redux/personName/index.js +3 -0
- package/dist/redux/personName/index.js.map +1 -0
- package/dist/redux/personName/personNameEndpoints.d.ts +26 -0
- package/dist/redux/personName/personNameEndpoints.js +67 -0
- package/dist/redux/personName/personNameEndpoints.js.map +1 -0
- package/dist/redux/quote/quoteAction.d.ts +6 -2
- package/dist/redux/quote/quoteAction.js +9 -36
- package/dist/redux/quote/quoteAction.js.map +1 -1
- package/dist/redux/quote/quoteEndpoints.d.ts +22 -15
- package/dist/redux/quote/quoteEndpoints.js +26 -1
- package/dist/redux/quote/quoteEndpoints.js.map +1 -1
- package/dist/redux/quote/quoteHooks.d.ts +2 -2
- package/dist/redux/quote/quoteReducer.d.ts +0 -1
- package/dist/redux/quote/quoteReducer.js +27 -63
- package/dist/redux/quote/quoteReducer.js.map +1 -1
- package/dist/redux/quote/quoteSelector.d.ts +0 -1
- package/dist/redux/quote/quoteSelector.js +0 -12
- package/dist/redux/quote/quoteSelector.js.map +1 -1
- package/dist/redux/quoteAccessorial/quoteAccessorialEndpoints.d.ts +9 -9
- package/dist/redux/quoteAccessorialV1/index.d.ts +2 -0
- package/dist/redux/quoteAccessorialV1/index.js +3 -0
- package/dist/redux/quoteAccessorialV1/index.js.map +1 -0
- package/dist/redux/quoteAccessorialV1/quoteAccessorialV1Endpoints.d.ts +32 -0
- package/dist/redux/quoteAccessorialV1/quoteAccessorialV1Endpoints.js +67 -0
- package/dist/redux/quoteAccessorialV1/quoteAccessorialV1Endpoints.js.map +1 -0
- package/dist/redux/shipcon/shipconEndpoints.d.ts +10 -10
- package/dist/redux/shipconV1/index.d.ts +2 -0
- package/dist/redux/shipconV1/index.js +3 -0
- package/dist/redux/shipconV1/index.js.map +1 -0
- package/dist/redux/shipconV1/shipconV1Endpoints.d.ts +44 -0
- package/dist/redux/shipconV1/shipconV1Endpoints.js +75 -0
- package/dist/redux/shipconV1/shipconV1Endpoints.js.map +1 -0
- package/dist/redux/tender/tenderEndpoints.d.ts +9 -9
- package/dist/redux/tender/tenderSelector.d.ts +0 -2
- package/dist/redux/trailerAvailability/customerEndpoints.d.ts +4 -4
- package/dist/redux/types.d.ts +2 -2
- package/dist/redux/userNoteV1/index.d.ts +2 -0
- package/dist/redux/userNoteV1/index.js +3 -0
- package/dist/redux/userNoteV1/index.js.map +1 -0
- package/dist/redux/userNoteV1/userNoteV1Endpoints.d.ts +32 -0
- package/dist/redux/userNoteV1/userNoteV1Endpoints.js +65 -0
- package/dist/redux/userNoteV1/userNoteV1Endpoints.js.map +1 -0
- package/package.json +5 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/redux/appointmentNoteType/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ArcherFileV1_Entity } from "../../entities";
|
|
2
|
+
export declare const archerFileEndpoints: 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, {}>>, {
|
|
3
|
+
getArcherFiles: 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" | "trailerAvailabilities" | "locationsV1" | "locationsV1Accessorials" | "archerFiles" | "appointmentNotes" | "appointmentNoteTypes" | "shipconsV1" | "loadShipcons" | "appointmentIssueCategories" | "appointmentIssueSubcategories" | "personNames" | "nodeNames" | "driverNames" | "carrierNames" | "appointmentIssues" | "loadsV1" | "nmfcClasses" | "commoditiesV1" | "loadCommodities" | "loadQuoteAccessorials" | "quoteAccessorialsV1" | "loadAdjustmentsByLoad" | "loadAdjustmentsV1" | "userNotesV1" | "loadUserNotesV1", ArcherFileV1_Entity[], "salesApi">;
|
|
4
|
+
uploadArcherFile: import("@reduxjs/toolkit/dist/query").MutationDefinition<{
|
|
5
|
+
modelType: string;
|
|
6
|
+
modelID: number;
|
|
7
|
+
file: File;
|
|
8
|
+
description: string;
|
|
9
|
+
}, (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" | "trailerAvailabilities" | "locationsV1" | "locationsV1Accessorials" | "archerFiles" | "appointmentNotes" | "appointmentNoteTypes" | "shipconsV1" | "loadShipcons" | "appointmentIssueCategories" | "appointmentIssueSubcategories" | "personNames" | "nodeNames" | "driverNames" | "carrierNames" | "appointmentIssues" | "loadsV1" | "nmfcClasses" | "commoditiesV1" | "loadCommodities" | "loadQuoteAccessorials" | "quoteAccessorialsV1" | "loadAdjustmentsByLoad" | "loadAdjustmentsV1" | "userNotesV1" | "loadUserNotesV1", ArcherFileV1_Entity, "salesApi">;
|
|
10
|
+
deleteArcherFile: 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" | "trailerAvailabilities" | "locationsV1" | "locationsV1Accessorials" | "archerFiles" | "appointmentNotes" | "appointmentNoteTypes" | "shipconsV1" | "loadShipcons" | "appointmentIssueCategories" | "appointmentIssueSubcategories" | "personNames" | "nodeNames" | "driverNames" | "carrierNames" | "appointmentIssues" | "loadsV1" | "nmfcClasses" | "commoditiesV1" | "loadCommodities" | "loadQuoteAccessorials" | "quoteAccessorialsV1" | "loadAdjustmentsByLoad" | "loadAdjustmentsV1" | "userNotesV1" | "loadUserNotesV1", void, "salesApi">;
|
|
11
|
+
shareArcherFile: 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" | "trailerAvailabilities" | "locationsV1" | "locationsV1Accessorials" | "archerFiles" | "appointmentNotes" | "appointmentNoteTypes" | "shipconsV1" | "loadShipcons" | "appointmentIssueCategories" | "appointmentIssueSubcategories" | "personNames" | "nodeNames" | "driverNames" | "carrierNames" | "appointmentIssues" | "loadsV1" | "nmfcClasses" | "commoditiesV1" | "loadCommodities" | "loadQuoteAccessorials" | "quoteAccessorialsV1" | "loadAdjustmentsByLoad" | "loadAdjustmentsV1" | "userNotesV1" | "loadUserNotesV1", ArcherFileV1_Entity, "salesApi">;
|
|
12
|
+
unshareArcherFile: 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" | "trailerAvailabilities" | "locationsV1" | "locationsV1Accessorials" | "archerFiles" | "appointmentNotes" | "appointmentNoteTypes" | "shipconsV1" | "loadShipcons" | "appointmentIssueCategories" | "appointmentIssueSubcategories" | "personNames" | "nodeNames" | "driverNames" | "carrierNames" | "appointmentIssues" | "loadsV1" | "nmfcClasses" | "commoditiesV1" | "loadCommodities" | "loadQuoteAccessorials" | "quoteAccessorialsV1" | "loadAdjustmentsByLoad" | "loadAdjustmentsV1" | "userNotesV1" | "loadUserNotesV1", ArcherFileV1_Entity, "salesApi">;
|
|
13
|
+
}, "salesApi", "shipcons" | "files" | "quotes" | "loads" | "customers" | "loadAdjustments" | "locations" | "quoteAccessorials" | "tenders" | "holidays" | "trailerAvailabilities" | "locationsV1" | "locationsV1Accessorials" | "archerFiles" | "appointmentNotes" | "appointmentNoteTypes" | "shipconsV1" | "loadShipcons" | "appointmentIssueCategories" | "appointmentIssueSubcategories" | "personNames" | "nodeNames" | "driverNames" | "carrierNames" | "appointmentIssues" | "loadsV1" | "nmfcClasses" | "commoditiesV1" | "loadCommodities" | "loadQuoteAccessorials" | "quoteAccessorialsV1" | "loadAdjustmentsByLoad" | "loadAdjustmentsV1" | "userNotesV1" | "loadUserNotesV1", typeof import("@reduxjs/toolkit/dist/query/core/module").coreModuleName | typeof import("@reduxjs/toolkit/dist/query/react/module").reactHooksModuleName>;
|
|
14
|
+
export declare const useGetArcherFilesQuery: 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" | "trailerAvailabilities" | "locationsV1" | "locationsV1Accessorials" | "archerFiles" | "appointmentNotes" | "appointmentNoteTypes" | "shipconsV1" | "loadShipcons" | "appointmentIssueCategories" | "appointmentIssueSubcategories" | "personNames" | "nodeNames" | "driverNames" | "carrierNames" | "appointmentIssues" | "loadsV1" | "nmfcClasses" | "commoditiesV1" | "loadCommodities" | "loadQuoteAccessorials" | "quoteAccessorialsV1" | "loadAdjustmentsByLoad" | "loadAdjustmentsV1" | "userNotesV1" | "loadUserNotesV1", ArcherFileV1_Entity[], "salesApi">>, useLazyGetArcherFilesQuery: 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" | "trailerAvailabilities" | "locationsV1" | "locationsV1Accessorials" | "archerFiles" | "appointmentNotes" | "appointmentNoteTypes" | "shipconsV1" | "loadShipcons" | "appointmentIssueCategories" | "appointmentIssueSubcategories" | "personNames" | "nodeNames" | "driverNames" | "carrierNames" | "appointmentIssues" | "loadsV1" | "nmfcClasses" | "commoditiesV1" | "loadCommodities" | "loadQuoteAccessorials" | "quoteAccessorialsV1" | "loadAdjustmentsByLoad" | "loadAdjustmentsV1" | "userNotesV1" | "loadUserNotesV1", ArcherFileV1_Entity[], "salesApi">>, useDeleteArcherFileMutation: 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" | "trailerAvailabilities" | "locationsV1" | "locationsV1Accessorials" | "archerFiles" | "appointmentNotes" | "appointmentNoteTypes" | "shipconsV1" | "loadShipcons" | "appointmentIssueCategories" | "appointmentIssueSubcategories" | "personNames" | "nodeNames" | "driverNames" | "carrierNames" | "appointmentIssues" | "loadsV1" | "nmfcClasses" | "commoditiesV1" | "loadCommodities" | "loadQuoteAccessorials" | "quoteAccessorialsV1" | "loadAdjustmentsByLoad" | "loadAdjustmentsV1" | "userNotesV1" | "loadUserNotesV1", void, "salesApi">>, useUploadArcherFileMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/dist/query").MutationDefinition<{
|
|
15
|
+
modelType: string;
|
|
16
|
+
modelID: number;
|
|
17
|
+
file: File;
|
|
18
|
+
description: string;
|
|
19
|
+
}, (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" | "trailerAvailabilities" | "locationsV1" | "locationsV1Accessorials" | "archerFiles" | "appointmentNotes" | "appointmentNoteTypes" | "shipconsV1" | "loadShipcons" | "appointmentIssueCategories" | "appointmentIssueSubcategories" | "personNames" | "nodeNames" | "driverNames" | "carrierNames" | "appointmentIssues" | "loadsV1" | "nmfcClasses" | "commoditiesV1" | "loadCommodities" | "loadQuoteAccessorials" | "quoteAccessorialsV1" | "loadAdjustmentsByLoad" | "loadAdjustmentsV1" | "userNotesV1" | "loadUserNotesV1", ArcherFileV1_Entity, "salesApi">>, useShareArcherFileMutation: 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" | "trailerAvailabilities" | "locationsV1" | "locationsV1Accessorials" | "archerFiles" | "appointmentNotes" | "appointmentNoteTypes" | "shipconsV1" | "loadShipcons" | "appointmentIssueCategories" | "appointmentIssueSubcategories" | "personNames" | "nodeNames" | "driverNames" | "carrierNames" | "appointmentIssues" | "loadsV1" | "nmfcClasses" | "commoditiesV1" | "loadCommodities" | "loadQuoteAccessorials" | "quoteAccessorialsV1" | "loadAdjustmentsByLoad" | "loadAdjustmentsV1" | "userNotesV1" | "loadUserNotesV1", ArcherFileV1_Entity, "salesApi">>, useUnshareArcherFileMutation: 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" | "trailerAvailabilities" | "locationsV1" | "locationsV1Accessorials" | "archerFiles" | "appointmentNotes" | "appointmentNoteTypes" | "shipconsV1" | "loadShipcons" | "appointmentIssueCategories" | "appointmentIssueSubcategories" | "personNames" | "nodeNames" | "driverNames" | "carrierNames" | "appointmentIssues" | "loadsV1" | "nmfcClasses" | "commoditiesV1" | "loadCommodities" | "loadQuoteAccessorials" | "quoteAccessorialsV1" | "loadAdjustmentsByLoad" | "loadAdjustmentsV1" | "userNotesV1" | "loadUserNotesV1", ArcherFileV1_Entity, "salesApi">>;
|
|
20
|
+
export default archerFileEndpoints;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { salesApi } from "../api/salesApi";
|
|
2
|
+
export const archerFileEndpoints = salesApi.injectEndpoints({
|
|
3
|
+
endpoints: (build) => ({
|
|
4
|
+
getArcherFiles: build.query({
|
|
5
|
+
query: (args) => {
|
|
6
|
+
return {
|
|
7
|
+
url: `archer_files`,
|
|
8
|
+
params: args,
|
|
9
|
+
routePrefix: "/v1",
|
|
10
|
+
};
|
|
11
|
+
},
|
|
12
|
+
providesTags: ["archerFiles"],
|
|
13
|
+
}),
|
|
14
|
+
uploadArcherFile: build.mutation({
|
|
15
|
+
query: (args) => {
|
|
16
|
+
const body = new FormData();
|
|
17
|
+
body.append("archerfile[model_type]", args.modelType);
|
|
18
|
+
body.append("archerfile[model_id]", args.modelID.toString());
|
|
19
|
+
body.append("archerfile[description]", args.description);
|
|
20
|
+
body.append("archerfile[file]", args.file);
|
|
21
|
+
body.append("filename", args.file.name);
|
|
22
|
+
return {
|
|
23
|
+
method: "POST",
|
|
24
|
+
body,
|
|
25
|
+
url: `file-service/archer_files/upload`,
|
|
26
|
+
headers: {
|
|
27
|
+
"Content-Type": "multipart/form-data",
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
},
|
|
31
|
+
invalidatesTags: ["archerFiles"],
|
|
32
|
+
}),
|
|
33
|
+
deleteArcherFile: build.mutation({
|
|
34
|
+
query: (id) => ({
|
|
35
|
+
method: "DELETE",
|
|
36
|
+
url: `archer_files/${id}`,
|
|
37
|
+
routePrefix: "/v1",
|
|
38
|
+
}),
|
|
39
|
+
invalidatesTags: ["archerFiles"],
|
|
40
|
+
}),
|
|
41
|
+
shareArcherFile: build.mutation({
|
|
42
|
+
query: (id) => ({
|
|
43
|
+
method: "GET",
|
|
44
|
+
url: `archer_files/${id}/share_file.json?share=true`,
|
|
45
|
+
routePrefix: "/v1",
|
|
46
|
+
invalidatesTags: ["archerFiles"],
|
|
47
|
+
}),
|
|
48
|
+
}),
|
|
49
|
+
unshareArcherFile: build.mutation({
|
|
50
|
+
query: (id) => ({
|
|
51
|
+
method: "GET",
|
|
52
|
+
url: `archer_files/${id}/share_file.json?share=false`,
|
|
53
|
+
routePrefix: "/v1",
|
|
54
|
+
invalidatesTags: ["archerFiles"],
|
|
55
|
+
}),
|
|
56
|
+
}),
|
|
57
|
+
}),
|
|
58
|
+
});
|
|
59
|
+
export const { useGetArcherFilesQuery, useLazyGetArcherFilesQuery, useDeleteArcherFileMutation, useUploadArcherFileMutation, useShareArcherFileMutation, useUnshareArcherFileMutation, } = archerFileEndpoints;
|
|
60
|
+
export default archerFileEndpoints;
|
|
61
|
+
//# sourceMappingURL=archerFileEndpoints.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"archerFileEndpoints.js","sourceRoot":"","sources":["../../../src/redux/archerFile/archerFileEndpoints.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,MAAM,CAAC,MAAM,mBAAmB,GAAG,QAAQ,CAAC,eAAe,CAAC;IAC1D,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACrB,cAAc,EAAE,KAAK,CAAC,KAAK,CAGzB;YACA,KAAK,EAAE,CAAC,IAAI,EAAE,EAAE;gBACd,OAAO;oBACL,GAAG,EAAE,cAAc;oBACnB,MAAM,EAAE,IAAI;oBACZ,WAAW,EAAE,KAAK;iBACnB,CAAC;YACJ,CAAC;YACD,YAAY,EAAE,CAAC,aAAa,CAAC;SAC9B,CAAC;QACF,gBAAgB,EAAE,KAAK,CAAC,QAAQ,CAG9B;YACA,KAAK,EAAE,CAAC,IAAI,EAAE,EAAE;gBACd,MAAM,IAAI,GAAG,IAAI,QAAQ,EAAE,CAAC;gBAC5B,IAAI,CAAC,MAAM,CAAC,wBAAwB,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;gBACtD,IAAI,CAAC,MAAM,CAAC,sBAAsB,EAAE,IAAI,CAAC,OAAO,CAAC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CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,EACX,sBAAsB,EACtB,0BAA0B,EAC1B,2BAA2B,EAC3B,2BAA2B,EAC3B,0BAA0B,EAC1B,4BAA4B,GAC7B,GAAG,mBAAmB,CAAC;AAExB,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/redux/archerFile/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { EntityState } from "@reduxjs/toolkit";
|
|
2
|
+
import { CarrierName_Entity } from "../../entities";
|
|
3
|
+
export declare const carrierNameEndpoints: 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, {}>>, {
|
|
4
|
+
getCarrierNames: 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" | "trailerAvailabilities" | "locationsV1" | "locationsV1Accessorials" | "archerFiles" | "appointmentNotes" | "appointmentNoteTypes" | "shipconsV1" | "loadShipcons" | "appointmentIssueCategories" | "appointmentIssueSubcategories" | "personNames" | "nodeNames" | "driverNames" | "carrierNames" | "appointmentIssues" | "loadsV1" | "nmfcClasses" | "commoditiesV1" | "loadCommodities" | "loadQuoteAccessorials" | "quoteAccessorialsV1" | "loadAdjustmentsByLoad" | "loadAdjustmentsV1" | "userNotesV1" | "loadUserNotesV1", EntityState<CarrierName_Entity>, "salesApi">;
|
|
5
|
+
getCarrierName: 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" | "trailerAvailabilities" | "locationsV1" | "locationsV1Accessorials" | "archerFiles" | "appointmentNotes" | "appointmentNoteTypes" | "shipconsV1" | "loadShipcons" | "appointmentIssueCategories" | "appointmentIssueSubcategories" | "personNames" | "nodeNames" | "driverNames" | "carrierNames" | "appointmentIssues" | "loadsV1" | "nmfcClasses" | "commoditiesV1" | "loadCommodities" | "loadQuoteAccessorials" | "quoteAccessorialsV1" | "loadAdjustmentsByLoad" | "loadAdjustmentsV1" | "userNotesV1" | "loadUserNotesV1", CarrierName_Entity, "salesApi">;
|
|
6
|
+
createCarrierName: import("@reduxjs/toolkit/dist/query").MutationDefinition<Partial<CarrierName_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" | "trailerAvailabilities" | "locationsV1" | "locationsV1Accessorials" | "archerFiles" | "appointmentNotes" | "appointmentNoteTypes" | "shipconsV1" | "loadShipcons" | "appointmentIssueCategories" | "appointmentIssueSubcategories" | "personNames" | "nodeNames" | "driverNames" | "carrierNames" | "appointmentIssues" | "loadsV1" | "nmfcClasses" | "commoditiesV1" | "loadCommodities" | "loadQuoteAccessorials" | "quoteAccessorialsV1" | "loadAdjustmentsByLoad" | "loadAdjustmentsV1" | "userNotesV1" | "loadUserNotesV1", CarrierName_Entity, "salesApi">;
|
|
7
|
+
updateCarrierName: import("@reduxjs/toolkit/dist/query").MutationDefinition<{
|
|
8
|
+
id: number;
|
|
9
|
+
body: Partial<CarrierName_Entity>;
|
|
10
|
+
}, (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" | "trailerAvailabilities" | "locationsV1" | "locationsV1Accessorials" | "archerFiles" | "appointmentNotes" | "appointmentNoteTypes" | "shipconsV1" | "loadShipcons" | "appointmentIssueCategories" | "appointmentIssueSubcategories" | "personNames" | "nodeNames" | "driverNames" | "carrierNames" | "appointmentIssues" | "loadsV1" | "nmfcClasses" | "commoditiesV1" | "loadCommodities" | "loadQuoteAccessorials" | "quoteAccessorialsV1" | "loadAdjustmentsByLoad" | "loadAdjustmentsV1" | "userNotesV1" | "loadUserNotesV1", void, "salesApi">;
|
|
11
|
+
deleteCarrierName: 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" | "trailerAvailabilities" | "locationsV1" | "locationsV1Accessorials" | "archerFiles" | "appointmentNotes" | "appointmentNoteTypes" | "shipconsV1" | "loadShipcons" | "appointmentIssueCategories" | "appointmentIssueSubcategories" | "personNames" | "nodeNames" | "driverNames" | "carrierNames" | "appointmentIssues" | "loadsV1" | "nmfcClasses" | "commoditiesV1" | "loadCommodities" | "loadQuoteAccessorials" | "quoteAccessorialsV1" | "loadAdjustmentsByLoad" | "loadAdjustmentsV1" | "userNotesV1" | "loadUserNotesV1", void, "salesApi">;
|
|
12
|
+
getCarrierNamesLite: 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" | "trailerAvailabilities" | "locationsV1" | "locationsV1Accessorials" | "archerFiles" | "appointmentNotes" | "appointmentNoteTypes" | "shipconsV1" | "loadShipcons" | "appointmentIssueCategories" | "appointmentIssueSubcategories" | "personNames" | "nodeNames" | "driverNames" | "carrierNames" | "appointmentIssues" | "loadsV1" | "nmfcClasses" | "commoditiesV1" | "loadCommodities" | "loadQuoteAccessorials" | "quoteAccessorialsV1" | "loadAdjustmentsByLoad" | "loadAdjustmentsV1" | "userNotesV1" | "loadUserNotesV1", CarrierName_Entity[], "salesApi">;
|
|
13
|
+
}, "salesApi", "shipcons" | "files" | "quotes" | "loads" | "customers" | "loadAdjustments" | "locations" | "quoteAccessorials" | "tenders" | "holidays" | "trailerAvailabilities" | "locationsV1" | "locationsV1Accessorials" | "archerFiles" | "appointmentNotes" | "appointmentNoteTypes" | "shipconsV1" | "loadShipcons" | "appointmentIssueCategories" | "appointmentIssueSubcategories" | "personNames" | "nodeNames" | "driverNames" | "carrierNames" | "appointmentIssues" | "loadsV1" | "nmfcClasses" | "commoditiesV1" | "loadCommodities" | "loadQuoteAccessorials" | "quoteAccessorialsV1" | "loadAdjustmentsByLoad" | "loadAdjustmentsV1" | "userNotesV1" | "loadUserNotesV1", typeof import("@reduxjs/toolkit/dist/query/core/module").coreModuleName | typeof import("@reduxjs/toolkit/dist/query/react/module").reactHooksModuleName>;
|
|
14
|
+
export declare const useGetCarrierNameQuery: 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" | "trailerAvailabilities" | "locationsV1" | "locationsV1Accessorials" | "archerFiles" | "appointmentNotes" | "appointmentNoteTypes" | "shipconsV1" | "loadShipcons" | "appointmentIssueCategories" | "appointmentIssueSubcategories" | "personNames" | "nodeNames" | "driverNames" | "carrierNames" | "appointmentIssues" | "loadsV1" | "nmfcClasses" | "commoditiesV1" | "loadCommodities" | "loadQuoteAccessorials" | "quoteAccessorialsV1" | "loadAdjustmentsByLoad" | "loadAdjustmentsV1" | "userNotesV1" | "loadUserNotesV1", CarrierName_Entity, "salesApi">>, useGetCarrierNamesQuery: 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" | "trailerAvailabilities" | "locationsV1" | "locationsV1Accessorials" | "archerFiles" | "appointmentNotes" | "appointmentNoteTypes" | "shipconsV1" | "loadShipcons" | "appointmentIssueCategories" | "appointmentIssueSubcategories" | "personNames" | "nodeNames" | "driverNames" | "carrierNames" | "appointmentIssues" | "loadsV1" | "nmfcClasses" | "commoditiesV1" | "loadCommodities" | "loadQuoteAccessorials" | "quoteAccessorialsV1" | "loadAdjustmentsByLoad" | "loadAdjustmentsV1" | "userNotesV1" | "loadUserNotesV1", EntityState<CarrierName_Entity>, "salesApi">>, useLazyGetCarrierNamesQuery: 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" | "trailerAvailabilities" | "locationsV1" | "locationsV1Accessorials" | "archerFiles" | "appointmentNotes" | "appointmentNoteTypes" | "shipconsV1" | "loadShipcons" | "appointmentIssueCategories" | "appointmentIssueSubcategories" | "personNames" | "nodeNames" | "driverNames" | "carrierNames" | "appointmentIssues" | "loadsV1" | "nmfcClasses" | "commoditiesV1" | "loadCommodities" | "loadQuoteAccessorials" | "quoteAccessorialsV1" | "loadAdjustmentsByLoad" | "loadAdjustmentsV1" | "userNotesV1" | "loadUserNotesV1", EntityState<CarrierName_Entity>, "salesApi">>, useLazyGetCarrierNameQuery: 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" | "trailerAvailabilities" | "locationsV1" | "locationsV1Accessorials" | "archerFiles" | "appointmentNotes" | "appointmentNoteTypes" | "shipconsV1" | "loadShipcons" | "appointmentIssueCategories" | "appointmentIssueSubcategories" | "personNames" | "nodeNames" | "driverNames" | "carrierNames" | "appointmentIssues" | "loadsV1" | "nmfcClasses" | "commoditiesV1" | "loadCommodities" | "loadQuoteAccessorials" | "quoteAccessorialsV1" | "loadAdjustmentsByLoad" | "loadAdjustmentsV1" | "userNotesV1" | "loadUserNotesV1", CarrierName_Entity, "salesApi">>, useCreateCarrierNameMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/dist/query").MutationDefinition<Partial<CarrierName_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" | "trailerAvailabilities" | "locationsV1" | "locationsV1Accessorials" | "archerFiles" | "appointmentNotes" | "appointmentNoteTypes" | "shipconsV1" | "loadShipcons" | "appointmentIssueCategories" | "appointmentIssueSubcategories" | "personNames" | "nodeNames" | "driverNames" | "carrierNames" | "appointmentIssues" | "loadsV1" | "nmfcClasses" | "commoditiesV1" | "loadCommodities" | "loadQuoteAccessorials" | "quoteAccessorialsV1" | "loadAdjustmentsByLoad" | "loadAdjustmentsV1" | "userNotesV1" | "loadUserNotesV1", CarrierName_Entity, "salesApi">>, useDeleteCarrierNameMutation: 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" | "trailerAvailabilities" | "locationsV1" | "locationsV1Accessorials" | "archerFiles" | "appointmentNotes" | "appointmentNoteTypes" | "shipconsV1" | "loadShipcons" | "appointmentIssueCategories" | "appointmentIssueSubcategories" | "personNames" | "nodeNames" | "driverNames" | "carrierNames" | "appointmentIssues" | "loadsV1" | "nmfcClasses" | "commoditiesV1" | "loadCommodities" | "loadQuoteAccessorials" | "quoteAccessorialsV1" | "loadAdjustmentsByLoad" | "loadAdjustmentsV1" | "userNotesV1" | "loadUserNotesV1", void, "salesApi">>, useUpdateCarrierNameMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/dist/query").MutationDefinition<{
|
|
15
|
+
id: number;
|
|
16
|
+
body: Partial<CarrierName_Entity>;
|
|
17
|
+
}, (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" | "trailerAvailabilities" | "locationsV1" | "locationsV1Accessorials" | "archerFiles" | "appointmentNotes" | "appointmentNoteTypes" | "shipconsV1" | "loadShipcons" | "appointmentIssueCategories" | "appointmentIssueSubcategories" | "personNames" | "nodeNames" | "driverNames" | "carrierNames" | "appointmentIssues" | "loadsV1" | "nmfcClasses" | "commoditiesV1" | "loadCommodities" | "loadQuoteAccessorials" | "quoteAccessorialsV1" | "loadAdjustmentsByLoad" | "loadAdjustmentsV1" | "userNotesV1" | "loadUserNotesV1", void, "salesApi">>, useGetCarrierNamesLiteQuery: 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" | "trailerAvailabilities" | "locationsV1" | "locationsV1Accessorials" | "archerFiles" | "appointmentNotes" | "appointmentNoteTypes" | "shipconsV1" | "loadShipcons" | "appointmentIssueCategories" | "appointmentIssueSubcategories" | "personNames" | "nodeNames" | "driverNames" | "carrierNames" | "appointmentIssues" | "loadsV1" | "nmfcClasses" | "commoditiesV1" | "loadCommodities" | "loadQuoteAccessorials" | "quoteAccessorialsV1" | "loadAdjustmentsByLoad" | "loadAdjustmentsV1" | "userNotesV1" | "loadUserNotesV1", CarrierName_Entity[], "salesApi">>, useLazyGetCarrierNamesLiteQuery: 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" | "trailerAvailabilities" | "locationsV1" | "locationsV1Accessorials" | "archerFiles" | "appointmentNotes" | "appointmentNoteTypes" | "shipconsV1" | "loadShipcons" | "appointmentIssueCategories" | "appointmentIssueSubcategories" | "personNames" | "nodeNames" | "driverNames" | "carrierNames" | "appointmentIssues" | "loadsV1" | "nmfcClasses" | "commoditiesV1" | "loadCommodities" | "loadQuoteAccessorials" | "quoteAccessorialsV1" | "loadAdjustmentsByLoad" | "loadAdjustmentsV1" | "userNotesV1" | "loadUserNotesV1", CarrierName_Entity[], "salesApi">>;
|
|
18
|
+
export default carrierNameEndpoints;
|
|
19
|
+
export declare const getCarrierNamesSelectors: (params: Record<string, unknown> | void) => import("@reduxjs/toolkit").EntitySelectors<CarrierName_Entity, {
|
|
20
|
+
salesApi: import("@reduxjs/toolkit/dist/query/core/apiState").CombinedState<{}, "shipcons" | "files" | "quotes" | "loads" | "customers" | "loadAdjustments" | "locations" | "quoteAccessorials" | "tenders" | "holidays" | "trailerAvailabilities" | "locationsV1" | "locationsV1Accessorials" | "archerFiles" | "appointmentNotes" | "appointmentNoteTypes" | "shipconsV1" | "loadShipcons" | "appointmentIssueCategories" | "appointmentIssueSubcategories" | "personNames" | "nodeNames" | "driverNames" | "carrierNames" | "appointmentIssues" | "loadsV1" | "nmfcClasses" | "commoditiesV1" | "loadCommodities" | "loadQuoteAccessorials" | "quoteAccessorialsV1" | "loadAdjustmentsByLoad" | "loadAdjustmentsV1" | "userNotesV1" | "loadUserNotesV1", "salesApi">;
|
|
21
|
+
salesKitState: import("redux").CombinedState<{
|
|
22
|
+
quote: import("..").QuoteState;
|
|
23
|
+
tender: import("../tender/tenderSlice").TenderState;
|
|
24
|
+
}>;
|
|
25
|
+
}>;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { createEntityAdapter, createSelector, } from "@reduxjs/toolkit";
|
|
2
|
+
import { salesApi } from "../api/salesApi";
|
|
3
|
+
const carrierNamesAdapter = createEntityAdapter();
|
|
4
|
+
const carrierNamesInitialState = carrierNamesAdapter.getInitialState();
|
|
5
|
+
export const carrierNameEndpoints = salesApi.injectEndpoints({
|
|
6
|
+
endpoints: (build) => ({
|
|
7
|
+
getCarrierNames: build.query({
|
|
8
|
+
query: (args) => {
|
|
9
|
+
return {
|
|
10
|
+
url: `carriers/carrier_names`,
|
|
11
|
+
params: args,
|
|
12
|
+
routePrefix: "/v1",
|
|
13
|
+
};
|
|
14
|
+
},
|
|
15
|
+
transformResponse: (responseData) => {
|
|
16
|
+
return carrierNamesAdapter.setAll(carrierNamesInitialState, responseData);
|
|
17
|
+
},
|
|
18
|
+
providesTags: ["carrierNames"],
|
|
19
|
+
}),
|
|
20
|
+
getCarrierName: build.query({
|
|
21
|
+
query: (id) => ({
|
|
22
|
+
ur: `carriers/carrier_names/${id}`,
|
|
23
|
+
routePrefix: "/v1",
|
|
24
|
+
}),
|
|
25
|
+
providesTags: (_result, _error, id) => [{ type: "carrierNames", id }],
|
|
26
|
+
}),
|
|
27
|
+
createCarrierName: build.mutation({
|
|
28
|
+
query: (body) => ({
|
|
29
|
+
method: "POST",
|
|
30
|
+
body,
|
|
31
|
+
url: `carriers/carrier_names`,
|
|
32
|
+
routePrefix: "/v1",
|
|
33
|
+
}),
|
|
34
|
+
invalidatesTags: ["carrierNames"],
|
|
35
|
+
}),
|
|
36
|
+
updateCarrierName: build.mutation({
|
|
37
|
+
query: (args) => ({
|
|
38
|
+
method: "PUT",
|
|
39
|
+
body: args.body,
|
|
40
|
+
url: `carriers/carrier_names/${args.id}`,
|
|
41
|
+
routePrefix: "/v1",
|
|
42
|
+
}),
|
|
43
|
+
invalidatesTags: (_result, _error, { id }) => [
|
|
44
|
+
{ type: "carrierNames", id },
|
|
45
|
+
"carrierNames",
|
|
46
|
+
],
|
|
47
|
+
}),
|
|
48
|
+
deleteCarrierName: build.mutation({
|
|
49
|
+
query: (id) => ({
|
|
50
|
+
method: "DELETE",
|
|
51
|
+
url: `carriers/carrier_names/${id}`,
|
|
52
|
+
routePrefix: "/v1",
|
|
53
|
+
}),
|
|
54
|
+
invalidatesTags: ["carrierNames"],
|
|
55
|
+
}),
|
|
56
|
+
getCarrierNamesLite: build.query({
|
|
57
|
+
query: (args) => {
|
|
58
|
+
return {
|
|
59
|
+
url: `carriers/names_lite`,
|
|
60
|
+
params: args,
|
|
61
|
+
routePrefix: "/v1",
|
|
62
|
+
};
|
|
63
|
+
},
|
|
64
|
+
}),
|
|
65
|
+
}),
|
|
66
|
+
});
|
|
67
|
+
export const { useGetCarrierNameQuery, useGetCarrierNamesQuery, useLazyGetCarrierNamesQuery, useLazyGetCarrierNameQuery, useCreateCarrierNameMutation, useDeleteCarrierNameMutation, useUpdateCarrierNameMutation, useGetCarrierNamesLiteQuery, useLazyGetCarrierNamesLiteQuery, } = carrierNameEndpoints;
|
|
68
|
+
export default carrierNameEndpoints;
|
|
69
|
+
export const getCarrierNamesSelectors = (params) => {
|
|
70
|
+
return carrierNamesAdapter.getSelectors((state) => {
|
|
71
|
+
return (createSelector(carrierNameEndpoints.endpoints.getCarrierNames.select(params), (carrierNamesResult) => {
|
|
72
|
+
return carrierNamesResult.data;
|
|
73
|
+
})(state) ?? carrierNamesInitialState);
|
|
74
|
+
});
|
|
75
|
+
};
|
|
76
|
+
//# sourceMappingURL=carrierNameEndpoints.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"carrierNameEndpoints.js","sourceRoot":"","sources":["../../../src/redux/carrierName/carrierNameEndpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EAEnB,cAAc,GACf,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAG3C,MAAM,mBAAmB,GAAG,mBAAmB,EAAsB,CAAC;AACtE,MAAM,wBAAwB,GAAG,mBAAmB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kB,CAAC,IAAI,CAAC;QACjC,CAAC,CACF,CAAC,KAAK,CAAC,IAAI,wBAAwB,CACrC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/redux/carrierName/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { EntityState } from "@reduxjs/toolkit";
|
|
2
|
+
import { CommodityV1_Entity } from "../../entities";
|
|
3
|
+
export declare const commodityV1Endpoints: 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, {}>>, {
|
|
4
|
+
getCommoditiesV1: 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" | "trailerAvailabilities" | "locationsV1" | "locationsV1Accessorials" | "archerFiles" | "appointmentNotes" | "appointmentNoteTypes" | "shipconsV1" | "loadShipcons" | "appointmentIssueCategories" | "appointmentIssueSubcategories" | "personNames" | "nodeNames" | "driverNames" | "carrierNames" | "appointmentIssues" | "loadsV1" | "nmfcClasses" | "commoditiesV1" | "loadCommodities" | "loadQuoteAccessorials" | "quoteAccessorialsV1" | "loadAdjustmentsByLoad" | "loadAdjustmentsV1" | "userNotesV1" | "loadUserNotesV1", EntityState<CommodityV1_Entity>, "salesApi">;
|
|
5
|
+
getCommodityV1: 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" | "trailerAvailabilities" | "locationsV1" | "locationsV1Accessorials" | "archerFiles" | "appointmentNotes" | "appointmentNoteTypes" | "shipconsV1" | "loadShipcons" | "appointmentIssueCategories" | "appointmentIssueSubcategories" | "personNames" | "nodeNames" | "driverNames" | "carrierNames" | "appointmentIssues" | "loadsV1" | "nmfcClasses" | "commoditiesV1" | "loadCommodities" | "loadQuoteAccessorials" | "quoteAccessorialsV1" | "loadAdjustmentsByLoad" | "loadAdjustmentsV1" | "userNotesV1" | "loadUserNotesV1", CommodityV1_Entity, "salesApi">;
|
|
6
|
+
createCommodityV1: import("@reduxjs/toolkit/dist/query").MutationDefinition<{
|
|
7
|
+
commodity: Partial<CommodityV1_Entity>;
|
|
8
|
+
}, (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" | "trailerAvailabilities" | "locationsV1" | "locationsV1Accessorials" | "archerFiles" | "appointmentNotes" | "appointmentNoteTypes" | "shipconsV1" | "loadShipcons" | "appointmentIssueCategories" | "appointmentIssueSubcategories" | "personNames" | "nodeNames" | "driverNames" | "carrierNames" | "appointmentIssues" | "loadsV1" | "nmfcClasses" | "commoditiesV1" | "loadCommodities" | "loadQuoteAccessorials" | "quoteAccessorialsV1" | "loadAdjustmentsByLoad" | "loadAdjustmentsV1" | "userNotesV1" | "loadUserNotesV1", CommodityV1_Entity, "salesApi">;
|
|
9
|
+
updateCommodityV1: import("@reduxjs/toolkit/dist/query").MutationDefinition<{
|
|
10
|
+
id: number;
|
|
11
|
+
body: {
|
|
12
|
+
commodity: Partial<CommodityV1_Entity>;
|
|
13
|
+
};
|
|
14
|
+
}, (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" | "trailerAvailabilities" | "locationsV1" | "locationsV1Accessorials" | "archerFiles" | "appointmentNotes" | "appointmentNoteTypes" | "shipconsV1" | "loadShipcons" | "appointmentIssueCategories" | "appointmentIssueSubcategories" | "personNames" | "nodeNames" | "driverNames" | "carrierNames" | "appointmentIssues" | "loadsV1" | "nmfcClasses" | "commoditiesV1" | "loadCommodities" | "loadQuoteAccessorials" | "quoteAccessorialsV1" | "loadAdjustmentsByLoad" | "loadAdjustmentsV1" | "userNotesV1" | "loadUserNotesV1", void, "salesApi">;
|
|
15
|
+
deleteCommodityV1: 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" | "trailerAvailabilities" | "locationsV1" | "locationsV1Accessorials" | "archerFiles" | "appointmentNotes" | "appointmentNoteTypes" | "shipconsV1" | "loadShipcons" | "appointmentIssueCategories" | "appointmentIssueSubcategories" | "personNames" | "nodeNames" | "driverNames" | "carrierNames" | "appointmentIssues" | "loadsV1" | "nmfcClasses" | "commoditiesV1" | "loadCommodities" | "loadQuoteAccessorials" | "quoteAccessorialsV1" | "loadAdjustmentsByLoad" | "loadAdjustmentsV1" | "userNotesV1" | "loadUserNotesV1", void, "salesApi">;
|
|
16
|
+
commodityForceUncomplete: 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" | "trailerAvailabilities" | "locationsV1" | "locationsV1Accessorials" | "archerFiles" | "appointmentNotes" | "appointmentNoteTypes" | "shipconsV1" | "loadShipcons" | "appointmentIssueCategories" | "appointmentIssueSubcategories" | "personNames" | "nodeNames" | "driverNames" | "carrierNames" | "appointmentIssues" | "loadsV1" | "nmfcClasses" | "commoditiesV1" | "loadCommodities" | "loadQuoteAccessorials" | "quoteAccessorialsV1" | "loadAdjustmentsByLoad" | "loadAdjustmentsV1" | "userNotesV1" | "loadUserNotesV1", boolean, "salesApi">;
|
|
17
|
+
}, "salesApi", "shipcons" | "files" | "quotes" | "loads" | "customers" | "loadAdjustments" | "locations" | "quoteAccessorials" | "tenders" | "holidays" | "trailerAvailabilities" | "locationsV1" | "locationsV1Accessorials" | "archerFiles" | "appointmentNotes" | "appointmentNoteTypes" | "shipconsV1" | "loadShipcons" | "appointmentIssueCategories" | "appointmentIssueSubcategories" | "personNames" | "nodeNames" | "driverNames" | "carrierNames" | "appointmentIssues" | "loadsV1" | "nmfcClasses" | "commoditiesV1" | "loadCommodities" | "loadQuoteAccessorials" | "quoteAccessorialsV1" | "loadAdjustmentsByLoad" | "loadAdjustmentsV1" | "userNotesV1" | "loadUserNotesV1", typeof import("@reduxjs/toolkit/dist/query/core/module").coreModuleName | typeof import("@reduxjs/toolkit/dist/query/react/module").reactHooksModuleName>;
|
|
18
|
+
export declare const useGetCommodityV1Query: 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" | "trailerAvailabilities" | "locationsV1" | "locationsV1Accessorials" | "archerFiles" | "appointmentNotes" | "appointmentNoteTypes" | "shipconsV1" | "loadShipcons" | "appointmentIssueCategories" | "appointmentIssueSubcategories" | "personNames" | "nodeNames" | "driverNames" | "carrierNames" | "appointmentIssues" | "loadsV1" | "nmfcClasses" | "commoditiesV1" | "loadCommodities" | "loadQuoteAccessorials" | "quoteAccessorialsV1" | "loadAdjustmentsByLoad" | "loadAdjustmentsV1" | "userNotesV1" | "loadUserNotesV1", CommodityV1_Entity, "salesApi">>, useGetCommoditiesV1Query: 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" | "trailerAvailabilities" | "locationsV1" | "locationsV1Accessorials" | "archerFiles" | "appointmentNotes" | "appointmentNoteTypes" | "shipconsV1" | "loadShipcons" | "appointmentIssueCategories" | "appointmentIssueSubcategories" | "personNames" | "nodeNames" | "driverNames" | "carrierNames" | "appointmentIssues" | "loadsV1" | "nmfcClasses" | "commoditiesV1" | "loadCommodities" | "loadQuoteAccessorials" | "quoteAccessorialsV1" | "loadAdjustmentsByLoad" | "loadAdjustmentsV1" | "userNotesV1" | "loadUserNotesV1", EntityState<CommodityV1_Entity>, "salesApi">>, useLazyGetCommoditiesV1Query: 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" | "trailerAvailabilities" | "locationsV1" | "locationsV1Accessorials" | "archerFiles" | "appointmentNotes" | "appointmentNoteTypes" | "shipconsV1" | "loadShipcons" | "appointmentIssueCategories" | "appointmentIssueSubcategories" | "personNames" | "nodeNames" | "driverNames" | "carrierNames" | "appointmentIssues" | "loadsV1" | "nmfcClasses" | "commoditiesV1" | "loadCommodities" | "loadQuoteAccessorials" | "quoteAccessorialsV1" | "loadAdjustmentsByLoad" | "loadAdjustmentsV1" | "userNotesV1" | "loadUserNotesV1", EntityState<CommodityV1_Entity>, "salesApi">>, useLazyGetCommodityV1Query: 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" | "trailerAvailabilities" | "locationsV1" | "locationsV1Accessorials" | "archerFiles" | "appointmentNotes" | "appointmentNoteTypes" | "shipconsV1" | "loadShipcons" | "appointmentIssueCategories" | "appointmentIssueSubcategories" | "personNames" | "nodeNames" | "driverNames" | "carrierNames" | "appointmentIssues" | "loadsV1" | "nmfcClasses" | "commoditiesV1" | "loadCommodities" | "loadQuoteAccessorials" | "quoteAccessorialsV1" | "loadAdjustmentsByLoad" | "loadAdjustmentsV1" | "userNotesV1" | "loadUserNotesV1", CommodityV1_Entity, "salesApi">>, useCreateCommodityV1Mutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/dist/query").MutationDefinition<{
|
|
19
|
+
commodity: Partial<CommodityV1_Entity>;
|
|
20
|
+
}, (args: any, api: import("@reduxjs/toolkit/dist/query").BaseQueryApi) => import("@reduxjs/toolkit/dist/query/tsHelpers").MaybePromise<import("@reduxjs/toolkit/dist/query/baseQueryTypes").QueryReturnValue<unknown, import("@reduxjs/toolkit/dist/query").FetchBaseQueryError, {}>>, "shipcons" | "files" | "quotes" | "loads" | "customers" | "loadAdjustments" | "locations" | "quoteAccessorials" | "tenders" | "holidays" | "trailerAvailabilities" | "locationsV1" | "locationsV1Accessorials" | "archerFiles" | "appointmentNotes" | "appointmentNoteTypes" | "shipconsV1" | "loadShipcons" | "appointmentIssueCategories" | "appointmentIssueSubcategories" | "personNames" | "nodeNames" | "driverNames" | "carrierNames" | "appointmentIssues" | "loadsV1" | "nmfcClasses" | "commoditiesV1" | "loadCommodities" | "loadQuoteAccessorials" | "quoteAccessorialsV1" | "loadAdjustmentsByLoad" | "loadAdjustmentsV1" | "userNotesV1" | "loadUserNotesV1", CommodityV1_Entity, "salesApi">>, useDeleteCommodityV1Mutation: 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" | "trailerAvailabilities" | "locationsV1" | "locationsV1Accessorials" | "archerFiles" | "appointmentNotes" | "appointmentNoteTypes" | "shipconsV1" | "loadShipcons" | "appointmentIssueCategories" | "appointmentIssueSubcategories" | "personNames" | "nodeNames" | "driverNames" | "carrierNames" | "appointmentIssues" | "loadsV1" | "nmfcClasses" | "commoditiesV1" | "loadCommodities" | "loadQuoteAccessorials" | "quoteAccessorialsV1" | "loadAdjustmentsByLoad" | "loadAdjustmentsV1" | "userNotesV1" | "loadUserNotesV1", void, "salesApi">>, useUpdateCommodityV1Mutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/dist/query").MutationDefinition<{
|
|
21
|
+
id: number;
|
|
22
|
+
body: {
|
|
23
|
+
commodity: Partial<CommodityV1_Entity>;
|
|
24
|
+
};
|
|
25
|
+
}, (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" | "trailerAvailabilities" | "locationsV1" | "locationsV1Accessorials" | "archerFiles" | "appointmentNotes" | "appointmentNoteTypes" | "shipconsV1" | "loadShipcons" | "appointmentIssueCategories" | "appointmentIssueSubcategories" | "personNames" | "nodeNames" | "driverNames" | "carrierNames" | "appointmentIssues" | "loadsV1" | "nmfcClasses" | "commoditiesV1" | "loadCommodities" | "loadQuoteAccessorials" | "quoteAccessorialsV1" | "loadAdjustmentsByLoad" | "loadAdjustmentsV1" | "userNotesV1" | "loadUserNotesV1", void, "salesApi">>, useCommodityForceUncompleteQuery: 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" | "trailerAvailabilities" | "locationsV1" | "locationsV1Accessorials" | "archerFiles" | "appointmentNotes" | "appointmentNoteTypes" | "shipconsV1" | "loadShipcons" | "appointmentIssueCategories" | "appointmentIssueSubcategories" | "personNames" | "nodeNames" | "driverNames" | "carrierNames" | "appointmentIssues" | "loadsV1" | "nmfcClasses" | "commoditiesV1" | "loadCommodities" | "loadQuoteAccessorials" | "quoteAccessorialsV1" | "loadAdjustmentsByLoad" | "loadAdjustmentsV1" | "userNotesV1" | "loadUserNotesV1", boolean, "salesApi">>, useLazyCommodityForceUncompleteQuery: 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" | "trailerAvailabilities" | "locationsV1" | "locationsV1Accessorials" | "archerFiles" | "appointmentNotes" | "appointmentNoteTypes" | "shipconsV1" | "loadShipcons" | "appointmentIssueCategories" | "appointmentIssueSubcategories" | "personNames" | "nodeNames" | "driverNames" | "carrierNames" | "appointmentIssues" | "loadsV1" | "nmfcClasses" | "commoditiesV1" | "loadCommodities" | "loadQuoteAccessorials" | "quoteAccessorialsV1" | "loadAdjustmentsByLoad" | "loadAdjustmentsV1" | "userNotesV1" | "loadUserNotesV1", boolean, "salesApi">>;
|
|
26
|
+
export default commodityV1Endpoints;
|
|
27
|
+
export declare const getCommoditiesV1Selectors: (params: Record<string, unknown> | void) => import("@reduxjs/toolkit").EntitySelectors<CommodityV1_Entity, {
|
|
28
|
+
salesApi: import("@reduxjs/toolkit/dist/query/core/apiState").CombinedState<{}, "shipcons" | "files" | "quotes" | "loads" | "customers" | "loadAdjustments" | "locations" | "quoteAccessorials" | "tenders" | "holidays" | "trailerAvailabilities" | "locationsV1" | "locationsV1Accessorials" | "archerFiles" | "appointmentNotes" | "appointmentNoteTypes" | "shipconsV1" | "loadShipcons" | "appointmentIssueCategories" | "appointmentIssueSubcategories" | "personNames" | "nodeNames" | "driverNames" | "carrierNames" | "appointmentIssues" | "loadsV1" | "nmfcClasses" | "commoditiesV1" | "loadCommodities" | "loadQuoteAccessorials" | "quoteAccessorialsV1" | "loadAdjustmentsByLoad" | "loadAdjustmentsV1" | "userNotesV1" | "loadUserNotesV1", "salesApi">;
|
|
29
|
+
salesKitState: import("redux").CombinedState<{
|
|
30
|
+
quote: import("..").QuoteState;
|
|
31
|
+
tender: import("../tender/tenderSlice").TenderState;
|
|
32
|
+
}>;
|
|
33
|
+
}>;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { createEntityAdapter, createSelector, } from "@reduxjs/toolkit";
|
|
2
|
+
import { salesApi } from "../api/salesApi";
|
|
3
|
+
const commoditiesV1Adapter = createEntityAdapter();
|
|
4
|
+
const commoditiesV1InitialState = commoditiesV1Adapter.getInitialState();
|
|
5
|
+
export const commodityV1Endpoints = salesApi.injectEndpoints({
|
|
6
|
+
endpoints: (build) => ({
|
|
7
|
+
getCommoditiesV1: build.query({
|
|
8
|
+
query: (args) => {
|
|
9
|
+
return {
|
|
10
|
+
url: `commodities`,
|
|
11
|
+
params: args,
|
|
12
|
+
routePrefix: "/v1",
|
|
13
|
+
};
|
|
14
|
+
},
|
|
15
|
+
transformResponse: (responseData) => {
|
|
16
|
+
return commoditiesV1Adapter.setAll(commoditiesV1InitialState, responseData);
|
|
17
|
+
},
|
|
18
|
+
providesTags: ["commoditiesV1"],
|
|
19
|
+
}),
|
|
20
|
+
getCommodityV1: build.query({
|
|
21
|
+
query: (id) => ({ routePrefix: "/v1", url: `commodities/${id}` }),
|
|
22
|
+
providesTags: (_result, _error, id) => [{ type: "commoditiesV1", id }],
|
|
23
|
+
}),
|
|
24
|
+
createCommodityV1: build.mutation({
|
|
25
|
+
query: (body) => ({
|
|
26
|
+
method: "POST",
|
|
27
|
+
body,
|
|
28
|
+
url: `commodities`,
|
|
29
|
+
routePrefix: "/v1",
|
|
30
|
+
}),
|
|
31
|
+
invalidatesTags: ["commoditiesV1", "loadCommodities"],
|
|
32
|
+
}),
|
|
33
|
+
updateCommodityV1: build.mutation({
|
|
34
|
+
query: (args) => ({
|
|
35
|
+
method: "PUT",
|
|
36
|
+
body: args.body,
|
|
37
|
+
url: `commodities/${args.id}`,
|
|
38
|
+
routePrefix: "/v1",
|
|
39
|
+
}),
|
|
40
|
+
invalidatesTags: (_result, _error, { id }) => [
|
|
41
|
+
{ type: "commoditiesV1", id },
|
|
42
|
+
"commoditiesV1",
|
|
43
|
+
{ type: "loadCommodities", id },
|
|
44
|
+
],
|
|
45
|
+
}),
|
|
46
|
+
deleteCommodityV1: build.mutation({
|
|
47
|
+
query: (id) => ({
|
|
48
|
+
method: "DELETE",
|
|
49
|
+
url: `commodities/${id}`,
|
|
50
|
+
routePrefix: "/v1",
|
|
51
|
+
}),
|
|
52
|
+
invalidatesTags: ["commoditiesV1", "loadCommodities"],
|
|
53
|
+
}),
|
|
54
|
+
commodityForceUncomplete: build.query({
|
|
55
|
+
query: (id) => ({
|
|
56
|
+
routePrefix: "/v1",
|
|
57
|
+
url: `commodities/${id}/force_uncomplete.json`,
|
|
58
|
+
}),
|
|
59
|
+
}),
|
|
60
|
+
}),
|
|
61
|
+
});
|
|
62
|
+
export const { useGetCommodityV1Query, useGetCommoditiesV1Query, useLazyGetCommoditiesV1Query, useLazyGetCommodityV1Query, useCreateCommodityV1Mutation, useDeleteCommodityV1Mutation, useUpdateCommodityV1Mutation, useCommodityForceUncompleteQuery, useLazyCommodityForceUncompleteQuery, } = commodityV1Endpoints;
|
|
63
|
+
export default commodityV1Endpoints;
|
|
64
|
+
export const getCommoditiesV1Selectors = (params) => {
|
|
65
|
+
return commoditiesV1Adapter.getSelectors((state) => {
|
|
66
|
+
return (createSelector(commodityV1Endpoints.endpoints.getCommoditiesV1.select(params), (commoditiesV1Result) => {
|
|
67
|
+
return commoditiesV1Result.data;
|
|
68
|
+
})(state) ?? commoditiesV1InitialState);
|
|
69
|
+
});
|
|
70
|
+
};
|
|
71
|
+
//# sourceMappingURL=commodityV1Endpoints.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commodityV1Endpoints.js","sourceRoot":"","sources":["../../../src/redux/commodityV1/commodityV1Endpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EAEnB,cAAc,GACf,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAG3C,MAAM,oBAAoB,GAAG,mBAAmB,EAAsB,CAAC;AACvE,MAAM,yBAA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