UNPKG

zca-js

Version:

Unofficial Zalo API for JavaScript

26 lines (25 loc) 909 B
import type { AttachmentSource, ProductCatalogItem } from "../models/index.js"; export type UpdateProductCatalogPayload = { catalogId: string; productId: string; productName: string; price: string; description: string; createTime: number; /** * Upto 5 media files are allowed, will be ignored if product_photos is provided */ files?: AttachmentSource[]; /** * List of product photo URLs, upto 5 * * You can manually get the URL using `uploadProductPhoto` api */ product_photos?: string[]; }; export type UpdateProductCatalogResponse = { item: ProductCatalogItem; version_ls_catalog: number; version_catalog: number; }; export declare const updateProductCatalogFactory: (ctx: import("../context.js").ContextBase, api: import("../apis.js").API) => (payload: UpdateProductCatalogPayload) => Promise<UpdateProductCatalogResponse>;