@drttix/drt-sdk 0.2.8 → 0.2.91

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 (49) hide show
  1. package/dist/cjs/src/generated/portal/core/OpenAPI.js +1 -1
  2. package/dist/cjs/src/generated/portal/index.d.ts +1 -0
  3. package/dist/cjs/src/generated/portal/models/BulkCreateGiftCardRequestDto.d.ts +2 -2
  4. package/dist/cjs/src/generated/portal/models/GiftCardResponseDto.d.ts +2 -0
  5. package/dist/cjs/src/generated/portal/models/OrderEmailBuyersRequestDto.d.ts +2 -0
  6. package/dist/cjs/src/generated/portal/models/RefundDetailResponseDto.d.ts +3 -0
  7. package/dist/cjs/src/generated/portal/models/RefundResponseDto.d.ts +2 -0
  8. package/dist/cjs/src/generated/portal/models/ShowDetailDto.d.ts +2 -0
  9. package/dist/cjs/src/generated/portal/models/StopShowRequestDto.d.ts +5 -0
  10. package/dist/cjs/src/generated/portal/models/StopShowRequestDto.js +2 -0
  11. package/dist/cjs/src/generated/portal/models/TicketResponseDto.d.ts +9 -5
  12. package/dist/cjs/src/generated/portal/models/UpdateBankingRequestDto.d.ts +5 -5
  13. package/dist/cjs/src/generated/portal/services/FeaturesGiftCardsService.d.ts +14 -5
  14. package/dist/cjs/src/generated/portal/services/FeaturesGiftCardsService.js +29 -9
  15. package/dist/cjs/src/generated/portal/services/ShowsService.d.ts +11 -0
  16. package/dist/cjs/src/generated/portal/services/ShowsService.js +23 -0
  17. package/dist/cjs/src/generated/portal/types.d.ts +1 -0
  18. package/dist/esm/src/generated/portal/core/OpenAPI.js +1 -1
  19. package/dist/esm/src/generated/portal/index.d.ts +1 -0
  20. package/dist/esm/src/generated/portal/models/BulkCreateGiftCardRequestDto.d.ts +2 -2
  21. package/dist/esm/src/generated/portal/models/GiftCardResponseDto.d.ts +2 -0
  22. package/dist/esm/src/generated/portal/models/OrderEmailBuyersRequestDto.d.ts +2 -0
  23. package/dist/esm/src/generated/portal/models/RefundDetailResponseDto.d.ts +3 -0
  24. package/dist/esm/src/generated/portal/models/RefundResponseDto.d.ts +2 -0
  25. package/dist/esm/src/generated/portal/models/ShowDetailDto.d.ts +2 -0
  26. package/dist/esm/src/generated/portal/models/StopShowRequestDto.d.ts +5 -0
  27. package/dist/esm/src/generated/portal/models/StopShowRequestDto.js +1 -0
  28. package/dist/esm/src/generated/portal/models/TicketResponseDto.d.ts +9 -5
  29. package/dist/esm/src/generated/portal/models/UpdateBankingRequestDto.d.ts +5 -5
  30. package/dist/esm/src/generated/portal/services/FeaturesGiftCardsService.d.ts +14 -5
  31. package/dist/esm/src/generated/portal/services/FeaturesGiftCardsService.js +29 -9
  32. package/dist/esm/src/generated/portal/services/ShowsService.d.ts +11 -0
  33. package/dist/esm/src/generated/portal/services/ShowsService.js +23 -0
  34. package/dist/esm/src/generated/portal/types.d.ts +1 -0
  35. package/package.json +4 -1
  36. package/src/generated/portal/core/OpenAPI.ts +1 -1
  37. package/src/generated/portal/index.ts +1 -0
  38. package/src/generated/portal/models/BulkCreateGiftCardRequestDto.ts +2 -2
  39. package/src/generated/portal/models/GiftCardResponseDto.ts +2 -0
  40. package/src/generated/portal/models/OrderEmailBuyersRequestDto.ts +2 -0
  41. package/src/generated/portal/models/RefundDetailResponseDto.ts +3 -0
  42. package/src/generated/portal/models/RefundResponseDto.ts +2 -0
  43. package/src/generated/portal/models/ShowDetailDto.ts +2 -0
  44. package/src/generated/portal/models/StopShowRequestDto.ts +10 -0
  45. package/src/generated/portal/models/TicketResponseDto.ts +9 -5
  46. package/src/generated/portal/models/UpdateBankingRequestDto.ts +5 -5
  47. package/src/generated/portal/services/FeaturesGiftCardsService.ts +34 -11
  48. package/src/generated/portal/services/ShowsService.ts +28 -0
  49. package/src/generated/portal/types.ts +1 -0
@@ -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: '20260213.2',
6
+ VERSION: '20260218.1',
7
7
  WITH_CREDENTIALS: false,
8
8
  CREDENTIALS: 'include',
9
9
  TOKEN: undefined,
@@ -244,6 +244,7 @@ export type { SinglePerformerRequestDto } from './models/SinglePerformerRequestD
244
244
  export type { SoldTicketsResponseDto } from './models/SoldTicketsResponseDto';
245
245
  export type { StartImageUploadRequestDto } from './models/StartImageUploadRequestDto';
246
246
  export type { StartImageUploadResponseDto } from './models/StartImageUploadResponseDto';
247
+ export type { StopShowRequestDto } from './models/StopShowRequestDto';
247
248
  export type { StringValidation } from './models/StringValidation';
248
249
  export type { StripeResponseDto } from './models/StripeResponseDto';
249
250
  export type { StripeSettingsResponseDto } from './models/StripeSettingsResponseDto';
@@ -2,10 +2,10 @@ export type BulkCreateGiftCardRequestDto = {
2
2
  balance: string;
3
3
  numCodes: number;
4
4
  emailName: string;
5
- emails: Array<any[]>;
5
+ emails: Array<string>;
6
6
  errorOnCollisionEmail: number;
7
7
  errorOnCollisionName: number;
8
- names: Array<any[]>;
8
+ names: Array<string>;
9
9
  message: string;
10
10
  sendWhen: string;
11
11
  dateSend: string;
@@ -6,6 +6,8 @@ export type GiftCardResponseDto = {
6
6
  email: string | null;
7
7
  balance: number | null;
8
8
  loopType: string;
9
+ message: string;
10
+ adminNote: string;
9
11
  dateVoided: string | null;
10
12
  isHouseCard: number;
11
13
  dateCreated: string | null;
@@ -5,4 +5,6 @@ export type OrderEmailBuyersRequestDto = {
5
5
  bodyType: string;
6
6
  sendWhen: string;
7
7
  dateToSchedule: string;
8
+ link: number;
9
+ download: number;
8
10
  };
@@ -21,5 +21,8 @@ export type RefundDetailResponseDto = {
21
21
  dateRefunded: string;
22
22
  wasAutoApproved: number;
23
23
  completedRefundId: number;
24
+ balance: number;
25
+ weeklyAmt: number;
26
+ lastWeeklyAmt: number;
24
27
  orderDetails: Array<RefundOrderDetail>;
25
28
  };
@@ -1,8 +1,10 @@
1
1
  import type { OrderDetails } from './OrderDetails';
2
2
  export type RefundResponseDto = {
3
3
  orderId: number;
4
+ id: number;
4
5
  amountReqested?: number;
5
6
  amountApproved?: number;
7
+ amountRefunded: number;
6
8
  dateCreated: string;
7
9
  dateApprovedClient?: string;
8
10
  dateApprovedInternal?: string;
@@ -54,6 +54,8 @@ export type ShowDetailDto = {
54
54
  numResSections: number;
55
55
  chargebackProtectionEnabled: number;
56
56
  receiptMessage: string;
57
+ repName: string;
58
+ repEmail: string;
57
59
  dateMaxOrderSeatsEnd: string;
58
60
  autoDiscounts: Array<AutoDiscounts>;
59
61
  refundSetting: Array<RefundSetting>;
@@ -0,0 +1,5 @@
1
+ export type StopShowRequestDto = {
2
+ mode: string;
3
+ soldOutText: string;
4
+ enableWaitlist: number;
5
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +1,14 @@
1
1
  export type TicketResponseDto = {
2
2
  year: string;
3
3
  date: string;
4
- orders: number;
5
- seats: number;
6
- collected: number;
7
- ticketFee: number;
8
- tax: number;
4
+ value_orders: number;
5
+ num_orders: number;
6
+ num_seats: number;
7
+ value_seats: number;
8
+ value_tax: number;
9
+ total_service_charge: number;
10
+ net_amount: number;
11
+ includes_sales_tax: number;
12
+ product_tax: number;
9
13
  distro: number;
10
14
  };
@@ -6,10 +6,10 @@ export type UpdateBankingRequestDto = {
6
6
  account: string;
7
7
  accountNumber: string;
8
8
  routingNumber: string;
9
- checkName: number;
10
- echeckEmail: number;
11
- checkAddress: number;
12
- checkCity: number;
13
- checkState: number;
9
+ checkName: string;
10
+ echeckEmail: string;
11
+ checkAddress: string;
12
+ checkCity: string;
13
+ checkState: string;
14
14
  checkPostal: number;
15
15
  };
@@ -33,14 +33,14 @@ export declare class FeaturesGiftCardsService {
33
33
  */
34
34
  static getTransactions(xStudioId: string, giftCardId: string): CancelablePromise<GiftCardTransactionsResponseDto>;
35
35
  /**
36
- * Create new gift cards
37
- * Create new gift cards for the given studio ID
36
+ * Fetch the gift card
37
+ * Fetch the gift card for the given studio ID
38
38
  * @param xStudioId The ID of the studio
39
- * @param requestBody Create bulk gift cards payload
40
- * @returns SuccessResponse Gift cards created successfully
39
+ * @param giftCardId The ID of the gift card
40
+ * @returns GiftCardResponseDto Gift card fetched successfully
41
41
  * @throws ApiError
42
42
  */
43
- static createGiftCardsBulk(xStudioId: string, requestBody: BulkCreateGiftCardRequestDto): CancelablePromise<SuccessResponse>;
43
+ static getGiftCard(xStudioId: string, giftCardId: string): CancelablePromise<GiftCardResponseDto>;
44
44
  /**
45
45
  * Update a gift card
46
46
  * Update a gift card for the given studio ID
@@ -60,4 +60,13 @@ export declare class FeaturesGiftCardsService {
60
60
  * @throws ApiError
61
61
  */
62
62
  static deleteGiftCard(xStudioId: string, giftCardId: string): CancelablePromise<SuccessResponse>;
63
+ /**
64
+ * Create new gift cards
65
+ * Create new gift cards for the given studio ID
66
+ * @param xStudioId The ID of the studio
67
+ * @param requestBody Create bulk gift cards payload
68
+ * @returns SuccessResponse Gift cards created successfully
69
+ * @throws ApiError
70
+ */
71
+ static createGiftCardsBulk(xStudioId: string, requestBody: BulkCreateGiftCardRequestDto): CancelablePromise<SuccessResponse>;
63
72
  }
@@ -64,22 +64,23 @@ class FeaturesGiftCardsService {
64
64
  });
65
65
  }
66
66
  /**
67
- * Create new gift cards
68
- * Create new gift cards for the given studio ID
67
+ * Fetch the gift card
68
+ * Fetch the gift card for the given studio ID
69
69
  * @param xStudioId The ID of the studio
70
- * @param requestBody Create bulk gift cards payload
71
- * @returns SuccessResponse Gift cards created successfully
70
+ * @param giftCardId The ID of the gift card
71
+ * @returns GiftCardResponseDto Gift card fetched successfully
72
72
  * @throws ApiError
73
73
  */
74
- static createGiftCardsBulk(xStudioId, requestBody) {
74
+ static getGiftCard(xStudioId, giftCardId) {
75
75
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
76
- method: 'POST',
77
- url: '/features/gift-cards/bulk-create',
76
+ method: 'GET',
77
+ url: '/features/gift-cards/{giftCardId}',
78
+ path: {
79
+ 'giftCardId': giftCardId,
80
+ },
78
81
  headers: {
79
82
  'x-studio-id': xStudioId,
80
83
  },
81
- body: requestBody,
82
- mediaType: 'application/json',
83
84
  });
84
85
  }
85
86
  /**
@@ -125,5 +126,24 @@ class FeaturesGiftCardsService {
125
126
  },
126
127
  });
127
128
  }
129
+ /**
130
+ * Create new gift cards
131
+ * Create new gift cards for the given studio ID
132
+ * @param xStudioId The ID of the studio
133
+ * @param requestBody Create bulk gift cards payload
134
+ * @returns SuccessResponse Gift cards created successfully
135
+ * @throws ApiError
136
+ */
137
+ static createGiftCardsBulk(xStudioId, requestBody) {
138
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
139
+ method: 'POST',
140
+ url: '/features/gift-cards/bulk-create',
141
+ headers: {
142
+ 'x-studio-id': xStudioId,
143
+ },
144
+ body: requestBody,
145
+ mediaType: 'application/json',
146
+ });
147
+ }
128
148
  }
129
149
  exports.FeaturesGiftCardsService = FeaturesGiftCardsService;
@@ -22,6 +22,7 @@ import type { ShowSectionDetail } from '../models/ShowSectionDetail';
22
22
  import type { ShowStatDetail } from '../models/ShowStatDetail';
23
23
  import type { ShowTicketSectionListResponseDto } from '../models/ShowTicketSectionListResponseDto';
24
24
  import type { SinglePerformerRequestDto } from '../models/SinglePerformerRequestDto';
25
+ import type { StopShowRequestDto } from '../models/StopShowRequestDto';
25
26
  import type { SuccessResponse } from '../models/SuccessResponse';
26
27
  import type { VideoStreamResponseDto } from '../models/VideoStreamResponseDto';
27
28
  import type { VirtualStreamResponseDto } from '../models/VirtualStreamResponseDto';
@@ -251,6 +252,16 @@ export declare class ShowsService {
251
252
  * @throws ApiError
252
253
  */
253
254
  static updatePerformers(xStudioId: string, requestBody: SinglePerformerRequestDto): CancelablePromise<SuccessResponse>;
255
+ /**
256
+ * Stop sale for a show
257
+ * To stop the sale of tickets for a specific show
258
+ * @param xStudioId The ID of the studio
259
+ * @param showId The ID of the show
260
+ * @param requestBody Stop sale for a show
261
+ * @returns SuccessResponse Show sale stopped successfully
262
+ * @throws ApiError
263
+ */
264
+ static stopSale(xStudioId: string, showId: string, requestBody: StopShowRequestDto): CancelablePromise<SuccessResponse>;
254
265
  /**
255
266
  * Remove show performer
256
267
  * To remove the performer of the show
@@ -489,6 +489,29 @@ class ShowsService {
489
489
  mediaType: 'application/json',
490
490
  });
491
491
  }
492
+ /**
493
+ * Stop sale for a show
494
+ * To stop the sale of tickets for a specific show
495
+ * @param xStudioId The ID of the studio
496
+ * @param showId The ID of the show
497
+ * @param requestBody Stop sale for a show
498
+ * @returns SuccessResponse Show sale stopped successfully
499
+ * @throws ApiError
500
+ */
501
+ static stopSale(xStudioId, showId, requestBody) {
502
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
503
+ method: 'PUT',
504
+ url: '/shows/{showId}/stop-sale',
505
+ path: {
506
+ 'showId': showId,
507
+ },
508
+ headers: {
509
+ 'x-studio-id': xStudioId,
510
+ },
511
+ body: requestBody,
512
+ mediaType: 'application/json',
513
+ });
514
+ }
492
515
  /**
493
516
  * Remove show performer
494
517
  * To remove the performer of the show
@@ -240,6 +240,7 @@ export type { SinglePerformerRequestDto } from './models/SinglePerformerRequestD
240
240
  export type { SoldTicketsResponseDto } from './models/SoldTicketsResponseDto';
241
241
  export type { StartImageUploadRequestDto } from './models/StartImageUploadRequestDto';
242
242
  export type { StartImageUploadResponseDto } from './models/StartImageUploadResponseDto';
243
+ export type { StopShowRequestDto } from './models/StopShowRequestDto';
243
244
  export type { StringValidation } from './models/StringValidation';
244
245
  export type { StripeResponseDto } from './models/StripeResponseDto';
245
246
  export type { StripeSettingsResponseDto } from './models/StripeSettingsResponseDto';
@@ -1,6 +1,6 @@
1
1
  export const OpenAPI = {
2
2
  BASE: '',
3
- VERSION: '20260213.2',
3
+ VERSION: '20260218.1',
4
4
  WITH_CREDENTIALS: false,
5
5
  CREDENTIALS: 'include',
6
6
  TOKEN: undefined,
@@ -244,6 +244,7 @@ export type { SinglePerformerRequestDto } from './models/SinglePerformerRequestD
244
244
  export type { SoldTicketsResponseDto } from './models/SoldTicketsResponseDto';
245
245
  export type { StartImageUploadRequestDto } from './models/StartImageUploadRequestDto';
246
246
  export type { StartImageUploadResponseDto } from './models/StartImageUploadResponseDto';
247
+ export type { StopShowRequestDto } from './models/StopShowRequestDto';
247
248
  export type { StringValidation } from './models/StringValidation';
248
249
  export type { StripeResponseDto } from './models/StripeResponseDto';
249
250
  export type { StripeSettingsResponseDto } from './models/StripeSettingsResponseDto';
@@ -2,10 +2,10 @@ export type BulkCreateGiftCardRequestDto = {
2
2
  balance: string;
3
3
  numCodes: number;
4
4
  emailName: string;
5
- emails: Array<any[]>;
5
+ emails: Array<string>;
6
6
  errorOnCollisionEmail: number;
7
7
  errorOnCollisionName: number;
8
- names: Array<any[]>;
8
+ names: Array<string>;
9
9
  message: string;
10
10
  sendWhen: string;
11
11
  dateSend: string;
@@ -6,6 +6,8 @@ export type GiftCardResponseDto = {
6
6
  email: string | null;
7
7
  balance: number | null;
8
8
  loopType: string;
9
+ message: string;
10
+ adminNote: string;
9
11
  dateVoided: string | null;
10
12
  isHouseCard: number;
11
13
  dateCreated: string | null;
@@ -5,4 +5,6 @@ export type OrderEmailBuyersRequestDto = {
5
5
  bodyType: string;
6
6
  sendWhen: string;
7
7
  dateToSchedule: string;
8
+ link: number;
9
+ download: number;
8
10
  };
@@ -21,5 +21,8 @@ export type RefundDetailResponseDto = {
21
21
  dateRefunded: string;
22
22
  wasAutoApproved: number;
23
23
  completedRefundId: number;
24
+ balance: number;
25
+ weeklyAmt: number;
26
+ lastWeeklyAmt: number;
24
27
  orderDetails: Array<RefundOrderDetail>;
25
28
  };
@@ -1,8 +1,10 @@
1
1
  import type { OrderDetails } from './OrderDetails';
2
2
  export type RefundResponseDto = {
3
3
  orderId: number;
4
+ id: number;
4
5
  amountReqested?: number;
5
6
  amountApproved?: number;
7
+ amountRefunded: number;
6
8
  dateCreated: string;
7
9
  dateApprovedClient?: string;
8
10
  dateApprovedInternal?: string;
@@ -54,6 +54,8 @@ export type ShowDetailDto = {
54
54
  numResSections: number;
55
55
  chargebackProtectionEnabled: number;
56
56
  receiptMessage: string;
57
+ repName: string;
58
+ repEmail: string;
57
59
  dateMaxOrderSeatsEnd: string;
58
60
  autoDiscounts: Array<AutoDiscounts>;
59
61
  refundSetting: Array<RefundSetting>;
@@ -0,0 +1,5 @@
1
+ export type StopShowRequestDto = {
2
+ mode: string;
3
+ soldOutText: string;
4
+ enableWaitlist: number;
5
+ };
@@ -1,10 +1,14 @@
1
1
  export type TicketResponseDto = {
2
2
  year: string;
3
3
  date: string;
4
- orders: number;
5
- seats: number;
6
- collected: number;
7
- ticketFee: number;
8
- tax: number;
4
+ value_orders: number;
5
+ num_orders: number;
6
+ num_seats: number;
7
+ value_seats: number;
8
+ value_tax: number;
9
+ total_service_charge: number;
10
+ net_amount: number;
11
+ includes_sales_tax: number;
12
+ product_tax: number;
9
13
  distro: number;
10
14
  };
@@ -6,10 +6,10 @@ export type UpdateBankingRequestDto = {
6
6
  account: string;
7
7
  accountNumber: string;
8
8
  routingNumber: string;
9
- checkName: number;
10
- echeckEmail: number;
11
- checkAddress: number;
12
- checkCity: number;
13
- checkState: number;
9
+ checkName: string;
10
+ echeckEmail: string;
11
+ checkAddress: string;
12
+ checkCity: string;
13
+ checkState: string;
14
14
  checkPostal: number;
15
15
  };
@@ -33,14 +33,14 @@ export declare class FeaturesGiftCardsService {
33
33
  */
34
34
  static getTransactions(xStudioId: string, giftCardId: string): CancelablePromise<GiftCardTransactionsResponseDto>;
35
35
  /**
36
- * Create new gift cards
37
- * Create new gift cards for the given studio ID
36
+ * Fetch the gift card
37
+ * Fetch the gift card for the given studio ID
38
38
  * @param xStudioId The ID of the studio
39
- * @param requestBody Create bulk gift cards payload
40
- * @returns SuccessResponse Gift cards created successfully
39
+ * @param giftCardId The ID of the gift card
40
+ * @returns GiftCardResponseDto Gift card fetched successfully
41
41
  * @throws ApiError
42
42
  */
43
- static createGiftCardsBulk(xStudioId: string, requestBody: BulkCreateGiftCardRequestDto): CancelablePromise<SuccessResponse>;
43
+ static getGiftCard(xStudioId: string, giftCardId: string): CancelablePromise<GiftCardResponseDto>;
44
44
  /**
45
45
  * Update a gift card
46
46
  * Update a gift card for the given studio ID
@@ -60,4 +60,13 @@ export declare class FeaturesGiftCardsService {
60
60
  * @throws ApiError
61
61
  */
62
62
  static deleteGiftCard(xStudioId: string, giftCardId: string): CancelablePromise<SuccessResponse>;
63
+ /**
64
+ * Create new gift cards
65
+ * Create new gift cards for the given studio ID
66
+ * @param xStudioId The ID of the studio
67
+ * @param requestBody Create bulk gift cards payload
68
+ * @returns SuccessResponse Gift cards created successfully
69
+ * @throws ApiError
70
+ */
71
+ static createGiftCardsBulk(xStudioId: string, requestBody: BulkCreateGiftCardRequestDto): CancelablePromise<SuccessResponse>;
63
72
  }
@@ -61,22 +61,23 @@ export class FeaturesGiftCardsService {
61
61
  });
62
62
  }
63
63
  /**
64
- * Create new gift cards
65
- * Create new gift cards for the given studio ID
64
+ * Fetch the gift card
65
+ * Fetch the gift card for the given studio ID
66
66
  * @param xStudioId The ID of the studio
67
- * @param requestBody Create bulk gift cards payload
68
- * @returns SuccessResponse Gift cards created successfully
67
+ * @param giftCardId The ID of the gift card
68
+ * @returns GiftCardResponseDto Gift card fetched successfully
69
69
  * @throws ApiError
70
70
  */
71
- static createGiftCardsBulk(xStudioId, requestBody) {
71
+ static getGiftCard(xStudioId, giftCardId) {
72
72
  return __request(OpenAPI, {
73
- method: 'POST',
74
- url: '/features/gift-cards/bulk-create',
73
+ method: 'GET',
74
+ url: '/features/gift-cards/{giftCardId}',
75
+ path: {
76
+ 'giftCardId': giftCardId,
77
+ },
75
78
  headers: {
76
79
  'x-studio-id': xStudioId,
77
80
  },
78
- body: requestBody,
79
- mediaType: 'application/json',
80
81
  });
81
82
  }
82
83
  /**
@@ -122,4 +123,23 @@ export class FeaturesGiftCardsService {
122
123
  },
123
124
  });
124
125
  }
126
+ /**
127
+ * Create new gift cards
128
+ * Create new gift cards for the given studio ID
129
+ * @param xStudioId The ID of the studio
130
+ * @param requestBody Create bulk gift cards payload
131
+ * @returns SuccessResponse Gift cards created successfully
132
+ * @throws ApiError
133
+ */
134
+ static createGiftCardsBulk(xStudioId, requestBody) {
135
+ return __request(OpenAPI, {
136
+ method: 'POST',
137
+ url: '/features/gift-cards/bulk-create',
138
+ headers: {
139
+ 'x-studio-id': xStudioId,
140
+ },
141
+ body: requestBody,
142
+ mediaType: 'application/json',
143
+ });
144
+ }
125
145
  }
