@ludo.ninja/api 3.0.41 → 3.0.42
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.
|
@@ -154,12 +154,17 @@ export declare enum IPlayingStreakType {
|
|
|
154
154
|
A_21Days = "A_21_DAYS",
|
|
155
155
|
A_90Days = "A_90_DAYS"
|
|
156
156
|
}
|
|
157
|
+
export type IProfileOpportunities = {
|
|
158
|
+
newOpportunities?: Maybe<Array<Maybe<IOpportunityV2>>>;
|
|
159
|
+
recentOpportunities?: Maybe<Array<Maybe<IOpportunityV2>>>;
|
|
160
|
+
};
|
|
157
161
|
export type IQuery = {
|
|
158
162
|
getDummy: Scalars['String'];
|
|
159
163
|
fetchPlayerState: IPlayerState;
|
|
160
164
|
fetchFrensData: IFrensData;
|
|
161
165
|
fetchEnergy: IEnergy;
|
|
162
166
|
fetchOpportunities?: Maybe<Array<Maybe<IOpportunityV2>>>;
|
|
167
|
+
fetchProfileOpportunities: IProfileOpportunities;
|
|
163
168
|
};
|
|
164
169
|
export type ISubscription = {
|
|
165
170
|
onDummy: Scalars['String'];
|
|
@@ -216,6 +221,7 @@ export type IResolversTypes = {
|
|
|
216
221
|
PlayingStreak: ResolverTypeWrapper<IPlayingStreak>;
|
|
217
222
|
PlayingStreakStatus: IPlayingStreakStatus;
|
|
218
223
|
PlayingStreakType: IPlayingStreakType;
|
|
224
|
+
ProfileOpportunities: ResolverTypeWrapper<IProfileOpportunities>;
|
|
219
225
|
Query: ResolverTypeWrapper<{}>;
|
|
220
226
|
Subscription: ResolverTypeWrapper<{}>;
|
|
221
227
|
};
|
|
@@ -237,6 +243,7 @@ export type IResolversParentTypes = {
|
|
|
237
243
|
OpportunityV2: IOpportunityV2;
|
|
238
244
|
PlayerState: IPlayerState;
|
|
239
245
|
PlayingStreak: IPlayingStreak;
|
|
246
|
+
ProfileOpportunities: IProfileOpportunities;
|
|
240
247
|
Query: {};
|
|
241
248
|
Subscription: {};
|
|
242
249
|
};
|
|
@@ -340,12 +347,18 @@ export type IPlayingStreakResolvers<ContextType = any, ParentType extends IResol
|
|
|
340
347
|
totalDays?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
341
348
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
342
349
|
};
|
|
350
|
+
export type IProfileOpportunitiesResolvers<ContextType = any, ParentType extends IResolversParentTypes['ProfileOpportunities'] = IResolversParentTypes['ProfileOpportunities']> = {
|
|
351
|
+
newOpportunities?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType>;
|
|
352
|
+
recentOpportunities?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType>;
|
|
353
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
354
|
+
};
|
|
343
355
|
export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
|
|
344
356
|
getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
345
357
|
fetchPlayerState?: Resolver<IResolversTypes['PlayerState'], ParentType, ContextType>;
|
|
346
358
|
fetchFrensData?: Resolver<IResolversTypes['FrensData'], ParentType, ContextType>;
|
|
347
359
|
fetchEnergy?: Resolver<IResolversTypes['Energy'], ParentType, ContextType>;
|
|
348
360
|
fetchOpportunities?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType>;
|
|
361
|
+
fetchProfileOpportunities?: Resolver<IResolversTypes['ProfileOpportunities'], ParentType, ContextType>;
|
|
349
362
|
};
|
|
350
363
|
export type ISubscriptionResolvers<ContextType = any, ParentType extends IResolversParentTypes['Subscription'] = IResolversParentTypes['Subscription']> = {
|
|
351
364
|
onDummy?: SubscriptionResolver<IResolversTypes['String'], "onDummy", ParentType, ContextType>;
|
|
@@ -363,6 +376,7 @@ export type IResolvers<ContextType = any> = {
|
|
|
363
376
|
OpportunityV2?: IOpportunityV2Resolvers<ContextType>;
|
|
364
377
|
PlayerState?: IPlayerStateResolvers<ContextType>;
|
|
365
378
|
PlayingStreak?: IPlayingStreakResolvers<ContextType>;
|
|
379
|
+
ProfileOpportunities?: IProfileOpportunitiesResolvers<ContextType>;
|
|
366
380
|
Query?: IQueryResolvers<ContextType>;
|
|
367
381
|
Subscription?: ISubscriptionResolvers<ContextType>;
|
|
368
382
|
};
|
|
@@ -430,6 +444,15 @@ export type IFetchPlayerStateQuery = {
|
|
|
430
444
|
notifications: Array<Pick<INotification, 'notificationId' | 'status' | 'text' | 'createdAt'>>;
|
|
431
445
|
});
|
|
432
446
|
};
|
|
447
|
+
export type IFetchProfileOpportunitiesQueryVariables = Exact<{
|
|
448
|
+
[key: string]: never;
|
|
449
|
+
}>;
|
|
450
|
+
export type IFetchProfileOpportunitiesQuery = {
|
|
451
|
+
fetchProfileOpportunities: {
|
|
452
|
+
newOpportunities?: Maybe<Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'brandId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'brandName' | 'brandDescription' | 'brandMedia' | 'brandUrl' | 'brandIndustry' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'media' | 'reportLink' | 'shareLink'>>>>;
|
|
453
|
+
recentOpportunities?: Maybe<Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'brandId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'brandName' | 'brandDescription' | 'brandMedia' | 'brandUrl' | 'brandIndustry' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'media' | 'reportLink' | 'shareLink'>>>>;
|
|
454
|
+
};
|
|
455
|
+
};
|
|
433
456
|
export type IOnPlayerStateUpdatedSubscriptionVariables = Exact<{
|
|
434
457
|
authToken: Scalars['String'];
|
|
435
458
|
}>;
|
|
@@ -713,6 +736,31 @@ export declare function useFetchPlayerStateLazyQuery(baseOptions?: Apollo.LazyQu
|
|
|
713
736
|
export type FetchPlayerStateQueryHookResult = ReturnType<typeof useFetchPlayerStateQuery>;
|
|
714
737
|
export type FetchPlayerStateLazyQueryHookResult = ReturnType<typeof useFetchPlayerStateLazyQuery>;
|
|
715
738
|
export type FetchPlayerStateQueryResult = Apollo.QueryResult<IFetchPlayerStateQuery, IFetchPlayerStateQueryVariables>;
|
|
739
|
+
export declare const FetchProfileOpportunitiesDocument: Apollo.DocumentNode;
|
|
740
|
+
/**
|
|
741
|
+
* __useFetchProfileOpportunitiesQuery__
|
|
742
|
+
*
|
|
743
|
+
* To run a query within a React component, call `useFetchProfileOpportunitiesQuery` and pass it any options that fit your needs.
|
|
744
|
+
* When your component renders, `useFetchProfileOpportunitiesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
745
|
+
* you can use to render your UI.
|
|
746
|
+
*
|
|
747
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
748
|
+
*
|
|
749
|
+
* @example
|
|
750
|
+
* const { data, loading, error } = useFetchProfileOpportunitiesQuery({
|
|
751
|
+
* variables: {
|
|
752
|
+
* },
|
|
753
|
+
* });
|
|
754
|
+
*/
|
|
755
|
+
export declare function useFetchProfileOpportunitiesQuery(baseOptions?: Apollo.QueryHookOptions<IFetchProfileOpportunitiesQuery, IFetchProfileOpportunitiesQueryVariables>): Apollo.QueryResult<IFetchProfileOpportunitiesQuery, Exact<{
|
|
756
|
+
[key: string]: never;
|
|
757
|
+
}>>;
|
|
758
|
+
export declare function useFetchProfileOpportunitiesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchProfileOpportunitiesQuery, IFetchProfileOpportunitiesQueryVariables>): Apollo.LazyQueryResultTuple<IFetchProfileOpportunitiesQuery, Exact<{
|
|
759
|
+
[key: string]: never;
|
|
760
|
+
}>>;
|
|
761
|
+
export type FetchProfileOpportunitiesQueryHookResult = ReturnType<typeof useFetchProfileOpportunitiesQuery>;
|
|
762
|
+
export type FetchProfileOpportunitiesLazyQueryHookResult = ReturnType<typeof useFetchProfileOpportunitiesLazyQuery>;
|
|
763
|
+
export type FetchProfileOpportunitiesQueryResult = Apollo.QueryResult<IFetchProfileOpportunitiesQuery, IFetchProfileOpportunitiesQueryVariables>;
|
|
716
764
|
export declare const OnPlayerStateUpdatedDocument: Apollo.DocumentNode;
|
|
717
765
|
/**
|
|
718
766
|
* __useOnPlayerStateUpdatedSubscription__
|
|
@@ -23,7 +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.useOnPlayerStateUpdatedSubscription = exports.OnPlayerStateUpdatedDocument = exports.useFetchPlayerStateLazyQuery = exports.useFetchPlayerStateQuery = exports.FetchPlayerStateDocument = exports.useFetchFrensDataLazyQuery = exports.useFetchFrensDataQuery = exports.FetchFrensDataDocument = exports.useFetchEnergyLazyQuery = exports.useFetchEnergyQuery = exports.FetchEnergyDocument = exports.useFetchOpportunitiesLazyQuery = exports.useFetchOpportunitiesQuery = exports.FetchOpportunitiesDocument = exports.useStartFarmingMutation = exports.StartFarmingDocument = exports.useRegisterTapsMutation = exports.RegisterTapsDocument = 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;
|
|
26
|
+
exports.useOnPlayerStateUpdatedSubscription = exports.OnPlayerStateUpdatedDocument = exports.useFetchProfileOpportunitiesLazyQuery = exports.useFetchProfileOpportunitiesQuery = exports.FetchProfileOpportunitiesDocument = exports.useFetchPlayerStateLazyQuery = exports.useFetchPlayerStateQuery = exports.FetchPlayerStateDocument = exports.useFetchFrensDataLazyQuery = exports.useFetchFrensDataQuery = exports.FetchFrensDataDocument = exports.useFetchEnergyLazyQuery = exports.useFetchEnergyQuery = exports.FetchEnergyDocument = exports.useFetchOpportunitiesLazyQuery = exports.useFetchOpportunitiesQuery = exports.FetchOpportunitiesDocument = exports.useStartFarmingMutation = exports.StartFarmingDocument = exports.useRegisterTapsMutation = exports.RegisterTapsDocument = 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;
|
|
27
27
|
const client_1 = require("@apollo/client");
|
|
28
28
|
const Apollo = __importStar(require("@apollo/client"));
|
|
29
29
|
/** Please, manually sync with FarmingStatus.java */
|
|
@@ -416,6 +416,81 @@ function useFetchPlayerStateLazyQuery(baseOptions) {
|
|
|
416
416
|
return Apollo.useLazyQuery(exports.FetchPlayerStateDocument, baseOptions);
|
|
417
417
|
}
|
|
418
418
|
exports.useFetchPlayerStateLazyQuery = useFetchPlayerStateLazyQuery;
|
|
419
|
+
exports.FetchProfileOpportunitiesDocument = (0, client_1.gql) `
|
|
420
|
+
query FetchProfileOpportunities {
|
|
421
|
+
fetchProfileOpportunities {
|
|
422
|
+
newOpportunities {
|
|
423
|
+
opportunityId
|
|
424
|
+
brandId
|
|
425
|
+
categoryId
|
|
426
|
+
opportunityStatus
|
|
427
|
+
opportunityType
|
|
428
|
+
notificationType
|
|
429
|
+
name
|
|
430
|
+
description
|
|
431
|
+
brandName
|
|
432
|
+
brandDescription
|
|
433
|
+
brandMedia
|
|
434
|
+
brandUrl
|
|
435
|
+
brandIndustry
|
|
436
|
+
categoryName
|
|
437
|
+
ludoUrl
|
|
438
|
+
projectUrl
|
|
439
|
+
activeFrom
|
|
440
|
+
activeUntil
|
|
441
|
+
media
|
|
442
|
+
reportLink
|
|
443
|
+
shareLink
|
|
444
|
+
}
|
|
445
|
+
recentOpportunities {
|
|
446
|
+
opportunityId
|
|
447
|
+
brandId
|
|
448
|
+
categoryId
|
|
449
|
+
opportunityStatus
|
|
450
|
+
opportunityType
|
|
451
|
+
notificationType
|
|
452
|
+
name
|
|
453
|
+
description
|
|
454
|
+
brandName
|
|
455
|
+
brandDescription
|
|
456
|
+
brandMedia
|
|
457
|
+
brandUrl
|
|
458
|
+
brandIndustry
|
|
459
|
+
categoryName
|
|
460
|
+
ludoUrl
|
|
461
|
+
projectUrl
|
|
462
|
+
activeFrom
|
|
463
|
+
activeUntil
|
|
464
|
+
media
|
|
465
|
+
reportLink
|
|
466
|
+
shareLink
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
`;
|
|
471
|
+
/**
|
|
472
|
+
* __useFetchProfileOpportunitiesQuery__
|
|
473
|
+
*
|
|
474
|
+
* To run a query within a React component, call `useFetchProfileOpportunitiesQuery` and pass it any options that fit your needs.
|
|
475
|
+
* When your component renders, `useFetchProfileOpportunitiesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
476
|
+
* you can use to render your UI.
|
|
477
|
+
*
|
|
478
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
479
|
+
*
|
|
480
|
+
* @example
|
|
481
|
+
* const { data, loading, error } = useFetchProfileOpportunitiesQuery({
|
|
482
|
+
* variables: {
|
|
483
|
+
* },
|
|
484
|
+
* });
|
|
485
|
+
*/
|
|
486
|
+
function useFetchProfileOpportunitiesQuery(baseOptions) {
|
|
487
|
+
return Apollo.useQuery(exports.FetchProfileOpportunitiesDocument, baseOptions);
|
|
488
|
+
}
|
|
489
|
+
exports.useFetchProfileOpportunitiesQuery = useFetchProfileOpportunitiesQuery;
|
|
490
|
+
function useFetchProfileOpportunitiesLazyQuery(baseOptions) {
|
|
491
|
+
return Apollo.useLazyQuery(exports.FetchProfileOpportunitiesDocument, baseOptions);
|
|
492
|
+
}
|
|
493
|
+
exports.useFetchProfileOpportunitiesLazyQuery = useFetchProfileOpportunitiesLazyQuery;
|
|
419
494
|
exports.OnPlayerStateUpdatedDocument = (0, client_1.gql) `
|
|
420
495
|
subscription OnPlayerStateUpdated($authToken: String!) {
|
|
421
496
|
onPlayerStateUpdated(authToken: $authToken) {
|
package/build/index.d.ts
CHANGED
|
@@ -126,6 +126,16 @@ declare const schema: {
|
|
|
126
126
|
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<tapsSchema.IFetchPlayerStateQuery, tapsSchema.Exact<{
|
|
127
127
|
[key: string]: never;
|
|
128
128
|
}>>;
|
|
129
|
+
useFetchProfileOpportunitiesQuery(baseOptions?: import("@apollo/client").QueryHookOptions<tapsSchema.IFetchProfileOpportunitiesQuery, tapsSchema.Exact<{
|
|
130
|
+
[key: string]: never;
|
|
131
|
+
}>> | undefined): import("@apollo/client").QueryResult<tapsSchema.IFetchProfileOpportunitiesQuery, tapsSchema.Exact<{
|
|
132
|
+
[key: string]: never;
|
|
133
|
+
}>>;
|
|
134
|
+
useFetchProfileOpportunitiesLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<tapsSchema.IFetchProfileOpportunitiesQuery, tapsSchema.Exact<{
|
|
135
|
+
[key: string]: never;
|
|
136
|
+
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<tapsSchema.IFetchProfileOpportunitiesQuery, tapsSchema.Exact<{
|
|
137
|
+
[key: string]: never;
|
|
138
|
+
}>>;
|
|
129
139
|
useOnPlayerStateUpdatedSubscription(baseOptions: import("@apollo/client").SubscriptionHookOptions<tapsSchema.IOnPlayerStateUpdatedSubscription, tapsSchema.Exact<{
|
|
130
140
|
authToken: string;
|
|
131
141
|
}>>): {
|
|
@@ -152,6 +162,7 @@ declare const schema: {
|
|
|
152
162
|
FetchEnergyDocument: import("graphql").DocumentNode;
|
|
153
163
|
FetchFrensDataDocument: import("graphql").DocumentNode;
|
|
154
164
|
FetchPlayerStateDocument: import("graphql").DocumentNode;
|
|
165
|
+
FetchProfileOpportunitiesDocument: import("graphql").DocumentNode;
|
|
155
166
|
OnPlayerStateUpdatedDocument: import("graphql").DocumentNode;
|
|
156
167
|
useSubmitContactSupportMutation(baseOptions?: import("@apollo/client").MutationHookOptions<formsSchema.ISubmitContactSupportMutation, formsSchema.Exact<{
|
|
157
168
|
input: formsSchema.IContactSupportInput;
|
|
@@ -703,16 +714,6 @@ declare const schema: {
|
|
|
703
714
|
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<opportunitiesSchema.IFetchOpportunityQuery, opportunitiesSchema.Exact<{
|
|
704
715
|
opportunityId: string;
|
|
705
716
|
}>>;
|
|
706
|
-
useFetchProfileOpportunitiesQuery(baseOptions?: import("@apollo/client").QueryHookOptions<opportunitiesSchema.IFetchProfileOpportunitiesQuery, opportunitiesSchema.Exact<{
|
|
707
|
-
[key: string]: never;
|
|
708
|
-
}>> | undefined): import("@apollo/client").QueryResult<opportunitiesSchema.IFetchProfileOpportunitiesQuery, opportunitiesSchema.Exact<{
|
|
709
|
-
[key: string]: never;
|
|
710
|
-
}>>;
|
|
711
|
-
useFetchProfileOpportunitiesLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<opportunitiesSchema.IFetchProfileOpportunitiesQuery, opportunitiesSchema.Exact<{
|
|
712
|
-
[key: string]: never;
|
|
713
|
-
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<opportunitiesSchema.IFetchProfileOpportunitiesQuery, opportunitiesSchema.Exact<{
|
|
714
|
-
[key: string]: never;
|
|
715
|
-
}>>;
|
|
716
717
|
IOpportunityType: typeof opportunitiesSchema.IOpportunityType;
|
|
717
718
|
DislikeOpportunityDocument: import("graphql").DocumentNode;
|
|
718
719
|
LikeOpportunityDocument: import("graphql").DocumentNode;
|
|
@@ -725,7 +726,6 @@ declare const schema: {
|
|
|
725
726
|
FetchOpportunitiesForProfileDocument: import("graphql").DocumentNode;
|
|
726
727
|
FetchBrandBySlugDocument: import("graphql").DocumentNode;
|
|
727
728
|
FetchOpportunityDocument: import("graphql").DocumentNode;
|
|
728
|
-
FetchProfileOpportunitiesDocument: import("graphql").DocumentNode;
|
|
729
729
|
useDeleteGalleryBannerMutation(baseOptions?: import("@apollo/client").MutationHookOptions<mediasSchema.IDeleteGalleryBannerMutation, mediasSchema.Exact<{
|
|
730
730
|
galleryId: string;
|
|
731
731
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<mediasSchema.IDeleteGalleryBannerMutation, mediasSchema.Exact<{
|
package/package.json
CHANGED
|
@@ -175,12 +175,18 @@ export enum IPlayingStreakType {
|
|
|
175
175
|
A_90Days = 'A_90_DAYS'
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
+
export type IProfileOpportunities = {
|
|
179
|
+
newOpportunities?: Maybe<Array<Maybe<IOpportunityV2>>>;
|
|
180
|
+
recentOpportunities?: Maybe<Array<Maybe<IOpportunityV2>>>;
|
|
181
|
+
};
|
|
182
|
+
|
|
178
183
|
export type IQuery = {
|
|
179
184
|
getDummy: Scalars['String'];
|
|
180
185
|
fetchPlayerState: IPlayerState;
|
|
181
186
|
fetchFrensData: IFrensData;
|
|
182
187
|
fetchEnergy: IEnergy;
|
|
183
188
|
fetchOpportunities?: Maybe<Array<Maybe<IOpportunityV2>>>;
|
|
189
|
+
fetchProfileOpportunities: IProfileOpportunities;
|
|
184
190
|
};
|
|
185
191
|
|
|
186
192
|
export type ISubscription = {
|
|
@@ -282,6 +288,7 @@ export type IResolversTypes = {
|
|
|
282
288
|
PlayingStreak: ResolverTypeWrapper<IPlayingStreak>;
|
|
283
289
|
PlayingStreakStatus: IPlayingStreakStatus;
|
|
284
290
|
PlayingStreakType: IPlayingStreakType;
|
|
291
|
+
ProfileOpportunities: ResolverTypeWrapper<IProfileOpportunities>;
|
|
285
292
|
Query: ResolverTypeWrapper<{}>;
|
|
286
293
|
Subscription: ResolverTypeWrapper<{}>;
|
|
287
294
|
};
|
|
@@ -304,6 +311,7 @@ export type IResolversParentTypes = {
|
|
|
304
311
|
OpportunityV2: IOpportunityV2;
|
|
305
312
|
PlayerState: IPlayerState;
|
|
306
313
|
PlayingStreak: IPlayingStreak;
|
|
314
|
+
ProfileOpportunities: IProfileOpportunities;
|
|
307
315
|
Query: {};
|
|
308
316
|
Subscription: {};
|
|
309
317
|
};
|
|
@@ -421,12 +429,19 @@ export type IPlayingStreakResolvers<ContextType = any, ParentType extends IResol
|
|
|
421
429
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
422
430
|
};
|
|
423
431
|
|
|
432
|
+
export type IProfileOpportunitiesResolvers<ContextType = any, ParentType extends IResolversParentTypes['ProfileOpportunities'] = IResolversParentTypes['ProfileOpportunities']> = {
|
|
433
|
+
newOpportunities?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType>;
|
|
434
|
+
recentOpportunities?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType>;
|
|
435
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
436
|
+
};
|
|
437
|
+
|
|
424
438
|
export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
|
|
425
439
|
getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
426
440
|
fetchPlayerState?: Resolver<IResolversTypes['PlayerState'], ParentType, ContextType>;
|
|
427
441
|
fetchFrensData?: Resolver<IResolversTypes['FrensData'], ParentType, ContextType>;
|
|
428
442
|
fetchEnergy?: Resolver<IResolversTypes['Energy'], ParentType, ContextType>;
|
|
429
443
|
fetchOpportunities?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType>;
|
|
444
|
+
fetchProfileOpportunities?: Resolver<IResolversTypes['ProfileOpportunities'], ParentType, ContextType>;
|
|
430
445
|
};
|
|
431
446
|
|
|
432
447
|
export type ISubscriptionResolvers<ContextType = any, ParentType extends IResolversParentTypes['Subscription'] = IResolversParentTypes['Subscription']> = {
|
|
@@ -446,6 +461,7 @@ export type IResolvers<ContextType = any> = {
|
|
|
446
461
|
OpportunityV2?: IOpportunityV2Resolvers<ContextType>;
|
|
447
462
|
PlayerState?: IPlayerStateResolvers<ContextType>;
|
|
448
463
|
PlayingStreak?: IPlayingStreakResolvers<ContextType>;
|
|
464
|
+
ProfileOpportunities?: IProfileOpportunitiesResolvers<ContextType>;
|
|
449
465
|
Query?: IQueryResolvers<ContextType>;
|
|
450
466
|
Subscription?: ISubscriptionResolvers<ContextType>;
|
|
451
467
|
};
|
|
@@ -525,6 +541,11 @@ export type IFetchPlayerStateQuery = { fetchPlayerState: (
|
|
|
525
541
|
& { farmingTask?: Maybe<Pick<IFarmingTask, 'taskId' | 'status' | 'startedAt' | 'claimDelayMs' | 'rewardCoins'>>, playingStreaks: Array<Pick<IPlayingStreak, 'streakId' | 'status' | 'type' | 'startedAt' | 'reward' | 'endedAt' | 'totalDays'>>, notifications: Array<Pick<INotification, 'notificationId' | 'status' | 'text' | 'createdAt'>> }
|
|
526
542
|
) };
|
|
527
543
|
|
|
544
|
+
export type IFetchProfileOpportunitiesQueryVariables = Exact<{ [key: string]: never; }>;
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
export type IFetchProfileOpportunitiesQuery = { fetchProfileOpportunities: { newOpportunities?: Maybe<Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'brandId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'brandName' | 'brandDescription' | 'brandMedia' | 'brandUrl' | 'brandIndustry' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'media' | 'reportLink' | 'shareLink'>>>>, recentOpportunities?: Maybe<Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'brandId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'brandName' | 'brandDescription' | 'brandMedia' | 'brandUrl' | 'brandIndustry' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'media' | 'reportLink' | 'shareLink'>>>> } };
|
|
548
|
+
|
|
528
549
|
export type IOnPlayerStateUpdatedSubscriptionVariables = Exact<{
|
|
529
550
|
authToken: Scalars['String'];
|
|
530
551
|
}>;
|
|
@@ -933,6 +954,83 @@ export function useFetchPlayerStateLazyQuery(baseOptions?: Apollo.LazyQueryHookO
|
|
|
933
954
|
export type FetchPlayerStateQueryHookResult = ReturnType<typeof useFetchPlayerStateQuery>;
|
|
934
955
|
export type FetchPlayerStateLazyQueryHookResult = ReturnType<typeof useFetchPlayerStateLazyQuery>;
|
|
935
956
|
export type FetchPlayerStateQueryResult = Apollo.QueryResult<IFetchPlayerStateQuery, IFetchPlayerStateQueryVariables>;
|
|
957
|
+
export const FetchProfileOpportunitiesDocument = gql`
|
|
958
|
+
query FetchProfileOpportunities {
|
|
959
|
+
fetchProfileOpportunities {
|
|
960
|
+
newOpportunities {
|
|
961
|
+
opportunityId
|
|
962
|
+
brandId
|
|
963
|
+
categoryId
|
|
964
|
+
opportunityStatus
|
|
965
|
+
opportunityType
|
|
966
|
+
notificationType
|
|
967
|
+
name
|
|
968
|
+
description
|
|
969
|
+
brandName
|
|
970
|
+
brandDescription
|
|
971
|
+
brandMedia
|
|
972
|
+
brandUrl
|
|
973
|
+
brandIndustry
|
|
974
|
+
categoryName
|
|
975
|
+
ludoUrl
|
|
976
|
+
projectUrl
|
|
977
|
+
activeFrom
|
|
978
|
+
activeUntil
|
|
979
|
+
media
|
|
980
|
+
reportLink
|
|
981
|
+
shareLink
|
|
982
|
+
}
|
|
983
|
+
recentOpportunities {
|
|
984
|
+
opportunityId
|
|
985
|
+
brandId
|
|
986
|
+
categoryId
|
|
987
|
+
opportunityStatus
|
|
988
|
+
opportunityType
|
|
989
|
+
notificationType
|
|
990
|
+
name
|
|
991
|
+
description
|
|
992
|
+
brandName
|
|
993
|
+
brandDescription
|
|
994
|
+
brandMedia
|
|
995
|
+
brandUrl
|
|
996
|
+
brandIndustry
|
|
997
|
+
categoryName
|
|
998
|
+
ludoUrl
|
|
999
|
+
projectUrl
|
|
1000
|
+
activeFrom
|
|
1001
|
+
activeUntil
|
|
1002
|
+
media
|
|
1003
|
+
reportLink
|
|
1004
|
+
shareLink
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
`;
|
|
1009
|
+
|
|
1010
|
+
/**
|
|
1011
|
+
* __useFetchProfileOpportunitiesQuery__
|
|
1012
|
+
*
|
|
1013
|
+
* To run a query within a React component, call `useFetchProfileOpportunitiesQuery` and pass it any options that fit your needs.
|
|
1014
|
+
* When your component renders, `useFetchProfileOpportunitiesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1015
|
+
* you can use to render your UI.
|
|
1016
|
+
*
|
|
1017
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
1018
|
+
*
|
|
1019
|
+
* @example
|
|
1020
|
+
* const { data, loading, error } = useFetchProfileOpportunitiesQuery({
|
|
1021
|
+
* variables: {
|
|
1022
|
+
* },
|
|
1023
|
+
* });
|
|
1024
|
+
*/
|
|
1025
|
+
export function useFetchProfileOpportunitiesQuery(baseOptions?: Apollo.QueryHookOptions<IFetchProfileOpportunitiesQuery, IFetchProfileOpportunitiesQueryVariables>) {
|
|
1026
|
+
return Apollo.useQuery<IFetchProfileOpportunitiesQuery, IFetchProfileOpportunitiesQueryVariables>(FetchProfileOpportunitiesDocument, baseOptions);
|
|
1027
|
+
}
|
|
1028
|
+
export function useFetchProfileOpportunitiesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchProfileOpportunitiesQuery, IFetchProfileOpportunitiesQueryVariables>) {
|
|
1029
|
+
return Apollo.useLazyQuery<IFetchProfileOpportunitiesQuery, IFetchProfileOpportunitiesQueryVariables>(FetchProfileOpportunitiesDocument, baseOptions);
|
|
1030
|
+
}
|
|
1031
|
+
export type FetchProfileOpportunitiesQueryHookResult = ReturnType<typeof useFetchProfileOpportunitiesQuery>;
|
|
1032
|
+
export type FetchProfileOpportunitiesLazyQueryHookResult = ReturnType<typeof useFetchProfileOpportunitiesLazyQuery>;
|
|
1033
|
+
export type FetchProfileOpportunitiesQueryResult = Apollo.QueryResult<IFetchProfileOpportunitiesQuery, IFetchProfileOpportunitiesQueryVariables>;
|
|
936
1034
|
export const OnPlayerStateUpdatedDocument = gql`
|
|
937
1035
|
subscription OnPlayerStateUpdated($authToken: String!) {
|
|
938
1036
|
onPlayerStateUpdated(authToken: $authToken) {
|