@hapl/api-queries 0.2.82 → 0.2.83
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/dist/api-queries.cjs.development.js +0 -60
- package/dist/api-queries.cjs.development.js.map +1 -1
- package/dist/api-queries.cjs.production.min.js +1 -1
- package/dist/api-queries.cjs.production.min.js.map +1 -1
- package/dist/api-queries.esm.js +0 -60
- package/dist/api-queries.esm.js.map +1 -1
- package/dist/external/api/index.d.ts +0 -3
- package/dist/external/index.d.ts +0 -67
- package/package.json +1 -1
- package/src/external/api/index.ts +0 -4
- package/src/external/index.ts +0 -12
- package/dist/external/api/icons/findIconById.d.ts +0 -33
- package/dist/external/api/icons/findIconPlatforms.d.ts +0 -29
- package/dist/external/api/icons/searchIcons.d.ts +0 -54
- package/src/external/api/icons/findIconById.ts +0 -41
- package/src/external/api/icons/findIconPlatforms.ts +0 -37
- package/src/external/api/icons/searchIcons.ts +0 -64
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
export * from './callTransfer/findCallTransferByExpertId';
|
|
2
2
|
export * from './dadata/findDadataSuggestions';
|
|
3
|
-
export * from './icons/findIconById';
|
|
4
|
-
export * from './icons/findIconPlatforms';
|
|
5
|
-
export * from './icons/searchIcons';
|
|
6
3
|
export * from './yandex/findYandexSuggestions';
|
|
7
4
|
export * from './yandex/yandexGeocode';
|
package/dist/external/index.d.ts
CHANGED
|
@@ -105,73 +105,6 @@ export declare class Api {
|
|
|
105
105
|
};
|
|
106
106
|
}[];
|
|
107
107
|
}, any>>;
|
|
108
|
-
findIconById: (params: api.FindIconByIdParams) => Promise<import("axios").AxiosResponse<{
|
|
109
|
-
success: boolean;
|
|
110
|
-
icon: {
|
|
111
|
-
id: string;
|
|
112
|
-
name: string;
|
|
113
|
-
isFree: boolean;
|
|
114
|
-
isAnimated: boolean;
|
|
115
|
-
platform: string;
|
|
116
|
-
platformName: string;
|
|
117
|
-
publishedAt: number;
|
|
118
|
-
commonId: string;
|
|
119
|
-
commonName: string;
|
|
120
|
-
categoryName: string;
|
|
121
|
-
tags: string[];
|
|
122
|
-
subcategory: string;
|
|
123
|
-
subcategoryName: string;
|
|
124
|
-
description: string;
|
|
125
|
-
svg: string;
|
|
126
|
-
category?: string | undefined;
|
|
127
|
-
};
|
|
128
|
-
}, any>>;
|
|
129
|
-
findIconPlatforms: (params: api.FindIconPlatformsParams) => Promise<import("axios").AxiosResponse<{
|
|
130
|
-
docs: {
|
|
131
|
-
apiCode: string;
|
|
132
|
-
title: string;
|
|
133
|
-
fullTitle: string;
|
|
134
|
-
isColor: false;
|
|
135
|
-
size: number;
|
|
136
|
-
iconsCount: number;
|
|
137
|
-
mainPreviews: string[];
|
|
138
|
-
preview: string;
|
|
139
|
-
}[];
|
|
140
|
-
total: number;
|
|
141
|
-
limit: number;
|
|
142
|
-
page: number;
|
|
143
|
-
pages: number;
|
|
144
|
-
}, any>>;
|
|
145
|
-
searchIcons: (params: api.SearchIconsParams) => Promise<import("axios").AxiosResponse<{
|
|
146
|
-
success: boolean;
|
|
147
|
-
icons: {
|
|
148
|
-
id: string;
|
|
149
|
-
name: string;
|
|
150
|
-
commonName: string;
|
|
151
|
-
platform: string;
|
|
152
|
-
isAnimated: boolean;
|
|
153
|
-
isFree: boolean;
|
|
154
|
-
isExternal: boolean;
|
|
155
|
-
isColor: boolean;
|
|
156
|
-
isExplicit: boolean;
|
|
157
|
-
authorId: string;
|
|
158
|
-
authorName: string;
|
|
159
|
-
sourceFormat: string;
|
|
160
|
-
category?: string | undefined;
|
|
161
|
-
}[];
|
|
162
|
-
message?: string | undefined;
|
|
163
|
-
suggestion?: string | undefined;
|
|
164
|
-
isSuggestionApplied?: string | undefined;
|
|
165
|
-
parameters?: {
|
|
166
|
-
amount?: number | undefined;
|
|
167
|
-
countAll?: number | undefined;
|
|
168
|
-
language?: string | undefined;
|
|
169
|
-
foundLanguage?: string | undefined;
|
|
170
|
-
offset?: number | undefined;
|
|
171
|
-
term?: string | undefined;
|
|
172
|
-
searchTranslations?: Partial<Record<"en" | "ru" | "de" | "es" | "ja" | "it" | "hi" | "fr" | "pt" | "pl" | "ar" | "ko" | "zh", string>> | undefined;
|
|
173
|
-
} | undefined;
|
|
174
|
-
}, any>>;
|
|
175
108
|
findYandexSuggestions: (params: api.FindYandexSuggestionsParams) => Promise<import("axios").AxiosResponse<{
|
|
176
109
|
results?: {
|
|
177
110
|
title: {
|
package/package.json
CHANGED
|
@@ -2,9 +2,5 @@ export * from './callTransfer/findCallTransferByExpertId';
|
|
|
2
2
|
|
|
3
3
|
export * from './dadata/findDadataSuggestions';
|
|
4
4
|
|
|
5
|
-
export * from './icons/findIconById';
|
|
6
|
-
export * from './icons/findIconPlatforms';
|
|
7
|
-
export * from './icons/searchIcons';
|
|
8
|
-
|
|
9
5
|
export * from './yandex/findYandexSuggestions';
|
|
10
6
|
export * from './yandex/yandexGeocode';
|
package/src/external/index.ts
CHANGED
|
@@ -9,18 +9,6 @@ export class Api {
|
|
|
9
9
|
return api.findDadataSuggestionsRequest({ body, headers });
|
|
10
10
|
};
|
|
11
11
|
|
|
12
|
-
findIconById = (params: api.FindIconByIdParams) => {
|
|
13
|
-
return api.findIconByIdRequest({ params });
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
findIconPlatforms = (params: api.FindIconPlatformsParams) => {
|
|
17
|
-
return api.findIconPlatformsRequest({ params });
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
searchIcons = (params: api.SearchIconsParams) => {
|
|
21
|
-
return api.searchIconsRequest({ params });
|
|
22
|
-
};
|
|
23
|
-
|
|
24
12
|
findYandexSuggestions = (params: api.FindYandexSuggestionsParams) => {
|
|
25
13
|
return api.findYandexSuggestionsRequest({ params });
|
|
26
14
|
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { AxiosResponse } from 'axios';
|
|
2
|
-
declare type SuccessData = {
|
|
3
|
-
success: boolean;
|
|
4
|
-
icon: {
|
|
5
|
-
id: string;
|
|
6
|
-
name: string;
|
|
7
|
-
isFree: boolean;
|
|
8
|
-
isAnimated: boolean;
|
|
9
|
-
platform: string;
|
|
10
|
-
platformName: string;
|
|
11
|
-
publishedAt: number;
|
|
12
|
-
commonId: string;
|
|
13
|
-
commonName: string;
|
|
14
|
-
categoryName: string;
|
|
15
|
-
tags: string[];
|
|
16
|
-
subcategory: string;
|
|
17
|
-
subcategoryName: string;
|
|
18
|
-
description: string;
|
|
19
|
-
svg: string;
|
|
20
|
-
category?: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
export declare type FindIconByIdParams = {
|
|
24
|
-
token: string;
|
|
25
|
-
id: string;
|
|
26
|
-
language?: string;
|
|
27
|
-
};
|
|
28
|
-
export declare type FindIconByIdData = AxiosResponse<SuccessData>;
|
|
29
|
-
export declare type FindIconByIdConfig = {
|
|
30
|
-
params: FindIconByIdParams;
|
|
31
|
-
};
|
|
32
|
-
export declare function findIconByIdRequest({ params }: FindIconByIdConfig): Promise<AxiosResponse<SuccessData, any>>;
|
|
33
|
-
export {};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { AxiosResponse } from 'axios';
|
|
2
|
-
declare type SuccessData = {
|
|
3
|
-
docs: Array<{
|
|
4
|
-
apiCode: string;
|
|
5
|
-
title: string;
|
|
6
|
-
fullTitle: string;
|
|
7
|
-
isColor: false;
|
|
8
|
-
size: number;
|
|
9
|
-
iconsCount: number;
|
|
10
|
-
mainPreviews: string[];
|
|
11
|
-
preview: string;
|
|
12
|
-
}>;
|
|
13
|
-
total: number;
|
|
14
|
-
limit: number;
|
|
15
|
-
page: number;
|
|
16
|
-
pages: number;
|
|
17
|
-
};
|
|
18
|
-
export declare type FindIconPlatformsParams = {
|
|
19
|
-
token: string;
|
|
20
|
-
limit?: number;
|
|
21
|
-
page?: number;
|
|
22
|
-
offset?: number;
|
|
23
|
-
};
|
|
24
|
-
export declare type FindIconPlatformsData = AxiosResponse<SuccessData>;
|
|
25
|
-
export declare type FindIconPlatformsConfig = {
|
|
26
|
-
params: FindIconPlatformsParams;
|
|
27
|
-
};
|
|
28
|
-
export declare function findIconPlatformsRequest({ params }: FindIconPlatformsConfig): Promise<AxiosResponse<SuccessData, any>>;
|
|
29
|
-
export {};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { AxiosResponse } from 'axios';
|
|
2
|
-
declare type SuccessData = {
|
|
3
|
-
success: boolean;
|
|
4
|
-
icons: Array<{
|
|
5
|
-
id: string;
|
|
6
|
-
name: string;
|
|
7
|
-
commonName: string;
|
|
8
|
-
platform: string;
|
|
9
|
-
isAnimated: boolean;
|
|
10
|
-
isFree: boolean;
|
|
11
|
-
isExternal: boolean;
|
|
12
|
-
isColor: boolean;
|
|
13
|
-
isExplicit: boolean;
|
|
14
|
-
authorId: string;
|
|
15
|
-
authorName: string;
|
|
16
|
-
sourceFormat: string;
|
|
17
|
-
category?: string;
|
|
18
|
-
}>;
|
|
19
|
-
message?: string;
|
|
20
|
-
suggestion?: string;
|
|
21
|
-
isSuggestionApplied?: string;
|
|
22
|
-
parameters?: {
|
|
23
|
-
amount?: number;
|
|
24
|
-
countAll?: number;
|
|
25
|
-
language?: string;
|
|
26
|
-
foundLanguage?: string;
|
|
27
|
-
offset?: number;
|
|
28
|
-
term?: string;
|
|
29
|
-
searchTranslations?: Partial<Record<'en' | 'ru' | 'de' | 'es' | 'ja' | 'it' | 'hi' | 'fr' | 'pt' | 'pl' | 'ar' | 'ko' | 'zh', string>>;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
export declare type SearchIconsParams = {
|
|
33
|
-
token: string;
|
|
34
|
-
term: string;
|
|
35
|
-
platform?: string;
|
|
36
|
-
suggest?: boolean;
|
|
37
|
-
offset?: number;
|
|
38
|
-
category?: string;
|
|
39
|
-
authors?: string;
|
|
40
|
-
authorId?: string;
|
|
41
|
-
authorName?: string;
|
|
42
|
-
isAnimated?: boolean;
|
|
43
|
-
isOuch?: boolean;
|
|
44
|
-
isColor?: boolean;
|
|
45
|
-
spellcheck?: boolean;
|
|
46
|
-
allowExplicit?: boolean;
|
|
47
|
-
replaceNameWithSynonyms?: boolean;
|
|
48
|
-
};
|
|
49
|
-
export declare type SearchIconsData = AxiosResponse<SuccessData>;
|
|
50
|
-
export declare type SearchIconsConfig = {
|
|
51
|
-
params: SearchIconsParams;
|
|
52
|
-
};
|
|
53
|
-
export declare function searchIconsRequest({ params }: SearchIconsConfig): Promise<AxiosResponse<SuccessData, any>>;
|
|
54
|
-
export {};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
// документация https://developers.icons8.com/docs/icons#get-publicApi-icons-icon
|
|
2
|
-
import axios, { AxiosResponse } from 'axios';
|
|
3
|
-
import qs from 'qs';
|
|
4
|
-
|
|
5
|
-
type SuccessData = {
|
|
6
|
-
success: boolean;
|
|
7
|
-
icon: {
|
|
8
|
-
id: string;
|
|
9
|
-
name: string;
|
|
10
|
-
isFree: boolean;
|
|
11
|
-
isAnimated: boolean;
|
|
12
|
-
platform: string;
|
|
13
|
-
platformName: string;
|
|
14
|
-
publishedAt: number;
|
|
15
|
-
commonId: string;
|
|
16
|
-
commonName: string;
|
|
17
|
-
categoryName: string;
|
|
18
|
-
tags: string[];
|
|
19
|
-
subcategory: string;
|
|
20
|
-
subcategoryName: string;
|
|
21
|
-
description: string;
|
|
22
|
-
svg: string;
|
|
23
|
-
category?: string;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export type FindIconByIdParams = {
|
|
28
|
-
token: string;
|
|
29
|
-
id: string;
|
|
30
|
-
language?: string;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export type FindIconByIdData = AxiosResponse<SuccessData>;
|
|
34
|
-
export type FindIconByIdConfig = { params: FindIconByIdParams };
|
|
35
|
-
|
|
36
|
-
export function findIconByIdRequest({ params }: FindIconByIdConfig) {
|
|
37
|
-
return axios.get<SuccessData>('https://api-icons.icons8.com/publicApi/icons/icon', {
|
|
38
|
-
params,
|
|
39
|
-
paramsSerializer: params => qs.stringify(params, { arrayFormat: 'comma' }),
|
|
40
|
-
});
|
|
41
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
// документация https://developers.icons8.com/docs/icons#get-publicApi-platforms
|
|
2
|
-
import axios, { AxiosResponse } from 'axios';
|
|
3
|
-
import qs from 'qs';
|
|
4
|
-
|
|
5
|
-
type SuccessData = {
|
|
6
|
-
docs: Array<{
|
|
7
|
-
apiCode: string;
|
|
8
|
-
title: string;
|
|
9
|
-
fullTitle: string;
|
|
10
|
-
isColor: false;
|
|
11
|
-
size: number;
|
|
12
|
-
iconsCount: number;
|
|
13
|
-
mainPreviews: string[];
|
|
14
|
-
preview: string;
|
|
15
|
-
}>;
|
|
16
|
-
total: number;
|
|
17
|
-
limit: number;
|
|
18
|
-
page: number;
|
|
19
|
-
pages: number;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
export type FindIconPlatformsParams = {
|
|
23
|
-
token: string;
|
|
24
|
-
limit?: number;
|
|
25
|
-
page?: number;
|
|
26
|
-
offset?: number;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
export type FindIconPlatformsData = AxiosResponse<SuccessData>;
|
|
30
|
-
export type FindIconPlatformsConfig = { params: FindIconPlatformsParams };
|
|
31
|
-
|
|
32
|
-
export function findIconPlatformsRequest({ params }: FindIconPlatformsConfig) {
|
|
33
|
-
return axios.get<SuccessData>('https://api-icons.icons8.com/publicApi/platforms', {
|
|
34
|
-
params,
|
|
35
|
-
paramsSerializer: params => qs.stringify(params, { arrayFormat: 'comma' }),
|
|
36
|
-
});
|
|
37
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
// документация https://developers.icons8.com/docs/searchIcons#get-api-iconsets-v5-search
|
|
2
|
-
import axios, { AxiosResponse } from 'axios';
|
|
3
|
-
import qs from 'qs';
|
|
4
|
-
|
|
5
|
-
type SuccessData = {
|
|
6
|
-
success: boolean;
|
|
7
|
-
icons: Array<{
|
|
8
|
-
id: string;
|
|
9
|
-
name: string;
|
|
10
|
-
commonName: string;
|
|
11
|
-
platform: string;
|
|
12
|
-
isAnimated: boolean;
|
|
13
|
-
isFree: boolean;
|
|
14
|
-
isExternal: boolean;
|
|
15
|
-
isColor: boolean;
|
|
16
|
-
isExplicit: boolean;
|
|
17
|
-
authorId: string;
|
|
18
|
-
authorName: string;
|
|
19
|
-
sourceFormat: string;
|
|
20
|
-
category?: string;
|
|
21
|
-
}>;
|
|
22
|
-
message?: string;
|
|
23
|
-
suggestion?: string;
|
|
24
|
-
isSuggestionApplied?: string;
|
|
25
|
-
parameters?: {
|
|
26
|
-
amount?: number;
|
|
27
|
-
countAll?: number;
|
|
28
|
-
language?: string;
|
|
29
|
-
foundLanguage?: string;
|
|
30
|
-
offset?: number;
|
|
31
|
-
term?: string;
|
|
32
|
-
searchTranslations?: Partial<
|
|
33
|
-
Record<'en' | 'ru' | 'de' | 'es' | 'ja' | 'it' | 'hi' | 'fr' | 'pt' | 'pl' | 'ar' | 'ko' | 'zh', string>
|
|
34
|
-
>;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
export type SearchIconsParams = {
|
|
39
|
-
token: string;
|
|
40
|
-
term: string;
|
|
41
|
-
platform?: string;
|
|
42
|
-
suggest?: boolean;
|
|
43
|
-
offset?: number;
|
|
44
|
-
category?: string;
|
|
45
|
-
authors?: string;
|
|
46
|
-
authorId?: string;
|
|
47
|
-
authorName?: string;
|
|
48
|
-
isAnimated?: boolean;
|
|
49
|
-
isOuch?: boolean;
|
|
50
|
-
isColor?: boolean;
|
|
51
|
-
spellcheck?: boolean;
|
|
52
|
-
allowExplicit?: boolean;
|
|
53
|
-
replaceNameWithSynonyms?: boolean;
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
export type SearchIconsData = AxiosResponse<SuccessData>;
|
|
57
|
-
export type SearchIconsConfig = { params: SearchIconsParams };
|
|
58
|
-
|
|
59
|
-
export function searchIconsRequest({ params }: SearchIconsConfig) {
|
|
60
|
-
return axios.get<SuccessData>('https://search.icons8.com/api/iconsets/v5/search', {
|
|
61
|
-
params,
|
|
62
|
-
paramsSerializer: params => qs.stringify(params, { arrayFormat: 'comma' }),
|
|
63
|
-
});
|
|
64
|
-
}
|