@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
package/build/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import * as extensionSchema from "./graphql_tools/__generated__/extensionHost/sc
|
|
|
10
10
|
import * as galleriesSchema from "./graphql_tools/__generated__/galleriesHost/schema";
|
|
11
11
|
import * as identitySchema from "./graphql_tools/__generated__/identityHost/schema";
|
|
12
12
|
import * as mediasSchema from "./graphql_tools/__generated__/mediasHost/schema";
|
|
13
|
+
import * as mintInfoSchema from "./graphql_tools/__generated__/mintInfoHost/schema";
|
|
13
14
|
import * as opportunitiesSchema from "./graphql_tools/__generated__/opportunitiesHost/schema";
|
|
14
15
|
import * as preferencesSchema from "./graphql_tools/__generated__/preferencesHost/schema";
|
|
15
16
|
import * as searchSchema from "./graphql_tools/__generated__/searchHost/schema";
|
|
@@ -17,6 +18,17 @@ import * as formsSchema from "./graphql_tools/__generated__/formsHost/schema";
|
|
|
17
18
|
import * as tapsSchema from "./graphql_tools/__generated__/tapHost/schema";
|
|
18
19
|
import * as notificationsSchema from "./graphql_tools/__generated__/notificationsHost/schema";
|
|
19
20
|
declare const schema: {
|
|
21
|
+
useFetchMintingInfoQuery(baseOptions: import("@apollo/client").QueryHookOptions<mintInfoSchema.IFetchMintingInfoQuery, mintInfoSchema.Exact<{
|
|
22
|
+
input: mintInfoSchema.IMintingInput;
|
|
23
|
+
}>>): import("@apollo/client").QueryResult<mintInfoSchema.IFetchMintingInfoQuery, mintInfoSchema.Exact<{
|
|
24
|
+
input: mintInfoSchema.IMintingInput;
|
|
25
|
+
}>>;
|
|
26
|
+
useFetchMintingInfoLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<mintInfoSchema.IFetchMintingInfoQuery, mintInfoSchema.Exact<{
|
|
27
|
+
input: mintInfoSchema.IMintingInput;
|
|
28
|
+
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<mintInfoSchema.IFetchMintingInfoQuery, mintInfoSchema.Exact<{
|
|
29
|
+
input: mintInfoSchema.IMintingInput;
|
|
30
|
+
}>>;
|
|
31
|
+
FetchMintingInfoDocument: import("graphql").DocumentNode;
|
|
20
32
|
useReadNotificationMutation(baseOptions?: import("@apollo/client").MutationHookOptions<notificationsSchema.IReadNotificationMutation, notificationsSchema.Exact<{
|
|
21
33
|
notificationId: string;
|
|
22
34
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<notificationsSchema.IReadNotificationMutation, notificationsSchema.Exact<{
|
|
@@ -1378,6 +1390,13 @@ declare const schema: {
|
|
|
1378
1390
|
input: adminSchema.IAdminOpportunityInput;
|
|
1379
1391
|
file?: any;
|
|
1380
1392
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
1393
|
+
useUpdateOpportunityArchivedStatusMutation(baseOptions?: import("@apollo/client").MutationHookOptions<adminSchema.IUpdateOpportunityArchivedStatusMutation, adminSchema.Exact<{
|
|
1394
|
+
id: string;
|
|
1395
|
+
isArchived: boolean;
|
|
1396
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<adminSchema.IUpdateOpportunityArchivedStatusMutation, adminSchema.Exact<{
|
|
1397
|
+
id: string;
|
|
1398
|
+
isArchived: boolean;
|
|
1399
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
1381
1400
|
useUpdateProfileStatusMutation(baseOptions?: import("@apollo/client").MutationHookOptions<adminSchema.IUpdateProfileStatusMutation, adminSchema.Exact<{
|
|
1382
1401
|
userId: string;
|
|
1383
1402
|
isActive: boolean;
|
|
@@ -1733,6 +1752,7 @@ declare const schema: {
|
|
|
1733
1752
|
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<adminSchema.IFetchBlockchainsQuery, adminSchema.Exact<{
|
|
1734
1753
|
[key: string]: never;
|
|
1735
1754
|
}>>;
|
|
1755
|
+
ILocationType: typeof adminSchema.ILocationType;
|
|
1736
1756
|
ISortDirection: typeof adminSchema.ISortDirection;
|
|
1737
1757
|
CreateReferralTypeDocument: import("graphql").DocumentNode;
|
|
1738
1758
|
CreateTierDocument: import("graphql").DocumentNode;
|
|
@@ -1754,6 +1774,7 @@ declare const schema: {
|
|
|
1754
1774
|
UpdateCategoryDocument: import("graphql").DocumentNode;
|
|
1755
1775
|
UpdateCategoryArchivedStatusDocument: import("graphql").DocumentNode;
|
|
1756
1776
|
UpdateOpportunityDocument: import("graphql").DocumentNode;
|
|
1777
|
+
UpdateOpportunityArchivedStatusDocument: import("graphql").DocumentNode;
|
|
1757
1778
|
UpdateProfileStatusDocument: import("graphql").DocumentNode;
|
|
1758
1779
|
CheckInviteCodeDocument: import("graphql").DocumentNode;
|
|
1759
1780
|
FetchContactSupportPageDocument: import("graphql").DocumentNode;
|
|
@@ -1778,4 +1799,4 @@ declare const schema: {
|
|
|
1778
1799
|
FetchAdminXpPageDocument: import("graphql").DocumentNode;
|
|
1779
1800
|
FetchBlockchainsDocument: import("graphql").DocumentNode;
|
|
1780
1801
|
};
|
|
1781
|
-
export { hosts, schema, graphqlConfig, authCookies, adminSchema, assetSchema, authSchema, collectionsSchema, experiencesSchema, extensionSchema, galleriesSchema, identitySchema, mediasSchema, opportunitiesSchema, preferencesSchema, searchSchema, formsSchema, tapsSchema, notificationsSchema, };
|
|
1802
|
+
export { hosts, schema, graphqlConfig, authCookies, adminSchema, assetSchema, authSchema, collectionsSchema, experiencesSchema, extensionSchema, galleriesSchema, identitySchema, mediasSchema, opportunitiesSchema, preferencesSchema, searchSchema, formsSchema, tapsSchema, notificationsSchema, mintInfoSchema };
|
package/build/index.js
CHANGED
|
@@ -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.notificationsSchema = exports.tapsSchema = exports.formsSchema = exports.searchSchema = exports.preferencesSchema = exports.opportunitiesSchema = exports.mediasSchema = exports.identitySchema = exports.galleriesSchema = exports.extensionSchema = exports.experiencesSchema = exports.collectionsSchema = exports.authSchema = exports.assetSchema = exports.adminSchema = exports.authCookies = exports.graphqlConfig = exports.schema = exports.hosts = void 0;
|
|
26
|
+
exports.mintInfoSchema = exports.notificationsSchema = exports.tapsSchema = exports.formsSchema = exports.searchSchema = exports.preferencesSchema = exports.opportunitiesSchema = exports.mediasSchema = exports.identitySchema = exports.galleriesSchema = exports.extensionSchema = exports.experiencesSchema = exports.collectionsSchema = exports.authSchema = exports.assetSchema = exports.adminSchema = exports.authCookies = exports.graphqlConfig = exports.schema = exports.hosts = void 0;
|
|
27
27
|
const hosts = __importStar(require("./hosts"));
|
|
28
28
|
exports.hosts = hosts;
|
|
29
29
|
const graphqlConfig = __importStar(require("./config"));
|
|
@@ -48,6 +48,8 @@ const identitySchema = __importStar(require("./graphql_tools/__generated__/ident
|
|
|
48
48
|
exports.identitySchema = identitySchema;
|
|
49
49
|
const mediasSchema = __importStar(require("./graphql_tools/__generated__/mediasHost/schema"));
|
|
50
50
|
exports.mediasSchema = mediasSchema;
|
|
51
|
+
const mintInfoSchema = __importStar(require("./graphql_tools/__generated__/mintInfoHost/schema"));
|
|
52
|
+
exports.mintInfoSchema = mintInfoSchema;
|
|
51
53
|
const opportunitiesSchema = __importStar(require("./graphql_tools/__generated__/opportunitiesHost/schema"));
|
|
52
54
|
exports.opportunitiesSchema = opportunitiesSchema;
|
|
53
55
|
const preferencesSchema = __importStar(require("./graphql_tools/__generated__/preferencesHost/schema"));
|
|
@@ -76,5 +78,6 @@ const schema = {
|
|
|
76
78
|
...formsSchema,
|
|
77
79
|
...tapsSchema,
|
|
78
80
|
...notificationsSchema,
|
|
81
|
+
...mintInfoSchema
|
|
79
82
|
};
|
|
80
83
|
exports.schema = schema;
|
package/package.json
CHANGED
|
@@ -131,6 +131,7 @@ export type IAdminOpportunity = {
|
|
|
131
131
|
clicks?: Maybe<Scalars['Int']>;
|
|
132
132
|
views?: Maybe<Scalars['Int']>;
|
|
133
133
|
addedBy?: Maybe<Scalars['String']>;
|
|
134
|
+
archived?: Maybe<Scalars['Boolean']>;
|
|
134
135
|
};
|
|
135
136
|
|
|
136
137
|
export type IAdminOpportunityInput = {
|
|
@@ -153,6 +154,7 @@ export type IAdminOpportunityInput = {
|
|
|
153
154
|
blockchain?: Maybe<Scalars['String']>;
|
|
154
155
|
collection?: Maybe<Scalars['String']>;
|
|
155
156
|
media?: Maybe<Scalars['String']>;
|
|
157
|
+
openOpportunityXps?: Maybe<Scalars['Int']>;
|
|
156
158
|
};
|
|
157
159
|
|
|
158
160
|
export type IAdminPage = {
|
|
@@ -389,6 +391,16 @@ export type IInvitesSortInput = {
|
|
|
389
391
|
sortByReferredUsers?: Maybe<ISort>;
|
|
390
392
|
};
|
|
391
393
|
|
|
394
|
+
export type ILocation = {
|
|
395
|
+
name: Scalars['String'];
|
|
396
|
+
type: ILocationType;
|
|
397
|
+
};
|
|
398
|
+
|
|
399
|
+
export enum ILocationType {
|
|
400
|
+
Continent = 'CONTINENT',
|
|
401
|
+
Country = 'COUNTRY'
|
|
402
|
+
}
|
|
403
|
+
|
|
392
404
|
|
|
393
405
|
export type IMutation = {
|
|
394
406
|
setDummy: Scalars['String'];
|
|
@@ -404,6 +416,7 @@ export type IMutation = {
|
|
|
404
416
|
updateCategoryArchivedStatus: Scalars['Boolean'];
|
|
405
417
|
createAdminOpportunity: Scalars['Boolean'];
|
|
406
418
|
updateOpportunity: Scalars['Boolean'];
|
|
419
|
+
updateOpportunityArchivedStatus: Scalars['Boolean'];
|
|
407
420
|
triggerOpportunityNotification: Scalars['Boolean'];
|
|
408
421
|
createReferralType?: Maybe<Scalars['Boolean']>;
|
|
409
422
|
updateReferralType: Scalars['Boolean'];
|
|
@@ -492,6 +505,12 @@ export type IMutationUpdateOpportunityArgs = {
|
|
|
492
505
|
};
|
|
493
506
|
|
|
494
507
|
|
|
508
|
+
export type IMutationUpdateOpportunityArchivedStatusArgs = {
|
|
509
|
+
id: Scalars['ID'];
|
|
510
|
+
isArchived: Scalars['Boolean'];
|
|
511
|
+
};
|
|
512
|
+
|
|
513
|
+
|
|
495
514
|
export type IMutationTriggerOpportunityNotificationArgs = {
|
|
496
515
|
opportunityId: Scalars['ID'];
|
|
497
516
|
};
|
|
@@ -556,6 +575,7 @@ export type IMutationChangeXpPointsArgs = {
|
|
|
556
575
|
|
|
557
576
|
export type IOpportunitiesFilterInput = {
|
|
558
577
|
opportunityIdTerm?: Maybe<Scalars['String']>;
|
|
578
|
+
opportunityNameTerm?: Maybe<Scalars['String']>;
|
|
559
579
|
industryTerm?: Maybe<Scalars['String']>;
|
|
560
580
|
categoryTerm?: Maybe<Scalars['String']>;
|
|
561
581
|
opportunityLudoUrlTerm?: Maybe<Scalars['String']>;
|
|
@@ -625,6 +645,7 @@ export type IQuery = {
|
|
|
625
645
|
fetchRegistrationInvitePage: IRegistrationInvitePage;
|
|
626
646
|
fetchAdminInvitesPage: IInvitesPage;
|
|
627
647
|
checkInviteCode: ICheckInviteCodeData;
|
|
648
|
+
fetchLocations?: Maybe<Array<Maybe<ILocation>>>;
|
|
628
649
|
fetchAdminOpportunitiesPage: IOpportunitiesPage;
|
|
629
650
|
fetchAdminCategories: Array<IAdminCategory>;
|
|
630
651
|
fetchAdminCategoriesPage: ICategoriesPage;
|
|
@@ -702,6 +723,11 @@ export type IQueryCheckInviteCodeArgs = {
|
|
|
702
723
|
};
|
|
703
724
|
|
|
704
725
|
|
|
726
|
+
export type IQueryFetchLocationsArgs = {
|
|
727
|
+
term: Scalars['String'];
|
|
728
|
+
};
|
|
729
|
+
|
|
730
|
+
|
|
705
731
|
export type IQueryFetchAdminOpportunitiesPageArgs = {
|
|
706
732
|
filter: IOpportunitiesFilterInput;
|
|
707
733
|
sort: IOpportunitiesSortInput;
|
|
@@ -1103,6 +1129,8 @@ export type IResolversTypes = {
|
|
|
1103
1129
|
InvitesFilterInput: IInvitesFilterInput;
|
|
1104
1130
|
InvitesPage: ResolverTypeWrapper<IInvitesPage>;
|
|
1105
1131
|
InvitesSortInput: IInvitesSortInput;
|
|
1132
|
+
Location: ResolverTypeWrapper<ILocation>;
|
|
1133
|
+
LocationType: ILocationType;
|
|
1106
1134
|
Long: ResolverTypeWrapper<Scalars['Long']>;
|
|
1107
1135
|
Mutation: ResolverTypeWrapper<{}>;
|
|
1108
1136
|
OpportunitiesFilterInput: IOpportunitiesFilterInput;
|
|
@@ -1194,6 +1222,7 @@ export type IResolversParentTypes = {
|
|
|
1194
1222
|
InvitesFilterInput: IInvitesFilterInput;
|
|
1195
1223
|
InvitesPage: IInvitesPage;
|
|
1196
1224
|
InvitesSortInput: IInvitesSortInput;
|
|
1225
|
+
Location: ILocation;
|
|
1197
1226
|
Long: Scalars['Long'];
|
|
1198
1227
|
Mutation: {};
|
|
1199
1228
|
OpportunitiesFilterInput: IOpportunitiesFilterInput;
|
|
@@ -1372,6 +1401,7 @@ export type IAdminOpportunityResolvers<ContextType = any, ParentType extends IRe
|
|
|
1372
1401
|
clicks?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
1373
1402
|
views?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
1374
1403
|
addedBy?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
1404
|
+
archived?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
1375
1405
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1376
1406
|
};
|
|
1377
1407
|
|
|
@@ -1488,6 +1518,12 @@ export type IInvitesPageResolvers<ContextType = any, ParentType extends IResolve
|
|
|
1488
1518
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1489
1519
|
};
|
|
1490
1520
|
|
|
1521
|
+
export type ILocationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Location'] = IResolversParentTypes['Location']> = {
|
|
1522
|
+
name?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
1523
|
+
type?: Resolver<IResolversTypes['LocationType'], ParentType, ContextType>;
|
|
1524
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1525
|
+
};
|
|
1526
|
+
|
|
1491
1527
|
export interface ILongScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Long'], any> {
|
|
1492
1528
|
name: 'Long';
|
|
1493
1529
|
}
|
|
@@ -1506,6 +1542,7 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
1506
1542
|
updateCategoryArchivedStatus?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateCategoryArchivedStatusArgs, 'id' | 'isArchived'>>;
|
|
1507
1543
|
createAdminOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationCreateAdminOpportunityArgs, 'input'>>;
|
|
1508
1544
|
updateOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateOpportunityArgs, 'id' | 'input'>>;
|
|
1545
|
+
updateOpportunityArchivedStatus?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateOpportunityArchivedStatusArgs, 'id' | 'isArchived'>>;
|
|
1509
1546
|
triggerOpportunityNotification?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationTriggerOpportunityNotificationArgs, 'opportunityId'>>;
|
|
1510
1547
|
createReferralType?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType, RequireFields<IMutationCreateReferralTypeArgs, 'input'>>;
|
|
1511
1548
|
updateReferralType?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateReferralTypeArgs, 'id' | 'input'>>;
|
|
@@ -1542,6 +1579,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
1542
1579
|
fetchRegistrationInvitePage?: Resolver<IResolversTypes['RegistrationInvitePage'], ParentType, ContextType, RequireFields<IQueryFetchRegistrationInvitePageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1543
1580
|
fetchAdminInvitesPage?: Resolver<IResolversTypes['InvitesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminInvitesPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1544
1581
|
checkInviteCode?: Resolver<IResolversTypes['CheckInviteCodeData'], ParentType, ContextType, RequireFields<IQueryCheckInviteCodeArgs, 'code'>>;
|
|
1582
|
+
fetchLocations?: Resolver<Maybe<Array<Maybe<IResolversTypes['Location']>>>, ParentType, ContextType, RequireFields<IQueryFetchLocationsArgs, 'term'>>;
|
|
1545
1583
|
fetchAdminOpportunitiesPage?: Resolver<IResolversTypes['OpportunitiesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminOpportunitiesPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1546
1584
|
fetchAdminCategories?: Resolver<Array<IResolversTypes['AdminCategory']>, ParentType, ContextType>;
|
|
1547
1585
|
fetchAdminCategoriesPage?: Resolver<IResolversTypes['CategoriesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminCategoriesPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
@@ -1681,6 +1719,7 @@ export type IResolvers<ContextType = any> = {
|
|
|
1681
1719
|
FormOpportunityPage?: IFormOpportunityPageResolvers<ContextType>;
|
|
1682
1720
|
InvestorInquiryPage?: IInvestorInquiryPageResolvers<ContextType>;
|
|
1683
1721
|
InvitesPage?: IInvitesPageResolvers<ContextType>;
|
|
1722
|
+
Location?: ILocationResolvers<ContextType>;
|
|
1684
1723
|
Long?: GraphQLScalarType;
|
|
1685
1724
|
Mutation?: IMutationResolvers<ContextType>;
|
|
1686
1725
|
OpportunitiesPage?: IOpportunitiesPageResolvers<ContextType>;
|
|
@@ -1867,6 +1906,14 @@ export type IUpdateOpportunityMutationVariables = Exact<{
|
|
|
1867
1906
|
|
|
1868
1907
|
export type IUpdateOpportunityMutation = Pick<IMutation, 'updateOpportunity'>;
|
|
1869
1908
|
|
|
1909
|
+
export type IUpdateOpportunityArchivedStatusMutationVariables = Exact<{
|
|
1910
|
+
id: Scalars['ID'];
|
|
1911
|
+
isArchived: Scalars['Boolean'];
|
|
1912
|
+
}>;
|
|
1913
|
+
|
|
1914
|
+
|
|
1915
|
+
export type IUpdateOpportunityArchivedStatusMutation = Pick<IMutation, 'updateOpportunityArchivedStatus'>;
|
|
1916
|
+
|
|
1870
1917
|
export type IUpdateProfileStatusMutationVariables = Exact<{
|
|
1871
1918
|
userId: Scalars['ID'];
|
|
1872
1919
|
isActive: Scalars['Boolean'];
|
|
@@ -2683,6 +2730,37 @@ export function useUpdateOpportunityMutation(baseOptions?: Apollo.MutationHookOp
|
|
|
2683
2730
|
export type UpdateOpportunityMutationHookResult = ReturnType<typeof useUpdateOpportunityMutation>;
|
|
2684
2731
|
export type UpdateOpportunityMutationResult = Apollo.MutationResult<IUpdateOpportunityMutation>;
|
|
2685
2732
|
export type UpdateOpportunityMutationOptions = Apollo.BaseMutationOptions<IUpdateOpportunityMutation, IUpdateOpportunityMutationVariables>;
|
|
2733
|
+
export const UpdateOpportunityArchivedStatusDocument = gql`
|
|
2734
|
+
mutation UpdateOpportunityArchivedStatus($id: ID!, $isArchived: Boolean!) {
|
|
2735
|
+
updateOpportunityArchivedStatus(id: $id, isArchived: $isArchived)
|
|
2736
|
+
}
|
|
2737
|
+
`;
|
|
2738
|
+
export type IUpdateOpportunityArchivedStatusMutationFn = Apollo.MutationFunction<IUpdateOpportunityArchivedStatusMutation, IUpdateOpportunityArchivedStatusMutationVariables>;
|
|
2739
|
+
|
|
2740
|
+
/**
|
|
2741
|
+
* __useUpdateOpportunityArchivedStatusMutation__
|
|
2742
|
+
*
|
|
2743
|
+
* To run a mutation, you first call `useUpdateOpportunityArchivedStatusMutation` within a React component and pass it any options that fit your needs.
|
|
2744
|
+
* When your component renders, `useUpdateOpportunityArchivedStatusMutation` returns a tuple that includes:
|
|
2745
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
2746
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
2747
|
+
*
|
|
2748
|
+
* @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;
|
|
2749
|
+
*
|
|
2750
|
+
* @example
|
|
2751
|
+
* const [updateOpportunityArchivedStatusMutation, { data, loading, error }] = useUpdateOpportunityArchivedStatusMutation({
|
|
2752
|
+
* variables: {
|
|
2753
|
+
* id: // value for 'id'
|
|
2754
|
+
* isArchived: // value for 'isArchived'
|
|
2755
|
+
* },
|
|
2756
|
+
* });
|
|
2757
|
+
*/
|
|
2758
|
+
export function useUpdateOpportunityArchivedStatusMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateOpportunityArchivedStatusMutation, IUpdateOpportunityArchivedStatusMutationVariables>) {
|
|
2759
|
+
return Apollo.useMutation<IUpdateOpportunityArchivedStatusMutation, IUpdateOpportunityArchivedStatusMutationVariables>(UpdateOpportunityArchivedStatusDocument, baseOptions);
|
|
2760
|
+
}
|
|
2761
|
+
export type UpdateOpportunityArchivedStatusMutationHookResult = ReturnType<typeof useUpdateOpportunityArchivedStatusMutation>;
|
|
2762
|
+
export type UpdateOpportunityArchivedStatusMutationResult = Apollo.MutationResult<IUpdateOpportunityArchivedStatusMutation>;
|
|
2763
|
+
export type UpdateOpportunityArchivedStatusMutationOptions = Apollo.BaseMutationOptions<IUpdateOpportunityArchivedStatusMutation, IUpdateOpportunityArchivedStatusMutationVariables>;
|
|
2686
2764
|
export const UpdateProfileStatusDocument = gql`
|
|
2687
2765
|
mutation UpdateProfileStatus($userId: ID!, $isActive: Boolean!) {
|
|
2688
2766
|
updateProfileStatus(userId: $userId, isActive: $isActive)
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import { GraphQLResolveInfo, GraphQLScalarType, GraphQLScalarTypeConfig } from 'graphql';
|
|
3
|
+
import { gql } from '@apollo/client';
|
|
4
|
+
import * as Apollo from '@apollo/client';
|
|
5
|
+
export type Maybe<T> = T | null;
|
|
6
|
+
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
|
|
7
|
+
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
|
|
8
|
+
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
|
|
9
|
+
export type RequireFields<T, K extends keyof T> = Omit<T, K> & { [P in K]-?: NonNullable<T[P]> };
|
|
10
|
+
/** All built-in and custom scalars, mapped to their actual values */
|
|
11
|
+
export type Scalars = {
|
|
12
|
+
ID: string;
|
|
13
|
+
String: string;
|
|
14
|
+
Boolean: boolean;
|
|
15
|
+
Int: number;
|
|
16
|
+
Float: number;
|
|
17
|
+
/** A 64-bit signed integer */
|
|
18
|
+
Long: any;
|
|
19
|
+
Upload: any;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
export type IMintingInfo = {
|
|
25
|
+
rank: Scalars['Float'];
|
|
26
|
+
tier: ITier;
|
|
27
|
+
nftPrice: Scalars['Float'];
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export type IMintingInput = {
|
|
31
|
+
wallet: Scalars['String'];
|
|
32
|
+
refcode?: Maybe<Scalars['String']>;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export type IMutation = {
|
|
36
|
+
setDummy: Scalars['String'];
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export type IQuery = {
|
|
40
|
+
getDummy: Scalars['String'];
|
|
41
|
+
fetchMintingInfo: IMintingInfo;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
export type IQueryFetchMintingInfoArgs = {
|
|
46
|
+
input: IMintingInput;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export type ITier = {
|
|
50
|
+
id: Scalars['String'];
|
|
51
|
+
name: Scalars['String'];
|
|
52
|
+
description?: Maybe<Scalars['String']>;
|
|
53
|
+
fee?: Maybe<Scalars['Float']>;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
export type ResolverTypeWrapper<T> = Promise<T> | T;
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
export type ResolverWithResolve<TResult, TParent, TContext, TArgs> = {
|
|
63
|
+
resolve: ResolverFn<TResult, TParent, TContext, TArgs>;
|
|
64
|
+
};
|
|
65
|
+
export type Resolver<TResult, TParent = {}, TContext = {}, TArgs = {}> = ResolverFn<TResult, TParent, TContext, TArgs> | ResolverWithResolve<TResult, TParent, TContext, TArgs>;
|
|
66
|
+
|
|
67
|
+
export type ResolverFn<TResult, TParent, TContext, TArgs> = (
|
|
68
|
+
parent: TParent,
|
|
69
|
+
args: TArgs,
|
|
70
|
+
context: TContext,
|
|
71
|
+
info: GraphQLResolveInfo
|
|
72
|
+
) => Promise<TResult> | TResult;
|
|
73
|
+
|
|
74
|
+
export type SubscriptionSubscribeFn<TResult, TParent, TContext, TArgs> = (
|
|
75
|
+
parent: TParent,
|
|
76
|
+
args: TArgs,
|
|
77
|
+
context: TContext,
|
|
78
|
+
info: GraphQLResolveInfo
|
|
79
|
+
) => AsyncIterable<TResult> | Promise<AsyncIterable<TResult>>;
|
|
80
|
+
|
|
81
|
+
export type SubscriptionResolveFn<TResult, TParent, TContext, TArgs> = (
|
|
82
|
+
parent: TParent,
|
|
83
|
+
args: TArgs,
|
|
84
|
+
context: TContext,
|
|
85
|
+
info: GraphQLResolveInfo
|
|
86
|
+
) => TResult | Promise<TResult>;
|
|
87
|
+
|
|
88
|
+
export interface SubscriptionSubscriberObject<TResult, TKey extends string, TParent, TContext, TArgs> {
|
|
89
|
+
subscribe: SubscriptionSubscribeFn<{ [key in TKey]: TResult }, TParent, TContext, TArgs>;
|
|
90
|
+
resolve?: SubscriptionResolveFn<TResult, { [key in TKey]: TResult }, TContext, TArgs>;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export interface SubscriptionResolverObject<TResult, TParent, TContext, TArgs> {
|
|
94
|
+
subscribe: SubscriptionSubscribeFn<any, TParent, TContext, TArgs>;
|
|
95
|
+
resolve: SubscriptionResolveFn<TResult, any, TContext, TArgs>;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export type SubscriptionObject<TResult, TKey extends string, TParent, TContext, TArgs> =
|
|
99
|
+
| SubscriptionSubscriberObject<TResult, TKey, TParent, TContext, TArgs>
|
|
100
|
+
| SubscriptionResolverObject<TResult, TParent, TContext, TArgs>;
|
|
101
|
+
|
|
102
|
+
export type SubscriptionResolver<TResult, TKey extends string, TParent = {}, TContext = {}, TArgs = {}> =
|
|
103
|
+
| ((...args: any[]) => SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>)
|
|
104
|
+
| SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>;
|
|
105
|
+
|
|
106
|
+
export type TypeResolveFn<TTypes, TParent = {}, TContext = {}> = (
|
|
107
|
+
parent: TParent,
|
|
108
|
+
context: TContext,
|
|
109
|
+
info: GraphQLResolveInfo
|
|
110
|
+
) => Maybe<TTypes> | Promise<Maybe<TTypes>>;
|
|
111
|
+
|
|
112
|
+
export type IsTypeOfResolverFn<T = {}, TContext = {}> = (obj: T, context: TContext, info: GraphQLResolveInfo) => boolean | Promise<boolean>;
|
|
113
|
+
|
|
114
|
+
export type NextResolverFn<T> = () => Promise<T>;
|
|
115
|
+
|
|
116
|
+
export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs = {}> = (
|
|
117
|
+
next: NextResolverFn<TResult>,
|
|
118
|
+
parent: TParent,
|
|
119
|
+
args: TArgs,
|
|
120
|
+
context: TContext,
|
|
121
|
+
info: GraphQLResolveInfo
|
|
122
|
+
) => TResult | Promise<TResult>;
|
|
123
|
+
|
|
124
|
+
/** Mapping between all available schema types and the resolvers types */
|
|
125
|
+
export type IResolversTypes = {
|
|
126
|
+
Long: ResolverTypeWrapper<Scalars['Long']>;
|
|
127
|
+
MintingInfo: ResolverTypeWrapper<IMintingInfo>;
|
|
128
|
+
Float: ResolverTypeWrapper<Scalars['Float']>;
|
|
129
|
+
MintingInput: IMintingInput;
|
|
130
|
+
String: ResolverTypeWrapper<Scalars['String']>;
|
|
131
|
+
Mutation: ResolverTypeWrapper<{}>;
|
|
132
|
+
Query: ResolverTypeWrapper<{}>;
|
|
133
|
+
Tier: ResolverTypeWrapper<ITier>;
|
|
134
|
+
Upload: ResolverTypeWrapper<Scalars['Upload']>;
|
|
135
|
+
Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
/** Mapping between all available schema types and the resolvers parents */
|
|
139
|
+
export type IResolversParentTypes = {
|
|
140
|
+
Long: Scalars['Long'];
|
|
141
|
+
MintingInfo: IMintingInfo;
|
|
142
|
+
Float: Scalars['Float'];
|
|
143
|
+
MintingInput: IMintingInput;
|
|
144
|
+
String: Scalars['String'];
|
|
145
|
+
Mutation: {};
|
|
146
|
+
Query: {};
|
|
147
|
+
Tier: ITier;
|
|
148
|
+
Upload: Scalars['Upload'];
|
|
149
|
+
Boolean: Scalars['Boolean'];
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
export type IOneOfDirectiveArgs = { };
|
|
153
|
+
|
|
154
|
+
export type IOneOfDirectiveResolver<Result, Parent, ContextType = any, Args = IOneOfDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
|
|
155
|
+
|
|
156
|
+
export interface ILongScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Long'], any> {
|
|
157
|
+
name: 'Long';
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export type IMintingInfoResolvers<ContextType = any, ParentType extends IResolversParentTypes['MintingInfo'] = IResolversParentTypes['MintingInfo']> = {
|
|
161
|
+
rank?: Resolver<IResolversTypes['Float'], ParentType, ContextType>;
|
|
162
|
+
tier?: Resolver<IResolversTypes['Tier'], ParentType, ContextType>;
|
|
163
|
+
nftPrice?: Resolver<IResolversTypes['Float'], ParentType, ContextType>;
|
|
164
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
export type IMutationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Mutation'] = IResolversParentTypes['Mutation']> = {
|
|
168
|
+
setDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
|
|
172
|
+
getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
173
|
+
fetchMintingInfo?: Resolver<IResolversTypes['MintingInfo'], ParentType, ContextType, RequireFields<IQueryFetchMintingInfoArgs, 'input'>>;
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
export type ITierResolvers<ContextType = any, ParentType extends IResolversParentTypes['Tier'] = IResolversParentTypes['Tier']> = {
|
|
177
|
+
id?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
178
|
+
name?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
179
|
+
description?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
180
|
+
fee?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
181
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
export interface IUploadScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Upload'], any> {
|
|
185
|
+
name: 'Upload';
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export type IResolvers<ContextType = any> = {
|
|
189
|
+
Long?: GraphQLScalarType;
|
|
190
|
+
MintingInfo?: IMintingInfoResolvers<ContextType>;
|
|
191
|
+
Mutation?: IMutationResolvers<ContextType>;
|
|
192
|
+
Query?: IQueryResolvers<ContextType>;
|
|
193
|
+
Tier?: ITierResolvers<ContextType>;
|
|
194
|
+
Upload?: GraphQLScalarType;
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
export type IDirectiveResolvers<ContextType = any> = {
|
|
198
|
+
oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
export type IFetchMintingInfoQueryVariables = Exact<{
|
|
202
|
+
input: IMintingInput;
|
|
203
|
+
}>;
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
export type IFetchMintingInfoQuery = { fetchMintingInfo: (
|
|
207
|
+
Pick<IMintingInfo, 'rank' | 'nftPrice'>
|
|
208
|
+
& { tier: Pick<ITier, 'id' | 'name' | 'description' | 'fee'> }
|
|
209
|
+
) };
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
export const FetchMintingInfoDocument = gql`
|
|
213
|
+
query FetchMintingInfo($input: MintingInput!) {
|
|
214
|
+
fetchMintingInfo(input: $input) {
|
|
215
|
+
rank
|
|
216
|
+
tier {
|
|
217
|
+
id
|
|
218
|
+
name
|
|
219
|
+
description
|
|
220
|
+
fee
|
|
221
|
+
}
|
|
222
|
+
nftPrice
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
`;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* __useFetchMintingInfoQuery__
|
|
229
|
+
*
|
|
230
|
+
* To run a query within a React component, call `useFetchMintingInfoQuery` and pass it any options that fit your needs.
|
|
231
|
+
* When your component renders, `useFetchMintingInfoQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
232
|
+
* you can use to render your UI.
|
|
233
|
+
*
|
|
234
|
+
* @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;
|
|
235
|
+
*
|
|
236
|
+
* @example
|
|
237
|
+
* const { data, loading, error } = useFetchMintingInfoQuery({
|
|
238
|
+
* variables: {
|
|
239
|
+
* input: // value for 'input'
|
|
240
|
+
* },
|
|
241
|
+
* });
|
|
242
|
+
*/
|
|
243
|
+
export function useFetchMintingInfoQuery(baseOptions: Apollo.QueryHookOptions<IFetchMintingInfoQuery, IFetchMintingInfoQueryVariables>) {
|
|
244
|
+
return Apollo.useQuery<IFetchMintingInfoQuery, IFetchMintingInfoQueryVariables>(FetchMintingInfoDocument, baseOptions);
|
|
245
|
+
}
|
|
246
|
+
export function useFetchMintingInfoLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchMintingInfoQuery, IFetchMintingInfoQueryVariables>) {
|
|
247
|
+
return Apollo.useLazyQuery<IFetchMintingInfoQuery, IFetchMintingInfoQueryVariables>(FetchMintingInfoDocument, baseOptions);
|
|
248
|
+
}
|
|
249
|
+
export type FetchMintingInfoQueryHookResult = ReturnType<typeof useFetchMintingInfoQuery>;
|
|
250
|
+
export type FetchMintingInfoLazyQueryHookResult = ReturnType<typeof useFetchMintingInfoLazyQuery>;
|
|
251
|
+
export type FetchMintingInfoQueryResult = Apollo.QueryResult<IFetchMintingInfoQuery, IFetchMintingInfoQueryVariables>;
|
|
@@ -61,7 +61,6 @@ export type IMutation = {
|
|
|
61
61
|
updateOpportunity: Scalars['Boolean'];
|
|
62
62
|
likeOpportunity: Scalars['Boolean'];
|
|
63
63
|
dislikeOpportunity: Scalars['Boolean'];
|
|
64
|
-
testNotifyUser: Scalars['Boolean'];
|
|
65
64
|
};
|
|
66
65
|
|
|
67
66
|
|
|
@@ -117,13 +116,6 @@ export type IMutationDislikeOpportunityArgs = {
|
|
|
117
116
|
opportunityId: Scalars['String'];
|
|
118
117
|
};
|
|
119
118
|
|
|
120
|
-
|
|
121
|
-
export type IMutationTestNotifyUserArgs = {
|
|
122
|
-
blockchain?: Maybe<Scalars['String']>;
|
|
123
|
-
address?: Maybe<Scalars['String']>;
|
|
124
|
-
opportunityId?: Maybe<Scalars['ID']>;
|
|
125
|
-
};
|
|
126
|
-
|
|
127
119
|
export type IOpportunitiesPage = {
|
|
128
120
|
currentOpportunities?: Maybe<Array<Maybe<IOpportunity>>>;
|
|
129
121
|
similarOpportunities?: Maybe<Array<Maybe<IOpportunity>>>;
|
|
@@ -408,7 +400,6 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
408
400
|
updateOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateOpportunityArgs, 'opportunityId' | 'input'>>;
|
|
409
401
|
likeOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationLikeOpportunityArgs, 'opportunityId'>>;
|
|
410
402
|
dislikeOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationDislikeOpportunityArgs, 'opportunityId'>>;
|
|
411
|
-
testNotifyUser?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, Partial<IMutationTestNotifyUserArgs>>;
|
|
412
403
|
};
|
|
413
404
|
|
|
414
405
|
export type IOpportunitiesPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['OpportunitiesPage'] = IResolversParentTypes['OpportunitiesPage']> = {
|