@drttix/drt-sdk 2.0.3 → 2.0.4

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.
Files changed (97) hide show
  1. package/dist/cjs/index.d.ts +1 -0
  2. package/dist/cjs/src/definitions/shopper.d.ts +2 -0
  3. package/dist/cjs/src/definitions/shopper.js +9 -7
  4. package/dist/cjs/src/generated/portal/core/OpenAPI.js +1 -1
  5. package/dist/cjs/src/generated/portal/index.d.ts +2 -0
  6. package/dist/cjs/src/generated/portal/index.js +4 -2
  7. package/dist/cjs/src/generated/portal/models/BugReportRequestDto.d.ts +4 -0
  8. package/dist/cjs/src/generated/portal/models/CouponDetailResponseDto.d.ts +12 -0
  9. package/dist/cjs/src/generated/portal/models/CreateUpdateFundRequestDto.d.ts +2 -2
  10. package/dist/cjs/src/generated/portal/models/ExecuteReleaseSeatRequestDto.d.ts +4 -1
  11. package/dist/cjs/src/generated/portal/models/ExecuteReleaseSeatResponseDto.d.ts +20 -0
  12. package/dist/cjs/src/generated/portal/models/ExecuteReleaseSeatResponseDto.js +13 -0
  13. package/dist/cjs/src/generated/portal/models/MigrateTicketResultDto.d.ts +10 -0
  14. package/dist/cjs/src/generated/portal/models/MigrateTicketResultDto.js +2 -0
  15. package/dist/cjs/src/generated/portal/models/OrderActionsResponseDto.d.ts +7 -0
  16. package/dist/cjs/src/generated/portal/models/OrderListRequestDto.d.ts +4 -0
  17. package/dist/cjs/src/generated/portal/models/PartialTicketResponseDto.d.ts +4 -0
  18. package/dist/cjs/src/generated/portal/models/ShowDetailsResponseDto.d.ts +4 -0
  19. package/dist/cjs/src/generated/portal/models/UpdateDiscountCodeRequestDto.d.ts +12 -3
  20. package/dist/cjs/src/generated/portal/services/ClientToolsInterviewUpdateService.d.ts +1 -1
  21. package/dist/cjs/src/generated/portal/services/ClientToolsInterviewUpdateService.js +1 -1
  22. package/dist/cjs/src/generated/portal/services/OrderLookupService.d.ts +4 -3
  23. package/dist/cjs/src/generated/portal/services/OrderLookupService.js +2 -2
  24. package/dist/cjs/src/generated/portal/services/ShowsService.d.ts +5 -3
  25. package/dist/cjs/src/generated/portal/services/ShowsService.js +7 -3
  26. package/dist/cjs/src/generated/portal/services/SuperUserShoppersService.d.ts +2 -2
  27. package/dist/cjs/src/generated/portal/services/SuperUserShoppersService.js +2 -2
  28. package/dist/cjs/src/generated/portal/types.d.ts +1 -0
  29. package/dist/cjs/src/generated/shopper/core/OpenAPI.js +1 -1
  30. package/dist/cjs/src/generated/shopper/index.d.ts +1 -0
  31. package/dist/cjs/src/generated/shopper/index.js +3 -1
  32. package/dist/cjs/src/generated/shopper/models/AlbumWithImages.d.ts +1 -1
  33. package/dist/cjs/src/generated/shopper/models/ShowExtras.d.ts +4 -0
  34. package/dist/cjs/src/generated/shopper/services/OccupancyService.d.ts +27 -0
  35. package/dist/cjs/src/generated/shopper/services/OccupancyService.js +39 -0
  36. package/dist/cjs/src/staging/index.d.ts +1 -0
  37. package/dist/esm/index.d.ts +1 -0
  38. package/dist/esm/src/definitions/shopper.d.ts +2 -0
  39. package/dist/esm/src/definitions/shopper.js +2 -0
  40. package/dist/esm/src/generated/portal/core/OpenAPI.js +1 -1
  41. package/dist/esm/src/generated/portal/index.d.ts +2 -0
  42. package/dist/esm/src/generated/portal/index.js +1 -0
  43. package/dist/esm/src/generated/portal/models/BugReportRequestDto.d.ts +4 -0
  44. package/dist/esm/src/generated/portal/models/CouponDetailResponseDto.d.ts +12 -0
  45. package/dist/esm/src/generated/portal/models/CreateUpdateFundRequestDto.d.ts +2 -2
  46. package/dist/esm/src/generated/portal/models/ExecuteReleaseSeatRequestDto.d.ts +4 -1
  47. package/dist/esm/src/generated/portal/models/ExecuteReleaseSeatResponseDto.d.ts +20 -0
  48. package/dist/esm/src/generated/portal/models/ExecuteReleaseSeatResponseDto.js +10 -0
  49. package/dist/esm/src/generated/portal/models/MigrateTicketResultDto.d.ts +10 -0
  50. package/dist/esm/src/generated/portal/models/MigrateTicketResultDto.js +1 -0
  51. package/dist/esm/src/generated/portal/models/OrderActionsResponseDto.d.ts +7 -0
  52. package/dist/esm/src/generated/portal/models/OrderListRequestDto.d.ts +4 -0
  53. package/dist/esm/src/generated/portal/models/PartialTicketResponseDto.d.ts +4 -0
  54. package/dist/esm/src/generated/portal/models/ShowDetailsResponseDto.d.ts +4 -0
  55. package/dist/esm/src/generated/portal/models/UpdateDiscountCodeRequestDto.d.ts +12 -3
  56. package/dist/esm/src/generated/portal/services/ClientToolsInterviewUpdateService.d.ts +1 -1
  57. package/dist/esm/src/generated/portal/services/ClientToolsInterviewUpdateService.js +1 -1
  58. package/dist/esm/src/generated/portal/services/OrderLookupService.d.ts +4 -3
  59. package/dist/esm/src/generated/portal/services/OrderLookupService.js +2 -2
  60. package/dist/esm/src/generated/portal/services/ShowsService.d.ts +5 -3
  61. package/dist/esm/src/generated/portal/services/ShowsService.js +7 -3
  62. package/dist/esm/src/generated/portal/services/SuperUserShoppersService.d.ts +2 -2
  63. package/dist/esm/src/generated/portal/services/SuperUserShoppersService.js +2 -2
  64. package/dist/esm/src/generated/portal/types.d.ts +1 -0
  65. package/dist/esm/src/generated/shopper/core/OpenAPI.js +1 -1
  66. package/dist/esm/src/generated/shopper/index.d.ts +1 -0
  67. package/dist/esm/src/generated/shopper/index.js +1 -0
  68. package/dist/esm/src/generated/shopper/models/AlbumWithImages.d.ts +1 -1
  69. package/dist/esm/src/generated/shopper/models/ShowExtras.d.ts +4 -0
  70. package/dist/esm/src/generated/shopper/services/OccupancyService.d.ts +27 -0
  71. package/dist/esm/src/generated/shopper/services/OccupancyService.js +35 -0
  72. package/dist/esm/src/staging/index.d.ts +1 -0
  73. package/package.json +1 -1
  74. package/src/definitions/shopper.ts +2 -0
  75. package/src/generated/portal/core/OpenAPI.ts +1 -1
  76. package/src/generated/portal/index.ts +2 -0
  77. package/src/generated/portal/models/BugReportRequestDto.ts +4 -0
  78. package/src/generated/portal/models/CouponDetailResponseDto.ts +12 -0
  79. package/src/generated/portal/models/CreateUpdateFundRequestDto.ts +2 -2
  80. package/src/generated/portal/models/ExecuteReleaseSeatRequestDto.ts +4 -1
  81. package/src/generated/portal/models/ExecuteReleaseSeatResponseDto.ts +25 -0
  82. package/src/generated/portal/models/MigrateTicketResultDto.ts +15 -0
  83. package/src/generated/portal/models/OrderActionsResponseDto.ts +7 -0
  84. package/src/generated/portal/models/OrderListRequestDto.ts +4 -0
  85. package/src/generated/portal/models/PartialTicketResponseDto.ts +4 -0
  86. package/src/generated/portal/models/ShowDetailsResponseDto.ts +4 -0
  87. package/src/generated/portal/models/UpdateDiscountCodeRequestDto.ts +12 -3
  88. package/src/generated/portal/services/ClientToolsInterviewUpdateService.ts +1 -1
  89. package/src/generated/portal/services/OrderLookupService.ts +4 -3
  90. package/src/generated/portal/services/ShowsService.ts +9 -3
  91. package/src/generated/portal/services/SuperUserShoppersService.ts +2 -2
  92. package/src/generated/portal/types.ts +1 -0
  93. package/src/generated/shopper/core/OpenAPI.ts +1 -1
  94. package/src/generated/shopper/index.ts +1 -0
  95. package/src/generated/shopper/models/AlbumWithImages.ts +1 -1
  96. package/src/generated/shopper/models/ShowExtras.ts +4 -0
  97. package/src/generated/shopper/services/OccupancyService.ts +46 -0
