@nomalism-com/api 0.49.21 → 0.49.23

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/index.cjs CHANGED
@@ -2255,6 +2255,13 @@ var Repository55 = class {
2255
2255
  );
2256
2256
  return response.data;
2257
2257
  }
2258
+ async analyze(data) {
2259
+ const response = await this.api.post(
2260
+ `${this.route}analyze`,
2261
+ data
2262
+ );
2263
+ return response.data;
2264
+ }
2258
2265
  };
2259
2266
 
2260
2267
  // src/modules/stock/promotion.ts
package/dist/index.js CHANGED
@@ -2222,6 +2222,13 @@ var Repository55 = class {
2222
2222
  );
2223
2223
  return response.data;
2224
2224
  }
2225
+ async analyze(data) {
2226
+ const response = await this.api.post(
2227
+ `${this.route}analyze`,
2228
+ data
2229
+ );
2230
+ return response.data;
2231
+ }
2225
2232
  };
2226
2233
 
2227
2234
  // src/modules/stock/promotion.ts
@@ -5,4 +5,5 @@ export default class Repository implements Nomalism.ProductUpdate.IRepository {
5
5
  private api;
6
6
  constructor({ api, route }: IModuleConstructor);
7
7
  extract(data: Nomalism.ProductUpdate.IExtractRequest): Promise<Nomalism.ProductUpdate.IExtractResponse>;
8
+ analyze(data: Nomalism.ProductUpdate.IAnalyzeRequest): Promise<Nomalism.ProductUpdate.IAnalyzeResponse>;
8
9
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nomalism-com/api",
3
3
  "description": "A nomalism API package for performing HTTP requests on API endpoints",
4
- "version": "0.49.21",
4
+ "version": "0.49.23",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",
@@ -30,7 +30,7 @@
30
30
  "prepare": "husky"
31
31
  },
32
32
  "dependencies": {
33
- "@nomalism-com/types": "^0.49.29",
33
+ "@nomalism-com/types": "^0.49.31",
34
34
  "axios": "^1.20.0"
35
35
  },
36
36
  "devDependencies": {