@ludo.ninja/api 2.1.5 → 2.1.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.
@@ -0,0 +1,2 @@
1
+ import { ApolloClient, NormalizedCacheObject } from "@apollo/client";
2
+ export declare function initializeApollo(initialState?: null, domain?: string): ApolloClient<NormalizedCacheObject>;
@@ -0,0 +1,185 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.initializeApollo = void 0;
7
+ const client_1 = require("@apollo/client");
8
+ const error_1 = require("@apollo/client/link/error");
9
+ const context_1 = require("@apollo/client/link/context");
10
+ const apollo_upload_client_1 = require("apollo-upload-client");
11
+ const deepmerge_1 = __importDefault(require("deepmerge"));
12
+ const lodash_isequal_1 = __importDefault(require("lodash.isequal"));
13
+ const cookies_1 = require("../cookies");
14
+ const typePolicies_1 = require("./typePolicies");
15
+ const subscriptions_1 = require("@apollo/client/link/subscriptions");
16
+ const utilities_1 = require("@apollo/client/utilities");
17
+ const graphql_ws_1 = require("graphql-ws");
18
+ const index_1 = require("../index");
19
+ let isRefreshing = false;
20
+ let pendingRequests = [];
21
+ let mainDomain = "";
22
+ const resolvePendingRequests = () => {
23
+ pendingRequests.map((callback) => callback());
24
+ pendingRequests = [];
25
+ };
26
+ let apolloClient;
27
+ const errorLink = (0, error_1.onError)(({ graphQLErrors, networkError, operation, forward }) => {
28
+ const { authToken, refreshToken } = (0, cookies_1.getCookies)();
29
+ if (graphQLErrors) {
30
+ graphQLErrors.forEach(({ message, locations, path }) => console.warn(`[GraphQL error]: Message: ${message}, Location: ${locations}, Path: ${path}`));
31
+ for (const err of graphQLErrors) {
32
+ if (err.message.includes("Auth token not found") && authToken) {
33
+ let forward$;
34
+ const client = apolloClient ?? createApolloClient();
35
+ if (!isRefreshing) {
36
+ isRefreshing = true;
37
+ forward$ = (0, client_1.fromPromise)(client
38
+ .mutate({
39
+ context: { uri: index_1.hosts.authHost },
40
+ variables: { refreshToken },
41
+ mutation: index_1.schema.RefreshTokenDocument,
42
+ })
43
+ .then(({ data: { refreshToken: { tokenAuth, tokenRefresh }, }, }) => {
44
+ (0, cookies_1.refreshCookies)(tokenAuth, tokenRefresh, mainDomain);
45
+ resolvePendingRequests();
46
+ return true;
47
+ })
48
+ .catch(async () => {
49
+ await apolloClient?.mutate({
50
+ context: { uri: index_1.hosts.authHost },
51
+ mutation: index_1.schema.RevokeTokenDocument,
52
+ });
53
+ (0, cookies_1.destroyCookies)(mainDomain);
54
+ pendingRequests = [];
55
+ window.location.replace("/");
56
+ return false;
57
+ })
58
+ .finally(() => {
59
+ isRefreshing = false;
60
+ })).filter((value) => Boolean(value));
61
+ }
62
+ else {
63
+ forward$ = (0, client_1.fromPromise)(new Promise((resolve) => {
64
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
65
+ // @ts-ignore
66
+ pendingRequests.push(() => resolve());
67
+ }));
68
+ }
69
+ return forward$.flatMap(() => forward(operation));
70
+ }
71
+ }
72
+ }
73
+ if (networkError) {
74
+ console.warn(`[Network error]: ${networkError}`);
75
+ if (networkError.message.includes("401") && authToken) {
76
+ let forward$;
77
+ const client = apolloClient ?? createApolloClient();
78
+ if (!isRefreshing) {
79
+ isRefreshing = true;
80
+ forward$ = (0, client_1.fromPromise)(client
81
+ .mutate({
82
+ context: { uri: index_1.hosts.authHost },
83
+ variables: { refreshToken },
84
+ mutation: index_1.schema.RefreshTokenDocument,
85
+ })
86
+ .then(({ data: { refreshToken: { tokenAuth, tokenRefresh }, }, }) => {
87
+ (0, cookies_1.refreshCookies)(tokenAuth, tokenRefresh, mainDomain);
88
+ resolvePendingRequests();
89
+ return true;
90
+ })
91
+ .catch(async () => {
92
+ await apolloClient?.mutate({
93
+ context: { uri: index_1.hosts.authHost },
94
+ mutation: index_1.schema.RevokeTokenDocument,
95
+ });
96
+ (0, cookies_1.destroyCookies)(mainDomain);
97
+ pendingRequests = [];
98
+ window.location.replace("/");
99
+ return false;
100
+ })
101
+ .finally(() => {
102
+ isRefreshing = false;
103
+ })).filter((value) => Boolean(value));
104
+ }
105
+ else {
106
+ forward$ = (0, client_1.fromPromise)(new Promise((resolve) => {
107
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
108
+ // @ts-ignore
109
+ pendingRequests.push(() => resolve());
110
+ }));
111
+ }
112
+ return forward$.flatMap(() => forward(operation));
113
+ }
114
+ }
115
+ });
116
+ const authLink = (0, context_1.setContext)(async (operation, { headers }) => {
117
+ const { authToken } = (0, cookies_1.getCookies)();
118
+ const header = authToken
119
+ ? {
120
+ headers: { ...headers, "x-client-authorization": `${authToken}` },
121
+ }
122
+ : { headers: { ...headers } };
123
+ return {
124
+ headers: header.headers,
125
+ };
126
+ });
127
+ const httpLink = (0, apollo_upload_client_1.createUploadLink)({
128
+ uri: index_1.hosts.authHost,
129
+ });
130
+ const wsLink = typeof window !== "undefined"
131
+ ? new subscriptions_1.GraphQLWsLink((0, graphql_ws_1.createClient)({
132
+ url: index_1.hosts.experiencesSubscriptionHost,
133
+ retryAttempts: 3,
134
+ on: {
135
+ connected: () => console.log("GraphQLWsLink connected"),
136
+ closed: () => console.log("GraphQLWsLink closed"),
137
+ },
138
+ }))
139
+ : null;
140
+ const opsLink = (0, client_1.from)([errorLink, authLink, httpLink]);
141
+ const terminatingLink = typeof window !== "undefined" && wsLink !== null
142
+ ? (0, client_1.split)(({ query }) => {
143
+ const definition = (0, utilities_1.getMainDefinition)(query);
144
+ return definition.kind === "OperationDefinition" && definition.operation === "subscription";
145
+ }, wsLink, opsLink)
146
+ : httpLink;
147
+ function createApolloClient() {
148
+ return new client_1.ApolloClient({
149
+ ssrMode: typeof window === "undefined",
150
+ link: terminatingLink,
151
+ cache: new client_1.InMemoryCache({
152
+ typePolicies: typePolicies_1.typePoliciesPortal,
153
+ addTypename: true,
154
+ resultCaching: true,
155
+ }),
156
+ });
157
+ }
158
+ function initializeApollo(initialState = null, domain = "ludo.ninja") {
159
+ const _apolloClient = apolloClient ?? createApolloClient();
160
+ mainDomain = domain;
161
+ // If your page has Next.js data fetching methods that use Apollo Client, the initial state
162
+ // gets hydrated here
163
+ if (initialState) {
164
+ // Get existing cache, loaded during client side data fetching
165
+ const existingCache = _apolloClient.extract();
166
+ // Merge the initialState from getStaticProps/getServerSideProps in the existing cache
167
+ const data = (0, deepmerge_1.default)(existingCache, initialState, {
168
+ // combine arrays using object equality (like in sets)
169
+ arrayMerge: (destinationArray, sourceArray) => [
170
+ ...sourceArray,
171
+ ...destinationArray.filter((d) => sourceArray.every((s) => !(0, lodash_isequal_1.default)(d, s))),
172
+ ],
173
+ });
174
+ // Restore the cache with the merged data
175
+ _apolloClient.cache.restore(data);
176
+ }
177
+ // For SSG and SSR always create a new Apollo Client
178
+ if (typeof window === "undefined")
179
+ return _apolloClient;
180
+ // Create the Apollo Client once in the client
181
+ if (!apolloClient)
182
+ apolloClient = _apolloClient;
183
+ return _apolloClient;
184
+ }
185
+ exports.initializeApollo = initializeApollo;
@@ -0,0 +1,2 @@
1
+ import { TypePolicies } from "@apollo/client";
2
+ export declare const typePoliciesPortal: TypePolicies;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.typePoliciesPortal = void 0;
4
+ exports.typePoliciesPortal = {
5
+ Query: {
6
+ fields: {
7
+ fetchAsset: {
8
+ keyArgs: ["rank", "likes", "assetId"],
9
+ merge: true,
10
+ },
11
+ fetchUserGalleries: {
12
+ keyArgs: ["galleryId"],
13
+ merge: true,
14
+ },
15
+ fetchUserFavorites: {
16
+ keyArgs: ["galleryId"],
17
+ merge: true,
18
+ },
19
+ fetchUserFavoritesV2: {
20
+ keyArgs: ["galleryId"],
21
+ merge: true,
22
+ },
23
+ fetchMyFavoritesV2: {
24
+ keyArgs: ["galleryId"],
25
+ merge: true,
26
+ },
27
+ fetchMyGalleriesV2: {
28
+ keyArgs: ["galleryId"],
29
+ merge: true,
30
+ },
31
+ fetchUserGalleriesV2: {
32
+ keyArgs: ["galleryId"],
33
+ merge: true,
34
+ },
35
+ fetchCreations: {
36
+ keyArgs: ["itemId"],
37
+ merge: true,
38
+ },
39
+ CollectionPage: {
40
+ keyArgs: ["collectionId"],
41
+ merge: true,
42
+ },
43
+ fetchCreationsByType: {
44
+ keyArgs: ["nextPageToken"],
45
+ merge: true,
46
+ },
47
+ fetchAllCreations: {
48
+ keyArgs: ["nextPageToken"],
49
+ merge: true,
50
+ },
51
+ },
52
+ },
53
+ };
@@ -0,0 +1,19 @@
1
+ declare const assignCookies: (userId: string, wallets: Array<string>, authToken: string, refreshToken: string, newUser: string, inviteCode: string, domain?: string) => void;
2
+ declare const refreshCookies: (authToken: string, refreshToken: string, domain?: string) => void;
3
+ declare const getCookies: () => {
4
+ authToken: string;
5
+ refreshToken: string;
6
+ userId: string;
7
+ wallets: string;
8
+ newUser: string;
9
+ inviteCode: string;
10
+ } | {
11
+ authToken: null;
12
+ refreshToken: null;
13
+ userId: null;
14
+ wallets: null;
15
+ newUser: null;
16
+ inviteCode: null;
17
+ };
18
+ declare const destroyCookies: (domain?: string) => void;
19
+ export { assignCookies, refreshCookies, destroyCookies, getCookies };
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getCookies = exports.destroyCookies = exports.refreshCookies = exports.assignCookies = void 0;
4
+ const nookies_1 = require("nookies");
5
+ const assignCookies = (userId, wallets, authToken, refreshToken, newUser, inviteCode, domain = "ludo.ninja") => {
6
+ if (userId)
7
+ (0, nookies_1.setCookie)(null, "userId", userId, { maxAge: 2629800000, path: "/", domain });
8
+ if (wallets)
9
+ (0, nookies_1.setCookie)(null, "wallets", wallets.join(), {
10
+ maxAge: 2629800000,
11
+ path: "/",
12
+ domain,
13
+ });
14
+ if (authToken)
15
+ (0, nookies_1.setCookie)(null, "authToken", authToken, {
16
+ maxAge: 2629800000,
17
+ path: "/",
18
+ domain,
19
+ });
20
+ if (refreshToken)
21
+ (0, nookies_1.setCookie)(null, "refreshToken", refreshToken, {
22
+ maxAge: 2629800000,
23
+ path: "/",
24
+ domain,
25
+ });
26
+ if (newUser)
27
+ (0, nookies_1.setCookie)(null, "newUser", newUser, {
28
+ maxAge: 2629800000,
29
+ path: "/",
30
+ domain,
31
+ });
32
+ if (inviteCode)
33
+ (0, nookies_1.setCookie)(null, "inviteCode", inviteCode, {
34
+ maxAge: 2629800000,
35
+ path: "/",
36
+ domain,
37
+ });
38
+ };
39
+ exports.assignCookies = assignCookies;
40
+ const refreshCookies = (authToken, refreshToken, domain = "ludo.ninja") => {
41
+ if (authToken)
42
+ (0, nookies_1.setCookie)(null, "authToken", authToken, {
43
+ maxAge: 2629800000,
44
+ path: "/",
45
+ domain,
46
+ });
47
+ if (refreshToken)
48
+ (0, nookies_1.setCookie)(null, "refreshToken", refreshToken, {
49
+ maxAge: 2629800000,
50
+ path: "/",
51
+ domain,
52
+ });
53
+ };
54
+ exports.refreshCookies = refreshCookies;
55
+ const getCookies = () => {
56
+ const { authToken, refreshToken, userId, wallets, newUser, inviteCode } = (0, nookies_1.parseCookies)();
57
+ if (authToken && refreshToken && userId && wallets && newUser && inviteCode) {
58
+ return {
59
+ authToken,
60
+ refreshToken,
61
+ userId,
62
+ wallets,
63
+ newUser,
64
+ inviteCode,
65
+ };
66
+ }
67
+ return {
68
+ authToken: null,
69
+ refreshToken: null,
70
+ userId: null,
71
+ wallets: null,
72
+ newUser: null,
73
+ inviteCode: null,
74
+ };
75
+ };
76
+ exports.getCookies = getCookies;
77
+ const destroyCookies = (domain = "ludo.ninja") => {
78
+ (0, nookies_1.destroyCookie)(null, "userId", { path: "/", domain });
79
+ (0, nookies_1.destroyCookie)(null, "wallets", { path: "/", domain });
80
+ (0, nookies_1.destroyCookie)(null, "authToken", { path: "/", domain });
81
+ (0, nookies_1.destroyCookie)(null, "refreshToken", { path: "/", domain });
82
+ (0, nookies_1.destroyCookie)(null, "newUser", { path: "/", domain });
83
+ (0, nookies_1.destroyCookie)(null, "inviteCode", { path: "/", domain });
84
+ };
85
+ exports.destroyCookies = destroyCookies;
@@ -299,7 +299,8 @@ export type ICollectionMarket = {
299
299
  };