@@ -7,6 +7,7 @@ import { DonationService } from "../generated/shopper/index.js";
7
7
  import { EventService } from "../generated/shopper/index.js";
8
8
  import { GiftCardService } from "../generated/shopper/index.js";
9
9
  import { HealthService } from "../generated/shopper/index.js";
10
+ import { OccupancyService } from "../generated/shopper/index.js";
10
11
  import { OrderService } from "../generated/shopper/index.js";
11
12
  import { PaymentService } from "../generated/shopper/index.js";
12
13
  import { PaymentLinkService } from "../generated/shopper/index.js";
@@ -23,6 +24,7 @@ export const shopper = {
23
24
  event: EventService,
24
25
  giftcard: GiftCardService,
25
26
  health: HealthService,
27
+ occupancy: OccupancyService,
26
28
  order: OrderService,
27
29
  payment: PaymentService,
28
30
  paymentlink: PaymentLinkService,
@@ -1,6 +1,6 @@
1
1
  export const OpenAPI = {
2
2
  BASE: '',
3
- VERSION: '20261010.1',
3
+ VERSION: '20261013.1',
4
4
  WITH_CREDENTIALS: false,
5
5
  CREDENTIALS: 'include',
6
6
  TOKEN: undefined,
@@ -145,6 +145,7 @@ export type { EmailDetailResponseDto } from './models/EmailDetailResponseDto';
145
145
  export type { ExchangeShowDetailResponseDto } from './models/ExchangeShowDetailResponseDto';
146
146
  export type { ExchangeTierDetailResponseDto } from './models/ExchangeTierDetailResponseDto';
147
147
  export type { ExecuteReleaseSeatRequestDto } from './models/ExecuteReleaseSeatRequestDto';
148
+ export { ExecuteReleaseSeatResponseDto } from './models/ExecuteReleaseSeatResponseDto';
148
149
  export type { ExecuteSeatExchangeRequestDto } from './models/ExecuteSeatExchangeRequestDto';
149
150
  export type { ExpireHiddenCodesRequestDto } from './models/ExpireHiddenCodesRequestDto';
150
151
  export type { ExtraCartResponseDto } from './models/ExtraCartResponseDto';
@@ -217,6 +218,7 @@ export type { MarkedUnavailableSeatResponseDto } from './models/MarkedUnavailabl
217
218
  export type { MessageSettingResponseDto } from './models/MessageSettingResponseDto';
218
219
  export type { MigrateTicketDetails } from './models/MigrateTicketDetails';
219
220
  export type { MigrateTicketRequestDto } from './models/MigrateTicketRequestDto';
221
+ export type { MigrateTicketResultDto } from './models/MigrateTicketResultDto';
220
222
  export type { MigrationPossibleShow } from './models/MigrationPossibleShow';
221
223
  export type { ModifyTicketRequestDto } from './models/ModifyTicketRequestDto';
222
224
  export type { NotificationDto } from './models/NotificationDto';
@@ -10,6 +10,7 @@ export { AgreementStatusResponseDto } from './models/AgreementStatusResponseDto.
10
10
  export { CheckoutAnswerType } from './models/CheckoutAnswerType.js';
11
11
  export { CreateShowRequestDto } from './models/CreateShowRequestDto.js';
12
12
  export { EditMailRequestDto } from './models/EditMailRequestDto.js';
13
+ export { ExecuteReleaseSeatResponseDto } from './models/ExecuteReleaseSeatResponseDto.js';
13
14
  export { SalesTaxRegistrationOption } from './models/SalesTaxRegistrationOption.js';
14
15
  export { ShowDeployOption } from './models/ShowDeployOption.js';
15
16
  export { SkippedSessionSeatDto } from './models/SkippedSessionSeatDto.js';
@@ -5,4 +5,8 @@ export type BugReportRequestDto = {
5
5
  * S3 key returned from /settings/start-image-upload; the server builds the CDN URL from this.
6
6
  */
7
7
  screenshotFileName?: string;
8
+ /**
9
+ * The reporter wants to hear back when it is resolved: a client support ticket is opened for the CSS team, who tell them.
10
+ */
11
+ notifyOnResolve?: boolean;
8
12
  };
@@ -25,6 +25,18 @@ export type CouponDetailResponseDto = {
25
25
  showDesignation: string | null;
26
26
  showDateStart: string | null;
27
27
  showTypeName: string | null;
28
+ /**
29
+ * The coupon's own show restriction (coupon.show_id).
30
+ */
31
+ showId: number | null;
32
+ /**
33
+ * The coupon's show group restriction.
34
+ */
35
+ showGroupId: number | null;
36
+ /**
37
+ * The coupon's show type restriction. Not the type of the show above.
38
+ */
39
+ showTypeId: number | null;
28
40
  customLogicId: number;
29
41
  customLogicName: string | null;
30
42
  aliasDateExpired: string | null;
@@ -6,8 +6,8 @@ export type CreateUpdateFundRequestDto = {
6
6
  fixedList: string;
7
7
  maxAmount: number;
8
8
  minAmount: number;
9
- dateStart: string;
10
- dateEnd: string;
9
+ dateStart?: Record<string, any> | null;
10
+ dateEnd?: Record<string, any> | null;
11
11
  isEnabled: number;
12
12
  receiptText: string;
13
13
  thankYouText: string;
@@ -6,6 +6,9 @@ export type ExecuteReleaseSeatRequestDto = {
6
6
  amountGc: number;
7
7
  createRefundRequest: number;
8
8
  amountRefundRequest: number;
9
- emailBuyer: number;
9
+ /**
10
+ * Email the buyer the order update after the release. Defaults to true. Sent whether or not a refund request created by the release was auto-approved.
11
+ */
12
+ emailBuyer?: boolean;
10
13
  addToWaitlist: number;
11
14
  };
@@ -0,0 +1,20 @@
1
+ export type ExecuteReleaseSeatResponseDto = {
2
+ success: boolean;
3
+ /**
4
+ * Seats released by this call. 0 when a refund request was created but not auto-approved.
5
+ */
6
+ released: number;
7
+ /**
8
+ * The refund request this release created, if any.
9
+ */
10
+ refundRequestId: number | null;
11
+ refundState: ExecuteReleaseSeatResponseDto.refundState;
12
+ };
13
+ export declare namespace ExecuteReleaseSeatResponseDto {
14
+ enum refundState {
15
+ NONE = "none",
16
+ APPROVED = "approved",
17
+ PENDING = "pending",
18
+ DECLINED = "declined"
19
+ }
20
+ }
@@ -0,0 +1,10 @@
1
+ export var ExecuteReleaseSeatResponseDto;
2
+ (function (ExecuteReleaseSeatResponseDto) {
3
+ let refundState;
4
+ (function (refundState) {
5
+ refundState["NONE"] = "none";
6
+ refundState["APPROVED"] = "approved";
7
+ refundState["PENDING"] = "pending";
8
+ refundState["DECLINED"] = "declined";
9
+ })(refundState = ExecuteReleaseSeatResponseDto.refundState || (ExecuteReleaseSeatResponseDto.refundState = {}));
10
+ })(ExecuteReleaseSeatResponseDto || (ExecuteReleaseSeatResponseDto = {}));
@@ -0,0 +1,10 @@
1
+ export type MigrateTicketResultDto = {
2
+ /**
3
+ * True when every seat the order held on the source event moved to the target event
4
+ */
5
+ success: boolean;
6
+ /**
7
+ * "OK" on success, otherwise the reason dbo.MigrateTickets gave for not moving the seats, verbatim; empty when it gave none
8
+ */
9
+ message: string;
10
+ };
@@ -3,6 +3,13 @@ export type OrderActionsResponseDto = {
3
3
  balance: number;
4
4
  guid: string;
5
5
  disputeCount: number;
6
+ /**
7
+ * Refund requests on the order that are not yet completed, declined, cancelled or client-approved. Classic blocks exchanges while this is non-zero.
8
+ */
9
+ activeRefundCount: number;
10
+ /**
11
+ * 1 when classic would offer Exchange Tickets: the ledger is in balance, no refund request is active and the order still holds seats. Show dates and show type do not matter.
12
+ */
6
13
  isExchangeEligible: number;
7
14
  isReleaseEligible: number;
8
15
  isModifyEligible: number;
@@ -1,5 +1,9 @@
1
1
  export type OrderListRequestDto = {
2
2
  type: string;
3
3
  searchQuery: string;
4
+ /**
5
+ * Ignored. The export-only columns (couponAmount, discountAmount, srcCode) are returned on every request; kept so existing clients still validate.
6
+ * @deprecated
7
+ */
4
8
  inputFormat: string;
5
9
  };
@@ -10,6 +10,10 @@ export type PartialTicketResponseDto = {
10
10
  tierName: string;
11
11
  price: number;
12
12
  isVirtualPerformance: number;
13
+ /**
14
+ * 1 when the show is virtual (Video on Demand, Digital Download or Live Stream; show.type_id <> 1), else 0. Use this, not isVirtualPerformance, to tell a virtual show: that flag is missing on some Live Stream rows and set on some in-person ones.
15
+ */
16
+ isVirtual: number;
13
17
  serviceCharge: number;
14
18
  isGeneralSeating: number;
15
19
  };
@@ -9,6 +9,10 @@ export type ShowDetailsResponseDto = {
9
9
  status: string | null;
10
10
  isGeneralSeating: number;
11
11
  isVirtualPerformance: number;
12
+ /**
13
+ * 1 when the show is virtual (Video on Demand, Digital Download or Live Stream; show.type_id <> 1), else 0. Use this, not isVirtualPerformance, to tell a virtual show: that flag is missing on some Live Stream rows and set on some in-person ones.
14
+ */
15
+ isVirtual: number;
12
16
  statusId: number | null;
13
17
  statusName: string | null;
14
18
  };
@@ -3,9 +3,18 @@ export type UpdateDiscountCodeRequestDto = {
3
3
  code: string;
4
4
  seats: number;
5
5
  minOrderSize: number;
6
- showId: number;
7
- showGroupId: number;
8
- showTypeId: number;
6
+ /**
7
+ * Omit to keep the stored show. 0 or null stores NULL ("Any show").
8
+ */
9
+ showId?: number | null;
10
+ /**
11
+ * Omit to keep the stored show group. 0 or null stores NULL.
12
+ */
13
+ showGroupId?: number | null;
14
+ /**
15
+ * Omit to keep the stored show type. 0 or null stores NULL.
16
+ */
17
+ showTypeId?: number | null;
9
18
  email: string;
10
19
  dateAllowed: string;
11
20
  dateExpires: string;
@@ -14,7 +14,7 @@ export declare class ClientToolsInterviewUpdateService {
14
14
  static getInterviewUpdate(xStudioId: string, interviewGuid: string): CancelablePromise<InterviewUpdateResponseDto>;
15
15
  /**
16
16
  * Submit interview update responses
17
- * Persist the responses for the interview follow-up questionnaire
17
+ * Email the responses for the interview follow-up questionnaire to the DRT team (the interview record is not modified)
18
18
  * @param xStudioId The ID of the studio
19
19
  * @param requestBody
20
20
  * @returns SuccessResponse Interview update submitted successfully
@@ -23,7 +23,7 @@ export class ClientToolsInterviewUpdateService {
23
23
  }
24
24
  /**
25
25
  * Submit interview update responses
26
- * Persist the responses for the interview follow-up questionnaire
26
+ * Email the responses for the interview follow-up questionnaire to the DRT team (the interview record is not modified)
27
27
  * @param xStudioId The ID of the studio
28
28
  * @param requestBody
29
29
  * @returns SuccessResponse Interview update submitted successfully
@@ -2,6 +2,7 @@ import type { AddSessionSeatRequestDto } from '../models/AddSessionSeatRequestDt
2
2
  import type { AddSessionSeatResponseDto } from '../models/AddSessionSeatResponseDto';
3
3
  import type { CancelExchangeTicketRequestDto } from '../models/CancelExchangeTicketRequestDto';
4
4
  import type { ExecuteReleaseSeatRequestDto } from '../models/ExecuteReleaseSeatRequestDto';
5
+ import type { ExecuteReleaseSeatResponseDto } from '../models/ExecuteReleaseSeatResponseDto';
5
6
  import type { ExecuteSeatExchangeRequestDto } from '../models/ExecuteSeatExchangeRequestDto';
6
7
  import type { ModifyTicketRequestDto } from '../models/ModifyTicketRequestDto';
7
8
  import type { OrderActionsResponseDto } from '../models/OrderActionsResponseDto';
@@ -116,10 +117,10 @@ export declare class OrderLookupService {
116
117
  * @param xStudioId The ID of the studio
117
118
  * @param orderId The ID of the order
118
119
  * @param requestBody Release seat payload
119
- * @returns SuccessResponse Seats released successfully
120
+ * @returns ExecuteReleaseSeatResponseDto Release processed. refundState says whether a refund request it created was auto-approved (seats released) or is pending / declined (nothing released).
120
121
  * @throws ApiError
121
122
  */
122
- static releaseSeat(xStudioId: string, orderId: string, requestBody: ExecuteReleaseSeatRequestDto): CancelablePromise<SuccessResponse>;
123
+ static releaseSeat(xStudioId: string, orderId: string, requestBody: ExecuteReleaseSeatRequestDto): CancelablePromise<ExecuteReleaseSeatResponseDto>;
123
124
  /**
124
125
  * Get the blocked seats details
125
126
  * Retrieves the details of the blocked seats
@@ -221,7 +222,7 @@ export declare class OrderLookupService {
221
222
  static executeSeatExchange(xStudioId: string, orderId: string, requestBody: ExecuteSeatExchangeRequestDto): CancelablePromise<SuccessResponse>;
222
223
  /**
223
224
  * Modify order tickets
224
- * To modify order tickets for the orders
225
+ * To modify order tickets for the orders. Answers 400 NO_TIER_CHANGE_ERROR, writing nothing, when no seat in `tier` differs from its current tier.
225
226
  * @param xStudioId The ID of the studio
226
227
  * @param orderId The ID of the order
227
228
  * @param requestBody Modify order tickets payload
@@ -183,7 +183,7 @@ export class OrderLookupService {
183
183
  * @param xStudioId The ID of the studio
184
184
  * @param orderId The ID of the order
185
185
  * @param requestBody Release seat payload
186
- * @returns SuccessResponse Seats released successfully
186
+ * @returns ExecuteReleaseSeatResponseDto Release processed. refundState says whether a refund request it created was auto-approved (seats released) or is pending / declined (nothing released).
187
187
  * @throws ApiError
188
188
  */
189
189
  static releaseSeat(xStudioId, orderId, requestBody) {
@@ -414,7 +414,7 @@ export class OrderLookupService {
414
414
  }
415
415
  /**
416
416
  * Modify order tickets
417
- * To modify order tickets for the orders
417
+ * To modify order tickets for the orders. Answers 400 NO_TIER_CHANGE_ERROR, writing nothing, when no seat in `tier` differs from its current tier.
418
418
  * @param xStudioId The ID of the studio
419
419
  * @param orderId The ID of the order
420
420
  * @param requestBody Modify order tickets payload
@@ -14,6 +14,7 @@ import type { EmailBuyersRequestDto } from '../models/EmailBuyersRequestDto';
14
14
  import type { ManagedShowResponseDto } from '../models/ManagedShowResponseDto';
15
15
  import type { MigrateTicketDetails } from '../models/MigrateTicketDetails';
16
16
  import type { MigrateTicketRequestDto } from '../models/MigrateTicketRequestDto';
17
+ import type { MigrateTicketResultDto } from '../models/MigrateTicketResultDto';
17
18
  import type { PerformersListRequestDto } from '../models/PerformersListRequestDto';
18
19
  import type { PerformersListResponseDto } from '../models/PerformersListResponseDto';
19
20
  import type { SavePricingSetRequestDto } from '../models/SavePricingSetRequestDto';
@@ -292,12 +293,13 @@ export declare class ShowsService {
292
293
  static approveShow(xStudioId: string, showId: string, requestBody: ApproveShowRequestDto): CancelablePromise<SuccessResponse>;
293
294
  /**
294
295
  * Migrate the show tickets to target show
295
- * To migrate the tickets from the source show to the target show
296
+ * To migrate one order's tickets from the source show to the target show. Both shows must belong to the studio (400 NO_ASSOC_SHOW_ERROR otherwise) and the order must hold seats on the source show (404 ORDER_NOT_FOUND_ERROR otherwise).
297
+ * @param xStudioId The ID of the studio
296
298
  * @param requestBody Migrate show tickets
297
- * @returns SuccessResponse Tickets migrated successfully
299
+ * @returns MigrateTicketResultDto The migration ran; success says whether every seat on the order moved, message is "OK" or the reason it did not
298
300
  * @throws ApiError
299
301
  */
300
- static migrateTickets(requestBody: MigrateTicketRequestDto): CancelablePromise<SuccessResponse>;
302
+ static migrateTickets(xStudioId: string, requestBody: MigrateTicketRequestDto): CancelablePromise<MigrateTicketResultDto>;
301
303
  /**
302
304
  * Edit the show details
303
305
  * To edit/update the details of the show
@@ -560,15 +560,19 @@ export class ShowsService {
560
560
  }
561
561
  /**
562
562
  * Migrate the show tickets to target show
563
- * To migrate the tickets from the source show to the target show
563
+ * To migrate one order's tickets from the source show to the target show. Both shows must belong to the studio (400 NO_ASSOC_SHOW_ERROR otherwise) and the order must hold seats on the source show (404 ORDER_NOT_FOUND_ERROR otherwise).
564
+ * @param xStudioId The ID of the studio
564
565
  * @param requestBody Migrate show tickets
565
- * @returns SuccessResponse Tickets migrated successfully
566
+ * @returns MigrateTicketResultDto The migration ran; success says whether every seat on the order moved, message is "OK" or the reason it did not
566
567
  * @throws ApiError
567
568
  */
568
- static migrateTickets(requestBody) {
569
+ static migrateTickets(xStudioId, requestBody) {
569
570
  return __request(OpenAPI, {
570
571
  method: 'PUT',
571
572
  url: '/admin-portal/shows/migrate-ticket',
573
+ headers: {
574
+ 'x-studio-id': xStudioId,
575
+ },
572
576
  body: requestBody,
573
577
  mediaType: 'application/json',
574
578
  });
@@ -17,13 +17,13 @@ export declare class SuperUserShoppersService {
17
17
  /**
18
18
  * Update the details of a shopper
19
19
  * Update the details of a shopper
20
- * @param shopper
21
20
  * @param xStudioId The ID of the studio
21
+ * @param shopper
22
22
  * @param requestBody Payload to update shopper session details
23
23
  * @returns SuccessResponse Details of the shopper updated successfully
24
24
  * @throws ApiError
25
25
  */
26
- static updateShopperDetails(shopper: string, xStudioId: string, requestBody: UpdateSessionRequestDto): CancelablePromise<SuccessResponse>;
26
+ static updateShopperDetails(xStudioId: string, shopper: string, requestBody: UpdateSessionRequestDto): CancelablePromise<SuccessResponse>;
27
27
  /**
28
28
  * Fetch the list of seats for the studio
29
29
  * Fetch the list of seats for a studio
@@ -20,13 +20,13 @@ export class SuperUserShoppersService {
20
20
  /**
21
21
  * Update the details of a shopper
22
22
  * Update the details of a shopper
23
- * @param shopper
24
23
  * @param xStudioId The ID of the studio
24
+ * @param shopper
25
25
  * @param requestBody Payload to update shopper session details
26
26
  * @returns SuccessResponse Details of the shopper updated successfully
27
27
  * @throws ApiError
28
28
  */
29
- static updateShopperDetails(shopper, xStudioId, requestBody) {
29
+ static updateShopperDetails(xStudioId, shopper, requestBody) {
30
30
  return __request(OpenAPI, {
31
31
  method: 'PUT',
32
32
  url: '/admin-portal/superuser/shopper',
@@ -208,6 +208,7 @@ export type { MarkedUnavailableSeatResponseDto } from './models/MarkedUnavailabl
208
208
  export type { MessageSettingResponseDto } from './models/MessageSettingResponseDto';
209
209
  export type { MigrateTicketDetails } from './models/MigrateTicketDetails';
210
210
  export type { MigrateTicketRequestDto } from './models/MigrateTicketRequestDto';
211
+ export type { MigrateTicketResultDto } from './models/MigrateTicketResultDto';
211
212
  export type { MigrationPossibleShow } from './models/MigrationPossibleShow';
212
213
  export type { ModifyTicketRequestDto } from './models/ModifyTicketRequestDto';
213
214
  export type { NotificationDto } from './models/NotificationDto';
@@ -1,6 +1,6 @@
1
1
  export const OpenAPI = {
2
2
  BASE: 'https://api.drttix.com/shopper',
3
- VERSION: '20261007.1',
3
+ VERSION: '20261013.3',
4
4
  WITH_CREDENTIALS: false,
5
5
  CREDENTIALS: 'include',
6
6
  TOKEN: undefined,
@@ -206,6 +206,7 @@ export { DonationService } from './services/DonationService';
206
206
  export { EventService } from './services/EventService';
207
207
  export { GiftCardService } from './services/GiftCardService';
208
208
  export { HealthService } from './services/HealthService';
209
+ export { OccupancyService } from './services/OccupancyService';
209
210
  export { OrderService } from './services/OrderService';
210
211
  export { PaymentService } from './services/PaymentService';
211
212
  export { PaymentLinkService } from './services/PaymentLinkService';
@@ -15,6 +15,7 @@ export { DonationService } from './services/DonationService.js';
15
15
  export { EventService } from './services/EventService.js';
16
16
  export { GiftCardService } from './services/GiftCardService.js';
17
17
  export { HealthService } from './services/HealthService.js';
18
+ export { OccupancyService } from './services/OccupancyService.js';
18
19
  export { OrderService } from './services/OrderService.js';
19
20
  export { PaymentService } from './services/PaymentService.js';
20
21
  export { PaymentLinkService } from './services/PaymentLinkService.js';
@@ -1,6 +1,6 @@
1
1
  import type { Album } from './Album';
2
2
  import type { AlbumImage } from './AlbumImage';
3
3
  export type AlbumWithImages = {
4
- details: Album;
4
+ details: Album | null;
5
5
  images: Array<AlbumImage>;
6
6
  };
@@ -11,6 +11,10 @@ export type ShowExtras = {
11
11
  * Maximum age for a lap child, if a lap-child policy applies.
12
12
  */
13
13
  lapChildMaxAge: number | null;
14
+ /**
15
+ * The venue's (theatre.handicap_policy) accessible-seating policy. GET /event/{id} already folds it into event.handicapPolicy when the show has none of its own; carried here so the fallback is visible.
16
+ */
17
+ venueHandicapPolicy: string | null;
14
18
  /**
15
19
  * The show's performer positions across the front of the stage, as the studio keys them: a list, a span, or spans and singles mixed ("1-10", "1,3,5,7", "10-1" for a house that counts the other way), with "|" breaking a cast too wide for one legible line onto a second ("1-12|13-24"). Read live from show.stage_numbers, and mirrored onto the event as stageNumbers.
16
20
  */
@@ -0,0 +1,27 @@
1
+ import type { CancelablePromise } from '../core/CancelablePromise';
2
+ export declare class OccupancyService {
3
+ /**
4
+ * Provision a read-only websocket for live per-event counts (staff only)
5
+ * Mints a listen-only websocket-server token bound to the session's STUDIO counts 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-counts-update", payload:{eventId, studioId, capacity, sold, held, blocked}} frames whenever the seat engine reports a change for any of the studio's shows. No snapshot arrives on join — clients paint from their own first read and may reconcile with GET /occupancy/counts. Requires a logged-in operator or a whitelisted IP; everyone else gets 403 NOT_STAFF. A 503 means "run without a socket for now", not a page failure.
6
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
7
+ * @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).
8
+ * @returns any The websocket connection details.
9
+ * @throws ApiError
10
+ */
11
+ static getOccupancyCountsSocket(context?: {
12
+ shopperGuid?: string;
13
+ accountId?: string;
14
+ }, xDrtDomain?: string): CancelablePromise<any>;
15
+ /**
16
+ * Last known per-event counts for the session's studio (staff only)
17
+ * The most recent {eventId, studioId, capacity, sold, held, blocked} snapshot this API has received from the seat engine for each of the studio's shows, each with the `storedAt` epoch milliseconds it arrived. In-memory only: a show nobody has touched since the API started is absent, not zero.
18
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
19
+ * @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).
20
+ * @returns any The cached counts snapshots.
21
+ * @throws ApiError
22
+ */
23
+ static getOccupancyCounts(context?: {
24
+ shopperGuid?: string;
25
+ accountId?: string;
26
+ }, xDrtDomain?: string): CancelablePromise<any>;
27
+ }
@@ -0,0 +1,35 @@
1
+ import { OpenAPI } from '../core/OpenAPI.js';
2
+ import { request as __request } from '../core/request.js';
3
+ import { resolveShopperHeaders } from '../../../functions/sdkConfig.js';
4
+ export class OccupancyService {
5
+ /**
6
+ * Provision a read-only websocket for live per-event counts (staff only)
7
+ * Mints a listen-only websocket-server token bound to the session's STUDIO counts 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-counts-update", payload:{eventId, studioId, capacity, sold, held, blocked}} frames whenever the seat engine reports a change for any of the studio's shows. No snapshot arrives on join — clients paint from their own first read and may reconcile with GET /occupancy/counts. Requires a logged-in operator or a whitelisted IP; everyone else gets 403 NOT_STAFF. A 503 means "run without a socket for now", not a page failure.
8
+ * @param context Optional per-call { shopperGuid, accountId } override. Falls back to the values passed to DRT.init().
9
+ * @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).
10
+ * @returns any The websocket connection details.
11
+ * @throws ApiError
12
+ */
13
+ static getOccupancyCountsSocket(context, xDrtDomain) {
14
+ return __request(OpenAPI, {
15
+ method: 'GET',
16
+ url: '/occupancy/counts/socket',
17
+ headers: resolveShopperHeaders(context, xDrtDomain),
18
+ });
19
+ }
20
+ /**
21
+ * Last known per-event counts for the session's studio (staff only)
22
+ * The most recent {eventId, studioId, capacity, sold, held, blocked} snapshot this API has received from the seat engine for each of the studio's shows, each with the `storedAt` epoch milliseconds it arrived. In-memory only: a show nobody has touched since the API started is absent, not zero.
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).
25
+ * @returns any The cached counts snapshots.
26
+ * @throws ApiError
27
+ */
28
+ static getOccupancyCounts(context, xDrtDomain) {
29
+ return __request(OpenAPI, {
30
+ method: 'GET',
31
+ url: '/occupancy/counts',
32
+ headers: resolveShopperHeaders(context, xDrtDomain),
33
+ });
34
+ }
35
+ }
@@ -27,6 +27,7 @@ export declare const DRT: {
27
27
  event: typeof import("../generated/shopper").EventService;
28
28
  giftcard: typeof import("../generated/shopper").GiftCardService;
29
29
  health: typeof import("../generated/shopper").HealthService;
30
+ occupancy: typeof import("../generated/shopper").OccupancyService;
30
31
  order: typeof import("../generated/shopper").OrderService;
31
32
  payment: typeof import("../generated/shopper").PaymentService;
32
33
  paymentlink: typeof import("../generated/shopper").PaymentLinkService;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@drttix/drt-sdk",
3
3
  "description": "DRT SDK",
4
- "version": "2.0.3",
4
+ "version": "2.0.4",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
7
7
  "types": "dist/esm/index.d.ts",
@@ -8,6 +8,7 @@ import { DonationService } from "../generated/shopper";
8
8
  import { EventService } from "../generated/shopper";
9
9
  import { GiftCardService } from "../generated/shopper";
10
10
  import { HealthService } from "../generated/shopper";
11
+ import { OccupancyService } from "../generated/shopper";
11
12
  import { OrderService } from "../generated/shopper";
12
13
  import { PaymentService } from "../generated/shopper";
13
14
  import { PaymentLinkService } from "../generated/shopper";
@@ -25,6 +26,7 @@ export const shopper = {
25
26
  event: EventService,
26
27
  giftcard: GiftCardService,
27
28
  health: HealthService,
29
+ occupancy: OccupancyService,
28
30
  order: OrderService,
29
31
  payment: PaymentService,
30
32
  paymentlink: PaymentLinkService,
@@ -21,7 +21,7 @@ export type OpenAPIConfig = {
21
21
 
22
22
  export const OpenAPI: OpenAPIConfig = {
23
23
  BASE: '',
24
- VERSION: '20261010.1',
24
+ VERSION: '20261013.1',
25
25
  WITH_CREDENTIALS: false,
26
26
  CREDENTIALS: 'include',
27
27
  TOKEN: undefined,
@@ -150,6 +150,7 @@ export type { EmailDetailResponseDto } from './models/EmailDetailResponseDto';
150
150
  export type { ExchangeShowDetailResponseDto } from './models/ExchangeShowDetailResponseDto';
151
151
  export type { ExchangeTierDetailResponseDto } from './models/ExchangeTierDetailResponseDto';
152
152
  export type { ExecuteReleaseSeatRequestDto } from './models/ExecuteReleaseSeatRequestDto';
153
+ export { ExecuteReleaseSeatResponseDto } from './models/ExecuteReleaseSeatResponseDto';
153
154
  export type { ExecuteSeatExchangeRequestDto } from './models/ExecuteSeatExchangeRequestDto';
154
155
  export type { ExpireHiddenCodesRequestDto } from './models/ExpireHiddenCodesRequestDto';
155
156
  export type { ExtraCartResponseDto } from './models/ExtraCartResponseDto';
@@ -222,6 +223,7 @@ export type { MarkedUnavailableSeatResponseDto } from './models/MarkedUnavailabl
222
223
  export type { MessageSettingResponseDto } from './models/MessageSettingResponseDto';
223
224
  export type { MigrateTicketDetails } from './models/MigrateTicketDetails';
224
225
  export type { MigrateTicketRequestDto } from './models/MigrateTicketRequestDto';
226
+ export type { MigrateTicketResultDto } from './models/MigrateTicketResultDto';
225
227
  export type { MigrationPossibleShow } from './models/MigrationPossibleShow';
226
228
  export type { ModifyTicketRequestDto } from './models/ModifyTicketRequestDto';
227
229
  export type { NotificationDto } from './models/NotificationDto';
@@ -9,5 +9,9 @@ export type BugReportRequestDto = {
9
9
  * S3 key returned from /settings/start-image-upload; the server builds the CDN URL from this.
10
10
  */
11
11
  screenshotFileName?: string;
12
+ /**
13
+ * The reporter wants to hear back when it is resolved: a client support ticket is opened for the CSS team, who tell them.
14
+ */
15
+ notifyOnResolve?: boolean;
12
16
  };
13
17
 
@@ -29,6 +29,18 @@ export type CouponDetailResponseDto = {
29
29
  showDesignation: string | null;
30
30
  showDateStart: string | null;
31
31
  showTypeName: string | null;
32
+ /**
33
+ * The coupon's own show restriction (coupon.show_id).
34
+ */
35
+ showId: number | null;
36
+ /**
37
+ * The coupon's show group restriction.
38
+ */
39
+ showGroupId: number | null;
40
+ /**
41
+ * The coupon's show type restriction. Not the type of the show above.
42
+ */
43
+ showTypeId: number | null;
32
44
  customLogicId: number;
33
45
  customLogicName: string | null;
34
46
  aliasDateExpired: string | null;
@@ -10,8 +10,8 @@ export type CreateUpdateFundRequestDto = {
10
10
  fixedList: string;
11
11
  maxAmount: number;
12
12
  minAmount: number;
13
- dateStart: string;
14
- dateEnd: string;
13
+ dateStart?: Record<string, any> | null;
14
+ dateEnd?: Record<string, any> | null;
15
15
  isEnabled: number;
16
16
  receiptText: string;
17
17
  thankYouText: string;