@drttix/drt-sdk 2.0.5 → 2.0.7

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 (177) hide show
  1. package/dist/cjs/index.d.ts +4 -0
  2. package/dist/cjs/src/definitions/portal.d.ts +8 -0
  3. package/dist/cjs/src/definitions/portal.js +47 -39
  4. package/dist/cjs/src/generated/portal/core/OpenAPI.js +1 -1
  5. package/dist/cjs/src/generated/portal/index.d.ts +23 -0
  6. package/dist/cjs/src/generated/portal/index.js +10 -2
  7. package/dist/cjs/src/generated/portal/models/CreateShowCodeRequestDto.d.ts +1 -1
  8. package/dist/cjs/src/generated/portal/models/DeletePushSubscriptionRequestDto.d.ts +3 -0
  9. package/dist/cjs/src/generated/portal/models/DeletePushSubscriptionRequestDto.js +2 -0
  10. package/dist/cjs/src/generated/portal/models/PushPublicKeyResponseDto.d.ts +6 -0
  11. package/dist/cjs/src/generated/portal/models/PushPublicKeyResponseDto.js +2 -0
  12. package/dist/cjs/src/generated/portal/models/PushSendResponseDto.d.ts +15 -0
  13. package/dist/cjs/src/generated/portal/models/PushSendResponseDto.js +2 -0
  14. package/dist/cjs/src/generated/portal/models/PushSubscriptionKeysDto.d.ts +4 -0
  15. package/dist/cjs/src/generated/portal/models/PushSubscriptionKeysDto.js +2 -0
  16. package/dist/cjs/src/generated/portal/models/SalesTaxLookupRequestDto.d.ts +9 -0
  17. package/dist/cjs/src/generated/portal/models/SalesTaxLookupRequestDto.js +2 -0
  18. package/dist/cjs/src/generated/portal/models/SalesTaxLookupResponseDto.d.ts +6 -0
  19. package/dist/cjs/src/generated/portal/models/SalesTaxLookupResponseDto.js +2 -0
  20. package/dist/cjs/src/generated/portal/models/SavePushSubscriptionRequestDto.d.ts +7 -0
  21. package/dist/cjs/src/generated/portal/models/SavePushSubscriptionRequestDto.js +2 -0
  22. package/dist/cjs/src/generated/portal/models/ScanningEndResponseDto.d.ts +6 -0
  23. package/dist/cjs/src/generated/portal/models/ScanningEndResponseDto.js +2 -0
  24. package/dist/cjs/src/generated/portal/models/SendSupportChatMessageRequestDto.d.ts +15 -0
  25. package/dist/cjs/src/generated/portal/models/SendSupportChatMessageRequestDto.js +2 -0
  26. package/dist/cjs/src/generated/portal/models/SendSupportChatMessageResponseDto.d.ts +5 -0
  27. package/dist/cjs/src/generated/portal/models/SendSupportChatMessageResponseDto.js +2 -0
  28. package/dist/cjs/src/generated/portal/models/SetScanningEndRequestDto.d.ts +6 -0
  29. package/dist/cjs/src/generated/portal/models/SetScanningEndRequestDto.js +2 -0
  30. package/dist/cjs/src/generated/portal/models/StudioFeesLedgerRequestDto.d.ts +8 -2
  31. package/dist/cjs/src/generated/portal/models/SupportChatAttachmentDto.d.ts +4 -0
  32. package/dist/cjs/src/generated/portal/models/SupportChatAttachmentDto.js +2 -0
  33. package/dist/cjs/src/generated/portal/models/SupportChatConversationDto.d.ts +25 -0
  34. package/dist/cjs/src/generated/portal/models/SupportChatConversationDto.js +2 -0
  35. package/dist/cjs/src/generated/portal/models/SupportChatConversationSummaryDto.d.ts +16 -0
  36. package/dist/cjs/src/generated/portal/models/SupportChatConversationSummaryDto.js +2 -0
  37. package/dist/cjs/src/generated/portal/models/SupportChatMessageDto.d.ts +24 -0
  38. package/dist/cjs/src/generated/portal/models/SupportChatMessageDto.js +2 -0
  39. package/dist/cjs/src/generated/portal/models/SupportChatReadRequestDto.d.ts +6 -0
  40. package/dist/cjs/src/generated/portal/models/SupportChatReadRequestDto.js +2 -0
  41. package/dist/cjs/src/generated/portal/models/SupportChatResponseDto.d.ts +13 -0
  42. package/dist/cjs/src/generated/portal/models/SupportChatResponseDto.js +2 -0
  43. package/dist/cjs/src/generated/portal/models/SupportChatSocketDto.d.ts +13 -0
  44. package/dist/cjs/src/generated/portal/models/SupportChatSocketDto.js +2 -0
  45. package/dist/cjs/src/generated/portal/models/SupportChatSocketResponseDto.d.ts +4 -0
  46. package/dist/cjs/src/generated/portal/models/SupportChatSocketResponseDto.js +2 -0
  47. package/dist/cjs/src/generated/portal/models/TicketScanningShowResponseDto.d.ts +4 -0
  48. package/dist/cjs/src/generated/portal/models/UpdateShowCodeRequestDto.d.ts +1 -1
  49. package/dist/cjs/src/generated/portal/services/AccountingService.d.ts +4 -5
  50. package/dist/cjs/src/generated/portal/services/AccountingService.js +4 -7
  51. package/dist/cjs/src/generated/portal/services/ClientToolsStudioManagementIntegrationService.d.ts +12 -0
  52. package/dist/cjs/src/generated/portal/services/ClientToolsStudioManagementIntegrationService.js +24 -0
  53. package/dist/cjs/src/generated/portal/services/ClientToolsTicketScanningService.d.ts +12 -0
  54. package/dist/cjs/src/generated/portal/services/ClientToolsTicketScanningService.js +23 -0
  55. package/dist/cjs/src/generated/portal/services/PushNotificationsService.d.ts +33 -0
  56. package/dist/cjs/src/generated/portal/services/PushNotificationsService.js +62 -0
  57. package/dist/cjs/src/generated/portal/services/ShowsService.d.ts +11 -0
  58. package/dist/cjs/src/generated/portal/services/ShowsService.js +19 -0
  59. package/dist/cjs/src/generated/portal/services/SuperUserPushNotificationsService.d.ts +13 -0
  60. package/dist/cjs/src/generated/portal/services/SuperUserPushNotificationsService.js +28 -0
  61. package/dist/cjs/src/generated/portal/services/SupportChatService.d.ts +57 -0
  62. package/dist/cjs/src/generated/portal/services/SupportChatService.js +107 -0
  63. package/dist/cjs/src/generated/portal/types.d.ts +19 -0
  64. package/dist/cjs/src/generated/scanner/core/OpenAPI.js +1 -1
  65. package/dist/cjs/src/generated/shopper/core/OpenAPI.js +1 -1
  66. package/dist/cjs/src/generated/shopper/models/Account.d.ts +4 -0
  67. package/dist/cjs/src/staging/index.d.ts +4 -0
  68. package/dist/cjs/src/staging/portal.d.ts +8 -0
  69. package/dist/cjs/src/staging/portal.js +47 -39
  70. package/dist/esm/index.d.ts +4 -0
  71. package/dist/esm/src/definitions/portal.d.ts +8 -0
  72. package/dist/esm/src/definitions/portal.js +8 -0
  73. package/dist/esm/src/generated/portal/core/OpenAPI.js +1 -1
  74. package/dist/esm/src/generated/portal/index.d.ts +23 -0
  75. package/dist/esm/src/generated/portal/index.js +4 -0
  76. package/dist/esm/src/generated/portal/models/CreateShowCodeRequestDto.d.ts +1 -1
  77. package/dist/esm/src/generated/portal/models/DeletePushSubscriptionRequestDto.d.ts +3 -0
  78. package/dist/esm/src/generated/portal/models/DeletePushSubscriptionRequestDto.js +1 -0
  79. package/dist/esm/src/generated/portal/models/PushPublicKeyResponseDto.d.ts +6 -0
  80. package/dist/esm/src/generated/portal/models/PushPublicKeyResponseDto.js +1 -0
  81. package/dist/esm/src/generated/portal/models/PushSendResponseDto.d.ts +15 -0
  82. package/dist/esm/src/generated/portal/models/PushSendResponseDto.js +1 -0
  83. package/dist/esm/src/generated/portal/models/PushSubscriptionKeysDto.d.ts +4 -0
  84. package/dist/esm/src/generated/portal/models/PushSubscriptionKeysDto.js +1 -0
  85. package/dist/esm/src/generated/portal/models/SalesTaxLookupRequestDto.d.ts +9 -0
  86. package/dist/esm/src/generated/portal/models/SalesTaxLookupRequestDto.js +1 -0
  87. package/dist/esm/src/generated/portal/models/SalesTaxLookupResponseDto.d.ts +6 -0
  88. package/dist/esm/src/generated/portal/models/SalesTaxLookupResponseDto.js +1 -0
  89. package/dist/esm/src/generated/portal/models/SavePushSubscriptionRequestDto.d.ts +7 -0
  90. package/dist/esm/src/generated/portal/models/SavePushSubscriptionRequestDto.js +1 -0
  91. package/dist/esm/src/generated/portal/models/ScanningEndResponseDto.d.ts +6 -0
  92. package/dist/esm/src/generated/portal/models/ScanningEndResponseDto.js +1 -0
  93. package/dist/esm/src/generated/portal/models/SendSupportChatMessageRequestDto.d.ts +15 -0
  94. package/dist/esm/src/generated/portal/models/SendSupportChatMessageRequestDto.js +1 -0
  95. package/dist/esm/src/generated/portal/models/SendSupportChatMessageResponseDto.d.ts +5 -0
  96. package/dist/esm/src/generated/portal/models/SendSupportChatMessageResponseDto.js +1 -0
  97. package/dist/esm/src/generated/portal/models/SetScanningEndRequestDto.d.ts +6 -0
  98. package/dist/esm/src/generated/portal/models/SetScanningEndRequestDto.js +1 -0
  99. package/dist/esm/src/generated/portal/models/StudioFeesLedgerRequestDto.d.ts +8 -2
  100. package/dist/esm/src/generated/portal/models/SupportChatAttachmentDto.d.ts +4 -0
  101. package/dist/esm/src/generated/portal/models/SupportChatAttachmentDto.js +1 -0
  102. package/dist/esm/src/generated/portal/models/SupportChatConversationDto.d.ts +25 -0
  103. package/dist/esm/src/generated/portal/models/SupportChatConversationDto.js +1 -0
  104. package/dist/esm/src/generated/portal/models/SupportChatConversationSummaryDto.d.ts +16 -0
  105. package/dist/esm/src/generated/portal/models/SupportChatConversationSummaryDto.js +1 -0
  106. package/dist/esm/src/generated/portal/models/SupportChatMessageDto.d.ts +24 -0
  107. package/dist/esm/src/generated/portal/models/SupportChatMessageDto.js +1 -0
  108. package/dist/esm/src/generated/portal/models/SupportChatReadRequestDto.d.ts +6 -0
  109. package/dist/esm/src/generated/portal/models/SupportChatReadRequestDto.js +1 -0
  110. package/dist/esm/src/generated/portal/models/SupportChatResponseDto.d.ts +13 -0
  111. package/dist/esm/src/generated/portal/models/SupportChatResponseDto.js +1 -0
  112. package/dist/esm/src/generated/portal/models/SupportChatSocketDto.d.ts +13 -0
  113. package/dist/esm/src/generated/portal/models/SupportChatSocketDto.js +1 -0
  114. package/dist/esm/src/generated/portal/models/SupportChatSocketResponseDto.d.ts +4 -0
  115. package/dist/esm/src/generated/portal/models/SupportChatSocketResponseDto.js +1 -0
  116. package/dist/esm/src/generated/portal/models/TicketScanningShowResponseDto.d.ts +4 -0
  117. package/dist/esm/src/generated/portal/models/UpdateShowCodeRequestDto.d.ts +1 -1
  118. package/dist/esm/src/generated/portal/services/AccountingService.d.ts +4 -5
  119. package/dist/esm/src/generated/portal/services/AccountingService.js +4 -7
  120. package/dist/esm/src/generated/portal/services/ClientToolsStudioManagementIntegrationService.d.ts +12 -0
  121. package/dist/esm/src/generated/portal/services/ClientToolsStudioManagementIntegrationService.js +20 -0
  122. package/dist/esm/src/generated/portal/services/ClientToolsTicketScanningService.d.ts +12 -0
  123. package/dist/esm/src/generated/portal/services/ClientToolsTicketScanningService.js +23 -0
  124. package/dist/esm/src/generated/portal/services/PushNotificationsService.d.ts +33 -0
  125. package/dist/esm/src/generated/portal/services/PushNotificationsService.js +58 -0
  126. package/dist/esm/src/generated/portal/services/ShowsService.d.ts +11 -0
  127. package/dist/esm/src/generated/portal/services/ShowsService.js +19 -0
  128. package/dist/esm/src/generated/portal/services/SuperUserPushNotificationsService.d.ts +13 -0
  129. package/dist/esm/src/generated/portal/services/SuperUserPushNotificationsService.js +24 -0
  130. package/dist/esm/src/generated/portal/services/SupportChatService.d.ts +57 -0
  131. package/dist/esm/src/generated/portal/services/SupportChatService.js +103 -0
  132. package/dist/esm/src/generated/portal/types.d.ts +19 -0
  133. package/dist/esm/src/generated/scanner/core/OpenAPI.js +1 -1
  134. package/dist/esm/src/generated/shopper/core/OpenAPI.js +1 -1
  135. package/dist/esm/src/generated/shopper/models/Account.d.ts +4 -0
  136. package/dist/esm/src/staging/index.d.ts +4 -0
  137. package/dist/esm/src/staging/portal.d.ts +8 -0
  138. package/dist/esm/src/staging/portal.js +8 -0
  139. package/package.json +1 -1
  140. package/src/definitions/portal.ts +8 -0
  141. package/src/generated/portal/core/OpenAPI.ts +1 -1
  142. package/src/generated/portal/index.ts +23 -0
  143. package/src/generated/portal/models/CreateShowCodeRequestDto.ts +1 -1
  144. package/src/generated/portal/models/DeletePushSubscriptionRequestDto.ts +8 -0
  145. package/src/generated/portal/models/PushPublicKeyResponseDto.ts +11 -0
  146. package/src/generated/portal/models/PushSendResponseDto.ts +20 -0
  147. package/src/generated/portal/models/PushSubscriptionKeysDto.ts +9 -0
  148. package/src/generated/portal/models/SalesTaxLookupRequestDto.ts +14 -0
  149. package/src/generated/portal/models/SalesTaxLookupResponseDto.ts +11 -0
  150. package/src/generated/portal/models/SavePushSubscriptionRequestDto.ts +12 -0
  151. package/src/generated/portal/models/ScanningEndResponseDto.ts +11 -0
  152. package/src/generated/portal/models/SendSupportChatMessageRequestDto.ts +20 -0
  153. package/src/generated/portal/models/SendSupportChatMessageResponseDto.ts +10 -0
  154. package/src/generated/portal/models/SetScanningEndRequestDto.ts +11 -0
  155. package/src/generated/portal/models/StudioFeesLedgerRequestDto.ts +8 -2
  156. package/src/generated/portal/models/SupportChatAttachmentDto.ts +9 -0
  157. package/src/generated/portal/models/SupportChatConversationDto.ts +30 -0
  158. package/src/generated/portal/models/SupportChatConversationSummaryDto.ts +21 -0
  159. package/src/generated/portal/models/SupportChatMessageDto.ts +29 -0
  160. package/src/generated/portal/models/SupportChatReadRequestDto.ts +11 -0
  161. package/src/generated/portal/models/SupportChatResponseDto.ts +18 -0
  162. package/src/generated/portal/models/SupportChatSocketDto.ts +18 -0
  163. package/src/generated/portal/models/SupportChatSocketResponseDto.ts +9 -0
  164. package/src/generated/portal/models/TicketScanningShowResponseDto.ts +4 -0
  165. package/src/generated/portal/models/UpdateShowCodeRequestDto.ts +1 -1
  166. package/src/generated/portal/services/AccountingService.ts +3 -7
  167. package/src/generated/portal/services/ClientToolsStudioManagementIntegrationService.ts +28 -0
  168. package/src/generated/portal/services/ClientToolsTicketScanningService.ts +29 -0
  169. package/src/generated/portal/services/PushNotificationsService.ts +75 -0
  170. package/src/generated/portal/services/ShowsService.ts +24 -0
  171. package/src/generated/portal/services/SuperUserPushNotificationsService.ts +33 -0
  172. package/src/generated/portal/services/SupportChatService.ts +132 -0
  173. package/src/generated/portal/types.ts +19 -0
  174. package/src/generated/scanner/core/OpenAPI.ts +1 -1
  175. package/src/generated/shopper/core/OpenAPI.ts +1 -1
  176. package/src/generated/shopper/models/Account.ts +4 -0
  177. package/src/staging/portal.ts +8 -0
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ export type SupportChatReadRequestDto = {
2
+ /**
3
+ * Superusers only: the conversation whose studio messages they read.
4
+ */
5
+ conversationId?: number;
6
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ import type { SupportChatConversationDto } from './SupportChatConversationDto';
2
+ import type { SupportChatConversationSummaryDto } from './SupportChatConversationSummaryDto';
3
+ export type SupportChatResponseDto = {
4
+ /**
5
+ * The session is DRT support (a superuser): it answers, it never writes as the studio.
6
+ */
7
+ asSupport: boolean;
8
+ conversation: SupportChatConversationDto | null;
9
+ /**
10
+ * Superusers only; empty otherwise.
11
+ */
12
+ openConversations: Array<SupportChatConversationSummaryDto>;
13
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ export type SupportChatSocketDto = {
2
+ url: string;
3
+ /**
4
+ * Listen-only token; the browser sends it as the `bearer.{token}` subprotocol.
5
+ */
6
+ token: string;
7
+ roomId: string;
8
+ /**
9
+ * The frame event that carries updates.
10
+ */
11
+ event: string;
12
+ conversationId: number;
13
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import type { SupportChatSocketDto } from './SupportChatSocketDto';
2
+ export type SupportChatSocketResponseDto = {
3
+ socket: SupportChatSocketDto | null;
4
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -12,4 +12,8 @@ export type TicketScanningShowResponseDto = {
12
12
  seatsScanned: number;
13
13
  statusId: number | null;
14
14
  statusName: string | null;
15
+ /**
16
+ * When the Scanner API stops serving the show: Eastern wall clock with a sentinel "Z"; null for no cutoff.
17
+ */
18
+ dateScanningEnd: string | null;
15
19
  };
@@ -1,5 +1,5 @@
1
1
  export type UpdateShowCodeRequestDto = {
2
- friendlyName?: Record<string, any> | null;
2
+ friendlyName?: string | null;
3
3
  accessLevel?: UpdateShowCodeRequestDto.accessLevel;
4
4
  };
5
5
  export declare namespace UpdateShowCodeRequestDto {
@@ -148,18 +148,17 @@ export declare class AccountingService {
148
148
  static getStudioFees(xStudioId: string): CancelablePromise<StudioFeesResponseDto>;
149
149
  /**
150
150
  * Fetch the studio fees details
151
- * Returns uncollected and retrieved fee totals for the date range
151
+ * Returns all-time uncollected and retrieved fee totals. Any request body is ignored.
152
152
  * @param xStudioId The ID of the studio
153
- * @param requestBody Date range for the studio fees details
154
153
  * @returns StudioFeesDetailsResponseDto Studio fees details fetched successfully
155
154
  * @throws ApiError
156
155
  */
157
- static getStudioFeesDetails(xStudioId: string, requestBody: TicketRequestDto): CancelablePromise<StudioFeesDetailsResponseDto>;
156
+ static getStudioFeesDetails(xStudioId: string): CancelablePromise<StudioFeesDetailsResponseDto>;
158
157
  /**
159
158
  * Fetch the studio fees ledger
160
- * Returns the per-order fee debits or credits for the date range
159
+ * Returns all-time per-order fee debits or credits
161
160
  * @param xStudioId The ID of the studio
162
- * @param requestBody Date range and ledger type (debits or credits)
161
+ * @param requestBody Ledger type (debits or credits)
163
162
  * @returns StudioFeesLedgerResponseDto Studio fees ledger fetched successfully
164
163
  * @throws ApiError
165
164
  */
@@ -245,28 +245,25 @@ class AccountingService {
245
245
  }
246
246
  /**
247
247
  * Fetch the studio fees details
248
- * Returns uncollected and retrieved fee totals for the date range
248
+ * Returns all-time uncollected and retrieved fee totals. Any request body is ignored.
249
249
  * @param xStudioId The ID of the studio
250
- * @param requestBody Date range for the studio fees details
251
250
  * @returns StudioFeesDetailsResponseDto Studio fees details fetched successfully
252
251
  * @throws ApiError
253
252
  */
254
- static getStudioFeesDetails(xStudioId, requestBody) {
253
+ static getStudioFeesDetails(xStudioId) {
255
254
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
256
255
  method: 'POST',
257
256
  url: '/admin-portal/accounting/studio-fees/details',
258
257
  headers: {
259
258
  'x-studio-id': xStudioId,
260
259
  },
261
- body: requestBody,
262
- mediaType: 'application/json',
263
260
  });
264
261
  }
265
262
  /**
266
263
  * Fetch the studio fees ledger
267
- * Returns the per-order fee debits or credits for the date range
264
+ * Returns all-time per-order fee debits or credits
268
265
  * @param xStudioId The ID of the studio
269
- * @param requestBody Date range and ledger type (debits or credits)
266
+ * @param requestBody Ledger type (debits or credits)
270
267
  * @returns StudioFeesLedgerResponseDto Studio fees ledger fetched successfully
271
268
  * @throws ApiError
272
269
  */
@@ -0,0 +1,12 @@
1
+ import type { IntegratorDetailResponseDto } from '../models/IntegratorDetailResponseDto';
2
+ import type { CancelablePromise } from '../core/CancelablePromise';
3
+ export declare class ClientToolsStudioManagementIntegrationService {
4
+ /**
5
+ * Fetch the platforms a studio can connect, and its connection
6
+ * The studio management platforms a studio can connect itself to, and the one it is connected to (id 0 and empty name when none).
7
+ * @param xStudioId The ID of the studio
8
+ * @returns IntegratorDetailResponseDto Integrators fetched successfully
9
+ * @throws ApiError
10
+ */
11
+ static getClientStudioIntegrators(xStudioId: string): CancelablePromise<IntegratorDetailResponseDto>;
12
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ClientToolsStudioManagementIntegrationService = void 0;
4
+ const OpenAPI_1 = require("../core/OpenAPI");
5
+ const request_1 = require("../core/request");
6
+ class ClientToolsStudioManagementIntegrationService {
7
+ /**
8
+ * Fetch the platforms a studio can connect, and its connection
9
+ * The studio management platforms a studio can connect itself to, and the one it is connected to (id 0 and empty name when none).
10
+ * @param xStudioId The ID of the studio
11
+ * @returns IntegratorDetailResponseDto Integrators fetched successfully
12
+ * @throws ApiError
13
+ */
14
+ static getClientStudioIntegrators(xStudioId) {
15
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
16
+ method: 'GET',
17
+ url: '/admin-portal/client-tools/studio-management-integration',
18
+ headers: {
19
+ 'x-studio-id': xStudioId,
20
+ },
21
+ });
22
+ }
23
+ }
24
+ exports.ClientToolsStudioManagementIntegrationService = ClientToolsStudioManagementIntegrationService;
@@ -2,6 +2,8 @@ import type { CreateShowCodeRequestDto } from '../models/CreateShowCodeRequestDt
2
2
  import type { ScannedTicketResponseDto } from '../models/ScannedTicketResponseDto';
3
3
  import type { ScannerLogFiltersResponseDto } from '../models/ScannerLogFiltersResponseDto';
4
4
  import type { ScannerLogResponseDto } from '../models/ScannerLogResponseDto';
5
+ import type { ScanningEndResponseDto } from '../models/ScanningEndResponseDto';
6
+ import type { SetScanningEndRequestDto } from '../models/SetScanningEndRequestDto';
5
7
  import type { ShowCodeResponseDto } from '../models/ShowCodeResponseDto';
6
8
  import type { SuccessResponse } from '../models/SuccessResponse';
7
9
  import type { TicketScanningShowResponseDto } from '../models/TicketScanningShowResponseDto';
@@ -66,6 +68,16 @@ export declare class ClientToolsTicketScanningService {
66
68
  * @throws ApiError
67
69
  */
68
70
  static resetScannedTicketDetails(xStudioId: string, showId: string): CancelablePromise<SuccessResponse>;
71
+ /**
72
+ * Set or clear when scanning stops for a show
73
+ * Writes show.date_scanning_end, past which the Scanner API stops serving the show. The date is an Eastern wall clock with a sentinel "Z"; null clears it.
74
+ * @param xStudioId The ID of the studio
75
+ * @param showId The ID of the show
76
+ * @param requestBody
77
+ * @returns ScanningEndResponseDto Scanning cutoff saved
78
+ * @throws ApiError
79
+ */
80
+ static setShowScanningEnd(xStudioId: string, showId: string, requestBody: SetScanningEndRequestDto): CancelablePromise<ScanningEndResponseDto>;
69
81
  /**
70
82
  * List the device show codes for a show
71
83
  * Every device show code made for the show, active ones first. The generic show code is not a row here; it comes with the show list.
@@ -128,6 +128,29 @@ class ClientToolsTicketScanningService {
128
128
  },
129
129
  });
130
130
  }
131
+ /**
132
+ * Set or clear when scanning stops for a show
133
+ * Writes show.date_scanning_end, past which the Scanner API stops serving the show. The date is an Eastern wall clock with a sentinel "Z"; null clears it.
134
+ * @param xStudioId The ID of the studio
135
+ * @param showId The ID of the show
136
+ * @param requestBody
137
+ * @returns ScanningEndResponseDto Scanning cutoff saved
138
+ * @throws ApiError
139
+ */
140
+ static setShowScanningEnd(xStudioId, showId, requestBody) {
141
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
142
+ method: 'PUT',
143
+ url: '/admin-portal/client-tools/ticket-scanning/{showId}/scanning-end',
144
+ path: {
145
+ 'showId': showId,
146
+ },
147
+ headers: {
148
+ 'x-studio-id': xStudioId,
149
+ },
150
+ body: requestBody,
151
+ mediaType: 'application/json',
152
+ });
153
+ }
131
154
  /**
132
155
  * List the device show codes for a show
133
156
  * Every device show code made for the show, active ones first. The generic show code is not a row here; it comes with the show list.
@@ -0,0 +1,33 @@
1
+ import type { DeletePushSubscriptionRequestDto } from '../models/DeletePushSubscriptionRequestDto';
2
+ import type { PushPublicKeyResponseDto } from '../models/PushPublicKeyResponseDto';
3
+ import type { SavePushSubscriptionRequestDto } from '../models/SavePushSubscriptionRequestDto';
4
+ import type { SuccessResponse } from '../models/SuccessResponse';
5
+ import type { CancelablePromise } from '../core/CancelablePromise';
6
+ export declare class PushNotificationsService {
7
+ /**
8
+ * Fetch the VAPID public key a device subscribes with
9
+ * Empty when push is not configured on this environment, which the app reads as "not available".
10
+ * @param xStudioId The ID of the studio
11
+ * @returns PushPublicKeyResponseDto VAPID public key fetched successfully
12
+ * @throws ApiError
13
+ */
14
+ static getPushPublicKey(xStudioId: string): CancelablePromise<PushPublicKeyResponseDto>;
15
+ /**
16
+ * Register (or refresh) this device's push subscription
17
+ * Called by the installed app on every open while notifications are on, so a rotated subscription replaces the old one. The endpoint is the device's identity.
18
+ * @param xStudioId The ID of the studio
19
+ * @param requestBody
20
+ * @returns SuccessResponse Push subscription saved successfully
21
+ * @throws ApiError
22
+ */
23
+ static savePushSubscription(xStudioId: string, requestBody: SavePushSubscriptionRequestDto): CancelablePromise<SuccessResponse>;
24
+ /**
25
+ * Remove this device's push subscription
26
+ * Called when notifications are turned off or on sign-out.
27
+ * @param xStudioId The ID of the studio
28
+ * @param requestBody
29
+ * @returns SuccessResponse Push subscription removed successfully
30
+ * @throws ApiError
31
+ */
32
+ static deletePushSubscription(xStudioId: string, requestBody: DeletePushSubscriptionRequestDto): CancelablePromise<SuccessResponse>;
33
+ }
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PushNotificationsService = void 0;
4
+ const OpenAPI_1 = require("../core/OpenAPI");
5
+ const request_1 = require("../core/request");
6
+ class PushNotificationsService {
7
+ /**
8
+ * Fetch the VAPID public key a device subscribes with
9
+ * Empty when push is not configured on this environment, which the app reads as "not available".
10
+ * @param xStudioId The ID of the studio
11
+ * @returns PushPublicKeyResponseDto VAPID public key fetched successfully
12
+ * @throws ApiError
13
+ */
14
+ static getPushPublicKey(xStudioId) {
15
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
16
+ method: 'GET',
17
+ url: '/admin-portal/push/vapid-public-key',
18
+ headers: {
19
+ 'x-studio-id': xStudioId,
20
+ },
21
+ });
22
+ }
23
+ /**
24
+ * Register (or refresh) this device's push subscription
25
+ * Called by the installed app on every open while notifications are on, so a rotated subscription replaces the old one. The endpoint is the device's identity.
26
+ * @param xStudioId The ID of the studio
27
+ * @param requestBody
28
+ * @returns SuccessResponse Push subscription saved successfully
29
+ * @throws ApiError
30
+ */
31
+ static savePushSubscription(xStudioId, requestBody) {
32
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
33
+ method: 'POST',
34
+ url: '/admin-portal/push/subscription',
35
+ headers: {
36
+ 'x-studio-id': xStudioId,
37
+ },
38
+ body: requestBody,
39
+ mediaType: 'application/json',
40
+ });
41
+ }
42
+ /**
43
+ * Remove this device's push subscription
44
+ * Called when notifications are turned off or on sign-out.
45
+ * @param xStudioId The ID of the studio
46
+ * @param requestBody
47
+ * @returns SuccessResponse Push subscription removed successfully
48
+ * @throws ApiError
49
+ */
50
+ static deletePushSubscription(xStudioId, requestBody) {
51
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
52
+ method: 'DELETE',
53
+ url: '/admin-portal/push/subscription',
54
+ headers: {
55
+ 'x-studio-id': xStudioId,
56
+ },
57
+ body: requestBody,
58
+ mediaType: 'application/json',
59
+ });
60
+ }
61
+ }
62
+ exports.PushNotificationsService = PushNotificationsService;
@@ -17,6 +17,8 @@ import type { MigrateTicketRequestDto } from '../models/MigrateTicketRequestDto'
17
17
  import type { MigrateTicketResultDto } from '../models/MigrateTicketResultDto';
