@nomalism-com/types 0.22.134 → 0.22.137

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.
@@ -127,10 +127,8 @@ export interface IProductSheetBasicSearchResponse {
127
127
  active: boolean;
128
128
  dnt_come_anymore: boolean;
129
129
  }
130
- export interface IProductSheetEntity extends Omit<Entity, "values"> {
130
+ interface IProductSheetEntityBase extends Omit<Entity, "values"> {
131
131
  unit_of_measure_quantity: UnitOfMeasure;
132
- name: string | null;
133
- type_of_inventory: string;
134
132
  vat_tax: VatTax & {
135
133
  vat_tax_zones: VatTaxZone[];
136
134
  };
@@ -139,11 +137,11 @@ export interface IProductSheetEntity extends Omit<Entity, "values"> {
139
137
  cabide_product: (CabideProduct & {
140
138
  cabide: Cabide;
141
139
  }) | null;
142
- compositions: string;
143
- maintenances: string;
144
- attributes: string;
145
140
  }
146
- export interface IProductSheetEntityWithStock extends IProductSheetEntity {
141
+ export interface IProductSheetEntity extends IProductSheetEntityBase {
142
+ base_virtual: ProductBaseVirtuals | null;
143
+ }
144
+ export interface IProductSheetEntityWithStock extends IProductSheetEntityBase {
147
145
  extended_virtual: ProductVirtuals | null;
148
146
  }
149
147
  export interface IBasicSearchRequest extends IShared.IPaginationRequest {
@@ -252,7 +250,7 @@ export interface IRepository {
252
250
  validateByRef(selector: IValidateByReferenceRequest): Promise<IEntityMinified | null>;
253
251
  findSimilarProductsByName(params: IFindSimilarProductsByNameRequest): Promise<IFindSimilarProductsByNameResponse[]>;
254
252
  findByProductType(params: IFindByProductTypeRequest): Promise<IFindByProductTypeResponse[]>;
255
- findByIdWithStock(selector: IShared.IFindByIdRequest): Promise<IProductSheetEntity>;
253
+ findById(selector: IShared.IFindByIdRequest): Promise<IProductSheetEntity>;
256
254
  findByIdWithStock(selector: IShared.IFindByIdRequest): Promise<IProductSheetEntityWithStock>;
257
255
  googleSheetsFieldsByRef(selector: IFindByReferenceRequest): Promise<string>;
258
256
  checkStockByIds(data: ICheckStockByIdsRequest): Promise<ICheckStockByIdsResponse[]>;
@@ -260,3 +258,4 @@ export interface IRepository {
260
258
  updateGoogleSheetsLinesProduct(data: IShared.IFindByIdRequest[]): Promise<void>;
261
259
  deleteOne(params: IShared.IFindByIdRequest): Promise<void>;
262
260
  }
261
+ export {};
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.22.134",
12
+ "version": "0.22.137",
13
13
  "main": "./dist/index.min.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [