@ludo.ninja/api 3.0.68 → 3.0.70

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.
@@ -31,6 +31,7 @@ var IOpportunityType;
31
31
  IOpportunityType["TokenAirdrop"] = "TOKEN_AIRDROP";
32
32
  IOpportunityType["Marketing"] = "MARKETING";
33
33
  IOpportunityType["NftMinting"] = "NFT_MINTING";
34
+ IOpportunityType["Event"] = "EVENT";
34
35
  })(IOpportunityType || (exports.IOpportunityType = IOpportunityType = {}));
35
36
  var IReactionType;
36
37
  (function (IReactionType) {
@@ -317,18 +318,17 @@ exports.FetchOpportunitiesByIdsDocument = (0, client_1.gql) `
317
318
  query FetchOpportunitiesByIds($opportunityIds: [ID!]!) {
318
319
  fetchOpportunitiesByIds(opportunityIds: $opportunityIds) {
319
320
  opportunityId
320
- brandId
321
+ projectId
321
322
  categoryId
322
323
  opportunityStatus
323
324
  opportunityType
324
325
  notificationType
325
326
  name
326
327
  description
327
- brandName
328
- brandDescription
329
- brandMedia
330
- brandUrl
331
- brandIndustry
328
+ projectBlockchain
329
+ projectContract
330
+ projectName
331
+ projectSlug
332
332
  categoryName
333
333
  ludoUrl
334
334
  projectUrl
@@ -343,15 +343,17 @@ exports.FetchOpportunitiesByIdsDocument = (0, client_1.gql) `
343
343
  clicks
344
344
  views
345
345
  blockchain
346
+ blockchains
346
347
  collection
347
348
  createdAt
348
349
  minWalletValue
349
350
  maxWalletValue
350
351
  shareLink
351
352
  liked
353
+ geolocations
354
+ subscribed
352
355
  participantsLimit
353
356
  availablePlacesForAirdrop
354
- brandLudoUrl
355
357
  }
356
358
  }
