@ludo.ninja/api 2.8.52 → 2.8.53
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 +64 -0
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.d.ts +32 -0
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.js +64 -1
- package/build/index.d.ts +11 -0
- package/package.json +1 -1
- package/src/graphql_tools/__generated__/adminHost/schema.ts +72 -0
- package/src/graphql_tools/__generated__/opportunitiesHost/schema.ts +72 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -157,6 +157,17 @@ export type IAdminPageInput = {
|
|
|
157
157
|
size: Scalars['Int'];
|
|
158
158
|
token?: Maybe<Scalars['String']>;
|
|
159
159
|
};
|
|
160
|
+
export type IAdminPartnershipInquiry = {
|
|
161
|
+
id: Scalars['String'];
|
|
162
|
+
userId?: Maybe<Scalars['String']>;
|
|
163
|
+
name?: Maybe<Scalars['String']>;
|
|
164
|
+
email?: Maybe<Scalars['String']>;
|
|
165
|
+
projectName?: Maybe<Scalars['String']>;
|
|
166
|
+
website?: Maybe<Scalars['String']>;
|
|
167
|
+
aboutProject?: Maybe<Scalars['String']>;
|
|
168
|
+
partnershipType?: Maybe<Scalars['String']>;
|
|
169
|
+
ludoReferrerInfo?: Maybe<Scalars['String']>;
|
|
170
|
+
};
|
|
160
171
|
export type IAdminReferral = {
|
|
161
172
|
userId: Scalars['ID'];
|
|
162
173
|
username?: Maybe<Scalars['String']>;
|
|
@@ -443,12 +454,32 @@ export type IOpportunitiesSortInput = {
|
|
|
443
454
|
sortByMaxXpLevel?: Maybe<ISort>;
|
|
444
455
|
sortByAddedBy?: Maybe<ISort>;
|
|
445
456
|
};
|
|
457
|
+
export type IPartnershipInquiryFilterInput = {
|
|
458
|
+
idTerm?: Maybe<Scalars['String']>;
|
|
459
|
+
userIdTerm?: Maybe<Scalars['String']>;
|
|
460
|
+
nameTerm?: Maybe<Scalars['String']>;
|
|
461
|
+
emailTerm?: Maybe<Scalars['String']>;
|
|
462
|
+
projectNameTerm?: Maybe<Scalars['String']>;
|
|
463
|
+
websiteTerm?: Maybe<Scalars['String']>;
|
|
464
|
+
partnershipTypeTerm?: Maybe<Scalars['String']>;
|
|
465
|
+
};
|
|
466
|
+
export type IPartnershipInquiryPage = {
|
|
467
|
+
partnershipInquiries: Array<IAdminPartnershipInquiry>;
|
|
468
|
+
nextPage?: Maybe<IAdminPage>;
|
|
469
|
+
};
|
|
470
|
+
export type IPartnershipInquirySortInput = {
|
|
471
|
+
sortByUserId?: Maybe<ISort>;
|
|
472
|
+
sortByEmail?: Maybe<ISort>;
|
|
473
|
+
sortByProjectName?: Maybe<ISort>;
|
|
474
|
+
sortByPartnershipType?: Maybe<ISort>;
|
|
475
|
+
};
|
|
446
476
|
export type IQuery = {
|
|
447
477
|
getDummy: Scalars['String'];
|
|
448
478
|
fetchContactSupportPage: IContactSupportPage;
|
|
449
479
|
fetchContentReportPage: IContentReportPage;
|
|
450
480
|
fetchInvestorInquiryPage: IInvestorInquiryPage;
|
|
451
481
|
fetchFormOpportunityPage: IFormOpportunityPage;
|
|
482
|
+
fetchPartnershipInquiryPage: IPartnershipInquiryPage;
|
|
452
483
|
fetchAdminInvitesPage: IInvitesPage;
|
|
453
484
|
fetchAdminOpportunitiesPage: IOpportunitiesPage;
|
|
454
485
|
fetchAdminCategories: Array<IAdminCategory>;
|
|
@@ -480,6 +511,11 @@ export type IQueryFetchFormOpportunityPageArgs = {
|
|
|
480
511
|
sort: IFormOpportunitySortInput;
|
|
481
512
|
page: IAdminPageInput;
|
|
482
513
|
};
|
|
514
|
+
export type IQueryFetchPartnershipInquiryPageArgs = {
|
|
515
|
+
filter: IPartnershipInquiryFilterInput;
|
|
516
|
+
sort: IPartnershipInquirySortInput;
|
|
517
|
+
page: IAdminPageInput;
|
|
518
|
+
};
|
|
483
519
|
export type IQueryFetchAdminInvitesPageArgs = {
|
|
484
520
|
filter: IInvitesFilterInput;
|
|
485
521
|
sort: IInvitesSortInput;
|
|
@@ -647,6 +683,7 @@ export type IResolversTypes = {
|
|
|
647
683
|
AdminOpportunityInput: IAdminOpportunityInput;
|
|
648
684
|
AdminPage: ResolverTypeWrapper<IAdminPage>;
|
|
649
685
|
AdminPageInput: IAdminPageInput;
|
|
686
|
+
AdminPartnershipInquiry: ResolverTypeWrapper<IAdminPartnershipInquiry>;
|
|
650
687
|
AdminReferral: ResolverTypeWrapper<IAdminReferral>;
|
|
651
688
|
AdminUser: ResolverTypeWrapper<IAdminUser>;
|
|
652
689
|
AdminXp: ResolverTypeWrapper<IAdminXp>;
|
|
@@ -678,6 +715,9 @@ export type IResolversTypes = {
|
|
|
678
715
|
OpportunitiesFilterInput: IOpportunitiesFilterInput;
|
|
679
716
|
OpportunitiesPage: ResolverTypeWrapper<IOpportunitiesPage>;
|
|
680
717
|
OpportunitiesSortInput: IOpportunitiesSortInput;
|
|
718
|
+
PartnershipInquiryFilterInput: IPartnershipInquiryFilterInput;
|
|
719
|
+
PartnershipInquiryPage: ResolverTypeWrapper<IPartnershipInquiryPage>;
|
|
720
|
+
PartnershipInquirySortInput: IPartnershipInquirySortInput;
|
|
681
721
|
Query: ResolverTypeWrapper<{}>;
|
|
682
722
|
ReferralsFilterInput: IReferralsFilterInput;
|
|
683
723
|
ReferralsPage: ResolverTypeWrapper<IReferralsPage>;
|
|
@@ -713,6 +753,7 @@ export type IResolversParentTypes = {
|
|
|
713
753
|
AdminOpportunityInput: IAdminOpportunityInput;
|
|
714
754
|
AdminPage: IAdminPage;
|
|
715
755
|
AdminPageInput: IAdminPageInput;
|
|
756
|
+
AdminPartnershipInquiry: IAdminPartnershipInquiry;
|
|
716
757
|
AdminReferral: IAdminReferral;
|
|
717
758
|
AdminUser: IAdminUser;
|
|
718
759
|
AdminXp: IAdminXp;
|
|
@@ -744,6 +785,9 @@ export type IResolversParentTypes = {
|
|
|
744
785
|
OpportunitiesFilterInput: IOpportunitiesFilterInput;
|
|
745
786
|
OpportunitiesPage: IOpportunitiesPage;
|
|
746
787
|
OpportunitiesSortInput: IOpportunitiesSortInput;
|
|
788
|
+
PartnershipInquiryFilterInput: IPartnershipInquiryFilterInput;
|
|
789
|
+
PartnershipInquiryPage: IPartnershipInquiryPage;
|
|
790
|
+
PartnershipInquirySortInput: IPartnershipInquirySortInput;
|
|
747
791
|
Query: {};
|
|
748
792
|
ReferralsFilterInput: IReferralsFilterInput;
|
|
749
793
|
ReferralsPage: IReferralsPage;
|
|
@@ -886,6 +930,18 @@ export type IAdminPageResolvers<ContextType = any, ParentType extends IResolvers
|
|
|
886
930
|
token?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
887
931
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
888
932
|
};
|
|
933
|
+
export type IAdminPartnershipInquiryResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminPartnershipInquiry'] = IResolversParentTypes['AdminPartnershipInquiry']> = {
|
|
934
|
+
id?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
935
|
+
userId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
936
|
+
name?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
937
|
+
email?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
938
|
+
projectName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
939
|
+
website?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
940
|
+
aboutProject?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
941
|
+
partnershipType?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
942
|
+
ludoReferrerInfo?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
943
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
944
|
+
};
|
|
889
945
|
export type IAdminReferralResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminReferral'] = IResolversParentTypes['AdminReferral']> = {
|
|
890
946
|
userId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
891
947
|
username?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
@@ -982,12 +1038,18 @@ export type IOpportunitiesPageResolvers<ContextType = any, ParentType extends IR
|
|
|
982
1038
|
nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
|
|
983
1039
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
984
1040
|
};
|
|
1041
|
+
export type IPartnershipInquiryPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['PartnershipInquiryPage'] = IResolversParentTypes['PartnershipInquiryPage']> = {
|
|
1042
|
+
partnershipInquiries?: Resolver<Array<IResolversTypes['AdminPartnershipInquiry']>, ParentType, ContextType>;
|
|
1043
|
+
nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
|
|
1044
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1045
|
+
};
|
|
985
1046
|
export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
|
|
986
1047
|
getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
987
1048
|
fetchContactSupportPage?: Resolver<IResolversTypes['ContactSupportPage'], ParentType, ContextType, RequireFields<IQueryFetchContactSupportPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
988
1049
|
fetchContentReportPage?: Resolver<IResolversTypes['ContentReportPage'], ParentType, ContextType, RequireFields<IQueryFetchContentReportPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
989
1050
|
fetchInvestorInquiryPage?: Resolver<IResolversTypes['InvestorInquiryPage'], ParentType, ContextType, RequireFields<IQueryFetchInvestorInquiryPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
990
1051
|
fetchFormOpportunityPage?: Resolver<IResolversTypes['FormOpportunityPage'], ParentType, ContextType, RequireFields<IQueryFetchFormOpportunityPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1052
|
+
fetchPartnershipInquiryPage?: Resolver<IResolversTypes['PartnershipInquiryPage'], ParentType, ContextType, RequireFields<IQueryFetchPartnershipInquiryPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
991
1053
|
fetchAdminInvitesPage?: Resolver<IResolversTypes['InvitesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminInvitesPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
992
1054
|
fetchAdminOpportunitiesPage?: Resolver<IResolversTypes['OpportunitiesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminOpportunitiesPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
993
1055
|
fetchAdminCategories?: Resolver<Array<IResolversTypes['AdminCategory']>, ParentType, ContextType>;
|
|
@@ -1041,6 +1103,7 @@ export type IResolvers<ContextType = any> = {
|
|
|
1041
1103
|
AdminInvite?: IAdminInviteResolvers<ContextType>;
|
|
1042
1104
|
AdminOpportunity?: IAdminOpportunityResolvers<ContextType>;
|
|
1043
1105
|
AdminPage?: IAdminPageResolvers<ContextType>;
|
|
1106
|
+
AdminPartnershipInquiry?: IAdminPartnershipInquiryResolvers<ContextType>;
|
|
1044
1107
|
AdminReferral?: IAdminReferralResolvers<ContextType>;
|
|
1045
1108
|
AdminUser?: IAdminUserResolvers<ContextType>;
|
|
1046
1109
|
AdminXp?: IAdminXpResolvers<ContextType>;
|
|
@@ -1054,6 +1117,7 @@ export type IResolvers<ContextType = any> = {
|
|
|
1054
1117
|
Long?: GraphQLScalarType;
|
|
1055
1118
|
Mutation?: IMutationResolvers<ContextType>;
|
|
1056
1119
|
OpportunitiesPage?: IOpportunitiesPageResolvers<ContextType>;
|
|
1120
|
+
PartnershipInquiryPage?: IPartnershipInquiryPageResolvers<ContextType>;
|
|
1057
1121
|
Query?: IQueryResolvers<ContextType>;
|
|
1058
1122
|
ReferralsPage?: IReferralsPageResolvers<ContextType>;
|
|
1059
1123
|
ReferredUsersInfo?: IReferredUsersInfoResolvers<ContextType>;
|
|
@@ -429,6 +429,12 @@ export type IOpenOpportunityMutationVariables = Exact<{
|
|
|
429
429
|
opportunityId: Scalars['ID'];
|
|
430
430
|
}>;
|
|
431
431
|
export type IOpenOpportunityMutation = Pick<IMutation, 'openOpportunity'>;
|
|
432
|
+
export type IFetchOpportunitiesByIdsQueryVariables = Exact<{
|
|
433
|
+
opportunityIds: Array<Scalars['ID']>;
|
|
434
|
+
}>;
|
|
435
|
+
export type IFetchOpportunitiesByIdsQuery = {
|
|
436
|
+
fetchOpportunitiesByIds: Array<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' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked'>>;
|
|
437
|
+
};
|
|
432
438
|
export type IFetchOpportunitiesForProfileQueryVariables = Exact<{
|
|
433
439
|
[key: string]: never;
|
|
434
440
|
}>;
|
|
@@ -544,6 +550,32 @@ export declare function useOpenOpportunityMutation(baseOptions?: Apollo.Mutation
|
|
|
544
550
|
export type OpenOpportunityMutationHookResult = ReturnType<typeof useOpenOpportunityMutation>;
|
|
545
551
|
export type OpenOpportunityMutationResult = Apollo.MutationResult<IOpenOpportunityMutation>;
|
|
546
552
|
export type OpenOpportunityMutationOptions = Apollo.BaseMutationOptions<IOpenOpportunityMutation, IOpenOpportunityMutationVariables>;
|
|
553
|
+
export declare const FetchOpportunitiesByIdsDocument: Apollo.DocumentNode;
|
|
554
|
+
/**
|
|
555
|
+
* __useFetchOpportunitiesByIdsQuery__
|
|
556
|
+
*
|
|
557
|
+
* To run a query within a React component, call `useFetchOpportunitiesByIdsQuery` and pass it any options that fit your needs.
|
|
558
|
+
* When your component renders, `useFetchOpportunitiesByIdsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
559
|
+
* you can use to render your UI.
|
|
560
|
+
*
|
|
561
|
+
* @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;
|
|
562
|
+
*
|
|
563
|
+
* @example
|
|
564
|
+
* const { data, loading, error } = useFetchOpportunitiesByIdsQuery({
|
|
565
|
+
* variables: {
|
|
566
|
+
* opportunityIds: // value for 'opportunityIds'
|
|
567
|
+
* },
|
|
568
|
+
* });
|
|
569
|
+
*/
|
|
570
|
+
export declare function useFetchOpportunitiesByIdsQuery(baseOptions: Apollo.QueryHookOptions<IFetchOpportunitiesByIdsQuery, IFetchOpportunitiesByIdsQueryVariables>): Apollo.QueryResult<IFetchOpportunitiesByIdsQuery, Exact<{
|
|
571
|
+
opportunityIds: string[];
|
|
572
|
+
}>>;
|
|
573
|
+
export declare function useFetchOpportunitiesByIdsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchOpportunitiesByIdsQuery, IFetchOpportunitiesByIdsQueryVariables>): Apollo.LazyQueryResultTuple<IFetchOpportunitiesByIdsQuery, Exact<{
|
|
574
|
+
opportunityIds: string[];
|
|
575
|
+
}>>;
|
|
576
|
+
export type FetchOpportunitiesByIdsQueryHookResult = ReturnType<typeof useFetchOpportunitiesByIdsQuery>;
|
|
577
|
+
export type FetchOpportunitiesByIdsLazyQueryHookResult = ReturnType<typeof useFetchOpportunitiesByIdsLazyQuery>;
|
|
578
|
+
export type FetchOpportunitiesByIdsQueryResult = Apollo.QueryResult<IFetchOpportunitiesByIdsQuery, IFetchOpportunitiesByIdsQueryVariables>;
|
|
547
579
|
export declare const FetchOpportunitiesForProfileDocument: Apollo.DocumentNode;
|
|
548
580
|
/**
|
|
549
581
|
* __useFetchOpportunitiesForProfileQuery__
|
|
@@ -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.useOpenOpportunityMutation = exports.OpenOpportunityDocument = exports.useCreateOpportunityMutation = exports.CreateOpportunityDocument = exports.useLikeOpportunityMutation = exports.LikeOpportunityDocument = exports.useDislikeOpportunityMutation = exports.DislikeOpportunityDocument = void 0;
|
|
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;
|
|
27
27
|
const client_1 = require("@apollo/client");
|
|
28
28
|
const Apollo = __importStar(require("@apollo/client"));
|
|
29
29
|
exports.DislikeOpportunityDocument = (0, client_1.gql) `
|
|
@@ -130,6 +130,69 @@ function useOpenOpportunityMutation(baseOptions) {
|
|
|
130
130
|
return Apollo.useMutation(exports.OpenOpportunityDocument, baseOptions);
|
|
131
131
|
}
|
|
132
132
|
exports.useOpenOpportunityMutation = useOpenOpportunityMutation;
|
|
133
|
+
exports.FetchOpportunitiesByIdsDocument = (0, client_1.gql) `
|
|
134
|
+
query FetchOpportunitiesByIds($opportunityIds: [ID!]!) {
|
|
135
|
+
fetchOpportunitiesByIds(opportunityIds: $opportunityIds) {
|
|
136
|
+
opportunityId
|
|
137
|
+
brandId
|
|
138
|
+
categoryId
|
|
139
|
+
opportunityStatus
|
|
140
|
+
opportunityType
|
|
141
|
+
notificationType
|
|
142
|
+
name
|
|
143
|
+
description
|
|
144
|
+
brandName
|
|
145
|
+
brandDescription
|
|
146
|
+
brandMedia
|
|
147
|
+
brandUrl
|
|
148
|
+
brandIndustry
|
|
149
|
+
categoryName
|
|
150
|
+
ludoUrl
|
|
151
|
+
projectUrl
|
|
152
|
+
activeFrom
|
|
153
|
+
activeUntil
|
|
154
|
+
minXpLevel
|
|
155
|
+
maxXpLevel
|
|
156
|
+
minRank
|
|
157
|
+
maxRank
|
|
158
|
+
media
|
|
159
|
+
reportLink
|
|
160
|
+
clicks
|
|
161
|
+
views
|
|
162
|
+
blockchain
|
|
163
|
+
collection
|
|
164
|
+
createdAt
|
|
165
|
+
minWalletValue
|
|
166
|
+
maxWalletValue
|
|
167
|
+
shareLink
|
|
168
|
+
liked
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
`;
|
|
172
|
+
/**
|
|
173
|
+
* __useFetchOpportunitiesByIdsQuery__
|
|
174
|
+
*
|
|
175
|
+
* To run a query within a React component, call `useFetchOpportunitiesByIdsQuery` and pass it any options that fit your needs.
|
|
176
|
+
* When your component renders, `useFetchOpportunitiesByIdsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
177
|
+
* you can use to render your UI.
|
|
178
|
+
*
|
|
179
|
+
* @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;
|
|
180
|
+
*
|
|
181
|
+
* @example
|
|
182
|
+
* const { data, loading, error } = useFetchOpportunitiesByIdsQuery({
|
|
183
|
+
* variables: {
|
|
184
|
+
* opportunityIds: // value for 'opportunityIds'
|
|
185
|
+
* },
|
|
186
|
+
* });
|
|
187
|
+
*/
|
|
188
|
+
function useFetchOpportunitiesByIdsQuery(baseOptions) {
|
|
189
|
+
return Apollo.useQuery(exports.FetchOpportunitiesByIdsDocument, baseOptions);
|
|
190
|
+
}
|
|
191
|
+
exports.useFetchOpportunitiesByIdsQuery = useFetchOpportunitiesByIdsQuery;
|
|
192
|
+
function useFetchOpportunitiesByIdsLazyQuery(baseOptions) {
|
|
193
|
+
return Apollo.useLazyQuery(exports.FetchOpportunitiesByIdsDocument, baseOptions);
|
|
194
|
+
}
|
|
195
|
+
exports.useFetchOpportunitiesByIdsLazyQuery = useFetchOpportunitiesByIdsLazyQuery;
|
|
133
196
|
exports.FetchOpportunitiesForProfileDocument = (0, client_1.gql) `
|
|
134
197
|
query FetchOpportunitiesForProfile {
|
|
135
198
|
fetchOpportunitiesForProfile {
|
package/build/index.d.ts
CHANGED
|
@@ -423,6 +423,16 @@ declare const schema: {
|
|
|
423
423
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<opportunitiesSchema.IOpenOpportunityMutation, opportunitiesSchema.Exact<{
|
|
424
424
|
opportunityId: string;
|
|
425
425
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
426
|
+
useFetchOpportunitiesByIdsQuery(baseOptions: import("@apollo/client").QueryHookOptions<opportunitiesSchema.IFetchOpportunitiesByIdsQuery, opportunitiesSchema.Exact<{
|
|
427
|
+
opportunityIds: string[];
|
|
428
|
+
}>>): import("@apollo/client").QueryResult<opportunitiesSchema.IFetchOpportunitiesByIdsQuery, opportunitiesSchema.Exact<{
|
|
429
|
+
opportunityIds: string[];
|
|
430
|
+
}>>;
|
|
431
|
+
useFetchOpportunitiesByIdsLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<opportunitiesSchema.IFetchOpportunitiesByIdsQuery, opportunitiesSchema.Exact<{
|
|
432
|
+
opportunityIds: string[];
|
|
433
|
+
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<opportunitiesSchema.IFetchOpportunitiesByIdsQuery, opportunitiesSchema.Exact<{
|
|
434
|
+
opportunityIds: string[];
|
|
435
|
+
}>>;
|
|
426
436
|
useFetchOpportunitiesForProfileQuery(baseOptions?: import("@apollo/client").QueryHookOptions<opportunitiesSchema.IFetchOpportunitiesForProfileQuery, opportunitiesSchema.Exact<{
|
|
427
437
|
[key: string]: never;
|
|
428
438
|
}>> | undefined): import("@apollo/client").QueryResult<opportunitiesSchema.IFetchOpportunitiesForProfileQuery, opportunitiesSchema.Exact<{
|
|
@@ -447,6 +457,7 @@ declare const schema: {
|
|
|
447
457
|
LikeOpportunityDocument: import("graphql").DocumentNode;
|
|
448
458
|
CreateOpportunityDocument: import("graphql").DocumentNode;
|
|
449
459
|
OpenOpportunityDocument: import("graphql").DocumentNode;
|
|
460
|
+
FetchOpportunitiesByIdsDocument: import("graphql").DocumentNode;
|
|
450
461
|
FetchOpportunitiesForProfileDocument: import("graphql").DocumentNode;
|
|
451
462
|
FetchOpportunitiesDocument: import("graphql").DocumentNode;
|
|
452
463
|
useDeleteGalleryBannerMutation(baseOptions?: import("@apollo/client").MutationHookOptions<mediasSchema.IDeleteGalleryBannerMutation, mediasSchema.Exact<{
|
package/package.json
CHANGED
|
@@ -165,6 +165,18 @@ export type IAdminPageInput = {
|
|
|
165
165
|
token?: Maybe<Scalars['String']>;
|
|
166
166
|
};
|
|
167
167
|
|
|
168
|
+
export type IAdminPartnershipInquiry = {
|
|
169
|
+
id: Scalars['String'];
|
|
170
|
+
userId?: Maybe<Scalars['String']>;
|
|
171
|
+
name?: Maybe<Scalars['String']>;
|
|
172
|
+
email?: Maybe<Scalars['String']>;
|
|
173
|
+
projectName?: Maybe<Scalars['String']>;
|
|
174
|
+
website?: Maybe<Scalars['String']>;
|
|
175
|
+
aboutProject?: Maybe<Scalars['String']>;
|
|
176
|
+
partnershipType?: Maybe<Scalars['String']>;
|
|
177
|
+
ludoReferrerInfo?: Maybe<Scalars['String']>;
|
|
178
|
+
};
|
|
179
|
+
|
|
168
180
|
export type IAdminReferral = {
|
|
169
181
|
userId: Scalars['ID'];
|
|
170
182
|
username?: Maybe<Scalars['String']>;
|
|
@@ -512,12 +524,35 @@ export type IOpportunitiesSortInput = {
|
|
|
512
524
|
sortByAddedBy?: Maybe<ISort>;
|
|
513
525
|
};
|
|
514
526
|
|
|
527
|
+
export type IPartnershipInquiryFilterInput = {
|
|
528
|
+
idTerm?: Maybe<Scalars['String']>;
|
|
529
|
+
userIdTerm?: Maybe<Scalars['String']>;
|
|
530
|
+
nameTerm?: Maybe<Scalars['String']>;
|
|
531
|
+
emailTerm?: Maybe<Scalars['String']>;
|
|
532
|
+
projectNameTerm?: Maybe<Scalars['String']>;
|
|
533
|
+
websiteTerm?: Maybe<Scalars['String']>;
|
|
534
|
+
partnershipTypeTerm?: Maybe<Scalars['String']>;
|
|
535
|
+
};
|
|
536
|
+
|
|
537
|
+
export type IPartnershipInquiryPage = {
|
|
538
|
+
partnershipInquiries: Array<IAdminPartnershipInquiry>;
|
|
539
|
+
nextPage?: Maybe<IAdminPage>;
|
|
540
|
+
};
|
|
541
|
+
|
|
542
|
+
export type IPartnershipInquirySortInput = {
|
|
543
|
+
sortByUserId?: Maybe<ISort>;
|
|
544
|
+
sortByEmail?: Maybe<ISort>;
|
|
545
|
+
sortByProjectName?: Maybe<ISort>;
|
|
546
|
+
sortByPartnershipType?: Maybe<ISort>;
|
|
547
|
+
};
|
|
548
|
+
|
|
515
549
|
export type IQuery = {
|
|
516
550
|
getDummy: Scalars['String'];
|
|
517
551
|
fetchContactSupportPage: IContactSupportPage;
|
|
518
552
|
fetchContentReportPage: IContentReportPage;
|
|
519
553
|
fetchInvestorInquiryPage: IInvestorInquiryPage;
|
|
520
554
|
fetchFormOpportunityPage: IFormOpportunityPage;
|
|
555
|
+
fetchPartnershipInquiryPage: IPartnershipInquiryPage;
|
|
521
556
|
fetchAdminInvitesPage: IInvitesPage;
|
|
522
557
|
fetchAdminOpportunitiesPage: IOpportunitiesPage;
|
|
523
558
|
fetchAdminCategories: Array<IAdminCategory>;
|
|
@@ -559,6 +594,13 @@ export type IQueryFetchFormOpportunityPageArgs = {
|
|
|
559
594
|
};
|
|
560
595
|
|
|
561
596
|
|
|
597
|
+
export type IQueryFetchPartnershipInquiryPageArgs = {
|
|
598
|
+
filter: IPartnershipInquiryFilterInput;
|
|
599
|
+
sort: IPartnershipInquirySortInput;
|
|
600
|
+
page: IAdminPageInput;
|
|
601
|
+
};
|
|
602
|
+
|
|
603
|
+
|
|
562
604
|
export type IQueryFetchAdminInvitesPageArgs = {
|
|
563
605
|
filter: IInvitesFilterInput;
|
|
564
606
|
sort: IInvitesSortInput;
|
|
@@ -794,6 +836,7 @@ export type IResolversTypes = {
|
|
|
794
836
|
AdminOpportunityInput: IAdminOpportunityInput;
|
|
795
837
|
AdminPage: ResolverTypeWrapper<IAdminPage>;
|
|
796
838
|
AdminPageInput: IAdminPageInput;
|
|
839
|
+
AdminPartnershipInquiry: ResolverTypeWrapper<IAdminPartnershipInquiry>;
|
|
797
840
|
AdminReferral: ResolverTypeWrapper<IAdminReferral>;
|
|
798
841
|
AdminUser: ResolverTypeWrapper<IAdminUser>;
|
|
799
842
|
AdminXp: ResolverTypeWrapper<IAdminXp>;
|
|
@@ -825,6 +868,9 @@ export type IResolversTypes = {
|
|
|
825
868
|
OpportunitiesFilterInput: IOpportunitiesFilterInput;
|
|
826
869
|
OpportunitiesPage: ResolverTypeWrapper<IOpportunitiesPage>;
|
|
827
870
|
OpportunitiesSortInput: IOpportunitiesSortInput;
|
|
871
|
+
PartnershipInquiryFilterInput: IPartnershipInquiryFilterInput;
|
|
872
|
+
PartnershipInquiryPage: ResolverTypeWrapper<IPartnershipInquiryPage>;
|
|
873
|
+
PartnershipInquirySortInput: IPartnershipInquirySortInput;
|
|
828
874
|
Query: ResolverTypeWrapper<{}>;
|
|
829
875
|
ReferralsFilterInput: IReferralsFilterInput;
|
|
830
876
|
ReferralsPage: ResolverTypeWrapper<IReferralsPage>;
|
|
@@ -861,6 +907,7 @@ export type IResolversParentTypes = {
|
|
|
861
907
|
AdminOpportunityInput: IAdminOpportunityInput;
|
|
862
908
|
AdminPage: IAdminPage;
|
|
863
909
|
AdminPageInput: IAdminPageInput;
|
|
910
|
+
AdminPartnershipInquiry: IAdminPartnershipInquiry;
|
|
864
911
|
AdminReferral: IAdminReferral;
|
|
865
912
|
AdminUser: IAdminUser;
|
|
866
913
|
AdminXp: IAdminXp;
|
|
@@ -892,6 +939,9 @@ export type IResolversParentTypes = {
|
|
|
892
939
|
OpportunitiesFilterInput: IOpportunitiesFilterInput;
|
|
893
940
|
OpportunitiesPage: IOpportunitiesPage;
|
|
894
941
|
OpportunitiesSortInput: IOpportunitiesSortInput;
|
|
942
|
+
PartnershipInquiryFilterInput: IPartnershipInquiryFilterInput;
|
|
943
|
+
PartnershipInquiryPage: IPartnershipInquiryPage;
|
|
944
|
+
PartnershipInquirySortInput: IPartnershipInquirySortInput;
|
|
895
945
|
Query: {};
|
|
896
946
|
ReferralsFilterInput: IReferralsFilterInput;
|
|
897
947
|
ReferralsPage: IReferralsPage;
|
|
@@ -1051,6 +1101,19 @@ export type IAdminPageResolvers<ContextType = any, ParentType extends IResolvers
|
|
|
1051
1101
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1052
1102
|
};
|
|
1053
1103
|
|
|
1104
|
+
export type IAdminPartnershipInquiryResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminPartnershipInquiry'] = IResolversParentTypes['AdminPartnershipInquiry']> = {
|
|
1105
|
+
id?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
1106
|
+
userId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
1107
|
+
name?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
1108
|
+
email?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
1109
|
+
projectName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
1110
|
+
website?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
1111
|
+
aboutProject?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
1112
|
+
partnershipType?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
1113
|
+
ludoReferrerInfo?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
1114
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1115
|
+
};
|
|
1116
|
+
|
|
1054
1117
|
export type IAdminReferralResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminReferral'] = IResolversParentTypes['AdminReferral']> = {
|
|
1055
1118
|
userId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
1056
1119
|
username?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
@@ -1160,12 +1223,19 @@ export type IOpportunitiesPageResolvers<ContextType = any, ParentType extends IR
|
|
|
1160
1223
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1161
1224
|
};
|
|
1162
1225
|
|
|
1226
|
+
export type IPartnershipInquiryPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['PartnershipInquiryPage'] = IResolversParentTypes['PartnershipInquiryPage']> = {
|
|
1227
|
+
partnershipInquiries?: Resolver<Array<IResolversTypes['AdminPartnershipInquiry']>, ParentType, ContextType>;
|
|
1228
|
+
nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
|
|
1229
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1230
|
+
};
|
|
1231
|
+
|
|
1163
1232
|
export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
|
|
1164
1233
|
getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
1165
1234
|
fetchContactSupportPage?: Resolver<IResolversTypes['ContactSupportPage'], ParentType, ContextType, RequireFields<IQueryFetchContactSupportPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1166
1235
|
fetchContentReportPage?: Resolver<IResolversTypes['ContentReportPage'], ParentType, ContextType, RequireFields<IQueryFetchContentReportPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1167
1236
|
fetchInvestorInquiryPage?: Resolver<IResolversTypes['InvestorInquiryPage'], ParentType, ContextType, RequireFields<IQueryFetchInvestorInquiryPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1168
1237
|
fetchFormOpportunityPage?: Resolver<IResolversTypes['FormOpportunityPage'], ParentType, ContextType, RequireFields<IQueryFetchFormOpportunityPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1238
|
+
fetchPartnershipInquiryPage?: Resolver<IResolversTypes['PartnershipInquiryPage'], ParentType, ContextType, RequireFields<IQueryFetchPartnershipInquiryPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1169
1239
|
fetchAdminInvitesPage?: Resolver<IResolversTypes['InvitesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminInvitesPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1170
1240
|
fetchAdminOpportunitiesPage?: Resolver<IResolversTypes['OpportunitiesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminOpportunitiesPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1171
1241
|
fetchAdminCategories?: Resolver<Array<IResolversTypes['AdminCategory']>, ParentType, ContextType>;
|
|
@@ -1226,6 +1296,7 @@ export type IResolvers<ContextType = any> = {
|
|
|
1226
1296
|
AdminInvite?: IAdminInviteResolvers<ContextType>;
|
|
1227
1297
|
AdminOpportunity?: IAdminOpportunityResolvers<ContextType>;
|
|
1228
1298
|
AdminPage?: IAdminPageResolvers<ContextType>;
|
|
1299
|
+
AdminPartnershipInquiry?: IAdminPartnershipInquiryResolvers<ContextType>;
|
|
1229
1300
|
AdminReferral?: IAdminReferralResolvers<ContextType>;
|
|
1230
1301
|
AdminUser?: IAdminUserResolvers<ContextType>;
|
|
1231
1302
|
AdminXp?: IAdminXpResolvers<ContextType>;
|
|
@@ -1239,6 +1310,7 @@ export type IResolvers<ContextType = any> = {
|
|
|
1239
1310
|
Long?: GraphQLScalarType;
|
|
1240
1311
|
Mutation?: IMutationResolvers<ContextType>;
|
|
1241
1312
|
OpportunitiesPage?: IOpportunitiesPageResolvers<ContextType>;
|
|
1313
|
+
PartnershipInquiryPage?: IPartnershipInquiryPageResolvers<ContextType>;
|
|
1242
1314
|
Query?: IQueryResolvers<ContextType>;
|
|
1243
1315
|
ReferralsPage?: IReferralsPageResolvers<ContextType>;
|
|
1244
1316
|
ReferredUsersInfo?: IReferredUsersInfoResolvers<ContextType>;
|
|
@@ -531,6 +531,13 @@ export type IOpenOpportunityMutationVariables = Exact<{
|
|
|
531
531
|
|
|
532
532
|
export type IOpenOpportunityMutation = Pick<IMutation, 'openOpportunity'>;
|
|
533
533
|
|
|
534
|
+
export type IFetchOpportunitiesByIdsQueryVariables = Exact<{
|
|
535
|
+
opportunityIds: Array<Scalars['ID']>;
|
|
536
|
+
}>;
|
|
537
|
+
|
|
538
|
+
|
|
539
|
+
export type IFetchOpportunitiesByIdsQuery = { fetchOpportunitiesByIds: Array<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' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked'>> };
|
|
540
|
+
|
|
534
541
|
export type IFetchOpportunitiesForProfileQueryVariables = Exact<{ [key: string]: never; }>;
|
|
535
542
|
|
|
536
543
|
|
|
@@ -664,6 +671,71 @@ export function useOpenOpportunityMutation(baseOptions?: Apollo.MutationHookOpti
|
|
|
664
671
|
export type OpenOpportunityMutationHookResult = ReturnType<typeof useOpenOpportunityMutation>;
|
|
665
672
|
export type OpenOpportunityMutationResult = Apollo.MutationResult<IOpenOpportunityMutation>;
|
|
666
673
|
export type OpenOpportunityMutationOptions = Apollo.BaseMutationOptions<IOpenOpportunityMutation, IOpenOpportunityMutationVariables>;
|
|
674
|
+
export const FetchOpportunitiesByIdsDocument = gql`
|
|
675
|
+
query FetchOpportunitiesByIds($opportunityIds: [ID!]!) {
|
|
676
|
+
fetchOpportunitiesByIds(opportunityIds: $opportunityIds) {
|
|
677
|
+
opportunityId
|
|
678
|
+
brandId
|
|
679
|
+
categoryId
|
|
680
|
+
opportunityStatus
|
|
681
|
+
opportunityType
|
|
682
|
+
notificationType
|
|
683
|
+
name
|
|
684
|
+
description
|
|
685
|
+
brandName
|
|
686
|
+
brandDescription
|
|
687
|
+
brandMedia
|
|
688
|
+
brandUrl
|
|
689
|
+
brandIndustry
|
|
690
|
+
categoryName
|
|
691
|
+
ludoUrl
|
|
692
|
+
projectUrl
|
|
693
|
+
activeFrom
|
|
694
|
+
activeUntil
|
|
695
|
+
minXpLevel
|
|
696
|
+
maxXpLevel
|
|
697
|
+
minRank
|
|
698
|
+
maxRank
|
|
699
|
+
media
|
|
700
|
+
reportLink
|
|
701
|
+
clicks
|
|
702
|
+
views
|
|
703
|
+
blockchain
|
|
704
|
+
collection
|
|
705
|
+
createdAt
|
|
706
|
+
minWalletValue
|
|
707
|
+
maxWalletValue
|
|
708
|
+
shareLink
|
|
709
|
+
liked
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
`;
|
|
713
|
+
|
|
714
|
+
/**
|
|
715
|
+
* __useFetchOpportunitiesByIdsQuery__
|
|
716
|
+
*
|
|
717
|
+
* To run a query within a React component, call `useFetchOpportunitiesByIdsQuery` and pass it any options that fit your needs.
|
|
718
|
+
* When your component renders, `useFetchOpportunitiesByIdsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
719
|
+
* you can use to render your UI.
|
|
720
|
+
*
|
|
721
|
+
* @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;
|
|
722
|
+
*
|
|
723
|
+
* @example
|
|
724
|
+
* const { data, loading, error } = useFetchOpportunitiesByIdsQuery({
|
|
725
|
+
* variables: {
|
|
726
|
+
* opportunityIds: // value for 'opportunityIds'
|
|
727
|
+
* },
|
|
728
|
+
* });
|
|
729
|
+
*/
|
|
730
|
+
export function useFetchOpportunitiesByIdsQuery(baseOptions: Apollo.QueryHookOptions<IFetchOpportunitiesByIdsQuery, IFetchOpportunitiesByIdsQueryVariables>) {
|
|
731
|
+
return Apollo.useQuery<IFetchOpportunitiesByIdsQuery, IFetchOpportunitiesByIdsQueryVariables>(FetchOpportunitiesByIdsDocument, baseOptions);
|
|
732
|
+
}
|
|
733
|
+
export function useFetchOpportunitiesByIdsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchOpportunitiesByIdsQuery, IFetchOpportunitiesByIdsQueryVariables>) {
|
|
734
|
+
return Apollo.useLazyQuery<IFetchOpportunitiesByIdsQuery, IFetchOpportunitiesByIdsQueryVariables>(FetchOpportunitiesByIdsDocument, baseOptions);
|
|
735
|
+
}
|
|
736
|
+
export type FetchOpportunitiesByIdsQueryHookResult = ReturnType<typeof useFetchOpportunitiesByIdsQuery>;
|
|
737
|
+
export type FetchOpportunitiesByIdsLazyQueryHookResult = ReturnType<typeof useFetchOpportunitiesByIdsLazyQuery>;
|
|
738
|
+
export type FetchOpportunitiesByIdsQueryResult = Apollo.QueryResult<IFetchOpportunitiesByIdsQuery, IFetchOpportunitiesByIdsQueryVariables>;
|
|
667
739
|
export const FetchOpportunitiesForProfileDocument = gql`
|
|
668
740
|
query FetchOpportunitiesForProfile {
|
|
669
741
|
fetchOpportunitiesForProfile {
|