@ludo.ninja/api 2.9.3 → 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.
Files changed (39) hide show
  1. package/build/config/index.js +3 -2
  2. package/build/cookies/index.d.ts +1 -1
  3. package/build/graphql_tools/__generated__/adminHost/schema.d.ts +85 -37
  4. package/build/graphql_tools/__generated__/adminHost/schema.js +101 -67
  5. package/build/graphql_tools/__generated__/assetsHost/schema.d.ts +2 -2
  6. package/build/graphql_tools/__generated__/assetsHost/schema.js +3 -3
  7. package/build/graphql_tools/__generated__/authHost/schema.d.ts +2 -2
  8. package/build/graphql_tools/__generated__/authHost/schema.js +3 -3
  9. package/build/graphql_tools/__generated__/collectionsHost/schema.d.ts +2 -2
  10. package/build/graphql_tools/__generated__/collectionsHost/schema.js +3 -3
  11. package/build/graphql_tools/__generated__/experiencesHost/schema.d.ts +9 -9
  12. package/build/graphql_tools/__generated__/experiencesHost/schema.js +10 -10
  13. package/build/graphql_tools/__generated__/extensionHost/schema.d.ts +28 -28
  14. package/build/graphql_tools/__generated__/extensionHost/schema.js +18 -18
  15. package/build/graphql_tools/__generated__/formsHost/schema.js +8 -8
  16. package/build/graphql_tools/__generated__/galleriesHost/schema.d.ts +46 -46
  17. package/build/graphql_tools/__generated__/galleriesHost/schema.js +21 -21
  18. package/build/graphql_tools/__generated__/identityHost/schema.d.ts +54 -54
  19. package/build/graphql_tools/__generated__/identityHost/schema.js +34 -33
  20. package/build/graphql_tools/__generated__/mediasHost/schema.d.ts +5 -5
  21. package/build/graphql_tools/__generated__/mediasHost/schema.js +5 -5
  22. package/build/graphql_tools/__generated__/mintInfoHost/schema.d.ts +3 -1
  23. package/build/graphql_tools/__generated__/mintInfoHost/schema.js +3 -3
  24. package/build/graphql_tools/__generated__/notificationsHost/schema.d.ts +4 -4
  25. package/build/graphql_tools/__generated__/notificationsHost/schema.js +3 -3
  26. package/build/graphql_tools/__generated__/opportunitiesHost/schema.d.ts +10 -7
  27. package/build/graphql_tools/__generated__/opportunitiesHost/schema.js +11 -11
  28. package/build/graphql_tools/__generated__/preferencesHost/schema.d.ts +2 -2
  29. package/build/graphql_tools/__generated__/preferencesHost/schema.js +23 -23
  30. package/build/graphql_tools/__generated__/searchHost/schema.d.ts +48 -48
  31. package/build/graphql_tools/__generated__/searchHost/schema.js +33 -33
  32. package/build/graphql_tools/__generated__/tapHost/schema.d.ts +6 -6
  33. package/build/graphql_tools/__generated__/tapHost/schema.js +12 -12
  34. package/build/index.d.ts +1260 -588
  35. package/package.json +1 -1
  36. package/src/graphql_tools/__generated__/adminHost/schema.ts +59 -1
  37. package/src/graphql_tools/__generated__/mintInfoHost/schema.ts +3 -1
  38. package/src/graphql_tools/__generated__/opportunitiesHost/schema.ts +3 -0
  39. package/tsconfig.tsbuildinfo +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludo.ninja/api",
3
- "version": "2.9.3",
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