@drttix/drt-sdk 2.0.5 → 2.0.6
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 +25 -21
- package/dist/cjs/src/generated/portal/core/OpenAPI.js +1 -1
- package/dist/cjs/src/generated/portal/index.d.ts +9 -0
- package/dist/cjs/src/generated/portal/index.js +5 -1
- 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/UpdateShowCodeRequestDto.d.ts +1 -1
- 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/types.d.ts +7 -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/staging/index.d.ts +2 -0
- package/dist/cjs/src/staging/portal.d.ts +4 -0
- package/dist/cjs/src/staging/portal.js +25 -21
- 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 +9 -0
- package/dist/esm/src/generated/portal/index.js +2 -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/UpdateShowCodeRequestDto.d.ts +1 -1
- 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/types.d.ts +7 -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/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 +9 -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/UpdateShowCodeRequestDto.ts +1 -1
- 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/types.ts +7 -0
- package/src/generated/scanner/core/OpenAPI.ts +1 -1
- package/src/generated/shopper/core/OpenAPI.ts +1 -1
- package/src/staging/portal.ts +4 -0
|
@@ -34,6 +34,7 @@ import { FeaturesPriorityService } from "../generated/portal/index.js";
|
|
|
34
34
|
import { FeaturesProductsService } from "../generated/portal/index.js";
|
|
35
35
|
import { HelpService } from "../generated/portal/index.js";
|
|
36
36
|
import { OrderLookupService } from "../generated/portal/index.js";
|
|
37
|
+
import { PushNotificationsService } from "../generated/portal/index.js";
|
|
37
38
|
import { ReportsService } from "../generated/portal/index.js";
|
|
38
39
|
import { SettingsService } from "../generated/portal/index.js";
|
|
39
40
|
import { ShowsService } from "../generated/portal/index.js";
|
|
@@ -49,6 +50,7 @@ import { SuperUserImportBlockedSeatsService } from "../generated/portal/index.js
|
|
|
49
50
|
import { SuperUserLaunchReadinessService } from "../generated/portal/index.js";
|
|
50
51
|
import { SuperUserManageImageFilesService } from "../generated/portal/index.js";
|
|
51
52
|
import { SuperuserPerformancePixService } from "../generated/portal/index.js";
|
|
53
|
+
import { SuperUserPushNotificationsService } from "../generated/portal/index.js";
|
|
52
54
|
import { SuperUserReleasedTicketsService } from "../generated/portal/index.js";
|
|
53
55
|
import { SuperUserShoppersService } from "../generated/portal/index.js";
|
|
54
56
|
import { SuperUserStudioManagementIntegrationService } from "../generated/portal/index.js";
|
|
@@ -89,6 +91,7 @@ export const portalStaging = {
|
|
|
89
91
|
featuresproducts: wrap(FeaturesProductsService),
|
|
90
92
|
help: wrap(HelpService),
|
|
91
93
|
orderlookup: wrap(OrderLookupService),
|
|
94
|
+
pushnotifications: wrap(PushNotificationsService),
|
|
92
95
|
reports: wrap(ReportsService),
|
|
93
96
|
settings: wrap(SettingsService),
|
|
94
97
|
shows: wrap(ShowsService),
|
|
@@ -104,6 +107,7 @@ export const portalStaging = {
|
|
|
104
107
|
superuserlaunchreadiness: wrap(SuperUserLaunchReadinessService),
|
|
105
108
|
superusermanageimagefiles: wrap(SuperUserManageImageFilesService),
|
|
106
109
|
superuserperformancepix: wrap(SuperuserPerformancePixService),
|
|
110
|
+
superuserpushnotifications: wrap(SuperUserPushNotificationsService),
|
|
107
111
|
superuserreleasedtickets: wrap(SuperUserReleasedTicketsService),
|
|
108
112
|
superusershoppers: wrap(SuperUserShoppersService),
|
|
109
113
|
superuserstudiomanagementintegration: wrap(SuperUserStudioManagementIntegrationService),
|
package/package.json
CHANGED
|
@@ -32,6 +32,7 @@ import { FeaturesPriorityService } from "../generated/portal";
|
|
|
32
32
|
import { FeaturesProductsService } from "../generated/portal";
|
|
33
33
|
import { HelpService } from "../generated/portal";
|
|
34
34
|
import { OrderLookupService } from "../generated/portal";
|
|
35
|
+
import { PushNotificationsService } from "../generated/portal";
|
|
35
36
|
import { ReportsService } from "../generated/portal";
|
|
36
37
|
import { SettingsService } from "../generated/portal";
|
|
37
38
|
import { ShowsService } from "../generated/portal";
|
|
@@ -47,6 +48,7 @@ import { SuperUserImportBlockedSeatsService } from "../generated/portal";
|
|
|
47
48
|
import { SuperUserLaunchReadinessService } from "../generated/portal";
|
|
48
49
|
import { SuperUserManageImageFilesService } from "../generated/portal";
|
|
49
50
|
import { SuperuserPerformancePixService } from "../generated/portal";
|
|
51
|
+
import { SuperUserPushNotificationsService } from "../generated/portal";
|
|
50
52
|
import { SuperUserReleasedTicketsService } from "../generated/portal";
|
|
51
53
|
import { SuperUserShoppersService } from "../generated/portal";
|
|
52
54
|
import { SuperUserStudioManagementIntegrationService } from "../generated/portal";
|
|
@@ -87,6 +89,7 @@ export const portal = {
|
|
|
87
89
|
featuresproducts: FeaturesProductsService,
|
|
88
90
|
help: HelpService,
|
|
89
91
|
orderlookup: OrderLookupService,
|
|
92
|
+
pushnotifications: PushNotificationsService,
|
|
90
93
|
reports: ReportsService,
|
|
91
94
|
settings: SettingsService,
|
|
92
95
|
shows: ShowsService,
|
|
@@ -102,6 +105,7 @@ export const portal = {
|
|
|
102
105
|
superuserlaunchreadiness: SuperUserLaunchReadinessService,
|
|
103
106
|
superusermanageimagefiles: SuperUserManageImageFilesService,
|
|
104
107
|
superuserperformancepix: SuperuserPerformancePixService,
|
|
108
|
+
superuserpushnotifications: SuperUserPushNotificationsService,
|
|
105
109
|
superuserreleasedtickets: SuperUserReleasedTicketsService,
|
|
106
110
|
superusershoppers: SuperUserShoppersService,
|
|
107
111
|
superuserstudiomanagementintegration: SuperUserStudioManagementIntegrationService,
|
|
@@ -129,6 +129,7 @@ export type { DeleteMailRequestDto } from './models/DeleteMailRequestDto';
|
|
|
129
129
|
export type { DeletePatronCodeRequestDto } from './models/DeletePatronCodeRequestDto';
|
|
130
130
|
export type { DeletePriorityCodeRequestDto } from './models/DeletePriorityCodeRequestDto';
|
|
131
131
|
export type { DeleteProductVariantRequestDto } from './models/DeleteProductVariantRequestDto';
|
|
132
|
+
export type { DeletePushSubscriptionRequestDto } from './models/DeletePushSubscriptionRequestDto';
|
|
132
133
|
export type { DeployShowRequestDto } from './models/DeployShowRequestDto';
|
|
133
134
|
export type { DigitalAssetLogResponseDto } from './models/DigitalAssetLogResponseDto';
|
|
134
135
|
export type { DigitalAssetsListResponseDto } from './models/DigitalAssetsListResponseDto';
|
|
@@ -289,6 +290,9 @@ export type { ProductSalesRequestDto } from './models/ProductSalesRequestDto';
|
|
|
289
290
|
export type { ProductSalesResponseDto } from './models/ProductSalesResponseDto';
|
|
290
291
|
export type { ProductSendMailRequestDto } from './models/ProductSendMailRequestDto';
|
|
291
292
|
export type { ProductVariantResponseDto } from './models/ProductVariantResponseDto';
|
|
293
|
+
export type { PushPublicKeyResponseDto } from './models/PushPublicKeyResponseDto';
|
|
294
|
+
export type { PushSendResponseDto } from './models/PushSendResponseDto';
|
|
295
|
+
export type { PushSubscriptionKeysDto } from './models/PushSubscriptionKeysDto';
|
|
292
296
|
export type { QuestionDetailsResponseDto } from './models/QuestionDetailsResponseDto';
|
|
293
297
|
export type { QuestionResponseDto } from './models/QuestionResponseDto';
|
|
294
298
|
export type { QuestionShowGroupAndProductResponse } from './models/QuestionShowGroupAndProductResponse';
|
|
@@ -328,10 +332,13 @@ export type { RevenueVisualizerShowDto } from './models/RevenueVisualizerShowDto
|
|
|
328
332
|
export type { SaleDetail } from './models/SaleDetail';
|
|
329
333
|
export type { SalesByTierResponseDto } from './models/SalesByTierResponseDto';
|
|
330
334
|
export type { SalesProductResponseDto } from './models/SalesProductResponseDto';
|
|
335
|
+
export type { SalesTaxLookupRequestDto } from './models/SalesTaxLookupRequestDto';
|
|
336
|
+
export type { SalesTaxLookupResponseDto } from './models/SalesTaxLookupResponseDto';
|
|
331
337
|
export { SalesTaxRegistrationOption } from './models/SalesTaxRegistrationOption';
|
|
332
338
|
export type { SaveAdministrativeNoteRequestDto } from './models/SaveAdministrativeNoteRequestDto';
|
|
333
339
|
export type { SavePricingSetRequestDto } from './models/SavePricingSetRequestDto';
|
|
334
340
|
export type { SavePricingSetResponseDto } from './models/SavePricingSetResponseDto';
|
|
341
|
+
export type { SavePushSubscriptionRequestDto } from './models/SavePushSubscriptionRequestDto';
|
|
335
342
|
export type { SaveVideoAssetChapterRequestDto } from './models/SaveVideoAssetChapterRequestDto';
|
|
336
343
|
export type { SaveVideoAssetRequestDto } from './models/SaveVideoAssetRequestDto';
|
|
337
344
|
export type { ScannedTicketOrderResponseDto } from './models/ScannedTicketOrderResponseDto';
|
|
@@ -555,6 +562,7 @@ export { FeaturesPriorityService } from './services/FeaturesPriorityService';
|
|
|
555
562
|
export { FeaturesProductsService } from './services/FeaturesProductsService';
|
|
556
563
|
export { HelpService } from './services/HelpService';
|
|
557
564
|
export { OrderLookupService } from './services/OrderLookupService';
|
|
565
|
+
export { PushNotificationsService } from './services/PushNotificationsService';
|
|
558
566
|
export { ReportsService } from './services/ReportsService';
|
|
559
567
|
export { SettingsService } from './services/SettingsService';
|
|
560
568
|
export { ShowsService } from './services/ShowsService';
|
|
@@ -570,6 +578,7 @@ export { SuperUserImportBlockedSeatsService } from './services/SuperUserImportBl
|
|
|
570
578
|
export { SuperUserLaunchReadinessService } from './services/SuperUserLaunchReadinessService';
|
|
571
579
|
export { SuperUserManageImageFilesService } from './services/SuperUserManageImageFilesService';
|
|
572
580
|
export { SuperuserPerformancePixService } from './services/SuperuserPerformancePixService';
|
|
581
|
+
export { SuperUserPushNotificationsService } from './services/SuperUserPushNotificationsService';
|
|
573
582
|
export { SuperUserReleasedTicketsService } from './services/SuperUserReleasedTicketsService';
|
|
574
583
|
export { SuperUserShoppersService } from './services/SuperUserShoppersService';
|
|
575
584
|
export { SuperUserStudioManagementIntegrationService } from './services/SuperUserStudioManagementIntegrationService';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
export type CreateShowCodeRequestDto = {
|
|
6
|
-
friendlyName?:
|
|
6
|
+
friendlyName?: string | null;
|
|
7
7
|
accessLevel: CreateShowCodeRequestDto.accessLevel;
|
|
8
8
|
};
|
|
9
9
|
export namespace CreateShowCodeRequestDto {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export type PushPublicKeyResponseDto = {
|
|
6
|
+
/**
|
|
7
|
+
* URL-safe base64 VAPID public key; empty when push is not configured on this environment.
|
|
8
|
+
*/
|
|
9
|
+
publicKey: string;
|
|
10
|
+
};
|
|
11
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export type PushSendResponseDto = {
|
|
6
|
+
success: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Subscribed devices for the studio.
|
|
9
|
+
*/
|
|
10
|
+
devices: number;
|
|
11
|
+
/**
|
|
12
|
+
* Devices the push service accepted it for.
|
|
13
|
+
*/
|
|
14
|
+
sent: number;
|
|
15
|
+
/**
|
|
16
|
+
* Devices that refused it. Expired subscriptions (404/410) are dropped and counted here once.
|
|
17
|
+
*/
|
|
18
|
+
failed: number;
|
|
19
|
+
};
|
|
20
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export type SalesTaxLookupRequestDto = {
|
|
6
|
+
address: string;
|
|
7
|
+
city: string;
|
|
8
|
+
/**
|
|
9
|
+
* Two-letter state or province
|
|
10
|
+
*/
|
|
11
|
+
state: string;
|
|
12
|
+
postal: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export type SalesTaxLookupResponseDto = {
|
|
6
|
+
/**
|
|
7
|
+
* 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.
|
|
8
|
+
*/
|
|
9
|
+
rate: number | null;
|
|
10
|
+
};
|
|
11
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { PushSubscriptionKeysDto } from './PushSubscriptionKeysDto';
|
|
6
|
+
export type SavePushSubscriptionRequestDto = {
|
|
7
|
+
endpoint: string;
|
|
8
|
+
keys: PushSubscriptionKeysDto;
|
|
9
|
+
origin: string;
|
|
10
|
+
userAgent?: string;
|
|
11
|
+
};
|
|
12
|
+
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
export type UpdateShowCodeRequestDto = {
|
|
6
|
-
friendlyName?:
|
|
6
|
+
friendlyName?: string | null;
|
|
7
7
|
accessLevel?: UpdateShowCodeRequestDto.accessLevel;
|
|
8
8
|
};
|
|
9
9
|
export namespace UpdateShowCodeRequestDto {
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { DeletePushSubscriptionRequestDto } from '../models/DeletePushSubscriptionRequestDto';
|
|
6
|
+
import type { PushPublicKeyResponseDto } from '../models/PushPublicKeyResponseDto';
|
|
7
|
+
import type { SavePushSubscriptionRequestDto } from '../models/SavePushSubscriptionRequestDto';
|
|
8
|
+
import type { SuccessResponse } from '../models/SuccessResponse';
|
|
9
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
10
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
11
|
+
import { request as __request } from '../core/request';
|
|
12
|
+
export class PushNotificationsService {
|
|
13
|
+
/**
|
|
14
|
+
* Fetch the VAPID public key a device subscribes with
|
|
15
|
+
* Empty when push is not configured on this environment, which the app reads as "not available".
|
|
16
|
+
* @param xStudioId The ID of the studio
|
|
17
|
+
* @returns PushPublicKeyResponseDto VAPID public key fetched successfully
|
|
18
|
+
* @throws ApiError
|
|
19
|
+
*/
|
|
20
|
+
public static getPushPublicKey(
|
|
21
|
+
xStudioId: string,
|
|
22
|
+
): CancelablePromise<PushPublicKeyResponseDto> {
|
|
23
|
+
return __request(OpenAPI, {
|
|
24
|
+
method: 'GET',
|
|
25
|
+
url: '/admin-portal/push/vapid-public-key',
|
|
26
|
+
headers: {
|
|
27
|
+
'x-studio-id': xStudioId,
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Register (or refresh) this device's push subscription
|
|
33
|
+
* 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.
|
|
34
|
+
* @param xStudioId The ID of the studio
|
|
35
|
+
* @param requestBody
|
|
36
|
+
* @returns SuccessResponse Push subscription saved successfully
|
|
37
|
+
* @throws ApiError
|
|
38
|
+
*/
|
|
39
|
+
public static savePushSubscription(
|
|
40
|
+
xStudioId: string,
|
|
41
|
+
requestBody: SavePushSubscriptionRequestDto,
|
|
42
|
+
): CancelablePromise<SuccessResponse> {
|
|
43
|
+
return __request(OpenAPI, {
|
|
44
|
+
method: 'POST',
|
|
45
|
+
url: '/admin-portal/push/subscription',
|
|
46
|
+
headers: {
|
|
47
|
+
'x-studio-id': xStudioId,
|
|
48
|
+
},
|
|
49
|
+
body: requestBody,
|
|
50
|
+
mediaType: 'application/json',
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Remove this device's push subscription
|
|
55
|
+
* Called when notifications are turned off or on sign-out.
|
|
56
|
+
* @param xStudioId The ID of the studio
|
|
57
|
+
* @param requestBody
|
|
58
|
+
* @returns SuccessResponse Push subscription removed successfully
|
|
59
|
+
* @throws ApiError
|
|
60
|
+
*/
|
|
61
|
+
public static deletePushSubscription(
|
|
62
|
+
xStudioId: string,
|
|
63
|
+
requestBody: DeletePushSubscriptionRequestDto,
|
|
64
|
+
): CancelablePromise<SuccessResponse> {
|
|
65
|
+
return __request(OpenAPI, {
|
|
66
|
+
method: 'DELETE',
|
|
67
|
+
url: '/admin-portal/push/subscription',
|
|
68
|
+
headers: {
|
|
69
|
+
'x-studio-id': xStudioId,
|
|
70
|
+
},
|
|
71
|
+
body: requestBody,
|
|
72
|
+
mediaType: 'application/json',
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -21,6 +21,8 @@ import type { MigrateTicketRequestDto } from '../models/MigrateTicketRequestDto'
|
|
|
21
21
|
import type { MigrateTicketResultDto } from '../models/MigrateTicketResultDto';
|
|
22
22
|
import type { PerformersListRequestDto } from '../models/PerformersListRequestDto';
|
|
23
23
|
import type { PerformersListResponseDto } from '../models/PerformersListResponseDto';
|
|
24
|
+
import type { SalesTaxLookupRequestDto } from '../models/SalesTaxLookupRequestDto';
|
|
25
|
+
import type { SalesTaxLookupResponseDto } from '../models/SalesTaxLookupResponseDto';
|
|
24
26
|
import type { SavePricingSetRequestDto } from '../models/SavePricingSetRequestDto';
|
|
25
27
|
import type { SavePricingSetResponseDto } from '../models/SavePricingSetResponseDto';
|
|
26
28
|
import type { SeatDetailsResponseDto } from '../models/SeatDetailsResponseDto';
|
|
@@ -522,6 +524,28 @@ export class ShowsService {
|
|
|
522
524
|
},
|
|
523
525
|
});
|
|
524
526
|
}
|
|
527
|
+
/**
|
|
528
|
+
* Look up a venue's sales tax
|
|
529
|
+
* For Create Event to offer in place of the studio sales tax
|
|
530
|
+
* @param xStudioId The ID of the studio
|
|
531
|
+
* @param requestBody The venue's address
|
|
532
|
+
* @returns SalesTaxLookupResponseDto The venue's sales tax rate
|
|
533
|
+
* @throws ApiError
|
|
534
|
+
*/
|
|
535
|
+
public static lookupShowSalesTax(
|
|
536
|
+
xStudioId: string,
|
|
537
|
+
requestBody: SalesTaxLookupRequestDto,
|
|
538
|
+
): CancelablePromise<SalesTaxLookupResponseDto> {
|
|
539
|
+
return __request(OpenAPI, {
|
|
540
|
+
method: 'POST',
|
|
541
|
+
url: '/admin-portal/shows/sales-tax-lookup',
|
|
542
|
+
headers: {
|
|
543
|
+
'x-studio-id': xStudioId,
|
|
544
|
+
},
|
|
545
|
+
body: requestBody,
|
|
546
|
+
mediaType: 'application/json',
|
|
547
|
+
});
|
|
548
|
+
}
|
|
525
549
|
/**
|
|
526
550
|
* Create a new show
|
|
527
551
|
* An Admin user should be able to create a General Admission Event
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { PushSendResponseDto } from '../models/PushSendResponseDto';
|
|
6
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
7
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
8
|
+
import { request as __request } from '../core/request';
|
|
9
|
+
export class SuperUserPushNotificationsService {
|
|
10
|
+
/**
|
|
11
|
+
* Push an alert to every device the studio has registered
|
|
12
|
+
* 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.
|
|
13
|
+
* @param xStudioId The ID of the studio
|
|
14
|
+
* @param alertId The ID of the alert
|
|
15
|
+
* @returns PushSendResponseDto Alert pushed to the studio devices
|
|
16
|
+
* @throws ApiError
|
|
17
|
+
*/
|
|
18
|
+
public static pushAlertToStudio(
|
|
19
|
+
xStudioId: string,
|
|
20
|
+
alertId: string,
|
|
21
|
+
): CancelablePromise<PushSendResponseDto> {
|
|
22
|
+
return __request(OpenAPI, {
|
|
23
|
+
method: 'POST',
|
|
24
|
+
url: '/admin-portal/superuser/push/alert/{alertId}',
|
|
25
|
+
path: {
|
|
26
|
+
'alertId': alertId,
|
|
27
|
+
},
|
|
28
|
+
headers: {
|
|
29
|
+
'x-studio-id': xStudioId,
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -118,6 +118,7 @@ export type { DeleteMailRequestDto } from './models/DeleteMailRequestDto';
|
|
|
118
118
|
export type { DeletePatronCodeRequestDto } from './models/DeletePatronCodeRequestDto';
|
|
119
119
|
export type { DeletePriorityCodeRequestDto } from './models/DeletePriorityCodeRequestDto';
|
|
120
120
|
export type { DeleteProductVariantRequestDto } from './models/DeleteProductVariantRequestDto';
|
|
121
|
+
export type { DeletePushSubscriptionRequestDto } from './models/DeletePushSubscriptionRequestDto';
|
|
121
122
|
export type { DeployShowRequestDto } from './models/DeployShowRequestDto';
|
|
122
123
|
export type { DigitalAssetLogResponseDto } from './models/DigitalAssetLogResponseDto';
|
|
123
124
|
export type { DigitalAssetsListResponseDto } from './models/DigitalAssetsListResponseDto';
|
|
@@ -276,6 +277,9 @@ export type { ProductSalesRequestDto } from './models/ProductSalesRequestDto';
|
|
|
276
277
|
export type { ProductSalesResponseDto } from './models/ProductSalesResponseDto';
|
|
277
278
|
export type { ProductSendMailRequestDto } from './models/ProductSendMailRequestDto';
|
|
278
279
|
export type { ProductVariantResponseDto } from './models/ProductVariantResponseDto';
|
|
280
|
+
export type { PushPublicKeyResponseDto } from './models/PushPublicKeyResponseDto';
|
|
281
|
+
export type { PushSendResponseDto } from './models/PushSendResponseDto';
|
|
282
|
+
export type { PushSubscriptionKeysDto } from './models/PushSubscriptionKeysDto';
|
|
279
283
|
export type { QuestionDetailsResponseDto } from './models/QuestionDetailsResponseDto';
|
|
280
284
|
export type { QuestionResponseDto } from './models/QuestionResponseDto';
|
|
281
285
|
export type { QuestionShowGroupAndProductResponse } from './models/QuestionShowGroupAndProductResponse';
|
|
@@ -315,9 +319,12 @@ export type { RevenueVisualizerShowDto } from './models/RevenueVisualizerShowDto
|
|
|
315
319
|
export type { SaleDetail } from './models/SaleDetail';
|
|
316
320
|
export type { SalesByTierResponseDto } from './models/SalesByTierResponseDto';
|
|
317
321
|
export type { SalesProductResponseDto } from './models/SalesProductResponseDto';
|
|
322
|
+
export type { SalesTaxLookupRequestDto } from './models/SalesTaxLookupRequestDto';
|
|
323
|
+
export type { SalesTaxLookupResponseDto } from './models/SalesTaxLookupResponseDto';
|
|
318
324
|
export type { SaveAdministrativeNoteRequestDto } from './models/SaveAdministrativeNoteRequestDto';
|
|
319
325
|
export type { SavePricingSetRequestDto } from './models/SavePricingSetRequestDto';
|
|
320
326
|
export type { SavePricingSetResponseDto } from './models/SavePricingSetResponseDto';
|
|
327
|
+
export type { SavePushSubscriptionRequestDto } from './models/SavePushSubscriptionRequestDto';
|
|
321
328
|
export type { SaveVideoAssetChapterRequestDto } from './models/SaveVideoAssetChapterRequestDto';
|
|
322
329
|
export type { SaveVideoAssetRequestDto } from './models/SaveVideoAssetRequestDto';
|
|
323
330
|
export type { ScannedTicketOrderResponseDto } from './models/ScannedTicketOrderResponseDto';
|
package/src/staging/portal.ts
CHANGED
|
@@ -36,6 +36,7 @@ import { FeaturesPriorityService } from "../generated/portal";
|
|
|
36
36
|
import { FeaturesProductsService } from "../generated/portal";
|
|
37
37
|
import { HelpService } from "../generated/portal";
|
|
38
38
|
import { OrderLookupService } from "../generated/portal";
|
|
39
|
+
import { PushNotificationsService } from "../generated/portal";
|
|
39
40
|
import { ReportsService } from "../generated/portal";
|
|
40
41
|
import { SettingsService } from "../generated/portal";
|
|
41
42
|
import { ShowsService } from "../generated/portal";
|
|
@@ -51,6 +52,7 @@ import { SuperUserImportBlockedSeatsService } from "../generated/portal";
|
|
|
51
52
|
import { SuperUserLaunchReadinessService } from "../generated/portal";
|
|
52
53
|
import { SuperUserManageImageFilesService } from "../generated/portal";
|
|
53
54
|
import { SuperuserPerformancePixService } from "../generated/portal";
|
|
55
|
+
import { SuperUserPushNotificationsService } from "../generated/portal";
|
|
54
56
|
import { SuperUserReleasedTicketsService } from "../generated/portal";
|
|
55
57
|
import { SuperUserShoppersService } from "../generated/portal";
|
|
56
58
|
import { SuperUserStudioManagementIntegrationService } from "../generated/portal";
|
|
@@ -94,6 +96,7 @@ export const portalStaging = {
|
|
|
94
96
|
featuresproducts: wrap(FeaturesProductsService),
|
|
95
97
|
help: wrap(HelpService),
|
|
96
98
|
orderlookup: wrap(OrderLookupService),
|
|
99
|
+
pushnotifications: wrap(PushNotificationsService),
|
|
97
100
|
reports: wrap(ReportsService),
|
|
98
101
|
settings: wrap(SettingsService),
|
|
99
102
|
shows: wrap(ShowsService),
|
|
@@ -109,6 +112,7 @@ export const portalStaging = {
|
|
|
109
112
|
superuserlaunchreadiness: wrap(SuperUserLaunchReadinessService),
|
|
110
113
|
superusermanageimagefiles: wrap(SuperUserManageImageFilesService),
|
|
111
114
|
superuserperformancepix: wrap(SuperuserPerformancePixService),
|
|
115
|
+
superuserpushnotifications: wrap(SuperUserPushNotificationsService),
|
|
112
116
|
superuserreleasedtickets: wrap(SuperUserReleasedTicketsService),
|
|
113
117
|
superusershoppers: wrap(SuperUserShoppersService),
|
|
114
118
|
superuserstudiomanagementintegration: wrap(SuperUserStudioManagementIntegrationService),
|