@drttix/drt-sdk 2.0.0 → 2.0.2
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/cjs/index.d.ts +4 -0
- package/dist/cjs/src/definitions/portal.d.ts +6 -0
- package/dist/cjs/src/definitions/portal.js +46 -40
- package/dist/cjs/src/definitions/shopper.d.ts +2 -0
- package/dist/cjs/src/definitions/shopper.js +6 -4
- package/dist/cjs/src/generated/portal/core/OpenAPI.js +1 -1
- package/dist/cjs/src/generated/portal/index.d.ts +23 -1
- package/dist/cjs/src/generated/portal/index.js +10 -2
- package/dist/cjs/src/generated/portal/models/ActivityLogEntryDto.d.ts +13 -0
- package/dist/cjs/src/generated/portal/models/ActivityLogEntryDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/ActivityLogResponseDto.d.ts +5 -0
- package/dist/cjs/src/generated/portal/models/ActivityLogResponseDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/BulkEditRequestDto.d.ts +2 -2
- package/dist/cjs/src/generated/portal/models/CreateDocumentResponseDto.d.ts +1 -0
- package/dist/cjs/src/generated/portal/models/CreateImageFileResponseDto.d.ts +1 -0
- package/dist/cjs/src/generated/portal/models/CreatePriorityCodeRequestDto.d.ts +2 -2
- package/dist/cjs/src/generated/portal/models/CreateShowRequestDto.d.ts +9 -1
- package/dist/cjs/src/generated/portal/models/CreateShowTimeDto.d.ts +52 -0
- package/dist/cjs/src/generated/portal/models/CreateTicketTypeDto.d.ts +4 -1
- package/dist/cjs/src/generated/portal/models/CreateUpdateProductRequestDto.d.ts +4 -4
- package/dist/cjs/src/generated/portal/models/CreateUpdateQuestionRequestDto.d.ts +8 -8
- package/dist/cjs/src/generated/portal/models/DashboardResponseDto.d.ts +4 -0
- package/dist/cjs/src/generated/portal/models/DownloadTicketsResponseDto.d.ts +7 -0
- package/dist/cjs/src/generated/portal/models/DownloadTicketsResponseDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/EditMailRequestDto.d.ts +7 -0
- package/dist/cjs/src/generated/portal/models/EditMailRequestDto.js +9 -0
- package/dist/cjs/src/generated/portal/models/FacebookRescrapeResponseDto.d.ts +12 -0
- package/dist/cjs/src/generated/portal/models/FacebookRescrapeResponseDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/ImportBlockedSeatResponse.d.ts +1 -0
- package/dist/cjs/src/generated/portal/models/OccupancyVisualizerOrderDto.d.ts +5 -0
- package/dist/cjs/src/generated/portal/models/OccupancyVisualizerOrderDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/OccupancyVisualizerShowDto.d.ts +10 -0
- package/dist/cjs/src/generated/portal/models/OccupancyVisualizerShowDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/PerformancePixDetailsResponseDto.d.ts +18 -0
- package/dist/cjs/src/generated/portal/models/PerformancePixDetailsResponseDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/PerformancePixLoginUrlResponseDto.d.ts +11 -0
- package/dist/cjs/src/generated/portal/models/PerformancePixLoginUrlResponseDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/PricingSetBodyDto.d.ts +5 -0
- package/dist/cjs/src/generated/portal/models/PricingSetBodyDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/PricingSetRuleDto.d.ts +10 -0
- package/dist/cjs/src/generated/portal/models/PricingSetRuleDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/ProductDetailResponseDto.d.ts +2 -2
- package/dist/cjs/src/generated/portal/models/RefundDetailResponseDto.d.ts +4 -0
- package/dist/cjs/src/generated/portal/models/RevenueVisualizerInterviewDto.d.ts +5 -0
- package/dist/cjs/src/generated/portal/models/RevenueVisualizerInterviewDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/RevenueVisualizerPricingSetDto.d.ts +7 -0
- package/dist/cjs/src/generated/portal/models/RevenueVisualizerPricingSetDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/RevenueVisualizerRuleDto.d.ts +7 -0
- package/dist/cjs/src/generated/portal/models/RevenueVisualizerRuleDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/RevenueVisualizerSectionDto.d.ts +9 -0
- package/dist/cjs/src/generated/portal/models/RevenueVisualizerSectionDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/RevenueVisualizerShowDto.d.ts +8 -0
- package/dist/cjs/src/generated/portal/models/RevenueVisualizerShowDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/SavePricingSetRequestDto.d.ts +6 -0
- package/dist/cjs/src/generated/portal/models/SavePricingSetRequestDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/SavePricingSetResponseDto.d.ts +4 -0
- package/dist/cjs/src/generated/portal/models/SavePricingSetResponseDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/SeatResponseDto.d.ts +1 -0
- package/dist/cjs/src/generated/portal/models/SettingsDetailsResponseDto.d.ts +8 -0
- package/dist/cjs/src/generated/portal/models/ShowOccupancyVisualizerResponseDto.d.ts +9 -0
- package/dist/cjs/src/generated/portal/models/ShowOccupancyVisualizerResponseDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/ShowPricing.d.ts +1 -0
- package/dist/cjs/src/generated/portal/models/ShowRevenueVisualizerResponseDto.d.ts +12 -0
- package/dist/cjs/src/generated/portal/models/ShowRevenueVisualizerResponseDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/ShowsList.d.ts +44 -0
- package/dist/cjs/src/generated/portal/models/SoldTicketsResponseDto.d.ts +1 -0
- package/dist/cjs/src/generated/portal/models/SuccessResponse.d.ts +1 -0
- package/dist/cjs/src/generated/portal/models/UpdatePriorityCodeRequestDto.d.ts +2 -2
- package/dist/cjs/src/generated/portal/services/ClientToolsPerformancePixService.d.ts +21 -0
- package/dist/cjs/src/generated/portal/services/ClientToolsPerformancePixService.js +40 -0
- package/dist/cjs/src/generated/portal/services/ClientToolsTicketingLinkService.d.ts +9 -0
- package/dist/cjs/src/generated/portal/services/ClientToolsTicketingLinkService.js +16 -0
- package/dist/cjs/src/generated/portal/services/FeaturesBlockedSeatsService.d.ts +4 -3
- package/dist/cjs/src/generated/portal/services/FeaturesBlockedSeatsService.js +2 -2
- package/dist/cjs/src/generated/portal/services/ShowsService.d.ts +32 -0
- package/dist/cjs/src/generated/portal/services/ShowsService.js +63 -0
- package/dist/cjs/src/generated/portal/services/SuperUserActivityLogService.d.ts +26 -0
- package/dist/cjs/src/generated/portal/services/SuperUserActivityLogService.js +54 -0
- package/dist/cjs/src/generated/portal/services/SuperuserPerformancePixService.d.ts +21 -0
- package/dist/cjs/src/generated/portal/services/SuperuserPerformancePixService.js +40 -0
- package/dist/cjs/src/generated/portal/types.d.ts +19 -1
- package/dist/cjs/src/generated/scanner/core/OpenAPI.js +1 -1
- package/dist/cjs/src/generated/shopper/core/OpenAPI.js +1 -1
- package/dist/cjs/src/generated/shopper/index.d.ts +27 -1
- package/dist/cjs/src/generated/shopper/index.js +5 -1
- package/dist/cjs/src/generated/shopper/models/Account.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/AssetDownloadRequest.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/AssetDownloadRequest.js +2 -0
- package/dist/cjs/src/generated/shopper/models/AssetDownloadResponse.d.ts +7 -0
- package/dist/cjs/src/generated/shopper/models/AssetDownloadResponse.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CapabilityManifestDto.d.ts +5 -1
- package/dist/cjs/src/generated/shopper/models/ClientRequestErrorResponse.d.ts +6 -0
- package/dist/cjs/src/generated/shopper/models/ClientRequestErrorResponse.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CreatePaymentLinkBody.d.ts +18 -0
- package/dist/cjs/src/generated/shopper/models/CreatePaymentLinkBody.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CreatePaymentLinkResponse.d.ts +40 -0
- package/dist/cjs/src/generated/shopper/models/CreatePaymentLinkResponse.js +2 -0
- package/dist/cjs/src/generated/shopper/models/DayPassDto.d.ts +10 -0
- package/dist/cjs/src/generated/shopper/models/DayPassDto.js +2 -0
- package/dist/cjs/src/generated/shopper/models/EventDetails.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/EventFormat.d.ts +12 -0
- package/dist/cjs/src/generated/shopper/models/EventGroup.d.ts +20 -0
- package/dist/cjs/src/generated/shopper/models/EventListItem.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/ExchangeValidateResponse.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/FullEventDetails.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/GaSelection.d.ts +5 -0
- package/dist/cjs/src/generated/shopper/models/GaTier.d.ts +11 -0
- package/dist/cjs/src/generated/shopper/models/GetEventsResponse.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/ManifestSeat.d.ts +14 -0
- package/dist/cjs/src/generated/shopper/models/ManifestSeat.js +12 -0
- package/dist/cjs/src/generated/shopper/models/OrderLookupBody.d.ts +14 -0
- package/dist/cjs/src/generated/shopper/models/OrderLookupBody.js +2 -0
- package/dist/cjs/src/generated/shopper/models/OrderLookupResult.d.ts +14 -0
- package/dist/cjs/src/generated/shopper/models/OrderLookupResult.js +2 -0
- package/dist/cjs/src/generated/shopper/models/OrderRefundDetails.d.ts +1 -0
- package/dist/cjs/src/generated/shopper/models/OrderSeat.d.ts +8 -0
- package/dist/cjs/src/generated/shopper/models/PaymentLinkSession.d.ts +18 -0
- package/dist/cjs/src/generated/shopper/models/PaymentLinkSession.js +2 -0
- package/dist/cjs/src/generated/shopper/models/PaymentLinkStatus.d.ts +32 -0
- package/dist/cjs/src/generated/shopper/models/PaymentLinkStatus.js +2 -0
- package/dist/cjs/src/generated/shopper/models/RecalcReturn.d.ts +8 -0
- package/dist/cjs/src/generated/shopper/models/Receipt.d.ts +2 -0
- package/dist/cjs/src/generated/shopper/models/RefundExchangeOffer.d.ts +38 -0
- package/dist/cjs/src/generated/shopper/models/RefundExchangeOffer.js +2 -0
- package/dist/cjs/src/generated/shopper/models/RefundReason.d.ts +1 -0
- package/dist/cjs/src/generated/shopper/models/RefundRequestInfo.d.ts +2 -0
- package/dist/cjs/src/generated/shopper/models/RegisterStreamResponse.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/ResetStreamInviteRequest.d.ts +8 -0
- package/dist/cjs/src/generated/shopper/models/ResetStreamInviteRequest.js +2 -0
- package/dist/cjs/src/generated/shopper/models/SaveStreamInvitesRequest.d.ts +10 -0
- package/dist/cjs/src/generated/shopper/models/SaveStreamInvitesRequest.js +2 -0
- package/dist/cjs/src/generated/shopper/models/SaveStreamInvitesResponse.d.ts +7 -0
- package/dist/cjs/src/generated/shopper/models/SaveStreamInvitesResponse.js +2 -0
- package/dist/cjs/src/generated/shopper/models/SeatInCart.d.ts +8 -0
- package/dist/cjs/src/generated/shopper/models/SeatManifest.d.ts +20 -0
- package/dist/cjs/src/generated/shopper/models/SeatManifest.js +2 -0
- package/dist/cjs/src/generated/shopper/models/SetShowGroupRequest.d.ts +6 -0
- package/dist/cjs/src/generated/shopper/models/SetShowGroupRequest.js +2 -0
- package/dist/cjs/src/generated/shopper/models/SetShowGroupResponse.d.ts +7 -0
- package/dist/cjs/src/generated/shopper/models/SetShowGroupResponse.js +2 -0
- package/dist/cjs/src/generated/shopper/models/SharedStream.d.ts +37 -0
- package/dist/cjs/src/generated/shopper/models/SharedStream.js +2 -0
- package/dist/cjs/src/generated/shopper/models/ShowExtras.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/StartSupportSessionDto.d.ts +10 -0
- package/dist/cjs/src/generated/shopper/models/StartSupportSessionDto.js +2 -0
- package/dist/cjs/src/generated/shopper/models/StreamAuthorization.d.ts +14 -0
- package/dist/cjs/src/generated/shopper/models/StreamAuthorization.js +2 -0
- package/dist/cjs/src/generated/shopper/models/StreamInvite.d.ts +19 -0
- package/dist/cjs/src/generated/shopper/models/StreamInvite.js +2 -0
- package/dist/cjs/src/generated/shopper/models/StreamInviteInput.d.ts +7 -0
- package/dist/cjs/src/generated/shopper/models/StreamInviteInput.js +2 -0
- package/dist/cjs/src/generated/shopper/models/StreamInvitesResponse.d.ts +8 -0
- package/dist/cjs/src/generated/shopper/models/StreamInvitesResponse.js +2 -0
- package/dist/cjs/src/generated/shopper/models/SupportSessionStateDto.d.ts +14 -0
- package/dist/cjs/src/generated/shopper/models/SupportSessionStateDto.js +2 -0
- package/dist/cjs/src/generated/shopper/models/TimedEntrySlot.d.ts +38 -0
- package/dist/cjs/src/generated/shopper/models/TimedEntrySlot.js +2 -0
- package/dist/cjs/src/generated/shopper/services/AccountService.d.ts +8 -4
- package/dist/cjs/src/generated/shopper/services/AccountService.js +20 -9
- package/dist/cjs/src/generated/shopper/services/CartService.d.ts +20 -10
- package/dist/cjs/src/generated/shopper/services/CartService.js +50 -21
- package/dist/cjs/src/generated/shopper/services/CheckoutService.d.ts +16 -8
- package/dist/cjs/src/generated/shopper/services/CheckoutService.js +40 -17
- package/dist/cjs/src/generated/shopper/services/CodeService.d.ts +26 -6
- package/dist/cjs/src/generated/shopper/services/CodeService.js +55 -13
- package/dist/cjs/src/generated/shopper/services/DonationService.d.ts +6 -3
- package/dist/cjs/src/generated/shopper/services/DonationService.js +13 -6
- package/dist/cjs/src/generated/shopper/services/EventService.d.ts +27 -6
- package/dist/cjs/src/generated/shopper/services/EventService.js +55 -13
- package/dist/cjs/src/generated/shopper/services/GiftCardService.d.ts +10 -5
- package/dist/cjs/src/generated/shopper/services/GiftCardService.js +25 -11
- package/dist/cjs/src/generated/shopper/services/OrderService.d.ts +179 -30
- package/dist/cjs/src/generated/shopper/services/OrderService.js +364 -61
- package/dist/cjs/src/generated/shopper/services/PaymentLinkService.d.ts +40 -0
- package/dist/cjs/src/generated/shopper/services/PaymentLinkService.js +78 -0
- package/dist/cjs/src/generated/shopper/services/PaymentService.d.ts +6 -3
- package/dist/cjs/src/generated/shopper/services/PaymentService.js +16 -8
- package/dist/cjs/src/generated/shopper/services/ProductService.d.ts +6 -3
- package/dist/cjs/src/generated/shopper/services/ProductService.js +15 -7
- package/dist/cjs/src/generated/shopper/services/SeatService.d.ts +47 -8
- package/dist/cjs/src/generated/shopper/services/SeatService.js +96 -17
- package/dist/cjs/src/generated/shopper/services/SessionService.d.ts +53 -6
- package/dist/cjs/src/generated/shopper/services/SessionService.js +102 -13
- package/dist/cjs/src/generated/shopper/types.d.ts +25 -1
- package/dist/cjs/src/staging/index.d.ts +4 -0
- package/dist/cjs/src/staging/portal.d.ts +6 -0
- package/dist/cjs/src/staging/portal.js +46 -40
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/src/definitions/portal.d.ts +6 -0
- package/dist/esm/src/definitions/portal.js +6 -0
- package/dist/esm/src/definitions/shopper.d.ts +2 -0
- package/dist/esm/src/definitions/shopper.js +2 -0
- package/dist/esm/src/generated/portal/core/OpenAPI.js +1 -1
- package/dist/esm/src/generated/portal/index.d.ts +23 -1
- package/dist/esm/src/generated/portal/index.js +4 -0
- package/dist/esm/src/generated/portal/models/ActivityLogEntryDto.d.ts +13 -0
- package/dist/esm/src/generated/portal/models/ActivityLogEntryDto.js +1 -0
- package/dist/esm/src/generated/portal/models/ActivityLogResponseDto.d.ts +5 -0
- package/dist/esm/src/generated/portal/models/ActivityLogResponseDto.js +1 -0
- package/dist/esm/src/generated/portal/models/BulkEditRequestDto.d.ts +2 -2
- package/dist/esm/src/generated/portal/models/CreateDocumentResponseDto.d.ts +1 -0
- package/dist/esm/src/generated/portal/models/CreateImageFileResponseDto.d.ts +1 -0
- package/dist/esm/src/generated/portal/models/CreatePriorityCodeRequestDto.d.ts +2 -2
- package/dist/esm/src/generated/portal/models/CreateShowRequestDto.d.ts +9 -1
- package/dist/esm/src/generated/portal/models/CreateShowTimeDto.d.ts +52 -0
- package/dist/esm/src/generated/portal/models/CreateTicketTypeDto.d.ts +4 -1
- package/dist/esm/src/generated/portal/models/CreateUpdateProductRequestDto.d.ts +4 -4
- package/dist/esm/src/generated/portal/models/CreateUpdateQuestionRequestDto.d.ts +8 -8
- package/dist/esm/src/generated/portal/models/DashboardResponseDto.d.ts +4 -0
- package/dist/esm/src/generated/portal/models/DownloadTicketsResponseDto.d.ts +7 -0
- package/dist/esm/src/generated/portal/models/DownloadTicketsResponseDto.js +1 -0
- package/dist/esm/src/generated/portal/models/EditMailRequestDto.d.ts +7 -0
- package/dist/esm/src/generated/portal/models/EditMailRequestDto.js +8 -1
- package/dist/esm/src/generated/portal/models/FacebookRescrapeResponseDto.d.ts +12 -0
- package/dist/esm/src/generated/portal/models/FacebookRescrapeResponseDto.js +1 -0
- package/dist/esm/src/generated/portal/models/ImportBlockedSeatResponse.d.ts +1 -0
- package/dist/esm/src/generated/portal/models/OccupancyVisualizerOrderDto.d.ts +5 -0
- package/dist/esm/src/generated/portal/models/OccupancyVisualizerOrderDto.js +1 -0
- package/dist/esm/src/generated/portal/models/OccupancyVisualizerShowDto.d.ts +10 -0
- package/dist/esm/src/generated/portal/models/OccupancyVisualizerShowDto.js +1 -0
- package/dist/esm/src/generated/portal/models/PerformancePixDetailsResponseDto.d.ts +18 -0
- package/dist/esm/src/generated/portal/models/PerformancePixDetailsResponseDto.js +1 -0
- package/dist/esm/src/generated/portal/models/PerformancePixLoginUrlResponseDto.d.ts +11 -0
- package/dist/esm/src/generated/portal/models/PerformancePixLoginUrlResponseDto.js +1 -0
- package/dist/esm/src/generated/portal/models/PricingSetBodyDto.d.ts +5 -0
- package/dist/esm/src/generated/portal/models/PricingSetBodyDto.js +1 -0
- package/dist/esm/src/generated/portal/models/PricingSetRuleDto.d.ts +10 -0
- package/dist/esm/src/generated/portal/models/PricingSetRuleDto.js +1 -0
- package/dist/esm/src/generated/portal/models/ProductDetailResponseDto.d.ts +2 -2
- package/dist/esm/src/generated/portal/models/RefundDetailResponseDto.d.ts +4 -0
- package/dist/esm/src/generated/portal/models/RevenueVisualizerInterviewDto.d.ts +5 -0
- package/dist/esm/src/generated/portal/models/RevenueVisualizerInterviewDto.js +1 -0
- package/dist/esm/src/generated/portal/models/RevenueVisualizerPricingSetDto.d.ts +7 -0
- package/dist/esm/src/generated/portal/models/RevenueVisualizerPricingSetDto.js +1 -0
- package/dist/esm/src/generated/portal/models/RevenueVisualizerRuleDto.d.ts +7 -0
- package/dist/esm/src/generated/portal/models/RevenueVisualizerRuleDto.js +1 -0
- package/dist/esm/src/generated/portal/models/RevenueVisualizerSectionDto.d.ts +9 -0
- package/dist/esm/src/generated/portal/models/RevenueVisualizerSectionDto.js +1 -0
- package/dist/esm/src/generated/portal/models/RevenueVisualizerShowDto.d.ts +8 -0
- package/dist/esm/src/generated/portal/models/RevenueVisualizerShowDto.js +1 -0
- package/dist/esm/src/generated/portal/models/SavePricingSetRequestDto.d.ts +6 -0
- package/dist/esm/src/generated/portal/models/SavePricingSetRequestDto.js +1 -0
- package/dist/esm/src/generated/portal/models/SavePricingSetResponseDto.d.ts +4 -0
- package/dist/esm/src/generated/portal/models/SavePricingSetResponseDto.js +1 -0
- package/dist/esm/src/generated/portal/models/SeatResponseDto.d.ts +1 -0
- package/dist/esm/src/generated/portal/models/SettingsDetailsResponseDto.d.ts +8 -0
- package/dist/esm/src/generated/portal/models/ShowOccupancyVisualizerResponseDto.d.ts +9 -0
- package/dist/esm/src/generated/portal/models/ShowOccupancyVisualizerResponseDto.js +1 -0
- package/dist/esm/src/generated/portal/models/ShowPricing.d.ts +1 -0
- package/dist/esm/src/generated/portal/models/ShowRevenueVisualizerResponseDto.d.ts +12 -0
- package/dist/esm/src/generated/portal/models/ShowRevenueVisualizerResponseDto.js +1 -0
- package/dist/esm/src/generated/portal/models/ShowsList.d.ts +44 -0
- package/dist/esm/src/generated/portal/models/SoldTicketsResponseDto.d.ts +1 -0
- package/dist/esm/src/generated/portal/models/SuccessResponse.d.ts +1 -0
- package/dist/esm/src/generated/portal/models/UpdatePriorityCodeRequestDto.d.ts +2 -2
- package/dist/esm/src/generated/portal/services/ClientToolsPerformancePixService.d.ts +21 -0
- package/dist/esm/src/generated/portal/services/ClientToolsPerformancePixService.js +36 -0
- package/dist/esm/src/generated/portal/services/ClientToolsTicketingLinkService.d.ts +9 -0
- package/dist/esm/src/generated/portal/services/ClientToolsTicketingLinkService.js +16 -0
- package/dist/esm/src/generated/portal/services/FeaturesBlockedSeatsService.d.ts +4 -3
- package/dist/esm/src/generated/portal/services/FeaturesBlockedSeatsService.js +2 -2
- package/dist/esm/src/generated/portal/services/ShowsService.d.ts +32 -0
- package/dist/esm/src/generated/portal/services/ShowsService.js +63 -0
- package/dist/esm/src/generated/portal/services/SuperUserActivityLogService.d.ts +26 -0
- package/dist/esm/src/generated/portal/services/SuperUserActivityLogService.js +50 -0
- package/dist/esm/src/generated/portal/services/SuperuserPerformancePixService.d.ts +21 -0
- package/dist/esm/src/generated/portal/services/SuperuserPerformancePixService.js +36 -0
- package/dist/esm/src/generated/portal/types.d.ts +19 -1
- package/dist/esm/src/generated/scanner/core/OpenAPI.js +1 -1
- package/dist/esm/src/generated/shopper/core/OpenAPI.js +1 -1
- package/dist/esm/src/generated/shopper/index.d.ts +27 -1
- package/dist/esm/src/generated/shopper/index.js +2 -0
- package/dist/esm/src/generated/shopper/models/Account.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/AssetDownloadRequest.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/AssetDownloadRequest.js +1 -0
- package/dist/esm/src/generated/shopper/models/AssetDownloadResponse.d.ts +7 -0
- package/dist/esm/src/generated/shopper/models/AssetDownloadResponse.js +1 -0
- package/dist/esm/src/generated/shopper/models/CapabilityManifestDto.d.ts +5 -1
- package/dist/esm/src/generated/shopper/models/ClientRequestErrorResponse.d.ts +6 -0
- package/dist/esm/src/generated/shopper/models/ClientRequestErrorResponse.js +1 -0
- package/dist/esm/src/generated/shopper/models/CreatePaymentLinkBody.d.ts +18 -0
- package/dist/esm/src/generated/shopper/models/CreatePaymentLinkBody.js +1 -0
- package/dist/esm/src/generated/shopper/models/CreatePaymentLinkResponse.d.ts +40 -0
- package/dist/esm/src/generated/shopper/models/CreatePaymentLinkResponse.js +1 -0
- package/dist/esm/src/generated/shopper/models/DayPassDto.d.ts +10 -0
- package/dist/esm/src/generated/shopper/models/DayPassDto.js +1 -0
- package/dist/esm/src/generated/shopper/models/EventDetails.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/EventFormat.d.ts +12 -0
- package/dist/esm/src/generated/shopper/models/EventGroup.d.ts +20 -0
- package/dist/esm/src/generated/shopper/models/EventListItem.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/ExchangeValidateResponse.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/FullEventDetails.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/GaSelection.d.ts +5 -0
- package/dist/esm/src/generated/shopper/models/GaTier.d.ts +11 -0
- package/dist/esm/src/generated/shopper/models/GetEventsResponse.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/ManifestSeat.d.ts +14 -0
- package/dist/esm/src/generated/shopper/models/ManifestSeat.js +9 -0
- package/dist/esm/src/generated/shopper/models/OrderLookupBody.d.ts +14 -0
- package/dist/esm/src/generated/shopper/models/OrderLookupBody.js +1 -0
- package/dist/esm/src/generated/shopper/models/OrderLookupResult.d.ts +14 -0
- package/dist/esm/src/generated/shopper/models/OrderLookupResult.js +1 -0
- package/dist/esm/src/generated/shopper/models/OrderRefundDetails.d.ts +1 -0
- package/dist/esm/src/generated/shopper/models/OrderSeat.d.ts +8 -0
- package/dist/esm/src/generated/shopper/models/PaymentLinkSession.d.ts +18 -0
- package/dist/esm/src/generated/shopper/models/PaymentLinkSession.js +1 -0
- package/dist/esm/src/generated/shopper/models/PaymentLinkStatus.d.ts +32 -0
- package/dist/esm/src/generated/shopper/models/PaymentLinkStatus.js +1 -0
- package/dist/esm/src/generated/shopper/models/RecalcReturn.d.ts +8 -0
- package/dist/esm/src/generated/shopper/models/Receipt.d.ts +2 -0
- package/dist/esm/src/generated/shopper/models/RefundExchangeOffer.d.ts +38 -0
- package/dist/esm/src/generated/shopper/models/RefundExchangeOffer.js +1 -0
- package/dist/esm/src/generated/shopper/models/RefundReason.d.ts +1 -0
- package/dist/esm/src/generated/shopper/models/RefundRequestInfo.d.ts +2 -0
- package/dist/esm/src/generated/shopper/models/RegisterStreamResponse.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/ResetStreamInviteRequest.d.ts +8 -0
- package/dist/esm/src/generated/shopper/models/ResetStreamInviteRequest.js +1 -0
- package/dist/esm/src/generated/shopper/models/SaveStreamInvitesRequest.d.ts +10 -0
- package/dist/esm/src/generated/shopper/models/SaveStreamInvitesRequest.js +1 -0
- package/dist/esm/src/generated/shopper/models/SaveStreamInvitesResponse.d.ts +7 -0
- package/dist/esm/src/generated/shopper/models/SaveStreamInvitesResponse.js +1 -0
- package/dist/esm/src/generated/shopper/models/SeatInCart.d.ts +8 -0
- package/dist/esm/src/generated/shopper/models/SeatManifest.d.ts +20 -0
- package/dist/esm/src/generated/shopper/models/SeatManifest.js +1 -0
- package/dist/esm/src/generated/shopper/models/SetShowGroupRequest.d.ts +6 -0
- package/dist/esm/src/generated/shopper/models/SetShowGroupRequest.js +1 -0
- package/dist/esm/src/generated/shopper/models/SetShowGroupResponse.d.ts +7 -0
- package/dist/esm/src/generated/shopper/models/SetShowGroupResponse.js +1 -0
- package/dist/esm/src/generated/shopper/models/SharedStream.d.ts +37 -0
- package/dist/esm/src/generated/shopper/models/SharedStream.js +1 -0
- package/dist/esm/src/generated/shopper/models/ShowExtras.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/StartSupportSessionDto.d.ts +10 -0
- package/dist/esm/src/generated/shopper/models/StartSupportSessionDto.js +1 -0
- package/dist/esm/src/generated/shopper/models/StreamAuthorization.d.ts +14 -0
- package/dist/esm/src/generated/shopper/models/StreamAuthorization.js +1 -0
- package/dist/esm/src/generated/shopper/models/StreamInvite.d.ts +19 -0
- package/dist/esm/src/generated/shopper/models/StreamInvite.js +1 -0
- package/dist/esm/src/generated/shopper/models/StreamInviteInput.d.ts +7 -0
- package/dist/esm/src/generated/shopper/models/StreamInviteInput.js +1 -0
- package/dist/esm/src/generated/shopper/models/StreamInvitesResponse.d.ts +8 -0
- package/dist/esm/src/generated/shopper/models/StreamInvitesResponse.js +1 -0
- package/dist/esm/src/generated/shopper/models/SupportSessionStateDto.d.ts +14 -0
- package/dist/esm/src/generated/shopper/models/SupportSessionStateDto.js +1 -0
- package/dist/esm/src/generated/shopper/models/TimedEntrySlot.d.ts +38 -0
- package/dist/esm/src/generated/shopper/models/TimedEntrySlot.js +1 -0
- package/dist/esm/src/generated/shopper/services/AccountService.d.ts +8 -4
- package/dist/esm/src/generated/shopper/services/AccountService.js +20 -9
- package/dist/esm/src/generated/shopper/services/CartService.d.ts +20 -10
- package/dist/esm/src/generated/shopper/services/CartService.js +50 -21
- package/dist/esm/src/generated/shopper/services/CheckoutService.d.ts +16 -8
- package/dist/esm/src/generated/shopper/services/CheckoutService.js +40 -17
- package/dist/esm/src/generated/shopper/services/CodeService.d.ts +26 -6
- package/dist/esm/src/generated/shopper/services/CodeService.js +55 -13
- package/dist/esm/src/generated/shopper/services/DonationService.d.ts +6 -3
- package/dist/esm/src/generated/shopper/services/DonationService.js +13 -6
- package/dist/esm/src/generated/shopper/services/EventService.d.ts +27 -6
- package/dist/esm/src/generated/shopper/services/EventService.js +55 -13
- package/dist/esm/src/generated/shopper/services/GiftCardService.d.ts +10 -5
- package/dist/esm/src/generated/shopper/services/GiftCardService.js +25 -11
- package/dist/esm/src/generated/shopper/services/OrderService.d.ts +179 -30
- package/dist/esm/src/generated/shopper/services/OrderService.js +364 -61
- package/dist/esm/src/generated/shopper/services/PaymentLinkService.d.ts +40 -0
- package/dist/esm/src/generated/shopper/services/PaymentLinkService.js +74 -0
- package/dist/esm/src/generated/shopper/services/PaymentService.d.ts +6 -3
- package/dist/esm/src/generated/shopper/services/PaymentService.js +16 -8
- package/dist/esm/src/generated/shopper/services/ProductService.d.ts +6 -3
- package/dist/esm/src/generated/shopper/services/ProductService.js +15 -7
- package/dist/esm/src/generated/shopper/services/SeatService.d.ts +47 -8
- package/dist/esm/src/generated/shopper/services/SeatService.js +96 -17
- package/dist/esm/src/generated/shopper/services/SessionService.d.ts +53 -6
- package/dist/esm/src/generated/shopper/services/SessionService.js +102 -13
- package/dist/esm/src/generated/shopper/types.d.ts +25 -1
- package/dist/esm/src/staging/index.d.ts +4 -0
- package/dist/esm/src/staging/portal.d.ts +6 -0
- package/dist/esm/src/staging/portal.js +6 -0
- package/package.json +1 -1
- package/src/definitions/portal.ts +6 -0
- package/src/definitions/shopper.ts +2 -0
- package/src/generated/portal/core/OpenAPI.ts +1 -1
- package/src/generated/portal/index.ts +23 -1
- package/src/generated/portal/models/ActivityLogEntryDto.ts +18 -0
- package/src/generated/portal/models/ActivityLogResponseDto.ts +10 -0
- package/src/generated/portal/models/BulkEditRequestDto.ts +2 -2
- package/src/generated/portal/models/CreateDocumentResponseDto.ts +1 -0
- package/src/generated/portal/models/CreateImageFileResponseDto.ts +1 -0
- package/src/generated/portal/models/CreatePriorityCodeRequestDto.ts +2 -2
- package/src/generated/portal/models/CreateShowRequestDto.ts +9 -1
- package/src/generated/portal/models/CreateShowTimeDto.ts +52 -0
- package/src/generated/portal/models/CreateTicketTypeDto.ts +4 -1
- package/src/generated/portal/models/CreateUpdateProductRequestDto.ts +4 -4
- package/src/generated/portal/models/CreateUpdateQuestionRequestDto.ts +8 -8
- package/src/generated/portal/models/DashboardResponseDto.ts +4 -0
- package/src/generated/portal/models/DownloadTicketsResponseDto.ts +12 -0
- package/src/generated/portal/models/EditMailRequestDto.ts +7 -0
- package/src/generated/portal/models/FacebookRescrapeResponseDto.ts +17 -0
- package/src/generated/portal/models/ImportBlockedSeatResponse.ts +1 -0
- package/src/generated/portal/models/OccupancyVisualizerOrderDto.ts +10 -0
- package/src/generated/portal/models/OccupancyVisualizerShowDto.ts +15 -0
- package/src/generated/portal/models/PerformancePixDetailsResponseDto.ts +23 -0
- package/src/generated/portal/models/PerformancePixLoginUrlResponseDto.ts +16 -0
- package/src/generated/portal/models/PricingSetBodyDto.ts +10 -0
- package/src/generated/portal/models/PricingSetRuleDto.ts +15 -0
- package/src/generated/portal/models/ProductDetailResponseDto.ts +2 -2
- package/src/generated/portal/models/RefundDetailResponseDto.ts +4 -0
- package/src/generated/portal/models/RevenueVisualizerInterviewDto.ts +10 -0
- package/src/generated/portal/models/RevenueVisualizerPricingSetDto.ts +12 -0
- package/src/generated/portal/models/RevenueVisualizerRuleDto.ts +12 -0
- package/src/generated/portal/models/RevenueVisualizerSectionDto.ts +14 -0
- package/src/generated/portal/models/RevenueVisualizerShowDto.ts +13 -0
- package/src/generated/portal/models/SavePricingSetRequestDto.ts +11 -0
- package/src/generated/portal/models/SavePricingSetResponseDto.ts +9 -0
- package/src/generated/portal/models/SeatResponseDto.ts +1 -0
- package/src/generated/portal/models/SettingsDetailsResponseDto.ts +8 -0
- package/src/generated/portal/models/ShowOccupancyVisualizerResponseDto.ts +14 -0
- package/src/generated/portal/models/ShowPricing.ts +1 -0
- package/src/generated/portal/models/ShowRevenueVisualizerResponseDto.ts +17 -0
- package/src/generated/portal/models/ShowsList.ts +44 -0
- package/src/generated/portal/models/SoldTicketsResponseDto.ts +1 -0
- package/src/generated/portal/models/SuccessResponse.ts +1 -0
- package/src/generated/portal/models/UpdatePriorityCodeRequestDto.ts +2 -2
- package/src/generated/portal/services/ClientToolsPerformancePixService.ts +47 -0
- package/src/generated/portal/services/ClientToolsTicketingLinkService.ts +19 -0
- package/src/generated/portal/services/FeaturesBlockedSeatsService.ts +4 -3
- package/src/generated/portal/services/ShowsService.ts +77 -0
- package/src/generated/portal/services/SuperUserActivityLogService.ts +66 -0
- package/src/generated/portal/services/SuperuserPerformancePixService.ts +47 -0
- package/src/generated/portal/types.ts +19 -1
- package/src/generated/scanner/core/OpenAPI.ts +1 -1
- package/src/generated/shopper/core/OpenAPI.ts +1 -1
- package/src/generated/shopper/index.ts +27 -1
- package/src/generated/shopper/models/Account.ts +4 -0
- package/src/generated/shopper/models/AssetDownloadRequest.ts +9 -0
- package/src/generated/shopper/models/AssetDownloadResponse.ts +12 -0
- package/src/generated/shopper/models/CapabilityManifestDto.ts +5 -1
- package/src/generated/shopper/models/ClientRequestErrorResponse.ts +11 -0
- package/src/generated/shopper/models/CreatePaymentLinkBody.ts +23 -0
- package/src/generated/shopper/models/CreatePaymentLinkResponse.ts +45 -0
- package/src/generated/shopper/models/DayPassDto.ts +15 -0
- package/src/generated/shopper/models/EventDetails.ts +4 -0
- package/src/generated/shopper/models/EventFormat.ts +12 -0
- package/src/generated/shopper/models/EventGroup.ts +20 -0
- package/src/generated/shopper/models/EventListItem.ts +4 -0
- package/src/generated/shopper/models/ExchangeValidateResponse.ts +4 -0
- package/src/generated/shopper/models/FullEventDetails.ts +4 -0
- package/src/generated/shopper/models/GaSelection.ts +5 -0
- package/src/generated/shopper/models/GaTier.ts +11 -0
- package/src/generated/shopper/models/GetEventsResponse.ts +4 -0
- package/src/generated/shopper/models/ManifestSeat.ts +19 -0
- package/src/generated/shopper/models/OrderLookupBody.ts +19 -0
- package/src/generated/shopper/models/OrderLookupResult.ts +19 -0
- package/src/generated/shopper/models/OrderRefundDetails.ts +1 -0
- package/src/generated/shopper/models/OrderSeat.ts +8 -0
- package/src/generated/shopper/models/PaymentLinkSession.ts +23 -0
- package/src/generated/shopper/models/PaymentLinkStatus.ts +37 -0
- package/src/generated/shopper/models/RecalcReturn.ts +8 -0
- package/src/generated/shopper/models/Receipt.ts +2 -0
- package/src/generated/shopper/models/RefundExchangeOffer.ts +43 -0
- package/src/generated/shopper/models/RefundReason.ts +1 -0
- package/src/generated/shopper/models/RefundRequestInfo.ts +2 -0
- package/src/generated/shopper/models/RegisterStreamResponse.ts +4 -0
- package/src/generated/shopper/models/ResetStreamInviteRequest.ts +13 -0
- package/src/generated/shopper/models/SaveStreamInvitesRequest.ts +15 -0
- package/src/generated/shopper/models/SaveStreamInvitesResponse.ts +12 -0
- package/src/generated/shopper/models/SeatInCart.ts +8 -0
- package/src/generated/shopper/models/SeatManifest.ts +25 -0
- package/src/generated/shopper/models/SetShowGroupRequest.ts +11 -0
- package/src/generated/shopper/models/SetShowGroupResponse.ts +12 -0
- package/src/generated/shopper/models/SharedStream.ts +42 -0
- package/src/generated/shopper/models/ShowExtras.ts +4 -0
- package/src/generated/shopper/models/StartSupportSessionDto.ts +15 -0
- package/src/generated/shopper/models/StreamAuthorization.ts +19 -0
- package/src/generated/shopper/models/StreamInvite.ts +24 -0
- package/src/generated/shopper/models/StreamInviteInput.ts +12 -0
- package/src/generated/shopper/models/StreamInvitesResponse.ts +13 -0
- package/src/generated/shopper/models/SupportSessionStateDto.ts +19 -0
- package/src/generated/shopper/models/TimedEntrySlot.ts +43 -0
- package/src/generated/shopper/services/AccountService.ts +20 -4
- package/src/generated/shopper/services/CartService.ts +50 -10
- package/src/generated/shopper/services/CheckoutService.ts +40 -8
- package/src/generated/shopper/services/CodeService.ts +60 -6
- package/src/generated/shopper/services/DonationService.ts +13 -2
- package/src/generated/shopper/services/EventService.ts +61 -6
- package/src/generated/shopper/services/GiftCardService.ts +25 -5
- package/src/generated/shopper/services/OrderService.ts +411 -30
- package/src/generated/shopper/services/PaymentLinkService.ts +93 -0
- package/src/generated/shopper/services/PaymentService.ts +16 -4
- package/src/generated/shopper/services/ProductService.ts +15 -3
- package/src/generated/shopper/services/SeatService.ts +105 -8
- package/src/generated/shopper/services/SessionService.ts +116 -6
- package/src/generated/shopper/types.ts +25 -1
- package/src/staging/portal.ts +6 -0
- package/src/generated/shopper/models/PaymentFail.ts +0 -23
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SeatService = void 0;
|
|
4
4
|
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
5
|
const request_1 = require("../core/request");
|
|
6
|
-
const sdkConfig_1 = require("../../../functions/sdkConfig");
|
|
7
6
|
class SeatService {
|
|
8
7
|
/**
|
|
9
8
|
* Health check endpoint
|
|
@@ -27,14 +26,47 @@ class SeatService {
|
|
|
27
26
|
* Streams the occupancy bitfield as application/octet-stream — one bit per seat, MSB-first, in seat-number order. Served from this API's ingest cache (the seat engine pushes every change here), or read from the engine directly on a cache miss. This is the first-paint read and the POLLING fallback; live updates reach the browser over the websocket room provisioned by GET /seat/occupancy/socket.
|
|
28
27
|
* @param eventId The event to read occupancy for.
|
|
29
28
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
29
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
30
30
|
* @returns binary The packed occupancy bitfield.
|
|
31
31
|
* @throws ApiError
|
|
32
32
|
*/
|
|
33
|
-
static getSeatOccupancy(eventId, context) {
|
|
33
|
+
static getSeatOccupancy(eventId, context, xDrtDomain) {
|
|
34
34
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
35
35
|
method: 'GET',
|
|
36
36
|
url: '/seat/occupancy',
|
|
37
|
-
headers:
|
|
37
|
+
headers: {
|
|
38
|
+
'x-drt-domain': xDrtDomain,
|
|
39
|
+
},
|
|
40
|
+
query: {
|
|
41
|
+
'eventId': eventId,
|
|
42
|
+
},
|
|
43
|
+
errors: {
|
|
44
|
+
400: `Bad Request error with error details.`,
|
|
45
|
+
404: `Not found error with error details.`,
|
|
46
|
+
500: `Internal Server Error, please contact developers.`,
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Get live entry-window occupancy for a timed-entry show
|
|
52
|
+
* How full each ENTRY WINDOW of a timed-entry show (`show_type` 5) is right now: `{eventId, capacity: {max, taken, available}, sections: [{sectionId, taken}]}`. A `sectionId` is a window — the same `show_section` row `GET /event/{id}/ga`'s `slots` describe — and `taken` counts sold, held and reservation-blocked seats alike, the same count those slots carry at first paint.
|
|
53
|
+
*
|
|
54
|
+
* CAPACITY IS NOT REPEATED PER WINDOW. It is static show configuration and already arrives with the slot list; subtract `taken` from a slot’s own `capacity` to get what is left. The show-level `capacity` block here is NOT the sum of the windows: a venue cap can close every window while none reached its own limit.
|
|
55
|
+
*
|
|
56
|
+
* Served from this API's ingest cache (the seat engine pushes every change here), or read from the engine directly on a miss. This is the first-paint read and the POLLING fallback; live updates reach the browser as `ga-occupancy-update` frames in the room provisioned by GET /seat/occupancy/socket.
|
|
57
|
+
* @param eventId The timed-entry show to read window occupancy for.
|
|
58
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
59
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
60
|
+
* @returns any The entry-window occupancy snapshot.
|
|
61
|
+
* @throws ApiError
|
|
62
|
+
*/
|
|
63
|
+
static getGaSeatOccupancy(eventId, context, xDrtDomain) {
|
|
64
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
65
|
+
method: 'GET',
|
|
66
|
+
url: '/seat/occupancy/ga',
|
|
67
|
+
headers: {
|
|
68
|
+
'x-drt-domain': xDrtDomain,
|
|
69
|
+
},
|
|
38
70
|
query: {
|
|
39
71
|
'eventId': eventId,
|
|
40
72
|
},
|
|
@@ -50,14 +82,43 @@ class SeatService {
|
|
|
50
82
|
* Mints a listen-only websocket-server token bound to this event's occupancy room and returns the connection details: {url, token, roomId, event, expiresAt}. The browser connects with `new WebSocket(url, ["bearer." + token])` and receives {type:"event", event:"occupancy-update", payload:{occupancy}} frames — a 0/1 string, one character per seat, in seat-number order. The token cannot write: the websocket server enforces the listen-only capability itself. No snapshot arrives on join — clients paint from GET /seat/occupancy first. A 503 means "run poll-only for now", not a page failure.
|
|
51
83
|
* @param eventId The event whose occupancy room to join.
|
|
52
84
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
85
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
53
86
|
* @returns any The websocket connection details.
|
|
54
87
|
* @throws ApiError
|
|
55
88
|
*/
|
|
56
|
-
static getSeatOccupancySocket(eventId, context) {
|
|
89
|
+
static getSeatOccupancySocket(eventId, context, xDrtDomain) {
|
|
57
90
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
58
91
|
method: 'GET',
|
|
59
92
|
url: '/seat/occupancy/socket',
|
|
60
|
-
headers:
|
|
93
|
+
headers: {
|
|
94
|
+
'x-drt-domain': xDrtDomain,
|
|
95
|
+
},
|
|
96
|
+
query: {
|
|
97
|
+
'eventId': eventId,
|
|
98
|
+
},
|
|
99
|
+
errors: {
|
|
100
|
+
400: `Bad Request error with error details.`,
|
|
101
|
+
404: `Not found error with error details.`,
|
|
102
|
+
500: `Internal Server Error, please contact developers.`,
|
|
103
|
+
},
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Who holds every occupied seat (staff only)
|
|
108
|
+
* One show's occupied seats keyed by seat number — the same numbering GET /seat/occupancy uses — each carrying the buyer name for a sold seat, and no name for a seat that is merely held or blocked. Available seats are absent from the map. Requires a logged-in operator or a whitelisted IP; everyone else gets 403 NOT_STAFF. Cached in memory per studio+event for about five minutes and NEVER refreshed in place, so an entry can lag a very recent sale — `generatedAt` says how far.
|
|
109
|
+
* @param eventId The event to read the manifest for.
|
|
110
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
111
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
112
|
+
* @returns SeatManifest The seat manifest for this event.
|
|
113
|
+
* @throws ApiError
|
|
114
|
+
*/
|
|
115
|
+
static getSeatManifest(eventId, context, xDrtDomain) {
|
|
116
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
117
|
+
method: 'GET',
|
|
118
|
+
url: '/seat/manifest',
|
|
119
|
+
headers: {
|
|
120
|
+
'x-drt-domain': xDrtDomain,
|
|
121
|
+
},
|
|
61
122
|
query: {
|
|
62
123
|
'eventId': eventId,
|
|
63
124
|
},
|
|
@@ -73,14 +134,17 @@ class SeatService {
|
|
|
73
134
|
* Holds a reserved seat for the shopper.
|
|
74
135
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
75
136
|
* @param requestBody Seat data for holding a reserved seat
|
|
137
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
76
138
|
* @returns SeatHoldReturn Successfully held the reserved seat.
|
|
77
139
|
* @throws ApiError
|
|
78
140
|
*/
|
|
79
|
-
static holdReservedSeat(requestBody, context) {
|
|
141
|
+
static holdReservedSeat(requestBody, context, xDrtDomain) {
|
|
80
142
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
81
143
|
method: 'POST',
|
|
82
144
|
url: '/seat/hold-reserved',
|
|
83
|
-
headers:
|
|
145
|
+
headers: {
|
|
146
|
+
'x-drt-domain': xDrtDomain,
|
|
147
|
+
},
|
|
84
148
|
body: requestBody,
|
|
85
149
|
mediaType: 'application/json',
|
|
86
150
|
errors: {
|
|
@@ -95,14 +159,17 @@ class SeatService {
|
|
|
95
159
|
* Holds a general admission seat for the shopper.
|
|
96
160
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
97
161
|
* @param requestBody Seat data for holding a general admission seat
|
|
162
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
98
163
|
* @returns GAResponse Successfully held the general admission seat.
|
|
99
164
|
* @throws ApiError
|
|
100
165
|
*/
|
|
101
|
-
static holdGaSeat(requestBody, context) {
|
|
166
|
+
static holdGaSeat(requestBody, context, xDrtDomain) {
|
|
102
167
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
103
168
|
method: 'POST',
|
|
104
169
|
url: '/seat/hold-ga',
|
|
105
|
-
headers:
|
|
170
|
+
headers: {
|
|
171
|
+
'x-drt-domain': xDrtDomain,
|
|
172
|
+
},
|
|
106
173
|
body: requestBody,
|
|
107
174
|
mediaType: 'application/json',
|
|
108
175
|
errors: {
|
|
@@ -117,14 +184,17 @@ class SeatService {
|
|
|
117
184
|
* Holds a reserved seat for a BA event.
|
|
118
185
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
119
186
|
* @param requestBody Seat data for holding a reserved seat for a BA event
|
|
187
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
120
188
|
* @returns SeatHoldReturn Successfully held the reserved seat for a BA event.
|
|
121
189
|
* @throws ApiError
|
|
122
190
|
*/
|
|
123
|
-
static holdBaSeat(requestBody, context) {
|
|
191
|
+
static holdBaSeat(requestBody, context, xDrtDomain) {
|
|
124
192
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
125
193
|
method: 'POST',
|
|
126
194
|
url: '/seat/hold-ba',
|
|
127
|
-
headers:
|
|
195
|
+
headers: {
|
|
196
|
+
'x-drt-domain': xDrtDomain,
|
|
197
|
+
},
|
|
128
198
|
body: requestBody,
|
|
129
199
|
mediaType: 'application/json',
|
|
130
200
|
errors: {
|
|
@@ -139,14 +209,17 @@ class SeatService {
|
|
|
139
209
|
* Releases a reserved seat for the shopper.
|
|
140
210
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
141
211
|
* @param requestBody Seat data for releasing a reserved seat
|
|
212
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
142
213
|
* @returns SeatHoldObject Successfully released the reserved seat. Carries the embedded post-release cart state (SEAT-1C).
|
|
143
214
|
* @throws ApiError
|
|
144
215
|
*/
|
|
145
|
-
static releaseReservedSeat(requestBody, context) {
|
|
216
|
+
static releaseReservedSeat(requestBody, context, xDrtDomain) {
|
|
146
217
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
147
218
|
method: 'DELETE',
|
|
148
219
|
url: '/seat/release-reserved',
|
|
149
|
-
headers:
|
|
220
|
+
headers: {
|
|
221
|
+
'x-drt-domain': xDrtDomain,
|
|
222
|
+
},
|
|
150
223
|
body: requestBody,
|
|
151
224
|
mediaType: 'application/json',
|
|
152
225
|
errors: {
|
|
@@ -161,14 +234,17 @@ class SeatService {
|
|
|
161
234
|
* Releases a general admission seat for the shopper.
|
|
162
235
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
163
236
|
* @param requestBody Seat data for releasing a general admission seat
|
|
237
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
164
238
|
* @returns any
|
|
165
239
|
* @throws ApiError
|
|
166
240
|
*/
|
|
167
|
-
static releaseGaSeat(requestBody, context) {
|
|
241
|
+
static releaseGaSeat(requestBody, context, xDrtDomain) {
|
|
168
242
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
169
243
|
method: 'DELETE',
|
|
170
244
|
url: '/seat/release-ga',
|
|
171
|
-
headers:
|
|
245
|
+
headers: {
|
|
246
|
+
'x-drt-domain': xDrtDomain,
|
|
247
|
+
},
|
|
172
248
|
body: requestBody,
|
|
173
249
|
mediaType: 'application/json',
|
|
174
250
|
errors: {
|
|
@@ -183,14 +259,17 @@ class SeatService {
|
|
|
183
259
|
* Updates the tier information for a seat.
|
|
184
260
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
185
261
|
* @param requestBody Data for updating tier information
|
|
262
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
186
263
|
* @returns UpdateTierData Successfully updated the tier information.
|
|
187
264
|
* @throws ApiError
|
|
188
265
|
*/
|
|
189
|
-
static updateTier(requestBody, context) {
|
|
266
|
+
static updateTier(requestBody, context, xDrtDomain) {
|
|
190
267
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
191
268
|
method: 'POST',
|
|
192
269
|
url: '/seat/update-tier',
|
|
193
|
-
headers:
|
|
270
|
+
headers: {
|
|
271
|
+
'x-drt-domain': xDrtDomain,
|
|
272
|
+
},
|
|
194
273
|
body: requestBody,
|
|
195
274
|
mediaType: 'application/json',
|
|
196
275
|
errors: {
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import type { CapabilityManifestDto } from '../models/CapabilityManifestDto';
|
|
2
2
|
import type { CreateSessionDto } from '../models/CreateSessionDto';
|
|
3
|
+
import type { DayPassDto } from '../models/DayPassDto';
|
|
3
4
|
import type { ExtendTimerDto } from '../models/ExtendTimerDto';
|
|
4
5
|
import type { ExtendTimerResponseDto } from '../models/ExtendTimerResponseDto';
|
|
5
6
|
import type { SessionHeartbeatDto } from '../models/SessionHeartbeatDto';
|
|
6
7
|
import type { SessionInfoDto } from '../models/SessionInfoDto';
|
|
7
8
|
import type { SetLanguageDto } from '../models/SetLanguageDto';
|
|
9
|
+
import type { StartSupportSessionDto } from '../models/StartSupportSessionDto';
|
|
10
|
+
import type { SupportSessionStateDto } from '../models/SupportSessionStateDto';
|
|
8
11
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
9
12
|
export declare class SessionService {
|
|
10
13
|
/**
|
|
@@ -19,40 +22,44 @@ export declare class SessionService {
|
|
|
19
22
|
* Get Session information
|
|
20
23
|
* Retrieves all Sessions available for the specified account.
|
|
21
24
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
25
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
22
26
|
* @returns SessionInfoDto Returns session data for the provided shopperguid.
|
|
23
27
|
* @throws ApiError
|
|
24
28
|
*/
|
|
25
29
|
static getSessions(context?: {
|
|
26
30
|
shopperGuid?: string;
|
|
27
31
|
accountId?: string;
|
|
28
|
-
}): CancelablePromise<SessionInfoDto>;
|
|
32
|
+
}, xDrtDomain?: string): CancelablePromise<SessionInfoDto>;
|
|
29
33
|
/**
|
|
30
34
|
* Get Session Timer Heartbeat
|
|
31
35
|
* Retrieves the heartbeat for the sessions timer in ms.
|
|
32
36
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
37
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
33
38
|
* @returns SessionHeartbeatDto Returns session data for the provided shopperguid.
|
|
34
39
|
* @throws ApiError
|
|
35
40
|
*/
|
|
36
41
|
static getHeartbeat(context?: {
|
|
37
42
|
shopperGuid?: string;
|
|
38
43
|
accountId?: string;
|
|
39
|
-
}): CancelablePromise<SessionHeartbeatDto>;
|
|
44
|
+
}, xDrtDomain?: string): CancelablePromise<SessionHeartbeatDto>;
|
|
40
45
|
/**
|
|
41
46
|
* Set the session language
|
|
42
47
|
* Updates the language stored on the shopper session (legacy lang-set).
|
|
43
48
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
44
49
|
* @param requestBody
|
|
50
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
45
51
|
* @returns SessionInfoDto Returns the updated session.
|
|
46
52
|
* @throws ApiError
|
|
47
53
|
*/
|
|
48
54
|
static setLanguage(requestBody: SetLanguageDto, context?: {
|
|
49
55
|
shopperGuid?: string;
|
|
50
56
|
accountId?: string;
|
|
51
|
-
}): CancelablePromise<SessionInfoDto>;
|
|
57
|
+
}, xDrtDomain?: string): CancelablePromise<SessionInfoDto>;
|
|
52
58
|
/**
|
|
53
59
|
* Extend the cart timer
|
|
54
60
|
* Extends the cart-hold timer via the Session-Service (legacy extend-cart-timeout). Returns the seconds remaining after extension.
|
|
55
61
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
62
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
56
63
|
* @param requestBody
|
|
57
64
|
* @returns ExtendTimerResponseDto Returns the extended timer state.
|
|
58
65
|
* @throws ApiError
|
|
@@ -60,27 +67,67 @@ export declare class SessionService {
|
|
|
60
67
|
static extendTimer(context?: {
|
|
61
68
|
shopperGuid?: string;
|
|
62
69
|
accountId?: string;
|
|
63
|
-
}, requestBody?: ExtendTimerDto): CancelablePromise<ExtendTimerResponseDto>;
|
|
70
|
+
}, xDrtDomain?: string, requestBody?: ExtendTimerDto): CancelablePromise<ExtendTimerResponseDto>;
|
|
71
|
+
/**
|
|
72
|
+
* Redeem a day-pass access code
|
|
73
|
+
* Validates a studio's day-pass access code (legacy ac.cfm: MD5(studioId + salt + MM/DD/YYYY), Eastern Time, rotates daily) and sets usingDayPass on the session. With shopperGuid, the pass is set on THAT session and its data is returned so the caller adopts it; without, on the caller's own session. An invalid code clears the caller's pass and answers 400 INVALID_ACCESS_CODE.
|
|
74
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
75
|
+
* @param requestBody
|
|
76
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
77
|
+
* @returns SessionInfoDto The session that now holds the day pass.
|
|
78
|
+
* @throws ApiError
|
|
79
|
+
*/
|
|
80
|
+
static activateDayPass(requestBody: DayPassDto, context?: {
|
|
81
|
+
shopperGuid?: string;
|
|
82
|
+
accountId?: string;
|
|
83
|
+
}, xDrtDomain?: string): CancelablePromise<SessionInfoDto>;
|
|
64
84
|
/**
|
|
65
85
|
* Shorten the cart timer
|
|
66
86
|
* Shortens the cart-hold timer to 5 seconds from now via the Session-Service (legacy cart-shorten), clearing show_group_id and moving the held seats’ release times with it. Staff debug tool for walking the cart-timeout flow on demand.
|
|
67
87
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
88
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
68
89
|
* @returns ExtendTimerResponseDto Returns the shortened timer state.
|
|
69
90
|
* @throws ApiError
|
|
70
91
|
*/
|
|
71
92
|
static shortenTimer(context?: {
|
|
72
93
|
shopperGuid?: string;
|
|
73
94
|
accountId?: string;
|
|
74
|
-
}): CancelablePromise<ExtendTimerResponseDto>;
|
|
95
|
+
}, xDrtDomain?: string): CancelablePromise<ExtendTimerResponseDto>;
|
|
75
96
|
/**
|
|
76
97
|
* What this caller may see
|
|
77
98
|
* Returns the operator flag, the debug IP-allowlist flag, and the resulting capability list for the calling session. A rendering hint for the UI — never a permission.
|
|
78
99
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
100
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
79
101
|
* @returns CapabilityManifestDto Capability manifest for the calling session.
|
|
80
102
|
* @throws ApiError
|
|
81
103
|
*/
|
|
82
104
|
static getCapabilities(context?: {
|
|
83
105
|
shopperGuid?: string;
|
|
84
106
|
accountId?: string;
|
|
85
|
-
}): CancelablePromise<CapabilityManifestDto>;
|
|
107
|
+
}, xDrtDomain?: string): CancelablePromise<CapabilityManifestDto>;
|
|
108
|
+
/**
|
|
109
|
+
* Technical assistance state for this session
|
|
110
|
+
* Returns the name on the shopper's session row and whether the session is already flagged for technical assistance. Prefill for the TECH ASSIST tool (legacy rpc/technical-assistant.cfm).
|
|
111
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
112
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
113
|
+
* @returns SupportSessionStateDto The technical assistance state of the calling session.
|
|
114
|
+
* @throws ApiError
|
|
115
|
+
*/
|
|
116
|
+
static getSupportState(context?: {
|
|
117
|
+
shopperGuid?: string;
|
|
118
|
+
accountId?: string;
|
|
119
|
+
}, xDrtDomain?: string): CancelablePromise<SupportSessionStateDto>;
|
|
120
|
+
/**
|
|
121
|
+
* Start a technical assistance session
|
|
122
|
+
* Records the shopper's name on the session row and raises the support flag, so a support representative can find this session (legacy rpc/technical-assistance-start.cfm).
|
|
123
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
124
|
+
* @param requestBody
|
|
125
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
126
|
+
* @returns SupportSessionStateDto The technical assistance state after the flag was raised.
|
|
127
|
+
* @throws ApiError
|
|
128
|
+
*/
|
|
129
|
+
static startSupportSession(requestBody: StartSupportSessionDto, context?: {
|
|
130
|
+
shopperGuid?: string;
|
|
131
|
+
accountId?: string;
|
|
132
|
+
}, xDrtDomain?: string): CancelablePromise<SupportSessionStateDto>;
|
|
86
133
|
}
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SessionService = void 0;
|
|
4
4
|
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
5
|
const request_1 = require("../core/request");
|
|
6
|
-
const sdkConfig_1 = require("../../../functions/sdkConfig");
|
|
7
6
|
class SessionService {
|
|
8
7
|
/**
|
|
9
8
|
* Create a new session
|
|
@@ -29,14 +28,17 @@ class SessionService {
|
|
|
29
28
|
* Get Session information
|
|
30
29
|
* Retrieves all Sessions available for the specified account.
|
|
31
30
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
31
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
32
32
|
* @returns SessionInfoDto Returns session data for the provided shopperguid.
|
|
33
33
|
* @throws ApiError
|
|
34
34
|
*/
|
|
35
|
-
static getSessions(context) {
|
|
35
|
+
static getSessions(context, xDrtDomain) {
|
|
36
36
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
37
37
|
method: 'GET',
|
|
38
38
|
url: '/session',
|
|
39
|
-
headers:
|
|
39
|
+
headers: {
|
|
40
|
+
'x-drt-domain': xDrtDomain,
|
|
41
|
+
},
|
|
40
42
|
errors: {
|
|
41
43
|
400: `Bad Request error with error details.`,
|
|
42
44
|
404: `Not found error with error details.`,
|
|
@@ -48,14 +50,17 @@ class SessionService {
|
|
|
48
50
|
* Get Session Timer Heartbeat
|
|
49
51
|
* Retrieves the heartbeat for the sessions timer in ms.
|
|
50
52
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
53
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
51
54
|
* @returns SessionHeartbeatDto Returns session data for the provided shopperguid.
|
|
52
55
|
* @throws ApiError
|
|
53
56
|
*/
|
|
54
|
-
static getHeartbeat(context) {
|
|
57
|
+
static getHeartbeat(context, xDrtDomain) {
|
|
55
58
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
56
59
|
method: 'GET',
|
|
57
60
|
url: '/session/heartbeat',
|
|
58
|
-
headers:
|
|
61
|
+
headers: {
|
|
62
|
+
'x-drt-domain': xDrtDomain,
|
|
63
|
+
},
|
|
59
64
|
errors: {
|
|
60
65
|
400: `Bad Request error with error details.`,
|
|
61
66
|
404: `Not found error with error details.`,
|
|
@@ -68,14 +73,17 @@ class SessionService {
|
|
|
68
73
|
* Updates the language stored on the shopper session (legacy lang-set).
|
|
69
74
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
70
75
|
* @param requestBody
|
|
76
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
71
77
|
* @returns SessionInfoDto Returns the updated session.
|
|
72
78
|
* @throws ApiError
|
|
73
79
|
*/
|
|
74
|
-
static setLanguage(requestBody, context) {
|
|
80
|
+
static setLanguage(requestBody, context, xDrtDomain) {
|
|
75
81
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
76
82
|
method: 'POST',
|
|
77
83
|
url: '/session/lang',
|
|
78
|
-
headers:
|
|
84
|
+
headers: {
|
|
85
|
+
'x-drt-domain': xDrtDomain,
|
|
86
|
+
},
|
|
79
87
|
body: requestBody,
|
|
80
88
|
mediaType: 'application/json',
|
|
81
89
|
errors: {
|
|
@@ -89,15 +97,43 @@ class SessionService {
|
|
|
89
97
|
* Extend the cart timer
|
|
90
98
|
* Extends the cart-hold timer via the Session-Service (legacy extend-cart-timeout). Returns the seconds remaining after extension.
|
|
91
99
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
100
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
92
101
|
* @param requestBody
|
|
93
102
|
* @returns ExtendTimerResponseDto Returns the extended timer state.
|
|
94
103
|
* @throws ApiError
|
|
95
104
|
*/
|
|
96
|
-
static extendTimer(context, requestBody) {
|
|
105
|
+
static extendTimer(context, xDrtDomain, requestBody) {
|
|
97
106
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
98
107
|
method: 'POST',
|
|
99
108
|
url: '/session/extend',
|
|
100
|
-
headers:
|
|
109
|
+
headers: {
|
|
110
|
+
'x-drt-domain': xDrtDomain,
|
|
111
|
+
},
|
|
112
|
+
body: requestBody,
|
|
113
|
+
mediaType: 'application/json',
|
|
114
|
+
errors: {
|
|
115
|
+
400: `Bad Request error with error details.`,
|
|
116
|
+
404: `Not found error with error details.`,
|
|
117
|
+
500: `Internal Server Error, please contact developers.`,
|
|
118
|
+
},
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Redeem a day-pass access code
|
|
123
|
+
* Validates a studio's day-pass access code (legacy ac.cfm: MD5(studioId + salt + MM/DD/YYYY), Eastern Time, rotates daily) and sets usingDayPass on the session. With shopperGuid, the pass is set on THAT session and its data is returned so the caller adopts it; without, on the caller's own session. An invalid code clears the caller's pass and answers 400 INVALID_ACCESS_CODE.
|
|
124
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
125
|
+
* @param requestBody
|
|
126
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
127
|
+
* @returns SessionInfoDto The session that now holds the day pass.
|
|
128
|
+
* @throws ApiError
|
|
129
|
+
*/
|
|
130
|
+
static activateDayPass(requestBody, context, xDrtDomain) {
|
|
131
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
132
|
+
method: 'POST',
|
|
133
|
+
url: '/session/day-pass',
|
|
134
|
+
headers: {
|
|
135
|
+
'x-drt-domain': xDrtDomain,
|
|
136
|
+
},
|
|
101
137
|
body: requestBody,
|
|
102
138
|
mediaType: 'application/json',
|
|
103
139
|
errors: {
|
|
@@ -111,14 +147,17 @@ class SessionService {
|
|
|
111
147
|
* Shorten the cart timer
|
|
112
148
|
* Shortens the cart-hold timer to 5 seconds from now via the Session-Service (legacy cart-shorten), clearing show_group_id and moving the held seats’ release times with it. Staff debug tool for walking the cart-timeout flow on demand.
|
|
113
149
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
150
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
114
151
|
* @returns ExtendTimerResponseDto Returns the shortened timer state.
|
|
115
152
|
* @throws ApiError
|
|
116
153
|
*/
|
|
117
|
-
static shortenTimer(context) {
|
|
154
|
+
static shortenTimer(context, xDrtDomain) {
|
|
118
155
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
119
156
|
method: 'POST',
|
|
120
157
|
url: '/session/shorten',
|
|
121
|
-
headers:
|
|
158
|
+
headers: {
|
|
159
|
+
'x-drt-domain': xDrtDomain,
|
|
160
|
+
},
|
|
122
161
|
errors: {
|
|
123
162
|
400: `Bad Request error with error details.`,
|
|
124
163
|
404: `Not found error with error details.`,
|
|
@@ -130,14 +169,64 @@ class SessionService {
|
|
|
130
169
|
* What this caller may see
|
|
131
170
|
* Returns the operator flag, the debug IP-allowlist flag, and the resulting capability list for the calling session. A rendering hint for the UI — never a permission.
|
|
132
171
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
172
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
133
173
|
* @returns CapabilityManifestDto Capability manifest for the calling session.
|
|
134
174
|
* @throws ApiError
|
|
135
175
|
*/
|
|
136
|
-
static getCapabilities(context) {
|
|
176
|
+
static getCapabilities(context, xDrtDomain) {
|
|
137
177
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
138
178
|
method: 'GET',
|
|
139
179
|
url: '/session/capabilities',
|
|
140
|
-
headers:
|
|
180
|
+
headers: {
|
|
181
|
+
'x-drt-domain': xDrtDomain,
|
|
182
|
+
},
|
|
183
|
+
errors: {
|
|
184
|
+
400: `Bad Request error with error details.`,
|
|
185
|
+
404: `Not found error with error details.`,
|
|
186
|
+
500: `Internal Server Error, please contact developers.`,
|
|
187
|
+
},
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Technical assistance state for this session
|
|
192
|
+
* Returns the name on the shopper's session row and whether the session is already flagged for technical assistance. Prefill for the TECH ASSIST tool (legacy rpc/technical-assistant.cfm).
|
|
193
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
194
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
195
|
+
* @returns SupportSessionStateDto The technical assistance state of the calling session.
|
|
196
|
+
* @throws ApiError
|
|
197
|
+
*/
|
|
198
|
+
static getSupportState(context, xDrtDomain) {
|
|
199
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
200
|
+
method: 'GET',
|
|
201
|
+
url: '/session/support',
|
|
202
|
+
headers: {
|
|
203
|
+
'x-drt-domain': xDrtDomain,
|
|
204
|
+
},
|
|
205
|
+
errors: {
|
|
206
|
+
400: `Bad Request error with error details.`,
|
|
207
|
+
404: `Not found error with error details.`,
|
|
208
|
+
500: `Internal Server Error, please contact developers.`,
|
|
209
|
+
},
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* Start a technical assistance session
|
|
214
|
+
* Records the shopper's name on the session row and raises the support flag, so a support representative can find this session (legacy rpc/technical-assistance-start.cfm).
|
|
215
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
216
|
+
* @param requestBody
|
|
217
|
+
* @param xDrtDomain Server-to-server callers only: the domain the caller acts as, matched against the API key allowed domains. Browsers omit it (the Origin header is used instead).
|
|
218
|
+
* @returns SupportSessionStateDto The technical assistance state after the flag was raised.
|
|
219
|
+
* @throws ApiError
|
|
220
|
+
*/
|
|
221
|
+
static startSupportSession(requestBody, context, xDrtDomain) {
|
|
222
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
223
|
+
method: 'POST',
|
|
224
|
+
url: '/session/support',
|
|
225
|
+
headers: {
|
|
226
|
+
'x-drt-domain': xDrtDomain,
|
|
227
|
+
},
|
|
228
|
+
body: requestBody,
|
|
229
|
+
mediaType: 'application/json',
|
|
141
230
|
errors: {
|
|
142
231
|
400: `Bad Request error with error details.`,
|
|
143
232
|
404: `Not found error with error details.`,
|