@drttix/drt-sdk 2.0.0 → 2.0.1
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 +1 -0
- 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/models/CreateShowRequestDto.d.ts +1 -1
- package/dist/cjs/src/generated/portal/models/CreateUpdateProductRequestDto.d.ts +4 -4
- package/dist/cjs/src/generated/portal/models/ProductDetailResponseDto.d.ts +2 -2
- package/dist/cjs/src/generated/portal/models/SeatResponseDto.d.ts +1 -0
- package/dist/cjs/src/generated/portal/models/ShowsList.d.ts +12 -0
- package/dist/cjs/src/generated/shopper/core/OpenAPI.js +1 -1
- package/dist/cjs/src/generated/shopper/index.d.ts +23 -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/EventDetails.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/EventFormat.d.ts +12 -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/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/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/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/SeatManifest.d.ts +20 -0
- package/dist/cjs/src/generated/shopper/models/SeatManifest.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/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 +12 -6
- package/dist/cjs/src/generated/shopper/services/EventService.js +30 -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 +30 -8
- package/dist/cjs/src/generated/shopper/services/SeatService.js +66 -17
- package/dist/cjs/src/generated/shopper/services/SessionService.d.ts +39 -6
- package/dist/cjs/src/generated/shopper/services/SessionService.js +77 -13
- package/dist/cjs/src/generated/shopper/types.d.ts +21 -1
- package/dist/cjs/src/staging/index.d.ts +1 -0
- package/dist/esm/index.d.ts +1 -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/models/CreateShowRequestDto.d.ts +1 -1
- package/dist/esm/src/generated/portal/models/CreateUpdateProductRequestDto.d.ts +4 -4
- package/dist/esm/src/generated/portal/models/ProductDetailResponseDto.d.ts +2 -2
- package/dist/esm/src/generated/portal/models/SeatResponseDto.d.ts +1 -0
- package/dist/esm/src/generated/portal/models/ShowsList.d.ts +12 -0
- package/dist/esm/src/generated/shopper/core/OpenAPI.js +1 -1
- package/dist/esm/src/generated/shopper/index.d.ts +23 -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/EventDetails.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/EventFormat.d.ts +12 -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/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/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/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/SeatManifest.d.ts +20 -0
- package/dist/esm/src/generated/shopper/models/SeatManifest.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/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 +12 -6
- package/dist/esm/src/generated/shopper/services/EventService.js +30 -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 +30 -8
- package/dist/esm/src/generated/shopper/services/SeatService.js +66 -17
- package/dist/esm/src/generated/shopper/services/SessionService.d.ts +39 -6
- package/dist/esm/src/generated/shopper/services/SessionService.js +77 -13
- package/dist/esm/src/generated/shopper/types.d.ts +21 -1
- package/dist/esm/src/staging/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/definitions/shopper.ts +2 -0
- package/src/generated/portal/core/OpenAPI.ts +1 -1
- package/src/generated/portal/models/CreateShowRequestDto.ts +1 -1
- package/src/generated/portal/models/CreateUpdateProductRequestDto.ts +4 -4
- package/src/generated/portal/models/ProductDetailResponseDto.ts +2 -2
- package/src/generated/portal/models/SeatResponseDto.ts +1 -0
- package/src/generated/portal/models/ShowsList.ts +12 -0
- package/src/generated/shopper/core/OpenAPI.ts +1 -1
- package/src/generated/shopper/index.ts +23 -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/EventDetails.ts +4 -0
- package/src/generated/shopper/models/EventFormat.ts +12 -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/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/PaymentLinkSession.ts +23 -0
- package/src/generated/shopper/models/PaymentLinkStatus.ts +37 -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/SeatManifest.ts +25 -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/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 +30 -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 +71 -8
- package/src/generated/shopper/services/SessionService.ts +86 -6
- package/src/generated/shopper/types.ts +21 -1
- 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,17 @@ 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
|
+
},
|
|
38
40
|
query: {
|
|
39
41
|
'eventId': eventId,
|
|
40
42
|
},
|
|
@@ -50,14 +52,43 @@ class SeatService {
|
|
|
50
52
|
* 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
53
|
* @param eventId The event whose occupancy room to join.
|
|
52
54
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
55
|
+
* @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
56
|
* @returns any The websocket connection details.
|
|
54
57
|
* @throws ApiError
|
|
55
58
|
*/
|
|
56
|
-
static getSeatOccupancySocket(eventId, context) {
|
|
59
|
+
static getSeatOccupancySocket(eventId, context, xDrtDomain) {
|
|
57
60
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
58
61
|
method: 'GET',
|
|
59
62
|
url: '/seat/occupancy/socket',
|
|
60
|
-
headers:
|
|
63
|
+
headers: {
|
|
64
|
+
'x-drt-domain': xDrtDomain,
|
|
65
|
+
},
|
|
66
|
+
query: {
|
|
67
|
+
'eventId': eventId,
|
|
68
|
+
},
|
|
69
|
+
errors: {
|
|
70
|
+
400: `Bad Request error with error details.`,
|
|
71
|
+
404: `Not found error with error details.`,
|
|
72
|
+
500: `Internal Server Error, please contact developers.`,
|
|
73
|
+
},
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Who holds every occupied seat (staff only)
|
|
78
|
+
* 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.
|
|
79
|
+
* @param eventId The event to read the manifest for.
|
|
80
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
81
|
+
* @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).
|
|
82
|
+
* @returns SeatManifest The seat manifest for this event.
|
|
83
|
+
* @throws ApiError
|
|
84
|
+
*/
|
|
85
|
+
static getSeatManifest(eventId, context, xDrtDomain) {
|
|
86
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
87
|
+
method: 'GET',
|
|
88
|
+
url: '/seat/manifest',
|
|
89
|
+
headers: {
|
|
90
|
+
'x-drt-domain': xDrtDomain,
|
|
91
|
+
},
|
|
61
92
|
query: {
|
|
62
93
|
'eventId': eventId,
|
|
63
94
|
},
|
|
@@ -73,14 +104,17 @@ class SeatService {
|
|
|
73
104
|
* Holds a reserved seat for the shopper.
|
|
74
105
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
75
106
|
* @param requestBody Seat data for holding a reserved seat
|
|
107
|
+
* @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
108
|
* @returns SeatHoldReturn Successfully held the reserved seat.
|
|
77
109
|
* @throws ApiError
|
|
78
110
|
*/
|
|
79
|
-
static holdReservedSeat(requestBody, context) {
|
|
111
|
+
static holdReservedSeat(requestBody, context, xDrtDomain) {
|
|
80
112
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
81
113
|
method: 'POST',
|
|
82
114
|
url: '/seat/hold-reserved',
|
|
83
|
-
headers:
|
|
115
|
+
headers: {
|
|
116
|
+
'x-drt-domain': xDrtDomain,
|
|
117
|
+
},
|
|
84
118
|
body: requestBody,
|
|
85
119
|
mediaType: 'application/json',
|
|
86
120
|
errors: {
|
|
@@ -95,14 +129,17 @@ class SeatService {
|
|
|
95
129
|
* Holds a general admission seat for the shopper.
|
|
96
130
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
97
131
|
* @param requestBody Seat data for holding a general admission seat
|
|
132
|
+
* @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
133
|
* @returns GAResponse Successfully held the general admission seat.
|
|
99
134
|
* @throws ApiError
|
|
100
135
|
*/
|
|
101
|
-
static holdGaSeat(requestBody, context) {
|
|
136
|
+
static holdGaSeat(requestBody, context, xDrtDomain) {
|
|
102
137
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
103
138
|
method: 'POST',
|
|
104
139
|
url: '/seat/hold-ga',
|
|
105
|
-
headers:
|
|
140
|
+
headers: {
|
|
141
|
+
'x-drt-domain': xDrtDomain,
|
|
142
|
+
},
|
|
106
143
|
body: requestBody,
|
|
107
144
|
mediaType: 'application/json',
|
|
108
145
|
errors: {
|
|
@@ -117,14 +154,17 @@ class SeatService {
|
|
|
117
154
|
* Holds a reserved seat for a BA event.
|
|
118
155
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
119
156
|
* @param requestBody Seat data for holding a reserved seat for a BA event
|
|
157
|
+
* @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
158
|
* @returns SeatHoldReturn Successfully held the reserved seat for a BA event.
|
|
121
159
|
* @throws ApiError
|
|
122
160
|
*/
|
|
123
|
-
static holdBaSeat(requestBody, context) {
|
|
161
|
+
static holdBaSeat(requestBody, context, xDrtDomain) {
|
|
124
162
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
125
163
|
method: 'POST',
|
|
126
164
|
url: '/seat/hold-ba',
|
|
127
|
-
headers:
|
|
165
|
+
headers: {
|
|
166
|
+
'x-drt-domain': xDrtDomain,
|
|
167
|
+
},
|
|
128
168
|
body: requestBody,
|
|
129
169
|
mediaType: 'application/json',
|
|
130
170
|
errors: {
|
|
@@ -139,14 +179,17 @@ class SeatService {
|
|
|
139
179
|
* Releases a reserved seat for the shopper.
|
|
140
180
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
141
181
|
* @param requestBody Seat data for releasing a reserved seat
|
|
182
|
+
* @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
183
|
* @returns SeatHoldObject Successfully released the reserved seat. Carries the embedded post-release cart state (SEAT-1C).
|
|
143
184
|
* @throws ApiError
|
|
144
185
|
*/
|
|
145
|
-
static releaseReservedSeat(requestBody, context) {
|
|
186
|
+
static releaseReservedSeat(requestBody, context, xDrtDomain) {
|
|
146
187
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
147
188
|
method: 'DELETE',
|
|
148
189
|
url: '/seat/release-reserved',
|
|
149
|
-
headers:
|
|
190
|
+
headers: {
|
|
191
|
+
'x-drt-domain': xDrtDomain,
|
|
192
|
+
},
|
|
150
193
|
body: requestBody,
|
|
151
194
|
mediaType: 'application/json',
|
|
152
195
|
errors: {
|
|
@@ -161,14 +204,17 @@ class SeatService {
|
|
|
161
204
|
* Releases a general admission seat for the shopper.
|
|
162
205
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
163
206
|
* @param requestBody Seat data for releasing a general admission seat
|
|
207
|
+
* @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
208
|
* @returns any
|
|
165
209
|
* @throws ApiError
|
|
166
210
|
*/
|
|
167
|
-
static releaseGaSeat(requestBody, context) {
|
|
211
|
+
static releaseGaSeat(requestBody, context, xDrtDomain) {
|
|
168
212
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
169
213
|
method: 'DELETE',
|
|
170
214
|
url: '/seat/release-ga',
|
|
171
|
-
headers:
|
|
215
|
+
headers: {
|
|
216
|
+
'x-drt-domain': xDrtDomain,
|
|
217
|
+
},
|
|
172
218
|
body: requestBody,
|
|
173
219
|
mediaType: 'application/json',
|
|
174
220
|
errors: {
|
|
@@ -183,14 +229,17 @@ class SeatService {
|
|
|
183
229
|
* Updates the tier information for a seat.
|
|
184
230
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
185
231
|
* @param requestBody Data for updating tier information
|
|
232
|
+
* @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
233
|
* @returns UpdateTierData Successfully updated the tier information.
|
|
187
234
|
* @throws ApiError
|
|
188
235
|
*/
|
|
189
|
-
static updateTier(requestBody, context) {
|
|
236
|
+
static updateTier(requestBody, context, xDrtDomain) {
|
|
190
237
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
191
238
|
method: 'POST',
|
|
192
239
|
url: '/seat/update-tier',
|
|
193
|
-
headers:
|
|
240
|
+
headers: {
|
|
241
|
+
'x-drt-domain': xDrtDomain,
|
|
242
|
+
},
|
|
194
243
|
body: requestBody,
|
|
195
244
|
mediaType: 'application/json',
|
|
196
245
|
errors: {
|
|
@@ -5,6 +5,8 @@ import type { ExtendTimerResponseDto } from '../models/ExtendTimerResponseDto';
|
|
|
5
5
|
import type { SessionHeartbeatDto } from '../models/SessionHeartbeatDto';
|
|
6
6
|
import type { SessionInfoDto } from '../models/SessionInfoDto';
|
|
7
7
|
import type { SetLanguageDto } from '../models/SetLanguageDto';
|
|
8
|
+
import type { StartSupportSessionDto } from '../models/StartSupportSessionDto';
|
|
9
|
+
import type { SupportSessionStateDto } from '../models/SupportSessionStateDto';
|
|
8
10
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
9
11
|
export declare class SessionService {
|
|
10
12
|
/**
|
|
@@ -19,40 +21,44 @@ export declare class SessionService {
|
|
|
19
21
|
* Get Session information
|
|
20
22
|
* Retrieves all Sessions available for the specified account.
|
|
21
23
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
24
|
+
* @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
25
|
* @returns SessionInfoDto Returns session data for the provided shopperguid.
|
|
23
26
|
* @throws ApiError
|
|
24
27
|
*/
|
|
25
28
|
static getSessions(context?: {
|
|
26
29
|
shopperGuid?: string;
|
|
27
30
|
accountId?: string;
|
|
28
|
-
}): CancelablePromise<SessionInfoDto>;
|
|
31
|
+
}, xDrtDomain?: string): CancelablePromise<SessionInfoDto>;
|
|
29
32
|
/**
|
|
30
33
|
* Get Session Timer Heartbeat
|
|
31
34
|
* Retrieves the heartbeat for the sessions timer in ms.
|
|
32
35
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
36
|
+
* @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
37
|
* @returns SessionHeartbeatDto Returns session data for the provided shopperguid.
|
|
34
38
|
* @throws ApiError
|
|
35
39
|
*/
|
|
36
40
|
static getHeartbeat(context?: {
|
|
37
41
|
shopperGuid?: string;
|
|
38
42
|
accountId?: string;
|
|
39
|
-
}): CancelablePromise<SessionHeartbeatDto>;
|
|
43
|
+
}, xDrtDomain?: string): CancelablePromise<SessionHeartbeatDto>;
|
|
40
44
|
/**
|
|
41
45
|
* Set the session language
|
|
42
46
|
* Updates the language stored on the shopper session (legacy lang-set).
|
|
43
47
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
44
48
|
* @param requestBody
|
|
49
|
+
* @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
50
|
* @returns SessionInfoDto Returns the updated session.
|
|
46
51
|
* @throws ApiError
|
|
47
52
|
*/
|
|
48
53
|
static setLanguage(requestBody: SetLanguageDto, context?: {
|
|
49
54
|
shopperGuid?: string;
|
|
50
55
|
accountId?: string;
|
|
51
|
-
}): CancelablePromise<SessionInfoDto>;
|
|
56
|
+
}, xDrtDomain?: string): CancelablePromise<SessionInfoDto>;
|
|
52
57
|
/**
|
|
53
58
|
* Extend the cart timer
|
|
54
59
|
* Extends the cart-hold timer via the Session-Service (legacy extend-cart-timeout). Returns the seconds remaining after extension.
|
|
55
60
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
61
|
+
* @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
62
|
* @param requestBody
|
|
57
63
|
* @returns ExtendTimerResponseDto Returns the extended timer state.
|
|
58
64
|
* @throws ApiError
|
|
@@ -60,27 +66,54 @@ export declare class SessionService {
|
|
|
60
66
|
static extendTimer(context?: {
|
|
61
67
|
shopperGuid?: string;
|
|
62
68
|
accountId?: string;
|
|
63
|
-
}, requestBody?: ExtendTimerDto): CancelablePromise<ExtendTimerResponseDto>;
|
|
69
|
+
}, xDrtDomain?: string, requestBody?: ExtendTimerDto): CancelablePromise<ExtendTimerResponseDto>;
|
|
64
70
|
/**
|
|
65
71
|
* Shorten the cart timer
|
|
66
72
|
* 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
73
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
74
|
+
* @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
75
|
* @returns ExtendTimerResponseDto Returns the shortened timer state.
|
|
69
76
|
* @throws ApiError
|
|
70
77
|
*/
|
|
71
78
|
static shortenTimer(context?: {
|
|
72
79
|
shopperGuid?: string;
|
|
73
80
|
accountId?: string;
|
|
74
|
-
}): CancelablePromise<ExtendTimerResponseDto>;
|
|
81
|
+
}, xDrtDomain?: string): CancelablePromise<ExtendTimerResponseDto>;
|
|
75
82
|
/**
|
|
76
83
|
* What this caller may see
|
|
77
84
|
* 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
85
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
86
|
+
* @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
87
|
* @returns CapabilityManifestDto Capability manifest for the calling session.
|
|
80
88
|
* @throws ApiError
|
|
81
89
|
*/
|
|
82
90
|
static getCapabilities(context?: {
|
|
83
91
|
shopperGuid?: string;
|
|
84
92
|
accountId?: string;
|
|
85
|
-
}): CancelablePromise<CapabilityManifestDto>;
|
|
93
|
+
}, xDrtDomain?: string): CancelablePromise<CapabilityManifestDto>;
|
|
94
|
+
/**
|
|
95
|
+
* Technical assistance state for this session
|
|
96
|
+
* 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).
|
|
97
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
98
|
+
* @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).
|
|
99
|
+
* @returns SupportSessionStateDto The technical assistance state of the calling session.
|
|
100
|
+
* @throws ApiError
|
|
101
|
+
*/
|
|
102
|
+
static getSupportState(context?: {
|
|
103
|
+
shopperGuid?: string;
|
|
104
|
+
accountId?: string;
|
|
105
|
+
}, xDrtDomain?: string): CancelablePromise<SupportSessionStateDto>;
|
|
106
|
+
/**
|
|
107
|
+
* Start a technical assistance session
|
|
108
|
+
* 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).
|
|
109
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
110
|
+
* @param requestBody
|
|
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 SupportSessionStateDto The technical assistance state after the flag was raised.
|
|
113
|
+
* @throws ApiError
|
|
114
|
+
*/
|
|
115
|
+
static startSupportSession(requestBody: StartSupportSessionDto, context?: {
|
|
116
|
+
shopperGuid?: string;
|
|
117
|
+
accountId?: string;
|
|
118
|
+
}, xDrtDomain?: string): CancelablePromise<SupportSessionStateDto>;
|
|
86
119
|
}
|
|
@@ -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,18 @@ 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
|
+
},
|
|
101
112
|
body: requestBody,
|
|
102
113
|
mediaType: 'application/json',
|
|
103
114
|
errors: {
|
|
@@ -111,14 +122,17 @@ class SessionService {
|
|
|
111
122
|
* Shorten the cart timer
|
|
112
123
|
* 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
124
|
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
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).
|
|
114
126
|
* @returns ExtendTimerResponseDto Returns the shortened timer state.
|
|
115
127
|
* @throws ApiError
|
|
116
128
|
*/
|
|
117
|
-
static shortenTimer(context) {
|
|
129
|
+
static shortenTimer(context, xDrtDomain) {
|
|
118
130
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
119
131
|
method: 'POST',
|
|
120
132
|
url: '/session/shorten',
|
|
121
|
-
headers:
|
|
133
|
+
headers: {
|
|
134
|
+
'x-drt-domain': xDrtDomain,
|
|
135
|
+
},
|
|
122
136
|
errors: {
|
|
123
137
|
400: `Bad Request error with error details.`,
|
|
124
138
|
404: `Not found error with error details.`,
|
|
@@ -130,14 +144,64 @@ class SessionService {
|
|
|
130
144
|
* What this caller may see
|
|
131
145
|
* 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
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).
|
|
133
148
|
* @returns CapabilityManifestDto Capability manifest for the calling session.
|
|
134
149
|
* @throws ApiError
|
|
135
150
|
*/
|
|
136
|
-
static getCapabilities(context) {
|
|
151
|
+
static getCapabilities(context, xDrtDomain) {
|
|
137
152
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
138
153
|
method: 'GET',
|
|
139
154
|
url: '/session/capabilities',
|
|
140
|
-
headers:
|
|
155
|
+
headers: {
|
|
156
|
+
'x-drt-domain': xDrtDomain,
|
|
157
|
+
},
|
|
158
|
+
errors: {
|
|
159
|
+
400: `Bad Request error with error details.`,
|
|
160
|
+
404: `Not found error with error details.`,
|
|
161
|
+
500: `Internal Server Error, please contact developers.`,
|
|
162
|
+
},
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Technical assistance state for this session
|
|
167
|
+
* 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).
|
|
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).
|
|
170
|
+
* @returns SupportSessionStateDto The technical assistance state of the calling session.
|
|
171
|
+
* @throws ApiError
|
|
172
|
+
*/
|
|
173
|
+
static getSupportState(context, xDrtDomain) {
|
|
174
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
175
|
+
method: 'GET',
|
|
176
|
+
url: '/session/support',
|
|
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
|
+
* Start a technical assistance session
|
|
189
|
+
* 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).
|
|
190
|
+
* @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
|
|
191
|
+
* @param requestBody
|
|
192
|
+
* @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).
|
|
193
|
+
* @returns SupportSessionStateDto The technical assistance state after the flag was raised.
|
|
194
|
+
* @throws ApiError
|
|
195
|
+
*/
|
|
196
|
+
static startSupportSession(requestBody, context, xDrtDomain) {
|
|
197
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
198
|
+
method: 'POST',
|
|
199
|
+
url: '/session/support',
|
|
200
|
+
headers: {
|
|
201
|
+
'x-drt-domain': xDrtDomain,
|
|
202
|
+
},
|
|
203
|
+
body: requestBody,
|
|
204
|
+
mediaType: 'application/json',
|
|
141
205
|
errors: {
|
|
142
206
|
400: `Bad Request error with error details.`,
|
|
143
207
|
404: `Not found error with error details.`,
|
|
@@ -3,6 +3,8 @@ export type { Album } from './models/Album';
|
|
|
3
3
|
export type { AlbumImage } from './models/AlbumImage';
|
|
4
4
|
export type { AlbumWithImages } from './models/AlbumWithImages';
|
|
5
5
|
export type { AnswerInput } from './models/AnswerInput';
|
|
6
|
+
export type { AssetDownloadRequest } from './models/AssetDownloadRequest';
|
|
7
|
+
export type { AssetDownloadResponse } from './models/AssetDownloadResponse';
|
|
6
8
|
export type { AssignNamesReturn } from './models/AssignNamesReturn';
|
|
7
9
|
export type { BAHold } from './models/BAHold';
|
|
8
10
|
export type { BlockOfTickets } from './models/BlockOfTickets';
|
|
@@ -32,12 +34,15 @@ export type { CheckoutStep } from './models/CheckoutStep';
|
|
|
32
34
|
export type { CheckoutStepsResponse } from './models/CheckoutStepsResponse';
|
|
33
35
|
export type { CheckoutSubmitBody } from './models/CheckoutSubmitBody';
|
|
34
36
|
export type { CheckoutSuccessResponse } from './models/CheckoutSuccessResponse';
|
|
37
|
+
export type { ClientRequestErrorResponse } from './models/ClientRequestErrorResponse';
|
|
35
38
|
export type { CodeDto } from './models/CodeDto';
|
|
36
39
|
export type { CompleteBody } from './models/CompleteBody';
|
|
37
40
|
export type { ConnectedAccountResponse } from './models/ConnectedAccountResponse';
|
|
38
41
|
export type { CreateCustomerResponse } from './models/CreateCustomerResponse';
|
|
39
42
|
export type { CreatePaymentIntentBody } from './models/CreatePaymentIntentBody';
|
|
40
43
|
export type { CreatePaymentIntentResponse } from './models/CreatePaymentIntentResponse';
|
|
44
|
+
export type { CreatePaymentLinkBody } from './models/CreatePaymentLinkBody';
|
|
45
|
+
export type { CreatePaymentLinkResponse } from './models/CreatePaymentLinkResponse';
|
|
41
46
|
export type { CreateSessionDto } from './models/CreateSessionDto';
|
|
42
47
|
export type { DigitalAsset } from './models/DigitalAsset';
|
|
43
48
|
export type { DonateOrderRequest } from './models/DonateOrderRequest';
|
|
@@ -97,6 +102,8 @@ export type { NameUpdate } from './models/NameUpdate';
|
|
|
97
102
|
export type { NextStepResponse } from './models/NextStepResponse';
|
|
98
103
|
export type { OrderBalance } from './models/OrderBalance';
|
|
99
104
|
export type { OrderDetails } from './models/OrderDetails';
|
|
105
|
+
export type { OrderLookupBody } from './models/OrderLookupBody';
|
|
106
|
+
export type { OrderLookupResult } from './models/OrderLookupResult';
|
|
100
107
|
export type { OrderPaymentStatus } from './models/OrderPaymentStatus';
|
|
101
108
|
export type { OrderRecalc } from './models/OrderRecalc';
|
|
102
109
|
export type { OrderRefundDetails } from './models/OrderRefundDetails';
|
|
@@ -105,7 +112,8 @@ export type { OrderStream } from './models/OrderStream';
|
|
|
105
112
|
export type { OrderTicketReceipt } from './models/OrderTicketReceipt';
|
|
106
113
|
export type { PatronName } from './models/PatronName';
|
|
107
114
|
export type { PaymentDetail } from './models/PaymentDetail';
|
|
108
|
-
export type {
|
|
115
|
+
export type { PaymentLinkSession } from './models/PaymentLinkSession';
|
|
116
|
+
export type { PaymentLinkStatus } from './models/PaymentLinkStatus';
|
|
109
117
|
export type { PaymentSuccess } from './models/PaymentSuccess';
|
|
110
118
|
export type { PerformerEventList } from './models/PerformerEventList';
|
|
111
119
|
export type { PickupReturn } from './models/PickupReturn';
|
|
@@ -126,6 +134,7 @@ export type { Receipt } from './models/Receipt';
|
|
|
126
134
|
export type { ReceiptMessages } from './models/ReceiptMessages';
|
|
127
135
|
export type { ReceiptQuestions } from './models/ReceiptQuestions';
|
|
128
136
|
export type { Refund } from './models/Refund';
|
|
137
|
+
export type { RefundExchangeOffer } from './models/RefundExchangeOffer';
|
|
129
138
|
export type { RefundPaymentIntentBody } from './models/RefundPaymentIntentBody';
|
|
130
139
|
export type { RefundPaymentIntentResponse } from './models/RefundPaymentIntentResponse';
|
|
131
140
|
export type { RefundPolicy } from './models/RefundPolicy';
|
|
@@ -134,31 +143,42 @@ export type { RefundRequest } from './models/RefundRequest';
|
|
|
134
143
|
export type { RefundRequestInfo } from './models/RefundRequestInfo';
|
|
135
144
|
export type { RegisterStreamRequest } from './models/RegisterStreamRequest';
|
|
136
145
|
export type { RegisterStreamResponse } from './models/RegisterStreamResponse';
|
|
146
|
+
export type { ResetStreamInviteRequest } from './models/ResetStreamInviteRequest';
|
|
137
147
|
export type { RootConfigResponse } from './models/RootConfigResponse';
|
|
138
148
|
export type { SaveDetailsBody } from './models/SaveDetailsBody';
|
|
139
149
|
export type { SaveNonceBody } from './models/SaveNonceBody';
|
|
150
|
+
export type { SaveStreamInvitesRequest } from './models/SaveStreamInvitesRequest';
|
|
151
|
+
export type { SaveStreamInvitesResponse } from './models/SaveStreamInvitesResponse';
|
|
140
152
|
export type { SeatData } from './models/SeatData';
|
|
141
153
|
export type { SeatHoldObject } from './models/SeatHoldObject';
|
|
142
154
|
export type { SeatHoldReturn } from './models/SeatHoldReturn';
|
|
143
155
|
export type { SeatIdInput } from './models/SeatIdInput';
|
|
144
156
|
export type { SeatInCart } from './models/SeatInCart';
|
|
145
157
|
export type { SeatingTier } from './models/SeatingTier';
|
|
158
|
+
export type { SeatManifest } from './models/SeatManifest';
|
|
146
159
|
export type { SeatsByShow } from './models/SeatsByShow';
|
|
147
160
|
export type { Section } from './models/Section';
|
|
148
161
|
export type { SectionRule } from './models/SectionRule';
|
|
149
162
|
export type { SessionHeartbeatDto } from './models/SessionHeartbeatDto';
|
|
150
163
|
export type { SessionInfoDto } from './models/SessionInfoDto';
|
|
151
164
|
export type { SetLanguageDto } from './models/SetLanguageDto';
|
|
165
|
+
export type { SharedStream } from './models/SharedStream';
|
|
152
166
|
export type { ShowExtras } from './models/ShowExtras';
|
|
153
167
|
export type { SiteDisposition } from './models/SiteDisposition';
|
|
154
168
|
export type { SiteTheme } from './models/SiteTheme';
|
|
169
|
+
export type { StartSupportSessionDto } from './models/StartSupportSessionDto';
|
|
170
|
+
export type { StreamAuthorization } from './models/StreamAuthorization';
|
|
155
171
|
export type { StreamDetails } from './models/StreamDetails';
|
|
156
172
|
export type { StreamDownloadLink } from './models/StreamDownloadLink';
|
|
173
|
+
export type { StreamInvite } from './models/StreamInvite';
|
|
174
|
+
export type { StreamInviteInput } from './models/StreamInviteInput';
|
|
175
|
+
export type { StreamInvitesResponse } from './models/StreamInvitesResponse';
|
|
157
176
|
export type { StudioOrderSettings } from './models/StudioOrderSettings';
|
|
158
177
|
export type { StudioSettings } from './models/StudioSettings';
|
|
159
178
|
export type { SuccessResponse } from './models/SuccessResponse';
|
|
160
179
|
export type { SuccessWithTime } from './models/SuccessWithTime';
|
|
161
180
|
export type { SummaryBody } from './models/SummaryBody';
|
|
181
|
+
export type { SupportSessionStateDto } from './models/SupportSessionStateDto';
|
|
162
182
|
export type { TheatreAddresses } from './models/TheatreAddresses';
|
|
163
183
|
export type { Ticket } from './models/Ticket';
|
|
164
184
|
export type { TicketBlock } from './models/TicketBlock';
|
|
@@ -29,6 +29,7 @@ export declare const DRT: {
|
|
|
29
29
|
health: typeof import("../generated/shopper").HealthService;
|
|
30
30
|
order: typeof import("../generated/shopper").OrderService;
|
|
31
31
|
payment: typeof import("../generated/shopper").PaymentService;
|
|
32
|
+
paymentlink: typeof import("../generated/shopper").PaymentLinkService;
|
|
32
33
|
product: typeof import("../generated/shopper").ProductService;
|
|
33
34
|
seat: typeof import("../generated/shopper").SeatService;
|
|
34
35
|
session: typeof import("../generated/shopper").SessionService;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export declare const DRT: {
|
|
|
14
14
|
health: typeof import("./src/generated/shopper").HealthService;
|
|
15
15
|
order: typeof import("./src/generated/shopper").OrderService;
|
|
16
16
|
payment: typeof import("./src/generated/shopper").PaymentService;
|
|
17
|
+
paymentlink: typeof import("./src/generated/shopper").PaymentLinkService;
|
|
17
18
|
product: typeof import("./src/generated/shopper").ProductService;
|
|
18
19
|
seat: typeof import("./src/generated/shopper").SeatService;
|
|
19
20
|
session: typeof import("./src/generated/shopper").SessionService;
|
|
@@ -8,6 +8,7 @@ import { GiftCardService } from "../generated/shopper";
|
|
|
8
8
|
import { HealthService } from "../generated/shopper";
|
|
9
9
|
import { OrderService } from "../generated/shopper";
|
|
10
10
|
import { PaymentService } from "../generated/shopper";
|
|
11
|
+
import { PaymentLinkService } from "../generated/shopper";
|
|
11
12
|
import { ProductService } from "../generated/shopper";
|
|
12
13
|
import { SeatService } from "../generated/shopper";
|
|
13
14
|
import { SessionService } from "../generated/shopper";
|
|
@@ -23,6 +24,7 @@ export declare const shopper: {
|
|
|
23
24
|
health: typeof HealthService;
|
|
24
25
|
order: typeof OrderService;
|
|
25
26
|
payment: typeof PaymentService;
|
|
27
|
+
paymentlink: typeof PaymentLinkService;
|
|
26
28
|
product: typeof ProductService;
|
|
27
29
|
seat: typeof SeatService;
|
|
28
30
|
session: typeof SessionService;
|
|
@@ -9,6 +9,7 @@ import { GiftCardService } from "../generated/shopper/index.js";
|
|
|
9
9
|
import { HealthService } from "../generated/shopper/index.js";
|
|
10
10
|
import { OrderService } from "../generated/shopper/index.js";
|
|
11
11
|
import { PaymentService } from "../generated/shopper/index.js";
|
|
12
|
+
import { PaymentLinkService } from "../generated/shopper/index.js";
|
|
12
13
|
import { ProductService } from "../generated/shopper/index.js";
|
|
13
14
|
import { SeatService } from "../generated/shopper/index.js";
|
|
14
15
|
import { SessionService } from "../generated/shopper/index.js";
|
|
@@ -24,6 +25,7 @@ export const shopper = {
|
|
|
24
25
|
health: HealthService,
|
|
25
26
|
order: OrderService,
|
|
26
27
|
payment: PaymentService,
|
|
28
|
+
paymentlink: PaymentLinkService,
|
|
27
29
|
product: ProductService,
|
|
28
30
|
seat: SeatService,
|
|
29
31
|
session: SessionService,
|