turf-common 1.2.1-beta.38 → 1.2.1-beta.39

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.
@@ -36,5 +36,6 @@ export declare class TurfAvailability implements ITurfAvailability {
36
36
  static fromJson(json: IGetAvailabilityByTurf): TurfAvailability;
37
37
  static toJson(turfAvailability: TurfAvailability): IGetAvailabilityByTurf;
38
38
  getTotalTime(): number;
39
+ getCode(): string;
39
40
  }
40
41
  export {};
@@ -170,6 +170,9 @@ var TurfAvailability = /** @class */ (function () {
170
170
  TurfAvailability.prototype.getTotalTime = function () {
171
171
  return this.getTotalAvailableHours() + this.getTotalNonAvailableHours();
172
172
  };
173
+ TurfAvailability.prototype.getCode = function () {
174
+ return "event#".concat(this.dateCodes[0]).concat(this.dateCodes[this.dateCodes.length - 1], "#").concat(this.timeSlotCodesDateWise[0][0].slice(0, 4)).concat(this.timeSlotCodesDateWise[0][0][this.timeSlotCodesDateWise[0][0].length - 1].slice(4, 8), "#").concat(this.getPitchIds());
175
+ };
173
176
  return TurfAvailability;
174
177
  }());
175
178
  exports.TurfAvailability = TurfAvailability;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "turf-common",
3
- "version": "1.2.1-beta.38",
3
+ "version": "1.2.1-beta.39",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",