@maestro_io/maestro-web-sdk 2.2.1 → 2.2.2

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.
Files changed (31) hide show
  1. package/dist/MaestroEventDelegate.d.ts +3 -0
  2. package/dist/components/organisms/SegmentController/SegmentController.d.ts +1 -0
  3. package/dist/external/AxiosNetworkClient.d.ts +1 -1
  4. package/dist/external/ports/networkClient.d.ts +1 -1
  5. package/dist/index.d.ts +9 -1
  6. package/dist/interfaces/IMaestroEventDelegate.d.ts +11 -0
  7. package/dist/interfaces/IMaestroManager.d.ts +2 -1
  8. package/dist/maestro-web-sdk.umd.js +3 -3
  9. package/dist/maestro-web-sdk.umd.js.map +1 -1
  10. package/dist/modules/bets/types/BetsAnalyticsTypes.d.ts +25 -0
  11. package/dist/modules/bets/view/SixPack/SixPackView.d.ts +1 -0
  12. package/dist/modules/bets/view/UserBets/UserBetsView.d.ts +0 -1
  13. package/dist/modules/bets/view/components/PromoCodeBanner/PromoCodeBanner.d.ts +1 -0
  14. package/dist/modules/bets/view-model/BetsViewModel.d.ts +19 -1
  15. package/dist/modules/key-plays/view-model/KeyPlaysViewModel.d.ts +4 -0
  16. package/dist/modules/stats/interfaces/IStats.d.ts +1 -1
  17. package/dist/modules/stats/view/ActiveAthletes/ActiveAthletes.d.ts +1 -0
  18. package/dist/modules/stats/view/ActiveAthletes/CollapsedAthletes/CollapsedAthletes.d.ts +1 -1
  19. package/dist/modules/stats/view/ActiveAthletes/ExpandedAthletes/ExpandedAthletes.d.ts +1 -1
  20. package/dist/modules/stats/view/DriveSummary/DriveSummary.d.ts +1 -0
  21. package/dist/modules/stats/view/GameLeaders/GameLeaders.d.ts +1 -0
  22. package/dist/modules/stats/view/StatsItemView.d.ts +2 -0
  23. package/dist/modules/stats/view/StatsView.d.ts +1 -0
  24. package/dist/modules/stats/view-model/StatsViewModel.d.ts +6 -2
  25. package/dist/services/AnalyticsService/AnalyticsService.d.ts +65 -0
  26. package/dist/services/AnalyticsService/types.d.ts +65 -0
  27. package/dist/services/InsightsService/InsightsPayloadBuilder.d.ts +278 -0
  28. package/dist/services/InsightsService/InsightsService.d.ts +10 -0
  29. package/dist/services/NetworkManager/NetworkManager.d.ts +2 -17
  30. package/dist/services/NetworkManager/types.d.ts +0 -4
  31. package/package.json +1 -1
@@ -1,12 +1,7 @@
1
+ import { Environment } from '@/index';
1
2
  import { ICacheManager } from '../../external/ports/cacheManager';
2
3
  import { INetworkClient } from '../../external/ports/networkClient';
3
- export declare const WorkingEnvironment: {
4
- readonly DEVELOPMENT: "development";
5
- readonly STAGING: "staging";
6
- readonly PRODUCTION: "production";
7
- };
8
- export type WorkingEnvironment = typeof WorkingEnvironment[keyof typeof WorkingEnvironment];
9
- export declare const MAESTRO_BASE_URLS: Record<WorkingEnvironment, string>;
4
+ export declare const MAESTRO_BASE_URLS: Record<Environment, string>;
10
5
  export declare const SDK_FLAVOR = "MaestroKit_Web";
11
6
  export declare const ENDPOINTS: {
12
7
  CAN_I_PLAY: string;
@@ -22,7 +17,6 @@ export declare const HttpMethod: {
22
17
  };
23
18
  export type HttpMethod = typeof HttpMethod[keyof typeof HttpMethod];
24
19
  export interface NetworkManagerOptions {
25
- environment?: WorkingEnvironment;
26
20
  networkClient?: INetworkClient;
27
21
  externalNetworkClient?: INetworkClient;
28
22
  externalBaseURL?: string;
@@ -33,18 +27,9 @@ declare class NetworkManager {
33
27
  private cacheManager;
34
28
  private maestroClient;
35
29
  private externalClient;
36
- private environment;
37
30
  private pollingTasks;
38
31
  private localStorage;
39
32
  constructor(options?: NetworkManagerOptions, localStorageOverride?: Storage);
40
- /**
41
- * Sets the working environment (development, staging, production)
42
- */
43
- setEnvironment(environment: WorkingEnvironment): void;
44
- /**
45
- * Get current environment
46
- */
47
- getEnvironment(): WorkingEnvironment;
48
33
  /**
49
34
  * Set authentication for Maestro APIs
50
35
  */
@@ -1,4 +1,3 @@
1
- import { WorkingEnvironment } from './NetworkManager';
2
1
  /**
3
2
  * Service types for different NetworkManager contexts
4
3
  */
@@ -14,7 +13,6 @@ export type ServiceType = typeof ServiceType[keyof typeof ServiceType];
14
13
  export interface ServiceNetworkManagerConfig {
15
14
  serviceType: ServiceType;
16
15
  externalBaseURL: string;
17
- environment?: WorkingEnvironment;
18
16
  defaultCacheDuration?: number;
19
17
  }
20
18
  /**
@@ -23,7 +21,6 @@ export interface ServiceNetworkManagerConfig {
23
21
  export interface IServiceNetworkManager {
24
22
  readonly serviceType: ServiceType;
25
23
  readonly externalBaseURL: string;
26
- getEnvironment(): WorkingEnvironment;
27
24
  externalApiRequest<T = any>(options: {
28
25
  endpoint: string;
29
26
  method?: string;
@@ -72,6 +69,5 @@ export type ServiceNetworkManager = IStatsNetworkManager | IBetsNetworkManager |
72
69
  * Factory configuration for different service types
73
70
  */
74
71
  export interface NetworkManagerFactoryConfig {
75
- environment?: WorkingEnvironment;
76
72
  defaultCacheDuration?: number;
77
73
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@maestro_io/maestro-web-sdk",
3
3
  "private": false,
4
- "version": "2.2.1",
4
+ "version": "2.2.2",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
7
7
  "main": "dist/maestro-web-sdk.umd.js",