@drttix/drt-sdk 2.0.11 → 2.1.0

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 (118) hide show
  1. package/dist/cjs/src/generated/portal/core/OpenAPI.js +1 -1
  2. package/dist/cjs/src/generated/portal/index.d.ts +13 -0
  3. package/dist/cjs/src/generated/portal/index.js +4 -2
  4. package/dist/cjs/src/generated/portal/models/AppSkinResponseDto.d.ts +32 -0
  5. package/dist/cjs/src/generated/portal/models/AppSkinResponseDto.js +2 -0
  6. package/dist/cjs/src/generated/portal/models/AppSkinSiteThemeDto.d.ts +11 -0
  7. package/dist/cjs/src/generated/portal/models/AppSkinSiteThemeDto.js +2 -0
  8. package/dist/cjs/src/generated/portal/models/AppSkinValuesDto.d.ts +18 -0
  9. package/dist/cjs/src/generated/portal/models/AppSkinValuesDto.js +2 -0
  10. package/dist/cjs/src/generated/portal/models/CouponDetailResponseDto.d.ts +8 -0
  11. package/dist/cjs/src/generated/portal/models/CouponImportCheckResponseDto.d.ts +13 -0
  12. package/dist/cjs/src/generated/portal/models/CouponImportCheckResponseDto.js +2 -0
  13. package/dist/cjs/src/generated/portal/models/CouponImportRowDto.d.ts +16 -0
  14. package/dist/cjs/src/generated/portal/models/CouponImportRowDto.js +2 -0
  15. package/dist/cjs/src/generated/portal/models/ExecuteSeatExchangeRequestDto.d.ts +4 -0
  16. package/dist/cjs/src/generated/portal/models/ImportCheckRequestDto.d.ts +6 -0
  17. package/dist/cjs/src/generated/portal/models/ImportCheckRequestDto.js +2 -0
  18. package/dist/cjs/src/generated/portal/models/ImportColumnDto.d.ts +30 -0
  19. package/dist/cjs/src/generated/portal/models/ImportColumnDto.js +22 -0
  20. package/dist/cjs/src/generated/portal/models/ImportFormatResponseDto.d.ts +8 -0
  21. package/dist/cjs/src/generated/portal/models/ImportFormatResponseDto.js +2 -0
  22. package/dist/cjs/src/generated/portal/models/ImportIssueDto.d.ts +13 -0
  23. package/dist/cjs/src/generated/portal/models/ImportIssueDto.js +2 -0
  24. package/dist/cjs/src/generated/portal/models/OrderRecalculateRequestDto.d.ts +4 -0
  25. package/dist/cjs/src/generated/portal/models/PatronSendMailResponseDto.d.ts +6 -0
  26. package/dist/cjs/src/generated/portal/models/PatronSendMailResponseDto.js +2 -0
  27. package/dist/cjs/src/generated/portal/models/PriorityImportCheckResponseDto.d.ts +13 -0
  28. package/dist/cjs/src/generated/portal/models/PriorityImportCheckResponseDto.js +2 -0
  29. package/dist/cjs/src/generated/portal/models/PriorityImportRowDto.d.ts +16 -0
  30. package/dist/cjs/src/generated/portal/models/PriorityImportRowDto.js +2 -0
  31. package/dist/cjs/src/generated/portal/models/RecalculateOrderResponseDto.d.ts +12 -0
  32. package/dist/cjs/src/generated/portal/models/SelectedSeatExchangeResponseDto.d.ts +4 -0
  33. package/dist/cjs/src/generated/portal/models/UpdateAppSkinRequestDto.d.ts +18 -0
  34. package/dist/cjs/src/generated/portal/models/UpdateAppSkinRequestDto.js +2 -0
  35. package/dist/cjs/src/generated/portal/models/UpdateDiscountCodeRequestDto.d.ts +8 -0
  36. package/dist/cjs/src/generated/portal/services/ClientToolsPatronDatabaseService.d.ts +3 -2
  37. package/dist/cjs/src/generated/portal/services/ClientToolsPatronDatabaseService.js +1 -1
  38. package/dist/cjs/src/generated/portal/services/ClientToolsThemeBuilderService.d.ts +27 -0
  39. package/dist/cjs/src/generated/portal/services/ClientToolsThemeBuilderService.js +51 -0
  40. package/dist/cjs/src/generated/portal/services/FeaturesDiscountsService.d.ts +20 -0
  41. package/dist/cjs/src/generated/portal/services/FeaturesDiscountsService.js +35 -0
  42. package/dist/cjs/src/generated/portal/services/FeaturesPriorityService.d.ts +20 -0
  43. package/dist/cjs/src/generated/portal/services/FeaturesPriorityService.js +35 -0
  44. package/dist/cjs/src/generated/portal/types.d.ts +12 -0
  45. package/dist/cjs/src/generated/scanner/core/OpenAPI.js +1 -1
  46. package/dist/esm/src/generated/portal/core/OpenAPI.js +1 -1
  47. package/dist/esm/src/generated/portal/index.d.ts +13 -0
  48. package/dist/esm/src/generated/portal/index.js +1 -0
  49. package/dist/esm/src/generated/portal/models/AppSkinResponseDto.d.ts +32 -0
  50. package/dist/esm/src/generated/portal/models/AppSkinResponseDto.js +1 -0
  51. package/dist/esm/src/generated/portal/models/AppSkinSiteThemeDto.d.ts +11 -0
  52. package/dist/esm/src/generated/portal/models/AppSkinSiteThemeDto.js +1 -0
  53. package/dist/esm/src/generated/portal/models/AppSkinValuesDto.d.ts +18 -0
  54. package/dist/esm/src/generated/portal/models/AppSkinValuesDto.js +1 -0
  55. package/dist/esm/src/generated/portal/models/CouponDetailResponseDto.d.ts +8 -0
  56. package/dist/esm/src/generated/portal/models/CouponImportCheckResponseDto.d.ts +13 -0
  57. package/dist/esm/src/generated/portal/models/CouponImportCheckResponseDto.js +1 -0
  58. package/dist/esm/src/generated/portal/models/CouponImportRowDto.d.ts +16 -0
  59. package/dist/esm/src/generated/portal/models/CouponImportRowDto.js +1 -0
  60. package/dist/esm/src/generated/portal/models/ExecuteSeatExchangeRequestDto.d.ts +4 -0
  61. package/dist/esm/src/generated/portal/models/ImportCheckRequestDto.d.ts +6 -0
  62. package/dist/esm/src/generated/portal/models/ImportCheckRequestDto.js +1 -0
  63. package/dist/esm/src/generated/portal/models/ImportColumnDto.d.ts +30 -0
  64. package/dist/esm/src/generated/portal/models/ImportColumnDto.js +19 -0
  65. package/dist/esm/src/generated/portal/models/ImportFormatResponseDto.d.ts +8 -0
  66. package/dist/esm/src/generated/portal/models/ImportFormatResponseDto.js +1 -0
  67. package/dist/esm/src/generated/portal/models/ImportIssueDto.d.ts +13 -0
  68. package/dist/esm/src/generated/portal/models/ImportIssueDto.js +1 -0
  69. package/dist/esm/src/generated/portal/models/OrderRecalculateRequestDto.d.ts +4 -0
  70. package/dist/esm/src/generated/portal/models/PatronSendMailResponseDto.d.ts +6 -0
  71. package/dist/esm/src/generated/portal/models/PatronSendMailResponseDto.js +1 -0
  72. package/dist/esm/src/generated/portal/models/PriorityImportCheckResponseDto.d.ts +13 -0
  73. package/dist/esm/src/generated/portal/models/PriorityImportCheckResponseDto.js +1 -0
  74. package/dist/esm/src/generated/portal/models/PriorityImportRowDto.d.ts +16 -0
  75. package/dist/esm/src/generated/portal/models/PriorityImportRowDto.js +1 -0
  76. package/dist/esm/src/generated/portal/models/RecalculateOrderResponseDto.d.ts +12 -0
  77. package/dist/esm/src/generated/portal/models/SelectedSeatExchangeResponseDto.d.ts +4 -0
  78. package/dist/esm/src/generated/portal/models/UpdateAppSkinRequestDto.d.ts +18 -0
  79. package/dist/esm/src/generated/portal/models/UpdateAppSkinRequestDto.js +1 -0
  80. package/dist/esm/src/generated/portal/models/UpdateDiscountCodeRequestDto.d.ts +8 -0
  81. package/dist/esm/src/generated/portal/services/ClientToolsPatronDatabaseService.d.ts +3 -2
  82. package/dist/esm/src/generated/portal/services/ClientToolsPatronDatabaseService.js +1 -1
  83. package/dist/esm/src/generated/portal/services/ClientToolsThemeBuilderService.d.ts +27 -0
  84. package/dist/esm/src/generated/portal/services/ClientToolsThemeBuilderService.js +51 -0
  85. package/dist/esm/src/generated/portal/services/FeaturesDiscountsService.d.ts +20 -0
  86. package/dist/esm/src/generated/portal/services/FeaturesDiscountsService.js +35 -0
  87. package/dist/esm/src/generated/portal/services/FeaturesPriorityService.d.ts +20 -0
  88. package/dist/esm/src/generated/portal/services/FeaturesPriorityService.js +35 -0
  89. package/dist/esm/src/generated/portal/types.d.ts +12 -0
  90. package/dist/esm/src/generated/scanner/core/OpenAPI.js +1 -1
  91. package/package.json +1 -1
  92. package/src/generated/portal/core/OpenAPI.ts +1 -1
  93. package/src/generated/portal/index.ts +13 -0
  94. package/src/generated/portal/models/AppSkinResponseDto.ts +37 -0
  95. package/src/generated/portal/models/AppSkinSiteThemeDto.ts +16 -0
  96. package/src/generated/portal/models/AppSkinValuesDto.ts +23 -0
  97. package/src/generated/portal/models/CouponDetailResponseDto.ts +8 -0
  98. package/src/generated/portal/models/CouponImportCheckResponseDto.ts +18 -0
  99. package/src/generated/portal/models/CouponImportRowDto.ts +21 -0
  100. package/src/generated/portal/models/ExecuteSeatExchangeRequestDto.ts +4 -0
  101. package/src/generated/portal/models/ImportCheckRequestDto.ts +11 -0
  102. package/src/generated/portal/models/ImportColumnDto.ts +35 -0
  103. package/src/generated/portal/models/ImportFormatResponseDto.ts +13 -0
  104. package/src/generated/portal/models/ImportIssueDto.ts +18 -0
  105. package/src/generated/portal/models/OrderRecalculateRequestDto.ts +4 -0
  106. package/src/generated/portal/models/PatronSendMailResponseDto.ts +11 -0
  107. package/src/generated/portal/models/PriorityImportCheckResponseDto.ts +18 -0
  108. package/src/generated/portal/models/PriorityImportRowDto.ts +21 -0
  109. package/src/generated/portal/models/RecalculateOrderResponseDto.ts +12 -0
  110. package/src/generated/portal/models/SelectedSeatExchangeResponseDto.ts +4 -0
  111. package/src/generated/portal/models/UpdateAppSkinRequestDto.ts +23 -0
  112. package/src/generated/portal/models/UpdateDiscountCodeRequestDto.ts +8 -0
  113. package/src/generated/portal/services/ClientToolsPatronDatabaseService.ts +3 -2
  114. package/src/generated/portal/services/ClientToolsThemeBuilderService.ts +60 -0
  115. package/src/generated/portal/services/FeaturesDiscountsService.ts +43 -0
  116. package/src/generated/portal/services/FeaturesPriorityService.ts +43 -0
  117. package/src/generated/portal/types.ts +12 -0
  118. package/src/generated/scanner/core/OpenAPI.ts +1 -1
@@ -0,0 +1,18 @@
1
+ export type UpdateAppSkinRequestDto = {
2
+ color1Bg?: string;
3
+ color1Text?: string;
4
+ color2Bg?: string;
5
+ color2Text?: string;
6
+ colorNeutralBg?: string;
7
+ colorNeutralText?: string;
8
+ color1Shade?: string;
9
+ colorValid?: string;
10
+ colorPrevious?: string;
11
+ colorInvalid?: string;
12
+ colorButtonBg?: string;
13
+ colorButtonText?: string;
14
+ colorGoldenTicket?: string;
15
+ colorGrayText?: string;
16
+ backgroundHref?: string;
17
+ logoHref?: string;
18
+ };
@@ -22,4 +22,12 @@ export type UpdateDiscountCodeRequestDto = {
22
22
  type: string;
23
23
  amount: number;
24
24
  applyOrder: string;
25
+ /**
26
+ * The coupon's group code. Omit to leave the group code unchanged.
27
+ */
28
+ groupCodeId?: number;
29
+ /**
30
+ * The group code's max uses, written when groupCodeId is given. Null means unlimited.
31
+ */
32
+ groupCodeMaxUses?: number | null;
25
33
  };
@@ -8,6 +8,7 @@ import type { DiscountAccessRequestDto } from '../models/DiscountAccessRequestDt
8
8
  import type { PatronAccessRequestDto } from '../models/PatronAccessRequestDto';
9
9
  import type { PatronCodeSendMailRequestDto } from '../models/PatronCodeSendMailRequestDto';
10
10
  import type { PatronCodesResponseDto } from '../models/PatronCodesResponseDto';
11
+ import type { PatronSendMailResponseDto } from '../models/PatronSendMailResponseDto';
11
12
  import type { PatronShowGroupResponseDto } from '../models/PatronShowGroupResponseDto';
12
13
  import type { PatronStatsResponseDto } from '../models/PatronStatsResponseDto';
13
14
  import type { SinglePatronCodeResponseDto } from '../models/SinglePatronCodeResponseDto';
@@ -111,10 +112,10 @@ export declare class ClientToolsPatronDatabaseService {
111
112
  * Send mail for patron codes
112
113
  * @param xStudioId The ID of the studio
113
114
  * @param requestBody Payload to send mail for patron codes
114
- * @returns SuccessResponse Mail sent successfully
115
+ * @returns PatronSendMailResponseDto Mail sent successfully
115
116
  * @throws ApiError
116
117
  */
117
- static sendMail(xStudioId: string, requestBody: PatronCodeSendMailRequestDto): CancelablePromise<SuccessResponse>;
118
+ static sendMail(xStudioId: string, requestBody: PatronCodeSendMailRequestDto): CancelablePromise<PatronSendMailResponseDto>;
118
119
  /**
119
120
  * Provide discount access for patron codes
120
121
  * Provide discount access for patron codes
@@ -191,7 +191,7 @@ export class ClientToolsPatronDatabaseService {
191
191
  * Send mail for patron codes
192
192
  * @param xStudioId The ID of the studio
193
193
  * @param requestBody Payload to send mail for patron codes
194
- * @returns SuccessResponse Mail sent successfully
194
+ * @returns PatronSendMailResponseDto Mail sent successfully
195
195
  * @throws ApiError
196
196
  */
197
197
  static sendMail(xStudioId, requestBody) {
@@ -1,9 +1,11 @@
1
+ import type { AppSkinResponseDto } from '../models/AppSkinResponseDto';
1
2
  import type { StartImageUploadRequestDto } from '../models/StartImageUploadRequestDto';
2
3
  import type { StartImageUploadResponseDto } from '../models/StartImageUploadResponseDto';
3
4
  import type { SuccessResponse } from '../models/SuccessResponse';
4
5
  import type { ThemeBannerImageResponseDto } from '../models/ThemeBannerImageResponseDto';
5
6
  import type { ThemeDesignResponseDto } from '../models/ThemeDesignResponseDto';
6
7
  import type { ThemeImageFormat } from '../models/ThemeImageFormat';
8
+ import type { UpdateAppSkinRequestDto } from '../models/UpdateAppSkinRequestDto';
7
9
  import type { UpdateImageUploadRequestDto } from '../models/UpdateImageUploadRequestDto';
8
10
  import type { UpdateThemeDesignRequestDto } from '../models/UpdateThemeDesignRequestDto';
9
11
  import type { CancelablePromise } from '../core/CancelablePromise';
@@ -60,4 +62,29 @@ export declare class ClientToolsThemeBuilderService {
60
62
  * @throws ApiError
61
63
  */
62
64
  static updateImageUrl(xStudioId: string, format: ThemeImageFormat, width: number, height: number, requestBody: UpdateImageUploadRequestDto): CancelablePromise<SuccessResponse>;
65
+ /**
66
+ * Fetch the scanner app skin
67
+ * The colours, background and logo the studio's scanner apps use, with the site defaults they fall back to and the ticketing theme mapped onto the same fields.
68
+ * @param xStudioId The ID of the studio
69
+ * @returns AppSkinResponseDto App skin fetched successfully
70
+ * @throws ApiError
71
+ */
72
+ static getAppSkin(xStudioId: string): CancelablePromise<AppSkinResponseDto>;
73
+ /**
74
+ * Update the scanner app skin
75
+ * Stores the whole skin for the studio. A field left out or blank falls back to the site default in the apps.
76
+ * @param xStudioId The ID of the studio
77
+ * @param requestBody Payload to update the app skin
78
+ * @returns SuccessResponse App skin updated successfully
79
+ * @throws ApiError
80
+ */
81
+ static updateAppSkin(xStudioId: string, requestBody: UpdateAppSkinRequestDto): CancelablePromise<SuccessResponse>;
82
+ /**
83
+ * Remove the scanner app skin
84
+ * Drops the studio's skin so the apps go back to the site defaults.
85
+ * @param xStudioId The ID of the studio
86
+ * @returns SuccessResponse App skin removed successfully
87
+ * @throws ApiError
88
+ */
89
+ static deleteAppSkin(xStudioId: string): CancelablePromise<SuccessResponse>;
63
90
  }
@@ -112,4 +112,55 @@ export class ClientToolsThemeBuilderService {
112
112
  mediaType: 'application/json',
113
113
  });
114
114
  }
115
+ /**
116
+ * Fetch the scanner app skin
117
+ * The colours, background and logo the studio's scanner apps use, with the site defaults they fall back to and the ticketing theme mapped onto the same fields.
118
+ * @param xStudioId The ID of the studio
119
+ * @returns AppSkinResponseDto App skin fetched successfully
120
+ * @throws ApiError
121
+ */
122
+ static getAppSkin(xStudioId) {
123
+ return __request(OpenAPI, {
124
+ method: 'GET',
125
+ url: '/client-tools/theme-builder/app-skin',
126
+ headers: {
127
+ 'x-studio-id': xStudioId,
128
+ },
129
+ });
130
+ }
131
+ /**
132
+ * Update the scanner app skin
133
+ * Stores the whole skin for the studio. A field left out or blank falls back to the site default in the apps.
134
+ * @param xStudioId The ID of the studio
135
+ * @param requestBody Payload to update the app skin
136
+ * @returns SuccessResponse App skin updated successfully
137
+ * @throws ApiError
138
+ */
139
+ static updateAppSkin(xStudioId, requestBody) {
140
+ return __request(OpenAPI, {
141
+ method: 'PUT',
142
+ url: '/client-tools/theme-builder/app-skin',
143
+ headers: {
144
+ 'x-studio-id': xStudioId,
145
+ },
146
+ body: requestBody,
147
+ mediaType: 'application/json',
148
+ });
149
+ }
150
+ /**
151
+ * Remove the scanner app skin
152
+ * Drops the studio's skin so the apps go back to the site defaults.
153
+ * @param xStudioId The ID of the studio
154
+ * @returns SuccessResponse App skin removed successfully
155
+ * @throws ApiError
156
+ */
157
+ static deleteAppSkin(xStudioId) {
158
+ return __request(OpenAPI, {
159
+ method: 'DELETE',
160
+ url: '/client-tools/theme-builder/app-skin',
161
+ headers: {
162
+ 'x-studio-id': xStudioId,
163
+ },
164
+ });
165
+ }
115
166
  }
@@ -2,11 +2,14 @@ import type { BulkEditCouponRequestDto } from '../models/BulkEditCouponRequestDt
2
2
  import type { CouponDataResponseDto } from '../models/CouponDataResponseDto';
3
3
  import type { CouponDetailResponseDto } from '../models/CouponDetailResponseDto';
4
4
  import type { CouponFilterResponseDto } from '../models/CouponFilterResponseDto';
5
+ import type { CouponImportCheckResponseDto } from '../models/CouponImportCheckResponseDto';
5
6
  import type { CreateCodesResponseDto } from '../models/CreateCodesResponseDto';
6
7
  import type { CustomLogicResponseDto } from '../models/CustomLogicResponseDto';
7
8
  import type { GenerateCodeRequestDto } from '../models/GenerateCodeRequestDto';
8
9
  import type { GenerateGroupCodeRequestDto } from '../models/GenerateGroupCodeRequestDto';
9
10
  import type { GroupCodeResponseDto } from '../models/GroupCodeResponseDto';
11
+ import type { ImportCheckRequestDto } from '../models/ImportCheckRequestDto';
12
+ import type { ImportFormatResponseDto } from '../models/ImportFormatResponseDto';
10
13
  import type { ResendMailRequestDto } from '../models/ResendMailRequestDto';
11
14
  import type { SuccessResponse } from '../models/SuccessResponse';
12
15
  import type { UpdateDiscountCodeRequestDto } from '../models/UpdateDiscountCodeRequestDto';
