@ludo.ninja/api 3.0.29 → 3.0.31

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.
@@ -35,6 +35,8 @@ export type IBrand = {
35
35
  facebook?: Maybe<Scalars['String']>;
36
36
  linkedin?: Maybe<Scalars['String']>;
37
37
  youtube?: Maybe<Scalars['String']>;
38
+ activeAirdrop?: Maybe<IOpportunityV2>;
39
+ otherOpportunities?: Maybe<Array<Maybe<IOpportunityV2>>>;
38
40
  };
39
41
 
40
42
  export type IBrandInput = {
@@ -252,6 +254,7 @@ export type IQuery = {
252
254
  getDummy: Scalars['String'];
253
255
  fetchBrands?: Maybe<Array<Maybe<IBrand>>>;
254
256
  fetchBrand: IBrand;
257
+ fetchBrandBySlug: IBrand;
255
258
  fetchCategories?: Maybe<Array<Maybe<ICategory>>>;
256
259
  fetchCategory: ICategory;
257
260
  fetchOpportunities: IOpportunitiesPage;
@@ -259,7 +262,6 @@ export type IQuery = {
259
262
  fetchOpportunitiesForProfile: Array<Maybe<IOpportunityV2>>;
260
263
  fetchProfileOpportunities: IProfileOpportunities;
261
264
  fetchOpportunity: IOpportunityV2;
262
- fetchOpportunityBySlug: IOpportunityV2;
263
265
  fetchOpportunitiesByIds: Array<IOpportunityV2>;
264
266
  fetchOpportunitiesForWallet?: Maybe<Array<Maybe<IOpportunityV2>>>;
265
267
  fetchAirdropRegistrationsCsv: Scalars['String'];
@@ -271,6 +273,11 @@ export type IQueryFetchBrandArgs = {
271
273
  };
272
274
 
273
275
 
276
+ export type IQueryFetchBrandBySlugArgs = {
277
+ slug: Scalars['String'];
278
+ };
279
+
280
+
274
281
  export type IQueryFetchCategoryArgs = {
275
282
  categoryId: Scalars['ID'];
276
283
  };
@@ -286,11 +293,6 @@ export type IQueryFetchOpportunityArgs = {
286
293
  };
287
294
 
288
295
 
289
- export type IQueryFetchOpportunityBySlugArgs = {
290
- slug: Scalars['String'];
291
- };
292
-
293
-
294
296
  export type IQueryFetchOpportunitiesByIdsArgs = {
295
297
  opportunityIds: Array<Scalars['ID']>;
296
298
  };
@@ -436,6 +438,8 @@ export type IBrandResolvers<ContextType = any, ParentType extends IResolversPare
436
438
  facebook?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
437
439
  linkedin?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
438
440
  youtube?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
441
+ activeAirdrop?: Resolver<Maybe<IResolversTypes['OpportunityV2']>, ParentType, ContextType>;
442
+ otherOpportunities?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType>;
439
443
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
440
444
  };
441
445
 
@@ -554,6 +558,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
554
558
  getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
555
559
  fetchBrands?: Resolver<Maybe<Array<Maybe<IResolversTypes['Brand']>>>, ParentType, ContextType>;
556
560
  fetchBrand?: Resolver<IResolversTypes['Brand'], ParentType, ContextType, RequireFields<IQueryFetchBrandArgs, 'brandId'>>;
561
+ fetchBrandBySlug?: Resolver<IResolversTypes['Brand'], ParentType, ContextType, RequireFields<IQueryFetchBrandBySlugArgs, 'slug'>>;
557
562
  fetchCategories?: Resolver<Maybe<Array<Maybe<IResolversTypes['Category']>>>, ParentType, ContextType>;
558
563
  fetchCategory?: Resolver<IResolversTypes['Category'], ParentType, ContextType, RequireFields<IQueryFetchCategoryArgs, 'categoryId'>>;
559
564
  fetchOpportunities?: Resolver<IResolversTypes['OpportunitiesPage'], ParentType, ContextType, Partial<IQueryFetchOpportunitiesArgs>>;
@@ -561,7 +566,6 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
561
566
  fetchOpportunitiesForProfile?: Resolver<Array<Maybe<IResolversTypes['OpportunityV2']>>, ParentType, ContextType>;
562
567
  fetchProfileOpportunities?: Resolver<IResolversTypes['ProfileOpportunities'], ParentType, ContextType>;
563
568
  fetchOpportunity?: Resolver<IResolversTypes['OpportunityV2'], ParentType, ContextType, RequireFields<IQueryFetchOpportunityArgs, 'opportunityId'>>;
564
- fetchOpportunityBySlug?: Resolver<IResolversTypes['OpportunityV2'], ParentType, ContextType, RequireFields<IQueryFetchOpportunityBySlugArgs, 'slug'>>;
565
569
  fetchOpportunitiesByIds?: Resolver<Array<IResolversTypes['OpportunityV2']>, ParentType, ContextType, RequireFields<IQueryFetchOpportunitiesByIdsArgs, 'opportunityIds'>>;
566
570
  fetchOpportunitiesForWallet?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType, RequireFields<IQueryFetchOpportunitiesForWalletArgs, 'blockchain' | 'wallet'>>;
567
571
  fetchAirdropRegistrationsCsv?: Resolver<IResolversTypes['String'], ParentType, ContextType, RequireFields<IQueryFetchAirdropRegistrationsCsvArgs, 'opportunityId'>>;
@@ -646,6 +650,16 @@ export type IFetchOpportunitiesForProfileQueryVariables = Exact<{ [key: string]:
646
650
 
647
651
  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' | 'shareLink' | 'liked'>>> };
648
652
 
653
+ export type IFetchBrandBySlugQueryVariables = Exact<{
654
+ slug: Scalars['String'];
655
+ }>;
656
+
657
+
658
+ export type IFetchBrandBySlugQuery = { fetchBrandBySlug: (
659
+ Pick<IBrand, 'brandId' | 'name' | 'description' | 'industry' | 'link' | 'media' | 'archived' | 'addedBy' | 'matchingWords' | 'discord' | 'telegram' | 'twitter' | 'facebook' | 'linkedin' | 'youtube'>
660
+ & { activeAirdrop?: Maybe<Pick<IOpportunityV2, 'opportunityId' | 'brandId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'brandName' | 'brandDescription' | 'brandMedia' | 'brandUrl' | 'brandIndustry' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'media' | 'reportLink' | 'shareLink'>>, otherOpportunities?: Maybe<Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'brandId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'brandName' | 'brandDescription' | 'brandMedia' | 'brandUrl' | 'brandIndustry' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'media' | 'reportLink' | 'shareLink'>>>> }
661
+ ) };
662
+
649
663
  export type IFetchOpportunitiesQueryVariables = Exact<{
650
664
  domain?: Maybe<Scalars['String']>;
651
665
  }>;
@@ -663,16 +677,6 @@ export type IFetchOpportunityQuery = { fetchOpportunity: (
663
677
  & { brand: Pick<IBrand, 'brandId' | 'name' | 'description' | 'industry' | 'link' | 'media' | 'archived' | 'addedBy' | 'matchingWords' | 'discord' | 'telegram' | 'twitter' | 'facebook' | 'linkedin' | 'youtube'> }
664
678
  ) };
665
679
 
666
- export type IFetchOpportunityBySlugQueryVariables = Exact<{
667
- slug: Scalars['String'];
668
- }>;
669
-
670
-
671
- export type IFetchOpportunityBySlugQuery = { fetchOpportunityBySlug: (
672
- Pick<IOpportunityV2, 'opportunityId' | 'brandId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'brandName' | 'subscribed' | 'brandDescription' | 'brandMedia' | 'brandUrl' | 'brandIndustry' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'blockchains' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked' | 'geolocations'>
673
- & { brand: Pick<IBrand, 'brandId' | 'name' | 'description' | 'industry' | 'link' | 'media' | 'archived' | 'addedBy' | 'matchingWords' | 'discord' | 'telegram' | 'twitter' | 'facebook' | 'linkedin' | 'youtube'> }
674
- ) };
675
-
676
680
  export type IFetchProfileOpportunitiesQueryVariables = Exact<{ [key: string]: never; }>;
677
681
 
678
682
 
@@ -1025,6 +1029,99 @@ export function useFetchOpportunitiesForProfileLazyQuery(baseOptions?: Apollo.La
1025
1029
  export type FetchOpportunitiesForProfileQueryHookResult = ReturnType<typeof useFetchOpportunitiesForProfileQuery>;
1026
1030
  export type FetchOpportunitiesForProfileLazyQueryHookResult = ReturnType<typeof useFetchOpportunitiesForProfileLazyQuery>;
1027
1031
  export type FetchOpportunitiesForProfileQueryResult = Apollo.QueryResult<IFetchOpportunitiesForProfileQuery, IFetchOpportunitiesForProfileQueryVariables>;
1032
+ export const FetchBrandBySlugDocument = gql`
1033
+ query FetchBrandBySlug($slug: String!) {
1034
+ fetchBrandBySlug(slug: $slug) {
1035
+ brandId
1036
+ name
1037
+ description
1038
+ industry
1039
+ link
1040
+ media
1041
+ archived
1042
+ addedBy
1043
+ matchingWords
1044
+ discord
1045
+ telegram
1046
+ twitter
1047
+ facebook
1048
+ linkedin
1049
+ youtube
1050
+ activeAirdrop {
1051
+ opportunityId
1052
+ brandId
1053
+ categoryId
1054
+ opportunityStatus
1055
+ opportunityType
1056
+ notificationType
1057
+ name
1058
+ description
1059
+ brandName
1060
+ brandDescription
1061
+ brandMedia
1062
+ brandUrl
1063
+ brandIndustry
1064
+ categoryName
1065
+ ludoUrl
1066
+ projectUrl
1067
+ activeFrom
1068
+ activeUntil
1069
+ media
1070
+ reportLink
1071
+ shareLink
1072
+ }
1073
+ otherOpportunities {
1074
+ opportunityId
1075
+ brandId
1076
+ categoryId
1077
+ opportunityStatus
1078
+ opportunityType
1079
+ notificationType
1080
+ name
1081
+ description
1082
+ brandName
1083
+ brandDescription
1084
+ brandMedia
1085
+ brandUrl
1086
+ brandIndustry
1087
+ categoryName
1088
+ ludoUrl
1089
+ projectUrl
1090
+ activeFrom
1091
+ activeUntil
1092
+ media
1093
+ reportLink
1094
+ shareLink
1095
+ }
1096
+ }
1097
+ }
1098
+ `;
1099
+
1100
+ /**
1101
+ * __useFetchBrandBySlugQuery__
1102
+ *
1103
+ * To run a query within a React component, call `useFetchBrandBySlugQuery` and pass it any options that fit your needs.
1104
+ * When your component renders, `useFetchBrandBySlugQuery` returns an object from Apollo Client that contains loading, error, and data properties
1105
+ * you can use to render your UI.
1106
+ *
1107
+ * @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;
1108
+ *
1109
+ * @example
1110
+ * const { data, loading, error } = useFetchBrandBySlugQuery({
1111
+ * variables: {
1112
+ * slug: // value for 'slug'
1113
+ * },
1114
+ * });
1115
+ */
1116
+ export function useFetchBrandBySlugQuery(baseOptions: Apollo.QueryHookOptions<IFetchBrandBySlugQuery, IFetchBrandBySlugQueryVariables>) {
1117
+ return Apollo.useQuery<IFetchBrandBySlugQuery, IFetchBrandBySlugQueryVariables>(FetchBrandBySlugDocument, baseOptions);
1118
+ }
1119
+ export function useFetchBrandBySlugLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchBrandBySlugQuery, IFetchBrandBySlugQueryVariables>) {
1120
+ return Apollo.useLazyQuery<IFetchBrandBySlugQuery, IFetchBrandBySlugQueryVariables>(FetchBrandBySlugDocument, baseOptions);
1121
+ }
1122
+ export type FetchBrandBySlugQueryHookResult = ReturnType<typeof useFetchBrandBySlugQuery>;
1123
+ export type FetchBrandBySlugLazyQueryHookResult = ReturnType<typeof useFetchBrandBySlugLazyQuery>;
1124
+ export type FetchBrandBySlugQueryResult = Apollo.QueryResult<IFetchBrandBySlugQuery, IFetchBrandBySlugQueryVariables>;
1028
1125
  export const FetchOpportunitiesDocument = gql`
1029
1126
  query FetchOpportunities($domain: String) {
1030
1127
  fetchOpportunities(domain: $domain) {
@@ -1180,91 +1277,6 @@ export function useFetchOpportunityLazyQuery(baseOptions?: Apollo.LazyQueryHookO
1180
1277
  export type FetchOpportunityQueryHookResult = ReturnType<typeof useFetchOpportunityQuery>;
1181
1278
  export type FetchOpportunityLazyQueryHookResult = ReturnType<typeof useFetchOpportunityLazyQuery>;
1182
1279
  export type FetchOpportunityQueryResult = Apollo.QueryResult<IFetchOpportunityQuery, IFetchOpportunityQueryVariables>;
1183
- export const FetchOpportunityBySlugDocument = gql`
1184
- query FetchOpportunityBySlug($slug: String!) {
1185
- fetchOpportunityBySlug(slug: $slug) {
1186
- opportunityId
1187
- brandId
1188
- categoryId
1189
- opportunityStatus
1190
- opportunityType
1191
- notificationType
1192
- name
1193
- description
1194
- brandName
1195
- subscribed
1196
- brandDescription
1197
- brandMedia
1198
- brandUrl
1199
- brandIndustry
1200
- categoryName
1201
- ludoUrl
1202
- projectUrl
1203
- activeFrom
1204
- activeUntil
1205
- minXpLevel
1206
- maxXpLevel
1207
- minRank
1208
- maxRank
1209
- media
1210
- reportLink
1211
- clicks
1212
- views
1213
- blockchain
1214
- blockchains
1215
- collection
1216
- createdAt
1217
- minWalletValue
1218
- maxWalletValue
1219
- shareLink
1220
- liked
1221
- geolocations
1222
- brand {
1223
- brandId
1224
- name
1225
- description
1226
- industry
1227
- link
1228
- media
1229
- archived
1230
- addedBy
1231
- matchingWords
1232
- discord
1233
- telegram
1234
- twitter
1235
- facebook
1236
- linkedin
1237
- youtube
1238
- }
1239
- }
1240
- }
1241
- `;
1242
-
1243
- /**
1244
- * __useFetchOpportunityBySlugQuery__
1245
- *
1246
- * To run a query within a React component, call `useFetchOpportunityBySlugQuery` and pass it any options that fit your needs.
1247
- * When your component renders, `useFetchOpportunityBySlugQuery` returns an object from Apollo Client that contains loading, error, and data properties
1248
- * you can use to render your UI.
1249
- *
1250
- * @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;
1251
- *
1252
- * @example
1253
- * const { data, loading, error } = useFetchOpportunityBySlugQuery({
1254
- * variables: {
1255
- * slug: // value for 'slug'
1256
- * },
1257
- * });
1258
- */
1259
- export function useFetchOpportunityBySlugQuery(baseOptions: Apollo.QueryHookOptions<IFetchOpportunityBySlugQuery, IFetchOpportunityBySlugQueryVariables>) {
1260
- return Apollo.useQuery<IFetchOpportunityBySlugQuery, IFetchOpportunityBySlugQueryVariables>(FetchOpportunityBySlugDocument, baseOptions);
1261
- }
1262
- export function useFetchOpportunityBySlugLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchOpportunityBySlugQuery, IFetchOpportunityBySlugQueryVariables>) {
1263
- return Apollo.useLazyQuery<IFetchOpportunityBySlugQuery, IFetchOpportunityBySlugQueryVariables>(FetchOpportunityBySlugDocument, baseOptions);
1264
- }
1265
- export type FetchOpportunityBySlugQueryHookResult = ReturnType<typeof useFetchOpportunityBySlugQuery>;
1266
- export type FetchOpportunityBySlugLazyQueryHookResult = ReturnType<typeof useFetchOpportunityBySlugLazyQuery>;
1267
- export type FetchOpportunityBySlugQueryResult = Apollo.QueryResult<IFetchOpportunityBySlugQuery, IFetchOpportunityBySlugQueryVariables>;
1268
1280
  export const FetchProfileOpportunitiesDocument = gql`
1269
1281
  query FetchProfileOpportunities {
1270
1282
  fetchProfileOpportunities {