@nomalism-com/types 0.24.8 → 0.24.9

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.
@@ -64,10 +64,8 @@ export interface ICreateRequest {
64
64
  export interface IFindProductSheetByReference {
65
65
  selector: string;
66
66
  }
67
- export interface IProductSheetEntityWithStock extends Omit<Entity, "values"> {
67
+ interface IProductSheetEntityBase extends Omit<Entity, "values"> {
68
68
  unit_of_measure_quantity: UnitOfMeasure;
69
- name: string | null;
70
- type_of_inventory: string;
71
69
  vat_tax: VatTax & {
72
70
  vat_tax_zones: VatTaxZone[];
73
71
  };
@@ -76,9 +74,11 @@ export interface IProductSheetEntityWithStock extends Omit<Entity, "values"> {
76
74
  cabide_product: (CabideProduct & {
77
75
  cabide: Cabide;
78
76
  }) | null;
79
- compositions: string;
80
- maintenances: string;
81
- attributes: string;
77
+ }
78
+ export interface IProductSheetEntity extends IProductSheetEntityBase {
79
+ base_virtual: ProductBaseVirtuals | null;
80
+ }
81
+ export interface IProductSheetEntityWithStock extends IProductSheetEntityBase {
82
82
  extended_virtual: ProductVirtuals | null;
83
83
  }
84
84
  export interface IBasicSearchRequest extends IShared.IPaginationRequest {
@@ -226,6 +226,7 @@ export interface IRepository {
226
226
  validateByRef(selector: IValidateByReferenceRequest): Promise<IEntityMinified | null>;
227
227
  findSimilarProductsByName(params: IFindSimilarProductsByNameRequest): Promise<IFindSimilarProductsByNameResponse[]>;
228
228
  findByProductType(params: IFindByProductTypeRequest): Promise<IFindByProductTypeResponse[]>;
229
+ findById(selector: IShared.IFindByIdRequest): Promise<IProductSheetEntity>;
229
230
  findByIdWithStock(selector: IShared.IFindByIdRequest): Promise<IProductSheetEntityWithStock>;
230
231
  googleSheetsFieldsByRef(selector: IFindByReferenceRequest): Promise<string>;
231
232
  findRowPositionOnSheetsWithColumns(params: IFindProductSheetByReference): Promise<string | null>;
@@ -236,3 +237,4 @@ export interface IRepository {
236
237
  fromSheets(data: ProductSheetActionData): Promise<string>;
237
238
  }
238
239
  export type IController = IShared.IEntityWithUserToken<IRepository>;
240
+ export {};
@@ -249,6 +249,7 @@ export type IBrokerTopicPayload = {
249
249
  document_header_id: string;
250
250
  document_name: string;
251
251
  chat_id: string;
252
+ email_subject?: string;
252
253
  message: string;
253
254
  created_by: string;
254
255
  };
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.24.8",
12
+ "version": "0.24.9",
13
13
  "main": "./dist/index.min.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [