@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,15 @@
1
+ export type PushSendResponseDto = {
2
+ success: boolean;
3
+ /**
4
+ * Subscribed devices for the studio.
5
+ */
6
+ devices: number;
7
+ /**
8
+ * Devices the push service accepted it for.
9
+ */
10
+ sent: number;
11
+ /**
12
+ * Devices that refused it. Expired subscriptions (404/410) are dropped and counted here once.
13
+ */
14
+ failed: number;
15
+ };
@@ -0,0 +1,4 @@
1
+ export type PushSubscriptionKeysDto = {
2
+ p256dh: string;
3
+ auth: string;
4
+ };
@@ -0,0 +1,9 @@
1
+ export type SalesTaxLookupRequestDto = {
2
+ address: string;
3
+ city: string;
4
+ /**
5
+ * Two-letter state or province
6
+ */
7
+ state: string;
8
+ postal: string;
9
+ };
@@ -0,0 +1,6 @@
1
+ export type SalesTaxLookupResponseDto = {
2
+ /**
3
+ * The venue's rate, not a percent, like show.sales_tax. 0 where DRT does not collect tax on tickets. Null when it could not be looked up.
4
+ */
5
+ rate: number | null;
6
+ };
@@ -0,0 +1,7 @@
1
+ import type { PushSubscriptionKeysDto } from './PushSubscriptionKeysDto';
2
+ export type SavePushSubscriptionRequestDto = {
3
+ endpoint: string;
4
+ keys: PushSubscriptionKeysDto;
5
+ origin: string;
6
+ userAgent?: string;
7
+ };
@@ -0,0 +1,6 @@
1
+ export type ScanningEndResponseDto = {
2
+ /**
3
+ * Eastern wall clock with a sentinel "Z"; null when the show has no cutoff.
4
+ */
5
+ dateScanningEnd: string | null;
6
+ };
@@ -0,0 +1,15 @@
1
+ export type SendSupportChatMessageRequestDto = {
2
+ message?: string;
3
+ /**
4
+ * S3 keys from start-image-upload, after the upload finished.
5
+ */
6
+ attachmentFileNames?: Array<string>;
7
+ /**
8
+ * The sender's own id for this message (a UUID), so a retried send is saved once.
9
+ */
10
+ clientMessageId: string;
11
+ /**
12
+ * Superusers only, and then required: the studio's open conversation they answer as DRT support. A studio login always writes in its own conversation.
13
+ */
14
+ conversationId?: number;
15
+ };
@@ -0,0 +1,5 @@
1
+ import type { SupportChatMessageDto } from './SupportChatMessageDto';
2
+ export type SendSupportChatMessageResponseDto = {
3
+ conversationId: number;
4
+ message: SupportChatMessageDto;
5
+ };
@@ -0,0 +1,6 @@
1
+ export type SetScanningEndRequestDto = {
2
+ /**
3
+ * Eastern wall clock with a sentinel "Z" (not UTC). Null clears the cutoff.
4
+ */
5
+ dateScanningEnd: string | null;
6
+ };
@@ -1,7 +1,13 @@
1
1
  import type { StudioFeesLedgerType } from './StudioFeesLedgerType';
