Options
All
  • Public
  • Public/Protected
  • All
Menu

Module products

Index

References

Namespaces

Classes

Type aliases

Variables

References

BoolFilter

Re-exports BoolFilter

BoolFilter

Re-exports BoolFilter

BoolFilterOperatorEnum

Re-exports BoolFilterOperatorEnum

BoolFilterOperatorEnum

Re-exports BoolFilterOperatorEnum

BoolQuery

Re-exports BoolQuery

BoolQuery

Re-exports BoolQuery

CatalogCategoryId

Re-exports CatalogCategoryId

CatalogCategoryId

Re-exports CatalogCategoryId

CategorizationAttributeDefinition

Re-exports CategorizationAttributeDefinition

CategorizationAttributeDefinition

Re-exports CategorizationAttributeDefinition

CategorizationAttributeDefinitionAllowedOperatorsEnum

Re-exports CategorizationAttributeDefinitionAllowedOperatorsEnum

CategorizationAttributeDefinitionAllowedOperatorsEnum

Re-exports CategorizationAttributeDefinitionAllowedOperatorsEnum

CategorizationAttributeDefinitionAttributeTypeEnum

Re-exports CategorizationAttributeDefinitionAttributeTypeEnum

CategorizationAttributeDefinitionAttributeTypeEnum

Re-exports CategorizationAttributeDefinitionAttributeTypeEnum

CategorizationAttributeDefinitionValueTypeEnum

Re-exports CategorizationAttributeDefinitionValueTypeEnum

CategorizationAttributeDefinitionValueTypeEnum

Re-exports CategorizationAttributeDefinitionValueTypeEnum

CategorizationAttributeDefinitionsResult

Re-exports CategorizationAttributeDefinitionsResult

CategorizationAttributeDefinitionsResult

Re-exports CategorizationAttributeDefinitionsResult

CurrencyCode

Re-exports CurrencyCode

CurrencyCode

Re-exports CurrencyCode

DefaultFallback

Re-exports DefaultFallback

DefaultFallback

Re-exports DefaultFallback

ErrorResponse

Re-exports ErrorResponse

ErrorResponse

Re-exports ErrorResponse

Filter

Re-exports Filter

Filter

Re-exports Filter

FilteredQuery

Re-exports FilteredQuery

FilteredQuery

Re-exports FilteredQuery

ImageGroup

Re-exports ImageGroup

ImageGroup

Re-exports ImageGroup

LocaleCode

Re-exports LocaleCode

LocaleCode

Re-exports LocaleCode

MarkupText

Re-exports MarkupText

MarkupText

Re-exports MarkupText

Master

Re-exports Master

Master

Re-exports Master

MediaFile

Re-exports MediaFile

MediaFile

Re-exports MediaFile

Money

Re-exports Money

Money

Re-exports Money

NestedQuery

Re-exports NestedQuery

NestedQuery

Re-exports NestedQuery

NestedQueryScoreModeEnum

Re-exports NestedQueryScoreModeEnum

NestedQueryScoreModeEnum

Re-exports NestedQueryScoreModeEnum

NoValue

Re-exports NoValue

NoValue

Re-exports NoValue

PaginatedResultBase

Re-exports PaginatedResultBase

PaginatedResultBase

Re-exports PaginatedResultBase

PaginatedSearchResult

Re-exports PaginatedSearchResult

PaginatedSearchResult

Re-exports PaginatedSearchResult

Product

Re-exports Product

Product

Re-exports Product

ProductOption

Re-exports ProductOption

ProductOption

Re-exports ProductOption

ProductOptionSortingModeEnum

Re-exports ProductOptionSortingModeEnum

ProductOptionSortingModeEnum

Re-exports ProductOptionSortingModeEnum

ProductOptionValue

Re-exports ProductOptionValue

ProductOptionValue

Re-exports ProductOptionValue

ProductOptions

Re-exports ProductOptions

ProductOptions

Re-exports ProductOptions

ProductSearchRequest

Re-exports ProductSearchRequest

ProductSearchRequest

Re-exports ProductSearchRequest

ProductSearchResult

Re-exports ProductSearchResult

ProductSearchResult

Re-exports ProductSearchResult

ProductType

Re-exports ProductType

ProductType

Re-exports ProductType

Products

Re-exports Products

Products

Re-exports Products

Query

Re-exports Query

Query

Re-exports Query

QueryFilter

Re-exports QueryFilter

QueryFilter

Re-exports QueryFilter

Range2Filter

Re-exports Range2Filter

Range2Filter

Re-exports Range2Filter

Range2FilterFilterModeEnum

Re-exports Range2FilterFilterModeEnum

Range2FilterFilterModeEnum

Re-exports Range2FilterFilterModeEnum

RangeFilter

Re-exports RangeFilter

RangeFilter

Re-exports RangeFilter

RangeFilterFrom

Re-exports RangeFilterFrom

RangeFilterFrom

Re-exports RangeFilterFrom

RangeFilterTo

Re-exports RangeFilterTo

RangeFilterTo

Re-exports RangeFilterTo

ResultBase

Re-exports ResultBase

ResultBase

Re-exports ResultBase

SearchRequest

Re-exports SearchRequest

SearchRequest

Re-exports SearchRequest

Sort

Re-exports Sort

Sort

Re-exports Sort

SortSortOrderEnum

Re-exports SortSortOrderEnum

SortSortOrderEnum

Re-exports SortSortOrderEnum

TermFilter

Re-exports TermFilter

TermFilter

Re-exports TermFilter

TermFilterOperatorEnum

Re-exports TermFilterOperatorEnum

TermFilterOperatorEnum

Re-exports TermFilterOperatorEnum

TermQuery

Re-exports TermQuery

TermQuery

Re-exports TermQuery

TermQueryOperatorEnum

Re-exports TermQueryOperatorEnum

TermQueryOperatorEnum

Re-exports TermQueryOperatorEnum

TermQueryValuesInner

Re-exports TermQueryValuesInner

TermQueryValuesInner

Re-exports TermQueryValuesInner

TextQuery

Re-exports TextQuery

TextQuery

Re-exports TextQuery

Variant

Re-exports Variant

Variant

Re-exports Variant

VariantSearchRequest

Re-exports VariantSearchRequest

VariantSearchRequest

Re-exports VariantSearchRequest

VariantSearchResult

Re-exports VariantSearchResult

VariantSearchResult

Re-exports VariantSearchResult

Variants

Re-exports Variants

Variants

Re-exports Variants

VariationAttribute

Re-exports VariationAttribute

VariationAttribute

Re-exports VariationAttribute

VariationAttributeValue

Re-exports VariationAttributeValue

VariationAttributeValue

Re-exports VariationAttributeValue

VariationAttributeVariationAttributeTypeEnum

Re-exports VariationAttributeVariationAttributeTypeEnum

VariationAttributeVariationAttributeTypeEnum

Re-exports VariationAttributeVariationAttributeTypeEnum

VariationAttributes

Re-exports VariationAttributes

VariationAttributes

Re-exports VariationAttributes

VariationGroup

Re-exports VariationGroup

VariationGroup

Re-exports VariationGroup

VariationGroups

Re-exports VariationGroups

VariationGroups

Re-exports VariationGroups

defaultBaseUri

Re-exports defaultBaseUri

Type aliases

BoolFilter

BoolFilter: { filters?: Array<Filter>; operator: BoolFilterOperatorEnum } & {}
property

filters: A list of filters that are logically combined by an operator.

property

operator: The logical operator that is used to combine the filters.

BoolFilterOperatorEnum

BoolFilterOperatorEnum: "and" | "or" | "not"

BoolQuery

BoolQuery: { must?: Array<Query>; mustNot?: Array<Query>; should?: Array<Query> } & {}
property

must: List of queries to be evaluated as an AND operator.

property

mustNot: List of queries to be evaluated as a NOT operator.

property

should: List of queries to be evaluated as an OR operator.

CatalogCategoryId

CatalogCategoryId: { catalogId: string; categoryId: string } & {}
property

catalogId: The ID of the catalog.

  • Min Length: 1
  • Max Length: 256
property

categoryId: The ID of the category.

  • Min Length: 1
  • Max Length: 256

CategorizationAttributeDefinition

