@ludo.ninja/api 1.0.9 → 1.0.11

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludo.ninja/api",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "main": "./build/index.js",
5
5
  "scripts": {
6
6
  "test": "jest",
@@ -19,6 +19,22 @@ export const typePoliciesPortal: TypePolicies = {
19
19
  keyArgs: ["galleryId"],
20
20
  merge: true,
21
21
  },
22
+ fetchUserFavoritesV2: {
23
+ keyArgs: ["galleryId"],
24
+ merge: true,
25
+ },
26
+ fetchMyFavoritesV2: {
27
+ keyArgs: ["galleryId"],
28
+ merge: true,
29
+ },
30
+ fetchMyGalleriesV2: {
31
+ keyArgs: ["galleryId"],
32
+ merge: true,
33
+ },
34
+ fetchUserGalleriesV2: {
35
+ keyArgs: ["galleryId"],
36
+ merge: true,
37
+ },
22
38
  fetchCreations: {
23
39
  keyArgs: ["itemId"],
24
40
  merge: true,
@@ -0,0 +1,21 @@
1
+ query FetchMyGalleriesV2($pageSize: Int!, $pageToken: String) {
2
+ fetchMyGalleriesV2(pageSize: $pageSize, pageToken: $pageToken) {
3
+ nextPageToken
4
+ galleries {
5
+ galleryId
6
+ galleryType
7
+ name
8
+ description
9
+ userId
10
+ username
11
+ userpic
12
+ banner
13
+ createdAt
14
+ items
15
+ views
16
+ publiclyAccessible
17
+ nsfw
18
+ creationIds
19
+ }
20
+ }
21
+ }
@@ -1,8 +1,6 @@
1
1
  directive @Min(value: Int! = 0, message: String = "%s") on ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION
2
2
 
3
- directive @NotBlank(
4
- message: String = "graphql.validation.NotBlank.message"
5
- ) on ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION
3
+ directive @NotBlank(message: String = "graphql.validation.NotBlank.message") on ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION
6
4
 
7
5
  type Address {
8
6
  creators: [Wallet]
@@ -818,16 +816,12 @@ type Query {
818
816
  fetchAssetModerationStatuses: [Selection]!
819
817
  fetchAssetModerations(input: AssetModerationFilter!, pageSize: Int!, pageToken: String): AssetModerationsPage!
820
818
 
821
- """
822
- This query is not connected to the front
823
- """
819
+ """This query is not connected to the front"""
824
820
  fetchAssetNamesSuggestions(term: String!): [String]!
825
821
  fetchAssetReports(input: AssetReportFilter!, pageSize: Int!, pageToken: String): AssetReportsPage!
826
822
  fetchAssets(assetIds: [String!]!): [Asset]!
827
823
 
828
- """
829
- This query must be used on the first page
830
- """
824
+ """This query must be used on the first page"""
831
825
  fetchAssetsCount: Long!
832
826
  fetchBannerAssets(pageSize: Int!): [BannerAsset]!
833
827
  fetchBlockchainSelections: [Selection]!
@@ -900,106 +894,58 @@ type Query {
900
894
  fetchWalletSelections: [Selection]!
901
895
  fetchWallets: [Wallet]!
902
896
 
903
- """
904
- This query should be changed according to new design
905
- """
897
+ """This query should be changed according to new design"""
906
898
  findAllAssetsByName(input: SearchFilterInput!, pageSize: Int!, pageToken: String): AssetPage!
907
899
 
908
- """
909
- This query should be changed according to new design
910
- """
900
+ """This query should be changed according to new design"""
911
901
  findAllAssetsByOwner(input: SearchFilterInput!, pageSize: Int!, pageToken: String): AssetPage!
912
902
 
913
- """
914
- This query should be changed according to new design
915
- """
903
+ """This query should be changed according to new design"""
916
904
  findAllAssetsByTerm(input: SearchFilterInput!, pageSize: Int!, pageToken: String): AssetPage!
917
905
 
918
- """
919
- This query should be changed according to new design
920
- """
906
+ """This query should be changed according to new design"""
921
907
  findAllGalleriesByName(input: SearchFilterInput!, pageSize: Int!, pageToken: String): GalleryPage!
922
908
 
923
- """
924
- This query should be changed according to new design
925
- """
909
+ """This query should be changed according to new design"""
926
910
  findAllGalleriesByTerm(input: SearchFilterInput!, pageSize: Int!, pageToken: String): GalleryPage!
927
911
  findAllTopEntitiesByName(name: String!, pageSize: Int!): TopEntitiesPage!
928
912
  findAllTopEntitiesByTerm(pageSize: Int!, term: String!): TopEntitiesPage!
929
913
 
930
- """
931
- This query should be changed according to new design
932
- """
914
+ """This query should be changed according to new design"""
933
915
  findAssetsByName(input: SearchFilterInput!, pageSize: Int!, pageToken: String): AssetPage!
934
916
 
935
- """
936
- This query should be changed according to new design
937
- """
917
+ """This query should be changed according to new design"""
938
918
  findAssetsByOwner(input: SearchFilterInput!, pageSize: Int!, pageToken: String): AssetPage!
939
919
 
940
- """
941
- This query should be changed according to new design
942
- """
920
+ """This query should be changed according to new design"""
943
921
  findAssetsByTerm(input: SearchFilterInput!, pageSize: Int!, pageToken: String): AssetPage!
944
922
  findCollections(term: String!, input: CollectionFilterInput!, pageSize: Int!, pageToken: String): CollectionPage!
945
923
 
946
- """
947
- This query should be changed according to new design
948
- """
924
+ """This query should be changed according to new design"""
949
925
  findCollectionsByTitle(input: SearchFilterInput!, pageSize: Int!, pageToken: String): CollectionPage!
950
926
  findCreations(input: CreationFilterInput!, pageSize: Int!, pageToken: String, term: String!): CreationsPage!
951
927
 
952
- """
953
- This query should be changed according to new design
954
- """
928
+ """This query should be changed according to new design"""
955
929
  findGalleriesByName(input: SearchFilterInput!, pageSize: Int!, pageToken: String): GalleryPage!
956
930
 
957
- """
958
- This query should be changed according to new design
959
- """
931
+ """This query should be changed according to new design"""
960
932
  findGalleriesByTerm(input: SearchFilterInput!, pageSize: Int!, pageToken: String): GalleryPage!
961
933
 
962
- """
963
- This query should be changed according to new design
964
- """
934
+ """This query should be changed according to new design"""
965
935
  findProfilesByName(name: String!, pageSize: Int!, pageToken: String): ProfilePage!
966
936
 
967
- """
968
- This query should be changed according to new design
969
- """
937
+ """This query should be changed according to new design"""
970
938
  findProfilesByTerm(pageSize: Int!, pageToken: String, term: String!): ProfilePage!
971
939
  findSets(term: String!, input: GallerySearchFilterInput!, pageSize: Int!, pageToken: String): GalleryPage!
972
- findShowcaseItems(
973
- input: ShowcaseItemFilterInput!
974
- pageSize: Int!
975
- pageToken: String
976
- term: String!
977
- ): ShowcaseItemPage!
978
-
979
- """
980
- These queries are used for search suggestions
981
- """
940
+ findShowcaseItems(input: ShowcaseItemFilterInput!, pageSize: Int!, pageToken: String, term: String!): ShowcaseItemPage!
941
+
942
+ """These queries are used for search suggestions"""
982
943
  findTopEntitiesByName(name: String!, pageSize: Int!): TopEntitiesPage!
983
944
  findTopEntitiesByTerm(pageSize: Int!, term: String!): TopEntitiesPage!
984
945
  findUserCreations(input: CreationFilterInput!, ownerId: String!, pageSize: Int!, pageToken: String): CreationsPage!
985
- findUserFavoriteLists(
986
- ownerId: String!
987
- input: GalleryProfileFilterInput!
988
- pageSize: Int!
989
- pageToken: String
990
- ): GalleryPage!
991
- findUserGalleries(
992
- ownerId: String!
993
- input: GalleryProfileFilterInput!
994
- pageSize: Int!
995
- pageToken: String
996
- ): GalleryPage!
997
- findUserShowcaseItems(
998
- input: ShowcaseItemFilterInput!
999
- ownerId: String!
1000
- pageSize: Int!
1001
- pageToken: String
1002
- ): ShowcaseItemPage!
946
+ findUserFavoriteLists(ownerId: String!, input: GalleryProfileFilterInput!, pageSize: Int!, pageToken: String): GalleryPage!
947
+ findUserGalleries(ownerId: String!, input: GalleryProfileFilterInput!, pageSize: Int!, pageToken: String): GalleryPage!
948
+ findUserShowcaseItems(input: ShowcaseItemFilterInput!, ownerId: String!, pageSize: Int!, pageToken: String): ShowcaseItemPage!
1003
949
  getDummy: String!
1004
950
  isValidAuthToken(authToken: String!): Boolean!
1005
951
  }