@@ -22,6 +22,7 @@ import type { ShowSectionDetail } from '../models/ShowSectionDetail';
22
22
  import type { ShowStatDetail } from '../models/ShowStatDetail';
23
23
  import type { ShowTicketSectionListResponseDto } from '../models/ShowTicketSectionListResponseDto';
24
24
  import type { SinglePerformerRequestDto } from '../models/SinglePerformerRequestDto';
25
+ import type { StopShowRequestDto } from '../models/StopShowRequestDto';
25
26
  import type { SuccessResponse } from '../models/SuccessResponse';
26
27
  import type { VideoStreamResponseDto } from '../models/VideoStreamResponseDto';
27
28
  import type { VirtualStreamResponseDto } from '../models/VirtualStreamResponseDto';
@@ -251,6 +252,16 @@ export declare class ShowsService {
251
252
  * @throws ApiError
252
253
  */
253
254
  static updatePerformers(xStudioId: string, requestBody: SinglePerformerRequestDto): CancelablePromise<SuccessResponse>;
255
+ /**
256
+ * Stop sale for a show
257
+ * To stop the sale of tickets for a specific show
258
+ * @param xStudioId The ID of the studio
259
+ * @param showId The ID of the show
260
+ * @param requestBody Stop sale for a show
261
+ * @returns SuccessResponse Show sale stopped successfully
262
+ * @throws ApiError
263
+ */
264
+ static stopSale(xStudioId: string, showId: string, requestBody: StopShowRequestDto): CancelablePromise<SuccessResponse>;
254
265
  /**
255
266
  * Remove show performer
256
267
  * To remove the performer of the show
@@ -486,6 +486,29 @@ export class ShowsService {
486
486
  mediaType: 'application/json',
487
487
  });
488
488
  }
489
+ /**
490
+ * Stop sale for a show
491
+ * To stop the sale of tickets for a specific show
492
+ * @param xStudioId The ID of the studio
493
+ * @param showId The ID of the show
494
+ * @param requestBody Stop sale for a show
495
+ * @returns SuccessResponse Show sale stopped successfully
496
+ * @throws ApiError
497
+ */
498
+ static stopSale(xStudioId, showId, requestBody) {
499
+ return __request(OpenAPI, {
500
+ method: 'PUT',
501
+ url: '/shows/{showId}/stop-sale',
502
+ path: {
503
+ 'showId': showId,
504
+ },
505
+ headers: {
506
+ 'x-studio-id': xStudioId,
507
+ },
508
+ body: requestBody,
509
+ mediaType: 'application/json',
510
+ });
511
+ }
489
512
  /**
490
513
  * Remove show performer
491
514
  * To remove the performer of the show
@@ -240,6 +240,7 @@ export type { SinglePerformerRequestDto } from './models/SinglePerformerRequestD
240
240
  export type { SoldTicketsResponseDto } from './models/SoldTicketsResponseDto';
241
241
  export type { StartImageUploadRequestDto } from './models/StartImageUploadRequestDto';
242
242
  export type { StartImageUploadResponseDto } from './models/StartImageUploadResponseDto';
243
+ export type { StopShowRequestDto } from './models/StopShowRequestDto';
243
244
  export type { StringValidation } from './models/StringValidation';
244
245
  export type { StripeResponseDto } from './models/StripeResponseDto';
245
246
  export type { StripeSettingsResponseDto } from './models/StripeSettingsResponseDto';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@drttix/drt-sdk",
3
3
  "description": "DRT SDK",
4
- "version": "0.2.8",
4
+ "version": "0.2.91",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
7
7
  "types": "dist/esm/index.d.ts",
@@ -23,5 +23,8 @@
23
23
  "devDependencies": {
24
24
  "@types/node": "^24.0.4",
25
25
  "typescript": "^5.8.3"
26
+ },
27
+ "dependencies": {
28
+ "@drttix/drt-sdk": "^0.2.9"
26
29
  }
27
30
  }
@@ -21,7 +21,7 @@ export type OpenAPIConfig = {
21
21
 
22
22
  export const OpenAPI: OpenAPIConfig = {
23
23
  BASE: '',
24
- VERSION: '20260213.2',
24
+ VERSION: '20260218.1',
25
25
  WITH_CREDENTIALS: false,
26
26
  CREDENTIALS: 'include',
27
27
  TOKEN: undefined,
@@ -249,6 +249,7 @@ export type { SinglePerformerRequestDto } from './models/SinglePerformerRequestD
249
249
  export type { SoldTicketsResponseDto } from './models/SoldTicketsResponseDto';
250
250
  export type { StartImageUploadRequestDto } from './models/StartImageUploadRequestDto';
251
251
  export type { StartImageUploadResponseDto } from './models/StartImageUploadResponseDto';
252
+ export type { StopShowRequestDto } from './models/StopShowRequestDto';
252
253
  export type { StringValidation } from './models/StringValidation';
253
254
  export type { StripeResponseDto } from './models/StripeResponseDto';
254
255
  export type { StripeSettingsResponseDto } from './models/StripeSettingsResponseDto';
@@ -6,10 +6,10 @@ export type BulkCreateGiftCardRequestDto = {
6
6
  balance: string;
7
7
  numCodes: number;
8
8
  emailName: string;
9
- emails: Array<any[]>;
9
+ emails: Array<string>;
10
10
  errorOnCollisionEmail: number;
11
11
  errorOnCollisionName: number;
12
- names: Array<any[]>;
12
+ names: Array<string>;
13
13
  message: string;
14
14
  sendWhen: string;
15
15
  dateSend: string;
@@ -10,6 +10,8 @@ export type GiftCardResponseDto = {
10
10
  email: string | null;
11
11
  balance: number | null;
12
12
  loopType: string;
13
+ message: string;
14
+ adminNote: string;
13
15
  dateVoided: string | null;
14
16
  isHouseCard: number;
15
17
  dateCreated: string | null;
@@ -9,5 +9,7 @@ export type OrderEmailBuyersRequestDto = {
9
9
  bodyType: string;
10
10
  sendWhen: string;
11
11
  dateToSchedule: string;
12
+ link: number;
13
+ download: number;
12
14
  };
13
15
 
@@ -25,6 +25,9 @@ export type RefundDetailResponseDto = {
25
25
  dateRefunded: string;
26
26
  wasAutoApproved: number;
27
27
  completedRefundId: number;
28
+ balance: number;
29
+ weeklyAmt: number;
30
+ lastWeeklyAmt: number;
28
31
  orderDetails: Array<RefundOrderDetail>;
29
32
  };
30
33
 
@@ -5,8 +5,10 @@
5
5
  import type { OrderDetails } from './OrderDetails';
6
6
  export type RefundResponseDto = {
7
7
  orderId: number;
8
+ id: number;
8
9
  amountReqested?: number;
9
10
  amountApproved?: number;
11
+ amountRefunded: number;
10
12
  dateCreated: string;
11
13
  dateApprovedClient?: string;
12
14
  dateApprovedInternal?: string;
@@ -58,6 +58,8 @@ export type ShowDetailDto = {
58
58
  numResSections: number;
59
59
  chargebackProtectionEnabled: number;
60
60
  receiptMessage: string;
61
+ repName: string;
62
+ repEmail: string;
61
63
  dateMaxOrderSeatsEnd: string;
62
64
  autoDiscounts: Array<AutoDiscounts>;
63
65
  refundSetting: Array<RefundSetting>;
@@ -0,0 +1,10 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export type StopShowRequestDto = {
6
+ mode: string;
7
+ soldOutText: string;
8
+ enableWaitlist: number;
9
+ };
10
+
@@ -5,11 +5,15 @@
5
5
  export type TicketResponseDto = {
6
6
  year: string;
7
7
  date: string;
8
- orders: number;
9
- seats: number;
10
- collected: number;
11
- ticketFee: number;
12
- tax: number;
8
+ value_orders: number;
9
+ num_orders: number;
10
+ num_seats: number;
11
+ value_seats: number;
12
+ value_tax: number;
13
+ total_service_charge: number;
14
+ net_amount: number;
15
+ includes_sales_tax: number;
16
+ product_tax: number;
13
17
  distro: number;
14
18
  };
15
19
 
@@ -10,11 +10,11 @@ export type UpdateBankingRequestDto = {
10
10
  account: string;
11
11
  accountNumber: string;
12
12
  routingNumber: string;
13
- checkName: number;
14
- echeckEmail: number;
15
- checkAddress: number;
16
- checkCity: number;
17
- checkState: number;
13
+ checkName: string;
14
+ echeckEmail: string;
15
+ checkAddress: string;
16
+ checkCity: string;
17
+ checkState: string;
18
18
  checkPostal: number;
19
19
  };
20
20
 
@@ -80,25 +80,26 @@ export class FeaturesGiftCardsService {
80
80
  });
81
81
  }
82
82
  /**
83
- * Create new gift cards
84
- * Create new gift cards for the given studio ID
83
+ * Fetch the gift card
84
+ * Fetch the gift card for the given studio ID
85
85
  * @param xStudioId The ID of the studio
86
- * @param requestBody Create bulk gift cards payload
87
- * @returns SuccessResponse Gift cards created successfully
86
+ * @param giftCardId The ID of the gift card
87
+ * @returns GiftCardResponseDto Gift card fetched successfully
88
88
  * @throws ApiError
89
89
  */
90
- public static createGiftCardsBulk(
90
+ public static getGiftCard(
91
91
  xStudioId: string,
92
- requestBody: BulkCreateGiftCardRequestDto,
93
- ): CancelablePromise<SuccessResponse> {
92
+ giftCardId: string,
93
+ ): CancelablePromise<GiftCardResponseDto> {
94
94
  return __request(OpenAPI, {
95
- method: 'POST',
96
- url: '/features/gift-cards/bulk-create',
95
+ method: 'GET',
96
+ url: '/features/gift-cards/{giftCardId}',
97
+ path: {
98
+ 'giftCardId': giftCardId,
99
+ },
97
100
  headers: {
98
101
  'x-studio-id': xStudioId,
99
102
  },
100
- body: requestBody,
101
- mediaType: 'application/json',
102
103
  });
103
104
  }
104
105
  /**
@@ -151,4 +152,26 @@ export class FeaturesGiftCardsService {
151
152
  },
152
153
  });
153
154
  }
155
+ /**
156
+ * Create new gift cards
157
+ * Create new gift cards for the given studio ID
158
+ * @param xStudioId The ID of the studio
159
+ * @param requestBody Create bulk gift cards payload
160
+ * @returns SuccessResponse Gift cards created successfully
161
+ * @throws ApiError
162
+ */
163
+ public static createGiftCardsBulk(
164
+ xStudioId: string,
165
+ requestBody: BulkCreateGiftCardRequestDto,
166
+ ): CancelablePromise<SuccessResponse> {
167
+ return __request(OpenAPI, {
168
+ method: 'POST',
169
+ url: '/features/gift-cards/bulk-create',
170
+ headers: {
171
+ 'x-studio-id': xStudioId,
172
+ },
173
+ body: requestBody,
174
+ mediaType: 'application/json',
175
+ });
176
+ }
154
177
  }
@@ -26,6 +26,7 @@ import type { ShowSectionDetail } from '../models/ShowSectionDetail';
26
26
  import type { ShowStatDetail } from '../models/ShowStatDetail';
27
27
  import type { ShowTicketSectionListResponseDto } from '../models/ShowTicketSectionListResponseDto';
28
28
  import type { SinglePerformerRequestDto } from '../models/SinglePerformerRequestDto';
29
+ import type { StopShowRequestDto } from '../models/StopShowRequestDto';
29
30
  import type { SuccessResponse } from '../models/SuccessResponse';
30
31
  import type { VideoStreamResponseDto } from '../models/VideoStreamResponseDto';
31
32
  import type { VirtualStreamResponseDto } from '../models/VirtualStreamResponseDto';
@@ -592,6 +593,33 @@ export class ShowsService {
592
593
  mediaType: 'application/json',
593
594
  });
594
595
  }
596
+ /**
597
+ * Stop sale for a show
598
+ * To stop the sale of tickets for a specific show
599
+ * @param xStudioId The ID of the studio
600
+ * @param showId The ID of the show
601
+ * @param requestBody Stop sale for a show
602
+ * @returns SuccessResponse Show sale stopped successfully
603
+ * @throws ApiError
604
+ */
605
+ public static stopSale(
606
+ xStudioId: string,
607
+ showId: string,
608
+ requestBody: StopShowRequestDto,
609
+ ): CancelablePromise<SuccessResponse> {
610
+ return __request(OpenAPI, {
611
+ method: 'PUT',
612
+ url: '/shows/{showId}/stop-sale',
613
+ path: {
614
+ 'showId': showId,
615
+ },
616
+ headers: {
617
+ 'x-studio-id': xStudioId,
618
+ },
619
+ body: requestBody,
620
+ mediaType: 'application/json',
621
+ });
622
+ }
595
623
  /**
596
624
  * Remove show performer
597
625
  * To remove the performer of the show
@@ -243,6 +243,7 @@ export type { SinglePerformerRequestDto } from './models/SinglePerformerRequestD
243
243
  export type { SoldTicketsResponseDto } from './models/SoldTicketsResponseDto';
244
244
  export type { StartImageUploadRequestDto } from './models/StartImageUploadRequestDto';
245
245
  export type { StartImageUploadResponseDto } from './models/StartImageUploadResponseDto';
246
+ export type { StopShowRequestDto } from './models/StopShowRequestDto';
246
247
  export type { StringValidation } from './models/StringValidation';
247
248
  export type { StripeResponseDto } from './models/StripeResponseDto';
248
249
  export type { StripeSettingsResponseDto } from './models/StripeSettingsResponseDto';