@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.
- package/dist/cjs/index.d.ts +4 -0
- package/dist/cjs/src/definitions/portal.d.ts +8 -0
- package/dist/cjs/src/definitions/portal.js +47 -39
- package/dist/cjs/src/generated/portal/core/OpenAPI.js +1 -1
- package/dist/cjs/src/generated/portal/index.d.ts +23 -0
- package/dist/cjs/src/generated/portal/index.js +10 -2
- package/dist/cjs/src/generated/portal/models/CreateShowCodeRequestDto.d.ts +1 -1
- package/dist/cjs/src/generated/portal/models/DeletePushSubscriptionRequestDto.d.ts +3 -0
- package/dist/cjs/src/generated/portal/models/DeletePushSubscriptionRequestDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/PushPublicKeyResponseDto.d.ts +6 -0
- package/dist/cjs/src/generated/portal/models/PushPublicKeyResponseDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/PushSendResponseDto.d.ts +15 -0
- package/dist/cjs/src/generated/portal/models/PushSendResponseDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/PushSubscriptionKeysDto.d.ts +4 -0
- package/dist/cjs/src/generated/portal/models/PushSubscriptionKeysDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/SalesTaxLookupRequestDto.d.ts +9 -0
- package/dist/cjs/src/generated/portal/models/SalesTaxLookupRequestDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/SalesTaxLookupResponseDto.d.ts +6 -0
- package/dist/cjs/src/generated/portal/models/SalesTaxLookupResponseDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/SavePushSubscriptionRequestDto.d.ts +7 -0
- package/dist/cjs/src/generated/portal/models/SavePushSubscriptionRequestDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/ScanningEndResponseDto.d.ts +6 -0
- package/dist/cjs/src/generated/portal/models/ScanningEndResponseDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/SendSupportChatMessageRequestDto.d.ts +15 -0
- package/dist/cjs/src/generated/portal/models/SendSupportChatMessageRequestDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/SendSupportChatMessageResponseDto.d.ts +5 -0
- package/dist/cjs/src/generated/portal/models/SendSupportChatMessageResponseDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/SetScanningEndRequestDto.d.ts +6 -0
- package/dist/cjs/src/generated/portal/models/SetScanningEndRequestDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/StudioFeesLedgerRequestDto.d.ts +8 -2
- package/dist/cjs/src/generated/portal/models/SupportChatAttachmentDto.d.ts +4 -0
- package/dist/cjs/src/generated/portal/models/SupportChatAttachmentDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/SupportChatConversationDto.d.ts +25 -0
- package/dist/cjs/src/generated/portal/models/SupportChatConversationDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/SupportChatConversationSummaryDto.d.ts +16 -0
- package/dist/cjs/src/generated/portal/models/SupportChatConversationSummaryDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/SupportChatMessageDto.d.ts +24 -0
- package/dist/cjs/src/generated/portal/models/SupportChatMessageDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/SupportChatReadRequestDto.d.ts +6 -0
- package/dist/cjs/src/generated/portal/models/SupportChatReadRequestDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/SupportChatResponseDto.d.ts +13 -0
- package/dist/cjs/src/generated/portal/models/SupportChatResponseDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/SupportChatSocketDto.d.ts +13 -0
- package/dist/cjs/src/generated/portal/models/SupportChatSocketDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/SupportChatSocketResponseDto.d.ts +4 -0
- package/dist/cjs/src/generated/portal/models/SupportChatSocketResponseDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/TicketScanningShowResponseDto.d.ts +4 -0
- package/dist/cjs/src/generated/portal/models/UpdateShowCodeRequestDto.d.ts +1 -1
- package/dist/cjs/src/generated/portal/services/AccountingService.d.ts +4 -5
- package/dist/cjs/src/generated/portal/services/AccountingService.js +4 -7
- package/dist/cjs/src/generated/portal/services/ClientToolsStudioManagementIntegrationService.d.ts +12 -0
- package/dist/cjs/src/generated/portal/services/ClientToolsStudioManagementIntegrationService.js +24 -0
- package/dist/cjs/src/generated/portal/services/ClientToolsTicketScanningService.d.ts +12 -0
- package/dist/cjs/src/generated/portal/services/ClientToolsTicketScanningService.js +23 -0
- package/dist/cjs/src/generated/portal/services/PushNotificationsService.d.ts +33 -0
- package/dist/cjs/src/generated/portal/services/PushNotificationsService.js +62 -0
- package/dist/cjs/src/generated/portal/services/ShowsService.d.ts +11 -0
- package/dist/cjs/src/generated/portal/services/ShowsService.js +19 -0
- package/dist/cjs/src/generated/portal/services/SuperUserPushNotificationsService.d.ts +13 -0
- package/dist/cjs/src/generated/portal/services/SuperUserPushNotificationsService.js +28 -0
- package/dist/cjs/src/generated/portal/services/SupportChatService.d.ts +57 -0
- package/dist/cjs/src/generated/portal/services/SupportChatService.js +107 -0
- package/dist/cjs/src/generated/portal/types.d.ts +19 -0
- package/dist/cjs/src/generated/scanner/core/OpenAPI.js +1 -1
- package/dist/cjs/src/generated/shopper/core/OpenAPI.js +1 -1
- package/dist/cjs/src/generated/shopper/models/Account.d.ts +4 -0
- package/dist/cjs/src/staging/index.d.ts +4 -0
- package/dist/cjs/src/staging/portal.d.ts +8 -0
- package/dist/cjs/src/staging/portal.js +47 -39
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/src/definitions/portal.d.ts +8 -0
- package/dist/esm/src/definitions/portal.js +8 -0
- package/dist/esm/src/generated/portal/core/OpenAPI.js +1 -1
- package/dist/esm/src/generated/portal/index.d.ts +23 -0
- package/dist/esm/src/generated/portal/index.js +4 -0
- package/dist/esm/src/generated/portal/models/CreateShowCodeRequestDto.d.ts +1 -1
- package/dist/esm/src/generated/portal/models/DeletePushSubscriptionRequestDto.d.ts +3 -0
- package/dist/esm/src/generated/portal/models/DeletePushSubscriptionRequestDto.js +1 -0
- package/dist/esm/src/generated/portal/models/PushPublicKeyResponseDto.d.ts +6 -0
- package/dist/esm/src/generated/portal/models/PushPublicKeyResponseDto.js +1 -0
- package/dist/esm/src/generated/portal/models/PushSendResponseDto.d.ts +15 -0
- package/dist/esm/src/generated/portal/models/PushSendResponseDto.js +1 -0
- package/dist/esm/src/generated/portal/models/PushSubscriptionKeysDto.d.ts +4 -0
- package/dist/esm/src/generated/portal/models/PushSubscriptionKeysDto.js +1 -0
- package/dist/esm/src/generated/portal/models/SalesTaxLookupRequestDto.d.ts +9 -0
- package/dist/esm/src/generated/portal/models/SalesTaxLookupRequestDto.js +1 -0
- package/dist/esm/src/generated/portal/models/SalesTaxLookupResponseDto.d.ts +6 -0
- package/dist/esm/src/generated/portal/models/SalesTaxLookupResponseDto.js +1 -0
- package/dist/esm/src/generated/portal/models/SavePushSubscriptionRequestDto.d.ts +7 -0
- package/dist/esm/src/generated/portal/models/SavePushSubscriptionRequestDto.js +1 -0
- package/dist/esm/src/generated/portal/models/ScanningEndResponseDto.d.ts +6 -0
- package/dist/esm/src/generated/portal/models/ScanningEndResponseDto.js +1 -0
- package/dist/esm/src/generated/portal/models/SendSupportChatMessageRequestDto.d.ts +15 -0
- package/dist/esm/src/generated/portal/models/SendSupportChatMessageRequestDto.js +1 -0
- package/dist/esm/src/generated/portal/models/SendSupportChatMessageResponseDto.d.ts +5 -0
- package/dist/esm/src/generated/portal/models/SendSupportChatMessageResponseDto.js +1 -0
- package/dist/esm/src/generated/portal/models/SetScanningEndRequestDto.d.ts +6 -0
- package/dist/esm/src/generated/portal/models/SetScanningEndRequestDto.js +1 -0
- package/dist/esm/src/generated/portal/models/StudioFeesLedgerRequestDto.d.ts +8 -2
- package/dist/esm/src/generated/portal/models/SupportChatAttachmentDto.d.ts +4 -0
- package/dist/esm/src/generated/portal/models/SupportChatAttachmentDto.js +1 -0
- package/dist/esm/src/generated/portal/models/SupportChatConversationDto.d.ts +25 -0
- package/dist/esm/src/generated/portal/models/SupportChatConversationDto.js +1 -0
- package/dist/esm/src/generated/portal/models/SupportChatConversationSummaryDto.d.ts +16 -0
- package/dist/esm/src/generated/portal/models/SupportChatConversationSummaryDto.js +1 -0
- package/dist/esm/src/generated/portal/models/SupportChatMessageDto.d.ts +24 -0
- package/dist/esm/src/generated/portal/models/SupportChatMessageDto.js +1 -0
- package/dist/esm/src/generated/portal/models/SupportChatReadRequestDto.d.ts +6 -0
- package/dist/esm/src/generated/portal/models/SupportChatReadRequestDto.js +1 -0
- package/dist/esm/src/generated/portal/models/SupportChatResponseDto.d.ts +13 -0
- package/dist/esm/src/generated/portal/models/SupportChatResponseDto.js +1 -0
- package/dist/esm/src/generated/portal/models/SupportChatSocketDto.d.ts +13 -0
- package/dist/esm/src/generated/portal/models/SupportChatSocketDto.js +1 -0
- package/dist/esm/src/generated/portal/models/SupportChatSocketResponseDto.d.ts +4 -0
- package/dist/esm/src/generated/portal/models/SupportChatSocketResponseDto.js +1 -0
- package/dist/esm/src/generated/portal/models/TicketScanningShowResponseDto.d.ts +4 -0
- package/dist/esm/src/generated/portal/models/UpdateShowCodeRequestDto.d.ts +1 -1
- package/dist/esm/src/generated/portal/services/AccountingService.d.ts +4 -5
- package/dist/esm/src/generated/portal/services/AccountingService.js +4 -7
- package/dist/esm/src/generated/portal/services/ClientToolsStudioManagementIntegrationService.d.ts +12 -0
- package/dist/esm/src/generated/portal/services/ClientToolsStudioManagementIntegrationService.js +20 -0
- package/dist/esm/src/generated/portal/services/ClientToolsTicketScanningService.d.ts +12 -0
- package/dist/esm/src/generated/portal/services/ClientToolsTicketScanningService.js +23 -0
- package/dist/esm/src/generated/portal/services/PushNotificationsService.d.ts +33 -0
- package/dist/esm/src/generated/portal/services/PushNotificationsService.js +58 -0
- package/dist/esm/src/generated/portal/services/ShowsService.d.ts +11 -0
- package/dist/esm/src/generated/portal/services/ShowsService.js +19 -0
- package/dist/esm/src/generated/portal/services/SuperUserPushNotificationsService.d.ts +13 -0
- package/dist/esm/src/generated/portal/services/SuperUserPushNotificationsService.js +24 -0
- package/dist/esm/src/generated/portal/services/SupportChatService.d.ts +57 -0
- package/dist/esm/src/generated/portal/services/SupportChatService.js +103 -0
- package/dist/esm/src/generated/portal/types.d.ts +19 -0
- package/dist/esm/src/generated/scanner/core/OpenAPI.js +1 -1
- package/dist/esm/src/generated/shopper/core/OpenAPI.js +1 -1
- package/dist/esm/src/generated/shopper/models/Account.d.ts +4 -0
- package/dist/esm/src/staging/index.d.ts +4 -0
- package/dist/esm/src/staging/portal.d.ts +8 -0
- package/dist/esm/src/staging/portal.js +8 -0
- package/package.json +1 -1
- package/src/definitions/portal.ts +8 -0
- package/src/generated/portal/core/OpenAPI.ts +1 -1
- package/src/generated/portal/index.ts +23 -0
- package/src/generated/portal/models/CreateShowCodeRequestDto.ts +1 -1
- package/src/generated/portal/models/DeletePushSubscriptionRequestDto.ts +8 -0
- package/src/generated/portal/models/PushPublicKeyResponseDto.ts +11 -0
- package/src/generated/portal/models/PushSendResponseDto.ts +20 -0
- package/src/generated/portal/models/PushSubscriptionKeysDto.ts +9 -0
- package/src/generated/portal/models/SalesTaxLookupRequestDto.ts +14 -0
- package/src/generated/portal/models/SalesTaxLookupResponseDto.ts +11 -0
- package/src/generated/portal/models/SavePushSubscriptionRequestDto.ts +12 -0
- package/src/generated/portal/models/ScanningEndResponseDto.ts +11 -0
- package/src/generated/portal/models/SendSupportChatMessageRequestDto.ts +20 -0
- package/src/generated/portal/models/SendSupportChatMessageResponseDto.ts +10 -0
- package/src/generated/portal/models/SetScanningEndRequestDto.ts +11 -0
- package/src/generated/portal/models/StudioFeesLedgerRequestDto.ts +8 -2
- package/src/generated/portal/models/SupportChatAttachmentDto.ts +9 -0
- package/src/generated/portal/models/SupportChatConversationDto.ts +30 -0
- package/src/generated/portal/models/SupportChatConversationSummaryDto.ts +21 -0
- package/src/generated/portal/models/SupportChatMessageDto.ts +29 -0
- package/src/generated/portal/models/SupportChatReadRequestDto.ts +11 -0
- package/src/generated/portal/models/SupportChatResponseDto.ts +18 -0
- package/src/generated/portal/models/SupportChatSocketDto.ts +18 -0
- package/src/generated/portal/models/SupportChatSocketResponseDto.ts +9 -0
- package/src/generated/portal/models/TicketScanningShowResponseDto.ts +4 -0
- package/src/generated/portal/models/UpdateShowCodeRequestDto.ts +1 -1
- package/src/generated/portal/services/AccountingService.ts +3 -7
- package/src/generated/portal/services/ClientToolsStudioManagementIntegrationService.ts +28 -0
- package/src/generated/portal/services/ClientToolsTicketScanningService.ts +29 -0
- package/src/generated/portal/services/PushNotificationsService.ts +75 -0
- package/src/generated/portal/services/ShowsService.ts +24 -0
- package/src/generated/portal/services/SuperUserPushNotificationsService.ts +33 -0
- package/src/generated/portal/services/SupportChatService.ts +132 -0
- package/src/generated/portal/types.ts +19 -0
- package/src/generated/scanner/core/OpenAPI.ts +1 -1
- package/src/generated/shopper/core/OpenAPI.ts +1 -1
- package/src/generated/shopper/models/Account.ts +4 -0
- 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 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import type { StudioFeesLedgerType } from './StudioFeesLedgerType';
|
|
2
2
|
export type StudioFeesLedgerRequestDto = {
|
|
3
|
-
|
|
4
|
-
|
|
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 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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
|
};
|
|
@@ -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
|
|
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
|
|
156
|
+
static getStudioFeesDetails(xStudioId: string): CancelablePromise<StudioFeesDetailsResponseDto>;
|
|
158
157
|
/**
|
|
159
158
|
* Fetch the studio fees ledger
|
|
160
|
-
* Returns
|
|
159
|
+
* Returns all-time per-order fee debits or credits
|
|
161
160
|
* @param xStudioId The ID of the studio
|
|
162
|
-
* @param requestBody
|
|
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
|
|
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
|
|
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
|
|
261
|
+
* Returns all-time per-order fee debits or credits
|
|
265
262
|
* @param xStudioId The ID of the studio
|
|
266
|
-
* @param requestBody
|
|
263
|
+
* @param requestBody Ledger type (debits or credits)
|
|
267
264
|
* @returns StudioFeesLedgerResponseDto Studio fees ledger fetched successfully
|
|
268
265
|
* @throws ApiError
|
|
269
266
|
*/
|
package/dist/esm/src/generated/portal/services/ClientToolsStudioManagementIntegrationService.d.ts
ADDED
|
@@ -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
|
+
}
|
package/dist/esm/src/generated/portal/services/ClientToolsStudioManagementIntegrationService.js
ADDED
|
@@ -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
|
+
}
|