@ludo.ninja/api 1.0.46 → 1.0.48

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,7 +52,7 @@ exports.typePoliciesPortal = {
52
52
  keyArgs: ["itemId"],
53
53
  merge: true,
54
54
  },
55
- fetchCreationsByItemType: {
55
+ fetchCreationsByType: {
56
56
  keyArgs: ["nextPageToken"],
57
57
  merge: true,
58
58
  },
@@ -308,11 +308,8 @@ export type ICollectionsPage = {
308
308
  };
309
309
  export type ICreation = {
310
310
  address?: Maybe<Scalars['String']>;
311
- blockchain?: Maybe<Scalars['String']>;
312
- blurred?: Maybe<Scalars['Boolean']>;
311
+ blockchain: Scalars['String'];
313
312
  creatorsAddresses?: Maybe<Array<Maybe<Scalars['String']>>>;
314
- creatorsProfiles?: Maybe<Array<Maybe<IProfile>>>;
315
- fileSize?: Maybe<Scalars['String']>;
316
313
  id: Scalars['String'];
317
314
  itemId: Scalars['String'];
318
315
  itemType: Scalars['String'];
@@ -322,16 +319,9 @@ export type ICreation = {
322
319
  mediaPreview?: Maybe<Scalars['String']>;
323
320
  mimeType?: Maybe<Scalars['String']>;
324
321
  name?: Maybe<Scalars['String']>;
325
- nsfw?: Maybe<Scalars['Int']>;
326
322
  originalUrls?: Maybe<Array<Maybe<Scalars['String']>>>;
327
- ownersAddresses?: Maybe<Array<Maybe<Scalars['String']>>>;
328
- ownersProfiles?: Maybe<Array<Maybe<IProfile>>>;
329
- prices?: Maybe<Array<Maybe<ICurrencyAmountPair>>>;
330
323
  rank?: Maybe<Scalars['Float']>;
331
- sizeRatio?: Maybe<Scalars['Float']>;
332
324
  tokenId?: Maybe<Scalars['String']>;
333
- views?: Maybe<Scalars['Int']>;
334
- visible?: Maybe<Scalars['Boolean']>;
335
325
  };
336
326
  export type ICreationFilterInput = {
337
327
  type: Scalars['String'];
@@ -340,33 +330,11 @@ export type ICreationFilterInput = {
340
330
  time: Scalars['String'];
341
331
  status: Scalars['String'];
342
332
  };
343
- export type ICreationShort = {
344
- id: Scalars['String'];
345
- itemType: Scalars['String'];
346
- itemId: Scalars['String'];
347
- address?: Maybe<Scalars['String']>;
348
- tokenId?: Maybe<Scalars['String']>;
349
- blockchain: Scalars['String'];
350
- name?: Maybe<Scalars['String']>;
351
- likes?: Maybe<Scalars['Int']>;
352
- liked?: Maybe<Scalars['Boolean']>;
353
- creatorsAddresses?: Maybe<Array<Maybe<Scalars['String']>>>;
354
- originalUrls?: Maybe<Array<Maybe<Scalars['String']>>>;
355
- media?: Maybe<Scalars['String']>;
356
- mediaPreview?: Maybe<Scalars['String']>;
357
- mimeType?: Maybe<Scalars['String']>;
358
- rank?: Maybe<Scalars['Float']>;
359
- };
360
333
  export type ICreationsPage = {
361
334
  creations?: Maybe<Array<Maybe<ICreation>>>;
362
335
  nextPageToken?: Maybe<Scalars['String']>;
363
336
  results?: Maybe<Scalars['Long']>;
364
337
  };
365
- export type ICreationsShortPage = {
366
- creations: Array<Maybe<ICreationShort>>;
367
- nextPageToken?: Maybe<Scalars['String']>;
368
- results?: Maybe<Scalars['Long']>;
369
- };
370
338
  export type ICurrencyAmountPair = {
371
339
  currency?: Maybe<Scalars['String']>;
372
340
  amount?: Maybe<Scalars['Float']>;
@@ -1188,7 +1156,7 @@ export type IProfilePage = {
1188
1156
  export type IQuery = {
1189
1157
  fetchAllAssets: IAssetsPage;
1190
1158
  fetchAllBannerAssets: IBannerAssetsPage;
1191
- fetchAllCreations: ICreationsShortPage;
1159
+ fetchAllCreations: ICreationsPage;
1192
1160
  fetchAllMarkets: IMarketsPage;
1193
1161
  fetchAllShowcaseAssets: IShowcaseAssetsPage;
1194
1162
  fetchAllShowcaseItems: IShowcaseItemsPage;
@@ -1211,7 +1179,7 @@ export type IQuery = {
1211
1179
  fetchCollections: ICollectionsPage;
1212
1180
  fetchCollectionsByIds: Array<ICollection>;
1213
1181
  fetchCreation: ICreation;
1214
- fetchCreationsByItemType: ICreationsShortPage;
1182
+ fetchCreationsByType: ICreationsPage;
1215
1183
  fetchDynamicAssetData: IDynamicAssetData;
1216
1184
  fetchDynamicAssetsData: Array<Maybe<IDynamicAssetData>>;
1217
1185
  fetchDynamicCollectionData: IDynamicCollectionData;
@@ -1390,7 +1358,7 @@ export type IQueryFetchCollectionsByIdsArgs = {
1390
1358
  export type IQueryFetchCreationArgs = {
1391
1359
  id: Scalars['String'];
1392
1360
  };
1393
- export type IQueryFetchCreationsByItemTypeArgs = {
1361
+ export type IQueryFetchCreationsByTypeArgs = {
1394
1362
  itemType: Scalars['String'];
1395
1363
  pageSize: Scalars['Int'];
1396
1364
  pageToken?: Maybe<Scalars['String']>;
@@ -2460,8 +2428,8 @@ export type IFetchAllCreationsQueryVariables = Exact<{
2460
2428
  pageToken?: Maybe<Scalars['String']>;
2461
2429
  }>;
2462
2430
  export type IFetchAllCreationsQuery = {
2463
- fetchAllCreations: (Pick<ICreationsShortPage, 'nextPageToken'> & {
2464
- creations: Array<Maybe<Pick<ICreationShort, 'itemType' | 'itemId' | 'blockchain' | 'rank' | 'address' | 'liked' | 'likes' | 'tokenId' | 'name' | 'creatorsAddresses' | 'originalUrls' | 'media' | 'mediaPreview' | 'mimeType'>>>;
2431
+ fetchAllCreations: (Pick<ICreationsPage, 'nextPageToken'> & {
2432
+ creations?: Maybe<Array<Maybe<Pick<ICreation, 'itemType' | 'itemId' | 'blockchain' | 'rank' | 'address' | 'liked' | 'likes' | 'tokenId' | 'name' | 'creatorsAddresses' | 'originalUrls' | 'media' | 'mediaPreview' | 'mimeType'>>>>;
2465
2433
  });
2466
2434
  };
2467
2435
  export type IFetchAssetsCountQueryVariables = Exact<{
@@ -2481,14 +2449,14 @@ export type IFindCollectionsQuery = {
2481
2449
  })>>;
2482
2450
  });
2483
2451
  };
2484
- export type IFetchCreationsByItemTypeQueryVariables = Exact<{
2452
+ export type IFetchCreationsByTypeQueryVariables = Exact<{
2485
2453
  itemType: Scalars['String'];
2486
2454
  pageSize: Scalars['Int'];
2487
2455
  pageToken?: Maybe<Scalars['String']>;
2488
2456
  }>;
2489
- export type IFetchCreationsByItemTypeQuery = {
2490
- fetchCreationsByItemType: (Pick<ICreationsShortPage, 'nextPageToken'> & {
2491
- creations: Array<Maybe<Pick<ICreationShort, 'itemType' | 'itemId' | 'blockchain' | 'rank' | 'liked' | 'likes' | 'address' | 'tokenId' | 'name' | 'creatorsAddresses' | 'originalUrls' | 'media' | 'mediaPreview' | 'mimeType'>>>;
2457
+ export type IFetchCreationsByTypeQuery = {
2458
+ fetchCreationsByType: (Pick<ICreationsPage, 'nextPageToken'> & {
2459
+ creations?: Maybe<Array<Maybe<Pick<ICreation, 'itemType' | 'itemId' | 'blockchain' | 'rank' | 'liked' | 'likes' | 'address' | 'tokenId' | 'name' | 'creatorsAddresses' | 'originalUrls' | 'media' | 'mediaPreview' | 'mimeType'>>>>;
2492
2460
  });
2493
2461
  };
2494
2462
  export type IFindAllTopEntitiesByNameQueryVariables = Exact<{
@@ -2524,10 +2492,7 @@ export type IFindCreationsQueryVariables = Exact<{
2524
2492
  }>;
2525
2493
  export type IFindCreationsQuery = {
2526
2494
  findCreations: (Pick<ICreationsPage, 'nextPageToken' | 'results'> & {
2527
- creations?: Maybe<Array<Maybe<(Pick<ICreation, 'itemType' | 'address' | 'tokenId' | 'itemId' | 'blockchain' | 'name' | 'creatorsAddresses' | 'ownersAddresses' | 'originalUrls' | 'media' | 'mediaPreview' | 'mimeType' | 'rank' | 'sizeRatio' | 'fileSize' | 'nsfw' | 'likes' | 'liked' | 'views' | 'visible' | 'blurred'> & {
2528
- creatorsProfiles?: Maybe<Array<Maybe<Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'followers' | 'views' | 'createdAt' | 'deletedAt' | 'visible' | 'deleted'>>>>;
2529
- ownersProfiles?: Maybe<Array<Maybe<Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'followings' | 'followers' | 'views' | 'createdAt' | 'deletedAt' | 'visible' | 'deleted'>>>>;
2530
- })>>>;
2495
+ creations?: Maybe<Array<Maybe<Pick<ICreation, 'itemType' | 'address' | 'tokenId' | 'itemId' | 'blockchain' | 'name' | 'creatorsAddresses' | 'originalUrls' | 'media' | 'mediaPreview' | 'mimeType' | 'rank' | 'likes' | 'liked'>>>>;
2531
2496
  });
2532
2497
  };
2533
2498
  export type IFindProfilesByNameQueryVariables = Exact<{
@@ -2570,10 +2535,7 @@ export type IFindUserCreationsQueryVariables = Exact<{
2570
2535
  }>;
2571
2536
  export type IFindUserCreationsQuery = {
2572
2537
  findUserCreations: (Pick<ICreationsPage, 'nextPageToken' | 'results'> & {
2573
- creations?: Maybe<Array<Maybe<(Pick<ICreation, 'id' | 'itemType' | 'tokenId' | 'address' | 'itemId' | 'blockchain' | 'rank' | 'name' | 'creatorsAddresses' | 'ownersAddresses' | 'originalUrls' | 'media' | 'mediaPreview' | 'mimeType' | 'sizeRatio' | 'fileSize' | 'nsfw' | 'likes' | 'views' | 'visible' | 'blurred'> & {
2574
- creatorsProfiles?: Maybe<Array<Maybe<Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'followers' | 'followings' | 'createdAt' | 'deletedAt' | 'visible' | 'views' | 'deleted'>>>>;
2575
- ownersProfiles?: Maybe<Array<Maybe<Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'followers' | 'followings' | 'createdAt' | 'deletedAt' | 'visible' | 'views' | 'deleted'>>>>;
2576
- })>>>;
2538
+ creations?: Maybe<Array<Maybe<Pick<ICreation, 'id' | 'itemType' | 'tokenId' | 'address' | 'itemId' | 'blockchain' | 'rank' | 'name' | 'creatorsAddresses' | 'originalUrls' | 'media' | 'mediaPreview' | 'mimeType' | 'likes'>>>>;
2577
2539
  });
2578
2540
  };
2579
2541
  export type IFindUserShowcaseItemsQueryVariables = Exact<{
@@ -4858,18 +4820,18 @@ export declare function useFindCollectionsLazyQuery(baseOptions?: Apollo.LazyQue
4858
4820
  export type FindCollectionsQueryHookResult = ReturnType<typeof useFindCollectionsQuery>;
4859
4821
  export type FindCollectionsLazyQueryHookResult = ReturnType<typeof useFindCollectionsLazyQuery>;
4860
4822
  export type FindCollectionsQueryResult = Apollo.QueryResult<IFindCollectionsQuery, IFindCollectionsQueryVariables>;
4861
- export declare const FetchCreationsByItemTypeDocument: Apollo.DocumentNode;
4823
+ export declare const FetchCreationsByTypeDocument: Apollo.DocumentNode;
4862
4824
  /**
4863
- * __useFetchCreationsByItemTypeQuery__
4825
+ * __useFetchCreationsByTypeQuery__
4864
4826
  *
4865
- * To run a query within a React component, call `useFetchCreationsByItemTypeQuery` and pass it any options that fit your needs.
4866
- * When your component renders, `useFetchCreationsByItemTypeQuery` returns an object from Apollo Client that contains loading, error, and data properties
4827
+ * To run a query within a React component, call `useFetchCreationsByTypeQuery` and pass it any options that fit your needs.
4828
+ * When your component renders, `useFetchCreationsByTypeQuery` returns an object from Apollo Client that contains loading, error, and data properties
4867
4829
  * you can use to render your UI.
4868
4830
  *
4869
4831
  * @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;
4870
4832
  *
4871
4833
  * @example
4872
- * const { data, loading, error } = useFetchCreationsByItemTypeQuery({
4834
+ * const { data, loading, error } = useFetchCreationsByTypeQuery({
4873
4835
  * variables: {
4874
4836
  * itemType: // value for 'itemType'
4875
4837
  * pageSize: // value for 'pageSize'
@@ -4877,19 +4839,19 @@ export declare const FetchCreationsByItemTypeDocument: Apollo.DocumentNode;
4877
4839
  * },
4878
4840
  * });
4879
4841
  */
4880
- export declare function useFetchCreationsByItemTypeQuery(baseOptions: Apollo.QueryHookOptions<IFetchCreationsByItemTypeQuery, IFetchCreationsByItemTypeQueryVariables>): Apollo.QueryResult<IFetchCreationsByItemTypeQuery, Exact<{
4842
+ export declare function useFetchCreationsByTypeQuery(baseOptions: Apollo.QueryHookOptions<IFetchCreationsByTypeQuery, IFetchCreationsByTypeQueryVariables>): Apollo.QueryResult<IFetchCreationsByTypeQuery, Exact<{
4881
4843
  itemType: string;
4882
4844
  pageSize: number;
4883
4845
  pageToken?: Maybe<string> | undefined;
4884
4846
  }>>;
4885
- export declare function useFetchCreationsByItemTypeLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchCreationsByItemTypeQuery, IFetchCreationsByItemTypeQueryVariables>): Apollo.LazyQueryResultTuple<IFetchCreationsByItemTypeQuery, Exact<{
4847
+ export declare function useFetchCreationsByTypeLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchCreationsByTypeQuery, IFetchCreationsByTypeQueryVariables>): Apollo.LazyQueryResultTuple<IFetchCreationsByTypeQuery, Exact<{
4886
4848
  itemType: string;
4887
4849
  pageSize: number;
4888
4850
  pageToken?: Maybe<string> | undefined;
4889
4851
  }>>;
4890
- export type FetchCreationsByItemTypeQueryHookResult = ReturnType<typeof useFetchCreationsByItemTypeQuery>;
4891
- export type FetchCreationsByItemTypeLazyQueryHookResult = ReturnType<typeof useFetchCreationsByItemTypeLazyQuery>;
4892
- export type FetchCreationsByItemTypeQueryResult = Apollo.QueryResult<IFetchCreationsByItemTypeQuery, IFetchCreationsByItemTypeQueryVariables>;
4852
+ export type FetchCreationsByTypeQueryHookResult = ReturnType<typeof useFetchCreationsByTypeQuery>;
4853
+ export type FetchCreationsByTypeLazyQueryHookResult = ReturnType<typeof useFetchCreationsByTypeLazyQuery>;
4854
+ export type FetchCreationsByTypeQueryResult = Apollo.QueryResult<IFetchCreationsByTypeQuery, IFetchCreationsByTypeQueryVariables>;
4893
4855
  export declare const FindAllTopEntitiesByNameDocument: Apollo.DocumentNode;
4894
4856
  /**
4895
4857
  * __useFindAllTopEntitiesByNameQuery__
@@ -27,7 +27,7 @@ exports.useUploadGalleryBannerMutation = exports.UploadGalleryBannerDocument = e
27
27
  exports.FetchMyGalleriesV2Document = exports.useFetchMyFavoritesV2LazyQuery = exports.useFetchMyFavoritesV2Query = exports.FetchMyFavoritesV2Document = exports.useFetchMyFavoritesLazyQuery = exports.useFetchMyFavoritesQuery = exports.FetchMyFavoritesDocument = exports.useFetchGalleryV2LazyQuery = exports.useFetchGalleryV2Query = exports.FetchGalleryV2Document = exports.useFetchGalleryCreationsLazyQuery = exports.useFetchGalleryCreationsQuery = exports.FetchGalleryCreationsDocument = exports.useFetchGalleryLazyQuery = exports.useFetchGalleryQuery = exports.FetchGalleryDocument = exports.useRemoveCreationFromGalleryV2Mutation = exports.RemoveCreationFromGalleryV2Document = exports.useRemoveCreationFromGalleryMutation = exports.RemoveCreationFromGalleryDocument = exports.useRemoveCollectionFromGalleryV2Mutation = exports.RemoveCollectionFromGalleryV2Document = exports.useRemoveCollectionFromGalleryMutation = exports.RemoveCollectionFromGalleryDocument = exports.useRemoveAssetFromGalleryV2Mutation = exports.RemoveAssetFromGalleryV2Document = exports.useRemoveAssetFromGalleryMutation = exports.RemoveAssetFromGalleryDocument = exports.useEditGalleryMutation = exports.EditGalleryDocument = exports.useDeleteGalleryBannerMutation = exports.DeleteGalleryBannerDocument = exports.useDeleteGalleryMutation = exports.DeleteGalleryDocument = exports.useCreateGalleryV2Mutation = exports.CreateGalleryV2Document = exports.useCreateGalleryMutation = exports.CreateGalleryDocument = exports.useCreateFavoritesMutation = exports.CreateFavoritesDocument = exports.useCreateFavoriteListV2Mutation = exports.CreateFavoriteListV2Document = exports.useAddCreationsToGalleryV2Mutation = exports.AddCreationsToGalleryV2Document = exports.useAddCreationsToGalleryMutation = exports.AddCreationsToGalleryDocument = exports.useAddCollectionsToGalleryV2Mutation = exports.AddCollectionsToGalleryV2Document = exports.useAddCollectionsToGalleryMutation = exports.AddCollectionsToGalleryDocument = void 0;
28
28
  exports.FetchUserWalletsDocument = exports.useFetchProfileLazyQuery = exports.useFetchProfileQuery = exports.FetchProfileDocument = exports.useUpdateProfileMutation = exports.UpdateProfileDocument = exports.useSignInTezosMutation = exports.SignInTezosDocument = exports.useSignInSolanaMutation = exports.SignInSolanaDocument = exports.useSignInMetamaskMutation = exports.SignInMetamaskDocument = exports.useSignInFlowMutation = exports.SignInFlowDocument = exports.useSignInElrondMutation = exports.SignInElrondDocument = exports.useRevokeTokenMutation = exports.RevokeTokenDocument = exports.useRefreshTokenMutation = exports.RefreshTokenDocument = exports.useUseInviteCodeMutation = exports.UseInviteCodeDocument = exports.useGenerateNewInviteCodesMutation = exports.GenerateNewInviteCodesDocument = exports.useCreateNonceMutation = exports.CreateNonceDocument = exports.useAddWalletTezosMutation = exports.AddWalletTezosDocument = exports.useAddWalletSolanaMutation = exports.AddWalletSolanaDocument = exports.useAddWalletMetamaskMutation = exports.AddWalletMetamaskDocument = exports.useAddWalletFlowMutation = exports.AddWalletFlowDocument = exports.useAddWalletElrondMutation = exports.AddWalletElrondDocument = exports.useFetchUserGalleriesV2LazyQuery = exports.useFetchUserGalleriesV2Query = exports.FetchUserGalleriesV2Document = exports.useFetchUserGalleriesLazyQuery = exports.useFetchUserGalleriesQuery = exports.FetchUserGalleriesDocument = exports.useFetchUserFavoritesV2LazyQuery = exports.useFetchUserFavoritesV2Query = exports.FetchUserFavoritesV2Document = exports.useFetchUserFavoritesLazyQuery = exports.useFetchUserFavoritesQuery = exports.FetchUserFavoritesDocument = exports.useFetchMyGalleriesV2LazyQuery = exports.useFetchMyGalleriesV2Query = void 0;
29
29
  exports.FetchAssetsCountDocument = exports.useFetchAllCreationsLazyQuery = exports.useFetchAllCreationsQuery = exports.FetchAllCreationsDocument = exports.useFetchSetsSearchResultTypeSelectionsLazyQuery = exports.useFetchSetsSearchResultTypeSelectionsQuery = exports.FetchSetsSearchResultTypeSelectionsDocument = exports.useFetchSearchResultStatusSelectionsLazyQuery = exports.useFetchSearchResultStatusSelectionsQuery = exports.FetchSearchResultStatusSelectionsDocument = exports.useFetchSearchResultCategorySelectionsLazyQuery = exports.useFetchSearchResultCategorySelectionsQuery = exports.FetchSearchResultCategorySelectionsDocument = exports.useFetchSearchResultBlockchainSelectionsLazyQuery = exports.useFetchSearchResultBlockchainSelectionsQuery = exports.FetchSearchResultBlockchainSelectionsDocument = exports.useFetchUserInterestsLazyQuery = exports.useFetchUserInterestsQuery = exports.FetchUserInterestsDocument = exports.useFetchUserExpectationsLazyQuery = exports.useFetchUserExpectationsQuery = exports.FetchUserExpectationsDocument = exports.useFetchSearchResultTimeSelectionsLazyQuery = exports.useFetchSearchResultTimeSelectionsQuery = exports.FetchSearchResultTimeSelectionsDocument = exports.useFetchInterestsLazyQuery = exports.useFetchInterestsQuery = exports.FetchInterestsDocument = exports.useFetchExpectationsLazyQuery = exports.useFetchExpectationsQuery = exports.FetchExpectationsDocument = exports.useSaveUserInterestsMutation = exports.SaveUserInterestsDocument = exports.useSaveUserExpectationsMutation = exports.SaveUserExpectationsDocument = exports.useFetchOpportunitiesLazyQuery = exports.useFetchOpportunitiesQuery = exports.FetchOpportunitiesDocument = exports.useOpenOpportunityMutation = exports.OpenOpportunityDocument = exports.useCreateOpportunityMutation = exports.CreateOpportunityDocument = exports.useFetchUserpicLazyQuery = exports.useFetchUserpicQuery = exports.FetchUserpicDocument = exports.useGetMyInviteCodesLazyQuery = exports.useGetMyInviteCodesQuery = exports.GetMyInviteCodesDocument = exports.useFetchUserWalletsLazyQuery = exports.useFetchUserWalletsQuery = void 0;
30
- exports.useFindUserShowcaseItemsLazyQuery = exports.useFindUserShowcaseItemsQuery = exports.FindUserShowcaseItemsDocument = exports.useFindUserCreationsLazyQuery = exports.useFindUserCreationsQuery = exports.FindUserCreationsDocument = exports.useFindShowcaseItemsLazyQuery = exports.useFindShowcaseItemsQuery = exports.FindShowcaseItemsDocument = exports.useFindSetsLazyQuery = exports.useFindSetsQuery = exports.FindSetsDocument = exports.useFindProfilesByNameLazyQuery = exports.useFindProfilesByNameQuery = exports.FindProfilesByNameDocument = exports.useFindCreationsLazyQuery = exports.useFindCreationsQuery = exports.FindCreationsDocument = exports.useFetchUserPortfolioLazyQuery = exports.useFetchUserPortfolioQuery = exports.FetchUserPortfolioDocument = exports.useFindAllTopEntitiesByNameLazyQuery = exports.useFindAllTopEntitiesByNameQuery = exports.FindAllTopEntitiesByNameDocument = exports.useFetchCreationsByItemTypeLazyQuery = exports.useFetchCreationsByItemTypeQuery = exports.FetchCreationsByItemTypeDocument = exports.useFindCollectionsLazyQuery = exports.useFindCollectionsQuery = exports.FindCollectionsDocument = exports.useFetchAssetsCountLazyQuery = exports.useFetchAssetsCountQuery = void 0;
30
+ exports.useFindUserShowcaseItemsLazyQuery = exports.useFindUserShowcaseItemsQuery = exports.FindUserShowcaseItemsDocument = exports.useFindUserCreationsLazyQuery = exports.useFindUserCreationsQuery = exports.FindUserCreationsDocument = exports.useFindShowcaseItemsLazyQuery = exports.useFindShowcaseItemsQuery = exports.FindShowcaseItemsDocument = exports.useFindSetsLazyQuery = exports.useFindSetsQuery = exports.FindSetsDocument = exports.useFindProfilesByNameLazyQuery = exports.useFindProfilesByNameQuery = exports.FindProfilesByNameDocument = exports.useFindCreationsLazyQuery = exports.useFindCreationsQuery = exports.FindCreationsDocument = exports.useFetchUserPortfolioLazyQuery = exports.useFetchUserPortfolioQuery = exports.FetchUserPortfolioDocument = exports.useFindAllTopEntitiesByNameLazyQuery = exports.useFindAllTopEntitiesByNameQuery = exports.FindAllTopEntitiesByNameDocument = exports.useFetchCreationsByTypeLazyQuery = exports.useFetchCreationsByTypeQuery = exports.FetchCreationsByTypeDocument = exports.useFindCollectionsLazyQuery = exports.useFindCollectionsQuery = exports.FindCollectionsDocument = exports.useFetchAssetsCountLazyQuery = exports.useFetchAssetsCountQuery = void 0;
31
31
  /* eslint-disable */
32
32
  const client_1 = require("@apollo/client");
33
33
  const Apollo = __importStar(require("@apollo/client"));
@@ -3335,9 +3335,9 @@ function useFindCollectionsLazyQuery(baseOptions) {
3335
3335
  return Apollo.useLazyQuery(exports.FindCollectionsDocument, baseOptions);
3336
3336
  }
3337
3337
  exports.useFindCollectionsLazyQuery = useFindCollectionsLazyQuery;
3338
- exports.FetchCreationsByItemTypeDocument = (0, client_1.gql) `
3339
- query FetchCreationsByItemType($itemType: String!, $pageSize: Int!, $pageToken: String) {
3340
- fetchCreationsByItemType(
3338
+ exports.FetchCreationsByTypeDocument = (0, client_1.gql) `
3339
+ query FetchCreationsByType($itemType: String!, $pageSize: Int!, $pageToken: String) {
3340
+ fetchCreationsByType(
3341
3341
  itemType: $itemType
3342
3342
  pageSize: $pageSize
3343
3343
  pageToken: $pageToken
@@ -3363,16 +3363,16 @@ exports.FetchCreationsByItemTypeDocument = (0, client_1.gql) `
3363
3363
  }
3364
3364
  `;
3365
3365
  /**
3366
- * __useFetchCreationsByItemTypeQuery__
3366
+ * __useFetchCreationsByTypeQuery__
3367
3367
  *
3368
- * To run a query within a React component, call `useFetchCreationsByItemTypeQuery` and pass it any options that fit your needs.
3369
- * When your component renders, `useFetchCreationsByItemTypeQuery` returns an object from Apollo Client that contains loading, error, and data properties
3368
+ * To run a query within a React component, call `useFetchCreationsByTypeQuery` and pass it any options that fit your needs.
3369
+ * When your component renders, `useFetchCreationsByTypeQuery` returns an object from Apollo Client that contains loading, error, and data properties
3370
3370
  * you can use to render your UI.
3371
3371
  *
3372
3372
  * @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;
3373
3373
  *
3374
3374
  * @example
3375
- * const { data, loading, error } = useFetchCreationsByItemTypeQuery({
3375
+ * const { data, loading, error } = useFetchCreationsByTypeQuery({
3376
3376
  * variables: {
3377
3377
  * itemType: // value for 'itemType'
3378
3378
  * pageSize: // value for 'pageSize'
@@ -3380,14 +3380,14 @@ exports.FetchCreationsByItemTypeDocument = (0, client_1.gql) `
3380
3380
  * },
3381
3381
  * });
3382
3382
  */
3383
- function useFetchCreationsByItemTypeQuery(baseOptions) {
3384
- return Apollo.useQuery(exports.FetchCreationsByItemTypeDocument, baseOptions);
3383
+ function useFetchCreationsByTypeQuery(baseOptions) {
3384
+ return Apollo.useQuery(exports.FetchCreationsByTypeDocument, baseOptions);
3385
3385
  }
3386
- exports.useFetchCreationsByItemTypeQuery = useFetchCreationsByItemTypeQuery;
3387
- function useFetchCreationsByItemTypeLazyQuery(baseOptions) {
3388
- return Apollo.useLazyQuery(exports.FetchCreationsByItemTypeDocument, baseOptions);
3386
+ exports.useFetchCreationsByTypeQuery = useFetchCreationsByTypeQuery;
3387
+ function useFetchCreationsByTypeLazyQuery(baseOptions) {
3388
+ return Apollo.useLazyQuery(exports.FetchCreationsByTypeDocument, baseOptions);
3389
3389
  }
3390
- exports.useFetchCreationsByItemTypeLazyQuery = useFetchCreationsByItemTypeLazyQuery;
3390
+ exports.useFetchCreationsByTypeLazyQuery = useFetchCreationsByTypeLazyQuery;
3391
3391
  exports.FindAllTopEntitiesByNameDocument = (0, client_1.gql) `
3392
3392
  query FindAllTopEntitiesByName($name: String!, $pageSize: Int!) {
3393
3393
  findAllTopEntitiesByName(name: $name, pageSize: $pageSize) {
@@ -3563,45 +3563,13 @@ exports.FindCreationsDocument = (0, client_1.gql) `
3563
3563
  blockchain
3564
3564
  name
3565
3565
  creatorsAddresses
3566
- creatorsProfiles {
3567
- userId
3568
- username
3569
- about
3570
- userpic
3571
- followers
3572
- views
3573
- createdAt
3574
- deletedAt
3575
- visible
3576
- deleted
3577
- }
3578
- ownersAddresses
3579
- ownersProfiles {
3580
- userId
3581
- username
3582
- about
3583
- userpic
3584
- followings
3585
- followers
3586
- views
3587
- createdAt
3588
- deletedAt
3589
- visible
3590
- deleted
3591
- }
3592
3566
  originalUrls
3593
3567
  media
3594
3568
  mediaPreview
3595
3569
  mimeType
3596
3570
  rank
3597
- sizeRatio
3598
- fileSize
3599
- nsfw
3600
3571
  likes
3601
3572
  liked
3602
- views
3603
- visible
3604
- blurred
3605
3573
  }
3606
3574
  }
3607
3575
  }
@@ -3799,44 +3767,11 @@ exports.FindUserCreationsDocument = (0, client_1.gql) `
3799
3767
  rank
3800
3768
  name
3801
3769
  creatorsAddresses
3802
- creatorsProfiles {
3803
- userId
3804
- username
3805
- about
3806
- userpic
3807
- followers
3808
- followings
3809
- createdAt
3810
- deletedAt
3811
- visible
3812
- views
3813
- deleted
3814
- }
3815
- ownersAddresses
3816
- ownersProfiles {
3817
- userId
3818
- username
3819
- about
3820
- userpic
3821
- followers
3822
- followings
3823
- createdAt
3824
- deletedAt
3825
- visible
3826
- views
3827
- deleted
3828
- }
3829
3770
  originalUrls
3830
3771
  media
3831
3772
  mediaPreview
3832
3773
  mimeType
3833
- sizeRatio
3834
- fileSize
3835
- nsfw
3836
3774
  likes
3837
- views
3838
- visible
3839
- blurred
3840
3775
  }
3841
3776
  }
3842
3777
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludo.ninja/api",
3
- "version": "1.0.46",
3
+ "version": "1.0.48",
4
4
  "main": "./build/index.js",
5
5
  "scripts": {
6
6
  "test": "jest",
@@ -51,7 +51,7 @@ export const typePoliciesPortal: TypePolicies = {
51
51
  keyArgs: ["itemId"],
52
52
  merge: true,
53
53
  },
54
- fetchCreationsByItemType: {
54
+ fetchCreationsByType: {
55
55
  keyArgs: ["nextPageToken"],
56
56
  merge: true,
57
57
  },
@@ -1,5 +1,5 @@
1
- query FetchCreationsByItemType($itemType: String!, $pageSize: Int!, $pageToken: String) {
2
- fetchCreationsByItemType(itemType: $itemType, pageSize: $pageSize, pageToken: $pageToken) {
1
+ query FetchCreationsByType($itemType: String!, $pageSize: Int!, $pageToken: String) {
2
+ fetchCreationsByType(itemType: $itemType, pageSize: $pageSize, pageToken: $pageToken) {
3
3
  nextPageToken
4
4
  creations {
5
5
  itemType
@@ -10,45 +10,13 @@ query FindCreations($term: String!, $input: CreationFilterInput!, $pageSize: Int
10
10
  blockchain
11
11
  name
12
12
  creatorsAddresses
13
- creatorsProfiles {
14
- userId
15
- username
16
- about
17
- userpic
18
- followers
19
- views
20
- createdAt
21
- deletedAt
22
- visible
23
- deleted
24
- }
25
- ownersAddresses
26
- ownersProfiles {
27
- userId
28
- username
29
- about
30
- userpic
31
- followings
32
- followers
33
- views
34
- createdAt
35
- deletedAt
36
- visible
37
- deleted
38
- }
39
13
  originalUrls
40
14
  media
41
15
  mediaPreview
42
16
  mimeType
43
17
  rank
44
- sizeRatio
45
- fileSize
46
- nsfw
47
18
  likes
48
19
  liked
49
- views
50
- visible
51
- blurred
52
20
  }
53
21
  }
54
22
  }
@@ -12,44 +12,11 @@ query FindUserCreations($ownerId: String!, $input: CreationFilterInput!, $pageSi
12
12
  rank
13
13
  name
14
14
  creatorsAddresses
15
- creatorsProfiles {
16
- userId
17
- username
18
- about
19
- userpic
20
- followers
21
- followings
22
- createdAt
23
- deletedAt
24
- visible
25
- views
26
- deleted
27
- }
28
- ownersAddresses
29
- ownersProfiles {
30
- userId
31
- username
32
- about
33
- userpic
34
- followers
35
- followings
36
- createdAt
37
- deletedAt
38
- visible
39
- views
40
- deleted
41
- }
42
15
  originalUrls
43
16
  media
44
17
  mediaPreview
45
18
  mimeType
46
- sizeRatio
47
- fileSize
48
- nsfw
49
19
  likes
50
- views
51
- visible
52
- blurred
53
20
  }
54
21
  }
55
22
  }
@@ -316,11 +316,8 @@ type CollectionsPage {
316
316
 
317
317
  type Creation {
318
318
  address: String
319
- blockchain: String
320
- blurred: Boolean
319
+ blockchain: String!
321
320
  creatorsAddresses: [String]
322
- creatorsProfiles: [Profile]
323
- fileSize: String
324
321
  id: String!
325
322
  itemId: String!
326
323
  itemType: String!
@@ -330,16 +327,9 @@ type Creation {
330
327
  mediaPreview: String
331
328
  mimeType: String
332
329
  name: String
333
- nsfw: Int
334
330
  originalUrls: [String]
335
- ownersAddresses: [String]
336
- ownersProfiles: [Profile]
337
- prices: [CurrencyAmountPair]
338
331
  rank: Float
339
- sizeRatio: Float
340
332
  tokenId: String
341
- views: Int
342
- visible: Boolean
343
333
  }
344
334
 
345
335
  input CreationFilterInput {
@@ -350,36 +340,12 @@ input CreationFilterInput {
350
340
  status: String!
351
341
  }
352
342
 
353
- type CreationShort {
354
- id: String!
355
- itemType: String!
356
- itemId: String!
357
- address: String
358
- tokenId: String
359
- blockchain: String!
360
- name: String
361
- likes: Int
362
- liked: Boolean
363
- creatorsAddresses: [String]
364
- originalUrls: [String]
365
- media: String
366
- mediaPreview: String
367
- mimeType: String
368
- rank: Float
369
- }
370
-
371
343
  type CreationsPage {
372
344
  creations: [Creation]
373
345
  nextPageToken: String
374
346
  results: Long
375
347
  }
376
348
 
377
- type CreationsShortPage {
378
- creations: [CreationShort]!
379
- nextPageToken: String
380
- results: Long
381
- }
382
-
383
349
  type CurrencyAmountPair {
384
350
  currency: String
385
351
  amount: Float
@@ -907,7 +873,7 @@ type ProfilePage {
907
873
  type Query {
908
874
  fetchAllAssets(pageSize: Int!, pageToken: String): AssetsPage!
909
875
  fetchAllBannerAssets(pageSize: Int!, pageToken: String): BannerAssetsPage!
910
- fetchAllCreations(pageSize: Int!, pageToken: String): CreationsShortPage!
876
+ fetchAllCreations(pageSize: Int!, pageToken: String): CreationsPage!
911
877
  fetchAllMarkets(pageSize: Int!, pageToken: String): MarketsPage!
912
878
  fetchAllShowcaseAssets(pageSize: Int!, pageToken: String): ShowcaseAssetsPage!
913
879
  fetchAllShowcaseItems(pageSize: Int!, pageToken: String): ShowcaseItemsPage!
@@ -932,7 +898,7 @@ type Query {
932
898
  fetchCollections(pageSize: Int!, pageToken: String): CollectionsPage!
933
899
  fetchCollectionsByIds(collectionIds: [String!]!): [Collection!]!
934
900
  fetchCreation(id: String!): Creation!
935
- fetchCreationsByItemType(itemType: String!, pageSize: Int!, pageToken: String): CreationsShortPage!
901
+ fetchCreationsByType(itemType: String!, pageSize: Int!, pageToken: String): CreationsPage!
936
902
  fetchDynamicAssetData(assetId: String!): DynamicAssetData!
937
903
  fetchDynamicAssetsData(assetIds: [String!]!): [DynamicAssetData]!
938
904
  fetchDynamicCollectionData(input: DynamicCollectionDataInput!): DynamicCollectionData!