CategorizationAttributeDefinition: { allowedDisplayValues?: Array<string>; allowedOperators: Array<CategorizationAttributeDefinitionAllowedOperatorsEnum>; allowedValues?: Array<string>; attributeName?: string; attributeType: CategorizationAttributeDefinitionAttributeTypeEnum; id: string; valueType: CategorizationAttributeDefinitionValueTypeEnum } & {}
property

id: The ID of the supported attribute.

  • Max Length: 256
property

attributeName: The display name of the supported attribute.

  • Max Length: 4000
property

attributeType: The type of the attribute (custom/system/categorization). "system" indicates the System Attribute of the Product in ECOM, "custom" indicates the Custom Attribute of the Product in ECOM defined by merchant and "categorization" indicates the attribute used for categorization purposes ONLY and is not a defined attribute on the Product Object.

property

valueType: The value type of the attribute.

property

allowedOperators: The list of allowed operators for this attribute based on its value type.

property

allowedValues: The list of allowed values for this attribute IF its attributeType is an ENUM.

property

allowedDisplayValues: The list of allowed Localized Display values for this attribute IF its attributeType is an ENUM based on the locale query param requested. If no locale query param value is provided "default" locale is assumed.

CategorizationAttributeDefinitionAllowedOperatorsEnum

CategorizationAttributeDefinitionAllowedOperatorsEnum: "starts_with" | "contains" | "equals" | "not_equals" | "greater_than" | "less_than" | "is_one_of" | "not_one_of" | "is_defined" | "is_not_defined"

CategorizationAttributeDefinitionAttributeTypeEnum

CategorizationAttributeDefinitionAttributeTypeEnum: "custom" | "system" | "categorization"

CategorizationAttributeDefinitionValueTypeEnum

CategorizationAttributeDefinitionValueTypeEnum: "string" | "int" | "double" | "text" | "html" | "date" | "datetime" | "image" | "boolean" | "money" | "quantity" | "email" | "password" | "set-of-string" | "set-of-int" | "set-of-double" | "enum-of-string" | "enum-of-int"

CategorizationAttributeDefinitionsResult

CategorizationAttributeDefinitionsResult: { data: Array<CategorizationAttributeDefinition>; limit: number; total: number } & {}
property

data: The list of the categorization attribute definitions. This can be empty.

property

limit: Maximum records to retrieve per request, not to exceed the maximum defined. A limit must be at least 1 so at least one record is returned (if any match the criteria).

property

total: The total number of hits that match the search's criteria. This can be greater than the number of results returned as search results are pagenated.

CurrencyCode

CurrencyCode: NoValue | string

DefaultFallback

DefaultFallback: "default"

A specialized value indicating the system default values for locales.

ErrorResponse

ErrorResponse: { detail: string; instance?: string; title: string; type: string } & {}
property

title: A short, human-readable summary of the problem type. It will not change from occurrence to occurrence of the problem, except for purposes of localization

  • Max Length: 256
property

type: A URI reference [RFC3986] that identifies the problem type. This specification encourages that, when dereferenced, it provide human-readable documentation for the problem type (e.g., using HTML [W3C.REC-html5-20141028]). When this member is not present, its value is assumed to be "about:blank". It accepts relative URIs; this means that they must be resolved relative to the document's base URI, as per [RFC3986], Section 5.

  • Max Length: 2048
property

detail: A human-readable explanation specific to this occurrence of the problem.

property

instance: A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced. It accepts relative URIs; this means that they must be resolved relative to the document's base URI, as per [RFC3986], Section 5.

  • Max Length: 2048

Filter

Filter: { boolFilter?: BoolFilter; queryFilter?: QueryFilter; range2Filter?: Range2Filter; rangeFilter?: RangeFilter; termFilter?: TermFilter } & {}
property

boolFilter:

property

queryFilter:

property

range2Filter:

property

rangeFilter:

property

termFilter:

FilteredQuery

FilteredQuery: { filter: Filter; query: Query } & {}
property

filter:

property

query:

ImageGroup

ImageGroup: { images: Array<MediaFile>; variationAttributes?: Array<VariationAttribute>; viewType: string } & {}
property

images: The images of the image group.

property

variationAttributes: Returns a list of variation attributes applying to this image group.

property

viewType: The image view type.

LocaleCode

LocaleCode: DefaultFallback | string

MarkupText

MarkupText: { markup: string; source: string } & {}
property

markup: The rendered HTML.

property

source: The raw markup text.

Master

Master: { masterId: string; orderable?: boolean; price?: number; priceMax?: number; prices?: {} } & {}
property

masterId: The id (SKU) of the product.

  • Min Length: 1
  • Max Length: 100
property

orderable: A flag indicating whether at least one of the variants is orderable.

property

price: The minimum sales price of the related variants.

property

priceMax: The maximum sales of related variants.

property

prices: prices

MediaFile

MediaFile: { absUrl?: string; alt?: {}; disBaseUrl?: string; path: string; title?: {} } & {}
property

absUrl: The absolute URL with request protocol.

property

alt: The alternative image text.

property

disBaseUrl: The Dynamic Image Service (DIS) base URL for product images only.

property

path: The raw media file path.

property

title: The image title.

Money

Money: { currencyMnemonic?: CurrencyCode; value?: number } & {}
property

currencyMnemonic:

property

value: The amount of money for the given currency.

NestedQuery

NestedQuery: { path: string; query: Query; scoreMode?: NestedQueryScoreModeEnum } & {}
property

path: The path to the nested document.

  • Max Length: 2048
property

query:

property

scoreMode: Indicates how scores for matching child objects affect the root parent document’s relevance score.

NestedQueryScoreModeEnum

NestedQueryScoreModeEnum: "avg" | "total" | "max" | "none"

NoValue

NoValue: "N/A"

A specialized value indicating the lack of definition of a currency, for example, if the value of the monetary value of the currency is an undefined number.

PaginatedResultBase

PaginatedResultBase: { limit: number; offset: number; total: number } & {}
property

offset: The zero-based index of the first hit/data to include in the result.

property

limit: Maximum records to retrieve per request, not to exceed the maximum defined. A limit must be at least 1 so at least one record is returned (if any match the criteria).

property

total: The total number of hits that match the search's criteria. This can be greater than the number of results returned as search results are pagenated.

PaginatedSearchResult

PaginatedSearchResult: { hits?: Array<object>; limit: number; offset: number; query: Query; sorts?: Array<Sort>; total: number } & {}
property

query:

property

sorts: The sorting that was applied to the result.

property

hits: The sorted array of search hits. Can be empty.

property

offset: The zero-based index of the first hit/data to include in the result.

property

limit: Maximum records to retrieve per request, not to exceed the maximum defined. A limit must be at least 1 so at least one record is returned (if any match the criteria).

property

total: The total number of hits that match the search's criteria. This can be greater than the number of results returned as search results are pagenated.

Product

Product: { assignedCategories?: Array<CatalogCategoryId>; ats?: number; brand?: string; bundledProducts?: Array<Product>; classificationCategory?: CatalogCategoryId; creationDate?: string; defaultVariantId?: string; ean?: string; id: string; image?: MediaFile; imageGroups?: Array<ImageGroup>; inStock?: boolean; lastModified?: string; localizedTaxClassId?: {}; longDescription?: {}; manufacturerName?: string; manufacturerSku?: string; master?: Master; name?: {}; online?: boolean; onlineFlag?: {}; owningCatalogId?: string; owningCatalogName?: {}; pageDescription?: {}; pageKeywords?: {}; pageTitle?: {}; price?: number; priceCurrency?: string; pricePerUnit?: number; primaryCategories?: Array<CatalogCategoryId>; primaryCategoryId?: string; productBundles?: Array<Product>; productOptions?: Array<ProductOption>; productSets?: Array<Product>; searchable?: {}; setProducts?: Array<Product>; shortDescription?: {}; taxClassId?: string; type?: ProductType; unit?: string; unitMeasure?: string; unitQuantity?: number; upc?: string; validFrom?: {}; validTo?: {}; variants?: Array<Variant>; variationAttributes?: Array<VariationAttribute>; variationGroups?: Array<VariationGroup>; variationValues?: {} } & {}
property

assignedCategories: The catalog categories that the product is assigned to. It is read only.

property

ats: The Available To Sell (ATS) inventory value of the product. This is a calculated value.

property

brand: The brand of the product.

property

bundledProducts: The array of bundled products which the product includes. It is read only.

property

classificationCategory:

property

creationDate: Returns the value of attribute 'creationDate'. It is read only.

property

defaultVariantId: The ID of the product's default variant. It is read only.

property

ean: The European Article Number of the product.

property

id: The id (SKU) of the product.

  • Min Length: 1
  • Max Length: 100
property

image:

property

imageGroups: The array of product image groups. It is read only.

property

inStock: The flag that indicates if the product is in stock, or not. This is a calculated value.

property

lastModified: Returns the value of attribute 'lastModified'. It is read only.

property

localizedTaxClassId: The localized tax class identifier of the product.

property

longDescription: The localized long description of the product.

property

manufacturerName: The name of the product's manufacturer.

property

manufacturerSku: The SKU of the product's manufacturer.

property

master:

property

name: The localized name of the product.

property

online: The flag that indicates if the product is online, or not. This is a calculated value.

property

onlineFlag: The site-specific online status of the product.

property

owningCatalogId: The ID of the catalog that owns the product.

property

owningCatalogName: The localized name of the catalog that owns the product. It is read only.

property

pageDescription: The localized page description of the product.

property

pageKeywords: The localized page keywords of the product.

property

pageTitle: The localized page title of the product.

property

price: The price of the product.

property

priceCurrency: The currency code for a product's price.

property

pricePerUnit: The price per unit of the product. This is a read only field.

property

primaryCategories: The primary catalog categories that the product is assigned to. It is read only.

property

primaryCategoryId: The ID of the products primary category. This is a read only field. It is read only.

property

productBundles: The array of product bundles which the product belongs to. It is read only.

property

productOptions: The array of product options. This is applicable for products of type "option". It is read only.

property

productSets: The array of product sets which the product belongs to. It is read only.

property

searchable: The site-specific searchable status of the product.

property

setProducts: The array of set products which the product includes. It is read only.

property

shortDescription: The localized short description of the product.

property

taxClassId: The tax class identifier of the product.

property

type:

property

unit: The sales unit of the product.

property

unitMeasure: The unitMeasure of the product.

property

unitQuantity: The unitQuantity of the product.

property

upc: The Universal Product Code (UPC) of the product.

property

validFrom: The valid/online from date of the product.

property

validTo: The valid/online to date of the product.

property

variants: The array of variants of the product. This is applicable for product types "master" and "variationGroup" only. It is read only.

property

variationAttributes: The sorted array of variation attributes assigned to the product. This is applicable for product types "master", "variationGroup" and "variant" only. It is read only.

property

variationGroups: The array of variation groups in the product. This is applicable for product type "master" only. It is read only.

property

variationValues: The variation values selected for the product in variation attribute id and value pairs. This is applicable for product types "Variant" and "VariationGroup" only. It is read only.

ProductOption

ProductOption: { customName?: {}; defaultProductOptionValue?: string; description?: {}; id: string; image?: MediaFile; name?: string; selectedOptionValue?: string; shared?: boolean; sortingMode?: ProductOptionSortingModeEnum; values?: Array<ProductOptionValue> } & {}
property

customName: The localized custom name of the product option.

property

defaultProductOptionValue: The default product option value.

property

description: The localized description of the product option.

property

id: The object attribute definition ID which is also the identifier for the product option.

  • Min Length: 1
property

image:

property

name: The name of the object attribute definition.

property

selectedOptionValue: The selected option value of the product option.

property

shared: The flag that indicates if the product option is shared or local.

property

sortingMode: The sorting mode for the product option values.

property

values: The sorted array of values of the product option.

ProductOptionSortingModeEnum

ProductOptionSortingModeEnum: "byexplicitorder" | "byoptionprice"

ProductOptionValue

ProductOptionValue: { defaultProductOptionValue?: boolean; id: string; optionPrices?: Array<Money>; skuExtension?: string; value: {} } & {}
property

defaultProductOptionValue: Flag indicating if the product option value is the default value for the product option.

property

id: The ID of the product option value.

  • Min Length: 1
property

optionPrices: The list of prices in the product option value.

property

skuExtension: The SKU extension of the product option value.

