@ludo.ninja/api 2.8.87 → 2.8.89

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 (38) hide show
  1. package/build/config/index.js +3 -2
  2. package/build/cookies/index.d.ts +1 -1
  3. package/build/graphql_tools/__generated__/adminHost/schema.d.ts +33 -33
  4. package/build/graphql_tools/__generated__/adminHost/schema.js +68 -66
  5. package/build/graphql_tools/__generated__/assetsHost/schema.d.ts +2 -2
  6. package/build/graphql_tools/__generated__/assetsHost/schema.js +3 -3
  7. package/build/graphql_tools/__generated__/authHost/schema.d.ts +2 -2
  8. package/build/graphql_tools/__generated__/authHost/schema.js +3 -3
  9. package/build/graphql_tools/__generated__/collectionsHost/schema.d.ts +2 -2
  10. package/build/graphql_tools/__generated__/collectionsHost/schema.js +3 -3
  11. package/build/graphql_tools/__generated__/experiencesHost/schema.d.ts +9 -9
  12. package/build/graphql_tools/__generated__/experiencesHost/schema.js +10 -10
  13. package/build/graphql_tools/__generated__/extensionHost/schema.d.ts +28 -28
  14. package/build/graphql_tools/__generated__/extensionHost/schema.js +18 -18
  15. package/build/graphql_tools/__generated__/formsHost/schema.js +8 -8
  16. package/build/graphql_tools/__generated__/galleriesHost/schema.d.ts +46 -46
  17. package/build/graphql_tools/__generated__/galleriesHost/schema.js +21 -21
  18. package/build/graphql_tools/__generated__/identityHost/schema.d.ts +52 -52
  19. package/build/graphql_tools/__generated__/identityHost/schema.js +32 -31
  20. package/build/graphql_tools/__generated__/mediasHost/schema.d.ts +5 -5
  21. package/build/graphql_tools/__generated__/mediasHost/schema.js +5 -5
  22. package/build/graphql_tools/__generated__/notificationsHost/schema.d.ts +4 -4
  23. package/build/graphql_tools/__generated__/notificationsHost/schema.js +3 -3
  24. package/build/graphql_tools/__generated__/opportunitiesHost/schema.d.ts +7 -7
  25. package/build/graphql_tools/__generated__/opportunitiesHost/schema.js +11 -11
  26. package/build/graphql_tools/__generated__/preferencesHost/schema.d.ts +2 -2
  27. package/build/graphql_tools/__generated__/preferencesHost/schema.js +23 -23
  28. package/build/graphql_tools/__generated__/searchHost/schema.d.ts +48 -48
  29. package/build/graphql_tools/__generated__/searchHost/schema.js +33 -33
  30. package/build/graphql_tools/__generated__/tapHost/schema.d.ts +14 -8
  31. package/build/graphql_tools/__generated__/tapHost/schema.js +18 -12
  32. package/build/hosts/index.d.ts +1 -1
  33. package/build/hosts/index.js +1 -1
  34. package/build/index.d.ts +1222 -573
  35. package/package.json +1 -1
  36. package/src/graphql_tools/__generated__/tapHost/schema.ts +14 -2
  37. package/src/hosts/index.ts +1 -1
  38. package/tsconfig.tsbuildinfo +1 -1
@@ -98,6 +98,9 @@ export type IPlayingStreak = {
98
98
  status: IPlayingStreakStatus;
99
99
  type: IPlayingStreakType;
100
100
  startedAt: Scalars['Long'];
101
+ reward: Scalars['Int'];
102
+ endedAt?: Maybe<Scalars['Long']>;
103
+ totalDays: Scalars['Int'];
101
104
  };
102
105
  /** Please, manually sync with PlayingStreakStatus.java */
103
106
  export declare enum IPlayingStreakStatus {
@@ -250,6 +253,9 @@ export type IPlayingStreakResolvers<ContextType = any, ParentType extends IResol
250
253
  status?: Resolver<IResolversTypes['PlayingStreakStatus'], ParentType, ContextType>;
251
254
  type?: Resolver<IResolversTypes['PlayingStreakType'], ParentType, ContextType>;
252
255
  startedAt?: Resolver<IResolversTypes['Long'], ParentType, ContextType>;
256
+ reward?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
257
+ endedAt?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
258
+ totalDays?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
253
259
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
254
260
  };
255
261
  export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
@@ -316,7 +322,7 @@ export type IFetchPlayerStateQueryVariables = Exact<{
316
322
  export type IFetchPlayerStateQuery = {
317
323
  fetchPlayerState: (Pick<IPlayerState, 'userId' | 'coins'> & {
318
324
  farmingTask?: Maybe<Pick<IFarmingTask, 'taskId' | 'status' | 'startedAt'>>;
319
- playingStreaks: Array<Pick<IPlayingStreak, 'streakId' | 'status' | 'type' | 'startedAt'>>;
325
+ playingStreaks: Array<Pick<IPlayingStreak, 'streakId' | 'status' | 'type' | 'startedAt' | 'reward' | 'endedAt' | 'totalDays'>>;
320
326
  notifications: Array<Pick<INotification, 'notificationId' | 'status' | 'text' | 'createdAt'>>;
321
327
  });
322
328
  };
@@ -326,7 +332,7 @@ export type IOnPlayerStateUpdatedSubscriptionVariables = Exact<{
326
332
  export type IOnPlayerStateUpdatedSubscription = {
327
333
  onPlayerStateUpdated: (Pick<IPlayerState, 'userId' | 'coins'> & {
328
334
  farmingTask?: Maybe<Pick<IFarmingTask, 'taskId' | 'status' | 'startedAt'>>;
329
- playingStreaks: Array<Pick<IPlayingStreak, 'streakId' | 'status' | 'type' | 'startedAt'>>;
335
+ playingStreaks: Array<Pick<IPlayingStreak, 'streakId' | 'status' | 'type' | 'startedAt' | 'reward' | 'endedAt' | 'totalDays'>>;
330
336
  notifications: Array<Pick<INotification, 'notificationId' | 'status' | 'text' | 'createdAt'>>;
331
337
  });
332
338
  };
@@ -374,7 +380,7 @@ export type IConfirmStreakNotificationHasBeenReadMutationFn = Apollo.MutationFun
374
380
  * });
375
381
  */
376
382
  export declare function useConfirmStreakNotificationHasBeenReadMutation(baseOptions?: Apollo.MutationHookOptions<IConfirmStreakNotificationHasBeenReadMutation, IConfirmStreakNotificationHasBeenReadMutationVariables>): Apollo.MutationTuple<IConfirmStreakNotificationHasBeenReadMutation, Exact<{
377
- streakId: Scalars["ID"];
383
+ streakId: string;
378
384
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
379
385
  export type ConfirmStreakNotificationHasBeenReadMutationHookResult = ReturnType<typeof useConfirmStreakNotificationHasBeenReadMutation>;
380
386
  export type ConfirmStreakNotificationHasBeenReadMutationResult = Apollo.MutationResult<IConfirmStreakNotificationHasBeenReadMutation>;
@@ -399,7 +405,7 @@ export type IMarkNotificationAsNewMutationFn = Apollo.MutationFunction<IMarkNoti
399
405
  * });
400
406
  */
401
407
  export declare function useMarkNotificationAsNewMutation(baseOptions?: Apollo.MutationHookOptions<IMarkNotificationAsNewMutation, IMarkNotificationAsNewMutationVariables>): Apollo.MutationTuple<IMarkNotificationAsNewMutation, Exact<{
402
- notificationId: Scalars["ID"];
408
+ notificationId: string;
403
409
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
404
410
  export type MarkNotificationAsNewMutationHookResult = ReturnType<typeof useMarkNotificationAsNewMutation>;
405
411
  export type MarkNotificationAsNewMutationResult = Apollo.MutationResult<IMarkNotificationAsNewMutation>;
@@ -424,7 +430,7 @@ export type IMarkNotificationAsReadMutationFn = Apollo.MutationFunction<IMarkNot
424
430
  * });
425
431
  */
426
432
  export declare function useMarkNotificationAsReadMutation(baseOptions?: Apollo.MutationHookOptions<IMarkNotificationAsReadMutation, IMarkNotificationAsReadMutationVariables>): Apollo.MutationTuple<IMarkNotificationAsReadMutation, Exact<{
427
- notificationId: Scalars["ID"];
433
+ notificationId: string;
428
434
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
429
435
  export type MarkNotificationAsReadMutationHookResult = ReturnType<typeof useMarkNotificationAsReadMutation>;
430
436
  export type MarkNotificationAsReadMutationResult = Apollo.MutationResult<IMarkNotificationAsReadMutation>;
@@ -449,7 +455,7 @@ export type IMarkNotificationAsShownMutationFn = Apollo.MutationFunction<IMarkNo
449
455
  * });
450
456
  */
451
457
  export declare function useMarkNotificationAsShownMutation(baseOptions?: Apollo.MutationHookOptions<IMarkNotificationAsShownMutation, IMarkNotificationAsShownMutationVariables>): Apollo.MutationTuple<IMarkNotificationAsShownMutation, Exact<{
452
- notificationId: Scalars["ID"];
458
+ notificationId: string;
453
459
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
454
460
  export type MarkNotificationAsShownMutationHookResult = ReturnType<typeof useMarkNotificationAsShownMutation>;
455
461
  export type MarkNotificationAsShownMutationResult = Apollo.MutationResult<IMarkNotificationAsShownMutation>;
@@ -549,9 +555,9 @@ export declare function useOnPlayerStateUpdatedSubscription(baseOptions: Apollo.
549
555
  restart(): void;
550
556
  loading: boolean;
551
557
  data?: IOnPlayerStateUpdatedSubscription | undefined;
552
- error?: Apollo.ApolloError;
558
+ error?: Apollo.ApolloError | undefined;
553
559
  variables?: Exact<{
554
- authToken: Scalars["String"];
560
+ authToken: string;
555
561
  }> | undefined;
556
562
  };
557
563
  export type OnPlayerStateUpdatedSubscriptionHookResult = ReturnType<typeof useOnPlayerStateUpdatedSubscription>;
@@ -23,18 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.OnPlayerStateUpdatedDocument = exports.FetchPlayerStateDocument = exports.FetchFrensDataDocument = exports.StartFarmingDocument = exports.MarkNotificationAsShownDocument = exports.MarkNotificationAsReadDocument = exports.MarkNotificationAsNewDocument = exports.ConfirmStreakNotificationHasBeenReadDocument = exports.ClaimFarmingRewardDocument = exports.IPlayingStreakType = exports.IPlayingStreakStatus = exports.INotificationStatus = exports.IFarmingStatus = void 0;
27
- exports.useClaimFarmingRewardMutation = useClaimFarmingRewardMutation;
28
- exports.useConfirmStreakNotificationHasBeenReadMutation = useConfirmStreakNotificationHasBeenReadMutation;
29
- exports.useMarkNotificationAsNewMutation = useMarkNotificationAsNewMutation;
30
- exports.useMarkNotificationAsReadMutation = useMarkNotificationAsReadMutation;
31
- exports.useMarkNotificationAsShownMutation = useMarkNotificationAsShownMutation;
32
- exports.useStartFarmingMutation = useStartFarmingMutation;
33
- exports.useFetchFrensDataQuery = useFetchFrensDataQuery;
34
- exports.useFetchFrensDataLazyQuery = useFetchFrensDataLazyQuery;
35
- exports.useFetchPlayerStateQuery = useFetchPlayerStateQuery;
36
- exports.useFetchPlayerStateLazyQuery = useFetchPlayerStateLazyQuery;
37
- exports.useOnPlayerStateUpdatedSubscription = useOnPlayerStateUpdatedSubscription;
26
+ exports.useOnPlayerStateUpdatedSubscription = exports.OnPlayerStateUpdatedDocument = exports.useFetchPlayerStateLazyQuery = exports.useFetchPlayerStateQuery = exports.FetchPlayerStateDocument = exports.useFetchFrensDataLazyQuery = exports.useFetchFrensDataQuery = exports.FetchFrensDataDocument = exports.useStartFarmingMutation = exports.StartFarmingDocument = exports.useMarkNotificationAsShownMutation = exports.MarkNotificationAsShownDocument = exports.useMarkNotificationAsReadMutation = exports.MarkNotificationAsReadDocument = exports.useMarkNotificationAsNewMutation = exports.MarkNotificationAsNewDocument = exports.useConfirmStreakNotificationHasBeenReadMutation = exports.ConfirmStreakNotificationHasBeenReadDocument = exports.useClaimFarmingRewardMutation = exports.ClaimFarmingRewardDocument = exports.IPlayingStreakType = exports.IPlayingStreakStatus = exports.INotificationStatus = exports.IFarmingStatus = void 0;
38
27
  const client_1 = require("@apollo/client");
39
28
  const Apollo = __importStar(require("@apollo/client"));
40
29
  /** Please, manually sync with FarmingStatus.java */
@@ -90,6 +79,7 @@ exports.ClaimFarmingRewardDocument = (0, client_1.gql) `
90
79
  function useClaimFarmingRewardMutation(baseOptions) {
91
80
  return Apollo.useMutation(exports.ClaimFarmingRewardDocument, baseOptions);
92
81
  }
82
+ exports.useClaimFarmingRewardMutation = useClaimFarmingRewardMutation;
93
83
  exports.ConfirmStreakNotificationHasBeenReadDocument = (0, client_1.gql) `
94
84
  mutation ConfirmStreakNotificationHasBeenRead($streakId: ID!) {
95
85
  confirmStreakNotificationHasBeenRead(streakId: $streakId)
@@ -115,6 +105,7 @@ exports.ConfirmStreakNotificationHasBeenReadDocument = (0, client_1.gql) `
115
105
  function useConfirmStreakNotificationHasBeenReadMutation(baseOptions) {
116
106
  return Apollo.useMutation(exports.ConfirmStreakNotificationHasBeenReadDocument, baseOptions);
117
107
  }
108
+ exports.useConfirmStreakNotificationHasBeenReadMutation = useConfirmStreakNotificationHasBeenReadMutation;
118
109
  exports.MarkNotificationAsNewDocument = (0, client_1.gql) `
119
110
  mutation MarkNotificationAsNew($notificationId: ID!) {
120
111
  markNotificationAsNew(notificationId: $notificationId)
@@ -140,6 +131,7 @@ exports.MarkNotificationAsNewDocument = (0, client_1.gql) `
140
131
  function useMarkNotificationAsNewMutation(baseOptions) {
141
132
  return Apollo.useMutation(exports.MarkNotificationAsNewDocument, baseOptions);
142
133
  }
134
+ exports.useMarkNotificationAsNewMutation = useMarkNotificationAsNewMutation;
143
135
  exports.MarkNotificationAsReadDocument = (0, client_1.gql) `
144
136
  mutation MarkNotificationAsRead($notificationId: ID!) {
145
137
  markNotificationAsRead(notificationId: $notificationId)
@@ -165,6 +157,7 @@ exports.MarkNotificationAsReadDocument = (0, client_1.gql) `
165
157
  function useMarkNotificationAsReadMutation(baseOptions) {
166
158
  return Apollo.useMutation(exports.MarkNotificationAsReadDocument, baseOptions);
167
159
  }
160
+ exports.useMarkNotificationAsReadMutation = useMarkNotificationAsReadMutation;
168
161
  exports.MarkNotificationAsShownDocument = (0, client_1.gql) `
169
162
  mutation MarkNotificationAsShown($notificationId: ID!) {
170
163
  markNotificationAsShown(notificationId: $notificationId)
@@ -190,6 +183,7 @@ exports.MarkNotificationAsShownDocument = (0, client_1.gql) `
190
183
  function useMarkNotificationAsShownMutation(baseOptions) {
191
184
  return Apollo.useMutation(exports.MarkNotificationAsShownDocument, baseOptions);
192
185
  }
186
+ exports.useMarkNotificationAsShownMutation = useMarkNotificationAsShownMutation;
193
187
  exports.StartFarmingDocument = (0, client_1.gql) `
194
188
  mutation StartFarming {
195
189
  startFarming
@@ -214,6 +208,7 @@ exports.StartFarmingDocument = (0, client_1.gql) `
214
208
  function useStartFarmingMutation(baseOptions) {
215
209
  return Apollo.useMutation(exports.StartFarmingDocument, baseOptions);
216
210
  }
211
+ exports.useStartFarmingMutation = useStartFarmingMutation;
217
212
  exports.FetchFrensDataDocument = (0, client_1.gql) `
218
213
  query FetchFrensData {
219
214
  fetchFrensData {
@@ -251,9 +246,11 @@ exports.FetchFrensDataDocument = (0, client_1.gql) `
251
246
  function useFetchFrensDataQuery(baseOptions) {
252
247
  return Apollo.useQuery(exports.FetchFrensDataDocument, baseOptions);
253
248
  }
249
+ exports.useFetchFrensDataQuery = useFetchFrensDataQuery;
254
250
  function useFetchFrensDataLazyQuery(baseOptions) {
255
251
  return Apollo.useLazyQuery(exports.FetchFrensDataDocument, baseOptions);
256
252
  }
253
+ exports.useFetchFrensDataLazyQuery = useFetchFrensDataLazyQuery;
257
254
  exports.FetchPlayerStateDocument = (0, client_1.gql) `
258
255
  query FetchPlayerState {
259
256
  fetchPlayerState {
@@ -269,6 +266,9 @@ exports.FetchPlayerStateDocument = (0, client_1.gql) `
269
266
  status
270
267
  type
271
268
  startedAt
269
+ reward
270
+ endedAt
271
+ totalDays
272
272
  }
273
273
  notifications {
274
274
  notificationId
@@ -297,9 +297,11 @@ exports.FetchPlayerStateDocument = (0, client_1.gql) `
297
297
  function useFetchPlayerStateQuery(baseOptions) {
298
298
  return Apollo.useQuery(exports.FetchPlayerStateDocument, baseOptions);
299
299
  }
300
+ exports.useFetchPlayerStateQuery = useFetchPlayerStateQuery;
300
301
  function useFetchPlayerStateLazyQuery(baseOptions) {
301
302
  return Apollo.useLazyQuery(exports.FetchPlayerStateDocument, baseOptions);
302
303
  }
304
+ exports.useFetchPlayerStateLazyQuery = useFetchPlayerStateLazyQuery;
303
305
  exports.OnPlayerStateUpdatedDocument = (0, client_1.gql) `
304
306
  subscription OnPlayerStateUpdated($authToken: String!) {
305
307
  onPlayerStateUpdated(authToken: $authToken) {
@@ -315,6 +317,9 @@ exports.OnPlayerStateUpdatedDocument = (0, client_1.gql) `
315
317
  status
316
318
  type
317
319
  startedAt
320
+ reward
321
+ endedAt
322
+ totalDays
318
323
  }
319
324
  notifications {
320
325
  notificationId
@@ -344,3 +349,4 @@ exports.OnPlayerStateUpdatedDocument = (0, client_1.gql) `
344
349
  function useOnPlayerStateUpdatedSubscription(baseOptions) {
345
350
  return Apollo.useSubscription(exports.OnPlayerStateUpdatedDocument, baseOptions);
346
351
  }
352
+ exports.useOnPlayerStateUpdatedSubscription = useOnPlayerStateUpdatedSubscription;
@@ -20,7 +20,7 @@ export declare const serverPreferencesHost = "http://server-preferences.istio.sv
20
20
  export declare const eventsHost = "wss://events.ludo.ninja:8090/subscriptions";
21
21
  export declare const experiencesSubscriptionHost = "wss://experiences.ludo.ninja:8090/subscriptions";
22
22
  export declare const notificationsSubscriptionHost = "wss://notifications.ludo.ninja:8090/subscriptions";
23
- export declare const notificationsHost = "'https://notifications.ludo.ninja:8090/graphql'";
23
+ export declare const notificationsHost = "https://notifications.ludo.ninja:8090/graphql";
24
24
  export declare const opportunitiesHost = "https://opportunities.ludo.ninja:8090/graphql";
25
25
  export declare const extensionHost = "https://chrome.ludo.ninja:8092/graphql";
26
26
  export declare const experiencesHost = "https://experiences.ludo.ninja:8090/graphql";
@@ -23,7 +23,7 @@ exports.serverPreferencesHost = "http://server-preferences.istio.svc.k8s.local:8
23
23
  exports.eventsHost = `wss://events.ludo.ninja:8090/subscriptions`;
24
24
  exports.experiencesSubscriptionHost = "wss://experiences.ludo.ninja:8090/subscriptions";
25
25
  exports.notificationsSubscriptionHost = "wss://notifications.ludo.ninja:8090/subscriptions";
26
- exports.notificationsHost = "'https://notifications.ludo.ninja:8090/graphql'";
26
+ exports.notificationsHost = "https://notifications.ludo.ninja:8090/graphql";
27
27
  exports.opportunitiesHost = "https://opportunities.ludo.ninja:8090/graphql";
28
28
  exports.extensionHost = "https://chrome.ludo.ninja:8092/graphql";
29
29
  exports.experiencesHost = "https://experiences.ludo.ninja:8090/graphql";