@ludo.ninja/api 3.0.38 → 3.0.39
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.
|
@@ -69,6 +69,7 @@ export type IMutation = {
|
|
|
69
69
|
markNotificationAsRead: Scalars['Boolean'];
|
|
70
70
|
markNotificationAsNew: Scalars['Boolean'];
|
|
71
71
|
registerTaps: IEnergy;
|
|
72
|
+
saveChatId: Scalars['Boolean'];
|
|
72
73
|
};
|
|
73
74
|
export type IMutationConfirmStreakNotificationHasBeenReadArgs = {
|
|
74
75
|
streakId: Scalars['ID'];
|
|
@@ -85,6 +86,9 @@ export type IMutationMarkNotificationAsNewArgs = {
|
|
|
85
86
|
export type IMutationRegisterTapsArgs = {
|
|
86
87
|
tapsNum?: Maybe<Scalars['Int']>;
|
|
87
88
|
};
|
|
89
|
+
export type IMutationSaveChatIdArgs = {
|
|
90
|
+
chatId: Scalars['Long'];
|
|
91
|
+
};
|
|
88
92
|
export type INotification = {
|
|
89
93
|
notificationId: Scalars['ID'];
|
|
90
94
|
status: INotificationStatus;
|
|
@@ -97,6 +101,29 @@ export declare enum INotificationStatus {
|
|
|
97
101
|
Shown = "SHOWN",
|
|
98
102
|
Read = "READ"
|
|
99
103
|
}
|
|
104
|
+
export type IOpportunityV2 = {
|
|
105
|
+
opportunityId?: Maybe<Scalars['ID']>;
|
|
106
|
+
brandId?: Maybe<Scalars['String']>;
|
|
107
|
+
categoryId?: Maybe<Scalars['String']>;
|
|
108
|
+
opportunityStatus?: Maybe<Scalars['String']>;
|
|
109
|
+
opportunityType?: Maybe<Scalars['String']>;
|
|
110
|
+
notificationType?: Maybe<Scalars['String']>;
|
|
111
|
+
name?: Maybe<Scalars['String']>;
|
|
112
|
+
description?: Maybe<Scalars['String']>;
|
|
113
|
+
brandName?: Maybe<Scalars['String']>;
|
|
114
|
+
brandDescription?: Maybe<Scalars['String']>;
|
|
115
|
+
brandMedia?: Maybe<Scalars['String']>;
|
|
116
|
+
brandUrl?: Maybe<Scalars['String']>;
|
|
117
|
+
brandIndustry?: Maybe<Scalars['String']>;
|
|
118
|
+
categoryName?: Maybe<Scalars['String']>;
|
|
119
|
+
ludoUrl?: Maybe<Scalars['String']>;
|
|
120
|
+
projectUrl?: Maybe<Scalars['String']>;
|
|
121
|
+
activeFrom?: Maybe<Scalars['Long']>;
|
|
122
|
+
activeUntil?: Maybe<Scalars['Long']>;
|
|
123
|
+
media?: Maybe<Scalars['String']>;
|
|
124
|
+
reportLink?: Maybe<Scalars['String']>;
|
|
125
|
+
shareLink?: Maybe<Scalars['String']>;
|
|
126
|
+
};
|
|
100
127
|
export type IPlayerState = {
|
|
101
128
|
userId: Scalars['ID'];
|
|
102
129
|
coins: Scalars['Int'];
|
|
@@ -132,6 +159,7 @@ export type IQuery = {
|
|
|
132
159
|
fetchPlayerState: IPlayerState;
|
|
133
160
|
fetchFrensData: IFrensData;
|
|
134
161
|
fetchEnergy: IEnergy;
|
|
162
|
+
fetchOpportunities?: Maybe<Array<Maybe<IOpportunityV2>>>;
|
|
135
163
|
};
|
|
136
164
|
export type ISubscription = {
|
|
137
165
|
onDummy: Scalars['String'];
|
|
@@ -183,6 +211,7 @@ export type IResolversTypes = {
|
|
|
183
211
|
Mutation: ResolverTypeWrapper<{}>;
|
|
184
212
|
Notification: ResolverTypeWrapper<INotification>;
|
|
185
213
|
NotificationStatus: INotificationStatus;
|
|
214
|
+
OpportunityV2: ResolverTypeWrapper<IOpportunityV2>;
|
|
186
215
|
PlayerState: ResolverTypeWrapper<IPlayerState>;
|
|
187
216
|
PlayingStreak: ResolverTypeWrapper<IPlayingStreak>;
|
|
188
217
|
PlayingStreakStatus: IPlayingStreakStatus;
|
|
@@ -205,6 +234,7 @@ export type IResolversParentTypes = {
|
|
|
205
234
|
Long: Scalars['Long'];
|
|
206
235
|
Mutation: {};
|
|
207
236
|
Notification: INotification;
|
|
237
|
+
OpportunityV2: IOpportunityV2;
|
|
208
238
|
PlayerState: IPlayerState;
|
|
209
239
|
PlayingStreak: IPlayingStreak;
|
|
210
240
|
Query: {};
|
|
@@ -258,6 +288,7 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
258
288
|
markNotificationAsRead?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationMarkNotificationAsReadArgs, 'notificationId'>>;
|
|
259
289
|
markNotificationAsNew?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationMarkNotificationAsNewArgs, 'notificationId'>>;
|
|
260
290
|
registerTaps?: Resolver<IResolversTypes['Energy'], ParentType, ContextType, Partial<IMutationRegisterTapsArgs>>;
|
|
291
|
+
saveChatId?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationSaveChatIdArgs, 'chatId'>>;
|
|
261
292
|
};
|
|
262
293
|
export type INotificationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Notification'] = IResolversParentTypes['Notification']> = {
|
|
263
294
|
notificationId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
@@ -266,6 +297,30 @@ export type INotificationResolvers<ContextType = any, ParentType extends IResolv
|
|
|
266
297
|
createdAt?: Resolver<IResolversTypes['Long'], ParentType, ContextType>;
|
|
267
298
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
268
299
|
};
|
|
300
|
+
export type IOpportunityV2Resolvers<ContextType = any, ParentType extends IResolversParentTypes['OpportunityV2'] = IResolversParentTypes['OpportunityV2']> = {
|
|
301
|
+
opportunityId?: Resolver<Maybe<IResolversTypes['ID']>, ParentType, ContextType>;
|
|
302
|
+
brandId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
303
|
+
categoryId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
304
|
+
opportunityStatus?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
305
|
+
opportunityType?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
306
|
+
notificationType?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
307
|
+
name?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
308
|
+
description?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
309
|
+
brandName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
310
|
+
brandDescription?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
311
|
+
brandMedia?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
312
|
+
brandUrl?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
313
|
+
brandIndustry?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
314
|
+
categoryName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
315
|
+
ludoUrl?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
316
|
+
projectUrl?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
317
|
+
activeFrom?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
318
|
+
activeUntil?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
319
|
+
media?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
320
|
+
reportLink?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
321
|
+
shareLink?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
322
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
323
|
+
};
|
|
269
324
|
export type IPlayerStateResolvers<ContextType = any, ParentType extends IResolversParentTypes['PlayerState'] = IResolversParentTypes['PlayerState']> = {
|
|
270
325
|
userId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
271
326
|
coins?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
@@ -290,6 +345,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
290
345
|
fetchPlayerState?: Resolver<IResolversTypes['PlayerState'], ParentType, ContextType>;
|
|
291
346
|
fetchFrensData?: Resolver<IResolversTypes['FrensData'], ParentType, ContextType>;
|
|
292
347
|
fetchEnergy?: Resolver<IResolversTypes['Energy'], ParentType, ContextType>;
|
|
348
|
+
fetchOpportunities?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType>;
|
|
293
349
|
};
|
|
294
350
|
export type ISubscriptionResolvers<ContextType = any, ParentType extends IResolversParentTypes['Subscription'] = IResolversParentTypes['Subscription']> = {
|
|
295
351
|
onDummy?: SubscriptionResolver<IResolversTypes['String'], "onDummy", ParentType, ContextType>;
|
|
@@ -304,6 +360,7 @@ export type IResolvers<ContextType = any> = {
|
|
|
304
360
|
Long?: GraphQLScalarType;
|
|
305
361
|
Mutation?: IMutationResolvers<ContextType>;
|
|
306
362
|
Notification?: INotificationResolvers<ContextType>;
|
|
363
|
+
OpportunityV2?: IOpportunityV2Resolvers<ContextType>;
|
|
307
364
|
PlayerState?: IPlayerStateResolvers<ContextType>;
|
|
308
365
|
PlayingStreak?: IPlayingStreakResolvers<ContextType>;
|
|
309
366
|
Query?: IQueryResolvers<ContextType>;
|
|
@@ -336,6 +393,12 @@ export type IStartFarmingMutationVariables = Exact<{
|
|
|
336
393
|
[key: string]: never;
|
|
337
394
|
}>;
|
|
338
395
|
export type IStartFarmingMutation = Pick<IMutation, 'startFarming'>;
|
|
396
|
+
export type IFetchOpportunitiesQueryVariables = Exact<{
|
|
397
|
+
[key: string]: never;
|
|
398
|
+
}>;
|
|
399
|
+
export type IFetchOpportunitiesQuery = {
|
|
400
|
+
fetchOpportunities?: 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'>>>>;
|
|
401
|
+
};
|
|
339
402
|
export type IFetchFrensDataQueryVariables = Exact<{
|
|
340
403
|
[key: string]: never;
|
|
341
404
|
}>;
|
|
@@ -513,6 +576,31 @@ export declare function useStartFarmingMutation(baseOptions?: Apollo.MutationHoo
|
|
|
513
576
|
export type StartFarmingMutationHookResult = ReturnType<typeof useStartFarmingMutation>;
|
|
514
577
|
export type StartFarmingMutationResult = Apollo.MutationResult<IStartFarmingMutation>;
|
|
515
578
|
export type StartFarmingMutationOptions = Apollo.BaseMutationOptions<IStartFarmingMutation, IStartFarmingMutationVariables>;
|
|
579
|
+
export declare const FetchOpportunitiesDocument: Apollo.DocumentNode;
|
|
580
|
+
/**
|
|
581
|
+
* __useFetchOpportunitiesQuery__
|
|
582
|
+
*
|
|
583
|
+
* To run a query within a React component, call `useFetchOpportunitiesQuery` and pass it any options that fit your needs.
|
|
584
|
+
* When your component renders, `useFetchOpportunitiesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
585
|
+
* you can use to render your UI.
|
|
586
|
+
*
|
|
587
|
+
* @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;
|
|
588
|
+
*
|
|
589
|
+
* @example
|
|
590
|
+
* const { data, loading, error } = useFetchOpportunitiesQuery({
|
|
591
|
+
* variables: {
|
|
592
|
+
* },
|
|
593
|
+
* });
|
|
594
|
+
*/
|
|
595
|
+
export declare function useFetchOpportunitiesQuery(baseOptions?: Apollo.QueryHookOptions<IFetchOpportunitiesQuery, IFetchOpportunitiesQueryVariables>): Apollo.QueryResult<IFetchOpportunitiesQuery, Exact<{
|
|
596
|
+
[key: string]: never;
|
|
597
|
+
}>>;
|
|
598
|
+
export declare function useFetchOpportunitiesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchOpportunitiesQuery, IFetchOpportunitiesQueryVariables>): Apollo.LazyQueryResultTuple<IFetchOpportunitiesQuery, Exact<{
|
|
599
|
+
[key: string]: never;
|
|
600
|
+
}>>;
|
|
601
|
+
export type FetchOpportunitiesQueryHookResult = ReturnType<typeof useFetchOpportunitiesQuery>;
|
|
602
|
+
export type FetchOpportunitiesLazyQueryHookResult = ReturnType<typeof useFetchOpportunitiesLazyQuery>;
|
|
603
|
+
export type FetchOpportunitiesQueryResult = Apollo.QueryResult<IFetchOpportunitiesQuery, IFetchOpportunitiesQueryVariables>;
|
|
516
604
|
export declare const FetchFrensDataDocument: Apollo.DocumentNode;
|
|
517
605
|
/**
|
|
518
606
|
* __useFetchFrensDataQuery__
|
|
@@ -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.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;
|
|
26
|
+
exports.useOnPlayerStateUpdatedSubscription = exports.OnPlayerStateUpdatedDocument = exports.useFetchPlayerStateLazyQuery = exports.useFetchPlayerStateQuery = exports.FetchPlayerStateDocument = exports.useFetchFrensDataLazyQuery = exports.useFetchFrensDataQuery = exports.FetchFrensDataDocument = exports.useFetchOpportunitiesLazyQuery = exports.useFetchOpportunitiesQuery = exports.FetchOpportunitiesDocument = 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;
|
|
27
27
|
const client_1 = require("@apollo/client");
|
|
28
28
|
const Apollo = __importStar(require("@apollo/client"));
|
|
29
29
|
/** Please, manually sync with FarmingStatus.java */
|
|
@@ -209,6 +209,56 @@ function useStartFarmingMutation(baseOptions) {
|
|
|
209
209
|
return Apollo.useMutation(exports.StartFarmingDocument, baseOptions);
|
|
210
210
|
}
|
|
211
211
|
exports.useStartFarmingMutation = useStartFarmingMutation;
|
|
212
|
+
exports.FetchOpportunitiesDocument = (0, client_1.gql) `
|
|
213
|
+
query FetchOpportunities {
|
|
214
|
+
fetchOpportunities {
|
|
215
|
+
opportunityId
|
|
216
|
+
brandId
|
|
217
|
+
categoryId
|
|
218
|
+
opportunityStatus
|
|
219
|
+
opportunityType
|
|
220
|
+
notificationType
|
|
221
|
+
name
|
|
222
|
+
description
|
|
223
|
+
brandName
|
|
224
|
+
brandDescription
|
|
225
|
+
brandMedia
|
|
226
|
+
brandUrl
|
|
227
|
+
brandIndustry
|
|
228
|
+
categoryName
|
|
229
|
+
ludoUrl
|
|
230
|
+
projectUrl
|
|
231
|
+
activeFrom
|
|
232
|
+
activeUntil
|
|
233
|
+
media
|
|
234
|
+
reportLink
|
|
235
|
+
shareLink
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
`;
|
|
239
|
+
/**
|
|
240
|
+
* __useFetchOpportunitiesQuery__
|
|
241
|
+
*
|
|
242
|
+
* To run a query within a React component, call `useFetchOpportunitiesQuery` and pass it any options that fit your needs.
|
|
243
|
+
* When your component renders, `useFetchOpportunitiesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
244
|
+
* you can use to render your UI.
|
|
245
|
+
*
|
|
246
|
+
* @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;
|
|
247
|
+
*
|
|
248
|
+
* @example
|
|
249
|
+
* const { data, loading, error } = useFetchOpportunitiesQuery({
|
|
250
|
+
* variables: {
|
|
251
|
+
* },
|
|
252
|
+
* });
|
|
253
|
+
*/
|
|
254
|
+
function useFetchOpportunitiesQuery(baseOptions) {
|
|
255
|
+
return Apollo.useQuery(exports.FetchOpportunitiesDocument, baseOptions);
|
|
256
|
+
}
|
|
257
|
+
exports.useFetchOpportunitiesQuery = useFetchOpportunitiesQuery;
|
|
258
|
+
function useFetchOpportunitiesLazyQuery(baseOptions) {
|
|
259
|
+
return Apollo.useLazyQuery(exports.FetchOpportunitiesDocument, baseOptions);
|
|
260
|
+
}
|
|
261
|
+
exports.useFetchOpportunitiesLazyQuery = useFetchOpportunitiesLazyQuery;
|
|
212
262
|
exports.FetchFrensDataDocument = (0, client_1.gql) `
|
|
213
263
|
query FetchFrensData {
|
|
214
264
|
fetchFrensData {
|
package/build/index.d.ts
CHANGED
|
@@ -81,6 +81,16 @@ declare const schema: {
|
|
|
81
81
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<tapsSchema.IStartFarmingMutation, tapsSchema.Exact<{
|
|
82
82
|
[key: string]: never;
|
|
83
83
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
84
|
+
useFetchOpportunitiesQuery(baseOptions?: import("@apollo/client").QueryHookOptions<tapsSchema.IFetchOpportunitiesQuery, tapsSchema.Exact<{
|
|
85
|
+
[key: string]: never;
|
|
86
|
+
}>> | undefined): import("@apollo/client").QueryResult<tapsSchema.IFetchOpportunitiesQuery, tapsSchema.Exact<{
|
|
87
|
+
[key: string]: never;
|
|
88
|
+
}>>;
|
|
89
|
+
useFetchOpportunitiesLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<tapsSchema.IFetchOpportunitiesQuery, tapsSchema.Exact<{
|
|
90
|
+
[key: string]: never;
|
|
91
|
+
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<tapsSchema.IFetchOpportunitiesQuery, tapsSchema.Exact<{
|
|
92
|
+
[key: string]: never;
|
|
93
|
+
}>>;
|
|
84
94
|
useFetchFrensDataQuery(baseOptions?: import("@apollo/client").QueryHookOptions<tapsSchema.IFetchFrensDataQuery, tapsSchema.Exact<{
|
|
85
95
|
[key: string]: never;
|
|
86
96
|
}>> | undefined): import("@apollo/client").QueryResult<tapsSchema.IFetchFrensDataQuery, tapsSchema.Exact<{
|
|
@@ -122,6 +132,7 @@ declare const schema: {
|
|
|
122
132
|
MarkNotificationAsReadDocument: import("graphql").DocumentNode;
|
|
123
133
|
MarkNotificationAsShownDocument: import("graphql").DocumentNode;
|
|
124
134
|
StartFarmingDocument: import("graphql").DocumentNode;
|
|
135
|
+
FetchOpportunitiesDocument: import("graphql").DocumentNode;
|
|
125
136
|
FetchFrensDataDocument: import("graphql").DocumentNode;
|
|
126
137
|
FetchPlayerStateDocument: import("graphql").DocumentNode;
|
|
127
138
|
OnPlayerStateUpdatedDocument: import("graphql").DocumentNode;
|
|
@@ -665,16 +676,6 @@ declare const schema: {
|
|
|
665
676
|
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<opportunitiesSchema.IFetchBrandBySlugQuery, opportunitiesSchema.Exact<{
|
|
666
677
|
slug: string;
|
|
667
678
|
}>>;
|
|
668
|
-
useFetchOpportunitiesQuery(baseOptions?: import("@apollo/client").QueryHookOptions<opportunitiesSchema.IFetchOpportunitiesQuery, opportunitiesSchema.Exact<{
|
|
669
|
-
domain?: opportunitiesSchema.Maybe<string> | undefined;
|
|
670
|
-
}>> | undefined): import("@apollo/client").QueryResult<opportunitiesSchema.IFetchOpportunitiesQuery, opportunitiesSchema.Exact<{
|
|
671
|
-
domain?: opportunitiesSchema.Maybe<string> | undefined;
|
|
672
|
-
}>>;
|
|
673
|
-
useFetchOpportunitiesLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<opportunitiesSchema.IFetchOpportunitiesQuery, opportunitiesSchema.Exact<{
|
|
674
|
-
domain?: opportunitiesSchema.Maybe<string> | undefined;
|
|
675
|
-
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<opportunitiesSchema.IFetchOpportunitiesQuery, opportunitiesSchema.Exact<{
|
|
676
|
-
domain?: opportunitiesSchema.Maybe<string> | undefined;
|
|
677
|
-
}>>;
|
|
678
679
|
useFetchOpportunityQuery(baseOptions: import("@apollo/client").QueryHookOptions<opportunitiesSchema.IFetchOpportunityQuery, opportunitiesSchema.Exact<{
|
|
679
680
|
opportunityId: string;
|
|
680
681
|
}>>): import("@apollo/client").QueryResult<opportunitiesSchema.IFetchOpportunityQuery, opportunitiesSchema.Exact<{
|
|
@@ -706,7 +707,6 @@ declare const schema: {
|
|
|
706
707
|
FetchOpportunitiesByIdsDocument: import("graphql").DocumentNode;
|
|
707
708
|
FetchOpportunitiesForProfileDocument: import("graphql").DocumentNode;
|
|
708
709
|
FetchBrandBySlugDocument: import("graphql").DocumentNode;
|
|
709
|
-
FetchOpportunitiesDocument: import("graphql").DocumentNode;
|
|
710
710
|
FetchOpportunityDocument: import("graphql").DocumentNode;
|
|
711
711
|
FetchProfileOpportunitiesDocument: import("graphql").DocumentNode;
|
|
712
712
|
useDeleteGalleryBannerMutation(baseOptions?: import("@apollo/client").MutationHookOptions<mediasSchema.IDeleteGalleryBannerMutation, mediasSchema.Exact<{
|
package/package.json
CHANGED
|
@@ -70,6 +70,7 @@ export type IMutation = {
|
|
|
70
70
|
markNotificationAsRead: Scalars['Boolean'];
|
|
71
71
|
markNotificationAsNew: Scalars['Boolean'];
|
|
72
72
|
registerTaps: IEnergy;
|
|
73
|
+
saveChatId: Scalars['Boolean'];
|
|
73
74
|
};
|
|
74
75
|
|
|
75
76
|
|
|
@@ -97,6 +98,11 @@ export type IMutationRegisterTapsArgs = {
|
|
|
97
98
|
tapsNum?: Maybe<Scalars['Int']>;
|
|
98
99
|
};
|
|
99
100
|
|
|
101
|
+
|
|
102
|
+
export type IMutationSaveChatIdArgs = {
|
|
103
|
+
chatId: Scalars['Long'];
|
|
104
|
+
};
|
|
105
|
+
|
|
100
106
|
export type INotification = {
|
|
101
107
|
notificationId: Scalars['ID'];
|
|
102
108
|
status: INotificationStatus;
|
|
@@ -111,6 +117,30 @@ export enum INotificationStatus {
|
|
|
111
117
|
Read = 'READ'
|
|
112
118
|
}
|
|
113
119
|
|
|
120
|
+
export type IOpportunityV2 = {
|
|
121
|
+
opportunityId?: Maybe<Scalars['ID']>;
|
|
122
|
+
brandId?: Maybe<Scalars['String']>;
|
|
123
|
+
categoryId?: Maybe<Scalars['String']>;
|
|
124
|
+
opportunityStatus?: Maybe<Scalars['String']>;
|
|
125
|
+
opportunityType?: Maybe<Scalars['String']>;
|
|
126
|
+
notificationType?: Maybe<Scalars['String']>;
|
|
127
|
+
name?: Maybe<Scalars['String']>;
|
|
128
|
+
description?: Maybe<Scalars['String']>;
|
|
129
|
+
brandName?: Maybe<Scalars['String']>;
|
|
130
|
+
brandDescription?: Maybe<Scalars['String']>;
|
|
131
|
+
brandMedia?: Maybe<Scalars['String']>;
|
|
132
|
+
brandUrl?: Maybe<Scalars['String']>;
|
|
133
|
+
brandIndustry?: Maybe<Scalars['String']>;
|
|
134
|
+
categoryName?: Maybe<Scalars['String']>;
|
|
135
|
+
ludoUrl?: Maybe<Scalars['String']>;
|
|
136
|
+
projectUrl?: Maybe<Scalars['String']>;
|
|
137
|
+
activeFrom?: Maybe<Scalars['Long']>;
|
|
138
|
+
activeUntil?: Maybe<Scalars['Long']>;
|
|
139
|
+
media?: Maybe<Scalars['String']>;
|
|
140
|
+
reportLink?: Maybe<Scalars['String']>;
|
|
141
|
+
shareLink?: Maybe<Scalars['String']>;
|
|
142
|
+
};
|
|
143
|
+
|
|
114
144
|
export type IPlayerState = {
|
|
115
145
|
userId: Scalars['ID'];
|
|
116
146
|
coins: Scalars['Int'];
|
|
@@ -150,6 +180,7 @@ export type IQuery = {
|
|
|
150
180
|
fetchPlayerState: IPlayerState;
|
|
151
181
|
fetchFrensData: IFrensData;
|
|
152
182
|
fetchEnergy: IEnergy;
|
|
183
|
+
fetchOpportunities?: Maybe<Array<Maybe<IOpportunityV2>>>;
|
|
153
184
|
};
|
|
154
185
|
|
|
155
186
|
export type ISubscription = {
|
|
@@ -246,6 +277,7 @@ export type IResolversTypes = {
|
|
|
246
277
|
Mutation: ResolverTypeWrapper<{}>;
|
|
247
278
|
Notification: ResolverTypeWrapper<INotification>;
|
|
248
279
|
NotificationStatus: INotificationStatus;
|
|
280
|
+
OpportunityV2: ResolverTypeWrapper<IOpportunityV2>;
|
|
249
281
|
PlayerState: ResolverTypeWrapper<IPlayerState>;
|
|
250
282
|
PlayingStreak: ResolverTypeWrapper<IPlayingStreak>;
|
|
251
283
|
PlayingStreakStatus: IPlayingStreakStatus;
|
|
@@ -269,6 +301,7 @@ export type IResolversParentTypes = {
|
|
|
269
301
|
Long: Scalars['Long'];
|
|
270
302
|
Mutation: {};
|
|
271
303
|
Notification: INotification;
|
|
304
|
+
OpportunityV2: IOpportunityV2;
|
|
272
305
|
PlayerState: IPlayerState;
|
|
273
306
|
PlayingStreak: IPlayingStreak;
|
|
274
307
|
Query: {};
|
|
@@ -331,6 +364,7 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
331
364
|
markNotificationAsRead?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationMarkNotificationAsReadArgs, 'notificationId'>>;
|
|
332
365
|
markNotificationAsNew?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationMarkNotificationAsNewArgs, 'notificationId'>>;
|
|
333
366
|
registerTaps?: Resolver<IResolversTypes['Energy'], ParentType, ContextType, Partial<IMutationRegisterTapsArgs>>;
|
|
367
|
+
saveChatId?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationSaveChatIdArgs, 'chatId'>>;
|
|
334
368
|
};
|
|
335
369
|
|
|
336
370
|
export type INotificationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Notification'] = IResolversParentTypes['Notification']> = {
|
|
@@ -341,6 +375,31 @@ export type INotificationResolvers<ContextType = any, ParentType extends IResolv
|
|
|
341
375
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
342
376
|
};
|
|
343
377
|
|
|
378
|
+
export type IOpportunityV2Resolvers<ContextType = any, ParentType extends IResolversParentTypes['OpportunityV2'] = IResolversParentTypes['OpportunityV2']> = {
|
|
379
|
+
opportunityId?: Resolver<Maybe<IResolversTypes['ID']>, ParentType, ContextType>;
|
|
380
|
+
brandId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
381
|
+
categoryId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
382
|
+
opportunityStatus?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
383
|
+
opportunityType?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
384
|
+
notificationType?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
385
|
+
name?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
386
|
+
description?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
387
|
+
brandName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
388
|
+
brandDescription?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
389
|
+
brandMedia?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
390
|
+
brandUrl?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
391
|
+
brandIndustry?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
392
|
+
categoryName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
393
|
+
ludoUrl?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
394
|
+
projectUrl?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
395
|
+
activeFrom?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
396
|
+
activeUntil?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
397
|
+
media?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
398
|
+
reportLink?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
399
|
+
shareLink?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
400
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
401
|
+
};
|
|
402
|
+
|
|
344
403
|
export type IPlayerStateResolvers<ContextType = any, ParentType extends IResolversParentTypes['PlayerState'] = IResolversParentTypes['PlayerState']> = {
|
|
345
404
|
userId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
346
405
|
coins?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
@@ -367,6 +426,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
367
426
|
fetchPlayerState?: Resolver<IResolversTypes['PlayerState'], ParentType, ContextType>;
|
|
368
427
|
fetchFrensData?: Resolver<IResolversTypes['FrensData'], ParentType, ContextType>;
|
|
369
428
|
fetchEnergy?: Resolver<IResolversTypes['Energy'], ParentType, ContextType>;
|
|
429
|
+
fetchOpportunities?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType>;
|
|
370
430
|
};
|
|
371
431
|
|
|
372
432
|
export type ISubscriptionResolvers<ContextType = any, ParentType extends IResolversParentTypes['Subscription'] = IResolversParentTypes['Subscription']> = {
|
|
@@ -383,6 +443,7 @@ export type IResolvers<ContextType = any> = {
|
|
|
383
443
|
Long?: GraphQLScalarType;
|
|
384
444
|
Mutation?: IMutationResolvers<ContextType>;
|
|
385
445
|
Notification?: INotificationResolvers<ContextType>;
|
|
446
|
+
OpportunityV2?: IOpportunityV2Resolvers<ContextType>;
|
|
386
447
|
PlayerState?: IPlayerStateResolvers<ContextType>;
|
|
387
448
|
PlayingStreak?: IPlayingStreakResolvers<ContextType>;
|
|
388
449
|
Query?: IQueryResolvers<ContextType>;
|
|
@@ -431,6 +492,11 @@ export type IStartFarmingMutationVariables = Exact<{ [key: string]: never; }>;
|
|
|
431
492
|
|
|
432
493
|
export type IStartFarmingMutation = Pick<IMutation, 'startFarming'>;
|
|
433
494
|
|
|
495
|
+
export type IFetchOpportunitiesQueryVariables = Exact<{ [key: string]: never; }>;
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
export type IFetchOpportunitiesQuery = { fetchOpportunities?: 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'>>>> };
|
|
499
|
+
|
|
434
500
|
export type IFetchFrensDataQueryVariables = Exact<{ [key: string]: never; }>;
|
|
435
501
|
|
|
436
502
|
|
|
@@ -636,6 +702,58 @@ export function useStartFarmingMutation(baseOptions?: Apollo.MutationHookOptions
|
|
|
636
702
|
export type StartFarmingMutationHookResult = ReturnType<typeof useStartFarmingMutation>;
|
|
637
703
|
export type StartFarmingMutationResult = Apollo.MutationResult<IStartFarmingMutation>;
|
|
638
704
|
export type StartFarmingMutationOptions = Apollo.BaseMutationOptions<IStartFarmingMutation, IStartFarmingMutationVariables>;
|
|
705
|
+
export const FetchOpportunitiesDocument = gql`
|
|
706
|
+
query FetchOpportunities {
|
|
707
|
+
fetchOpportunities {
|
|
708
|
+
opportunityId
|
|
709
|
+
brandId
|
|
710
|
+
categoryId
|
|
711
|
+
opportunityStatus
|
|
712
|
+
opportunityType
|
|
713
|
+
notificationType
|
|
714
|
+
name
|
|
715
|
+
description
|
|
716
|
+
brandName
|
|
717
|
+
brandDescription
|
|
718
|
+
brandMedia
|
|
719
|
+
brandUrl
|
|
720
|
+
brandIndustry
|
|
721
|
+
categoryName
|
|
722
|
+
ludoUrl
|
|
723
|
+
projectUrl
|
|
724
|
+
activeFrom
|
|
725
|
+
activeUntil
|
|
726
|
+
media
|
|
727
|
+
reportLink
|
|
728
|
+
shareLink
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
`;
|
|
732
|
+
|
|
733
|
+
/**
|
|
734
|
+
* __useFetchOpportunitiesQuery__
|
|
735
|
+
*
|
|
736
|
+
* To run a query within a React component, call `useFetchOpportunitiesQuery` and pass it any options that fit your needs.
|
|
737
|
+
* When your component renders, `useFetchOpportunitiesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
738
|
+
* you can use to render your UI.
|
|
739
|
+
*
|
|
740
|
+
* @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;
|
|
741
|
+
*
|
|
742
|
+
* @example
|
|
743
|
+
* const { data, loading, error } = useFetchOpportunitiesQuery({
|
|
744
|
+
* variables: {
|
|
745
|
+
* },
|
|
746
|
+
* });
|
|
747
|
+
*/
|
|
748
|
+
export function useFetchOpportunitiesQuery(baseOptions?: Apollo.QueryHookOptions<IFetchOpportunitiesQuery, IFetchOpportunitiesQueryVariables>) {
|
|
749
|
+
return Apollo.useQuery<IFetchOpportunitiesQuery, IFetchOpportunitiesQueryVariables>(FetchOpportunitiesDocument, baseOptions);
|
|
750
|
+
}
|
|
751
|
+
export function useFetchOpportunitiesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchOpportunitiesQuery, IFetchOpportunitiesQueryVariables>) {
|
|
752
|
+
return Apollo.useLazyQuery<IFetchOpportunitiesQuery, IFetchOpportunitiesQueryVariables>(FetchOpportunitiesDocument, baseOptions);
|
|
753
|
+
}
|
|
754
|
+
export type FetchOpportunitiesQueryHookResult = ReturnType<typeof useFetchOpportunitiesQuery>;
|
|
755
|
+
export type FetchOpportunitiesLazyQueryHookResult = ReturnType<typeof useFetchOpportunitiesLazyQuery>;
|
|
756
|
+
export type FetchOpportunitiesQueryResult = Apollo.QueryResult<IFetchOpportunitiesQuery, IFetchOpportunitiesQueryVariables>;
|
|
639
757
|
export const FetchFrensDataDocument = gql`
|
|
640
758
|
query FetchFrensData {
|
|
641
759
|
fetchFrensData {
|