@salesforce/lds-adapters-commerce-search 0.1.0-dev1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +82 -0
- package/dist/es/es2018/commerce-search.js +1922 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/createSearchBoostBuryRule.d.ts +24 -0
- package/dist/es/es2018/types/src/generated/adapters/deleteSearchBoostBuryRule.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/adapters/getSearchBoostBuryRule.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/adapters/getSearchBoostBuryRules.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/adapters/getSuggestions.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/adapters/productSearch.d.ts +35 -0
- package/dist/es/es2018/types/src/generated/adapters/updateSearchBoostBuryRule.d.ts +25 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +7 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +13 -0
- package/dist/es/es2018/types/src/generated/resources/deleteCommerceManagementWebstoresSearchBoostBuryRulesByRuleIdAndWebstoreId.d.ts +13 -0
- package/dist/es/es2018/types/src/generated/resources/deleteCommerceManagementWebstoresSearchIndexesByIndexIdAndWebstoreId.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/resources/getCommerceManagementWebstoresSearchAttributeSettingsFacetableFieldsByWebstoreId.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/getCommerceManagementWebstoresSearchAttributeSettingsSearchableFieldsByWebstoreId.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/getCommerceManagementWebstoresSearchBoostBuryRulesByRuleIdAndWebstoreId.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/resources/getCommerceManagementWebstoresSearchBoostBuryRulesByWebstoreId.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/getCommerceManagementWebstoresSearchIndexesByIndexIdAndWebstoreId.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/getCommerceManagementWebstoresSearchIndexesByWebstoreId.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/getCommerceManagementWebstoresSearchProductSettingsByWebstoreId.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/resources/getCommerceWebstoresSearchSuggestionsByWebstoreId.d.ts +20 -0
- package/dist/es/es2018/types/src/generated/resources/patchCommerceManagementWebstoresSearchAttributeSettingsSearchableFieldsByWebstoreId.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/resources/patchCommerceManagementWebstoresSearchBoostBuryRulesByRuleIdAndWebstoreId.d.ts +24 -0
- package/dist/es/es2018/types/src/generated/resources/patchCommerceManagementWebstoresSearchProductSettingsByWebstoreId.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/resources/postCommerceManagementWebstoresSearchBoostBuryRulesByWebstoreId.d.ts +23 -0
- package/dist/es/es2018/types/src/generated/resources/postCommerceWebstoresSearchProductSearchByWebstoreId.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/resources/putCommerceManagementWebstoresSearchAttributeSettingsFacetableFieldsByWebstoreId.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/types/BoostBuryConditionInputRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/BoostBuryConditionOutputRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/BoostBuryQueryContextConditionInputRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/BoostBuryQueryContextConditionOutputRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/BoostBuryQueryContextInputRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/BoostBuryQueryContextOutputRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/BoostBuryTargetExpressionInputRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/BoostBuryTargetExpressionOutputRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/CommerceSearchIndexCollectionOutputRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/CommerceSearchIndexOutputRepresentation.d.ts +46 -0
- package/dist/es/es2018/types/src/generated/types/DistinctFacetValueRepresentation.d.ts +36 -0
- package/dist/es/es2018/types/src/generated/types/DistinctValueSearchFacetRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/FacetValueRepresentation.d.ts +33 -0
- package/dist/es/es2018/types/src/generated/types/FacetableAttributeInputRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/FacetableAttributeOutputRepresentation.d.ts +40 -0
- package/dist/es/es2018/types/src/generated/types/FacetableAttributesCollectionInputRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/FacetableAttributesCollectionOutputRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/ProductSearchInputRepresentation.d.ts +46 -0
- package/dist/es/es2018/types/src/generated/types/ProductSearchResultsRepresentation.d.ts +39 -0
- package/dist/es/es2018/types/src/generated/types/ProductSearchSuggestionsResultsRepresentation.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/ProductSummaryCollectionRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/ProductSummaryRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/RefinementInputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/SearchBoostBuryRuleInputRepresentation.d.ts +48 -0
- package/dist/es/es2018/types/src/generated/types/SearchBoostBuryRuleOutputRepresentation.d.ts +71 -0
- package/dist/es/es2018/types/src/generated/types/SearchBoostBuryRulesCollectionOutputRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/SearchCategoryRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/SearchFacetRepresentation.d.ts +48 -0
- package/dist/es/es2018/types/src/generated/types/SearchProductSettingCollectionInputRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/SearchProductSettingCollectionOutputRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/SearchProductSettingInputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/SearchProductSettingOutputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/SearchableAttributeInputRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/SearchableAttributeOutputRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/SearchableAttributesCollectionInputRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/SearchableAttributesCollectionOutputRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/SuggestedCompletionRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/dist/es/es2018/types/src/main.d.ts +6 -0
- package/dist/es/es2018/types/src/raml-artifacts/types/SearchBoostBuryRulesCollectionOutputRepresentation/notifyUpdateAvailableFactory.d.ts +2 -0
- package/dist/es/es2018/types/src/sfdc.d.ts +7 -0
- package/package.json +61 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +2049 -0
- package/src/raml/api.raml +870 -0
- package/src/raml/luvio.raml +122 -0
|
@@ -0,0 +1,870 @@
|
|
|
1
|
+
#%RAML 1.0
|
|
2
|
+
securedBy:
|
|
3
|
+
- OAuth2
|
|
4
|
+
title: Salesforce Connect API
|
|
5
|
+
version: '51.0'
|
|
6
|
+
mediaType: application/json
|
|
7
|
+
protocols:
|
|
8
|
+
- https
|
|
9
|
+
baseUri: /services/data/v66.0
|
|
10
|
+
securitySchemes:
|
|
11
|
+
OAuth2:
|
|
12
|
+
type: OAuth 2.0
|
|
13
|
+
settings:
|
|
14
|
+
authorizationUri: https://example.com/oauth/authorize
|
|
15
|
+
accessTokenUri: ''
|
|
16
|
+
authorizationGrants:
|
|
17
|
+
- implicit
|
|
18
|
+
annotationTypes:
|
|
19
|
+
oas-readOnly:
|
|
20
|
+
type: boolean
|
|
21
|
+
allowedTargets: TypeDeclaration
|
|
22
|
+
oas-collectionFormat:
|
|
23
|
+
type: string
|
|
24
|
+
oas-body-name:
|
|
25
|
+
type: string
|
|
26
|
+
allowedTargets: TypeDeclaration
|
|
27
|
+
types:
|
|
28
|
+
BoostBuryConditionInputRepresentation:
|
|
29
|
+
description: Search Boost bury condition
|
|
30
|
+
type: object
|
|
31
|
+
properties:
|
|
32
|
+
attributeNameOrId:
|
|
33
|
+
description: Name or id of the attribute for the condition
|
|
34
|
+
type: string
|
|
35
|
+
attributeType:
|
|
36
|
+
description: Type of the attribute for the condition
|
|
37
|
+
type: string
|
|
38
|
+
enum:
|
|
39
|
+
- Custom
|
|
40
|
+
- PricebookEntry
|
|
41
|
+
- Product2
|
|
42
|
+
- ProductAttribute
|
|
43
|
+
- ProductCategory
|
|
44
|
+
- Standard
|
|
45
|
+
values:
|
|
46
|
+
description: List of attribute values for the condition
|
|
47
|
+
type: array
|
|
48
|
+
items:
|
|
49
|
+
type: string
|
|
50
|
+
BoostBuryConditionOutputRepresentation:
|
|
51
|
+
description: Search Boost bury condition
|
|
52
|
+
type: object
|
|
53
|
+
properties:
|
|
54
|
+
attributeNameOrId:
|
|
55
|
+
description: Name or id of the attribute for the condition
|
|
56
|
+
type: string
|
|
57
|
+
attributeType:
|
|
58
|
+
description: Type of the attribute for the condition
|
|
59
|
+
type: string
|
|
60
|
+
enum:
|
|
61
|
+
- Custom
|
|
62
|
+
- PricebookEntry
|
|
63
|
+
- Product2
|
|
64
|
+
- ProductAttribute
|
|
65
|
+
- ProductCategory
|
|
66
|
+
- Standard
|
|
67
|
+
values:
|
|
68
|
+
description: List of attribute values for the condition
|
|
69
|
+
type: array
|
|
70
|
+
items:
|
|
71
|
+
type: string
|
|
72
|
+
BoostBuryQueryContextConditionInputRepresentation:
|
|
73
|
+
description: Search Boost bury query context conditions
|
|
74
|
+
type: object
|
|
75
|
+
properties:
|
|
76
|
+
locales:
|
|
77
|
+
description: Locales for the query context
|
|
78
|
+
type: array
|
|
79
|
+
items:
|
|
80
|
+
type: string
|
|
81
|
+
type:
|
|
82
|
+
description: Type of the query context
|
|
83
|
+
type: string
|
|
84
|
+
enum:
|
|
85
|
+
- All
|
|
86
|
+
- Category
|
|
87
|
+
- SearchTerm
|
|
88
|
+
values:
|
|
89
|
+
description: Values for the query context
|
|
90
|
+
type: array
|
|
91
|
+
items:
|
|
92
|
+
type: string
|
|
93
|
+
BoostBuryQueryContextConditionOutputRepresentation:
|
|
94
|
+
description: Search Boost bury query context
|
|
95
|
+
type: object
|
|
96
|
+
properties:
|
|
97
|
+
locales:
|
|
98
|
+
description: Locales for the boost bury rule context
|
|
99
|
+
type: array
|
|
100
|
+
items:
|
|
101
|
+
type: string
|
|
102
|
+
type:
|
|
103
|
+
description: Type of the boost bury rule context
|
|
104
|
+
type: string
|
|
105
|
+
enum:
|
|
106
|
+
- All
|
|
107
|
+
- Category
|
|
108
|
+
- SearchTerm
|
|
109
|
+
values:
|
|
110
|
+
description: Values for the boost bury rule context
|
|
111
|
+
type: array
|
|
112
|
+
items:
|
|
113
|
+
type: string
|
|
114
|
+
BoostBuryQueryContextInputRepresentation:
|
|
115
|
+
description: Search Boost bury query context
|
|
116
|
+
type: object
|
|
117
|
+
properties:
|
|
118
|
+
conditions:
|
|
119
|
+
description: List of conditions for the query context
|
|
120
|
+
type: array
|
|
121
|
+
items:
|
|
122
|
+
type: BoostBuryQueryContextConditionInputRepresentation
|
|
123
|
+
BoostBuryQueryContextOutputRepresentation:
|
|
124
|
+
description: Search boost bury query context
|
|
125
|
+
type: object
|
|
126
|
+
properties:
|
|
127
|
+
conditions:
|
|
128
|
+
description: List of conditions for the query context
|
|
129
|
+
type: array
|
|
130
|
+
items:
|
|
131
|
+
type: BoostBuryQueryContextConditionOutputRepresentation
|
|
132
|
+
BoostBuryTargetExpressionInputRepresentation:
|
|
133
|
+
description: Search boost bury target expression
|
|
134
|
+
type: object
|
|
135
|
+
properties:
|
|
136
|
+
conditions:
|
|
137
|
+
description: List of conditions for the target expression
|
|
138
|
+
type: array
|
|
139
|
+
items:
|
|
140
|
+
type: BoostBuryConditionInputRepresentation
|
|
141
|
+
BoostBuryTargetExpressionOutputRepresentation:
|
|
142
|
+
description: Search boost bury target expression
|
|
143
|
+
type: object
|
|
144
|
+
properties:
|
|
145
|
+
conditions:
|
|
146
|
+
description: List of conditions for the target expression
|
|
147
|
+
type: array
|
|
148
|
+
items:
|
|
149
|
+
type: BoostBuryConditionOutputRepresentation
|
|
150
|
+
CommerceSearchIndexCollectionOutputRepresentation:
|
|
151
|
+
description: Index collection information of a webstore
|
|
152
|
+
type: object
|
|
153
|
+
properties:
|
|
154
|
+
indexes:
|
|
155
|
+
description: Get live index(es) and/or processing index for a given webstore
|
|
156
|
+
type: array
|
|
157
|
+
items:
|
|
158
|
+
type: CommerceSearchIndexOutputRepresentation
|
|
159
|
+
CommerceSearchIndexOutputRepresentation:
|
|
160
|
+
description: Index information of a webstore
|
|
161
|
+
type: object
|
|
162
|
+
properties:
|
|
163
|
+
completionDate:
|
|
164
|
+
description: Competion date of the index
|
|
165
|
+
type: string
|
|
166
|
+
createdDate:
|
|
167
|
+
description: Index date of creation
|
|
168
|
+
type: string
|
|
169
|
+
creationType:
|
|
170
|
+
description: Creation type of the index
|
|
171
|
+
type: string
|
|
172
|
+
enum:
|
|
173
|
+
- Manual
|
|
174
|
+
- Scheduled
|
|
175
|
+
id:
|
|
176
|
+
description: Id of the index
|
|
177
|
+
type: string
|
|
178
|
+
indexStatus:
|
|
179
|
+
description: Status of the index
|
|
180
|
+
type: string
|
|
181
|
+
enum:
|
|
182
|
+
- Completed
|
|
183
|
+
- Failed
|
|
184
|
+
- InProgress
|
|
185
|
+
indexUsage:
|
|
186
|
+
description: Usage of the index
|
|
187
|
+
type: string
|
|
188
|
+
enum:
|
|
189
|
+
- Live
|
|
190
|
+
- OutOfUse
|
|
191
|
+
message:
|
|
192
|
+
description: Detail message for index status
|
|
193
|
+
type: string
|
|
194
|
+
DistinctFacetValueRepresentation:
|
|
195
|
+
description: Representation of distinct facet value.
|
|
196
|
+
discriminatorValue: DistinctValue # TODO: hand rolled
|
|
197
|
+
type: FacetValueRepresentation
|
|
198
|
+
properties:
|
|
199
|
+
displayName:
|
|
200
|
+
description: Display Name of the facet value.
|
|
201
|
+
type: string
|
|
202
|
+
nameOrId:
|
|
203
|
+
description: ID or internal name of the facet value.
|
|
204
|
+
type: string
|
|
205
|
+
productCount:
|
|
206
|
+
description: Number of products in search result that match the facet value.
|
|
207
|
+
type: integer
|
|
208
|
+
# format: int64
|
|
209
|
+
DistinctValueSearchFacetRepresentation:
|
|
210
|
+
description: Summary representation of a Facet with distinct values in product search results.
|
|
211
|
+
discriminatorValue: DistinctValue # TODO: hand rolled
|
|
212
|
+
type: SearchFacetRepresentation
|
|
213
|
+
properties:
|
|
214
|
+
values:
|
|
215
|
+
description: Values of the facet found in the search result. Sorted by displayName in alphabetical order.
|
|
216
|
+
type: array
|
|
217
|
+
items:
|
|
218
|
+
type: DistinctFacetValueRepresentation
|
|
219
|
+
FacetValueRepresentation:
|
|
220
|
+
description: Abstract superclass of all facet value representations.
|
|
221
|
+
discriminator: type # TODO: hand rolled
|
|
222
|
+
type: object
|
|
223
|
+
properties:
|
|
224
|
+
type:
|
|
225
|
+
description: Type of the facet value.
|
|
226
|
+
type: string
|
|
227
|
+
enum:
|
|
228
|
+
- DistinctValue
|
|
229
|
+
FacetableAttributeInputRepresentation:
|
|
230
|
+
description: Representation of facet settings for a search attribute
|
|
231
|
+
type: object
|
|
232
|
+
properties:
|
|
233
|
+
displayRank:
|
|
234
|
+
description: Facet display rank
|
|
235
|
+
type: integer
|
|
236
|
+
displayType:
|
|
237
|
+
description: Facet display type
|
|
238
|
+
type: string
|
|
239
|
+
enum:
|
|
240
|
+
- CategoryTree
|
|
241
|
+
- DatePicker
|
|
242
|
+
- MultiSelect
|
|
243
|
+
- SingleSelect
|
|
244
|
+
nameOrId:
|
|
245
|
+
description: Name or id of attribute
|
|
246
|
+
type: string
|
|
247
|
+
type:
|
|
248
|
+
description: Type of attribute
|
|
249
|
+
type: string
|
|
250
|
+
enum:
|
|
251
|
+
- Custom
|
|
252
|
+
- ProductCategory
|
|
253
|
+
- Standard
|
|
254
|
+
FacetableAttributeOutputRepresentation:
|
|
255
|
+
description: Facetable attribute in a webstore
|
|
256
|
+
type: object
|
|
257
|
+
properties:
|
|
258
|
+
displayRank:
|
|
259
|
+
description: Display rank for the facet
|
|
260
|
+
type: integer
|
|
261
|
+
displayType:
|
|
262
|
+
description: Display type for the facet
|
|
263
|
+
type: string
|
|
264
|
+
enum:
|
|
265
|
+
- CategoryTree
|
|
266
|
+
- DatePicker
|
|
267
|
+
- MultiSelect
|
|
268
|
+
- SingleSelect
|
|
269
|
+
label:
|
|
270
|
+
description: Localized label of the attribute
|
|
271
|
+
type: string
|
|
272
|
+
nameOrId:
|
|
273
|
+
description: Name or id of the attribute
|
|
274
|
+
type: string
|
|
275
|
+
type:
|
|
276
|
+
description: Type of the attribute
|
|
277
|
+
type: string
|
|
278
|
+
enum:
|
|
279
|
+
- Custom
|
|
280
|
+
- ProductCategory
|
|
281
|
+
- Standard
|
|
282
|
+
FacetableAttributesCollectionInputRepresentation:
|
|
283
|
+
description: Representation of facet settings for search attributes
|
|
284
|
+
type: object
|
|
285
|
+
properties:
|
|
286
|
+
facetableAttributeSettings:
|
|
287
|
+
description: facetable settings for attributes
|
|
288
|
+
type: array
|
|
289
|
+
items:
|
|
290
|
+
type: object
|
|
291
|
+
FacetableAttributesCollectionOutputRepresentation:
|
|
292
|
+
description: Facetable attributes in a webstore
|
|
293
|
+
type: object
|
|
294
|
+
properties:
|
|
295
|
+
facetableAttributeSettings:
|
|
296
|
+
description: Get list of facetable attributes in a webstore
|
|
297
|
+
type: array
|
|
298
|
+
items:
|
|
299
|
+
type: FacetableAttributeOutputRepresentation
|
|
300
|
+
|
|
301
|
+
ProductSearchInputRepresentation:
|
|
302
|
+
description: Input representation for a product search.
|
|
303
|
+
type: object
|
|
304
|
+
properties:
|
|
305
|
+
categoryId:
|
|
306
|
+
description: Category ID. Only return search results for products that belong to this category or its subcategories.
|
|
307
|
+
type: string
|
|
308
|
+
fields:
|
|
309
|
+
description: Product fields to return in search results. If unspecified, all fields that exist and are accessible will be returned.
|
|
310
|
+
type: array
|
|
311
|
+
items:
|
|
312
|
+
type: string
|
|
313
|
+
page:
|
|
314
|
+
description: Page number of search results to view. First page is returned if not specified.
|
|
315
|
+
type: integer
|
|
316
|
+
pageSize:
|
|
317
|
+
description: Page size specifies the number of products to be returned in a page of search results.
|
|
318
|
+
type: integer
|
|
319
|
+
refinements:
|
|
320
|
+
description: Refinements to filter search results on.
|
|
321
|
+
type: array
|
|
322
|
+
items:
|
|
323
|
+
type: object
|
|
324
|
+
searchTerm:
|
|
325
|
+
description: One or more search keywords.
|
|
326
|
+
type: string
|
|
327
|
+
sortOrderId:
|
|
328
|
+
description: ID of a sort order defined in the webstore. Used to specify the order of products in search results.
|
|
329
|
+
type: string
|
|
330
|
+
ProductSearchResultsRepresentation:
|
|
331
|
+
description: Representation for Product Search Results.
|
|
332
|
+
type: object
|
|
333
|
+
properties:
|
|
334
|
+
categories:
|
|
335
|
+
description: Categories from the search results.
|
|
336
|
+
type: SearchCategoryRepresentation
|
|
337
|
+
facets:
|
|
338
|
+
description: Facets from the search results.
|
|
339
|
+
type: array
|
|
340
|
+
items:
|
|
341
|
+
type: SearchFacetRepresentation
|
|
342
|
+
locale:
|
|
343
|
+
description: Locale of the search results.
|
|
344
|
+
type: string
|
|
345
|
+
productsPage:
|
|
346
|
+
description: Page of products from the search results.
|
|
347
|
+
type: ProductSummaryCollectionRepresentation
|
|
348
|
+
ProductSearchSuggestionsResultsRepresentation:
|
|
349
|
+
description: Representation for Product Search Suggestions Results.
|
|
350
|
+
type: object
|
|
351
|
+
properties:
|
|
352
|
+
completions:
|
|
353
|
+
description: Term completion proposals.
|
|
354
|
+
type: array
|
|
355
|
+
items:
|
|
356
|
+
type: SuggestedCompletionRepresentation
|
|
357
|
+
locale:
|
|
358
|
+
description: Locale of the search results.
|
|
359
|
+
type: string
|
|
360
|
+
ProductSummaryCollectionRepresentation:
|
|
361
|
+
description: Collection of Product Summary representations in product search results.
|
|
362
|
+
type: object
|
|
363
|
+
properties:
|
|
364
|
+
currencyIsoCode:
|
|
365
|
+
description: Currency of all product prices in the search result.
|
|
366
|
+
type: string
|
|
367
|
+
pageSize:
|
|
368
|
+
description: Number of products per page in search result
|
|
369
|
+
type: integer
|
|
370
|
+
# TODO: this should be returned
|
|
371
|
+
required: false
|
|
372
|
+
products:
|
|
373
|
+
description: Collection of product summaries.
|
|
374
|
+
type: array
|
|
375
|
+
items:
|
|
376
|
+
type: ProductSummaryRepresentation
|
|
377
|
+
total:
|
|
378
|
+
description: Total number of products in the search result across all pages.
|
|
379
|
+
type: integer
|
|
380
|
+
ProductSummaryRepresentation:
|
|
381
|
+
description: Summary representation of a Product in product search results.
|
|
382
|
+
type: object
|
|
383
|
+
properties:
|
|
384
|
+
# ProductMediaRepresentation did not get created
|
|
385
|
+
# defaultImage:
|
|
386
|
+
# description: Media representation of the product's default image.
|
|
387
|
+
# type: ProductMediaRepresentation
|
|
388
|
+
fields:
|
|
389
|
+
description: Map of fields belonging to the product.
|
|
390
|
+
type: object
|
|
391
|
+
properties:
|
|
392
|
+
//:
|
|
393
|
+
type: string | nil
|
|
394
|
+
id:
|
|
395
|
+
description: ID of the product.
|
|
396
|
+
type: string
|
|
397
|
+
name:
|
|
398
|
+
description: Name of the product.
|
|
399
|
+
type: string
|
|
400
|
+
# ProductPricingResponseRepresentation did not get created
|
|
401
|
+
# prices:
|
|
402
|
+
# description: Representation of the product's prices.
|
|
403
|
+
# type: ProductPricingResponseRepresentation
|
|
404
|
+
RefinementInputRepresentation:
|
|
405
|
+
description: Input representation of an attribute-based refinement for product search
|
|
406
|
+
type: object
|
|
407
|
+
properties:
|
|
408
|
+
nameOrId:
|
|
409
|
+
description: ID or internal name of the attribute to refine search on.
|
|
410
|
+
type: string
|
|
411
|
+
values:
|
|
412
|
+
description: Internal names of attribute values to refine search on.
|
|
413
|
+
type: array
|
|
414
|
+
items:
|
|
415
|
+
type: string
|
|
416
|
+
SearchBoostBuryRuleInputRepresentation:
|
|
417
|
+
description: Input representation of a Search boost and bury rule.
|
|
418
|
+
type: object
|
|
419
|
+
properties:
|
|
420
|
+
action:
|
|
421
|
+
description: Action of the search boost and bury rule.
|
|
422
|
+
type: string
|
|
423
|
+
enum:
|
|
424
|
+
- Boost
|
|
425
|
+
- Bury
|
|
426
|
+
endDate:
|
|
427
|
+
description: End date time of the search boost and bury rule.
|
|
428
|
+
type: string
|
|
429
|
+
level:
|
|
430
|
+
description: Level of the search boost and bury rule.
|
|
431
|
+
type: integer
|
|
432
|
+
name:
|
|
433
|
+
description: Name of the search boost and bury rule.
|
|
434
|
+
type: string
|
|
435
|
+
queryContext:
|
|
436
|
+
description: The query context of the boost and bury rule.
|
|
437
|
+
type: BoostBuryQueryContextInputRepresentation
|
|
438
|
+
startDate:
|
|
439
|
+
description: Start date time of the search boost and bury rule.
|
|
440
|
+
type: string
|
|
441
|
+
targetExpression:
|
|
442
|
+
description: The target expression of the boost and bury rule.
|
|
443
|
+
type: BoostBuryTargetExpressionInputRepresentation
|
|
444
|
+
SearchBoostBuryRuleOutputRepresentation:
|
|
445
|
+
description: Representation of a Search boost and bury rule.
|
|
446
|
+
type: object
|
|
447
|
+
properties:
|
|
448
|
+
action:
|
|
449
|
+
description: Action of the search boost and bury rule.
|
|
450
|
+
type: string
|
|
451
|
+
enum:
|
|
452
|
+
- Boost
|
|
453
|
+
- Bury
|
|
454
|
+
endDate:
|
|
455
|
+
description: End date time of the search boost and bury rule.
|
|
456
|
+
type: string
|
|
457
|
+
id:
|
|
458
|
+
description: Entity ID of the search boost and bury rule.
|
|
459
|
+
type: string
|
|
460
|
+
level:
|
|
461
|
+
description: Level of the search boost and bury rule.
|
|
462
|
+
type: integer
|
|
463
|
+
name:
|
|
464
|
+
description: Name of the search boost and bury rule.
|
|
465
|
+
type: string
|
|
466
|
+
queryContext:
|
|
467
|
+
description: The query context of the boost and bury rule.
|
|
468
|
+
type: BoostBuryQueryContextOutputRepresentation
|
|
469
|
+
startDate:
|
|
470
|
+
description: Start date time of the search boost and bury rule.
|
|
471
|
+
type: string
|
|
472
|
+
targetExpression:
|
|
473
|
+
description: The target expression of the boost and bury rule.
|
|
474
|
+
type: BoostBuryTargetExpressionOutputRepresentation
|
|
475
|
+
SearchBoostBuryRulesCollectionOutputRepresentation:
|
|
476
|
+
description: Search boost bury rules collection information of a webstore
|
|
477
|
+
type: object
|
|
478
|
+
properties:
|
|
479
|
+
boostBuryRules:
|
|
480
|
+
description: A collection of search boost bury rules
|
|
481
|
+
type: array
|
|
482
|
+
items:
|
|
483
|
+
type: SearchBoostBuryRuleOutputRepresentation
|
|
484
|
+
SearchCategoryRepresentation:
|
|
485
|
+
description: Search Category representation in product search results.
|
|
486
|
+
type: object
|
|
487
|
+
properties:
|
|
488
|
+
# ProductCategoryRepresentation did not get created
|
|
489
|
+
# category:
|
|
490
|
+
# description: Information about the category.
|
|
491
|
+
# type: ProductCategoryRepresentation
|
|
492
|
+
children:
|
|
493
|
+
description: 'The first-level child categories with non-empty search results. Note:
|
|
494
|
+
Only populated for the current category being searched (i.e. its first-level
|
|
495
|
+
child categories will not have children populated).'
|
|
496
|
+
type: array
|
|
497
|
+
items:
|
|
498
|
+
type: SearchCategoryRepresentation
|
|
499
|
+
productCount:
|
|
500
|
+
description: Number of products in search result that belong to the category.
|
|
501
|
+
type: integer
|
|
502
|
+
# format: int64
|
|
503
|
+
SearchFacetRepresentation:
|
|
504
|
+
description: Abstract superclass of all Search Facet representations.
|
|
505
|
+
discriminator: facetType # TODO: hand rolled
|
|
506
|
+
type: object
|
|
507
|
+
properties:
|
|
508
|
+
attributeType:
|
|
509
|
+
description: Type of the search attribute underlying the facet.
|
|
510
|
+
type: string
|
|
511
|
+
enum:
|
|
512
|
+
- Custom
|
|
513
|
+
- ProductCategory
|
|
514
|
+
- Standard
|
|
515
|
+
# TODO: this should be optional
|
|
516
|
+
required: false
|
|
517
|
+
displayName:
|
|
518
|
+
description: Display name of the facet.
|
|
519
|
+
type: string
|
|
520
|
+
displayRank:
|
|
521
|
+
description: Display rank for the facet.
|
|
522
|
+
type: integer
|
|
523
|
+
displayType:
|
|
524
|
+
description: Display type for the facet.
|
|
525
|
+
type: string
|
|
526
|
+
enum:
|
|
527
|
+
- CategoryTree
|
|
528
|
+
- DatePicker
|
|
529
|
+
- MultiSelect
|
|
530
|
+
- SingleSelect
|
|
531
|
+
facetType:
|
|
532
|
+
description: Type of the facet.
|
|
533
|
+
type: string
|
|
534
|
+
enum:
|
|
535
|
+
- DistinctValue
|
|
536
|
+
# TODO: this shouldl be optional
|
|
537
|
+
required: false
|
|
538
|
+
nameOrId:
|
|
539
|
+
description: ID or internal name of the facet.
|
|
540
|
+
type: string
|
|
541
|
+
SearchProductSettingCollectionInputRepresentation:
|
|
542
|
+
description: The representation of multiple search product settings.
|
|
543
|
+
type: object
|
|
544
|
+
properties:
|
|
545
|
+
searchProductSettings:
|
|
546
|
+
description: set a collection of search product settings
|
|
547
|
+
type: array
|
|
548
|
+
items:
|
|
549
|
+
type: object
|
|
550
|
+
SearchProductSettingCollectionOutputRepresentation:
|
|
551
|
+
description: The representation of multiple search product settings.
|
|
552
|
+
type: object
|
|
553
|
+
properties:
|
|
554
|
+
searchProductSettings:
|
|
555
|
+
description: a collection of search product settings
|
|
556
|
+
type: array
|
|
557
|
+
items:
|
|
558
|
+
type: SearchProductSettingOutputRepresentation
|
|
559
|
+
SearchProductSettingInputRepresentation:
|
|
560
|
+
description: The representation of a single search product setting.
|
|
561
|
+
type: object
|
|
562
|
+
properties:
|
|
563
|
+
id:
|
|
564
|
+
description: product id
|
|
565
|
+
type: string
|
|
566
|
+
searchable:
|
|
567
|
+
description: product searchability
|
|
568
|
+
type: boolean
|
|
569
|
+
SearchProductSettingOutputRepresentation:
|
|
570
|
+
description: The representation of a single search product setting.
|
|
571
|
+
type: object
|
|
572
|
+
properties:
|
|
573
|
+
id:
|
|
574
|
+
description: product id
|
|
575
|
+
type: string
|
|
576
|
+
searchable:
|
|
577
|
+
description: isSearchable
|
|
578
|
+
type: boolean
|
|
579
|
+
SearchableAttributeInputRepresentation:
|
|
580
|
+
description: Representation of searchability settings for a search attribute
|
|
581
|
+
type: object
|
|
582
|
+
properties:
|
|
583
|
+
isSearchable:
|
|
584
|
+
description: True if attribute is searchable
|
|
585
|
+
type: boolean
|
|
586
|
+
nameOrId:
|
|
587
|
+
description: Name or id of attribute
|
|
588
|
+
type: string
|
|
589
|
+
type:
|
|
590
|
+
description: Type of attribute
|
|
591
|
+
type: string
|
|
592
|
+
enum:
|
|
593
|
+
- Custom
|
|
594
|
+
- ProductCategory
|
|
595
|
+
- Standard
|
|
596
|
+
SearchableAttributeOutputRepresentation:
|
|
597
|
+
description: Searchable attribute in a webstore
|
|
598
|
+
type: object
|
|
599
|
+
properties:
|
|
600
|
+
label:
|
|
601
|
+
description: Localized label of the attribute
|
|
602
|
+
type: string
|
|
603
|
+
nameOrId:
|
|
604
|
+
description: Name or id of the attribute
|
|
605
|
+
type: string
|
|
606
|
+
type:
|
|
607
|
+
description: Type of the attribute
|
|
608
|
+
type: string
|
|
609
|
+
enum:
|
|
610
|
+
- Custom
|
|
611
|
+
- ProductCategory
|
|
612
|
+
- Standard
|
|
613
|
+
SearchableAttributesCollectionInputRepresentation:
|
|
614
|
+
description: Representation of searchability settings for search attributes
|
|
615
|
+
type: object
|
|
616
|
+
properties:
|
|
617
|
+
searchableAttributeSettings:
|
|
618
|
+
description: Searchability settings for attributes
|
|
619
|
+
type: array
|
|
620
|
+
items:
|
|
621
|
+
type: object
|
|
622
|
+
SearchableAttributesCollectionOutputRepresentation:
|
|
623
|
+
description: Searchable attributes in a webstore
|
|
624
|
+
type: object
|
|
625
|
+
properties:
|
|
626
|
+
searchableAttributeSettings:
|
|
627
|
+
description: Get list of searchable attributes in a webstore
|
|
628
|
+
type: array
|
|
629
|
+
items:
|
|
630
|
+
type: SearchableAttributeOutputRepresentation
|
|
631
|
+
SuggestedCompletionRepresentation:
|
|
632
|
+
description: Representation for Product Search suggestions endpoint's Completion Proposals.
|
|
633
|
+
type: object
|
|
634
|
+
properties:
|
|
635
|
+
simpleString:
|
|
636
|
+
description: Term completion proposal.
|
|
637
|
+
type: string
|
|
638
|
+
/commerce:
|
|
639
|
+
/management/webstores/{webstoreId}/search:
|
|
640
|
+
/attribute-settings:
|
|
641
|
+
/facetable-fields:
|
|
642
|
+
get:
|
|
643
|
+
description: Get facetable search attributes in a webstore
|
|
644
|
+
responses:
|
|
645
|
+
'200':
|
|
646
|
+
description: Success
|
|
647
|
+
body:
|
|
648
|
+
application/json:
|
|
649
|
+
type: FacetableAttributesCollectionOutputRepresentation
|
|
650
|
+
put:
|
|
651
|
+
description: Modify searchability on attributes in a webstore
|
|
652
|
+
responses:
|
|
653
|
+
'200':
|
|
654
|
+
description: Success
|
|
655
|
+
body:
|
|
656
|
+
application/json:
|
|
657
|
+
type: FacetableAttributesCollectionOutputRepresentation
|
|
658
|
+
body:
|
|
659
|
+
application/json:
|
|
660
|
+
type: FacetableAttributesCollectionInputRepresentation
|
|
661
|
+
(oas-body-name): facetableAttributeSettings
|
|
662
|
+
uriParameters:
|
|
663
|
+
webstoreId:
|
|
664
|
+
type: string
|
|
665
|
+
required: true
|
|
666
|
+
/searchable-fields:
|
|
667
|
+
get:
|
|
668
|
+
description: Get searchable attributes in a webstore
|
|
669
|
+
responses:
|
|
670
|
+
'200':
|
|
671
|
+
description: Success
|
|
672
|
+
body:
|
|
673
|
+
application/json:
|
|
674
|
+
type: SearchableAttributesCollectionOutputRepresentation
|
|
675
|
+
patch:
|
|
676
|
+
description: Modify searchability on attributes in a webstore
|
|
677
|
+
responses:
|
|
678
|
+
'200':
|
|
679
|
+
description: Success
|
|
680
|
+
body:
|
|
681
|
+
application/json:
|
|
682
|
+
type: SearchableAttributesCollectionOutputRepresentation
|
|
683
|
+
body:
|
|
684
|
+
application/json:
|
|
685
|
+
type: SearchableAttributesCollectionInputRepresentation
|
|
686
|
+
(oas-body-name): searchableAttributeSettings
|
|
687
|
+
uriParameters:
|
|
688
|
+
webstoreId:
|
|
689
|
+
type: string
|
|
690
|
+
required: true
|
|
691
|
+
/boost-bury-rules:
|
|
692
|
+
get:
|
|
693
|
+
displayName: getBoostBuryRulesCollectionManagement
|
|
694
|
+
description: Retrieves all the commerce search boost and bury rules for the given webstore.
|
|
695
|
+
responses:
|
|
696
|
+
'200':
|
|
697
|
+
description: Success
|
|
698
|
+
body:
|
|
699
|
+
application/json:
|
|
700
|
+
type: SearchBoostBuryRulesCollectionOutputRepresentation
|
|
701
|
+
post:
|
|
702
|
+
displayName: postBoostBuryRulesCollectionManagement
|
|
703
|
+
description: Creates a new commerce search boost and bury rule for the given webstore.
|
|
704
|
+
responses:
|
|
705
|
+
'200':
|
|
706
|
+
description: Success
|
|
707
|
+
body:
|
|
708
|
+
application/json:
|
|
709
|
+
type: SearchBoostBuryRuleOutputRepresentation
|
|
710
|
+
body:
|
|
711
|
+
application/json:
|
|
712
|
+
type: SearchBoostBuryRuleInputRepresentation
|
|
713
|
+
(oas-body-name): boostBuryRuleInput
|
|
714
|
+
uriParameters:
|
|
715
|
+
webstoreId:
|
|
716
|
+
type: string
|
|
717
|
+
required: true
|
|
718
|
+
/boost-bury-rules/{ruleId}:
|
|
719
|
+
delete:
|
|
720
|
+
displayName: deleteBoostBuryRulesManagement
|
|
721
|
+
description: Deletes a commerce search boost bury rule for the given webstore.
|
|
722
|
+
responses:
|
|
723
|
+
'200':
|
|
724
|
+
description: Success
|
|
725
|
+
get:
|
|
726
|
+
displayName: getBoostBuryRulesManagement
|
|
727
|
+
description: Retrieves a commerce search boost bury rule for the given webstore.
|
|
728
|
+
responses:
|
|
729
|
+
'200':
|
|
730
|
+
description: Success
|
|
731
|
+
body:
|
|
732
|
+
application/json:
|
|
733
|
+
type: SearchBoostBuryRuleOutputRepresentation
|
|
734
|
+
patch:
|
|
735
|
+
displayName: patchBoostBuryRulesManagement
|
|
736
|
+
description: Updates a commerce search boost bury rule for the given webstore.
|
|
737
|
+
responses:
|
|
738
|
+
'200':
|
|
739
|
+
description: Success
|
|
740
|
+
body:
|
|
741
|
+
application/json:
|
|
742
|
+
type: SearchBoostBuryRuleOutputRepresentation
|
|
743
|
+
body:
|
|
744
|
+
application/json:
|
|
745
|
+
type: SearchBoostBuryRuleInputRepresentation
|
|
746
|
+
(oas-body-name): boostBuryRuleInput
|
|
747
|
+
uriParameters:
|
|
748
|
+
ruleId:
|
|
749
|
+
type: string
|
|
750
|
+
required: true
|
|
751
|
+
webstoreId:
|
|
752
|
+
type: string
|
|
753
|
+
required: true
|
|
754
|
+
/indexes:
|
|
755
|
+
get:
|
|
756
|
+
description: Get indexes information for a webstore
|
|
757
|
+
responses:
|
|
758
|
+
'200':
|
|
759
|
+
description: Success
|
|
760
|
+
body:
|
|
761
|
+
application/json:
|
|
762
|
+
type: CommerceSearchIndexCollectionOutputRepresentation
|
|
763
|
+
# TODO: Hand rolled
|
|
764
|
+
# post:
|
|
765
|
+
# description: Post new product catalog for index creation and return output representation
|
|
766
|
+
# responses:
|
|
767
|
+
# '200':
|
|
768
|
+
# description: Success
|
|
769
|
+
# body:
|
|
770
|
+
# application/json:
|
|
771
|
+
# type: CommerceSearchIndexOutputRepresentation
|
|
772
|
+
uriParameters:
|
|
773
|
+
webstoreId:
|
|
774
|
+
type: string
|
|
775
|
+
required: true
|
|
776
|
+
/indexes/{indexId}:
|
|
777
|
+
delete:
|
|
778
|
+
description: Delete search index for a webstore
|
|
779
|
+
responses:
|
|
780
|
+
'200':
|
|
781
|
+
description: Success
|
|
782
|
+
get:
|
|
783
|
+
description: Get search index for a webstore by Id
|
|
784
|
+
responses:
|
|
785
|
+
'200':
|
|
786
|
+
description: Success
|
|
787
|
+
body:
|
|
788
|
+
application/json:
|
|
789
|
+
type: CommerceSearchIndexOutputRepresentation
|
|
790
|
+
uriParameters:
|
|
791
|
+
indexId:
|
|
792
|
+
type: string
|
|
793
|
+
required: true
|
|
794
|
+
webstoreId:
|
|
795
|
+
type: string
|
|
796
|
+
required: true
|
|
797
|
+
/product-settings:
|
|
798
|
+
get:
|
|
799
|
+
description: This retrieves search product settings selected by query product ids.
|
|
800
|
+
responses:
|
|
801
|
+
'200':
|
|
802
|
+
description: Success
|
|
803
|
+
body:
|
|
804
|
+
application/json:
|
|
805
|
+
type: SearchProductSettingCollectionOutputRepresentation
|
|
806
|
+
queryParameters:
|
|
807
|
+
ids:
|
|
808
|
+
type: string
|
|
809
|
+
required: false
|
|
810
|
+
patch:
|
|
811
|
+
description: This updates search product settings according to a request payload.
|
|
812
|
+
responses:
|
|
813
|
+
'200':
|
|
814
|
+
description: Success
|
|
815
|
+
body:
|
|
816
|
+
application/json:
|
|
817
|
+
type: SearchProductSettingCollectionOutputRepresentation
|
|
818
|
+
body:
|
|
819
|
+
application/json:
|
|
820
|
+
type: SearchProductSettingCollectionInputRepresentation
|
|
821
|
+
(oas-body-name): searchProductSettings
|
|
822
|
+
uriParameters:
|
|
823
|
+
webstoreId:
|
|
824
|
+
type: string
|
|
825
|
+
required: true
|
|
826
|
+
/webstores/{webstoreId}/search:
|
|
827
|
+
/product-search:
|
|
828
|
+
post:
|
|
829
|
+
description: Search for products in a webstore.
|
|
830
|
+
responses:
|
|
831
|
+
'200':
|
|
832
|
+
description: Success
|
|
833
|
+
body:
|
|
834
|
+
application/json:
|
|
835
|
+
type: ProductSearchResultsRepresentation
|
|
836
|
+
queryParameters:
|
|
837
|
+
effectiveAccountId:
|
|
838
|
+
type: string
|
|
839
|
+
required: false
|
|
840
|
+
body:
|
|
841
|
+
application/json:
|
|
842
|
+
type: ProductSearchInputRepresentation
|
|
843
|
+
(oas-body-name): productSearchInput
|
|
844
|
+
uriParameters:
|
|
845
|
+
webstoreId:
|
|
846
|
+
type: string
|
|
847
|
+
required: true
|
|
848
|
+
/suggestions:
|
|
849
|
+
get:
|
|
850
|
+
description: Get search suggestions in response to user's typing.
|
|
851
|
+
responses:
|
|
852
|
+
'200':
|
|
853
|
+
description: Success
|
|
854
|
+
body:
|
|
855
|
+
application/json:
|
|
856
|
+
type: ProductSearchSuggestionsResultsRepresentation
|
|
857
|
+
queryParameters:
|
|
858
|
+
effectiveAccountId:
|
|
859
|
+
type: string
|
|
860
|
+
required: false
|
|
861
|
+
limit:
|
|
862
|
+
type: integer
|
|
863
|
+
required: false
|
|
864
|
+
searchTerm:
|
|
865
|
+
type: string
|
|
866
|
+
required: false
|
|
867
|
+
uriParameters:
|
|
868
|
+
webstoreId:
|
|
869
|
+
type: string
|
|
870
|
+
required: true
|