@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.
Files changed (74) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/commerce-search.js +1922 -0
  3. package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
  4. package/dist/es/es2018/types/src/generated/adapters/createSearchBoostBuryRule.d.ts +24 -0
  5. package/dist/es/es2018/types/src/generated/adapters/deleteSearchBoostBuryRule.d.ts +15 -0
  6. package/dist/es/es2018/types/src/generated/adapters/getSearchBoostBuryRule.d.ts +29 -0
  7. package/dist/es/es2018/types/src/generated/adapters/getSearchBoostBuryRules.d.ts +27 -0
  8. package/dist/es/es2018/types/src/generated/adapters/getSuggestions.d.ts +30 -0
  9. package/dist/es/es2018/types/src/generated/adapters/productSearch.d.ts +35 -0
  10. package/dist/es/es2018/types/src/generated/adapters/updateSearchBoostBuryRule.d.ts +25 -0
  11. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +7 -0
  12. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +13 -0
  13. package/dist/es/es2018/types/src/generated/resources/deleteCommerceManagementWebstoresSearchBoostBuryRulesByRuleIdAndWebstoreId.d.ts +13 -0
  14. package/dist/es/es2018/types/src/generated/resources/deleteCommerceManagementWebstoresSearchIndexesByIndexIdAndWebstoreId.d.ts +12 -0
  15. package/dist/es/es2018/types/src/generated/resources/getCommerceManagementWebstoresSearchAttributeSettingsFacetableFieldsByWebstoreId.d.ts +15 -0
  16. package/dist/es/es2018/types/src/generated/resources/getCommerceManagementWebstoresSearchAttributeSettingsSearchableFieldsByWebstoreId.d.ts +15 -0
  17. package/dist/es/es2018/types/src/generated/resources/getCommerceManagementWebstoresSearchBoostBuryRulesByRuleIdAndWebstoreId.d.ts +17 -0
  18. package/dist/es/es2018/types/src/generated/resources/getCommerceManagementWebstoresSearchBoostBuryRulesByWebstoreId.d.ts +15 -0
  19. package/dist/es/es2018/types/src/generated/resources/getCommerceManagementWebstoresSearchIndexesByIndexIdAndWebstoreId.d.ts +16 -0
  20. package/dist/es/es2018/types/src/generated/resources/getCommerceManagementWebstoresSearchIndexesByWebstoreId.d.ts +15 -0
  21. package/dist/es/es2018/types/src/generated/resources/getCommerceManagementWebstoresSearchProductSettingsByWebstoreId.d.ts +18 -0
  22. package/dist/es/es2018/types/src/generated/resources/getCommerceWebstoresSearchSuggestionsByWebstoreId.d.ts +20 -0
  23. package/dist/es/es2018/types/src/generated/resources/patchCommerceManagementWebstoresSearchAttributeSettingsSearchableFieldsByWebstoreId.d.ts +12 -0
  24. package/dist/es/es2018/types/src/generated/resources/patchCommerceManagementWebstoresSearchBoostBuryRulesByRuleIdAndWebstoreId.d.ts +24 -0
  25. package/dist/es/es2018/types/src/generated/resources/patchCommerceManagementWebstoresSearchProductSettingsByWebstoreId.d.ts +12 -0
  26. package/dist/es/es2018/types/src/generated/resources/postCommerceManagementWebstoresSearchBoostBuryRulesByWebstoreId.d.ts +23 -0
  27. package/dist/es/es2018/types/src/generated/resources/postCommerceWebstoresSearchProductSearchByWebstoreId.d.ts +27 -0
  28. package/dist/es/es2018/types/src/generated/resources/putCommerceManagementWebstoresSearchAttributeSettingsFacetableFieldsByWebstoreId.d.ts +12 -0
  29. package/dist/es/es2018/types/src/generated/types/BoostBuryConditionInputRepresentation.d.ts +34 -0
  30. package/dist/es/es2018/types/src/generated/types/BoostBuryConditionOutputRepresentation.d.ts +34 -0
  31. package/dist/es/es2018/types/src/generated/types/BoostBuryQueryContextConditionInputRepresentation.d.ts +34 -0
  32. package/dist/es/es2018/types/src/generated/types/BoostBuryQueryContextConditionOutputRepresentation.d.ts +34 -0
  33. package/dist/es/es2018/types/src/generated/types/BoostBuryQueryContextInputRepresentation.d.ts +29 -0
  34. package/dist/es/es2018/types/src/generated/types/BoostBuryQueryContextOutputRepresentation.d.ts +29 -0
  35. package/dist/es/es2018/types/src/generated/types/BoostBuryTargetExpressionInputRepresentation.d.ts +29 -0
  36. package/dist/es/es2018/types/src/generated/types/BoostBuryTargetExpressionOutputRepresentation.d.ts +29 -0
  37. package/dist/es/es2018/types/src/generated/types/CommerceSearchIndexCollectionOutputRepresentation.d.ts +29 -0
  38. package/dist/es/es2018/types/src/generated/types/CommerceSearchIndexOutputRepresentation.d.ts +46 -0
  39. package/dist/es/es2018/types/src/generated/types/DistinctFacetValueRepresentation.d.ts +36 -0
  40. package/dist/es/es2018/types/src/generated/types/DistinctValueSearchFacetRepresentation.d.ts +31 -0
  41. package/dist/es/es2018/types/src/generated/types/FacetValueRepresentation.d.ts +33 -0
  42. package/dist/es/es2018/types/src/generated/types/FacetableAttributeInputRepresentation.d.ts +37 -0
  43. package/dist/es/es2018/types/src/generated/types/FacetableAttributeOutputRepresentation.d.ts +40 -0
  44. package/dist/es/es2018/types/src/generated/types/FacetableAttributesCollectionInputRepresentation.d.ts +28 -0
  45. package/dist/es/es2018/types/src/generated/types/FacetableAttributesCollectionOutputRepresentation.d.ts +29 -0
  46. package/dist/es/es2018/types/src/generated/types/ProductSearchInputRepresentation.d.ts +46 -0
  47. package/dist/es/es2018/types/src/generated/types/ProductSearchResultsRepresentation.d.ts +39 -0
  48. package/dist/es/es2018/types/src/generated/types/ProductSearchSuggestionsResultsRepresentation.d.ts +32 -0
  49. package/dist/es/es2018/types/src/generated/types/ProductSummaryCollectionRepresentation.d.ts +38 -0
  50. package/dist/es/es2018/types/src/generated/types/ProductSummaryRepresentation.d.ts +38 -0
  51. package/dist/es/es2018/types/src/generated/types/RefinementInputRepresentation.d.ts +31 -0
  52. package/dist/es/es2018/types/src/generated/types/SearchBoostBuryRuleInputRepresentation.d.ts +48 -0
  53. package/dist/es/es2018/types/src/generated/types/SearchBoostBuryRuleOutputRepresentation.d.ts +71 -0
  54. package/dist/es/es2018/types/src/generated/types/SearchBoostBuryRulesCollectionOutputRepresentation.d.ts +29 -0
  55. package/dist/es/es2018/types/src/generated/types/SearchCategoryRepresentation.d.ts +31 -0
  56. package/dist/es/es2018/types/src/generated/types/SearchFacetRepresentation.d.ts +48 -0
  57. package/dist/es/es2018/types/src/generated/types/SearchProductSettingCollectionInputRepresentation.d.ts +28 -0
  58. package/dist/es/es2018/types/src/generated/types/SearchProductSettingCollectionOutputRepresentation.d.ts +29 -0
  59. package/dist/es/es2018/types/src/generated/types/SearchProductSettingInputRepresentation.d.ts +31 -0
  60. package/dist/es/es2018/types/src/generated/types/SearchProductSettingOutputRepresentation.d.ts +31 -0
  61. package/dist/es/es2018/types/src/generated/types/SearchableAttributeInputRepresentation.d.ts +34 -0
  62. package/dist/es/es2018/types/src/generated/types/SearchableAttributeOutputRepresentation.d.ts +34 -0
  63. package/dist/es/es2018/types/src/generated/types/SearchableAttributesCollectionInputRepresentation.d.ts +28 -0
  64. package/dist/es/es2018/types/src/generated/types/SearchableAttributesCollectionOutputRepresentation.d.ts +29 -0
  65. package/dist/es/es2018/types/src/generated/types/SuggestedCompletionRepresentation.d.ts +28 -0
  66. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  67. package/dist/es/es2018/types/src/main.d.ts +6 -0
  68. package/dist/es/es2018/types/src/raml-artifacts/types/SearchBoostBuryRulesCollectionOutputRepresentation/notifyUpdateAvailableFactory.d.ts +2 -0
  69. package/dist/es/es2018/types/src/sfdc.d.ts +7 -0
  70. package/package.json +61 -0
  71. package/sfdc/index.d.ts +1 -0
  72. package/sfdc/index.js +2049 -0
  73. package/src/raml/api.raml +870 -0
  74. 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'