@drttix/drt-sdk 2.0.6 → 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 +2 -0
- package/dist/cjs/src/definitions/portal.d.ts +4 -0
- package/dist/cjs/src/definitions/portal.js +45 -41
- package/dist/cjs/src/generated/portal/core/OpenAPI.js +1 -1
- package/dist/cjs/src/generated/portal/index.d.ts +14 -0
- package/dist/cjs/src/generated/portal/index.js +6 -2
- 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/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/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 +12 -0
- 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 +2 -0
- package/dist/cjs/src/staging/portal.d.ts +4 -0
- package/dist/cjs/src/staging/portal.js +45 -41
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/src/definitions/portal.d.ts +4 -0
- package/dist/esm/src/definitions/portal.js +4 -0
- package/dist/esm/src/generated/portal/core/OpenAPI.js +1 -1
- package/dist/esm/src/generated/portal/index.d.ts +14 -0
- package/dist/esm/src/generated/portal/index.js +2 -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/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/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 +12 -0
- 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 +2 -0
- package/dist/esm/src/staging/portal.d.ts +4 -0
- package/dist/esm/src/staging/portal.js +4 -0
- package/package.json +1 -1
- package/src/definitions/portal.ts +4 -0
- package/src/generated/portal/core/OpenAPI.ts +1 -1
- package/src/generated/portal/index.ts +14 -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/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/SupportChatService.ts +132 -0
- package/src/generated/portal/types.ts +12 -0
- package/src/generated/shopper/core/OpenAPI.ts +1 -1
- package/src/generated/shopper/models/Account.ts +4 -0
- package/src/staging/portal.ts +4 -0
|
@@ -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,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,103 @@
|
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI.js';
|
|
2
|
+
import { request as __request } from '../core/request.js';
|
|
3
|
+
export class SupportChatService {
|
|
4
|
+
/**
|
|
5
|
+
* The support chat as the session sees it
|
|
6
|
+
* 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).
|
|
7
|
+
* @param xStudioId The ID of the studio
|
|
8
|
+
* @param conversationId
|
|
9
|
+
* @returns SupportChatResponseDto
|
|
10
|
+
* @throws ApiError
|
|
11
|
+
*/
|
|
12
|
+
static getSupportChat(xStudioId, conversationId) {
|
|
13
|
+
return __request(OpenAPI, {
|
|
14
|
+
method: 'GET',
|
|
15
|
+
url: '/admin-portal/support-chat/conversation',
|
|
16
|
+
headers: {
|
|
17
|
+
'x-studio-id': xStudioId,
|
|
18
|
+
},
|
|
19
|
+
query: {
|
|
20
|
+
'conversationId': conversationId,
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Send a message to DRT support
|
|
26
|
+
* Opens a conversation when the login has none. A repeated clientMessageId returns the first send.
|
|
27
|
+
* @param xStudioId The ID of the studio
|
|
28
|
+
* @param requestBody
|
|
29
|
+
* @returns SendSupportChatMessageResponseDto
|
|
30
|
+
* @throws ApiError
|
|
31
|
+
*/
|
|
32
|
+
static sendSupportChatMessage(xStudioId, requestBody) {
|
|
33
|
+
return __request(OpenAPI, {
|
|
34
|
+
method: 'POST',
|
|
35
|
+
url: '/admin-portal/support-chat/messages',
|
|
36
|
+
headers: {
|
|
37
|
+
'x-studio-id': xStudioId,
|
|
38
|
+
},
|
|
39
|
+
body: requestBody,
|
|
40
|
+
mediaType: 'application/json',
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Mark the other side's messages as read
|
|
45
|
+
* A studio login: DRT's replies are seen. A superuser: the named conversation's studio messages are read by DRT.
|
|
46
|
+
* @param xStudioId The ID of the studio
|
|
47
|
+
* @param requestBody
|
|
48
|
+
* @returns SuccessResponse
|
|
49
|
+
* @throws ApiError
|
|
50
|
+
*/
|
|
51
|
+
static markSupportChatRead(xStudioId, requestBody) {
|
|
52
|
+
return __request(OpenAPI, {
|
|
53
|
+
method: 'POST',
|
|
54
|
+
url: '/admin-portal/support-chat/read',
|
|
55
|
+
headers: {
|
|
56
|
+
'x-studio-id': xStudioId,
|
|
57
|
+
},
|
|
58
|
+
body: requestBody,
|
|
59
|
+
mediaType: 'application/json',
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* A listen token for the conversation's websocket room
|
|
64
|
+
* 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.
|
|
65
|
+
* @param xStudioId The ID of the studio
|
|
66
|
+
* @param conversationId
|
|
67
|
+
* @param refresh
|
|
68
|
+
* @returns SupportChatSocketResponseDto
|
|
69
|
+
* @throws ApiError
|
|
70
|
+
*/
|
|
71
|
+
static getSupportChatSocket(xStudioId, conversationId, refresh) {
|
|
72
|
+
return __request(OpenAPI, {
|
|
73
|
+
method: 'GET',
|
|
74
|
+
url: '/admin-portal/support-chat/socket',
|
|
75
|
+
headers: {
|
|
76
|
+
'x-studio-id': xStudioId,
|
|
77
|
+
},
|
|
78
|
+
query: {
|
|
79
|
+
'conversationId': conversationId,
|
|
80
|
+
'refresh': refresh,
|
|
81
|
+
},
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* A presigned upload for a photo to send in the support chat
|
|
86
|
+
* Images only. Upload the bytes, then send the returned fileName in attachmentFileNames.
|
|
87
|
+
* @param xStudioId The ID of the studio
|
|
88
|
+
* @param requestBody
|
|
89
|
+
* @returns StartImageUploadResponseDto
|
|
90
|
+
* @throws ApiError
|
|
91
|
+
*/
|
|
92
|
+
static startSupportChatImageUpload(xStudioId, requestBody) {
|
|
93
|
+
return __request(OpenAPI, {
|
|
94
|
+
method: 'POST',
|
|
95
|
+
url: '/admin-portal/support-chat/start-image-upload',
|
|
96
|
+
headers: {
|
|
97
|
+
'x-studio-id': xStudioId,
|
|
98
|
+
},
|
|
99
|
+
body: requestBody,
|
|
100
|
+
mediaType: 'application/json',
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
}
|
|
@@ -329,6 +329,7 @@ export type { ScannedTicketResponseDto } from './models/ScannedTicketResponseDto
|
|
|
329
329
|
export type { ScannerLogDeviceDto } from './models/ScannerLogDeviceDto';
|
|
330
330
|
export type { ScannerLogFiltersResponseDto } from './models/ScannerLogFiltersResponseDto';
|
|
331
331
|
export type { ScannerLogResponseDto } from './models/ScannerLogResponseDto';
|
|
332
|
+
export type { ScanningEndResponseDto } from './models/ScanningEndResponseDto';
|
|
332
333
|
export type { SdReadyRequestDto } from './models/SdReadyRequestDto';
|
|
333
334
|
export type { SdReadyResponseDto } from './models/SdReadyResponseDto';
|
|
334
335
|
export type { SearchAiResponseDto } from './models/SearchAiResponseDto';
|
|
@@ -347,9 +348,12 @@ export type { SendBlockedSeatsMailRequestDto } from './models/SendBlockedSeatsMa
|
|
|
347
348
|
export type { SendEmailRequestDto } from './models/SendEmailRequestDto';
|
|
348
349
|
export type { SendMailRequestDto } from './models/SendMailRequestDto';
|
|
349
350
|
export type { SendReservationCodeMailRequestDto } from './models/SendReservationCodeMailRequestDto';
|
|
351
|
+
export type { SendSupportChatMessageRequestDto } from './models/SendSupportChatMessageRequestDto';
|
|
352
|
+
export type { SendSupportChatMessageResponseDto } from './models/SendSupportChatMessageResponseDto';
|
|
350
353
|
export type { SendTextRequestDto } from './models/SendTextRequestDto';
|
|
351
354
|
export type { SentMailResponseDto } from './models/SentMailResponseDto';
|
|
352
355
|
export type { SessionSeatRefDto } from './models/SessionSeatRefDto';
|
|
356
|
+
export type { SetScanningEndRequestDto } from './models/SetScanningEndRequestDto';
|
|
353
357
|
export type { SetTiersRequestDto } from './models/SetTiersRequestDto';
|
|
354
358
|
export type { SettingsAndWavesResponseDto } from './models/SettingsAndWavesResponseDto';
|
|
355
359
|
export type { SettingsDetailsResponseDto } from './models/SettingsDetailsResponseDto';
|
|
@@ -412,6 +416,14 @@ export type { StudioFeesLedgerResponseDto } from './models/StudioFeesLedgerRespo
|
|
|
412
416
|
export type { StudioFeesResponseDto } from './models/StudioFeesResponseDto';
|
|
413
417
|
export type { StudioIntegratorDetailResponseDto } from './models/StudioIntegratorDetailResponseDto';
|
|
414
418
|
export type { SuccessResponse } from './models/SuccessResponse';
|
|
419
|
+
export type { SupportChatAttachmentDto } from './models/SupportChatAttachmentDto';
|
|
420
|
+
export type { SupportChatConversationDto } from './models/SupportChatConversationDto';
|
|
421
|
+
export type { SupportChatConversationSummaryDto } from './models/SupportChatConversationSummaryDto';
|
|
422
|
+
export type { SupportChatMessageDto } from './models/SupportChatMessageDto';
|
|
423
|
+
export type { SupportChatReadRequestDto } from './models/SupportChatReadRequestDto';
|
|
424
|
+
export type { SupportChatResponseDto } from './models/SupportChatResponseDto';
|
|
425
|
+
export type { SupportChatSocketDto } from './models/SupportChatSocketDto';
|
|
426
|
+
export type { SupportChatSocketResponseDto } from './models/SupportChatSocketResponseDto';
|
|
415
427
|
export type { SupportTicketResponseDto } from './models/SupportTicketResponseDto';
|
|
416
428
|
export type { SupportTicketStatusResponseDto } from './models/SupportTicketStatusResponseDto';
|
|
417
429
|
export type { TakeoverSessionResponseDto } from './models/TakeoverSessionResponseDto';
|
|
@@ -67,4 +67,8 @@ export type Account = {
|
|
|
67
67
|
pmtGatewayAcctId: string | null;
|
|
68
68
|
enableAdjustmentPayment: number;
|
|
69
69
|
groupShows: number;
|
|
70
|
+
/**
|
|
71
|
+
* studio_settings.allow_ticketless_order. When 1, a buyer may check out with no seats (donation- or merch-only). Read live when the cached Account row predates the field.
|
|
72
|
+
*/
|
|
73
|
+
allowTicketlessOrder: number;
|
|
70
74
|
};
|
|
@@ -57,6 +57,7 @@ export declare const DRT: {
|
|
|
57
57
|
clienttoolsrequestchanges: typeof import("../generated/portal").ClientToolsRequestChangesService;
|
|
58
58
|
clienttoolsseatassignmenttool: typeof import("../generated/portal").ClientToolsSeatAssignmentToolService;
|
|
59
59
|
clienttoolsstripeonboarding: typeof import("../generated/portal").ClientToolsStripeOnboardingService;
|
|
60
|
+
clienttoolsstudiomanagementintegration: typeof import("../generated/portal").ClientToolsStudioManagementIntegrationService;
|
|
60
61
|
clienttoolsthemebuilder: typeof import("../generated/portal").ClientToolsThemeBuilderService;
|
|
61
62
|
clienttoolsthemeslibrary: typeof import("../generated/portal").ClientToolsThemesLibraryService;
|
|
62
63
|
clienttoolsticketinglink: typeof import("../generated/portal").ClientToolsTicketingLinkService;
|
|
@@ -98,6 +99,7 @@ export declare const DRT: {
|
|
|
98
99
|
superusersupporttickets: typeof import("../generated/portal").SuperUserSupportTicketsService;
|
|
99
100
|
superusertimedtriggers: typeof import("../generated/portal").SuperUserTimedTriggersService;
|
|
100
101
|
superuservideoassets: typeof import("../generated/portal").SuperUserVideoAssetsService;
|
|
102
|
+
supportchat: typeof import("../generated/portal").SupportChatService;
|
|
101
103
|
};
|
|
102
104
|
init: typeof init;
|
|
103
105
|
isReady: typeof isReady;
|
|
@@ -12,6 +12,7 @@ import { ClientToolsPerformancePixService } from "../generated/portal";
|
|
|
12
12
|
import { ClientToolsRequestChangesService } from "../generated/portal";
|
|
13
13
|
import { ClientToolsSeatAssignmentToolService } from "../generated/portal";
|
|
14
14
|
import { ClientToolsStripeOnboardingService } from "../generated/portal";
|
|
15
|
+
import { ClientToolsStudioManagementIntegrationService } from "../generated/portal";
|
|
15
16
|
import { ClientToolsThemeBuilderService } from "../generated/portal";
|
|
16
17
|
import { ClientToolsThemesLibraryService } from "../generated/portal";
|
|
17
18
|
import { ClientToolsTicketingLinkService } from "../generated/portal";
|
|
@@ -53,6 +54,7 @@ import { SuperUserStudioManagementIntegrationService } from "../generated/portal
|
|
|
53
54
|
import { SuperUserSupportTicketsService } from "../generated/portal";
|
|
54
55
|
import { SuperUserTimedTriggersService } from "../generated/portal";
|
|
55
56
|
import { SuperUserVideoAssetsService } from "../generated/portal";
|
|
57
|
+
import { SupportChatService } from "../generated/portal";
|
|
56
58
|
export declare const portalStaging: {
|
|
57
59
|
account: typeof AccountService;
|
|
58
60
|
accounting: typeof AccountingService;
|
|
@@ -68,6 +70,7 @@ export declare const portalStaging: {
|
|
|
68
70
|
clienttoolsrequestchanges: typeof ClientToolsRequestChangesService;
|
|
69
71
|
clienttoolsseatassignmenttool: typeof ClientToolsSeatAssignmentToolService;
|
|
70
72
|
clienttoolsstripeonboarding: typeof ClientToolsStripeOnboardingService;
|
|
73
|
+
clienttoolsstudiomanagementintegration: typeof ClientToolsStudioManagementIntegrationService;
|
|
71
74
|
clienttoolsthemebuilder: typeof ClientToolsThemeBuilderService;
|
|
72
75
|
clienttoolsthemeslibrary: typeof ClientToolsThemesLibraryService;
|
|
73
76
|
clienttoolsticketinglink: typeof ClientToolsTicketingLinkService;
|
|
@@ -109,5 +112,6 @@ export declare const portalStaging: {
|
|
|
109
112
|
superusersupporttickets: typeof SuperUserSupportTicketsService;
|
|
110
113
|
superusertimedtriggers: typeof SuperUserTimedTriggersService;
|
|
111
114
|
superuservideoassets: typeof SuperUserVideoAssetsService;
|
|
115
|
+
supportchat: typeof SupportChatService;
|
|
112
116
|
};
|
|
113
117
|
export * as PortalTypes from "../generated/portal/types";
|
|
@@ -16,6 +16,7 @@ import { ClientToolsPerformancePixService } from "../generated/portal/index.js";
|
|
|
16
16
|
import { ClientToolsRequestChangesService } from "../generated/portal/index.js";
|
|
17
17
|
import { ClientToolsSeatAssignmentToolService } from "../generated/portal/index.js";
|
|
18
18
|
import { ClientToolsStripeOnboardingService } from "../generated/portal/index.js";
|
|
19
|
+
import { ClientToolsStudioManagementIntegrationService } from "../generated/portal/index.js";
|
|
19
20
|
import { ClientToolsThemeBuilderService } from "../generated/portal/index.js";
|
|
20
21
|
import { ClientToolsThemesLibraryService } from "../generated/portal/index.js";
|
|
21
22
|
import { ClientToolsTicketingLinkService } from "../generated/portal/index.js";
|
|
@@ -57,6 +58,7 @@ import { SuperUserStudioManagementIntegrationService } from "../generated/portal
|
|
|
57
58
|
import { SuperUserSupportTicketsService } from "../generated/portal/index.js";
|
|
58
59
|
import { SuperUserTimedTriggersService } from "../generated/portal/index.js";
|
|
59
60
|
import { SuperUserVideoAssetsService } from "../generated/portal/index.js";
|
|
61
|
+
import { SupportChatService } from "../generated/portal/index.js";
|
|
60
62
|
const wrap = (service) => wrapServiceForStaging(service, PortalOpenAPI, STAGING_URLS.portal);
|
|
61
63
|
export const portalStaging = {
|
|
62
64
|
account: wrap(AccountService),
|
|
@@ -73,6 +75,7 @@ export const portalStaging = {
|
|
|
73
75
|
clienttoolsrequestchanges: wrap(ClientToolsRequestChangesService),
|
|
74
76
|
clienttoolsseatassignmenttool: wrap(ClientToolsSeatAssignmentToolService),
|
|
75
77
|
clienttoolsstripeonboarding: wrap(ClientToolsStripeOnboardingService),
|
|
78
|
+
clienttoolsstudiomanagementintegration: wrap(ClientToolsStudioManagementIntegrationService),
|
|
76
79
|
clienttoolsthemebuilder: wrap(ClientToolsThemeBuilderService),
|
|
77
80
|
clienttoolsthemeslibrary: wrap(ClientToolsThemesLibraryService),
|
|
78
81
|
clienttoolsticketinglink: wrap(ClientToolsTicketingLinkService),
|
|
@@ -114,6 +117,7 @@ export const portalStaging = {
|
|
|
114
117
|
superusersupporttickets: wrap(SuperUserSupportTicketsService),
|
|
115
118
|
superusertimedtriggers: wrap(SuperUserTimedTriggersService),
|
|
116
119
|
superuservideoassets: wrap(SuperUserVideoAssetsService),
|
|
120
|
+
supportchat: wrap(SupportChatService),
|
|
117
121
|
};
|
|
118
122
|
// Re-export types
|
|
119
123
|
export * as PortalTypes from "../generated/portal/types.js";
|