300
300
  export type ICollectionPage = {
301
301
  collections: Array<Maybe<ICollection>>;
302
- nextPage?: Maybe<IPage>;
302
+ nextPageToken?: Maybe<Scalars['String']>;
303
+ results?: Maybe<Scalars['Long']>;
303
304
  };
304
305
  export type ICollectionsPage = {
305
306
  collections?: Maybe<Array<Maybe<ICollection>>>;
@@ -330,8 +331,9 @@ export type ICreationFilterInput = {
330
331
  status: Scalars['String'];
331
332
  };
332
333
  export type ICreationsPage = {
333
- creations: Array<Maybe<ICreation>>;
334
- nextPage?: Maybe<IPage>;
334
+ creations?: Maybe<Array<Maybe<ICreation>>>;
335
+ nextPageToken?: Maybe<Scalars['String']>;
336
+ results?: Maybe<Scalars['Long']>;
335
337
  };
336
338
  export type ICurrencyAmountPair = {
337
339
  currency?: Maybe<Scalars['String']>;
@@ -1126,16 +1128,6 @@ export type IOpportunityPage = {
1126
1128
  currentOpportunities?: Maybe<Array<Maybe<IOpportunity>>>;
1127
1129
  similarOpportunities?: Maybe<Array<Maybe<IOpportunity>>>;
1128
1130
  };
1129
- export type IPage = {
1130
- token?: Maybe<Scalars['String']>;
1131
- num?: Maybe<Scalars['Int']>;
1132
- size?: Maybe<Scalars['Int']>;
1133
- elements?: Maybe<Scalars['Long']>;
1134
- };
1135
- export type IPageInput = {
1136
- token?: Maybe<Scalars['String']>;
1137
- size?: Maybe<Scalars['Int']>;
1138
- };
1139
1131
  export type IProfile = {
1140
1132
  about?: Maybe<Scalars['String']>;
1141
1133
  createdAt?: Maybe<Scalars['Long']>;
@@ -1158,7 +1150,6 @@ export type IProfile = {
1158
1150
  website?: Maybe<Scalars['String']>;
1159
1151
  };
1160
1152
  export type IProfilePage = {
1161
- nextPage?: Maybe<IPage>;
1162
1153
  nextPageToken?: Maybe<Scalars['String']>;
1163
1154
  profiles: Array<Maybe<IProfile>>;
1164
1155
  results?: Maybe<Scalars['Long']>;
@@ -1307,7 +1298,8 @@ export type IQueryFetchAllBannerAssetsArgs = {
1307
1298
  pageToken?: Maybe<Scalars['String']>;
1308
1299
  };
1309
1300
  export type IQueryFetchAllCreationsArgs = {
1310
- page?: Maybe<IPageInput>;
1301
+ pageSize: Scalars['Int'];
1302
+ pageToken?: Maybe<Scalars['String']>;
1311
1303
  };
1312
1304
  export type IQueryFetchAllMarketsArgs = {
1313
1305
  pageSize: Scalars['Int'];
@@ -1372,7 +1364,8 @@ export type IQueryFetchCreationArgs = {
1372
1364
  };
1373
1365
  export type IQueryFetchCreationsByTypeArgs = {
1374
1366
  itemType: Scalars['String'];
1375
- page?: Maybe<IPageInput>;
1367
+ pageSize: Scalars['Int'];
1368
+ pageToken?: Maybe<Scalars['String']>;
1376
1369
  };
1377
1370
  export type IQueryFetchDynamicAssetDataArgs = {
1378
1371
  assetId: Scalars['String'];
@@ -1576,7 +1569,8 @@ export type IQueryFindAssetsByTermArgs = {
1576
1569
  export type IQueryFindCollectionsArgs = {
1577
1570
  term: Scalars['String'];
1578
1571
  input: ICollectionFilterInput;
1579
- page?: Maybe<IPageInput>;
1572
+ pageSize: Scalars['Int'];
1573
+ pageToken?: Maybe<Scalars['String']>;
1580
1574
  };
1581
1575
  export type IQueryFindCollectionsByTitleArgs = {
1582
1576
  input: ISearchFilterInput;
@@ -1584,9 +1578,10 @@ export type IQueryFindCollectionsByTitleArgs = {
1584
1578
  pageToken?: Maybe<Scalars['String']>;
1585
1579
  };
1586
1580
  export type IQueryFindCreationsArgs = {
1587
- term: Scalars['String'];
1588
1581
  input: ICreationFilterInput;
1589
- page?: Maybe<IPageInput>;
1582
+ pageSize: Scalars['Int'];
1583
+ pageToken?: Maybe<Scalars['String']>;
1584
+ term: Scalars['String'];
1590
1585
  };
1591
1586
  export type IQueryFindGalleriesByNameArgs = {
1592
1587
  input: ISearchFilterInput;
@@ -1600,7 +1595,8 @@ export type IQueryFindGalleriesByTermArgs = {
1600
1595
  };
1601
1596
  export type IQueryFindProfilesByNameArgs = {
1602
1597
  name: Scalars['String'];
1603
- page?: Maybe<IPageInput>;
1598
+ pageSize: Scalars['Int'];
1599
+ pageToken?: Maybe<Scalars['String']>;
1604
1600
  };
1605
1601
  export type IQueryFindProfilesByTermArgs = {
1606
1602
  pageSize: Scalars['Int'];
@@ -1628,9 +1624,10 @@ export type IQueryFindTopEntitiesByTermArgs = {
1628
1624
  term: Scalars['String'];
1629
1625
  };
1630
1626
  export type IQueryFindUserCreationsArgs = {
1631
- ownerId: Scalars['String'];
1632
1627
  input: ICreationFilterInput;
1633
- page?: Maybe<IPageInput>;
1628
+ ownerId: Scalars['String'];
1629
+ pageSize: Scalars['Int'];
1630
+ pageToken?: Maybe<Scalars['String']>;
1634
1631
  };
1635
1632
  export type IQueryFindUserFavoriteListsArgs = {
1636
1633
  ownerId: Scalars['String'];
@@ -2502,13 +2499,13 @@ export type IFetchSetsSearchResultTypeSelectionsQuery = {
2502
2499
  fetchSetsSearchResultTypeSelections: Array<Maybe<Pick<ISelection, 'name' | 'label'>>>;
2503
2500
  };
2504
2501
  export type IFetchAllCreationsQueryVariables = Exact<{
2505
- page?: Maybe<IPageInput>;
2502
+ pageSize: Scalars['Int'];
2503
+ pageToken?: Maybe<Scalars['String']>;
2506
2504
  }>;
2507
2505
  export type IFetchAllCreationsQuery = {
2508
- fetchAllCreations: {
2509
- nextPage?: Maybe<Pick<IPage, 'token' | 'num' | 'size' | 'elements'>>;
2510
- creations: Array<Maybe<Pick<ICreation, 'itemType' | 'itemId' | 'blockchain' | 'rank' | 'address' | 'liked' | 'likes' | 'tokenId' | 'name' | 'creatorsAddresses' | 'originalUrls' | 'media' | 'mediaPreview' | 'mimeType'>>>;
2511
- };
2506
+ fetchAllCreations: (Pick<ICreationsPage, 'nextPageToken'> & {
2507
+ creations?: Maybe<Array<Maybe<Pick<ICreation, 'itemType' | 'itemId' | 'blockchain' | 'rank' | 'address' | 'liked' | 'likes' | 'tokenId' | 'name' | 'creatorsAddresses' | 'originalUrls' | 'media' | 'mediaPreview' | 'mimeType'>>>>;
2508
+ });
2512
2509
  };
2513
2510
  export type IFetchAssetsCountQueryVariables = Exact<{
2514
2511
  [key: string]: never;
@@ -2517,25 +2514,25 @@ export type IFetchAssetsCountQuery = Pick<IQuery, 'fetchAssetsCount'>;
2517
2514
  export type IFindCollectionsQueryVariables = Exact<{
2518
2515
  term: Scalars['String'];
2519
2516
  input: ICollectionFilterInput;
2520
- page?: Maybe<IPageInput>;
2517
+ pageSize: Scalars['Int'];
2518
+ pageToken?: Maybe<Scalars['String']>;
2521
2519
  }>;
2522
2520
  export type IFindCollectionsQuery = {
2523
- findCollections: {
2521
+ findCollections: (Pick<ICollectionPage, 'nextPageToken' | 'results'> & {
2524
2522
  collections: Array<Maybe<(Pick<ICollection, 'collectionId' | 'collectionTitle' | 'blockchain' | 'tokenId' | 'likes' | 'liked' | 'rank'> & {
2525
2523
  medias?: Maybe<Array<Maybe<Pick<IMedia, 'originalUrl' | 'url' | 'previewUrl' | 'mimeType' | 'sizeRatio' | 'fileSize'>>>>;
2526
2524
  })>>;
2527
- nextPage?: Maybe<Pick<IPage, 'token' | 'num' | 'size' | 'elements'>>;
2528
- };
2525
+ });
2529
2526
  };
2530
2527
  export type IFetchCreationsByTypeQueryVariables = Exact<{
2531
2528
  itemType: Scalars['String'];
2532
- page?: Maybe<IPageInput>;
2529
+ pageSize: Scalars['Int'];
2530
+ pageToken?: Maybe<Scalars['String']>;
2533
2531
  }>;
2534
2532
  export type IFetchCreationsByTypeQuery = {
2535
- fetchCreationsByType: {
2536
- nextPage?: Maybe<Pick<IPage, 'token' | 'num' | 'size' | 'elements'>>;
2537
- creations: Array<Maybe<Pick<ICreation, 'itemType' | 'itemId' | 'blockchain' | 'rank' | 'liked' | 'likes' | 'address' | 'tokenId' | 'name' | 'creatorsAddresses' | 'originalUrls' | 'media' | 'mediaPreview' | 'mimeType'>>>;
2538
- };
2533
+ fetchCreationsByType: (Pick<ICreationsPage, 'nextPageToken'> & {
2534
+ creations?: Maybe<Array<Maybe<Pick<ICreation, 'itemType' | 'itemId' | 'blockchain' | 'rank' | 'liked' | 'likes' | 'address' | 'tokenId' | 'name' | 'creatorsAddresses' | 'originalUrls' | 'media' | 'mediaPreview' | 'mimeType'>>>>;
2535
+ });
2539
2536
  };
2540
2537
  export type IFindAllTopEntitiesByNameQueryVariables = Exact<{
2541
2538
  name: Scalars['String'];
@@ -2565,23 +2562,23 @@ export type IFetchUserPortfolioQuery = {
2565
2562
  export type IFindCreationsQueryVariables = Exact<{
2566
2563
  term: Scalars['String'];
2567
2564
  input: ICreationFilterInput;
2568
- page?: Maybe<IPageInput>;
2565
+ pageSize: Scalars['Int'];
2566
+ pageToken?: Maybe<Scalars['String']>;
2569
2567
  }>;
2570
2568
  export type IFindCreationsQuery = {
2571
- findCreations: {
2572
- nextPage?: Maybe<Pick<IPage, 'token' | 'num' | 'size' | 'elements'>>;
2573
- creations: Array<Maybe<Pick<ICreation, 'itemType' | 'address' | 'tokenId' | 'itemId' | 'blockchain' | 'name' | 'creatorsAddresses' | 'originalUrls' | 'media' | 'mediaPreview' | 'mimeType' | 'rank' | 'likes' | 'liked'>>>;
2574
- };
2569
+ findCreations: (Pick<ICreationsPage, 'nextPageToken' | 'results'> & {
2570
+ creations?: Maybe<Array<Maybe<Pick<ICreation, 'itemType' | 'address' | 'tokenId' | 'itemId' | 'blockchain' | 'name' | 'creatorsAddresses' | 'originalUrls' | 'media' | 'mediaPreview' | 'mimeType' | 'rank' | 'likes' | 'liked'>>>>;
2571
+ });
2575
2572
  };
2576
2573
  export type IFindProfilesByNameQueryVariables = Exact<{
2577
2574
  name: Scalars['String'];
2578
- page?: Maybe<IPageInput>;
2575
+ pageSize: Scalars['Int'];
2576
+ pageToken?: Maybe<Scalars['String']>;
2579
2577
  }>;
2580
2578
  export type IFindProfilesByNameQuery = {
2581
- findProfilesByName: {
2582
- nextPage?: Maybe<Pick<IPage, 'token' | 'num' | 'size' | 'elements'>>;
2579
+ findProfilesByName: (Pick<IProfilePage, 'nextPageToken' | 'results'> & {
2583
2580
  profiles: Array<Maybe<Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'followers' | 'followings' | 'visible'>>>;
2584
- };
2581
+ });
2585
2582
  };
2586
2583
  export type IFindSetsQueryVariables = Exact<{
2587
2584
  term: Scalars['String'];
@@ -2608,13 +2605,13 @@ export type IFindShowcaseItemsQuery = {
2608
2605
  export type IFindUserCreationsQueryVariables = Exact<{
2609
2606
  ownerId: Scalars['String'];
2610
2607
  input: ICreationFilterInput;
2611
- page?: Maybe<IPageInput>;
2608
+ pageSize: Scalars['Int'];
2609
+ pageToken?: Maybe<Scalars['String']>;
2612
2610
  }>;
2613
2611
  export type IFindUserCreationsQuery = {
2614
- findUserCreations: {
2615
- nextPage?: Maybe<Pick<IPage, 'token' | 'num' | 'size' | 'elements'>>;
2616
- creations: Array<Maybe<Pick<ICreation, 'id' | 'itemType' | 'tokenId' | 'address' | 'itemId' | 'blockchain' | 'rank' | 'name' | 'creatorsAddresses' | 'originalUrls' | 'media' | 'mediaPreview' | 'mimeType' | 'likes'>>>;
2617
- };
2612
+ findUserCreations: (Pick<ICreationsPage, 'nextPageToken' | 'results'> & {
2613
+ creations?: Maybe<Array<Maybe<Pick<ICreation, 'id' | 'itemType' | 'tokenId' | 'address' | 'itemId' | 'blockchain' | 'rank' | 'name' | 'creatorsAddresses' | 'originalUrls' | 'media' | 'mediaPreview' | 'mimeType' | 'likes'>>>>;
2614
+ });
2618
2615
  };
2619
2616
  export type IFindUserShowcaseItemsQueryVariables = Exact<{
2620
2617
  ownerId: Scalars['String'];
@@ -4919,15 +4916,18 @@ export declare const FetchAllCreationsDocument: Apollo.DocumentNode;
4919
4916
  * @example
4920
4917
  * const { data, loading, error } = useFetchAllCreationsQuery({
4921
4918
  * variables: {
4922
- * page: // value for 'page'
4919
+ * pageSize: // value for 'pageSize'
4920
+ * pageToken: // value for 'pageToken'
4923
4921
  * },
4924
4922
  * });
4925
4923
  */
4926
- export declare function useFetchAllCreationsQuery(baseOptions?: Apollo.QueryHookOptions<IFetchAllCreationsQuery, IFetchAllCreationsQueryVariables>): Apollo.QueryResult<IFetchAllCreationsQuery, Exact<{
4927
- page?: Maybe<IPageInput> | undefined;
4924
+ export declare function useFetchAllCreationsQuery(baseOptions: Apollo.QueryHookOptions<IFetchAllCreationsQuery, IFetchAllCreationsQueryVariables>): Apollo.QueryResult<IFetchAllCreationsQuery, Exact<{
4925
+ pageSize: number;
4926
+ pageToken?: Maybe<string> | undefined;
4928
4927
  }>>;
4929
4928
  export declare function useFetchAllCreationsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAllCreationsQuery, IFetchAllCreationsQueryVariables>): Apollo.LazyQueryResultTuple<IFetchAllCreationsQuery, Exact<{
4930
- page?: Maybe<IPageInput> | undefined;
4929
+ pageSize: number;
4930
+ pageToken?: Maybe<string> | undefined;
4931
4931
  }>>;
4932
4932
  export type FetchAllCreationsQueryHookResult = ReturnType<typeof useFetchAllCreationsQuery>;
4933
4933
  export type FetchAllCreationsLazyQueryHookResult = ReturnType<typeof useFetchAllCreationsLazyQuery>;
@@ -4972,19 +4972,22 @@ export declare const FindCollectionsDocument: Apollo.DocumentNode;
4972
4972
  * variables: {
4973
4973
  * term: // value for 'term'
4974
4974
  * input: // value for 'input'
4975
- * page: // value for 'page'
4975
+ * pageSize: // value for 'pageSize'
4976
+ * pageToken: // value for 'pageToken'
4976
4977
  * },
4977
4978
  * });
4978
4979
  */
4979
4980
  export declare function useFindCollectionsQuery(baseOptions: Apollo.QueryHookOptions<IFindCollectionsQuery, IFindCollectionsQueryVariables>): Apollo.QueryResult<IFindCollectionsQuery, Exact<{
4980
4981
  term: string;
4981
4982
  input: ICollectionFilterInput;
4982
- page?: Maybe<IPageInput> | undefined;
4983
+ pageSize: number;
4984
+ pageToken?: Maybe<string> | undefined;
4983
4985
  }>>;
4984
4986
  export declare function useFindCollectionsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFindCollectionsQuery, IFindCollectionsQueryVariables>): Apollo.LazyQueryResultTuple<IFindCollectionsQuery, Exact<{
4985
4987
  term: string;
4986
4988
  input: ICollectionFilterInput;
4987
- page?: Maybe<IPageInput> | undefined;
4989
+ pageSize: number;
4990
+ pageToken?: Maybe<string> | undefined;
4988
4991
  }>>;
4989
4992
  export type FindCollectionsQueryHookResult = ReturnType<typeof useFindCollectionsQuery>;
4990
4993
  export type FindCollectionsLazyQueryHookResult = ReturnType<typeof useFindCollectionsLazyQuery>;
@@ -5003,17 +5006,20 @@ export declare const FetchCreationsByTypeDocument: Apollo.DocumentNode;
5003
5006
  * const { data, loading, error } = useFetchCreationsByTypeQuery({
5004
5007
  * variables: {
5005
5008
  * itemType: // value for 'itemType'
5006
- * page: // value for 'page'
5009
+ * pageSize: // value for 'pageSize'
5010
+ * pageToken: // value for 'pageToken'
5007
5011
  * },
5008
5012
  * });
5009
5013
  */
5010
5014
  export declare function useFetchCreationsByTypeQuery(baseOptions: Apollo.QueryHookOptions<IFetchCreationsByTypeQuery, IFetchCreationsByTypeQueryVariables>): Apollo.QueryResult<IFetchCreationsByTypeQuery, Exact<{
5011
5015
  itemType: string;
5012
- page?: Maybe<IPageInput> | undefined;
5016
+ pageSize: number;
5017
+ pageToken?: Maybe<string> | undefined;
5013
5018
  }>>;
5014
5019
  export declare function useFetchCreationsByTypeLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchCreationsByTypeQuery, IFetchCreationsByTypeQueryVariables>): Apollo.LazyQueryResultTuple<IFetchCreationsByTypeQuery, Exact<{
5015
5020
  itemType: string;
5016
- page?: Maybe<IPageInput> | undefined;
5021
+ pageSize: number;
5022
+ pageToken?: Maybe<string> | undefined;
5017
5023
  }>>;
5018
5024
  export type FetchCreationsByTypeQueryHookResult = ReturnType<typeof useFetchCreationsByTypeQuery>;
5019
5025
  export type FetchCreationsByTypeLazyQueryHookResult = ReturnType<typeof useFetchCreationsByTypeLazyQuery>;
@@ -5088,19 +5094,22 @@ export declare const FindCreationsDocument: Apollo.DocumentNode;
5088
5094
  * variables: {
5089
5095
  * term: // value for 'term'
5090
5096
  * input: // value for 'input'
5091
- * page: // value for 'page'
5097
+ * pageSize: // value for 'pageSize'
5098
+ * pageToken: // value for 'pageToken'
5092
5099
  * },
5093
5100
  * });
5094
5101
  */
5095
5102
  export declare function useFindCreationsQuery(baseOptions: Apollo.QueryHookOptions<IFindCreationsQuery, IFindCreationsQueryVariables>): Apollo.QueryResult<IFindCreationsQuery, Exact<{
5096
5103
  term: string;
5097
5104
  input: ICreationFilterInput;
5098
- page?: Maybe<IPageInput> | undefined;
5105
+ pageSize: number;
5106
+ pageToken?: Maybe<string> | undefined;
5099
5107
  }>>;
5100
5108
  export declare function useFindCreationsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFindCreationsQuery, IFindCreationsQueryVariables>): Apollo.LazyQueryResultTuple<IFindCreationsQuery, Exact<{
5101
5109
  term: string;
5102
5110
  input: ICreationFilterInput;
5103
- page?: Maybe<IPageInput> | undefined;
5111
+ pageSize: number;
5112
+ pageToken?: Maybe<string> | undefined;
5104
5113
  }>>;
5105
5114
  export type FindCreationsQueryHookResult = ReturnType<typeof useFindCreationsQuery>;
5106
5115
  export type FindCreationsLazyQueryHookResult = ReturnType<typeof useFindCreationsLazyQuery>;
@@ -5119,17 +5128,20 @@ export declare const FindProfilesByNameDocument: Apollo.DocumentNode;
5119
5128
  * const { data, loading, error } = useFindProfilesByNameQuery({
5120
5129
  * variables: {
5121
5130
  * name: // value for 'name'
5122
- * page: // value for 'page'
5131
+ * pageSize: // value for 'pageSize'
5132
+ * pageToken: // value for 'pageToken'
5123
5133
  * },
5124
5134
  * });
5125
5135
  */
5126
5136
  export declare function useFindProfilesByNameQuery(baseOptions: Apollo.QueryHookOptions<IFindProfilesByNameQuery, IFindProfilesByNameQueryVariables>): Apollo.QueryResult<IFindProfilesByNameQuery, Exact<{
5127
5137
  name: string;
5128
- page?: Maybe<IPageInput> | undefined;
5138
+ pageSize: number;
5139
+ pageToken?: Maybe<string> | undefined;
5129
5140
  }>>;
5130
5141
  export declare function useFindProfilesByNameLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFindProfilesByNameQuery, IFindProfilesByNameQueryVariables>): Apollo.LazyQueryResultTuple<IFindProfilesByNameQuery, Exact<{
5131
5142
  name: string;
5132
- page?: Maybe<IPageInput> | undefined;
5143
+ pageSize: number;
5144
+ pageToken?: Maybe<string> | undefined;
5133
5145
  }>>;
5134
5146
  export type FindProfilesByNameQueryHookResult = ReturnType<typeof useFindProfilesByNameQuery>;
5135
5147
  export type FindProfilesByNameLazyQueryHookResult = ReturnType<typeof useFindProfilesByNameLazyQuery>;
@@ -5219,19 +5231,22 @@ export declare const FindUserCreationsDocument: Apollo.DocumentNode;
5219
5231
  * variables: {
5220
5232
  * ownerId: // value for 'ownerId'
5221
5233
  * input: // value for 'input'
5222
- * page: // value for 'page'
5234
+ * pageSize: // value for 'pageSize'
5235
+ * pageToken: // value for 'pageToken'
5223
5236
  * },
5224
5237
  * });
5225
5238
  */
5226
5239
  export declare function useFindUserCreationsQuery(baseOptions: Apollo.QueryHookOptions<IFindUserCreationsQuery, IFindUserCreationsQueryVariables>): Apollo.QueryResult<IFindUserCreationsQuery, Exact<{
5227
5240
  ownerId: string;
5228
5241
  input: ICreationFilterInput;
5229
- page?: Maybe<IPageInput> | undefined;
5242
+ pageSize: number;
5243
+ pageToken?: Maybe<string> | undefined;
5230
5244
  }>>;
5231
5245
  export declare function useFindUserCreationsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFindUserCreationsQuery, IFindUserCreationsQueryVariables>): Apollo.LazyQueryResultTuple<IFindUserCreationsQuery, Exact<{
5232
5246
  ownerId: string;
5233
5247
  input: ICreationFilterInput;
5234
- page?: Maybe<IPageInput> | undefined;
5248
+ pageSize: number;
5249
+ pageToken?: Maybe<string> | undefined;
5235
5250
  }>>;
5236
5251
  export type FindUserCreationsQueryHookResult = ReturnType<typeof useFindUserCreationsQuery>;
5237
5252
  export type FindUserCreationsLazyQueryHookResult = ReturnType<typeof useFindUserCreationsLazyQuery>;
@@ -3356,14 +3356,9 @@ function useFetchSetsSearchResultTypeSelectionsLazyQuery(baseOptions) {
3356
3356
  }
3357
3357
  exports.useFetchSetsSearchResultTypeSelectionsLazyQuery = useFetchSetsSearchResultTypeSelectionsLazyQuery;
3358
3358
  exports.FetchAllCreationsDocument = (0, client_1.gql) `
3359
- query FetchAllCreations($page: PageInput) {
3360
- fetchAllCreations(page: $page) {
3361
- nextPage {
3362
- token
3363
- num
3364
- size
3365
- elements
3366
- }
3359
+ query FetchAllCreations($pageSize: Int!, $pageToken: String) {
3360
+ fetchAllCreations(pageSize: $pageSize, pageToken: $pageToken) {
3361
+ nextPageToken
3367
3362
  creations {
3368
3363
  itemType
3369
3364
  itemId
@@ -3395,7 +3390,8 @@ exports.FetchAllCreationsDocument = (0, client_1.gql) `
3395
3390
  * @example
3396
3391
  * const { data, loading, error } = useFetchAllCreationsQuery({
3397
3392
  * variables: {
3398
- * page: // value for 'page'
3393
+ * pageSize: // value for 'pageSize'
3394
+ * pageToken: // value for 'pageToken'
3399
3395
  * },
3400
3396
  * });
3401
3397
  */
@@ -3436,8 +3432,13 @@ function useFetchAssetsCountLazyQuery(baseOptions) {
3436
3432
  }
3437
3433
  exports.useFetchAssetsCountLazyQuery = useFetchAssetsCountLazyQuery;
3438
3434
  exports.FindCollectionsDocument = (0, client_1.gql) `
3439
- query FindCollections($term: String!, $input: CollectionFilterInput!, $page: PageInput) {
3440
- findCollections(term: $term, input: $input, page: $page) {
3435
+ query FindCollections($term: String!, $input: CollectionFilterInput!, $pageSize: Int!, $pageToken: String) {
3436
+ findCollections(
3437
+ term: $term
3438
+ input: $input
3439
+ pageSize: $pageSize
3440
+ pageToken: $pageToken
3441
+ ) {
3441
3442
  collections {
3442
3443
  collectionId
3443
3444
  collectionTitle
@@ -3455,12 +3456,8 @@ exports.FindCollectionsDocument = (0, client_1.gql) `
3455
3456
  }
3456
3457
  rank
3457
3458
  }
3458
- nextPage {
3459
- token
3460
- num
3461
- size
3462
- elements
3463
- }
3459
+ nextPageToken
3460
+ results
3464
3461
  }
3465
3462
  }
3466
3463
  `;
@@ -3478,7 +3475,8 @@ exports.FindCollectionsDocument = (0, client_1.gql) `
3478
3475
  * variables: {
3479
3476
  * term: // value for 'term'
3480
3477
  * input: // value for 'input'
3481
- * page: // value for 'page'
3478
+ * pageSize: // value for 'pageSize'
3479
+ * pageToken: // value for 'pageToken'
3482
3480
  * },
3483
3481
  * });
3484
3482
  */
@@ -3491,14 +3489,13 @@ function useFindCollectionsLazyQuery(baseOptions) {
3491
3489
  }
3492
3490
  exports.useFindCollectionsLazyQuery = useFindCollectionsLazyQuery;
3493
3491
  exports.FetchCreationsByTypeDocument = (0, client_1.gql) `
3494
- query FetchCreationsByType($itemType: String!, $page: PageInput) {
3495
- fetchCreationsByType(itemType: $itemType, page: $page) {
3496
- nextPage {
3497
- token
3498
- num
3499
- size
3500
- elements
3501
- }
3492
+ query FetchCreationsByType($itemType: String!, $pageSize: Int!, $pageToken: String) {
3493
+ fetchCreationsByType(
3494
+ itemType: $itemType
3495
+ pageSize: $pageSize
3496
+ pageToken: $pageToken
3497
+ ) {
3498
+ nextPageToken
3502
3499
  creations {
3503
3500
  itemType
3504
3501
  itemId
@@ -3531,7 +3528,8 @@ exports.FetchCreationsByTypeDocument = (0, client_1.gql) `
3531
3528
  * const { data, loading, error } = useFetchCreationsByTypeQuery({
3532
3529
  * variables: {
3533
3530
  * itemType: // value for 'itemType'
3534
- * page: // value for 'page'
3531
+ * pageSize: // value for 'pageSize'
3532
+ * pageToken: // value for 'pageToken'
3535
3533
  * },
3536
3534
  * });
