mts-booking-library 1.3.12 → 1.3.13

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.
@@ -15,9 +15,11 @@ export type Tariff = {
15
15
  };
16
16
  /**
17
17
  * This represents a tariff matrix, returned when searching Journeys or Services.
18
- * It is a 2D array of {@link Tariff} objects. On the rows, there are the terms types, while on the columns there are the tariff types.
18
+ * It is a 2D array of {@link Tariff} objects. On the rows, there are the terms types,
19
+ * while on the columns there are the tariff types. Please note that elements can
20
+ * be undefined, as tariffs may not be present for every combination of terms type and tariff type.
19
21
  */
20
- export type TariffsMatrix = Tariff[][];
22
+ export type TariffsMatrix = (Tariff | undefined)[][];
21
23
  /**
22
24
  * This represents a tariff type (e.g. "Adult", "Child", "Over65", ...).
23
25
  * @param {number} id - The id of the tariff type in the db.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mts-booking-library",
3
- "version": "1.3.12",
3
+ "version": "1.3.13",
4
4
  "description": "Library for using MyTicketSolution Booking API",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -18,9 +18,9 @@
18
18
  "devDependencies": {
19
19
  "@types/jest": "^29.5.12",
20
20
  "jest": "^29.7.0",
21
- "prettier": "^3.3.2",
22
- "ts-jest": "^29.1.5",
23
- "typescript": "^5.5.2"
21
+ "prettier": "^3.3.3",
22
+ "ts-jest": "^29.2.2",
23
+ "typescript": "^5.5.3"
24
24
  },
25
25
  "files": [
26
26
  "lib/**/*"
@@ -35,6 +35,6 @@
35
35
  "axios": "^1.7.2",
36
36
  "dotenv": "^16.4.5",
37
37
  "node-localstorage": "^3.0.5",
38
- "zustand": "^4.5.2"
38
+ "zustand": "^4.5.4"
39
39
  }
40
40
  }