@ludo.ninja/api 2.1.8 → 2.1.10
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/build/config/index.js +1 -0
- package/build/cookies/index.js +8 -0
- package/build/graphql_tools/__generated__/schema.d.ts +69 -84
- package/build/graphql_tools/__generated__/schema.js +54 -53
- package/package.json +1 -1
- package/src/config/index.ts +1 -0
- package/src/cookies/index.ts +8 -0
- package/src/graphql_tools/__generated__/schema.ts +92 -110
- package/tsconfig.tsbuildinfo +1 -1
package/build/config/index.js
CHANGED
|
@@ -41,6 +41,7 @@ const errorLink = (0, error_1.onError)(({ graphQLErrors, networkError, operation
|
|
|
41
41
|
mutation: index_1.schema.RefreshTokenDocument,
|
|
42
42
|
})
|
|
43
43
|
.then(({ data: { refreshToken: { tokenAuth, tokenRefresh }, }, }) => {
|
|
44
|
+
console.log(tokenAuth, "newAuthToken");
|
|
44
45
|
(0, cookies_1.refreshCookies)(tokenAuth, tokenRefresh, mainDomain);
|
|
45
46
|
resolvePendingRequests();
|
|
46
47
|
return true;
|
package/build/cookies/index.js
CHANGED
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getCookies = exports.destroyCookies = exports.refreshCookies = exports.assignCookies = void 0;
|
|
4
4
|
const nookies_1 = require("nookies");
|
|
5
5
|
const assignCookies = (userId, wallets, authToken, refreshToken, newUser, inviteCode, domain = "ludo.ninja") => {
|
|
6
|
+
console.log(domain, "domain");
|
|
6
7
|
if (userId)
|
|
7
8
|
(0, nookies_1.setCookie)(null, "userId", userId, { maxAge: 2629800000, path: "/", domain });
|
|
8
9
|
if (wallets)
|
|
@@ -10,30 +11,35 @@ const assignCookies = (userId, wallets, authToken, refreshToken, newUser, invite
|
|
|
10
11
|
maxAge: 2629800000,
|
|
11
12
|
path: "/",
|
|
12
13
|
domain,
|
|
14
|
+
sameSite: true,
|
|
13
15
|
});
|
|
14
16
|
if (authToken)
|
|
15
17
|
(0, nookies_1.setCookie)(null, "authToken", authToken, {
|
|
16
18
|
maxAge: 2629800000,
|
|
17
19
|
path: "/",
|
|
18
20
|
domain,
|
|
21
|
+
sameSite: true,
|
|
19
22
|
});
|
|
20
23
|
if (refreshToken)
|
|
21
24
|
(0, nookies_1.setCookie)(null, "refreshToken", refreshToken, {
|
|
22
25
|
maxAge: 2629800000,
|
|
23
26
|
path: "/",
|
|
24
27
|
domain,
|
|
28
|
+
sameSite: true,
|
|
25
29
|
});
|
|
26
30
|
if (newUser)
|
|
27
31
|
(0, nookies_1.setCookie)(null, "newUser", newUser, {
|
|
28
32
|
maxAge: 2629800000,
|
|
29
33
|
path: "/",
|
|
30
34
|
domain,
|
|
35
|
+
sameSite: true,
|
|
31
36
|
});
|
|
32
37
|
if (inviteCode)
|
|
33
38
|
(0, nookies_1.setCookie)(null, "inviteCode", inviteCode, {
|
|
34
39
|
maxAge: 2629800000,
|
|
35
40
|
path: "/",
|
|
36
41
|
domain,
|
|
42
|
+
sameSite: true,
|
|
37
43
|
});
|
|
38
44
|
};
|
|
39
45
|
exports.assignCookies = assignCookies;
|
|
@@ -43,12 +49,14 @@ const refreshCookies = (authToken, refreshToken, domain = "ludo.ninja") => {
|
|
|
43
49
|
maxAge: 2629800000,
|
|
44
50
|
path: "/",
|
|
45
51
|
domain,
|
|
52
|
+
sameSite: true,
|
|
46
53
|
});
|
|
47
54
|
if (refreshToken)
|
|
48
55
|
(0, nookies_1.setCookie)(null, "refreshToken", refreshToken, {
|
|
49
56
|
maxAge: 2629800000,
|
|
50
57
|
path: "/",
|
|
51
58
|
domain,
|
|
59
|
+
sameSite: true,
|
|
52
60
|
});
|
|
53
61
|
};
|
|
54
62
|
exports.refreshCookies = refreshCookies;
|
|
@@ -299,8 +299,7 @@ export type ICollectionMarket = {
|
|
|
299
299
|
};
|
|
300
300
|
export type ICollectionPage = {
|
|
301
301
|
collections: Array<Maybe<ICollection>>;
|
|
302
|
-
|
|
303
|
-
results?: Maybe<Scalars['Long']>;
|
|
302
|
+
nextPage?: Maybe<IPage>;
|
|
304
303
|
};
|
|
305
304
|
export type ICollectionsPage = {
|
|
306
305
|
collections?: Maybe<Array<Maybe<ICollection>>>;
|
|
@@ -331,9 +330,8 @@ export type ICreationFilterInput = {
|
|
|
331
330
|
status: Scalars['String'];
|
|
332
331
|
};
|
|
333
332
|
export type ICreationsPage = {
|
|
334
|
-
creations
|
|
335
|
-
|
|
336
|
-
results?: Maybe<Scalars['Long']>;
|
|
333
|
+
creations: Array<Maybe<ICreation>>;
|
|
334
|
+
nextPage?: Maybe<IPage>;
|
|
337
335
|
};
|
|
338
336
|
export type ICurrencyAmountPair = {
|
|
339
337
|
currency?: Maybe<Scalars['String']>;
|
|
@@ -1133,6 +1131,16 @@ export type IOpportunityPage = {
|
|
|
1133
1131
|
currentOpportunities?: Maybe<Array<Maybe<IOpportunity>>>;
|
|
1134
1132
|
similarOpportunities?: Maybe<Array<Maybe<IOpportunity>>>;
|
|
1135
1133
|
};
|
|
1134
|
+
export type IPage = {
|
|
1135
|
+
token?: Maybe<Scalars['String']>;
|
|
1136
|
+
num?: Maybe<Scalars['Int']>;
|
|
1137
|
+
size?: Maybe<Scalars['Int']>;
|
|
1138
|
+
elements?: Maybe<Scalars['Long']>;
|
|
1139
|
+
};
|
|
1140
|
+
export type IPageInput = {
|
|
1141
|
+
token?: Maybe<Scalars['String']>;
|
|
1142
|
+
size?: Maybe<Scalars['Int']>;
|
|
1143
|
+
};
|
|
1136
1144
|
export type IProfile = {
|
|
1137
1145
|
about?: Maybe<Scalars['String']>;
|
|
1138
1146
|
createdAt?: Maybe<Scalars['Long']>;
|
|
@@ -1155,6 +1163,7 @@ export type IProfile = {
|
|
|
1155
1163
|
website?: Maybe<Scalars['String']>;
|
|
1156
1164
|
};
|
|
1157
1165
|
export type IProfilePage = {
|
|
1166
|
+
nextPage?: Maybe<IPage>;
|
|
1158
1167
|
nextPageToken?: Maybe<Scalars['String']>;
|
|
1159
1168
|
profiles: Array<Maybe<IProfile>>;
|
|
1160
1169
|
results?: Maybe<Scalars['Long']>;
|
|
@@ -1303,8 +1312,7 @@ export type IQueryFetchAllBannerAssetsArgs = {
|
|
|
1303
1312
|
pageToken?: Maybe<Scalars['String']>;
|
|
1304
1313
|
};
|
|
1305
1314
|
export type IQueryFetchAllCreationsArgs = {
|
|
1306
|
-
|
|
1307
|
-
pageToken?: Maybe<Scalars['String']>;
|
|
1315
|
+
page?: Maybe<IPageInput>;
|
|
1308
1316
|
};
|
|
1309
1317
|
export type IQueryFetchAllMarketsArgs = {
|
|
1310
1318
|
pageSize: Scalars['Int'];
|
|
@@ -1369,8 +1377,7 @@ export type IQueryFetchCreationArgs = {
|
|
|
1369
1377
|
};
|
|
1370
1378
|
export type IQueryFetchCreationsByTypeArgs = {
|
|
1371
1379
|
itemType: Scalars['String'];
|
|
1372
|
-
|
|
1373
|
-
pageToken?: Maybe<Scalars['String']>;
|
|
1380
|
+
page?: Maybe<IPageInput>;
|
|
1374
1381
|
};
|
|
1375
1382
|
export type IQueryFetchDynamicAssetDataArgs = {
|
|
1376
1383
|
assetId: Scalars['String'];
|
|
@@ -1574,8 +1581,7 @@ export type IQueryFindAssetsByTermArgs = {
|
|
|
1574
1581
|
export type IQueryFindCollectionsArgs = {
|
|
1575
1582
|
term: Scalars['String'];
|
|
1576
1583
|
input: ICollectionFilterInput;
|
|
1577
|
-
|
|
1578
|
-
pageToken?: Maybe<Scalars['String']>;
|
|
1584
|
+
page?: Maybe<IPageInput>;
|
|
1579
1585
|
};
|
|
1580
1586
|
export type IQueryFindCollectionsByTitleArgs = {
|
|
1581
1587
|
input: ISearchFilterInput;
|
|
@@ -1583,10 +1589,9 @@ export type IQueryFindCollectionsByTitleArgs = {
|
|
|
1583
1589
|
pageToken?: Maybe<Scalars['String']>;
|
|
1584
1590
|
};
|
|
1585
1591
|
export type IQueryFindCreationsArgs = {
|
|
1586
|
-
input: ICreationFilterInput;
|
|
1587
|
-
pageSize: Scalars['Int'];
|
|
1588
|
-
pageToken?: Maybe<Scalars['String']>;
|
|
1589
1592
|
term: Scalars['String'];
|
|
1593
|
+
input: ICreationFilterInput;
|
|
1594
|
+
page?: Maybe<IPageInput>;
|
|
1590
1595
|
};
|
|
1591
1596
|
export type IQueryFindGalleriesByNameArgs = {
|
|
1592
1597
|
input: ISearchFilterInput;
|
|
@@ -1600,8 +1605,7 @@ export type IQueryFindGalleriesByTermArgs = {
|
|
|
1600
1605
|
};
|
|
1601
1606
|
export type IQueryFindProfilesByNameArgs = {
|
|
1602
1607
|
name: Scalars['String'];
|
|
1603
|
-
|
|
1604
|
-
pageToken?: Maybe<Scalars['String']>;
|
|
1608
|
+
page?: Maybe<IPageInput>;
|
|
1605
1609
|
};
|
|
1606
1610
|
export type IQueryFindProfilesByTermArgs = {
|
|
1607
1611
|
pageSize: Scalars['Int'];
|
|
@@ -1629,10 +1633,9 @@ export type IQueryFindTopEntitiesByTermArgs = {
|
|
|
1629
1633
|
term: Scalars['String'];
|
|
1630
1634
|
};
|
|
1631
1635
|
export type IQueryFindUserCreationsArgs = {
|
|
1632
|
-
input: ICreationFilterInput;
|
|
1633
1636
|
ownerId: Scalars['String'];
|
|
1634
|
-
|
|
1635
|
-
|
|
1637
|
+
input: ICreationFilterInput;
|
|
1638
|
+
page?: Maybe<IPageInput>;
|
|
1636
1639
|
};
|
|
1637
1640
|
export type IQueryFindUserFavoriteListsArgs = {
|
|
1638
1641
|
ownerId: Scalars['String'];
|
|
@@ -2509,13 +2512,13 @@ export type IFetchSetsSearchResultTypeSelectionsQuery = {
|
|
|
2509
2512
|
fetchSetsSearchResultTypeSelections: Array<Maybe<Pick<ISelection, 'name' | 'label'>>>;
|
|
2510
2513
|
};
|
|
2511
2514
|
export type IFetchAllCreationsQueryVariables = Exact<{
|
|
2512
|
-
|
|
2513
|
-
pageToken?: Maybe<Scalars['String']>;
|
|
2515
|
+
page?: Maybe<IPageInput>;
|
|
2514
2516
|
}>;
|
|
2515
2517
|
export type IFetchAllCreationsQuery = {
|
|
2516
|
-
fetchAllCreations:
|
|
2517
|
-
|
|
2518
|
-
|
|
2518
|
+
fetchAllCreations: {
|
|
2519
|
+
nextPage?: Maybe<Pick<IPage, 'token' | 'num' | 'size' | 'elements'>>;
|
|
2520
|
+
creations: Array<Maybe<Pick<ICreation, 'itemType' | 'itemId' | 'blockchain' | 'rank' | 'address' | 'liked' | 'likes' | 'tokenId' | 'name' | 'creatorsAddresses' | 'originalUrls' | 'media' | 'mediaPreview' | 'mimeType'>>>;
|
|
2521
|
+
};
|
|
2519
2522
|
};
|
|
2520
2523
|
export type IFetchAssetsCountQueryVariables = Exact<{
|
|
2521
2524
|
[key: string]: never;
|
|
@@ -2524,25 +2527,25 @@ export type IFetchAssetsCountQuery = Pick<IQuery, 'fetchAssetsCount'>;
|
|
|
2524
2527
|
export type IFindCollectionsQueryVariables = Exact<{
|
|
2525
2528
|
term: Scalars['String'];
|
|
2526
2529
|
input: ICollectionFilterInput;
|
|
2527
|
-
|
|
2528
|
-
pageToken?: Maybe<Scalars['String']>;
|
|
2530
|
+
page?: Maybe<IPageInput>;
|
|
2529
2531
|
}>;
|
|
2530
2532
|
export type IFindCollectionsQuery = {
|
|
2531
|
-
findCollections:
|
|
2533
|
+
findCollections: {
|
|
2532
2534
|
collections: Array<Maybe<(Pick<ICollection, 'collectionId' | 'collectionTitle' | 'blockchain' | 'tokenId' | 'likes' | 'liked' | 'rank'> & {
|
|
2533
2535
|
medias?: Maybe<Array<Maybe<Pick<IMedia, 'originalUrl' | 'url' | 'previewUrl' | 'mimeType' | 'sizeRatio' | 'fileSize'>>>>;
|
|
2534
2536
|
})>>;
|
|
2535
|
-
|
|
2537
|
+
nextPage?: Maybe<Pick<IPage, 'token' | 'num' | 'size' | 'elements'>>;
|
|
2538
|
+
};
|
|
2536
2539
|
};
|
|
2537
2540
|
export type IFetchCreationsByTypeQueryVariables = Exact<{
|
|
2538
2541
|
itemType: Scalars['String'];
|
|
2539
|
-
|
|
2540
|
-
pageToken?: Maybe<Scalars['String']>;
|
|
2542
|
+
page?: Maybe<IPageInput>;
|
|
2541
2543
|
}>;
|
|
2542
2544
|
export type IFetchCreationsByTypeQuery = {
|
|
2543
|
-
fetchCreationsByType:
|
|
2544
|
-
|
|
2545
|
-
|
|
2545
|
+
fetchCreationsByType: {
|
|
2546
|
+
nextPage?: Maybe<Pick<IPage, 'token' | 'num' | 'size' | 'elements'>>;
|
|
2547
|
+
creations: Array<Maybe<Pick<ICreation, 'itemType' | 'itemId' | 'blockchain' | 'rank' | 'liked' | 'likes' | 'address' | 'tokenId' | 'name' | 'creatorsAddresses' | 'originalUrls' | 'media' | 'mediaPreview' | 'mimeType'>>>;
|
|
2548
|
+
};
|
|
2546
2549
|
};
|
|
2547
2550
|
export type IFindAllTopEntitiesByNameQueryVariables = Exact<{
|
|
2548
2551
|
name: Scalars['String'];
|
|
@@ -2572,23 +2575,23 @@ export type IFetchUserPortfolioQuery = {
|
|
|
2572
2575
|
export type IFindCreationsQueryVariables = Exact<{
|
|
2573
2576
|
term: Scalars['String'];
|
|
2574
2577
|
input: ICreationFilterInput;
|
|
2575
|
-
|
|
2576
|
-
pageToken?: Maybe<Scalars['String']>;
|
|
2578
|
+
page?: Maybe<IPageInput>;
|
|
2577
2579
|
}>;
|
|
2578
2580
|
export type IFindCreationsQuery = {
|
|
2579
|
-
findCreations:
|
|
2580
|
-
|
|
2581
|
-
|
|
2581
|
+
findCreations: {
|
|
2582
|
+
nextPage?: Maybe<Pick<IPage, 'token' | 'num' | 'size' | 'elements'>>;
|
|
2583
|
+
creations: Array<Maybe<Pick<ICreation, 'itemType' | 'address' | 'tokenId' | 'itemId' | 'blockchain' | 'name' | 'creatorsAddresses' | 'originalUrls' | 'media' | 'mediaPreview' | 'mimeType' | 'rank' | 'likes' | 'liked'>>>;
|
|
2584
|
+
};
|
|
2582
2585
|
};
|
|
2583
2586
|
export type IFindProfilesByNameQueryVariables = Exact<{
|
|
2584
2587
|
name: Scalars['String'];
|
|
2585
|
-
|
|
2586
|
-
pageToken?: Maybe<Scalars['String']>;
|
|
2588
|
+
page?: Maybe<IPageInput>;
|
|
2587
2589
|
}>;
|
|
2588
2590
|
export type IFindProfilesByNameQuery = {
|
|
2589
|
-
findProfilesByName:
|
|
2591
|
+
findProfilesByName: {
|
|
2592
|
+
nextPage?: Maybe<Pick<IPage, 'token' | 'num' | 'size' | 'elements'>>;
|
|
2590
2593
|
profiles: Array<Maybe<Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'followers' | 'followings' | 'visible'>>>;
|
|
2591
|
-
}
|
|
2594
|
+
};
|
|
2592
2595
|
};
|
|
2593
2596
|
export type IFindSetsQueryVariables = Exact<{
|
|
2594
2597
|
term: Scalars['String'];
|
|
@@ -2615,13 +2618,13 @@ export type IFindShowcaseItemsQuery = {
|
|
|
2615
2618
|
export type IFindUserCreationsQueryVariables = Exact<{
|
|
2616
2619
|
ownerId: Scalars['String'];
|
|
2617
2620
|
input: ICreationFilterInput;
|
|
2618
|
-
|
|
2619
|
-
pageToken?: Maybe<Scalars['String']>;
|
|
2621
|
+
page?: Maybe<IPageInput>;
|
|
2620
2622
|
}>;
|
|
2621
2623
|
export type IFindUserCreationsQuery = {
|
|
2622
|
-
findUserCreations:
|
|
2623
|
-
|
|
2624
|
-
|
|
2624
|
+
findUserCreations: {
|
|
2625
|
+
nextPage?: Maybe<Pick<IPage, 'token' | 'num' | 'size' | 'elements'>>;
|
|
2626
|
+
creations: Array<Maybe<Pick<ICreation, 'id' | 'itemType' | 'tokenId' | 'address' | 'itemId' | 'blockchain' | 'rank' | 'name' | 'creatorsAddresses' | 'originalUrls' | 'media' | 'mediaPreview' | 'mimeType' | 'likes'>>>;
|
|
2627
|
+
};
|
|
2625
2628
|
};
|
|
2626
2629
|
export type IFindUserShowcaseItemsQueryVariables = Exact<{
|
|
2627
2630
|
ownerId: Scalars['String'];
|
|
@@ -4953,18 +4956,15 @@ export declare const FetchAllCreationsDocument: Apollo.DocumentNode;
|
|
|
4953
4956
|
* @example
|
|
4954
4957
|
* const { data, loading, error } = useFetchAllCreationsQuery({
|
|
4955
4958
|
* variables: {
|
|
4956
|
-
*
|
|
4957
|
-
* pageToken: // value for 'pageToken'
|
|
4959
|
+
* page: // value for 'page'
|
|
4958
4960
|
* },
|
|
4959
4961
|
* });
|
|
4960
4962
|
*/
|
|
4961
|
-
export declare function useFetchAllCreationsQuery(baseOptions
|
|
4962
|
-
|
|
4963
|
-
pageToken?: Maybe<string> | undefined;
|
|
4963
|
+
export declare function useFetchAllCreationsQuery(baseOptions?: Apollo.QueryHookOptions<IFetchAllCreationsQuery, IFetchAllCreationsQueryVariables>): Apollo.QueryResult<IFetchAllCreationsQuery, Exact<{
|
|
4964
|
+
page?: Maybe<IPageInput> | undefined;
|
|
4964
4965
|
}>>;
|
|
4965
4966
|
export declare function useFetchAllCreationsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAllCreationsQuery, IFetchAllCreationsQueryVariables>): Apollo.LazyQueryResultTuple<IFetchAllCreationsQuery, Exact<{
|
|
4966
|
-
|
|
4967
|
-
pageToken?: Maybe<string> | undefined;
|
|
4967
|
+
page?: Maybe<IPageInput> | undefined;
|
|
4968
4968
|
}>>;
|
|
4969
4969
|
export type FetchAllCreationsQueryHookResult = ReturnType<typeof useFetchAllCreationsQuery>;
|
|
4970
4970
|
export type FetchAllCreationsLazyQueryHookResult = ReturnType<typeof useFetchAllCreationsLazyQuery>;
|
|
@@ -5009,22 +5009,19 @@ export declare const FindCollectionsDocument: Apollo.DocumentNode;
|
|
|
5009
5009
|
* variables: {
|
|
5010
5010
|
* term: // value for 'term'
|
|
5011
5011
|
* input: // value for 'input'
|
|
5012
|
-
*
|
|
5013
|
-
* pageToken: // value for 'pageToken'
|
|
5012
|
+
* page: // value for 'page'
|
|
5014
5013
|
* },
|
|
5015
5014
|
* });
|
|
5016
5015
|
*/
|
|
5017
5016
|
export declare function useFindCollectionsQuery(baseOptions: Apollo.QueryHookOptions<IFindCollectionsQuery, IFindCollectionsQueryVariables>): Apollo.QueryResult<IFindCollectionsQuery, Exact<{
|
|
5018
5017
|
term: string;
|
|
5019
5018
|
input: ICollectionFilterInput;
|
|
5020
|
-
|
|
5021
|
-
pageToken?: Maybe<string> | undefined;
|
|
5019
|
+
page?: Maybe<IPageInput> | undefined;
|
|
5022
5020
|
}>>;
|
|
5023
5021
|
export declare function useFindCollectionsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFindCollectionsQuery, IFindCollectionsQueryVariables>): Apollo.LazyQueryResultTuple<IFindCollectionsQuery, Exact<{
|
|
5024
5022
|
term: string;
|
|
5025
5023
|
input: ICollectionFilterInput;
|
|
5026
|
-
|
|
5027
|
-
pageToken?: Maybe<string> | undefined;
|
|
5024
|
+
page?: Maybe<IPageInput> | undefined;
|
|
5028
5025
|
}>>;
|
|
5029
5026
|
export type FindCollectionsQueryHookResult = ReturnType<typeof useFindCollectionsQuery>;
|
|
5030
5027
|
export type FindCollectionsLazyQueryHookResult = ReturnType<typeof useFindCollectionsLazyQuery>;
|
|
@@ -5043,20 +5040,17 @@ export declare const FetchCreationsByTypeDocument: Apollo.DocumentNode;
|
|
|
5043
5040
|
* const { data, loading, error } = useFetchCreationsByTypeQuery({
|
|
5044
5041
|
* variables: {
|
|
5045
5042
|
* itemType: // value for 'itemType'
|
|
5046
|
-
*
|
|
5047
|
-
* pageToken: // value for 'pageToken'
|
|
5043
|
+
* page: // value for 'page'
|
|
5048
5044
|
* },
|
|
5049
5045
|
* });
|
|
5050
5046
|
*/
|
|
5051
5047
|
export declare function useFetchCreationsByTypeQuery(baseOptions: Apollo.QueryHookOptions<IFetchCreationsByTypeQuery, IFetchCreationsByTypeQueryVariables>): Apollo.QueryResult<IFetchCreationsByTypeQuery, Exact<{
|
|
5052
5048
|
itemType: string;
|
|
5053
|
-
|
|
5054
|
-
pageToken?: Maybe<string> | undefined;
|
|
5049
|
+
page?: Maybe<IPageInput> | undefined;
|
|
5055
5050
|
}>>;
|
|
5056
5051
|
export declare function useFetchCreationsByTypeLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchCreationsByTypeQuery, IFetchCreationsByTypeQueryVariables>): Apollo.LazyQueryResultTuple<IFetchCreationsByTypeQuery, Exact<{
|
|
5057
5052
|
itemType: string;
|
|
5058
|
-
|
|
5059
|
-
pageToken?: Maybe<string> | undefined;
|
|
5053
|
+
page?: Maybe<IPageInput> | undefined;
|
|
5060
5054
|
}>>;
|
|
5061
5055
|
export type FetchCreationsByTypeQueryHookResult = ReturnType<typeof useFetchCreationsByTypeQuery>;
|
|
5062
5056
|
export type FetchCreationsByTypeLazyQueryHookResult = ReturnType<typeof useFetchCreationsByTypeLazyQuery>;
|
|
@@ -5131,22 +5125,19 @@ export declare const FindCreationsDocument: Apollo.DocumentNode;
|
|
|
5131
5125
|
* variables: {
|
|
5132
5126
|
* term: // value for 'term'
|
|
5133
5127
|
* input: // value for 'input'
|
|
5134
|
-
*
|
|
5135
|
-
* pageToken: // value for 'pageToken'
|
|
5128
|
+
* page: // value for 'page'
|
|
5136
5129
|
* },
|
|
5137
5130
|
* });
|
|
5138
5131
|
*/
|
|
5139
5132
|
export declare function useFindCreationsQuery(baseOptions: Apollo.QueryHookOptions<IFindCreationsQuery, IFindCreationsQueryVariables>): Apollo.QueryResult<IFindCreationsQuery, Exact<{
|
|
5140
5133
|
term: string;
|
|
5141
5134
|
input: ICreationFilterInput;
|
|
5142
|
-
|
|
5143
|
-
pageToken?: Maybe<string> | undefined;
|
|
5135
|
+
page?: Maybe<IPageInput> | undefined;
|
|
5144
5136
|
}>>;
|
|
5145
5137
|
export declare function useFindCreationsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFindCreationsQuery, IFindCreationsQueryVariables>): Apollo.LazyQueryResultTuple<IFindCreationsQuery, Exact<{
|
|
5146
5138
|
term: string;
|
|
5147
5139
|
input: ICreationFilterInput;
|
|
5148
|
-
|
|
5149
|
-
pageToken?: Maybe<string> | undefined;
|
|
5140
|
+
page?: Maybe<IPageInput> | undefined;
|
|
5150
5141
|
}>>;
|
|
5151
5142
|
export type FindCreationsQueryHookResult = ReturnType<typeof useFindCreationsQuery>;
|
|
5152
5143
|
export type FindCreationsLazyQueryHookResult = ReturnType<typeof useFindCreationsLazyQuery>;
|
|
@@ -5165,20 +5156,17 @@ export declare const FindProfilesByNameDocument: Apollo.DocumentNode;
|
|
|
5165
5156
|
* const { data, loading, error } = useFindProfilesByNameQuery({
|
|
5166
5157
|
* variables: {
|
|
5167
5158
|
* name: // value for 'name'
|
|
5168
|
-
*
|
|
5169
|
-
* pageToken: // value for 'pageToken'
|
|
5159
|
+
* page: // value for 'page'
|
|
5170
5160
|
* },
|
|
5171
5161
|
* });
|
|
5172
5162
|
*/
|
|
5173
5163
|
export declare function useFindProfilesByNameQuery(baseOptions: Apollo.QueryHookOptions<IFindProfilesByNameQuery, IFindProfilesByNameQueryVariables>): Apollo.QueryResult<IFindProfilesByNameQuery, Exact<{
|
|
5174
5164
|
name: string;
|
|
5175
|
-
|
|
5176
|
-
pageToken?: Maybe<string> | undefined;
|
|
5165
|
+
page?: Maybe<IPageInput> | undefined;
|
|
5177
5166
|
}>>;
|
|
5178
5167
|
export declare function useFindProfilesByNameLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFindProfilesByNameQuery, IFindProfilesByNameQueryVariables>): Apollo.LazyQueryResultTuple<IFindProfilesByNameQuery, Exact<{
|
|
5179
5168
|
name: string;
|
|
5180
|
-
|
|
5181
|
-
pageToken?: Maybe<string> | undefined;
|
|
5169
|
+
page?: Maybe<IPageInput> | undefined;
|
|
5182
5170
|
}>>;
|
|
5183
5171
|
export type FindProfilesByNameQueryHookResult = ReturnType<typeof useFindProfilesByNameQuery>;
|
|
5184
5172
|
export type FindProfilesByNameLazyQueryHookResult = ReturnType<typeof useFindProfilesByNameLazyQuery>;
|
|
@@ -5268,22 +5256,19 @@ export declare const FindUserCreationsDocument: Apollo.DocumentNode;
|
|
|
5268
5256
|
* variables: {
|
|
5269
5257
|
* ownerId: // value for 'ownerId'
|
|
5270
5258
|
* input: // value for 'input'
|
|
5271
|
-
*
|
|
5272
|
-
* pageToken: // value for 'pageToken'
|
|
5259
|
+
* page: // value for 'page'
|
|
5273
5260
|
* },
|
|
5274
5261
|
* });
|
|
5275
5262
|
*/
|
|
5276
5263
|
export declare function useFindUserCreationsQuery(baseOptions: Apollo.QueryHookOptions<IFindUserCreationsQuery, IFindUserCreationsQueryVariables>): Apollo.QueryResult<IFindUserCreationsQuery, Exact<{
|
|
5277
5264
|
ownerId: string;
|
|
5278
5265
|
input: ICreationFilterInput;
|
|
5279
|
-
|
|
5280
|
-
pageToken?: Maybe<string> | undefined;
|
|
5266
|
+
page?: Maybe<IPageInput> | undefined;
|
|
5281
5267
|
}>>;
|
|
5282
5268
|
export declare function useFindUserCreationsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFindUserCreationsQuery, IFindUserCreationsQueryVariables>): Apollo.LazyQueryResultTuple<IFindUserCreationsQuery, Exact<{
|
|
5283
5269
|
ownerId: string;
|
|
5284
5270
|
input: ICreationFilterInput;
|
|
5285
|
-
|
|
5286
|
-
pageToken?: Maybe<string> | undefined;
|
|
5271
|
+
page?: Maybe<IPageInput> | undefined;
|
|
5287
5272
|
}>>;
|
|
5288
5273
|
export type FindUserCreationsQueryHookResult = ReturnType<typeof useFindUserCreationsQuery>;
|
|
5289
5274
|
export type FindUserCreationsLazyQueryHookResult = ReturnType<typeof useFindUserCreationsLazyQuery>;
|
|
@@ -3383,9 +3383,14 @@ function useFetchSetsSearchResultTypeSelectionsLazyQuery(baseOptions) {
|
|
|
3383
3383
|
}
|
|
3384
3384
|
exports.useFetchSetsSearchResultTypeSelectionsLazyQuery = useFetchSetsSearchResultTypeSelectionsLazyQuery;
|
|
3385
3385
|
exports.FetchAllCreationsDocument = (0, client_1.gql) `
|
|
3386
|
-
query FetchAllCreations($
|
|
3387
|
-
fetchAllCreations(
|
|
3388
|
-
|
|
3386
|
+
query FetchAllCreations($page: PageInput) {
|
|
3387
|
+
fetchAllCreations(page: $page) {
|
|
3388
|
+
nextPage {
|
|
3389
|
+
token
|
|
3390
|
+
num
|
|
3391
|
+
size
|
|
3392
|
+
elements
|
|
3393
|
+
}
|
|
3389
3394
|
creations {
|
|
3390
3395
|
itemType
|
|
3391
3396
|
itemId
|
|
@@ -3417,8 +3422,7 @@ exports.FetchAllCreationsDocument = (0, client_1.gql) `
|
|
|
3417
3422
|
* @example
|
|
3418
3423
|
* const { data, loading, error } = useFetchAllCreationsQuery({
|
|
3419
3424
|
* variables: {
|
|
3420
|
-
*
|
|
3421
|
-
* pageToken: // value for 'pageToken'
|
|
3425
|
+
* page: // value for 'page'
|
|
3422
3426
|
* },
|
|
3423
3427
|
* });
|
|
3424
3428
|
*/
|
|
@@ -3459,13 +3463,8 @@ function useFetchAssetsCountLazyQuery(baseOptions) {
|
|
|
3459
3463
|
}
|
|
3460
3464
|
exports.useFetchAssetsCountLazyQuery = useFetchAssetsCountLazyQuery;
|
|
3461
3465
|
exports.FindCollectionsDocument = (0, client_1.gql) `
|
|
3462
|
-
query FindCollections($term: String!, $input: CollectionFilterInput!, $
|
|
3463
|
-
findCollections(
|
|
3464
|
-
term: $term
|
|
3465
|
-
input: $input
|
|
3466
|
-
pageSize: $pageSize
|
|
3467
|
-
pageToken: $pageToken
|
|
3468
|
-
) {
|
|
3466
|
+
query FindCollections($term: String!, $input: CollectionFilterInput!, $page: PageInput) {
|
|
3467
|
+
findCollections(term: $term, input: $input, page: $page) {
|
|
3469
3468
|
collections {
|
|
3470
3469
|
collectionId
|
|
3471
3470
|
collectionTitle
|
|
@@ -3483,8 +3482,12 @@ exports.FindCollectionsDocument = (0, client_1.gql) `
|
|
|
3483
3482
|
}
|
|
3484
3483
|
rank
|
|
3485
3484
|
}
|
|
3486
|
-
|
|
3487
|
-
|
|
3485
|
+
nextPage {
|
|
3486
|
+
token
|
|
3487
|
+
num
|
|
3488
|
+
size
|
|
3489
|
+
elements
|
|
3490
|
+
}
|
|
3488
3491
|
}
|
|
3489
3492
|
}
|
|
3490
3493
|
`;
|
|
@@ -3502,8 +3505,7 @@ exports.FindCollectionsDocument = (0, client_1.gql) `
|
|
|
3502
3505
|
* variables: {
|
|
3503
3506
|
* term: // value for 'term'
|
|
3504
3507
|
* input: // value for 'input'
|
|
3505
|
-
*
|
|
3506
|
-
* pageToken: // value for 'pageToken'
|
|
3508
|
+
* page: // value for 'page'
|
|
3507
3509
|
* },
|
|
3508
3510
|
* });
|
|
3509
3511
|
*/
|
|
@@ -3516,13 +3518,14 @@ function useFindCollectionsLazyQuery(baseOptions) {
|
|
|
3516
3518
|
}
|
|
3517
3519
|
exports.useFindCollectionsLazyQuery = useFindCollectionsLazyQuery;
|
|
3518
3520
|
exports.FetchCreationsByTypeDocument = (0, client_1.gql) `
|
|
3519
|
-
query FetchCreationsByType($itemType: String!, $
|
|
3520
|
-
fetchCreationsByType(
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3521
|
+
query FetchCreationsByType($itemType: String!, $page: PageInput) {
|
|
3522
|
+
fetchCreationsByType(itemType: $itemType, page: $page) {
|
|
3523
|
+
nextPage {
|
|
3524
|
+
token
|
|
3525
|
+
num
|
|
3526
|
+
size
|
|
3527
|
+
elements
|
|
3528
|
+
}
|
|
3526
3529
|
creations {
|
|
3527
3530
|
itemType
|
|
3528
3531
|
itemId
|
|
@@ -3555,8 +3558,7 @@ exports.FetchCreationsByTypeDocument = (0, client_1.gql) `
|
|
|
3555
3558
|
* const { data, loading, error } = useFetchCreationsByTypeQuery({
|
|
3556
3559
|
* variables: {
|
|
3557
3560
|
* itemType: // value for 'itemType'
|
|
3558
|
-
*
|
|
3559
|
-
* pageToken: // value for 'pageToken'
|
|
3561
|
+
* page: // value for 'page'
|
|
3560
3562
|
* },
|
|
3561
3563
|
* });
|
|
3562
3564
|
*/
|
|
@@ -3726,15 +3728,14 @@ function useFetchUserPortfolioLazyQuery(baseOptions) {
|
|
|
3726
3728
|
}
|
|
3727
3729
|
exports.useFetchUserPortfolioLazyQuery = useFetchUserPortfolioLazyQuery;
|
|
3728
3730
|
exports.FindCreationsDocument = (0, client_1.gql) `
|
|
3729
|
-
query FindCreations($term: String!, $input: CreationFilterInput!, $
|
|
3730
|
-
findCreations(
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
results
|
|
3731
|
+
query FindCreations($term: String!, $input: CreationFilterInput!, $page: PageInput) {
|
|
3732
|
+
findCreations(term: $term, input: $input, page: $page) {
|
|
3733
|
+
nextPage {
|
|
3734
|
+
token
|
|
3735
|
+
num
|
|
3736
|
+
size
|
|
3737
|
+
elements
|
|
3738
|
+
}
|
|
3738
3739
|
creations {
|
|
3739
3740
|
itemType
|
|
3740
3741
|
address
|
|
@@ -3768,8 +3769,7 @@ exports.FindCreationsDocument = (0, client_1.gql) `
|
|
|
3768
3769
|
* variables: {
|
|
3769
3770
|
* term: // value for 'term'
|
|
3770
3771
|
* input: // value for 'input'
|
|
3771
|
-
*
|
|
3772
|
-
* pageToken: // value for 'pageToken'
|
|
3772
|
+
* page: // value for 'page'
|
|
3773
3773
|
* },
|
|
3774
3774
|
* });
|
|
3775
3775
|
*/
|
|
@@ -3782,9 +3782,14 @@ function useFindCreationsLazyQuery(baseOptions) {
|
|
|
3782
3782
|
}
|
|
3783
3783
|
exports.useFindCreationsLazyQuery = useFindCreationsLazyQuery;
|
|
3784
3784
|
exports.FindProfilesByNameDocument = (0, client_1.gql) `
|
|
3785
|
-
query FindProfilesByName($name: String!, $
|
|
3786
|
-
findProfilesByName(name: $name,
|
|
3787
|
-
|
|
3785
|
+
query FindProfilesByName($name: String!, $page: PageInput) {
|
|
3786
|
+
findProfilesByName(name: $name, page: $page) {
|
|
3787
|
+
nextPage {
|
|
3788
|
+
token
|
|
3789
|
+
num
|
|
3790
|
+
size
|
|
3791
|
+
elements
|
|
3792
|
+
}
|
|
3788
3793
|
profiles {
|
|
3789
3794
|
userId
|
|
3790
3795
|
username
|
|
@@ -3794,7 +3799,6 @@ exports.FindProfilesByNameDocument = (0, client_1.gql) `
|
|
|
3794
3799
|
followings
|
|
3795
3800
|
visible
|
|
3796
3801
|
}
|
|
3797
|
-
results
|
|
3798
3802
|
}
|
|
3799
3803
|
}
|
|
3800
3804
|
`;
|
|
@@ -3811,8 +3815,7 @@ exports.FindProfilesByNameDocument = (0, client_1.gql) `
|
|
|
3811
3815
|
* const { data, loading, error } = useFindProfilesByNameQuery({
|
|
3812
3816
|
* variables: {
|
|
3813
3817
|
* name: // value for 'name'
|
|
3814
|
-
*
|
|
3815
|
-
* pageToken: // value for 'pageToken'
|
|
3818
|
+
* page: // value for 'page'
|
|
3816
3819
|
* },
|
|
3817
3820
|
* });
|
|
3818
3821
|
*/
|
|
@@ -3929,15 +3932,14 @@ function useFindShowcaseItemsLazyQuery(baseOptions) {
|
|
|
3929
3932
|
}
|
|
3930
3933
|
exports.useFindShowcaseItemsLazyQuery = useFindShowcaseItemsLazyQuery;
|
|
3931
3934
|
exports.FindUserCreationsDocument = (0, client_1.gql) `
|
|
3932
|
-
query FindUserCreations($ownerId: String!, $input: CreationFilterInput!, $
|
|
3933
|
-
findUserCreations(
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
results
|
|
3935
|
+
query FindUserCreations($ownerId: String!, $input: CreationFilterInput!, $page: PageInput) {
|
|
3936
|
+
findUserCreations(ownerId: $ownerId, input: $input, page: $page) {
|
|
3937
|
+
nextPage {
|
|
3938
|
+
token
|
|
3939
|
+
num
|
|
3940
|
+
size
|
|
3941
|
+
elements
|
|
3942
|
+
}
|
|
3941
3943
|
creations {
|
|
3942
3944
|
id
|
|
3943
3945
|
itemType
|
|
@@ -3971,8 +3973,7 @@ exports.FindUserCreationsDocument = (0, client_1.gql) `
|
|
|
3971
3973
|
* variables: {
|
|
3972
3974
|
* ownerId: // value for 'ownerId'
|
|
3973
3975
|
* input: // value for 'input'
|
|
3974
|
-
*
|
|
3975
|
-
* pageToken: // value for 'pageToken'
|
|
3976
|
+
* page: // value for 'page'
|
|
3976
3977
|
* },
|
|
3977
3978
|
* });
|
|
3978
3979
|
*/
|
package/package.json
CHANGED
package/src/config/index.ts
CHANGED
|
@@ -57,6 +57,7 @@ const errorLink = onError(({ graphQLErrors, networkError, operation, forward })
|
|
|
57
57
|
refreshToken: { tokenAuth, tokenRefresh },
|
|
58
58
|
},
|
|
59
59
|
}) => {
|
|
60
|
+
console.log(tokenAuth, "newAuthToken");
|
|
60
61
|
refreshCookies(tokenAuth, tokenRefresh, mainDomain);
|
|
61
62
|
resolvePendingRequests();
|
|
62
63
|
return true;
|