@ludo.ninja/api 1.0.4 → 1.0.6

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.
Files changed (109) hide show
  1. package/build/config/index.d.ts +2 -0
  2. package/build/config/index.js +123 -0
  3. package/build/config/typePolicies.d.ts +2 -0
  4. package/build/config/typePolicies.js +41 -0
  5. package/build/cookies/index.d.ts +17 -0
  6. package/build/cookies/index.js +76 -0
  7. package/build/graphql_tools/__generated__/schema.d.ts +1301 -1301
  8. package/build/graphql_tools/__generated__/schema.js +1413 -1443
  9. package/build/hosts/index.js +21 -21
  10. package/build/index.d.ts +3 -1
  11. package/build/index.js +5 -1
  12. package/package.json +8 -3
  13. package/src/config/index.ts +143 -0
  14. package/src/config/typePolicies.ts +40 -0
  15. package/src/cookies/index.ts +82 -0
  16. package/src/documents/server-assets/queries/useFetchAsset/FetchAsset.graphql +8 -8
  17. package/src/documents/server-assets/queries/useFetchAssetByBlockchain/FetchAssetByBlockchain.graphql +2 -12
  18. package/src/documents/server-assets/queries/useFetchAssets/FetchAssets.graphql +8 -8
  19. package/src/documents/server-assets/queries/useFetchDynamicAssetLikes/FetchDynamicAssetLikes.graphql +2 -2
  20. package/src/documents/server-assets/queries/useFetchDynamicAssetsLikes/FetchDynamicAssetsLikes.graphql +3 -3
  21. package/src/documents/server-collection/queries/useFetchCollections/FetchCollectionAssets.graphql +22 -22
  22. package/src/documents/server-collection/queries/useFetchDynamicCollectionData/FetchDynamicCollectionData.graphql +30 -30
  23. package/src/documents/server-collection/queries/useFetchDynamicCollectionsData/FetchDynamicCollectionsData.graphql +30 -30
  24. package/src/documents/server-galleries/mutations/useAddChangeGalleryBanner/UploadGalleryBanner.graphql +2 -2
  25. package/src/documents/server-galleries/mutations/useCreateFavorites/CreateFavoriteListV2.graphql +13 -13
  26. package/src/documents/server-galleries/mutations/useCreateFavorites/CreateFavorites.graphql +8 -13
  27. package/src/documents/server-galleries/mutations/useCreateGallery/CreateGallery.graphql +3 -13
  28. package/src/documents/server-galleries/mutations/useCreateGallery/CreateGalleryV2.graphql +8 -13
  29. package/src/documents/server-galleries/mutations/useDeleteGalleryBanner/DeleteGalleryBanner.graphql +3 -3
  30. package/src/documents/server-galleries/queries/useFetchGallery/FetchGallery.graphql +16 -16
  31. package/src/documents/server-galleries/queries/useFetchGallery/FetchGalleryCreations.graphql +2 -10
  32. package/src/documents/server-galleries/queries/useFetchGallery/FetchGalleryV2.graphql +17 -17
  33. package/src/documents/server-galleries/queries/useFetchUserFavorites/FetchUserFavorites.graphql +5 -9
  34. package/src/documents/server-galleries/queries/useFetchUserFavorites/FetchUserFavoritesV2.graphql +2 -6
  35. package/src/documents/server-galleries/queries/useFetchUserGalleries/FetchUserGalleries.graphql +5 -9
  36. package/src/documents/server-galleries/queries/useFetchUserGalleries/FetchUserGalleriesV2.graphql +2 -6
  37. package/src/documents/server-identities/mutations/SignInMetamask.graphql +8 -16
  38. package/src/documents/server-identities/mutations/useAddWalletElrond/AddWalletElrond.graphql +3 -3
  39. package/src/documents/server-identities/mutations/useAddWalletFlow/AddWalletFlow.graphql +3 -3
  40. package/src/documents/server-identities/mutations/useAddWalletMetamask/AddWalletMetamask.graphql +3 -11
  41. package/src/documents/server-identities/mutations/useAddWalletSolana/AddWalletSolana.graphql +3 -3
  42. package/src/documents/server-identities/mutations/useAddWalletTezos/AddWalletTezos.graphql +3 -3
  43. package/src/documents/server-identities/mutations/useCreateNonce/CreateNonce.graphql +3 -7
  44. package/src/documents/server-identities/mutations/useRefrechToken/RefreshToken.graphql +8 -8
  45. package/src/documents/server-identities/mutations/useRevokeToken/RevokeToken.graphql +3 -3
  46. package/src/documents/server-identities/mutations/useSignInElrond/SignInElrond.graphql +9 -9
  47. package/src/documents/server-identities/mutations/useSignInFlow/SignInFlow.graphql +9 -9
  48. package/src/documents/server-identities/mutations/useSignInMetamask/SignInMetamask.graphql +1 -5
  49. package/src/documents/server-identities/mutations/useSignInSolana/SignInSolana.graphql +9 -9
  50. package/src/documents/server-identities/mutations/useSignInTezos/SignInTezos.graphql +9 -9
  51. package/src/documents/server-identities/mutations/useUpdateProfile/UpdateProfile.graphql +15 -20
  52. package/src/documents/server-identities/queries/useFetchProfile/FetchProfile.graphql +5 -5
  53. package/src/documents/server-identities/queries/useFetchWallets/FetchUserWallets.graphql +1 -1
  54. package/src/documents/server-medias/queries/useFetchUserPic/FetchUserpic.graphql +3 -3
  55. package/src/documents/server-preferences/queries/useFetchExpectations/FetchExpectations.graphql +6 -6
  56. package/src/documents/server-preferences/queries/useFetchInterests/FetchUserInterests.graphql +6 -6
  57. package/src/documents/server-preferences/queries/useFetchSearchResultTimeSelection/FetchSearchResultTimeSelections.graphql +6 -6
  58. package/src/documents/server-preferences/queries/useFetchUserExpectations/FetchUserExpectations.graphql +7 -7
  59. package/src/documents/server-preferences/queries/useFetchUserInterests/FetchUserInterests.graphql +8 -8
  60. package/src/documents/server-preferences/queries/useSearchResultBlockchainSelections/FetchSearchResultBlockchainSelections.graphql +6 -6
  61. package/src/documents/server-preferences/queries/useSearchResultCategorySelections/FetchSearchResultCategorySelections.graphql +6 -6
  62. package/src/documents/server-preferences/queries/useSearchResultStatusSelections/FetchSearchResultStatusSelection.graphql +6 -6
  63. package/src/documents/server-preferences/queries/useSearchResultTypeSelections/FetchSetsSearchResultTypeSelections.graphql +6 -6
  64. package/src/documents/server-search/queries/useFetchAssetsCount/FetchAssetsCount.graphql +1 -1
  65. package/src/documents/server-search/queries/useFetchCollections/FindCollections.graphql +15 -25
  66. package/src/documents/server-search/queries/useFetchCreationsByItemType/FetchCreationsByItemType.graphql +2 -10
  67. package/src/documents/server-search/queries/useFetchNetWorth/FetchProfile.graphql +5 -5
  68. package/src/documents/server-search/queries/useFindCreations/FindCreations.graphql +2 -12
  69. package/src/documents/server-search/queries/useFindSets/FindSets.graphql +2 -12
  70. package/src/documents/server-search/queries/useFindShowcaseItems/FetchShowcaseItems.graphql +2 -12
  71. package/src/documents/server-search/queries/useFindUserCreations/FindUserCreations.graphql +3 -12
  72. package/src/documents/server-search/queries/useFindUserShowcaseItems/FetchFindUserShowcaseItems.graphql +2 -12
  73. package/src/graphql_tools/__generated__/schema.graphql +76 -22
  74. package/src/graphql_tools/__generated__/schema.ts +5115 -3499
  75. package/src/graphql_tools/schemas/asset/type/media.graphqls +1 -1
  76. package/src/graphql_tools/schemas/assets/asset/type/assetMarket.graphqls +1 -1
  77. package/src/graphql_tools/schemas/assets/asset/type/assetPrice.graphqls +1 -1
  78. package/src/graphql_tools/schemas/assets/asset/type/attribute.graphqls +1 -1
  79. package/src/graphql_tools/schemas/assets/asset/type/media.graphqls +0 -1
  80. package/src/graphql_tools/schemas/collection/type/attribute.graphqls +1 -1
  81. package/src/graphql_tools/schemas/collection/type/collection.graphqls +1 -1
  82. package/src/graphql_tools/schemas/collection/type/collectionAsset.graphqls +27 -28
  83. package/src/graphql_tools/schemas/collection/type/dynamicCollectionData.graphqls +1 -1
  84. package/src/graphql_tools/schemas/creation/query.graphqls +1 -5
  85. package/src/graphql_tools/schemas/galleries/gallery/input/galleryCreation.graphqls +1 -2
  86. package/src/graphql_tools/schemas/galleries/gallery/mutation.graphqls +6 -30
  87. package/src/graphql_tools/schemas/galleries/gallery/query.graphqls +7 -29
  88. package/src/graphql_tools/schemas/gallery/query.graphqls +3 -15
  89. package/src/graphql_tools/schemas/identities/identity/mutation.graphqls +6 -31
  90. package/src/graphql_tools/schemas/identities/profile/input/inputProfile.graphqls +2 -6
  91. package/src/graphql_tools/schemas/identities/profile/input/inputSocial.graphqls +3 -11
  92. package/src/graphql_tools/schemas/images/mutation.graphqls +4 -4
  93. package/src/graphql_tools/schemas/moderations/asset/mutation.graphqls +1 -3
  94. package/src/graphql_tools/schemas/moderations/asset/query.graphqls +2 -8
  95. package/src/graphql_tools/schemas/moderations/user/query.graphqls +1 -5
  96. package/src/graphql_tools/schemas/reports/asset/mutation.graphqls +1 -4
  97. package/src/graphql_tools/schemas/reports/asset/query.graphqls +1 -5
  98. package/src/graphql_tools/schemas/reports/gallery/mutation.graphqls +1 -4
  99. package/src/graphql_tools/schemas/reports/gallery/query.graphqls +1 -5
  100. package/src/graphql_tools/schemas/reports/schema.graphqls +1 -4
  101. package/src/graphql_tools/schemas/reports/user/query.graphqls +1 -5
  102. package/src/graphql_tools/schemas/schema.graphqls +1 -4
  103. package/src/graphql_tools/schemas/search/collection/query.graphqls +2 -11
  104. package/src/graphql_tools/schemas/search/creation/query.graphqls +8 -6
  105. package/src/graphql_tools/schemas/search/creation/type/profile.graphqls +1 -1
  106. package/src/graphql_tools/schemas/search/schema.graphqls +1 -4
  107. package/src/hosts/index.ts +21 -30
  108. package/src/index.ts +3 -1
  109. package/tsconfig.tsbuildinfo +1 -1
