mts-booking-library 1.3.4 → 1.3.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -177,8 +177,13 @@ export declare namespace SubscriptionBooking {
177
177
  const createBooking: (env: MTSEnvs, sub_key: string, debug: boolean, language: string, access_token?: string, sellerId?: number, resellerId?: number) => Promise<SubscriptionBooking>;
178
178
  enum ValidityTypes {
179
179
  WORKING_WEEK = "WORKING_WEEK",
180
- WEEKLY = "WEEKLY",
181
- MONTHLY = "MONTHLY",
182
- YEARLY = "YEARLY"
180
+ ONE_WEEK = "ONE_WEEK",
181
+ CALENDAR_WEEK = "CALENDAR_WEEK",
182
+ FIFTEEN_DAYS = "FIFTEEN_DAYS",
183
+ ONE_MONTH = "ONE_MONTH",
184
+ CALENDAR_MONTH = "CALENDAR_MONTH",
185
+ CALENDAR_SIX_MONTHS = "CALENDAR_SIX_MONTHS",
186
+ ONE_YEAR = "ONE_YEAR",
187
+ CALENDAR_YEAR = "CALENDAR_YEAR"
183
188
  }
184
189
  }
@@ -172,7 +172,7 @@ var SubscriptionBooking = /** @class */ (function (_super) {
172
172
  if (response.cart.hasIssuedTickets) {
173
173
  _this.resetBooking();
174
174
  }
175
- return response;
175
+ return response.cart;
176
176
  })];
177
177
  });
178
178
  });
@@ -750,8 +750,13 @@ exports.SubscriptionBooking = SubscriptionBooking;
750
750
  var ValidityTypes;
751
751
  (function (ValidityTypes) {
752
752
  ValidityTypes["WORKING_WEEK"] = "WORKING_WEEK";
753
- ValidityTypes["WEEKLY"] = "WEEKLY";
754
- ValidityTypes["MONTHLY"] = "MONTHLY";
755
- ValidityTypes["YEARLY"] = "YEARLY";
753
+ ValidityTypes["ONE_WEEK"] = "ONE_WEEK";
754
+ ValidityTypes["CALENDAR_WEEK"] = "CALENDAR_WEEK";
755
+ ValidityTypes["FIFTEEN_DAYS"] = "FIFTEEN_DAYS";
756
+ ValidityTypes["ONE_MONTH"] = "ONE_MONTH";
757
+ ValidityTypes["CALENDAR_MONTH"] = "CALENDAR_MONTH";
758
+ ValidityTypes["CALENDAR_SIX_MONTHS"] = "CALENDAR_SIX_MONTHS";
759
+ ValidityTypes["ONE_YEAR"] = "ONE_YEAR";
760
+ ValidityTypes["CALENDAR_YEAR"] = "CALENDAR_YEAR";
756
761
  })(ValidityTypes = SubscriptionBooking.ValidityTypes || (SubscriptionBooking.ValidityTypes = {}));
757
762
  })(SubscriptionBooking || (exports.SubscriptionBooking = SubscriptionBooking = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mts-booking-library",
3
- "version": "1.3.4",
3
+ "version": "1.3.5",
4
4
  "description": "Library for using MyTicketSolution Booking API",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -17,7 +17,7 @@
17
17
  "@types/jest": "^29.5.12",
18
18
  "jest": "^29.7.0",
19
19
  "ts-jest": "^29.1.2",
20
- "typescript": "^5.4.4"
20
+ "typescript": "^5.4.5"
21
21
  },
22
22
  "files": [
23
23
  "lib/**/*"