Options
All
  • Public
  • Public/Protected
  • All
Menu

Module campaigns

Index

References

Namespaces

Classes

Type aliases

Variables

References

AssignmentBusinessRuleViolationErrorResponse

Re-exports AssignmentBusinessRuleViolationErrorResponse

AssignmentBusinessRuleViolationErrorResponse

Re-exports AssignmentBusinessRuleViolationErrorResponse

AssignmentIdMismatchErrorResponse

Re-exports AssignmentIdMismatchErrorResponse

AssignmentIdMismatchErrorResponse

Re-exports AssignmentIdMismatchErrorResponse

BoolFilter

Re-exports BoolFilter

BoolFilter

Re-exports BoolFilter

BoolFilterOperatorEnum

Re-exports BoolFilterOperatorEnum

BoolFilterOperatorEnum

Re-exports BoolFilterOperatorEnum

BoolQuery

Re-exports BoolQuery

BoolQuery

Re-exports BoolQuery

Campaign

Re-exports Campaign

Campaign

Re-exports Campaign

CampaignNotFoundErrorResponse

Re-exports CampaignNotFoundErrorResponse

CampaignNotFoundErrorResponse

Re-exports CampaignNotFoundErrorResponse

CampaignSearchResult

Re-exports CampaignSearchResult

CampaignSearchResult

Re-exports CampaignSearchResult

Campaigns

Re-exports Campaigns

Campaigns

Re-exports Campaigns

ErrorResponse

Re-exports ErrorResponse

ErrorResponse

Re-exports ErrorResponse

Filter

Re-exports Filter

Filter

Re-exports Filter

FilteredQuery

Re-exports FilteredQuery

FilteredQuery

Re-exports FilteredQuery

InlineObject

Re-exports InlineObject

InlineObject

Re-exports InlineObject

InlineObject1

Re-exports InlineObject1

InlineObject1

Re-exports InlineObject1

InlineObject2

Re-exports InlineObject2

InlineObject2

Re-exports InlineObject2

NestedQuery

Re-exports NestedQuery

NestedQuery

Re-exports NestedQuery

NestedQueryScoreModeEnum

Re-exports NestedQueryScoreModeEnum

NestedQueryScoreModeEnum

Re-exports NestedQueryScoreModeEnum

PaginatedResultBase

Re-exports PaginatedResultBase

PaginatedResultBase

Re-exports PaginatedResultBase

PaginatedSearchResult

Re-exports PaginatedSearchResult

PaginatedSearchResult

Re-exports PaginatedSearchResult

PromotionCampaignAssignment

Re-exports PromotionCampaignAssignment

PromotionCampaignAssignment

Re-exports PromotionCampaignAssignment

PromotionCampaignAssignmentNotFoundErrorResponse

Re-exports PromotionCampaignAssignmentNotFoundErrorResponse

PromotionCampaignAssignmentNotFoundErrorResponse

Re-exports PromotionCampaignAssignmentNotFoundErrorResponse

PromotionCampaignAssignmentRequest

Re-exports PromotionCampaignAssignmentRequest

PromotionCampaignAssignmentRequest

Re-exports PromotionCampaignAssignmentRequest

PromotionCampaignAssignmentResult

Re-exports PromotionCampaignAssignmentResult

PromotionCampaignAssignmentResult

Re-exports PromotionCampaignAssignmentResult

PromotionCampaignAssignmentUpdate

Re-exports PromotionCampaignAssignmentUpdate

PromotionCampaignAssignmentUpdate

Re-exports PromotionCampaignAssignmentUpdate

PromotionNotFoundErrorResponse

Re-exports PromotionNotFoundErrorResponse

PromotionNotFoundErrorResponse

Re-exports PromotionNotFoundErrorResponse

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

Recurrence

Re-exports Recurrence

Recurrence

Re-exports Recurrence

RecurrenceDayOfWeekEnum

Re-exports RecurrenceDayOfWeekEnum

RecurrenceDayOfWeekEnum

Re-exports RecurrenceDayOfWeekEnum

RequiredQualifier

Re-exports RequiredQualifier

RequiredQualifier

Re-exports RequiredQualifier

ResultBase

Re-exports ResultBase

ResultBase

Re-exports ResultBase

Schedule

Re-exports Schedule

Schedule

Re-exports Schedule

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

TimeOfDay

Re-exports TimeOfDay

TimeOfDay

Re-exports TimeOfDay

defaultBaseUri

Re-exports defaultBaseUri

Type aliases

AssignmentBusinessRuleViolationErrorResponse

