@ludo.ninja/api 2.8.99 → 2.9.1
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__/adminHost/schema.js +35 -3
- package/build/graphql_tools/__generated__/mintInfoHost/schema.d.ts +178 -0
- package/build/graphql_tools/__generated__/mintInfoHost/schema.js +66 -0
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.d.ts +0 -7
- package/build/graphql_tools/__generated__/tapHost/schema.d.ts +27 -2
- package/build/index.d.ts +22 -1
- package/build/index.js +4 -1
- package/package.json +1 -1
- package/src/graphql_tools/__generated__/adminHost/schema.ts +78 -0
- package/src/graphql_tools/__generated__/mintInfoHost/schema.ts +251 -0
- package/src/graphql_tools/__generated__/opportunitiesHost/schema.ts +0 -9
- package/src/graphql_tools/__generated__/tapHost/schema.ts +31 -2
- package/src/index.ts +3 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -127,6 +127,7 @@ export type IAdminOpportunity = {
|
|
|
127
127
|
clicks?: Maybe<Scalars['Int']>;
|
|
128
128
|
views?: Maybe<Scalars['Int']>;
|
|
129
129
|
addedBy?: Maybe<Scalars['String']>;
|
|
130
|
+
archived?: Maybe<Scalars['Boolean']>;
|
|
130
131
|
};
|
|
131
132
|
export type IAdminOpportunityInput = {
|
|
132
133
|
brandId: Scalars['String'];
|
|
@@ -148,6 +149,7 @@ export type IAdminOpportunityInput = {
|
|
|
148
149
|
blockchain?: Maybe<Scalars['String']>;
|
|
149
150
|
collection?: Maybe<Scalars['String']>;
|
|
150
151
|
media?: Maybe<Scalars['String']>;
|
|
152
|
+
openOpportunityXps?: Maybe<Scalars['Int']>;
|
|
151
153
|
};
|
|
152
154
|
export type IAdminPage = {
|
|
153
155
|
num?: Maybe<Scalars['Int']>;
|
|
@@ -353,6 +355,14 @@ export type IInvitesSortInput = {
|
|
|
353
355
|
sortByActiveInvites?: Maybe<ISort>;
|
|
354
356
|
sortByReferredUsers?: Maybe<ISort>;
|
|
355
357
|
};
|
|
358
|
+
export type ILocation = {
|
|
359
|
+
name: Scalars['String'];
|
|
360
|
+
type: ILocationType;
|
|
361
|
+
};
|
|
362
|
+
export declare enum ILocationType {
|
|
363
|
+
Continent = "CONTINENT",
|
|
364
|
+
Country = "COUNTRY"
|
|
365
|
+
}
|
|
356
366
|
export type IMutation = {
|
|
357
367
|
setDummy: Scalars['String'];
|
|
358
368
|
removeInviteCode: Scalars['Boolean'];
|
|
@@ -367,6 +377,7 @@ export type IMutation = {
|
|
|
367
377
|
updateCategoryArchivedStatus: Scalars['Boolean'];
|
|
368
378
|
createAdminOpportunity: Scalars['Boolean'];
|
|
369
379
|
updateOpportunity: Scalars['Boolean'];
|
|
380
|
+
updateOpportunityArchivedStatus: Scalars['Boolean'];
|
|
370
381
|
triggerOpportunityNotification: Scalars['Boolean'];
|
|
371
382
|
createReferralType?: Maybe<Scalars['Boolean']>;
|
|
372
383
|
updateReferralType: Scalars['Boolean'];
|
|
@@ -429,6 +440,10 @@ export type IMutationUpdateOpportunityArgs = {
|
|
|
429
440
|
input: IAdminOpportunityInput;
|
|
430
441
|
file?: Maybe<Scalars['Upload']>;
|
|
431
442
|
};
|
|
443
|
+
export type IMutationUpdateOpportunityArchivedStatusArgs = {
|
|
444
|
+
id: Scalars['ID'];
|
|
445
|
+
isArchived: Scalars['Boolean'];
|
|
446
|
+
};
|
|
432
447
|
export type IMutationTriggerOpportunityNotificationArgs = {
|
|
433
448
|
opportunityId: Scalars['ID'];
|
|
434
449
|
};
|
|
@@ -472,6 +487,7 @@ export type IMutationChangeXpPointsArgs = {
|
|
|
472
487
|
};
|
|
473
488
|
export type IOpportunitiesFilterInput = {
|
|
474
489
|
opportunityIdTerm?: Maybe<Scalars['String']>;
|
|
490
|
+
opportunityNameTerm?: Maybe<Scalars['String']>;
|
|
475
491
|
industryTerm?: Maybe<Scalars['String']>;
|
|
476
492
|
categoryTerm?: Maybe<Scalars['String']>;
|
|
477
493
|
opportunityLudoUrlTerm?: Maybe<Scalars['String']>;
|
|
@@ -535,6 +551,7 @@ export type IQuery = {
|
|
|
535
551
|
fetchRegistrationInvitePage: IRegistrationInvitePage;
|
|
536
552
|
fetchAdminInvitesPage: IInvitesPage;
|
|
537
553
|
checkInviteCode: ICheckInviteCodeData;
|
|
554
|
+
fetchLocations?: Maybe<Array<Maybe<ILocation>>>;
|
|
538
555
|
fetchAdminOpportunitiesPage: IOpportunitiesPage;
|
|
539
556
|
fetchAdminCategories: Array<IAdminCategory>;
|
|
540
557
|
fetchAdminCategoriesPage: ICategoriesPage;
|
|
@@ -592,6 +609,9 @@ export type IQueryFetchAdminInvitesPageArgs = {
|
|
|
592
609
|
export type IQueryCheckInviteCodeArgs = {
|
|
593
610
|
code: Scalars['String'];
|
|
594
611
|
};
|
|
612
|
+
export type IQueryFetchLocationsArgs = {
|
|
613
|
+
term: Scalars['String'];
|
|
614
|
+
};
|
|
595
615
|
export type IQueryFetchAdminOpportunitiesPageArgs = {
|
|
596
616
|
filter: IOpportunitiesFilterInput;
|
|
597
617
|
sort: IOpportunitiesSortInput;
|
|
@@ -904,6 +924,8 @@ export type IResolversTypes = {
|
|
|
904
924
|
InvitesFilterInput: IInvitesFilterInput;
|
|
905
925
|
InvitesPage: ResolverTypeWrapper<IInvitesPage>;
|
|
906
926
|
InvitesSortInput: IInvitesSortInput;
|
|
927
|
+
Location: ResolverTypeWrapper<ILocation>;
|
|
928
|
+
LocationType: ILocationType;
|
|
907
929
|
Long: ResolverTypeWrapper<Scalars['Long']>;
|
|
908
930
|
Mutation: ResolverTypeWrapper<{}>;
|
|
909
931
|
OpportunitiesFilterInput: IOpportunitiesFilterInput;
|
|
@@ -994,6 +1016,7 @@ export type IResolversParentTypes = {
|
|
|
994
1016
|
InvitesFilterInput: IInvitesFilterInput;
|
|
995
1017
|
InvitesPage: IInvitesPage;
|
|
996
1018
|
InvitesSortInput: IInvitesSortInput;
|
|
1019
|
+
Location: ILocation;
|
|
997
1020
|
Long: Scalars['Long'];
|
|
998
1021
|
Mutation: {};
|
|
999
1022
|
OpportunitiesFilterInput: IOpportunitiesFilterInput;
|
|
@@ -1157,6 +1180,7 @@ export type IAdminOpportunityResolvers<ContextType = any, ParentType extends IRe
|
|
|
1157
1180
|
clicks?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
1158
1181
|
views?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
1159
1182
|
addedBy?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
1183
|
+
archived?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
1160
1184
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1161
1185
|
};
|
|
1162
1186
|
export type IAdminPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminPage'] = IResolversParentTypes['AdminPage']> = {
|
|
@@ -1259,6 +1283,11 @@ export type IInvitesPageResolvers<ContextType = any, ParentType extends IResolve
|
|
|
1259
1283
|
nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
|
|
1260
1284
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1261
1285
|
};
|
|
1286
|
+
export type ILocationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Location'] = IResolversParentTypes['Location']> = {
|
|
1287
|
+
name?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
1288
|
+
type?: Resolver<IResolversTypes['LocationType'], ParentType, ContextType>;
|
|
1289
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1290
|
+
};
|
|
1262
1291
|
export interface ILongScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Long'], any> {
|
|
1263
1292
|
name: 'Long';
|
|
1264
1293
|
}
|
|
@@ -1276,6 +1305,7 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
1276
1305
|
updateCategoryArchivedStatus?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateCategoryArchivedStatusArgs, 'id' | 'isArchived'>>;
|
|
1277
1306
|
createAdminOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationCreateAdminOpportunityArgs, 'input'>>;
|
|
1278
1307
|
updateOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateOpportunityArgs, 'id' | 'input'>>;
|
|
1308
|
+
updateOpportunityArchivedStatus?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateOpportunityArchivedStatusArgs, 'id' | 'isArchived'>>;
|
|
1279
1309
|
triggerOpportunityNotification?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationTriggerOpportunityNotificationArgs, 'opportunityId'>>;
|
|
1280
1310
|
createReferralType?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType, RequireFields<IMutationCreateReferralTypeArgs, 'input'>>;
|
|
1281
1311
|
updateReferralType?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateReferralTypeArgs, 'id' | 'input'>>;
|
|
@@ -1309,6 +1339,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
1309
1339
|
fetchRegistrationInvitePage?: Resolver<IResolversTypes['RegistrationInvitePage'], ParentType, ContextType, RequireFields<IQueryFetchRegistrationInvitePageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1310
1340
|
fetchAdminInvitesPage?: Resolver<IResolversTypes['InvitesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminInvitesPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1311
1341
|
checkInviteCode?: Resolver<IResolversTypes['CheckInviteCodeData'], ParentType, ContextType, RequireFields<IQueryCheckInviteCodeArgs, 'code'>>;
|
|
1342
|
+
fetchLocations?: Resolver<Maybe<Array<Maybe<IResolversTypes['Location']>>>, ParentType, ContextType, RequireFields<IQueryFetchLocationsArgs, 'term'>>;
|
|
1312
1343
|
fetchAdminOpportunitiesPage?: Resolver<IResolversTypes['OpportunitiesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminOpportunitiesPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1313
1344
|
fetchAdminCategories?: Resolver<Array<IResolversTypes['AdminCategory']>, ParentType, ContextType>;
|
|
1314
1345
|
fetchAdminCategoriesPage?: Resolver<IResolversTypes['CategoriesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminCategoriesPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
@@ -1433,6 +1464,7 @@ export type IResolvers<ContextType = any> = {
|
|
|
1433
1464
|
FormOpportunityPage?: IFormOpportunityPageResolvers<ContextType>;
|
|
1434
1465
|
InvestorInquiryPage?: IInvestorInquiryPageResolvers<ContextType>;
|
|
1435
1466
|
InvitesPage?: IInvitesPageResolvers<ContextType>;
|
|
1467
|
+
Location?: ILocationResolvers<ContextType>;
|
|
1436
1468
|
Long?: GraphQLScalarType;
|
|
1437
1469
|
Mutation?: IMutationResolvers<ContextType>;
|
|
1438
1470
|
OpportunitiesPage?: IOpportunitiesPageResolvers<ContextType>;
|
|
@@ -1557,6 +1589,11 @@ export type IUpdateOpportunityMutationVariables = Exact<{
|
|
|
1557
1589
|
file?: Maybe<Scalars['Upload']>;
|
|
1558
1590
|
}>;
|
|
1559
1591
|
export type IUpdateOpportunityMutation = Pick<IMutation, 'updateOpportunity'>;
|
|
1592
|
+
export type IUpdateOpportunityArchivedStatusMutationVariables = Exact<{
|
|
1593
|
+
id: Scalars['ID'];
|
|
1594
|
+
isArchived: Scalars['Boolean'];
|
|
1595
|
+
}>;
|
|
1596
|
+
export type IUpdateOpportunityArchivedStatusMutation = Pick<IMutation, 'updateOpportunityArchivedStatus'>;
|
|
1560
1597
|
export type IUpdateProfileStatusMutationVariables = Exact<{
|
|
1561
1598
|
userId: Scalars['ID'];
|
|
1562
1599
|
isActive: Scalars['Boolean'];
|
|
@@ -2320,6 +2357,33 @@ export declare function useUpdateOpportunityMutation(baseOptions?: Apollo.Mutati
|
|
|
2320
2357
|
export type UpdateOpportunityMutationHookResult = ReturnType<typeof useUpdateOpportunityMutation>;
|
|
2321
2358
|
export type UpdateOpportunityMutationResult = Apollo.MutationResult<IUpdateOpportunityMutation>;
|
|
2322
2359
|
export type UpdateOpportunityMutationOptions = Apollo.BaseMutationOptions<IUpdateOpportunityMutation, IUpdateOpportunityMutationVariables>;
|
|
2360
|
+
export declare const UpdateOpportunityArchivedStatusDocument: Apollo.DocumentNode;
|
|
2361
|
+
export type IUpdateOpportunityArchivedStatusMutationFn = Apollo.MutationFunction<IUpdateOpportunityArchivedStatusMutation, IUpdateOpportunityArchivedStatusMutationVariables>;
|
|
2362
|
+
/**
|
|
2363
|
+
* __useUpdateOpportunityArchivedStatusMutation__
|
|
2364
|
+
*
|
|
2365
|
+
* To run a mutation, you first call `useUpdateOpportunityArchivedStatusMutation` within a React component and pass it any options that fit your needs.
|
|
2366
|
+
* When your component renders, `useUpdateOpportunityArchivedStatusMutation` returns a tuple that includes:
|
|
2367
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
2368
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
2369
|
+
*
|
|
2370
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
2371
|
+
*
|
|
2372
|
+
* @example
|
|
2373
|
+
* const [updateOpportunityArchivedStatusMutation, { data, loading, error }] = useUpdateOpportunityArchivedStatusMutation({
|
|
2374
|
+
* variables: {
|
|
2375
|
+
* id: // value for 'id'
|
|
2376
|
+
* isArchived: // value for 'isArchived'
|
|
2377
|
+
* },
|
|
2378
|
+
* });
|
|
2379
|
+
*/
|
|
2380
|
+
export declare function useUpdateOpportunityArchivedStatusMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateOpportunityArchivedStatusMutation, IUpdateOpportunityArchivedStatusMutationVariables>): Apollo.MutationTuple<IUpdateOpportunityArchivedStatusMutation, Exact<{
|
|
2381
|
+
id: string;
|
|
2382
|
+
isArchived: boolean;
|
|
2383
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
2384
|
+
export type UpdateOpportunityArchivedStatusMutationHookResult = ReturnType<typeof useUpdateOpportunityArchivedStatusMutation>;
|
|
2385
|
+
export type UpdateOpportunityArchivedStatusMutationResult = Apollo.MutationResult<IUpdateOpportunityArchivedStatusMutation>;
|
|
2386
|
+
export type UpdateOpportunityArchivedStatusMutationOptions = Apollo.BaseMutationOptions<IUpdateOpportunityArchivedStatusMutation, IUpdateOpportunityArchivedStatusMutationVariables>;
|
|
2323
2387
|
export declare const UpdateProfileStatusDocument: Apollo.DocumentNode;
|
|
2324
2388
|
export type IUpdateProfileStatusMutationFn = Apollo.MutationFunction<IUpdateProfileStatusMutation, IUpdateProfileStatusMutationVariables>;
|
|
2325
2389
|
/**
|
|
@@ -23,11 +23,16 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.useFetchBlockchainsLazyQuery = exports.useFetchBlockchainsQuery = exports.FetchBlockchainsDocument = exports.useFetchAdminXpPageLazyQuery = exports.useFetchAdminXpPageQuery = exports.FetchAdminXpPageDocument = exports.useFetchAdminUsersPageLazyQuery = exports.useFetchAdminUsersPageQuery = exports.FetchAdminUsersPageDocument = exports.useFetchAdminReferralsPageLazyQuery = void 0;
|
|
26
|
+
exports.useCheckInviteCodeLazyQuery = exports.useCheckInviteCodeQuery = exports.CheckInviteCodeDocument = exports.useUpdateProfileStatusMutation = exports.UpdateProfileStatusDocument = exports.useUpdateOpportunityArchivedStatusMutation = exports.UpdateOpportunityArchivedStatusDocument = exports.useUpdateOpportunityMutation = exports.UpdateOpportunityDocument = exports.useUpdateCategoryArchivedStatusMutation = exports.UpdateCategoryArchivedStatusDocument = exports.useUpdateCategoryMutation = exports.UpdateCategoryDocument = exports.useUpdateBrandArchivedStatusMutation = exports.UpdateBrandArchivedStatusDocument = exports.useUpdateBrandMutation = exports.UpdateBrandDocument = exports.useRemoveInviteCodeMutation = exports.RemoveInviteCodeDocument = exports.useAddInviteCodesMutation = exports.AddInviteCodesDocument = exports.useCreateAdminOpportunityMutation = exports.CreateAdminOpportunityDocument = 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.ISortDirection = exports.IReftypeColor = exports.ILocationType = void 0;
|
|
27
|
+
exports.useFetchAdminOpportunitiesPageQuery = exports.FetchAdminOpportunitiesPageDocument = 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.useFetchUserFeedbackPageLazyQuery = exports.useFetchUserFeedbackPageQuery = exports.FetchUserFeedbackPageDocument = exports.useFetchTiersPageLazyQuery = exports.useFetchTiersPageQuery = exports.FetchTiersPageDocument = exports.useFetchTiersLazyQuery = 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 = void 0;
|
|
28
|
+
exports.useFetchBlockchainsLazyQuery = exports.useFetchBlockchainsQuery = exports.FetchBlockchainsDocument = exports.useFetchAdminXpPageLazyQuery = exports.useFetchAdminXpPageQuery = exports.FetchAdminXpPageDocument = exports.useFetchAdminUsersPageLazyQuery = exports.useFetchAdminUsersPageQuery = exports.FetchAdminUsersPageDocument = exports.useFetchAdminReferralsPageLazyQuery = exports.useFetchAdminReferralsPageQuery = exports.FetchAdminReferralsPageDocument = exports.useFetchAdminOpportunitiesPageLazyQuery = void 0;
|
|
29
29
|
const client_1 = require("@apollo/client");
|
|
30
30
|
const Apollo = __importStar(require("@apollo/client"));
|
|
31
|
+
var ILocationType;
|
|
32
|
+
(function (ILocationType) {
|
|
33
|
+
ILocationType["Continent"] = "CONTINENT";
|
|
34
|
+
ILocationType["Country"] = "COUNTRY";
|
|
35
|
+
})(ILocationType || (exports.ILocationType = ILocationType = {}));
|
|
31
36
|
/** Sync with ReftypeColor.java */
|
|
32
37
|
var IReftypeColor;
|
|
33
38
|
(function (IReftypeColor) {
|
|
@@ -587,6 +592,33 @@ function useUpdateOpportunityMutation(baseOptions) {
|
|
|
587
592
|
return Apollo.useMutation(exports.UpdateOpportunityDocument, baseOptions);
|
|
588
593
|
}
|
|
589
594
|
exports.useUpdateOpportunityMutation = useUpdateOpportunityMutation;
|
|
595
|
+
exports.UpdateOpportunityArchivedStatusDocument = (0, client_1.gql) `
|
|
596
|
+
mutation UpdateOpportunityArchivedStatus($id: ID!, $isArchived: Boolean!) {
|
|
597
|
+
updateOpportunityArchivedStatus(id: $id, isArchived: $isArchived)
|
|
598
|
+
}
|
|
599
|
+
`;
|
|
600
|
+
/**
|
|
601
|
+
* __useUpdateOpportunityArchivedStatusMutation__
|
|
602
|
+
*
|
|
603
|
+
* To run a mutation, you first call `useUpdateOpportunityArchivedStatusMutation` within a React component and pass it any options that fit your needs.
|
|
604
|
+
* When your component renders, `useUpdateOpportunityArchivedStatusMutation` returns a tuple that includes:
|
|
605
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
606
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
607
|
+
*
|
|
608
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
609
|
+
*
|
|
610
|
+
* @example
|
|
611
|
+
* const [updateOpportunityArchivedStatusMutation, { data, loading, error }] = useUpdateOpportunityArchivedStatusMutation({
|
|
612
|
+
* variables: {
|
|
613
|
+
* id: // value for 'id'
|
|
614
|
+
* isArchived: // value for 'isArchived'
|
|
615
|
+
* },
|
|
616
|
+
* });
|
|
617
|
+
*/
|
|
618
|
+
function useUpdateOpportunityArchivedStatusMutation(baseOptions) {
|
|
619
|
+
return Apollo.useMutation(exports.UpdateOpportunityArchivedStatusDocument, baseOptions);
|
|
620
|
+
}
|
|
621
|
+
exports.useUpdateOpportunityArchivedStatusMutation = useUpdateOpportunityArchivedStatusMutation;
|
|
590
622
|
exports.UpdateProfileStatusDocument = (0, client_1.gql) `
|
|
591
623
|
mutation UpdateProfileStatus($userId: ID!, $isActive: Boolean!) {
|
|
592
624
|
updateProfileStatus(userId: $userId, isActive: $isActive)
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { GraphQLResolveInfo, GraphQLScalarType, GraphQLScalarTypeConfig } from 'graphql';
|
|
2
|
+
import * as Apollo from '@apollo/client';
|
|
3
|
+
export type Maybe<T> = T | null;
|
|
4
|
+
export type Exact<T extends {
|
|
5
|
+
[key: string]: unknown;
|
|
6
|
+
}> = {
|
|
7
|
+
[K in keyof T]: T[K];
|
|
8
|
+
};
|
|
9
|
+
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
|
|
10
|
+
[SubKey in K]?: Maybe<T[SubKey]>;
|
|
11
|
+
};
|
|
12
|
+
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
|
|
13
|
+
[SubKey in K]: Maybe<T[SubKey]>;
|
|
14
|
+
};
|
|
15
|
+
export type RequireFields<T, K extends keyof T> = Omit<T, K> & {
|
|
16
|
+
[P in K]-?: NonNullable<T[P]>;
|
|
17
|
+
};
|
|
18
|
+
/** All built-in and custom scalars, mapped to their actual values */
|
|
19
|
+
export type Scalars = {
|
|
20
|
+
ID: string;
|
|
21
|
+
String: string;
|
|
22
|
+
Boolean: boolean;
|
|
23
|
+
Int: number;
|
|
24
|
+
Float: number;
|
|
25
|
+
/** A 64-bit signed integer */
|
|
26
|
+
Long: any;
|
|
27
|
+
Upload: any;
|
|
28
|
+
};
|
|
29
|
+
export type IMintingInfo = {
|
|
30
|
+
rank: Scalars['Float'];
|
|
31
|
+
tier: ITier;
|
|
32
|
+
nftPrice: Scalars['Float'];
|
|
33
|
+
};
|
|
34
|
+
export type IMintingInput = {
|
|
35
|
+
wallet: Scalars['String'];
|
|
36
|
+
refcode?: Maybe<Scalars['String']>;
|
|
37
|
+
};
|
|
38
|
+
export type IMutation = {
|
|
39
|
+
setDummy: Scalars['String'];
|
|
40
|
+
};
|
|
41
|
+
export type IQuery = {
|
|
42
|
+
getDummy: Scalars['String'];
|
|
43
|
+
fetchMintingInfo: IMintingInfo;
|
|
44
|
+
};
|
|
45
|
+
export type IQueryFetchMintingInfoArgs = {
|
|
46
|
+
input: IMintingInput;
|
|
47
|
+
};
|
|
48
|
+
export type ITier = {
|
|
49
|
+
id: Scalars['String'];
|
|
50
|
+
name: Scalars['String'];
|
|
51
|
+
description?: Maybe<Scalars['String']>;
|
|
52
|
+
fee?: Maybe<Scalars['Float']>;
|
|
53
|
+
};
|
|
54
|
+
export type ResolverTypeWrapper<T> = Promise<T> | T;
|
|
55
|
+
export type ResolverWithResolve<TResult, TParent, TContext, TArgs> = {
|
|
56
|
+
resolve: ResolverFn<TResult, TParent, TContext, TArgs>;
|
|
57
|
+
};
|
|
58
|
+
export type Resolver<TResult, TParent = {}, TContext = {}, TArgs = {}> = ResolverFn<TResult, TParent, TContext, TArgs> | ResolverWithResolve<TResult, TParent, TContext, TArgs>;
|
|
59
|
+
export type ResolverFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => Promise<TResult> | TResult;
|
|
60
|
+
export type SubscriptionSubscribeFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => AsyncIterable<TResult> | Promise<AsyncIterable<TResult>>;
|
|
61
|
+
export type SubscriptionResolveFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
|
|
62
|
+
export interface SubscriptionSubscriberObject<TResult, TKey extends string, TParent, TContext, TArgs> {
|
|
63
|
+
subscribe: SubscriptionSubscribeFn<{
|
|
64
|
+
[key in TKey]: TResult;
|
|
65
|
+
}, TParent, TContext, TArgs>;
|
|
66
|
+
resolve?: SubscriptionResolveFn<TResult, {
|
|
67
|
+
[key in TKey]: TResult;
|
|
68
|
+
}, TContext, TArgs>;
|
|
69
|
+
}
|
|
70
|
+
export interface SubscriptionResolverObject<TResult, TParent, TContext, TArgs> {
|
|
71
|
+
subscribe: SubscriptionSubscribeFn<any, TParent, TContext, TArgs>;
|
|
72
|
+
resolve: SubscriptionResolveFn<TResult, any, TContext, TArgs>;
|
|
73
|
+
}
|
|
74
|
+
export type SubscriptionObject<TResult, TKey extends string, TParent, TContext, TArgs> = SubscriptionSubscriberObject<TResult, TKey, TParent, TContext, TArgs> | SubscriptionResolverObject<TResult, TParent, TContext, TArgs>;
|
|
75
|
+
export type SubscriptionResolver<TResult, TKey extends string, TParent = {}, TContext = {}, TArgs = {}> = ((...args: any[]) => SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>) | SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>;
|
|
76
|
+
export type TypeResolveFn<TTypes, TParent = {}, TContext = {}> = (parent: TParent, context: TContext, info: GraphQLResolveInfo) => Maybe<TTypes> | Promise<Maybe<TTypes>>;
|
|
77
|
+
export type IsTypeOfResolverFn<T = {}, TContext = {}> = (obj: T, context: TContext, info: GraphQLResolveInfo) => boolean | Promise<boolean>;
|
|
78
|
+
export type NextResolverFn<T> = () => Promise<T>;
|
|
79
|
+
export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs = {}> = (next: NextResolverFn<TResult>, parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
|
|
80
|
+
/** Mapping between all available schema types and the resolvers types */
|
|
81
|
+
export type IResolversTypes = {
|
|
82
|
+
Long: ResolverTypeWrapper<Scalars['Long']>;
|
|
83
|
+
MintingInfo: ResolverTypeWrapper<IMintingInfo>;
|
|
84
|
+
Float: ResolverTypeWrapper<Scalars['Float']>;
|
|
85
|
+
MintingInput: IMintingInput;
|
|
86
|
+
String: ResolverTypeWrapper<Scalars['String']>;
|
|
87
|
+
Mutation: ResolverTypeWrapper<{}>;
|
|
88
|
+
Query: ResolverTypeWrapper<{}>;
|
|
89
|
+
Tier: ResolverTypeWrapper<ITier>;
|
|
90
|
+
Upload: ResolverTypeWrapper<Scalars['Upload']>;
|
|
91
|
+
Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
|
|
92
|
+
};
|
|
93
|
+
/** Mapping between all available schema types and the resolvers parents */
|
|
94
|
+
export type IResolversParentTypes = {
|
|
95
|
+
Long: Scalars['Long'];
|
|
96
|
+
MintingInfo: IMintingInfo;
|
|
97
|
+
Float: Scalars['Float'];
|
|
98
|
+
MintingInput: IMintingInput;
|
|
99
|
+
String: Scalars['String'];
|
|
100
|
+
Mutation: {};
|
|
101
|
+
Query: {};
|
|
102
|
+
Tier: ITier;
|
|
103
|
+
Upload: Scalars['Upload'];
|
|
104
|
+
Boolean: Scalars['Boolean'];
|
|
105
|
+
};
|
|
106
|
+
export type IOneOfDirectiveArgs = {};
|
|
107
|
+
export type IOneOfDirectiveResolver<Result, Parent, ContextType = any, Args = IOneOfDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
|
|
108
|
+
export interface ILongScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Long'], any> {
|
|
109
|
+
name: 'Long';
|
|
110
|
+
}
|
|
111
|
+
export type IMintingInfoResolvers<ContextType = any, ParentType extends IResolversParentTypes['MintingInfo'] = IResolversParentTypes['MintingInfo']> = {
|
|
112
|
+
rank?: Resolver<IResolversTypes['Float'], ParentType, ContextType>;
|
|
113
|
+
tier?: Resolver<IResolversTypes['Tier'], ParentType, ContextType>;
|
|
114
|
+
nftPrice?: Resolver<IResolversTypes['Float'], ParentType, ContextType>;
|
|
115
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
116
|
+
};
|
|
117
|
+
export type IMutationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Mutation'] = IResolversParentTypes['Mutation']> = {
|
|
118
|
+
setDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
119
|
+
};
|
|
120
|
+
export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
|
|
121
|
+
getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
122
|
+
fetchMintingInfo?: Resolver<IResolversTypes['MintingInfo'], ParentType, ContextType, RequireFields<IQueryFetchMintingInfoArgs, 'input'>>;
|
|
123
|
+
};
|
|
124
|
+
export type ITierResolvers<ContextType = any, ParentType extends IResolversParentTypes['Tier'] = IResolversParentTypes['Tier']> = {
|
|
125
|
+
id?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
126
|
+
name?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
127
|
+
description?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
128
|
+
fee?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
129
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
130
|
+
};
|
|
131
|
+
export interface IUploadScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Upload'], any> {
|
|
132
|
+
name: 'Upload';
|
|
133
|
+
}
|
|
134
|
+
export type IResolvers<ContextType = any> = {
|
|
135
|
+
Long?: GraphQLScalarType;
|
|
136
|
+
MintingInfo?: IMintingInfoResolvers<ContextType>;
|
|
137
|
+
Mutation?: IMutationResolvers<ContextType>;
|
|
138
|
+
Query?: IQueryResolvers<ContextType>;
|
|
139
|
+
Tier?: ITierResolvers<ContextType>;
|
|
140
|
+
Upload?: GraphQLScalarType;
|
|
141
|
+
};
|
|
142
|
+
export type IDirectiveResolvers<ContextType = any> = {
|
|
143
|
+
oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
|
|
144
|
+
};
|
|
145
|
+
export type IFetchMintingInfoQueryVariables = Exact<{
|
|
146
|
+
input: IMintingInput;
|
|
147
|
+
}>;
|
|
148
|
+
export type IFetchMintingInfoQuery = {
|
|
149
|
+
fetchMintingInfo: (Pick<IMintingInfo, 'rank' | 'nftPrice'> & {
|
|
150
|
+
tier: Pick<ITier, 'id' | 'name' | 'description' | 'fee'>;
|
|
151
|
+
});
|
|
152
|
+
};
|
|
153
|
+
export declare const FetchMintingInfoDocument: Apollo.DocumentNode;
|
|
154
|
+
/**
|
|
155
|
+
* __useFetchMintingInfoQuery__
|
|
156
|
+
*
|
|
157
|
+
* To run a query within a React component, call `useFetchMintingInfoQuery` and pass it any options that fit your needs.
|
|
158
|
+
* When your component renders, `useFetchMintingInfoQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
159
|
+
* you can use to render your UI.
|
|
160
|
+
*
|
|
161
|
+
* @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;
|
|
162
|
+
*
|
|
163
|
+
* @example
|
|
164
|
+
* const { data, loading, error } = useFetchMintingInfoQuery({
|
|
165
|
+
* variables: {
|
|
166
|
+
* input: // value for 'input'
|
|
167
|
+
* },
|
|
168
|
+
* });
|
|
169
|
+
*/
|
|
170
|
+
export declare function useFetchMintingInfoQuery(baseOptions: Apollo.QueryHookOptions<IFetchMintingInfoQuery, IFetchMintingInfoQueryVariables>): Apollo.QueryResult<IFetchMintingInfoQuery, Exact<{
|
|
171
|
+
input: IMintingInput;
|
|
172
|
+
}>>;
|
|
173
|
+
export declare function useFetchMintingInfoLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchMintingInfoQuery, IFetchMintingInfoQueryVariables>): Apollo.LazyQueryResultTuple<IFetchMintingInfoQuery, Exact<{
|
|
174
|
+
input: IMintingInput;
|
|
175
|
+
}>>;
|
|
176
|
+
export type FetchMintingInfoQueryHookResult = ReturnType<typeof useFetchMintingInfoQuery>;
|
|
177
|
+
export type FetchMintingInfoLazyQueryHookResult = ReturnType<typeof useFetchMintingInfoLazyQuery>;
|
|
178
|
+
export type FetchMintingInfoQueryResult = Apollo.QueryResult<IFetchMintingInfoQuery, IFetchMintingInfoQueryVariables>;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.useFetchMintingInfoLazyQuery = exports.useFetchMintingInfoQuery = exports.FetchMintingInfoDocument = void 0;
|
|
27
|
+
const client_1 = require("@apollo/client");
|
|
28
|
+
const Apollo = __importStar(require("@apollo/client"));
|
|
29
|
+
exports.FetchMintingInfoDocument = (0, client_1.gql) `
|
|
30
|
+
query FetchMintingInfo($input: MintingInput!) {
|
|
31
|
+
fetchMintingInfo(input: $input) {
|
|
32
|
+
rank
|
|
33
|
+
tier {
|
|
34
|
+
id
|
|
35
|
+
name
|
|
36
|
+
description
|
|
37
|
+
fee
|
|
38
|
+
}
|
|
39
|
+
nftPrice
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
`;
|
|
43
|
+
/**
|
|
44
|
+
* __useFetchMintingInfoQuery__
|
|
45
|
+
*
|
|
46
|
+
* To run a query within a React component, call `useFetchMintingInfoQuery` and pass it any options that fit your needs.
|
|
47
|
+
* When your component renders, `useFetchMintingInfoQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
48
|
+
* you can use to render your UI.
|
|
49
|
+
*
|
|
50
|
+
* @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;
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* const { data, loading, error } = useFetchMintingInfoQuery({
|
|
54
|
+
* variables: {
|
|
55
|
+
* input: // value for 'input'
|
|
56
|
+
* },
|
|
57
|
+
* });
|
|
58
|
+
*/
|
|
59
|
+
function useFetchMintingInfoQuery(baseOptions) {
|
|
60
|
+
return Apollo.useQuery(exports.FetchMintingInfoDocument, baseOptions);
|
|
61
|
+
}
|
|
62
|
+
exports.useFetchMintingInfoQuery = useFetchMintingInfoQuery;
|
|
63
|
+
function useFetchMintingInfoLazyQuery(baseOptions) {
|
|
64
|
+
return Apollo.useLazyQuery(exports.FetchMintingInfoDocument, baseOptions);
|
|
65
|
+
}
|
|
66
|
+
exports.useFetchMintingInfoLazyQuery = useFetchMintingInfoLazyQuery;
|
|
@@ -62,7 +62,6 @@ export type IMutation = {
|
|
|
62
62
|
updateOpportunity: Scalars['Boolean'];
|
|
63
63
|
likeOpportunity: Scalars['Boolean'];
|
|
64
64
|
dislikeOpportunity: Scalars['Boolean'];
|
|
65
|
-
testNotifyUser: Scalars['Boolean'];
|
|
66
65
|
};
|
|
67
66
|
export type IMutationCreateBrandArgs = {
|
|
68
67
|
input: IBrandInput;
|
|
@@ -97,11 +96,6 @@ export type IMutationLikeOpportunityArgs = {
|
|
|
97
96
|
export type IMutationDislikeOpportunityArgs = {
|
|
98
97
|
opportunityId: Scalars['String'];
|
|
99
98
|
};
|
|
100
|
-
export type IMutationTestNotifyUserArgs = {
|
|
101
|
-
blockchain?: Maybe<Scalars['String']>;
|
|
102
|
-
address?: Maybe<Scalars['String']>;
|
|
103
|
-
opportunityId?: Maybe<Scalars['ID']>;
|
|
104
|
-
};
|
|
105
99
|
export type IOpportunitiesPage = {
|
|
106
100
|
currentOpportunities?: Maybe<Array<Maybe<IOpportunity>>>;
|
|
107
101
|
similarOpportunities?: Maybe<Array<Maybe<IOpportunity>>>;
|
|
@@ -321,7 +315,6 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
321
315
|
updateOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateOpportunityArgs, 'opportunityId' | 'input'>>;
|
|
322
316
|
likeOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationLikeOpportunityArgs, 'opportunityId'>>;
|
|
323
317
|
dislikeOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationDislikeOpportunityArgs, 'opportunityId'>>;
|
|
324
|
-
testNotifyUser?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, Partial<IMutationTestNotifyUserArgs>>;
|
|
325
318
|
};
|
|
326
319
|
export type IOpportunitiesPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['OpportunitiesPage'] = IResolversParentTypes['OpportunitiesPage']> = {
|
|
327
320
|
currentOpportunities?: Resolver<Maybe<Array<Maybe<IResolversTypes['Opportunity']>>>, ParentType, ContextType>;
|
|
@@ -30,6 +30,11 @@ export type IActiveInviteCode = {
|
|
|
30
30
|
usedTimes: Scalars['Int'];
|
|
31
31
|
maxUsagesLimit: Scalars['Int'];
|
|
32
32
|
};
|
|
33
|
+
export type IEnergy = {
|
|
34
|
+
availableTapsNum: Scalars['Int'];
|
|
35
|
+
fullEnergyTapsNum: Scalars['Int'];
|
|
36
|
+
refillSpeedTapsPerMs: Scalars['Float'];
|
|
37
|
+
};
|
|
33
38
|
/** Please, manually sync with FarmingStatus.java */
|
|
34
39
|
export declare enum IFarmingStatus {
|
|
35
40
|
InProgress = "IN_PROGRESS",
|
|
@@ -63,6 +68,7 @@ export type IMutation = {
|
|
|
63
68
|
markNotificationAsShown: Scalars['Boolean'];
|
|
64
69
|
markNotificationAsRead: Scalars['Boolean'];
|
|
65
70
|
markNotificationAsNew: Scalars['Boolean'];
|
|
71
|
+
registerTaps: IEnergy;
|
|
66
72
|
};
|
|
67
73
|
export type IMutationConfirmStreakNotificationHasBeenReadArgs = {
|
|
68
74
|
streakId: Scalars['ID'];
|
|
@@ -76,9 +82,12 @@ export type IMutationMarkNotificationAsReadArgs = {
|
|
|
76
82
|
export type IMutationMarkNotificationAsNewArgs = {
|
|
77
83
|
notificationId: Scalars['ID'];
|
|
78
84
|
};
|
|
85
|
+
export type IMutationRegisterTapsArgs = {
|
|
86
|
+
tapsNum?: Maybe<Scalars['Int']>;
|
|
87
|
+
};
|
|
79
88
|
export type INotification = {
|
|
80
89
|
notificationId: Scalars['ID'];
|
|
81
|
-
status:
|
|
90
|
+
status: INotificationStatus;
|
|
82
91
|
text: Scalars['String'];
|
|
83
92
|
createdAt: Scalars['Long'];
|
|
84
93
|
};
|
|
@@ -92,6 +101,7 @@ export type IPlayerState = {
|
|
|
92
101
|
userId: Scalars['ID'];
|
|
93
102
|
coins: Scalars['Int'];
|
|
94
103
|
farmingTask?: Maybe<IFarmingTask>;
|
|
104
|
+
energy: IEnergy;
|
|
95
105
|
playingStreaks: Array<IPlayingStreak>;
|
|
96
106
|
notifications: Array<INotification>;
|
|
97
107
|
};
|
|
@@ -121,6 +131,7 @@ export type IQuery = {
|
|
|
121
131
|
getDummy: Scalars['String'];
|
|
122
132
|
fetchPlayerState: IPlayerState;
|
|
123
133
|
fetchFrensData: IFrensData;
|
|
134
|
+
fetchEnergy: IEnergy;
|
|
124
135
|
};
|
|
125
136
|
export type ISubscription = {
|
|
126
137
|
onDummy: Scalars['String'];
|
|
@@ -160,6 +171,8 @@ export type IResolversTypes = {
|
|
|
160
171
|
ActiveInviteCode: ResolverTypeWrapper<IActiveInviteCode>;
|
|
161
172
|
String: ResolverTypeWrapper<Scalars['String']>;
|
|
162
173
|
Int: ResolverTypeWrapper<Scalars['Int']>;
|
|
174
|
+
Energy: ResolverTypeWrapper<IEnergy>;
|
|
175
|
+
Float: ResolverTypeWrapper<Scalars['Float']>;
|
|
163
176
|
FarmingStatus: IFarmingStatus;
|
|
164
177
|
FarmingTask: ResolverTypeWrapper<IFarmingTask>;
|
|
165
178
|
ID: ResolverTypeWrapper<Scalars['ID']>;
|
|
@@ -182,6 +195,8 @@ export type IResolversParentTypes = {
|
|
|
182
195
|
ActiveInviteCode: IActiveInviteCode;
|
|
183
196
|
String: Scalars['String'];
|
|
184
197
|
Int: Scalars['Int'];
|
|
198
|
+
Energy: IEnergy;
|
|
199
|
+
Float: Scalars['Float'];
|
|
185
200
|
FarmingTask: IFarmingTask;
|
|
186
201
|
ID: Scalars['ID'];
|
|
187
202
|
FrensData: IFrensData;
|
|
@@ -203,6 +218,12 @@ export type IActiveInviteCodeResolvers<ContextType = any, ParentType extends IRe
|
|
|
203
218
|
maxUsagesLimit?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
204
219
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
205
220
|
};
|
|
221
|
+
export type IEnergyResolvers<ContextType = any, ParentType extends IResolversParentTypes['Energy'] = IResolversParentTypes['Energy']> = {
|
|
222
|
+
availableTapsNum?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
223
|
+
fullEnergyTapsNum?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
224
|
+
refillSpeedTapsPerMs?: Resolver<IResolversTypes['Float'], ParentType, ContextType>;
|
|
225
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
226
|
+
};
|
|
206
227
|
export type IFarmingTaskResolvers<ContextType = any, ParentType extends IResolversParentTypes['FarmingTask'] = IResolversParentTypes['FarmingTask']> = {
|
|
207
228
|
taskId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
208
229
|
status?: Resolver<IResolversTypes['FarmingStatus'], ParentType, ContextType>;
|
|
@@ -236,10 +257,11 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
236
257
|
markNotificationAsShown?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationMarkNotificationAsShownArgs, 'notificationId'>>;
|
|
237
258
|
markNotificationAsRead?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationMarkNotificationAsReadArgs, 'notificationId'>>;
|
|
238
259
|
markNotificationAsNew?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationMarkNotificationAsNewArgs, 'notificationId'>>;
|
|
260
|
+
registerTaps?: Resolver<IResolversTypes['Energy'], ParentType, ContextType, Partial<IMutationRegisterTapsArgs>>;
|
|
239
261
|
};
|
|
240
262
|
export type INotificationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Notification'] = IResolversParentTypes['Notification']> = {
|
|
241
263
|
notificationId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
242
|
-
status?: Resolver<IResolversTypes['
|
|
264
|
+
status?: Resolver<IResolversTypes['NotificationStatus'], ParentType, ContextType>;
|
|
243
265
|
text?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
244
266
|
createdAt?: Resolver<IResolversTypes['Long'], ParentType, ContextType>;
|
|
245
267
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
@@ -248,6 +270,7 @@ export type IPlayerStateResolvers<ContextType = any, ParentType extends IResolve
|
|
|
248
270
|
userId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
249
271
|
coins?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
250
272
|
farmingTask?: Resolver<Maybe<IResolversTypes['FarmingTask']>, ParentType, ContextType>;
|
|
273
|
+
energy?: Resolver<IResolversTypes['Energy'], ParentType, ContextType>;
|
|
251
274
|
playingStreaks?: Resolver<Array<IResolversTypes['PlayingStreak']>, ParentType, ContextType>;
|
|
252
275
|
notifications?: Resolver<Array<IResolversTypes['Notification']>, ParentType, ContextType>;
|
|
253
276
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
@@ -266,6 +289,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
266
289
|
getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
267
290
|
fetchPlayerState?: Resolver<IResolversTypes['PlayerState'], ParentType, ContextType>;
|
|
268
291
|
fetchFrensData?: Resolver<IResolversTypes['FrensData'], ParentType, ContextType>;
|
|
292
|
+
fetchEnergy?: Resolver<IResolversTypes['Energy'], ParentType, ContextType>;
|
|
269
293
|
};
|
|
270
294
|
export type ISubscriptionResolvers<ContextType = any, ParentType extends IResolversParentTypes['Subscription'] = IResolversParentTypes['Subscription']> = {
|
|
271
295
|
onDummy?: SubscriptionResolver<IResolversTypes['String'], "onDummy", ParentType, ContextType>;
|
|
@@ -273,6 +297,7 @@ export type ISubscriptionResolvers<ContextType = any, ParentType extends IResolv
|
|
|
273
297
|
};
|
|
274
298
|
export type IResolvers<ContextType = any> = {
|
|
275
299
|
ActiveInviteCode?: IActiveInviteCodeResolvers<ContextType>;
|
|
300
|
+
Energy?: IEnergyResolvers<ContextType>;
|
|
276
301
|
FarmingTask?: IFarmingTaskResolvers<ContextType>;
|
|
277
302
|
FrensData?: IFrensDataResolvers<ContextType>;
|
|
278
303
|
Friend?: IFriendResolvers<ContextType>;
|