@serptech/api 1.0.37 → 1.0.38

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serptech/api",
3
- "version": "1.0.37",
3
+ "version": "1.0.38",
4
4
  "description": "Library for work with SERP API",
5
5
  "source": "index.js",
6
6
  "main": "./dist/SerpApi.node.js",
@@ -33,10 +33,10 @@ export interface ReinitializePersonByEntryParamsInterface {
33
33
  }
34
34
 
35
35
  export interface ReinitializePersonByImageParamsInterface {
36
- pid: string;
36
+ person_id: string;
37
37
  image: File;
38
38
  create_min_facesize?: number;
39
- min_conf: number;
39
+ min_conf?: number;
40
40
  identify_asm?: boolean;
41
41
  }
42
42
 
@@ -89,7 +89,7 @@ class Persons extends Api implements PersonsInterface {
89
89
  }
90
90
 
91
91
  reinitializePersonByImage({
92
- pid,
92
+ person_id,
93
93
  image,
94
94
  min_conf,
95
95
  identify_asm,
@@ -103,7 +103,7 @@ class Persons extends Api implements PersonsInterface {
103
103
  addFileToFormData(data, image, "image");
104
104
  addDataToFormData(data, fieldsData);
105
105
 
106
- return this.httpClient.post(`${Persons.apiEndpoint}${pid}/reinit/`, data);
106
+ return this.httpClient.post(`${Persons.apiEndpoint}${person_id}/reinit/`, data);
107
107
  }
108
108
  }
109
109