@nomalism-com/types 0.17.0 → 0.17.1

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.
@@ -3,6 +3,12 @@ export declare const Route = "purchase";
3
3
  export declare const UpperName = "Purchase";
4
4
  export declare const LowerName: string;
5
5
  export type IUnpaidMaterialEntranceLineType = 'Por comprar' | 'Comprado' | 'Devolvido' | 'Prisão';
6
+ export interface IUnpaidMaterialEntranceLineDetails {
7
+ quantity: number;
8
+ notes: IShared.IDocumentLineNote[];
9
+ pf_link: string;
10
+ pc_link: string;
11
+ }
6
12
  export interface IUnpaidMaterialEntranceLineResponse {
7
13
  group: string;
8
14
  document_line_ids: string[];
@@ -23,6 +29,7 @@ export interface IUnpaidMaterialEntranceLineResponse {
23
29
  types: IUnpaidMaterialEntranceLineType[];
24
30
  created_by: string;
25
31
  created_at: Date;
32
+ details: IUnpaidMaterialEntranceLineDetails[];
26
33
  }
27
34
  export interface IUnpaidMaterialEntranceItemResponse {
28
35
  name: string;
@@ -32,10 +32,12 @@ var joi_1 = __importDefault(require("joi"));
32
32
  var IShared = __importStar(require("../../../shared/interface"));
33
33
  var messages_1 = require("../../../shared/messages");
34
34
  var documentLineNoteKeys = {
35
- note_type: (_a = joi_1.default
35
+ type: (_a = joi_1.default
36
36
  .string())
37
37
  .valid.apply(_a, IShared.documentLineNoteType).required(),
38
38
  note: joi_1.default.string().required(),
39
+ id: joi_1.default.string().uuid().required(),
40
+ document_line_id: joi_1.default.string().uuid().required(),
39
41
  };
40
42
  var productsCreateQuebraKeys = {
41
43
  id: joi_1.default.string().uuid().required(),
@@ -80,8 +80,10 @@ export declare const IDocumentLineNoteTypeEnum: {
80
80
  };
81
81
  export type IDocumentLineNoteType = (typeof IDocumentLineNoteTypeEnum)[keyof typeof IDocumentLineNoteTypeEnum];
82
82
  export interface IDocumentLineNote {
83
- note_type: IDocumentLineNoteType;
83
+ id: string;
84
84
  note: string;
85
+ type: IDocumentLineNoteType;
86
+ document_line_id: string;
85
87
  }
86
88
  export declare const documentLineNoteType: string[];
87
89
  export type IRouteRequest<T> = Record<keyof WithoutStamps<T>, joi.AnySchema>;
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.17.0",
12
+ "version": "0.17.01",
13
13
  "main": "./dist/index.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [