@drttix/drt-sdk 0.2.5 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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: '20260211.1',
6
+ VERSION: '20260213.1',
7
7
  WITH_CREDENTIALS: false,
8
8
  CREDENTIALS: 'include',
9
9
  TOKEN: undefined,
@@ -4,4 +4,5 @@ export type NotificationSettingsResponseDto = {
4
4
  description: string;
5
5
  email: string;
6
6
  toggleField: string;
7
+ isEnabled: number;
7
8
  };
@@ -22,4 +22,6 @@ export type ShowsList = {
22
22
  typeName: string;
23
23
  theatreId: number;
24
24
  hash: string;
25
+ receiptMessage: string;
26
+ dateMaxOrderSeatsEnd: string;
25
27
  };
@@ -110,14 +110,14 @@ export declare class FeaturesDiscountsService {
110
110
  */
111
111
  static updateCode(xStudioId: string, requestBody: UpdateDiscountCodeRequestDto): CancelablePromise<SuccessResponse>;
112
112
  /**
113
- * Expire a coupon code
114
- * Expire a coupon code for the studio
113
+ * Expire a group code
114
+ * Expire a group code for the studio
115
115
  * @param xStudioId The ID of the studio
116
- * @param couponId The ID of the coupon
116
+ * @param groupCodeId The ID of the group code
117
117
  * @returns SuccessResponse Coupon codes expiration updated successfully
118
118
  * @throws ApiError
119
119
  */
120
- static expireCoupon(xStudioId: string, couponId: string): CancelablePromise<SuccessResponse>;
120
+ static expireGroupCode(xStudioId: string, groupCodeId: string): CancelablePromise<SuccessResponse>;
121
121
  /**
122
122
  * Expire all coupon codes
123
123
  * Expire all coupon codes for the studio
@@ -208,19 +208,19 @@ class FeaturesDiscountsService {
208
208
  });
209
209
  }
210
210
  /**
211
- * Expire a coupon code
212
- * Expire a coupon code for the studio
211
+ * Expire a group code
212
+ * Expire a group code for the studio
213
213
  * @param xStudioId The ID of the studio
214
- * @param couponId The ID of the coupon
214
+ * @param groupCodeId The ID of the group code
215
215
  * @returns SuccessResponse Coupon codes expiration updated successfully
216
216
  * @throws ApiError
217
217
  */
218
- static expireCoupon(xStudioId, couponId) {
218
+ static expireGroupCode(xStudioId, groupCodeId) {
219
219
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
220
220
  method: 'PUT',
221
- url: '/features/discounts/{couponId}/expire',
221
+ url: '/features/discounts/{groupCodeId}/expire',
222
222
  path: {
223
- 'couponId': couponId,
223
+ 'groupCodeId': groupCodeId,
224
224
  },
225
225
  headers: {
226
226
  'x-studio-id': xStudioId,
@@ -1,6 +1,6 @@
1
1
  export const OpenAPI = {
2
2
  BASE: '',
3
- VERSION: '20260211.1',
3
+ VERSION: '20260213.1',
4
4
  WITH_CREDENTIALS: false,
5
5
  CREDENTIALS: 'include',
6
6
  TOKEN: undefined,
@@ -4,4 +4,5 @@ export type NotificationSettingsResponseDto = {
4
4
  description: string;
5
5
  email: string;
6
6
  toggleField: string;
7
+ isEnabled: number;
7
8
  };
@@ -22,4 +22,6 @@ export type ShowsList = {
22
22
  typeName: string;
23
23
  theatreId: number;
24
24
  hash: string;
25
+ receiptMessage: string;
26
+ dateMaxOrderSeatsEnd: string;
25
27
  };
@@ -110,14 +110,14 @@ export declare class FeaturesDiscountsService {
110
110
  */
111
111
  static updateCode(xStudioId: string, requestBody: UpdateDiscountCodeRequestDto): CancelablePromise<SuccessResponse>;
112
112
  /**
113
- * Expire a coupon code
114
- * Expire a coupon code for the studio
113
+ * Expire a group code
114
+ * Expire a group code for the studio
115
115
  * @param xStudioId The ID of the studio
116
- * @param couponId The ID of the coupon
116
+ * @param groupCodeId The ID of the group code
117
117
  * @returns SuccessResponse Coupon codes expiration updated successfully
118
118
  * @throws ApiError
119
119
  */
120
- static expireCoupon(xStudioId: string, couponId: string): CancelablePromise<SuccessResponse>;
120
+ static expireGroupCode(xStudioId: string, groupCodeId: string): CancelablePromise<SuccessResponse>;
121
121
  /**
122
122
  * Expire all coupon codes
123
123
  * Expire all coupon codes for the studio
@@ -205,19 +205,19 @@ export class FeaturesDiscountsService {
205
205
  });
206
206
  }
207
207
  /**
208
- * Expire a coupon code
209
- * Expire a coupon code for the studio
208
+ * Expire a group code
209
+ * Expire a group code for the studio
210
210
  * @param xStudioId The ID of the studio
211
- * @param couponId The ID of the coupon
211
+ * @param groupCodeId The ID of the group code
212
212
  * @returns SuccessResponse Coupon codes expiration updated successfully
213
213
  * @throws ApiError
214
214
  */
215
- static expireCoupon(xStudioId, couponId) {
215
+ static expireGroupCode(xStudioId, groupCodeId) {
216
216
  return __request(OpenAPI, {
217
217
  method: 'PUT',
218
- url: '/features/discounts/{couponId}/expire',
218
+ url: '/features/discounts/{groupCodeId}/expire',
219
219
  path: {
220
- 'couponId': couponId,
220
+ 'groupCodeId': groupCodeId,
221
221
  },
222
222
  headers: {
223
223
  'x-studio-id': xStudioId,
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.5",
4
+ "version": "0.2.7",
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: '20260211.1',
24
+ VERSION: '20260213.1',
25
25
  WITH_CREDENTIALS: false,
26
26
  CREDENTIALS: 'include',
27
27
  TOKEN: undefined,
@@ -8,5 +8,6 @@ export type NotificationSettingsResponseDto = {
8
8
  description: string;
9
9
  email: string;
10
10
  toggleField: string;
11
+ isEnabled: number;
11
12
  };
12
13
 
@@ -26,5 +26,7 @@ export type ShowsList = {
26
26
  typeName: string;
27
27
  theatreId: number;
28
28
  hash: string;
29
+ receiptMessage: string;
30
+ dateMaxOrderSeatsEnd: string;
29
31
  };
30
32
 
@@ -253,22 +253,22 @@ export class FeaturesDiscountsService {
253
253
  });
254
254
  }
255
255
  /**
256
- * Expire a coupon code
257
- * Expire a coupon code for the studio
256
+ * Expire a group code
257
+ * Expire a group code for the studio
258
258
  * @param xStudioId The ID of the studio
259
- * @param couponId The ID of the coupon
259
+ * @param groupCodeId The ID of the group code
260
260
  * @returns SuccessResponse Coupon codes expiration updated successfully
261
261
  * @throws ApiError
262
262
  */
263
- public static expireCoupon(
263
+ public static expireGroupCode(
264
264
  xStudioId: string,
265
- couponId: string,
265
+ groupCodeId: string,
266
266
  ): CancelablePromise<SuccessResponse> {
267
267
  return __request(OpenAPI, {
268
268
  method: 'PUT',
269
- url: '/features/discounts/{couponId}/expire',
269
+ url: '/features/discounts/{groupCodeId}/expire',
270
270
  path: {
271
- 'couponId': couponId,
271
+ 'groupCodeId': groupCodeId,
272
272
  },
273
273
  headers: {
274
274
  'x-studio-id': xStudioId,