@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.
- package/dist/modules/integration/productGoogleSheets/interfaces.d.ts +1 -2
- package/dist/modules/stock/product/interface.d.ts +0 -4
- package/dist/modules/stock/productGoogleSheets/interfaces.d.ts +8 -0
- package/dist/modules/stock/productGoogleSheets/route.schema.d.ts +3 -0
- package/dist/shared/interface.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { IProductsForSheetsResponse } from "
|
|
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
|
+
}
|