@aurigma/axios-storefront-products-api-client
Version:
Axios API Client for Storefront API service of Customer's Canvas web-to-print system.
696 lines • 75.6 kB
TypeScript
import { AxiosInstance, AxiosRequestConfig, AxiosResponse, CancelToken } from 'axios';
export declare class ApiClientConfiguration {
apiUrl: string;
apiKey: string;
private authorizationToken;
getAuthorizationToken(): Promise<string>;
setAuthorizationToken(token: string): void;
}
export declare class ApiClientBase {
private configuration;
constructor(configuration: ApiClientConfiguration);
protected transformOptions(options: AxiosRequestConfig): Promise<AxiosRequestConfig>;
protected getBaseUrl(defultUrl: string): string;
protected transformResult(url: string, res: AxiosResponse, cb: (res: AxiosResponse) => Promise<any>): Promise<any>;
}
export interface IProductReferencesApiClient {
/**
* Returns all storefront product references relevant to the specified query parameters.
* @param storefrontId Storefront identifier.
* @param productReference (optional) Product reference filter. Product reference is an external reference to Customer's Canvas product specification, e.g online store product identifier.
* @param productId (optional) Cusomer's Canvas product filter.
* @param productLinkId (optional) Cusomer's Canvas product link filter.
* @param skip (optional) Defines page start offset from beginning of sorted result list.
* @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
* @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC".
* @param search (optional) Search string for partial match.
* @param sku (optional) SKU filter.
* @param tags (optional) List of tags that product should have.
* @param customFields (optional) Serialized custom fields dictionary filter. For example: {"public":"true","name":"my item"}.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getAll(storefrontId: number, productReference?: string | null | undefined, productId?: number | null | undefined, productLinkId?: number | null | undefined, skip?: number | null | undefined, take?: number | null | undefined, sorting?: string | null | undefined, search?: string | null | undefined, sku?: string | null | undefined, tags?: string[] | null | undefined, customFields?: string | null | undefined, tenantId?: number | null | undefined): Promise<PagedOfProductReferenceDto>;
/**
* Returns a storefront product reference.
* @param reference Product reference - external reference to Customer's Canvas products, e.g online store product identifier.
* @param storefrontId Storefront identifier.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
get(reference: string | null, storefrontId: number, tenantId?: number | null | undefined): Promise<ProductReferenceDto>;
/**
* Returns a list of product links associated with storefront product references relevant to the specified query parameters.
* @param storefrontId Storefront identifier.
* @param productReference (optional) Product reference filter. Product reference is an external reference to Customer's Canvas product specification, e.g online store product identifier.
* @param productId (optional) Cusomer's Canvas product filter.
* @param productLinkId (optional) Cusomer's Canvas product link filter.
* @param skip (optional) Defines page start offset from beginning of sorted result list.
* @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
* @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC".
* @param search (optional) Search string for partial match.
* @param sku (optional) SKU filter.
* @param tags (optional) List of tags that product should have.
* @param customFields (optional) Serialized custom fields dictionary filter. For example: {"public":"true","name":"my item"}.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getAllProductLinks(storefrontId: number, productReference?: string | null | undefined, productId?: number | null | undefined, productLinkId?: number | null | undefined, skip?: number | null | undefined, take?: number | null | undefined, sorting?: string | null | undefined, search?: string | null | undefined, sku?: string | null | undefined, tags?: string[] | null | undefined, customFields?: string | null | undefined, tenantId?: number | null | undefined): Promise<PagedOfProductLinkDto>;
/**
* Returns a product by storefront product reference.
* @param reference Product reference - external reference to Customer's Canvas product, e.g online store product identifier.
* @param storefrontId Storefront identifier.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getProduct(reference: string | null, storefrontId: number, tenantId?: number | null | undefined): Promise<ProductDto>;
/**
* Returns a product summary by storefront product reference.
* @param reference Product reference - external reference to Customer's Canvas product, e.g online store product identifier.
* @param storefrontId Storefront identifier.
* @param productVariantId (optional) Product variant identifier.
* @param sku (optional) Product variant SKU.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getProductSummary(reference: string | null, storefrontId: number, productVariantId?: number | null | undefined, sku?: string | null | undefined, tenantId?: number | null | undefined): Promise<ProductSummaryDto>;
/**
* Returns a product link by storefront product reference.
* @param reference Product reference - external reference to Customer's Canvas product, e.g online store product identifier.
* @param storefrontId Storefront identifier.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getProductLink(reference: string | null, storefrontId: number, tenantId?: number | null | undefined): Promise<ProductLinkDto>;
/**
* Returns a product filter by storefront product reference.
* @param reference Product reference - external reference to Customer's Canvas product, e.g online store product identifier.
* @param storefrontId Storefront identifier.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getProductFilter(reference: string | null, storefrontId: number, tenantId?: number | null | undefined): Promise<ProductFilterDto>;
/**
* Returns a product cost details from ecommerce system.
* @param reference Product reference - external reference to Customer's Canvas product product specification, e.g online store product identifier.
* @param sku Product SKU.
* @param storefrontId Storefront identifier.
* @param storefrontUserId (optional) Storefront user identifier.
* @param currencyCode (optional) Product cost currency code.
* @param quantity (optional) Product quantity.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getProductCostDetails(reference: string | null, sku: string, storefrontId: number, storefrontUserId?: string | null | undefined, currencyCode?: string | null | undefined, quantity?: number | undefined, tenantId?: number | null | undefined): Promise<ProductCostDetailsDto>;
/**
* Returns a product personalization workflow description by storefront product reference.
* @param reference Product reference - external reference to Customer's Canvas product, e.g online store product identifier.
* @param storefrontId Storefront identifier.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getPersonalizationWorkflow(reference: string | null, storefrontId: number, tenantId?: number | null | undefined): Promise<PersonalizationWorkflowDto>;
/**
* Returns a product personalization workflow configuration by storefront product reference.
* @param reference Product reference - external reference to Customer's Canvas product specification, e.g online store product identifier.
* @param storefrontId Storefront identifier.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getProductPersonalizationWorkflow(reference: string | null, storefrontId: number, tenantId?: number | null | undefined): Promise<string>;
/**
* Returns a product personalization workflow configuration by storefront product reference.
* @param reference Product reference - external reference to Customer's Canvas product specification, e.g online store product identifier.
* @param storefrontId Storefront identifier.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
obsoleteGetProductPersonalizationWorkflow(reference: string | null, storefrontId: number, tenantId?: number | null | undefined): Promise<string>;
}
export declare class ProductReferencesApiClient extends ApiClientBase implements IProductReferencesApiClient {
private instance;
private baseUrl;
protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
constructor(configuration: ApiClientConfiguration, baseUrl?: string, instance?: AxiosInstance);
/**
* Returns all storefront product references relevant to the specified query parameters.
* @param storefrontId Storefront identifier.
* @param productReference (optional) Product reference filter. Product reference is an external reference to Customer's Canvas product specification, e.g online store product identifier.
* @param productId (optional) Cusomer's Canvas product filter.
* @param productLinkId (optional) Cusomer's Canvas product link filter.
* @param skip (optional) Defines page start offset from beginning of sorted result list.
* @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
* @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC".
* @param search (optional) Search string for partial match.
* @param sku (optional) SKU filter.
* @param tags (optional) List of tags that product should have.
* @param customFields (optional) Serialized custom fields dictionary filter. For example: {"public":"true","name":"my item"}.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getAll(storefrontId: number, productReference?: string | null | undefined, productId?: number | null | undefined, productLinkId?: number | null | undefined, skip?: number | null | undefined, take?: number | null | undefined, sorting?: string | null | undefined, search?: string | null | undefined, sku?: string | null | undefined, tags?: string[] | null | undefined, customFields?: string | null | undefined, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<PagedOfProductReferenceDto>;
protected processGetAll(response: AxiosResponse): Promise<PagedOfProductReferenceDto>;
/**
* Returns a storefront product reference.
* @param reference Product reference - external reference to Customer's Canvas products, e.g online store product identifier.
* @param storefrontId Storefront identifier.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
get(reference: string | null, storefrontId: number, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<ProductReferenceDto>;
protected processGet(response: AxiosResponse): Promise<ProductReferenceDto>;
/**
* Returns a list of product links associated with storefront product references relevant to the specified query parameters.
* @param storefrontId Storefront identifier.
* @param productReference (optional) Product reference filter. Product reference is an external reference to Customer's Canvas product specification, e.g online store product identifier.
* @param productId (optional) Cusomer's Canvas product filter.
* @param productLinkId (optional) Cusomer's Canvas product link filter.
* @param skip (optional) Defines page start offset from beginning of sorted result list.
* @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
* @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC".
* @param search (optional) Search string for partial match.
* @param sku (optional) SKU filter.
* @param tags (optional) List of tags that product should have.
* @param customFields (optional) Serialized custom fields dictionary filter. For example: {"public":"true","name":"my item"}.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getAllProductLinks(storefrontId: number, productReference?: string | null | undefined, productId?: number | null | undefined, productLinkId?: number | null | undefined, skip?: number | null | undefined, take?: number | null | undefined, sorting?: string | null | undefined, search?: string | null | undefined, sku?: string | null | undefined, tags?: string[] | null | undefined, customFields?: string | null | undefined, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<PagedOfProductLinkDto>;
protected processGetAllProductLinks(response: AxiosResponse): Promise<PagedOfProductLinkDto>;
/**
* Returns a product by storefront product reference.
* @param reference Product reference - external reference to Customer's Canvas product, e.g online store product identifier.
* @param storefrontId Storefront identifier.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getProduct(reference: string | null, storefrontId: number, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<ProductDto>;
protected processGetProduct(response: AxiosResponse): Promise<ProductDto>;
/**
* Returns a product summary by storefront product reference.
* @param reference Product reference - external reference to Customer's Canvas product, e.g online store product identifier.
* @param storefrontId Storefront identifier.
* @param productVariantId (optional) Product variant identifier.
* @param sku (optional) Product variant SKU.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getProductSummary(reference: string | null, storefrontId: number, productVariantId?: number | null | undefined, sku?: string | null | undefined, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<ProductSummaryDto>;
protected processGetProductSummary(response: AxiosResponse): Promise<ProductSummaryDto>;
/**
* Returns a product link by storefront product reference.
* @param reference Product reference - external reference to Customer's Canvas product, e.g online store product identifier.
* @param storefrontId Storefront identifier.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getProductLink(reference: string | null, storefrontId: number, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<ProductLinkDto>;
protected processGetProductLink(response: AxiosResponse): Promise<ProductLinkDto>;
/**
* Returns a product filter by storefront product reference.
* @param reference Product reference - external reference to Customer's Canvas product, e.g online store product identifier.
* @param storefrontId Storefront identifier.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getProductFilter(reference: string | null, storefrontId: number, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<ProductFilterDto>;
protected processGetProductFilter(response: AxiosResponse): Promise<ProductFilterDto>;
/**
* Returns a product cost details from ecommerce system.
* @param reference Product reference - external reference to Customer's Canvas product product specification, e.g online store product identifier.
* @param sku Product SKU.
* @param storefrontId Storefront identifier.
* @param storefrontUserId (optional) Storefront user identifier.
* @param currencyCode (optional) Product cost currency code.
* @param quantity (optional) Product quantity.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getProductCostDetails(reference: string | null, sku: string, storefrontId: number, storefrontUserId?: string | null | undefined, currencyCode?: string | null | undefined, quantity?: number | undefined, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<ProductCostDetailsDto>;
protected processGetProductCostDetails(response: AxiosResponse): Promise<ProductCostDetailsDto>;
/**
* Returns a product personalization workflow description by storefront product reference.
* @param reference Product reference - external reference to Customer's Canvas product, e.g online store product identifier.
* @param storefrontId Storefront identifier.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getPersonalizationWorkflow(reference: string | null, storefrontId: number, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<PersonalizationWorkflowDto>;
protected processGetPersonalizationWorkflow(response: AxiosResponse): Promise<PersonalizationWorkflowDto>;
/**
* Returns a product personalization workflow configuration by storefront product reference.
* @param reference Product reference - external reference to Customer's Canvas product specification, e.g online store product identifier.
* @param storefrontId Storefront identifier.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getProductPersonalizationWorkflow(reference: string | null, storefrontId: number, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<string>;
protected processGetProductPersonalizationWorkflow(response: AxiosResponse): Promise<string>;
/**
* Returns a product personalization workflow configuration by storefront product reference.
* @param reference Product reference - external reference to Customer's Canvas product specification, e.g online store product identifier.
* @param storefrontId Storefront identifier.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
obsoleteGetProductPersonalizationWorkflow(reference: string | null, storefrontId: number, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<string>;
protected processObsoleteGetProductPersonalizationWorkflow(response: AxiosResponse): Promise<string>;
}
export interface IProductsApiClient {
/**
* Returns all products, relevant to the specified query parameters.
* @param skip (optional) Defines page start offset from beginning of sorted result list.
* @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
* @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC".
* @param search (optional) Search string for partial match.
* @param sku (optional) SKU of linked ecommerce product.
* @param tags (optional) List of tags that product should have.
* @param customFields (optional) Serialized custom fields dictionary filter. For example: {"public":"true","name":"my item"}.
* @param includeObsolete (optional) Indicates if obsolete products prepared to be removed should be included to result.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getAllProducts(skip?: number | null | undefined, take?: number | null | undefined, sorting?: string | null | undefined, search?: string | null | undefined, sku?: string | null | undefined, tags?: string[] | null | undefined, customFields?: string | null | undefined, includeObsolete?: boolean | undefined, tenantId?: number | null | undefined): Promise<PagedOfProductDto>;
/**
* Returns a product by identifier.
* @param id Product identifier.
* @param productVersionId (optional) Product version identifier.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getProduct(id: number, productVersionId?: number | null | undefined, tenantId?: number | null | undefined): Promise<ProductDto>;
/**
* Returns a product summary by product identifier.
* @param id Product identifier.
* @param productVersionId (optional) Product version identifier.
* @param productLinkId (optional) Product link identifier.
* @param productVariantId (optional) Product variant identifier.
* @param sku (optional) Product variant SKU.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getProductSummary(id: number, productVersionId?: number | null | undefined, productLinkId?: number | null | undefined, productVariantId?: number | null | undefined, sku?: string | null | undefined, tenantId?: number | null | undefined): Promise<ProductSummaryDto>;
/**
* Returns a list of product options.
* @param id Product identifier.
* @param productVersionId (optional) Product version identifier.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getProductOptions(id: number, productVersionId?: number | null | undefined, tenantId?: number | null | undefined): Promise<PagedOfProductOptionDto>;
/**
* Returns a list of product options for all products.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getAllProductOptions(tenantId?: number | null | undefined): Promise<PagedOfProductOptionDto>;
/**
* Returns a list of product links.
* @param id Product identifier.
* @param productVersionId (optional) Product version identifier.
* @param skip (optional) Defines page start offset from beginning of sorted result list.
* @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
* @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC".
* @param search (optional) Search string for partial match.
* @param includeObsolete (optional) Indicates if obsolete product links prepared to be removed should be included to result.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getProductLinks(id: number, productVersionId?: number | null | undefined, skip?: number | null | undefined, take?: number | null | undefined, sorting?: string | null | undefined, search?: string | null | undefined, includeObsolete?: boolean | undefined, tenantId?: number | null | undefined): Promise<PagedOfProductLinkDto>;
/**
* Returns a product link.
* @param id Product identifier.
* @param productLinkId Product link identifier.
* @param productVersionId (optional) Product version identifier.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getProductLink(id: number, productLinkId: number, productVersionId?: number | null | undefined, tenantId?: number | null | undefined): Promise<ProductLinkDto>;
/**
* Returns a list of product filters.
* @param id Product identifier.
* @param productVersionId (optional) Product version identifier.
* @param filterType (optional) Defines filter type paramer.
* @param skip (optional) Defines page start offset from beginning of sorted result list.
* @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
* @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC".
* @param search (optional) Search string for partial match.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getProductFilters(id: number, productVersionId?: number | null | undefined, filterType?: ProductFilterType | null | undefined, skip?: number | null | undefined, take?: number | null | undefined, sorting?: string | null | undefined, search?: string | null | undefined, tenantId?: number | null | undefined): Promise<PagedOfProductFilterDto>;
/**
* Returns a product filter.
* @param id Product identifier.
* @param productFilterId Product filter identifier.
* @param productVersionId (optional) Product version identifier.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getProductFilter(id: number, productFilterId: number, productVersionId?: number | null | undefined, tenantId?: number | null | undefined): Promise<ProductFilterDto>;
/**
* Returns a list of product variants.
* @param id Product identifier.
* @param productVersionId (optional) Product version identifier.
* @param skip (optional) Defines page start offset from beginning of sorted result list.
* @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
* @param options (optional) Defines options filter e.g.: "{ "opt1_id": "opt1_val1_id, opt1_val2_id", "opt2_id": "opt2_val1_id" }".
* @param productFilterId (optional) Defines special filter based on product filter with specified identifier.
* @param takeAvailableOnly (optional) Defines special filter for available product variants.
* @param sku (optional) SKU of linked ecommerce product.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getProductVariants(id: number, productVersionId?: number | null | undefined, skip?: number | null | undefined, take?: number | null | undefined, options?: string | null | undefined, productFilterId?: number | null | undefined, takeAvailableOnly?: boolean | null | undefined, sku?: string | null | undefined, tenantId?: number | null | undefined): Promise<PagedOfProductVariantDto>;
/**
* Returns a product variant.
* @param id Product identifier.
* @param productVariantId Product variant identifier.
* @param productVersionId (optional) Product version identifier.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getProductVariant(id: number, productVariantId: number, productVersionId?: number | null | undefined, tenantId?: number | null | undefined): Promise<ProductVariantDto>;
/**
* Returns a list of product variant designs.
* @param id Product identifier.
* @param productVersionId (optional) Product version identifier.
* @param productVariantId (optional) Product variant identifier.
* @param search (optional) Search string for design name partial match.
* @param designCustomFields (optional) Custom attributes dictionary filter for designs. For example: {"public":"true","name":"my item"}
* @param designPath (optional) Path filter for designs. Subfolders included by default.
* @param skip (optional) Defines page start offset from beginning of sorted result list.
* @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
* @param options (optional) Defines options filter e.g.: "{ "opt1_id": "opt1_val1_id, opt1_val2_id", "opt2_id": "opt2_val1_id" }".
* @param productFilterId (optional) Defines special filter based on product filter with specified identifier.
* @param takeAvailableOnly (optional) Defines special filter for available product variants.
* @param sku (optional) SKU of linked ecommerce product.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getProductVariantDesigns(id: number, productVersionId?: number | null | undefined, productVariantId?: number | null | undefined, search?: string | null | undefined, designCustomFields?: string | null | undefined, designPath?: string | null | undefined, skip?: number | null | undefined, take?: number | null | undefined, options?: string | null | undefined, productFilterId?: number | null | undefined, takeAvailableOnly?: boolean | null | undefined, sku?: string | null | undefined, tenantId?: number | null | undefined): Promise<PagedOfProductVariantDesignDto>;
/**
* Returns a list of product variant mockups.
* @param id Product identifier.
* @param productVersionId (optional) Product version identifier.
* @param productVariantId (optional) Product variant identifier.
* @param search (optional) Search string for design name partial match.
* @param mockupCustomFields (optional) Custom attributes dictionary filter for mockups. For example: {"public":"true","name":"my item"}
* @param mockupPath (optional) Path filter for mockups. Subfolders included by default.
* @param skip (optional) Defines page start offset from beginning of sorted result list.
* @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
* @param options (optional) Defines options filter e.g.: "{ "opt1_id": "opt1_val1_id, opt1_val2_id", "opt2_id": "opt2_val1_id" }".
* @param productFilterId (optional) Defines special filter based on product filter with specified identifier.
* @param takeAvailableOnly (optional) Defines special filter for available product variants.
* @param sku (optional) SKU of linked ecommerce product.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getProductVariantMockups(id: number, productVersionId?: number | null | undefined, productVariantId?: number | null | undefined, search?: string | null | undefined, mockupCustomFields?: string | null | undefined, mockupPath?: string | null | undefined, skip?: number | null | undefined, take?: number | null | undefined, options?: string | null | undefined, productFilterId?: number | null | undefined, takeAvailableOnly?: boolean | null | undefined, sku?: string | null | undefined, tenantId?: number | null | undefined): Promise<PagedOfProductVariantMockupDto>;
/**
* Returns a list of product variant documents.
* @param id Product identifier.
* @param productVersionId (optional) Product version identifier.
* @param productVariantId (optional) Product variant identifier.
* @param search (optional) Search string for document name partial match.
* @param documentCustomFields (optional) Custom attributes dictionary filter for documents. For example: {"public":"true","name":"my item"}
* @param documentPath (optional) Path filter for documents. Subfolders included by default.
* @param skip (optional) Defines page start offset from beginning of sorted result list.
* @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
* @param options (optional) Defines options filter e.g.: "{ "opt1_id": "opt1_val1_id, opt1_val2_id", "opt2_id": "opt2_val1_id" }".
* @param productFilterId (optional) Defines special filter based on product filter with specified identifier.
* @param takeAvailableOnly (optional) Defines special filter for available product variants.
* @param sku (optional) SKU of linked ecommerce product.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getProductVariantDocuments(id: number, productVersionId?: number | null | undefined, productVariantId?: number | null | undefined, search?: string | null | undefined, documentCustomFields?: string | null | undefined, documentPath?: string | null | undefined, skip?: number | null | undefined, take?: number | null | undefined, options?: string | null | undefined, productFilterId?: number | null | undefined, takeAvailableOnly?: boolean | null | undefined, sku?: string | null | undefined, tenantId?: number | null | undefined): Promise<PagedOfProductVariantDocumentDto>;
/**
* Updates product variant resources.
* @param id Product identifier.
* @param productVersionId (optional) Product version identifier.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
updateProductVariantResources(id: number, productVersionId?: number | null | undefined, tenantId?: number | null | undefined): Promise<void>;
/**
* Set product variant price.
* @param id Product identifier.
* @param productVersionId (optional) Product version identifier.
* @param tenantId (optional) Tenant identifier.
* @param body (optional) Set product variant price operation parameters.
* @return Success
* @deprecated
*/
setProductVariantPrice(id: number, productVersionId?: number | null | undefined, tenantId?: number | null | undefined, body?: SetProductVariantPriceDto[] | null | undefined): Promise<void>;
/**
* Returns a list of all available product tags.
* @param search (optional) Search string for partial match.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getAvailableProductTags(search?: string | null | undefined, tenantId?: number | null | undefined): Promise<string[]>;
/**
* Returns a product personalization workflow description by product identifier.
* @param id Product identifier.
* @param productVersionId (optional) Product version identifier.
* @param productLinkId (optional) Product link identifier.
* @param productFilterId (optional) Product filter identifier.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getPersonalizationWorkflow(id: number, productVersionId?: number | null | undefined, productLinkId?: number | null | undefined, productFilterId?: number | null | undefined, tenantId?: number | null | undefined): Promise<PersonalizationWorkflowDto>;
}
export declare class ProductsApiClient extends ApiClientBase implements IProductsApiClient {
private instance;
private baseUrl;
protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
constructor(configuration: ApiClientConfiguration, baseUrl?: string, instance?: AxiosInstance);
/**
* Returns all products, relevant to the specified query parameters.
* @param skip (optional) Defines page start offset from beginning of sorted result list.
* @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
* @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC".
* @param search (optional) Search string for partial match.
* @param sku (optional) SKU of linked ecommerce product.
* @param tags (optional) List of tags that product should have.
* @param customFields (optional) Serialized custom fields dictionary filter. For example: {"public":"true","name":"my item"}.
* @param includeObsolete (optional) Indicates if obsolete products prepared to be removed should be included to result.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getAllProducts(skip?: number | null | undefined, take?: number | null | undefined, sorting?: string | null | undefined, search?: string | null | undefined, sku?: string | null | undefined, tags?: string[] | null | undefined, customFields?: string | null | undefined, includeObsolete?: boolean | undefined, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<PagedOfProductDto>;
protected processGetAllProducts(response: AxiosResponse): Promise<PagedOfProductDto>;
/**
* Returns a product by identifier.
* @param id Product identifier.
* @param productVersionId (optional) Product version identifier.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getProduct(id: number, productVersionId?: number | null | undefined, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<ProductDto>;
protected processGetProduct(response: AxiosResponse): Promise<ProductDto>;
/**
* Returns a product summary by product identifier.
* @param id Product identifier.
* @param productVersionId (optional) Product version identifier.
* @param productLinkId (optional) Product link identifier.
* @param productVariantId (optional) Product variant identifier.
* @param sku (optional) Product variant SKU.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getProductSummary(id: number, productVersionId?: number | null | undefined, productLinkId?: number | null | undefined, productVariantId?: number | null | undefined, sku?: string | null | undefined, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<ProductSummaryDto>;
protected processGetProductSummary(response: AxiosResponse): Promise<ProductSummaryDto>;
/**
* Returns a list of product options.
* @param id Product identifier.
* @param productVersionId (optional) Product version identifier.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getProductOptions(id: number, productVersionId?: number | null | undefined, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<PagedOfProductOptionDto>;
protected processGetProductOptions(response: AxiosResponse): Promise<PagedOfProductOptionDto>;
/**
* Returns a list of product options for all products.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getAllProductOptions(tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<PagedOfProductOptionDto>;
protected processGetAllProductOptions(response: AxiosResponse): Promise<PagedOfProductOptionDto>;
/**
* Returns a list of product links.
* @param id Product identifier.
* @param productVersionId (optional) Product version identifier.
* @param skip (optional) Defines page start offset from beginning of sorted result list.
* @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
* @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC".
* @param search (optional) Search string for partial match.
* @param includeObsolete (optional) Indicates if obsolete product links prepared to be removed should be included to result.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getProductLinks(id: number, productVersionId?: number | null | undefined, skip?: number | null | undefined, take?: number | null | undefined, sorting?: string | null | undefined, search?: string | null | undefined, includeObsolete?: boolean | undefined, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<PagedOfProductLinkDto>;
protected processGetProductLinks(response: AxiosResponse): Promise<PagedOfProductLinkDto>;
/**
* Returns a product link.
* @param id Product identifier.
* @param productLinkId Product link identifier.
* @param productVersionId (optional) Product version identifier.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getProductLink(id: number, productLinkId: number, productVersionId?: number | null | undefined, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<ProductLinkDto>;
protected processGetProductLink(response: AxiosResponse): Promise<ProductLinkDto>;
/**
* Returns a list of product filters.
* @param id Product identifier.
* @param productVersionId (optional) Product version identifier.
* @param filterType (optional) Defines filter type paramer.
* @param skip (optional) Defines page start offset from beginning of sorted result list.
* @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
* @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC".
* @param search (optional) Search string for partial match.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getProductFilters(id: number, productVersionId?: number | null | undefined, filterType?: ProductFilterType | null | undefined, skip?: number | null | undefined, take?: number | null | undefined, sorting?: string | null | undefined, search?: string | null | undefined, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<PagedOfProductFilterDto>;
protected processGetProductFilters(response: AxiosResponse): Promise<PagedOfProductFilterDto>;
/**
* Returns a product filter.
* @param id Product identifier.
* @param productFilterId Product filter identifier.
* @param productVersionId (optional) Product version identifier.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getProductFilter(id: number, productFilterId: number, productVersionId?: number | null | undefined, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<ProductFilterDto>;
protected processGetProductFilter(response: AxiosResponse): Promise<ProductFilterDto>;
/**
* Returns a list of product variants.
* @param id Product identifier.
* @param productVersionId (optional) Product version identifier.
* @param skip (optional) Defines page start offset from beginning of sorted result list.
* @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
* @param options (optional) Defines options filter e.g.: "{ "opt1_id": "opt1_val1_id, opt1_val2_id", "opt2_id": "opt2_val1_id" }".
* @param productFilterId (optional) Defines special filter based on product filter with specified identifier.
* @param takeAvailableOnly (optional) Defines special filter for available product variants.
* @param sku (optional) SKU of linked ecommerce product.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getProductVariants(id: number, productVersionId?: number | null | undefined, skip?: number | null | undefined, take?: number | null | undefined, options?: string | null | undefined, productFilterId?: number | null | undefined, takeAvailableOnly?: boolean | null | undefined, sku?: string | null | undefined, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<PagedOfProductVariantDto>;
protected processGetProductVariants(response: AxiosResponse): Promise<PagedOfProductVariantDto>;
/**
* Returns a product variant.
* @param id Product identifier.
* @param productVariantId Product variant identifier.
* @param productVersionId (optional) Product version identifier.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getProductVariant(id: number, productVariantId: number, productVersionId?: number | null | undefined, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<ProductVariantDto>;
protected processGetProductVariant(response: AxiosResponse): Promise<ProductVariantDto>;
/**
* Returns a list of product variant designs.
* @param id Product identifier.
* @param productVersionId (optional) Product version identifier.
* @param productVariantId (optional) Product variant identifier.
* @param search (optional) Search string for design name partial match.
* @param designCustomFields (optional) Custom attributes dictionary filter for designs. For example: {"public":"true","name":"my item"}
* @param designPath (optional) Path filter for designs. Subfolders included by default.
* @param skip (optional) Defines page start offset from beginning of sorted result list.
* @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
* @param options (optional) Defines options filter e.g.: "{ "opt1_id": "opt1_val1_id, opt1_val2_id", "opt2_id": "opt2_val1_id" }".
* @param productFilterId (optional) Defines special filter based on product filter with specified identifier.
* @param takeAvailableOnly (optional) Defines special filter for available product variants.
* @param sku (optional) SKU of linked ecommerce product.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getProductVariantDesigns(id: number, productVersionId?: number | null | undefined, productVariantId?: number | null | undefined, search?: string | null | undefined, designCustomFields?: string | null | undefined, designPath?: string | null | undefined, skip?: number | null | undefined, take?: number | null | undefined, options?: string | null | undefined, productFilterId?: number | null | undefined, takeAvailableOnly?: boolean | null | undefined, sku?: string | null | undefined, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<PagedOfProductVariantDesignDto>;
protected processGetProductVariantDesigns(response: AxiosResponse): Promise<PagedOfProductVariantDesignDto>;
/**
* Returns a list of product variant mockups.
* @param id Product identifier.
* @param productVersionId (optional) Product version identifier.
* @param productVariantId (optional) Product variant identifier.
* @param search (optional) Search string for design name partial match.
* @param mockupCustomFields (optional) Custom attributes dictionary filter for mockups. For example: {"public":"true","name":"my item"}
* @param mockupPath (optional) Path filter for mockups. Subfolders included by default.
* @param skip (optional) Defines page start offset from beginning of sorted result list.
* @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
* @param options (optional) Defines options filter e.g.: "{ "opt1_id": "opt1_val1_id, opt1_val2_id", "opt2_id": "opt2_val1_id" }".
* @param productFilterId (optional) Defines special filter based on product filter with specified identifier.
* @param takeAvailableOnly (optional) Defines special filter for available product variants.
* @param sku (optional) SKU of linked ecommerce product.
* @param tenantId (optional) Tenant identifier.
* @return Success
* @deprecated
*/
getProductVariantMockups(id: number, productVersionId?: number | null | undefined, productVariantId?: number | null | undefined, search?: string | null | undefined, mockupCustomFields?: string | null | undefined, mockupPath?: string | null | undefined, skip?: number | null | undefined, take?: number | null | undefined, options?: string | null | undefined, productFilterId?: number | null | undefined, takeAvailableOnly?: boolean | null | undefined, sku?: string | null | undefined, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<PagedOfProductVariantMockupDto>;
protected processGetProductVariantMockups(response: AxiosResponse): Promise<PagedOfProductVariantMockupDto>;
/**
* Returns a list of product variant documents.
* @param id Product identifier.
* @param productVersionId (optional) Product version identifier.
* @param productVariantId (optional) Product variant identifier.
* @param search (optional) Search string for document name partial match.
* @param documentCustomFields (optional) Custom attributes dictionary filter for documents. For example: {"public":"true","name":"my item"}
* @param documentPath (optional) Path filter for documents. Subfolders included by default.
* @param skip (optional) Defines page start offset from beginning of sorted result list.
* @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
* @param options (optional) Defines options filter e.g.: "{ "opt1_id": "opt1_val1_id, opt1_val2_id", "opt2_id": "opt2_val1_id" }".
* @param productFilterId (optional) Defines special filter based on product filter with specified identifier.
* @param takeAvailableOnly (optional) Def