@nomalism-com/types 0.19.25 → 0.19.27
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.
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { DocumentHeader } from
|
|
2
|
-
import * as IShared from
|
|
3
|
-
import * as IProduct from '../../stock/product/interface';
|
|
1
|
+
import { DocumentHeader } from "../../../shared/entities";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
4
3
|
export declare const Route = "material_entrance";
|
|
5
4
|
export declare const UpperName = "MaterialEntrance";
|
|
6
5
|
export declare const LowerName: string;
|
|
7
6
|
export declare const ICreateMaterialEntranceClientOrderOptionEnum: {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
"Vai desdobrar linha na PC (estado Espera Chegada)": "Vai desdobrar linha na PC (estado Espera Chegada)";
|
|
8
|
+
"Vai desdobrar linha na PC (estado Espera Envio Encomenda)": "Vai desdobrar linha na PC (estado Espera Envio Encomenda)";
|
|
9
|
+
"Vai atualizar quantidade na PC": "Vai atualizar quantidade na PC";
|
|
10
|
+
"Vai desligar a PC da PF": "Vai desligar a PC da PF";
|
|
12
11
|
};
|
|
13
12
|
export type ICreateMaterialEntranceClientOrderOption = (typeof ICreateMaterialEntranceClientOrderOptionEnum)[keyof typeof ICreateMaterialEntranceClientOrderOptionEnum];
|
|
14
13
|
export declare const createMaterialEntranceClientOrderOptions: string[];
|
|
@@ -28,14 +27,14 @@ export interface IEntradaDeMaterialClientOrder extends IGetMaterialEntranceInfoC
|
|
|
28
27
|
printed: string | null;
|
|
29
28
|
}
|
|
30
29
|
export declare const ICreateMaterialEntranceStockWithoutOrderOptionEnum: {
|
|
31
|
-
|
|
30
|
+
"Vai criar nova linha na PF": "Vai criar nova linha na PF";
|
|
32
31
|
};
|
|
33
32
|
export type ICreateMaterialEntranceStockWithoutOrderOption = (typeof ICreateMaterialEntranceStockWithoutOrderOptionEnum)[keyof typeof ICreateMaterialEntranceStockWithoutOrderOptionEnum];
|
|
34
33
|
export declare const createMaterialEntranceStockWithoutOrderOptions: string[];
|
|
35
34
|
export declare const ICreateMaterialEntranceStockOptionEnum: {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
"Vai desdobrar linha na PF (estado Espera Chegada)": "Vai desdobrar linha na PF (estado Espera Chegada)";
|
|
36
|
+
"Vai desdobrar linha na PF (estado Espera Envio Encomenda)": "Vai desdobrar linha na PF (estado Espera Envio Encomenda)";
|
|
37
|
+
"Vai atualizar quantidade na PF": "Vai atualizar quantidade na PF";
|
|
39
38
|
};
|
|
40
39
|
export type ICreateMaterialEntranceStockOption = (typeof ICreateMaterialEntranceStockOptionEnum)[keyof typeof ICreateMaterialEntranceStockOptionEnum];
|
|
41
40
|
export declare const createMaterialEntranceStockOptions: string[];
|
|
@@ -71,13 +70,17 @@ export interface IGetMaterialEntranceInfoResponse {
|
|
|
71
70
|
export interface IUnfinishedPickingLineGroup {
|
|
72
71
|
groupId: string;
|
|
73
72
|
product_id: string;
|
|
74
|
-
|
|
73
|
+
product_reference: string | null;
|
|
74
|
+
product_designation: string | null;
|
|
75
|
+
product_thumbnail: string | null;
|
|
76
|
+
product_provider_ref: string | null;
|
|
77
|
+
product_measure: string | null;
|
|
75
78
|
ordered_quantity: number;
|
|
76
79
|
provider_estimated_delivery_date: string;
|
|
77
80
|
ef_dla_ids: string[];
|
|
78
81
|
}
|
|
79
82
|
export type IUnfinishedPickingLineGroupExtended = IUnfinishedPickingLineGroup & IGetMaterialEntranceInfoResponse;
|
|
80
|
-
export interface IUnfinishedPickingsResponse extends Pick<DocumentHeader,
|
|
83
|
+
export interface IUnfinishedPickingsResponse extends Pick<DocumentHeader, "id" | "owner_id"> {
|
|
81
84
|
identifier: string;
|
|
82
85
|
url: string;
|
|
83
86
|
lineGroups: IUnfinishedPickingLineGroupExtended[];
|
|
@@ -110,7 +113,7 @@ interface IRepository {
|
|
|
110
113
|
undoEntradaMaterial(data: IUndoEntradaDeMaterialRequest): Promise<void>;
|
|
111
114
|
findUnfinishedPickings(selector: IShared.IFindByIdRequest): Promise<IUnfinishedPickingsResponse[]>;
|
|
112
115
|
}
|
|
113
|
-
export type IApi = Omit<IRepository,
|
|
116
|
+
export type IApi = Omit<IRepository, "finalizarEntradaMaterial"> & {
|
|
114
117
|
finalizarEntradaMaterial(data: IFinalizarEntradaDeMaterialRequest): Promise<IFinalizarEntradaDeMaterialResponse>;
|
|
115
118
|
};
|
|
116
119
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -145,7 +145,6 @@ export type IDocumentLineDocuments = Pick<IDocumentHeader.Entity, "pdf_link" | "
|
|
|
145
145
|
created_by: string | null;
|
|
146
146
|
};
|
|
147
147
|
export interface IEntityExtended extends DocumentLine {
|
|
148
|
-
data: IData;
|
|
149
148
|
virtual: IDocumentLineVirtuals | null;
|
|
150
149
|
document_headers: IDocumentLineDocuments[];
|
|
151
150
|
document_line_folder: DocumentLineFolder | null;
|
|
@@ -3,7 +3,7 @@ import { IAttributeDatatype } from "../../modules/stock/attribute/interfaces";
|
|
|
3
3
|
import { ICabideType } from "../../modules/supply/cabide/interface";
|
|
4
4
|
import { IDocumentTypeUserType, IDocumentTypeCodeType } from "../../modules/supply/documentType/interfaces";
|
|
5
5
|
import { IBatchType, IPaymentOrigin } from "../../modules/supply/payment/interface";
|
|
6
|
-
import { IProductType
|
|
6
|
+
import { IProductType } from "../../modules/stock/product/interface";
|
|
7
7
|
import { IImageType } from "../../modules/stock/productImage/interface";
|
|
8
8
|
import { IQueryParameterDatatype } from "../../modules/stock/queryParameter/interfaces";
|
|
9
9
|
import { IData, IDataDocumentoPago, IDataPagamento, IMetadata } from "../../modules/supply/documentLine/interfaces";
|
|
@@ -566,8 +566,18 @@ export type DocumentHeader = {
|
|
|
566
566
|
};
|
|
567
567
|
export type DocumentLine = {
|
|
568
568
|
id: string;
|
|
569
|
-
product: IEntityExtended | null;
|
|
570
569
|
product_id: string | null;
|
|
570
|
+
product_promotions: Pick<ProductPromotionVirtuals, "exclusive_to_location_id" | "exclusive_to_client_id" | "discount">[];
|
|
571
|
+
product_no_discount: boolean;
|
|
572
|
+
product_thumbnail: string | null;
|
|
573
|
+
product_reference: string | null;
|
|
574
|
+
product_dnt_come_anymore: boolean;
|
|
575
|
+
product_designation: string | null;
|
|
576
|
+
product_provider_ref: string | null;
|
|
577
|
+
product_measure: string | null;
|
|
578
|
+
product_type: IProductType | null;
|
|
579
|
+
product_integer_only: boolean;
|
|
580
|
+
product_id_provider: number | null;
|
|
571
581
|
avg_unit_cost: number | null;
|
|
572
582
|
prison: boolean;
|
|
573
583
|
cativado: boolean;
|