@nomalism-com/types 0.22.61 → 0.22.63
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,4 +1,5 @@
|
|
|
1
1
|
import { ProductImage, UnitOfMeasure, VatTax, VatTaxZone } from "../../../shared/entities";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
2
3
|
import { IProductPromotionVirtuals, IProductVirtuals } from "../product/interface";
|
|
3
4
|
import { ProductSheet } from "../../../shared/entities";
|
|
4
5
|
export declare const Route = "products_sheets";
|
|
@@ -11,10 +12,11 @@ export type Entity = ProductSheet;
|
|
|
11
12
|
export type IProductsForSheetsResponse = Record<string, any>;
|
|
12
13
|
export type IProductFromSheetsValues = Record<string, any>;
|
|
13
14
|
export type SheetsCreateOrUpdate = "create" | "update";
|
|
15
|
+
export type IProductState = "Activa" | "Inactiva" | "Vem Temporariamente";
|
|
14
16
|
export interface IProductsForNomaResponse {
|
|
15
17
|
reference: string;
|
|
16
18
|
type: string;
|
|
17
|
-
state:
|
|
19
|
+
state: IProductState;
|
|
18
20
|
values: IProductsForSheetsResponse;
|
|
19
21
|
}
|
|
20
22
|
export interface IProduct extends Omit<IProductsForNomaResponse, "values"> {
|
|
@@ -52,6 +54,27 @@ export interface IProductSheetsWithIndex {
|
|
|
52
54
|
export interface IFindProductSheetByReference {
|
|
53
55
|
reference: string;
|
|
54
56
|
}
|
|
57
|
+
export interface IProductSheetBasicSearchRequest extends IShared.IPaginationRequest {
|
|
58
|
+
search_value: string | null;
|
|
59
|
+
active?: boolean;
|
|
60
|
+
inactive?: boolean;
|
|
61
|
+
dnt_come_anymore?: boolean;
|
|
62
|
+
type_stock: boolean;
|
|
63
|
+
type_encomenda: boolean;
|
|
64
|
+
type_servico: boolean;
|
|
65
|
+
}
|
|
66
|
+
export interface IProductSheetBasicSearchResponse {
|
|
67
|
+
id: string;
|
|
68
|
+
reference: string;
|
|
69
|
+
designation: string;
|
|
70
|
+
price: number;
|
|
71
|
+
promotion_price: number | null;
|
|
72
|
+
thumbnail?: string | null;
|
|
73
|
+
stock: number;
|
|
74
|
+
updated_at: Date;
|
|
75
|
+
active: boolean;
|
|
76
|
+
dnt_come_anymore: boolean;
|
|
77
|
+
}
|
|
55
78
|
export interface IRepository {
|
|
56
79
|
findByReferenceOnSheets(params: IFindProductSheetByReference): Promise<IProductSheetsWithIndex>;
|
|
57
80
|
findByReferenceOnNoma(params: IFindProductSheetByReference): Promise<IProduct | null>;
|