swoop-common 2.2.76 → 2.2.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/generated/core/exports.d.ts +3 -0
- package/dist/api/generated/core/index.d.ts +3 -0
- package/dist/api/generated/core/models/Currency.d.ts +1 -0
- package/dist/api/generated/core/models/Currency.js +1 -0
- package/dist/api/generated/core/models/DTOComponentCreate.d.ts +1 -0
- package/dist/api/generated/core/models/DTOComponentEntity.d.ts +1 -0
- package/dist/api/generated/core/models/DTOComponentRead.d.ts +1 -0
- package/dist/api/generated/core/models/DTOComponentUpdate.d.ts +1 -0
- package/dist/api/generated/core/models/DTOPublicSnapshotCreate.d.ts +6 -2
- package/dist/api/generated/core/models/DTOPublicSnapshotEntity.d.ts +6 -2
- package/dist/api/generated/core/models/DTOPublicSnapshotRead.d.ts +6 -2
- package/dist/api/generated/core/models/Destination.d.ts +1 -1
- package/dist/api/generated/core/models/Destination.js +1 -1
- package/dist/api/generated/core/models/IsTwinCentre.d.ts +1 -0
- package/dist/api/generated/core/models/PublicPaymentLead.d.ts +4 -0
- package/dist/api/generated/core/models/PublicSnapShotPayment.d.ts +8 -0
- package/dist/api/generated/core/models/PublicSnapshotTraveller.d.ts +1 -0
- package/dist/api/generated/core/models/QuoteOptions.d.ts +1 -0
- package/dist/api/generated/swoop/exports.d.ts +17 -1
- package/dist/api/generated/swoop/index.d.ts +17 -1
- package/dist/api/generated/swoop/models/Address.d.ts +2 -2
- package/dist/api/generated/swoop/models/Address_jsonld.d.ts +2 -2
- package/dist/api/generated/swoop/models/BookingGroup.d.ts +7 -0
- package/dist/api/generated/swoop/models/BookingGroup_jsonld.d.ts +8 -0
- package/dist/api/generated/swoop/models/CabinData.d.ts +9 -0
- package/dist/api/generated/swoop/models/CabinData_jsonld.d.ts +10 -0
- package/dist/api/generated/swoop/models/CabinType.d.ts +4 -0
- package/dist/api/generated/swoop/models/CabinType_jsonld.d.ts +5 -0
- package/dist/api/generated/swoop/models/Country.d.ts +1 -1
- package/dist/api/generated/swoop/models/Country_jsonld.d.ts +1 -1
- package/dist/api/generated/swoop/models/CustomerLookup.d.ts +2 -1
- package/dist/api/generated/swoop/models/CustomerLookupCXPerson.d.ts +4 -0
- package/dist/api/generated/swoop/models/CustomerLookupCXPerson_jsonld.d.ts +5 -0
- package/dist/api/generated/swoop/models/CustomerLookupEnquiry.d.ts +11 -0
- package/dist/api/generated/swoop/models/CustomerLookupEnquiry_jsonld.d.ts +12 -0
- package/dist/api/generated/swoop/models/CustomerLookupSalesPerson.d.ts +4 -0
- package/dist/api/generated/swoop/models/CustomerLookupSalesPerson_jsonld.d.ts +5 -0
- package/dist/api/generated/swoop/models/CustomerLookup_jsonld.d.ts +2 -1
- package/dist/api/generated/swoop/models/DayByDay.d.ts +8 -0
- package/dist/api/generated/swoop/models/DayByDayType.d.ts +6 -0
- package/dist/api/generated/swoop/models/DayByDayType_jsonld.d.ts +6 -5
- package/dist/api/generated/swoop/models/DayByDay_jsonld.d.ts +9 -0
- package/dist/api/generated/swoop/models/Departure.d.ts +2 -1
- package/dist/api/generated/swoop/models/Departure_jsonld.d.ts +2 -1
- package/dist/api/generated/swoop/models/Discount.d.ts +6 -0
- package/dist/api/generated/swoop/models/Discount_jsonld.d.ts +7 -0
- package/dist/api/generated/swoop/models/EmergencyDetails.d.ts +1 -1
- package/dist/api/generated/swoop/models/EmergencyDetails_jsonld.d.ts +1 -1
- package/dist/api/generated/swoop/models/Enquiry.d.ts +4 -1
- package/dist/api/generated/swoop/models/EnquiryPerson.d.ts +2 -2
- package/dist/api/generated/swoop/models/EnquiryPerson_jsonld.d.ts +2 -2
- package/dist/api/generated/swoop/models/EnquiryStatus_jsonld.d.ts +3 -0
- package/dist/api/generated/swoop/models/Enquiry_jsonld.d.ts +4 -1
- package/dist/api/generated/swoop/models/Itinerary_ItinerarySaveInput.d.ts +2 -1
- package/dist/api/generated/swoop/models/Itinerary_ItinerarySaveInput_jsonld.d.ts +2 -1
- package/dist/api/generated/swoop/models/Itinerary_ItinerarySaveOutput.d.ts +2 -2
- package/dist/api/generated/swoop/models/Itinerary_ItinerarySaveOutput_jsonld.d.ts +2 -2
- package/dist/api/generated/swoop/models/Partner.d.ts +7 -0
- package/dist/api/generated/swoop/models/Partner_jsonld.d.ts +7 -0
- package/dist/api/generated/swoop/models/Passport.d.ts +3 -3
- package/dist/api/generated/swoop/models/Passport_jsonld.d.ts +3 -3
- package/dist/api/generated/swoop/models/Person.d.ts +1 -1
- package/dist/api/generated/swoop/models/Person_jsonld.d.ts +2 -0
- package/dist/api/generated/swoop/models/TravellerGroup.d.ts +5 -5
- package/dist/api/generated/swoop/models/TravellerGroup_jsonld.d.ts +5 -5
- package/dist/api/generated/swoop/models/TripVariant.d.ts +2 -2
- package/dist/api/generated/swoop/models/TripVariant_jsonld.d.ts +2 -2
- package/dist/api/generated/swoop/services/SwoopService.d.ts +110 -24
- package/dist/api/generated/swoop/services/SwoopService.js +113 -16
- package/dist/api/specsgen.js +22 -0
- package/dist/rendering/renderers/ComponentPicker.d.ts +1 -0
- package/package.json +10 -4
- package/dist/api/generated/itinerary/core/ApiError.d.ts +0 -10
- package/dist/api/generated/itinerary/core/ApiError.js +0 -11
- package/dist/api/generated/itinerary/core/ApiRequestOptions.d.ts +0 -13
- package/dist/api/generated/itinerary/core/ApiResult.d.ts +0 -7
- package/dist/api/generated/itinerary/core/CancelablePromise.d.ts +0 -20
- package/dist/api/generated/itinerary/core/CancelablePromise.js +0 -111
- package/dist/api/generated/itinerary/core/OpenAPI.d.ts +0 -16
- package/dist/api/generated/itinerary/core/OpenAPI.js +0 -11
- package/dist/api/generated/itinerary/core/request.d.ts +0 -30
- package/dist/api/generated/itinerary/core/request.js +0 -271
- package/dist/api/generated/itinerary/exports.d.ts +0 -0
- package/dist/api/generated/itinerary/exports.js +0 -2
- package/dist/api/generated/itinerary/index.d.ts +0 -103
- package/dist/api/generated/itinerary/index.js +0 -19
- package/dist/api/generated/itinerary/models/Amendment.d.ts +0 -8
- package/dist/api/generated/itinerary/models/AssignedPassenger.d.ts +0 -7
- package/dist/api/generated/itinerary/models/AssignedTravellerGroup.d.ts +0 -6
- package/dist/api/generated/itinerary/models/B64StringQueryParam.d.ts +0 -4
- package/dist/api/generated/itinerary/models/BookingStatus.d.ts +0 -7
- package/dist/api/generated/itinerary/models/BookingStatus.js +0 -12
- package/dist/api/generated/itinerary/models/BranchId.d.ts +0 -1
- package/dist/api/generated/itinerary/models/BranchTag.d.ts +0 -1
- package/dist/api/generated/itinerary/models/Branches.d.ts +0 -12
- package/dist/api/generated/itinerary/models/ComponentDescription.d.ts +0 -5
- package/dist/api/generated/itinerary/models/ComponentFAQ.d.ts +0 -4
- package/dist/api/generated/itinerary/models/ComponentId.d.ts +0 -1
- package/dist/api/generated/itinerary/models/ComponentIdPathParam.d.ts +0 -5
- package/dist/api/generated/itinerary/models/ComponentInstance.d.ts +0 -28
- package/dist/api/generated/itinerary/models/ComponentNotes.d.ts +0 -9
- package/dist/api/generated/itinerary/models/ComponentRevisionGroupId.d.ts +0 -1
- package/dist/api/generated/itinerary/models/ComponentState.d.ts +0 -5
- package/dist/api/generated/itinerary/models/ComponentState.js +0 -10
- package/dist/api/generated/itinerary/models/Currency.d.ts +0 -12
- package/dist/api/generated/itinerary/models/Currency.js +0 -17
- package/dist/api/generated/itinerary/models/DTOBranchCreate.d.ts +0 -8
- package/dist/api/generated/itinerary/models/DTOBranchEntity.d.ts +0 -11
- package/dist/api/generated/itinerary/models/DTOBranchRead.d.ts +0 -11
- package/dist/api/generated/itinerary/models/DTOBranchUpdate.d.ts +0 -4
- package/dist/api/generated/itinerary/models/DTOComponentCreate.d.ts +0 -30
- package/dist/api/generated/itinerary/models/DTOComponentCreate.js +0 -1
- package/dist/api/generated/itinerary/models/DTOComponentEntity.d.ts +0 -37
- package/dist/api/generated/itinerary/models/DTOComponentEntity.js +0 -1
- package/dist/api/generated/itinerary/models/DTOComponentRead.d.ts +0 -37
- package/dist/api/generated/itinerary/models/DTOComponentRead.js +0 -1
- package/dist/api/generated/itinerary/models/DTOComponentUpdate.d.ts +0 -25
- package/dist/api/generated/itinerary/models/DTOComponentUpdate.js +0 -1
- package/dist/api/generated/itinerary/models/DTOItineraryCreate.d.ts +0 -16
- package/dist/api/generated/itinerary/models/DTOItineraryCreate.js +0 -1
- package/dist/api/generated/itinerary/models/DTOItineraryEntity.d.ts +0 -25
- package/dist/api/generated/itinerary/models/DTOItineraryEntity.js +0 -1
- package/dist/api/generated/itinerary/models/DTOItineraryRead.d.ts +0 -25
- package/dist/api/generated/itinerary/models/DTOItineraryRead.js +0 -1
- package/dist/api/generated/itinerary/models/DTOItineraryUpdate.d.ts +0 -16
- package/dist/api/generated/itinerary/models/DTOItineraryUpdate.js +0 -1
- package/dist/api/generated/itinerary/models/DTORegionCreate.d.ts +0 -8
- package/dist/api/generated/itinerary/models/DTORegionCreate.js +0 -1
- package/dist/api/generated/itinerary/models/DTORegionEntity.d.ts +0 -12
- package/dist/api/generated/itinerary/models/DTORegionEntity.js +0 -1
- package/dist/api/generated/itinerary/models/DTORegionRead.d.ts +0 -12
- package/dist/api/generated/itinerary/models/DTORegionRead.js +0 -1
- package/dist/api/generated/itinerary/models/DTORegionUpdate.d.ts +0 -8
- package/dist/api/generated/itinerary/models/DTORegionUpdate.js +0 -1
- package/dist/api/generated/itinerary/models/DTOSnapshotCreate.d.ts +0 -8
- package/dist/api/generated/itinerary/models/DTOSnapshotCreate.js +0 -1
- package/dist/api/generated/itinerary/models/DTOSnapshotEntity.d.ts +0 -12
- package/dist/api/generated/itinerary/models/DTOSnapshotEntity.js +0 -1
- package/dist/api/generated/itinerary/models/DTOSnapshotRead.d.ts +0 -12
- package/dist/api/generated/itinerary/models/DTOSnapshotRead.js +0 -1
- package/dist/api/generated/itinerary/models/DTOSnapshotUpdate.d.ts +0 -6
- package/dist/api/generated/itinerary/models/DTOSnapshotUpdate.js +0 -1
- package/dist/api/generated/itinerary/models/DTOSwooperCreate.d.ts +0 -16
- package/dist/api/generated/itinerary/models/DTOSwooperCreate.js +0 -1
- package/dist/api/generated/itinerary/models/DTOSwooperEntity.d.ts +0 -20
- package/dist/api/generated/itinerary/models/DTOSwooperEntity.js +0 -1
- package/dist/api/generated/itinerary/models/DTOSwooperRead.d.ts +0 -20
- package/dist/api/generated/itinerary/models/DTOSwooperRead.js +0 -1
- package/dist/api/generated/itinerary/models/DTOSwooperUpdate.d.ts +0 -16
- package/dist/api/generated/itinerary/models/DTOSwooperUpdate.js +0 -1
- package/dist/api/generated/itinerary/models/DTOTemplateCreate.d.ts +0 -11
- package/dist/api/generated/itinerary/models/DTOTemplateCreate.js +0 -1
- package/dist/api/generated/itinerary/models/DTOTemplateEntity.d.ts +0 -17
- package/dist/api/generated/itinerary/models/DTOTemplateEntity.js +0 -1
- package/dist/api/generated/itinerary/models/DTOTemplateRead.d.ts +0 -17
- package/dist/api/generated/itinerary/models/DTOTemplateRead.js +0 -1
- package/dist/api/generated/itinerary/models/DTOTemplateUpdate.d.ts +0 -7
- package/dist/api/generated/itinerary/models/DTOTemplateUpdate.js +0 -1
- package/dist/api/generated/itinerary/models/Destination.d.ts +0 -5
- package/dist/api/generated/itinerary/models/Destination.js +0 -10
- package/dist/api/generated/itinerary/models/Discount.d.ts +0 -10
- package/dist/api/generated/itinerary/models/EnquiryId.d.ts +0 -1
- package/dist/api/generated/itinerary/models/EnquiryId.js +0 -1
- package/dist/api/generated/itinerary/models/EnquiryIdPathParam.d.ts +0 -5
- package/dist/api/generated/itinerary/models/EnquiryIdPathParam.js +0 -1
- package/dist/api/generated/itinerary/models/EnquiryIdQueryParam.d.ts +0 -1
- package/dist/api/generated/itinerary/models/EnquiryIdQueryParam.js +0 -1
- package/dist/api/generated/itinerary/models/Error.d.ts +0 -4
- package/dist/api/generated/itinerary/models/Error.js +0 -1
- package/dist/api/generated/itinerary/models/Fee.d.ts +0 -10
- package/dist/api/generated/itinerary/models/Fee.js +0 -1
- package/dist/api/generated/itinerary/models/Field.d.ts +0 -4
- package/dist/api/generated/itinerary/models/Field.js +0 -1
- package/dist/api/generated/itinerary/models/ItineraryId.d.ts +0 -1
- package/dist/api/generated/itinerary/models/ItineraryId.js +0 -1
- package/dist/api/generated/itinerary/models/ItineraryIdPathParam.d.ts +0 -5
- package/dist/api/generated/itinerary/models/ItineraryIdPathParam.js +0 -1
- package/dist/api/generated/itinerary/models/ItineraryIdQueryParam.d.ts +0 -5
- package/dist/api/generated/itinerary/models/ItineraryIdQueryParam.js +0 -1
- package/dist/api/generated/itinerary/models/ItineraryRevisionGroupId.d.ts +0 -1
- package/dist/api/generated/itinerary/models/ItineraryRevisionGroupId.js +0 -1
- package/dist/api/generated/itinerary/models/ItineraryValue.d.ts +0 -4
- package/dist/api/generated/itinerary/models/ItineraryValue.js +0 -1
- package/dist/api/generated/itinerary/models/LimitQueryParam.d.ts +0 -4
- package/dist/api/generated/itinerary/models/LimitQueryParam.js +0 -1
- package/dist/api/generated/itinerary/models/Meals.d.ts +0 -8
- package/dist/api/generated/itinerary/models/Meals.js +0 -13
- package/dist/api/generated/itinerary/models/Media.d.ts +0 -4
- package/dist/api/generated/itinerary/models/Media.js +0 -1
- package/dist/api/generated/itinerary/models/Metadata.d.ts +0 -7
- package/dist/api/generated/itinerary/models/Metadata.js +0 -1
- package/dist/api/generated/itinerary/models/MockErrorCodeQueryParam.d.ts +0 -4
- package/dist/api/generated/itinerary/models/MockErrorCodeQueryParam.js +0 -1
- package/dist/api/generated/itinerary/models/OnQueryParam.d.ts +0 -4
- package/dist/api/generated/itinerary/models/OnQueryParam.js +0 -1
- package/dist/api/generated/itinerary/models/OrderQueryParam.d.ts +0 -7
- package/dist/api/generated/itinerary/models/OrderQueryParam.js +0 -12
- package/dist/api/generated/itinerary/models/OrgId.d.ts +0 -3
- package/dist/api/generated/itinerary/models/OrgId.js +0 -8
- package/dist/api/generated/itinerary/models/Package.d.ts +0 -7
- package/dist/api/generated/itinerary/models/Package.js +0 -1
- package/dist/api/generated/itinerary/models/PackageItem.d.ts +0 -6
- package/dist/api/generated/itinerary/models/PackageItem.js +0 -1
- package/dist/api/generated/itinerary/models/PackageSpan.d.ts +0 -11
- package/dist/api/generated/itinerary/models/PackageSpan.js +0 -1
- package/dist/api/generated/itinerary/models/PageQueryParam.d.ts +0 -4
- package/dist/api/generated/itinerary/models/PageQueryParam.js +0 -1
- package/dist/api/generated/itinerary/models/Pagination.d.ts +0 -5
- package/dist/api/generated/itinerary/models/Pagination.js +0 -1
- package/dist/api/generated/itinerary/models/Price.d.ts +0 -5
- package/dist/api/generated/itinerary/models/Price.js +0 -1
- package/dist/api/generated/itinerary/models/QuoteOptions.d.ts +0 -9
- package/dist/api/generated/itinerary/models/QuoteOptions.js +0 -1
- package/dist/api/generated/itinerary/models/RegionId.d.ts +0 -1
- package/dist/api/generated/itinerary/models/RegionId.js +0 -1
- package/dist/api/generated/itinerary/models/SearchQueryParam.d.ts +0 -4
- package/dist/api/generated/itinerary/models/SearchQueryParam.js +0 -1
- package/dist/api/generated/itinerary/models/SnapshotId.d.ts +0 -1
- package/dist/api/generated/itinerary/models/SnapshotId.js +0 -1
- package/dist/api/generated/itinerary/models/SnapshotIdPathParam.d.ts +0 -2
- package/dist/api/generated/itinerary/models/SnapshotIdPathParam.js +0 -1
- package/dist/api/generated/itinerary/models/SortQueryParam.d.ts +0 -4
- package/dist/api/generated/itinerary/models/SortQueryParam.js +0 -1
- package/dist/api/generated/itinerary/models/StateQueryParam.d.ts +0 -5
- package/dist/api/generated/itinerary/models/StateQueryParam.js +0 -1
- package/dist/api/generated/itinerary/models/SwoopContactInfo.d.ts +0 -5
- package/dist/api/generated/itinerary/models/SwoopContactInfo.js +0 -1
- package/dist/api/generated/itinerary/models/SwooperExperience.d.ts +0 -7
- package/dist/api/generated/itinerary/models/SwooperExperience.js +0 -1
- package/dist/api/generated/itinerary/models/SwooperHighlights.d.ts +0 -5
- package/dist/api/generated/itinerary/models/SwooperHighlights.js +0 -1
- package/dist/api/generated/itinerary/models/SwooperId.d.ts +0 -1
- package/dist/api/generated/itinerary/models/SwooperId.js +0 -1
- package/dist/api/generated/itinerary/models/SwooperIdPathParam.d.ts +0 -5
- package/dist/api/generated/itinerary/models/SwooperIdPathParam.js +0 -1
- package/dist/api/generated/itinerary/models/SwooperInfo.d.ts +0 -6
- package/dist/api/generated/itinerary/models/SwooperInfo.js +0 -1
- package/dist/api/generated/itinerary/models/SwooperPersonalInfo.d.ts +0 -7
- package/dist/api/generated/itinerary/models/SwooperPersonalInfo.js +0 -1
- package/dist/api/generated/itinerary/models/TagPathParam.d.ts +0 -4
- package/dist/api/generated/itinerary/models/TagPathParam.js +0 -1
- package/dist/api/generated/itinerary/models/TemplateId.d.ts +0 -1
- package/dist/api/generated/itinerary/models/TemplateId.js +0 -1
- package/dist/api/generated/itinerary/models/TemplateIdPathParam.d.ts +0 -5
- package/dist/api/generated/itinerary/models/TemplateIdPathParam.js +0 -1
- package/dist/api/generated/itinerary/models/TemplateRevisionGroupId.d.ts +0 -1
- package/dist/api/generated/itinerary/models/TemplateRevisionGroupId.js +0 -1
- package/dist/api/generated/itinerary/models/Title.d.ts +0 -1
- package/dist/api/generated/itinerary/models/Title.js +0 -1
- package/dist/api/generated/itinerary/models/UrgencyCTA.d.ts +0 -4
- package/dist/api/generated/itinerary/models/UrgencyCTA.js +0 -9
- package/dist/api/generated/itinerary/models/UserComponentInstanceField.d.ts +0 -5
- package/dist/api/generated/itinerary/models/UserComponentInstanceField.js +0 -1
- package/dist/api/generated/itinerary/models/ValidationSchemas.d.ts +0 -5
- package/dist/api/generated/itinerary/models/ValidationSchemas.js +0 -1
- package/dist/api/generated/itinerary/models/VersionPathParam.d.ts +0 -4
- package/dist/api/generated/itinerary/models/VersionPathParam.js +0 -1
- package/dist/api/generated/itinerary/services/AuditService.d.ts +0 -13
- package/dist/api/generated/itinerary/services/AuditService.js +0 -28
- package/dist/api/generated/itinerary/services/ItineraryService.d.ts +0 -174
- package/dist/api/generated/itinerary/services/ItineraryService.js +0 -378
- package/dist/api/generated/itinerary/services/RegionService.d.ts +0 -30
- package/dist/api/generated/itinerary/services/RegionService.js +0 -57
- package/dist/api/generated/itinerary/services/SnapshotService.d.ts +0 -61
- package/dist/api/generated/itinerary/services/SnapshotService.js +0 -128
- package/dist/api/generated/swoop/models/DayByDayDay_jsonld.d.ts +0 -7
- package/dist/api/generated/swoop/models/DayByDayDay_jsonld.js +0 -1
- /package/dist/api/generated/{itinerary/core/ApiRequestOptions.js → core/models/IsTwinCentre.js} +0 -0
- /package/dist/api/generated/{itinerary/core/ApiResult.js → core/models/PublicPaymentLead.js} +0 -0
- /package/dist/api/generated/{itinerary/models/Amendment.js → core/models/PublicSnapShotPayment.js} +0 -0
- /package/dist/api/generated/{itinerary/models/AssignedPassenger.js → swoop/models/BookingGroup.js} +0 -0
- /package/dist/api/generated/{itinerary/models/AssignedTravellerGroup.js → swoop/models/BookingGroup_jsonld.js} +0 -0
- /package/dist/api/generated/{itinerary/models/B64StringQueryParam.js → swoop/models/CabinData.js} +0 -0
- /package/dist/api/generated/{itinerary/models/BranchId.js → swoop/models/CabinData_jsonld.js} +0 -0
- /package/dist/api/generated/{itinerary/models/BranchTag.js → swoop/models/CabinType.js} +0 -0
- /package/dist/api/generated/{itinerary/models/Branches.js → swoop/models/CabinType_jsonld.js} +0 -0
- /package/dist/api/generated/{itinerary/models/ComponentDescription.js → swoop/models/CustomerLookupCXPerson.js} +0 -0
- /package/dist/api/generated/{itinerary/models/ComponentFAQ.js → swoop/models/CustomerLookupCXPerson_jsonld.js} +0 -0
- /package/dist/api/generated/{itinerary/models/ComponentId.js → swoop/models/CustomerLookupEnquiry.js} +0 -0
- /package/dist/api/generated/{itinerary/models/ComponentIdPathParam.js → swoop/models/CustomerLookupEnquiry_jsonld.js} +0 -0
- /package/dist/api/generated/{itinerary/models/ComponentInstance.js → swoop/models/CustomerLookupSalesPerson.js} +0 -0
- /package/dist/api/generated/{itinerary/models/ComponentNotes.js → swoop/models/CustomerLookupSalesPerson_jsonld.js} +0 -0
- /package/dist/api/generated/{itinerary/models/ComponentRevisionGroupId.js → swoop/models/DayByDay.js} +0 -0
- /package/dist/api/generated/{itinerary/models/DTOBranchCreate.js → swoop/models/DayByDayType.js} +0 -0
- /package/dist/api/generated/{itinerary/models/DTOBranchEntity.js → swoop/models/DayByDay_jsonld.js} +0 -0
- /package/dist/api/generated/{itinerary → swoop}/models/Discount.js +0 -0
- /package/dist/api/generated/{itinerary/models/DTOBranchRead.js → swoop/models/Discount_jsonld.js} +0 -0
- /package/dist/api/{generated/itinerary/models/DTOBranchUpdate.js → specsgen.d.ts} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { HydraItemBaseSchema } from './HydraItemBaseSchema';
|
|
2
2
|
export type Itinerary_ItinerarySaveOutput_jsonld = (HydraItemBaseSchema & {
|
|
3
3
|
status?: string;
|
|
4
|
-
messages?:
|
|
5
|
-
errors?:
|
|
4
|
+
messages?: any[] | null;
|
|
5
|
+
errors?: any[] | null;
|
|
6
6
|
});
|
|
@@ -9,4 +9,11 @@ export type Partner = {
|
|
|
9
9
|
telephone?: string | null;
|
|
10
10
|
email?: string | null;
|
|
11
11
|
isActive?: boolean;
|
|
12
|
+
commissionRateIndependent?: number;
|
|
13
|
+
commissionRateEnhanced?: number;
|
|
14
|
+
hasIndependentSupport?: boolean;
|
|
15
|
+
hasEnhancedSupport?: boolean;
|
|
16
|
+
balanceDueDays?: number;
|
|
17
|
+
depositType?: string;
|
|
18
|
+
depositValue?: number;
|
|
12
19
|
};
|
|
@@ -10,4 +10,11 @@ export type Partner_jsonld = (HydraItemBaseSchema & {
|
|
|
10
10
|
telephone?: string | null;
|
|
11
11
|
email?: string | null;
|
|
12
12
|
isActive?: boolean;
|
|
13
|
+
commissionRateIndependent?: number;
|
|
14
|
+
commissionRateEnhanced?: number;
|
|
15
|
+
hasIndependentSupport?: boolean;
|
|
16
|
+
hasEnhancedSupport?: boolean;
|
|
17
|
+
balanceDueDays?: number;
|
|
18
|
+
depositType?: string;
|
|
19
|
+
depositValue?: number;
|
|
13
20
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Country } from './Country';
|
|
2
2
|
export type Passport = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
passport_number?: string | null;
|
|
4
|
+
passport_expiry_date?: string | null;
|
|
5
|
+
passport_issue_date?: string | null;
|
|
6
6
|
country?: (Country | null);
|
|
7
7
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Country_jsonld } from './Country_jsonld';
|
|
2
2
|
import type { HydraItemBaseSchema } from './HydraItemBaseSchema';
|
|
3
3
|
export type Passport_jsonld = (HydraItemBaseSchema & {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
passport_number?: string | null;
|
|
5
|
+
passport_expiry_date?: string | null;
|
|
6
|
+
passport_issue_date?: string | null;
|
|
7
7
|
country?: (Country_jsonld | null);
|
|
8
8
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export type TravellerGroup = {
|
|
2
2
|
id?: string;
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
traveller_group_id?: number;
|
|
4
|
+
enquiry_id?: number;
|
|
5
5
|
title?: string | null;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
payment_status?: string | null;
|
|
7
|
+
srf_completed_at?: string | null;
|
|
8
|
+
srf_pg2_completed_at?: string | null;
|
|
9
9
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { HydraItemBaseSchema } from './HydraItemBaseSchema';
|
|
2
2
|
export type TravellerGroup_jsonld = (HydraItemBaseSchema & {
|
|
3
3
|
id?: string;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
traveller_group_id?: number;
|
|
5
|
+
enquiry_id?: number;
|
|
6
6
|
title?: string | null;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
payment_status?: string | null;
|
|
8
|
+
srf_completed_at?: string | null;
|
|
9
|
+
srf_pg2_completed_at?: string | null;
|
|
10
10
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { DayByDayType } from './DayByDayType';
|
|
2
2
|
export type TripVariant = {
|
|
3
3
|
id?: string;
|
|
4
4
|
tripVariantId?: number;
|
|
5
5
|
title?: string;
|
|
6
|
-
dayByDayTypes?: Array<
|
|
6
|
+
dayByDayTypes?: Array<DayByDayType>;
|
|
7
7
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { DayByDayType } from './DayByDayType';
|
|
2
2
|
import type { HydraItemBaseSchema } from './HydraItemBaseSchema';
|
|
3
3
|
export type TripVariant_jsonld = (HydraItemBaseSchema & {
|
|
4
4
|
id?: string;
|
|
5
5
|
tripVariantId?: number;
|
|
6
6
|
title?: string;
|
|
7
|
-
dayByDayTypes?: Array<
|
|
7
|
+
dayByDayTypes?: Array<DayByDayType>;
|
|
8
8
|
});
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
+
import type { BookingGroup } from '../models/BookingGroup';
|
|
1
2
|
import type { BookingItemType } from '../models/BookingItemType';
|
|
3
|
+
import type { CabinData } from '../models/CabinData';
|
|
2
4
|
import type { Category } from '../models/Category';
|
|
3
5
|
import type { Currency } from '../models/Currency';
|
|
4
6
|
import type { CurrencyConversion } from '../models/CurrencyConversion';
|
|
5
|
-
import type { CurrencyConversionBatch } from '../models/CurrencyConversionBatch';
|
|
6
7
|
import type { Customer } from '../models/Customer';
|
|
7
8
|
import type { CustomerLookup } from '../models/CustomerLookup';
|
|
9
|
+
import type { CustomerLookupEnquiry } from '../models/CustomerLookupEnquiry';
|
|
10
|
+
import type { DayByDay } from '../models/DayByDay';
|
|
11
|
+
import type { DayByDayType } from '../models/DayByDayType';
|
|
8
12
|
import type { Departure } from '../models/Departure';
|
|
9
13
|
import type { Enquiry } from '../models/Enquiry';
|
|
10
14
|
import type { EnquiryStatus } from '../models/EnquiryStatus';
|
|
@@ -19,32 +23,54 @@ import type { TripVariant } from '../models/TripVariant';
|
|
|
19
23
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
20
24
|
export declare class SwoopService {
|
|
21
25
|
/**
|
|
22
|
-
* Retrieves
|
|
26
|
+
* Retrieves a BookingGroup resource.
|
|
27
|
+
* Retrieves a BookingGroup resource.
|
|
28
|
+
* @param id BookingGroup identifier
|
|
29
|
+
* @returns BookingGroup BookingGroup resource
|
|
30
|
+
* @throws ApiError
|
|
31
|
+
*/
|
|
32
|
+
bookingGroupsIdGet(id: string): CancelablePromise<BookingGroup>;
|
|
33
|
+
/**
|
|
34
|
+
* Booking Item Type Collection
|
|
23
35
|
* Retrieves the collection of BookingItemType resources.
|
|
24
36
|
* @param region antarctica, arctic, patagonia
|
|
25
37
|
* @param active 1,0
|
|
26
|
-
* @returns
|
|
38
|
+
* @returns any Successful response
|
|
27
39
|
* @throws ApiError
|
|
28
40
|
*/
|
|
29
|
-
bookingItemTypesGetCollection(region?: string, active?: string): CancelablePromise<
|
|
41
|
+
bookingItemTypesGetCollection(region?: string, active?: string): CancelablePromise<{
|
|
42
|
+
bookingItemTypes?: Array<BookingItemType>;
|
|
43
|
+
}>;
|
|
30
44
|
/**
|
|
31
|
-
* Retrieves
|
|
45
|
+
* Retrieves a CabinData resource.
|
|
46
|
+
* Retrieves a CabinData resource.
|
|
47
|
+
* @param id The unique identifier example: ANT-12345 ({REGION}-{cabindata_id}})
|
|
48
|
+
* @returns CabinData CabinData resource
|
|
49
|
+
* @throws ApiError
|
|
50
|
+
*/
|
|
51
|
+
cabinDataGet(id: string): CancelablePromise<CabinData>;
|
|
52
|
+
/**
|
|
53
|
+
* Category Collection
|
|
32
54
|
* Retrieves the collection of Category resources.
|
|
33
55
|
* @param region antarctica, arctic, patagonia
|
|
34
56
|
* @param active 1,0
|
|
35
|
-
* @returns
|
|
57
|
+
* @returns any Successful response
|
|
36
58
|
* @throws ApiError
|
|
37
59
|
*/
|
|
38
|
-
categoriesGetCollection(region?: string, active?: string): CancelablePromise<
|
|
60
|
+
categoriesGetCollection(region?: string, active?: string): CancelablePromise<{
|
|
61
|
+
categories?: Array<Category>;
|
|
62
|
+
}>;
|
|
39
63
|
/**
|
|
40
|
-
*
|
|
64
|
+
* Currency collection
|
|
41
65
|
* Retrieves the collection of Currency resources.
|
|
42
66
|
* @param region antarctica, arctic, patagonia
|
|
43
67
|
* @param active 1,0
|
|
44
|
-
* @returns
|
|
68
|
+
* @returns any Successful response
|
|
45
69
|
* @throws ApiError
|
|
46
70
|
*/
|
|
47
|
-
currenciesGetCollection(region?: string, active?: string): CancelablePromise<
|
|
71
|
+
currenciesGetCollection(region?: string, active?: string): CancelablePromise<{
|
|
72
|
+
currencies?: Array<Currency>;
|
|
73
|
+
}>;
|
|
48
74
|
/**
|
|
49
75
|
* Retrieves a CurrencyConversion resource.
|
|
50
76
|
* Retrieves a CurrencyConversion resource.
|
|
@@ -59,7 +85,7 @@ export declare class SwoopService {
|
|
|
59
85
|
* Convert multiple amounts to a target currency
|
|
60
86
|
* Converts multiple amounts from different currencies to a single target currency
|
|
61
87
|
* @param requestBody Currency conversion batch request
|
|
62
|
-
* @returns
|
|
88
|
+
* @returns any Successful response
|
|
63
89
|
* @throws ApiError
|
|
64
90
|
*/
|
|
65
91
|
currencyConversionbatchPost(requestBody?: {
|
|
@@ -80,7 +106,34 @@ export declare class SwoopService {
|
|
|
80
106
|
*/
|
|
81
107
|
amount: number;
|
|
82
108
|
}>;
|
|
83
|
-
}): CancelablePromise<
|
|
109
|
+
}): CancelablePromise<{
|
|
110
|
+
convertedAmounts?: Array<{
|
|
111
|
+
/**
|
|
112
|
+
* Original currency code in ISO 3 format
|
|
113
|
+
*/
|
|
114
|
+
original_currency?: string;
|
|
115
|
+
/**
|
|
116
|
+
* Original amount before conversion
|
|
117
|
+
*/
|
|
118
|
+
original_amount?: number;
|
|
119
|
+
/**
|
|
120
|
+
* Converted amount in target currency
|
|
121
|
+
*/
|
|
122
|
+
converted_amount?: number;
|
|
123
|
+
/**
|
|
124
|
+
* Conversion rate used
|
|
125
|
+
*/
|
|
126
|
+
conversion_rate?: number;
|
|
127
|
+
}>;
|
|
128
|
+
/**
|
|
129
|
+
* Total amount in target currency
|
|
130
|
+
*/
|
|
131
|
+
total?: number;
|
|
132
|
+
/**
|
|
133
|
+
* Formatted total with currency symbol
|
|
134
|
+
*/
|
|
135
|
+
formattedTotal?: string;
|
|
136
|
+
}>;
|
|
84
137
|
/**
|
|
85
138
|
* Retrieves the collection of Customer resources.
|
|
86
139
|
* Retrieves the collection of Customer resources.
|
|
@@ -109,6 +162,30 @@ export declare class SwoopService {
|
|
|
109
162
|
* @throws ApiError
|
|
110
163
|
*/
|
|
111
164
|
customersLookUpGet(telephone?: string, region?: string): CancelablePromise<CustomerLookup>;
|
|
165
|
+
/**
|
|
166
|
+
* Retrieves a CustomerLookupEnquiry resource.
|
|
167
|
+
* Retrieves a CustomerLookupEnquiry resource.
|
|
168
|
+
* @param id CustomerLookupEnquiry identifier
|
|
169
|
+
* @returns CustomerLookupEnquiry CustomerLookupEnquiry resource
|
|
170
|
+
* @throws ApiError
|
|
171
|
+
*/
|
|
172
|
+
customerLookupEnquiriesIdGet(id: string): CancelablePromise<CustomerLookupEnquiry>;
|
|
173
|
+
/**
|
|
174
|
+
* Retrieves a DayByDay resource.
|
|
175
|
+
* Retrieves a DayByDay resource.
|
|
176
|
+
* @param id DayByDay identifier
|
|
177
|
+
* @returns DayByDay DayByDay resource
|
|
178
|
+
* @throws ApiError
|
|
179
|
+
*/
|
|
180
|
+
dayByDayIdGet(id: string): CancelablePromise<DayByDay>;
|
|
181
|
+
/**
|
|
182
|
+
* Retrieves a DayByDayType resource.
|
|
183
|
+
* Retrieves a DayByDayType resource.
|
|
184
|
+
* @param type DayByDayType identifier
|
|
185
|
+
* @returns DayByDayType DayByDayType resource
|
|
186
|
+
* @throws ApiError
|
|
187
|
+
*/
|
|
188
|
+
dayByDayTypesTypeGet(type: string): CancelablePromise<DayByDayType>;
|
|
112
189
|
/**
|
|
113
190
|
* Retrieves the collection of Departure resources.
|
|
114
191
|
* Retrieves the collection of Departure resources.
|
|
@@ -128,13 +205,15 @@ export declare class SwoopService {
|
|
|
128
205
|
*/
|
|
129
206
|
enquiryIdGet(id: string): CancelablePromise<Enquiry>;
|
|
130
207
|
/**
|
|
131
|
-
*
|
|
208
|
+
* Enquiry Status Collection
|
|
132
209
|
* Retrieves the collection of EnquiryStatus resources.
|
|
133
210
|
* @param region antarctica, arctic, patagonia
|
|
134
|
-
* @returns
|
|
211
|
+
* @returns any Successful response
|
|
135
212
|
* @throws ApiError
|
|
136
213
|
*/
|
|
137
|
-
enquiryStatusesGetCollection(region?: string): CancelablePromise<
|
|
214
|
+
enquiryStatusesGetCollection(region?: string): CancelablePromise<{
|
|
215
|
+
enquiryStatuses?: Array<EnquiryStatus>;
|
|
216
|
+
}>;
|
|
138
217
|
/**
|
|
139
218
|
* Replaces the Itinerary resource.
|
|
140
219
|
* Replaces the Itinerary resource.
|
|
@@ -164,23 +243,28 @@ export declare class SwoopService {
|
|
|
164
243
|
*/
|
|
165
244
|
partnersIdGet(id: string): CancelablePromise<Partner>;
|
|
166
245
|
/**
|
|
167
|
-
*
|
|
246
|
+
* Payment collection
|
|
168
247
|
* Retrieves the collection of Payment resources.
|
|
169
248
|
* @param enquiryId The unique identifier example: ANT-12345 ({REGION}-{enquiry_id}})
|
|
170
249
|
* @param status Optional: payment status filter. Supports comma-separated values for multiple statuses (e.g. pending,completed)
|
|
171
250
|
* @param withDeleted Optional: Include deleted records (1 = include, 0 = exclude)
|
|
172
|
-
* @returns
|
|
251
|
+
* @returns any Successful response
|
|
173
252
|
* @throws ApiError
|
|
174
253
|
*/
|
|
175
|
-
paymentsGetCollection(enquiryId?: string, status?: string, withDeleted?: string): CancelablePromise<
|
|
254
|
+
paymentsGetCollection(enquiryId?: string, status?: string, withDeleted?: string): CancelablePromise<{
|
|
255
|
+
payments?: Array<Payment>;
|
|
256
|
+
}>;
|
|
176
257
|
/**
|
|
177
|
-
*
|
|
258
|
+
* List people
|
|
178
259
|
* Retrieves the collection of Person resources.
|
|
179
260
|
* @param region antarctica, arctic, patagonia
|
|
180
|
-
* @
|
|
261
|
+
* @param all 1,0 - include all records or just the active ones - default 0
|
|
262
|
+
* @returns any Successful response
|
|
181
263
|
* @throws ApiError
|
|
182
264
|
*/
|
|
183
|
-
peopleGetCollection(region?: string): CancelablePromise<
|
|
265
|
+
peopleGetCollection(region?: string, all?: string): CancelablePromise<{
|
|
266
|
+
people?: Array<Person>;
|
|
267
|
+
}>;
|
|
184
268
|
/**
|
|
185
269
|
* Retrieves a Person resource.
|
|
186
270
|
* Retrieves a Person resource.
|
|
@@ -190,14 +274,16 @@ export declare class SwoopService {
|
|
|
190
274
|
*/
|
|
191
275
|
peopleIdGet(id: string): CancelablePromise<Person>;
|
|
192
276
|
/**
|
|
193
|
-
*
|
|
277
|
+
* List travellers
|
|
194
278
|
* Retrieves the collection of Traveller resources.
|
|
195
279
|
* @param enquiryId by enquiry ID
|
|
196
280
|
* @param region antarctica, arctic, patagonia
|
|
197
|
-
* @returns
|
|
281
|
+
* @returns any Successful response
|
|
198
282
|
* @throws ApiError
|
|
199
283
|
*/
|
|
200
|
-
travellersGetCollection(enquiryId?: string, region?: string): CancelablePromise<
|
|
284
|
+
travellersGetCollection(enquiryId?: string, region?: string): CancelablePromise<{
|
|
285
|
+
travellers?: Array<Traveller>;
|
|
286
|
+
}>;
|
|
201
287
|
/**
|
|
202
288
|
* Retrieves a Traveller resource.
|
|
203
289
|
* Retrieves a Traveller resource.
|
|
@@ -2,11 +2,30 @@ import { OpenAPI } from '../core/OpenAPI';
|
|
|
2
2
|
import { request as __request } from '../core/request';
|
|
3
3
|
export class SwoopService {
|
|
4
4
|
/**
|
|
5
|
-
* Retrieves
|
|
5
|
+
* Retrieves a BookingGroup resource.
|
|
6
|
+
* Retrieves a BookingGroup resource.
|
|
7
|
+
* @param id BookingGroup identifier
|
|
8
|
+
* @returns BookingGroup BookingGroup resource
|
|
9
|
+
* @throws ApiError
|
|
10
|
+
*/
|
|
11
|
+
bookingGroupsIdGet(id) {
|
|
12
|
+
return __request(OpenAPI, {
|
|
13
|
+
method: 'GET',
|
|
14
|
+
url: '/api/booking-groups/{id}',
|
|
15
|
+
path: {
|
|
16
|
+
'id': id,
|
|
17
|
+
},
|
|
18
|
+
errors: {
|
|
19
|
+
404: `Not found`,
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Booking Item Type Collection
|
|
6
25
|
* Retrieves the collection of BookingItemType resources.
|
|
7
26
|
* @param region antarctica, arctic, patagonia
|
|
8
27
|
* @param active 1,0
|
|
9
|
-
* @returns
|
|
28
|
+
* @returns any Successful response
|
|
10
29
|
* @throws ApiError
|
|
11
30
|
*/
|
|
12
31
|
bookingItemTypesGetCollection(region, active) {
|
|
@@ -20,11 +39,30 @@ export class SwoopService {
|
|
|
20
39
|
});
|
|
21
40
|
}
|
|
22
41
|
/**
|
|
23
|
-
* Retrieves
|
|
42
|
+
* Retrieves a CabinData resource.
|
|
43
|
+
* Retrieves a CabinData resource.
|
|
44
|
+
* @param id The unique identifier example: ANT-12345 ({REGION}-{cabindata_id}})
|
|
45
|
+
* @returns CabinData CabinData resource
|
|
46
|
+
* @throws ApiError
|
|
47
|
+
*/
|
|
48
|
+
cabinDataGet(id) {
|
|
49
|
+
return __request(OpenAPI, {
|
|
50
|
+
method: 'GET',
|
|
51
|
+
url: '/api/cabin-data',
|
|
52
|
+
path: {
|
|
53
|
+
'id': id,
|
|
54
|
+
},
|
|
55
|
+
errors: {
|
|
56
|
+
404: `Not found`,
|
|
57
|
+
},
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Category Collection
|
|
24
62
|
* Retrieves the collection of Category resources.
|
|
25
63
|
* @param region antarctica, arctic, patagonia
|
|
26
64
|
* @param active 1,0
|
|
27
|
-
* @returns
|
|
65
|
+
* @returns any Successful response
|
|
28
66
|
* @throws ApiError
|
|
29
67
|
*/
|
|
30
68
|
categoriesGetCollection(region, active) {
|
|
@@ -38,11 +76,11 @@ export class SwoopService {
|
|
|
38
76
|
});
|
|
39
77
|
}
|
|
40
78
|
/**
|
|
41
|
-
*
|
|
79
|
+
* Currency collection
|
|
42
80
|
* Retrieves the collection of Currency resources.
|
|
43
81
|
* @param region antarctica, arctic, patagonia
|
|
44
82
|
* @param active 1,0
|
|
45
|
-
* @returns
|
|
83
|
+
* @returns any Successful response
|
|
46
84
|
* @throws ApiError
|
|
47
85
|
*/
|
|
48
86
|
currenciesGetCollection(region, active) {
|
|
@@ -82,7 +120,7 @@ export class SwoopService {
|
|
|
82
120
|
* Convert multiple amounts to a target currency
|
|
83
121
|
* Converts multiple amounts from different currencies to a single target currency
|
|
84
122
|
* @param requestBody Currency conversion batch request
|
|
85
|
-
* @returns
|
|
123
|
+
* @returns any Successful response
|
|
86
124
|
* @throws ApiError
|
|
87
125
|
*/
|
|
88
126
|
currencyConversionbatchPost(requestBody) {
|
|
@@ -159,6 +197,63 @@ export class SwoopService {
|
|
|
159
197
|
},
|
|
160
198
|
});
|
|
161
199
|
}
|
|
200
|
+
/**
|
|
201
|
+
* Retrieves a CustomerLookupEnquiry resource.
|
|
202
|
+
* Retrieves a CustomerLookupEnquiry resource.
|
|
203
|
+
* @param id CustomerLookupEnquiry identifier
|
|
204
|
+
* @returns CustomerLookupEnquiry CustomerLookupEnquiry resource
|
|
205
|
+
* @throws ApiError
|
|
206
|
+
*/
|
|
207
|
+
customerLookupEnquiriesIdGet(id) {
|
|
208
|
+
return __request(OpenAPI, {
|
|
209
|
+
method: 'GET',
|
|
210
|
+
url: '/api/customer-lookup-enquiries/{id}',
|
|
211
|
+
path: {
|
|
212
|
+
'id': id,
|
|
213
|
+
},
|
|
214
|
+
errors: {
|
|
215
|
+
404: `Not found`,
|
|
216
|
+
},
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Retrieves a DayByDay resource.
|
|
221
|
+
* Retrieves a DayByDay resource.
|
|
222
|
+
* @param id DayByDay identifier
|
|
223
|
+
* @returns DayByDay DayByDay resource
|
|
224
|
+
* @throws ApiError
|
|
225
|
+
*/
|
|
226
|
+
dayByDayIdGet(id) {
|
|
227
|
+
return __request(OpenAPI, {
|
|
228
|
+
method: 'GET',
|
|
229
|
+
url: '/api/day-by-day/{id}',
|
|
230
|
+
path: {
|
|
231
|
+
'id': id,
|
|
232
|
+
},
|
|
233
|
+
errors: {
|
|
234
|
+
404: `Not found`,
|
|
235
|
+
},
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* Retrieves a DayByDayType resource.
|
|
240
|
+
* Retrieves a DayByDayType resource.
|
|
241
|
+
* @param type DayByDayType identifier
|
|
242
|
+
* @returns DayByDayType DayByDayType resource
|
|
243
|
+
* @throws ApiError
|
|
244
|
+
*/
|
|
245
|
+
dayByDayTypesTypeGet(type) {
|
|
246
|
+
return __request(OpenAPI, {
|
|
247
|
+
method: 'GET',
|
|
248
|
+
url: '/api/day-by-day-types/{type}',
|
|
249
|
+
path: {
|
|
250
|
+
'type': type,
|
|
251
|
+
},
|
|
252
|
+
errors: {
|
|
253
|
+
404: `Not found`,
|
|
254
|
+
},
|
|
255
|
+
});
|
|
256
|
+
}
|
|
162
257
|
/**
|
|
163
258
|
* Retrieves the collection of Departure resources.
|
|
164
259
|
* Retrieves the collection of Departure resources.
|
|
@@ -199,10 +294,10 @@ export class SwoopService {
|
|
|
199
294
|
});
|
|
200
295
|
}
|
|
201
296
|
/**
|
|
202
|
-
*
|
|
297
|
+
* Enquiry Status Collection
|
|
203
298
|
* Retrieves the collection of EnquiryStatus resources.
|
|
204
299
|
* @param region antarctica, arctic, patagonia
|
|
205
|
-
* @returns
|
|
300
|
+
* @returns any Successful response
|
|
206
301
|
* @throws ApiError
|
|
207
302
|
*/
|
|
208
303
|
enquiryStatusesGetCollection(region) {
|
|
@@ -278,12 +373,12 @@ export class SwoopService {
|
|
|
278
373
|
});
|
|
279
374
|
}
|
|
280
375
|
/**
|
|
281
|
-
*
|
|
376
|
+
* Payment collection
|
|
282
377
|
* Retrieves the collection of Payment resources.
|
|
283
378
|
* @param enquiryId The unique identifier example: ANT-12345 ({REGION}-{enquiry_id}})
|
|
284
379
|
* @param status Optional: payment status filter. Supports comma-separated values for multiple statuses (e.g. pending,completed)
|
|
285
380
|
* @param withDeleted Optional: Include deleted records (1 = include, 0 = exclude)
|
|
286
|
-
* @returns
|
|
381
|
+
* @returns any Successful response
|
|
287
382
|
* @throws ApiError
|
|
288
383
|
*/
|
|
289
384
|
paymentsGetCollection(enquiryId, status, withDeleted) {
|
|
@@ -298,18 +393,20 @@ export class SwoopService {
|
|
|
298
393
|
});
|
|
299
394
|
}
|
|
300
395
|
/**
|
|
301
|
-
*
|
|
396
|
+
* List people
|
|
302
397
|
* Retrieves the collection of Person resources.
|
|
303
398
|
* @param region antarctica, arctic, patagonia
|
|
304
|
-
* @
|
|
399
|
+
* @param all 1,0 - include all records or just the active ones - default 0
|
|
400
|
+
* @returns any Successful response
|
|
305
401
|
* @throws ApiError
|
|
306
402
|
*/
|
|
307
|
-
peopleGetCollection(region) {
|
|
403
|
+
peopleGetCollection(region, all) {
|
|
308
404
|
return __request(OpenAPI, {
|
|
309
405
|
method: 'GET',
|
|
310
406
|
url: '/api/people',
|
|
311
407
|
query: {
|
|
312
408
|
'region': region,
|
|
409
|
+
'all': all,
|
|
313
410
|
},
|
|
314
411
|
});
|
|
315
412
|
}
|
|
@@ -333,11 +430,11 @@ export class SwoopService {
|
|
|
333
430
|
});
|
|
334
431
|
}
|
|
335
432
|
/**
|
|
336
|
-
*
|
|
433
|
+
* List travellers
|
|
337
434
|
* Retrieves the collection of Traveller resources.
|
|
338
435
|
* @param enquiryId by enquiry ID
|
|
339
436
|
* @param region antarctica, arctic, patagonia
|
|
340
|
-
* @returns
|
|
437
|
+
* @returns any Successful response
|
|
341
438
|
* @throws ApiError
|
|
342
439
|
*/
|
|
343
440
|
travellersGetCollection(enquiryId, region) {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import fs from "fs";
|
|
2
|
+
import yaml from "js-yaml";
|
|
3
|
+
fetch("https://data-test.swoop-adventures.com/api/docs.jsonopenapi").then(res => {
|
|
4
|
+
res.text().then(json => {
|
|
5
|
+
// I should really use ast or properly parse it, but I have found that its more effort than it is worth
|
|
6
|
+
// api_api is on each opertaion name. (Makes the generated sdk wordy and annoying to use)
|
|
7
|
+
const cleaned = json.replace(/api_api/g, "");
|
|
8
|
+
// All tags are set to "Swoop", again bc it makes using the sdk annoying (makes a bunch of seperate classes)
|
|
9
|
+
const parsed = JSON.parse(cleaned);
|
|
10
|
+
// Root def of all tags
|
|
11
|
+
parsed.tags = [{
|
|
12
|
+
"name": "Swoop",
|
|
13
|
+
"description": "Swoop service"
|
|
14
|
+
}];
|
|
15
|
+
Object.keys(parsed.paths).forEach(path => {
|
|
16
|
+
Object.keys(parsed.paths[path]).forEach(operation => {
|
|
17
|
+
parsed.paths[path][operation].tags = ["Swoop"];
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
fs.writeFileSync(`./openapi/swoop_service.yaml`, yaml.dump(parsed));
|
|
21
|
+
});
|
|
22
|
+
});
|
|
@@ -14,6 +14,7 @@ export declare const fetchComponents: () => Promise<{
|
|
|
14
14
|
media: import("../../api/generated/core").Media;
|
|
15
15
|
destination: import("../../api/generated/core").Destination;
|
|
16
16
|
name: import("../../api/generated/core").Title;
|
|
17
|
+
externalName: string;
|
|
17
18
|
description: import("../../api/generated/core").ComponentDescription;
|
|
18
19
|
notes?: import("../../api/generated/core").ComponentNotes;
|
|
19
20
|
faq?: import("../../api/generated/core").ComponentFAQ;
|