@@ -49,6 +52,23 @@ export declare class FeaturesDiscountsService {
49
52
  * @throws ApiError
50
53
  */
51
54
  static getCouponData(xStudioId: string): CancelablePromise<CouponDataResponseDto>;
55
+ /**
56
+ * Coupon spreadsheet format
57
+ * Every column the coupon import reads, with the exact text each choice cell may hold for this studio (its shows, groups, types and custom discounts).
58
+ * @param xStudioId The ID of the studio
59
+ * @returns ImportFormatResponseDto The coupon spreadsheet columns and the exact options each accepts
60
+ * @throws ApiError
61
+ */
62
+ static getCouponImportFormat(xStudioId: string): CancelablePromise<ImportFormatResponseDto>;
63
+ /**
64
+ * Check a coupon spreadsheet
65
+ * Checks every cell of every row against the import format and the create-code rules, and the batch for code issues. Writes nothing; returns the create-code request for each row.
66
+ * @param xStudioId The ID of the studio
67
+ * @param requestBody The coupon spreadsheet, every row as text
68
+ * @returns CouponImportCheckResponseDto Every row of the file checked; nothing is written
69
+ * @throws ApiError
70
+ */
71
+ static checkCouponImport(xStudioId: string, requestBody: ImportCheckRequestDto): CancelablePromise<CouponImportCheckResponseDto>;
52
72
  /**
53
73
  * Fetch the available coupon data
54
74
  * Fetch the available coupon data details
@@ -73,6 +73,41 @@ export class FeaturesDiscountsService {
73
73
  },
74
74
  });
75
75
  }
76
+ /**
77
+ * Coupon spreadsheet format
78
+ * Every column the coupon import reads, with the exact text each choice cell may hold for this studio (its shows, groups, types and custom discounts).
79
+ * @param xStudioId The ID of the studio
80
+ * @returns ImportFormatResponseDto The coupon spreadsheet columns and the exact options each accepts
81
+ * @throws ApiError
82
+ */
83
+ static getCouponImportFormat(xStudioId) {
84
+ return __request(OpenAPI, {
85
+ method: 'GET',
86
+ url: '/features/discounts/import-format',
87
+ headers: {
88
+ 'x-studio-id': xStudioId,
89
+ },
90
+ });
91
+ }
92
+ /**
93
+ * Check a coupon spreadsheet
94
+ * Checks every cell of every row against the import format and the create-code rules, and the batch for code issues. Writes nothing; returns the create-code request for each row.
95
+ * @param xStudioId The ID of the studio
96
+ * @param requestBody The coupon spreadsheet, every row as text
97
+ * @returns CouponImportCheckResponseDto Every row of the file checked; nothing is written
98
+ * @throws ApiError
99
+ */
100
+ static checkCouponImport(xStudioId, requestBody) {
101
+ return __request(OpenAPI, {
102
+ method: 'POST',
103
+ url: '/features/discounts/import-check',
104
+ headers: {
105
+ 'x-studio-id': xStudioId,
106
+ },
107
+ body: requestBody,
108
+ mediaType: 'application/json',
109
+ });
110
+ }
76
111
  /**
77
112
  * Fetch the available coupon data
78
113
  * Fetch the available coupon data details
@@ -6,6 +6,9 @@ import type { CreatePriorityCodeRequestDto } from '../models/CreatePriorityCodeR
6
6
  import type { DeleteCodesRequestDto } from '../models/DeleteCodesRequestDto';
7
7
  import type { ExpireHiddenCodesRequestDto } from '../models/ExpireHiddenCodesRequestDto';
8
8
  import type { HiddenCodeResponseDto } from '../models/HiddenCodeResponseDto';
9
+ import type { ImportCheckRequestDto } from '../models/ImportCheckRequestDto';
10
+ import type { ImportFormatResponseDto } from '../models/ImportFormatResponseDto';
11
+ import type { PriorityImportCheckResponseDto } from '../models/PriorityImportCheckResponseDto';
9
12
  import type { SettingsAndWavesResponseDto } from '../models/SettingsAndWavesResponseDto';
10
13
  import type { ShowAndGroupResponseDto } from '../models/ShowAndGroupResponseDto';
11
14
  import type { SuccessResponse } from '../models/SuccessResponse';
@@ -55,6 +58,23 @@ export declare class FeaturesPriorityService {
55
58
  * @throws ApiError
56
59
  */
57
60
  static getCodeUsageDetails(xStudioId: string, codeId: string): CancelablePromise<CodeUsageResponseDto>;
61
+ /**
62
+ * Priority code spreadsheet format
63
+ * Every column the priority code import reads, with the exact text each choice cell may hold for this studio (its shows, groups and waves).
64
+ * @param xStudioId The ID of the studio
65
+ * @returns ImportFormatResponseDto The priority code spreadsheet columns and the exact options each accepts
66
+ * @throws ApiError
67
+ */
68
+ static getPriorityImportFormat(xStudioId: string): CancelablePromise<ImportFormatResponseDto>;
69
+ /**
70
+ * Check a priority code spreadsheet
71
+ * Checks every cell of every row against the import format and the create-code rules, and the batch for code issues. Writes nothing; returns the create-code request for each row.
72
+ * @param xStudioId The ID of the studio
73
+ * @param requestBody The priority code spreadsheet, every row as text
74
+ * @returns PriorityImportCheckResponseDto Every row of the file checked; nothing is written
75
+ * @throws ApiError
76
+ */
77
+ static checkPriorityImport(xStudioId: string, requestBody: ImportCheckRequestDto): CancelablePromise<PriorityImportCheckResponseDto>;
58
78
  /**
59
79
  * Create new code
60
80
  * Create new priority code
@@ -91,6 +91,41 @@ export class FeaturesPriorityService {
91
91
  },
92
92
  });
93
93
  }
94
+ /**
95
+ * Priority code spreadsheet format
96
+ * Every column the priority code import reads, with the exact text each choice cell may hold for this studio (its shows, groups and waves).
97
+ * @param xStudioId The ID of the studio
98
+ * @returns ImportFormatResponseDto The priority code spreadsheet columns and the exact options each accepts
99
+ * @throws ApiError
100
+ */
101
+ static getPriorityImportFormat(xStudioId) {
102
+ return __request(OpenAPI, {
103
+ method: 'GET',
104
+ url: '/features/priority/import-format',
105
+ headers: {
106
+ 'x-studio-id': xStudioId,
107
+ },
108
+ });
109
+ }
110
+ /**
111
+ * Check a priority code spreadsheet
112
+ * Checks every cell of every row against the import format and the create-code rules, and the batch for code issues. Writes nothing; returns the create-code request for each row.
113
+ * @param xStudioId The ID of the studio
114
+ * @param requestBody The priority code spreadsheet, every row as text
115
+ * @returns PriorityImportCheckResponseDto Every row of the file checked; nothing is written
116
+ * @throws ApiError
117
+ */
118
+ static checkPriorityImport(xStudioId, requestBody) {
119
+ return __request(OpenAPI, {
120
+ method: 'POST',
121
+ url: '/features/priority/import-check',
122
+ headers: {
123
+ 'x-studio-id': xStudioId,
124
+ },
125
+ body: requestBody,
126
+ mediaType: 'application/json',
127
+ });
128
+ }
94
129
  /**
95
130
  * Create new code
96
131
  * Create new priority code
@@ -23,6 +23,9 @@ export type { AnswerOrder } from './models/AnswerOrder';
23
23
  export type { ApproveOrderRequestDto } from './models/ApproveOrderRequestDto';
24
24
  export type { ApproveRefundRequestDto } from './models/ApproveRefundRequestDto';
25
25
  export type { ApproveShowRequestDto } from './models/ApproveShowRequestDto';
26
+ export type { AppSkinResponseDto } from './models/AppSkinResponseDto';
27
+ export type { AppSkinSiteThemeDto } from './models/AppSkinSiteThemeDto';
28
+ export type { AppSkinValuesDto } from './models/AppSkinValuesDto';
26
29
  export type { AssignmentOrderDto } from './models/AssignmentOrderDto';
27
30
  export type { AssignSeatsRequestDto } from './models/AssignSeatsRequestDto';
28
31
  export type { AssignWaitlistRequestDto } from './models/AssignWaitlistRequestDto';
@@ -70,6 +73,8 @@ export type { CouponCodeResponseDto } from './models/CouponCodeResponseDto';
70
73
  export type { CouponDataResponseDto } from './models/CouponDataResponseDto';
71
74
  export type { CouponDetailResponseDto } from './models/CouponDetailResponseDto';
72
75
  export type { CouponFilterResponseDto } from './models/CouponFilterResponseDto';
76
+ export type { CouponImportCheckResponseDto } from './models/CouponImportCheckResponseDto';
77
+ export type { CouponImportRowDto } from './models/CouponImportRowDto';
73
78
  export type { CouponType } from './models/CouponType';
74
79
  export type { CreateAccountRequestDto } from './models/CreateAccountRequestDto';
75
80
  export type { CreateAccountResponseDto } from './models/CreateAccountResponseDto';
@@ -180,8 +185,11 @@ export type { IconShowGroupResponseDto } from './models/IconShowGroupResponseDto
180
185
  export type { ImageCategoryResponseDto } from './models/ImageCategoryResponseDto';
181
186
  export type { ImportBlockedSeatRequestDto } from './models/ImportBlockedSeatRequestDto';
182
187
  export type { ImportBlockedSeatResponse } from './models/ImportBlockedSeatResponse';
188
+ export type { ImportCheckRequestDto } from './models/ImportCheckRequestDto';
189
+ export type { ImportFormatResponseDto } from './models/ImportFormatResponseDto';
183
190
  export type { ImportFromEventRequestDto } from './models/ImportFromEventRequestDto';
184
191
  export type { ImportFromEventResponseDto } from './models/ImportFromEventResponseDto';
192
+ export type { ImportIssueDto } from './models/ImportIssueDto';
185
193
  export type { InsertUpdateBlacklistBuyerRequestDto } from './models/InsertUpdateBlacklistBuyerRequestDto';
186
194
  export type { InsertUpdateTimedTriggerRequestDto } from './models/InsertUpdateTimedTriggerRequestDto';
187
195
  export type { IntegratorDetailResponseDto } from './models/IntegratorDetailResponseDto';
@@ -243,6 +251,7 @@ export type { PatronAccessRequestDto } from './models/PatronAccessRequestDto';
243
251
  export type { PatronCodeSendMailRequestDto } from './models/PatronCodeSendMailRequestDto';
244
252
  export type { PatronCodesResponseDto } from './models/PatronCodesResponseDto';
245
253
  export type { PatronManifestDetailResponseDto } from './models/PatronManifestDetailResponseDto';
254
+ export type { PatronSendMailResponseDto } from './models/PatronSendMailResponseDto';
246
255
  export type { PatronShowGroupResponseDto } from './models/PatronShowGroupResponseDto';
247
256
  export type { PatronStatsResponseDto } from './models/PatronStatsResponseDto';
248
257
  export type { PaymentGatewayResponseDto } from './models/PaymentGatewayResponseDto';
@@ -264,6 +273,8 @@ export type { PricingSetBodyDto } from './models/PricingSetBodyDto';
264
273
  export type { PricingSetRuleDto } from './models/PricingSetRuleDto';
265
274
  export type { PriorityCode } from './models/PriorityCode';
266
275
  export type { PriorityCodeResponseDto } from './models/PriorityCodeResponseDto';
276
+ export type { PriorityImportCheckResponseDto } from './models/PriorityImportCheckResponseDto';
277
+ export type { PriorityImportRowDto } from './models/PriorityImportRowDto';
267
278
  export type { PriorityWaveDetail } from './models/PriorityWaveDetail';
268
279
  export type { ProductDetailResponseDto } from './models/ProductDetailResponseDto';
269
280
  export type { ProductIconResponseDto } from './models/ProductIconResponseDto';
@@ -473,6 +484,7 @@ export type { UnavailableSeating } from './models/UnavailableSeating';
473
484
  export type { UnblockSeatsRequestDto } from './models/UnblockSeatsRequestDto';
474
485
  export type { UnsoldTicketsResponseDto } from './models/UnsoldTicketsResponseDto';
475
486
  export type { UpdateAdvancedStudioSettingsRequestDto } from './models/UpdateAdvancedStudioSettingsRequestDto';
487
+ export type { UpdateAppSkinRequestDto } from './models/UpdateAppSkinRequestDto';
476
488
  export type { UpdateBankingRequestDto } from './models/UpdateBankingRequestDto';
477
489
  export type { UpdateCssRequestDto } from './models/UpdateCssRequestDto';
478
490
  export type { UpdateDiscountCodeRequestDto } from './models/UpdateDiscountCodeRequestDto';
@@ -1,6 +1,6 @@
1
1
  export const OpenAPI = {
2
2
  BASE: 'https://api.drttix.com/scanner-v3',
3
- VERSION: '20261029.1',
3
+ VERSION: '20261104.2',
4
4
  WITH_CREDENTIALS: false,
5
5
  CREDENTIALS: 'include',
6
6
  TOKEN: undefined,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@drttix/drt-sdk",
3
3
  "description": "DRT SDK",
4
- "version": "2.0.11",
4
+ "version": "2.1.0",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
7
7
  "types": "dist/esm/index.d.ts",
@@ -21,7 +21,7 @@ export type OpenAPIConfig = {
21
21
 
22
22
  export const OpenAPI: OpenAPIConfig = {
23
23
  BASE: '',
24
- VERSION: '20261104.2',
24
+ VERSION: '20261104.7',
25
25
  WITH_CREDENTIALS: false,
26
26
  CREDENTIALS: 'include',
27
27
  TOKEN: undefined,
@@ -34,6 +34,9 @@ export type { AnswerOrder } from './models/AnswerOrder';
34
34
  export type { ApproveOrderRequestDto } from './models/ApproveOrderRequestDto';
35
35
  export type { ApproveRefundRequestDto } from './models/ApproveRefundRequestDto';
36
36
  export type { ApproveShowRequestDto } from './models/ApproveShowRequestDto';
37
+ export type { AppSkinResponseDto } from './models/AppSkinResponseDto';
38
+ export type { AppSkinSiteThemeDto } from './models/AppSkinSiteThemeDto';
39
+ export type { AppSkinValuesDto } from './models/AppSkinValuesDto';
37
40
  export type { AssignmentOrderDto } from './models/AssignmentOrderDto';
38
41
  export type { AssignSeatsRequestDto } from './models/AssignSeatsRequestDto';
39
42
  export type { AssignWaitlistRequestDto } from './models/AssignWaitlistRequestDto';
@@ -82,6 +85,8 @@ export type { CouponCodeResponseDto } from './models/CouponCodeResponseDto';
82
85
  export type { CouponDataResponseDto } from './models/CouponDataResponseDto';
83
86
  export type { CouponDetailResponseDto } from './models/CouponDetailResponseDto';
84
87
  export type { CouponFilterResponseDto } from './models/CouponFilterResponseDto';
88
+ export type { CouponImportCheckResponseDto } from './models/CouponImportCheckResponseDto';
89
+ export type { CouponImportRowDto } from './models/CouponImportRowDto';
85
90
  export type { CouponType } from './models/CouponType';
86
91
  export type { CreateAccountRequestDto } from './models/CreateAccountRequestDto';
87
92
  export type { CreateAccountResponseDto } from './models/CreateAccountResponseDto';
@@ -196,8 +201,12 @@ export type { IconShowGroupResponseDto } from './models/IconShowGroupResponseDto
196
201
  export type { ImageCategoryResponseDto } from './models/ImageCategoryResponseDto';
197
202
  export type { ImportBlockedSeatRequestDto } from './models/ImportBlockedSeatRequestDto';
198
203
  export type { ImportBlockedSeatResponse } from './models/ImportBlockedSeatResponse';
204
+ export type { ImportCheckRequestDto } from './models/ImportCheckRequestDto';
205
+ export { ImportColumnDto } from './models/ImportColumnDto';
206
+ export type { ImportFormatResponseDto } from './models/ImportFormatResponseDto';
199
207
  export type { ImportFromEventRequestDto } from './models/ImportFromEventRequestDto';
200
208
  export type { ImportFromEventResponseDto } from './models/ImportFromEventResponseDto';
209
+ export type { ImportIssueDto } from './models/ImportIssueDto';
201
210
  export type { InsertUpdateBlacklistBuyerRequestDto } from './models/InsertUpdateBlacklistBuyerRequestDto';
202
211
  export type { InsertUpdateTimedTriggerRequestDto } from './models/InsertUpdateTimedTriggerRequestDto';
203
212
  export type { IntegratorDetailResponseDto } from './models/IntegratorDetailResponseDto';
@@ -259,6 +268,7 @@ export type { PatronAccessRequestDto } from './models/PatronAccessRequestDto';
259
268
  export type { PatronCodeSendMailRequestDto } from './models/PatronCodeSendMailRequestDto';
260
269
  export type { PatronCodesResponseDto } from './models/PatronCodesResponseDto';
261
270
  export type { PatronManifestDetailResponseDto } from './models/PatronManifestDetailResponseDto';
271
+ export type { PatronSendMailResponseDto } from './models/PatronSendMailResponseDto';
262
272
  export type { PatronShowGroupResponseDto } from './models/PatronShowGroupResponseDto';
263
273
  export type { PatronStatsResponseDto } from './models/PatronStatsResponseDto';
264
274
  export type { PaymentGatewayResponseDto } from './models/PaymentGatewayResponseDto';
@@ -280,6 +290,8 @@ export type { PricingSetBodyDto } from './models/PricingSetBodyDto';
280
290
  export type { PricingSetRuleDto } from './models/PricingSetRuleDto';
281
291
  export type { PriorityCode } from './models/PriorityCode';
282
292
  export type { PriorityCodeResponseDto } from './models/PriorityCodeResponseDto';
293
+ export type { PriorityImportCheckResponseDto } from './models/PriorityImportCheckResponseDto';
294
+ export type { PriorityImportRowDto } from './models/PriorityImportRowDto';
283
295
  export type { PriorityWaveDetail } from './models/PriorityWaveDetail';
284
296
  export type { ProductDetailResponseDto } from './models/ProductDetailResponseDto';
285
297
  export type { ProductIconResponseDto } from './models/ProductIconResponseDto';
@@ -498,6 +510,7 @@ export type { UnavailableSeating } from './models/UnavailableSeating';
498
510
  export type { UnblockSeatsRequestDto } from './models/UnblockSeatsRequestDto';
499
511
  export type { UnsoldTicketsResponseDto } from './models/UnsoldTicketsResponseDto';
500
512
  export type { UpdateAdvancedStudioSettingsRequestDto } from './models/UpdateAdvancedStudioSettingsRequestDto';
513
+ export type { UpdateAppSkinRequestDto } from './models/UpdateAppSkinRequestDto';
501
514
  export type { UpdateBankingRequestDto } from './models/UpdateBankingRequestDto';
502
515
  export type { UpdateCssRequestDto } from './models/UpdateCssRequestDto';
503
516
  export type { UpdateDiscountCodeRequestDto } from './models/UpdateDiscountCodeRequestDto';
@@ -0,0 +1,37 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { AppSkinSiteThemeDto } from './AppSkinSiteThemeDto';
6
+ import type { AppSkinValuesDto } from './AppSkinValuesDto';
7
+ export type AppSkinResponseDto = {
8
+ color1Bg: string | null;
9
+ color1Text: string | null;
10
+ color2Bg: string | null;
11
+ color2Text: string | null;
12
+ colorNeutralBg: string | null;
13
+ colorNeutralText: string | null;
14
+ color1Shade: string | null;
15
+ colorValid: string | null;
16
+ colorPrevious: string | null;
17
+ colorInvalid: string | null;
18
+ colorButtonBg: string | null;
19
+ colorButtonText: string | null;
20
+ colorGoldenTicket: string | null;
21
+ colorGrayText: string | null;
22
+ backgroundHref: string | null;
23
+ logoHref: string | null;
24
+ /**
25
+ * A studio-level skin row exists. False means the values above are the site defaults the app is already showing.
26
+ */
27
+ isCustom: boolean;
28
+ /**
29
+ * The ticketing site defaults the app falls back to.
30
+ */
31
+ defaults: AppSkinValuesDto;
32
+ /**
33
+ * The studio's ticketing theme mapped onto the app's fields, for copying the theme into the app skin.
34
+ */
35
+ siteTheme: AppSkinSiteThemeDto | null;
36
+ };
37
+
@@ -0,0 +1,16 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export type AppSkinSiteThemeDto = {
6
+ color1Bg: string | null;
7
+ color1Text: string | null;
8
+ color2Bg: string | null;
9
+ color2Text: string | null;
10
+ /**
11
+ * The ticketing page background when it is an image, including one set through the superuser protected CSS block. Null for a colour or gradient background.
12
+ */
13
+ backgroundHref: string | null;
14
+ logoHref: string | null;
15
+ };
16
+
@@ -0,0 +1,23 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export type AppSkinValuesDto = {
6
+ color1Bg: string | null;
7
+ color1Text: string | null;
8
+ color2Bg: string | null;
9
+ color2Text: string | null;
10
+ colorNeutralBg: string | null;
11
+ colorNeutralText: string | null;
12
+ color1Shade: string | null;
13
+ colorValid: string | null;
14
+ colorPrevious: string | null;
15
+ colorInvalid: string | null;
16
+ colorButtonBg: string | null;
17
+ colorButtonText: string | null;
18
+ colorGoldenTicket: string | null;
19
+ colorGrayText: string | null;
20
+ backgroundHref: string | null;
21
+ logoHref: string | null;
22
+ };
23
+
@@ -44,5 +44,13 @@ export type CouponDetailResponseDto = {
44
44
  customLogicId: number;
45
45
  customLogicName: string | null;
46
46
  aliasDateExpired: string | null;
47
+ /**
48
+ * The group code built from this coupon, if any.
49
+ */
50
+ groupCodeId: number | null;
51
+ /**
52
+ * The group code's max uses. Null means unlimited.
53
+ */
54
+ groupCodeMaxUses: number | null;
47
55
  };
