@well-played.gg/react-sdk 1.0.0 → 1.1.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.
package/dist/index.d.ts CHANGED
@@ -15,6 +15,7 @@ import { OidcProviderProps } from '@axa-fr/react-oidc';
15
15
  import { PropsWithChildren } from 'react';
16
16
  import { readFragment } from 'gql.tada';
17
17
  import { ResultOf } from 'gql.tada';
18
+ import { StringMap } from '@axa-fr/react-oidc';
18
19
  import { TadaDocumentNode } from 'gql.tada';
19
20
  import { TypedDocumentNode } from '@graphql-typed-document-node/core';
20
21
  import { VariablesOf } from 'gql.tada';
@@ -403,6 +404,59 @@ after?: string | null | undefined;
403
404
  tournamentId: string;
404
405
  }, void>;
405
406
 
407
+ export declare const useConnectedPlayer: () => {
408
+ loading: boolean;
409
+ data: {
410
+ getMyAccount: {
411
+ id: string;
412
+ permissions: {
413
+ id: string;
414
+ resources: string[];
415
+ }[];
416
+ profiles: {
417
+ id: string;
418
+ username: string;
419
+ customFields: {
420
+ property: string;
421
+ value: string;
422
+ }[];
423
+ }[];
424
+ identities: {
425
+ properties: {
426
+ property: string;
427
+ value: string;
428
+ }[];
429
+ }[];
430
+ };
431
+ } | undefined;
432
+ refetch: (variables?: Partial<{}> | undefined) => Promise<ApolloQueryResult< {
433
+ getMyAccount: {
434
+ id: string;
435
+ permissions: {
436
+ id: string;
437
+ resources: string[];
438
+ }[];
439
+ profiles: {
440
+ id: string;
441
+ username: string;
442
+ customFields: {
443
+ property: string;
444
+ value: string;
445
+ }[];
446
+ }[];
447
+ identities: {
448
+ properties: {
449
+ property: string;
450
+ value: string;
451
+ }[];
452
+ }[];
453
+ };
454
+ }>>;
455
+ authenticated: boolean;
456
+ login: (callbackPath?: string | undefined, extras?: StringMap, silentLoginOnly?: boolean) => Promise<unknown>;
457
+ logout: (callbackPath?: string | null | undefined, extras?: StringMap) => Promise<void>;
458
+ };
459
+
406
460
  export declare const useOrganization: () => {
407
461
  loading: boolean;
408
462
  error: ApolloError | undefined;