@nomalism-com/types 0.14.3 → 0.14.5

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.
@@ -24,7 +24,6 @@ export type IGetProductGroup = 'cortinado' | 'tapete' | 'estore' | 'estofo' | 'o
24
24
  export type IGetProductType = 'confecção' | 'calha' | 'tecido 1' | 'tecido 2' | 'livre';
25
25
  export type IReferenceType = 'noma' | 'sheets' | undefined;
26
26
  export interface IGetProduct {
27
- id: string;
28
27
  index: number;
29
28
  group: IGetProductGroup;
30
29
  type: IGetProductType;
@@ -26,6 +26,7 @@ export interface IFindDetailedResponseWithoutCurrentDocumentLine extends Omit<IF
26
26
  export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse, ''>;
27
27
  export interface IFindPlotsToReturnResponse {
28
28
  document_line_assoc_id: string;
29
+ df_name: string;
29
30
  pdf_link: string | null;
30
31
  plot_id: string;
31
32
  document_line_id: string;
@@ -45,6 +45,7 @@ export interface IBasicSearchResponse {
45
45
  user_number: number;
46
46
  document_line_count: number;
47
47
  url: string;
48
+ pdf_link: string | null;
48
49
  updated_at: Date;
49
50
  }
50
51
  export interface IFindRequest {
@@ -264,6 +265,8 @@ export interface IFindProviderReturnOptionValue {
264
265
  product_designation: string;
265
266
  quantity: number;
266
267
  unit_of_measure_quantity_notation: string;
268
+ provider_total_without_tax: number;
269
+ provider_total: number;
267
270
  }
268
271
  export interface IFindProviderReturnResponse {
269
272
  id: string;
@@ -321,12 +324,7 @@ export interface IDocumentPdfRequest {
321
324
  export interface IFindByTypeRequest {
322
325
  documentTypeCodes: IDocumentType.IDocumentTypeCodeType[];
323
326
  }
324
- export interface IFindByTypeResponse {
325
- document_header_id: string;
326
- owner_number: number;
327
- emission_date: string;
328
- updated_by: string;
329
- name: string;
327
+ export interface IFindByTypeLine {
330
328
  document_line_id: string;
331
329
  product_id: string;
332
330
  designation: string;
@@ -334,6 +332,17 @@ export interface IFindByTypeResponse {
334
332
  quantity: number;
335
333
  measure: string;
336
334
  thumbnail: string | null;
335
+ total_without_tax: number;
336
+ total: number;
337
+ }
338
+ export interface IFindByTypeResponse {
339
+ document_header_id: string;
340
+ owner_number: number;
341
+ emission_date: string;
342
+ updated_by: string;
343
+ name: string;
344
+ pdf_link: string | null;
345
+ lines: IFindByTypeLine[];
337
346
  }
338
347
  export interface IRepository {
339
348
  findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.14.3",
12
+ "version": "0.14.5",
13
13
  "main": "./dist/index.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/convert-units": "^2.3.9",
41
- "@types/node": "^20.10.0",
41
+ "@types/node": "^20.10.1",
42
42
  "@typescript-eslint/eslint-plugin": "^6.13.1",
43
43
  "@typescript-eslint/parser": "^6.13.1",
44
44
  "concurrently": "^8.2.2",
@@ -49,7 +49,7 @@
49
49
  "eslint-plugin-import": "^2.29.0",
50
50
  "eslint-plugin-prettier": "^5.0.1",
51
51
  "prettier": "^3.1.0",
52
- "tsx": "^4.6.0",
52
+ "tsx": "^4.6.1",
53
53
  "typescript": "^5.3.2"
54
54
  }
55
55
  }