@tripian/model 2.0.0 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/v3/enums/BOOKING_PRODUCT_INFO.d.ts +1 -2
- package/api/v3/enums/POI_CATEGORY_GROUP.d.ts +1 -2
- package/api/v3/enums/PROVIDER_ID.d.ts +3 -3
- package/api/v3/enums/PROVIDER_NAME.d.ts +3 -3
- package/api/v3/enums/REACTION.d.ts +1 -2
- package/api/v3/enums/REACTION_COMMENT.d.ts +1 -2
- package/api/v3/enums/TRIP_PROFILE_PACE.d.ts +1 -2
- package/api/v3/index.d.ts +69 -70
- package/api/v3/models/Accommodation.d.ts +7 -0
- package/api/v3/models/Booking.d.ts +6 -0
- package/api/v3/models/{IBookingProduct.d.ts → BookingProduct.d.ts} +2 -3
- package/api/v3/models/City.d.ts +15 -0
- package/api/v3/models/{ICompanion.d.ts → Companion.d.ts} +2 -3
- package/api/v3/models/Continent.d.ts +3 -0
- package/api/v3/models/Coordinate.d.ts +4 -0
- package/api/v3/models/Country.d.ts +6 -0
- package/api/v3/models/{IFavorite.d.ts → Favorite.d.ts} +2 -3
- package/api/v3/models/HourFormat.d.ts +4 -0
- package/api/v3/models/Image.d.ts +7 -0
- package/api/v3/models/{IImageOwner.d.ts → ImageOwner.d.ts} +2 -3
- package/api/v3/models/Option.d.ts +6 -0
- package/api/v3/models/{IPlan.d.ts → Plan.d.ts} +4 -5
- package/api/v3/models/{IPoi.d.ts → Poi.d.ts} +14 -15
- package/api/v3/models/PoiCategory.d.ts +7 -0
- package/api/v3/models/PoiCategoryGroup.d.ts +5 -0
- package/api/v3/models/PoiCategoryParent.d.ts +4 -0
- package/api/v3/models/PoiHours.d.ts +4 -0
- package/api/v3/models/PoiReference.d.ts +10 -0
- package/api/v3/models/{IQuestion.d.ts → Question.d.ts} +4 -5
- package/api/v3/models/Recommendation.d.ts +5 -0
- package/api/v3/models/Step.d.ts +10 -0
- package/api/v3/models/StepHours.d.ts +4 -0
- package/api/v3/models/SubOption.d.ts +4 -0
- package/api/v3/models/TasteItem.d.ts +7 -0
- package/api/v3/models/{ITasteItemImage.d.ts → TasteItemImage.d.ts} +2 -3
- package/api/v3/models/Token.d.ts +4 -0
- package/api/v3/models/{ITokenPayload.d.ts → TokenPayload.d.ts} +2 -3
- package/api/v3/models/{ITokenRefresh.d.ts → TokenRefresh.d.ts} +2 -3
- package/api/v3/models/TopTen.d.ts +6 -0
- package/api/v3/models/Trip.d.ts +5 -0
- package/api/v3/models/{ITripProfile.d.ts → TripProfile.d.ts} +4 -5
- package/api/v3/models/TripReference.d.ts +8 -0
- package/api/v3/models/User.d.ts +8 -0
- package/api/v3/models/UserProfile.d.ts +4 -0
- package/api/v3/models/{IUserReaction.d.ts → UserReaction.d.ts} +4 -5
- package/api/v3/models/{IUserReservation.d.ts → UserReservation.d.ts} +2 -3
- package/api/v3/requests/{ICompanionRequest.d.ts → CompanionRequest.d.ts} +2 -3
- package/api/v3/requests/{IDevice.d.ts → Device.d.ts} +2 -3
- package/api/v3/requests/FavoriteRequest.d.ts +4 -0
- package/api/v3/requests/FavoriteUpdateRequest.d.ts +4 -0
- package/api/v3/requests/LoginRequestEmail.d.ts +6 -0
- package/api/v3/requests/LoginRequestTripHash.d.ts +5 -0
- package/api/v3/requests/LoginRequestUsername.d.ts +5 -0
- package/api/v3/requests/{IPlanUpdateRequest.d.ts → PlanUpdateRequest.d.ts} +2 -3
- package/api/v3/requests/{IPoisRequest.d.ts → PoisRequest.d.ts} +2 -3
- package/api/v3/requests/PoisRequestCoordinate.d.ts +8 -0
- package/api/v3/requests/PoisRequestMustTry.d.ts +5 -0
- package/api/v3/requests/{IPoisRequestName.d.ts → PoisRequestName.d.ts} +2 -3
- package/api/v3/requests/{IRecommendationRequest.d.ts → RecommendationRequest.d.ts} +3 -4
- package/api/v3/requests/RegisterRequestEmail.d.ts +8 -0
- package/api/v3/requests/RegisterRequestUsername.d.ts +7 -0
- package/api/v3/requests/{IStepRequest.d.ts → StepRequest.d.ts} +2 -3
- package/api/v3/requests/StepUpdateRequest.d.ts +4 -0
- package/api/v3/requests/TokenRefreshRequest.d.ts +3 -0
- package/api/v3/requests/UserProfileRequest.d.ts +4 -0
- package/api/v3/requests/UserReactionRequest.d.ts +8 -0
- package/api/v3/requests/{IUserReservationRequest.d.ts → UserReservationRequest.d.ts} +2 -3
- package/api/v3/requests/UserUpdateRequest.d.ts +7 -0
- package/api/v3/responses/DataPayload.d.ts +5 -0
- package/api/v3/responses/{IErrorResponse.d.ts → ErrorResponse.d.ts} +2 -3
- package/api/v3/responses/Pagination.d.ts +9 -0
- package/api/v3/responses/PaginationLinks.d.ts +4 -0
- package/api/v3/responses/SuccessResponse.d.ts +8 -0
- package/helper/index.d.ts +28 -29
- package/helper/plural.d.ts +1 -2
- package/index.d.ts +2 -3
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/providers/bb/ACTIVITY_THEMES.d.ts +14 -0
- package/providers/bb/Activity.d.ts +11 -0
- package/providers/bb/ActivityInfo.d.ts +16 -0
- package/providers/bb/ActivityInfoImage.d.ts +7 -0
- package/providers/bb/ActivityInfoLocation.d.ts +4 -0
- package/providers/bb/ActivityPoint.d.ts +9 -0
- package/providers/bb/AuthorizationResponse.d.ts +48 -0
- package/providers/bb/Offer.d.ts +58 -0
- package/providers/bb/OfferPoint.d.ts +6 -0
- package/providers/bb/Product.d.ts +19 -0
- package/providers/bb/SearchActivitiesResponse.d.ts +20 -0
- package/providers/bb/index.d.ts +11 -0
- package/providers/glx/Booking.d.ts +16 -0
- package/providers/glx/{IBookingContact.d.ts → BookingContact.d.ts} +2 -3
- package/providers/glx/BookingInformation.d.ts +4 -0
- package/providers/glx/{IBookingLocation.d.ts → BookingLocation.d.ts} +2 -3
- package/providers/glx/{IBookingPrice.d.ts → BookingPrice.d.ts} +2 -3
- package/providers/glx/{IBookingRef.d.ts → BookingRef.d.ts} +9 -10
- package/providers/glx/BookingSearchResult.d.ts +10 -0
- package/providers/glx/BookingSearchResultAggregation.d.ts +18 -0
- package/providers/glx/BookingSubCategory.d.ts +4 -0
- package/providers/glx/BookingSupplier.d.ts +4 -0
- package/providers/glx/Catalog.d.ts +4 -0
- package/providers/glx/{ICatalogGroup.d.ts → CatalogGroup.d.ts} +4 -5
- package/providers/glx/{IToken.d.ts → Token.d.ts} +2 -3
- package/providers/glx/{ITourRating.d.ts → TourRating.d.ts} +2 -3
- package/providers/glx/{ITourReview.d.ts → TourReview.d.ts} +2 -3
- package/providers/glx/index.d.ts +15 -16
- package/providers/gyg/CatalogGroup.d.ts +5 -0
- package/providers/gyg/Categories.d.ts +8 -0
- package/providers/gyg/{ICategory.d.ts → Category.d.ts} +2 -3
- package/providers/gyg/{IMetaData.d.ts → MetaData.d.ts} +2 -3
- package/providers/gyg/{IPaymentConfiguration.d.ts → PaymentConfiguration.d.ts} +2 -3
- package/providers/gyg/PaymentConfigurations.d.ts +8 -0
- package/providers/gyg/{ITour.d.ts → Tour.d.ts} +14 -15
- package/providers/gyg/TourAvailabilities.d.ts +8 -0
- package/providers/gyg/{ITourAvailability.d.ts → TourAvailability.d.ts} +2 -3
- package/providers/gyg/{ITourBooking.d.ts → TourBooking.d.ts} +2 -3
- package/providers/gyg/{ITourBookingCart.d.ts → TourBookingCart.d.ts} +14 -6
- package/providers/gyg/{ITourBookingCartRequest.d.ts → TourBookingCartRequest.d.ts} +3 -4
- package/providers/gyg/TourBookingCartWithDetails.d.ts +6 -0
- package/providers/gyg/TourBookingCarts.d.ts +6 -0
- package/providers/gyg/{ITourBookingInfo.d.ts → TourBookingInfo.d.ts} +2 -3
- package/providers/gyg/TourBookingInfos.d.ts +8 -0
- package/providers/gyg/{ITourBookingRequest.d.ts → TourBookingRequest.d.ts} +11 -10
- package/providers/gyg/TourBookings.d.ts +8 -0
- package/providers/gyg/{ITourCategories.d.ts → TourCategories.d.ts} +2 -3
- package/providers/gyg/TourCoordinates.d.ts +4 -0
- package/providers/gyg/TourDateRange.d.ts +4 -0
- package/providers/gyg/TourDurations.d.ts +4 -0
- package/providers/gyg/TourLocations.d.ts +13 -0
- package/providers/gyg/{ITourOption.d.ts → TourOption.d.ts} +6 -7
- package/providers/gyg/TourOptionDetails.d.ts +8 -0
- package/providers/gyg/{ITourOptionPricing.d.ts → TourOptionPricing.d.ts} +2 -3
- package/providers/gyg/TourOptionPricings.d.ts +8 -0
- package/providers/gyg/TourOptions.d.ts +8 -0
- package/providers/gyg/{ITourPictures.d.ts → TourPictures.d.ts} +2 -3
- package/providers/gyg/{ITourPrice.d.ts → TourPrice.d.ts} +2 -3
- package/providers/gyg/TourReservationDetails.d.ts +6 -0
- package/providers/gyg/TourShoppingFormData.d.ts +20 -0
- package/providers/gyg/{ITourViewport.d.ts → TourViewport.d.ts} +2 -3
- package/providers/gyg/Tours.d.ts +8 -0
- package/providers/gyg/index.d.ts +33 -30
- package/providers/index.d.ts +3 -2
- package/providers/yelp/{IBusiness.d.ts → Business.d.ts} +2 -3
- package/providers/yelp/{IHold.d.ts → Hold.d.ts} +2 -3
- package/providers/yelp/{IHoldRequest.d.ts → HoldRequest.d.ts} +2 -3
- package/providers/yelp/Opening.d.ts +5 -0
- package/providers/yelp/OpeningTime.d.ts +4 -0
- package/providers/yelp/Openings.d.ts +4 -0
- package/providers/yelp/{IOpeningsRequest.d.ts → OpeningsRequest.d.ts} +2 -3
- package/providers/yelp/{IReservation.d.ts → Reservation.d.ts} +2 -3
- package/providers/yelp/ReservationInfo.d.ts +8 -0
- package/providers/yelp/{IReservationRequest.d.ts → ReservationRequest.d.ts} +2 -3
- package/providers/yelp/ReservationStatusResponse.d.ts +6 -0
- package/providers/yelp/index.d.ts +10 -11
- package/api/custom/IPoiCategoryGroup.d.ts +0 -6
- package/api/v3/models/IAccommodation.d.ts +0 -8
- package/api/v3/models/IBooking.d.ts +0 -7
- package/api/v3/models/ICity.d.ts +0 -16
- package/api/v3/models/IContinent.d.ts +0 -4
- package/api/v3/models/ICoordinate.d.ts +0 -5
- package/api/v3/models/ICountry.d.ts +0 -7
- package/api/v3/models/IHourFormat.d.ts +0 -5
- package/api/v3/models/IImage.d.ts +0 -8
- package/api/v3/models/IOption.d.ts +0 -7
- package/api/v3/models/IPoiCategory.d.ts +0 -8
- package/api/v3/models/IPoiCategoryParent.d.ts +0 -5
- package/api/v3/models/IPoiHours.d.ts +0 -5
- package/api/v3/models/IPoiReference.d.ts +0 -11
- package/api/v3/models/IRecommendation.d.ts +0 -6
- package/api/v3/models/IStep.d.ts +0 -11
- package/api/v3/models/IStepHours.d.ts +0 -5
- package/api/v3/models/ISubOption.d.ts +0 -5
- package/api/v3/models/ITasteItem.d.ts +0 -8
- package/api/v3/models/IToken.d.ts +0 -5
- package/api/v3/models/ITopTen.d.ts +0 -7
- package/api/v3/models/ITrip.d.ts +0 -6
- package/api/v3/models/ITripReference.d.ts +0 -9
- package/api/v3/models/IUser.d.ts +0 -9
- package/api/v3/models/IUserProfile.d.ts +0 -5
- package/api/v3/requests/IFavoriteRequest.d.ts +0 -5
- package/api/v3/requests/IFavoriteUpdateRequest.d.ts +0 -5
- package/api/v3/requests/ILoginRequestEmail.d.ts +0 -7
- package/api/v3/requests/ILoginRequestTripHash.d.ts +0 -6
- package/api/v3/requests/ILoginRequestUsername.d.ts +0 -6
- package/api/v3/requests/IPoisRequestCoordinate.d.ts +0 -9
- package/api/v3/requests/IPoisRequestMustTry.d.ts +0 -6
- package/api/v3/requests/IRegisterRequestEmail.d.ts +0 -9
- package/api/v3/requests/IRegisterRequestUsername.d.ts +0 -8
- package/api/v3/requests/IStepUpdateRequest.d.ts +0 -5
- package/api/v3/requests/ITokenRefreshRequest.d.ts +0 -4
- package/api/v3/requests/IUserProfileRequest.d.ts +0 -5
- package/api/v3/requests/IUserReactionRequest.d.ts +0 -9
- package/api/v3/requests/IUserUpdateRequest.d.ts +0 -8
- package/api/v3/responses/IDataPayload.d.ts +0 -6
- package/api/v3/responses/IPagination.d.ts +0 -10
- package/api/v3/responses/IPaginationLinks.d.ts +0 -5
- package/api/v3/responses/ISuccessResponse.d.ts +0 -9
- package/providers/glx/IBooking.d.ts +0 -17
- package/providers/glx/IBookingInformation.d.ts +0 -5
- package/providers/glx/IBookingSearchResult.d.ts +0 -11
- package/providers/glx/IBookingSearchResultAggregation.d.ts +0 -18
- package/providers/glx/IBookingSubCategory.d.ts +0 -5
- package/providers/glx/IBookingSupplier.d.ts +0 -5
- package/providers/glx/ICatalog.d.ts +0 -5
- package/providers/gyg/ICatalogGroup.d.ts +0 -6
- package/providers/gyg/ICategories.d.ts +0 -9
- package/providers/gyg/IPaymentConfigurations.d.ts +0 -9
- package/providers/gyg/ITourAvailabilities.d.ts +0 -9
- package/providers/gyg/ITourBookingCarts.d.ts +0 -7
- package/providers/gyg/ITourBookingInfos.d.ts +0 -9
- package/providers/gyg/ITourBookings.d.ts +0 -9
- package/providers/gyg/ITourCoordinates.d.ts +0 -5
- package/providers/gyg/ITourDurations.d.ts +0 -5
- package/providers/gyg/ITourLocations.d.ts +0 -14
- package/providers/gyg/ITourOptionPricings.d.ts +0 -9
- package/providers/gyg/ITourOptions.d.ts +0 -9
- package/providers/gyg/ITours.d.ts +0 -9
- package/providers/gyg/sampleData/categories.d.ts +0 -12
- package/providers/gyg/sampleData/tours-full.d.ts +0 -90
- package/providers/gyg/sampleData/tours.d.ts +0 -111
- package/providers/yelp/IOpening.d.ts +0 -6
- package/providers/yelp/IOpeningTime.d.ts +0 -5
- package/providers/yelp/IOpenings.d.ts +0 -5
- package/providers/yelp/IReservationInfo.d.ts +0 -9
- package/providers/yelp/IReservationStatusResponse.d.ts +0 -7
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack://[name]/webpack/bootstrap","webpack://[name]/./src/api/v3/enums/POI_CATEGORY_GROUP.ts","webpack://[name]/./src/index.ts","webpack://[name]/./src/api/v3/index.ts","webpack://[name]/./src/api/v3/enums/BOOKING_PRODUCT_INFO.ts","webpack://[name]/./src/api/v3/enums/PROVIDER_ID.ts","webpack://[name]/./src/api/v3/enums/PROVIDER_NAME.ts","webpack://[name]/./src/api/v3/enums/REACTION_COMMENT.ts","webpack://[name]/./src/api/v3/enums/REACTION.ts","webpack://[name]/./src/api/v3/enums/TRIP_PROFILE_PACE.ts","webpack://[name]/./src/providers/index.ts","webpack://[name]/./src/helper/index.ts","webpack://[name]/./src/helper/plural.ts"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","POI_CATEGORY_GROUP","Providers","helper","Model","BOOKING_PRODUCT_INFO","PROVIDER_ID","PROVIDER_NAME","REACTION_COMMENT","REACTION","TRIP_PROFILE_PACE","Glx","Yelp","Gyg","plural","allCategoriesStatic","id","description","parent","imgUrl","apiPlaceUrl","x","y","type","xy","substring","indexOf","cityImgUrl","imgUrlThumbnails","imageUrl","smartIndex","split","ratio","thumbsnailPx","getCategoryGroups","poiCategories","allCategories","filter","category","map","parentCategory","result","ids","group","UNKNOWN","ATTRACTION","RESTAURANT","CAFE","NIGHTLIFE","forEach","childCategory","push","getCategoryGroup","categoryId","parentCategoryId","find","getSubCategoryIds","subCategory","concat","hoursFormat","hour","daysArray","search","raw","item","h","days","clock","a","trim","day","replace","findIndex","length","every","includes","currentIndex","splice","compareStringForSort","b","nameA","toLowerCase","nameB","emailFormatValid","email","match","passwordFormatValid","password","toEngChars","str","unicodeToString","hourRange","minuteRange","timeRange","deepCopy","oldObject","JSON","parse","stringify","getYourGuideImageArrayFormat","imgUrls","formatId","img","getYourGuideImageFormat","companionTitleOptions","delay","ms","Promise","resolve","setTimeout","capitalizeFirstLetter","string","charAt","toUpperCase","slice","removeDuplicateValuesById","duplicateItems","itemIndex","allItems","removeDuplicateValues","compareFn","txt","revert","array","irregular","move","foot","goose","sex","child","man","tooth","person","word","pattern","RegExp","test","reg","s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,OAAQ,cAAe,aAG1F1G,QAAQ+F,EAAIxC,gBAAkB,EAAG,OAAOwC,EAGxD,IAAK,IAAMY,KAAQT,EAAW,CAC5B,IAAIU,OAAO,EACP/D,OAAO,EASX,GAPImD,GACFY,EAAU,IAAIC,OAAOX,EAAUS,GAAQ,IAAK,KAC5C9D,EAAU8D,IAEVC,EAAU,IAAIC,OAAOF,EAAO,IAAK,KACjC9D,EAAUqD,EAAUS,IAElBC,EAAQE,KAAKf,GAAM,OAAOA,EAAIlD,QAAQ+D,EAAS/D,GAQrD,IAAK,IAAMkE,KAJCd,EAARD,EA7DW,CACb,aAAc,KACd,cAAe,OACf,kBAAmB,OACnB,WAAY,KACZ,aAAc,KACd,gBAAiB,OACjB,oBAAqB,OACrB,WAAY,KACZ,SAAU,KACV,WAAY,KACZ,cAAe,SACf,kBAAmB,KACnB,YAAa,SACb,YAAa,UACb,qBAAsB,MACtB,aAAc,MACd,WAAY,KACZ,WAAY,KACZ,kBAAmB,OACnB,0BAA2B,MAC3B,eAAgB,QAChB,gEAAiE,UACjE,WAAY,OACZ,UAAW,QACX,eAAgB,SAChB,aAAc,KACd,UAAW,KACXgB,GAAI,IAhDO,CACX,UAAW,QACX,SAAU,OACV,eAAgB,QAChB,wBAAyB,SACzB,gBAAiB,OACjB,mBAAoB,QACpB,UAAW,MACX,wBAAyB,UACzB,wBAAyB,QACzBC,KAAM,MACN,YAAa,MACb,8BAA+B,QAC/B,SAAU,QACV,WAAY,OACZ,aAAc,MACd,eAAgB,OAChB,QAAS,OACT,WAAY,OAmEW,CACvB,IAAIC,EAAW,IAAIL,OAAOE,EAAK,KAC/B,GAAIG,EAASJ,KAAKf,GAAM,OAAOA,EAAIlD,QAAQqE,EAAUjB,EAAMc,IAE7D,OAAOhB","file":"index.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 1);\n","enum POI_CATEGORY_GROUP {\n ATTRACTION = 'Attractions',\n RESTAURANT = 'Restaurants',\n CAFE = 'Cafes',\n NIGHTLIFE = 'Nightlife',\n UNKNOWN = 'Unknown',\n}\n\nexport default POI_CATEGORY_GROUP;\n","import * as Model from './api/v3';\nimport * as Providers from './providers';\nimport * as helper from './helper';\n\nexport default Model;\nexport { Providers, helper };\n","import Accommodation from './models/IAccommodation';\nimport BOOKING_PRODUCT_INFO from './enums/BOOKING_PRODUCT_INFO';\nimport Booking from './models/IBooking';\nimport BookingProduct from './models/IBookingProduct';\nimport City from './models/ICity';\nimport Companion from './models/ICompanion';\nimport CompanionRequest from './requests/ICompanionRequest';\nimport Continent from './models/IContinent';\nimport Coordinate from './models/ICoordinate';\nimport Country from './models/ICountry';\nimport DataPayload from './responses/IDataPayload';\nimport Device from './requests/IDevice';\nimport ErrorResponse from './responses/IErrorResponse';\nimport Favorite from './models/IFavorite';\nimport FavoriteRequest from './requests/IFavoriteRequest';\nimport FavoriteUpdateRequest from './requests/IFavoriteUpdateRequest';\nimport Image from './models/IImage';\nimport ImageOwner from './models/IImageOwner';\nimport TopTen from './models/ITopTen';\nimport LoginRequestEmail from './requests/ILoginRequestEmail';\nimport LoginRequestTripHash from './requests/ILoginRequestTripHash';\nimport LoginRequestUsername from './requests/ILoginRequestUsername';\nimport Option from './models/IOption';\nimport Pagination from './responses/IPagination';\nimport PaginationLinks from './responses/IPaginationLinks';\nimport Plan from './models/IPlan';\nimport PlanUpdateRequest from './requests/IPlanUpdateRequest';\nimport Poi from './models/IPoi';\nimport POI_CATEGORY_GROUP from './enums/POI_CATEGORY_GROUP';\nimport PoiCategory from './models/IPoiCategory';\nimport PoiHours from './models/IPoiHours';\nimport PoiReference from './models/IPoiReference';\nimport PoisRequest from './requests/IPoisRequest';\nimport PoisRequestCoordinate from './requests/IPoisRequestCoordinate';\nimport PoisRequestMustTry from './requests/IPoisRequestMustTry';\nimport PoisRequestName from './requests/IPoisRequestName';\nimport PROVIDER_ID from './enums/PROVIDER_ID';\nimport PROVIDER_NAME from './enums/PROVIDER_NAME';\nimport Question from './models/IQuestion';\nimport REACTION_COMMENT from './enums/REACTION_COMMENT';\nimport REACTION from './enums/REACTION';\nimport Recommendation from './models/IRecommendation';\nimport RecommendationRequest from './requests/IRecommendationRequest';\nimport RegisterRequestEmail from './requests/IRegisterRequestEmail';\nimport RegisterRequestUsername from './requests/IRegisterRequestUsername';\nimport Step from './models/IStep';\nimport StepHours from './models/IStepHours';\nimport StepRequest from './requests/IStepRequest';\nimport StepUpdateRequest from './requests/IStepUpdateRequest';\nimport SubOption from './models/ISubOption';\nimport SuccessResponse from './responses/ISuccessResponse';\nimport TasteItem from './models/ITasteItem';\nimport TasteItemImage from './models/ITasteItemImage';\nimport Token from './models/IToken';\nimport TokenPayload from './models/ITokenPayload';\nimport TokenRefresh from './models/ITokenRefresh';\nimport TokenRefreshRequest from './requests/ITokenRefreshRequest';\nimport TRIP_PROFILE_PACE from './enums/TRIP_PROFILE_PACE';\nimport Trip from './models/ITrip';\nimport TripProfile from './models/ITripProfile';\nimport TripReference from './models/ITripReference';\nimport User from './models/IUser';\nimport UserProfile from './models/IUserProfile';\nimport UserProfileRequest from './requests/IUserProfileRequest';\nimport UserReaction from './models/IUserReaction';\nimport UserReactionRequest from './requests/IUserReactionRequest';\nimport UserReservation from './models/IUserReservation';\nimport UserReservationRequest from './requests/IUserReservationRequest';\nimport UserUpdateRequest from './requests/IUserUpdateRequest';\n\nexport {\n Accommodation,\n BOOKING_PRODUCT_INFO,\n Booking,\n BookingProduct,\n City,\n Companion,\n CompanionRequest,\n Continent,\n Coordinate,\n Country,\n DataPayload,\n Device,\n ErrorResponse,\n Favorite,\n FavoriteRequest,\n FavoriteUpdateRequest,\n Image,\n ImageOwner,\n LoginRequestEmail,\n LoginRequestTripHash,\n LoginRequestUsername,\n Option,\n Pagination,\n PaginationLinks,\n Plan,\n PlanUpdateRequest,\n Poi,\n POI_CATEGORY_GROUP,\n PoiCategory,\n PoiHours,\n PoiReference,\n PoisRequest,\n PoisRequestCoordinate,\n PoisRequestMustTry,\n PoisRequestName,\n PROVIDER_ID,\n PROVIDER_NAME,\n Question,\n REACTION_COMMENT,\n REACTION,\n Recommendation,\n RecommendationRequest,\n RegisterRequestEmail,\n RegisterRequestUsername,\n Step,\n StepHours,\n StepRequest,\n StepUpdateRequest,\n SubOption,\n SuccessResponse,\n TasteItem,\n TasteItemImage,\n Token,\n TokenPayload,\n TokenRefresh,\n TokenRefreshRequest,\n TopTen,\n TRIP_PROFILE_PACE,\n Trip,\n TripProfile,\n TripReference,\n User,\n UserProfile,\n UserProfileRequest,\n UserReaction,\n UserReactionRequest,\n UserReservation,\n UserReservationRequest,\n UserUpdateRequest,\n};\n","enum BOOKING_PRODUCT_INFO {\n TICKET = 'ticket',\n /* TOUR = \"tour\", */\n}\n\nexport default BOOKING_PRODUCT_INFO;\n","enum PROVIDER_ID {\n YELP = 2,\n GLX = 3,\n GYG = 4,\n OPEN_TABLE = 5,\n}\n\nexport default PROVIDER_ID;\n","enum PROVIDER_NAME {\n YELP = 'Yelp',\n GLX = 'Glx',\n GYG = 'Gyg',\n OPEN_TABLE = 'OpenTable',\n}\n\nexport default PROVIDER_NAME;\n","enum REACTION_COMMENT {\n I_HAVE_BEEN_THERE_BEFORE = 'I`ve been there before',\n I_DONT_LIKE_THIS_PLACE = 'I don`t like this place',\n}\n\nexport default REACTION_COMMENT;\n","enum REACTION {\n THUMBS_UP = 'THUMBS UP',\n THUMBS_DOWN = 'THUMBS DOWN',\n NEUTRAL = 'NEUTRAL',\n}\n\nexport default REACTION;\n","enum TRIP_PROFILE_PACE {\n SLOW = 'SLOW',\n MODERATE = 'NORMAL',\n PACKED = 'FAST',\n}\n\nexport default TRIP_PROFILE_PACE;\n","import * as Glx from './glx';\nimport * as Yelp from './yelp';\nimport * as Gyg from './gyg';\n\nexport { Glx, Yelp, Gyg };\n","import PoiCategory from '../api/v3/models/IPoiCategory';\nimport PoiCategoryGroup from '../api/custom/IPoiCategoryGroup';\nimport POI_CATEGORY_GROUP from '../api/v3/enums/POI_CATEGORY_GROUP';\nimport HourFormat from '../api/v3/models/IHourFormat';\nimport plural from './plural';\n\nconst allCategoriesStatic: PoiCategory[] = [\n { id: 36, name: 'Desserts', description: null, parent: { id: 24, name: 'Cafes' } },\n { id: 33, name: 'Bakeries', description: null, parent: { id: 24, name: 'Cafes' } },\n { id: 1, name: 'Attractions', description: null, parent: { id: null, name: null } },\n { id: 31, name: 'Bars', description: null, parent: { id: 4, name: 'Nightlife' } },\n { id: 28, name: 'Stadium', description: null, parent: { id: 1, name: 'Attraction' } },\n { id: 30, name: 'Museums', description: null, parent: { id: 1, name: 'Attraction' } },\n { id: 35, name: 'Breweries', description: null, parent: { id: 4, name: 'Nightlife' } },\n { id: 24, name: 'Cafes', description: null, parent: { id: null, name: null } },\n { id: 4, name: 'Nightlife', description: null, parent: { id: null, name: null } },\n { id: 32, name: 'Art Galleries', description: null, parent: { id: 1, name: 'Attraction' } },\n { id: 26, name: 'Theater', description: null, parent: { id: 1, name: 'Attraction' } },\n { id: 3, name: 'Restaurants', description: null, parent: { id: null, name: null } },\n { id: 29, name: 'Civic Center', description: null, parent: { id: 1, name: 'Attraction' } },\n { id: 25, name: 'Religious Places', description: null, parent: { id: 1, name: 'Attraction' } },\n];\n\nconst imgUrl = (apiPlaceUrl: string, x: number = 64, y?: number, type = 'Place'): string => {\n if (!apiPlaceUrl) {\n return 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxANDw8NDQ8PEA0NDQ0NDRAPDQ8Q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onRM3yimMn6cfMs+0u/39pYHPZH6Dk9cv+PkPaxLsjPt3+b+IHQgiL3W65p81t4EgAAAAAAAAAAAAAAAAAABr5+UqK52y7IrkvGXcviV/RvFca5XWfrMiXWSffw93zb95rZT8vyFTH/j474rWuyUvD5r4nQJbckAAAAAAAAAYDAEkEhgDBl40boSrmt4yW3rXg16zOAKDS8uWLZ5HkPzf2Fj7HHuX57OwvzT1PT4ZMOCfJrnCS7YvxRWYOozxpLGzPZVb9Vr1v8AH4gX4IT3JAAAAAAAAAAAAAABS6zqEnLyTH53WcpNfUj38+57fAjU9Wk5eT4nn3Pk5LnGHjz8fkbWkaXHHi23xWz52Tfe/BeoDNpmBHGrVce3tlLxl4m2ABAAAAAAAADAAEkEgAAABgzMSF8HCyO8X2eKfin3MzgDneHIwPR3vxV3fXgvz7vYW2BqdWQt65Lfvi+Ul7jcKrO0Kq18cd6rO1Tr5c/FoC1BQJ52N2qOTWu9ent8/mZaukdW/DbGyqXepRbX3c/uAugalWp0T9G6v3zSfwZsRti+yUX7JID2Dw7IrtkvijBbqNMPSurX88d/gBtApr+kdEeUOOyXcoR/uYXk5uRyrrVEH9afpbe9fgBb5mbXQuK2aiu5d79i7ymlk5Gf5tKdOO+Tsl6Ul6v8fE2cTQK4vrLpSus73PnHf2d/vLdLbkgNXTtOrxo8Na5v0pP0n7f7G2AAAAEAAAAAAAAkAAAAAAAAAAAAAMdtMZ8pxjJeEop/MyACtt0PGn21RX2XKPyZry6M4/cpr2T/ALouiAKVdGcf/wCx+2f9kbFWg40f2Sf2pSl92+xZADHTjwr5QhGP2YpfIyAASCABIIAEggAAAAAAAAASAAAIJAAAAAAAAAAAACABIIAEggASCABIIAEkAAAAAAAAAASAABAAAAAAAAAAAAASAAAAAAAAAAAAAAACAAAAAAAAf//Z';\n }\n\n const xy = `${x}x${y || x}`;\n const cloudfrontUrl = `https://d1drj6u6cu0e3j.cloudfront.net/${xy}/smart`;\n const imageTypeAndUrl = apiPlaceUrl.substring(apiPlaceUrl.indexOf(`/${type}/`));\n return cloudfrontUrl + imageTypeAndUrl;\n};\n\nconst cityImgUrl = (apiPlaceUrl: string, x: number = 64, y?: number): string => {\n const xy = `${x}x${y || x}`;\n const cloudfrontUrl = `https://d1drj6u6cu0e3j.cloudfront.net/${xy}/smart`;\n const placeUrl = apiPlaceUrl.substring(apiPlaceUrl.indexOf('/City/'));\n return cloudfrontUrl + placeUrl;\n};\n\nconst imgUrlThumbnails = (imageUrl: string): string | undefined => {\n const smartIndex = imageUrl.indexOf('/smart/');\n\n if (smartIndex === -1) {\n return undefined;\n }\n\n const xy = imageUrl.substring(38, smartIndex).split('x');\n const ratio = +xy[0] / 64;\n const y = +xy[1] / ratio;\n const thumbsnailPx = `64x${y}`;\n\n // /smart/filters:blur(80)/\n return `https://d1drj6u6cu0e3j.cloudfront.net/${thumbsnailPx}/smart/${imageUrl.substring(smartIndex + 7)}`;\n};\n\nconst getCategoryGroups = (poiCategories?: PoiCategory[]): PoiCategoryGroup[] => {\n const allCategories = poiCategories || allCategoriesStatic;\n const parentCategories = allCategories.filter((category) => category.parent?.id === null);\n\n const results: PoiCategoryGroup[] = parentCategories.map((parentCategory) => {\n const result = { ids: [parentCategory.id], group: POI_CATEGORY_GROUP.UNKNOWN };\n if (parentCategory.id === 1) {\n result.group = POI_CATEGORY_GROUP.ATTRACTION;\n } else if (parentCategory.id === 3) result.group = POI_CATEGORY_GROUP.RESTAURANT;\n else if (parentCategory.id === 24) result.group = POI_CATEGORY_GROUP.CAFE;\n else if (parentCategory.id === 4) result.group = POI_CATEGORY_GROUP.NIGHTLIFE;\n\n allCategories.filter((category) => category.parent?.id === parentCategory.id).forEach((childCategory) => result.ids.push(childCategory.id));\n\n return result;\n });\n\n return results;\n};\n\nconst getCategoryGroup = (categoryId: number, poiCategories?: PoiCategory[]): POI_CATEGORY_GROUP => {\n const allCategories = poiCategories || allCategoriesStatic;\n const parentCategoryId = allCategories.find((category) => category.id === categoryId)?.parent?.id || categoryId;\n\n if (parentCategoryId === 1) return POI_CATEGORY_GROUP.ATTRACTION;\n if (parentCategoryId === 3) return POI_CATEGORY_GROUP.RESTAURANT;\n if (parentCategoryId === 24) return POI_CATEGORY_GROUP.CAFE;\n if (parentCategoryId === 4) return POI_CATEGORY_GROUP.NIGHTLIFE;\n\n return POI_CATEGORY_GROUP.UNKNOWN;\n};\n\nconst getSubCategoryIds = (parentCategoryId: number, poiCategories?: PoiCategory[]): number[] => {\n const allCategories = poiCategories || allCategoriesStatic;\n const subCategories = allCategories.filter((category) => category.parent?.id === parentCategoryId);\n return subCategories.map((subCategory) => subCategory.id).concat(parentCategoryId);\n};\n\nconst hoursFormat = (hour: string | null) => {\n const daysArray = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];\n\n if (hour && hour.search(',') > -1) {\n const raw = hour.split('|');\n // To do model e ekle\n const hours: HourFormat[] = [];\n raw.forEach((item: string) => {\n const h = item.split(': ');\n const days = h[0].split(',');\n const clock = h[1].split(',').map((a) => a.trim());\n days.forEach((d) => {\n const day = d.replace(/ /g, '');\n const i = hours.findIndex((o) => o.day === day);\n if (i === -1) {\n hours.push({ day, clock });\n } else {\n hours[i].clock = hours[i].clock.concat(clock);\n }\n });\n });\n\n if (hours.length < 7) {\n const closeDays = daysArray.filter((day) => {\n return hours.every((h) => !h.day.includes(day));\n });\n\n closeDays.forEach((d) => {\n const currentIndex = daysArray.findIndex((day) => day === d);\n hours.splice(currentIndex, 0, { day: d, clock: ['Closed', ''] });\n });\n }\n return hours;\n }\n\n const formattedDays: HourFormat[] = daysArray.map((day) => {\n return {\n clock: [hour || ''],\n day,\n };\n });\n return formattedDays;\n};\n\nconst compareStringForSort = (a: string, b: string): number => {\n const nameA = a.toLowerCase();\n const nameB = b.toLowerCase();\n if (nameA < nameB) return -1;\n if (nameA > nameB) return 1;\n return 0;\n};\n\nconst emailFormatValid = (email: string): RegExpMatchArray | null => {\n return email.match(\n /^(([^<>()\\\\[\\]\\\\.,;:\\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,}))$/,\n );\n};\n\nconst passwordFormatValid = (password: string): RegExpMatchArray | null => {\n return password.match(/^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z])([a-zA-Z0-9!-@#$^_:,. ]{8,})$/);\n};\n\nconst toEngChars = (str: string): string => {\n return str\n .replace('Ğ', 'G')\n .replace('Ü', 'U')\n .replace('Ş', 'S')\n .replace('İ', 'I')\n .replace('Ö', 'O')\n .replace('Ç', 'C')\n .replace('ğ', 'g')\n .replace('ü', 'u')\n .replace('ş', 's')\n .replace('ı', 'i')\n .replace('ö', 'o')\n .replace('ç', 'c')\n .replace('á', 'a')\n .replace('é', 'e')\n .replace('í', 'i')\n .replace('ó', 'o')\n .replace('ú', 'u')\n .replace('ý', 'y')\n .replace('Á', 'A')\n .replace('É', 'E')\n .replace('Í', 'I')\n .replace('Ó', 'O')\n .replace('Ú', 'U')\n .replace('Ý', 'Y')\n .replace('à', 'a')\n .replace('è', 'e')\n .replace('ì', 'i')\n .replace('ò', 'o')\n .replace('ù', 'u')\n .replace('À', 'A')\n .replace('È', 'E')\n .replace('Ì', 'I')\n .replace('Ò', 'O')\n .replace('Ù', 'U')\n .replace('â', 'a')\n .replace('ê', 'e')\n .replace('î', 'i')\n .replace('ô', 'o')\n .replace('û', 'u')\n .replace('Â', 'A')\n .replace('Ê', 'E')\n .replace('Î', 'I')\n .replace('Ô', 'O')\n .replace('Û', 'U')\n .replace('ã', 'a')\n .replace('ñ', 'n')\n .replace('õ', 'o')\n .replace('Ã', 'A')\n .replace('Ñ', 'N')\n .replace('Õ', 'O')\n .replace('ä', 'a')\n .replace('ë', 'e')\n .replace('ï', 'i')\n .replace('ÿ', 'Y')\n .replace('Ä', 'A')\n .replace('Ë', 'E')\n .replace('Ï', 'I')\n .replace('Ÿ', 'Y');\n};\n\nconst unicodeToString = (str: string): string => {\n return str\n .replace(/u00c7/g, 'Ç')\n .replace(/u00e7/g, 'ç')\n .replace(/u011f/g, 'ğ')\n .replace(/u0130/g, 'İ')\n .replace(/u0131/g, 'ı')\n .replace(/u00d6/g, 'Ö')\n .replace(/u00f6/g, 'ö')\n .replace(/u015e/g, 'Ş')\n .replace(/u015f/g, 'ş')\n .replace(/u00dc/g, 'Ü')\n .replace(/u00fc/g, 'ü');\n};\n\nconst hourRange = [\n '00',\n '01',\n '02',\n '03',\n '04',\n '05',\n '06',\n '07',\n '08',\n '09',\n '10',\n '11',\n '12',\n '13',\n '14',\n '15',\n '16',\n '17',\n '18',\n '19',\n '20',\n '21',\n '22',\n '23',\n];\nconst minuteRange = ['00', '30'];\nconst timeRange: Array<string> = [];\n\nhourRange.forEach((h) => {\n return minuteRange.forEach((m) => {\n return timeRange.push(`${h}:${m}`);\n });\n});\n\nconst deepCopy = <T>(oldObject: T): T => {\n return JSON.parse(JSON.stringify(oldObject)) as T;\n};\n\nconst getYourGuideImageArrayFormat = (imgUrls: Array<string>, formatId: string) => {\n return imgUrls.map((img) => img.replace('[format_id]', formatId));\n};\n\nconst getYourGuideImageFormat = (str: string, formatId: string): string => {\n return str.replace('[format_id]', formatId);\n};\n\nconst companionTitleOptions = [{ value: 'Family member' }, { value: 'Friend' }, { value: 'Work colleague' }];\n\n// const initialCompanionState: Companion = { id: 0, age: 1, name: '', answers: [], title: 'Family member', trips: [] };\n\nconst delay = async (ms: number) => {\n await new Promise((resolve) => setTimeout(resolve, ms));\n};\n\n/**\n * Capitalize first letter of string param\n * @param {string} any string\n * @returns {string} first letter is uppercase\n */\nconst capitalizeFirstLetter = (string: string): string => string.charAt(0).toUpperCase() + string.slice(1);\n\nconst removeDuplicateValuesById = <T extends { id: number }>(duplicateItems: T[]) => {\n const uniqueItems = duplicateItems.filter((item, itemIndex, allItems) => {\n const firstItemIndex = allItems.findIndex((i) => {\n if (item && i && item.id && i.id) return i.id === item.id;\n // eslint-disable-next-line no-console\n // console.log('vallahi null falan geldi!', item, i);\n return false;\n });\n const isUniqueItem = firstItemIndex === itemIndex;\n return isUniqueItem;\n });\n return uniqueItems;\n};\n\nconst removeDuplicateValues = <T>(duplicateItems: T[], compareFn: (t1: T, t2: T) => boolean) => {\n const uniqueItems = duplicateItems.filter((item, itemIndex, allItems) => {\n const firstItemIndex = allItems.findIndex((i) => compareFn(i, item));\n const isUniqueItem = firstItemIndex === itemIndex;\n return isUniqueItem;\n });\n return uniqueItems;\n};\n\nexport {\n imgUrl,\n cityImgUrl,\n imgUrlThumbnails,\n deepCopy,\n getCategoryGroup,\n getCategoryGroups,\n getSubCategoryIds,\n getYourGuideImageArrayFormat,\n getYourGuideImageFormat,\n hoursFormat,\n compareStringForSort,\n hourRange,\n minuteRange,\n emailFormatValid,\n passwordFormatValid,\n toEngChars,\n timeRange,\n unicodeToString,\n plural,\n companionTitleOptions,\n // initialCompanionState,\n delay,\n capitalizeFirstLetter,\n removeDuplicateValuesById,\n removeDuplicateValues,\n};\n","/* eslint-disable */\nconst plural = function(txt: string, revert = false) {\n var plural = {\n '(quiz)$': '$1zes',\n '^(ox)$': '$1en',\n '([m|l])ouse$': '$1ice',\n '(matr|vert|ind)ix|ex$': '$1ices',\n '(x|ch|ss|sh)$': '$1es',\n '([^aeiouy]|qu)y$': '$1ies',\n '(hive)$': '$1s',\n '(?:([^f])fe|([lr])f)$': '$1$2ves',\n '(shea|lea|loa|thie)f$': '$1ves',\n sis$: 'ses',\n '([ti])um$': '$1a',\n '(tomat|potat|ech|her|vet)o$': '$1oes',\n '(bu)s$': '$1ses',\n '(alias)$': '$1es',\n '(octop)us$': '$1i',\n '(ax|test)is$': '$1es',\n '(us)$': '$1es',\n '([^s]+)$': '$1s',\n };\n var singular = {\n '(quiz)zes$': '$1',\n '(matr)ices$': '$1ix',\n '(vert|ind)ices$': '$1ex',\n '^(ox)en$': '$1',\n '(alias)es$': '$1',\n '(octop|vir)i$': '$1us',\n '(cris|ax|test)es$': '$1is',\n '(shoe)s$': '$1',\n '(o)es$': '$1',\n '(bus)es$': '$1',\n '([m|l])ice$': '$1ouse',\n '(x|ch|ss|sh)es$': '$1',\n '(m)ovies$': '$1ovie',\n '(s)eries$': '$1eries',\n '([^aeiouy]|qu)ies$': '$1y',\n '([lr])ves$': '$1f',\n '(tive)s$': '$1',\n '(hive)s$': '$1',\n '(li|wi|kni)ves$': '$1fe',\n '(shea|loa|lea|thie)ves$': '$1f',\n '(^analy)ses$': '$1sis',\n '((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$': '$1$2sis',\n '([ti])a$': '$1um',\n '(n)ews$': '$1ews',\n '(h|bl)ouses$': '$1ouse',\n '(corpse)s$': '$1',\n '(us)es$': '$1',\n s$: '',\n };\n var irregular: Record<string, any> = {\n move: 'moves',\n foot: 'feet',\n goose: 'geese',\n sex: 'sexes',\n child: 'children',\n man: 'men',\n tooth: 'teeth',\n person: 'people',\n };\n var uncountable = ['sheep', 'fish', 'deer', 'moose', 'series', 'species', 'money', 'rice', 'information', 'equipment'];\n\n // save some time in the case that singular and plural are the same\n if (uncountable.indexOf(txt.toLowerCase()) >= 0) return txt;\n\n // check for irregular forms\n for (const word in irregular) {\n let pattern;\n let replace;\n\n if (revert) {\n pattern = new RegExp(irregular[word] + '$', 'i');\n replace = word;\n } else {\n pattern = new RegExp(word + '$', 'i');\n replace = irregular[word];\n }\n if (pattern.test(txt)) return txt.replace(pattern, replace);\n }\n\n let array: Record<string, any>;\n if (revert) array = singular;\n else array = plural;\n\n // check for matches using regular expressions\n for (const reg in array) {\n var pattern2 = new RegExp(reg, 'i');\n if (pattern2.test(txt)) return txt.replace(pattern2, array[reg]);\n }\n return txt;\n};\n\nexport default plural;\n"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"sources":["webpack://[name]/webpack/bootstrap","webpack://[name]/./src/api/v3/index.ts","webpack://[name]/./src/index.ts","webpack://[name]/./src/api/v3/enums/BOOKING_PRODUCT_INFO.ts","webpack://[name]/./src/api/v3/enums/POI_CATEGORY_GROUP.ts","webpack://[name]/./src/api/v3/enums/PROVIDER_ID.ts","webpack://[name]/./src/api/v3/enums/PROVIDER_NAME.ts","webpack://[name]/./src/api/v3/enums/REACTION_COMMENT.ts","webpack://[name]/./src/api/v3/enums/REACTION.ts","webpack://[name]/./src/api/v3/enums/TRIP_PROFILE_PACE.ts","webpack://[name]/./src/providers/index.ts","webpack://[name]/./src/providers/yelp/index.ts","webpack://[name]/./src/providers/glx/index.ts","webpack://[name]/./src/providers/gyg/index.ts","webpack://[name]/./src/providers/bb/index.ts","webpack://[name]/./src/providers/bb/ACTIVITY_THEMES.ts","webpack://[name]/./src/helper/index.ts","webpack://[name]/./src/helper/plural.ts"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","Model","BOOKING_PRODUCT_INFO","POI_CATEGORY_GROUP","PROVIDER_ID","PROVIDER_NAME","REACTION_COMMENT","REACTION","TRIP_PROFILE_PACE","Yelp","Glx","Gyg","Bb","ACTIVITY_THEMES","allCategoriesStatic","id","description","parent","imgUrl","apiPlaceUrl","x","y","type","xy","substring","indexOf","cityImgUrl","imgUrlThumbnails","imageUrl","smartIndex","split","ratio","thumbsnailPx","getCategoryGroups","poiCategories","allCategories","filter","category","map","parentCategory","result","ids","group","UNKNOWN","ATTRACTION","RESTAURANT","CAFE","NIGHTLIFE","forEach","childCategory","push","getCategoryGroup","categoryId","parentCategoryId","find","getSubCategoryIds","subCategory","concat","hoursFormat","hour","daysArray","search","raw","item","h","days","clock","a","trim","day","replace","findIndex","length","every","includes","currentIndex","splice","compareStringForSort","b","nameA","toLowerCase","nameB","emailFormatValid","email","match","passwordFormatValid","password","toEngChars","str","unicodeToString","hourRange","minuteRange","timeRange","deepCopy","oldObject","JSON","parse","stringify","getYourGuideImageArrayFormat","imgUrls","formatId","img","getYourGuideImageFormat","companionTitleOptions","delay","ms","Promise","resolve","setTimeout","capitalizeFirstLetter","string","charAt","toUpperCase","slice","removeDuplicateValuesById","duplicateItems","itemIndex","allItems","removeDuplicateValues","compareFn","plural","txt","revert","array","irregular","move","foot","goose","sex","child","man","tooth","person","word","pattern","RegExp","test","reg","s$","sis$","pattern2"],"mappings":"2BACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QA0Df,OArDAF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEZ,EAAoBkB,EAAI,SAAShB,GACX,oBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAeb,EAAS,aAAc,CAAEmB,OAAO,KAQvDrB,EAAoBsB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQrB,EAAoBqB,IAC/B,EAAPE,EAAU,OAAOF,EACpB,GAAW,EAAPE,GAA8B,iBAAVF,GAAsBA,GAASA,EAAMG,WAAY,OAAOH,EAChF,IAAII,EAAKX,OAAOY,OAAO,MAGvB,GAFA1B,EAAoBkB,EAAEO,GACtBX,OAAOC,eAAeU,EAAI,UAAW,CAAET,YAAY,EAAMK,MAAOA,IAC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KACd,cAAe,OACf,kBAAmB,OACnB,WAAY,KACZ,aAAc,KACd,gBAAiB,OACjB,oBAAqB,OACrB,WAAY,KACZ,SAAU,KACV,WAAY,KACZ,cAAe,SACf,kBAAmB,KACnB,YAAa,SACb,YAAa,UACb,qBAAsB,MACtB,aAAc,MACd,WAAY,KACZ,WAAY,KACZ,kBAAmB,OACnB,0BAA2B,MAC3B,eAAgB,QAChB,gEAAiE,UACjE,WAAY,OACZ,UAAW,QACX,eAAgB,SAChB,aAAc,KACd,UAAW,KACXgB,GAAI,IAhDO,CACX,UAAW,QACX,SAAU,OACV,eAAgB,QAChB,wBAAyB,SACzB,gBAAiB,OACjB,mBAAoB,QACpB,UAAW,MACX,wBAAyB,UACzB,wBAAyB,QACzBC,KAAM,MACN,YAAa,MACb,8BAA+B,QAC/B,SAAU,QACV,WAAY,OACZ,aAAc,MACd,eAAgB,OAChB,QAAS,OACT,WAAY,OAmEW,CACvB,IAAIC,EAAW,IAAIL,OAAOE,EAAK,KAC/B,GAAIG,EAASJ,KAAKf,GAAM,OAAOA,EAAInD,QAAQsE,EAAUjB,EAAMc,IAE7D,OAAOhB","file":"index.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 1);\n","export * from './models/Accommodation';\nexport * from './enums/BOOKING_PRODUCT_INFO';\nexport * from './models/Booking';\nexport * from './models/BookingProduct';\nexport * from './models/City';\nexport * from './models/Companion';\nexport * from './requests/CompanionRequest';\nexport * from './models/Continent';\nexport * from './models/Coordinate';\nexport * from './models/Country';\nexport * from './responses/DataPayload';\nexport * from './requests/Device';\nexport * from './responses/ErrorResponse';\nexport * from './models/Favorite';\nexport * from './requests/FavoriteRequest';\nexport * from './requests/FavoriteUpdateRequest';\nexport * from './models/Image';\nexport * from './models/ImageOwner';\nexport * from './models/TopTen';\nexport * from './requests/LoginRequestEmail';\nexport * from './requests/LoginRequestTripHash';\nexport * from './requests/LoginRequestUsername';\nexport * from './models/Option';\nexport * from './responses/Pagination';\nexport * from './responses/PaginationLinks';\nexport * from './models/Plan';\nexport * from './requests/PlanUpdateRequest';\nexport * from './models/Poi';\nexport * from './enums/POI_CATEGORY_GROUP';\nexport * from './models/PoiCategory';\nexport * from './models/PoiHours';\nexport * from './models/PoiReference';\nexport * from './requests/PoisRequest';\nexport * from './requests/PoisRequestCoordinate';\nexport * from './requests/PoisRequestMustTry';\nexport * from './requests/PoisRequestName';\nexport * from './enums/PROVIDER_ID';\nexport * from './enums/PROVIDER_NAME';\nexport * from './models/Question';\nexport * from './enums/REACTION_COMMENT';\nexport * from './enums/REACTION';\nexport * from './models/Recommendation';\nexport * from './requests/RecommendationRequest';\nexport * from './requests/RegisterRequestEmail';\nexport * from './requests/RegisterRequestUsername';\nexport * from './models/Step';\nexport * from './models/StepHours';\nexport * from './requests/StepRequest';\nexport * from './requests/StepUpdateRequest';\nexport * from './models/SubOption';\nexport * from './responses/SuccessResponse';\nexport * from './models/TasteItem';\nexport * from './models/TasteItemImage';\nexport * from './models/Token';\nexport * from './models/TokenPayload';\nexport * from './models/TokenRefresh';\nexport * from './requests/TokenRefreshRequest';\nexport * from './enums/TRIP_PROFILE_PACE';\nexport * from './models/Trip';\nexport * from './models/TripProfile';\nexport * from './models/TripReference';\nexport * from './models/User';\nexport * from './models/UserProfile';\nexport * from './requests/UserProfileRequest';\nexport * from './models/UserReaction';\nexport * from './requests/UserReactionRequest';\nexport * from './models/UserReservation';\nexport * from './requests/UserReservationRequest';\nexport * from './requests/UserUpdateRequest';\n","import * as Model from './api/v3';\nexport * as Providers from './providers';\nexport * as helper from './helper';\n\nexport default Model;","export enum BOOKING_PRODUCT_INFO {\n TICKET = 'ticket',\n /* TOUR = \"tour\", */\n}\n","export enum POI_CATEGORY_GROUP {\n ATTRACTION = 'Attractions',\n RESTAURANT = 'Restaurants',\n CAFE = 'Cafes',\n NIGHTLIFE = 'Nightlife',\n UNKNOWN = 'Unknown',\n}\n","export enum PROVIDER_ID {\n YELP = 2,\n GLX = 3,\n GYG = 4,\n OPEN_TABLE = 5,\n BOOK_BARBADOS = 6,\n}\n","export enum PROVIDER_NAME {\n YELP = 'Yelp',\n GLX = 'Glx',\n GYG = 'Gyg',\n OPEN_TABLE = 'OpenTable',\n BOOK_BARBADOS = 'BookBarbados',\n}\n","export enum REACTION_COMMENT {\n I_HAVE_BEEN_THERE_BEFORE = 'I`ve been there before',\n I_DONT_LIKE_THIS_PLACE = 'I don`t like this place',\n}\n","export enum REACTION {\n THUMBS_UP = 'THUMBS UP',\n THUMBS_DOWN = 'THUMBS DOWN',\n NEUTRAL = 'NEUTRAL',\n}\n","export enum TRIP_PROFILE_PACE {\n SLOW = 'SLOW',\n MODERATE = 'NORMAL',\n PACKED = 'FAST',\n}\n","import * as Yelp from './yelp';\nimport * as Glx from './glx';\nimport * as Gyg from './gyg';\nimport * as Bb from './bb';\n\nexport { Yelp, Glx, Gyg, Bb };\n","export * from './Business';\nexport * from './Hold';\nexport * from './HoldRequest';\nexport * from './Openings';\nexport * from './OpeningsRequest';\nexport * from './OpeningTime';\nexport * from './Reservation';\nexport * from './ReservationInfo';\nexport * from './ReservationRequest';\nexport * from './ReservationStatusResponse';\n","export * from './Token';\nexport * from './TourRating';\nexport * from './TourReview';\nexport * from './BookingContact';\nexport * from './BookingInformation';\nexport * from './BookingLocation';\nexport * from './BookingPrice';\nexport * from './BookingSubCategory';\nexport * from './BookingSupplier';\nexport * from './BookingRef';\nexport * from './Booking';\nexport * from './BookingSearchResultAggregation';\nexport * from './BookingSearchResult';\nexport * from './CatalogGroup';\nexport * from './Catalog';\n","export * from './CatalogGroup';\nexport * from './Category';\nexport * from './Categories';\nexport * from './MetaData';\nexport * from './PaymentConfiguration';\nexport * from './PaymentConfigurations';\nexport * from './Tour';\nexport * from './TourAvailability';\nexport * from './TourAvailabilities';\nexport * from './TourBookingInfo';\nexport * from './TourBookingInfos';\nexport * from './TourBooking';\nexport * from './TourBookingCart';\nexport * from './TourBookingCarts';\nexport * from './TourBookingCartRequest';\nexport * from './TourBookings';\nexport * from './TourBookingRequest';\nexport * from './TourCategories';\nexport * from './TourCoordinates';\nexport * from './TourDateRange';\nexport * from './TourDurations';\nexport * from './TourLocations';\nexport * from './TourPictures';\nexport * from './TourPrice';\nexport * from './TourShoppingFormData';\nexport * from './TourOptionDetails';\nexport * from './TourOptionPricing';\nexport * from './TourOptionPricings';\nexport * from './TourOption';\nexport * from './TourOptions';\nexport * from './TourViewport';\nexport * from './TourReservationDetails';\nexport * from './Tours';\n","export * from './ACTIVITY_THEMES';\nexport * from './Activity';\nexport * from './ActivityInfo';\nexport * from './ActivityInfoImage';\nexport * from './ActivityInfoLocation';\nexport * from './ActivityPoint';\nexport * from './AuthorizationResponse';\nexport * from './Offer';\nexport * from './OfferPoint';\nexport * from './Product';\nexport * from './SearchActivitiesResponse';\n","export enum ACTIVITY_THEMES {\n ON_THE_LAND = 'On the Land',\n FAMILY_FUN = 'Family Fun',\n SOFT_ADVENTURE = 'Soft Adventure',\n ON_THE_WATER = 'On the Water',\n WELLNESS = 'Wellness',\n ART_AND_CULTURE = 'Arts & Culture',\n HISTORY = 'History',\n UNDER_WATER = 'Under Water',\n IN_THE_AIR = 'In the Air',\n ROMANCE = 'Romance',\n FOODIE_DELIGHTS = 'Foodie Delights',\n UNDER_GROUND = 'Under Ground',\n}\n","import { POI_CATEGORY_GROUP } from '../api/v3';\nimport { HourFormat } from '../api/v3/models/HourFormat';\nimport { PoiCategory } from '../api/v3/models/PoiCategory';\nimport { PoiCategoryGroup } from '../api/v3/models/PoiCategoryGroup';\n\nexport * from './plural';\n\nconst allCategoriesStatic: PoiCategory[] = [\n { id: 36, name: 'Desserts', description: null, parent: { id: 24, name: 'Cafes' } },\n { id: 33, name: 'Bakeries', description: null, parent: { id: 24, name: 'Cafes' } },\n { id: 1, name: 'Attractions', description: null, parent: { id: null, name: null } },\n { id: 31, name: 'Bars', description: null, parent: { id: 4, name: 'Nightlife' } },\n { id: 28, name: 'Stadium', description: null, parent: { id: 1, name: 'Attraction' } },\n { id: 30, name: 'Museums', description: null, parent: { id: 1, name: 'Attraction' } },\n { id: 35, name: 'Breweries', description: null, parent: { id: 4, name: 'Nightlife' } },\n { id: 24, name: 'Cafes', description: null, parent: { id: null, name: null } },\n { id: 4, name: 'Nightlife', description: null, parent: { id: null, name: null } },\n { id: 32, name: 'Art Galleries', description: null, parent: { id: 1, name: 'Attraction' } },\n { id: 26, name: 'Theater', description: null, parent: { id: 1, name: 'Attraction' } },\n { id: 3, name: 'Restaurants', description: null, parent: { id: null, name: null } },\n { id: 29, name: 'Civic Center', description: null, parent: { id: 1, name: 'Attraction' } },\n { id: 25, name: 'Religious Places', description: null, parent: { id: 1, name: 'Attraction' } },\n];\n\nexport const imgUrl = (apiPlaceUrl: string, x: number = 64, y?: number, type = 'Place'): string => {\n if (!apiPlaceUrl) {\n return 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxANDw8NDQ8PEA0NDQ0NDRAPDQ8QEBUOFREWFhUSFRYYHSggGBolGxUVITEhJSkrLjAuFx8zODYtNygvLisBCgoKBQUFDgUFDisZExkrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrK//AABEIAOEA4QMBIgACEQEDEQH/xAAbAAEAAgMBAQAAAAAAAAAAAAAAAQUDBAYCB//EAEMQAAICAQICBQgGCQMDBQAAAAABAgMEBRESIQYTMUFRFCIyYXGBkbEVQnKhwfAkM0NSYoKS0eEHIzRzdPEW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T3JAAAAAAAAAAAAAABS6zqEnLyTH53WcpNfUj38+57fAjU9Wk5eT4nn3Pk5LnGHjz8fkbWkaXHHi23xWz52Tfe/BeoDNpmBHGrVce3tlLxl4m2ABAAAAAAAADAAEkEgAAABgzMSF8HCyO8X2eKfin3MzgDneHIwPR3vxV3fXgvz7vYW2BqdWQt65Lfvi+Ul7jcKrO0Kq18cd6rO1Tr5c/FoC1BQJ52N2qOTWu9ent8/mZaukdW/DbGyqXepRbX3c/uAugalWp0T9G6v3zSfwZsRti+yUX7JID2Dw7IrtkvijBbqNMPSurX88d/gBtApr+kdEeUOOyXcoR/uYXk5uRyrrVEH9afpbe9fgBb5mbXQuK2aiu5d79i7ymlk5Gf5tKdOO+Tsl6Ul6v8fE2cTQK4vrLpSus73PnHf2d/vLdLbkgNXTtOrxo8Na5v0pP0n7f7G2AAAAEAAAAAAAAkAAAAAAAAAAAAAMdtMZ8pxjJeEop/MyACtt0PGn21RX2XKPyZry6M4/cpr2T/ALouiAKVdGcf/wCx+2f9kbFWg40f2Sf2pSl92+xZADHTjwr5QhGP2YpfIyAASCABIIAEggAAAAAAAAASAAAIJAAAAAAAAAAAACABIIAEggASCABIIAEkAAAAAAAAAASAABAAAAAAAAAAAAASAAAAAAAAAAAAAAACAAAAAAAAf//Z';\n }\n\n const xy = `${x}x${y || x}`;\n const cloudfrontUrl = `https://d1drj6u6cu0e3j.cloudfront.net/${xy}/smart`;\n const imageTypeAndUrl = apiPlaceUrl.substring(apiPlaceUrl.indexOf(`/${type}/`));\n return cloudfrontUrl + imageTypeAndUrl;\n};\n\nexport const cityImgUrl = (apiPlaceUrl: string, x: number = 64, y?: number): string => {\n const xy = `${x}x${y || x}`;\n const cloudfrontUrl = `https://d1drj6u6cu0e3j.cloudfront.net/${xy}/smart`;\n const placeUrl = apiPlaceUrl.substring(apiPlaceUrl.indexOf('/City/'));\n return cloudfrontUrl + placeUrl;\n};\n\nexport const imgUrlThumbnails = (imageUrl: string): string | undefined => {\n const smartIndex = imageUrl.indexOf('/smart/');\n\n if (smartIndex === -1) {\n return undefined;\n }\n\n const xy = imageUrl.substring(38, smartIndex).split('x');\n const ratio = +xy[0] / 64;\n const y = +xy[1] / ratio;\n const thumbsnailPx = `64x${y}`;\n\n // /smart/filters:blur(80)/\n return `https://d1drj6u6cu0e3j.cloudfront.net/${thumbsnailPx}/smart/${imageUrl.substring(smartIndex + 7)}`;\n};\n\nexport const getCategoryGroups = (poiCategories?: PoiCategory[]): PoiCategoryGroup[] => {\n const allCategories = poiCategories || allCategoriesStatic;\n const parentCategories = allCategories.filter((category) => category.parent?.id === null);\n\n const results: PoiCategoryGroup[] = parentCategories.map((parentCategory) => {\n const result = { ids: [parentCategory.id], group: POI_CATEGORY_GROUP.UNKNOWN };\n if (parentCategory.id === 1) {\n result.group = POI_CATEGORY_GROUP.ATTRACTION;\n } else if (parentCategory.id === 3) result.group = POI_CATEGORY_GROUP.RESTAURANT;\n else if (parentCategory.id === 24) result.group = POI_CATEGORY_GROUP.CAFE;\n else if (parentCategory.id === 4) result.group = POI_CATEGORY_GROUP.NIGHTLIFE;\n\n allCategories.filter((category) => category.parent?.id === parentCategory.id).forEach((childCategory) => result.ids.push(childCategory.id));\n\n return result;\n });\n\n return results;\n};\n\nexport const getCategoryGroup = (categoryId: number, poiCategories?: PoiCategory[]): POI_CATEGORY_GROUP => {\n const allCategories = poiCategories || allCategoriesStatic;\n const parentCategoryId = allCategories.find((category) => category.id === categoryId)?.parent?.id || categoryId;\n\n if (parentCategoryId === 1) return POI_CATEGORY_GROUP.ATTRACTION;\n if (parentCategoryId === 3) return POI_CATEGORY_GROUP.RESTAURANT;\n if (parentCategoryId === 24) return POI_CATEGORY_GROUP.CAFE;\n if (parentCategoryId === 4) return POI_CATEGORY_GROUP.NIGHTLIFE;\n\n return POI_CATEGORY_GROUP.UNKNOWN;\n};\n\nexport const getSubCategoryIds = (parentCategoryId: number, poiCategories?: PoiCategory[]): number[] => {\n const allCategories = poiCategories || allCategoriesStatic;\n const subCategories = allCategories.filter((category) => category.parent?.id === parentCategoryId);\n return subCategories.map((subCategory) => subCategory.id).concat(parentCategoryId);\n};\n\nexport const hoursFormat = (hour: string | null) => {\n const daysArray = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];\n\n if (hour && hour.search(',') > -1) {\n const raw = hour.split('|');\n // To do model e ekle\n const hours: HourFormat[] = [];\n raw.forEach((item: string) => {\n const h = item.split(': ');\n const days = h[0].split(',');\n const clock = h[1].split(',').map((a) => a.trim());\n days.forEach((d) => {\n const day = d.replace(/ /g, '');\n const i = hours.findIndex((o) => o.day === day);\n if (i === -1) {\n hours.push({ day, clock });\n } else {\n hours[i].clock = hours[i].clock.concat(clock);\n }\n });\n });\n\n if (hours.length < 7) {\n const closeDays = daysArray.filter((day) => {\n return hours.every((h) => !h.day.includes(day));\n });\n\n closeDays.forEach((d) => {\n const currentIndex = daysArray.findIndex((day) => day === d);\n hours.splice(currentIndex, 0, { day: d, clock: ['Closed', ''] });\n });\n }\n return hours;\n }\n\n const formattedDays: HourFormat[] = daysArray.map((day) => {\n return {\n clock: [hour || ''],\n day,\n };\n });\n return formattedDays;\n};\n\nexport const compareStringForSort = (a: string, b: string): number => {\n const nameA = a.toLowerCase();\n const nameB = b.toLowerCase();\n if (nameA < nameB) return -1;\n if (nameA > nameB) return 1;\n return 0;\n};\n\nexport const emailFormatValid = (email: string): RegExpMatchArray | null => email.match(/^(([^<>()\\\\[\\]\\\\.,;:\\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,}))$/);\n\nexport const passwordFormatValid = (password: string): RegExpMatchArray | null => password.match(/^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z])([a-zA-Z0-9!-@#$^_:,. ]{8,})$/);\n\nexport const toEngChars = (str: string): string =>\n str\n .replace('Ğ', 'G')\n .replace('Ü', 'U')\n .replace('Ş', 'S')\n .replace('İ', 'I')\n .replace('Ö', 'O')\n .replace('Ç', 'C')\n .replace('ğ', 'g')\n .replace('ü', 'u')\n .replace('ş', 's')\n .replace('ı', 'i')\n .replace('ö', 'o')\n .replace('ç', 'c')\n .replace('á', 'a')\n .replace('é', 'e')\n .replace('í', 'i')\n .replace('ó', 'o')\n .replace('ú', 'u')\n .replace('ý', 'y')\n .replace('Á', 'A')\n .replace('É', 'E')\n .replace('Í', 'I')\n .replace('Ó', 'O')\n .replace('Ú', 'U')\n .replace('Ý', 'Y')\n .replace('à', 'a')\n .replace('è', 'e')\n .replace('ì', 'i')\n .replace('ò', 'o')\n .replace('ù', 'u')\n .replace('À', 'A')\n .replace('È', 'E')\n .replace('Ì', 'I')\n .replace('Ò', 'O')\n .replace('Ù', 'U')\n .replace('â', 'a')\n .replace('ê', 'e')\n .replace('î', 'i')\n .replace('ô', 'o')\n .replace('û', 'u')\n .replace('Â', 'A')\n .replace('Ê', 'E')\n .replace('Î', 'I')\n .replace('Ô', 'O')\n .replace('Û', 'U')\n .replace('ã', 'a')\n .replace('ñ', 'n')\n .replace('õ', 'o')\n .replace('Ã', 'A')\n .replace('Ñ', 'N')\n .replace('Õ', 'O')\n .replace('ä', 'a')\n .replace('ë', 'e')\n .replace('ï', 'i')\n .replace('ÿ', 'Y')\n .replace('Ä', 'A')\n .replace('Ë', 'E')\n .replace('Ï', 'I')\n .replace('Ÿ', 'Y');\n\nexport const unicodeToString = (str: string): string =>\n str\n .replace(/u00c7/g, 'Ç')\n .replace(/u00e7/g, 'ç')\n .replace(/u011f/g, 'ğ')\n .replace(/u0130/g, 'İ')\n .replace(/u0131/g, 'ı')\n .replace(/u00d6/g, 'Ö')\n .replace(/u00f6/g, 'ö')\n .replace(/u015e/g, 'Ş')\n .replace(/u015f/g, 'ş')\n .replace(/u00dc/g, 'Ü')\n .replace(/u00fc/g, 'ü');\n\nexport const hourRange = ['00', '01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23'];\nexport const minuteRange = ['00', '30'];\nexport const timeRange: Array<string> = [];\n\nhourRange.forEach((h) => {\n return minuteRange.forEach((m) => {\n return timeRange.push(`${h}:${m}`);\n });\n});\n\nexport const deepCopy = <T>(oldObject: T): T => JSON.parse(JSON.stringify(oldObject)) as T;\n\nexport const getYourGuideImageArrayFormat = (imgUrls: Array<string>, formatId: string) => imgUrls.map((img) => img.replace('[format_id]', formatId));\n\nexport const getYourGuideImageFormat = (str: string, formatId: string): string => str.replace('[format_id]', formatId);\n\nexport const companionTitleOptions = [{ value: 'Family member' }, { value: 'Friend' }, { value: 'Work colleague' }];\n\nexport const delay = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));\n\n/**\n * Capitalize first letter of string param\n * @param {string} any string\n * @returns {string} first letter is uppercase\n */\nexport const capitalizeFirstLetter = (string: string): string => string.charAt(0).toUpperCase() + string.slice(1);\n\nexport const removeDuplicateValuesById = <T extends { id: number }>(duplicateItems: T[]) => {\n const uniqueItems = duplicateItems.filter((item, itemIndex, allItems) => {\n const firstItemIndex = allItems.findIndex((i) => {\n if (item && i && item.id && i.id) return i.id === item.id;\n // eslint-disable-next-line no-console\n // console.log('vallahi null falan geldi!', item, i);\n return false;\n });\n const isUniqueItem = firstItemIndex === itemIndex;\n return isUniqueItem;\n });\n return uniqueItems;\n};\n\nexport const removeDuplicateValues = <T>(duplicateItems: T[], compareFn: (t1: T, t2: T) => boolean) => {\n const uniqueItems = duplicateItems.filter((item, itemIndex, allItems) => {\n const firstItemIndex = allItems.findIndex((i) => compareFn(i, item));\n const isUniqueItem = firstItemIndex === itemIndex;\n return isUniqueItem;\n });\n return uniqueItems;\n};\n","/* eslint-disable */\nexport const plural = function(txt: string, revert = false) {\n var plural = {\n '(quiz)$': '$1zes',\n '^(ox)$': '$1en',\n '([m|l])ouse$': '$1ice',\n '(matr|vert|ind)ix|ex$': '$1ices',\n '(x|ch|ss|sh)$': '$1es',\n '([^aeiouy]|qu)y$': '$1ies',\n '(hive)$': '$1s',\n '(?:([^f])fe|([lr])f)$': '$1$2ves',\n '(shea|lea|loa|thie)f$': '$1ves',\n sis$: 'ses',\n '([ti])um$': '$1a',\n '(tomat|potat|ech|her|vet)o$': '$1oes',\n '(bu)s$': '$1ses',\n '(alias)$': '$1es',\n '(octop)us$': '$1i',\n '(ax|test)is$': '$1es',\n '(us)$': '$1es',\n '([^s]+)$': '$1s',\n };\n var singular = {\n '(quiz)zes$': '$1',\n '(matr)ices$': '$1ix',\n '(vert|ind)ices$': '$1ex',\n '^(ox)en$': '$1',\n '(alias)es$': '$1',\n '(octop|vir)i$': '$1us',\n '(cris|ax|test)es$': '$1is',\n '(shoe)s$': '$1',\n '(o)es$': '$1',\n '(bus)es$': '$1',\n '([m|l])ice$': '$1ouse',\n '(x|ch|ss|sh)es$': '$1',\n '(m)ovies$': '$1ovie',\n '(s)eries$': '$1eries',\n '([^aeiouy]|qu)ies$': '$1y',\n '([lr])ves$': '$1f',\n '(tive)s$': '$1',\n '(hive)s$': '$1',\n '(li|wi|kni)ves$': '$1fe',\n '(shea|loa|lea|thie)ves$': '$1f',\n '(^analy)ses$': '$1sis',\n '((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$': '$1$2sis',\n '([ti])a$': '$1um',\n '(n)ews$': '$1ews',\n '(h|bl)ouses$': '$1ouse',\n '(corpse)s$': '$1',\n '(us)es$': '$1',\n s$: '',\n };\n var irregular: Record<string, any> = {\n move: 'moves',\n foot: 'feet',\n goose: 'geese',\n sex: 'sexes',\n child: 'children',\n man: 'men',\n tooth: 'teeth',\n person: 'people',\n };\n var uncountable = ['sheep', 'fish', 'deer', 'moose', 'series', 'species', 'money', 'rice', 'information', 'equipment'];\n\n // save some time in the case that singular and plural are the same\n if (uncountable.indexOf(txt.toLowerCase()) >= 0) return txt;\n\n // check for irregular forms\n for (const word in irregular) {\n let pattern;\n let replace;\n\n if (revert) {\n pattern = new RegExp(irregular[word] + '$', 'i');\n replace = word;\n } else {\n pattern = new RegExp(word + '$', 'i');\n replace = irregular[word];\n }\n if (pattern.test(txt)) return txt.replace(pattern, replace);\n }\n\n let array: Record<string, any>;\n if (revert) array = singular;\n else array = plural;\n\n // check for matches using regular expressions\n for (const reg in array) {\n var pattern2 = new RegExp(reg, 'i');\n if (pattern2.test(txt)) return txt.replace(pattern2, array[reg]);\n }\n return txt;\n};\n"],"sourceRoot":""}
|
package/package.json
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare enum ACTIVITY_THEMES {
|
|
2
|
+
ON_THE_LAND = "On the Land",
|
|
3
|
+
FAMILY_FUN = "Family Fun",
|
|
4
|
+
SOFT_ADVENTURE = "Soft Adventure",
|
|
5
|
+
ON_THE_WATER = "On the Water",
|
|
6
|
+
WELLNESS = "Wellness",
|
|
7
|
+
ART_AND_CULTURE = "Arts & Culture",
|
|
8
|
+
HISTORY = "History",
|
|
9
|
+
UNDER_WATER = "Under Water",
|
|
10
|
+
IN_THE_AIR = "In the Air",
|
|
11
|
+
ROMANCE = "Romance",
|
|
12
|
+
FOODIE_DELIGHTS = "Foodie Delights",
|
|
13
|
+
UNDER_GROUND = "Under Ground"
|
|
14
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ActivityPoint } from './ActivityPoint';
|
|
2
|
+
import { ACTIVITY_THEMES } from './ACTIVITY_THEMES';
|
|
3
|
+
export declare type Activity = {
|
|
4
|
+
id: number;
|
|
5
|
+
name: string;
|
|
6
|
+
supplierCode: string;
|
|
7
|
+
pickUpPoints: ActivityPoint[];
|
|
8
|
+
dropOffPoints: ActivityPoint[];
|
|
9
|
+
shortDescription: string;
|
|
10
|
+
themes: ACTIVITY_THEMES[];
|
|
11
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ActivityInfoImage } from './ActivityInfoImage';
|
|
2
|
+
import { ActivityInfoLocation } from './ActivityInfoLocation';
|
|
3
|
+
import { ACTIVITY_THEMES } from './ACTIVITY_THEMES';
|
|
4
|
+
export declare type ActivityInfo = {
|
|
5
|
+
name: string;
|
|
6
|
+
shortDescription: string;
|
|
7
|
+
fullDescription: string;
|
|
8
|
+
images: ActivityInfoImage[];
|
|
9
|
+
location: string;
|
|
10
|
+
departures: ActivityInfoLocation[];
|
|
11
|
+
destinations: ActivityInfoLocation[];
|
|
12
|
+
duration: number;
|
|
13
|
+
themes: ACTIVITY_THEMES[];
|
|
14
|
+
descriptions: any[];
|
|
15
|
+
comments: any[];
|
|
16
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export declare type AuthorizationResponse = {
|
|
2
|
+
settings: {
|
|
3
|
+
b2CPaymentWays: any[];
|
|
4
|
+
b2CPaymentMethods: number[];
|
|
5
|
+
name: string;
|
|
6
|
+
googleEnabled: boolean;
|
|
7
|
+
systemCurrency: string;
|
|
8
|
+
siteId: string;
|
|
9
|
+
salesId: number;
|
|
10
|
+
b2CId: number;
|
|
11
|
+
organizationId: number;
|
|
12
|
+
parentFirstLevelTOId: number;
|
|
13
|
+
managerName: string;
|
|
14
|
+
managerId: number;
|
|
15
|
+
managerNotification: boolean;
|
|
16
|
+
showCustomerCancellation: boolean;
|
|
17
|
+
withLogin: boolean;
|
|
18
|
+
allowMultiroomBooking: boolean;
|
|
19
|
+
showVisa: boolean;
|
|
20
|
+
showSupplierColumn: boolean;
|
|
21
|
+
showSupplierLogo: boolean;
|
|
22
|
+
showHotelNameColumn: boolean;
|
|
23
|
+
notRestrictChildrenCount: boolean;
|
|
24
|
+
allowSameTouristNames: boolean;
|
|
25
|
+
signUpAvailability: boolean;
|
|
26
|
+
signInAvailability: boolean;
|
|
27
|
+
signUpRequired: boolean;
|
|
28
|
+
isAutoPassword: boolean;
|
|
29
|
+
emaiValidation: boolean;
|
|
30
|
+
isInlineWindow: boolean;
|
|
31
|
+
sliderEffect: boolean;
|
|
32
|
+
allowFlexibleDatesSearch: boolean;
|
|
33
|
+
allowOnlyLatinForTuristName: boolean;
|
|
34
|
+
loyaltyEnabled: boolean;
|
|
35
|
+
voucherMode: string;
|
|
36
|
+
themeEnabled: boolean;
|
|
37
|
+
themeName: string;
|
|
38
|
+
showCompanyNameOnBankReceipt: boolean;
|
|
39
|
+
registrationPendingStatus: boolean;
|
|
40
|
+
notAllowSearchBeforeLogin: boolean;
|
|
41
|
+
showUpSell: boolean;
|
|
42
|
+
manuallyEnterLocations: boolean;
|
|
43
|
+
citiesAndRegionsInSeparateBlocks: boolean;
|
|
44
|
+
citiesAndRegionsInSameDropdown: boolean;
|
|
45
|
+
guestMemberLevelId: number;
|
|
46
|
+
};
|
|
47
|
+
token: string;
|
|
48
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { OfferPoint } from './OfferPoint';
|
|
2
|
+
export declare type Offer = {
|
|
3
|
+
offerKey: string;
|
|
4
|
+
taxesAndFeesIncluded: boolean;
|
|
5
|
+
salesTerms: [
|
|
6
|
+
{
|
|
7
|
+
type: string;
|
|
8
|
+
price: {
|
|
9
|
+
currency: string;
|
|
10
|
+
amount: number;
|
|
11
|
+
commission: {
|
|
12
|
+
currency: string;
|
|
13
|
+
amount: number;
|
|
14
|
+
percent: number;
|
|
15
|
+
};
|
|
16
|
+
taxesAndFees: [];
|
|
17
|
+
};
|
|
18
|
+
originalSupplierCurrency: string;
|
|
19
|
+
promoCodeApplied: boolean;
|
|
20
|
+
}
|
|
21
|
+
];
|
|
22
|
+
available: boolean;
|
|
23
|
+
nonRefundable: boolean;
|
|
24
|
+
date: string;
|
|
25
|
+
duration: number;
|
|
26
|
+
languages: [
|
|
27
|
+
{
|
|
28
|
+
langCode: string;
|
|
29
|
+
type: string;
|
|
30
|
+
}
|
|
31
|
+
];
|
|
32
|
+
startTimes: string[];
|
|
33
|
+
serviceName: string;
|
|
34
|
+
tariffName: string;
|
|
35
|
+
serviceCode: string;
|
|
36
|
+
pickUpPoints: OfferPoint[];
|
|
37
|
+
dropOffPoints: OfferPoint[];
|
|
38
|
+
availableTicketQuantity: [];
|
|
39
|
+
touristsQuantityRestrictions: {
|
|
40
|
+
minTourists: number;
|
|
41
|
+
maxTourists: number;
|
|
42
|
+
};
|
|
43
|
+
priceBreakDowns: [
|
|
44
|
+
{
|
|
45
|
+
touristType: string;
|
|
46
|
+
touristTypeId: number;
|
|
47
|
+
touristTypeName: string;
|
|
48
|
+
quantity: number;
|
|
49
|
+
price: {
|
|
50
|
+
currency: string;
|
|
51
|
+
amount: number;
|
|
52
|
+
originalCurrency: string;
|
|
53
|
+
originalAmount: number;
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
];
|
|
57
|
+
serviceDescription?: string;
|
|
58
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ACTIVITY_THEMES } from './ACTIVITY_THEMES';
|
|
2
|
+
import { Offer } from './Offer';
|
|
3
|
+
export declare type Product = {
|
|
4
|
+
info: {
|
|
5
|
+
id: number;
|
|
6
|
+
name: string;
|
|
7
|
+
};
|
|
8
|
+
shortDescription: string;
|
|
9
|
+
fullDescription: string;
|
|
10
|
+
themes: ACTIVITY_THEMES[];
|
|
11
|
+
supplierId: string;
|
|
12
|
+
activityCompanyName: string;
|
|
13
|
+
mainImage: string;
|
|
14
|
+
productType: string;
|
|
15
|
+
type: string;
|
|
16
|
+
transportationType: string;
|
|
17
|
+
offers: Offer[];
|
|
18
|
+
recommended: boolean;
|
|
19
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ACTIVITY_THEMES } from './ACTIVITY_THEMES';
|
|
2
|
+
import { Product } from './Product';
|
|
3
|
+
export declare type SearchActivitiesResponse = {
|
|
4
|
+
searchKey: string;
|
|
5
|
+
offersCount: number;
|
|
6
|
+
processed: boolean;
|
|
7
|
+
activityFilters: {
|
|
8
|
+
priceFrom: number;
|
|
9
|
+
priceTo: number;
|
|
10
|
+
activityNames: string[];
|
|
11
|
+
languages: string[];
|
|
12
|
+
dates: string[];
|
|
13
|
+
startTimeFrom: string;
|
|
14
|
+
startTimeTo: string;
|
|
15
|
+
durationFrom: number;
|
|
16
|
+
durationTo: number;
|
|
17
|
+
themes: ACTIVITY_THEMES[];
|
|
18
|
+
};
|
|
19
|
+
products: Product[];
|
|
20
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './ACTIVITY_THEMES';
|
|
2
|
+
export * from './Activity';
|
|
3
|
+
export * from './ActivityInfo';
|
|
4
|
+
export * from './ActivityInfoImage';
|
|
5
|
+
export * from './ActivityInfoLocation';
|
|
6
|
+
export * from './ActivityPoint';
|
|
7
|
+
export * from './AuthorizationResponse';
|
|
8
|
+
export * from './Offer';
|
|
9
|
+
export * from './OfferPoint';
|
|
10
|
+
export * from './Product';
|
|
11
|
+
export * from './SearchActivitiesResponse';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BookingRef } from './BookingRef';
|
|
2
|
+
import { BookingInformation } from './BookingInformation';
|
|
3
|
+
import { BookingContact } from './BookingContact';
|
|
4
|
+
import { BookingLocation } from './BookingLocation';
|
|
5
|
+
import { BookingSupplier } from './BookingSupplier';
|
|
6
|
+
export declare type Booking = BookingRef & {
|
|
7
|
+
description: string;
|
|
8
|
+
imageUrls: string[];
|
|
9
|
+
information: BookingInformation[];
|
|
10
|
+
contact: BookingContact;
|
|
11
|
+
locations: BookingLocation[];
|
|
12
|
+
supplier: BookingSupplier;
|
|
13
|
+
termsAndConditions: string | null;
|
|
14
|
+
isWishlisted: any | null;
|
|
15
|
+
disclaimer: any | null;
|
|
16
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
export declare type BookingPrice = {
|
|
2
2
|
value: number;
|
|
3
3
|
baseCurrency: string;
|
|
4
4
|
exchangeEnabled: boolean;
|
|
@@ -20,5 +20,4 @@ interface IBookingPrice {
|
|
|
20
20
|
usd: number;
|
|
21
21
|
glx: number;
|
|
22
22
|
};
|
|
23
|
-
}
|
|
24
|
-
export default IBookingPrice;
|
|
23
|
+
};
|
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { BookingSubCategory } from './BookingSubCategory';
|
|
2
|
+
import { BookingPrice } from './BookingPrice';
|
|
3
|
+
import { BookingLocation } from './BookingLocation';
|
|
4
|
+
export declare type BookingRef = {
|
|
5
5
|
id: string;
|
|
6
6
|
title: string;
|
|
7
7
|
subTitle: string;
|
|
8
8
|
city: string | null;
|
|
9
9
|
country: string | null;
|
|
10
10
|
thumbnail: string;
|
|
11
|
-
priceStartingAt:
|
|
12
|
-
minimumEarningValue?:
|
|
11
|
+
priceStartingAt: BookingPrice;
|
|
12
|
+
minimumEarningValue?: BookingPrice;
|
|
13
13
|
pointsDisclaimer: string;
|
|
14
14
|
categories: string[];
|
|
15
|
-
subCategories:
|
|
15
|
+
subCategories: BookingSubCategory[];
|
|
16
16
|
isAvailable: boolean;
|
|
17
17
|
purchaseStrategy: string;
|
|
18
18
|
checkoutStrategy: string;
|
|
19
|
-
geoLocation:
|
|
19
|
+
geoLocation: BookingLocation | null;
|
|
20
20
|
providerTranslationAttribution: {
|
|
21
21
|
image: string | null;
|
|
22
22
|
link: string | null;
|
|
23
23
|
};
|
|
24
|
-
}
|
|
25
|
-
export default IBookingRef;
|
|
24
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BookingRef } from './BookingRef';
|
|
2
|
+
import { BookingSearchResultAggregation } from './BookingSearchResultAggregation';
|
|
3
|
+
export declare type BookingSearchResult = {
|
|
4
|
+
aggregation: BookingSearchResultAggregation;
|
|
5
|
+
items: BookingRef[];
|
|
6
|
+
skip: number;
|
|
7
|
+
take: number;
|
|
8
|
+
parameters: any;
|
|
9
|
+
total: number;
|
|
10
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BookingPrice } from './BookingPrice';
|
|
2
|
+
declare type BookingSearchResultAggregationCity = {
|
|
3
|
+
label: string;
|
|
4
|
+
count: number;
|
|
5
|
+
};
|
|
6
|
+
declare type BookingSearchResultAggregationCategory = {
|
|
7
|
+
label: string;
|
|
8
|
+
count: number;
|
|
9
|
+
};
|
|
10
|
+
export declare type BookingSearchResultAggregation = {
|
|
11
|
+
price: {
|
|
12
|
+
max: BookingPrice;
|
|
13
|
+
min: BookingPrice;
|
|
14
|
+
};
|
|
15
|
+
cities: BookingSearchResultAggregationCity[];
|
|
16
|
+
categories: BookingSearchResultAggregationCategory[];
|
|
17
|
+
};
|
|
18
|
+
export {};
|