@nomalism-com/types 1.3.65 → 1.3.66
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.
|
@@ -3,7 +3,13 @@ import * as IShared from "../../../shared/interface";
|
|
|
3
3
|
export type Entity = ScheduledPrintJob;
|
|
4
4
|
export declare const Route = "schedule_print_job";
|
|
5
5
|
export interface ICreateSchedulePrintJobRequest {
|
|
6
|
-
printer_id
|
|
6
|
+
/** Exatamente um de `printer_id` ou `printer_name`. */
|
|
7
|
+
printer_id?: string | undefined;
|
|
8
|
+
/**
|
|
9
|
+
* Nome (`Printer.name`) da impressora; o printservice escolhe o PC ligado
|
|
10
|
+
* que a tem disponível.
|
|
11
|
+
*/
|
|
12
|
+
printer_name?: string | undefined;
|
|
7
13
|
copies: number;
|
|
8
14
|
sticker?: boolean;
|
|
9
15
|
external_document_id?: string | undefined;
|
|
@@ -5,6 +5,10 @@ export interface IFindByProviderResponse extends Omit<StockMovement, "product_id
|
|
|
5
5
|
reference: string;
|
|
6
6
|
}
|
|
7
7
|
export type IFindByOwnerIdResponse = Omit<StockMovement, "document_line_id" | "product_id">;
|
|
8
|
+
export interface IFindMonthlyConsumptionResponse {
|
|
9
|
+
month: string;
|
|
10
|
+
quantity: number;
|
|
11
|
+
}
|
|
8
12
|
export declare const ExportFormatEnum: {
|
|
9
13
|
csv: "csv";
|
|
10
14
|
xml: "xml";
|
|
@@ -34,6 +38,7 @@ export interface IRepository {
|
|
|
34
38
|
findByProvider(selector: IShared.IFindByIdNumberRequest): Promise<IFindByProviderResponse[]>;
|
|
35
39
|
findByOwnerId(selector: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
36
40
|
exportCsv(selector: IExportRequest): Promise<IExportCsvResponse[]>;
|
|
41
|
+
findMonthlyConsumption(selector: IShared.IFindByOwnerIdRequest): Promise<IFindMonthlyConsumptionResponse[]>;
|
|
37
42
|
}
|
|
38
43
|
export interface IController extends IRepository {
|
|
39
44
|
findByOwnerId(selector: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nomalism-com/types",
|
|
3
3
|
"description": "A nomalism package with all necessary types and validations for developing APIs",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.66",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|