@ludo.ninja/api 3.0.28 → 3.0.30

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.
@@ -41,6 +41,8 @@ export type IBrand = {
41
41
  facebook?: Maybe<Scalars['String']>;
42
42
  linkedin?: Maybe<Scalars['String']>;
43
43
  youtube?: Maybe<Scalars['String']>;
44
+ activeAirdrop?: Maybe<IOpportunityV2>;
45
+ otherOpportunities?: Maybe<Array<Maybe<IOpportunityV2>>>;
44
46
  };
45
47
  export type IBrandInput = {
46
48
  name: Scalars['String'];
@@ -170,6 +172,11 @@ export type IOpportunityInput = {
170
172
  maxWalletValue?: Maybe<Scalars['Float']>;
171
173
  geolocations?: Maybe<Array<Scalars['String']>>;
172
174
  };
175
+ export declare enum IOpportunityType {
176
+ TokenAirdrop = "TOKEN_AIRDROP",
177
+ Marketing = "MARKETING",
178
+ NftMinting = "NFT_MINTING"
179
+ }
173
180
  export type IOpportunityV2 = {
174
181
  opportunityId: Scalars['ID'];
175
182
  brandId: Scalars['String'];
@@ -217,6 +224,7 @@ export type IQuery = {
217
224
  getDummy: Scalars['String'];
218
225
  fetchBrands?: Maybe<Array<Maybe<IBrand>>>;
219
226
  fetchBrand: IBrand;
227
+ fetchBrandBySlug: IBrand;
220
228
  fetchCategories?: Maybe<Array<Maybe<ICategory>>>;
221
229
  fetchCategory: ICategory;
222
230
  fetchOpportunities: IOpportunitiesPage;
@@ -231,6 +239,9 @@ export type IQuery = {
231
239
  export type IQueryFetchBrandArgs = {
232
240
  brandId: Scalars['ID'];
233
241
  };
242
+ export type IQueryFetchBrandBySlugArgs = {
243
+ slug: Scalars['String'];
244
+ };
234
245
  export type IQueryFetchCategoryArgs = {
235
246
  categoryId: Scalars['ID'];
236
247
  };
@@ -292,6 +303,7 @@ export type IResolversTypes = {
292
303
  Int: ResolverTypeWrapper<Scalars['Int']>;
293
304
  OpportunityInput: IOpportunityInput;
294
305
  Float: ResolverTypeWrapper<Scalars['Float']>;
306
+ OpportunityType: IOpportunityType;
295
307
  OpportunityV2: ResolverTypeWrapper<IOpportunityV2>;
296
308
  ProfileOpportunities: ResolverTypeWrapper<IProfileOpportunities>;
297
309
  Query: ResolverTypeWrapper<{}>;
@@ -334,6 +346,8 @@ export type IBrandResolvers<ContextType = any, ParentType extends IResolversPare
334
346
  facebook?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
335
347
  linkedin?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
336
348
  youtube?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
349
+ activeAirdrop?: Resolver<Maybe<IResolversTypes['OpportunityV2']>, ParentType, ContextType>;
350
+ otherOpportunities?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType>;
337
351
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
338
352
  };
339
353
  export type ICategoryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Category'] = IResolversParentTypes['Category']> = {
@@ -444,6 +458,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
444
458
  getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
445
459
  fetchBrands?: Resolver<Maybe<Array<Maybe<IResolversTypes['Brand']>>>, ParentType, ContextType>;
446
460
  fetchBrand?: Resolver<IResolversTypes['Brand'], ParentType, ContextType, RequireFields<IQueryFetchBrandArgs, 'brandId'>>;
461
+ fetchBrandBySlug?: Resolver<IResolversTypes['Brand'], ParentType, ContextType, RequireFields<IQueryFetchBrandBySlugArgs, 'slug'>>;
447
462
  fetchCategories?: Resolver<Maybe<Array<Maybe<IResolversTypes['Category']>>>, ParentType, ContextType>;
448
463
  fetchCategory?: Resolver<IResolversTypes['Category'], ParentType, ContextType, RequireFields<IQueryFetchCategoryArgs, 'categoryId'>>;
449
464
  fetchOpportunities?: Resolver<IResolversTypes['OpportunitiesPage'], ParentType, ContextType, Partial<IQueryFetchOpportunitiesArgs>>;
@@ -511,6 +526,15 @@ export type IFetchOpportunitiesForProfileQueryVariables = Exact<{
511
526
  export type IFetchOpportunitiesForProfileQuery = {
512
527
  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'>>>;
513
528
  };
529
+ export type IFetchBrandBySlugQueryVariables = Exact<{
530
+ slug: Scalars['String'];
531
+ }>;
532
+ export type IFetchBrandBySlugQuery = {
533
+ fetchBrandBySlug: (Pick<IBrand, 'brandId' | 'name' | 'description' | 'industry' | 'link' | 'media' | 'archived' | 'addedBy' | 'matchingWords' | 'discord' | 'telegram' | 'twitter' | 'facebook' | 'linkedin' | 'youtube'> & {
534
+ 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'>>;
535
+ 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'>>>>;
536
+ });
537
+ };
514
538
  export type IFetchOpportunitiesQueryVariables = Exact<{
515
539
  domain?: Maybe<Scalars['String']>;
516
540
  }>;
@@ -768,6 +792,32 @@ export declare function useFetchOpportunitiesForProfileLazyQuery(baseOptions?: A
768
792
  export type FetchOpportunitiesForProfileQueryHookResult = ReturnType<typeof useFetchOpportunitiesForProfileQuery>;
769
793
  export type FetchOpportunitiesForProfileLazyQueryHookResult = ReturnType<typeof useFetchOpportunitiesForProfileLazyQuery>;
770
794
  export type FetchOpportunitiesForProfileQueryResult = Apollo.QueryResult<IFetchOpportunitiesForProfileQuery, IFetchOpportunitiesForProfileQueryVariables>;
795
+ export declare const FetchBrandBySlugDocument: Apollo.DocumentNode;
796
+ /**
797
+ * __useFetchBrandBySlugQuery__
798
+ *
799
+ * To run a query within a React component, call `useFetchBrandBySlugQuery` and pass it any options that fit your needs.
800
+ * When your component renders, `useFetchBrandBySlugQuery` returns an object from Apollo Client that contains loading, error, and data properties
801
+ * you can use to render your UI.
802
+ *
803
+ * @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;
804
+ *
805
+ * @example
806
+ * const { data, loading, error } = useFetchBrandBySlugQuery({
807
+ * variables: {
808
+ * slug: // value for 'slug'
809
+ * },
810
+ * });
811
+ */
812
+ export declare function useFetchBrandBySlugQuery(baseOptions: Apollo.QueryHookOptions<IFetchBrandBySlugQuery, IFetchBrandBySlugQueryVariables>): Apollo.QueryResult<IFetchBrandBySlugQuery, Exact<{
813
+ slug: string;
814
+ }>>;
815
+ export declare function useFetchBrandBySlugLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchBrandBySlugQuery, IFetchBrandBySlugQueryVariables>): Apollo.LazyQueryResultTuple<IFetchBrandBySlugQuery, Exact<{
816
+ slug: string;
817
+ }>>;
818
+ export type FetchBrandBySlugQueryHookResult = ReturnType<typeof useFetchBrandBySlugQuery>;
819
+ export type FetchBrandBySlugLazyQueryHookResult = ReturnType<typeof useFetchBrandBySlugLazyQuery>;
820
+ export type FetchBrandBySlugQueryResult = Apollo.QueryResult<IFetchBrandBySlugQuery, IFetchBrandBySlugQueryVariables>;
771
821
  export declare const FetchOpportunitiesDocument: Apollo.DocumentNode;
772
822
  /**
773
823
  * __useFetchOpportunitiesQuery__
@@ -23,9 +23,15 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.useFetchProfileOpportunitiesLazyQuery = exports.useFetchProfileOpportunitiesQuery = exports.FetchProfileOpportunitiesDocument = exports.useFetchOpportunityLazyQuery = exports.useFetchOpportunityQuery = exports.FetchOpportunityDocument = exports.useFetchOpportunitiesLazyQuery = exports.useFetchOpportunitiesQuery = exports.FetchOpportunitiesDocument = exports.useFetchOpportunitiesForProfileLazyQuery = exports.useFetchOpportunitiesForProfileQuery = exports.FetchOpportunitiesForProfileDocument = exports.useFetchOpportunitiesByIdsLazyQuery = exports.useFetchOpportunitiesByIdsQuery = exports.FetchOpportunitiesByIdsDocument = exports.useFetchAirdropRegistrationsCsvLazyQuery = exports.useFetchAirdropRegistrationsCsvQuery = exports.FetchAirdropRegistrationsCsvDocument = exports.useRegisterForAirdropMutation = exports.RegisterForAirdropDocument = exports.useOpenOpportunityMutation = exports.OpenOpportunityDocument = exports.useCreateOpportunityMutation = exports.CreateOpportunityDocument = exports.useCopyOpportunityShareLinkMutation = exports.CopyOpportunityShareLinkDocument = exports.useLikeOpportunityMutation = exports.LikeOpportunityDocument = exports.useDislikeOpportunityMutation = exports.DislikeOpportunityDocument = void 0;
26
+ exports.useFetchProfileOpportunitiesLazyQuery = exports.useFetchProfileOpportunitiesQuery = exports.FetchProfileOpportunitiesDocument = exports.useFetchOpportunityLazyQuery = exports.useFetchOpportunityQuery = exports.FetchOpportunityDocument = exports.useFetchOpportunitiesLazyQuery = exports.useFetchOpportunitiesQuery = exports.FetchOpportunitiesDocument = exports.useFetchBrandBySlugLazyQuery = exports.useFetchBrandBySlugQuery = exports.FetchBrandBySlugDocument = exports.useFetchOpportunitiesForProfileLazyQuery = exports.useFetchOpportunitiesForProfileQuery = exports.FetchOpportunitiesForProfileDocument = exports.useFetchOpportunitiesByIdsLazyQuery = exports.useFetchOpportunitiesByIdsQuery = exports.FetchOpportunitiesByIdsDocument = exports.useFetchAirdropRegistrationsCsvLazyQuery = exports.useFetchAirdropRegistrationsCsvQuery = exports.FetchAirdropRegistrationsCsvDocument = exports.useRegisterForAirdropMutation = exports.RegisterForAirdropDocument = exports.useOpenOpportunityMutation = exports.OpenOpportunityDocument = exports.useCreateOpportunityMutation = exports.CreateOpportunityDocument = exports.useCopyOpportunityShareLinkMutation = exports.CopyOpportunityShareLinkDocument = exports.useLikeOpportunityMutation = exports.LikeOpportunityDocument = exports.useDislikeOpportunityMutation = exports.DislikeOpportunityDocument = exports.IOpportunityType = void 0;
27
27
  const client_1 = require("@apollo/client");
28
28
  const Apollo = __importStar(require("@apollo/client"));
29
+ var IOpportunityType;
30
+ (function (IOpportunityType) {
31
+ IOpportunityType["TokenAirdrop"] = "TOKEN_AIRDROP";
32
+ IOpportunityType["Marketing"] = "MARKETING";
33
+ IOpportunityType["NftMinting"] = "NFT_MINTING";
34
+ })(IOpportunityType || (exports.IOpportunityType = IOpportunityType = {}));
29
35
  exports.DislikeOpportunityDocument = (0, client_1.gql) `
30
36
  mutation DislikeOpportunity($opportunityId: String!) {
31
37
  dislikeOpportunity(opportunityId: $opportunityId)
@@ -342,6 +348,97 @@ function useFetchOpportunitiesForProfileLazyQuery(baseOptions) {
342
348
  return Apollo.useLazyQuery(exports.FetchOpportunitiesForProfileDocument, baseOptions);
343
349
  }
344
350
  exports.useFetchOpportunitiesForProfileLazyQuery = useFetchOpportunitiesForProfileLazyQuery;
351
+ exports.FetchBrandBySlugDocument = (0, client_1.gql) `
352
+ query FetchBrandBySlug($slug: String!) {
353
+ fetchBrandBySlug(slug: $slug) {
354
+ brandId
355
+ name
356
+ description
357
+ industry
358
+ link
359
+ media
360
+ archived
361
+ addedBy
362
+ matchingWords
363
+ discord
364
+ telegram
365
+ twitter
366
+ facebook
367
+ linkedin
368
+ youtube
369
+ activeAirdrop {
370
+ opportunityId
371
+ brandId
372
+ categoryId
373
+ opportunityStatus
374
+ opportunityType
375
+ notificationType
376
+ name
377
+ description
378
+ brandName
379
+ brandDescription
380
+ brandMedia
381
+ brandUrl
382
+ brandIndustry
383
+ categoryName
384
+ ludoUrl
385
+ projectUrl
386
+ activeFrom
387
+ activeUntil
388
+ media
389
+ reportLink
390
+ shareLink
391
+ }
392
+ otherOpportunities {
393
+ opportunityId
394
+ brandId
395
+ categoryId
396
+ opportunityStatus
397
+ opportunityType
398
+ notificationType
399
+ name
400
+ description
401
+ brandName
402
+ brandDescription
403
+ brandMedia
404
+ brandUrl
405
+ brandIndustry
406
+ categoryName
407
+ ludoUrl
408
+ projectUrl
409
+ activeFrom
410
+ activeUntil
411
+ media
412
+ reportLink
413
+ shareLink
414
+ }
415
+ }
416
+ }
417
+ `;
418
+ /**
419
+ * __useFetchBrandBySlugQuery__
420
+ *
421
+ * To run a query within a React component, call `useFetchBrandBySlugQuery` and pass it any options that fit your needs.
422
+ * When your component renders, `useFetchBrandBySlugQuery` returns an object from Apollo Client that contains loading, error, and data properties
423
+ * you can use to render your UI.
424
+ *
425
+ * @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;
426
+ *
427
+ * @example
428
+ * const { data, loading, error } = useFetchBrandBySlugQuery({
429
+ * variables: {
430
+ * slug: // value for 'slug'
431
+ * },
432
+ * });
433
+ */
434
+ function useFetchBrandBySlugQuery(baseOptions) {
435
+ return Apollo.useQuery(exports.FetchBrandBySlugDocument, baseOptions);
436
+ }
437
+ exports.useFetchBrandBySlugQuery = useFetchBrandBySlugQuery;
438
+ function useFetchBrandBySlugLazyQuery(baseOptions) {
439
+ return Apollo.useLazyQuery(exports.FetchBrandBySlugDocument, baseOptions);
440
+ }
441
+ exports.useFetchBrandBySlugLazyQuery = useFetchBrandBySlugLazyQuery;
345
442
  exports.FetchOpportunitiesDocument = (0, client_1.gql) `
346
443
  query FetchOpportunities($domain: String) {
347
444
  fetchOpportunities(domain: $domain) {
package/build/index.d.ts CHANGED
@@ -624,6 +624,16 @@ declare const schema: {
624
624
  }>> | undefined): import("@apollo/client").LazyQueryResultTuple<opportunitiesSchema.IFetchOpportunitiesForProfileQuery, opportunitiesSchema.Exact<{
625
625
  [key: string]: never;
626
626
  }>>;
627
+ useFetchBrandBySlugQuery(baseOptions: import("@apollo/client").QueryHookOptions<opportunitiesSchema.IFetchBrandBySlugQuery, opportunitiesSchema.Exact<{
628
+ slug: string;
629
+ }>>): import("@apollo/client").QueryResult<opportunitiesSchema.IFetchBrandBySlugQuery, opportunitiesSchema.Exact<{
630
+ slug: string;
631
+ }>>;
632
+ useFetchBrandBySlugLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<opportunitiesSchema.IFetchBrandBySlugQuery, opportunitiesSchema.Exact<{
633
+ slug: string;
634
+ }>> | undefined): import("@apollo/client").LazyQueryResultTuple<opportunitiesSchema.IFetchBrandBySlugQuery, opportunitiesSchema.Exact<{
635
+ slug: string;
636
+ }>>;
627
637
  useFetchOpportunitiesQuery(baseOptions?: import("@apollo/client").QueryHookOptions<opportunitiesSchema.IFetchOpportunitiesQuery, opportunitiesSchema.Exact<{
628
638
  domain?: opportunitiesSchema.Maybe<string> | undefined;
629
639
  }>> | undefined): import("@apollo/client").QueryResult<opportunitiesSchema.IFetchOpportunitiesQuery, opportunitiesSchema.Exact<{
@@ -654,6 +664,7 @@ declare const schema: {
654
664
  }>> | undefined): import("@apollo/client").LazyQueryResultTuple<opportunitiesSchema.IFetchProfileOpportunitiesQuery, opportunitiesSchema.Exact<{
655
665
  [key: string]: never;
656
666
  }>>;
667
+ IOpportunityType: typeof opportunitiesSchema.IOpportunityType;
657
668
  DislikeOpportunityDocument: import("graphql").DocumentNode;
658
669
  LikeOpportunityDocument: import("graphql").DocumentNode;
659
670
  CopyOpportunityShareLinkDocument: import("graphql").DocumentNode;
@@ -663,6 +674,7 @@ declare const schema: {
663
674
  FetchAirdropRegistrationsCsvDocument: import("graphql").DocumentNode;
664
675
  FetchOpportunitiesByIdsDocument: import("graphql").DocumentNode;
665
676
  FetchOpportunitiesForProfileDocument: import("graphql").DocumentNode;
677
+ FetchBrandBySlugDocument: import("graphql").DocumentNode;
666
678
  FetchOpportunitiesDocument: import("graphql").DocumentNode;
667
679
  FetchOpportunityDocument: import("graphql").DocumentNode;
668
680
  FetchProfileOpportunitiesDocument: import("graphql").DocumentNode;
@@ -1918,7 +1930,6 @@ declare const schema: {
1918
1930
  IDevicePlatform: typeof adminSchema.IDevicePlatform;
1919
1931
  ILocationType: typeof adminSchema.ILocationType;
1920
1932
  INotificationDestination: typeof adminSchema.INotificationDestination;
1921
- IOpportunityType: typeof adminSchema.IOpportunityType;
1922
1933
  CreateReferralTypeDocument: import("graphql").DocumentNode;
1923
1934
  CreateTierDocument: import("graphql").DocumentNode;
1924
1935
  TriggerOpportunityNotificationDocument: import("graphql").DocumentNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludo.ninja/api",
3
- "version": "3.0.28",
3
+ "version": "3.0.30",
4
4
  "main": "./build/index.js",
5
5
  "scripts": {
6
6
  "test": "jest",
@@ -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 = {
@@ -197,6 +199,12 @@ export type IOpportunityInput = {
197
199
  geolocations?: Maybe<Array<Scalars['String']>>;
198
200
  };
199
201
 
202
+ export enum IOpportunityType {
203
+ TokenAirdrop = 'TOKEN_AIRDROP',
204
+ Marketing = 'MARKETING',
205
+ NftMinting = 'NFT_MINTING'
206
+ }
207
+
200
208
  export type IOpportunityV2 = {
201
209
  opportunityId: Scalars['ID'];
202
210
  brandId: Scalars['String'];
@@ -246,6 +254,7 @@ export type IQuery = {
246
254
  getDummy: Scalars['String'];
247
255
  fetchBrands?: Maybe<Array<Maybe<IBrand>>>;
248
256
  fetchBrand: IBrand;
257
+ fetchBrandBySlug: IBrand;
249
258
  fetchCategories?: Maybe<Array<Maybe<ICategory>>>;
250
259
  fetchCategory: ICategory;
251
260
  fetchOpportunities: IOpportunitiesPage;
@@ -264,6 +273,11 @@ export type IQueryFetchBrandArgs = {
264
273
  };
265
274
 
266
275
 
276
+ export type IQueryFetchBrandBySlugArgs = {
277
+ slug: Scalars['String'];
278
+ };
279
+
280
+
267
281
  export type IQueryFetchCategoryArgs = {
268
282
  categoryId: Scalars['ID'];
269
283
  };
@@ -377,6 +391,7 @@ export type IResolversTypes = {
377
391
  Int: ResolverTypeWrapper<Scalars['Int']>;
378
392
  OpportunityInput: IOpportunityInput;
379
393
  Float: ResolverTypeWrapper<Scalars['Float']>;
394
+ OpportunityType: IOpportunityType;
380
395
  OpportunityV2: ResolverTypeWrapper<IOpportunityV2>;
381
396
  ProfileOpportunities: ResolverTypeWrapper<IProfileOpportunities>;
382
397
  Query: ResolverTypeWrapper<{}>;
@@ -423,6 +438,8 @@ export type IBrandResolvers<ContextType = any, ParentType extends IResolversPare
423
438
  facebook?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
424
439
  linkedin?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
425
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>;
426
443
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
427
444
  };
428
445
 
@@ -541,6 +558,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
541
558
  getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
542
559
  fetchBrands?: Resolver<Maybe<Array<Maybe<IResolversTypes['Brand']>>>, ParentType, ContextType>;
543
560
  fetchBrand?: Resolver<IResolversTypes['Brand'], ParentType, ContextType, RequireFields<IQueryFetchBrandArgs, 'brandId'>>;
561
+ fetchBrandBySlug?: Resolver<IResolversTypes['Brand'], ParentType, ContextType, RequireFields<IQueryFetchBrandBySlugArgs, 'slug'>>;
544
562
  fetchCategories?: Resolver<Maybe<Array<Maybe<IResolversTypes['Category']>>>, ParentType, ContextType>;
545
563
  fetchCategory?: Resolver<IResolversTypes['Category'], ParentType, ContextType, RequireFields<IQueryFetchCategoryArgs, 'categoryId'>>;
546
564
  fetchOpportunities?: Resolver<IResolversTypes['OpportunitiesPage'], ParentType, ContextType, Partial<IQueryFetchOpportunitiesArgs>>;
@@ -632,6 +650,16 @@ export type IFetchOpportunitiesForProfileQueryVariables = Exact<{ [key: string]:
632
650
 
633
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'>>> };
634
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
+
635
663
  export type IFetchOpportunitiesQueryVariables = Exact<{
636
664
  domain?: Maybe<Scalars['String']>;
637
665
  }>;
@@ -1001,6 +1029,99 @@ export function useFetchOpportunitiesForProfileLazyQuery(baseOptions?: Apollo.La
1001
1029
  export type FetchOpportunitiesForProfileQueryHookResult = ReturnType<typeof useFetchOpportunitiesForProfileQuery>;
1002
1030
  export type FetchOpportunitiesForProfileLazyQueryHookResult = ReturnType<typeof useFetchOpportunitiesForProfileLazyQuery>;
1003
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>;
1004
1125
  export const FetchOpportunitiesDocument = gql`
1005
1126
  query FetchOpportunities($domain: String) {
1006
1127
  fetchOpportunities(domain: $domain) {