@nomalism-com/api 0.8.142 → 0.8.144

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.
@@ -21,6 +21,7 @@ export import IGetActionsResponse = Entity.IGetActionsResponse;
21
21
  export import IBrokerMessage = shared.IBrokerMessage;
22
22
  export import IBrokerTopic = shared.IBrokerTopic;
23
23
  export import IUnpaidDocumentResponse = Entity.IUnpaidDocumentResponse;
24
+ export import IUnfinishedPickingLineGroup = Entity.IUnfinishedPickingLineGroup;
24
25
  export import IUnfinishedPickingsResponse = Entity.IUnfinishedPickingsResponse;
25
26
  export import IUnpaidMaterialEntranceLineType = Entity.IUnpaidMaterialEntranceLineType;
26
27
  export import IUnpaidMaterialEntranceLineResponse = Entity.IUnpaidMaterialEntranceLineResponse;
@@ -11,6 +11,7 @@ export import IDataKeys = Entity.IDataKeys;
11
11
  export import IDataPayload = Entity.IDataPayload;
12
12
  export import IData = Entity.IData;
13
13
  export import IMetadata = Entity.IMetadata;
14
+ export import IFindUnallocatedStockResponse = Entity.IFindUnallocatedStockResponse;
14
15
  export declare const LineStateEnum: {
15
16
  Cancelado: "Cancelado";
16
17
  Fechado: "Fechado";
@@ -24,4 +25,4 @@ export declare const LineStateEnum: {
24
25
  EsperaLevantamento: "EsperaLevantamento";
25
26
  }, IMetadataPlugins: typeof Entity.IMetadataPlugins, LineStateLabel: Record<Entity.IDocumentLineState, string>, lineStates: string[];
26
27
  export declare const route: string;
27
- 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[]>, create: (data: Entity.ICreateRequest[]) => Promise<DocumentLineAssoc.IEntityExtended[]>, update: (selector: shared.IFindByIdRequest, data: Entity.IUpdateRequest) => Promise<DocumentLineAssoc.IEntityExtended | null>, updateIndexes: (document_line_ids: string[]) => Promise<void>, updateMany: (data: Entity.IUpdateManyRequestWithoutStamps) => Promise<DocumentLineAssoc.IEntityExtended[]>, deleteMany: (document_line_ids: string[]) => Promise<void>;
28
+ 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<DocumentLineAssoc.IEntityExtended | null>, updateIndexes: (document_line_ids: string[]) => Promise<void>, updateMany: (data: Entity.IUpdateManyRequestWithoutStamps) => Promise<DocumentLineAssoc.IEntityExtended[]>, 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.updateIndexes = exports.update = exports.create = exports.findByOwnerId = exports.findById = exports.route = exports.lineStates = exports.LineStateLabel = exports.IMetadataPlugins = exports.LineStateEnum = void 0;
42
+ exports.deleteMany = exports.updateMany = exports.updateIndexes = exports.update = exports.create = exports.findUnallocatedStock = exports.findByOwnerId = exports.findById = exports.route = exports.lineStates = exports.LineStateLabel = exports.IMetadataPlugins = exports.LineStateEnum = void 0;
43
43
  var types_1 = require("@nomalism-com/types");
44
44
  var client_1 = __importDefault(require("../../shared/client"));
45
45
  var _1 = require(".");
@@ -68,6 +68,17 @@ var repository = {
68
68
  }
69
69
  });
70
70
  }); },
71
+ findUnallocatedStock: function () { return __awaiter(void 0, void 0, void 0, function () {
72
+ var response;
73
+ return __generator(this, function (_a) {
74
+ switch (_a.label) {
75
+ case 0: return [4, client_1.default.get("".concat(exports.route, "unallocated_stock"))];
76
+ case 1:
77
+ response = _a.sent();
78
+ return [2, response.data];
79
+ }
80
+ });
81
+ }); },
71
82
  create: function (body) { return __awaiter(void 0, void 0, void 0, function () {
72
83
  var response;
73
84
  return __generator(this, function (_a) {
@@ -122,4 +133,4 @@ var repository = {
122
133
  });
123
134
  }); },
124
135
  };
125
- exports.findById = repository.findById, exports.findByOwnerId = repository.findByOwnerId, exports.create = repository.create, exports.update = repository.update, exports.updateIndexes = repository.updateIndexes, exports.updateMany = repository.updateMany, exports.deleteMany = repository.deleteMany;
136
+ 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.updateMany = repository.updateMany, exports.deleteMany = repository.deleteMany;
@@ -8,4 +8,4 @@ export declare const ScheduleTypeEnum: {
8
8
  executeEncomendasVA: "executeEncomendasVA";
9
9
  }, scheduleTypes: string[], ScheduleTypeLabel: Record<Entity.IScheduleType, string>;
10
10
  export declare const route: string;
11
- export declare const runImmediately: (params: Entity.IRunImmediatelyRequest) => Promise<void>;
11
+ export declare const runImmediately: (params: Entity.IRunImmediatelyRequest) => Promise<number>;
@@ -47,12 +47,13 @@ exports.ScheduleTypeEnum = types_1.Schedule.ScheduleTypeEnum, exports.scheduleTy
47
47
  exports.route = "".concat(_1.serviceHostname).concat(_1.serviceAuthPath, "schedule/");
48
48
  var repository = {
49
49
  runImmediately: function (selector) { return __awaiter(void 0, void 0, void 0, function () {
50
+ var response;
50
51
  return __generator(this, function (_a) {
51
52
  switch (_a.label) {
52
53
  case 0: return [4, client_1.default.post("".concat(exports.route).concat(selector.scheduleType))];
53
54
  case 1:
54
- _a.sent();
55
- return [2];
55
+ response = _a.sent();
56
+ return [2, response.data];
56
57
  }
57
58
  });
58
59
  }); },
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.8.142",
12
+ "version": "0.8.144",
13
13
  "main": "dist/index.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [
@@ -33,12 +33,12 @@
33
33
  "devDependencies": {
34
34
  "@types/convert-units": "^2.3.5",
35
35
  "@types/node": "^18.14.6",
36
- "@typescript-eslint/eslint-plugin": "^5.54.0",
37
- "@typescript-eslint/parser": "^5.54.0",
36
+ "@typescript-eslint/eslint-plugin": "^5.54.1",
37
+ "@typescript-eslint/parser": "^5.54.1",
38
38
  "concurrently": "^7.6.0",
39
39
  "eslint": "^8.35.0",
40
40
  "eslint-config-airbnb-base": "^15.0.0",
41
- "eslint-config-prettier": "^8.6.0",
41
+ "eslint-config-prettier": "^8.7.0",
42
42
  "eslint-import-resolver-typescript": "^3.5.3",
43
43
  "eslint-plugin-import": "^2.27.5",
44
44
  "eslint-plugin-prettier": "^4.2.1",
@@ -47,8 +47,8 @@
47
47
  "typescript": "^4.9.5"
48
48
  },
49
49
  "dependencies": {
50
- "@nomalism-com/api": "^0.8.140",
51
- "@nomalism-com/types": "^0.9.159",
50
+ "@nomalism-com/api": "^0.8.143",
51
+ "@nomalism-com/types": "^0.9.165",
52
52
  "axios": "^0.27.2"
53
53
  }
54
54
  }