@ludo.ninja/api 3.2.41 → 3.2.43
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/api-test-3.2.42.tgz +0 -0
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.d.ts +18 -10
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.js +6 -4
- package/build/graphql_tools/__generated__/refcodesHost/schema.d.ts +141 -0
- package/build/graphql_tools/__generated__/refcodesHost/schema.js +56 -0
- package/build/hosts/index.d.ts +1 -0
- package/build/hosts/index.js +2 -1
- package/build/index.d.ts +12 -12
- package/package.json +1 -1
- package/src/graphql_tools/__generated__/opportunitiesHost/schema.ts +26 -10
- package/src/graphql_tools/__generated__/refcodesHost/schema.ts +199 -0
- package/src/hosts/index.ts +2 -0
- package/tsconfig.tsbuildinfo +1 -1
|
Binary file
|
|
@@ -508,6 +508,12 @@ export type IQueryFetchProjectArgs = {
|
|
|
508
508
|
blockchain: Scalars['String'];
|
|
509
509
|
contract: Scalars['String'];
|
|
510
510
|
};
|
|
511
|
+
export type IQueryFetchProjectMonitoringArgs = {
|
|
512
|
+
userId: Scalars['ID'];
|
|
513
|
+
};
|
|
514
|
+
export type IQueryFetchProjectAlertingArgs = {
|
|
515
|
+
userId: Scalars['ID'];
|
|
516
|
+
};
|
|
511
517
|
export declare enum IReactionType {
|
|
512
518
|
Like = "LIKE",
|
|
513
519
|
Dislike = "DISLIKE",
|
|
@@ -947,8 +953,8 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
947
953
|
fetchOpportunityBySlug?: Resolver<IResolversTypes['OpportunityV2'], ParentType, ContextType, RequireFields<IQueryFetchOpportunityBySlugArgs, 'slug'>>;
|
|
948
954
|
fetchProjectBySlug?: Resolver<IResolversTypes['Project'], ParentType, ContextType, RequireFields<IQueryFetchProjectBySlugArgs, 'slug'>>;
|
|
949
955
|
fetchProject?: Resolver<Maybe<IResolversTypes['Project']>, ParentType, ContextType, RequireFields<IQueryFetchProjectArgs, 'blockchain' | 'contract'>>;
|
|
950
|
-
fetchProjectMonitoring?: Resolver<Maybe<IResolversTypes['ProjectMonitoring']>, ParentType, ContextType
|
|
951
|
-
fetchProjectAlerting?: Resolver<Maybe<IResolversTypes['ProjectAlerting']>, ParentType, ContextType
|
|
956
|
+
fetchProjectMonitoring?: Resolver<Maybe<IResolversTypes['ProjectMonitoring']>, ParentType, ContextType, RequireFields<IQueryFetchProjectMonitoringArgs, 'userId'>>;
|
|
957
|
+
fetchProjectAlerting?: Resolver<Maybe<IResolversTypes['ProjectAlerting']>, ParentType, ContextType, RequireFields<IQueryFetchProjectAlertingArgs, 'userId'>>;
|
|
952
958
|
fetchMonitorsCounter?: Resolver<Maybe<IResolversTypes['MonitorsCounter']>, ParentType, ContextType>;
|
|
953
959
|
};
|
|
954
960
|
export type IVotesGeolocationResolvers<ContextType = any, ParentType extends IResolversParentTypes['VotesGeolocation'] = IResolversParentTypes['VotesGeolocation']> = {
|
|
@@ -1137,7 +1143,7 @@ export type IFetchProjectQuery = {
|
|
|
1137
1143
|
})>;
|
|
1138
1144
|
};
|
|
1139
1145
|
export type IFetchProjectAlertingQueryVariables = Exact<{
|
|
1140
|
-
|
|
1146
|
+
userId: Scalars['ID'];
|
|
1141
1147
|
}>;
|
|
1142
1148
|
export type IFetchProjectAlertingQuery = {
|
|
1143
1149
|
fetchProjectAlerting?: Maybe<(Pick<IProjectAlerting, 'userId' | 'slotsFree' | 'slotsLimit' | 'activeUntil'> & {
|
|
@@ -1172,7 +1178,7 @@ export type IFetchProjectBySlugQuery = {
|
|
|
1172
1178
|
});
|
|
1173
1179
|
};
|
|
1174
1180
|
export type IFetchProjectMonitoringQueryVariables = Exact<{
|
|
1175
|
-
|
|
1181
|
+
userId: Scalars['ID'];
|
|
1176
1182
|
}>;
|
|
1177
1183
|
export type IFetchProjectMonitoringQuery = {
|
|
1178
1184
|
fetchProjectMonitoring?: Maybe<(Pick<IProjectMonitoring, 'userId' | 'monitorsFree' | 'monitorsLimit' | 'activeUntil'> & {
|
|
@@ -1864,14 +1870,15 @@ export declare const FetchProjectAlertingDocument: Apollo.DocumentNode;
|
|
|
1864
1870
|
* @example
|
|
1865
1871
|
* const { data, loading, error } = useFetchProjectAlertingQuery({
|
|
1866
1872
|
* variables: {
|
|
1873
|
+
* userId: // value for 'userId'
|
|
1867
1874
|
* },
|
|
1868
1875
|
* });
|
|
1869
1876
|
*/
|
|
1870
|
-
export declare function useFetchProjectAlertingQuery(baseOptions
|
|
1871
|
-
|
|
1877
|
+
export declare function useFetchProjectAlertingQuery(baseOptions: Apollo.QueryHookOptions<IFetchProjectAlertingQuery, IFetchProjectAlertingQueryVariables>): Apollo.QueryResult<IFetchProjectAlertingQuery, Exact<{
|
|
1878
|
+
userId: string;
|
|
1872
1879
|
}>>;
|
|
1873
1880
|
export declare function useFetchProjectAlertingLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchProjectAlertingQuery, IFetchProjectAlertingQueryVariables>): Apollo.LazyQueryResultTuple<IFetchProjectAlertingQuery, Exact<{
|
|
1874
|
-
|
|
1881
|
+
userId: string;
|
|
1875
1882
|
}>>;
|
|
1876
1883
|
export type FetchProjectAlertingQueryHookResult = ReturnType<typeof useFetchProjectAlertingQuery>;
|
|
1877
1884
|
export type FetchProjectAlertingLazyQueryHookResult = ReturnType<typeof useFetchProjectAlertingLazyQuery>;
|
|
@@ -1915,14 +1922,15 @@ export declare const FetchProjectMonitoringDocument: Apollo.DocumentNode;
|
|
|
1915
1922
|
* @example
|
|
1916
1923
|
* const { data, loading, error } = useFetchProjectMonitoringQuery({
|
|
1917
1924
|
* variables: {
|
|
1925
|
+
* userId: // value for 'userId'
|
|
1918
1926
|
* },
|
|
1919
1927
|
* });
|
|
1920
1928
|
*/
|
|
1921
|
-
export declare function useFetchProjectMonitoringQuery(baseOptions
|
|
1922
|
-
|
|
1929
|
+
export declare function useFetchProjectMonitoringQuery(baseOptions: Apollo.QueryHookOptions<IFetchProjectMonitoringQuery, IFetchProjectMonitoringQueryVariables>): Apollo.QueryResult<IFetchProjectMonitoringQuery, Exact<{
|
|
1930
|
+
userId: string;
|
|
1923
1931
|
}>>;
|
|
1924
1932
|
export declare function useFetchProjectMonitoringLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchProjectMonitoringQuery, IFetchProjectMonitoringQueryVariables>): Apollo.LazyQueryResultTuple<IFetchProjectMonitoringQuery, Exact<{
|
|
1925
|
-
|
|
1933
|
+
userId: string;
|
|
1926
1934
|
}>>;
|
|
1927
1935
|
export type FetchProjectMonitoringQueryHookResult = ReturnType<typeof useFetchProjectMonitoringQuery>;
|
|
1928
1936
|
export type FetchProjectMonitoringLazyQueryHookResult = ReturnType<typeof useFetchProjectMonitoringLazyQuery>;
|
|
@@ -1244,8 +1244,8 @@ function useFetchProjectLazyQuery(baseOptions) {
|
|
|
1244
1244
|
}
|
|
1245
1245
|
exports.useFetchProjectLazyQuery = useFetchProjectLazyQuery;
|
|
1246
1246
|
exports.FetchProjectAlertingDocument = (0, client_1.gql) `
|
|
1247
|
-
query FetchProjectAlerting {
|
|
1248
|
-
fetchProjectAlerting {
|
|
1247
|
+
query FetchProjectAlerting($userId: ID!) {
|
|
1248
|
+
fetchProjectAlerting(userId: $userId) {
|
|
1249
1249
|
userId
|
|
1250
1250
|
slotsFree
|
|
1251
1251
|
slotsLimit
|
|
@@ -1288,6 +1288,7 @@ exports.FetchProjectAlertingDocument = (0, client_1.gql) `
|
|
|
1288
1288
|
* @example
|
|
1289
1289
|
* const { data, loading, error } = useFetchProjectAlertingQuery({
|
|
1290
1290
|
* variables: {
|
|
1291
|
+
* userId: // value for 'userId'
|
|
1291
1292
|
* },
|
|
1292
1293
|
* });
|
|
1293
1294
|
*/
|
|
@@ -1498,8 +1499,8 @@ function useFetchProjectBySlugLazyQuery(baseOptions) {
|
|
|
1498
1499
|
}
|
|
1499
1500
|
exports.useFetchProjectBySlugLazyQuery = useFetchProjectBySlugLazyQuery;
|
|
1500
1501
|
exports.FetchProjectMonitoringDocument = (0, client_1.gql) `
|
|
1501
|
-
query FetchProjectMonitoring {
|
|
1502
|
-
fetchProjectMonitoring {
|
|
1502
|
+
query FetchProjectMonitoring($userId: ID!) {
|
|
1503
|
+
fetchProjectMonitoring(userId: $userId) {
|
|
1503
1504
|
userId
|
|
1504
1505
|
monitorsFree
|
|
1505
1506
|
monitorsLimit
|
|
@@ -1542,6 +1543,7 @@ exports.FetchProjectMonitoringDocument = (0, client_1.gql) `
|
|
|
1542
1543
|
* @example
|
|
1543
1544
|
* const { data, loading, error } = useFetchProjectMonitoringQuery({
|
|
1544
1545
|
* variables: {
|
|
1546
|
+
* userId: // value for 'userId'
|
|
1545
1547
|
* },
|
|
1546
1548
|
* });
|
|
1547
1549
|
*/
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { GraphQLResolveInfo, GraphQLScalarType, GraphQLScalarTypeConfig } from 'graphql';
|
|
2
|
+
import * as Apollo from '@apollo/client';
|
|
3
|
+
export type Maybe<T> = T | null;
|
|
4
|
+
export type Exact<T extends {
|
|
5
|
+
[key: string]: unknown;
|
|
6
|
+
}> = {
|
|
7
|
+
[K in keyof T]: T[K];
|
|
8
|
+
};
|
|
9
|
+
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
|
|
10
|
+
[SubKey in K]?: Maybe<T[SubKey]>;
|
|
11
|
+
};
|
|
12
|
+
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
|
|
13
|
+
[SubKey in K]: Maybe<T[SubKey]>;
|
|
14
|
+
};
|
|
15
|
+
export type RequireFields<T, K extends keyof T> = Omit<T, K> & {
|
|
16
|
+
[P in K]-?: NonNullable<T[P]>;
|
|
17
|
+
};
|
|
18
|
+
/** All built-in and custom scalars, mapped to their actual values */
|
|
19
|
+
export type Scalars = {
|
|
20
|
+
ID: string;
|
|
21
|
+
String: string;
|
|
22
|
+
Boolean: boolean;
|
|
23
|
+
Int: number;
|
|
24
|
+
Float: number;
|
|
25
|
+
/** A 64-bit signed integer */
|
|
26
|
+
Long: any;
|
|
27
|
+
};
|
|
28
|
+
export type IMutation = {
|
|
29
|
+
setDummy: Scalars['String'];
|
|
30
|
+
};
|
|
31
|
+
export type IQuery = {
|
|
32
|
+
getDummy: Scalars['String'];
|
|
33
|
+
useAndGetRefcodeDiscount: Scalars['Int'];
|
|
34
|
+
fetchTrendsRefcode: Scalars['String'];
|
|
35
|
+
};
|
|
36
|
+
export type IQueryUseAndGetRefcodeDiscountArgs = {
|
|
37
|
+
refcode: Scalars['String'];
|
|
38
|
+
};
|
|
39
|
+
export type ISubscription = {
|
|
40
|
+
onDummy: Scalars['String'];
|
|
41
|
+
};
|
|
42
|
+
export type ResolverTypeWrapper<T> = Promise<T> | T;
|
|
43
|
+
export type ResolverWithResolve<TResult, TParent, TContext, TArgs> = {
|
|
44
|
+
resolve: ResolverFn<TResult, TParent, TContext, TArgs>;
|
|
45
|
+
};
|
|
46
|
+
export type Resolver<TResult, TParent = {}, TContext = {}, TArgs = {}> = ResolverFn<TResult, TParent, TContext, TArgs> | ResolverWithResolve<TResult, TParent, TContext, TArgs>;
|
|
47
|
+
export type ResolverFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => Promise<TResult> | TResult;
|
|
48
|
+
export type SubscriptionSubscribeFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => AsyncIterable<TResult> | Promise<AsyncIterable<TResult>>;
|
|
49
|
+
export type SubscriptionResolveFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
|
|
50
|
+
export interface SubscriptionSubscriberObject<TResult, TKey extends string, TParent, TContext, TArgs> {
|
|
51
|
+
subscribe: SubscriptionSubscribeFn<{
|
|
52
|
+
[key in TKey]: TResult;
|
|
53
|
+
}, TParent, TContext, TArgs>;
|
|
54
|
+
resolve?: SubscriptionResolveFn<TResult, {
|
|
55
|
+
[key in TKey]: TResult;
|
|
56
|
+
}, TContext, TArgs>;
|
|
57
|
+
}
|
|
58
|
+
export interface SubscriptionResolverObject<TResult, TParent, TContext, TArgs> {
|
|
59
|
+
subscribe: SubscriptionSubscribeFn<any, TParent, TContext, TArgs>;
|
|
60
|
+
resolve: SubscriptionResolveFn<TResult, any, TContext, TArgs>;
|
|
61
|
+
}
|
|
62
|
+
export type SubscriptionObject<TResult, TKey extends string, TParent, TContext, TArgs> = SubscriptionSubscriberObject<TResult, TKey, TParent, TContext, TArgs> | SubscriptionResolverObject<TResult, TParent, TContext, TArgs>;
|
|
63
|
+
export type SubscriptionResolver<TResult, TKey extends string, TParent = {}, TContext = {}, TArgs = {}> = ((...args: any[]) => SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>) | SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>;
|
|
64
|
+
export type TypeResolveFn<TTypes, TParent = {}, TContext = {}> = (parent: TParent, context: TContext, info: GraphQLResolveInfo) => Maybe<TTypes> | Promise<Maybe<TTypes>>;
|
|
65
|
+
export type IsTypeOfResolverFn<T = {}, TContext = {}> = (obj: T, context: TContext, info: GraphQLResolveInfo) => boolean | Promise<boolean>;
|
|
66
|
+
export type NextResolverFn<T> = () => Promise<T>;
|
|
67
|
+
export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs = {}> = (next: NextResolverFn<TResult>, parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
|
|
68
|
+
/** Mapping between all available schema types and the resolvers types */
|
|
69
|
+
export type IResolversTypes = {
|
|
70
|
+
Long: ResolverTypeWrapper<Scalars['Long']>;
|
|
71
|
+
Mutation: ResolverTypeWrapper<{}>;
|
|
72
|
+
String: ResolverTypeWrapper<Scalars['String']>;
|
|
73
|
+
Query: ResolverTypeWrapper<{}>;
|
|
74
|
+
Int: ResolverTypeWrapper<Scalars['Int']>;
|
|
75
|
+
Subscription: ResolverTypeWrapper<{}>;
|
|
76
|
+
Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
|
|
77
|
+
};
|
|
78
|
+
/** Mapping between all available schema types and the resolvers parents */
|
|
79
|
+
export type IResolversParentTypes = {
|
|
80
|
+
Long: Scalars['Long'];
|
|
81
|
+
Mutation: {};
|
|
82
|
+
String: Scalars['String'];
|
|
83
|
+
Query: {};
|
|
84
|
+
Int: Scalars['Int'];
|
|
85
|
+
Subscription: {};
|
|
86
|
+
Boolean: Scalars['Boolean'];
|
|
87
|
+
};
|
|
88
|
+
export type IOneOfDirectiveArgs = {};
|
|
89
|
+
export type IOneOfDirectiveResolver<Result, Parent, ContextType = any, Args = IOneOfDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
|
|
90
|
+
export interface ILongScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Long'], any> {
|
|
91
|
+
name: 'Long';
|
|
92
|
+
}
|
|
93
|
+
export type IMutationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Mutation'] = IResolversParentTypes['Mutation']> = {
|
|
94
|
+
setDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
95
|
+
};
|
|
96
|
+
export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
|
|
97
|
+
getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
98
|
+
useAndGetRefcodeDiscount?: Resolver<IResolversTypes['Int'], ParentType, ContextType, RequireFields<IQueryUseAndGetRefcodeDiscountArgs, 'refcode'>>;
|
|
99
|
+
fetchTrendsRefcode?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
100
|
+
};
|
|
101
|
+
export type ISubscriptionResolvers<ContextType = any, ParentType extends IResolversParentTypes['Subscription'] = IResolversParentTypes['Subscription']> = {
|
|
102
|
+
onDummy?: SubscriptionResolver<IResolversTypes['String'], "onDummy", ParentType, ContextType>;
|
|
103
|
+
};
|
|
104
|
+
export type IResolvers<ContextType = any> = {
|
|
105
|
+
Long?: GraphQLScalarType;
|
|
106
|
+
Mutation?: IMutationResolvers<ContextType>;
|
|
107
|
+
Query?: IQueryResolvers<ContextType>;
|
|
108
|
+
Subscription?: ISubscriptionResolvers<ContextType>;
|
|
109
|
+
};
|
|
110
|
+
export type IDirectiveResolvers<ContextType = any> = {
|
|
111
|
+
oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
|
|
112
|
+
};
|
|
113
|
+
export type IFetchTrendsRefcodeQueryVariables = Exact<{
|
|
114
|
+
[key: string]: never;
|
|
115
|
+
}>;
|
|
116
|
+
export type IFetchTrendsRefcodeQuery = Pick<IQuery, 'fetchTrendsRefcode'>;
|
|
117
|
+
export declare const FetchTrendsRefcodeDocument: Apollo.DocumentNode;
|
|
118
|
+
/**
|
|
119
|
+
* __useFetchTrendsRefcodeQuery__
|
|
120
|
+
*
|
|
121
|
+
* To run a query within a React component, call `useFetchTrendsRefcodeQuery` and pass it any options that fit your needs.
|
|
122
|
+
* When your component renders, `useFetchTrendsRefcodeQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
123
|
+
* you can use to render your UI.
|
|
124
|
+
*
|
|
125
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
126
|
+
*
|
|
127
|
+
* @example
|
|
128
|
+
* const { data, loading, error } = useFetchTrendsRefcodeQuery({
|
|
129
|
+
* variables: {
|
|
130
|
+
* },
|
|
131
|
+
* });
|
|
132
|
+
*/
|
|
133
|
+
export declare function useFetchTrendsRefcodeQuery(baseOptions?: Apollo.QueryHookOptions<IFetchTrendsRefcodeQuery, IFetchTrendsRefcodeQueryVariables>): Apollo.QueryResult<IFetchTrendsRefcodeQuery, Exact<{
|
|
134
|
+
[key: string]: never;
|
|
135
|
+
}>>;
|
|
136
|
+
export declare function useFetchTrendsRefcodeLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchTrendsRefcodeQuery, IFetchTrendsRefcodeQueryVariables>): Apollo.LazyQueryResultTuple<IFetchTrendsRefcodeQuery, Exact<{
|
|
137
|
+
[key: string]: never;
|
|
138
|
+
}>>;
|
|
139
|
+
export type FetchTrendsRefcodeQueryHookResult = ReturnType<typeof useFetchTrendsRefcodeQuery>;
|
|
140
|
+
export type FetchTrendsRefcodeLazyQueryHookResult = ReturnType<typeof useFetchTrendsRefcodeLazyQuery>;
|
|
141
|
+
export type FetchTrendsRefcodeQueryResult = Apollo.QueryResult<IFetchTrendsRefcodeQuery, IFetchTrendsRefcodeQueryVariables>;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.useFetchTrendsRefcodeLazyQuery = exports.useFetchTrendsRefcodeQuery = exports.FetchTrendsRefcodeDocument = void 0;
|
|
27
|
+
const client_1 = require("@apollo/client");
|
|
28
|
+
const Apollo = __importStar(require("@apollo/client"));
|
|
29
|
+
exports.FetchTrendsRefcodeDocument = (0, client_1.gql) `
|
|
30
|
+
query FetchTrendsRefcode {
|
|
31
|
+
fetchTrendsRefcode
|
|
32
|
+
}
|
|
33
|
+
`;
|
|
34
|
+
/**
|
|
35
|
+
* __useFetchTrendsRefcodeQuery__
|
|
36
|
+
*
|
|
37
|
+
* To run a query within a React component, call `useFetchTrendsRefcodeQuery` and pass it any options that fit your needs.
|
|
38
|
+
* When your component renders, `useFetchTrendsRefcodeQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
39
|
+
* you can use to render your UI.
|
|
40
|
+
*
|
|
41
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* const { data, loading, error } = useFetchTrendsRefcodeQuery({
|
|
45
|
+
* variables: {
|
|
46
|
+
* },
|
|
47
|
+
* });
|
|
48
|
+
*/
|
|
49
|
+
function useFetchTrendsRefcodeQuery(baseOptions) {
|
|
50
|
+
return Apollo.useQuery(exports.FetchTrendsRefcodeDocument, baseOptions);
|
|
51
|
+
}
|
|
52
|
+
exports.useFetchTrendsRefcodeQuery = useFetchTrendsRefcodeQuery;
|
|
53
|
+
function useFetchTrendsRefcodeLazyQuery(baseOptions) {
|
|
54
|
+
return Apollo.useLazyQuery(exports.FetchTrendsRefcodeDocument, baseOptions);
|
|
55
|
+
}
|
|
56
|
+
exports.useFetchTrendsRefcodeLazyQuery = useFetchTrendsRefcodeLazyQuery;
|
package/build/hosts/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export declare const notificationsSubscriptionHost = "wss://notifications.ludo.n
|
|
|
23
23
|
export declare const notificationsHost = "https://notifications.ludo.ninja:8090/graphql";
|
|
24
24
|
export declare const opportunitiesHost = "https://opportunities.ludo.ninja:8090/graphql";
|
|
25
25
|
export declare const featuresHost = "https://features.ludo.ninja:8080/graphql";
|
|
26
|
+
export declare const refcodesHost = "https://refcodes.ludo.ninja:8090/graphql";
|
|
26
27
|
export declare const extensionHost = "https://chrome.ludo.ninja:8092/graphql";
|
|
27
28
|
export declare const experiencesHost = "https://experiences.ludo.ninja:8090/graphql";
|
|
28
29
|
export declare const serverExperiencesHost = "http://server-experiences.istio.svc.k8s.local: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.nftMinterEvmHost = exports.nftMinterTonHost = exports.watermarksHost = exports.telegramHost = exports.mintInfoHost = exports.tapHostSubscriptions = exports.tapHost = exports.formsHost = exports.serverExperiencesHost = exports.experiencesHost = exports.extensionHost = exports.featuresHost = exports.opportunitiesHost = exports.notificationsHost = exports.notificationsSubscriptionHost = exports.experiencesSubscriptionHost = 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;
|
|
3
|
+
exports.nftMinterEvmHost = exports.nftMinterTonHost = exports.watermarksHost = exports.telegramHost = exports.mintInfoHost = exports.tapHostSubscriptions = exports.tapHost = exports.formsHost = exports.serverExperiencesHost = exports.experiencesHost = exports.extensionHost = exports.refcodesHost = exports.featuresHost = exports.opportunitiesHost = exports.notificationsHost = exports.notificationsSubscriptionHost = exports.experiencesSubscriptionHost = 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";
|
|
@@ -26,6 +26,7 @@ exports.notificationsSubscriptionHost = "wss://notifications.ludo.ninja:8090/sub
|
|
|
26
26
|
exports.notificationsHost = "https://notifications.ludo.ninja:8090/graphql";
|
|
27
27
|
exports.opportunitiesHost = "https://opportunities.ludo.ninja:8090/graphql";
|
|
28
28
|
exports.featuresHost = "https://features.ludo.ninja:8080/graphql";
|
|
29
|
+
exports.refcodesHost = "https://refcodes.ludo.ninja:8090/graphql";
|
|
29
30
|
exports.extensionHost = "https://chrome.ludo.ninja:8092/graphql";
|
|
30
31
|
exports.experiencesHost = "https://experiences.ludo.ninja:8090/graphql";
|
|
31
32
|
exports.serverExperiencesHost = "http://server-experiences.istio.svc.k8s.local:8090/graphql";
|
package/build/index.d.ts
CHANGED
|
@@ -930,15 +930,15 @@ declare const schema: {
|
|
|
930
930
|
blockchain: string;
|
|
931
931
|
contract: string;
|
|
932
932
|
}>>;
|
|
933
|
-
useFetchProjectAlertingQuery(baseOptions
|
|
934
|
-
|
|
935
|
-
}>>
|
|
936
|
-
|
|
933
|
+
useFetchProjectAlertingQuery(baseOptions: import("@apollo/client").QueryHookOptions<opportunitiesSchema.IFetchProjectAlertingQuery, opportunitiesSchema.Exact<{
|
|
934
|
+
userId: string;
|
|
935
|
+
}>>): import("@apollo/client").QueryResult<opportunitiesSchema.IFetchProjectAlertingQuery, opportunitiesSchema.Exact<{
|
|
936
|
+
userId: string;
|
|
937
937
|
}>>;
|
|
938
938
|
useFetchProjectAlertingLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<opportunitiesSchema.IFetchProjectAlertingQuery, opportunitiesSchema.Exact<{
|
|
939
|
-
|
|
939
|
+
userId: string;
|
|
940
940
|
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<opportunitiesSchema.IFetchProjectAlertingQuery, opportunitiesSchema.Exact<{
|
|
941
|
-
|
|
941
|
+
userId: string;
|
|
942
942
|
}>>;
|
|
943
943
|
useFetchProjectBySlugQuery(baseOptions: import("@apollo/client").QueryHookOptions<opportunitiesSchema.IFetchProjectBySlugQuery, opportunitiesSchema.Exact<{
|
|
944
944
|
slug: string;
|
|
@@ -950,15 +950,15 @@ declare const schema: {
|
|
|
950
950
|
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<opportunitiesSchema.IFetchProjectBySlugQuery, opportunitiesSchema.Exact<{
|
|
951
951
|
slug: string;
|
|
952
952
|
}>>;
|
|
953
|
-
useFetchProjectMonitoringQuery(baseOptions
|
|
954
|
-
|
|
955
|
-
}>>
|
|
956
|
-
|
|
953
|
+
useFetchProjectMonitoringQuery(baseOptions: import("@apollo/client").QueryHookOptions<opportunitiesSchema.IFetchProjectMonitoringQuery, opportunitiesSchema.Exact<{
|
|
954
|
+
userId: string;
|
|
955
|
+
}>>): import("@apollo/client").QueryResult<opportunitiesSchema.IFetchProjectMonitoringQuery, opportunitiesSchema.Exact<{
|
|
956
|
+
userId: string;
|
|
957
957
|
}>>;
|
|
958
958
|
useFetchProjectMonitoringLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<opportunitiesSchema.IFetchProjectMonitoringQuery, opportunitiesSchema.Exact<{
|
|
959
|
-
|
|
959
|
+
userId: string;
|
|
960
960
|
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<opportunitiesSchema.IFetchProjectMonitoringQuery, opportunitiesSchema.Exact<{
|
|
961
|
-
|
|
961
|
+
userId: string;
|
|
962
962
|
}>>;
|
|
963
963
|
ILinkType: typeof opportunitiesSchema.ILinkType;
|
|
964
964
|
IProjectRegistrationStatus: typeof opportunitiesSchema.IProjectRegistrationStatus;
|
package/package.json
CHANGED
|
@@ -611,6 +611,16 @@ export type IQueryFetchProjectArgs = {
|
|
|
611
611
|
contract: Scalars['String'];
|
|
612
612
|
};
|
|
613
613
|
|
|
614
|
+
|
|
615
|
+
export type IQueryFetchProjectMonitoringArgs = {
|
|
616
|
+
userId: Scalars['ID'];
|
|
617
|
+
};
|
|
618
|
+
|
|
619
|
+
|
|
620
|
+
export type IQueryFetchProjectAlertingArgs = {
|
|
621
|
+
userId: Scalars['ID'];
|
|
622
|
+
};
|
|
623
|
+
|
|
614
624
|
export enum IReactionType {
|
|
615
625
|
Like = 'LIKE',
|
|
616
626
|
Dislike = 'DISLIKE',
|
|
@@ -1121,8 +1131,8 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
1121
1131
|
fetchOpportunityBySlug?: Resolver<IResolversTypes['OpportunityV2'], ParentType, ContextType, RequireFields<IQueryFetchOpportunityBySlugArgs, 'slug'>>;
|
|
1122
1132
|
fetchProjectBySlug?: Resolver<IResolversTypes['Project'], ParentType, ContextType, RequireFields<IQueryFetchProjectBySlugArgs, 'slug'>>;
|
|
1123
1133
|
fetchProject?: Resolver<Maybe<IResolversTypes['Project']>, ParentType, ContextType, RequireFields<IQueryFetchProjectArgs, 'blockchain' | 'contract'>>;
|
|
1124
|
-
fetchProjectMonitoring?: Resolver<Maybe<IResolversTypes['ProjectMonitoring']>, ParentType, ContextType
|
|
1125
|
-
fetchProjectAlerting?: Resolver<Maybe<IResolversTypes['ProjectAlerting']>, ParentType, ContextType
|
|
1134
|
+
fetchProjectMonitoring?: Resolver<Maybe<IResolversTypes['ProjectMonitoring']>, ParentType, ContextType, RequireFields<IQueryFetchProjectMonitoringArgs, 'userId'>>;
|
|
1135
|
+
fetchProjectAlerting?: Resolver<Maybe<IResolversTypes['ProjectAlerting']>, ParentType, ContextType, RequireFields<IQueryFetchProjectAlertingArgs, 'userId'>>;
|
|
1126
1136
|
fetchMonitorsCounter?: Resolver<Maybe<IResolversTypes['MonitorsCounter']>, ParentType, ContextType>;
|
|
1127
1137
|
};
|
|
1128
1138
|
|
|
@@ -1364,7 +1374,9 @@ export type IFetchProjectQuery = { fetchProject?: Maybe<(
|
|
|
1364
1374
|
& { status?: Maybe<Pick<IProjectStatus, 'monitored' | 'removalReason' | 'removalDate'>> }
|
|
1365
1375
|
)> };
|
|
1366
1376
|
|
|
1367
|
-
export type IFetchProjectAlertingQueryVariables = Exact<{
|
|
1377
|
+
export type IFetchProjectAlertingQueryVariables = Exact<{
|
|
1378
|
+
userId: Scalars['ID'];
|
|
1379
|
+
}>;
|
|
1368
1380
|
|
|
1369
1381
|
|
|
1370
1382
|
export type IFetchProjectAlertingQuery = { fetchProjectAlerting?: Maybe<(
|
|
@@ -1397,7 +1409,9 @@ export type IFetchProjectBySlugQuery = { fetchProjectBySlug: (
|
|
|
1397
1409
|
)>> }
|
|
1398
1410
|
) };
|
|
1399
1411
|
|
|
1400
|
-
export type IFetchProjectMonitoringQueryVariables = Exact<{
|
|
1412
|
+
export type IFetchProjectMonitoringQueryVariables = Exact<{
|
|
1413
|
+
userId: Scalars['ID'];
|
|
1414
|
+
}>;
|
|
1401
1415
|
|
|
1402
1416
|
|
|
1403
1417
|
export type IFetchProjectMonitoringQuery = { fetchProjectMonitoring?: Maybe<(
|
|
@@ -2683,8 +2697,8 @@ export type FetchProjectQueryHookResult = ReturnType<typeof useFetchProjectQuery
|
|
|
2683
2697
|
export type FetchProjectLazyQueryHookResult = ReturnType<typeof useFetchProjectLazyQuery>;
|
|
2684
2698
|
export type FetchProjectQueryResult = Apollo.QueryResult<IFetchProjectQuery, IFetchProjectQueryVariables>;
|
|
2685
2699
|
export const FetchProjectAlertingDocument = gql`
|
|
2686
|
-
query FetchProjectAlerting {
|
|
2687
|
-
fetchProjectAlerting {
|
|
2700
|
+
query FetchProjectAlerting($userId: ID!) {
|
|
2701
|
+
fetchProjectAlerting(userId: $userId) {
|
|
2688
2702
|
userId
|
|
2689
2703
|
slotsFree
|
|
2690
2704
|
slotsLimit
|
|
@@ -2728,10 +2742,11 @@ export const FetchProjectAlertingDocument = gql`
|
|
|
2728
2742
|
* @example
|
|
2729
2743
|
* const { data, loading, error } = useFetchProjectAlertingQuery({
|
|
2730
2744
|
* variables: {
|
|
2745
|
+
* userId: // value for 'userId'
|
|
2731
2746
|
* },
|
|
2732
2747
|
* });
|
|
2733
2748
|
*/
|
|
2734
|
-
export function useFetchProjectAlertingQuery(baseOptions
|
|
2749
|
+
export function useFetchProjectAlertingQuery(baseOptions: Apollo.QueryHookOptions<IFetchProjectAlertingQuery, IFetchProjectAlertingQueryVariables>) {
|
|
2735
2750
|
return Apollo.useQuery<IFetchProjectAlertingQuery, IFetchProjectAlertingQueryVariables>(FetchProjectAlertingDocument, baseOptions);
|
|
2736
2751
|
}
|
|
2737
2752
|
export function useFetchProjectAlertingLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchProjectAlertingQuery, IFetchProjectAlertingQueryVariables>) {
|
|
@@ -2941,8 +2956,8 @@ export type FetchProjectBySlugQueryHookResult = ReturnType<typeof useFetchProjec
|
|
|
2941
2956
|
export type FetchProjectBySlugLazyQueryHookResult = ReturnType<typeof useFetchProjectBySlugLazyQuery>;
|
|
2942
2957
|
export type FetchProjectBySlugQueryResult = Apollo.QueryResult<IFetchProjectBySlugQuery, IFetchProjectBySlugQueryVariables>;
|
|
2943
2958
|
export const FetchProjectMonitoringDocument = gql`
|
|
2944
|
-
query FetchProjectMonitoring {
|
|
2945
|
-
fetchProjectMonitoring {
|
|
2959
|
+
query FetchProjectMonitoring($userId: ID!) {
|
|
2960
|
+
fetchProjectMonitoring(userId: $userId) {
|
|
2946
2961
|
userId
|
|
2947
2962
|
monitorsFree
|
|
2948
2963
|
monitorsLimit
|
|
@@ -2986,10 +3001,11 @@ export const FetchProjectMonitoringDocument = gql`
|
|
|
2986
3001
|
* @example
|
|
2987
3002
|
* const { data, loading, error } = useFetchProjectMonitoringQuery({
|
|
2988
3003
|
* variables: {
|
|
3004
|
+
* userId: // value for 'userId'
|
|
2989
3005
|
* },
|
|
2990
3006
|
* });
|
|
2991
3007
|
*/
|
|
2992
|
-
export function useFetchProjectMonitoringQuery(baseOptions
|
|
3008
|
+
export function useFetchProjectMonitoringQuery(baseOptions: Apollo.QueryHookOptions<IFetchProjectMonitoringQuery, IFetchProjectMonitoringQueryVariables>) {
|
|
2993
3009
|
return Apollo.useQuery<IFetchProjectMonitoringQuery, IFetchProjectMonitoringQueryVariables>(FetchProjectMonitoringDocument, baseOptions);
|
|
2994
3010
|
}
|
|
2995
3011
|
export function useFetchProjectMonitoringLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchProjectMonitoringQuery, IFetchProjectMonitoringQueryVariables>) {
|