hackathon-care-fe-sdk 0.0.7 → 0.0.8

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.
@@ -191,10 +191,19 @@ export type AnalysisStatusResponseOneOfTwo = {
191
191
  analysis: PartialAnalysis;
192
192
  };
193
193
  export type AnalysisStatusResponse = AnalysisStatusResponseOneOf | AnalysisStatusResponseOneOfTwo;
194
+ export interface RecommendationsResponse {
195
+ recommendations: string;
196
+ }
194
197
  /**
195
198
  * Photo identifier
196
199
  */
197
200
  export type AnalysisIdQueryParameter = number;
201
+ export type GetRecommendationsParams = {
202
+ /**
203
+ * Photo identifier
204
+ */
205
+ analysis_id: AnalysisIdQueryParameter;
206
+ };
198
207
  export type GetAnalysisParams = {
199
208
  /**
200
209
  * Photo identifier
@@ -207,6 +216,10 @@ export type GetAnalysisStatusParams = {
207
216
  */
208
217
  analysis_id: AnalysisIdQueryParameter;
209
218
  };
219
+ /**
220
+ * @summary Get recommendations per analysis
221
+ */
222
+ export declare const getRecommendations: <TData = AxiosResponse<RecommendationsResponse>>(params: GetRecommendationsParams, options?: AxiosRequestConfig) => Promise<TData>;
210
223
  /**
211
224
  * @summary Get finished analysis per photo
212
225
  */
@@ -219,6 +232,7 @@ export declare const startAnalysis: <TData = AxiosResponse<AnalysisStartResponse
219
232
  * @summary Get analysis processing status (чтобы полить)
220
233
  */
221
234
  export declare const getAnalysisStatus: <TData = AxiosResponse<AnalysisStatusResponse>>(params: GetAnalysisStatusParams, options?: AxiosRequestConfig) => Promise<TData>;
235
+ export type GetRecommendationsResult = AxiosResponse<RecommendationsResponse>;
222
236
  export type GetAnalysisResult = AxiosResponse<Analysis>;
223
237
  export type StartAnalysisResult = AxiosResponse<AnalysisStartResponse>;
224
238
  export type GetAnalysisStatusResult = AxiosResponse<AnalysisStatusResponse>;
@@ -57,6 +57,15 @@ export const PartialAnalysisAnxiety = {
57
57
  mid: "mid",
58
58
  high: "high",
59
59
  };
60
+ /**
61
+ * @summary Get recommendations per analysis
62
+ */
63
+ export const getRecommendations = (params, options) => {
64
+ return axios.get(`/recommendations`, {
65
+ ...options,
66
+ params: { ...params, ...options?.params },
67
+ });
68
+ };
60
69
  /**
61
70
  * @summary Get finished analysis per photo
62
71
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hackathon-care-fe-sdk",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "",
5
5
  "private": false,
6
6
  "type": "module",