@nomalism-com/api 0.49.23 → 0.49.25
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 +7 -0
- package/dist/index.js +7 -0
- package/dist/modules/stock/productUpdate.d.ts +1 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -2262,6 +2262,13 @@ var Repository55 = class {
|
|
|
2262
2262
|
);
|
|
2263
2263
|
return response.data;
|
|
2264
2264
|
}
|
|
2265
|
+
async execute(data) {
|
|
2266
|
+
const response = await this.api.post(
|
|
2267
|
+
`${this.route}execute`,
|
|
2268
|
+
data
|
|
2269
|
+
);
|
|
2270
|
+
return response.data;
|
|
2271
|
+
}
|
|
2265
2272
|
};
|
|
2266
2273
|
|
|
2267
2274
|
// src/modules/stock/promotion.ts
|
package/dist/index.js
CHANGED
|
@@ -2229,6 +2229,13 @@ var Repository55 = class {
|
|
|
2229
2229
|
);
|
|
2230
2230
|
return response.data;
|
|
2231
2231
|
}
|
|
2232
|
+
async execute(data) {
|
|
2233
|
+
const response = await this.api.post(
|
|
2234
|
+
`${this.route}execute`,
|
|
2235
|
+
data
|
|
2236
|
+
);
|
|
2237
|
+
return response.data;
|
|
2238
|
+
}
|
|
2232
2239
|
};
|
|
2233
2240
|
|
|
2234
2241
|
// src/modules/stock/promotion.ts
|
|
@@ -6,4 +6,5 @@ export default class Repository implements Nomalism.ProductUpdate.IRepository {
|
|
|
6
6
|
constructor({ api, route }: IModuleConstructor);
|
|
7
7
|
extract(data: Nomalism.ProductUpdate.IExtractRequest): Promise<Nomalism.ProductUpdate.IExtractResponse>;
|
|
8
8
|
analyze(data: Nomalism.ProductUpdate.IAnalyzeRequest): Promise<Nomalism.ProductUpdate.IAnalyzeResponse>;
|
|
9
|
+
execute(data: Nomalism.ProductUpdate.IExecuteRequest): Promise<Nomalism.ProductUpdate.IExecuteResponse>;
|
|
9
10
|
}
|
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.
|
|
4
|
+
"version": "0.49.25",
|
|
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.
|
|
33
|
+
"@nomalism-com/types": "^0.49.35",
|
|
34
34
|
"axios": "^1.20.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|