@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,122 @@
|
|
|
1
|
+
#%RAML 1.0 Overlay
|
|
2
|
+
extends: ./api.raml
|
|
3
|
+
|
|
4
|
+
uses:
|
|
5
|
+
luvio: luvio://annotations.raml
|
|
6
|
+
|
|
7
|
+
(luvio.keyPrefix): 'Commerce'
|
|
8
|
+
(luvio.ttl): 2592000000
|
|
9
|
+
|
|
10
|
+
types:
|
|
11
|
+
BoostBuryConditionInputRepresentation:
|
|
12
|
+
(luvio.opaque): true
|
|
13
|
+
BoostBuryConditionOutputRepresentation:
|
|
14
|
+
(luvio.opaque): true
|
|
15
|
+
BoostBuryQueryContextConditionInputRepresentation:
|
|
16
|
+
(luvio.opaque): true
|
|
17
|
+
BoostBuryQueryContextConditionOutputRepresentation:
|
|
18
|
+
(luvio.opaque): true
|
|
19
|
+
BoostBuryQueryContextInputRepresentation:
|
|
20
|
+
(luvio.opaque): true
|
|
21
|
+
BoostBuryQueryContextOutputRepresentation:
|
|
22
|
+
(luvio.opaque): true
|
|
23
|
+
BoostBuryTargetExpressionInputRepresentation:
|
|
24
|
+
(luvio.opaque): true
|
|
25
|
+
BoostBuryTargetExpressionOutputRepresentation:
|
|
26
|
+
(luvio.opaque): true
|
|
27
|
+
ProductSearchResultsRepresentation:
|
|
28
|
+
(luvio.opaque): true
|
|
29
|
+
ProductSearchSuggestionsResultsRepresentation:
|
|
30
|
+
(luvio.opaque): true
|
|
31
|
+
examples:
|
|
32
|
+
validResponse: !include ../mocks/types/ProductSearchSuggestionsResultsRepresentation/validResponse.json
|
|
33
|
+
validResponseEmpty: !include ../mocks/types/ProductSearchSuggestionsResultsRepresentation/validResponseEmpty.json
|
|
34
|
+
SearchBoostBuryRuleInputRepresentation:
|
|
35
|
+
(luvio.opaque): true
|
|
36
|
+
SearchBoostBuryRuleOutputRepresentation:
|
|
37
|
+
(luvio.key):
|
|
38
|
+
id: id
|
|
39
|
+
SearchBoostBuryRulesCollectionOutputRepresentation:
|
|
40
|
+
(luvio.opaque): true
|
|
41
|
+
|
|
42
|
+
/commerce/management/webstores/{webstoreId}/search/boost-bury-rules:
|
|
43
|
+
get:
|
|
44
|
+
(luvio.adapter):
|
|
45
|
+
name: getSearchBoostBuryRules
|
|
46
|
+
post:
|
|
47
|
+
(luvio.adapter):
|
|
48
|
+
name: createSearchBoostBuryRule
|
|
49
|
+
|
|
50
|
+
/commerce/management/webstores/{webstoreId}/search/boost-bury-rules/{ruleId}:
|
|
51
|
+
get:
|
|
52
|
+
(luvio.key):
|
|
53
|
+
id: urlParams.ruleId
|
|
54
|
+
(luvio.adapter):
|
|
55
|
+
name: getSearchBoostBuryRule
|
|
56
|
+
patch:
|
|
57
|
+
(luvio.adapter):
|
|
58
|
+
name: updateSearchBoostBuryRule
|
|
59
|
+
delete:
|
|
60
|
+
(luvio.key):
|
|
61
|
+
id: urlParams.ruleId
|
|
62
|
+
(luvio.adapter):
|
|
63
|
+
name: deleteSearchBoostBuryRule
|
|
64
|
+
|
|
65
|
+
/commerce/webstores/{webstoreId}/search/product-search:
|
|
66
|
+
post:
|
|
67
|
+
(luvio.method): get
|
|
68
|
+
(luvio.adapter):
|
|
69
|
+
name: productSearch
|
|
70
|
+
|
|
71
|
+
/commerce/webstores/{webstoreId}/search/suggestions:
|
|
72
|
+
get:
|
|
73
|
+
(luvio.adapter):
|
|
74
|
+
name: getSuggestions
|
|
75
|
+
tests:
|
|
76
|
+
expectedResponses:
|
|
77
|
+
- configInput: |
|
|
78
|
+
{
|
|
79
|
+
"webstoreId": "0ZExx0000000001",
|
|
80
|
+
"searchTerm": "coffee",
|
|
81
|
+
"effectiveAccountId": "001xx000003GYTfAAO"
|
|
82
|
+
}
|
|
83
|
+
mockPayloadId: validResponse
|
|
84
|
+
- configInput: |
|
|
85
|
+
{
|
|
86
|
+
"webstoreId": "0ZExx0000000002",
|
|
87
|
+
"searchTerm": "coffee",
|
|
88
|
+
"effectiveAccountId": "001xx000003GYTfAAO"
|
|
89
|
+
}
|
|
90
|
+
mockPayloadId: validResponseEmpty
|
|
91
|
+
validConfigs:
|
|
92
|
+
- |
|
|
93
|
+
{
|
|
94
|
+
"webstoreId": "0ZExx0000000001",
|
|
95
|
+
"searchTerm": "coffee",
|
|
96
|
+
"effectiveAccountId": "001xx000003GYTfAAO"
|
|
97
|
+
}
|
|
98
|
+
- |
|
|
99
|
+
{
|
|
100
|
+
"webstoreId": "0ZExx0000000001"
|
|
101
|
+
}
|
|
102
|
+
invalidConfigs:
|
|
103
|
+
- |
|
|
104
|
+
{}
|
|
105
|
+
- |
|
|
106
|
+
{
|
|
107
|
+
"webstoreId": 1234567890
|
|
108
|
+
}
|
|
109
|
+
queryParameters:
|
|
110
|
+
searchTerm:
|
|
111
|
+
examples:
|
|
112
|
+
validResponse: 'coffee'
|
|
113
|
+
validResponseEmpty: 'coffee'
|
|
114
|
+
effectiveAccountId:
|
|
115
|
+
examples:
|
|
116
|
+
validResponse: '001xx000003GYTfAAO'
|
|
117
|
+
validResponseEmpty: '001xx000003GYTfAAO'
|
|
118
|
+
uriParameters:
|
|
119
|
+
webstoreId:
|
|
120
|
+
examples:
|
|
121
|
+
validResponse: '0ZExx0000000001'
|
|
122
|
+
validResponseEmpty: '0ZExx0000000002'
|