@well-played.gg/react-sdk 1.2.0 → 1.2.1

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/dist/index.d.ts CHANGED
@@ -22,6 +22,8 @@ import { TadaDocumentNode } from 'gql.tada';
22
22
  import { TypedDocumentNode } from '@graphql-typed-document-node/core';
23
23
  import { VariablesOf } from 'gql.tada';
24
24
 
25
+ declare type ApiBaseUrl = "well-played.gg" | "stg.well-played.gg";
26
+
25
27
  declare type BaseGame = ResultOf<typeof TOURNAMENT_STEP_SHAPE_QUERY>["tournamentStepGeneratedShape"][0]["rounds"][0]["games"][0];
26
28
 
27
29
  declare type BaseGroup = ResultOf<typeof TOURNAMENT_STEP_SHAPE_QUERY>["tournamentStepGeneratedShape"][0];
@@ -42,6 +44,7 @@ declare type ClientProps = {
42
44
  onError?: EventErrorListener;
43
45
  };
44
46
  };
47
+ apiBaseUrl?: ApiBaseUrl;
45
48
  };
46
49
 
47
50
  export { FragmentOf }
@@ -597,6 +600,10 @@ declare type WPConfigProps = {
597
600
  * GraphQL client configurations
598
601
  */
599
602
  clientConfig?: Omit<ClientProps, "token">;
603
+ /**
604
+ * API Base URL
605
+ */
606
+ apiBaseUrl?: ApiBaseUrl;
600
607
  };
601
608
 
602
609
  export { }