turf-common 1.2.1-beta.48 → 1.2.1-beta.49

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.
@@ -24,7 +24,7 @@ export declare class TurfAvailability implements ITurfAvailability {
24
24
  endDateCode: string;
25
25
  fromTimeCode: string;
26
26
  toTimeCode: string;
27
- pitchIdCodes: string[];
27
+ pitchCodes: string[];
28
28
  constructor(data: IGetAvailabilityByTurf);
29
29
  getTotalAvailablePrice(): number;
30
30
  getTotalNonAvailablePrice(): number;
@@ -44,7 +44,7 @@ export declare class TurfAvailability implements ITurfAvailability {
44
44
  getCode(): string;
45
45
  parse(): void;
46
46
  static parse(eventCode: string): {
47
- pitchIdCodes: string[];
47
+ pitchCodes: string[];
48
48
  startDateCode: string;
49
49
  endDateCode: string;
50
50
  fromTimeCode: string;
@@ -179,9 +179,7 @@ var TurfAvailability = /** @class */ (function () {
179
179
  var eventCodes = eventCode.split("#");
180
180
  var dateCodeRange = eventCodes[1];
181
181
  var timeCodeRange = eventCodes[2];
182
- this.pitchIdCodes = eventCodes[3]
183
- .split(",")
184
- .map(function (id) { return id.padStart(2, "0"); });
182
+ this.pitchCodes = eventCodes[3].split(",").map(function (id) { return id.padStart(2, "0"); });
185
183
  this.startDateCode = dateCodeRange.slice(0, 6);
186
184
  this.endDateCode = dateCodeRange.slice(6, 12);
187
185
  this.fromTimeCode = timeCodeRange.slice(0, 4);
@@ -192,7 +190,7 @@ var TurfAvailability = /** @class */ (function () {
192
190
  var dateCodeRange = eventCodes[1];
193
191
  var timeCodeRange = eventCodes[2];
194
192
  return {
195
- pitchIdCodes: eventCodes[3].split(",").map(function (id) { return id.padStart(2, "0"); }),
193
+ pitchCodes: eventCodes[3].split(",").map(function (id) { return id.padStart(2, "0"); }),
196
194
  startDateCode: dateCodeRange.slice(0, 6),
197
195
  endDateCode: dateCodeRange.slice(6, 12),
198
196
  fromTimeCode: timeCodeRange.slice(0, 4),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "turf-common",
3
- "version": "1.2.1-beta.48",
3
+ "version": "1.2.1-beta.49",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",