property

value: The localized value of the product option.

ProductOptions

ProductOptions: { data: Array<ProductOption>; limit: number; offset: number; total: number } & {}
property

data: The array of product option objects.

property

offset: The zero-based index of the first hit/data to include in the result.

property

limit: Maximum records to retrieve per request, not to exceed the maximum defined. A limit must be at least 1 so at least one record is returned (if any match the criteria).

property

total: The total number of hits that match the search's criteria. This can be greater than the number of results returned as search results are pagenated.

ProductSearchRequest

ProductSearchRequest: { limit?: number; offset?: number; query: Query; sorts?: Array<Sort> } & {}
property

limit: Maximum records to retrieve per request, not to exceed 200.

property

query:

property

sorts: The list of sort clauses configured for the search request. Sort clauses are optional. See the description of the search endpoint for details on the default sorting behavior that is used when explicit sorts are not passed.

property

offset: The zero-based index of the first hit/data to include in the result.

ProductSearchResult

ProductSearchResult: { hits: Array<Product>; limit: number; offset: number; query: Query; sorts?: Array<Sort>; total: number } & {}
property

hits: A sorted array of search hits (Product objects). The array can be empty.

property

query:

property

sorts: The sorting that was applied to the result.

property

offset: The zero-based index of the first hit/data to include in the result.

property

limit: Maximum records to retrieve per request, not to exceed the maximum defined. A limit must be at least 1 so at least one record is returned (if any match the criteria).

property

total: The total number of hits that match the search's criteria. This can be greater than the number of results returned as search results are pagenated.

ProductType

ProductType: { bundle?: boolean; bundled?: boolean; item?: boolean; master: boolean; option?: boolean; partOfProductSet?: boolean; partOfRetailSet?: boolean; retailSet?: boolean; set?: boolean; variant?: boolean; variationGroup?: boolean } & {}
property

bundle: A flag indicating whether the product is a bundle.

property

bundled: A flag indicating whether the product is bundled.

property

item: A flag indicating whether the product is a standard item.

property

master: A flag indicating whether the product is a master.

property

option: A flag indicating whether the product is an option.

property

partOfProductSet: A flag indicating whether the product is part of product set.

property

partOfRetailSet: A flag indicating whether the product is part of retail set.

property

retailSet: A flag indicating whether the product is a retail set.

property

set: A flag indicating whether the product is a set.

property

variant: A flag indicating whether the product is a variant.

property

variationGroup: A flag indicating whether the product is a variation group.

Query

Query: { boolQuery?: BoolQuery; filteredQuery?: FilteredQuery; matchAllQuery?: object; nestedQuery?: NestedQuery; termQuery?: TermQuery; textQuery?: TextQuery } & {}
property

boolQuery:

property

filteredQuery:

property

matchAllQuery: Matches all documents (namespace and document type). This query comes in handy if you just want to filter a search result or really do not have any constraints.

property

nestedQuery:

property

termQuery:

property

textQuery:

QueryFilter

QueryFilter: { query: Query } & {}
property

query:

Range2Filter

Range2Filter: { filterMode?: Range2FilterFilterModeEnum; fromField: string; fromInclusive?: boolean; fromValue?: any | null; toField: string; toInclusive?: boolean; toValue?: any | null } & {}
property

filterMode: Compare mode: overlap, containing, or contained.

property

fromField: The field name of the field that starts the first range.

  • Max Length: 260
property

fromInclusive: A flag indicating if the lower bound of the second range is inclusive. To make the lower bound exclusive, set to false.

property

fromValue: The lower bound of the second range. If not specified, the range is open-ended with respect to the lower bound. You can't leave both the lower and upper bounds open-ended.

property

toField: The field name of the field that ends the first range.

  • Max Length: 260
property

toInclusive: A flag indicating if the upper bound of the second range is inclusive. To make the lower bound exclusive, set to false.

property

toValue: The upper bound of the second range. If not specified, the range is open-ended with respect to the upper bound. You can't leave both the upper and lower bounds open-ended.

Range2FilterFilterModeEnum

Range2FilterFilterModeEnum: "overlap" | "containing" | "contained"

RangeFilter

