@nomalism-com/types 0.19.122 → 0.19.124

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,5 +1,4 @@
1
- import { IProductsForSheetsResponse } from "../../stock/product/interface";
2
- import { IProductsForNomaResponse, IProductsSheetsRequest } from "../../../shared/interface";
1
+ import { IProductsForNomaResponse, IProductsSheetsRequest, IProductsForSheetsResponse } from "../../../shared/interface";
3
2
  export declare const Route = "product_google";
4
3
  export declare const UpperName = "ProductGoogle";
5
4
  export declare const LowerName: string;
@@ -3,7 +3,6 @@ import { Attribute, Product, ProductName, UnitOfMeasure, ProductSubCategory, Pro
3
3
  import * as IProductPart from "../productPart/interface";
4
4
  import * as IProductAttribute from "../productAttribute/interface";
5
5
  import * as IDocumentLine from "../../supply/documentLine/interfaces";
6
- import { IProductsForNomaResponse, IProductsSheetsRequest } from "../../../shared/interface";
7
6
  export type Entity = Product;
8
7
  export declare const Route = "product";
9
8
  export declare const UpperName = "Product";
@@ -248,7 +247,6 @@ export interface IFindForMobileResponse {
248
247
  origin_cabide_product: Pick<CabideProduct, "preco_final_1" | "preco_final_2"> | null;
249
248
  promotions: IDocumentLine.IPromotions[];
250
249
  }
251
- export type IProductsForSheetsResponse = Record<string, unknown>[];
252
250
  export interface IRepository {
253
251
  findForMobile(params: IFindForMobileRequest): Promise<IFindForMobileResponse | null>;
254
252
  findByIdFromCabide(selector: IShared.IFindByIdRequest): Promise<IEntityFromCabide | null>;
@@ -268,8 +266,6 @@ export interface IRepository {
268
266
  duplicateProduct(selector: IShared.IFindByIdRequest, body: IDuplicateProductRequest): Promise<string>;
269
267
  googleSheetsFieldsByRef(selector: IFindByReferenceRequest): Promise<string>;
270
268
  updateGoogleSheetsLinesProduct(selector: IShared.IFindByIdRequest[]): Promise<void>;
271
- fromNomaToSheets(params: IProductsSheetsRequest): Promise<IProductsForSheetsResponse[]>;
272
- fromSheetsToNoma(data: IProductsForNomaResponse[]): Promise<void>;
273
269
  }
274
270
  export type IApi = Omit<IRepository, "getLabelData">;
275
271
  export type IController = IShared.IEntityWithUserToken<IRepository>;
@@ -0,0 +1,8 @@
1
+ import { IProductsForNomaResponse, IProductsSheetsRequest, IProductsForSheetsResponse } from "../../../shared/interface";
2
+ export declare const Route = "product_google";
3
+ export declare const UpperName = "ProductGoogle";
4
+ export declare const LowerName: string;
5
+ export interface IController {
6
+ fromNomaToSheets(params: IProductsSheetsRequest): Promise<IProductsForSheetsResponse[]>;
7
+ fromSheetsToNoma(params: IProductsSheetsRequest): Promise<IProductsForNomaResponse[]>;
8
+ }
@@ -0,0 +1,3 @@
1
+ import joi from "joi";
2
+ export declare const getProductsParams: joi.ObjectSchema<any>;
3
+ export declare const productsForNomaBody: joi.ObjectSchema<any>;
@@ -266,3 +266,4 @@ export interface IProductsForNomaResponse {
266
266
  state: string;
267
267
  data: IProductsDataForNoma[];
268
268
  }
269
+ export type IProductsForSheetsResponse = Record<string, unknown>[];
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.19.122",
12
+ "version": "0.19.124",
13
13
  "main": "./dist/index.min.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [