@nomalism-com/types 0.16.63 → 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.
@@ -24,7 +24,7 @@ export interface IEntradaDeMaterialClientOrder extends IGetMaterialEntranceInfoC
24
24
  document_line_id: string;
25
25
  quantity: number;
26
26
  option: ICreateMaterialEntranceClientOrderOption | null;
27
- observation: string | null;
27
+ note: string | null;
28
28
  printed: string | null;
29
29
  }
30
30
  export declare const ICreateMaterialEntranceStockWithoutOrderOptionEnum: {
@@ -50,7 +50,7 @@ export interface IEntradaDeMaterialStock extends IGetMaterialEntranceInfoStock {
50
50
  document_line_id: string;
51
51
  quantity: number;
52
52
  option: ICreateMaterialEntranceStockOption | ICreateMaterialEntranceStockWithoutOrderOption | null;
53
- observation: string | null;
53
+ note: string | null;
54
54
  printed: string | null;
55
55
  }
56
56
  export interface IEntradaDeMaterialNC {
@@ -59,7 +59,7 @@ export interface IEntradaDeMaterialNC {
59
59
  document_line_id: string;
60
60
  quantity: number;
61
61
  option: null;
62
- observation: string | null;
62
+ note: string | null;
63
63
  printed: string | null;
64
64
  }
65
65
  export interface IGetMaterialEntranceInfoResponse {
@@ -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(),
@@ -30,7 +30,7 @@ var entradaDeMaterialClientOrderBodyKeys = {
30
30
  .string())
31
31
  .valid.apply(_a, interfaces_1.createMaterialEntranceClientOrderOptions).allow(null)
32
32
  .required(),
33
- observation: joi_1.default.string().allow(null),
33
+ note: joi_1.default.string().allow(null),
34
34
  printed: joi_1.default.string().allow(null),
35
35
  };
36
36
  var entradaDeMaterialClientOrderBody = joi_1.default
@@ -46,7 +46,7 @@ var entradaDeMaterialStockBodyKeys = {
46
46
  .string())
47
47
  .valid.apply(_b, __spreadArray(__spreadArray([], interfaces_1.createMaterialEntranceStockOptions, false), interfaces_1.createMaterialEntranceStockWithoutOrderOptions, false)).allow(null)
48
48
  .required(),
49
- observation: joi_1.default.string().allow(null),
49
+ note: joi_1.default.string().allow(null),
50
50
  printed: joi_1.default.string().allow(null),
51
51
  };
52
52
  var entradaDeMaterialStockBody = joi_1.default
@@ -60,7 +60,7 @@ var entradaDeMaterialNCBodyKeys = {
60
60
  document_line_id: joi_1.default.string().uuid().required(),
61
61
  quantity: joi_1.default.number().positive().allow(0).required(),
62
62
  option: joi_1.default.valid(null).required(),
63
- observation: joi_1.default.string().allow(null),
63
+ note: joi_1.default.string().allow(null),
64
64
  printed: joi_1.default.string().allow(null),
65
65
  };
66
66
  var entradaDeMaterialNCBody = joi_1.default
@@ -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.16.63",
12
+ "version": "0.17.01",
13
13
  "main": "./dist/index.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [