@ludo.ninja/api 2.8.73 → 2.8.75
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 -1
- package/build/hosts/index.d.ts +1 -1
- package/build/hosts/index.js +2 -2
- package/build/index.d.ts +72 -1
- package/build/index.js +5 -2
- package/package.json +1 -1
- package/src/config/index.ts +1 -1
- package/src/hosts/index.ts +1 -1
- package/src/index.ts +5 -2
- package/tsconfig.tsbuildinfo +1 -1
package/build/config/index.js
CHANGED
|
@@ -97,7 +97,7 @@ const httpLink = (0, apollo_upload_client_1.createUploadLink)({
|
|
|
97
97
|
});
|
|
98
98
|
const wsLink = typeof window !== "undefined"
|
|
99
99
|
? new subscriptions_1.GraphQLWsLink((0, graphql_ws_1.createClient)({
|
|
100
|
-
url: index_1.hosts.
|
|
100
|
+
url: index_1.hosts.notificationsSubscriptionHost,
|
|
101
101
|
retryAttempts: 3,
|
|
102
102
|
on: {
|
|
103
103
|
connected: () => console.log("GraphQLWsLink connected"),
|
package/build/hosts/index.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export declare const preferencesHostSSR = "https://ssr-preferences.ludo.ninja:80
|
|
|
18
18
|
export declare const searchHostSSR = "https://ssr-search.ludo.ninja:8091/graphql";
|
|
19
19
|
export declare const serverPreferencesHost = "http://server-preferences.istio.svc.k8s.local:8090/graphql";
|
|
20
20
|
export declare const eventsHost = "wss://events.ludo.ninja:8090/subscriptions";
|
|
21
|
-
export declare const
|
|
21
|
+
export declare const notificationsSubscriptionHost = "wss://notifications.ludo.ninja:8090/subscriptions";
|
|
22
22
|
export declare const opportunitiesHost = "https://opportunities.ludo.ninja:8090/graphql";
|
|
23
23
|
export declare const extensionHost = "https://chrome.ludo.ninja:8092/graphql";
|
|
24
24
|
export declare const experiencesHost = "https://experiences.ludo.ninja:8090/graphql";
|
package/build/hosts/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.tapHost = exports.formsHost = exports.serverExperiencesHost = exports.experiencesHost = exports.extensionHost = exports.opportunitiesHost = exports.
|
|
3
|
+
exports.tapHost = exports.formsHost = exports.serverExperiencesHost = exports.experiencesHost = exports.extensionHost = exports.opportunitiesHost = exports.notificationsSubscriptionHost = exports.eventsHost = exports.serverPreferencesHost = exports.searchHostSSR = exports.preferencesHostSSR = exports.preferencesHost = exports.serverSearchHost = exports.serverShowCaseHost = exports.searchHost = exports.serverImagesHost = exports.mediasHost = exports.serverGalleriesHost = exports.galleriesHost = exports.serverIdentityHost = exports.serverCollectionsHost = exports.serverAssetsHost = exports.adminHost = exports.collectionsHost = exports.assetsHost = exports.identityHost = exports.authHost = void 0;
|
|
4
4
|
exports.authHost = "https://auth.ludo.ninja:8080/graphql";
|
|
5
5
|
exports.identityHost = "https://identities.ludo.ninja:8090/graphql";
|
|
6
6
|
exports.assetsHost = "https://assets.ludo.ninja:8090/graphql";
|
|
@@ -21,7 +21,7 @@ exports.preferencesHostSSR = "https://ssr-preferences.ludo.ninja:8091/graphql";
|
|
|
21
21
|
exports.searchHostSSR = "https://ssr-search.ludo.ninja:8091/graphql";
|
|
22
22
|
exports.serverPreferencesHost = "http://server-preferences.istio.svc.k8s.local:8090/graphql";
|
|
23
23
|
exports.eventsHost = `wss://events.ludo.ninja:8090/subscriptions`;
|
|
24
|
-
exports.
|
|
24
|
+
exports.notificationsSubscriptionHost = "wss://notifications.ludo.ninja:8090/subscriptions";
|
|
25
25
|
exports.opportunitiesHost = "https://opportunities.ludo.ninja:8090/graphql";
|
|
26
26
|
exports.extensionHost = "https://chrome.ludo.ninja:8092/graphql";
|
|
27
27
|
exports.experiencesHost = "https://experiences.ludo.ninja:8090/graphql";
|
package/build/index.d.ts
CHANGED
|
@@ -14,7 +14,78 @@ import * as opportunitiesSchema from "./graphql_tools/__generated__/opportunitie
|
|
|
14
14
|
import * as preferencesSchema from "./graphql_tools/__generated__/preferencesHost/schema";
|
|
15
15
|
import * as searchSchema from "./graphql_tools/__generated__/searchHost/schema";
|
|
16
16
|
import * as formsSchema from "./graphql_tools/__generated__/formsHost/schema";
|
|
17
|
+
import * as tapsSchema from "./graphql_tools/__generated__/tapHost/schema";
|
|
17
18
|
declare const schema: {
|
|
19
|
+
useClaimFarmingRewardMutation(baseOptions?: import("@apollo/client").MutationHookOptions<tapsSchema.IClaimFarmingRewardMutation, tapsSchema.Exact<{
|
|
20
|
+
[key: string]: never;
|
|
21
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<tapsSchema.IClaimFarmingRewardMutation, tapsSchema.Exact<{
|
|
22
|
+
[key: string]: never;
|
|
23
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
24
|
+
useConfirmStreakNotificationHasBeenReadMutation(baseOptions?: import("@apollo/client").MutationHookOptions<tapsSchema.IConfirmStreakNotificationHasBeenReadMutation, tapsSchema.Exact<{
|
|
25
|
+
streakId: string;
|
|
26
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<tapsSchema.IConfirmStreakNotificationHasBeenReadMutation, tapsSchema.Exact<{
|
|
27
|
+
streakId: string;
|
|
28
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
29
|
+
useMarkNotificationAsNewMutation(baseOptions?: import("@apollo/client").MutationHookOptions<tapsSchema.IMarkNotificationAsNewMutation, tapsSchema.Exact<{
|
|
30
|
+
notificationId: string;
|
|
31
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<tapsSchema.IMarkNotificationAsNewMutation, tapsSchema.Exact<{
|
|
32
|
+
notificationId: string;
|
|
33
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
34
|
+
useMarkNotificationAsReadMutation(baseOptions?: import("@apollo/client").MutationHookOptions<tapsSchema.IMarkNotificationAsReadMutation, tapsSchema.Exact<{
|
|
35
|
+
notificationId: string;
|
|
36
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<tapsSchema.IMarkNotificationAsReadMutation, tapsSchema.Exact<{
|
|
37
|
+
notificationId: string;
|
|
38
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
39
|
+
useMarkNotificationAsShownMutation(baseOptions?: import("@apollo/client").MutationHookOptions<tapsSchema.IMarkNotificationAsShownMutation, tapsSchema.Exact<{
|
|
40
|
+
notificationId: string;
|
|
41
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<tapsSchema.IMarkNotificationAsShownMutation, tapsSchema.Exact<{
|
|
42
|
+
notificationId: string;
|
|
43
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
44
|
+
useStartFarmingMutation(baseOptions?: import("@apollo/client").MutationHookOptions<tapsSchema.IStartFarmingMutation, tapsSchema.Exact<{
|
|
45
|
+
[key: string]: never;
|
|
46
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<tapsSchema.IStartFarmingMutation, tapsSchema.Exact<{
|
|
47
|
+
[key: string]: never;
|
|
48
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
49
|
+
useFetchFrensDataQuery(baseOptions?: import("@apollo/client").QueryHookOptions<tapsSchema.IFetchFrensDataQuery, tapsSchema.Exact<{
|
|
50
|
+
[key: string]: never;
|
|
51
|
+
}>> | undefined): import("@apollo/client").QueryResult<tapsSchema.IFetchFrensDataQuery, tapsSchema.Exact<{
|
|
52
|
+
[key: string]: never;
|
|
53
|
+
}>>;
|
|
54
|
+
useFetchFrensDataLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<tapsSchema.IFetchFrensDataQuery, tapsSchema.Exact<{
|
|
55
|
+
[key: string]: never;
|
|
56
|
+
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<tapsSchema.IFetchFrensDataQuery, tapsSchema.Exact<{
|
|
57
|
+
[key: string]: never;
|
|
58
|
+
}>>;
|
|
59
|
+
useFetchPlayerStateQuery(baseOptions?: import("@apollo/client").QueryHookOptions<tapsSchema.IFetchPlayerStateQuery, tapsSchema.Exact<{
|
|
60
|
+
[key: string]: never;
|
|
61
|
+
}>> | undefined): import("@apollo/client").QueryResult<tapsSchema.IFetchPlayerStateQuery, tapsSchema.Exact<{
|
|
62
|
+
[key: string]: never;
|
|
63
|
+
}>>;
|
|
64
|
+
useFetchPlayerStateLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<tapsSchema.IFetchPlayerStateQuery, tapsSchema.Exact<{
|
|
65
|
+
[key: string]: never;
|
|
66
|
+
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<tapsSchema.IFetchPlayerStateQuery, tapsSchema.Exact<{
|
|
67
|
+
[key: string]: never;
|
|
68
|
+
}>>;
|
|
69
|
+
useOnPlayerStateUpdatedSubscription(baseOptions: import("@apollo/client").SubscriptionHookOptions<tapsSchema.IOnPlayerStateUpdatedSubscription, tapsSchema.Exact<{
|
|
70
|
+
authToken: string;
|
|
71
|
+
}>>): {
|
|
72
|
+
restart(): void;
|
|
73
|
+
loading: boolean;
|
|
74
|
+
data?: tapsSchema.IOnPlayerStateUpdatedSubscription | undefined;
|
|
75
|
+
error?: import("@apollo/client").ApolloError | undefined;
|
|
76
|
+
variables?: tapsSchema.Exact<{
|
|
77
|
+
authToken: string;
|
|
78
|
+
}> | undefined;
|
|
79
|
+
};
|
|
80
|
+
ClaimFarmingRewardDocument: import("graphql").DocumentNode;
|
|
81
|
+
ConfirmStreakNotificationHasBeenReadDocument: import("graphql").DocumentNode;
|
|
82
|
+
MarkNotificationAsNewDocument: import("graphql").DocumentNode;
|
|
83
|
+
MarkNotificationAsReadDocument: import("graphql").DocumentNode;
|
|
84
|
+
MarkNotificationAsShownDocument: import("graphql").DocumentNode;
|
|
85
|
+
StartFarmingDocument: import("graphql").DocumentNode;
|
|
86
|
+
FetchFrensDataDocument: import("graphql").DocumentNode;
|
|
87
|
+
FetchPlayerStateDocument: import("graphql").DocumentNode;
|
|
88
|
+
OnPlayerStateUpdatedDocument: import("graphql").DocumentNode;
|
|
18
89
|
useSubmitContactSupportMutation(baseOptions?: import("@apollo/client").MutationHookOptions<formsSchema.ISubmitContactSupportMutation, formsSchema.Exact<{
|
|
19
90
|
input: formsSchema.IContactSupportInput;
|
|
20
91
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<formsSchema.ISubmitContactSupportMutation, formsSchema.Exact<{
|
|
@@ -1606,4 +1677,4 @@ declare const schema: {
|
|
|
1606
1677
|
FetchAdminXpPageDocument: import("graphql").DocumentNode;
|
|
1607
1678
|
FetchBlockchainsDocument: import("graphql").DocumentNode;
|
|
1608
1679
|
};
|
|
1609
|
-
export { hosts, schema, graphqlConfig, authCookies, adminSchema, assetSchema, authSchema, collectionsSchema, experiencesSchema, extensionSchema, galleriesSchema, identitySchema, mediasSchema, opportunitiesSchema, preferencesSchema, searchSchema, formsSchema };
|
|
1680
|
+
export { hosts, schema, graphqlConfig, authCookies, adminSchema, assetSchema, authSchema, collectionsSchema, experiencesSchema, extensionSchema, galleriesSchema, identitySchema, mediasSchema, opportunitiesSchema, preferencesSchema, searchSchema, formsSchema, tapsSchema };
|
package/build/index.js
CHANGED
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.formsSchema = exports.searchSchema = exports.preferencesSchema = exports.opportunitiesSchema = exports.mediasSchema = exports.identitySchema = exports.galleriesSchema = exports.extensionSchema = exports.experiencesSchema = exports.collectionsSchema = exports.authSchema = exports.assetSchema = exports.adminSchema = exports.authCookies = exports.graphqlConfig = exports.schema = exports.hosts = void 0;
|
|
26
|
+
exports.tapsSchema = exports.formsSchema = exports.searchSchema = exports.preferencesSchema = exports.opportunitiesSchema = exports.mediasSchema = exports.identitySchema = exports.galleriesSchema = exports.extensionSchema = exports.experiencesSchema = exports.collectionsSchema = exports.authSchema = exports.assetSchema = exports.adminSchema = exports.authCookies = exports.graphqlConfig = exports.schema = exports.hosts = void 0;
|
|
27
27
|
const hosts = __importStar(require("./hosts"));
|
|
28
28
|
exports.hosts = hosts;
|
|
29
29
|
const graphqlConfig = __importStar(require("./config"));
|
|
@@ -56,6 +56,8 @@ const searchSchema = __importStar(require("./graphql_tools/__generated__/searchH
|
|
|
56
56
|
exports.searchSchema = searchSchema;
|
|
57
57
|
const formsSchema = __importStar(require("./graphql_tools/__generated__/formsHost/schema"));
|
|
58
58
|
exports.formsSchema = formsSchema;
|
|
59
|
+
const tapsSchema = __importStar(require("./graphql_tools/__generated__/tapHost/schema"));
|
|
60
|
+
exports.tapsSchema = tapsSchema;
|
|
59
61
|
const schema = {
|
|
60
62
|
...adminSchema,
|
|
61
63
|
...assetSchema,
|
|
@@ -69,6 +71,7 @@ const schema = {
|
|
|
69
71
|
...opportunitiesSchema,
|
|
70
72
|
...preferencesSchema,
|
|
71
73
|
...searchSchema,
|
|
72
|
-
...formsSchema
|
|
74
|
+
...formsSchema,
|
|
75
|
+
...tapsSchema
|
|
73
76
|
};
|
|
74
77
|
exports.schema = schema;
|
package/package.json
CHANGED
package/src/config/index.ts
CHANGED
|
@@ -122,7 +122,7 @@ const wsLink =
|
|
|
122
122
|
typeof window !== "undefined"
|
|
123
123
|
? new GraphQLWsLink(
|
|
124
124
|
createClient({
|
|
125
|
-
url: hosts.
|
|
125
|
+
url: hosts.notificationsSubscriptionHost,
|
|
126
126
|
retryAttempts: 3,
|
|
127
127
|
on: {
|
|
128
128
|
connected: () => console.log("GraphQLWsLink connected"),
|
package/src/hosts/index.ts
CHANGED
|
@@ -38,7 +38,7 @@ export const serverPreferencesHost = "http://server-preferences.istio.svc.k8s.lo
|
|
|
38
38
|
|
|
39
39
|
export const eventsHost = `wss://events.ludo.ninja:8090/subscriptions`;
|
|
40
40
|
|
|
41
|
-
export const
|
|
41
|
+
export const notificationsSubscriptionHost = "wss://notifications.ludo.ninja:8090/subscriptions";
|
|
42
42
|
|
|
43
43
|
export const opportunitiesHost = "https://opportunities.ludo.ninja:8090/graphql";
|
|
44
44
|
|
package/src/index.ts
CHANGED
|
@@ -14,6 +14,7 @@ import * as opportunitiesSchema from "./graphql_tools/__generated__/opportunitie
|
|
|
14
14
|
import * as preferencesSchema from "./graphql_tools/__generated__/preferencesHost/schema";
|
|
15
15
|
import * as searchSchema from "./graphql_tools/__generated__/searchHost/schema";
|
|
16
16
|
import * as formsSchema from "./graphql_tools/__generated__/formsHost/schema";
|
|
17
|
+
import * as tapsSchema from "./graphql_tools/__generated__/tapHost/schema";
|
|
17
18
|
|
|
18
19
|
const schema = {
|
|
19
20
|
...adminSchema,
|
|
@@ -28,7 +29,8 @@ const schema = {
|
|
|
28
29
|
...opportunitiesSchema,
|
|
29
30
|
...preferencesSchema,
|
|
30
31
|
...searchSchema,
|
|
31
|
-
...formsSchema
|
|
32
|
+
...formsSchema,
|
|
33
|
+
...tapsSchema
|
|
32
34
|
}
|
|
33
35
|
|
|
34
36
|
export {
|
|
@@ -48,5 +50,6 @@ export {
|
|
|
48
50
|
opportunitiesSchema,
|
|
49
51
|
preferencesSchema,
|
|
50
52
|
searchSchema,
|
|
51
|
-
formsSchema
|
|
53
|
+
formsSchema,
|
|
54
|
+
tapsSchema
|
|
52
55
|
};
|