mts-booking-library 1.3.19 → 1.3.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. package/README.md +0 -1
  2. package/package.json +1 -1
  3. package/lib/types/Booking.d.ts +0 -0
  4. package/lib/types/Booking.js +0 -1
  5. package/lib/types/Cart.d.ts +0 -79
  6. package/lib/types/Cart.js +0 -2
  7. package/lib/types/Details.d.ts +0 -9
  8. package/lib/types/Details.js +0 -2
  9. package/lib/types/Info.d.ts +0 -7
  10. package/lib/types/Info.js +0 -2
  11. package/lib/types/Journeys/Journey.d.ts +0 -8
  12. package/lib/types/Journeys/Journey.js +0 -2
  13. package/lib/types/Line.d.ts +0 -6
  14. package/lib/types/Line.js +0 -2
  15. package/lib/types/Person.d.ts +0 -7
  16. package/lib/types/Person.js +0 -2
  17. package/lib/types/Subscriptions/Subscrptions.d.ts +0 -12
  18. package/lib/types/Subscriptions/Subscrptions.js +0 -2
  19. package/lib/types/Subscriptions/ValidityTypes.d.ts +0 -6
  20. package/lib/types/Subscriptions/ValidityTypes.js +0 -10
  21. package/lib/types/TermsAndTariffs.d.ts +0 -21
  22. package/lib/types/TermsAndTariffs.js +0 -2
  23. package/lib/types/Tours/Tour.d.ts +0 -18
  24. package/lib/types/Tours/Tour.js +0 -2
  25. /package/lib/types/{Journeys → journeys}/BusMatrix.d.ts +0 -0
  26. /package/lib/types/{Journeys → journeys}/BusMatrix.js +0 -0
  27. /package/lib/types/{Journeys → journeys}/JourneyCart.d.ts +0 -0
  28. /package/lib/types/{Journeys → journeys}/JourneyCart.js +0 -0
  29. /package/lib/types/{Journeys → journeys}/JourneyInfo.d.ts +0 -0
  30. /package/lib/types/{Journeys → journeys}/JourneyInfo.js +0 -0
  31. /package/lib/types/{Journeys → journeys}/JourneySearch.d.ts +0 -0
  32. /package/lib/types/{Journeys → journeys}/JourneySearch.js +0 -0
  33. /package/lib/types/{Journeys → journeys}/Stop.d.ts +0 -0
  34. /package/lib/types/{Journeys → journeys}/Stop.js +0 -0
  35. /package/lib/types/{Journeys → journeys}/Trip.d.ts +0 -0
  36. /package/lib/types/{Journeys → journeys}/Trip.js +0 -0
  37. /package/lib/types/{Subscriptions → subscriptions}/SubscriptionAvailabilities.d.ts +0 -0
  38. /package/lib/types/{Subscriptions → subscriptions}/SubscriptionAvailabilities.js +0 -0
  39. /package/lib/types/{Subscriptions → subscriptions}/SubscriptionCart.d.ts +0 -0
  40. /package/lib/types/{Subscriptions → subscriptions}/SubscriptionCart.js +0 -0
  41. /package/lib/types/{Subscriptions → subscriptions}/SubscriptionInfo.d.ts +0 -0
  42. /package/lib/types/{Subscriptions → subscriptions}/SubscriptionInfo.js +0 -0
  43. /package/lib/types/{Subscriptions → subscriptions}/Subscriptions.d.ts +0 -0
  44. /package/lib/types/{Subscriptions → subscriptions}/Subscriptions.js +0 -0
package/README.md CHANGED
@@ -1,5 +1,4 @@
1
1
  # Publish
2
- 1. ensure you have the most up to date `.env` file
3
2
  1. `npm i`
4
3
  1. `npm version patch`
5
4
  1. `git push && git push --tags`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mts-booking-library",
3
- "version": "1.3.19",
3
+ "version": "1.3.20",
4
4
  "description": "Library for using MyTicketSolution Booking API",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
