@nomalism-com/api 0.8.299 → 0.8.301
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.
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { MaterialEntrance as Entity } from '@nomalism-com/types';
|
|
2
|
-
export import IValidarEntradaDeMaterialParcel = Entity.IValidarEntradaDeMaterialParcel;
|
|
3
|
-
export import IValidarEntradaDeMaterialRequest = Entity.IValidarEntradaDeMaterialRequest;
|
|
4
|
-
export import IValidarEntradaDeMaterialPlotsResponse = Entity.IValidarEntradaDeMaterialPlotsResponse;
|
|
5
|
-
export import IValidarEntradaDeMaterialResponse = Entity.IValidarEntradaDeMaterialResponse;
|
|
6
|
-
export import IFinalizarEntradaDeMaterialDocumentHeaderPlot = Entity.IFinalizarEntradaDeMaterialDocumentHeaderPlot;
|
|
7
2
|
export import IFinalizarEntradaDeMaterialDocumentHeader = Entity.IFinalizarEntradaDeMaterialDocumentHeader;
|
|
8
3
|
export import IFinalizarEntradaDeMaterialRequest = Entity.IFinalizarEntradaDeMaterialRequest;
|
|
9
4
|
export import IUndoEntradaDeMaterialRequest = Entity.IUndoEntradaDeMaterialRequest;
|
|
5
|
+
export import IGetMaterialEntranceInfoBase = Entity.IGetMaterialEntranceInfoBase;
|
|
6
|
+
export import IGetMaterialEntranceInfoClientOrder = Entity.IGetMaterialEntranceInfoClientOrder;
|
|
7
|
+
export import IGetMaterialEntranceInfoResponse = Entity.IGetMaterialEntranceInfoResponse;
|
|
8
|
+
export import IFinalizarEntradaDeMaterialClientOrder = Entity.IFinalizarEntradaDeMaterialClientOrder;
|
|
9
|
+
export import IFinalizarEntradaDeMaterialBase = Entity.IFinalizarEntradaDeMaterialBase;
|
|
10
10
|
export declare const route: string;
|
|
11
|
-
export declare const finalizarEntradaMaterial: (data: Entity.IFinalizarEntradaDeMaterialRequest) => Promise<void>, undoEntradaMaterial: (data: Entity.IUndoEntradaDeMaterialRequest) => Promise<void
|
|
11
|
+
export declare const finalizarEntradaMaterial: (data: Entity.IFinalizarEntradaDeMaterialRequest) => Promise<void>, undoEntradaMaterial: (data: Entity.IUndoEntradaDeMaterialRequest) => Promise<void>;
|
|
@@ -39,16 +39,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
39
39
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
40
|
};
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
-
exports.
|
|
42
|
+
exports.undoEntradaMaterial = exports.finalizarEntradaMaterial = exports.route = void 0;
|
|
43
43
|
var client_1 = __importDefault(require("../../shared/client"));
|
|
44
44
|
var stock_1 = require("../stock");
|
|
45
45
|
exports.route = "".concat(stock_1.serviceHostname).concat(stock_1.serviceAuthPath, "material_entrance/");
|
|
46
46
|
var repository = {
|
|
47
|
-
|
|
47
|
+
findByPickingId: function (selector) { return __awaiter(void 0, void 0, void 0, function () {
|
|
48
48
|
var response;
|
|
49
49
|
return __generator(this, function (_a) {
|
|
50
50
|
switch (_a.label) {
|
|
51
|
-
case 0: return [4, client_1.default.
|
|
51
|
+
case 0: return [4, client_1.default.get("".concat(exports.route).concat(selector.id))];
|
|
52
52
|
case 1:
|
|
53
53
|
response = _a.sent();
|
|
54
54
|
return [2, response.data];
|
|
@@ -76,4 +76,4 @@ var repository = {
|
|
|
76
76
|
});
|
|
77
77
|
}); },
|
|
78
78
|
};
|
|
79
|
-
exports.finalizarEntradaMaterial = repository.finalizarEntradaMaterial, exports.undoEntradaMaterial = repository.undoEntradaMaterial
|
|
79
|
+
exports.finalizarEntradaMaterial = repository.finalizarEntradaMaterial, exports.undoEntradaMaterial = repository.undoEntradaMaterial;
|
|
@@ -5,6 +5,7 @@ export import ICreateRequest = Entity.ICreateRequest;
|
|
|
5
5
|
export import IProductMinified = Entity.IProductMinified;
|
|
6
6
|
export import IEntityExtended = Entity.IEntityExtended;
|
|
7
7
|
export import IUpdateRequest = Entity.IUpdateRequest;
|
|
8
|
+
export import IUpdatePreSaleQuantityRequest = Entity.IUpdatePreSaleQuantityRequest;
|
|
8
9
|
export import IRemovePlotOrPreSaleProductRequest = Entity.IRemovePlotOrPreSaleProductRequest;
|
|
9
10
|
export import IImportToClientProposalRequest = Entity.IImportToClientProposalRequest;
|
|
10
11
|
export type IPaginationResponse = shared.IPaginationResponse<Entity.IFindResponse>;
|
|
@@ -99,6 +99,17 @@ var repository = {
|
|
|
99
99
|
}
|
|
100
100
|
});
|
|
101
101
|
}); },
|
|
102
|
+
updatePreSaleQuantity: function (selector, body) { return __awaiter(void 0, void 0, void 0, function () {
|
|
103
|
+
var response;
|
|
104
|
+
return __generator(this, function (_a) {
|
|
105
|
+
switch (_a.label) {
|
|
106
|
+
case 0: return [4, client_1.default.put("".concat(exports.route).concat(selector.id, "/quantity"), body)];
|
|
107
|
+
case 1:
|
|
108
|
+
response = _a.sent();
|
|
109
|
+
return [2, response.data];
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
}); },
|
|
102
113
|
removePlot: function (selector, body) { return __awaiter(void 0, void 0, void 0, function () {
|
|
103
114
|
var response;
|
|
104
115
|
return __generator(this, function (_a) {
|
package/package.json
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@nomalism-com/api",
|
|
3
|
-
"description": "A nomalism API package for performing HTTP requests on API endpoints",
|
|
4
|
-
"author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"nomalism",
|
|
7
|
-
"api",
|
|
8
|
-
"types",
|
|
9
|
-
"typescript",
|
|
10
|
-
"helper"
|
|
11
|
-
],
|
|
12
|
-
"version": "0.8.
|
|
13
|
-
"main": "dist/index.js",
|
|
14
|
-
"types": "./dist/index.d.ts",
|
|
15
|
-
"files": [
|
|
16
|
-
"dist"
|
|
17
|
-
],
|
|
18
|
-
"license": "UNLICENSED",
|
|
19
|
-
"homepage": "https://gitlab.com/nomalism-develop/api",
|
|
20
|
-
"bugs": {
|
|
21
|
-
"url": "https://gitlab.com/nomalism-develop/api/issues"
|
|
22
|
-
},
|
|
23
|
-
"repository": {
|
|
24
|
-
"type": "git",
|
|
25
|
-
"url": "git+https://gitlab.com/nomalism-develop/api.git"
|
|
26
|
-
},
|
|
27
|
-
"scripts": {
|
|
28
|
-
"lint": "eslint src --ext .ts,.js --ignore-pattern node_modules --ignore-pattern dist --cache",
|
|
29
|
-
"build": "rm -rf dist && tsc --project tsconfig.json",
|
|
30
|
-
"start": "tsx --tsconfig ./tsconfig.json src/index.ts",
|
|
31
|
-
"prepack": "concurrently --success all \"npm run lint\" \"npm run build\" \"npm run start\""
|
|
32
|
-
},
|
|
33
|
-
"devDependencies": {
|
|
34
|
-
"@types/convert-units": "^2.3.5",
|
|
35
|
-
"@types/node": "^18.16.16",
|
|
36
|
-
"@typescript-eslint/eslint-plugin": "^5.59.8",
|
|
37
|
-
"@typescript-eslint/parser": "^5.59.8",
|
|
38
|
-
"concurrently": "^8.0.1",
|
|
39
|
-
"eslint": "^8.41.0",
|
|
40
|
-
"eslint-config-airbnb-base": "^15.0.0",
|
|
41
|
-
"eslint-config-prettier": "^8.8.0",
|
|
42
|
-
"eslint-import-resolver-typescript": "^3.5.5",
|
|
43
|
-
"eslint-plugin-import": "^2.27.5",
|
|
44
|
-
"eslint-plugin-prettier": "^4.2.1",
|
|
45
|
-
"prettier": "^2.8.8",
|
|
46
|
-
"tsx": "^3.12.7",
|
|
47
|
-
"typescript": "^5.0.4"
|
|
48
|
-
},
|
|
49
|
-
"dependencies": {
|
|
50
|
-
"@nomalism-com/types": "^0.9.
|
|
51
|
-
"axios": "^0.27.2"
|
|
52
|
-
}
|
|
53
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@nomalism-com/api",
|
|
3
|
+
"description": "A nomalism API package for performing HTTP requests on API endpoints",
|
|
4
|
+
"author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"nomalism",
|
|
7
|
+
"api",
|
|
8
|
+
"types",
|
|
9
|
+
"typescript",
|
|
10
|
+
"helper"
|
|
11
|
+
],
|
|
12
|
+
"version": "0.8.301",
|
|
13
|
+
"main": "dist/index.js",
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"license": "UNLICENSED",
|
|
19
|
+
"homepage": "https://gitlab.com/nomalism-develop/api",
|
|
20
|
+
"bugs": {
|
|
21
|
+
"url": "https://gitlab.com/nomalism-develop/api/issues"
|
|
22
|
+
},
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "git+https://gitlab.com/nomalism-develop/api.git"
|
|
26
|
+
},
|
|
27
|
+
"scripts": {
|
|
28
|
+
"lint": "eslint src --ext .ts,.js --ignore-pattern node_modules --ignore-pattern dist --cache",
|
|
29
|
+
"build": "rm -rf dist && tsc --project tsconfig.json",
|
|
30
|
+
"start": "tsx --tsconfig ./tsconfig.json src/index.ts",
|
|
31
|
+
"prepack": "concurrently --success all \"npm run lint\" \"npm run build\" \"npm run start\""
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@types/convert-units": "^2.3.5",
|
|
35
|
+
"@types/node": "^18.16.16",
|
|
36
|
+
"@typescript-eslint/eslint-plugin": "^5.59.8",
|
|
37
|
+
"@typescript-eslint/parser": "^5.59.8",
|
|
38
|
+
"concurrently": "^8.0.1",
|
|
39
|
+
"eslint": "^8.41.0",
|
|
40
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
41
|
+
"eslint-config-prettier": "^8.8.0",
|
|
42
|
+
"eslint-import-resolver-typescript": "^3.5.5",
|
|
43
|
+
"eslint-plugin-import": "^2.27.5",
|
|
44
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
45
|
+
"prettier": "^2.8.8",
|
|
46
|
+
"tsx": "^3.12.7",
|
|
47
|
+
"typescript": "^5.0.4"
|
|
48
|
+
},
|
|
49
|
+
"dependencies": {
|
|
50
|
+
"@nomalism-com/types": "^0.9.392",
|
|
51
|
+
"axios": "^0.27.2"
|
|
52
|
+
}
|
|
53
|
+
}
|