@nomalism-com/types 0.9.513 → 0.9.515
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.
- package/dist/modules/document/purchase/interfaces.d.ts +1 -1
- package/dist/modules/stock/savedEmPicking/interfaces.d.ts +2 -1
- package/dist/modules/supply/documentLine/interfaces.d.ts +2 -2
- package/dist/modules/supply/documentLine/route.schema.js +2 -2
- package/dist/shared/entities/stock.d.ts +1 -1
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ export declare const UpperName = "Purchase";
|
|
|
4
4
|
export declare const LowerName: string;
|
|
5
5
|
export type IUnpaidMaterialEntranceLineType = 'Por comprar' | 'Comprado' | 'Devolvido' | 'Prisão';
|
|
6
6
|
export interface IUnpaidMaterialEntranceLineResponse {
|
|
7
|
-
group: string
|
|
7
|
+
group: string;
|
|
8
8
|
document_line_ids: string[];
|
|
9
9
|
product_id: string;
|
|
10
10
|
reference: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as IShared from '../../../shared/interface';
|
|
2
2
|
import { SavedEmPicking } from '../../../shared/entities';
|
|
3
|
+
import { IUnfinishedPickingLineGroupExtended } from '../../document/materialEntrance/interfaces';
|
|
3
4
|
export type Entity = SavedEmPicking;
|
|
4
5
|
export declare const Route = "saved_em_picking";
|
|
5
6
|
export declare const UpperName = "SavedEmPicking";
|
|
@@ -8,7 +9,7 @@ export interface ICreateRequest {
|
|
|
8
9
|
provider_id: string;
|
|
9
10
|
document_header_id: string;
|
|
10
11
|
group_id: string;
|
|
11
|
-
data:
|
|
12
|
+
data: IUnfinishedPickingLineGroupExtended;
|
|
12
13
|
}
|
|
13
14
|
export interface IRepository {
|
|
14
15
|
create(data: ICreateRequest): Promise<Entity>;
|
|
@@ -144,7 +144,7 @@ export interface ICreateRequest extends Omit<IDocumentLineAssoc.ICreateRequest,
|
|
|
144
144
|
provider_tax: number;
|
|
145
145
|
provider_discount: number;
|
|
146
146
|
document_line_folder_id: string | null;
|
|
147
|
-
group
|
|
147
|
+
group?: string;
|
|
148
148
|
data: IData;
|
|
149
149
|
metadata: IMetadata;
|
|
150
150
|
}
|
|
@@ -158,7 +158,7 @@ export interface IUpdateRequest {
|
|
|
158
158
|
provider_tax?: number;
|
|
159
159
|
provider_discount?: number;
|
|
160
160
|
document_line_folder_id?: string | null;
|
|
161
|
-
group?: string
|
|
161
|
+
group?: string;
|
|
162
162
|
sent_to_client?: boolean;
|
|
163
163
|
sent_to_provider?: boolean;
|
|
164
164
|
}
|
|
@@ -30,7 +30,7 @@ var createBodyKeys = {
|
|
|
30
30
|
.default(0)
|
|
31
31
|
.max(99)
|
|
32
32
|
.required(),
|
|
33
|
-
group: joi_1.default.string().
|
|
33
|
+
group: 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
|
-
group: joi_1.default.string().
|
|
56
|
+
group: 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
|
};
|
|
@@ -574,7 +574,7 @@ export type DocumentLine = {
|
|
|
574
574
|
product: IProduct.IEntityExtended | null;
|
|
575
575
|
product_id: string | null;
|
|
576
576
|
plot_id: string | null;
|
|
577
|
-
group: string
|
|
577
|
+
group: string;
|
|
578
578
|
document_line_folder_id: string | null;
|
|
579
579
|
index: number;
|
|
580
580
|
data: IDocumentLine.IData;
|