RangeFilter: { field: string; from?: RangeFilterFrom; fromInclusive?: boolean; to?: RangeFilterTo; toInclusive?: boolean } & {}
property

field: The search field.

  • Max Length: 260
property

from:

property

fromInclusive: A flag indicating if the lower bound of the range is inclusive. To make the lower bound exclusive, set to false.

property

to:

property

toInclusive: A flag indicating if the upper bound of the range is inclusive. To make the upper bound exclusive, set to false.

RangeFilterFrom

RangeFilterFrom: Date | number

RangeFilterTo

RangeFilterTo: Date | number

ResultBase

ResultBase: { limit: number; total: number } & {}
property

limit: Maximum records to retrieve per request, not to exceed the maximum defined. A limit must be at least 1 so at least one record is returned (if any match the criteria).

property

total: The total number of hits that match the search's criteria. This can be greater than the number of results returned as search results are pagenated.

SearchRequest

SearchRequest: { limit?: number; offset?: number; query: Query; sorts?: Array<Sort> } & {}
property

limit: Maximum records to retrieve per request, not to exceed 200.

property

query:

property

sorts: The list of sort clauses configured for the search request. Sort clauses are optional. See the description of the search endpoint for details on the default sorting behavior that is used when explicit sorts are not passed.

property

offset: The zero-based index of the first hit/data to include in the result.

Sort

Sort: { field: string; sortOrder?: SortSortOrderEnum } & {}
property

field: The name of the field to sort on.

  • Max Length: 256
property

sortOrder: The sort order to be applied when sorting. When omitted, the default sort order (asc) is used.

SortSortOrderEnum

SortSortOrderEnum: "asc" | "desc"

TermFilter

TermFilter: { field: string; operator: TermFilterOperatorEnum; values?: Array<string> } & {}
property

field: The filter field.

  • Max Length: 260
property

operator: The operator used to compare the field's values with the given values.

property

values: The filter values.

TermFilterOperatorEnum

TermFilterOperatorEnum: "is" | "one_of" | "is_null" | "is_not_null" | "less" | "greater" | "not_in" | "neq"

TermQuery

TermQuery: { fields: Array<string>; operator: TermQueryOperatorEnum; values?: Array<TermQueryValuesInner> } & {}
property

fields: The document fields that the values are matched against, combined with the operator.

property

operator: Returns the operator to use for the term query.

property

values: The values that the fields are compared against, combined with the operator.

TermQueryOperatorEnum

TermQueryOperatorEnum: "is" | "one_of" | "is_null" | "is_not_null" | "less" | "greater" | "not_in" | "neq"

TermQueryValuesInner

TermQueryValuesInner: boolean | number | string

TextQuery

TextQuery: { fields: Array<string>; searchPhrase: string } & {}
property

fields: The document fields that the search phrase matches against.

property

searchPhrase: A search phrase, which can include multiple terms separated by spaces.

Variant

Variant: { ats?: number; defaultProductVariation?: boolean; image?: MediaFile; inStock?: boolean; online?: boolean; orderable?: boolean; price?: number; priceCurrency?: string; productId: string; searchable?: {}; variationAttributes?: Array<VariationAttribute>; variationValues?: {} } & {}
property

ats: The Available To Sell (ATS) inventory value of the product. This is a calculated value.

property

defaultProductVariation: A flag indicating whether the variant is a default variant.

property

image:

property

inStock: True if the product is in stock, false if not.

property

online: If the product is currently online. True if online, false if not.

property

orderable: A flag indicating whether the variant is orderable.

property

price: The sales price of the variant.

property

priceCurrency: Currency code for the price of the product.

property

productId: The id (SKU) of the product.

  • Min Length: 1
  • Max Length: 100
property

searchable: A flag indicating whether the variant is searchable.

property

variationAttributes: Variation attributes.

property

variationValues: The actual variation attribute ID - value pairs.

VariantSearchRequest

VariantSearchRequest: { limit?: number; offset?: number; query: Query; sorts?: Array<Sort> } & {}
property

limit: Maximum records to retrieve per request, not to exceed 200.

property

query:

property

sorts: The list of sort clauses configured for the search request. Sort clauses are optional. See the description of the search endpoint for details on the default sorting behavior that is used when explicit sorts are not passed.

