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.
@@ -0,0 +1,5 @@
1
+ export declare enum PitchOperations {
2
+ DELETE = "delete",
3
+ UPDATE = "update",
4
+ CREATE = "create"
5
+ }
@@ -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,7 @@
1
+ export declare enum PitchSports {
2
+ CRICKET = "cricket",
3
+ FOOTBALL = "football",
4
+ HOCKEY = "hockey",
5
+ TENNIS = "tennis",
6
+ BASKETBALL = "basketball"
7
+ }
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -17,3 +17,7 @@ export interface ILoginResponse {
17
17
  subscriptionStatus: string | null;
18
18
  contact: string;
19
19
  }
20
+ export interface ILoginRequest {
21
+ username: string;
22
+ password: string;
23
+ }
@@ -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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "turf-common",
3
- "version": "1.0.17",
3
+ "version": "1.0.18-beta.0",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",