@ludo.ninja/api 3.0.9 → 3.0.11
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/build/graphql_tools/__generated__/experiencesHost/schema.d.ts +29 -0
- package/build/graphql_tools/__generated__/experiencesHost/schema.js +29 -1
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.d.ts +34 -0
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.js +83 -1
- package/build/index.d.ts +22 -0
- package/package.json +1 -1
- package/src/graphql_tools/__generated__/experiencesHost/schema.ts +35 -0
- package/src/graphql_tools/__generated__/opportunitiesHost/schema.ts +95 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -243,6 +243,10 @@ export type IFetchMyExperienceV2QueryVariables = Exact<{
|
|
|
243
243
|
export type IFetchMyExperienceV2Query = {
|
|
244
244
|
fetchMyExperienceV2: Pick<IUserXp, 'xps' | 'level' | 'levelMaxXps' | 'levelMinXps'>;
|
|
245
245
|
};
|
|
246
|
+
export type IFetchMyMonthReferralsXpsQueryVariables = Exact<{
|
|
247
|
+
[key: string]: never;
|
|
248
|
+
}>;
|
|
249
|
+
export type IFetchMyMonthReferralsXpsQuery = Pick<IQuery, 'fetchMyMonthReferralsXps'>;
|
|
246
250
|
export type IFetchMyTasksQueryVariables = Exact<{
|
|
247
251
|
[key: string]: never;
|
|
248
252
|
}>;
|
|
@@ -304,6 +308,31 @@ export declare function useFetchMyExperienceV2LazyQuery(baseOptions?: Apollo.Laz
|
|
|
304
308
|
export type FetchMyExperienceV2QueryHookResult = ReturnType<typeof useFetchMyExperienceV2Query>;
|
|
305
309
|
export type FetchMyExperienceV2LazyQueryHookResult = ReturnType<typeof useFetchMyExperienceV2LazyQuery>;
|
|
306
310
|
export type FetchMyExperienceV2QueryResult = Apollo.QueryResult<IFetchMyExperienceV2Query, IFetchMyExperienceV2QueryVariables>;
|
|
311
|
+
export declare const FetchMyMonthReferralsXpsDocument: Apollo.DocumentNode;
|
|
312
|
+
/**
|
|
313
|
+
* __useFetchMyMonthReferralsXpsQuery__
|
|
314
|
+
*
|
|
315
|
+
* To run a query within a React component, call `useFetchMyMonthReferralsXpsQuery` and pass it any options that fit your needs.
|
|
316
|
+
* When your component renders, `useFetchMyMonthReferralsXpsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
317
|
+
* you can use to render your UI.
|
|
318
|
+
*
|
|
319
|
+
* @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;
|
|
320
|
+
*
|
|
321
|
+
* @example
|
|
322
|
+
* const { data, loading, error } = useFetchMyMonthReferralsXpsQuery({
|
|
323
|
+
* variables: {
|
|
324
|
+
* },
|
|
325
|
+
* });
|
|
326
|
+
*/
|
|
327
|
+
export declare function useFetchMyMonthReferralsXpsQuery(baseOptions?: Apollo.QueryHookOptions<IFetchMyMonthReferralsXpsQuery, IFetchMyMonthReferralsXpsQueryVariables>): Apollo.QueryResult<IFetchMyMonthReferralsXpsQuery, Exact<{
|
|
328
|
+
[key: string]: never;
|
|
329
|
+
}>>;
|
|
330
|
+
export declare function useFetchMyMonthReferralsXpsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchMyMonthReferralsXpsQuery, IFetchMyMonthReferralsXpsQueryVariables>): Apollo.LazyQueryResultTuple<IFetchMyMonthReferralsXpsQuery, Exact<{
|
|
331
|
+
[key: string]: never;
|
|
332
|
+
}>>;
|
|
333
|
+
export type FetchMyMonthReferralsXpsQueryHookResult = ReturnType<typeof useFetchMyMonthReferralsXpsQuery>;
|
|
334
|
+
export type FetchMyMonthReferralsXpsLazyQueryHookResult = ReturnType<typeof useFetchMyMonthReferralsXpsLazyQuery>;
|
|
335
|
+
export type FetchMyMonthReferralsXpsQueryResult = Apollo.QueryResult<IFetchMyMonthReferralsXpsQuery, IFetchMyMonthReferralsXpsQueryVariables>;
|
|
307
336
|
export declare const FetchMyTasksDocument: Apollo.DocumentNode;
|
|
308
337
|
/**
|
|
309
338
|
* __useFetchMyTasksQuery__
|
|
@@ -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.useOnUserOpportunityNotificationSubscription = exports.OnUserOpportunityNotificationDocument = exports.useOnMyExperienceUpdatedSubscription = exports.OnMyExperienceUpdatedDocument = exports.useOnMyExperienceIncrementedSubscription = exports.OnMyExperienceIncrementedDocument = exports.useOnInviteCodeUsedSubscription = exports.OnInviteCodeUsedDocument = exports.useOnCommonOpportunityNotificationSubscription = exports.OnCommonOpportunityNotificationDocument = exports.useFetchMyTasksLazyQuery = exports.useFetchMyTasksQuery = exports.FetchMyTasksDocument = exports.useFetchMyExperienceV2LazyQuery = exports.useFetchMyExperienceV2Query = exports.FetchMyExperienceV2Document = void 0;
|
|
26
|
+
exports.useOnUserOpportunityNotificationSubscription = exports.OnUserOpportunityNotificationDocument = exports.useOnMyExperienceUpdatedSubscription = exports.OnMyExperienceUpdatedDocument = exports.useOnMyExperienceIncrementedSubscription = exports.OnMyExperienceIncrementedDocument = exports.useOnInviteCodeUsedSubscription = exports.OnInviteCodeUsedDocument = exports.useOnCommonOpportunityNotificationSubscription = exports.OnCommonOpportunityNotificationDocument = exports.useFetchMyTasksLazyQuery = exports.useFetchMyTasksQuery = exports.FetchMyTasksDocument = exports.useFetchMyMonthReferralsXpsLazyQuery = exports.useFetchMyMonthReferralsXpsQuery = exports.FetchMyMonthReferralsXpsDocument = exports.useFetchMyExperienceV2LazyQuery = exports.useFetchMyExperienceV2Query = exports.FetchMyExperienceV2Document = void 0;
|
|
27
27
|
const client_1 = require("@apollo/client");
|
|
28
28
|
const Apollo = __importStar(require("@apollo/client"));
|
|
29
29
|
exports.FetchMyExperienceV2Document = (0, client_1.gql) `
|
|
@@ -59,6 +59,34 @@ function useFetchMyExperienceV2LazyQuery(baseOptions) {
|
|
|
59
59
|
return Apollo.useLazyQuery(exports.FetchMyExperienceV2Document, baseOptions);
|
|
60
60
|
}
|
|
61
61
|
exports.useFetchMyExperienceV2LazyQuery = useFetchMyExperienceV2LazyQuery;
|
|
62
|
+
exports.FetchMyMonthReferralsXpsDocument = (0, client_1.gql) `
|
|
63
|
+
query FetchMyMonthReferralsXps {
|
|
64
|
+
fetchMyMonthReferralsXps
|
|
65
|
+
}
|
|
66
|
+
`;
|
|
67
|
+
/**
|
|
68
|
+
* __useFetchMyMonthReferralsXpsQuery__
|
|
69
|
+
*
|
|
70
|
+
* To run a query within a React component, call `useFetchMyMonthReferralsXpsQuery` and pass it any options that fit your needs.
|
|
71
|
+
* When your component renders, `useFetchMyMonthReferralsXpsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
72
|
+
* you can use to render your UI.
|
|
73
|
+
*
|
|
74
|
+
* @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;
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* const { data, loading, error } = useFetchMyMonthReferralsXpsQuery({
|
|
78
|
+
* variables: {
|
|
79
|
+
* },
|
|
80
|
+
* });
|
|
81
|
+
*/
|
|
82
|
+
function useFetchMyMonthReferralsXpsQuery(baseOptions) {
|
|
83
|
+
return Apollo.useQuery(exports.FetchMyMonthReferralsXpsDocument, baseOptions);
|
|
84
|
+
}
|
|
85
|
+
exports.useFetchMyMonthReferralsXpsQuery = useFetchMyMonthReferralsXpsQuery;
|
|
86
|
+
function useFetchMyMonthReferralsXpsLazyQuery(baseOptions) {
|
|
87
|
+
return Apollo.useLazyQuery(exports.FetchMyMonthReferralsXpsDocument, baseOptions);
|
|
88
|
+
}
|
|
89
|
+
exports.useFetchMyMonthReferralsXpsLazyQuery = useFetchMyMonthReferralsXpsLazyQuery;
|
|
62
90
|
exports.FetchMyTasksDocument = (0, client_1.gql) `
|
|
63
91
|
query FetchMyTasks {
|
|
64
92
|
fetchMyTasks {
|
|
@@ -480,6 +480,14 @@ export type IFetchOpportunitiesQuery = {
|
|
|
480
480
|
similarOpportunities?: Maybe<Array<Maybe<Pick<IOpportunity, 'opportunityId' | 'name' | 'description' | 'startedAt' | 'endedAt' | 'createdAt' | 'tags' | 'category' | 'media' | 'links' | 'ludoRankRequired' | 'ludoRankRequiredMin' | 'ludoRankRequiredMax' | 'rewardType' | 'creatorId' | 'creatorWallet' | 'status'>>>>;
|
|
481
481
|
};
|
|
482
482
|
};
|
|
483
|
+
export type IFetchOpportunityQueryVariables = Exact<{
|
|
484
|
+
opportunityId: Scalars['ID'];
|
|
485
|
+
}>;
|
|
486
|
+
export type IFetchOpportunityQuery = {
|
|
487
|
+
fetchOpportunity: (Pick<IOpportunityV2, 'opportunityId' | 'brandId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'brandName' | 'brandDescription' | 'brandMedia' | 'brandUrl' | 'brandIndustry' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'blockchains' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked' | 'geolocations'> & {
|
|
488
|
+
brand: Pick<IBrand, 'brandId' | 'name' | 'description' | 'industry' | 'link' | 'media' | 'archived' | 'addedBy' | 'matchingWords' | 'discord' | 'telegram' | 'twitter' | 'facebook' | 'linkedin' | 'youtube'>;
|
|
489
|
+
});
|
|
490
|
+
};
|
|
483
491
|
export declare const DislikeOpportunityDocument: Apollo.DocumentNode;
|
|
484
492
|
export type IDislikeOpportunityMutationFn = Apollo.MutationFunction<IDislikeOpportunityMutation, IDislikeOpportunityMutationVariables>;
|
|
485
493
|
/**
|
|
@@ -657,3 +665,29 @@ export declare function useFetchOpportunitiesLazyQuery(baseOptions?: Apollo.Lazy
|
|
|
657
665
|
export type FetchOpportunitiesQueryHookResult = ReturnType<typeof useFetchOpportunitiesQuery>;
|
|
658
666
|
export type FetchOpportunitiesLazyQueryHookResult = ReturnType<typeof useFetchOpportunitiesLazyQuery>;
|
|
659
667
|
export type FetchOpportunitiesQueryResult = Apollo.QueryResult<IFetchOpportunitiesQuery, IFetchOpportunitiesQueryVariables>;
|
|
668
|
+
export declare const FetchOpportunityDocument: Apollo.DocumentNode;
|
|
669
|
+
/**
|
|
670
|
+
* __useFetchOpportunityQuery__
|
|
671
|
+
*
|
|
672
|
+
* To run a query within a React component, call `useFetchOpportunityQuery` and pass it any options that fit your needs.
|
|
673
|
+
* When your component renders, `useFetchOpportunityQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
674
|
+
* you can use to render your UI.
|
|
675
|
+
*
|
|
676
|
+
* @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;
|
|
677
|
+
*
|
|
678
|
+
* @example
|
|
679
|
+
* const { data, loading, error } = useFetchOpportunityQuery({
|
|
680
|
+
* variables: {
|
|
681
|
+
* opportunityId: // value for 'opportunityId'
|
|
682
|
+
* },
|
|
683
|
+
* });
|
|
684
|
+
*/
|
|
685
|
+
export declare function useFetchOpportunityQuery(baseOptions: Apollo.QueryHookOptions<IFetchOpportunityQuery, IFetchOpportunityQueryVariables>): Apollo.QueryResult<IFetchOpportunityQuery, Exact<{
|
|
686
|
+
opportunityId: string;
|
|
687
|
+
}>>;
|
|
688
|
+
export declare function useFetchOpportunityLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchOpportunityQuery, IFetchOpportunityQueryVariables>): Apollo.LazyQueryResultTuple<IFetchOpportunityQuery, Exact<{
|
|
689
|
+
opportunityId: string;
|
|
690
|
+
}>>;
|
|
691
|
+
export type FetchOpportunityQueryHookResult = ReturnType<typeof useFetchOpportunityQuery>;
|
|
692
|
+
export type FetchOpportunityLazyQueryHookResult = ReturnType<typeof useFetchOpportunityLazyQuery>;
|
|
693
|
+
export type FetchOpportunityQueryResult = Apollo.QueryResult<IFetchOpportunityQuery, IFetchOpportunityQueryVariables>;
|
|
@@ -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.useFetchOpportunitiesLazyQuery = exports.useFetchOpportunitiesQuery = exports.FetchOpportunitiesDocument = exports.useFetchOpportunitiesForProfileLazyQuery = exports.useFetchOpportunitiesForProfileQuery = exports.FetchOpportunitiesForProfileDocument = exports.useFetchOpportunitiesByIdsLazyQuery = exports.useFetchOpportunitiesByIdsQuery = exports.FetchOpportunitiesByIdsDocument = exports.useOpenOpportunityMutation = exports.OpenOpportunityDocument = exports.useCreateOpportunityMutation = exports.CreateOpportunityDocument = exports.useLikeOpportunityMutation = exports.LikeOpportunityDocument = exports.useDislikeOpportunityMutation = exports.DislikeOpportunityDocument = void 0;
|
|
26
|
+
exports.useFetchOpportunityLazyQuery = exports.useFetchOpportunityQuery = exports.FetchOpportunityDocument = exports.useFetchOpportunitiesLazyQuery = exports.useFetchOpportunitiesQuery = exports.FetchOpportunitiesDocument = exports.useFetchOpportunitiesForProfileLazyQuery = exports.useFetchOpportunitiesForProfileQuery = exports.FetchOpportunitiesForProfileDocument = exports.useFetchOpportunitiesByIdsLazyQuery = exports.useFetchOpportunitiesByIdsQuery = exports.FetchOpportunitiesByIdsDocument = exports.useOpenOpportunityMutation = exports.OpenOpportunityDocument = exports.useCreateOpportunityMutation = exports.CreateOpportunityDocument = exports.useLikeOpportunityMutation = exports.LikeOpportunityDocument = exports.useDislikeOpportunityMutation = exports.DislikeOpportunityDocument = void 0;
|
|
27
27
|
const client_1 = require("@apollo/client");
|
|
28
28
|
const Apollo = __importStar(require("@apollo/client"));
|
|
29
29
|
exports.DislikeOpportunityDocument = (0, client_1.gql) `
|
|
@@ -323,3 +323,85 @@ function useFetchOpportunitiesLazyQuery(baseOptions) {
|
|
|
323
323
|
return Apollo.useLazyQuery(exports.FetchOpportunitiesDocument, baseOptions);
|
|
324
324
|
}
|
|
325
325
|
exports.useFetchOpportunitiesLazyQuery = useFetchOpportunitiesLazyQuery;
|
|
326
|
+
exports.FetchOpportunityDocument = (0, client_1.gql) `
|
|
327
|
+
query FetchOpportunity($opportunityId: ID!) {
|
|
328
|
+
fetchOpportunity(opportunityId: $opportunityId) {
|
|
329
|
+
opportunityId
|
|
330
|
+
brandId
|
|
331
|
+
categoryId
|
|
332
|
+
opportunityStatus
|
|
333
|
+
opportunityType
|
|
334
|
+
notificationType
|
|
335
|
+
name
|
|
336
|
+
description
|
|
337
|
+
brandName
|
|
338
|
+
brandDescription
|
|
339
|
+
brandMedia
|
|
340
|
+
brandUrl
|
|
341
|
+
brandIndustry
|
|
342
|
+
categoryName
|
|
343
|
+
ludoUrl
|
|
344
|
+
projectUrl
|
|
345
|
+
activeFrom
|
|
346
|
+
activeUntil
|
|
347
|
+
minXpLevel
|
|
348
|
+
maxXpLevel
|
|
349
|
+
minRank
|
|
350
|
+
maxRank
|
|
351
|
+
media
|
|
352
|
+
reportLink
|
|
353
|
+
clicks
|
|
354
|
+
views
|
|
355
|
+
blockchain
|
|
356
|
+
blockchains
|
|
357
|
+
collection
|
|
358
|
+
createdAt
|
|
359
|
+
minWalletValue
|
|
360
|
+
maxWalletValue
|
|
361
|
+
shareLink
|
|
362
|
+
liked
|
|
363
|
+
geolocations
|
|
364
|
+
brand {
|
|
365
|
+
brandId
|
|
366
|
+
name
|
|
367
|
+
description
|
|
368
|
+
industry
|
|
369
|
+
link
|
|
370
|
+
media
|
|
371
|
+
archived
|
|
372
|
+
addedBy
|
|
373
|
+
matchingWords
|
|
374
|
+
discord
|
|
375
|
+
telegram
|
|
376
|
+
twitter
|
|
377
|
+
facebook
|
|
378
|
+
linkedin
|
|
379
|
+
youtube
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
`;
|
|
384
|
+
/**
|
|
385
|
+
* __useFetchOpportunityQuery__
|
|
386
|
+
*
|
|
387
|
+
* To run a query within a React component, call `useFetchOpportunityQuery` and pass it any options that fit your needs.
|
|
388
|
+
* When your component renders, `useFetchOpportunityQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
389
|
+
* you can use to render your UI.
|
|
390
|
+
*
|
|
391
|
+
* @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;
|
|
392
|
+
*
|
|
393
|
+
* @example
|
|
394
|
+
* const { data, loading, error } = useFetchOpportunityQuery({
|
|
395
|
+
* variables: {
|
|
396
|
+
* opportunityId: // value for 'opportunityId'
|
|
397
|
+
* },
|
|
398
|
+
* });
|
|
399
|
+
*/
|
|
400
|
+
function useFetchOpportunityQuery(baseOptions) {
|
|
401
|
+
return Apollo.useQuery(exports.FetchOpportunityDocument, baseOptions);
|
|
402
|
+
}
|
|
403
|
+
exports.useFetchOpportunityQuery = useFetchOpportunityQuery;
|
|
404
|
+
function useFetchOpportunityLazyQuery(baseOptions) {
|
|
405
|
+
return Apollo.useLazyQuery(exports.FetchOpportunityDocument, baseOptions);
|
|
406
|
+
}
|
|
407
|
+
exports.useFetchOpportunityLazyQuery = useFetchOpportunityLazyQuery;
|
package/build/index.d.ts
CHANGED
|
@@ -595,6 +595,16 @@ declare const schema: {
|
|
|
595
595
|
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<opportunitiesSchema.IFetchOpportunitiesQuery, opportunitiesSchema.Exact<{
|
|
596
596
|
domain?: opportunitiesSchema.Maybe<string> | undefined;
|
|
597
597
|
}>>;
|
|
598
|
+
useFetchOpportunityQuery(baseOptions: import("@apollo/client").QueryHookOptions<opportunitiesSchema.IFetchOpportunityQuery, opportunitiesSchema.Exact<{
|
|
599
|
+
opportunityId: string;
|
|
600
|
+
}>>): import("@apollo/client").QueryResult<opportunitiesSchema.IFetchOpportunityQuery, opportunitiesSchema.Exact<{
|
|
601
|
+
opportunityId: string;
|
|
602
|
+
}>>;
|
|
603
|
+
useFetchOpportunityLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<opportunitiesSchema.IFetchOpportunityQuery, opportunitiesSchema.Exact<{
|
|
604
|
+
opportunityId: string;
|
|
605
|
+
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<opportunitiesSchema.IFetchOpportunityQuery, opportunitiesSchema.Exact<{
|
|
606
|
+
opportunityId: string;
|
|
607
|
+
}>>;
|
|
598
608
|
DislikeOpportunityDocument: import("graphql").DocumentNode;
|
|
599
609
|
LikeOpportunityDocument: import("graphql").DocumentNode;
|
|
600
610
|
CreateOpportunityDocument: import("graphql").DocumentNode;
|
|
@@ -602,6 +612,7 @@ declare const schema: {
|
|
|
602
612
|
FetchOpportunitiesByIdsDocument: import("graphql").DocumentNode;
|
|
603
613
|
FetchOpportunitiesForProfileDocument: import("graphql").DocumentNode;
|
|
604
614
|
FetchOpportunitiesDocument: import("graphql").DocumentNode;
|
|
615
|
+
FetchOpportunityDocument: import("graphql").DocumentNode;
|
|
605
616
|
useDeleteGalleryBannerMutation(baseOptions?: import("@apollo/client").MutationHookOptions<mediasSchema.IDeleteGalleryBannerMutation, mediasSchema.Exact<{
|
|
606
617
|
galleryId: string;
|
|
607
618
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<mediasSchema.IDeleteGalleryBannerMutation, mediasSchema.Exact<{
|
|
@@ -1209,6 +1220,16 @@ declare const schema: {
|
|
|
1209
1220
|
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<experiencesSchema.IFetchMyExperienceV2Query, experiencesSchema.Exact<{
|
|
1210
1221
|
[key: string]: never;
|
|
1211
1222
|
}>>;
|
|
1223
|
+
useFetchMyMonthReferralsXpsQuery(baseOptions?: import("@apollo/client").QueryHookOptions<experiencesSchema.IFetchMyMonthReferralsXpsQuery, experiencesSchema.Exact<{
|
|
1224
|
+
[key: string]: never;
|
|
1225
|
+
}>> | undefined): import("@apollo/client").QueryResult<experiencesSchema.IFetchMyMonthReferralsXpsQuery, experiencesSchema.Exact<{
|
|
1226
|
+
[key: string]: never;
|
|
1227
|
+
}>>;
|
|
1228
|
+
useFetchMyMonthReferralsXpsLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<experiencesSchema.IFetchMyMonthReferralsXpsQuery, experiencesSchema.Exact<{
|
|
1229
|
+
[key: string]: never;
|
|
1230
|
+
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<experiencesSchema.IFetchMyMonthReferralsXpsQuery, experiencesSchema.Exact<{
|
|
1231
|
+
[key: string]: never;
|
|
1232
|
+
}>>;
|
|
1212
1233
|
useFetchMyTasksQuery(baseOptions?: import("@apollo/client").QueryHookOptions<experiencesSchema.IFetchMyTasksQuery, experiencesSchema.Exact<{
|
|
1213
1234
|
[key: string]: never;
|
|
1214
1235
|
}>> | undefined): import("@apollo/client").QueryResult<experiencesSchema.IFetchMyTasksQuery, experiencesSchema.Exact<{
|
|
@@ -1275,6 +1296,7 @@ declare const schema: {
|
|
|
1275
1296
|
}> | undefined;
|
|
1276
1297
|
};
|
|
1277
1298
|
FetchMyExperienceV2Document: import("graphql").DocumentNode;
|
|
1299
|
+
FetchMyMonthReferralsXpsDocument: import("graphql").DocumentNode;
|
|
1278
1300
|
FetchMyTasksDocument: import("graphql").DocumentNode;
|
|
1279
1301
|
OnCommonOpportunityNotificationDocument: import("graphql").DocumentNode;
|
|
1280
1302
|
OnInviteCodeUsedDocument: import("graphql").DocumentNode;
|
package/package.json
CHANGED
|
@@ -309,6 +309,11 @@ export type IFetchMyExperienceV2QueryVariables = Exact<{ [key: string]: never; }
|
|
|
309
309
|
|
|
310
310
|
export type IFetchMyExperienceV2Query = { fetchMyExperienceV2: Pick<IUserXp, 'xps' | 'level' | 'levelMaxXps' | 'levelMinXps'> };
|
|
311
311
|
|
|
312
|
+
export type IFetchMyMonthReferralsXpsQueryVariables = Exact<{ [key: string]: never; }>;
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
export type IFetchMyMonthReferralsXpsQuery = Pick<IQuery, 'fetchMyMonthReferralsXps'>;
|
|
316
|
+
|
|
312
317
|
export type IFetchMyTasksQueryVariables = Exact<{ [key: string]: never; }>;
|
|
313
318
|
|
|
314
319
|
|
|
@@ -383,6 +388,36 @@ export function useFetchMyExperienceV2LazyQuery(baseOptions?: Apollo.LazyQueryHo
|
|
|
383
388
|
export type FetchMyExperienceV2QueryHookResult = ReturnType<typeof useFetchMyExperienceV2Query>;
|
|
384
389
|
export type FetchMyExperienceV2LazyQueryHookResult = ReturnType<typeof useFetchMyExperienceV2LazyQuery>;
|
|
385
390
|
export type FetchMyExperienceV2QueryResult = Apollo.QueryResult<IFetchMyExperienceV2Query, IFetchMyExperienceV2QueryVariables>;
|
|
391
|
+
export const FetchMyMonthReferralsXpsDocument = gql`
|
|
392
|
+
query FetchMyMonthReferralsXps {
|
|
393
|
+
fetchMyMonthReferralsXps
|
|
394
|
+
}
|
|
395
|
+
`;
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* __useFetchMyMonthReferralsXpsQuery__
|
|
399
|
+
*
|
|
400
|
+
* To run a query within a React component, call `useFetchMyMonthReferralsXpsQuery` and pass it any options that fit your needs.
|
|
401
|
+
* When your component renders, `useFetchMyMonthReferralsXpsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
402
|
+
* you can use to render your UI.
|
|
403
|
+
*
|
|
404
|
+
* @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;
|
|
405
|
+
*
|
|
406
|
+
* @example
|
|
407
|
+
* const { data, loading, error } = useFetchMyMonthReferralsXpsQuery({
|
|
408
|
+
* variables: {
|
|
409
|
+
* },
|
|
410
|
+
* });
|
|
411
|
+
*/
|
|
412
|
+
export function useFetchMyMonthReferralsXpsQuery(baseOptions?: Apollo.QueryHookOptions<IFetchMyMonthReferralsXpsQuery, IFetchMyMonthReferralsXpsQueryVariables>) {
|
|
413
|
+
return Apollo.useQuery<IFetchMyMonthReferralsXpsQuery, IFetchMyMonthReferralsXpsQueryVariables>(FetchMyMonthReferralsXpsDocument, baseOptions);
|
|
414
|
+
}
|
|
415
|
+
export function useFetchMyMonthReferralsXpsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchMyMonthReferralsXpsQuery, IFetchMyMonthReferralsXpsQueryVariables>) {
|
|
416
|
+
return Apollo.useLazyQuery<IFetchMyMonthReferralsXpsQuery, IFetchMyMonthReferralsXpsQueryVariables>(FetchMyMonthReferralsXpsDocument, baseOptions);
|
|
417
|
+
}
|
|
418
|
+
export type FetchMyMonthReferralsXpsQueryHookResult = ReturnType<typeof useFetchMyMonthReferralsXpsQuery>;
|
|
419
|
+
export type FetchMyMonthReferralsXpsLazyQueryHookResult = ReturnType<typeof useFetchMyMonthReferralsXpsLazyQuery>;
|
|
420
|
+
export type FetchMyMonthReferralsXpsQueryResult = Apollo.QueryResult<IFetchMyMonthReferralsXpsQuery, IFetchMyMonthReferralsXpsQueryVariables>;
|
|
386
421
|
export const FetchMyTasksDocument = gql`
|
|
387
422
|
query FetchMyTasks {
|
|
388
423
|
fetchMyTasks {
|
|
@@ -584,6 +584,16 @@ export type IFetchOpportunitiesQueryVariables = Exact<{
|
|
|
584
584
|
|
|
585
585
|
export type IFetchOpportunitiesQuery = { fetchOpportunities: { currentOpportunities?: Maybe<Array<Maybe<Pick<IOpportunity, 'opportunityId' | 'name' | 'description' | 'startedAt' | 'endedAt' | 'createdAt' | 'tags' | 'category' | 'media' | 'links' | 'ludoRankRequired' | 'ludoRankRequiredMin' | 'ludoRankRequiredMax' | 'rewardType' | 'creatorId' | 'creatorWallet' | 'status'>>>>, similarOpportunities?: Maybe<Array<Maybe<Pick<IOpportunity, 'opportunityId' | 'name' | 'description' | 'startedAt' | 'endedAt' | 'createdAt' | 'tags' | 'category' | 'media' | 'links' | 'ludoRankRequired' | 'ludoRankRequiredMin' | 'ludoRankRequiredMax' | 'rewardType' | 'creatorId' | 'creatorWallet' | 'status'>>>> } };
|
|
586
586
|
|
|
587
|
+
export type IFetchOpportunityQueryVariables = Exact<{
|
|
588
|
+
opportunityId: Scalars['ID'];
|
|
589
|
+
}>;
|
|
590
|
+
|
|
591
|
+
|
|
592
|
+
export type IFetchOpportunityQuery = { fetchOpportunity: (
|
|
593
|
+
Pick<IOpportunityV2, 'opportunityId' | 'brandId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'brandName' | 'brandDescription' | 'brandMedia' | 'brandUrl' | 'brandIndustry' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'blockchains' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked' | 'geolocations'>
|
|
594
|
+
& { brand: Pick<IBrand, 'brandId' | 'name' | 'description' | 'industry' | 'link' | 'media' | 'archived' | 'addedBy' | 'matchingWords' | 'discord' | 'telegram' | 'twitter' | 'facebook' | 'linkedin' | 'youtube'> }
|
|
595
|
+
) };
|
|
596
|
+
|
|
587
597
|
|
|
588
598
|
export const DislikeOpportunityDocument = gql`
|
|
589
599
|
mutation DislikeOpportunity($opportunityId: String!) {
|
|
@@ -903,4 +913,88 @@ export function useFetchOpportunitiesLazyQuery(baseOptions?: Apollo.LazyQueryHoo
|
|
|
903
913
|
}
|
|
904
914
|
export type FetchOpportunitiesQueryHookResult = ReturnType<typeof useFetchOpportunitiesQuery>;
|
|
905
915
|
export type FetchOpportunitiesLazyQueryHookResult = ReturnType<typeof useFetchOpportunitiesLazyQuery>;
|
|
906
|
-
export type FetchOpportunitiesQueryResult = Apollo.QueryResult<IFetchOpportunitiesQuery, IFetchOpportunitiesQueryVariables>;
|
|
916
|
+
export type FetchOpportunitiesQueryResult = Apollo.QueryResult<IFetchOpportunitiesQuery, IFetchOpportunitiesQueryVariables>;
|
|
917
|
+
export const FetchOpportunityDocument = gql`
|
|
918
|
+
query FetchOpportunity($opportunityId: ID!) {
|
|
919
|
+
fetchOpportunity(opportunityId: $opportunityId) {
|
|
920
|
+
opportunityId
|
|
921
|
+
brandId
|
|
922
|
+
categoryId
|
|
923
|
+
opportunityStatus
|
|
924
|
+
opportunityType
|
|
925
|
+
notificationType
|
|
926
|
+
name
|
|
927
|
+
description
|
|
928
|
+
brandName
|
|
929
|
+
brandDescription
|
|
930
|
+
brandMedia
|
|
931
|
+
brandUrl
|
|
932
|
+
brandIndustry
|
|
933
|
+
categoryName
|
|
934
|
+
ludoUrl
|
|
935
|
+
projectUrl
|
|
936
|
+
activeFrom
|
|
937
|
+
activeUntil
|
|
938
|
+
minXpLevel
|
|
939
|
+
maxXpLevel
|
|
940
|
+
minRank
|
|
941
|
+
maxRank
|
|
942
|
+
media
|
|
943
|
+
reportLink
|
|
944
|
+
clicks
|
|
945
|
+
views
|
|
946
|
+
blockchain
|
|
947
|
+
blockchains
|
|
948
|
+
collection
|
|
949
|
+
createdAt
|
|
950
|
+
minWalletValue
|
|
951
|
+
maxWalletValue
|
|
952
|
+
shareLink
|
|
953
|
+
liked
|
|
954
|
+
geolocations
|
|
955
|
+
brand {
|
|
956
|
+
brandId
|
|
957
|
+
name
|
|
958
|
+
description
|
|
959
|
+
industry
|
|
960
|
+
link
|
|
961
|
+
media
|
|
962
|
+
archived
|
|
963
|
+
addedBy
|
|
964
|
+
matchingWords
|
|
965
|
+
discord
|
|
966
|
+
telegram
|
|
967
|
+
twitter
|
|
968
|
+
facebook
|
|
969
|
+
linkedin
|
|
970
|
+
youtube
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
`;
|
|
975
|
+
|
|
976
|
+
/**
|
|
977
|
+
* __useFetchOpportunityQuery__
|
|
978
|
+
*
|
|
979
|
+
* To run a query within a React component, call `useFetchOpportunityQuery` and pass it any options that fit your needs.
|
|
980
|
+
* When your component renders, `useFetchOpportunityQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
981
|
+
* you can use to render your UI.
|
|
982
|
+
*
|
|
983
|
+
* @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;
|
|
984
|
+
*
|
|
985
|
+
* @example
|
|
986
|
+
* const { data, loading, error } = useFetchOpportunityQuery({
|
|
987
|
+
* variables: {
|
|
988
|
+
* opportunityId: // value for 'opportunityId'
|
|
989
|
+
* },
|
|
990
|
+
* });
|
|
991
|
+
*/
|
|
992
|
+
export function useFetchOpportunityQuery(baseOptions: Apollo.QueryHookOptions<IFetchOpportunityQuery, IFetchOpportunityQueryVariables>) {
|
|
993
|
+
return Apollo.useQuery<IFetchOpportunityQuery, IFetchOpportunityQueryVariables>(FetchOpportunityDocument, baseOptions);
|
|
994
|
+
}
|
|
995
|
+
export function useFetchOpportunityLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchOpportunityQuery, IFetchOpportunityQueryVariables>) {
|
|
996
|
+
return Apollo.useLazyQuery<IFetchOpportunityQuery, IFetchOpportunityQueryVariables>(FetchOpportunityDocument, baseOptions);
|
|
997
|
+
}
|
|
998
|
+
export type FetchOpportunityQueryHookResult = ReturnType<typeof useFetchOpportunityQuery>;
|
|
999
|
+
export type FetchOpportunityLazyQueryHookResult = ReturnType<typeof useFetchOpportunityLazyQuery>;
|
|
1000
|
+
export type FetchOpportunityQueryResult = Apollo.QueryResult<IFetchOpportunityQuery, IFetchOpportunityQueryVariables>;
|