turf-common 1.0.17 → 1.0.18-beta.0
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/enums/pitch-operation.enum.d.ts +5 -0
- package/build/enums/pitch-operation.enum.js +9 -0
- package/build/enums/pitch-sports.enum.d.ts +7 -0
- package/build/enums/pitch-sports.enum.js +11 -0
- package/build/interface/api/create-turf.interface.d.ts +14 -0
- package/build/interface/api/create-turf.interface.js +2 -0
- package/build/interface/api/login-response.interface.d.ts +4 -0
- package/build/interface/api/update-configuration.interface.d.ts +6 -0
- package/build/interface/api/update-turf-transaction-output.d.ts +17 -0
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PitchOperations = void 0;
|
|
4
|
+
var PitchOperations;
|
|
5
|
+
(function (PitchOperations) {
|
|
6
|
+
PitchOperations["DELETE"] = "delete";
|
|
7
|
+
PitchOperations["UPDATE"] = "update";
|
|
8
|
+
PitchOperations["CREATE"] = "create";
|
|
9
|
+
})(PitchOperations || (exports.PitchOperations = PitchOperations = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PitchSports = void 0;
|
|
4
|
+
var PitchSports;
|
|
5
|
+
(function (PitchSports) {
|
|
6
|
+
PitchSports["CRICKET"] = "cricket";
|
|
7
|
+
PitchSports["FOOTBALL"] = "football";
|
|
8
|
+
PitchSports["HOCKEY"] = "hockey";
|
|
9
|
+
PitchSports["TENNIS"] = "tennis";
|
|
10
|
+
PitchSports["BASKETBALL"] = "basketball";
|
|
11
|
+
})(PitchSports || (exports.PitchSports = PitchSports = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PitchSports } from "../../enums/pitch-sports.enum";
|
|
2
|
+
export interface ICreateTurfDto {
|
|
3
|
+
turfName: string;
|
|
4
|
+
numberOfPitches: number;
|
|
5
|
+
pitches: IPitches[];
|
|
6
|
+
address: string;
|
|
7
|
+
}
|
|
8
|
+
export interface IPitches {
|
|
9
|
+
name: string;
|
|
10
|
+
sports: ISports[];
|
|
11
|
+
}
|
|
12
|
+
export interface ISports {
|
|
13
|
+
name: PitchSports;
|
|
14
|
+
}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
import { ConfigurationKey } from "../../@enum";
|
|
1
2
|
import { IConfigurationsEntity } from "../../@type";
|
|
2
3
|
export interface IUpdateConfiguration extends Array<IConfigurationsEntity> {
|
|
3
4
|
}
|
|
5
|
+
export interface IUpdateConfigurationRequest {
|
|
6
|
+
key: ConfigurationKey;
|
|
7
|
+
value: string;
|
|
8
|
+
description: string;
|
|
9
|
+
}
|
|
@@ -1,3 +1,20 @@
|
|
|
1
1
|
import { ITurfEntity } from "../../@type";
|
|
2
|
+
import { PitchOperations } from "../../enums/pitch-operation.enum";
|
|
3
|
+
import { PitchSports } from "../../enums/pitch-sports.enum";
|
|
2
4
|
export interface UpdateTurfTransactionOutput extends ITurfEntity {
|
|
3
5
|
}
|
|
6
|
+
export interface UpdateTurfDetailsRequest {
|
|
7
|
+
turfName: string;
|
|
8
|
+
pitches: IUpdatePitches[];
|
|
9
|
+
address: string;
|
|
10
|
+
}
|
|
11
|
+
export interface IUpdatePitches {
|
|
12
|
+
number: number;
|
|
13
|
+
name: string;
|
|
14
|
+
operations: PitchOperations;
|
|
15
|
+
status: string;
|
|
16
|
+
sports: IUpdateSports[];
|
|
17
|
+
}
|
|
18
|
+
export interface IUpdateSports {
|
|
19
|
+
name: PitchSports;
|
|
20
|
+
}
|