@ludo.ninja/api 2.8.65 → 2.8.66

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.
@@ -1512,7 +1512,7 @@ export type IFetchAdminUsersPageQueryVariables = Exact<{
1512
1512
  }>;
1513
1513
  export type IFetchAdminUsersPageQuery = {
1514
1514
  fetchAdminUsersPage: {
1515
- users: Array<(Pick<IAdminUser, 'userId' | 'username' | 'connectedBlockchains' | 'isActive' | 'createdAt' | 'topInterests' | 'walletsValue' | 'xpLevel' | 'ludoRank' | 'inviterId'> & {
1515
+ users: Array<(Pick<IAdminUser, 'userId' | 'username' | 'connectedBlockchains' | 'isActive' | 'createdAt' | 'topInterests' | 'walletsValue' | 'xpLevel' | 'ludoRank' | 'inviterId' | 'ip' | 'location' | 'userLanguage'> & {
1516
1516
  wallets?: Maybe<Array<Pick<IWallet, 'address' | 'blockchain' | 'chainId'>>>;
1517
1517
  })>;
1518
1518
  nextPage?: Maybe<Pick<IAdminPage, 'num' | 'lastNum' | 'size' | 'elements' | 'token'>>;
@@ -1111,6 +1111,9 @@ exports.FetchAdminUsersPageDocument = (0, client_1.gql) `
1111
1111
  xpLevel
1112
1112
  ludoRank
1113
1113
  inviterId
1114
+ ip
1115
+ location
1116
+ userLanguage
1114
1117
  }
1115
1118
  nextPage {
1116
1119
  num
@@ -332,9 +332,15 @@ export declare const OnInviteCodeUsedDocument: Apollo.DocumentNode;
332
332
  * },
333
333
  * });
334
334
  */
335
- export declare function useOnInviteCodeUsedSubscription(baseOptions: Apollo.SubscriptionHookOptions<IOnInviteCodeUsedSubscription, IOnInviteCodeUsedSubscriptionVariables>): Apollo.SubscriptionResult<IOnInviteCodeUsedSubscription, Exact<{
336
- authToken: string;
337
- }>>;
335
+ export declare function useOnInviteCodeUsedSubscription(baseOptions: Apollo.SubscriptionHookOptions<IOnInviteCodeUsedSubscription, IOnInviteCodeUsedSubscriptionVariables>): {
336
+ restart(): void;
337
+ loading: boolean;
338
+ data?: IOnInviteCodeUsedSubscription | undefined;
339
+ error?: Apollo.ApolloError | undefined;
340
+ variables?: Exact<{
341
+ authToken: string;
342
+ }> | undefined;
343
+ };
338
344
  export type OnInviteCodeUsedSubscriptionHookResult = ReturnType<typeof useOnInviteCodeUsedSubscription>;
339
345
  export type OnInviteCodeUsedSubscriptionResult = Apollo.SubscriptionResult<IOnInviteCodeUsedSubscription>;
340
346
  export declare const OnMyExperienceIncrementedDocument: Apollo.DocumentNode;
@@ -354,9 +360,15 @@ export declare const OnMyExperienceIncrementedDocument: Apollo.DocumentNode;
354
360
  * },
355
361
  * });
356
362
  */
357
- export declare function useOnMyExperienceIncrementedSubscription(baseOptions: Apollo.SubscriptionHookOptions<IOnMyExperienceIncrementedSubscription, IOnMyExperienceIncrementedSubscriptionVariables>): Apollo.SubscriptionResult<IOnMyExperienceIncrementedSubscription, Exact<{
358
- authToken: string;
359
- }>>;
363
+ export declare function useOnMyExperienceIncrementedSubscription(baseOptions: Apollo.SubscriptionHookOptions<IOnMyExperienceIncrementedSubscription, IOnMyExperienceIncrementedSubscriptionVariables>): {
364
+ restart(): void;
365
+ loading: boolean;
366
+ data?: IOnMyExperienceIncrementedSubscription | undefined;
367
+ error?: Apollo.ApolloError | undefined;
368
+ variables?: Exact<{
369
+ authToken: string;
370
+ }> | undefined;
371
+ };
360
372
  export type OnMyExperienceIncrementedSubscriptionHookResult = ReturnType<typeof useOnMyExperienceIncrementedSubscription>;
361
373
  export type OnMyExperienceIncrementedSubscriptionResult = Apollo.SubscriptionResult<IOnMyExperienceIncrementedSubscription>;
362
374
  export declare const OnMyExperienceUpdatedDocument: Apollo.DocumentNode;
@@ -376,8 +388,14 @@ export declare const OnMyExperienceUpdatedDocument: Apollo.DocumentNode;
376
388
  * },
377
389
  * });
378
390
  */
379
- export declare function useOnMyExperienceUpdatedSubscription(baseOptions: Apollo.SubscriptionHookOptions<IOnMyExperienceUpdatedSubscription, IOnMyExperienceUpdatedSubscriptionVariables>): Apollo.SubscriptionResult<IOnMyExperienceUpdatedSubscription, Exact<{
380
- authToken: string;
381
- }>>;
391
+ export declare function useOnMyExperienceUpdatedSubscription(baseOptions: Apollo.SubscriptionHookOptions<IOnMyExperienceUpdatedSubscription, IOnMyExperienceUpdatedSubscriptionVariables>): {
392
+ restart(): void;
393
+ loading: boolean;
394
+ data?: IOnMyExperienceUpdatedSubscription | undefined;
395
+ error?: Apollo.ApolloError | undefined;
396
+ variables?: Exact<{
397
+ authToken: string;
398
+ }> | undefined;
399
+ };
382
400
  export type OnMyExperienceUpdatedSubscriptionHookResult = ReturnType<typeof useOnMyExperienceUpdatedSubscription>;
383
401
  export type OnMyExperienceUpdatedSubscriptionResult = Apollo.SubscriptionResult<IOnMyExperienceUpdatedSubscription>;
package/build/index.d.ts CHANGED
@@ -1032,19 +1032,37 @@ declare const schema: {
1032
1032
  }>>;
1033
1033
  useOnInviteCodeUsedSubscription(baseOptions: import("@apollo/client").SubscriptionHookOptions<experiencesSchema.IOnInviteCodeUsedSubscription, experiencesSchema.Exact<{
1034
1034
  authToken: string;
1035
- }>>): import("@apollo/client").SubscriptionResult<experiencesSchema.IOnInviteCodeUsedSubscription, experiencesSchema.Exact<{
1036
- authToken: string;
1037
- }>>;
1035
+ }>>): {
1036
+ restart(): void;
1037
+ loading: boolean;
1038
+ data?: experiencesSchema.IOnInviteCodeUsedSubscription | undefined;
1039
+ error?: import("@apollo/client").ApolloError | undefined;
1040
+ variables?: experiencesSchema.Exact<{
1041
+ authToken: string;
1042
+ }> | undefined;
1043
+ };
1038
1044
  useOnMyExperienceIncrementedSubscription(baseOptions: import("@apollo/client").SubscriptionHookOptions<experiencesSchema.IOnMyExperienceIncrementedSubscription, experiencesSchema.Exact<{
1039
1045
  authToken: string;
1040
- }>>): import("@apollo/client").SubscriptionResult<experiencesSchema.IOnMyExperienceIncrementedSubscription, experiencesSchema.Exact<{
1041
- authToken: string;
1042
- }>>;
1046
+ }>>): {
1047
+ restart(): void;
1048
+ loading: boolean;
1049
+ data?: experiencesSchema.IOnMyExperienceIncrementedSubscription | undefined;
1050
+ error?: import("@apollo/client").ApolloError | undefined;
1051
+ variables?: experiencesSchema.Exact<{
1052
+ authToken: string;
1053
+ }> | undefined;
1054
+ };
1043
1055
  useOnMyExperienceUpdatedSubscription(baseOptions: import("@apollo/client").SubscriptionHookOptions<experiencesSchema.IOnMyExperienceUpdatedSubscription, experiencesSchema.Exact<{
1044
1056
  authToken: string;
1045
- }>>): import("@apollo/client").SubscriptionResult<experiencesSchema.IOnMyExperienceUpdatedSubscription, experiencesSchema.Exact<{
1046
- authToken: string;
1047
- }>>;
1057
+ }>>): {
1058
+ restart(): void;
1059
+ loading: boolean;
1060
+ data?: experiencesSchema.IOnMyExperienceUpdatedSubscription | undefined;
1061
+ error?: import("@apollo/client").ApolloError | undefined;
1062
+ variables?: experiencesSchema.Exact<{
1063
+ authToken: string;
1064
+ }> | undefined;
1065
+ };
1048
1066
  FetchMyExperienceV2Document: import("graphql").DocumentNode;
1049
1067
  FetchMyTasksDocument: import("graphql").DocumentNode;
1050
1068
  OnInviteCodeUsedDocument: import("graphql").DocumentNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludo.ninja/api",
3
- "version": "2.8.65",
3
+ "version": "2.8.66",
4
4
  "main": "./build/index.js",
5
5
  "scripts": {
6
6
  "test": "jest",
@@ -11,11 +11,8 @@
11
11
  "author": "Dan Akenford",
12
12
  "license": "ISC",
13
13
  "dependencies": {
14
- "@apollo/client": "^3.7.3",
15
14
  "apollo-upload-client": "^17.0.0",
16
15
  "deepmerge": "^4.3.1",
17
- "graphql": "^15.7.2",
18
- "graphql-ws": "^5.14.3",
19
16
  "lodash.isequal": "^4.5.0",
20
17
  "nookies": "^2.5.2"
21
18
  },
@@ -1746,7 +1746,7 @@ export type IFetchAdminUsersPageQueryVariables = Exact<{
1746
1746
 
1747
1747
 
1748
1748
  export type IFetchAdminUsersPageQuery = { fetchAdminUsersPage: { users: Array<(
1749
- Pick<IAdminUser, 'userId' | 'username' | 'connectedBlockchains' | 'isActive' | 'createdAt' | 'topInterests' | 'walletsValue' | 'xpLevel' | 'ludoRank' | 'inviterId'>
1749
+ Pick<IAdminUser, 'userId' | 'username' | 'connectedBlockchains' | 'isActive' | 'createdAt' | 'topInterests' | 'walletsValue' | 'xpLevel' | 'ludoRank' | 'inviterId' | 'ip' | 'location' | 'userLanguage'>
1750
1750
  & { wallets?: Maybe<Array<Pick<IWallet, 'address' | 'blockchain' | 'chainId'>>> }
1751
1751
  )>, nextPage?: Maybe<Pick<IAdminPage, 'num' | 'lastNum' | 'size' | 'elements' | 'token'>> } };
1752
1752
 
@@ -2928,6 +2928,9 @@ export const FetchAdminUsersPageDocument = gql`
2928
2928
  xpLevel
2929
2929
  ludoRank
2930
2930
  inviterId
2931
+ ip
2932
+ location
2933
+ userLanguage
2931
2934
  }
2932
2935
  nextPage {
2933
2936
  num