2
2
  export type StudioFeesLedgerRequestDto = {
3
- startDate: string;
4
- endDate: string;
3
+ /**
4
+ * @deprecated
5
+ */
6
+ startDate?: string;
7
+ /**
8
+ * @deprecated
9
+ */
10
+ endDate?: string;
5
11
  /**
6
12
  * debits lists accumulated fees (fee > 0), credits lists retrieved fees (fee < 0)
7
13
  */
@@ -0,0 +1,4 @@
1
+ export type SupportChatAttachmentDto = {
2
+ url: string;
3
+ contentType: string | null;
4
+ };
@@ -0,0 +1,25 @@
1
+ import type { SupportChatMessageDto } from './SupportChatMessageDto';
2
+ export type SupportChatConversationDto = {
3
+ id: number;
4
+ /**
5
+ * Eastern wall clock.
6
+ */
7
+ dateStarted: string;
8
+ /**
9
+ * Set when the chat has ended (Eastern wall clock). A studio login is shown its most recently ended chat, read-only, until it writes again.
10
+ */
11
+ dateClosed: string | null;
12
+ /**
13
+ * The email of the studio login it is with.
14
+ */
15
+ startedByName: string | null;
16
+ /**
17
+ * A DRT reply the studio login has not seen yet.
18
+ */
19
+ hasUnreadReplies: boolean;
20
+ /**
21
+ * A studio message DRT has not read yet.
22
+ */
23
+ hasUnreadMessages: boolean;
24
+ messages: Array<SupportChatMessageDto>;
25
+ };
@@ -0,0 +1,16 @@
1
+ export type SupportChatConversationSummaryDto = {
2
+ id: number;
3
+ /**
4
+ * The studio login's email.
5
+ */
6
+ startedByName: string | null;
7
+ /**
8
+ * Eastern wall clock.
9
+ */
10
+ lastMessageDate: string;
11
+ hasUnreadMessages: boolean;
12
+ /**
13
+ * The last message, shortened; empty for a photo.
14
+ */
15
+ preview: string;
16
+ };
@@ -0,0 +1,24 @@
1
+ import type { SupportChatAttachmentDto } from './SupportChatAttachmentDto';
2
+ export type SupportChatMessageDto = {
3
+ id: number;
4
+ conversationId: number;
5
+ /**
6
+ * True for a reply from DRT support, false for the studio.
7
+ */
8
+ fromSupport: boolean;
9
+ /**
10
+ * Plain text; may be empty when the message is only photos.
11
+ */
12
+ message: string;
13
+ senderName: string | null;
14
+ clientMessageId: string | null;
15
+ /**
16
+ * Eastern wall-clock time, no zone (the database clock).
17
+ */
18
+ dateCreated: string;
19
+ /**
20
+ * When the other side read it; Eastern wall clock.
21
+ */
22
+ dateRead: string | null;
23
+ attachments: Array<SupportChatAttachmentDto>;
24
+ };
@@ -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,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,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,4 @@
1
+ import type { SupportChatSocketDto } from './SupportChatSocketDto';
2
+ export type SupportChatSocketResponseDto = {
3
+ socket: SupportChatSocketDto | null;
4
+ };
@@ -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
  */
@@ -242,28 +242,25 @@ export class AccountingService {
242
242
  }
243
243
  /**
244
244
  * Fetch the studio fees details
245
- * Returns uncollected and retrieved fee totals for the date range
245
+ * Returns all-time uncollected and retrieved fee totals. Any request body is ignored.
246
246
  * @param xStudioId The ID of the studio
247
- * @param requestBody Date range for the studio fees details
248
247
  * @returns StudioFeesDetailsResponseDto Studio fees details fetched successfully
249
248
  * @throws ApiError
250
249
  */
251
- static getStudioFeesDetails(xStudioId, requestBody) {
250
+ static getStudioFeesDetails(xStudioId) {
252
251
  return __request(OpenAPI, {
253
252
  method: 'POST',
254
253
  url: '/admin-portal/accounting/studio-fees/details',
255
254
  headers: {
256
255
  'x-studio-id': xStudioId,
257
256
  },
258
- body: requestBody,
259
- mediaType: 'application/json',
260
257
  });
261
258
  }
262
259
  /**
263
260
  * Fetch the studio fees ledger
264
- * Returns the per-order fee debits or credits for the date range
261
+ * Returns all-time per-order fee debits or credits
265
262
  * @param xStudioId The ID of the studio
266
- * @param requestBody Date range and ledger type (debits or credits)
263
+ * @param requestBody Ledger type (debits or credits)
267
264
  * @returns StudioFeesLedgerResponseDto Studio fees ledger fetched successfully
268
265
  * @throws ApiError
269
266
  */
@@ -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,20 @@
1
+ import { OpenAPI } from '../core/OpenAPI.js';
2
+ import { request as __request } from '../core/request.js';
3
+ export 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) {
12
+ return __request(OpenAPI, {
13
+ method: 'GET',
14
+ url: '/admin-portal/client-tools/studio-management-integration',
15
+ headers: {
16
+ 'x-studio-id': xStudioId,
17
+ },
18
+ });
19
+ }
20
+ }
@@ -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.
@@ -125,6 +125,29 @@ export class ClientToolsTicketScanningService {
125
125
  },
126
126
  });
127
127
  }
128
+ /**
129
+ * Set or clear when scanning stops for a show
130
+ * 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.
131
+ * @param xStudioId The ID of the studio
132
+ * @param showId The ID of the show
133
+ * @param requestBody
134
+ * @returns ScanningEndResponseDto Scanning cutoff saved
135
+ * @throws ApiError
136
+ */
137
+ static setShowScanningEnd(xStudioId, showId, requestBody) {
138
+ return __request(OpenAPI, {
139
+ method: 'PUT',
140
+ url: '/admin-portal/client-tools/ticket-scanning/{showId}/scanning-end',
141
+ path: {
142
+ 'showId': showId,
143
+ },
144
+ headers: {
145
+ 'x-studio-id': xStudioId,
146
+ },
147
+ body: requestBody,
148
+ mediaType: 'application/json',
149
+ });
150
+ }
128
151
  /**
129
152
  * List the device show codes for a show
130
153
  * 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,58 @@
1
+ import { OpenAPI } from '../core/OpenAPI.js';
2
+ import { request as __request } from '../core/request.js';
3
+ export class PushNotificationsService {
4
+ /**
5
+ * Fetch the VAPID public key a device subscribes with
6
+ * Empty when push is not configured on this environment, which the app reads as "not available".
7
+ * @param xStudioId The ID of the studio
8
+ * @returns PushPublicKeyResponseDto VAPID public key fetched successfully
9
+ * @throws ApiError
10
+ */
11
+ static getPushPublicKey(xStudioId) {
12
+ return __request(OpenAPI, {
13
+ method: 'GET',
14
+ url: '/admin-portal/push/vapid-public-key',
15
+ headers: {
16
+ 'x-studio-id': xStudioId,
17
+ },
18
+ });
19
+ }
20
+ /**
21
+ * Register (or refresh) this device's push subscription
22
+ * 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.
23
+ * @param xStudioId The ID of the studio
24
+ * @param requestBody
25
+ * @returns SuccessResponse Push subscription saved successfully
26
+ * @throws ApiError
27
+ */
28
+ static savePushSubscription(xStudioId, requestBody) {
29
+ return __request(OpenAPI, {
30
+ method: 'POST',
31
+ url: '/admin-portal/push/subscription',
32
+ headers: {
33
+ 'x-studio-id': xStudioId,
34
+ },
35
+ body: requestBody,
36
+ mediaType: 'application/json',
37
+ });
38
+ }
39
+ /**
40
+ * Remove this device's push subscription
41
+ * Called when notifications are turned off or on sign-out.
42
+ * @param xStudioId The ID of the studio
43
+ * @param requestBody
44
+ * @returns SuccessResponse Push subscription removed successfully
45
+ * @throws ApiError
46
+ */
47
+ static deletePushSubscription(xStudioId, requestBody) {
48
+ return __request(OpenAPI, {
49
+ method: 'DELETE',
50
+ url: '/admin-portal/push/subscription',
51
+ headers: {
52
+ 'x-studio-id': xStudioId,
53
+ },
54
+ body: requestBody,
55
+ mediaType: 'application/json',
56
+ });
57
+ }
58
+ }
@@ -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
@@ -417,6 +417,25 @@ export class ShowsService {
417
417
  },
418
418
  });
419
419
  }
420
+ /**
421
+ * Look up a venue's sales tax
422
+ * For Create Event to offer in place of the studio sales tax
423
+ * @param xStudioId The ID of the studio
424
+ * @param requestBody The venue's address
425
+ * @returns SalesTaxLookupResponseDto The venue's sales tax rate
426
+ * @throws ApiError
427
+ */
428
+ static lookupShowSalesTax(xStudioId, requestBody) {
429
+ return __request(OpenAPI, {
430
+ method: 'POST',
431
+ url: '/admin-portal/shows/sales-tax-lookup',
432
+ headers: {
433
+ 'x-studio-id': xStudioId,
434
+ },
435
+ body: requestBody,
436
+ mediaType: 'application/json',
437
+ });
438
+ }
420
439
  /**
421
440
  * Create a new show
422
441
  * 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,24 @@
1
+ import { OpenAPI } from '../core/OpenAPI.js';
2
+ import { request as __request } from '../core/request.js';
3
+ export 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, alertId) {
13
+ return __request(OpenAPI, {
14
+ method: 'POST',
15
+ url: '/admin-portal/superuser/push/alert/{alertId}',
16
+ path: {
17
+ 'alertId': alertId,
18
+ },
19
+ headers: {
20
+ 'x-studio-id': xStudioId,
21
+ },
22
+ });
23
+ }
24
+ }