File without changes
@@ -1 +0,0 @@
1
- "use strict";
@@ -1,79 +0,0 @@
1
- import { Booking } from "..";
2
- import { Person } from "./Person";
3
- import { TariffMatrix } from "./TermsAndTariffs";
4
- export type Cart = {
5
- id: number;
6
- cartCode: string;
7
- status: Booking.CartStatus;
8
- nextStatus: Booking.CartStatus;
9
- currency: string;
10
- bookingDueDate: string;
11
- bookings: {
12
- type: string;
13
- summary: {
14
- quantity: number;
15
- label: string;
16
- value: number;
17
- }[];
18
- }[];
19
- info: {
20
- stops: {
21
- id: number;
22
- departureTime: Date;
23
- destinationTime: Date;
24
- name: string;
25
- address: string;
26
- }[];
27
- };
28
- buyer: Person;
29
- reductions: {
30
- tripId: number;
31
- tripName: string;
32
- value: number;
33
- isPercentage: boolean;
34
- voucherCode?: string;
35
- }[];
36
- isSeatsSelectionAllowed: boolean;
37
- sellingMethod: string;
38
- totalValue: number;
39
- totalResellerFee?: number;
40
- totalCreditFromChange: number;
41
- totalAmountToPay: number;
42
- extas: {
43
- id: number;
44
- resourceId: number;
45
- name: string;
46
- description: string;
47
- notes: string;
48
- tariff: {
49
- tariffId: number;
50
- tariffName: string;
51
- };
52
- }[];
53
- };
54
- export type TourCart = {
55
- cartId?: number;
56
- currency: Booking.Currencies;
57
- tour: {
58
- tourId: number;
59
- date?: Date;
60
- tripId?: number;
61
- tariffsMatrix: TariffMatrix;
62
- };
63
- };
64
- export type JourneyCart = {
65
- cartId?: number;
66
- currency: Booking.Currencies;
67
- outboundJourney: {
68
- departureStopId: number;
69
- destinationStopId: number;
70
- tripId: number;
71
- tariffsMatrix: TariffMatrix;
72
- }[];
73
- returnJourney: {
74
- tripId: number;
75
- departureStopId: number;
76
- destinationStopId: number;
77
- tariffsMatrix: TariffMatrix;
78
- }[] | null;
79
- };
package/lib/types/Cart.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
1
- import { Person } from "./Person";
2
- export type Details = {
3
- passengers: Person[] & {
4
- tripsToTariffs: {
5
- [tripId: number]: number;
6
- };
7
- };
8
- buyer: Person;
9
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- export type Info = {
2
- sellerName: string;
3
- minimumTotalPrice: string;
4
- remainingSeats?: number;
5
- bookingProcessMessage: string;
6
- isBookable: boolean;
7
- };
package/lib/types/Info.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- import { Stop } from "./Stop";
2
- import { Info } from "../Info";
3
- import { Trip } from "./Trip";
4
- export type Journey = {
5
- stops: Stop[];
6
- info: Info;
7
- trips: Trip[];
8
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- export type Line = {
2
- id: number;
3
- name: string;
4
- linkavelDescription: string;
5
- backofficeNotes: string;
6
- };
package/lib/types/Line.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- export type Person = {
2
- id: number;
3
- name: string;
4
- lastName: string;
5
- email: string;
6
- phoneNumber: string;
7
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
1
- export type Subscription = {
2
- departurePhysicalAgencyStopId: number;
3
- departureStopName: string;
4
- destinationPhysicalAgencyStopId: number;
5
- destinationStopName: string;
6
- departureTime: string;
7
- destinationTime: string;
8
- lineName: string;
9
- routeId: number;
10
- routeName: string;
11
- sellerId: number;
12
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- export declare enum ValidityTypes {
2
- WORKING_WEEK = "WORKING_WEEK",
3
- WEEKLY = "WEEKLY",
4
- MONTHLY = "MONTHLY",
5
- YEARLY = "YEARLY"
6
- }
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ValidityTypes = void 0;
4
- var ValidityTypes;
5
- (function (ValidityTypes) {
6
- ValidityTypes["WORKING_WEEK"] = "WORKING_WEEK";
7
- ValidityTypes["WEEKLY"] = "WEEKLY";
8
- ValidityTypes["MONTHLY"] = "MONTHLY";
9
- ValidityTypes["YEARLY"] = "YEARLY";
10
- })(ValidityTypes || (exports.ValidityTypes = ValidityTypes = {}));
@@ -1,21 +0,0 @@
1
- export type TariffMatrix = {
2
- tariffTypeId: number;
3
- termsTypeId: number;
4
- value: number;
5
- quantity: number;
6
- }[][];
7
- export type TariffType = {
8
- name: string;
9
- description: string;
10
- requiredPassengersName: boolean;
11
- numberOfOccupiedSeats: number;
12
- bookingProcessDescription: string;
13
- };
14
- export type TermsType = {
15
- name: string;
16
- description: string;
17
- isRefundAllowed: boolean;
18
- isChangeAllowed: boolean;
19
- validationRulesString: string;
20
- bookingProcessDescription: string;
21
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,18 +0,0 @@
1
- import { Info } from "../Info";
2
- import { Line } from "../Line";
3
- import { TariffMatrix, TariffType, TermsType } from "../TermsAndTariffs";
4
- export type Tour = {
5
- id: number;
6
- line: Line;
7
- info: Info;
8
- tariffsMatrix: TariffMatrix;
9
- tariffTypes: TariffType[];
10
- termsTypes: TermsType[];
11
- isDateOptional: boolean;
12
- isDateRequired: boolean;
13
- isTripMandatory: boolean;
14
- };
15
- export type TourTrip = {
16
- tripId: number;
17
- hour: Date;
18
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes