@nomalism-com/types 0.19.114 → 0.19.116
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,10 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IProductsForSheetsRequest, IProductsForSheetsResponse } from "shared/interface";
|
|
2
2
|
export declare const Route = "product_google";
|
|
3
3
|
export declare const UpperName = "ProductGoogle";
|
|
4
4
|
export declare const LowerName: string;
|
|
5
|
-
export type IGoogleProductsForSheetsResponse = Product.IProductsForSheetsResponse;
|
|
6
|
-
export type IGoogleProductsForSheetsRequest = Product.IProductsForSheetsRequest;
|
|
7
5
|
export interface IController {
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
sendProductsListToSheets(params: IProductsForSheetsRequest): Promise<IProductsForSheetsResponse[]>;
|
|
7
|
+
updateFromProductsSheets(params: IProductsForSheetsResponse): Promise<void>;
|
|
10
8
|
}
|
|
@@ -3,6 +3,7 @@ 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 { IProductsForSheetsRequest, IProductsForSheetsResponse } from "../../../shared/interface";
|
|
6
7
|
export type Entity = Product;
|
|
7
8
|
export declare const Route = "product";
|
|
8
9
|
export declare const UpperName = "Product";
|
|
@@ -247,26 +248,6 @@ export interface IFindForMobileResponse {
|
|
|
247
248
|
origin_cabide_product: Pick<CabideProduct, "preco_final_1" | "preco_final_2"> | null;
|
|
248
249
|
promotions: IDocumentLine.IPromotions[];
|
|
249
250
|
}
|
|
250
|
-
export interface IProductsForSheetsRequest {
|
|
251
|
-
products_google_sheet_id: string;
|
|
252
|
-
}
|
|
253
|
-
export interface IProductsForSheetsResponse {
|
|
254
|
-
state: string;
|
|
255
|
-
reference: string;
|
|
256
|
-
name: string;
|
|
257
|
-
description: string;
|
|
258
|
-
provider: number;
|
|
259
|
-
provider_reference: string;
|
|
260
|
-
price_cost: number;
|
|
261
|
-
margin: number;
|
|
262
|
-
price_sale: number;
|
|
263
|
-
vat_tax_value: number;
|
|
264
|
-
price_sale_with_tax: number;
|
|
265
|
-
maximum_discount: number;
|
|
266
|
-
composition: string;
|
|
267
|
-
maintenance: string;
|
|
268
|
-
characteristics: string;
|
|
269
|
-
}
|
|
270
251
|
export interface IRepository {
|
|
271
252
|
findForMobile(params: IFindForMobileRequest): Promise<IFindForMobileResponse | null>;
|
|
272
253
|
findByIdFromCabide(selector: IShared.IFindByIdRequest): Promise<IEntityFromCabide | null>;
|
|
@@ -252,3 +252,23 @@ type Impossible<K extends keyof any> = {
|
|
|
252
252
|
};
|
|
253
253
|
export type NoExtraProperties<T, U extends T = T> = U & Impossible<Exclude<keyof U, keyof T>>;
|
|
254
254
|
export type ExactPromise<T> = Promise<NoExtraProperties<T>>;
|
|
255
|
+
export interface IProductsForSheetsRequest {
|
|
256
|
+
products_google_sheet_id: string;
|
|
257
|
+
}
|
|
258
|
+
export interface IProductsForSheetsResponse {
|
|
259
|
+
state: string;
|
|
260
|
+
reference: string;
|
|
261
|
+
name: string;
|
|
262
|
+
description: string;
|
|
263
|
+
provider: number;
|
|
264
|
+
provider_reference: string;
|
|
265
|
+
price_cost: number;
|
|
266
|
+
margin: number;
|
|
267
|
+
price_sale: number;
|
|
268
|
+
vat_tax_value: number;
|
|
269
|
+
price_sale_with_tax: number;
|
|
270
|
+
maximum_discount: number;
|
|
271
|
+
composition: string;
|
|
272
|
+
maintenance: string;
|
|
273
|
+
characteristics: string;
|
|
274
|
+
}
|