@drttix/drt-sdk 0.9.8 → 0.9.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/cjs/index.d.ts +1 -0
  2. package/dist/cjs/src/definitions/portal.d.ts +2 -0
  3. package/dist/cjs/src/definitions/portal.js +2 -0
  4. package/dist/cjs/src/generated/portal/core/OpenAPI.js +1 -1
  5. package/dist/cjs/src/generated/portal/index.d.ts +3 -0
  6. package/dist/cjs/src/generated/portal/index.js +3 -1
  7. package/dist/cjs/src/generated/portal/models/SupportTicketResponseDto.d.ts +26 -0
  8. package/dist/cjs/src/generated/portal/models/SupportTicketResponseDto.js +2 -0
  9. package/dist/cjs/src/generated/portal/models/SupportTicketStatusResponseDto.d.ts +4 -0
  10. package/dist/cjs/src/generated/portal/models/SupportTicketStatusResponseDto.js +2 -0
  11. package/dist/cjs/src/generated/portal/services/SuperUserSupportTicketsService.d.ts +21 -0
  12. package/dist/cjs/src/generated/portal/services/SuperUserSupportTicketsService.js +40 -0
  13. package/dist/cjs/src/generated/portal/types.d.ts +2 -0
  14. package/dist/cjs/src/scripts/build-all.js +7 -2
  15. package/dist/cjs/src/staging/wrapService.js +1 -1
  16. package/dist/esm/index.d.ts +1 -0
  17. package/dist/esm/src/definitions/portal.d.ts +2 -0
  18. package/dist/esm/src/definitions/portal.js +2 -0
  19. package/dist/esm/src/generated/portal/core/OpenAPI.js +1 -1
  20. package/dist/esm/src/generated/portal/index.d.ts +3 -0
  21. package/dist/esm/src/generated/portal/index.js +1 -0
  22. package/dist/esm/src/generated/portal/models/SupportTicketResponseDto.d.ts +26 -0
  23. package/dist/esm/src/generated/portal/models/SupportTicketResponseDto.js +1 -0
  24. package/dist/esm/src/generated/portal/models/SupportTicketStatusResponseDto.d.ts +4 -0
  25. package/dist/esm/src/generated/portal/models/SupportTicketStatusResponseDto.js +1 -0
  26. package/dist/esm/src/generated/portal/services/SuperUserSupportTicketsService.d.ts +21 -0
  27. package/dist/esm/src/generated/portal/services/SuperUserSupportTicketsService.js +36 -0
  28. package/dist/esm/src/generated/portal/types.d.ts +2 -0
  29. package/dist/esm/src/scripts/build-all.js +7 -2
  30. package/dist/esm/src/staging/wrapService.js +1 -1
  31. package/drt-api-specs-staging.json +14 -0
  32. package/package.json +38 -38
  33. package/src/definitions/portal.ts +2 -0
  34. package/src/generated/portal/core/OpenAPI.ts +1 -1
  35. package/src/generated/portal/index.ts +3 -0
  36. package/src/generated/portal/models/SupportTicketResponseDto.ts +31 -0
  37. package/src/generated/portal/models/SupportTicketStatusResponseDto.ts +9 -0
  38. package/src/generated/portal/services/SuperUserSupportTicketsService.ts +46 -0
  39. package/src/generated/portal/types.ts +2 -0
  40. package/src/scripts/build-all.ts +7 -2
  41. package/src/staging/wrapService.ts +1 -1
@@ -54,6 +54,7 @@ export declare const DRT: {
54
54
  settings: typeof import("./src/generated/portal").SettingsService;
55
55
  shows: typeof import("./src/generated/portal").ShowsService;
56
56
  superuserabandonedcarts: typeof import("./src/generated/portal").SuperUserAbandonedCartsService;
57
+ superusersupporttickets: typeof import("./src/generated/portal").SuperUserSupportTicketsService;
57
58
  };
58
59
  init: typeof init;
59
60
  isReady: typeof isReady;
@@ -29,6 +29,7 @@ import { ReportsService } from "../generated/portal";
29
29
  import { SettingsService } from "../generated/portal";
30
30
  import { ShowsService } from "../generated/portal";
31
31
  import { SuperUserAbandonedCartsService } from "../generated/portal";
32
+ import { SuperUserSupportTicketsService } from "../generated/portal";
32
33
  export declare const portal: {
33
34
  account: typeof AccountService;
34
35
  accounting: typeof AccountingService;
@@ -61,5 +62,6 @@ export declare const portal: {
61
62
  settings: typeof SettingsService;
62
63
  shows: typeof ShowsService;
63
64
  superuserabandonedcarts: typeof SuperUserAbandonedCartsService;
65
+ superusersupporttickets: typeof SuperUserSupportTicketsService;
64
66
  };
65
67
  export * as PortalTypes from "../generated/portal/types";
@@ -66,6 +66,7 @@ const portal_28 = require("../generated/portal");
66
66
  const portal_29 = require("../generated/portal");
67
67
  const portal_30 = require("../generated/portal");
68
68
  const portal_31 = require("../generated/portal");
69
+ const portal_32 = require("../generated/portal");
69
70
  exports.portal = {
70
71
  account: portal_1.AccountService,
71
72
  accounting: portal_2.AccountingService,
@@ -98,6 +99,7 @@ exports.portal = {
98
99
  settings: portal_29.SettingsService,
99
100
  shows: portal_30.ShowsService,
100
101
  superuserabandonedcarts: portal_31.SuperUserAbandonedCartsService,
102
+ superusersupporttickets: portal_32.SuperUserSupportTicketsService,
101
103
  };
102
104
  // Re-export all types as a namespace
103
105
  exports.PortalTypes = __importStar(require("../generated/portal/types"));
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OpenAPI = void 0;
4
4
  exports.OpenAPI = {
5
5
  BASE: '',
6
- VERSION: '20260416.1',
6
+ VERSION: '20260420.1',
7
7
  WITH_CREDENTIALS: false,
8
8
  CREDENTIALS: 'include',
9
9
  TOKEN: undefined,
@@ -275,6 +275,8 @@ export type { StudentCreditOrdersResponseDto } from './models/StudentCreditOrder
275
275
  export type { StudentCreditResponseDto } from './models/StudentCreditResponseDto';
276
276
  export type { StudioIntegratorDetailResponseDto } from './models/StudioIntegratorDetailResponseDto';
277
277
  export type { SuccessResponse } from './models/SuccessResponse';
278
+ export type { SupportTicketResponseDto } from './models/SupportTicketResponseDto';
279
+ export type { SupportTicketStatusResponseDto } from './models/SupportTicketStatusResponseDto';
278
280
  export type { TaxAndBankDetailsResponseDto } from './models/TaxAndBankDetailsResponseDto';
279
281
  export type { TaxByMonthRequestDto } from './models/TaxByMonthRequestDto';
280
282
  export type { TaxByMonthResponseDto } from './models/TaxByMonthResponseDto';
@@ -368,3 +370,4 @@ export { ReportsService } from './services/ReportsService';
368
370
  export { SettingsService } from './services/SettingsService';
369
371
  export { ShowsService } from './services/ShowsService';
370
372
  export { SuperUserAbandonedCartsService } from './services/SuperUserAbandonedCartsService';
373
+ export { SuperUserSupportTicketsService } from './services/SuperUserSupportTicketsService';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SuperUserAbandonedCartsService = exports.ShowsService = exports.SettingsService = exports.ReportsService = exports.OrderLookupService = exports.FeaturesProductsService = exports.FeaturesPriorityService = exports.FeaturesLandingPageService = exports.FeaturesGoldenTicketsService = exports.FeaturesGiftCardsService = exports.FeaturesDonationsService = exports.FeaturesDiscountsService = exports.FeaturesCheckoutQuestionsService = exports.FeaturesBlockedSeatsService = exports.DashboardService = exports.ClientToolsWaitlistService = exports.ClientToolsUnapprovedOrdersService = exports.ClientToolsTicketScanningService = exports.ClientToolsTicketingLinkService = exports.ClientToolsThemesLibraryService = exports.ClientToolsThemeBuilderService = exports.ClientToolsStripeOnboardingService = exports.ClientToolsSeatAssignmentToolService = exports.ClientToolsPatronDatabaseService = exports.ClientToolsParentLetterService = exports.ClientToolsGeneratedEmailsService = exports.BookmarkService = exports.AuthService = exports.AppService = exports.AccountingService = exports.AccountService = exports.OpenAPI = exports.CancelError = exports.CancelablePromise = exports.ApiError = void 0;
3
+ exports.SuperUserSupportTicketsService = exports.SuperUserAbandonedCartsService = exports.ShowsService = exports.SettingsService = exports.ReportsService = exports.OrderLookupService = exports.FeaturesProductsService = exports.FeaturesPriorityService = exports.FeaturesLandingPageService = exports.FeaturesGoldenTicketsService = exports.FeaturesGiftCardsService = exports.FeaturesDonationsService = exports.FeaturesDiscountsService = exports.FeaturesCheckoutQuestionsService = exports.FeaturesBlockedSeatsService = exports.DashboardService = exports.ClientToolsWaitlistService = exports.ClientToolsUnapprovedOrdersService = exports.ClientToolsTicketScanningService = exports.ClientToolsTicketingLinkService = exports.ClientToolsThemesLibraryService = exports.ClientToolsThemeBuilderService = exports.ClientToolsStripeOnboardingService = exports.ClientToolsSeatAssignmentToolService = exports.ClientToolsPatronDatabaseService = exports.ClientToolsParentLetterService = exports.ClientToolsGeneratedEmailsService = exports.BookmarkService = exports.AuthService = exports.AppService = exports.AccountingService = exports.AccountService = exports.OpenAPI = exports.CancelError = exports.CancelablePromise = exports.ApiError = void 0;
4
4
  /* generated using openapi-typescript-codegen -- do not edit */
5
5
  /* istanbul ignore file */
6
6
  /* tslint:disable */
@@ -74,3 +74,5 @@ var ShowsService_1 = require("./services/ShowsService");
74
74
  Object.defineProperty(exports, "ShowsService", { enumerable: true, get: function () { return ShowsService_1.ShowsService; } });
75
75
  var SuperUserAbandonedCartsService_1 = require("./services/SuperUserAbandonedCartsService");
76
76
  Object.defineProperty(exports, "SuperUserAbandonedCartsService", { enumerable: true, get: function () { return SuperUserAbandonedCartsService_1.SuperUserAbandonedCartsService; } });
77
+ var SuperUserSupportTicketsService_1 = require("./services/SuperUserSupportTicketsService");
78
+ Object.defineProperty(exports, "SuperUserSupportTicketsService", { enumerable: true, get: function () { return SuperUserSupportTicketsService_1.SuperUserSupportTicketsService; } });
@@ -0,0 +1,26 @@
1
+ export type SupportTicketResponseDto = {
2
+ id: number;
3
+ guid: string;
4
+ adminUserId: number;
5
+ statusId: number;
6
+ typeId: number;
7
+ leadId: number;
8
+ orderId: number;
9
+ reasonId: number;
10
+ reasonOther: string;
11
+ pocId: number;
12
+ name: string;
13
+ email: string;
14
+ phone: string;
15
+ description: string;
16
+ isFromVm: number;
17
+ vmPhoneNumber: string;
18
+ voicemailId: number;
19
+ dateCreated: string;
20
+ lastShowStart: string;
21
+ statusName: string;
22
+ reasonName: string;
23
+ numNotes: number;
24
+ adminUserName: string;
25
+ hashValue: string;
26
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export type SupportTicketStatusResponseDto = {
2
+ id: number;
3
+ name: string;
4
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ import type { SupportTicketResponseDto } from '../models/SupportTicketResponseDto';
2
+ import type { SupportTicketStatusResponseDto } from '../models/SupportTicketStatusResponseDto';
3
+ import type { CancelablePromise } from '../core/CancelablePromise';
4
+ export declare class SuperUserSupportTicketsService {
5
+ /**
6
+ * Fetch the list of support tickets for a studio
7
+ * Fetch the list of support tickets for a studio
8
+ * @param xStudioId The ID of the studio
9
+ * @param statusId The ID of the support ticket status
10
+ * @returns SupportTicketResponseDto Support ticket statuses fetched successfully
11
+ * @throws ApiError
12
+ */
13
+ static getSupportTickets(xStudioId: string, statusId: string): CancelablePromise<Array<SupportTicketResponseDto>>;
14
+ /**
15
+ * Fetch the list of support ticket status for a studio
16
+ * Fetch the list of support ticket status for a studio
17
+ * @returns SupportTicketStatusResponseDto Support ticket status fetched successfully
18
+ * @throws ApiError
19
+ */
20
+ static getSupportTicketStatus(): CancelablePromise<Array<SupportTicketStatusResponseDto>>;
21
+ }
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SuperUserSupportTicketsService = void 0;
4
+ const OpenAPI_1 = require("../core/OpenAPI");
5
+ const request_1 = require("../core/request");
6
+ class SuperUserSupportTicketsService {
7
+ /**
8
+ * Fetch the list of support tickets for a studio
9
+ * Fetch the list of support tickets for a studio
10
+ * @param xStudioId The ID of the studio
11
+ * @param statusId The ID of the support ticket status
12
+ * @returns SupportTicketResponseDto Support ticket statuses fetched successfully
13
+ * @throws ApiError
14
+ */
15
+ static getSupportTickets(xStudioId, statusId) {
16
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
17
+ method: 'GET',
18
+ url: '/superuser/support-tickets',
19
+ headers: {
20
+ 'x-studio-id': xStudioId,
21
+ },
22
+ query: {
23
+ 'statusId': statusId,
24
+ },
25
+ });
26
+ }
27
+ /**
28
+ * Fetch the list of support ticket status for a studio
29
+ * Fetch the list of support ticket status for a studio
30
+ * @returns SupportTicketStatusResponseDto Support ticket status fetched successfully
31
+ * @throws ApiError
32
+ */
33
+ static getSupportTicketStatus() {
34
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
35
+ method: 'GET',
36
+ url: '/superuser/support-tickets/status',
37
+ });
38
+ }
39
+ }
40
+ exports.SuperUserSupportTicketsService = SuperUserSupportTicketsService;
@@ -271,6 +271,8 @@ export type { StudentCreditOrdersResponseDto } from './models/StudentCreditOrder
271
271
  export type { StudentCreditResponseDto } from './models/StudentCreditResponseDto';
272
272
  export type { StudioIntegratorDetailResponseDto } from './models/StudioIntegratorDetailResponseDto';
273
273
  export type { SuccessResponse } from './models/SuccessResponse';
274
+ export type { SupportTicketResponseDto } from './models/SupportTicketResponseDto';
275
+ export type { SupportTicketStatusResponseDto } from './models/SupportTicketStatusResponseDto';
274
276
  export type { TaxAndBankDetailsResponseDto } from './models/TaxAndBankDetailsResponseDto';
275
277
  export type { TaxByMonthRequestDto } from './models/TaxByMonthRequestDto';
276
278
  export type { TaxByMonthResponseDto } from './models/TaxByMonthResponseDto';
@@ -6,8 +6,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const fs_1 = __importDefault(require("fs"));
7
7
  const path_1 = __importDefault(require("path"));
8
8
  const child_process_1 = require("child_process");
9
- // Load the spec list
10
- const specsPath = path_1.default.resolve('drt-api-specs.json');
9
+ // Load the spec list (use staging specs when --staging flag is passed)
10
+ const isStaging = process.argv.includes('--staging');
11
+ const specsFile = isStaging
12
+ ? 'drt-api-specs-staging.json'
13
+ : 'drt-api-specs.json';
14
+ const specsPath = path_1.default.resolve(specsFile);
15
+ console.log(`📋 Using specs: ${specsFile}`);
11
16
  const specs = JSON.parse(fs_1.default.readFileSync(specsPath, 'utf-8'));
12
17
  const GENERATED_BASE = path_1.default.resolve('src', 'generated');
13
18
  const INDEX_FILE = path_1.default.resolve('index.ts'); // <== write to project root
@@ -36,7 +36,7 @@ function wrapServiceForStaging(ServiceClass, openAPIConfig, stagingBase) {
36
36
  }
37
37
  // Staging base URLs
38
38
  // Scanner doesn't have a staging
39
- // TODO: Update shopper to use production URL
39
+ // TODO: Update shopper to use production URL (shopper-prod)
40
40
  exports.STAGING_URLS = {
41
41
  portal: "https://api.staging.drttix.com/admin-portal",
42
42
  shopper: "https://api.drttix.com/shopper",
@@ -54,6 +54,7 @@ export declare const DRT: {
54
54
  settings: typeof import("./src/generated/portal").SettingsService;
55
55
  shows: typeof import("./src/generated/portal").ShowsService;
56
56
  superuserabandonedcarts: typeof import("./src/generated/portal").SuperUserAbandonedCartsService;
57
+ superusersupporttickets: typeof import("./src/generated/portal").SuperUserSupportTicketsService;
57
58
  };
58
59
  init: typeof init;
59
60
  isReady: typeof isReady;
@@ -29,6 +29,7 @@ import { ReportsService } from "../generated/portal";
29
29
  import { SettingsService } from "../generated/portal";
30
30
  import { ShowsService } from "../generated/portal";
31
31
  import { SuperUserAbandonedCartsService } from "../generated/portal";
32
+ import { SuperUserSupportTicketsService } from "../generated/portal";
32
33
  export declare const portal: {
33
34
  account: typeof AccountService;
34
35
  accounting: typeof AccountingService;
@@ -61,5 +62,6 @@ export declare const portal: {
61
62
  settings: typeof SettingsService;
62
63
  shows: typeof ShowsService;
63
64
  superuserabandonedcarts: typeof SuperUserAbandonedCartsService;
65
+ superusersupporttickets: typeof SuperUserSupportTicketsService;
64
66
  };
65
67
  export * as PortalTypes from "../generated/portal/types";
@@ -30,6 +30,7 @@ import { ReportsService } from "../generated/portal/index.js";
30
30
  import { SettingsService } from "../generated/portal/index.js";
31
31
  import { ShowsService } from "../generated/portal/index.js";
32
32
  import { SuperUserAbandonedCartsService } from "../generated/portal/index.js";
33
+ import { SuperUserSupportTicketsService } from "../generated/portal/index.js";
33
34
  export const portal = {
34
35
  account: AccountService,
35
36
  accounting: AccountingService,
@@ -62,6 +63,7 @@ export const portal = {
62
63
  settings: SettingsService,
63
64
  shows: ShowsService,
64
65
  superuserabandonedcarts: SuperUserAbandonedCartsService,
66
+ superusersupporttickets: SuperUserSupportTicketsService,
65
67
  };
66
68
  // Re-export all types as a namespace
67
69
  export * as PortalTypes from "../generated/portal/types.js";
@@ -1,6 +1,6 @@
1
1
  export const OpenAPI = {
2
2
  BASE: '',
3
- VERSION: '20260416.1',
3
+ VERSION: '20260420.1',
4
4
  WITH_CREDENTIALS: false,
5
5
  CREDENTIALS: 'include',
6
6
  TOKEN: undefined,
@@ -275,6 +275,8 @@ export type { StudentCreditOrdersResponseDto } from './models/StudentCreditOrder
275
275
  export type { StudentCreditResponseDto } from './models/StudentCreditResponseDto';
276
276
  export type { StudioIntegratorDetailResponseDto } from './models/StudioIntegratorDetailResponseDto';
277
277
  export type { SuccessResponse } from './models/SuccessResponse';
278
+ export type { SupportTicketResponseDto } from './models/SupportTicketResponseDto';
279
+ export type { SupportTicketStatusResponseDto } from './models/SupportTicketStatusResponseDto';
278
280
  export type { TaxAndBankDetailsResponseDto } from './models/TaxAndBankDetailsResponseDto';
279
281
  export type { TaxByMonthRequestDto } from './models/TaxByMonthRequestDto';
280
282
  export type { TaxByMonthResponseDto } from './models/TaxByMonthResponseDto';
@@ -368,3 +370,4 @@ export { ReportsService } from './services/ReportsService';
368
370
  export { SettingsService } from './services/SettingsService';
369
371
  export { ShowsService } from './services/ShowsService';
370
372
  export { SuperUserAbandonedCartsService } from './services/SuperUserAbandonedCartsService';
373
+ export { SuperUserSupportTicketsService } from './services/SuperUserSupportTicketsService';
@@ -36,3 +36,4 @@ export { ReportsService } from './services/ReportsService.js';
36
36
  export { SettingsService } from './services/SettingsService.js';
37
37
  export { ShowsService } from './services/ShowsService.js';
38
38
  export { SuperUserAbandonedCartsService } from './services/SuperUserAbandonedCartsService.js';
39
+ export { SuperUserSupportTicketsService } from './services/SuperUserSupportTicketsService.js';
@@ -0,0 +1,26 @@
1
+ export type SupportTicketResponseDto = {
2
+ id: number;
3
+ guid: string;
4
+ adminUserId: number;
5
+ statusId: number;
6
+ typeId: number;
7
+ leadId: number;
8
+ orderId: number;
9
+ reasonId: number;
10
+ reasonOther: string;
11
+ pocId: number;
12
+ name: string;
13
+ email: string;
14
+ phone: string;
15
+ description: string;
16
+ isFromVm: number;
17
+ vmPhoneNumber: string;
18
+ voicemailId: number;
19
+ dateCreated: string;
20
+ lastShowStart: string;
21
+ statusName: string;
22
+ reasonName: string;
23
+ numNotes: number;
24
+ adminUserName: string;
25
+ hashValue: string;
26
+ };
@@ -0,0 +1,4 @@
1
+ export type SupportTicketStatusResponseDto = {
2
+ id: number;
3
+ name: string;
4
+ };
@@ -0,0 +1,21 @@
1
+ import type { SupportTicketResponseDto } from '../models/SupportTicketResponseDto';
2
+ import type { SupportTicketStatusResponseDto } from '../models/SupportTicketStatusResponseDto';
3
+ import type { CancelablePromise } from '../core/CancelablePromise';
4
+ export declare class SuperUserSupportTicketsService {
5
+ /**
6
+ * Fetch the list of support tickets for a studio
7
+ * Fetch the list of support tickets for a studio
8
+ * @param xStudioId The ID of the studio
9
+ * @param statusId The ID of the support ticket status
10
+ * @returns SupportTicketResponseDto Support ticket statuses fetched successfully
11
+ * @throws ApiError
12
+ */
13
+ static getSupportTickets(xStudioId: string, statusId: string): CancelablePromise<Array<SupportTicketResponseDto>>;
14
+ /**
15
+ * Fetch the list of support ticket status for a studio
16
+ * Fetch the list of support ticket status for a studio
17
+ * @returns SupportTicketStatusResponseDto Support ticket status fetched successfully
18
+ * @throws ApiError
19
+ */
20
+ static getSupportTicketStatus(): CancelablePromise<Array<SupportTicketStatusResponseDto>>;
21
+ }
@@ -0,0 +1,36 @@
1
+ import { OpenAPI } from '../core/OpenAPI.js';
2
+ import { request as __request } from '../core/request.js';
3
+ export class SuperUserSupportTicketsService {
4
+ /**
5
+ * Fetch the list of support tickets for a studio
6
+ * Fetch the list of support tickets for a studio
7
+ * @param xStudioId The ID of the studio
8
+ * @param statusId The ID of the support ticket status
9
+ * @returns SupportTicketResponseDto Support ticket statuses fetched successfully
10
+ * @throws ApiError
11
+ */
12
+ static getSupportTickets(xStudioId, statusId) {
13
+ return __request(OpenAPI, {
14
+ method: 'GET',
15
+ url: '/superuser/support-tickets',
16
+ headers: {
17
+ 'x-studio-id': xStudioId,
18
+ },
19
+ query: {
20
+ 'statusId': statusId,
21
+ },
22
+ });
23
+ }
24
+ /**
25
+ * Fetch the list of support ticket status for a studio
26
+ * Fetch the list of support ticket status for a studio
27
+ * @returns SupportTicketStatusResponseDto Support ticket status fetched successfully
28
+ * @throws ApiError
29
+ */
30
+ static getSupportTicketStatus() {
31
+ return __request(OpenAPI, {
32
+ method: 'GET',
33
+ url: '/superuser/support-tickets/status',
34
+ });
35
+ }
36
+ }
@@ -271,6 +271,8 @@ export type { StudentCreditOrdersResponseDto } from './models/StudentCreditOrder
271
271
  export type { StudentCreditResponseDto } from './models/StudentCreditResponseDto';
272
272
  export type { StudioIntegratorDetailResponseDto } from './models/StudioIntegratorDetailResponseDto';
273
273
  export type { SuccessResponse } from './models/SuccessResponse';
274
+ export type { SupportTicketResponseDto } from './models/SupportTicketResponseDto';
275
+ export type { SupportTicketStatusResponseDto } from './models/SupportTicketStatusResponseDto';
274
276
  export type { TaxAndBankDetailsResponseDto } from './models/TaxAndBankDetailsResponseDto';
275
277
  export type { TaxByMonthRequestDto } from './models/TaxByMonthRequestDto';
276
278
  export type { TaxByMonthResponseDto } from './models/TaxByMonthResponseDto';
@@ -1,8 +1,13 @@
1
1
  import fs from 'fs';
2
2
  import path from 'path';
3
3
  import { execFileSync } from 'child_process';
4
- // Load the spec list
5
- const specsPath = path.resolve('drt-api-specs.json');
4
+ // Load the spec list (use staging specs when --staging flag is passed)
5
+ const isStaging = process.argv.includes('--staging');
6
+ const specsFile = isStaging
7
+ ? 'drt-api-specs-staging.json'
8
+ : 'drt-api-specs.json';
9
+ const specsPath = path.resolve(specsFile);
10
+ console.log(`📋 Using specs: ${specsFile}`);
6
11
  const specs = JSON.parse(fs.readFileSync(specsPath, 'utf-8'));
7
12
  const GENERATED_BASE = path.resolve('src', 'generated');
8
13
  const INDEX_FILE = path.resolve('index.ts'); // <== write to project root
@@ -32,7 +32,7 @@ export function wrapServiceForStaging(ServiceClass, openAPIConfig, stagingBase)
32
32
  }
33
33
  // Staging base URLs
34
34
  // Scanner doesn't have a staging
35
- // TODO: Update shopper to use production URL
35
+ // TODO: Update shopper to use production URL (shopper-prod)
36
36
  export const STAGING_URLS = {
37
37
  portal: "https://api.staging.drttix.com/admin-portal",
38
38
  shopper: "https://api.drttix.com/shopper",
@@ -0,0 +1,14 @@
1
+ [
2
+ {
3
+ "name": "shopper",
4
+ "url": "https://api.drttix.com/shopper/docs-json"
5
+ },
6
+ {
7
+ "name": "scanner",
8
+ "url": "https://api.drttix.com/scanner-v3/docs-json"
9
+ },
10
+ {
11
+ "name": "portal",
12
+ "url": "https://api.staging.drttix.com/admin-portal/docs-json"
13
+ }
14
+ ]
package/package.json CHANGED
@@ -1,40 +1,40 @@
1
1
  {
2
- "name": "@drttix/drt-sdk",
3
- "description": "DRT SDK",
4
- "version": "0.9.8",
5
- "main": "dist/cjs/index.js",
6
- "module": "dist/esm/index.js",
7
- "types": "dist/esm/index.d.ts",
8
- "exports": {
9
- ".": {
10
- "import": "./dist/esm/index.js",
11
- "require": "./dist/cjs/index.js",
12
- "types": "./dist/esm/index.d.ts"
13
- },
14
- "./staging": {
15
- "import": "./dist/esm/staging.js",
16
- "require": "./dist/cjs/staging.js",
17
- "types": "./dist/esm/staging.d.ts"
18
- }
19
- },
20
- "type": "commonjs",
21
- "private": false,
22
- "publishConfig": {
23
- "access": "public",
24
- "registry": "https://registry.npmjs.org/"
25
- },
26
- "scripts": {
27
- "build": "npx tsc --project tsconfig.esm.json && npx tsc --project tsconfig.cjs.json && node scripts/fix-import-extensions.mjs",
28
- "build:bundle": "npm run build && npx esbuild dist/esm/index.js --bundle --format=esm --outfile=dist/bundle/drt-sdk.js --minify",
29
- "generate": "npx tsx src/scripts/build-all.ts",
30
- "prepublishOnly": "npx tsx src/scripts/check-version-not-published.ts && npm run build"
31
- },
32
- "devDependencies": {
33
- "@types/node": "^24.0.4",
34
- "esbuild": "^0.20.0",
35
- "typescript": "^5.8.3"
36
- },
37
- "dependencies": {
38
- "@drttix/drt-sdk": "^0.2.9"
39
- }
2
+ "name": "@drttix/drt-sdk",
3
+ "description": "DRT SDK",
4
+ "version": "0.9.9",
5
+ "main": "dist/cjs/index.js",
6
+ "module": "dist/esm/index.js",
7
+ "types": "dist/esm/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/esm/index.js",
11
+ "require": "./dist/cjs/index.js",
12
+ "types": "./dist/esm/index.d.ts"
13
+ },
14
+ "./staging": {
15
+ "import": "./dist/esm/staging.js",
16
+ "require": "./dist/cjs/staging.js",
17
+ "types": "./dist/esm/staging.d.ts"
18
+ }
19
+ },
20
+ "type": "commonjs",
21
+ "private": false,
22
+ "publishConfig": {
23
+ "access": "public",
24
+ "registry": "https://registry.npmjs.org/"
25
+ },
26
+ "scripts": {
27
+ "build": "npx tsc --project tsconfig.esm.json && npx tsc --project tsconfig.cjs.json && node scripts/fix-import-extensions.mjs",
28
+ "build:bundle": "npm run build && npx esbuild dist/esm/index.js --bundle --format=esm --outfile=dist/bundle/drt-sdk.js --minify",
29
+ "generate": "npx tsx src/scripts/build-all.ts && npx tsx src/scripts/build-all.ts --staging",
30
+ "prepublishOnly": "npx tsx src/scripts/check-version-not-published.ts && npm run build"
31
+ },
32
+ "devDependencies": {
33
+ "@types/node": "^24.0.4",
34
+ "esbuild": "^0.20.0",
35
+ "typescript": "^5.8.3"
36
+ },
37
+ "dependencies": {
38
+ "@drttix/drt-sdk": "^0.2.9"
39
+ }
40
40
  }
@@ -31,6 +31,7 @@ import { ReportsService } from "../generated/portal";
31
31
  import { SettingsService } from "../generated/portal";
32
32
  import { ShowsService } from "../generated/portal";
33
33
  import { SuperUserAbandonedCartsService } from "../generated/portal";
34
+ import { SuperUserSupportTicketsService } from "../generated/portal";
34
35
 
35
36
  export const portal = {
36
37
  account: AccountService,
@@ -64,6 +65,7 @@ export const portal = {
64
65
  settings: SettingsService,
65
66
  shows: ShowsService,
66
67
  superuserabandonedcarts: SuperUserAbandonedCartsService,
68
+ superusersupporttickets: SuperUserSupportTicketsService,
67
69
  };
68
70
 
69
71
  // Re-export all types as a namespace
@@ -21,7 +21,7 @@ export type OpenAPIConfig = {
21
21
 
22
22
  export const OpenAPI: OpenAPIConfig = {
23
23
  BASE: '',
24
- VERSION: '20260416.1',
24
+ VERSION: '20260420.1',
25
25
  WITH_CREDENTIALS: false,
26
26
  CREDENTIALS: 'include',
27
27
  TOKEN: undefined,
@@ -280,6 +280,8 @@ export type { StudentCreditOrdersResponseDto } from './models/StudentCreditOrder
280
280
  export type { StudentCreditResponseDto } from './models/StudentCreditResponseDto';
281
281
  export type { StudioIntegratorDetailResponseDto } from './models/StudioIntegratorDetailResponseDto';
282
282
  export type { SuccessResponse } from './models/SuccessResponse';
283
+ export type { SupportTicketResponseDto } from './models/SupportTicketResponseDto';
284
+ export type { SupportTicketStatusResponseDto } from './models/SupportTicketStatusResponseDto';
283
285
  export type { TaxAndBankDetailsResponseDto } from './models/TaxAndBankDetailsResponseDto';
284
286
  export type { TaxByMonthRequestDto } from './models/TaxByMonthRequestDto';
285
287
  export type { TaxByMonthResponseDto } from './models/TaxByMonthResponseDto';
@@ -374,3 +376,4 @@ export { ReportsService } from './services/ReportsService';
374
376
  export { SettingsService } from './services/SettingsService';
375
377
  export { ShowsService } from './services/ShowsService';
376
378
  export { SuperUserAbandonedCartsService } from './services/SuperUserAbandonedCartsService';
379
+ export { SuperUserSupportTicketsService } from './services/SuperUserSupportTicketsService';
@@ -0,0 +1,31 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export type SupportTicketResponseDto = {
6
+ id: number;
7
+ guid: string;
8
+ adminUserId: number;
9
+ statusId: number;
10
+ typeId: number;
11
+ leadId: number;
12
+ orderId: number;
13
+ reasonId: number;
14
+ reasonOther: string;
15
+ pocId: number;
16
+ name: string;
17
+ email: string;
18
+ phone: string;
19
+ description: string;
20
+ isFromVm: number;
21
+ vmPhoneNumber: string;
22
+ voicemailId: number;
23
+ dateCreated: string;
24
+ lastShowStart: string;
25
+ statusName: string;
26
+ reasonName: string;
27
+ numNotes: number;
28
+ adminUserName: string;
29
+ hashValue: string;
30
+ };
31
+
@@ -0,0 +1,9 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export type SupportTicketStatusResponseDto = {
6
+ id: number;
7
+ name: string;
8
+ };
9
+
@@ -0,0 +1,46 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { SupportTicketResponseDto } from '../models/SupportTicketResponseDto';
6
+ import type { SupportTicketStatusResponseDto } from '../models/SupportTicketStatusResponseDto';
7
+ import type { CancelablePromise } from '../core/CancelablePromise';
8
+ import { OpenAPI } from '../core/OpenAPI';
9
+ import { request as __request } from '../core/request';
10
+ export class SuperUserSupportTicketsService {
11
+ /**
12
+ * Fetch the list of support tickets for a studio
13
+ * Fetch the list of support tickets for a studio
14
+ * @param xStudioId The ID of the studio
15
+ * @param statusId The ID of the support ticket status
16
+ * @returns SupportTicketResponseDto Support ticket statuses fetched successfully
17
+ * @throws ApiError
18
+ */
19
+ public static getSupportTickets(
20
+ xStudioId: string,
21
+ statusId: string,
22
+ ): CancelablePromise<Array<SupportTicketResponseDto>> {
23
+ return __request(OpenAPI, {
24
+ method: 'GET',
25
+ url: '/superuser/support-tickets',
26
+ headers: {
27
+ 'x-studio-id': xStudioId,
28
+ },
29
+ query: {
30
+ 'statusId': statusId,
31
+ },
32
+ });
33
+ }
34
+ /**
35
+ * Fetch the list of support ticket status for a studio
36
+ * Fetch the list of support ticket status for a studio
37
+ * @returns SupportTicketStatusResponseDto Support ticket status fetched successfully
38
+ * @throws ApiError
39
+ */
40
+ public static getSupportTicketStatus(): CancelablePromise<Array<SupportTicketStatusResponseDto>> {
41
+ return __request(OpenAPI, {
42
+ method: 'GET',
43
+ url: '/superuser/support-tickets/status',
44
+ });
45
+ }
46
+ }
@@ -274,6 +274,8 @@ export type { StudentCreditOrdersResponseDto } from './models/StudentCreditOrder
274
274
  export type { StudentCreditResponseDto } from './models/StudentCreditResponseDto';
275
275
  export type { StudioIntegratorDetailResponseDto } from './models/StudioIntegratorDetailResponseDto';
276
276
  export type { SuccessResponse } from './models/SuccessResponse';
277
+ export type { SupportTicketResponseDto } from './models/SupportTicketResponseDto';
278
+ export type { SupportTicketStatusResponseDto } from './models/SupportTicketStatusResponseDto';
277
279
  export type { TaxAndBankDetailsResponseDto } from './models/TaxAndBankDetailsResponseDto';
278
280
  export type { TaxByMonthRequestDto } from './models/TaxByMonthRequestDto';
279
281
  export type { TaxByMonthResponseDto } from './models/TaxByMonthResponseDto';
@@ -2,8 +2,13 @@ import fs from 'fs';
2
2
  import path from 'path';
3
3
  import { execSync, execFileSync } from 'child_process';
4
4
 
5
- // Load the spec list
6
- const specsPath = path.resolve('drt-api-specs.json');
5
+ // Load the spec list (use staging specs when --staging flag is passed)
6
+ const isStaging = process.argv.includes('--staging');
7
+ const specsFile = isStaging
8
+ ? 'drt-api-specs-staging.json'
9
+ : 'drt-api-specs.json';
10
+ const specsPath = path.resolve(specsFile);
11
+ console.log(`📋 Using specs: ${specsFile}`);
7
12
  const specs = JSON.parse(fs.readFileSync(specsPath, 'utf-8')) as {
8
13
  name: string;
9
14
  url: string;
@@ -43,7 +43,7 @@ export function wrapServiceForStaging<T extends object>(
43
43
 
44
44
  // Staging base URLs
45
45
  // Scanner doesn't have a staging
46
- // TODO: Update shopper to use production URL
46
+ // TODO: Update shopper to use production URL (shopper-prod)
47
47
  export const STAGING_URLS = {
48
48
  portal: "https://api.staging.drttix.com/admin-portal",
49
49
  shopper: "https://api.drttix.com/shopper",