18
18
  import type { PerformersListRequestDto } from '../models/PerformersListRequestDto';
19
19
  import type { PerformersListResponseDto } from '../models/PerformersListResponseDto';
20
+ import type { SalesTaxLookupRequestDto } from '../models/SalesTaxLookupRequestDto';
21
+ import type { SalesTaxLookupResponseDto } from '../models/SalesTaxLookupResponseDto';
20
22
  import type { SavePricingSetRequestDto } from '../models/SavePricingSetRequestDto';
21
23
  import type { SavePricingSetResponseDto } from '../models/SavePricingSetResponseDto';
22
24
  import type { SeatDetailsResponseDto } from '../models/SeatDetailsResponseDto';
@@ -226,6 +228,15 @@ export declare class ShowsService {
226
228
  * @throws ApiError
227
229
  */
228
230
  static getShowSectionDetail(showId: string, sectionId: string): CancelablePromise<ShowSectionDetail>;
231
+ /**
232
+ * Look up a venue's sales tax
233
+ * For Create Event to offer in place of the studio sales tax
234
+ * @param xStudioId The ID of the studio
235
+ * @param requestBody The venue's address
236
+ * @returns SalesTaxLookupResponseDto The venue's sales tax rate
237
+ * @throws ApiError
238
+ */
239
+ static lookupShowSalesTax(xStudioId: string, requestBody: SalesTaxLookupRequestDto): CancelablePromise<SalesTaxLookupResponseDto>;
229
240
  /**
230
241
  * Create a new show
231
242
  * An Admin user should be able to create a General Admission Event
@@ -420,6 +420,25 @@ class ShowsService {
420
420
  },
421
421
  });
422
422
  }
423
+ /**
424
+ * Look up a venue's sales tax
425
+ * For Create Event to offer in place of the studio sales tax
426
+ * @param xStudioId The ID of the studio
427
+ * @param requestBody The venue's address
428
+ * @returns SalesTaxLookupResponseDto The venue's sales tax rate
429
+ * @throws ApiError
430
+ */
431
+ static lookupShowSalesTax(xStudioId, requestBody) {
432
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
433
+ method: 'POST',
434
+ url: '/admin-portal/shows/sales-tax-lookup',
435
+ headers: {
436
+ 'x-studio-id': xStudioId,
437
+ },
438
+ body: requestBody,
439
+ mediaType: 'application/json',
440
+ });
441
+ }
423
442
  /**
424
443
  * Create a new show
425
444
  * An Admin user should be able to create a General Admission Event
@@ -0,0 +1,13 @@
1
+ import type { PushSendResponseDto } from '../models/PushSendResponseDto';
2
+ import type { CancelablePromise } from '../core/CancelablePromise';
3
+ export declare class SuperUserPushNotificationsService {
4
+ /**
5
+ * Push an alert to every device the studio has registered
6
+ * Sends the alert subject and message as a push notification to each phone the studio has the app installed on. Reports how many devices were tried and how many accepted it.
7
+ * @param xStudioId The ID of the studio
8
+ * @param alertId The ID of the alert
9
+ * @returns PushSendResponseDto Alert pushed to the studio devices
10
+ * @throws ApiError
11
+ */
12
+ static pushAlertToStudio(xStudioId: string, alertId: string): CancelablePromise<PushSendResponseDto>;
13
+ }
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SuperUserPushNotificationsService = void 0;
4
+ const OpenAPI_1 = require("../core/OpenAPI");
5
+ const request_1 = require("../core/request");
6
+ class SuperUserPushNotificationsService {
7
+ /**
8
+ * Push an alert to every device the studio has registered
9
+ * Sends the alert subject and message as a push notification to each phone the studio has the app installed on. Reports how many devices were tried and how many accepted it.
10
+ * @param xStudioId The ID of the studio
11
+ * @param alertId The ID of the alert
12
+ * @returns PushSendResponseDto Alert pushed to the studio devices
13
+ * @throws ApiError
14
+ */
15
+ static pushAlertToStudio(xStudioId, alertId) {
16
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
17
+ method: 'POST',
18
+ url: '/admin-portal/superuser/push/alert/{alertId}',
19
+ path: {
20
+ 'alertId': alertId,
21
+ },
22
+ headers: {
23
+ 'x-studio-id': xStudioId,
24
+ },
25
+ });
26
+ }
27
+ }
28
+ exports.SuperUserPushNotificationsService = SuperUserPushNotificationsService;
@@ -0,0 +1,57 @@
1
+ import type { SendSupportChatMessageRequestDto } from '../models/SendSupportChatMessageRequestDto';
2
+ import type { SendSupportChatMessageResponseDto } from '../models/SendSupportChatMessageResponseDto';
3
+ import type { StartImageUploadRequestDto } from '../models/StartImageUploadRequestDto';
4
+ import type { StartImageUploadResponseDto } from '../models/StartImageUploadResponseDto';
5
+ import type { SuccessResponse } from '../models/SuccessResponse';
6
+ import type { SupportChatReadRequestDto } from '../models/SupportChatReadRequestDto';
7
+ import type { SupportChatResponseDto } from '../models/SupportChatResponseDto';
8
+ import type { SupportChatSocketResponseDto } from '../models/SupportChatSocketResponseDto';
9
+ import type { CancelablePromise } from '../core/CancelablePromise';
10
+ export declare class SupportChatService {
11
+ /**
12
+ * The support chat as the session sees it
13
+ * A studio login: its open conversation, or null. A superuser (asSupport): the studio's open conversations, and the one named by conversationId (or the only one).
14
+ * @param xStudioId The ID of the studio
15
+ * @param conversationId
16
+ * @returns SupportChatResponseDto
17
+ * @throws ApiError
18
+ */
19
+ static getSupportChat(xStudioId: string, conversationId?: string): CancelablePromise<SupportChatResponseDto>;
20
+ /**
21
+ * Send a message to DRT support
22
+ * Opens a conversation when the login has none. A repeated clientMessageId returns the first send.
23
+ * @param xStudioId The ID of the studio
24
+ * @param requestBody
25
+ * @returns SendSupportChatMessageResponseDto
26
+ * @throws ApiError
27
+ */
28
+ static sendSupportChatMessage(xStudioId: string, requestBody: SendSupportChatMessageRequestDto): CancelablePromise<SendSupportChatMessageResponseDto>;
29
+ /**
30
+ * Mark the other side's messages as read
31
+ * A studio login: DRT's replies are seen. A superuser: the named conversation's studio messages are read by DRT.
32
+ * @param xStudioId The ID of the studio
33
+ * @param requestBody
34
+ * @returns SuccessResponse
35
+ * @throws ApiError
36
+ */
37
+ static markSupportChatRead(xStudioId: string, requestBody: SupportChatReadRequestDto): CancelablePromise<SuccessResponse>;
38
+ /**
39
+ * A listen token for the conversation's websocket room
40
+ * The studio login's open conversation, or for a superuser the one named by conversationId. Null when there is none. refresh=true mints a new token (sent on every reconnect). 503 when the websocket server is unavailable.
41
+ * @param xStudioId The ID of the studio
42
+ * @param conversationId
43
+ * @param refresh
44
+ * @returns SupportChatSocketResponseDto
45
+ * @throws ApiError
46
+ */
47
+ static getSupportChatSocket(xStudioId: string, conversationId?: string, refresh?: string): CancelablePromise<SupportChatSocketResponseDto>;
48
+ /**
49
+ * A presigned upload for a photo to send in the support chat
50
+ * Images only. Upload the bytes, then send the returned fileName in attachmentFileNames.
51
+ * @param xStudioId The ID of the studio
52
+ * @param requestBody
53
+ * @returns StartImageUploadResponseDto
54
+ * @throws ApiError
55
+ */
56
+ static startSupportChatImageUpload(xStudioId: string, requestBody: StartImageUploadRequestDto): CancelablePromise<StartImageUploadResponseDto>;
57
+ }
@@ -0,0 +1,107 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SupportChatService = void 0;
4
+ const OpenAPI_1 = require("../core/OpenAPI");
5
+ const request_1 = require("../core/request");
6
+ class SupportChatService {
7
+ /**
8
+ * The support chat as the session sees it
9
+ * A studio login: its open conversation, or null. A superuser (asSupport): the studio's open conversations, and the one named by conversationId (or the only one).
10
+ * @param xStudioId The ID of the studio
11
+ * @param conversationId
12
+ * @returns SupportChatResponseDto
13
+ * @throws ApiError
14
+ */
15
+ static getSupportChat(xStudioId, conversationId) {
16
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
17
+ method: 'GET',
18
+ url: '/admin-portal/support-chat/conversation',
19
+ headers: {
20
+ 'x-studio-id': xStudioId,
21
+ },
22
+ query: {
23
+ 'conversationId': conversationId,
24
+ },
25
+ });
26
+ }
27
+ /**
28
+ * Send a message to DRT support
29
+ * Opens a conversation when the login has none. A repeated clientMessageId returns the first send.
30
+ * @param xStudioId The ID of the studio
31
+ * @param requestBody
32
+ * @returns SendSupportChatMessageResponseDto
33
+ * @throws ApiError
34
+ */
35
+ static sendSupportChatMessage(xStudioId, requestBody) {
36
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
37
+ method: 'POST',
38
+ url: '/admin-portal/support-chat/messages',
39
+ headers: {
40
+ 'x-studio-id': xStudioId,
41
+ },
42
+ body: requestBody,
43
+ mediaType: 'application/json',
44
+ });
45
+ }
46
+ /**
47
+ * Mark the other side's messages as read
48
+ * A studio login: DRT's replies are seen. A superuser: the named conversation's studio messages are read by DRT.
49
+ * @param xStudioId The ID of the studio
50
+ * @param requestBody
51
+ * @returns SuccessResponse
52
+ * @throws ApiError
53
+ */
54
+ static markSupportChatRead(xStudioId, requestBody) {
55
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
56
+ method: 'POST',
57
+ url: '/admin-portal/support-chat/read',
58
+ headers: {
59
+ 'x-studio-id': xStudioId,
60
+ },
61
+ body: requestBody,
62
+ mediaType: 'application/json',
63
+ });
64
+ }
65
+ /**
66
+ * A listen token for the conversation's websocket room
67
+ * The studio login's open conversation, or for a superuser the one named by conversationId. Null when there is none. refresh=true mints a new token (sent on every reconnect). 503 when the websocket server is unavailable.
68
+ * @param xStudioId The ID of the studio
69
+ * @param conversationId
70
+ * @param refresh
71
+ * @returns SupportChatSocketResponseDto
72
+ * @throws ApiError
73
+ */
74
+ static getSupportChatSocket(xStudioId, conversationId, refresh) {
75
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
76
+ method: 'GET',
77
+ url: '/admin-portal/support-chat/socket',
78
+ headers: {
79
+ 'x-studio-id': xStudioId,
80
+ },
81
+ query: {
82
+ 'conversationId': conversationId,
83
+ 'refresh': refresh,
84
+ },
85
+ });
86
+ }
87
+ /**
88
+ * A presigned upload for a photo to send in the support chat
89
+ * Images only. Upload the bytes, then send the returned fileName in attachmentFileNames.
90
+ * @param xStudioId The ID of the studio
91
+ * @param requestBody
92
+ * @returns StartImageUploadResponseDto
93
+ * @throws ApiError
94
+ */
95
+ static startSupportChatImageUpload(xStudioId, requestBody) {
96
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
97
+ method: 'POST',
98
+ url: '/admin-portal/support-chat/start-image-upload',
99
+ headers: {
100
+ 'x-studio-id': xStudioId,
101
+ },
102
+ body: requestBody,
103
+ mediaType: 'application/json',
104
+ });
105
+ }
106
+ }
107
+ exports.SupportChatService = SupportChatService;