@nomalism-com/api 0.8.286 → 0.8.287
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.
|
@@ -4,6 +4,7 @@ export import IFindByOwnerIdRequest = shared.IFindByOwnerIdRequest;
|
|
|
4
4
|
export import ICreateRequest = Entity.ICreateRequest;
|
|
5
5
|
export import IUpdateRequest = Entity.IUpdateRequest;
|
|
6
6
|
export import IUpdateDataRequest = Entity.IUpdateDataRequest;
|
|
7
|
+
export import IPrintLabelParamsRequest = Entity.IPrintLabelParamsRequest;
|
|
7
8
|
export import IUpdateManyRequest = Entity.IUpdateManyRequest;
|
|
8
9
|
export import IEntity = Entity.Entity;
|
|
9
10
|
export import IEntityExtended = Entity.IEntityExtended;
|
|
@@ -16,4 +17,5 @@ export import IFindByDocumentLineStateRequest = Entity.IFindByDocumentLineStateR
|
|
|
16
17
|
export import IFindByDocumentLineStateResponse = Entity.IFindByDocumentLineStateResponse;
|
|
17
18
|
export declare const IMetadataPlugins: typeof Entity.IMetadataPlugins;
|
|
18
19
|
export declare const route: string;
|
|
20
|
+
export declare const printLabelToPdfUrl: ({ document_line_id }: IPrintLabelParamsRequest, token: string) => string;
|
|
19
21
|
export declare const findById: (selector: shared.IFindByIdRequest) => Promise<import("@nomalism-com/types/dist/shared/entities").DocumentLine | null>, findByOwnerId: (params: shared.IFindByOwnerIdRequest) => Promise<import("@nomalism-com/types/dist/shared/entities").DocumentLine[]>, findUnallocatedStock: () => Promise<Entity.IFindUnallocatedStockResponse[]>, create: (data: Entity.ICreateRequest[]) => Promise<DocumentLineAssoc.IEntityExtended[]>, update: (selector: shared.IFindByIdRequest, data: Entity.IUpdateRequest) => Promise<void>, updateIndexes: (document_line_ids: string[]) => Promise<void>, updateData: (data: Entity.IUpdateDataRequestWithoutStamps) => Promise<DocumentLineAssoc.IEntityExtended[]>, updateMany: (data: Entity.IUpdateManyRequest) => Promise<void>, deleteMany: (document_line_ids: string[]) => Promise<void>;
|
|
@@ -39,7 +39,7 @@ 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.deleteMany = exports.updateMany = exports.updateData = exports.updateIndexes = exports.update = exports.create = exports.findUnallocatedStock = exports.findByOwnerId = exports.findById = exports.route = exports.IMetadataPlugins = void 0;
|
|
42
|
+
exports.deleteMany = exports.updateMany = exports.updateData = exports.updateIndexes = exports.update = exports.create = exports.findUnallocatedStock = exports.findByOwnerId = exports.findById = exports.printLabelToPdfUrl = exports.route = exports.IMetadataPlugins = void 0;
|
|
43
43
|
var types_1 = require("@nomalism-com/types");
|
|
44
44
|
var client_1 = __importDefault(require("../../shared/client"));
|
|
45
45
|
var stock_1 = require("../stock");
|
|
@@ -154,4 +154,11 @@ var repository = {
|
|
|
154
154
|
});
|
|
155
155
|
}); },
|
|
156
156
|
};
|
|
157
|
+
var printLabelToPdfUrl = function (_a, token) {
|
|
158
|
+
var document_line_id = _a.document_line_id;
|
|
159
|
+
var qs = new URLSearchParams();
|
|
160
|
+
qs.set('token', token);
|
|
161
|
+
return "".concat(exports.route, "print_label_pdf/").concat(document_line_id, "?").concat(qs.toString());
|
|
162
|
+
};
|
|
163
|
+
exports.printLabelToPdfUrl = printLabelToPdfUrl;
|
|
157
164
|
exports.findById = repository.findById, exports.findByOwnerId = repository.findByOwnerId, exports.findUnallocatedStock = repository.findUnallocatedStock, exports.create = repository.create, exports.update = repository.update, exports.updateIndexes = repository.updateIndexes, exports.updateData = repository.updateData, exports.updateMany = repository.updateMany, exports.deleteMany = repository.deleteMany;
|
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.13",
|
|
36
|
-
"@typescript-eslint/eslint-plugin": "^5.59.6",
|
|
37
|
-
"@typescript-eslint/parser": "^5.59.6",
|
|
38
|
-
"concurrently": "^8.0.1",
|
|
39
|
-
"eslint": "^8.40.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.287",
|
|
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.13",
|
|
36
|
+
"@typescript-eslint/eslint-plugin": "^5.59.6",
|
|
37
|
+
"@typescript-eslint/parser": "^5.59.6",
|
|
38
|
+
"concurrently": "^8.0.1",
|
|
39
|
+
"eslint": "^8.40.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.372",
|
|
51
|
+
"axios": "^0.27.2"
|
|
52
|
+
}
|
|
53
|
+
}
|