@ludo.ninja/api 2.9.2 → 2.9.4

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.
@@ -128,6 +128,7 @@ export type IAdminOpportunity = {
128
128
  views?: Maybe<Scalars['Int']>;
129
129
  addedBy?: Maybe<Scalars['String']>;
130
130
  archived?: Maybe<Scalars['Boolean']>;
131
+ geolocations?: Maybe<Array<Scalars['String']>>;
131
132
  };
132
133
  export type IAdminOpportunityInput = {
133
134
  brandId: Scalars['String'];
@@ -150,6 +151,7 @@ export type IAdminOpportunityInput = {
150
151
  collection?: Maybe<Scalars['String']>;
151
152
  media?: Maybe<Scalars['String']>;
152
153
  openOpportunityXps?: Maybe<Scalars['Int']>;
154
+ geolocations?: Maybe<Array<Scalars['String']>>;
153
155
  };
154
156
  export type IAdminPage = {
155
157
  num?: Maybe<Scalars['Int']>;
@@ -296,6 +298,10 @@ export type IContentReportSortInput = {
296
298
  sortByContentId?: Maybe<ISort>;
297
299
  sortByReportReason?: Maybe<ISort>;
298
300
  };
301
+ export type ICountry = {
302
+ continent: Scalars['String'];
303
+ country: Scalars['String'];
304
+ };
299
305
  export type IFormOpportunityFilterInput = {
300
306
  idTerm?: Maybe<Scalars['String']>;
301
307
  userIdTerm?: Maybe<Scalars['String']>;
@@ -552,6 +558,7 @@ export type IQuery = {
552
558
  fetchAdminInvitesPage: IInvitesPage;
553
559
  checkInviteCode: ICheckInviteCodeData;
554
560
  fetchLocations?: Maybe<Array<Maybe<ILocation>>>;
561
+ fetchAllCountries: Array<ICountry>;
555
562
  fetchAdminOpportunitiesPage: IOpportunitiesPage;
556
563
  fetchAdminCategories: Array<IAdminCategory>;
557
564
  fetchAdminCategoriesPage: ICategoriesPage;
@@ -915,6 +922,7 @@ export type IResolversTypes = {
915
922
  ContentReportFilterInput: IContentReportFilterInput;
916
923
  ContentReportPage: ResolverTypeWrapper<IContentReportPage>;
917
924
  ContentReportSortInput: IContentReportSortInput;
925
+ Country: ResolverTypeWrapper<ICountry>;
918
926
  FormOpportunityFilterInput: IFormOpportunityFilterInput;
919
927
  FormOpportunityPage: ResolverTypeWrapper<IFormOpportunityPage>;
920
928
  FormOpportunitySortInput: IFormOpportunitySortInput;
@@ -1007,6 +1015,7 @@ export type IResolversParentTypes = {
1007
1015
  ContentReportFilterInput: IContentReportFilterInput;
1008
1016
  ContentReportPage: IContentReportPage;
1009
1017
  ContentReportSortInput: IContentReportSortInput;
1018
+ Country: ICountry;
1010
1019
  FormOpportunityFilterInput: IFormOpportunityFilterInput;
1011
1020
  FormOpportunityPage: IFormOpportunityPage;
1012
1021
  FormOpportunitySortInput: IFormOpportunitySortInput;
@@ -1181,6 +1190,7 @@ export type IAdminOpportunityResolvers<ContextType = any, ParentType extends IRe
1181
1190
  views?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
1182
1191
  addedBy?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1183
1192
  archived?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
1193
+ geolocations?: Resolver<Maybe<Array<IResolversTypes['String']>>, ParentType, ContextType>;
1184
1194
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1185
1195
  };
1186
1196
  export type IAdminPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminPage'] = IResolversParentTypes['AdminPage']> = {
@@ -1268,6 +1278,11 @@ export type IContentReportPageResolvers<ContextType = any, ParentType extends IR
1268
1278
  nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
1269
1279
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1270
1280
  };
1281
+ export type ICountryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Country'] = IResolversParentTypes['Country']> = {
1282
+ continent?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
1283
+ country?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
1284
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1285
+ };
1271
1286
  export type IFormOpportunityPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['FormOpportunityPage'] = IResolversParentTypes['FormOpportunityPage']> = {
1272
1287
  opportunities?: Resolver<Array<IResolversTypes['AdminFormOpportunity']>, ParentType, ContextType>;
1273
1288
  nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
@@ -1340,6 +1355,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
1340
1355
  fetchAdminInvitesPage?: Resolver<IResolversTypes['InvitesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminInvitesPageArgs, 'filter' | 'sort' | 'page'>>;
1341
1356
  checkInviteCode?: Resolver<IResolversTypes['CheckInviteCodeData'], ParentType, ContextType, RequireFields<IQueryCheckInviteCodeArgs, 'code'>>;
1342
1357
  fetchLocations?: Resolver<Maybe<Array<Maybe<IResolversTypes['Location']>>>, ParentType, ContextType, RequireFields<IQueryFetchLocationsArgs, 'term'>>;
1358
+ fetchAllCountries?: Resolver<Array<IResolversTypes['Country']>, ParentType, ContextType>;
1343
1359
  fetchAdminOpportunitiesPage?: Resolver<IResolversTypes['OpportunitiesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminOpportunitiesPageArgs, 'filter' | 'sort' | 'page'>>;
1344
1360
  fetchAdminCategories?: Resolver<Array<IResolversTypes['AdminCategory']>, ParentType, ContextType>;
1345
1361
  fetchAdminCategoriesPage?: Resolver<IResolversTypes['CategoriesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminCategoriesPageArgs, 'filter' | 'sort' | 'page'>>;
@@ -1461,6 +1477,7 @@ export type IResolvers<ContextType = any> = {
1461
1477
  CheckInviteCodeData?: ICheckInviteCodeDataResolvers<ContextType>;
1462
1478
  ContactSupportPage?: IContactSupportPageResolvers<ContextType>;
1463
1479
  ContentReportPage?: IContentReportPageResolvers<ContextType>;
1480
+ Country?: ICountryResolvers<ContextType>;
1464
1481
  FormOpportunityPage?: IFormOpportunityPageResolvers<ContextType>;
1465
1482
  InvestorInquiryPage?: IInvestorInquiryPageResolvers<ContextType>;
1466
1483
  InvitesPage?: IInvitesPageResolvers<ContextType>;
@@ -1771,7 +1788,7 @@ export type IFetchAdminOpportunitiesPageQueryVariables = Exact<{
1771
1788
  }>;
1772
1789
  export type IFetchAdminOpportunitiesPageQuery = {
1773
1790
  fetchAdminOpportunitiesPage: {
1774
- opportunities: Array<Pick<IAdminOpportunity, 'opportunityId' | 'name' | 'brandName' | 'industry' | 'category' | 'ludoUrl' | 'projectUrl' | 'pushNotificationsEnabled' | 'status' | 'media' | 'description' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minLudoRank' | 'maxLudoRank' | 'minWalletValue' | 'maxWalletValue' | 'clicks' | 'views' | 'addedBy' | 'archived'>>;
1791
+ opportunities: Array<Pick<IAdminOpportunity, 'opportunityId' | 'name' | 'brandName' | 'industry' | 'category' | 'ludoUrl' | 'projectUrl' | 'pushNotificationsEnabled' | 'status' | 'media' | 'description' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minLudoRank' | 'maxLudoRank' | 'minWalletValue' | 'maxWalletValue' | 'clicks' | 'views' | 'addedBy' | 'archived' | 'geolocations'>>;
1775
1792
  nextPage?: Maybe<Pick<IAdminPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>>;
1776
1793
  };
1777
1794
  };
@@ -1815,6 +1832,12 @@ export type IFetchAdminXpPageQuery = {
1815
1832
  nextPage?: Maybe<Pick<IAdminPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>>;
1816
1833
  };
1817
1834
  };
1835
+ export type IFetchAllCountriesQueryVariables = Exact<{
1836
+ [key: string]: never;
1837
+ }>;
1838
+ export type IFetchAllCountriesQuery = {
1839
+ fetchAllCountries: Array<Pick<ICountry, 'continent' | 'country'>>;
1840
+ };
1818
1841
  export type IFetchBlockchainsQueryVariables = Exact<{
1819
1842
  [key: string]: never;
1820
1843
  }>;
@@ -3049,6 +3072,31 @@ export declare function useFetchAdminXpPageLazyQuery(baseOptions?: Apollo.LazyQu
3049
3072
  export type FetchAdminXpPageQueryHookResult = ReturnType<typeof useFetchAdminXpPageQuery>;
3050
3073
  export type FetchAdminXpPageLazyQueryHookResult = ReturnType<typeof useFetchAdminXpPageLazyQuery>;
3051
3074
  export type FetchAdminXpPageQueryResult = Apollo.QueryResult<IFetchAdminXpPageQuery, IFetchAdminXpPageQueryVariables>;
3075
+ export declare const FetchAllCountriesDocument: Apollo.DocumentNode;
3076
+ /**
3077
+ * __useFetchAllCountriesQuery__
3078
+ *
3079
+ * To run a query within a React component, call `useFetchAllCountriesQuery` and pass it any options that fit your needs.
3080
+ * When your component renders, `useFetchAllCountriesQuery` returns an object from Apollo Client that contains loading, error, and data properties
3081
+ * you can use to render your UI.
3082
+ *
3083
+ * @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;
3084
+ *
3085
+ * @example
3086
+ * const { data, loading, error } = useFetchAllCountriesQuery({
3087
+ * variables: {
3088
+ * },
3089
+ * });
3090
+ */
3091
+ export declare function useFetchAllCountriesQuery(baseOptions?: Apollo.QueryHookOptions<IFetchAllCountriesQuery, IFetchAllCountriesQueryVariables>): Apollo.QueryResult<IFetchAllCountriesQuery, Exact<{
3092
+ [key: string]: never;
3093
+ }>>;
3094
+ export declare function useFetchAllCountriesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAllCountriesQuery, IFetchAllCountriesQueryVariables>): Apollo.LazyQueryResultTuple<IFetchAllCountriesQuery, Exact<{
3095
+ [key: string]: never;
3096
+ }>>;
3097
+ export type FetchAllCountriesQueryHookResult = ReturnType<typeof useFetchAllCountriesQuery>;
3098
+ export type FetchAllCountriesLazyQueryHookResult = ReturnType<typeof useFetchAllCountriesLazyQuery>;
3099
+ export type FetchAllCountriesQueryResult = Apollo.QueryResult<IFetchAllCountriesQuery, IFetchAllCountriesQueryVariables>;
3052
3100
  export declare const FetchBlockchainsDocument: Apollo.DocumentNode;
3053
3101
  /**
3054
3102
  * __useFetchBlockchainsQuery__
@@ -25,7 +25,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
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
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;
28
+ exports.useFetchBlockchainsLazyQuery = exports.useFetchBlockchainsQuery = exports.FetchBlockchainsDocument = exports.useFetchAllCountriesLazyQuery = exports.useFetchAllCountriesQuery = exports.FetchAllCountriesDocument = exports.useFetchAdminXpPageLazyQuery = exports.useFetchAdminXpPageQuery = exports.FetchAdminXpPageDocument = exports.useFetchAdminUsersPageLazyQuery = exports.useFetchAdminUsersPageQuery = exports.FetchAdminUsersPageDocument = exports.useFetchAdminReferralsPageLazyQuery = exports.useFetchAdminReferralsPageQuery = exports.FetchAdminReferralsPageDocument = exports.useFetchAdminOpportunitiesPageLazyQuery = void 0;
29
29
  const client_1 = require("@apollo/client");
30
30
  const Apollo = __importStar(require("@apollo/client"));
31
31
  var ILocationType;
@@ -1428,6 +1428,7 @@ exports.FetchAdminOpportunitiesPageDocument = (0, client_1.gql) `
1428
1428
  views
1429
1429
  addedBy
1430
1430
  archived
1431
+ geolocations
1431
1432
  }
1432
1433
  nextPage {
1433
1434
  elements
@@ -1633,6 +1634,37 @@ function useFetchAdminXpPageLazyQuery(baseOptions) {
1633
1634
  return Apollo.useLazyQuery(exports.FetchAdminXpPageDocument, baseOptions);
1634
1635
  }
1635
1636
  exports.useFetchAdminXpPageLazyQuery = useFetchAdminXpPageLazyQuery;
1637
+ exports.FetchAllCountriesDocument = (0, client_1.gql) `
1638
+ query FetchAllCountries {
1639
+ fetchAllCountries {
1640
+ continent
1641
+ country
1642
+ }
1643
+ }
1644
+ `;
1645
+ /**
1646
+ * __useFetchAllCountriesQuery__
1647
+ *
1648
+ * To run a query within a React component, call `useFetchAllCountriesQuery` and pass it any options that fit your needs.
1649
+ * When your component renders, `useFetchAllCountriesQuery` returns an object from Apollo Client that contains loading, error, and data properties
1650
+ * you can use to render your UI.
1651
+ *
1652
+ * @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;
1653
+ *
1654
+ * @example
1655
+ * const { data, loading, error } = useFetchAllCountriesQuery({
1656
+ * variables: {
1657
+ * },
1658
+ * });
1659
+ */
1660
+ function useFetchAllCountriesQuery(baseOptions) {
1661
+ return Apollo.useQuery(exports.FetchAllCountriesDocument, baseOptions);
1662
+ }
1663
+ exports.useFetchAllCountriesQuery = useFetchAllCountriesQuery;
1664
+ function useFetchAllCountriesLazyQuery(baseOptions) {
1665
+ return Apollo.useLazyQuery(exports.FetchAllCountriesDocument, baseOptions);
1666
+ }
1667
+ exports.useFetchAllCountriesLazyQuery = useFetchAllCountriesLazyQuery;
1636
1668
  exports.FetchBlockchainsDocument = (0, client_1.gql) `
1637
1669
  query FetchBlockchains {
1638
1670
  fetchBlockchains
@@ -32,7 +32,9 @@ export type IMintingInfo = {
32
32
  nftPrice: Scalars['Float'];
33
33
  };
34
34
  export type IMintingInput = {
35
- wallet: Scalars['String'];
35
+ blockchain: Scalars['String'];
36
+ address: Scalars['String'];
37
+ tierId: Scalars['String'];
36
38
  refcode?: Maybe<Scalars['String']>;
37
39
  };
38
40
  export type IMutation = {
@@ -150,6 +150,7 @@ export type IOpportunityInput = {
150
150
  collection?: Maybe<Scalars['String']>;
151
151
  minWalletValue?: Maybe<Scalars['Float']>;
152
152
  maxWalletValue?: Maybe<Scalars['Float']>;
153
+ geolocations?: Maybe<Array<Scalars['String']>>;
153
154
  };
154
155
  export type IOpportunityV2 = {
155
156
  opportunityId: Scalars['ID'];
@@ -185,6 +186,7 @@ export type IOpportunityV2 = {
185
186
  maxWalletValue?: Maybe<Scalars['Float']>;
186
187
  shareLink?: Maybe<Scalars['String']>;
187
188
  liked?: Maybe<Scalars['Boolean']>;
189
+ geolocations?: Maybe<Array<Scalars['String']>>;
188
190
  };
189
191
  export type IQuery = {
190
192
  getDummy: Scalars['String'];
@@ -385,6 +387,7 @@ export type IOpportunityV2Resolvers<ContextType = any, ParentType extends IResol
385
387
  maxWalletValue?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
386
388
  shareLink?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
387
389
  liked?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
390
+ geolocations?: Resolver<Maybe<Array<IResolversTypes['String']>>, ParentType, ContextType>;
388
391
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
389
392
  };
390
393
  export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
package/build/index.d.ts CHANGED
@@ -1742,6 +1742,16 @@ declare const schema: {
1742
1742
  sort: adminSchema.IXpSortInput;
1743
1743
  page: adminSchema.IAdminPageInput;
1744
1744
  }>>;
1745
+ useFetchAllCountriesQuery(baseOptions?: import("@apollo/client").QueryHookOptions<adminSchema.IFetchAllCountriesQuery, adminSchema.Exact<{
1746
+ [key: string]: never;
1747
+ }>> | undefined): import("@apollo/client").QueryResult<adminSchema.IFetchAllCountriesQuery, adminSchema.Exact<{
1748
+ [key: string]: never;
1749
+ }>>;
1750
+ useFetchAllCountriesLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<adminSchema.IFetchAllCountriesQuery, adminSchema.Exact<{
1751
+ [key: string]: never;
1752
+ }>> | undefined): import("@apollo/client").LazyQueryResultTuple<adminSchema.IFetchAllCountriesQuery, adminSchema.Exact<{
1753
+ [key: string]: never;
1754
+ }>>;
1745
1755
  useFetchBlockchainsQuery(baseOptions?: import("@apollo/client").QueryHookOptions<adminSchema.IFetchBlockchainsQuery, adminSchema.Exact<{
1746
1756
  [key: string]: never;
1747
1757
  }>> | undefined): import("@apollo/client").QueryResult<adminSchema.IFetchBlockchainsQuery, adminSchema.Exact<{
@@ -1797,6 +1807,7 @@ declare const schema: {
1797
1807
  FetchAdminReferralsPageDocument: import("graphql").DocumentNode;
1798
1808
  FetchAdminUsersPageDocument: import("graphql").DocumentNode;
1799
1809
  FetchAdminXpPageDocument: import("graphql").DocumentNode;
1810
+ FetchAllCountriesDocument: import("graphql").DocumentNode;
1800
1811
  FetchBlockchainsDocument: import("graphql").DocumentNode;
1801
1812
  };
1802
1813
  export { hosts, schema, graphqlConfig, authCookies, adminSchema, assetSchema, authSchema, collectionsSchema, experiencesSchema, extensionSchema, galleriesSchema, identitySchema, mediasSchema, opportunitiesSchema, preferencesSchema, searchSchema, formsSchema, tapsSchema, notificationsSchema, mintInfoSchema };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludo.ninja/api",
3
- "version": "2.9.2",
3
+ "version": "2.9.4",
4
4
  "main": "./build/index.js",
5
5
  "scripts": {
6
6
  "test": "jest",
@@ -132,6 +132,7 @@ export type IAdminOpportunity = {
132
132
  views?: Maybe<Scalars['Int']>;
133
133
  addedBy?: Maybe<Scalars['String']>;
134
134
  archived?: Maybe<Scalars['Boolean']>;
135
+ geolocations?: Maybe<Array<Scalars['String']>>;
135
136
  };
136
137
 
137
138
  export type IAdminOpportunityInput = {
@@ -155,6 +156,7 @@ export type IAdminOpportunityInput = {
155
156
  collection?: Maybe<Scalars['String']>;
156
157
  media?: Maybe<Scalars['String']>;
157
158
  openOpportunityXps?: Maybe<Scalars['Int']>;
159
+ geolocations?: Maybe<Array<Scalars['String']>>;
158
160
  };
159
161
 
160
162
  export type IAdminPage = {
@@ -323,6 +325,11 @@ export type IContentReportSortInput = {
323
325
  sortByReportReason?: Maybe<ISort>;
324
326
  };
325
327
 
328
+ export type ICountry = {
329
+ continent: Scalars['String'];
330
+ country: Scalars['String'];
331
+ };
332
+
326
333
  export type IFormOpportunityFilterInput = {
327
334
  idTerm?: Maybe<Scalars['String']>;
328
335
  userIdTerm?: Maybe<Scalars['String']>;
@@ -646,6 +653,7 @@ export type IQuery = {
646
653
  fetchAdminInvitesPage: IInvitesPage;
647
654
  checkInviteCode: ICheckInviteCodeData;
648
655
  fetchLocations?: Maybe<Array<Maybe<ILocation>>>;
656
+ fetchAllCountries: Array<ICountry>;
649
657
  fetchAdminOpportunitiesPage: IOpportunitiesPage;
650
658
  fetchAdminCategories: Array<IAdminCategory>;
651
659
  fetchAdminCategoriesPage: ICategoriesPage;
@@ -1120,6 +1128,7 @@ export type IResolversTypes = {
1120
1128
  ContentReportFilterInput: IContentReportFilterInput;
1121
1129
  ContentReportPage: ResolverTypeWrapper<IContentReportPage>;
1122
1130
  ContentReportSortInput: IContentReportSortInput;
1131
+ Country: ResolverTypeWrapper<ICountry>;
1123
1132
  FormOpportunityFilterInput: IFormOpportunityFilterInput;
1124
1133
  FormOpportunityPage: ResolverTypeWrapper<IFormOpportunityPage>;
1125
1134
  FormOpportunitySortInput: IFormOpportunitySortInput;
@@ -1213,6 +1222,7 @@ export type IResolversParentTypes = {
1213
1222
  ContentReportFilterInput: IContentReportFilterInput;
1214
1223
  ContentReportPage: IContentReportPage;
1215
1224
  ContentReportSortInput: IContentReportSortInput;
1225
+ Country: ICountry;
1216
1226
  FormOpportunityFilterInput: IFormOpportunityFilterInput;
1217
1227
  FormOpportunityPage: IFormOpportunityPage;
1218
1228
  FormOpportunitySortInput: IFormOpportunitySortInput;
@@ -1402,6 +1412,7 @@ export type IAdminOpportunityResolvers<ContextType = any, ParentType extends IRe
1402
1412
  views?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
1403
1413
  addedBy?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1404
1414
  archived?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
1415
+ geolocations?: Resolver<Maybe<Array<IResolversTypes['String']>>, ParentType, ContextType>;
1405
1416
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1406
1417
  };
1407
1418
 
@@ -1500,6 +1511,12 @@ export type IContentReportPageResolvers<ContextType = any, ParentType extends IR
1500
1511
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1501
1512
  };
1502
1513
 
1514
+ export type ICountryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Country'] = IResolversParentTypes['Country']> = {
1515
+ continent?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
1516
+ country?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
1517
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1518
+ };
1519
+
1503
1520
  export type IFormOpportunityPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['FormOpportunityPage'] = IResolversParentTypes['FormOpportunityPage']> = {
1504
1521
  opportunities?: Resolver<Array<IResolversTypes['AdminFormOpportunity']>, ParentType, ContextType>;
1505
1522
  nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
@@ -1580,6 +1597,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
1580
1597
  fetchAdminInvitesPage?: Resolver<IResolversTypes['InvitesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminInvitesPageArgs, 'filter' | 'sort' | 'page'>>;
1581
1598
  checkInviteCode?: Resolver<IResolversTypes['CheckInviteCodeData'], ParentType, ContextType, RequireFields<IQueryCheckInviteCodeArgs, 'code'>>;
1582
1599
  fetchLocations?: Resolver<Maybe<Array<Maybe<IResolversTypes['Location']>>>, ParentType, ContextType, RequireFields<IQueryFetchLocationsArgs, 'term'>>;
1600
+ fetchAllCountries?: Resolver<Array<IResolversTypes['Country']>, ParentType, ContextType>;
1583
1601
  fetchAdminOpportunitiesPage?: Resolver<IResolversTypes['OpportunitiesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminOpportunitiesPageArgs, 'filter' | 'sort' | 'page'>>;
1584
1602
  fetchAdminCategories?: Resolver<Array<IResolversTypes['AdminCategory']>, ParentType, ContextType>;
1585
1603
  fetchAdminCategoriesPage?: Resolver<IResolversTypes['CategoriesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminCategoriesPageArgs, 'filter' | 'sort' | 'page'>>;
@@ -1716,6 +1734,7 @@ export type IResolvers<ContextType = any> = {
1716
1734
  CheckInviteCodeData?: ICheckInviteCodeDataResolvers<ContextType>;
1717
1735
  ContactSupportPage?: IContactSupportPageResolvers<ContextType>;
1718
1736
  ContentReportPage?: IContentReportPageResolvers<ContextType>;
1737
+ Country?: ICountryResolvers<ContextType>;
1719
1738
  FormOpportunityPage?: IFormOpportunityPageResolvers<ContextType>;
1720
1739
  InvestorInquiryPage?: IInvestorInquiryPageResolvers<ContextType>;
1721
1740
  InvitesPage?: IInvitesPageResolvers<ContextType>;
@@ -2067,7 +2086,7 @@ export type IFetchAdminOpportunitiesPageQueryVariables = Exact<{
2067
2086
  }>;
2068
2087
 
2069
2088
 
2070
- export type IFetchAdminOpportunitiesPageQuery = { fetchAdminOpportunitiesPage: { opportunities: Array<Pick<IAdminOpportunity, 'opportunityId' | 'name' | 'brandName' | 'industry' | 'category' | 'ludoUrl' | 'projectUrl' | 'pushNotificationsEnabled' | 'status' | 'media' | 'description' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minLudoRank' | 'maxLudoRank' | 'minWalletValue' | 'maxWalletValue' | 'clicks' | 'views' | 'addedBy' | 'archived'>>, nextPage?: Maybe<Pick<IAdminPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>> } };
2089
+ export type IFetchAdminOpportunitiesPageQuery = { fetchAdminOpportunitiesPage: { opportunities: Array<Pick<IAdminOpportunity, 'opportunityId' | 'name' | 'brandName' | 'industry' | 'category' | 'ludoUrl' | 'projectUrl' | 'pushNotificationsEnabled' | 'status' | 'media' | 'description' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minLudoRank' | 'maxLudoRank' | 'minWalletValue' | 'maxWalletValue' | 'clicks' | 'views' | 'addedBy' | 'archived' | 'geolocations'>>, nextPage?: Maybe<Pick<IAdminPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>> } };
2071
2090
 
2072
2091
  export type IFetchAdminReferralsPageQueryVariables = Exact<{
2073
2092
  filter: IReferralsFilterInput;
@@ -2105,6 +2124,11 @@ export type IFetchAdminXpPageQuery = { fetchAdminXpPage: { xps: Array<(
2105
2124
  & { mainWallet?: Maybe<Pick<IWallet, 'address' | 'blockchain' | 'chainId'>> }
2106
2125
  )>, nextPage?: Maybe<Pick<IAdminPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>> } };
2107
2126
 
2127
+ export type IFetchAllCountriesQueryVariables = Exact<{ [key: string]: never; }>;
2128
+
2129
+
2130
+ export type IFetchAllCountriesQuery = { fetchAllCountries: Array<Pick<ICountry, 'continent' | 'country'>> };
2131
+
2108
2132
  export type IFetchBlockchainsQueryVariables = Exact<{ [key: string]: never; }>;
2109
2133
 
2110
2134
 
@@ -3608,6 +3632,7 @@ export const FetchAdminOpportunitiesPageDocument = gql`
3608
3632
  views
3609
3633
  addedBy
3610
3634
  archived
3635
+ geolocations
3611
3636
  }
3612
3637
  nextPage {
3613
3638
  elements
@@ -3821,6 +3846,39 @@ export function useFetchAdminXpPageLazyQuery(baseOptions?: Apollo.LazyQueryHookO
3821
3846
  export type FetchAdminXpPageQueryHookResult = ReturnType<typeof useFetchAdminXpPageQuery>;
3822
3847
  export type FetchAdminXpPageLazyQueryHookResult = ReturnType<typeof useFetchAdminXpPageLazyQuery>;
3823
3848
  export type FetchAdminXpPageQueryResult = Apollo.QueryResult<IFetchAdminXpPageQuery, IFetchAdminXpPageQueryVariables>;
3849
+ export const FetchAllCountriesDocument = gql`
3850
+ query FetchAllCountries {
3851
+ fetchAllCountries {
3852
+ continent
3853
+ country
3854
+ }
3855
+ }
3856
+ `;
3857
+
3858
+ /**
3859
+ * __useFetchAllCountriesQuery__
3860
+ *
3861
+ * To run a query within a React component, call `useFetchAllCountriesQuery` and pass it any options that fit your needs.
3862
+ * When your component renders, `useFetchAllCountriesQuery` returns an object from Apollo Client that contains loading, error, and data properties
3863
+ * you can use to render your UI.
3864
+ *
3865
+ * @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;
3866
+ *
3867
+ * @example
3868
+ * const { data, loading, error } = useFetchAllCountriesQuery({
3869
+ * variables: {
3870
+ * },
3871
+ * });
3872
+ */
3873
+ export function useFetchAllCountriesQuery(baseOptions?: Apollo.QueryHookOptions<IFetchAllCountriesQuery, IFetchAllCountriesQueryVariables>) {
3874
+ return Apollo.useQuery<IFetchAllCountriesQuery, IFetchAllCountriesQueryVariables>(FetchAllCountriesDocument, baseOptions);
3875
+ }
3876
+ export function useFetchAllCountriesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAllCountriesQuery, IFetchAllCountriesQueryVariables>) {
3877
+ return Apollo.useLazyQuery<IFetchAllCountriesQuery, IFetchAllCountriesQueryVariables>(FetchAllCountriesDocument, baseOptions);
3878
+ }
3879
+ export type FetchAllCountriesQueryHookResult = ReturnType<typeof useFetchAllCountriesQuery>;
3880
+ export type FetchAllCountriesLazyQueryHookResult = ReturnType<typeof useFetchAllCountriesLazyQuery>;
3881
+ export type FetchAllCountriesQueryResult = Apollo.QueryResult<IFetchAllCountriesQuery, IFetchAllCountriesQueryVariables>;
3824
3882
  export const FetchBlockchainsDocument = gql`
3825
3883
  query FetchBlockchains {
3826
3884
  fetchBlockchains
@@ -28,7 +28,9 @@ export type IMintingInfo = {
28
28
  };
29
29
 
30
30
  export type IMintingInput = {
31
- wallet: Scalars['String'];
31
+ blockchain: Scalars['String'];
32
+ address: Scalars['String'];
33
+ tierId: Scalars['String'];
32
34
  refcode?: Maybe<Scalars['String']>;
33
35
  };
34
36
 
@@ -172,6 +172,7 @@ export type IOpportunityInput = {
172
172
  collection?: Maybe<Scalars['String']>;
173
173
  minWalletValue?: Maybe<Scalars['Float']>;
174
174
  maxWalletValue?: Maybe<Scalars['Float']>;
175
+ geolocations?: Maybe<Array<Scalars['String']>>;
175
176
  };
176
177
 
177
178
  export type IOpportunityV2 = {
@@ -208,6 +209,7 @@ export type IOpportunityV2 = {
208
209
  maxWalletValue?: Maybe<Scalars['Float']>;
209
210
  shareLink?: Maybe<Scalars['String']>;
210
211
  liked?: Maybe<Scalars['Boolean']>;
212
+ geolocations?: Maybe<Array<Scalars['String']>>;
211
213
  };
212
214
 
213
215
  export type IQuery = {
@@ -473,6 +475,7 @@ export type IOpportunityV2Resolvers<ContextType = any, ParentType extends IResol
473
475
  maxWalletValue?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
474
476
  shareLink?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
475
477
  liked?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
478
+ geolocations?: Resolver<Maybe<Array<IResolversTypes['String']>>, ParentType, ContextType>;
476
479
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
477
480
  };
478
481