@aurigma/ng-storefront-api-client
Version:
Angular API Client for Storefront API service of Customer's Canvas web-to-print system.
687 lines • 141 kB
TypeScript
import { Observable } from 'rxjs';
import { InjectionToken } from '@angular/core';
import { HttpClient, HttpResponseBase } from '@angular/common/http';
export declare const API_BASE_URL: InjectionToken<string>;
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: any): Promise<any>;
protected getBaseUrl(defultUrl: string): string;
protected transformResult(url: string, res: HttpResponseBase, cb: (res: HttpResponseBase) => Observable<any>): Observable<any>;
}
export interface IBuildInfoApiClient {
/**
* Returns an assembly build info.
* @return Success
*/
headInfo(): Observable<void>;
/**
* Returns an assembly build info.
* @return Success
*/
getInfo(): Observable<BuildInfoModel>;
}
export declare class BuildInfoApiClient extends ApiClientBase implements IBuildInfoApiClient {
private http;
private baseUrl;
protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
constructor(configuration: ApiClientConfiguration, http: HttpClient, baseUrl?: string);
/**
* Returns an assembly build info.
* @return Success
*/
headInfo(): Observable<void>;
protected processHeadInfo(response: HttpResponseBase): Observable<void>;
/**
* Returns an assembly build info.
* @return Success
*/
getInfo(): Observable<BuildInfoModel>;
protected processGetInfo(response: HttpResponseBase): Observable<BuildInfoModel>;
}
export interface IProcessingPipelinesApiClient {
/**
* Returns all processing pipelines 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 search (optional) Search string for partial by processing pipeline name.
* @param tenantId (optional) Tenant identifier.
* @return Success
*/
getAll(skip?: number | null | undefined, take?: number | null | undefined, search?: string | null | undefined, tenantId?: number | null | undefined): Observable<PagedOfProcessingPipelineDto>;
/**
* Returns a processing pipeline.
* @param id Processing pipeline identifier.
* @param tenantId (optional) Tenant identifier.
* @return Success
*/
get(id: number, tenantId?: number | null | undefined): Observable<ProcessingPipelineDto>;
}
export declare class ProcessingPipelinesApiClient extends ApiClientBase implements IProcessingPipelinesApiClient {
private http;
private baseUrl;
protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
constructor(configuration: ApiClientConfiguration, http: HttpClient, baseUrl?: string);
/**
* Returns all processing pipelines 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 search (optional) Search string for partial by processing pipeline name.
* @param tenantId (optional) Tenant identifier.
* @return Success
*/
getAll(skip?: number | null | undefined, take?: number | null | undefined, search?: string | null | undefined, tenantId?: number | null | undefined): Observable<PagedOfProcessingPipelineDto>;
protected processGetAll(response: HttpResponseBase): Observable<PagedOfProcessingPipelineDto>;
/**
* Returns a processing pipeline.
* @param id Processing pipeline identifier.
* @param tenantId (optional) Tenant identifier.
* @return Success
*/
get(id: number, tenantId?: number | null | undefined): Observable<ProcessingPipelineDto>;
protected processGet(response: HttpResponseBase): Observable<ProcessingPipelineDto>;
}
export interface IProductLinksApiClient {
/**
* Returns all product links, 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 tenantId (optional) Tenant identifier.
* @return Success
*/
getAllProductLinks(skip?: number | null | undefined, take?: number | null | undefined, sorting?: string | null | undefined, search?: string | null | undefined, tenantId?: number | null | undefined): Observable<PagedOfProductLinkDto>;
/**
* Returns a product link by its identifier.
* @param id Product identifier.
* @param productLinkVersionId (optional) Product link version identifier. Optional
* @param productVersionId (optional) Product version identifier which represents linked product version. Optional
* @param tenantId (optional) Tenant identifier.
* @return Success
*/
getProductLink(id: number, productLinkVersionId?: number | null | undefined, productVersionId?: number | null | undefined, tenantId?: number | null | undefined): Observable<ProductLinkDto>;
/**
* Returns a product link summary by product link identifier.
* @param id Product link identifier.
* @param productLinkVersionId (optional) Product link version identifier.
* @param productVersionId (optional) Product link identifier.
* @param productVariantId (optional) Product variant identifier.
* @param sku (optional) Product variant SKU.
* @param tenantId (optional) Tenant identifier.
* @return Success
*/
getProductSummary(id: number, productLinkVersionId?: number | null | undefined, productVersionId?: number | null | undefined, productVariantId?: number | null | undefined, sku?: string | null | undefined, tenantId?: number | null | undefined): Observable<ProductSummaryDto>;
/**
* Returns a product link personalization workflow description by product link identifier.
* @param id Product link identifier.
* @param productLinkVersionId (optional) Product link version identifier.
* @param productVersionId (optional) Product version identifier.
* @param productFilterId (optional) Product filter identifier.
* @param tenantId (optional) Tenant identifier.
* @return Success
*/
getPersonalizationWorkflow(id: number, productLinkVersionId?: number | null | undefined, productVersionId?: number | null | undefined, productFilterId?: number | null | undefined, tenantId?: number | null | undefined): Observable<PersonalizationWorkflowDto>;
}
export declare class ProductLinksApiClient extends ApiClientBase implements IProductLinksApiClient {
private http;
private baseUrl;
protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
constructor(configuration: ApiClientConfiguration, http: HttpClient, baseUrl?: string);
/**
* Returns all product links, 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 tenantId (optional) Tenant identifier.
* @return Success
*/
getAllProductLinks(skip?: number | null | undefined, take?: number | null | undefined, sorting?: string | null | undefined, search?: string | null | undefined, tenantId?: number | null | undefined): Observable<PagedOfProductLinkDto>;
protected processGetAllProductLinks(response: HttpResponseBase): Observable<PagedOfProductLinkDto>;
/**
* Returns a product link by its identifier.
* @param id Product identifier.
* @param productLinkVersionId (optional) Product link version identifier. Optional
* @param productVersionId (optional) Product version identifier which represents linked product version. Optional
* @param tenantId (optional) Tenant identifier.
* @return Success
*/
getProductLink(id: number, productLinkVersionId?: number | null | undefined, productVersionId?: number | null | undefined, tenantId?: number | null | undefined): Observable<ProductLinkDto>;
protected processGetProductLink(response: HttpResponseBase): Observable<ProductLinkDto>;
/**
* Returns a product link summary by product link identifier.
* @param id Product link identifier.
* @param productLinkVersionId (optional) Product link version identifier.
* @param productVersionId (optional) Product link identifier.
* @param productVariantId (optional) Product variant identifier.
* @param sku (optional) Product variant SKU.
* @param tenantId (optional) Tenant identifier.
* @return Success
*/
getProductSummary(id: number, productLinkVersionId?: number | null | undefined, productVersionId?: number | null | undefined, productVariantId?: number | null | undefined, sku?: string | null | undefined, tenantId?: number | null | undefined): Observable<ProductSummaryDto>;
protected processGetProductSummary(response: HttpResponseBase): Observable<ProductSummaryDto>;
/**
* Returns a product link personalization workflow description by product link identifier.
* @param id Product link identifier.
* @param productLinkVersionId (optional) Product link version identifier.
* @param productVersionId (optional) Product version identifier.
* @param productFilterId (optional) Product filter identifier.
* @param tenantId (optional) Tenant identifier.
* @return Success
*/
getPersonalizationWorkflow(id: number, productLinkVersionId?: number | null | undefined, productVersionId?: number | null | undefined, productFilterId?: number | null | undefined, tenantId?: number | null | undefined): Observable<PersonalizationWorkflowDto>;
protected processGetPersonalizationWorkflow(response: HttpResponseBase): Observable<PersonalizationWorkflowDto>;
}
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, e.g online store product identifier.
* @param productSpecificationId (optional) Customer's Canvas product specification filter.
* @param productId (optional) Customer's Canvas product filter.
* @param productLinkId (optional) Customer'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
*/
getAll(storefrontId: number, productReference?: string | null | undefined, productSpecificationId?: number | 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): Observable<PagedOfProductReferenceDto>;
/**
* Returns a list of product specifications 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, e.g online store product identifier.
* @param productSpecificationId (optional) Customer's Canvas product specification filter.
* @param productId (optional) Customer's Canvas product filter.
* @param productLinkId (optional) Customer'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
*/
getAllProductSpecifications(storefrontId: number, productReference?: string | null | undefined, productSpecificationId?: number | 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): Observable<PagedOfProductSpecificationDto>;
/**
* Returns a list of products 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, e.g online store product identifier.
* @param productSpecificationId (optional) Customer's Canvas product specification filter.
* @param productId (optional) Customer's Canvas product filter.
* @param productLinkId (optional) Customer'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
*/
getAllProducts(storefrontId: number, productReference?: string | null | undefined, productSpecificationId?: number | 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): Observable<PagedOfProductDto>;
/**
* 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, e.g online store product identifier.
* @param productSpecificationId (optional) Customer's Canvas product specification filter.
* @param productId (optional) Customer's Canvas product filter.
* @param productLinkId (optional) Customer'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
*/
getAllProductLinks(storefrontId: number, productReference?: string | null | undefined, productSpecificationId?: number | 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): Observable<PagedOfProductLinkDto>;
/**
* Returns a storefront product reference.
* @param reference An external reference to Customer's Canvas product, e.g online store product identifier.
* @param storefrontId Storefront identifier.
* @param tenantId (optional) Tenant identifier.
* @return Success
*/
get(reference: string | null, storefrontId: number, tenantId?: number | null | undefined): Observable<ProductReferenceDto>;
/**
* Returns a product specification by the 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
*/
getProductSpecification(reference: string | null, storefrontId: number, tenantId?: number | null | undefined): Observable<ProductSpecificationDto>;
/**
* Returns a product by storefront product reference.
* @param reference An external reference to Customer's Canvas product, e.g online store product identifier.
* @param storefrontId Storefront identifier.
* @param tenantId (optional) Tenant identifier.
* @return Success
*/
getProduct(reference: string | null, storefrontId: number, tenantId?: number | null | undefined): Observable<ProductDto>;
/**
* Returns a product summary by storefront product reference.
* @param reference An 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
*/
getProductSummary(reference: string | null, storefrontId: number, productVariantId?: number | null | undefined, sku?: string | null | undefined, tenantId?: number | null | undefined): Observable<ProductSummaryDto>;
/**
* Returns a product link by storefront product reference.
* @param reference An external reference to Customer's Canvas product, e.g online store product identifier.
* @param storefrontId Storefront identifier.
* @param tenantId (optional) Tenant identifier.
* @return Success
*/
getProductLink(reference: string | null, storefrontId: number, tenantId?: number | null | undefined): Observable<ProductLinkDto>;
/**
* Returns a product cost details from ecommerce system.
* @param reference An external reference to Customer's Canvas product, 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
*/
getProductCostDetails(reference: string | null, sku: string, storefrontId: number, storefrontUserId?: string | null | undefined, currencyCode?: string | null | undefined, quantity?: number | undefined, tenantId?: number | null | undefined): Observable<ProductCostDetailsDto>;
/**
* Returns a product personalization workflow.
* @param reference An external reference to Customer's Canvas product, e.g online store product identifier.
* @param storefrontId (optional) Storefront identifier.
* @param tenantId (optional) Tenant identifier.
* @return Success
*/
getPersonalizationWorkflow(reference: string | null, storefrontId?: number | undefined, tenantId?: number | null | undefined): Observable<PersonalizationWorkflowDto>;
}
export declare class ProductReferencesApiClient extends ApiClientBase implements IProductReferencesApiClient {
private http;
private baseUrl;
protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
constructor(configuration: ApiClientConfiguration, http: HttpClient, baseUrl?: string);
/**
* 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, e.g online store product identifier.
* @param productSpecificationId (optional) Customer's Canvas product specification filter.
* @param productId (optional) Customer's Canvas product filter.
* @param productLinkId (optional) Customer'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
*/
getAll(storefrontId: number, productReference?: string | null | undefined, productSpecificationId?: number | 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): Observable<PagedOfProductReferenceDto>;
protected processGetAll(response: HttpResponseBase): Observable<PagedOfProductReferenceDto>;
/**
* Returns a list of product specifications 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, e.g online store product identifier.
* @param productSpecificationId (optional) Customer's Canvas product specification filter.
* @param productId (optional) Customer's Canvas product filter.
* @param productLinkId (optional) Customer'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
*/
getAllProductSpecifications(storefrontId: number, productReference?: string | null | undefined, productSpecificationId?: number | 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): Observable<PagedOfProductSpecificationDto>;
protected processGetAllProductSpecifications(response: HttpResponseBase): Observable<PagedOfProductSpecificationDto>;
/**
* Returns a list of products 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, e.g online store product identifier.
* @param productSpecificationId (optional) Customer's Canvas product specification filter.
* @param productId (optional) Customer's Canvas product filter.
* @param productLinkId (optional) Customer'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
*/
getAllProducts(storefrontId: number, productReference?: string | null | undefined, productSpecificationId?: number | 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): Observable<PagedOfProductDto>;
protected processGetAllProducts(response: HttpResponseBase): Observable<PagedOfProductDto>;
/**
* 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, e.g online store product identifier.
* @param productSpecificationId (optional) Customer's Canvas product specification filter.
* @param productId (optional) Customer's Canvas product filter.
* @param productLinkId (optional) Customer'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
*/
getAllProductLinks(storefrontId: number, productReference?: string | null | undefined, productSpecificationId?: number | 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): Observable<PagedOfProductLinkDto>;
protected processGetAllProductLinks(response: HttpResponseBase): Observable<PagedOfProductLinkDto>;
/**
* Returns a storefront product reference.
* @param reference An external reference to Customer's Canvas product, e.g online store product identifier.
* @param storefrontId Storefront identifier.
* @param tenantId (optional) Tenant identifier.
* @return Success
*/
get(reference: string | null, storefrontId: number, tenantId?: number | null | undefined): Observable<ProductReferenceDto>;
protected processGet(response: HttpResponseBase): Observable<ProductReferenceDto>;
/**
* Returns a product specification by the 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
*/
getProductSpecification(reference: string | null, storefrontId: number, tenantId?: number | null | undefined): Observable<ProductSpecificationDto>;
protected processGetProductSpecification(response: HttpResponseBase): Observable<ProductSpecificationDto>;
/**
* Returns a product by storefront product reference.
* @param reference An external reference to Customer's Canvas product, e.g online store product identifier.
* @param storefrontId Storefront identifier.
* @param tenantId (optional) Tenant identifier.
* @return Success
*/
getProduct(reference: string | null, storefrontId: number, tenantId?: number | null | undefined): Observable<ProductDto>;
protected processGetProduct(response: HttpResponseBase): Observable<ProductDto>;
/**
* Returns a product summary by storefront product reference.
* @param reference An 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
*/
getProductSummary(reference: string | null, storefrontId: number, productVariantId?: number | null | undefined, sku?: string | null | undefined, tenantId?: number | null | undefined): Observable<ProductSummaryDto>;
protected processGetProductSummary(response: HttpResponseBase): Observable<ProductSummaryDto>;
/**
* Returns a product link by storefront product reference.
* @param reference An external reference to Customer's Canvas product, e.g online store product identifier.
* @param storefrontId Storefront identifier.
* @param tenantId (optional) Tenant identifier.
* @return Success
*/
getProductLink(reference: string | null, storefrontId: number, tenantId?: number | null | undefined): Observable<ProductLinkDto>;
protected processGetProductLink(response: HttpResponseBase): Observable<ProductLinkDto>;
/**
* Returns a product cost details from ecommerce system.
* @param reference An external reference to Customer's Canvas product, 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
*/
getProductCostDetails(reference: string | null, sku: string, storefrontId: number, storefrontUserId?: string | null | undefined, currencyCode?: string | null | undefined, quantity?: number | undefined, tenantId?: number | null | undefined): Observable<ProductCostDetailsDto>;
protected processGetProductCostDetails(response: HttpResponseBase): Observable<ProductCostDetailsDto>;
/**
* Returns a product personalization workflow.
* @param reference An external reference to Customer's Canvas product, e.g online store product identifier.
* @param storefrontId (optional) Storefront identifier.
* @param tenantId (optional) Tenant identifier.
* @return Success
*/
getPersonalizationWorkflow(reference: string | null, storefrontId?: number | undefined, tenantId?: number | null | undefined): Observable<PersonalizationWorkflowDto>;
protected processGetPersonalizationWorkflow(response: HttpResponseBase): Observable<PersonalizationWorkflowDto>;
}
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 tenantId (optional) Tenant identifier.
* @return Success
*/
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, tenantId?: number | null | undefined): Observable<PagedOfProductDto>;
/**
* Returns a product by identifier.
* @param id Product identifier.
* @param productVersionId (optional) Product version identifier.
* @param tenantId (optional) Tenant identifier.
* @return Success
*/
getProduct(id: number, productVersionId?: number | null | undefined, tenantId?: number | null | undefined): Observable<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
*/
getProductSummary(id: number, productVersionId?: number | null | undefined, productLinkId?: number | null | undefined, productVariantId?: number | null | undefined, sku?: string | null | undefined, tenantId?: number | null | undefined): Observable<ProductSummaryDto>;
/**
* Returns a list of product options.
* @param id Product identifier.
* @param productVersionId (optional) Product version identifier.
* @param tenantId (optional) Tenant identifier.
* @return Success
*/
getProductOptions(id: number, productVersionId?: number | null | undefined, tenantId?: number | null | undefined): Observable<PagedOfProductOptionDto>;
/**
* Returns a list of product options for all products.
* @param tenantId (optional) Tenant identifier.
* @return Success
*/
getAllProductOptions(tenantId?: number | null | undefined): Observable<PagedOfProductOptionDto>;
/**
* Returns a list of product links.
* @param id Product identifier.
* @param productVersionId (optional)
* @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
*/
getProductLinks(id: number, productVersionId?: number | null | undefined, skip?: number | null | undefined, take?: number | null | undefined, sorting?: string | null | undefined, search?: string | null | undefined, tenantId?: number | null | undefined): Observable<PagedOfProductLinkDto>;
/**
* Returns a product link.
* @param id Product identifier.
* @param productLinkId Product link identifier.
* @param productVersionId (optional)
* @param tenantId (optional) Tenant identifier.
* @return Success
*/
getProductLink(id: number, productLinkId: number, productVersionId?: number | null | undefined, tenantId?: number | null | undefined): Observable<ProductLinkDto>;
/**
* 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
*/
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): Observable<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
*/
getProductVariant(id: number, productVariantId: number, productVersionId?: number | null | undefined, tenantId?: number | null | undefined): Observable<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
*/
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): Observable<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
*/
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): Observable<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
*/
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): Observable<PagedOfProductVariantDocumentDto>;
/**
* Updates product variant resources.
* @param id Product identifier.
* @param productVersionId (optional) Product version identifier.
* @param tenantId (optional) Tenant identifier.
* @return Success
*/
updateProductVariantResources(id: number, productVersionId?: number | null | undefined, tenantId?: number | null | undefined): Observable<void>;
/**
* Returns a list of all available product tags.
* @param search (optional) Search string for partial match.
* @param tenantId (optional) Tenant identifier.
* @return Success
*/
getAvailableProductTags(search?: string | null | undefined, tenantId?: number | null | undefined): Observable<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
*/
getPersonalizationWorkflow(id: number, productVersionId?: number | null | undefined, productLinkId?: number | null | undefined, productFilterId?: number | null | undefined, tenantId?: number | null | undefined): Observable<PersonalizationWorkflowDto>;
}
export declare class ProductsApiClient extends ApiClientBase implements IProductsApiClient {
private http;
private baseUrl;
protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
constructor(configuration: ApiClientConfiguration, http: HttpClient, baseUrl?: string);
/**
* 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 tenantId (optional) Tenant identifier.
* @return Success
*/
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, tenantId?: number | null | undefined): Observable<PagedOfProductDto>;
protected processGetAllProducts(response: HttpResponseBase): Observable<PagedOfProductDto>;
/**
* Returns a product by identifier.
* @param id Product identifier.
* @param productVersionId (optional) Product version identifier.
* @param tenantId (optional) Tenant identifier.
* @return Success
*/
getProduct(id: number, productVersionId?: number | null | undefined, tenantId?: number | null | undefined): Observable<ProductDto>;
protected processGetProduct(response: HttpResponseBase): Observable<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
*/
getProductSummary(id: number, productVersionId?: number | null | undefined, prod