@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
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { OpenAPI } from '../core/OpenAPI.js';
|
|
2
2
|
import { request as __request } from '../core/request.js';
|
|
3
|
-
import { resolveShopperHeaders } from '../../../functions/sdkConfig.js';
|
|
4
3
|
export class SeatService {
|
|
5
4
|
/**
|
|
6
5
|
* Health check endpoint
|
|
@@ -24,14 +23,47 @@ export class SeatService {
|
|
|
24
23
|
* 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.
|
|
25
24
|
* @param eventId The event to read occupancy for.
|
|
26
25
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
26
|
+
* @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).
|
|
27
27
|
* @returns binary The packed occupancy bitfield.
|
|
28
28
|
* @throws ApiError
|
|
29
29
|
*/
|
|
30
|
-
static getSeatOccupancy(eventId, context) {
|
|
30
|
+
static getSeatOccupancy(eventId, context, xDrtDomain) {
|
|
31
31
|
return __request(OpenAPI, {
|
|
32
32
|
method: 'GET',
|
|
33
33
|
url: '/seat/occupancy',
|
|
34
|
-
headers:
|
|
34
|
+
headers: {
|
|
35
|
+
'x-drt-domain': xDrtDomain,
|
|
36
|
+
},
|
|
37
|
+
query: {
|
|
38
|
+
'eventId': eventId,
|
|
39
|
+
},
|
|
40
|
+
errors: {
|
|
41
|
+
400: `Bad Request error with error details.`,
|
|
42
|
+
404: `Not found error with error details.`,
|
|
43
|
+
500: `Internal Server Error, please contact developers.`,
|
|
44
|
+
},
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Get live entry-window occupancy for a timed-entry show
|
|
49
|
+
* 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.
|
|
50
|
+
*
|
|
51
|
+
* 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.
|
|
52
|
+
*
|
|
53
|
+
* 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.
|
|
54
|
+
* @param eventId The timed-entry show to read window occupancy for.
|
|
55
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
56
|
+
* @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).
|
|
57
|
+
* @returns any The entry-window occupancy snapshot.
|
|
58
|
+
* @throws ApiError
|
|
59
|
+
*/
|
|
60
|
+
static getGaSeatOccupancy(eventId, context, xDrtDomain) {
|
|
61
|
+
return __request(OpenAPI, {
|
|
62
|
+
method: 'GET',
|
|
63
|
+
url: '/seat/occupancy/ga',
|
|
64
|
+
headers: {
|
|
65
|
+
'x-drt-domain': xDrtDomain,
|
|
66
|
+
},
|
|
35
67
|
query: {
|
|
36
68
|
'eventId': eventId,
|
|
37
69
|
},
|
|
@@ -47,14 +79,43 @@ export class SeatService {
|
|
|
47
79
|
* 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.
|
|
48
80
|
* @param eventId The event whose occupancy room to join.
|
|
49
81
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
82
|
+
* @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).
|
|
50
83
|
* @returns any The websocket connection details.
|
|
51
84
|
* @throws ApiError
|
|
52
85
|
*/
|
|
53
|
-
static getSeatOccupancySocket(eventId, context) {
|
|
86
|
+
static getSeatOccupancySocket(eventId, context, xDrtDomain) {
|
|
54
87
|
return __request(OpenAPI, {
|
|
55
88
|
method: 'GET',
|
|
56
89
|
url: '/seat/occupancy/socket',
|
|
57
|
-
headers:
|
|
90
|
+
headers: {
|
|
91
|
+
'x-drt-domain': xDrtDomain,
|
|
92
|
+
},
|
|
93
|
+
query: {
|
|
94
|
+
'eventId': eventId,
|
|
95
|
+
},
|
|
96
|
+
errors: {
|
|
97
|
+
400: `Bad Request error with error details.`,
|
|
98
|
+
404: `Not found error with error details.`,
|
|
99
|
+
500: `Internal Server Error, please contact developers.`,
|
|
100
|
+
},
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Who holds every occupied seat (staff only)
|
|
105
|
+
* 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.
|
|
106
|
+
* @param eventId The event to read the manifest for.
|
|
107
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
108
|
+
* @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).
|
|
109
|
+
* @returns SeatManifest The seat manifest for this event.
|
|
110
|
+
* @throws ApiError
|
|
111
|
+
*/
|
|
112
|
+
static getSeatManifest(eventId, context, xDrtDomain) {
|
|
113
|
+
return __request(OpenAPI, {
|
|
114
|
+
method: 'GET',
|
|
115
|
+
url: '/seat/manifest',
|
|
116
|
+
headers: {
|
|
117
|
+
'x-drt-domain': xDrtDomain,
|
|
118
|
+
},
|
|
58
119
|
query: {
|
|
59
120
|
'eventId': eventId,
|
|
60
121
|
},
|
|
@@ -70,14 +131,17 @@ export class SeatService {
|
|
|
70
131
|
* Holds a reserved seat for the shopper.
|
|
71
132
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
72
133
|
* @param requestBody Seat data for holding a reserved seat
|
|
134
|
+
* @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).
|
|
73
135
|
* @returns SeatHoldReturn Successfully held the reserved seat.
|
|
74
136
|
* @throws ApiError
|
|
75
137
|
*/
|
|
76
|
-
static holdReservedSeat(requestBody, context) {
|
|
138
|
+
static holdReservedSeat(requestBody, context, xDrtDomain) {
|
|
77
139
|
return __request(OpenAPI, {
|
|
78
140
|
method: 'POST',
|
|
79
141
|
url: '/seat/hold-reserved',
|
|
80
|
-
headers:
|
|
142
|
+
headers: {
|
|
143
|
+
'x-drt-domain': xDrtDomain,
|
|
144
|
+
},
|
|
81
145
|
body: requestBody,
|
|
82
146
|
mediaType: 'application/json',
|
|
83
147
|
errors: {
|
|
@@ -92,14 +156,17 @@ export class SeatService {
|
|
|
92
156
|
* Holds a general admission seat for the shopper.
|
|
93
157
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
94
158
|
* @param requestBody Seat data for holding a general admission seat
|
|
159
|
+
* @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).
|
|
95
160
|
* @returns GAResponse Successfully held the general admission seat.
|
|
96
161
|
* @throws ApiError
|
|
97
162
|
*/
|
|
98
|
-
static holdGaSeat(requestBody, context) {
|
|
163
|
+
static holdGaSeat(requestBody, context, xDrtDomain) {
|
|
99
164
|
return __request(OpenAPI, {
|
|
100
165
|
method: 'POST',
|
|
101
166
|
url: '/seat/hold-ga',
|
|
102
|
-
headers:
|
|
167
|
+
headers: {
|
|
168
|
+
'x-drt-domain': xDrtDomain,
|
|
169
|
+
},
|
|
103
170
|
body: requestBody,
|
|
104
171
|
mediaType: 'application/json',
|
|
105
172
|
errors: {
|
|
@@ -114,14 +181,17 @@ export class SeatService {
|
|
|
114
181
|
* Holds a reserved seat for a BA event.
|
|
115
182
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
116
183
|
* @param requestBody Seat data for holding a reserved seat for a BA event
|
|
184
|
+
* @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).
|
|
117
185
|
* @returns SeatHoldReturn Successfully held the reserved seat for a BA event.
|
|
118
186
|
* @throws ApiError
|
|
119
187
|
*/
|
|
120
|
-
static holdBaSeat(requestBody, context) {
|
|
188
|
+
static holdBaSeat(requestBody, context, xDrtDomain) {
|
|
121
189
|
return __request(OpenAPI, {
|
|
122
190
|
method: 'POST',
|
|
123
191
|
url: '/seat/hold-ba',
|
|
124
|
-
headers:
|
|
192
|
+
headers: {
|
|
193
|
+
'x-drt-domain': xDrtDomain,
|
|
194
|
+
},
|
|
125
195
|
body: requestBody,
|
|
126
196
|
mediaType: 'application/json',
|
|
127
197
|
errors: {
|
|
@@ -136,14 +206,17 @@ export class SeatService {
|
|
|
136
206
|
* Releases a reserved seat for the shopper.
|
|
137
207
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
138
208
|
* @param requestBody Seat data for releasing a reserved seat
|
|
209
|
+
* @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).
|
|
139
210
|
* @returns SeatHoldObject Successfully released the reserved seat. Carries the embedded post-release cart state (SEAT-1C).
|
|
140
211
|
* @throws ApiError
|
|
141
212
|
*/
|
|
142
|
-
static releaseReservedSeat(requestBody, context) {
|
|
213
|
+
static releaseReservedSeat(requestBody, context, xDrtDomain) {
|
|
143
214
|
return __request(OpenAPI, {
|
|
144
215
|
method: 'DELETE',
|
|
145
216
|
url: '/seat/release-reserved',
|
|
146
|
-
headers:
|
|
217
|
+
headers: {
|
|
218
|
+
'x-drt-domain': xDrtDomain,
|
|
219
|
+
},
|
|
147
220
|
body: requestBody,
|
|
148
221
|
mediaType: 'application/json',
|
|
149
222
|
errors: {
|
|
@@ -158,14 +231,17 @@ export class SeatService {
|
|
|
158
231
|
* Releases a general admission seat for the shopper.
|
|
159
232
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
160
233
|
* @param requestBody Seat data for releasing a general admission seat
|
|
234
|
+
* @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).
|
|
161
235
|
* @returns any
|
|
162
236
|
* @throws ApiError
|
|
163
237
|
*/
|
|
164
|
-
static releaseGaSeat(requestBody, context) {
|
|
238
|
+
static releaseGaSeat(requestBody, context, xDrtDomain) {
|
|
165
239
|
return __request(OpenAPI, {
|
|
166
240
|
method: 'DELETE',
|
|
167
241
|
url: '/seat/release-ga',
|
|
168
|
-
headers:
|
|
242
|
+
headers: {
|
|
243
|
+
'x-drt-domain': xDrtDomain,
|
|
244
|
+
},
|
|
169
245
|
body: requestBody,
|
|
170
246
|
mediaType: 'application/json',
|
|
171
247
|
errors: {
|
|
@@ -180,14 +256,17 @@ export class SeatService {
|
|
|
180
256
|
* Updates the tier information for a seat.
|
|
181
257
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
182
258
|
* @param requestBody Data for updating tier information
|
|
259
|
+
* @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).
|
|
183
260
|
* @returns UpdateTierData Successfully updated the tier information.
|
|
184
261
|
* @throws ApiError
|
|
185
262
|
*/
|
|
186
|
-
static updateTier(requestBody, context) {
|
|
263
|
+
static updateTier(requestBody, context, xDrtDomain) {
|
|
187
264
|
return __request(OpenAPI, {
|
|
188
265
|
method: 'POST',
|
|
189
266
|
url: '/seat/update-tier',
|
|
190
|
-
headers:
|
|
267
|
+
headers: {
|
|
268
|
+
'x-drt-domain': xDrtDomain,
|
|
269
|
+
},
|
|
191
270
|
body: requestBody,
|
|
192
271
|
mediaType: 'application/json',
|
|
193
272
|
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
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { OpenAPI } from '../core/OpenAPI.js';
|
|
2
2
|
import { request as __request } from '../core/request.js';
|
|
3
|
-
import { resolveShopperHeaders } from '../../../functions/sdkConfig.js';
|
|
4
3
|
export class SessionService {
|
|
5
4
|
/**
|
|
6
5
|
* Create a new session
|
|
@@ -26,14 +25,17 @@ export class SessionService {
|
|
|
26
25
|
* Get Session information
|
|
27
26
|
* Retrieves all Sessions available for the specified account.
|
|
28
27
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
28
|
+
* @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).
|
|
29
29
|
* @returns SessionInfoDto Returns session data for the provided shopperguid.
|
|
30
30
|
* @throws ApiError
|
|
31
31
|
*/
|
|
32
|
-
static getSessions(context) {
|
|
32
|
+
static getSessions(context, xDrtDomain) {
|
|
33
33
|
return __request(OpenAPI, {
|
|
34
34
|
method: 'GET',
|
|
35
35
|
url: '/session',
|
|
36
|
-
headers:
|
|
36
|
+
headers: {
|
|
37
|
+
'x-drt-domain': xDrtDomain,
|
|
38
|
+
},
|
|
37
39
|
errors: {
|
|
38
40
|
400: `Bad Request error with error details.`,
|
|
39
41
|
404: `Not found error with error details.`,
|
|
@@ -45,14 +47,17 @@ export class SessionService {
|
|
|
45
47
|
* Get Session Timer Heartbeat
|
|
46
48
|
* Retrieves the heartbeat for the sessions timer in ms.
|
|
47
49
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
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).
|
|
48
51
|
* @returns SessionHeartbeatDto Returns session data for the provided shopperguid.
|
|
49
52
|
* @throws ApiError
|
|
50
53
|
*/
|
|
51
|
-
static getHeartbeat(context) {
|
|
54
|
+
static getHeartbeat(context, xDrtDomain) {
|
|
52
55
|
return __request(OpenAPI, {
|
|
53
56
|
method: 'GET',
|
|
54
57
|
url: '/session/heartbeat',
|
|
55
|
-
headers:
|
|
58
|
+
headers: {
|
|
59
|
+
'x-drt-domain': xDrtDomain,
|
|
60
|
+
},
|
|
56
61
|
errors: {
|
|
57
62
|
400: `Bad Request error with error details.`,
|
|
58
63
|
404: `Not found error with error details.`,
|
|
@@ -65,14 +70,17 @@ export class SessionService {
|
|
|
65
70
|
* Updates the language stored on the shopper session (legacy lang-set).
|
|
66
71
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
67
72
|
* @param requestBody
|
|
73
|
+
* @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
74
|
* @returns SessionInfoDto Returns the updated session.
|
|
69
75
|
* @throws ApiError
|
|
70
76
|
*/
|
|
71
|
-
static setLanguage(requestBody, context) {
|
|
77
|
+
static setLanguage(requestBody, context, xDrtDomain) {
|
|
72
78
|
return __request(OpenAPI, {
|
|
73
79
|
method: 'POST',
|
|
74
80
|
url: '/session/lang',
|
|
75
|
-
headers:
|
|
81
|
+
headers: {
|
|
82
|
+
'x-drt-domain': xDrtDomain,
|
|
83
|
+
},
|
|
76
84
|
body: requestBody,
|
|
77
85
|
mediaType: 'application/json',
|
|
78
86
|
errors: {
|
|
@@ -86,15 +94,43 @@ export class SessionService {
|
|
|
86
94
|
* Extend the cart timer
|
|
87
95
|
* Extends the cart-hold timer via the Session-Service (legacy extend-cart-timeout). Returns the seconds remaining after extension.
|
|
88
96
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
97
|
+
* @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).
|
|
89
98
|
* @param requestBody
|
|
90
99
|
* @returns ExtendTimerResponseDto Returns the extended timer state.
|
|
91
100
|
* @throws ApiError
|
|
92
101
|
*/
|
|
93
|
-
static extendTimer(context, requestBody) {
|
|
102
|
+
static extendTimer(context, xDrtDomain, requestBody) {
|
|
94
103
|
return __request(OpenAPI, {
|
|
95
104
|
method: 'POST',
|
|
96
105
|
url: '/session/extend',
|
|
97
|
-
headers:
|
|
106
|
+
headers: {
|
|
107
|
+
'x-drt-domain': xDrtDomain,
|
|
108
|
+
},
|
|
109
|
+
body: requestBody,
|
|
110
|
+
mediaType: 'application/json',
|
|
111
|
+
errors: {
|
|
112
|
+
400: `Bad Request error with error details.`,
|
|
113
|
+
404: `Not found error with error details.`,
|
|
114
|
+
500: `Internal Server Error, please contact developers.`,
|
|
115
|
+
},
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Redeem a day-pass access code
|
|
120
|
+
* 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.
|
|
121
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
122
|
+
* @param requestBody
|
|
123
|
+
* @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).
|
|
124
|
+
* @returns SessionInfoDto The session that now holds the day pass.
|
|
125
|
+
* @throws ApiError
|
|
126
|
+
*/
|
|
127
|
+
static activateDayPass(requestBody, context, xDrtDomain) {
|
|
128
|
+
return __request(OpenAPI, {
|
|
129
|
+
method: 'POST',
|
|
130
|
+
url: '/session/day-pass',
|
|
131
|
+
headers: {
|
|
132
|
+
'x-drt-domain': xDrtDomain,
|
|
133
|
+
},
|
|
98
134
|
body: requestBody,
|
|
99
135
|
mediaType: 'application/json',
|
|
100
136
|
errors: {
|
|
@@ -108,14 +144,17 @@ export class SessionService {
|
|
|
108
144
|
* Shorten the cart timer
|
|
109
145
|
* 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.
|
|
110
146
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
147
|
+
* @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).
|
|
111
148
|
* @returns ExtendTimerResponseDto Returns the shortened timer state.
|
|
112
149
|
* @throws ApiError
|
|
113
150
|
*/
|
|
114
|
-
static shortenTimer(context) {
|
|
151
|
+
static shortenTimer(context, xDrtDomain) {
|
|
115
152
|
return __request(OpenAPI, {
|
|
116
153
|
method: 'POST',
|
|
117
154
|
url: '/session/shorten',
|
|
118
|
-
headers:
|
|
155
|
+
headers: {
|
|
156
|
+
'x-drt-domain': xDrtDomain,
|
|
157
|
+
},
|
|
119
158
|
errors: {
|
|
120
159
|
400: `Bad Request error with error details.`,
|
|
121
160
|
404: `Not found error with error details.`,
|
|
@@ -127,14 +166,64 @@ export class SessionService {
|
|
|
127
166
|
* What this caller may see
|
|
128
167
|
* 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.
|
|
129
168
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
169
|
+
* @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).
|
|
130
170
|
* @returns CapabilityManifestDto Capability manifest for the calling session.
|
|
131
171
|
* @throws ApiError
|
|
132
172
|
*/
|
|
133
|
-
static getCapabilities(context) {
|
|
173
|
+
static getCapabilities(context, xDrtDomain) {
|
|
134
174
|
return __request(OpenAPI, {
|
|
135
175
|
method: 'GET',
|
|
136
176
|
url: '/session/capabilities',
|
|
137
|
-
headers:
|
|
177
|
+
headers: {
|
|
178
|
+
'x-drt-domain': xDrtDomain,
|
|
179
|
+
},
|
|
180
|
+
errors: {
|
|
181
|
+
400: `Bad Request error with error details.`,
|
|
182
|
+
404: `Not found error with error details.`,
|
|
183
|
+
500: `Internal Server Error, please contact developers.`,
|
|
184
|
+
},
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Technical assistance state for this session
|
|
189
|
+
* 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).
|
|
190
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
191
|
+
* @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).
|
|
192
|
+
* @returns SupportSessionStateDto The technical assistance state of the calling session.
|
|
193
|
+
* @throws ApiError
|
|
194
|
+
*/
|
|
195
|
+
static getSupportState(context, xDrtDomain) {
|
|
196
|
+
return __request(OpenAPI, {
|
|
197
|
+
method: 'GET',
|
|
198
|
+
url: '/session/support',
|
|
199
|
+
headers: {
|
|
200
|
+
'x-drt-domain': xDrtDomain,
|
|
201
|
+
},
|
|
202
|
+
errors: {
|
|
203
|
+
400: `Bad Request error with error details.`,
|
|
204
|
+
404: `Not found error with error details.`,
|
|
205
|
+
500: `Internal Server Error, please contact developers.`,
|
|
206
|
+
},
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Start a technical assistance session
|
|
211
|
+
* 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).
|
|
212
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
213
|
+
* @param requestBody
|
|
214
|
+
* @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).
|
|
215
|
+
* @returns SupportSessionStateDto The technical assistance state after the flag was raised.
|
|
216
|
+
* @throws ApiError
|
|
217
|
+
*/
|
|
218
|
+
static startSupportSession(requestBody, context, xDrtDomain) {
|
|
219
|
+
return __request(OpenAPI, {
|
|
220
|
+
method: 'POST',
|
|
221
|
+
url: '/session/support',
|
|
222
|
+
headers: {
|
|
223
|
+
'x-drt-domain': xDrtDomain,
|
|
224
|
+
},
|
|
225
|
+
body: requestBody,
|
|
226
|
+
mediaType: 'application/json',
|
|
138
227
|
errors: {
|
|
139
228
|
400: `Bad Request error with error details.`,
|
|
140
229
|
404: `Not found error with error details.`,
|