property

offset: The zero-based index of the first hit/data to include in the result.

VariantSearchResult

VariantSearchResult: { hits: Array<Variant>; limit: number; offset: number; query: Query; sorts?: Array<Sort>; total: number } & {}
property

hits: An array of search hits (Variant objects).

property

query:

property

sorts: The sorting that was applied to the result.

property

offset: The zero-based index of the first hit/data to include in the result.

property

limit: Maximum records to retrieve per request, not to exceed the maximum defined. A limit must be at least 1 so at least one record is returned (if any match the criteria).

property

total: The total number of hits that match the search's criteria. This can be greater than the number of results returned as search results are pagenated.

Variants

Variants: { data: Array<Variant>; limit: number; offset: number; total: number } & {}
property

data: An array of variants.

property

offset: The zero-based index of the first hit/data to include in the result.

property

limit: Maximum records to retrieve per request, not to exceed the maximum defined. A limit must be at least 1 so at least one record is returned (if any match the criteria).

property

total: The total number of hits that match the search's criteria. This can be greater than the number of results returned as search results are pagenated.

VariationAttribute

VariationAttribute: { attributeDefinitionId: string; attributeDefinitionName?: {}; defaultValue?: string; id?: string; name?: {}; shared?: boolean; slicing?: boolean; values?: Array<VariationAttributeValue>; variationAttributeType?: VariationAttributeVariationAttributeTypeEnum } & {}
property

attributeDefinitionId: The id of the requested attribute definition.

property

attributeDefinitionName: The localized display name of the variation attribute definition.

property

defaultValue: Default variation attribute value.

property

id: The ID of the variation attribute.

  • Min Length: 1
property

name: The localized display name of the variation attribute.

property

shared: Returns the value of attribute 'shared' if attribute is local or shared.

property

slicing: Returns the value of attribute 'slicing'.

property

values: The sorted array of variation values. This array can be empty.

property

variationAttributeType: Variation attribute type.

VariationAttributeValue

VariationAttributeValue: { description?: {}; image?: MediaFile; imageSwatch?: MediaFile; name?: {}; orderable?: boolean; position?: number; value: string } & {}
property

description: The localized description of the variation value.

property

image:

property

imageSwatch:

property

name: The localized display name of the variation value.

property

orderable: A flag indicating whether at least one variant with this variation attribute value is available to sell.

property

position: The position of the value among all values of a variation attribute.

property

value: The actual variation value.

  • Min Length: 1

VariationAttributeVariationAttributeTypeEnum

VariationAttributeVariationAttributeTypeEnum: "string" | "int" | "unknown"

VariationAttributes

VariationAttributes: { data: Array<VariationAttribute>; limit: number; offset: number; total: number } & {}
property

data: The array of variation attribute objects.

property

offset: The zero-based index of the first hit/data to include in the result.

property

limit: Maximum records to retrieve per request, not to exceed the maximum defined. A limit must be at least 1 so at least one record is returned (if any match the criteria).

property

total: The total number of hits that match the search's criteria. This can be greater than the number of results returned as search results are pagenated.

VariationGroup

VariationGroup: { orderable?: boolean; price?: number; productId: string; variationValues?: {} } & {}
property

orderable: A flag indicating whether the variation group is orderable.

property

price: The sales price of the variation group.

property

productId: The ID (SKU) of the variation group.

  • Min Length: 1
  • Max Length: 100
property

variationValues: The actual variation attribute ID - value pairs.

VariationGroups

VariationGroups: { data: Array<VariationGroup>; limit: number; offset: number; total: number } & {}
property

data: The array of variation group objects.

property

offset: The zero-based index of the first hit/data to include in the result.

property

limit: Maximum records to retrieve per request, not to exceed the maximum defined. A limit must be at least 1 so at least one record is returned (if any match the criteria).

property

total: The total number of hits that match the search's criteria. This can be greater than the number of results returned as search results are pagenated.

Variables

Const defaultBaseUri

defaultBaseUri: "https://{shortCode}.api.commercecloud.salesforce.com/product/products/v1" = "https://{shortCode}.api.commercecloud.salesforce.com/product/products/v1"

Generated using TypeDoc