@ludo.ninja/api 3.0.69 → 3.0.71
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__/adminHost/schema.d.ts +39 -2
- package/build/graphql_tools/__generated__/adminHost/schema.js +36 -2
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.d.ts +18 -1
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.js +5 -0
- package/build/index.d.ts +11 -0
- package/package.json +1 -1
- package/src/graphql_tools/__generated__/adminHost/schema.ts +52 -2
- package/src/graphql_tools/__generated__/opportunitiesHost/schema.ts +25 -2
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -814,6 +814,7 @@ export type IQuery = {
|
|
|
814
814
|
fetchAdminBrandsPage: IBrandsPage;
|
|
815
815
|
fetchBlockchains: Array<Scalars['String']>;
|
|
816
816
|
fetchAdminAirdropsPage: IOpportunitiesPage;
|
|
817
|
+
fetchAdminOpportunitiesByType?: Maybe<Array<Maybe<IAdminOpportunity>>>;
|
|
817
818
|
fetchProjectsPage: IAdminProjectsPage;
|
|
818
819
|
fetchAdminReferralsPage: IReferralsPage;
|
|
819
820
|
fetchUnarchivedReferralTypes: Array<IReferralType>;
|
|
@@ -894,6 +895,9 @@ export type IQueryFetchAdminAirdropsPageArgs = {
|
|
|
894
895
|
sort?: Maybe<IAirdropsLeaderboardSortInput>;
|
|
895
896
|
page: IAdminPageInput;
|
|
896
897
|
};
|
|
898
|
+
export type IQueryFetchAdminOpportunitiesByTypeArgs = {
|
|
899
|
+
type: IOpportunityType;
|
|
900
|
+
};
|
|
897
901
|
export type IQueryFetchProjectsPageArgs = {
|
|
898
902
|
filter: IAdminProjectsFilterInput;
|
|
899
903
|
page: IAdminPageInput;
|
|
@@ -1805,6 +1809,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
1805
1809
|
fetchAdminBrandsPage?: Resolver<IResolversTypes['BrandsPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminBrandsPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1806
1810
|
fetchBlockchains?: Resolver<Array<IResolversTypes['String']>, ParentType, ContextType>;
|
|
1807
1811
|
fetchAdminAirdropsPage?: Resolver<IResolversTypes['OpportunitiesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminAirdropsPageArgs, 'filter' | 'page'>>;
|
|
1812
|
+
fetchAdminOpportunitiesByType?: Resolver<Maybe<Array<Maybe<IResolversTypes['AdminOpportunity']>>>, ParentType, ContextType, RequireFields<IQueryFetchAdminOpportunitiesByTypeArgs, 'type'>>;
|
|
1808
1813
|
fetchProjectsPage?: Resolver<IResolversTypes['AdminProjectsPage'], ParentType, ContextType, RequireFields<IQueryFetchProjectsPageArgs, 'filter' | 'page'>>;
|
|
1809
1814
|
fetchAdminReferralsPage?: Resolver<IResolversTypes['ReferralsPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminReferralsPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1810
1815
|
fetchUnarchivedReferralTypes?: Resolver<Array<IResolversTypes['ReferralType']>, ParentType, ContextType>;
|
|
@@ -2245,7 +2250,7 @@ export type IFetchAdminAirdropsPageQueryVariables = Exact<{
|
|
|
2245
2250
|
}>;
|
|
2246
2251
|
export type IFetchAdminAirdropsPageQuery = {
|
|
2247
2252
|
fetchAdminAirdropsPage: {
|
|
2248
|
-
opportunities: Array<Pick<IAdminOpportunity, 'opportunityId' | 'name' | 'description' | 'projectName' | 'industry' | 'category' | 'ludoUrl' | 'projectUrl' | 'pushNotificationsEnabled' | 'status' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minLudoRank' | 'maxLudoRank' | 'media' | 'minWalletValue' | 'maxWalletValue' | 'clicks' | 'views' | 'addedBy' | 'archived' | 'blockchains' | 'geolocations' | 'notificationDestinations' | 'type' | 'devicePlatforms' | 'participants' | 'hidden' | 'showcase' | 'participantsLimit' | 'availablePlacesForAirdrop' | 'encodePayload' | 'payloadTypes'>>;
|
|
2253
|
+
opportunities: Array<Pick<IAdminOpportunity, 'opportunityId' | 'name' | 'description' | 'projectName' | 'industry' | 'category' | 'ludoUrl' | 'projectUrl' | 'pushNotificationsEnabled' | 'status' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minLudoRank' | 'maxLudoRank' | 'media' | 'minWalletValue' | 'maxWalletValue' | 'clicks' | 'views' | 'addedBy' | 'archived' | 'blockchains' | 'geolocations' | 'notificationDestinations' | 'type' | 'devicePlatforms' | 'participants' | 'hidden' | 'showcase' | 'participantsLimit' | 'availablePlacesForAirdrop' | 'encodePayload' | 'payloadTypes' | 'parentOpportunityId'>>;
|
|
2249
2254
|
nextPage?: Maybe<Pick<IAdminPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>>;
|
|
2250
2255
|
};
|
|
2251
2256
|
};
|
|
@@ -2300,6 +2305,12 @@ export type IFetchAdminInvitesPageQuery = {
|
|
|
2300
2305
|
nextPage?: Maybe<Pick<IAdminPage, 'num' | 'lastNum' | 'size' | 'elements' | 'token'>>;
|
|
2301
2306
|
};
|
|
2302
2307
|
};
|
|
2308
|
+
export type IFetchAdminOpportunitiesByTypeQueryVariables = Exact<{
|
|
2309
|
+
type: IOpportunityType;
|
|
2310
|
+
}>;
|
|
2311
|
+
export type IFetchAdminOpportunitiesByTypeQuery = {
|
|
2312
|
+
fetchAdminOpportunitiesByType?: Maybe<Array<Maybe<Pick<IAdminOpportunity, 'opportunityId' | 'name'>>>>;
|
|
2313
|
+
};
|
|
2303
2314
|
export type IFetchAdminOpportunitiesPageQueryVariables = Exact<{
|
|
2304
2315
|
filter: IOpportunitiesFilterInput;
|
|
2305
2316
|
sort: IOpportunitiesSortInput;
|
|
@@ -2307,7 +2318,7 @@ export type IFetchAdminOpportunitiesPageQueryVariables = Exact<{
|
|
|
2307
2318
|
}>;
|
|
2308
2319
|
export type IFetchAdminOpportunitiesPageQuery = {
|
|
2309
2320
|
fetchAdminOpportunitiesPage: {
|
|
2310
|
-
opportunities: Array<Pick<IAdminOpportunity, 'opportunityId' | 'name' | 'projectName' | 'industry' | 'category' | 'ludoUrl' | 'projectUrl' | 'pushNotificationsEnabled' | 'status' | 'media' | 'description' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minLudoRank' | 'maxLudoRank' | 'minWalletValue' | 'maxWalletValue' | 'clicks' | 'views' | 'addedBy' | 'archived' | 'blockchains' | 'geolocations' | 'notificationDestinations' | 'type' | 'devicePlatforms' | 'participantsLimit' | 'availablePlacesForAirdrop' | 'encodePayload' | 'payloadTypes'>>;
|
|
2321
|
+
opportunities: Array<Pick<IAdminOpportunity, 'opportunityId' | 'name' | 'projectName' | 'industry' | 'category' | 'ludoUrl' | 'projectUrl' | 'pushNotificationsEnabled' | 'status' | 'media' | 'description' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minLudoRank' | 'maxLudoRank' | 'minWalletValue' | 'maxWalletValue' | 'clicks' | 'views' | 'addedBy' | 'archived' | 'blockchains' | 'geolocations' | 'notificationDestinations' | 'type' | 'devicePlatforms' | 'participantsLimit' | 'availablePlacesForAirdrop' | 'encodePayload' | 'payloadTypes' | 'parentOpportunityId'>>;
|
|
2311
2322
|
nextPage?: Maybe<Pick<IAdminPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>>;
|
|
2312
2323
|
};
|
|
2313
2324
|
};
|
|
@@ -3718,6 +3729,32 @@ export declare function useFetchAdminInvitesPageLazyQuery(baseOptions?: Apollo.L
|
|
|
3718
3729
|
export type FetchAdminInvitesPageQueryHookResult = ReturnType<typeof useFetchAdminInvitesPageQuery>;
|
|
3719
3730
|
export type FetchAdminInvitesPageLazyQueryHookResult = ReturnType<typeof useFetchAdminInvitesPageLazyQuery>;
|
|
3720
3731
|
export type FetchAdminInvitesPageQueryResult = Apollo.QueryResult<IFetchAdminInvitesPageQuery, IFetchAdminInvitesPageQueryVariables>;
|
|
3732
|
+
export declare const FetchAdminOpportunitiesByTypeDocument: Apollo.DocumentNode;
|
|
3733
|
+
/**
|
|
3734
|
+
* __useFetchAdminOpportunitiesByTypeQuery__
|
|
3735
|
+
*
|
|
3736
|
+
* To run a query within a React component, call `useFetchAdminOpportunitiesByTypeQuery` and pass it any options that fit your needs.
|
|
3737
|
+
* When your component renders, `useFetchAdminOpportunitiesByTypeQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
3738
|
+
* you can use to render your UI.
|
|
3739
|
+
*
|
|
3740
|
+
* @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;
|
|
3741
|
+
*
|
|
3742
|
+
* @example
|
|
3743
|
+
* const { data, loading, error } = useFetchAdminOpportunitiesByTypeQuery({
|
|
3744
|
+
* variables: {
|
|
3745
|
+
* type: // value for 'type'
|
|
3746
|
+
* },
|
|
3747
|
+
* });
|
|
3748
|
+
*/
|
|
3749
|
+
export declare function useFetchAdminOpportunitiesByTypeQuery(baseOptions: Apollo.QueryHookOptions<IFetchAdminOpportunitiesByTypeQuery, IFetchAdminOpportunitiesByTypeQueryVariables>): Apollo.QueryResult<IFetchAdminOpportunitiesByTypeQuery, Exact<{
|
|
3750
|
+
type: IOpportunityType;
|
|
3751
|
+
}>>;
|
|
3752
|
+
export declare function useFetchAdminOpportunitiesByTypeLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAdminOpportunitiesByTypeQuery, IFetchAdminOpportunitiesByTypeQueryVariables>): Apollo.LazyQueryResultTuple<IFetchAdminOpportunitiesByTypeQuery, Exact<{
|
|
3753
|
+
type: IOpportunityType;
|
|
3754
|
+
}>>;
|
|
3755
|
+
export type FetchAdminOpportunitiesByTypeQueryHookResult = ReturnType<typeof useFetchAdminOpportunitiesByTypeQuery>;
|
|
3756
|
+
export type FetchAdminOpportunitiesByTypeLazyQueryHookResult = ReturnType<typeof useFetchAdminOpportunitiesByTypeLazyQuery>;
|
|
3757
|
+
export type FetchAdminOpportunitiesByTypeQueryResult = Apollo.QueryResult<IFetchAdminOpportunitiesByTypeQuery, IFetchAdminOpportunitiesByTypeQueryVariables>;
|
|
3721
3758
|
export declare const FetchAdminOpportunitiesPageDocument: Apollo.DocumentNode;
|
|
3722
3759
|
/**
|
|
3723
3760
|
* __useFetchAdminOpportunitiesPageQuery__
|
|
@@ -25,8 +25,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.UpdateAirdropDocument = exports.useRevokeCompanyTokenMutation = exports.RevokeCompanyTokenDocument = exports.useRemoveInviteCodeMutation = exports.RemoveInviteCodeDocument = exports.useAddInviteCodesMutation = exports.AddInviteCodesDocument = exports.useCreateProjectMutation = exports.CreateProjectDocument = exports.useCreateAdminOpportunityMutation = exports.CreateAdminOpportunityDocument = exports.useCreateCompanyTokenMutation = exports.CreateCompanyTokenDocument = exports.useCreateBrandMutation = exports.CreateBrandDocument = exports.useCreateCategoryMutation = exports.CreateCategoryDocument = exports.useChangeXpPointsMutation = exports.ChangeXpPointsDocument = exports.useUpdateTierArchivedStatusMutation = exports.UpdateTierArchivedStatusDocument = exports.useUpdateTierMutation = exports.UpdateTierDocument = exports.useUpdateReferralTypeArchivedStatusMutation = exports.UpdateReferralTypeArchivedStatusDocument = exports.useUpdateReferralTypeMutation = exports.UpdateReferralTypeDocument = exports.useUpdateOpportunityPushStatusMutation = exports.UpdateOpportunityPushStatusDocument = exports.useUpdateInviteCodeUsagesLimitMutation = exports.UpdateInviteCodeUsagesLimitDocument = exports.useTriggerOpportunityNotificationMutation = exports.TriggerOpportunityNotificationDocument = exports.useCreateTierMutation = exports.CreateTierDocument = exports.useCreateReferralTypeMutation = exports.CreateReferralTypeDocument = exports.ITariffPlan = exports.ISortDirection = exports.IReftypeColor = exports.IProjectType = exports.IPayloadType = exports.IOpportunityType = exports.INotificationDestination = exports.ILoginSource = exports.ILocationType = exports.ILeaderboardType = exports.IDevicePlatform = exports.IAuthorityType = exports.IAccessType = void 0;
|
|
27
27
|
exports.useFetchTiersQuery = exports.FetchTiersDocument = exports.useFetchRegistrationInvitePageLazyQuery = exports.useFetchRegistrationInvitePageQuery = exports.FetchRegistrationInvitePageDocument = exports.useFetchReferralTypesPageLazyQuery = exports.useFetchReferralTypesPageQuery = exports.FetchReferralTypesPageDocument = exports.useFetchUnarchivedReferralTypesLazyQuery = exports.useFetchUnarchivedReferralTypesQuery = exports.FetchUnarchivedReferralTypesDocument = exports.useFetchPartnershipInquiryPageLazyQuery = exports.useFetchPartnershipInquiryPageQuery = exports.FetchPartnershipInquiryPageDocument = exports.useFetchInvestorInquiryPageLazyQuery = exports.useFetchInvestorInquiryPageQuery = exports.FetchInvestorInquiryPageDocument = exports.useFetchFormOpportunityPageLazyQuery = exports.useFetchFormOpportunityPageQuery = exports.FetchFormOpportunityPageDocument = exports.useFetchContentReportPageLazyQuery = exports.useFetchContentReportPageQuery = exports.FetchContentReportPageDocument = exports.useFetchContactSupportPageLazyQuery = exports.useFetchContactSupportPageQuery = exports.FetchContactSupportPageDocument = exports.useCheckInviteCodeLazyQuery = exports.useCheckInviteCodeQuery = exports.CheckInviteCodeDocument = exports.useUpdateProjectMutation = exports.UpdateProjectDocument = exports.useUpdateProfileStatusMutation = exports.UpdateProfileStatusDocument = exports.useUpdateOpportunityArchivedStatusMutation = exports.UpdateOpportunityArchivedStatusDocument = exports.useUpdateOpportunityMutation = exports.UpdateOpportunityDocument = exports.useUpdateLeaderboardMutation = exports.UpdateLeaderboardDocument = exports.useUpdateCompanyTokenRateLimitsMutation = exports.UpdateCompanyTokenRateLimitsDocument = exports.useUpdateCategoryArchivedStatusMutation = exports.UpdateCategoryArchivedStatusDocument = exports.useUpdateCategoryMutation = exports.UpdateCategoryDocument = exports.useUpdateBrandArchivedStatusMutation = exports.UpdateBrandArchivedStatusDocument = exports.useUpdateBrandMutation = exports.UpdateBrandDocument = exports.useUpdateAirdropMutation = void 0;
|
|
28
|
-
exports.
|
|
29
|
-
exports.useFetchLeaderboardLazyQuery = exports.useFetchLeaderboardQuery = exports.FetchLeaderboardDocument = exports.useFetchDefaultRateLimitsLazyQuery = exports.useFetchDefaultRateLimitsQuery = exports.FetchDefaultRateLimitsDocument = exports.useFetchCompanyTokensPageLazyQuery = exports.useFetchCompanyTokensPageQuery = void 0;
|
|
28
|
+
exports.FetchBlockchainsDocument = exports.useFetchAllCountriesLazyQuery = exports.useFetchAllCountriesQuery = exports.FetchAllCountriesDocument = exports.useFetchAdminXpPageLazyQuery = exports.useFetchAdminXpPageQuery = exports.FetchAdminXpPageDocument = exports.useFetchAdminUsersPageLazyQuery = exports.useFetchAdminUsersPageQuery = exports.FetchAdminUsersPageDocument = exports.useFetchAdminReferralsPageLazyQuery = exports.useFetchAdminReferralsPageQuery = exports.FetchAdminReferralsPageDocument = exports.useFetchAdminProjectsPageLazyQuery = exports.useFetchAdminProjectsPageQuery = exports.FetchAdminProjectsPageDocument = exports.useFetchAdminProjectsLazyQuery = exports.useFetchAdminProjectsQuery = exports.FetchAdminProjectsDocument = exports.useFetchAdminOpportunitiesPageLazyQuery = exports.useFetchAdminOpportunitiesPageQuery = exports.FetchAdminOpportunitiesPageDocument = exports.useFetchAdminOpportunitiesByTypeLazyQuery = exports.useFetchAdminOpportunitiesByTypeQuery = exports.FetchAdminOpportunitiesByTypeDocument = exports.useFetchAdminInvitesPageLazyQuery = exports.useFetchAdminInvitesPageQuery = exports.FetchAdminInvitesPageDocument = exports.useFetchAdminCategoriesPageLazyQuery = exports.useFetchAdminCategoriesPageQuery = exports.FetchAdminCategoriesPageDocument = exports.useFetchAdminCategoriesLazyQuery = exports.useFetchAdminCategoriesQuery = exports.FetchAdminCategoriesDocument = exports.useFetchAdminBrandsPageLazyQuery = exports.useFetchAdminBrandsPageQuery = exports.FetchAdminBrandsPageDocument = exports.useFetchAdminBrandsLazyQuery = exports.useFetchAdminBrandsQuery = exports.FetchAdminBrandsDocument = exports.useFetchAdminAirdropsPageLazyQuery = exports.useFetchAdminAirdropsPageQuery = exports.FetchAdminAirdropsPageDocument = exports.useFetchUserFeedbackPageLazyQuery = exports.useFetchUserFeedbackPageQuery = exports.FetchUserFeedbackPageDocument = exports.useFetchTiersPageLazyQuery = exports.useFetchTiersPageQuery = exports.FetchTiersPageDocument = exports.useFetchTiersLazyQuery = void 0;
|
|
29
|
+
exports.useFetchLeaderboardLazyQuery = exports.useFetchLeaderboardQuery = exports.FetchLeaderboardDocument = exports.useFetchDefaultRateLimitsLazyQuery = exports.useFetchDefaultRateLimitsQuery = exports.FetchDefaultRateLimitsDocument = exports.useFetchCompanyTokensPageLazyQuery = exports.useFetchCompanyTokensPageQuery = exports.FetchCompanyTokensPageDocument = exports.useFetchBlockchainsLazyQuery = exports.useFetchBlockchainsQuery = void 0;
|
|
30
30
|
const client_1 = require("@apollo/client");
|
|
31
31
|
const Apollo = __importStar(require("@apollo/client"));
|
|
32
32
|
var IAccessType;
|
|
@@ -1480,6 +1480,7 @@ exports.FetchAdminAirdropsPageDocument = (0, client_1.gql) `
|
|
|
1480
1480
|
availablePlacesForAirdrop
|
|
1481
1481
|
encodePayload
|
|
1482
1482
|
payloadTypes
|
|
1483
|
+
parentOpportunityId
|
|
1483
1484
|
}
|
|
1484
1485
|
nextPage {
|
|
1485
1486
|
elements
|
|
@@ -1759,6 +1760,38 @@ function useFetchAdminInvitesPageLazyQuery(baseOptions) {
|
|
|
1759
1760
|
return Apollo.useLazyQuery(exports.FetchAdminInvitesPageDocument, baseOptions);
|
|
1760
1761
|
}
|
|
1761
1762
|
exports.useFetchAdminInvitesPageLazyQuery = useFetchAdminInvitesPageLazyQuery;
|
|
1763
|
+
exports.FetchAdminOpportunitiesByTypeDocument = (0, client_1.gql) `
|
|
1764
|
+
query FetchAdminOpportunitiesByType($type: OpportunityType!) {
|
|
1765
|
+
fetchAdminOpportunitiesByType(type: $type) {
|
|
1766
|
+
opportunityId
|
|
1767
|
+
name
|
|
1768
|
+
}
|
|
1769
|
+
}
|
|
1770
|
+
`;
|
|
1771
|
+
/**
|
|
1772
|
+
* __useFetchAdminOpportunitiesByTypeQuery__
|
|
1773
|
+
*
|
|
1774
|
+
* To run a query within a React component, call `useFetchAdminOpportunitiesByTypeQuery` and pass it any options that fit your needs.
|
|
1775
|
+
* When your component renders, `useFetchAdminOpportunitiesByTypeQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1776
|
+
* you can use to render your UI.
|
|
1777
|
+
*
|
|
1778
|
+
* @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;
|
|
1779
|
+
*
|
|
1780
|
+
* @example
|
|
1781
|
+
* const { data, loading, error } = useFetchAdminOpportunitiesByTypeQuery({
|
|
1782
|
+
* variables: {
|
|
1783
|
+
* type: // value for 'type'
|
|
1784
|
+
* },
|
|
1785
|
+
* });
|
|
1786
|
+
*/
|
|
1787
|
+
function useFetchAdminOpportunitiesByTypeQuery(baseOptions) {
|
|
1788
|
+
return Apollo.useQuery(exports.FetchAdminOpportunitiesByTypeDocument, baseOptions);
|
|
1789
|
+
}
|
|
1790
|
+
exports.useFetchAdminOpportunitiesByTypeQuery = useFetchAdminOpportunitiesByTypeQuery;
|
|
1791
|
+
function useFetchAdminOpportunitiesByTypeLazyQuery(baseOptions) {
|
|
1792
|
+
return Apollo.useLazyQuery(exports.FetchAdminOpportunitiesByTypeDocument, baseOptions);
|
|
1793
|
+
}
|
|
1794
|
+
exports.useFetchAdminOpportunitiesByTypeLazyQuery = useFetchAdminOpportunitiesByTypeLazyQuery;
|
|
1762
1795
|
exports.FetchAdminOpportunitiesPageDocument = (0, client_1.gql) `
|
|
1763
1796
|
query FetchAdminOpportunitiesPage($filter: OpportunitiesFilterInput!, $sort: OpportunitiesSortInput!, $page: AdminPageInput!) {
|
|
1764
1797
|
fetchAdminOpportunitiesPage(filter: $filter, sort: $sort, page: $page) {
|
|
@@ -1795,6 +1828,7 @@ exports.FetchAdminOpportunitiesPageDocument = (0, client_1.gql) `
|
|
|
1795
1828
|
availablePlacesForAirdrop
|
|
1796
1829
|
encodePayload
|
|
1797
1830
|
payloadTypes
|
|
1831
|
+
parentOpportunityId
|
|
1798
1832
|
}
|
|
1799
1833
|
nextPage {
|
|
1800
1834
|
elements
|
|
@@ -255,6 +255,7 @@ export type IProject = {
|
|
|
255
255
|
price?: Maybe<Scalars['Float']>;
|
|
256
256
|
twitterFollowers?: Maybe<Scalars['Int']>;
|
|
257
257
|
twitterSentiment?: Maybe<Scalars['Int']>;
|
|
258
|
+
communityVote?: Maybe<Scalars['Int']>;
|
|
258
259
|
verified?: Maybe<Scalars['Boolean']>;
|
|
259
260
|
snapshots?: Maybe<Array<Maybe<IProjectSnapshot>>>;
|
|
260
261
|
reactions: IProjectReactions;
|
|
@@ -262,6 +263,11 @@ export type IProject = {
|
|
|
262
263
|
votesGeo?: Maybe<Array<Maybe<IVotesGeolocation>>>;
|
|
263
264
|
airdrops?: Maybe<Array<Maybe<IOpportunityV2>>>;
|
|
264
265
|
opportunities?: Maybe<Array<Maybe<IOpportunityV2>>>;
|
|
266
|
+
communityVotes?: Maybe<Array<Maybe<IProjectCommunityVote>>>;
|
|
267
|
+
};
|
|
268
|
+
export type IProjectCommunityVote = {
|
|
269
|
+
calculatedAt: Scalars['Long'];
|
|
270
|
+
communityVote: Scalars['Int'];
|
|
265
271
|
};
|
|
266
272
|
export type IProjectReactionInput = {
|
|
267
273
|
blockchain: Scalars['String'];
|
|
@@ -390,6 +396,7 @@ export type IResolversTypes = {
|
|
|
390
396
|
OpportunityV2: ResolverTypeWrapper<IOpportunityV2>;
|
|
391
397
|
ProfileOpportunities: ResolverTypeWrapper<IProfileOpportunities>;
|
|
392
398
|
Project: ResolverTypeWrapper<IProject>;
|
|
399
|
+
ProjectCommunityVote: ResolverTypeWrapper<IProjectCommunityVote>;
|
|
393
400
|
ProjectReactionInput: IProjectReactionInput;
|
|
394
401
|
ProjectReactions: ResolverTypeWrapper<IProjectReactions>;
|
|
395
402
|
ProjectRegistrationInput: IProjectRegistrationInput;
|
|
@@ -417,6 +424,7 @@ export type IResolversParentTypes = {
|
|
|
417
424
|
OpportunityV2: IOpportunityV2;
|
|
418
425
|
ProfileOpportunities: IProfileOpportunities;
|
|
419
426
|
Project: IProject;
|
|
427
|
+
ProjectCommunityVote: IProjectCommunityVote;
|
|
420
428
|
ProjectReactionInput: IProjectReactionInput;
|
|
421
429
|
ProjectReactions: IProjectReactions;
|
|
422
430
|
ProjectRegistrationInput: IProjectRegistrationInput;
|
|
@@ -573,6 +581,7 @@ export type IProjectResolvers<ContextType = any, ParentType extends IResolversPa
|
|
|
573
581
|
price?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
574
582
|
twitterFollowers?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
575
583
|
twitterSentiment?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
584
|
+
communityVote?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
576
585
|
verified?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
577
586
|
snapshots?: Resolver<Maybe<Array<Maybe<IResolversTypes['ProjectSnapshot']>>>, ParentType, ContextType>;
|
|
578
587
|
reactions?: Resolver<IResolversTypes['ProjectReactions'], ParentType, ContextType>;
|
|
@@ -580,6 +589,12 @@ export type IProjectResolvers<ContextType = any, ParentType extends IResolversPa
|
|
|
580
589
|
votesGeo?: Resolver<Maybe<Array<Maybe<IResolversTypes['VotesGeolocation']>>>, ParentType, ContextType>;
|
|
581
590
|
airdrops?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType>;
|
|
582
591
|
opportunities?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType>;
|
|
592
|
+
communityVotes?: Resolver<Maybe<Array<Maybe<IResolversTypes['ProjectCommunityVote']>>>, ParentType, ContextType>;
|
|
593
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
594
|
+
};
|
|
595
|
+
export type IProjectCommunityVoteResolvers<ContextType = any, ParentType extends IResolversParentTypes['ProjectCommunityVote'] = IResolversParentTypes['ProjectCommunityVote']> = {
|
|
596
|
+
calculatedAt?: Resolver<IResolversTypes['Long'], ParentType, ContextType>;
|
|
597
|
+
communityVote?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
583
598
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
584
599
|
};
|
|
585
600
|
export type IProjectReactionsResolvers<ContextType = any, ParentType extends IResolversParentTypes['ProjectReactions'] = IResolversParentTypes['ProjectReactions']> = {
|
|
@@ -634,6 +649,7 @@ export type IResolvers<ContextType = any> = {
|
|
|
634
649
|
OpportunityV2?: IOpportunityV2Resolvers<ContextType>;
|
|
635
650
|
ProfileOpportunities?: IProfileOpportunitiesResolvers<ContextType>;
|
|
636
651
|
Project?: IProjectResolvers<ContextType>;
|
|
652
|
+
ProjectCommunityVote?: IProjectCommunityVoteResolvers<ContextType>;
|
|
637
653
|
ProjectReactions?: IProjectReactionsResolvers<ContextType>;
|
|
638
654
|
ProjectSnapshot?: IProjectSnapshotResolvers<ContextType>;
|
|
639
655
|
Query?: IQueryResolvers<ContextType>;
|
|
@@ -736,12 +752,13 @@ export type IFetchProjectBySlugQueryVariables = Exact<{
|
|
|
736
752
|
slug: Scalars['String'];
|
|
737
753
|
}>;
|
|
738
754
|
export type IFetchProjectBySlugQuery = {
|
|
739
|
-
fetchProjectBySlug: (Pick<IProject, 'blockchain' | 'contract' | 'name' | 'slug' | 'symbol' | 'website' | 'twitter' | 'type' | 'ludoRank' | 'investors' | 'holders' | 'volume' | 'marketCap' | 'liquidity' | 'price' | 'twitterFollowers' | 'twitterSentiment' | 'verified' | 'userReaction'> & {
|
|
755
|
+
fetchProjectBySlug: (Pick<IProject, 'blockchain' | 'contract' | 'name' | 'slug' | 'symbol' | 'website' | 'twitter' | 'type' | 'ludoRank' | 'investors' | 'holders' | 'volume' | 'marketCap' | 'liquidity' | 'price' | 'twitterFollowers' | 'twitterSentiment' | 'verified' | 'userReaction' | 'communityVote'> & {
|
|
740
756
|
snapshots?: Maybe<Array<Maybe<Pick<IProjectSnapshot, 'date' | 'contract' | 'blockchain' | 'volume' | 'marketCap' | 'price' | 'liquidity' | 'xFollowers' | 'holders' | 'ludoRank'>>>>;
|
|
741
757
|
reactions: Pick<IProjectReactions, 'likes' | 'neutrals' | 'dislikes'>;
|
|
742
758
|
votesGeo?: Maybe<Array<Maybe<Pick<IVotesGeolocation, 'country' | 'votes' | 'votesPercentage'>>>>;
|
|
743
759
|
airdrops?: Maybe<Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'projectId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'blockchains' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked' | 'geolocations' | 'subscribed' | 'participantsLimit' | 'availablePlacesForAirdrop'>>>>;
|
|
744
760
|
opportunities?: Maybe<Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'projectId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'blockchains' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked' | 'geolocations' | 'subscribed' | 'participantsLimit' | 'availablePlacesForAirdrop'>>>>;
|
|
761
|
+
communityVotes?: Maybe<Array<Maybe<Pick<IProjectCommunityVote, 'calculatedAt' | 'communityVote'>>>>;
|
|
745
762
|
});
|
|
746
763
|
};
|
|
747
764
|
export declare const DislikeOpportunityDocument: Apollo.DocumentNode;
|
package/build/index.d.ts
CHANGED
|
@@ -2064,6 +2064,16 @@ declare const schema: {
|
|
|
2064
2064
|
sort: adminSchema.IInvitesSortInput;
|
|
2065
2065
|
page: adminSchema.IAdminPageInput;
|
|
2066
2066
|
}>>;
|
|
2067
|
+
useFetchAdminOpportunitiesByTypeQuery(baseOptions: import("@apollo/client").QueryHookOptions<adminSchema.IFetchAdminOpportunitiesByTypeQuery, adminSchema.Exact<{
|
|
2068
|
+
type: adminSchema.IOpportunityType;
|
|
2069
|
+
}>>): import("@apollo/client").QueryResult<adminSchema.IFetchAdminOpportunitiesByTypeQuery, adminSchema.Exact<{
|
|
2070
|
+
type: adminSchema.IOpportunityType;
|
|
2071
|
+
}>>;
|
|
2072
|
+
useFetchAdminOpportunitiesByTypeLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<adminSchema.IFetchAdminOpportunitiesByTypeQuery, adminSchema.Exact<{
|
|
2073
|
+
type: adminSchema.IOpportunityType;
|
|
2074
|
+
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<adminSchema.IFetchAdminOpportunitiesByTypeQuery, adminSchema.Exact<{
|
|
2075
|
+
type: adminSchema.IOpportunityType;
|
|
2076
|
+
}>>;
|
|
2067
2077
|
useFetchAdminOpportunitiesPageQuery(baseOptions: import("@apollo/client").QueryHookOptions<adminSchema.IFetchAdminOpportunitiesPageQuery, adminSchema.Exact<{
|
|
2068
2078
|
filter: adminSchema.IOpportunitiesFilterInput;
|
|
2069
2079
|
sort: adminSchema.IOpportunitiesSortInput;
|
|
@@ -2268,6 +2278,7 @@ declare const schema: {
|
|
|
2268
2278
|
FetchAdminCategoriesDocument: import("graphql").DocumentNode;
|
|
2269
2279
|
FetchAdminCategoriesPageDocument: import("graphql").DocumentNode;
|
|
2270
2280
|
FetchAdminInvitesPageDocument: import("graphql").DocumentNode;
|
|
2281
|
+
FetchAdminOpportunitiesByTypeDocument: import("graphql").DocumentNode;
|
|
2271
2282
|
FetchAdminOpportunitiesPageDocument: import("graphql").DocumentNode;
|
|
2272
2283
|
FetchAdminProjectsDocument: import("graphql").DocumentNode;
|
|
2273
2284
|
FetchAdminProjectsPageDocument: import("graphql").DocumentNode;
|
package/package.json
CHANGED
|
@@ -947,6 +947,7 @@ export type IQuery = {
|
|
|
947
947
|
fetchAdminBrandsPage: IBrandsPage;
|
|
948
948
|
fetchBlockchains: Array<Scalars['String']>;
|
|
949
949
|
fetchAdminAirdropsPage: IOpportunitiesPage;
|
|
950
|
+
fetchAdminOpportunitiesByType?: Maybe<Array<Maybe<IAdminOpportunity>>>;
|
|
950
951
|
fetchProjectsPage: IAdminProjectsPage;
|
|
951
952
|
fetchAdminReferralsPage: IReferralsPage;
|
|
952
953
|
fetchUnarchivedReferralTypes: Array<IReferralType>;
|
|
@@ -1059,6 +1060,11 @@ export type IQueryFetchAdminAirdropsPageArgs = {
|
|
|
1059
1060
|
};
|
|
1060
1061
|
|
|
1061
1062
|
|
|
1063
|
+
export type IQueryFetchAdminOpportunitiesByTypeArgs = {
|
|
1064
|
+
type: IOpportunityType;
|
|
1065
|
+
};
|
|
1066
|
+
|
|
1067
|
+
|
|
1062
1068
|
export type IQueryFetchProjectsPageArgs = {
|
|
1063
1069
|
filter: IAdminProjectsFilterInput;
|
|
1064
1070
|
page: IAdminPageInput;
|
|
@@ -2104,6 +2110,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
2104
2110
|
fetchAdminBrandsPage?: Resolver<IResolversTypes['BrandsPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminBrandsPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
2105
2111
|
fetchBlockchains?: Resolver<Array<IResolversTypes['String']>, ParentType, ContextType>;
|
|
2106
2112
|
fetchAdminAirdropsPage?: Resolver<IResolversTypes['OpportunitiesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminAirdropsPageArgs, 'filter' | 'page'>>;
|
|
2113
|
+
fetchAdminOpportunitiesByType?: Resolver<Maybe<Array<Maybe<IResolversTypes['AdminOpportunity']>>>, ParentType, ContextType, RequireFields<IQueryFetchAdminOpportunitiesByTypeArgs, 'type'>>;
|
|
2107
2114
|
fetchProjectsPage?: Resolver<IResolversTypes['AdminProjectsPage'], ParentType, ContextType, RequireFields<IQueryFetchProjectsPageArgs, 'filter' | 'page'>>;
|
|
2108
2115
|
fetchAdminReferralsPage?: Resolver<IResolversTypes['ReferralsPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminReferralsPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
2109
2116
|
fetchUnarchivedReferralTypes?: Resolver<Array<IResolversTypes['ReferralType']>, ParentType, ContextType>;
|
|
@@ -2631,7 +2638,7 @@ export type IFetchAdminAirdropsPageQueryVariables = Exact<{
|
|
|
2631
2638
|
}>;
|
|
2632
2639
|
|
|
2633
2640
|
|
|
2634
|
-
export type IFetchAdminAirdropsPageQuery = { fetchAdminAirdropsPage: { opportunities: Array<Pick<IAdminOpportunity, 'opportunityId' | 'name' | 'description' | 'projectName' | 'industry' | 'category' | 'ludoUrl' | 'projectUrl' | 'pushNotificationsEnabled' | 'status' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minLudoRank' | 'maxLudoRank' | 'media' | 'minWalletValue' | 'maxWalletValue' | 'clicks' | 'views' | 'addedBy' | 'archived' | 'blockchains' | 'geolocations' | 'notificationDestinations' | 'type' | 'devicePlatforms' | 'participants' | 'hidden' | 'showcase' | 'participantsLimit' | 'availablePlacesForAirdrop' | 'encodePayload' | 'payloadTypes'>>, nextPage?: Maybe<Pick<IAdminPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>> } };
|
|
2641
|
+
export type IFetchAdminAirdropsPageQuery = { fetchAdminAirdropsPage: { opportunities: Array<Pick<IAdminOpportunity, 'opportunityId' | 'name' | 'description' | 'projectName' | 'industry' | 'category' | 'ludoUrl' | 'projectUrl' | 'pushNotificationsEnabled' | 'status' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minLudoRank' | 'maxLudoRank' | 'media' | 'minWalletValue' | 'maxWalletValue' | 'clicks' | 'views' | 'addedBy' | 'archived' | 'blockchains' | 'geolocations' | 'notificationDestinations' | 'type' | 'devicePlatforms' | 'participants' | 'hidden' | 'showcase' | 'participantsLimit' | 'availablePlacesForAirdrop' | 'encodePayload' | 'payloadTypes' | 'parentOpportunityId'>>, nextPage?: Maybe<Pick<IAdminPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>> } };
|
|
2635
2642
|
|
|
2636
2643
|
export type IFetchAdminBrandsQueryVariables = Exact<{ [key: string]: never; }>;
|
|
2637
2644
|
|
|
@@ -2676,6 +2683,13 @@ export type IFetchAdminInvitesPageQuery = { fetchAdminInvitesPage: { invites: Ar
|
|
|
2676
2683
|
& { wallet?: Maybe<Pick<IWallet, 'address' | 'blockchain' | 'chainId'>>, activeInvites?: Maybe<Array<Pick<IActiveInvite, 'inviteCode' | 'createdAt' | 'usedTimes' | 'maxUsagesLimit' | 'reftypeId' | 'reftypeName' | 'reftypeColor'>>>, profileLink?: Maybe<Pick<IReferralLink, 'referralUrl' | 'numOfReferredIps' | 'numOfReferredUsers' | 'refcode' | 'reftypeId' | 'reftypeName' | 'reftypeColor' | 'maxUsagesLimit'>> }
|
|
2677
2684
|
)>, nextPage?: Maybe<Pick<IAdminPage, 'num' | 'lastNum' | 'size' | 'elements' | 'token'>> } };
|
|
2678
2685
|
|
|
2686
|
+
export type IFetchAdminOpportunitiesByTypeQueryVariables = Exact<{
|
|
2687
|
+
type: IOpportunityType;
|
|
2688
|
+
}>;
|
|
2689
|
+
|
|
2690
|
+
|
|
2691
|
+
export type IFetchAdminOpportunitiesByTypeQuery = { fetchAdminOpportunitiesByType?: Maybe<Array<Maybe<Pick<IAdminOpportunity, 'opportunityId' | 'name'>>>> };
|
|
2692
|
+
|
|
2679
2693
|
export type IFetchAdminOpportunitiesPageQueryVariables = Exact<{
|
|
2680
2694
|
filter: IOpportunitiesFilterInput;
|
|
2681
2695
|
sort: IOpportunitiesSortInput;
|
|
@@ -2683,7 +2697,7 @@ export type IFetchAdminOpportunitiesPageQueryVariables = Exact<{
|
|
|
2683
2697
|
}>;
|
|
2684
2698
|
|
|
2685
2699
|
|
|
2686
|
-
export type IFetchAdminOpportunitiesPageQuery = { fetchAdminOpportunitiesPage: { opportunities: Array<Pick<IAdminOpportunity, 'opportunityId' | 'name' | 'projectName' | 'industry' | 'category' | 'ludoUrl' | 'projectUrl' | 'pushNotificationsEnabled' | 'status' | 'media' | 'description' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minLudoRank' | 'maxLudoRank' | 'minWalletValue' | 'maxWalletValue' | 'clicks' | 'views' | 'addedBy' | 'archived' | 'blockchains' | 'geolocations' | 'notificationDestinations' | 'type' | 'devicePlatforms' | 'participantsLimit' | 'availablePlacesForAirdrop' | 'encodePayload' | 'payloadTypes'>>, nextPage?: Maybe<Pick<IAdminPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>> } };
|
|
2700
|
+
export type IFetchAdminOpportunitiesPageQuery = { fetchAdminOpportunitiesPage: { opportunities: Array<Pick<IAdminOpportunity, 'opportunityId' | 'name' | 'projectName' | 'industry' | 'category' | 'ludoUrl' | 'projectUrl' | 'pushNotificationsEnabled' | 'status' | 'media' | 'description' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minLudoRank' | 'maxLudoRank' | 'minWalletValue' | 'maxWalletValue' | 'clicks' | 'views' | 'addedBy' | 'archived' | 'blockchains' | 'geolocations' | 'notificationDestinations' | 'type' | 'devicePlatforms' | 'participantsLimit' | 'availablePlacesForAirdrop' | 'encodePayload' | 'payloadTypes' | 'parentOpportunityId'>>, nextPage?: Maybe<Pick<IAdminPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>> } };
|
|
2687
2701
|
|
|
2688
2702
|
export type IFetchAdminProjectsQueryVariables = Exact<{ [key: string]: never; }>;
|
|
2689
2703
|
|
|
@@ -4266,6 +4280,7 @@ export const FetchAdminAirdropsPageDocument = gql`
|
|
|
4266
4280
|
availablePlacesForAirdrop
|
|
4267
4281
|
encodePayload
|
|
4268
4282
|
payloadTypes
|
|
4283
|
+
parentOpportunityId
|
|
4269
4284
|
}
|
|
4270
4285
|
nextPage {
|
|
4271
4286
|
elements
|
|
@@ -4557,6 +4572,40 @@ export function useFetchAdminInvitesPageLazyQuery(baseOptions?: Apollo.LazyQuery
|
|
|
4557
4572
|
export type FetchAdminInvitesPageQueryHookResult = ReturnType<typeof useFetchAdminInvitesPageQuery>;
|
|
4558
4573
|
export type FetchAdminInvitesPageLazyQueryHookResult = ReturnType<typeof useFetchAdminInvitesPageLazyQuery>;
|
|
4559
4574
|
export type FetchAdminInvitesPageQueryResult = Apollo.QueryResult<IFetchAdminInvitesPageQuery, IFetchAdminInvitesPageQueryVariables>;
|
|
4575
|
+
export const FetchAdminOpportunitiesByTypeDocument = gql`
|
|
4576
|
+
query FetchAdminOpportunitiesByType($type: OpportunityType!) {
|
|
4577
|
+
fetchAdminOpportunitiesByType(type: $type) {
|
|
4578
|
+
opportunityId
|
|
4579
|
+
name
|
|
4580
|
+
}
|
|
4581
|
+
}
|
|
4582
|
+
`;
|
|
4583
|
+
|
|
4584
|
+
/**
|
|
4585
|
+
* __useFetchAdminOpportunitiesByTypeQuery__
|
|
4586
|
+
*
|
|
4587
|
+
* To run a query within a React component, call `useFetchAdminOpportunitiesByTypeQuery` and pass it any options that fit your needs.
|
|
4588
|
+
* When your component renders, `useFetchAdminOpportunitiesByTypeQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
4589
|
+
* you can use to render your UI.
|
|
4590
|
+
*
|
|
4591
|
+
* @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;
|
|
4592
|
+
*
|
|
4593
|
+
* @example
|
|
4594
|
+
* const { data, loading, error } = useFetchAdminOpportunitiesByTypeQuery({
|
|
4595
|
+
* variables: {
|
|
4596
|
+
* type: // value for 'type'
|
|
4597
|
+
* },
|
|
4598
|
+
* });
|
|
4599
|
+
*/
|
|
4600
|
+
export function useFetchAdminOpportunitiesByTypeQuery(baseOptions: Apollo.QueryHookOptions<IFetchAdminOpportunitiesByTypeQuery, IFetchAdminOpportunitiesByTypeQueryVariables>) {
|
|
4601
|
+
return Apollo.useQuery<IFetchAdminOpportunitiesByTypeQuery, IFetchAdminOpportunitiesByTypeQueryVariables>(FetchAdminOpportunitiesByTypeDocument, baseOptions);
|
|
4602
|
+
}
|
|
4603
|
+
export function useFetchAdminOpportunitiesByTypeLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAdminOpportunitiesByTypeQuery, IFetchAdminOpportunitiesByTypeQueryVariables>) {
|
|
4604
|
+
return Apollo.useLazyQuery<IFetchAdminOpportunitiesByTypeQuery, IFetchAdminOpportunitiesByTypeQueryVariables>(FetchAdminOpportunitiesByTypeDocument, baseOptions);
|
|
4605
|
+
}
|
|
4606
|
+
export type FetchAdminOpportunitiesByTypeQueryHookResult = ReturnType<typeof useFetchAdminOpportunitiesByTypeQuery>;
|
|
4607
|
+
export type FetchAdminOpportunitiesByTypeLazyQueryHookResult = ReturnType<typeof useFetchAdminOpportunitiesByTypeLazyQuery>;
|
|
4608
|
+
export type FetchAdminOpportunitiesByTypeQueryResult = Apollo.QueryResult<IFetchAdminOpportunitiesByTypeQuery, IFetchAdminOpportunitiesByTypeQueryVariables>;
|
|
4560
4609
|
export const FetchAdminOpportunitiesPageDocument = gql`
|
|
4561
4610
|
query FetchAdminOpportunitiesPage($filter: OpportunitiesFilterInput!, $sort: OpportunitiesSortInput!, $page: AdminPageInput!) {
|
|
4562
4611
|
fetchAdminOpportunitiesPage(filter: $filter, sort: $sort, page: $page) {
|
|
@@ -4593,6 +4642,7 @@ export const FetchAdminOpportunitiesPageDocument = gql`
|
|
|
4593
4642
|
availablePlacesForAirdrop
|
|
4594
4643
|
encodePayload
|
|
4595
4644
|
payloadTypes
|
|
4645
|
+
parentOpportunityId
|
|
4596
4646
|
}
|
|
4597
4647
|
nextPage {
|
|
4598
4648
|
elements
|
|
@@ -291,6 +291,7 @@ export type IProject = {
|
|
|
291
291
|
price?: Maybe<Scalars['Float']>;
|
|
292
292
|
twitterFollowers?: Maybe<Scalars['Int']>;
|
|
293
293
|
twitterSentiment?: Maybe<Scalars['Int']>;
|
|
294
|
+
communityVote?: Maybe<Scalars['Int']>;
|
|
294
295
|
verified?: Maybe<Scalars['Boolean']>;
|
|
295
296
|
snapshots?: Maybe<Array<Maybe<IProjectSnapshot>>>;
|
|
296
297
|
reactions: IProjectReactions;
|
|
@@ -298,6 +299,12 @@ export type IProject = {
|
|
|
298
299
|
votesGeo?: Maybe<Array<Maybe<IVotesGeolocation>>>;
|
|
299
300
|
airdrops?: Maybe<Array<Maybe<IOpportunityV2>>>;
|
|
300
301
|
opportunities?: Maybe<Array<Maybe<IOpportunityV2>>>;
|
|
302
|
+
communityVotes?: Maybe<Array<Maybe<IProjectCommunityVote>>>;
|
|
303
|
+
};
|
|
304
|
+
|
|
305
|
+
export type IProjectCommunityVote = {
|
|
306
|
+
calculatedAt: Scalars['Long'];
|
|
307
|
+
communityVote: Scalars['Int'];
|
|
301
308
|
};
|
|
302
309
|
|
|
303
310
|
export type IProjectReactionInput = {
|
|
@@ -493,6 +500,7 @@ export type IResolversTypes = {
|
|
|
493
500
|
OpportunityV2: ResolverTypeWrapper<IOpportunityV2>;
|
|
494
501
|
ProfileOpportunities: ResolverTypeWrapper<IProfileOpportunities>;
|
|
495
502
|
Project: ResolverTypeWrapper<IProject>;
|
|
503
|
+
ProjectCommunityVote: ResolverTypeWrapper<IProjectCommunityVote>;
|
|
496
504
|
ProjectReactionInput: IProjectReactionInput;
|
|
497
505
|
ProjectReactions: ResolverTypeWrapper<IProjectReactions>;
|
|
498
506
|
ProjectRegistrationInput: IProjectRegistrationInput;
|
|
@@ -521,6 +529,7 @@ export type IResolversParentTypes = {
|
|
|
521
529
|
OpportunityV2: IOpportunityV2;
|
|
522
530
|
ProfileOpportunities: IProfileOpportunities;
|
|
523
531
|
Project: IProject;
|
|
532
|
+
ProjectCommunityVote: IProjectCommunityVote;
|
|
524
533
|
ProjectReactionInput: IProjectReactionInput;
|
|
525
534
|
ProjectReactions: IProjectReactions;
|
|
526
535
|
ProjectRegistrationInput: IProjectRegistrationInput;
|
|
@@ -688,6 +697,7 @@ export type IProjectResolvers<ContextType = any, ParentType extends IResolversPa
|
|
|
688
697
|
price?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
689
698
|
twitterFollowers?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
690
699
|
twitterSentiment?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
700
|
+
communityVote?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
691
701
|
verified?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
692
702
|
snapshots?: Resolver<Maybe<Array<Maybe<IResolversTypes['ProjectSnapshot']>>>, ParentType, ContextType>;
|
|
693
703
|
reactions?: Resolver<IResolversTypes['ProjectReactions'], ParentType, ContextType>;
|
|
@@ -695,6 +705,13 @@ export type IProjectResolvers<ContextType = any, ParentType extends IResolversPa
|
|
|
695
705
|
votesGeo?: Resolver<Maybe<Array<Maybe<IResolversTypes['VotesGeolocation']>>>, ParentType, ContextType>;
|
|
696
706
|
airdrops?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType>;
|
|
697
707
|
opportunities?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType>;
|
|
708
|
+
communityVotes?: Resolver<Maybe<Array<Maybe<IResolversTypes['ProjectCommunityVote']>>>, ParentType, ContextType>;
|
|
709
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
710
|
+
};
|
|
711
|
+
|
|
712
|
+
export type IProjectCommunityVoteResolvers<ContextType = any, ParentType extends IResolversParentTypes['ProjectCommunityVote'] = IResolversParentTypes['ProjectCommunityVote']> = {
|
|
713
|
+
calculatedAt?: Resolver<IResolversTypes['Long'], ParentType, ContextType>;
|
|
714
|
+
communityVote?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
698
715
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
699
716
|
};
|
|
700
717
|
|
|
@@ -754,6 +771,7 @@ export type IResolvers<ContextType = any> = {
|
|
|
754
771
|
OpportunityV2?: IOpportunityV2Resolvers<ContextType>;
|
|
755
772
|
ProfileOpportunities?: IProfileOpportunitiesResolvers<ContextType>;
|
|
756
773
|
Project?: IProjectResolvers<ContextType>;
|
|
774
|
+
ProjectCommunityVote?: IProjectCommunityVoteResolvers<ContextType>;
|
|
757
775
|
ProjectReactions?: IProjectReactionsResolvers<ContextType>;
|
|
758
776
|
ProjectSnapshot?: IProjectSnapshotResolvers<ContextType>;
|
|
759
777
|
Query?: IQueryResolvers<ContextType>;
|
|
@@ -885,8 +903,8 @@ export type IFetchProjectBySlugQueryVariables = Exact<{
|
|
|
885
903
|
|
|
886
904
|
|
|
887
905
|
export type IFetchProjectBySlugQuery = { fetchProjectBySlug: (
|
|
888
|
-
Pick<IProject, 'blockchain' | 'contract' | 'name' | 'slug' | 'symbol' | 'website' | 'twitter' | 'type' | 'ludoRank' | 'investors' | 'holders' | 'volume' | 'marketCap' | 'liquidity' | 'price' | 'twitterFollowers' | 'twitterSentiment' | 'verified' | 'userReaction'>
|
|
889
|
-
& { snapshots?: Maybe<Array<Maybe<Pick<IProjectSnapshot, 'date' | 'contract' | 'blockchain' | 'volume' | 'marketCap' | 'price' | 'liquidity' | 'xFollowers' | 'holders' | 'ludoRank'>>>>, reactions: Pick<IProjectReactions, 'likes' | 'neutrals' | 'dislikes'>, votesGeo?: Maybe<Array<Maybe<Pick<IVotesGeolocation, 'country' | 'votes' | 'votesPercentage'>>>>, airdrops?: Maybe<Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'projectId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'blockchains' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked' | 'geolocations' | 'subscribed' | 'participantsLimit' | 'availablePlacesForAirdrop'>>>>, opportunities?: Maybe<Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'projectId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'blockchains' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked' | 'geolocations' | 'subscribed' | 'participantsLimit' | 'availablePlacesForAirdrop'>>>> }
|
|
906
|
+
Pick<IProject, 'blockchain' | 'contract' | 'name' | 'slug' | 'symbol' | 'website' | 'twitter' | 'type' | 'ludoRank' | 'investors' | 'holders' | 'volume' | 'marketCap' | 'liquidity' | 'price' | 'twitterFollowers' | 'twitterSentiment' | 'verified' | 'userReaction' | 'communityVote'>
|
|
907
|
+
& { snapshots?: Maybe<Array<Maybe<Pick<IProjectSnapshot, 'date' | 'contract' | 'blockchain' | 'volume' | 'marketCap' | 'price' | 'liquidity' | 'xFollowers' | 'holders' | 'ludoRank'>>>>, reactions: Pick<IProjectReactions, 'likes' | 'neutrals' | 'dislikes'>, votesGeo?: Maybe<Array<Maybe<Pick<IVotesGeolocation, 'country' | 'votes' | 'votesPercentage'>>>>, airdrops?: Maybe<Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'projectId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'blockchains' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked' | 'geolocations' | 'subscribed' | 'participantsLimit' | 'availablePlacesForAirdrop'>>>>, opportunities?: Maybe<Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'projectId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'blockchains' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked' | 'geolocations' | 'subscribed' | 'participantsLimit' | 'availablePlacesForAirdrop'>>>>, communityVotes?: Maybe<Array<Maybe<Pick<IProjectCommunityVote, 'calculatedAt' | 'communityVote'>>>> }
|
|
890
908
|
) };
|
|
891
909
|
|
|
892
910
|
|
|
@@ -1866,6 +1884,11 @@ export const FetchProjectBySlugDocument = gql`
|
|
|
1866
1884
|
participantsLimit
|
|
1867
1885
|
availablePlacesForAirdrop
|
|
1868
1886
|
}
|
|
1887
|
+
communityVote
|
|
1888
|
+
communityVotes {
|
|
1889
|
+
calculatedAt
|
|
1890
|
+
communityVote
|
|
1891
|
+
}
|
|
1869
1892
|
}
|
|
1870
1893
|
}
|
|
1871
1894
|
`;
|