@nomalism-com/types 0.9.537 → 0.9.539

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.
@@ -108,11 +108,11 @@ export interface IUnfoldLineRequest {
108
108
  export interface IUnfoldLineResponse {
109
109
  original_line: {
110
110
  id: string;
111
- quantity: string;
111
+ quantity: number;
112
112
  };
113
113
  unfolded_line: {
114
114
  id: string;
115
- quantity: string;
115
+ quantity: number;
116
116
  };
117
117
  }
118
118
  export declare const checkPlotInPrisonOptions: readonly ["Por confirmar", "Devolver a stock", "Quebrar", "Devolver a fornecedor"];
@@ -140,6 +140,7 @@ export interface ICreateFromHeaderRequest {
140
140
  maturity_date?: ICreateFromHeaderMaturityDate;
141
141
  return_reason?: string;
142
142
  provider_ref?: string;
143
+ global_discount?: number;
143
144
  }
144
145
  export interface IUpdateRequest {
145
146
  external_data?: unknown;
@@ -268,17 +269,8 @@ export interface ICreateProviderCreditNoteFromReturnRequest {
268
269
  external_document_name: string;
269
270
  document_headers: ICreateProviderCreditNoteFromReturnDocumentHeaders[];
270
271
  }
271
- export interface IDocumentTransaction {
272
- document_header_id: string;
273
- document_number: number;
274
- dlas: {
275
- id: string;
276
- document_line_id: string;
277
- }[];
278
- }
279
272
  export interface ICreateFromHeaderResponse {
280
273
  brokerMessages: IShared.IBrokerMessage<IShared.IBrokerTopic>[];
281
- documents: IDocumentTransaction[];
282
274
  tasks: IShared.ITaskCluster[];
283
275
  }
284
276
  export interface ICreateProductionOrderRequest {
@@ -122,6 +122,7 @@ var createFromHeaderBodyKeys = {
122
122
  maturity_date: joi_1.default.object().keys(createFromHeaderMaturityDate).optional(),
123
123
  return_reason: joi_1.default.string().optional(),
124
124
  provider_ref: joi_1.default.string().optional(),
125
+ global_discount: joi_1.default.number().min(0).max(100).optional(),
125
126
  };
126
127
  exports.createFromHeaderBody = joi_1.default
127
128
  .object()
package/package.json CHANGED
@@ -1,55 +1,55 @@
1
- {
2
- "name": "@nomalism-com/types",
3
- "description": "A nomalism package with all necessary types and validations for developing APIs",
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.9.537",
13
- "main": "./dist/index.js",
14
- "types": "./dist/index.d.ts",
15
- "files": [
16
- "dist"
17
- ],
18
- "browserslist": "> 0.25%, not dead",
19
- "license": "UNLICENSED",
20
- "homepage": "https://gitlab.com/nomalism-develop/types",
21
- "bugs": {
22
- "url": "https://gitlab.com/nomalism-develop/types/issues"
23
- },
24
- "repository": {
25
- "type": "git",
26
- "url": "git+https://gitlab.com/nomalism-develop/types.git"
27
- },
28
- "scripts": {
29
- "lint": "eslint src --ext .ts,.js --ignore-pattern node_modules --ignore-pattern dist --cache",
30
- "build": "rm -rf dist && tsc --project tsconfig.json",
31
- "start": "tsx --tsconfig ./tsconfig.json src/index.ts",
32
- "prepack": "concurrently --success all \"npm run lint\" \"npm run build\" \"npm run start\""
33
- },
34
- "dependencies": {
35
- "convert-units": "^2.3.4",
36
- "joi": "^17.9.2",
37
- "joi-to-swagger": "^6.2.0"
38
- },
39
- "devDependencies": {
40
- "@types/convert-units": "^2.3.6",
41
- "@types/node": "^18.16.19",
42
- "@typescript-eslint/eslint-plugin": "^5.62.0",
43
- "@typescript-eslint/parser": "^5.62.0",
44
- "concurrently": "^8.2.0",
45
- "eslint": "^8.44.0",
46
- "eslint-config-airbnb-base": "^15.0.0",
47
- "eslint-config-prettier": "^8.8.0",
48
- "eslint-import-resolver-typescript": "^3.5.5",
49
- "eslint-plugin-import": "^2.27.5",
50
- "eslint-plugin-prettier": "^4.2.1",
51
- "prettier": "^2.8.8",
52
- "tsx": "^3.12.7",
53
- "typescript": "^5.1.6"
54
- }
55
- }
1
+ {
2
+ "name": "@nomalism-com/types",
3
+ "description": "A nomalism package with all necessary types and validations for developing APIs",
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.9.539",
13
+ "main": "./dist/index.js",
14
+ "types": "./dist/index.d.ts",
15
+ "files": [
16
+ "dist"
17
+ ],
18
+ "browserslist": "> 0.25%, not dead",
19
+ "license": "UNLICENSED",
20
+ "homepage": "https://gitlab.com/nomalism-develop/types",
21
+ "bugs": {
22
+ "url": "https://gitlab.com/nomalism-develop/types/issues"
23
+ },
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "git+https://gitlab.com/nomalism-develop/types.git"
27
+ },
28
+ "scripts": {
29
+ "lint": "eslint src --ext .ts,.js --ignore-pattern node_modules --ignore-pattern dist --cache",
30
+ "build": "rm -rf dist && tsc --project tsconfig.json",
31
+ "start": "tsx --tsconfig ./tsconfig.json src/index.ts",
32
+ "prepack": "concurrently --success all \"npm run lint\" \"npm run build\" \"npm run start\""
33
+ },
34
+ "dependencies": {
35
+ "convert-units": "^2.3.4",
36
+ "joi": "^17.9.2",
37
+ "joi-to-swagger": "^6.2.0"
38
+ },
39
+ "devDependencies": {
40
+ "@types/convert-units": "^2.3.6",
41
+ "@types/node": "^18.17.1",
42
+ "@typescript-eslint/eslint-plugin": "^5.62.0",
43
+ "@typescript-eslint/parser": "^5.62.0",
44
+ "concurrently": "^8.2.0",
45
+ "eslint": "^8.45.0",
46
+ "eslint-config-airbnb-base": "^15.0.0",
47
+ "eslint-config-prettier": "^8.9.0",
48
+ "eslint-import-resolver-typescript": "^3.5.5",
49
+ "eslint-plugin-import": "^2.28.0",
50
+ "eslint-plugin-prettier": "^4.2.1",
51
+ "prettier": "^2.8.8",
52
+ "tsx": "^3.12.7",
53
+ "typescript": "^5.1.6"
54
+ }
55
+ }