@nomalism-com/types 0.9.525 → 0.9.527
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.
|
@@ -18,9 +18,15 @@ export declare enum IMetadataPlugins {
|
|
|
18
18
|
estofo = "estofo",
|
|
19
19
|
estore = "estore",
|
|
20
20
|
tapete = "tapete",
|
|
21
|
-
TDC = "TDC"
|
|
21
|
+
TDC = "TDC",
|
|
22
|
+
Acerto = "Acerto"
|
|
22
23
|
}
|
|
23
24
|
export type IMetadata = {
|
|
25
|
+
[IMetadataPlugins.Acerto]?: {
|
|
26
|
+
modelo: {
|
|
27
|
+
label: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
24
30
|
[IMetadataPlugins.TDC]?: {
|
|
25
31
|
modelo: {
|
|
26
32
|
label: string;
|
|
@@ -146,7 +152,7 @@ export interface ICreateRequest extends Omit<IDocumentLineAssoc.ICreateRequest,
|
|
|
146
152
|
provider_tax: number;
|
|
147
153
|
provider_discount: number;
|
|
148
154
|
document_line_folder_id: string | null;
|
|
149
|
-
document_line_group_id?: string
|
|
155
|
+
document_line_group_id?: string;
|
|
150
156
|
data: IData;
|
|
151
157
|
metadata: IMetadata;
|
|
152
158
|
}
|
|
@@ -160,7 +166,7 @@ export interface IUpdateRequest {
|
|
|
160
166
|
provider_tax?: number;
|
|
161
167
|
provider_discount?: number;
|
|
162
168
|
document_line_folder_id?: string | null;
|
|
163
|
-
document_line_group_id?: string
|
|
169
|
+
document_line_group_id?: string;
|
|
164
170
|
sent_to_client?: boolean;
|
|
165
171
|
sent_to_provider?: boolean;
|
|
166
172
|
}
|
|
@@ -30,7 +30,7 @@ var createBodyKeys = {
|
|
|
30
30
|
.default(0)
|
|
31
31
|
.max(99)
|
|
32
32
|
.required(),
|
|
33
|
-
document_line_group_id: joi_1.default.string().
|
|
33
|
+
document_line_group_id: joi_1.default.string().optional(),
|
|
34
34
|
data: joi_1.default
|
|
35
35
|
.object()
|
|
36
36
|
.pattern(joi_1.default.string(), joi_1.default.object().keys({
|
|
@@ -53,7 +53,7 @@ var updateBodyKeys = {
|
|
|
53
53
|
preco_custo: joi_1.default.number().positive().allow(0).optional(),
|
|
54
54
|
provider_tax: joi_1.default.number().positive().allow(0).optional(),
|
|
55
55
|
provider_discount: joi_1.default.number().positive().allow(0).max(99).optional(),
|
|
56
|
-
document_line_group_id: joi_1.default.string().
|
|
56
|
+
document_line_group_id: joi_1.default.string().optional(),
|
|
57
57
|
sent_to_client: joi_1.default.boolean().optional(),
|
|
58
58
|
sent_to_provider: joi_1.default.boolean().optional(),
|
|
59
59
|
};
|
|
@@ -575,7 +575,7 @@ export type DocumentLine = {
|
|
|
575
575
|
product: IProduct.IEntityExtended | null;
|
|
576
576
|
product_id: string | null;
|
|
577
577
|
plot_id: string | null;
|
|
578
|
-
document_line_group_id: string
|
|
578
|
+
document_line_group_id: string;
|
|
579
579
|
document_line_folder_id: string | null;
|
|
580
580
|
index: number;
|
|
581
581
|
data: IDocumentLine.IData;
|