3537
3535
  */
@@ -3701,14 +3699,15 @@ function useFetchUserPortfolioLazyQuery(baseOptions) {
3701
3699
  }
3702
3700
  exports.useFetchUserPortfolioLazyQuery = useFetchUserPortfolioLazyQuery;
3703
3701
  exports.FindCreationsDocument = (0, client_1.gql) `
3704
- query FindCreations($term: String!, $input: CreationFilterInput!, $page: PageInput) {
3705
- findCreations(term: $term, input: $input, page: $page) {
3706
- nextPage {
3707
- token
3708
- num
3709
- size
3710
- elements
3711
- }
3702
+ query FindCreations($term: String!, $input: CreationFilterInput!, $pageSize: Int!, $pageToken: String) {
3703
+ findCreations(
3704
+ term: $term
3705
+ input: $input
3706
+ pageSize: $pageSize
3707
+ pageToken: $pageToken
3708
+ ) {
3709
+ nextPageToken
3710
+ results
3712
3711
  creations {
3713
3712
  itemType
3714
3713
  address
@@ -3742,7 +3741,8 @@ exports.FindCreationsDocument = (0, client_1.gql) `
3742
3741
  * variables: {
3743
3742
  * term: // value for 'term'
3744
3743
  * input: // value for 'input'
3745
- * page: // value for 'page'
3744
+ * pageSize: // value for 'pageSize'
3745
+ * pageToken: // value for 'pageToken'
3746
3746
  * },
3747
3747
  * });
3748
3748
  */
@@ -3755,14 +3755,9 @@ function useFindCreationsLazyQuery(baseOptions) {
3755
3755
  }
3756
3756
  exports.useFindCreationsLazyQuery = useFindCreationsLazyQuery;
3757
3757
  exports.FindProfilesByNameDocument = (0, client_1.gql) `
3758
- query FindProfilesByName($name: String!, $page: PageInput) {
3759
- findProfilesByName(name: $name, page: $page) {
3760
- nextPage {
3761
- token
3762
- num
3763
- size
3764
- elements
3765
- }
3758
+ query FindProfilesByName($name: String!, $pageSize: Int!, $pageToken: String) {
3759
+ findProfilesByName(name: $name, pageSize: $pageSize, pageToken: $pageToken) {
3760
+ nextPageToken
3766
3761
  profiles {
3767
3762
  userId
3768
3763
  username
@@ -3772,6 +3767,7 @@ exports.FindProfilesByNameDocument = (0, client_1.gql) `
3772
3767
  followings
3773
3768
  visible
3774
3769
  }
3770
+ results
3775
3771
  }
3776
3772
  }
3777
3773
  `;
@@ -3788,7 +3784,8 @@ exports.FindProfilesByNameDocument = (0, client_1.gql) `
3788
3784
  * const { data, loading, error } = useFindProfilesByNameQuery({
3789
3785
  * variables: {
3790
3786
  * name: // value for 'name'
3791
- * page: // value for 'page'
3787
+ * pageSize: // value for 'pageSize'
3788
+ * pageToken: // value for 'pageToken'
3792
3789
  * },
3793
3790
  * });
3794
3791
  */
@@ -3905,14 +3902,15 @@ function useFindShowcaseItemsLazyQuery(baseOptions) {
3905
3902
  }
3906
3903
  exports.useFindShowcaseItemsLazyQuery = useFindShowcaseItemsLazyQuery;
3907
3904
  exports.FindUserCreationsDocument = (0, client_1.gql) `
3908
- query FindUserCreations($ownerId: String!, $input: CreationFilterInput!, $page: PageInput) {
3909
- findUserCreations(ownerId: $ownerId, input: $input, page: $page) {
3910
- nextPage {
3911
- token
3912
- num
3913
- size
3914
- elements
3915
- }
3905
+ query FindUserCreations($ownerId: String!, $input: CreationFilterInput!, $pageSize: Int!, $pageToken: String) {
3906
+ findUserCreations(
3907
+ ownerId: $ownerId
3908
+ input: $input
3909
+ pageSize: $pageSize
3910
+ pageToken: $pageToken
3911
+ ) {
3912
+ nextPageToken
3913
+ results
3916
3914
  creations {
3917
3915
  id
3918
3916
  itemType
@@ -3946,7 +3944,8 @@ exports.FindUserCreationsDocument = (0, client_1.gql) `
3946
3944
  * variables: {
3947
3945
  * ownerId: // value for 'ownerId'
3948
3946
  * input: // value for 'input'
3949
- * page: // value for 'page'
3947
+ * pageSize: // value for 'pageSize'
3948
+ * pageToken: // value for 'pageToken'
3950
3949
  * },
3951
3950
  * });
3952
3951
  */
@@ -0,0 +1,27 @@
1
+ export declare const authHost = "https://auth.ludo.ninja:8080/graphql";
2
+ export declare const identityHost = "https://identities.ludo.ninja:8090/graphql";
3
+ export declare const assetsHost = "https://assets.ludo.ninja:8090/graphql";
4
+ export declare const collectionsHost = "https://collections.ludo.ninja:8090/graphql";
5
+ export declare const serverAssetsHost = "http://server-assets.istio.svc.k8s.local:8090/graphql";
6
+ export declare const serverCollectionsHost = "http://server-collections.istio.svc.k8s.local:8090/graphql";
7
+ export declare const serverIdentityHost = "http://server-identities.istio.svc.k8s.local:8090/graphql";
8
+ export declare const galleriesHost = "https://galleries.ludo.ninja:8090/graphql";
9
+ export declare const serverGalleriesHost = "http://server-galleries.istio.svc.k8s.local:8090/graphql";
10
+ export declare const mediasHost = "https://medias.ludo.ninja:8090/graphql";
11
+ export declare const serverImagesHost = "http://server-images.istio.svc.k8s.local:8090/graphql";
12
+ export declare const searchHost = "https://search.ludo.ninja:8090/graphql";
13
+ export declare const showCaseHost = "https://showcase.ludo.ninja:8090/graphql";
14
+ export declare const showCaseHostSSR = "http://ssr.showcase.ludo.ninja:8090/graphql";
15
+ export declare const serverShowCaseHost = "http://server-showcase.istio.svc.k8s.local:8090/graphql";
16
+ export declare const serverSearchHost = "http://server-search.istio.svc.k8s.local:8090/graphql";
17
+ export declare const preferencesHost = "https://preferences.ludo.ninja:8090/graphql";
18
+ export declare const preferencesHostSSR = "https://ssr-preferences.ludo.ninja:8091/graphql";
19
+ export declare const searchHostSSR = "https://ssr-search.ludo.ninja:8091/graphql";
20
+ export declare const serverPreferencesHost = "http://server-preferences.istio.svc.k8s.local:8090/graphql";
21
+ export declare const ethereumHost = "https://ethereum.ludo.ninja:8545";
22
+ export declare const eventsHost = "wss://events.ludo.ninja:8090/subscriptions";
23
+ export declare const experiencesSubscriptionHost = "wss://experiences.ludo.ninja:8090/subscriptions";
24
+ export declare const opportunitiesHost = "https://opportunities.ludo.ninja:8090/graphql";
25
+ export declare const extensionHost = "https://chrome.ludo.ninja:8092/graphql";
26
+ export declare const experiencesHost = "https://experiences.ludo.ninja:8090/graphql";
27
+ export declare const serverExperiencesHost = "http://server-experiences.istio.svc.k8s.local:8090/graphql";
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.serverExperiencesHost = exports.experiencesHost = exports.extensionHost = exports.opportunitiesHost = exports.experiencesSubscriptionHost = exports.eventsHost = exports.ethereumHost = exports.serverPreferencesHost = exports.searchHostSSR = exports.preferencesHostSSR = exports.preferencesHost = exports.serverSearchHost = exports.serverShowCaseHost = exports.showCaseHostSSR = exports.showCaseHost = exports.searchHost = exports.serverImagesHost = exports.mediasHost = exports.serverGalleriesHost = exports.galleriesHost = exports.serverIdentityHost = exports.serverCollectionsHost = exports.serverAssetsHost = exports.collectionsHost = exports.assetsHost = exports.identityHost = exports.authHost = void 0;
4
+ exports.authHost = "https://auth.ludo.ninja:8080/graphql";
5
+ exports.identityHost = "https://identities.ludo.ninja:8090/graphql";
6
+ exports.assetsHost = "https://assets.ludo.ninja:8090/graphql";
7
+ exports.collectionsHost = "https://collections.ludo.ninja:8090/graphql";
8
+ exports.serverAssetsHost = "http://server-assets.istio.svc.k8s.local:8090/graphql";
9
+ exports.serverCollectionsHost = "http://server-collections.istio.svc.k8s.local:8090/graphql";
10
+ exports.serverIdentityHost = "http://server-identities.istio.svc.k8s.local:8090/graphql";
11
+ exports.galleriesHost = "https://galleries.ludo.ninja:8090/graphql";
12
+ exports.serverGalleriesHost = "http://server-galleries.istio.svc.k8s.local:8090/graphql";
13
+ exports.mediasHost = "https://medias.ludo.ninja:8090/graphql";
14
+ exports.serverImagesHost = "http://server-images.istio.svc.k8s.local:8090/graphql";
15
+ exports.searchHost = "https://search.ludo.ninja:8090/graphql";
16
+ exports.showCaseHost = "https://showcase.ludo.ninja:8090/graphql";
17
+ exports.showCaseHostSSR = "http://ssr.showcase.ludo.ninja:8090/graphql";
18
+ exports.serverShowCaseHost = "http://server-showcase.istio.svc.k8s.local:8090/graphql";
19
+ exports.serverSearchHost = "http://server-search.istio.svc.k8s.local:8090/graphql";
20
+ exports.preferencesHost = "https://preferences.ludo.ninja:8090/graphql";
21
+ exports.preferencesHostSSR = "https://ssr-preferences.ludo.ninja:8091/graphql";
22
+ exports.searchHostSSR = "https://ssr-search.ludo.ninja:8091/graphql";
23
+ exports.serverPreferencesHost = "http://server-preferences.istio.svc.k8s.local:8090/graphql";
24
+ exports.ethereumHost = "https://ethereum.ludo.ninja:8545";
25
+ exports.eventsHost = `wss://events.ludo.ninja:8090/subscriptions`;
26
+ exports.experiencesSubscriptionHost = "wss://experiences.ludo.ninja:8090/subscriptions";
27
+ exports.opportunitiesHost = "https://opportunities.ludo.ninja:8090/graphql";
28
+ exports.extensionHost = "https://chrome.ludo.ninja:8092/graphql";
29
+ exports.experiencesHost = "https://experiences.ludo.ninja:8090/graphql";
30
+ exports.serverExperiencesHost = "http://server-experiences.istio.svc.k8s.local:8090/graphql";
@@ -0,0 +1,5 @@
1
+ import * as schema from "./graphql_tools/__generated__/schema";
2
+ import * as hosts from "./hosts";
3
+ import * as graphqlConfig from "./config";
4
+ import * as authCookies from "./cookies";
5
+ export { schema, hosts, graphqlConfig, authCookies };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludo.ninja/api",
3
- "version": "2.1.5",
3
+ "version": "2.1.6",
4
4
  "main": "./build/index.js",
5
5
  "scripts": {
6
6
  "test": "jest",