@escapenavigator/services 1.10.67 → 1.10.68
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.
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ApiMethodDeclaration } from '..';
|
|
2
|
+
type ParamsData = {
|
|
3
|
+
productId: number;
|
|
4
|
+
locationId: number;
|
|
5
|
+
};
|
|
6
|
+
type ResponseData = {
|
|
7
|
+
stock: number;
|
|
8
|
+
};
|
|
9
|
+
export declare const getStockByLocation: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getStockByLocation = void 0;
|
|
4
|
+
var getStockByLocation = function (_a) {
|
|
5
|
+
var productId = _a.productId, locationId = _a.locationId;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/products/".concat(productId, "/stock/").concat(locationId),
|
|
8
|
+
method: 'GET',
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
exports.getStockByLocation = getStockByLocation;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { create } from './create';
|
|
2
2
|
import { getAllMovements } from './get-all-movements';
|
|
3
3
|
import { getOne } from './get-one';
|
|
4
|
+
import { getStockByLocation } from './get-stock-by-location';
|
|
4
5
|
import { query } from './query';
|
|
5
6
|
import { remove } from './remove';
|
|
6
7
|
import { update } from './update';
|
|
@@ -11,6 +12,7 @@ type ApiDeclaration = {
|
|
|
11
12
|
update: typeof update;
|
|
12
13
|
remove: typeof remove;
|
|
13
14
|
getAllMovements: typeof getAllMovements;
|
|
15
|
+
getStockByLocation: typeof getStockByLocation;
|
|
14
16
|
};
|
|
15
17
|
export declare const productsApiDeclaration: ApiDeclaration;
|
|
16
18
|
export {};
|
|
@@ -4,6 +4,7 @@ exports.productsApiDeclaration = void 0;
|
|
|
4
4
|
var create_1 = require("./create");
|
|
5
5
|
var get_all_movements_1 = require("./get-all-movements");
|
|
6
6
|
var get_one_1 = require("./get-one");
|
|
7
|
+
var get_stock_by_location_1 = require("./get-stock-by-location");
|
|
7
8
|
var query_1 = require("./query");
|
|
8
9
|
var remove_1 = require("./remove");
|
|
9
10
|
var update_1 = require("./update");
|
|
@@ -14,4 +15,5 @@ exports.productsApiDeclaration = {
|
|
|
14
15
|
update: update_1.update,
|
|
15
16
|
remove: remove_1.remove,
|
|
16
17
|
getAllMovements: get_all_movements_1.getAllMovements,
|
|
18
|
+
getStockByLocation: get_stock_by_location_1.getStockByLocation,
|
|
17
19
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.68",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "rm -rf dist && tsc --project tsconfig.json"
|
|
14
14
|
},
|
|
15
|
-
"gitHead": "
|
|
15
|
+
"gitHead": "bcc1f4cbc3c1af2ad2a6b1f190a0b717a5eb5804",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^1.10.
|
|
18
|
-
"@escapenavigator/utils": "^1.10.
|
|
17
|
+
"@escapenavigator/types": "^1.10.62",
|
|
18
|
+
"@escapenavigator/utils": "^1.10.66",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.2",
|