AssignmentBusinessRuleViolationErrorResponse: { 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

AssignmentIdMismatchErrorResponse

AssignmentIdMismatchErrorResponse: { 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

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.

Campaign

Campaign: { campaignId?: string; coupons?: Array<string>; creationDate?: string; customerGroups?: Array<string>; description?: string; enabled?: boolean; endDate?: string; lastModified?: string; sourceCodeGroups?: Array<string>; startDate?: string } & {}
property

campaignId: The ID of the campaign.

  • Min Length: 1
  • Max Length: 256
property

coupons: The array of assigned coupon IDs, not sorted.

property

creationDate: Returns the value of attribute 'creationDate'.

property

customerGroups: The array of assigned customer groups, not sorted.

property

description: The description of the campaign.

  • Max Length: 4000
property

enabled: The enabled flag for campaign.

property

endDate: The date the scenario ends.

property

lastModified: Returns the value of attribute 'lastModified'.

property

sourceCodeGroups: The array of assigned source code groups, not sorted.

property

startDate: The date the scenario begins.

CampaignNotFoundErrorResponse

CampaignNotFoundErrorResponse: { campaignId?: string; detail: string; instance?: string; siteId?: string; title: string; type: string } & {}
property

campaignId: The ID of the campaign.

  • Min Length: 1
  • Max Length: 256
property

siteId: The identifier of the site that a request is being made in the context of. Attributes might have site specific values, and some objects may only be assigned to specific sites

  • Min Length: 1
  • Max Length: 32
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

CampaignSearchResult

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

hits: The sorted array of campaign search hits. 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. The limit with its constraints (minimum, maximum, default) is defined by the request parameter limit of the endpoint returning this schema.

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.

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:

InlineObject

InlineObject1

InlineObject2

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"

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. The limit with its constraints (minimum, maximum, default) is defined by the request parameter limit of the endpoint returning this schema.

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. The limit with its constraints (minimum, maximum, default) is defined by the request parameter limit of the endpoint returning this schema.

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.

PromotionCampaignAssignment

PromotionCampaignAssignment: { campaign: Campaign; campaignId: string; coupons: Array<string>; couponsBased: boolean; customerGroups: Array<string>; customerGroupsBased: boolean; enabled: boolean; promotionId: string; rank: number; requiredQualifier: RequiredQualifier; schedule: Schedule; sourceCodeBased: boolean; sourceCodeGroups: Array<string> } & {}
property

campaign: The campaign.

property

campaignId: The ID of the campaign.

  • Min Length: 1
  • Max Length: 256
property

coupons: The sorted array of assigned coupon IDs.

property

couponsBased: Whether the coupons qualifier participates in the assignment's qualification rule. When true, the assigned coupons gate the promotion (combined with campaign-level coupons). When omitted, defaults to true if a non-empty coupons array is supplied, otherwise false.

property

customerGroups: The sorted array of assigned customer groups.

property

customerGroupsBased: Whether the customer-groups qualifier participates in the assignment's qualification rule. When true, the assigned customer groups gate the promotion (combined with campaign-level customer groups). When omitted, defaults to true if a non-empty customerGroups array is supplied, otherwise false.

property

enabled: Read-only. True if the assigned promotion is enabled. Derived from the promotion's enabled state; cannot be set on the assignment. Use the Promotions API to change it.

property

promotionId: The ID of the promotion. Use the Promotions API to fetch the full promotion.

  • Min Length: 1
  • Max Length: 256
property

rank: The rank of promotion campaign assignment.

property

requiredQualifier:

property

schedule: The schedule of the assignment resource.

property

sourceCodeBased: Whether the source-code-groups qualifier participates in the assignment's qualification rule. When true, the assigned source-code groups gate the promotion (combined with campaign-level source-code groups). When omitted, defaults to true if a non-empty sourceCodeGroups array is supplied, otherwise false.

property

sourceCodeGroups: The sorted array of assigned source code groups.

PromotionCampaignAssignmentNotFoundErrorResponse

PromotionCampaignAssignmentNotFoundErrorResponse: { campaignId?: string; detail: string; instance?: string; promotionId?: string; siteId?: string; title: string; type: string } & {}
property

campaignId: The ID of the campaign.

  • Min Length: 1
  • Max Length: 256
property

promotionId: The ID of the promotion.

  • Min Length: 1
  • Max Length: 256
property

siteId: The identifier of the site that a request is being made in the context of. Attributes might have site specific values, and some objects may only be assigned to specific sites

  • Min Length: 1
  • Max Length: 32
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

PromotionCampaignAssignmentRequest

PromotionCampaignAssignmentRequest: { campaignId?: string; coupons?: Array<string>; couponsBased?: boolean; customerGroups?: Array<string>; customerGroupsBased?: boolean; promotionId?: string; rank?: number; requiredQualifier?: RequiredQualifier; schedule: Schedule; sourceCodeBased?: boolean; sourceCodeGroups?: Array<string> } & {}
property

campaignId: The ID of the campaign. If supplied, must equal the campaignId path parameter.

  • Min Length: 1
  • Max Length: 256
property

coupons: The sorted array of assigned coupon IDs.

property

couponsBased: Whether the coupons qualifier participates in the assignment's qualification rule. When true, the assigned coupons gate the promotion (combined with campaign-level coupons). When omitted, defaults to true if a non-empty coupons array is supplied, otherwise false.

property

customerGroups: The sorted array of assigned customer groups.

property

customerGroupsBased: Whether the customer-groups qualifier participates in the assignment's qualification rule. When true, the assigned customer groups gate the promotion (combined with campaign-level customer groups). When omitted, defaults to true if a non-empty customerGroups array is supplied, otherwise false.

property

promotionId: The ID of the promotion. If supplied, must equal the promotionId path parameter.

  • Min Length: 1
  • Max Length: 256
property

rank: The rank of promotion campaign assignment.

property

requiredQualifier:

property

schedule: The schedule of the assignment resource.

property

sourceCodeBased: Whether the source-code-groups qualifier participates in the assignment's qualification rule. When true, the assigned source-code groups gate the promotion (combined with campaign-level source-code groups). When omitted, defaults to true if a non-empty sourceCodeGroups array is supplied, otherwise false.

property

sourceCodeGroups: The sorted array of assigned source code groups.

PromotionCampaignAssignmentResult

PromotionCampaignAssignmentResult: { data: Array<PromotionCampaignAssignment>; limit: number; total: number } & {}
property

data: The array of promotion campaign assignments, ordered by rank ascending. Can be empty.

property

limit: Maximum records to retrieve per request. The limit with its constraints (minimum, maximum, default) is defined by the request parameter limit of the endpoint returning this schema.

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.

PromotionCampaignAssignmentUpdate

PromotionCampaignAssignmentUpdate: { campaignId?: string; coupons?: Array<string>; couponsBased?: boolean; customerGroups?: Array<string>; customerGroupsBased?: boolean; promotionId?: string; rank?: number; requiredQualifier?: RequiredQualifier; schedule?: Schedule | null; sourceCodeBased?: boolean; sourceCodeGroups?: Array<string> } & {}
property

campaignId: The ID of the campaign. If supplied, must equal the campaignId path parameter.

  • Min Length: 1
  • Max Length: 256
property

coupons: The sorted array of assigned coupon IDs.

property

couponsBased: Whether the coupons qualifier participates in the assignment's qualification rule. When true, the assigned coupons gate the promotion (combined with campaign-level coupons). When omitted, defaults to true if a non-empty coupons array is supplied, otherwise false.

property

customerGroups: The sorted array of assigned customer groups.

property

customerGroupsBased: Whether the customer-groups qualifier participates in the assignment's qualification rule. When true, the assigned customer groups gate the promotion (combined with campaign-level customer groups). When omitted, defaults to true if a non-empty customerGroups array is supplied, otherwise false.

property

promotionId: The ID of the promotion. If supplied, must equal the promotionId path parameter.

  • Min Length: 1
  • Max Length: 256
property

rank: The rank of promotion campaign assignment.

property

requiredQualifier:

property

schedule: The schedule of the assignment resource. Send schedule null to clear the assignment-level schedule.

property

sourceCodeBased: Whether the source-code-groups qualifier participates in the assignment's qualification rule. When true, the assigned source-code groups gate the promotion (combined with campaign-level source-code groups). When omitted, defaults to true if a non-empty sourceCodeGroups array is supplied, otherwise false.

property

sourceCodeGroups: The sorted array of assigned source code groups.

PromotionNotFoundErrorResponse

PromotionNotFoundErrorResponse: { detail: string; instance?: string; promotionId?: string; siteId?: string; title: string; type: string } & {}
property

promotionId: The ID of the promotion.

  • Min Length: 1
  • Max Length: 256
property

siteId: The identifier of the site that a request is being made in the context of. Attributes might have site specific values, and some objects may only be assigned to specific sites

  • Min Length: 1
  • Max Length: 32
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

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

Recurrence

Recurrence: { dayOfWeek: Array<RecurrenceDayOfWeekEnum>; timeOfDay: TimeOfDay } & {}
property

dayOfWeek: The days of week for recurrence.

property

timeOfDay: The time of the day for recurrence.

RecurrenceDayOfWeekEnum

RecurrenceDayOfWeekEnum: "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday"

RequiredQualifier

RequiredQualifier: "all" | "any"

Controls how the active qualifier types (coupons, customer groups, source-code groups) combine. 'all' requires every active qualifier type to be satisfied (AND); 'any' requires at least one (OR). Defaults to 'any' when omitted.

ResultBase

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

limit: Maximum records to retrieve per request. The limit with its constraints (minimum, maximum, default) is defined by the request parameter limit of the endpoint returning this schema.

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.

Schedule

Schedule: { endDate: string; recurrence?: Recurrence; startDate: string } & {}
property

endDate: The date to end of validity. ISO8601 date time format: yyyy-MM-dd'T'HH:mm:ssZ.

property

recurrence: The recurrence of the schedule by day of week and time of day. Not all schedules support a recurrence.

property

startDate: The date to start validity. ISO8601 date time format: yyyy-MM-dd'T'HH:mm:ssZ.

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.

TimeOfDay

TimeOfDay: { timeFrom: string; timeTo: string } & {}
property

timeFrom: The time to start from. Time format: HH:mm:ss. Seconds are ignored and set to 0.

property

timeTo: The time to end on. Time format: HH:mm:ss. Seconds are ignored and set to 0.

Variables

Const defaultBaseUri

defaultBaseUri: "https://{shortCode}.api.commercecloud.salesforce.com/pricing/campaigns/v1" = "https://{shortCode}.api.commercecloud.salesforce.com/pricing/campaigns/v1"

Generated using TypeDoc