@ludo.ninja/api 2.8.37 → 2.8.39
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__/identityHost/schema.d.ts +39 -2
- package/build/graphql_tools/__generated__/identityHost/schema.js +49 -1
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.d.ts +33 -0
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.js +61 -1
- package/build/index.d.ts +1264 -1
- package/build/index.js +17 -1
- package/package.json +1 -1
- package/src/graphql_tools/__generated__/identityHost/schema.ts +65 -2
- package/src/graphql_tools/__generated__/opportunitiesHost/schema.ts +69 -0
- package/src/index.ts +17 -0
- package/tsconfig.tsbuildinfo +1 -1
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.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.hosts = void 0;
|
|
26
|
+
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"));
|
|
@@ -56,3 +56,19 @@ const searchSchema = __importStar(require("./graphql_tools/__generated__/searchH
|
|
|
56
56
|
exports.searchSchema = searchSchema;
|
|
57
57
|
const formsSchema = __importStar(require("./graphql_tools/__generated__/formsHost/schema"));
|
|
58
58
|
exports.formsSchema = formsSchema;
|
|
59
|
+
const schema = {
|
|
60
|
+
...adminSchema,
|
|
61
|
+
...assetSchema,
|
|
62
|
+
...authSchema,
|
|
63
|
+
...collectionsSchema,
|
|
64
|
+
...experiencesSchema,
|
|
65
|
+
...extensionSchema,
|
|
66
|
+
...galleriesSchema,
|
|
67
|
+
...identitySchema,
|
|
68
|
+
...mediasSchema,
|
|
69
|
+
...opportunitiesSchema,
|
|
70
|
+
...preferencesSchema,
|
|
71
|
+
...searchSchema,
|
|
72
|
+
...formsSchema
|
|
73
|
+
};
|
|
74
|
+
exports.schema = schema;
|
package/package.json
CHANGED
|
@@ -262,7 +262,7 @@ export type IProfile = {
|
|
|
262
262
|
export type IQuery = {
|
|
263
263
|
getDummy: Scalars['String'];
|
|
264
264
|
fetchUserWallets: Array<Maybe<IWallet>>;
|
|
265
|
-
fetchMultiversxAudit
|
|
265
|
+
fetchMultiversxAudit?: Maybe<IMultiversxAudit>;
|
|
266
266
|
isInviteCodeAvailable: Scalars['Boolean'];
|
|
267
267
|
getMyInviteCodes: Array<IUserInviteCode>;
|
|
268
268
|
fetchProfile: IProfile;
|
|
@@ -593,7 +593,7 @@ export type IProfileResolvers<ContextType = any, ParentType extends IResolversPa
|
|
|
593
593
|
export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
|
|
594
594
|
getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
595
595
|
fetchUserWallets?: Resolver<Array<Maybe<IResolversTypes['Wallet']>>, ParentType, ContextType, RequireFields<IQueryFetchUserWalletsArgs, 'userId'>>;
|
|
596
|
-
fetchMultiversxAudit?: Resolver<IResolversTypes['MultiversxAudit']
|
|
596
|
+
fetchMultiversxAudit?: Resolver<Maybe<IResolversTypes['MultiversxAudit']>, ParentType, ContextType, RequireFields<IQueryFetchMultiversxAuditArgs, 'wallet'>>;
|
|
597
597
|
isInviteCodeAvailable?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IQueryIsInviteCodeAvailableArgs, 'inviteCode'>>;
|
|
598
598
|
getMyInviteCodes?: Resolver<Array<IResolversTypes['UserInviteCode']>, ParentType, ContextType>;
|
|
599
599
|
fetchProfile?: Resolver<IResolversTypes['Profile'], ParentType, ContextType, RequireFields<IQueryFetchProfileArgs, 'userId'>>;
|
|
@@ -836,6 +836,19 @@ export type IUpdateProfileMutationVariables = Exact<{
|
|
|
836
836
|
|
|
837
837
|
export type IUpdateProfileMutation = Pick<IMutation, 'updateProfile'>;
|
|
838
838
|
|
|
839
|
+
export type IFetchMultiversXAuditQueryVariables = Exact<{
|
|
840
|
+
wallet: Scalars['String'];
|
|
841
|
+
}>;
|
|
842
|
+
|
|
843
|
+
|
|
844
|
+
export type IFetchMultiversXAuditQuery = { fetchMultiversxAudit?: Maybe<(
|
|
845
|
+
Pick<IMultiversxAudit, 'delegated' | 'nativeBalance' | 'tokenValue'>
|
|
846
|
+
& { interests?: Maybe<Array<Pick<IAuditInterest, 'name' | 'items' | 'percentage'>>>, nftBalance?: Maybe<(
|
|
847
|
+
Pick<IAuditNftBalance, 'nativeValue' | 'totalNfts'>
|
|
848
|
+
& { collections?: Maybe<Array<Pick<IAuditBalanceCollection, 'collection' | 'type' | 'name' | 'balance'>>> }
|
|
849
|
+
)> }
|
|
850
|
+
)> };
|
|
851
|
+
|
|
839
852
|
export type IFetchProfileQueryVariables = Exact<{
|
|
840
853
|
userId: Scalars['ID'];
|
|
841
854
|
}>;
|
|
@@ -1529,6 +1542,56 @@ export function useUpdateProfileMutation(baseOptions?: Apollo.MutationHookOption
|
|
|
1529
1542
|
export type UpdateProfileMutationHookResult = ReturnType<typeof useUpdateProfileMutation>;
|
|
1530
1543
|
export type UpdateProfileMutationResult = Apollo.MutationResult<IUpdateProfileMutation>;
|
|
1531
1544
|
export type UpdateProfileMutationOptions = Apollo.BaseMutationOptions<IUpdateProfileMutation, IUpdateProfileMutationVariables>;
|
|
1545
|
+
export const FetchMultiversXAuditDocument = gql`
|
|
1546
|
+
query FetchMultiversXAudit($wallet: String!) {
|
|
1547
|
+
fetchMultiversxAudit(wallet: $wallet) {
|
|
1548
|
+
delegated
|
|
1549
|
+
interests {
|
|
1550
|
+
name
|
|
1551
|
+
items
|
|
1552
|
+
percentage
|
|
1553
|
+
}
|
|
1554
|
+
nativeBalance
|
|
1555
|
+
nftBalance {
|
|
1556
|
+
nativeValue
|
|
1557
|
+
totalNfts
|
|
1558
|
+
collections {
|
|
1559
|
+
collection
|
|
1560
|
+
type
|
|
1561
|
+
name
|
|
1562
|
+
balance
|
|
1563
|
+
}
|
|
1564
|
+
}
|
|
1565
|
+
tokenValue
|
|
1566
|
+
}
|
|
1567
|
+
}
|
|
1568
|
+
`;
|
|
1569
|
+
|
|
1570
|
+
/**
|
|
1571
|
+
* __useFetchMultiversXAuditQuery__
|
|
1572
|
+
*
|
|
1573
|
+
* To run a query within a React component, call `useFetchMultiversXAuditQuery` and pass it any options that fit your needs.
|
|
1574
|
+
* When your component renders, `useFetchMultiversXAuditQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1575
|
+
* you can use to render your UI.
|
|
1576
|
+
*
|
|
1577
|
+
* @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;
|
|
1578
|
+
*
|
|
1579
|
+
* @example
|
|
1580
|
+
* const { data, loading, error } = useFetchMultiversXAuditQuery({
|
|
1581
|
+
* variables: {
|
|
1582
|
+
* wallet: // value for 'wallet'
|
|
1583
|
+
* },
|
|
1584
|
+
* });
|
|
1585
|
+
*/
|
|
1586
|
+
export function useFetchMultiversXAuditQuery(baseOptions: Apollo.QueryHookOptions<IFetchMultiversXAuditQuery, IFetchMultiversXAuditQueryVariables>) {
|
|
1587
|
+
return Apollo.useQuery<IFetchMultiversXAuditQuery, IFetchMultiversXAuditQueryVariables>(FetchMultiversXAuditDocument, baseOptions);
|
|
1588
|
+
}
|
|
1589
|
+
export function useFetchMultiversXAuditLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchMultiversXAuditQuery, IFetchMultiversXAuditQueryVariables>) {
|
|
1590
|
+
return Apollo.useLazyQuery<IFetchMultiversXAuditQuery, IFetchMultiversXAuditQueryVariables>(FetchMultiversXAuditDocument, baseOptions);
|
|
1591
|
+
}
|
|
1592
|
+
export type FetchMultiversXAuditQueryHookResult = ReturnType<typeof useFetchMultiversXAuditQuery>;
|
|
1593
|
+
export type FetchMultiversXAuditLazyQueryHookResult = ReturnType<typeof useFetchMultiversXAuditLazyQuery>;
|
|
1594
|
+
export type FetchMultiversXAuditQueryResult = Apollo.QueryResult<IFetchMultiversXAuditQuery, IFetchMultiversXAuditQueryVariables>;
|
|
1532
1595
|
export const FetchProfileDocument = gql`
|
|
1533
1596
|
query FetchProfile($userId: ID!) {
|
|
1534
1597
|
fetchProfile(userId: $userId) {
|
|
@@ -205,6 +205,7 @@ export type IQuery = {
|
|
|
205
205
|
fetchCategory: ICategory;
|
|
206
206
|
fetchOpportunities: IOpportunitiesPage;
|
|
207
207
|
fetchOpportunitiesV2?: Maybe<Array<Maybe<IOpportunityV2>>>;
|
|
208
|
+
fetchOpportunitiesForProfile: Array<Maybe<IOpportunityV2>>;
|
|
208
209
|
fetchOpportunity: IOpportunityV2;
|
|
209
210
|
};
|
|
210
211
|
|
|
@@ -457,6 +458,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
457
458
|
fetchCategory?: Resolver<IResolversTypes['Category'], ParentType, ContextType, RequireFields<IQueryFetchCategoryArgs, 'categoryId'>>;
|
|
458
459
|
fetchOpportunities?: Resolver<IResolversTypes['OpportunitiesPage'], ParentType, ContextType, Partial<IQueryFetchOpportunitiesArgs>>;
|
|
459
460
|
fetchOpportunitiesV2?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType>;
|
|
461
|
+
fetchOpportunitiesForProfile?: Resolver<Array<Maybe<IResolversTypes['OpportunityV2']>>, ParentType, ContextType>;
|
|
460
462
|
fetchOpportunity?: Resolver<IResolversTypes['OpportunityV2'], ParentType, ContextType, RequireFields<IQueryFetchOpportunityArgs, 'opportunityId'>>;
|
|
461
463
|
};
|
|
462
464
|
|
|
@@ -489,6 +491,11 @@ export type IOpenOpportunityMutationVariables = Exact<{
|
|
|
489
491
|
|
|
490
492
|
export type IOpenOpportunityMutation = Pick<IMutation, 'openOpportunity'>;
|
|
491
493
|
|
|
494
|
+
export type IFetchOpportunitiesForProfileQueryVariables = Exact<{ [key: string]: never; }>;
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
export type IFetchOpportunitiesForProfileQuery = { fetchOpportunitiesForProfile: Array<Maybe<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'>>> };
|
|
498
|
+
|
|
492
499
|
export type IFetchOpportunitiesQueryVariables = Exact<{
|
|
493
500
|
domain?: Maybe<Scalars['String']>;
|
|
494
501
|
}>;
|
|
@@ -557,6 +564,68 @@ export function useOpenOpportunityMutation(baseOptions?: Apollo.MutationHookOpti
|
|
|
557
564
|
export type OpenOpportunityMutationHookResult = ReturnType<typeof useOpenOpportunityMutation>;
|
|
558
565
|
export type OpenOpportunityMutationResult = Apollo.MutationResult<IOpenOpportunityMutation>;
|
|
559
566
|
export type OpenOpportunityMutationOptions = Apollo.BaseMutationOptions<IOpenOpportunityMutation, IOpenOpportunityMutationVariables>;
|
|
567
|
+
export const FetchOpportunitiesForProfileDocument = gql`
|
|
568
|
+
query FetchOpportunitiesForProfile {
|
|
569
|
+
fetchOpportunitiesForProfile {
|
|
570
|
+
opportunityId
|
|
571
|
+
brandId
|
|
572
|
+
categoryId
|
|
573
|
+
opportunityStatus
|
|
574
|
+
opportunityType
|
|
575
|
+
notificationType
|
|
576
|
+
name
|
|
577
|
+
description
|
|
578
|
+
brandName
|
|
579
|
+
brandDescription
|
|
580
|
+
brandMedia
|
|
581
|
+
brandUrl
|
|
582
|
+
brandIndustry
|
|
583
|
+
categoryName
|
|
584
|
+
ludoUrl
|
|
585
|
+
projectUrl
|
|
586
|
+
activeFrom
|
|
587
|
+
activeUntil
|
|
588
|
+
minXpLevel
|
|
589
|
+
maxXpLevel
|
|
590
|
+
minRank
|
|
591
|
+
maxRank
|
|
592
|
+
media
|
|
593
|
+
reportLink
|
|
594
|
+
clicks
|
|
595
|
+
views
|
|
596
|
+
blockchain
|
|
597
|
+
collection
|
|
598
|
+
createdAt
|
|
599
|
+
minWalletValue
|
|
600
|
+
maxWalletValue
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
`;
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* __useFetchOpportunitiesForProfileQuery__
|
|
607
|
+
*
|
|
608
|
+
* To run a query within a React component, call `useFetchOpportunitiesForProfileQuery` and pass it any options that fit your needs.
|
|
609
|
+
* When your component renders, `useFetchOpportunitiesForProfileQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
610
|
+
* you can use to render your UI.
|
|
611
|
+
*
|
|
612
|
+
* @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;
|
|
613
|
+
*
|
|
614
|
+
* @example
|
|
615
|
+
* const { data, loading, error } = useFetchOpportunitiesForProfileQuery({
|
|
616
|
+
* variables: {
|
|
617
|
+
* },
|
|
618
|
+
* });
|
|
619
|
+
*/
|
|
620
|
+
export function useFetchOpportunitiesForProfileQuery(baseOptions?: Apollo.QueryHookOptions<IFetchOpportunitiesForProfileQuery, IFetchOpportunitiesForProfileQueryVariables>) {
|
|
621
|
+
return Apollo.useQuery<IFetchOpportunitiesForProfileQuery, IFetchOpportunitiesForProfileQueryVariables>(FetchOpportunitiesForProfileDocument, baseOptions);
|
|
622
|
+
}
|
|
623
|
+
export function useFetchOpportunitiesForProfileLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchOpportunitiesForProfileQuery, IFetchOpportunitiesForProfileQueryVariables>) {
|
|
624
|
+
return Apollo.useLazyQuery<IFetchOpportunitiesForProfileQuery, IFetchOpportunitiesForProfileQueryVariables>(FetchOpportunitiesForProfileDocument, baseOptions);
|
|
625
|
+
}
|
|
626
|
+
export type FetchOpportunitiesForProfileQueryHookResult = ReturnType<typeof useFetchOpportunitiesForProfileQuery>;
|
|
627
|
+
export type FetchOpportunitiesForProfileLazyQueryHookResult = ReturnType<typeof useFetchOpportunitiesForProfileLazyQuery>;
|
|
628
|
+
export type FetchOpportunitiesForProfileQueryResult = Apollo.QueryResult<IFetchOpportunitiesForProfileQuery, IFetchOpportunitiesForProfileQueryVariables>;
|
|
560
629
|
export const FetchOpportunitiesDocument = gql`
|
|
561
630
|
query FetchOpportunities($domain: String) {
|
|
562
631
|
fetchOpportunities(domain: $domain) {
|
package/src/index.ts
CHANGED
|
@@ -15,8 +15,25 @@ import * as preferencesSchema from "./graphql_tools/__generated__/preferencesHos
|
|
|
15
15
|
import * as searchSchema from "./graphql_tools/__generated__/searchHost/schema";
|
|
16
16
|
import * as formsSchema from "./graphql_tools/__generated__/formsHost/schema";
|
|
17
17
|
|
|
18
|
+
const schema = {
|
|
19
|
+
...adminSchema,
|
|
20
|
+
...assetSchema,
|
|
21
|
+
...authSchema,
|
|
22
|
+
...collectionsSchema,
|
|
23
|
+
...experiencesSchema,
|
|
24
|
+
...extensionSchema,
|
|
25
|
+
...galleriesSchema,
|
|
26
|
+
...identitySchema,
|
|
27
|
+
...mediasSchema,
|
|
28
|
+
...opportunitiesSchema,
|
|
29
|
+
...preferencesSchema,
|
|
30
|
+
...searchSchema,
|
|
31
|
+
...formsSchema
|
|
32
|
+
}
|
|
33
|
+
|
|
18
34
|
export {
|
|
19
35
|
hosts,
|
|
36
|
+
schema,
|
|
20
37
|
graphqlConfig,
|
|
21
38
|
authCookies,
|
|
22
39
|
adminSchema,
|