import { TiktokConfig } from '../dto/request/config.request'; import { TiktokResponseCommon } from '../dto/response/config.response'; import { TiktokActivateProductInput, TiktokBrandFilterInput, TiktokBrandInput, TiktokCheckProductListingBody, TiktokCreateGlobalProductInput, TiktokCreateImageTranslationTasksInput, TiktokCreateManufacturerInput, TiktokCreateProductInput, TiktokCreateResponsiblePersonInput, TiktokDeactivateProductInput, TiktokDeleteGlobalProductsInput, TiktokDeleteProductInput, TiktokEditGlobalProductInput, TiktokEditPartialManufacturerParam, TiktokEditProductParams, TiktokEditResponsiblePersonInput, TiktokGetCategoriesQuery, TiktokGetCategoryAttributes, TiktokGetCategoryRulesQuery, TiktokGetGlobalAttributesQuery, TiktokGetGlobalCategoriesQuery, TiktokGetGlobalCategoryRulesParams, TiktokGetImageTranslationTasksQuery, TiktokGetProductParams, TiktokGetRecommendedProductTitleAndDescriptionQuery, TiktokOptimizedImagesInput, TiktokPartialEditProductParams, TiktokPublishGlobalProductInput, TiktokRecommendCategoryByProductParams, TiktokRecommendGlobalCategoryInput, TiktokRecoverProductBody, TiktokSearchGlobalProductsInput, TiktokSearchInventoryBody, TiktokSearchManufacturerQuery, TiktokSearchProductInput, TiktokSearchResponsiblePersonsParam, TiktokSearchSizeChartsInput, TiktokUpdateGlobalInventoryInput, TiktokUpdateProductInventoryInput, TiktokUpdateProductPriceInput, TiktokUploadImageParams, TiktokUploadProductFileParams } from '../dto/request/product-v3.request'; import { TiktokBrandCreateResponse, TiktokCategoriesResponse, TiktokCheckListingPrerequisitesResponse, TiktokCheckProductListingResponse, TiktokCreateGlobalProductResponse, TiktokCreateImageTranslationTasksResponse, TiktokCreateManufacturerResponse, TiktokCreateProductResponse, TiktokCreateResponsiblePersonResponse, TiktokDeleteGlobalProductsResponse, TiktokEditGlobalProductResponse, TiktokEditProductResponse, TiktokGetAttributesResponse, TiktokGetBrandsResponse, TiktokGetCategoryRulesResponse, TiktokGetGlobalAttributeResponse, TiktokGetGlobalCategoriesResponse, TiktokGetGlobalCategoryRulesResponse, TiktokGetGlobalProductResponse, TiktokGetImageTranslationTasksResponse, TiktokGetManufacturersResponse, TiktokGetProductResponse, TiktokGetProductSEOWordsResponse, TiktokGetRecommendedProductTitleAndDescriptionResponse, TiktokOptimizedImagesResponse, TiktokPartialEditProductResponse, TiktokProductDiagnosisResponse, TiktokPublishGlobalProductResponse, TiktokRecommendCategoryByProductResponse, TiktokRecommendGlobalCategoryResponse, TiktokSearchGlobalProductsResponse, TiktokSearchInventoryResponse, TiktokSearchProductsResponse, TiktokSearchResponsiblePersonsResponse, TiktokSearchSizeChartResponse, TiktokUpdateGlobalInventoryResponse, TiktokUpdateProductInventoryResponse, TiktokUpdateProductPriceResponse, TiktokUploadImageResponse, TiktokUploadProductFileResponse } from '../dto/response/product-v3.response'; /** * Check if the seller has fulfilled all necessary prerequisites to list products. * This may include return address setup or brand approval. */ export declare function getProductPrerequisites(config: TiktokConfig): Promise>; /** * Retrieve available product categories. * Useful when the seller needs to browse or filter categories for listing. */ export declare function getCategories(query: TiktokGetCategoriesQuery, config: TiktokConfig): Promise>; /** * Get recommended category for a product based on title, description, or image. */ export declare function recommendCategory(body: TiktokRecommendCategoryByProductParams, config: TiktokConfig): Promise>; /** * Get category-specific rules (e.g., mandatory fields, validations) for listing a product. */ export declare function getCategoryRules(params: TiktokGetCategoryRulesQuery, config: TiktokConfig): Promise>; /** * Get category-specific product attributes (e.g., color, size) required for listing. */ export declare function getAttributes(params: TiktokGetCategoryAttributes, config: TiktokConfig): Promise>; /** * Create a custom brand under the seller's account. * Useful when listing products that don’t belong to existing brands. */ export declare function createCustomBrands(body: TiktokBrandInput, config: TiktokConfig): Promise>; /** * Search for existing brands by keyword or filter. */ export declare function getBrands(query: TiktokBrandFilterInput, config: TiktokConfig): Promise>; /** * Search for size charts based on category and product attributes. * Used when size chart is required for apparel or similar categories. */ export declare function searchSizeCharts(params: TiktokSearchSizeChartsInput, config: TiktokConfig): Promise>; /** * Search for existing products using keywords, filters, or pagination. * Helpful for managing listed inventory or checking duplicates. */ export declare function searchProducts(params: TiktokSearchProductInput, config: TiktokConfig): Promise>; /** * Retrieve detailed information about a specific product by ID. */ export declare function getProduct(params: TiktokGetProductParams, config: TiktokConfig): Promise>; /** * Create a new responsible person for product compliance. */ export declare function createResponsiblePerson(body: TiktokCreateResponsiblePersonInput, config: TiktokConfig): Promise>; /** * Search responsible persons based on given query and filters. */ export declare function searchResponsiblePersons(params: TiktokSearchResponsiblePersonsParam, config: TiktokConfig): Promise>; /** * Edit details of a responsible person partially by ID. */ export declare function editResponsiblePersons(params: TiktokEditResponsiblePersonInput, config: TiktokConfig): Promise>; /** * Create a category upgrade task for products. */ export declare function createCategoryUpgradeTask(config: TiktokConfig): Promise>; /** * Get recommended product titles and descriptions. */ export declare function getRecommendedProductTitleAndDescription(query: TiktokGetRecommendedProductTitleAndDescriptionQuery, config: TiktokConfig): Promise>; /** * Get SEO words recommendations for products. */ export declare function getProductsSEOWords(query: TiktokGetRecommendedProductTitleAndDescriptionQuery, config: TiktokConfig): Promise>; /** * Diagnose product information issues. */ export declare function productInformationIssueDiagnosis(query: TiktokGetRecommendedProductTitleAndDescriptionQuery, config: TiktokConfig): Promise>; /** * Retrieve global product categories. */ export declare function getGlobalCategories(query: TiktokGetGlobalCategoriesQuery, config: TiktokConfig): Promise>; /** * Get global attributes for a specific category. */ export declare function getGlobalAttributes(params: TiktokGetGlobalAttributesQuery, config: TiktokConfig): Promise>; /** * Create a new manufacturer entry. */ export declare function createManufacturer(body: TiktokCreateManufacturerInput, config: TiktokConfig): Promise>; /** * Search manufacturers with filters and query. */ export declare function searchManufacturer(params: TiktokSearchManufacturerQuery, config: TiktokConfig): Promise>; /** * Partially edit manufacturer information by ID. */ export declare function editPartialManufacturer(params: TiktokEditPartialManufacturerParam, config: TiktokConfig): Promise>; /** * Deactivate products by given list. */ export declare function deactivateProducts(body: TiktokDeactivateProductInput, config: TiktokConfig): Promise>; /** * Activate products by given list. */ export declare function activateProducts(body: TiktokActivateProductInput, config: TiktokConfig): Promise>; /** * Delete products by given list. */ export declare function deleteProducts(body: TiktokDeleteProductInput, config: TiktokConfig): Promise>; /** * Upload product images using multipart/form-data. */ export declare function uploadProductImage(body: TiktokUploadImageParams, config: TiktokConfig): Promise>; /** * Optimize images for products. */ export declare function optimizedImages(body: TiktokOptimizedImagesInput, config: TiktokConfig): Promise>; /** * Create a new product with given details. */ export declare function createProduct(body: TiktokCreateProductInput, config: TiktokConfig): Promise>; /** * Edit a product with given details. */ export declare function editProduct(params: TiktokEditProductParams, config: TiktokConfig): Promise>; /** * Partially edit a product with given details. * This endpoint allows updating specific fields of a product without requiring all fields. */ export declare function partialEditProduct(params: TiktokPartialEditProductParams, config: TiktokConfig): Promise>; /** * Recover deleted product using product ID. * @see https://partner.tiktokshop.com/doc/page/661176 * @param body - Payload containing the product_id to recover. */ export declare function recoverProduct(body: TiktokRecoverProductBody, config: TiktokConfig): Promise>; /** * Check product listing prerequisites before publishing. * @see https://partner.tiktokshop.com/docv2/page/recover-products-202309 * @param body - Payload containing product details to check listing eligibility. */ export declare function checkProductListing(body: TiktokCheckProductListingBody, config: TiktokConfig): Promise>; /** * Upload a file (e.g., product image or certificate). * @see https://partner.tiktokshop.com/docv2/page/upload-product-file-202309 * @param body - File and metadata required for upload. */ export declare function uploadProductFile(body: TiktokUploadProductFileParams, config: TiktokConfig): Promise>; /** * Search inventory by filters like product_id or status. * @see https://partner.tiktokshop.com/docv2/page/inventory-search-202309 * @param body - Payload to filter and search product inventory. */ export declare function searchInventory(body: TiktokSearchInventoryBody, config: TiktokConfig): Promise>; /** * Update price of a product SKU. * @see https://partner.tiktokshop.com/docv2/page/update-price-202309 * @param params - Object containing product_id and body with price data. */ export declare function updateProductPrice(params: TiktokUpdateProductPriceInput, config: TiktokConfig): Promise>; /** * Update inventory of a product SKU. * @see https://partner.tiktokshop.com/docv2/page/update-inventory-202309 * @param params - Object containing product_id and inventory data. */ export declare function updateProductInventory(params: TiktokUpdateProductInventoryInput, config: TiktokConfig): Promise>; /** * Get recommended global categories for a product. * @see https://partner.tiktokshop.com/docv2/page/recommend-global-categories-202309 * @param body - Object with product information to get category suggestions. */ export declare function recommendGlobalCategory(body: TiktokRecommendGlobalCategoryInput, config: TiktokConfig): Promise>; /** * Get global category rules (e.g., attributes, requirements). * @see https://partner.tiktokshop.com/docv2/page/get-global-category-rules-202309 * @param params - Params containing category_id and optional query. */ export declare function getGlobalCategoryRules(params: TiktokGetGlobalCategoryRulesParams, config: TiktokConfig): Promise>; /** * Create a new global product. * @see https://partner.tiktokshop.com/docv2/page/create-global-product-202309 * @param body - Payload for creating a global product. */ export declare function createGlobalProduct(body: TiktokCreateGlobalProductInput, config: TiktokConfig): Promise>; /** * Edit a global product by ID. * @see https://partner.tiktokshop.com/docv2/page/edit-global-product-202309 * @param params - Object containing global_product_id and updated product body. */ export declare function editGlobalProduct(params: TiktokEditGlobalProductInput, config: TiktokConfig): Promise>; /** * Delete one or multiple global products. * @see https://partner.tiktokshop.com/docv2/page/delete-global-products-202309 * @param body - Payload containing IDs of global products to delete. */ export declare function deleteGlobalProducts(body: TiktokDeleteGlobalProductsInput, config: TiktokConfig): Promise>; /** * Search for global products using filters and pagination. * @see https://partner.tiktokshop.com/docv2/page/search-global-products-202312 * @param params - Object with query and body filters. */ export declare function searchGlobalProducts(params: TiktokSearchGlobalProductsInput, config: TiktokConfig): Promise>; /** * Update inventory for a specific global product. * @see https://partner.tiktokshop.com/docv2/page/update-global-inventory-202309 * @param params - Params containing global_product_id and new inventory data. */ export declare function updateGlobalInventory(params: TiktokUpdateGlobalInventoryInput, config: TiktokConfig): Promise>; /** * Get a specific global product by ID. * @see https://partner.tiktokshop.com/docv2/page/get-global-product-202309 * @param global_product_id - ID of the global product to retrieve. */ export declare function getGlobalProduct(global_product_id: string, config: TiktokConfig): Promise>; /** * Publish a global product to a specific market or all markets. * @see https://partner.tiktokshop.com/docv2/page/publish-global-product-202309 * @param params - Object containing global_product_id and publish config. */ export declare function publishGlobalProduct(params: TiktokPublishGlobalProductInput, config: TiktokConfig): Promise>; /** * Create image translation tasks for multiple product images. * @see https://partner.tiktokshop.com/docv2/page/create-image-translation-tasks-202505 * @param body - List of image URLs and target languages. */ export declare function createImageTranslationTasks(body: TiktokCreateImageTranslationTasksInput, config: TiktokConfig): Promise>; /** * Get status of image translation tasks. * @see https://partner.tiktokshop.com/docv2/page/get-image-translation-tasks-202506 * @param query - Object containing task_ids for status lookup. */ export declare function getImageTranslationTasks(query: TiktokGetImageTranslationTasksQuery, config: TiktokConfig): Promise>;