@@ -6,4 +6,4 @@ type Media {
6
6
  sizeRatio: Float
7
7
  fileSize: Long
8
8
  nsfw: Int
9
- }
9
+ }
@@ -3,4 +3,4 @@ type AssetMarket {
3
3
  marketName: String
4
4
  marketDomain: String
5
5
  marketUrl: String
6
- }
6
+ }
@@ -1,4 +1,4 @@
1
1
  type CurrencyAmountPair {
2
2
  currency: String
3
3
  amount: Float
4
- }
4
+ }
@@ -1,4 +1,4 @@
1
1
  type Attribute {
2
2
  name: String
3
3
  value: String
4
- }
4
+ }
@@ -6,4 +6,3 @@ type Media {
6
6
  previewUrl: String
7
7
  mimeType: String
8
8
  }
9
-
@@ -1,4 +1,4 @@
1
1
  type Attribute {
2
2
  name: String
3
3
  value: String
4
- }
4
+ }
@@ -18,4 +18,4 @@ type Collection {
18
18
  likes: Int
19
19
  liked: Boolean
20
20
  rank: Float
21
- }
21
+ }
@@ -1,30 +1,29 @@
1
1
  type CollectionAsset {
2
- collectionId: String
3
- collectionTitle: String
4
- collectionOriginalUrls: [String]
5
- collectionMedias: [Media]
6
- assetId: String
7
- blockchain: String
8
- address: String
9
- tokenId: String
10
- chainId: String
11
- blockHeight: Long
12
- name: String
13
- description: String
14
- originalUrls: [String]
15
- medias: [Media]
16
- ownersAddresses: [String]
17
- ownersProfiles: [Profile]
18
- creatorsAddresses: [String]
19
- creatorsProfiles: [Profile]
20
- attributes: [Attribute]
21
- likes: Int
22
- liked: Boolean
23
- views: Int
24
- visible: Boolean
25
- createdAt: Long
26
- blurred: Boolean
27
- rank: Float
28
- prices: [CurrencyAmountPair]
2
+ collectionId: String
3
+ collectionTitle: String
4
+ collectionOriginalUrls: [String]
5
+ collectionMedias: [Media]
6
+ assetId: String
7
+ blockchain: String
8
+ address: String
9
+ tokenId: String
10
+ chainId: String
11
+ blockHeight: Long
12
+ name: String
13
+ description: String
14
+ originalUrls: [String]
15
+ medias: [Media]
16
+ ownersAddresses: [String]
17
+ ownersProfiles: [Profile]
18
+ creatorsAddresses: [String]
19
+ creatorsProfiles: [Profile]
20
+ attributes: [Attribute]
21
+ likes: Int
22
+ liked: Boolean
23
+ views: Int
24
+ visible: Boolean
25
+ createdAt: Long
26
+ blurred: Boolean
27
+ rank: Float
28
+ prices: [CurrencyAmountPair]
29
29
  }
30
-
@@ -3,4 +3,4 @@ type DynamicCollectionData {
3
3
  likesNum: Int
4
4
  collectionAssetsPage: CollectionAssetsPage
5
5
  collectionId: String
6
- }
6
+ }
@@ -1,9 +1,5 @@
1
1
  extend type Query {
2
2
  fetchCreation(id: String!): Creation!
3
3
  fetchCreations(pageSize: Int!, pageToken: String): CreationsPage!
4
- fetchCreationsByItemType(
5
- itemType: String!
6
- pageSize: Int!
7
- pageToken: String
8
- ): CreationsPage!
4
+ fetchCreationsByItemType(itemType: String!, pageSize: Int!, pageToken: String): CreationsPage!
9
5
  }
@@ -1,5 +1,4 @@
1
1
  input GalleryCreationInput {
2
2
  creationId: String! @NotBlank(message: "common.blank")
3
- itemOrder: Int!
4
- @Min(value: 0, message: "rawGallery-galleryCreation.order.min")
3
+ itemOrder: Int! @Min(value: 0, message: "rawGallery-galleryCreation.order.min")
5
4
  }
@@ -1,39 +1,15 @@
1
1
  extend type Mutation {
2
- createGallery(
3
- name: String!
4
- description: String
5
- publicAccessible: Boolean
6
- creationIds: [String]
7
- ): ID!
8
- createGalleryV2(
9
- name: String!
10
- description: String
11
- publicAccessible: Boolean
12
- creationIds: [String]
13
- ): ID!
14
- createFavorites(
15
- name: String!
16
- description: String
17
- publicAccessible: Boolean
18
- creationIds: [String]
19
- ): ID!
20
- createFavoriteListV2(
21
- name: String!
22
- description: String
23
- publicAccessible: Boolean
24
- creationIds: [String]
25
- ): ID!
2
+ createGallery(name: String!, description: String, publicAccessible: Boolean, creationIds: [String]): ID!
3
+ createGalleryV2(name: String!, description: String, publicAccessible: Boolean, creationIds: [String]): ID!
4
+ createFavorites(name: String!, description: String, publicAccessible: Boolean, creationIds: [String]): ID!
5
+ createFavoriteListV2(name: String!, description: String, publicAccessible: Boolean, creationIds: [String]): ID!
26
6
  editGallery(
27
7
  galleryId: ID!
28
- name: String
29
- @NotBlank(message: "common.blank")
30
- @Size(min: 1, max: 30, message: "rawGallery.name.size")
8
+ name: String @NotBlank(message: "common.blank") @Size(min: 1, max: 30, message: "rawGallery.name.size")
31
9
  description: String
32
10
  @NotBlank(message: "common.blank")
33
11
  @Size(min: 1, max: 400, message: "rawGallery.description.size")
34
- customUrl: String
35
- @NotBlank(message: "common.blank")
36
- @Size(min: 1, max: 64, message: "rawGallery.url.size")
12
+ customUrl: String @NotBlank(message: "common.blank") @Size(min: 1, max: 64, message: "rawGallery.url.size")
37
13
  ): Boolean!
38
14
  deleteGallery(galleryId: ID!): Boolean!
39
15
  addCreationsToGallery(galleryId: ID!, creationIds: [String!]!): Boolean!
@@ -1,20 +1,8 @@
1
1
  extend type Query {
2
- fetchGalleries(
3
- pageSize: Int! @Min(value: 1, message: "common.page-size.min")
4
- pageToken: String
5
- ): GalleriesPage!
6
- fetchGalleriesV2(
7
- pageSize: Int! @Min(value: 1, message: "common.page-size.min")
8
- pageToken: String
9
- ): GalleriesPageV2!
10
- fetchFavorites(
11
- pageSize: Int! @Min(value: 1, message: "common.page-size.min")
12
- pageToken: String
13
- ): GalleriesPage!
14
- fetchFavoritesV2(
15
- pageSize: Int! @Min(value: 1, message: "common.page-size.min")
16
- pageToken: String
17
- ): GalleriesPageV2!
2
+ fetchGalleries(pageSize: Int! @Min(value: 1, message: "common.page-size.min"), pageToken: String): GalleriesPage!
3
+ fetchGalleriesV2(pageSize: Int! @Min(value: 1, message: "common.page-size.min"), pageToken: String): GalleriesPageV2!
4
+ fetchFavorites(pageSize: Int! @Min(value: 1, message: "common.page-size.min"), pageToken: String): GalleriesPage!
5
+ fetchFavoritesV2(pageSize: Int! @Min(value: 1, message: "common.page-size.min"), pageToken: String): GalleriesPageV2!
18
6
  fetchUserGalleries(
19
7
  userId: ID!
20
8
  pageSize: Int! @Min(value: 1, message: "common.page-size.min")
@@ -35,18 +23,12 @@ extend type Query {
35
23
  pageSize: Int! @Min(value: 1, message: "common.page-size.min")
36
24
  pageToken: String
37
25
  ): GalleriesPageV2!
38
- fetchMyGalleries(
39
- pageSize: Int! @Min(value: 1, message: "common.page-size.min")
40
- pageToken: String
41
- ): GalleriesPage!
26
+ fetchMyGalleries(pageSize: Int! @Min(value: 1, message: "common.page-size.min"), pageToken: String): GalleriesPage!
42
27
  fetchMyGalleriesV2(
43
28
  pageSize: Int! @Min(value: 1, message: "common.page-size.min")
44
29
  pageToken: String
45
30
  ): GalleriesPageV2!
46
- fetchMyFavorites(
47
- pageSize: Int! @Min(value: 1, message: "common.page-size.min")
48
- pageToken: String
49
- ): GalleriesPage!
31
+ fetchMyFavorites(pageSize: Int! @Min(value: 1, message: "common.page-size.min"), pageToken: String): GalleriesPage!
50
32
  fetchMyFavoritesV2(
51
33
  pageSize: Int! @Min(value: 1, message: "common.page-size.min")
52
34
  pageToken: String
@@ -63,9 +45,5 @@ extend type Query {
63
45
  pageSize: Int! @Min(value: 1, message: "common.page-size.min")
64
46
  pageToken: String
65
47
  ): AssetsPage!
66
- fetchGalleryCreations(
67
- galleryId: String!,
68
- pageSize: Int!,
69
- pageToken: String
70
- ): GalleryCreationsPage!
48
+ fetchGalleryCreations(galleryId: String!, pageSize: Int!, pageToken: String): GalleryCreationsPage!
71
49
  }
@@ -31,19 +31,7 @@ extend type Query {
31
31
  pageSize: Int! @Min(value: 1, message: "common.min.positive")
32
32
  pageToken: String
33
33
  ): GalleryPage!
34
- fetchGalleryCreations(
35
- galleryId: String!
36
- pageSize: Int!
37
- pageToken: String
38
- ): GalleryCreationsPage!
39
- fetchUserGalleries(
40
- userId: ID!
41
- pageSize: Int!
42
- pageToken: String
43
- ): GalleriesPage!
44
- fetchUserGalleriesV2(
45
- userId: ID!
46
- pageSize: Int!
47
- pageToken: String
48
- ): GalleriesPageV2!
34
+ fetchGalleryCreations(galleryId: String!, pageSize: Int!, pageToken: String): GalleryCreationsPage!
35
+ fetchUserGalleries(userId: ID!, pageSize: Int!, pageToken: String): GalleriesPage!
36
+ fetchUserGalleriesV2(userId: ID!, pageSize: Int!, pageToken: String): GalleriesPageV2!
49
37
  }
@@ -1,43 +1,18 @@
1
1
  extend type Mutation {
2
2
  createNonce(address: String!, blockchain: String!, chainId: String): String!
3
3
 
4
- signInMetamask(
5
- signature: String!
6
- address: String!
7
- chainId: String
8
- restore: Boolean
9
- ): Identity!
10
- signInAdminMetamask(
11
- signature: String!
12
- address: String!
13
- chainId: String
14
- ): Identity!
4
+ signInMetamask(signature: String!, address: String!, chainId: String, restore: Boolean): Identity!
5
+ signInAdminMetamask(signature: String!, address: String!, chainId: String): Identity!
15
6
  signInTezos(signature: String!, pubkey: String!, restore: Boolean): Identity!
16
7
  signInSolana(signature: String!, pubkey: String!, restore: Boolean): Identity!
17
- signInElrond(
18
- signature: String!
19
- address: String!
20
- restore: Boolean
21
- ): Identity!
8
+ signInElrond(signature: String!, address: String!, restore: Boolean): Identity!
22
9
  signInTerra(signature: String!, address: String!, restore: Boolean): Identity!
23
- signInWalletConnect(
24
- signature: String!
25
- address: String!
26
- restore: Boolean
27
- ): Identity!
10
+ signInWalletConnect(signature: String!, address: String!, restore: Boolean): Identity!
28
11
  signInFlow(signature: String!, address: String!, restore: Boolean): Identity!
29
- signInBitcoin(
30
- signature: String!
31
- address: String!
32
- restore: Boolean
33
- ): Identity!
12
+ signInBitcoin(signature: String!, address: String!, restore: Boolean): Identity!
34
13
  signInNear(signature: String!, address: String!, restore: Boolean): Identity!
35
14
 
36
- addWalletMetamask(
37
- signature: String!
38
- address: String!
39
- chainId: String
40
- ): Boolean!
15
+ addWalletMetamask(signature: String!, address: String!, chainId: String): Boolean!
41
16
  addWalletTezos(signature: String!, pubkey: String!): Boolean!
42
17
  addWalletSolana(signature: String!, pubkey: String!): Boolean!
43
18
  addWalletElrond(signature: String!, address: String!): Boolean!
@@ -1,10 +1,6 @@
1
1
  input InputProfile {
2
- username: String
3
- @NotBlank(message: "common.blank")
4
- @Size(min: 1, max: 30, message: "profile.username.size")
5
- about: String
6
- @NotBlank(message: "common.blank")
7
- @Size(min: 1, max: 400, message: "profile.about.size")
2
+ username: String @NotBlank(message: "common.blank") @Size(min: 1, max: 30, message: "profile.username.size")
3
+ about: String @NotBlank(message: "common.blank") @Size(min: 1, max: 400, message: "profile.about.size")
8
4
  social: InputSocial
9
5
  showNsfw: Boolean
10
6
  }
@@ -2,10 +2,7 @@ input InputSocial {
2
2
  facebook: String
3
3
  @NotBlank(message: "common.blank")
4
4
  @Size(min: 1, max: 50, message: "social.facebook.size")
5
- @Pattern(
6
- regexp: ".*facebook\\.com\\/.+"
7
- message: "social.facebook.pattern"
8
- )
5
+ @Pattern(regexp: ".*facebook\\.com\\/.+", message: "social.facebook.pattern")
9
6
  twitter: String
10
7
  @NotBlank(message: "common.blank")
11
8
  @Size(min: 1, max: 50, message: "social.twitter.size")
@@ -13,11 +10,6 @@ input InputSocial {
13
10
  instagram: String
14
11
  @NotBlank(message: "common.blank")
15
12
  @Size(min: 1, max: 50, message: "social.instagram.size")
16
- @Pattern(
17
- regexp: ".*instagram\\.com\\/.+"
18
- message: "social.instagram.pattern"
19
- )
20
- website: String
21
- @NotBlank(message: "common.blank")
22
- @Size(min: 1, max: 64, message: "social.website.size")
13
+ @Pattern(regexp: ".*instagram\\.com\\/.+", message: "social.instagram.pattern")
14
+ website: String @NotBlank(message: "common.blank") @Size(min: 1, max: 64, message: "social.website.size")
23
15
  }
@@ -1,6 +1,6 @@
1
1
  extend type Mutation {
2
- uploadUserpic(file: Upload!): String!
3
- deleteUserpic: Boolean!
4
- uploadGalleryBanner(galleryId: ID!, file: Upload!): String!
5
- deleteGalleryBanner(galleryId: ID!): Boolean!
2
+ uploadUserpic(file: Upload!): String!
3
+ deleteUserpic: Boolean!
4
+ uploadGalleryBanner(galleryId: ID!, file: Upload!): String!
5
+ deleteGalleryBanner(galleryId: ID!): Boolean!
6
6
  }
@@ -1,8 +1,6 @@
1
1
  extend type Mutation {
2
2
  approveAsset(assetId: String! @NotBlank(message: "common.blank")): Boolean!
3
- approveAssets(
4
- assetIds: [String]! @NotBlank(message: "common.blank")
5
- ): Boolean!
3
+ approveAssets(assetIds: [String]! @NotBlank(message: "common.blank")): Boolean!
6
4
  hideAsset(
7
5
  assetId: String! @NotBlank(message: "common.blank")
8
6
  locationsToHide: [String]! @NotBlank(message: "common.blank")
@@ -1,10 +1,4 @@
1
1
  extend type Query {
2
- fetchAssetModerations(
3
- input: AssetModerationFilter!
4
- pageSize: Int!
5
- pageToken: String
6
- ): AssetModerationsPage!
7
- fetchAssetModeration(
8
- assetId: String! @NotBlank(message: "common.blank")
9
- ): AssetModeration!
2
+ fetchAssetModerations(input: AssetModerationFilter!, pageSize: Int!, pageToken: String): AssetModerationsPage!
3
+ fetchAssetModeration(assetId: String! @NotBlank(message: "common.blank")): AssetModeration!
10
4
  }
@@ -1,9 +1,5 @@
1
1
  extend type Query {
2
- fetchUserModerations(
3
- input: UserModerationFilter!
4
- pageSize: Int!
5
- pageToken: String
6
- ): UserModerationsPage!
2
+ fetchUserModerations(input: UserModerationFilter!, pageSize: Int!, pageToken: String): UserModerationsPage!
7
3
  fetchUserModeration(userId: ID!): UserModeration!
8
4
  fetchUserPortfolio(ownerId: String!): [CurrencyAmountPair]!
9
5
  }
@@ -1,8 +1,5 @@
1
1
  extend type Mutation {
2
- reportAsset(
3
- assetId: String! @NotBlank(message: "common.blank")
4
- reason: SelectionInput!
5
- ): Boolean!
2
+ reportAsset(assetId: String! @NotBlank(message: "common.blank"), reason: SelectionInput!): Boolean!
6
3
  rejectAssetReport(reportId: ID!): Boolean!
7
4
  rejectAssetReports(reportIds: [ID]!): Boolean!
8
5
  restrictAsset(
@@ -1,7 +1,3 @@
1
1
  extend type Query {
2
- fetchAssetReports(
3
- input: AssetReportFilter!
4
- pageSize: Int!
5
- pageToken: String
6
- ): AssetReportsPage!
2
+ fetchAssetReports(input: AssetReportFilter!, pageSize: Int!, pageToken: String): AssetReportsPage!
7
3
  }
@@ -1,8 +1,5 @@
1
1
  extend type Mutation {
2
- reportGallery(
3
- galleryId: String! @NotBlank(message: "common.blank")
4
- reason: SelectionInput!
5
- ): Boolean!
2
+ reportGallery(galleryId: String! @NotBlank(message: "common.blank"), reason: SelectionInput!): Boolean!
6
3
  rejectGalleryReport(reportId: ID!): Boolean!
7
4
  rejectGalleryReports(reportIds: [ID]!): Boolean!
8
5
  restrictGallery(
@@ -1,7 +1,3 @@
1
1
  extend type Query {
2
- fetchGalleryReports(
3
- input: GalleryReportFilter!
4
- pageSize: Int!
5
- pageToken: String
6
- ): GalleryReportsPage!
2
+ fetchGalleryReports(input: GalleryReportFilter!, pageSize: Int!, pageToken: String): GalleryReportsPage!
7
3
  }
@@ -15,7 +15,4 @@ directive @NotBlank(
15
15
  message: String = "graphql.validation.NotBlank.message"
16
16
  ) on ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION
17
17
 
18
- directive @Min(
19
- value: Int! = 0
20
- message: String = "%s"
21
- ) on ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION
18
+ directive @Min(value: Int! = 0, message: String = "%s") on ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION
@@ -1,7 +1,3 @@
1
1
  extend type Query {
2
- fetchUserReports(
3
- input: UserReportFilter!
4
- pageSize: Int!
5
- pageToken: String
6
- ): UserReportsPage!
2
+ fetchUserReports(input: UserReportFilter!, pageSize: Int!, pageToken: String): UserReportsPage!
7
3
  }
@@ -12,7 +12,4 @@ directive @NotBlank(
12
12
  message: String = "graphql.validation.NotBlank.message"
13
13
  ) on ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION
14
14
 
15
- directive @Min(
16
- value: Int! = 0
17
- message: String = "%s"
18
- ) on ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION
15
+ directive @Min(value: Int! = 0, message: String = "%s") on ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION
@@ -2,16 +2,7 @@ extend type Query {
2
2
  """
3
3
  This query should be changed according to new design
4
4
  """
5
- findCollectionsByTitle(
6
- input: SearchFilterInput!
7
- pageSize: Int!
8
- pageToken: String
9
- ): CollectionPage!
5
+ findCollectionsByTitle(input: SearchFilterInput!, pageSize: Int!, pageToken: String): CollectionPage!
10
6
 
11
- findCollections(
12
- term: String!
13
- input: CollectionFilterInput!
14
- pageSize: Int!
15
- pageToken: String
16
- ): CollectionPage!
7
+ findCollections(term: String!, input: CollectionFilterInput!, pageSize: Int!, pageToken: String): CollectionPage!
17
8
  }
@@ -13,14 +13,16 @@ extend type Query {
13
13
  ): CreationsPage!
14
14
  fetchCreations(pageSize: Int!, pageToken: String): CreationsPage!
15
15
  fetchCreationsByItemType(itemType: String!, pageSize: Int!, pageToken: String): CreationsPage!
16
- findCreations(term: String!,
17
- input: CreationFilterInput!,
18
- pageSize: Int! @Min(value: 1, message: "common.min.positive"),
16
+ findCreations(
17
+ term: String!
18
+ input: CreationFilterInput!
19
+ pageSize: Int! @Min(value: 1, message: "common.min.positive")
19
20
  pageToken: String
20
21
  ): CreationsPage!
21
- findUserCreations(ownerId: String!,
22
- input: CreationFilterInput!,
23
- pageSize: Int! @Min(value: 1, message: "common.min.positive"),
22
+ findUserCreations(
23
+ ownerId: String!
24
+ input: CreationFilterInput!
25
+ pageSize: Int! @Min(value: 1, message: "common.min.positive")
24
26
  pageToken: String
25
27
  ): CreationsPage!
26
28
  }
@@ -10,4 +10,4 @@ type Profile {
10
10
  visible: Boolean
11
11
  views: Int
12
12
  deleted: Boolean
13
- }
13
+ }
@@ -12,7 +12,4 @@ directive @NotBlank(
12
12
  message: String = "graphql.validation.NotBlank.message"
13
13
  ) on ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION
14
14
 
15
- directive @Min(
16
- value: Int! = 0
17
- message: String = "%s"
18
- ) on ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION
15
+ directive @Min(value: Int! = 0, message: String = "%s") on ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION
@@ -1,52 +1,43 @@
1
- export const authHost = 'https://auth.ludo.ninja:8080/graphql';
1
+ export const authHost = "https://auth.ludo.ninja:8080/graphql";
2
2
 
3
- export const identityHost = 'https://identities.ludo.ninja:8090/graphql';
3
+ export const identityHost = "https://identities.ludo.ninja:8090/graphql";
4
4
 
5
- export const assetsHost = 'https://assets.ludo.ninja:8090/graphql';
5
+ export const assetsHost = "https://assets.ludo.ninja:8090/graphql";
6
6
 
7
- export const collectionsHost = 'https://collections.ludo.ninja:8090/graphql';
7
+ export const collectionsHost = "https://collections.ludo.ninja:8090/graphql";
8
8
 
9
- export const serverAssetsHost =
10
- 'http://server-assets.istio.svc.k8s.local:8090/graphql';
9
+ export const serverAssetsHost = "http://server-assets.istio.svc.k8s.local:8090/graphql";
11
10
 
12
- export const serverCollectionsHost =
13
- 'http://server-collections.istio.svc.k8s.local:8090/graphql';
11
+ export const serverCollectionsHost = "http://server-collections.istio.svc.k8s.local:8090/graphql";
14
12
 
15
- export const serverIdentityHost =
16
- 'http://server-identities.istio.svc.k8s.local:8090/graphql';
13
+ export const serverIdentityHost = "http://server-identities.istio.svc.k8s.local:8090/graphql";
17
14
 
18
- export const galleriesHost = 'https://galleries.ludo.ninja:8090/graphql';
15
+ export const galleriesHost = "https://galleries.ludo.ninja:8090/graphql";
19
16
 
20
- export const serverGalleriesHost =
21
- 'http://server-galleries.istio.svc.k8s.local:8090/graphql';
17
+ export const serverGalleriesHost = "http://server-galleries.istio.svc.k8s.local:8090/graphql";
22
18
 
23
- export const mediasHost = 'https://medias.ludo.ninja:8090/graphql';
19
+ export const mediasHost = "https://medias.ludo.ninja:8090/graphql";
24
20
 
25
- export const serverImagesHost =
26
- 'http://server-images.istio.svc.k8s.local:8090/graphql';
21
+ export const serverImagesHost = "http://server-images.istio.svc.k8s.local:8090/graphql";
27
22
 
28
- export const searchHost = 'https://search.ludo.ninja:8090/graphql';
23
+ export const searchHost = "https://search.ludo.ninja:8090/graphql";
29
24
 
30
- export const showCaseHost = 'https://showcase.ludo.ninja:8090/graphql';
25
+ export const showCaseHost = "https://showcase.ludo.ninja:8090/graphql";
31
26
 
32
- export const showCaseHostSSR = 'http://ssr.showcase.ludo.ninja:8090/graphql';
27
+ export const showCaseHostSSR = "http://ssr.showcase.ludo.ninja:8090/graphql";
33
28
 
34
- export const serverShowCaseHost =
35
- 'http://server-showcase.istio.svc.k8s.local:8090/graphql';
29
+ export const serverShowCaseHost = "http://server-showcase.istio.svc.k8s.local:8090/graphql";
36
30
 
37
- export const serverSearchHost =
38
- 'http://server-search.istio.svc.k8s.local:8090/graphql';
31
+ export const serverSearchHost = "http://server-search.istio.svc.k8s.local:8090/graphql";
39
32
 
40
- export const preferencesHost = 'https://preferences.ludo.ninja:8090/graphql';
33
+ export const preferencesHost = "https://preferences.ludo.ninja:8090/graphql";
41
34
 
42
- export const preferencesHostSSR =
43
- 'https://ssr-preferences.ludo.ninja:8091/graphql';
35
+ export const preferencesHostSSR = "https://ssr-preferences.ludo.ninja:8091/graphql";
44
36
 
45
- export const searchHostSSR = 'https://ssr-search.ludo.ninja:8091/graphql';
37
+ export const searchHostSSR = "https://ssr-search.ludo.ninja:8091/graphql";
46
38
 
47
- export const serverPreferencesHost =
48
- 'http://server-preferences.istio.svc.k8s.local:8090/graphql';
39
+ export const serverPreferencesHost = "http://server-preferences.istio.svc.k8s.local:8090/graphql";
49
40
 
50
- export const ethereumHost = 'https://ethereum.ludo.ninja:8545';
41
+ export const ethereumHost = "https://ethereum.ludo.ninja:8545";
51
42
 
52
43
  export const eventsHost = `wss://events.ludo.ninja:8090/subscriptions`;
package/src/index.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  import * as schema from "./graphql_tools/__generated__/schema";
2
2
  import * as hosts from "./hosts";
3
+ import * as graphqlConfig from "./config";
4
+ import * as authCookies from "./cookies";
3
5
 
4
- export { schema, hosts };
6
+ export { schema, hosts, graphqlConfig, authCookies };