@nomalism-com/types 0.10.21 → 0.10.23
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.
|
@@ -20,6 +20,7 @@ export interface IFindOneResponse extends Entity {
|
|
|
20
20
|
start_virtual: StartDocumentHeaderVirtuals | null;
|
|
21
21
|
virtual: DocumentHeaderVirtuals | null;
|
|
22
22
|
}
|
|
23
|
+
export type IFindStartResponse = Omit<IFindOneResponse, 'virtual'>;
|
|
23
24
|
export interface IFindByDocumentLineStateRequest {
|
|
24
25
|
document_type_id: number;
|
|
25
26
|
document_line_state: string;
|
|
@@ -310,10 +311,12 @@ export interface IDocumentPdfRequest {
|
|
|
310
311
|
hideTaxes?: boolean;
|
|
311
312
|
hidePrices?: boolean;
|
|
312
313
|
hidePayments?: boolean;
|
|
314
|
+
hideDiscounts?: boolean;
|
|
313
315
|
}
|
|
314
316
|
export interface IRepository {
|
|
315
317
|
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
316
318
|
findOne(selector: IShared.IFindByIdRequest): Promise<IFindOneResponse | null>;
|
|
319
|
+
findStart(selector: IShared.IFindByIdRequest): Promise<IFindStartResponse | null>;
|
|
317
320
|
findByDocumentLineState(data: IFindByDocumentLineStateRequest): Promise<IFindByDocumentLineStateResponse[]>;
|
|
318
321
|
findByBasicSearch(data: IBasicSearchRequest): Promise<IShared.IPaginationResponse<IBasicSearchResponse>>;
|
|
319
322
|
find(params: IFindRequest): Promise<IFindResponse[]>;
|
|
@@ -403,6 +403,7 @@ var documentPdfQueryKeys = {
|
|
|
403
403
|
hideTaxes: joi_1.default.boolean().optional(),
|
|
404
404
|
hidePrices: joi_1.default.boolean().optional(),
|
|
405
405
|
hidePayments: joi_1.default.boolean().optional(),
|
|
406
|
+
hideDiscounts: joi_1.default.boolean().optional(),
|
|
406
407
|
};
|
|
407
408
|
exports.documentPdfQuery = joi_1.default
|
|
408
409
|
.object()
|