@mtgame/core 0.0.17 → 0.0.18

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 const HockeyPenaltyTypes: {
2
+ id: number;
3
+ code: string;
4
+ title: string;
5
+ }[];
@@ -1,5 +1,6 @@
1
1
  export * from './basketball-game-log-types';
2
2
  export * from './hockey-game-log-types';
3
+ export * from './hockey-penalty-types';
3
4
  export * from './overtime-types';
4
5
  export * from './team-event-type';
5
6
  export * from './team-user-role';
@@ -28,6 +28,11 @@ export declare enum HockeyAdvantageTypes {
28
28
  shorthanded = 2,
29
29
  even_strength = 3
30
30
  }
31
+ export interface PenaltyType {
32
+ id: number;
33
+ code: string;
34
+ title: string;
35
+ }
31
36
  export declare class HockeyGameLog extends BaseModel implements GameLogBase {
32
37
  id: number;
33
38
  uniqueId: string;
@@ -45,9 +50,11 @@ export declare class HockeyGameLog extends BaseModel implements GameLogBase {
45
50
  isHighlight: boolean;
46
51
  advantage: HockeyAdvantageTypes;
47
52
  isGoalie: boolean;
53
+ penaltyType: PenaltyType;
48
54
  compare(model: HockeyGameLog): number;
49
55
  get timeFormatted(): string;
50
56
  isScoreType(): boolean;
57
+ isPenaltyType(): boolean;
51
58
  static toFront(value: any): any;
52
59
  static toBack(value: any): any;
53
60
  }
package/models/util.d.ts CHANGED
@@ -20,6 +20,10 @@ export declare function enumField(enumClass: any): {
20
20
  toFront: (value: any) => any;
21
21
  toBack: (value: any) => any;
22
22
  };
23
+ export declare function penaltyTypeField(): {
24
+ toFront: (data: any) => any;
25
+ toBack: (data: any) => any;
26
+ };
23
27
  export declare function listField(modelClass: any): {
24
28
  toFront: (value: any) => any;
25
29
  toBack: (value: any) => any;
package/mtgame-core.d.ts CHANGED
@@ -2,3 +2,4 @@
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
4
  export * from './public-api';
5
+ export { penaltyTypeField as ɵa } from './models/util';