{"version":3,"sources":["utils/bugFixer.ts","api/api.ts","utils/utils.ts","utils/criteriaUtils.ts","store/MultiPort.ts","utils/langTexts.ts","signalR/connectedUsers.ts","store/Tutorial.ts","store/Account.ts","utils/constants.ts","styles/colors.ts","components/Button.tsx","components/CurrentUser.tsx","components/DialogModal.tsx","components/GcuDialog.tsx","components/Notificator.tsx","store/Document.ts","components/CenteredTabs.tsx","store/Tabs.ts","components/CenteredContentTabs.tsx","components/Documents.tsx","store/Scroll.ts","store/Error.ts","store/CarrierRatesPlatform.ts","utils/ratesUtils.ts","utils/mapping.ts","utils/routeUtils.ts","connects/selectionConnect.ts","security/userRights.ts","store/Criteria.ts","store/SellingRates.ts","store/Seed.ts","store/Selection.ts","components/FormField.tsx","security/UserIsAuthenticated.ts","styles/materialTheme.ts","components/NavigationMenu.tsx","components/PopperButton.tsx","utils/throttleHandler.ts","store/Location.ts","components/InputText.tsx","components/Select.tsx","components/LocationSelect.tsx","components/CarrierRatesPlatformStatus.tsx","components/ErrorDialog.tsx","components/HelpCenter.tsx","components/Layout.tsx","store/AskBooking.ts","store/AskRates.ts","store/ContactBox.ts","store/Transfer.ts","components/Tooltip.tsx","components/OfferRatesName.tsx","store/Tables.ts","components/Table.tsx","components/Loader.tsx","components/MultiPortOffers.tsx","components/MultiPortBox.tsx","components/OfferPrice.tsx","components/OfferScope.tsx","components/OfferContact.tsx","components/OfferContacts.tsx","components/ChargeListDisplay.tsx","components/RouteServiceSelect.tsx","components/ExpansionPanel.tsx","components/CarrierOffer.tsx","components/FloatingButton.tsx","components/DatePicker.tsx","components/CheckBox.tsx","components/InputNumber.tsx","components/SelectionFeedbackForm.tsx","components/SelectionFeedBack.tsx","components/ContactBox.tsx","components/SelectionOffers.tsx","components/Slider.tsx","components/CriteriaSizeType.tsx","components/ChargeCriteriaInput.tsx","components/LocationSelectSearch.tsx","components/CriteriaLocationSelect.tsx","store/QuotationContact.ts","components/QuotationContactForm.tsx","components/ComboBox.tsx","components/QuotationFfContactDialog.tsx","components/QuotationClientContactDialog.tsx","components/Autocomplete.tsx","components/QuotationInformationForm.tsx","utils/screenUtils.ts","components/WeightPicker.tsx","components/CriteriaForm.tsx","components/SelectionFilter.tsx","components/SelectionCriteria.tsx","store/Stats.ts","components/OfferRatesOffer.tsx","components/DDSetTable.tsx","components/OperationalAccuracy.tsx","utils/keyboard.ts","components/Freetime.tsx","components/ChargeSetAvailabilty.tsx","components/OfferTable.tsx","components/FirmNewses.tsx","utils/errorMessageHandler.ts","components/Popper.tsx","components/SelectionOffersTable.tsx","components/OfferReminder.tsx","components/AskBooking.tsx","components/SendEmail.tsx","components/AskRatesByEmail.tsx","components/AskRates.tsx","components/AskBookingByEmailForm.tsx","components/AskBookingByEmail.tsx","components/TransferOffer.tsx","components/RequestStatsPriceForm.tsx","components/Chart.tsx","components/CriteriaLclForm.tsx","components/StatsPriceDialog.tsx","components/ScrollToTop.tsx","components/Switch.tsx","components/SelectionCriteriaAdvanced.tsx","store/RatesFetcher.ts","components/MfaPopup.tsx","components/Selection.tsx","components/Criteria.tsx","components/CriteriaLcl.tsx","styles/baseStyles.ts","components/LoginForm.tsx","components/Login.tsx","components/AccountEditForm.tsx","components/PasswordToggle.tsx","components/AccountEditPasswordForm.tsx","components/AccountEditQuotationClientSettingsForm.tsx","components/AccountSettings.tsx","store/RatesOffer.ts","components/ModeratorRatesOfferEditForm.tsx","styles/moderatorStyles.ts","components/ModeratorRatesOffers.tsx","store/WorkDocuments.ts","components/ModeratorDocumentInfoEditForm.tsx","api/emptyApi.ts","api/rtkApi.ts","components/PriceListStatus.tsx","components/ModeratorWorkDocuments.tsx","utils/enumUtils.ts","components/ModeratorWokrdocumentsUploadForm.tsx","components/ModeratorSearchUploadEntitiesForm.tsx","components/ModeratorWorkDocumetsUpload.tsx","store/FirmNews.ts","components/FirmNewsForm.tsx","components/ModeratorFirmNews.tsx","store/FirmDocument.ts","components/ModeratorFirmDocumentEditForm.tsx","components/ModeratorFirmDocument.tsx","store/AgentPortal.ts","components/ModeratorChargeAgentForm.tsx","components/ModeratorContactAgentForm.tsx","components/ModeratorAgentSearchDetails.tsx","components/ModeratorAgentPortal.tsx","store/ForgotPassword.ts","store/Users.ts","components/ModeratorUsersForm.tsx","components/ModeratorUsers.tsx","components/SellingRatesForm.tsx","components/ModeratorSellingRates.tsx","store/InlandRatesOffer.ts","components/InlandRatesOfferForm.tsx","components/ModeratorInlandRatesOffer.tsx","store/QuotationSettings.ts","components/QuotationSettingsForm.tsx","components/ModeratorCompanySettings.tsx","store/CarrierCarrierRating.ts","store/CarrierRating.ts","components/RatesOfferSelect.tsx","components/CarrierCarrierRatingForm.tsx","components/CarrierRatingForm.tsx","components/CarrierRatings.tsx","components/CarrierCarrierRatings.tsx","components/ModeratorCarrierCarrierRating.tsx","store/CarrierRatesOfferInformation.ts","components/CarrierRatesOfferInformationForm.tsx","components/CarrierRatesOfferInformation.tsx","components/Moderator.tsx","store/History.ts","components/HistoryOfferMemo.tsx","components/HistorySearchCriteria.tsx","store/MultiPortHistory.ts","components/HistoryMultiPort.tsx","components/History.tsx","store/Quotation.ts","styles/quotationStyles.ts","components/QuotationFee.tsx","components/QuotationTemplateForm.tsx","components/QuotationCreateTemplateDialog.tsx","components/QuotationPreviewTemplateDialog.tsx","components/QuotationCharge.tsx","components/QuotationApplicationCharges.tsx","components/SplitButton.tsx","components/QuotationRates.tsx","components/QuotationTemplatesDialog.tsx","components/Quotation.tsx","components/ForgotPassword.tsx","components/ResetPassword.tsx","store/QuotationChrono.ts","components/QuotationChronoFilterForm.tsx","components/QuotationChronoDetailsDialog.tsx","components/QuotationChronoCommentDialog.tsx","components/QuotationChrono.tsx","store/InlandCriteria.ts","components/InlandCriteriaForm.tsx","components/InlandCriteria.tsx","store/InlandSelection.ts","components/InlandOfferRatesOffer.tsx","components/InlandOfferTable.tsx","components/InlandCarrierOffer.tsx","components/InlandSelectionOffers.tsx","components/InlandSelectionFilterCriteria.tsx","components/InlandSelectionFilter.tsx","components/InlandSelectionCriteria.tsx","components/InlandSelectionOffersTable.tsx","components/InlandSelection.tsx","store/CarrierRatesSettings.ts","components/CarrierRatesSettingsForm.tsx","components/CarrierRatesSettings.tsx","store/RouteRatesPlatformData.ts","components/RouteRatesPlatformDataForm.tsx","components/RouteRatesPlatformDataSettings.tsx","app/hooks.ts","slices/ratesExtraction.ts","components/Form/FormField.tsx","components/RatesExtractionForm.tsx","components/RatesExtractionDownload.tsx","components/RatesExtraction.tsx","security/UserIsNotAuthenticated.ts","security/UserIsModerator.ts","App.tsx","registerServiceWorker.ts","utils/datatypeUtils.ts","store/OkargoHub.ts","store/index.ts","middlewares/actionLogger.ts","store/configureStore.ts","index.tsx"],"names":["tasksUtils","TasksUtils","_classCallCheck","taskList","_createClass","key","value","this","_this","Promise","all","then","catch","task","push","addTask","BASE_PATH","replace","BaseAPI","fetch","arguments","length","undefined","isomorphicFetch","basePath","AccountApiFetchParamCreator","options","urlObj","url","fetchOptions","assign","method","contentTypeHeader","headers","params","body","JSON","stringify","query","AccountApiFp","fetchArgs","response","status","json","AccountApi","_BaseAPI","_inherits","_super","_createSuper","apply","AgentApiFetchParamCreator","AgentApiFp","AgentApi","_BaseAPI2","_super2","CarrierCarrierRatingApiFetchParamCreator","CarrierCarrierRatingApiFp","CarrierCarrierRatingApi","_BaseAPI3","_super3","CarrierRatesOfferInformationApiFetchParamCreator","CarrierRatesOfferInformationApiFp","CarrierRatesOfferInformationApi","_BaseAPI4","_super4","CarrierRatesSettingsApiFetchParamCreator","CarrierRatesSettingsApiFp","CarrierRatesSettingsApi","_BaseAPI5","_super5","CarrierRatingApiFetchParamCreator","CarrierRatingApiFp","CarrierRatingApi","_BaseAPI6","_super6","CriteriaApiFetchParamCreator","CriteriaApiFp","CriteriaApi","_BaseAPI7","_super7","DocumentApiFetchParamCreator","DocumentApiFp","DocumentApi","_BaseAPI8","_super8","DownloadApiFetchParamCreator","DownloadApiFp","DownloadApi","_BaseAPI9","_super9","ExportApiFetchParamCreator","ExportApiFp","ExportApi","_BaseAPI10","_super10","HistoryApiFetchParamCreator","HistoryApiFp","HistoryApi","_BaseAPI12","_super12","InlandCriteriaApiFetchParamCreator","InlandCriteriaApiFp","InlandCriteriaApi","_BaseAPI15","_super15","InlandRatesOfferApiFetchParamCreator","InlandRatesOfferApiFp","InlandRatesOfferApi","_BaseAPI16","_super16","InlandSelectionApiFetchParamCreator","InlandSelectionApiFp","InlandSelectionApi","_BaseAPI17","_super17","LocationApiFetchParamCreator","LocationApiFp","LocationApi","_BaseAPI18","_super18","LogApiFetchParamCreator","LogApiFp","LogApi","_BaseAPI19","_super19","ModeratorApiFetchParamCreator","ModeratorApiFp","ModeratorApi","_BaseAPI20","_super20","MultiPortApiFetchParamCreator","MultiPortApiFp","MultiPortApi","_BaseAPI21","_super21","QuotationApiFetchParamCreator","QuotationApiFp","QuotationApi","_BaseAPI22","_super22","QuotationContactApiFetchParamCreator","QuotationContactApiFp","QuotationContactApi","_BaseAPI23","_super23","QuotationSettingsApiFetchParamCreator","QuotationSettingsApiFp","QuotationSettingsApi","_BaseAPI24","_super24","RatesFetcherApiFetchParamCreator","RatesFetcherApiFp","RatesFetcherApi","_BaseAPI25","_super25","RatesOfferApiFetchParamCreator","RatesOfferApiFp","RatesOfferApi","_BaseAPI26","_super26","RouteRatesPlatformDatasApiFetchParamCreator","RouteRatesPlatformDatasApiFp","RouteRatesPlatformDatasApi","_BaseAPI27","_super27","SeedApiFetchParamCreator","SeedApiFp","SeedApi","_BaseAPI28","_super28","SelectionApiFetchParamCreator","SelectionApiFp","SelectionApi","_BaseAPI29","_super29","SellingRatesApiFetchParamCreator","SellingRatesApiFp","SellingRatesApi","_BaseAPI30","_super30","StatsApiFetchParamCreator","StatsApiFp","StatsApi","_BaseAPI31","_super31","TutorialApiFetchParamCreator","TutorialApiFp","TutorialApi","_BaseAPI32","_super32","UsersApiFetchParamCreator","UsersApiFp","UsersApi","_BaseAPI33","_super33","WorkdocumentsUploadApiFetchParamCreator","WorkdocumentsUploadApiFp","WorkDocumentsUploadApi","_BaseAPI34","_super34","dictionnaryToArray","entities","array","_i","_Object$keys","Object","keys","id","Number","parseInt","getCarrierOfferKey","carrierOffer","_carrierOffer$routeCo","_carrierOffer$chargeS","_carrierOffer$chargeS2","concat","carrierId","routeConfigs","routeId","chargeSet","chargeSetId","_","sortBy","x","routeConfigId","map","join","getLocationName","location","locationType","name","country","port","inlandPlaceZipCodes","getPort","portsInGroup","getSubscriptionName","subscription","subscriptionType","agency","company","carrier","getFirmName","firm","getQuotationContactName","quotationContact","type","firstName","lastName","email","getSubscription","client","subscriptions","sort","a","b","subscriptionId","firmType","Guid","c","r","Math","random","toString","Group","members","groupBy","list","func","res","forEach","o","groupName","group","find","gp","getChargeAmount","charge","unitNumber","max","minUnit","amount","unit","goToFormModel","formModel","toLowerCase","window","open","action","parameters","p","encodeURIComponent","reduce","getRatesStyle","criteria","lastRates","dateEnd","dateBegin","routeSuggestedCalcId","firmId","ratesFetchedRecordId","getQuotationLink","quotation","code","departId","mode","previousVersionId","quotationId","isClient","document","createElement","scrollToAppTop","setTimeout","getElementById","scrollTo","top","generateHash","criteriaModel","md5","Md5","appendStr","end","getCriteriaCode","getState","criteriaLoaded","resolve","api","Api","reject","createCriteria","model","credentials","error","getCriteria","getCurrentMultiPort","requestTime","dispatch","multiPort","fetchTask","currentMultiPort","result","Notifications","message","title","position","actionCreators","requestCurrentMultiPort","requestCreateMultiPortOffers","createMultiPortOffers","addOfferState","selection","criteriaCode","addOffers","_objectSpread","multiPortOffers","payload","requestDeleteMultiPortOffer","multiPortOfferId","deleteOfferState","deleteOffer","requestDeleteMultiPortInstance","multiPortInstanceId","deleteMultiPortInstance","multiPortInstance","console","requestDownloadMultiPort","downloadingOffersState","downloadMultiPorts","blob","fileName","Moment","format","Download","MimeTypes","log","requestUpdateMultiPort","updateMultiPortState","updateMultiPort","newName","toggleMultiPortOpened","updateMultiPortName","toggleMultiPortVisible","isLoaded","isLoading","Date","getTime","unloadedState","isOpen","isVisible","deleteMultiPortState","langTexts","getText","text","param","RegExp","upperCaseFirstLetter","substring","toUpperCase","connection","requestTutorial","tutorials","err","parts","isEnabled","updateState","requestCurrentUser","account","getCurrentUser","data","currentUser","SignalR","withUrl","WebSockets","build","onclose","on","platformCode","start","_getState$account$cur","_getState$account$cur2","_getState$account$cur3","send","clientModel","connectUserHub","requestLogin","login","returnPath","createToken","tokenResult","token","change","SubmissionError","_error","MultiPortStore","requestEditClient","editClient","requestEditQuotationClientSettings","editQuotationClientSettings","quotationClientSettings","requestEditPassword","editPasswordModel","editPassword","requestAcceptGcu","acceptGcuState","acceptGcu","success","selectCurrency","currencyId","editCurrency","selectInlandCurrency","editInlandCurrency","selectApplicationLanguage","languageId","Cookies","seed","languages","expires","add","toDate","reload","openNavigationMenu","closeNavigationMenu","logout","requestUpdateDefaultQuotationContactId","quotationContactId","editDefaultQuotationContact","defaultQuotationContactId","isMenuOpen","forgotPasswordState","tokenSent","baseColors","frontColors","bgColors","quotColors","backgroundColor","color","colors","main1","main2","main3","main4","main5","main6","main7","main8","main9","revertColors","styled","Button","background","border","Colors","borderRadius","boxShadow","height","padding","textTransform","fontWeight","MozBoxShadow","WebkitBoxShadow","CurrentUser","_React$Component","get","props","filter","agencyId","currencies","cu","_this2","React","style","display","flexDirection","alignItems","marginLeft","flex","src","firmLogoId","objectFit","maxWidth","maxHeight","NavLink","to","textDecoration","paddingTop","onClick","e","preventDefault","connect","state","AccountState","DialogModel","call","Dialog","PaperProps","elevation","fullWidth","BackdropProps","opacity","onClose","reason","onRequestClose","Close","cursor","contentStyle","children","GcuDialog","isFr","langId","DialogModal","canOpen","gcuAccepted","contentLabel","hideClose","bottom","left","right","className","disabled","cgu","AccountStore","NotificationItem","DefaultStyle","zIndex","Notificator","notifications","requestFirmDocuments","getFirmDocuments","firmDocuments","downloadFirmDocument","firmDocumentId","downloadStates","firmDocument","fd","downloadDocument","downloadTos","lang","downloadGuideCrawlers","downloadGuideQuotation","downloadGuideOcq","downloadApp","downloadQuickstart","downloadChargesGlossary","downloadPortsAndZones","openFirmDocument","closeFirmDocument","requestDownloadWorkdocumentDocument","workdocumentId","downloadWorkodocumetDocument","openHelpCenter","closeHelpCenter","isHelpCenterOpen","CenteredTabs","Paper","Tabs","selected","onChange","val","indicatorColor","textColor","centered","selectTab","namespace","selectedTab","CenteredContentTabs","guid","tabKey","firstNotDisabled","indexOf","tabState","defaultTab","_centered","item","index","Tab","icon","titleIcon","label","hidden","tabContent","tabs","TabsStore","containerStyle","elementStyle","hover","justifyContent","fontSize","textElementStyle","textAlign","width","folderUnclickedStyleOkargo","borderColor","borderBottom","borderLeftWidth","paddingBottom","docStyle","borderLeft","borderWidth","borderBottomStyle","borderRightColor","borderRight","alignContent","flexWrap","minHeight","iconStyle","Document","onPropsUpdate","nextProps","marginRight","borderTop","tabName","FolderIcon","DescriptionIcon","y","carriers","DocumentStore","scrollPosition","requestReportError","logError","lastAction","triggerError","errorInfo","_action","_actionLog","errorParsed","actionLog","getLog","actions","timestamp","reportSent","requestCarrierRatesPlatform","originPortId","carrierRatesPlatform","statusSearch","originPort","locationId","destinationPortId","destinationPort","carrierRatesPlatformsStatus","currentStatusSearch","openCarrierRatesPlatformStatus","closeCarrierRatesPlatformStatus","updateCarrierRatesPlatformOrigin","updateCarrierRatesPlatformDestination","carrierRatesPlatforms","matchExactChriteria","chargeCriteria","searchValues","every","i","includes","RatesCalculator","sizeTypes","mainchargeIds","sizeTypeId","containerType","weight","criteriaSize","minWeight","maxWeight","criteriaKgs","convertToKgs","weightUnit","flags","some","tare","loadingCharge","application","unLoadingCharge","prepaidCharge","paymentOption","collectCharge","cbm","ton","chargeModifications","dummySize","findChargesToApply","sizeType","charges","findChargeSetCharges","frts","ch","chargeType","chargeMatchUnit","chargeMatchWeight","chargeNameId","chargeCriterias","surCharges","chargeIsSelected","valueCharges","och","sourceChargeNameId","chargeNamesIdsWithExactCriteria","chargesToApply","getModifiedCharges","xs","getLclUnit","reverse","findBlChargesToApply","cm","modificationType","_this3","modifiedCharges","appliedChargeModifications","originalChargeId","chargeId","modificationToApply","margin","sourceCharge","findChargesToApplybySizeId","teu","_this4","currencyResultSet","CurrencyResultSet","CurrencyResult","source","_this5","criteriaSizeTypes","cst","number","addSet","calculatePrice","currencyResults","currencyResult","mult","existingCr","cr","currency","_this6","sum","totalUsd","currencyValue","total","chargeAgentsToMoficiations","chargeAgents","ca","chargeAgentType","getSelectedDepart","carrierOfferState","_getRouteConfig","departs","getRouteConfig","selectedDepartId","routeSourceValue","sortedRcs","lastUpdate","routeServiceId","selectedServiceId","getFilterModel","filterModel","getCarrierOfferStates","carrierOfferStates","getSizeTypes","getCurrencies","getCarriers","getCarrierOffersPreFiltered","createSelector","carrierOffers","ratesCalculator","containerPrice","includeCarrierRates","getCarrierOffersFiltered","carrierOffersFiltered","test","co","_filterModel$ratesTyp","_filterModel$ratesTyp2","_filterModel$ratesTyp3","_filterModel$ratesTyp4","_filterModel$ratesTyp5","minDate","maxDate","allInUsd","calculateAllIn","routeConfig","transitTime","SelectionStore","carriersSelected","hideNoRates","maxAllIn","minRatesDate","maxRatesDate","ratesType","ratesOffer","ratesTypeName","shortName","toLocaleLowerCase","commodity","nac","carrierReference","reference","maxTransitTime","transShipments","maxTransShipment","dp","minEtaDate","eta","maxEtaDate","filterCarrierOffers","_y$routeConfigs$","_x$routeConfigs$","_co$routeConfigs","filteredRc","rc","onlyShowBestTt","_co$routeConfigs2","getCarrierOfferSorted","MAX_SAFE_INTEGER","_getRouteConfig$trans","_getRouteConfig$trans2","_co$chargeSet$departs","ratesPriceType","etd","st1","crt","st2","st3","st4","getFilterOptions","minAllIn","minTransitTime","carrieroffersPriced","carrierOffersByPrice","allIn","floor","ceil","carrierOffersByValidity","routeconfigs","transitTimes","carrierOffersByEta","Array","getGroupedCarrierOffers","byRatesOffer","ratesOfferId","canUseSuggested","suggestedRates","canUseCarrierRates","carrierRates","companyGroup","canModerateRates","allowRatesControl","allowRatesManagement","canModerateInformations","allowInformUser","canUseQuotation","allowQuotation","Source","formSelector","formValueSelector","requestCriteria","requestRecentCriteria","recentCriteria","setCriteria","selectLocation","updateOriginShippingType","updateDestinationShippingType","requestCreateCriteria","updateSizeTypeNumber","updateContainerCriteria","criteriaForSize","selectLoadingcharge","selectUnLoadingcharge","selectPrepaidcharge","selectCollectcharge","selectDateBegin","date","selectDateEnd","toggleAdvContainer","selectPriceByContainer","selectContainerType","st","updateChargeCriteria","toggleAdvLocation","selectSurroundingOrigin","selectSurroundingDestination","toggleAdvDate","selectLastRates","selectAllMarket","selectSuggested","selectCarrierRates","updateShowFreeTime","setDefaultCriteria","resetCriteria","setCriteriaRecent","criteriaGo","updateIncludeSellingRates","updateTon","updateCbm","getDefaultCriteria","rcuSubscription","isAgent","defaultLoading","defaultUnLoading","suggested","defaultSuggested","defaultLastRates","defaultContainerPrice","showFreeTime","defaultFreetime","criteriaSubscriptions","allMarkets","defaultAllMarkets","defaultCarrierRates","criteriaHash","originShippingType","destinationShippingType","origin","destination","utc","startOf","advContainerOpened","advDateOpened","advLocationOpened","recentCriteriaState","criterias","requestSelectionSellingRates","getByTraffic","sellingRates","sellingRateses","requestSellingRates","getAll","requestCreateSellingRates","create","requestUpdateSellingRates","update","requestDeleteSellingRates","sellingRatesId","_delete","sellingRatesUpdateSelected","selectionSellingRates","createState","deleteState","selectionSellingRatesState","requestSeed","getSeed","chargeNames","carrierGroups","portsZones","markets","inlandCarriers","countries","servicesOptions","optionsIsLoading","optionsRequestTime","isCarriersLoading","_regeneratorRuntime","exports","Op","prototype","hasOwn","hasOwnProperty","defineProperty","obj","desc","$Symbol","Symbol","iteratorSymbol","iterator","asyncIteratorSymbol","asyncIterator","toStringTagSymbol","toStringTag","define","enumerable","configurable","writable","wrap","innerFn","outerFn","self","tryLocsList","protoGenerator","Generator","generator","context","Context","makeInvokeMethod","tryCatch","fn","arg","ContinueSentinel","GeneratorFunction","GeneratorFunctionPrototype","IteratorPrototype","getProto","getPrototypeOf","NativeIteratorPrototype","values","Gp","defineIteratorMethods","_invoke","AsyncIterator","PromiseImpl","previousPromise","callInvokeWithMethodAndArg","invoke","record","__await","unwrapped","Error","doneResult","delegate","delegateResult","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","done","methodName","return","TypeError","info","resultName","next","nextLoc","pushTryEntry","locs","entry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","resetTryEntry","completion","reset","iterable","iteratorMethod","isNaN","displayName","isGeneratorFunction","genFun","ctor","constructor","mark","setPrototypeOf","__proto__","awrap","async","iter","object","pop","skipTempReset","prev","charAt","slice","stop","rootRecord","rval","exception","handle","loc","caught","hasCatch","hasFinally","finallyEntry","complete","finish","thrown","delegateYield","min","getTableTransitTime","_carrierOffer$chargeS3","_carrierOffer$chargeS4","_carrierOffer$chargeS6","_carrierOffer$chargeS5","searchSelection","selectionApi","criteriaApi","ratesFetcherApi","getAvailableRatesFetchers","_ref","_asyncToGenerator","_callee3","pols","pods","reqTime","requestedFetchers","tasks","promises","sleep","_loop","_context4","pol","_ref2","_callee","pod","_context","getOnlineCarrierOffers","ratesFetchers","fetcherErrors","errorByFetcherCode","carrierRatesPlatformId","_x2","ms","asyncRequests","_context3","_ref3","_callee2","j","_context2","_x","currentState","requestSeedCarriers","includeSellingRates","errorMessage","goToCriteria","criteriaType","goToQuotation","carrierOfferKey","CriteriaUtils","time","requestSendAgentQuotation","sendQuotationState","_getSelectedDepart","sendAgentQuotation","requestDownloadRatesDocument","downloadWorkDocuments","filterUpdateMaxAllIn","filterUpdateMaxTransShipment","filterToggleCarrierGroup","carrierGroupId","filterSelectAllCarrier","carrierIds","filterSelectCarrier","filterSelectCarrierGroup","filterUpdateMaxTransitTime","filterUpdateEtaDate","filterUpdateRatesDate","filterUpdateRatesType","filterSelectCarrierOffer","filterSelectAllCarrierOffer","filterSelectFilterSort","filterUpdateRatesTypeName","filterSelectHideNoRates","filterSelectByRatesOffer","filterSelectTranshipment","selectCarrierOffer","carrierOfferId","selectCarrierOfferDepart","updateCarrierOfferShowAllDeparts","selectCarrierOfferService","toggleCarrierOfferDetails","toggleCarrierOfferBlDetails","toggleCarrierOfferLclDetails","toggleCarrierOfferContacts","openCarrierOfferGroup","closeCarrierOfferGroup","toggleCarrierOfferSizeTypeDetails","toggleCarrierOfferDocumentInfoDetails","documentInfoId","toggleCarrierOfferRatesDetails","toggleCarrierOfferRatesOfferDescription","selectPage","page","resetFilter","filterOptions","defaultHideNoRates","openFirmNews","firmNewsId","closeFirmNews","requestGoToCarrierWebSite","_carrierOffer$chargeS7","goToWebSiteState","getCarrierForm","from","form","toggleAdvCriteria","updateOnlyShowBestTt","resetOptions","selectionConnect","unloadedFilterModel","Criteria","updateFilterCarriersOpened","openAdvContainer","closeAdvContainer","carrierGroupsOpened","carrierOffersSelected","byTransShipment","carriersOpened","errorMessages","warningMessages","carrierRatesOffersCache","advCriteriaOpened","selectedCarrierOfferId","isCarrierRatesLoading","isSchedulesLoading","firmNewses","carrierRatings","errors","firmNewsesState","currentPage","carrierRatesStates","unloadedCarrierOfferState","blDetailsOpened","lclDetailsOpened","detailsOpened","ratesDetailsOpened","sizeTypeDetailsOpened","documentInfoDetailsOpened","contactsOpened","ratesOfferDescriptionOpened","groupOpened","downloadDocumentState","isAuthenticated","expiration","connectedRouterRedirect","redirectPath","authenticatedSelector","wrapperDisplayName","createTheme","palette","primary","main","secondary","typography","fontFamily","linkStyle","outline","NavigationMenu","isFclOpen","isLclOpen","isInlandOpen","inlandCriteria","so","allowLcl","allowInland","allowRatesExtraction","List","onNavigation","ListItem","button","ListItemText","hasFclSearch","setState","ExpandLess","ExpandMore","Collapse","in","timeout","unmountOnExit","paddingLeft","component","disablePadding","enabledLcl","stopPropagation","hasLclSearch","enabledInland","hasInlandSearch","pickup","dropoff","enabledQuotation","enableRatesExtraction","allowApiBlacklistManagement","allowQuotationManagement","allowAgentManagement","InfoIcon","verticalAlign","CarrierRatesPlatformStore","PopperButton","btnRef","divRef","ref","buttonStyle","buttonContent","buttonOpenedContent","Popper","popperStyle","disablePortal","anchorEl","container","windowContainer","paperStyle","ThrottleHandler","throttles","throttle","callback","limit","clearTimeout","handler","levenshtein","require","requestSearchByAddress","address","searchLocationsByAddress","locationDistances","initSelectState","toggleSearchLocationOpened","updateSearchAddress","requestLocationSearch","region","term","inputText","searchLocation","locations","xi","updateLocationInputText","locationEmptyOptions","locationUpdateRegion","unLoadedLocationSelectState","center","lat","lng","addressFound","TextField","inputProps","variant","CustomPaper","AutocompletestyledSelect","Autocomplete","disableUnderline","StyledMenuItem","withStyles","root","MenuItem","StyledSelect","Select","InputProps","_default","temp","IdToLabel","search","getOptionLabel","option","_option$label","getOptionSelected","minWidth","size","PaperComponent","renderInput","nullLabel","standard","SelectDisplayProps","inputStyle","displayEmpty","target","opt","optionComponent","LocationSelect","newGuid","inputKey","Throttle","locationSearchType","locationStates","defaultRegion","locationText","marginBottom","isPopupOpen","onBlur","handleChange","inputValue","onInputChange","handleInputChange","InputText","endAdornment","CircularProgress","popupIcon","borderBottomLeftRadius","borderBottomRightRadius","overflowY","ListboxComponent","overflow","renderOption","paddingRight","getIcon","LocationStore","labelStyle","CarrierRatesPlatformStatus","rowGap","authenticationType","marginTop","gridTemplateRows","gridTemplateColumns","gridRow","gridColumn","whiteSpace","columnGap","ErrorStore","HelpCenter","href","PlayArrowIcon","ScrollableDiv","scrollableArea","Styledoption","LangAndCurrency","BoldAndPointer","Dropdown","Layout","langIsOpen","currencyIsOpen","pathname","startsWith","errorIsOpen","ErrorDialog","ThemeProvider","theme","order","supported","isInland","inlandCurrencyId","Menu","onScroll","h","sh","scrollValue","clientHeight","updateScrollPosition","isDocumentOpen","Documents","carrierRatesPlaformStatusIsOpen","currenUser","scroll","router","selectAskBookingType","openAskBooking","closeAskBooking","toggleAskBookingByEmailOpen","nextStep","prevStep","setAskBookingByEmailModel","updateTo","updateCc","updateSubject","updateContent","requestSendEmail","askBooking","depart","askBookingState","sendAskBooking","subject","content","initEmail","companyName","askBookingModel","askBookingByEmailModel","bodyParams","shipperName","consigneeName","poNumber","incoterm","vessel","containers","hazardous","isHazardous","cargoWeight","cargoDescription","madDate","madLocation","deadline","routingInstruction","chargesList","phone1","phone2","bodyContent","contacts","email1","email2","cc","requestGoToCarrierBooking","goToBookingState","getBookingForm","requestProcessDeepLink","processDeepLink","deepLink","uriResult","uri","isAskByEmailOpen","step","getEmailTo","openEmailAskRates","carrierSelected","askRates","closeEmailAskRates","openAskRates","closeAskRates","toggleAskRatesByEmailOpen","setCarrierSelected","askRatesState","sendAskRates","emailIsOpen","openContactBox","closeContactBox","closeFeeback","openFeedback","clienActionId","clientActionId","uncollapseFeedback","requestSetFeedback","contactBox","feedback","setSatisfied","level","sentLevel","isCollapsed","transferUpdateIdentitifcation","transferUpdateAdditionalInfo1","transferUpdateAdditionalInfo2","requestSendMemo","offerSelection","transfer","createMemoState","sendMemo","requestDownloadMemo","downloadMemo","requestExportOffer","offer","transferOffer","identification","additionalData1","additionalData2","autoDismiss","requestExportOfferToTms","exportToTms","openTransferData","closeTransferData","exportOfferState","exportOfferToTmsState","StyledTooltip","Tooltip","OkTooltip","visible","onlySourceTrigger","disableHoverListener","PopperProps","placement","interactive","overlay","enterDelay","showDelay","leaveDelay","hideDelay","InformationWarning","offerInformations","trigger","Warning","OfferRatesName","_React$Component2","_this$props$chargeSet","_this$props$ratesOffe","_this$props$ratesOffe2","_this$props$ratesOffe3","chargeSetRef","isFak","references","isDoor","iconPath","focused","hideWarning","ratesName","unloadedTableState","filtered","rowsOpened","EnhancedTableHead","col","autoSort","sorted","TableHead","TableRow","headTrStyle","TableCell","borderTopLeftRadius","align","columns","borderTopRightRadius","headerAlign","sortDirection","sortingDisabled","header","TableSortLabel","active","IconComponent","ArrowDropDown","direction","onThClick","updateSorted","StyledTable","Table","OkTable","tables","tableKey","TablesStore","columnSort","rowsPerPage","startRow","showPagination","endRow","baseSortData","accessor","TableContainer","hasSubRows","subRows","TableBody","d","rowKey","dataKey","onBodyTrClick","bodyTrStyle","scope","updateRowOpened","colIndex","cell","subData","subRowKey","SubdirectoryArrowRight","noDataText","loadingComponent","TablePagination","rowsPerPageOptions","showPageSizeOptions","count","onPageChange","updatePage","onRowsPerPageChange","updateRowsPerPage","updateFiltered","Loader","hideBackground","visibleProps","hiddenProps","svgStyle","messageStyle","emptyArray","MultiPortOffers","requestDowloadMultiPort","isClearing","isDownloading","downloadMultiPort","clearMultiPort","multiPortOffer","round","_d$routeConfig","_d$routeConfig2","lo","requesDeleteMultiPortOffer","MultiPortBox","ShoppingCart","requesUpdateMultiPortOffer","_this3$props$multiPor","IncludedWarning","applicationHidden","altRatesCalculator","getApplicationHiddenIncluded","OfferPrice","chargesBl","sellingRatesValues","frt","sellingMargin","invalidated","inline","calculateContainerPrice","hasSellingRates","sellingRatesAmountUsd","alignSelf","OfferScropeUploaded","Person","isNew","OfferScropePrivate","InsertDriveFile","OfferScropePublic","_React$Component3","Public","OfferScropeOnline","_React$Component4","RssFeed","OfferScropeSuggested","_React$Component5","EmojiObjects","OfferScope","_React$Component6","carrierUrl","onlineQuoteLink","ocqPlatformName","workDocumentClientUploadId","receptionDate","diff","creationDate","description","contentStyleEmail2","contentStylePhone2","OfferContact","listStyle","contact","comment","OfferContacts","selectedDepart","privateContacts","contactId","publicContacts","getPaymentOptionLabel","chargeLabelStyle","fieldStyle","ChargeDisplay","showMinUnit","ratesUnitType","hasMultipleUnits","showUnit","unitForCalculation","sellingRatesValue","ChargeListDisplay","RouteServiceSelect","routeService","selectRouteSerice","StyledExpansionPanel","Accordion","StyledExpansionPanelSummary","AccordionSummary","StyledExpansionPanelDetails","AccordionDetails","ExpensionPanel","expanded","head","ratesTitleStyle","ratesDetailsField","ratesDetailsLabel","ratesDetailsValue","CarrierOffer","isLogoVisible","transshipment","_transshipment$port","_transshipment$depart","_transshipment$depart2","_transshipment$depart3","_transshipment$depart4","_transshipment$depart5","ret","service","uid","getFrtBySizeTypeId","_this$props$carrierOf","_this$props$carrierOf2","_this$props$carrierOf3","_this$props$carrierOf4","_this$props$carrierOf5","_this$props$carrierOf6","_this$props$carrierOf7","_this$props$carrierOf8","_this$selectedDepart","_this$props$carrierOf9","_this$selectedDepart2","_this$props$carrierOf10","_this$props$carrierOf11","_this$props$carrierOf12","_this$props$carrierOf13","_this$props$carrierOf14","isPolDoor","isPodDoor","carrierOfferFocused","originTerminal","destinationTerminal","selectService","showAllDeparts","dpIndex","selectDepart","visibility","ArrowRight","showEta","updateShowAllDeparts","_lo$port","_lo$port2","onError","allowAskRates","IconButton","aria-label","AttachMoney","imo","_x$routeService","formatTransshipment","allDetailsOpened","toggleSizeTypeDetails","toggleBlDetails","toggleRatesDetails","toggleLclDetails","containerName","ArrowDropUp","getSellingRatesBySizeTypeId","freightValidity","quotValidity","quotedDate","marketId","toggleRatesOfferDescription","di","offerInformationId","toggleDocumentInfoDetails","Linkify","properties","workDocumentsId","toggleDetails","Remove","Add","toggleContacts","Fab","DatePickerField","OkDatePicker","inputRef","isUndefined","isMoment","DatePicker","readDateFromProps","dateFormat","customInput","innerRef","FloatingButton","iconContainerStyle","getElementsByClassName","focus","DateRange","setDateButton","dateToSet","StyledCheckbox","Checkbox","StyledFormControlLabel","FormControlLabel","CheckBox","labelPlacement","Typography","control","checked","InputNumber","delay","match","applyChange","valueToUse","parsed","integer","parseFloat","allowEmpty","isEmpty","unitStyle","required","requiredOrZero","requiredOne","passwordValid","emailRegex","emailValid","phoneRegex","phoneValid","renderField","input","placeholder","_ref$meta","meta","touched","warning","InputTextField","submitFailed","helperText","NumberField","FieldErrors","inputContainerStyle","textAreaField","row","cols","placeHolder","_ref3$meta","rows","checkBoxField","field","fileField","files","getSelectField","_ref4","onValueChange","_ref4$meta","getLocationField","_ref5","_ref5$meta","BaseForm","_React$Component7","maybePromise","handleSubmit","resetOnSubmit","_this7","autoComplete","onSubmit","submitWrapped","messageField","FormField","SelectionFeedbackForm","_len","args","_key","formRef","ExpansionPanel","v","ReduxForm","satisfiedField","selector","SelectionFeedback","ContactBoxStore","ContactBox","subOkargo","okargoPhone","contactEmail","contactPhone","ScrollableOfferDeparts","scrollToWhen","SelectionOffers","carrierOffersGrouped","_this2$getSelectedDep","Pagination","carrierGroupedResult","CriteriaStore","TransferStore","AskRatesStore","AskBookingStore","SellingRatesStore","StyledSlider","Slider","OkSlider","maxValue","minValue","valueLabelFormat","valueRender","CriteriaSizeType","FLoatingButton","ChargeCriteriaInput","LocatedReactComponent","defaultProps","zoom","resultIndexs","numberStyle","numberStyleMap","mainStyle","flexGrow","LocationSelectSearch","distance","requestClose","GoogleMapReact","bootstrapURLKeys","defaultCenter","defaultZoom","locationDistancesAll","ld","latitude","longitude","Room","handleAddressChanged","CriteriaLocationSelect","ZoomIn","recentInlandCriterias","quotationContactOpenFfDialog","quotationContactCloseFfDialog","quotationContactOpenClientDialog","quotationContactCloseClientDialog","quotationContactUpdateSelected","requestQuotationContacts","getEntities","quotationContacts","requestCreateQuotationContact","requestUpdateQuotationContact","editState","requestDeleteQuotationContact","disableContact","quotationSelectContactClient","clientIsOpen","ffIsOpen","QuotationContactForm","validate","contactType","contactTypeOptions","pristine","submitting","actionName","hideReset","createForm","destroyOnUnmount","enableReinitialize","updateForm","CreateQuotationContactForm","initialValues","clientType","UpdateQuotationContactForm","UpdateQuotationContactFormMulti","compose","StyledAutocomplete","ComboBox","QuotationFfContactDialog","subscriptionOkargo","streetNumber","street","postalCode","city","QuotationContactStore","QuotationClientContactDialog","quotationContactIdToUpdate","Edit","quotationContactToUpdate","OkAutocomplete","onInputValueChange","items","getItemLabel","getItemValue","renderItem","incotermLocationLink","showCarrierField","labelBigStyle","reduxFormFieldStyle","QuotationInformationForm","borderBlockColor","QuotationClientAutocomplete","onContactSelect","Width","clientMoreOptions","closeClientMoreOptions","openClientMoreOptions","fields","parsedValue","splice","locationLink","updateIncotermLocation","originInfo","destinationInfo","hasChargeSet","isDownloadingDocument","requestDownloadDocument","Language","_this$state$selected","_contact","searchContactsByCompanyName","_contact$agency","_contact$firstName","_contact$lastName","emptyItems","isHighlighted","getContactDisplay","onSelect","quotationInformationForm","keepDirtyOnReinitialize","asyncValidate","referenceIsValid","isValid","shouldAsyncValidate","isSmallScreen","innerWidth","WeightPicker","showLabel","containerTypeOptions","containerRequired","locationRequired","consigneeOrShipper","allValues","criteriaAgent","commentField","cargoDescriptionField","additionalLabelStyle","getInputSize","originField","inputSize","destinationField","formPartStyle","formPartBigStyle","advBtnContainer","getAdvBtn","advIconStyle","titleStyle","CriteriaForm","allowedSizes","criteriaList","additonalCriteria","mainCriteria","CriteriaSizeTypes","sizeTypeIdFilter","priceByContainer","accentColor","agencyMarkets","valid","anyTouched","weightPickerFieldBuilder","removeAll","si","insert","_this2$props$criteria","criteriaFormWrapped","isSpotOperation","checkboxLabelStyle","SelectionFilter","isSelected","carrierGroupsSelected","cg","cs","enabled","handleRatesTypeNamesChange","cgs","formFieldStyle","SelectionCriteria","arrowWidth","arrowMarginRight","criteriaDisabled","CriteriaState","Origin","Destination","selectionIsLoading","requestStats","getStatsPrice","statsPrice","requestModel","openStatsPriceDialog","closeStatsPriceDialog","updateIncludeOrigin","updateIncludeDestination","updateStatsCurrencyId","updateYearIsSelected","year","updateSizeTypeIdIsSelected","updateContainerType","requestStatsPrice","includeOrigin","includeDestination","statsPriceState","dialogIsOpen","yearsSelected","sizeTypeIdsSelected","innerStyle","OfferRatesOffer","subAgency","subCompany","companyId","subCompanyGroup","companyGroupId","agentFirm","owner","CompanyOwner","tableStyle","borderCollapse","cellStyle","dayType","ddChargeName","DDSetTable","grouped","ddSet","ddChargeNameId","firstCharge","units","uniq","periods","fromDay","untilDay","dayCountCategory","u","period","amountType","OperationalAccuracy","KeyboardHandler","onkeydown","keyCode","onkeyup","keyboardHandler","DdCharge","ddCharges","freeCharge","bodyRender","Freetime","isForSelectedCriteria","ddCharge","demAndDem","dem","det","pgi","bt","chassis","ChargeSetAvailabilty","ratesAvailabilitys","ratesAvailabiltys","Availability","fontStyle","containerLeft","ra","ratesAvailabilityId","ratesAvailabilityJsx","canAddToMultiPort","multiPortIsLoading","mo","getColumns","hasAltPol","hasAltPod","selectSortBy","carrierOfferSort","fitlerSortBy","carrierRating","carrierCarrierRatings","xr","hasToolTip","hasWarning","data-id","Info","relevantCharges","containerPriceColumn","routeLclConfig","originCfs","destinationCfs","dateEtd","QuoteValidity","linkedService","hasDepartsFromDiffServices","_carrierOffer$chargeS8","_carrierOffer$chargeS9","_carrierOffer$chargeS10","_carrierOffer$chargeS11","_carrierOffer$chargeS12","_carrierOffer$chargeS13","_carrierOffer$chargeS14","_carrierOffer$chargeS15","_carrierOffer$chargeS16","useFromChargeset","data-rc","_carrierOffer$chargeS17","_carrierOffer$chargeS18","_carrierOffer$chargeS19","_carrierOffer$chargeS20","_carrierOffer$chargeS21","_carrierOffer$chargeS22","_carrierOffer$chargeS23","_carrierOffer$chargeS24","multiPortIsActive","AddShoppingCart","requestAddAllOffersToMultiPort","requestAddOfferToMultiPort","OfferTable","handleOfferClick","keyboard","isKeyPressed","titleBoxStyle","margingTop","FirmNewses","interval","displayedTitle","onTick","setInterval","tickTimer","clearInterval","selectedFirmNewsId","openDialog","closeDialog","selectedFirmNews","getOnlineOfferErrorText","OkPopper","childContainerStyle","popperContent","importantMessageStyle","SelectionOffersTable","hoverState","findIndex","_carrierOffer$ddSet","multiPortCarrierOffers","ddSetId","_getRouteConfig2","_x$ddSet","ocqList","onMouseOver","Mouseover","sellingRatesIsLoading","scrollToOfferDeparts","selectAllCarrierOffer","addOfferToMultiPort","addAllOffersToMultiPort","openGroup","closeGroup","selectRouteService","isSchedulesActivated","schedulesApiEnabled","StatsStore","OfferReminder","btnStyle","AskBooking","bookingState","intra","intraUrl","processDeepLinkIsLoading","SelectionConnect","btnStyleRight","float","btnStyleLeft","SendEmail","toTextarea","onToUpdate","onCcUpdate","onSubjectUpdate","onContenttUpdate","goBack","backLabel","AskRatesByEmail","askRatesByEmail","handleSendingEmail","descStyle","btnsStyle","AskRates","askRatesLink","_ref2$meta","AskBookingByEmailForm","innerFieldStyle","shortLabelStyle","AskBookingByEmail","defaultValue","partStyle","TransferOffer","getOfferSelection","transferState","hasExportParameters","hasTmsSettings","originPortField","destinationPortField","RequestStatsPriceForm","ChartReact","containerId","chartRef","ctx","Chart","chartOptions","destroy","lclUnitRequired","lclUnitType","dataSetSelector","stats","years","monthStatsPrices","getYears","lineTension","fill","month","sizeTypePriceAverages","frtAvg","originAvg","destinationAvg","StatsPriceDialog","z","labels","datasets","chartDataSets","sizeTypeIsDisabled","chartData","scales","yAxes","ticks","beginAtZero","legend","ScrollToTop","KeyboardArrowUp","StyledSwitch","Switch","OkSwitch","checkBoxLabelStyle","SelectionCriteriaAdvanced","buttonSize","multiPortIsVisible","loadedAdvCount","lineHeight","requestProvideMfa","mfa","resp","closeMfaDialog","updateMfaValue","mfaStates","isMfaOpened","MfaPopup","_this$props$carriers$","platform","carrierCode","ratesFetcher","RatesFetcher","Selection","contactTimeout","initFilter","updateSelection","path","current","loaded","isLcl","mustReload","askRatesByEmailIsOpen","askRatesIsOpen","askBookingIsOpen","askBookingByEmailIsOpen","transferIsOpen","nativeEvent","stopImmediatePropagation","boxSizing","criteriaId","CriteriaLcl","CriteriaLclForm","vFormStyle","hFieldStyle","vFieldStyle","hLabelStyle","hInputStyle","smLabelStyle","smInputStyle","ForgotPasswordStyle","LoginForm","BaseStyles","onMouseOut","Mouseout","Login","redirect","inputFormStyle","undoButtonStyle","saveButtonStyle","labelOnCaseStyle","containerCaseStyle","AccountEditForm","Input","su","ReplayRoundedIcon","accountEditForm","showPassword","Eye","IsVisible","Closedeye","passwordConfMatch","newPassword","AccountEditPasswordForm","OldisVisible","NewisVisible","ConfirmationisVisible","PasswordToggle","checkCaseStyle","paddignLeft","AccountEditQuotationClientForm","S","hideIncluded","showCarrier","AccountSettings","AccountEditFrom","AccountEditQuotationClientSettingsForm","requestRatesOffers","searchRatesOffers","searchRatesOffersModel","ratesOffers","requestEditRatesOffer","editRatesOffer","ratesOfferResult","requestGetRatesOfferByTerm","getRatesOffersFromTerm","ratesOffersByTerm","updatesearchRatesOfferTerm","updateSearchTerm","selectCarrierId","selectRatesOffer","emptySearchRatesOffer","infoLevelOptions","ModeratorRatesOfferEditForm","ModeratorRatesOfferEditFormWrapped","ro","formContainerStyle","searchFieldStyle","inputStyleModerator","searchContainerStyle","filterForm","selectContainerStyle","ModeratorRatesOffer","carriersOptions","searchTerm","RatesOffer","requestWorkDocumentses","searchWorkDocuments","workDocuments","searchWorkDocumentsModel","workDocumentses","requestEditDocumentInfo","offerInformation","editDocumentInfo","documentInfoResult","requestDeleteDocumentInfo","deleteDocumentInfo","requestEditWorkDocumentsEnabled","editEnabledStates","editWorkDocumentsEnabled","updateReference","selectEnabledState","onlyEnabled","selectTrafficType","selectWorkDocuments","requestUploadWorkDocumentses","uploadedWorkdocuments","workdocumentUploads","requestWorkdocumentTemplate","filename","agencies","downloadTemplate","split","workdocumentUpload","requestUploadWorkdocument","documents","sourceFile","file","formData","FormData","append","firmDocumentResult","requestDeactivateUploadedWorkdocument","deleteStates","requestSeedChargeNames","getChargeNames","uploadChargeNames","uploadedWorkDocumentses","uploadWorkdocument","downloadState","originLocationState","destinationLocationState","ModeratorDocumentInfoEditForm","construct","InputValue","inputVal","zone","hideDelete","bind","_assertThisInitialized","handleChangeZone","storedValue","documentInfos","delete","str","event","handlesub","handleDelete","ModeratorDocumentInfoEditFormWrapped","emptySplitApi","createApi","reducerPath","baseQuery","fetchBaseQuery","baseUrl","prepareHeaders","endpoints","priceListApi","listPriceListByPeriod","queryArg","useListPriceListByPeriodQuery","injectedRtkApi","emptyApi","enhanceEndpoints","addTagTypes","injectEndpoints","listRatesExtraction","providesTags","createRatesExtraction","mutation","invalidatesTags","updateRatesExtraction","downloadRatesExtraction","deleteRatesExtraction","overrideExisting","useListRatesExtractionQuery","useCreateRatesExtractionMutation","useUpdateRatesExtractionMutation","useDownloadRatesExtractionMutation","useDeleteRatesExtractionMutation","PriceListStatus","_objectDestructuringEmpty","_useListPriceListByPe","priceList","priceListIsLoading","isFetching","currPl","priceListCount","contractedPl","priceListMax","OriginDestSize","trafficTypeOptions","ModeratorWorkDocuments","trafficType","validityStart","validityEnd","doneDate","userDocumentInfo","selectedWorkDocuments","mainPorts","WorkDocumentsStore","offerType","ModeratorWokrdocumentsDownloadTemplateForm","nullable","requestTemplateDownload","ModeratorWokrdocumentsUploadmplateForm","downloadForm","uploadForm","CreateModeratorWorkdocumentsUploadForm","CreateModeratorWorkdocumentsTemplateForm","validityBegin","firms","resultStyle","ModeratorSearchUploadEntitiesForm","filteredCharges","portText","_location$country","aliases","chargeName","handleChangeLocation","getChargeName","chargeText","onInputChargeChange","handleChangeCharge","affectation","CreateModeratorWokrdocumentsUploadEntitiesForm","enVal","integratedBy","additionalInfo","ModeratorWorkDocumetsUpload","DocumentsStore","FormCrudeActions","requestFirmNewses","getFirmNews","requestEditFirmNews","firmNews","editFirmNews","firmNewsRedult","requestCreateFirmNews","createFirmNews","requestDeleteFirmNews","deleteFirmNews","selectFirmNews","setFormAction","formAction","defaultFormValues","FirmNewsForm","pz","portsZoneId","editForm","EditFirmNewsForm","CreateFirmNewsForm","ModeratorFirmNews","originZoneId","destinationZoneId","FirmNewsStore","requestCreateFirmDocument","requestDeleteFirmDocument","deleteFirmDocument","ModeratorFirmNewsEditForm","ModeratorFirmNewsEditFormWrapped","ModeratorFirmDocument","ModeratorFirmDocumentEditForm","FirmDocumentStore","requestAgentSearchs","agentPortal","agentSearchsState","agentSearchs","searchAgentSearchs","requestChargeAgents","chargeAgentsState","chargesAgent","requestContactAgents","contactAgentsState","contactsAgent","requestCreateCharge","chargeAgent","createCharge","chargeAgentResult","requestDeleteCharge","chargeAgentId","deleteCharge","requestCreateContact","createContact","contactResult","requestDeleteContact","deleteContact","closeSearchCriteriaDetails","openSearchCriteriaDetails","updateAgentSearchFromDate","updateAgentSearchName","selectChargeLocation","fromDate","chargeTypeSelect","chargeUnitSelect","chargeApplicationSelect","chargeModificationSelect","currencyIfHasAmount","originLocationField","destinationLocationField","ModeratorChargeAgentForm","getFirms","fi","cn","chargeunit","chargeNamesOptions","currencyOptions","firmOptions","moderatorChargeAgentFormWrapped","contactTypeSelect","ModeratorContactAgentForm","ModeratorContactAgentFormWrapped","init","valueStyle","ModeratorAgentSearchDetails","agentSearch","agentEmail","volume","partContainerStyle","ModeratorAgentPortal","AgentPortalSearchs","updateAgentSearchsName","AgentPortalCharges","requesTime","AgentPortalContacts","as","getChargesColumns","getContactsColumns","AgentPortalStore","requestRequestResetPassword","forgotPassword","requestResetPassword","resetPasswordState","resetPassword","requestGeneratePassword","generatePassword","updateFirmSelected","updateUserSelectedId","requestUsers","requestResetUser","disable","entity","requestDeactivateUser","requestCreateUser","requestUpdateUser","clientId","selectedFirms","ModeratorUsersForm","firmReqValidation","renderFirms","CreateModeratorUserForm","adminUserFirms","f","subscriptionFirms","UserStore","UpdateModeratorUserForm","user","users","selectedId","sub","s","allowRatesManagment","allowSelfUpload","allowUserManagment","allowOnlineQuotes","ModeratorUsers","_d$subscriptionFirms$","_d$subscriptionFirms$2","_d$subscriptionFirms$3","_d$subscriptionFirms$4","_agency","_agency$company","_agency$company$compa","_d$subscriptionFirms$5","_d$subscriptionFirms$6","_d$subscriptionFirms$7","_d$subscriptionFirms$8","_agency2","_agency2$company","_d$subscriptionFirms$9","_d$subscriptionFirms$10","_d$subscriptionFirms$11","_ref$agency","_d$subscriptionFirms$12","expirationDate","_x$agency","confirm","ForgotPasswordStore","originRequired","originPortsZoneId","destinationRequired","destinationPortsZoneId","SellingRatesForm","SellingRatesValues","member","remove","CreateSellingRatesForm","UpdateSellingRatesForm","selectedSellingRatesId","ModeratorSellingRates","author","toFixed","feader","findFirmById","requestInlandRatesOffers","inlandRatesOffer","searchInlandRatesOffers","inlandRatesOffers","requestEditInlandRatesOffer","inlandRatesOfferResult","selectInlandCarrierId","inlandCarrierId","selectInlandRatesOffer","inlandRatesOfferId","InlandRatesOfferForm","InlandRatesOfferFormWrapped","ModeratorInlandRatesOffer","InlandRatesOfferStore","requestQuotationSettings","getQuotationSettings","quotSettings","quotationSettings","requestUpdateQuotationSettings","QuotationSettingsForm","ModeratorCompanySettings","QuotationSettingsStore","requestCarrierCarrierRatings","requestCreateCarrierCarrierRating","carrierCarrierRating","requestUpdateCarrierCarrierRating","requestDeleteCarrierRating","updateSelectedCarrierId","carrierCarrierRatingsState","requestCarrierRatings","requestCreateCarrierRating","requestUpdateCarrierRating","carrierRatingId","selectedCarrierRatingId","updateSelectedId","openCarrierRatings","closeCarrierRatings","carrierRatingsState","RatesOfferSelect","ratesOfferByTerm","getRatesOfferName","onInputChangeValue","RatesOfferStore","getRatesOfferInput","getRatesTypeOptions","largeStyle","CarrierCarrierRatingForm","ratesFilter","updateSelector","CreateCarrierCarrierRatingForm","UpdateCarrierCarrierRatingForm","carrierCarrierRatingId","selectedCarrierCarrierRatingId","iconList","iconsField","CarrierRatingForm","CreateCarrierRatingForm","UpdateCarrierRatingForm","CarrierRatings","CarrierRatingStore","CarrierCarrierRatings","fromPortsZoneId","toPortsZoneId","isCarrierRatingOpen","CarrierCarrierRatingStore","ModeratorCarrierCarrierRating","requestCarrierRatesOfferInformation","requestCreateCarrierRatesOfferInformation","requestUpdateCarrierRatesOfferInformation","carrierRatesOfferInformationId","requestDeleteCarrierRatesOfferInformation","updateCarrierRatesOfferInformationSelectedId","CarrierRatesOfferInformationForm","CreateCarrierRatesOfferInformationForm","UpdateCarrierRatesOfferInformationForm","carrierRatesOfferInformation","CarrierRatesOfferInformation","companySubscriptions","CarrierRatesOfferInformationStore","navContainerStyle","navInnerContainerStyle","contentContainerStyle","innerContentStyle","navStyle","navLinkTabStyle","navLinkActiveStyle","moderatorHomeStyle","testAlign","ModeratorHome","Moderator","disableTypography","activeStyle","exact","allowUserManagement","Divider","allowClientUploadRates","Route","ModeratorRatesOffers","requestSearchCriterias","history","searchCriteriaState","searchCriteriaHistory","requestOfferMemos","offerMemoState","searchOfferMemoHistory","offerMemos","requestDownloadOfferMemo","offerMemoId","offerMemo","om","goToSelection","updateSearchCriteriaDateFrom","updateSearchOfferMemoDateFrom","HistoryOfferMemo","HistoryStore","HistorySearchCriteria","requestSearchMultiPorts","multiPortHistory","searchMultiPorts","multiPorts","requestDownloadRecentMultiPort","downloadRecentState","downloadRecentModel","downloadRecentMultiPort","updateHisoryFromDate","updateDownloadRecentDateBegin","updateDownloadRecentDateEnd","selectHistoryMultiPort","updateHistoryMultiPortName","requestUpdateHistoryMultiPort","updateName","requestDeleteMultiPortInstanceHst","isDeleteLoading","updateMutiPortState","HistoryMultiPort","multiPortOffersCount","MultiPortHistoryStore","navLinkStyle","History","feeTypeBl","requestQuotationData","quotationSettingses","quotationData","addInfo","defaultAdditionalInfo","terms","defaultTerms","quotationTemplates","fecthCriteriaTask","fetchOfferTask","getCarrierOffer","quotationApi","fetchQuotationTask","getQuotation","fetchTemplatesTask","getQuotationTemplates","quotationCharges","quotationChargeAmounts","unloadedQuotationCharge","quotationFees","quotationCurrencies","displayType","requestCreateQuotation","createQuotation","quotationOffers","sendQuotationEmail","downloadQuotationExcel","downloadQuotationPdf","requestCreateQuotationTemplate","templateState","requestParams","quotationTemplateSettings","includeExchangeRates","includeAdditionalInfo","includeTerms","detailsLevel","includeDetailsLevel","totalType","includeTotalType","clientContact","showExchangeRates","includeShowExchangeRates","createTemplate","updateTemplate","templateResult","requestDownloadQuotation","downloadPreview","requestDeleteTemplate","deleteTemplate","requestNewQuotationReference","referenceState","carrierName","getNewReference","fecthTask","setQuotationInformation","quotationNextStep","quotationPrevStep","quotationAddFee","feeType","quotationRemoveFee","quotationUpdateMarginCurrencyId","quotationLoadTemplate","quotationUpdateFeeName","quotationUpdateFeeUnit","quotationUpdateChargeAmount","lvl","quotationUpdateFeeBaseAmount","quotationUpdateFeeAmount","quotationSelectFeeCurrency","quotationUpdateFeeLabel","quotationUpdateFeeMode","quotationSelectFee","quotationSelectCharge","quotationRequestUploadDocuments","inputFile","quotationDocuments","quotationSelectLanguage","quotationSelectTotalType","quotationSelectAllInCurrency","quotationSelectDetailsLevel","quotationUpdateAdditionalInfo","quotationUpdateTerms","quotationBackToSelection","quotationUpdateCurrencyValue","quotationOpenTemplateDialog","quotationCloseTemplateDialog","quotationOpenClientMoreOptions","quotationCloseClientMoreOptions","quotationOpenTemplateListing","quotationCloseTemplateListing","quotationUpdateName","quotationUpdateCriteriaSizeType","quotationUpdateShowExchangeRates","quotationLoadDuplicate","quotationChrono","duplicateQuotation","quotationSelectTemplatePreview","quotationCloseTemplatePreview","quotationUpdateByContainer","quotationUpdateCurrencyDisplayType","quotationUpdateIncotermLocation","quotationUpdateFobOrigin","quotationUpdateFobDestination","quotationUpdateFrtOrigin","quotationUpdateFrtDestination","quotationUpdateDestinationOrigin","quotationUpdateDestinationDestination","quotationUseInlandChargeSet","quotationAddQuotationFeeLabel","quotationRemoveQuotationFeeLabel","feeIndex","quotationUpdateQuotationFeeLabel","getUnloadedQuotationFee","bl","quotationFeeAmounts","baseAmount","quotationFeeLabels","unloadedFeeState","sizeTypesMode","marginCurrencyId","previewIsOpen","listingIsOpen","templateStates","uploadDocumentsState","feeStates","rowStyle","inputNumberStyle","borderStyle","oneToThree","feeNameStyle","QuotationFee","includeNotSelected","quotationFee","updateUnit","perBl","nb","getSizeTypeId","addQuotationFeeLabel","feeLabel","feeLabelIndex","updateQuotationFeeLabel","removeQuotationFeeLabel","qfa","QuotationFeeAmount","quotationFeeState","onModeChanges","updateMode","onLabelChanges","updateLabel","onAmountChanges","updateAmount","onBaseAmountChanges","updateBaseAmount","quotationFeeAmount","alt","noLabelCheckBox","QuotationTemplateForm","readonly","detailsLevelOptions","totalDisplayOptions","includeLanguage","templates","previewForm","previewSelector","templateNameIsValid","PreviewTemplateForm","previewQuotationId","CreateTemplateForm","templateType","QuotationSaveTemplateDialog","QuotationCharge","getSizeTypeCriteria","quotationCharge","viewBox","firstChargeSource","findCharge","QuotationChargeAmount","quotationChargeAmount","qc","chargeSource","chargeAmount","QuotationApplicationCharges","findChargeNamesFromApplication","levels","qf","usableCurrencies","QuotationStore","SplitButton","anchorRef","defaultIndex","Grid","ButtonGroup","aria-controls","aria-expanded","aria-haspopup","ArrowDropDownIcon","role","transition","TransitionProps","Grow","transformOrigin","ClickAwayListener","onClickAway","MenuList","Component","otherInfoStyle","actionButtonStyle","QuotationRates","topRef","containerRef","scrollContainer","addEventListener","scrollTop","setProperty","getBoundingClientRect","_x$sizeTypeId","gc","findMaxLevel","allInResultSet","nbUnit","quotationFeeCurrencyResultSet","isMaster","loadedTemplateId","byContainer","fobOrigin","fobDestination","frtOrigin","frtDestination","destinationOrigin","destinationDestination","exchangeRatesDate","quotCurrency","lg","multiple","QuotationCreateTemplateDialog","QuotationPreviewTemplateDialog","QuotationTemplatesDialog","isManager","innerContainerStyle","infoFormContainerStyle","ScrollableToTop","Quotation","force","enterSelectionTime","loadedSelectionTime","onParamsUpdate","carrierScheduleState","scheduleState","ForgotPasswordForm","WrappedForgotPasswordForm","ForgotPassword","confirmationValid","password","passwordConfirmation","ResetPasswordForm","WrappedResetPasswordForm","ResetPassword","requestQuotations","searchQuotations","quotations","download","downloadQuotationTask","requestUpdateQuotationStatus","updateQuotationStatus","receivedStatus","openQuotationDetails","closeQuotationDetails","openQuotationComment","closeQuotationComment","updateComment","setQuotationsDuplicate","requestDownloadQuotationCsv","downloadQuotationsCsv","loadedFilter","requestUpdateComment","commentState","updateQuotationComment","updateStates","detailsState","downloadCsvState","labelFieldStyle","QuotationChronoFilterForm","QuotationChronoDetailsDialog","previousQuotations","quotationColumns","QuotationChronoCommentDialog","commentValue","requestUpdateQuotationComment","serviceName","iconLinkStyle","QuotationChrono","QuotationChronoStore","requestInlandCriteria","getCriteriaByCode","cridentials","requestCreateInlandCriteria","inlandCriteriaSizeTypes","resetInlandCriteria","updateInlandCriteriaSizeType","updateInlandCriteriaDateBegin","updateInlandCriteriaDateEnd","updateInlandCriteriaOrigin","updateInlandCriteriaDestination","updateInlandCriteriaPriceDisplay","updateInlandCriteriaCarrierRates","locationSource","inlandContainerTypeOptions","InlandCriteriaForm","InlandCriteriaSizeTypes","priceDisplayMode","sizeTypesList","InlandCriteria","criteriaAgentForm","InlandCriteriaState","getInlandOfferKey","inlandChargeSet","inlandChargeSetId","inlandRoute","inlandRouteId","requestInlandSelection","getSelectionFromCode","inlandSelection","getOnlineInlandCarrierOffers","cwe","inlandCarrierOffers","inlandCarrierOffersState","selectInlandCarrierOffer","inlandOfferId","updateInlandCarrierSelected","updateInlandAllCarrierSelected","inlandCarrierIds","openInlandOfferDetails","closeInlandOfferDetails","openInlandOfferContainerDetails","sizetypeId","closeInlandOfferContainerDetails","openInlandOfferRatesDetails","closeInlandOfferRatesDetails","openInlandOfferRatesComment","closeInlandOfferRatesComment","goToInlandCriteria","inlandCriteriaLoaded","openUseInQuotation","closenUseInQuotation","updateAdvContainer","unloadedInlandCarrierOfferState","sizeTypesOpened","ratesOfferCommentOpened","inlandCarriersSelected","useInQuotationIsOpen","inlandCarrierRatesOffersCache","InlandOfferRatesOffer","getAllpliesTo","stApplications","getSizeTypeApplications","minText","maxText","weightText","ratesOfferTooltipStyle","InlandOfferTable","route","dropOffFound","dropOffLocation","pickUpFound","pickupLocation","pickupEmptyName","onOfferClick","priceStyle","fieldLabelStyle","fieldValueStyle","chargeFieldStyle","chargeFieldLabelStyle","chargeFieldValueStyle","detailsStyleButton","useQuotationStyleButton","InlandCarrierOffer","InlandSelectionStore","inlandCarrierOfferState","inlandCarrierOffer","_this$props$inlandCar","_this$props$inlandCar2","_this$props$inlandCri","_this$props$inlandCar3","_this$props$inlandCar4","_this$props$inlandCar5","_this2$props$inlandCa","_this2$props$inlandCa3","_this2$props$inlandCa2","closeContainerDetails","openContainerDetails","getSource","_this2$props$inlandCa4","closeRatesDetails","openRatesDetails","_this2$props$inlandCa5","_this2$props$inlandCa6","closeDetails","openDetails","quotationIsLoaded","loadQuotationInlandChargeSet","ScrollableOffer","InlandSelectionOffers","inlandCarrierOffersFiltered","openRatesComment","selectedOffer","InlandSelectionFilterCriteria","selectedCtrOptions","updateSearch","InlandCriteriaStore","InlandSelectionFilter","inlandCarriersAvailable","inlandCarrier","datePickerStyle","datePickerContainerStyle","InlandSelectionCriteria","ArrowBack","needReload","InlandSelectionOffersTable","warningMessage","InlandSelection","updateRatesCalculator","requestSelection","InlandSelectionOfferTable","requestCarrierRatesSettings","requestCreateCarrierRatesSettings","requestUpdateCarrierRatesSettings","carrierRatesSettingsId","requestDeleteCarrierRatesSettings","updateCarrierRatesSettingsSelectedId","uniqLogin","carrierRatesSettings","platformBlacklist","CarrierRatesSettingsForm","isPasswordVisible","subOkargoId","allowCarrierRatesManagement","RadioGroup","Radio","CreateCarrierRatesSettingsForm","UpdateCarrierRatesSettingsForm","CarrierRatesSettings","alloweSubscriptions","mySetting","firmAllowed","allowEdit","CarrierRatesSettingsStore","requestRouteratesPlatformDatas","requestCreateRouteRatesPlatformDatas","requestRouteRatesPlatformDatas","routeRatesPlatformDataId","requestDeleteRouteRatesPlatformData","updatRouteratesPlatformDataSelectedId","originCountryId","destinationCountryId","RouteRatesPlatformDataForm","CreateRouteRatesPlatformDataForm","routeRatesPlatformDatas","UpdateRouteRatesPlatformDatasForm","RouteRatesPlatformDataSettings","_d$originPort","_d$destinationPort","routeDataPlatform","RouteRatesPlatformDataStore","useAppDispatch","useDispatch","useAppSelector","useSelector","ratesExtractionSlice","createSlice","initialState","reducers","updateRatesExtractionUpdateId","ratesExtractionUpdateId","updateRatesExtractionDownloadId","ratesExtractionDownloadId","_ratesExtractionSlice","carriersSelector","currenciesSelector","ratesExtractionUpdateIdSelector","ratesExtraction","ratesExtractionDownloadIdSelector","ErrorMessage","render","RatesExtractionForm","defaultValues","_useState","useState","_useState2","_slicedToArray","polSelected","updatePolSelected","_useState3","_useState4","podSelected","updatePodSelected","_useState5","_useState6","updateCarrierSelected","_useForm","useForm","criteriaMode","register","formState","watch","formControl","resetField","fnc","gap","Controller","portId","Delete","rules","_ref6","_ref7","_ref8","_ref9","_ref10","RatesExtractionDownload","onDownload","startDate","updateStartDate","endDate","updateEndDate","ratesExtractionPols","ratesExtractionPods","ratesExtractionCarriers","ratesSourceFlag","Fragment","RatesExtraction","_useListRatesExtracti","ratesExtractions","ratesExtractionsIsLoading","_useCreateRatesExtrac","refetch","_useCreateRatesExtrac2","_useCreateRatesExtrac3","createRatesExtractionIsLoading","_useUpdateRatesExtrac","_useUpdateRatesExtrac2","_useUpdateRatesExtrac3","updateRatesExtractionIsLoading","_useDownloadRatesExtr","_useDownloadRatesExtr2","_useDownloadRatesExtr3","_useDeleteRatesExtrac","_useDeleteRatesExtrac2","_useDeleteRatesExtrac3","ratesExtractionIdUpdate","validityType","applicationFlag","ratesExtractionId","locationHelper","locationHelperBuilder","ownProps","getRedirectQueryParam","allowRedirectBack","allowExportManagement","UserIsAuthenticated","UserIsModerator","UserIsNotAuthenticated","Redirect","isLocalhost","Boolean","hostname","navigator","URL","process","swUrl","contentType","serviceWorker","ready","registration","unregister","registerValidSW","checkValidServiceWorker","onupdatefound","installingWorker","installing","onstatechange","controller","isConnected","incomingAction","local","advCriteriaCloseWarning","_defineProperty","newCarriersSelected","cId","facNewCarriersSelected","newCarrierOffersSelected","isTestAccount","defaultByRatesOffer","openTransferState","criteriaSizeTypeId","originNearby","destinationNearby","ecSubscription","ecIsAgent","today","carriersRequestTime","defaultMultiPorts","deleteRequestTime","wd","_action$payload$quota","_action$payload$quota2","_action$payload$quota3","_action$payload$quota4","_action$payload$value","_action$payload$value2","ffContactId","receivedQuotationClientSettings","cargoDesc","frequency","incotermLocation","toLoadQuotation","ts","_ts$port","xIndex","qi","isBl","qa","qltTemplate","criteriaSizeType","stateWithFees","unloaded","yi","okargoHub","loadedRequestModel","tutorial","_state$parts$action$p","_state$parts$action$p2","tutorialId","isRunning","isLast","_state$mfaStates$acti","isSent","reduxForm","reducer","okargoApi","ratesExtractionReducer","actionBlackList","actionWhiteList","actionLogger","store","_actions","_actions$action","_actions2","_actions2$action","_action$meta","_action$meta2","toActionLog","timeStamp","flushActions","_createReduxHistoryCo","createReduxHistoryContext","createBrowserHistory","createReduxHistory","routerMiddleware","routerReducer","scrollMiddleware","createScrollMiddleware","configureStore","middleware","getDefaultMiddleware","reachify","createWouterHook","getElementsByTagName","getAttribute","toJSON","requestAccountTask","requestSeedTask","SeedStore","requestOptionsTask","getOptions","initData","languageCode","language","langCookie","getTexts","langCode","rejectUnauthorized","fetchTexts","texts","loadTexts","ReactDOM","Provider","ConnectedRouter","App","registerServiceWorker","actionsLogEnabled","_x$action","sendActions"],"mappings":";mUAmBaA,EAAa,IAnBV,oBAAAC,IAAAC,YAAA,KAAAD,GAAA,KACJE,SAAW,GAclB,OAdoBC,YAAAH,EAAA,EAAAI,IAAA,QAAAC,MAErB,WACIC,KAAKJ,SAAW,KACnB,CAAAE,IAAA,gBAAAC,MAED,WAAsC,IAADE,EAAA,KACjC,OAAOC,QAAQC,IAAIH,KAAKJ,UACnBQ,MAAK,kBAAMH,EAAKL,SAAW,MAC3BS,OAAM,kBAAMJ,EAAKL,SAAW,QACpC,CAAAE,IAAA,UAAAC,MAED,SAAeO,GACXN,KAAKJ,SAASW,KAAKD,OACtBZ,EAfW,IAqBT,SAASc,EAAQF,GACpBb,EAAWe,QAAQF,G,0BCDjBG,EAAY,yBAAyBC,QAAQ,OAAQ,IAU9CC,EAAOd,aAIhB,SAAAc,IAA8E,IAAlEC,EAAeC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAGG,EAAiBC,EAAgBJ,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAGJ,EAASd,YAAA,KAAAgB,GAAA,KAH3EM,cAAQ,OACRL,WAAK,EAGDZ,KAAKiB,SAAWA,EAChBjB,KAAKY,MAAQA,KAovERM,EAIA,SAACC,GACN,IACIC,EAASC,QADA,0BACmB,GAC5BC,EAA4BC,EAAO,GAAI,CAAEC,OAAQ,OAASL,GAE1DM,EAAwC,GAI5C,OAHIA,IACAH,EAAaI,QAAUH,EAAO,GAAIE,EAAmBH,EAAaI,UAE/D,CACHL,IAAKA,SAAWD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,MAAMqE,MAIE20D,aAAY,WACxB6yC,GAAMtsG,WAAWmI,KAAK+gB,gBAAgBkmF,kBFvDnB,WACvB,IACI,OAAqB,GAAlB55F,GAAQtoB,OACAZ,QAAQ4T,UAEZlT,MAAM,sBAAuB,CAChCY,OAAQ,OACRE,QAAS,CACL,OAAU,mBACV,eAAgB,oBAEpBE,KAAMC,KAAKC,UAAU,CACjBsnB,QAASA,GAAQ1b,KAAI,SAAAF,GAAC,IAAAy1G,EAAA,MAAK,CACvB55F,UAAW7b,EAAEkzG,UACb3xG,KAAMvB,EAAEiE,OAAO1C,KACf6G,QAAS/T,KAAKC,WAAkB,QAARmhH,EAAAz1G,EAAEiE,cAAM,IAAAwxG,OAAA,EAARA,EAAUrtG,UAAW,IACxCyC,UAAU,EAAG,KAClB68C,KAAM1nD,EAAEiE,OAAOyjD,SACfj2C,QAAO,SAAAzR,GAAC,OAAIA,EAAEuB,YAGrB3O,MAAK,SAAA00E,OAELz0E,OAAM,SAAAqY,GACHrC,QAAQhC,MAAM,wBAAyBqE,MAEjD,MAAMA,GACJrC,QAAQhC,MAAMqE,IE6BdwqG,GAAc9iH,MAAK,WACfugH,QACDtgH,OAAM,WACLsgH,QAGJA,OAEL,O","file":"static/js/main.ce628493.chunk.js","sourcesContent":["class TasksUtils {\r\n private taskList = [];\r\n\r\n private reset(): void {\r\n this.taskList = [];\r\n }\r\n\r\n public tasksPromises(): Promise {\r\n return Promise.all(this.taskList)\r\n .then(() => this.taskList = [])\r\n .catch(() => this.taskList = []);\r\n }\r\n\r\n public addTask(task: Promise) {\r\n this.taskList.push(task);\r\n }\r\n}\r\n\r\n\r\nexport const tasksUtils = new TasksUtils(); \r\n\r\nexport function addTask(task: Promise): void {\r\n tasksUtils.addTask(task);\r\n} ","/**\r\n * Okargo API\r\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\r\n *\r\n * OpenAPI spec version: v1\r\n *\r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\nimport * as querystring from \"querystring\";\r\nimport * as url from \"url\";\r\nimport * as isomorphicFetch from \"isomorphic-fetch\";\r\nimport * as assign from \"core-js/library/fn/object/assign\";\r\n\r\ninterface Dictionary { [index: string]: T; }\r\nexport interface FetchAPI { (url: string, init?: any): Promise; }\r\n\r\n//const BASE_PATH = \"https://okargoreact-staging.azurewebsites.net\".replace(/\\/+$/, \"\");\r\nconst BASE_PATH = \"https://app.okargo.com\".replace(/\\/+$/, \"\");\r\n//const BASE_PATH = \"http://okargo.guiennet.com:8090\".replace(/\\/+$/, \"\");\r\n//const BASE_PATH = \"https://test.app.okargo.com\".replace(/\\/+$/, \"\");\r\n\r\n\r\nexport interface FetchArgs {\r\n url: string;\r\n options: any;\r\n}\r\n\r\nexport class BaseAPI {\r\n basePath: string;\r\n fetch: FetchAPI;\r\n\r\n constructor(fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) {\r\n this.basePath = basePath;\r\n this.fetch = fetch;\r\n }\r\n}\r\n\r\nexport interface AccountModel {\r\n \"accountId\"?: number;\r\n \"email\"?: string;\r\n \"enabled\"?: boolean;\r\n \"creationDate\"?: Date;\r\n \"expirationDate\"?: Date;\r\n}\r\n\r\nexport interface ActionModel {\r\n \"type\"?: string;\r\n \"payload\"?: string;\r\n \"timestamp\"?: number;\r\n}\r\n\r\nexport interface ActionsLogModel {\r\n \"username\"?: string;\r\n \"timestamp\"?: number;\r\n \"actions\"?: Array;\r\n}\r\n\r\nexport interface AddressModel {\r\n \"addressId\"?: number;\r\n \"postalCode\"?: number;\r\n \"city\"?: string;\r\n \"streetNumber\"?: string;\r\n \"street\"?: string;\r\n \"countryId\"?: number;\r\n \"country\"?: LocationModel;\r\n}\r\n\r\nexport interface AgencyMarketModel {\r\n \"agencyMarketId\"?: number;\r\n \"agencyId\"?: number;\r\n \"marketId\"?: number;\r\n}\r\n\r\nexport interface AgentSearchModel {\r\n \"clientActionId\"?: number;\r\n \"criteria\"?: CriteriaModel;\r\n \"agentEmail\"?: string;\r\n \"creationDate\"?: Date;\r\n}\r\n\r\nexport interface ApiResultBoolean {\r\n \"result\"?: boolean;\r\n \"message\"?: string;\r\n}\r\n\r\nexport interface ApiResultFormModel {\r\n \"result\"?: FormModel;\r\n \"message\"?: string;\r\n}\r\n\r\nexport interface ApiResultMultiPortInstanceModel {\r\n \"result\"?: MultiPortInstanceModel;\r\n \"message\"?: string;\r\n}\r\n\r\nexport interface ApiResultString {\r\n \"result\"?: string;\r\n \"message\"?: string;\r\n}\r\n\r\nexport interface CarrierCarrierRatingModel {\r\n \"carrierCarrierRatingId\"?: number;\r\n \"carrierId\"?: number;\r\n \"ratesType\"?: CarrierCarrierRatingModelRatesTypeEnum;\r\n \"ratesOffer\"?: RatesOfferModel;\r\n \"ratesOfferId\"?: number;\r\n \"carrierRatingId\"?: number;\r\n \"firmId\"?: number;\r\n \"fromPortsZoneId\"?: number;\r\n \"toPortsZoneId\"?: number;\r\n}\r\n\r\nexport type CarrierCarrierRatingModelRatesTypeEnum = \"Fak\" | \"Special\";\r\nexport interface CarrierGroupModel {\r\n \"carrierGroupId\"?: number;\r\n \"name\"?: string;\r\n}\r\n\r\nexport interface CarrierModel {\r\n \"carrierId\"?: number;\r\n \"enabled\"?: boolean;\r\n \"type\"?: CarrierModelTypeEnum;\r\n \"carrierGroupId\"?: number;\r\n \"name\"?: string;\r\n \"code\"?: string;\r\n \"scac\"?: string;\r\n \"contactMessage\"?: string;\r\n \"bookingMessage\"?: string;\r\n \"scheduleState\"?: CarrierModelScheduleStateEnum;\r\n \"bookingState\"?: CarrierModelBookingStateEnum;\r\n \"askRatesState\"?: CarrierModelAskRatesStateEnum;\r\n \"schedulesFetchedRecordId\"?: number;\r\n \"askRatesLink\"?: string;\r\n \"onlineQuoteLink\"?: string;\r\n \"askRatesByEmail\"?: boolean;\r\n \"intra\"?: boolean;\r\n \"main\"?: boolean;\r\n}\r\n\r\nexport type CarrierModelTypeEnum = \"None\" | \"Ocean\" | \"FclNvocc\" | \"LclNvocc\";\r\nexport type CarrierModelScheduleStateEnum = \"Display\" | \"Hide\" | \"Home\";\r\nexport type CarrierModelBookingStateEnum = \"Display\" | \"Hide\" | \"Home\";\r\nexport type CarrierModelAskRatesStateEnum = \"Display\" | \"Hide\" | \"Home\";\r\nexport interface CarrierModelExport {\r\n \"carrierId\"?: number;\r\n \"enabled\"?: boolean;\r\n \"type\"?: Array;\r\n \"carrierGroupId\"?: number;\r\n \"name\"?: string;\r\n \"code\"?: string;\r\n \"scac\"?: string;\r\n \"contactMessage\"?: string;\r\n \"bookingMessage\"?: string;\r\n \"scheduleState\"?: CarrierModelExportScheduleStateEnum;\r\n \"bookingState\"?: CarrierModelExportBookingStateEnum;\r\n \"askRatesState\"?: CarrierModelExportAskRatesStateEnum;\r\n \"schedulesFetchedRecordId\"?: number;\r\n \"askRatesLink\"?: string;\r\n \"onlineQuoteLink\"?: string;\r\n \"askRatesByEmail\"?: boolean;\r\n \"intra\"?: boolean;\r\n \"main\"?: boolean;\r\n}\r\n\r\nexport type CarrierModelExportTypeEnum = \"None\" | \"Ocean\" | \"FclNvocc\" | \"LclNvocc\";\r\nexport type CarrierModelExportScheduleStateEnum = \"Display\" | \"Hide\" | \"Home\";\r\nexport type CarrierModelExportBookingStateEnum = \"Display\" | \"Hide\" | \"Home\";\r\nexport type CarrierModelExportAskRatesStateEnum = \"Display\" | \"Hide\" | \"Home\";\r\nexport interface CarrierOfferModel {\r\n \"subscriptionId\"?: number;\r\n \"carrierId\"?: number;\r\n \"routeId\"?: number;\r\n \"workDocumentClientUploadId\"?: number;\r\n \"carrierRatesPlatformId\"?: number;\r\n \"chargeSet\"?: ChargeSetModel;\r\n \"originPort\"?: LocationModel;\r\n \"destinationPort\"?: LocationModel;\r\n \"originTerminal\"?: LocationModel;\r\n \"destinationTerminal\"?: LocationModel;\r\n \"ratesAvailabilitys\"?: Array;\r\n \"ratesOffer\"?: RatesOfferModel;\r\n \"routeLclConfig\"?: RouteLclConfigModel;\r\n \"ddSet\"?: DdSetModel;\r\n \"chargeAgents\"?: Array;\r\n \"offerInformations\"?: Array;\r\n \"routeConfigs\"?: Array;\r\n \"contacts\"?: Array;\r\n}\r\n\r\nexport interface CarrierOffersWithErrors {\r\n \"carrierOffers\"?: Array;\r\n \"errorByFetcherCode\"?: { [key: string]: Array; };\r\n}\r\n\r\nexport interface CarrierRatesOfferInformationModel {\r\n \"carrierRatesOfferInformationId\"?: number;\r\n \"content\"?: string;\r\n \"level\"?: CarrierRatesOfferInformationModelLevelEnum;\r\n \"creationDate\"?: Date;\r\n \"carrierId\"?: number;\r\n \"firmId\"?: number;\r\n \"authorId\"?: number;\r\n}\r\n\r\nexport type CarrierRatesOfferInformationModelLevelEnum = \"Low\" | \"Normal\" | \"High\";\r\nexport type CarrierPlatformType = \"Fcl\" | \"Extension\" | \"Lcl\";\r\n/**\r\n * Returns information about Carrier Rates Platform\r\n */\r\nexport interface CarrierRatesPlatformModel {\r\n /**\r\n * Id of platform\r\n */\r\n \"carrierRatesPlatformId\"?: number;\r\n /**\r\n * Name of platform\r\n */\r\n \"name\"?: string;\r\n /**\r\n * Okargo internal code of platform\r\n */\r\n \"code\"?: string;\r\n /**\r\n * Web page for booking\r\n */\r\n \"onlineQuoteLink\"?: string;\r\n /**\r\n * Type of authentification\r\n */\r\n \"authenticationType\"?: CarrierRatesPlatformModelAuthenticationTypeEnum;\r\n /**\r\n * Status of platform\r\n */\r\n \"status\"?: CarrierRatesPlatformModelStatusEnum;\r\n /**\r\n * Type of platform\r\n */\r\n \"type\"?: CarrierPlatformType;\r\n /**\r\n *\r\n */\r\n \"enabled\"?: boolean;\r\n /**\r\n * Carrier of platform\r\n */\r\n \"carrierId\"?: number;\r\n /**\r\n * Inland carrier of platform\r\n */\r\n \"inlandCarrierId\"?: number;\r\n /**\r\n *\r\n */\r\n \"creationDate\"?: Date;\r\n}\r\n\r\nexport type CarrierRatesPlatformModelAuthenticationTypeEnum = \"Credentials\" | \"Token\" | \"NoAuth\";\r\nexport type CarrierRatesPlatformModelStatusEnum = \"Ok\" | \"BetaTest\" | \"NotStable\" | \"NotWorking\";\r\nexport interface CarrierRatesPlatformsStatusModel {\r\n \"originPortId\"?: number;\r\n \"destinationPortId\"?: number;\r\n}\r\n\r\nexport interface CarrierRatesSettingsModel {\r\n \"carrierId\"?: number;\r\n \"firmId\"?: number;\r\n \"subOkargoId\"?: number;\r\n /**\r\n * ID of setting\r\n */\r\n \"carrierRatesSettingsId\"?: number;\r\n /**\r\n * Login of user\r\n */\r\n \"login\"?: string;\r\n /**\r\n * Password\r\n */\r\n \"password\"?: string;\r\n /**\r\n * Token for platform\r\n */\r\n \"token\"?: string;\r\n /**\r\n * Additional platform parameter, f.e. Personl key\r\n */\r\n \"parameters\"?: string;\r\n /**\r\n * Creation date\r\n */\r\n \"creationDate\"?: Date;\r\n /**\r\n * Carrier platform id\r\n */\r\n \"carrierRatesPlatformId\"?: number;\r\n /**\r\n * WHo sets setting\r\n */\r\n \"source\"?: CarrierRatesSettingsModelSourceEnum;\r\n}\r\n\r\nexport type CarrierRatesSettingsModelSourceEnum = \"Admin\" | \"Client\";\r\nexport interface CarrierRatesSettingsModelBase {\r\n /**\r\n * ID of setting\r\n */\r\n \"carrierRatesSettingsId\"?: number;\r\n /**\r\n * Login of user\r\n */\r\n \"login\"?: string;\r\n /**\r\n * Password\r\n */\r\n \"password\"?: string;\r\n /**\r\n * Token for platform\r\n */\r\n \"token\"?: string;\r\n /**\r\n * Additional platform parameter, f.e. Personl key\r\n */\r\n \"parameters\"?: string;\r\n /**\r\n * Creation date\r\n */\r\n \"creationDate\"?: Date;\r\n /**\r\n * Carrier platform id\r\n */\r\n \"carrierRatesPlatformId\"?: number;\r\n /**\r\n * WHo sets setting\r\n */\r\n \"source\"?: CarrierRatesSettingsModelBaseSourceEnum;\r\n}\r\n\r\nexport type CarrierRatesSettingsModelBaseSourceEnum = \"Admin\" | \"Client\";\r\nexport interface CarrierRatingModel {\r\n \"carrierRatingId\"?: number;\r\n \"label\"?: string;\r\n \"icon\"?: string;\r\n \"firmId\"?: number;\r\n \"carrierCarrierRatings\"?: Array;\r\n}\r\n\r\nexport interface CarrierRoutesModel {\r\n \"carrier\"?: CarrierModel;\r\n \"routes\"?: Array;\r\n}\r\n\r\nexport interface ChargeAgentModel {\r\n \"chargeAgentId\"?: number;\r\n \"chargeAgentType\"?: ChargeAgentModelChargeAgentTypeEnum;\r\n \"enabled\"?: boolean;\r\n \"amount\"?: number;\r\n \"currencyId\"?: number;\r\n \"originId\"?: number;\r\n \"origin\"?: LocationModel;\r\n \"destinationId\"?: number;\r\n \"destination\"?: LocationModel;\r\n \"authorEmail\"?: string;\r\n \"firmId\"?: number;\r\n \"sizeTypeId\"?: number;\r\n \"creationDate\"?: Date;\r\n \"name\"?: string;\r\n \"criteria\"?: ChargeAgentModelCriteriaEnum;\r\n \"unit\"?: ChargeAgentModelUnitEnum;\r\n \"application\"?: ChargeAgentModelApplicationEnum;\r\n \"modificationType\"?: ChargeAgentModelModificationTypeEnum;\r\n \"chargeNameId\"?: number;\r\n}\r\n\r\nexport type ChargeAgentModelChargeAgentTypeEnum = \"Value\" | \"Modification\";\r\nexport type ChargeAgentModelCriteriaEnum = \"Hazardous\" | \"Owned\" | \"Goh\" | \"GohDouble\" | \"Nor\";\r\nexport type ChargeAgentModelUnitEnum = \"Specific\" | \"Ctr\" | \"Teu\" | \"Bl\" | \"Cbm\" | \"Ton\" | \"Wm\" | \"Decl\" | \"Trans\";\r\nexport type ChargeAgentModelApplicationEnum = \"Origin\" | \"Freight\" | \"Destination\" | \"General\" | \"Road\";\r\nexport type ChargeAgentModelModificationTypeEnum = \"ReplaceAmount\" | \"AddAmount\" | \"Exclude\" | \"Add\";\r\nexport interface ChargeModel {\r\n \"chargeId\"?: number;\r\n \"chargeType\"?: ChargeModelChargeTypeEnum;\r\n \"name\"?: string;\r\n \"amount\"?: number;\r\n \"criteria\"?: Array;\r\n \"containerType\"?: ChargeModelContainerTypeEnum;\r\n \"unit\"?: ChargeModelUnitEnum;\r\n \"application\"?: ChargeModelApplicationEnum;\r\n \"paymentOption\"?: ChargeModelPaymentOptionEnum;\r\n \"chargeSetId\"?: number;\r\n \"chargeNameId\"?: number;\r\n \"sizeTypeId\"?: number;\r\n \"currencyId\"?: number;\r\n \"type\"?: ChargeModelTypeEnum;\r\n \"sourceChargeNameId\"?: number;\r\n \"minWeight\"?: number;\r\n \"maxWeight\"?: number;\r\n \"minUnit\"?: number;\r\n \"maxUnit\"?: number;\r\n}\r\n\r\nexport type ChargeModelChargeTypeEnum = \"Value\" | \"Source\" | \"Agent\";\r\nexport type ChargeModelCriteriaEnum = \"Hazardous\" | \"Owned\" | \"Goh\" | \"GohDouble\" | \"Nor\";\r\nexport type ChargeModelContainerTypeEnum = \"Dry\" | \"Rf\" | \"Fl\" | \"Ot\" | \"Tk\";\r\nexport type ChargeModelUnitEnum = \"Specific\" | \"Ctr\" | \"Teu\" | \"Bl\" | \"Cbm\" | \"Ton\" | \"Wm\" | \"Decl\" | \"Trans\";\r\nexport type ChargeModelApplicationEnum = \"Origin\" | \"Freight\" | \"Destination\" | \"General\" | \"Road\";\r\nexport type ChargeModelPaymentOptionEnum = \"Freight\" | \"Prepaid\" | \"Collect\";\r\nexport type ChargeModelTypeEnum = \"Incl\" | \"Percentage\";\r\n/**\r\n * Defines charge in offer\r\n */\r\nexport interface ChargeModelExport {\r\n \"chargeId\"?: number;\r\n /**\r\n * Type of charge\r\n */\r\n \"chargeType\"?: ChargeModelExportChargeTypeEnum;\r\n /**\r\n * Okargo code of charge\r\n */\r\n \"name\"?: string;\r\n \"amount\"?: number;\r\n /**\r\n * Defines application for a specific container\r\n */\r\n \"criteria\"?: Array;\r\n /**\r\n * Type of container\r\n */\r\n \"containerType\"?: ChargeModelExportContainerTypeEnum;\r\n /**\r\n * Unit of charge\r\n */\r\n \"unit\"?: ChargeModelExportUnitEnum;\r\n /**\r\n * Aplication of charge\r\n */\r\n \"application\"?: ChargeModelExportApplicationEnum;\r\n \"chargeSetId\"?: number;\r\n \"chargeNameId\"?: number;\r\n /**\r\n * Okargo charge name\r\n */\r\n \"chargeName\"?: string;\r\n /**\r\n * Size type of charge. Null for CTR/TEU/BL\r\n */\r\n \"sizeTypeId\"?: number;\r\n /**\r\n * Okargo size type code\r\n */\r\n \"sizeType\"?: string;\r\n \"currencyId\"?: number;\r\n /**\r\n * Okargo currency code\r\n */\r\n \"currency\"?: string;\r\n \"type\"?: ChargeModelExportTypeEnum;\r\n /**\r\n * Type of source charge\r\n */\r\n \"sourceChargeNameId\"?: number;\r\n /**\r\n * Source charge where this applied\r\n */\r\n \"sourceChargeName\"?: string;\r\n \"minWeight\"?: number;\r\n \"maxWeight\"?: number;\r\n \"minUnit\"?: number;\r\n \"maxUnit\"?: number;\r\n}\r\n\r\nexport type ChargeModelExportChargeTypeEnum = \"Value\" | \"Source\" | \"Agent\";\r\nexport type ChargeModelExportCriteriaEnum = \"Hazardous\" | \"Owned\" | \"Goh\" | \"GohDouble\" | \"Nor\";\r\nexport type ChargeModelExportContainerTypeEnum = \"Dry\" | \"Rf\" | \"Fl\" | \"Ot\" | \"Tk\";\r\nexport type ChargeModelExportUnitEnum = \"Specific\" | \"Ctr\" | \"Teu\" | \"Bl\" | \"Cbm\" | \"Ton\" | \"Wm\" | \"Decl\" | \"Trans\";\r\nexport type ChargeModelExportApplicationEnum = \"Origin\" | \"Freight\" | \"Destination\" | \"General\" | \"Road\";\r\nexport type ChargeModelExportTypeEnum = \"Incl\" | \"Percentage\";\r\nexport interface ChargeNameModel {\r\n \"chargeNameId\"?: number;\r\n \"code\"?: string;\r\n \"name\"?: string;\r\n \"shortName\"?: string;\r\n \"affectation\"?: ChargeNameModelAffectationEnum;\r\n \"application\"?: ChargeNameModelApplicationEnum;\r\n \"type\"?: ChargeNameModelTypeEnum;\r\n \"description\"?: string;\r\n \"aliases\"?: Array;\r\n}\r\n\r\nexport type ChargeNameModelAffectationEnum = \"BillOfLading\" | \"Container\" | \"PercentageOfTotal\";\r\nexport type ChargeNameModelApplicationEnum = \"Origin\" | \"Freight\" | \"Destination\" | \"General\" | \"Road\";\r\nexport type ChargeNameModelTypeEnum = \"Ocean\" | \"Inland\";\r\nexport type ChargeSetFlagEnum = \"None\" | \"PolDoor\" | \"PodDoor\" | \"WithTare\" | \"NoTare\" | \"Direct\";\r\n\r\nexport interface ChargeSetModel {\r\n \"chargeSetId\"?: number;\r\n \"enabled\"?: boolean;\r\n \"ratesUnitType\"?: ChargeSetModelRatesUnitTypeEnum;\r\n \"ratesPriceType\"?: ChargeSetModelRatesPriceTypeEnum;\r\n \"invalidated\"?: boolean;\r\n \"author\"?: string;\r\n \"comment\"?: string;\r\n \"deepLink\"?: string;\r\n \"transitTime\"?: number;\r\n \"bestTransitTime\"?: number;\r\n \"quotedDate\"?: Date;\r\n \"quotValidity\"?: Date;\r\n \"dateBegin\"?: Date;\r\n \"dateEnd\"?: Date;\r\n \"freightValidity\"?: Date;\r\n \"reference\"?: string;\r\n \"carrierReference\"?: string;\r\n \"clientSpot\"?: boolean;\r\n \"ratesOfferId\"?: number;\r\n \"freetime\"?: number;\r\n \"firmId\"?: number;\r\n \"containerType\"?: ChargeSetModelContainerTypeEnum;\r\n \"trafficType\"?: ChargeSetModelTrafficTypeEnum;\r\n \"carrierId\"?: number;\r\n \"routeSuggestedCalcId\"?: number;\r\n \"ratesFetchedRecordId\"?: number;\r\n \"source\"?: string;\r\n \"routeServiceId\"?: number;\r\n \"routeService\"?: RouteServiceModel;\r\n \"ratesServiceRelation\"?: ChargeSetModelRatesServiceRelationEnum;\r\n \"workDocumentsId\"?: number;\r\n \"receptionDate\"?: Date;\r\n \"creationDate\"?: Date;\r\n \"marketId\"?: number;\r\n \"carrierInfo\"?: string;\r\n \"routeId\"?: number;\r\n \"charges\"?: Array;\r\n \"departs\"?: Array;\r\n \"transShipments\"?: Array;\r\n \"offerInformations\"?: Array;\r\n \"flags\"?: Array;\r\n}\r\n\r\nexport type ChargeSetModelRatesUnitTypeEnum = \"Fcl\" | \"Lcl\";\r\nexport type ChargeSetModelRatesPriceTypeEnum = \"Contract\" | \"Spot\";\r\nexport type ChargeSetModelContainerTypeEnum = \"Dry\" | \"Rf\" | \"Fl\" | \"Ot\" | \"Tk\";\r\nexport type ChargeSetModelTrafficTypeEnum = \"Export\" | \"Import\" | \"CrossTrade\";\r\nexport type ChargeSetModelRatesServiceRelationEnum = \"NotAttached\" | \"Attached\";\r\n/**\r\n * Represent rates\r\n */\r\nexport interface ChargeSetModelExport {\r\n \"chargeSetId\"?: number;\r\n \"enabled\"?: boolean;\r\n /**\r\n * Type of units\r\n */\r\n \"ratesUnitType\"?: ChargeSetModelExportRatesUnitTypeEnum;\r\n /**\r\n * Rates price type\r\n */\r\n \"ratesPriceType\"?: ChargeSetModelExportRatesPriceTypeEnum;\r\n \"invalidated\"?: boolean;\r\n \"author\"?: string;\r\n \"comment\"?: string;\r\n /**\r\n * Booking link if it provided\r\n */\r\n \"deepLink\"?: string;\r\n \"source\"?: string;\r\n /**\r\n * Validity begin for charges\r\n */\r\n \"dateBegin\"?: Date;\r\n /**\r\n * Validity end for charges\r\n */\r\n \"dateEnd\"?: Date;\r\n /**\r\n * Validity of freight rates\r\n */\r\n \"freightValidity\"?: Date;\r\n /**\r\n * Time of quotation creation\r\n */\r\n \"quotedDate\"?: Date;\r\n /**\r\n * Validity of quote\r\n */\r\n \"quotValidity\"?: Date;\r\n /**\r\n * Reference of rates\r\n */\r\n \"reference\"?: string;\r\n /**\r\n * Estimated transit time\r\n */\r\n \"transitTime\"?: number;\r\n /**\r\n * Best transit time for route\r\n */\r\n \"bestTransitTime\"?: number;\r\n \"carrierReference\"?: string;\r\n \"clientSpot\"?: boolean;\r\n /**\r\n *\r\n */\r\n \"ratesOfferId\"?: number;\r\n \"ddSetId\"?: number;\r\n \"freetime\"?: number;\r\n \"firmId\"?: number;\r\n /**\r\n * Type of container\r\n */\r\n \"containerType\"?: ChargeSetModelExportContainerTypeEnum;\r\n /**\r\n * Type of traffic\r\n */\r\n \"trafficType\"?: ChargeSetModelExportTrafficTypeEnum;\r\n \"carrierId\"?: number;\r\n \"routeSuggestedCalcId\"?: number;\r\n \"workDocumentsId\"?: number;\r\n \"receptionDate\"?: Date;\r\n \"creationDate\"?: Date;\r\n \"marketId\"?: number;\r\n /**\r\n * Charges for offer\r\n */\r\n \"charges\"?: Array;\r\n}\r\n\r\nexport type ChargeSetModelExportRatesUnitTypeEnum = \"Fcl\" | \"Lcl\";\r\nexport type ChargeSetModelExportRatesPriceTypeEnum = \"Contract\" | \"Spot\";\r\nexport type ChargeSetModelExportContainerTypeEnum = \"Dry\" | \"Rf\" | \"Fl\" | \"Ot\" | \"Tk\";\r\nexport type ChargeSetModelExportTrafficTypeEnum = \"Export\" | \"Import\" | \"CrossTrade\";\r\nexport interface ClientModel {\r\n \"clientId\"?: number;\r\n \"cgu\"?: boolean;\r\n \"firstName\"?: string;\r\n \"lastName\"?: string;\r\n \"clientType\"?: ClientModelClientTypeEnum;\r\n \"phone1\"?: string;\r\n \"phone2\"?: string;\r\n \"creationDate\"?: Date;\r\n \"defaultLoading\"?: boolean;\r\n \"defaultUnLoading\"?: boolean;\r\n \"defaultMultiPorts\"?: boolean;\r\n \"defaultLastRates\"?: boolean;\r\n \"defaultSuggested\"?: boolean;\r\n \"defaultContainerPrice\"?: boolean;\r\n \"defaultByRatesOffer\"?: boolean;\r\n \"defaultAllMarkets\"?: boolean;\r\n \"defaultCarrierRates\"?: boolean;\r\n \"defaultHideNoRates\"?: boolean;\r\n \"defaultFreetime\"?: boolean;\r\n \"downloadMemo\"?: boolean;\r\n \"currencyId\"?: number;\r\n \"inlandCurrencyId\"?: number;\r\n \"languageId\"?: number;\r\n \"defaultQuotationContactId\"?: number;\r\n \"accountId\"?: number;\r\n \"account\"?: AccountModel;\r\n \"subscriptionId\"?: number;\r\n \"quotationClientSettings\"?: QuotationClientSettingsModel;\r\n \"subscriptions\"?: Array;\r\n \"agencies\"?: Array;\r\n}\r\n\r\nexport type ClientModelClientTypeEnum = \"Ff\" | \"Carrier\" | \"Other\";\r\nexport interface ContactModel {\r\n \"contactId\"?: number;\r\n \"contactType\"?: ContactModelContactTypeEnum;\r\n \"carrierId\"?: number;\r\n \"firstName\"?: string;\r\n \"lastName\"?: string;\r\n \"email1\"?: string;\r\n \"email2\"?: string;\r\n \"phone1\"?: string;\r\n \"phone2\"?: string;\r\n \"comment\"?: string;\r\n \"type\"?: ContactModelTypeEnum;\r\n \"firmId\"?: number;\r\n \"carrierAgency\"?: string;\r\n \"carrierAgencyId\"?: number;\r\n}\r\n\r\nexport interface SubscriptionsManagemenet {\r\n \"firmId\": number;\r\n \"isSelected\": boolean;\r\n \"name\": string;\r\n \"allowRatesManagment\"?: boolean;\r\n \"allowSelfUpload\"?: boolean;\r\n \"allowUserManagment\"?: boolean;\r\n \"allowOnlineQuotes\"?: boolean; \r\n\r\n\r\n \"subscriptionId\"?: number;\r\n \"subscriptionType\"?: SubscriptionModelSubscriptionTypeEnum;\r\n \"enabled\"?: boolean;\r\n\r\n \"creationDate\"?: Date;\r\n \"clientId\"?: number;\r\n \"title\"?: string;\r\n \"type\"?: SubscriptionModelTypeEnum;\r\n \"firm\"?: FirmModel;\r\n \"agencyId\"?: number;\r\n \"agency\"?: FirmModel;\r\n \"interfaceAccess\"?: boolean;\r\n \"okargoAccess\"?: boolean;\r\n \"statisticAccess\"?: boolean;\r\n \"carrierId\"?: number;\r\n \"carrier\"?: CarrierModel;\r\n\r\n}\r\n\r\n\r\nexport interface UserManagementModel {\r\n \"clientId\"?: number;\r\n \"cgu\"?: boolean;\r\n \"firstName\"?: string;\r\n \"lastName\"?: string;\r\n \"clientType\"?: ClientModelClientTypeEnum;\r\n \"phone1\"?: string;\r\n \"subscriptionFirms\": SubscriptionsManagemenet[];\r\n \"creationDate\"?: Date;\r\n \"accountId\"?: number;\r\n \"account\"?: AccountModel;\r\n \"subscriptionId\"?: number;\r\n\r\n \"agencies\"?: Array;\r\n}\r\n\r\n\r\n\r\nexport type ContactModelContactTypeEnum = \"Carrier\" | \"Agent\";\r\nexport type ContactModelTypeEnum = \"Sales\" | \"Booking\" | \"Both\";\r\nexport interface CreateMultiPortOffersModel {\r\n \"multiPortCarrierOffers\"?: Array;\r\n \"criteriaCode\"?: string;\r\n \"currencyId\"?: number;\r\n}\r\n\r\nexport interface CriteriaAgentModel {\r\n \"criteriaAgentId\"?: number;\r\n \"shipperName\"?: string;\r\n \"consigneeName\"?: string;\r\n \"isSpotOperation\"?: boolean;\r\n \"volume\"?: string;\r\n \"incoterm\"?: string;\r\n \"cargoDescription\"?: string;\r\n \"comment\"?: string;\r\n}\r\n\r\nexport type CriteriaModelLocationShippingTypeEnum = \"Cy\" | \"Door\";\r\n\r\nexport interface CriteriaModel {\r\n \"criteriaId\"?: number;\r\n \"code\"?: string;\r\n \"type\"?: CriteriaModelTypeEnum;\r\n \"containerType\"?: CriteriaModelContainerTypeEnum;\r\n \"origin\"?: LocationModel;\r\n \"destination\"?: LocationModel;\r\n \"originShippingType\"?: CriteriaModelLocationShippingTypeEnum;\r\n \"destinationShippingType\"?: CriteriaModelLocationShippingTypeEnum;\r\n \"loadingCharge\"?: boolean;\r\n \"prepaidCharge\"?: boolean;\r\n \"unLoadingCharge\"?: boolean;\r\n \"collectCharge\"?: boolean;\r\n \"containerPrice\"?: boolean;\r\n \"allDeparts\"?: boolean;\r\n \"lastRates\"?: boolean;\r\n \"suggested\"?: boolean;\r\n \"allMarkets\"?: boolean;\r\n \"showFreeTime\"?: boolean;\r\n \"includeSellingRates\"?: boolean;\r\n \"includeCarrierRates\"?: boolean;\r\n \"cbm\"?: number;\r\n \"ton\"?: number;\r\n \"dateBegin\"?: Date;\r\n \"dateEnd\"?: Date;\r\n \"creationDate\"?: Date;\r\n \"criteriaAgent\"?: CriteriaAgentModel;\r\n \"criteriaSizeTypes\"?: Array;\r\n \"criteriaSubscriptions\"?: Array;\r\n \"chargeCriterias\"?: Array;\r\n}\r\n\r\nexport type CriteriaModelTypeEnum = \"Fcl\" | \"Lcl\";\r\nexport type CriteriaModelContainerTypeEnum = \"Dry\" | \"Rf\" | \"Fl\" | \"Ot\" | \"Tk\";\r\nexport type CriteriaModelChargeCriteriasEnum = \"Hazardous\" | \"Owned\" | \"Goh\" | \"GohDouble\" | \"Nor\";\r\nexport interface CriteriaSizeTypeModel {\r\n \"criteriaSizeTypeId\"?: number;\r\n \"number\"?: number;\r\n \"weight\"?: number;\r\n \"weightUnit\"?: CriteriaSizeTypeModelWeightUnitEnum;\r\n \"criteriaId\"?: number;\r\n \"sizeTypeId\"?: number;\r\n}\r\n\r\nexport type CriteriaSizeTypeModelWeightUnitEnum = \"Kg\" | \"Ton\";\r\nexport interface CriteriaSubscriptionModel {\r\n \"criteriaSubscriptionId\"?: number;\r\n \"criteriaId\"?: number;\r\n \"subscriptionId\"?: number;\r\n}\r\n\r\nexport interface CurrencyModel {\r\n \"currencyId\"?: number;\r\n \"name\"?: string;\r\n \"code\"?: string;\r\n \"symbol\"?: string;\r\n \"value\"?: number;\r\n \"primary\"?: boolean;\r\n}\r\n\r\nexport interface CurrentUserModel {\r\n \"expiration\"?: Date;\r\n \"clientModel\"?: ClientModel;\r\n}\r\n\r\nexport interface DdChargeModel {\r\n \"ddChargeId\"?: number;\r\n \"enabled\"?: boolean;\r\n \"amount\"?: number;\r\n \"amountType\"?: DdChargeModelAmountTypeEnum;\r\n \"currencyId\"?: number;\r\n \"containerType\"?: DdChargeModelContainerTypeEnum;\r\n \"unit\"?: DdChargeModelUnitEnum;\r\n \"application\"?: DdChargeModelApplicationEnum;\r\n \"criteria\"?: Array;\r\n \"ddSetId\"?: number;\r\n \"ddChargeNameId\"?: number;\r\n \"dayCountCategory\"?: DdChargeModelDayCountCategoryEnum;\r\n \"sizeTypeId\"?: number;\r\n \"fromDay\"?: number;\r\n \"untilDay\"?: number;\r\n}\r\n\r\nexport type DdChargeModelAmountTypeEnum = \"Value\" | \"Free\";\r\nexport type DdChargeModelContainerTypeEnum = \"Dry\" | \"Rf\" | \"Fl\" | \"Ot\" | \"Tk\";\r\nexport type DdChargeModelUnitEnum = \"Specific\" | \"Ctr\" | \"Teu\" | \"Bl\" | \"Cbm\" | \"Ton\" | \"Wm\" | \"Decl\" | \"Trans\";\r\nexport type DdChargeModelApplicationEnum = \"Origin\" | \"Freight\" | \"Destination\" | \"General\" | \"Road\";\r\nexport type DdChargeModelCriteriaEnum = \"Hazardous\" | \"Owned\" | \"Goh\" | \"GohDouble\" | \"Nor\";\r\nexport type DdChargeModelDdChargeNameIdEnum = \"Detention\" | \"Demurage\" | \"DetAndDemComplete\" | \"PlugIn\" | \"Bt\" | \"Chassis\";\r\nexport type DdChargeModelDayCountCategoryEnum = \"Cal\" | \"Wrk\";\r\nexport interface DdChargeNameModel {\r\n \"ddChargeNameId\"?: number;\r\n \"name\"?: string;\r\n \"code\"?: string;\r\n}\r\n\r\n/**\r\n * Freetime representation\r\n */\r\nexport interface DdSetModel {\r\n \"ddSetId\"?: number;\r\n \"enabled\"?: boolean;\r\n \"creationDate\"?: Date;\r\n \"carrierId\"?: number;\r\n /**\r\n * Contract reference\r\n */\r\n \"reference\"?: string;\r\n \"ratesOfferId\"?: number;\r\n /**\r\n * Origin port where are charges applied\r\n */\r\n \"originPortId\"?: number;\r\n /**\r\n * Origin country where are charges applied\r\n */\r\n \"originCountryId\"?: number;\r\n /**\r\n * Destination port where are charges applied\r\n */\r\n \"destinationPortId\"?: number;\r\n /**\r\n * Destination country where are charges applied\r\n */\r\n \"destinationCountryId\"?: number;\r\n /**\r\n * Validity start\r\n */\r\n \"dateBegin\"?: Date;\r\n /**\r\n * Validity end\r\n */\r\n \"dateEnd\"?: Date;\r\n \"firmId\"?: number;\r\n \"charges\"?: Array;\r\n}\r\n\r\nexport interface DepartModel {\r\n \"departId\"?: number;\r\n \"enabled\"?: boolean;\r\n \"etd\"?: Date;\r\n \"transitTime\"?: number;\r\n \"uid\"?: string;\r\n \"defaultTransitTime\"?: number;\r\n \"vessel\"?: VesselModel;\r\n \"vesselId\"?: number;\r\n \"service\"?: string;\r\n \"source\"?: DepartModelSourceEnum;\r\n \"chargeSetId\"?: number;\r\n \"eta\"?: Date;\r\n}\r\n\r\nexport type DepartModelSourceEnum = \"Okargo\" | \"RatesApi\" | \"SchedulesApi\" | \"AutoGenerated\" | \"Guessed\" | \"Virtual\";\r\nexport interface DownloadRecentMultiPortModel {\r\n \"multiPortInstanceId\"?: number;\r\n \"dateBegin\"?: Date;\r\n \"dateEnd\"?: Date;\r\n}\r\n\r\nexport interface EditPasswordModel {\r\n \"oldPassword\"?: string;\r\n \"newPassword\"?: string;\r\n \"newPasswordConf\"?: string;\r\n}\r\n\r\nexport interface ErrorReportModel {\r\n \"lastAction\"?: ActionModel;\r\n \"message\"?: string;\r\n \"state\"?: any;\r\n}\r\n\r\nexport interface ExportBulkModel {\r\n /**\r\n * Start of the date range used to filter the offers\r\n */\r\n \"dateBegin\"?: Date;\r\n /**\r\n * End of the date range used to filter the offers\r\n */\r\n \"dateEnd\"?: Date;\r\n /**\r\n * Un/locode of the port you want to export your rates from\r\n */\r\n \"portCode\"?: string;\r\n /**\r\n * Type of traffic to filter the rates: 'Export' or 'Import'\r\n */\r\n \"trafficType\"?: ExportBulkModelTrafficTypeEnum;\r\n /**\r\n * How many routes to skip to fragment the export in multiple request (if needed)\r\n */\r\n \"skip\"?: number;\r\n /**\r\n * How many routes to take to fragment the export in multiple request (if needed)\r\n */\r\n \"take\"?: number;\r\n /**\r\n * What type of rates you want: 'Lcl' or 'Fcl' (default Fcl)\r\n */\r\n \"ratesUnitType\"?: ExportBulkModelRatesUnitTypeEnum;\r\n}\r\n\r\nexport type ExportBulkModelTrafficTypeEnum = \"Export\" | \"Import\" | \"CrossTrade\";\r\nexport type ExportBulkModelRatesUnitTypeEnum = \"Fcl\" | \"Lcl\";\r\nexport interface ExportBulkResultModel {\r\n \"port\"?: LocationModel;\r\n \"trafficType\"?: ExportBulkResultModelTrafficTypeEnum;\r\n \"carrierRoutes\"?: Array;\r\n \"routesCount\"?: number;\r\n}\r\n\r\nexport type ExportBulkResultModelTrafficTypeEnum = \"Export\" | \"Import\" | \"CrossTrade\";\r\nexport interface ExportDataResultModel {\r\n \"success\"?: boolean;\r\n \"message\"?: string;\r\n}\r\n\r\nexport interface ExportOfferModel {\r\n \"identification\"?: string;\r\n \"additionalData1\"?: string;\r\n \"additionalData2\"?: string;\r\n \"departId\"?: number;\r\n \"chargeSetId\"?: number;\r\n \"currencyId\"?: number;\r\n \"criteriaCode\"?: string;\r\n}\r\n\r\nexport interface ExportOfferToTmsModel {\r\n \"departId\"?: number;\r\n \"chargeSetId\"?: number;\r\n \"currencyId\"?: number;\r\n \"criteriaCode\"?: string;\r\n}\r\n\r\nexport interface ExternalChargeModel {\r\n \"chargeName\"?: string;\r\n \"chargeCode\"?: string;\r\n \"amount\"?: number;\r\n \"currencyCode\"?: string;\r\n \"currencyName\"?: string;\r\n \"sourceChargeName\"?: string;\r\n \"sourceChargeCode\"?: string;\r\n \"sourceType\"?: ExternalChargeModelSourceTypeEnum;\r\n \"application\"?: ExternalChargeModelApplicationEnum;\r\n \"unit\"?: ExternalChargeModelUnitEnum;\r\n \"containerSize\"?: ExternalChargeModelContainerSizeEnum;\r\n \"containerType\"?: ExternalChargeModelContainerTypeEnum;\r\n \"paymentOption\"?: ExternalChargeModelPaymentOptionEnum;\r\n}\r\n\r\nexport type ExternalChargeModelSourceTypeEnum = \"Incl\" | \"Percentage\";\r\nexport type ExternalChargeModelApplicationEnum = \"Origin\" | \"Freight\" | \"Destination\" | \"General\" | \"Road\";\r\nexport type ExternalChargeModelUnitEnum = \"Specific\" | \"Ctr\" | \"Teu\" | \"Bl\" | \"Cbm\" | \"Ton\" | \"Wm\" | \"Decl\" | \"Trans\";\r\nexport type ExternalChargeModelContainerSizeEnum = \"S20\" | \"S40\" | \"S40H\" | \"S45\";\r\nexport type ExternalChargeModelContainerTypeEnum = \"Dry\" | \"Rf\" | \"Fl\" | \"Ot\" | \"Tk\";\r\nexport type ExternalChargeModelPaymentOptionEnum = \"Freight\" | \"Prepaid\" | \"Collect\";\r\nexport interface ExternalChargeSetModel {\r\n \"reference\"?: string;\r\n \"isSpot\"?: boolean;\r\n \"startValidity\"?: Date;\r\n \"endValidity\"?: Date;\r\n \"offerInformations\"?: Array;\r\n \"charges\"?: Array;\r\n \"departs\"?: Array;\r\n}\r\n\r\nexport interface ExternalDepartModel {\r\n \"etd\"?: Date;\r\n \"vesselName\"?: string;\r\n \"vesselCode\"?: string;\r\n}\r\n\r\nexport interface ExternalDocumentsUpload {\r\n \"externalPartner\"?: string;\r\n \"externalKey\"?: string;\r\n \"carrierScac\"?: string;\r\n \"created\"?: Date;\r\n \"description\"?: string;\r\n \"files\"?: Array;\r\n}\r\n\r\nexport interface ExternalFetchLocationModel {\r\n \"code\"?: string;\r\n \"countryCode\"?: string;\r\n \"countryName\"?: string;\r\n \"name\"?: string;\r\n}\r\n\r\nexport interface ExternalFetchRouteModel {\r\n \"routeId\"?: number;\r\n \"pol\"?: ExternalFetchLocationModel;\r\n \"pod\"?: ExternalFetchLocationModel;\r\n \"weight\"?: number;\r\n}\r\n\r\nexport interface ExternalRatesModel {\r\n \"routeId\"?: number;\r\n \"carrierCode\"?: string;\r\n \"fetcherCode\"?: string;\r\n \"chargeSets\"?: Array;\r\n}\r\n\r\nexport interface FirmDocumentModel {\r\n \"firmDocumentId\"?: number;\r\n \"name\"?: string;\r\n \"carrierId\"?: number;\r\n \"firmId\"?: number;\r\n \"firm\"?: FirmModel;\r\n \"source\"?: FirmDocumentModelSourceEnum;\r\n \"fileName\"?: string;\r\n\r\n\r\n}\r\n\r\nexport type FirmDocumentModelSourceEnum = \"Client\" | \"Admin\";\r\nexport interface FirmModel {\r\n \"firmType\"?: FirmModelFirmTypeEnum;\r\n \"firmId\"?: number;\r\n \"status\"?: FirmModelStatusEnum;\r\n \"enabled\"?: boolean;\r\n \"name\"?: string;\r\n \"timePlanned\"?: number;\r\n \"serviceUrl\"?: string;\r\n \"ftpLogin\"?: string;\r\n \"ftpPassword\"?: string;\r\n \"okargoPhone\"?: string;\r\n \"okargoEmail\"?: string;\r\n \"dataFormat\"?: FirmModelDataFormatEnum;\r\n \"quotationSettingses\"?: Array;\r\n \"type\"?: FirmModelTypeEnum;\r\n \"companyGroupId\"?: number;\r\n \"quotationsCount\"?: number;\r\n \"prenium\"?: boolean;\r\n \"carrierAccess\"?: boolean;\r\n \"suggestedRates\"?: boolean;\r\n \"carrierRates\"?: boolean;\r\n \"allowQuotation\"?: boolean;\r\n \"allowInland\"?: boolean;\r\n \"allowLcl\"?: boolean;\r\n \"allowRatesExtraction\"?: boolean;\r\n \"companyGroup\"?: FirmModel;\r\n \"companyId\"?: number;\r\n \"company\"?: FirmModel;\r\n \"address\"?: AddressModel;\r\n \"agencyMarkets\"?: Array;\r\n}\r\n\r\nexport type FirmModelFirmTypeEnum = \"CompanyGroup\" | \"Company\" | \"Agency\";\r\nexport type FirmModelStatusEnum = \"Normal\" | \"Vip\" | \"Tester\";\r\nexport type FirmModelDataFormatEnum = \"Xml\" | \"Csv\" | \"Json\";\r\nexport type FirmModelTypeEnum = \"Normal\";\r\nexport interface FirmNewsModel {\r\n \"firmNewsId\"?: number;\r\n \"title\"?: string;\r\n \"content\"?: string;\r\n \"level\"?: FirmNewsModelLevelEnum;\r\n \"dateBegin\"?: Date;\r\n \"dateEnd\"?: Date;\r\n \"creationDate\"?: Date;\r\n \"firmId\"?: number;\r\n \"firm\"?: FirmModel;\r\n \"originZoneId\"?: number;\r\n \"destinationZoneId\"?: number;\r\n}\r\n\r\nexport type FirmNewsModelLevelEnum = \"Low\" | \"Normal\" | \"Important\";\r\nexport interface FormModel {\r\n \"action\"?: string;\r\n \"method\"?: string;\r\n \"contentType\"?: string;\r\n \"parameters\"?: Array;\r\n}\r\n\r\nexport interface FrequencyModel {\r\n \"frequencyId\"?: number;\r\n \"name\"?: string;\r\n \"code\"?: number;\r\n \"monday\"?: boolean;\r\n \"tuesday\"?: boolean;\r\n \"wednesday\"?: boolean;\r\n \"thursday\"?: boolean;\r\n \"friday\"?: boolean;\r\n \"saturday\"?: boolean;\r\n \"sunday\"?: boolean;\r\n}\r\n\r\nexport interface GetOnlineCarrierOffersModel {\r\n \"criteria\"?: CriteriaModel;\r\n \"ratesFetchers\"?: Array;\r\n}\r\n\r\nexport interface GetOnlineInlandCarrierOffersModel {\r\n \"inlandCriteria\"?: InlandCriteriaModel;\r\n \"ratesFetchers\"?: Array;\r\n}\r\n\r\nexport interface InlandCarrierModel {\r\n \"inlandCarrierId\"?: number;\r\n \"enabled\"?: boolean;\r\n \"name\"?: string;\r\n \"code\"?: string;\r\n \"scacCode\"?: string;\r\n \"type\"?: InlandCarrierModelTypeEnum;\r\n}\r\n\r\nexport type InlandCarrierModelTypeEnum = \"Normal\";\r\nexport interface InlandCarrierOfferModel {\r\n \"subscriptionId\"?: number;\r\n \"inlandCarrierId\"?: number;\r\n \"pickUpFound\"?: string;\r\n \"dropOffFound\"?: string;\r\n \"inlandChargeSet\"?: InlandChargeSetModel;\r\n \"inlandRatesOffer\"?: InlandRatesOfferModel;\r\n \"inlandRoute\"?: InlandRouteModel;\r\n \"offerInformations\"?: Array;\r\n}\r\n\r\nexport interface InlandCarrierOffersWithErrors {\r\n \"inlandCarrierOffers\"?: Array;\r\n \"errorByFetcherCode\"?: { [key: string]: Array; };\r\n}\r\n\r\nexport interface InlandChargeSetModel {\r\n \"inlandChargeSetId\"?: number;\r\n \"enabled\"?: boolean;\r\n \"reference\"?: string;\r\n \"dateBegin\"?: Date;\r\n \"dateEnd\"?: Date;\r\n \"transportValidity\"?: Date;\r\n \"creationDate\"?: Date;\r\n \"firmId\"?: number;\r\n \"inlandRouteId\"?: number;\r\n \"inlandWorkDocumentsId\"?: number;\r\n \"pickupEmptyName\"?: string;\r\n \"charges\"?: Array;\r\n}\r\n\r\nexport interface InlandCriteriaModel {\r\n \"inlandCriteriaId\"?: number;\r\n \"code\"?: string;\r\n \"dateBegin\"?: Date;\r\n \"dateEnd\"?: Date;\r\n \"creationDate\"?: Date;\r\n \"includeCarrierRates\"?: boolean;\r\n \"priceDisplayMode\"?: InlandCriteriaModelPriceDisplayModeEnum;\r\n \"containerType\"?: InlandCriteriaModelContainerTypeEnum;\r\n \"originId\"?: number;\r\n \"origin\"?: LocationModel;\r\n \"destinationId\"?: number;\r\n \"destination\"?: LocationModel;\r\n \"inlandCriteriaSizeTypes\"?: Array;\r\n \"chargeCriterias\"?: Array;\r\n}\r\n\r\nexport type InlandCriteriaModelPriceDisplayModeEnum = \"AllIn\" | \"ByCtr\";\r\nexport type InlandCriteriaModelContainerTypeEnum = \"Dry\" | \"Rf\" | \"Fl\" | \"Ot\" | \"Tk\";\r\nexport type InlandCriteriaModelChargeCriteriasEnum = \"Hazardous\" | \"Owned\" | \"Goh\" | \"GohDouble\" | \"Nor\";\r\nexport interface InlandCriteriaSizeTypeModel {\r\n \"inlandCriteriaSizeTypeId\"?: number;\r\n \"number\"?: number;\r\n \"inlandCriteriaId\"?: number;\r\n \"sizeTypeId\"?: number;\r\n}\r\n\r\nexport interface InlandRatesOfferModel {\r\n \"inlandRatesOfferId\"?: number;\r\n \"enabled\"?: boolean;\r\n \"type\"?: InlandRatesOfferModelTypeEnum;\r\n \"shortName\"?: string;\r\n \"reference\"?: string;\r\n \"comment\"?: string;\r\n \"inlandCarrierId\"?: number;\r\n \"firmId\"?: number;\r\n}\r\n\r\nexport type InlandRatesOfferModelTypeEnum = \"AllCtr\" | \"Special\";\r\nexport interface InlandRouteModel {\r\n \"inlandRouteId\"?: number;\r\n \"enabled\"?: boolean;\r\n \"type\"?: InlandRouteModelTypeEnum;\r\n \"pickupType\"?: InlandRouteModelPickupTypeEnum;\r\n \"inlandCarrierId\"?: number;\r\n \"pickupEmptyLocationId\"?: number;\r\n \"pickupEmptyLocation\"?: LocationModel;\r\n \"pickupEmptyName\"?: string;\r\n \"pickupLocationId\"?: number;\r\n \"pickupLocation\"?: LocationModel;\r\n \"dropOffLocationId\"?: number;\r\n \"dropOffLocation\"?: LocationModel;\r\n \"creationDate\"?: Date;\r\n}\r\n\r\nexport type InlandRouteModelTypeEnum = \"TruckRoundTrip\" | \"TruckOneWay\" | \"BargeTruckOneWay\" | \"RailTruckOneWay\";\r\nexport type InlandRouteModelPickupTypeEnum = \"Cargo\" | \"Empty\";\r\nexport interface InlandSelectionModel {\r\n \"clientActionId\"?: number;\r\n \"code\"?: string;\r\n \"inlandCarrierOffers\"?: Array;\r\n}\r\n\r\nexport interface KeyValuePairStringString {\r\n \"key\"?: string;\r\n \"value\"?: string;\r\n}\r\n\r\nexport interface LanguageModel {\r\n \"languageId\"?: number;\r\n \"name\"?: string;\r\n \"code\"?: string;\r\n \"supported\"?: boolean;\r\n}\r\n\r\nexport interface LocationDistanceModel {\r\n \"location\"?: LocationModel;\r\n \"distance\"?: number;\r\n}\r\n\r\nexport interface TransshipmentModel {\r\n \"port\": LocationModel,\r\n \"depart\": DepartModel,\r\n}\r\n\r\n\r\n/**\r\n * Extended location\r\n */\r\nexport interface LocationModel {\r\n /**\r\n * UnLocode of location\r\n */\r\n \"unLocode\"?: string;\r\n /**\r\n * Type of location\r\n */\r\n \"locationType\"?: LocationModelLocationTypeEnum;\r\n \"type\"?: LocationModelTypeEnum;\r\n \"status\"?: LocationModelStatusEnum;\r\n \"name\"?: string;\r\n /**\r\n * Location country\r\n */\r\n \"country\"?: LocationModel;\r\n \"port\"?: LocationModel;\r\n \"portsZoneId\"?: number;\r\n \"latitude\"?: number;\r\n \"longitude\"?: number;\r\n \"currencyId\"?: number;\r\n \"googlePlaceId\"?: string;\r\n \"inlandPlaceZipCodes\"?: Array;\r\n \"system\"?: LocationModelSystemEnum;\r\n \"portsInGroup\"?: Array;\r\n \"systemCode\"?: string;\r\n /**\r\n * Id of location\r\n */\r\n \"locationId\"?: number;\r\n /**\r\n * Okargo code of location\r\n */\r\n \"code\"?: string;\r\n}\r\n\r\nexport type LocationModelLocationTypeEnum = \"Port\" | \"Terminal\" | \"Country\" | \"InlandPlace\" | \"InlandLocationGroup\" | \"PortGroup\";\r\nexport type LocationModelTypeEnum = \"Base\" | \"OutPort\" | \"Dry\";\r\nexport type LocationModelStatusEnum = \"Secondary\" | \"Main\";\r\nexport type LocationModelSystemEnum = \"Lamy\" | \"Google\";\r\n/**\r\n * Base description of Okargo location\r\n */\r\nexport interface LocationModelBase {\r\n /**\r\n * Id of location\r\n */\r\n \"locationId\"?: number;\r\n /**\r\n * Okargo code of location\r\n */\r\n \"code\"?: string;\r\n}\r\n\r\nexport interface LoginModel {\r\n \"username\"?: string;\r\n \"password\"?: string;\r\n \"returnUrl\"?: string;\r\n \"toPostData\"?: Array;\r\n}\r\n\r\nexport interface MarketModel {\r\n \"marketId\"?: number;\r\n \"name\"?: string;\r\n \"code\"?: string;\r\n \"country\"?: LocationModel;\r\n \"port\"?: LocationModel;\r\n}\r\n\r\nexport interface MonthStatsPriceModel {\r\n \"year\"?: number;\r\n \"month\"?: number;\r\n \"sizeTypePriceAverages\"?: Array;\r\n}\r\n\r\nexport interface MultiPortCarrierOfferModel {\r\n \"routeConfigId\"?: number;\r\n \"chargeSetId\"?: number;\r\n \"ddSetId\"?: number;\r\n}\r\n\r\nexport interface MultiPortInstanceModel {\r\n \"multiPortInstanceId\"?: number;\r\n \"name\"?: string;\r\n \"status\"?: MultiPortInstanceModelStatusEnum;\r\n \"creationDate\"?: Date;\r\n \"clientId\"?: number;\r\n \"multiPortOffersCount\"?: number;\r\n \"multiPortOffers\"?: Array;\r\n}\r\n\r\nexport type MultiPortInstanceModelStatusEnum = \"Created\" | \"Selecting\" | \"Downloaded\" | \"Canceled\";\r\nexport interface MultiPortOfferModel {\r\n \"multiPortOfferId\"?: number;\r\n \"carrierId\"?: number;\r\n \"routeConfig\"?: RouteConfigModel;\r\n \"originPort\"?: LocationModel;\r\n \"destinationPort\"?: LocationModel;\r\n \"originTerminal\"?: LocationModel;\r\n \"destinationTerminal\"?: LocationModel;\r\n \"chargeSet\"?: ChargeSetModel;\r\n \"ratesOffer\"?: RatesOfferModel;\r\n \"criteria\"?: CriteriaModel;\r\n \"ddSet\"?: DdSetModel;\r\n \"currencyId\"?: number;\r\n}\r\n\r\n/**\r\n * Additional information about workdocument/chargeSet\r\n */\r\nexport interface OfferInformationModel {\r\n \"offerInformationId\"?: number;\r\n \"enabled\"?: boolean;\r\n /**\r\n * Source of information\r\n */\r\n \"source\"?: OfferInformationModelSourceEnum;\r\n \"content\"?: string;\r\n /**\r\n * Level of priority\r\n */\r\n \"level\"?: OfferInformationModelLevelEnum;\r\n \"creationDate\"?: Date;\r\n \"workDocumentsId\"?: number;\r\n \"chargeSetId\"?: number;\r\n}\r\n\r\nexport type OfferInformationModelSourceEnum = \"Client\" | \"Admin\" | \"Carrier\";\r\nexport type OfferInformationModelLevelEnum = \"Low\" | \"Normal\" | \"High\";\r\nexport interface OfferMemoModel {\r\n \"offerMemoId\"?: number;\r\n \"carrierId\"?: number;\r\n \"chargeSetId\"?: number;\r\n \"chargeSet\"?: ChargeSetModel;\r\n \"departId\"?: number;\r\n \"depart\"?: DepartModel;\r\n \"routeConfig\"?: RouteConfigModel;\r\n \"originPort\"?: LocationModel;\r\n \"destinationPort\"?: LocationModel;\r\n \"originTerminal\"?: LocationModel;\r\n \"destinationTerminal\"?: LocationModel;\r\n \"criteria\"?: CriteriaModel;\r\n \"subscriptionId\"?: number;\r\n \"currencyId\"?: number;\r\n \"creationDate\"?: Date;\r\n}\r\n\r\nexport interface OfferSelectionModel {\r\n \"chargeSetId\"?: number;\r\n \"departId\"?: number;\r\n \"currencyId\"?: number;\r\n \"criteriaCode\"?: string;\r\n}\r\n\r\nexport interface OkargoHubUserModel {\r\n \"username\"?: string;\r\n \"connectionId\"?: string;\r\n}\r\n\r\n/**\r\n * Represent rates for carrier\r\n */\r\nexport interface OnlineCarrierOfferExportModel {\r\n \"carrier\"?: CarrierModelExport;\r\n /**\r\n * List of offers\r\n */\r\n \"offers\"?: Array;\r\n}\r\n\r\n/**\r\n * Route information\r\n */\r\nexport interface OnlineCarrierOfferRouteExportModel {\r\n /**\r\n * Code of service\r\n */\r\n \"serviceCode\"?: string;\r\n /**\r\n * Transit time in days\r\n */\r\n \"transitTime\"?: number;\r\n /**\r\n * Best transit time for route if is available\r\n */\r\n \"bestTransitTime\"?: number;\r\n /**\r\n * Origin location\r\n */\r\n \"originPort\"?: LocationModel;\r\n /**\r\n * Destination location\r\n */\r\n \"destinationPort\"?: LocationModel;\r\n /**\r\n * Origin terminal if is available\r\n */\r\n \"originTerminal\"?: LocationModel;\r\n /**\r\n * Destination terminal if is available\r\n */\r\n \"destinationTerminal\"?: LocationModel;\r\n /**\r\n * Departs for service\r\n */\r\n \"departs\"?: Array;\r\n /**\r\n * Transhipment ports\r\n */\r\n \"transShipments\"?: Array;\r\n}\r\n\r\n/**\r\n * Request model for rates and online quotes\r\n */\r\nexport interface OnlineCarrierOffersExportCriteriaModel {\r\n /**\r\n * Definies port of loading\r\n */\r\n \"origin\"?: LocationModelBase;\r\n /**\r\n * Definies port of discharge\r\n */\r\n \"destination\"?: LocationModelBase;\r\n /**\r\n * Begin of validity\r\n */\r\n \"dateBegin\"?: Date;\r\n /**\r\n * End of validity\r\n */\r\n \"dateEnd\"?: Date;\r\n /**\r\n * Defines special application for a specific container\r\n */\r\n \"chargeCriterias\"?: Array;\r\n /**\r\n * Definies if value of charge is applied on a specific equipment/container type\r\n */\r\n \"containerType\"?: OnlineCarrierOffersExportCriteriaModelContainerTypeEnum;\r\n \"ratesFetchers\"?: Array;\r\n /**\r\n * Code for specific fetcher.\r\n */\r\n \"ratesFetcher\"?: string;\r\n /**\r\n * Returns free time if it is available\r\n */\r\n \"freeTime\"?: boolean;\r\n /**\r\n * Requested size types\r\n */\r\n \"sizeTypes\"?: Array;\r\n}\r\n\r\nexport type OnlineCarrierOffersExportCriteriaModelChargeCriteriasEnum = \"Hazardous\" | \"Owned\" | \"Goh\" | \"GohDouble\" | \"Nor\";\r\nexport type OnlineCarrierOffersExportCriteriaModelContainerTypeEnum = \"Dry\" | \"Rf\" | \"Fl\" | \"Ot\" | \"Tk\";\r\n/**\r\n * Provides offers for specific get rates operation\r\n */\r\nexport interface OnlineCarrierOffersExportModel {\r\n /**\r\n * Created time\r\n */\r\n \"created\"?: Date;\r\n /**\r\n * Succes of operation\r\n */\r\n \"success\"?: boolean;\r\n /**\r\n * Global error message\r\n */\r\n \"message\"?: string;\r\n /**\r\n * Status code\r\n */\r\n \"code\"?: number;\r\n \"carrierOffers\"?: Array;\r\n /**\r\n * Specific error message for fetchers\r\n */\r\n \"errorByFetcherCode\"?: { [key: string]: string; };\r\n}\r\n\r\n/**\r\n * Defines container size. Id or code required\r\n */\r\nexport interface OnlineCarrierOffersExportSizeTypeModel {\r\n /**\r\n * ID of sizetype\r\n */\r\n \"sizeTypeId\"?: number;\r\n /**\r\n * Name of size type\r\n */\r\n \"name\"?: string;\r\n /**\r\n * Weight of cargo\r\n */\r\n \"weight\"?: number;\r\n /**\r\n * Unit of weight\r\n */\r\n \"weightUnit\"?: OnlineCarrierOffersExportSizeTypeModelWeightUnitEnum;\r\n}\r\n\r\nexport type OnlineCarrierOffersExportSizeTypeModelWeightUnitEnum = \"Kg\" | \"Ton\";\r\n/**\r\n * Represent one offer from carrier\r\n */\r\nexport interface OnlineOfferExportModel {\r\n /**\r\n * Represent charges in offer\r\n */\r\n \"chargeSet\"?: ChargeSetModelExport;\r\n /**\r\n * Freetime\r\n */\r\n \"ddSet\"?: DdSetModel;\r\n /**\r\n * Avaibility of rates for sizes\r\n */\r\n \"ratesAvailabilitys\"?: Array;\r\n /**\r\n *\r\n */\r\n \"routes\"?: Array;\r\n /**\r\n * Additional information about rates\r\n */\r\n \"offerInformations\"?: Array;\r\n /**\r\n * Information about contract\r\n */\r\n \"ratesOffer\"?: RatesOfferModel;\r\n}\r\n\r\nexport interface PortsZoneModel {\r\n \"portsZoneId\"?: number;\r\n \"name\"?: string;\r\n \"code\"?: string;\r\n}\r\n\r\nexport interface QuotationChargeAmountModel {\r\n \"quotationChargeAmountId\"?: number;\r\n \"sizeTypeId\"?: number;\r\n \"amount\"?: number;\r\n \"level\"?: number;\r\n \"originalChargeId\"?: number;\r\n}\r\n\r\nexport interface QuotationChargeNameLevels {\r\n chargeName: ChargeNameModel;\r\n levels: number;\r\n currencyId: number;\r\n}\r\n\r\nexport interface QuotationChargeModel {\r\n \"quotationChargeId\"?: number;\r\n \"visible\"?: boolean;\r\n \"quotationId\"?: number;\r\n \"chargeNameId\"?: number;\r\n \"level\": number;\r\n \"application\"?: QuotationChargeModelApplicationEnum;\r\n \"quotationChargeAmounts\"?: Array;\r\n}\r\n\r\nexport type QuotationChargeModelApplicationEnum = \"Origin\" | \"Freight\" | \"Destination\" | \"General\" | \"Road\";\r\nexport interface QuotationClientSettingsModel {\r\n \"quotationClientSettingsId\"?: number;\r\n \"clientId\"?: number;\r\n \"clientType\"?: QuotationClientSettingsModelClientTypeEnum;\r\n \"incoterm\"?: string;\r\n \"hideIncluded\"?: boolean;\r\n \"showCarrier\"?: boolean;\r\n}\r\n\r\nexport type QuotationClientSettingsModelClientTypeEnum = \"Client\" | \"Prospect\" | \"Agent\" | \"None\";\r\nexport interface QuotationContactModel {\r\n \"quotationContactId\"?: number;\r\n \"type\"?: QuotationContactModelTypeEnum;\r\n \"clientType\"?: QuotationContactModelClientTypeEnum;\r\n \"company\"?: string;\r\n \"agency\"?: string;\r\n \"firstName\"?: string;\r\n \"lastName\"?: string;\r\n \"street1\"?: string;\r\n \"street2\"?: string;\r\n \"street3\"?: string;\r\n \"city\"?: string;\r\n \"postalCode\"?: string;\r\n \"country\"?: string;\r\n \"email\"?: string;\r\n \"phone1\"?: string;\r\n \"phone2\"?: string;\r\n}\r\n\r\nexport type QuotationContactModelTypeEnum = \"FreightForwarder\" | \"Client\" | \"Okargo\";\r\nexport type QuotationContactModelClientTypeEnum = \"Client\" | \"Prospect\" | \"Agent\" | \"None\";\r\nexport interface QuotationCurrencyModel {\r\n \"quotationCurrencyId\"?: number;\r\n \"value\"?: number;\r\n \"currencyId\"?: number;\r\n \"quotationId\"?: number;\r\n \"displayType\"?: QuotationCurrencyModelDisplayTypeEnum;\r\n}\r\n\r\nexport type QuotationCurrencyModelDisplayTypeEnum = \"ToUsd\" | \"FromUsd\";\r\nexport interface QuotationDocumentModel {\r\n \"quotationDocumentId\"?: number;\r\n \"quotationId\"?: number;\r\n \"documentId\"?: number;\r\n}\r\n\r\nexport interface QuotationFeeAmountModel {\r\n \"quotationFeeAmountId\"?: number;\r\n \"baseAmount\"?: number;\r\n \"amount\"?: number;\r\n \"label\"?: string;\r\n \"currencyId\"?: number;\r\n \"sizeTypeId\"?: number;\r\n \"quotationFeeId\"?: number;\r\n}\r\n\r\nexport interface QuotationFeeLabelModel {\r\n \"quotationChargeLabelId\"?: number;\r\n \"content\"?: string;\r\n \"quotationFeeId\"?: number;\r\n}\r\n\r\nexport interface QuotationFeeModel {\r\n \"quotationFeeId\"?: number;\r\n \"name\"?: string;\r\n \"unit\"?: string;\r\n \"visible\"?: boolean;\r\n \"type\"?: QuotationFeeModelTypeEnum;\r\n \"quotationId\"?: number;\r\n \"quotationOfferId\"?: number;\r\n \"application\"?: QuotationFeeModelApplicationEnum;\r\n \"affectation\"?: QuotationFeeModelAffectationEnum;\r\n \"quotationFeeAmounts\"?: Array;\r\n \"quotationFeeLabels\"?: Array;\r\n}\r\n\r\nexport type QuotationFeeModelTypeEnum = \"Normal\" | \"Origin\" | \"Freight\" | \"Destination\" | \"PreTransport\" | \"PostTransport\" | \"Bl\" | \"BlOrigin\" | \"BlFreight\" | \"BlDestination\" | \"BlPreTransport\" | \"BlPostTransport\";\r\nexport type QuotationFeeModelApplicationEnum = \"Origin\" | \"Freight\" | \"Destination\" | \"General\" | \"Road\";\r\nexport type QuotationFeeModelAffectationEnum = \"BillOfLading\" | \"Container\" | \"PercentageOfTotal\";\r\nexport interface QuotationFilterModel {\r\n \"reference\"?: string;\r\n \"dateBegin\"?: Date;\r\n \"dateEnd\"?: Date;\r\n \"client\"?: string;\r\n \"freightForwarder\"?: string;\r\n \"trafficType\"?: QuotationFilterModelTrafficTypeEnum;\r\n \"origin\"?: LocationModel;\r\n \"destination\"?: LocationModel;\r\n \"carrierId\"?: number;\r\n}\r\n\r\nexport type QuotationFilterModelTrafficTypeEnum = \"Export\" | \"Import\" | \"CrossTrade\";\r\nexport interface QuotationModel {\r\n \"quotationId\"?: number;\r\n \"type\"?: QuotationModelTypeEnum;\r\n \"status\"?: QuotationModelStatusEnum;\r\n \"preview\"?: boolean;\r\n \"name\"?: string;\r\n \"reference\"?: string;\r\n \"showExchangeRates\"?: boolean;\r\n \"showCarrier\"?: boolean;\r\n \"byContainer\"?: boolean;\r\n \"terms\"?: string;\r\n \"addInfo\"?: string;\r\n \"detailsLevel\"?: QuotationModelDetailsLevelEnum;\r\n \"totalType\"?: QuotationModelTotalTypeEnum;\r\n \"originInfo\"?: string;\r\n \"destinationInfo\"?: string;\r\n \"fobOrigin\"?: string;\r\n \"fobDestination\"?: string;\r\n \"frtOrigin\"?: string;\r\n \"frtDestination\"?: string;\r\n \"destinationOrigin\"?: string;\r\n \"destinationDestination\"?: string;\r\n \"incoterm\"?: string;\r\n \"incotermLocation\"?: string;\r\n \"serviceName\"?: string;\r\n \"cargoDesc\"?: string;\r\n \"weight\"?: string;\r\n \"minTransitTime\"?: number;\r\n \"maxTransitTime\"?: number;\r\n \"transShipments\"?: string;\r\n \"frequency\"?: QuotationModelFrequencyEnum;\r\n \"validityBegin\"?: Date;\r\n \"validityEnd\"?: Date;\r\n \"creationDate\"?: Date;\r\n \"receptionDate\"?: Date;\r\n \"reminderDate\"?: Date;\r\n \"success\"?: boolean;\r\n \"comment\"?: string;\r\n \"firmScope\"?: QuotationModelFirmScopeEnum;\r\n \"languageId\"?: number;\r\n \"subscriptionId\"?: number;\r\n \"ffContactId\"?: number;\r\n \"ffContact\"?: QuotationContactModel;\r\n \"clientContactId\"?: number;\r\n \"clientContact\"?: QuotationContactModel;\r\n \"quotationTemplateSettings\"?: QuotationTemplateSettingsModel;\r\n \"criteria\"?: CriteriaModel;\r\n \"currencyId\"?: number;\r\n \"currencyOriginId\"?: number;\r\n \"currencyFreightId\"?: number;\r\n \"currencyDestinationId\"?: number;\r\n \"termsDocumentId\"?: number;\r\n \"previousVersionId\"?: number;\r\n \"nextVersionId\"?: number;\r\n \"author\"?: string;\r\n \"quotationOffers\"?: Array;\r\n \"quotationCharges\"?: Array;\r\n \"quotationCurrencies\"?: Array;\r\n \"quotationFees\"?: Array;\r\n \"quotationDocuments\"?: Array;\r\n \"previousQuotations\"?: Array;\r\n}\r\n\r\nexport type QuotationModelTypeEnum = \"Normal\" | \"Template\";\r\nexport type QuotationModelStatusEnum = \"Created\" | \"Success\" | \"Failure\";\r\nexport type QuotationModelDetailsLevelEnum = \"Full\" | \"PartialTotal\" | \"None\" | \"PartialCharges\";\r\nexport type QuotationModelTotalTypeEnum = \"AllIn\" | \"ByCurrency\" | \"None\";\r\nexport type QuotationModelFrequencyEnum = \"Weekly\" | \"TwiceAWeek\" | \"Monthly\";\r\nexport type QuotationModelFirmScopeEnum = \"Agency\" | \"Company\" | \"Group\" | \"Personal\";\r\nexport interface QuotationOfferModel {\r\n \"carrierOffer\"?: CarrierOfferModel;\r\n \"departId\"?: number;\r\n \"routeId\"?: number;\r\n}\r\n\r\nexport interface QuotationSettingsModel {\r\n \"quotationSettingsId\"?: number;\r\n \"quotationExpirationDays\"?: number;\r\n \"enabled\"?: boolean;\r\n \"defaultAdditionalInfo\"?: string;\r\n \"defaultTerms\"?: string;\r\n \"agentAdditionalInfo\"?: string;\r\n}\r\n\r\nexport interface QuotationTemplateSettingsModel {\r\n \"quotationTemplateSettingsId\"?: number;\r\n \"templateType\"?: QuotationTemplateSettingsModelTemplateTypeEnum;\r\n \"includeAdditionalInfo\"?: boolean;\r\n \"includeTerms\"?: boolean;\r\n \"includeDetailsLevel\"?: boolean;\r\n \"includeTotalType\"?: boolean;\r\n \"includeShowExchangeRates\"?: boolean;\r\n \"includeExchangeRates\"?: boolean;\r\n \"includeLanguage\"?: boolean;\r\n \"quotationId\"?: number;\r\n}\r\n\r\nexport type QuotationTemplateSettingsModelTemplateTypeEnum = \"Normal\" | \"Master\";\r\nexport interface RatesAvailabilityModel {\r\n \"ratesAvailabilityId\"?: number;\r\n \"agreedAllocation\"?: number;\r\n \"usedAllocation\"?: number;\r\n \"containerLeft\"?: number;\r\n \"status\"?: RatesAvailabilityModelStatusEnum;\r\n \"sizeTypeId\"?: number;\r\n \"departId\"?: number;\r\n \"firmId\"?: number;\r\n \"chargeSetId\"?: number;\r\n \"ratesOfferId\"?: number;\r\n}\r\n\r\nexport type RatesAvailabilityModelStatusEnum = \"Allocation\" | \"Available\" | \"NotAvailable\" | \"FewAvailable\";\r\nexport interface RatesFetcherErrorModel {\r\n \"type\"?: RatesFetcherErrorModelTypeEnum;\r\n \"message\"?: string;\r\n \"carrierRatesPlatformId\"?: number;\r\n}\r\n\r\nexport type RatesFetcherErrorModelTypeEnum = \"Unknown\" | \"MappingError\" | \"Unsuported\" | \"RouteError\" | \"Exception\" | \"NoConnection\" | \"AuthenticationError\" | \"ApiLimitReached\" | \"OkargoApiLimitReached\" | \"AntiBotStarted\" | \"InternalError\" | \"AdditionalChargesRequired\" | \"UnsuportedRoute\" | \"Mfa\" | \"BlackListed\" | \"AccountExpired\" | \"EmptyResults\" | \"CaptchaNoCredits\" | \"UnsuportedContainer\" | \"NoRightsForAccess\" | \"MfaSystem\" | \"DuplicateRequest\" | \"WrongCredentionals\";\r\n/** | \"UnsuportedContainer\"\r\n * Definition of contract\r\n */\r\nexport interface RatesOfferModel {\r\n \"ratesOfferId\"?: number;\r\n /**\r\n * Id firm where cotract belongs\r\n */\r\n \"firmId\"?: number;\r\n /**\r\n * Type of rates\r\n */\r\n \"type\"?: RatesOfferModelTypeEnum;\r\n /**\r\n * Commodity for contract\r\n */\r\n \"commodity\"?: string;\r\n /**\r\n * Name on named account\r\n */\r\n \"nac\"?: string;\r\n /**\r\n * Traffice direction\r\n */\r\n \"trafficType\"?: RatesOfferModelTrafficTypeEnum;\r\n /**\r\n * List of references under contract\r\n */\r\n \"references\"?: Array;\r\n \"description\"?: string;\r\n /**\r\n * Level of importance for description\r\n */\r\n \"level\"?: RatesOfferModelLevelEnum;\r\n \"shortName\"?: string;\r\n /**\r\n * List of carriers which belongs to contract\r\n */\r\n \"carriers\"?: Array;\r\n \"enabled\"?: boolean;\r\n \"owner\"?: string;\r\n \"creationDate\"?: Date;\r\n \"lastUpdate\"?: Date;\r\n}\r\n\r\nexport type RatesOfferModelTypeEnum = \"Fak\" | \"Special\";\r\nexport type RatesOfferModelTrafficTypeEnum = \"Export\" | \"Import\" | \"CrossTrade\";\r\nexport type RatesOfferModelLevelEnum = \"Low\" | \"Normal\" | \"High\";\r\nexport interface ReferenceModel {\r\n \"referenceId\"?: number;\r\n \"value\"?: string;\r\n}\r\n\r\nexport interface RequestResetPasswordModel {\r\n \"email\"?: string;\r\n}\r\n\r\nexport interface RequestStatsPriceModel {\r\n \"origin\"?: LocationModel;\r\n \"destination\"?: LocationModel;\r\n}\r\n\r\nexport interface ResetPasswordModel {\r\n \"token\"?: string;\r\n \"password\"?: string;\r\n \"passwordConfirmation\"?: string;\r\n}\r\n\r\nexport interface RouteConfigModel {\r\n \"routeConfigId\"?: number;\r\n \"routeId\"?: number;\r\n \"carrierId\"?: number;\r\n \"lastUpdate\"?: Date;\r\n \"source\"?: RouteConfigModelSourceEnum;\r\n \"transitTime\"?: number;\r\n \"bestTransitTime\"?: number;\r\n \"freeTimeOrigin\"?: number;\r\n \"freeTimeDestination\"?: number;\r\n \"schedulesFetchedRecordId\"?: number;\r\n \"frequency\"?: FrequencyModel;\r\n \"routeService\"?: RouteServiceModel;\r\n \"routeServiceId\"?: number;\r\n \"accuracy\"?: RouteConfigModelAccuracyEnum;\r\n \"transShipments\"?: Array;\r\n \"departs\"?: Array;\r\n}\r\n\r\nexport type RouteConfigModelSourceEnum = \"Manual\" | \"ScheduleSystem\" | \"CarrierRates\" | \"ManualFromGrid\";\r\nexport type RouteConfigModelAccuracyEnum = \"Good\" | \"Bad\";\r\nexport interface RouteExportModel {\r\n \"transitTime\"?: number;\r\n \"bestTransitTime\"?: number;\r\n \"frequency\"?: FrequencyModel;\r\n \"originPort\"?: LocationModel;\r\n \"destinationPort\"?: LocationModel;\r\n \"originTerminal\"?: LocationModel;\r\n \"destinationTerminal\"?: LocationModel;\r\n \"transShipments\"?: Array;\r\n \"chargeSets\"?: Array;\r\n \"ratesOffers\"?: { [key: string]: RatesOfferModel; };\r\n}\r\n\r\nexport interface RouteLclConfigModel {\r\n \"routeLclConfigId\"?: number;\r\n \"enabled\"?: boolean;\r\n \"lastUpdateDate\"?: Date;\r\n \"creationDate\"?: Date;\r\n \"routeId\"?: number;\r\n \"originCfs\"?: LocationModel;\r\n \"originCfsId\"?: number;\r\n \"destinationCfs\"?: LocationModel;\r\n \"destinationCfsId\"?: number;\r\n}\r\n\r\nexport interface RouteRatesPlatformDataModel {\r\n \"routeRatesPlatformDataId\"?: number;\r\n \"carrierId\"?: number;\r\n \"originPortId\"?: number;\r\n \"originPort\"?: LocationModel;\r\n \"originCountryId\"?: number;\r\n \"originPortsZoneId\"?: number;\r\n \"destinationPortId\"?: number;\r\n \"destinationPort\"?: LocationModel;\r\n \"destinationCountryId\"?: number;\r\n \"destinationPortsZoneId\"?: number;\r\n}\r\n\r\nexport interface RouteServiceModel {\r\n \"routeServiceId\"?: number;\r\n \"code\"?: string;\r\n \"name\"?: string;\r\n \"source\"?: RouteConfigModelSourceEnum;\r\n \"routeId\"?: number;\r\n \"creationDate\"?: Date;\r\n}\r\n\r\nexport interface SearchAgentSearchModel {\r\n \"name\"?: string;\r\n \"fromDate\"?: Date;\r\n \"origin\"?: LocationModel;\r\n \"destination\"?: LocationModel;\r\n}\r\n\r\nexport interface SearchByAddressModel {\r\n \"address\"?: string;\r\n}\r\n\r\nexport interface SearchByAddressResult {\r\n \"locationDistances\"?: Array;\r\n \"addressFound\"?: string;\r\n \"lat\"?: number;\r\n \"lng\"?: number;\r\n}\r\n\r\nexport interface SearchCriteriaHistoryModel {\r\n \"fromDate\"?: Date;\r\n}\r\n\r\nexport interface SearchInlandRatesOffersModel {\r\n \"inlandCarrierId\"?: number;\r\n \"term\"?: string;\r\n}\r\n\r\nexport interface SearchMultiPortsModel {\r\n \"fromDate\"?: Date;\r\n}\r\n\r\nexport interface SearchOfferMemoHistoryModel {\r\n \"fromDate\"?: Date;\r\n}\r\n\r\nexport interface SearchRatesOffersModel {\r\n \"searchTerm\"?: string;\r\n \"carrierId\"?: number;\r\n}\r\n\r\nexport interface SearchWorkDocumentsModel {\r\n \"carrierId\"?: number;\r\n \"trafficType\"?: SearchWorkDocumentsModelTrafficTypeEnum;\r\n \"origin\"?: LocationModel;\r\n \"destination\"?: LocationModel;\r\n \"reference\"?: string;\r\n \"onlyEnabled\"?: boolean;\r\n}\r\n\r\nexport type SearchWorkDocumentsModelTrafficTypeEnum = \"Export\" | \"Import\" | \"CrossTrade\";\r\nexport interface SeedModel {\r\n \"currencies\"?: { [key: string]: CurrencyModel; };\r\n \"languages\"?: { [key: string]: LanguageModel; };\r\n \"sizeTypes\"?: { [key: string]: SizeTypeModel; };\r\n \"chargeNames\"?: { [key: string]: ChargeNameModel; };\r\n \"ddChargeNames\"?: { [key: string]: DdChargeNameModel; };\r\n \"carriers\"?: { [key: string]: CarrierModel; };\r\n \"carrierGroups\"?: { [key: string]: CarrierGroupModel; };\r\n \"portsZones\"?: { [key: string]: PortsZoneModel; };\r\n \"markets\"?: { [key: string]: MarketModel; };\r\n \"inlandCarriers\"?: { [key: string]: InlandCarrierModel; };\r\n \"carrierRatesPlatforms\"?: { [key: string]: CarrierRatesPlatformModel; };\r\n \"countries\"?: { [key: string]: LocationModel; };\r\n}\r\n\r\nexport interface SelectionModel {\r\n \"clientActionId\"?: number;\r\n \"carrierRatings\"?: { [key: string]: CarrierRatingModel; };\r\n \"carrierOffers\"?: Array;\r\n \"firmNewses\"?: Array;\r\n \"errors\"?: Array;\r\n}\r\n\r\nexport interface SellingRatesModel {\r\n \"sellingRatesId\"?: number;\r\n \"creationDate\"?: Date;\r\n \"author\"?: string;\r\n \"firmId\"?: number;\r\n \"firm\"?: FirmModel;\r\n \"originPortId\"?: number;\r\n \"originPort\"?: LocationModel;\r\n \"destinationPortId\"?: number;\r\n \"destinationPort\"?: LocationModel;\r\n \"originPortsZoneId\"?: number;\r\n \"originPortsZone\"?: PortsZoneModel;\r\n \"destinationPortsZoneId\"?: number;\r\n \"destinationPortsZone\"?: PortsZoneModel;\r\n \"sellingRatesValues\"?: Array;\r\n}\r\n\r\nexport interface SellingRatesValueModel {\r\n \"sellingRatesValueId\"?: number;\r\n \"sellingMargin\"?: number;\r\n \"sellingMarginType\"?: SellingRatesValueModelSellingMarginTypeEnum;\r\n \"sellingRatesId\"?: number;\r\n \"sizeTypeId\"?: number;\r\n \"currencyId\"?: number;\r\n}\r\n\r\nexport type SellingRatesValueModelSellingMarginTypeEnum = \"Flat\" | \"Percentage\";\r\nexport interface SendAgentQuotationModel {\r\n \"departId\"?: number;\r\n \"chargeSetId\"?: number;\r\n \"criteriaCode\"?: string;\r\n}\r\n\r\nexport interface SendAskBookingModel {\r\n \"body\"?: string;\r\n \"to\"?: string;\r\n \"subject\"?: string;\r\n \"departId\"?: number;\r\n \"chargeSetId\"?: number;\r\n}\r\n\r\nexport interface SendAskRatesModel {\r\n \"departId\"?: number;\r\n \"to\"?: string;\r\n \"subject\"?: string;\r\n \"body\"?: string;\r\n}\r\n\r\nexport interface ServicesOptionsModel {\r\n \"environement\"?: number;\r\n \"intraUrl\"?: string;\r\n \"actionsLogEnabled\"?: boolean;\r\n \"schedulesApiEnabled\"?: boolean;\r\n}\r\n\r\nexport interface SetSatisfiedModel {\r\n \"level\"?: SetSatisfiedModelLevelEnum;\r\n \"reason\"?: string;\r\n \"clientActionId\"?: number;\r\n}\r\n\r\nexport type SetSatisfiedModelLevelEnum = \"Good\" | \"Normal\" | \"Bad\";\r\nexport interface SizeTypeModel {\r\n \"sizeTypeId\"?: number;\r\n \"name\"?: string;\r\n \"teu\"?: number;\r\n \"primary\"?: boolean;\r\n \"type\"?: SizeTypeModelTypeEnum;\r\n \"tare\"?: number;\r\n \"position\"?: number;\r\n}\r\n\r\nexport type SizeTypeModelTypeEnum = \"Dry\" | \"Rf\" | \"Fl\" | \"Ot\" | \"Tk\";\r\nexport interface SizeTypePriceAverageModel {\r\n \"sizeTypeId\"?: number;\r\n \"frtAvg\"?: number;\r\n \"originAvg\"?: number;\r\n \"destinationAvg\"?: number;\r\n}\r\n\r\nexport interface StatsPriceModel {\r\n \"origin\"?: LocationModel;\r\n \"destination\"?: LocationModel;\r\n \"monthStatsPrices\"?: Array;\r\n}\r\n\r\nexport interface SubscriptionModel {\r\n \"subscriptionId\"?: number;\r\n \"subscriptionType\"?: SubscriptionModelSubscriptionTypeEnum;\r\n \"enabled\"?: boolean;\r\n \"main\"?: boolean;\r\n \"creationDate\"?: Date;\r\n \"clientId\"?: number;\r\n \"title\"?: string;\r\n \"type\"?: SubscriptionModelTypeEnum;\r\n \"allowInformUser\"?: boolean;\r\n \"allowAgentManagement\"?: boolean;\r\n \"allowUserManagement\"?: boolean;\r\n \"allowRatesControl\"?: boolean;\r\n \"allowRatesManagement\"?: boolean;\r\n \"allowExportManagement\"?: boolean;\r\n \"allowClientUploadRates\"?: boolean;\r\n \"allowQuotSpot\"?: boolean;\r\n \"allowAskRates\"?: boolean;\r\n \"allowQuotationManagement\"?: boolean;\r\n \"allowCarrierRatesManagement\"?: boolean;\r\n \"allowApiBlacklistManagement\"?: boolean;\r\n \"receiveIntegrationMailExport\"?: boolean;\r\n \"receiveIntegrationMailImport\"?: boolean;\r\n \"receiveExpirityMailExport\"?: boolean;\r\n \"receiveExpirityMailImport\"?: boolean;\r\n \"dailyRequest\"?: number;\r\n \"premium\"?: boolean;\r\n \"carrierAccess\"?: boolean;\r\n \"suggestedRates\"?: boolean;\r\n \"iphoneAccess\"?: boolean;\r\n \"androidAccess\"?: boolean;\r\n \"agencyId\"?: number;\r\n \"agency\"?: FirmModel;\r\n \"hasExportParameters\"?: boolean;\r\n \"hasTmsSettings\"?: boolean;\r\n \"firmId\"?: number;\r\n \"firm\"?: FirmModel;\r\n \"interfaceAccess\"?: boolean;\r\n \"okargoAccess\"?: boolean;\r\n \"statisticAccess\"?: boolean;\r\n \"carrierId\"?: number;\r\n \"carrier\"?: CarrierModel;\r\n}\r\n\r\nexport type SubscriptionModelSubscriptionTypeEnum = \"Okargo\" | \"Carrier\" | \"Agent\";\r\nexport type SubscriptionModelTypeEnum = \"Casual\" | \"Frequent\";\r\nexport interface TokenModel {\r\n \"token\"?: string;\r\n \"username\"?: string;\r\n \"expirationDate\"?: Date;\r\n \"isValid\"?: boolean;\r\n}\r\n\r\nexport interface TokenResultModel {\r\n \"token\"?: TokenModel;\r\n \"message\"?: string;\r\n}\r\n\r\nexport interface TutorialModel {\r\n \"tutorialId\"?: number;\r\n \"name\"?: string;\r\n \"status\"?: TutorialModelStatusEnum;\r\n}\r\n\r\nexport type TutorialModelStatusEnum = \"NotDone\" | \"Done\";\r\nexport interface UpdateMultiPortModel {\r\n \"multiPortInstanceId\"?: number;\r\n \"name\"?: string;\r\n}\r\n\r\nexport interface UploadedFile {\r\n \"fileName\"?: string;\r\n \"description\"?: string;\r\n \"content\"?: string;\r\n \"contentLength\"?: number;\r\n}\r\n\r\nexport interface UriResult {\r\n \"uri\"?: string;\r\n}\r\n\r\nexport interface UserScreenModel {\r\n \"width\"?: number;\r\n \"height\"?: number;\r\n}\r\n\r\nexport interface VesselModel {\r\n \"vesselId\"?: number;\r\n \"name\"?: string;\r\n \"code\"?: string;\r\n \"type\"?: VesselModelTypeEnum;\r\n \"mmsi\"?: string;\r\n \"imo\"?: string;\r\n \"carrierId\"?: number;\r\n \"creationDate\"?: Date;\r\n}\r\n\r\nexport type VesselModelTypeEnum = \"ContainerShip\";\r\nexport interface WorkDocumentsModel {\r\n \"workDocumentsId\"?: number;\r\n \"firmId\"?: number;\r\n \"enabled\"?: boolean;\r\n \"invalidated\"?: boolean;\r\n \"carriers\"?: Array;\r\n \"carrierAgencyId\"?: number;\r\n \"validityStart\"?: Date;\r\n \"validityEnd\"?: Date;\r\n \"ratesOffer\"?: RatesOfferModel;\r\n \"carrierReference\"?: string;\r\n \"trafficType\"?: WorkDocumentsModelTrafficTypeEnum;\r\n \"receptionDate\"?: Date;\r\n \"doneDate\"?: Date;\r\n \"owner\"?: string;\r\n \"priceLists\"?: number;\r\n \"mainPorts\"?: Array;\r\n \"portsZones\"?: Array;\r\n \"offerInformations\"?: Array;\r\n}\r\n\r\n\r\nexport interface WorkDocumentsClientUploadDisplayModel {\r\n \"workDocumentClientUploadId\"?: number;\r\n \"workdocumentId\"?: number;\r\n \"firmId\"?: number;\r\n \"carrierId\"?: number;\r\n \"doneDate\"?: Date;\r\n \"state\"?: String;\r\n \"creationDate\"?: Date;\r\n \"integratedBy\"?: string;\r\n \"invalidated\"?: boolean;\r\n \"validityBegin\"?: Date;\r\n \"validityEnd\"?: Date;\r\n \"ratesOffer\"?: RatesOfferModel;\r\n \"reference\"?: string;\r\n \"trafficType\"?: WorkDocumentsModelTrafficTypeEnum;\r\n \"ratesType\"?: RatesOfferModelTypeEnum;\r\n \"containerType\"?: ChargeModelContainerTypeEnum;\r\n \"commodity\"?: string;\r\n \"nac\"?: string;\r\n \"additionalInfo\"?: string;\r\n\r\n}\r\n\r\n\r\n\r\nexport interface WorkDocumentsClientUploadFilesModel {\r\n \"sourceFile\": string;\r\n \"file\": string;\r\n}\r\n\r\n\r\n\r\nexport interface WorkDocumentsClientUploadModel {\r\n \"workDocumentClientUploadId\"?: number;\r\n \"firmId\"?: number;\r\n \"carrierId\"?: number;\r\n \"validityBegin\"?: Date;\r\n \"validityEnd\"?: Date;\r\n \"ratesOffer\"?: RatesOfferModel;\r\n \"reference\"?: string;\r\n \"trafficType\"?: WorkDocumentsModelTrafficTypeEnum;\r\n \"ratesType\"?: RatesOfferModelTypeEnum;\r\n \"commodity\"?: string;\r\n \"nac\"?: string;\r\n \"additionalInfo\"?: string;\r\n}\r\n\r\n\r\n\r\nexport type WorkDocumentsModelTrafficTypeEnum = \"Export\" | \"Import\" | \"CrossTrade\";\r\n\r\n\r\n/**\r\n * AccountApi - fetch parameter creator\r\n */\r\nexport const AccountApiFetchParamCreator = {\r\n /**\r\n *\r\n */\r\n acceptGcu(options?: any): FetchArgs {\r\n const baseUrl = `/api/Account/AcceptGcu`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n * The token is a jwt token that should be included in the Authorization header as so: Authorization: Bearer [token] The token should be stored somewhere secured or in memory, it's TTL is around a typical day of work \r\n * @summary Create and return a token that can be used to authenticate you\r\n * @param model Model containing an username and a password, the return Url is not used in this context\r\n */\r\n createToken(params: { \"model\"?: LoginModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Account/CreateToken`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n editClient(params: { \"model\"?: ClientModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Account/EditClient`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param currencyId\r\n */\r\n editCurrency(params: { \"currencyId\"?: number; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Account/EditCurrency`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"currencyId\": params[\"currencyId\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param defaultQuotationContactId\r\n */\r\n editDefaultQuotationContact(params: { \"defaultQuotationContactId\"?: number; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Account/EditDefaultQuotationContact`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"defaultQuotationContactId\": params[\"defaultQuotationContactId\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param currencyId\r\n */\r\n editInlandCurrency(params: { \"currencyId\"?: number; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Account/EditInlandCurrency`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"currencyId\": params[\"currencyId\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n editPassword(params: { \"model\"?: EditPasswordModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Account/EditPassword`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n editQuotationClientSettings(params: { \"model\"?: QuotationClientSettingsModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Account/EditQuotationClientSettings`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @summary Get the current user as well as it's token expiration date\r\n */\r\n getCurrentUser(options?: any): FetchArgs {\r\n const baseUrl = `/api/Account/GetCurrentUser`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n */\r\n logout(options?: any): FetchArgs {\r\n const baseUrl = `/api/Account/Logout`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n requestResetPassword(params: { \"model\"?: RequestResetPasswordModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Account/RequestResetPassword`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n resetPassword(params: { \"model\"?: ResetPasswordModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Account/ResetPassword`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n generatePassword(params: { \"id\"?: number; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Account/generatePassword`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"id\": params[\"id\"],\r\n });\r\n\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * AccountApi - functional programming interface\r\n */\r\nexport const AccountApiFp = {\r\n /**\r\n *\r\n */\r\n acceptGcu(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = AccountApiFetchParamCreator.acceptGcu(options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n * The token is a jwt token that should be included in the Authorization header as so: Authorization: Bearer [token] The token should be stored somewhere secured or in memory, it's TTL is around a typical day of work \r\n * @summary Create and return a token that can be used to authenticate you\r\n * @param model Model containing an username and a password, the return Url is not used in this context\r\n */\r\n createToken(params: { \"model\"?: LoginModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = AccountApiFetchParamCreator.createToken(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n editClient(params: { \"model\"?: ClientModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = AccountApiFetchParamCreator.editClient(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param currencyId\r\n */\r\n editCurrency(params: { \"currencyId\"?: number; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = AccountApiFetchParamCreator.editCurrency(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param defaultQuotationContactId\r\n */\r\n editDefaultQuotationContact(params: { \"defaultQuotationContactId\"?: number; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = AccountApiFetchParamCreator.editDefaultQuotationContact(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param currencyId\r\n */\r\n editInlandCurrency(params: { \"currencyId\"?: number; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = AccountApiFetchParamCreator.editInlandCurrency(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n editPassword(params: { \"model\"?: EditPasswordModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = AccountApiFetchParamCreator.editPassword(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n editQuotationClientSettings(params: { \"model\"?: QuotationClientSettingsModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = AccountApiFetchParamCreator.editQuotationClientSettings(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @summary Get the current user as well as it's token expiration date\r\n */\r\n getCurrentUser(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = AccountApiFetchParamCreator.getCurrentUser(options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n */\r\n logout(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = AccountApiFetchParamCreator.logout(options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n requestResetPassword(params: { \"model\"?: RequestResetPasswordModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = AccountApiFetchParamCreator.requestResetPassword(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n resetPassword(params: { \"model\"?: ResetPasswordModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = AccountApiFetchParamCreator.resetPassword(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n generatePassword(params: { \"id\"?: number; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = AccountApiFetchParamCreator.generatePassword(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * AccountApi - object-oriented interface\r\n */\r\nexport class AccountApi extends BaseAPI {\r\n /**\r\n *\r\n */\r\n acceptGcu(options?: any) {\r\n return AccountApiFp.acceptGcu(options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n * The token is a jwt token that should be included in the Authorization header as so: Authorization: Bearer [token] The token should be stored somewhere secured or in memory, it's TTL is around a typical day of work \r\n * @summary Create and return a token that can be used to authenticate you\r\n * @param model Model containing an username and a password, the return Url is not used in this context\r\n */\r\n createToken(params: { \"model\"?: LoginModel; }, options?: any) {\r\n return AccountApiFp.createToken(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n editClient(params: { \"model\"?: ClientModel; }, options?: any) {\r\n return AccountApiFp.editClient(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param currencyId\r\n */\r\n editCurrency(params: { \"currencyId\"?: number; }, options?: any) {\r\n return AccountApiFp.editCurrency(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param defaultQuotationContactId\r\n */\r\n editDefaultQuotationContact(params: { \"defaultQuotationContactId\"?: number; }, options?: any) {\r\n return AccountApiFp.editDefaultQuotationContact(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param currencyId\r\n */\r\n editInlandCurrency(params: { \"currencyId\"?: number; }, options?: any) {\r\n return AccountApiFp.editInlandCurrency(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n editPassword(params: { \"model\"?: EditPasswordModel; }, options?: any) {\r\n return AccountApiFp.editPassword(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n editQuotationClientSettings(params: { \"model\"?: QuotationClientSettingsModel; }, options?: any) {\r\n return AccountApiFp.editQuotationClientSettings(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @summary Get the current user as well as it's token expiration date\r\n */\r\n getCurrentUser(options?: any) {\r\n return AccountApiFp.getCurrentUser(options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n */\r\n logout(options?: any) {\r\n return AccountApiFp.logout(options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n requestResetPassword(params: { \"model\"?: RequestResetPasswordModel; }, options?: any) {\r\n return AccountApiFp.requestResetPassword(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n resetPassword(params: { \"model\"?: ResetPasswordModel; }, options?: any) {\r\n return AccountApiFp.resetPassword(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n generatePassword(params: { \"id\"?: number; }, options?: any) {\r\n return AccountApiFp.generatePassword(params, options)(this.fetch, this.basePath);\r\n }\r\n\r\n};\r\n\r\n/**\r\n * AccountApi - factory interface\r\n */\r\nexport const AccountApiFactory = function (fetch?: FetchAPI, basePath?: string) {\r\n return {\r\n /**\r\n *\r\n */\r\n acceptGcu(options?: any) {\r\n return AccountApiFp.acceptGcu(options)(fetch, basePath);\r\n },\r\n /**\r\n * The token is a jwt token that should be included in the Authorization header as so: Authorization: Bearer [token] The token should be stored somewhere secured or in memory, it's TTL is around a typical day of work \r\n * @summary Create and return a token that can be used to authenticate you\r\n * @param model Model containing an username and a password, the return Url is not used in this context\r\n */\r\n createToken(params: { \"model\"?: LoginModel; }, options?: any) {\r\n return AccountApiFp.createToken(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n editClient(params: { \"model\"?: ClientModel; }, options?: any) {\r\n return AccountApiFp.editClient(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param currencyId\r\n */\r\n editCurrency(params: { \"currencyId\"?: number; }, options?: any) {\r\n return AccountApiFp.editCurrency(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param defaultQuotationContactId\r\n */\r\n editDefaultQuotationContact(params: { \"defaultQuotationContactId\"?: number; }, options?: any) {\r\n return AccountApiFp.editDefaultQuotationContact(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param currencyId\r\n */\r\n editInlandCurrency(params: { \"currencyId\"?: number; }, options?: any) {\r\n return AccountApiFp.editInlandCurrency(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n editPassword(params: { \"model\"?: EditPasswordModel; }, options?: any) {\r\n return AccountApiFp.editPassword(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n editQuotationClientSettings(params: { \"model\"?: QuotationClientSettingsModel; }, options?: any) {\r\n return AccountApiFp.editQuotationClientSettings(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @summary Get the current user as well as it's token expiration date\r\n */\r\n getCurrentUser(options?: any) {\r\n return AccountApiFp.getCurrentUser(options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n */\r\n logout(options?: any) {\r\n return AccountApiFp.logout(options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n requestResetPassword(params: { \"model\"?: RequestResetPasswordModel; }, options?: any) {\r\n return AccountApiFp.requestResetPassword(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n resetPassword(params: { \"model\"?: ResetPasswordModel; }, options?: any) {\r\n return AccountApiFp.resetPassword(params, options)(fetch, basePath);\r\n },\r\n };\r\n};\r\n\r\n\r\n/**\r\n * AgentApi - fetch parameter creator\r\n */\r\nexport const AgentApiFetchParamCreator = {\r\n /**\r\n *\r\n * @param model\r\n */\r\n agentSearchs(params: { \"model\"?: SearchAgentSearchModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Agent/AgentSearchs`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n */\r\n chargesAgent(options?: any): FetchArgs {\r\n const baseUrl = `/api/Agent/ChargesAgent`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n */\r\n contactsAgent(options?: any): FetchArgs {\r\n const baseUrl = `/api/Agent/ContactsAgent`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n createCharge(params: { \"model\"?: ChargeAgentModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Agent/CreateCharge`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n createContact(params: { \"model\"?: ContactModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Agent/CreateContact`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param chargeId\r\n */\r\n deleteCharge(params: { \"chargeId\"?: number; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Agent/DeleteCharge`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"chargeId\": params[\"chargeId\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param contactId\r\n */\r\n deleteContact(params: { \"contactId\"?: number; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Agent/DeleteContact`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"contactId\": params[\"contactId\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n editCharge(params: { \"model\"?: ChargeAgentModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Agent/EditCharge`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n editContact(params: { \"model\"?: ContactModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Agent/EditContact`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * AgentApi - functional programming interface\r\n */\r\nexport const AgentApiFp = {\r\n /**\r\n *\r\n * @param model\r\n */\r\n agentSearchs(params: { \"model\"?: SearchAgentSearchModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise> {\r\n const fetchArgs = AgentApiFetchParamCreator.agentSearchs(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n */\r\n chargesAgent(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise> {\r\n const fetchArgs = AgentApiFetchParamCreator.chargesAgent(options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n */\r\n contactsAgent(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise> {\r\n const fetchArgs = AgentApiFetchParamCreator.contactsAgent(options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n createCharge(params: { \"model\"?: ChargeAgentModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = AgentApiFetchParamCreator.createCharge(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n createContact(params: { \"model\"?: ContactModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = AgentApiFetchParamCreator.createContact(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param chargeId\r\n */\r\n deleteCharge(params: { \"chargeId\"?: number; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = AgentApiFetchParamCreator.deleteCharge(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param contactId\r\n */\r\n deleteContact(params: { \"contactId\"?: number; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = AgentApiFetchParamCreator.deleteContact(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n editCharge(params: { \"model\"?: ChargeAgentModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = AgentApiFetchParamCreator.editCharge(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n editContact(params: { \"model\"?: ContactModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = AgentApiFetchParamCreator.editContact(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * AgentApi - object-oriented interface\r\n */\r\nexport class AgentApi extends BaseAPI {\r\n /**\r\n *\r\n * @param model\r\n */\r\n agentSearchs(params: { \"model\"?: SearchAgentSearchModel; }, options?: any) {\r\n return AgentApiFp.agentSearchs(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n */\r\n chargesAgent(options?: any) {\r\n return AgentApiFp.chargesAgent(options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n */\r\n contactsAgent(options?: any) {\r\n return AgentApiFp.contactsAgent(options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n createCharge(params: { \"model\"?: ChargeAgentModel; }, options?: any) {\r\n return AgentApiFp.createCharge(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n createContact(params: { \"model\"?: ContactModel; }, options?: any) {\r\n return AgentApiFp.createContact(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param chargeId\r\n */\r\n deleteCharge(params: { \"chargeId\"?: number; }, options?: any) {\r\n return AgentApiFp.deleteCharge(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param contactId\r\n */\r\n deleteContact(params: { \"contactId\"?: number; }, options?: any) {\r\n return AgentApiFp.deleteContact(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n editCharge(params: { \"model\"?: ChargeAgentModel; }, options?: any) {\r\n return AgentApiFp.editCharge(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n editContact(params: { \"model\"?: ContactModel; }, options?: any) {\r\n return AgentApiFp.editContact(params, options)(this.fetch, this.basePath);\r\n }\r\n};\r\n\r\n/**\r\n * AgentApi - factory interface\r\n */\r\nexport const AgentApiFactory = function (fetch?: FetchAPI, basePath?: string) {\r\n return {\r\n /**\r\n *\r\n * @param model\r\n */\r\n agentSearchs(params: { \"model\"?: SearchAgentSearchModel; }, options?: any) {\r\n return AgentApiFp.agentSearchs(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n */\r\n chargesAgent(options?: any) {\r\n return AgentApiFp.chargesAgent(options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n */\r\n contactsAgent(options?: any) {\r\n return AgentApiFp.contactsAgent(options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n createCharge(params: { \"model\"?: ChargeAgentModel; }, options?: any) {\r\n return AgentApiFp.createCharge(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n createContact(params: { \"model\"?: ContactModel; }, options?: any) {\r\n return AgentApiFp.createContact(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param chargeId\r\n */\r\n deleteCharge(params: { \"chargeId\"?: number; }, options?: any) {\r\n return AgentApiFp.deleteCharge(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param contactId\r\n */\r\n deleteContact(params: { \"contactId\"?: number; }, options?: any) {\r\n return AgentApiFp.deleteContact(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n editCharge(params: { \"model\"?: ChargeAgentModel; }, options?: any) {\r\n return AgentApiFp.editCharge(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n editContact(params: { \"model\"?: ContactModel; }, options?: any) {\r\n return AgentApiFp.editContact(params, options)(fetch, basePath);\r\n },\r\n };\r\n};\r\n\r\n\r\n/**\r\n * CarrierCarrierRatingApi - fetch parameter creator\r\n */\r\nexport const CarrierCarrierRatingApiFetchParamCreator = {\r\n /**\r\n *\r\n * @param id\r\n */\r\n _delete(params: { \"id\"?: number; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/CarrierCarrierRating/Delete`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"id\": params[\"id\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"DELETE\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n create(params: { \"model\"?: CarrierCarrierRatingModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/CarrierCarrierRating/Create`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n */\r\n getEntities(options?: any): FetchArgs {\r\n const baseUrl = `/api/CarrierCarrierRating/GetEntities`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n update(params: { \"model\"?: CarrierCarrierRatingModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/CarrierCarrierRating/Update`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * CarrierCarrierRatingApi - functional programming interface\r\n */\r\nexport const CarrierCarrierRatingApiFp = {\r\n /**\r\n *\r\n * @param id\r\n */\r\n _delete(params: { \"id\"?: number; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = CarrierCarrierRatingApiFetchParamCreator._delete(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n create(params: { \"model\"?: CarrierCarrierRatingModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = CarrierCarrierRatingApiFetchParamCreator.create(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n */\r\n getEntities(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise> {\r\n const fetchArgs = CarrierCarrierRatingApiFetchParamCreator.getEntities(options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n update(params: { \"model\"?: CarrierCarrierRatingModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = CarrierCarrierRatingApiFetchParamCreator.update(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * CarrierCarrierRatingApi - object-oriented interface\r\n */\r\nexport class CarrierCarrierRatingApi extends BaseAPI {\r\n /**\r\n *\r\n * @param id\r\n */\r\n _delete(params: { \"id\"?: number; }, options?: any) {\r\n return CarrierCarrierRatingApiFp._delete(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n create(params: { \"model\"?: CarrierCarrierRatingModel; }, options?: any) {\r\n return CarrierCarrierRatingApiFp.create(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n */\r\n getEntities(options?: any) {\r\n return CarrierCarrierRatingApiFp.getEntities(options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n update(params: { \"model\"?: CarrierCarrierRatingModel; }, options?: any) {\r\n return CarrierCarrierRatingApiFp.update(params, options)(this.fetch, this.basePath);\r\n }\r\n};\r\n\r\n/**\r\n * CarrierCarrierRatingApi - factory interface\r\n */\r\nexport const CarrierCarrierRatingApiFactory = function (fetch?: FetchAPI, basePath?: string) {\r\n return {\r\n /**\r\n *\r\n * @param id\r\n */\r\n _delete(params: { \"id\"?: number; }, options?: any) {\r\n return CarrierCarrierRatingApiFp._delete(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n create(params: { \"model\"?: CarrierCarrierRatingModel; }, options?: any) {\r\n return CarrierCarrierRatingApiFp.create(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n */\r\n getEntities(options?: any) {\r\n return CarrierCarrierRatingApiFp.getEntities(options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n update(params: { \"model\"?: CarrierCarrierRatingModel; }, options?: any) {\r\n return CarrierCarrierRatingApiFp.update(params, options)(fetch, basePath);\r\n },\r\n };\r\n};\r\n\r\n\r\n/**\r\n * CarrierRatesOfferInformationApi - fetch parameter creator\r\n */\r\nexport const CarrierRatesOfferInformationApiFetchParamCreator = {\r\n /**\r\n *\r\n * @param id\r\n */\r\n _delete(params: { \"id\"?: number; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/CarrierRatesOfferInformation/Delete`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"id\": params[\"id\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n create(params: { \"model\"?: CarrierRatesOfferInformationModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/CarrierRatesOfferInformation/Create`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n */\r\n getEntities(options?: any): FetchArgs {\r\n const baseUrl = `/api/CarrierRatesOfferInformation/GetEntities`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n update(params: { \"model\"?: CarrierRatesOfferInformationModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/CarrierRatesOfferInformation/Update`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * CarrierRatesOfferInformationApi - functional programming interface\r\n */\r\nexport const CarrierRatesOfferInformationApiFp = {\r\n /**\r\n *\r\n * @param id\r\n */\r\n _delete(params: { \"id\"?: number; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = CarrierRatesOfferInformationApiFetchParamCreator._delete(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n create(params: { \"model\"?: CarrierRatesOfferInformationModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = CarrierRatesOfferInformationApiFetchParamCreator.create(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n */\r\n getEntities(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise> {\r\n const fetchArgs = CarrierRatesOfferInformationApiFetchParamCreator.getEntities(options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n update(params: { \"model\"?: CarrierRatesOfferInformationModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = CarrierRatesOfferInformationApiFetchParamCreator.update(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * CarrierRatesOfferInformationApi - object-oriented interface\r\n */\r\nexport class CarrierRatesOfferInformationApi extends BaseAPI {\r\n /**\r\n *\r\n * @param id\r\n */\r\n _delete(params: { \"id\"?: number; }, options?: any) {\r\n return CarrierRatesOfferInformationApiFp._delete(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n create(params: { \"model\"?: CarrierRatesOfferInformationModel; }, options?: any) {\r\n return CarrierRatesOfferInformationApiFp.create(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n */\r\n getEntities(options?: any) {\r\n return CarrierRatesOfferInformationApiFp.getEntities(options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n update(params: { \"model\"?: CarrierRatesOfferInformationModel; }, options?: any) {\r\n return CarrierRatesOfferInformationApiFp.update(params, options)(this.fetch, this.basePath);\r\n }\r\n};\r\n\r\n/**\r\n * CarrierRatesOfferInformationApi - factory interface\r\n */\r\nexport const CarrierRatesOfferInformationApiFactory = function (fetch?: FetchAPI, basePath?: string) {\r\n return {\r\n /**\r\n *\r\n * @param id\r\n */\r\n _delete(params: { \"id\"?: number; }, options?: any) {\r\n return CarrierRatesOfferInformationApiFp._delete(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n create(params: { \"model\"?: CarrierRatesOfferInformationModel; }, options?: any) {\r\n return CarrierRatesOfferInformationApiFp.create(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n */\r\n getEntities(options?: any) {\r\n return CarrierRatesOfferInformationApiFp.getEntities(options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n update(params: { \"model\"?: CarrierRatesOfferInformationModel; }, options?: any) {\r\n return CarrierRatesOfferInformationApiFp.update(params, options)(fetch, basePath);\r\n },\r\n };\r\n};\r\n\r\n\r\n/**\r\n * CarrierRatesSettingsApi - fetch parameter creator\r\n */\r\nexport const CarrierRatesSettingsApiFetchParamCreator = {\r\n /**\r\n *\r\n * @param id\r\n */\r\n _delete(params: { \"id\"?: number; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/CarrierRatesSettings/Delete`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"id\": params[\"id\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @summary Delete seting\r\n * @param model\r\n */\r\n _delete_1(params: { \"model\"?: CarrierRatesSettingsModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/CarrierRatesSettings/Delete`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @summary Create new setting for carrier platform\r\n * @param model\r\n */\r\n create(params: { \"model\"?: CarrierRatesSettingsModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/CarrierRatesSettings/Create`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n */\r\n getEntities(options?: any): FetchArgs {\r\n const baseUrl = `/api/CarrierRatesSettings/GetEntities`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @summary Returns all available platforms\r\n */\r\n getPlatforms(options?: any): FetchArgs {\r\n const baseUrl = `/api/CarrierRatesSettings/GetPlatforms`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @summary Returns all activated settings associated with account\r\n */\r\n getSettings(options?: any): FetchArgs {\r\n const baseUrl = `/api/CarrierRatesSettings/GetSettings`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @summary Update existing setting for carrier platform\r\n * @param model\r\n */\r\n update(params: { \"model\"?: CarrierRatesSettingsModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/CarrierRatesSettings/Update`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * CarrierRatesSettingsApi - functional programming interface\r\n */\r\nexport const CarrierRatesSettingsApiFp = {\r\n /**\r\n *\r\n * @param id\r\n */\r\n _delete(params: { \"id\"?: number; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = CarrierRatesSettingsApiFetchParamCreator._delete(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @summary Delete seting\r\n * @param model\r\n */\r\n _delete_1(params: { \"model\"?: CarrierRatesSettingsModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = CarrierRatesSettingsApiFetchParamCreator._delete_1(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @summary Create new setting for carrier platform\r\n * @param model\r\n */\r\n create(params: { \"model\"?: CarrierRatesSettingsModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = CarrierRatesSettingsApiFetchParamCreator.create(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n */\r\n getEntities(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise> {\r\n const fetchArgs = CarrierRatesSettingsApiFetchParamCreator.getEntities(options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @summary Returns all available platforms\r\n */\r\n getPlatforms(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise> {\r\n const fetchArgs = CarrierRatesSettingsApiFetchParamCreator.getPlatforms(options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @summary Returns all activated settings associated with account\r\n */\r\n getSettings(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise> {\r\n const fetchArgs = CarrierRatesSettingsApiFetchParamCreator.getSettings(options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @summary Update existing setting for carrier platform\r\n * @param model\r\n */\r\n update(params: { \"model\"?: CarrierRatesSettingsModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = CarrierRatesSettingsApiFetchParamCreator.update(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * CarrierRatesSettingsApi - object-oriented interface\r\n */\r\nexport class CarrierRatesSettingsApi extends BaseAPI {\r\n /**\r\n *\r\n * @param id\r\n */\r\n _delete(params: { \"id\"?: number; }, options?: any) {\r\n return CarrierRatesSettingsApiFp._delete(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @summary Delete seting\r\n * @param model\r\n */\r\n _delete_1(params: { \"model\"?: CarrierRatesSettingsModel; }, options?: any) {\r\n return CarrierRatesSettingsApiFp._delete_1(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @summary Create new setting for carrier platform\r\n * @param model\r\n */\r\n create(params: { \"model\"?: CarrierRatesSettingsModel; }, options?: any) {\r\n return CarrierRatesSettingsApiFp.create(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n */\r\n getEntities(options?: any) {\r\n return CarrierRatesSettingsApiFp.getEntities(options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @summary Returns all available platforms\r\n */\r\n getPlatforms(options?: any) {\r\n return CarrierRatesSettingsApiFp.getPlatforms(options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @summary Returns all activated settings associated with account\r\n */\r\n getSettings(options?: any) {\r\n return CarrierRatesSettingsApiFp.getSettings(options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @summary Update existing setting for carrier platform\r\n * @param model\r\n */\r\n update(params: { \"model\"?: CarrierRatesSettingsModel; }, options?: any) {\r\n return CarrierRatesSettingsApiFp.update(params, options)(this.fetch, this.basePath);\r\n }\r\n};\r\n\r\n/**\r\n * CarrierRatesSettingsApi - factory interface\r\n */\r\nexport const CarrierRatesSettingsApiFactory = function (fetch?: FetchAPI, basePath?: string) {\r\n return {\r\n /**\r\n *\r\n * @param id\r\n */\r\n _delete(params: { \"id\"?: number; }, options?: any) {\r\n return CarrierRatesSettingsApiFp._delete(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @summary Delete seting\r\n * @param model\r\n */\r\n _delete_1(params: { \"model\"?: CarrierRatesSettingsModel; }, options?: any) {\r\n return CarrierRatesSettingsApiFp._delete_1(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @summary Create new setting for carrier platform\r\n * @param model\r\n */\r\n create(params: { \"model\"?: CarrierRatesSettingsModel; }, options?: any) {\r\n return CarrierRatesSettingsApiFp.create(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n */\r\n getEntities(options?: any) {\r\n return CarrierRatesSettingsApiFp.getEntities(options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @summary Returns all available platforms\r\n */\r\n getPlatforms(options?: any) {\r\n return CarrierRatesSettingsApiFp.getPlatforms(options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @summary Returns all activated settings associated with account\r\n */\r\n getSettings(options?: any) {\r\n return CarrierRatesSettingsApiFp.getSettings(options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @summary Update existing setting for carrier platform\r\n * @param model\r\n */\r\n update(params: { \"model\"?: CarrierRatesSettingsModel; }, options?: any) {\r\n return CarrierRatesSettingsApiFp.update(params, options)(fetch, basePath);\r\n },\r\n };\r\n};\r\n\r\n\r\n/**\r\n * CarrierRatingApi - fetch parameter creator\r\n */\r\nexport const CarrierRatingApiFetchParamCreator = {\r\n /**\r\n *\r\n * @param id\r\n */\r\n _delete(params: { \"id\"?: number; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/CarrierRating/Delete`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"id\": params[\"id\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"DELETE\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n create(params: { \"model\"?: CarrierRatingModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/CarrierRating/Create`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n */\r\n getEntities(options?: any): FetchArgs {\r\n const baseUrl = `/api/CarrierRating/GetEntities`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n update(params: { \"model\"?: CarrierRatingModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/CarrierRating/Update`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * CarrierRatingApi - functional programming interface\r\n */\r\nexport const CarrierRatingApiFp = {\r\n /**\r\n *\r\n * @param id\r\n */\r\n _delete(params: { \"id\"?: number; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = CarrierRatingApiFetchParamCreator._delete(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n create(params: { \"model\"?: CarrierRatingModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = CarrierRatingApiFetchParamCreator.create(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n */\r\n getEntities(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise> {\r\n const fetchArgs = CarrierRatingApiFetchParamCreator.getEntities(options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n update(params: { \"model\"?: CarrierRatingModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = CarrierRatingApiFetchParamCreator.update(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * CarrierRatingApi - object-oriented interface\r\n */\r\nexport class CarrierRatingApi extends BaseAPI {\r\n /**\r\n *\r\n * @param id\r\n */\r\n _delete(params: { \"id\"?: number; }, options?: any) {\r\n return CarrierRatingApiFp._delete(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n create(params: { \"model\"?: CarrierRatingModel; }, options?: any) {\r\n return CarrierRatingApiFp.create(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n */\r\n getEntities(options?: any) {\r\n return CarrierRatingApiFp.getEntities(options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n update(params: { \"model\"?: CarrierRatingModel; }, options?: any) {\r\n return CarrierRatingApiFp.update(params, options)(this.fetch, this.basePath);\r\n }\r\n};\r\n\r\n/**\r\n * CarrierRatingApi - factory interface\r\n */\r\nexport const CarrierRatingApiFactory = function (fetch?: FetchAPI, basePath?: string) {\r\n return {\r\n /**\r\n *\r\n * @param id\r\n */\r\n _delete(params: { \"id\"?: number; }, options?: any) {\r\n return CarrierRatingApiFp._delete(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n create(params: { \"model\"?: CarrierRatingModel; }, options?: any) {\r\n return CarrierRatingApiFp.create(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n */\r\n getEntities(options?: any) {\r\n return CarrierRatingApiFp.getEntities(options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n update(params: { \"model\"?: CarrierRatingModel; }, options?: any) {\r\n return CarrierRatingApiFp.update(params, options)(fetch, basePath);\r\n },\r\n };\r\n};\r\n\r\n\r\n/**\r\n * CriteriaApi - fetch parameter creator\r\n */\r\nexport const CriteriaApiFetchParamCreator = {\r\n /**\r\n * The criteria code here is not used, it will be generated server-side\r\n * @summary Create and return criteria that can be used through it's code to search offers on Okargo\r\n * @param model\r\n */\r\n createCriteria(params: { \"model\"?: CriteriaModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Criteria/CreateCriteria`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @summary Get criteria from a criteria code\r\n * @param code\r\n */\r\n getCriteria(params: { \"code\"?: string; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Criteria/GetCriteria`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"code\": params[\"code\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n recentCriteria(params: {}, options?: any): FetchArgs {\r\n const baseUrl = `/api/Criteria/RecentCriteria`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * CriteriaApi - functional programming interface\r\n */\r\nexport const CriteriaApiFp = {\r\n /**\r\n * The criteria code here is not used, it will be generated server-side\r\n * @summary Create and return criteria that can be used through it's code to search offers on Okargo\r\n * @param model\r\n */\r\n createCriteria(params: { \"model\"?: CriteriaModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = CriteriaApiFetchParamCreator.createCriteria(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @summary Get criteria from a criteria code\r\n * @param code\r\n */\r\n getCriteria(params: { \"code\"?: string; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = CriteriaApiFetchParamCreator.getCriteria(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n recentCriteria(params: { \"code\"?: string; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = CriteriaApiFetchParamCreator.recentCriteria(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * CriteriaApi - object-oriented interface\r\n */\r\nexport class CriteriaApi extends BaseAPI {\r\n /**\r\n * The criteria code here is not used, it will be generated server-side\r\n * @summary Create and return criteria that can be used through it's code to search offers on Okargo\r\n * @param model\r\n */\r\n createCriteria(params: { \"model\"?: CriteriaModel; }, options?: any) {\r\n return CriteriaApiFp.createCriteria(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @summary Get criteria from a criteria code\r\n * @param code\r\n */\r\n getCriteria(params: { \"code\"?: string; }, options?: any) {\r\n return CriteriaApiFp.getCriteria(params, options)(this.fetch, this.basePath);\r\n }\r\n recentCriteria(params: {}, options?: any) {\r\n return CriteriaApiFp.recentCriteria(params, options)(this.fetch, this.basePath);\r\n }\r\n};\r\n\r\n/**\r\n * CriteriaApi - factory interface\r\n */\r\nexport const CriteriaApiFactory = function (fetch?: FetchAPI, basePath?: string) {\r\n return {\r\n /**\r\n * The criteria code here is not used, it will be generated server-side\r\n * @summary Create and return criteria that can be used through it's code to search offers on Okargo\r\n * @param model\r\n */\r\n createCriteria(params: { \"model\"?: CriteriaModel; }, options?: any) {\r\n return CriteriaApiFp.createCriteria(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @summary Get criteria from a criteria code\r\n * @param code\r\n */\r\n getCriteria(params: { \"code\"?: string; }, options?: any) {\r\n return CriteriaApiFp.getCriteria(params, options)(fetch, basePath);\r\n },\r\n recentCriteria(params: {}, options?: any) {\r\n return CriteriaApiFp.recentCriteria(params, options)(fetch, basePath);\r\n },\r\n };\r\n};\r\n\r\n\r\n/**\r\n * DocumentApi - fetch parameter creator\r\n */\r\nexport const DocumentApiFetchParamCreator = {\r\n /**\r\n *\r\n * @param firmDocumentId\r\n */\r\n downloadDocument(params: { \"firmDocumentId\"?: number; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Document/DownloadDocument`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"firmDocumentId\": params[\"firmDocumentId\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param workdocumentId\r\n */\r\n downloadWorkodocumentDocument(params: { \"workdocumentId\"?: number; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Document/DownloadWordocumentDocuments`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"workdocumentId\": params[\"workdocumentId\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n\r\n /**\r\n *\r\n */\r\n getFirmDocuments(options?: any): FetchArgs {\r\n const baseUrl = `/api/Document/GetFirmDocuments`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param externalDocument\r\n */\r\n uploadDocument(params: { \"externalDocument\"?: ExternalDocumentsUpload; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Document/UploadDocument`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"externalDocument\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"externalDocument\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * DocumentApi - functional programming interface\r\n */\r\nexport const DocumentApiFp = {\r\n /**\r\n *\r\n * @param firmDocumentId\r\n */\r\n downloadDocument(params: { \"firmDocumentId\"?: number; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = DocumentApiFetchParamCreator.downloadDocument(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n\r\n /**\r\n *\r\n * @param workdocumentId\r\n */\r\n downloadWorkodocumentDocument(params: { \"workdocumentId\"?: number; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = DocumentApiFetchParamCreator.downloadWorkodocumentDocument(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n\r\n /**\r\n *\r\n */\r\n getFirmDocuments(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise> {\r\n const fetchArgs = DocumentApiFetchParamCreator.getFirmDocuments(options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param externalDocument\r\n */\r\n uploadDocument(params: { \"externalDocument\"?: ExternalDocumentsUpload; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = DocumentApiFetchParamCreator.uploadDocument(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * DocumentApi - object-oriented interface\r\n */\r\nexport class DocumentApi extends BaseAPI {\r\n /**\r\n *\r\n * @param firmDocumentId\r\n */\r\n downloadDocument(params: { \"firmDocumentId\"?: number; }, options?: any) {\r\n return DocumentApiFp.downloadDocument(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param workdocumentId\r\n */\r\n downloadWorkodocumetDocument(params: { \"workdocumentId\"?: number; }, options?: any) {\r\n return DocumentApiFp.downloadWorkodocumentDocument(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n */\r\n getFirmDocuments(options?: any) {\r\n return DocumentApiFp.getFirmDocuments(options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param externalDocument\r\n */\r\n uploadDocument(params: { \"externalDocument\"?: ExternalDocumentsUpload; }, options?: any) {\r\n return DocumentApiFp.uploadDocument(params, options)(this.fetch, this.basePath);\r\n }\r\n};\r\n\r\n/**\r\n * DocumentApi - factory interface\r\n */\r\nexport const DocumentApiFactory = function (fetch?: FetchAPI, basePath?: string) {\r\n return {\r\n /**\r\n *\r\n * @param firmDocumentId\r\n */\r\n downloadDocument(params: { \"firmDocumentId\"?: number; }, options?: any) {\r\n return DocumentApiFp.downloadDocument(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n */\r\n getFirmDocuments(options?: any) {\r\n return DocumentApiFp.getFirmDocuments(options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param externalDocument\r\n */\r\n uploadDocument(params: { \"externalDocument\"?: ExternalDocumentsUpload; }, options?: any) {\r\n return DocumentApiFp.uploadDocument(params, options)(fetch, basePath);\r\n },\r\n };\r\n};\r\n\r\n\r\n/**\r\n * DownloadApi - fetch parameter creator\r\n */\r\nexport const DownloadApiFetchParamCreator = {\r\n /**\r\n *\r\n */\r\n downloadApp(options?: any): FetchArgs {\r\n const baseUrl = `/api/Download/DownloadApp`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n */\r\n downloadChargesGlossary(options?: any): FetchArgs {\r\n const baseUrl = `/api/Download/DownloadChargesGlossary`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param lang\r\n */\r\n downloadGuideCrawlers(params: { \"lang\"?: string; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Download/downloadGuideCrawlers`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"lang\": params[\"lang\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param lang\r\n */\r\n downloadGuideOcq(params: { \"lang\"?: string; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Download/DownloadGuideOcq`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"lang\": params[\"lang\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n */\r\n downloadGuideQuotation(options?: any): FetchArgs {\r\n const baseUrl = `/api/Download/DownloadGuideQuotation`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n */\r\n downloadPortsAndZones(options?: any): FetchArgs {\r\n const baseUrl = `/api/Download/DownloadPortsAndZones`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param lang\r\n */\r\n downloadQuickstart(params: { \"lang\"?: string; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Download/DownloadQuickstart`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"lang\": params[\"lang\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param lang\r\n */\r\n downloadTos(params: { \"lang\"?: string; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Download/DownloadTos`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"lang\": params[\"lang\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * DownloadApi - functional programming interface\r\n */\r\nexport const DownloadApiFp = {\r\n /**\r\n *\r\n */\r\n downloadApp(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = DownloadApiFetchParamCreator.downloadApp(options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n */\r\n downloadChargesGlossary(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = DownloadApiFetchParamCreator.downloadChargesGlossary(options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param lang\r\n */\r\n downloadGuideCrawlers(params: { \"lang\"?: string; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = DownloadApiFetchParamCreator.downloadGuideCrawlers(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param lang\r\n */\r\n downloadGuideOcq(params: { \"lang\"?: string; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = DownloadApiFetchParamCreator.downloadGuideOcq(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n */\r\n downloadGuideQuotation(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = DownloadApiFetchParamCreator.downloadGuideQuotation(options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n */\r\n downloadPortsAndZones(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = DownloadApiFetchParamCreator.downloadPortsAndZones(options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param lang\r\n */\r\n downloadQuickstart(params: { \"lang\"?: string; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = DownloadApiFetchParamCreator.downloadQuickstart(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param lang\r\n */\r\n downloadTos(params: { \"lang\"?: string; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = DownloadApiFetchParamCreator.downloadTos(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * DownloadApi - object-oriented interface\r\n */\r\nexport class DownloadApi extends BaseAPI {\r\n /**\r\n *\r\n */\r\n downloadApp(options?: any) {\r\n return DownloadApiFp.downloadApp(options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n */\r\n downloadChargesGlossary(options?: any) {\r\n return DownloadApiFp.downloadChargesGlossary(options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param lang\r\n */\r\n downloadGuideCrawlers(params: { \"lang\"?: string; }, options?: any) {\r\n return DownloadApiFp.downloadGuideCrawlers(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param lang\r\n */\r\n\r\n downloadGuideOcq(params: { \"lang\"?: string; }, options?: any) {\r\n return DownloadApiFp.downloadGuideOcq(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n */\r\n downloadGuideQuotation(options?: any) {\r\n return DownloadApiFp.downloadGuideQuotation(options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n */\r\n downloadPortsAndZones(options?: any) {\r\n return DownloadApiFp.downloadPortsAndZones(options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param lang\r\n */\r\n downloadQuickstart(params: { \"lang\"?: string; }, options?: any) {\r\n return DownloadApiFp.downloadQuickstart(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param lang\r\n */\r\n downloadTos(params: { \"lang\"?: string; }, options?: any) {\r\n return DownloadApiFp.downloadTos(params, options)(this.fetch, this.basePath);\r\n }\r\n};\r\n\r\n/**\r\n * DownloadApi - factory interface\r\n */\r\nexport const DownloadApiFactory = function (fetch?: FetchAPI, basePath?: string) {\r\n return {\r\n /**\r\n *\r\n */\r\n downloadApp(options?: any) {\r\n return DownloadApiFp.downloadApp(options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n */\r\n downloadChargesGlossary(options?: any) {\r\n return DownloadApiFp.downloadChargesGlossary(options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param lang\r\n */\r\n downloadGuideCrawlers(params: { \"lang\"?: string; }, options?: any) {\r\n return DownloadApiFp.downloadGuideCrawlers(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param lang\r\n */\r\n downloadGuideOcq(params: { \"lang\"?: string; }, options?: any) {\r\n return DownloadApiFp.downloadGuideOcq(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n */\r\n downloadGuideQuotation(options?: any) {\r\n return DownloadApiFp.downloadGuideQuotation(options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n */\r\n downloadPortsAndZones(options?: any) {\r\n return DownloadApiFp.downloadPortsAndZones(options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param lang\r\n */\r\n downloadQuickstart(params: { \"lang\"?: string; }, options?: any) {\r\n return DownloadApiFp.downloadQuickstart(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param lang\r\n */\r\n downloadTos(params: { \"lang\"?: string; }, options?: any) {\r\n return DownloadApiFp.downloadTos(params, options)(fetch, basePath);\r\n },\r\n };\r\n};\r\n\r\n\r\n/**\r\n * ExportApi - fetch parameter creator\r\n */\r\nexport const ExportApiFetchParamCreator = {\r\n /**\r\n * The request can be long and can be subject to timeout, use the skip/take to split the request if it does. The total number of routes corresponding to the port + traffic is returned to know if you have everything, it does not match the number of offers. Ex: if you made a Take of 1000 and Skip of 0 and the returned RoutesCount is 1250, you need to make a Skip of 1000 and Take of 250 or superior to get the rest.\r\n * @summary Export offers from a port and a traffic type (Import or Export)\r\n * @param model The criteria used to export your rates\r\n */\r\n exportBulk(params: { \"model\"?: ExportBulkModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Export/ExportBulk`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n exportToTms(params: { \"model\"?: ExportOfferToTmsModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Export/ExportToTms`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @summary Get available fetchers\r\n */\r\n getAvailableRatesFetchers(options?: any): FetchArgs {\r\n const baseUrl = `/api/Export/GetAvailableRatesFetchers`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n * Can be used to look for offers on a specific pol/pod\r\n * @summary Retrieve the result of an Okargo search from the criteria sent by post in JSON\r\n * @param model\r\n */\r\n getContractCarrierOffers(params: { \"model\"?: OnlineCarrierOffersExportCriteriaModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Export/GetContractCarrierOffers`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n getOnlineCarrierOffers(params: { \"model\"?: OnlineCarrierOffersExportCriteriaModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Export/GetOnlineCarrierOffers`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n * Can be used to look for offers on a specific pol/pod\r\n * @summary Retrieve the result of an Okargo online quotes system from the criteria sent by post in JSON\r\n * @param model\r\n */\r\n getOnlineCarrierOffersV2(params: { \"model\"?: OnlineCarrierOffersExportCriteriaModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Export/v2/GetOnlineCarrierOffers`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @summary Get the list of ports\r\n */\r\n ports(options?: any): FetchArgs {\r\n const baseUrl = `/api/Export/Ports`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n transferOffer(params: { \"model\"?: ExportOfferModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Export/TransferOffer`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * ExportApi - functional programming interface\r\n */\r\nexport const ExportApiFp = {\r\n /**\r\n * The request can be long and can be subject to timeout, use the skip/take to split the request if it does. The total number of routes corresponding to the port + traffic is returned to know if you have everything, it does not match the number of offers. Ex: if you made a Take of 1000 and Skip of 0 and the returned RoutesCount is 1250, you need to make a Skip of 1000 and Take of 250 or superior to get the rest.\r\n * @summary Export offers from a port and a traffic type (Import or Export)\r\n * @param model The criteria used to export your rates\r\n */\r\n exportBulk(params: { \"model\"?: ExportBulkModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = ExportApiFetchParamCreator.exportBulk(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n exportToTms(params: { \"model\"?: ExportOfferToTmsModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = ExportApiFetchParamCreator.exportToTms(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @summary Get available fetchers\r\n */\r\n getAvailableRatesFetchers(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise> {\r\n const fetchArgs = ExportApiFetchParamCreator.getAvailableRatesFetchers(options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n * Can be used to look for offers on a specific pol/pod\r\n * @summary Retrieve the result of an Okargo search from the criteria sent by post in JSON\r\n * @param model\r\n */\r\n getContractCarrierOffers(params: { \"model\"?: OnlineCarrierOffersExportCriteriaModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = ExportApiFetchParamCreator.getContractCarrierOffers(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n getOnlineCarrierOffers(params: { \"model\"?: OnlineCarrierOffersExportCriteriaModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = ExportApiFetchParamCreator.getOnlineCarrierOffers(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n * Can be used to look for offers on a specific pol/pod\r\n * @summary Retrieve the result of an Okargo online quotes system from the criteria sent by post in JSON\r\n * @param model\r\n */\r\n getOnlineCarrierOffersV2(params: { \"model\"?: OnlineCarrierOffersExportCriteriaModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = ExportApiFetchParamCreator.getOnlineCarrierOffersV2(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @summary Get the list of ports\r\n */\r\n ports(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise> {\r\n const fetchArgs = ExportApiFetchParamCreator.ports(options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n transferOffer(params: { \"model\"?: ExportOfferModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = ExportApiFetchParamCreator.transferOffer(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * ExportApi - object-oriented interface\r\n */\r\nexport class ExportApi extends BaseAPI {\r\n /**\r\n * The request can be long and can be subject to timeout, use the skip/take to split the request if it does. The total number of routes corresponding to the port + traffic is returned to know if you have everything, it does not match the number of offers. Ex: if you made a Take of 1000 and Skip of 0 and the returned RoutesCount is 1250, you need to make a Skip of 1000 and Take of 250 or superior to get the rest.\r\n * @summary Export offers from a port and a traffic type (Import or Export)\r\n * @param model The criteria used to export your rates\r\n */\r\n exportBulk(params: { \"model\"?: ExportBulkModel; }, options?: any) {\r\n return ExportApiFp.exportBulk(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n exportToTms(params: { \"model\"?: ExportOfferToTmsModel; }, options?: any) {\r\n return ExportApiFp.exportToTms(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @summary Get available fetchers\r\n */\r\n getAvailableRatesFetchers(options?: any) {\r\n return ExportApiFp.getAvailableRatesFetchers(options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n * Can be used to look for offers on a specific pol/pod\r\n * @summary Retrieve the result of an Okargo search from the criteria sent by post in JSON\r\n * @param model\r\n */\r\n getContractCarrierOffers(params: { \"model\"?: OnlineCarrierOffersExportCriteriaModel; }, options?: any) {\r\n return ExportApiFp.getContractCarrierOffers(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n getOnlineCarrierOffers(params: { \"model\"?: OnlineCarrierOffersExportCriteriaModel; }, options?: any) {\r\n return ExportApiFp.getOnlineCarrierOffers(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n * Can be used to look for offers on a specific pol/pod\r\n * @summary Retrieve the result of an Okargo online quotes system from the criteria sent by post in JSON\r\n * @param model\r\n */\r\n getOnlineCarrierOffersV2(params: { \"model\"?: OnlineCarrierOffersExportCriteriaModel; }, options?: any) {\r\n return ExportApiFp.getOnlineCarrierOffersV2(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @summary Get the list of ports\r\n */\r\n ports(options?: any) {\r\n return ExportApiFp.ports(options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n transferOffer(params: { \"model\"?: ExportOfferModel; }, options?: any) {\r\n return ExportApiFp.transferOffer(params, options)(this.fetch, this.basePath);\r\n }\r\n};\r\n\r\n/**\r\n * ExportApi - factory interface\r\n */\r\nexport const ExportApiFactory = function (fetch?: FetchAPI, basePath?: string) {\r\n return {\r\n /**\r\n * The request can be long and can be subject to timeout, use the skip/take to split the request if it does. The total number of routes corresponding to the port + traffic is returned to know if you have everything, it does not match the number of offers. Ex: if you made a Take of 1000 and Skip of 0 and the returned RoutesCount is 1250, you need to make a Skip of 1000 and Take of 250 or superior to get the rest.\r\n * @summary Export offers from a port and a traffic type (Import or Export)\r\n * @param model The criteria used to export your rates\r\n */\r\n exportBulk(params: { \"model\"?: ExportBulkModel; }, options?: any) {\r\n return ExportApiFp.exportBulk(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n exportToTms(params: { \"model\"?: ExportOfferToTmsModel; }, options?: any) {\r\n return ExportApiFp.exportToTms(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @summary Get available fetchers\r\n */\r\n getAvailableRatesFetchers(options?: any) {\r\n return ExportApiFp.getAvailableRatesFetchers(options)(fetch, basePath);\r\n },\r\n /**\r\n * Can be used to look for offers on a specific pol/pod\r\n * @summary Retrieve the result of an Okargo search from the criteria sent by post in JSON\r\n * @param model\r\n */\r\n getContractCarrierOffers(params: { \"model\"?: OnlineCarrierOffersExportCriteriaModel; }, options?: any) {\r\n return ExportApiFp.getContractCarrierOffers(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n getOnlineCarrierOffers(params: { \"model\"?: OnlineCarrierOffersExportCriteriaModel; }, options?: any) {\r\n return ExportApiFp.getOnlineCarrierOffers(params, options)(fetch, basePath);\r\n },\r\n /**\r\n * Can be used to look for offers on a specific pol/pod\r\n * @summary Retrieve the result of an Okargo online quotes system from the criteria sent by post in JSON\r\n * @param model\r\n */\r\n getOnlineCarrierOffersV2(params: { \"model\"?: OnlineCarrierOffersExportCriteriaModel; }, options?: any) {\r\n return ExportApiFp.getOnlineCarrierOffersV2(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @summary Get the list of ports\r\n */\r\n ports(options?: any) {\r\n return ExportApiFp.ports(options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n transferOffer(params: { \"model\"?: ExportOfferModel; }, options?: any) {\r\n return ExportApiFp.transferOffer(params, options)(fetch, basePath);\r\n },\r\n };\r\n};\r\n\r\n\r\n/**\r\n * ExternalFetchApi - fetch parameter creator\r\n */\r\nexport const ExternalFetchApiFetchParamCreator = {\r\n /**\r\n *\r\n * @param fetcherCode\r\n * @param take\r\n */\r\n popularRoutes(params: { \"fetcherCode\"?: string; \"take\"?: number; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/ExternalFetch/PopularRoutes`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"fetcherCode\": params[\"fetcherCode\"],\r\n \"take\": params[\"take\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n uploadRates(params: { \"model\"?: ExternalRatesModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/ExternalFetch/UploadRates`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * ExternalFetchApi - functional programming interface\r\n */\r\nexport const ExternalFetchApiFp = {\r\n /**\r\n *\r\n * @param fetcherCode\r\n * @param take\r\n */\r\n popularRoutes(params: { \"fetcherCode\"?: string; \"take\"?: number; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise> {\r\n const fetchArgs = ExternalFetchApiFetchParamCreator.popularRoutes(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n uploadRates(params: { \"model\"?: ExternalRatesModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = ExternalFetchApiFetchParamCreator.uploadRates(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * ExternalFetchApi - object-oriented interface\r\n */\r\nexport class ExternalFetchApi extends BaseAPI {\r\n /**\r\n *\r\n * @param fetcherCode\r\n * @param take\r\n */\r\n popularRoutes(params: { \"fetcherCode\"?: string; \"take\"?: number; }, options?: any) {\r\n return ExternalFetchApiFp.popularRoutes(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n uploadRates(params: { \"model\"?: ExternalRatesModel; }, options?: any) {\r\n return ExternalFetchApiFp.uploadRates(params, options)(this.fetch, this.basePath);\r\n }\r\n};\r\n\r\n/**\r\n * ExternalFetchApi - factory interface\r\n */\r\nexport const ExternalFetchApiFactory = function (fetch?: FetchAPI, basePath?: string) {\r\n return {\r\n /**\r\n *\r\n * @param fetcherCode\r\n * @param take\r\n */\r\n popularRoutes(params: { \"fetcherCode\"?: string; \"take\"?: number; }, options?: any) {\r\n return ExternalFetchApiFp.popularRoutes(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n uploadRates(params: { \"model\"?: ExternalRatesModel; }, options?: any) {\r\n return ExternalFetchApiFp.uploadRates(params, options)(fetch, basePath);\r\n },\r\n };\r\n};\r\n\r\n\r\n/**\r\n * HistoryApi - fetch parameter creator\r\n */\r\nexport const HistoryApiFetchParamCreator = {\r\n /**\r\n *\r\n * @param offerMemoId\r\n */\r\n downloadMemo(params: { \"offerMemoId\"?: number; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/History/DownloadMemo`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"offerMemoId\": params[\"offerMemoId\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n searchCriteriaHistory(params: { \"model\"?: SearchCriteriaHistoryModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/History/SearchCriteriaHistory`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n searchOfferMemoHistory(params: { \"model\"?: SearchOfferMemoHistoryModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/History/SearchOfferMemoHistory`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * HistoryApi - functional programming interface\r\n */\r\nexport const HistoryApiFp = {\r\n /**\r\n *\r\n * @param offerMemoId\r\n */\r\n downloadMemo(params: { \"offerMemoId\"?: number; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = HistoryApiFetchParamCreator.downloadMemo(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n searchCriteriaHistory(params: { \"model\"?: SearchCriteriaHistoryModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise> {\r\n const fetchArgs = HistoryApiFetchParamCreator.searchCriteriaHistory(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n searchOfferMemoHistory(params: { \"model\"?: SearchOfferMemoHistoryModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise> {\r\n const fetchArgs = HistoryApiFetchParamCreator.searchOfferMemoHistory(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * HistoryApi - object-oriented interface\r\n */\r\nexport class HistoryApi extends BaseAPI {\r\n /**\r\n *\r\n * @param offerMemoId\r\n */\r\n downloadMemo(params: { \"offerMemoId\"?: number; }, options?: any) {\r\n return HistoryApiFp.downloadMemo(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n searchCriteriaHistory(params: { \"model\"?: SearchCriteriaHistoryModel; }, options?: any) {\r\n return HistoryApiFp.searchCriteriaHistory(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n searchOfferMemoHistory(params: { \"model\"?: SearchOfferMemoHistoryModel; }, options?: any) {\r\n return HistoryApiFp.searchOfferMemoHistory(params, options)(this.fetch, this.basePath);\r\n }\r\n};\r\n\r\n/**\r\n * HistoryApi - factory interface\r\n */\r\nexport const HistoryApiFactory = function (fetch?: FetchAPI, basePath?: string) {\r\n return {\r\n /**\r\n *\r\n * @param offerMemoId\r\n */\r\n downloadMemo(params: { \"offerMemoId\"?: number; }, options?: any) {\r\n return HistoryApiFp.downloadMemo(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n searchCriteriaHistory(params: { \"model\"?: SearchCriteriaHistoryModel; }, options?: any) {\r\n return HistoryApiFp.searchCriteriaHistory(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n searchOfferMemoHistory(params: { \"model\"?: SearchOfferMemoHistoryModel; }, options?: any) {\r\n return HistoryApiFp.searchOfferMemoHistory(params, options)(fetch, basePath);\r\n },\r\n };\r\n};\r\n\r\n\r\n/**\r\n * HubApi - fetch parameter creator\r\n */\r\nexport const HubApiFetchParamCreator = {\r\n /**\r\n *\r\n */\r\n hubUsers(options?: any): FetchArgs {\r\n const baseUrl = `/api/Hub/HubUsers`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * HubApi - functional programming interface\r\n */\r\nexport const HubApiFp = {\r\n /**\r\n *\r\n */\r\n hubUsers(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise> {\r\n const fetchArgs = HubApiFetchParamCreator.hubUsers(options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * HubApi - object-oriented interface\r\n */\r\nexport class HubApi extends BaseAPI {\r\n /**\r\n *\r\n */\r\n hubUsers(options?: any) {\r\n return HubApiFp.hubUsers(options)(this.fetch, this.basePath);\r\n }\r\n};\r\n\r\n/**\r\n * HubApi - factory interface\r\n */\r\nexport const HubApiFactory = function (fetch?: FetchAPI, basePath?: string) {\r\n return {\r\n /**\r\n *\r\n */\r\n hubUsers(options?: any) {\r\n return HubApiFp.hubUsers(options)(fetch, basePath);\r\n },\r\n };\r\n};\r\n\r\n\r\n/**\r\n * ImageApi - fetch parameter creator\r\n */\r\nexport const ImageApiFetchParamCreator = {\r\n /**\r\n *\r\n * @param firmId\r\n */\r\n firmLogo(params: { \"firmId\"?: number; }, options?: any): FetchArgs {\r\n const baseUrl = `/Image/FirmLogo`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"firmId\": params[\"firmId\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param id\r\n */\r\n okargoLogo(params: { \"id\"?: number; }, options?: any): FetchArgs {\r\n const baseUrl = `/Image/OkargoLogo`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"id\": params[\"id\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * ImageApi - functional programming interface\r\n */\r\nexport const ImageApiFp = {\r\n /**\r\n *\r\n * @param firmId\r\n */\r\n firmLogo(params: { \"firmId\"?: number; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = ImageApiFetchParamCreator.firmLogo(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param id\r\n */\r\n okargoLogo(params: { \"id\"?: number; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = ImageApiFetchParamCreator.okargoLogo(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * ImageApi - object-oriented interface\r\n */\r\nexport class ImageApi extends BaseAPI {\r\n /**\r\n *\r\n * @param firmId\r\n */\r\n firmLogo(params: { \"firmId\"?: number; }, options?: any) {\r\n return ImageApiFp.firmLogo(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param id\r\n */\r\n okargoLogo(params: { \"id\"?: number; }, options?: any) {\r\n return ImageApiFp.okargoLogo(params, options)(this.fetch, this.basePath);\r\n }\r\n};\r\n\r\n/**\r\n * ImageApi - factory interface\r\n */\r\nexport const ImageApiFactory = function (fetch?: FetchAPI, basePath?: string) {\r\n return {\r\n /**\r\n *\r\n * @param firmId\r\n */\r\n firmLogo(params: { \"firmId\"?: number; }, options?: any) {\r\n return ImageApiFp.firmLogo(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param id\r\n */\r\n okargoLogo(params: { \"id\"?: number; }, options?: any) {\r\n return ImageApiFp.okargoLogo(params, options)(fetch, basePath);\r\n },\r\n };\r\n};\r\n\r\n\r\n/**\r\n * InlandCriteriaApi - fetch parameter creator\r\n */\r\nexport const InlandCriteriaApiFetchParamCreator = {\r\n /**\r\n * The criteria code here is not used, it will be generated server-side\r\n * @summary Create criteria for the inland module, can be used to search inland offers on Okargo\r\n * @param model Your criteria\r\n */\r\n createCriteria(params: { \"model\"?: InlandCriteriaModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/InlandCriteria/CreateCriteria`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @summary Get the criteria corresponding to a code\r\n * @param code The code of your criteria\r\n */\r\n getCriteriaByCode(params: { \"code\"?: string; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/InlandCriteria/GetCriteriaByCode`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"code\": params[\"code\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * InlandCriteriaApi - functional programming interface\r\n */\r\nexport const InlandCriteriaApiFp = {\r\n /**\r\n * The criteria code here is not used, it will be generated server-side\r\n * @summary Create criteria for the inland module, can be used to search inland offers on Okargo\r\n * @param model Your criteria\r\n */\r\n createCriteria(params: { \"model\"?: InlandCriteriaModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = InlandCriteriaApiFetchParamCreator.createCriteria(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @summary Get the criteria corresponding to a code\r\n * @param code The code of your criteria\r\n */\r\n getCriteriaByCode(params: { \"code\"?: string; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = InlandCriteriaApiFetchParamCreator.getCriteriaByCode(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * InlandCriteriaApi - object-oriented interface\r\n */\r\nexport class InlandCriteriaApi extends BaseAPI {\r\n /**\r\n * The criteria code here is not used, it will be generated server-side\r\n * @summary Create criteria for the inland module, can be used to search inland offers on Okargo\r\n * @param model Your criteria\r\n */\r\n createCriteria(params: { \"model\"?: InlandCriteriaModel; }, options?: any) {\r\n return InlandCriteriaApiFp.createCriteria(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @summary Get the criteria corresponding to a code\r\n * @param code The code of your criteria\r\n */\r\n getCriteriaByCode(params: { \"code\"?: string; }, options?: any) {\r\n return InlandCriteriaApiFp.getCriteriaByCode(params, options)(this.fetch, this.basePath);\r\n }\r\n};\r\n\r\n/**\r\n * InlandCriteriaApi - factory interface\r\n */\r\nexport const InlandCriteriaApiFactory = function (fetch?: FetchAPI, basePath?: string) {\r\n return {\r\n /**\r\n * The criteria code here is not used, it will be generated server-side\r\n * @summary Create criteria for the inland module, can be used to search inland offers on Okargo\r\n * @param model Your criteria\r\n */\r\n createCriteria(params: { \"model\"?: InlandCriteriaModel; }, options?: any) {\r\n return InlandCriteriaApiFp.createCriteria(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @summary Get the criteria corresponding to a code\r\n * @param code The code of your criteria\r\n */\r\n getCriteriaByCode(params: { \"code\"?: string; }, options?: any) {\r\n return InlandCriteriaApiFp.getCriteriaByCode(params, options)(fetch, basePath);\r\n },\r\n };\r\n};\r\n\r\n\r\n/**\r\n * InlandRatesOfferApi - fetch parameter creator\r\n */\r\nexport const InlandRatesOfferApiFetchParamCreator = {\r\n /**\r\n *\r\n * @param model\r\n */\r\n search(params: { \"model\"?: SearchInlandRatesOffersModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/InlandRatesOffer/Search`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n update(params: { \"model\"?: InlandRatesOfferModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/InlandRatesOffer/Update`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * InlandRatesOfferApi - functional programming interface\r\n */\r\nexport const InlandRatesOfferApiFp = {\r\n /**\r\n *\r\n * @param model\r\n */\r\n search(params: { \"model\"?: SearchInlandRatesOffersModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise> {\r\n const fetchArgs = InlandRatesOfferApiFetchParamCreator.search(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n update(params: { \"model\"?: InlandRatesOfferModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = InlandRatesOfferApiFetchParamCreator.update(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * InlandRatesOfferApi - object-oriented interface\r\n */\r\nexport class InlandRatesOfferApi extends BaseAPI {\r\n /**\r\n *\r\n * @param model\r\n */\r\n search(params: { \"model\"?: SearchInlandRatesOffersModel; }, options?: any) {\r\n return InlandRatesOfferApiFp.search(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n update(params: { \"model\"?: InlandRatesOfferModel; }, options?: any) {\r\n return InlandRatesOfferApiFp.update(params, options)(this.fetch, this.basePath);\r\n }\r\n};\r\n\r\n/**\r\n * InlandRatesOfferApi - factory interface\r\n */\r\nexport const InlandRatesOfferApiFactory = function (fetch?: FetchAPI, basePath?: string) {\r\n return {\r\n /**\r\n *\r\n * @param model\r\n */\r\n search(params: { \"model\"?: SearchInlandRatesOffersModel; }, options?: any) {\r\n return InlandRatesOfferApiFp.search(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n update(params: { \"model\"?: InlandRatesOfferModel; }, options?: any) {\r\n return InlandRatesOfferApiFp.update(params, options)(fetch, basePath);\r\n },\r\n };\r\n};\r\n\r\n\r\n/**\r\n * InlandSelectionApi - fetch parameter creator\r\n */\r\nexport const InlandSelectionApiFetchParamCreator = {\r\n /**\r\n *\r\n * @summary Download a zip document containing the relevant files regarding the rates from the id of the inland chargeSet\r\n * @param inlandChargeSetId The id of the inlandChargeSet\r\n */\r\n downloadWorkDocuments(params: { \"inlandChargeSetId\"?: number; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/InlandSelection/DownloadWorkDocuments`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"inlandChargeSetId\": params[\"inlandChargeSetId\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @summary Search and return the offers for a specific criteria previously created in InlandCriteria/CreateCriteria\r\n * @param code The inland crtieria code\r\n */\r\n getSelectionFromCode(params: { \"code\"?: string; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/InlandSelection/GetSelectionFromCode`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"code\": params[\"code\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * InlandSelectionApi - functional programming interface\r\n */\r\nexport const InlandSelectionApiFp = {\r\n /**\r\n *\r\n * @summary Download a zip document containing the relevant files regarding the rates from the id of the inland chargeSet\r\n * @param inlandChargeSetId The id of the inlandChargeSet\r\n */\r\n downloadWorkDocuments(params: { \"inlandChargeSetId\"?: number; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = InlandSelectionApiFetchParamCreator.downloadWorkDocuments(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @summary Search and return the offers for a specific criteria previously created in InlandCriteria/CreateCriteria\r\n * @param code The inland crtieria code\r\n */\r\n getSelectionFromCode(params: { \"code\"?: string; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = InlandSelectionApiFetchParamCreator.getSelectionFromCode(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * InlandSelectionApi - object-oriented interface\r\n */\r\nexport class InlandSelectionApi extends BaseAPI {\r\n /**\r\n *\r\n * @summary Download a zip document containing the relevant files regarding the rates from the id of the inland chargeSet\r\n * @param inlandChargeSetId The id of the inlandChargeSet\r\n */\r\n downloadWorkDocuments(params: { \"inlandChargeSetId\"?: number; }, options?: any) {\r\n return InlandSelectionApiFp.downloadWorkDocuments(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @summary Search and return the offers for a specific criteria previously created in InlandCriteria/CreateCriteria\r\n * @param code The inland crtieria code\r\n */\r\n getSelectionFromCode(params: { \"code\"?: string; }, options?: any) {\r\n return InlandSelectionApiFp.getSelectionFromCode(params, options)(this.fetch, this.basePath);\r\n }\r\n};\r\n\r\n/**\r\n * InlandSelectionApi - factory interface\r\n */\r\nexport const InlandSelectionApiFactory = function (fetch?: FetchAPI, basePath?: string) {\r\n return {\r\n /**\r\n *\r\n * @summary Download a zip document containing the relevant files regarding the rates from the id of the inland chargeSet\r\n * @param inlandChargeSetId The id of the inlandChargeSet\r\n */\r\n downloadWorkDocuments(params: { \"inlandChargeSetId\"?: number; }, options?: any) {\r\n return InlandSelectionApiFp.downloadWorkDocuments(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @summary Search and return the offers for a specific criteria previously created in InlandCriteria/CreateCriteria\r\n * @param code The inland crtieria code\r\n */\r\n getSelectionFromCode(params: { \"code\"?: string; }, options?: any) {\r\n return InlandSelectionApiFp.getSelectionFromCode(params, options)(fetch, basePath);\r\n },\r\n };\r\n};\r\n\r\n\r\n/**\r\n * LocationApi - fetch parameter creator\r\n */\r\nexport const LocationApiFetchParamCreator = {\r\n /**\r\n *\r\n * @param term\r\n * @param type\r\n * @param region\r\n */\r\n searchLocation(params: { \"term\"?: string; \"type\"?: string; \"region\"?: string; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Location/SearchLocation`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"term\": params[\"term\"],\r\n \"type\": params[\"type\"],\r\n \"region\": params[\"region\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n searchLocationsByAddress(params: { \"model\"?: SearchByAddressModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Location/SearchLocationsByAddress`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * LocationApi - functional programming interface\r\n */\r\nexport const LocationApiFp = {\r\n /**\r\n *\r\n * @param term\r\n * @param type\r\n * @param region\r\n */\r\n searchLocation(params: { \"term\"?: string; \"type\"?: string; \"region\"?: string; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise> {\r\n const fetchArgs = LocationApiFetchParamCreator.searchLocation(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n searchLocationsByAddress(params: { \"model\"?: SearchByAddressModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = LocationApiFetchParamCreator.searchLocationsByAddress(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * LocationApi - object-oriented interface\r\n */\r\nexport class LocationApi extends BaseAPI {\r\n /**\r\n *\r\n * @param term\r\n * @param type\r\n * @param region\r\n */\r\n searchLocation(params: { \"term\"?: string; \"type\"?: string; \"region\"?: string; }, options?: any) {\r\n return LocationApiFp.searchLocation(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n searchLocationsByAddress(params: { \"model\"?: SearchByAddressModel; }, options?: any) {\r\n return LocationApiFp.searchLocationsByAddress(params, options)(this.fetch, this.basePath);\r\n }\r\n};\r\n\r\n/**\r\n * LocationApi - factory interface\r\n */\r\nexport const LocationApiFactory = function (fetch?: FetchAPI, basePath?: string) {\r\n return {\r\n /**\r\n *\r\n * @param term\r\n * @param type\r\n * @param region\r\n */\r\n searchLocation(params: { \"term\"?: string; \"type\"?: string; \"region\"?: string; }, options?: any) {\r\n return LocationApiFp.searchLocation(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n searchLocationsByAddress(params: { \"model\"?: SearchByAddressModel; }, options?: any) {\r\n return LocationApiFp.searchLocationsByAddress(params, options)(fetch, basePath);\r\n },\r\n };\r\n};\r\n\r\n\r\n/**\r\n * LogApi - fetch parameter creator\r\n */\r\nexport const LogApiFetchParamCreator = {\r\n /**\r\n *\r\n * @param model\r\n */\r\n logActions(params: { \"model\"?: ActionsLogModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Log/LogActions`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n logError(params: { \"model\"?: ErrorReportModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Log/LogError`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n logScreen(params: { \"model\"?: UserScreenModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Log/LogScreen`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * LogApi - functional programming interface\r\n */\r\nexport const LogApiFp = {\r\n /**\r\n *\r\n * @param model\r\n */\r\n logActions(params: { \"model\"?: ActionsLogModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = LogApiFetchParamCreator.logActions(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n logError(params: { \"model\"?: ErrorReportModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = LogApiFetchParamCreator.logError(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n logScreen(params: { \"model\"?: UserScreenModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = LogApiFetchParamCreator.logScreen(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * LogApi - object-oriented interface\r\n */\r\nexport class LogApi extends BaseAPI {\r\n /**\r\n *\r\n * @param model\r\n */\r\n logActions(params: { \"model\"?: ActionsLogModel; }, options?: any) {\r\n return LogApiFp.logActions(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n logError(params: { \"model\"?: ErrorReportModel; }, options?: any) {\r\n return LogApiFp.logError(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n logScreen(params: { \"model\"?: UserScreenModel; }, options?: any) {\r\n return LogApiFp.logScreen(params, options)(this.fetch, this.basePath);\r\n }\r\n};\r\n\r\n/**\r\n * LogApi - factory interface\r\n */\r\nexport const LogApiFactory = function (fetch?: FetchAPI, basePath?: string) {\r\n return {\r\n /**\r\n *\r\n * @param model\r\n */\r\n logActions(params: { \"model\"?: ActionsLogModel; }, options?: any) {\r\n return LogApiFp.logActions(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n logError(params: { \"model\"?: ErrorReportModel; }, options?: any) {\r\n return LogApiFp.logError(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n logScreen(params: { \"model\"?: UserScreenModel; }, options?: any) {\r\n return LogApiFp.logScreen(params, options)(fetch, basePath);\r\n },\r\n };\r\n};\r\n\r\n\r\n/**\r\n * ModeratorApi - fetch parameter creator\r\n */\r\nexport const ModeratorApiFetchParamCreator = {\r\n /**\r\n *\r\n * @param model\r\n */\r\n createFirmNews(params: { \"model\"?: FirmNewsModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Moderator/CreateFirmNews`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n deleteDocumentInfo(params: { \"model\"?: OfferInformationModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Moderator/DeleteDocumentInfo`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param firmDocumentId\r\n */\r\n deleteFirmDocument(params: { \"firmDocumentId\"?: number; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Moderator/DeleteFirmDocument`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"firmDocumentId\": params[\"firmDocumentId\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param firmNewsId\r\n */\r\n deleteFirmNews(params: { \"firmNewsId\"?: number; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Moderator/DeleteFirmNews`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"firmNewsId\": params[\"firmNewsId\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n editDocumentInfo(params: { \"model\"?: OfferInformationModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Moderator/EditDocumentInfo`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n editFirmNews(params: { \"model\"?: FirmNewsModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Moderator/EditFirmNews`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n editRatesOffer(params: { \"model\"?: RatesOfferModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Moderator/EditRatesOffer`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param workDocumentsId\r\n * @param value\r\n */\r\n editWorkDocumentsEnabled(params: { \"workDocumentsId\"?: number; \"value\"?: boolean; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Moderator/EditWorkDocumentsEnabled`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"workDocumentsId\": params[\"workDocumentsId\"],\r\n \"value\": params[\"value\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n */\r\n getFirmDocuments(options?: any): FetchArgs {\r\n const baseUrl = `/api/Moderator/GetFirmDocuments`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n */\r\n getFirmNews(options?: any): FetchArgs {\r\n const baseUrl = `/api/Moderator/GetFirmNews`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n searchRatesOffers(params: { \"model\"?: SearchRatesOffersModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Moderator/SearchRatesOffers`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n searchWorkDocuments(params: { \"model\"?: SearchWorkDocumentsModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Moderator/SearchWorkDocuments`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * ModeratorApi - functional programming interface\r\n */\r\nexport const ModeratorApiFp = {\r\n /**\r\n *\r\n * @param model\r\n */\r\n createFirmNews(params: { \"model\"?: FirmNewsModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = ModeratorApiFetchParamCreator.createFirmNews(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n deleteDocumentInfo(params: { \"model\"?: OfferInformationModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = ModeratorApiFetchParamCreator.deleteDocumentInfo(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param firmDocumentId\r\n */\r\n deleteFirmDocument(params: { \"firmDocumentId\"?: number; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = ModeratorApiFetchParamCreator.deleteFirmDocument(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param firmNewsId\r\n */\r\n deleteFirmNews(params: { \"firmNewsId\"?: number; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = ModeratorApiFetchParamCreator.deleteFirmNews(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n editDocumentInfo(params: { \"model\"?: OfferInformationModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = ModeratorApiFetchParamCreator.editDocumentInfo(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n editFirmNews(params: { \"model\"?: FirmNewsModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = ModeratorApiFetchParamCreator.editFirmNews(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n editRatesOffer(params: { \"model\"?: RatesOfferModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = ModeratorApiFetchParamCreator.editRatesOffer(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param workDocumentsId\r\n * @param value\r\n */\r\n editWorkDocumentsEnabled(params: { \"workDocumentsId\"?: number; \"value\"?: boolean; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = ModeratorApiFetchParamCreator.editWorkDocumentsEnabled(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n */\r\n getFirmDocuments(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise> {\r\n const fetchArgs = ModeratorApiFetchParamCreator.getFirmDocuments(options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n */\r\n getFirmNews(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise> {\r\n const fetchArgs = ModeratorApiFetchParamCreator.getFirmNews(options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n searchRatesOffers(params: { \"model\"?: SearchRatesOffersModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise> {\r\n const fetchArgs = ModeratorApiFetchParamCreator.searchRatesOffers(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n searchWorkDocuments(params: { \"model\"?: SearchWorkDocumentsModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise> {\r\n const fetchArgs = ModeratorApiFetchParamCreator.searchWorkDocuments(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * ModeratorApi - object-oriented interface\r\n */\r\nexport class ModeratorApi extends BaseAPI {\r\n /**\r\n *\r\n * @param model\r\n */\r\n createFirmNews(params: { \"model\"?: FirmNewsModel; }, options?: any) {\r\n return ModeratorApiFp.createFirmNews(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n deleteDocumentInfo(params: { \"model\"?: OfferInformationModel; }, options?: any) {\r\n return ModeratorApiFp.deleteDocumentInfo(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param firmDocumentId\r\n */\r\n deleteFirmDocument(params: { \"firmDocumentId\"?: number; }, options?: any) {\r\n return ModeratorApiFp.deleteFirmDocument(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param firmNewsId\r\n */\r\n deleteFirmNews(params: { \"firmNewsId\"?: number; }, options?: any) {\r\n return ModeratorApiFp.deleteFirmNews(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n editDocumentInfo(params: { \"model\"?: OfferInformationModel; }, options?: any) {\r\n return ModeratorApiFp.editDocumentInfo(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n editFirmNews(params: { \"model\"?: FirmNewsModel; }, options?: any) {\r\n return ModeratorApiFp.editFirmNews(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n editRatesOffer(params: { \"model\"?: RatesOfferModel; }, options?: any) {\r\n return ModeratorApiFp.editRatesOffer(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param workDocumentsId\r\n * @param value\r\n */\r\n editWorkDocumentsEnabled(params: { \"workDocumentsId\"?: number; \"value\"?: boolean; }, options?: any) {\r\n return ModeratorApiFp.editWorkDocumentsEnabled(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n */\r\n getFirmDocuments(options?: any) {\r\n return ModeratorApiFp.getFirmDocuments(options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n */\r\n getFirmNews(options?: any) {\r\n return ModeratorApiFp.getFirmNews(options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n searchRatesOffers(params: { \"model\"?: SearchRatesOffersModel; }, options?: any) {\r\n return ModeratorApiFp.searchRatesOffers(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n searchWorkDocuments(params: { \"model\"?: SearchWorkDocumentsModel; }, options?: any) {\r\n return ModeratorApiFp.searchWorkDocuments(params, options)(this.fetch, this.basePath);\r\n }\r\n};\r\n\r\n/**\r\n * ModeratorApi - factory interface\r\n */\r\nexport const ModeratorApiFactory = function (fetch?: FetchAPI, basePath?: string) {\r\n return {\r\n /**\r\n *\r\n * @param model\r\n */\r\n createFirmNews(params: { \"model\"?: FirmNewsModel; }, options?: any) {\r\n return ModeratorApiFp.createFirmNews(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n deleteDocumentInfo(params: { \"model\"?: OfferInformationModel; }, options?: any) {\r\n return ModeratorApiFp.deleteDocumentInfo(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param firmDocumentId\r\n */\r\n deleteFirmDocument(params: { \"firmDocumentId\"?: number; }, options?: any) {\r\n return ModeratorApiFp.deleteFirmDocument(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param firmNewsId\r\n */\r\n deleteFirmNews(params: { \"firmNewsId\"?: number; }, options?: any) {\r\n return ModeratorApiFp.deleteFirmNews(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n editDocumentInfo(params: { \"model\"?: OfferInformationModel; }, options?: any) {\r\n return ModeratorApiFp.editDocumentInfo(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n editFirmNews(params: { \"model\"?: FirmNewsModel; }, options?: any) {\r\n return ModeratorApiFp.editFirmNews(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n editRatesOffer(params: { \"model\"?: RatesOfferModel; }, options?: any) {\r\n return ModeratorApiFp.editRatesOffer(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param workDocumentsId\r\n * @param value\r\n */\r\n editWorkDocumentsEnabled(params: { \"workDocumentsId\"?: number; \"value\"?: boolean; }, options?: any) {\r\n return ModeratorApiFp.editWorkDocumentsEnabled(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n */\r\n getFirmDocuments(options?: any) {\r\n return ModeratorApiFp.getFirmDocuments(options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n */\r\n getFirmNews(options?: any) {\r\n return ModeratorApiFp.getFirmNews(options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n searchRatesOffers(params: { \"model\"?: SearchRatesOffersModel; }, options?: any) {\r\n return ModeratorApiFp.searchRatesOffers(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n searchWorkDocuments(params: { \"model\"?: SearchWorkDocumentsModel; }, options?: any) {\r\n return ModeratorApiFp.searchWorkDocuments(params, options)(fetch, basePath);\r\n },\r\n };\r\n};\r\n\r\n\r\n/**\r\n * MultiPortApi - fetch parameter creator\r\n */\r\nexport const MultiPortApiFetchParamCreator = {\r\n /**\r\n *\r\n * @param model\r\n */\r\n addOffers(params: { \"model\"?: CreateMultiPortOffersModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/MultiPort/AddOffers`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n */\r\n currentMultiPort(options?: any): FetchArgs {\r\n const baseUrl = `/api/MultiPort/CurrentMultiPort`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param multiPortInstance\r\n */\r\n deleteMultiPortInstance(params: { \"multiPortInstance\"?: number; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/MultiPort/DeleteMultiPortInstance`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"multiPortInstance\": params[\"multiPortInstance\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param multiPortOfferId\r\n */\r\n deleteOffer(params: { \"multiPortOfferId\"?: number; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/MultiPort/DeleteOffer`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"multiPortOfferId\": params[\"multiPortOfferId\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param multiPortInstanceId\r\n */\r\n downloadMultiPorts(params: { \"multiPortInstanceId\"?: number; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/MultiPort/DownloadMultiPorts`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"multiPortInstanceId\": params[\"multiPortInstanceId\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n downloadRecentMultiPort(params: { \"model\"?: DownloadRecentMultiPortModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/MultiPort/DownloadRecentMultiPort`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n searchMultiPorts(params: { \"model\"?: SearchMultiPortsModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/MultiPort/SearchMultiPorts`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n updateMultiPort(params: { \"model\"?: UpdateMultiPortModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/MultiPort/UpdateMultiPort`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * MultiPortApi - functional programming interface\r\n */\r\nexport const MultiPortApiFp = {\r\n /**\r\n *\r\n * @param model\r\n */\r\n addOffers(params: { \"model\"?: CreateMultiPortOffersModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise> {\r\n const fetchArgs = MultiPortApiFetchParamCreator.addOffers(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n */\r\n currentMultiPort(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = MultiPortApiFetchParamCreator.currentMultiPort(options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param multiPortInstance\r\n */\r\n deleteMultiPortInstance(params: { \"multiPortInstance\"?: number; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = MultiPortApiFetchParamCreator.deleteMultiPortInstance(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param multiPortOfferId\r\n */\r\n deleteOffer(params: { \"multiPortOfferId\"?: number; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = MultiPortApiFetchParamCreator.deleteOffer(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param multiPortInstanceId\r\n */\r\n downloadMultiPorts(params: { \"multiPortInstanceId\"?: number; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = MultiPortApiFetchParamCreator.downloadMultiPorts(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n downloadRecentMultiPort(params: { \"model\"?: DownloadRecentMultiPortModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = MultiPortApiFetchParamCreator.downloadRecentMultiPort(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n searchMultiPorts(params: { \"model\"?: SearchMultiPortsModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise> {\r\n const fetchArgs = MultiPortApiFetchParamCreator.searchMultiPorts(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n updateMultiPort(params: { \"model\"?: UpdateMultiPortModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = MultiPortApiFetchParamCreator.updateMultiPort(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * MultiPortApi - object-oriented interface\r\n */\r\nexport class MultiPortApi extends BaseAPI {\r\n /**\r\n *\r\n * @param model\r\n */\r\n addOffers(params: { \"model\"?: CreateMultiPortOffersModel; }, options?: any) {\r\n return MultiPortApiFp.addOffers(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n */\r\n currentMultiPort(options?: any) {\r\n return MultiPortApiFp.currentMultiPort(options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param multiPortInstance\r\n */\r\n deleteMultiPortInstance(params: { \"multiPortInstance\"?: number; }, options?: any) {\r\n return MultiPortApiFp.deleteMultiPortInstance(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param multiPortOfferId\r\n */\r\n deleteOffer(params: { \"multiPortOfferId\"?: number; }, options?: any) {\r\n return MultiPortApiFp.deleteOffer(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param multiPortInstanceId\r\n */\r\n downloadMultiPorts(params: { \"multiPortInstanceId\"?: number; }, options?: any) {\r\n return MultiPortApiFp.downloadMultiPorts(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n downloadRecentMultiPort(params: { \"model\"?: DownloadRecentMultiPortModel; }, options?: any) {\r\n return MultiPortApiFp.downloadRecentMultiPort(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n searchMultiPorts(params: { \"model\"?: SearchMultiPortsModel; }, options?: any) {\r\n return MultiPortApiFp.searchMultiPorts(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n updateMultiPort(params: { \"model\"?: UpdateMultiPortModel; }, options?: any) {\r\n return MultiPortApiFp.updateMultiPort(params, options)(this.fetch, this.basePath);\r\n }\r\n};\r\n\r\n/**\r\n * MultiPortApi - factory interface\r\n */\r\nexport const MultiPortApiFactory = function (fetch?: FetchAPI, basePath?: string) {\r\n return {\r\n /**\r\n *\r\n * @param model\r\n */\r\n addOffers(params: { \"model\"?: CreateMultiPortOffersModel; }, options?: any) {\r\n return MultiPortApiFp.addOffers(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n */\r\n currentMultiPort(options?: any) {\r\n return MultiPortApiFp.currentMultiPort(options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param multiPortInstance\r\n */\r\n deleteMultiPortInstance(params: { \"multiPortInstance\"?: number; }, options?: any) {\r\n return MultiPortApiFp.deleteMultiPortInstance(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param multiPortOfferId\r\n */\r\n deleteOffer(params: { \"multiPortOfferId\"?: number; }, options?: any) {\r\n return MultiPortApiFp.deleteOffer(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param multiPortInstanceId\r\n */\r\n downloadMultiPorts(params: { \"multiPortInstanceId\"?: number; }, options?: any) {\r\n return MultiPortApiFp.downloadMultiPorts(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n downloadRecentMultiPort(params: { \"model\"?: DownloadRecentMultiPortModel; }, options?: any) {\r\n return MultiPortApiFp.downloadRecentMultiPort(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n searchMultiPorts(params: { \"model\"?: SearchMultiPortsModel; }, options?: any) {\r\n return MultiPortApiFp.searchMultiPorts(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n updateMultiPort(params: { \"model\"?: UpdateMultiPortModel; }, options?: any) {\r\n return MultiPortApiFp.updateMultiPort(params, options)(fetch, basePath);\r\n },\r\n };\r\n};\r\n\r\n\r\n/**\r\n * QuotationApi - fetch parameter creator\r\n */\r\nexport const QuotationApiFetchParamCreator = {\r\n /**\r\n *\r\n * @param criteriaCode\r\n * @param model\r\n */\r\n createQuotation(params: { \"criteriaCode\"?: string; \"model\"?: QuotationModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Quotation/CreateQuotation`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"criteriaCode\": params[\"criteriaCode\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param criteriaCode\r\n * @param model\r\n */\r\n createTemplate(params: { \"criteriaCode\"?: string; \"model\"?: QuotationModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Quotation/CreateTemplate`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"criteriaCode\": params[\"criteriaCode\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param quotationId\r\n */\r\n deleteTemplate(params: { \"quotationId\"?: number; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Quotation/DeleteTemplate`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"quotationId\": params[\"quotationId\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param quotationId\r\n */\r\n download(params: { \"quotationId\"?: number; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Quotation/Download`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"quotationId\": params[\"quotationId\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param criteriaCode\r\n * @param model\r\n */\r\n downloadPreview(params: { \"criteriaCode\"?: string; \"model\"?: QuotationModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Quotation/DownloadPreview`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"criteriaCode\": params[\"criteriaCode\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param quotationId\r\n */\r\n downloadQuotationExcel(params: { \"quotationId\"?: number; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Quotation/DownloadQuotationExcel`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"quotationId\": params[\"quotationId\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param quotationId\r\n */\r\n downloadQuotationPdf(params: { \"quotationId\"?: number; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Quotation/DownloadQuotationPdf`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"quotationId\": params[\"quotationId\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n downloadQuotationsCsv(params: { \"model\"?: QuotationFilterModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Quotation/DownloadQuotationsCsv`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n */\r\n getNewReference(options?: any): FetchArgs {\r\n const baseUrl = `/api/Quotation/GetNewReference`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param quotationId\r\n */\r\n getQuotation(params: { \"quotationId\"?: number; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Quotation/GetQuotation`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"quotationId\": params[\"quotationId\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n */\r\n getQuotationTemplates(options?: any): FetchArgs {\r\n const baseUrl = `/api/Quotation/GetQuotationTemplates`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param reference\r\n */\r\n referenceIsValid(params: { \"reference\"?: string; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Quotation/ReferenceIsValid`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"reference\": params[\"reference\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n searchQuotations(params: { \"model\"?: QuotationFilterModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Quotation/SearchQuotations`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n sendAgentQuotation(params: { \"model\"?: SendAgentQuotationModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Quotation/SendAgentQuotation`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param quotationId\r\n */\r\n sendQuotationEmail(params: { \"quotationId\"?: number; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Quotation/SendQuotationEmail`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"quotationId\": params[\"quotationId\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param name\r\n */\r\n templateNameIsValid(params: { \"name\"?: string; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Quotation/TemplateNameIsValid`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"name\": params[\"name\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param quotationId\r\n * @param comment\r\n */\r\n updateQuotationComment(params: { \"quotationId\"?: number; \"comment\"?: string; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Quotation/UpdateQuotationComment`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"quotationId\": params[\"quotationId\"],\r\n \"comment\": params[\"comment\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param quotationId\r\n * @param status\r\n */\r\n updateQuotationStatus(params: { \"quotationId\"?: number; \"status\"?: string; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Quotation/UpdateQuotationStatus`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"quotationId\": params[\"quotationId\"],\r\n \"status\": params[\"status\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param criteriaCode\r\n * @param model\r\n */\r\n updateTemplate(params: { \"criteriaCode\"?: string; \"model\"?: QuotationModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Quotation/UpdateTemplate`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"criteriaCode\": params[\"criteriaCode\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * QuotationApi - functional programming interface\r\n */\r\nexport const QuotationApiFp = {\r\n /**\r\n *\r\n * @param criteriaCode\r\n * @param model\r\n */\r\n createQuotation(params: { \"criteriaCode\"?: string; \"model\"?: QuotationModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = QuotationApiFetchParamCreator.createQuotation(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param criteriaCode\r\n * @param model\r\n */\r\n createTemplate(params: { \"criteriaCode\"?: string; \"model\"?: QuotationModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = QuotationApiFetchParamCreator.createTemplate(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param quotationId\r\n */\r\n deleteTemplate(params: { \"quotationId\"?: number; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = QuotationApiFetchParamCreator.deleteTemplate(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param quotationId\r\n */\r\n download(params: { \"quotationId\"?: number; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = QuotationApiFetchParamCreator.download(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param criteriaCode\r\n * @param model\r\n */\r\n downloadPreview(params: { \"criteriaCode\"?: string; \"model\"?: QuotationModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = QuotationApiFetchParamCreator.downloadPreview(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param quotationId\r\n */\r\n downloadQuotationExcel(params: { \"quotationId\"?: number; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = QuotationApiFetchParamCreator.downloadQuotationExcel(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param quotationId\r\n */\r\n downloadQuotationPdf(params: { \"quotationId\"?: number; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = QuotationApiFetchParamCreator.downloadQuotationPdf(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n downloadQuotationsCsv(params: { \"model\"?: QuotationFilterModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = QuotationApiFetchParamCreator.downloadQuotationsCsv(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n */\r\n getNewReference(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = QuotationApiFetchParamCreator.getNewReference(options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param quotationId\r\n */\r\n getQuotation(params: { \"quotationId\"?: number; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = QuotationApiFetchParamCreator.getQuotation(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n */\r\n getQuotationTemplates(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise> {\r\n const fetchArgs = QuotationApiFetchParamCreator.getQuotationTemplates(options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param reference\r\n */\r\n referenceIsValid(params: { \"reference\"?: string; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = QuotationApiFetchParamCreator.referenceIsValid(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n searchQuotations(params: { \"model\"?: QuotationFilterModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise> {\r\n const fetchArgs = QuotationApiFetchParamCreator.searchQuotations(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n sendAgentQuotation(params: { \"model\"?: SendAgentQuotationModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = QuotationApiFetchParamCreator.sendAgentQuotation(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param quotationId\r\n */\r\n sendQuotationEmail(params: { \"quotationId\"?: number; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = QuotationApiFetchParamCreator.sendQuotationEmail(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param name\r\n */\r\n templateNameIsValid(params: { \"name\"?: string; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = QuotationApiFetchParamCreator.templateNameIsValid(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param quotationId\r\n * @param comment\r\n */\r\n updateQuotationComment(params: { \"quotationId\"?: number; \"comment\"?: string; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = QuotationApiFetchParamCreator.updateQuotationComment(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param quotationId\r\n * @param status\r\n */\r\n updateQuotationStatus(params: { \"quotationId\"?: number; \"status\"?: string; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = QuotationApiFetchParamCreator.updateQuotationStatus(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param criteriaCode\r\n * @param model\r\n */\r\n updateTemplate(params: { \"criteriaCode\"?: string; \"model\"?: QuotationModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = QuotationApiFetchParamCreator.updateTemplate(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * QuotationApi - object-oriented interface\r\n */\r\nexport class QuotationApi extends BaseAPI {\r\n /**\r\n *\r\n * @param criteriaCode\r\n * @param model\r\n */\r\n createQuotation(params: { \"criteriaCode\"?: string; \"model\"?: QuotationModel; }, options?: any) {\r\n return QuotationApiFp.createQuotation(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param criteriaCode\r\n * @param model\r\n */\r\n createTemplate(params: { \"criteriaCode\"?: string; \"model\"?: QuotationModel; }, options?: any) {\r\n return QuotationApiFp.createTemplate(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param quotationId\r\n */\r\n deleteTemplate(params: { \"quotationId\"?: number; }, options?: any) {\r\n return QuotationApiFp.deleteTemplate(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param quotationId\r\n */\r\n download(params: { \"quotationId\"?: number; }, options?: any) {\r\n return QuotationApiFp.download(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param criteriaCode\r\n * @param model\r\n */\r\n downloadPreview(params: { \"criteriaCode\"?: string; \"model\"?: QuotationModel; }, options?: any) {\r\n return QuotationApiFp.downloadPreview(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param quotationId\r\n */\r\n downloadQuotationExcel(params: { \"quotationId\"?: number; }, options?: any) {\r\n return QuotationApiFp.downloadQuotationExcel(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param quotationId\r\n */\r\n downloadQuotationPdf(params: { \"quotationId\"?: number; }, options?: any) {\r\n return QuotationApiFp.downloadQuotationPdf(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n downloadQuotationsCsv(params: { \"model\"?: QuotationFilterModel; }, options?: any) {\r\n return QuotationApiFp.downloadQuotationsCsv(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n */\r\n getNewReference(options?: any) {\r\n return QuotationApiFp.getNewReference(options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param quotationId\r\n */\r\n getQuotation(params: { \"quotationId\"?: number; }, options?: any) {\r\n return QuotationApiFp.getQuotation(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n */\r\n getQuotationTemplates(options?: any) {\r\n return QuotationApiFp.getQuotationTemplates(options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param reference\r\n */\r\n referenceIsValid(params: { \"reference\"?: string; }, options?: any) {\r\n return QuotationApiFp.referenceIsValid(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n searchQuotations(params: { \"model\"?: QuotationFilterModel; }, options?: any) {\r\n return QuotationApiFp.searchQuotations(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n sendAgentQuotation(params: { \"model\"?: SendAgentQuotationModel; }, options?: any) {\r\n return QuotationApiFp.sendAgentQuotation(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param quotationId\r\n */\r\n sendQuotationEmail(params: { \"quotationId\"?: number; }, options?: any) {\r\n return QuotationApiFp.sendQuotationEmail(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param name\r\n */\r\n templateNameIsValid(params: { \"name\"?: string; }, options?: any) {\r\n return QuotationApiFp.templateNameIsValid(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param quotationId\r\n * @param comment\r\n */\r\n updateQuotationComment(params: { \"quotationId\"?: number; \"comment\"?: string; }, options?: any) {\r\n return QuotationApiFp.updateQuotationComment(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param quotationId\r\n * @param status\r\n */\r\n updateQuotationStatus(params: { \"quotationId\"?: number; \"status\"?: string; }, options?: any) {\r\n return QuotationApiFp.updateQuotationStatus(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param criteriaCode\r\n * @param model\r\n */\r\n updateTemplate(params: { \"criteriaCode\"?: string; \"model\"?: QuotationModel; }, options?: any) {\r\n return QuotationApiFp.updateTemplate(params, options)(this.fetch, this.basePath);\r\n }\r\n};\r\n\r\n/**\r\n * QuotationApi - factory interface\r\n */\r\nexport const QuotationApiFactory = function (fetch?: FetchAPI, basePath?: string) {\r\n return {\r\n /**\r\n *\r\n * @param criteriaCode\r\n * @param model\r\n */\r\n createQuotation(params: { \"criteriaCode\"?: string; \"model\"?: QuotationModel; }, options?: any) {\r\n return QuotationApiFp.createQuotation(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param criteriaCode\r\n * @param model\r\n */\r\n createTemplate(params: { \"criteriaCode\"?: string; \"model\"?: QuotationModel; }, options?: any) {\r\n return QuotationApiFp.createTemplate(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param quotationId\r\n */\r\n deleteTemplate(params: { \"quotationId\"?: number; }, options?: any) {\r\n return QuotationApiFp.deleteTemplate(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param quotationId\r\n */\r\n download(params: { \"quotationId\"?: number; }, options?: any) {\r\n return QuotationApiFp.download(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param criteriaCode\r\n * @param model\r\n */\r\n downloadPreview(params: { \"criteriaCode\"?: string; \"model\"?: QuotationModel; }, options?: any) {\r\n return QuotationApiFp.downloadPreview(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param quotationId\r\n */\r\n downloadQuotationExcel(params: { \"quotationId\"?: number; }, options?: any) {\r\n return QuotationApiFp.downloadQuotationExcel(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param quotationId\r\n */\r\n downloadQuotationPdf(params: { \"quotationId\"?: number; }, options?: any) {\r\n return QuotationApiFp.downloadQuotationPdf(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n downloadQuotationsCsv(params: { \"model\"?: QuotationFilterModel; }, options?: any) {\r\n return QuotationApiFp.downloadQuotationsCsv(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n */\r\n getNewReference(options?: any) {\r\n return QuotationApiFp.getNewReference(options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param quotationId\r\n */\r\n getQuotation(params: { \"quotationId\"?: number; }, options?: any) {\r\n return QuotationApiFp.getQuotation(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n */\r\n getQuotationTemplates(options?: any) {\r\n return QuotationApiFp.getQuotationTemplates(options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param reference\r\n */\r\n referenceIsValid(params: { \"reference\"?: string; }, options?: any) {\r\n return QuotationApiFp.referenceIsValid(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n searchQuotations(params: { \"model\"?: QuotationFilterModel; }, options?: any) {\r\n return QuotationApiFp.searchQuotations(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n sendAgentQuotation(params: { \"model\"?: SendAgentQuotationModel; }, options?: any) {\r\n return QuotationApiFp.sendAgentQuotation(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param quotationId\r\n */\r\n sendQuotationEmail(params: { \"quotationId\"?: number; }, options?: any) {\r\n return QuotationApiFp.sendQuotationEmail(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param name\r\n */\r\n templateNameIsValid(params: { \"name\"?: string; }, options?: any) {\r\n return QuotationApiFp.templateNameIsValid(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param quotationId\r\n * @param comment\r\n */\r\n updateQuotationComment(params: { \"quotationId\"?: number; \"comment\"?: string; }, options?: any) {\r\n return QuotationApiFp.updateQuotationComment(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param quotationId\r\n * @param status\r\n */\r\n updateQuotationStatus(params: { \"quotationId\"?: number; \"status\"?: string; }, options?: any) {\r\n return QuotationApiFp.updateQuotationStatus(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param criteriaCode\r\n * @param model\r\n */\r\n updateTemplate(params: { \"criteriaCode\"?: string; \"model\"?: QuotationModel; }, options?: any) {\r\n return QuotationApiFp.updateTemplate(params, options)(fetch, basePath);\r\n },\r\n };\r\n};\r\n\r\n\r\n/**\r\n * QuotationContactApi - fetch parameter creator\r\n */\r\nexport const QuotationContactApiFetchParamCreator = {\r\n /**\r\n *\r\n * @param id\r\n */\r\n _delete(params: { \"id\"?: number; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/QuotationContact/Delete`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"id\": params[\"id\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"DELETE\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param models\r\n */\r\n bulkUpdate(params: { \"models\"?: Array; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/QuotationContact/BulkUpdate`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"PUT\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"models\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"models\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n create(params: { \"model\"?: QuotationContactModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/QuotationContact/Create`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param id\r\n */\r\n disableContact(params: { \"id\"?: number; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/QuotationContact/DisableContact`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"id\": params[\"id\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n */\r\n getEntities(options?: any): FetchArgs {\r\n const baseUrl = `/api/QuotationContact/GetEntities`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param companyName\r\n */\r\n searchContactsByCompanyName(params: { \"companyName\"?: string; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/QuotationContact/SearchContactsByCompanyName`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"companyName\": params[\"companyName\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n update(params: { \"model\"?: QuotationContactModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/QuotationContact/Update`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"PUT\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * QuotationContactApi - functional programming interface\r\n */\r\nexport const QuotationContactApiFp = {\r\n /**\r\n *\r\n * @param id\r\n */\r\n _delete(params: { \"id\"?: number; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = QuotationContactApiFetchParamCreator._delete(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param models\r\n */\r\n bulkUpdate(params: { \"models\"?: Array; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise> {\r\n const fetchArgs = QuotationContactApiFetchParamCreator.bulkUpdate(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n create(params: { \"model\"?: QuotationContactModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = QuotationContactApiFetchParamCreator.create(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param id\r\n */\r\n disableContact(params: { \"id\"?: number; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = QuotationContactApiFetchParamCreator.disableContact(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n */\r\n getEntities(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise> {\r\n const fetchArgs = QuotationContactApiFetchParamCreator.getEntities(options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param companyName\r\n */\r\n searchContactsByCompanyName(params: { \"companyName\"?: string; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise> {\r\n const fetchArgs = QuotationContactApiFetchParamCreator.searchContactsByCompanyName(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n update(params: { \"model\"?: QuotationContactModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = QuotationContactApiFetchParamCreator.update(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * QuotationContactApi - object-oriented interface\r\n */\r\nexport class QuotationContactApi extends BaseAPI {\r\n /**\r\n *\r\n * @param id\r\n */\r\n _delete(params: { \"id\"?: number; }, options?: any) {\r\n return QuotationContactApiFp._delete(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param models\r\n */\r\n bulkUpdate(params: { \"models\"?: Array; }, options?: any) {\r\n return QuotationContactApiFp.bulkUpdate(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n create(params: { \"model\"?: QuotationContactModel; }, options?: any) {\r\n return QuotationContactApiFp.create(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param id\r\n */\r\n disableContact(params: { \"id\"?: number; }, options?: any) {\r\n return QuotationContactApiFp.disableContact(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n */\r\n getEntities(options?: any) {\r\n return QuotationContactApiFp.getEntities(options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param companyName\r\n */\r\n searchContactsByCompanyName(params: { \"companyName\"?: string; }, options?: any) {\r\n return QuotationContactApiFp.searchContactsByCompanyName(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n update(params: { \"model\"?: QuotationContactModel; }, options?: any) {\r\n return QuotationContactApiFp.update(params, options)(this.fetch, this.basePath);\r\n }\r\n};\r\n\r\n/**\r\n * QuotationContactApi - factory interface\r\n */\r\nexport const QuotationContactApiFactory = function (fetch?: FetchAPI, basePath?: string) {\r\n return {\r\n /**\r\n *\r\n * @param id\r\n */\r\n _delete(params: { \"id\"?: number; }, options?: any) {\r\n return QuotationContactApiFp._delete(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param models\r\n */\r\n bulkUpdate(params: { \"models\"?: Array; }, options?: any) {\r\n return QuotationContactApiFp.bulkUpdate(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n create(params: { \"model\"?: QuotationContactModel; }, options?: any) {\r\n return QuotationContactApiFp.create(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param id\r\n */\r\n disableContact(params: { \"id\"?: number; }, options?: any) {\r\n return QuotationContactApiFp.disableContact(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n */\r\n getEntities(options?: any) {\r\n return QuotationContactApiFp.getEntities(options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param companyName\r\n */\r\n searchContactsByCompanyName(params: { \"companyName\"?: string; }, options?: any) {\r\n return QuotationContactApiFp.searchContactsByCompanyName(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n update(params: { \"model\"?: QuotationContactModel; }, options?: any) {\r\n return QuotationContactApiFp.update(params, options)(fetch, basePath);\r\n },\r\n };\r\n};\r\n\r\n\r\n/**\r\n * QuotationSettingsApi - fetch parameter creator\r\n */\r\nexport const QuotationSettingsApiFetchParamCreator = {\r\n /**\r\n *\r\n */\r\n getQuotationSettings(options?: any): FetchArgs {\r\n const baseUrl = `/api/QuotationSettings/GetQuotationSettings`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n update(params: { \"model\"?: QuotationSettingsModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/QuotationSettings/Update`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * QuotationSettingsApi - functional programming interface\r\n */\r\nexport const QuotationSettingsApiFp = {\r\n /**\r\n *\r\n */\r\n getQuotationSettings(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = QuotationSettingsApiFetchParamCreator.getQuotationSettings(options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n update(params: { \"model\"?: QuotationSettingsModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = QuotationSettingsApiFetchParamCreator.update(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * QuotationSettingsApi - object-oriented interface\r\n */\r\nexport class QuotationSettingsApi extends BaseAPI {\r\n /**\r\n *\r\n */\r\n getQuotationSettings(options?: any) {\r\n return QuotationSettingsApiFp.getQuotationSettings(options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n update(params: { \"model\"?: QuotationSettingsModel; }, options?: any) {\r\n return QuotationSettingsApiFp.update(params, options)(this.fetch, this.basePath);\r\n }\r\n};\r\n\r\n/**\r\n * QuotationSettingsApi - factory interface\r\n */\r\nexport const QuotationSettingsApiFactory = function (fetch?: FetchAPI, basePath?: string) {\r\n return {\r\n /**\r\n *\r\n */\r\n getQuotationSettings(options?: any) {\r\n return QuotationSettingsApiFp.getQuotationSettings(options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n update(params: { \"model\"?: QuotationSettingsModel; }, options?: any) {\r\n return QuotationSettingsApiFp.update(params, options)(fetch, basePath);\r\n },\r\n };\r\n};\r\n\r\n\r\n/**\r\n * RatesFetcherApi - fetch parameter creator\r\n */\r\nexport const RatesFetcherApiFetchParamCreator = {\r\n /**\r\n *\r\n * @param model\r\n */\r\n carrierRatesPlatformsStatus(params: { \"model\"?: CarrierRatesPlatformsStatusModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/RatesFetcher/CarrierRatesPlatformsStatus`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n */\r\n getAvailableRatesFetchers(options?: any): FetchArgs {\r\n const baseUrl = `/api/RatesFetcher/GetAvailableRatesFetchers`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n getOnlineCarrierOffers(params: { \"model\"?: GetOnlineCarrierOffersModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/v2/GetOnlineCarrierOffers`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n getOnlineCarrierOffersOld(params: { \"model\"?: GetOnlineCarrierOffersModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/RatesFetcher/GetOnlineCarrierOffers`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n getOnlineInlandCarrierOffers(params: { \"model\"?: GetOnlineInlandCarrierOffersModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/RatesFetcher/GetOnlineInlandCarrierOffers`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param chargeSetId\r\n * @param criteriaCode\r\n * @param deepLink\r\n */\r\n processDeepLink(params: { \"chargeSetId\"?: number; \"criteriaCode\"?: string; \"deepLink\"?: string; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/RatesFetcher/ProcessDeepLink`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"chargeSetId\": params[\"chargeSetId\"],\r\n \"criteriaCode\": params[\"criteriaCode\"],\r\n \"deepLink\": params[\"deepLink\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * RatesFetcherApi - functional programming interface\r\n */\r\nexport const RatesFetcherApiFp = {\r\n /**\r\n *\r\n * @param model\r\n */\r\n carrierRatesPlatformsStatus(params: { \"model\"?: CarrierRatesPlatformsStatusModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise> {\r\n const fetchArgs = RatesFetcherApiFetchParamCreator.carrierRatesPlatformsStatus(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n */\r\n getAvailableRatesFetchers(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise> {\r\n const fetchArgs = RatesFetcherApiFetchParamCreator.getAvailableRatesFetchers(options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n getOnlineCarrierOffers(params: { \"model\"?: GetOnlineCarrierOffersModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = RatesFetcherApiFetchParamCreator.getOnlineCarrierOffers(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n getOnlineCarrierOffersOld(params: { \"model\"?: GetOnlineCarrierOffersModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = RatesFetcherApiFetchParamCreator.getOnlineCarrierOffersOld(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n getOnlineInlandCarrierOffers(params: { \"model\"?: GetOnlineInlandCarrierOffersModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = RatesFetcherApiFetchParamCreator.getOnlineInlandCarrierOffers(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param chargeSetId\r\n * @param criteriaCode\r\n * @param deepLink\r\n */\r\n processDeepLink(params: { \"chargeSetId\"?: number; \"criteriaCode\"?: string; \"deepLink\"?: string; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = RatesFetcherApiFetchParamCreator.processDeepLink(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * RatesFetcherApi - object-oriented interface\r\n */\r\nexport class RatesFetcherApi extends BaseAPI {\r\n /**\r\n *\r\n * @param model\r\n */\r\n carrierRatesPlatformsStatus(params: { \"model\"?: CarrierRatesPlatformsStatusModel; }, options?: any) {\r\n return RatesFetcherApiFp.carrierRatesPlatformsStatus(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n */\r\n getAvailableRatesFetchers(options?: any) {\r\n return RatesFetcherApiFp.getAvailableRatesFetchers(options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n getOnlineCarrierOffers(params: { \"model\"?: GetOnlineCarrierOffersModel; }, options?: any) {\r\n return RatesFetcherApiFp.getOnlineCarrierOffers(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n getOnlineCarrierOffersOld(params: { \"model\"?: GetOnlineCarrierOffersModel; }, options?: any) {\r\n return RatesFetcherApiFp.getOnlineCarrierOffersOld(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n getOnlineInlandCarrierOffers(params: { \"model\"?: GetOnlineInlandCarrierOffersModel; }, options?: any) {\r\n return RatesFetcherApiFp.getOnlineInlandCarrierOffers(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param chargeSetId\r\n * @param criteriaCode\r\n * @param deepLink\r\n */\r\n processDeepLink(params: { \"chargeSetId\"?: number; \"criteriaCode\"?: string; \"deepLink\"?: string; }, options?: any) {\r\n return RatesFetcherApiFp.processDeepLink(params, options)(this.fetch, this.basePath);\r\n }\r\n};\r\n\r\n/**\r\n * RatesFetcherApi - factory interface\r\n */\r\nexport const RatesFetcherApiFactory = function (fetch?: FetchAPI, basePath?: string) {\r\n return {\r\n /**\r\n *\r\n * @param model\r\n */\r\n carrierRatesPlatformsStatus(params: { \"model\"?: CarrierRatesPlatformsStatusModel; }, options?: any) {\r\n return RatesFetcherApiFp.carrierRatesPlatformsStatus(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n */\r\n getAvailableRatesFetchers(options?: any) {\r\n return RatesFetcherApiFp.getAvailableRatesFetchers(options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n getOnlineCarrierOffers(params: { \"model\"?: GetOnlineCarrierOffersModel; }, options?: any) {\r\n return RatesFetcherApiFp.getOnlineCarrierOffers(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n getOnlineCarrierOffersOld(params: { \"model\"?: GetOnlineCarrierOffersModel; }, options?: any) {\r\n return RatesFetcherApiFp.getOnlineCarrierOffersOld(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n getOnlineInlandCarrierOffers(params: { \"model\"?: GetOnlineInlandCarrierOffersModel; }, options?: any) {\r\n return RatesFetcherApiFp.getOnlineInlandCarrierOffers(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param chargeSetId\r\n * @param criteriaCode\r\n * @param deepLink\r\n */\r\n processDeepLink(params: { \"chargeSetId\"?: number; \"criteriaCode\"?: string; \"deepLink\"?: string; }, options?: any) {\r\n return RatesFetcherApiFp.processDeepLink(params, options)(fetch, basePath);\r\n },\r\n };\r\n};\r\n\r\n\r\n/**\r\n * RatesOfferApi - fetch parameter creator\r\n */\r\nexport const RatesOfferApiFetchParamCreator = {\r\n /**\r\n *\r\n * @param term\r\n * @param carrierId\r\n */\r\n getRatesOffersFromTerm(params: { \"term\"?: string; \"carrierId\"?: number; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/RatesOffer/GetRatesOffersFromTerm`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"term\": params[\"term\"],\r\n \"carrierId\": params[\"carrierId\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * RatesOfferApi - functional programming interface\r\n */\r\nexport const RatesOfferApiFp = {\r\n /**\r\n *\r\n * @param term\r\n * @param carrierId\r\n */\r\n getRatesOffersFromTerm(params: { \"term\"?: string; \"carrierId\"?: number; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise> {\r\n const fetchArgs = RatesOfferApiFetchParamCreator.getRatesOffersFromTerm(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * RatesOfferApi - object-oriented interface\r\n */\r\nexport class RatesOfferApi extends BaseAPI {\r\n /**\r\n *\r\n * @param term\r\n * @param carrierId\r\n */\r\n getRatesOffersFromTerm(params: { \"term\"?: string; \"carrierId\"?: number; }, options?: any) {\r\n return RatesOfferApiFp.getRatesOffersFromTerm(params, options)(this.fetch, this.basePath);\r\n }\r\n};\r\n\r\n/**\r\n * RatesOfferApi - factory interface\r\n */\r\nexport const RatesOfferApiFactory = function (fetch?: FetchAPI, basePath?: string) {\r\n return {\r\n /**\r\n *\r\n * @param term\r\n * @param carrierId\r\n */\r\n getRatesOffersFromTerm(params: { \"term\"?: string; \"carrierId\"?: number; }, options?: any) {\r\n return RatesOfferApiFp.getRatesOffersFromTerm(params, options)(fetch, basePath);\r\n },\r\n };\r\n};\r\n\r\n\r\n/**\r\n * RouteRatesPlatformDatasApi - fetch parameter creator\r\n */\r\nexport const RouteRatesPlatformDatasApiFetchParamCreator = {\r\n /**\r\n *\r\n * @param id\r\n */\r\n _delete(params: { \"id\"?: number; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/RouteRatesPlatformDatas/Delete`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"id\": params[\"id\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n create(params: { \"model\"?: RouteRatesPlatformDataModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/RouteRatesPlatformDatas/Create`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n */\r\n getEntities(options?: any): FetchArgs {\r\n const baseUrl = `/api/RouteRatesPlatformDatas/GetEntities`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n update(params: { \"model\"?: RouteRatesPlatformDataModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/RouteRatesPlatformDatas/Update`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * RouteRatesPlatformDatasApi - functional programming interface\r\n */\r\nexport const RouteRatesPlatformDatasApiFp = {\r\n /**\r\n *\r\n * @param id\r\n */\r\n _delete(params: { \"id\"?: number; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = RouteRatesPlatformDatasApiFetchParamCreator._delete(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n create(params: { \"model\"?: RouteRatesPlatformDataModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = RouteRatesPlatformDatasApiFetchParamCreator.create(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n */\r\n getEntities(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise> {\r\n const fetchArgs = RouteRatesPlatformDatasApiFetchParamCreator.getEntities(options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n update(params: { \"model\"?: RouteRatesPlatformDataModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = RouteRatesPlatformDatasApiFetchParamCreator.update(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * RouteRatesPlatformDatasApi - object-oriented interface\r\n */\r\nexport class RouteRatesPlatformDatasApi extends BaseAPI {\r\n /**\r\n *\r\n * @param id\r\n */\r\n _delete(params: { \"id\"?: number; }, options?: any) {\r\n return RouteRatesPlatformDatasApiFp._delete(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n create(params: { \"model\"?: RouteRatesPlatformDataModel; }, options?: any) {\r\n return RouteRatesPlatformDatasApiFp.create(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n */\r\n getEntities(options?: any) {\r\n return RouteRatesPlatformDatasApiFp.getEntities(options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n update(params: { \"model\"?: RouteRatesPlatformDataModel; }, options?: any) {\r\n return RouteRatesPlatformDatasApiFp.update(params, options)(this.fetch, this.basePath);\r\n }\r\n};\r\n\r\n/**\r\n * RouteRatesPlatformDatasApi - factory interface\r\n */\r\nexport const RouteRatesPlatformDatasApiFactory = function (fetch?: FetchAPI, basePath?: string) {\r\n return {\r\n /**\r\n *\r\n * @param id\r\n */\r\n _delete(params: { \"id\"?: number; }, options?: any) {\r\n return RouteRatesPlatformDatasApiFp._delete(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n create(params: { \"model\"?: RouteRatesPlatformDataModel; }, options?: any) {\r\n return RouteRatesPlatformDatasApiFp.create(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n */\r\n getEntities(options?: any) {\r\n return RouteRatesPlatformDatasApiFp.getEntities(options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n update(params: { \"model\"?: RouteRatesPlatformDataModel; }, options?: any) {\r\n return RouteRatesPlatformDatasApiFp.update(params, options)(fetch, basePath);\r\n },\r\n };\r\n};\r\n\r\n\r\n/**\r\n * SeedApi - fetch parameter creator\r\n */\r\nexport const SeedApiFetchParamCreator = {\r\n\r\n /**\r\n *\r\n */\r\n getChargeNames(options?: any): FetchArgs {\r\n const baseUrl = `/api/Seed/GetChargeNames`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n\r\n /**\r\n *\r\n */\r\n getCarriers(options?: any): FetchArgs {\r\n const baseUrl = `/api/Seed/GetCarriers`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n */\r\n getMinimumVersion(options?: any): FetchArgs {\r\n const baseUrl = `/api/Seed/GetMinimumVersion`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n */\r\n getOptions(options?: any): FetchArgs {\r\n const baseUrl = `/api/Seed/GetOptions`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n * This api is cached for a short period so the risk of missing is is very low but does exist\r\n * @summary Get the data needed to make sens of the id returned in other Apis, such as the containers (sizeTypeId) or code of charge (ChargeNameId)\r\n */\r\n getSeed(options?: any): FetchArgs {\r\n const baseUrl = `/api/Seed/GetSeed`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param langCode\r\n */\r\n getTexts(params: { \"langCode\"?: string; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Seed/GetTexts`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"langCode\": params[\"langCode\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * SeedApi - functional programming interface\r\n */\r\nexport const SeedApiFp = {\r\n /**\r\n *\r\n */\r\n getChargeNames(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<{ [key: string]: ChargeNameModel; }> {\r\n const fetchArgs = SeedApiFetchParamCreator.getChargeNames(options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n */\r\n getCarriers(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<{ [key: string]: CarrierModel; }> {\r\n const fetchArgs = SeedApiFetchParamCreator.getCarriers(options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n */\r\n getMinimumVersion(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = SeedApiFetchParamCreator.getMinimumVersion(options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n */\r\n getOptions(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = SeedApiFetchParamCreator.getOptions(options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n * This api is cached for a short period so the risk of missing is is very low but does exist\r\n * @summary Get the data needed to make sens of the id returned in other Apis, such as the containers (sizeTypeId) or code of charge (ChargeNameId)\r\n */\r\n getSeed(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = SeedApiFetchParamCreator.getSeed(options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param langCode\r\n */\r\n getTexts(params: { \"langCode\"?: string; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<{ [key: string]: string; }> {\r\n const fetchArgs = SeedApiFetchParamCreator.getTexts(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * SeedApi - object-oriented interface\r\n */\r\nexport class SeedApi extends BaseAPI {\r\n /**\r\n *\r\n */\r\n getChargeNames(options?: any) {\r\n return SeedApiFp.getChargeNames(options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n */\r\n getCarriers(options?: any) {\r\n return SeedApiFp.getCarriers(options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n */\r\n getMinimumVersion(options?: any) {\r\n return SeedApiFp.getMinimumVersion(options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n */\r\n getOptions(options?: any) {\r\n return SeedApiFp.getOptions(options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n * This api is cached for a short period so the risk of missing is is very low but does exist\r\n * @summary Get the data needed to make sens of the id returned in other Apis, such as the containers (sizeTypeId) or code of charge (ChargeNameId)\r\n */\r\n getSeed(options?: any) {\r\n return SeedApiFp.getSeed(options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param langCode\r\n */\r\n getTexts(params: { \"langCode\"?: string; }, options?: any) {\r\n return SeedApiFp.getTexts(params, options)(this.fetch, this.basePath);\r\n }\r\n};\r\n\r\n/**\r\n * SeedApi - factory interface\r\n */\r\nexport const SeedApiFactory = function (fetch?: FetchAPI, basePath?: string) {\r\n return {\r\n /**\r\n *\r\n */\r\n getCarriers(options?: any) {\r\n return SeedApiFp.getCarriers(options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n */\r\n getMinimumVersion(options?: any) {\r\n return SeedApiFp.getMinimumVersion(options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n */\r\n getOptions(options?: any) {\r\n return SeedApiFp.getOptions(options)(fetch, basePath);\r\n },\r\n /**\r\n * This api is cached for a short period so the risk of missing is is very low but does exist\r\n * @summary Get the data needed to make sens of the id returned in other Apis, such as the containers (sizeTypeId) or code of charge (ChargeNameId)\r\n */\r\n getSeed(options?: any) {\r\n return SeedApiFp.getSeed(options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param langCode\r\n */\r\n getTexts(params: { \"langCode\"?: string; }, options?: any) {\r\n return SeedApiFp.getTexts(params, options)(fetch, basePath);\r\n },\r\n };\r\n};\r\n\r\n\r\n/**\r\n * SelectionApi - fetch parameter creator\r\n */\r\nexport const SelectionApiFetchParamCreator = {\r\n /**\r\n *\r\n * @param model\r\n */\r\n downloadMemo(params: { \"model\"?: OfferSelectionModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Selection/DownloadMemo`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n * Can be used to look for offers on a specific pol/pod\r\n * @summary Download the document(s) from a the id of the chargeSet\r\n * @param chargeSetId\r\n */\r\n downloadWorkDocuments(params: { \"chargeSetId\"?: number; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Selection/DownloadWorkDocuments`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"chargeSetId\": params[\"chargeSetId\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param routeId\r\n * @param from\r\n * @param to\r\n */\r\n getBookingForm(params: { \"routeId\"?: number; \"from\"?: Date; \"to\"?: Date; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Selection/GetBookingForm`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"routeId\": params[\"routeId\"],\r\n \"from\": params[\"from\"],\r\n \"to\": params[\"to\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param routeId\r\n * @param from\r\n * @param to\r\n */\r\n getCarrierForm(params: { \"routeId\"?: number; \"from\"?: Date; \"to\"?: Date; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Selection/GetCarrierForm`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"routeId\": params[\"routeId\"],\r\n \"from\": params[\"from\"],\r\n \"to\": params[\"to\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n * The code of the criteria is only used to know the containers and filters you want applied to this offer\r\n * @summary Get a specific offer based on the id of the depart, the chargeSet and the code of the criteria\r\n * @param departId\r\n * @param chargeSetId\r\n * @param routeId\r\n * @param criteriaCode\r\n */\r\n getCarrierOffer(params: { \"departId\"?: number; \"chargeSetId\"?: number; \"criteriaCode\"?: string; \"routeId\"?: number }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Selection/GetCarrierOffer`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"departId\": params[\"departId\"],\r\n \"chargeSetId\": params[\"chargeSetId\"],\r\n \"routeId\": params[\"routeId\"],\r\n \"criteriaCode\": params[\"criteriaCode\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n * Can be used to look for offers on a specific pol/pod\r\n * @summary Retrieve the result of an Okargo search from a criteria code (ex: FRFOS-yJGDsx-CNTXG)\r\n * @param code\r\n */\r\n searchSelection(params: { \"code\"?: string; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Selection/SearchSelection`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"code\": params[\"code\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n * Can be used to look for offers on a specific pol/pod\r\n * @summary Retrieve the result of an Okargo search from the criteria sent by post in JSON\r\n * @param criteria\r\n */\r\n searchSelection_1(params: { \"criteria\"?: CriteriaModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Selection/SearchSelection`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"criteria\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"criteria\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n sendAskBooking(params: { \"model\"?: SendAskBookingModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Selection/SendAskBooking`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n sendAskRates(params: { \"model\"?: SendAskRatesModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Selection/SendAskRates`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n sendMemo(params: { \"model\"?: OfferSelectionModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Selection/SendMemo`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n setSatisfied(params: { \"model\"?: SetSatisfiedModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Selection/SetSatisfied`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * SelectionApi - functional programming interface\r\n */\r\nexport const SelectionApiFp = {\r\n /**\r\n *\r\n * @param model\r\n */\r\n downloadMemo(params: { \"model\"?: OfferSelectionModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = SelectionApiFetchParamCreator.downloadMemo(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n * Can be used to look for offers on a specific pol/pod\r\n * @summary Download the document(s) from a the id of the chargeSet\r\n * @param chargeSetId\r\n */\r\n downloadWorkDocuments(params: { \"chargeSetId\"?: number; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = SelectionApiFetchParamCreator.downloadWorkDocuments(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param routeId\r\n * @param from\r\n * @param to\r\n */\r\n getBookingForm(params: { \"routeId\"?: number; \"from\"?: Date; \"to\"?: Date; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = SelectionApiFetchParamCreator.getBookingForm(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param routeId\r\n * @param from\r\n * @param to\r\n */\r\n getCarrierForm(params: { \"routeId\"?: number; \"from\"?: Date; \"to\"?: Date; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = SelectionApiFetchParamCreator.getCarrierForm(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n * The code of the criteria is only used to know the containers and filters you want applied to this offer\r\n * @summary Get a specific offer based on the id of the depart, the chargeSet and the code of the criteria\r\n * @param departId\r\n * @param chargeSetId\r\n * @param criteriaCode\r\n */\r\n getCarrierOffer(params: { \"departId\"?: number; \"chargeSetId\"?: number; \"criteriaCode\"?: string; \"routeId\"?: number; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = SelectionApiFetchParamCreator.getCarrierOffer(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n * Can be used to look for offers on a specific pol/pod\r\n * @summary Retrieve the result of an Okargo search from a criteria code (ex: FRFOS-yJGDsx-CNTXG)\r\n * @param code\r\n */\r\n searchSelection(params: { \"code\"?: string; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = SelectionApiFetchParamCreator.searchSelection(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n * Can be used to look for offers on a specific pol/pod\r\n * @summary Retrieve the result of an Okargo search from the criteria sent by post in JSON\r\n * @param criteria\r\n */\r\n searchSelection_1(params: { \"criteria\"?: CriteriaModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = SelectionApiFetchParamCreator.searchSelection_1(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n sendAskBooking(params: { \"model\"?: SendAskBookingModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = SelectionApiFetchParamCreator.sendAskBooking(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n sendAskRates(params: { \"model\"?: SendAskRatesModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = SelectionApiFetchParamCreator.sendAskRates(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n sendMemo(params: { \"model\"?: OfferSelectionModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = SelectionApiFetchParamCreator.sendMemo(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n setSatisfied(params: { \"model\"?: SetSatisfiedModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = SelectionApiFetchParamCreator.setSatisfied(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * SelectionApi - object-oriented interface\r\n */\r\nexport class SelectionApi extends BaseAPI {\r\n /**\r\n *\r\n * @param model\r\n */\r\n downloadMemo(params: { \"model\"?: OfferSelectionModel; }, options?: any) {\r\n return SelectionApiFp.downloadMemo(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n * Can be used to look for offers on a specific pol/pod\r\n * @summary Download the document(s) from a the id of the chargeSet\r\n * @param chargeSetId\r\n */\r\n downloadWorkDocuments(params: { \"chargeSetId\"?: number; }, options?: any) {\r\n return SelectionApiFp.downloadWorkDocuments(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param routeId\r\n * @param from\r\n * @param to\r\n */\r\n getBookingForm(params: { \"routeId\"?: number; \"from\"?: Date; \"to\"?: Date; }, options?: any) {\r\n return SelectionApiFp.getBookingForm(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param routeId\r\n * @param from\r\n * @param to\r\n */\r\n getCarrierForm(params: { \"routeId\"?: number; \"from\"?: Date; \"to\"?: Date; }, options?: any) {\r\n return SelectionApiFp.getCarrierForm(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n * The code of the criteria is only used to know the containers and filters you want applied to this offer\r\n * @summary Get a specific offer based on the id of the depart, the chargeSet and the code of the criteria\r\n * @param departId\r\n * @param chargeSetId\r\n * @param criteriaCode\r\n */\r\n getCarrierOffer(params: { \"departId\"?: number; \"chargeSetId\"?: number; \"routeId\"?: number; \"criteriaCode\"?: string; }, options?: any) {\r\n return SelectionApiFp.getCarrierOffer(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n * Can be used to look for offers on a specific pol/pod\r\n * @summary Retrieve the result of an Okargo search from a criteria code (ex: FRFOS-yJGDsx-CNTXG)\r\n * @param code\r\n */\r\n searchSelection(params: { \"code\"?: string; }, options?: any) {\r\n return SelectionApiFp.searchSelection(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n * Can be used to look for offers on a specific pol/pod\r\n * @summary Retrieve the result of an Okargo search from the criteria sent by post in JSON\r\n * @param criteria\r\n */\r\n searchSelection_1(params: { \"criteria\"?: CriteriaModel; }, options?: any) {\r\n return SelectionApiFp.searchSelection_1(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n sendAskBooking(params: { \"model\"?: SendAskBookingModel; }, options?: any) {\r\n return SelectionApiFp.sendAskBooking(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n sendAskRates(params: { \"model\"?: SendAskRatesModel; }, options?: any) {\r\n return SelectionApiFp.sendAskRates(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n sendMemo(params: { \"model\"?: OfferSelectionModel; }, options?: any) {\r\n return SelectionApiFp.sendMemo(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n setSatisfied(params: { \"model\"?: SetSatisfiedModel; }, options?: any) {\r\n return SelectionApiFp.setSatisfied(params, options)(this.fetch, this.basePath);\r\n }\r\n};\r\n\r\n/**\r\n * SelectionApi - factory interface\r\n */\r\nexport const SelectionApiFactory = function (fetch?: FetchAPI, basePath?: string) {\r\n return {\r\n /**\r\n *\r\n * @param model\r\n */\r\n downloadMemo(params: { \"model\"?: OfferSelectionModel; }, options?: any) {\r\n return SelectionApiFp.downloadMemo(params, options)(fetch, basePath);\r\n },\r\n /**\r\n * Can be used to look for offers on a specific pol/pod\r\n * @summary Download the document(s) from a the id of the chargeSet\r\n * @param chargeSetId\r\n */\r\n downloadWorkDocuments(params: { \"chargeSetId\"?: number; }, options?: any) {\r\n return SelectionApiFp.downloadWorkDocuments(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param routeId\r\n * @param from\r\n * @param to\r\n */\r\n getBookingForm(params: { \"routeId\"?: number; \"from\"?: Date; \"to\"?: Date; }, options?: any) {\r\n return SelectionApiFp.getBookingForm(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param routeId\r\n * @param from\r\n * @param to\r\n */\r\n getCarrierForm(params: { \"routeId\"?: number; \"from\"?: Date; \"to\"?: Date; }, options?: any) {\r\n return SelectionApiFp.getCarrierForm(params, options)(fetch, basePath);\r\n },\r\n /**\r\n * The code of the criteria is only used to know the containers and filters you want applied to this offer\r\n * @summary Get a specific offer based on the id of the depart, the chargeSet and the code of the criteria\r\n * @param departId\r\n * @param chargeSetId\r\n * @param criteriaCode\r\n */\r\n getCarrierOffer(params: { \"departId\"?: number; \"chargeSetId\"?: number; \"criteriaCode\"?: string; \"routeId\"?: number }, options?: any) {\r\n return SelectionApiFp.getCarrierOffer(params, options)(fetch, basePath);\r\n },\r\n /**\r\n * Can be used to look for offers on a specific pol/pod\r\n * @summary Retrieve the result of an Okargo search from a criteria code (ex: FRFOS-yJGDsx-CNTXG)\r\n * @param code\r\n */\r\n searchSelection(params: { \"code\"?: string; }, options?: any) {\r\n return SelectionApiFp.searchSelection(params, options)(fetch, basePath);\r\n },\r\n /**\r\n * Can be used to look for offers on a specific pol/pod\r\n * @summary Retrieve the result of an Okargo search from the criteria sent by post in JSON\r\n * @param criteria\r\n */\r\n searchSelection_1(params: { \"criteria\"?: CriteriaModel; }, options?: any) {\r\n return SelectionApiFp.searchSelection_1(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n sendAskBooking(params: { \"model\"?: SendAskBookingModel; }, options?: any) {\r\n return SelectionApiFp.sendAskBooking(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n sendAskRates(params: { \"model\"?: SendAskRatesModel; }, options?: any) {\r\n return SelectionApiFp.sendAskRates(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n sendMemo(params: { \"model\"?: OfferSelectionModel; }, options?: any) {\r\n return SelectionApiFp.sendMemo(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n setSatisfied(params: { \"model\"?: SetSatisfiedModel; }, options?: any) {\r\n return SelectionApiFp.setSatisfied(params, options)(fetch, basePath);\r\n },\r\n };\r\n};\r\n\r\n\r\n/**\r\n * SellingRatesApi - fetch parameter creator\r\n */\r\nexport const SellingRatesApiFetchParamCreator = {\r\n /**\r\n *\r\n * @param sellingRatesId\r\n */\r\n _delete(params: { \"sellingRatesId\"?: number; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/SellingRates/Delete`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"sellingRatesId\": params[\"sellingRatesId\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n create(params: { \"model\"?: SellingRatesModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/SellingRates/Create`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n */\r\n getAll(options?: any): FetchArgs {\r\n const baseUrl = `/api/SellingRates/GetAll`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n getByTraffic(params: { \"model\"?: CriteriaModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/SellingRates/GetByTraffic`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n update(params: { \"model\"?: SellingRatesModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/SellingRates/Update`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * SellingRatesApi - functional programming interface\r\n */\r\nexport const SellingRatesApiFp = {\r\n /**\r\n *\r\n * @param sellingRatesId\r\n */\r\n _delete(params: { \"sellingRatesId\"?: number; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = SellingRatesApiFetchParamCreator._delete(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n create(params: { \"model\"?: SellingRatesModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = SellingRatesApiFetchParamCreator.create(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n */\r\n getAll(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise> {\r\n const fetchArgs = SellingRatesApiFetchParamCreator.getAll(options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n getByTraffic(params: { \"model\"?: CriteriaModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise> {\r\n const fetchArgs = SellingRatesApiFetchParamCreator.getByTraffic(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n update(params: { \"model\"?: SellingRatesModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = SellingRatesApiFetchParamCreator.update(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * SellingRatesApi - object-oriented interface\r\n */\r\nexport class SellingRatesApi extends BaseAPI {\r\n /**\r\n *\r\n * @param sellingRatesId\r\n */\r\n _delete(params: { \"sellingRatesId\"?: number; }, options?: any) {\r\n return SellingRatesApiFp._delete(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n create(params: { \"model\"?: SellingRatesModel; }, options?: any) {\r\n return SellingRatesApiFp.create(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n */\r\n getAll(options?: any) {\r\n return SellingRatesApiFp.getAll(options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n getByTraffic(params: { \"model\"?: CriteriaModel; }, options?: any) {\r\n return SellingRatesApiFp.getByTraffic(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param model\r\n */\r\n update(params: { \"model\"?: SellingRatesModel; }, options?: any) {\r\n return SellingRatesApiFp.update(params, options)(this.fetch, this.basePath);\r\n }\r\n};\r\n\r\n/**\r\n * SellingRatesApi - factory interface\r\n */\r\nexport const SellingRatesApiFactory = function (fetch?: FetchAPI, basePath?: string) {\r\n return {\r\n /**\r\n *\r\n * @param sellingRatesId\r\n */\r\n _delete(params: { \"sellingRatesId\"?: number; }, options?: any) {\r\n return SellingRatesApiFp._delete(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n create(params: { \"model\"?: SellingRatesModel; }, options?: any) {\r\n return SellingRatesApiFp.create(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n */\r\n getAll(options?: any) {\r\n return SellingRatesApiFp.getAll(options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n getByTraffic(params: { \"model\"?: CriteriaModel; }, options?: any) {\r\n return SellingRatesApiFp.getByTraffic(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param model\r\n */\r\n update(params: { \"model\"?: SellingRatesModel; }, options?: any) {\r\n return SellingRatesApiFp.update(params, options)(fetch, basePath);\r\n },\r\n };\r\n};\r\n\r\n\r\n/**\r\n * StatsApi - fetch parameter creator\r\n */\r\nexport const StatsApiFetchParamCreator = {\r\n /**\r\n *\r\n * @param model\r\n */\r\n getStatsPrice(params: { \"model\"?: RequestStatsPriceModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Stats/GetStatsPrice`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * StatsApi - functional programming interface\r\n */\r\nexport const StatsApiFp = {\r\n /**\r\n *\r\n * @param model\r\n */\r\n getStatsPrice(params: { \"model\"?: RequestStatsPriceModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = StatsApiFetchParamCreator.getStatsPrice(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * StatsApi - object-oriented interface\r\n */\r\nexport class StatsApi extends BaseAPI {\r\n /**\r\n *\r\n * @param model\r\n */\r\n getStatsPrice(params: { \"model\"?: RequestStatsPriceModel; }, options?: any) {\r\n return StatsApiFp.getStatsPrice(params, options)(this.fetch, this.basePath);\r\n }\r\n};\r\n\r\n/**\r\n * StatsApi - factory interface\r\n */\r\nexport const StatsApiFactory = function (fetch?: FetchAPI, basePath?: string) {\r\n return {\r\n /**\r\n *\r\n * @param model\r\n */\r\n getStatsPrice(params: { \"model\"?: RequestStatsPriceModel; }, options?: any) {\r\n return StatsApiFp.getStatsPrice(params, options)(fetch, basePath);\r\n },\r\n };\r\n};\r\n\r\n\r\n/**\r\n * TutorialApi - fetch parameter creator\r\n */\r\nexport const TutorialApiFetchParamCreator = {\r\n /**\r\n *\r\n */\r\n tutorials(options?: any): FetchArgs {\r\n const baseUrl = `/api/Tutorial/Tutorials`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param name\r\n * @param status\r\n */\r\n updateTutorial(params: { \"name\"?: string; \"status\"?: string; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Tutorial/UpdateTutorial`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"name\": params[\"name\"],\r\n \"status\": params[\"status\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * TutorialApi - functional programming interface\r\n */\r\nexport const TutorialApiFp = {\r\n /**\r\n *\r\n */\r\n tutorials(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise> {\r\n const fetchArgs = TutorialApiFetchParamCreator.tutorials(options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param name\r\n * @param status\r\n */\r\n updateTutorial(params: { \"name\"?: string; \"status\"?: string; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = TutorialApiFetchParamCreator.updateTutorial(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n};\r\n\r\n/**\r\n * TutorialApi - object-oriented interface\r\n */\r\nexport class TutorialApi extends BaseAPI {\r\n /**\r\n *\r\n */\r\n tutorials(options?: any) {\r\n return TutorialApiFp.tutorials(options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @param name\r\n * @param status\r\n */\r\n updateTutorial(params: { \"name\"?: string; \"status\"?: string; }, options?: any) {\r\n return TutorialApiFp.updateTutorial(params, options)(this.fetch, this.basePath);\r\n }\r\n};\r\n\r\n/**\r\n * TutorialApi - factory interface\r\n */\r\nexport const TutorialApiFactory = function (fetch?: FetchAPI, basePath?: string) {\r\n return {\r\n /**\r\n *\r\n */\r\n tutorials(options?: any) {\r\n return TutorialApiFp.tutorials(options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param name\r\n * @param status\r\n */\r\n updateTutorial(params: { \"name\"?: string; \"status\"?: string; }, options?: any) {\r\n return TutorialApiFp.updateTutorial(params, options)(fetch, basePath);\r\n },\r\n };\r\n};\r\n\r\n\r\n\r\n\r\n/**\r\n * UsersApi - fetch parameter creator\r\n */\r\nexport const UsersApiFetchParamCreator = {\r\n\r\n getEntities(options?: any): FetchArgs {\r\n const baseUrl = `/api/Users/GetEntities`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param id\r\n */\r\n deactivate(params: { \"id\"?: number; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Users/Deactivate`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"id\": params[\"id\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @summary Create new user\r\n * @param model\r\n */\r\n create(params: { \"model\"?: UserManagementModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Users/Create`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @summary Update existing\r\n * @param model\r\n */\r\n update(params: { \"model\"?: UserManagementModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/Users/Update`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n\r\n\r\n};\r\n\r\n/**\r\n * UsersApiFp - functional programming interface\r\n */\r\nexport const UsersApiFp = {\r\n\r\n /**\r\n *\r\n */\r\n getEntities(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise> {\r\n const fetchArgs = UsersApiFetchParamCreator.getEntities(options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param id\r\n */\r\n deactivate(params: { \"id\"?: number; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = UsersApiFetchParamCreator.deactivate(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @summary Create new user\r\n * @param model\r\n */\r\n create(params: { \"model\"?: UserManagementModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = UsersApiFetchParamCreator.create(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @summary Update existing \r\n * @param model\r\n */\r\n update(params: { \"model\"?: UserManagementModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = UsersApiFetchParamCreator.update(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n\r\n\r\n\r\n};\r\n\r\n/**\r\n * UsersApi - object-oriented interface\r\n */\r\nexport class UsersApi extends BaseAPI {\r\n\r\n /**\r\n *\r\n */\r\n getEntities(options?: any) {\r\n return UsersApiFp.getEntities(options)(this.fetch, this.basePath);\r\n }\r\n\r\n /**\r\n *\r\n * @param id\r\n */\r\n disable(params: { \"id\"?: number; }, options?: any) {\r\n return UsersApiFp.deactivate(params, options)(this.fetch, this.basePath);\r\n }\r\n\r\n /**\r\n *\r\n * @summary Create new setting for carrier platform\r\n * @param model\r\n */\r\n create(params: { \"model\"?: UserManagementModel; }, options?: any) {\r\n return UsersApiFp.create(params, options)(this.fetch, this.basePath);\r\n }\r\n /**\r\n *\r\n * @summary Update existing setting for carrier platform\r\n * @param model\r\n */\r\n update(params: { \"model\"?: UserManagementModel; }, options?: any) {\r\n return UsersApiFp.update(params, options)(this.fetch, this.basePath);\r\n }\r\n};\r\n\r\n/**\r\n * UsersApi - factory interface\r\n */\r\nexport const UsersApiFactory = function (fetch?: FetchAPI, basePath?: string) {\r\n return {\r\n\r\n /**\r\n *\r\n */\r\n getEntities(options?: any) {\r\n return UsersApiFp.getEntities(options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @param id\r\n */\r\n deactivate(params: { \"id\"?: number; }, options?: any) {\r\n return UsersApiFp.deactivate(params, options)(fetch, basePath);\r\n },\r\n /**\r\n *\r\n * @summary Create new setting for carrier platform\r\n * @param model\r\n */\r\n create(params: { \"model\"?: UserManagementModel; }, options?: any) {\r\n return UsersApiFp.create(params, options)(this.fetch, this.basePath);\r\n },\r\n /**\r\n *\r\n * @summary Update existing setting for carrier platform\r\n * @param model\r\n */\r\n update(params: { \"model\"?: UserManagementModel; }, options?: any) {\r\n return UsersApiFp.update(params, options)(this.fetch, this.basePath);\r\n }\r\n\r\n };\r\n\r\n};\r\n\r\n\r\n\r\n/**\r\n * WorkdocumentsApi - fetch parameter creator\r\n */\r\nexport const WorkdocumentsUploadApiFetchParamCreator = {\r\n\r\n searchWorkDocuments(params: { \"model\"?: SearchWorkDocumentsModel; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/WorkdocumentsUpload/SearchWorkDocuments`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param id\r\n */\r\n deactivate(params: { \"id\"?: number; }, options?: any): FetchArgs {\r\n const baseUrl = `/api/WorkdocumentsUpload/Deactivate`;\r\n let urlObj = url.parse(baseUrl, true);\r\n urlObj.query = assign({}, urlObj.query, {\r\n \"id\": params[\"id\"],\r\n \"value\": params[\"value\"],\r\n });\r\n let fetchOptions: RequestInit = assign({}, { method: \"GET\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n /**\r\n *\r\n * @param workDocumentsId\r\n * @param value\r\n */\r\n downloadTemplate(params: { \"model\"?: WorkDocumentsClientUploadModel; }, options?: any): FetchArgs {\r\n\r\n const baseUrl = `/api/WorkdocumentsUpload/DownloadTemplate`;\r\n let urlObj = url.parse(baseUrl, true);\r\n let fetchOptions: RequestInit = assign({}, { method: \"POST\" }, options);\r\n\r\n let contentTypeHeader: Dictionary = {};\r\n contentTypeHeader = { \"Content-Type\": \"application/json\" };\r\n if (params[\"model\"]) {\r\n fetchOptions.body = JSON.stringify(params[\"model\"] || {});\r\n }\r\n if (contentTypeHeader) {\r\n fetchOptions.headers = assign({}, contentTypeHeader, fetchOptions.headers);\r\n }\r\n return {\r\n url: url.format(urlObj),\r\n options: fetchOptions,\r\n };\r\n },\r\n\r\n};\r\n\r\n/**\r\n * UsersApiFp - functional programming interface\r\n */\r\nexport const WorkdocumentsUploadApiFp = {\r\n\r\n /**\r\n *\r\n */\r\n searchWorkDocuments(params: { \"model\"?: SearchWorkDocumentsModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise> {\r\n const fetchArgs = WorkdocumentsUploadApiFetchParamCreator.searchWorkDocuments(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response.json();\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n /**\r\n *\r\n * @param id\r\n */\r\n deactivate(params: { \"id\"?: number; \"value\": boolean }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = WorkdocumentsUploadApiFetchParamCreator.deactivate(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n\r\n /**\r\n *\r\n * @param workDocumentsId\r\n * @param value\r\n */\r\n downloadTemplate(params: { \"model\"?: WorkDocumentsClientUploadModel; }, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise {\r\n const fetchArgs = WorkdocumentsUploadApiFetchParamCreator.downloadTemplate(params, options);\r\n return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {\r\n return fetch(basePath + fetchArgs.url, fetchArgs.options).then((response) => {\r\n if (response.status >= 200 && response.status < 300) {\r\n return response;\r\n } else {\r\n throw response;\r\n }\r\n });\r\n };\r\n },\r\n\r\n};\r\n\r\n/**\r\n * WorkDocumentsUpload - object-oriented interface\r\n */\r\nexport class WorkDocumentsUploadApi extends BaseAPI {\r\n\r\n /**\r\n *\r\n */\r\n searchWorkDocuments(params: { \"model\"?: SearchWorkDocumentsModel; }, options?: any) {\r\n return WorkdocumentsUploadApiFp.searchWorkDocuments(params, options)(this.fetch, this.basePath);\r\n }\r\n\r\n /**\r\n *\r\n * \r\n* @param workDocumentsId\r\n* @param value\r\n*/\r\n deactivate(params: { \"id\"?: number; \"value\": boolean }, options?: any) {\r\n return WorkdocumentsUploadApiFp.deactivate(params, options)(this.fetch, this.basePath);\r\n }\r\n\r\n /**\r\n*\r\n* @param workDocumentsId\r\n* @param value\r\n*/\r\n downloadTemplate(params: { \"model\"?: WorkDocumentsClientUploadModel; }, options?: any) {\r\n return WorkdocumentsUploadApiFp.downloadTemplate(params, options)(fetch, this.basePath);\r\n }\r\n\r\n};\r\n\r\n\r\n\r\n\r\n/**\r\n * WorkDocumentsUpload - factory interface\r\n */\r\nexport const WorkDocumentsUploadApiFactory = function (fetch?: FetchAPI, basePath?: string) {\r\n return {\r\n\r\n /**\r\n *\r\n */\r\n\r\n searchWorkDocuments(params: { \"model\"?: SearchWorkDocumentsModel; }, options?: any) {\r\n return WorkdocumentsUploadApiFp.searchWorkDocuments(params, options)(this.fetch, this.basePath);\r\n },\r\n /**\r\n *\r\n * @param id\r\n */\r\n deactivate(params: { \"id\"?: number; \"value\": boolean }, options?: any) {\r\n return WorkdocumentsUploadApiFp.deactivate(params, options)(fetch, basePath);\r\n },\r\n\r\n\r\n /**\r\n *\r\n * @param workDocumentsId\r\n * @param value\r\n */\r\n downloadTemplate(params: { \"model\"?: WorkDocumentsClientUploadModel; }, options?: any) {\r\n return WorkdocumentsUploadApiFp.downloadTemplate(params, options)(fetch, basePath);\r\n }\r\n\r\n };\r\n\r\n}\r\n","import * as Api from '../api/api';\r\nimport { ApplicationState } from \"../store/index\"\r\nimport { CSSProperties } from 'react';\r\nimport { QuotationState } from '../store/Quotation';\r\nimport _ from 'lodash';\r\n\r\nexport const getDefaultHeaders = (state?: ApplicationState): any => {\r\n return {};\r\n};\r\n\r\nexport const isInDateRange = (start: number, end: number, minDate: number, maxDate: number): boolean => {\r\n return (!start && !end)\r\n || (!start && minDate <= end)\r\n || (!end && start <= maxDate)\r\n || (minDate <= start && start <= maxDate) ||\r\n (minDate <= end && end <= maxDate) ||\r\n (start <= minDate && minDate <= end);\r\n};\r\n\r\nexport const dictionnaryToArray = (entities: { [id: number]: T }): Array => {\r\n let array = [];\r\n for (let id of Object.keys(entities)) {\r\n array.push(entities[Number.parseInt(id)]);\r\n }\r\n return array;\r\n}\r\n\r\nexport const dictionnaryStringToArray = (entities: { [id: string]: T }): Array => {\r\n let array = [];\r\n for (let id of Object.keys(entities)) {\r\n array.push(entities[id]);\r\n }\r\n return array;\r\n}\r\n\r\nexport const getCarrierOfferKey = (carrierOffer: Api.CarrierOfferModel): string => {\r\n return `CA${carrierOffer.carrierId}`\r\n + `R${carrierOffer.routeConfigs[0]?.routeId || carrierOffer.chargeSet?.routeId}`\r\n + `C${carrierOffer.chargeSet?.chargeSetId}`\r\n + `${_.sortBy(carrierOffer.routeConfigs, x => x.routeConfigId)\r\n .map(x => 'RC' + x.routeConfigId)\r\n .join(\"\")}`;\r\n}\r\n\r\nexport const getLocationName = (location: Api.LocationModel): string => {\r\n if (!location) return \"\";\r\n\r\n switch (location.locationType) {\r\n case \"Port\":\r\n return location.name\r\n + (location.country ? \", \" + location.country.name : \"\");\r\n case \"Terminal\":\r\n return location.name\r\n + (location.port ? \", \" + location.port.name : \"\");\r\n case \"InlandPlace\":\r\n return (location.inlandPlaceZipCodes\r\n && location.inlandPlaceZipCodes.length\r\n ? location.inlandPlaceZipCodes[0] + \" \" : \"\")\r\n + location.name\r\n + (location.country ? \", \" + location.country.name : \"\");\r\n case \"InlandLocationGroup\":\r\n return location.name\r\n + (location.country ? \", \" + location.country.name : \"\");\r\n case \"PortGroup\":\r\n return location.name;\r\n }\r\n\r\n return location.name;\r\n}\r\n\r\nexport const getPort = (location: Api.LocationModel): Api.LocationModel => {\r\n if (!location) return null;\r\n\r\n switch (location.locationType) {\r\n case \"Port\":\r\n return location;\r\n case \"Terminal\":\r\n return location.port;\r\n case \"PortGroup\":\r\n return location.portsInGroup[0];\r\n }\r\n\r\n return location;\r\n}\r\n\r\nexport const getSubscriptionName = (subscription: Api.SubscriptionModel): string => {\r\n if (!subscription) return \"\";\r\n\r\n switch (subscription.subscriptionType) {\r\n case \"Okargo\":\r\n return \"Okargo: \" + subscription.agency.name + \", \" + subscription.agency.company.name;\r\n case \"Carrier\":\r\n return \"Carrier: \" + subscription.carrier.name;\r\n case \"Agent\":\r\n return \"Agent: \" + getFirmName(subscription.firm);\r\n }\r\n\r\n}\r\n\r\nexport const getQuotationContactName = (quotationContact: Api.QuotationContactModel): string => {\r\n if (!quotationContact) return \"\";\r\n\r\n switch (quotationContact.type) {\r\n case \"Client\":\r\n return (quotationContact.company || \"\")\r\n + \": \" + (quotationContact.firstName || \"\")\r\n + \" \" + (quotationContact.lastName || \"\");\r\n case \"FreightForwarder\":\r\n return (quotationContact.company || \"\")\r\n + \": \" + (quotationContact.firstName || \"\")\r\n + \" \" + (quotationContact.lastName || \"\");\r\n case \"Okargo\":\r\n return \"OKARGO Contact: \" + quotationContact.email;\r\n }\r\n\r\n\r\n}\r\n\r\nexport function getSubscription(client: Api.ClientModel): Api.SubscriptionModel {\r\n return client.subscriptions\r\n .sort((a, b) => b.subscriptionId === client.subscriptionId ? 1 : -1)[0]\r\n || null;\r\n}\r\n\r\nexport const getFirmName = (firm: Api.FirmModel): string => {\r\n\r\n if (!firm) return \"\";\r\n\r\n switch (firm && firm.firmType) {\r\n case \"Agency\":\r\n return firm.name + \", \" + firm.company.name;\r\n case \"Company\":\r\n return firm.name ;\r\n }\r\n\r\n return firm.name;\r\n}\r\n\r\nexport class Guid {\r\n static newGuid() {\r\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {\r\n let r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);\r\n return v.toString(16);\r\n });\r\n }\r\n}\r\n\r\nclass Group {\r\n key: string;\r\n members: T[] = [];\r\n constructor(key: string) {\r\n this.key = key;\r\n }\r\n}\r\n\r\nexport function groupBy(list: T[], func: (x: T) => string): Group[] {\r\n let res: Group[] = [];\r\n list.forEach((o) => {\r\n let groupName = func(o);\r\n let group = res.find(gp => gp.key === groupName);\r\n if (!group) {\r\n group = new Group(groupName);\r\n res.push(group);\r\n }\r\n group.members.push(o)\r\n });\r\n return res\r\n}\r\n\r\nexport function filterCaseInsensitive(filter, row) {\r\n const id = filter.pivotId || filter.id;\r\n return (\r\n row[id] ?\r\n String(row[id].toLowerCase()).startsWith(filter.value.toLowerCase())\r\n :\r\n true\r\n );\r\n}\r\n\r\nexport function getChargeAmount(charge: Api.ChargeModel, unitNumber: number): number {\r\n\r\n unitNumber = Math.max(((charge.minUnit != null && charge.minUnit > 0) ? charge.minUnit : 0),unitNumber);\r\n\r\n return charge.amount\r\n * (charge.unit === \"Teu\" ? unitNumber : 1)\r\n * (charge.unit === \"Ton\" ? unitNumber : 1)\r\n * (charge.unit === \"Wm\" ? unitNumber : 1)\r\n * (charge.unit === \"Cbm\" ? unitNumber : 1);\r\n\r\n}\r\n\r\nexport function serializeToQuery(obj: any): string {\r\n var str = [];\r\n for (var p in obj)\r\n if (obj.hasOwnProperty(p)) {\r\n str.push(encodeURIComponent(p) + \"=\" + encodeURIComponent(obj[p]));\r\n }\r\n return str.join(\"&\");\r\n}\r\n\r\nexport function goToFormModel(formModel: Api.FormModel): void {\r\n if (formModel.method.toLowerCase() === \"get\") {\r\n window.open(formModel.action\r\n + (formModel.parameters.length !== 0\r\n ? (\"?\" + formModel.parameters\r\n .map(p => encodeURIComponent(p.key) + \"=\" + encodeURIComponent(p.value))\r\n .reduce((a,b) => a + \"&\" + b, \"\")) : \"\"), \"_blank\");\r\n } else {\r\n window.open(formModel.action);\r\n }\r\n}\r\n\r\nexport const getRatesStyle = (chargeSet: Api.ChargeSetModel, criteria?: Api.CriteriaModel): CSSProperties => {\r\n if (chargeSet\r\n && criteria\r\n && criteria.lastRates \r\n && chargeSet.dateEnd < criteria.dateBegin)\r\n return {\r\n };\r\n\r\n if (chargeSet && chargeSet.routeSuggestedCalcId)\r\n return {\r\n };\r\n\r\n if (chargeSet && chargeSet.firmId)\r\n return {\r\n };\r\n\r\n if (chargeSet && chargeSet.ratesFetchedRecordId)\r\n return {\r\n };\r\n\r\n if (chargeSet && !chargeSet.firmId)\r\n return {\r\n };\r\n\r\n return {\r\n };\r\n};\r\n\r\nexport const offerIsCarrierRating = (offer: Api.CarrierOfferModel, carrierRating: Api.CarrierRatingModel): boolean => {\r\n return offer.chargeSet\r\n && carrierRating\r\n && carrierRating.carrierCarrierRatings\r\n .some(x => x.carrierId === offer.carrierId\r\n && ((!x.ratesType && !x.ratesOfferId)\r\n || (x.ratesType === \"Fak\"\r\n && (!offer.ratesOffer\r\n || offer.ratesOffer.type === \"Fak\"))\r\n || (x.ratesType === \"Special\"\r\n && offer.ratesOffer\r\n && offer.ratesOffer.type === \"Special\")\r\n || (x.ratesOfferId\r\n && offer.ratesOffer\r\n && (x.ratesOfferId === offer.ratesOffer.ratesOfferId\r\n || offer.ratesOffer.references.some(r => x.ratesOffer.references.some(xr => xr.value === r.value))\r\n )\r\n )\r\n )\r\n );\r\n};\r\n\r\nexport const getQuotationLink = (quotation: QuotationState): string => {\r\n return \"/quotation/\"\r\n + quotation.criteria.code\r\n + \"/\" + quotation.departId\r\n + \"/\" + (quotation.carrierOffer.chargeSet\r\n ? quotation.carrierOffer.chargeSet.chargeSetId\r\n : \"null\")\r\n + (quotation.mode === \"Duplicate\"\r\n ? (\"/\" + quotation.quotation.previousVersionId\r\n + \"/\" + quotation.mode)\r\n : \"\")\r\n + (quotation.mode === \"Update\"\r\n ? (\"/\" + quotation.quotation.quotationId\r\n + \"/\" + quotation.mode)\r\n : \"\")\r\n}\r\n\r\nexport const isClient = (): boolean => {\r\n return (typeof window !== 'undefined' &&\r\n window.document\r\n && window.document.createElement) ? true : false;\r\n}\r\n\r\nexport const getScreenSize = (): { width: number, height: number } => {\r\n if (isClient()) {\r\n return {\r\n width: window.screen.width,\r\n height: window.screen.height,\r\n };\r\n }\r\n\r\n return {\r\n height: 1024,\r\n width: 1280\r\n };\r\n};\r\n\r\nexport const scrollToAppTop = (): void => {\r\n setTimeout(() => {\r\n if (document.getElementById(\"scroll-container\")) {\r\n document.getElementById(\"scroll-container\").scrollTo({ top: 0 })\r\n }\r\n }, 1);\r\n}\r\n\r\n\r\nexport const removeFirstOccurence = ( src:string[],element): string[] => {\r\n const index = src.indexOf(element);\r\n if (index === -1) return src;\r\n return [...src.slice(0, index), ...src.slice(index + 1)];\r\n}","import * as Api from '../api/api';\r\nimport Moment from 'moment';\r\nimport { Md5 } from 'ts-md5/dist/md5';\r\nimport { ApplicationState } from '../store';\r\nimport { getDefaultHeaders } from './utils';\r\nimport * as _ from 'lodash';\r\n\r\nexport function generateHash(criteriaModel: Api.CriteriaModel): string {\r\n let md5 = new Md5();\r\n md5.appendStr(JSON.stringify(criteriaModel));\r\n return md5.end().toString();\r\n}\r\n\r\nexport function hasDiffSearchCriteria(current: Api.CriteriaModel, loaded: Api.CriteriaModel): boolean {\r\n if (current === loaded)\r\n return true;\r\n\r\n if (!loaded)\r\n return false;\r\n\r\n return (current.suggested !== loaded.suggested)\r\n || (current.origin && current.origin.locationId !== loaded.origin.locationId)\r\n || (current.destination && current.destination.locationId !== loaded.destination.locationId)\r\n || (current.dateBegin && Moment(current.dateBegin).format(\"DDMMYYYY\") !== Moment(loaded.dateBegin).format(\"DDMMYYYY\"))\r\n || (current.dateEnd && Moment(current.dateEnd).format(\"DDMMYYYY\") !== Moment(loaded.dateEnd).format(\"DDMMYYYY\"))\r\n || (current.includeCarrierRates !== loaded.includeCarrierRates)\r\n || (current.originShippingType !== loaded.originShippingType)\r\n || (current.destinationShippingType !== loaded.destinationShippingType)\r\n || (current.lastRates !== loaded.lastRates)\r\n || (!loaded.includeSellingRates\r\n && current.includeSellingRates !== loaded.includeSellingRates)\r\n || (current.allMarkets !== loaded.allMarkets)\r\n || (current.includeCarrierRates && current.containerType !== loaded.containerType)\r\n || (current.includeCarrierRates\r\n && _.sortBy(current.criteriaSizeTypes, x => x.sizeTypeId).map(x => `${x.number}x${x.sizeTypeId}`).join(\"+\")\r\n !== _.sortBy(loaded.criteriaSizeTypes, x => x.sizeTypeId).map(x => `${x.number}x${x.sizeTypeId}`).join(\"+\"))\r\n}\r\n\r\nexport function hasAdvanced(criteriaModel: Api.CriteriaModel): boolean {\r\n return criteriaModel.containerType !== \"Dry\" || criteriaModel.containerPrice ||\r\n criteriaModel.lastRates || criteriaModel.suggested ||\r\n criteriaModel.allMarkets;\r\n}\r\n\r\nexport function isValid(criteriaModel: Api.CriteriaModel): boolean {\r\n return (criteriaModel.criteriaSizeTypes.some(cst => cst.number > 0)\r\n && criteriaModel.origin && criteriaModel.origin.locationId\r\n && criteriaModel.destination && criteriaModel.destination.locationId\r\n && criteriaModel.dateBegin && criteriaModel.dateEnd) ? true : false;\r\n}\r\n\r\nexport function getCriteriaCode(getState: () => ApplicationState,\r\n criteria: Api.CriteriaModel,\r\n criteriaLoaded: Api.CriteriaModel): Promise {\r\n if (criteria === criteriaLoaded\r\n || (JSON.stringify(criteria) === JSON.stringify(criteriaLoaded))) {\r\n return Promise.resolve(criteria.code);\r\n }\r\n let api = new Api.CriteriaApi();\r\n return new Promise((resolve, reject) => {\r\n api.createCriteria({ model: criteria }, { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then((criteria) => {\r\n resolve(criteria.code);\r\n }).catch(error => {\r\n reject(error);\r\n });\r\n });\r\n}\r\n\r\nexport function getCriteria(getState: () => ApplicationState,\r\n criteria: Api.CriteriaModel,\r\n criteriaLoaded: Api.CriteriaModel): Promise {\r\n if (criteria === criteriaLoaded\r\n || (JSON.stringify(criteria) === JSON.stringify(criteriaLoaded))) {\r\n return Promise.resolve(criteria);\r\n }\r\n let api = new Api.CriteriaApi();\r\n return new Promise((resolve, reject) => {\r\n api.createCriteria({ model: criteria }, { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then((criteria) => {\r\n resolve(criteria);\r\n }).catch(error => {\r\n reject(error);\r\n });\r\n });\r\n}","import { addTask } from \"../utils/bugFixer\";\r\nimport { Action, Reducer } from 'redux';\r\nimport * as Api from '../api/api';\r\nimport Moment from 'moment';\r\nimport { AppThunkAction, ApplicationState } from './';\r\nimport { RequestState } from '../models/models';\r\nimport { getDefaultHeaders } from \"../utils/utils\";\r\nimport { getCriteriaCode } from '../utils/criteriaUtils';\r\nimport * as Notifications from 'react-notification-system-redux';\r\nimport { ReceiveCurrentUser } from \"./Account\";\r\nimport Download from \"downloadjs\";\r\nimport * as MimeTypes from \"mime-types\";\r\n\r\n\r\nexport interface MultiPortState {\r\n isLoading: boolean;\r\n requestTime: number;\r\n isVisible: boolean;\r\n isLoaded: boolean;\r\n isOpen: boolean;\r\n newName: string;\r\n multiPort: Api.MultiPortInstanceModel;\r\n addOfferState: RequestState;\r\n deleteOfferState: RequestState;\r\n downloadingOffersState: RequestState;\r\n updateMultiPortState: RequestState;\r\n deleteMultiPortState: RequestState;\r\n}\r\n\r\ninterface RequestCurrentMultiPort {\r\n type: 'REQUEST_CURRENT_MULTIPORT';\r\n requestTime: number;\r\n}\r\ninterface ReceiveCurrentMultiPort {\r\n type: 'RECEIVE_CURRENT_MULTIPORT';\r\n requestTime: number;\r\n multiPort: Api.MultiPortInstanceModel;\r\n}\r\n\r\ninterface RequestCreateMultiPortOffers {\r\n type: 'REQUEST_CREATE_MULTIPORTOFFERS';\r\n payload: {\r\n requestTime: number;\r\n createMultiPortOffers: Api.CreateMultiPortOffersModel;\r\n }\r\n}\r\ninterface ReceiveCreateMultiPortOffers {\r\n type: 'RECEIVE_CREATE_MULTIPORTOFFERS';\r\n payload: {\r\n requestTime: number;\r\n multiPortOffers: Array;\r\n };\r\n error?: any;\r\n}\r\n\r\ninterface RequestDeleteMultiPortOffer {\r\n type: 'REQUEST_DELETE_MULTIPORTOFFER';\r\n requestTime: number;\r\n multiPortOfferId: number;\r\n}\r\ninterface ReceiveDeleteMultiPortOffer {\r\n type: 'RECEIVE_DELETE_MULTIPORTOFFER';\r\n requestTime: number;\r\n multiPortOfferId: number;\r\n}\r\n\r\ninterface RequestDeleteMultiPortInstance {\r\n type: 'REQUEST_DELETE_MULTIPORTINSTANCE';\r\n payload: { requestTime: number; multiPortInstanceId: number; }\r\n}\r\ninterface ReceiveDeleteMultiPortInstance {\r\n type: 'RECEIVE_DELETE_MULTIPORTINSTANCE';\r\n payload: { requestTime: number; multiPortInstanceId: number; }\r\n error?: any;\r\n}\r\n\r\ninterface RequestDownloadMultiPort {\r\n type: \"REQUEST_DOWNLOAD_MULTIPORT\";\r\n requestTime: number;\r\n multiPortInstanceId: number;\r\n}\r\ninterface ReceiveDownloadMultiPort {\r\n type: \"RECEIVE_DOWNLOAD_MULTIPORT\";\r\n requestTime: number;\r\n multiPortInstanceId: number;\r\n}\r\n\r\ninterface ToggleMultiPortOpened {\r\n type: 'TOGGLE_MULTIPORT_OPENED';\r\n value: boolean;\r\n}\r\ninterface ToggleMultiPortVisible {\r\n type: \"TOGGLE_MULTIPORT_VISIBLE\";\r\n value: boolean;\r\n}\r\ninterface UpdateMultiPortName {\r\n type: 'UPDATE_MULTIPORT_NAME';\r\n value: string;\r\n}\r\ninterface RequestUpdateMultiPort {\r\n type: \"REQUEST_UPDATE_MULTIPORT\";\r\n requestTime: number;\r\n multiPortInstanceId: number;\r\n}\r\ninterface ReceiveUpdateMultiPort {\r\n type: \"RECEIVE_UPDATE_MULTIPORT\";\r\n requestTime: number;\r\n multiPortInstanceId: number;\r\n}\r\n\r\nexport type KnownAction = RequestCurrentMultiPort | ReceiveCurrentMultiPort\r\n | RequestCreateMultiPortOffers | ReceiveCreateMultiPortOffers\r\n | ToggleMultiPortOpened | ToggleMultiPortVisible\r\n | RequestDeleteMultiPortOffer | ReceiveDeleteMultiPortOffer\r\n | RequestDownloadMultiPort | ReceiveDownloadMultiPort | ReceiveCurrentUser\r\n | UpdateMultiPortName | RequestUpdateMultiPort | ReceiveUpdateMultiPort\r\n |RequestDeleteMultiPortInstance\r\n | ReceiveDeleteMultiPortInstance\r\n ;\r\n\r\nexport const getCurrentMultiPort = (requestTime: number, dispatch: (action: KnownAction) => void, getState: () => ApplicationState): Promise => {\r\n if (requestTime === getState().multiPort.requestTime)\r\n return Promise.resolve();\r\n\r\n let api = new Api.MultiPortApi();\r\n let fetchTask = api.currentMultiPort({ credentials: \"include\", headers: getDefaultHeaders(getState()) })\r\n .then(result => {\r\n dispatch({ type: \"RECEIVE_CURRENT_MULTIPORT\", multiPort: result.result, requestTime: requestTime });\r\n }).catch(error => {\r\n dispatch({ type: \"RECEIVE_CURRENT_MULTIPORT\", multiPort: null, requestTime: requestTime });\r\n dispatch(Notifications.error({ message: \"Error fetching current multiport\", title: \"Error\", position: \"tc\" }) as any);\r\n });\r\n\r\n addTask(fetchTask);\r\n dispatch({ type: \"REQUEST_CURRENT_MULTIPORT\", requestTime: requestTime });\r\n return fetchTask;\r\n};\r\n\r\nexport const actionCreators = {\r\n requestCurrentMultiPort: (requestTime: number): AppThunkAction> => (dispatch, getState) => {\r\n return getCurrentMultiPort(requestTime, dispatch, getState);\r\n },\r\n requestCreateMultiPortOffers: (requestTime: number, createMultiPortOffers: Api.CreateMultiPortOffersModel):\r\n AppThunkAction> => (dispatch, getState) => {\r\n if (requestTime === getState().multiPort.addOfferState.requestTime)\r\n return Promise.resolve();\r\n\r\n var task = new Promise((resolve, reject) => {\r\n getCriteriaCode(getState, getState().criteria.criteria, getState().selection.criteriaLoaded).then(criteriaCode => {\r\n let api = new Api.MultiPortApi();\r\n let fetchTask = api.addOffers({\r\n model: {\r\n ...createMultiPortOffers,\r\n criteriaCode: criteriaCode\r\n }\r\n },\r\n { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(multiPortOffers => {\r\n dispatch({\r\n type: \"RECEIVE_CREATE_MULTIPORTOFFERS\",\r\n payload: { multiPortOffers: multiPortOffers, requestTime: requestTime }\r\n });\r\n resolve();\r\n }).catch(error => {\r\n dispatch({\r\n type: \"RECEIVE_CREATE_MULTIPORTOFFERS\",\r\n error: error,\r\n payload: { multiPortOffers: null, requestTime: requestTime }\r\n });\r\n dispatch(Notifications.error({ message: \"Error adding multi port offer\", title: \"Error\", position: \"tc\" }) as any);\r\n reject(error);\r\n });\r\n }).catch(error => {\r\n reject(error);\r\n dispatch(Notifications.error({ message: \"Error creating criteria\", title: \"Error\", position: \"tc\" }) as any);\r\n });\r\n });\r\n\r\n dispatch({\r\n type: \"REQUEST_CREATE_MULTIPORTOFFERS\",\r\n payload: {\r\n createMultiPortOffers: createMultiPortOffers,\r\n requestTime: requestTime\r\n }\r\n });\r\n return task;\r\n },\r\n requestDeleteMultiPortOffer: (requestTime: number, multiPortOfferId: number):\r\n AppThunkAction => (dispatch, getState) => {\r\n if (requestTime === getState().multiPort.deleteOfferState.requestTime)\r\n return;\r\n\r\n let api = new Api.MultiPortApi();\r\n let fetchTask = api.deleteOffer({ multiPortOfferId: multiPortOfferId },\r\n { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(value => {\r\n dispatch({ type: \"RECEIVE_DELETE_MULTIPORTOFFER\", requestTime: requestTime, multiPortOfferId: multiPortOfferId });\r\n }).catch(error => {\r\n dispatch({ type: \"RECEIVE_DELETE_MULTIPORTOFFER\", requestTime: requestTime, multiPortOfferId: 0 });\r\n dispatch(Notifications.error({ message: \"Error removing offer\", title: \"Error\", position: \"tc\" }) as any);\r\n });\r\n dispatch({ type: \"REQUEST_DELETE_MULTIPORTOFFER\", requestTime: requestTime, multiPortOfferId: multiPortOfferId });\r\n addTask(fetchTask);\r\n },\r\n requestDeleteMultiPortInstance: (requestTime: number, multiPortInstanceId: number): AppThunkAction> => (dispatch, getState) => {\r\n let api = new Api.MultiPortApi();\r\n let fetchTask = api.deleteMultiPortInstance({ multiPortInstance: multiPortInstanceId },{ credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(() => {\r\n dispatch({\r\n type: \"RECEIVE_DELETE_MULTIPORTINSTANCE\",\r\n payload: {\r\n requestTime: requestTime,\r\n multiPortInstanceId: multiPortInstanceId\r\n }\r\n });\r\n })\r\n .catch(error => {\r\n console.error(`Error: ${error.message}`);\r\n dispatch({\r\n type: \"RECEIVE_DELETE_MULTIPORTINSTANCE\",\r\n payload: {\r\n requestTime: requestTime,\r\n multiPortInstanceId: multiPortInstanceId\r\n },\r\n error: error\r\n });\r\n });\r\n\r\n dispatch({\r\n type: \"REQUEST_DELETE_MULTIPORTINSTANCE\",\r\n payload: {\r\n requestTime: requestTime,\r\n multiPortInstanceId: multiPortInstanceId\r\n }\r\n });\r\n return fetchTask;\r\n },\r\n requestDownloadMultiPort: (requestTime: number, multiPortInstanceId: number): AppThunkAction> => (dispatch, getState) => {\r\n if (requestTime === getState().multiPort.downloadingOffersState.requestTime)\r\n return Promise.reject(\"Already requested\");\r\n\r\n let api = new Api.MultiPortApi();\r\n let fetchTask = api.downloadMultiPorts({\r\n multiPortInstanceId: multiPortInstanceId\r\n }, { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(response => response.blob())\r\n .then(blob => {\r\n dispatch({\r\n type: \"RECEIVE_DOWNLOAD_MULTIPORT\",\r\n requestTime: requestTime,\r\n multiPortInstanceId: multiPortInstanceId\r\n });\r\n let fileName = \"Multiport_\" + Moment().format(\"YYYY_MM_DD\") + \".xlsx\";\r\n return Download(blob,\r\n fileName,\r\n MimeTypes.lookup(fileName) || \"text/plain\");\r\n })\r\n .catch(error => {\r\n console.log(\"Error downloading multiport: \" + error.message);\r\n //We unlock the loading state\r\n dispatch({\r\n type: \"RECEIVE_DOWNLOAD_MULTIPORT\",\r\n requestTime: requestTime,\r\n multiPortInstanceId: null\r\n });\r\n dispatch(Notifications.error({\r\n message: \"Error downloading multiport file\",\r\n title: \"Error\",\r\n position: \"tc\"\r\n }) as any);\r\n });\r\n\r\n dispatch({\r\n type: \"REQUEST_DOWNLOAD_MULTIPORT\",\r\n requestTime: requestTime,\r\n multiPortInstanceId: multiPortInstanceId\r\n });\r\n addTask(fetchTask);\r\n\r\n return fetchTask;\r\n },\r\n requestUpdateMultiPort: (requestTime: number, multiPortInstanceId: number): AppThunkAction> => (dispatch, getState) => {\r\n if (requestTime === getState().multiPort.updateMultiPortState.requestTime)\r\n return Promise.reject(\"Already did\");\r\n\r\n let api = new Api.MultiPortApi();\r\n let fetchTask = api.updateMultiPort({\r\n model: {\r\n multiPortInstanceId: multiPortInstanceId,\r\n name: getState().multiPort.newName\r\n }\r\n }, { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(() => {\r\n dispatch({ type: \"RECEIVE_UPDATE_MULTIPORT\", multiPortInstanceId: multiPortInstanceId, requestTime: requestTime });\r\n })\r\n .catch(error => {\r\n dispatch(Notifications.error({\r\n message: \"Error updating multiport\",\r\n title: \"Error\",\r\n position: \"tc\"\r\n }) as any);\r\n dispatch({ type: \"RECEIVE_UPDATE_MULTIPORT\", multiPortInstanceId: multiPortInstanceId, requestTime: requestTime });\r\n });\r\n\r\n dispatch({ type: \"REQUEST_UPDATE_MULTIPORT\", multiPortInstanceId: multiPortInstanceId, requestTime: requestTime });\r\n addTask(fetchTask);\r\n return fetchTask;\r\n },\r\n toggleMultiPortOpened: (value: boolean) => { type: \"TOGGLE_MULTIPORT_OPENED\", value: value },\r\n updateMultiPortName: (value: string) => { type: \"UPDATE_MULTIPORT_NAME\", value: value },\r\n toggleMultiPortVisible: (value: boolean): AppThunkAction => (dispatch, getState) => {\r\n dispatch({ type: \"TOGGLE_MULTIPORT_VISIBLE\", value: value });\r\n if (!getState().multiPort.isLoaded && !getState().multiPort.isLoading) {\r\n getCurrentMultiPort(new Date().getTime(), dispatch, getState)\r\n }\r\n }\r\n};\r\n\r\nconst unloadedState: MultiPortState = {\r\n isLoading: false,\r\n isOpen: false,\r\n isLoaded: false,\r\n requestTime: 0,\r\n multiPort: null,\r\n isVisible: false,\r\n newName: \"\",\r\n addOfferState: {\r\n isLoading: false,\r\n requestTime: 0\r\n },\r\n deleteOfferState: {\r\n isLoading: false,\r\n requestTime: 0\r\n },\r\n downloadingOffersState: {\r\n isLoading: false,\r\n requestTime: 0\r\n },\r\n updateMultiPortState: {\r\n isLoading: false,\r\n requestTime: 0\r\n },\r\n deleteMultiPortState: {\r\n isLoading: false,\r\n requestTime: 0\r\n }\r\n};\r\n\r\nexport const reducer: Reducer = (state: MultiPortState, incomingAction: Action) => {\r\n const action = incomingAction as KnownAction;\r\n switch (action.type) {\r\n case \"REQUEST_CURRENT_MULTIPORT\":\r\n return {\r\n ...state,\r\n isLoading: true,\r\n requestTime: action.requestTime\r\n };\r\n case \"RECEIVE_CURRENT_MULTIPORT\":\r\n if (action.requestTime !== state.requestTime)\r\n return state;\r\n\r\n return {\r\n ...state,\r\n isLoading: false,\r\n isLoaded: true,\r\n newName: action.multiPort\r\n ? action.multiPort.name : \"\",\r\n multiPort: action.multiPort\r\n };\r\n case \"REQUEST_CREATE_MULTIPORTOFFERS\":\r\n return {\r\n ...state,\r\n addOfferState: {\r\n ...state.addOfferState,\r\n isLoading: true,\r\n requestTime: action.payload.requestTime\r\n }\r\n };\r\n case \"RECEIVE_CREATE_MULTIPORTOFFERS\":\r\n return {\r\n ...state,\r\n multiPort: {\r\n ...state.multiPort,\r\n multiPortOffers: action.error\r\n ? state.multiPort.multiPortOffers\r\n : state.multiPort.multiPortOffers\r\n .concat(action.payload.multiPortOffers)\r\n },\r\n addOfferState: {\r\n ...state.addOfferState,\r\n isLoading: action.payload.requestTime !== state.addOfferState.requestTime\r\n ? state.addOfferState.isLoading : false\r\n }\r\n };\r\n case \"TOGGLE_MULTIPORT_OPENED\":\r\n return {\r\n ...state,\r\n isOpen: action.value\r\n };\r\n case \"TOGGLE_MULTIPORT_VISIBLE\":\r\n return {\r\n ...state,\r\n isVisible: action.value\r\n };\r\n case \"REQUEST_DELETE_MULTIPORTOFFER\":\r\n return {\r\n ...state,\r\n deleteOfferState: {\r\n ...state.deleteOfferState,\r\n isLoading: true,\r\n requestTime: action.requestTime\r\n }\r\n };\r\n case \"RECEIVE_DELETE_MULTIPORTOFFER\":\r\n return {\r\n ...state,\r\n multiPort: {\r\n ...state.multiPort,\r\n multiPortOffers: state.multiPort.multiPortOffers\r\n .filter(mo => mo.multiPortOfferId !== action.multiPortOfferId)\r\n },\r\n deleteOfferState: {\r\n ...state.deleteOfferState,\r\n isLoading: action.requestTime !== state.deleteOfferState.requestTime\r\n }\r\n };\r\n case \"REQUEST_DOWNLOAD_MULTIPORT\":\r\n return {\r\n ...state,\r\n downloadingOffersState: {\r\n ...state.downloadingOffersState,\r\n isLoading: true,\r\n requestTime: action.requestTime\r\n }\r\n };\r\n case \"RECEIVE_DOWNLOAD_MULTIPORT\":\r\n if (action.requestTime !== state.downloadingOffersState.requestTime)\r\n return state;\r\n\r\n return {\r\n ...state,\r\n isOpen: false,\r\n multiPort: (state.multiPort && action.multiPortInstanceId === state.multiPort.multiPortInstanceId)\r\n ? null : state.multiPort,\r\n downloadingOffersState: {\r\n ...state.downloadingOffersState,\r\n isLoading: false\r\n }\r\n };\r\n case \"RECEIVE_CURRENT_USER\":\r\n if (action.error)\r\n return state;\r\n\r\n return {\r\n ...state,\r\n isVisible: action.payload.currentUser.clientModel.defaultMultiPorts\r\n };\r\n case \"UPDATE_MULTIPORT_NAME\":\r\n return {\r\n ...state,\r\n newName: action.value\r\n };\r\n case \"REQUEST_UPDATE_MULTIPORT\":\r\n return {\r\n ...state,\r\n updateMultiPortState: {\r\n ...state.updateMultiPortState,\r\n isLoading: true,\r\n requestTime: action.requestTime\r\n }\r\n };\r\n case \"RECEIVE_UPDATE_MULTIPORT\":\r\n if (action.requestTime !== state.updateMultiPortState.requestTime)\r\n return state;\r\n\r\n return {\r\n ...state,\r\n updateMultiPortState: {\r\n ...state.updateMultiPortState,\r\n isLoading: false\r\n }\r\n };\r\n case \"REQUEST_DELETE_MULTIPORTINSTANCE\":\r\n return {\r\n ...state,\r\n deleteMultiPortState: {\r\n ...state.deleteMultiPortState,\r\n isLoading: true,\r\n requestTime: action.payload.requestTime\r\n }\r\n };\r\n case \"RECEIVE_DELETE_MULTIPORTINSTANCE\":\r\n if (action.payload.requestTime !== state.deleteMultiPortState.requestTime)\r\n return state;\r\n\r\n return {\r\n ...state,\r\n multiPort: action.error \r\n ? state.multiPort \r\n : null,\r\n deleteMultiPortState: {\r\n ...state.deleteMultiPortState,\r\n isLoading: false\r\n }\r\n };\r\n default:\r\n // The following line guarantees that every action in the KnownAction union has been covered by a case above\r\n const exhaustiveCheck: never = action;\r\n }\r\n\r\n // For unrecognized actions (or in cases where actions have no effect), must return the existing state\r\n // (or default initial state if none was supplied)\r\n return state || unloadedState;\r\n};","let langTexts: { [key: string]: string } = {\r\n\r\n};\r\n\r\nexport const getText = (key: ExistingText, params?: any): string => {\r\n let text = langTexts[key] || \"\";\r\n if (params) {\r\n Object.keys(params).forEach(param => {\r\n text = text.replace(new RegExp(\"%{\" + param + \"}\", \"g\"), params[param]);\r\n });\r\n }\r\n return text;\r\n};\r\n\r\nexport const upperCaseFirstLetter = (text: string): string => {\r\n return text.substring(0, 1).toUpperCase() + text.substring(1);\r\n};\r\n\r\nexport const loadTexts = (texts: { [key: string]: string }) => {\r\n langTexts = texts || {};\r\n};\r\n\r\n\r\nexport const translateEnum = (enVal: any, prefix: any): string => {\r\n\r\n\r\n let key = prefix + enVal;\r\n let text = langTexts[key] || enVal;\r\n \r\n return text;\r\n}\r\n\r\n\r\n//Generated from C# in Debug, can be not up to date\r\ntype ExistingText = \"SlcOfferOperationalSourcePl\" | \"StgAccountDefCarrierRates\" | \"SlcOfferBookingGoByDeepLink\" | \"SlcService\" | \"QtnQuotationDownloadCsv\" | \"QtnChronoDetails\" | \"QtnChronoDownload\" | \"QtnChronoEdit\" | \"QtnChronoDuplicate\" | \"QtnChronoSearch\" | \"QtnChronoDuplicateSearch\"\r\n | \"SlcOfferDryWarning\" | \"SlcInlandOfferTitle\" | \"SlcInlandOfferRouteType\" | \"SlcInlandOfferApplyTo\" | \"GenCreate\" | \"GenEdit\" | \"GenDownload\" | \"SlcOfferOperationalSource\"\r\n | \"SlcInlandOfferPlaceOfLoading\" | \"SlcInlandOfferPlaceOfDischarge\" | \"SlcInlandOfferPickUpEmpty\" | \"SlcInlandOfferTransportValidity\"\r\n | \"QtnContactCreated\" | \"MdtNewsLevel\" | \"SlcOfferLclOrigin\" | \"SlcOfferLclDestination\" | \"GenNor\" | \"SlcTableSpaceAvailabilty\"\r\n | \"SlcOfferOperationalSourceOcq\" | \"SlcOfferOperationalSourceApi\" | \"SlcOfferOperationalSourceManual\"\r\n | \"QtnContCompany\" | \"SlcInlandUseInQuot\" | \"SlcCarrierQuotesWarning\" | \"SlcOfferOpenAllDetails\" | \"GenRatesAvailabiltyAvailable\" | \"GenRatesAvailabiltyNotAvailable\"\r\n | \"QtnContAgency\" | \"SlcCrtFreetime\" | \"SlcOfferCfso\" | \"GenInlandSelection\" | \"SlcOfferCloseAllDetails\" | \"QtnDownloadExcelAndValidate\" | \"QtnDownloadPdfAndValidate\"\r\n | \"SlcCarrierQuotesErrors1\" | \"SlcCarrierQuotesErrors2\" | \"SlcCarrierQuotesErrors3\" | \"SlcCarrierQuotesSuccess\" | \"SlcCarrierQuotesViewStatus\"\r\n | \"QtnContFirstName\" | \"MdtNewsEditLevel\" | \"InlCarrier\" | \"GenRatesOnline\" | \"SlcFilterIncludeSurrounding\"\r\n | \"SlcOfferRatesCommodity\" | \"SlcOfferRatesNac\" | \"SlcOfferGoToOcqWebsite\" | \"SlcInlandOfferTablePlaceOfLoading\" | \"SlcInlandOfferTablePlaceOfDischarge\"\r\n | \"MdtCarrierQuotesRemarksCarrier\" | \"MdtCarrierQuotesRemarksCompany\" | \"MdtCarrierQuotesRemarksLevel\" | \"MdtCarrierQuotesRemarksContent\"\r\n | \"QtnContLastName\" | \"SlcOfferNewUpdate\" | \"CrtIncludeCarrierRates\" | \"GenGoBack\" | \"SlcOfferRatesOcqSource\" | \"GenCreateNewQuotesSettings\"\r\n | \"QtnContTypeClient\" | \"CrtShowSellingRates\" | \"MdtCarrierRatings\" | \"RatesOfferByType\" | \"StgAccountDefHideNoRates\"\r\n | \"SlcOfferRatesBlLcl\" | \"GenAutomaticallyFailsQuotationAfter2\"\r\n | \"OcqMfaBoxTitle\" | \"OcqMfaMSC\" | \"OcqMfaONE\" | \"OcqMfaCCL\" | \"OcqMfaDefault\" | \"OcqMfaSend\"\r\n | \"GenAll\" | \"GenAffectation\" | \"GenFak\" | \"GenNac\" | \"GenCode\" | \"GenApplication\" | \"RatesOfferSpecific\" | \"CarrierCarrierRatingsRatesFilter\" | \"SlcOfferRatesSpecificInfoTitle\"\r\n | \"GenSelect\" | \"SlcSortByAllInCtr\" | \"SlcCarrierQuotesError\" | \"SlcCarrierQuotesAuthenticationFailed\" | \"SlcCarrierQuotesNotResponding\" | \"SlcCarrierQuotesExpired\" | \"SlcCarrierQuotesNoRights\" | \"SlcCarrierQuotesWrongCredentials\" | \"SlcCarrierQuotesAntibot\" | \"SlcCarrierQuotesApiLimitReached\" | \"SlcOfferLclCfso\" | \"SlcOfferLclCfsd\"\r\n | \"StgAccountChangesSaved\" | \"StgAccountDefCarrierRates\" | \"StgAccountDefFreetime\" | \"StgAccountDefAllMarkets\" | \"SlcOfferCfsd\" | \"SlcFilters\" | \"SlcOfferForEtd\"\r\n | \"DocDownloadGuideMultiport\" | \"GenContactUs\" | \"MdtSellingRates\" | \"MdtUsers\" | \"MdtInlandContract\" | \"MdtCompanySettings\" | \"QtnDownloadAndValidate\"\r\n | \"DocDownloadGuideQuotation\" | \"DocDownloadGuideOcq\" | \"CtcComments\" | \"SlcCarrierRatesLoading\" | \"MdtCompanyNameSettings\"\r\n | \"QtnChronoComment\" | \"MdtNewsTitle\" | \"SlcOfferGetBetterRates\" | \"SlcCarrierQuotesNearbyPortsWarning\" | \"GenRatesAvailabiltyFewAvailable\" | \"GenRatesAvailabiltyUnits\"\r\n | \"StgQuotationSettingsSuccess\" | \"QtnClientTypeNone\" | \"StgEditQuotationClientSettings\" | \"StgQuotationSettingsGo\" | \"StgQuotationSettingsClientType\"\r\n | \"StgQuotationSettingsHideIncluded\" | \"StgQuotationSettingsShowCarrier\" | \"SlcOfferTransferToTms\" | \"StgPasswordChangeSuccess\"\r\n | \"SlcOfferAccuracyGood\" | \"SlcOfferAccuracyBad\" | \"SlcOfferAccuracy\" | \"QtnFrequencyWeekly\" | \"QtnFrequencyMonthly\"\r\n | \"QtnFrequencyTwiceAWeek\" | \"QtnSuggestedWarning\" | \"QtnCreateTemplateHelp\" | \"QtnTemplateNameNotValid\" | \"GenFrequencyWeekly\"\r\n | \"GenFrequencyTwiceAWeek\" | \"GenFrequencyMonthly\" | \"QtnServiceName\" | \"QtnIncotermLocation\" | \"QtnShowExchangeRates\"\r\n | \"QtnReferenceNotValid\" | \"GenSetToToday\" | \"QtnFrequency\" | \"GenCurrentQuotation\" | \"SlcFilterByRatesOffer\" | \"GenCarrierQuotesSettingsCreateSuccess\"\r\n | \"GenCarrierQuotesSettingsCreateFailure\" | \"GenCarrierQuotesSettingsUpdateSuccess\" | \"GenCarrierQuotesSettingsUpdateFailure\" | \"GenError\"\r\n | \"SlcOfferUnaccuracyMessage\" | \"LogForgotPassword\" | \"SlcAllOfferAskRatesBtn\" | \"QtnDetailsLevelPartialCharges\" | \"GenSuccess\"\r\n | \"QtnDetailsLevelPartialTotal\" | \"QtnTemplateDialogSave\" | \"CrtAgentComment\" | \"CrtAgentConsignee\" | \"SlcCarrierQuotesNoResults\" | \"SlcCarrierQuotesOkargoApiLimitReached\" | \"SlcCarrierQuotesAdditionalVerification\" | \"SlcCarrierQuotesAdditionalVerificationMSC1\" | \"SlcCarrierQuotesAdditionalVerificationMSC2\" | \"SlcCarrierQuotesSettingsPlatform\" | \"SlcCarrierQuotesSettingsSetUpFor\" | \"SlcCarrierQuotesSettingsOnlyMe\" | \"SlcCarrierQuotesAdditionalVerificationMSCTittle\"\r\n | \"CrtAgentIncoterm\" | \"CrtAgentShipper\" | \"CrtAgentVolume\" | \"CrtAllInIncluding\" | \"CrtAllMarkets\"\r\n | \"CrtContainers\" | \"CrtContainerType\" | \"CrtDates\" | \"CrtDestination\" | \"CrtFromDate\" | \"CrtGo\" | \"CrtGoValidationError\" | \"CrtPrepaidCharges\" | \"CrtCollectCharges\"\r\n | \"CrtIncludeLastRates\" | \"CrtIncludeNearPod\" | \"CrtIncludeNearPol\" | \"CrtIncludeSuggested\" | \"CrtLoadingCharges\"\r\n | \"CrtOptions\" | \"CrtOrigin\" | \"CrtPorts\" | \"CrtPort\" | \"CrtPriceByContainer\" | \"CrtQuotationInformation\" | \"CrtReset\"\r\n | \"CrtSurchargesType\" | \"CrtToDate\" | \"CrtUnLoadingCharges\" | \"CtcBooking\" | \"CtcEmail1\" | \"CtcEmail2\"\r\n | \"CtcFirstName\" | \"CtcLastName\" | \"CtcPhone1\" | \"CtcPhone2\" | \"CtcPrivate\" | \"CtcPublic\" | \"CtcSales\"\r\n | \"DocDownloadQuickStart\" | \"DocDownloadTos\" | \"DocOkargoDocuments\" | \"FakStatistics\" | \"GenClose\" | \"GenContainerOwned\"\r\n | \"GenCriteria\" | \"GenCtrDry\" | \"GenCtrFlat\" | \"GenCtrOpenTop\" | \"GenCtrRefeer\" | \"GenCtrTankTop\"\r\n | \"GenCurrency\" | \"GenDateFrom\" | \"GenDateTo\" | \"GenDelete\" | \"GenDeleteUpper\" | \"GenDisabled\" | \"GenEmailSend\" | \"GenEmailSubject\"\r\n | \"GenEmailTo\" | \"GenEnabled\" | \"GenGoh\" | \"GenGohDouble\" | \"GenHazardous\" | \"GenIncluded\" | \"GenLocationFrom\"\r\n | \"GenLocationTo\" | \"GenLogout\" | \"GenModerator\" | \"GenMyDocuments\" | \"GenMyHistory\" | \"GenNextStep\"\r\n | \"GenNo\" | \"GenOneRequired\" | \"GenOpen\" | \"GenPerUnit\" | \"GenPrevStep\" | \"GenQuotations\" | \"GenRatesCarrier\"\r\n | \"GenRatesCarrierDesc\" | \"GenRatesExpired\" | \"GenRatesInfoLevelHigh\" | \"GenRatesInfoLevelLow\" | \"GenRatesOnlineDesc\"\r\n | \"GenRatesInfoLevelMedium\" | \"GenRatesPrivate\" | \"GenRatesPrivateDesc\" | \"GenRatesPublic\" | \"GenRatesPublicDesc\" | \"GenRatesUploadedDesc\"\r\n | \"GenRatesSuggested\" | \"GenRatesSuggestedDesc\" | \"GenRequired\" | \"GenReset\" | \"GenSaveChanges\"\r\n | \"GenSelection\" | \"GenSettings\" | \"GenTransShipmentDirect\" | \"GenUndoChanges\" | \"GenUnknown\" | \"GenYes\" | \"GenPort\" | \"GenCountry\" | \"GenZone\" | \"GenWith\" | \"GenFrom\" | \"GenTo\"\r\n | \"GenContactUsAt\" | \"GenContactUseForm\" | \"HstMemoOffer\" | \"HstOfferMemoCarrier\" | \"HstOfferMemoContainers\"\r\n | \"HstOfferMemoDestination\" | \"HstOfferMemoDownload\" | \"HstOfferMemoFilterFromDate\" | \"HstOfferMemoFilterSearch\"\r\n | \"HstOfferMemoOrigin\" | \"HstOfferMemoReference\" | \"HstSearchCriteria\" | \"HstSearchCriteriaFilterFromDate\"\r\n | \"HstSearchCriteriaFilterSearch\" | \"HstSearchCriteriasContainers\" | \"HstSearchCriteriasDate\"\r\n | \"HstSearchCriteriasDestination\" | \"HstSearchCriteriasFromDate\" | \"HstSearchCriteriasGoToSelection\"\r\n | \"HstSearchCriteriasOrigin\" | \"HstSearchCriteriasToDate\" | \"LogEmail\" | \"LogFailMessage\" | \"LogLogin\"\r\n | \"LogPassword\" | \"MdtAgents\" | \"MdtAgentsContainers\" | \"MdtAgentsFilterDestination\" | \"MdtAgentsFilterFromDate\"\r\n | \"MdtAgentsFilterGo\" | \"MdtAgentsFilterName\" | \"MdtAgentsFilterOrigin\" | \"MdtAgentsFromDate\" | \"MdtAgentsPod\"\r\n | \"MdtAgentsPol\" | \"MdtAgentsToDate\" | \"MdtAgentsUser\" | \"MdtDocuments\" | \"MdtDocumentsCarrier\"\r\n | \"MdtDocumentsEditCarrier\" | \"MdtDocumentsEditCompany\" | \"MdtDocumentsEditCreate\" | \"MdtDocumentsEditFile\"\r\n | \"MdtDocumentsEditName\" | \"MdtDocumentsFor\" | \"MdtDocumentsName\" | \"MdtHome\" | \"MdtHomeMessage\" | \"MdtNews\"\r\n | \"MdtNewsEditCompany\" | \"MdtNewsEditContent\" | \"MdtNewsEditCreate\" | \"MdtNewsEditDelete\" | \"MdtNewsEditFromDate\"\r\n | \"MdtNewsEditFromZone\" | \"MdtNewsEditTitle\" | \"MdtNewsEditToDate\" | \"MdtNewsEditToZone\" | \"MdtNewsFor\" | \"MtdUsersCreated\" | \"MtdUsersExpired\" | \"MtdDeactivate\" | \"GenCompany\" | \"GenAgency\" | \"GenCompanyGroup\" | \"GenDeactivateUpper\" | \"GenFirstName\" | \"GenLastName\" | \"GenInformation\" | \"MtdHasAcces\"\r\n | \"SlcOfferRatesCompany\" | \"GenConfirmQuestion\" | \"SlcFilterOnlyBestTt\"\r\n | \"SlcFilterMaxTransShipment\" | \"GenTransitTime\"\r\n | \"TutoCrt1\" | \"TutoCrt2\" | \"TutoCrt3\" | \"TutoCrt4\" | \"TutoCrt5\" | \"TutoNext\" | \"TutoEnd\"\r\n | \"AdmMaxPlMailContent\" | \"AdmMaxPlReachedMailContent\"\r\n | \"MdtNewsFromDate\" | \"MdtNewsFromZone\" | \"MdtNewsToDate\" | \"MdtNewsToZone\" | \"MdtRatesDocument\" | \"MdtRatesDocumentsCarrier\" | \"MdtPricelistSearchPortCode\" | \"MdtPricelistSearchChargeCode\" | \"MdtPricelistSearchChargeCodeOrigDest\" | \"MdtRatesDocumentsCompletion\" | \"MdtRatesDocumentsEditContent\" | \"MdtPricelistName\" | \"MdtPricelistTemplate\" | \"MdtPricelistSourceDocument\" | \"MdtPricelistIntegerratedFor\" | \"MdtPricelistUploadDocument\" | \"MdtPricelistOfferType\" | \"MdtPricelistDownloadTemplate\" | \"MdtRatesDocumentsEditLevel\" | \"MdtRatesDocumentsFilterCarrier\" | \"MdtRatesDocumentsFilterDestination\" | \"MdtRatesDocumentsFilterOrigin\" | \"MdtRatesDocumentsFilterReference\" | \"MdtRatesDocumentsFilterTrafficType\" | \"MdtRatesDocumentsInformation\" | \"MdtRatesDocumentsReception\" | \"MdtRatesDocumentsReference\" | \"MdtRatesDocumentsSearch\" | \"MdtRatesDocumentsTrafficType\" | \"MdtRatesInfo\" | \"MdtRatesInfoCarrier\" | \"MdtRatesInfoCarrierFilter\" | \"MdtRatesInfoEditCarrier\" | \"MdtRatesInfoEditDescription\" | \"MdtRatesInfoEditReference\" | \"MdtRatesInfoEditShortname\" | \"MdtRatesInfoNameFilter\" | \"MdtRatesInfoReference\" | \"MdtRatesInfoSearch\" | \"MdtRatesInfoShortname\" | \"MemoAmountOfUnit\" | \"MemoCarrier\" | \"MemoCarrierChargeName\" | \"MemoContacts\" | \"MemoContactsBooking\" | \"MemoContactsSales\" | \"MemoDestination\" | \"MemoDestinationCharges\" | \"MemoEta\" | \"MemoEtd\" | \"MemoExchangeRates\" | \"MemoExchangeRatesWarning\" | \"MemoFreightCharges\" | \"MemoNil\" | \"MemoNoRates\" | \"MemoNotSelected\" | \"MemoOrigin\" | \"MemoOriginCharges\" | \"MemoPerUnit\" | \"MemoRatesinfo\" | \"MemoRatesReference\" | \"MemoRatesValidity\" | \"MemoRouteInfo\" | \"MemoSource\" | \"MemoSpecialRates\" | \"MemoTotalAll\" | \"MemoTotalDestination\" | \"MemoTotalFreight\" | \"MemoTotalOrigin\" | \"MemoTotalPerNumber\" | \"MemoTotalPerUnit\" | \"MemoTransitTme\" | \"MemoTransShipments\" | \"MemoVessel\" | \"MstAgentsDetails\" | \"QtnAddCharge\" | \"QtnAddBlCharge\" | \"QtnAddInfo\" | \"QtnAdditionalCharges\" | \"QtnAdminCharges\" | \"QtnBackToOffers\" | \"QtnSaveAsTemplate\" | \"QtnCargoDesc\" | \"QtnClientAddress\" | \"QtnClientAgency\" | \"QtnClientCity\" | \"QtnClientCompany\" | \"QtnClientCountry\" | \"QtnClientEmail\" | \"QtnClientFirstName\" | \"QtnClientInfo\" | \"QtnClientLastName\" | \"QtnClientPhone1\" | \"QtnClientPhone2\" | \"QtnClientType\" | \"QtnClientTypeAgent\" | \"QtnClientTypeClient\" | \"QtnClientTypeProspect\" | \"QtnClientZipCode\" | \"QtnContactCreateTitle\" | \"QtnContactCreateButton\" | \"QtnContactMyContacts\" | \"QtnContactMyOkargoContact\" | \"QtnFfAddress\" | \"QtnFfAgency\" | \"QtnFfCity\" | \"QtnFfCompany\" | \"QtnFfCountry\" | \"QtnFfEmail\" | \"QtnFfFirstName\" | \"QtnFfInfo\" | \"QtnFfLastName\" | \"QtnFfPhone1\" | \"QtnFfPhone2\" | \"QtnFfZipCode\" | \"QtnDestinationCharges\" | \"QtnDestinationInfo\" | \"QtnDetailsLevel\" | \"QtnDetailsLevelFull\" | \"QtnDetailsLevelNone\" | \"QtnDetailsLevelPartial\" | \"QtnDownloadPreview\" | \"QtnFreightCharges\" | \"QtnIncoterm\" | \"QtnLanguage\" | \"QtnMargin\" | \"QtnName\" | \"QtnOkargoContact\" | \"QtnOperationalCharges\" | \"QtnOperationalInfo\" | \"QtnOriginCharges\" | \"QtnOriginInfo\" | \"QtnPostTransport\" | \"QtnPreTransport\" | \"QtnQuotation\" | \"QtnReference\" | \"QtnSendAndValidate\" | \"QtnShowCarrier\" | \"QtnSubscription\" | \"QtnTerms\" | \"QtnTotalDisplay\" | \"QtnTotalTypeAllIn\" | \"QtnTotalTypeByCurrency\" | \"QtnTotalTypeNone\" | \"QtnTransitTime\" | \"QtnTransShipment\" | \"QtnValidity\" | \"QtnWeight\" | \"QtnXlsAdditionalInfo\" | \"QtnXlsAllIn\" | \"QtnXlsCargo\" | \"QtnXlsCarrier\" | \"QtnXlsChargesDestination\" | \"QtnXlsChargesFob\" | \"QtnXlsChargesFreight\" | \"QtnXlsChargesInclude\" | \"QtnXlsClientAgency\" | \"QtnXlsContainerType\" | \"QtnXlsDate\" | \"QtnXlsDestination\" | \"QtnXlsIncoterm\" | \"QtnXlsNoCharges\" | \"QtnXlsOperationalInfo\" | \"QtnXlsOrigin\" | \"QtnXlsPod\" | \"QtnXlsPol\" | \"QtnXlsQuotationFor\" | \"QtnXlsQuotationTitle\" | \"QtnXlsRatesInfo\" | \"QtnXlsReference\" | \"QtnXlsTerms\" | \"QtnXlsTransitTime\" | \"QtnXlsTransShipments\" | \"QtnXlsValidity\" | \"QtnXlsWeight\" | \"QtnYourContact\" | \"SlcAskRatesBody\" | \"SlcAskRatesSend\" | \"SlcAskRatesSubject\" | \"SlcAvgTransitTime\" | \"SlcBookingAgentBody\" | \"SlcBookingBookingInfo\" | \"SlcBookingCargo\" | \"SlcBookingConsignee\" | \"SlcBookingContactEmail\" | \"SlcBookingContactName\" | \"SlcBookingContactPhone\" | \"SlcBookingContainers\" | \"SlcBookingDateMad\" | \"SlcBookingDeadline\" | \"SlcBookingDirectBody\" | \"SlcBookingEtd\" | \"SlcBookingIncoterm\" | \"SlcBookingIsHazardous\" | \"SlcBookingLocationMad\" | \"SlcBookingOperationalInfo\" | \"SlcBookingPod\" | \"SlcBookingPol\" | \"SlcBookingPoNumber\" | \"SlcBookingReference\" | \"SlcBookingRoutingInfo\" | \"SlcBookingSend\" | \"SlcBookingShipper\" | \"SlcBookingSubject\" | \"SlcBookingType\" | \"SlcBookingTypeAgent\" | \"SlcBookingTypeDirect\" | \"SlcBookingVessel\" | \"SlcBookingWeight\" | \"SlcBookingYourClient\" | \"SlcBookingYourContact\" | \"SlcContactsNoContacts\" | \"SlcCrtAdvancedClosingWarning\" | \"SlcCrtMoreOptions\" | \"SlcCrtMultiPort\" | \"SlcCrtReloadRequired\" | \"SlcCrtSearch\" | \"SlcFilterCarriers\" | \"SlcFilterEta\" | \"SlcFilterIncludeNearPod\" | \"SlcFilterIncludeNearPol\" | \"SlcFilterMaxAllIn\" | \"SlcFilterMaxTransitTime\" | \"SlcFilterRates\" | \"SlcFilterRatesAll\" | \"SlcFilterRatesOnlyFak\" | \"SlcFilterRatesOnlySpecial\" | \"SlcFilterRatesValidity\" | \"SlcGoToEBooking\" | \"SlcIncludedWarning\" | \"SlcMultiPortAllIn\" | \"SlcMultiPortCarrier\" | \"SlcMultiPortDestination\" | \"SlcMultiPortDownload\" | \"SlcMultiPortOpen\" | \"SlcMultiPortOrigin\" | \"SlcMultiPortRatesOffer\" | \"SlcMultiPortTransitTime\" | \"SlcMultiPortTransShipments\" | \"SlcOfferAvgTransitTime\" | \"SlcOfferBestTransitTime\" | \"SlcOfferBookingByEmail1\" | \"SlcOfferBookingDesc\" | \"SlcOfferBookingGo\" | \"SlcOfferBookingGoByEmail\" | \"SlcOfferBookingGoIntra\" | \"SlcOfferCarrierWebsite\" | \"SlcOfferContacts\" | \"SlcOfferCreateMemo\" | \"SlcOfferDetails\" | \"SlcOfferFrequency\" | \"SlcOfferGetRates\" | \"SlcOfferLastUpdate\" | \"SlcOfferMemoDownload\" | \"SlcOfferMemoEmail\" | \"SlcOfferPod\" | \"SlcOfferPol\" | \"SlcOfferQuotation\" | \"SlcOfferRatesBl\" | \"SlcOfferRatesCtr\" | \"SlcOfferRatesDescription\" | \"SlcOfferRatesDescriptionDetails\" | \"SlcOfferRatesDestination\" | \"SlcOfferRatesDetails\" | \"SlcOfferRatesDownloadSheet\" | \"SlcOfferRatesEffectiveDate\" | \"SlcOfferRatesFreight\" | \"SlcOfferRatesFrtValidity\" | \"SlcOfferRatesInfo\" | \"SlcOfferRatesNoRates\" | \"SlcOfferRatesOrigin\" | \"SlcOfferRatesReference\" | \"SlcOfferRatesShortName\" | \"SlcOfferRatesUpload\" | \"SlcOfferRatesValidity\" | \"SlcOffersCount\" | \"SlcOfferTitle\" | \"SlcOfferTransfer\" | \"SlcOfferTransferAdd1\" | \"SlcOfferTransferAdd2\" | \"SlcOfferTransferData\" | \"SlcOfferTransferGo\" | \"SlcOfferTransferIdentification\" | \"SlcOfferTransShipments\" | \"SlcOfferTsDirect\" | \"SlcOfferVessel\" | \"SlcOfferVoyageDetails\" | \"SlcOfferWithTransShipment\" | \"SlcSortByAllIn\" | \"SlcSortByCarrier\" | \"SlcSortByTransitTime\" | \"SlcSortByTransShipments\" | \"SlcSource\" | \"SlcTableCarrier\" | \"SlcTableRates\" | \"SlcTableTotalFrom\" | \"SlcTransShipments\" | \"SlcValidity\" | \"StgAccountDefLastRates\" | \"StgAccountDefLoading\" | \"StgAccountDefMultiPort\" | \"StgAccountDefPriceByCtr\" | \"StgAccountDefSuggested\" | \"StgAccountDefUnLoading\" | \"StgAccountEmail\" | \"StgAccountFirstName\" | \"StgAccountLastName\" | \"StgAccountPhone1\" | \"StgAccountPhone2\" | \"StgAccountSubscription\" | \"StgChangePassword\" | \"StgChangePasswordGo\" | \"StgEditProfile\" | \"StgPasswordNewPassword\" | \"StgPasswordOldPassword\" | \"StgPasswordPasswordConf\" | \"AdmValidatedDocumentBody\" | \"AdmValidatedDocumentSubject\" | \"CrtAgentCargoDescription\" | \"SlcOfferRatesInfoWarning\" | \"SlcOfferRatesInfoTitle\" | \"SlcOfferRatesInfoDetails\" | \"SlcMarket\" | \"SlcOfferRatesMarket\" | \"GenNone\" | \"SlcError\" | \"SlcMultipleSessionError\" | \"SlcTestWarning\" | \"MdtRatesDocumentsValidityEnd\" | \"MdtRatesDocumentsValidityStart\" | \"MdtRatesDocumentsMainPorts\" | \"MdtRatesDocumentsPortsZones\" | \"SlcAgentRatesDisclaimer\" | \"CrtAgentOperation\" | \"CrtAgentRegular\" | \"CrtAgentSpot\" | \"QtnAgentSeeBelow\" | \"HstMultiPortDate\" | \"HstMultiPortDownload\" | \"HstMultiPortDownloadRecent\" | \"HstMultiPortFilterSearch\" | \"HstMultiPortName\" | \"HstMultiPortOffersCount\" | \"HstMultiPortRecentDescription\" | \"HstMultiPortRecentFromDate\" | \"HstMultiPortRecentMultiPort\" | \"HstMultiPortRecentToDate\" | \"HstMultiPort\" | \"MtpGoToHistory\" | \"DocDownloadApp\" | \"GenErrorMessage\" | \"GenErrorSendReport\" | \"GenErrorTitle\" | \"GenErrorReportSent\" | \"LogLoginBlocked\" | \"LogLoginExpired\" | \"LogWrongEmail\" | \"LogWrongPassword\" | \"LogWrongIp\" | \"DocDocuments\" | \"SlcFeedbackQuestion\" | \"SlcFeedbackMessagePlaceholder\" | \"SlcFeedbackSend\" | \"SlcFeedbackThanksBad\" | \"SlcFeedbackThanksGood\" | \"SlcSortByValidity\" | \"SlcOfferAskRatesGoByEmail\" | \"SlcOfferAskRatesGoByWebSite\" | \"SlcOfferAskRatesDesc\" | \"SlcFilterHideNoRates\" | \"CrtContainerRequired\" | \"GenTrafficTypeImport\" | \"GenTrafficTypeExport\" | \"GenTrafficTypeCrossTrade\" | \"QtnChronoLbReference\" | \"QtnChronoLbDateBegin\" | \"QtnChronoLbDateEnd\" | \"QtnChronoLbClient\" | \"QtnChronoLbFreightForwarder\" | \"QtnChronoLbTrafficType\" | \"QtnChronoLbCarrier\" | \"QtnChronoLbOrigin\" | \"QtnChronoLbDestination\" | \"QtnChronoSearch\" | \"GenDays\" | \"QtnTemplateCreateSuccess\" | \"QtnSelectTemplate\" | \"QtnExchangeRates\" | \"QtnTemplateAddedCharges\" | \"QtnTemplateMargins\" | \"QtnTemplateCreateTitle\" | \"QtnTemplateAdditionalInfoAndTerms\" | \"QtnTemplateSettings\" | \"QtnTemplateName\" | \"QtnTemplateAdditionalInfo\" | \"QtnTemplateTerms\" | \"QtnTemplateDetailsLevel\" | \"QtnTemplateTotalType\" | \"QtnTemplateExchangeRates\" | \"QtnTemplateLanguage\" | \"SlcQuoteValidity\"\r\n | \"GenCarrierQuotesSettings\" | \"GenCarrierQuotesStatus\" | \"MdtCarrierQuotesRemarks\" | \"GenCreateNewCarrierQuotesRemarks\" | \"GenCreateNews\" | \"GenEditCarrierQuotesRemarks\" | \"GenAutomaticallyFailsQuotationAfter\" | \"GenDefaultAdditionalInfo\"\r\n | \"GenDefaultTerms\" | \"MdtNoRatesInformation\" | \"MdtPlStateInformation\" | \"GenEditCarrierQuotesSettings\" | \"GenPrevVersion\" | \"GenCreateNewSellingRates\" | \"LogTermsAndConditions\" | \"BlckListApiTittle\" | \"BlckListApiRule\" | \"BlckListApiSucces\" | \"RepReference\"\r\n ;\r\n\r\n","import * as SignalR from \"@aspnet/signalr\";\r\nimport * as OkargoHubStore from \"../store/OkargoHub\";\r\nimport { ApplicationState } from \"../store\";\r\nimport { push } from \"connected-react-router\";\r\nimport {\r\n SelectionCarrierRatesLoadingStarted\r\n , SelectionCarrierRatesLoadingEnded\r\n , SelectionSchedulesLoadingStarted\r\n , SelectionSchedulesLoadingEnded\r\n} from \"../store/Selection\";\r\nimport {MfaRequested} from \"../store/RatesFetcher\";\r\n\r\nlet connection: SignalR.HubConnection = null;\r\n\r\ntype KnownAction = OkargoHubStore.KnownAction\r\n | SelectionCarrierRatesLoadingStarted\r\n | SelectionCarrierRatesLoadingEnded\r\n | SelectionSchedulesLoadingStarted\r\n | SelectionSchedulesLoadingEnded\r\n | MfaRequested\r\n ;\r\n\r\nexport const connectUserHub = (dispatch: (action: KnownAction) => void, getState: () => ApplicationState): Promise => {\r\n connection = new SignalR.HubConnectionBuilder()\r\n .withUrl(\"/okargoHub\", SignalR.HttpTransportType.WebSockets)\r\n .build();\r\n\r\n connection.onclose((err) => {\r\n dispatch({ type: \"USERHUB_CONNECTION_CLOSED\" });\r\n });\r\n\r\n // connection.on(\"SchedulesLoadingStarted\", () => {\r\n // dispatch({ type: \"SELECTION_SCHEDULES_LOADING_STARTED\" });\r\n // });\r\n // connection.on(\"SchedulesLoadingEnded\", () => {\r\n // dispatch({ type: \"SELECTION_SCHEDULES_LOADING_ENDED\" });\r\n // });\r\n // connection.on(\"CarrierRatesLoadingStarted\", () => {\r\n // dispatch({ type: \"SELECTION_CARRIERRATES_LOADING_STARTED\" });\r\n // });\r\n // connection.on(\"CarrierRatesLoadingEnded\", () => {\r\n // dispatch({ type: \"SELECTION_CARRIERRATES_LOADING_ENDED\" });\r\n // });\r\n\r\n connection.on(\"MfaRequested\", (platformCode: string) => {\r\n dispatch({ type: \"MFA_REQUESTED\", payload: { requestTime: new Date().getTime(), platformCode: platformCode } });\r\n });\r\n\r\n return connection.start().then(() => {\r\n connection.send(\"RegisterUser\", getState().account.currentUser?.clientModel?.account?.email);\r\n dispatch({ type: \"USERHUB_CONNECTION_OPENED\" });\r\n });\r\n};","import { Action, Reducer } from 'redux';\r\nimport * as Api from '../api/api';\r\nimport { AppThunkAction, ApplicationState } from './';\r\nimport { getDefaultHeaders } from '../utils/utils';\r\n\r\nexport interface TutorialState {\r\n isLoading: boolean;\r\n isLoaded: boolean;\r\n requestTime?: number;\r\n isEnabled: boolean;\r\n updateState: {\r\n requestTime?: number;\r\n isLoading: boolean;\r\n };\r\n tutorials: Array;\r\n parts: {\r\n [key: string]: {\r\n isRunning: boolean;\r\n isEnabled: boolean;\r\n step: number;\r\n }\r\n }\r\n}\r\n\r\ninterface TurorialRequestTutorials {\r\n type: 'TUTORIAL_REQUEST_TUTORIALS';\r\n payload: {\r\n requestTime: number;\r\n }\r\n}\r\ninterface TurorialReceiveTutorials {\r\n type: 'TUTORIAL_RECEIVE_TUTORIALS';\r\n payload: {\r\n requestTime: number;\r\n tutorials?: Array;\r\n }\r\n error?: any;\r\n}\r\ninterface TurorialRequestUpdateTutorial {\r\n type: 'TUTORIAL_REQUEST_UPDATETUTORIAL';\r\n payload: {\r\n requestTime: number;\r\n }\r\n}\r\ninterface TurorialReceiveUpdateTutorial {\r\n type: 'TUTORIAL_RECEIVE_UPDATETUTORIAL';\r\n payload: {\r\n requestTime: number;\r\n tutorial?: Api.TutorialModel;\r\n }\r\n error?: any;\r\n}\r\ninterface TurorialStartPart { type: 'TUTORIAL_START_PART'; payload: { key: string } }\r\ninterface TurorialStopPart { type: 'TUTORIAL_STOP_PART'; payload: { key: string } }\r\ninterface TurorialNextStep { type: 'TUTORIAL_NEXT_STEP'; payload: { key: string, isLast: boolean } }\r\n\r\nexport type KnownAction = TurorialStartPart\r\n | TurorialStopPart\r\n | TurorialRequestTutorials\r\n | TurorialReceiveTutorials\r\n | TurorialNextStep\r\n | TurorialRequestUpdateTutorial\r\n | TurorialReceiveUpdateTutorial\r\n ;\r\n\r\nexport const requestTutorial = (requestTime: number, dispatch: (a: any) => void, getState: () => ApplicationState): Promise => {\r\n let api = new Api.TutorialApi();\r\n let task = api.tutorials({ credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(tutorials => {\r\n dispatch({\r\n type: \"TUTORIAL_RECEIVE_TUTORIALS\",\r\n payload: { requestTime: requestTime, tutorials: tutorials }\r\n });\r\n }).catch(err => {\r\n dispatch({\r\n type: \"TUTORIAL_RECEIVE_TUTORIALS\",\r\n payload: { requestTime: requestTime },\r\n error: err\r\n });\r\n });\r\n\r\n dispatch({\r\n type: \"TUTORIAL_REQUEST_TUTORIALS\",\r\n payload: { requestTime: requestTime },\r\n });\r\n return task;\r\n \r\n}\r\n\r\nexport const actionCreators = {\r\n requestTutorials: (requestTime: number): AppThunkAction => (dispatch, getState) => {\r\n return requestTutorial(requestTime, dispatch, getState);\r\n },\r\n requestUpdateTutorial: (requestTime: number, name: string, status: Api.TutorialModelStatusEnum): AppThunkAction => (dispatch, getState) => {\r\n let api = new Api.TutorialApi();\r\n let task = api.updateTutorial({ name: name, status: status }, { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(tutorial => {\r\n dispatch({\r\n type: \"TUTORIAL_RECEIVE_UPDATETUTORIAL\",\r\n payload: { requestTime: requestTime, tutorial: tutorial }\r\n });\r\n }).catch(err => {\r\n dispatch({\r\n type: \"TUTORIAL_RECEIVE_UPDATETUTORIAL\",\r\n payload: { requestTime: requestTime },\r\n error: err\r\n });\r\n });\r\n\r\n dispatch({\r\n type: \"TUTORIAL_REQUEST_UPDATETUTORIAL\",\r\n payload: { requestTime: requestTime },\r\n });\r\n return task;\r\n },\r\n startTurorial: (key: string) => { type: \"TUTORIAL_START_PART\", payload: { key: key } },\r\n stopTurorial: (key: string) => { type: \"TUTORIAL_STOP_PART\", payload: { key: key } },\r\n tutorialNextStep: (key: string, isLast: boolean): AppThunkAction => (dispatch, getState) => {\r\n dispatch({ type: \"TUTORIAL_NEXT_STEP\", payload: { key: key, isLast: isLast } });\r\n if (isLast) {\r\n let requestTime = new Date().getTime();\r\n let api = new Api.TutorialApi();\r\n let task = api.updateTutorial({ name: key, status: \"Done\" }, { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(tutorial => {\r\n dispatch({\r\n type: \"TUTORIAL_RECEIVE_UPDATETUTORIAL\",\r\n payload: { requestTime: requestTime, tutorial: tutorial }\r\n });\r\n }).catch(err => {\r\n dispatch({\r\n type: \"TUTORIAL_RECEIVE_UPDATETUTORIAL\",\r\n payload: { requestTime: requestTime },\r\n error: err\r\n });\r\n });\r\n\r\n dispatch({\r\n type: \"TUTORIAL_REQUEST_UPDATETUTORIAL\",\r\n payload: { requestTime: requestTime },\r\n });\r\n return task;\r\n }\r\n },\r\n};\r\n\r\nconst unloadedState: TutorialState = {\r\n isLoading: false,\r\n isLoaded: false,\r\n parts: {},\r\n isEnabled: true,\r\n tutorials: [],\r\n updateState: {\r\n isLoading: false\r\n }\r\n};\r\n\r\nexport const reducer: Reducer = (state: TutorialState, incomingAction: Action) => {\r\n const action = incomingAction as KnownAction;\r\n switch (action.type) {\r\n case \"TUTORIAL_REQUEST_TUTORIALS\":\r\n return {\r\n ...state,\r\n isLoading: true,\r\n requestTime: action.payload.requestTime\r\n };\r\n case \"TUTORIAL_RECEIVE_TUTORIALS\":\r\n if (state.requestTime !== action.payload.requestTime)\r\n return state;\r\n\r\n return {\r\n ...state,\r\n isLoading: false,\r\n isLoaded: true,\r\n tutorials: action.error\r\n ? state.tutorials\r\n : action.payload.tutorials\r\n };\r\n case \"TUTORIAL_REQUEST_UPDATETUTORIAL\":\r\n return {\r\n ...state,\r\n updateState: {\r\n ...state.updateState,\r\n isLoading: true,\r\n requestTime: action.payload.requestTime\r\n }\r\n };\r\n case \"TUTORIAL_RECEIVE_UPDATETUTORIAL\":\r\n if (state.updateState.requestTime !== action.payload.requestTime)\r\n return state;\r\n\r\n return {\r\n ...state,\r\n updateState: {\r\n ...state.updateState,\r\n isLoading: false\r\n },\r\n tutorials: action.error\r\n ? state.tutorials\r\n : (state.tutorials.some(x => x.tutorialId === action.payload.tutorial.tutorialId)\r\n ? state.tutorials\r\n .map(x => x.tutorialId === action.payload.tutorial.tutorialId ? action.payload.tutorial : x)\r\n : state.tutorials.concat([action.payload.tutorial ]))\r\n };\r\n case \"TUTORIAL_START_PART\":\r\n if (state.parts[action.payload.key]?.isRunning)\r\n return state;\r\n\r\n return {\r\n ...state,\r\n parts: {\r\n ...state.parts,\r\n [action.payload.key]: {\r\n ...state.parts[action.payload.key],\r\n isEnabled: state.parts[action.payload.key]\r\n ? state.parts[action.payload.key].isEnabled\r\n : true,\r\n isRunning: true,\r\n step: 1\r\n }\r\n }\r\n };\r\n case \"TUTORIAL_STOP_PART\":\r\n return {\r\n ...state,\r\n parts: {\r\n ...state.parts,\r\n [action.payload.key]: {\r\n ...state.parts[action.payload.key],\r\n isRunning: false\r\n }\r\n }\r\n };\r\n case \"TUTORIAL_NEXT_STEP\":\r\n if (action.payload.isLast)\r\n return {\r\n ...state,\r\n parts: {\r\n ...state.parts,\r\n [action.payload.key]: {\r\n ...state.parts[action.payload.key],\r\n isRunning: false,\r\n isEnabled: false\r\n }\r\n }\r\n };\r\n\r\n return {\r\n ...state,\r\n parts: {\r\n ...state.parts,\r\n [action.payload.key]: {\r\n ...state.parts[action.payload.key],\r\n step: (state.parts[action.payload.key]?.step || 0) + 1\r\n }\r\n }\r\n };\r\n default:\r\n // The following line guarantees that every action in the KnownAction union has been covered by a case above\r\n const exhaustiveCheck: never = action;\r\n }\r\n\r\n // For unrecognized actions (or in cases where actions have no effect), must return the existing state\r\n // (or default initial state if none was supplied)\r\n return state || unloadedState;\r\n};","import { addTask } from \"../utils/bugFixer\";\r\nimport { Action, Reducer } from \"redux\";\r\nimport * as Api from \"../api/api\";\r\nimport Moment from \"moment\";\r\nimport * as MultiPortStore from './MultiPort';\r\nimport { AppThunkAction } from \"./\";\r\nimport { ApplicationState } from \"./index\"\r\nimport { RequestState } from \"../models/models\"\r\nimport { languageCookie } from \"../utils/constants\";\r\nimport * as Notifications from 'react-notification-system-redux';\r\nimport { SubmissionError, change } from 'redux-form';\r\nimport * as Cookies from \"js-cookie\";\r\nimport { getText } from \"../utils/langTexts\";\r\nimport { connectUserHub } from \"../signalR/connectedUsers\";\r\nimport {requestTutorial} from \"./Tutorial\";\r\nimport {getDefaultHeaders} from \"../utils/utils\";\r\n\r\nexport interface AccountState {\r\n isLoading: boolean;\r\n isLoaded: boolean;\r\n requestTime: number;\r\n isMenuOpen: boolean;\r\n login: LoginState;\r\n languageId: number;\r\n currentUser: Api.CurrentUserModel;\r\n editClient: RequestState;\r\n editQuotationClientSettings: RequestState;\r\n editPassword: RequestState;\r\n acceptGcuState: RequestState;\r\n forgotPasswordState: ForgotPasswordState;\r\n}\r\n\r\nexport interface LoginState {\r\n isLoading: boolean;\r\n requestTime: number;\r\n}\r\n\r\nexport interface ForgotPasswordState {\r\n isLoading: boolean;\r\n requestTime: number;\r\n tokenSent: boolean;\r\n email: string;\r\n}\r\n\r\ninterface RequestCurrentUser { type: \"REQUEST_CURRENT_USER\", payload: { requestTime: number } }\r\nexport interface ReceiveCurrentUser {\r\n type: \"RECEIVE_CURRENT_USER\",\r\n payload: { requestTime: number, currentUser?: Api.CurrentUserModel }\r\n error?: any;\r\n}\r\n\r\ninterface RequestEditClient { type: \"REQUEST_EDIT_CLIENT\", model: Api.ClientModel, requestTime: number }\r\nexport interface ReceiveEditClient { type: \"RECEIVE_EDIT_CLIENT\", model: Api.ClientModel, requestTime: number }\r\n\r\ninterface RequestEditQuotationClientSettings {\r\n type: \"REQUEST_EDIT_QUOTATION_CLIENT_SETTINGS\",\r\n payload: { requestTime: number }\r\n}\r\nexport interface ReceiveEditQuotationClientSettings {\r\n type: \"RECEIVE_EDIT_QUOTATION_CLIENT_SETTINGS\",\r\n payload: { model: Api.QuotationClientSettingsModel, requestTime: number }\r\n error?: any;\r\n}\r\n\r\ninterface RequestEditPassword { type: \"REQUEST_EDIT_PASSWORD\", model: Api.EditPasswordModel, requestTime: number }\r\ninterface ReceiveEditPassword { type: \"RECEIVE_EDIT_PASSWORD\", requestTime: number }\r\n\r\ninterface RequestLogin { type: \"REQUEST_LOGIN\", login: Api.LoginModel, requestTime: number }\r\ninterface ReceiveLogin { type: \"RECEIVE_LOGIN\", token: Api.TokenModel, requestTime: number }\r\n\r\ninterface RequestAcceptGcu { type: \"REQUEST_ACCEPT_GCU\"; requestTime: number }\r\ninterface ReceiveAcceptGcu { type: \"RECEIVE_ACCEPT_GCU\"; requestTime: number; success: boolean }\r\n\r\ninterface SelectUserCurrency { type: \"SELECT_USER_CURRENCY\", currencyId: number }\r\ninterface SelectUserInlandCurrency { type: \"SELECT_USER_INLANDCURRENCY\", payload: { currencyId: number } }\r\nexport interface SelectApplicationLanguage { type: \"SELECT_APPLICATION_LANGUAGE\", languageId: number }\r\nexport interface Logout { type: \"LOGOUT\" }\r\n\r\ninterface RequestUpdateDefaultQuotationContact {\r\n type: \"REQUEST_UPDATE_DEFAULT_QUOTATIONCONTACT\";\r\n payload: { requestTime: number; quotationContactId: number }\r\n}\r\ninterface ReceiveUpdateDefaultQuotationContact {\r\n type: \"RECEIVE_UPDATE_DEFAULT_QUOTATIONCONTACT\";\r\n payload: { requestTime: number; quotationContactId: number };\r\n error?: any;\r\n}\r\n\r\ninterface OpenNavigationMenu {\r\n type: \"OPEN_NAVIGATION_MENU\";\r\n}\r\n\r\n\r\ninterface CloseNavigationMenu {\r\n type: \"CLOSE_NAVIGATION_MENU\";\r\n}\r\n\r\nexport type KnownAction = RequestCurrentUser\r\n | ReceiveCurrentUser\r\n | RequestLogin\r\n | ReceiveLogin\r\n | SelectUserCurrency\r\n | RequestEditClient | ReceiveEditClient\r\n | RequestEditPassword | ReceiveEditPassword\r\n | Logout | SelectApplicationLanguage\r\n | RequestAcceptGcu | ReceiveAcceptGcu\r\n | RequestUpdateDefaultQuotationContact\r\n | ReceiveUpdateDefaultQuotationContact\r\n | RequestEditQuotationClientSettings\r\n | ReceiveEditQuotationClientSettings\r\n | OpenNavigationMenu\r\n | CloseNavigationMenu\r\n | SelectUserInlandCurrency\r\n ;\r\n\r\nexport const requestCurrentUser = (requestTime: number, dispatch: (action: KnownAction) => void, getState: () => ApplicationState)\r\n : Promise => {\r\n // Only load data if it's something we don't already have (and are not already loading)\r\n if (getState().account.requestTime === requestTime)\r\n return Promise.resolve();\r\n\r\n let api = new Api.AccountApi();\r\n let fetchTask = api.getCurrentUser({ credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(data => {\r\n dispatch({\r\n type: \"RECEIVE_CURRENT_USER\",\r\n payload: { requestTime: requestTime, currentUser: data }\r\n });\r\n return connectUserHub(dispatch as any, getState);\r\n }).catch(error => {\r\n if (error.text) {\r\n error.text().then(x => {\r\n console.error(\"Error fetching current client: \" + x);\r\n });\r\n } else {\r\n console.error(\"Error fetching current client: \" + (error.message || error));\r\n }\r\n dispatch({\r\n type: \"RECEIVE_CURRENT_USER\",\r\n payload: { requestTime: requestTime },\r\n error: error\r\n });\r\n //dispatch(Notifications.error({ message: \"Error fetching current client\", title: \"Error\", position: \"tc\" }));\r\n });\r\n\r\n dispatch({ type: \"REQUEST_CURRENT_USER\", payload: { requestTime: requestTime } });\r\n return fetchTask;\r\n};\r\n\r\nexport const actionCreators = {\r\n requestCurrentUser: (requestTime: number): AppThunkAction> => (dispatch, getState) => {\r\n return requestCurrentUser(requestTime, dispatch, getState);\r\n },\r\n requestLogin: (login: Api.LoginModel, returnPath: string, requestTime: number): AppThunkAction> => (dispatch, getState) => {\r\n if (getState().account.login.requestTime === requestTime)\r\n return Promise.resolve();\r\n\r\n let api = new Api.AccountApi();\r\n let fetchTask = api.createToken({\r\n model: login\r\n }, { credentials: 'include' }).then(tokenResult => {\r\n if (tokenResult.token == null) {\r\n dispatch({ type: \"RECEIVE_LOGIN\", token: null, requestTime: requestTime });\r\n dispatch(change(\"login\", \"username\", null));\r\n dispatch(change(\"login\", \"password\", null));\r\n throw new SubmissionError({ _error: tokenResult.message } as any);\r\n } else {\r\n dispatch({ type: \"RECEIVE_LOGIN\", token: tokenResult.token, requestTime: requestTime });\r\n requestTutorial(new Date().getTime(), dispatch, getState);\r\n return requestCurrentUser(new Date().getTime(), dispatch, getState)\r\n .then(() => {\r\n return MultiPortStore.getCurrentMultiPort(new Date().getTime(), dispatch as any, getState)\r\n .catch(error => {\r\n throw error;\r\n });\r\n })\r\n .catch(error => {\r\n throw error;\r\n });\r\n }\r\n })\r\n .catch(error => {\r\n throw error;\r\n });\r\n dispatch({ type: \"REQUEST_LOGIN\", login: login, requestTime: requestTime });\r\n addTask(fetchTask);\r\n return fetchTask;\r\n },\r\n requestEditClient: (clientModel: Api.ClientModel, requestTime: number): AppThunkAction> => (dispatch, getState) => {\r\n if (requestTime === getState().account.editClient.requestTime)\r\n return new Promise((resolve, reject) => resolve());\r\n\r\n let accountApi = new Api.AccountApi();\r\n let fetchTask = accountApi.editClient({ model: clientModel },\r\n { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(data => {\r\n dispatch({ type: \"RECEIVE_EDIT_CLIENT\", model: data, requestTime: requestTime });\r\n dispatch(Notifications.success({\r\n message: getText(\"StgAccountChangesSaved\"),\r\n title: \"Success\", position: \"tc\"\r\n }) as any);\r\n }).catch(error => {\r\n dispatch({ type: \"RECEIVE_EDIT_CLIENT\", model: clientModel, requestTime: requestTime });\r\n\r\n throw new SubmissionError({ _error: \"Failed to update your account\" } as any)\r\n });\r\n addTask(fetchTask);\r\n dispatch({ type: \"REQUEST_EDIT_CLIENT\", model: clientModel, requestTime: requestTime });\r\n\r\n return fetchTask;\r\n },\r\n requestEditQuotationClientSettings: (requestTime: number, model: Api.QuotationClientSettingsModel): AppThunkAction> => (dispatch, getState) => {\r\n let accountApi = new Api.AccountApi();\r\n let fetchTask = accountApi.editQuotationClientSettings({ model: model },\r\n { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(quotationClientSettings => {\r\n dispatch({\r\n type: \"RECEIVE_EDIT_QUOTATION_CLIENT_SETTINGS\",\r\n payload: { model: quotationClientSettings, requestTime: requestTime }\r\n });\r\n dispatch(Notifications.success({\r\n message: getText(\"StgQuotationSettingsSuccess\"),\r\n title: \"Success\", position: \"tc\"\r\n }) as any);\r\n }).catch(error => {\r\n dispatch({\r\n type: \"RECEIVE_EDIT_QUOTATION_CLIENT_SETTINGS\",\r\n payload: { model: undefined, requestTime: requestTime },\r\n error: error\r\n });\r\n throw new SubmissionError({ _error: \"Failed to update your account\" } as any)\r\n });\r\n addTask(fetchTask);\r\n dispatch({\r\n type: \"REQUEST_EDIT_QUOTATION_CLIENT_SETTINGS\",\r\n payload: { requestTime: requestTime }\r\n });\r\n\r\n return fetchTask;\r\n },\r\n requestEditPassword: (editPasswordModel: Api.EditPasswordModel, requestTime: number): AppThunkAction> => (dispatch, getState) => {\r\n if (requestTime === getState().account.editPassword.requestTime)\r\n return Promise.reject('already did');\r\n\r\n let accountApi = new Api.AccountApi();\r\n let fetchTask = accountApi.editPassword({ model: editPasswordModel },\r\n { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(() => {\r\n dispatch({ type: \"RECEIVE_EDIT_PASSWORD\", requestTime: requestTime });\r\n dispatch(Notifications.success({\r\n message: getText(\"StgPasswordChangeSuccess\"),\r\n title: \"Success\", position: \"tc\"\r\n }) as any);\r\n }).catch(error => {\r\n dispatch({ type: \"RECEIVE_EDIT_PASSWORD\", requestTime: requestTime });\r\n dispatch(Notifications.error({\r\n message: \"Failed to change password\",\r\n title: \"Error\", position: \"tc\"\r\n }) as any);\r\n throw new SubmissionError({ _error: \"Failed to change password\" } as any)\r\n });\r\n addTask(fetchTask);\r\n dispatch({ type: \"REQUEST_EDIT_PASSWORD\", model: editPasswordModel, requestTime: requestTime });\r\n\r\n return fetchTask;\r\n },\r\n requestAcceptGcu: (requestTime: number): AppThunkAction => (dispatch, getState) => {\r\n if (requestTime === getState().account.acceptGcuState.requestTime)\r\n return;\r\n\r\n let accountApi = new Api.AccountApi();\r\n let fetchTask = accountApi.acceptGcu(\r\n { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(() => {\r\n dispatch({ type: \"RECEIVE_ACCEPT_GCU\", requestTime: requestTime, success: true });\r\n }).catch(error => {\r\n dispatch({ type: \"RECEIVE_ACCEPT_GCU\", requestTime: requestTime, success: false });\r\n });\r\n addTask(fetchTask);\r\n dispatch({ type: \"REQUEST_ACCEPT_GCU\", requestTime: requestTime });\r\n },\r\n selectCurrency: (currencyId: number): AppThunkAction => (dispatch, getState) => {\r\n dispatch({ type: \"SELECT_USER_CURRENCY\", currencyId: currencyId });\r\n let api = new Api.AccountApi();\r\n api.editCurrency({ currencyId: currencyId },\r\n { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) });\r\n },\r\n selectInlandCurrency: (currencyId: number): AppThunkAction => (dispatch, getState) => {\r\n dispatch({ type: \"SELECT_USER_INLANDCURRENCY\", payload: { currencyId: currencyId }});\r\n let api = new Api.AccountApi();\r\n api.editInlandCurrency({ currencyId: currencyId },\r\n { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) });\r\n },\r\n selectApplicationLanguage: (languageId: number): AppThunkAction => (dispatch, getState) => {\r\n dispatch({ type: \"SELECT_APPLICATION_LANGUAGE\", languageId: languageId });\r\n Cookies.set(\r\n languageCookie, \"c={langCode}|uic={uiLangCode}\".replace(\"{langCode}\",\r\n getState().seed.languages[languageId].code.toLowerCase())\r\n .replace(\"{uiLangCode}\",\r\n getState().seed.languages[languageId].code.toLowerCase()), {\r\n expires: Moment().add(\"year\", 1).toDate()\r\n });\r\n if (typeof window !== \"undefined\") {\r\n window.location.reload();\r\n }\r\n },\r\n openNavigationMenu: (): AppThunkAction => (dispatch, getState) => {\r\n dispatch({ type: \"OPEN_NAVIGATION_MENU\" });\r\n },\r\n closeNavigationMenu: (): AppThunkAction => (dispatch, getState) => {\r\n dispatch({ type: \"CLOSE_NAVIGATION_MENU\" });\r\n },\r\n logout: (): AppThunkAction => (dispatch, getState) => {\r\n let accountApi = new Api.AccountApi();\r\n let fetchTask = accountApi.logout({ credentials: \"same-origin\" }).then(() => {\r\n dispatch({ type: \"LOGOUT\" });\r\n }).catch((error) => {\r\n dispatch({ type: \"LOGOUT\" });\r\n dispatch(Notifications.error({ message: \"Error login out from the server\", title: \"Error\", position: \"tc\" }));\r\n });\r\n },\r\n requestUpdateDefaultQuotationContactId: (requestTime: number, value: number): AppThunkAction => (dispatch, getState) => {\r\n dispatch({ type: \"REQUEST_UPDATE_DEFAULT_QUOTATIONCONTACT\", payload: { requestTime: requestTime, quotationContactId: value } });\r\n dispatch({ type: \"RECEIVE_UPDATE_DEFAULT_QUOTATIONCONTACT\", payload: { requestTime: requestTime, quotationContactId: value } });\r\n let accountApi = new Api.AccountApi();\r\n accountApi.editDefaultQuotationContact({ defaultQuotationContactId: value },\r\n { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) });\r\n },\r\n};\r\n\r\n\r\nconst unloadedState: AccountState = {\r\n isLoading: false,\r\n isLoaded: false,\r\n isMenuOpen: false,\r\n requestTime: 0,\r\n languageId: 0,\r\n currentUser: null,\r\n login: { isLoading: false, requestTime: 0 },\r\n editClient: { isLoading: false, requestTime: 0 },\r\n editPassword: { isLoading: false, requestTime: 0 },\r\n acceptGcuState: { isLoading: false, requestTime: 0 },\r\n editQuotationClientSettings: { isLoading: false, requestTime: 0 },\r\n forgotPasswordState: { isLoading: false, requestTime: 0, email: \"\", tokenSent: false }\r\n};\r\n\r\nexport const reducer: Reducer = (state: AccountState, incomingAction: Action) => {\r\n const action = incomingAction as KnownAction;\r\n switch (action.type) {\r\n case \"REQUEST_CURRENT_USER\":\r\n return {\r\n ...state,\r\n isLoading: true,\r\n isLoaded: false,\r\n requestTime: action.payload.requestTime\r\n };\r\n case \"RECEIVE_CURRENT_USER\":\r\n if (action.payload.requestTime === state.requestTime) {\r\n return {\r\n ...state,\r\n isLoading: false,\r\n isLoaded: action.error\r\n ? state.isLoaded\r\n : true,\r\n currentUser: action.error\r\n ? state.currentUser\r\n : action.payload.currentUser\r\n };\r\n }\r\n break;\r\n case \"REQUEST_LOGIN\":\r\n return {\r\n ...state,\r\n login: {\r\n ...state.login,\r\n isLoading: true,\r\n requestTime: action.requestTime\r\n }\r\n }\r\n case \"RECEIVE_LOGIN\":\r\n if (action.requestTime !== state.login.requestTime)\r\n return state;\r\n\r\n if (action.token)\r\n {\r\n return {\r\n ...state,\r\n currentUser: {\r\n expiration: action.token.expirationDate\r\n },\r\n login: {\r\n ...state.login,\r\n isLoading: false\r\n }\r\n }\r\n }\r\n return {\r\n ...state,\r\n currentUser: { },\r\n login: {\r\n ...state.login,\r\n isLoading: false\r\n }\r\n }\r\n case 'SELECT_USER_CURRENCY':\r\n return {\r\n ...state,\r\n currentUser: {\r\n ...state.currentUser,\r\n clientModel: {\r\n ...state.currentUser.clientModel,\r\n currencyId: action.currencyId\r\n }\r\n }\r\n };\r\n case 'SELECT_USER_INLANDCURRENCY':\r\n return {\r\n ...state,\r\n currentUser: {\r\n ...state.currentUser,\r\n clientModel: {\r\n ...state.currentUser.clientModel,\r\n inlandCurrencyId: action.payload.currencyId\r\n }\r\n }\r\n };\r\n case 'REQUEST_EDIT_CLIENT':\r\n return {\r\n ...state,\r\n editClient: {\r\n ...state.editClient,\r\n isLoading: true,\r\n requestTime: action.requestTime\r\n }\r\n };\r\n case 'RECEIVE_EDIT_CLIENT':\r\n if (action.requestTime !== state.editClient.requestTime)\r\n return state;\r\n\r\n return {\r\n ...state,\r\n currentUser: {\r\n ...state.currentUser,\r\n clientModel: {\r\n ...action.model,\r\n subscriptions: state.currentUser.clientModel.subscriptions\r\n }\r\n },\r\n editClient: {\r\n ...state.editClient,\r\n isLoading: false\r\n }\r\n };\r\n case \"REQUEST_EDIT_QUOTATION_CLIENT_SETTINGS\":\r\n return {\r\n ...state,\r\n editQuotationClientSettings: {\r\n ...state.editQuotationClientSettings,\r\n requestTime: action.payload.requestTime,\r\n isLoading: true\r\n }\r\n };\r\n case \"RECEIVE_EDIT_QUOTATION_CLIENT_SETTINGS\":\r\n if (action.payload.requestTime !== state.editQuotationClientSettings.requestTime)\r\n return state;\r\n\r\n return {\r\n ...state,\r\n editQuotationClientSettings: {\r\n ...state.editQuotationClientSettings,\r\n requestTime: action.payload.requestTime,\r\n isLoading: true\r\n },\r\n currentUser: action.error\r\n ? state.currentUser\r\n : {\r\n ...state.currentUser,\r\n clientModel: {\r\n ...state.currentUser.clientModel,\r\n quotationClientSettings: {\r\n ...state.currentUser.clientModel.quotationClientSettings,\r\n ...action.payload.model\r\n }\r\n }\r\n }\r\n };\r\n case \"REQUEST_EDIT_PASSWORD\":\r\n return {\r\n ...state,\r\n editPassword: {\r\n ...state.editPassword,\r\n isLoading: true,\r\n requestTime: action.requestTime\r\n }\r\n };\r\n case \"RECEIVE_EDIT_PASSWORD\":\r\n return {\r\n ...state,\r\n editPassword: {\r\n ...state.editPassword,\r\n isLoading: false,\r\n },\r\n };\r\n case 'REQUEST_UPDATE_DEFAULT_QUOTATIONCONTACT':\r\n return {\r\n ...state,\r\n editClient: {\r\n ...state.editClient,\r\n isLoading: true,\r\n requestTime: action.payload.requestTime\r\n }\r\n };\r\n case 'RECEIVE_UPDATE_DEFAULT_QUOTATIONCONTACT':\r\n if (action.payload.requestTime !== state.editClient.requestTime)\r\n return state;\r\n\r\n return {\r\n ...state,\r\n currentUser: {\r\n ...state.currentUser,\r\n clientModel: {\r\n ...state.currentUser.clientModel,\r\n defaultQuotationContactId: action.payload.quotationContactId\r\n }\r\n },\r\n editClient: {\r\n ...state.editClient,\r\n isLoading: false\r\n }\r\n };\r\n case \"LOGOUT\":\r\n return {\r\n ...state,\r\n currentUser: {},\r\n };\r\n case \"SELECT_APPLICATION_LANGUAGE\":\r\n return {\r\n ...state,\r\n languageId: action.languageId\r\n };\r\n case \"REQUEST_ACCEPT_GCU\":\r\n return {\r\n ...state,\r\n acceptGcuState: {\r\n ...state.acceptGcuState,\r\n isLoading: true,\r\n requestTime: action.requestTime\r\n }\r\n };\r\n case \"RECEIVE_ACCEPT_GCU\":\r\n if (action.requestTime !== state.acceptGcuState.requestTime)\r\n return state;\r\n\r\n return {\r\n ...state,\r\n acceptGcuState: {\r\n ...state.acceptGcuState,\r\n isLoading: false\r\n },\r\n currentUser: {\r\n ...state.currentUser,\r\n clientModel: {\r\n ...state.currentUser.clientModel,\r\n cgu: action.success\r\n ? true\r\n : state.currentUser.clientModel.cgu\r\n }\r\n }\r\n };\r\n case \"OPEN_NAVIGATION_MENU\":\r\n return {\r\n ...state,\r\n isMenuOpen: true\r\n };\r\n case \"CLOSE_NAVIGATION_MENU\":\r\n return {\r\n ...state,\r\n isMenuOpen: false\r\n };\r\n default:\r\n // The following line guarantees that every action in the KnownAction union has been covered by a case above\r\n const exhaustiveCheck: never = action;\r\n }\r\n\r\n // For unrecognized actions (or in cases where actions have no effect), must return the existing state\r\n // (or default initial state if none was supplied)\r\n return state || unloadedState;\r\n};","export const frtId = 40;\r\n\r\nexport const roadTransportId = 202;\r\n\r\nexport const superTransitId = 1;\r\n\r\nexport const authorizationCookie = 'access_token';\r\n\r\nexport const languageCookie = \".AspNetCore.Culture\";","export const baseColors = {\r\n darkGray: \"#6F6F6E\",\r\n lightBlue: \"#00AFD5\",\r\n lightGray: \"#D4D4D3\",\r\n veryLightGray: \"#F0F0F0\",\r\n blueRaw: \"#c4ecf5\"\r\n}\r\n\r\n//TODO DELETE ALL OF THIS BELOW\r\nexport const frontColors = {\r\n color1: \"#6F6F6E\", //dark grey\r\n color2: \"#00AFD5\", //blue\r\n color3: \"#66ABD8\", //blue\r\n color4: \"#4BB375\", //green\r\n color5: \"#DA1F27\" //red\r\n};\r\n\r\n\r\nexport const bgColors = {\r\n color1: \"#FFFFFF\",\r\n color2: \"#6F6F6E\", //dark gray\r\n color3: \"#9D9D9B\", //gray\r\n color4: \"#DFDFDE\", //light gray\r\n color5: \"#0768A7\", //dark blue\r\n color6: \"#1D80C1\", //blue\r\n color7: \"#90C7EA\" //light blue\r\n}\r\n\r\nexport const quotColors = {\r\n titleColor: { backgroundColor: \"#1F4E78\", color: \"#FFFFFF\" },\r\n subTitleColor: { backgroundColor: \"#9CC3E6\", color: \"#333333\" },\r\n mainRowColor: { backgroundColor: \"#BCD6EE\", color: \"#333333\" },\r\n subRowColor: { backgroundColor: \"#D7E7F5\", color: \"#333333\" },\r\n contentRowColor: { backgroundColor: \"#FFFFFF\", color: \"#333333\" },\r\n}\r\n\r\nexport const colors = {\r\n main1: { color: frontColors.color1, backgroundColor: bgColors.color1 }, //default\r\n main2: { color: frontColors.color2, backgroundColor: bgColors.color2 }, //header\r\n main3: { color: frontColors.color3, backgroundColor: bgColors.color1 }, //prices\r\n main4: { color: frontColors.color4, backgroundColor: bgColors.color1 }, //operational\r\n main5: { color: frontColors.color5, backgroundColor: bgColors.color1 }, //warnings\r\n main6: { color: frontColors.color2, backgroundColor: bgColors.color5 }, //Table head\r\n main7: { color: frontColors.color1, backgroundColor: bgColors.color4 }, //selection criteria\r\n main8: { color: frontColors.color3, backgroundColor: bgColors.color5 }, //Some icons\r\n main9: { color: frontColors.color2, backgroundColor: bgColors.color6 }, //Btn sizeTypes\r\n}\r\n\r\nexport const revertColors = {\r\n main1: { color: colors.main1.backgroundColor, backgroundColor: colors.main1.color },\r\n main2: { color: colors.main2.backgroundColor, backgroundColor: colors.main2.color },\r\n main3: { color: colors.main3.backgroundColor, backgroundColor: colors.main3.color },\r\n main4: { color: colors.main4.backgroundColor, backgroundColor: colors.main4.color },\r\n main5: { color: colors.main5.backgroundColor, backgroundColor: colors.main5.color },\r\n main6: { color: colors.main6.backgroundColor, backgroundColor: colors.main6.color },\r\n main7: { color: colors.main7.backgroundColor, backgroundColor: colors.main7.color },\r\n}\r\n\r\n","import { styled } from '@material-ui/core/styles';\r\nimport Button from '@material-ui/core/Button';\r\nimport * as Colors from '../styles/colors';\r\n\r\nexport default styled(Button)({\r\n background: 'none',\r\n border: `1px solid ${Colors.baseColors.darkGray}`,\r\n borderRadius: 25,\r\n boxShadow: 'none',\r\n color: Colors.baseColors.lightBlue,\r\n height: 35,\r\n padding: '0px 25px',\r\n textTransform: \"none\",\r\n fontWeight: 700,\r\n MozBoxShadow: \"none\",\r\n WebkitBoxShadow: \"none\",\r\n});","import * as React from 'react';\r\nimport { connect } from 'react-redux';\r\nimport { ApplicationState } from '../store';\r\nimport * as AccountState from '../store/Account';\r\nimport * as Api from '../api/api';\r\nimport { dictionnaryToArray, getSubscription } from '../utils/utils';\r\nimport { NavLink } from 'react-router-dom';\r\nimport { getText } from '../utils/langTexts';\r\nimport Button from './Button';\r\nimport * as Colors from '../styles/colors';\r\n\r\ntype CurrentUserProps =\r\n AccountState.AccountState\r\n & CurrentUserOtherProps\r\n & typeof AccountState.actionCreators;\r\n\r\ntype CurrentUserOtherProps = {\r\n currencies: { [id: number]: Api.CurrencyModel };\r\n languages: { [id: number]: Api.LanguageModel };\r\n}\r\n\r\nclass CurrentUser extends React.Component {\r\n\r\n componentWillMount() {\r\n }\r\n\r\n get firmLogoId(): number {\r\n let subscriptions = [getSubscription(this.props.currentUser.clientModel)]\r\n .concat(this.props.currentUser.clientModel.subscriptions).filter(x => x);\r\n\r\n let subscription = subscriptions.find(x => x.subscriptionType === \"Okargo\"\r\n || x.subscriptionType === \"Agent\");\r\n\r\n if (!subscription)\r\n return null;\r\n\r\n if (subscription.subscriptionType === \"Okargo\")\r\n return subscription.agencyId;\r\n if (subscription.subscriptionType === \"Agent\")\r\n return subscription.firmId;\r\n\r\n return null;\r\n }\r\n\r\n get selectedCurrency(): Api.CurrencyModel {\r\n return dictionnaryToArray(this.props.currencies)\r\n .find(cu => cu.currencyId === this.props.currentUser.clientModel.currencyId);\r\n }\r\n\r\n public render() {\r\n return
\r\n {this.props.currentUser && this.props.currentUser.clientModel\r\n &&
\r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n {this.props.currentUser.clientModel.firstName} {this.props.currentUser.clientModel.lastName}\r\n \r\n
\r\n
\r\n {\r\n this.props.logout();\r\n e.preventDefault();\r\n }}>\r\n {getText(\"GenLogout\")}\r\n \r\n
\r\n
\r\n
}\r\n
\r\n }\r\n}\r\n\r\nexport default connect(\r\n (state: ApplicationState) => {\r\n return {\r\n ...state.account,\r\n currencies: state.seed.currencies,\r\n languages: state.seed.languages,\r\n } as any\r\n },\r\n AccountState.actionCreators\r\n)(CurrentUser) as any;","import * as React from 'react';\r\nimport { Dialog } from \"@material-ui/core\";\r\nimport { Close } from \"@material-ui/icons\";\r\nimport * as Colors from '../styles/colors';\r\n\r\ninterface DialogModalProps {\r\n style?: React.CSSProperties;\r\n contentStyle?: React.CSSProperties;\r\n contentLabel?: string;\r\n maxWidth?: \"sm\" | \"md\" | \"xs\" | \"lg\" | \"xl\" | false;\r\n fullScreen?: boolean;\r\n isOpen: boolean;\r\n hideClose?: boolean;\r\n children: any;\r\n onRequestClose: () => void;\r\n}\r\n\r\nexport default class DialogModel extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n }\r\n\r\n componentWillMount() {\r\n }\r\n\r\n public render() {\r\n return (\r\n this.props.onRequestClose()}>\r\n
\r\n this.props.onRequestClose()} />\r\n
\r\n
\r\n {this.props.children}\r\n
\r\n
\r\n );\r\n }\r\n}","import * as React from 'react';\r\nimport * as Colors from '../styles/colors';\r\nimport DialogModal from \"./DialogModal\";\r\nimport { connect } from 'react-redux';\r\nimport { ApplicationState } from '../store';\r\nimport * as Api from '../api/api';\r\nimport * as AccountStore from '../store/Account';\r\nimport { RequestState } from \"../models/models\";\r\n\r\ntype GcuDialogProps = GcuDialogOwnProps\r\n & RequestState\r\n & typeof AccountStore.actionCreators;\r\n\r\ninterface GcuDialogOwnProps {\r\n canOpen: boolean;\r\n gcuAccepted: boolean;\r\n langId: number;\r\n languages: { [id: number]: Api.LanguageModel };\r\n}\r\n\r\nclass GcuDialog extends React.Component {\r\n public render() {\r\n\r\n const isFr = this.props.languages[this.props.langId] && this.props.languages[this.props.langId].code.toLowerCase() === \"fr\" ;\r\n\r\n return ( { }}>\r\n
\r\n {isFr &&\r\n
\r\n

CONDITIONS GENERALES D'UTILISATION

\r\n

Conditions Générales d'Utilisation applicables à partir du 1er avril 2014.

\r\n

Important:

\r\n

\r\n Si vous utilisez un compte test, les prix affichés pour une compagnie maritime sont factices et sont employés uniquement à titre d'exemple. Ceci ne peut en aucun cas être considéré comme les prix pratiqués par la compagnie maritime en question qui peuvent être inférieurs ou supérieurs en réalité. En revanche, les informations opérationnelles sont réelles. De même, vous êtes soumis à l'intégralité des présentes Conditions Générales d'Utilisation y compris aux dispositions de propriété intellectuelle et de divulgation des données.\r\n

\r\n

\r\n Okargo n'est ni mandataire, ni agent, ni courtier d'affrètement. Le service proposé n'a en aucun cas pour effet de représenter l'Utilisateur auprès d'une compagnie de transport maritime.\r\n

\r\n

\r\n Okargo s'adresse à des Utilisateurs intervenant à titre professionnel, personnes physiques ou morales. En utilisant le service, vous acceptez de vous soumettre à l'ensemble des Conditions Générales d'Utilisation. Si tel n'était pas cas, ou si vous refusiez une modification ultérieure des Conditions Générales d'Utilisation des Applications web ou mobile, vous devez cesser d'utiliser le service Okargo.\r\n

\r\n

DEFINITIONS:

\r\n
\r\n Société: La société EUREKA SAS est une société par actions simplifiée au capital social de 109 960 euros, dont le siège social est situé 32 avenue André Roussin 13016 à MARSEILLE, immatriculée au Registre du commerce et des sociétés de MARSEILLE sous le numéro 793 300 419, représentée par Georges Chapus, Président.\r\n
\r\n
\r\n Okargo: désigne l'ensemble du service de comparaison de taux de fret et comprend l'Application web ainsi que l'Application mobile.\r\n
\r\n
\r\n Utilisateur ou Client: désigne la personne physique ou morale utilisant le service Okargo.\r\n
\r\n
\r\n Application web: désigne le site internet www.okargo.com accessible depuis un navigateur.\r\n
\r\n
\r\n Application mobile: l'application mobile iPhone développée par la Société disponible sur l'AppStore, et l'application Android OKARGO à venir disponible sur Google Play.\r\n
\r\n
\r\n Compagnie maritime, compagnie de transport, compagnie: la personne morale offrant le service de transport via son site internet.\r\n
\r\n
\r\n Compte test: version basée sur des prix factices permettant à l'utilisateur de tester l'Application web et/ou mobile gratuitement afin d'estimer la potentialité du service.\r\n
\r\n
\r\n Version complète: désigne le service complet Okargo comprenant les Applications web et mobile et fournissant la comparaison de taux de fret sur la base des grilles de prix transmises par l'utilisateur, pour une période indéterminée et soumise à abonnement.\r\n
\r\n
\r\n Phase d'essai: période d'essai gratuite du service Okargo s'étalant sur une durée définie dans les Conditions partiuclières et précédant la version complète.\r\n
\r\n

DESCRIPTION DES PRESTATIONS:

\r\n

\r\n Les Conditions Générales d'Utilisation gouvernent l'accès et l'usage du service Okargo, ainsi que toutes autres marques Okargo, ou section de site web incluant page Facebook ou compte Twitter.\r\n

\r\n

\r\n Okargo est un facilitateur exceptionnel de recherche de taux de fret conteneurisé. Il vous permet en quelques clics de comparer, pour un même voyage, le taux de fret entre plusieurs compagnies de transport maritime. Une fois le choix effectué par le Client, ce dernier peut recevoir un récapitulatif de son trajet sur son adresse mail et accède aux informations nécessaires pour effectuer sa réservation.\r\n

\r\n

\r\n Les liens hypertextes présents sur l'Application web et mobile intitulés « site de la compagnie », renvoient aux pages de consultation des horaires des compagnies de transport et vous font quitter le service Okargo.\r\n

\r\n

\r\n Pour l'utilisation du service Okargo, en phase d'essai ou en version complète, le Client transmet ses grilles de prix à la Société qui l'intègre dans une base de données sécurisée et accessible uniquement par ce Client. Les résultats de recherche du Client ne tiendront compte que des prix pratiqués par la compagnie maritime pour ce Client. La Société s'engage à garder ces grilles de prix confidentielles et à ne les transmettre à aucun tiers, nonobstant accord de sous-traitance comportant une clause de confidentialité. L'Utilisateur, une fois sélectionnée son offre de transport, pourra effectuer la réservation du transport en fonction de sa propre grille de prix.\r\n

\r\n

\r\n En outre, dans la version complète, le client peut avoir accès aux taux fournis par les compagnies maritimes directement à Okargo et publiés sur le site internet après accord de celles-ci. Ces taux s'afficheront dans les résultats de recherche du Client au même titre que les taux issus des grilles du Client en question. La Société et le Client s'engagent à garder ces données confidentielles et à ne les transmettre à aucun tiers, nonobstant accord de sous-traitance comportant une clause de confidentialité.\r\n

\r\n
\r\n IMPORTANT: Si vous utilisez un compte test, les prix affichés sont factices et sont employés uniquement à titre d'exemple. Ceci ne peut en aucun cas être considéré comme les prix pratiqués par la compagnie maritime en question qui peuvent être inférieurs ou supérieurs en réalité. En revanche, les informations opérationnelles sont réelles.\r\n
\r\n
\r\n De même, vous êtes soumis à l'intégralité des présentes Conditions Générales d'Utilisation y compris aux dispositions des clauses de « propriété intellectuelle » et « responsabilité de l'utilisateur ».\r\n
\r\n

ACCES AU SITE:

\r\n
\r\n Okargo a pour objectif de fournir des informations à jour et fiables aux Utilisateurs. Ceci implique que des informations pourront devenir obsolètes et que des modifications pourront intervenir à tout moment, les compagnies de transport n'étant pas liées par la recherche effectuée sur Okargo. Au moment d'effectuer sa réservation, ou en consultant le site web de la compagnie, l'Utilisateur peut ainsi voir des informations différentes ou contradictoires que celles fournies, par Okargo. En conséquence, les informations fournies par Okargo n'ont qu'un caractère indicatif et non contractuel.\r\n
\r\n
\r\n Nous conseillons à l'Utilisateur souhaitant effectuer une réservation auprès d'une compagnie via Okargo de vérifier lesdites informations au moment de sa réservation.\r\n
\r\n

\r\n De même, dans le but d'assurer la meilleure prestation possible, la Société se réserve le droit, sans préavis, de limiter et de suspendre l'accès au service Okargo, de modifier le contenu des Applications web et mobile, ainsi que les présentes Conditions Générales d'Utilisation.\r\n

\r\n

RESPONSABILITE DE OKARGO:

\r\n

\r\n La Société ne possède ni ne contrôle aucune offre de transport maritime accessible par le service Okargo. Le service fournit se limite à la comparaison des taux de fret conteneurisé pour un voyage déterminé entre deux ports à une date donnée. Okargo ne permet pas la réservation directe du transport. Il donne accès au Client à des informations nécessaires pour passer une réservation auprès de la Compagnie Maritime.\r\n

\r\n

\r\n La Société n'est pas solidaire de la compagnie de transport et n'est donc pas responsable du préjudice subi par le Client en cas de dysfonctionnement, erreurs, ou modifications effectués sur le site internet de la compagnie qui n'aurait pas encore été pris en compte par le service Okargo.\r\n

\r\n

\r\n A l'exclusion du compte test, en cas d'erreur de saisie entrainant un préjudice pour le Client, la Société et le Client s'engagent à trouver une solution amiable en suivant les dispositions de l'article intitulé « LOI APPLICABLE ET REGLEMENT DES LITIGES » ci-après.\r\n

\r\n

\r\n La Société décline toute responsabilité en cas de perte, dommage, ou virus affectant l'ordinateur de l'Utilisateur ou son contenu, en raison de l'accès à Okargo.\r\n

\r\n

\r\n De même, dans le cas de l'utilisation d'un compte test, la société décline toute responsabilité vis-à-vis d'un préjudice résultant (CITER L'ARTICLE DU CODE CIVIL SUR LA TURPITUDE).\r\n

\r\n

RESPONSABILITE DE L'UTILISATEUR:

\r\n
\r\n Le Client doit s'enregistrer sur le site internet et ouvrir un compte pour bénéficier du service Okargo.\r\n
\r\n
\r\n Il existe deux types de compte:\r\n
\r\n
    \r\n
  • Un compte test gratuit, permettant de découvrir le service sur la base de données de prix factices, afin que l'Utilisateur se fasse une idée du fonctionnement du service Okargo.
  • \r\n
  • Un compte normal accessible par abonnement, pour lequel l'Utilisateur devra fournir ses grilles de prix. Ce compte peut-être utilisé gratuitement pendant une phase d'essai.
  • \r\n
\r\n

\r\n Ces comptes sont protégés par un nom d'Utilisateur et un mot de passe qui sont strictement personnels au Client et confidentiels. Celui-ci ne peut en aucun cas les transmettre ou les communiquer à un tiers. Si tel était le cas, le Client pourrait se voir refuser l'accès au service Okargo.\r\n

\r\n

\r\n De même, il est formellement interdit au client de transférer son login et mot de passe à une compagnie de transport maritime. Ceci sera considéré comme une faute grave dans l'exécution de ses obligations contractuelles, et pourra être considéré comme une violation du droit de la Société en vertu des articles L341-1 à L342-5 du Code de la Propriété intellectuelle ainsi qu'un acte de concurrence déloyale en vertu de l'article 1382 du Code civil.\r\n

\r\n
\r\n Le Client qui ne respecterait pas ces interdictions s'exposerait à des sanctions et des poursuites en vertu de ces mêmes codes.\r\n
\r\n
\r\n Est notamment puni de trois ans d'emprisonnement et de 300 000 euros d'amende le fait de porter atteinte aux droits du producteur d'une base de données tels que définis à l'article L. 342-1.\r\n
\r\n

\r\n L'utilisation de nos services par le biais de son compte sera considérée comme étant effectuée par lui. Si le Client pense que l'intégrité de son compte a été compromise, il doit en informer le plus rapidement possible la société à l'adresse emilie@okargo.com.\r\n

\r\n

\r\n Le Client s'engage à ne transmettre à Okargo que des grilles de prix libres de tout droit et caractère confidentiel, le Client fait son affaire des autorisations nécessaires à la transmission de ces informations à Okargo. Le Client garantit donc Okargo contre tout recours fondé sur un acte de concurrence déloyale, de parasitisme, de dénigrement et d'une manière générale sur tout acte de violation de droits de propriété intellectuelle.\r\n

\r\n

\r\n Si le Client utilise l'Application mobile, celui-ci est entièrement responsable de l'installation des mises à jour de l'application, ainsi que de la mise à jour de son adresse mail et ne pourra tenir Okargo pour responsable d'un préjudice résultant d'un manquement dans ces obligations.\r\n

\r\n

PROPRIETE INTELLECTUELLE:

\r\n

\r\n La structure générale et le contenu du service Okargo (données, structuration et contenu des bases de données, codes sources, textes, logos, logiciels, images, photographies, charte graphique, design, algorithmes, etc) sont la propriété exclusive de la Société. L'adhésion aux présentes Conditions Générales d'Utilisation, la consultation des Applications web et mobile, de même que l'attribution d'identifiants (nom d'Utilisateur et mot de passe), ne constituent en aucun cas une cession de droits ou une licence de réutilisation ou de reproduction.\r\n

\r\n

\r\n Tout exploitation, extraction, réutilisation, reproduction, partielle ou totale, de l'Application web ou mobile, et/ou de la base de données, est en conséquence interdite sans l'autorisation écrite préalable de la Société et est passible de poursuites en vertu des articles L341-1 à L342-5 du Code de la Propriété intellectuelle. Est notamment puni de trois ans d'emprisonnement et de 300 000 euros d'amende le fait de porter atteinte aux droits du producteur d'une base de données tels que définis à l'article L. 342-1.\r\n

\r\n

\r\n Les logos, marques, services, et Sociétés présents sur les Applications web et mobile, sous une dénomination différente de « Okargo » appartiennent aux compagnies de transport et ne sont mentionnés qu'aux fins d'identification. De même, l'utilisation des Applications web et mobile ne vous octroie pas de licence de réutilisation ou de reproduction sur ces informations.\r\n

\r\n

LOI APPLICABLE ET REGLEMENT DES LITIGES:

\r\n

\r\n En cas de nullité d'une stipulation des présentes Conditions Générales d'Utilisation en application d'une loi ou d'un règlement, ou si un tribunal la juge non exécutoire ou sans effet légal en tout ou en partie, les autres stipulations des Conditions Générales d'Utilisation conservent leur pleine force obligatoire.\r\n

\r\n

\r\n En cas de difficulté résultant de l'utilisation du service Okargo, des Applications web ou mobile, ou de l'interprétation des présentes Conditions Générales d'Utilisation, les parties s'engagent à adresser à l'autre une lettre RAR de demande de réunion de conciliation. Dans un délai de 15 jours après réception de ladite lettre les parties devront se réunir. Les décisions, si arrêtées d'un commun accord, auront valeur contractuelle et seront constatées par écrit.\r\n

\r\n

\r\n A défaut d’avoir trouvé une solution amiable dans un délai de trente (30) jours suivant la réception de la lettre de demande de réunion de conciliation, le différend sera soumis à la médiation conformément au règlement de médiation du Centre de Médiation et d’Arbitrage de Paris (CMAP - 39, avenue F. D. Roosevelt – 75008 PARIS), règlement auquel les Parties déclarent adhérer. Sauf accord contraire entre les Parties, la durée de la médiation sera fixée au maximum à deux mois suivant la lettre recommandée de l’une des Parties déclenchant l’application du présent paragraphe. A l’issue de la médiation CMAP, si les Parties n’ont pas trouvé de solution ou d’accord sur le différend soumis, les Parties pourront agir en justice dans les conditions suivantes:\r\n

\r\n
\r\n Les présentes Conditions Générales d'Utilisation sont soumises à la loi française.\r\n
\r\n

\r\n A DEFAUT D’ACCORD AMIABLE DANS LE DELAI PREVU PRECEDEMMENT COMPETENCE EXPRESSE EST ATTRIBUEE AU TRIBUNAL DE COMMERCE DE AIX-EN-PROVENCE (SAUF COMPETENCE EXCLUSIVE RECONNUE A UNE JURIDICTION DIFFERENTE), NONOBSTANT PLURALITE DE DEFENDEURS OU APPEL EN GARANTIE, MEME POUR LES PROCEDURES D'URGENCE OU LES PROCEDURES CONSERVATOIRES EN REFERE OU PAR REQUETE, et ce, nonobstant toute clause contraire pouvant figurer sur les imprimés ou autres documents du Client.\r\n

\r\n
\r\n }\r\n { !isFr &&\r\n
\r\n

TERMS OF SERVICE

\r\n

WARNING:

\r\n

\r\n If you are using the free version of the website, please be aware that prices are not real and used only for the purpose of example.

\r\n

DEFINITIONS:

\r\n
\r\n User or client: legal entity or natural person using the website or/and the applications, freely or against payment.\r\n
\r\n
\r\n Okargo: : the web site www.okargo.com, free or paid version, and any other Okargo branded or controlled website or section of a website, or subsidiary company.\r\n
\r\n
\r\n Application: the branded iPhone application available on the App Store and the branded Android application available on Google Play.\r\n
\r\n
\r\n Shipping Company or company: the legal entity providing the transportation service through her own website.\r\n
\r\n

SERVICE:

\r\n

\r\n These terms and conditions govern your access and use of this website and any other Okargo branded and controlled website or section of a website including an Okargo Facebook page or Twitter account.\r\n

\r\n

\r\n Okargo is a global price comparison website serving professional users in shipping. It provides online comparison for costs and time between many shipping companies. When you find a deal you want, we connect you to the relevant shipping company to make a booking directly with that third party. We do not take booking ourselves or hold any details of booking or payments.\r\n

\r\n

\r\n Les liens hypertextes présents sur l'Application web et mobile intitulés « site de la compagnie », renvoient aux pages de consultation des horaires des compagnies de transport et vous font quitter le service Okargo.\r\n

\r\n

\r\n The hypertext links on our website and application connect you directly on the shipping company's online booking page. You acknowledge that clicking on the hypertext link make you leave our website or applications.\r\n

\r\n

\r\n If the client use the paying version of Okargo, he agrees to pass his prices grid to Okargo in order to be put in our database. Considering that prices are severally negotiated between our clients and the shipping companies, the search results are only based on the prices grid provided by the client. We warrant that prices grids will stay confidential and will not be communicated to third parties, notwithstanding subcontractors. Once the deal chosen by the user, we will connect him to the shipping company's booking page where he will be able to complete his booking.\r\n

\r\n
\r\n WARNING: If you are using the free version of the website, please be aware that prices are not real and used only for the purpose of example.\r\n
\r\n
\r\n By accessing or using the website and the application, you are confirming that you have read and understood these terms and conditions and have agreed to be bound by them. Okargo may amend this terms and conditions at any time at its discretion and without warning. If you do not agree to comply with these terms and conditions or any amendments to them, please stop using the website and application immediately.\r\n
\r\n

ACCESS:

\r\n
\r\n Okargo will endeavor to ensure that the content of the website and application is up-to-date and accurate. However, considering that the shipping companies are not bound by the service provided by Okargo, you acknowledge that the search results on the company's booking page may be different than the search you made on Okargo. Therefore, all information provided by Okargo is only indicative and can not be subject to contractual liability.\r\n
\r\n
\r\n We advice the user to check the results on the booking page in order to be sure that it matches the results he found on Okargo.\r\n
\r\n

\r\n In order to ensure the best service as possible, Okargo may modify the terms of use, restrict or suspend access to the website or the application at any time.\r\n

\r\n

DISCLAIMER OF LIABILITY:

\r\n

\r\n Okargo does not own or control offers made by the shipping companies. The service provided by Okargo is limited to the prices and time comparison. Okargo does not take bookings itself or hold any details of bookings or payment, it connects the client to the shipping company's booking page.\r\n

\r\n

\r\n Okargo is not jointly liable with the shipping company. Therefore, Okargo is not responsible for any malfunction, errors, or modifications, occurring on the company's website, and not yet taken into account by the service.\r\n

\r\n

\r\n In case of a data-capture error causing damage to the client, Okargo warrants to offer a free subscription during the month following the occurrence of damage / or full reimbursement of one-month subscription.\r\n

\r\n

\r\n Okargo has no responsibility whatsoever for any loss, damage, virus, or any disruptive computer program affecting the user's computer or its contents, while accessing to the service.\r\n

\r\n

RESPONSABILITE DE L'UTILISATEUR:

\r\n
\r\n In order to benefit from the service, the client must register an account.\r\n
\r\n

\r\n This account is protected by a login and a password which are strictly personal and confidential. It is strictly forbidden to communicate them to a third party. If such obligation is breached, the client will face a restriction of access to the service.\r\n

\r\n

\r\n Additionally, it is absolutely prohibited to pass or communicate your login or password to a shipping company. Such violation will be considered as a serious contractual breach, and could be prosecuted according to French law (articles L341-1 to L342-5 Code de la propriété intellectuelle and article 1382 Code civil).\r\n

\r\n
\r\n Such acts risk serious penalties, including 3 years in prison and 300 000 euros fine.\r\n
\r\n

\r\n Every use of our service via the client's account will be considered as such. However, if the client thinks his account has been hacked, he must inform immediately the publishing director.\r\n

\r\n

\r\n The user commits to passing prices grids free of copyrights and confidentiality agreements. He takes full responsibility for obtaining rights to transfer such information to Okargo. Concerning prices grids, the user warrants that Okargo will be released from any liability, such as unfair competition law, free riding, denigration, or any liability based on competition law or intellectual property rights.\r\n

\r\n

\r\n If the client uses the application, he is responsible for installing any updates, and mail address. Okargo can not be held responsible for damage arising from the client's lack of compliance.\r\n

\r\n

OKARGO'S PROPERTY:

\r\n

\r\n The general structure and every contents of the website and the application including data, data base, data structure, source codes, texts, logos, software, programs, pictures, images, corporate identity and style guide, design, algorithms, etc, are Eureka's exclusive property.Accepting these terms and conditions, accessing and using the website and the application, or possessing a login and password, do not imply a transferable licence for reuse and reproduction.\r\n

\r\n

\r\n Every utilization, extraction, partial or total reproduction, of the website, the application, or the database, is strictly forbidden without our prior written consent.\r\n

\r\n

\r\n Such acts could be considered as a violation of database owner's rights and could be prosecuted according to french law (articles L341-1 to L342-5 Code de la Propriété intellectuelle and article 1382 Code civil). Such acts risk serious penalties, including 3 years in prison and 300 000 euros fine.\r\n

\r\n

\r\n Logos, brands, services, and other companies visible on our website and applications and appearing under a different name, belong to shipping companies and are only mentioned for identification purposes.\r\n

\r\n

MISCELLANEOUS:

\r\n

\r\n Should all, or part of a clause, of the present terms of uses is declared null and void, the remaining provisions shall remain in full force and effect.\r\n

\r\n

\r\n These terms of service are subject to French law.\r\n

\r\n

\r\n In case of a difficulty arising from the use of website and the application, or arising from the interpretation of the present terms and conditions, both parties agree to reach an amicable agreement within 15 days after notification by registered letter with acknowledgement of receipt.\r\n

\r\n
\r\n If not possible, the French commercial court of Marseille (Tribunal de commerce de Marseille) will be exclusively competent, notwithstanding multiple proceedings, defendants, incidental claims, introduction of third parties, or provisional order.\r\n
\r\n
\r\n }\r\n
\r\n this.props.requestAcceptGcu(new Date().getTime())}>\r\n {this.props.langId == 2 &&\r\n Accepter\r\n }{this.props.langId != 2 &&\r\n Accept\r\n }\r\n \r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\nexport default connect((state: ApplicationState) => ({\r\n ...state.account.acceptGcuState,\r\n canOpen: !!(state.account.currentUser\r\n && state.account.currentUser.clientModel),\r\n gcuAccepted: state.account.currentUser\r\n && state.account.currentUser.clientModel\r\n && state.account.currentUser.clientModel.cgu,\r\n langId: state.account.languageId,\r\n languages: state.seed.languages\r\n} as GcuDialogProps), AccountStore.actionCreators)(GcuDialog) as any;","import * as React from 'react';\r\nimport { connect } from 'react-redux';\r\nimport Notifications from 'react-notification-system-redux';\r\nimport { ApplicationState } from '../store';\r\n\r\ntype NotificatorProps = NotificatorOwnProps;\r\n\r\ninterface NotificatorOwnProps {\r\n notifications: Array\r\n}\r\n\r\ninterface NotificatorState {\r\n\r\n}\r\n\r\nconst style = {\r\n NotificationItem: { // Override the notification item\r\n DefaultStyle: { // Applied to every notification, regardless of the notification level\r\n zIndex: 9999\r\n },\r\n success: { // Applied only to the success notification item\r\n }\r\n }\r\n};\r\n\r\nclass Notificator extends React.Component {\r\n\r\n public render() {\r\n return (\r\n \r\n );\r\n }\r\n}\r\n\r\nexport default connect((state: ApplicationState) => {\r\n return {\r\n notifications: state.notifications\r\n }\r\n}, null)(Notificator) as any","import { addTask } from \"../utils/bugFixer\";\r\nimport { Action, Reducer } from 'redux';\r\nimport * as Api from '../api/api';\r\nimport { AppThunkAction } from './';\r\nimport { getDefaultHeaders } from '../utils/utils';\r\nimport * as Notifications from 'react-notification-system-redux';\r\nimport Download from \"downloadjs\";\r\nimport * as MimeTypes from \"mime-types\";\r\nimport Moment from 'moment';\r\n\r\nexport interface DocumentState {\r\n requestTime: number;\r\n isLoading: boolean;\r\n firmDocuments: Array;\r\n downloadStates: { [id: string]: FirmDocumentDownloadState }\r\n isOpen: boolean;\r\n isHelpCenterOpen: boolean;\r\n}\r\n\r\ninterface FirmDocumentDownloadState {\r\n isLoading: boolean;\r\n requestTime: number;\r\n}\r\n\r\n// -----------------\r\n// ACTIONS - These are serializable (hence replayable) descriptions of state transitions.\r\n// They do not themselves have any side-effects; they just describe something that is going to happen.\r\n// Use @typeName and isActionType for type detection that works even after serialization/deserialization.\r\n\r\ninterface RequestFirmDocuments { type: 'REQUEST_FIRMDOCUMENTS', requestTime: number }\r\ninterface ReceiveFirmDocuments { type: 'RECEIVE_FIRMDOCUMENTS', requestTime: number, firmDocuments: Array }\r\n\r\ninterface RequestFirmDocumentDownload { type: 'REQUEST_FIRMDOCUMENT_DOWNLOAD', requestTime: number, firmDocumentId: any }\r\ninterface ReceiveFirmDocumentDownload { type: 'RECEIVE_FIRMDOCUMENT_DOWNLOAD', requestTime: number, firmDocumentId: any }\r\n\r\ninterface FirmDocumentOpen { type: 'FIRMDOCUMENT_OPEN' }\r\ninterface FirmDocumentClose { type: 'FIRMDOCUMENT_CLOSE' }\r\n\r\ninterface WorkdocumentRequestDownloadRatesDocument { type: 'WORKDOCUMENT_REQUEST_DOWNLOAD_RATES_DOCUMENT'; requestTime: number; workdocumentId: number }\r\ninterface WorkdocumentReceiveDownloadRatesDocument { type: 'WORKDOCUMENT_RECEIVE_DOWNLOAD_RATES_DOCUMENT'; requestTime: number; workdocumentId: number }\r\n\r\n\r\ninterface HelpCenterOpen { type: 'HELPCENTER_OPEN' }\r\ninterface HelpCenterClose { type: 'HELPCENTER_CLOSE' }\r\n\r\n\r\n// Declare a 'discriminated union' type. This guarantees that all references to 'type' properties contain one of the\r\n// declared type strings (and not any other arbitrary string).\r\ntype KnownAction =\r\n RequestFirmDocuments | ReceiveFirmDocuments\r\n | RequestFirmDocumentDownload\r\n | ReceiveFirmDocumentDownload\r\n | FirmDocumentOpen\r\n | FirmDocumentClose\r\n | WorkdocumentRequestDownloadRatesDocument\r\n | WorkdocumentReceiveDownloadRatesDocument\r\n | HelpCenterOpen\r\n | HelpCenterClose\r\n ;\r\n\r\n// ----------------\r\n// ACTION CREATORS - These are functions exposed to UI components that will trigger a state transition.\r\n// They don't directly mutate state, but they can have external side-effects (such as loading data).\r\n\r\nlet download = null;\r\nexport const actionCreators = {\r\n requestFirmDocuments: (requestTime: number): AppThunkAction => (dispatch, getState) => {\r\n if (requestTime === getState().document.requestTime)\r\n return;\r\n\r\n let api = new Api.DocumentApi();\r\n let fetchTask = api.getFirmDocuments(\r\n { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(firmDocuments => {\r\n dispatch({ type: \"RECEIVE_FIRMDOCUMENTS\", requestTime: requestTime, firmDocuments: firmDocuments });\r\n })\r\n .catch(error => {\r\n dispatch({ type: \"RECEIVE_FIRMDOCUMENTS\", requestTime: requestTime, firmDocuments: [] });\r\n console.log(\"Error fetching documents: \" + error.message)\r\n dispatch(Notifications.error({ message: \"Error getting your documents\", title: \"Error\", position: \"tc\" }) as any);\r\n });\r\n dispatch({ type: \"REQUEST_FIRMDOCUMENTS\", requestTime: requestTime });\r\n addTask(fetchTask);\r\n },\r\n downloadFirmDocument: (requestTime: number, firmDocumentId: number): AppThunkAction => (dispatch, getState) => {\r\n if (getState().document.downloadStates[firmDocumentId]\r\n && requestTime === getState().document.downloadStates[firmDocumentId].requestTime)\r\n return;\r\n\r\n let firmDocument = getState().document.firmDocuments.find(fd => fd.firmDocumentId === firmDocumentId);\r\n let api = new Api.DocumentApi();\r\n let fetchTask = api.downloadDocument({ firmDocumentId: firmDocumentId },\r\n { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(response => response.blob())\r\n .then(blob => {\r\n dispatch({ type: \"RECEIVE_FIRMDOCUMENT_DOWNLOAD\", requestTime: requestTime, firmDocumentId: firmDocumentId });\r\n return Download(blob,\r\n firmDocument.fileName,\r\n MimeTypes.lookup(firmDocument.fileName) || \"text/plain\")\r\n })\r\n .catch(error => {\r\n dispatch({ type: \"RECEIVE_FIRMDOCUMENT_DOWNLOAD\", requestTime: requestTime, firmDocumentId: firmDocumentId });\r\n dispatch(Notifications.error({ message: \"Error downloading your file\", title: \"Error\", position: \"tc\" }) as any);\r\n });\r\n\r\n dispatch({ type: \"REQUEST_FIRMDOCUMENT_DOWNLOAD\", requestTime: requestTime, firmDocumentId: firmDocumentId });\r\n },\r\n downloadTos: (requestTime: number, lang: string): AppThunkAction => (dispatch, getState) => {\r\n if (getState().document.downloadStates[\"tos\"]\r\n && requestTime === getState().document.downloadStates[\"tos\"].requestTime)\r\n return;\r\n\r\n let api = new Api.DownloadApi();\r\n let fetchTask = api.downloadTos({ lang: lang }, { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(response => response.blob())\r\n .then(blob => {\r\n dispatch({ type: \"RECEIVE_FIRMDOCUMENT_DOWNLOAD\", requestTime: requestTime, firmDocumentId: \"tos\" });\r\n return Download(blob,\r\n \"Okargo - TOS.pdf\",\r\n MimeTypes.lookup(\"Okargo.pdf\") || \"text/plain\")\r\n })\r\n .catch(error => {\r\n dispatch({ type: \"RECEIVE_FIRMDOCUMENT_DOWNLOAD\", requestTime: requestTime, firmDocumentId: \"tos\" });\r\n dispatch(Notifications.error({ message: \"Error downloading your file\", title: \"Error\", position: \"tc\" }) as any);\r\n });\r\n dispatch({ type: \"REQUEST_FIRMDOCUMENT_DOWNLOAD\", requestTime: requestTime, firmDocumentId: \"tos\" });\r\n },\r\n downloadGuideCrawlers: (requestTime: number, lang: string): AppThunkAction => (dispatch, getState) => {\r\n let key = \"guideCrawlers\";\r\n if (getState().document.downloadStates[key]\r\n && requestTime === getState().document.downloadStates[key].requestTime)\r\n return;\r\n\r\n let api = new Api.DownloadApi();\r\n let fetchTask = api.downloadGuideCrawlers({ lang: lang }, { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(response => response.blob())\r\n .then(blob => {\r\n dispatch({ type: \"RECEIVE_FIRMDOCUMENT_DOWNLOAD\", requestTime: requestTime, firmDocumentId: key });\r\n return Download(blob,\r\n \"SETTING UP CONNECTIONS VIA WEBCRAWLERS.pdf\",\r\n MimeTypes.lookup(\"Okargo.pdf\") || \"text/plain\")\r\n })\r\n .catch(error => {\r\n dispatch({ type: \"RECEIVE_FIRMDOCUMENT_DOWNLOAD\", requestTime: requestTime, firmDocumentId: key });\r\n dispatch(Notifications.error({ message: \"Error downloading your file\", title: \"Error\", position: \"tc\" }) as any);\r\n });\r\n dispatch({ type: \"REQUEST_FIRMDOCUMENT_DOWNLOAD\", requestTime: requestTime, firmDocumentId: key });\r\n return fetchTask;\r\n },\r\n downloadGuideQuotation: (requestTime: number): AppThunkAction => (dispatch, getState) => {\r\n let key = \"downloadGuideQuotation\";\r\n if (getState().document.downloadStates[key]\r\n && requestTime === getState().document.downloadStates[key].requestTime)\r\n return;\r\n\r\n let api = new Api.DownloadApi();\r\n let fetchTask = api.downloadGuideQuotation({ credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(response => response.blob())\r\n .then(blob => {\r\n dispatch({ type: \"RECEIVE_FIRMDOCUMENT_DOWNLOAD\", requestTime: requestTime, firmDocumentId: key });\r\n return Download(blob,\r\n \"Okargo_guide_quotation.docx\",\r\n MimeTypes.lookup(\"Okargo.pdf\") || \"text/plain\")\r\n })\r\n .catch(error => {\r\n dispatch({ type: \"RECEIVE_FIRMDOCUMENT_DOWNLOAD\", requestTime: requestTime, firmDocumentId: key });\r\n dispatch(Notifications.error({ message: \"Error downloading your file\", title: \"Error\", position: \"tc\" }) as any);\r\n });\r\n dispatch({ type: \"REQUEST_FIRMDOCUMENT_DOWNLOAD\", requestTime: requestTime, firmDocumentId: key });\r\n },\r\n downloadGuideOcq: (requestTime: number): AppThunkAction => (dispatch, getState) => {\r\n let key = \"downloadGuideQcq\";\r\n if (getState().document.downloadStates[key]\r\n && requestTime === getState().document.downloadStates[key].requestTime)\r\n return;\r\n\r\n let api = new Api.DownloadApi();\r\n let fetchTask = api.downloadGuideOcq({ lang: getState().seed.languages[getState().account.languageId].code }, { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(response => response.blob())\r\n .then(blob => {\r\n dispatch({ type: \"RECEIVE_FIRMDOCUMENT_DOWNLOAD\", requestTime: requestTime, firmDocumentId: key });\r\n return Download(blob,\r\n \"Okargo_guide_ocq.pdf\",\r\n MimeTypes.lookup(\"Okargo.pdf\") || \"text/plain\")\r\n })\r\n .catch(error => {\r\n dispatch({ type: \"RECEIVE_FIRMDOCUMENT_DOWNLOAD\", requestTime: requestTime, firmDocumentId: key });\r\n dispatch(Notifications.error({ message: \"Error downloading your file\", title: \"Error\", position: \"tc\" }) as any);\r\n });\r\n dispatch({ type: \"REQUEST_FIRMDOCUMENT_DOWNLOAD\", requestTime: requestTime, firmDocumentId: key });\r\n },\r\n downloadApp: (requestTime: number): AppThunkAction => (dispatch, getState) => {\r\n if (getState().document.downloadStates[\"app\"]\r\n && requestTime === getState().document.downloadStates[\"app\"].requestTime)\r\n return;\r\n\r\n let api = new Api.DownloadApi();\r\n let fetchTask = api.downloadApp({ credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(response => response.blob())\r\n .then(blob => {\r\n dispatch({ type: \"RECEIVE_FIRMDOCUMENT_DOWNLOAD\", requestTime: requestTime, firmDocumentId: \"app\" });\r\n return Download(blob,\r\n \"Okargo.exe\",\r\n MimeTypes.lookup(\"Okargo.exe\") || \"text/plain\")\r\n })\r\n .catch(error => {\r\n dispatch({ type: \"RECEIVE_FIRMDOCUMENT_DOWNLOAD\", requestTime: requestTime, firmDocumentId: \"app\" });\r\n dispatch(Notifications.error({ message: \"Error downloading your file\", title: \"Error\", position: \"tc\" }) as any);\r\n });\r\n dispatch({ type: \"REQUEST_FIRMDOCUMENT_DOWNLOAD\", requestTime: requestTime, firmDocumentId: \"app\" });\r\n },\r\n downloadQuickstart: (requestTime: number, lang: string): AppThunkAction => (dispatch, getState) => {\r\n if (getState().document.downloadStates[\"quickStart\"]\r\n && requestTime === getState().document.downloadStates[\"quickStart\"].requestTime)\r\n return;\r\n\r\n let api = new Api.DownloadApi();\r\n let fetchTask = api.downloadQuickstart({ lang: lang }, { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(response => response.blob())\r\n .then(blob => {\r\n dispatch({ type: \"RECEIVE_FIRMDOCUMENT_DOWNLOAD\", requestTime: requestTime, firmDocumentId: \"quickStart\" });\r\n return Download(blob,\r\n \"Okargo - QuickStart.pdf\",\r\n MimeTypes.lookup(\"Okargo - QuickStart.pdf\") || \"text/plain\")\r\n })\r\n .catch(error => {\r\n dispatch({ type: \"RECEIVE_FIRMDOCUMENT_DOWNLOAD\", requestTime: requestTime, firmDocumentId: \"quickStart\" });\r\n dispatch(Notifications.error({ message: \"Error downloading your file\", title: \"Error\", position: \"tc\" }) as any);\r\n });\r\n dispatch({ type: \"REQUEST_FIRMDOCUMENT_DOWNLOAD\", requestTime: requestTime, firmDocumentId: \"quickStart\" });\r\n },\r\n downloadChargesGlossary: (requestTime: number): AppThunkAction => (dispatch, getState) => {\r\n if (getState().document.downloadStates[\"chargesGlossary\"]\r\n && requestTime === getState().document.downloadStates[\"chargesGlossary\"].requestTime)\r\n return;\r\n\r\n let api = new Api.DownloadApi();\r\n let fetchTask = api.downloadChargesGlossary({ credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(response => response.blob())\r\n .then(blob => {\r\n dispatch({ type: \"RECEIVE_FIRMDOCUMENT_DOWNLOAD\", requestTime: requestTime, firmDocumentId: \"chargesGlossary\" });\r\n return Download(blob,\r\n \"OKARGO Charges Glossary.xlsx\",\r\n MimeTypes.lookup(\"OKARGO Charges Glossary.xlsx\") || \"text/plain\")\r\n })\r\n .catch(error => {\r\n dispatch({ type: \"RECEIVE_FIRMDOCUMENT_DOWNLOAD\", requestTime: requestTime, firmDocumentId: \"chargesGlossary\" });\r\n dispatch(Notifications.error({ message: \"Error downloading your file\", title: \"Error\", position: \"tc\" }) as any);\r\n });\r\n dispatch({ type: \"REQUEST_FIRMDOCUMENT_DOWNLOAD\", requestTime: requestTime, firmDocumentId: \"chargesGlossary\" });\r\n },\r\n downloadPortsAndZones: (requestTime: number): AppThunkAction => (dispatch, getState) => {\r\n if (getState().document.downloadStates[\"portsAndZones\"]\r\n && requestTime === getState().document.downloadStates[\"portsAndZones\"].requestTime)\r\n return;\r\n\r\n let api = new Api.DownloadApi();\r\n let fetchTask = api.downloadPortsAndZones({ credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(response => response.blob())\r\n .then(blob => {\r\n dispatch({ type: \"RECEIVE_FIRMDOCUMENT_DOWNLOAD\", requestTime: requestTime, firmDocumentId: \"portsAndZones\" });\r\n return Download(blob,\r\n \"OKARGO Ports and zones.xlsx\",\r\n MimeTypes.lookup(\"OKARGO Charges Glossary.xlsx\") || \"text/plain\")\r\n })\r\n .catch(error => {\r\n dispatch({ type: \"RECEIVE_FIRMDOCUMENT_DOWNLOAD\", requestTime: requestTime, firmDocumentId: \"portsAndZones\" });\r\n dispatch(Notifications.error({ message: \"Error downloading your file\", title: \"Error\", position: \"tc\" }) as any);\r\n });\r\n dispatch({ type: \"REQUEST_FIRMDOCUMENT_DOWNLOAD\", requestTime: requestTime, firmDocumentId: \"portsAndZones\" });\r\n },\r\n openFirmDocument: () => {\r\n type: \"FIRMDOCUMENT_OPEN\"\r\n },\r\n closeFirmDocument: () => {\r\n type: \"FIRMDOCUMENT_CLOSE\"\r\n },\r\n requestDownloadWorkdocumentDocument: (requestTime: number, workdocumentId: number): AppThunkAction => (dispatch, getState) => {\r\n\r\n let api = new Api.DocumentApi();\r\n api.downloadWorkodocumetDocument({\r\n workdocumentId: workdocumentId\r\n }, { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(response => response.blob())\r\n .then(blob => {\r\n dispatch({ type: \"WORKDOCUMENT_RECEIVE_DOWNLOAD_RATES_DOCUMENT\", workdocumentId: workdocumentId, requestTime: requestTime })\r\n let fileName = \"Okargo_Documents_\" + Moment().format(\"YYYY_MM_DD\") + \".zip\";\r\n return Download(blob,\r\n fileName,\r\n MimeTypes.lookup(fileName) || \"text/plain\");\r\n })\r\n .catch(error => {\r\n dispatch({ type: \"WORKDOCUMENT_RECEIVE_DOWNLOAD_RATES_DOCUMENT\", workdocumentId: workdocumentId, requestTime: requestTime })\r\n dispatch(Notifications.error({ message: \"Failed to download your document\", title: \"Error\", position: \"tc\" }) as any);\r\n });\r\n\r\n dispatch({ type: \"WORKDOCUMENT_REQUEST_DOWNLOAD_RATES_DOCUMENT\", workdocumentId: workdocumentId, requestTime: requestTime })\r\n },\r\n openHelpCenter: () => {\r\n type: \"HELPCENTER_OPEN\"\r\n },\r\n closeHelpCenter: () => {\r\n type: \"HELPCENTER_CLOSE\"\r\n },\r\n};\r\n// ----------------\r\n// REDUCER - For a given state and action, returns the new state. To support time travel, this must not mutate the old state.\r\n\r\n\r\nconst unloadedState: DocumentState = {\r\n isLoading: false,\r\n requestTime: 0,\r\n firmDocuments: [],\r\n downloadStates: {},\r\n isOpen: false,\r\n isHelpCenterOpen: false,\r\n};\r\n\r\nexport const reducer: Reducer = (state: DocumentState, incomingAction: Action) => {\r\n const action = incomingAction as KnownAction;\r\n switch (action.type) {\r\n case \"REQUEST_FIRMDOCUMENTS\":\r\n return {\r\n ...state,\r\n isLoading: true,\r\n requestTime: action.requestTime\r\n };\r\n case \"RECEIVE_FIRMDOCUMENTS\":\r\n if (action.requestTime !== state.requestTime)\r\n return state;\r\n\r\n return {\r\n ...state,\r\n isLoading: false,\r\n firmDocuments: action.firmDocuments\r\n };\r\n case \"REQUEST_FIRMDOCUMENT_DOWNLOAD\":\r\n return {\r\n ...state,\r\n downloadStates: {\r\n ...state.downloadStates,\r\n [action.firmDocumentId]: {\r\n ...state.downloadStates[action.firmDocumentId],\r\n isLoading: true,\r\n requestTime: action.requestTime\r\n }\r\n }\r\n };\r\n case \"RECEIVE_FIRMDOCUMENT_DOWNLOAD\":\r\n if (!state.downloadStates[action.firmDocumentId]\r\n || state.downloadStates[action.firmDocumentId].requestTime !== action.requestTime)\r\n return state;\r\n\r\n return {\r\n ...state,\r\n downloadStates: {\r\n ...state.downloadStates,\r\n [action.firmDocumentId]: {\r\n ...state.downloadStates[action.firmDocumentId],\r\n isLoading: false\r\n }\r\n }\r\n };\r\n case \"FIRMDOCUMENT_OPEN\":\r\n return {\r\n ...state,\r\n isOpen: true\r\n };\r\n case \"FIRMDOCUMENT_CLOSE\":\r\n return {\r\n ...state,\r\n isOpen: false\r\n };\r\n case \"HELPCENTER_OPEN\":\r\n return {\r\n ...state,\r\n isHelpCenterOpen: true\r\n };\r\n case \"HELPCENTER_CLOSE\":\r\n return {\r\n ...state,\r\n isHelpCenterOpen: false\r\n };\r\n case \"WORKDOCUMENT_REQUEST_DOWNLOAD_RATES_DOCUMENT\":\r\n return {\r\n ...state,\r\n downloadStates: {\r\n ...state.downloadStates,\r\n [action.workdocumentId]: {\r\n ...state.downloadStates[action.workdocumentId],\r\n isLoading: true,\r\n requestTime: action.requestTime\r\n }\r\n }\r\n };\r\n case \"WORKDOCUMENT_RECEIVE_DOWNLOAD_RATES_DOCUMENT\":\r\n if (!state.downloadStates[action.workdocumentId]\r\n || state.downloadStates[action.workdocumentId].requestTime !== action.requestTime)\r\n return state;\r\n\r\n return {\r\n ...state,\r\n downloadStates: {\r\n ...state.downloadStates,\r\n [action.workdocumentId]: {\r\n ...state.downloadStates[action.workdocumentId],\r\n isLoading: false\r\n }\r\n }\r\n };\r\n default:\r\n // The following line guarantees that every action in the KnownAction union has been covered by a case above\r\n const exhaustiveCheck: never = action;\r\n }\r\n\r\n // For unrecognized actions (or in cases where actions have no effect), must return the existing state\r\n // (or default initial state if none was supplied)\r\n return state || unloadedState;\r\n};\r\n","import * as React from \"react\";\r\nimport Paper from '@material-ui/core/Paper';\r\nimport Tabs from '@material-ui/core/Tabs';\r\n\r\ninterface CenteredTabsProps {\r\n selected: number | string;\r\n centered: boolean;\r\n onChange: (val: any) => void;\r\n}\r\n\r\nexport default class CenteredTabs extends React.Component {\r\n public render() {\r\n return (\r\n \r\n this.props.onChange(val)}\r\n indicatorColor=\"primary\"\r\n textColor=\"primary\"\r\n centered={this.props.centered}>\r\n {this.props.children}\r\n \r\n \r\n );\r\n }\r\n}","import { Action, Reducer } from 'redux';\r\n\r\nexport type TabsState = { [key: string]: TabState };\r\n\r\nexport interface TabState {\r\n selectedTab: string | number;\r\n}\r\n\r\ninterface SelectTab { type: \"SELECT_TAB\"; namespace: string; name: string | number }\r\ninterface ResetTabs { type: \"RESET_TABS\"; namespace: string; }\r\n\r\ntype KnownAction = SelectTab | ResetTabs;\r\n\r\nexport const actionCreators = {\r\n selectTab: (namespace: string, name: string | number) => { type: \"SELECT_TAB\", namespace: namespace, name: name }\r\n}\r\n\r\nconst unloadedState: TabsState = {\r\n \"ratesExtraction\": {\r\n selectedTab: \"create\"\r\n }\r\n};\r\n\r\nexport const reducer: Reducer = (state: TabsState, incomingAction: Action) => {\r\n const action = incomingAction as KnownAction;\r\n switch (action.type) {\r\n case \"SELECT_TAB\":\r\n return {\r\n ...state,\r\n [action.namespace]: {\r\n ...state[action.namespace],\r\n selectedTab: action.name\r\n }\r\n };\r\n case \"RESET_TABS\":\r\n return {\r\n ...state,\r\n [action.namespace]: {\r\n ...state[action.namespace],\r\n selectedTab: undefined\r\n }\r\n };\r\n default:\r\n // The following line guarantees that every action in the KnownAction union has been covered by a case above\r\n const exhaustiveCheck: never = action;\r\n }\r\n\r\n return state || unloadedState;\r\n};\r\n","import * as React from 'react';\r\nimport Tab from '@material-ui/core/Tab';\r\nimport CenteredTabs from \"./CenteredTabs\";\r\nimport * as TabsStore from \"../store/Tabs\";\r\nimport { ApplicationState } from \"../store\";\r\nimport { connect } from \"react-redux\";\r\nimport * as _ from 'lodash';\r\n\r\ntype CenteredContentTabsProps = TabsStore.TabsState\r\n & typeof TabsStore.actionCreators\r\n & CenteredContentTabsOwnProps\r\n & CenteredContentTabsExternalProps\r\n ;\r\n\r\ninterface CenteredContentTabsOwnProps {\r\n}\r\n\r\ninterface CenteredContentTabsExternalProps {\r\n data: {\r\n title: string;\r\n titleIcon?: JSX.Element;\r\n disabled?: boolean;\r\n tabKey?: string;\r\n tabContent: JSX.Element;\r\n }[];\r\n centered?: boolean;\r\n tabKey?: string;\r\n defaultTab?: string;\r\n}\r\n\r\ninterface CenteredContentTabsState {\r\n centered: boolean;\r\n}\r\n\r\nclass CenteredContentTabs extends React.Component {\r\n guid: string;\r\n\r\n constructor(props) {\r\n super(props);\r\n this.guid = _.uniqueId();\r\n this.state = {\r\n centered: false,\r\n };\r\n }\r\n\r\n get _centered(): boolean {\r\n return this.props.centered\r\n || this.state.centered;\r\n }\r\n\r\n get tabKey(): string {\r\n return this.props.tabKey || this.guid;\r\n }\r\n\r\n get tabState(): TabsStore.TabState {\r\n let firstNotDisabled = _.sortBy(this.props.data, x => !x.disabled)[0];\r\n return this.props[this.tabKey]\r\n || {\r\n selectedTab: firstNotDisabled.tabKey\r\n || this.props.data.indexOf(firstNotDisabled)\r\n };\r\n }\r\n\r\n render() {\r\n return (\r\n
\r\n this.props.selectTab(this.tabKey, val)}\r\n centered={this._centered}>\r\n {this.props.data.map((item, index) =>\r\n \r\n {this.props.data.map((item, index) =>\r\n \r\n )}\r\n
\r\n );\r\n }\r\n}\r\n\r\nexport default connect((state: ApplicationState) => ({ ...state.tabs } as any),\r\n TabsStore.actionCreators)(CenteredContentTabs) as any as React.ComponentClass;","import * as React from 'react';\r\nimport * as _ from 'lodash';\r\nimport { connect } from 'react-redux';\r\nimport * as Api from '../api/api';\r\nimport { ApplicationState } from '../store';\r\nimport * as Colors from \"../styles/colors\";\r\nimport * as DocumentStore from \"../store/Document\";\r\nimport { getText } from '../utils/langTexts';\r\nimport FolderIcon from '@material-ui/icons/Folder';\r\nimport DescriptionIcon from '@material-ui/icons/Description';\r\nimport CenteredContentTabs from './CenteredContentTabs';\r\nimport { getFirmName } from '../utils/utils';\r\n\r\ntype DocumentProps = DocumentOwnProps\r\n & DocumentStore.DocumentState\r\n & typeof DocumentStore.actionCreators;\r\n\r\ninterface DocumentOwnProps {\r\n carriers: { [id: number]: Api.CarrierModel };\r\n selectedTab: string\r\n}\r\n\r\nconst containerStyle = {\r\n};\r\n\r\nconst elementStyle = {\r\n cursor: \"pointer\",\r\n hover: \"yellow\",\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n alignItems: \"center\",\r\n justifyContent: \"flex-start\",\r\n fontSize: \"12px\",\r\n padding: \"40px\",\r\n \r\n} as React.CSSProperties;\r\n\r\nconst textElementStyle = {\r\n textAlign: \"center\",\r\n width: \"150px\",\r\n} as React.CSSProperties;\r\n\r\n\r\nconst folderUnclickedStyleOkargo = {\r\n height: \"100%\",\r\n flex: 1,\r\n borderColor: Colors.baseColors.darkGray,\r\n backgroundColor: \"white\",\r\n borderRadius: \"0px 15px 0px 0px\",\r\n border: `2px solid ${Colors.baseColors.darkGray}`,\r\n borderBottom: `2px solid ${Colors.baseColors.lightBlue}`,\r\n borderLeftWidth: `2px solid ${Colors.baseColors.darkGray}`,\r\n paddingBottom: \"2px\",\r\n\r\n} as React.CSSProperties;\r\n\r\nconst folderUnclickedStyle = {\r\n ...folderUnclickedStyleOkargo,\r\n borderLeft: \"none\",\r\n borderWidth: \"2px\",\r\n paddingBottom: \"2px\",\r\n borderBottomStyle: \"inset\",\r\n borderRightColor: Colors.baseColors.darkGray,\r\n\r\n} as React.CSSProperties;\r\n\r\nconst docStyle = {\r\n borderLeft: `2px solid ${Colors.baseColors.lightBlue}`,\r\n borderBottom: `2px solid ${Colors.baseColors.lightBlue}`,\r\n borderRight: `2px solid ${Colors.baseColors.lightBlue}`,\r\n borderRadius: \"0px 0px 5px 5px\",\r\n display: \"flex\",\r\n flexDirection: \"row\",\r\n alignContent: \"flex-start\",\r\n flexWrap: \"wrap\",\r\n //marginTop: \"-4px\",\r\n minHeight: 350\r\n} as React.CSSProperties;\r\n\r\nconst iconStyle = {\r\n cursor: \"pointer\",\r\n} as React.CSSProperties;\r\n\r\nclass Document extends React.Component {\r\n\r\n onPropsUpdate(props: DocumentProps) {\r\n if (new Date().getTime() - this.props.requestTime > 1000 * 60 * 10) {\r\n this.props.requestFirmDocuments(new Date().getTime());\r\n }\r\n }\r\n\r\n componentWillMount() {\r\n this.onPropsUpdate(this.props);\r\n }\r\n\r\n componentWillReceiveProps(nextProps: DocumentProps) {\r\n this.onPropsUpdate(nextProps);\r\n }\r\n public render() {\r\n return (\r\n
\r\n

My Documents

\r\n
\r\n
\r\n \r\n titleIcon: ,\r\n tabKey: \"okargo\",\r\n tabContent:
\r\n
{\r\n if (!this.props.downloadStates[\"tos\"]\r\n || !this.props.downloadStates[\"tos\"].isLoading) {\r\n this.props.downloadTos(new Date().getTime(), \"en\");\r\n }\r\n }}>\r\n \r\n
\r\n Okargo General Terms and Conditions of Sale (EN)\r\n
\r\n
\r\n\r\n
{\r\n if (!this.props.downloadStates[\"tos\"]\r\n || !this.props.downloadStates[\"tos\"].isLoading) {\r\n this.props.downloadTos(new Date().getTime(), \"fr\");\r\n }\r\n\r\n }}>\r\n \r\n
\r\n Conditions Générales de Vente (FR)\r\n
\r\n
\r\n\r\n {/*
{*/}\r\n {/* if (!this.props.downloadStates[\"quickStart\"]*/}\r\n {/* || !this.props.downloadStates[\"quickStart\"].isLoading) {*/}\r\n {/* this.props.downloadQuickstart(new Date().getTime(), \"en\");*/}\r\n {/* }*/}\r\n {/*}}>*/}\r\n {/* */}\r\n {/*
*/}\r\n {/* Quickstart guide (EN)*/}\r\n {/*
*/}\r\n {/*
*/}\r\n\r\n {/*
{*/}\r\n {/* if (!this.props.downloadStates[\"quickStart\"]*/}\r\n {/* || !this.props.downloadStates[\"quickStart\"].isLoading) {*/}\r\n {/* this.props.downloadQuickstart(new Date().getTime(), \"fr\");*/}\r\n {/* }*/}\r\n \r\n {/*}}>*/}\r\n {/* */}\r\n {/*
*/}\r\n {/* Guide de démarrage rapide (FR)*/}\r\n {/*
*/}\r\n {/*
*/}\r\n\r\n
{\r\n if (!this.props.downloadStates[\"app\"]\r\n || !this.props.downloadStates[\"app\"].isLoading) {\r\n this.props.downloadApp(new Date().getTime());\r\n }\r\n\r\n }}>\r\n \r\n
\r\n {getText(\"DocDownloadApp\")}\r\n
\r\n
\r\n\r\n {/*
{*/}\r\n {/* if (!this.props.downloadStates[\"guideCrawlers\"]*/}\r\n {/* || !this.props.downloadStates[\"guideCrawlers\"].isLoading) {*/}\r\n {/* this.props.downloadGuideCrawlers(new Date().getTime(), \"en\");*/}\r\n {/* }*/}\r\n \r\n {/*}}>*/}\r\n {/* */}\r\n {/*
*/}\r\n {/* SETTING UP CONNECTIONS VIA WEBCRAWLERS*/}\r\n {/*
*/}\r\n {/*
*/}\r\n\r\n {/*
{*/}\r\n {/* if (!this.props.downloadStates[\"guideMultiport\"]*/}\r\n {/* || !this.props.downloadStates[\"guideMultiport\"].isLoading) {*/}\r\n {/* this.props.downloadGuideMultiport(new Date().getTime(), \"fr\");*/}\r\n {/* }*/}\r\n \r\n {/*}}>*/}\r\n {/* */}\r\n {/*
*/}\r\n {/* Guide Multiport (FR)*/}\r\n {/*
*/}\r\n {/*
*/}\r\n\r\n {/*
{*/}\r\n {/* if (!this.props.downloadStates[\"downloadGuideQuotation\"]*/}\r\n {/* || !this.props.downloadStates[\"downloadGuideQuotation\"].isLoading) {*/}\r\n {/* this.props.downloadGuideQuotation(new Date().getTime());*/}\r\n {/* }*/}\r\n \r\n {/*}}>*/}\r\n {/* */}\r\n {/*
*/}\r\n {/* {getText(\"DocDownloadGuideQuotation\")}*/}\r\n {/*
*/}\r\n {/*
*/}\r\n\r\n
{\r\n if (!this.props.downloadStates[\"chargesGlossary\"]\r\n || !this.props.downloadStates[\"chargesGlossary\"].isLoading) {\r\n this.props.downloadChargesGlossary(new Date().getTime());\r\n }\r\n\r\n }}>\r\n \r\n
Charges glossary
\r\n
\r\n\r\n
{\r\n if (!this.props.downloadStates[\"portsAndZones\"]\r\n || !this.props.downloadStates[\"portsAndZones\"].isLoading) {\r\n this.props.downloadPortsAndZones(new Date().getTime());\r\n }\r\n\r\n }}>\r\n \r\n
Ports and zones
\r\n
\r\n
\r\n }\r\n ].concat(_.uniqBy(this.props.firmDocuments\r\n .filter(x => x.firmId), x => x.firmId)\r\n .map(x => ({\r\n title: getFirmName(x.firm),\r\n titleIcon: ,\r\n tabKey: `client-${x.firmId}`,\r\n tabContent:
\r\n {this.props.firmDocuments\r\n .filter(y => y.firmId === x.firmId)\r\n .map(fd =>\r\n
{\r\n if (!this.props.downloadStates[fd.firmDocumentId]\r\n || !this.props.downloadStates[fd.firmDocumentId].isLoading) {\r\n this.props.downloadFirmDocument(new Date().getTime(), fd.firmDocumentId);\r\n }\r\n\r\n }}>\r\n \r\n
\r\n {(fd.carrierId ? this.props.carriers[fd.carrierId].name + \"-\" : \"\")}{fd.name}\r\n
\r\n
\r\n )}\r\n
\r\n }))).concat(_.uniqBy(this.props.firmDocuments\r\n .filter(x => x.carrierId), x => x.carrierId)\r\n .map(x => ({\r\n title: this.props.carriers[x.carrierId].name,\r\n titleIcon: ,\r\n tabKey: `carrier-${x.carrierId}`,\r\n tabContent:
\r\n {this.props.firmDocuments\r\n .filter(y => y.carrierId === x.carrierId)\r\n .map(fd =>\r\n
{\r\n if (!this.props.downloadStates[fd.firmDocumentId]\r\n || !this.props.downloadStates[fd.firmDocumentId].isLoading) {\r\n this.props.downloadFirmDocument(new Date().getTime(), fd.firmDocumentId);\r\n }\r\n\r\n }}>\r\n \r\n
\r\n {(fd.carrierId ? this.props.carriers[fd.carrierId].name + \"-\" : \"\")}{fd.name}\r\n
\r\n
\r\n )}\r\n
\r\n })))} />\r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\nconst tabName = \"documents\";\r\n\r\nexport default connect((state: ApplicationState) => ({\r\n ...state.document,\r\n\r\n carriers: state.seed.carriers,\r\n selectedTab: state.tabs[tabName] ? state.tabs[tabName].selectedTab : \"okargo\"\r\n}),\r\n DocumentStore.actionCreators)(Document) as any","import { Action, Reducer } from 'redux';\r\nimport { AppThunkAction } from \"./\";\r\n\r\nexport type ScrollState = {\r\n scrollPosition: number;\r\n};\r\n\r\ninterface UpdateScrollPosition { type: \"UPDATE_SCROLL_POSITION\"; payload: { value: number } }\r\n\r\ntype KnownAction = UpdateScrollPosition;\r\n\r\nexport const actionCreators = {\r\n updateScrollPosition: (value: number): AppThunkAction => (dispatch, getState) => {\r\n if (getState().scroll.scrollPosition !== value) {\r\n dispatch({\r\n type: \"UPDATE_SCROLL_POSITION\", payload: { value: value }\r\n });\r\n }\r\n }\r\n}\r\n\r\nconst unloadedState: ScrollState = {\r\n scrollPosition: 0\r\n};\r\n\r\nexport const reducer: Reducer = (state: ScrollState, incomingAction: Action) => {\r\n const action = incomingAction as KnownAction;\r\n switch (action.type) {\r\n case \"UPDATE_SCROLL_POSITION\":\r\n return {\r\n ...state,\r\n scrollPosition: action.payload.value\r\n };\r\n }\r\n\r\n return state || unloadedState;\r\n};\r\n","import { Action, Reducer } from 'redux';\r\nimport * as Api from '../api/api';\r\nimport { AppThunkAction } from './';\r\n\r\nimport {getDefaultHeaders, isClient} from '../utils/utils';\r\nimport _ from \"lodash\";\r\n\r\nexport interface ErrorState {\r\n isLoading: boolean;\r\n requestTime: number;\r\n isOpen: boolean;\r\n reportSent: boolean;\r\n lastAction: Action;\r\n error: any;\r\n}\r\n\r\n//I hope i'm not going to break th website doing this\r\ninterface TriggerError {\r\n type: 'TRIGGER_ERROR';\r\n payload: { \r\n action: Action;\r\n error: any\r\n }\r\n}\r\n\r\ninterface RequestReportError { type: 'REQUEST_REPORT_ERROR'; requestTime: number; }\r\ninterface ReceiveReportError { type: 'RECEIVE_REPORT_ERROR'; requestTime: number; }\r\n\r\nexport type KnownAction = TriggerError\r\n | RequestReportError | ReceiveReportError;\r\n\r\nexport const actionCreators = {\r\n requestReportError: (requestTime: number): AppThunkAction => (dispatch, getState) => {\r\n if (requestTime === getState().error.requestTime)\r\n return;\r\n\r\n let api = new Api.LogApi();\r\n let error = getState().error.error || \"unknow\";\r\n api.logError({\r\n model: {\r\n lastAction: getState().error.lastAction,\r\n message: error,\r\n }\r\n }, { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(() => {\r\n dispatch({ type: \"RECEIVE_REPORT_ERROR\", requestTime: requestTime });\r\n })\r\n .catch(error => {\r\n dispatch({ type: \"RECEIVE_REPORT_ERROR\", requestTime: requestTime });\r\n console.error(\"Could not send error report: \" + error.message);\r\n });\r\n\r\n dispatch({ type: \"REQUEST_REPORT_ERROR\", requestTime: requestTime });\r\n },\r\n triggerError: (error: any, errorInfo: any) => {\r\n console.error(error);\r\n console.error(errorInfo);\r\n\r\n let action = null;\r\n let errorParsed = error.message\r\n ? error.message\r\n : (typeof error === \"string\" ? error : JSON.stringify(error));\r\n if(isClient()){\r\n action = _.sortBy(((window as any).actionLog?.getLog().actions || [] as Array<{\r\n action: {\r\n type: string\r\n },\r\n timestamp: number\r\n }>), x => -x.timestamp)[0];\r\n }\r\n \r\n return {\r\n type: \"TRIGGER_ERROR\",\r\n payload: { action: action?.action, error: errorParsed }\r\n } as TriggerError\r\n }\r\n};\r\n\r\nconst unloadedState: ErrorState = {\r\n isLoading: false,\r\n requestTime: 0,\r\n isOpen: false,\r\n reportSent: false,\r\n lastAction: null,\r\n error: null\r\n};\r\n\r\nexport const reducer: Reducer = (state: ErrorState, incomingAction: Action) => {\r\n const action = incomingAction as KnownAction;\r\n switch (action.type) {\r\n case \"TRIGGER_ERROR\":\r\n return {\r\n ...state,\r\n reportSent: false,\r\n isOpen: true,\r\n lastAction: action.payload.action,\r\n error: action.payload.error\r\n };\r\n case \"REQUEST_REPORT_ERROR\":\r\n return {\r\n ...state,\r\n isLoading: true,\r\n requestTime: action.requestTime\r\n };\r\n case \"RECEIVE_REPORT_ERROR\":\r\n if (action.requestTime !== state.requestTime)\r\n return state;\r\n\r\n return {\r\n ...state,\r\n isLoading: false,\r\n reportSent: true\r\n };\r\n default:\r\n // The following line guarantees that every action in the KnownAction union has been covered by a case above\r\n const exhaustiveCheck: never = action;\r\n }\r\n\r\n // For unrecognized actions (or in cases where actions have no effect), must return the existing state\r\n // (or default initial state if none was supplied)\r\n return state || unloadedState;\r\n};","import { addTask } from \"../utils/bugFixer\";\r\nimport { Action, Reducer } from \"redux\";\r\nimport * as Api from \"../api/api\";\r\nimport { AppThunkAction } from \"./\";\r\nimport { getDefaultHeaders, getPort } from \"../utils/utils\";\r\nimport { ReceiveSelection } from \"./Selection\";\r\n\r\nexport interface CarrierRatesPlatformState {\r\n status: {\r\n isOpen: boolean;\r\n isLoading: boolean;\r\n requestTime?: number;\r\n statusSearch: {\r\n originPort?: Api.LocationModel,\r\n destinationPort?: Api.LocationModel\r\n };\r\n currentStatusSearch?: Api.CarrierRatesPlatformsStatusModel;\r\n carrierRatesPlatforms: Array;\r\n }\r\n}\r\n\r\ninterface RequestCarrierRatesPlatformStatus {\r\n type: \"REQUEST_CARRIERRATESPLATFORM_STATUS\";\r\n payload: { requestTime: number };\r\n}\r\ninterface ReceiveCarrierRatesPlatformStatus {\r\n type: \"RECEIVE_CARRIERRATESPLATFORM_STATUS\";\r\n payload: {\r\n requestTime: number;\r\n currentStatusSearch: Api.CarrierRatesPlatformsStatusModel;\r\n entities?: Array\r\n };\r\n error?: any;\r\n}\r\n\r\ninterface CarrierRatesPlatformUpdateOrigin {\r\n type: \"CARRIERRATESPLATFORM_UPDATE_ORIGIN\";\r\n payload: {\r\n value: Api.LocationModel;\r\n }\r\n}\r\ninterface CarrierRatesPlatformUpdateDestination {\r\n type: \"CARRIERRATESPLATFORM_UPDATE_DESTINATION\";\r\n payload: {\r\n value: Api.LocationModel;\r\n }\r\n}\r\n\r\ninterface OpenCarrierRatesPlatformStatus {\r\n type: \"OPEN_CARRIERRATESPLATFORMSTATUS\"\r\n}\r\ninterface CloseCarrierRatesPlatformStatus {\r\n type: \"CLOSE_CARRIERRATESPLATFORMSTATUS\"\r\n}\r\n\r\nexport type KnownAction = RequestCarrierRatesPlatformStatus\r\n | ReceiveCarrierRatesPlatformStatus\r\n | OpenCarrierRatesPlatformStatus\r\n | CloseCarrierRatesPlatformStatus\r\n | CarrierRatesPlatformUpdateOrigin\r\n | CarrierRatesPlatformUpdateDestination\r\n | ReceiveSelection\r\n ;\r\n\r\nexport const actionCreators = {\r\n requestCarrierRatesPlatform: (requestTime: number): AppThunkAction> => (dispatch, getState) => {\r\n let api = new Api.RatesFetcherApi();\r\n let model = {\r\n originPortId: getState().carrierRatesPlatform.status.statusSearch.originPort.locationId,\r\n destinationPortId: getState().carrierRatesPlatform.status.statusSearch.destinationPort.locationId,\r\n };\r\n let fetch = api.carrierRatesPlatformsStatus({\r\n model: model\r\n }, { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(entities => {\r\n dispatch({\r\n type: \"RECEIVE_CARRIERRATESPLATFORM_STATUS\",\r\n payload: {\r\n requestTime: requestTime,\r\n entities: entities,\r\n currentStatusSearch: model\r\n }\r\n });\r\n })\r\n .catch(err => {\r\n dispatch({\r\n type: \"RECEIVE_CARRIERRATESPLATFORM_STATUS\",\r\n payload: {\r\n requestTime: requestTime,\r\n currentStatusSearch: model\r\n },\r\n error: err\r\n });\r\n });\r\n\r\n dispatch({\r\n type: \"REQUEST_CARRIERRATESPLATFORM_STATUS\",\r\n payload: { requestTime: requestTime }\r\n });\r\n addTask(fetch);\r\n return fetch;\r\n },\r\n openCarrierRatesPlatformStatus: () => { type: \"OPEN_CARRIERRATESPLATFORMSTATUS\" },\r\n closeCarrierRatesPlatformStatus: () => { type: \"CLOSE_CARRIERRATESPLATFORMSTATUS\" },\r\n updateCarrierRatesPlatformOrigin: (value: Api.LocationModel) => {\r\n type: \"CARRIERRATESPLATFORM_UPDATE_ORIGIN\", payload: { value: value }\r\n },\r\n updateCarrierRatesPlatformDestination: (value: Api.LocationModel) => {\r\n type: \"CARRIERRATESPLATFORM_UPDATE_DESTINATION\", payload: { value: value }\r\n },\r\n};\r\n\r\n\r\nconst unloadedState: CarrierRatesPlatformState = {\r\n status: {\r\n isOpen: false,\r\n isLoading: false,\r\n carrierRatesPlatforms: [],\r\n statusSearch: {}\r\n }\r\n};\r\n\r\n\r\nexport const reducer: Reducer = (state: CarrierRatesPlatformState, incomingAction: Action) => {\r\n const action = incomingAction as KnownAction;\r\n switch (action.type) {\r\n case \"REQUEST_CARRIERRATESPLATFORM_STATUS\":\r\n return {\r\n ...state,\r\n status: {\r\n ...state.status,\r\n isLoading: true,\r\n requestTime: action.payload.requestTime\r\n }\r\n };\r\n case \"RECEIVE_CARRIERRATESPLATFORM_STATUS\":\r\n if (state.status.requestTime !== action.payload.requestTime)\r\n return state;\r\n\r\n return {\r\n ...state,\r\n status: {\r\n ...state.status,\r\n isLoading: false,\r\n carrierRatesPlatforms: action.payload.entities,\r\n currentStatusSearch: action.payload.currentStatusSearch\r\n }\r\n };\r\n case \"OPEN_CARRIERRATESPLATFORMSTATUS\":\r\n return {\r\n ...state,\r\n status: {\r\n ...state.status,\r\n isOpen: true\r\n }\r\n };\r\n case \"CLOSE_CARRIERRATESPLATFORMSTATUS\":\r\n return {\r\n ...state,\r\n status: {\r\n ...state.status,\r\n isOpen: false\r\n }\r\n };\r\n case \"CARRIERRATESPLATFORM_UPDATE_ORIGIN\":\r\n return {\r\n ...state,\r\n status: {\r\n ...state.status,\r\n statusSearch: {\r\n ...state.status.statusSearch,\r\n originPort: action.payload.value\r\n }\r\n }\r\n };\r\n case \"CARRIERRATESPLATFORM_UPDATE_DESTINATION\":\r\n return {\r\n ...state,\r\n status: {\r\n ...state.status,\r\n statusSearch: {\r\n ...state.status.statusSearch,\r\n destinationPort: action.payload.value\r\n }\r\n }\r\n };\r\n case \"RECEIVE_SELECTION\":\r\n return {\r\n ...state,\r\n status: {\r\n ...state.status,\r\n statusSearch: {\r\n ...state.status.statusSearch,\r\n originPort: getPort(action.payload.criteria.origin),\r\n destinationPort: getPort(action.payload.criteria.destination)\r\n }\r\n }\r\n }\r\n default:\r\n // The following line guarantees that every action in the KnownAction union has been covered by a case above\r\n const exhaustiveCheck: never = action;\r\n }\r\n\r\n // For unrecognized actions (or in cases where actions have no effect), must return the existing state\r\n // (or default initial state if none was supplied)\r\n return state || unloadedState;\r\n};","import { frtId, roadTransportId } from './constants';\r\nimport * as Api from '../api/api';\r\nimport { getChargeAmount } from '../utils/utils';\r\nimport * as _ from 'lodash';\r\n\r\ninterface ChargeSet {\r\n charges?: Array;\r\n}\r\n\r\ninterface Criteria {\r\n loadingCharge?: boolean;\r\n unLoadingCharge?: boolean;\r\n prepaidCharge?: boolean;\r\n collectCharge?: boolean;\r\n criteriaSizeTypes?: Array;\r\n chargeCriterias?: Array;\r\n type?: Api.CriteriaModelTypeEnum;\r\n cbm?: number;\r\n ton?: number;\r\n}\r\n\r\n\r\nexport function matchExactChriteria(chargeCriteria: Api.ChargeModelCriteriaEnum[], searchValues: Api.ChargeModelCriteriaEnum[]): boolean {\r\n\r\n if (searchValues.length !== chargeCriteria.length) {\r\n return false;\r\n }\r\n\r\n return searchValues.every(i => chargeCriteria.includes(i));\r\n}\r\n\r\n\r\nexport class RatesCalculator {\r\n private mainchargeIds: Array;\r\n public criteria: Criteria;\r\n public currencies: { [id: number]: Api.CurrencyModel };\r\n public sizeTypes: { [id: number]: Api.SizeTypeModel };\r\n\r\n constructor(\r\n currencies: { [id: number]: Api.CurrencyModel },\r\n sizeTypes: { [id: number]: Api.SizeTypeModel },\r\n criteria: Criteria) {\r\n\r\n this.mainchargeIds = [frtId, roadTransportId];\r\n this.criteria = criteria;\r\n this.currencies = currencies;\r\n this.sizeTypes = sizeTypes;\r\n }\r\n\r\n private chargeMatchUnit(charge: Api.ChargeModel, sizeTypeId?: number): boolean {\r\n return charge.unit !== \"Bl\" && ((this.criteria.type === \"Fcl\"\r\n && (charge.unit === \"Ctr\"\r\n || charge.unit === \"Teu\"\r\n || charge.sizeTypeId === sizeTypeId)\r\n && (!charge.containerType || (sizeTypeId && charge.containerType === this.sizeTypes[sizeTypeId].type)))\r\n || (this.criteria.type === \"Lcl\"\r\n && (charge.unit === \"Cbm\"\r\n || charge.unit === \"Ton\"\r\n || charge.unit === \"Wm\")));\r\n }\r\n\r\n private convertToKgs(weight: number, type: Api.CriteriaSizeTypeModelWeightUnitEnum) {\r\n if (type == \"Ton\") {\r\n return weight * 1000;\r\n }\r\n return weight;\r\n }\r\n\r\n private chargeMatchWeight(criteriaSize: Api.CriteriaSizeTypeModel, charge: Api.ChargeModel, chargeSet:Api.ChargeSetModel): boolean {\r\n if (charge.minWeight !== null || charge.maxWeight !== null) {\r\n\r\n if (criteriaSize != null && criteriaSize.weight >= 0) {\r\n var criteriaKgs = this.convertToKgs(criteriaSize.weight, criteriaSize.weightUnit);\r\n if (chargeSet.flags.some(x => x == \"WithTare\")) {\r\n var size = this.sizeTypes[criteriaSize.sizeTypeId];\r\n criteriaKgs = criteriaKgs + size.tare;\r\n }\r\n\r\n if (charge.minWeight !== null && criteriaKgs < charge.minWeight) {\r\n return false;\r\n }\r\n if (charge.maxWeight !== null && charge.maxWeight <= criteriaKgs) {\r\n return false;\r\n }\r\n\r\n }\r\n }\r\n\r\n return true;\r\n\r\n }\r\n\r\n private chargeIsSelected(charge: Api.ChargeModel): boolean {\r\n return (this.criteria.loadingCharge || charge.application !== \"Origin\")\r\n && (this.criteria.unLoadingCharge || charge.application !== \"Destination\")\r\n && (this.criteria.prepaidCharge !== false || charge.paymentOption !== \"Prepaid\")\r\n && (this.criteria.collectCharge !== false || charge.paymentOption !== \"Collect\")\r\n ;\r\n }\r\n\r\n private getLclUnit(charge: Api.ChargeModel): number {\r\n if (charge.unit === \"Cbm\")\r\n return this.criteria.cbm;\r\n if (charge.unit === \"Ton\")\r\n return this.criteria.ton;\r\n\r\n return Math.max(this.criteria.cbm, this.criteria.ton);\r\n }\r\n\r\n\r\n public findChargesToApplybySizeId(\r\n chargeSet: ChargeSet,\r\n sizeTypeId?: number,\r\n application: Api.ChargeModelApplicationEnum = null,\r\n chargeModifications: Array = []): Array {\r\n let dummySize: Api.CriteriaSizeTypeModel = {\r\n sizeTypeId: sizeTypeId\r\n }\r\n return this.findChargesToApply(chargeSet, dummySize, application, chargeModifications);\r\n }\r\n\r\n\r\n public findChargesToApply(\r\n chargeSet: ChargeSet,\r\n sizeType: Api.CriteriaSizeTypeModel,\r\n application: Api.ChargeModelApplicationEnum = null,\r\n chargeModifications: Array = []): Array {\r\n\r\n\r\n\r\n\r\n let charges = this.findChargeSetCharges(chargeSet, chargeModifications);\r\n let frts = charges.filter(ch => ch.chargeType === \"Value\"\r\n && this.chargeMatchUnit(ch, sizeType?.sizeTypeId)\r\n && this.chargeMatchWeight(sizeType, ch, chargeSet)\r\n && (application === null || ch.application === application)\r\n && this.mainchargeIds.some(x => ch.chargeNameId === x)\r\n && (this.criteria.type === \"Lcl\" || ((!this.criteria.chargeCriterias\r\n || this.criteria.chargeCriterias.length === 0)\r\n && !ch.criteria)\r\n || matchExactChriteria(ch.criteria, this.criteria.chargeCriterias)));\r\n\r\n\r\n if (application === null && frts.length === 0)\r\n return [];\r\n\r\n\r\n\r\n let surCharges = charges.filter(ch => ch.chargeType === \"Value\"\r\n && this.chargeMatchUnit(ch, sizeType?.sizeTypeId)\r\n && this.chargeMatchWeight(sizeType, ch, chargeSet)\r\n && this.chargeIsSelected(ch)\r\n && (application === null || ch.application === application)\r\n && !this.mainchargeIds.some(x => ch.chargeNameId === x)\r\n && (!ch.criteria || ch.criteria.length === 0 || (this.criteria.chargeCriterias && matchExactChriteria(ch.criteria, this.criteria.chargeCriterias))));\r\n \r\n let valueCharges = application\r\n ? this.findChargesToApply(chargeSet, sizeType, null, chargeModifications)\r\n .filter(x => x.chargeType === \"Value\")\r\n : frts.concat(surCharges);\r\n\r\n surCharges = surCharges.concat(charges.filter(ch => ch.chargeType === \"Source\"\r\n && this.chargeMatchUnit(ch, sizeType?.sizeTypeId)\r\n && this.chargeMatchWeight(sizeType, ch, chargeSet)\r\n && this.chargeIsSelected(ch)\r\n && (application === null\r\n || ch.application === application)\r\n && (!ch.criteria || ch.criteria.length === 0\r\n || (this.criteria.chargeCriterias\r\n && matchExactChriteria(ch.criteria, this.criteria.chargeCriterias)))\r\n && valueCharges.some(och => och.chargeNameId === ch.sourceChargeNameId)));\r\n\r\n\r\n if (this.criteria.chargeCriterias && this.criteria.chargeCriterias.length > 0) {\r\n var chargeNamesIdsWithExactCriteria = charges.filter(ch => !this.mainchargeIds.some(x => ch.chargeNameId === x) && matchExactChriteria(ch.criteria, this.criteria.chargeCriterias)).map(ch => ch.chargeNameId);;\r\n\r\n surCharges = surCharges.filter(ch => (chargeNamesIdsWithExactCriteria.some(id => id == ch.chargeNameId) && matchExactChriteria(ch.criteria, this.criteria.chargeCriterias)) ||\r\n !chargeNamesIdsWithExactCriteria.some(id => id == ch.chargeNameId));\r\n }\r\n\r\n let chargesToApply = this.getModifiedCharges(chargeSet, frts.concat(surCharges), chargeModifications);\r\n\r\n if (this.criteria.type === \"Lcl\") {\r\n return _.map(_.groupBy(\r\n chargesToApply, x => x.chargeNameId.toString()),\r\n xs => _.sortBy(xs, x => getChargeAmount(x, this.getLclUnit(x))).reverse()[0]);\r\n }\r\n\r\n return chargesToApply;\r\n }\r\n\r\n public findBlChargesToApply(\r\n chargeSet: ChargeSet,\r\n application: Api.ChargeModelApplicationEnum = null,\r\n chargeModifications: Array = []): Array {\r\n let charges = this.findChargeSetCharges(chargeSet, chargeModifications);\r\n let surCharges = charges.filter(ch => ch.chargeType === \"Value\"\r\n && (ch.unit === \"Bl\" || ch.unit === \"Decl\")\r\n && this.chargeIsSelected(ch)\r\n && (application === null || ch.application === application)\r\n && !this.mainchargeIds.some(x => ch.chargeNameId === x)\r\n && (!ch.criteria || ch.criteria.length === 0 || (this.criteria.chargeCriterias && matchExactChriteria(ch.criteria, this.criteria.chargeCriterias))));\r\n\r\n let valueCharges = application\r\n ? this.findBlChargesToApply(chargeSet, null, chargeModifications)\r\n .filter(x => x.chargeType === \"Value\")\r\n : surCharges;\r\n\r\n surCharges = surCharges.concat(charges.filter(ch => ch.chargeType === \"Source\"\r\n && (ch.unit === \"Bl\" || ch.unit === \"Decl\")\r\n && this.chargeIsSelected(ch)\r\n && (application === null || ch.application === application) &&\r\n (!ch.criteria || ch.criteria.length === 0 || (this.criteria.chargeCriterias && matchExactChriteria(ch.criteria, this.criteria.chargeCriterias))) &&\r\n (valueCharges.some(och => och.chargeNameId === ch.sourceChargeNameId)\r\n || this.mainchargeIds.some(x => ch.chargeNameId === x))));\r\n\r\n if (this.criteria.chargeCriterias && this.criteria.chargeCriterias.length > 0) {\r\n var chargeNamesIdsWithExactCriteria = charges.filter(ch => !this.mainchargeIds.some(x => ch.chargeNameId === x) && matchExactChriteria(ch.criteria, this.criteria.chargeCriterias)).map(ch => ch.chargeNameId);;\r\n\r\n surCharges = surCharges.filter(ch => (chargeNamesIdsWithExactCriteria.some(id => id == ch.chargeNameId) && matchExactChriteria(ch.criteria, this.criteria.chargeCriterias)) || !chargeNamesIdsWithExactCriteria.some(id => id == ch.chargeNameId));\r\n }\r\n\r\n\r\n return this.getModifiedCharges(chargeSet, surCharges, chargeModifications);\r\n }\r\n\r\n private findChargeSetCharges(\r\n chargeSet: ChargeSet,\r\n chargeModifications: Array = [])\r\n : Array {\r\n return chargeSet.charges.filter(\r\n ch => !chargeModifications.some(cm =>\r\n cm.chargeNameId === ch.chargeNameId\r\n && (!cm.application || cm.application === ch.application)\r\n && cm.modificationType === \"Exclude\"))\r\n .concat(chargeModifications\r\n .filter(cm => cm.modificationType === \"Add\")\r\n .map(cm => ({\r\n name: cm.name,\r\n amount: cm.amount,\r\n application: cm.application,\r\n unit: cm.unit,\r\n criteria: [cm.criteria],\r\n currencyId: cm.currencyId,\r\n chargeType: \"Value\",\r\n sizeTypeId: cm.sizeTypeId\r\n } as Api.ChargeModel)));\r\n }\r\n\r\n private getModifiedCharges(\r\n chargeSet: ChargeSet,\r\n charges: Array,\r\n chargeModifications: Array = [])\r\n : Array {\r\n let modifiedCharges = charges.map(ch => {\r\n let appliedChargeModifications = chargeModifications.filter(cm =>\r\n cm.chargeNameId === ch.chargeNameId\r\n && (!cm.originalChargeId || cm.originalChargeId === ch.chargeId) //podpoara pre level na charge\r\n && (!cm.application || cm.application === ch.application)\r\n && (!ch.sizeTypeId || ch.sizeTypeId === cm.sizeTypeId)\r\n && ((cm.modificationType === \"AddAmount\" && ch.chargeType === \"Value\")\r\n || cm.modificationType === \"ReplaceAmount\"\r\n || cm.modificationType === \"ReplaceAsMargin\"));\r\n\r\n if (appliedChargeModifications.length === 0)\r\n return ch;\r\n\r\n let modificationToApply = appliedChargeModifications[0];\r\n if (modificationToApply.modificationType === \"AddAmount\")\r\n return {\r\n ...ch,\r\n amount: ch.amount + modificationToApply.amount,\r\n } as Api.ChargeModel;\r\n else if (modificationToApply.modificationType === \"ReplaceAmount\")\r\n return {\r\n ...ch,\r\n amount: modificationToApply.amount,\r\n currencyId: modificationToApply.currencyId\r\n || ch.currencyId,\r\n chargeType: \"Value\"\r\n } as Api.ChargeModel;\r\n else if (modificationToApply.modificationType === \"ReplaceAsMargin\")\r\n return {\r\n ...ch,\r\n amount: ch.amount,\r\n margin: modificationToApply.amount - ch.amount,\r\n currencyId: modificationToApply.currencyId\r\n || ch.currencyId,\r\n chargeType: \"Value\"\r\n } as Api.ChargeModel & { margin?: number };\r\n });\r\n\r\n return modifiedCharges.map(ch => {\r\n //We set the currency for percentage charges that become values\r\n if (!ch.currencyId\r\n && ch.sourceChargeNameId) {\r\n //Try to get modified charge first which seems more logical\r\n let sourceCharge = _.sortBy(modifiedCharges\r\n .filter(x => x.chargeNameId === ch.sourceChargeNameId\r\n && x.chargeType === \"Value\"),\r\n x => x.sizeTypeId === ch.sizeTypeId).reverse()[0]\r\n || this.findChargesToApplybySizeId(chargeSet, ch.sizeTypeId, null, [])\r\n .find(x => x.chargeNameId === ch.sourceChargeNameId\r\n && x.chargeType === \"Value\")\r\n || chargeSet.charges.find(x => x.chargeNameId === ch.sourceChargeNameId\r\n && x.chargeType === \"Value\");\r\n return {\r\n ...ch,\r\n currencyId: sourceCharge.currencyId\r\n };\r\n }\r\n\r\n return ch;\r\n });\r\n }\r\n\r\n public calculatePrice(charges: Array, teu: number): CurrencyResultSet {\r\n let currencyResultSet = new CurrencyResultSet();\r\n\r\n charges\r\n .filter(ch => ch.chargeType === \"Value\")\r\n .forEach(ch => {\r\n currencyResultSet.add(new CurrencyResult(this.currencies[ch.currencyId],\r\n getChargeAmount(ch, this.criteria.type === \"Lcl\"\r\n ? this.getLclUnit(ch)\r\n : teu),\r\n ch.margin\r\n ? (ch.margin * (ch.unit === \"Teu\" ? teu : 1))\r\n : 0));\r\n });\r\n //Percentage charges\r\n charges.filter(ch => ch.chargeType === \"Source\" && ch.type === \"Percentage\").forEach(ch => {\r\n let source = charges.find(och => och.chargeType === \"Value\"\r\n && och.chargeNameId === ch.sourceChargeNameId);\r\n if (source) {\r\n currencyResultSet.add(new CurrencyResult(this.currencies[source.currencyId],\r\n getChargeAmount(source, teu) * ch.amount,\r\n ch.margin\r\n ? (ch.margin * (ch.unit === \"Teu\" ? teu : 1))\r\n : 0));\r\n }\r\n });\r\n\r\n return currencyResultSet;\r\n }\r\n\r\n public calculateAllIn(chargeSet: ChargeSet,\r\n chargeModifications: Array = []): CurrencyResultSet {\r\n let currencyResultSet = new CurrencyResultSet();\r\n if (this.criteria.type === \"Fcl\") {\r\n this.criteria.criteriaSizeTypes\r\n .filter(cst => cst.number > 0)\r\n .forEach(cst => {\r\n currencyResultSet.addSet(\r\n this.calculatePrice(this.findChargesToApply(chargeSet, cst, null, chargeModifications), this.sizeTypes[cst.sizeTypeId].teu),\r\n cst.number);\r\n });\r\n } else {\r\n currencyResultSet.addSet(\r\n this.calculatePrice(this.findChargesToApply(chargeSet, null, null, chargeModifications), 1),\r\n 1);\r\n }\r\n\r\n currencyResultSet.addSet(\r\n this.calculatePrice(this.findBlChargesToApply(chargeSet, null, chargeModifications), 1));\r\n return currencyResultSet;\r\n }\r\n}\r\n\r\nexport interface ChargeModification {\r\n currencyId?: number;\r\n chargeNameId?: number;\r\n sizeTypeId?: number;\r\n modificationType: ChargemodificationType;\r\n amount?: number;\r\n name?: string;\r\n level?: number;\r\n originalChargeId?: number;\r\n application?: Api.ChargeAgentModelApplicationEnum;\r\n unit?: Api.ChargeAgentModelUnitEnum;\r\n criteria?: Api.ChargeAgentModelCriteriaEnum;\r\n}\r\n\r\ntype ChargemodificationType = \"AddAmount\" | \"Exclude\" | \"ReplaceAmount\" | \"Add\" | \"ReplaceAsMargin\";\r\n\r\nexport class CurrencyResultSet {\r\n constructor() {\r\n this.currencyResults = [];\r\n }\r\n\r\n public currencyResults: Array;\r\n\r\n public add(currencyResult: CurrencyResult, mult: number = 1) {\r\n for (let i = 0; i < mult; i++) {\r\n var existingCr =\r\n this.currencyResults\r\n .find(cr => cr.currency.currencyId == currencyResult.currency.currencyId);\r\n if (existingCr != null) {\r\n existingCr.add(currencyResult);\r\n }\r\n else {\r\n this.currencyResults.push(new CurrencyResult(\r\n currencyResult.currency,\r\n currencyResult.amount,\r\n currencyResult.margin));\r\n }\r\n }\r\n }\r\n\r\n public addSet(currencyResultSet: CurrencyResultSet, mult: number = 1) {\r\n currencyResultSet.currencyResults.forEach(currencyResult => {\r\n this.add(currencyResult, mult);\r\n });\r\n }\r\n\r\n public get totalUsd(): number { return this.currencyResults.reduce((sum, cr) => sum + cr.totalUsd, 0); }\r\n}\r\n\r\n\r\nexport class CurrencyResult {\r\n constructor(currency: Api.CurrencyModel, amount: number, margin: number = 0) {\r\n this.currency = currency;\r\n this.amount = amount;\r\n this.margin = margin;\r\n this.currencyValue = currency.value;\r\n }\r\n\r\n public currency: Api.CurrencyModel;\r\n public amount: number;\r\n public margin: number;\r\n //Can be different than currency.value (changed by user)\r\n public currencyValue: number;\r\n\r\n public get total(): number { return this.amount + this.margin; }\r\n public get totalUsd(): number { return this.total * this.currencyValue; }\r\n\r\n public add(currencyResult: CurrencyResult) {\r\n this.amount += currencyResult.amount;\r\n this.margin += currencyResult.margin;\r\n }\r\n}","import * as Api from \"../api/api\";\r\nimport { ChargeModification } from \"./ratesUtils\";\r\n\r\nexport const chargeAgentsToMoficiations = (chargeAgents: Array)\r\n : Array => {\r\n if (!chargeAgents)\r\n return [];\r\n\r\n return chargeAgents.map(ca => {\r\n if (ca.chargeAgentType === \"Value\")\r\n return {\r\n amount: ca.amount,\r\n currencyId: ca.currencyId,\r\n name: ca.name,\r\n modificationType: \"Add\",\r\n sizeTypeId: ca.sizeTypeId,\r\n application: ca.application,\r\n unit: ca.unit,\r\n criteria: ca.criteria,\r\n } as ChargeModification;\r\n else if (ca.chargeAgentType === \"Modification\") {\r\n return {\r\n amount: ca.amount,\r\n currencyId: ca.currencyId,\r\n modificationType: ca.modificationType,\r\n sizeTypeId: ca.sizeTypeId,\r\n chargeNameId: ca.chargeNameId,\r\n } as ChargeModification;\r\n }\r\n });\r\n}\r\n","import * as Api from '../api/api';\r\nimport * as _ from 'lodash';\r\nimport { CarrierOfferState } from '../store/Selection';\r\n\r\nexport const getAllDeparts = (carrierOffer: Api.CarrierOfferModel): Array => {\r\n return (carrierOffer.chargeSet\r\n && carrierOffer.chargeSet.departs\r\n && carrierOffer.chargeSet.departs.length !== 0\r\n ? carrierOffer.chargeSet.departs\r\n : carrierOffer.routeConfigs.map(x => x.departs).reduce((a, b) => a.concat(b), []));\r\n}\r\n\r\nexport const getSelectedDepart = (carrierOffer: Api.CarrierOfferModel, carrierOfferState: CarrierOfferState): Api.DepartModel => {\r\n let departs = carrierOffer.chargeSet\r\n && carrierOffer.chargeSet.departs\r\n && carrierOffer.chargeSet.departs.length !== 0\r\n ? carrierOffer.chargeSet.departs\r\n : getRouteConfig(carrierOffer, carrierOfferState)?.departs || [];\r\n return _.sortBy(departs, x => !(carrierOfferState\r\n && carrierOfferState.selectedDepartId\r\n && carrierOfferState.selectedDepartId === x.departId))[0];\r\n}\r\n\r\nexport const routeSourceValue = (source: Api.RouteConfigModelSourceEnum) => {\r\n switch(source){\r\n case \"CarrierRates\":\r\n return 4;\r\n case \"ManualFromGrid\":\r\n return 3;\r\n case \"ScheduleSystem\":\r\n return 2;\r\n case \"Manual\":\r\n return 1;\r\n }\r\n}\r\nexport const getRouteConfig = (carrierOffer: Api.CarrierOfferModel\r\n , carrierOfferState: CarrierOfferState): Api.RouteConfigModel => {\r\n\r\n //this methodod must fits also other C# getRouteConfig methods\r\n //var sortedByLastUpdate = _.sortBy(carrierOffer.routeConfigs, x => x.lastUpdate).reverse(); //sort will take last update like prio\r\n //sortedByLastUpdate.filter(x => x.routeConfigId)\r\n //let sortedRcs = _.sortBy(sortedByLastUpdate\r\n // .filter(x => x.departs.length !== 0 || (carrierOffer.chargeSet && carrierOffer.chargeSet.departs.length !== 0))\r\n // , x => -routeSourceValue(x.source));\r\n\r\n let sortedRcs = carrierOffer.routeConfigs.filter(x => x.departs.length !== 0 || (carrierOffer.chargeSet && carrierOffer.chargeSet.departs.length !== 0)).sort((a, b) => {\r\n \r\n if (a.lastUpdate < b.lastUpdate) return 1; //descending\r\n if (a.lastUpdate > b.lastUpdate) return -1;\r\n if (-routeSourceValue(a.source) < -routeSourceValue(b.source)) return -1;\r\n if (-routeSourceValue(a.source) > -routeSourceValue(b.source)) return 1;\r\n \r\n return 0; // They are equal\r\n });\r\n\r\n return sortedRcs.find(x => carrierOfferState && x.routeServiceId === carrierOfferState.selectedServiceId)\r\n || sortedRcs.find(x => carrierOffer.chargeSet && carrierOffer.chargeSet.routeServiceId && carrierOffer.chargeSet.routeServiceId === x.routeServiceId)\r\n || sortedRcs[0];\r\n}\r\n","import { ApplicationState } from '../store';\r\nimport { isInDateRange, getCarrierOfferKey } from \"../utils/utils\"\r\nimport * as SelectionStore from '../store/Selection';\r\nimport { createSelector } from 'reselect'\r\nimport { RatesCalculator } from '../utils/ratesUtils';\r\nimport { frtId } from '../utils/constants';\r\nimport * as Api from '../api/api';\r\nimport { chargeAgentsToMoficiations } from '../utils/mapping';\r\nimport * as _ from 'lodash';\r\nimport { SelectionFilterOptions } from '../store/Selection';\r\nimport { getRouteConfig } from '../utils/routeUtils';\r\n\r\nexport const filterCarrierOffers = (filterModel: SelectionStore.SelectionFilterModel\r\n , carrierOffers: Array\r\n , carrierOfferStates: { [key: string]: SelectionStore.CarrierOfferState }\r\n , ratesCalculator: RatesCalculator): Array => {\r\n \r\n \r\n let test = carrierOffers.filter(co => {\r\n let allInUsd = co.chargeSet\r\n ? ratesCalculator.calculateAllIn(co.chargeSet\r\n , chargeAgentsToMoficiations(co.chargeAgents)).totalUsd\r\n : 0;\r\n let routeConfig = getRouteConfig(co, carrierOfferStates[getCarrierOfferKey(co)]);\r\n let transitTime = SelectionStore.getTableTransitTime(co, carrierOfferStates);\r\n\r\n return filterModel.carriersSelected[co.carrierId] !== false\r\n && (co.chargeSet || !filterModel.hideNoRates)\r\n && (!co.chargeSet || (\r\n (allInUsd <= filterModel.maxAllIn)\r\n && ((co.chargeSet.dateBegin && co.chargeSet.dateEnd)\r\n || (isInDateRange(co.chargeSet.dateBegin\r\n ? new Date(co.chargeSet.dateBegin).getTime()\r\n : undefined,\r\n co.chargeSet.dateEnd\r\n ? new Date(co.chargeSet.dateEnd).getTime()\r\n : undefined,\r\n filterModel.minRatesDate, filterModel.maxRatesDate || 8640000000000000))) //MaxJsDate\r\n && (filterModel.ratesType === \"AllRates\"\r\n || ((co.ratesOffer != null ? co.ratesOffer.type === \"Fak\" : !co.ratesOffer)\r\n && filterModel.ratesType === \"Fak\")\r\n || (co.ratesOffer\r\n && co.ratesOffer.type === filterModel.ratesType))\r\n\r\n && (!filterModel.ratesTypeName || (!co.ratesOffer\r\n || (co.ratesOffer.shortName\r\n && co.ratesOffer.shortName.toLocaleLowerCase().includes(filterModel.ratesTypeName?.toLocaleLowerCase())) //check the shortname\r\n || (co.ratesOffer.commodity\r\n && co.ratesOffer.commodity.toLocaleLowerCase().includes(filterModel.ratesTypeName?.toLocaleLowerCase()))\r\n || (co.ratesOffer.nac\r\n && co.ratesOffer.nac.toLocaleLowerCase().includes(filterModel.ratesTypeName?.toLocaleLowerCase()))\r\n || (co.chargeSet.carrierReference\r\n && co.chargeSet.carrierReference.toLocaleLowerCase().includes(filterModel.ratesTypeName?.toLocaleLowerCase()))\r\n /*|| (co.ratesOffer.references\r\n && co.ratesOffer.references.some(r => r.value?.toLocaleLowerCase().includes(filterModel.ratesTypeName?.toLocaleLowerCase())))*/) //check inside ref list (REMOVED, too many wrong matches)\r\n || (!co.chargeSet\r\n || (co.chargeSet.reference\r\n && co.chargeSet.reference.toLocaleLowerCase().includes(filterModel.ratesTypeName?.toLocaleLowerCase())))// check in chargset list ref\r\n )))\r\n && (!transitTime || transitTime <= filterModel.maxTransitTime)\r\n && (!routeConfig || routeConfig.transShipments.length <= filterModel.maxTransShipment)\r\n && ((!routeConfig || routeConfig.departs.some(dp => filterModel.minEtaDate <= new Date(dp.eta).getTime()\r\n && new Date(dp.eta).getTime() <= filterModel.maxEtaDate))\r\n || (co.chargeSet\r\n && co.chargeSet.departs\r\n && co.chargeSet.departs.length !== 0\r\n && co.chargeSet.departs\r\n .some(x => x.transitTime <= filterModel.maxTransitTime\r\n && filterModel.minEtaDate <= new Date(x.eta).getTime()\r\n && new Date(x.eta).getTime() <= filterModel.maxEtaDate)));\r\n });\r\n if(filterModel.ratesTypeName === \"WINE\"){\r\n console.log(test);\r\n }\r\n return test;\r\n}\r\n\r\n//Reselect for filter\r\n\r\nconst getFilterModel = (state: ApplicationState) => state.selection.filterModel;\r\nconst getCarrierOffers = (state: ApplicationState) => state.selection.selection.carrierOffers;\r\nconst getCarrierOfferStates = (state: ApplicationState) => state.selection.carrierOfferStates;\r\nconst getCriteria = (state: ApplicationState) => state.criteria.criteria;\r\nconst getSizeTypes = (state: ApplicationState) => state.seed.sizeTypes;\r\nconst getCurrencies = (state: ApplicationState) => state.seed.currencies;\r\nconst getCarriers = (state: ApplicationState) => state.seed.carriers;\r\n\r\n\r\nexport const getCarrierOffersPreFiltered = createSelector(\r\n [getCarrierOffers, getCriteria, getCurrencies, getSizeTypes, getCarriers],\r\n (carrierOffers, criteria, currencies, sizeTypes, carriers) => {\r\n let ratesCalculator = new RatesCalculator(currencies, sizeTypes, criteria);\r\n return criteria.type === \"Fcl\"\r\n ? carrierOffers\r\n .filter(ca =>\r\n !ca.chargeSet\r\n || ((!criteria.criteriaSizeTypes.some(cst => cst.number > 0\r\n && !ratesCalculator.findChargesToApply(ca.chargeSet, cst,\r\n null, chargeAgentsToMoficiations(ca.chargeAgents))\r\n .some(ch => ch.chargeNameId === frtId)) || criteria.containerPrice)\r\n && criteria.criteriaSizeTypes.some(cst => cst.number > 0\r\n && ratesCalculator.findChargesToApply(ca.chargeSet, cst,\r\n null, chargeAgentsToMoficiations(ca.chargeAgents))\r\n .some(ch => ch.chargeNameId === frtId))\r\n && (criteria.includeCarrierRates\r\n || !ca.chargeSet.ratesFetchedRecordId)))\r\n //we filter out FCL carriers client side as FCL rates can be attached to FCL routes\r\n : carrierOffers\r\n .filter(ca =>\r\n (!ca.chargeSet\r\n || ca.chargeSet.charges.some(x => x.chargeNameId === frtId))\r\n && (ca.chargeSet\r\n || (carriers[ca.carrierId].type === \"FclNvocc\" || carriers[ca.carrierId].type === \"LclNvocc\" || carriers[ca.carrierId].type === \"None\")));\r\n });\r\n\r\n//Filter, sort and get the filter options\r\nexport const getCarrierOffersFiltered = createSelector(\r\n [getFilterModel, getCarrierOffersPreFiltered, getCriteria, getCurrencies, getCarriers, getSizeTypes, getCarrierOfferStates],\r\n (filter, carrierOffers, criteria, currencies, carriers, sizeTypes, carrierOfferStates) => {\r\n let ratesCalculator = new RatesCalculator(currencies, sizeTypes, criteria);\r\n //those with frts\r\n let carrierOffersFiltered = filterCarrierOffers(filter, carrierOffers, carrierOfferStates, ratesCalculator);\r\n\r\n //Filter out no-rates when offers are available \r\n carrierOffersFiltered = carrierOffersFiltered\r\n .filter(x => x.chargeSet\r\n || !carrierOffersFiltered.some(y => y !== x\r\n && y.routeConfigs[0]?.routeId === x.routeConfigs[0]?.routeId\r\n && y.chargeSet\r\n // && (y.chargeSet.ratesServiceRelation !== \"Attached\"\r\n // || !y.routeConfigs.some(z => z.routeServiceId === y.chargeSet.routeServiceId))\r\n ));\r\n\r\n carrierOffersFiltered = carrierOffersFiltered.map(co => {\r\n let filteredRc = co.routeConfigs\r\n ?.filter(x => co.chargeSet == null\r\n || !co.chargeSet.routeServiceId\r\n || co.chargeSet.routeServiceId === x.routeServiceId) || [];\r\n return {\r\n ...co,\r\n routeConfigs: _.sortBy((filteredRc.length !== 0\r\n ? filteredRc\r\n : co.routeConfigs)\r\n .map(rc => {\r\n return {\r\n ...rc,\r\n departs: rc.departs\r\n .filter(dp => filter.minEtaDate <= new Date(dp.eta).getTime()\r\n && new Date(dp.eta).getTime() <= filter.maxEtaDate)\r\n }\r\n })\r\n .filter(x => x.departs.length !== 0\r\n || (co.chargeSet\r\n && co.chargeSet.departs\r\n && co.chargeSet.departs.length !== 0)), x => x.transitTime)\r\n }\r\n });\r\n \r\n if(filter.onlyShowBestTt) {\r\n carrierOffersFiltered.map(co => {\r\n if(co.routeConfigs?.some(x => x.source !== \"Manual\" && x.routeServiceId)){\r\n return {\r\n ...co,\r\n routeConfigs: [ _.sortBy(co.routeConfigs\r\n .filter(x => x.source !== \"Manual\" && x.routeServiceId), y => y.transitTime)\r\n [0] ]\r\n \r\n }\r\n } else {\r\n return {\r\n ...co,\r\n routeConfigs: co.routeConfigs.length !== 0 \r\n ? [ _.sortBy(co.routeConfigs, x => x.transitTime)[0] ]\r\n : []\r\n }\r\n }\r\n });\r\n }\r\n \r\n return carrierOffersFiltered;\r\n }\r\n\r\n)\r\n\r\nexport const getCarrierOfferSorted = createSelector(getFilterModel, getSizeTypes, getCurrencies, getCriteria, getCarriers, getCarrierOffersFiltered, getCarrierOfferStates\r\n , (filterModel\r\n , sizeTypes\r\n , currencies\r\n , criteria\r\n , carriers\r\n , carrierOffers\r\n , carrierOfferStates) => {\r\n let ratesCalculator = new RatesCalculator(currencies, sizeTypes, criteria);\r\n\r\n switch (filterModel.sortBy) {\r\n case \"AllIn\":\r\n return _.sortBy(carrierOffers, x => x.chargeSet\r\n ? ratesCalculator.calculateAllIn(x.chargeSet, chargeAgentsToMoficiations(x.chargeAgents)).totalUsd\r\n : Number.MAX_SAFE_INTEGER);\r\n case \"Pol\":\r\n return _.sortBy(carrierOffers, co => co.originPort.name);\r\n case \"Pod\":\r\n return _.sortBy(carrierOffers, co => co.destinationPort.name);\r\n case \"Carrier\":\r\n return _.sortBy(carrierOffers, co => carriers[co.carrierId].name);\r\n case \"TransitTime\":\r\n return _.sortBy(carrierOffers, co => SelectionStore.getTableTransitTime(co, carrierOfferStates));\r\n case \"TransShipments\":\r\n return _.sortBy(carrierOffers, co => getRouteConfig(co, carrierOfferStates[getCarrierOfferKey(co)])?.transShipments?.length ?? 0);\r\n case \"Validity\":\r\n return _.sortBy(carrierOffers, co => {\r\n if (co.chargeSet) {\r\n return co.chargeSet.ratesPriceType === \"Spot\" && co.chargeSet.departs && co.chargeSet.departs.length > 0\r\n ? (new Date(co.chargeSet.departs[0]?.etd).getTime() || 0)\r\n : (new Date(co.chargeSet.dateEnd).getTime() + 1000000000000);\r\n }\r\n \r\n return Number.MAX_SAFE_INTEGER;\r\n });\r\n case \"AllInCtr1\":\r\n let st1 = sizeTypes[ratesCalculator.criteria.criteriaSizeTypes.find(y => sizeTypes[y.sizeTypeId].position === 1).sizeTypeId];\r\n var crt = ratesCalculator.criteria.criteriaSizeTypes.find(y => sizeTypes[y.sizeTypeId].position === 1);\r\n return _.sortBy(carrierOffers,\r\n x => x.chargeSet\r\n ? ratesCalculator.calculatePrice(\r\n ratesCalculator.findChargesToApply(x.chargeSet,\r\n crt).concat(ratesCalculator.findBlChargesToApply(x.chargeSet)), st1.teu).totalUsd\r\n : Number.MAX_SAFE_INTEGER);\r\n case \"AllInCtr2\":\r\n let st2 = sizeTypes[ratesCalculator.criteria.criteriaSizeTypes.find(y => sizeTypes[y.sizeTypeId].position === 2).sizeTypeId];\r\n var crt = ratesCalculator.criteria.criteriaSizeTypes.find(y => sizeTypes[y.sizeTypeId].position === 2);\r\n return _.sortBy(carrierOffers,\r\n x => x.chargeSet\r\n ? ratesCalculator.calculatePrice(\r\n ratesCalculator.findChargesToApply(x.chargeSet,\r\n crt).concat(ratesCalculator.findBlChargesToApply(x.chargeSet)), st2.teu).totalUsd\r\n : Number.MAX_SAFE_INTEGER);\r\n case \"AllInCtr3\":\r\n let st3 = sizeTypes[ratesCalculator.criteria.criteriaSizeTypes.find(y => sizeTypes[y.sizeTypeId].position === 3).sizeTypeId];\r\n var crt = ratesCalculator.criteria.criteriaSizeTypes.find(y => sizeTypes[y.sizeTypeId].position === 3);\r\n return _.sortBy(carrierOffers,\r\n x => x.chargeSet\r\n ? ratesCalculator.calculatePrice(\r\n ratesCalculator.findChargesToApply(x.chargeSet,\r\n crt).concat(ratesCalculator.findBlChargesToApply(x.chargeSet)), st3.teu).totalUsd\r\n : Number.MAX_SAFE_INTEGER);\r\n case \"AllInCtr4\":\r\n let st4 = sizeTypes[ratesCalculator.criteria.criteriaSizeTypes.find(y => sizeTypes[y.sizeTypeId].position === 4).sizeTypeId];\r\n if (!st4) {\r\n return carrierOffers;\r\n }\r\n var crt = ratesCalculator.criteria.criteriaSizeTypes.find(y => sizeTypes[y.sizeTypeId].position === 3);\r\n return _.sortBy(carrierOffers,\r\n x => x.chargeSet\r\n ? ratesCalculator.calculatePrice(\r\n ratesCalculator.findChargesToApply(x.chargeSet,\r\n crt).concat(ratesCalculator.findBlChargesToApply(x.chargeSet)), st4.teu).totalUsd\r\n : Number.MAX_SAFE_INTEGER);\r\n }\r\n return carrierOffers;\r\n })\r\n\r\nexport const getFilterOptions = createSelector(\r\n [getCarrierOffersPreFiltered, getCriteria, getCurrencies, getSizeTypes],\r\n (carrierOffers, criteria, currencies, sizeTypes) => {\r\n let ratesCalculator = new RatesCalculator(currencies, sizeTypes, criteria);\r\n let minAllIn = 0\r\n let maxAllIn = 0;\r\n let minTransitTime = 0;\r\n let maxTransitTime = 0;\r\n let minEtaDate = 0;\r\n let maxEtaDate = 0;\r\n let minRatesDate = 0;\r\n let maxRatesDate = 0;\r\n let maxTransShipment = 0;\r\n\r\n if (carrierOffers.length !== 0) {\r\n let carrieroffersPriced = carrierOffers.filter(co => co.chargeSet);\r\n if (carrieroffersPriced.length !== 0) {\r\n let carrierOffersByPrice = _.sortBy(carrieroffersPriced\r\n .map(co => ({\r\n carrierOffer: co,\r\n allIn: ratesCalculator.calculateAllIn(co.chargeSet, chargeAgentsToMoficiations(co.chargeAgents))\r\n })),\r\n x => x.allIn.totalUsd);\r\n minAllIn = Math.floor(carrierOffersByPrice[0].allIn.totalUsd);\r\n maxAllIn = Math.ceil(carrierOffersByPrice[carrierOffersByPrice.length - 1].allIn.totalUsd);\r\n\r\n let carrierOffersByValidity = _.sortBy(carrieroffersPriced\r\n .map(co => new Date(co.chargeSet.dateEnd)), x => x.getTime());\r\n minRatesDate = carrierOffersByValidity[0].getTime();\r\n maxRatesDate = carrierOffersByValidity[carrierOffersByValidity.length - 1].getTime();\r\n }\r\n\r\n var routeconfigs = carrierOffers.map(x => x.routeConfigs).reduce((a, b) => a.concat(b), []);\r\n\r\n let transitTimes = routeconfigs\r\n .map(x => x.transitTime)\r\n .concat(routeconfigs.map(x => x.departs)\r\n .reduce((a, b) => a.concat(b), []).map(x => x.transitTime))\r\n .concat(carrierOffers.map(x => x.chargeSet && x.chargeSet.departs ? x.chargeSet.departs : [])\r\n .reduce((a, b) => a.concat(b), []).map(x => x.transitTime))\r\n .concat(carrierOffers.filter(x => x.chargeSet && x.chargeSet.transitTime).map(x => x.chargeSet.transitTime))\r\n ;\r\n\r\n minTransitTime = _.min(transitTimes);\r\n maxTransitTime = _.max(transitTimes);\r\n\r\n let transShipments = carrierOffers.map(x => x.routeConfigs)\r\n .reduce((a, b) => a.concat(b), []).map(x => x.transShipments.length);\r\n maxTransShipment = _.max(transShipments);\r\n\r\n let carrierOffersByEta = _.sortBy(carrierOffers\r\n .map(co => {\r\n let departs = new Array();\r\n departs = departs.concat(co.routeConfigs\r\n .map(x => x.departs)\r\n .reduce((a, b) => a.concat(b), []));\r\n if (co.chargeSet && co.chargeSet.departs) {\r\n departs = departs.concat(co.chargeSet.departs);\r\n }\r\n return departs;\r\n }).reduce((a, b) => a.concat(b), []), x => new Date(x.eta).getTime());\r\n minEtaDate = carrierOffersByEta[0] ? new Date(carrierOffersByEta[0].eta).getTime() : new Date().getTime();\r\n maxEtaDate = carrierOffersByEta[carrierOffersByEta.length - 1] ? new Date(carrierOffersByEta[carrierOffersByEta.length - 1].eta).getTime() : new Date().getTime();\r\n }\r\n\r\n return {\r\n minAllIn: minAllIn,\r\n maxAllIn: maxAllIn,\r\n minEtaDate: minEtaDate,\r\n maxEtaDate: maxEtaDate,\r\n minRatesDate: minRatesDate,\r\n maxRatesDate: maxRatesDate,\r\n minTransitTime: minTransitTime,\r\n maxTransitTime: maxTransitTime,\r\n maxTransShipment: maxTransShipment\r\n } as SelectionFilterOptions;\r\n });\r\n\r\nexport const getGroupedCarrierOffers = createSelector([getCarrierOfferSorted, getCarriers, getFilterModel], (carrierOffers, carriers, filter) => {\r\n return filter.byRatesOffer\r\n ? _.map(_.groupBy(carrierOffers,\r\n x => \"C\" + x.carrierId\r\n + \"R\" + (x.ratesOffer\r\n ? x.ratesOffer.ratesOfferId\r\n : \"0\")), x => x.map(y => y))\r\n .map(x => x)\r\n : carrierOffers.map(x => [x])\r\n});","import { getSubscription } from \"../utils/utils\";\r\nimport * as Api from '../api/api';\r\n\r\nexport const canUseSuggested = (subscription: Api.SubscriptionModel): boolean => {\r\n return subscription\r\n && subscription.agency\r\n && (subscription.agency.company.suggestedRates\r\n || subscription.suggestedRates);\r\n};\r\n\r\nexport const canUseCarrierRates = (subscription: Api.SubscriptionModel): boolean => {\r\n return subscription\r\n && subscription.agency\r\n && (subscription.agency.company.carrierRates\r\n || subscription.agency.carrierRates\r\n || (subscription.agency.company.companyGroup && subscription.agency.company.companyGroup.carrierRates));\r\n};\r\n\r\nexport const CanUseAskRates = (subscription: Api.SubscriptionModel): boolean => {\r\n return subscription\r\n && subscription.allowAskRates;\r\n};\r\n\r\nexport const canModerateRates = (subscription: Api.SubscriptionModel): boolean => {\r\n return subscription\r\n && (subscription.allowRatesControl\r\n || subscription.allowRatesManagement);\r\n};\r\n\r\n\r\nexport const canUploadRates = (subscription: Api.SubscriptionModel): boolean => {\r\n return subscription\r\n && (subscription.allowClientUploadRates);\r\n};\r\n\r\n\r\nexport const canModerateInformations = (subscription: Api.SubscriptionModel): boolean => {\r\n return subscription\r\n && (subscription.allowInformUser);\r\n};\r\n\r\n\r\nexport const canManageUsers = (subscription: Api.SubscriptionModel): boolean => {\r\n return subscription\r\n && (subscription.allowUserManagement);\r\n};\r\n\r\nexport const canModerateAgents = (subscription: Api.SubscriptionModel): boolean => {\r\n return subscription\r\n && (subscription.allowAgentManagement);\r\n};\r\n\r\n\r\nexport const canUseLcl = (subscription: Api.SubscriptionModel): boolean => {\r\n return subscription\r\n && subscription.agency\r\n && (subscription.agency.company.allowLcl);\r\n};\r\n\r\nexport const canUseQuotation = (subscription: Api.SubscriptionModel): boolean => {\r\n return subscription\r\n && subscription.agency\r\n && subscription.agency.company.allowQuotation;\r\n};\r\n\r\nexport const canUseInland = (subscription: Api.SubscriptionModel): boolean => {\r\n return subscription\r\n && subscription.agency\r\n && subscription.agency.company.allowInland;\r\n};\r\n\r\nexport const canUseRatesExtraction = (subscription: Api.SubscriptionModel): boolean => {\r\n return subscription\r\n && subscription.agency\r\n && subscription.agency.company.allowRatesExtraction;\r\n};","import { Action, Reducer } from 'redux';\r\nimport * as Api from '../api/api';\r\nimport Moment from 'moment';\r\nimport { AppThunkAction } from './';\r\nimport { push } from \"connected-react-router\";\r\nimport * as CriteriaUtils from '../utils/criteriaUtils';\r\nimport { getDefaultHeaders, getSubscription } from '../utils/utils';\r\nimport * as Notifications from 'react-notification-system-redux';\r\nimport { ReceiveCurrentUser, ReceiveEditClient } from \"./Account\";\r\nimport { formValueSelector } from \"redux-form\";\r\nimport * as _ from 'lodash';\r\nimport { ResetTodayDate } from './Seed';\r\nimport { canUseSuggested } from '../security/userRights';\r\nimport { SelectionResetOptions } from \"./Selection\";\r\n\r\nexport interface CriteriaState {\r\n code: string;\r\n criteriaHash: string;\r\n criteria: Api.CriteriaModel;\r\n advContainerOpened: boolean;\r\n advLocationOpened: boolean;\r\n advDateOpened: boolean;\r\n isLoading: boolean;\r\n requestTime: number;\r\n recentCriteriaState: {\r\n isLoading: boolean;\r\n requestTime?: number;\r\n criterias: Api.CriteriaModel[];\r\n }\r\n}\r\n\r\nexport enum Source {\r\n Origin = \"Origin\",\r\n Destination = \"Destination\"\r\n}\r\n\r\n// -----------------\r\n// ACTIONS - These are serializable (hence replayable) descriptions of state transitions.\r\n// They do not themselves have any side-effects; they just describe something that is going to happen.\r\n// Use @typeName and isActionType for type detection that works even after serialization/deserialization.\r\n\r\ninterface RequestCreateCriteriaAction { type: 'REQUEST_CREATE_CRITERIA', requestTime: number }\r\n//These actions are used in locations\r\nexport interface RequestCriteriaAction { type: 'REQUEST_CRITERIA', code: string, requestTime: number }\r\nexport interface ReceiveCriteriaAction { type: 'RECEIVE_CRITERIA', requestTime: number, criteria: Api.CriteriaModel }\r\nexport interface SetCriteria { type: 'SET_CRITERIA', criteria: Api.CriteriaModel }\r\nexport interface SetCriteriaRecent { type: 'SET_CRITERIA_RECENT'; payload: { criteria: Api.CriteriaModel; sizeTypes: Array } }\r\nexport interface ResetCriteria { type: 'RESET_CRITERIA' }\r\ninterface SetDefaultCriteria { type: 'SET_DEFAULT_CRITERIA' }\r\ninterface UpdateCriteriaSizeTypeNumber { type: 'UPDATE_CRITERIA_SIZETYPE_NUMBER'; sizeTypeId: number; value: number }\r\ninterface UpdateContainerCriteria { type: 'UPDATE_CONTAINER_CRITERIA'; criteriaForSize: Api.CriteriaSizeTypeModel }\r\n\r\ninterface SelectLoadingCharges { type: 'SELECT_LOADING_CHARGES', payload: { value: boolean } }\r\ninterface SelectUnLoadingCharges { type: 'SELECT_UNLOADING_CHARGES', payload: { value: boolean } }\r\n\r\ninterface SelectPrepaidCharges { type: 'SELECT_PREPAID_CHARGES', payload: { value: boolean } }\r\ninterface SelectCollectCharges { type: 'SELECT_COLLECT_CHARGES', payload: { value: boolean } }\r\n\r\ninterface SelectDateBegin { type: 'SELECT_DATEBEGIN', date: Date }\r\ninterface SelectDateEnd { type: 'SELECT_DATEEND', date: Date }\r\n\r\ninterface ToggleAdvContainer { type: 'TOGGLE_ADV_CONTAINER', value: boolean }\r\ninterface SelectContainerType {\r\n type: 'SELECT_CONTAINER_TYPE',\r\n payload: { value: Api.CriteriaModelContainerTypeEnum; sizeTypes: Array; criteriaSizeTypes: Array }\r\n}\r\ninterface SelectPriceByContainer { type: 'SELECT_PRICE_BY_CONTAINER', value: boolean }\r\ninterface UpdateChargeCriteria { type: 'UPDATE_CHARGE_CRITERIA', value: Array }\r\n\r\ninterface ToggleAdvLocation { type: 'TOGGLE_ADV_LOCATION', value: boolean }\r\ninterface SelectSurroundingOrigin { type: 'SELECT_SURROUNDING_ORIGIN', value: boolean }\r\ninterface SelectSurroundingDestination { type: 'SELECT_SURROUNDING_DESTINATION', value: boolean }\r\n\r\ninterface ToggleAdvDate { type: 'TOGGLE_ADV_DATE', value: boolean }\r\ninterface SelectLastRates { type: 'SELECT_LAST_RATES', value: boolean }\r\ninterface SelectSuggested { type: 'SELECT_SUGGESTED', value: boolean }\r\ninterface SelectAllMarket { type: 'SELECT_ALL_MARKET', value: boolean }\r\ninterface UpdateIncludeSellingRates { type: 'UPDATE_INCLUDE_SELLINGRATES', payload: { value: boolean } }\r\ninterface CriteriaUpdateShowFreeTime { type: 'CRITERIA_UPDATE_SHOWFREETIME', payload: { value: boolean } }\r\n\r\ninterface CriteriaUpdateTon { type: 'CRITERIA_UPDATE_TON', payload: { value: number } }\r\ninterface CriteriaUpdateCbm { type: 'CRITERIA_UPDATE_CBM', payload: { value: number } }\r\ninterface CriteriaSelectCarrierRates { type: \"CRITERIA_SELECT_CARRIERRATES\", payload: { value: boolean } }\r\n\r\ninterface RequestRecentCriteria { type: 'REQUEST_RECENT_CRITERIA', payload: { requestTime: number } }\r\ninterface ReceiveRecentCriteria { type: 'RECEIVE_RECENT_CRITERIA', payload: { requestTime: number; value?: Api.CriteriaModel[] }; error?: any }\r\ninterface CriteriaSelectLocation { type: 'CRITERIA_SELECTION_LOCATION', source: Source, value: Api.LocationModel }\r\ninterface UpdateOriginShippingType { type: \"UPDATE_ORIGINSHIPPINGTYPE\", value: Api.CriteriaModelLocationShippingTypeEnum }\r\ninterface UpdateDestinationShippingType { type: \"UPDATE_DESTINATIONSHIPPINGTYPE\", value: Api.CriteriaModelLocationShippingTypeEnum }\r\n\r\n// Declare a 'discriminated union' type. This guarantees that all references to 'type' properties contain one of the\r\n// declared type strings (and not any other arbitrary string).\r\ntype KnownAction = RequestCreateCriteriaAction\r\n | RequestCriteriaAction | ReceiveCriteriaAction\r\n | UpdateCriteriaSizeTypeNumber\r\n | UpdateContainerCriteria\r\n | SelectLoadingCharges\r\n | SelectUnLoadingCharges\r\n | SelectDateBegin | SelectDateEnd\r\n | ToggleAdvContainer | SelectContainerType\r\n | SelectPriceByContainer\r\n | UpdateChargeCriteria\r\n | ToggleAdvLocation | SelectSurroundingOrigin\r\n | SelectSurroundingDestination\r\n | ToggleAdvDate | SelectLastRates\r\n | SelectSuggested | SelectAllMarket\r\n | SetDefaultCriteria | SetCriteria\r\n | ResetCriteria\r\n | ReceiveCurrentUser | ReceiveEditClient\r\n | CriteriaUpdateShowFreeTime\r\n | ResetTodayDate\r\n | UpdateIncludeSellingRates\r\n | SetCriteriaRecent\r\n | CriteriaUpdateTon\r\n | CriteriaUpdateCbm\r\n | CriteriaSelectCarrierRates\r\n | SelectionResetOptions\r\n | SelectPrepaidCharges\r\n | SelectCollectCharges\r\n | RequestRecentCriteria\r\n | ReceiveRecentCriteria\r\n | CriteriaSelectLocation\r\n | UpdateOriginShippingType\r\n | UpdateDestinationShippingType\r\n ;\r\n\r\n// ----------------\r\n// ACTION CREATORS - These are functions exposed to UI components that will trigger a state transition.\r\n// They don't directly mutate state, but they can have external side-effects (such as loading data).\r\n\r\nconst formSelector = formValueSelector('criteria')\r\nexport const actionCreators = {\r\n requestCriteria: (code: string, requestTime: number): AppThunkAction => (dispatch, getState) => {\r\n // Only load data if it's something we don't already have (and are not already loading)\r\n if (requestTime === getState().criteria.requestTime)\r\n return;\r\n\r\n let api = new Api.CriteriaApi();\r\n let fetchTask = api.getCriteria({ code: code }, { headers: getDefaultHeaders(getState()) })\r\n .then(data => {\r\n dispatch({ type: 'RECEIVE_CRITERIA', requestTime: requestTime, criteria: data });\r\n }).catch(error => {\r\n console.log('Error receiving criteria: ' + error.message);\r\n dispatch({ type: 'RECEIVE_CRITERIA', requestTime: requestTime, criteria: unloadedState.criteria });\r\n dispatch(Notifications.error({ message: \"Error loading criteria\", title: \"Error\", position: \"tc\" }) as any);\r\n });\r\n dispatch({ type: 'REQUEST_CRITERIA', code: code, requestTime: requestTime });\r\n },\r\n requestRecentCriteria: (requestTime: number): AppThunkAction => (dispatch, getState) => {\r\n let api = new Api.CriteriaApi();\r\n let fetchTask = api.recentCriteria({ }, { headers: getDefaultHeaders(getState()) })\r\n .then(data => {\r\n dispatch({ type: 'RECEIVE_RECENT_CRITERIA', payload: { requestTime: requestTime, value: data } });\r\n }).catch(error => {\r\n console.log('Error receiving recent criteria: ' + error?.message);\r\n dispatch({ type: 'RECEIVE_RECENT_CRITERIA', payload: { requestTime: requestTime }, error: error });\r\n });\r\n dispatch({ type: 'REQUEST_RECENT_CRITERIA', payload: { requestTime: requestTime } });\r\n return fetchTask;\r\n },\r\n setCriteria: (criteria: Api.CriteriaModel) => { type: \"SET_CRITERIA\", criteria: criteria },\r\n selectLocation: (source: Source, value: Api.LocationModel) => { type: 'CRITERIA_SELECTION_LOCATION', source: source, value: value },\r\n updateOriginShippingType: (value: Api.CriteriaModelLocationShippingTypeEnum) => { type: \"UPDATE_ORIGINSHIPPINGTYPE\", value: value },\r\n updateDestinationShippingType: (value: Api.CriteriaModelLocationShippingTypeEnum) => { type: \"UPDATE_DESTINATIONSHIPPINGTYPE\", value: value },\r\n requestCreateCriteria: (requestTime: number): AppThunkAction> => (dispatch, getState) => {\r\n if (requestTime === getState().criteria.requestTime)\r\n return Promise.resolve(getState().criteria.criteria);\r\n\r\n let api = new Api.CriteriaApi();\r\n let fetchTask = api.createCriteria({ model: getState().criteria.criteria },\r\n { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) });\r\n\r\n fetchTask.then(data => {\r\n\r\n }).catch(error => {\r\n console.log('Error creating criteria: ' + error.message);\r\n dispatch(Notifications.error({ message: \"Error loading criteria\", title: \"Error\", position: \"tc\" }) as any);\r\n });\r\n\r\n dispatch({ type: 'REQUEST_CREATE_CRITERIA', requestTime: requestTime });\r\n return fetchTask;\r\n },\r\n updateSizeTypeNumber: (sizeTypeId: number, value: number) => { type: 'UPDATE_CRITERIA_SIZETYPE_NUMBER', sizeTypeId: sizeTypeId, value: value },\r\n updateContainerCriteria: (criteriaForSize: Api.CriteriaSizeTypeModel) => { type: 'UPDATE_CONTAINER_CRITERIA', criteriaForSize: criteriaForSize },\r\n selectLoadingcharge: (value: boolean) => { type: 'SELECT_LOADING_CHARGES', payload: { value: value } },\r\n selectUnLoadingcharge: (value: boolean) => { type: 'SELECT_UNLOADING_CHARGES', payload: { value: value } },\r\n selectPrepaidcharge: (value: boolean) => {\r\n type: 'SELECT_PREPAID_CHARGES', payload: { value: value }\r\n },\r\n selectCollectcharge: (value: boolean) => { type: 'SELECT_COLLECT_CHARGES', payload: { value: value } },\r\n selectDateBegin: (date: Date) => { type: 'SELECT_DATEBEGIN', date: date },\r\n selectDateEnd: (date: Date) => { type: 'SELECT_DATEEND', date: date },\r\n toggleAdvContainer: (value: boolean) => { type: 'TOGGLE_ADV_CONTAINER', value: value },\r\n selectPriceByContainer: (value: boolean) => { type: 'SELECT_PRICE_BY_CONTAINER', value: value },\r\n selectContainerType: (value: Api.CriteriaModelContainerTypeEnum): AppThunkAction => (dispatch, getState) => {\r\n dispatch({\r\n type: 'SELECT_CONTAINER_TYPE',\r\n payload: {\r\n value: value,\r\n //We send the new sizetypes the form has to display here\r\n //Because we dont have it in the criteria part of the store tree\r\n //Using the middleware to gather wanted part of the tree is ok, keep it simple though\r\n sizeTypes: _.values(getState().seed.sizeTypes)\r\n .filter(st => st.type === value && (st.position <= 4)),\r\n criteriaSizeTypes: formSelector(getState(), \"criteriaSizeTypes\")\r\n || getState().criteria.criteria.criteriaSizeTypes\r\n }\r\n });\r\n },\r\n updateChargeCriteria: (value: Array) => { type: 'UPDATE_CHARGE_CRITERIA', value: value },\r\n toggleAdvLocation: (value: boolean) => { type: 'TOGGLE_ADV_LOCATION', value: value },\r\n selectSurroundingOrigin: (value: boolean) => ({ type: 'SELECT_SURROUNDING_ORIGIN', value: value }),\r\n selectSurroundingDestination: (value: boolean) => ({ type: 'SELECT_SURROUNDING_DESTINATION', value: value }),\r\n toggleAdvDate: (value: boolean) => { type: 'TOGGLE_ADV_DATE', value: value },\r\n selectLastRates: (value: boolean) => { type: 'SELECT_LAST_RATES', value: value },\r\n selectAllMarket: (value: boolean) => { type: 'SELECT_ALL_MARKET', value: value },\r\n selectSuggested: (value: boolean) => { type: 'SELECT_SUGGESTED', value: value },\r\n selectCarrierRates: (value: boolean) => {\r\n type: 'CRITERIA_SELECT_CARRIERRATES',\r\n payload: { value: value }\r\n },\r\n updateShowFreeTime: (value: boolean) => {\r\n type: 'CRITERIA_UPDATE_SHOWFREETIME', payload: { value: value }\r\n },\r\n setDefaultCriteria: (): AppThunkAction => (dispatch, getState) => {\r\n dispatch({ type: 'SET_DEFAULT_CRITERIA' });\r\n },\r\n resetCriteria: () => { type: \"RESET_CRITERIA\" },\r\n setCriteriaRecent: (criteria: Api.CriteriaModel): AppThunkAction => (dispatch, getState) => {\r\n dispatch({\r\n type: \"SET_CRITERIA_RECENT\",\r\n payload: {\r\n criteria: criteria,\r\n sizeTypes: _.values(getState().seed.sizeTypes)\r\n .filter(st => st.type === criteria.containerType && (st.position <= 4))\r\n }\r\n });\r\n },\r\n criteriaGo: (): AppThunkAction => (dispatch, getState) => {\r\n let criteria = getState().criteria.criteria;\r\n if (criteria.type === \"Fcl\")\r\n dispatch(push('/selection/' + criteria.code) as any);\r\n else\r\n dispatch(push('/lcl/selection/' + criteria.code) as any);\r\n },\r\n updateIncludeSellingRates: (value: boolean) => {\r\n type: \"UPDATE_INCLUDE_SELLINGRATES\",\r\n payload: { value: value }\r\n },\r\n updateTon: (value: number) => {\r\n type: \"CRITERIA_UPDATE_TON\",\r\n payload: { value: value }\r\n },\r\n updateCbm: (value: number) => {\r\n type: \"CRITERIA_UPDATE_CBM\",\r\n payload: { value: value }\r\n }\r\n\r\n};\r\nexport const getDefaultCriteria = (currentUser: Api.CurrentUserModel): Api.CriteriaModel => {\r\n let rcuSubscription = getSubscription(currentUser.clientModel);\r\n let isAgent = rcuSubscription\r\n && rcuSubscription.subscriptionType === \"Agent\"\r\n\r\n return {\r\n loadingCharge: isAgent ? false : currentUser.clientModel.defaultLoading,\r\n unLoadingCharge: isAgent ? false : currentUser.clientModel.defaultUnLoading,\r\n suggested: canUseSuggested(rcuSubscription)\r\n && currentUser.clientModel.defaultSuggested,\r\n lastRates: currentUser.clientModel.defaultLastRates,\r\n containerPrice: currentUser.clientModel.defaultContainerPrice,\r\n showFreeTime: currentUser.clientModel.defaultFreetime,\r\n criteriaSubscriptions: rcuSubscription\r\n ? [{ subscriptionId: rcuSubscription.subscriptionId }]\r\n : [],\r\n allMarkets: currentUser.clientModel.defaultAllMarkets,\r\n includeCarrierRates: currentUser.clientModel.defaultCarrierRates,\r\n };\r\n}\r\n\r\n// ----------------\r\n// REDUCER - For a given state and action, returns the new state. To support time travel, this must not mutate the old state.\r\n\r\nconst unloadedState: CriteriaState = {\r\n code: null,\r\n criteriaHash: '',\r\n criteria: {\r\n containerType: \"Dry\",\r\n originShippingType: \"Cy\",\r\n destinationShippingType: \"Cy\",\r\n origin: null,\r\n destination: null,\r\n criteriaSizeTypes: [\r\n { sizeTypeId: 1, number: 0, weight:15000, weightUnit:\"Kg\"},\r\n { sizeTypeId: 2, number: 0, weight:15000, weightUnit:\"Kg\" },\r\n { sizeTypeId: 3, number: 0, weight:15000, weightUnit:\"Kg\" },\r\n { sizeTypeId: 7, number: 0, weight:15000, weightUnit:\"Kg\" }\r\n ],\r\n dateBegin: Moment().utc().add(0, 'days').startOf('day').toDate(),\r\n dateEnd: Moment().utc().add(1, 'months').startOf('day').toDate(),\r\n loadingCharge: true,\r\n unLoadingCharge: true,\r\n prepaidCharge: true,\r\n collectCharge: true,\r\n chargeCriterias: []\r\n },\r\n advContainerOpened: false,\r\n advDateOpened: false,\r\n advLocationOpened: false,\r\n isLoading: false,\r\n requestTime: 0,\r\n recentCriteriaState: {\r\n isLoading: false,\r\n criterias: []\r\n }\r\n};\r\n\r\nexport const reducer: Reducer = (state: CriteriaState, incomingAction: Action) => {\r\n const action = incomingAction as KnownAction;\r\n\r\n switch (action.type) {\r\n case 'REQUEST_CRITERIA':\r\n return {\r\n ...state,\r\n code: action.code,\r\n isLoading: true,\r\n requestTime: action.requestTime\r\n };\r\n case 'RECEIVE_CRITERIA':\r\n //Anti out of order\r\n if (action.requestTime !== state.requestTime)\r\n return state;\r\n\r\n return {\r\n ...state,\r\n code: action.criteria.code,\r\n criteriaHash: CriteriaUtils.generateHash(action.criteria),\r\n criteria: {\r\n ...action.criteria,\r\n dateBegin: Moment.utc(action.criteria.dateBegin).local().toDate(),\r\n dateEnd: Moment.utc(action.criteria.dateEnd).local().toDate(),\r\n },\r\n advContainerOpened: action.criteria.containerType !== \"Dry\" ||\r\n action.criteria.containerPrice ||\r\n (action.criteria.chargeCriterias && action.criteria.chargeCriterias.length !== 0),\r\n advLocationOpened: false,\r\n advDateOpened: action.criteria.lastRates || action.criteria.allMarkets || action.criteria.suggested,\r\n isLoading: false\r\n };\r\n case 'REQUEST_CREATE_CRITERIA':\r\n return {\r\n ...state,\r\n code: null,\r\n isLoading: true,\r\n requestTime: action.requestTime\r\n };\r\n case 'UPDATE_CRITERIA_SIZETYPE_NUMBER':\r\n var state2 = {\r\n ...state,\r\n criteria: {\r\n ...state.criteria,\r\n criteriaSizeTypes: state.criteria.criteriaSizeTypes.map(st => {\r\n return {\r\n ...st,\r\n number: st.sizeTypeId == action.sizeTypeId\r\n ? action.value\r\n : st.number\r\n };\r\n })\r\n }\r\n };\r\n return state2;\r\n case 'UPDATE_CONTAINER_CRITERIA':\r\n return {\r\n ...state,\r\n criteria: {\r\n ...state.criteria,\r\n criteriaSizeTypes: state.criteria.criteriaSizeTypes\r\n .map(cst => {\r\n return cst.sizeTypeId === action.criteriaForSize.sizeTypeId \r\n ? {\r\n ...cst,\r\n weight: action.criteriaForSize.weight,\r\n weightUnit: action.criteriaForSize.weightUnit\r\n }\r\n : cst\r\n })\r\n }\r\n };\r\n case 'SELECT_LOADING_CHARGES':\r\n return {\r\n ...state,\r\n criteria: {\r\n ...state.criteria,\r\n loadingCharge: action.payload.value\r\n }\r\n }\r\n case 'SELECT_UNLOADING_CHARGES':\r\n return {\r\n ...state,\r\n criteria: {\r\n ...state.criteria,\r\n unLoadingCharge: action.payload.value\r\n }\r\n }\r\n case 'SELECT_PREPAID_CHARGES':\r\n return {\r\n ...state,\r\n criteria: {\r\n ...state.criteria,\r\n prepaidCharge: action.payload.value\r\n }\r\n }\r\n case 'SELECT_COLLECT_CHARGES':\r\n return {\r\n ...state,\r\n criteria: {\r\n ...state.criteria,\r\n collectCharge: action.payload.value\r\n }\r\n }\r\n case 'SELECT_DATEBEGIN':\r\n return {\r\n ...state,\r\n criteria: {\r\n ...state.criteria,\r\n dateBegin: action.date\r\n }\r\n };\r\n case 'SELECT_DATEEND':\r\n return {\r\n ...state,\r\n criteria: {\r\n ...state.criteria,\r\n dateEnd: action.date\r\n }\r\n };\r\n case 'TOGGLE_ADV_CONTAINER':\r\n return {\r\n ...state,\r\n advContainerOpened: action.value\r\n };\r\n case 'SELECT_CONTAINER_TYPE':\r\n return {\r\n ...state,\r\n criteria: {\r\n ...state.criteria,\r\n containerType: action.payload.value,\r\n criteriaSizeTypes: action.payload.sizeTypes.map((st, i) => {\r\n return {\r\n sizeTypeId: st.sizeTypeId,\r\n number: action.payload.criteriaSizeTypes[i]\r\n ? action.payload.criteriaSizeTypes[i].number\r\n : 0,\r\n weight: 15000,\r\n weightUnit: \"Kg\",\r\n criteriaSizeTypeId: 0\r\n }\r\n })\r\n }\r\n };\r\n case 'UPDATE_CHARGE_CRITERIA':\r\n return {\r\n ...state,\r\n criteria: {\r\n ...state.criteria,\r\n chargeCriterias: action.value\r\n }\r\n };\r\n case 'SELECT_PRICE_BY_CONTAINER':\r\n return {\r\n ...state,\r\n criteria: {\r\n ...state.criteria,\r\n containerPrice: action.value,\r\n criteriaSizeTypes: state.criteria.criteriaSizeTypes.map((st, i) => {\r\n return {\r\n sizeTypeId: st.sizeTypeId,\r\n number: Math.min(1, state.criteria.criteriaSizeTypes[i]\r\n ? state.criteria.criteriaSizeTypes[i].number\r\n : 0),\r\n weight: state.criteria.criteriaSizeTypes[i]\r\n ? state.criteria.criteriaSizeTypes[i].weight\r\n : 15000,\r\n weightUnit: state.criteria.criteriaSizeTypes[i]\r\n ? state.criteria.criteriaSizeTypes[i].weightUnit\r\n : \"Kg\",\r\n criteriaSizeTypeId: 0\r\n }\r\n })\r\n }\r\n };\r\n case 'TOGGLE_ADV_LOCATION':\r\n return {\r\n ...state,\r\n advLocationOpened: action.value\r\n };\r\n case 'SELECT_SURROUNDING_ORIGIN':\r\n return {\r\n ...state,\r\n criteria: {\r\n ...state.criteria,\r\n originNearby: action.value\r\n }\r\n };\r\n case 'SELECT_SURROUNDING_DESTINATION':\r\n return {\r\n ...state,\r\n criteria: {\r\n ...state.criteria,\r\n destinationNearby: action.value\r\n }\r\n };\r\n case 'TOGGLE_ADV_DATE':\r\n return {\r\n ...state,\r\n advDateOpened: action.value\r\n };\r\n case 'SELECT_LAST_RATES':\r\n return {\r\n ...state,\r\n criteria: {\r\n ...state.criteria,\r\n lastRates: action.value\r\n }\r\n }\r\n case 'SELECT_SUGGESTED':\r\n return {\r\n ...state,\r\n criteria: {\r\n ...state.criteria,\r\n suggested: action.value\r\n }\r\n };\r\n case \"CRITERIA_SELECT_CARRIERRATES\":\r\n return {\r\n ...state,\r\n criteria: {\r\n ...state.criteria,\r\n includeCarrierRates: action.payload.value\r\n }\r\n };\r\n case 'SELECT_ALL_MARKET':\r\n return {\r\n ...state,\r\n criteria: {\r\n ...state.criteria,\r\n allMarkets: action.value\r\n }\r\n };\r\n case \"UPDATE_INCLUDE_SELLINGRATES\":\r\n return {\r\n ...state,\r\n criteria: {\r\n ...state.criteria,\r\n includeSellingRates: action.payload.value\r\n }\r\n };\r\n case \"SET_DEFAULT_CRITERIA\":\r\n return {\r\n ...state,\r\n criteria: unloadedState.criteria\r\n };\r\n case \"SET_CRITERIA\":\r\n return {\r\n ...state,\r\n criteria: action.criteria,\r\n code: action.criteria.code\r\n };\r\n case \"RESET_CRITERIA\":\r\n return unloadedState;\r\n case \"RECEIVE_CURRENT_USER\":\r\n if (action.error)\r\n return state;\r\n\r\n return {\r\n ...state,\r\n criteria: {\r\n ...state.criteria,\r\n ...(getDefaultCriteria(action.payload.currentUser))\r\n },\r\n };\r\n case \"RECEIVE_EDIT_CLIENT\":\r\n let ecSubscription = getSubscription(action.model);\r\n let ecIsAgent = ecSubscription\r\n && ecSubscription.subscriptionType === \"Agent\";\r\n return {\r\n ...state,\r\n criteria: {\r\n ...state.criteria,\r\n criteriaSubscriptions: [{\r\n subscriptionId: action.model.subscriptionId\r\n }],\r\n loadingCharge: ecIsAgent\r\n ? false\r\n : state.criteria.loadingCharge,\r\n unLoadingCharge: ecIsAgent\r\n ? false\r\n : state.criteria.unLoadingCharge\r\n }\r\n };\r\n case \"RESET_TODAY_DATE\":\r\n return {\r\n ...state,\r\n criteria: {\r\n ...state.criteria,\r\n dateBegin: Moment(action.payload.today).utc().startOf(\"day\").toDate(),\r\n dateEnd: Moment(action.payload.today).utc().add(1, \"months\").startOf(\"day\").toDate()\r\n }\r\n };\r\n case \"SET_CRITERIA_RECENT\":\r\n return {\r\n ...state,\r\n criteria: {\r\n ...state.criteria,\r\n containerType: action.payload.criteria.containerType,\r\n criteriaSizeTypes: action.payload.criteria.criteriaSizeTypes\r\n .concat(action.payload.sizeTypes\r\n .filter(x => !action.payload.criteria.criteriaSizeTypes.some(y => y.sizeTypeId === x.sizeTypeId))\r\n .map(x => ({ sizeTypeId: x.sizeTypeId, number: 0 }))),\r\n origin: action.payload.criteria.origin,\r\n destination: action.payload.criteria.destination,\r\n loadingCharge: action.payload.criteria.loadingCharge,\r\n unLoadingCharge: action.payload.criteria.unLoadingCharge,\r\n }\r\n };\r\n case \"CRITERIA_UPDATE_SHOWFREETIME\":\r\n return {\r\n ...state,\r\n criteria: {\r\n ...state.criteria,\r\n showFreeTime: action.payload.value\r\n }\r\n };\r\n case \"CRITERIA_UPDATE_CBM\":\r\n return {\r\n ...state,\r\n criteria: {\r\n ...state.criteria,\r\n cbm: action.payload.value\r\n }\r\n };\r\n case \"CRITERIA_UPDATE_TON\":\r\n return {\r\n ...state,\r\n criteria: {\r\n ...state.criteria,\r\n ton: action.payload.value\r\n }\r\n };\r\n case \"SELECTION_RESET_OPTIONS\":\r\n return {\r\n ...state,\r\n criteria: action.payload.criteria\r\n }\r\n case \"REQUEST_RECENT_CRITERIA\":\r\n return {\r\n ...state,\r\n recentCriteriaState: {\r\n ...state.recentCriteriaState,\r\n requestTime: action.payload.requestTime,\r\n isLoading: true\r\n }\r\n };\r\n case \"RECEIVE_RECENT_CRITERIA\":\r\n if(action.payload.requestTime !== state.recentCriteriaState.requestTime)\r\n return state;\r\n \r\n return {\r\n ...state,\r\n recentCriteriaState: {\r\n ...state.recentCriteriaState,\r\n isLoading: false,\r\n criterias: action.error ? state.recentCriteriaState.criterias : action.payload.value\r\n }\r\n };\r\n case 'CRITERIA_SELECTION_LOCATION':\r\n if (action.source === Source.Origin) {\r\n return {\r\n ...state,\r\n criteria: {\r\n ...state.criteria,\r\n origin: action.value\r\n }\r\n };\r\n } else {\r\n return {\r\n ...state,\r\n criteria: {\r\n ...state.criteria,\r\n destination: action.value\r\n }\r\n };\r\n };\r\n case \"UPDATE_ORIGINSHIPPINGTYPE\":\r\n return {\r\n ...state,\r\n criteria: {\r\n ...state.criteria,\r\n originShippingType: action.value\r\n }\r\n };\r\n case \"UPDATE_DESTINATIONSHIPPINGTYPE\":\r\n return {\r\n ...state,\r\n criteria: {\r\n ...state.criteria,\r\n destinationShippingType: action.value\r\n }\r\n };\r\n default:\r\n // The following line guarantees that every action in the KnownAction union has been covered by a case above\r\n const exhaustiveCheck: never = action;\r\n }\r\n\r\n // For unrecognized actions (or in cases where actions have no effect), must return the existing state\r\n // (or default initial state if none was supplied)\r\n return state || unloadedState;\r\n};\r\n","import { addTask } from \"../utils/bugFixer\";\r\nimport { Action, Reducer } from 'redux';\r\nimport * as Api from '../api/api';\r\nimport * as Notifications from 'react-notification-system-redux';\r\nimport { AppThunkAction, ApplicationState } from './';\r\nimport { getDefaultHeaders } from '../utils/utils';\r\nimport { ReceiveCurrentUser } from './Account';\r\nimport { ReceiveSelection } from \"./Selection\";\r\n\r\nexport interface SellingRatesState {\r\n requestTime?: number;\r\n isLoading: boolean;\r\n sellingRates: Array;\r\n selectionSellingRates: Array;\r\n createState: {\r\n isLoading: boolean;\r\n requestTime?: number;\r\n },\r\n updateState: {\r\n isLoading: boolean;\r\n requestTime?: number;\r\n },\r\n deleteState: {\r\n isLoading: boolean;\r\n requestTime?: number;\r\n },\r\n selectionSellingRatesState: {\r\n isLoading: boolean;\r\n requestTime?: number;\r\n },\r\n selectedSellingRatesId?: number;\r\n}\r\n\r\ninterface RequestSellingRates {\r\n type: \"REQUEST_SELLINGRATES\";\r\n payload: { requestTime: number; };\r\n}\r\ninterface ReceiveSellingRates {\r\n type: \"RECEIVE_SELLINGRATES\";\r\n payload: {\r\n requestTime: number;\r\n sellingRateses?: Array\r\n };\r\n error?: any;\r\n}\r\n\r\ninterface RequestSelectionSellingRates {\r\n type: \"REQUEST_SELECTION_SELLINGRATES\";\r\n payload: { requestTime: number; };\r\n}\r\ninterface ReceiveSelectionSellingRates {\r\n type: \"RECEIVE_SELECTION_SELLINGRATES\";\r\n payload: {\r\n requestTime: number;\r\n sellingRateses?: Array\r\n };\r\n error?: any;\r\n}\r\n\r\ninterface RequestCreateSellingRates {\r\n type: \"REQUEST_CREATE_SELLINGRATES\";\r\n payload: { requestTime: number; };\r\n}\r\ninterface ReceiveCreateSellingRates {\r\n type: \"RECEIVE_CREATE_SELLINGRATES\";\r\n payload: {\r\n requestTime: number;\r\n sellingRates?: Api.SellingRatesModel\r\n };\r\n error?: any;\r\n}\r\n\r\ninterface RequestUpdateSellingRates {\r\n type: \"REQUEST_UPDATE_SELLINGRATES\";\r\n payload: { requestTime: number; };\r\n}\r\ninterface ReceiveUpdateSellingRates {\r\n type: \"RECEIVE_UPDATE_SELLINGRATES\";\r\n payload: {\r\n requestTime: number;\r\n sellingRates?: Api.SellingRatesModel\r\n };\r\n error?: any;\r\n}\r\n\r\ninterface RequestDeleteSellingRates {\r\n type: \"REQUEST_DELETE_SELLINGRATES\";\r\n payload: { requestTime: number; };\r\n}\r\ninterface ReceiveDeleteSellingRates {\r\n type: \"RECEIVE_DELETE_SELLINGRATES\";\r\n payload: {\r\n requestTime: number;\r\n sellingRatesId: number\r\n };\r\n error?: any;\r\n}\r\n\r\ninterface SellingRatesUpdateSelected {\r\n type: \"SELLINGRATES_UPDATE_SELECTED\";\r\n payload: { id: number; };\r\n}\r\n\r\ntype KnownAction = ReceiveCurrentUser\r\n | RequestSellingRates\r\n | ReceiveSellingRates\r\n | RequestCreateSellingRates\r\n | ReceiveCreateSellingRates\r\n | RequestUpdateSellingRates\r\n | ReceiveUpdateSellingRates\r\n | RequestDeleteSellingRates\r\n | ReceiveDeleteSellingRates\r\n | SellingRatesUpdateSelected\r\n | RequestSelectionSellingRates\r\n | ReceiveSelectionSellingRates\r\n | ReceiveSelection;\r\n\r\nexport const requestSelectionSellingRates = (requestTime: number, model: Api.CriteriaModel, dispatch: (action: KnownAction) => void, getState: () => ApplicationState): Promise => {\r\n let api = new Api.SellingRatesApi();\r\n let task = api.getByTraffic({\r\n model: model\r\n }, { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(sellingRates => {\r\n dispatch({\r\n type: \"RECEIVE_SELECTION_SELLINGRATES\",\r\n payload: {\r\n requestTime: requestTime,\r\n sellingRateses: sellingRates\r\n }\r\n });\r\n })\r\n .catch(err => {\r\n dispatch({\r\n type: \"RECEIVE_SELECTION_SELLINGRATES\",\r\n payload: {\r\n requestTime: requestTime,\r\n },\r\n error: err\r\n });\r\n dispatch(Notifications.error({ message: \"Error searching selling rates\", title: \"Error\", position: \"tc\" }) as any);\r\n });\r\n\r\n dispatch({\r\n type: \"REQUEST_SELECTION_SELLINGRATES\",\r\n payload: { requestTime: requestTime }\r\n });\r\n return task;\r\n}\r\n\r\nexport const actionCreators = {\r\n requestSellingRates: (requestTime: number): AppThunkAction> => (dispatch, getState) => {\r\n let api = new Api.SellingRatesApi();\r\n let task = api.getAll({ credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(sellingRates => {\r\n dispatch({\r\n type: \"RECEIVE_SELLINGRATES\",\r\n payload: {\r\n requestTime: requestTime,\r\n sellingRateses: sellingRates\r\n }\r\n });\r\n })\r\n .catch(err => {\r\n dispatch({\r\n type: \"RECEIVE_SELLINGRATES\",\r\n payload: {\r\n requestTime: requestTime,\r\n },\r\n error: err\r\n });\r\n dispatch(Notifications.error({ message: \"Error searching selling rates\", title: \"Error\", position: \"tc\" }) as any);\r\n });\r\n\r\n dispatch({\r\n type: \"REQUEST_SELLINGRATES\",\r\n payload: { requestTime: requestTime }\r\n });\r\n addTask(task);\r\n return task;\r\n },\r\n requestSelectionSellingRates: (requestTime: number, model: Api.CriteriaModel): AppThunkAction> => (dispatch, getState) => {\r\n return requestSelectionSellingRates(requestTime, model, dispatch, getState);\r\n },\r\n requestCreateSellingRates: (requestTime: number, model: Api.SellingRatesModel): AppThunkAction> => (dispatch, getState) => {\r\n let api = new Api.SellingRatesApi();\r\n let task = api.create({\r\n model: model\r\n }, { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(sellingRates => {\r\n dispatch({\r\n type: \"RECEIVE_CREATE_SELLINGRATES\",\r\n payload: {\r\n requestTime: requestTime,\r\n sellingRates: sellingRates\r\n }\r\n });\r\n })\r\n .catch(err => {\r\n dispatch({\r\n type: \"RECEIVE_CREATE_SELLINGRATES\",\r\n payload: {\r\n requestTime: requestTime,\r\n },\r\n error: err\r\n });\r\n dispatch(Notifications.error({ message: \"Error creating selling rates\", title: \"Error\", position: \"tc\" }) as any);\r\n });\r\n\r\n dispatch({\r\n type: \"REQUEST_CREATE_SELLINGRATES\",\r\n payload: { requestTime: requestTime }\r\n });\r\n addTask(task);\r\n return task;\r\n },\r\n requestUpdateSellingRates: (requestTime: number, model: Api.SellingRatesModel): AppThunkAction> => (dispatch, getState) => {\r\n let api = new Api.SellingRatesApi();\r\n let task = api.update({\r\n model: model\r\n }, { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(sellingRates => {\r\n dispatch({\r\n type: \"RECEIVE_UPDATE_SELLINGRATES\",\r\n payload: {\r\n requestTime: requestTime,\r\n sellingRates: sellingRates\r\n }\r\n });\r\n })\r\n .catch(err => {\r\n dispatch({\r\n type: \"RECEIVE_UPDATE_SELLINGRATES\",\r\n payload: {\r\n requestTime: requestTime,\r\n },\r\n error: err\r\n });\r\n dispatch(Notifications.error({ message: \"Error creating selling rates\", title: \"Error\", position: \"tc\" }) as any);\r\n });\r\n\r\n dispatch({\r\n type: \"REQUEST_UPDATE_SELLINGRATES\",\r\n payload: { requestTime: requestTime }\r\n });\r\n addTask(task);\r\n return task;\r\n },\r\n requestDeleteSellingRates: (requestTime: number, sellingRatesId: number): AppThunkAction> => (dispatch, getState) => {\r\n let api = new Api.SellingRatesApi();\r\n let task = api._delete({\r\n sellingRatesId: sellingRatesId\r\n }, { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(() => {\r\n dispatch({\r\n type: \"RECEIVE_DELETE_SELLINGRATES\",\r\n payload: {\r\n requestTime: requestTime,\r\n sellingRatesId: sellingRatesId\r\n }\r\n });\r\n })\r\n .catch(err => {\r\n dispatch({\r\n type: \"RECEIVE_DELETE_SELLINGRATES\",\r\n payload: {\r\n requestTime: requestTime,\r\n sellingRatesId: sellingRatesId\r\n },\r\n error: err\r\n });\r\n dispatch(Notifications.error({ message: \"Error deleting selling rates\", title: \"Error\", position: \"tc\" }) as any);\r\n });\r\n\r\n dispatch({\r\n type: \"REQUEST_DELETE_SELLINGRATES\",\r\n payload: { requestTime: requestTime }\r\n });\r\n addTask(task);\r\n return task;\r\n },\r\n sellingRatesUpdateSelected: (id: number) => { type: \"SELLINGRATES_UPDATE_SELECTED\", payload: { id: id } }\r\n};\r\n\r\nconst unloadedState: SellingRatesState = {\r\n isLoading: false,\r\n sellingRates: [],\r\n selectionSellingRates: [],\r\n createState: {\r\n isLoading: false\r\n },\r\n updateState: {\r\n isLoading: false\r\n },\r\n deleteState: {\r\n isLoading: false\r\n },\r\n selectionSellingRatesState: {\r\n isLoading: false\r\n }\r\n};\r\n\r\nexport const reducer: Reducer = (state: SellingRatesState, incomingAction: Action) => {\r\n const action = incomingAction as KnownAction;\r\n switch (action.type) {\r\n case \"REQUEST_SELLINGRATES\":\r\n return {\r\n ...state,\r\n requestTime: action.payload.requestTime,\r\n isLoading: true\r\n };\r\n case \"RECEIVE_SELLINGRATES\":\r\n if (action.payload.requestTime !== state.requestTime)\r\n return state;\r\n\r\n return {\r\n ...state,\r\n isLoading: false,\r\n sellingRates: action.error\r\n ? state.sellingRates\r\n : action.payload.sellingRateses\r\n };\r\n case \"REQUEST_SELECTION_SELLINGRATES\":\r\n return {\r\n ...state,\r\n selectionSellingRatesState: {\r\n ...state.selectionSellingRatesState,\r\n isLoading: false,\r\n requestTime: action.payload.requestTime\r\n },\r\n selectionSellingRates: []\r\n };\r\n case \"RECEIVE_SELECTION_SELLINGRATES\":\r\n if (action.payload.requestTime !== state.selectionSellingRatesState.requestTime)\r\n return state;\r\n\r\n return {\r\n ...state,\r\n selectionSellingRatesState: {\r\n ...state.selectionSellingRatesState,\r\n isLoading: false\r\n },\r\n selectionSellingRates: action.error\r\n ? state.selectionSellingRates\r\n : action.payload.sellingRateses\r\n };\r\n case \"REQUEST_CREATE_SELLINGRATES\":\r\n return {\r\n ...state,\r\n createState: {\r\n ...state.createState,\r\n isLoading: true,\r\n requestTime: action.payload.requestTime\r\n }\r\n };\r\n case \"RECEIVE_CREATE_SELLINGRATES\":\r\n return {\r\n ...state,\r\n createState: {\r\n ...state.createState,\r\n isLoading: false,\r\n },\r\n sellingRates: action.error\r\n ? state.sellingRates\r\n : state.sellingRates\r\n .concat([action.payload.sellingRates])\r\n };\r\n case \"REQUEST_UPDATE_SELLINGRATES\":\r\n return {\r\n ...state,\r\n updateState: {\r\n ...state.updateState,\r\n isLoading: true,\r\n requestTime: action.payload.requestTime\r\n }\r\n };\r\n case \"RECEIVE_UPDATE_SELLINGRATES\":\r\n return {\r\n ...state,\r\n deleteState: {\r\n ...state.deleteState,\r\n isLoading: false,\r\n },\r\n sellingRates: action.error\r\n ? state.sellingRates\r\n : state.sellingRates\r\n .map(x => x.sellingRatesId === action.payload.sellingRates.sellingRatesId\r\n ? { ...x, ...action.payload.sellingRates }\r\n : x)\r\n };\r\n case \"REQUEST_DELETE_SELLINGRATES\":\r\n return {\r\n ...state,\r\n deleteState: {\r\n ...state.deleteState,\r\n isLoading: true,\r\n requestTime: action.payload.requestTime\r\n }\r\n };\r\n case \"RECEIVE_DELETE_SELLINGRATES\":\r\n return {\r\n ...state,\r\n deleteState: {\r\n ...state.deleteState,\r\n isLoading: false,\r\n },\r\n sellingRates: action.error\r\n ? state.sellingRates\r\n : state.sellingRates\r\n .filter(x => x.sellingRatesId !== action.payload.sellingRatesId)\r\n };\r\n case \"SELLINGRATES_UPDATE_SELECTED\":\r\n return {\r\n ...state,\r\n selectedSellingRatesId: action.payload.id\r\n };\r\n case \"RECEIVE_SELECTION\":\r\n return {\r\n ...state,\r\n selectionSellingRates: [],\r\n };\r\n case \"RECEIVE_CURRENT_USER\":\r\n return unloadedState;\r\n default:\r\n // The following line guarantees that every action in the KnownAction union has been covered by a case above\r\n const exhaustiveCheck: never = action;\r\n }\r\n\r\n // For unrecognized actions (or in cases where actions have no effect), must return the existing state\r\n // (or default initial state if none was supplied)\r\n return state || unloadedState;\r\n};\r\n","import { addTask } from \"../utils/bugFixer\";\r\nimport { Action, Reducer } from 'redux';\r\nimport * as Api from '../api/api';\r\nimport { AppThunkAction, ApplicationState } from './';\r\n\r\nexport interface SeedState {\r\n isLoading: boolean;\r\n requestTime?: number;\r\n isCarriersLoading: boolean;\r\n carriersRequestTime?: number;\r\n sizeTypes: { [id: number]: Api.SizeTypeModel };\r\n currencies: { [id: number]: Api.CurrencyModel };\r\n languages: { [id: number]: Api.LanguageModel };\r\n chargeNames: { [id: number]: Api.ChargeNameModel };\r\n carriers: { [id: number]: Api.CarrierModel };\r\n carrierGroups: { [id: number]: Api.CarrierGroupModel };\r\n portsZones: { [id: number]: Api.PortsZoneModel };\r\n markets: { [id: number]: Api.MarketModel };\r\n inlandCarriers: { [id: number]: Api.InlandCarrierModel };\r\n carrierRatesPlatforms: { [id: number]: Api.CarrierRatesPlatformModel };\r\n countries: { [id: number]: Api.LocationModel };\r\n servicesOptions: Api.ServicesOptionsModel;\r\n optionsIsLoading: boolean;\r\n optionsRequestTime: number;\r\n}\r\n\r\nexport interface ResetTodayDate { type: 'RESET_TODAY_DATE', payload: { today: Date } }\r\n\r\ninterface RequestSeed {\r\n type: 'REQUEST_SEED';\r\n payload: {\r\n requestTime: number;\r\n }\r\n}\r\ninterface ReceiveSeed {\r\n type: 'RECEIVE_SEED';\r\n payload: {\r\n requestTime: number;\r\n sizeTypes: { [id: number]: Api.SizeTypeModel };\r\n currencies: { [id: number]: Api.CurrencyModel };\r\n languages: { [id: number]: Api.LanguageModel };\r\n chargeNames: { [id: number]: Api.ChargeNameModel };\r\n carriers: { [id: number]: Api.CarrierModel };\r\n carrierGroups: { [id: number]: Api.CarrierGroupModel };\r\n portsZones: { [id: number]: Api.PortsZoneModel };\r\n markets: { [id: number]: Api.MarketModel };\r\n inlandCarriers: { [id: number]: Api.InlandCarrierModel };\r\n carrierRatesPlatforms: { [id: number]: Api.CarrierRatesPlatformModel };\r\n countries: { [id: number]: Api.LocationModel };\r\n }\r\n}\r\n\r\ninterface RequestSeedCarriers {\r\n type: 'REQUEST_SEED_CARRIERS'\r\n payload: { requestTime: number; }\r\n}\r\ninterface ReceiveSeedCarriers {\r\n type: 'RECEIVE_SEED_CARRIERS'\r\n payload: {\r\n requestTime: number;\r\n carriers?: { [id: number]: Api.CarrierModel };\r\n };\r\n error?: any;\r\n}\r\n\r\ninterface RequestServicesOptions {\r\n type: 'REQUEST_SERVICESOPTIONS';\r\n payload: {\r\n requestTime: number;\r\n }\r\n}\r\ninterface ReceiveServicesOptions {\r\n type: 'RECEIVE_SERVICESOPTIONS';\r\n payload: {\r\n requestTime: number;\r\n servicesOptions?: Api.ServicesOptionsModel;\r\n };\r\n error?: any;\r\n}\r\n\r\nexport type KnownAction = RequestSeed\r\n | ReceiveSeed\r\n | RequestServicesOptions\r\n | ReceiveServicesOptions\r\n | RequestSeedCarriers\r\n | ReceiveSeedCarriers;\r\n\r\nexport const requestSeed = (requestTime: number, dispatch: (action: KnownAction) => void, getState: () => ApplicationState): Promise => {\r\n if (requestTime === getState().seed.requestTime)\r\n return Promise.resolve();\r\n\r\n let api = new Api.SeedApi();\r\n let fetchTask = api.getSeed().then(seed => {\r\n \r\n dispatch({\r\n type: \"RECEIVE_SEED\",\r\n payload: {\r\n requestTime: requestTime,\r\n sizeTypes: seed.sizeTypes,\r\n currencies: seed.currencies,\r\n languages: seed.languages,\r\n chargeNames: seed.chargeNames,\r\n carriers: seed.carriers,\r\n carrierGroups: seed.carrierGroups,\r\n portsZones: seed.portsZones,\r\n markets: seed.markets,\r\n inlandCarriers: seed.inlandCarriers,\r\n carrierRatesPlatforms: seed.carrierRatesPlatforms,\r\n countries: seed.countries\r\n }\r\n });\r\n }).catch(error => {\r\n console.log('Error fetching seed: ' + error.message);\r\n });\r\n\r\n dispatch({ type: \"REQUEST_SEED\", payload: { requestTime: requestTime }});\r\n addTask(fetchTask);\r\n\r\n return fetchTask;\r\n}\r\n\r\nexport const requestSeedCarriers = (requestTime: number, dispatch: (action: KnownAction) => void, getState: () => ApplicationState): Promise => {\r\n let api = new Api.SeedApi();\r\n let fetchTask = api.getCarriers().then(carriers => {\r\n\r\n dispatch({\r\n type: \"RECEIVE_SEED_CARRIERS\",\r\n payload: {\r\n requestTime: requestTime,\r\n carriers: carriers\r\n }\r\n });\r\n }).catch(error => {\r\n dispatch({\r\n type: \"RECEIVE_SEED_CARRIERS\",\r\n payload: {\r\n requestTime: requestTime,\r\n },\r\n error: error\r\n });\r\n console.log('Error fetching seed: ' + error.message);\r\n });\r\n\r\n dispatch({ type: \"REQUEST_SEED_CARRIERS\", payload: { requestTime: requestTime } });\r\n\r\n return fetchTask;\r\n}\r\n\r\nexport const requestServicesOptions = (requestTime: number, dispatch: (action: KnownAction) => void, getState: () => ApplicationState): Promise => {\r\n let api = new Api.SeedApi();\r\n let fetchTask = api.getOptions().then(options => {\r\n dispatch({\r\n type: \"RECEIVE_SERVICESOPTIONS\",\r\n payload: {\r\n requestTime: requestTime,\r\n servicesOptions: options\r\n }\r\n });\r\n }).catch(error => {\r\n console.error('Error fetching options: ' + error.message);\r\n dispatch({\r\n type: \"RECEIVE_SERVICESOPTIONS\",\r\n payload: {\r\n requestTime: requestTime,\r\n },\r\n error: error\r\n });\r\n });\r\n\r\n dispatch({ type: \"REQUEST_SERVICESOPTIONS\", payload: { requestTime: requestTime } });\r\n addTask(fetchTask);\r\n\r\n return fetchTask;\r\n}\r\n\r\nexport const actionCreators = {\r\n requestSeed: (requestTime: number): AppThunkAction => (dispath, getState) => {\r\n requestSeed(requestTime, dispath, getState);\r\n },\r\n requestServicesOptions: (requestTime: number): AppThunkAction => (dispath, getState) => {\r\n requestSeed(requestTime, dispath, getState);\r\n },\r\n};\r\n\r\nconst unloadedState: SeedState = {\r\n currencies: {},\r\n languages: {},\r\n sizeTypes: {},\r\n chargeNames: {},\r\n carriers: {},\r\n carrierGroups: {},\r\n portsZones: {},\r\n markets: {},\r\n inlandCarriers: {},\r\n carrierRatesPlatforms: {},\r\n countries: {},\r\n requestTime: 0,\r\n isLoading: false,\r\n servicesOptions: {},\r\n optionsIsLoading: false,\r\n optionsRequestTime: 0,\r\n isCarriersLoading: false\r\n};\r\n\r\nexport const reducer: Reducer = (state: SeedState, incomingAction: Action) => {\r\n const action = incomingAction as KnownAction;\r\n switch (action.type) {\r\n case 'REQUEST_SEED':\r\n return {\r\n ...state,\r\n isLoading: true,\r\n requestTime: action.payload.requestTime\r\n };\r\n case 'RECEIVE_SEED':\r\n if (action.payload.requestTime !== state.requestTime)\r\n return state;\r\n\r\n return {\r\n ...state,\r\n isLoading: false,\r\n currencies: action.payload.currencies,\r\n sizeTypes: action.payload.sizeTypes,\r\n languages: action.payload.languages,\r\n chargeNames: action.payload.chargeNames,\r\n carriers: action.payload.carriers,\r\n carrierGroups: action.payload.carrierGroups,\r\n portsZones: action.payload.portsZones,\r\n markets: action.payload.markets,\r\n inlandCarriers: action.payload.inlandCarriers,\r\n carrierRatesPlatforms: action.payload.carrierRatesPlatforms,\r\n countries: action.payload.countries\r\n };\r\n case \"REQUEST_SERVICESOPTIONS\":\r\n return {\r\n ...state,\r\n optionsIsLoading: true,\r\n optionsRequestTime: action.payload.requestTime\r\n };\r\n case \"RECEIVE_SERVICESOPTIONS\":\r\n if (action.payload.requestTime !== state.optionsRequestTime)\r\n return state;\r\n\r\n return {\r\n ...state,\r\n optionsIsLoading: false,\r\n servicesOptions: action.payload.servicesOptions\r\n };\r\n case \"REQUEST_SEED_CARRIERS\":\r\n return {\r\n ...state,\r\n isCarriersLoading: true,\r\n carriersRequestTime: action.payload.requestTime\r\n };\r\n case \"RECEIVE_SEED_CARRIERS\":\r\n if (action.payload.requestTime !== state.carriersRequestTime)\r\n return state;\r\n\r\n return {\r\n ...state,\r\n isCarriersLoading: false,\r\n carriers: action.error\r\n ? state.carriers\r\n : action.payload.carriers\r\n };\r\n default:\r\n // The following line guarantees that every action in the KnownAction union has been covered by a case above\r\n const exhaustiveCheck: never = action;\r\n }\r\n\r\n // For unrecognized actions (or in cases where actions have no effect), must return the existing state\r\n // (or default initial state if none was supplied)\r\n return state || unloadedState;\r\n};","import { Action, Reducer } from 'redux';\r\nimport * as Api from '../api/api';\r\nimport Moment from 'moment';\r\nimport * as _ from 'lodash';\r\nimport { AppThunkAction } from './';\r\nimport { push } from 'connected-react-router';\r\nimport * as CriteriaUtils from '../utils/criteriaUtils';\r\nimport * as selectionConnect from '../connects/selectionConnect';\r\nimport {\r\n getCarrierOfferKey, dictionnaryToArray,\r\n getDefaultHeaders,\r\n goToFormModel,\r\n removeFirstOccurence\r\n} from \"../utils/utils\"\r\nimport * as Criteria from './Criteria';\r\nimport { Logout } from './Account';\r\nimport { ReceiveCurrentUser } from \"./Account\";\r\nimport { superTransitId } from \"../utils/constants\";\r\nimport * as Notifications from 'react-notification-system-redux';\r\nimport Download from \"downloadjs\";\r\nimport * as MimeTypes from \"mime-types\";\r\nimport { getText } from '../utils/langTexts';\r\nimport { requestSelectionSellingRates } from './SellingRates';\r\nimport { requestSeedCarriers } from './Seed';\r\nimport {getAllDeparts, getRouteConfig, getSelectedDepart} from '../utils/routeUtils';\r\nimport {act} from \"react-dom/test-utils\";\r\n\r\n\r\n// -----------------\r\n// STATE - This defines the type of data maintained in the Redux store.\r\nexport interface SelectionState {\r\n code: string;\r\n criteriaLoaded: Api.CriteriaModel;\r\n selection: Api.SelectionModel;\r\n firmNewsesState: FirmNewsesState;\r\n carrierRatesOffersCache: Array;\r\n carrierOfferStates: { [id: string]: CarrierOfferState };\r\n carrierRatesStates: {\r\n [code: string]: {\r\n requestTime?: number;\r\n isLoading: boolean;\r\n carrierRatesPlatformId: number;\r\n errors: Array\r\n }\r\n }\r\n selectedCarrierOfferId: string;\r\n filterModel: SelectionFilterModel;\r\n isLoading: boolean;\r\n isCarrierRatesLoading: boolean;\r\n isSchedulesLoading: boolean;\r\n requestTime: number;\r\n advCriteriaOpened: boolean;\r\n advContainerOpened: boolean;\r\n currentPage: number;\r\n errorMessages: Array;\r\n warningMessages: Array;\r\n}\r\n\r\nexport interface FirmNewsesState {\r\n isOpen: boolean;\r\n selectedFirmNewsId?: number;\r\n}\r\n\r\nexport interface CarrierOfferState {\r\n showAllDeparts?: boolean;\r\n selectedDepartId: number;\r\n selectedServiceId: number;\r\n detailsOpened: boolean;\r\n sizeTypeDetailsOpened: { [id: number]: boolean };\r\n documentInfoDetailsOpened: { [id: number]: boolean };\r\n blDetailsOpened: boolean;\r\n lclDetailsOpened: boolean;\r\n ratesDetailsOpened: boolean;\r\n ratesOfferDescriptionOpened: boolean;\r\n contactsOpened: boolean;\r\n isLoading: boolean;\r\n groupOpened: boolean;\r\n sendQuotationState: RequestState;\r\n downloadDocumentState: RequestState;\r\n goToWebSiteState: RequestState;\r\n}\r\n\r\nexport interface SelectionFilterModel {\r\n maxRatesDate: number;\r\n minRatesDate: number;\r\n maxEtaDate: number;\r\n minEtaDate: number;\r\n hideNoRates: boolean;\r\n ratesType: RatesTypeFilter;\r\n ratesTypeName: string;\r\n maxAllIn: number;\r\n maxTransitTime: number;\r\n maxTransShipment: number;\r\n onlyShowBestTt: boolean;\r\n byRatesOffer: boolean;\r\n byTransShipment: boolean;\r\n carriersOpened: boolean;\r\n carrierGroupsOpened: { [id: number]: boolean };\r\n carriersSelected: { [id: number]: boolean };\r\n carrierOffersSelected: { [id: string]: boolean };\r\n sortBy: CarrierOfferSort;\r\n}\r\n\r\nexport interface SelectionFilterOptions {\r\n minAllIn: number;\r\n maxAllIn: number;\r\n minEtaDate: number;\r\n maxEtaDate: number;\r\n minTransitTime: number;\r\n maxTransitTime: number;\r\n minRatesDate: number;\r\n maxRatesDate: number;\r\n maxTransShipment: number;\r\n carriersSelected: { [id: number]: boolean }\r\n}\r\n\r\nexport type CarrierOfferSort =\r\n \"AllIn\"\r\n | \"TransitTime\"\r\n | \"TransShipments\"\r\n | \"Carrier\"\r\n | \"Validity\"\r\n | \"Pol\"\r\n | \"Pod\"\r\n | \"AllInCtr1\"\r\n | \"AllInCtr2\"\r\n | \"AllInCtr3\"\r\n | \"AllInCtr4\"\r\n ;\r\n\r\nexport type RatesTypeFilter = \"Fak\"\r\n | \"Special\"\r\n | \"AllRates\";\r\n\r\nexport enum Source {\r\n Origin = 1,\r\n Destination = 2\r\n}\r\n\r\ninterface RequestState {\r\n isLoading: boolean;\r\n requestTime?: number;\r\n}\r\n\r\n// -----------------\r\n// ACTIONS - These are serializable (hence replayable) descriptions of state transitions.\r\n// They do not themselves have any side-effects; they just describe something that is going to happen.\r\n// Use @typeName and isActionType for type detection that works even after serialization/deserialization.\r\ninterface RequestSelection { type: 'REQUEST_SELECTION'; payload: { code: string, requestTime: number } }\r\nexport interface ReceiveSelection {\r\n type: 'RECEIVE_SELECTION';\r\n payload: {\r\n requestTime: number;\r\n selection: Api.SelectionModel;\r\n criteria: Api.CriteriaModel;\r\n errorMessage?: string\r\n }\r\n error?: any;\r\n}\r\n//interface InitializeFilter { type: 'INITIALIZE_FILTER', currencies: { [id: number]: Api.CurrencyModel }, criteria: Api.CriteriaModel}\r\ninterface SelectionResetFilter {\r\n type: 'SELECTION_RESET_FILTER',\r\n payload: { filterOptions: SelectionFilterOptions, defaultHideNoRates: boolean; }\r\n}\r\n\r\ninterface SelectFilterMaxAllIn { type: 'SELECT_FILTER_MAX_ALLIN', value: number }\r\ninterface SelectFilterMaxTransitTime { type: 'SELECT_FILTER_MAX_TRANSITTIME', value: number }\r\ninterface SelectFilterMaxTransShipment { type: 'SELECT_FILTER_MAX_TRANSSHIPMENT', payload: { value: number } }\r\n\r\ninterface SelectFilterEtaDate { type: 'SELECT_FILTER_ETA_DATE', payload: { value: number } }\r\ninterface SelectFilterRatesDate { type: 'SELECT_FILTER_RATES_DATE', min: number, max: number }\r\ninterface SelectFilterHideNoRates { type: 'SELECT_FILTER_HIDE_NO_RATES', value: boolean }\r\n\r\ninterface SelectFilterRatesType { type: 'SELECT_FILTER_RATES_TYPE', value: RatesTypeFilter }\r\ninterface SelectFilterCarrier { type: 'SELECT_FILTER_CARRIER', carrierId: number, value: boolean }\r\ninterface SelectFilterCarriers { type: 'SELECT_FILTER_CARRIERS', carrierIds: Array, value: boolean }\r\ninterface SelectFilterCarrierOffer { type: 'SELECT_FILTER_CARRIEROFFER', carrierOfferKey: string, value: boolean }\r\ninterface SelectFilterAllCarrierOffer { type: 'SELECT_FILTER_ALL_CARRIEROFFER', value: boolean }\r\ninterface SelectFilterSort { type: 'SELECT_FILTER_SORT', value: CarrierOfferSort }\r\ninterface UpdateFilterRatesTypeName { type: 'UPDATE_FILTER_RATESTYPE_NAME', value: string }\r\ninterface ToggleFilterCarrierGroup { type: 'TOGGLE_FILTER_CARRIERGROUP', carrierGroupId: number }\r\ninterface SelectFilterAllCarrier { type: \"SELECT_FILTER_ALL_CARRIER\"; payload: { value: boolean; carrierIds: Array } }\r\ninterface SelectFilterByRatesOffer { type: \"SELECT_FILTER_BY_RATESOFFER\"; payload: { value: boolean; } }\r\ninterface SelectFilterByTranshipment { type: \"SELECT_FILTER_BY_TRANSHIPMENT\"; payload: { value: boolean; } }\r\n\r\ninterface ToggleAdvCriteria { type: 'TOGGLE_ADV_CRITERIA', value: boolean }\r\ninterface OpenAdvContainer { type: 'OPEN_ADV_CONTAINER' }\r\ninterface CloseAdvContainer { type: 'CLOSE_ADV_CONTAINER' }\r\n\r\ninterface RequestDownloadRates { type: 'REQUEST_DOWNLOAD_RATES', chargeSetId: number }\r\ninterface ReceiveDownloadRates { type: 'RECEIVE_DOWNLOAD_RATES', success: boolean }\r\n\r\ninterface SelectCarrierOffer { type: 'SELECT_CARRIEROFFER', carrierOfferId: string }\r\ninterface SelectCarrierOfferDepart { type: 'SELECT_CARRIEROFFER_DEPART', id: string, departId: number }\r\ninterface ToggleCarrierOfferDetails { type: 'TOGGLE_CARRIEROFFER_DETAILS', id: string, value: boolean }\r\ninterface ToggleCarrierOfferSizeTypeDetails { type: 'TOGGLE_CARRIEROFFER_SIZETYPE_DETAILS', id: string, value: boolean, sizeTypeId: number }\r\ninterface ToggleCarrierOfferDocumentDetails { type: 'TOGGLE_CARRIEROFFER_DOCUMENTINFO_DETAILS', id: string, value: boolean, documentInfoId: number }\r\ninterface ToggleCarrierOfferBlDetails { type: 'TOGGLE_CARRIEROFFER_BL_DETAILS', id: string, value: boolean }\r\ninterface ToggleCarrierOfferLclDetails { type: 'TOGGLE_CARRIEROFFER_LCL_DETAILS', payload: { id: string, value: boolean } }\r\ninterface ToggleCarrierOfferRatesDetails { type: 'TOGGLE_CARRIEROFFER_RATES_DETAILS', id: string, value: boolean }\r\ninterface ToggleCarrierOfferContacts { type: 'TOGGLE_CARRIEROFFER_CONTACTS', id: string, value: boolean }\r\ninterface ToggleCarrierOfferRatesOfferDescription { type: 'TOGGLE_CARRIEROFFER_RATESOFFER_DESCRIPTION', id: string, value: boolean }\r\n\r\nexport interface SelectionGoToQuotation { type: 'SELECTION_GO_TO_QUOTATION'; payload: { chargeSetId: number; departId: number; time: number } }\r\ninterface SelectionSetCarrierOfferStateLoading { type: 'SELECTION_SET_CARRIEROFFERSTATE_LOADING'; id: string; value: boolean }\r\n\r\ninterface SelectionRequestSendAgentQuotation { type: 'SELECTION_REQUEST_SEND_AGENT_QUOTATION'; requestTime: number; key: string }\r\ninterface SelectionReceiveSendAgentQuotation { type: 'SELECTION_RECEIVE_SEND_AGENT_QUOTATION'; requestTime: number; key: string }\r\n\r\ninterface SelectionRequestDownloadRatesDocument { type: 'SELECTION_REQUEST_DOWNLOAD_RATES_DOCUMENT'; requestTime: number; key: string }\r\ninterface SelectionReceiveDownloadRatesDocument { type: 'SELECTION_RECEIVE_DOWNLOAD_RATES_DOCUMENT'; requestTime: number; key: string }\r\n\r\ninterface SelectionOpenFirmNews { type: 'SELECTION_OPEN_FIRMNEWS'; firmNewsId: number }\r\ninterface SelectionCloseFirmNews { type: 'SELECTION_CLOSE_FIRMNEWS' }\r\n\r\ninterface SelectionRequestGoCarrierWebSite { type: 'SELECTION_REQUEST_GO_CARRIER_WEBSITE'; payload: { id: string; requestTime: number; } }\r\ninterface SelectionReceiveGoCarrierWebSite { type: 'SELECTION_RECEIVE_GO_CARRIER_WEBSITE'; payload: { id: string; requestTime: number; } }\r\n\r\ninterface SelectionOpenCarrierOfferGroup {\r\n type: 'SELECTION_OPEN_CARRIEROFFER_GROUP';\r\n payload: { id: string; }\r\n}\r\ninterface SelectionCloseCarrierOfferGroup {\r\n type: 'SELECTION_CLOSE_CARRIEROFFER_GROUP';\r\n payload: { id: string; }\r\n}\r\n\r\ninterface SelectionSelectCarrierOfferService {\r\n type: 'SELECTION_SELECT_CARRIEROFFER_SERVICE';\r\n payload: { key: string; routeServiceId: number; }\r\n}\r\n\r\nexport interface SelectionCarrierRatesLoadingStarted {\r\n type: 'SELECTION_CARRIERRATES_LOADING_STARTED';\r\n}\r\nexport interface SelectionCarrierRatesLoadingEnded {\r\n type: 'SELECTION_CARRIERRATES_LOADING_ENDED';\r\n}\r\nexport interface SelectionSchedulesLoadingStarted {\r\n type: 'SELECTION_SCHEDULES_LOADING_STARTED';\r\n}\r\nexport interface SelectionSchedulesLoadingEnded {\r\n type: 'SELECTION_SCHEDULES_LOADING_ENDED';\r\n}\r\n\r\nexport interface SelectionRequestCarrierRates {\r\n type: 'SELECTION_REQUEST_CARRIERRATES';\r\n payload: { carrierRatesPlatform: Api.CarrierRatesPlatformModel; requestTime: number; }\r\n}\r\n\r\nexport interface SelectionReceiveCarrierRates {\r\n type: 'SELECTION_RECEIVE_CARRIERRATES';\r\n payload: {\r\n carrierRatesPlatform: Api.CarrierRatesPlatformModel;\r\n requestTime: number;\r\n carrierOffers?: Array;\r\n fetcherErrors?: Array;\r\n isLoading: boolean;\r\n error?: any;\r\n }\r\n error?: any;\r\n}\r\n\r\ninterface SelectionUpdateOnlyBestTt {\r\n type: \"SELECTION_UPDATE_ONLYBESTTT\";\r\n payload: { value: boolean; }\r\n}\r\n\r\ninterface SelectPage { type: 'SELECT_PAGE', page: number }\r\nexport interface SelectionResetOptions {\r\n type: 'SELECTION_RESET_OPTIONS';\r\n payload: { filter: SelectionFilterModel; criteria: Api.CriteriaModel; }\r\n}\r\n\r\ninterface SelectionFilterOpenCarriers {\r\n type: \"SELECTION_FILTER_OPEN_CARRIERS\";\r\n}\r\ninterface SelectionFilterCloseCarriers {\r\n type: \"SELECTION_FILTER_CLOSE_CARRIERS\";\r\n}\r\n\r\ninterface UpdateCarrierOfferShowAllDeparts {\r\n type: \"UPDATE_CARRIEROFFER_SHOWALLDEPARTS\";\r\n payload: { value: boolean; id: string; }\r\n}\r\n\r\n// Declare a 'discriminated union' type. This guarantees that all references to 'type' properties contain one of the\r\n// declared type strings (and not any other arbitrary string).\r\ntype KnownAction = RequestSelection\r\n | ReceiveSelection\r\n | SelectFilterMaxAllIn | SelectFilterMaxTransitTime\r\n | SelectFilterEtaDate | ToggleAdvCriteria | SelectPage\r\n | SelectFilterRatesType | SelectFilterRatesDate\r\n | SelectFilterMaxTransShipment\r\n | SelectCarrierOfferDepart\r\n | ToggleCarrierOfferDetails\r\n | ToggleCarrierOfferSizeTypeDetails\r\n | ToggleCarrierOfferDocumentDetails\r\n | ToggleCarrierOfferBlDetails\r\n | ToggleCarrierOfferRatesDetails | SelectionResetFilter\r\n | SelectionRequestSendAgentQuotation\r\n | SelectionReceiveSendAgentQuotation\r\n | SelectFilterCarrier\r\n | SelectFilterCarriers\r\n | ToggleFilterCarrierGroup\r\n | SelectFilterCarrierOffer\r\n | SelectFilterAllCarrierOffer\r\n | SelectFilterHideNoRates\r\n | ToggleCarrierOfferContacts | SelectFilterSort\r\n | SelectionRequestDownloadRatesDocument\r\n | SelectionReceiveDownloadRatesDocument\r\n | ToggleCarrierOfferRatesOfferDescription\r\n | SelectCarrierOffer\r\n | UpdateFilterRatesTypeName\r\n | SelectionGoToQuotation\r\n | SelectionSetCarrierOfferStateLoading\r\n | SelectionOpenFirmNews | SelectionCloseFirmNews\r\n | ReceiveCurrentUser | SelectFilterAllCarrier\r\n | SelectFilterByRatesOffer\r\n | SelectFilterByTranshipment\r\n | ToggleCarrierOfferLclDetails\r\n | SelectionRequestGoCarrierWebSite\r\n | SelectionReceiveGoCarrierWebSite\r\n | Logout\r\n | SelectionOpenCarrierOfferGroup\r\n | SelectionCloseCarrierOfferGroup\r\n | SelectionCarrierRatesLoadingStarted\r\n | SelectionCarrierRatesLoadingEnded\r\n | SelectionSchedulesLoadingStarted\r\n | SelectionSchedulesLoadingEnded\r\n | SelectionSelectCarrierOfferService\r\n | SelectionRequestCarrierRates\r\n | SelectionReceiveCarrierRates\r\n | SelectionUpdateOnlyBestTt\r\n | SelectionResetOptions\r\n | SelectionFilterOpenCarriers\r\n | SelectionFilterCloseCarriers\r\n | OpenAdvContainer\r\n | CloseAdvContainer\r\n | UpdateCarrierOfferShowAllDeparts\r\n ;\r\ntype KnownCriteriaAction = Criteria.RequestCriteriaAction | Criteria.ReceiveCriteriaAction;\r\n\r\n// ----------------\r\n// ACTION CREATORS - These are functions exposed to UI components that will trigger a state transition.\r\n// They don't directly mutate state, but they can have external side-effects (such as loading data).\r\n\r\nexport const getTableTransitTime = (carrierOffer: Api.CarrierOfferModel, carrierOfferStates: { [key: string]: CarrierOfferState }): number | undefined => {\r\n if((carrierOffer.chargeSet?.transitTime \r\n || (carrierOffer.chargeSet?.transShipments && carrierOffer.chargeSet?.transShipments.length !== 0))\r\n && !carrierOffer.chargeSet?.ratesFetchedRecordId){\r\n return carrierOffer.chargeSet?.transitTime;\r\n }\r\n\r\n if (carrierOffer.chargeSet\r\n && carrierOffer.chargeSet.departs\r\n && carrierOffer.chargeSet.departs.length !== 0\r\n && carrierOffer.chargeSet.departs[0].transitTime) {\r\n return carrierOffer.chargeSet.departs[0].transitTime\r\n }\r\n\r\n if (carrierOffer.chargeSet && carrierOffer.chargeSet.transitTime > 0) {\r\n return carrierOffer.chargeSet.transitTime\r\n }\r\n\r\n\r\n let routeConfig = getRouteConfig(carrierOffer, carrierOfferStates[getCarrierOfferKey(carrierOffer)]);\r\n if (!routeConfig)\r\n return undefined;\r\n\r\n if (carrierOffer.chargeSet?.routeServiceId && routeConfig.routeServiceId !== carrierOffer.chargeSet.routeServiceId) {\r\n return null;\r\n }\r\n\r\n return routeConfig.departs.length !== 0\r\n && routeConfig.departs[0].transitTime\r\n ? routeConfig.departs[0].transitTime\r\n : routeConfig.transitTime;\r\n}\r\n\r\nexport const actionCreators = {\r\n searchSelection: (code: string, requestTime: number): AppThunkAction> => (dispatch, getState) => {\r\n if (requestTime === getState().selection.requestTime)\r\n return Promise.resolve();\r\n\r\n let selectionApi = new Api.SelectionApi();\r\n let criteriaApi = new Api.CriteriaApi();\r\n let ratesFetcherApi = new Api.RatesFetcherApi();\r\n\r\n let task = new Promise((resolve, reject) => {\r\n criteriaApi.getCriteria({ code: code },\r\n { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(criteria => {\r\n dispatch({ type: 'RECEIVE_CRITERIA', criteria: criteria, requestTime: requestTime });\r\n if (CriteriaUtils.hasAdvanced(criteria)) {\r\n dispatch({ type: 'TOGGLE_ADV_CRITERIA', value: true });\r\n }\r\n if (criteria.includeCarrierRates) {\r\n ratesFetcherApi.getAvailableRatesFetchers({\r\n credentials: \"same-origin\",\r\n headers: getDefaultHeaders(getState())\r\n })\r\n .then(async carrierRatesPlatforms => {\r\n let pols = [criteria.origin];\r\n let pods = [criteria.destination];\r\n if (criteria.origin.locationType === \"PortGroup\") {\r\n pols = criteria.origin.portsInGroup;\r\n }\r\n if (criteria.destination.locationType === \"PortGroup\") {\r\n pods = criteria.destination.portsInGroup;\r\n }\r\n let reqTime = new Date().getTime();\r\n\r\n let requestedFetchers = [];\r\n\r\n let tasks = [[]];\r\n carrierRatesPlatforms\r\n .filter(x => x.carrierId)\r\n .forEach(carrierRatesPlatform => {\r\n pols.forEach(pol => {\r\n pods.forEach(async pod => {\r\n if ((carrierRatesPlatform.type == \"Fcl\" || carrierRatesPlatform.type == \"Extension\") && criteria.type == \"Fcl\") { //in future support for LCL\r\n tasks[tasks.length - 1].push(() => {\r\n return new Promise(resolve => setTimeout(resolve, 50))\r\n .then(() => {\r\n dispatch({\r\n type: \"SELECTION_REQUEST_CARRIERRATES\",\r\n payload: {\r\n carrierRatesPlatform: carrierRatesPlatform,\r\n requestTime: reqTime\r\n }\r\n });\r\n return ratesFetcherApi.getOnlineCarrierOffers({\r\n model: {\r\n criteria: {\r\n ...criteria,\r\n origin: pol,\r\n destination: pod,\r\n },\r\n ratesFetchers: [carrierRatesPlatform.code]\r\n }\r\n }, {\r\n credentials: \"same-origin\",\r\n headers: getDefaultHeaders(getState())\r\n }).then(carrierOffers => {\r\n let isLoading = requestedFetchers.includes(carrierRatesPlatform.code);\r\n dispatch({\r\n type: \"SELECTION_RECEIVE_CARRIERRATES\",\r\n payload: {\r\n carrierRatesPlatform: carrierRatesPlatform,\r\n requestTime: reqTime,\r\n carrierOffers: carrierOffers.carrierOffers,\r\n fetcherErrors: carrierOffers.errorByFetcherCode[carrierRatesPlatform.code],\r\n isLoading: isLoading\r\n }\r\n });\r\n })\r\n .catch(err => {\r\n let isLoading = requestedFetchers.includes(carrierRatesPlatform.code);\r\n dispatch({\r\n type: \"SELECTION_RECEIVE_CARRIERRATES\",\r\n payload: {\r\n carrierRatesPlatform: carrierRatesPlatform,\r\n requestTime: reqTime,\r\n fetcherErrors: err && err.status == 429 ? [{\r\n type: \"OkargoApiLimitReached\",\r\n carrierRatesPlatformId: carrierRatesPlatform.carrierRatesPlatformId\r\n }] : [],\r\n isLoading: isLoading\r\n },\r\n error: err\r\n });\r\n });\r\n });\r\n });\r\n } else {\r\n return null;\r\n }\r\n });\r\n });\r\n tasks.push([]);\r\n });\r\n let promises = [];\r\n const sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms));\r\n for (let i = 0; i < tasks.length; i++) {\r\n const asyncRequests = (async () => {\r\n for(let j = 0; j < tasks[i].length; j++){\r\n console.log(Moment().format(\"LTS\"), \"Start request \" + i);\r\n await tasks[i][j]();\r\n await sleep(5000);\r\n }\r\n })\r\n promises.push(asyncRequests());\r\n // let promises = [];\r\n // tasks[i].forEach(x => {\r\n // console.log(Moment().format(\"LTS\"), \"Start request\");\r\n // promises.push(x());\r\n // });\r\n // console.log(Moment().format(\"LTS\"), \"Await request\");\r\n // await Promise.all(promises);\r\n //console.log(Moment().format(\"LTS\"), \"Finished request\");\r\n }\r\n await Promise.all(promises);\r\n dispatch({type: \"SELECTION_CARRIERRATES_LOADING_ENDED\"});\r\n });\r\n }\r\n\r\n return selectionApi.searchSelection({ code: code }, { headers: getDefaultHeaders(getState()) })\r\n .then(selection => {\r\n let currentState = getState();\r\n //When new carriers have been added\r\n let seedCarriersLoading = selection.carrierOffers\r\n .some(x => !currentState.seed.carriers[x.carrierId])\r\n ? requestSeedCarriers(new Date().getTime(), dispatch as any, getState)\r\n : Promise.resolve();\r\n\r\n return seedCarriersLoading.then(() => {\r\n dispatch({\r\n type: 'RECEIVE_SELECTION',\r\n payload: {\r\n requestTime: requestTime,\r\n selection: selection,\r\n criteria: criteria\r\n }\r\n });\r\n if (criteria.includeSellingRates) {\r\n requestSelectionSellingRates(requestTime, criteria, dispatch as any, getState)\r\n .then(() => {\r\n resolve();\r\n }).catch(err => {\r\n dispatch(Notifications.error({ message: \"Error loading selling rates\", title: \"Error\", position: \"tc\" }) as any);\r\n resolve();\r\n });\r\n } else {\r\n resolve();\r\n }\r\n })\r\n .catch(err => {\r\n dispatch(Notifications.error({\r\n message: \"Error loading selection: New carriers could not be loaded, please refresh the page\",\r\n title: \"Error\",\r\n position: \"tc\"\r\n }) as any);\r\n reject(err);\r\n });\r\n }).catch(error => {\r\n let errorMessage = getText(\"SlcError\");\r\n if (error && error.status === 403) {\r\n errorMessage = getText(\"SlcMultipleSessionError\");\r\n }\r\n dispatch({\r\n type: 'RECEIVE_SELECTION',\r\n payload: {\r\n requestTime: requestTime,\r\n selection: unloadedState.selection,\r\n criteria: criteria,\r\n errorMessage: errorMessage\r\n },\r\n error: error\r\n });\r\n dispatch(Notifications.error({ message: \"Error loading selection: \" + errorMessage, title: \"Error\", position: \"tc\" }) as any);\r\n console.error('Error fetching selection');\r\n console.error(error);\r\n reject(error);\r\n });\r\n }).catch(error => {\r\n console.log('Error fetching criteria: ' + error.message);\r\n reject(error);\r\n });\r\n });\r\n\r\n dispatch({ type: 'REQUEST_CRITERIA', code: code, requestTime: requestTime });\r\n dispatch({ type: 'REQUEST_SELECTION', payload: { code: code, requestTime: requestTime } });\r\n\r\n return task;\r\n },\r\n goToCriteria: (criteriaType: Api.CriteriaModelTypeEnum): AppThunkAction => (dispatch, getState) => {\r\n if (criteriaType === \"Lcl\") {\r\n dispatch(push('/lcl/criteria/' + getState().criteria.criteria.code) as any);\r\n } else {\r\n dispatch(push('/criteria/' + getState().criteria.criteria.code) as any);\r\n }\r\n },\r\n goToQuotation: (departId: number | undefined, chargeSetId: number, routeId:number): AppThunkAction => (dispatch, getState) => {\r\n let carrierOfferKey = getCarrierOfferKey(getState().selection.selection.carrierOffers\r\n .find(co => ((!co.chargeSet && !chargeSetId)\r\n || (co.chargeSet && co.chargeSet.chargeSetId === chargeSetId))\r\n && (!departId || getAllDeparts(co)\r\n .some(dp => dp.departId === departId))));\r\n\r\n dispatch({ type: \"SELECTION_SET_CARRIEROFFERSTATE_LOADING\", value: true, id: carrierOfferKey });\r\n CriteriaUtils.getCriteriaCode(getState, getState().criteria.criteria, getState().selection.criteriaLoaded).then(code => {\r\n dispatch({\r\n type: \"SELECTION_GO_TO_QUOTATION\",\r\n payload: { departId: departId, chargeSetId: chargeSetId, time: new Date().getTime() }\r\n });\r\n dispatch({ type: \"SELECTION_SET_CARRIEROFFERSTATE_LOADING\", value: false, id: carrierOfferKey });\r\n dispatch(push(\"/quotation/\" + code + \"/\" + departId + \"/\" + chargeSetId + \"/null/\" + routeId +\"/Normal\") as any);\r\n }).catch(error => {\r\n dispatch(Notifications.error({ message: \"Failed to go to quotation\", title: \"Error\", position: \"tc\" }) as any);\r\n dispatch({ type: \"SELECTION_SET_CARRIEROFFERSTATE_LOADING\", value: false, id: carrierOfferKey });\r\n });\r\n },\r\n requestSendAgentQuotation: (requestTime: number, carrierOfferKey: string): AppThunkAction => (dispatch, getState) => {\r\n let carrierOfferState = getState().selection.carrierOfferStates[carrierOfferKey];\r\n if (carrierOfferState && carrierOfferState.sendQuotationState.requestTime === requestTime)\r\n return;\r\n\r\n let carrierOffer = getState().selection.selection.carrierOffers\r\n .find(co => getCarrierOfferKey(co) === carrierOfferKey);\r\n\r\n CriteriaUtils.getCriteriaCode(getState, getState().criteria.criteria, getState().selection.criteriaLoaded).then(code => {\r\n let api = new Api.QuotationApi();\r\n api.sendAgentQuotation({\r\n model: {\r\n chargeSetId: carrierOffer.chargeSet.chargeSetId,\r\n departId: getSelectedDepart(carrierOffer, carrierOfferState)?.departId,\r\n criteriaCode: code\r\n }\r\n }, { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) }).then(() => {\r\n dispatch(Notifications.success({\r\n message: \"You quotation has beend sent by email\",\r\n title: \"Success\", position: \"tc\"\r\n }) as any);\r\n dispatch({ type: \"SELECTION_RECEIVE_SEND_AGENT_QUOTATION\", key: carrierOfferKey, requestTime: requestTime })\r\n }).catch(error => {\r\n });\r\n }).catch(error => {\r\n dispatch(Notifications.error({ message: \"Failed to send your quotation\", title: \"Error\", position: \"tc\" }) as any);\r\n dispatch({ type: \"SELECTION_RECEIVE_SEND_AGENT_QUOTATION\", key: carrierOfferKey, requestTime: requestTime })\r\n });\r\n\r\n dispatch({ type: \"SELECTION_REQUEST_SEND_AGENT_QUOTATION\", key: carrierOfferKey, requestTime: requestTime })\r\n },\r\n requestDownloadRatesDocument: (requestTime: number, carrierOfferKey: string, chargeSetId: number): AppThunkAction => (dispatch, getState) => {\r\n let carrierOfferState = getState().selection.carrierOfferStates[carrierOfferKey];\r\n if (carrierOfferState && carrierOfferState.sendQuotationState.requestTime === requestTime)\r\n return;\r\n\r\n let carrierOffer = getState().selection.selection.carrierOffers\r\n .find(co => getCarrierOfferKey(co) === carrierOfferKey);\r\n\r\n let api = new Api.SelectionApi();\r\n api.downloadWorkDocuments({\r\n chargeSetId: chargeSetId || carrierOffer.chargeSet.chargeSetId\r\n }, { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(response => response.blob())\r\n .then(blob => {\r\n dispatch({ type: \"SELECTION_RECEIVE_DOWNLOAD_RATES_DOCUMENT\", key: carrierOfferKey, requestTime: requestTime })\r\n let fileName = \"Okargo_Documents_\" + Moment().format(\"YYYY_MM_DD\") + \".zip\";\r\n return Download(blob,\r\n fileName,\r\n MimeTypes.lookup(fileName) || \"text/plain\");\r\n })\r\n .catch(error => {\r\n dispatch({ type: \"SELECTION_RECEIVE_DOWNLOAD_RATES_DOCUMENT\", key: carrierOfferKey, requestTime: requestTime })\r\n dispatch(Notifications.error({ message: \"Failed to download your document\", title: \"Error\", position: \"tc\" }) as any);\r\n });\r\n\r\n dispatch({ type: \"SELECTION_REQUEST_DOWNLOAD_RATES_DOCUMENT\", key: carrierOfferKey, requestTime: requestTime })\r\n },\r\n filterUpdateMaxAllIn: (value: number) => { type: 'SELECT_FILTER_MAX_ALLIN', value: value },\r\n filterUpdateMaxTransShipment: (value: number) => {\r\n type: 'SELECT_FILTER_MAX_TRANSSHIPMENT', payload: { value: value }\r\n },\r\n filterToggleCarrierGroup: (carrierGroupId: number) => { type: 'TOGGLE_FILTER_CARRIERGROUP', carrierGroupId: carrierGroupId },\r\n filterSelectAllCarrier: (value: boolean): AppThunkAction => (dispatch, getState) => {\r\n dispatch({\r\n type: 'SELECT_FILTER_ALL_CARRIER',\r\n payload: { value: value, carrierIds: _.values(getState().seed.carriers).map(x => x.carrierId) }\r\n });\r\n },\r\n filterSelectCarrier: (carrierId: number, value: boolean) => { type: 'SELECT_FILTER_CARRIER', carrierId: carrierId, value: value },\r\n filterSelectCarrierGroup: (carrierGroupId: number, value: boolean): AppThunkAction => (dispatch, getState) => {\r\n let carrierIds = dictionnaryToArray(getState().seed.carriers)\r\n .filter(ca => ca.carrierGroupId === carrierGroupId)\r\n .map(ca => ca.carrierId);\r\n //let isSelected = carrierIds.some(cId => getState().selection.filterModel.carriersSelected[cId]);\r\n dispatch({ type: \"SELECT_FILTER_CARRIERS\", carrierIds: carrierIds, value: value });\r\n },\r\n filterUpdateMaxTransitTime: (value: number) => { type: 'SELECT_FILTER_MAX_TRANSITTIME', value: value },\r\n filterUpdateEtaDate: (value: number) => {\r\n type: 'SELECT_FILTER_ETA_DATE', payload: { value: value }\r\n },\r\n filterUpdateRatesDate: (min: number, max: number) => { type: 'SELECT_FILTER_RATES_DATE', min: min, max: max },\r\n filterUpdateRatesType: (value: RatesTypeFilter) => { type: 'SELECT_FILTER_RATES_TYPE', value: value },\r\n filterSelectCarrierOffer: (carrierOfferKey: string, value: boolean) => { type: 'SELECT_FILTER_CARRIEROFFER', carrierOfferKey: carrierOfferKey, value: value },\r\n filterSelectAllCarrierOffer: (value: boolean) => { type: \"SELECT_FILTER_ALL_CARRIEROFFER\", value: value },\r\n filterSelectFilterSort: (value: CarrierOfferSort) => { type: \"SELECT_FILTER_SORT\", value: value },\r\n filterUpdateRatesTypeName: (value: string) => { type: \"UPDATE_FILTER_RATESTYPE_NAME\", value: value },\r\n filterSelectHideNoRates: (value: boolean) => { type: \"SELECT_FILTER_HIDE_NO_RATES\", value: value },\r\n filterSelectByRatesOffer: (value: boolean) => {\r\n type: \"SELECT_FILTER_BY_RATESOFFER\", payload: { value: value }\r\n },\r\n filterSelectTranshipment: (value: boolean) => {\r\n type: \"SELECT_FILTER_BY_TRANSHIPMENT\", payload: { value: value }\r\n },\r\n selectCarrierOffer: (carrierOfferId: string) => { type: 'SELECT_CARRIEROFFER', carrierOfferId: carrierOfferId },\r\n selectCarrierOfferDepart: (id: string, departId: number) => { type: 'SELECT_CARRIEROFFER_DEPART', id: id, departId: departId },\r\n updateCarrierOfferShowAllDeparts: (id: string, val: boolean) => { type: 'UPDATE_CARRIEROFFER_SHOWALLDEPARTS', payload: { id: id, value: val} },\r\n selectCarrierOfferService: (id: string, routeServiceId: number) => {\r\n type: 'SELECTION_SELECT_CARRIEROFFER_SERVICE', payload: { key: id, routeServiceId: routeServiceId }\r\n },\r\n toggleCarrierOfferDetails: (id: string, value: boolean) => { type: 'TOGGLE_CARRIEROFFER_DETAILS', id: id, value: value },\r\n toggleCarrierOfferBlDetails: (id: string, value: boolean) => { type: 'TOGGLE_CARRIEROFFER_BL_DETAILS', id: id, value: value },\r\n toggleCarrierOfferLclDetails: (id: string, value: boolean) => {\r\n type: 'TOGGLE_CARRIEROFFER_LCL_DETAILS',\r\n payload: { id: id, value: value }\r\n },\r\n toggleCarrierOfferContacts: (id: string, value: boolean) => { type: 'TOGGLE_CARRIEROFFER_CONTACTS', id: id, value: value },\r\n openCarrierOfferGroup: (id: string) => {\r\n type: 'SELECTION_OPEN_CARRIEROFFER_GROUP', payload: { id: id }\r\n },\r\n closeCarrierOfferGroup: (id: string) => {\r\n type: 'SELECTION_CLOSE_CARRIEROFFER_GROUP', payload: { id: id }\r\n },\r\n toggleCarrierOfferSizeTypeDetails: (id: string, value: boolean, sizeTypeId: number) =>\r\n { type: 'TOGGLE_CARRIEROFFER_SIZETYPE_DETAILS', id: id, value: value, sizeTypeId: sizeTypeId },\r\n toggleCarrierOfferDocumentInfoDetails: (id: string, value: boolean, documentInfoId: number) =>\r\n { type: 'TOGGLE_CARRIEROFFER_DOCUMENTINFO_DETAILS', id: id, value: value, documentInfoId: documentInfoId },\r\n toggleCarrierOfferRatesDetails: (id: string, value: boolean) => { type: 'TOGGLE_CARRIEROFFER_RATES_DETAILS', id: id, value: value },\r\n toggleCarrierOfferRatesOfferDescription: (id: string, value: boolean) =>\r\n { type: 'TOGGLE_CARRIEROFFER_RATESOFFER_DESCRIPTION', id: id, value: value },\r\n selectPage: (page: number) => { type: 'SELECT_PAGE', page: page },\r\n resetFilter: (filterOptions: SelectionFilterOptions): AppThunkAction => (dispatch, getState) => {\r\n dispatch({\r\n type: \"SELECTION_RESET_FILTER\",\r\n payload: {\r\n filterOptions: filterOptions,\r\n defaultHideNoRates: getState().account.currentUser.clientModel.defaultHideNoRates\r\n }\r\n });\r\n },\r\n openFirmNews: (firmNewsId: number) => { type: \"SELECTION_OPEN_FIRMNEWS\", firmNewsId: firmNewsId },\r\n closeFirmNews: () => { type: \"SELECTION_CLOSE_FIRMNEWS\" },\r\n requestGoToCarrierWebSite: (id: string, requestTime: number): AppThunkAction => (dispatch, getState) => {\r\n let state = getState().selection.carrierOfferStates[id];\r\n if (state && state.goToWebSiteState.requestTime === requestTime)\r\n return;\r\n\r\n let api = new Api.SelectionApi();\r\n let carrierOffer = getState().selection.selection.carrierOffers\r\n .find(x => getCarrierOfferKey(x) === id);\r\n\r\n api.getCarrierForm({\r\n routeId: carrierOffer.chargeSet?.routeId || carrierOffer.routeConfigs[0]?.routeId,\r\n from: new Date(),\r\n to: Moment().add(7, 'days').toDate()\r\n }, { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(form => {\r\n if (form.result) {\r\n goToFormModel(form.result);\r\n }\r\n dispatch({\r\n type: \"SELECTION_RECEIVE_GO_CARRIER_WEBSITE\",\r\n payload: { id: id, requestTime: requestTime }\r\n });\r\n })\r\n .catch(error => {\r\n dispatch(Notifications.error({ message: \"Error going to carrier website\", title: \"Error\", position: \"tc\" }) as any);\r\n console.log(error.message);\r\n dispatch({\r\n type: \"SELECTION_RECEIVE_GO_CARRIER_WEBSITE\",\r\n payload: { id: id, requestTime: requestTime }\r\n });\r\n });\r\n\r\n dispatch({ type: \"SELECTION_REQUEST_GO_CARRIER_WEBSITE\", payload: { id: id, requestTime: requestTime } });\r\n },\r\n toggleAdvCriteria: (value: boolean): AppThunkAction => (dispatch, getState) => {\r\n dispatch({ type: 'TOGGLE_ADV_CRITERIA', value: value });\r\n },\r\n updateOnlyShowBestTt: (value: boolean) => {\r\n type: \"SELECTION_UPDATE_ONLYBESTTT\",\r\n payload: { value: value }\r\n },\r\n resetOptions: (): AppThunkAction => (dispatch, getState) => {\r\n let filterOptions = selectionConnect.getFilterOptions(getState());\r\n let criteria = getState().criteria.criteria;\r\n dispatch({\r\n type: \"SELECTION_RESET_OPTIONS\",\r\n payload: {\r\n filter: {\r\n ...unloadedFilterModel,\r\n maxAllIn: filterOptions.maxAllIn,\r\n maxTransitTime: filterOptions.maxTransitTime,\r\n minRatesDate: filterOptions.minRatesDate,\r\n maxRatesDate: filterOptions.maxRatesDate,\r\n minEtaDate: filterOptions.minEtaDate,\r\n maxEtaDate: filterOptions.maxEtaDate,\r\n maxTransShipment: filterOptions.maxTransShipment,\r\n hideNoRates: getState().account.currentUser.clientModel.defaultHideNoRates\r\n },\r\n criteria: {\r\n ...criteria,\r\n ...Criteria.getDefaultCriteria(getState().account.currentUser),\r\n }\r\n }\r\n });\r\n },\r\n updateFilterCarriersOpened: (val: boolean) => val\r\n ? { type: \"SELECTION_FILTER_OPEN_CARRIERS\" }\r\n : { type: \"SELECTION_FILTER_CLOSE_CARRIERS\" },\r\n openAdvContainer: () => { type: \"OPEN_ADV_CONTAINER\" },\r\n closeAdvContainer: () => { type: \"CLOSE_ADV_CONTAINER\" },\r\n};\r\n\r\n// ----------------\r\n// REDUCER - For a given state and action, returns the new state. To support time travel, this must not mutate the old state.\r\nconst unloadedFilterModel: SelectionFilterModel = {\r\n carriersSelected: {},\r\n carrierGroupsOpened: {},\r\n maxAllIn: 0,\r\n maxRatesDate: Number.MAX_SAFE_INTEGER,\r\n maxEtaDate: Number.MAX_SAFE_INTEGER,\r\n minRatesDate: 0,\r\n minEtaDate: 0,\r\n maxTransitTime: 0,\r\n maxTransShipment: 0,\r\n hideNoRates: false,\r\n carrierOffersSelected: {},\r\n ratesType: \"AllRates\",\r\n ratesTypeName: \"\",\r\n sortBy: \"AllIn\",\r\n byRatesOffer: false,\r\n byTransShipment: false,\r\n onlyShowBestTt: true,\r\n carriersOpened: false\r\n};\r\n\r\nconst unloadedState: SelectionState = {\r\n code: null,\r\n errorMessages: [],\r\n warningMessages: [],\r\n carrierRatesOffersCache: [],\r\n requestTime: 0,\r\n isLoading: false,\r\n advCriteriaOpened: false,\r\n advContainerOpened: false,\r\n carrierOfferStates: {},\r\n criteriaLoaded: null,\r\n selectedCarrierOfferId: null,\r\n isCarrierRatesLoading: false,\r\n isSchedulesLoading: false,\r\n selection: {\r\n carrierOffers: [],\r\n firmNewses: [],\r\n carrierRatings: {},\r\n errors: []\r\n },\r\n firmNewsesState: {\r\n isOpen: false\r\n },\r\n filterModel: unloadedFilterModel,\r\n currentPage: 1,\r\n carrierRatesStates: {\r\n }\r\n};\r\n\r\nexport const unloadedCarrierOfferState: CarrierOfferState = {\r\n blDetailsOpened: false,\r\n lclDetailsOpened: false,\r\n detailsOpened: false,\r\n ratesDetailsOpened: false,\r\n sizeTypeDetailsOpened: {},\r\n documentInfoDetailsOpened: {},\r\n selectedDepartId: 0,\r\n selectedServiceId: 0,\r\n contactsOpened: false,\r\n ratesOfferDescriptionOpened: false,\r\n isLoading: false,\r\n groupOpened: false,\r\n downloadDocumentState: {\r\n isLoading: false,\r\n },\r\n sendQuotationState: {\r\n isLoading: false,\r\n },\r\n goToWebSiteState: {\r\n isLoading: false,\r\n },\r\n}\r\n\r\nexport const reducer: Reducer = (state: SelectionState, incomingAction: Action) => {\r\n const action = incomingAction as KnownAction;\r\n switch (action.type) {\r\n case 'REQUEST_SELECTION':\r\n return {\r\n ...state,\r\n carrierRatesOffersCache: [],\r\n code: action.payload.code,\r\n requestTime: action.payload.requestTime,\r\n isLoading: true,\r\n isSchedulesLoading: false,\r\n isCarrierRatesLoading: false\r\n };\r\n case 'RECEIVE_SELECTION':\r\n // Only accept the incoming data if it matches the most recent request. This ensures we correctly\r\n // handle out-of-order responses.\r\n if (action.payload.requestTime !== state.requestTime)\r\n return state;\r\n\r\n return {\r\n ...state,\r\n isLoading: false,\r\n selection: {\r\n ...action.payload.selection,\r\n carrierOffers: action.payload.selection.carrierOffers\r\n .concat(state.carrierRatesOffersCache)\r\n },\r\n criteriaLoaded: {\r\n ...state.criteriaLoaded,\r\n ...action.payload.criteria,\r\n dateBegin: Moment.utc(action.payload.criteria.dateBegin).local().toDate(),\r\n dateEnd: Moment.utc(action.payload.criteria.dateEnd).local().toDate(),\r\n },\r\n carrierOfferStates: {},\r\n filterModel: {\r\n ...unloadedFilterModel,\r\n hideNoRates: state.filterModel.hideNoRates\r\n },\r\n currentPage: 1,\r\n errorMessages: [action.payload.errorMessage]\r\n .concat(action.payload.selection.errors)\r\n .filter(x => x),\r\n carrierRatesStates: action.payload.criteria.includeCarrierRates\r\n ? state.carrierRatesStates\r\n : {}\r\n };\r\n case 'SELECT_FILTER_MAX_ALLIN':\r\n return {\r\n ...state,\r\n filterModel: {\r\n ...state.filterModel,\r\n maxAllIn: action.value\r\n }\r\n };\r\n case 'SELECT_FILTER_MAX_TRANSSHIPMENT':\r\n return {\r\n ...state,\r\n filterModel: {\r\n ...state.filterModel,\r\n maxTransShipment: action.payload.value\r\n }\r\n };\r\n case 'SELECT_FILTER_MAX_TRANSITTIME':\r\n return {\r\n ...state,\r\n filterModel: {\r\n ...state.filterModel,\r\n maxTransitTime: action.value\r\n }\r\n };\r\n case 'SELECT_FILTER_ETA_DATE':\r\n return {\r\n ...state,\r\n filterModel: {\r\n ...state.filterModel,\r\n maxEtaDate: action.payload.value\r\n }\r\n };\r\n case 'SELECT_FILTER_RATES_DATE':\r\n return {\r\n ...state,\r\n filterModel: {\r\n ...state.filterModel,\r\n minRatesDate: action.min,\r\n maxRatesDate: action.max\r\n }\r\n };\r\n case 'SELECT_FILTER_RATES_TYPE':\r\n return {\r\n ...state,\r\n filterModel: {\r\n ...state.filterModel,\r\n ratesType: action.value\r\n }\r\n };\r\n case 'TOGGLE_ADV_CRITERIA':\r\n return {\r\n ...state,\r\n advCriteriaOpened: action.value,\r\n advCriteriaCloseWarning: false\r\n };\r\n case 'SELECT_CARRIEROFFER_DEPART':\r\n return {\r\n ...state,\r\n carrierOfferStates: {\r\n ...state.carrierOfferStates,\r\n [action.id]: {\r\n ...state.carrierOfferStates[action.id] || unloadedCarrierOfferState,\r\n selectedDepartId: action.departId\r\n }\r\n }\r\n };\r\n case 'UPDATE_CARRIEROFFER_SHOWALLDEPARTS':\r\n return {\r\n ...state,\r\n carrierOfferStates: {\r\n ...state.carrierOfferStates,\r\n [action.payload.id]: {\r\n ...state.carrierOfferStates[action.payload.id] || unloadedCarrierOfferState,\r\n showAllDeparts: action.payload.value\r\n }\r\n }\r\n };\r\n case \"SELECTION_SELECT_CARRIEROFFER_SERVICE\":\r\n return {\r\n ...state,\r\n carrierOfferStates: {\r\n ...state.carrierOfferStates,\r\n [action.payload.key]: {\r\n ...state.carrierOfferStates[action.payload.key] || unloadedCarrierOfferState,\r\n selectedServiceId: action.payload.routeServiceId\r\n }\r\n }\r\n };\r\n case 'TOGGLE_CARRIEROFFER_DETAILS':\r\n return {\r\n ...state,\r\n carrierOfferStates: {\r\n ...state.carrierOfferStates,\r\n [action.id]: {\r\n ...state.carrierOfferStates[action.id] || unloadedCarrierOfferState,\r\n detailsOpened: action.value\r\n }\r\n }\r\n };\r\n case 'TOGGLE_CARRIEROFFER_BL_DETAILS':\r\n return {\r\n ...state,\r\n carrierOfferStates: {\r\n ...state.carrierOfferStates,\r\n [action.id]: {\r\n ...state.carrierOfferStates[action.id] || unloadedCarrierOfferState,\r\n blDetailsOpened: action.value\r\n }\r\n }\r\n };\r\n case 'TOGGLE_CARRIEROFFER_LCL_DETAILS':\r\n return {\r\n ...state,\r\n carrierOfferStates: {\r\n ...state.carrierOfferStates,\r\n [action.payload.id]: {\r\n ...state.carrierOfferStates[action.payload.id] || unloadedCarrierOfferState,\r\n lclDetailsOpened: action.payload.value\r\n }\r\n }\r\n };\r\n case 'TOGGLE_CARRIEROFFER_RATES_DETAILS':\r\n return {\r\n ...state,\r\n carrierOfferStates: {\r\n ...state.carrierOfferStates,\r\n [action.id]: {\r\n ...state.carrierOfferStates[action.id] || unloadedCarrierOfferState,\r\n ratesDetailsOpened: action.value\r\n }\r\n }\r\n };\r\n case \"TOGGLE_CARRIEROFFER_RATESOFFER_DESCRIPTION\":\r\n return {\r\n ...state,\r\n carrierOfferStates: {\r\n ...state.carrierOfferStates,\r\n [action.id]: {\r\n ...state.carrierOfferStates[action.id] || unloadedCarrierOfferState,\r\n ratesOfferDescriptionOpened: action.value\r\n }\r\n }\r\n };\r\n case 'TOGGLE_CARRIEROFFER_SIZETYPE_DETAILS':\r\n return {\r\n ...state,\r\n carrierOfferStates: {\r\n ...state.carrierOfferStates,\r\n [action.id]: {\r\n ...state.carrierOfferStates[action.id] || unloadedCarrierOfferState,\r\n sizeTypeDetailsOpened: {\r\n ...state.carrierOfferStates[action.id].sizeTypeDetailsOpened,\r\n [action.sizeTypeId]: action.value\r\n }\r\n }\r\n }\r\n };\r\n case 'TOGGLE_CARRIEROFFER_DOCUMENTINFO_DETAILS':\r\n return {\r\n ...state,\r\n carrierOfferStates: {\r\n ...state.carrierOfferStates,\r\n [action.id]: {\r\n ...state.carrierOfferStates[action.id] || unloadedCarrierOfferState,\r\n documentInfoDetailsOpened: {\r\n ...state.carrierOfferStates[action.id].documentInfoDetailsOpened,\r\n [action.documentInfoId]: action.value\r\n }\r\n }\r\n }\r\n };\r\n case 'TOGGLE_CARRIEROFFER_CONTACTS':\r\n return {\r\n ...state,\r\n carrierOfferStates: {\r\n ...state.carrierOfferStates,\r\n [action.id]: {\r\n ...state.carrierOfferStates[action.id] || unloadedCarrierOfferState,\r\n contactsOpened: action.value\r\n }\r\n }\r\n };\r\n case 'SELECT_PAGE':\r\n return {\r\n ...state,\r\n currentPage: action.page\r\n };\r\n case 'SELECTION_RESET_FILTER':\r\n return {\r\n ...state,\r\n filterModel: {\r\n ...state.filterModel,\r\n maxAllIn: action.payload.filterOptions.maxAllIn,\r\n maxTransitTime: action.payload.filterOptions.maxTransitTime,\r\n minRatesDate: action.payload.filterOptions.minRatesDate,\r\n maxRatesDate: action.payload.filterOptions.maxRatesDate,\r\n minEtaDate: action.payload.filterOptions.minEtaDate,\r\n maxEtaDate: action.payload.filterOptions.maxEtaDate,\r\n maxTransShipment: action.payload.filterOptions.maxTransShipment,\r\n hideNoRates: action.payload.defaultHideNoRates\r\n },\r\n currentPage: 1\r\n };\r\n\r\n case \"SELECT_FILTER_CARRIER\":\r\n return {\r\n ...state,\r\n filterModel: {\r\n ...state.filterModel,\r\n carriersSelected: {\r\n ...state.filterModel.carriersSelected,\r\n [action.carrierId]: action.value\r\n }\r\n }\r\n };\r\n case \"SELECT_FILTER_CARRIERS\":\r\n let newCarriersSelected = {};\r\n action.carrierIds.forEach(cId => {\r\n newCarriersSelected[cId] = action.value\r\n });\r\n\r\n return {\r\n ...state,\r\n filterModel: {\r\n ...state.filterModel,\r\n carriersSelected: {\r\n ...state.filterModel.carriersSelected,\r\n ...newCarriersSelected\r\n }\r\n }\r\n };\r\n case \"SELECT_FILTER_ALL_CARRIER\":\r\n let facNewCarriersSelected = {};\r\n action.payload.carrierIds\r\n .forEach(x => {\r\n facNewCarriersSelected[x] = action.payload.value;\r\n });\r\n\r\n return {\r\n ...state,\r\n filterModel: {\r\n ...state.filterModel,\r\n carriersSelected: facNewCarriersSelected\r\n }\r\n };\r\n case \"TOGGLE_FILTER_CARRIERGROUP\":\r\n return {\r\n ...state,\r\n filterModel: {\r\n ...state.filterModel,\r\n carrierGroupsOpened: {\r\n ...state.filterModel.carrierGroupsOpened,\r\n [action.carrierGroupId]: state.filterModel.carrierGroupsOpened[action.carrierGroupId]\r\n ? false : true\r\n }\r\n }\r\n };\r\n case \"SELECT_FILTER_CARRIEROFFER\":\r\n return {\r\n ...state,\r\n filterModel: {\r\n ...state.filterModel,\r\n carrierOffersSelected: {\r\n ...state.filterModel.carrierOffersSelected,\r\n [action.carrierOfferKey]: action.value\r\n }\r\n }\r\n };\r\n case \"SELECT_FILTER_ALL_CARRIEROFFER\":\r\n let newCarrierOffersSelected = {};\r\n state.selection.carrierOffers\r\n .forEach(co => {\r\n newCarrierOffersSelected[getCarrierOfferKey(co)] = action.value;\r\n });\r\n\r\n return {\r\n ...state,\r\n filterModel: {\r\n ...state.filterModel,\r\n carrierOffersSelected: newCarrierOffersSelected\r\n }\r\n };\r\n case \"SELECT_FILTER_SORT\":\r\n return {\r\n ...state,\r\n filterModel: {\r\n ...state.filterModel,\r\n sortBy: action.value\r\n }\r\n };\r\n case \"SELECT_FILTER_HIDE_NO_RATES\":\r\n return {\r\n ...state,\r\n filterModel: {\r\n ...state.filterModel,\r\n hideNoRates: action.value\r\n }\r\n };\r\n case \"SELECT_CARRIEROFFER\":\r\n return {\r\n ...state,\r\n selectedCarrierOfferId: action.carrierOfferId\r\n };\r\n case \"UPDATE_FILTER_RATESTYPE_NAME\":\r\n return {\r\n ...state,\r\n filterModel: {\r\n ...state.filterModel,\r\n ratesTypeName: action.value\r\n }\r\n };\r\n case \"SELECT_FILTER_BY_RATESOFFER\":\r\n return {\r\n ...state,\r\n filterModel: {\r\n ...state.filterModel,\r\n byRatesOffer: action.payload.value\r\n }\r\n };\r\n case \"SELECT_FILTER_BY_TRANSHIPMENT\":\r\n return {\r\n ...state,\r\n filterModel: {\r\n ...state.filterModel,\r\n byTransShipment: action.payload.value,\r\n onlyShowBestTt: false,\r\n\r\n }\r\n };\r\n case \"SELECTION_SET_CARRIEROFFERSTATE_LOADING\":\r\n return {\r\n ...state,\r\n carrierOfferStates: {\r\n ...state.carrierOfferStates,\r\n [action.id]: {\r\n ...state.carrierOfferStates[action.id] || unloadedCarrierOfferState,\r\n isLoading: action.value\r\n }\r\n }\r\n };\r\n case \"SELECTION_GO_TO_QUOTATION\":\r\n return state;\r\n case \"SELECTION_REQUEST_SEND_AGENT_QUOTATION\":\r\n return {\r\n ...state,\r\n carrierOfferStates: {\r\n ...state.carrierOfferStates,\r\n [action.key]: {\r\n ...state.carrierOfferStates[action.key] || unloadedCarrierOfferState,\r\n sendQuotationState: {\r\n ...(state.carrierOfferStates[action.key]\r\n ? state.carrierOfferStates[action.key].sendQuotationState\r\n : {}),\r\n isLoading: true,\r\n requestTime: action.requestTime\r\n }\r\n }\r\n }\r\n };\r\n case \"SELECTION_RECEIVE_SEND_AGENT_QUOTATION\":\r\n if (!state.carrierOfferStates[action.key]\r\n || state.carrierOfferStates[action.key].sendQuotationState.requestTime !== action.requestTime)\r\n return state;\r\n\r\n return {\r\n ...state,\r\n carrierOfferStates: {\r\n ...state.carrierOfferStates,\r\n [action.key]: {\r\n ...state.carrierOfferStates[action.key] || unloadedCarrierOfferState,\r\n sendQuotationState: {\r\n ...state.carrierOfferStates[action.key].sendQuotationState,\r\n isLoading: false\r\n }\r\n }\r\n }\r\n };\r\n case \"SELECTION_REQUEST_DOWNLOAD_RATES_DOCUMENT\":\r\n return {\r\n ...state,\r\n carrierOfferStates: {\r\n ...state.carrierOfferStates,\r\n [action.key]: {\r\n ...state.carrierOfferStates[action.key] || unloadedCarrierOfferState,\r\n downloadDocumentState: {\r\n ...state.carrierOfferStates[action.key].downloadDocumentState,\r\n isLoading: true,\r\n requestTime: action.requestTime\r\n }\r\n }\r\n }\r\n };\r\n case \"SELECTION_RECEIVE_DOWNLOAD_RATES_DOCUMENT\":\r\n if (!state.carrierOfferStates[action.key]\r\n || state.carrierOfferStates[action.key].downloadDocumentState.requestTime !== action.requestTime)\r\n return state;\r\n\r\n return {\r\n ...state,\r\n carrierOfferStates: {\r\n ...state.carrierOfferStates,\r\n [action.key]: {\r\n ...state.carrierOfferStates[action.key] || unloadedCarrierOfferState,\r\n downloadDocumentState: {\r\n ...state.carrierOfferStates[action.key].downloadDocumentState,\r\n isLoading: false\r\n }\r\n }\r\n }\r\n };\r\n case \"SELECTION_OPEN_FIRMNEWS\":\r\n return {\r\n ...state,\r\n firmNewsesState: {\r\n ...state.firmNewsesState,\r\n isOpen: true,\r\n selectedFirmNewsId: action.firmNewsId\r\n }\r\n };\r\n case \"SELECTION_CLOSE_FIRMNEWS\":\r\n return {\r\n ...state,\r\n firmNewsesState: {\r\n ...state.firmNewsesState,\r\n isOpen: false\r\n }\r\n };\r\n case \"SELECTION_REQUEST_GO_CARRIER_WEBSITE\":\r\n return {\r\n ...state,\r\n carrierOfferStates: {\r\n ...state.carrierOfferStates,\r\n [action.payload.id]: {\r\n ...state.carrierOfferStates[action.payload.id] || unloadedCarrierOfferState,\r\n goToWebSiteState: {\r\n ...(state.carrierOfferStates[action.payload.id]\r\n ? state.carrierOfferStates[action.payload.id].goToWebSiteState\r\n : {}),\r\n isLoading: true,\r\n requestTime: action.payload.requestTime\r\n }\r\n }\r\n }\r\n };\r\n case \"SELECTION_RECEIVE_GO_CARRIER_WEBSITE\":\r\n if (!state.carrierOfferStates[action.payload.id]\r\n || state.carrierOfferStates[action.payload.id].goToWebSiteState.requestTime !== action.payload.requestTime)\r\n return state;\r\n\r\n return {\r\n ...state,\r\n carrierOfferStates: {\r\n ...state.carrierOfferStates,\r\n [action.payload.id]: {\r\n ...state.carrierOfferStates[action.payload.id],\r\n goToWebSiteState: {\r\n ...state.carrierOfferStates[action.payload.id].goToWebSiteState,\r\n isLoading: false\r\n }\r\n }\r\n }\r\n };\r\n case \"SELECTION_OPEN_CARRIEROFFER_GROUP\":\r\n return {\r\n ...state,\r\n carrierOfferStates: {\r\n ...state.carrierOfferStates,\r\n [action.payload.id]: {\r\n ...(unloadedCarrierOfferState || state.carrierOfferStates[action.payload.id]),\r\n groupOpened: true\r\n }\r\n }\r\n };\r\n case \"SELECTION_CLOSE_CARRIEROFFER_GROUP\":\r\n return {\r\n ...state,\r\n carrierOfferStates: {\r\n ...state.carrierOfferStates,\r\n [action.payload.id]: {\r\n ...(unloadedCarrierOfferState || state.carrierOfferStates[action.payload.id]),\r\n groupOpened: false\r\n }\r\n }\r\n };\r\n case \"RECEIVE_CURRENT_USER\":\r\n if (action.error)\r\n return state;\r\n\r\n let isTestAccount = action.payload.currentUser.clientModel.subscriptions\r\n .some(x => x.subscriptionType === \"Okargo\"\r\n && x.agency.companyId === superTransitId);\r\n\r\n return {\r\n ...state,\r\n warningMessages: isTestAccount\r\n ? [getText(\"SlcTestWarning\")]\r\n : [],\r\n filterModel: {\r\n ...state.filterModel,\r\n byRatesOffer: action.payload.currentUser\r\n ? action.payload.currentUser.clientModel.defaultByRatesOffer\r\n : state.filterModel.byRatesOffer,\r\n hideNoRates: action.payload.currentUser\r\n ? action.payload.currentUser.clientModel.defaultHideNoRates\r\n : state.filterModel.hideNoRates\r\n }\r\n };\r\n case \"SELECTION_CARRIERRATES_LOADING_STARTED\":\r\n return {\r\n ...state,\r\n isCarrierRatesLoading: true\r\n };\r\n case \"SELECTION_CARRIERRATES_LOADING_ENDED\":\r\n return {\r\n ...state,\r\n isCarrierRatesLoading: false\r\n };\r\n case \"SELECTION_SCHEDULES_LOADING_STARTED\":\r\n return {\r\n ...state,\r\n isSchedulesLoading: true\r\n };\r\n case \"SELECTION_SCHEDULES_LOADING_ENDED\":\r\n return {\r\n ...state,\r\n isSchedulesLoading: false\r\n };\r\n case \"SELECTION_REQUEST_CARRIERRATES\":\r\n return {\r\n ...state,\r\n carrierRatesStates: {\r\n ...state.carrierRatesStates,\r\n [action.payload.carrierRatesPlatform.code]: {\r\n ...state.carrierRatesStates[action.payload.carrierRatesPlatform.code],\r\n isLoading: true,\r\n requestTime: action.payload.requestTime,\r\n carrierRatesPlatformId: action.payload.carrierRatesPlatform.carrierRatesPlatformId,\r\n errors: []\r\n }\r\n }\r\n };\r\n case \"SELECTION_RECEIVE_CARRIERRATES\":\r\n if (!state.carrierRatesStates[action.payload.carrierRatesPlatform.code]\r\n || state.carrierRatesStates[action.payload.carrierRatesPlatform.code].requestTime !== action.payload.requestTime)\r\n return state;\r\n\r\n if (action.error) {\r\n return {\r\n ...state,\r\n carrierRatesStates: {\r\n ...state.carrierRatesStates,\r\n [action.payload.carrierRatesPlatform.code]: {\r\n ...state.carrierRatesStates[action.payload.carrierRatesPlatform.code],\r\n isLoading: action.payload.isLoading,\r\n carrierRatesPlatformId: action.payload.carrierRatesPlatform.carrierRatesPlatformId,\r\n errors: action.payload.fetcherErrors && action.payload.fetcherErrors.length !== 0\r\n ? action.payload.fetcherErrors\r\n : [action.error]\r\n }\r\n }\r\n };\r\n }\r\n\r\n return {\r\n ...state,\r\n carrierRatesOffersCache: state.isLoading\r\n ? state.carrierRatesOffersCache.concat(action.payload.carrierOffers)\r\n : state.carrierRatesOffersCache,\r\n selection: state.isLoading\r\n ? state.selection\r\n : {\r\n ...state.selection,\r\n carrierOffers: state.selection.carrierOffers\r\n .concat(action.payload.carrierOffers)\r\n },\r\n carrierRatesStates: {\r\n ...state.carrierRatesStates,\r\n [action.payload.carrierRatesPlatform.code]: {\r\n ...state.carrierRatesStates[action.payload.carrierRatesPlatform.code],\r\n isLoading: action.payload.isLoading,\r\n carrierRatesPlatformId: action.payload.carrierRatesPlatform.carrierRatesPlatformId,\r\n errors: action.payload.fetcherErrors\r\n ? (state.carrierRatesStates[action.payload.carrierRatesPlatform.code].errors\r\n ? state.carrierRatesStates[action.payload.carrierRatesPlatform.code].errors.concat(action.payload.fetcherErrors)\r\n : action.payload.fetcherErrors)\r\n : state.carrierRatesStates[action.payload.carrierRatesPlatform.code].errors\r\n }\r\n }\r\n };\r\n case \"SELECTION_UPDATE_ONLYBESTTT\":\r\n return {\r\n ...state,\r\n filterModel: {\r\n ...state.filterModel,\r\n onlyShowBestTt: action.payload.value,\r\n byTransShipment: false\r\n }\r\n };\r\n case \"SELECTION_RESET_OPTIONS\":\r\n return {\r\n ...state,\r\n filterModel: action.payload.filter,\r\n };\r\n case \"SELECTION_FILTER_OPEN_CARRIERS\":\r\n return {\r\n ...state,\r\n filterModel: {\r\n ...state.filterModel,\r\n carriersOpened: true\r\n }\r\n };\r\n case \"SELECTION_FILTER_CLOSE_CARRIERS\":\r\n return {\r\n ...state,\r\n filterModel: {\r\n ...state.filterModel,\r\n carriersOpened: false\r\n }\r\n };\r\n case \"OPEN_ADV_CONTAINER\":\r\n return {\r\n ...state,\r\n advContainerOpened: true\r\n };\r\n case \"CLOSE_ADV_CONTAINER\":\r\n return {\r\n ...state,\r\n advContainerOpened: false\r\n };\r\n case \"LOGOUT\":\r\n return unloadedState;\r\n default:\r\n // The following line guarantees that every action in the KnownAction union has been covered by a case above\r\n const exhaustiveCheck: never = action;\r\n }\r\n\r\n // For unrecognized actions (or in cases where actions have no effect), must return the existing state\r\n // (or default initial state if none was supplied)\r\n return state || unloadedState;\r\n};\r\n","import * as React from 'react';\r\nimport * as ReduxForm from 'redux-form';\r\nimport DatePicker from './DatePicker';\r\nimport CheckBox from '../components/CheckBox';\r\nimport InputNumber from '../components/InputNumber';\r\nimport Select, { Option } from '../components/Select';\r\nimport { getText } from \"../utils/langTexts\";\r\nimport LocationSelect from './LocationSelect';\r\nimport { CSSProperties } from 'react';\r\nimport InputText from './InputText';\r\n\r\nexport const required = value => (value ? undefined : getText(\"GenRequired\"));\r\nexport const requiredOrZero = value => (value || value === 0 ? undefined : getText(\"GenRequired\"));\r\nexport const requiredOne = value => (!value || !value.length || value.length === 0 ? \"required at least one\" : undefined);\r\n\r\nexport const maxLength = max => value =>\r\n value && value.length > max ? `Must be ${max} characters or less` : undefined\r\n\r\nexport const minLength = min => value =>\r\n value && value.length < min ? `Must be ${min} characters or more` : undefined\r\n\r\nexport const passwordValid = value =>\r\n value && value.length >= 6\r\n && (/[A-Z]/.test(value) || /[a-z]/.test(value))\r\n && /[0-9]/.test(value)\r\n ? undefined\r\n : \"Your password must contain a letter and a number and be at least 8 characters long\";\r\n\r\nconst emailRegex = /^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\r\nexport const emailValid = value =>\r\n value && emailRegex.test(value) ? undefined : \"Email incorrect\";\r\n\r\nconst phoneRegex = /^[0-9 ]*/;\r\nexport const phoneValid = value => !value || phoneRegex.test(value) ? undefined : \"A phone must only contains numbers\";\r\n\r\nexport const renderField = ({\r\n disabled,\r\n input,\r\n className,\r\n placeholder,\r\n style,\r\n display,\r\n type,\r\n meta: { touched, error, warning }\r\n}) => (\r\n
\r\n
\r\n \r\n
\r\n
\r\n {touched &&\r\n ((error && {error}) ||\r\n (warning && {warning}))}\r\n
\r\n
\r\n )\r\n\r\ntype InputTextFieldProps = InputTextFieldOwnProps\r\n & ReduxForm.WrappedFieldProps;\r\n\r\ninterface InputTextFieldOwnProps {\r\n style?: React.CSSProperties;\r\n type?: string;\r\n}\r\n\r\nexport class InputTextField extends React.Component {\r\n public render() {\r\n return (\r\n this.props.input.onChange(e.target.value)}\r\n error={(this.props.meta.submitFailed\r\n || this.props.meta.touched)\r\n && this.props.meta.error ? true : false}\r\n helperText={(this.props.meta.submitFailed\r\n || this.props.meta.touched)\r\n && this.props.meta.error} />\r\n );\r\n }\r\n\r\n}\r\n\r\ntype NumberFieldProps = NumberFieldOwnProps\r\n & ReduxForm.WrappedFieldProps;\r\n\r\ninterface NumberFieldOwnProps {\r\n className: string;\r\n style?: React.CSSProperties;\r\n unit?: string;\r\n unitStyle?: React.CSSProperties;\r\n allowEmpty?: boolean;\r\n disabled?: boolean;\r\n}\r\n\r\nexport class NumberField extends React.Component {\r\n public render() {\r\n return (\r\n
\r\n
\r\n this.props.input.onChange(value as any)}\r\n />\r\n
\r\n \r\n
\r\n );\r\n }\r\n\r\n}\r\n\r\n\r\ntype RadioFieldProps = RadioFieldOwnProps\r\n & ReduxForm.WrappedFieldProps;\r\n\r\ninterface RadioFieldOwnProps {\r\n className: string;\r\n radioValue: any;\r\n style?: React.CSSProperties;\r\n label?: string;\r\n disabled?: boolean;\r\n}\r\n\r\nexport class RadioField extends React.Component {\r\n public render() {\r\n return (\r\n
\r\n
{\r\n if (!this.props.disabled) {\r\n this.props.input.onChange(this.props.radioValue);\r\n }\r\n }}>\r\n \r\n
\r\n {this.props.label}\r\n
\r\n
\r\n \r\n
\r\n );\r\n }\r\n\r\n}\r\n\r\n\r\ntype DatePickerFieldProps = DatePickerFieldOwnProps\r\n & ReduxForm.WrappedFieldProps;\r\n\r\ninterface DatePickerFieldOwnProps {\r\n minDate?: Date;\r\n maxDate?: Date;\r\n className?: string;\r\n setDateButton?: JSX.Element;\r\n dateToSet?: Date;\r\n style?: React.CSSProperties;\r\n iconContainerStyle?: React.CSSProperties;\r\n inputContainerStyle?: React.CSSProperties;\r\n}\r\n\r\nexport class DatePickerField extends React.Component {\r\n public render() {\r\n return (\r\n
\r\n
\r\n this.props.input.onChange(value as any)}\r\n minDate={this.props.minDate ? this.props.minDate : null}\r\n maxDate={this.props.maxDate ? this.props.maxDate : null} />\r\n
\r\n \r\n
\r\n );\r\n }\r\n\r\n}\r\n\r\nexport class HiddenField extends React.Component {\r\n\r\n componentWillReceiveProps(nextProps: ReduxForm.WrappedFieldProps) {\r\n if (nextProps.input.value !== this.props.input.value) {\r\n nextProps.input.onChange(nextProps.input.value);\r\n }\r\n }\r\n\r\n public render() {\r\n return (\r\n this.props.input.onChange(e)} />\r\n );\r\n }\r\n\r\n}\r\n\r\nexport const textAreaFieldCustom = (row: number, cols: number, placeHolder: string = \"\") => ({\r\n input,\r\n disabled,\r\n className,\r\n type,\r\n meta: { touched, error, warning }\r\n}) => (\r\n
\r\n
\r\n { input.onChange(e.target.value) }}\r\n rows={row} cols={cols} placeholder={placeHolder} />\r\n
\r\n
\r\n {touched &&\r\n ((error && {error}) ||\r\n (warning && {warning}))}\r\n
\r\n
\r\n );\r\n\r\nexport const textAreaField = (row: number, cols: number, placeHolder: string = \"\") => ({\r\n input,\r\n disabled,\r\n className,\r\n type,\r\n meta: { touched, error, warning }\r\n}) => (\r\n
\r\n
\r\n { input.onChange(e.target.value) }}\r\n rows={row} cols={cols} placeholder={placeHolder} />\r\n
\r\n
\r\n {touched &&\r\n ((error && {error}) ||\r\n (warning && {warning}))}\r\n
\r\n
\r\n );\r\n\r\nexport const checkBoxField = (label: string) => (field: any) => (\r\n
\r\n field.input.onChange(value)}\r\n />\r\n \r\n
\r\n);\r\n\r\nexport const fileField = (field: any) => (\r\n field.input.onChange(e.target.files[0])}\r\n />\r\n);\r\n\r\nexport const getSelectField = (options: Array
\r\n \r\n
\r\n
\r\n this.props.selectLocation(CriteriaState.Source.Destination, value)} />\r\n
\r\n
\r\n this.props.updateDestinationShippingType(\"Cy\")} />\r\n
CY
\r\n
\r\n
\r\n this.props.updateDestinationShippingType(\"Door\")} />\r\n
Door
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n 0 < x.number) \r\n ? { backgroundColor: \"rgb(111, 111, 110)\" } \r\n : {})\r\n }}\r\n disabled={this.props.selectionIsLoading\r\n || this.props.isLoading\r\n || !this.props.criteria.criteriaSizeTypes.some(x => 0 < x.number)\r\n || this.criteriaDisabled}\r\n onClick={() => {\r\n this.search();\r\n }}>{getText(\"SlcCrtSearch\")}\r\n
\r\n \r\n \r\n );\r\n }\r\n}\r\n\r\nexport default\r\n connect((state: ApplicationState) => {\r\n return {\r\n ...state.criteria,\r\n advCriteriaOpened: state.selection.advCriteriaOpened,\r\n selectionIsLoading: state.selection.isLoading,\r\n subscription: getSubscription(state.account.currentUser.clientModel)\r\n || { subscriptionType: null }\r\n } as SelectionCriteriaProps\r\n },\r\n {\r\n ...CriteriaState.actionCreators,\r\n ...SelectionStore.actionCreators,\r\n })\r\n (SelectionCriteria) as any as React.ComponentClass","import { addTask } from \"../utils/bugFixer\";\r\nimport { Action, Reducer } from 'redux';\r\nimport * as Api from '../api/api';\r\nimport Moment from 'moment';\r\nimport * as Notifications from 'react-notification-system-redux';\r\nimport * as _ from 'lodash';\r\nimport { AppThunkAction } from './';\r\nimport { getDefaultHeaders } from '../utils/utils';\r\nimport { ReceiveCurrentUser } from './Account';\r\n\r\nexport interface StatsState {\r\n requestStatsPrice: {\r\n requestTime?: number;\r\n isLoading: boolean;\r\n },\r\n includeOrigin: boolean;\r\n includeDestination: boolean;\r\n currencyId: number;\r\n statsPriceState: {\r\n dialogIsOpen: boolean;\r\n loadedRequestModel?: Api.RequestStatsPriceModel;\r\n statsPrice?: Api.StatsPriceModel;\r\n yearsSelected: { [year: number]: boolean };\r\n sizeTypeIdsSelected: { [year: number]: boolean };\r\n containerType: Api.CriteriaModelContainerTypeEnum;\r\n }\r\n}\r\n\r\ninterface RequestStatsPrice {\r\n type: \"REQUEST_STATS_PRICE\";\r\n payload: { requestTime: number; };\r\n}\r\ninterface ReceiveStatsPrice {\r\n type: \"RECEIVE_STATS_PRICE\";\r\n payload: {\r\n requestTime: number;\r\n statsPrice?: Api.StatsPriceModel,\r\n requestModel?: Api.RequestStatsPriceModel\r\n };\r\n error?: any;\r\n}\r\n\r\ninterface UpdateStatsIncludeOrigin {\r\n type: \"UPDATE_STATS_INCLUDEORIGIN\";\r\n payload: { value: boolean; };\r\n}\r\ninterface UpdateStatsIncludeDestination {\r\n type: \"UPDATE_STATS_INCLUDEODESTINATION\";\r\n payload: { value: boolean; };\r\n}\r\n\r\ninterface UpdateStatsCurrencyId {\r\n type: \"UPDATE_STATS_CURRENCYID\";\r\n payload: { value: number; };\r\n}\r\n\r\ninterface OpenStatsPriceDialog {\r\n type: \"OPEN_STATSPRICE_DIALOG\";\r\n}\r\ninterface CloseStatsPriceDialog {\r\n type: \"CLOSE_STATSPRICE_DIALOG\";\r\n}\r\ninterface UpdateStatsPriceYearIsSelected {\r\n type: \"UPDATE_STATSPRICE_YEAR_ISSELECTED\";\r\n payload: { value: boolean; year: number; };\r\n}\r\ninterface UpdateStatsPriceSizeTypeIdIsSelected {\r\n type: \"UPDATE_STATSPRICE_SIZETYPEID_ISSELECTED\";\r\n payload: { value: boolean; sizeTypeId: number; };\r\n}\r\ninterface UpdateStatsPriceContainerType {\r\n type: \"UPDATE_STATSPRICE_CONTAINERTYPE\";\r\n payload: { value: Api.CriteriaModelContainerTypeEnum };\r\n}\r\n\r\ntype KnownAction = ReceiveCurrentUser\r\n | RequestStatsPrice\r\n | ReceiveStatsPrice\r\n | UpdateStatsIncludeOrigin\r\n | UpdateStatsIncludeDestination\r\n | UpdateStatsCurrencyId\r\n | OpenStatsPriceDialog\r\n | CloseStatsPriceDialog\r\n | UpdateStatsPriceYearIsSelected\r\n | UpdateStatsPriceSizeTypeIdIsSelected\r\n | UpdateStatsPriceContainerType;\r\n\r\nexport const actionCreators = {\r\n requestStats: (requestTime: number, model: Api.RequestStatsPriceModel): AppThunkAction> => (dispatch, getState) => {\r\n let api = new Api.StatsApi();\r\n let task = api.getStatsPrice({\r\n model: model\r\n }, { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(statsPrice => {\r\n dispatch({\r\n type: \"RECEIVE_STATS_PRICE\",\r\n payload: {\r\n requestTime: requestTime,\r\n statsPrice: statsPrice,\r\n requestModel: model\r\n }\r\n });\r\n })\r\n .catch(err => {\r\n dispatch({\r\n type: \"RECEIVE_STATS_PRICE\",\r\n payload: {\r\n requestTime: requestTime,\r\n },\r\n error: err\r\n });\r\n dispatch(Notifications.error({ message: \"Error fetching data\", title: \"Error\", position: \"tc\" }) as any);\r\n });\r\n\r\n dispatch({\r\n type: \"REQUEST_STATS_PRICE\",\r\n payload: { requestTime: requestTime }\r\n });\r\n addTask(task);\r\n return task;\r\n },\r\n openStatsPriceDialog: (): AppThunkAction => (dispatch, getState) => {\r\n dispatch({\r\n type: \"OPEN_STATSPRICE_DIALOG\"\r\n });\r\n },\r\n closeStatsPriceDialog: () => {\r\n type: \"CLOSE_STATSPRICE_DIALOG\"\r\n },\r\n updateIncludeOrigin: (value: boolean) => {\r\n type: 'UPDATE_STATS_INCLUDEORIGIN',\r\n payload: { value: value }\r\n },\r\n updateIncludeDestination: (value: boolean) => {\r\n type: 'UPDATE_STATS_INCLUDEODESTINATION',\r\n payload: { value: value }\r\n },\r\n updateStatsCurrencyId: (value: number) => {\r\n type: 'UPDATE_STATS_CURRENCYID',\r\n payload: { value: value }\r\n },\r\n updateYearIsSelected: (year: number, value: boolean) => {\r\n type: \"UPDATE_STATSPRICE_YEAR_ISSELECTED\",\r\n payload: {\r\n year: year,\r\n value: value\r\n }\r\n },\r\n updateSizeTypeIdIsSelected: (sizeTypeId: number, value: boolean) => {\r\n type: \"UPDATE_STATSPRICE_SIZETYPEID_ISSELECTED\",\r\n payload: {\r\n sizeTypeId: sizeTypeId,\r\n value: value\r\n }\r\n },\r\n updateContainerType: (value: Api.CriteriaModelContainerTypeEnum) => {\r\n type: \"UPDATE_STATSPRICE_CONTAINERTYPE\",\r\n payload: {\r\n value: value\r\n }\r\n }\r\n};\r\n\r\nconst unloadedState: StatsState = {\r\n requestStatsPrice: {\r\n isLoading: false,\r\n },\r\n includeOrigin: false,\r\n includeDestination: false,\r\n currencyId: 1,\r\n statsPriceState: {\r\n dialogIsOpen: false,\r\n yearsSelected: {},\r\n sizeTypeIdsSelected: {},\r\n containerType: \"Dry\"\r\n }\r\n};\r\n\r\nexport const reducer: Reducer = (state: StatsState, incomingAction: Action) => {\r\n const action = incomingAction as KnownAction;\r\n switch (action.type) {\r\n case \"REQUEST_STATS_PRICE\":\r\n return {\r\n ...state,\r\n requestStatsPrice: {\r\n ...state.requestStatsPrice,\r\n requestTime: action.payload.requestTime,\r\n isLoading: true\r\n }\r\n };\r\n case \"RECEIVE_STATS_PRICE\":\r\n if (action.payload.requestTime !== state.requestStatsPrice.requestTime)\r\n return state;\r\n\r\n if (action.error)\r\n return {\r\n ...state,\r\n requestStatsPrice: {\r\n ...state.requestStatsPrice,\r\n isLoading: false\r\n }\r\n };\r\n\r\n return {\r\n ...state,\r\n requestStatsPrice: {\r\n ...state.requestStatsPrice,\r\n isLoading: false\r\n },\r\n statsPriceState: {\r\n ...state.statsPriceState,\r\n statsPrice: action.payload.statsPrice,\r\n loadedRequestModel: action.payload.requestModel,\r\n yearsSelected: _.mapValues(_.keyBy(_.sortBy(\r\n _.uniq(action.payload.statsPrice.monthStatsPrices\r\n .map(x => x.year)))), x => x === Moment().year())\r\n }\r\n };\r\n case \"UPDATE_STATS_INCLUDEORIGIN\":\r\n return {\r\n ...state,\r\n includeOrigin: action.payload.value\r\n };\r\n case \"UPDATE_STATS_INCLUDEODESTINATION\":\r\n return {\r\n ...state,\r\n includeDestination: action.payload.value\r\n };\r\n case \"UPDATE_STATS_CURRENCYID\":\r\n return {\r\n ...state,\r\n currencyId: action.payload.value\r\n };\r\n case \"RECEIVE_CURRENT_USER\":\r\n if (action.error)\r\n return state;\r\n\r\n return {\r\n ...unloadedState,\r\n currencyId: action.payload.currentUser.clientModel.currencyId\r\n };\r\n case \"OPEN_STATSPRICE_DIALOG\":\r\n return {\r\n ...state,\r\n statsPriceState: {\r\n ...state.statsPriceState,\r\n dialogIsOpen: true\r\n }\r\n };\r\n case \"CLOSE_STATSPRICE_DIALOG\":\r\n return {\r\n ...state,\r\n statsPriceState: {\r\n ...state.statsPriceState,\r\n dialogIsOpen: false\r\n }\r\n };\r\n case \"UPDATE_STATSPRICE_YEAR_ISSELECTED\":\r\n return {\r\n ...state,\r\n statsPriceState: {\r\n ...state.statsPriceState,\r\n yearsSelected: {\r\n ...state.statsPriceState.yearsSelected,\r\n [action.payload.year]: action.payload.value\r\n }\r\n }\r\n };\r\n case \"UPDATE_STATSPRICE_SIZETYPEID_ISSELECTED\":\r\n return {\r\n ...state,\r\n statsPriceState: {\r\n ...state.statsPriceState,\r\n sizeTypeIdsSelected: {\r\n ...state.statsPriceState.sizeTypeIdsSelected,\r\n [action.payload.sizeTypeId]: action.payload.value\r\n }\r\n }\r\n };\r\n case \"UPDATE_STATSPRICE_CONTAINERTYPE\":\r\n return {\r\n ...state,\r\n statsPriceState: {\r\n ...state.statsPriceState,\r\n containerType: action.payload.value,\r\n sizeTypeIdsSelected: {}\r\n }\r\n };\r\n default:\r\n // The following line guarantees that every action in the KnownAction union has been covered by a case above\r\n const exhaustiveCheck: never = action;\r\n }\r\n\r\n // For unrecognized actions (or in cases where actions have no effect), must return the existing state\r\n // (or default initial state if none was supplied)\r\n return state || unloadedState;\r\n};\r\n","import * as React from 'react';\r\nimport * as Api from '../api/api';\r\nimport { getText } from '../utils/langTexts';\r\nimport Linkify from \"react-linkify\";\r\nimport { getFirmName } from '../utils/utils';\r\nimport * as Colors from \"../styles/colors\";\r\nimport { Warning } from '@material-ui/icons';\r\nimport Moment from 'moment';\r\n\r\ninterface OfferRatesOfferProps {\r\n ratesOffer: Api.RatesOfferModel;\r\n chargeSet: Api.ChargeSetModel;\r\n offerInformations: Array;\r\n subscriptions: Array;\r\n markets: { [id: number]: Api.MarketModel };\r\n}\r\n\r\nconst fieldStyle: React.CSSProperties = { marginBottom: 10, marginTop: 10 };\r\nconst containerStyle: React.CSSProperties = {};\r\nconst innerStyle: React.CSSProperties = {};\r\nconst labelStyle: React.CSSProperties = { marginRight: 3 };\r\n\r\nexport default class OfferRatesOffer extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n }\r\n\r\n get CompanyOwner(): Api.FirmModel {\r\n if (!this.props.chargeSet.firmId)\r\n return null;\r\n\r\n let subAgency = this.props.subscriptions\r\n .find(x => x.subscriptionType === \"Okargo\"\r\n && x.agencyId === this.props.chargeSet.firmId);\r\n if (subAgency)\r\n return subAgency.agency;\r\n\r\n let subCompany = this.props.subscriptions\r\n .find(x => x.subscriptionType === \"Okargo\"\r\n && x.agency.companyId === this.props.chargeSet.firmId)\r\n if (subCompany)\r\n return subCompany.agency.company;\r\n\r\n let subCompanyGroup = this.props.subscriptions\r\n .find(x => x.subscriptionType === \"Okargo\"\r\n && x.agency.company.companyGroupId === this.props.chargeSet.firmId)\r\n if (subCompanyGroup)\r\n return subCompanyGroup.agency.company.companyGroup;\r\n\r\n let agentFirm = this.props.subscriptions\r\n .find(x => x.subscriptionType === \"Agent\"\r\n && x.firmId === this.props.chargeSet.firmId);\r\n return agentFirm\r\n ? agentFirm.firm\r\n : null;\r\n }\r\n\r\n public render() {\r\n return
\r\n
\r\n {this.props.ratesOffer\r\n && this.props.ratesOffer.shortName\r\n &&
\r\n \r\n {this.props.ratesOffer.shortName}\r\n
}\r\n
\r\n \r\n {this.props.chargeSet.carrierReference\r\n || (this.props.ratesOffer && this.props.ratesOffer.references.map(r => r.value).join(','))\r\n || getText(\"GenNone\")}\r\n
\r\n {!this.props.chargeSet.ratesFetchedRecordId\r\n &&
\r\n\r\n \r\n { Moment(this.props.chargeSet.creationDate).format(\"DD/MM/YYYY\")}\r\n
}\r\n {this.props.ratesOffer?.commodity &&
\r\n \r\n {this.props.ratesOffer?.commodity}\r\n
}\r\n {this.props.ratesOffer?.nac\r\n &&
\r\n \r\n {this.props.ratesOffer.nac}\r\n
}\r\n {this.props.chargeSet.source\r\n &&
\r\n \r\n {this.props.chargeSet.source}\r\n
}\r\n {this.props.ratesOffer\r\n && this.props.ratesOffer.owner\r\n &&
\r\n \r\n {this.props.ratesOffer.owner}\r\n
}\r\n {this.props.chargeSet.marketId\r\n &&
\r\n \r\n {this.props.markets[this.props.chargeSet.marketId].name}\r\n
}\r\n
\r\n \r\n {(this.CompanyOwner\r\n ? getFirmName(this.CompanyOwner)\r\n : getText(\"GenNone\"))}\r\n
\r\n {this.props.ratesOffer\r\n && this.props.ratesOffer.description\r\n && !/^\\s*$/.test(this.props.ratesOffer.description)\r\n &&
\r\n
\r\n {this.props.ratesOffer && this.props.ratesOffer.level === \"High\" &&\r\n \r\n }\r\n \r\n
\r\n
\r\n {this.props.ratesOffer && this.props.ratesOffer.description\r\n ? {this.props.ratesOffer.description}\r\n : not defined}\r\n
\r\n
}\r\n {this.props.offerInformations\r\n .filter(x => x.chargeSetId)\r\n .map(x =>\r\n
\r\n
\r\n \r\n
\r\n
\r\n {x.content}\r\n
\r\n
)}\r\n {this.props.offerInformations\r\n .filter(x => x.workDocumentsId)\r\n .map(x =>\r\n
\r\n
\r\n \r\n
\r\n
\r\n {x.content}\r\n
\r\n
)}\r\n {this.props.offerInformations\r\n //General info like carrier rates info\r\n .filter(x => !x.chargeSetId && !x.workDocumentsId)\r\n .map(x =>\r\n
\r\n
\r\n \r\n
\r\n
\r\n {x.content}\r\n
\r\n
)}\r\n
\r\n
\r\n }\r\n}","import * as React from 'react';\r\nimport { connect } from 'react-redux';\r\nimport { ApplicationState } from '../store';\r\nimport * as Api from '../api/api';\r\nimport OfferReminder from './OfferReminder';\r\nimport * as SelectionStore from '../store/Selection';\r\nimport * as AskRatesStore from '../store/AskRates';\r\nimport { getCarrierOfferKey } from '../utils/utils';\r\nimport { getText } from '../utils/langTexts';\r\nimport { revertColors } from '../styles/colors';\r\nimport _, { sortBy } from 'lodash';\r\n\r\n\r\ninterface DDSetTableProps {\r\n\r\n ddSet: Api.DdSetModel;\r\n sizeTypes: { [id: number]: Api.SizeTypeModel };\r\n currencies: { [id: number]: Api.CurrencyModel };\r\n}\r\n\r\n\r\nconst tableStyle = { border: \"1px solid\", textAlign: \"left\", borderCollapse: \"collapse\", marginBottom:10, marginTop:5 } as React.CSSProperties;\r\nconst cellStyle = { border: \"1px solid\", padding: \"4px\" } as React.CSSProperties;\r\nconst rightAligin = { textAlign: \"right\" } as React.CSSProperties;\r\n\r\nconst containerStyle = {} as React.CSSProperties;\r\nconst innerStyle = { padding: 10 } as React.CSSProperties;\r\n\r\nconst dayType: Array<{ key: Api.DdChargeModelDayCountCategoryEnum; value: string }> = [\r\n { key: \"Cal\" ,value:\"Calendar\"},\r\n { key: \"Wrk\", value: \"Work\" },\r\n\r\n];\r\n\r\nconst ddChargeName: Array<{ key: number; value: string }> = [\r\n { key: 3, value: \"Detention and Demurage\" },\r\n { key: 4, value: \"Plug In\" },\r\n { key: 2, value: \"Demurage\" },\r\n { key: 1, value: \"Detention\" },\r\n { key: 5, value: \"Bt\" },\r\n { key: 6, value: \"Chassis\" },\r\n\r\n];\r\n\r\n\r\n\r\nexport default class DDSetTable extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n }\r\n\r\n\r\n\r\n\r\n public render() {\r\n\r\n\r\n var grouped = _.groupBy(this.props.ddSet.charges, x => `${x.ddChargeNameId} ${x.application}`);\r\n\r\n\r\n\r\n return
\r\n
\r\n {this.props.ddSet &&\r\n (
\r\n D&D information:\r\n {_.map(grouped, x => {\r\n\r\n let firstCharge = _.sortBy(x, c => c.currencyId != null).reverse()[0];\r\n var units = _.sortBy(_.uniq(x.map(c => c.sizeTypeId != null ? this.props.sizeTypes[c.sizeTypeId].name : c.unit)));\r\n\r\n var periods = _.sortBy(_.groupBy(x, p => `${p.fromDay}${p.untilDay}`), x => x[0].fromDay);\r\n \r\n return (
\r\n\r\n {ddChargeName.find(d => d.key == firstCharge.ddChargeNameId).value} at {firstCharge.application}: cost per {dayType.find(d => d.key == firstCharge.dayCountCategory).value} days {(firstCharge.currencyId !=null ? `in ${this.props.currencies[firstCharge.currencyId].code}`:``)}\r\n\r\n \r\n \r\n \r\n {units.map(u => )}\r\n \r\n {_.map(periods, p => {\r\n var period = p[0];\r\n var charges = _.sortBy(p, c => c.sizeTypeId != null ? this.props.sizeTypes[c.sizeTypeId].name : c.unit);\r\n return (\r\n \r\n {charges.map(c => )}\r\n \r\n )\r\n })\r\n\r\n }\r\n\r\n
Period{u}
{period.fromDay} {(period.untilDay === null ? `+`: `- ${ period.untilDay}`)} {c.amountType == \"Free\" ? \"Free\" : c.amount}
\r\n \r\n
)\r\n })\r\n }\r\n
\r\n )}\r\n
\r\n
\r\n }\r\n}\r\n\r\n","import * as React from \"react\";\r\nimport * as Colors from \"../styles/colors\";\r\nimport Tooltip from \"./Tooltip\";\r\nimport { getText } from \"../utils/langTexts\";\r\n\r\nexport default class OperationalAccuracy extends React.Component < {}, {} > {\r\n public render() {\r\n return (\r\n
{ e.stopPropagation(); }}>\r\n \r\n {getText(\"SlcOfferUnaccuracyMessage\")}\r\n
}>\r\n \r\n {this.props.children}\r\n {!this.props.children && \r\n }\r\n \r\n \r\n \r\n );\r\n }\r\n}","import { isClient } from \"./utils\";\r\n\r\nclass KeyboardHandler {\r\n private keys: { [key: number]: boolean };\r\n\r\n constructor() {\r\n this.keys = {};\r\n }\r\n\r\n public initialize(): void {\r\n if (isClient()) {\r\n window.onkeydown = (e) => {\r\n this.keys[e.keyCode] = true;\r\n };\r\n window.onkeyup = (e) => {\r\n this.keys[e.keyCode] = false;\r\n };\r\n }\r\n }\r\n\r\n public isKeyPressed(keyCode: number): boolean {\r\n return this.keys[keyCode];\r\n }\r\n}\r\n\r\nconst keyboardHandler = new KeyboardHandler();\r\nexport default keyboardHandler;","import * as React from 'react';\r\nimport * as Api from '../api/api';\r\nimport Tooltip from \"./Tooltip\";\r\nimport { matchExactChriteria } from '../utils/ratesUtils';\r\n\r\ninterface FreetimeProps {\r\n ddCharges: Array;\r\n criteria : Api.CriteriaModel;\r\n}\r\n\r\ninterface DdChargeProps {\r\n title: string;\r\n ddCharges: Array;\r\n}\r\n\r\nclass DdCharge extends React.Component {\r\n get freeCharge(): Api.DdChargeModel {\r\n return this.props.ddCharges.find(x => x.amountType === \"Free\");\r\n }\r\n\r\n get bodyRender(): JSX.Element {\r\n return (\r\n
\r\n
\r\n
{this.freeCharge\r\n ? this.freeCharge.untilDay\r\n : 0}
\r\n
{this.props.title}
\r\n
\r\n {this.freeCharge\r\n && this.freeCharge.dayCountCategory === \"Wrk\"\r\n &&
*
}\r\n
\r\n );\r\n }\r\n\r\n public render() {\r\n if (this.freeCharge\r\n && this.freeCharge.dayCountCategory === \"Wrk\") {\r\n return (\r\n Working days}>\r\n {this.bodyRender}\r\n \r\n );\r\n } else {\r\n return this.bodyRender;\r\n }\r\n }\r\n} \r\n\r\nexport default class Freetime extends React.Component {\r\n\r\n get demAndDem(): Array {\r\n return this.props.ddCharges\r\n .filter(x => this.isForSelectedCriteria(x, this.props.criteria) && x.ddChargeNameId === 3);\r\n }\r\n\r\n\r\n get dem(): Array {\r\n return this.props.ddCharges\r\n .filter(x => this.isForSelectedCriteria(x, this.props.criteria) && x.ddChargeNameId === 2);\r\n }\r\n\r\n get det(): Array {\r\n return this.props.ddCharges\r\n .filter(x => this.isForSelectedCriteria(x, this.props.criteria) && x.ddChargeNameId === 1);\r\n }\r\n\r\n get pgi(): Array {\r\n return this.props.ddCharges\r\n .filter(x => this.isForSelectedCriteria(x, this.props.criteria) && x.ddChargeNameId === 4);\r\n }\r\n\r\n get bt(): Array {\r\n return this.props.ddCharges\r\n .filter(x => this.isForSelectedCriteria(x, this.props.criteria) && x.ddChargeNameId === 5);\r\n }\r\n\r\n get chassis(): Array {\r\n return this.props.ddCharges\r\n .filter(x => this.isForSelectedCriteria(x, this.props.criteria) && x.ddChargeNameId === 6);\r\n }\r\n\r\n private isForSelectedCriteria(ddCharge: Api.DdChargeModel, criteria: Api.CriteriaModel): boolean {\r\n return (ddCharge.containerType === null || ddCharge.containerType === criteria.containerType) && (((!this.props.criteria.chargeCriterias\r\n || this.props.criteria.chargeCriterias.length === 0)\r\n && !ddCharge.criteria)\r\n || matchExactChriteria(ddCharge.criteria, this.props.criteria.chargeCriterias)); \r\n }\r\n\r\n public render() {\r\n\r\n //console.log(this.props.ddCharges);\r\n //console.log(this.props.criteria);\r\n\r\n return (\r\n
\r\n
\r\n {this.demAndDem.length !== 0 && }\r\n {this.dem.length !== 0 && }\r\n {this.dem.length !== 0 && this.det.length !== 0 &&
+
}\r\n {this.det.length !== 0 && }\r\n {this.pgi.length !== 0 && (this.det.length !== 0 || this.dem.length !== 0) &&
/
}\r\n {this.pgi.length !== 0 && }\r\n\r\n {(this.bt.length !== 0 || this.chassis.length !== 0)\r\n && (this.pgi.length !== 0 || this.det.length !== 0 || this.dem.length !== 0) &&
/
}\r\n {this.bt.length !== 0 && }\r\n {this.bt.length !== 0 && this.chassis.length !== 0 &&
+
}\r\n {this.chassis.length !== 0 && }\r\n
\r\n
\r\n );\r\n }\r\n}","import * as React from 'react';\r\nimport * as Api from '../api/api';\r\nimport { getText } from '../utils/langTexts';\r\nimport Tooltip from \"./Tooltip\";\r\n\r\ninterface ChargeSetAvailabiltyProps {\r\n carrierOffer: Api.CarrierOfferModel;\r\n criteria: Api.CriteriaModel;\r\n sizeTypes: {[id: number]: Api.SizeTypeModel};\r\n}\r\n\r\ntype Availability = \"None\" | \"NotAvailable\" | \"FewAvailable\" | \"Available\";\r\n\r\nexport default class ChargeSetAvailabilty extends React.Component {\r\n\r\n get ratesAvailabiltys(): Array {\r\n return this.props.carrierOffer.ratesAvailabilitys\r\n .filter(x => x.status !== \"Allocation\"\r\n && this.props.criteria.criteriaSizeTypes\r\n .some(y => y.number > 0\r\n && (!x.sizeTypeId || y.sizeTypeId == x.sizeTypeId)));\r\n }\r\n\r\n get Availability(): Availability {\r\n if (this.ratesAvailabiltys.length === 0)\r\n return \"None\";\r\n\r\n if (this.ratesAvailabiltys.length !== 0\r\n && this.ratesAvailabiltys.some(x => x.status === \"NotAvailable\"))\r\n return \"NotAvailable\";\r\n\r\n if (this.ratesAvailabiltys.length !== 0\r\n && this.ratesAvailabiltys.some(x => x.status === \"FewAvailable\"))\r\n return \"FewAvailable\";\r\n\r\n return \"Available\";\r\n }\r\n \r\n get ratesAvailabilityJsx(): JSX.Element {\r\n return
\r\n {this.Availability == \"None\"\r\n && }\r\n {this.Availability == \"NotAvailable\"\r\n && getText(\"GenRatesAvailabiltyNotAvailable\")}\r\n {this.Availability == \"FewAvailable\"\r\n && getText(\"GenRatesAvailabiltyFewAvailable\")}\r\n {this.Availability == \"Available\"\r\n && getText(\"GenRatesAvailabiltyAvailable\")}\r\n
;\r\n }\r\n\r\n public render() {\r\n return (\r\n
\r\n {this.props.carrierOffer.ratesAvailabilitys\r\n && this.props.carrierOffer.ratesAvailabilitys\r\n .some(x => x.containerLeft || x.containerLeft === 0)\r\n && \r\n {this.props.carrierOffer.ratesAvailabilitys\r\n .filter(x => x.sizeTypeId && (x.containerLeft || x.containerLeft === 0))\r\n .map(ra =>
\r\n {this.props.sizeTypes[ra.sizeTypeId].name}: {ra.containerLeft}\r\n
)}\r\n {this.props.carrierOffer.ratesAvailabilitys\r\n .filter(x => !x.sizeTypeId && (x.containerLeft || x.containerLeft === 0))\r\n .map(ra =>
\r\n {getText(\"GenRatesAvailabiltyUnits\")}: {ra.containerLeft}\r\n
)}\r\n\r\n
}>\r\n
\r\n {this.ratesAvailabilityJsx}
*
\r\n
\r\n }\r\n {this.props.carrierOffer.ratesAvailabilitys\r\n && !this.props.carrierOffer.ratesAvailabilitys\r\n .some(x => x.containerLeft|| x.containerLeft === 0)\r\n && this.ratesAvailabilityJsx}\r\n \r\n );\r\n }\r\n}","import * as React from 'react';\r\nimport OfferPrice, { IncludedWarning } from './OfferPrice';\r\nimport { OfferScope } from './OfferScope';\r\nimport OfferRatesName from './OfferRatesName';\r\nimport OfferRatesOffer from './OfferRatesOffer';\r\nimport DDSetTable from './DDSetTable';\r\nimport * as SelectionStore from '../store/Selection';\r\nimport * as Api from '../api/api';\r\nimport * as _ from 'lodash';\r\nimport Moment from 'moment';\r\nimport { getCarrierOfferKey, getRatesStyle, offerIsCarrierRating } from '../utils/utils';\r\nimport Tooltip from './Tooltip';\r\nimport { RatesCalculator } from '../utils/ratesUtils';\r\nimport * as Colors from \"../styles/colors\";\r\nimport { getText } from '../utils/langTexts';\r\nimport OperationalAccuracy from './OperationalAccuracy';\r\nimport Table, { Column } from './Table';\r\nimport { frtId } from '../utils/constants';\r\nimport keyboard from '../utils/keyboard';\r\nimport { getRouteConfig } from '../utils/routeUtils';\r\nimport { AddShoppingCart, CheckCircle, Warning, Info } from \"@material-ui/icons\";\r\nimport Freetime from './Freetime';\r\nimport ChargeSetAvailabilty from \"./ChargeSetAvailabilty\";\r\nimport { getTableTransitTime } from '../store/Selection';\r\n\r\ninterface OfferTableProps {\r\n subscriptions: Array;\r\n carrierOffersGrouped: Array>;\r\n carrierRatings: { [id: number]: Api.CarrierRatingModel };\r\n carrierOfferStates: { [id: string]: SelectionStore.CarrierOfferState };\r\n subscriptionType: Api.SubscriptionModelSubscriptionTypeEnum;\r\n isLoading: boolean;\r\n multiPortIsLoading: boolean;\r\n multiPortIsActive: boolean;\r\n multiPortOffers: Array; //I try to keep the store part to a minimum\r\n sellingRates: Array;\r\n criteriaModel: Api.CriteriaModel;\r\n criteriaLoaded: Api.CriteriaModel;\r\n currencies: { [id: number]: Api.CurrencyModel };\r\n carriers: { [id: number]: Api.CarrierModel };\r\n sizeTypes: { [id: number]: Api.SizeTypeModel };\r\n markets: { [id: number]: Api.MarketModel };\r\n currencyId: number;\r\n handleOfferClick: (id: string) => void;\r\n selectSortBy: (value: SelectionStore.CarrierOfferSort) => void;\r\n openGroup: (id: string) => void;\r\n closeGroup: (id: string) => void;\r\n selectCarrierOffer: (id: string, value: boolean) => void;\r\n requestAddOfferToMultiPort: (carrierOffer: Api.CarrierOfferModel) => void;\r\n requestAddAllOffersToMultiPort: () => void;\r\n selectRouteService: (key: string, routeServiceId: number) => void;\r\n selectAllCarrierOffer: (value: boolean) => void;\r\n filterOptions: SelectionStore.SelectionFilterOptions;\r\n fitlerSortBy: SelectionStore.CarrierOfferSort;\r\n byRatesOffer: boolean;\r\n carrierOffersSelected: { [id: string]: boolean },\r\n carrierRatesPlatforms: { [id: number]: Api.CarrierRatesPlatformModel };\r\n}\r\n\r\nexport const canAddToMultiPort = (carrierOffer: Api.CarrierOfferModel,\r\n multiPortIsLoading: boolean,\r\n multiPortOffers: Array): boolean => {\r\n return !multiPortIsLoading\r\n && multiPortOffers\r\n && !multiPortOffers.some(mo => mo.chargeSet.chargeSetId === carrierOffer.chargeSet.chargeSetId);\r\n};\r\n\r\ntype OfferColumn = Column\r\n & { carrierOfferSort?: SelectionStore.CarrierOfferSort }\r\n\r\nconst containerPriceColumn = (props: OfferTableProps, criteriaSize: Api.CriteriaSizeTypeModel, ratesCalculator: RatesCalculator): OfferColumn => {\r\n return {\r\n header: {\r\n props.selectSortBy((\"AllInCtr\" + props.sizeTypes[criteriaSize.sizeTypeId].position) as any);\r\n e.preventDefault();\r\n }}>{props.sizeTypes[criteriaSize.sizeTypeId].name},\r\n id: 'total' + props.sizeTypes[criteriaSize.sizeTypeId].sizeTypeId,\r\n carrierOfferSort: `AllInCtr${props.sizeTypes[criteriaSize.sizeTypeId].position}`,\r\n sorted: () => props.fitlerSortBy === `AllInCtr${props.sizeTypes[criteriaSize.sizeTypeId].position}` ? \"desc\" : undefined,\r\n align: \"center\",\r\n style: { whiteSpace: \"nowrap\", padding: \"calc(0.2vw + 2px) calc(0.4vw + 4px)\" },\r\n accessor: (d) => d,\r\n cell: (d) => {\r\n let carrierOffer = d;\r\n let relevantCharges = carrierOffer.chargeSet\r\n ? ratesCalculator.findChargesToApply(\r\n carrierOffer.chargeSet, criteriaSize).concat(ratesCalculator.findBlChargesToApply(carrierOffer.chargeSet))\r\n : [];\r\n return (\r\n
\r\n {carrierOffer.chargeSet && !carrierOffer.chargeSet.invalidated\r\n ?
\r\n \r\n
\r\n {relevantCharges.some(x => x.chargeNameId === frtId)\r\n ? Math.round((ratesCalculator.calculatePrice(\r\n relevantCharges, props.sizeTypes[criteriaSize.sizeTypeId].teu).totalUsd)\r\n / props.currencies[props.currencyId].value)\r\n : \"_\"}\r\n \r\n {relevantCharges.some(x => x.chargeNameId === frtId)\r\n && props.currencies[props.currencyId].code}\r\n
\r\n
\r\n \r\n
\r\n :
\r\n {!carrierOffer.chargeSet\r\n ? \"-\"\r\n : This rates have been disabled by a moderator
}>\r\n
Disabled
\r\n }\r\n
}\r\n \r\n );\r\n }\r\n } as OfferColumn\r\n};\r\n\r\nconst getColumns = (props: OfferTableProps, ratesCalculator: RatesCalculator): Array => {\r\n let hasAltPol = props.criteriaLoaded && props.carrierOffersGrouped\r\n .reduce((a, b) => a.concat(b), [])\r\n .some(y => y.originPort.locationId !== props.criteriaLoaded.origin.locationId\r\n && (!y.originTerminal\r\n || y.originTerminal.locationId !== props.criteriaLoaded.origin.locationId));\r\n let hasAltPod = props.criteriaLoaded && props.carrierOffersGrouped\r\n .reduce((a, b) => a.concat(b), [])\r\n .some(y => y.destinationPort.locationId !== props.criteriaLoaded.destination.locationId\r\n && (!y.destinationTerminal\r\n || y.destinationTerminal.locationId !== props.criteriaLoaded.origin.locationId));\r\n\r\n return ([\r\n {\r\n header: {\r\n props.selectSortBy(\"Carrier\");\r\n e.preventDefault();\r\n }}>\r\n {getText(\"SlcTableCarrier\")},\r\n style: { paddingLeft: '10px !important', whiteSpace: \"nowrap\", width: \"auto\", padding: \"calc(0.2vw + 2px) calc(0.4vw + 4px)\" },\r\n id: 'carrrier',\r\n align: \"center\",\r\n headerAlign: \"left\",\r\n carrierOfferSort: \"Carrier\",\r\n sorted: () => props.fitlerSortBy === \"Carrier\" ? \"desc\" : undefined,\r\n accessor: (d) => d,\r\n cell: (d: any) => {\r\n let carrierOffer = d as Api.CarrierOfferModel;\r\n return (\r\n
\r\n
{props.carriers[carrierOffer.carrierId].name}
\r\n {carrierOffer.chargeSet\r\n && props.carrierRatings\r\n && offerIsCarrierRating(carrierOffer, props.carrierRatings[carrierOffer.carrierId])\r\n && \r\n {props.carrierRatings[carrierOffer.carrierId].label}
}>\r\n \r\n {\" \"}\r\n \r\n \r\n }\r\n \r\n );\r\n }\r\n },\r\n {\r\n header:
{getText(\"SlcTableRates\")}
,\r\n id: 'rates',\r\n align: \"center\",\r\n headerAlign: \"left\",\r\n sortingDisabled: true,\r\n style: { width: \"100%\", padding: \"calc(0.2vw + 2px) calc(0.4vw + 4px)\" },\r\n accessor: (d) => d,\r\n cell: (d: any) => {\r\n let carrierOffer = d as Api.CarrierOfferModel;\r\n let hasToolTip = carrierOffer.chargeSet\r\n && ((carrierOffer.ratesOffer\r\n && (carrierOffer.ratesOffer.description != null && carrierOffer.ratesOffer.description.length > 0))\r\n || (carrierOffer.offerInformations\r\n && carrierOffer.offerInformations.length !== 0)\r\n || carrierOffer.chargeSet.marketId);\r\n let hasWarning = ((carrierOffer.offerInformations\r\n && carrierOffer.offerInformations.some(x => x.level === \"High\")) || (carrierOffer.ratesOffer && carrierOffer.ratesOffer.level === \"High\"));\r\n\r\n\r\n //Tooltip children have to implement hovering etc ...\r\n //So wrap the content within a div\r\n return (\r\n
\r\n {carrierOffer.chargeSet\r\n ?\r\n
\r\n \r\n \r\n {carrierOffer.ddSet && }\r\n
}\r\n placement=\"right\"\r\n hideDelay={0.4}>\r\n
\r\n
\r\n \r\n
\r\n {hasToolTip && !hasWarning && }\r\n {hasWarning && }\r\n
\r\n \r\n
\r\n : null}\r\n \r\n );\r\n }\r\n } as OfferColumn\r\n ] as Array).concat(\r\n (props.criteriaModel.containerPrice\r\n ?\r\n props.criteriaModel.criteriaSizeTypes.filter(cst => cst.number > 0)\r\n .map(cst => containerPriceColumn(props, cst, ratesCalculator))\r\n :\r\n [\r\n {\r\n header: {\r\n props.selectSortBy(\"AllIn\");\r\n e.preventDefault();\r\n }}>\r\n {getText(\"SlcTableTotalFrom\")},\r\n id: 'totalFrom',\r\n style: { whiteSpace: \"nowrap\", padding: \"calc(0.2vw + 2px) calc(0.4vw + 4px)\" },\r\n align: \"center\",\r\n carrierOfferSort: `AllIn`,\r\n sorted: () => props.fitlerSortBy === \"AllIn\" ? \"desc\" : undefined,\r\n accessor: (d) => d,\r\n cell: (d: any) =>
\r\n
\r\n \r\n \r\n
\r\n
\r\n }\r\n ]) as Array)\r\n .concat((props.criteriaLoaded && props.criteriaLoaded.includeCarrierRates)\r\n || props.carrierOffersGrouped.some(x => x.some(y => y.ratesAvailabilitys.length !== 0))\r\n ? [\r\n {\r\n header: \r\n {getText(\"SlcTableSpaceAvailabilty\")},\r\n id: 'ratesAvailabilty',\r\n align: \"center\",\r\n style: { whiteSpace: \"nowrap\", padding: \"calc(0.2vw + 2px) calc(0.4vw + 4px)\" },\r\n accessor: (d) => d,\r\n cell: (d: any) =>
\r\n
\r\n \r\n
\r\n
\r\n } as OfferColumn\r\n ] : [])\r\n .concat((props.criteriaLoaded\r\n && props.criteriaLoaded.type === \"Lcl\") ? [\r\n (props.criteriaLoaded\r\n && (props.criteriaLoaded.origin.type === \"Base\" || props.criteriaLoaded.origin.type === \"OutPort\")\r\n && props.carrierOffersGrouped\r\n .some(xs => xs.some(x => (x.routeLclConfig\r\n && x.routeLclConfig.originCfs) ? true : false))\r\n ? {\r\n header:
{getText(\"SlcOfferCfso\")}
,\r\n id: 'cfso',\r\n align: \"center\",\r\n className: '',\r\n style: { whiteSpace: \"nowrap\", padding: \"calc(0.2vw + 2px) calc(0.4vw + 4px)\" },\r\n accessor: (d) => d,\r\n sortingDisabled: true,\r\n cell: (d: any) => {\r\n let carrierOffer = d as Api.CarrierOfferModel;\r\n return
\r\n {carrierOffer.routeLclConfig\r\n && carrierOffer.routeLclConfig.originCfs\r\n && carrierOffer.routeLclConfig.originCfs.name}\r\n
\r\n }\r\n } as OfferColumn : null),\r\n (props.criteriaLoaded\r\n && (props.criteriaLoaded.destination.type === \"Base\" || props.criteriaLoaded.destination.type === \"OutPort\")\r\n && props.carrierOffersGrouped\r\n .some(xs => xs.some(x => (x.routeLclConfig\r\n && x.routeLclConfig.destinationCfs) ? true : false))\r\n ? {\r\n header:
{getText(\"SlcOfferCfsd\")}
,\r\n id: 'cfsd',\r\n align: \"center\",\r\n className: '',\r\n style: { whiteSpace: \"nowrap\", padding: \"calc(0.2vw + 2px) calc(0.4vw + 4px)\" },\r\n accessor: (d) => d,\r\n sortingDisabled: true,\r\n cell: (d: any) => {\r\n let carrierOffer = d as Api.CarrierOfferModel;\r\n return
\r\n {carrierOffer.routeLclConfig\r\n && carrierOffer.routeLclConfig.destinationCfs\r\n && carrierOffer.routeLclConfig.destinationCfs.name}\r\n
\r\n }\r\n } : null),\r\n (props.criteriaLoaded\r\n && props.criteriaLoaded.origin.type === \"Dry\"\r\n && props.carrierOffersGrouped\r\n .some(xs => xs.some(x => x.originPort ? true : false))\r\n ? {\r\n header:
{getText(\"SlcOfferLclOrigin\")}
,\r\n id: 'lclOrigin',\r\n align: \"center\",\r\n style: { whiteSpace: \"nowrap\", padding: \"calc(0.2vw + 2px) calc(0.4vw + 4px)\" },\r\n className: '',\r\n accessor: (d) => d,\r\n sortingDisabled: true,\r\n cell: (d: any) => {\r\n let carrierOffer = d as Api.CarrierOfferModel;\r\n return
\r\n {carrierOffer.originPort.name}\r\n
\r\n }\r\n } : null),\r\n (props.criteriaLoaded\r\n && props.criteriaLoaded.destination.type === \"Dry\"\r\n && props.carrierOffersGrouped\r\n .some(xs => xs.some(x => x.originPort ? true : false))\r\n ? {\r\n header:
{getText(\"SlcOfferLclDestination\")}
,\r\n id: 'lclDestination',\r\n align: \"center\",\r\n className: '',\r\n style: { whiteSpace: \"nowrap\", padding: \"calc(0.2vw + 2px) calc(0.4vw + 4px)\" },\r\n accessor: (d) => d,\r\n sortingDisabled: true,\r\n cell: (d: any) => {\r\n let carrierOffer = d as Api.CarrierOfferModel;\r\n return
\r\n {carrierOffer.destinationPort.name}\r\n
\r\n }\r\n } : null)\r\n ].filter(x => x) as any : [])\r\n .concat(\r\n [\r\n {\r\n header:
{\r\n props.selectSortBy(\"Validity\");\r\n e.preventDefault();\r\n }}>\r\n {getText(\"SlcValidity\")}\r\n
,\r\n id: 'validity',\r\n align: \"center\",\r\n style: { whiteSpace: \"nowrap\", padding: \"calc(0.2vw + 2px) calc(0.4vw + 4px)\" },\r\n carrierOfferSort: `Validity`,\r\n sorted: () => props.fitlerSortBy === \"Validity\" ? \"desc\" : undefined,\r\n accessor: (d) => d,\r\n cell: (d: any) => {\r\n let carrierOffer = d as Api.CarrierOfferModel;\r\n if (carrierOffer.chargeSet) {\r\n if (carrierOffer.chargeSet.ratesPriceType === \"Spot\") {\r\n let dateEtd = carrierOffer.chargeSet.departs\r\n && carrierOffer.chargeSet.departs.length\r\n ? (carrierOffer.chargeSet.departs.length > 1\r\n ? \"multiple dates\"\r\n : Moment(carrierOffer.chargeSet.departs[0].etd).format('DD/MM/YYYY'))\r\n : \"no dates\";\r\n return (\r\n
\r\n {getText(\"CrtAgentSpot\")}\r\n {\" \"}{getText(\"SlcOfferForEtd\")}\r\n {\" \"}{dateEtd}\r\n
\r\n );\r\n }\r\n else {\r\n let QuoteValidity = carrierOffer.chargeSet.quotValidity ? true : false;\r\n if (Moment(carrierOffer.chargeSet.dateEnd).add(1, \"days\").toDate().getTime() < new Date(props.criteriaModel.dateBegin).getTime()) {\r\n return (\r\n
\r\n {getText(\"GenRatesExpired\")}\r\n
\r\n );\r\n }\r\n return (\r\n
\r\n \r\n \r\n Quote validity : {Moment(carrierOffer.chargeSet.quotValidity).format('DD/MM/YYYY')}\r\n
}\r\n placement=\"right\">\r\n {Moment(carrierOffer.chargeSet.dateBegin).format('DD/MM/YYYY')}\r\n {\" > \"}\r\n \r\n {Moment(carrierOffer.chargeSet.dateEnd).format('DD/MM/YYYY')}\r\n {QuoteValidity && }\r\n \r\n \r\n \r\n \r\n );\r\n }\r\n }\r\n return null;\r\n }\r\n },\r\n props.criteriaModel.showFreeTime\r\n ? {\r\n id: \"freeTimeOrigin\",\r\n align: \"center\",\r\n style: { whiteSpace: \"nowrap\", padding: \"calc(0.2vw + 2px) calc(0.4vw + 4px)\" },\r\n header:
\r\n
Freetime
\r\n
origin
\r\n
,\r\n accessor: d => d.ddSet,\r\n sortingDisabled: true,\r\n cell: d => {\r\n let ddSet = d as Api.DdSetModel;\r\n return x.application === \"Origin\") : []} />;\r\n }\r\n }\r\n : null,\r\n props.criteriaModel.showFreeTime\r\n ? {\r\n id: \"freeTimeDestination\",\r\n align: \"center\",\r\n style: { whiteSpace: \"nowrap\", padding: \"calc(0.2vw + 2px) calc(0.4vw + 4px)\" },\r\n header:
\r\n
Freetime
\r\n
destination
\r\n
,\r\n accessor: d => d.ddSet,\r\n sortingDisabled: true,\r\n cell: d => {\r\n let ddSet = d as Api.DdSetModel;\r\n return x.application === \"Destination\") : []} />;\r\n }\r\n }\r\n : null,\r\n (props.criteriaLoaded\r\n && props.criteriaLoaded.allMarkets\r\n ? {\r\n header:
{getText(\"SlcMarket\")}
,\r\n id: 'market',\r\n align: \"center\",\r\n style: { whiteSpace: \"nowrap\", padding: \"calc(0.2vw + 2px) calc(0.4vw + 4px)\" },\r\n sortingDisabled: true,\r\n accessor: (d) => (d.chargeSet\r\n && d.chargeSet.marketId)\r\n ? props.markets[d.chargeSet.marketId].name\r\n : \"\"\r\n }\r\n : null) as OfferColumn,\r\n (hasAltPol\r\n ? {\r\n header:
{getText(\"CrtOrigin\")}
,\r\n id: 'altPol',\r\n align: \"center\",\r\n style: { whiteSpace: \"nowrap\", padding: \"calc(0.2vw + 2px) calc(0.4vw + 4px)\" },\r\n carrierOfferSort: `Pol`,\r\n sorted: () => props.fitlerSortBy === \"Pol\" ? \"desc\" : undefined,\r\n accessor: (d) => d.originPort.name,\r\n cell: d =>
{d}
\r\n }\r\n : null) as OfferColumn,\r\n (hasAltPod\r\n ? {\r\n header:
{getText(\"CrtDestination\")}
,\r\n id: 'altPod',\r\n style: { whiteSpace: \"nowrap\", padding: \"calc(0.2vw + 2px) calc(0.4vw + 4px)\" },\r\n accessor: (d) => d.destinationPort.name,\r\n carrierOfferSort: `Pod`,\r\n sorted: () => props.fitlerSortBy === \"Pod\" ? \"desc\" : undefined,\r\n cell: d =>
{d}
\r\n }\r\n : null) as OfferColumn,\r\n {\r\n header:
{getText(\"SlcService\")}
,\r\n id: 'service',\r\n align: \"center\",\r\n style: { whiteSpace: \"nowrap\", padding: \"calc(0.2vw + 2px) calc(0.4vw + 4px)\" },\r\n accessor: (d) => d,\r\n sortingDisabled: true,\r\n cell: (d: any) => {\r\n let carrierOffer = d as Api.CarrierOfferModel;\r\n let carrierOfferState = props.carrierOfferStates[getCarrierOfferKey(carrierOffer)];\r\n let routeConfig = getRouteConfig(carrierOffer, carrierOfferState);\r\n\r\n let linkedService = carrierOffer.chargeSet?.routeServiceId > 0;\r\n if (linkedService == true) {\r\n let hasDepartsFromDiffServices = routeConfig?.departs != null ? (routeConfig.departs.filter(d=>d.service !== null).map(x => x.service).concat(carrierOffer.chargeSet?.departs?.map(d => d.service))) : carrierOffer.chargeSet?.departs?.map(d => d.service); \r\n const uniqueArray = _.uniqBy(hasDepartsFromDiffServices.filter(x=>x != null), x => x);\r\n linkedService = uniqueArray.length == 1;\r\n }\r\n\r\n return (
\r\n This rate only applies for this service
}>\r\n
\r\n
\r\n {linkedService && }\r\n {carrierOffer.chargeSet?.routeService != null\r\n ? carrierOffer.chargeSet.routeService.code\r\n : routeConfig?.routeService && routeConfig.routeService.code}\r\n
\r\n
\r\n \r\n\r\n )\r\n }\r\n },\r\n {\r\n header: {\r\n props.selectSortBy(\"TransShipments\");\r\n e.preventDefault();\r\n }}>\r\n {/*getText(\"SlcTransShipments\")*/\"TS\"} {props.fitlerSortBy === \"TransShipments\"\r\n && }\r\n \r\n ,\r\n id: 'transshipments',\r\n align: \"center\",\r\n style: { whiteSpace: \"nowrap\", padding: \"calc(0.2vw + 2px) calc(0.4vw + 4px)\" },\r\n carrierOfferSort: `TransShipments`,\r\n sorted: () => props.fitlerSortBy === \"TransShipments\" ? \"desc\" : undefined,\r\n accessor: (d) => d,\r\n cell: (d: any) => {\r\n let carrierOffer = d as Api.CarrierOfferModel;\r\n let routeConfig = getRouteConfig(d, props.carrierOfferStates[getCarrierOfferKey(d)]);\r\n\r\n var useFromChargeset = carrierOffer.chargeSet?.transShipments != null || carrierOffer.chargeSet?.flags.some(x => x == \"Direct\") ; \r\n\r\n let locations = useFromChargeset\r\n ? carrierOffer.chargeSet?.transShipments\r\n : routeConfig?.transShipments;\r\n\r\n let lastUpdate;\r\n let source = getText(\"SlcOfferOperationalSourceManual\");\r\n if (carrierOffer.chargeSet?.ratesFetchedRecordId\r\n && carrierOffer.chargeSet?.transShipments) {\r\n source = getText(\"SlcOfferOperationalSourceOcq\");\r\n lastUpdate = carrierOffer.chargeSet.creationDate;\r\n }\r\n else if (!carrierOffer.chargeSet?.ratesFetchedRecordId\r\n && carrierOffer.chargeSet?.transShipments) {\r\n source = getText(\"SlcOfferOperationalSourcePl\");\r\n lastUpdate = carrierOffer.chargeSet.creationDate;\r\n }\r\n else if (routeConfig) {\r\n if (routeConfig.source === \"ScheduleSystem\") {\r\n source = getText(\"SlcOfferOperationalSourceApi\");\r\n }\r\n if (routeConfig.source === \"CarrierRates\") {\r\n source = getText(\"SlcOfferOperationalSourceOcq\");\r\n }\r\n lastUpdate = routeConfig.lastUpdate;\r\n }\r\n\r\n\r\n if (carrierOffer.chargeSet && carrierOffer.chargeSet.flags.some(x => x == \"Direct\"))\r\n {\r\n return
\r\n
\r\n {getText(\"SlcOfferOperationalSource\")}{\" \"}{getText(\"SlcOfferOperationalSourcePl\")}}>\r\n Direct\r\n \r\n
\r\n
;\r\n }\r\n\r\n if ( (!locations || locations.length == 0)\r\n && carrierOffer.chargeSet?.transitTime\r\n && !carrierOffer.chargeSet.ratesFetchedRecordId) {\r\n return
\r\n
\r\n {getText(\"SlcOfferOperationalSource\")}{\" \"}{source}}>\r\n N/A\r\n \r\n
\r\n
;\r\n }\r\n if (!locations)\r\n return
;\r\n if (!useFromChargeset && carrierOffer.chargeSet?.routeServiceId && routeConfig.routeServiceId !== carrierOffer.chargeSet.routeServiceId) {\r\n return
;\r\n }\r\n\r\n return
\r\n {locations.length === 0\r\n ? Direct\r\n :
\r\n {locations.map(lo => lo && lo.port?.name ? lo.port.name : getText(\"GenUnknown\")).join(\", \")}}>\r\n {locations.length}\r\n \r\n
}\r\n
;\r\n }\r\n },\r\n {\r\n header: {\r\n props.selectSortBy(\"TransitTime\");\r\n e.preventDefault();\r\n }}>\r\n {/*getText(\"GenTransitTime\")*/\"TT\"} {props.fitlerSortBy === \"TransitTime\"\r\n && }\r\n \r\n ,\r\n id: 'transitTime',\r\n align: \"center\",\r\n style: { whiteSpace: \"nowrap\", padding: \"calc(0.2vw + 2px) calc(0.4vw + 4px)\" },\r\n carrierOfferSort: `TransitTime`,\r\n sorted: () => props.fitlerSortBy === \"TransitTime\" ? \"desc\" : undefined,\r\n accessor: (d) => d,\r\n cell: (d: any) => {\r\n let carrierOffer = d as Api.CarrierOfferModel;\r\n let routeConfig = getRouteConfig(carrierOffer, props.carrierOfferStates[getCarrierOfferKey(carrierOffer)]);\r\n // let besTransitTime = carrierOffer.chargeSet && carrierOffer.chargeSet.transitTime\r\n // ? carrierOffer.chargeSet.transitTime\r\n // : routeConfig?.bestTransitTime;\r\n let transitTime = getTableTransitTime(carrierOffer, props.carrierOfferStates);\r\n\r\n let lastUpdate = routeConfig && routeConfig.lastUpdate;\r\n let source = getText(\"SlcOfferOperationalSourceManual\");\r\n if (carrierOffer.chargeSet?.ratesFetchedRecordId) {\r\n source = getText(\"SlcOfferOperationalSourceOcq\");\r\n }\r\n if (carrierOffer.chargeSet?.ratesFetchedRecordId\r\n && carrierOffer.chargeSet?.transitTime) {\r\n source = getText(\"SlcOfferOperationalSourceOcq\");\r\n lastUpdate = carrierOffer.chargeSet.creationDate;\r\n }\r\n else if ((!carrierOffer.chargeSet?.ratesFetchedRecordId\r\n && carrierOffer.chargeSet?.transitTime)\r\n || (!carrierOffer.chargeSet?.ratesFetchedRecordId\r\n && carrierOffer.chargeSet?.transShipments\r\n && carrierOffer.chargeSet?.transShipments.length !== 0)) {\r\n source = getText(\"SlcOfferOperationalSourcePl\");\r\n lastUpdate = carrierOffer.chargeSet.creationDate;\r\n }\r\n else if (routeConfig) {\r\n if (routeConfig.source === \"ScheduleSystem\") {\r\n source = getText(\"SlcOfferOperationalSourceApi\");\r\n }\r\n if (routeConfig.source === \"CarrierRates\") {\r\n source = getText(\"SlcOfferOperationalSourceOcq\");\r\n }\r\n lastUpdate = routeConfig.lastUpdate;\r\n }\r\n \r\n\r\n return \r\n
{getText(\"SlcOfferLastUpdate\")}{lastUpdate && Moment(lastUpdate).format(\"DD/MM/YYYY\")}
\r\n
\r\n {getText(\"SlcOfferOperationalSource\")}{\" \"}{source}\r\n
\r\n }>\r\n
\r\n
\r\n
{transitTime || 'N/A'}
\r\n
\r\n
\r\n ;\r\n }\r\n },\r\n {\r\n header: props.multiPortIsActive\r\n ?
\r\n {props.carrierOffersGrouped\r\n .reduce((a, b) => a.concat(b), [])\r\n .some(x => x.chargeSet\r\n && canAddToMultiPort(x, props.multiPortIsLoading, props.multiPortOffers))\r\n ?\r\n {\r\n props.requestAddAllOffersToMultiPort();\r\n e.preventDefault();\r\n e.stopPropagation();\r\n }}\r\n style={{ color: \"white\", cursor: \"pointer\" }} />\r\n : }\r\n
\r\n : ' ',\r\n id: 'actions',\r\n align: \"center\",\r\n style: { whiteSpace: \"nowrap\", padding: \"calc(0.2vw + 2px) calc(0.4vw + 4px)\" },\r\n accessor: (d) => d,\r\n sortingDisabled: true,\r\n cell: (d: any) => {\r\n let carrierOffer = d as Api.CarrierOfferModel;\r\n return
\r\n {props.multiPortIsActive && carrierOffer.chargeSet\r\n ?\r\n canAddToMultiPort(carrierOffer, props.multiPortIsLoading, props.multiPortOffers)\r\n ?\r\n {\r\n props.requestAddOfferToMultiPort(carrierOffer);\r\n e.preventDefault();\r\n e.stopPropagation();\r\n }} />\r\n :\r\n \r\n : null}\r\n
;\r\n }\r\n }\r\n ] as Array).filter(x => x); //Want to remove column when null\r\n};\r\n\r\nexport default class OfferTable extends React.Component {\r\n private ratesCalculator: RatesCalculator;\r\n\r\n onPropsUpdate(props: OfferTableProps) {\r\n this.ratesCalculator = new RatesCalculator(props.currencies,\r\n props.sizeTypes,\r\n props.criteriaModel);\r\n }\r\n\r\n componentWillMount() {\r\n this.onPropsUpdate(this.props);\r\n }\r\n\r\n componentWillReceiveProps(nextProps: OfferTableProps) {\r\n if (this.props.criteriaModel !== nextProps.criteriaModel\r\n || this.props.currencies !== nextProps.currencies)\r\n this.onPropsUpdate(nextProps);\r\n }\r\n\r\n public render() {\r\n return ({ ...x[0], subRows: x.slice(1, x.length) }))\r\n : this.props.carrierOffersGrouped.reduce((a, b) => a.concat(b), [])}\r\n columns={getColumns(this.props, this.ratesCalculator)}\r\n showPagination={false}\r\n headTrStyle={{ height: 50 }}\r\n bodyTrStyle={(d: Api.CarrierOfferModel) => ({\r\n height: 30,\r\n ...(d.chargeSet && d.chargeSet.routeSuggestedCalcId\r\n ? { fontStyle: \"italic\" }\r\n : {})\r\n })}\r\n onThClick={(col: OfferColumn) => {\r\n if (col.carrierOfferSort) {\r\n this.props.selectSortBy(col.carrierOfferSort);\r\n }\r\n }}\r\n onBodyTrClick={(carrierOffer: Api.CarrierOfferModel) => {\r\n if (carrierOffer) {\r\n this.props.handleOfferClick(getCarrierOfferKey(carrierOffer));\r\n if (keyboard.isKeyPressed(17)) {\r\n //do not comment this, its useful for debug\r\n console.log(JSON.stringify(carrierOffer));\r\n }\r\n }\r\n }}\r\n />\r\n }\r\n}","import * as React from 'react';\r\nimport * as Api from '../api/api';\r\nimport Moment from 'moment';\r\nimport * as Colors from '../styles/colors';\r\nimport DialogModal from './DialogModal';\r\n\r\ninterface FirmNewsesProps {\r\n tickTimer?: number;\r\n firmNewses: Array;\r\n selectedFirmNewsId: number;\r\n isOpen: boolean;\r\n openDialog: (firmNewsId: number) => void;\r\n closeDialog: () => void;\r\n}\r\n\r\ninterface FirmNewsesState {\r\n displayedTitle: string;\r\n firmNewsId: number;\r\n}\r\n\r\nconst containerStyle = {\r\n minHeight: 40, display: \"flex\",\r\n flexDirection: \"column\" as any,\r\n alignItems: \"center\" as any\r\n} as React.CSSProperties;\r\nconst innerStyle = { padding: \"5px 20px\" } as React.CSSProperties;\r\nconst titleBoxStyle = {\r\n padding: \"5px 20px\",\r\n textAlign: \"center\" as any,\r\n borderRadius: 15,\r\n cursor: \"pointer\" as any,\r\n backgroundColor: Colors.baseColors.lightBlue,\r\n color: \"white\"\r\n} as React.CSSProperties;\r\n\r\nconst titleStyle: React.CSSProperties = { margingTop: 10, marginBottom: 10, fontWeight: \"bold\", fontSize: 18 } as React.CSSProperties;\r\nconst contentStyle: React.CSSProperties = { whiteSpace: \"pre-wrap\" } as React.CSSProperties;\r\n\r\nexport default class FirmNewses extends React.Component {\r\n private interval;\r\n private index: number;\r\n\r\n constructor(props: FirmNewsesProps) {\r\n super(props);\r\n this.state = {\r\n displayedTitle: this.props.firmNewses.length !== 0\r\n ? this.props.firmNewses[0].title\r\n : \"\",\r\n firmNewsId: this.props.firmNewses.length !== 0\r\n ? this.props.firmNewses[0].firmNewsId\r\n : 0\r\n }\r\n }\r\n\r\n onTick(props: FirmNewsesProps) {\r\n this.setState({\r\n displayedTitle: this.props.firmNewses.length !== 0\r\n ? this.props.firmNewses[this.index % this.props.firmNewses.length].title\r\n : \"\",\r\n firmNewsId: this.props.firmNewses.length !== 0\r\n ? this.props.firmNewses[this.index % this.props.firmNewses.length].firmNewsId\r\n : 0\r\n });\r\n this.index++;\r\n if (this.index === Number.MAX_SAFE_INTEGER) //I know ... i know\r\n this.index = 0;\r\n\r\n\r\n }\r\n\r\n componentWillReceiveProps(nextProps: FirmNewsesProps) {\r\n this.onTick(nextProps);\r\n }\r\n\r\n componentDidMount() {\r\n this.index = 0;\r\n this.interval = setInterval(() =>\r\n this.onTick(this.props),\r\n this.props.tickTimer || 4000);\r\n this.interval = null;\r\n }\r\n\r\n componentWillUnmount() {\r\n clearInterval(this.interval);\r\n }\r\n\r\n get selectedFirmNews(): Api.FirmNewsModel {\r\n return this.props.selectedFirmNewsId\r\n ? this.props.firmNewses.find(x => x.firmNewsId === this.props.selectedFirmNewsId)\r\n : null;\r\n }\r\n\r\n public render() {\r\n return (\r\n
\r\n
\r\n
\r\n
{\r\n this.props.openDialog(this.state.firmNewsId);\r\n e.preventDefault();\r\n }}>\r\n {this.state.displayedTitle}\r\n
\r\n
\r\n
\r\n this.props.closeDialog()}>\r\n {this.selectedFirmNews &&\r\n
\r\n
\r\n {this.selectedFirmNews.title}\r\n
\r\n
\r\n Valid from\r\n {\" \"}\r\n {Moment(this.selectedFirmNews.dateBegin).format(\"DD/MM/YYYY\")}\r\n to\r\n {\" \"}\r\n {Moment(this.selectedFirmNews.dateEnd).format(\"DD/MM/YYYY\")}\r\n
\r\n
\r\n {this.selectedFirmNews.content}\r\n
\r\n
}\r\n \r\n
\r\n\r\n );\r\n }\r\n} ","import * as Api from '../api/api';\r\nimport { getText } from './langTexts';\r\n\r\nexport const getOnlineOfferErrorText = (error: Api.RatesFetcherErrorModel, params?: any): string => {\r\n let text = \"\";\r\n switch (error.type) { //4637 - for now we want only 3 types of messages\r\n\r\n case \"NoConnection\":\r\n text = getText(\"SlcCarrierQuotesNotResponding\", params);\r\n break;\r\n case \"NoRightsForAccess\":\r\n text = getText(\"SlcCarrierQuotesNoRights\", params);\r\n break;\r\n case \"AccountExpired\":\r\n text = getText(\"SlcCarrierQuotesNoRights\", params);\r\n break;\r\n case \"AntiBotStarted\":\r\n text = getText(\"SlcCarrierQuotesAntibot\", params);\r\n break;\r\n case \"AuthenticationError\":\r\n text = getText(\"SlcCarrierQuotesAuthenticationFailed\", params);\r\n break;\r\n case \"WrongCredentionals\":\r\n text = getText(\"SlcCarrierQuotesWrongCredentials\", params);\r\n break;\r\n case \"ApiLimitReached\":\r\n text = getText(\"SlcCarrierQuotesApiLimitReached\", params);\r\n break;\r\n case \"OkargoApiLimitReached\":\r\n text = getText(\"SlcCarrierQuotesOkargoApiLimitReached\", params);\r\n break;\r\n case \"EmptyResults\":\r\n text = getText(\"SlcCarrierQuotesNoResults\", params);\r\n break;\r\n case \"Mfa\":\r\n text = getText(\"SlcCarrierQuotesAdditionalVerification\", params) ;\r\n break;\r\n default:\r\n text = getText(\"SlcCarrierQuotesError\", params);\r\n break;\r\n }\r\n\r\n return text;\r\n};","import * as React from 'react';\r\nimport { Popper, Paper } from \"@material-ui/core\";\r\nimport * as Colors from '../styles/colors';\r\nimport { Close } from '@material-ui/icons';\r\n\r\ninterface OkPopperProps {\r\n popperContent: JSX.Element | string;\r\n childContainerStyle?: React.CSSProperties;\r\n style?: React.CSSProperties;\r\n popperStyle?: React.CSSProperties;\r\n paperStyle?: React.CSSProperties;\r\n open?: boolean;\r\n onChange?: (value: boolean) => void;\r\n windowContainer?: boolean;\r\n disablePortal?: boolean;\r\n}\r\ninterface OkPopperState {\r\n isOpen: boolean;\r\n}\r\n\r\nexport default class OkPopper extends React.Component {\r\n btnRef = null;\r\n divRef = null;\r\n\r\n constructor(props: OkPopperProps) {\r\n super(props);\r\n this.state = {\r\n isOpen: false\r\n };\r\n }\r\n\r\n get isOpen(): boolean {\r\n return this.props.open !== undefined ? this.props.open : this.state.isOpen;\r\n }\r\n\r\n public render() {\r\n return (\r\n
this.divRef = ref)} style={{ ...this.props.style }}>\r\n this.btnRef = ref}\r\n onClick={(e) => {\r\n this.setState({ isOpen: !this.state.isOpen })\r\n if (this.props.onChange) {\r\n this.props.onChange(!this.props.open);\r\n }\r\n }}>\r\n {this.props.children}\r\n
\r\n \r\n \r\n
\r\n {\r\n if (this.props.onChange) {\r\n this.props.onChange(false);\r\n } else {\r\n this.setState({ isOpen: false });\r\n }}} />\r\n
\r\n
{this.props.popperContent}
\r\n
\r\n \r\n \r\n );\r\n }\r\n}","import * as React from 'react';\r\nimport { connect } from 'react-redux';\r\nimport { ApplicationState } from '../store';\r\nimport * as SelectionStore from '../store/Selection';\r\nimport * as CriteriaStore from '../store/Criteria';\r\nimport * as MultiPortStore from '../store/MultiPort';\r\nimport * as AskBookingStore from '../store/AskBooking';\r\nimport * as AskRatesStore from '../store/AskRates';\r\nimport * as TransferStore from '../store/Transfer';\r\nimport * as ContactBoxStore from '../store/ContactBox';\r\nimport * as SellingRatesStore from '../store/SellingRates';\r\nimport * as StatsStore from '../store/Stats';\r\nimport * as CarrierRatesPlatformStore from '../store/CarrierRatesPlatform';\r\nimport * as Api from '../api/api';\r\nimport OfferTable, { canAddToMultiPort } from './OfferTable';\r\nimport { getCarrierOfferKey, getSubscription } from '../utils/utils';\r\nimport * as selectionConnect from '../connects/selectionConnect';\r\nimport * as _ from 'lodash';\r\nimport { departPerPage } from \"./SelectionOffers\";\r\nimport Loader from './Loader';\r\nimport FirmNewses from \"./FirmNewses\";\r\nimport { getText } from \"../utils/langTexts\";\r\nimport * as Colors from \"../styles/colors\";\r\nimport { getOnlineOfferErrorText } from '../utils/errorMessageHandler';\r\nimport Popper from \"./Popper\";\r\nimport {getRouteConfig} from \"../utils/routeUtils\";\r\nimport DialogModal from './DialogModal';\r\n\r\n// At runtime, Redux will merge together...\r\ntype SelectionOffersTableProps =\r\n SelectionOffersTableOwnProps\r\n & SelectionOffersTableExternalProps\r\n & typeof SelectionStore.actionCreators\r\n & typeof CriteriaStore.actionCreators\r\n & typeof MultiPortStore.actionCreators\r\n & typeof AskBookingStore.actionCreators\r\n & typeof AskRatesStore.actionCreators\r\n & typeof TransferStore.actionCreators\r\n & typeof ContactBoxStore.actionCreators\r\n & typeof SellingRatesStore.actionCreators\r\n & typeof StatsStore.actionCreators\r\n & typeof CarrierRatesPlatformStore.actionCreators\r\n ;\r\n\r\ninterface SelectionOffersTableOwnProps {\r\n isLoading: boolean;\r\n carrierRatesStates: { [key: string]: { isLoading: boolean; carrierRatesPlatformId: number; errors: Array } };\r\n carrierRatesVerificationDiaglog: boolean;\r\n isSchedulesLoading: boolean;\r\n errorMessages: Array;\r\n warningMessages: Array;\r\n filterModel: SelectionStore.SelectionFilterModel;\r\n selection: Api.SelectionModel;\r\n sellingRates: Array;\r\n sellingRatesIsLoading: boolean;\r\n carrierOffersGrouped: Array>;\r\n carrierOfferStates: { [id: string]: SelectionStore.CarrierOfferState };\r\n sizeTypes: { [id: number]: Api.SizeTypeModel };\r\n currencies: { [id: number]: Api.CurrencyModel };\r\n carriers: { [id: number]: Api.CarrierModel };\r\n markets: { [id: number]: Api.MarketModel };\r\n carrierRatesPlatforms: { [id: number]: Api.CarrierRatesPlatformModel };\r\n client: Api.ClientModel;\r\n criteriaLoaded: Api.CriteriaModel;\r\n criteria: CriteriaStore.CriteriaState;\r\n filterOptions: SelectionStore.SelectionFilterOptions;\r\n multiPortIsLoading: boolean;\r\n multiPortIsActive: boolean;\r\n multiPortOffers: Array;\r\n subscription: Api.SubscriptionModel;\r\n firmNewsesState: SelectionStore.FirmNewsesState;\r\n isSchedulesActivated: boolean;\r\n}\r\n\r\ninterface SelectionOffersTableExternalProps {\r\n criteriaType: Api.CriteriaModelTypeEnum;\r\n}\r\n\r\n\r\ninterface SelectionOffersTableState {\r\n hoverState: boolean\r\n}\r\n\r\n\r\n\r\nconst importantMessageStyle = {\r\n fontSize: 16,\r\n fontWeight: \"bold\" as any,\r\n textAlign: \"center\" as any\r\n};\r\n\r\nclass SelectionOffersTable extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n hoverState: false\r\n }\r\n }\r\n Mouseover() {\r\n this.setState({ hoverState: true })\r\n }\r\n\r\n scrollToOfferDeparts(carrierOfferId: string) {\r\n this.props.selectPage(Math.floor(this.props.carrierOffersGrouped\r\n .reduce((a, b) => a.concat(b), [])\r\n .findIndex(co => getCarrierOfferKey(co) === carrierOfferId) / departPerPage) + 1);\r\n setTimeout(() => this.props.selectCarrierOffer(carrierOfferId), 0);\r\n }\r\n\r\n addOfferToMultiPort(carrierOffer: Api.CarrierOfferModel) {\r\n return this.props.requestCreateMultiPortOffers(new Date().getTime(), {\r\n multiPortCarrierOffers: [\r\n {\r\n chargeSetId: carrierOffer.chargeSet.chargeSetId,\r\n routeConfigId: getRouteConfig(carrierOffer, this.props.carrierOfferStates[getCarrierOfferKey(carrierOffer)])?.routeConfigId,\r\n ddSetId: carrierOffer.ddSet?.ddSetId\r\n }\r\n ],\r\n currencyId: this.props.client.currencyId,\r\n });\r\n }\r\n\r\n addAllOffersToMultiPort() {\r\n return this.props.requestCreateMultiPortOffers(new Date().getTime(), {\r\n multiPortCarrierOffers: this.props.carrierOffersGrouped\r\n .reduce((a, b) => a.concat(b), [])\r\n .filter(x => x.chargeSet\r\n && canAddToMultiPort(x, this.props.multiPortIsLoading, this.props.multiPortOffers))\r\n .map(x => ({\r\n routeConfigId: getRouteConfig(x, this.props.carrierOfferStates[getCarrierOfferKey(x)])?.routeConfigId,\r\n chargeSetId: x.chargeSet.chargeSetId,\r\n ddSetId: x.ddSet?.ddSetId\r\n })),\r\n currencyId: this.props.client.currencyId,\r\n });\r\n }\r\n\r\n public render() {\r\n return (\r\n
\r\n
\r\n {this.props.selection.firmNewses.length !== 0 &&\r\n
\r\n this.props.closeFirmNews()}\r\n openDialog={(firmNewsId) => this.props.openFirmNews(firmNewsId)}\r\n firmNewses={this.props.selection.firmNewses}\r\n selectedFirmNewsId={this.props.firmNewsesState.selectedFirmNewsId}\r\n />\r\n
}\r\n
\r\n {this.props.errorMessages\r\n && this.props.errorMessages.length !== 0\r\n &&
{this.props.errorMessages.map((x, index) =>
{x}
)}
}\r\n {this.props.subscription.subscriptionType === \"Agent\" &&\r\n
{getText(\"SlcAgentRatesDisclaimer\")}
}\r\n {(_.values(this.props.carrierRatesStates).length !== 0\r\n || this.props.isSchedulesLoading)\r\n &&
\r\n
\r\n \r\n
\r\n
\r\n {_.values(this.props.carrierRatesStates).some(x => x.isLoading)\r\n &&
\r\n x.isLoading).map(x => this.props.carrierRatesPlatforms[x.carrierRatesPlatformId].name).join(\", \") })} />\r\n
}\r\n {!_.values(this.props.carrierRatesStates).some(x => x.isLoading)\r\n && _.values(this.props.carrierRatesStates).some(x => x.errors.filter(e => e.type != \"EmptyResults\").length !== 0 )\r\n &&
\r\n
{ this.Mouseover() }} className={!this.state.hoverState ? \"blink\" : \"\"}>{getText(\"SlcCarrierQuotesErrors1\")}\r\n {\" \"}\r\n { _.values(this.props.carrierRatesStates)\r\n .filter(x => x.errors.length !== 0 && x.errors.some(e => e.type != \"EmptyResults\") )\r\n .map(x =>
\r\n { _.uniqBy( x.errors.filter(e => e.type != \"EmptyResults\"),x=>x.message ).map((error, index) =>
{getOnlineOfferErrorText(error,\r\n {\r\n carrier: this.props.carrierRatesPlatforms[x.carrierRatesPlatformId].name,\r\n carrierUrl: this.props.carrierRatesPlatforms[x.carrierRatesPlatformId].onlineQuoteLink,\r\n ocqPlatformName: this.props.carrierRatesPlatforms[x.carrierRatesPlatformId].name\r\n })}
)}\r\n {/*
*/}\r\n {/* this.props.openCarrierRatesPlatformStatus()}*/}\r\n {/* style={{*/}\r\n {/* textDecoration: \"underline\",*/}\r\n {/* cursor: \"pointer\",*/}\r\n {/* color: Colors.baseColors.lightBlue*/}\r\n {/* }}>{getText(\"SlcCarrierQuotesViewStatus\")}*/}\r\n {/*
*/}\r\n
)}\r\n
}\r\n childContainerStyle={{ textDecoration: \"underline\" }}>{getText(\"SlcCarrierQuotesErrors2\")}\r\n {\" \"}{getText(\"SlcCarrierQuotesErrors3\")}\r\n
\r\n
}\r\n {!_.values(this.props.carrierRatesStates).some(x => x.isLoading)\r\n && !_.values(this.props.carrierRatesStates).some(x => x.errors.filter(e => e.type != \"EmptyResults\").length !== 0)\r\n &&
\r\n
{getText(\"SlcCarrierQuotesSuccess\")}
\r\n
}\r\n
\r\n
\r\n
}\r\n
\r\n this.scrollToOfferDeparts(id)}\r\n carrierOffersSelected={this.props.filterModel.carrierOffersSelected}\r\n selectCarrierOffer={this.props.filterSelectCarrierOffer}\r\n selectAllCarrierOffer={this.props.filterSelectAllCarrierOffer}\r\n multiPortIsLoading={this.props.multiPortIsLoading}\r\n multiPortIsActive={this.props.multiPortIsActive}\r\n multiPortOffers={this.props.multiPortOffers}\r\n requestAddOfferToMultiPort={(carrierOffer) => this.addOfferToMultiPort(carrierOffer)}\r\n requestAddAllOffersToMultiPort={() => this.addAllOffersToMultiPort()}\r\n selectSortBy={(value) => this.props.filterSelectFilterSort(value)}\r\n openGroup={(id) => this.props.openCarrierOfferGroup(id)}\r\n closeGroup={(id) => this.props.closeCarrierOfferGroup(id)}\r\n selectRouteService={(key, routeServiceId) => this.props.selectCarrierOfferService(key, routeServiceId)}>\r\n \r\n
\r\n
\r\n
\r\n
this.props.openStatsPriceDialog()}>\r\n {getText(\"FakStatistics\")}\r\n
\r\n
\r\n\r\n
\r\n {this.props.isSchedulesActivated\r\n && this.props.criteriaType === \"Fcl\"\r\n && }\r\n
\r\n {this.props.warningMessages\r\n && this.props.warningMessages.length !== 0\r\n && {this.props.warningMessages.map((x, index) =>
{getText(\"SlcTestWarning\")}
)}
}\r\n \r\n \r\n );\r\n }\r\n}\r\n\r\n//So its the same ref\r\nconst emptyArray = [];\r\n//Filtering is done here, we'll use reselect for optimization later on, for now we don't care\r\nexport default connect(\r\n (state: ApplicationState) => {\r\n let carrierGroupedResult = selectionConnect.getGroupedCarrierOffers(state);\r\n let filterOptions = selectionConnect.getFilterOptions(state)\r\n let subscription = getSubscription(state.account.currentUser.clientModel)\r\n || { subscriptionType: null };\r\n\r\n return {\r\n isLoading: state.selection.isLoading,\r\n isCarrierRatesLoading: state.selection.isCarrierRatesLoading,\r\n isSchedulesLoading: state.selection.isSchedulesLoading,\r\n filterModel: state.selection.filterModel,\r\n selection: state.selection.selection,\r\n carrierOffersGrouped: carrierGroupedResult,\r\n carrierOfferStates: state.selection.carrierOfferStates,\r\n firmNewsesState: state.selection.firmNewsesState,\r\n criteria: state.criteria,\r\n criteriaLoaded: state.selection.criteriaLoaded,\r\n sizeTypes: state.seed.sizeTypes,\r\n currencies: state.seed.currencies,\r\n markets: state.seed.markets,\r\n carriers: state.seed.carriers,\r\n carrierGroups: state.seed.carrierGroups,\r\n client: state.account.currentUser.clientModel,\r\n filterOptions: filterOptions,\r\n multiPortIsLoading: state.multiPort.isLoading || state.multiPort.addOfferState.isLoading,\r\n multiPortIsActive: (state.multiPort.isVisible && state.multiPort.multiPort) ? true : false,\r\n multiPortOffers: state.multiPort.multiPort ? state.multiPort.multiPort.multiPortOffers : emptyArray,\r\n subscription: subscription,\r\n errorMessages: state.selection.errorMessages,\r\n warningMessages: state.selection.warningMessages,\r\n sellingRatesIsLoading: state.sellingRates.selectionSellingRatesState.isLoading,\r\n sellingRates: state.sellingRates.selectionSellingRates,\r\n isSchedulesActivated: state.seed.servicesOptions.schedulesApiEnabled,\r\n carrierRatesStates: state.selection.carrierRatesStates,\r\n carrierRatesPlatforms: state.seed.carrierRatesPlatforms\r\n } as any;\r\n },\r\n {\r\n ...SelectionStore.actionCreators,\r\n ...CriteriaStore.actionCreators,\r\n ...MultiPortStore.actionCreators,\r\n ...TransferStore.actionCreators,\r\n ...ContactBoxStore.actionCreators,\r\n ...AskRatesStore.actionCreators,\r\n ...AskBookingStore.actionCreators,\r\n ...SellingRatesStore.actionCreators,\r\n ...StatsStore.actionCreators,\r\n ...CarrierRatesPlatformStore.actionCreators\r\n })\r\n (SelectionOffersTable) as any as React.ComponentClass;","import * as React from 'react';\r\nimport * as Api from '../api/api';\r\nimport Moment from 'moment';\r\nimport * as SelectionState from '../store/Selection';\r\nimport { getText } from '../utils/langTexts';\r\nimport { getSelectedDepart } from '../utils/routeUtils';\r\nimport * as Colors from '../styles/colors';\r\n\r\n\r\ninterface OfferReminderProps {\r\n style?: any;\r\n carrierOffer: Api.CarrierOfferModel;\r\n carrierOfferState: SelectionState.CarrierOfferState;\r\n carriers: { [id: number]: Api.CarrierModel };\r\n}\r\n\r\ninterface OfferReminderState {\r\n\r\n}\r\n\r\nexport default class OfferReminder extends React.Component {\r\n public render() {\r\n let selectedDepart = getSelectedDepart(this.props.carrierOffer, this.props.carrierOfferState);\r\n return (\r\n
\r\n\r\n
\r\n \r\n
\r\n
\r\n {this.props.carriers[this.props.carrierOffer.carrierId].name}\r\n
\r\n
\r\n {getText(\"SlcOfferTitle\", {\r\n origin: this.props.carrierOffer.originPort.name,\r\n etd: selectedDepart ? Moment(selectedDepart.etd).format(\"DD/MM/YYYY\") : \"N/A\",\r\n destination: this.props.carrierOffer.destinationPort.name,\r\n eta: selectedDepart ? Moment(selectedDepart.eta).format(\"DD/MM/YYYY\") : \"N/A\"\r\n })}\r\n
\r\n
\r\n );\r\n }\r\n}","import * as React from 'react';\r\nimport { connect } from 'react-redux';\r\nimport { ApplicationState } from '../store';\r\nimport * as Api from '../api/api';\r\nimport OfferReminder from './OfferReminder';\r\nimport * as SelectionStore from '../store/Selection';\r\nimport * as AskBookingStore from '../store/AskBooking';\r\nimport { getCarrierOfferKey } from '../utils/utils';\r\nimport { getText } from '../utils/langTexts';\r\nimport * as Colors from '../styles/colors';\r\nimport * as SelectionConnect from '../connects/selectionConnect';\r\n\r\n\r\ntype AskBookingProps = AskBookingOwnProps\r\n & typeof AskBookingStore.actionCreators;\r\n\r\ninterface AskBookingOwnProps {\r\n carrierOffer: Api.CarrierOfferModel;\r\n carrierOfferState: SelectionStore.CarrierOfferState;\r\n carriers: { [id: number]: Api.CarrierModel };\r\n goToBookingState: AskBookingStore.RequestState;\r\n servicesOptions: Api.ServicesOptionsModel;\r\n processDeepLinkIsLoading: boolean;\r\n}\r\n\r\nconst fieldStyle = { marginBottom: 10, marginTop: 10 } as React.CSSProperties;\r\nconst innerStyle = { padding: 10 } as React.CSSProperties;\r\nconst btnStyle = { backgroundColor: \"white\", color: Colors.baseColors.lightBlue, borderRadius: 10, borderWidth: 0.5, fontWeight: \"bold\", flex: 1, height: 30,} as React.CSSProperties;\r\nconst descStyle = { ...fieldStyle, textAlign: \"center\" } as React.CSSProperties;\r\n\r\nclass AskBooking extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n }\r\n \r\n public render() {\r\n return
\r\n
\r\n Booking\r\n
\r\n
\r\n \r\n
\r\n
\r\n {getText(\"SlcOfferBookingDesc\")}\r\n
\r\n
\r\n {this.props.carrierOffer.chargeSet && (this.props.carrierOffer.chargeSet.deepLink == null\r\n || this.props.carrierOffer.chargeSet.deepLink == \"\")\r\n && this.props.carriers[this.props.carrierOffer.carrierId].bookingState !== \"Hide\" &&\r\n
\r\n \r\n
}\r\n {this.props.carrierOffer.chargeSet && (this.props.carrierOffer.chargeSet.deepLink == null\r\n || this.props.carrierOffer.chargeSet.deepLink == \"\")\r\n && this.props.carriers[this.props.carrierOffer.carrierId].intra &&\r\n
\r\n {\r\n window.open(this.props.servicesOptions.intraUrl, \"_blank\");\r\n e.preventDefault();\r\n }}>\r\n {getText(\"SlcOfferBookingGoIntra\")}\r\n \r\n
}\r\n {(!this.props.carrierOffer.chargeSet || (this.props.carrierOffer.chargeSet.deepLink == null\r\n || this.props.carrierOffer.chargeSet.deepLink == \"\"))\r\n &&\r\n
\r\n \r\n
}\r\n {this.props.carrierOffer.chargeSet && this.props.carrierOffer.chargeSet.deepLink \r\n &&\r\n
\r\n \r\n
}\r\n
\r\n
\r\n }\r\n}\r\n\r\nexport default connect((state: ApplicationState) => {\r\n let carrierGroupedResult = SelectionConnect.getGroupedCarrierOffers(state).reduce((a, b) => a.concat(b), []) as Array;\r\n return {\r\n carrierOffer: carrierGroupedResult.find(co => getCarrierOfferKey(co) === state.askBooking.carrierOfferId),\r\n carrierOfferState: state.selection.carrierOfferStates[state.askBooking.carrierOfferId],\r\n goToBookingState: state.askBooking.goToBookingState,\r\n carriers: state.seed.carriers,\r\n servicesOptions: state.seed.servicesOptions,\r\n processDeepLinkIsLoading: state.askBooking.processDeepLink.isLoading\r\n } as AskBookingProps;\r\n}, AskBookingStore.actionCreators)(AskBooking) as any","import * as React from 'react';\r\nimport { getText } from '../utils/langTexts';\r\nimport * as Colors from '../styles/colors';\r\n\r\ninterface SendEmailProps {\r\n isLoading: boolean;\r\n to: string;\r\n cc: string;\r\n subject: string;\r\n content: string;\r\n backLabel: string;\r\n toTextarea?: boolean;\r\n send: () => void;\r\n goBack: () => void;\r\n onToUpdate: (value: string) => void;\r\n onCcUpdate: (value: string) => void;\r\n onSubjectUpdate: (value: string) => void;\r\n onContenttUpdate: (value: string) => void;\r\n}\r\n\r\ninterface SendEmailState {\r\n\r\n}\r\n\r\nconst fieldStyle = { marginBottom: 5 } as React.CSSProperties;\r\nconst labelStyle = { width: 50, display: \"inline-block\", fontFamily: \"Calibri\", textAlign: \"right\", marginRight: 10, paddingTop: 7, color: \"Colors.baseColors.darkGray\" } as React.CSSProperties;\r\nconst contentStyle = { width: \"100%\", minHeight: 300, paddingTop: 5, borderRadius: 5, borderWidth: 0.5, border: \"thin solid \" } as React.CSSProperties;\r\nconst btnStyleRight = { backgroundColor: \"white\", color: Colors.baseColors.lightBlue, borderRadius: 10, borderWidth: 0.5, fontWeight: \"bold\", flex: 1, height: 30, float: \"right\" } as React.CSSProperties;\r\nconst btnStyleLeft = { backgroundColor: \"white\", color: Colors.baseColors.lightBlue, borderRadius: 10, borderWidth: 0.5, fontWeight: \"bold\", flex: 1, height: 30, float: \"left\"} as React.CSSProperties;\r\nconst inputStyle = { height: 30, backgroundColor: \"white\", marginBottom: 10, borderRadius: 5, borderColor: \"black\", borderWidth: 0.5, minWidth: 450 } as React.CSSProperties;\r\n\r\n\r\nexport default class SendEmail extends React.Component {\r\n\r\n public render() {\r\n return (\r\n
\r\n
\r\n \r\n {this.props.toTextarea\r\n && }\r\n {!this.props.toTextarea\r\n && this.props.onToUpdate(e.target.value)} />}\r\n
\r\n
\r\n \r\n this.props.onCcUpdate(e.target.value)} />\r\n
\r\n
\r\n \r\n this.props.onSubjectUpdate(e.target.value)} />\r\n
\r\n
\r\n this.props.onContenttUpdate(e.target.value)}\r\n />\r\n
\r\n
\r\n { this.props.goBack(); e.preventDefault(); }}\r\n className=\"btn btn-gray\">{this.props.backLabel}\r\n { this.props.send(); e.preventDefault(); }}\r\n className=\"btn\">{getText(\"GenEmailSend\")}\r\n
\r\n
\r\n
\r\n );\r\n }\r\n}","import * as React from 'react';\r\nimport * as _ from 'lodash';\r\nimport { connect } from 'react-redux';\r\nimport { ApplicationState } from '../store';\r\nimport * as Api from '../api/api';\r\nimport SendEmail from './SendEmail';\r\nimport CheckBox from './CheckBox';\r\nimport * as SelectionStore from '../store/Selection';\r\nimport * as AskRatesStore from '../store/AskRates';\r\nimport { getCarrierOfferKey } from '../utils/utils';\r\nimport { getText } from '../utils/langTexts';\r\nimport { getSelectedDepart } from '../utils/routeUtils';\r\n\r\ntype AskRatesByEmailProps = AskRatesByEmailOwnProps\r\n & AskRatesStore.AskRatesState\r\n & typeof AskRatesStore.actionCreators;\r\n\r\ninterface AskRatesByEmailOwnProps {\r\n client: Api.ClientModel;\r\n criteria: Api.CriteriaModel;\r\n carrierOffer: Api.CarrierOfferModel;\r\n carrierOfferState: SelectionStore.CarrierOfferState;\r\n carrierOffers: Array;\r\n carriers: { [id: number]: Api.CarrierModel };\r\n sizeTypes: { [id: number]: Api.SizeTypeModel };\r\n chargeNames: { [id: number]: Api.SizeTypeModel };\r\n}\r\n\r\nconst partStyle = { marginBottom: 20 };\r\nconst fieldStyle = { marginBottom: 10, marginTop: 10 };\r\nconst containerStyle = {};\r\nconst innerStyle = { padding: 10 };\r\nconst btnStyle = { margin: 5 };\r\nconst descStyle = { ...fieldStyle, textAlign: \"center\" };\r\nconst inputStyle = {};\r\nconst labelStyle = { minWidth: 60, display: \"inline-block\", textAlign: \"right\", marginRight: 2 }\r\nconst shortLabelStyle = { ...labelStyle, minWidth: 60 };\r\nconst btnsStyle = { ...fieldStyle, textAlign: \"center\" };\r\n\r\nclass AskRatesByEmail extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n }\r\n\r\n get selectedDepart(): Api.DepartModel {\r\n return getSelectedDepart(this.props.carrierOffer, this.props.carrierOfferState);\r\n }\r\n\r\n onPropsUpdate(props: AskRatesByEmailProps) {\r\n\r\n }\r\n\r\n componentWillMount() {\r\n this.onPropsUpdate(this.props);\r\n }\r\n\r\n componentWillReceiveProps(nextProps: AskRatesByEmailProps) {\r\n this.onPropsUpdate(nextProps);\r\n }\r\n\r\n handleSendingEmail() {\r\n ((this.props.requestSendEmail(new Date().getTime()) as any) as Promise).then(value => {\r\n this.props.closeEmailAskRates();\r\n });\r\n }\r\n\r\n //TODO get carrier url\r\n public render() {\r\n return
\r\n
\r\n {!this.props.carrierOffer\r\n &&
\r\n \r\n
\r\n {_.values(this.props.carriers)\r\n .filter(x => x.askRatesByEmail && this.props.carrierOffers.some(y => y.carrierId === x.carrierId))\r\n .map(carrier =>
\r\n this.props.setCarrierSelected(carrier.carrierId, value)} />\r\n
)}\r\n
\r\n
}\r\n
\r\n this.handleSendingEmail()}\r\n goBack={() => this.props.toggleAskRatesByEmailOpen(false)}\r\n />\r\n
\r\n
\r\n
\r\n }\r\n}\r\n\r\nexport default connect((state: ApplicationState) => ({\r\n ...state.askRates,\r\n carriers: state.seed.carriers,\r\n sizeTypes: state.seed.sizeTypes,\r\n chargeNames: state.seed.chargeNames,\r\n client: state.account.currentUser.clientModel,\r\n criteria: state.criteria.criteria,\r\n carrierOffers: state.selection.selection.carrierOffers,\r\n carrierOffer: state.selection.selection.carrierOffers\r\n .find(co => getCarrierOfferKey(co) === state.askRates.carrierOfferId),\r\n carrierOfferState: state.selection.carrierOfferStates[state.askRates.carrierOfferId]\r\n} as any), AskRatesStore.actionCreators)(AskRatesByEmail) as any","import * as React from 'react';\r\nimport { connect } from 'react-redux';\r\nimport { ApplicationState } from '../store';\r\nimport * as Api from '../api/api';\r\nimport OfferReminder from './OfferReminder';\r\nimport * as SelectionStore from '../store/Selection';\r\nimport * as AskRatesStore from '../store/AskRates';\r\nimport { getCarrierOfferKey } from '../utils/utils';\r\nimport { getText } from '../utils/langTexts';\r\nimport { revertColors } from '../styles/colors';\r\nimport Button from './Button';\r\nimport * as Colors from \"../styles/colors\";\r\n\r\ntype AskRatesProps = AskRatesOwnProps\r\n & typeof AskRatesStore.actionCreators;\r\n\r\ninterface AskRatesOwnProps {\r\n carrierOffer: Api.CarrierOfferModel;\r\n carrierOfferState: SelectionStore.CarrierOfferState;\r\n carriers: { [id: number]: Api.CarrierModel };\r\n}\r\n\r\nconst fieldStyle = { marginBottom: 10, marginTop: 10 } as React.CSSProperties;\r\nconst containerStyle = {} as React.CSSProperties;\r\nconst innerStyle = { padding: 10 } as React.CSSProperties;\r\nconst btnStyle = { margin: 5 } as React.CSSProperties;\r\nconst descStyle = { ...fieldStyle, textAlign: \"center\" } as React.CSSProperties;\r\nconst btnsStyle = { ...fieldStyle, textAlign: \"center\" } as React.CSSProperties;\r\n\r\nclass AskRates extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n }\r\n\r\n public render() {\r\n return
\r\n
\r\n {this.props.carrierOffer &&\r\n
\r\n \r\n
}\r\n
\r\n {getText(\"SlcOfferAskRatesDesc\")}\r\n
\r\n
\r\n {this.props.carrierOffer && this.props.carriers[this.props.carrierOffer.carrierId].askRatesState !== \"Hide\" &&\r\n }\r\n \r\n
\r\n
\r\n
\r\n }\r\n}\r\n\r\nexport default connect((state: ApplicationState) => {\r\n return {\r\n carrierOffer: state.selection.selection.carrierOffers\r\n .find(co => getCarrierOfferKey(co) === state.askRates.carrierOfferId),\r\n carrierOfferState: state.selection.carrierOfferStates[state.askRates.carrierOfferId],\r\n carriers: state.seed.carriers\r\n } as any;\r\n}, AskRatesStore.actionCreators)(AskRates) as any","import * as React from 'react';\r\nimport * as ReduxForm from 'redux-form';\r\nimport * as AskBookingStore from '../store/AskBooking';\r\nimport * as FormField from './FormField';\r\nimport { getText } from '../utils/langTexts';\r\nimport * as Colors from '../styles/colors';\r\n\r\n\r\ntype AskBookingByEmailFormProps = ReduxForm.InjectedFormProps<{}, {}, string> & AskBookingByEmailFormOwnProps;\r\n\r\ninterface AskBookingByEmailFormOwnProps {\r\n prevStep: () => void;\r\n type: AskBookingStore.AskBookingType;\r\n}\r\n\r\nconst textAreaField = FormField.textAreaFieldCustom(5, 45);\r\n\r\nconst consigneeOrShipper = (value, allValues) => ((!allValues.consigneeName && !allValues.shipperName) && getText(\"GenOneRequired\"));\r\nconst containerStyle = { display: \"flex\", flexDirection: \"row\", marginBottom: 10 } as React.CSSProperties;\r\nconst labelStyle = { width: 200, fontFamily: \"Calibri\", textAlign: \"right\", marginRight: 10, paddingTop: 7, color: \"Colors.baseColors.darkGray\" } as React.CSSProperties;\r\nconst inputStyle = { height: 30, backgroundColor: \"white\", marginBottom: 10, borderRadius: 5, borderColor: \"Colors.baseColors.darkGray\", borderWidth: 0.5, width: 250 };\r\n\r\nclass AskBookingByEmailForm extends React.Component {\r\n public render() {\r\n return (\r\n
\r\n
\r\n {this.props.error && {this.props.error}}\r\n
\r\n {this.props.type === \"byAgent\" &&\r\n
\r\n

\r\n {getText(\"SlcBookingYourClient\")}

\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
}\r\n\r\n

{getText(\"SlcBookingBookingInfo\")}

\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n } />\r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n } />\r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n\r\n {this.props.type === \"byAgent\" &&\r\n
\r\n \r\n
\r\n \r\n
\r\n
}\r\n\r\n
\r\n {\r\n this.props.prevStep();\r\n e.preventDefault();\r\n }}\r\n >{getText(\"GenPrevStep\")}\r\n {getText(\"GenNextStep\")}\r\n
\r\n
\r\n
);\r\n }\r\n}\r\n\r\nexport default ReduxForm.reduxForm({ form: 'askBookingByEmail' })(AskBookingByEmailForm) as any;\r\n","import * as React from 'react';\r\nimport Moment from 'moment';\r\nimport { connect } from 'react-redux';\r\nimport { ApplicationState } from '../store';\r\nimport * as Api from '../api/api';\r\nimport SendEmail from './SendEmail';\r\nimport OfferReminder from './OfferReminder';\r\nimport AskBookingByEmailForm from './AskBookingByEmailForm';\r\nimport Select from './Select';\r\nimport * as SelectionStore from '../store/Selection';\r\nimport * as AskBookingStore from '../store/AskBooking';\r\nimport { getCarrierOfferKey } from '../utils/utils';\r\nimport { getText } from '../utils/langTexts';\r\nimport { getSelectedDepart } from '../utils/routeUtils';\r\nimport * as Colors from '../styles/colors';\r\n\r\n\r\ntype AskBookingByEmailProps = AskBookingByEmailOwnProps\r\n & AskBookingStore.AskBookingState\r\n & typeof AskBookingStore.actionCreators;\r\n\r\ninterface AskBookingByEmailOwnProps {\r\n client: Api.ClientModel;\r\n criteria: Api.CriteriaModel;\r\n carrierOffer: Api.CarrierOfferModel;\r\n carrierOfferState: SelectionStore.CarrierOfferState;\r\n carriers: { [id: number]: Api.CarrierModel };\r\n sizeTypes: { [id: number]: Api.SizeTypeModel };\r\n}\r\n\r\nconst partStyle = { marginBottom: 20 };\r\nconst fieldStyle = { marginBottom: 10, marginTop: 10, paddingRight: 50, paddingLeft: 50 };\r\nconst innerFieldStyle = { marginBottom: 10, marginTop: 10, paddingRight: 200, paddingLeft: 100, };\r\n\r\nconst containerStyle = { display: \"flex\", flexDirection: \"row\", } as React.CSSProperties;\r\nconst innerStyle = { padding: 10 };\r\nconst descStyle = { ...fieldStyle, textAlign: \"center\" };\r\nconst inputStyle = { height: 30, backgroundColor: \"white\", marginBottom: 10, borderRadius: 5, borderColor: \"black\", borderWidth: 0.5, width: 250 };\r\nconst labelStyle = { width: 90, fontFamily: \"Calibri\", textAlign: \"right\", marginRight: 10, paddingTop: 7, color: \"Colors.baseColors.darkGray\" } as React.CSSProperties;\r\nconst shortLabelStyle = { ...labelStyle, minWidth: 60 };\r\nconst btnsStyle = { ...fieldStyle, textAlign: \"center\" };\r\nconst btnStyle = { backgroundColor: \"white\", color: Colors.baseColors.lightBlue, borderRadius: 10, borderWidth: 0.5, fontWeight: \"bold\", flex: 1, height: 30, } as React.CSSProperties;\r\nconst selectStyle = { borderRadius: 5, borderWidth: 0.5, borderColor: \"black\" } as React.CSSProperties;\r\n\r\nconst askBookingTypes = (): Array<{ label: string, value: AskBookingStore.AskBookingType }> => [\r\n { label: getText(\"SlcBookingTypeDirect\"), value: \"direct\" },\r\n { label: getText(\"SlcBookingTypeAgent\"), value: \"byAgent\" }\r\n];\r\n\r\nclass AskBookingByEmail extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n }\r\n\r\n get selectedDepart(): Api.DepartModel {\r\n return getSelectedDepart(this.props.carrierOffer, this.props.carrierOfferState);\r\n }\r\n\r\n handleSendingEmail() {\r\n ((this.props.requestSendEmail(new Date().getTime()) as any) as Promise).then(value => {\r\n this.props.closeAskBooking();\r\n });\r\n }\r\n\r\n //TODO get carrier url\r\n public render() {\r\n return
\r\n
\r\n {this.props.step == 0 &&\r\n (\r\n
\r\n \r\n
\r\n )\r\n }\r\n {this.props.step === 0 &&\r\n (\r\n
\r\n
\r\n

\r\n {getText(\"SlcBookingOperationalInfo\")}

\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n cst.number > 0)\r\n .map(cst => cst.number + \"X\" + this.props.sizeTypes[cst.sizeTypeId].name).join(\", \")} disabled />\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

\r\n {getText(\"SlcBookingBookingInfo\")}

\r\n
\r\n \r\n
\r\n this.props.selectAskBookingType(value)} />\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {\r\n this.props.nextStep();\r\n e.preventDefault();\r\n }}>\r\n {getText(\"GenNextStep\")}\r\n \r\n
\r\n
\r\n
\r\n
\r\n )\r\n }\r\n {this.props.step === 1 &&\r\n (\r\n {\r\n let model = values as AskBookingStore.AskBookingByEmailModel;\r\n this.props.setAskBookingByEmailModel(model);\r\n this.props.initEmail();\r\n this.props.nextStep();\r\n }}\r\n prevStep={() => this.props.prevStep()}\r\n type={this.props.type} />\r\n )\r\n }\r\n {this.props.step === 2 &&\r\n (\r\n this.handleSendingEmail()}\r\n goBack={() => this.props.prevStep()}\r\n />\r\n )\r\n }\r\n
\r\n
\r\n }\r\n}\r\n\r\nexport default connect((state: ApplicationState) => ({\r\n ...state.askBooking,\r\n carriers: state.seed.carriers,\r\n sizeTypes: state.seed.sizeTypes,\r\n client: state.account.currentUser.clientModel,\r\n criteria: state.criteria.criteria,\r\n carrierOffer: state.selection.selection.carrierOffers\r\n .find(co => getCarrierOfferKey(co) === state.askBooking.carrierOfferId),\r\n carrierOfferState: state.selection.carrierOfferStates[state.askBooking.carrierOfferId]\r\n} as any), AskBookingStore.actionCreators)(AskBookingByEmail) as any","import * as React from 'react';\r\nimport { connect } from 'react-redux';\r\nimport { ApplicationState } from '../store';\r\nimport * as Api from '../api/api';\r\nimport * as SelectionStore from '../store/Selection';\r\nimport * as TransferStore from '../store/Transfer';\r\nimport Button from './Button';\r\nimport { getCarrierOfferKey } from '../utils/utils';\r\nimport { getText } from '../utils/langTexts';\r\nimport { getSelectedDepart } from '../utils/routeUtils';\r\nimport * as Colors from '../styles/colors';\r\nimport * as selectionConnect from '../connects/selectionConnect';\r\n\r\n\r\ntype TransferOfferProps = TransferOfferOwnProps\r\n & typeof TransferStore.actionCreators;\r\n\r\ninterface TransferOfferOwnProps {\r\n carrierOffer: Api.CarrierOfferModel;\r\n carrierOfferState: SelectionStore.CarrierOfferState;\r\n transferState: TransferStore.TransferState;\r\n currencyId: number;\r\n hasExportParameters: boolean;\r\n hasTmsSettings: boolean;\r\n}\r\n\r\nconst partStyle = { marginBottom: 20 };\r\nconst innerStyle = { padding: 10 };\r\nconst containerStyle = { display: \"flex\", flexDirection: \"row\", marginLeft: 20, minWidth: 145, } as React.CSSProperties;\r\nconst labelStyle = { width: 145, textAlign: \"right\", marginRight: 10, paddingTop: 8, fontFamily: \"Calibri\", color: Colors.baseColors.darkGray, } as React.CSSProperties;\r\nconst inputStyle = { minWidth: 350, height: 30, borderRadius: 5, borderColor: Colors.baseColors.darkGray, borderWidth: 0.5, } as React.CSSProperties;\r\n\r\nclass TransferOffer extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n }\r\n\r\n //unlike exprot we add it to the action params because it may be fired from elsewhere\r\n get getOfferSelection(): Api.OfferSelectionModel {\r\n return {\r\n chargeSetId: this.props.carrierOffer.chargeSet ? this.props.carrierOffer.chargeSet.chargeSetId : null,\r\n currencyId: this.props.currencyId,\r\n departId: getSelectedDepart(this.props.carrierOffer, this.props.carrierOfferState)?.departId\r\n };\r\n }\r\n\r\n public render() {\r\n return
\r\n
\r\n
\r\n

\r\n {getText(\"SlcOfferCreateMemo\")}

\r\n
\r\n
\r\n {\r\n this.props.requestSendMemo(new Date().getTime(), this.getOfferSelection);\r\n e.preventDefault();\r\n }}\r\n disabled={this.props.transferState.createMemoState.isLoading}>\r\n {getText(\"SlcOfferMemoEmail\")}\r\n \r\n
\r\n
\r\n {\r\n this.props.requestDownloadMemo(new Date().getTime(), this.getOfferSelection);\r\n e.preventDefault();\r\n }}\r\n disabled={this.props.transferState.createMemoState.isLoading}>\r\n {getText(\"SlcOfferMemoDownload\")}\r\n \r\n
\r\n
\r\n
\r\n
\r\n {this.props.hasExportParameters &&
\r\n {\r\n this.props.requestExportOffer(new Date().getTime(), this.getOfferSelection);\r\n e.preventDefault();\r\n return false;\r\n }}>\r\n

\r\n {getText(\"SlcOfferTransferData\")}

\r\n
\r\n
\r\n
\r\n \r\n this.props.transferUpdateIdentitifcation(e.target.value)} />\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n this.props.transferUpdateAdditionalInfo1(e.target.value)} />\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n this.props.transferUpdateAdditionalInfo2(e.target.value)} />\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n }\r\n {this.props.hasTmsSettings &&
\r\n

\r\n {getText(\"SlcOfferTransferToTms\")}

\r\n
\r\n {\r\n this.props.requestExportOfferToTms(new Date().getTime(), this.getOfferSelection);\r\n e.preventDefault();\r\n }}\r\n disabled={this.props.transferState.exportOfferToTmsState.isLoading}>\r\n {getText(\"SlcOfferTransferToTms\")}\r\n \r\n
\r\n
}\r\n
\r\n
\r\n }\r\n}\r\n\r\nexport default connect((state: ApplicationState) => {\r\n\r\n return {\r\n carrierOffer: selectionConnect.getGroupedCarrierOffers(state)\r\n .reduce((a,b) => a.concat(b), [])\r\n .find(co => getCarrierOfferKey(co) === state.transfer.carrierOfferId),\r\n carrierOfferState: state.selection.carrierOfferStates[state.transfer.carrierOfferId],\r\n transferState: state.transfer,\r\n currencyId: state.account.currentUser.clientModel.currencyId,\r\n hasExportParameters: state.account.currentUser\r\n && state.account.currentUser.clientModel.subscriptions.some(x => x.hasExportParameters),\r\n hasTmsSettings: state.account.currentUser\r\n && state.account.currentUser.clientModel.subscriptions.some(x => x.hasTmsSettings)\r\n }\r\n}, {\r\n ...SelectionStore.actionCreators,\r\n ...TransferStore.actionCreators\r\n})(TransferOffer) as any","import * as React from \"react\";\r\nimport * as Api from \"../api/api\";\r\nimport * as FormField from './FormField';\r\nimport { connect } from \"react-redux\";\r\nimport { ApplicationState } from \"../store\";\r\nimport * as ReduxForm from 'redux-form';\r\nimport LocationSelect from \"./LocationSelect\";\r\nimport { getPort } from \"../utils/utils\";\r\nimport Button from \"./Button\";\r\n\r\ntype RequestStatsPriceFormProps = ReduxForm.InjectedFormProps<{}, {}, string>\r\n & RequestStatsPriceFormExternalProps\r\n & RequestStatsPriceFormOwnProps;\r\n\r\ninterface RequestStatsPriceFormExternalProps {\r\n onSubmit: (values: Api.RequestStatsPriceModel) => Promise;\r\n}\r\n\r\ninterface RequestStatsPriceFormOwnProps {\r\n}\r\n\r\nconst originPortField = (fields) =>
\r\n fields.input.onChange(value)} />\r\n \r\n
\r\n\r\nconst destinationPortField = (fields) =>
\r\n fields.input.onChange(value)} />\r\n \r\n
\r\n\r\nclass RequestStatsPriceForm extends React.Component {\r\n public render() {\r\n return (\r\n \r\n
\r\n \r\n
\r\n \r\n
\r\n \r\n
\r\n \r\n
\r\n \r\n Search\r\n \r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\nexport const requestStatsPriceFormName = \"requestStatsPriceForm\";\r\n\r\nlet form = ReduxForm.reduxForm({\r\n form: requestStatsPriceFormName,\r\n destroyOnUnmount: false,\r\n enableReinitialize: false,\r\n})(RequestStatsPriceForm) as any;\r\nconst selector = ReduxForm.formValueSelector(requestStatsPriceFormName)\r\n\r\nexport default connect((state: ApplicationState) => {\r\n let criteriaLoaded = state.selection.criteriaLoaded;\r\n let pol = criteriaLoaded\r\n ? getPort(state.selection.criteriaLoaded.origin)\r\n : undefined;\r\n let pod = criteriaLoaded\r\n ? getPort(state.selection.criteriaLoaded.destination)\r\n : undefined;\r\n\r\n return {\r\n initialValues: {\r\n origin: pol,\r\n destination: pod\r\n } as Api.RequestStatsPriceModel\r\n } as RequestStatsPriceFormOwnProps;\r\n})(form) as any as React.ClassicComponentClass","import * as React from \"react\";\r\nimport { Guid } from \"../utils/utils\";\r\n\r\nexport interface DataPoint {\r\n x: number;\r\n y: number;\r\n}\r\n\r\nexport interface ChartData {\r\n labels?: Array;\r\n datasets: Array;\r\n}\r\n\r\nexport interface ChartDataset {\r\n label?: string;\r\n data: Array;\r\n backgroundColor: string;\r\n lineTension?: number;\r\n fill?: boolean;\r\n showLine?: boolean;\r\n}\r\n\r\ninterface ChartProps {\r\n type: string;\r\n style?: React.CSSProperties;\r\n title?: string;\r\n data: ChartData;\r\n options: any;\r\n height?: number;\r\n width?: number;\r\n}\r\n\r\nexport default class ChartReact extends React.Component {\r\n private containerId: string;\r\n private chartRef: any;\r\n\r\n constructor(props: ChartProps) {\r\n super(props);\r\n this.containerId = Guid.newGuid();\r\n }\r\n\r\n componentDidMount() {\r\n let ctx = document.getElementById(this.containerId);\r\n // @ts-ignore\r\n this.chartRef = new Chart(ctx, {\r\n type: this.props.type,\r\n data: this.props.data,\r\n options: this.chartOptions\r\n });\r\n }\r\n\r\n componentWillUnmount() {\r\n if (this.chartRef) {\r\n this.chartRef.destroy();\r\n }\r\n }\r\n\r\n componentWillReceiveProps(nextProps: ChartProps) {\r\n if (this.chartRef) {\r\n this.chartRef.data = nextProps.data;\r\n this.chartRef.update();\r\n }\r\n }\r\n\r\n get chartOptions(): any {\r\n return {\r\n ...this.props.options,\r\n title: {\r\n display: this.props.title\r\n ? true\r\n : false,\r\n text: this.props.title,\r\n fontSize: 18\r\n }\r\n };\r\n }\r\n\r\n public render() {\r\n return (\r\n \r\n \r\n );\r\n }\r\n}","import * as React from 'react';\r\nimport * as ReduxForm from 'redux-form';\r\nimport { connect } from 'react-redux';\r\nimport Moment from 'moment';\r\nimport * as Api from '../api/api';\r\nimport * as Colors from '../styles/colors';\r\nimport { ApplicationState } from '../store';\r\nimport * as FormField from './FormField';\r\nimport { getSubscription } from '../utils/utils';\r\nimport { getText } from '../utils/langTexts';\r\nimport CriteriaLocationSelect from \"./CriteriaLocationSelect\";\r\nimport { incotermOptions } from './QuotationInformationForm';\r\nimport Button from './Button';\r\nimport InputNumber from './InputNumber';\r\n\r\ntype CriteriaFormProps = ReduxForm.InjectedFormProps\r\n & CriteriaFormOwnProps\r\n & CriteriaFormExternalProps;\r\n\r\nexport const containerTypeOptions = (): Array<{ label: string; value: Api.CriteriaModelContainerTypeEnum }> => [\r\n { label: getText(\"GenCtrDry\"), value: \"Dry\" },\r\n { label: getText(\"GenCtrRefeer\"), value: \"Rf\" },\r\n { label: getText(\"GenCtrFlat\"), value: \"Fl\" },\r\n { label: getText(\"GenCtrOpenTop\"), value: \"Ot\" },\r\n { label: getText(\"GenCtrTankTop\"), value: \"Tk\" }\r\n];\r\n\r\ninterface CriteriaFormOwnProps {\r\n criteriaSizeTypes: Array;\r\n sizeTypes: { [id: number]: Api.SizeTypeModel };\r\n containerType: Api.CriteriaModelContainerTypeEnum;\r\n subscription: Api.SubscriptionModel;\r\n dateBegin: Date;\r\n dateEnd: Date;\r\n priceByContainer: boolean;\r\n shipperName: string;\r\n consigneeName: string;\r\n isSpotOperation: boolean;\r\n cbm: number;\r\n ton: number;\r\n}\r\n\r\ninterface CriteriaFormExternalProps {\r\n onSubmit: (values: Api.CriteriaModel) => void;\r\n resetCriteria: () => void;\r\n toggleAdvContainer: (value: boolean) => void;\r\n toggleAdvLocation: (value: boolean) => void;\r\n toggleAdvDate: (value: boolean) => void;\r\n advContainerOpened: boolean;\r\n advLocationOpened: boolean;\r\n advDateOpened: boolean;\r\n}\r\n\r\nconst locationRequired = (value: Api.LocationModel) => (!value || !value.locationId) && getText(\"GenRequired\");\r\nconst consigneeOrShipper = (value, allValues: Api.CriteriaModel) => (allValues.criteriaAgent\r\n && !allValues.criteriaAgent.consigneeName\r\n && !allValues.criteriaAgent.shipperName && getText(\"GenOneRequired\"));\r\nconst commentField = FormField.textAreaField(4, 40);\r\nconst cargoDescriptionField = FormField.textAreaField(4, 40);\r\nconst lclUnitRequired = (value, allValues: Api.CriteriaModel) => (!allValues.cbm\r\n && !allValues.ton)\r\n && getText(\"GenRequired\");\r\n\r\nconst originField = (fields) =>
\r\n fields.input.onChange(value)} />\r\n \r\n
\r\n\r\nconst destinationField = (fields) =>
\r\n fields.input.onChange(value)} />\r\n \r\n
\r\n\r\nconst titleStyle: React.CSSProperties = {\r\n fontSize: 24,\r\n fontWeight: 700,\r\n marginBottom: 20\r\n};\r\n\r\nclass CriteriaForm extends React.Component {\r\n public render() {\r\n return (\r\n
\r\n
\r\n
Size
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
=
\r\n
\r\n { }} />\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
{getText(\"CrtPorts\")}
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n {(!this.props.subscription\r\n || this.props.subscription.subscriptionType !== \"Agent\")\r\n &&
\r\n
{getText(\"CrtAllInIncluding\")}
\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
}\r\n
\r\n
{getText(\"CrtDates\")}
\r\n
\r\n
\r\n
{getText(\"CrtFromDate\")}
\r\n
\r\n } />\r\n
\r\n
\r\n
\r\n
{getText(\"CrtToDate\")}
\r\n
\r\n } />\r\n
\r\n
\r\n
\r\n
\r\n {(this.props.subscription && this.props.subscription.subscriptionType === \"Agent\") &&\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n {\" \" + getText(\"CrtAgentSpot\")}\r\n
\r\n
\r\n
\r\n \r\n
\r\n {\" \" + getText(\"CrtAgentRegular\")}\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n
}\r\n
\r\n
\r\n
\r\n {\r\n this.props.resetCriteria();\r\n if (e.preventDefault) {\r\n e.preventDefault();\r\n }\r\n }}>\r\n {getText(\"CrtReset\")}\r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n {getText(\"CrtGo\")}\r\n \r\n
\r\n {!this.props.valid && this.props.anyTouched && {getText(\"CrtGoValidationError\")}}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\nlet criteriaFormWrapped = ReduxForm.reduxForm({\r\n form: 'criteriaLcl',\r\n destroyOnUnmount: false,\r\n keepDirtyOnReinitialize: true,\r\n enableReinitialize: true\r\n})(CriteriaForm) as any;\r\nconst selector = ReduxForm.formValueSelector('criteriaLcl')\r\n\r\nexport default connect((state: ApplicationState) => {\r\n return {\r\n initialValues: {\r\n ...state.criteria.criteria,\r\n type: \"Lcl\",\r\n lclUnitType: \"Wm\"\r\n } as Api.CriteriaModel,\r\n criteriaSizeTypes: selector(state, \"criteriaSizeTypes\") || [],\r\n containerType: selector(state, \"containerType\"),\r\n sizeTypes: state.seed.sizeTypes,\r\n subscription: getSubscription(state.account.currentUser.clientModel),\r\n dateBegin: selector(state, \"dateBegin\"),\r\n dateEnd: selector(state, \"dateEnd\"),\r\n priceByContainer: selector(state, \"priceByContainer\"),\r\n consigneeName: selector(state, 'criteriaAgent.consigneeName'),\r\n isSpotOperation: selector(state, 'criteriaAgent.isSpotOperation'),\r\n shipperName: selector(state, 'criteriaAgent.shipperName'),\r\n lclUnitType: selector(state, 'lclUnitType'),\r\n cbm: selector(state, 'cbm'),\r\n ton: selector(state, 'ton'),\r\n } as CriteriaFormOwnProps;\r\n})(criteriaFormWrapped) as any as React.ComponentClass","import * as React from \"react\";\r\nimport Moment from \"moment\";\r\nimport * as Api from \"../api/api\";\r\nimport * as _ from \"lodash\";\r\nimport * as StatsStore from \"../store/Stats\";\r\nimport RequestStatsPriceForm from \"./RequestStatsPriceForm\";\r\nimport CheckBox from \"./CheckBox\";\r\nimport Select from \"./Select\";\r\nimport { connect } from \"react-redux\";\r\nimport { ApplicationState } from \"../store\";\r\nimport DialogModal from \"./DialogModal\";\r\nimport Chart, { ChartDataset } from \"./Chart\";\r\nimport Loader from './Loader';\r\nimport { createSelector } from \"reselect\";\r\nimport { containerTypeOptions } from \"./CriteriaLclForm\";\r\nimport { getText } from \"../utils/langTexts\";\r\n\r\ntype StatsPriceDialogProps = StatsPriceDialogOwnProps\r\n & StatsStore.StatsState\r\n & typeof StatsStore.actionCreators;\r\n\r\ninterface StatsPriceDialogOwnProps {\r\n sizeTypes: { [id: number]: Api.SizeTypeModel };\r\n currencies: { [id: number]: Api.CurrencyModel };\r\n chartDataSets: Array;\r\n}\r\n\r\nconst getYears = (statsPrice: Api.StatsPriceModel) => _.sortBy(_.uniq(statsPrice.monthStatsPrices.map(x => x.year)));\r\nconst statsPriceSelector = (state: ApplicationState) => state.stats.statsPriceState.statsPrice;\r\nconst yearsSelectedSelector = (state: ApplicationState) => state.stats.statsPriceState.yearsSelected;\r\nconst sizeTypeIdsSelectedSelector = (state: ApplicationState) => state.stats.statsPriceState.sizeTypeIdsSelected;\r\nconst containerTypeSelector = (state: ApplicationState) => state.stats.statsPriceState.containerType;\r\nconst currencyIdSelector = (state: ApplicationState) => state.stats.currencyId;\r\nconst includeOriginSelector = (state: ApplicationState) => state.stats.includeOrigin;\r\nconst includeDestinationSelector = (state: ApplicationState) => state.stats.includeDestination;\r\nconst currenciesSelector = (state: ApplicationState) => state.seed.currencies;\r\nconst sizeTypesSelector = (state: ApplicationState) => state.seed.sizeTypes;\r\n\r\nconst colors = [\r\n \"#4472C4\"\r\n , \"#EB6F1B\"\r\n , \"#9B9B9B\"\r\n , \"#FFB900\"\r\n , \"#FF00DC\"\r\n];\r\nexport const dataSetSelector = createSelector(statsPriceSelector\r\n , yearsSelectedSelector\r\n , sizeTypeIdsSelectedSelector\r\n , containerTypeSelector\r\n , currencyIdSelector\r\n , includeOriginSelector\r\n , includeDestinationSelector\r\n , currenciesSelector\r\n , sizeTypesSelector\r\n , (statsPrice, yearsSelected, sizeTypeIdsSelected, containerType, currencyId, includeOrigin, includeDestination, currencies, sizeTypes) => {\r\n if (!statsPrice)\r\n return [];\r\n\r\n let years = getYears(statsPrice);\r\n return _.map(_.sortBy(_.groupBy(statsPrice.monthStatsPrices\r\n .filter(x => yearsSelected[x.year] !== false), x => x.year.toString()), (xs, key) => parseInt(key)), xs => {\r\n let color = colors[years.findIndex(year => year.toString() == xs[0].year.toString()) % colors.length];\r\n return {\r\n label: xs[0].year.toString(),\r\n backgroundColor: color,\r\n borderColor: color,\r\n lineTension: 0.1,\r\n fill: false,\r\n data: _.sortBy(xs, x => x.month)\r\n .map(data => Math.round(_.mean(data.sizeTypePriceAverages\r\n .filter(x => sizeTypeIdsSelected[x.sizeTypeId] !== false\r\n && sizeTypes[x.sizeTypeId].type === containerType)\r\n .map(x => x.frtAvg\r\n + (includeOrigin ? x.originAvg : 0)\r\n + (includeDestination ? x.destinationAvg : 0)))\r\n / currencies[currencyId].value)\r\n )\r\n } as ChartDataset;\r\n });\r\n})\r\n\r\nclass StatsPriceDialog extends React.Component {\r\n constructor(props: StatsPriceDialogProps) {\r\n super(props);\r\n }\r\n\r\n getYears(props: StatsPriceDialogProps): Array {\r\n return _.sortBy(_.uniq(props.statsPriceState.statsPrice.monthStatsPrices.map(x => x.year)));\r\n }\r\n\r\n sizeTypeIsDisabled(sizeTypeId: number): boolean {\r\n return !this.props.statsPriceState.statsPrice\r\n || !this.props.statsPriceState.statsPrice.monthStatsPrices\r\n .some(y => y.sizeTypePriceAverages\r\n .some(z => z.sizeTypeId === sizeTypeId));\r\n }\r\n\r\n get chartData() {\r\n return this.props.statsPriceState.statsPrice\r\n ? {\r\n labels: [\r\n Moment(new Date(2000, 0, 1)).format(\"MMM\"),\r\n Moment(new Date(2000, 1, 1)).format(\"MMM\"),\r\n Moment(new Date(2000, 2, 1)).format(\"MMM\"),\r\n Moment(new Date(2000, 3, 1)).format(\"MMM\"),\r\n Moment(new Date(2000, 4, 1)).format(\"MMM\"),\r\n Moment(new Date(2000, 5, 1)).format(\"MMM\"),\r\n Moment(new Date(2000, 6, 1)).format(\"MMM\"),\r\n Moment(new Date(2000, 7, 1)).format(\"MMM\"),\r\n Moment(new Date(2000, 8, 1)).format(\"MMM\"),\r\n Moment(new Date(2000, 9, 1)).format(\"MMM\"),\r\n Moment(new Date(2000, 10, 1)).format(\"MMM\"),\r\n Moment(new Date(2000, 11, 1)).format(\"MMM\"),\r\n ],\r\n datasets: this.props.chartDataSets\r\n }\r\n : {\r\n labels: [],\r\n datasets: []\r\n };\r\n }\r\n\r\n public render() {\r\n return (\r\n this.props.closeStatsPriceDialog()}\r\n contentLabel={\"Price stats\"}\r\n >\r\n
\r\n
{getText(\"FakStatistics\")}
\r\n
\r\n
\r\n this.props.requestStats(new Date().getTime(), values) as any} />\r\n
\r\n
\r\n
\r\n {_.values(this.props.sizeTypes)\r\n .filter(x => x.type === this.props.statsPriceState.containerType)\r\n .map(x =>
\r\n this.props.updateSizeTypeIdIsSelected(x.sizeTypeId, value)}\r\n label={x.name} />\r\n
)}\r\n
\r\n
\r\n
\r\n this.props.updateStatsCurrencyId(value)}\r\n options={_.values(this.props.currencies)\r\n .map(x => ({ label: x.code, value: x.currencyId }))} />\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n {this.props.statsPriceState.statsPrice && _.sortBy(_.uniq(this.props.statsPriceState.statsPrice.monthStatsPrices.map(x => x.year)))\r\n .map((year, index) =>
\r\n
\r\n
\r\n this.props.updateYearIsSelected(year, value)} />\r\n
\r\n
this.props.updateYearIsSelected(year, !this.props.statsPriceState.yearsSelected[year])}>\r\n\r\n
\r\n
)}\r\n
\r\n
\r\n
\r\n \r\n \r\n );\r\n }\r\n}\r\n\r\nexport default connect((state: ApplicationState) => ({\r\n ...state.stats,\r\n currencies: state.seed.currencies,\r\n sizeTypes: state.seed.sizeTypes,\r\n chartDataSets: dataSetSelector(state)\r\n} as StatsPriceDialogProps), { ...StatsStore.actionCreators })(StatsPriceDialog) as any;\r\n\r\n\r\n","import * as React from 'react';\r\nimport * as Colors from \"../styles/colors\";\r\nimport { KeyboardArrowUp } from \"@material-ui/icons\";\r\nimport { scrollToAppTop } from '../utils/utils';\r\nimport { connect } from 'react-redux';\r\nimport { ApplicationState } from '../store';\r\n\r\ntype ScrollToTopProps = ScrollToTopOwnProps;\r\n\r\ninterface ScrollToTopOwnProps {\r\n scrollPosition: number;\r\n}\r\n\r\ninterface ScrollToTopState {\r\n}\r\n\r\nclass ScrollToTop extends React.Component {\r\n constructor(props: ScrollToTopProps) {\r\n super(props);\r\n this.state = {\r\n };\r\n }\r\n\r\n\r\n public render() {\r\n return (
\r\n
scrollToAppTop()}>\r\n
\r\n \r\n
\r\n
\r\n
);\r\n }\r\n}\r\n\r\nexport default connect((state: ApplicationState) => ({\r\n scrollPosition: state.scroll.scrollPosition\r\n}), {})(ScrollToTop) as any;","import * as React from 'react';\r\nimport { Switch } from '@material-ui/core';\r\nimport * as Colors from '../styles/colors';\r\nimport { styled } from '@material-ui/core/styles';\r\n\r\nconst StyledSwitch = styled(Switch)({\r\n \"& .MuiButtonBase-root\": {\r\n color: \"white\",\r\n },\r\n \"& .Mui-checked\": {\r\n color: Colors.baseColors.lightBlue\r\n },\r\n \"& .MuiSwitch-track\": {\r\n backgroundColor: `${Colors.baseColors.darkGray} !important`\r\n },\r\n \"& .MuiSwitch-thumb\": {\r\n border: `1px solid ${Colors.baseColors.darkGray}`\r\n }\r\n});\r\n\r\n\r\ninterface OkSwitchProps {\r\n value: boolean;\r\n disabled?: boolean;\r\n onChange: (value: boolean) => void;\r\n style?: React.CSSProperties;\r\n size?: \"small\" | \"medium\";\r\n}\r\n\r\nexport default class OkSwitch extends React.Component {\r\n\r\n constructor(props) {\r\n super(props)\r\n }\r\n\r\n public render() {\r\n return (\r\n this.props.onChange(val)} />\r\n );\r\n }\r\n}","import * as Api from '../api/api';\r\nimport * as React from \"react\";\r\nimport * as CriteriaStore from '../store/Criteria';\r\nimport * as SelectionStore from '../store/Selection';\r\nimport * as MultiPortStore from '../store/MultiPort';\r\nimport * as StatsStore from '../store/Stats';\r\nimport * as Colors from '../styles/colors';\r\nimport Button from \"./Button\";\r\nimport ExpensionPanel from \"./ExpansionPanel\";\r\nimport CheckBox from './CheckBox'\r\nimport { getText } from \"../utils/langTexts\";\r\nimport { Add, Remove } from \"@material-ui/icons\";\r\nimport { canUseSuggested, canUseCarrierRates } from '../security/userRights';\r\nimport { ApplicationState } from '../store';\r\nimport { connect } from 'react-redux';\r\nimport { getSubscription } from '../utils/utils';\r\nimport { Paper } from '@material-ui/core';\r\nimport Switch from \"./Switch\";\r\nimport { isSmallScreen } from '../utils/screenUtils';\r\n\r\ntype SelectionCriteriaAdvancedProps = SelectionCriteriaAdvancedOwmProps\r\n & CriteriaStore.CriteriaState\r\n & SelectionCriteriaAdvancedExternalProps\r\n & typeof SelectionStore.actionCreators\r\n & typeof CriteriaStore.actionCreators\r\n & typeof MultiPortStore.actionCreators\r\n & typeof StatsStore.actionCreators\r\n ;\r\n\r\ninterface SelectionCriteriaAdvancedOwmProps {\r\n advCriteriaOpened: boolean;\r\n selectionIsLoading: boolean;\r\n multiPortIsVisible: boolean;\r\n criteriaLoaded: Api.CriteriaModel;\r\n subscription: Api.SubscriptionModel;\r\n subscriptions: Array;\r\n}\r\n\r\ninterface SelectionCriteriaAdvancedExternalProps {\r\n criteriaType: Api.CriteriaModelTypeEnum;\r\n}\r\n\r\nconst checkBoxLabelStyle: React.CSSProperties = {\r\n fontSize: 14,\r\n minWidth: 240\r\n}\r\n\r\n\r\nconst getButtonSize = (): {\r\n height: number;\r\n} => {\r\n if (isSmallScreen()) {\r\n return {\r\n height: 30,\r\n };\r\n } else {\r\n return {\r\n height: 36,\r\n };\r\n }\r\n}\r\n\r\nclass SelectionCriteriaAdvanced extends React.Component {\r\n\r\n get loadedAdvCount(): number {\r\n return this.props.criteriaLoaded\r\n ? ((this.props.criteriaLoaded.suggested ? 1 : 0)\r\n + (this.props.criteriaLoaded.includeCarrierRates ? 1 : 0)\r\n + (this.props.criteriaLoaded.lastRates ? 1 : 0)\r\n + (this.props.criteriaLoaded.allMarkets ? 1 : 0)\r\n + (this.props.criteriaLoaded.includeSellingRates ? 1 : 0))\r\n : 0;\r\n }\r\n\r\n public render() {\r\n let buttonSize = getButtonSize();\r\n\r\n return (\r\n
\r\n { }}\r\n head={
}>\r\n \r\n
\r\n
\r\n
\r\n this.props.updateIncludeSellingRates(v)} />\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n {canUseSuggested(this.props.subscription)\r\n && this.props.selectSuggested(value)}\r\n value={this.props.criteria.suggested} />}\r\n
\r\n
\r\n {canUseCarrierRates(this.props.subscription)\r\n && this.props.selectCarrierRates(value)}\r\n value={this.props.criteria.includeCarrierRates} />}\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n this.props.selectLastRates(value)}\r\n value={this.props.criteria.lastRates} />\r\n
\r\n {this.props.subscriptions.some(x => x.subscriptionType === \"Okargo\"\r\n && x.agency.agencyMarkets && x.agency.agencyMarkets.length > 0)\r\n &&
\r\n this.props.selectAllMarket(value)}\r\n value={this.props.criteria.allMarkets} />\r\n
}\r\n
\r\n
\r\n\r\n
\r\n
\r\n
Multi port Mode
\r\n
\r\n this.props.toggleMultiPortVisible(v)} />\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n this.props.toggleAdvCriteria(this.props.advCriteriaOpened ? false : true)}>\r\n Options {this.props.advCriteriaOpened\r\n ? \r\n : }\r\n {!this.props.advCriteriaOpened\r\n && this.loadedAdvCount !== 0\r\n &&
{this.loadedAdvCount}
}\r\n \r\n
\r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\nexport default\r\n connect((state: ApplicationState) => {\r\n return {\r\n ...state.criteria,\r\n advCriteriaOpened: state.selection.advCriteriaOpened,\r\n selectionIsLoading: state.selection.isLoading,\r\n multiPortIsVisible: state.multiPort.isVisible,\r\n subscription: getSubscription(state.account.currentUser.clientModel)\r\n || { subscriptionType: null },\r\n subscriptions: state.account.currentUser.clientModel.subscriptions,\r\n criteriaLoaded: state.selection.criteriaLoaded\r\n } as any\r\n },\r\n {\r\n ...StatsStore.actionCreators,\r\n ...MultiPortStore.actionCreators,\r\n ...CriteriaStore.actionCreators,\r\n ...SelectionStore.actionCreators,\r\n })\r\n (SelectionCriteriaAdvanced) as any as React.ComponentClass","import { Action, Reducer } from 'redux';\r\nimport {AppThunkAction} from \"./index\";\r\nimport * as Notifications from \"react-notification-system-redux\";\r\nimport * as _ from \"lodash\";\r\n\r\nexport interface RatesFetcherState {\r\n mfaStates: {\r\n [platformCode: string]: {\r\n value: string;\r\n isLoading: boolean;\r\n isSent: boolean;\r\n requestTime?: number;\r\n }\r\n },\r\n isMfaOpened: boolean\r\n}\r\n\r\nexport interface MfaRequested {\r\n type: \"MFA_REQUESTED\";\r\n payload: { requestTime: number; platformCode: string; };\r\n}\r\n\r\ninterface RequestProvideMfa {\r\n type: \"REQUEST_PROVIDE_MFA\";\r\n payload: { requestTime: number; platformCode: string; value: string; };\r\n}\r\n\r\ninterface ReceiveProvideMfa {\r\n type: \"RECEIVE_PROVIDE_MFA\";\r\n payload: { requestTime: number; platformCode: string; };\r\n error?: any;\r\n}\r\n\r\ninterface UpdateMfaValue {\r\n type: \"UPDATE_MFA_VALUE\";\r\n payload: { value: string, platformCode: string; }\r\n}\r\n\r\ninterface CloseMfaDialog {\r\n type: \"CLOSE_MFA_DIALOG\";\r\n}\r\n\r\ntype KnownAction = MfaRequested\r\n | RequestProvideMfa \r\n | ReceiveProvideMfa\r\n | CloseMfaDialog\r\n | UpdateMfaValue\r\n ;\r\n\r\nexport const actionCreators = {\r\n requestProvideMfa: (platformCode: string, value: string, requestTime: number): AppThunkAction => (dispatch, getState) => {\r\n dispatch({\r\n type: \"REQUEST_PROVIDE_MFA\",\r\n payload: {\r\n requestTime: requestTime,\r\n platformCode: platformCode,\r\n value: value\r\n }\r\n });\r\n return fetch('/api/RatesFetcher/ProvideMfa', {\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json'\r\n },\r\n body: JSON.stringify({ platformCode: platformCode, mfa: value })\r\n })\r\n .then(resp => {\r\n dispatch({\r\n type: \"RECEIVE_PROVIDE_MFA\",\r\n payload: { requestTime: requestTime, platformCode: platformCode }\r\n });\r\n })\r\n .catch(err => {\r\n console.error(err);\r\n dispatch(Notifications.error({ \r\n message: \"Error providing mfa, try again later\", \r\n title: \"Error\", \r\n position: \"tc\" \r\n }) as any);\r\n dispatch({ \r\n type: \"RECEIVE_PROVIDE_MFA\", \r\n payload: { requestTime: requestTime, platformCode: platformCode }, \r\n error: err \r\n });\r\n });\r\n },\r\n closeMfaDialog: () => ({ type: \"CLOSE_MFA_DIALOG\" }),\r\n updateMfaValue: (platformCode: string, value: string) => ({ \r\n type: \"UPDATE_MFA_VALUE\", \r\n payload: { platformCode: platformCode, value: value } \r\n }),\r\n};\r\n\r\nconst unloadedState: RatesFetcherState = {\r\n mfaStates: {},\r\n isMfaOpened: false\r\n};\r\n\r\nexport const reducer: Reducer = (state: RatesFetcherState, incomingAction: Action) => {\r\n const action = incomingAction as KnownAction;\r\n switch (action.type) {\r\n case \"MFA_REQUESTED\":\r\n return {\r\n ...state,\r\n mfaStates: {\r\n ...state.mfaStates,\r\n [action.payload.platformCode]: {\r\n value: \"\",\r\n isLoading: false,\r\n isSent: false\r\n }\r\n },\r\n isMfaOpened: true\r\n };\r\n case \"REQUEST_PROVIDE_MFA\":\r\n return {\r\n ...state,\r\n mfaStates: {\r\n ...state.mfaStates,\r\n [action.payload.platformCode]: {\r\n ...state.mfaStates[action.payload.platformCode],\r\n isLoading: true,\r\n requestTime: action.payload.requestTime,\r\n isSent: false\r\n }\r\n },\r\n isMfaOpened: true\r\n };\r\n case \"RECEIVE_PROVIDE_MFA\":\r\n if(action.payload.requestTime !== state.mfaStates[action.payload.platformCode]?.requestTime)\r\n return state;\r\n \r\n return {\r\n ...state,\r\n mfaStates: {\r\n ...state.mfaStates,\r\n [action.payload.platformCode]: {\r\n ...state.mfaStates[action.payload.platformCode],\r\n isLoading: false,\r\n requestTime: action.payload.requestTime,\r\n isSent: true\r\n }\r\n },\r\n isMfaOpened: _.keys(state.mfaStates)\r\n .some(x => x !== action.payload.platformCode\r\n && !state.mfaStates[action.payload.platformCode].isSent)\r\n };\r\n case \"CLOSE_MFA_DIALOG\":\r\n return {\r\n ...state,\r\n isMfaOpened: false\r\n };\r\n case \"UPDATE_MFA_VALUE\":\r\n return {\r\n ...state,\r\n mfaStates: {\r\n ...state.mfaStates,\r\n [action.payload.platformCode]: {\r\n ...state.mfaStates[action.payload.platformCode],\r\n value: action.payload.value\r\n }\r\n }\r\n };\r\n default:\r\n // // The following line guarantees that every action in the KnownAction union has been covered by a case above\r\n const exhaustiveCheck: never = action;\r\n }\r\n\r\n // For unrecognized actions (or in cases where actions have no effect), must return the existing state\r\n // (or default initial state if none was supplied)\r\n return state || unloadedState;\r\n};\r\n","import * as React from \"react\";\r\nimport * as _ from \"lodash\";\r\nimport DialogModal from \"./DialogModal\";\r\nimport {getText} from \"../utils/langTexts\";\r\nimport {connect} from \"react-redux\";\r\nimport {ApplicationState} from \"../store\";\r\nimport * as RatesFetcher from \"../store/RatesFetcher\";\r\nimport {colors} from \"../styles/colors\";\r\nimport * as Api from '../api/api';\r\nimport * as Colors from \"../styles/colors\";\r\nimport Button from \"./Button\";\r\n\r\ntype MfaPopupProps = MfaPopupOwnProps\r\n & RatesFetcher.RatesFetcherState\r\n & typeof RatesFetcher.actionCreators;\r\n\r\ninterface MfaPopupOwnProps {\r\n carrierRatesPlatforms: {[id: number]: Api.CarrierRatesPlatformModel }\r\n carriers: {[id: number]: Api.CarrierModel }\r\n}\r\n\r\nconst inputStyle = { minWidth: 200, height: 25, borderRadius: 5, borderColor: Colors.baseColors.darkGray, borderWidth: 0.5, } as React.CSSProperties;\r\n\r\nclass MfaPopup extends React.Component {\r\n constructor(props: MfaPopupProps) {\r\n super(props);\r\n }\r\n\r\n public render() {\r\n console.log(_.keys(this.props.mfaStates));\r\n return (\r\n this.props.closeMfaDialog()}\r\n contentLabel={\"Mfa popup\"}>\r\n
\r\n
{getText(\"OcqMfaBoxTitle\")}
\r\n {_.map(_.keys(this.props.mfaStates), platformCode => {\r\n let platform = _.values(this.props.carrierRatesPlatforms).find(x => x.code === platformCode);\r\n console.log(platform);\r\n let carrierCode = this.props.carriers[platform?.carrierId]?.code;\r\n console.log(carrierCode);\r\n if(!carrierCode)\r\n return null;\r\n \r\n return
\r\n
\r\n {carrierCode}\r\n
\r\n
\r\n {getText(\"OcqMfa\" + platformCode as any) ? getText(\"OcqMfa\" + platformCode as any) : getText(\"OcqMfaDefault\")}\r\n
\r\n {[\"CCL\", \"ONE\"].some(x => x === platform.code) \r\n &&
\r\n this.props.updateMfaValue(platformCode, e.target.value)} />\r\n {\r\n this.props.requestProvideMfa(platformCode, this.props.mfaStates[platformCode].value, new Date().getTime());\r\n e.preventDefault();\r\n }}\r\n disabled={this.props.mfaStates[platformCode].isLoading}>\r\n {getText(\"OcqMfaSend\")}\r\n \r\n
}\r\n
\r\n })}\r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\nexport default connect((state: ApplicationState) => ({\r\n ...state.ratesFetcher,\r\n carrierRatesPlatforms: state.seed.carrierRatesPlatforms,\r\n carriers: state.seed.carriers\r\n} as MfaPopupProps), { ...RatesFetcher.actionCreators })(MfaPopup) as any;","import * as React from 'react';\r\nimport * as Api from '../api/api';\r\nimport { connect } from 'react-redux';\r\nimport { ApplicationState } from '../store';\r\nimport * as AskBookingStore from '../store/AskBooking';\r\nimport * as AskRatesStore from '../store/AskRates';\r\nimport * as ContactBoxStore from '../store/ContactBox';\r\nimport * as SelectionStore from '../store/Selection';\r\nimport * as CriteriaStore from '../store/Criteria';\r\nimport * as TransferStore from '../store/Transfer';\r\nimport * as SelectionConnect from '../connects/selectionConnect';\r\nimport { RouteComponentProps } from 'react-router';\r\nimport MultiPortBox from './MultiPortBox';\r\nimport SelectionOffers, { departPerPage } from './SelectionOffers';\r\nimport SelectionFilter from './SelectionFilter';\r\nimport SelectionCriteria from './SelectionCriteria';\r\nimport SelectionOffersTable from './SelectionOffersTable'; \r\nimport AskBooking from './AskBooking';\r\nimport AskRatesByEmail from './AskRatesByEmail';\r\nimport AskRates from './AskRates';\r\nimport AskBookingByEmail from './AskBookingByEmail';\r\nimport TransferOffer from './TransferOffer';\r\nimport StatsPriceDialog from './StatsPriceDialog';\r\nimport DialogModal from './DialogModal';\r\nimport ScrollToTop from \"./ScrollToTop\";\r\nimport * as Colors from \"../styles/colors\";\r\nimport { scrollToAppTop, isClient } from '../utils/utils';\r\nimport SelectionCriteriaAdvanced from './SelectionCriteriaAdvanced';\r\nimport { Paper } from '@material-ui/core';\r\nimport { Warning } from '@material-ui/icons';\r\nimport Loader from './Loader';\r\nimport { getText } from '../utils/langTexts';\r\nimport MfaPopup from \"./MfaPopup\";\r\nimport {hasDiffSearchCriteria} from \"../utils/criteriaUtils\";\r\n\r\ntype SelectionProps = SelectionOwnProps\r\n & typeof AskBookingStore.actionCreators\r\n & typeof AskRatesStore.actionCreators\r\n & typeof SelectionStore.actionCreators\r\n & typeof TransferStore.actionCreators\r\n & typeof ContactBoxStore.actionCreators\r\n & RouteComponentProps<{ code: string }>\r\n\r\ninterface SelectionOwnProps {\r\n carrierOffersGrouped: Array>;\r\n selection: SelectionStore.SelectionState;\r\n criteria: CriteriaStore.CriteriaState;\r\n filterOptions: SelectionStore.SelectionFilterOptions;\r\n multiPortIsVisible: boolean;\r\n askBookingIsOpen: boolean;\r\n askRatesIsOpen: boolean;\r\n askRatesByEmailIsOpen: boolean;\r\n askBookingByEmailIsOpen: boolean;\r\n transferIsOpen: boolean;\r\n hasExportParameters: boolean;\r\n hasTmsSettings: boolean;\r\n}\r\n\r\ninterface SelectionState {\r\n}\r\n\r\nclass Selection extends React.Component {\r\n contactTimeout = null;\r\n\r\n initFilter(props: SelectionProps) {\r\n this.props.resetFilter(props.filterOptions);\r\n }\r\n\r\n componentWillMount() {\r\n this.initFilter(this.props);\r\n }\r\n\r\n updateSelection(props: SelectionProps): Promise {\r\n return new Promise((resolve, reject) => {\r\n let code = props.match ? props.match.params.code : '';\r\n if (code !== props.selection.code) {\r\n //get okargo offers\r\n return (this.props.searchSelection(code, new Date().getTime()) as any as Promise);\r\n }\r\n\r\n resolve();\r\n });\r\n }\r\n\r\n componentWillReceiveProps(nextProps: SelectionProps) {\r\n if (this.props.match.params !== nextProps.match.params)\r\n this.updateSelection(nextProps);\r\n\r\n if (nextProps.selection.selection.carrierOffers != this.props.selection.selection.carrierOffers\r\n || nextProps.criteria.criteria != this.props.criteria.criteria) {\r\n this.initFilter(nextProps);\r\n }\r\n if (isClient()\r\n && nextProps.selection !== this.props.selection\r\n && nextProps.selection.selection.carrierOffers\r\n && nextProps.selection.selection.carrierOffers.length !== 0) {\r\n if (this.contactTimeout) {\r\n clearTimeout(this.contactTimeout);\r\n }\r\n this.contactTimeout = setTimeout(() => {\r\n this.props.openFeedback(this.props.selection.selection.clientActionId);\r\n this.contactTimeout = null;\r\n }, 5000);\r\n }\r\n\r\n if (nextProps.carrierOffersGrouped != this.props.carrierOffersGrouped) {\r\n if (Math.ceil(nextProps.carrierOffersGrouped.length / departPerPage) * departPerPage < nextProps.selection.currentPage * departPerPage) {\r\n this.props.selectPage(1);\r\n }\r\n }\r\n }\r\n\r\n componentDidMount() {\r\n scrollToAppTop();\r\n this.updateSelection(this.props);\r\n }\r\n\r\n get isLcl(): boolean {\r\n return this.props.match.path.includes('/lcl/');\r\n }\r\n\r\n get mustReload(): boolean {\r\n return this.props.selection.criteriaLoaded \r\n && hasDiffSearchCriteria(this.props.criteria.criteria, this.props.selection.criteriaLoaded);\r\n }\r\n\r\n public render() {\r\n return
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n {this.mustReload &&
\r\n \r\n
{getText(\"SlcCrtReloadRequired\")}
\r\n
}\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n this.props.closeEmailAskRates()}\r\n isOpen={this.props.askRatesByEmailIsOpen}>\r\n \r\n \r\n this.props.closeAskRates()}\r\n isOpen={this.props.askRatesIsOpen}>\r\n \r\n \r\n this.props.closeAskBooking()}\r\n isOpen={this.props.askBookingIsOpen}>\r\n \r\n \r\n this.props.toggleAskBookingByEmailOpen(false)}\r\n isOpen={this.props.askBookingByEmailIsOpen}>\r\n \r\n \r\n this.props.closeTransferData()}\r\n isOpen={this.props.transferIsOpen}>\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n }\r\n}\r\n\r\nexport default connect((state: ApplicationState) => {\r\n let filterOptions = SelectionConnect.getFilterOptions(state);\r\n let carrierGroupedResult = SelectionConnect.getGroupedCarrierOffers(state);\r\n\r\n return {\r\n carrierOffersGrouped: carrierGroupedResult,\r\n selection: state.selection,\r\n criteria: state.criteria,\r\n filterOptions: filterOptions,\r\n multiPortIsVisible: state.multiPort.isVisible,\r\n askRatesIsOpen: state.askRates.isOpen,\r\n askRatesByEmailIsOpen: state.askRates.emailIsOpen,\r\n askBookingIsOpen: state.askBooking.isOpen,\r\n askBookingByEmailIsOpen: state.askBooking.isAskByEmailOpen,\r\n transferIsOpen: state.transfer.isOpen,\r\n hasExportParameters: state.account.currentUser\r\n && state.account.currentUser.clientModel.subscriptions.some(x => x.hasExportParameters),\r\n hasTmsSettings: state.account.currentUser\r\n && state.account.currentUser.clientModel.subscriptions.some(x => x.hasTmsSettings),\r\n } as any\r\n}, {\r\n ...SelectionStore.actionCreators,\r\n ...AskBookingStore.actionCreators,\r\n ...AskRatesStore.actionCreators,\r\n ...TransferStore.actionCreators,\r\n ...ContactBoxStore.actionCreators,\r\n})(Selection) as any\r\n","import * as React from 'react';\r\nimport { RouteComponentProps } from 'react-router';\r\nimport { connect } from 'react-redux';\r\nimport { ApplicationState } from '../store';\r\nimport * as Api from '../api/api';\r\nimport * as CriteriaState from '../store/Criteria';\r\nimport * as SelectionStore from '../store/Selection';\r\nimport CriteriaForm from '../components/CriteriaForm';\r\nimport { getText } from \"../utils/langTexts\";\r\nimport * as Colors from \"../styles/colors\";\r\nimport { getSubscription } from '../utils/utils';\r\nimport _ from 'lodash';\r\n\r\n// At runtime, Redux will merge together...\r\ntype CriteriaProps =\r\n CriteriaState.CriteriaState // ... state we've requested from the Redux store\r\n & CriteriaOwnProps\r\n & typeof CriteriaState.actionCreators // ... plus action creators we've requested\r\n & typeof SelectionStore.actionCreators\r\n & RouteComponentProps<{ code: string }>; // ... plus incoming routing parameters \r\n\r\ninterface CriteriaOwnProps {\r\n client: Api.ClientModel;\r\n sizeTypes: { [id: number]: Api.SizeTypeModel };\r\n subscription: Api.SubscriptionModel;\r\n}\r\n\r\n\r\nexport const containerTypeOptions = (): Array<{ label: string; value: Api.CriteriaModelContainerTypeEnum }> => [\r\n { label: getText(\"GenCtrDry\"), value: \"Dry\" },\r\n { label: getText(\"GenCtrRefeer\"), value: \"Rf\" },\r\n { label: getText(\"GenCtrFlat\"), value: \"Fl\" },\r\n { label: getText(\"GenCtrOpenTop\"), value: \"Ot\" },\r\n { label: getText(\"GenCtrTankTop\"), value: \"Tk\" }\r\n];\r\n\r\nconst isSameFavCriteria = (a: Api.CriteriaModel, b: Api.CriteriaModel) => {\r\n return a && b && a.origin && b.origin\r\n && a.criteriaSizeTypes\r\n && b.criteriaSizeTypes\r\n && a.loadingCharge === b.loadingCharge\r\n && a.unLoadingCharge === b.unLoadingCharge\r\n && a.origin.locationId === b.origin.locationId\r\n && a.destination.locationId === b.destination.locationId\r\n && _.sortBy(a.criteriaSizeTypes, x => x.sizeTypeId)\r\n .filter(x => x.number > 0)\r\n .map(x => `${x.sizeTypeId}|${x.number}`)\r\n .join(\"|\") === _.sortBy(b.criteriaSizeTypes, x => x.sizeTypeId)\r\n .filter(x => x.number > 0)\r\n .map(x => `${x.sizeTypeId}|${x.number}`)\r\n .join(\"|\")\r\n}\r\n\r\nclass Criteria extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n }\r\n\r\n onPropsUpdate(props: CriteriaProps) {\r\n let code = this.props.match ? this.props.match.params.code : '';\r\n if (code)\r\n this.props.requestCriteria(code, new Date().getTime());\r\n }\r\n\r\n componentDidMount() {\r\n // This method runs when the component is first added to the page\r\n this.onPropsUpdate(this.props);\r\n this.props.requestRecentCriteria(new Date().getTime());\r\n }\r\n\r\n componentWillReceiveProps(nextProps: CriteriaProps) {\r\n // This method runs when incoming props (e.g., route params) change\r\n if (this.props.match.params.code !== nextProps.match.params.code)\r\n this.onPropsUpdate(nextProps);\r\n }\r\n\r\n criteriaGo(): Promise {\r\n this.props.toggleAdvCriteria(false); //Close adv options on selection page\r\n let promise = (this.props.requestCreateCriteria(new Date().getTime()) as any) as Promise;\r\n return promise.then((criteria) => {\r\n this.props.setCriteria(criteria);\r\n return this.props.criteriaGo();\r\n });\r\n }\r\n\r\n doWithoutPropagation(e: any, action: () => void): void {\r\n action();\r\n e.stopPropagation();\r\n e.nativeEvent.stopImmediatePropagation();\r\n }\r\n\r\n public render() {\r\n return
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
Favorite search
\r\n {this.props.recentCriteriaState.criterias.map(criteria => {\r\n return
\r\n {
{\r\n this.props.setCriteriaRecent(criteria);\r\n }}>\r\n
{criteria.origin.name} > {criteria.destination.name}
\r\n
\r\n {criteria.criteriaSizeTypes\r\n .filter(x => x.number > 0)\r\n .map(x => `${x.number}x ${this.props.sizeTypes[x.sizeTypeId].name}`).join(' + ')}\r\n
\r\n
\r\n {(criteria.loadingCharge || criteria.unLoadingCharge) && \"+ \"}\r\n {criteria.loadingCharge && \"Origin \"}\r\n {criteria.loadingCharge && criteria.unLoadingCharge && \"and \"}\r\n {criteria.unLoadingCharge && \"Destination \"}\r\n {(criteria.loadingCharge || criteria.unLoadingCharge) && \"charges\"}\r\n
\r\n
}\r\n
\r\n })}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {(this.props.subscription && this.props.subscription.subscriptionType === \"Agent\") && \r\n BETA\r\n
}\r\n {\r\n if(this.props.isLoading) {\r\n return Promise.resolve();\r\n }\r\n this.props.setCriteria(values);\r\n return this.criteriaGo();\r\n }}\r\n resetCriteria={() => this.props.resetCriteria()}\r\n advContainerOpened={this.props.advContainerOpened}\r\n advDateOpened={this.props.advDateOpened}\r\n advLocationOpened={this.props.advLocationOpened}\r\n toggleAdvContainer={(value) => this.props.toggleAdvContainer(value)}\r\n toggleAdvDate={(value) => this.props.toggleAdvDate(value)}\r\n toggleAdvLocation={(value) => this.props.toggleAdvLocation(value)} />\r\n
\r\n
\r\n
\r\n
;\r\n }\r\n }\r\n\r\n export default connect(\r\n (state: ApplicationState) => {\r\n return {\r\n ...state.criteria,\r\n client: state.account.currentUser.clientModel,\r\n sizeTypes: state.seed.sizeTypes,\r\n subscription: getSubscription(state.account.currentUser.clientModel)\r\n || { subscriptionType: null }\r\n } as any\r\n },\r\n {\r\n ...SelectionStore.actionCreators,\r\n ...CriteriaState.actionCreators\r\n })\r\n (Criteria) as any","import * as React from 'react';\r\nimport { RouteComponentProps } from 'react-router';\r\nimport { connect } from 'react-redux';\r\nimport { ApplicationState } from '../store';\r\nimport * as Api from '../api/api';\r\nimport * as CriteriaState from '../store/Criteria';\r\nimport CriteriaLclForm from '../components/CriteriaLclForm';\r\nimport { getSubscription } from '../utils/utils';\r\n\r\n// At runtime, Redux will merge together...\r\ntype CriteriaLclProps =\r\n CriteriaState.CriteriaState // ... state we've requested from the Redux store\r\n & CriteriaLclOwnProps\r\n & typeof CriteriaState.actionCreators // ... plus action creators we've requested\r\n & RouteComponentProps<{ code: string }>; // ... plus incoming routing parameters \r\n\r\ninterface CriteriaLclOwnProps {\r\n client: Api.ClientModel;\r\n subscription: Api.SubscriptionModel;\r\n}\r\n\r\nclass CriteriaLcl extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n }\r\n\r\n onPropsUpdate(props: CriteriaLclProps) {\r\n let code = this.props.match ? this.props.match.params.code : '';\r\n if (code)\r\n this.props.requestCriteria(code, new Date().getTime());\r\n }\r\n\r\n componentWillMount() {\r\n // This method runs when the component is first added to the page\r\n this.onPropsUpdate(this.props);\r\n }\r\n\r\n componentWillReceiveProps(nextProps: CriteriaLclProps) {\r\n // This method runs when incoming props (e.g., route params) change\r\n if (this.props.match.params.code !== nextProps.match.params.code)\r\n this.onPropsUpdate(nextProps);\r\n }\r\n\r\n criteriaGo(): Promise {\r\n let promise = (this.props.requestCreateCriteria(new Date().getTime()) as any) as Promise;\r\n return promise.then((criteria) => {\r\n this.props.setCriteria(criteria);\r\n return this.props.criteriaGo();\r\n });\r\n }\r\n\r\n doWithoutPropagation(e: any, action: () => void): void {\r\n action();\r\n e.stopPropagation();\r\n e.nativeEvent.stopImmediatePropagation();\r\n }\r\n\r\n public render() {\r\n return (\r\n
\r\n
\r\n
LCL
\r\n
\r\n
\r\n
\r\n
\r\n {(this.props.subscription && this.props.subscription.subscriptionType === \"Agent\") && \r\n BETA\r\n
}\r\n {\r\n this.props.setCriteria(values);\r\n return this.criteriaGo();\r\n }}\r\n resetCriteria={() => this.props.resetCriteria()}\r\n advContainerOpened={this.props.advContainerOpened}\r\n advDateOpened={this.props.advDateOpened}\r\n advLocationOpened={this.props.advLocationOpened}\r\n toggleAdvContainer={(value) => this.props.toggleAdvContainer(value)}\r\n toggleAdvDate={(value) => this.props.toggleAdvDate(value)}\r\n toggleAdvLocation={(value) => this.props.toggleAdvLocation(value)} />\r\n
\r\n
\r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\nexport default connect(\r\n (state: ApplicationState) => {\r\n return {\r\n ...state.criteria,\r\n client: state.account.currentUser.clientModel,\r\n subscription: getSubscription(state.account.currentUser.clientModel)\r\n || { subscriptionType: null }\r\n } as any\r\n },\r\n CriteriaState.actionCreators)\r\n (CriteriaLcl) as any","import { CSSProperties } from \"react\";\r\nimport * as colors from \"./colors\";\r\nimport React from \"react\";\r\n\r\nexport const hFormStyle: CSSProperties = {\r\n display: \"flex\",\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n columnGap: 9\r\n};\r\n\r\nexport const vFormStyle: CSSProperties = {\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n alignItems: \"flex-start\",\r\n rowGap: 9\r\n};\r\n\r\nexport const hFieldStyle: CSSProperties = {\r\n display: \"flex\",\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n columnGap: 9\r\n};\r\n\r\nexport const vFieldStyle: CSSProperties = {\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n alignItems: \"flex-start\",\r\n rowGap: 9\r\n};\r\n\r\nexport const hLabelStyle: CSSProperties = {\r\n flex: \"0 0 auto\",\r\n textAlign: \"right\",\r\n minWidth: 200\r\n};\r\nexport const hInputStyle: CSSProperties = {\r\n flex: \"1\"\r\n};\r\n\r\nexport const pageStyle: React.CSSProperties = { padding: \"calc(1vw + 10px) calc(2vw + 20px)\", boxSizing: \"border-box\" };\r\n\r\nexport const linkStyle: React.CSSProperties = { textDecoration: \"none\", color: \"inherit\", cursor: \"pointer\" };\r\nexport const activeLinkStyle: React.CSSProperties = { ...linkStyle, fontWeight: \"bold\" };\r\n\r\nexport const titleStyle: React.CSSProperties = { fontWeight: \"bold\", fontSize: \"calc(1.5vw + 15px)\" };\r\nexport const smTitleStyle: React.CSSProperties = { fontWeight: \"bold\", fontSize: \"calc(1vw + 10px)\" };\r\n\r\nexport const labelStyle: React.CSSProperties = { fontSize: \"calc(0.8vw + 10px)\", textAlign: \"right\" };\r\nexport const smLabelStyle: React.CSSProperties = { ...labelStyle, fontSize: \"calc(0.5vw + 5px)\" };\r\n\r\nexport const valueStyle: React.CSSProperties = { fontSize: \"calc(0.8vw + 10px)\" };\r\nexport const smValueStyle: React.CSSProperties = { ...valueStyle, fontSize: \"calc(0.5vw + 5px)\" };\r\n\r\nexport const inputStyle: React.CSSProperties = { padding: \"0.2vw 0.4vw\", fontSize: \"calc(0.6vw + 8px)\", border: \"1px solid\", borderRadius: \"4px\" };\r\nexport const smInputStyle: React.CSSProperties = { ...inputStyle, padding: \"0.15vw 0.25vw\", fontSize: \"calc(0.4vw + 6px)\" };\r\n\r\nexport const buttonStyle: React.CSSProperties = { cursor: \"pointer\", fontSize: \"calc(0.6vw + 8px)\", padding: \"0.2vw 0.4vw\", };\r\nexport const smButtonStyle: React.CSSProperties = { cursor: \"pointer\", fontSize: \"calc(0.4vw + 6px)\", padding: \"0.15vw 0.25vw\", };\r\n\r\nexport const textareaStyle: React.CSSProperties = { };\r\nexport const errorStyle: React.CSSProperties = { color: \"darkred\" };","import * as Api from '../api/api';\r\nimport * as React from 'react';\r\nimport * as ReduxForm from 'redux-form';\r\nimport * as FormField from './FormField';\r\nimport { getText } from \"../utils/langTexts\";\r\nimport Button from './Button';\r\nimport { NavLink } from 'react-router-dom';\r\nimport * as Colors from '../styles/colors';\r\nimport * as BaseStyles from '../styles/baseStyles';\r\n\r\ntype LoginFormProps = ReduxForm.InjectedFormProps\r\n & LoginFormOwnProps\r\n & LoginFormExternalProps;\r\n\r\ninterface LoginFormOwnProps {\r\n}\r\ninterface LoginFormExternalProps {\r\n onSubmit: (values: Api.LoginModel) => any;\r\n}\r\ninterface LoginFormState {\r\n hoverState: boolean;\r\n}\r\nvar ForgotPasswordStyle = {\r\n fontSize: 13,\r\n paddingLeft: 8,\r\n marginTop: 6,\r\n textDecoration: \"underline\",\r\n};\r\n\r\nclass LoginForm extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n hoverState: false\r\n }\r\n }\r\n Mouseover() {\r\n this.setState({ hoverState: true })\r\n }\r\n Mouseout() {\r\n this.setState({ hoverState: false })\r\n }\r\n public render() {\r\n return (\r\n \r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n\r\n \r\n { this.Mouseover() }} onMouseOut={(e) => { this.Mouseout() }} style={{ ...ForgotPasswordStyle, color: this.state.hoverState == true ? Colors.baseColors.lightBlue : Colors.baseColors.darkGray }}>\r\n {getText(\"LogForgotPassword\")}\r\n \r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\nexport default ReduxForm.reduxForm({\r\n form: 'login',\r\n})(LoginForm) as any as React.ComponentClass;\r\n","import * as React from 'react';\r\nimport * as Api from '../api/api';\r\nimport * as AccountState from '../store/Account';\r\nimport * as DocumentStore from '../store/Document';\r\nimport { RouteComponentProps } from 'react-router';\r\nimport { connect } from 'react-redux';\r\nimport { ApplicationState } from '../store';\r\nimport LoginForm from './LoginForm';\r\nimport { getText } from '../utils/langTexts';\r\n\r\ntype LoginProps =\r\n LoginOwnProps\r\n & AccountState.AccountState\r\n & typeof AccountState.actionCreators\r\n & typeof DocumentStore.actionCreators\r\n & RouteComponentProps<{ redirect: string }>;\r\n\r\ninterface LoginOwnProps {\r\n languages: { [id: number]: Api.LanguageModel };\r\n}\r\n\r\ninterface LoginState {\r\n}\r\n\r\nclass Login extends React.Component {\r\n\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n };\r\n }\r\n\r\n componentWillMount() {\r\n\r\n }\r\n\r\n componentWillReceiveProps(nextProps: LoginProps) {\r\n\r\n }\r\n\r\n public render() {\r\n return
\r\n
\r\n \r\n
\r\n
\r\n this.props.requestLogin(\r\n values as Api.LoginModel,\r\n this.props.match.params.redirect,\r\n new Date().getTime())} />\r\n
\r\n
\r\n
{\r\n this.props.downloadTos(new Date().getTime(),\r\n this.props.languages[this.props.languageId]\r\n ? this.props.languages[this.props.languageId].code\r\n : \"en\")\r\n }}>{getText(\"LogTermsAndConditions\") + \" | Copyright\"}
\r\n
\r\n
\r\n }\r\n}\r\n\r\nexport default connect(\r\n (state: ApplicationState) => ({\r\n ...state.account,\r\n languages: state.seed.languages\r\n } as any),\r\n { ...AccountState.actionCreators, ...DocumentStore.actionCreators }\r\n)(Login) as any;","import * as React from 'react';\r\nimport * as ReduxForm from 'redux-form';\r\nimport Select from './Select';\r\nimport { connect } from 'react-redux';\r\nimport * as Api from '../api/api';\r\nimport { ApplicationState } from '../store';\r\nimport * as FormField from './FormField';\r\nimport { getSubscriptionName, getSubscription } from '../utils/utils';\r\nimport { getText } from \"../utils/langTexts\";\r\nimport { canUseSuggested, canUseCarrierRates } from '../security/userRights';\r\nimport * as Colors from \"../styles/colors\";\r\nimport Input from './InputText';\r\nimport ReplayRoundedIcon from '@material-ui/icons/ReplayRounded';\r\n\r\n\r\ntype EditAccountFormProps = ReduxForm.InjectedFormProps<{}, {}, string> & EditAccountFormOwnProps;\r\n\r\ninterface EditAccountFormOwnProps {\r\n initialValues: Api.ClientModel;\r\n subscription: Api.SubscriptionModel;\r\n handleSubmit: (values: any) => void;\r\n reset: () => void;\r\n pristine: boolean;\r\n submitting: boolean;\r\n}\r\n\r\nconst defaultLoadingField = () => FormField.checkBoxField(getText(\"StgAccountDefLoading\"));\r\nconst defaultUnLoadingField = () => FormField.checkBoxField(getText(\"StgAccountDefUnLoading\"));\r\nconst defaultMultiPortsField = () => FormField.checkBoxField(getText(\"StgAccountDefMultiPort\"));\r\nconst defaultSuggestedField = () => FormField.checkBoxField(getText(\"StgAccountDefSuggested\"));\r\nconst defaultContainerPriceField = () => FormField.checkBoxField(getText(\"StgAccountDefPriceByCtr\"));\r\nconst defaultAllMarketsField = () => FormField.checkBoxField(getText(\"StgAccountDefAllMarkets\"));\r\nconst defaultCarrierRates = () => FormField.checkBoxField(getText(\"StgAccountDefCarrierRates\"));\r\nconst defaultFreeTime= () => FormField.checkBoxField(getText(\"StgAccountDefFreetime\"));\r\n\r\nconst inputStyle = {\r\n width: \"400px\",\r\n} as React.CSSProperties;\r\n\r\nconst inputFormStyle = {\r\n width: \"398px\",\r\n height: \"42px\",\r\n border: `1px solid ${Colors.baseColors.darkGray}`,\r\n borderRadius: \"8px\",\r\n color: Colors.baseColors.darkGray,\r\n} as React.CSSProperties;\r\n\r\nconst containerStyle = {\r\n display: \"flex\",\r\n flexDirection: \"row\",\r\n paddingBottom: 15,\r\n} as React.CSSProperties;\r\n\r\nconst labelStyle = {\r\n width: \"200px\",\r\n paddingRight: \"30px\",\r\n paddingLeft: \"30px\",\r\n textAlign: \"right\",\r\n marginTop: \"auto\",\r\n marginBottom: \"auto\",\r\n} as React.CSSProperties;\r\n\r\n\r\nconst undoButtonStyle = {\r\n border: \"none\",\r\n backgroundColor: \"white\",\r\n} as React.CSSProperties;\r\n\r\nconst saveButtonStyle = {\r\n borderRadius: \"8px\",\r\n color: Colors.baseColors.lightBlue,\r\n fontWeight: \"bold\",\r\n border: `2px solid ${Colors.baseColors.darkGray}`,\r\n backgroundColor: \"white\",\r\n} as React.CSSProperties;\r\n\r\n\r\n//My search settings\r\n\r\nconst labelOnCaseStyle = {\r\n width: \"190px\",\r\n} as React.CSSProperties;\r\n\r\nconst containerCaseStyle = {\r\n marginLeft: \"auto\",\r\n marginRight: \"100px\",\r\n height: 65,\r\n textAlign: \"right\",\r\n} as React.CSSProperties;\r\n\r\nclass AccountEditForm extends React.Component {\r\n public render() {\r\n return (\r\n \r\n
\r\n {this.props.error && {this.props.error}}\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n (\r\n
\r\n ({\r\n label: getSubscriptionName(su),\r\n value: su.subscriptionId\r\n }))}\r\n value={field.input.value}\r\n onChange={(value) => field.input.onChange(value)}\r\n />\r\n
\r\n )}\r\n type=\"text\" />\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n {canUseSuggested(this.props.subscription)\r\n &&
\r\n \r\n
\r\n \r\n
\r\n
}\r\n {canUseCarrierRates(this.props.subscription)\r\n &&
\r\n \r\n
\r\n \r\n
\r\n
}\r\n
\r\n
\r\n { this.props.reset(); e.preventDefault(); }}\r\n disabled={this.props.pristine || this.props.submitting}>\r\n \r\n \r\n {getText(\"GenSaveChanges\")}\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n\r\n
\r\n );\r\n }\r\n}\r\n\r\nlet accountEditForm = ReduxForm.reduxForm({\r\n form: 'editAccount',\r\n enableReinitialize: true\r\n})(AccountEditForm);\r\n\r\nexport default connect((state: ApplicationState) =>\r\n ({\r\n initialValues: state.account.currentUser.clientModel,\r\n subscription: getSubscription(state.account.currentUser.clientModel)\r\n }))(accountEditForm) as any","import * as React from 'react';\r\nimport * as Colors from '../styles/colors';\r\nimport Eye from '@material-ui/icons/Visibility';\r\nimport Closedeye from '@material-ui/icons/VisibilityOff';\r\n\r\nconst showPassword = {\r\n position: \"relative\",\r\n right: \"1.5em\",\r\n top: \"8px\",\r\n color: Colors.baseColors.lightBlue,\r\n cursor: \"pointer\",\r\n} as React.CSSProperties;\r\n\r\ntype Props = {\r\n IsVisible: boolean;\r\n style?: React.CSSProperties;\r\n}\r\n\r\nexport default class extends React.Component {\r\n public constructor(props) {\r\n super(props);\r\n this.state = {\r\n style: showPassword\r\n };\r\n }\r\n public render() {\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n );\r\n }\r\n}","import * as React from 'react';\r\nimport * as ReduxForm from 'redux-form';\r\nimport * as Api from '../api/api';\r\nimport * as FormField from './FormField';\r\nimport * as Colors from \"../styles/colors\";\r\nimport { getText } from \"../utils/langTexts\";\r\nimport PasswordToggle from './PasswordToggle';\r\n\r\ntype EditAccountFormProps = ReduxForm.InjectedFormProps<{}, {}, string> & EditAccountFormOwnProps;\r\n\r\ninterface EditAccountFormOwnProps {\r\n handleSubmit: (values: any) => void;\r\n submitting: boolean;\r\n}\r\n\r\nconst passwordLength = 6;\r\nconst minPasswordLength = FormField.minLength(passwordLength);\r\nconst passwordConfMatch = (value, allValues) => {\r\n return (allValues as Api.EditPasswordModel).newPassword !== value\r\n ? \"Password and confirmation must match\"\r\n : null;\r\n};\r\nconst labelStyle = {\r\n width: \"200px\",\r\n paddingTop: \"8px\",\r\n paddingLeft: \"6px\",\r\n} as React.CSSProperties;\r\n\r\nconst containerStyle = {\r\n display: \"flex\",\r\n flexDirection: \"row\",\r\n paddingBottom: \"20px\",\r\n} as React.CSSProperties;\r\n\r\nconst inputFormStyle = {\r\n width: \"400px\",\r\n height: \"42px\",\r\n border: `1px solid ${Colors.baseColors.darkGray}`,\r\n borderRadius: \"8px\",\r\n color: Colors.baseColors.darkGray,\r\n} as React.CSSProperties;\r\n\r\nconst saveButtonStyle = {\r\n borderRadius: \"8px\",\r\n color: Colors.baseColors.lightBlue,\r\n fontWeight: \"bold\",\r\n border: `2px solid ${Colors.baseColors.darkGray}`,\r\n backgroundColor: \"white\",\r\n position: \"absolute\",\r\n right: 0,\r\n top: 5,\r\n} as React.CSSProperties;\r\n\r\n\r\n\r\ninterface IPasswordToggle {\r\n OldisVisible: boolean;\r\n NewisVisible: boolean;\r\n ConfirmationisVisible: boolean;\r\n}\r\n\r\nclass AccountEditPasswordForm extends React.Component {\r\n constructor(props: EditAccountFormProps) {\r\n super(props);\r\n this.state = {\r\n OldisVisible: false,\r\n NewisVisible: false,\r\n ConfirmationisVisible: false\r\n };\r\n }\r\n public render() {\r\n return (\r\n \r\n
\r\n {this.props.error && {this.props.error}}\r\n
\r\n
\r\n \r\n \r\n { this.setState({ OldisVisible: !this.state.OldisVisible }) }}>\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n
{ this.setState({ NewisVisible: !this.state.NewisVisible }) }}>\r\n \r\n
\r\n
\r\n
\r\n \r\n \r\n
{ this.setState({ ConfirmationisVisible: !this.state.ConfirmationisVisible }) }}>\r\n \r\n
\r\n
\r\n
\r\n
\r\n {\r\n this.setState({\r\n OldisVisible: false,\r\n NewisVisible: false,\r\n ConfirmationisVisible: false\r\n })\r\n }}>\r\n {getText(\"StgChangePasswordGo\")}\r\n \r\n
\r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\nexport default ReduxForm.reduxForm({ form: 'editPassword' })(AccountEditPasswordForm) as any;\r\n","import * as React from 'react';\r\nimport * as ReduxForm from 'redux-form';\r\nimport { connect } from 'react-redux';\r\nimport * as Api from '../api/api';\r\nimport { ApplicationState } from '../store';\r\nimport * as FormField from './FormField';\r\nimport * as Colors from \"../styles/colors\";\r\nimport { getText } from \"../utils/langTexts\";\r\nimport ReplayRoundedIcon from '@material-ui/icons/ReplayRounded';\r\nimport { contactTypeOptions, incotermOptions } from './QuotationInformationForm';\r\n\r\ntype AccountEditQuotationClientFormProps = ReduxForm.InjectedFormProps<{}, {}, string>\r\n & AccountEditQuotationClientFormOwnProps;\r\n\r\ninterface AccountEditQuotationClientFormOwnProps {\r\n}\r\n\r\nconst labelStyle = {\r\n width: \"200px\",\r\n paddingRight: \"30px\",\r\n paddingLeft: \"30px\",\r\n textAlign: \"right\",\r\n marginTop: \"auto\",\r\n marginBottom: \"auto\",\r\n} as React.CSSProperties;\r\n\r\nconst containerStyle = {\r\n display: \"flex\",\r\n flexDirection: \"row\",\r\n} as React.CSSProperties;\r\n\r\nconst inputFormStyle = {\r\n width: \"400px\",\r\n height: \"42px\",\r\n border: `1px solid ${Colors.baseColors.darkGray}`,\r\n borderRadius: \"8px\",\r\n color: Colors.baseColors.darkGray,\r\n} as React.CSSProperties;\r\n\r\nconst saveButtonStyle = {\r\n borderRadius: \"8px\",\r\n color: Colors.baseColors.lightBlue,\r\n fontWeight: \"bold\",\r\n border: `2px solid ${Colors.baseColors.darkGray}`,\r\n backgroundColor: \"white\",\r\n position: \"absolute\",\r\n right: 0,\r\n} as React.CSSProperties;\r\n\r\nconst checkCaseStyle = {\r\n paddignLeft: \"200px\",\r\n height: 50\r\n} as React.CSSProperties;\r\n\r\nconst undoButtonStyle = {\r\n border: \"none\",\r\n backgroundColor: \"white\",\r\n} as React.CSSProperties;\r\n\r\nclass AccountEditQuotationClientForm extends React.Component {\r\n public render() {\r\n return (\r\n \r\n
\r\n {this.props.error && {this.props.error}}\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n { this.props.reset(); e.preventDefault(); }}\r\n disabled={this.props.pristine || this.props.submitting}>\r\n \r\n \r\n {getText(\"StgQuotationSettingsGo\")}\r\n\r\n
\r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\nlet form = ReduxForm.reduxForm({\r\n form: 'editQuotationClientForm',\r\n enableReinitialize: true\r\n})(AccountEditQuotationClientForm) as any;\r\n\r\nexport default connect((state: ApplicationState) => ({\r\n initialValues: state.account.currentUser\r\n && state.account.currentUser.clientModel.quotationClientSettings\r\n ? state.account.currentUser.clientModel.quotationClientSettings\r\n : {\r\n clientType: \"None\",\r\n hideIncluded: false,\r\n showCarrier: false\r\n } as Api.QuotationClientSettingsModel,\r\n}))(form) as any as React.ComponentClass<{ onSubmit: (value: Api.QuotationClientSettingsModel) => any }>\r\n","import * as React from 'react';\r\nimport { connect } from 'react-redux';\r\nimport * as Api from '../api/api';\r\nimport * as QuotationContactStore from '../store/QuotationContact';\r\nimport * as AccountStore from '../store/Account';\r\nimport { RouteComponentProps } from 'react-router';\r\nimport { ApplicationState } from '../store';\r\nimport AccountEditFrom from './AccountEditForm';\r\nimport AccountEditPasswordForm from './AccountEditPasswordForm';\r\nimport AccountEditQuotationClientSettingsForm from \"./AccountEditQuotationClientSettingsForm\";\r\nimport QuotationClientContactDialog from \"./QuotationClientContactDialog\";\r\nimport { getText } from '../utils/langTexts';\r\n\r\ntype AccountSettingsProps = AccountSettingsOwnProps\r\n & AccountStore.AccountState\r\n & typeof QuotationContactStore.actionCreators\r\n & typeof AccountStore.actionCreators\r\n & RouteComponentProps;\r\n\r\ninterface AccountSettingsOwnProps {\r\n quotationContact: QuotationContactStore.QuotationContactState;\r\n}\r\n\r\ninterface AccountSettingsParams {\r\n\r\n}\r\n\r\n\r\ninterface AccountSettingsState {\r\n\r\n}\r\n\r\nclass AccountSettings extends React.Component {\r\n componentWillMount() {\r\n this.props.requestQuotationContacts(new Date().getTime());\r\n }\r\n\r\n public render() {\r\n return (\r\n
\r\n
\r\n
\r\n

{getText(\"StgEditProfile\")}

\r\n
\r\n \r\n this.props.requestEditClient(values as Api.ClientModel, new Date().getTime())} />\r\n
\r\n
\r\n
\r\n
\r\n

{getText(\"StgChangePassword\")}

\r\n \r\n this.props.requestEditPassword(values as Api.EditPasswordModel, new Date().getTime())} />\r\n
\r\n
\r\n

{getText(\"StgEditQuotationClientSettings\")}

\r\n
\r\n
Contacts:
\r\n
\r\n this.props.requestEditQuotationClientSettings(new Date().getTime(), value)} />\r\n
\r\n
\r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\nexport default connect((state: ApplicationState) => {\r\n return {\r\n ...state.account,\r\n quotationContact: state.quotationContact\r\n } as any\r\n}, {\r\n ...AccountStore.actionCreators,\r\n ...QuotationContactStore.actionCreators\r\n})(AccountSettings) as any;","import { addTask } from \"../utils/bugFixer\";\r\nimport { Action, Reducer } from 'redux';\r\nimport * as Api from '../api/api';\r\nimport { AppThunkAction } from './';\r\nimport { getDefaultHeaders } from '../utils/utils';\r\nimport * as Notifications from 'react-notification-system-redux';\r\nimport { SubmissionError } from 'redux-form';\r\nimport { Logout } from './Account';\r\n\r\nexport interface RatesOfferState {\r\n isLoading: boolean;\r\n requestTime: number;\r\n searchRatesOffersModel: Api.SearchRatesOffersModel;\r\n ratesOffers: Array;\r\n editState: EditRatesOfferState;\r\n ratesOffersByTerm: RatesOfferByTermState;\r\n}\r\n\r\nexport interface RatesOfferByTermState {\r\n [key: string]: {\r\n isLoading: boolean;\r\n requestTime ?: number;\r\n term: string;\r\n ratesOffers: Array;\r\n }\r\n}\r\n\r\nexport interface EditRatesOfferState {\r\n ratesOfferId?: number;\r\n isLoading: boolean;\r\n requestTime: number;\r\n}\r\n\r\ninterface RatesOffersSelectCarrier { type: \"RATESOFFERS_SELECT_CARRIER\"; carrierId: number; }\r\ninterface RatesOffersUpdateSearchTerm { type: \"RATESOFFERS_UPDATE_SEARCH_TERM\"; value: string; }\r\n\r\ninterface RequestRatesOffers { type: \"REQUEST_RATESOFFERS\"; payload: { requestTime: number; } }\r\ninterface ReceiveRatesOffers { type: \"RECEIVE_RATESOFFERS\"; payload: { requestTime: number; ratesOffers: Array }; error?: any }\r\n\r\ninterface SelectRatesOffer { type: \"SELECT_RATESOFFER\"; ratesOfferId: number }\r\n\r\ninterface RequestEditRatesOffer { type: \"REQUEST_EDIT_RATESOFFER\"; payload: { requestTime: number; } }\r\ninterface ReceiveEditRatesOffer { type: \"RECEIVE_EDIT_RATESOFFER\"; payload: { requestTime: number; ratesOffer: Api.RatesOfferModel }; error?: any }\r\n\r\ninterface RequestSearchRatesOffer {\r\n type: \"REQUEST_SEARCH_RATESOFFER\";\r\n payload: { key: string; requestTime: number; }\r\n}\r\ninterface ReceiveSearchRatesOffer {\r\n type: \"RECEIVE_SEARCH_RATESOFFER\";\r\n payload: { key: string; requestTime: number; ratesOffers?: Array; };\r\n error?: any;\r\n}\r\ninterface UpdateSearchRatesOfferTerm {\r\n type: \"UPDATE_SEARCH_RATESOFFER_TERM\";\r\n payload: { key: string; value: string; };\r\n}\r\ninterface EmptySearchRatesOfferTerm {\r\n type: \"EMPTY_SEARCH_RATESOFFER\";\r\n payload: { key: string; };\r\n}\r\n\r\ntype KnownAction = RatesOffersSelectCarrier | RatesOffersUpdateSearchTerm\r\n | RequestRatesOffers | ReceiveRatesOffers | SelectRatesOffer\r\n | RequestEditRatesOffer | ReceiveEditRatesOffer\r\n | RequestSearchRatesOffer | ReceiveSearchRatesOffer\r\n | UpdateSearchRatesOfferTerm\r\n | EmptySearchRatesOfferTerm\r\n | Logout;\r\n\r\n\r\nexport const actionCreators = {\r\n requestRatesOffers: (requestTime: number): AppThunkAction => (dispatch, getState) => {\r\n if (requestTime === getState().ratesOffer.requestTime)\r\n return;\r\n\r\n let api = new Api.ModeratorApi();\r\n let fetchTask = api.searchRatesOffers({\r\n model: getState().ratesOffer.searchRatesOffersModel\r\n }, { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(ratesOffers => {\r\n dispatch({ type: \"RECEIVE_RATESOFFERS\", payload: { requestTime: requestTime, ratesOffers: ratesOffers } });\r\n }).catch(error => {\r\n console.log('Error: ' + error.message);\r\n dispatch(Notifications.error({ message: \"Error searching rates information\", title: \"Error\", position: \"tc\" }) as any);\r\n dispatch({ type: \"RECEIVE_RATESOFFERS\", payload: { requestTime: requestTime, ratesOffers: [] }, error: error });\r\n });\r\n addTask(fetchTask);\r\n dispatch({ type: \"REQUEST_RATESOFFERS\", payload: { requestTime: requestTime } });\r\n },\r\n requestEditRatesOffer: (requestTime: number, ratesOffer: Api.RatesOfferModel): AppThunkAction> => (dispatch, getState) => {\r\n if (requestTime === getState().ratesOffer.editState.requestTime)\r\n return Promise.resolve();\r\n\r\n let api = new Api.ModeratorApi();\r\n let fetchTask = api.editRatesOffer({ model: ratesOffer },\r\n { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(ratesOfferResult => {\r\n dispatch({ type: \"RECEIVE_EDIT_RATESOFFER\", payload: { requestTime: requestTime, ratesOffer: ratesOfferResult } });\r\n dispatch(Notifications.success({ message: \"Your rates information have been updated\", title: \"Success\", position: \"tc\" }) as any);\r\n }).catch(error => {\r\n dispatch({ type: \"RECEIVE_EDIT_RATESOFFER\", payload: { requestTime: requestTime, ratesOffer: ratesOffer }, error: error });\r\n throw new SubmissionError({ _error: \"Failed to edit\" } as any)\r\n });\r\n\r\n addTask(fetchTask);\r\n dispatch({ type: \"REQUEST_EDIT_RATESOFFER\", payload: { requestTime: requestTime } });\r\n return fetchTask;\r\n },\r\n requestGetRatesOfferByTerm: (key:string, carrierId: number, requestTime: number): AppThunkAction> => (dispatch, getState) => {\r\n let api = new Api.RatesOfferApi();\r\n let fetchTask = api.getRatesOffersFromTerm({\r\n term: getState().ratesOffer.ratesOffersByTerm[key]\r\n ? getState().ratesOffer.ratesOffersByTerm[key].term\r\n : \"\",\r\n carrierId: carrierId\r\n }, { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(ratesOffers => {\r\n dispatch({\r\n type: \"RECEIVE_SEARCH_RATESOFFER\",\r\n payload: { key: key, requestTime: requestTime, ratesOffers: ratesOffers }\r\n });\r\n }).catch(error => {\r\n console.log('Error: ' + error.message);\r\n dispatch(Notifications.error({ message: \"Error searching rates information\", title: \"Error\", position: \"tc\" }) as any);\r\n dispatch({\r\n type: \"RECEIVE_SEARCH_RATESOFFER\",\r\n payload: { key: key, requestTime: requestTime }, error: error\r\n });\r\n });\r\n\r\n dispatch({ type: \"REQUEST_SEARCH_RATESOFFER\", payload: { key: key, requestTime: requestTime } });\r\n return fetchTask;\r\n },\r\n updatesearchRatesOfferTerm: (key: string, value: string) => {\r\n type: \"UPDATE_SEARCH_RATESOFFER_TERM\", payload: { key: key, value: value } },\r\n updateSearchTerm: (value: string) => { type: \"RATESOFFERS_UPDATE_SEARCH_TERM\", value: value },\r\n selectCarrierId: (carrierId: number) => { type: \"RATESOFFERS_SELECT_CARRIER\", carrierId: carrierId },\r\n selectRatesOffer: (ratesOfferId: number) => { type: \"SELECT_RATESOFFER\", ratesOfferId: ratesOfferId },\r\n emptySearchRatesOffer: (key: string) => { type: \"EMPTY_SEARCH_RATESOFFER\", payload: { key: key } },\r\n}\r\n\r\nconst unloadedState: RatesOfferState = {\r\n isLoading: false,\r\n requestTime: 0,\r\n ratesOffers: [],\r\n searchRatesOffersModel: {\r\n\r\n },\r\n editState: {\r\n isLoading: false,\r\n ratesOfferId: null,\r\n requestTime: 0\r\n },\r\n ratesOffersByTerm: {}\r\n};\r\n\r\n\r\nexport const reducer: Reducer = (state: RatesOfferState, incomingAction: Action) => {\r\n const action = incomingAction as KnownAction;\r\n switch (action.type) {\r\n case \"REQUEST_RATESOFFERS\":\r\n return {\r\n ...state,\r\n isLoading: true,\r\n requestTime: action.payload.requestTime,\r\n editState: {\r\n ...state.editState,\r\n //Don't wanna risk a null reference\r\n ratesOfferId: null\r\n }\r\n };\r\n case \"RECEIVE_RATESOFFERS\":\r\n if (action.payload.requestTime !== state.requestTime)\r\n return state;\r\n\r\n return {\r\n ...state,\r\n isLoading: false,\r\n ratesOffers: action.payload.ratesOffers\r\n };\r\n case \"RATESOFFERS_SELECT_CARRIER\":\r\n return {\r\n ...state,\r\n searchRatesOffersModel: {\r\n ...state.searchRatesOffersModel,\r\n carrierId: action.carrierId\r\n }\r\n };\r\n case \"RATESOFFERS_UPDATE_SEARCH_TERM\":\r\n return {\r\n ...state,\r\n searchRatesOffersModel: {\r\n ...state.searchRatesOffersModel,\r\n searchTerm: action.value\r\n }\r\n };\r\n case \"SELECT_RATESOFFER\":\r\n return {\r\n ...state,\r\n editState: {\r\n ...state.editState,\r\n ratesOfferId: action.ratesOfferId\r\n }\r\n };\r\n case \"REQUEST_EDIT_RATESOFFER\":\r\n return {\r\n ...state,\r\n editState: {\r\n ...state.editState,\r\n isLoading: true,\r\n requestTime: action.payload.requestTime\r\n }\r\n };\r\n case \"RECEIVE_EDIT_RATESOFFER\":\r\n return {\r\n ...state,\r\n ratesOffers: action.error\r\n ? state.ratesOffers\r\n : state.ratesOffers\r\n .map(ro => ro.ratesOfferId === action.payload.ratesOffer.ratesOfferId ? action.payload.ratesOffer : ro),\r\n editState: {\r\n ...state.editState,\r\n isLoading: action.payload.requestTime !== state.editState.requestTime\r\n }\r\n };\r\n case \"REQUEST_SEARCH_RATESOFFER\":\r\n return {\r\n ...state,\r\n ratesOffersByTerm: {\r\n ...state.ratesOffersByTerm,\r\n [action.payload.key]: {\r\n ...state.ratesOffersByTerm[action.payload.key],\r\n isLoading: true,\r\n requestTime: action.payload.requestTime\r\n }\r\n }\r\n };\r\n case \"RECEIVE_SEARCH_RATESOFFER\":\r\n if (!state.ratesOffersByTerm[action.payload.key]\r\n || state.ratesOffersByTerm[action.payload.key].requestTime != action.payload.requestTime)\r\n return state;\r\n\r\n return {\r\n ...state,\r\n ratesOffersByTerm: {\r\n ...state.ratesOffersByTerm,\r\n [action.payload.key]: {\r\n ...state.ratesOffersByTerm[action.payload.key],\r\n isLoading: false,\r\n ratesOffers: action.error\r\n ? (state.ratesOffersByTerm[action.payload.key]\r\n ? state.ratesOffersByTerm[action.payload.key].ratesOffers\r\n : [])\r\n : action.payload.ratesOffers\r\n }\r\n }\r\n };\r\n case \"UPDATE_SEARCH_RATESOFFER_TERM\":\r\n return {\r\n ...state,\r\n ratesOffersByTerm: {\r\n ...state.ratesOffersByTerm,\r\n [action.payload.key]: {\r\n ...state.ratesOffersByTerm[action.payload.key],\r\n term: action.payload.value\r\n }\r\n }\r\n };\r\n case \"EMPTY_SEARCH_RATESOFFER\":\r\n return {\r\n ...state,\r\n ratesOffersByTerm: {\r\n ...state.ratesOffersByTerm,\r\n [action.payload.key]: {\r\n ...state.ratesOffersByTerm[action.payload.key],\r\n ratesOffers: []\r\n }\r\n }\r\n };\r\n case \"LOGOUT\":\r\n return unloadedState;\r\n default:\r\n // The following line guarantees that every action in the KnownAction union has been covered by a case above\r\n const exhaustiveCheck: never = action;\r\n }\r\n\r\n // For unrecognized actions (or in cases where actions have no effect), must return the existing state\r\n // (or default initial state if none was supplied)\r\n return state || unloadedState;\r\n};\r\n","import * as React from 'react';\r\nimport * as ReduxForm from 'redux-form';\r\nimport { connect } from 'react-redux';\r\nimport * as Api from '../api/api';\r\nimport { ApplicationState } from '../store';\r\nimport * as FormField from './FormField';\r\nimport { getText } from '../utils/langTexts';\r\nimport * as Colors from \"../styles/colors\";\r\nimport Button from './Button';\r\nimport {hFieldStyle, vFormStyle} from \"../styles/baseStyles\";\r\n\r\ntype ModeratorRatesOfferEditFormProps = ReduxForm.InjectedFormProps<{}, {}, string>\r\n & ModeratorRatesOfferEditFormOwnProps\r\n & ModeratorRatesOfferEditFormExternalProps;\r\n\r\ninterface ModeratorRatesOfferEditFormOwnProps {\r\n initialValues: Api.RatesOfferModel;\r\n handleSubmit: (values: Api.RatesOfferModel) => void;\r\n carriers: { [id: number]: Api.CarrierModel };\r\n submitting: boolean;\r\n disabled?: boolean;\r\n}\r\ninterface ModeratorRatesOfferEditFormExternalProps {\r\n disabled?: boolean;\r\n onSubmit: (values: Api.RatesOfferModel) => Promise\r\n}\r\n\r\nconst textAreaField = FormField.textAreaField(4, 50);\r\n\r\n\r\nexport const infoLevelOptions: Array<{ label: string, value: Api.OfferInformationModelLevelEnum }> = [\r\n { label: \"Low\", value: \"Low\" }, { label: \"Normal\", value: \"Normal\" }, { label: \"High\", value: \"High\" }];\r\n\r\nconst labelStyle: React.CSSProperties = { display: \"block\", minWidth: 90 }\r\n\r\nclass ModeratorRatesOfferEditForm extends React.Component {\r\n public render() {\r\n return (\r\n \r\n
\r\n
\r\n {this.props.error && {this.props.error}}\r\n
\r\n
\r\n \r\n
\r\n this.props.carriers[c.carrierId].name).join(','))\r\n : \"\"}\r\n onChange={(e) => { }} />\r\n
\r\n
\r\n
\r\n \r\n
\r\n r.value).join(',') :\"\"}\r\n onChange={(e) => { }}/>\r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n {this.props.disabled ? (\r\n ) :\r\n ()\r\n }\r\n
\r\n
\r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\nlet ModeratorRatesOfferEditFormWrapped = ReduxForm.reduxForm({\r\n form: 'moderatorEditRatesOffers',\r\n enableReinitialize: true\r\n})(ModeratorRatesOfferEditForm) as any;\r\n\r\nexport default connect((state: ApplicationState) =>\r\n ({\r\n carriers: state.seed.carriers,\r\n initialValues: state.ratesOffer.editState.ratesOfferId\r\n ? state.ratesOffer.ratesOffers\r\n .find(ro => ro.ratesOfferId === state.ratesOffer.editState.ratesOfferId)\r\n : {}\r\n }))(ModeratorRatesOfferEditFormWrapped) as any as React.ComponentClass","import * as React from 'react';\r\nimport { baseColors } from '../styles/colors';\r\n\r\nexport const formContainerStyle = { maxWidth: 500, marginTop: 20 };\r\nexport const searchFieldStyle = { marginRight: \"1em\", display: \"flex\", flexDirection: \"row\", alignItems: \"center\" } as React.CSSProperties;\r\nexport const inputStyleModerator = { height: 30, backgroundColor: \"white\", marginBottom: 10, borderRadius: 5, borderColor: \"black\", borderWidth: 0.5, width: 250 };\r\nexport const labelStyle = { marginRight: \"8px\" }\r\nexport const searchContainerStyle = { marginBottom: 20 }\r\nexport const filterForm = { display: \"flex\", flexDirection: \"row\", alignItems: \"flex-start\" } as React.CSSProperties;\r\nexport const buttonStyle = { color: \"white\", backgroundColor: baseColors.lightBlue, marginRight: \"1em\" } as React.CSSProperties;\r\nexport const selectContainerStyle = { minWidth: 200, display: \"inline-block\" }\r\n","import * as React from 'react';\r\nimport Moment from 'moment';\r\nimport * as _ from 'lodash';\r\nimport { connect } from 'react-redux';\r\nimport * as Api from '../api/api';\r\nimport * as RatesOffer from '../store/RatesOffer';\r\nimport { ApplicationState } from '../store';\r\nimport ModeratorRatesOfferEditForm from \"./ModeratorRatesOfferEditForm\";\r\nimport Loader from './Loader';\r\nimport Table, { Column } from './Table';\r\nimport Select, { Option } from \"./Select\";\r\nimport * as Colors from \"../styles/colors\";\r\nimport { getText } from '../utils/langTexts';\r\nimport Button from './Button';\r\nimport { filterForm, searchFieldStyle, searchContainerStyle, formContainerStyle, inputStyleModerator, buttonStyle, selectContainerStyle } from '../styles/moderatorStyles';\r\n\r\ntype ModeratorRatesOfferProps = ModeratorRatesOfferOwnProps\r\n & RatesOffer.RatesOfferState\r\n & typeof RatesOffer.actionCreators;\r\n\r\ninterface ModeratorRatesOfferOwnProps {\r\n carriers: { [id: number]: Api.CarrierModel }\r\n}\r\n\r\nconst getColumns = (props: ModeratorRatesOfferProps): Array> => {\r\n return [\r\n {\r\n header: getText(\"MdtRatesInfoCarrier\"),\r\n id: 'carrier',\r\n accessor: (d: Api.RatesOfferModel) => (d.carriers.map(c => props.carriers[c.carrierId].name).join(',')),\r\n cell: (d: any) =>
\r\n {d}\r\n
\r\n },\r\n {\r\n header: getText(\"MdtRatesInfoReference\"),\r\n id: 'reference',\r\n accessor: (d: Api.RatesOfferModel) => d.references ? (d.references.map(r=>r.value).join(',')) : \"\",\r\n align: \"center\",\r\n cell: (d: any) =>
\r\n {d}\r\n
\r\n },\r\n {\r\n header: getText(\"MdtRatesInfoShortname\"),\r\n id: 'shortName',\r\n align: \"center\",\r\n accessor: (d: Api.RatesOfferModel) => d.shortName,\r\n cell: (d: any) =>
\r\n {d}\r\n
\r\n },\r\n {\r\n header: \"Owner\",\r\n id: 'owner',\r\n align: \"center\",\r\n accessor: (d: Api.RatesOfferModel) => d.owner,\r\n cell: (d: any) =>
\r\n {d}\r\n
\r\n },\r\n {\r\n header: \"Last update\",\r\n id: 'lastUpdate',\r\n align: \"center\",\r\n accessor: (d: Api.RatesOfferModel) => d.lastUpdate,\r\n cell: (d: any) =>
\r\n {Moment(d).format(\"DD/MM/YYYY\")}\r\n
\r\n }\r\n ,\r\n {\r\n header: \"\",\r\n id: 'action',\r\n accessor: (d: Api.RatesOfferModel) => d,\r\n cell: (d: Api.RatesOfferModel) =>
\r\n {getText(\"GenEdit\")}\r\n
\r\n }\r\n ];\r\n}\r\n\r\n\r\n\r\n\r\n\r\n\r\nconst trStyle = { cursor: \"pointer\" as any }\r\n\r\nclass ModeratorRatesOffer extends React.Component {\r\n\r\n get carriersOptions(): Array
\r\n );\r\n } \r\n}","import * as React from 'react';\r\nimport * as Api from '../api/api';\r\nimport DialogModal from './DialogModal';\r\nimport { PreviewTemplateForm } from './QuotationTemplateForm';\r\n\r\ninterface QuotationSaveTemplateDialogProps {\r\n isOpen: boolean;\r\n templates: Array;\r\n onRequestClose: () => void;\r\n}\r\n\r\nexport default class QuotationSaveTemplateDialog extends React.Component {\r\n public render() {\r\n return (\r\n this.props.onRequestClose()}>\r\n
\r\n Promise.resolve()} />\r\n
\r\n \r\n );\r\n } \r\n}","import * as React from 'react';\r\nimport * as Api from '../api/api';\r\nimport CheckBox from './CheckBox'\r\nimport InputNumber from \"./InputNumber\";\r\nimport { RatesCalculator } from '../utils/ratesUtils';\r\nimport { inputNumberStyle, rowStyle, borderStyle } from \"../styles/quotationStyles\";\r\nimport { getText } from '../utils/langTexts';\r\nimport { getChargeAmount } from '../utils/utils';\r\nimport { quotColors } from '../styles/colors';\r\nimport * as _ from 'lodash';\r\nimport Tooltip from \"./Tooltip\";\r\n\r\nconst oneToThree = [1, 2, 3, 4];\r\n\r\ninterface QuotationChargeProps {\r\n ratesCalculator: RatesCalculator;\r\n chargeSet: Api.ChargeSetModel;\r\n chargeName: Api.ChargeNameModel;\r\n criteriaSizeTypes: Array;\r\n sizeTypes: { [id: number]: Api.SizeTypeModel };\r\n currencies: { [id: number]: Api.CurrencyModel };\r\n chargeNames: { [id: number]: Api.ChargeNameModel };\r\n quotationCharge: Api.QuotationChargeModel;\r\n application: Api.ChargeModelApplicationEnum;\r\n perBl: boolean;\r\n level: number,\r\n currencyId: number,\r\n onSelect: (value: boolean) => void;\r\n updateAmount: (value: number, lvl: number, originalChargeId: number, sizeTypeId?: number) => void;\r\n}\r\n\r\nexport default class QuotationCharge extends React.Component {\r\n\r\n getSizeTypeCriteria(position: number): Api.CriteriaSizeTypeModel {\r\n let cst = this.props.criteriaSizeTypes\r\n .find(st => this.props.sizeTypes[st.sizeTypeId].position === position && st.number > 0);\r\n return cst ? cst : null;\r\n }\r\n\r\n findCharge(nb: number,level: number): Api.ChargeModel {\r\n\r\n var chargesReal = this.props.ratesCalculator.findChargesToApply(this.props.chargeSet, this.getSizeTypeCriteria(nb))\r\n .filter(ch => ch.chargeNameId === this.props.chargeName.chargeNameId && ch.application === this.props.application && this.props.currencyId == ch.currencyId)\r\n\r\n var ret = (chargesReal)[level];\r\n\r\n\r\n return ret;\r\n }\r\n\r\n get firstCharge(): Api.ChargeModel {\r\n return _.sortBy(this.props.chargeSet.charges\r\n .filter(ch => ch.chargeNameId === this.props.chargeName.chargeNameId)\r\n , x => x.application !== this.props.application)[0];\r\n }\r\n\r\n firstChargeSource(sizeTypeId?: number): Api.ChargeModel {\r\n return (sizeTypeId\r\n ? this.props.ratesCalculator.findChargesToApply(this.props.chargeSet, null, null, [])\r\n : this.props.ratesCalculator.findBlChargesToApply(this.props.chargeSet, null, []))\r\n .find(x => x.chargeNameId === this.firstCharge.sourceChargeNameId);\r\n }\r\n\r\n public render() {\r\n return (\r\n
\r\n
\r\n
\r\n this.props.onSelect(value)} />\r\n
\r\n
\r\n
\r\n {this.props.chargeName.shortName} {this.firstCharge.chargeType === \"Source\"\r\n && this.firstCharge.type === \"Percentage\"\r\n ? `(${Math.round(this.firstCharge.amount * 100 * 100) / 100}% of ${this.props.chargeNames[this.firstCharge.sourceChargeNameId].shortName})`\r\n : \"\"}\r\n
\r\n
\r\n {(this.firstCharge.paymentOption) &&\r\n {this.firstCharge.paymentOption}
}>\r\n {(this.firstCharge.paymentOption.toString() === \"Freight\") &&\r\n \r\n \r\n \r\n }\r\n {(this.firstCharge.paymentOption.toString() === \"Prepaid\") &&\r\n \r\n \r\n \r\n }\r\n {(this.firstCharge.paymentOption.toString() === \"Collect\") &&\r\n \r\n \r\n \r\n }\r\n \r\n }\r\n
\r\n
\r\n
\r\n {this.firstCharge.chargeType === \"Source\"\r\n ? (this.firstChargeSource() ? this.props.currencies[this.firstChargeSource().currencyId].code : \"\")\r\n : this.props.currencies[this.props.currencyId].code}\r\n
\r\n
\r\n\r\n
\r\n {!this.props.perBl\r\n && oneToThree.map(nb => \r\n
\r\n {this.getSizeTypeCriteria(nb)\r\n && this.findCharge(nb, this.props.level)\r\n &&
\r\n qc.originalChargeId == this.findCharge(nb, this.props.level).chargeId && qc.sizeTypeId === this.getSizeTypeCriteria(nb).sizeTypeId)\r\n : null}\r\n sizeType={this.props.sizeTypes[this.getSizeTypeCriteria(nb).sizeTypeId]}\r\n chargeNames={this.props.chargeNames}\r\n currencies={this.props.currencies}\r\n updateAmount={(value, originalChargeId) =>\r\n this.props.updateAmount(value, this.props.level, originalChargeId, this.getSizeTypeCriteria(nb).sizeTypeId)} />\r\n
}\r\n
)}\r\n {this.props.perBl\r\n &&
\r\n ch.chargeNameId === this.props.chargeName.chargeNameId), x => x.application !== this.props.application)[0]}\r\n ratesCalculator={this.props.ratesCalculator}\r\n chargeSet={this.props.chargeSet}\r\n quotationChargeAmount={this.props.quotationCharge\r\n ? this.props.quotationCharge.quotationChargeAmounts[0]\r\n : null}\r\n chargeNames={this.props.chargeNames}\r\n currencies={this.props.currencies}\r\n updateAmount={(value, originalChargeId) => this.props.updateAmount(value, this.props.level, originalChargeId)}\r\n />\r\n
}\r\n\r\n
\r\n \r\n );\r\n }\r\n}\r\n\r\ninterface QuotationChargeAmountProps {\r\n ratesCalculator: RatesCalculator;\r\n chargeSet: Api.ChargeSetModel;\r\n currencies: { [id: number]: Api.CurrencyModel };\r\n chargeNames: { [id: number]: Api.ChargeNameModel };\r\n sizeType?: Api.SizeTypeModel;\r\n charge: Api.ChargeModel;\r\n quotationChargeAmount: Api.QuotationChargeAmountModel;\r\n updateAmount: (value: number, originalChargeId: number) => void;\r\n}\r\n\r\nclass QuotationChargeAmount extends React.Component {\r\n\r\n get chargeSource(): Api.ChargeModel {\r\n return (this.props.sizeType\r\n ? this.props.ratesCalculator.findChargesToApplybySizeId(this.props.chargeSet, this.props.sizeType.sizeTypeId, null, [])\r\n : this.props.ratesCalculator.findBlChargesToApply(this.props.chargeSet, null, []))\r\n .find(x => x.chargeNameId === this.props.charge.sourceChargeNameId);\r\n }\r\n\r\n get chargeAmount(): number {\r\n if (this.props.charge.chargeType === \"Source\"\r\n && this.props.charge.type === \"Percentage\") {\r\n let source = this.chargeSource;\r\n\r\n if (!source)\r\n return 0;\r\n\r\n return Math.round(source.amount * this.props.charge.amount * 100) / 100;\r\n }\r\n\r\n return getChargeAmount(this.props.charge, this.props.sizeType\r\n ? this.props.sizeType.teu\r\n : 1);\r\n }\r\n\r\n public render() {\r\n return (\r\n
\r\n {(this.props.charge.chargeType === \"Value\"\r\n || (this.props.charge.chargeType === \"Source\" && this.props.charge.type === \"Percentage\"))\r\n &&
\r\n \r\n
/
\r\n
\r\n this.props.updateAmount(value, this.props.charge.chargeId)} />\r\n
\r\n
\r\n
}\r\n {this.props.charge.chargeType === \"Source\"\r\n &&
\r\n {this.props.charge.type === \"Incl\"\r\n &&
\r\n {getText(\"GenIncluded\", { value: this.props.chargeNames[this.props.charge.sourceChargeNameId].code })}\r\n
}\r\n
}\r\n
\r\n );\r\n }\r\n}","import * as React from 'react';\r\nimport * as Api from '../api/api';\r\nimport * as QuotationStore from '../store/Quotation';\r\nimport QuotationCharge from './QuotationCharge';\r\nimport QuotationFee from './QuotationFee';\r\nimport { RatesCalculator } from '../utils/ratesUtils';\r\nimport { rowStyle, borderStyle } from \"../styles/quotationStyles\";\r\nimport { quotColors } from '../styles/colors';\r\nimport { getText } from '../utils/langTexts';\r\n\r\n\r\ntype QuotationApplicationChargesProps = QuotationApplicationChargesOwnProps;\r\n\r\ninterface QuotationApplicationChargesOwnProps {\r\n title: string;\r\n application: Api.ChargeNameModelApplicationEnum;\r\n usableCurrencies: Array;\r\n feeType: Api.QuotationFeeModelTypeEnum;\r\n carrierOffer: Api.CarrierOfferModel;\r\n quotation: Api.QuotationModel;\r\n criteria: Api.CriteriaModel;\r\n perBl: boolean;\r\n ratesCalculator: RatesCalculator;\r\n feeStates: { [index: number]: QuotationStore.QuotationFeeState };\r\n chargeNames: { [id: number]: Api.ChargeNameModel };\r\n currencies: { [id: number]: Api.CurrencyModel };\r\n sizeTypes: { [id: number]: Api.SizeTypeModel };\r\n findChargeNamesFromApplication: (application: Api.ChargeNameModelApplicationEnum, perBl: boolean) => Array;\r\n quotationSelectCharge: (chargeNameId: number, application: Api.QuotationChargeModelApplicationEnum, value: boolean, level:number) => void;\r\n quotationUpdateChargeAmount: (chargeNameId: number, application: Api.QuotationChargeModelApplicationEnum, value: number, lvl: number,originalChargeId :number, sizeTypeId: number) => void;\r\n quotationRemoveFee: (index: number) => void;\r\n quotationUpdateFeeBaseAmount: (index: number, value: number, sizeTypeId: number) => void;\r\n quotationUpdateFeeAmount: (index: number, value: number, sizeTypeId: number) => void;\r\n quotationSelectFeeCurrency: (index: number, value: number, sizeTypeId: number) => void;\r\n quotationUpdateFeeLabel: (index: number, value: string, sizeTypeId: number) => void;\r\n quotationUpdateFeeMode: (index: number, value: QuotationStore.QuotationFeeMode, sizeTypeId: number) => void;\r\n quotationUpdateFeeName: (index: number, value: string) => void;\r\n quotationUpdateFeeUnit: (index: number, value: string) => void;\r\n quotationSelectFee: (index: number, value: boolean) => void;\r\n quotationAddFee: (feeMode: Api.QuotationFeeModelTypeEnum) => void;\r\n quotationAddQuotationFeeLabel: (index: number) => void;\r\n quotationUpdateQuotationFeeLabel: (feeIndex: number, index: number, value: string) => void;\r\n quotationRemoveQuotationFeeLabel: (feeIndex: number, index: number) => void;\r\n}\r\n\r\nexport default class QuotationApplicationCharges extends React.Component {\r\n public render() {\r\n return (\r\n
\r\n {this.props.title\r\n &&
\r\n
{this.props.title}
\r\n
}\r\n {this.props.carrierOffer.chargeSet\r\n && this.props.findChargeNamesFromApplication(this.props.application, this.props.perBl).map(cn =>\r\n Array(cn.levels).fill(0).map( (x,lvl)=> \r\n qc.chargeNameId === cn.chargeName.chargeNameId && (!qc.level || qc.level == lvl)\r\n && (!qc.application || qc.application === this.props.application))}\r\n sizeTypes={this.props.sizeTypes}\r\n ratesCalculator={this.props.ratesCalculator}\r\n perBl={this.props.perBl}\r\n onSelect={(value) => this.props.quotationSelectCharge(cn.chargeName.chargeNameId, this.props.application, value,lvl)}\r\n updateAmount={(value, lvl,originalChargeId, sizeTypeId) => this.props.quotationUpdateChargeAmount(cn.chargeName.chargeNameId, this.props.application, value, lvl,originalChargeId, sizeTypeId)}\r\n />\r\n ))}\r\n {this.props.quotation.quotationFees.filter(qf => qf.type === this.props.feeType).map(qf =>\r\n this.props.quotationRemoveFee(this.props.quotation.quotationFees.indexOf(qf))}\r\n updateBaseAmount={(value, sizeTypeId) =>\r\n this.props.quotationUpdateFeeBaseAmount(this.props.quotation.quotationFees.indexOf(qf), value, sizeTypeId)}\r\n updateAmount={(value, sizeTypeId) =>\r\n this.props.quotationUpdateFeeAmount(this.props.quotation.quotationFees.indexOf(qf), value, sizeTypeId)}\r\n selectCurrency={(currencyId, sizeTypeId) =>\r\n this.props.quotationSelectFeeCurrency(this.props.quotation.quotationFees.indexOf(qf), currencyId, sizeTypeId)}\r\n updateName={(value) =>\r\n this.props.quotationUpdateFeeName(this.props.quotation.quotationFees.indexOf(qf), value)}\r\n updateUnit={(value) =>\r\n this.props.quotationUpdateFeeUnit(this.props.quotation.quotationFees.indexOf(qf), value)}\r\n onSelect={(value) =>\r\n this.props.quotationSelectFee(this.props.quotation.quotationFees.indexOf(qf), value)}\r\n quotationFeeState={this.props.feeStates[this.props.quotation.quotationFees.indexOf(qf)]\r\n || QuotationStore.unloadedFeeState}\r\n updateLabel={(value, sizeTypeId) => this.props.quotationUpdateFeeLabel(this.props.quotation.quotationFees.indexOf(qf), value, sizeTypeId)}\r\n updateMode={(value, sizeTypeId) => this.props.quotationUpdateFeeMode(this.props.quotation.quotationFees.indexOf(qf), value, sizeTypeId)}\r\n addQuotationFeeLabel={() => this.props.quotationAddQuotationFeeLabel(\r\n this.props.quotation.quotationFees.indexOf(qf))}\r\n removeQuotationFeeLabel={(index) => this.props.quotationRemoveQuotationFeeLabel(\r\n this.props.quotation.quotationFees.indexOf(qf), index)}\r\n updateQuotationFeeLabel={(index, value) => this.props.quotationUpdateQuotationFeeLabel(\r\n this.props.quotation.quotationFees.indexOf(qf), index, value)}\r\n />\r\n )}\r\n
\r\n
\r\n
{\r\n this.props.quotationAddFee(this.props.feeType);\r\n e.stopPropagation();\r\n }}>\r\n {this.props.perBl\r\n ? getText(\"QtnAddBlCharge\")\r\n : getText(\"QtnAddCharge\")}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n );\r\n }\r\n}","import React from 'react';\r\nimport { ButtonGroup, Grid, MenuItem, MenuList, Popper, Paper, Grow } from '@material-ui/core';\r\nimport Button from \"./Button\";\r\nimport ArrowDropDownIcon from '@material-ui/icons/ArrowDropDown';\r\nimport ClickAwayListener from '@material-ui/core/ClickAwayListener';\r\n\r\ninterface SplitButtonProps {\r\n defaultIndex: number;\r\n options: Array;\r\n style?: React.CSSProperties;\r\n disabled?: boolean;\r\n}\r\n\r\nexport interface SplitButtonOptions {\r\n label: string;\r\n disabled?: boolean;\r\n action: () => void;\r\n}\r\n\r\ninterface SplitButtonState {\r\n isOpen: boolean;\r\n index: number;\r\n}\r\n\r\nexport class SplitButton extends React.Component {\r\n anchorRef = null;\r\n\r\n constructor(props: SplitButtonProps) {\r\n super(props);\r\n this.state = {\r\n isOpen: false,\r\n index: this.props.defaultIndex\r\n };\r\n }\r\n\r\n public render() {\r\n return (\r\n \r\n \r\n this.anchorRef = ref} aria-label=\"split button\">\r\n \r\n this.setState({ isOpen: true })}>\r\n \r\n \r\n \r\n \r\n {({ TransitionProps, placement }) => (\r\n \r\n \r\n this.setState({ isOpen: false })}>\r\n \r\n {this.props.options.map((option, index) => (\r\n {\r\n this.setState({\r\n index: index,\r\n isOpen: false\r\n });\r\n }}>\r\n {option.label}\r\n \r\n ))}\r\n \r\n \r\n \r\n \r\n )}\r\n \r\n \r\n );\r\n }\r\n}","import * as React from 'react';\r\nimport { connect } from 'react-redux';\r\nimport { ApplicationState } from '../store';\r\nimport * as Api from '../api/api';\r\nimport * as QuotationStore from '../store/Quotation';\r\nimport Moment from 'moment';\r\nimport { RatesCalculator, ChargeModification, CurrencyResultSet, CurrencyResult } from '../utils/ratesUtils';\r\nimport { dictionnaryToArray, groupBy, getPort, scrollToAppTop } from '../utils/utils';\r\nimport Select from './Select';\r\nimport CriteriaSizeType from '../components/CriteriaSizeType';\r\nimport CheckBox from './CheckBox'\r\nimport QuotationFee from './QuotationFee';\r\nimport { rowStyle, borderStyle } from \"../styles/quotationStyles\";\r\nimport InputNumber from \"./InputNumber\";\r\nimport Tooltip from \"./Tooltip\";\r\nimport { getText } from '../utils/langTexts';\r\nimport * as _ from 'lodash';\r\nimport QuotationCreateTemplateDialog from './QuotationCreateTemplateDialog';\r\nimport QuotationPreviewTemplateDialog from './QuotationPreviewTemplateDialog';\r\nimport { quotColors } from '../styles/colors';\r\nimport QuotationApplicationCharges from './QuotationApplicationCharges';\r\nimport { chargeAgentsToMoficiations } from '../utils/mapping';\r\nimport { Grid } from \"@material-ui/core\";\r\nimport Button from \"./Button\";\r\nimport { SplitButton } from \"./SplitButton\";\r\n\r\ntype QuotationRatesProps =\r\n QuotationStore.QuotationState\r\n & QuotationRatesOwnProps\r\n & typeof QuotationStore.actionCreators;\r\n\r\ninterface QuotationRatesOwnProps {\r\n chargeNames: { [id: number]: Api.ChargeNameModel };\r\n sizeTypes: { [id: number]: Api.SizeTypeModel };\r\n languages: { [id: number]: Api.LanguageModel };\r\n currencies: { [id: number]: Api.CurrencyModel };\r\n carriers: { [id: number]: Api.CarrierModel; }\r\n}\r\n\r\ninterface QuotationParams {\r\n quotationId: string;\r\n criteriaCode: string;\r\n departId: string;\r\n chargeSetId: string;\r\n}\r\n\r\nexport const totalDisplayOptions = (): Array<{ label: string, value: Api.QuotationModelTotalTypeEnum }> => [\r\n { label: getText(\"QtnTotalTypeNone\"), value: \"None\" },\r\n { label: getText(\"QtnTotalTypeByCurrency\"), value: \"ByCurrency\" },\r\n { label: getText(\"QtnTotalTypeAllIn\"), value: \"AllIn\" }\r\n];\r\nexport const detailsLevelOptions = (): Array<{ label: string, value: Api.QuotationModelDetailsLevelEnum }> => [\r\n { label: getText(\"QtnDetailsLevelNone\"), value: \"None\" },\r\n { label: getText(\"QtnDetailsLevelPartialCharges\"), value: \"PartialCharges\" },\r\n { label: getText(\"QtnDetailsLevelPartialTotal\"), value: \"PartialTotal\" },\r\n { label: getText(\"QtnDetailsLevelFull\"), value: \"Full\" }\r\n];\r\n\r\nconst otherInfoStyle = {};\r\nconst actionButtonStyle = { margin: 5, float: \"right\" as any };\r\n\r\nexport const quotationChargeModifications = (quotation: Api.QuotationModel): Array => {\r\n return quotation.quotationCharges\r\n .map(x => !x.visible\r\n ? [{\r\n chargeNameId: x.chargeNameId\r\n , modificationType: \"Exclude\"\r\n , amount: 0\r\n , application: x.application\r\n , level: x.level\r\n ,originalChargeId: 0\r\n } as ChargeModification]\r\n : x.quotationChargeAmounts.map(y => ({\r\n amount: y.amount,\r\n originalChargeId: y.originalChargeId,\r\n chargeNameId: x.chargeNameId,\r\n sizeTypeId: y.sizeTypeId,\r\n modificationType: \"ReplaceAsMargin\",\r\n application: x.application,\r\n level: x.level,\r\n } as ChargeModification)))\r\n .reduce((a, b) => a.concat(b), [])\r\n};\r\n\r\nexport const quotationFeeCurrencyResultSet = (quotation: Api.QuotationModel,\r\n criteria: Api.CriteriaModel,\r\n currencies: { [id: number]: Api.CurrencyModel }): CurrencyResultSet => {\r\n var currencyResultSet = new CurrencyResultSet();\r\n quotation.quotationFees.forEach(x => {\r\n x.quotationFeeAmounts.forEach(y => {\r\n var nbUnit = !y.sizeTypeId\r\n ? 1\r\n : criteria.criteriaSizeTypes.some(z => z.sizeTypeId === y.sizeTypeId)\r\n ? criteria.criteriaSizeTypes.find(z => z.sizeTypeId === y.sizeTypeId).number\r\n : 0;\r\n currencyResultSet.add(new CurrencyResult(currencies[y.currencyId],\r\n y.baseAmount * nbUnit,\r\n (y.amount - y.baseAmount) * nbUnit))\r\n });\r\n });\r\n return currencyResultSet;\r\n};\r\n\r\nconst fieldStyle: React.CSSProperties = {\r\n display: \"flex\",\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n marginBottom: 20\r\n}\r\n\r\nconst labelStyle: React.CSSProperties = {\r\n flex: \"0 0 auto\",\r\n minWidth: 320,\r\n textAlign: \"right\",\r\n marginRight: 6\r\n}\r\n\r\nclass QuotationRates extends React.Component {\r\n\r\n private ratesCalculator: RatesCalculator;\r\n private topRef: HTMLDivElement;\r\n private containerRef: HTMLDivElement;\r\n\r\n constructor(props: QuotationRatesProps) {\r\n super(props);\r\n this.ratesCalculator = new RatesCalculator(_.mapValues(props.currencies, x => ({\r\n ...x,\r\n value: props.quotation.quotationCurrencies.some(y => y.currencyId === x.currencyId)\r\n ? props.quotation.quotationCurrencies.find(y => y.currencyId === x.currencyId).value\r\n : x.value\r\n })),\r\n props.sizeTypes,\r\n props.criteria);\r\n }\r\n\r\n onPropsUpdate(props: QuotationRatesProps) {\r\n if (this.props.quotation.quotationCurrencies !== props.quotation.quotationCurrencies\r\n || this.props.currencies !== props.currencies\r\n || this.props.sizeTypes !== props.sizeTypes\r\n || this.props.criteria !== props.criteria) {\r\n this.ratesCalculator = new RatesCalculator(_.mapValues(props.currencies, x => ({\r\n ...x,\r\n value: props.quotation.quotationCurrencies.some(y => y.currencyId === x.currencyId)\r\n ? props.quotation.quotationCurrencies.find(y => y.currencyId === x.currencyId).value\r\n : x.value\r\n })),\r\n props.sizeTypes,\r\n props.criteria);\r\n }\r\n }\r\n\r\n componentWillMount() {\r\n this.onPropsUpdate(this.props);\r\n }\r\n\r\n componentWillReceiveProps(nextProps: QuotationRatesProps) {\r\n if (this.props.criteria !== nextProps.criteria\r\n || this.props.currencies !== nextProps.currencies)\r\n this.onPropsUpdate(nextProps);\r\n }\r\n\r\n componentDidMount() {\r\n scrollToAppTop();\r\n if (this.topRef && this.containerRef) {\r\n let scrollContainer = document.getElementById(\"scroll-container\");\r\n if (!scrollContainer)\r\n return;\r\n\r\n scrollContainer.addEventListener(\"scroll\", () => {\r\n if (!this.topRef\r\n || !this.containerRef)\r\n return;\r\n if (scrollContainer.scrollTop >= 40) {\r\n this.topRef.style.setProperty(\"position\", \"fixed\");\r\n this.topRef.style.setProperty(\"margin\", \"auto\");\r\n this.topRef.style.setProperty(\"width\", this.containerRef.getBoundingClientRect().width + \"px\");\r\n this.topRef.style.setProperty(\"top\", \"110px\");\r\n } else {\r\n this.topRef.style.setProperty(\"position\", undefined);\r\n\r\n this.topRef.style.setProperty(\"margin\", undefined);\r\n this.topRef.style.setProperty(\"width\", undefined);\r\n this.topRef.style.setProperty(\"top\", undefined);\r\n }\r\n });\r\n }\r\n }\r\n\r\n getSizeTypePositionName(position: number): string {\r\n return this.props.criteria.criteriaSizeTypes\r\n .some(st => this.props.sizeTypes[st.sizeTypeId].position === position)\r\n ? this.props.sizeTypes[this.props.criteria.criteriaSizeTypes\r\n .find(st => this.props.sizeTypes[st.sizeTypeId].position === position).sizeTypeId].name\r\n : \"\";\r\n }\r\n\r\n\r\n findMaxLevel(charges: Api.ChargeModel[]) {\r\n var lvl = groupBy(charges, x => x.sizeTypeId?.toString()).sort(x => x.members.length).reverse()[0];\r\n return lvl.members.length;\r\n }\r\n\r\n findChargeNamesFromApplication(application: Api.ChargeNameModelApplicationEnum, perBl: boolean): Array {\r\n let charges: Array = [];\r\n let chargeModifications = [];\r\n\r\n if (!perBl) {\r\n this.props.criteria.criteriaSizeTypes.filter(cst => cst.number > 0).forEach(cst => {\r\n charges = charges.concat(\r\n this.ratesCalculator.findChargesToApply(\r\n this.props.carrierOffer.chargeSet, cst, application, chargeModifications));\r\n\r\n });\r\n } else {\r\n charges = charges.concat(\r\n this.ratesCalculator.findBlChargesToApply(\r\n this.props.carrierOffer.chargeSet, application, chargeModifications));\r\n }\r\n\r\n charges = groupBy(charges, c => c.chargeId.toString()).map(x => x.members[0]); //removes duplicities\r\n var resultNames = groupBy(charges, x => `${x.chargeNameId}-${x.currencyId}`);\r\n let chargeNamesWithUssageCount = resultNames.map(gc => ({ chargeName: this.props.chargeNames[parseInt(gc.key)], levels: this.findMaxLevel(gc.members), currencyId: gc.members[0].currencyId }));\r\n\r\n return chargeNamesWithUssageCount;\r\n }\r\n\r\n\r\n get currencies(): Array {\r\n return _.values(this.props.currencies).filter(cu => cu.primary\r\n || cu.currencyId === getPort(this.props.criteria.origin).country.currencyId\r\n || cu.currencyId === getPort(this.props.criteria.destination).country.currencyId\r\n || (this.props.carrierOffer\r\n && this.props.carrierOffer.chargeSet\r\n && this.props.carrierOffer.chargeSet.charges.some(ch => ch.currencyId === cu.currencyId)));\r\n }\r\n\r\n public render() {\r\n let allInResultSet = this.props.carrierOffer.chargeSet\r\n ? this.ratesCalculator.calculateAllIn(this.props.carrierOffer.chargeSet,\r\n chargeAgentsToMoficiations(this.props.carrierOffer.chargeAgents)\r\n .concat(quotationChargeModifications(this.props.quotation)))\r\n : new CurrencyResultSet();\r\n allInResultSet.addSet(quotationFeeCurrencyResultSet(this.props.quotation,\r\n this.props.criteria,\r\n this.props.currencies));\r\n const containerStyle = {\r\n height: \"100%\",\r\n display: \"flex\",\r\n flexDirection: \"row\",\r\n alignItems: \"flex-start\"\r\n } as React.CSSProperties;\r\n const navContainerStyle = {\r\n order: 1,\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n width: \"100%\",\r\n borderRadius: 8\r\n } as React.CSSProperties;\r\n const navInnerContainerStyle = {\r\n paddingBottom: 0\r\n } as React.CSSProperties;\r\n\r\n\r\n const oneToThree = []; //sometimes criteria came unsorted\r\n var tmp = _.sortBy(this.props.criteria.criteriaSizeTypes, x => x.sizeTypeId);\r\n tmp.forEach(c => {\r\n let index = this.props.criteria.criteriaSizeTypes.findIndex(st => st == c);\r\n oneToThree.push(index);\r\n });\r\n\r\n return (\r\n \r\n \r\n \r\n
this.containerRef = ref}>\r\n
\r\n
\r\n \r\n \r\n
\r\n \r\n \r\n
this.topRef = ref}>\r\n
\r\n
\r\n
\r\n this.props.quotationPrevStep()}\r\n style={{ cursor: \"pointer\", flex: \"0 0 auto\" }}\r\n src='/images/goBack.png' alt='Go back' width='39' height='27' />\r\n
\r\n
{getText(\"QtnSelectTemplate\")}
\r\n
\r\n
\r\n
\r\n
\r\n x.name),\r\n x => x.quotationTemplateSettings.templateType === \"Master\" ? 0 : 1)\r\n .map(x => ({\r\n label: x.name,\r\n value: x.quotationId,\r\n isMaster: x.quotationTemplateSettings.templateType === \"Master\"\r\n })))}\r\n value={this.props.loadedTemplateId}\r\n onChange={(value) => this.props.quotationLoadTemplate(value)}\r\n optionComponent={(opt) =>
\r\n
{opt.label}
\r\n {opt.value &&
{\r\n this.props.quotationSelectTemplatePreview(opt.value);\r\n e.preventDefault();\r\n e.stopPropagation();\r\n }}>Preview
}\r\n
} />\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n this.props.quotationUpdateByContainer(value)} />\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {this.props.carriers[this.props.carrierOffer.carrierId].name}\r\n
\r\n
\r\n {this.props.carrierOffer.originPort.name}\r\n {\" \"}>{\" \"}\r\n {this.props.carrierOffer.destinationPort.name}\r\n
\r\n
\r\n
\r\n {oneToThree.map(nb =>\r\n
\r\n {this.props.criteria.criteriaSizeTypes[nb]\r\n && this.props.quotationUpdateCriteriaSizeType(value,\r\n this.props.criteria.criteriaSizeTypes[nb].sizeTypeId)} />}\r\n
\r\n )}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
FOB charges from
\r\n this.props.quotationUpdateFobOrigin(e.target.value)} />\r\n
to
\r\n this.props.quotationUpdateFobDestination(e.target.value)} />\r\n
\r\n
\r\n
\r\n
{getText(\"QtnPreTransport\")}
\r\n
\r\n {this.props.quotation.quotationFees.filter(qf => qf.type === \"PreTransport\").map(qf =>\r\n this.props.quotationRemoveFee(this.props.quotation.quotationFees.indexOf(qf))}\r\n updateBaseAmount={(value, sizeTypeId) =>\r\n this.props.quotationUpdateFeeBaseAmount(this.props.quotation.quotationFees.indexOf(qf), value, sizeTypeId)}\r\n updateAmount={(value, sizeTypeId) =>\r\n this.props.quotationUpdateFeeAmount(this.props.quotation.quotationFees.indexOf(qf), value, sizeTypeId)}\r\n selectCurrency={(currencyId, sizeTypeId) =>\r\n this.props.quotationSelectFeeCurrency(this.props.quotation.quotationFees.indexOf(qf), currencyId, sizeTypeId)}\r\n updateName={(value) =>\r\n this.props.quotationUpdateFeeName(this.props.quotation.quotationFees.indexOf(qf), value)}\r\n updateUnit={(value) =>\r\n this.props.quotationUpdateFeeUnit(this.props.quotation.quotationFees.indexOf(qf), value)}\r\n onSelect={(value) =>\r\n this.props.quotationSelectFee(this.props.quotation.quotationFees.indexOf(qf), value)}\r\n quotationFeeState={this.props.feeStates[this.props.quotation.quotationFees.indexOf(qf)]\r\n || QuotationStore.unloadedFeeState}\r\n updateLabel={(value, sizeTypeId) => this.props.quotationUpdateFeeLabel(\r\n this.props.quotation.quotationFees.indexOf(qf), value, sizeTypeId)}\r\n updateMode={(value, sizeTypeId) => this.props.quotationUpdateFeeMode(\r\n this.props.quotation.quotationFees.indexOf(qf), value, sizeTypeId)}\r\n addQuotationFeeLabel={() => this.props.quotationAddQuotationFeeLabel(\r\n this.props.quotation.quotationFees.indexOf(qf))}\r\n removeQuotationFeeLabel={(index) => this.props.quotationRemoveQuotationFeeLabel(\r\n this.props.quotation.quotationFees.indexOf(qf), index)}\r\n updateQuotationFeeLabel={(index, value) => this.props.quotationUpdateQuotationFeeLabel(\r\n this.props.quotation.quotationFees.indexOf(qf), index, value)}\r\n />\r\n )}\r\n
\r\n
\r\n
{\r\n this.props.quotationAddFee(\"PreTransport\");\r\n e.preventDefault();\r\n }}>\r\n {getText(\"QtnAddCharge\")}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n this.findChargeNamesFromApplication(application, perBl)}\r\n {...this.props} />\r\n this.findChargeNamesFromApplication(application, perBl)}\r\n {...this.props} />\r\n\r\n
\r\n
\r\n
Freight from
\r\n this.props.quotationUpdateFrtOrigin(e.target.value)} />\r\n
to
\r\n this.props.quotationUpdateFrtDestination(e.target.value)} />\r\n
\r\n
\r\n this.findChargeNamesFromApplication(application, perBl)}\r\n {...this.props} />\r\n this.findChargeNamesFromApplication(application, perBl)}\r\n {...this.props}\r\n />\r\n\r\n
\r\n
\r\n
Destination charges from
\r\n this.props.quotationUpdateDestinationOrigin(e.target.value)} />\r\n
to
\r\n this.props.quotationUpdateDestinationDestination(e.target.value)} />\r\n
\r\n
\r\n this.findChargeNamesFromApplication(application, perBl)}\r\n {...this.props}\r\n />\r\n this.findChargeNamesFromApplication(application, perBl)}\r\n {...this.props}\r\n />\r\n
\r\n
{getText(\"QtnPostTransport\")}
\r\n
\r\n {this.props.quotation.quotationFees.filter(qf => qf.type === \"PostTransport\").map(qf =>\r\n this.props.quotationRemoveFee(this.props.quotation.quotationFees.indexOf(qf))}\r\n updateBaseAmount={(value, sizeTypeId) =>\r\n this.props.quotationUpdateFeeBaseAmount(this.props.quotation.quotationFees.indexOf(qf), value, sizeTypeId)}\r\n updateAmount={(value, sizeTypeId) =>\r\n this.props.quotationUpdateFeeAmount(this.props.quotation.quotationFees.indexOf(qf), value, sizeTypeId)}\r\n selectCurrency={(currencyId, sizeTypeId) =>\r\n this.props.quotationSelectFeeCurrency(this.props.quotation.quotationFees.indexOf(qf), currencyId, sizeTypeId)}\r\n updateName={(value) =>\r\n this.props.quotationUpdateFeeName(this.props.quotation.quotationFees.indexOf(qf), value)}\r\n updateUnit={(value) =>\r\n this.props.quotationUpdateFeeUnit(this.props.quotation.quotationFees.indexOf(qf), value)}\r\n onSelect={(value) =>\r\n this.props.quotationSelectFee(this.props.quotation.quotationFees.indexOf(qf), value)}\r\n quotationFeeState={this.props.feeStates[this.props.quotation.quotationFees.indexOf(qf)]\r\n || QuotationStore.unloadedFeeState}\r\n updateLabel={(value, sizeTypeId) => this.props.quotationUpdateFeeLabel(\r\n this.props.quotation.quotationFees.indexOf(qf), value, sizeTypeId)}\r\n updateMode={(value, sizeTypeId) => this.props.quotationUpdateFeeMode(\r\n this.props.quotation.quotationFees.indexOf(qf), value, sizeTypeId)}\r\n addQuotationFeeLabel={() => this.props.quotationAddQuotationFeeLabel(\r\n this.props.quotation.quotationFees.indexOf(qf))}\r\n removeQuotationFeeLabel={(index) => this.props.quotationRemoveQuotationFeeLabel(\r\n this.props.quotation.quotationFees.indexOf(qf), index)}\r\n updateQuotationFeeLabel={(index, value) => this.props.quotationUpdateQuotationFeeLabel(\r\n this.props.quotation.quotationFees.indexOf(qf), index, value)}\r\n />\r\n )}\r\n
\r\n
\r\n
{\r\n this.props.quotationAddFee(\"PostTransport\");\r\n e.preventDefault();\r\n }}>\r\n {getText(\"QtnAddCharge\")}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
All-in buy:
\r\n
\r\n {allInResultSet.currencyResults.map(x =>\r\n
{Math.round(x.amount * 10) / 10} {x.currency.code}
)}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
All-in sell:
\r\n
\r\n {allInResultSet.currencyResults.map(x =>\r\n
{Math.round(x.total * 10) / 10} {x.currency.code}
)}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
Margin total:
\r\n
\r\n
\r\n {Math.round((_.sum(allInResultSet.currencyResults.map(x => x.margin * x.currency.value))\r\n / this.props.currencies[this.props.marginCurrencyId].value) * 10) / 10}\r\n
\r\n
\r\n ({\r\n label: x.code,\r\n value: x.currencyId\r\n }))}\r\n value={this.props.marginCurrencyId}\r\n onChange={(value) => this.props.quotationUpdateMarginCurrencyId(value)} />\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n this.props.quotationUpdateAdditionalInfo(e.target.value)}>\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n this.props.quotationUpdateTerms(e.target.value)}>\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n this.props.quotationSelectDetailsLevel(value)}\r\n />\r\n
\r\n
\r\n
\r\n \r\n
\r\n this.props.quotationSelectTotalType(value)}\r\n />\r\n
\r\n {this.props.quotation.totalType === \"AllIn\"\r\n &&
\r\n ({ label: cu.code, value: cu.currencyId }))}\r\n value={this.props.quotation.currencyId}\r\n onChange={(value) => this.props.quotationSelectAllInCurrency(value)}\r\n />\r\n
}\r\n
\r\n
\r\n
\r\n
\r\n this.props.quotationUpdateShowExchangeRates(value)} />\r\n
\r\n
\r\n
\r\n \r\n
\r\n {this.props.quotation.quotationCurrencies.map((quotCurrency, index) =>
\r\n
\r\n 1 {quotCurrency.displayType === \"ToUsd\"\r\n ? this.props.currencies[quotCurrency.currencyId].code\r\n : \"USD\"} =\r\n
\r\n
\r\n this.props.quotationUpdateCurrencyValue(index, value)} />\r\n
\r\n
\r\n Switch direction
}>\r\n {\r\n this.props.quotationUpdateCurrencyDisplayType(index,\r\n quotCurrency.displayType === \"FromUsd\" ? \"ToUsd\" : \"FromUsd\");\r\n e.preventDefault();\r\n }}>\r\n \r\n
\r\n
\r\n Reset to current
}>\r\n {\r\n this.props.quotationUpdateCurrencyValue(index, this.props.currencies[quotCurrency.currencyId].value);\r\n e.preventDefault();\r\n }}>\r\n \r\n
\r\n
)}\r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n ({ label: lg.name, value: lg.languageId }))}\r\n value={this.props.quotation.languageId}\r\n onChange={(value) => this.props.quotationSelectLanguage(value)} />\r\n
\r\n
\r\n
\r\n \r\n
\r\n this.props.quotationUpdateName(e.target.value)} />\r\n
\r\n
\r\n
\r\n \r\n
\r\n this.props.quotationRequestUploadDocuments(new Date().getTime(), e.target)} />\r\n
\r\n
\r\n {this.props.uploadDocumentsState.isLoading && }\r\n {this.props.quotation.quotationDocuments\r\n && this.props.quotation.quotationDocuments.length\r\n &&
\r\n {this.props.quotation.quotationDocuments.length} document{this.props.quotation.quotationDocuments.length > 1 ? \"s\" : \"\"}\r\n
}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {\r\n this.props.requestCreateQuotation(new Date().getTime(), \"Send\");\r\n }\r\n },\r\n {\r\n label: getText(\"QtnDownloadExcelAndValidate\"),\r\n action: () => {\r\n this.props.requestCreateQuotation(new Date().getTime(), \"DownloadExcel\");\r\n }\r\n },\r\n {\r\n label: getText(\"QtnDownloadPdfAndValidate\"),\r\n action: () => {\r\n this.props.requestCreateQuotation(new Date().getTime(), \"DownloadPdf\");\r\n }\r\n }]} />\r\n {\r\n this.props.requestDownloadQuotation(new Date().getTime());\r\n e.preventDefault();\r\n }}>\r\n {getText(\"QtnDownloadPreview\")}\r\n \r\n {\r\n this.props.quotationBackToSelection();\r\n e.preventDefault();\r\n }}>\r\n {getText(\"QtnBackToOffers\")}\r\n \r\n
\r\n {\r\n this.props.quotationOpenTemplateDialog();\r\n e.preventDefault();\r\n }}>\r\n {getText(\"QtnSaveAsTemplate\")}\r\n \r\n
\r\n
\r\n
\r\n \r\n \r\n this.props.quotationCloseTemplateDialog()}\r\n requestCreateQuotationTemplate={(values) => this.props.requestCreateQuotationTemplate(new Date().getTime(), values) as any} />\r\n this.props.quotationCloseTemplatePreview()} />\r\n
\r\n \r\n \r\n
\r\n \r\n \r\n );\r\n }\r\n}\r\n\r\nexport default connect((state: ApplicationState) => ({\r\n ...state.quotation,\r\n chargeNames: state.seed.chargeNames,\r\n currencies: state.seed.currencies,\r\n languages: state.seed.languages,\r\n sizeTypes: state.seed.sizeTypes,\r\n carriers: state.seed.carriers,\r\n} as any), QuotationStore.actionCreators)(QuotationRates) as any;","import * as React from 'react';\r\nimport * as Api from '../api/api';\r\nimport DialogModal from './DialogModal';\r\nimport Table, { Column } from './Table';\r\nimport * as QuotationStore from '../store/Quotation';\r\nimport { getText } from '../utils/langTexts';\r\nimport { connect } from 'react-redux';\r\nimport { ApplicationState } from '../store';\r\n\r\ntype QuotationTemplatesDialogProps = QuotationStore.QuotationState\r\n & QuotationTemplatesDialogOwnProps\r\n & typeof QuotationStore.actionCreators;\r\n\r\ninterface QuotationTemplatesDialogOwnProps {\r\n client: Api.ClientModel;\r\n}\r\n\r\nclass QuotationTemplatesDialog extends React.Component {\r\n\r\n get isManager(): boolean {\r\n return this.props.client.subscriptions\r\n .some(x => x.subscriptionType === \"Okargo\" && x.allowQuotationManagement);\r\n }\r\n\r\n public render() {\r\n return (\r\n this.props.quotationCloseTemplateListing()}>\r\n
\r\n
\r\n d.name,\r\n id: \"name\",\r\n header:
{getText(\"QtnTemplateName\")}
\r\n },\r\n {\r\n accessor: d => d,\r\n id: \"actions\",\r\n header:
,\r\n cell: row => {\r\n let quotation = row as Api.QuotationModel;\r\n return \r\n }\r\n }\r\n ] as Array>}\r\n rowsPerPage={8}\r\n showPageSizeOptions={false}\r\n showPagination={true} />\r\n
\r\n
\r\n \r\n );\r\n } \r\n}\r\n\r\nexport default connect((state: ApplicationState) => ({\r\n ...state.quotation,\r\n client: state.account.currentUser\r\n ? state.account.currentUser.clientModel\r\n : null\r\n} as any), QuotationStore.actionCreators)(QuotationTemplatesDialog) as any","import * as React from 'react';\r\nimport { Action } from 'redux';\r\nimport { RouteComponentProps } from 'react-router';\r\nimport { connect } from 'react-redux';\r\nimport { ApplicationState } from '../store';\r\nimport * as Api from '../api/api';\r\nimport * as QuotationStore from '../store/Quotation';\r\nimport * as QuotationContactStore from '../store/QuotationContact';\r\nimport * as QuotationSettingsStore from '../store/QuotationSettings';\r\nimport * as SelectionStore from '../store/Selection';\r\nimport QuotationInformationForm from './QuotationInformationForm';\r\nimport QuotationRates from './QuotationRates';\r\nimport Loader from './Loader';\r\nimport { scrollToWhen } from 'react-redux-scroll';\r\nimport { getText } from '../utils/langTexts';\r\nimport QuotationTemplatesDialog from './QuotationTemplatesDialog';\r\nimport { revertColors } from '../styles/colors';\r\nimport { getCarrierOfferKey } from '../utils/utils';\r\nimport Button from \"./Button\";\r\nimport OfferReminder from './OfferReminder';\r\n\r\ntype QuotationProps = QuotationOwnProps\r\n & QuotationStore.QuotationState\r\n & typeof QuotationStore.actionCreators\r\n & typeof QuotationContactStore.actionCreators\r\n & typeof SelectionStore.actionCreators\r\n & typeof QuotationSettingsStore.actionCreators\r\n & RouteComponentProps;\r\n\r\ninterface QuotationOwnProps {\r\n duplicateQuotation?: Api.QuotationModel;\r\n carriers: { [id: number]: Api.CarrierModel };\r\n chargeNames: { [id: number]: Api.ChargeNameModel };\r\n sizeTypes: { [id: number]: Api.SizeTypeModel };\r\n currencies: { [id: number]: Api.CurrencyModel };\r\n languages: { [id: number]: Api.LanguageModel };\r\n carrierOfferState: { [key: string]: SelectionStore.CarrierOfferState };\r\n quotationContact: QuotationContactStore.QuotationContactState;\r\n client: Api.ClientModel;\r\n}\r\n\r\n\r\ninterface QuotationParams {\r\n criteriaCode: string;\r\n departId: string;\r\n chargeSetId: string;\r\n routeId: string;\r\n quotationId?: string;\r\n mode?: QuotationStore.QuotationMode;\r\n}\r\n\r\nconst containerStyle = { position: \"relative\" as any }\r\nconst innerContainerStyle = { padding: 20 }\r\nconst templateContainerStyle = { paddingTop: 20 };\r\nconst infoFormContainerStyle = { paddingTop: 20 };\r\n\r\nconst isStepChange = (action: Action): boolean => {\r\n if (action.type === \"QUOTATION_NEXT_STEP\"\r\n || action.type === \"QUOTATION_PREV_STEP\"\r\n || action.type === \"RECEIVE_QUOTATION_DATA\"\r\n || action.type === \"REQUEST_QUOTATION_DATA\") {\r\n return true;\r\n }\r\n\r\n return false;\r\n}\r\nconst ScrollableToTop =\r\n scrollToWhen(isStepChange, null, null, null)(\"div\");\r\n\r\nclass Quotation extends React.Component {\r\n\r\n constructor(props: QuotationProps) {\r\n super(props);\r\n }\r\n\r\n onPropsUpdate(props: QuotationProps): Promise {\r\n if ((!props.quotationContact.isLoaded && !props.isLoading)\r\n || (new Date().getTime() - props.requestTime > 1000 * 60 * 10)) {\r\n return props.requestQuotationContacts(new Date().getTime()) as any;\r\n }\r\n\r\n return Promise.resolve();\r\n }\r\n\r\n onParamsUpdate(props: QuotationProps, nextProps: QuotationProps, force?: boolean) {\r\n let params = nextProps.match.params;\r\n //If need reload\r\n if ((nextProps.enterSelectionTime\r\n && nextProps.enterSelectionTime != nextProps.loadedSelectionTime)\r\n || !nextProps.criteria\r\n || !nextProps.carrierOffer\r\n || params.criteriaCode !== nextProps.criteria.code\r\n || params.quotationId !== props.match.params.quotationId\r\n || (!nextProps.carrierOffer.chargeSet && params.chargeSetId.toLowerCase() !== \"null\")\r\n || (nextProps.carrierOffer.chargeSet && parseInt(params.chargeSetId) !== nextProps.carrierOffer.chargeSet.chargeSetId)\r\n || !nextProps.carrierOffer.routeConfigs\r\n .map(rc => rc.departs).reduce((a, b) => a.concat(b), [])\r\n .some(dp => dp.departId === parseInt(params.departId))) {\r\n\r\n let loadPromise = (this.props.requestQuotationData(\r\n new Date().getTime(),\r\n params.criteriaCode,\r\n parseInt(params.chargeSetId) || null,\r\n parseInt(params.departId),\r\n params.quotationId ? parseInt(params.quotationId) : null,\r\n params.routeId ? parseInt(params.routeId) : nextProps.carrierOffer.routeId,\r\n nextProps.match.params.mode) as any) as Promise;\r\n\r\n loadPromise.then((result) => {\r\n if (result) {\r\n if (this.props.match.params.mode !== \"Update\") {\r\n this.props.requestNewQuotationReference(new Date().getTime());\r\n }\r\n }\r\n });\r\n }\r\n }\r\n\r\n componentWillMount() {\r\n this.props.requestQuotationSettings(new Date().getTime());\r\n this.onPropsUpdate(this.props).then(() => {\r\n this.onParamsUpdate(this.props, this.props);\r\n });\r\n }\r\n\r\n componentWillReceiveProps(nextProps: QuotationProps) {\r\n //TODO Check why both match object arent the same, its a redux pattern error maybe due to context not being the same\r\n if (this.props.match.params.chargeSetId !== nextProps.match.params.chargeSetId\r\n || this.props.match.params.criteriaCode !== nextProps.match.params.criteriaCode\r\n || this.props.match.params.departId !== nextProps.match.params.departId\r\n || this.props.match.params.mode !== nextProps.match.params.mode\r\n || this.props.match.params.quotationId !== nextProps.match.params.quotationId) {\r\n this.onPropsUpdate(nextProps).then(() => {\r\n this.onParamsUpdate(this.props, nextProps);\r\n });\r\n }\r\n }\r\n\r\n public render() {\r\n return (\r\n
\r\n
\r\n \r\n {this.props.step === 0 &&\r\n
\r\n
\r\n
\r\n
\r\n this.props.quotationBackToSelection()}\r\n className='action' src='/images/goBack.png' alt='Go back' width='39' height='27' />\r\n
\r\n
\r\n {this.props.carrierOffer\r\n && this.props.carrierOffer.chargeSet\r\n && this.props.carrierOffer.chargeSet.routeSuggestedCalcId\r\n &&
\r\n {getText(\"QtnSuggestedWarning\")}\r\n
}\r\n
\r\n {this.props.duplicateQuotation &&
\r\n {\r\n this.props.quotationLoadDuplicate();\r\n e.preventDefault();\r\n }}>Load quotation: {this.props.duplicateQuotation.name}\r\n
}\r\n
\r\n {this.props.carrierOffer && }\r\n
\r\n {\r\n this.props.setQuotationInformation(values as QuotationStore.QuotationInformationModel);\r\n this.props.quotationNextStep();\r\n }}\r\n carrierScheduleState={this.props.carrierOffer ? this.props.carriers[this.props.carrierOffer.carrierId].scheduleState : \"Hide\"}\r\n requestGoToCarrierWebSite={() => {\r\n this.props.requestGoToCarrierWebSite(getCarrierOfferKey(this.props.carrierOffer), new Date().getTime());\r\n }}\r\n quotationSelectContactClient={(value) => this.props.quotationSelectContactClient(value)}\r\n isDownloadingDocument={this.props.downloadDocumentState.isLoading}\r\n requestDownloadDocument={() => this.props.requestDownloadRatesDocument(new Date().getTime()) as any}\r\n openClientMoreOptions={() => this.props.quotationOpenClientMoreOptions()}\r\n closeClientMoreOptions={() => this.props.quotationCloseClientMoreOptions()}\r\n updateIncotermLocation={(value) => this.props.quotationUpdateIncotermLocation(value)}\r\n mode={this.props.match.params.mode || \"Normal\"} />\r\n
\r\n
\r\n
}\r\n {this.props.step === 1 &&\r\n
\r\n
\r\n \r\n
\r\n
}\r\n
\r\n \r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nexport default connect(\r\n (state: ApplicationState) => ({\r\n ...state.quotation,\r\n duplicateQuotation: state.quotationChrono.duplicateQuotation,\r\n carriers: state.seed.carriers,\r\n chargeNames: state.seed.chargeNames,\r\n sizeTypes: state.seed.sizeTypes,\r\n currencies: state.seed.currencies,\r\n languages: state.seed.languages,\r\n client: state.account.currentUser.clientModel,\r\n quotationContact: state.quotationContact,\r\n } as any),\r\n {\r\n ...SelectionStore.actionCreators,\r\n ...QuotationStore.actionCreators,\r\n ...QuotationContactStore.actionCreators,\r\n ...QuotationSettingsStore.actionCreators\r\n })(Quotation) as any","import * as React from 'react';\r\nimport * as Api from '../api/api';\r\nimport * as ForgotPasswordStore from '../store/ForgotPassword';\r\nimport * as FormField from './FormField';\r\nimport * as ReduxForm from 'redux-form';\r\nimport { connect } from 'react-redux';\r\nimport { ApplicationState } from '../store';\r\nimport { getText } from '../utils/langTexts';\r\nimport { NavLink } from 'react-router-dom';\r\nimport * as Colors from '../styles/colors';\r\n\r\ntype ForgotPasswordProps =\r\n ForgotPasswordStore.ForgotPasswordState\r\n & typeof ForgotPasswordStore.actionCreators;\r\n\r\nconst Button = {\r\n background: 'none',\r\n border: `1px solid ${Colors.baseColors.darkGray}`,\r\n borderRadius: 25,\r\n boxShadow: 'none',\r\n color: Colors.baseColors.lightBlue,\r\n height: 35,\r\n padding: '0px 25px',\r\n fontWeight: 700,\r\n MozBoxShadow: \"none\",\r\n WebkitBoxShadow: \"none\",\r\n}\r\nclass ForgotPasswordForm extends React.Component, {}> {\r\n public render() {\r\n return (\r\n \r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n\r\n \r\n
\r\n {getText(\"GenGoBack\")}\r\n
\r\n
\r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\nconst WrappedForgotPasswordForm = ReduxForm.reduxForm({ form: 'forgotPassword' })(ForgotPasswordForm) as React.ComponentClass<{\r\n onSubmit: (values: Api.RequestResetPasswordModel) => void\r\n}>;\r\n\r\n\r\nclass ForgotPassword extends React.Component {\r\n\r\n constructor(props) {\r\n super(props);\r\n }\r\n\r\n componentWillMount() {\r\n\r\n }\r\n\r\n componentWillReceiveProps(nextProps: ForgotPasswordProps) {\r\n\r\n }\r\n\r\n public render() {\r\n return
\r\n
\r\n
\r\n \r\n this.props.requestRequestResetPassword(new Date().getTime(), values)} />\r\n
\r\n
\r\n
\r\n }\r\n}\r\n\r\nexport default connect(\r\n (state: ApplicationState) => ({\r\n ...state.forgotPassword\r\n } as any)\r\n , ForgotPasswordStore.actionCreators\r\n)(ForgotPassword) as any as React.ComponentClass<{ onSubmit: (values: { email: string }) => Promise }>;","import * as React from 'react';\r\nimport * as Api from '../api/api';\r\nimport * as ForgotPasswordStore from '../store/ForgotPassword';\r\nimport * as FormField from './FormField';\r\nimport * as ReduxForm from 'redux-form';\r\nimport * as Colors from \"../styles/colors\";\r\nimport { RouteComponentProps } from 'react-router';\r\nimport { connect } from 'react-redux';\r\nimport { ApplicationState } from '../store';\r\nimport { getText } from '../utils/langTexts';\r\n\r\ntype ResetPasswordProps =\r\n ForgotPasswordStore.ResetPasswordState\r\n & typeof ForgotPasswordStore.actionCreators\r\n & RouteComponentProps<{ token: string }>;\r\n\r\nconst Button = {\r\n background: 'none',\r\n border: `1px solid ${Colors.baseColors.darkGray}`,\r\n borderRadius: 25,\r\n boxShadow: 'none',\r\n color: Colors.baseColors.lightBlue,\r\n backgroundColor: \"white\",\r\n height: 35,\r\n padding: '0px 25px',\r\n fontWeight: 700,\r\n MozBoxShadow: \"none\",\r\n WebkitBoxShadow: \"none\",\r\n}\r\n\r\nconst confirmationValid = (value, allValues: Api.ResetPasswordModel, props) => {\r\n if (allValues.password !== allValues.passwordConfirmation)\r\n return \"Password and confirmation must match\";\r\n\r\n return undefined;\r\n};\r\n\r\nclass ResetPasswordForm extends React.Component, {}> {\r\n public render() {\r\n return (\r\n \r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\nconst WrappedResetPasswordForm = ReduxForm.reduxForm({ form: 'resetPassword' })(ResetPasswordForm) as React.ComponentClass<{\r\n onSubmit: (values: Api.ResetPasswordModel) => void\r\n}>;\r\n\r\n\r\nclass ResetPassword extends React.Component {\r\n\r\n constructor(props) {\r\n super(props);\r\n }\r\n\r\n componentWillMount() {\r\n\r\n }\r\n\r\n componentWillReceiveProps(nextProps: ResetPasswordProps) {\r\n\r\n }\r\n\r\n public render() {\r\n return
\r\n
\r\n
\r\n this.props.requestResetPassword(new Date().getTime(), {\r\n ...values,\r\n token: this.props.match.params.token\r\n })} />\r\n
\r\n
\r\n
\r\n }\r\n}\r\n\r\nexport default connect(\r\n (state: ApplicationState) => ({\r\n ...state.forgotPassword.resetPasswordState\r\n } as any),\r\n ForgotPasswordStore.actionCreators\r\n)(ResetPassword) as any;","import { addTask } from \"../utils/bugFixer\";\r\nimport { Action, Reducer } from 'redux';\r\nimport * as Api from '../api/api';\r\nimport Moment from 'moment';\r\nimport { AppThunkAction } from './';\r\nimport { push } from 'connected-react-router';\r\nimport { getDefaultHeaders } from '../utils/utils';\r\nimport * as Notifications from 'react-notification-system-redux';\r\nimport { ReceiveCurrentUser } from './Account';\r\nimport Download from \"downloadjs\";\r\nimport * as MimeTypes from \"mime-types\";\r\nimport { ResetTodayDate } from './Seed';\r\nimport { downloadQuotationTask } from \"./Quotation\";\r\n\r\n\r\nexport interface QuotationChronoState {\r\n requestTime?: number;\r\n isLoading: boolean;\r\n loadedFilter: Api.QuotationFilterModel;\r\n quotations: Array;\r\n downloadStates: { [id: number]: RequestTime };\r\n updateStates: { [id: number]: RequestTime };\r\n detailsState: QuotationChronoDetailsState;\r\n commentState: QuotationChronoCommentState;\r\n duplicateQuotation?: Api.QuotationModel;\r\n duplicateName?: string;\r\n downloadCsvState: RequestTime;\r\n}\r\n\r\nexport interface QuotationChronoDetailsState {\r\n quotationId?: number;\r\n isOpen: boolean;\r\n}\r\n\r\nexport interface QuotationChronoCommentState {\r\n quotationId?: number;\r\n isOpen: boolean;\r\n requestTime?: number;\r\n isLoading: boolean;\r\n value: string;\r\n}\r\n\r\ninterface RequestTime {\r\n isLoading: boolean;\r\n requestTime?: number;\r\n}\r\n\r\n// -----------------\r\n// ACTIONS - These are serializable (hence replayable) descriptions of state transitions.\r\n// They do not themselves have any side-effects; they just describe something that is going to happen.\r\n// Use @typeName and isActionType for type detection that works even after serialization/deserialization.\r\n\r\ninterface QuotationsRequestQuotations { type: \"QUOTATIONS_REQUEST_QUOTATIONS\"; payload: { requestTime: number; filter: Api.QuotationFilterModel } };\r\ninterface QuotationsReceiveQuotations { type: \"QUOTATIONS_RECEIVE_QUOTATIONS\"; payload: { requestTime: number; quotations: Array }; error?: any };\r\n\r\ninterface QuotationsRequestDownload { type: \"QUOTATIONS_REQUEST_DOWNLOAD\"; payload: { requestTime: number; quotationId: number } };\r\ninterface QuotationsReceiveDownload { type: \"QUOTATIONS_RECEIVE_DOWNLOAD\"; payload: { requestTime: number; quotationId: number }; error?: any };\r\n\r\ninterface QuotationsOpenDetails { type: \"QUOTATIONS_OPEN_DETAILS\"; payload: { quotationId: number } };\r\ninterface QuotationsCloseDetails { type: \"QUOTATIONS_CLOSE_DETAILS\" };\r\ninterface QuotationsSetDuplicate { type: \"QUOTATIONS_SET_DUPLICATE\"; payload: { quotationId: number; } };\r\n\r\ninterface QuotationsRequestUpateStatus {\r\n type: \"QUOTATIONS_REQUEST_UPDATE_STATUS\";\r\n payload: { requestTime: number; quotationId: number; }\r\n};\r\ninterface QuotationsReceiveUpateStatus {\r\n type: \"QUOTATIONS_RECEIVE_UPDATE_STATUS\";\r\n payload: { requestTime: number; quotationId: number; status: Api.QuotationModelStatusEnum };\r\n error?: any;\r\n};\r\n\r\ninterface QuotationsRequestDownloadCsv {\r\n type: \"QUOTATIONS_REQUEST_DOWNLOADCSV\";\r\n payload: { requestTime: number; }\r\n};\r\ninterface QuotationsReceiveDownloadCsv {\r\n type: \"QUOTATIONS_RECEIVE_DOWNLOADCSV\";\r\n payload: { requestTime: number; }\r\n error?: any;\r\n};\r\n\r\ninterface QuotationsOpenComment {\r\n type: \"QUOTATIONS_OPEN_COMMENT\";\r\n payload: { quotationId: number; }\r\n};\r\ninterface QuotationsCloseComment {\r\n type: \"QUOTATIONS_CLOSE_COMMENT\";\r\n};\r\n\r\ninterface QuotationsUpdateComment {\r\n type: \"QUOTATIONS_UPDATE_COMMENT\";\r\n payload: { value: string }\r\n};\r\n\r\n\r\ninterface QuotationsRequestUpateComment {\r\n type: \"QUOTATIONS_REQUEST_UPDATE_COMMENT\";\r\n payload: { requestTime: number; quotationId: number; }\r\n};\r\ninterface QuotationsReceiveUpateComment {\r\n type: \"QUOTATIONS_RECEIVE_UPDATE_COMMENT\";\r\n payload: { requestTime: number; quotationId: number; value: string };\r\n error?: any;\r\n};\r\n\r\n// Declare a 'discriminated union' type. This guarantees that all references to 'type' properties contain one of the\r\n// declared type strings (and not any other arbitrary string).\r\ntype KnownAction = ReceiveCurrentUser\r\n | QuotationsRequestQuotations | QuotationsReceiveQuotations\r\n | QuotationsRequestDownload | QuotationsReceiveDownload\r\n | QuotationsOpenDetails | QuotationsCloseDetails\r\n | QuotationsSetDuplicate\r\n | ResetTodayDate\r\n | QuotationsRequestUpateStatus\r\n | QuotationsReceiveUpateStatus\r\n | QuotationsRequestDownloadCsv\r\n | QuotationsReceiveDownloadCsv\r\n | QuotationsOpenComment\r\n | QuotationsCloseComment\r\n | QuotationsRequestUpateComment\r\n | QuotationsReceiveUpateComment\r\n | QuotationsUpdateComment;\r\n\r\n// ----------------\r\n// ACTION CREATORS - These are functions exposed to UI components that will trigger a state transition.\r\n// They don't directly mutate state, but they can have external side-effects (such as loading data).\r\n\r\nexport const actionCreators = {\r\n requestQuotations: (requestTime: number, filter: Api.QuotationFilterModel): AppThunkAction> => (dispatch, getState) => {\r\n if (getState().quotationChrono.requestTime === requestTime)\r\n return Promise.reject(\"Already did\");\r\n\r\n let api = new Api.QuotationApi();\r\n let task = api.searchQuotations({\r\n model: filter\r\n }, { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(quotations => {\r\n dispatch({ type: \"QUOTATIONS_RECEIVE_QUOTATIONS\", payload: { requestTime: requestTime, quotations: quotations } });\r\n }).catch(error => {\r\n dispatch({ type: \"QUOTATIONS_RECEIVE_QUOTATIONS\", payload: { requestTime: requestTime, quotations: [] }, error: error });\r\n dispatch(Notifications.error({ message: \"Error loading your quotations\", title: \"Error\", position: \"tc\" }) as any);\r\n });\r\n\r\n addTask(task);\r\n dispatch({ type: \"QUOTATIONS_REQUEST_QUOTATIONS\", payload: { requestTime: requestTime, filter: filter } });\r\n return task;\r\n },\r\n requestDownloadQuotation: (requestTime: number, quotationId: number): AppThunkAction> => (dispatch, getState) => {\r\n return downloadQuotationTask(requestTime, quotationId, dispatch, getState);\r\n },\r\n requestUpdateQuotationStatus: (requestTime: number, quotationId: number, status: Api.QuotationModelStatusEnum): AppThunkAction> => (dispatch, getState) => {\r\n let api = new Api.QuotationApi();\r\n let fetchTask = api.updateQuotationStatus(\r\n {\r\n quotationId: quotationId,\r\n status: status\r\n }, { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(receivedStatus => {\r\n dispatch({\r\n type: \"QUOTATIONS_RECEIVE_UPDATE_STATUS\", payload: {\r\n quotationId: quotationId,\r\n requestTime: requestTime,\r\n status: receivedStatus as Api.QuotationModelStatusEnum\r\n }\r\n });\r\n })\r\n .catch(error => {\r\n dispatch({\r\n type: \"QUOTATIONS_RECEIVE_UPDATE_STATUS\", payload: {\r\n quotationId: quotationId,\r\n requestTime: requestTime,\r\n status: null\r\n },\r\n error: error\r\n });\r\n dispatch(Notifications.error({ message: \"Error updating your quotation\", title: \"Error\", position: \"tc\" }) as any);\r\n });\r\n\r\n addTask(fetchTask);\r\n dispatch({ type: \"QUOTATIONS_REQUEST_UPDATE_STATUS\", payload: { quotationId: quotationId, requestTime: requestTime } });\r\n return fetchTask;\r\n },\r\n openQuotationDetails: (quotationId: number) => {\r\n type: \"QUOTATIONS_OPEN_DETAILS\",\r\n payload: { quotationId: quotationId }\r\n },\r\n closeQuotationDetails: () => {\r\n type: \"QUOTATIONS_CLOSE_DETAILS\"\r\n },\r\n openQuotationComment: (quotationId: number) => {\r\n type: \"QUOTATIONS_OPEN_COMMENT\",\r\n payload: { quotationId: quotationId }\r\n },\r\n closeQuotationComment: () => {\r\n type: \"QUOTATIONS_CLOSE_COMMENT\"\r\n },\r\n updateComment: (value: string) => {\r\n type: \"QUOTATIONS_UPDATE_COMMENT\",\r\n payload: { value: value }\r\n },\r\n setQuotationsDuplicate: (quotationId: number): AppThunkAction => (dispatch, getState) => {\r\n let quotation = getState().quotationChrono.quotations\r\n .find(x => x.quotationId === quotationId);\r\n dispatch({\r\n type: \"QUOTATIONS_SET_DUPLICATE\",\r\n payload: { quotationId: quotation.quotationId }\r\n });\r\n dispatch(push(\"/selection/\" + quotation.criteria.code) as any);\r\n },\r\n requestDownloadQuotationCsv: (requestTime: number): AppThunkAction> => (dispatch, getState) => {\r\n let api = new Api.QuotationApi();\r\n let fetchTask = api.downloadQuotationsCsv({\r\n model: getState().quotationChrono.loadedFilter\r\n }, { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(response => response.blob())\r\n .then(blob => {\r\n dispatch({\r\n type: \"QUOTATIONS_RECEIVE_DOWNLOADCSV\",\r\n payload: { requestTime: requestTime }\r\n });\r\n let fileName = `Chrono_Quotations_${Moment().format(\"YYYYMMDD_HHmmSS\")}.csv`;\r\n return Download(blob,\r\n fileName,\r\n MimeTypes.lookup(fileName) || \"text/plain\");\r\n })\r\n .catch(error => {\r\n dispatch({\r\n type: \"QUOTATIONS_RECEIVE_DOWNLOADCSV\",\r\n payload: { requestTime: requestTime },\r\n error: error\r\n });\r\n dispatch(Notifications.error({ message: \"Error downloading your csv\", title: \"Error\", position: \"tc\" }) as any);\r\n });\r\n\r\n dispatch({\r\n type: \"QUOTATIONS_REQUEST_DOWNLOADCSV\",\r\n payload: { requestTime: requestTime }\r\n });\r\n return fetchTask;\r\n },\r\n requestUpdateComment: (requestTime: number): AppThunkAction> => (dispatch, getState) => {\r\n let api = new Api.QuotationApi();\r\n let quotationId = getState().quotationChrono.commentState.quotationId;\r\n let comment = getState().quotationChrono.commentState.value;\r\n let fecthTask = api.updateQuotationComment({ quotationId: quotationId, comment: comment },\r\n { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then((value) => {\r\n dispatch({\r\n type: \"QUOTATIONS_RECEIVE_UPDATE_COMMENT\",\r\n payload: {\r\n requestTime: requestTime,\r\n quotationId: quotationId,\r\n value: comment\r\n }\r\n });\r\n })\r\n .catch(err => {\r\n dispatch({\r\n type: \"QUOTATIONS_RECEIVE_UPDATE_COMMENT\",\r\n payload: {\r\n requestTime: requestTime,\r\n quotationId: quotationId,\r\n value: comment\r\n },\r\n error: err\r\n });\r\n });\r\n\r\n dispatch({\r\n type: \"QUOTATIONS_REQUEST_UPDATE_COMMENT\",\r\n payload: { requestTime: requestTime, quotationId: quotationId }\r\n });\r\n return fecthTask;\r\n }\r\n};\r\n// ----------------\r\n// REDUCER - For a given state and action, returns the new state. To support time travel, this must not mutate the old state.\r\n\r\nconst unloadedState: QuotationChronoState = {\r\n isLoading: false,\r\n requestTime: 0,\r\n loadedFilter: {\r\n dateBegin: Moment().add(-7, 'days').toDate(),\r\n dateEnd: Moment().toDate()\r\n },\r\n quotations: [],\r\n downloadStates: {},\r\n updateStates: {},\r\n detailsState: {\r\n isOpen: false,\r\n },\r\n commentState: {\r\n isOpen: false,\r\n isLoading: false,\r\n value: \"\"\r\n },\r\n downloadCsvState: {\r\n isLoading: false,\r\n requestTime: 0\r\n }\r\n};\r\n\r\nexport const reducer: Reducer = (state: QuotationChronoState, incomingAction: Action) => {\r\n const action = incomingAction as KnownAction;\r\n switch (action.type) {\r\n case \"RECEIVE_CURRENT_USER\":\r\n return unloadedState;\r\n case \"QUOTATIONS_REQUEST_QUOTATIONS\":\r\n return {\r\n ...state,\r\n isLoading: true,\r\n requestTime: action.payload.requestTime,\r\n loadedFilter: action.payload.filter\r\n };\r\n case \"QUOTATIONS_RECEIVE_QUOTATIONS\":\r\n if (state.requestTime !== action.payload.requestTime)\r\n return state;\r\n\r\n return {\r\n ...state,\r\n isLoading: false,\r\n quotations: action.error\r\n ? state.quotations\r\n : action.payload.quotations\r\n };\r\n case \"QUOTATIONS_REQUEST_DOWNLOAD\":\r\n return {\r\n ...state,\r\n downloadStates: {\r\n ...state.downloadStates,\r\n [action.payload.quotationId]: {\r\n ...state.downloadStates[action.payload.quotationId],\r\n isLoading: true,\r\n requestTime: action.payload.requestTime\r\n }\r\n }\r\n };\r\n case \"QUOTATIONS_RECEIVE_DOWNLOAD\":\r\n if (state.downloadStates[action.payload.quotationId]\r\n && state.downloadStates[action.payload.quotationId].requestTime !== action.payload.requestTime)\r\n return state;\r\n\r\n return {\r\n ...state,\r\n downloadStates: {\r\n ...state.downloadStates,\r\n [action.payload.quotationId]: {\r\n ...state.downloadStates[action.payload.quotationId],\r\n isLoading: false\r\n }\r\n }\r\n };\r\n case \"QUOTATIONS_REQUEST_UPDATE_STATUS\":\r\n return {\r\n ...state,\r\n updateStates: {\r\n ...state.updateStates,\r\n [action.payload.quotationId]: {\r\n ...state.updateStates[action.payload.quotationId],\r\n isLoading: true,\r\n requestTime: action.payload.requestTime\r\n }\r\n }\r\n };\r\n case \"QUOTATIONS_RECEIVE_UPDATE_STATUS\":\r\n if (state.updateStates[action.payload.quotationId]\r\n && state.updateStates[action.payload.quotationId].requestTime !== action.payload.requestTime)\r\n return state;\r\n\r\n return {\r\n ...state,\r\n updateStates: {\r\n ...state.updateStates,\r\n [action.payload.quotationId]: {\r\n ...state.updateStates[action.payload.quotationId],\r\n isLoading: false\r\n }\r\n },\r\n quotations: action.error\r\n ? state.quotations\r\n : state.quotations\r\n .map(x => x.quotationId === action.payload.quotationId ? { ...x, status: action.payload.status } : x)\r\n };\r\n case \"QUOTATIONS_OPEN_DETAILS\":\r\n return {\r\n ...state,\r\n detailsState: {\r\n ...state.detailsState,\r\n isOpen: true,\r\n quotationId: action.payload.quotationId\r\n }\r\n };\r\n case \"QUOTATIONS_CLOSE_DETAILS\":\r\n return {\r\n ...state,\r\n detailsState: {\r\n ...state.detailsState,\r\n isOpen: false\r\n }\r\n };\r\n case \"QUOTATIONS_SET_DUPLICATE\":\r\n return {\r\n ...state,\r\n duplicateQuotation: state.quotations\r\n .find(x => x.quotationId === action.payload.quotationId)\r\n };\r\n case \"RESET_TODAY_DATE\":\r\n return {\r\n ...state,\r\n loadedFilter: {\r\n ...state.loadedFilter,\r\n }\r\n };\r\n case \"QUOTATIONS_REQUEST_DOWNLOADCSV\":\r\n return {\r\n ...state,\r\n downloadCsvState: {\r\n requestTime: action.payload.requestTime,\r\n isLoading: true\r\n }\r\n };\r\n case \"QUOTATIONS_RECEIVE_DOWNLOADCSV\":\r\n return {\r\n ...state,\r\n downloadCsvState: {\r\n isLoading: action.payload.requestTime === state.downloadCsvState.requestTime\r\n ? false\r\n : state.downloadCsvState.isLoading\r\n }\r\n };\r\n case \"QUOTATIONS_OPEN_COMMENT\":\r\n return {\r\n ...state,\r\n commentState: {\r\n ...state.commentState,\r\n isOpen: true,\r\n quotationId: action.payload.quotationId,\r\n value: state.quotations.find(x => x.quotationId === action.payload.quotationId).comment\r\n }\r\n };\r\n case \"QUOTATIONS_CLOSE_COMMENT\":\r\n return {\r\n ...state,\r\n commentState: {\r\n ...state.commentState,\r\n isOpen: false,\r\n quotationId: undefined\r\n }\r\n };\r\n case \"QUOTATIONS_REQUEST_UPDATE_COMMENT\":\r\n return {\r\n ...state,\r\n commentState: {\r\n ...state.commentState,\r\n isLoading: true,\r\n requestTime: action.payload.requestTime\r\n }\r\n };\r\n case \"QUOTATIONS_RECEIVE_UPDATE_COMMENT\":\r\n return {\r\n ...state,\r\n commentState: {\r\n ...state.commentState,\r\n isLoading: false,\r\n value: action.error\r\n ? state.quotations.find(x => x.quotationId === action.payload.quotationId).comment\r\n : action.payload.value\r\n },\r\n quotations: action.error\r\n ? state.quotations\r\n .map(x => x.quotationId === action.payload.quotationId\r\n ? {\r\n ...x,\r\n comment: action.payload.value\r\n }\r\n : x)\r\n : state.quotations\r\n };\r\n case \"QUOTATIONS_UPDATE_COMMENT\":\r\n return {\r\n ...state,\r\n commentState: {\r\n ...state.commentState,\r\n value: action.payload.value\r\n }\r\n };\r\n default:\r\n // The following line guarantees that every action in the KnownAction union has been covered by a case above\r\n const exhaustiveCheck: never = action;\r\n }\r\n\r\n // For unrecognized actions (or in cases where actions have no effect), must return the existing state\r\n // (or default initial state if none was supplied)\r\n return state || unloadedState;\r\n};\r\n","import * as React from 'react';\r\nimport * as _ from 'lodash';\r\nimport * as ReduxForm from 'redux-form';\r\nimport { connect } from 'react-redux';\r\nimport * as Api from '../api/api';\r\nimport { ApplicationState } from '../store';\r\nimport * as FormField from './FormField';\r\nimport { getText } from \"../utils/langTexts\";\r\nimport Button from \"./Button\";\r\n\r\ntype QuotationChronoFilterFormProps = ReduxForm.InjectedFormProps & QuotationChronoFilterFormOwnProps;\r\n\r\ninterface QuotationChronoFilterFormOwnProps {\r\n carriers: { [id: number]: Api.CarrierModel };\r\n}\r\ninterface QuotationChronoFilterFormExternalProps {\r\n onSubmit: (values: Api.QuotationFilterModel) => Promise;\r\n}\r\n\r\nconst searchFieldStyle: React.CSSProperties = {\r\n flex: \"0 0 auto\",\r\n display: \"flex\",\r\n flexDirection: \"row\",\r\n alignItems: \"center\"\r\n}\r\nconst labelFieldStyle: React.CSSProperties = {\r\n marginRight: \"0.5em\",\r\n marginTop: \"4px\"\r\n}\r\nconst trafficTypeOptions = (): Array<{ label: string; value: Api.QuotationFilterModelTrafficTypeEnum }> => [\r\n { label: getText(\"GenTrafficTypeImport\"), value: \"Import\" },\r\n { label: getText(\"GenTrafficTypeExport\"), value: \"Export\" },\r\n { label: getText(\"GenTrafficTypeCrossTrade\"), value: \"CrossTrade\" }\r\n];\r\n\r\nconst originLocationField = FormField.getLocationField(\"CHRONO_FILTER_ORIGIN\");\r\nconst destinationLocationField = FormField.getLocationField(\"CHRONO_FILTER_DESTINATION\");\r\n\r\nclass QuotationChronoFilterForm extends React.Component {\r\n public render() {\r\n return (\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n ({\r\n label: x.name,\r\n value: x.carrierId\r\n })))} />\r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n {getText(\"QtnChronoSearch\")}\r\n \r\n
\r\n
\r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\nconst form = ReduxForm.reduxForm({\r\n form: 'quotationChronoFilter',\r\n destroyOnUnmount: false,\r\n enableReinitialize: true\r\n})(QuotationChronoFilterForm) as any;\r\nconst selector = ReduxForm.formValueSelector('quotationChronoFilter')\r\n\r\nexport default connect((state: ApplicationState) => {\r\n return {\r\n initialValues: state.quotationChrono.loadedFilter,\r\n carriers: state.seed.carriers\r\n } as QuotationChronoFilterFormOwnProps;\r\n})(form) as any as React.ComponentClass","import * as Api from '../api/api';\r\nimport * as React from 'react';\r\nimport DialogModal from \"./DialogModal\";\r\nimport Table, { Column } from \"./Table\";\r\nimport { quotationColumns } from './QuotationChrono';\r\nimport { getText } from '../utils/langTexts';\r\n\r\ninterface QuotationChronoDetailsDialogProps {\r\n carriers: { [id: number]: Api.CarrierModel };\r\n sizeTypes: { [id: number]: Api.SizeTypeModel };\r\n quotation: Api.QuotationModel;\r\n isOpen: boolean;\r\n onRequestClose: () => void;\r\n requestDownloadQuotation: (quotationId: number) => void;\r\n}\r\n\r\nexport default class QuotationChronoDetailsDialog extends React.Component {\r\n public render() {\r\n return ( this.props.onRequestClose()}>\r\n
\r\n

{getText(\"GenPrevVersion\")}

\r\n
\r\n {this.props.quotation && d,\r\n cell: row => {\r\n let quotation = row as Api.QuotationModel;\r\n let criteriaCode = quotation.criteria.code;\r\n let chargeSetId = quotation.quotationOffers[0].carrierOffer.chargeSet\r\n ? quotation.quotationOffers[0].carrierOffer.chargeSet.chargeSetId\r\n : null;\r\n let departId = quotation.quotationOffers[0].departId;\r\n\r\n return \r\n }\r\n }] as Array>)}\r\n rowsPerPage={5}\r\n noDataText=\"\"\r\n showPagination={true} />}\r\n
\r\n
\r\n
);\r\n }\r\n}","import * as Api from '../api/api';\r\nimport * as React from 'react';\r\nimport * as Colors from '../styles/colors';\r\nimport DialogModal from \"./DialogModal\";\r\nimport { getText } from '../utils/langTexts';\r\n\r\ninterface QuotationChronoCommentDialogProps {\r\n quotation: Api.QuotationModel;\r\n isOpen: boolean;\r\n isLoading: boolean;\r\n commentValue: string;\r\n onRequestClose: () => void;\r\n updateComment: (value: string) => void;\r\n requestUpdateQuotationComment: () => void;\r\n}\r\n\r\nexport default class QuotationChronoCommentDialog extends React.Component {\r\n public render() {\r\n return (\r\n this.props.onRequestClose()}>\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n );\r\n }\r\n}","import * as React from 'react';\r\nimport Moment from 'moment';\r\nimport { connect } from 'react-redux';\r\nimport * as Api from '../api/api';\r\nimport { ApplicationState } from '../store';\r\nimport * as QuotationChronoStore from \"../store/QuotationChrono\";\r\nimport QuotationChronoFilterForm from \"./QuotationChronoFilterForm\";\r\nimport { getText } from '../utils/langTexts';\r\nimport Loader from './Loader';\r\nimport Button from './Button';\r\nimport Table, { Column } from './Table';\r\nimport Tooltip from './Tooltip';\r\nimport QuotationChronoDetailsDialog from \"./QuotationChronoDetailsDialog\";\r\nimport QuotationChronoCommentDialog from \"./QuotationChronoCommentDialog\";\r\nimport { getQuotationContactName } from '../utils/utils';\r\nimport { CSSProperties } from 'react';\r\n\r\ntype QuotationChronoProps = QuotationChronoStore.QuotationChronoState\r\n & QuotationChronoOwnProps\r\n & typeof QuotationChronoStore.actionCreators;\r\n\r\ninterface QuotationChronoOwnProps {\r\n carriers: { [id: number]: Api.CarrierModel };\r\n sizeTypes: { [id: number]: Api.SizeTypeModel };\r\n}\r\n\r\ntype QuotationColumn = Column;\r\n\r\nexport const quotationColumns = (props: QuotationChronoOwnProps) => [\r\n {\r\n id: \"creationDate\",\r\n header: \"created on\",\r\n accessor: (d) => d.creationDate,\r\n cell: row =>
{Moment(row).format(\"DD/MM/YYYY\")}
\r\n },\r\n {\r\n id: \"reference\",\r\n header: \"reference\",\r\n accessor: (d) => d.reference,\r\n },\r\n {\r\n id: \"author\",\r\n header: \"author\",\r\n accessor: (d) => d.author,\r\n },\r\n {\r\n id: \"clientContact\",\r\n header: \"client\",\r\n accessor: (d) => getQuotationContactName(d.clientContact),\r\n },\r\n {\r\n id: \"originInfo\",\r\n header: \"origin\",\r\n accessor: (d) => d.originInfo,\r\n },\r\n {\r\n id: \"pol\",\r\n header: \"POL\",\r\n accessor: (d) => d.criteria.origin.name,\r\n },\r\n {\r\n id: \"pod\",\r\n header: \"POD\",\r\n accessor: (d) => d.criteria.destination.name,\r\n },\r\n {\r\n id: \"destinationInfo\",\r\n header: \"destination\",\r\n accessor: (d) => d.destinationInfo,\r\n },\r\n {\r\n id: \"carrier\",\r\n header: \"carrier\",\r\n accessor: (d) => d.quotationOffers[0]\r\n ? (d.quotationOffers[0].carrierOffer.carrierId>0 ? props.carriers[d.quotationOffers[0].carrierOffer.carrierId].name : \"-\")\r\n : \"\",\r\n },\r\n {\r\n id: \"trafficName\",\r\n header: \"traffic name\",\r\n accessor: (d) => d.serviceName,\r\n },\r\n {\r\n id: \"containers\",\r\n header: \"containers\",\r\n accessor: (d) => d.criteria.criteriaSizeTypes\r\n .filter(x => x.number > 0)\r\n .map(x => `${x.number}x${props.sizeTypes[x.sizeTypeId].name}`)\r\n .join(\" \"),\r\n },\r\n] as Array;\r\n\r\nconst iconLinkStyle: CSSProperties = {\r\n marginRight: 4, cursor: \"pointer\"\r\n};\r\nconst iconStyle: CSSProperties = {\r\n height: 12,\r\n margin: \"0px 3px\"\r\n};\r\nconst title: CSSProperties = {\r\n margin: \"1em 0 1em 2em\"\r\n};\r\n\r\n\r\nclass QuotationChrono extends React.Component {\r\n\r\n public render() {\r\n return (
\r\n

{getText(\"GenQuotations\")} :

\r\n
\r\n {\r\n return this.props.requestQuotations(new Date().getTime(), values) as any;\r\n }} />\r\n
\r\n
\r\n this.props.requestDownloadQuotationCsv(new Date().getTime())}\r\n type={\"submit\"}>\r\n {getText(\"QtnQuotationDownloadCsv\")}\r\n \r\n
\r\n
\r\n
\r\n ({\r\n height: 30\r\n })}\r\n columns={quotationColumns(this.props).concat([\r\n {\r\n id: \"status\",\r\n header:
Status
,\r\n accessor: d => d,\r\n cell: row => {\r\n let quotation = row as Api.QuotationModel;\r\n return
\r\n
this.props.requestUpdateQuotationStatus(new Date().getTime(), quotation.quotationId, \"Success\")}>\r\n Success \r\n
\r\n
|
\r\n
this.props.requestUpdateQuotationStatus(new Date().getTime(), quotation.quotationId, \"Failure\")}>\r\n Failure \r\n
\r\n
\r\n }\r\n },\r\n {\r\n id: \"comment\",\r\n header:
{getText(\"QtnChronoComment\")}
,\r\n accessor: d => d,\r\n cell: row => {\r\n let quotation = row as Api.QuotationModel;\r\n return (\r\n
\r\n
\r\n {quotation.comment}
}>\r\n
\r\n {(quotation.comment || \"\").substring(0, 8)}\r\n {quotation.comment && quotation.comment.length > 8 && \"...\"}\r\n
\r\n \r\n
\r\n
\r\n this.props.openQuotationComment(quotation.quotationId)}>\r\n
\r\n
\r\n );\r\n }\r\n },\r\n {\r\n id: \"actions\",\r\n header: \"\",\r\n width: 300,\r\n accessor: (d) => d,\r\n cell: row => {\r\n let quotation = row as Api.QuotationModel;\r\n let criteriaCode = quotation.criteria.code;\r\n if (!quotation.quotationOffers[0])\r\n return
;\r\n\r\n let chargeSetId = quotation.quotationOffers[0].carrierOffer.chargeSet\r\n ? quotation.quotationOffers[0].carrierOffer.chargeSet.chargeSetId\r\n : null;\r\n let departId = quotation.quotationOffers[0].departId;\r\n let routeId = quotation.quotationOffers[0].carrierOffer.routeId;\r\n\r\n return
\r\n {getText(\"QtnChronoDetails\")}
} placement={\"top\"}>\r\n {\r\n this.props.openQuotationDetails(quotation.quotationId);\r\n e.preventDefault();\r\n }} style={iconLinkStyle}>\r\n \r\n {\" \"}\r\n {getText(\"QtnChronoDownload\")}
} placement={\"top\"}>\r\n {\r\n this.props.requestDownloadQuotation(new Date().getTime(), quotation.quotationId);\r\n e.preventDefault();\r\n }} style={iconLinkStyle}>\r\n \r\n {\" \"}\r\n {getText(\"QtnChronoEdit\")}
} placement={\"top\"}>\r\n \r\n \r\n \r\n \r\n {\" \"}\r\n {getText(\"QtnChronoDuplicate\")}} placement={\"top\"}>\r\n \r\n \r\n \r\n \r\n {\" \"}\r\n {getText(\"QtnChronoDuplicateSearch\")}} placement={\"top\"}>\r\n {\r\n this.props.setQuotationsDuplicate(quotation.quotationId);\r\n e.preventDefault();\r\n }}>\r\n \r\n \r\n \r\n {\" \"}\r\n {\"Go back to offers\"}} placement={\"top\"}>\r\n \r\n \r\n \r\n \r\n \r\n }\r\n }] as Array>)}\r\n rowsPerPage={12}\r\n showPageSizeOptions={false}\r\n showPagination={true}\r\n isLoading={this.props.isLoading}\r\n loadingComponent={() => }\r\n noDataText=\"No quotations, please use the filter above\" />\r\n \r\n \r\n x.quotationId === this.props.detailsState.quotationId)}\r\n onRequestClose={() => this.props.closeQuotationDetails()}\r\n requestDownloadQuotation={(quotationId) => this.props.requestDownloadQuotation(new Date().getTime(), quotationId)} />\r\n x.quotationId === this.props.commentState.quotationId)}\r\n commentValue={this.props.commentState.value}\r\n updateComment={(value) => this.props.updateComment(value)}\r\n onRequestClose={() => this.props.closeQuotationComment()}\r\n requestUpdateQuotationComment={() => this.props.requestUpdateComment(new Date().getTime())} />\r\n );\r\n }\r\n}\r\n\r\nexport default connect((state: ApplicationState) => ({\r\n ...state.quotationChrono,\r\n carriers: state.seed.carriers,\r\n sizeTypes: state.seed.sizeTypes\r\n} as any), QuotationChronoStore.actionCreators)(QuotationChrono) as any;","import { addTask } from \"../utils/bugFixer\";\r\nimport { Action, Reducer } from 'redux';\r\nimport * as Api from '../api/api';\r\nimport Moment from 'moment';\r\nimport * as Notifications from 'react-notification-system-redux';\r\nimport * as _ from 'lodash';\r\nimport { AppThunkAction } from './';\r\nimport { push } from 'connected-react-router';\r\nimport { getDefaultHeaders } from '../utils/utils';\r\nimport { ResetTodayDate } from './Seed';\r\nimport {formValueSelector} from \"redux-form\";\r\n\r\nexport interface InlandCriteriaState {\r\n requestTime?: number;\r\n isLoading: boolean;\r\n inlandCriteria?: Api.InlandCriteriaModel;\r\n createState: {\r\n requestTime?: number;\r\n isLoading: boolean;\r\n }\r\n}\r\n\r\ninterface RequestInlandCriteria {\r\n type: \"REQUEST_INLAND_CRITERIA\";\r\n payload: { requestTime: number };\r\n}\r\ninterface ReceiveInlandCriteria {\r\n type: \"RECEIVE_INLAND_CRITERIA\";\r\n payload: { requestTime: number; inlandCriteria?: Api.InlandCriteriaModel; };\r\n error?: any;\r\n}\r\n\r\n\r\ninterface RequestCreateInlandCriteria {\r\n type: \"REQUEST_CREATE_INLAND_CRITERIA\";\r\n payload: { requestTime: number };\r\n}\r\ninterface ReceiveCreateInlandCriteria {\r\n type: \"RECEIVE_CREATE_INLAND_CRITERIA\";\r\n payload: { requestTime: number; inlandCriteria?: Api.InlandCriteriaModel; };\r\n error?: any;\r\n}\r\n\r\ninterface UpdateInlandCriteriaSizeType {\r\n type: \"UPDATE_INLAND_CRITERIA_SIZETYPE\";\r\n payload: { sizeTypeId: number; value: number; };\r\n}\r\n\r\ninterface UpdateInlandCriteriaDateBegin {\r\n type: \"UPDATE_INLAND_CRITERIA_DATEBEGIN\";\r\n payload: { value: Date };\r\n}\r\ninterface UpdateInlandCriteriaDateEnd {\r\n type: \"UPDATE_INLAND_CRITERIA_DATEEND\";\r\n payload: { value: Date };\r\n}\r\n\r\ninterface UpdateInlandCriteriaOrigin {\r\n type: \"UPDATE_INLAND_CRITERIA_ORIGIN\";\r\n payload: { value: Api.LocationModel };\r\n}\r\ninterface UpdateInlandCriteriaDestination {\r\n type: \"UPDATE_INLAND_CRITERIA_DESTINATION\";\r\n payload: { value: Api.LocationModel };\r\n}\r\ninterface UpdateInlandCriteriaPriceDisplay {\r\n type: \"UPDATE_INLAND_CRITERIA_PRICEDISPLAY\";\r\n payload: { value: Api.InlandCriteriaModelPriceDisplayModeEnum };\r\n}\r\ninterface UpdateInlandCriteriaCarrierRates {\r\n type: \"UPDATE_INLAND_CRITERIA_CARRIERRATES\";\r\n payload: { value: boolean; };\r\n}\r\n\r\n\r\ninterface ResetInlandCriteria {\r\n type: \"RESET_INLAND_CRITERIA\";\r\n}\r\n\r\ninterface SelectInlandContainerType {\r\n type: 'SELECT_INLAND_CONTAINER_TYPE',\r\n payload: { value: Api.CriteriaModelContainerTypeEnum; sizeTypes: Array; inlandCriteriaSizeTypes: Array }\r\n}\r\ninterface UpdateInlandChargeCriteria { type: 'UPDATE_INLAND_CHARGE_CRITERIA', value: Array }\r\n\r\ntype KnownAction = RequestInlandCriteria\r\n | ReceiveInlandCriteria\r\n | RequestCreateInlandCriteria\r\n | ReceiveCreateInlandCriteria\r\n | ResetInlandCriteria\r\n | UpdateInlandCriteriaSizeType\r\n | UpdateInlandCriteriaDateBegin\r\n | UpdateInlandCriteriaDateEnd\r\n | UpdateInlandCriteriaOrigin\r\n | UpdateInlandCriteriaDestination\r\n | UpdateInlandCriteriaPriceDisplay\r\n | ResetTodayDate\r\n | SelectInlandContainerType\r\n | UpdateInlandChargeCriteria\r\n | UpdateInlandCriteriaCarrierRates\r\n ;\r\n\r\nconst formSelector = formValueSelector('inlandCriteria')\r\nexport const actionCreators = {\r\n requestInlandCriteria: (requestTime: number, code: string): AppThunkAction> => (dispatch, getState) => {\r\n let api = new Api.InlandCriteriaApi();\r\n let task = api.getCriteriaByCode({\r\n code: code\r\n }, { cridentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(inlandCriteria => {\r\n dispatch({\r\n type: \"RECEIVE_INLAND_CRITERIA\",\r\n payload: {\r\n requestTime: requestTime,\r\n inlandCriteria: inlandCriteria\r\n }\r\n });\r\n return inlandCriteria;\r\n })\r\n .catch(err => {\r\n dispatch({\r\n type: \"RECEIVE_INLAND_CRITERIA\",\r\n payload: {\r\n requestTime: requestTime,\r\n },\r\n error: err\r\n });\r\n dispatch(Notifications.error({ message: \"Error fetching criteria\", title: \"Error\", position: \"tc\" }) as any);\r\n });\r\n\r\n dispatch({\r\n type: \"REQUEST_INLAND_CRITERIA\",\r\n payload: { requestTime: requestTime }\r\n });\r\n addTask(task);\r\n return task;\r\n },\r\n requestCreateInlandCriteria: (requestTime: number, model: Api.InlandCriteriaModel): AppThunkAction> => (dispatch, getState) => {\r\n let api = new Api.InlandCriteriaApi();\r\n let task = api.createCriteria({\r\n model: model\r\n }, { cridentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(inlandCriteria => {\r\n dispatch({\r\n type: \"RECEIVE_CREATE_INLAND_CRITERIA\",\r\n payload: {\r\n requestTime: requestTime,\r\n inlandCriteria: inlandCriteria\r\n }\r\n });\r\n return inlandCriteria;\r\n })\r\n .catch(err => {\r\n dispatch({\r\n type: \"RECEIVE_CREATE_INLAND_CRITERIA\",\r\n payload: {\r\n requestTime: requestTime,\r\n },\r\n error: err\r\n });\r\n dispatch(Notifications.error({ message: \"Error creating criteria\", title: \"Error\", position: \"tc\" }) as any);\r\n });\r\n\r\n dispatch({\r\n type: \"REQUEST_CREATE_INLAND_CRITERIA\",\r\n payload: { requestTime: requestTime }\r\n });\r\n addTask(task);\r\n return task;\r\n },\r\n selectContainerType: (value: Api.CriteriaModelContainerTypeEnum): AppThunkAction => (dispatch, getState) => {\r\n dispatch({\r\n type: 'SELECT_INLAND_CONTAINER_TYPE',\r\n payload: {\r\n value: value,\r\n //We send the new sizetypes the form has to display here\r\n //Because we dont have it in the criteria part of the store tree\r\n //Using the middleware to gather wanted part of the tree is ok, keep it simple though\r\n sizeTypes: _.values(getState().seed.sizeTypes)\r\n .filter(st => st.type === value && (st.position < 4)),\r\n inlandCriteriaSizeTypes: formSelector(getState(), \"inlandCriteriaSizeTypes\")\r\n || getState().inlandCriteria.inlandCriteria.inlandCriteriaSizeTypes\r\n }\r\n });\r\n },\r\n updateChargeCriteria: (value: Array) => { type: 'UPDATE_INLAND_CHARGE_CRITERIA', value: value },\r\n resetInlandCriteria: () => {\r\n type: \"RESET_INLAND_CRITERIA\"\r\n },\r\n updateInlandCriteriaSizeType: (sizeTypeId: number, value: number) => {\r\n type: \"UPDATE_INLAND_CRITERIA_SIZETYPE\",\r\n payload: { sizeTypeId: sizeTypeId, value: value }\r\n },\r\n updateInlandCriteriaDateBegin: (value: Date) => {\r\n type: \"UPDATE_INLAND_CRITERIA_DATEBEGIN\",\r\n payload: { value: value }\r\n },\r\n updateInlandCriteriaDateEnd: (value: Date) => {\r\n type: \"UPDATE_INLAND_CRITERIA_DATEEND\",\r\n payload: { value: value }\r\n },\r\n updateInlandCriteriaOrigin: (value: Api.LocationModel) => {\r\n type: \"UPDATE_INLAND_CRITERIA_ORIGIN\",\r\n payload: { value: value }\r\n },\r\n updateInlandCriteriaDestination: (value: Api.LocationModel) => {\r\n type: \"UPDATE_INLAND_CRITERIA_DESTINATION\",\r\n payload: { value: value }\r\n },\r\n updateInlandCriteriaPriceDisplay: (value: Api.InlandCriteriaModelPriceDisplayModeEnum) => {\r\n type: \"UPDATE_INLAND_CRITERIA_PRICEDISPLAY\",\r\n payload: { value: value }\r\n },\r\n updateInlandCriteriaCarrierRates: (value: boolean) => {\r\n type: \"UPDATE_INLAND_CRITERIA_CARRIERRATES\",\r\n payload: { value: value }\r\n },\r\n goToSelection: (code: string): AppThunkAction => (dispatch, getState) => {\r\n dispatch(push(`/inland/selection/${getState().inlandCriteria.inlandCriteria.code}`) as any);\r\n }\r\n};\r\n\r\nconst unloadedState: InlandCriteriaState = {\r\n inlandCriteria: {\r\n containerType: \"Dry\",\r\n inlandCriteriaSizeTypes: [\r\n { sizeTypeId: 1, number: 0 },\r\n { sizeTypeId: 2, number: 0 },\r\n { sizeTypeId: 3, number: 0 }\r\n ],\r\n chargeCriterias: [],\r\n dateBegin: Moment().startOf(\"day\").toDate(),\r\n dateEnd: Moment().startOf(\"day\").add(1, \"month\").toDate(),\r\n },\r\n isLoading: false,\r\n createState: {\r\n isLoading: false\r\n }\r\n};\r\n\r\nexport const reducer: Reducer = (state: InlandCriteriaState, incomingAction: Action) => {\r\n const action = incomingAction as KnownAction;\r\n switch (action.type) {\r\n case \"REQUEST_INLAND_CRITERIA\":\r\n return {\r\n ...state,\r\n requestTime: action.payload.requestTime,\r\n isLoading: true\r\n };\r\n case \"RECEIVE_INLAND_CRITERIA\":\r\n if (state.requestTime !== action.payload.requestTime)\r\n return state;\r\n\r\n return {\r\n ...state,\r\n isLoading: false,\r\n inlandCriteria: action.error\r\n ? state.inlandCriteria\r\n : action.payload.inlandCriteria\r\n };\r\n case \"REQUEST_CREATE_INLAND_CRITERIA\":\r\n return {\r\n ...state,\r\n createState: {\r\n ...state.createState,\r\n requestTime: action.payload.requestTime,\r\n isLoading: true\r\n }\r\n };\r\n case \"RECEIVE_CREATE_INLAND_CRITERIA\":\r\n if (state.createState.requestTime !== action.payload.requestTime)\r\n return state;\r\n\r\n return {\r\n ...state,\r\n createState: {\r\n ...state.createState,\r\n isLoading: false\r\n },\r\n inlandCriteria: action.error\r\n ? state.inlandCriteria\r\n : action.payload.inlandCriteria\r\n };\r\n case \"RESET_INLAND_CRITERIA\":\r\n return {\r\n ...state,\r\n inlandCriteria: unloadedState.inlandCriteria\r\n };\r\n case \"UPDATE_INLAND_CRITERIA_DATEBEGIN\":\r\n return {\r\n ...state,\r\n inlandCriteria: {\r\n ...state.inlandCriteria,\r\n dateBegin: action.payload.value\r\n }\r\n };\r\n case \"UPDATE_INLAND_CRITERIA_DATEEND\":\r\n return {\r\n ...state,\r\n inlandCriteria: {\r\n ...state.inlandCriteria,\r\n dateEnd: action.payload.value\r\n }\r\n };\r\n case \"UPDATE_INLAND_CRITERIA_ORIGIN\":\r\n return {\r\n ...state,\r\n inlandCriteria: {\r\n ...state.inlandCriteria,\r\n origin: action.payload.value\r\n }\r\n };\r\n case \"UPDATE_INLAND_CRITERIA_DESTINATION\":\r\n return {\r\n ...state,\r\n inlandCriteria: {\r\n ...state.inlandCriteria,\r\n destination: action.payload.value\r\n }\r\n };\r\n case \"UPDATE_INLAND_CRITERIA_PRICEDISPLAY\":\r\n return {\r\n ...state,\r\n inlandCriteria: {\r\n ...state.inlandCriteria,\r\n priceDisplayMode: action.payload.value\r\n }\r\n };\r\n case \"UPDATE_INLAND_CRITERIA_SIZETYPE\":\r\n return {\r\n ...state,\r\n inlandCriteria: {\r\n ...state.inlandCriteria,\r\n inlandCriteriaSizeTypes: state.inlandCriteria.inlandCriteriaSizeTypes\r\n .map(x => x.sizeTypeId === action.payload.sizeTypeId\r\n ? { ...x, number: action.payload.value }\r\n : x)\r\n }\r\n };\r\n case \"RESET_TODAY_DATE\":\r\n return {\r\n ...state,\r\n inlandCriteria: {\r\n ...state.inlandCriteria,\r\n dateBegin: Moment(action.payload.today).utc().add(0, \"days\").toDate(),\r\n dateEnd: Moment(action.payload.today).utc().add(1, \"months\").toDate()\r\n }\r\n };\r\n case 'SELECT_INLAND_CONTAINER_TYPE':\r\n return {\r\n ...state,\r\n inlandCriteria: {\r\n ...state.inlandCriteria,\r\n containerType: action.payload.value,\r\n inlandCriteriaSizeTypes: action.payload.sizeTypes.map((st, i) => {\r\n return {\r\n sizeTypeId: st.sizeTypeId,\r\n number: action.payload.inlandCriteriaSizeTypes[i]\r\n ? action.payload.inlandCriteriaSizeTypes[i].number\r\n : 0,\r\n criteriaSizeTypeId: 0\r\n }\r\n })\r\n }\r\n };\r\n case \"UPDATE_INLAND_CHARGE_CRITERIA\":\r\n return {\r\n ...state,\r\n inlandCriteria: {\r\n ...state.inlandCriteria,\r\n chargeCriterias: action.value\r\n }\r\n };\r\n case \"UPDATE_INLAND_CRITERIA_CARRIERRATES\":\r\n return {\r\n ...state,\r\n inlandCriteria: {\r\n ...state.inlandCriteria,\r\n includeCarrierRates: action.payload.value\r\n }\r\n };\r\n default:\r\n // The following line guarantees that every action in the KnownAction union has been covered by a case above\r\n const exhaustiveCheck: never = action;\r\n }\r\n\r\n // For unrecognized actions (or in cases where actions have no effect), must return the existing state\r\n // (or default initial state if none was supplied)\r\n return state || unloadedState;\r\n};\r\n","import * as React from 'react';\r\nimport * as ReduxForm from 'redux-form';\r\nimport { connect } from 'react-redux';\r\nimport * as Api from '../api/api';\r\nimport { ApplicationState } from '../store';\r\nimport * as FormField from './FormField';\r\nimport CriteriaSizeType from './CriteriaSizeType';\r\nimport { getSubscription } from '../utils/utils';\r\nimport { getText } from '../utils/langTexts';\r\nimport CheckBox from './CheckBox'\r\nimport CriteriaLocationSelect from \"./CriteriaLocationSelect\";\r\nimport * as _ from 'lodash';\r\nimport { CSSProperties } from 'react';\r\nimport Button from './Button';\r\nimport * as Colors from '../styles/colors';\r\nimport ChargeCriteriaInput from \"./ChargeCriteriaInput\";\r\n\r\ntype InlandCriteriaFormProps = ReduxForm.InjectedFormProps\r\n & InlandCriteriaFormOwnProps\r\n & InlandCriteriaFormExternalProps;\r\n\r\ninterface InlandCriteriaFormOwnProps {\r\n inlandCriteriaSizeTypes: Array;\r\n sizeTypes: { [id: number]: Api.SizeTypeModel };\r\n containerType: Api.CriteriaModelContainerTypeEnum;\r\n priceDisplayMode: Api.InlandCriteriaModelPriceDisplayModeEnum;\r\n subscription: Api.SubscriptionModel;\r\n dateBegin: Date;\r\n dateEnd: Date;\r\n}\r\n\r\ninterface InlandCriteriaFormExternalProps {\r\n onSubmit: (values: Api.InlandCriteriaModel) => void;\r\n resetInlandCriteria: () => void;\r\n}\r\n\r\nconst containerRequired = (value: Array) => (!value || !value.some(x => x.number > 0)) && getText(\"CrtContainerRequired\");\r\nconst locationRequired = (value: Api.LocationModel) => (!value || (!value.locationId && !value.code)) && getText(\"GenRequired\");\r\n\r\nconst titleStyle: React.CSSProperties = {\r\n fontSize: 24,\r\n fontWeight: 700,\r\n marginBottom: 20\r\n};\r\n\r\nconst originField = (fields) =>
\r\n fields.input.onChange(value)} />\r\n \r\n
\r\n\r\nconst destinationField = (fields) =>
\r\n fields.input.onChange(value)} />\r\n \r\n
\r\n\r\nconst formPartStyle: CSSProperties = {\r\n};\r\nconst formPartBigStyle: CSSProperties = {\r\n ...formPartStyle,\r\n};\r\nconst formPartSmallStyle: CSSProperties = {\r\n ...formPartStyle,\r\n};\r\nconst advBtnContainer: CSSProperties = {\r\n display: \"flex\", flexDirection: \"row-reverse\",\r\n padding: \"10px 0px\"\r\n}\r\nconst additionalLabelStyle: React.CSSProperties = { fontSize: 18, fontWeight: 500 };\r\n\r\nexport const inlandContainerTypeOptions = (): Array<{ label: string; value: Api.CriteriaModelContainerTypeEnum }> => [\r\n { label: getText(\"GenCtrDry\"), value: \"Dry\" },\r\n { label: getText(\"GenCtrRefeer\"), value: \"Rf\" },\r\n];\r\n\r\nclass InlandCriteriaForm extends React.Component {\r\n public render() {\r\n return (\r\n
\r\n
\r\n
Containers
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
{getText(\"CrtContainerType\")}:
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n {\r\n if (value) {\r\n field.onChange(\"ByCtr\");\r\n } else {\r\n field.onChange(\"AllIn\");\r\n }\r\n }} />} />\r\n
\r\n
\r\n
\r\n
\r\n
{getText(\"CrtSurchargesType\")}
\r\n
\r\n
\r\n
\r\n
\r\n fields.input.onChange(value)} />\r\n
\r\n
} />\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
{getText(\"CrtPorts\")}
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
{getText(\"CrtDates\")}
\r\n
\r\n
\r\n
{getText(\"CrtFromDate\")}
\r\n
\r\n } />\r\n
\r\n
\r\n
\r\n
{getText(\"CrtToDate\")}
\r\n
\r\n } />\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n {\r\n this.props.resetInlandCriteria();\r\n if (e.preventDefault) {\r\n e.preventDefault();\r\n }\r\n }}>\r\n {getText(\"CrtReset\")}\r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n {getText(\"CrtGo\")}\r\n \r\n
\r\n
\r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\ntype InlandCriteriaSizeTypesProps = InlandCriteriaSizeTypesOwnProps\r\n & ReduxForm.WrappedFieldArrayProps;\r\n\r\nexport interface InlandCriteriaSizeTypesOwnProps {\r\n inlandCriteriaSizeTypes: Array;\r\n sizeTypes: { [id: number]: Api.SizeTypeModel };\r\n containerType: Api.InlandCriteriaModelContainerTypeEnum;\r\n min: number;\r\n max: number;\r\n}\r\n\r\nclass InlandCriteriaSizeTypes extends React.Component {\r\n\r\n componentWillReceiveProps(nextProps: InlandCriteriaSizeTypesProps) {\r\n console.log(nextProps.containerType);\r\n console.log(nextProps.inlandCriteriaSizeTypes);\r\n if (this.props.containerType !== nextProps.containerType) {\r\n let sizeTypes = _.sortBy(_.values(nextProps.sizeTypes)\r\n .filter(x => x.type === nextProps.containerType\r\n && x.position < 4), x => x.position);\r\n\r\n let values = nextProps.inlandCriteriaSizeTypes.map(x => x.number);\r\n nextProps.fields.removeAll();\r\n console.log(sizeTypes);\r\n sizeTypes.forEach((st, si) => {\r\n nextProps.fields.insert(si, {\r\n sizeTypeId: st.sizeTypeId,\r\n number: values[si] || 0\r\n });\r\n });\r\n }\r\n }\r\n\r\n get sizeTypesList(): Array {\r\n return _.sortBy(_.values(this.props.sizeTypes)\r\n .filter(x => x.type === this.props.containerType\r\n && x.position < 4), x => x.position);\r\n }\r\n\r\n public render() {\r\n return
\r\n
\r\n {this.sizeTypesList\r\n .map((st, index) =>
\r\n fields.input.onChange(value)} />}\r\n />\r\n } />\r\n
)}\r\n
\r\n \r\n
\r\n }\r\n}\r\n\r\nlet criteriaFormWrapped = ReduxForm.reduxForm({\r\n form: 'inlandCriteria',\r\n destroyOnUnmount: false,\r\n keepDirtyOnReinitialize: true,\r\n enableReinitialize: true\r\n})(InlandCriteriaForm) as any;\r\nconst selector = ReduxForm.formValueSelector('inlandCriteria')\r\n\r\nexport default connect((state: ApplicationState) => {\r\n return {\r\n initialValues: state.inlandCriteria.inlandCriteria,\r\n inlandCriteriaSizeTypes: selector(state, \"inlandCriteriaSizeTypes\") || [],\r\n sizeTypes: state.seed.sizeTypes,\r\n containerType: selector(state, \"containerType\"),\r\n subscription: getSubscription(state.account.currentUser.clientModel),\r\n dateBegin: selector(state, \"dateBegin\"),\r\n dateEnd: selector(state, \"dateEnd\"),\r\n priceDisplayMode: selector(state, \"priceDisplayMode\"),\r\n } as InlandCriteriaFormOwnProps;\r\n})(criteriaFormWrapped) as any as React.ComponentClass","import * as React from 'react';\r\nimport { RouteComponentProps } from 'react-router';\r\nimport { connect } from 'react-redux';\r\nimport { ApplicationState } from '../store';\r\nimport * as Api from '../api/api';\r\nimport * as InlandCriteriaState from '../store/InlandCriteria';\r\nimport InlandCriteriaForm from \"./InlandCriteriaForm\";\r\nimport { getSubscription } from '../utils/utils';\r\n\r\n// At runtime, Redux will merge together...\r\ntype InlandCriteriaProps =\r\n InlandCriteriaState.InlandCriteriaState // ... state we've requested from the Redux store\r\n & InlandCriteriaOwnProps\r\n & typeof InlandCriteriaState.actionCreators // ... plus action creators we've requested\r\n & RouteComponentProps<{ code: string }>; // ... plus incoming routing parameters \r\n\r\ninterface InlandCriteriaOwnProps {\r\n client: Api.ClientModel;\r\n sizeTypes: { [id: number]: Api.SizeTypeModel };\r\n subscription: Api.SubscriptionModel;\r\n}\r\n\r\nclass InlandCriteria extends React.Component {\r\n private criteriaAgentForm;\r\n\r\n constructor(props) {\r\n super(props);\r\n }\r\n\r\n onPropsUpdate(props: InlandCriteriaProps) {\r\n let code = this.props.match\r\n ? this.props.match.params.code\r\n : '';\r\n if (code)\r\n this.props.requestInlandCriteria(new Date().getTime(), code);\r\n }\r\n\r\n componentWillMount() {\r\n this.onPropsUpdate(this.props);\r\n }\r\n\r\n componentWillReceiveProps(nextProps: InlandCriteriaProps) {\r\n if (this.props.match.params.code !== nextProps.match.params.code)\r\n this.onPropsUpdate(nextProps);\r\n }\r\n\r\n public render() {\r\n return (\r\n
\r\n
\r\n INLAND\r\n
\r\n
\r\n
\r\n {\r\n return (this.props.requestCreateInlandCriteria(new Date().getTime(), values) as any as Promise)\r\n .then(inlandCriteria => {\r\n this.props.goToSelection(inlandCriteria.code);\r\n });\r\n }}\r\n resetInlandCriteria={() => this.props.resetInlandCriteria()}\r\n />\r\n
\r\n
\r\n
);\r\n }\r\n}\r\n\r\nexport default connect(\r\n (state: ApplicationState) => {\r\n return {\r\n ...state.criteria,\r\n client: state.account.currentUser.clientModel,\r\n sizeTypes: state.seed.sizeTypes,\r\n subscription: getSubscription(state.account.currentUser.clientModel)\r\n || { subscriptionType: null }\r\n } as any\r\n },\r\n InlandCriteriaState.actionCreators)\r\n (InlandCriteria) as any","import { addTask } from \"../utils/bugFixer\";\r\nimport { Action, Reducer } from 'redux';\r\nimport * as Api from '../api/api';\r\nimport Moment from 'moment';\r\nimport * as Notifications from 'react-notification-system-redux';\r\nimport * as _ from 'lodash';\r\nimport Download from \"downloadjs\";\r\nimport * as MimeTypes from \"mime-types\";\r\nimport { AppThunkAction, ApplicationState } from './';\r\nimport { push } from 'connected-react-router';\r\nimport { getDefaultHeaders } from '../utils/utils';\r\n\r\nexport interface InlandSelectionState {\r\n requestTime?: number;\r\n isLoading: boolean;\r\n inlandSelection?: Api.InlandSelectionModel;\r\n inlandCarrierRatesOffersCache: Array;\r\n inlandCriteriaLoaded?: Api.CriteriaModel;\r\n inlandCarrierOffersState: { [key: string]: InlandCarrierOfferState };\r\n filter: InlandSelectionFilter;\r\n page: number;\r\n errorMessage?: string;\r\n warningMessage?: string;\r\n selectedOffer?: string;\r\n useInQuotationIsOpen: boolean;\r\n advContainerOpened: boolean;\r\n carrierRatesStates: {\r\n [code: string]: {\r\n requestTime?: number;\r\n isLoading: boolean;\r\n inlandCarrierId: number;\r\n errors: Array\r\n }\r\n }\r\n}\r\n\r\nexport interface InlandSelectionFilter {\r\n sortBy: InlandSelectionSortBy;\r\n inlandCarriersSelected: { [id: number]: boolean };\r\n}\r\n\r\nexport interface InlandCarrierOfferState {\r\n isLoading: boolean;\r\n detailsOpened: boolean;\r\n ratesDetailsOpened: boolean;\r\n ratesOfferCommentOpened: boolean;\r\n sizeTypesOpened: { [id: number]: boolean };\r\n documentInfoDetailsOpened: { [id: number]: boolean };\r\n downloadDocumentState: RequestState;\r\n}\r\ninterface RequestState {\r\n isLoading: boolean;\r\n requestTime?: number;\r\n}\r\n\r\ntype InlandSelectionSortBy = \"AllIn\"\r\n | \"Carrier\";\r\n\r\ninterface RequestInlandSelection {\r\n type: \"REQUEST_INLAND_SELECTION\";\r\n payload: { requestTime: number };\r\n}\r\ninterface ReceiveInlandSelection {\r\n type: \"RECEIVE_INLAND_SELECTION\";\r\n payload: {\r\n requestTime: number;\r\n inlandSelection?: Api.InlandSelectionModel;\r\n inlandCriteria?: Api.InlandCriteriaModel;\r\n };\r\n error?: any;\r\n}\r\n\r\ninterface RequestInlandCarrierRates {\r\n type: \"REQUEST_INLAND_CARRIERRATES\";\r\n payload: {\r\n requestTime: number;\r\n carrierRatesPlatform: Api.CarrierRatesPlatformModel;\r\n };\r\n}\r\ninterface ReceiveInlandCarrierRates {\r\n type: \"RECEIVE_INLAND_CARRIERRATES\";\r\n payload: {\r\n carrierRatesPlatform: Api.CarrierRatesPlatformModel;\r\n requestTime: number;\r\n inlandCarrierOffers?: Array;\r\n fetcherErrors?: Array;\r\n error?: string;\r\n };\r\n error?: any;\r\n}\r\n\r\ninterface RequestDownloadInlandDocument {\r\n type: \"REQUEST_DOWNLOAD_INLAND_DOCUMENT\";\r\n payload: { requestTime: number; key: string };\r\n}\r\ninterface ReceiveDownloadInlandDocument {\r\n type: \"RECEIVE_DOWNLOAD_INLAND_DOCUMENT\";\r\n payload: { requestTime: number; key: string };\r\n}\r\n\r\ninterface SelectInlandSelectionPage {\r\n type: \"SELECT_INLAND_SELECTION_PAGE\";\r\n payload: { value: number };\r\n}\r\n\r\ninterface SelectInlandCarrierOffer {\r\n type: \"SELECT_INLAND_CARRIEROFFER\";\r\n payload: { key: string };\r\n}\r\n\r\ninterface UpdateInlandCarrierSelected {\r\n type: \"UPDATE_INLAND_CARRIER_SELECTED\";\r\n payload: { inlandCarrierId: number; value: boolean; };\r\n}\r\ninterface UpdateInlandAllCarrierSelected {\r\n type: \"UPDATE_INLAND_ALL_CARRIER_SELECTED\";\r\n payload: { inlandCarrierIds: Array, value: boolean; };\r\n}\r\n\r\ninterface OpenInlandCarrierOfferDetails {\r\n type: \"OPEN_INLAND_CARRIEROFFER_DETAILS\";\r\n payload: { key: string };\r\n}\r\ninterface CloseInlandCarrierOfferDetails {\r\n type: \"CLOSE_INLAND_CARRIEROFFER_DETAILS\";\r\n payload: { key: string };\r\n}\r\n\r\ninterface OpenInlandCarrierOfferRatesDetails {\r\n type: \"OPEN_INLAND_CARRIEROFFER_RATES_DETAILS\";\r\n payload: { key: string };\r\n}\r\ninterface CloseInlandCarrierOfferRatesDetails {\r\n type: \"CLOSE_INLAND_CARRIEROFFER_RATES_DETAILS\";\r\n payload: { key: string };\r\n}\r\n\r\ninterface OpenInlandCarrierOfferRatesComment {\r\n type: \"OPEN_INLAND_CARRIEROFFER_RATES_COMMENT\";\r\n payload: { key: string };\r\n}\r\ninterface CloseInlandCarrierOfferRatesComment {\r\n type: \"CLOSE_INLAND_CARRIEROFFER_RATES_COMMENT\";\r\n payload: { key: string };\r\n}\r\n\r\ninterface OpenInlandCarrierOfferContainerDetails {\r\n type: \"OPEN_INLAND_CARRIEROFFER_CONTAINER_DETAILS\";\r\n payload: { sizeTypeId: number; key: string }\r\n}\r\ninterface CloseInlandCarrierOfferContainerDetails {\r\n type: \"CLOSE_INLAND_CARRIEROFFER_CONTAINER_DETAILS\";\r\n payload: { sizeTypeId: number; key: string }\r\n}\r\n\r\ninterface InlandSelectionUpdateSortBy {\r\n type: \"INLAND_SELECTION_UPDATE_SORTBY\";\r\n payload: { value: InlandSelectionSortBy }\r\n}\r\n\r\ninterface InlandSelectionOpenUseInQuotation {\r\n type: \"INLAND_SELECTION_OPEN_USE_IN_QUOTATION\";\r\n payload: { id: string }\r\n}\r\ninterface InlandSelectionCloseUseInQuotation {\r\n type: \"INLAND_SELECTION_CLOSE_USE_IN_QUOTATION\";\r\n}\r\n\r\ninterface InlandSelectionToggleDocumentDetails {\r\n type: \"INLAND_SELECTION_TOGGLE_DOCUMENTDETAILS\";\r\n payload: { key: string; id: number; value: boolean }\r\n}\r\ninterface InlandSelectionUpdateAdvContainer {\r\n type: \"INLAND_SELECTION_UPDATE_ADVCONTAINER\";\r\n payload: { value: boolean };\r\n}\r\n\r\ntype KnownAction = RequestInlandSelection\r\n | InlandSelectionUpdateSortBy\r\n | ReceiveInlandSelection\r\n | RequestDownloadInlandDocument\r\n | ReceiveDownloadInlandDocument\r\n | SelectInlandSelectionPage\r\n | SelectInlandCarrierOffer\r\n | UpdateInlandAllCarrierSelected\r\n | UpdateInlandCarrierSelected\r\n | OpenInlandCarrierOfferDetails\r\n | CloseInlandCarrierOfferDetails\r\n | OpenInlandCarrierOfferRatesDetails\r\n | CloseInlandCarrierOfferRatesDetails\r\n | OpenInlandCarrierOfferRatesComment\r\n | CloseInlandCarrierOfferRatesComment\r\n | OpenInlandCarrierOfferContainerDetails\r\n | CloseInlandCarrierOfferContainerDetails\r\n | InlandSelectionOpenUseInQuotation\r\n | InlandSelectionCloseUseInQuotation\r\n | RequestInlandCarrierRates\r\n | ReceiveInlandCarrierRates\r\n | InlandSelectionToggleDocumentDetails\r\n | InlandSelectionUpdateAdvContainer\r\n ;\r\n\r\nexport const getInlandOfferKey = (offer: Api.InlandCarrierOfferModel): string => {\r\n let chargeSetId = offer.inlandChargeSet ? offer.inlandChargeSet.inlandChargeSetId : 0;\r\n return `R${offer.inlandRoute.inlandRouteId}C${chargeSetId}`;\r\n}\r\n\r\nconst criteriaSelector = (state: ApplicationState) => state.inlandCriteria.inlandCriteria;\r\nconst offersSelector = (state: ApplicationState) => state.inlandSelection.inlandSelection.inlandCarrierOffers;\r\nconst currenciesSelector = (state: ApplicationState) => state.seed.currencies;\r\nconst sizeTypesSelector = (state: ApplicationState) => state.seed.sizeTypes;\r\n\r\nexport const inlandCriteriaToCriteria = (inlandCriteria: Api.InlandCriteriaModel): Api.CriteriaModel => ({\r\n type: \"Fcl\",\r\n chargeCriterias: inlandCriteria.chargeCriterias,\r\n loadingCharge: true,\r\n unLoadingCharge: true,\r\n criteriaSizeTypes: inlandCriteria\r\n .inlandCriteriaSizeTypes.map(x => ({\r\n number: x.number,\r\n sizeTypeId: x.sizeTypeId\r\n } as Api.CriteriaSizeTypeModel))\r\n});\r\n\r\nexport const actionCreators = {\r\n requestInlandSelection: (requestTime: number, inlandCriteria: Api.InlandCriteriaModel): AppThunkAction> => (dispatch, getState) => {\r\n let api = new Api.InlandSelectionApi();\r\n let task = api.getSelectionFromCode({\r\n code: inlandCriteria.code\r\n }, { cridentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(inlandSelection => {\r\n\r\n if (inlandCriteria.includeCarrierRates) {\r\n let ratesFetcherApi = new Api.RatesFetcherApi();\r\n ratesFetcherApi.getAvailableRatesFetchers({ credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(carrierRatesPlatforms => {\r\n carrierRatesPlatforms\r\n .filter(x => x.inlandCarrierId)\r\n .forEach(carrierRatesPlatform => {\r\n new Promise(resolve => setTimeout(resolve, 50)).then(() => {\r\n let reqTime = new Date().getTime();\r\n dispatch({\r\n type: \"REQUEST_INLAND_CARRIERRATES\",\r\n payload: {\r\n carrierRatesPlatform: carrierRatesPlatform,\r\n requestTime: reqTime\r\n }\r\n });\r\n return ratesFetcherApi.getOnlineInlandCarrierOffers({\r\n model: {\r\n inlandCriteria: inlandCriteria,\r\n ratesFetchers: [carrierRatesPlatform.code]\r\n }\r\n }, { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) }).then(cwe => {\r\n dispatch({\r\n type: \"RECEIVE_INLAND_CARRIERRATES\",\r\n payload: {\r\n carrierRatesPlatform: carrierRatesPlatform,\r\n requestTime: reqTime,\r\n inlandCarrierOffers: cwe.inlandCarrierOffers,\r\n fetcherErrors: cwe.errorByFetcherCode[carrierRatesPlatform.code]\r\n }\r\n });\r\n })\r\n .catch(err => {\r\n dispatch({\r\n type: \"RECEIVE_INLAND_CARRIERRATES\",\r\n payload: {\r\n carrierRatesPlatform: carrierRatesPlatform,\r\n requestTime: reqTime,\r\n },\r\n error: err\r\n });\r\n });\r\n });\r\n });\r\n });\r\n }\r\n dispatch({\r\n type: \"RECEIVE_INLAND_SELECTION\",\r\n payload: {\r\n requestTime: requestTime,\r\n inlandSelection: inlandSelection,\r\n inlandCriteria: inlandCriteria\r\n }\r\n });\r\n })\r\n .catch(err => {\r\n dispatch({\r\n type: \"RECEIVE_INLAND_SELECTION\",\r\n payload: {\r\n requestTime: requestTime,\r\n },\r\n error: err\r\n });\r\n dispatch(Notifications.error({ message: \"Error searching selection\", title: \"Error\", position: \"tc\" }) as any);\r\n });\r\n\r\n dispatch({\r\n type: \"REQUEST_INLAND_SELECTION\",\r\n payload: { requestTime: requestTime }\r\n });\r\n addTask(task);\r\n return task;\r\n },\r\n requestDownloadRatesDocument: (requestTime: number, key: string): AppThunkAction> => (dispatch, getState) => {\r\n let carrierOfferState = getState().inlandSelection.inlandCarrierOffersState[key];\r\n if (carrierOfferState && carrierOfferState.isLoading)\r\n return;\r\n\r\n let carrierOffer = getState().inlandSelection.inlandSelection.inlandCarrierOffers\r\n .find(x => getInlandOfferKey(x) === key);\r\n\r\n let api = new Api.InlandSelectionApi();\r\n let task = api.downloadWorkDocuments({\r\n inlandChargeSetId: carrierOffer.inlandChargeSet.inlandChargeSetId\r\n }, { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(response => response.blob())\r\n .then(blob => {\r\n dispatch({ type: \"RECEIVE_DOWNLOAD_INLAND_DOCUMENT\", payload: { key: key, requestTime: requestTime } })\r\n let fileName = \"Okargo_Inland_Documents_\" + Moment().format(\"YYYY_MM_DD\") + \".zip\";\r\n return Download(blob,\r\n fileName,\r\n MimeTypes.lookup(fileName) || \"text/plain\");\r\n })\r\n .catch(error => {\r\n dispatch({ type: \"RECEIVE_DOWNLOAD_INLAND_DOCUMENT\", payload: { key: key, requestTime: requestTime } })\r\n dispatch(Notifications.error({ message: \"Failed to download your document\", title: \"Error\", position: \"tc\" }) as any);\r\n });\r\n\r\n dispatch({ type: \"REQUEST_DOWNLOAD_INLAND_DOCUMENT\", payload: { key: key, requestTime: requestTime } })\r\n return task;\r\n },\r\n selectPage: (value: number) => {\r\n type: \"SELECT_INLAND_SELECTION_PAGE\",\r\n payload: { value: value }\r\n },\r\n selectInlandCarrierOffer: (inlandOfferId: string) => {\r\n type: \"SELECT_INLAND_CARRIEROFFER\",\r\n payload: { key: inlandOfferId }\r\n },\r\n updateInlandCarrierSelected: (inlandCarrierId: number, value: boolean) => {\r\n type: \"UPDATE_INLAND_CARRIER_SELECTED\",\r\n payload: { inlandCarrierId: inlandCarrierId, value: value }\r\n },\r\n updateInlandAllCarrierSelected: (value: boolean): AppThunkAction => (dispatch, getState) => {\r\n dispatch({\r\n type: \"UPDATE_INLAND_ALL_CARRIER_SELECTED\",\r\n payload: { inlandCarrierIds: _.values(getState().seed.carriers).map(x => x.carrierId), value: value }\r\n });\r\n },\r\n openInlandOfferDetails: (key: string) => {\r\n type: \"OPEN_INLAND_CARRIEROFFER_DETAILS\",\r\n payload: { key: key }\r\n },\r\n closeInlandOfferDetails: (key: string) => {\r\n type: \"CLOSE_INLAND_CARRIEROFFER_DETAILS\",\r\n payload: { key: key }\r\n },\r\n openInlandOfferContainerDetails: (key: string, sizetypeId: number) => {\r\n type: \"OPEN_INLAND_CARRIEROFFER_CONTAINER_DETAILS\",\r\n payload: { key: key, sizeTypeId: sizetypeId }\r\n },\r\n closeInlandOfferContainerDetails: (key: string, sizetypeId: number) => {\r\n type: \"CLOSE_INLAND_CARRIEROFFER_CONTAINER_DETAILS\",\r\n payload: { key: key, sizeTypeId: sizetypeId }\r\n },\r\n openInlandOfferRatesDetails: (key: string) => {\r\n type: \"OPEN_INLAND_CARRIEROFFER_RATES_DETAILS\",\r\n payload: { key: key }\r\n },\r\n closeInlandOfferRatesDetails: (key: string) => {\r\n type: \"CLOSE_INLAND_CARRIEROFFER_RATES_DETAILS\",\r\n payload: { key: key }\r\n },\r\n openInlandOfferRatesComment: (key: string) => {\r\n type: \"OPEN_INLAND_CARRIEROFFER_RATES_COMMENT\",\r\n payload: { key: key }\r\n },\r\n closeInlandOfferRatesComment: (key: string) => {\r\n type: \"CLOSE_INLAND_CARRIEROFFER_RATES_COMMENT\",\r\n payload: { key: key }\r\n },\r\n goToInlandCriteria: (): AppThunkAction => (dispatch, getState) => {\r\n dispatch(push(`/inland/criteria/${getState().inlandSelection.inlandCriteriaLoaded.code}`) as any);\r\n },\r\n openUseInQuotation: (id: string) => {\r\n type: \"INLAND_SELECTION_OPEN_USE_IN_QUOTATION\",\r\n payload: { id: id }\r\n },\r\n closenUseInQuotation: () => {\r\n type: \"INLAND_SELECTION_CLOSE_USE_IN_QUOTATION\",\r\n },\r\n toggleDocumentInfoDetails: (key: string, id: number, value: boolean) => {\r\n type: \"INLAND_SELECTION_TOGGLE_DOCUMENTDETAILS\",\r\n payload: { key: key, id: id, value: value }\r\n },\r\n updateAdvContainer: (value: boolean) => {\r\n type: \"INLAND_SELECTION_UPDATE_ADVCONTAINER\",\r\n payload: { value: value }\r\n }\r\n};\r\n\r\nexport const unloadedInlandCarrierOfferState: InlandCarrierOfferState = {\r\n detailsOpened: false,\r\n ratesDetailsOpened: false,\r\n sizeTypesOpened: {},\r\n ratesOfferCommentOpened: false,\r\n isLoading: false,\r\n downloadDocumentState: {\r\n isLoading: false,\r\n },\r\n documentInfoDetailsOpened: {}\r\n};\r\n\r\nconst unloadedState: InlandSelectionState = {\r\n isLoading: false,\r\n page: 1,\r\n filter: {\r\n inlandCarriersSelected: {},\r\n sortBy: \"AllIn\"\r\n },\r\n inlandCarrierOffersState: {},\r\n useInQuotationIsOpen: false,\r\n carrierRatesStates: {},\r\n inlandCarrierRatesOffersCache: [],\r\n advContainerOpened: false\r\n};\r\n\r\nexport const reducer: Reducer = (state: InlandSelectionState, incomingAction: Action) => {\r\n const action = incomingAction as KnownAction;\r\n switch (action.type) {\r\n case \"REQUEST_INLAND_SELECTION\":\r\n return {\r\n ...state,\r\n requestTime: action.payload.requestTime,\r\n isLoading: true,\r\n carrierRatesOffersCache: [],\r\n };\r\n case \"RECEIVE_INLAND_SELECTION\":\r\n if (action.error) {\r\n return {\r\n ...state,\r\n isLoading: false\r\n };\r\n }\r\n\r\n return {\r\n ...state,\r\n requestTime: action.payload.requestTime,\r\n isLoading: false,\r\n inlandSelection: {\r\n ...action.payload.inlandSelection,\r\n inlandCarrierOffers: action.payload.inlandSelection.inlandCarrierOffers\r\n .concat(state.inlandCarrierRatesOffersCache)\r\n },\r\n inlandCriteriaLoaded: action.payload.inlandCriteria,\r\n inlandCarrierOffersState: {\r\n ...state.inlandCarrierOffersState,\r\n },\r\n filter: unloadedState.filter,\r\n page: 1,\r\n carrierRatesStates: action.payload.inlandCriteria.includeCarrierRates\r\n ? state.carrierRatesStates\r\n : {}\r\n };\r\n case \"REQUEST_DOWNLOAD_INLAND_DOCUMENT\":\r\n return {\r\n ...state,\r\n inlandCarrierOffersState: {\r\n ...state.inlandCarrierOffersState,\r\n [action.payload.key]: {\r\n ...state.inlandCarrierOffersState[action.payload.key] || unloadedInlandCarrierOfferState,\r\n isLoading: true\r\n }\r\n }\r\n };\r\n case \"RECEIVE_DOWNLOAD_INLAND_DOCUMENT\":\r\n return {\r\n ...state,\r\n inlandCarrierOffersState: {\r\n ...state.inlandCarrierOffersState,\r\n [action.payload.key]: {\r\n ...state.inlandCarrierOffersState[action.payload.key] || unloadedInlandCarrierOfferState,\r\n isLoading: false\r\n }\r\n }\r\n };\r\n case \"SELECT_INLAND_SELECTION_PAGE\":\r\n return {\r\n ...state,\r\n page: action.payload.value\r\n };\r\n case \"UPDATE_INLAND_CARRIER_SELECTED\":\r\n return {\r\n ...state,\r\n filter: {\r\n ...state.filter,\r\n inlandCarriersSelected: {\r\n ...state.filter.inlandCarriersSelected,\r\n [action.payload.inlandCarrierId]: action.payload.value\r\n }\r\n }\r\n };\r\n case \"UPDATE_INLAND_ALL_CARRIER_SELECTED\":\r\n let facNewCarriersSelected = {};\r\n action.payload.inlandCarrierIds\r\n .forEach(x => {\r\n facNewCarriersSelected[x] = action.payload.value;\r\n });\r\n return {\r\n ...state,\r\n filter: {\r\n ...state.filter,\r\n inlandCarriersSelected: facNewCarriersSelected\r\n }\r\n };\r\n case \"OPEN_INLAND_CARRIEROFFER_DETAILS\":\r\n return {\r\n ...state,\r\n inlandCarrierOffersState: {\r\n ...state.inlandCarrierOffersState,\r\n [action.payload.key]: {\r\n ...state.inlandCarrierOffersState[action.payload.key] || unloadedInlandCarrierOfferState,\r\n detailsOpened: true\r\n }\r\n }\r\n };\r\n case \"CLOSE_INLAND_CARRIEROFFER_DETAILS\":\r\n return {\r\n ...state,\r\n inlandCarrierOffersState: {\r\n ...state.inlandCarrierOffersState,\r\n [action.payload.key]: {\r\n ...state.inlandCarrierOffersState[action.payload.key] || unloadedInlandCarrierOfferState,\r\n detailsOpened: false\r\n }\r\n }\r\n };\r\n case \"OPEN_INLAND_CARRIEROFFER_RATES_DETAILS\":\r\n return {\r\n ...state,\r\n inlandCarrierOffersState: {\r\n ...state.inlandCarrierOffersState,\r\n [action.payload.key]: {\r\n ...state.inlandCarrierOffersState[action.payload.key] || unloadedInlandCarrierOfferState,\r\n ratesDetailsOpened: true\r\n }\r\n }\r\n };\r\n case \"CLOSE_INLAND_CARRIEROFFER_RATES_DETAILS\":\r\n return {\r\n ...state,\r\n inlandCarrierOffersState: {\r\n ...state.inlandCarrierOffersState,\r\n [action.payload.key]: {\r\n ...state.inlandCarrierOffersState[action.payload.key] || unloadedInlandCarrierOfferState,\r\n ratesDetailsOpened: false\r\n }\r\n }\r\n };\r\n case \"OPEN_INLAND_CARRIEROFFER_RATES_COMMENT\":\r\n return {\r\n ...state,\r\n inlandCarrierOffersState: {\r\n ...state.inlandCarrierOffersState,\r\n [action.payload.key]: {\r\n ...state.inlandCarrierOffersState[action.payload.key] || unloadedInlandCarrierOfferState,\r\n ratesOfferCommentOpened: true\r\n }\r\n }\r\n };\r\n case \"CLOSE_INLAND_CARRIEROFFER_RATES_COMMENT\":\r\n return {\r\n ...state,\r\n inlandCarrierOffersState: {\r\n ...state.inlandCarrierOffersState,\r\n [action.payload.key]: {\r\n ...state.inlandCarrierOffersState[action.payload.key] || unloadedInlandCarrierOfferState,\r\n ratesOfferCommentOpened: false\r\n }\r\n }\r\n };\r\n case \"OPEN_INLAND_CARRIEROFFER_CONTAINER_DETAILS\":\r\n return {\r\n ...state,\r\n inlandCarrierOffersState: {\r\n ...state.inlandCarrierOffersState,\r\n [action.payload.key]: {\r\n ...state.inlandCarrierOffersState[action.payload.key] || unloadedInlandCarrierOfferState,\r\n sizeTypesOpened: {\r\n ...(state.inlandCarrierOffersState[action.payload.key]\r\n ? state.inlandCarrierOffersState[action.payload.key].sizeTypesOpened\r\n : unloadedInlandCarrierOfferState.sizeTypesOpened),\r\n [action.payload.sizeTypeId]: true\r\n }\r\n }\r\n }\r\n };\r\n case \"CLOSE_INLAND_CARRIEROFFER_CONTAINER_DETAILS\":\r\n return {\r\n ...state,\r\n inlandCarrierOffersState: {\r\n ...state.inlandCarrierOffersState,\r\n [action.payload.key]: {\r\n ...state.inlandCarrierOffersState[action.payload.key] || unloadedInlandCarrierOfferState,\r\n sizeTypesOpened: {\r\n ...(state.inlandCarrierOffersState[action.payload.key]\r\n ? state.inlandCarrierOffersState[action.payload.key].sizeTypesOpened\r\n : unloadedInlandCarrierOfferState.sizeTypesOpened),\r\n [action.payload.sizeTypeId]: false\r\n }\r\n }\r\n }\r\n };\r\n case \"INLAND_SELECTION_UPDATE_SORTBY\":\r\n return {\r\n ...state,\r\n filter: {\r\n ...state.filter,\r\n sortBy: action.payload.value\r\n }\r\n };\r\n case \"SELECT_INLAND_CARRIEROFFER\":\r\n return state;\r\n case \"INLAND_SELECTION_OPEN_USE_IN_QUOTATION\":\r\n return {\r\n ...state,\r\n useInQuotationIsOpen: true,\r\n selectedOffer: action.payload.id\r\n };\r\n case \"INLAND_SELECTION_CLOSE_USE_IN_QUOTATION\":\r\n return {\r\n ...state,\r\n useInQuotationIsOpen: false,\r\n };\r\n case \"REQUEST_INLAND_CARRIERRATES\":\r\n return {\r\n ...state,\r\n carrierRatesStates: {\r\n ...state.carrierRatesStates,\r\n [action.payload.carrierRatesPlatform.code]: {\r\n ...state.carrierRatesStates[action.payload.carrierRatesPlatform.code],\r\n isLoading: true,\r\n requestTime: action.payload.requestTime,\r\n inlandCarrierId: action.payload.carrierRatesPlatform.inlandCarrierId,\r\n errors: []\r\n }\r\n }\r\n };\r\n case \"RECEIVE_INLAND_CARRIERRATES\":\r\n if (!state.carrierRatesStates[action.payload.carrierRatesPlatform.code]\r\n || state.carrierRatesStates[action.payload.carrierRatesPlatform.code].requestTime !== action.payload.requestTime)\r\n return state;\r\n\r\n if (action.error) {\r\n return {\r\n ...state,\r\n carrierRatesStates: {\r\n ...state.carrierRatesStates,\r\n [action.payload.carrierRatesPlatform.code]: {\r\n ...state.carrierRatesStates[action.payload.carrierRatesPlatform.code],\r\n isLoading: false,\r\n inlandCarrierId: action.payload.carrierRatesPlatform.inlandCarrierId,\r\n errors: [action.error]\r\n }\r\n }\r\n };\r\n }\r\n\r\n return {\r\n ...state,\r\n carrierRatesOffersCache: state.isLoading\r\n ? state.inlandCarrierRatesOffersCache.concat(action.payload.inlandCarrierOffers)\r\n : state.inlandCarrierRatesOffersCache,\r\n inlandSelection: state.isLoading\r\n ? state.inlandSelection\r\n : {\r\n ...state.inlandSelection,\r\n inlandCarrierOffers: state.inlandSelection.inlandCarrierOffers\r\n .concat(action.payload.inlandCarrierOffers)\r\n },\r\n carrierRatesStates: {\r\n ...state.carrierRatesStates,\r\n [action.payload.carrierRatesPlatform.code]: {\r\n ...state.carrierRatesStates[action.payload.carrierRatesPlatform.code],\r\n isLoading: false,\r\n carrierId: action.payload.carrierRatesPlatform.carrierId,\r\n errors: action.payload.fetcherErrors\r\n ? (state.carrierRatesStates[action.payload.carrierRatesPlatform.code].errors\r\n ? state.carrierRatesStates[action.payload.carrierRatesPlatform.code].errors.concat(action.payload.fetcherErrors)\r\n : action.payload.fetcherErrors)\r\n : state.carrierRatesStates[action.payload.carrierRatesPlatform.code].errors\r\n }\r\n }\r\n };\r\n case \"INLAND_SELECTION_TOGGLE_DOCUMENTDETAILS\":\r\n return {\r\n ...state,\r\n inlandCarrierOffersState: {\r\n ...state.inlandCarrierOffersState,\r\n [action.payload.key]: {\r\n ...state.inlandCarrierOffersState[action.payload.key] || unloadedInlandCarrierOfferState,\r\n documentInfoDetailsOpened: {\r\n ...(state.inlandCarrierOffersState[action.payload.key]\r\n ? state.inlandCarrierOffersState[action.payload.key].documentInfoDetailsOpened\r\n : unloadedInlandCarrierOfferState.documentInfoDetailsOpened),\r\n [action.payload.id]: action.payload.value\r\n }\r\n }\r\n }\r\n };\r\n case \"INLAND_SELECTION_UPDATE_ADVCONTAINER\":\r\n return {\r\n ...state,\r\n advContainerOpened: action.payload.value\r\n };\r\n default:\r\n // The following line guarantees that every action in the KnownAction union has been covered by a case above\r\n const exhaustiveCheck: never = action;\r\n }\r\n\r\n // For unrecognized actions (or in cases where actions have no effect), must return the existing state\r\n // (or default initial state if none was supplied)\r\n return state || unloadedState;\r\n};\r\n","import * as React from 'react';\r\nimport * as Api from '../api/api';\r\nimport { getText } from '../utils/langTexts';\r\nimport Linkify from \"react-linkify\";\r\nimport * as Colors from \"../styles/colors\";\r\nimport { Warning } from '@material-ui/icons';\r\n\r\ninterface InlandOfferRatesOfferProps {\r\n inlandChargeSet: Api.InlandChargeSetModel;\r\n inlandRatesOffer: Api.InlandRatesOfferModel;\r\n offerInformations: Array;\r\n}\r\n\r\nconst fieldStyle = { marginBottom: 10, marginTop: 10 };\r\nconst containerStyle = {};\r\nconst innerStyle = { padding: 10, };\r\nconst labelStyle = { marginRight: 3 };\r\n\r\nexport default class InlandOfferRatesOffer extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n }\r\n\r\n public render() {\r\n return
\r\n
\r\n
\r\n \r\n {(this.props.inlandChargeSet && this.props.inlandChargeSet.reference) ||\r\n (this.props.inlandRatesOffer && this.props.inlandRatesOffer.reference)}\r\n
\r\n
\r\n \r\n {this.props.inlandRatesOffer && this.props.inlandRatesOffer.shortName\r\n ? this.props.inlandRatesOffer.shortName\r\n : not defined}\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n {this.props.inlandRatesOffer && this.props.inlandRatesOffer.comment\r\n ? {this.props.inlandRatesOffer.comment}\r\n : not defined}\r\n
\r\n
\r\n {this.props.offerInformations && this.props.offerInformations\r\n .map(x =>\r\n
\r\n
\r\n \r\n
\r\n
\r\n {x.content}\r\n
\r\n
)}\r\n
\r\n
\r\n }\r\n}","import * as React from 'react';\r\nimport * as Api from '../api/api';\r\nimport * as _ from 'lodash';\r\nimport Moment from 'moment';\r\nimport Tooltip from './Tooltip';\r\nimport { RatesCalculator } from '../utils/ratesUtils';\r\nimport * as Colors from \"../styles/colors\";\r\nimport { getText } from '../utils/langTexts';\r\nimport Table, { Column } from './Table';\r\nimport { CSSProperties } from 'react';\r\nimport { getInlandOfferKey } from '../store/InlandSelection';\r\nimport { roadTransportId } from '../utils/constants';\r\nimport InlandOfferRatesOffer from './InlandOfferRatesOffer';\r\nimport { Warning } from '@material-ui/icons';\r\nimport Loader from './Loader';\r\nimport { getOnlineOfferErrorText } from '../utils/errorMessageHandler';\r\nimport { getLocationName } from \"../utils/utils\";\r\n\r\ninterface InlandOfferTableProps {\r\n ratesCalculator: RatesCalculator;\r\n isLoading: boolean;\r\n inlandSelection?: Api.InlandSelectionModel;\r\n inlandCriteria: Api.InlandCriteriaModel;\r\n inlandCarrierOffers: Array;\r\n currencies: { [id: number]: Api.CurrencyModel };\r\n inlandCarriers: { [id: number]: Api.InlandCarrierModel };\r\n sizeTypes: { [id: number]: Api.SizeTypeModel };\r\n currencyId: number;\r\n onOfferClick: (key: string) => void;\r\n //handleOfferClick: (id: string) => void;\r\n carrierRatesStates: { [key: string]: { isLoading: boolean; inlandCarrierId: number; errors: Array } };\r\n}\r\n\r\ntype OfferColumn = Column;\r\n\r\ninterface SizeTypeApplication {\r\n sizeTypeId: number;\r\n minWeight?: number;\r\n maxWeight?: number;\r\n}\r\n\r\nconst getSizeTypeApplications = (inlandChargeSet: Api.InlandChargeSetModel, inlandCriteria: Api.InlandCriteriaModel): Array => {\r\n return inlandCriteria.inlandCriteriaSizeTypes\r\n .filter(x => inlandChargeSet\r\n .charges.some(y => (y.sizeTypeId === x.sizeTypeId\r\n || y.unit === \"Ctr\"\r\n || y.unit === \"Teu\")\r\n && y.chargeNameId === roadTransportId))\r\n .map(x => ({\r\n sizeTypeId: x.sizeTypeId,\r\n minWeight: _.max(inlandChargeSet.charges\r\n .filter(y => (y.sizeTypeId === x.sizeTypeId\r\n || y.unit === \"Ctr\"\r\n || y.unit === \"Teu\")\r\n && y.minWeight)\r\n .map(y => y.minWeight)),\r\n maxWeight: _.min(inlandChargeSet.charges\r\n .filter(y => (y.sizeTypeId === x.sizeTypeId\r\n || y.unit === \"Ctr\"\r\n || y.unit === \"Teu\")\r\n && y.maxWeight)\r\n .map(y => y.maxWeight)),\r\n } as SizeTypeApplication));\r\n};\r\n\r\nexport const getAllpliesTo = (inlandChargeSet: Api.InlandChargeSetModel, inlandCriteria: Api.InlandCriteriaModel, sizeTypes: { [id: number]: Api.SizeTypeModel }): string => {\r\n if (!inlandChargeSet)\r\n return \"\";\r\n\r\n let stApplications = getSizeTypeApplications(inlandChargeSet, inlandCriteria)\r\n .filter(x => inlandCriteria.inlandCriteriaSizeTypes\r\n .some(y => x.sizeTypeId === y.sizeTypeId && y.number > 0));\r\n\r\n if (!inlandCriteria.inlandCriteriaSizeTypes\r\n .some(x => !stApplications.some(y => y.sizeTypeId === x.sizeTypeId))\r\n && !stApplications.some(x => (x.maxWeight || x.minWeight) ? true : false)) {\r\n return \"All\";\r\n }\r\n\r\n let applications = _.map(_.groupBy(stApplications, x => `IW${x.minWeight}AW${x.maxWeight}`), x => {\r\n let minText = `> ${x[0].minWeight}`;\r\n let maxText = `< ${x[0].maxWeight}`;\r\n let weightText = (x[0].minWeight && x[0].maxWeight)\r\n ? `${minText} & ${maxText}`\r\n : x[0].minWeight\r\n ? minText\r\n : x[0].maxWeight\r\n ? maxText\r\n : \"\";\r\n\r\n if (!inlandCriteria.inlandCriteriaSizeTypes.some(y => !x.some(z => z.sizeTypeId === y.sizeTypeId))) {\r\n return `All ${weightText}`;\r\n }\r\n\r\n return `${x.map(y => sizeTypes[y.sizeTypeId].name).join(\", \")} ${weightText}`;\r\n });\r\n\r\n\r\n return applications.join(\"\\n\");\r\n}\r\n\r\nconst ratesOfferTooltipStyle: CSSProperties = { opacity: 1, width: 500 };\r\n\r\nexport default class InlandOfferTable extends React.Component {\r\n constructor(props: InlandOfferTableProps) {\r\n super(props);\r\n }\r\n\r\n public render() {\r\n return
\r\n {(_.values(this.props.carrierRatesStates).some(x => x.isLoading\r\n || x.errors.length !== 0))\r\n &&
\r\n {_.values(this.props.carrierRatesStates).map((x, xi) =>
\r\n \r\n {x.errors.length !== 0 &&
\r\n
\r\n {x.errors.map(error => getOnlineOfferErrorText(error, { carrier: this.props.inlandCarriers[x.inlandCarrierId].name, carrierUrl: \"\" }))}\r\n
\r\n
}\r\n
)}\r\n
}\r\n \r\n {getText(\"InlCarrier\")}\r\n ,\r\n style: { paddingLeft: '10px !important' },\r\n id: 'carrrier',\r\n accessor: (d) => this.props.inlandCarriers[d.inlandCarrierId].name,\r\n cell: (d: any) =>
{d}
\r\n },\r\n {\r\n header:
{getText(\"SlcTableRates\")}
,\r\n id: 'rates',\r\n accessor: (d) => d,\r\n cell: (d: any) => {\r\n let carrierOffer = d as Api.InlandCarrierOfferModel;\r\n //Tooltip children have to implement hovering etc ...\r\n //So wrap the content within a div\r\n let hasWarning = (carrierOffer.offerInformations\r\n && carrierOffer.offerInformations.some(x => x.level === \"High\"));\r\n return (\r\n
\r\n {carrierOffer.inlandChargeSet\r\n ?\r\n
\r\n \r\n \r\n
}\r\n placement=\"right\"\r\n hideDelay={0.4}>\r\n
\r\n {carrierOffer.inlandRatesOffer\r\n ? carrierOffer.inlandRatesOffer.shortName || carrierOffer.inlandChargeSet.reference\r\n : (carrierOffer.inlandChargeSet && carrierOffer.inlandChargeSet.reference)}\r\n {hasWarning && }\r\n
\r\n \r\n
\r\n : null}\r\n \r\n );\r\n }\r\n },\r\n {\r\n header: \r\n {this.props.inlandCriteria.origin\r\n && this.props.inlandCriteria.origin.locationType === \"Port\"\r\n ? getText(\"SlcInlandOfferTablePlaceOfDischarge\")\r\n : getText(\"SlcInlandOfferTablePlaceOfLoading\")}\r\n ,\r\n id: 'routeType',\r\n align: \"center\",\r\n accessor: (d) => d,\r\n cell: (d: any) => {\r\n let route = d.inlandRoute as Api.InlandRouteModel;\r\n return
\r\n {this.props.inlandCriteria.origin\r\n && this.props.inlandCriteria.origin.locationType === \"Port\"\r\n && (d.dropOffFound || getLocationName(route.dropOffLocation))}\r\n {this.props.inlandCriteria.origin\r\n && this.props.inlandCriteria.origin.locationType !== \"Port\"\r\n && (d.pickUpFound || getLocationName(route.pickupLocation))}\r\n
\r\n }\r\n },\r\n {\r\n header: \r\n Route type\r\n ,\r\n id: 'routeType',\r\n align: \"center\",\r\n accessor: (d) => d.inlandRoute.type,\r\n cell: (d: any) => {\r\n let type = d as Api.InlandRouteModelTypeEnum;\r\n return
\r\n {type === \"TruckRoundTrip\" && \"Truck round trip\"}\r\n {type === \"TruckOneWay\" && \"Truck one way\"}\r\n {type === \"BargeTruckOneWay\" && \"Barge truck one way\"}\r\n {type === \"RailTruckOneWay\" && \"Rail truck one way\"}\r\n
\r\n }\r\n },\r\n ].concat(\r\n this.props.inlandCriteria.priceDisplayMode === \"AllIn\"\r\n ? [\r\n {\r\n header: {\r\n }}>\r\n {getText(\"SlcTableTotalFrom\")}\r\n ,\r\n id: 'totalFrom',\r\n accessor: (d) => d,\r\n cell: (d: any) => {\r\n let offer = d as Api.InlandCarrierOfferModel;\r\n return (\r\n offer.inlandChargeSet &&\r\n
\r\n
\r\n \r\n {Math.round(\r\n this.props.ratesCalculator.calculateAllIn(offer.inlandChargeSet).totalUsd\r\n / this.props.currencies[this.props.currencyId].value)}\r\n \r\n \r\n {this.props.currencies[this.props.currencyId].code}\r\n
\r\n
\r\n );\r\n }\r\n },\r\n ]\r\n : this.props.inlandCriteria.inlandCriteriaSizeTypes\r\n .filter(cst => cst.number > 0)\r\n .map(cst =>\r\n ({\r\n header: {\r\n }}>\r\n Total {this.props.sizeTypes[cst.sizeTypeId].name}\r\n ,\r\n id: 'totalFrom-' + cst.sizeTypeId,\r\n accessor: (d) => d,\r\n cell: (d: any) => {\r\n let offer = d as Api.InlandCarrierOfferModel;\r\n return (\r\n offer.inlandChargeSet &&\r\n
\r\n
\r\n \r\n {Math.round(\r\n this.props.ratesCalculator.calculatePrice(\r\n this.props.ratesCalculator.findChargesToApply(offer.inlandChargeSet, cst, undefined),\r\n this.props.sizeTypes[cst.sizeTypeId].teu).totalUsd\r\n / this.props.currencies[this.props.currencyId].value)}\r\n \r\n \r\n {this.props.currencies[this.props.currencyId].code}\r\n
\r\n
\r\n );\r\n }\r\n })),\r\n )\r\n .concat(\r\n [{\r\n header: \r\n Applies to\r\n ,\r\n id: 'appliesto',\r\n accessor: (d) => d.inlandChargeSet,\r\n cell: (d: any) => {\r\n let inlandChargeSet = d as Api.InlandChargeSetModel;\r\n return (\r\n
\r\n {getAllpliesTo(inlandChargeSet, this.props.inlandCriteria, this.props.sizeTypes)}\r\n
\r\n );\r\n }\r\n },\r\n {\r\n header: \r\n {getText(\"SlcInlandOfferPickUpEmpty\")}\r\n ,\r\n id: 'pickupEmptyName',\r\n align: \"center\",\r\n accessor: (d) => d.inlandChargeSet,\r\n cell: (d: any) => {\r\n let inlandChargeSet = d as Api.InlandChargeSetModel;\r\n return (\r\n
\r\n {inlandChargeSet && inlandChargeSet.pickupEmptyName\r\n ? inlandChargeSet.pickupEmptyName\r\n : \"\"}\r\n
\r\n );\r\n }\r\n },\r\n {\r\n header: \r\n Validity\r\n ,\r\n id: 'validity',\r\n accessor: (d) => d.inlandChargeSet,\r\n cell: (d: any) => {\r\n let inlandChargeSet = d as Api.InlandChargeSetModel;\r\n return (\r\n
\r\n {inlandChargeSet\r\n && \r\n from{\" \"}\r\n {Moment(inlandChargeSet.dateBegin).format(\"DD/MM/YYYY\")}\r\n to{\" \"}\r\n {Moment(inlandChargeSet.dateEnd).format(\"DD/MM/YYYY\")}\r\n }\r\n
\r\n );\r\n }\r\n },\r\n ].filter(x => x)) as Array}\r\n showPagination={false}\r\n onBodyTrClick={(carrierOffer: Api.CarrierOfferModel) => {\r\n if (carrierOffer) {\r\n //this.props.handleOfferClick(getInlandOfferKey(carrierOffer));\r\n this.props.onOfferClick(getInlandOfferKey(carrierOffer))\r\n }\r\n }}\r\n data={this.props.inlandCarrierOffers} />\r\n \r\n }\r\n}","import * as React from 'react';\r\nimport * as InlandSelectionStore from '../store/InlandSelection';\r\nimport * as Api from '../api/api';\r\nimport * as Colors from \"../styles/colors\";\r\nimport { OfferScropePrivate, OfferScropePublic } from './OfferScope';\r\nimport { RatesCalculator } from '../utils/ratesUtils';\r\nimport {getChargeAmount, getLocationName} from '../utils/utils';\r\nimport { getText } from \"../utils/langTexts\";\r\nimport { getInlandOfferKey } from '../store/InlandSelection';\r\nimport { getAllpliesTo } from './InlandOfferTable';\r\nimport ExpensionPanel from './ExpansionPanel';\r\nimport { roadTransportId } from '../utils/constants';\r\nimport { ArrowDropDown, ArrowDropUp, Warning } from '@material-ui/icons';\r\nimport Linkify from \"react-linkify\";\r\n\r\n\r\ninterface InlandCarrierOfferProps {\r\n ratesCalculator: RatesCalculator;\r\n quotationIsLoaded: boolean;\r\n client: Api.ClientModel;\r\n inlandCarriers: { [id: number]: Api.InlandCarrierModel };\r\n currencies: { [id: number]: Api.CurrencyModel };\r\n chargeNames: { [id: number]: Api.ChargeNameModel };\r\n sizeTypes: { [id: number]: Api.SizeTypeModel };\r\n inlandCriteria: Api.InlandCriteriaModel;\r\n inlandCarrierOffer: Api.InlandCarrierOfferModel;\r\n inlandCarrierOfferState: InlandSelectionStore.InlandCarrierOfferState;\r\n requestDownloadDocument: () => void;\r\n\r\n openDetails: () => void;\r\n closeDetails: () => void;\r\n\r\n openRatesDetails: () => void;\r\n closeRatesDetails: () => void;\r\n\r\n openRatesComment: () => void;\r\n loadQuotationInlandChargeSet: () => void;\r\n\r\n openContainerDetails: (sizeTypeId: number) => void;\r\n closeContainerDetails: (sizeTypeId: number) => void;\r\n toggleDocumentInfoDetails: (id: number, value: boolean) => void;\r\n}\r\n\r\ninterface RequestState {\r\n isLoading: boolean;\r\n requestTime?: number;\r\n}\r\n\r\ninterface RequestState {\r\n isLoading: boolean;\r\n requestTime?: number;\r\n}\r\n\r\nconst priceStyle: React.CSSProperties = {\r\n textAlign: \"center\",\r\n fontWeight: \"bold\"\r\n};\r\n\r\nconst titleStyle: React.CSSProperties = {\r\n fontSize: 20,\r\n marginBottom: 10,\r\n fontWeight: \"bold\",\r\n color: Colors.baseColors.lightBlue\r\n};\r\n\r\nconst fieldStyle: React.CSSProperties = {\r\n margin: \"8px 0px\",\r\n display: \"flex\",\r\n flexDirection: \"row\",\r\n\r\n};\r\nconst fieldLabelStyle: React.CSSProperties = {\r\n fontWeight: \"bold\",\r\n flex: \"0 0 200px\",\r\n textAlign: \"right\",\r\n marginRight: 5\r\n};\r\nconst fieldValueStyle: React.CSSProperties = {\r\n flex: 2\r\n};\r\n\r\nconst chargeFieldStyle: React.CSSProperties = {\r\n margin: \"4px 0px\",\r\n display: \"flex\",\r\n minWidth: \"375px\",\r\n flexDirection: \"row\",\r\n\r\n};\r\nconst chargeFieldLabelStyle: React.CSSProperties = {\r\n fontWeight: \"bold\",\r\n flex: \"0 0 200px\",\r\n textAlign: \"right\",\r\n marginRight: 5\r\n};\r\nconst chargeFieldValueStyle: React.CSSProperties = {\r\n flex: 2\r\n};\r\nconst detailsStyleButton: React.CSSProperties = {\r\n cursor: \"pointer\",\r\n border: \"1px solid\",\r\n borderRadius: 20,\r\n borderColor: `${Colors.baseColors.darkGray}`,\r\n backgroundColor: \"white\",\r\n color: `${Colors.baseColors.lightBlue}`,\r\n fontWeight: \"bold\",\r\n flex: \"0 0 auto\",\r\n marginRight: 10,\r\n height: 36,\r\n width: 100,\r\n minWidth: 76,\r\n padding: \"0 5px 5px 0px\",\r\n fontSize: 15,\r\n paddingTop: 2,\r\n position: \"relative\",\r\n bottom: 16,\r\n};\r\n\r\nconst useQuotationStyleButton: React.CSSProperties = {\r\n cursor: \"pointer\",\r\n border: \"1px solid\",\r\n borderRadius: 20,\r\n borderColor: `${Colors.baseColors.darkGray}`,\r\n backgroundColor: `${Colors.baseColors.lightBlue}`,\r\n color: \"white\",\r\n fontWeight: \"bold\",\r\n flex: \"0 0 auto\",\r\n marginLeft: 60,\r\n marginRight: 10,\r\n height: 36,\r\n minWidth: 160,\r\n padding: \"0 5px 5px 0px\",\r\n position: \"relative\",\r\n bottom: 16,\r\n fontSize: 15,\r\n paddingTop: 2,\r\n};\r\n\r\nconst labelStyle: React.CSSProperties = {\r\n minWidth: 200\r\n , textAlign: \"right\"\r\n , marginRight: 5\r\n , fontWeight: 700\r\n}\r\n\r\nconst ratesTitleStyle: React.CSSProperties = {\r\n fontWeight: 700\r\n}\r\n\r\nconst ratesDetailsField: React.CSSProperties = {\r\n display: \"flex\",\r\n flexDirection: \"row\",\r\n alignItems: \"flex-start\",\r\n marginBottom: 16\r\n}\r\n\r\nconst ratesDetailsLabel: React.CSSProperties = {\r\n textAlign: \"right\",\r\n marginRight: 6,\r\n fontWeight: 700,\r\n minWidth: 200\r\n}\r\n\r\nconst ratesDetailsValue: React.CSSProperties = {\r\n marginLeft: 30\r\n}\r\n\r\ninterface InlandCarrierOfferState {\r\n isLogoVisible: boolean;\r\n isLoading: boolean;\r\n downloadDocumentState: RequestState;\r\n}\r\n\r\nexport default class InlandCarrierOffer extends React.Component {\r\n\r\n private ratesCalculator: RatesCalculator;\r\n\r\n constructor(props: InlandCarrierOfferProps) {\r\n super(props);\r\n //this.ratesCalculator = new RatesCalculator(this.props.currencies, this.props.sizeTypes, this.props.inlandCriteria);\r\n this.state = {\r\n isLogoVisible: true,\r\n isLoading: false,\r\n downloadDocumentState: { isLoading: false },\r\n };\r\n }\r\n\r\n get inlandCarrierOfferState(): InlandSelectionStore.InlandCarrierOfferState {\r\n return {\r\n ...InlandSelectionStore.unloadedInlandCarrierOfferState,\r\n ...this.props.inlandCarrierOfferState,\r\n };\r\n }\r\n\r\n getSource(chargeNameId: number, sizeTypeId: number): Api.ChargeModel {\r\n return this.props.ratesCalculator\r\n .findChargesToApplybySizeId(this.props.inlandCarrierOffer.inlandChargeSet, sizeTypeId)\r\n .find(x => x.chargeNameId === chargeNameId);\r\n }\r\n\r\n public render() {\r\n return (\r\n
\r\n
\r\n
\r\n {this.props.inlandCarrierOffer.inlandChargeSet\r\n && this.props.inlandCarrierOffer.inlandChargeSet.firmId\r\n &&
\r\n \r\n
}\r\n {this.props.inlandCarrierOffer.inlandChargeSet\r\n && !this.props.inlandCarrierOffer.inlandChargeSet.firmId\r\n &&
\r\n \r\n
}\r\n
\r\n
\r\n {this.props.inlandCarrierOffer.inlandChargeSet\r\n && this.props.inlandCriteria.priceDisplayMode === \"AllIn\"\r\n &&
\r\n {Math.round(this.props.ratesCalculator.calculateAllIn(this.props.inlandCarrierOffer.inlandChargeSet).totalUsd\r\n / this.props.currencies[this.props.client.inlandCurrencyId].value)}{\" \"}\r\n {this.props.currencies[this.props.client.inlandCurrencyId].code}\r\n
}\r\n {this.props.inlandCarrierOffer.inlandChargeSet\r\n && this.props.inlandCriteria.priceDisplayMode === \"ByCtr\"\r\n &&
\r\n {this.props.inlandCriteria.inlandCriteriaSizeTypes\r\n .filter(cst => cst.number > 0)\r\n .map(cst =>
\r\n {this.props.sizeTypes[cst.sizeTypeId].name}\r\n {\": \"}{Math.round(this.props.ratesCalculator.calculatePrice(\r\n this.props.ratesCalculator.findChargesToApply(\r\n this.props.inlandCarrierOffer.inlandChargeSet, cst),\r\n this.props.sizeTypes[cst.sizeTypeId].teu).totalUsd\r\n / this.props.currencies[this.props.client.inlandCurrencyId].value)}{\" \"}\r\n {this.props.currencies[this.props.client.inlandCurrencyId].code}\r\n
)}\r\n
}\r\n {this.props.inlandCarrierOffer.offerInformations\r\n && this.props.inlandCarrierOffer.offerInformations.some(x => x.level === \"High\")\r\n && }\r\n {!this.props.inlandCarrierOffer.inlandChargeSet\r\n &&
\r\n No Rates\r\n
}\r\n
\r\n
\r\n {this.props.inlandCarriers[this.props.inlandCarrierOffer.inlandCarrierId].name}\r\n
\r\n
\r\n {getText(\"SlcInlandOfferTitle\", {\r\n origin: this.props.inlandCarrierOffer.inlandRoute.pickupLocation.name,\r\n destination: this.props.inlandCarrierOffer.inlandRoute.dropOffLocation.name,\r\n })}\r\n
\r\n this.setState({ isLogoVisible: false })}\r\n src={'/images/inlandCarriers/' + this.props.inlandCarriers[this.props.inlandCarrierOffer.inlandCarrierId].code.toLowerCase() + '.png'} />\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {getText(\"SlcInlandOfferRouteType\")} \r\n {this.props.inlandCarrierOffer.inlandRoute.type === \"TruckRoundTrip\" && \"Truck round trip\"}\r\n {this.props.inlandCarrierOffer.inlandRoute.type === \"TruckOneWay\" && \"Truck one way\"}\r\n {this.props.inlandCarrierOffer.inlandRoute.type === \"BargeTruckOneWay\" && \"Barge truck one way\"}\r\n {this.props.inlandCarrierOffer.inlandRoute.type === \"RailTruckOneWay\" && \"Rail truck one way\"}\r\n \r\n
\r\n
\r\n {getText(\"SlcInlandOfferApplyTo\")}
\r\n {getAllpliesTo(this.props.inlandCarrierOffer.inlandChargeSet, this.props.inlandCriteria, this.props.sizeTypes)}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n { /*manage from store*/ }}\r\n head={
}>\r\n
\r\n { /*manage from store*/ }}\r\n head={
}>\r\n
\r\n
\r\n
\r\n {getText(\"SlcOfferVoyageDetails\")}\r\n
\r\n
\r\n
{getText(\"SlcOfferPol\")}
\r\n
{getLocationName(this.props.inlandCarrierOffer.inlandRoute.pickupLocation)}
\r\n
\r\n
\r\n
{getText(\"SlcOfferPod\")}
\r\n
{getLocationName(this.props.inlandCarrierOffer.inlandRoute.dropOffLocation)}
\r\n
\r\n
\r\n
{getText(\"SlcInlandOfferRouteType\")}
\r\n
\r\n {this.props.inlandCarrierOffer.inlandRoute.type === \"TruckRoundTrip\" && \"Truck round trip\"}\r\n {this.props.inlandCarrierOffer.inlandRoute.type === \"TruckOneWay\" && \"Truck one way\"}\r\n {this.props.inlandCarrierOffer.inlandRoute.type === \"BargeTruckOneWay\" && \"Barge truck one way\"}\r\n {this.props.inlandCarrierOffer.inlandRoute.type === \"RailTruckOneWay\" && \"Rail truck one way\"}\r\n
\r\n
\r\n
\r\n
{getText(\"SlcInlandOfferApplyTo\")}
\r\n
{getAllpliesTo(this.props.inlandCarrierOffer.inlandChargeSet, this.props.inlandCriteria, this.props.sizeTypes)}
\r\n
\r\n
\r\n
{getText(\"SlcInlandOfferPickUpEmpty\")}
\r\n
\r\n {this.props.inlandCarrierOffer.inlandChargeSet\r\n && this.props.inlandCarrierOffer.inlandChargeSet.pickupEmptyName\r\n ? this.props.inlandCarrierOffer.inlandChargeSet.pickupEmptyName\r\n : getText(\"GenNone\")}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
{getText(\"SlcOfferRatesDetails\")}
\r\n\r\n
\r\n
\r\n
\r\n {/*FCL charges details*/}\r\n {this.props.inlandCriteria?.inlandCriteriaSizeTypes\r\n .filter(cst => cst.number > 0\r\n && this.props.inlandCarrierOffer.inlandChargeSet\r\n && this.props.ratesCalculator.findChargesToApply(this.props.inlandCarrierOffer.inlandChargeSet,\r\n cst,\r\n null).some(x => x.chargeNameId === roadTransportId)).map(cst =>\r\n
\r\n {\r\n if (this.props.inlandCarrierOfferState?.sizeTypesOpened[cst.sizeTypeId] ? true : false) { this.props.closeContainerDetails(cst.sizeTypeId) }\r\n else {\r\n this.props.openContainerDetails(cst.sizeTypeId)\r\n }\r\n }}\r\n head={
\r\n
\r\n {getText(\"SlcOfferRatesCtr\", {\r\n containerName: this.props.sizeTypes[cst.sizeTypeId].name,\r\n value: this.props.inlandCarrierOffer.inlandChargeSet\r\n ? (Math.round(this.props.ratesCalculator.calculatePrice(\r\n this.props.ratesCalculator.findChargesToApply(\r\n this.props.inlandCarrierOffer.inlandChargeSet,\r\n cst, null),\r\n this.props.sizeTypes[cst.sizeTypeId].teu).totalUsd /\r\n this.props.currencies[this.props.client.inlandCurrencyId].value) + \" \" + this.props.currencies[this.props.client.inlandCurrencyId].code)\r\n : (!this.props.inlandCarrierOffer.inlandChargeSet ? getText(\"SlcOfferRatesNoRates\") : \"Disabled\")\r\n })}\r\n
\r\n
\r\n {this.props.inlandCarrierOfferState?.sizeTypesOpened[cst.sizeTypeId]\r\n ? \r\n : }\r\n
\r\n
}>\r\n
\r\n {this.props.ratesCalculator.findChargesToApply(this.props.inlandCarrierOffer.inlandChargeSet, cst)\r\n .concat(this.props.ratesCalculator.findBlChargesToApply(this.props.inlandCarrierOffer.inlandChargeSet))\r\n .map(charge =>
\r\n
{this.props.chargeNames[charge.chargeNameId].shortName}:
\r\n
\r\n {charge.chargeType === \"Value\"\r\n &&
\r\n {getChargeAmount(charge, this.props.sizeTypes[cst.sizeTypeId].teu)}\r\n {\" \"}\r\n {this.props.currencies[charge.currencyId].code}\r\n
}\r\n {charge.chargeType === \"Source\"\r\n && charge.type === \"Incl\"\r\n &&
{getText(\"GenIncluded\", { value: this.props.chargeNames[charge.sourceChargeNameId].shortName })}
}\r\n {charge.chargeType === \"Source\"\r\n && charge.type === \"Percentage\"\r\n &&
\r\n {this.getSource(charge.sourceChargeNameId, cst.sizeTypeId)\r\n ? \r\n {Math.round(getChargeAmount(this.getSource(charge.sourceChargeNameId, cst.sizeTypeId),\r\n this.props.sizeTypes[cst.sizeTypeId].teu) * charge.amount * 100) / 100}\r\n {\" \"}\r\n {this.props.currencies[this.getSource(charge.sourceChargeNameId, cst.sizeTypeId).currencyId].code}\r\n \r\n : \"\"}\r\n {\" \"}\r\n ({Math.round(charge.amount * 100 * 100) / 100}% of {this.props.chargeNames[charge.sourceChargeNameId].shortName})\r\n
}\r\n
\r\n
)}\r\n
\r\n
\r\n
)}\r\n
\r\n
\r\n {\r\n if (this.props.inlandCarrierOfferState?.ratesDetailsOpened ? true : false) { this.props.closeRatesDetails() }\r\n else {\r\n this.props.openRatesDetails()\r\n }\r\n }}\r\n head={
\r\n
\r\n
\r\n {getText(\"SlcOfferRatesInfo\")}\r\n
\r\n
\r\n {this.props.inlandCarrierOfferState?.ratesDetailsOpened\r\n ? \r\n : }\r\n
\r\n
\r\n
}>\r\n {this.props.inlandCarrierOffer.inlandChargeSet\r\n ?
\r\n {
\r\n
{getText(\"SlcOfferRatesOcqSource\")}
\r\n
}\r\n
\r\n
{getText(\"SlcOfferRatesReference\")}
\r\n
\r\n {this.props.inlandCarrierOffer.inlandChargeSet.reference || No reference}\r\n
\r\n
\r\n
\r\n
{getText(\"SlcOfferRatesShortName\")}
\r\n
\r\n {(this.props.inlandCarrierOffer.inlandRatesOffer &&\r\n this.props.inlandCarrierOffer.inlandRatesOffer.shortName) || Not defined}\r\n
\r\n
\r\n
\r\n
{getText(\"SlcOfferRatesDescription\")}
\r\n
\r\n

\r\n {this.props.inlandCarrierOffer.inlandRatesOffer\r\n && this.props.inlandCarrierOffer.inlandRatesOffer.comment\r\n ? this.props.inlandCarrierOffer.inlandRatesOffer.comment\r\n : Not defined}\r\n

\r\n
\r\n
\r\n {(this.props.inlandCarrierOffer.offerInformations || [])\r\n .map(di =>
\r\n
\r\n
\r\n {di.level === \"High\"\r\n && }\r\n {getText(\"SlcOfferRatesSpecificInfoTitle\")}\r\n
\r\n
\r\n this.props.toggleDocumentInfoDetails(di.offerInformationId, value)}\r\n head={
{getText(\"SlcOfferRatesInfoDetails\")}
}>\r\n

\r\n {di.content}\r\n

\r\n
\r\n
\r\n
\r\n
)}\r\n
{\r\n if (!this.props.inlandCarrierOfferState?.downloadDocumentState.isLoading ? true : false) {\r\n this.props.requestDownloadDocument();\r\n }\r\n }}>\r\n {getText(\"SlcOfferRatesDownloadSheet\")}\r\n
\r\n
\r\n :
{getText(\"SlcOfferRatesNoRates\")}
}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n );\r\n }\r\n}","import * as React from 'react';\r\nimport { connect } from 'react-redux';\r\nimport { ApplicationState } from '../store';\r\nimport * as InlandSelectionStore from '../store/InlandSelection';\r\nimport * as InlandCriteriaState from '../store/InlandCriteria';\r\nimport * as ContactBoxStore from '../store/ContactBox';\r\nimport * as QuotationStore from '../store/Quotation';\r\nimport * as Api from '../api/api';\r\nimport { RatesCalculator } from '../utils/ratesUtils';\r\nimport { getSubscription } from '../utils/utils';\r\nimport { scrollToWhen } from 'react-redux-scroll';\r\nimport Pagination from '@material-ui/lab/Pagination';\r\nimport { revertColors } from '../styles/colors';\r\nimport { getInlandOfferKey } from '../store/InlandSelection';\r\nimport InlandCarrierOffer from './InlandCarrierOffer';\r\nimport DialogModal from './DialogModal';\r\nimport Button from './Button';\r\n\r\n// At runtime, Redux will merge together...\r\ntype InlandSelectionOffersProps =\r\n InlandSelectionOffersOwnProps\r\n & InlandSelectionStore.InlandSelectionState\r\n & typeof InlandSelectionStore.actionCreators\r\n & typeof InlandCriteriaState.actionCreators\r\n & typeof ContactBoxStore.actionCreators\r\n & typeof QuotationStore.actionCreators\r\n & InlandSelectionOffersExternalProps;\r\n\r\ninterface InlandSelectionOffersOwnProps {\r\n feedback: ContactBoxStore.FeedbackState;\r\n sizeTypes: { [id: number]: Api.SizeTypeModel };\r\n currencies: { [id: number]: Api.CurrencyModel };\r\n chargeNames: { [id: number]: Api.ChargeNameModel };\r\n inlandCarriers: { [id: number]: Api.InlandCarrierModel };\r\n carrierGroups: { [id: number]: Api.CarrierGroupModel };\r\n client: Api.ClientModel;\r\n inlandCriteriaLoaded?: Api.CriteriaModel;\r\n inlandCriteria: InlandCriteriaState.InlandCriteriaState;\r\n subscription: Api.SubscriptionModel;\r\n quotationIsLoaded: boolean;\r\n}\r\n\r\ninterface InlandSelectionOffersExternalProps {\r\n ratesCalculator: RatesCalculator;\r\n inlandCarrierOffersFiltered: Array;\r\n}\r\n\r\n\r\nconst offerPerPage = 6;\r\n\r\nconst isOfferSelected = (action, props): boolean => {\r\n if (action.type === \"SELECT_INLAND_CARRIEROFFER\"\r\n && props.id === action.payload.key) {\r\n return true;\r\n }\r\n\r\n return false;\r\n}\r\nconst ScrollableOffer =\r\n scrollToWhen(isOfferSelected, null, null, [\"id\"])(\"div\");\r\n\r\nconst importantMessageStyle: React.CSSProperties = {\r\n fontSize: 16,\r\n fontWeight: \"bold\",\r\n textAlign: \"center\"\r\n};\r\n\r\nclass InlandSelectionOffers extends React.Component {\r\n\r\n constructor(props) {\r\n super(props);\r\n }\r\n\r\n scrollToOfferDeparts(inlandOfferId: string) {\r\n this.props.selectPage(Math.floor(this.props.inlandSelection.inlandCarrierOffers\r\n .findIndex(x => getInlandOfferKey(x) === inlandOfferId) / offerPerPage) + 1);\r\n setTimeout(() => this.props.selectInlandCarrierOffer(inlandOfferId), 0);\r\n }\r\n\r\n public render() {\r\n return (\r\n
\r\n
\r\n
\r\n {this.props.inlandCarrierOffersFiltered\r\n .slice((this.props.page - 1) * offerPerPage, this.props.page * offerPerPage)\r\n .map((offer, i) =>\r\n \r\n this.props.openUseInQuotation(getInlandOfferKey(offer))}\r\n requestDownloadDocument={() => this.props.requestDownloadRatesDocument(new Date().getTime(), getInlandOfferKey(offer))}\r\n\r\n openRatesComment={() => this.props.openInlandOfferRatesComment(getInlandOfferKey(offer))}\r\n\r\n openRatesDetails={() => this.props.openInlandOfferRatesDetails(getInlandOfferKey(offer))}\r\n closeRatesDetails={() => this.props.closeInlandOfferRatesDetails(getInlandOfferKey(offer))}\r\n\r\n openDetails={() => this.props.openInlandOfferDetails(getInlandOfferKey(offer))}\r\n closeDetails={() => this.props.closeInlandOfferDetails(getInlandOfferKey(offer))}\r\n\r\n openContainerDetails={(sizeTypeId) => this.props.openInlandOfferContainerDetails(getInlandOfferKey(offer), sizeTypeId)}\r\n closeContainerDetails={(sizeTypeId) => this.props.closeInlandOfferContainerDetails(getInlandOfferKey(offer), sizeTypeId)}\r\n toggleDocumentInfoDetails={(id, val) => this.props.toggleDocumentInfoDetails(getInlandOfferKey(offer), id, val)}\r\n />\r\n \r\n )}\r\n
\r\n
\r\n this.props.selectPage(page)} />\r\n
\r\n
\r\n this.props.closenUseInQuotation()}\r\n contentLabel={\"Use in quotation\"}>\r\n
\r\n
\r\n Transfer inland rates to my current quotation\r\n
\r\n
\r\n
\r\n {\r\n this.props.quotationUseInlandChargeSet(\r\n this.props.inlandSelection.inlandCarrierOffers.find(x => getInlandOfferKey(x) === this.props.selectedOffer).inlandChargeSet,\r\n \"Origin\");\r\n }}>\r\n Add to pre-transport (export)\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\n//So its the same ref\r\nconst emptyArray = [];\r\n//Filtering is done here, we'll use reselect for optimization later on, for now we don't care\r\nexport default connect(\r\n (state: ApplicationState) => {\r\n let subscription = getSubscription(state.account.currentUser.clientModel)\r\n || { subscriptionType: null };\r\n\r\n return {\r\n ...state.inlandSelection,\r\n feedback: state.contactBox.feedback,\r\n inlandCriteria: state.inlandCriteria,\r\n inlandCriteriaLoaded: state.inlandSelection.inlandCriteriaLoaded,\r\n sizeTypes: state.seed.sizeTypes,\r\n currencies: state.seed.currencies,\r\n chargeNames: state.seed.chargeNames,\r\n inlandCarriers: state.seed.inlandCarriers,\r\n carrierGroups: state.seed.carrierGroups,\r\n client: state.account.currentUser.clientModel,\r\n subscription: subscription,\r\n quotationIsLoaded: state.quotation.isLoaded,\r\n } as any;\r\n },\r\n {\r\n ...QuotationStore.actionCreators,\r\n ...InlandSelectionStore.actionCreators,\r\n ...InlandCriteriaState.actionCreators,\r\n ...ContactBoxStore.actionCreators\r\n })\r\n (InlandSelectionOffers) as any as React.ComponentClass;","import * as React from 'react';\r\nimport { connect } from 'react-redux';\r\nimport { ApplicationState } from '../store';\r\nimport * as InlandCriteriaStore from '../store/InlandCriteria';\r\nimport * as InlandSelectionStore from '../store/InlandSelection';\r\nimport * as Api from '../api/api';\r\nimport CriteriaSizeType from './CriteriaSizeType';\r\nimport CheckBox from './CheckBox';\r\nimport {Add, Close, Remove} from \"@material-ui/icons\";\r\nimport * as Colors from \"../styles/colors\";\r\nimport Select from \"./Select\";\r\nimport {inlandContainerTypeOptions} from \"./InlandCriteriaForm\";\r\nimport ChargeCriteriaInput from \"./ChargeCriteriaInput\";\r\nimport {getText} from \"../utils/langTexts\";\r\nimport PopperButton from \"./PopperButton\";\r\n\r\ntype InlandSelectionFilterCriteriaProps = InlandSelectionFilterCriteriaOwnProps\r\n & typeof InlandCriteriaStore.actionCreators\r\n & typeof InlandSelectionStore.actionCreators\r\n ;\r\n\r\ninterface InlandSelectionFilterCriteriaOwnProps {\r\n sizeTypes: { [id: number]: Api.SizeTypeModel };\r\n inlandCriteria: Api.InlandCriteriaModel;\r\n advContainerOpened: boolean;\r\n isLoading: boolean;\r\n}\r\n\r\nclass InlandSelectionFilterCriteria extends React.Component {\r\n get selectedCtrOptions(): number {\r\n if(!this.props.inlandCriteria.chargeCriterias)\r\n return 0;\r\n \r\n return (this.props.inlandCriteria.chargeCriterias.some(x => x === \"Goh\") ? 1 : 0)\r\n + (this.props.inlandCriteria.chargeCriterias.some(x => x === \"GohDouble\") ? 1 : 0)\r\n + (this.props.inlandCriteria.chargeCriterias.some(x => x === \"Hazardous\") ? 1 : 0)\r\n + (this.props.inlandCriteria.chargeCriterias.some(x => x === \"Owned\") ? 1 : 0);\r\n }\r\n \r\n updateSearch(): Promise {\r\n let promise = (this.props.requestCreateInlandCriteria(new Date().getTime(), this.props.inlandCriteria) as any) as Promise;\r\n return promise.then((inlandCriteria) => {\r\n this.props.goToSelection(inlandCriteria.code);\r\n });\r\n }\r\n \r\n public render() {\r\n return (\r\n
\r\n
\r\n
\r\n {this.props.inlandCriteria.inlandCriteriaSizeTypes\r\n && this.props.inlandCriteria.inlandCriteriaSizeTypes.map((cs, index) =>\r\n this.props.updateInlandCriteriaSizeType(cs.sizeTypeId, value)}\r\n min={0}\r\n max={this.props.inlandCriteria.priceDisplayMode === \"ByCtr\" ? 1 : 9}\r\n />)}\r\n
\r\n {\r\n if (val) {\r\n this.props.updateAdvContainer(true);\r\n } else {\r\n this.props.updateAdvContainer(false);\r\n }\r\n }}\r\n style={{\r\n display: \"flex\",\r\n flexDirection: \"row-reverse\",\r\n alignItems: \"row\",\r\n marginTop: 20,\r\n }}\r\n disablePortal={true}\r\n popperStyle={{}}\r\n buttonStyle={{ height: 28, minWidth: 90, fontSize: 13, position: \"relative\" }}\r\n buttonContent={
\r\n Options \r\n {this.selectedCtrOptions !== 0\r\n &&
{this.selectedCtrOptions}
}\r\n
}\r\n buttonOpenedContent={
Options
}>\r\n
\r\n
\r\n this.props.updateAdvContainer(false)} />\r\n
\r\n
\r\n
\r\n
Type
\r\n
\r\n this.props.selectContainerType(value)} />\r\n
\r\n
\r\n
\r\n this.props.updateChargeCriteria(value)} />\r\n
\r\n
\r\n
\r\n \r\n
\r\n
Rates displayed
\r\n
\r\n {\r\n if (value) {\r\n this.props.updateInlandCriteriaPriceDisplay(\"ByCtr\");\r\n } else {\r\n this.props.updateInlandCriteriaPriceDisplay(\"AllIn\");\r\n }\r\n }} />\r\n
\r\n
\r\n {\r\n if(value !== this.props.inlandCriteria.includeCarrierRates) {\r\n this.props.updateInlandCriteriaCarrierRates(value);\r\n setTimeout(() => this.updateSearch(), 200);\r\n }\r\n }} />\r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\nexport default connect((state: ApplicationState) => ({\r\n sizeTypes: state.seed.sizeTypes,\r\n inlandCriteria: state.inlandCriteria.inlandCriteria,\r\n advContainerOpened: state.inlandSelection.advContainerOpened,\r\n isLoading: state.inlandSelection.isLoading || state.inlandCriteria.isLoading\r\n} as any), {\r\n ...InlandCriteriaStore.actionCreators,\r\n ...InlandSelectionStore.actionCreators\r\n})(InlandSelectionFilterCriteria) as any;","import * as React from 'react';\r\nimport * as InlandSelectionStore from '../store/InlandSelection';\r\nimport * as Api from '../api/api';\r\nimport * as _ from 'lodash';\r\nimport * as SelectionStore from '../store/Selection';\r\nimport { connect } from 'react-redux';\r\nimport { ApplicationState } from '../store';\r\nimport CheckBox from './CheckBox';\r\nimport Button from './Button';\r\n\r\n\r\ntype InlandSelectionFilterProps = InlandSelectionFilterOwnProps\r\n & typeof InlandSelectionStore.actionCreators;\r\n\r\ninterface InlandSelectionFilterOwnProps {\r\n\r\n filterModel: SelectionStore.SelectionFilterModel;\r\n inlandCarriers: { [id: number]: Api.InlandCarrierModel };\r\n filter: InlandSelectionStore.InlandSelectionFilter;\r\n inlandCarrierOffers: Array;\r\n carriers: { [id: number]: Api.CarrierModel };\r\n carrierOffers: Array;\r\n\r\n}\r\n\r\ninterface CarrierSelected {\r\n carrierId: number;\r\n isSelected: boolean;\r\n}\r\n\r\nconst checkboxLabelStyle: React.CSSProperties = {\r\n fontSize: \"14px\" \r\n}\r\n\r\nclass InlandSelectionFilter extends React.Component {\r\n get allInlandCarriersSelected(): boolean {\r\n return !_.uniq(this.props.inlandCarrierOffers.map(x => x.inlandCarrierId))\r\n .some(x => this.props.filter.inlandCarriersSelected[x] === false);\r\n }\r\n\r\n get inlandCarriersAvailable(): Array {\r\n return _.sortBy(_.uniq(this.props.inlandCarrierOffers\r\n .map(x => x.inlandCarrierId))\r\n .map(x => this.props.inlandCarriers[x]), x => x.name);\r\n }\r\n\r\n public render() {\r\n return (\r\n
\r\n
Carriers
\r\n {\r\n this.props.updateInlandAllCarrierSelected(this.inlandCarriersAvailable.some(x => this.props.filter.inlandCarriersSelected[x.inlandCarrierId] !== false) ? false : true);\r\n }} style={{\r\n height: 28, minWidth: 90, fontSize: 13\r\n }}>{this.inlandCarriersAvailable.some(x => this.props.filter.inlandCarriersSelected[x.inlandCarrierId] !== false)\r\n ? \"Unselect all\"\r\n : \"Select all\"}\r\n
\r\n {this.inlandCarriersAvailable.map(inlandCarrier => (\r\n
\r\n this.props.updateInlandCarrierSelected(inlandCarrier.inlandCarrierId, value)} />\r\n
\r\n ))}\r\n
\r\n\r\n
\r\n );\r\n }\r\n}\r\n\r\nexport default connect((state: ApplicationState) => ({\r\n filter: state.inlandSelection.filter,\r\n inlandCarriers: state.seed.inlandCarriers,\r\n inlandCarrierOffers: state.inlandSelection.inlandSelection\r\n ? state.inlandSelection.inlandSelection.inlandCarrierOffers\r\n : []\r\n} as any), {\r\n ...InlandSelectionStore.actionCreators\r\n})(InlandSelectionFilter) as any;","import * as React from 'react';\r\nimport { connect } from 'react-redux';\r\nimport { ApplicationState } from '../store';\r\nimport * as InlandCriteriaStore from '../store/InlandCriteria';\r\nimport * as InlandSelectionStore from '../store/InlandSelection';\r\nimport * as Api from '../api/api';\r\nimport { getText } from \"../utils/langTexts\";\r\nimport DatePicker from './DatePicker';\r\nimport Tooltip from './Tooltip';\r\nimport Button from './Button';\r\nimport { ArrowBack } from '@material-ui/icons';\r\nimport CriteriaLocationSelect from \"./CriteriaLocationSelect\";\r\nimport * as Colors from '../styles/colors';\r\n\r\ntype InlandSelectionCriteriaProps = InlandSelectionCriteriaOwnProps\r\n & typeof InlandCriteriaStore.actionCreators\r\n & typeof InlandSelectionStore.actionCreators;\r\n\r\ninterface InlandSelectionCriteriaOwnProps {\r\n isLoading: boolean;\r\n inlandCriteria: Api.InlandCriteriaModel;\r\n inlandCriteriaLoaded: Api.InlandCriteriaModel;\r\n}\r\n\r\nconst formFieldStyle: React.CSSProperties = {\r\n marginRight: 5,\r\n flex: \"0 0 auto\",\r\n //height: \"45px\",\r\n}\r\n\r\nconst datePickerStyle: React.CSSProperties = {\r\n height: \"34px\",\r\n}\r\n\r\nconst datePickerContainerStyle: React.CSSProperties = {\r\n ...formFieldStyle,\r\n maxWidth: 250,\r\n flex: 1,\r\n}\r\n\r\nclass InlandSelectionCriteria extends React.Component {\r\n get needReload(): boolean {\r\n if (!this.props.inlandCriteria.origin\r\n || this.props.inlandCriteria.destination) {\r\n return false;\r\n }\r\n\r\n return (this.props.inlandCriteria.origin && this.props.inlandCriteria.origin.locationId !== this.props.inlandCriteriaLoaded.origin.locationId)\r\n || (this.props.inlandCriteria.destination && this.props.inlandCriteria.destination.locationId !== this.props.inlandCriteriaLoaded.destination.locationId)\r\n || this.props.inlandCriteria.dateBegin !== this.props.inlandCriteriaLoaded.dateBegin\r\n || this.props.inlandCriteria.dateEnd !== this.props.inlandCriteriaLoaded.dateEnd;\r\n }\r\n\r\n search() {\r\n if (!this.props.inlandCriteria.origin\r\n || !this.props.inlandCriteria.destination)\r\n return;\r\n\r\n let promise = (this.props.requestCreateInlandCriteria(new Date().getTime(), this.props.inlandCriteria) as any) as Promise;\r\n return promise.then((inlandCriteria) => {\r\n this.props.goToSelection(inlandCriteria.code);\r\n });\r\n }\r\n\r\n public render() {\r\n return (\r\n
\r\n
\r\n
\r\n this.props.goToInlandCriteria()}\r\n style={{ cursor: \"pointer\" }}\r\n />\r\n
\r\n
\r\n this.props.updateInlandCriteriaDateBegin(date)}>\r\n
\r\n
\r\n this.props.updateInlandCriteriaDateEnd(date)}>\r\n
\r\n
\r\n this.props.updateInlandCriteriaOrigin(value)} />\r\n
\r\n
\r\n this.props.updateInlandCriteriaDestination(value)} />\r\n
\r\n
\r\n {getText(\"SlcCrtReloadRequired\")}}>\r\n {\r\n this.search();\r\n }}>{getText(\"SlcCrtSearch\")}\r\n \r\n
\r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\nexport default connect((state: ApplicationState) => ({\r\n inlandCriteria: state.inlandCriteria.inlandCriteria,\r\n inlandCriteriaLoaded: state.inlandSelection.inlandCriteriaLoaded,\r\n isLoading: state.inlandSelection.isLoading\r\n} as any), {\r\n ...InlandCriteriaStore.actionCreators,\r\n ...InlandSelectionStore.actionCreators,\r\n})(InlandSelectionCriteria) as any;","import * as React from 'react';\r\nimport * as InlandSelectionStore from '../store/InlandSelection';\r\nimport * as InlandCriteriaState from '../store/InlandCriteria';\r\nimport * as Api from '../api/api';\r\nimport { connect } from 'react-redux';\r\nimport { ApplicationState } from '../store';\r\nimport { getSubscription } from '../utils/utils';\r\nimport { RatesCalculator } from '../utils/ratesUtils';\r\nimport InlandOfferTable from './InlandOfferTable';\r\nimport { getText } from '../utils/langTexts';\r\nimport { colors } from '../styles/colors';\r\n\r\ntype InlandSelectionOffersTableProps =\r\n InlandSelectionOffersOwnProps\r\n & InlandSelectionStore.InlandSelectionState\r\n & typeof InlandSelectionStore.actionCreators\r\n & typeof InlandCriteriaState.actionCreators\r\n & InlandSelectionOffersExternalProps\r\n\r\ninterface InlandSelectionOffersExternalProps {\r\n ratesCalculator: RatesCalculator;\r\n inlandCarrierOffersFiltered: Array;\r\n}\r\n\r\ninterface InlandSelectionOffersOwnProps {\r\n sizeTypes: { [id: number]: Api.SizeTypeModel };\r\n currencies: { [id: number]: Api.CurrencyModel };\r\n chargeNames: { [id: number]: Api.ChargeNameModel };\r\n inlandCarriers: { [id: number]: Api.InlandCarrierModel };\r\n carrierGroups: { [id: number]: Api.CarrierGroupModel };\r\n client: Api.ClientModel;\r\n inlandCriteriaLoaded?: Api.CriteriaModel;\r\n inlandCriteria: InlandCriteriaState.InlandCriteriaState;\r\n subscription: Api.SubscriptionModel;\r\n}\r\n\r\nconst importantMessageStyle: React.CSSProperties = {\r\n fontSize: 16,\r\n fontWeight: \"bold\",\r\n textAlign: \"center\"\r\n};\r\n\r\nclass InlandSelectionOffersTable extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n }\r\n getInlandOfferKey = (offer: Api.InlandCarrierOfferModel): string => {\r\n let chargeSetId = offer.inlandChargeSet ? offer.inlandChargeSet.inlandChargeSetId : 0;\r\n return `R${offer.inlandRoute.inlandRouteId}C${chargeSetId}`;\r\n }\r\n scrollToOfferDeparts(inlandOfferId: string) {\r\n // this.props.selectInlandCarrierOffer(inlandOfferId);\r\n this.props.selectPage(Math.floor(this.props.inlandCarrierOffersFiltered.findIndex(x => this.getInlandOfferKey(x) === inlandOfferId) / 6) + 1);\r\n setTimeout(() => this.props.selectInlandCarrierOffer(inlandOfferId), 0);\r\n }\r\n public render() {\r\n return (\r\n
\r\n {this.props.errorMessage &&\r\n
{this.props.errorMessage}
}\r\n
\r\n this.scrollToOfferDeparts(key)} />\r\n
\r\n
\r\n
\r\n
\r\n \r\n {this.props.inlandCarrierOffersFiltered.length} {getText(\"SlcOffersCount\")}\r\n \r\n
\r\n
\r\n
\r\n
\r\n {this.props.warningMessage &&\r\n {this.props.warningMessage}
}\r\n
\r\n \r\n );\r\n }\r\n\r\n}\r\n\r\nexport default connect((state: ApplicationState) => {\r\n let subscription = getSubscription(state.account.currentUser.clientModel)\r\n || { subscriptionType: null };\r\n return {\r\n\r\n ...state.inlandSelection,\r\n sizeTypes: state.seed.sizeTypes,\r\n currencies: state.seed.currencies,\r\n chargeNames: state.seed.chargeNames,\r\n inlandCarriers: state.seed.inlandCarriers,\r\n carrierGroups: state.seed.carrierGroups,\r\n client: state.account.currentUser.clientModel,\r\n inlandCriteria: state.inlandCriteria,\r\n inlandCriteriaLoaded: state.inlandSelection.inlandCriteriaLoaded,\r\n subscription: subscription,\r\n }\r\n},\r\n {\r\n ...InlandSelectionStore.actionCreators,\r\n ...InlandCriteriaState.actionCreators\r\n }\r\n)(InlandSelectionOffersTable as any as React.ComponentClass)","import * as _ from 'lodash';\r\nimport * as React from 'react';\r\nimport { connect } from 'react-redux';\r\nimport { ApplicationState } from '../store';\r\nimport * as InlandSelectionStore from '../store/InlandSelection';\r\nimport * as InlandCriteriaState from '../store/InlandCriteria';\r\nimport * as ContactBoxStore from '../store/ContactBox';\r\nimport { RouteComponentProps } from 'react-router';\r\nimport * as Api from '../api/api';\r\nimport Loader from './Loader';\r\nimport InlandSelectionOffers from \"./InlandSelectionOffers\";\r\nimport * as Colors from \"../styles/colors\";\r\nimport InlandSelectionFilterCriteria from './InlandSelectionFilterCriteria';\r\nimport InlandSelectionFilter from './InlandSelectionFilter';\r\nimport InlandSelectionCriteria from './InlandSelectionCriteria';\r\nimport InlandSelectionOfferTable from './InlandSelectionOffersTable';\r\nimport { roadTransportId } from '../utils/constants';\r\nimport { RatesCalculator } from '../utils/ratesUtils';\r\n\r\ntype InlandSelectionProps = InlandSelectionOwnProps\r\n & typeof InlandSelectionStore.actionCreators\r\n & typeof InlandCriteriaState.actionCreators\r\n & typeof ContactBoxStore.actionCreators\r\n & RouteComponentProps<{ code: string }>\r\n & InlandSelectionStore.InlandSelectionState\r\n\r\ninterface InlandSelectionOwnProps {\r\n feedback: ContactBoxStore.FeedbackState;\r\n inlandCriteria: Api.InlandCriteriaModel;\r\n sizeTypes: { [id: number]: Api.SizeTypeModel };\r\n currencies: { [id: number]: Api.CurrencyModel };\r\n}\r\n\r\nconst offerPerPage = 6;\r\n\r\nconst InputStyle: React.CSSProperties = {\r\n height: \"45px\",\r\n width: \"150px\",\r\n}\r\n\r\nclass InlandSelection extends React.Component {\r\n ratesCalculator: RatesCalculator;\r\n\r\n updateRatesCalculator(props: InlandSelectionProps) {\r\n this.ratesCalculator = new RatesCalculator(\r\n props.currencies,\r\n props.sizeTypes,\r\n InlandSelectionStore.inlandCriteriaToCriteria(props.inlandCriteria)\r\n );\r\n }\r\n\r\n componentWillMount() {\r\n this.updateRatesCalculator(this.props);\r\n }\r\n \r\n get inlandCarrierOffers(): Array {\r\n if (!this.props.inlandSelection)\r\n return [];\r\n\r\n let carrierOffers = this.props.inlandSelection.inlandCarrierOffers\r\n .filter(x => this.props.filter.inlandCarriersSelected[x.inlandCarrierId] !== false\r\n && (!x.inlandChargeSet\r\n || this.props.inlandCriteria.inlandCriteriaSizeTypes\r\n .some(y => 0 < y.number && this.ratesCalculator.findChargesToApply(x.inlandChargeSet, y).some(z => z.chargeNameId === roadTransportId))));\r\n\r\n return _.sortBy(\r\n carrierOffers.filter(x => !x.inlandChargeSet)\r\n .concat(_.uniqBy(carrierOffers.filter(x => x.inlandChargeSet),\r\n x => `${x.inlandCarrierId}|`\r\n + `${x.inlandRoute.inlandRouteId}|`\r\n + `${x.inlandChargeSet.reference}|`\r\n + `${x.inlandChargeSet.dateBegin}|`\r\n + `${x.inlandChargeSet.dateEnd}|`\r\n + `${x.inlandChargeSet.pickupEmptyName}|`\r\n + `${_.sortBy(_.uniq(x.inlandChargeSet.charges\r\n .filter(y => this.props.inlandCriteria.inlandCriteriaSizeTypes\r\n .some(z => z.sizeTypeId === y.sizeTypeId && z.number > 0))\r\n .map(z => `${z.sizeTypeId}|${z.minWeight}|${z.maxWeight}`)), y => y)}`)), x => (x.inlandChargeSet\r\n ? this.ratesCalculator.calculateAllIn(x.inlandChargeSet).totalUsd\r\n : Number.MAX_SAFE_INTEGER));\r\n }\r\n\r\n requestSelection(props: InlandSelectionProps) {\r\n (this.props.requestInlandCriteria(new Date().getTime(),\r\n props.match.params.code) as any as Promise)\r\n .then(inlandCriteria => {\r\n return this.props.requestInlandSelection(\r\n new Date().getTime(),\r\n inlandCriteria);\r\n });\r\n }\r\n\r\n componentDidMount() {\r\n if (this.props.match.params.code) {\r\n this.requestSelection(this.props);\r\n }\r\n }\r\n\r\n componentWillReceiveProps(nextProps: InlandSelectionProps) {\r\n if (this.props.match.params.code !== nextProps.match.params.code\r\n && nextProps.match.params.code) {\r\n this.requestSelection(nextProps);\r\n }\r\n\r\n if (this.props.currencies !== nextProps.currencies\r\n || this.props.sizeTypes !== nextProps.sizeTypes\r\n || this.props.inlandCriteria !== nextProps.inlandCriteria) {\r\n this.updateRatesCalculator(nextProps);\r\n }\r\n if (this.props.match.params.code !== nextProps.match.params.code\r\n && nextProps.match.params.code) {\r\n this.requestSelection(nextProps);\r\n }\r\n }\r\n\r\n public render() {\r\n return
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
Container
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n }\r\n}\r\n\r\nexport default connect((state: ApplicationState) => ({\r\n ...state.inlandSelection,\r\n feedback: state.contactBox,\r\n inlandCriteria: state.inlandCriteria.inlandCriteria,\r\n sizeTypes: state.seed.sizeTypes,\r\n currencies: state.seed.currencies,\r\n} as any), {\r\n ...InlandSelectionStore.actionCreators,\r\n ...InlandCriteriaState.actionCreators,\r\n ...ContactBoxStore.actionCreators,\r\n})(InlandSelection) as any\r\n","import { addTask } from \"../utils/bugFixer\";\r\nimport { Action, Reducer } from \"redux\";\r\nimport * as Api from \"../api/api\";\r\nimport * as Notifications from 'react-notification-system-redux';\r\nimport { AppThunkAction } from \"./\";\r\nimport { getDefaultHeaders } from \"../utils/utils\";\r\nimport {getText} from \"../utils/langTexts\";\r\n\r\nexport interface CarrierRatesSettingsState {\r\n isLoading: boolean;\r\n requestTime?: number;\r\n selectedId?: number;\r\n entities: Array;\r\n createState: {\r\n isLoading: boolean;\r\n requestTime?: number;\r\n };\r\n updateState: {\r\n [id: number]: {\r\n isLoading: boolean;\r\n requestTime?: number;\r\n }\r\n }\r\n deleteState: {\r\n [id: number]: {\r\n isLoading: boolean;\r\n requestTime?: number;\r\n }\r\n };\r\n}\r\n\r\ninterface RequestCarrierRatesSettingsEntities {\r\n type: \"REQUEST_CARRIERRATESSETTINGS_ENTITIES\";\r\n payload: { requestTime: number };\r\n}\r\ninterface ReceiveCarrierRatesSettingsEntities {\r\n type: \"RECEIVE_CARRIERRATESSETTINGS_ENTITIES\";\r\n payload: { requestTime: number; entities?: Array };\r\n error?: any;\r\n}\r\n\r\ninterface RequestCarrierRatesSettingsCreate {\r\n type: \"REQUEST_CARRIERRATESSETTINGS_CREATE\";\r\n payload: { requestTime: number };\r\n}\r\ninterface ReceiveCarrierRatesSettingsCreate {\r\n type: \"RECEIVE_CARRIERRATESSETTINGS_CREATE\";\r\n payload: { requestTime: number; entity?: Api.CarrierRatesSettingsModel };\r\n error?: any;\r\n}\r\n\r\ninterface RequestCarrierRatesSettingsUpdate {\r\n type: \"REQUEST_CARRIERRATESSETTINGS_UPDATE\";\r\n payload: { requestTime: number; id: number; };\r\n}\r\ninterface ReceiveCarrierRatesSettingsUpdate {\r\n type: \"RECEIVE_CARRIERRATESSETTINGS_UPDATE\";\r\n payload: { requestTime: number; id: number; entity?: Api.CarrierRatesSettingsModel };\r\n error?: any;\r\n}\r\n\r\ninterface RequestCarrierRatesSettingsDelete {\r\n type: \"REQUEST_CARRIERRATESSETTINGS_DELETE\";\r\n payload: { requestTime: number; id: number; };\r\n}\r\ninterface ReceiveCarrierRatesSettingsDelete {\r\n type: \"RECEIVE_CARRIERRATESSETTINGS_DELETE\";\r\n payload: { requestTime: number; id: number; };\r\n error?: any;\r\n}\r\n\r\ninterface UpdateCarrierRatesSettingsSelectedId {\r\n type: \"UPDATE_CARRIERRATESSETTINGS_SELECTEDID\";\r\n payload: { value: number; };\r\n}\r\n\r\nexport type KnownAction = RequestCarrierRatesSettingsEntities\r\n | ReceiveCarrierRatesSettingsEntities\r\n | RequestCarrierRatesSettingsCreate\r\n | ReceiveCarrierRatesSettingsCreate\r\n | RequestCarrierRatesSettingsUpdate\r\n | ReceiveCarrierRatesSettingsUpdate\r\n | RequestCarrierRatesSettingsDelete\r\n | ReceiveCarrierRatesSettingsDelete\r\n | UpdateCarrierRatesSettingsSelectedId\r\n ;\r\n\r\nexport const actionCreators = {\r\n requestCarrierRatesSettings: (requestTime: number): AppThunkAction> => (dispatch, getState) => {\r\n let api = new Api.CarrierRatesSettingsApi();\r\n let fetch = api.getEntities({ credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(entities => {\r\n dispatch({\r\n type: \"RECEIVE_CARRIERRATESSETTINGS_ENTITIES\",\r\n payload: { requestTime: requestTime, entities: entities }\r\n });\r\n })\r\n .catch(err => {\r\n dispatch({\r\n type: \"RECEIVE_CARRIERRATESSETTINGS_ENTITIES\",\r\n payload: { requestTime: requestTime, },\r\n error: err\r\n });\r\n });\r\n\r\n dispatch({\r\n type: \"REQUEST_CARRIERRATESSETTINGS_ENTITIES\",\r\n payload: { requestTime: requestTime }\r\n });\r\n addTask(fetch);\r\n return fetch;\r\n },\r\n requestCreateCarrierRatesSettings: (requestTime: number, model: Api.CarrierRatesSettingsModel): AppThunkAction> => (dispatch, getState) => {\r\n let api = new Api.CarrierRatesSettingsApi();\r\n let fetch = api.create({ model: model }, { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(entity => {\r\n dispatch({\r\n type: \"RECEIVE_CARRIERRATESSETTINGS_CREATE\",\r\n payload: { requestTime: requestTime, entity: entity }\r\n });\r\n dispatch(Notifications.success({ message: getText(\"GenCarrierQuotesSettingsCreateSuccess\"), title: getText(\"GenSuccess\"), position: \"tc\" }) as any);\r\n })\r\n .catch(err => {\r\n dispatch({\r\n type: \"RECEIVE_CARRIERRATESSETTINGS_CREATE\",\r\n payload: { requestTime: requestTime, },\r\n error: err\r\n });\r\n dispatch(Notifications.error({ message: getText(\"GenCarrierQuotesSettingsCreateFailure\"), title: getText(\"GenError\"), position: \"tc\" }) as any);\r\n });\r\n\r\n dispatch({\r\n type: \"REQUEST_CARRIERRATESSETTINGS_CREATE\",\r\n payload: { requestTime: requestTime }\r\n });\r\n return fetch;\r\n },\r\n requestUpdateCarrierRatesSettings: (requestTime: number, model: Api.CarrierRatesSettingsModel): AppThunkAction> => (dispatch, getState) => {\r\n let api = new Api.CarrierRatesSettingsApi();\r\n let fetch = api.update({ model: model }, { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(entity => {\r\n dispatch({\r\n type: \"RECEIVE_CARRIERRATESSETTINGS_UPDATE\",\r\n payload: { requestTime: requestTime, id: model.carrierRatesSettingsId, entity: entity }\r\n });\r\n dispatch(Notifications.success({ message: getText(\"GenCarrierQuotesSettingsUpdateSuccess\"), title: getText(\"GenSuccess\"), position: \"tc\" }) as any);\r\n })\r\n .catch(err => {\r\n dispatch({\r\n type: \"RECEIVE_CARRIERRATESSETTINGS_UPDATE\",\r\n payload: { requestTime: requestTime, id: model.carrierRatesSettingsId },\r\n error: err\r\n });\r\n dispatch(Notifications.error({ message: getText(\"GenCarrierQuotesSettingsUpdateFailure\"), title: getText(\"GenError\"), position: \"tc\" }) as any);\r\n });\r\n\r\n dispatch({\r\n type: \"REQUEST_CARRIERRATESSETTINGS_UPDATE\",\r\n payload: { requestTime: requestTime, id: model.carrierRatesSettingsId }\r\n });\r\n return fetch;\r\n },\r\n requestDeleteCarrierRatesSettings: (requestTime: number, id: number): AppThunkAction> => (dispatch, getState) => {\r\n let api = new Api.CarrierRatesSettingsApi();\r\n let fetch = api._delete({ id: id }, { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(() => {\r\n dispatch({\r\n type: \"RECEIVE_CARRIERRATESSETTINGS_DELETE\",\r\n payload: { requestTime: requestTime, id: id }\r\n });\r\n })\r\n .catch(err => {\r\n dispatch({\r\n type: \"RECEIVE_CARRIERRATESSETTINGS_DELETE\",\r\n payload: { requestTime: requestTime, id: id },\r\n error: err\r\n });\r\n });\r\n\r\n dispatch({\r\n type: \"REQUEST_CARRIERRATESSETTINGS_DELETE\",\r\n payload: { requestTime: requestTime, id: id }\r\n });\r\n return fetch;\r\n },\r\n updateCarrierRatesSettingsSelectedId: (id: number) => {\r\n type: \"UPDATE_CARRIERRATESSETTINGS_SELECTEDID\",\r\n payload: { value: id }\r\n }\r\n};\r\n\r\n\r\nconst unloadedState: CarrierRatesSettingsState = {\r\n isLoading: false,\r\n createState: {\r\n isLoading: false\r\n },\r\n deleteState: {},\r\n updateState: {},\r\n entities: []\r\n};\r\n\r\n\r\nexport const reducer: Reducer = (state: CarrierRatesSettingsState, incomingAction: Action) => {\r\n const action = incomingAction as KnownAction;\r\n switch (action.type) {\r\n case \"REQUEST_CARRIERRATESSETTINGS_ENTITIES\":\r\n return {\r\n ...state,\r\n isLoading: true,\r\n requestTime: action.payload.requestTime\r\n };\r\n case \"RECEIVE_CARRIERRATESSETTINGS_ENTITIES\":\r\n if (state.requestTime !== action.payload.requestTime)\r\n return state;\r\n\r\n return {\r\n ...state,\r\n isLoading: false,\r\n entities: action.error\r\n ? state.entities\r\n : action.payload.entities\r\n };\r\n case \"REQUEST_CARRIERRATESSETTINGS_CREATE\":\r\n return {\r\n ...state,\r\n createState: {\r\n ...state.createState,\r\n isLoading: true,\r\n requestTime: action.payload.requestTime\r\n }\r\n };\r\n case \"RECEIVE_CARRIERRATESSETTINGS_CREATE\":\r\n if (action.payload.requestTime !== state.createState.requestTime)\r\n return state;\r\n\r\n return {\r\n ...state,\r\n createState: {\r\n ...state.createState,\r\n isLoading: false,\r\n },\r\n entities: action.error\r\n ? state.entities\r\n : state.entities.concat([action.payload.entity])\r\n };\r\n case \"REQUEST_CARRIERRATESSETTINGS_UPDATE\":\r\n return {\r\n ...state,\r\n updateState: {\r\n ...state.updateState,\r\n [action.payload.id]: {\r\n ...state.updateState[action.payload.id],\r\n isLoading: true,\r\n requestTime: action.payload.requestTime\r\n }\r\n }\r\n };\r\n case \"RECEIVE_CARRIERRATESSETTINGS_UPDATE\":\r\n if (!state.updateState[action.payload.id]\r\n || action.payload.requestTime !== state.updateState[action.payload.id].requestTime)\r\n return state;\r\n\r\n return {\r\n ...state,\r\n updateState: {\r\n ...state.updateState,\r\n [action.payload.id]: {\r\n ...state.updateState[action.payload.id],\r\n isLoading: true,\r\n requestTime: action.payload.requestTime\r\n }\r\n },\r\n entities: action.error\r\n ? state.entities\r\n : state.entities.map(x => x.carrierRatesSettingsId === action.payload.entity.carrierRatesSettingsId\r\n ? { ...x, ...action.payload.entity }\r\n : x)\r\n };\r\n case \"REQUEST_CARRIERRATESSETTINGS_DELETE\":\r\n return {\r\n ...state,\r\n deleteState: {\r\n ...state.deleteState,\r\n [action.payload.id]: {\r\n ...state.deleteState[action.payload.id],\r\n isLoading: true,\r\n requestTime: action.payload.requestTime\r\n }\r\n }\r\n };\r\n case \"RECEIVE_CARRIERRATESSETTINGS_DELETE\":\r\n if (!state.deleteState[action.payload.id]\r\n || action.payload.requestTime !== state.deleteState[action.payload.id].requestTime)\r\n return state;\r\n\r\n return {\r\n ...state,\r\n deleteState: {\r\n ...state.deleteState,\r\n [action.payload.id]: {\r\n ...state.deleteState[action.payload.id],\r\n isLoading: true,\r\n requestTime: action.payload.requestTime\r\n }\r\n },\r\n selectedId: action.payload.id === state.selectedId\r\n ? undefined\r\n : state.selectedId,\r\n entities: action.error\r\n ? state.entities\r\n : state.entities.filter(x => x.carrierRatesSettingsId !== action.payload.id)\r\n };\r\n case \"UPDATE_CARRIERRATESSETTINGS_SELECTEDID\":\r\n return {\r\n ...state,\r\n selectedId: action.payload.value\r\n };\r\n default:\r\n // The following line guarantees that every action in the KnownAction union has been covered by a case above\r\n const exhaustiveCheck: never = action;\r\n }\r\n\r\n // For unrecognized actions (or in cases where actions have no effect), must return the existing state\r\n // (or default initial state if none was supplied)\r\n return state || unloadedState;\r\n};","import * as _ from 'lodash';\r\nimport * as Api from '../api/api';\r\nimport * as React from 'react';\r\nimport * as Colors from '../styles/colors';\r\nimport * as FormField from './FormField';\r\nimport * as ReduxForm from 'redux-form';\r\nimport { FormControlLabel, Radio, RadioGroup } from '@material-ui/core';\r\nimport { connect } from 'react-redux';\r\nimport { ApplicationState } from '../store';\r\nimport { getText } from '../utils/langTexts';\r\nimport { getSubscription, getFirmName } from '../utils/utils';\r\nimport PasswordToggle from './PasswordToggle';\r\n\r\n\r\ntype CarrierRatesSettingsFormProps = ReduxForm.InjectedFormProps\r\n & CarrierRatesSettingsFormOwnProps\r\n & CarrierRatesSettingsFormExternalProps;\r\n\r\ninterface CarrierRatesSettingsFormOwnProps {\r\n initialValues: Api.CarrierRatesSettingsModel;\r\n carriers: { [id: number]: Api.CarrierModel };\r\n carrierRatesPlatforms: { [id: number]: Api.CarrierRatesPlatformModel };\r\n subscriptions: Array;\r\n carrierId: number;\r\n subscription: Api.SubscriptionModel;\r\n agencies: Array;\r\n carrierRatesSettings: Array;\r\n subOkargoId: number;\r\n firmId: number;\r\n}\r\n\r\ninterface CarrierRatesSettingsFormExternalProps {\r\n onSubmit: (values: Api.CarrierRatesSettingsModel) => Promise;\r\n mode: \"Create\" | \"Update\";\r\n}\r\n\r\ntype CarrierRatesSettingsType = \"Client\" | \"Company\";\r\ninterface CarrierRatesSettingsFormState {\r\n type: CarrierRatesSettingsType;\r\n isPasswordVisible: boolean;\r\n}\r\n\r\nconst fieldStyle: React.CSSProperties = {\r\n display: \"flex\",\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n marginBottom: 12\r\n}\r\n\r\nconst labelStyle: React.CSSProperties = {\r\n flex: \"0 0 auto\",\r\n minWidth: 200,\r\n textAlign: \"right\",\r\n marginRight: 6\r\n}\r\n\r\nconst uniqLogin = (value: string, allValues: Api.CarrierRatesSettingsModel, props: CarrierRatesSettingsFormProps) => {\r\n if (props.carrierRatesSettings\r\n && value\r\n && props.carrierRatesSettings\r\n .some(x => x.carrierRatesPlatformId === allValues.carrierRatesPlatformId\r\n && x.login === value\r\n && x.carrierRatesSettingsId !== allValues.carrierRatesSettingsId)) {\r\n return \"This login already exist for this carrier\";\r\n }\r\n return undefined;\r\n};\r\n\r\nconst platformBlacklist = [\"MSK1\", \"EMC\", \"CMA2\", \"EMC2\",\"CMA4\"];\r\nclass CarrierRatesSettingsForm extends React.Component {\r\n\r\n constructor(props: CarrierRatesSettingsFormProps) {\r\n super(props);\r\n this.state = {\r\n type: \"Client\",\r\n isPasswordVisible: false,\r\n };\r\n }\r\n get authenticationType(): Api.CarrierRatesPlatformModelAuthenticationTypeEnum {\r\n return \"Credentials\";\r\n }\r\n\r\n componentWillReceiveProps(nextProps: CarrierRatesSettingsFormProps) {\r\n if (nextProps.subOkargoId) {\r\n this.setState({ type: \"Client\" });\r\n } else if (nextProps.firmId) {\r\n this.setState({ type: \"Company\" });\r\n }\r\n }\r\n\r\n public render() {\r\n return (\r\n \r\n
\r\n {this.props.error && {this.props.error}}\r\n
\r\n {this.props.subscription.allowCarrierRatesManagement\r\n &&
\r\n
\r\n
\r\n this.setState({ type: value as any })}>\r\n }\r\n label=\"Per user\"\r\n labelPlacement=\"start\"\r\n />\r\n }\r\n label=\"Per company/agency\"\r\n labelPlacement=\"start\"\r\n />\r\n \r\n
\r\n
}\r\n {this.state.type === \"Company\"\r\n &&
\r\n \r\n
\r\n x.enabled)\r\n .map(x => ({\r\n label: getFirmName(x),\r\n value: x.firmId\r\n })).concat(this.props.subscriptions\r\n .filter(x => x.subscriptionType === \"Okargo\" && x.agency.enabled)\r\n .map(x => ({\r\n label: getFirmName(x.agency.company),\r\n value: x.agency.companyId\r\n })))\r\n .concat(this.props.subscriptions\r\n .filter(x => x.subscriptionType === \"Okargo\"\r\n && x.agency.company.companyGroup && x.agency.enabled)\r\n .map(x => ({\r\n label: getFirmName(x.agency.company.companyGroup),\r\n value: x.agency.company.companyGroupId\r\n }))), x => x.label))} />\r\n
\r\n
}\r\n
\r\n \r\n
\r\n y.status && y.status !== \"BetaTest\" && y.enabled && !platformBlacklist.some(z => z === y.code))\r\n \r\n .map(x => ({ label: x.name , value: x.carrierRatesPlatformId })), x => x.label))} />\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n \r\n\r\n
\r\n
\r\n \r\n\r\n
\r\n
\r\n \r\n
\r\n {this.props.mode === \"Update\" &&\r\n
\r\n Leave empty to not update\r\n
}\r\n \r\n\r\n { this.setState({ isPasswordVisible: !this.state.isPasswordVisible }) }}>\r\n \r\n \r\n\r\n
\r\n {this.authenticationType === \"Token\"\r\n &&
\r\n \r\n
\r\n
\r\n \r\n
\r\n {this.props.mode === \"Update\"\r\n &&
\r\n Leave empty to not update\r\n
}\r\n
\r\n
}\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\nlet createForm = ReduxForm.reduxForm({\r\n form: 'createCarrierRatesSettings',\r\n destroyOnUnmount: false,\r\n keepDirtyOnReinitialize: false,\r\n enableReinitialize: true\r\n})(CarrierRatesSettingsForm) as any;\r\nconst createSelector = ReduxForm.formValueSelector('createCarrierRatesSettings')\r\n\r\nlet updateForm = ReduxForm.reduxForm({\r\n form: 'updateCarrierRatesSettings',\r\n destroyOnUnmount: false,\r\n keepDirtyOnReinitialize: false,\r\n enableReinitialize: true\r\n})(CarrierRatesSettingsForm) as any;\r\nconst updateSelector = ReduxForm.formValueSelector('updateCarrierRatesSettings')\r\n\r\nexport const CreateCarrierRatesSettingsForm = connect((state: ApplicationState) => {\r\n return {\r\n initialValues: {},\r\n carriers: state.seed.carriers,\r\n carrierRatesPlatforms: state.seed.carrierRatesPlatforms,\r\n carrierId: createSelector(state, \"carrierId\"),\r\n subscriptions: state.account.currentUser.clientModel.subscriptions\r\n .filter(x => x.subscriptionType === \"Okargo\"),\r\n subscription: getSubscription(state.account.currentUser.clientModel),\r\n agencies: state.account.currentUser.clientModel.agencies,\r\n firmId: createSelector(state, \"firmId\"),\r\n carrierRatesSettings: state.carrierRatesSettings.entities\r\n } as CarrierRatesSettingsFormOwnProps;\r\n})(createForm) as any as React.ComponentClass\r\n\r\nexport const UpdateCarrierRatesSettingsForm = connect((state: ApplicationState) => {\r\n let carrierRatesSettings = state.carrierRatesSettings.entities\r\n .find(x => x.carrierRatesSettingsId === state.carrierRatesSettings.selectedId);\r\n return {\r\n initialValues: {\r\n ...carrierRatesSettings,\r\n carrierId: state.seed.carrierRatesPlatforms[carrierRatesSettings.carrierRatesPlatformId].carrierId\r\n } || {},\r\n carriers: state.seed.carriers,\r\n carrierRatesPlatforms: state.seed.carrierRatesPlatforms,\r\n carrierId: updateSelector(state, \"carrierId\"),\r\n subscriptions: state.account.currentUser.clientModel.subscriptions\r\n .filter(x => x.subscriptionType === \"Okargo\"),\r\n subscription: getSubscription(state.account.currentUser.clientModel),\r\n agencies: state.account.currentUser.clientModel.agencies,\r\n firmId: updateSelector(state, \"firmId\"),\r\n carrierRatesSettings: state.carrierRatesSettings.entities\r\n } as CarrierRatesSettingsFormOwnProps;\r\n})(updateForm) as any as React.ComponentClass","import * as React from 'react';\r\nimport { connect } from 'react-redux';\r\nimport * as Api from '../api/api';\r\nimport * as CarrierRatesSettingsStore from '../store/CarrierRatesSettings';\r\nimport * as TabsStore from \"../store/Tabs\";\r\nimport { ApplicationState } from '../store';\r\nimport { CreateCarrierRatesSettingsForm, UpdateCarrierRatesSettingsForm } from \"./CarrierRatesSettingsForm\";\r\nimport Loader from './Loader';\r\nimport Table, { Column } from './Table';\r\nimport { getFirmName } from '../utils/utils';\r\nimport { getText } from '../utils/langTexts';\r\nimport CenteredContentTabs from './CenteredContentTabs';\r\n\r\ntype CarrierRatesSettingsProps = CarrierRatesSettingsOwnProps\r\n & CarrierRatesSettingsStore.CarrierRatesSettingsState\r\n & typeof CarrierRatesSettingsStore.actionCreators\r\n & typeof TabsStore.actionCreators;\r\n\r\ninterface CarrierRatesSettingsOwnProps {\r\n carriers: { [id: number]: Api.CarrierModel };\r\n carrierRatesPlatforms: { [id: number]: Api.CarrierRatesPlatformModel };\r\n subscriptions: Array;\r\n firms: Api.FirmModel[];\r\n}\r\n\r\nconst tabHeadStyle: React.CSSProperties = { padding: \"5px 20px\" };\r\n\r\nclass CarrierRatesSettings extends React.Component {\r\n\r\n componentWillMount() {\r\n this.props.requestCarrierRatesSettings(new Date().getTime());\r\n }\r\n\r\n componentWillReceiveProps(nextProps: CarrierRatesSettingsProps) {\r\n }\r\n\r\n public render() {\r\n return (\r\n
\r\n

{getText(\"GenCarrierQuotesSettings\")}

\r\n
\r\n this.props.carrierRatesPlatforms[x.carrierRatesPlatformId]\r\n && this.props.carrierRatesPlatforms[x.carrierRatesPlatformId].carrierId && this.props.carrierRatesPlatforms[x.carrierRatesPlatformId].status !== \"BetaTest\")\r\n .filter(x => this.props.subscriptions.some(y => y.allowCarrierRatesManagement || y.subscriptionId == x.subOkargoId\r\n || x.firmId === y.agencyId\r\n || x.firmId === y.agency.companyId\r\n || x.firmId === y.agency.company.companyGroupId))}\r\n columns={[{\r\n header: getText(\"SlcCarrierQuotesSettingsPlatform\"),\r\n id: 'platformId',\r\n accessor: (d: Api.CarrierRatesSettingsModel) => {this.props.carrierRatesPlatforms[d.carrierRatesPlatformId].name}\r\n },\r\n {\r\n header: getText(\"SlcCarrierQuotesSettingsSetUpFor\"),\r\n id: \"setupFo\",\r\n accessor: (d: Api.CarrierRatesSettingsModel) => {\r\n let sub = this.props.subscriptions.find(x => x.subscriptionId === d.subOkargoId);\r\n let fi = this.props.firms\r\n .find(x => x && x.firmId === d.firmId);\r\n return sub ? getText(\"SlcCarrierQuotesSettingsOnlyMe\") : (fi ? getFirmName(fi) : \"\");\r\n }\r\n },\r\n\r\n {\r\n id: \"actions\",\r\n header:
,\r\n accessor: (d: Api.CarrierRatesSettingsModel) => d,\r\n cell: row => {\r\n let carrierRatesSettings = row as Api.CarrierRatesSettingsModel;\r\n let alloweSubscriptions = this.props.subscriptions.filter(y => y.allowCarrierRatesManagement);\r\n\r\n let mySetting = this.props.subscriptions.find(x => x.subscriptionId === row.subOkargoId);\r\n \r\n let firmAllowed = this.props.firms.find(x => x && x.firmId === row.firmId && alloweSubscriptions.some(y=>\r\n x.firmId === y.agencyId\r\n || x.firmId === y.agency.companyId\r\n || x.firmId === y.agency.company.companyGroupId)\r\n );\r\n\r\n var allowEdit = mySetting || firmAllowed;\r\n\r\n return (\r\n carrierRatesSettings.source === \"Client\"\r\n && this.props.carrierRatesPlatforms[carrierRatesSettings.carrierRatesPlatformId].code !== \"CMA2\"\r\n ? \r\n :
Managed by administrators
\r\n );\r\n }\r\n }] as Array>}\r\n rowsPerPage={8}\r\n isLoading={this.props.isLoading}\r\n loadingComponent={() => }\r\n showPageSizeOptions={false}\r\n showPagination={true}\r\n noDataText=\"No results\"\r\n />\r\n
\r\n
\r\n \r\n

{getText(\"GenCreateNewQuotesSettings\")}

\r\n
\r\n {\r\n return this.props.requestCreateCarrierRatesSettings(new Date().getTime(), values) as any;\r\n }} />\r\n
\r\n
\r\n },\r\n {\r\n title: getText(\"GenEdit\"),\r\n tabKey: \"edit\",\r\n tabContent:
\r\n
\r\n

{getText(\"GenEditCarrierQuotesSettings\")}

\r\n {this.props.selectedId\r\n &&
\r\n {\r\n return this.props.requestUpdateCarrierRatesSettings(new Date().getTime(), values) as any;\r\n }} />\r\n
}\r\n
\r\n
\r\n }\r\n ]}\r\n >\r\n
\r\n \r\n );\r\n }\r\n}\r\n\r\nexport default connect(\r\n (state: ApplicationState) => ({\r\n ...state.carrierRatesSettings,\r\n carriers: state.seed.carriers,\r\n subscriptions: state.account.currentUser.clientModel.subscriptions,\r\n firms: state.account.currentUser.clientModel.subscriptions.filter(x => x.subscriptionType === \"Okargo\")\r\n .map(x => x.agency.company)\r\n .concat(state.account.currentUser.clientModel.subscriptions.filter(x => x.subscriptionType === \"Okargo\")\r\n .map(x => x.agency.company.companyGroup))\r\n .concat(state.account.currentUser.clientModel.agencies)\r\n .filter(x => x),\r\n carrierRatesPlatforms: state.seed.carrierRatesPlatforms\r\n } as any),\r\n {\r\n ...CarrierRatesSettingsStore.actionCreators,\r\n ...TabsStore.actionCreators\r\n })(CarrierRatesSettings) as any","import { addTask } from \"../utils/bugFixer\";\r\nimport { Action, Reducer } from \"redux\";\r\nimport * as Api from \"../api/api\";\r\nimport * as Notifications from 'react-notification-system-redux';\r\nimport { AppThunkAction } from \"./\";\r\nimport { getDefaultHeaders } from \"../utils/utils\";\r\nimport { getText } from \"../utils/langTexts\";\r\n\r\nexport interface RouteRatesPlatformDatasState {\r\n isLoading: boolean;\r\n requestTime?: number;\r\n selectedId?: number;\r\n entities: Array;\r\n createState: {\r\n isLoading: boolean;\r\n requestTime?: number;\r\n };\r\n updateState: {\r\n [id: number]: {\r\n isLoading: boolean;\r\n requestTime?: number;\r\n }\r\n }\r\n deleteState: {\r\n [id: number]: {\r\n isLoading: boolean;\r\n requestTime?: number;\r\n }\r\n };\r\n}\r\n\r\ninterface RequestRouteRatesPlatformDatasEntities {\r\n type: \"REQUEST_ROUTERATESPLATFORMDATAS_ENTITIES\";\r\n payload: { requestTime: number };\r\n}\r\ninterface ReceiveRouteRatesPlatformDatasEntities {\r\n type: \"RECEIVE_ROUTERATESPLATFORMDATAS_ENTITIES\";\r\n payload: { requestTime: number; entities?: Array };\r\n error?: any;\r\n}\r\n\r\ninterface RequestRouteRatesPlatformDatasCreate {\r\n type: \"REQUEST_ROUTERATESPLATFORMDATAS_CREATE\";\r\n payload: { requestTime: number };\r\n}\r\ninterface ReceiveRouteRatesPlatformDatasCreate {\r\n type: \"RECEIVE_ROUTERATESPLATFORMDATAS_CREATE\";\r\n payload: { requestTime: number; entity?: Api.CarrierRatesSettingsModel };\r\n error?: any;\r\n}\r\n\r\ninterface RequestRouteRatesPlatformDatasUpdate {\r\n type: \"REQUEST_ROUTERATESPLATFORMDATAS_UPDATE\";\r\n payload: { requestTime: number; id: number; };\r\n}\r\ninterface ReceiveRouteRatesPlatformDatasUpdate {\r\n type: \"RECEIVE_ROUTERATESPLATFORMDATAS_UPDATE\";\r\n payload: { requestTime: number; id: number; entity?: Api.CarrierRatesSettingsModel };\r\n error?: any;\r\n}\r\n\r\ninterface RequestRouteRatesPlatformDatasDelete {\r\n type: \"REQUEST_ROUTERATESPLATFORMDATAS_DELETE\";\r\n payload: { requestTime: number; id: number; };\r\n}\r\ninterface ReceiveRouteRatesPlatformDatasDelete {\r\n type: \"RECEIVE_ROUTERATESPLATFORMDATAS_DELETE\";\r\n payload: { requestTime: number; id: number; };\r\n error?: any;\r\n}\r\n\r\ninterface UpdateRouteRatesPlatformDatasSelectedId {\r\n type: \"UPDATE_ROUTERATESPLATFORMDATAS_SELECTEDID\";\r\n payload: { value: number; };\r\n}\r\n\r\nexport type KnownAction = RequestRouteRatesPlatformDatasEntities\r\n | ReceiveRouteRatesPlatformDatasEntities\r\n | RequestRouteRatesPlatformDatasCreate\r\n | ReceiveRouteRatesPlatformDatasCreate\r\n | RequestRouteRatesPlatformDatasUpdate\r\n | ReceiveRouteRatesPlatformDatasUpdate\r\n | RequestRouteRatesPlatformDatasDelete\r\n | ReceiveRouteRatesPlatformDatasDelete\r\n | UpdateRouteRatesPlatformDatasSelectedId\r\n ;\r\n\r\nexport const actionCreators = {\r\n requestRouteratesPlatformDatas: (requestTime: number): AppThunkAction> => (dispatch, getState) => {\r\n let api = new Api.RouteRatesPlatformDatasApi();\r\n let fetch = api.getEntities({ credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(entities => {\r\n dispatch({\r\n type: \"RECEIVE_ROUTERATESPLATFORMDATAS_ENTITIES\",\r\n payload: { requestTime: requestTime, entities: entities }\r\n });\r\n })\r\n .catch(err => {\r\n dispatch({\r\n type: \"RECEIVE_ROUTERATESPLATFORMDATAS_ENTITIES\",\r\n payload: { requestTime: requestTime, },\r\n error: err\r\n });\r\n });\r\n\r\n dispatch({\r\n type: \"REQUEST_ROUTERATESPLATFORMDATAS_ENTITIES\",\r\n payload: { requestTime: requestTime }\r\n });\r\n addTask(fetch);\r\n return fetch;\r\n },\r\n requestCreateRouteRatesPlatformDatas: (requestTime: number, model: Api.CarrierRatesSettingsModel): AppThunkAction> => (dispatch, getState) => {\r\n let api = new Api.RouteRatesPlatformDatasApi();\r\n let fetch = api.create({ model: model }, { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(entity => {\r\n dispatch({\r\n type: \"RECEIVE_ROUTERATESPLATFORMDATAS_CREATE\",\r\n payload: { requestTime: requestTime, entity: entity }\r\n });\r\n dispatch(Notifications.success({ message: getText(\"BlckListApiSucces\"), title: getText(\"GenSuccess\"), position: \"tc\" }) as any);\r\n })\r\n .catch(err => {\r\n dispatch({\r\n type: \"RECEIVE_ROUTERATESPLATFORMDATAS_CREATE\",\r\n payload: { requestTime: requestTime, },\r\n error: err\r\n });\r\n dispatch(Notifications.error({ message: \"Uknown error\", title: getText(\"GenError\"), position: \"tc\" }) as any);\r\n });\r\n\r\n dispatch({\r\n type: \"REQUEST_ROUTERATESPLATFORMDATAS_CREATE\",\r\n payload: { requestTime: requestTime }\r\n });\r\n return fetch;\r\n },\r\n requestRouteRatesPlatformDatas: (requestTime: number, model: Api.RouteRatesPlatformDataModel): AppThunkAction> => (dispatch, getState) => {\r\n let api = new Api.RouteRatesPlatformDatasApi();\r\n let fetch = api.update({ model: model }, { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(entity => {\r\n dispatch({\r\n type: \"RECEIVE_ROUTERATESPLATFORMDATAS_UPDATE\",\r\n payload: { requestTime: requestTime, id: model.routeRatesPlatformDataId, entity: entity }\r\n });\r\n dispatch(Notifications.success({ message: getText(\"BlckListApiSucces\"), title: getText(\"GenSuccess\"), position: \"tc\" }) as any);\r\n })\r\n .catch(err => {\r\n dispatch({\r\n type: \"RECEIVE_ROUTERATESPLATFORMDATAS_UPDATE\",\r\n payload: { requestTime: requestTime, id: model.routeRatesPlatformDataId },\r\n error: err\r\n });\r\n dispatch(Notifications.error({ message: \"Uknown error\", title: getText(\"GenError\"), position: \"tc\" }) as any);\r\n });\r\n\r\n dispatch({\r\n type: \"REQUEST_ROUTERATESPLATFORMDATAS_UPDATE\",\r\n payload: { requestTime: requestTime, id: model.routeRatesPlatformDataId }\r\n });\r\n return fetch;\r\n },\r\n requestDeleteRouteRatesPlatformData: (requestTime: number, id: number): AppThunkAction> => (dispatch, getState) => {\r\n let api = new Api.RouteRatesPlatformDatasApi();\r\n let fetch = api._delete({ id: id }, { credentials: \"same-origin\", headers: getDefaultHeaders(getState()) })\r\n .then(() => {\r\n dispatch({\r\n type: \"RECEIVE_ROUTERATESPLATFORMDATAS_DELETE\",\r\n payload: { requestTime: requestTime, id: id }\r\n });\r\n })\r\n .catch(err => {\r\n dispatch({\r\n type: \"RECEIVE_ROUTERATESPLATFORMDATAS_DELETE\",\r\n payload: { requestTime: requestTime, id: id },\r\n error: err\r\n });\r\n });\r\n\r\n dispatch({\r\n type: \"REQUEST_ROUTERATESPLATFORMDATAS_DELETE\",\r\n payload: { requestTime: requestTime, id: id }\r\n });\r\n return fetch;\r\n },\r\n updatRouteratesPlatformDataSelectedId: (id: number) => {\r\n type: \"UPDATE_ROUTERATESPLATFORMDATAS_SELECTEDID\",\r\n payload: { value: id }\r\n }\r\n};\r\n\r\n\r\nconst unloadedState: RouteRatesPlatformDatasState = {\r\n isLoading: false,\r\n createState: {\r\n isLoading: false\r\n },\r\n deleteState: {},\r\n updateState: {},\r\n entities: []\r\n};\r\n\r\n\r\nexport const reducer: Reducer = (state: RouteRatesPlatformDatasState, incomingAction: Action) => {\r\n const action = incomingAction as KnownAction;\r\n switch (action.type) {\r\n case \"REQUEST_ROUTERATESPLATFORMDATAS_ENTITIES\":\r\n return {\r\n ...state,\r\n isLoading: true,\r\n requestTime: action.payload.requestTime\r\n };\r\n case \"RECEIVE_ROUTERATESPLATFORMDATAS_ENTITIES\":\r\n if (state.requestTime !== action.payload.requestTime)\r\n return state;\r\n\r\n return {\r\n ...state,\r\n isLoading: false,\r\n entities: action.error\r\n ? state.entities\r\n : action.payload.entities\r\n };\r\n case \"REQUEST_ROUTERATESPLATFORMDATAS_CREATE\":\r\n return {\r\n ...state,\r\n createState: {\r\n ...state.createState,\r\n isLoading: true,\r\n requestTime: action.payload.requestTime\r\n }\r\n };\r\n case \"RECEIVE_ROUTERATESPLATFORMDATAS_CREATE\":\r\n if (action.payload.requestTime !== state.createState.requestTime)\r\n return state;\r\n\r\n return {\r\n ...state,\r\n createState: {\r\n ...state.createState,\r\n isLoading: false,\r\n },\r\n entities: action.error\r\n ? state.entities\r\n : state.entities.concat([action.payload.entity])\r\n };\r\n case \"REQUEST_ROUTERATESPLATFORMDATAS_UPDATE\":\r\n return {\r\n ...state,\r\n updateState: {\r\n ...state.updateState,\r\n [action.payload.id]: {\r\n ...state.updateState[action.payload.id],\r\n isLoading: true,\r\n requestTime: action.payload.requestTime\r\n }\r\n }\r\n };\r\n case \"RECEIVE_ROUTERATESPLATFORMDATAS_UPDATE\":\r\n if (!state.updateState[action.payload.id]\r\n || action.payload.requestTime !== state.updateState[action.payload.id].requestTime)\r\n return state;\r\n\r\n return {\r\n ...state,\r\n updateState: {\r\n ...state.updateState,\r\n [action.payload.id]: {\r\n ...state.updateState[action.payload.id],\r\n isLoading: true,\r\n requestTime: action.payload.requestTime\r\n }\r\n },\r\n entities: action.error\r\n ? state.entities\r\n : state.entities.map(x => x.routeRatesPlatformDataId === action.payload.entity.carrierRatesSettingsId\r\n ? { ...x, ...action.payload.entity }\r\n : x)\r\n };\r\n case \"REQUEST_ROUTERATESPLATFORMDATAS_DELETE\":\r\n return {\r\n ...state,\r\n deleteState: {\r\n ...state.deleteState,\r\n [action.payload.id]: {\r\n ...state.deleteState[action.payload.id],\r\n isLoading: true,\r\n requestTime: action.payload.requestTime\r\n }\r\n }\r\n };\r\n case \"RECEIVE_ROUTERATESPLATFORMDATAS_DELETE\":\r\n if (!state.deleteState[action.payload.id]\r\n || action.payload.requestTime !== state.deleteState[action.payload.id].requestTime)\r\n return state;\r\n\r\n return {\r\n ...state,\r\n deleteState: {\r\n ...state.deleteState,\r\n [action.payload.id]: {\r\n ...state.deleteState[action.payload.id],\r\n isLoading: true,\r\n requestTime: action.payload.requestTime\r\n }\r\n },\r\n selectedId: action.payload.id === state.selectedId\r\n ? undefined\r\n : state.selectedId,\r\n entities: action.error\r\n ? state.entities\r\n : state.entities.filter(x => x.routeRatesPlatformDataId !== action.payload.id)\r\n };\r\n case \"UPDATE_ROUTERATESPLATFORMDATAS_SELECTEDID\":\r\n return {\r\n ...state,\r\n selectedId: action.payload.value\r\n };\r\n default:\r\n // The following line guarantees that every action in the KnownAction union has been covered by a case above\r\n const exhaustiveCheck: never = action;\r\n }\r\n\r\n // For unrecognized actions (or in cases where actions have no effect), must return the existing state\r\n // (or default initial state if none was supplied)\r\n return state || unloadedState;\r\n};","import * as _ from 'lodash';\r\nimport * as Api from '../api/api';\r\nimport * as React from 'react';\r\nimport * as Colors from '../styles/colors';\r\nimport * as FormField from './FormField';\r\nimport * as ReduxForm from 'redux-form';\r\nimport { connect } from 'react-redux';\r\nimport { ApplicationState } from '../store';\r\nimport { getText, upperCaseFirstLetter } from '../utils/langTexts';\r\nimport { getSubscription } from '../utils/utils';\r\nimport LocationSelect from './LocationSelect';\r\n\r\n\r\ntype RouteRatesPlatformDataFormProps = ReduxForm.InjectedFormProps\r\n & RouteRatesPlatformDatasFormOwnProps\r\n & RouteRatesPlatformDatasFormOwnPropFormExternalProps;\r\n\r\ninterface RouteRatesPlatformDatasFormOwnProps {\r\n initialValues: Api.CarrierRatesSettingsModel;\r\n portsZones: { [id: number]: Api.PortsZoneModel };\r\n countries: { [id: number]: Api.LocationModel };\r\n carriers: { [id: number]: Api.CarrierModel };\r\n carrierRatesPlatforms: { [id: number]: Api.CarrierRatesPlatformModel };\r\n subscriptions: Array;\r\n carrierId: number;\r\n subscription: Api.SubscriptionModel;\r\n agencies: Array;\r\n routeRatesPlatformDatas: Array;\r\n subOkargoId: number;\r\n firmId: number;\r\n}\r\n\r\ninterface RouteRatesPlatformDatasFormOwnPropFormExternalProps {\r\n onSubmit: (values: Api.RouteRatesPlatformDataModel) => Promise;\r\n mode: \"Create\" | \"Update\";\r\n}\r\n\r\n\r\nconst originPortField = (fields) =>
\r\n fields.input.onChange(value)} />\r\n \r\n
\r\n\r\nconst destinationPortField = (fields) =>
\r\n fields.input.onChange(value)} />\r\n \r\n
\r\n\r\nconst locationRequired = (value: any, values: Api.RouteRatesPlatformDataModel) => !values.originPortsZoneId\r\n&& !values.originPort && !values.originCountryId && !values.destinationPort && !values.destinationCountryId && !values.destinationPortsZoneId\r\n ? \"At least one location is required\" : undefined;\r\n\r\nclass RouteRatesPlatformDataForm extends React.Component {\r\n\r\n constructor(props: RouteRatesPlatformDataFormProps) {\r\n super(props);\r\n\r\n }\r\n\r\n componentWillReceiveProps(nextProps: RouteRatesPlatformDataFormProps) {\r\n\r\n }\r\n\r\n public render() {\r\n return (\r\n \r\n
\r\n {this.props.error && {this.props.error}}\r\n
\r\n
{upperCaseFirstLetter( getText(\"GenFrom\"))}
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n x.name)\r\n .map(x => ({ label: x.name, value: x.locationId })))} />\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n x.name)\r\n .map(x => ({ label: x.name, value: x.portsZoneId })))} />\r\n
\r\n
\r\n
\r\n
\r\n
{upperCaseFirstLetter(getText(\"GenTo\"))}
\r\n\r\n
\r\n\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n x.name)\r\n .map(x => ({ label: x.name, value: x.locationId })))} />\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n \r\n
\r\n x.name)\r\n .map(x => ({ label: x.name, value: x.portsZoneId })))} />\r\n
\r\n
\r\n
\r\n
\r\n
{ upperCaseFirstLetter(getText(\"GenWith\"))}
\r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n ({ label: x.name, value: x.carrierId })), x => x.label)))} />\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n\r\n
\r\n );\r\n }\r\n}\r\n\r\nlet createForm = ReduxForm.reduxForm({\r\n form: 'createRouteRatesPlatformData',\r\n destroyOnUnmount: false,\r\n keepDirtyOnReinitialize: false,\r\n enableReinitialize: true\r\n})(RouteRatesPlatformDataForm) as any;\r\nconst createSelector = ReduxForm.formValueSelector('createRouteRatesPlatformData')\r\n\r\nlet updateForm = ReduxForm.reduxForm({\r\n form: 'updateRouteRatesPlatformData',\r\n destroyOnUnmount: false,\r\n keepDirtyOnReinitialize: false,\r\n enableReinitialize: true\r\n})(RouteRatesPlatformDataForm) as any;\r\nconst updateSelector = ReduxForm.formValueSelector('updateRouteRatesPlatformData')\r\n\r\nexport const CreateRouteRatesPlatformDataForm = connect((state: ApplicationState) => {\r\n return {\r\n initialValues: {},\r\n carriers: state.seed.carriers,\r\n carrierRatesPlatforms: state.seed.carrierRatesPlatforms,\r\n carrierId: createSelector(state, \"carrierId\"),\r\n subscriptions: state.account.currentUser.clientModel.subscriptions\r\n .filter(x => x.subscriptionType === \"Okargo\"),\r\n subscription: getSubscription(state.account.currentUser.clientModel),\r\n agencies: state.account.currentUser.clientModel.agencies,\r\n firmId: createSelector(state, \"firmId\"),\r\n routeRatesPlatformDatas: state.routeRatesPlatformDatas.entities,\r\n portsZones: state.seed.portsZones,\r\n countries: state.seed.countries,\r\n } as RouteRatesPlatformDatasFormOwnProps;\r\n})(createForm) as any as React.ComponentClass\r\n\r\nexport const UpdateRouteRatesPlatformDatasForm = connect((state: ApplicationState) => {\r\n\r\n return {\r\n initialValues: state.routeRatesPlatformDatas.entities\r\n .find(x => x.routeRatesPlatformDataId === state.routeRatesPlatformDatas.selectedId),\r\n carriers: state.seed.carriers,\r\n carrierRatesPlatforms: state.seed.carrierRatesPlatforms,\r\n carrierId: updateSelector(state, \"carrierId\"),\r\n subscriptions: state.account.currentUser.clientModel.subscriptions\r\n .filter(x => x.subscriptionType === \"Okargo\"),\r\n subscription: getSubscription(state.account.currentUser.clientModel),\r\n agencies: state.account.currentUser.clientModel.agencies,\r\n firmId: updateSelector(state, \"firmId\"),\r\n routeRatesPlatformDatas: state.routeRatesPlatformDatas.entities,\r\n portsZones: state.seed.portsZones,\r\n countries: state.seed.countries,\r\n } as RouteRatesPlatformDatasFormOwnProps;\r\n})(updateForm) as any as React.ComponentClass","import * as React from 'react';\r\nimport { connect } from 'react-redux';\r\nimport * as Api from '../api/api';\r\nimport * as RouteRatesPlatformDataStore from '../store/RouteRatesPlatformData';\r\nimport * as TabsStore from \"../store/Tabs\";\r\n\r\nimport { CreateRouteRatesPlatformDataForm, UpdateRouteRatesPlatformDatasForm } from \"./RouteRatesPlatformDataForm\";\r\nimport Loader from './Loader';\r\nimport Table, { Column } from './Table';\r\nimport { getText, upperCaseFirstLetter } from '../utils/langTexts';\r\nimport CenteredContentTabs from './CenteredContentTabs';\r\nimport { ApplicationState } from '../store';\r\n\r\ntype RouteRatesPlatformDatasProps = RouteRatesPlatformDatasOwnProps\r\n & RouteRatesPlatformDataStore.RouteRatesPlatformDatasState\r\n & typeof RouteRatesPlatformDataStore.actionCreators\r\n & typeof TabsStore.actionCreators;\r\n\r\ninterface RouteRatesPlatformDatasOwnProps {\r\n carriers: { [id: number]: Api.CarrierModel };\r\n carrierRatesPlatforms: { [id: number]: Api.CarrierRatesPlatformModel };\r\n subscriptions: Array;\r\n firms: Api.FirmModel[];\r\n portsZones: { [id: number]: Api.PortsZoneModel };\r\n countries: { [id: number]: Api.LocationModel };\r\n}\r\n\r\nconst tabHeadStyle: React.CSSProperties = { padding: \"5px 20px\" };\r\n\r\nclass RouteRatesPlatformDataSettings extends React.Component {\r\n\r\n componentWillMount() {\r\n this.props.requestRouteratesPlatformDatas(new Date().getTime());\r\n }\r\n\r\n componentWillReceiveProps(nextProps: RouteRatesPlatformDatasProps) {\r\n }\r\n\r\n public render() {\r\n \r\n return (\r\n
\r\n

{getText(\"BlckListApiTittle\")}

\r\n
\r\n d.originPortsZoneId != null ?\r\n this.props.portsZones[d.originPortsZoneId].name : (d.originCountryId != null ? this.props.countries[d.originCountryId].name : d.originPort?.code),\r\n },\r\n {\r\n header: upperCaseFirstLetter(getText(\"GenTo\")),\r\n id: 'to',\r\n accessor: (d: Api.RouteRatesPlatformDataModel) => d.destinationPortsZoneId != null ?\r\n this.props.portsZones[d.destinationPortsZoneId].name : (d.destinationCountryId != null ? this.props.countries[d.destinationCountryId].name : d.destinationPort?.code),\r\n },\r\n {\r\n header: \"Carrier\",\r\n id: 'carrierId',\r\n accessor: (d: Api.RouteRatesPlatformDataModel) => d.carrierId != null ? this.props.carriers[d.carrierId].name : \"\",\r\n },\r\n {\r\n id: \"actions\",\r\n header:
,\r\n accessor: (d: Api.RouteRatesPlatformDataModel) => d,\r\n cell: row => {\r\n let routeDataPlatform = row as Api.RouteRatesPlatformDataModel;\r\n return (\r\n \r\n\r\n )\r\n }\r\n },\r\n\r\n ] as Array>}\r\n data={this.props.entities }\r\n rowsPerPage={8}\r\n isLoading={this.props.isLoading}\r\n loadingComponent={() => }\r\n showPageSizeOptions={false}\r\n showPagination={true}\r\n noDataText=\"No results\"\r\n />\r\n
\r\n
\r\n \r\n

{getText(\"GenCreate\")} {getText(\"BlckListApiRule\")}

\r\n
\r\n {\r\n return this.props.requestCreateRouteRatesPlatformDatas(new Date().getTime(), values) as any;\r\n }} />\r\n
\r\n
\r\n },\r\n {\r\n title: getText(\"GenEdit\"),\r\n tabKey: \"edit\",\r\n tabContent:
\r\n
\r\n

{getText(\"GenEdit\")} {getText(\"BlckListApiRule\")}

\r\n {this.props.selectedId\r\n &&
\r\n {\r\n return this.props.requestRouteRatesPlatformDatas(new Date().getTime(), values) as any;\r\n }} />\r\n
}\r\n
\r\n
\r\n }\r\n ]}\r\n >\r\n
\r\n \r\n );\r\n }\r\n}\r\n\r\nexport default connect(\r\n (state: ApplicationState) => ({\r\n ...state.routeRatesPlatformDatas,\r\n carriers: state.seed.carriers,\r\n portsZones: state.seed.portsZones,\r\n countries: state.seed.countries,\r\n } as any),\r\n {\r\n ...RouteRatesPlatformDataStore.actionCreators,\r\n ...TabsStore.actionCreators\r\n })(RouteRatesPlatformDataSettings) as any","import { TypedUseSelectorHook, useDispatch, useSelector } from 'react-redux';\r\nimport type { RootState, AppDispatch } from '../store/configureStore';\r\n\r\n// Use throughout your app instead of plain `useDispatch` and `useSelector`\r\nexport const useAppDispatch = () => useDispatch();\r\nexport const useAppSelector: TypedUseSelectorHook = useSelector;\r\n","import { createAsyncThunk, createSlice, PayloadAction } from '@reduxjs/toolkit';\r\nimport { RootState, AppThunk } from '../store/configureStore';\r\nimport {CarrierModel, CurrencyModel} from \"../api/api\";\r\n\r\nexport interface RatesExtractionState {\r\n ratesExtractionUpdateId?: number;\r\n ratesExtractionDownloadId?: number;\r\n}\r\n\r\nconst initialState: RatesExtractionState = {\r\n};\r\n\r\nexport const ratesExtractionSlice = createSlice({\r\n name: 'ratesExtraction',\r\n initialState,\r\n // The `reducers` field lets us define reducers and generate associated actions\r\n reducers: {\r\n // updateColor: (state, index: PayloadAction) => {\r\n // window.localStorage.setItem(\"colorIndex\", index.payload.toString());\r\n // state.colorIndex = index.payload;\r\n // }\r\n updateRatesExtractionUpdateId: (state, value: PayloadAction) => {\r\n state.ratesExtractionUpdateId = value.payload;\r\n },\r\n updateRatesExtractionDownloadId: (state, value: PayloadAction) => {\r\n state.ratesExtractionDownloadId = value.payload;\r\n },\r\n },\r\n // The `extraReducers` field lets the slice handle actions defined elsewhere,\r\n // including actions generated by createAsyncThunk or in other slices.\r\n // extraReducers: (builder) => {\r\n // builder\r\n // ;\r\n // },\r\n});\r\n\r\nexport const { updateRatesExtractionUpdateId, updateRatesExtractionDownloadId } = ratesExtractionSlice.actions;\r\n\r\n// The function below is called a selector and allows us to select a value from\r\n// the state. Selectors can also be defined inline where they're used instead of\r\n// in the slice file. For example: `useSelector((state: RootState) => state.counter.value)`\r\n\r\nexport const carriersSelector = (state: RootState): { [id: number]: CarrierModel } => state.seed.carriers;\r\nexport const currenciesSelector = (state: RootState): { [id: number]: CurrencyModel } => state.seed.currencies;\r\nexport const ratesExtractionUpdateIdSelector = (state: RootState): number => state.ratesExtraction.ratesExtractionUpdateId;\r\nexport const ratesExtractionDownloadIdSelector = (state: RootState): number => state.ratesExtraction.ratesExtractionDownloadId;\r\n\r\nexport default ratesExtractionSlice.reducer;\r\n","import React from \"react\";\r\nimport {FieldError, FieldErrors} from \"react-hook-form\";\r\nimport { ErrorMessage } from '@hookform/error-message';\r\n\r\nexport function FormField({ children, errors, style, name }: { \r\n children: JSX.Element;\r\n errors?: FieldErrors;\r\n style?: React.CSSProperties;\r\n name: string;\r\n}) {\r\n return (\r\n
\r\n
\r\n {children}\r\n
{err.message}
} errors={errors} name={name} />\r\n {/*{fieldState */}\r\n {/*&& fieldState.error */}\r\n {/*&&
{fieldState.error.message}
}*/}\r\n
\r\n
\r\n \r\n );\r\n}","import {FormField} from \"./Form/FormField\";\r\nimport React, {useRef, useState} from \"react\";\r\nimport {Controller, useForm} from \"react-hook-form\";\r\nimport {RatesExtractionModel} from \"../api/rtkApi\";\r\nimport {smInputStyle, smLabelStyle} from \"../styles/baseStyles\";\r\nimport LocationSelect from \"./LocationSelect\";\r\nimport {getLocationName} from \"../utils/utils\";\r\nimport Select from \"./Select\";\r\nimport {useAppDispatch, useAppSelector} from \"../app/hooks\";\r\nimport {carriersSelector, currenciesSelector} from \"../slices/ratesExtraction\";\r\nimport _ from \"lodash\";\r\nimport {containerTypeOptions} from \"./Criteria\";\r\nimport {getRatesTypeOptions} from \"./CarrierCarrierRatingForm\";\r\nimport CheckBox from \"./CheckBox\";\r\nimport {Delete} from \"@material-ui/icons\";\r\nimport * as Notifications from \"react-notification-system-redux\";\r\nimport {getText} from \"../utils/langTexts\";\r\nimport Button from \"./Button\";\r\n\r\ntype RatesExtractionFormType = \"Create\" | \"Update\";\r\n\r\nexport const ratesSourceOptions = () => [\r\n { label: \"Integrated PL\", value: \"IntegratedPl\" },\r\n { label: \"Online quotes\", value: \"Ocq\" },\r\n { label: \"Self upload\", value: \"SelfUpload\" },\r\n];\r\nexport const applicationOptions = () => [\r\n { label: \"Origin\", value: \"Origin\" },\r\n { label: \"Destination\", value: \"Destination\" },\r\n { label: \"Prepaid\", value: \"Prepaid\" },\r\n { label: \"Collect\", value: \"Collect\" },\r\n];\r\nexport const validityTypeOptions = () => [\r\n { label: \"Grid\", value: \"Grid\" },\r\n { label: \"Spot\", value: \"Spot\" }\r\n]\r\nexport function RatesExtractionForm({ type, defaultValues, onSubmit, disabled }\r\n : {\r\n type: RatesExtractionFormType;\r\n defaultValues?: RatesExtractionModel;\r\n onSubmit: (values: RatesExtractionModel) => Promise;\r\n disabled?: boolean;\r\n}) {\r\n const [polSelected, updatePolSelected] = useState(null);\r\n const [podSelected, updatePodSelected] = useState(null);\r\n const [carrierSelected, updateCarrierSelected] = useState(null);\r\n const carriers = useAppSelector(carriersSelector);\r\n const currencies = useAppSelector(currenciesSelector);\r\n const dispatch = useAppDispatch();\r\n const {\r\n register: register\r\n , handleSubmit: handleSubmit\r\n , formState: formState\r\n , watch: watch\r\n , reset: reset\r\n , resetField: resetField\r\n , control: formControl,\r\n } = useForm({\r\n mode: \"onChange\",\r\n criteriaMode: \"all\",\r\n defaultValues: defaultValues\r\n });\r\n\r\n const handleOnSubmit = (data: RatesExtractionModel) => {\r\n let fnc = onSubmit(data);\r\n if(fnc && fnc.then){\r\n fnc.then(x => {\r\n if(!x.error){\r\n reset();\r\n } else {\r\n dispatch(Notifications.success({ message: \"An error has occured submitting the form\", title: \"Error\", position: \"tc\" }) as any);\r\n }\r\n });\r\n }\r\n };\r\n return (\r\n
\r\n
Name:
\r\n \r\n \r\n \r\n
POLs:
\r\n \r\n \r\n {\r\n if (!location || field.value.some(x => x.portId === location.locationId)) {\r\n return;\r\n }\r\n field.onChange((field.value || []).concat([{\r\n portId: location.locationId,\r\n port: location\r\n }]));\r\n updatePolSelected(null);\r\n }}/>\r\n
\r\n {field.value.map(pol =>
\r\n {getLocationName(pol.port)}\r\n {\r\n field.onChange((field.value || []).filter(x => x.portId !== pol.portId));\r\n }} />\r\n
)}\r\n
\r\n }\r\n control={formControl} rules={{ validate: v => !v || v.length === 0 ? getText(\"GenOneRequired\") : undefined }} defaultValue={[]}/>\r\n
\r\n
PODs:
\r\n \r\n \r\n {\r\n if (!location || field.value.some(x => x.portId === location.locationId)) {\r\n return;\r\n }\r\n field.onChange((field.value || []).concat([{\r\n portId: location.locationId,\r\n port: location\r\n }]));\r\n updatePodSelected(null);\r\n }}/>\r\n
\r\n {field.value.map(pod =>
\r\n {getLocationName(pod.port)}\r\n {\r\n field.onChange((field.value || []).filter(x => x.portId !== pod.portId));\r\n }} />\r\n
)}\r\n
\r\n }\r\n control={formControl} rules={{ validate: v => !v || v.length === 0 ? getText(\"GenOneRequired\") : undefined }} defaultValue={[]}/>\r\n
\r\n
Carriers:
\r\n \r\n \r\n field.onChange(value)}/>}\r\n control={formControl} \r\n defaultValue={undefined} />\r\n \r\n
Rates type:
\r\n \r\n field.onChange(value)}/>}\r\n control={formControl}\r\n defaultValue={undefined} />\r\n \r\n
Surcharges:
\r\n \r\n \r\n {applicationOptions().map(opt =>\r\n x === opt.value)}\r\n onChange={(value) => {\r\n if (!value && field.value.some(x => x === opt.value)) {\r\n field.onChange((field.value || []).filter(x => x !== opt.value))\r\n } else {\r\n field.onChange((field.value || []).concat([opt.value as any]));\r\n }\r\n }}\r\n label={opt.label}/>)}\r\n }\r\n control={formControl} defaultValue={[]}/>\r\n \r\n
All in currency:
\r\n \r\n