tenniscommon 1.1.43 → 1.1.45

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.
@@ -21,14 +21,23 @@ export declare const GLOBAL: {
21
21
  u18: string;
22
22
  adult: string;
23
23
  };
24
+ TYPE: {
25
+ all: string;
26
+ TI: string;
27
+ TE: string;
28
+ ITF: string;
29
+ BandD: string;
30
+ };
24
31
  };
25
32
  export type GLOBAL_TIME_UNION = ValueOf<typeof GLOBAL.TIME>;
26
33
  export type GLOBAL_SET_UNION = ValueOf<typeof GLOBAL.SET>;
27
34
  export type GLOBAL_AGE_UNION = ValueOf<typeof GLOBAL.AGE>;
35
+ export type GLOBAL_TYPE_UNION = ValueOf<typeof GLOBAL.TYPE>;
28
36
  export declare const GLOBAL_ARRAYS: {
29
37
  TIME: GLOBAL_TIME_UNION[];
30
38
  SET: GLOBAL_SET_UNION[];
31
- AGE: GLOBAL_SET_UNION[];
39
+ AGE: GLOBAL_AGE_UNION[];
40
+ TYPE: GLOBAL_TYPE_UNION[];
32
41
  };
33
42
  export declare const createInitialPlayerConfig: (born: number) => PlayerConfig;
34
43
  export declare const createInitialPlayerData: () => {
@@ -23,11 +23,19 @@ exports.GLOBAL = {
23
23
  u18: 'U18',
24
24
  adult: 'Adult',
25
25
  },
26
+ TYPE: {
27
+ all: 'All',
28
+ TI: 'Tennis Ireland',
29
+ TE: 'Tennis Europe',
30
+ ITF: 'ITF',
31
+ BandD: 'B&D',
32
+ },
26
33
  };
27
34
  exports.GLOBAL_ARRAYS = {
28
35
  TIME: Object.values(exports.GLOBAL.TIME),
29
36
  SET: Object.values(exports.GLOBAL.SET),
30
37
  AGE: Object.values(exports.GLOBAL.AGE),
38
+ TYPE: Object.values(exports.GLOBAL.TYPE),
31
39
  };
32
40
  // Factory function for PlayerConfig
33
41
  const createInitialPlayerConfig = (born) => ({
@@ -39,7 +47,8 @@ const createInitialPlayerConfig = (born) => ({
39
47
  globalFilterTimeFrame: exports.GLOBAL.TIME.last6Months,
40
48
  globalFilterSpecificYear: new Date().getFullYear(),
41
49
  globalFilterSetFormat: exports.GLOBAL.SET.full,
42
- globalFilterAgeGroup: exports.GLOBAL.AGE.u14,
50
+ globalFilterAgeGroup: exports.GLOBAL.AGE.all,
51
+ globalFilterTypeGroup: exports.GLOBAL.TYPE.all,
43
52
  });
44
53
  exports.createInitialPlayerConfig = createInitialPlayerConfig;
45
54
  // Factory function for PlayerData
@@ -23,6 +23,7 @@ export interface PlayerConfig {
23
23
  globalFilterSpecificYear: number;
24
24
  globalFilterSetFormat: string;
25
25
  globalFilterAgeGroup: string;
26
+ globalFilterTypeGroup: string;
26
27
  }
27
28
  export interface LoginResponse {
28
29
  player: PlayerData;
@@ -4,8 +4,9 @@ import { BasicStatsPack, MatchplayItem, SpecificStats } from '../matchplay';
4
4
  export declare const TOURNAMENT: {
5
5
  readonly TYPE: {
6
6
  readonly TennisIreland: "Tennis Ireland";
7
- readonly TennisEuropean: "Tennis European";
8
- readonly BelfastAndDistrictLeague: "Belfast And District League";
7
+ readonly TennisEurope: "Tennis Europe";
8
+ readonly ITF: "ITF";
9
+ readonly BandD: "B&D";
9
10
  };
10
11
  readonly CATEGORY: {
11
12
  readonly WTN: "WTN";
@@ -4,8 +4,9 @@ exports.TOURNAMENT_ARRAYS = exports.TOURNAMENT = void 0;
4
4
  exports.TOURNAMENT = {
5
5
  TYPE: {
6
6
  TennisIreland: 'Tennis Ireland',
7
- TennisEuropean: 'Tennis European',
8
- BelfastAndDistrictLeague: 'Belfast And District League',
7
+ TennisEurope: 'Tennis Europe',
8
+ ITF: 'ITF',
9
+ BandD: 'B&D',
9
10
  },
10
11
  CATEGORY: {
11
12
  WTN: 'WTN',
@@ -21,14 +21,23 @@ export declare const GLOBAL: {
21
21
  u18: string;
22
22
  adult: string;
23
23
  };
24
+ TYPE: {
25
+ all: string;
26
+ TI: string;
27
+ TE: string;
28
+ ITF: string;
29
+ BandD: string;
30
+ };
24
31
  };
25
32
  export type GLOBAL_TIME_UNION = ValueOf<typeof GLOBAL.TIME>;
26
33
  export type GLOBAL_SET_UNION = ValueOf<typeof GLOBAL.SET>;
27
34
  export type GLOBAL_AGE_UNION = ValueOf<typeof GLOBAL.AGE>;
35
+ export type GLOBAL_TYPE_UNION = ValueOf<typeof GLOBAL.TYPE>;
28
36
  export declare const GLOBAL_ARRAYS: {
29
37
  TIME: GLOBAL_TIME_UNION[];
30
38
  SET: GLOBAL_SET_UNION[];
31
- AGE: GLOBAL_SET_UNION[];
39
+ AGE: GLOBAL_AGE_UNION[];
40
+ TYPE: GLOBAL_TYPE_UNION[];
32
41
  };
33
42
  export declare const createInitialPlayerConfig: (born: number) => PlayerConfig;
34
43
  export declare const createInitialPlayerData: () => {
@@ -20,11 +20,19 @@ export const GLOBAL = {
20
20
  u18: 'U18',
21
21
  adult: 'Adult',
22
22
  },
23
+ TYPE: {
24
+ all: 'All',
25
+ TI: 'Tennis Ireland',
26
+ TE: 'Tennis Europe',
27
+ ITF: 'ITF',
28
+ BandD: 'B&D',
29
+ },
23
30
  };
24
31
  export const GLOBAL_ARRAYS = {
25
32
  TIME: Object.values(GLOBAL.TIME),
26
33
  SET: Object.values(GLOBAL.SET),
27
34
  AGE: Object.values(GLOBAL.AGE),
35
+ TYPE: Object.values(GLOBAL.TYPE),
28
36
  };
29
37
  // Factory function for PlayerConfig
30
38
  export const createInitialPlayerConfig = (born) => ({
@@ -36,7 +44,8 @@ export const createInitialPlayerConfig = (born) => ({
36
44
  globalFilterTimeFrame: GLOBAL.TIME.last6Months,
37
45
  globalFilterSpecificYear: new Date().getFullYear(),
38
46
  globalFilterSetFormat: GLOBAL.SET.full,
39
- globalFilterAgeGroup: GLOBAL.AGE.u14,
47
+ globalFilterAgeGroup: GLOBAL.AGE.all,
48
+ globalFilterTypeGroup: GLOBAL.TYPE.all,
40
49
  });
41
50
  // Factory function for PlayerData
42
51
  export const createInitialPlayerData = () => ({
@@ -23,6 +23,7 @@ export interface PlayerConfig {
23
23
  globalFilterSpecificYear: number;
24
24
  globalFilterSetFormat: string;
25
25
  globalFilterAgeGroup: string;
26
+ globalFilterTypeGroup: string;
26
27
  }
27
28
  export interface LoginResponse {
28
29
  player: PlayerData;
@@ -4,8 +4,9 @@ import { BasicStatsPack, MatchplayItem, SpecificStats } from '../matchplay';
4
4
  export declare const TOURNAMENT: {
5
5
  readonly TYPE: {
6
6
  readonly TennisIreland: "Tennis Ireland";
7
- readonly TennisEuropean: "Tennis European";
8
- readonly BelfastAndDistrictLeague: "Belfast And District League";
7
+ readonly TennisEurope: "Tennis Europe";
8
+ readonly ITF: "ITF";
9
+ readonly BandD: "B&D";
9
10
  };
10
11
  readonly CATEGORY: {
11
12
  readonly WTN: "WTN";
@@ -1,8 +1,9 @@
1
1
  export const TOURNAMENT = {
2
2
  TYPE: {
3
3
  TennisIreland: 'Tennis Ireland',
4
- TennisEuropean: 'Tennis European',
5
- BelfastAndDistrictLeague: 'Belfast And District League',
4
+ TennisEurope: 'Tennis Europe',
5
+ ITF: 'ITF',
6
+ BandD: 'B&D',
6
7
  },
7
8
  CATEGORY: {
8
9
  WTN: 'WTN',
@@ -21,14 +21,23 @@ export declare const GLOBAL: {
21
21
  u18: string;
22
22
  adult: string;
23
23
  };
24
+ TYPE: {
25
+ all: string;
26
+ TI: string;
27
+ TE: string;
28
+ ITF: string;
29
+ BandD: string;
30
+ };
24
31
  };
25
32
  export type GLOBAL_TIME_UNION = ValueOf<typeof GLOBAL.TIME>;
26
33
  export type GLOBAL_SET_UNION = ValueOf<typeof GLOBAL.SET>;
27
34
  export type GLOBAL_AGE_UNION = ValueOf<typeof GLOBAL.AGE>;
35
+ export type GLOBAL_TYPE_UNION = ValueOf<typeof GLOBAL.TYPE>;
28
36
  export declare const GLOBAL_ARRAYS: {
29
37
  TIME: GLOBAL_TIME_UNION[];
30
38
  SET: GLOBAL_SET_UNION[];
31
- AGE: GLOBAL_SET_UNION[];
39
+ AGE: GLOBAL_AGE_UNION[];
40
+ TYPE: GLOBAL_TYPE_UNION[];
32
41
  };
33
42
  export declare const createInitialPlayerConfig: (born: number) => PlayerConfig;
34
43
  export declare const createInitialPlayerData: () => {
@@ -23,6 +23,7 @@ export interface PlayerConfig {
23
23
  globalFilterSpecificYear: number;
24
24
  globalFilterSetFormat: string;
25
25
  globalFilterAgeGroup: string;
26
+ globalFilterTypeGroup: string;
26
27
  }
27
28
  export interface LoginResponse {
28
29
  player: PlayerData;
@@ -4,8 +4,9 @@ import { BasicStatsPack, MatchplayItem, SpecificStats } from '../matchplay';
4
4
  export declare const TOURNAMENT: {
5
5
  readonly TYPE: {
6
6
  readonly TennisIreland: "Tennis Ireland";
7
- readonly TennisEuropean: "Tennis European";
8
- readonly BelfastAndDistrictLeague: "Belfast And District League";
7
+ readonly TennisEurope: "Tennis Europe";
8
+ readonly ITF: "ITF";
9
+ readonly BandD: "B&D";
9
10
  };
10
11
  readonly CATEGORY: {
11
12
  readonly WTN: "WTN";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tenniscommon",
3
- "version": "1.1.43",
3
+ "version": "1.1.45",
4
4
  "description": "Types for Tennis application",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",