turf-common 1.2.1-beta.36 → 1.2.1-beta.38
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.
package/build/@model.d.ts
CHANGED
package/build/@model.js
CHANGED
|
@@ -22,3 +22,4 @@ __exportStar(require("./models/pitch-slab-model"), exports);
|
|
|
22
22
|
__exportStar(require("./models/pricing-plan-model"), exports);
|
|
23
23
|
__exportStar(require("./models/subscribed-pricing-plan-model"), exports);
|
|
24
24
|
__exportStar(require("./models/entity"), exports);
|
|
25
|
+
__exportStar(require("./models/turf-availability-model"), exports);
|
|
@@ -35,5 +35,6 @@ export declare class TurfAvailability implements ITurfAvailability {
|
|
|
35
35
|
getPitchIds(): number[];
|
|
36
36
|
static fromJson(json: IGetAvailabilityByTurf): TurfAvailability;
|
|
37
37
|
static toJson(turfAvailability: TurfAvailability): IGetAvailabilityByTurf;
|
|
38
|
+
getTotalTime(): number;
|
|
38
39
|
}
|
|
39
40
|
export {};
|
|
@@ -167,6 +167,9 @@ var TurfAvailability = /** @class */ (function () {
|
|
|
167
167
|
});
|
|
168
168
|
return data;
|
|
169
169
|
};
|
|
170
|
+
TurfAvailability.prototype.getTotalTime = function () {
|
|
171
|
+
return this.getTotalAvailableHours() + this.getTotalNonAvailableHours();
|
|
172
|
+
};
|
|
170
173
|
return TurfAvailability;
|
|
171
174
|
}());
|
|
172
175
|
exports.TurfAvailability = TurfAvailability;
|