rsl-api-106 106.34.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/README.md +116 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +36 -0
- package/lib/mutations/addBaby.d.ts +2 -0
- package/lib/mutations/addBaby.js +20 -0
- package/lib/mutations/addCustomerDepositAccountPayments.d.ts +2 -0
- package/lib/mutations/addCustomerDepositAccountPayments.js +20 -0
- package/lib/mutations/addDiscountCode.d.ts +2 -0
- package/lib/mutations/addDiscountCode.js +20 -0
- package/lib/mutations/addFidelityPointToProduct.d.ts +2 -0
- package/lib/mutations/addFidelityPointToProduct.js +20 -0
- package/lib/mutations/addGiftCode.d.ts +2 -0
- package/lib/mutations/addGiftCode.js +20 -0
- package/lib/mutations/addObservation.d.ts +2 -0
- package/lib/mutations/addObservation.js +20 -0
- package/lib/mutations/addOccupant.d.ts +2 -0
- package/lib/mutations/addOccupant.js +20 -0
- package/lib/mutations/addPartnerCustomerAccount.d.ts +2 -0
- package/lib/mutations/addPartnerCustomerAccount.js +20 -0
- package/lib/mutations/addPartnerToCart.d.ts +2 -0
- package/lib/mutations/addPartnerToCart.js +20 -0
- package/lib/mutations/addProductToBooking.d.ts +2 -0
- package/lib/mutations/addProductToBooking.js +20 -0
- package/lib/mutations/addProductToOccupant.d.ts +2 -0
- package/lib/mutations/addProductToOccupant.js +20 -0
- package/lib/mutations/cancelFerryBooking.d.ts +2 -0
- package/lib/mutations/cancelFerryBooking.js +20 -0
- package/lib/mutations/changePassword.d.ts +2 -0
- package/lib/mutations/changePassword.js +17 -0
- package/lib/mutations/chooseFerryProposal.d.ts +2 -0
- package/lib/mutations/chooseFerryProposal.js +20 -0
- package/lib/mutations/chooseProposalFromKeys.d.ts +2 -0
- package/lib/mutations/chooseProposalFromKeys.js +20 -0
- package/lib/mutations/chooseRoundTripProposals.d.ts +2 -0
- package/lib/mutations/chooseRoundTripProposals.js +20 -0
- package/lib/mutations/confirmFastCheckout.d.ts +2 -0
- package/lib/mutations/confirmFastCheckout.js +20 -0
- package/lib/mutations/createCustomerAccount.d.ts +2 -0
- package/lib/mutations/createCustomerAccount.js +20 -0
- package/lib/mutations/createServiceCustomerAccount.d.ts +2 -0
- package/lib/mutations/createServiceCustomerAccount.js +20 -0
- package/lib/mutations/disableEnablePartnerCustomerAccount.d.ts +2 -0
- package/lib/mutations/disableEnablePartnerCustomerAccount.js +20 -0
- package/lib/mutations/disableServiceCustomerAccount.d.ts +2 -0
- package/lib/mutations/disableServiceCustomerAccount.js +20 -0
- package/lib/mutations/doFastCheckin.d.ts +2 -0
- package/lib/mutations/doFastCheckin.js +20 -0
- package/lib/mutations/doFastCheckout.d.ts +2 -0
- package/lib/mutations/doFastCheckout.js +20 -0
- package/lib/mutations/expireSession.d.ts +2 -0
- package/lib/mutations/expireSession.js +14 -0
- package/lib/mutations/facebookLogin.d.ts +2 -0
- package/lib/mutations/facebookLogin.js +20 -0
- package/lib/mutations/index.d.ts +69 -0
- package/lib/mutations/index.js +140 -0
- package/lib/mutations/login.d.ts +2 -0
- package/lib/mutations/login.js +20 -0
- package/lib/mutations/loginAnyCustomerType.d.ts +2 -0
- package/lib/mutations/loginAnyCustomerType.js +20 -0
- package/lib/mutations/loginETOMode.d.ts +2 -0
- package/lib/mutations/loginETOMode.js +20 -0
- package/lib/mutations/loginHash256.d.ts +2 -0
- package/lib/mutations/loginHash256.js +20 -0
- package/lib/mutations/loginPartner.d.ts +2 -0
- package/lib/mutations/loginPartner.js +20 -0
- package/lib/mutations/logout.d.ts +2 -0
- package/lib/mutations/logout.js +14 -0
- package/lib/mutations/payOnStoredCreditCard.d.ts +2 -0
- package/lib/mutations/payOnStoredCreditCard.js +20 -0
- package/lib/mutations/redirectPaymentGatewayForAmount.d.ts +2 -0
- package/lib/mutations/redirectPaymentGatewayForAmount.js +17 -0
- package/lib/mutations/redirectPaymentGatewayForCart.d.ts +2 -0
- package/lib/mutations/redirectPaymentGatewayForCart.js +17 -0
- package/lib/mutations/redirectPaymentGatewayForInstalment.d.ts +2 -0
- package/lib/mutations/redirectPaymentGatewayForInstalment.js +17 -0
- package/lib/mutations/removeBookingFromCart.d.ts +2 -0
- package/lib/mutations/removeBookingFromCart.js +20 -0
- package/lib/mutations/removeCartPayments.d.ts +2 -0
- package/lib/mutations/removeCartPayments.js +14 -0
- package/lib/mutations/removeCustomerAccount.d.ts +2 -0
- package/lib/mutations/removeCustomerAccount.js +14 -0
- package/lib/mutations/removeDiscountCode.d.ts +2 -0
- package/lib/mutations/removeDiscountCode.js +19 -0
- package/lib/mutations/removeGiftCode.d.ts +2 -0
- package/lib/mutations/removeGiftCode.js +20 -0
- package/lib/mutations/removeOccupant.d.ts +2 -0
- package/lib/mutations/removeOccupant.js +20 -0
- package/lib/mutations/removeStay.d.ts +2 -0
- package/lib/mutations/removeStay.js +20 -0
- package/lib/mutations/resetCart.d.ts +2 -0
- package/lib/mutations/resetCart.js +19 -0
- package/lib/mutations/resetPendingFerryBooking.d.ts +2 -0
- package/lib/mutations/resetPendingFerryBooking.js +19 -0
- package/lib/mutations/saveCart.d.ts +2 -0
- package/lib/mutations/saveCart.js +20 -0
- package/lib/mutations/saveFerryBooking.d.ts +2 -0
- package/lib/mutations/saveFerryBooking.js +20 -0
- package/lib/mutations/setSessionLanguage.d.ts +2 -0
- package/lib/mutations/setSessionLanguage.js +17 -0
- package/lib/mutations/switchToPartnerConvention.d.ts +2 -0
- package/lib/mutations/switchToPartnerConvention.js +20 -0
- package/lib/mutations/unlockBooking.d.ts +2 -0
- package/lib/mutations/unlockBooking.js +14 -0
- package/lib/mutations/updateBookingCriterias.d.ts +2 -0
- package/lib/mutations/updateBookingCriterias.js +17 -0
- package/lib/mutations/updateCartPaymentMethod.d.ts +2 -0
- package/lib/mutations/updateCartPaymentMethod.js +20 -0
- package/lib/mutations/updateCartPaymentPlans.d.ts +2 -0
- package/lib/mutations/updateCartPaymentPlans.js +20 -0
- package/lib/mutations/updateCustomerAccount.d.ts +2 -0
- package/lib/mutations/updateCustomerAccount.js +20 -0
- package/lib/mutations/updateCustomerBooking.d.ts +2 -0
- package/lib/mutations/updateCustomerBooking.js +20 -0
- package/lib/mutations/updateFerryAccommodations.d.ts +2 -0
- package/lib/mutations/updateFerryAccommodations.js +20 -0
- package/lib/mutations/updateFerryBooking.d.ts +2 -0
- package/lib/mutations/updateFerryBooking.js +20 -0
- package/lib/mutations/updateFerryTravelersInformation.d.ts +2 -0
- package/lib/mutations/updateFerryTravelersInformation.js +20 -0
- package/lib/mutations/updateOccupant.d.ts +2 -0
- package/lib/mutations/updateOccupant.js +20 -0
- package/lib/mutations/updateOccupantSkisetMeasurements.d.ts +2 -0
- package/lib/mutations/updateOccupantSkisetMeasurements.js +20 -0
- package/lib/mutations/updatePartnerAccount.d.ts +2 -0
- package/lib/mutations/updatePartnerAccount.js +24 -0
- package/lib/mutations/updatePartnerCustomerAccount.d.ts +2 -0
- package/lib/mutations/updatePartnerCustomerAccount.js +20 -0
- package/lib/mutations/updatePartnerPaymentPlans.d.ts +2 -0
- package/lib/mutations/updatePartnerPaymentPlans.js +20 -0
- package/lib/mutations/updatePayerPaymentPlans.d.ts +2 -0
- package/lib/mutations/updatePayerPaymentPlans.js +20 -0
- package/lib/mutations/updatePrimaryOccupant.d.ts +2 -0
- package/lib/mutations/updatePrimaryOccupant.js +20 -0
- package/lib/mutations/updateProductCriterias.d.ts +2 -0
- package/lib/mutations/updateProductCriterias.js +20 -0
- package/lib/mutations/updateRoomFromMap.d.ts +2 -0
- package/lib/mutations/updateRoomFromMap.js +20 -0
- package/lib/mutations/updateServiceCustomerAccount.d.ts +2 -0
- package/lib/mutations/updateServiceCustomerAccount.js +20 -0
- package/lib/mutations/updateStayTime.d.ts +2 -0
- package/lib/mutations/updateStayTime.js +20 -0
- package/lib/mutations/updateTotalOccupants.d.ts +2 -0
- package/lib/mutations/updateTotalOccupants.js +20 -0
- package/lib/mutations/validateLyraPayment.d.ts +1 -0
- package/lib/mutations/validateLyraPayment.js +21 -0
- package/lib/outputs/accommodation.d.ts +1 -0
- package/lib/outputs/accommodation.js +16 -0
- package/lib/outputs/accommodationProducts.d.ts +1 -0
- package/lib/outputs/accommodationProducts.js +9 -0
- package/lib/outputs/addonCategory.d.ts +1 -0
- package/lib/outputs/addonCategory.js +9 -0
- package/lib/outputs/address.d.ts +1 -0
- package/lib/outputs/address.js +25 -0
- package/lib/outputs/alternativeProposalRules.d.ts +2 -0
- package/lib/outputs/alternativeProposalRules.js +24 -0
- package/lib/outputs/amount.d.ts +1 -0
- package/lib/outputs/amount.js +7 -0
- package/lib/outputs/availableRoomFeature.d.ts +1 -0
- package/lib/outputs/availableRoomFeature.js +9 -0
- package/lib/outputs/bookingDocuments.d.ts +1 -0
- package/lib/outputs/bookingDocuments.js +9 -0
- package/lib/outputs/bookingProducts.d.ts +1 -0
- package/lib/outputs/bookingProducts.js +9 -0
- package/lib/outputs/brochure.d.ts +1 -0
- package/lib/outputs/brochure.js +7 -0
- package/lib/outputs/brochures.d.ts +1 -0
- package/lib/outputs/brochures.js +13 -0
- package/lib/outputs/calendarPeriod.d.ts +1 -0
- package/lib/outputs/calendarPeriod.js +13 -0
- package/lib/outputs/campaign.d.ts +1 -0
- package/lib/outputs/campaign.js +9 -0
- package/lib/outputs/campaigns.d.ts +1 -0
- package/lib/outputs/campaigns.js +13 -0
- package/lib/outputs/car.d.ts +1 -0
- package/lib/outputs/car.js +8 -0
- package/lib/outputs/cart.d.ts +2 -0
- package/lib/outputs/cart.js +18 -0
- package/lib/outputs/civilities.d.ts +1 -0
- package/lib/outputs/civilities.js +13 -0
- package/lib/outputs/civility.d.ts +1 -0
- package/lib/outputs/civility.js +7 -0
- package/lib/outputs/clientType.d.ts +1 -0
- package/lib/outputs/clientType.js +7 -0
- package/lib/outputs/contact.d.ts +1 -0
- package/lib/outputs/contact.js +7 -0
- package/lib/outputs/contractFolder.d.ts +1 -0
- package/lib/outputs/contractFolder.js +11 -0
- package/lib/outputs/coreTrip.d.ts +1 -0
- package/lib/outputs/coreTrip.js +9 -0
- package/lib/outputs/countries.d.ts +1 -0
- package/lib/outputs/countries.js +13 -0
- package/lib/outputs/country.d.ts +1 -0
- package/lib/outputs/country.js +7 -0
- package/lib/outputs/creditCard.d.ts +1 -0
- package/lib/outputs/creditCard.js +8 -0
- package/lib/outputs/criteria.d.ts +1 -0
- package/lib/outputs/criteria.js +19 -0
- package/lib/outputs/criteriaChoice.d.ts +1 -0
- package/lib/outputs/criteriaChoice.js +7 -0
- package/lib/outputs/criteriaValue.d.ts +1 -0
- package/lib/outputs/criteriaValue.js +39 -0
- package/lib/outputs/criterias.d.ts +1 -0
- package/lib/outputs/criterias.js +9 -0
- package/lib/outputs/crossing.d.ts +1 -0
- package/lib/outputs/crossing.js +12 -0
- package/lib/outputs/customerBooking.d.ts +2 -0
- package/lib/outputs/customerBooking.js +133 -0
- package/lib/outputs/customerDepositAccount.d.ts +1 -0
- package/lib/outputs/customerDepositAccount.js +13 -0
- package/lib/outputs/customerDepositAccounts.d.ts +1 -0
- package/lib/outputs/customerDepositAccounts.js +9 -0
- package/lib/outputs/customerLoyaltyPoints.d.ts +1 -0
- package/lib/outputs/customerLoyaltyPoints.js +6 -0
- package/lib/outputs/customerType.d.ts +1 -0
- package/lib/outputs/customerType.js +7 -0
- package/lib/outputs/datePeriod.d.ts +1 -0
- package/lib/outputs/datePeriod.js +7 -0
- package/lib/outputs/discount.d.ts +1 -0
- package/lib/outputs/discount.js +16 -0
- package/lib/outputs/distribution.d.ts +1 -0
- package/lib/outputs/distribution.js +10 -0
- package/lib/outputs/distributionType.d.ts +1 -0
- package/lib/outputs/distributionType.js +6 -0
- package/lib/outputs/ferryBooking.d.ts +1 -0
- package/lib/outputs/ferryBooking.js +37 -0
- package/lib/outputs/ferryProduct.d.ts +1 -0
- package/lib/outputs/ferryProduct.js +7 -0
- package/lib/outputs/ferryProposal.d.ts +1 -0
- package/lib/outputs/ferryProposal.js +26 -0
- package/lib/outputs/ferryProposalTariff.d.ts +1 -0
- package/lib/outputs/ferryProposalTariff.js +7 -0
- package/lib/outputs/ferryVehicleFuel.d.ts +1 -0
- package/lib/outputs/ferryVehicleFuel.js +7 -0
- package/lib/outputs/fidelity.d.ts +4 -0
- package/lib/outputs/fidelity.js +23 -0
- package/lib/outputs/file.d.ts +1 -0
- package/lib/outputs/file.js +10 -0
- package/lib/outputs/getMyLogin.d.ts +1 -0
- package/lib/outputs/getMyLogin.js +6 -0
- package/lib/outputs/giftCode.d.ts +1 -0
- package/lib/outputs/giftCode.js +17 -0
- package/lib/outputs/index.d.ts +9 -0
- package/lib/outputs/index.js +19 -0
- package/lib/outputs/language.d.ts +1 -0
- package/lib/outputs/language.js +13 -0
- package/lib/outputs/languages.d.ts +1 -0
- package/lib/outputs/languages.js +9 -0
- package/lib/outputs/latLng.d.ts +1 -0
- package/lib/outputs/latLng.js +7 -0
- package/lib/outputs/lineItem.d.ts +2 -0
- package/lib/outputs/lineItem.js +52 -0
- package/lib/outputs/mapSelectorData.d.ts +2 -0
- package/lib/outputs/mapSelectorData.js +29 -0
- package/lib/outputs/mapUh.d.ts +1 -0
- package/lib/outputs/mapUh.js +18 -0
- package/lib/outputs/measurements.d.ts +1 -0
- package/lib/outputs/measurements.js +30 -0
- package/lib/outputs/moduleFacebookActivated.d.ts +1 -0
- package/lib/outputs/moduleFacebookActivated.js +6 -0
- package/lib/outputs/nationality.d.ts +1 -0
- package/lib/outputs/nationality.js +7 -0
- package/lib/outputs/neobookingTranslations.d.ts +1 -0
- package/lib/outputs/neobookingTranslations.js +9 -0
- package/lib/outputs/occupant.d.ts +2 -0
- package/lib/outputs/occupant.js +56 -0
- package/lib/outputs/occupantMeasurement.d.ts +1 -0
- package/lib/outputs/occupantMeasurement.js +7 -0
- package/lib/outputs/occupantProducts.d.ts +1 -0
- package/lib/outputs/occupantProducts.js +9 -0
- package/lib/outputs/option.d.ts +1 -0
- package/lib/outputs/option.js +8 -0
- package/lib/outputs/ownerLease.d.ts +2 -0
- package/lib/outputs/ownerLease.js +17 -0
- package/lib/outputs/ownerLeasePeriod.d.ts +1 -0
- package/lib/outputs/ownerLeasePeriod.js +10 -0
- package/lib/outputs/ownerLot.d.ts +1 -0
- package/lib/outputs/ownerLot.js +8 -0
- package/lib/outputs/partner.d.ts +1 -0
- package/lib/outputs/partner.js +13 -0
- package/lib/outputs/partnerContact.d.ts +1 -0
- package/lib/outputs/partnerContact.js +9 -0
- package/lib/outputs/partnerCustomerInfo.d.ts +1 -0
- package/lib/outputs/partnerCustomerInfo.js +12 -0
- package/lib/outputs/passenger.d.ts +1 -0
- package/lib/outputs/passenger.js +21 -0
- package/lib/outputs/passengerType.d.ts +1 -0
- package/lib/outputs/passengerType.js +7 -0
- package/lib/outputs/payment.d.ts +1 -0
- package/lib/outputs/payment.js +14 -0
- package/lib/outputs/paymentDue.d.ts +1 -0
- package/lib/outputs/paymentDue.js +29 -0
- package/lib/outputs/paymentMethod.d.ts +2 -0
- package/lib/outputs/paymentMethod.js +26 -0
- package/lib/outputs/paymentMethodOption.d.ts +1 -0
- package/lib/outputs/paymentMethodOption.js +7 -0
- package/lib/outputs/paymentPlans.d.ts +1 -0
- package/lib/outputs/paymentPlans.js +29 -0
- package/lib/outputs/pendingFerryBooking.d.ts +1 -0
- package/lib/outputs/pendingFerryBooking.js +9 -0
- package/lib/outputs/port.d.ts +1 -0
- package/lib/outputs/port.js +7 -0
- package/lib/outputs/postCodeApiDetail.d.ts +1 -0
- package/lib/outputs/postCodeApiDetail.js +6 -0
- package/lib/outputs/postCodeApiSimple.d.ts +1 -0
- package/lib/outputs/postCodeApiSimple.js +6 -0
- package/lib/outputs/primaryOccupant.d.ts +1 -0
- package/lib/outputs/primaryOccupant.js +26 -0
- package/lib/outputs/privilegeCard.d.ts +1 -0
- package/lib/outputs/privilegeCard.js +16 -0
- package/lib/outputs/privilegeCardType.d.ts +1 -0
- package/lib/outputs/privilegeCardType.js +7 -0
- package/lib/outputs/privilegeCardTypes.d.ts +1 -0
- package/lib/outputs/privilegeCardTypes.js +13 -0
- package/lib/outputs/product.d.ts +1 -0
- package/lib/outputs/product.js +79 -0
- package/lib/outputs/productByCategory.d.ts +1 -0
- package/lib/outputs/productByCategory.js +11 -0
- package/lib/outputs/productCategories.d.ts +1 -0
- package/lib/outputs/productCategories.js +10 -0
- package/lib/outputs/productOption.d.ts +1 -0
- package/lib/outputs/productOption.js +7 -0
- package/lib/outputs/property.d.ts +3 -0
- package/lib/outputs/property.js +36 -0
- package/lib/outputs/proposal.d.ts +2 -0
- package/lib/outputs/proposal.js +50 -0
- package/lib/outputs/proposalByProperty.d.ts +1 -0
- package/lib/outputs/proposalByProperty.js +13 -0
- package/lib/outputs/relationship.d.ts +1 -0
- package/lib/outputs/relationship.js +7 -0
- package/lib/outputs/renewPasswordDemand.d.ts +1 -0
- package/lib/outputs/renewPasswordDemand.js +6 -0
- package/lib/outputs/requestBrochure.d.ts +1 -0
- package/lib/outputs/requestBrochure.js +6 -0
- package/lib/outputs/resalysVersion.d.ts +1 -0
- package/lib/outputs/resalysVersion.js +6 -0
- package/lib/outputs/roomFeature.d.ts +2 -0
- package/lib/outputs/roomFeature.js +17 -0
- package/lib/outputs/roomInfo.d.ts +1 -0
- package/lib/outputs/roomInfo.js +8 -0
- package/lib/outputs/roomTypeCategories.d.ts +1 -0
- package/lib/outputs/roomTypeCategories.js +13 -0
- package/lib/outputs/roomTypes.d.ts +1 -0
- package/lib/outputs/roomTypes.js +22 -0
- package/lib/outputs/salesChannelMode.d.ts +1 -0
- package/lib/outputs/salesChannelMode.js +6 -0
- package/lib/outputs/service.d.ts +1 -0
- package/lib/outputs/service.js +58 -0
- package/lib/outputs/session.d.ts +1 -0
- package/lib/outputs/session.js +6 -0
- package/lib/outputs/sessionActivated.d.ts +1 -0
- package/lib/outputs/sessionActivated.js +6 -0
- package/lib/outputs/stay.d.ts +1 -0
- package/lib/outputs/stay.js +25 -0
- package/lib/outputs/stayMapInfos.d.ts +1 -0
- package/lib/outputs/stayMapInfos.js +8 -0
- package/lib/outputs/supplier.d.ts +1 -0
- package/lib/outputs/supplier.js +7 -0
- package/lib/outputs/trailer.d.ts +1 -0
- package/lib/outputs/trailer.js +15 -0
- package/lib/outputs/trailerCategory.d.ts +1 -0
- package/lib/outputs/trailerCategory.js +7 -0
- package/lib/outputs/translation.d.ts +1 -0
- package/lib/outputs/translation.js +7 -0
- package/lib/outputs/translations.d.ts +1 -0
- package/lib/outputs/translations.js +9 -0
- package/lib/outputs/trip.d.ts +1 -0
- package/lib/outputs/trip.js +41 -0
- package/lib/outputs/user.d.ts +1 -0
- package/lib/outputs/user.js +18 -0
- package/lib/outputs/vehicle.d.ts +1 -0
- package/lib/outputs/vehicle.js +13 -0
- package/lib/outputs/vehicleCategory.d.ts +1 -0
- package/lib/outputs/vehicleCategory.js +8 -0
- package/lib/queries/checkApiAlive.d.ts +2 -0
- package/lib/queries/checkApiAlive.js +14 -0
- package/lib/queries/checkModuleFacebookActivated.d.ts +2 -0
- package/lib/queries/checkModuleFacebookActivated.js +14 -0
- package/lib/queries/checkSessionActivated.d.ts +2 -0
- package/lib/queries/checkSessionActivated.js +14 -0
- package/lib/queries/checkValidLogin.d.ts +2 -0
- package/lib/queries/checkValidLogin.js +17 -0
- package/lib/queries/getAccommodationProducts.d.ts +2 -0
- package/lib/queries/getAccommodationProducts.js +18 -0
- package/lib/queries/getAllOccupantProductsAllAgeRanges.d.ts +2 -0
- package/lib/queries/getAllOccupantProductsAllAgeRanges.js +18 -0
- package/lib/queries/getAlternativeProposalRulesForContractFolder.d.ts +2 -0
- package/lib/queries/getAlternativeProposalRulesForContractFolder.js +18 -0
- package/lib/queries/getAvailForRoomTypes.d.ts +2 -0
- package/lib/queries/getAvailForRoomTypes.js +33 -0
- package/lib/queries/getAvailableRoomFeatures.d.ts +2 -0
- package/lib/queries/getAvailableRoomFeatures.js +18 -0
- package/lib/queries/getBookingDocuments.d.ts +2 -0
- package/lib/queries/getBookingDocuments.js +20 -0
- package/lib/queries/getBookingPaymentPlans.d.ts +2 -0
- package/lib/queries/getBookingPaymentPlans.js +18 -0
- package/lib/queries/getBookingProducts.d.ts +2 -0
- package/lib/queries/getBookingProducts.js +18 -0
- package/lib/queries/getBookingRecordCriterias.d.ts +2 -0
- package/lib/queries/getBookingRecordCriterias.js +17 -0
- package/lib/queries/getBrochures.d.ts +2 -0
- package/lib/queries/getBrochures.js +17 -0
- package/lib/queries/getCampaigns.d.ts +2 -0
- package/lib/queries/getCampaigns.js +17 -0
- package/lib/queries/getCart.d.ts +2 -0
- package/lib/queries/getCart.js +19 -0
- package/lib/queries/getCivilities.d.ts +2 -0
- package/lib/queries/getCivilities.js +17 -0
- package/lib/queries/getCountries.d.ts +2 -0
- package/lib/queries/getCountries.js +17 -0
- package/lib/queries/getCriteriaInformation.d.ts +2 -0
- package/lib/queries/getCriteriaInformation.js +20 -0
- package/lib/queries/getCurrentCustomerAccount.d.ts +2 -0
- package/lib/queries/getCurrentCustomerAccount.js +19 -0
- package/lib/queries/getCustomerBookings.d.ts +2 -0
- package/lib/queries/getCustomerBookings.js +20 -0
- package/lib/queries/getCustomerCriterias.d.ts +2 -0
- package/lib/queries/getCustomerCriterias.js +18 -0
- package/lib/queries/getCustomerDepositAccounts.d.ts +2 -0
- package/lib/queries/getCustomerDepositAccounts.js +17 -0
- package/lib/queries/getCustomerGiftCodes.d.ts +2 -0
- package/lib/queries/getCustomerGiftCodes.js +19 -0
- package/lib/queries/getCustomerLoyaltyPoints.d.ts +2 -0
- package/lib/queries/getCustomerLoyaltyPoints.js +17 -0
- package/lib/queries/getCustomerPrivilegeCards.d.ts +2 -0
- package/lib/queries/getCustomerPrivilegeCards.js +19 -0
- package/lib/queries/getFerryAddonCategories.d.ts +2 -0
- package/lib/queries/getFerryAddonCategories.js +19 -0
- package/lib/queries/getFerryAvailableAccommodations.d.ts +2 -0
- package/lib/queries/getFerryAvailableAccommodations.js +22 -0
- package/lib/queries/getFerryCars.d.ts +2 -0
- package/lib/queries/getFerryCars.js +19 -0
- package/lib/queries/getFerryCivilities.d.ts +2 -0
- package/lib/queries/getFerryCivilities.js +19 -0
- package/lib/queries/getFerryCrossings.d.ts +2 -0
- package/lib/queries/getFerryCrossings.js +20 -0
- package/lib/queries/getFerryNationalities.d.ts +2 -0
- package/lib/queries/getFerryNationalities.js +19 -0
- package/lib/queries/getFerryPorts.d.ts +2 -0
- package/lib/queries/getFerryPorts.js +19 -0
- package/lib/queries/getFerryProducts.d.ts +2 -0
- package/lib/queries/getFerryProducts.js +19 -0
- package/lib/queries/getFerryProposals.d.ts +2 -0
- package/lib/queries/getFerryProposals.js +21 -0
- package/lib/queries/getFerryTrailerCategories.d.ts +2 -0
- package/lib/queries/getFerryTrailerCategories.js +19 -0
- package/lib/queries/getFerryVehicleCategories.d.ts +2 -0
- package/lib/queries/getFerryVehicleCategories.js +19 -0
- package/lib/queries/getFerryVehicleFuels.d.ts +2 -0
- package/lib/queries/getFerryVehicleFuels.js +19 -0
- package/lib/queries/getFidelityLogs.d.ts +2 -0
- package/lib/queries/getFidelityLogs.js +17 -0
- package/lib/queries/getFidelityRules.d.ts +2 -0
- package/lib/queries/getFidelityRules.js +17 -0
- package/lib/queries/getLanguages.d.ts +2 -0
- package/lib/queries/getLanguages.js +17 -0
- package/lib/queries/getLyraFormToken.d.ts +2 -0
- package/lib/queries/getLyraFormToken.js +26 -0
- package/lib/queries/getMapSelectorData.d.ts +2 -0
- package/lib/queries/getMapSelectorData.js +18 -0
- package/lib/queries/getMyLogin.d.ts +2 -0
- package/lib/queries/getMyLogin.js +17 -0
- package/lib/queries/getNeobookingTranslations.d.ts +2 -0
- package/lib/queries/getNeobookingTranslations.js +24 -0
- package/lib/queries/getOccupantProducts.d.ts +2 -0
- package/lib/queries/getOccupantProducts.js +18 -0
- package/lib/queries/getOccupantsFromCurrentCustomer.d.ts +2 -0
- package/lib/queries/getOccupantsFromCurrentCustomer.js +20 -0
- package/lib/queries/getOwnerLeases.d.ts +1 -0
- package/lib/queries/getOwnerLeases.js +17 -0
- package/lib/queries/getOwnerRoomPlanningData.d.ts +2 -0
- package/lib/queries/getOwnerRoomPlanningData.js +20 -0
- package/lib/queries/getPartner.d.ts +2 -0
- package/lib/queries/getPartner.js +17 -0
- package/lib/queries/getPartnerCustomers.d.ts +2 -0
- package/lib/queries/getPartnerCustomers.js +19 -0
- package/lib/queries/getPaymentMethods.d.ts +2 -0
- package/lib/queries/getPaymentMethods.js +17 -0
- package/lib/queries/getPaymentPlans.d.ts +2 -0
- package/lib/queries/getPaymentPlans.js +18 -0
- package/lib/queries/getPendingFerryBooking.d.ts +2 -0
- package/lib/queries/getPendingFerryBooking.js +19 -0
- package/lib/queries/getPostCodeApiDetail.d.ts +2 -0
- package/lib/queries/getPostCodeApiDetail.js +18 -0
- package/lib/queries/getPostCodeApiSimple.d.ts +2 -0
- package/lib/queries/getPostCodeApiSimple.js +18 -0
- package/lib/queries/getPrivilegeCardTypes.d.ts +2 -0
- package/lib/queries/getPrivilegeCardTypes.js +17 -0
- package/lib/queries/getProductCategories.d.ts +2 -0
- package/lib/queries/getProductCategories.js +17 -0
- package/lib/queries/getProperties.d.ts +4 -0
- package/lib/queries/getProperties.js +47 -0
- package/lib/queries/getProposalByRoomTypes.d.ts +2 -0
- package/lib/queries/getProposalByRoomTypes.js +18 -0
- package/lib/queries/getProposals.d.ts +2 -0
- package/lib/queries/getProposals.js +18 -0
- package/lib/queries/getProposalsByKeys.d.ts +2 -0
- package/lib/queries/getProposalsByKeys.js +18 -0
- package/lib/queries/getProposalsByProperties.d.ts +2 -0
- package/lib/queries/getProposalsByProperties.js +20 -0
- package/lib/queries/getRelationships.d.ts +2 -0
- package/lib/queries/getRelationships.js +19 -0
- package/lib/queries/getResalysErrorList.d.ts +2 -0
- package/lib/queries/getResalysErrorList.js +19 -0
- package/lib/queries/getResalysVersion.d.ts +2 -0
- package/lib/queries/getResalysVersion.js +14 -0
- package/lib/queries/getRoomTypeCategories.d.ts +2 -0
- package/lib/queries/getRoomTypeCategories.js +18 -0
- package/lib/queries/getRoomTypes.d.ts +2 -0
- package/lib/queries/getRoomTypes.js +24 -0
- package/lib/queries/getSalesChannelMode.d.ts +2 -0
- package/lib/queries/getSalesChannelMode.js +14 -0
- package/lib/queries/getSession.d.ts +2 -0
- package/lib/queries/getSession.js +14 -0
- package/lib/queries/getSkisetMeasurements.d.ts +2 -0
- package/lib/queries/getSkisetMeasurements.js +17 -0
- package/lib/queries/getTranslations.d.ts +2 -0
- package/lib/queries/getTranslations.js +18 -0
- package/lib/queries/getUserLanguage.d.ts +2 -0
- package/lib/queries/getUserLanguage.js +16 -0
- package/lib/queries/hasProductsForOccupant.d.ts +2 -0
- package/lib/queries/hasProductsForOccupant.js +17 -0
- package/lib/queries/index.d.ts +74 -0
- package/lib/queries/index.js +152 -0
- package/lib/queries/renewPassword.d.ts +2 -0
- package/lib/queries/renewPassword.js +18 -0
- package/lib/queries/requestBrochure.d.ts +2 -0
- package/lib/queries/requestBrochure.js +18 -0
- package/lib/types/index.d.ts +2882 -0
- package/lib/types/index.js +46 -0
- package/package.json +54 -0
package/README.md
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img width="100px" src="https://gitlab.dev.sequoiasoft.com/resalys/npm-graphql-versioning/-/raw/dev/.github/images/favicon512x512-npm.png" align="center" alt=":package: rsl-api" />
|
|
3
|
+
<h2 align="center">:package: rsl-api</h2>
|
|
4
|
+
<p align="center">TypeScript NPM Module for Resalys's GraphQL API</p>
|
|
5
|
+
</p>
|
|
6
|
+
|
|
7
|
+
# Getting started
|
|
8
|
+
|
|
9
|
+
## Introduction
|
|
10
|
+
|
|
11
|
+
The rsl-api package is here to assist you in the development of your JavaScript project, providing all the necessary queries, mutations, and types for your project.
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm install rsl-api-105
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## ApolloClient Initialization
|
|
20
|
+
|
|
21
|
+
Before starting, make sure you correctly initialize your apollo client with the corresponding HttpOptions.
|
|
22
|
+
This package gives you a simple and efficient way to define your Apollo Client.
|
|
23
|
+
|
|
24
|
+
For a advanced ApolloClient, please refer to the [Apollo Graphql Documentation](https://www.apollographql.com/docs/).
|
|
25
|
+
|
|
26
|
+
```js
|
|
27
|
+
export const initClient = (option: HttpOptions, responseLoggerHandler?: (operation: Operation) => void) : ApolloClient<NormalizedCacheObject>
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
| Parameter value | Type | Description | Default value |
|
|
31
|
+
| ----------------------- | -------------------------------- | --------------------------------------- | ------------- |
|
|
32
|
+
| `httpOptions` | `HttpOptions` | **Required** - ApolloClient HttpOptions | |
|
|
33
|
+
| `responseLoggerHandler` | `(operation: Operation) => void` | **Optional** - Response Logger Handler | `undefined` |
|
|
34
|
+
|
|
35
|
+
The responseLoggerHandler parameter allow you to handle all executed GraphQL operations.
|
|
36
|
+
|
|
37
|
+
### HttpOptions Configuration
|
|
38
|
+
|
|
39
|
+
This package also gives you a easy way to get basics HttpOptions if you don't know what to put in.
|
|
40
|
+
|
|
41
|
+
```js
|
|
42
|
+
export const getBaseHttpOptions = (uri: string): HttpOptions => {
|
|
43
|
+
return {
|
|
44
|
+
uri: uri,
|
|
45
|
+
headers: {
|
|
46
|
+
"Content-Type": "application/json;charset=utf-8",
|
|
47
|
+
"Access-Control-Allow-Origin": "*",
|
|
48
|
+
"Access-Control-Allow-Credentials": "true",
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Example of usage using ReactJS
|
|
55
|
+
|
|
56
|
+
```js
|
|
57
|
+
// apollo/client Package
|
|
58
|
+
import { ApolloProvider, useQuery, Operation } from "@apollo/client";
|
|
59
|
+
|
|
60
|
+
// rsl-api Package
|
|
61
|
+
import { initClient, getBaseHttpOptions } from "rsl-api";
|
|
62
|
+
import { getCartQuery } from "rsl-api/lib/queries";
|
|
63
|
+
|
|
64
|
+
// Custom Hooks
|
|
65
|
+
import { useSession } from "@hooks";
|
|
66
|
+
|
|
67
|
+
// Apollo Client HttpOptions
|
|
68
|
+
const httpOptions = {
|
|
69
|
+
uri: "https://yourdomain.com/rsl/graphql",
|
|
70
|
+
headers: {
|
|
71
|
+
"Content-Type": "application/json;charset=utf-8",
|
|
72
|
+
"Access-Control-Allow-Origin": "*",
|
|
73
|
+
"Access-Control-Allow-Credentials": "true",
|
|
74
|
+
},
|
|
75
|
+
};
|
|
76
|
+
//or
|
|
77
|
+
//const httpOptions = getBaseHttpOptions("https://yourdomain.com/rsl/graphql");
|
|
78
|
+
|
|
79
|
+
// Apollo Client
|
|
80
|
+
const responseLoggerHandler = (operation) => {
|
|
81
|
+
//if url parameter "debug" equal "true", then display the operation in the console
|
|
82
|
+
new URLSearchParams(window.location.search).get("debug") === "true" &&
|
|
83
|
+
console.info(operation);
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
const client = initClient(httpOptions, responseLoggerHandler);
|
|
87
|
+
|
|
88
|
+
<ApolloProvider client={client}>
|
|
89
|
+
<MyCartComponent />
|
|
90
|
+
</ApolloProvider>;
|
|
91
|
+
|
|
92
|
+
const MyCartComponent = () => {
|
|
93
|
+
const { session } = useSession();
|
|
94
|
+
const { data, error, loading } = useQuery(getCartQuery(), {
|
|
95
|
+
variables: { session: { name: session } },
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
if (error) return <div>{error.message}</div>;
|
|
99
|
+
|
|
100
|
+
return loading ? (
|
|
101
|
+
<div>Query loading...</div>
|
|
102
|
+
) : (
|
|
103
|
+
<div>
|
|
104
|
+
{data?.getCart?.cart?.reservations?.map((r, i) => {
|
|
105
|
+
return <div>...</div>;
|
|
106
|
+
})}
|
|
107
|
+
</div>
|
|
108
|
+
);
|
|
109
|
+
};
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
## Errors
|
|
113
|
+
|
|
114
|
+
| Error | Type | Solution |
|
|
115
|
+
| ------------------------------------------------------------------ | -------- | ---------------------------------------------- |
|
|
116
|
+
| [CORS](https://developer.mozilla.org/fr/docs/Web/HTTP/CORS/Errors) | `server` | Enable CORS from our Infrastructure department |
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ApolloClient, HttpOptions, NormalizedCacheObject, Operation } from "@apollo/client";
|
|
2
|
+
export declare const initClient: (httpOptions: HttpOptions, responseLoggerHandler?: ((operation: Operation) => void) | undefined) => ApolloClient<NormalizedCacheObject>;
|
|
3
|
+
export declare const getBaseHttpOptions: (uri: string) => HttpOptions;
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getBaseHttpOptions = exports.initClient = void 0;
|
|
4
|
+
const client_1 = require("@apollo/client");
|
|
5
|
+
const responseLogger = (handler) => {
|
|
6
|
+
const _responseLogger = new client_1.ApolloLink((operation, forward) => {
|
|
7
|
+
return forward(operation).map((result) => {
|
|
8
|
+
handler(operation);
|
|
9
|
+
return result;
|
|
10
|
+
});
|
|
11
|
+
});
|
|
12
|
+
return _responseLogger;
|
|
13
|
+
};
|
|
14
|
+
const initClient = (httpOptions, responseLoggerHandler) => {
|
|
15
|
+
const httpLink = (0, client_1.createHttpLink)(httpOptions);
|
|
16
|
+
const links = responseLoggerHandler
|
|
17
|
+
? [responseLogger(responseLoggerHandler), httpLink]
|
|
18
|
+
: [httpLink];
|
|
19
|
+
const apolloClient = new client_1.ApolloClient({
|
|
20
|
+
link: client_1.ApolloLink.from(links),
|
|
21
|
+
cache: new client_1.InMemoryCache(),
|
|
22
|
+
});
|
|
23
|
+
return apolloClient;
|
|
24
|
+
};
|
|
25
|
+
exports.initClient = initClient;
|
|
26
|
+
const getBaseHttpOptions = (uri) => {
|
|
27
|
+
return {
|
|
28
|
+
uri: uri,
|
|
29
|
+
headers: {
|
|
30
|
+
"Content-Type": "application/json;charset=utf-8",
|
|
31
|
+
"Access-Control-Allow-Origin": "*",
|
|
32
|
+
"Access-Control-Allow-Credentials": "true",
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
exports.getBaseHttpOptions = getBaseHttpOptions;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.addBabyMutation = void 0;
|
|
4
|
+
const client_1 = require("@apollo/client");
|
|
5
|
+
const cart_1 = require("../outputs/cart");
|
|
6
|
+
const addBabyMutation = () => {
|
|
7
|
+
return (0, client_1.gql) `
|
|
8
|
+
mutation addBaby($session: Session!, $input: AddBabyInput!) {
|
|
9
|
+
addBaby(
|
|
10
|
+
session: $session,
|
|
11
|
+
input: $input
|
|
12
|
+
) {
|
|
13
|
+
cart {
|
|
14
|
+
${cart_1.cartOutput}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
`;
|
|
19
|
+
};
|
|
20
|
+
exports.addBabyMutation = addBabyMutation;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.addCustomerDepositAccountPaymentsMutation = void 0;
|
|
4
|
+
const client_1 = require("@apollo/client");
|
|
5
|
+
const customerBooking_1 = require("../outputs/customerBooking");
|
|
6
|
+
const addCustomerDepositAccountPaymentsMutation = () => {
|
|
7
|
+
return (0, client_1.gql) `
|
|
8
|
+
mutation addCustomerDepositAccountPayments($session: Session!, $input: CustomerDepositAccountPaymentsInput) {
|
|
9
|
+
addCustomerDepositAccountPayments(
|
|
10
|
+
session: $session,
|
|
11
|
+
input: $input
|
|
12
|
+
) {
|
|
13
|
+
reservation {
|
|
14
|
+
${customerBooking_1.customerBookingOutput}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
`;
|
|
19
|
+
};
|
|
20
|
+
exports.addCustomerDepositAccountPaymentsMutation = addCustomerDepositAccountPaymentsMutation;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.addDiscountCodeMutation = void 0;
|
|
4
|
+
const client_1 = require("@apollo/client");
|
|
5
|
+
const cart_1 = require("../outputs/cart");
|
|
6
|
+
const addDiscountCodeMutation = () => {
|
|
7
|
+
return (0, client_1.gql) `
|
|
8
|
+
mutation addDiscountCode($session: Session!, $input: DiscountCodeInput!) {
|
|
9
|
+
addDiscountCode(
|
|
10
|
+
session: $session,
|
|
11
|
+
input: $input
|
|
12
|
+
) {
|
|
13
|
+
cart {
|
|
14
|
+
${cart_1.cartOutput}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
`;
|
|
19
|
+
};
|
|
20
|
+
exports.addDiscountCodeMutation = addDiscountCodeMutation;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.addFidelityPointToProductMutation = void 0;
|
|
4
|
+
const client_1 = require("@apollo/client");
|
|
5
|
+
const cart_1 = require("../outputs/cart");
|
|
6
|
+
const addFidelityPointToProductMutation = () => {
|
|
7
|
+
return (0, client_1.gql) `
|
|
8
|
+
mutation addFidelityPointToProduct($session: Session!, $input: FidelityPointToProductInput!) {
|
|
9
|
+
addFidelityPointToProduct(
|
|
10
|
+
session: $session,
|
|
11
|
+
input: $input
|
|
12
|
+
) {
|
|
13
|
+
cart {
|
|
14
|
+
${cart_1.cartOutput}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
`;
|
|
19
|
+
};
|
|
20
|
+
exports.addFidelityPointToProductMutation = addFidelityPointToProductMutation;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.addGiftCodeMutation = void 0;
|
|
4
|
+
const client_1 = require("@apollo/client");
|
|
5
|
+
const cart_1 = require("../outputs/cart");
|
|
6
|
+
const addGiftCodeMutation = () => {
|
|
7
|
+
return (0, client_1.gql) `
|
|
8
|
+
mutation addGiftCode($session: Session!, $input: GiftCodeInput) {
|
|
9
|
+
addGiftCode(
|
|
10
|
+
session: $session,
|
|
11
|
+
input: $input
|
|
12
|
+
) {
|
|
13
|
+
cart {
|
|
14
|
+
${cart_1.cartOutput}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
`;
|
|
19
|
+
};
|
|
20
|
+
exports.addGiftCodeMutation = addGiftCodeMutation;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.addObservationMutation = void 0;
|
|
4
|
+
const client_1 = require("@apollo/client");
|
|
5
|
+
const cart_1 = require("../outputs/cart");
|
|
6
|
+
const addObservationMutation = () => {
|
|
7
|
+
return (0, client_1.gql) `
|
|
8
|
+
mutation addObservation($session: Session!, $input: ObservationInput!) {
|
|
9
|
+
addObservation(
|
|
10
|
+
session: $session,
|
|
11
|
+
input: $input
|
|
12
|
+
) {
|
|
13
|
+
cart {
|
|
14
|
+
${cart_1.cartOutput}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
`;
|
|
19
|
+
};
|
|
20
|
+
exports.addObservationMutation = addObservationMutation;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.addOccupantMutation = void 0;
|
|
4
|
+
const client_1 = require("@apollo/client");
|
|
5
|
+
const cart_1 = require("../outputs/cart");
|
|
6
|
+
const addOccupantMutation = () => {
|
|
7
|
+
return (0, client_1.gql) `
|
|
8
|
+
mutation addOccupant($session: Session!, $input: AddOccupantInput!) {
|
|
9
|
+
addOccupant(
|
|
10
|
+
session: $session,
|
|
11
|
+
input: $input
|
|
12
|
+
) {
|
|
13
|
+
cart {
|
|
14
|
+
${cart_1.cartOutput}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
`;
|
|
19
|
+
};
|
|
20
|
+
exports.addOccupantMutation = addOccupantMutation;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.addPartnerCustomerAccountMutation = void 0;
|
|
4
|
+
const client_1 = require("@apollo/client");
|
|
5
|
+
const service_1 = require("../outputs/service");
|
|
6
|
+
const addPartnerCustomerAccountMutation = () => {
|
|
7
|
+
return (0, client_1.gql) `
|
|
8
|
+
mutation addPartnerCustomerAccount($session: Session!, $input: AddPartnerCustomerAccountInput) {
|
|
9
|
+
addPartnerCustomerAccount(
|
|
10
|
+
session: $session,
|
|
11
|
+
input: $input
|
|
12
|
+
) {
|
|
13
|
+
service {
|
|
14
|
+
${service_1.serviceOutput}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
`;
|
|
19
|
+
};
|
|
20
|
+
exports.addPartnerCustomerAccountMutation = addPartnerCustomerAccountMutation;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.addPartnerToCartMutation = void 0;
|
|
4
|
+
const client_1 = require("@apollo/client");
|
|
5
|
+
const service_1 = require("../outputs/service");
|
|
6
|
+
const addPartnerToCartMutation = () => {
|
|
7
|
+
return (0, client_1.gql) `
|
|
8
|
+
mutation addPartnerToCart($session: Session!, $input: PartnerToCartInput!) {
|
|
9
|
+
addPartnerToCart(
|
|
10
|
+
session: $session,
|
|
11
|
+
input: $input
|
|
12
|
+
) {
|
|
13
|
+
service {
|
|
14
|
+
${service_1.serviceOutput}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
`;
|
|
19
|
+
};
|
|
20
|
+
exports.addPartnerToCartMutation = addPartnerToCartMutation;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.addProductToBookingMutation = void 0;
|
|
4
|
+
const client_1 = require("@apollo/client");
|
|
5
|
+
const cart_1 = require("../outputs/cart");
|
|
6
|
+
const addProductToBookingMutation = () => {
|
|
7
|
+
return (0, client_1.gql) `
|
|
8
|
+
mutation addProductToBooking($session: Session!, $input: ProductToBookingInput!) {
|
|
9
|
+
addProductToBooking(
|
|
10
|
+
session: $session,
|
|
11
|
+
input: $input
|
|
12
|
+
) {
|
|
13
|
+
cart {
|
|
14
|
+
${cart_1.cartOutput}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
`;
|
|
19
|
+
};
|
|
20
|
+
exports.addProductToBookingMutation = addProductToBookingMutation;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.addProductToOccupantMutation = void 0;
|
|
4
|
+
const client_1 = require("@apollo/client");
|
|
5
|
+
const cart_1 = require("../outputs/cart");
|
|
6
|
+
const addProductToOccupantMutation = () => {
|
|
7
|
+
return (0, client_1.gql) `
|
|
8
|
+
mutation addProductToOccupant($session: Session!, $input: [ProductToOccupantInput]!) {
|
|
9
|
+
addProductToOccupant(
|
|
10
|
+
session: $session,
|
|
11
|
+
input: $input
|
|
12
|
+
) {
|
|
13
|
+
cart {
|
|
14
|
+
${cart_1.cartOutput}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
`;
|
|
19
|
+
};
|
|
20
|
+
exports.addProductToOccupantMutation = addProductToOccupantMutation;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.cancelFerryBookingMutation = void 0;
|
|
4
|
+
const client_1 = require("@apollo/client");
|
|
5
|
+
const cart_1 = require("../outputs/cart");
|
|
6
|
+
const cancelFerryBookingMutation = () => {
|
|
7
|
+
return (0, client_1.gql) `
|
|
8
|
+
mutation cancelFerryBooking($session: Session!, $input: CancelFerryBookingInput) {
|
|
9
|
+
cancelFerryBooking(
|
|
10
|
+
session: $session,
|
|
11
|
+
input: $input
|
|
12
|
+
) {
|
|
13
|
+
cart {
|
|
14
|
+
${cart_1.cartOutput}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
`;
|
|
19
|
+
};
|
|
20
|
+
exports.cancelFerryBookingMutation = cancelFerryBookingMutation;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.changePasswordMutation = void 0;
|
|
4
|
+
const client_1 = require("@apollo/client");
|
|
5
|
+
const changePasswordMutation = () => {
|
|
6
|
+
return (0, client_1.gql) `
|
|
7
|
+
mutation changePassword($session: Session!, $input: ChangePasswordInput!) {
|
|
8
|
+
changePassword(
|
|
9
|
+
session: $session,
|
|
10
|
+
input: $input
|
|
11
|
+
) {
|
|
12
|
+
message
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
`;
|
|
16
|
+
};
|
|
17
|
+
exports.changePasswordMutation = changePasswordMutation;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.chooseFerryProposalMutation = void 0;
|
|
4
|
+
const client_1 = require("@apollo/client");
|
|
5
|
+
const ferryBooking_1 = require("../outputs/ferryBooking");
|
|
6
|
+
const chooseFerryProposalMutation = () => {
|
|
7
|
+
return (0, client_1.gql) `
|
|
8
|
+
mutation chooseFerryProposal($session: Session!, $input: ChooseFerryProposalInput!) {
|
|
9
|
+
chooseFerryProposal(
|
|
10
|
+
session: $session,
|
|
11
|
+
input: $input
|
|
12
|
+
) {
|
|
13
|
+
ferryBooking {
|
|
14
|
+
${ferryBooking_1.ferryBookingOutput}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
`;
|
|
19
|
+
};
|
|
20
|
+
exports.chooseFerryProposalMutation = chooseFerryProposalMutation;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.chooseProposalFromKeysMutation = void 0;
|
|
4
|
+
const client_1 = require("@apollo/client");
|
|
5
|
+
const cart_1 = require("../outputs/cart");
|
|
6
|
+
const chooseProposalFromKeysMutation = () => {
|
|
7
|
+
return (0, client_1.gql) `
|
|
8
|
+
mutation chooseProposalFromKeys($session: Session!, $input: ChooseProposalFromKeysInput!) {
|
|
9
|
+
chooseProposalFromKeys(
|
|
10
|
+
session: $session,
|
|
11
|
+
input: $input
|
|
12
|
+
) {
|
|
13
|
+
cart {
|
|
14
|
+
${cart_1.cartOutput}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
`;
|
|
19
|
+
};
|
|
20
|
+
exports.chooseProposalFromKeysMutation = chooseProposalFromKeysMutation;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.chooseRoundTripProposalsMutation = void 0;
|
|
4
|
+
const client_1 = require("@apollo/client");
|
|
5
|
+
const ferryBooking_1 = require("../outputs/ferryBooking");
|
|
6
|
+
const chooseRoundTripProposalsMutation = () => {
|
|
7
|
+
return (0, client_1.gql) `
|
|
8
|
+
mutation chooseRoundTripProposals($session: Session!, $input: ChooseRoundTripProposalsInput!) {
|
|
9
|
+
chooseRoundTripProposals(
|
|
10
|
+
session: $session,
|
|
11
|
+
input: $input
|
|
12
|
+
) {
|
|
13
|
+
ferryBooking {
|
|
14
|
+
${ferryBooking_1.ferryBookingOutput}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
`;
|
|
19
|
+
};
|
|
20
|
+
exports.chooseRoundTripProposalsMutation = chooseRoundTripProposalsMutation;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.confirmFastCheckoutMutation = void 0;
|
|
4
|
+
const client_1 = require("@apollo/client");
|
|
5
|
+
const cart_1 = require("../outputs/cart");
|
|
6
|
+
const confirmFastCheckoutMutation = () => {
|
|
7
|
+
return (0, client_1.gql) `
|
|
8
|
+
mutation confirmFastCheckout($session: Session!, $input: ConfirmFastCheckoutInput) {
|
|
9
|
+
confirmFastCheckout(
|
|
10
|
+
session: $session,
|
|
11
|
+
input: $input
|
|
12
|
+
) {
|
|
13
|
+
cart {
|
|
14
|
+
${cart_1.cartOutput}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
`;
|
|
19
|
+
};
|
|
20
|
+
exports.confirmFastCheckoutMutation = confirmFastCheckoutMutation;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createCustomerAccountMutation = void 0;
|
|
4
|
+
const client_1 = require("@apollo/client");
|
|
5
|
+
const service_1 = require("../outputs/service");
|
|
6
|
+
const createCustomerAccountMutation = () => {
|
|
7
|
+
return (0, client_1.gql) `
|
|
8
|
+
mutation createCustomerAccount($session: Session!, $input: CreateCustomerAccountInput) {
|
|
9
|
+
createCustomerAccount(
|
|
10
|
+
session: $session,
|
|
11
|
+
input: $input
|
|
12
|
+
) {
|
|
13
|
+
service {
|
|
14
|
+
${service_1.serviceOutput}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
`;
|
|
19
|
+
};
|
|
20
|
+
exports.createCustomerAccountMutation = createCustomerAccountMutation;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createServiceCustomerAccountMutation = void 0;
|
|
4
|
+
const client_1 = require("@apollo/client");
|
|
5
|
+
const service_1 = require("../outputs/service");
|
|
6
|
+
const createServiceCustomerAccountMutation = () => {
|
|
7
|
+
return (0, client_1.gql) `
|
|
8
|
+
mutation createServiceCustomerAccount($session: Session!, $input: CreateServiceCustomerAccountInput) {
|
|
9
|
+
createServiceCustomerAccount(
|
|
10
|
+
session: $session,
|
|
11
|
+
input: $input
|
|
12
|
+
) {
|
|
13
|
+
service {
|
|
14
|
+
${service_1.serviceOutput}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
`;
|
|
19
|
+
};
|
|
20
|
+
exports.createServiceCustomerAccountMutation = createServiceCustomerAccountMutation;
|