48
56
 
@@ -0,0 +1,18 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { CodeIssuesResponseDto } from './CodeIssuesResponseDto';
6
+ import type { CouponImportRowDto } from './CouponImportRowDto';
7
+ import type { ImportIssueDto } from './ImportIssueDto';
8
+ export type CouponImportCheckResponseDto = {
9
+ /**
10
+ * True when every row can be created as it stands.
11
+ */
12
+ valid: boolean;
13
+ fileIssues: Array<ImportIssueDto>;
14
+ blankRows: number;
15
+ codeIssues: CodeIssuesResponseDto;
16
+ rows: Array<CouponImportRowDto>;
17
+ };
18
+
@@ -0,0 +1,21 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { GenerateCodeRequestDto } from './GenerateCodeRequestDto';
6
+ import type { ImportIssueDto } from './ImportIssueDto';
7
+ export type CouponImportRowDto = {
8
+ row: number;
9
+ issues: Array<ImportIssueDto>;
10
+ show: string;
11
+ /**
12
+ * How many codes the row creates.
13
+ */
14
+ codes: number;
15
+ /**
16
+ * The create-code request for this row; null while it has issues.
17
+ */
18
+ request: GenerateCodeRequestDto | null;
19
+ customDiscount: string;
20
+ };
21
+
@@ -22,5 +22,9 @@ export type ExecuteSeatExchangeRequestDto = {
22
22
  * The client signed off on an exchange outcome that departs from their Support Policies (refund given where the policy gives none, refund withheld where the policy gives one, or the upcharge waived).
23
23
  */
24
24
  policyOverrideAcknowledged?: number;
25
+ /**
26
+ * Primary admins and superusers only: refund this amount instead of the cost difference, on any exchange that does not charge an upcharge. Capped at what the buyer has paid by card, less refunds already made or pending. An amount other than the cost difference needs policyOverrideAcknowledged. Omitted: the executeRefund choice applies.
27
+ */
28
+ refundAmount?: number;
25
29
  };
26
30
 
@@ -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 ImportCheckRequestDto = {
6
+ /**
7
+ * Every row of the first worksheet as text, header row first, exactly as the file holds it.
8
+ */
9
+ rows: Array<Array<string>>;
10
+ };
11
+