357
359
  `;
@@ -383,18 +385,17 @@ exports.FetchOpportunitiesForProfileDocument = (0, client_1.gql) `
383
385
  query FetchOpportunitiesForProfile {
384
386
  fetchOpportunitiesForProfile {
385
387
  opportunityId
386
- brandId
388
+ projectId
387
389
  categoryId
388
390
  opportunityStatus
389
391
  opportunityType
390
392
  notificationType
391
393
  name
392
394
  description
393
- brandName
394
- brandDescription
395
- brandMedia
396
- brandUrl
397
- brandIndustry
395
+ projectBlockchain
396
+ projectContract
397
+ projectName
398
+ projectSlug
398
399
  categoryName
399
400
  ludoUrl
400
401
  projectUrl
@@ -409,15 +410,17 @@ exports.FetchOpportunitiesForProfileDocument = (0, client_1.gql) `
409
410
  clicks
410
411
  views
411
412
  blockchain
413
+ blockchains
412
414
  collection
413
415
  createdAt
414
416
  minWalletValue
415
417
  maxWalletValue
416
418
  shareLink
417
419
  liked
420
+ geolocations
421
+ subscribed
418
422
  participantsLimit
419
423
  availablePlacesForAirdrop
420
- brandLudoUrl
421
424
  }
422
425
  }
423
426
  `;
@@ -464,53 +467,81 @@ exports.FetchBrandBySlugDocument = (0, client_1.gql) `
464
467
  youtube
465
468
  activeAirdrop {
466
469
  opportunityId
467
- brandId
470
+ projectId
468
471
  categoryId
469
472
  opportunityStatus
470
473
  opportunityType
471
474
  notificationType
472
475
  name
473
476
  description
474
- brandName
475
- brandDescription
476
- brandMedia
477
- brandUrl
478
- brandIndustry
477
+ projectBlockchain
478
+ projectContract
479
+ projectName
480
+ projectSlug
479
481
  categoryName
480
482
  ludoUrl
481
483
  projectUrl
482
484
  activeFrom
483
485
  activeUntil
486
+ minXpLevel
487
+ maxXpLevel
488
+ minRank
489
+ maxRank
484
490
  media
485
491
  reportLink
492
+ clicks
493
+ views
494
+ blockchain
495
+ blockchains
496
+ collection
497
+ createdAt
498
+ minWalletValue
499
+ maxWalletValue
486
500
  shareLink
501
+ liked
502
+ geolocations
503
+ subscribed
487
504
  participantsLimit
488
505
  availablePlacesForAirdrop
489
- brandLudoUrl
490
- blockchains
491
506
  }
492
507
  otherOpportunities {
493
508
  opportunityId
494
- brandId
509
+ projectId
495
510
  categoryId
496
511
  opportunityStatus
497
512
  opportunityType
498
513
  notificationType
499
514
  name
500
515
  description
501
- brandName
502
- brandDescription
503
- brandMedia
504
- brandUrl
505
- brandIndustry
516
+ projectBlockchain
517
+ projectContract
518
+ projectName
519
+ projectSlug
506
520
  categoryName
507
521
  ludoUrl
508
522
  projectUrl
509
523
  activeFrom
510
524
  activeUntil
525
+ minXpLevel
526
+ maxXpLevel
527
+ minRank
528
+ maxRank
511
529
  media
512
530
  reportLink
531
+ clicks
532
+ views
533
+ blockchain
534
+ blockchains
535
+ collection
536
+ createdAt
537
+ minWalletValue
538
+ maxWalletValue
513
539
  shareLink
540
+ liked
541
+ geolocations
542
+ subscribed
543
+ participantsLimit
544
+ availablePlacesForAirdrop
514
545
  }
515
546
  }
516
547
  }
@@ -611,19 +642,17 @@ exports.FetchOpportunityDocument = (0, client_1.gql) `
611
642
  query FetchOpportunity($opportunityId: ID!) {
612
643
  fetchOpportunity(opportunityId: $opportunityId) {
613
644
  opportunityId
614
- brandId
645
+ projectId
615
646
  categoryId
616
647
  opportunityStatus
617
648
  opportunityType
618
649
  notificationType
619
650
  name
620
651
  description
621
- brandName
622
- subscribed
623
- brandDescription
624
- brandMedia
625
- brandUrl
626
- brandIndustry
652
+ projectBlockchain
653
+ projectContract
654
+ projectName
655
+ projectSlug
627
656
  categoryName
628
657
  ludoUrl
629
658
  projectUrl
@@ -646,26 +675,9 @@ exports.FetchOpportunityDocument = (0, client_1.gql) `
646
675
  shareLink
647
676
  liked
648
677
  geolocations
678
+ subscribed
649
679
  participantsLimit
650
680
  availablePlacesForAirdrop
651
- brandLudoUrl
652
- brand {
653
- brandId
654
- name
655
- description
656
- industry
657
- link
658
- media
659
- archived
660
- addedBy
661
- matchingWords
662
- discord
663
- telegram
664
- twitter
665
- facebook
666
- linkedin
667
- youtube
668
- }
669
681
  }
670
682
  }
671
683
  `;
@@ -698,18 +710,17 @@ exports.FetchProfileOpportunitiesDocument = (0, client_1.gql) `
698
710
  fetchProfileOpportunities {
699
711
  newOpportunities {
700
712
  opportunityId
701
- brandId
713
+ projectId
702
714
  categoryId
703
715
  opportunityStatus
704
716
  opportunityType
705
717
  notificationType
706
718
  name
707
719
  description
708
- brandName
709
- brandDescription
710
- brandMedia
711
- brandUrl
712
- brandIndustry
720
+ projectBlockchain
721
+ projectContract
722
+ projectName
723
+ projectSlug
713
724
  categoryName
714
725
  ludoUrl
715
726
  projectUrl
@@ -724,30 +735,70 @@ exports.FetchProfileOpportunitiesDocument = (0, client_1.gql) `
724
735
  clicks
725
736
  views
726
737
  blockchain
738
+ blockchains
727
739
  collection
728
740
  createdAt
729
741
  minWalletValue
730
742
  maxWalletValue
731
743
  shareLink
732
744
  liked
745
+ geolocations
746
+ subscribed
733
747
  participantsLimit
734
748
  availablePlacesForAirdrop
735
- brandLudoUrl
736
749
  }
737
750
  recentOpportunities {
738
751
  opportunityId
739
- brandId
752
+ projectId
753
+ categoryId
754
+ opportunityStatus
755
+ opportunityType
756
+ notificationType
757
+ name
758
+ description
759
+ projectBlockchain
760
+ projectContract
761
+ projectName
762
+ projectSlug
763
+ categoryName
764
+ ludoUrl
765
+ projectUrl
766
+ activeFrom
767
+ activeUntil
768
+ minXpLevel
769
+ maxXpLevel
770
+ minRank
771
+ maxRank
772
+ media
773
+ reportLink
774
+ clicks
775
+ views
776
+ blockchain
777
+ blockchains
778
+ collection
779
+ createdAt
780
+ minWalletValue
781
+ maxWalletValue
782
+ shareLink
783
+ liked
784
+ geolocations
785
+ subscribed
786
+ participantsLimit
787
+ availablePlacesForAirdrop
788
+ }
789
+ eventOpportunities {
790
+ opportunityId
791
+ projectId
740
792
  categoryId
741
793
  opportunityStatus
742
794
  opportunityType
743
795
  notificationType
744
796
  name
745
797
  description
746
- brandName
747
- brandDescription
748
- brandMedia
749
- brandUrl
750
- brandIndustry
798
+ projectBlockchain
799
+ projectContract
800
+ projectName
801
+ projectSlug
751
802
  categoryName
752
803
  ludoUrl
753
804
  projectUrl
@@ -762,15 +813,17 @@ exports.FetchProfileOpportunitiesDocument = (0, client_1.gql) `
762
813
  clicks
763
814
  views
764
815
  blockchain
816
+ blockchains
765
817
  collection
766
818
  createdAt
767
819
  minWalletValue
768
820
  maxWalletValue
769
821
  shareLink
770
822
  liked
823
+ geolocations
824
+ subscribed
771
825
  participantsLimit
772
826
  availablePlacesForAirdrop
773
- brandLudoUrl
774
827
  }
775
828
  }
776
829
  }
@@ -842,6 +895,81 @@ exports.FetchProjectBySlugDocument = (0, client_1.gql) `
842
895
  votes
843
896
  votesPercentage
844
897
  }
898
+ airdrops {
899
+ opportunityId
900
+ projectId
901
+ categoryId
902
+ opportunityStatus
903
+ opportunityType
904
+ notificationType
905
+ name
906
+ description
907
+ categoryName
908
+ ludoUrl
909
+ projectUrl
910
+ activeFrom
911
+ activeUntil
912
+ minXpLevel
913
+ maxXpLevel
914
+ minRank
915
+ maxRank
916
+ media
917
+ reportLink
918
+ clicks
919
+ views
920
+ blockchain
921
+ blockchains
922
+ collection
923
+ createdAt
924
+ minWalletValue
925
+ maxWalletValue
926
+ shareLink
927
+ liked
928
+ geolocations
929
+ subscribed
930
+ participantsLimit
931
+ availablePlacesForAirdrop
932
+ }
933
+ opportunities {
934
+ opportunityId
935
+ projectId
936
+ categoryId
937
+ opportunityStatus
938
+ opportunityType
939
+ notificationType
940
+ name
941
+ description
942
+ categoryName
943
+ ludoUrl
944
+ projectUrl
945
+ activeFrom
946
+ activeUntil
947
+ minXpLevel
948
+ maxXpLevel
949
+ minRank
950
+ maxRank
951
+ media
952
+ reportLink
953
+ clicks
954
+ views
955
+ blockchain
956
+ blockchains
957
+ collection
958
+ createdAt
959
+ minWalletValue
960
+ maxWalletValue
961
+ shareLink
962
+ liked
963
+ geolocations
964
+ subscribed
965
+ participantsLimit
966
+ availablePlacesForAirdrop
967
+ }
968
+ communityVote
969
+ communityVotes {
970
+ calculatedAt
971
+ communityVote
972
+ }
845
973
  }
846
974
  }
847
975
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludo.ninja/api",
3
- "version": "3.0.68",
3
+ "version": "3.0.70",
4
4
  "main": "./build/index.js",
5
5
  "scripts": {
6
6
  "test": "jest",
@@ -176,7 +176,7 @@ export type IAdminOpportunity = {
176
176
  };
177
177
 
178
178
  export type IAdminOpportunityInput = {
179
- projectId?: Maybe<Scalars['String']>;
179
+ projectId: Scalars['String'];
180
180
  categoryId: Scalars['String'];
181
181
  status: Scalars['String'];
182
182
  pushNotificationsEnabled: Scalars['Boolean'];
@@ -2631,7 +2631,7 @@ export type IFetchAdminAirdropsPageQueryVariables = Exact<{
2631
2631
  }>;
2632
2632
 
2633
2633
 
2634
- export type IFetchAdminAirdropsPageQuery = { fetchAdminAirdropsPage: { opportunities: Array<Pick<IAdminOpportunity, 'opportunityId' | 'name' | 'description' | 'projectName' | 'industry' | 'category' | 'ludoUrl' | 'projectUrl' | 'pushNotificationsEnabled' | 'status' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minLudoRank' | 'maxLudoRank' | 'media' | 'minWalletValue' | 'maxWalletValue' | 'clicks' | 'views' | 'addedBy' | 'archived' | 'blockchains' | 'geolocations' | 'notificationDestinations' | 'type' | 'devicePlatforms' | 'participants' | 'hidden' | 'showcase' | 'participantsLimit' | 'availablePlacesForAirdrop' | 'encodePayload' | 'payloadTypes'>>, nextPage?: Maybe<Pick<IAdminPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>> } };
2634
+ export type IFetchAdminAirdropsPageQuery = { fetchAdminAirdropsPage: { opportunities: Array<Pick<IAdminOpportunity, 'opportunityId' | 'name' | 'description' | 'projectName' | 'industry' | 'category' | 'ludoUrl' | 'projectUrl' | 'pushNotificationsEnabled' | 'status' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minLudoRank' | 'maxLudoRank' | 'media' | 'minWalletValue' | 'maxWalletValue' | 'clicks' | 'views' | 'addedBy' | 'archived' | 'blockchains' | 'geolocations' | 'notificationDestinations' | 'type' | 'devicePlatforms' | 'participants' | 'hidden' | 'showcase' | 'participantsLimit' | 'availablePlacesForAirdrop' | 'encodePayload' | 'payloadTypes' | 'parentOpportunityId'>>, nextPage?: Maybe<Pick<IAdminPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>> } };
2635
2635
 
2636
2636
  export type IFetchAdminBrandsQueryVariables = Exact<{ [key: string]: never; }>;
2637
2637
 
@@ -2683,7 +2683,7 @@ export type IFetchAdminOpportunitiesPageQueryVariables = Exact<{
2683
2683
  }>;
2684
2684
 
2685
2685
 
2686
- export type IFetchAdminOpportunitiesPageQuery = { fetchAdminOpportunitiesPage: { opportunities: Array<Pick<IAdminOpportunity, 'opportunityId' | 'name' | 'projectName' | 'industry' | 'category' | 'ludoUrl' | 'projectUrl' | 'pushNotificationsEnabled' | 'status' | 'media' | 'description' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minLudoRank' | 'maxLudoRank' | 'minWalletValue' | 'maxWalletValue' | 'clicks' | 'views' | 'addedBy' | 'archived' | 'blockchains' | 'geolocations' | 'notificationDestinations' | 'type' | 'devicePlatforms' | 'participantsLimit' | 'availablePlacesForAirdrop' | 'encodePayload' | 'payloadTypes'>>, nextPage?: Maybe<Pick<IAdminPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>> } };
2686
+ export type IFetchAdminOpportunitiesPageQuery = { fetchAdminOpportunitiesPage: { opportunities: Array<Pick<IAdminOpportunity, 'opportunityId' | 'name' | 'projectName' | 'industry' | 'category' | 'ludoUrl' | 'projectUrl' | 'pushNotificationsEnabled' | 'status' | 'media' | 'description' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minLudoRank' | 'maxLudoRank' | 'minWalletValue' | 'maxWalletValue' | 'clicks' | 'views' | 'addedBy' | 'archived' | 'blockchains' | 'geolocations' | 'notificationDestinations' | 'type' | 'devicePlatforms' | 'participantsLimit' | 'availablePlacesForAirdrop' | 'encodePayload' | 'payloadTypes' | 'parentOpportunityId'>>, nextPage?: Maybe<Pick<IAdminPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>> } };
2687
2687
 
2688
2688
  export type IFetchAdminProjectsQueryVariables = Exact<{ [key: string]: never; }>;
2689
2689
 
@@ -4266,6 +4266,7 @@ export const FetchAdminAirdropsPageDocument = gql`
4266
4266
  availablePlacesForAirdrop
4267
4267
  encodePayload
4268
4268
  payloadTypes
4269
+ parentOpportunityId
4269
4270
  }
4270
4271
  nextPage {
4271
4272
  elements
@@ -4593,6 +4594,7 @@ export const FetchAdminOpportunitiesPageDocument = gql`
4593
4594
  availablePlacesForAirdrop
4594
4595
  encodePayload
4595
4596
  payloadTypes
4597
+ parentOpportunityId
4596
4598
  }
4597
4599
  nextPage {
4598
4600
  elements