@ludo.ninja/api 3.0.27 → 3.0.29

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.
@@ -52,6 +52,7 @@ export type IAdminBrand = {
52
52
  linkedin?: Maybe<Scalars['String']>;
53
53
  youtube?: Maybe<Scalars['String']>;
54
54
  referralLinks?: Maybe<Array<Maybe<IReferralLink>>>;
55
+ slug?: Maybe<Scalars['String']>;
55
56
  };
56
57
  export type IAdminCategory = {
57
58
  id: Scalars['String'];
@@ -141,7 +142,6 @@ export type IAdminOpportunity = {
141
142
  notificationDestinations?: Maybe<Array<INotificationDestination>>;
142
143
  type: IOpportunityType;
143
144
  devicePlatforms?: Maybe<Array<IDevicePlatform>>;
144
- slug?: Maybe<Scalars['String']>;
145
145
  };
146
146
  export type IAdminOpportunityInput = {
147
147
  brandId: Scalars['String'];
@@ -169,7 +169,6 @@ export type IAdminOpportunityInput = {
169
169
  notificationDestinations?: Maybe<Array<INotificationDestination>>;
170
170
  type: IOpportunityType;
171
171
  devicePlatforms?: Maybe<Array<IDevicePlatform>>;
172
- slug?: Maybe<Scalars['String']>;
173
172
  };
174
173
  export type IAdminPage = {
175
174
  num?: Maybe<Scalars['Int']>;
@@ -243,6 +242,7 @@ export type IBrandInput = {
243
242
  facebook?: Maybe<Scalars['String']>;
244
243
  linkedin?: Maybe<Scalars['String']>;
245
244
  youtube?: Maybe<Scalars['String']>;
245
+ slug?: Maybe<Scalars['String']>;
246
246
  };
247
247
  export type IBrandsFilterInput = {
248
248
  nameTerm?: Maybe<Scalars['String']>;
@@ -1174,6 +1174,7 @@ export type IAdminBrandResolvers<ContextType = any, ParentType extends IResolver
1174
1174
  linkedin?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1175
1175
  youtube?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1176
1176
  referralLinks?: Resolver<Maybe<Array<Maybe<IResolversTypes['ReferralLink']>>>, ParentType, ContextType>;
1177
+ slug?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1177
1178
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1178
1179
  };
1179
1180
  export type IAdminCategoryResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminCategory'] = IResolversParentTypes['AdminCategory']> = {
@@ -1270,7 +1271,6 @@ export type IAdminOpportunityResolvers<ContextType = any, ParentType extends IRe
1270
1271
  notificationDestinations?: Resolver<Maybe<Array<IResolversTypes['NotificationDestination']>>, ParentType, ContextType>;
1271
1272
  type?: Resolver<IResolversTypes['OpportunityType'], ParentType, ContextType>;
1272
1273
  devicePlatforms?: Resolver<Maybe<Array<IResolversTypes['DevicePlatform']>>, ParentType, ContextType>;
1273
- slug?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1274
1274
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1275
1275
  };
1276
1276
  export type IAdminPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminPage'] = IResolversParentTypes['AdminPage']> = {
@@ -1839,7 +1839,7 @@ export type IFetchAdminBrandsPageQueryVariables = Exact<{
1839
1839
  }>;
1840
1840
  export type IFetchAdminBrandsPageQuery = {
1841
1841
  fetchAdminBrandsPage: {
1842
- brands: Array<(Pick<IAdminBrand, 'description' | 'id' | 'industry' | 'link' | 'matchingWords' | 'media' | 'name' | 'archived' | 'addedBy' | 'discord' | 'telegram' | 'twitter' | 'facebook' | 'linkedin' | 'youtube'> & {
1842
+ brands: Array<(Pick<IAdminBrand, 'description' | 'id' | 'industry' | 'link' | 'matchingWords' | 'media' | 'name' | 'archived' | 'addedBy' | 'discord' | 'telegram' | 'twitter' | 'facebook' | 'linkedin' | 'youtube' | 'slug'> & {
1843
1843
  referralLinks?: Maybe<Array<Maybe<Pick<IReferralLink, 'referralUrl' | 'numOfReferredIps' | 'numOfReferredUsers' | 'refcode' | 'reftypeId' | 'reftypeName' | 'reftypeColor' | 'maxUsagesLimit'>>>>;
1844
1844
  })>;
1845
1845
  nextPage?: Maybe<Pick<IAdminPage, 'num' | 'lastNum' | 'size' | 'elements'>>;
@@ -1266,6 +1266,7 @@ exports.FetchAdminBrandsPageDocument = (0, client_1.gql) `
1266
1266
  reftypeColor
1267
1267
  maxUsagesLimit
1268
1268
  }
1269
+ slug
1269
1270
  }
1270
1271
  nextPage {
1271
1272
  num
@@ -170,6 +170,11 @@ export type IOpportunityInput = {
170
170
  maxWalletValue?: Maybe<Scalars['Float']>;
171
171
  geolocations?: Maybe<Array<Scalars['String']>>;
172
172
  };
173
+ export declare enum IOpportunityType {
174
+ TokenAirdrop = "TOKEN_AIRDROP",
175
+ Marketing = "MARKETING",
176
+ NftMinting = "NFT_MINTING"
177
+ }
173
178
  export type IOpportunityV2 = {
174
179
  opportunityId: Scalars['ID'];
175
180
  brandId: Scalars['String'];
@@ -224,6 +229,7 @@ export type IQuery = {
224
229
  fetchOpportunitiesForProfile: Array<Maybe<IOpportunityV2>>;
225
230
  fetchProfileOpportunities: IProfileOpportunities;
226
231
  fetchOpportunity: IOpportunityV2;
232
+ fetchOpportunityBySlug: IOpportunityV2;
227
233
  fetchOpportunitiesByIds: Array<IOpportunityV2>;
228
234
  fetchOpportunitiesForWallet?: Maybe<Array<Maybe<IOpportunityV2>>>;
229
235
  fetchAirdropRegistrationsCsv: Scalars['String'];
@@ -240,6 +246,9 @@ export type IQueryFetchOpportunitiesArgs = {
240
246
  export type IQueryFetchOpportunityArgs = {
241
247
  opportunityId: Scalars['ID'];
242
248
  };
249
+ export type IQueryFetchOpportunityBySlugArgs = {
250
+ slug: Scalars['String'];
251
+ };
243
252
  export type IQueryFetchOpportunitiesByIdsArgs = {
244
253
  opportunityIds: Array<Scalars['ID']>;
245
254
  };
@@ -292,6 +301,7 @@ export type IResolversTypes = {
292
301
  Int: ResolverTypeWrapper<Scalars['Int']>;
293
302
  OpportunityInput: IOpportunityInput;
294
303
  Float: ResolverTypeWrapper<Scalars['Float']>;
304
+ OpportunityType: IOpportunityType;
295
305
  OpportunityV2: ResolverTypeWrapper<IOpportunityV2>;
296
306
  ProfileOpportunities: ResolverTypeWrapper<IProfileOpportunities>;
297
307
  Query: ResolverTypeWrapper<{}>;
@@ -451,6 +461,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
451
461
  fetchOpportunitiesForProfile?: Resolver<Array<Maybe<IResolversTypes['OpportunityV2']>>, ParentType, ContextType>;
452
462
  fetchProfileOpportunities?: Resolver<IResolversTypes['ProfileOpportunities'], ParentType, ContextType>;
453
463
  fetchOpportunity?: Resolver<IResolversTypes['OpportunityV2'], ParentType, ContextType, RequireFields<IQueryFetchOpportunityArgs, 'opportunityId'>>;
464
+ fetchOpportunityBySlug?: Resolver<IResolversTypes['OpportunityV2'], ParentType, ContextType, RequireFields<IQueryFetchOpportunityBySlugArgs, 'slug'>>;
454
465
  fetchOpportunitiesByIds?: Resolver<Array<IResolversTypes['OpportunityV2']>, ParentType, ContextType, RequireFields<IQueryFetchOpportunitiesByIdsArgs, 'opportunityIds'>>;
455
466
  fetchOpportunitiesForWallet?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType, RequireFields<IQueryFetchOpportunitiesForWalletArgs, 'blockchain' | 'wallet'>>;
456
467
  fetchAirdropRegistrationsCsv?: Resolver<IResolversTypes['String'], ParentType, ContextType, RequireFields<IQueryFetchAirdropRegistrationsCsvArgs, 'opportunityId'>>;
@@ -528,6 +539,14 @@ export type IFetchOpportunityQuery = {
528
539
  brand: Pick<IBrand, 'brandId' | 'name' | 'description' | 'industry' | 'link' | 'media' | 'archived' | 'addedBy' | 'matchingWords' | 'discord' | 'telegram' | 'twitter' | 'facebook' | 'linkedin' | 'youtube'>;
529
540
  });
530
541
  };
542
+ export type IFetchOpportunityBySlugQueryVariables = Exact<{
543
+ slug: Scalars['String'];
544
+ }>;
545
+ export type IFetchOpportunityBySlugQuery = {
546
+ fetchOpportunityBySlug: (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'> & {
547
+ brand: Pick<IBrand, 'brandId' | 'name' | 'description' | 'industry' | 'link' | 'media' | 'archived' | 'addedBy' | 'matchingWords' | 'discord' | 'telegram' | 'twitter' | 'facebook' | 'linkedin' | 'youtube'>;
548
+ });
549
+ };
531
550
  export type IFetchProfileOpportunitiesQueryVariables = Exact<{
532
551
  [key: string]: never;
533
552
  }>;
@@ -820,6 +839,32 @@ export declare function useFetchOpportunityLazyQuery(baseOptions?: Apollo.LazyQu
820
839
  export type FetchOpportunityQueryHookResult = ReturnType<typeof useFetchOpportunityQuery>;
821
840
  export type FetchOpportunityLazyQueryHookResult = ReturnType<typeof useFetchOpportunityLazyQuery>;
822
841
  export type FetchOpportunityQueryResult = Apollo.QueryResult<IFetchOpportunityQuery, IFetchOpportunityQueryVariables>;
842
+ export declare const FetchOpportunityBySlugDocument: Apollo.DocumentNode;
843
+ /**
844
+ * __useFetchOpportunityBySlugQuery__
845
+ *
846
+ * To run a query within a React component, call `useFetchOpportunityBySlugQuery` and pass it any options that fit your needs.
847
+ * When your component renders, `useFetchOpportunityBySlugQuery` returns an object from Apollo Client that contains loading, error, and data properties
848
+ * you can use to render your UI.
849
+ *
850
+ * @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;
851
+ *
852
+ * @example
853
+ * const { data, loading, error } = useFetchOpportunityBySlugQuery({
854
+ * variables: {
855
+ * slug: // value for 'slug'
856
+ * },
857
+ * });
858
+ */
859
+ export declare function useFetchOpportunityBySlugQuery(baseOptions: Apollo.QueryHookOptions<IFetchOpportunityBySlugQuery, IFetchOpportunityBySlugQueryVariables>): Apollo.QueryResult<IFetchOpportunityBySlugQuery, Exact<{
860
+ slug: string;
861
+ }>>;
862
+ export declare function useFetchOpportunityBySlugLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchOpportunityBySlugQuery, IFetchOpportunityBySlugQueryVariables>): Apollo.LazyQueryResultTuple<IFetchOpportunityBySlugQuery, Exact<{
863
+ slug: string;
864
+ }>>;
865
+ export type FetchOpportunityBySlugQueryHookResult = ReturnType<typeof useFetchOpportunityBySlugQuery>;
866
+ export type FetchOpportunityBySlugLazyQueryHookResult = ReturnType<typeof useFetchOpportunityBySlugLazyQuery>;
867
+ export type FetchOpportunityBySlugQueryResult = Apollo.QueryResult<IFetchOpportunityBySlugQuery, IFetchOpportunityBySlugQueryVariables>;
823
868
  export declare const FetchProfileOpportunitiesDocument: Apollo.DocumentNode;
824
869
  /**
825
870
  * __useFetchProfileOpportunitiesQuery__
@@ -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.useFetchOpportunityBySlugLazyQuery = exports.useFetchOpportunityBySlugQuery = exports.FetchOpportunityBySlugDocument = 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 = 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)
@@ -493,6 +499,89 @@ function useFetchOpportunityLazyQuery(baseOptions) {
493
499
  return Apollo.useLazyQuery(exports.FetchOpportunityDocument, baseOptions);
494
500
  }
495
501
  exports.useFetchOpportunityLazyQuery = useFetchOpportunityLazyQuery;
502
+ exports.FetchOpportunityBySlugDocument = (0, client_1.gql) `
503
+ query FetchOpportunityBySlug($slug: String!) {
504
+ fetchOpportunityBySlug(slug: $slug) {
505
+ opportunityId
506
+ brandId
507
+ categoryId
508
+ opportunityStatus
509
+ opportunityType
510
+ notificationType
511
+ name
512
+ description
513
+ brandName
514
+ subscribed
515
+ brandDescription
516
+ brandMedia
517
+ brandUrl
518
+ brandIndustry
519
+ categoryName
520
+ ludoUrl
521
+ projectUrl
522
+ activeFrom
523
+ activeUntil
524
+ minXpLevel
525
+ maxXpLevel
526
+ minRank
527
+ maxRank
528
+ media
529
+ reportLink
530
+ clicks
531
+ views
532
+ blockchain
533
+ blockchains
534
+ collection
535
+ createdAt
536
+ minWalletValue
537
+ maxWalletValue
538
+ shareLink
539
+ liked
540
+ geolocations
541
+ brand {
542
+ brandId
543
+ name
544
+ description
545
+ industry
546
+ link
547
+ media
548
+ archived
549
+ addedBy
550
+ matchingWords
551
+ discord
552
+ telegram
553
+ twitter
554
+ facebook
555
+ linkedin
556
+ youtube
557
+ }
558
+ }
559
+ }
560
+ `;
561
+ /**
562
+ * __useFetchOpportunityBySlugQuery__
563
+ *
564
+ * To run a query within a React component, call `useFetchOpportunityBySlugQuery` and pass it any options that fit your needs.
565
+ * When your component renders, `useFetchOpportunityBySlugQuery` returns an object from Apollo Client that contains loading, error, and data properties
566
+ * you can use to render your UI.
567
+ *
568
+ * @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;
569
+ *
570
+ * @example
571
+ * const { data, loading, error } = useFetchOpportunityBySlugQuery({
572
+ * variables: {
573
+ * slug: // value for 'slug'
574
+ * },
575
+ * });
576
+ */
577
+ function useFetchOpportunityBySlugQuery(baseOptions) {
578
+ return Apollo.useQuery(exports.FetchOpportunityBySlugDocument, baseOptions);
579
+ }
580
+ exports.useFetchOpportunityBySlugQuery = useFetchOpportunityBySlugQuery;
581
+ function useFetchOpportunityBySlugLazyQuery(baseOptions) {
582
+ return Apollo.useLazyQuery(exports.FetchOpportunityBySlugDocument, baseOptions);
583
+ }
584
+ exports.useFetchOpportunityBySlugLazyQuery = useFetchOpportunityBySlugLazyQuery;
496
585
  exports.FetchProfileOpportunitiesDocument = (0, client_1.gql) `
497
586
  query FetchProfileOpportunities {
498
587
  fetchProfileOpportunities {
package/build/index.d.ts CHANGED
@@ -644,6 +644,16 @@ declare const schema: {
644
644
  }>> | undefined): import("@apollo/client").LazyQueryResultTuple<opportunitiesSchema.IFetchOpportunityQuery, opportunitiesSchema.Exact<{
645
645
  opportunityId: string;
646
646
  }>>;
647
+ useFetchOpportunityBySlugQuery(baseOptions: import("@apollo/client").QueryHookOptions<opportunitiesSchema.IFetchOpportunityBySlugQuery, opportunitiesSchema.Exact<{
648
+ slug: string;
649
+ }>>): import("@apollo/client").QueryResult<opportunitiesSchema.IFetchOpportunityBySlugQuery, opportunitiesSchema.Exact<{
650
+ slug: string;
651
+ }>>;
652
+ useFetchOpportunityBySlugLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<opportunitiesSchema.IFetchOpportunityBySlugQuery, opportunitiesSchema.Exact<{
653
+ slug: string;
654
+ }>> | undefined): import("@apollo/client").LazyQueryResultTuple<opportunitiesSchema.IFetchOpportunityBySlugQuery, opportunitiesSchema.Exact<{
655
+ slug: string;
656
+ }>>;
647
657
  useFetchProfileOpportunitiesQuery(baseOptions?: import("@apollo/client").QueryHookOptions<opportunitiesSchema.IFetchProfileOpportunitiesQuery, opportunitiesSchema.Exact<{
648
658
  [key: string]: never;
649
659
  }>> | undefined): import("@apollo/client").QueryResult<opportunitiesSchema.IFetchProfileOpportunitiesQuery, 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;
@@ -665,6 +676,7 @@ declare const schema: {
665
676
  FetchOpportunitiesForProfileDocument: import("graphql").DocumentNode;
666
677
  FetchOpportunitiesDocument: import("graphql").DocumentNode;
667
678
  FetchOpportunityDocument: import("graphql").DocumentNode;
679
+ FetchOpportunityBySlugDocument: import("graphql").DocumentNode;
668
680
  FetchProfileOpportunitiesDocument: import("graphql").DocumentNode;
669
681
  useDeleteGalleryBannerMutation(baseOptions?: import("@apollo/client").MutationHookOptions<mediasSchema.IDeleteGalleryBannerMutation, mediasSchema.Exact<{
670
682
  galleryId: string;
@@ -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.27",
3
+ "version": "3.0.29",
4
4
  "main": "./build/index.js",
5
5
  "scripts": {
6
6
  "test": "jest",
@@ -49,6 +49,7 @@ export type IAdminBrand = {
49
49
  linkedin?: Maybe<Scalars['String']>;
50
50
  youtube?: Maybe<Scalars['String']>;
51
51
  referralLinks?: Maybe<Array<Maybe<IReferralLink>>>;
52
+ slug?: Maybe<Scalars['String']>;
52
53
  };
53
54
 
54
55
  export type IAdminCategory = {
@@ -145,7 +146,6 @@ export type IAdminOpportunity = {
145
146
  notificationDestinations?: Maybe<Array<INotificationDestination>>;
146
147
  type: IOpportunityType;
147
148
  devicePlatforms?: Maybe<Array<IDevicePlatform>>;
148
- slug?: Maybe<Scalars['String']>;
149
149
  };
150
150
 
151
151
  export type IAdminOpportunityInput = {
@@ -174,7 +174,6 @@ export type IAdminOpportunityInput = {
174
174
  notificationDestinations?: Maybe<Array<INotificationDestination>>;
175
175
  type: IOpportunityType;
176
176
  devicePlatforms?: Maybe<Array<IDevicePlatform>>;
177
- slug?: Maybe<Scalars['String']>;
178
177
  };
179
178
 
180
179
  export type IAdminPage = {
@@ -255,6 +254,7 @@ export type IBrandInput = {
255
254
  facebook?: Maybe<Scalars['String']>;
256
255
  linkedin?: Maybe<Scalars['String']>;
257
256
  youtube?: Maybe<Scalars['String']>;
257
+ slug?: Maybe<Scalars['String']>;
258
258
  };
259
259
 
260
260
  export type IBrandsFilterInput = {
@@ -1394,6 +1394,7 @@ export type IAdminBrandResolvers<ContextType = any, ParentType extends IResolver
1394
1394
  linkedin?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1395
1395
  youtube?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1396
1396
  referralLinks?: Resolver<Maybe<Array<Maybe<IResolversTypes['ReferralLink']>>>, ParentType, ContextType>;
1397
+ slug?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1397
1398
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1398
1399
  };
1399
1400
 
@@ -1497,7 +1498,6 @@ export type IAdminOpportunityResolvers<ContextType = any, ParentType extends IRe
1497
1498
  notificationDestinations?: Resolver<Maybe<Array<IResolversTypes['NotificationDestination']>>, ParentType, ContextType>;
1498
1499
  type?: Resolver<IResolversTypes['OpportunityType'], ParentType, ContextType>;
1499
1500
  devicePlatforms?: Resolver<Maybe<Array<IResolversTypes['DevicePlatform']>>, ParentType, ContextType>;
1500
- slug?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1501
1501
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1502
1502
  };
1503
1503
 
@@ -2151,7 +2151,7 @@ export type IFetchAdminBrandsPageQueryVariables = Exact<{
2151
2151
 
2152
2152
 
2153
2153
  export type IFetchAdminBrandsPageQuery = { fetchAdminBrandsPage: { brands: Array<(
2154
- Pick<IAdminBrand, 'description' | 'id' | 'industry' | 'link' | 'matchingWords' | 'media' | 'name' | 'archived' | 'addedBy' | 'discord' | 'telegram' | 'twitter' | 'facebook' | 'linkedin' | 'youtube'>
2154
+ Pick<IAdminBrand, 'description' | 'id' | 'industry' | 'link' | 'matchingWords' | 'media' | 'name' | 'archived' | 'addedBy' | 'discord' | 'telegram' | 'twitter' | 'facebook' | 'linkedin' | 'youtube' | 'slug'>
2155
2155
  & { referralLinks?: Maybe<Array<Maybe<Pick<IReferralLink, 'referralUrl' | 'numOfReferredIps' | 'numOfReferredUsers' | 'refcode' | 'reftypeId' | 'reftypeName' | 'reftypeColor' | 'maxUsagesLimit'>>>> }
2156
2156
  )>, nextPage?: Maybe<Pick<IAdminPage, 'num' | 'lastNum' | 'size' | 'elements'>> } };
2157
2157
 
@@ -3544,6 +3544,7 @@ export const FetchAdminBrandsPageDocument = gql`
3544
3544
  reftypeColor
3545
3545
  maxUsagesLimit
3546
3546
  }
3547
+ slug
3547
3548
  }
3548
3549
  nextPage {
3549
3550
  num
@@ -197,6 +197,12 @@ export type IOpportunityInput = {
197
197
  geolocations?: Maybe<Array<Scalars['String']>>;
198
198
  };
199
199
 
200
+ export enum IOpportunityType {
201
+ TokenAirdrop = 'TOKEN_AIRDROP',
202
+ Marketing = 'MARKETING',
203
+ NftMinting = 'NFT_MINTING'
204
+ }
205
+
200
206
  export type IOpportunityV2 = {
201
207
  opportunityId: Scalars['ID'];
202
208
  brandId: Scalars['String'];
@@ -253,6 +259,7 @@ export type IQuery = {
253
259
  fetchOpportunitiesForProfile: Array<Maybe<IOpportunityV2>>;
254
260
  fetchProfileOpportunities: IProfileOpportunities;
255
261
  fetchOpportunity: IOpportunityV2;
262
+ fetchOpportunityBySlug: IOpportunityV2;
256
263
  fetchOpportunitiesByIds: Array<IOpportunityV2>;
257
264
  fetchOpportunitiesForWallet?: Maybe<Array<Maybe<IOpportunityV2>>>;
258
265
  fetchAirdropRegistrationsCsv: Scalars['String'];
@@ -279,6 +286,11 @@ export type IQueryFetchOpportunityArgs = {
279
286
  };
280
287
 
281
288
 
289
+ export type IQueryFetchOpportunityBySlugArgs = {
290
+ slug: Scalars['String'];
291
+ };
292
+
293
+
282
294
  export type IQueryFetchOpportunitiesByIdsArgs = {
283
295
  opportunityIds: Array<Scalars['ID']>;
284
296
  };
@@ -377,6 +389,7 @@ export type IResolversTypes = {
377
389
  Int: ResolverTypeWrapper<Scalars['Int']>;
378
390
  OpportunityInput: IOpportunityInput;
379
391
  Float: ResolverTypeWrapper<Scalars['Float']>;
392
+ OpportunityType: IOpportunityType;
380
393
  OpportunityV2: ResolverTypeWrapper<IOpportunityV2>;
381
394
  ProfileOpportunities: ResolverTypeWrapper<IProfileOpportunities>;
382
395
  Query: ResolverTypeWrapper<{}>;
@@ -548,6 +561,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
548
561
  fetchOpportunitiesForProfile?: Resolver<Array<Maybe<IResolversTypes['OpportunityV2']>>, ParentType, ContextType>;
549
562
  fetchProfileOpportunities?: Resolver<IResolversTypes['ProfileOpportunities'], ParentType, ContextType>;
550
563
  fetchOpportunity?: Resolver<IResolversTypes['OpportunityV2'], ParentType, ContextType, RequireFields<IQueryFetchOpportunityArgs, 'opportunityId'>>;
564
+ fetchOpportunityBySlug?: Resolver<IResolversTypes['OpportunityV2'], ParentType, ContextType, RequireFields<IQueryFetchOpportunityBySlugArgs, 'slug'>>;
551
565
  fetchOpportunitiesByIds?: Resolver<Array<IResolversTypes['OpportunityV2']>, ParentType, ContextType, RequireFields<IQueryFetchOpportunitiesByIdsArgs, 'opportunityIds'>>;
552
566
  fetchOpportunitiesForWallet?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType, RequireFields<IQueryFetchOpportunitiesForWalletArgs, 'blockchain' | 'wallet'>>;
553
567
  fetchAirdropRegistrationsCsv?: Resolver<IResolversTypes['String'], ParentType, ContextType, RequireFields<IQueryFetchAirdropRegistrationsCsvArgs, 'opportunityId'>>;
@@ -649,6 +663,16 @@ export type IFetchOpportunityQuery = { fetchOpportunity: (
649
663
  & { brand: Pick<IBrand, 'brandId' | 'name' | 'description' | 'industry' | 'link' | 'media' | 'archived' | 'addedBy' | 'matchingWords' | 'discord' | 'telegram' | 'twitter' | 'facebook' | 'linkedin' | 'youtube'> }
650
664
  ) };
651
665
 
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
+
652
676
  export type IFetchProfileOpportunitiesQueryVariables = Exact<{ [key: string]: never; }>;
653
677
 
654
678
 
@@ -1156,6 +1180,91 @@ export function useFetchOpportunityLazyQuery(baseOptions?: Apollo.LazyQueryHookO
1156
1180
  export type FetchOpportunityQueryHookResult = ReturnType<typeof useFetchOpportunityQuery>;
1157
1181
  export type FetchOpportunityLazyQueryHookResult = ReturnType<typeof useFetchOpportunityLazyQuery>;
1158
1182
  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>;
1159
1268
  export const FetchProfileOpportunitiesDocument = gql`
1160
1269
  query FetchProfileOpportunities {
1161
1270
  fetchProfileOpportunities {