Options
All
  • Public
  • Public/Protected
  • All
Menu

Module assignments

Index

References

Namespaces

Classes

Type aliases

Variables

References

Assignments

Re-exports Assignments

Assignments

Re-exports Assignments

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

Filter

Re-exports Filter

Filter

Re-exports Filter

FilteredQuery

Re-exports FilteredQuery

FilteredQuery

Re-exports FilteredQuery

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

Promotion

Re-exports Promotion

Promotion

Re-exports Promotion

PromotionAbtestGroupAssignment

Re-exports PromotionAbtestGroupAssignment

PromotionAbtestGroupAssignment

Re-exports PromotionAbtestGroupAssignment

PromotionAssignmentInformation

Re-exports PromotionAssignmentInformation

PromotionAssignmentInformation

Re-exports PromotionAssignmentInformation

PromotionAssignmentInformationScheduleTypeEnum

Re-exports PromotionAssignmentInformationScheduleTypeEnum

PromotionAssignmentInformationScheduleTypeEnum

Re-exports PromotionAssignmentInformationScheduleTypeEnum

PromotionCampaignAssignment

Re-exports PromotionCampaignAssignment

PromotionCampaignAssignment

Re-exports PromotionCampaignAssignment

PromotionCampaignAssignmentSearchResult

Re-exports PromotionCampaignAssignmentSearchResult

PromotionCampaignAssignmentSearchResult

Re-exports PromotionCampaignAssignmentSearchResult

PromotionExclusivityEnum

Re-exports PromotionExclusivityEnum

PromotionExclusivityEnum

Re-exports PromotionExclusivityEnum

PromotionPromotionClassEnum

Re-exports PromotionPromotionClassEnum

PromotionPromotionClassEnum

Re-exports PromotionPromotionClassEnum

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

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

Tag

Re-exports Tag

Tag

Re-exports Tag

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

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.

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:

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, 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.

Promotion

Promotion: { archived?: boolean; assignmentInformation?: PromotionAssignmentInformation; creationDate?: string; currencyCode?: string; disableGloballyExcluded?: boolean; enabled?: boolean; exclusivity: PromotionExclusivityEnum; id: string; lastModified?: string; name?: {}; promotionClass?: PromotionPromotionClassEnum; tags?: Array<Tag> } & {}
property

archived: Determines if this promotion is archived. This attribute is allowed to be updated when using the Open Commerce API to update multiple promotions at once.

property

assignmentInformation: Information about the assignments and assignment schedules of this promotion.

property

creationDate: Returns the value of attribute 'creationDate'.

property

currencyCode: The ISO 4217 mnemonic code of the currency this promotion is restricted to. If not populated, then there is no currency restriction on the promotion.

  • Max Length: 3
property

disableGloballyExcluded: Determines if this promotion ignores the global product exclusions for promotions.

property

enabled: Determines if this promotion is enabled. This attribute is allowed to be updated when using the Open Commerce API to update multiple promotions at once.

property

exclusivity: Determines if the promotion can be combined with other promotions of the same promotion class or if it cannot be combined with any other promotions. This attribute is allowed to be updated when using the Open Commerce API to update multiple promotions at once.

property

id: The ID for the promotion.

property

lastModified: Returns the value of attribute 'lastModified'.

property

name: The user supplied name of this promotion, which can be localized.

property

promotionClass: The class of the promotion. If the promotion class is modified, then the promotion rule and all of its values, such as whether or not to disable global product exclusions, are reset.

property

tags: Returns the list of tags assigned to this promotion. If used to set the tags on a promotion, the promotion will only have the tags passed in the input. Any existing tags are removed.

PromotionAbtestGroupAssignment

PromotionAbtestGroupAssignment: { abtestDescription: string; abtestId: string; enabled: boolean; schedule: Schedule; segmentDescription: string; segmentId: string } & {}
property

abtestDescription:

property

abtestId:

property

enabled:

property

schedule:

property

segmentDescription:

property

segmentId:

PromotionAssignmentInformation

PromotionAssignmentInformation: { abtestId: string; abtestSegmentId: string; active: boolean; activeAbtestAssignments: Array<PromotionAbtestGroupAssignment>; activeCampaignAssignments: Array<PromotionCampaignAssignment>; campaignId: string; enabled: boolean; endDate: string; schedule: Schedule; scheduleType: PromotionAssignmentInformationScheduleTypeEnum; startDate: string; upcomingAbtestAssignments: Array<PromotionAbtestGroupAssignment>; upcomingCampaignAssignments: Array<PromotionCampaignAssignment> } & {}
property

abtestId: If there is only one assignment, and that assignment is an A/B test segment, the ID of the A/B test the segment belongs to. Otherwise, empty.

property

abtestSegmentId: If there is only one assignment, and that assignment is an A/B test segment, the ID of the A/B test segment. Otherwise, empty.

property

active: True if the individual assignment or the multiple assignments are currently active.

property

activeAbtestAssignments: A list of currently active A/B tests this is assigned to.

property

activeCampaignAssignments: A list of currently active campaigns this is assigned to.

property

campaignId: If there is only one assignment, and that assignment is a campaign, the ID of the campaign. Otherwise, empty.

property

enabled:

property

endDate: The end date of the container of the assignment (a Campaign or ABTest). If scheduleType is scheduleType : "multiple" or scheduleType : "none", then then result is null. Also, a null date returns null.

property

schedule: The schedule of the assignment (a Campaign or ABTest). If scheduleType is scheduleType : "multiple" or scheduleType : "none", then then result is null.

property

scheduleType: If there is only one active assignment, or no active assignments and one upcoming assignment, this is that type of assignment (scheduleType : "campaign" or scheduleType : "abtest"). If there are no assignments, it is scheduleType : "none", otherwise, scheduleType : "multiple".

property

startDate: The start date of the container of the assignment (a Campaign or ABTest). If scheduleType is scheduleType : "multiple" or scheduleType : "none", then then result is null. Also, a null date returns null.

property

upcomingAbtestAssignments: A list of upcoming A/B tests this is assigned to.

property

upcomingCampaignAssignments: A list of upcoming campaigns this is assigned to.

PromotionAssignmentInformationScheduleTypeEnum

PromotionAssignmentInformationScheduleTypeEnum: "none" | "campaign" | "abtest" | "multiple"

PromotionCampaignAssignment

PromotionCampaignAssignment: { campaign: Campaign; campaignId: string; coupons: Array<string>; customerGroups: Array<string>; description: string; enabled: boolean; promotion: Promotion; promotionId: string; rank: number; schedule: Schedule; 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

customerGroups: The sorted array of assigned customer groups.

property

description: The description of the promotion campaign assignment.

  • Max Length: 4000
property

enabled: True if the assignment resource is enabled.

property

promotion: The promotion.

property

promotionId: The ID of the promotion.

  • Min Length: 1
  • Max Length: 256
property

rank: The rank of promotion campaign assignment.

property

schedule: The schedule of the assignment resource.

property

sourceCodeGroups: The sorted array of assigned source code groups.

PromotionCampaignAssignmentSearchResult

PromotionCampaignAssignmentSearchResult: { hits: Array<PromotionCampaignAssignment>; 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, 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.

PromotionExclusivityEnum

PromotionExclusivityEnum: "no" | "class" | "global"

PromotionPromotionClassEnum

PromotionPromotionClassEnum: "product" | "shipping" | "order"

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"

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.

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"

Tag

Tag: { tagId: string } & {}
property

tagId: The ID of the tag.

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/assignments/v1" = "https://{shortCode}.api.commercecloud.salesforce.com/pricing/assignments/v1"

Generated using TypeDoc