@nomalism-com/api 0.8.374 → 0.8.375

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,6 +1,7 @@
1
1
  import { shared, CabideProduct as Entity } from '@nomalism-com/types';
2
2
  import * as Product from '../stock/product';
3
3
  export import ICreateRequest = Entity.ICreateRequest;
4
+ export import IUpdateRequest = Entity.IUpdateRequest;
4
5
  export import IEntity = Entity.Entity;
5
6
  export import IFindCabideByOwnerResponse = Entity.IFindCabideByOwnerResponse;
6
7
  export import ICreateProductByCabideProductIdRequest = Entity.ICreateProductByCabideProductIdRequest;
@@ -66,6 +66,17 @@ var repository = {
66
66
  }
67
67
  });
68
68
  }); },
69
+ update: function (selector, body) { return __awaiter(void 0, void 0, void 0, function () {
70
+ var response;
71
+ return __generator(this, function (_a) {
72
+ switch (_a.label) {
73
+ case 0: return [4, client_1.default.put("".concat(exports.route).concat(selector.id), body)];
74
+ case 1:
75
+ response = _a.sent();
76
+ return [2, response.data];
77
+ }
78
+ });
79
+ }); },
69
80
  createProductByCabideProductId: function (body) { return __awaiter(void 0, void 0, void 0, function () {
70
81
  var response;
71
82
  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.374",
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.6",
35
- "@types/node": "^18.16.19",
36
- "@typescript-eslint/eslint-plugin": "^5.62.0",
37
- "@typescript-eslint/parser": "^5.62.0",
38
- "concurrently": "^8.2.0",
39
- "eslint": "^8.45.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.1.6"
48
- },
49
- "dependencies": {
50
- "@nomalism-com/types": "^0.9.495",
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.375",
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.6",
35
+ "@types/node": "^18.16.19",
36
+ "@typescript-eslint/eslint-plugin": "^5.62.0",
37
+ "@typescript-eslint/parser": "^5.62.0",
38
+ "concurrently": "^8.2.0",
39
+ "eslint": "^8.45.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.1.6"
48
+ },
49
+ "dependencies": {
50
+ "@nomalism-com/types": "^0.9.498",
51
+ "axios": "^0.27.2"
52
+ }
53
+ }