@nomalism-com/types 0.22.133 → 0.22.135

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,7 +127,7 @@ export interface IProductSheetBasicSearchResponse {
127
127
  active: boolean;
128
128
  dnt_come_anymore: boolean;
129
129
  }
130
- export interface IProductSheetEntityWithStock extends Omit<Entity, "values"> {
130
+ export interface IProductSheetEntity extends Omit<Entity, "values"> {
131
131
  unit_of_measure_quantity: UnitOfMeasure;
132
132
  name: string | null;
133
133
  type_of_inventory: string;
@@ -142,6 +142,8 @@ export interface IProductSheetEntityWithStock extends Omit<Entity, "values"> {
142
142
  compositions: string;
143
143
  maintenances: string;
144
144
  attributes: string;
145
+ }
146
+ export interface IProductSheetEntityWithStock extends IProductSheetEntity {
145
147
  extended_virtual: ProductVirtuals | null;
146
148
  }
147
149
  export interface IBasicSearchRequest extends IShared.IPaginationRequest {
@@ -250,6 +252,8 @@ export interface IRepository {
250
252
  validateByRef(selector: IValidateByReferenceRequest): Promise<IEntityMinified | null>;
251
253
  findSimilarProductsByName(params: IFindSimilarProductsByNameRequest): Promise<IFindSimilarProductsByNameResponse[]>;
252
254
  findByProductType(params: IFindByProductTypeRequest): Promise<IFindByProductTypeResponse[]>;
255
+ findById(selector: IShared.IFindByIdRequest): Promise<IProductSheetEntity>;
256
+ findByIdWithStock(selector: IShared.IFindByIdRequest): Promise<IProductSheetEntityWithStock>;
253
257
  googleSheetsFieldsByRef(selector: IFindByReferenceRequest): Promise<string>;
254
258
  checkStockByIds(data: ICheckStockByIdsRequest): Promise<ICheckStockByIdsResponse[]>;
255
259
  create(data: ICreateRequest): Promise<string>;
@@ -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.22.133",
12
+ "version": "0.22.135",
13
13
  "main": "./dist/index.min.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [
@@ -42,8 +42,8 @@
42
42
  "@types/node": "^20.16.5",
43
43
  "@typescript-eslint/eslint-plugin": "^7.18.0",
44
44
  "@typescript-eslint/parser": "^7.18.0",
45
- "eslint": "^8.57.0",
46
- "rollup": "^4.21.2",
45
+ "eslint": "^8.57.1",
46
+ "rollup": "^4.21.3",
47
47
  "tslib": "^2.7.0"
48
48
  }
49
49
  }