@ludo.ninja/api 2.8.24 → 2.8.25
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 +4 -4
- package/build/graphql_tools/__generated__/schema.d.ts +8930 -0
- package/build/graphql_tools/__generated__/schema.js +5431 -0
- package/build/hosts/index.d.ts +3 -0
- package/build/hosts/index.js +4 -1
- package/build/index.d.ts +2 -13
- package/build/index.js +3 -25
- package/package.json +1 -1
- package/src/config/index.ts +50 -50
- package/src/graphql_tools/__generated__/schema.ts +12022 -0
- package/src/hosts/index.ts +6 -0
- package/src/index.ts +2 -29
- package/tsconfig.tsbuildinfo +1 -1
- package/build/graphql_tools/__generated__/adminHost/schema.d.ts +0 -1406
- package/build/graphql_tools/__generated__/adminHost/schema.js +0 -683
- package/build/graphql_tools/__generated__/assetsHost/schema.d.ts +0 -392
- package/build/graphql_tools/__generated__/assetsHost/schema.js +0 -80
- package/build/graphql_tools/__generated__/authHost/schema.d.ts +0 -238
- package/build/graphql_tools/__generated__/authHost/schema.js +0 -85
- package/build/graphql_tools/__generated__/collectionsHost/schema.d.ts +0 -455
- package/build/graphql_tools/__generated__/collectionsHost/schema.js +0 -80
- package/build/graphql_tools/__generated__/experiencesHost/schema.d.ts +0 -356
- package/build/graphql_tools/__generated__/experiencesHost/schema.js +0 -191
- package/build/graphql_tools/__generated__/extensionHost/schema.d.ts +0 -808
- package/build/graphql_tools/__generated__/extensionHost/schema.js +0 -449
- package/build/graphql_tools/__generated__/galleriesHost/schema.d.ts +0 -794
- package/build/graphql_tools/__generated__/galleriesHost/schema.js +0 -575
- package/build/graphql_tools/__generated__/identityHost/schema.d.ts +0 -1201
- package/build/graphql_tools/__generated__/identityHost/schema.js +0 -757
- package/build/graphql_tools/__generated__/mediasHost/schema.d.ts +0 -242
- package/build/graphql_tools/__generated__/mediasHost/schema.js +0 -110
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.d.ts +0 -486
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.js +0 -148
- package/build/graphql_tools/__generated__/preferencesHost/schema.d.ts +0 -604
- package/build/graphql_tools/__generated__/preferencesHost/schema.js +0 -411
- package/build/graphql_tools/__generated__/searchHost/schema.d.ts +0 -1304
- package/build/graphql_tools/__generated__/searchHost/schema.js +0 -1191
- package/src/graphql_tools/__generated__/adminHost/schema.ts +0 -1777
- package/src/graphql_tools/__generated__/assetsHost/schema.ts +0 -482
- package/src/graphql_tools/__generated__/authHost/schema.ts +0 -317
- package/src/graphql_tools/__generated__/collectionsHost/schema.ts +0 -554
- package/src/graphql_tools/__generated__/experiencesHost/schema.ts +0 -478
- package/src/graphql_tools/__generated__/extensionHost/schema.ts +0 -1074
- package/src/graphql_tools/__generated__/galleriesHost/schema.ts +0 -1090
- package/src/graphql_tools/__generated__/identityHost/schema.ts +0 -1580
- package/src/graphql_tools/__generated__/mediasHost/schema.ts +0 -333
- package/src/graphql_tools/__generated__/opportunitiesHost/schema.ts +0 -629
- package/src/graphql_tools/__generated__/preferencesHost/schema.ts +0 -772
- package/src/graphql_tools/__generated__/searchHost/schema.ts +0 -2137
package/build/config/index.js
CHANGED
|
@@ -38,7 +38,7 @@ const errorLink = (0, error_1.onError)(({ graphQLErrors, networkError, operation
|
|
|
38
38
|
.mutate({
|
|
39
39
|
context: { uri: index_1.hosts.authHost },
|
|
40
40
|
variables: { refreshToken },
|
|
41
|
-
mutation: index_1.
|
|
41
|
+
mutation: index_1.schema.RefreshTokenDocument,
|
|
42
42
|
})
|
|
43
43
|
.then(({ data: { refreshToken: { tokenAuth, tokenRefresh }, }, }) => {
|
|
44
44
|
(0, cookies_1.refreshCookies)(tokenAuth, tokenRefresh, mainDomain);
|
|
@@ -48,7 +48,7 @@ const errorLink = (0, error_1.onError)(({ graphQLErrors, networkError, operation
|
|
|
48
48
|
.catch(async () => {
|
|
49
49
|
await apolloClient?.mutate({
|
|
50
50
|
context: { uri: index_1.hosts.authHost },
|
|
51
|
-
mutation: index_1.
|
|
51
|
+
mutation: index_1.schema.RevokeTokenDocument,
|
|
52
52
|
});
|
|
53
53
|
(0, cookies_1.destroyCookies)(mainDomain);
|
|
54
54
|
pendingRequests = [];
|
|
@@ -80,7 +80,7 @@ const errorLink = (0, error_1.onError)(({ graphQLErrors, networkError, operation
|
|
|
80
80
|
.mutate({
|
|
81
81
|
context: { uri: index_1.hosts.authHost },
|
|
82
82
|
variables: { refreshToken },
|
|
83
|
-
mutation: index_1.
|
|
83
|
+
mutation: index_1.schema.RefreshTokenDocument,
|
|
84
84
|
})
|
|
85
85
|
.then(({ data: { refreshToken: { tokenAuth, tokenRefresh }, }, }) => {
|
|
86
86
|
(0, cookies_1.refreshCookies)(tokenAuth, tokenRefresh, mainDomain);
|
|
@@ -90,7 +90,7 @@ const errorLink = (0, error_1.onError)(({ graphQLErrors, networkError, operation
|
|
|
90
90
|
.catch(async () => {
|
|
91
91
|
await apolloClient?.mutate({
|
|
92
92
|
context: { uri: index_1.hosts.authHost },
|
|
93
|
-
mutation: index_1.
|
|
93
|
+
mutation: index_1.schema.RevokeTokenDocument,
|
|
94
94
|
});
|
|
95
95
|
(0, cookies_1.destroyCookies)(mainDomain);
|
|
96
96
|
pendingRequests = [];
|