@nomalism-com/types 0.19.139 → 0.19.141

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.
@@ -0,0 +1,25 @@
1
+ export interface IProductsSheetsRequest {
2
+ products_google_sheet_id: string;
3
+ }
4
+ export type IProductsForSheetsResponse = Record<string, any>;
5
+ export type IProductFromSheets = Record<string, any>;
6
+ export type SheetsCreateOrUpdate = "create" | "update";
7
+ export interface IProductsForNomaResponse {
8
+ reference: string;
9
+ type: string;
10
+ state: string;
11
+ values: IProductsForSheetsResponse;
12
+ }
13
+ export interface IProduct extends Omit<IProductsForNomaResponse, "values"> {
14
+ id: string;
15
+ created_at: Date;
16
+ updated_at: Date;
17
+ values: IProductFromSheets;
18
+ }
19
+ export interface IProductSheetsWithIndex {
20
+ index: number;
21
+ values: IProductFromSheets;
22
+ }
23
+ export interface IRepository {
24
+ createOrUpdateNomaFromGoogleSheets(params: IProductSheetsWithIndex): Promise<void>;
25
+ }
@@ -0,0 +1,2 @@
1
+ import joi from "joi";
2
+ export declare const createBody: joi.ObjectSchema<any>;
@@ -246,6 +246,7 @@ export type IBrokerTopicPayload = {
246
246
  document_name: string;
247
247
  chat_id: string;
248
248
  message: string;
249
+ created_by: string;
249
250
  };
250
251
  };
251
252
  export interface IBrokerMessage<T extends IBrokerTopic = IBrokerTopic> {
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.19.139",
12
+ "version": "0.19.141",
13
13
  "main": "./dist/index.min.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [
@@ -43,7 +43,7 @@
43
43
  "@typescript-eslint/eslint-plugin": "^7.10.0",
44
44
  "@typescript-eslint/parser": "^7.10.0",
45
45
  "eslint": "^8.57.0",
46
- "rollup": "^4.17.2",
46
+ "rollup": "^4.18.0",
47
47
  "tslib": "^2.6.2"
48
48
  }
49
49
  }