@wix/auto_sdk_ecom_recommendations 1.0.6 → 1.0.7

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 (130) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/ecom-recommendations-v1-recommendation-recommendations.context.d.ts +6 -0
  11. package/build/cjs/src/ecom-recommendations-v1-recommendation-recommendations.context.js +10 -0
  12. package/build/cjs/src/ecom-recommendations-v1-recommendation-recommendations.context.js.map +1 -0
  13. package/build/cjs/src/ecom-recommendations-v1-recommendation-recommendations.http.d.ts +37 -0
  14. package/build/cjs/src/ecom-recommendations-v1-recommendation-recommendations.http.js +94 -0
  15. package/build/cjs/src/ecom-recommendations-v1-recommendation-recommendations.http.js.map +1 -0
  16. package/build/cjs/src/ecom-recommendations-v1-recommendation-recommendations.meta.d.ts +14 -0
  17. package/build/cjs/src/ecom-recommendations-v1-recommendation-recommendations.meta.js +66 -0
  18. package/build/cjs/src/ecom-recommendations-v1-recommendation-recommendations.meta.js.map +1 -0
  19. package/build/{internal/index.d.ts → cjs/src/ecom-recommendations-v1-recommendation-recommendations.public.d.ts} +8 -11
  20. package/build/cjs/src/ecom-recommendations-v1-recommendation-recommendations.public.js +20 -0
  21. package/build/cjs/src/ecom-recommendations-v1-recommendation-recommendations.public.js.map +1 -0
  22. package/build/{ecom-recommendations-v1-recommendation-recommendations.universal-DXecA95A.d.mts → cjs/src/ecom-recommendations-v1-recommendation-recommendations.types.d.ts} +13 -29
  23. package/build/cjs/src/ecom-recommendations-v1-recommendation-recommendations.types.js +10 -0
  24. package/build/cjs/src/ecom-recommendations-v1-recommendation-recommendations.types.js.map +1 -0
  25. package/build/cjs/src/ecom-recommendations-v1-recommendation-recommendations.universal.d.ts +258 -0
  26. package/build/cjs/src/ecom-recommendations-v1-recommendation-recommendations.universal.js +158 -0
  27. package/build/cjs/src/ecom-recommendations-v1-recommendation-recommendations.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/ecom-recommendations-v1-recommendation-recommendations.context.d.ts +6 -0
  39. package/build/es/src/ecom-recommendations-v1-recommendation-recommendations.context.js +6 -0
  40. package/build/es/src/ecom-recommendations-v1-recommendation-recommendations.context.js.map +1 -0
  41. package/build/es/src/ecom-recommendations-v1-recommendation-recommendations.http.d.ts +37 -0
  42. package/build/es/src/ecom-recommendations-v1-recommendation-recommendations.http.js +89 -0
  43. package/build/es/src/ecom-recommendations-v1-recommendation-recommendations.http.js.map +1 -0
  44. package/build/es/src/ecom-recommendations-v1-recommendation-recommendations.meta.d.ts +14 -0
  45. package/build/es/src/ecom-recommendations-v1-recommendation-recommendations.meta.js +38 -0
  46. package/build/es/src/ecom-recommendations-v1-recommendation-recommendations.meta.js.map +1 -0
  47. package/build/{index.d.ts → es/src/ecom-recommendations-v1-recommendation-recommendations.public.d.ts} +8 -11
  48. package/build/es/src/ecom-recommendations-v1-recommendation-recommendations.public.js +14 -0
  49. package/build/es/src/ecom-recommendations-v1-recommendation-recommendations.public.js.map +1 -0
  50. package/build/{ecom-recommendations-v1-recommendation-recommendations.universal-DXecA95A.d.ts → es/src/ecom-recommendations-v1-recommendation-recommendations.types.d.ts} +13 -29
  51. package/build/es/src/ecom-recommendations-v1-recommendation-recommendations.types.js +7 -0
  52. package/build/es/src/ecom-recommendations-v1-recommendation-recommendations.types.js.map +1 -0
  53. package/build/es/src/ecom-recommendations-v1-recommendation-recommendations.universal.d.ts +258 -0
  54. package/build/es/src/ecom-recommendations-v1-recommendation-recommendations.universal.js +130 -0
  55. package/build/es/src/ecom-recommendations-v1-recommendation-recommendations.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/ecom-recommendations-v1-recommendation-recommendations.context.d.ts +6 -0
  66. package/build/internal/cjs/src/ecom-recommendations-v1-recommendation-recommendations.context.js +10 -0
  67. package/build/internal/cjs/src/ecom-recommendations-v1-recommendation-recommendations.context.js.map +1 -0
  68. package/build/internal/cjs/src/ecom-recommendations-v1-recommendation-recommendations.http.d.ts +37 -0
  69. package/build/internal/cjs/src/ecom-recommendations-v1-recommendation-recommendations.http.js +94 -0
  70. package/build/internal/cjs/src/ecom-recommendations-v1-recommendation-recommendations.http.js.map +1 -0
  71. package/build/internal/cjs/src/ecom-recommendations-v1-recommendation-recommendations.meta.d.ts +14 -0
  72. package/build/internal/cjs/src/ecom-recommendations-v1-recommendation-recommendations.meta.js +66 -0
  73. package/build/internal/cjs/src/ecom-recommendations-v1-recommendation-recommendations.meta.js.map +1 -0
  74. package/build/internal/{index.d.mts → cjs/src/ecom-recommendations-v1-recommendation-recommendations.public.d.ts} +8 -11
  75. package/build/internal/cjs/src/ecom-recommendations-v1-recommendation-recommendations.public.js +20 -0
  76. package/build/internal/cjs/src/ecom-recommendations-v1-recommendation-recommendations.public.js.map +1 -0
  77. package/build/internal/{ecom-recommendations-v1-recommendation-recommendations.universal-DXecA95A.d.mts → cjs/src/ecom-recommendations-v1-recommendation-recommendations.types.d.ts} +13 -29
  78. package/build/internal/cjs/src/ecom-recommendations-v1-recommendation-recommendations.types.js +10 -0
  79. package/build/internal/cjs/src/ecom-recommendations-v1-recommendation-recommendations.types.js.map +1 -0
  80. package/build/internal/cjs/src/ecom-recommendations-v1-recommendation-recommendations.universal.d.ts +258 -0
  81. package/build/internal/cjs/src/ecom-recommendations-v1-recommendation-recommendations.universal.js +158 -0
  82. package/build/internal/cjs/src/ecom-recommendations-v1-recommendation-recommendations.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/ecom-recommendations-v1-recommendation-recommendations.context.d.ts +6 -0
  93. package/build/internal/es/src/ecom-recommendations-v1-recommendation-recommendations.context.js +6 -0
  94. package/build/internal/es/src/ecom-recommendations-v1-recommendation-recommendations.context.js.map +1 -0
  95. package/build/internal/es/src/ecom-recommendations-v1-recommendation-recommendations.http.d.ts +37 -0
  96. package/build/internal/es/src/ecom-recommendations-v1-recommendation-recommendations.http.js +89 -0
  97. package/build/internal/es/src/ecom-recommendations-v1-recommendation-recommendations.http.js.map +1 -0
  98. package/build/internal/es/src/ecom-recommendations-v1-recommendation-recommendations.meta.d.ts +14 -0
  99. package/build/internal/es/src/ecom-recommendations-v1-recommendation-recommendations.meta.js +38 -0
  100. package/build/internal/es/src/ecom-recommendations-v1-recommendation-recommendations.meta.js.map +1 -0
  101. package/build/{index.d.mts → internal/es/src/ecom-recommendations-v1-recommendation-recommendations.public.d.ts} +8 -11
  102. package/build/internal/es/src/ecom-recommendations-v1-recommendation-recommendations.public.js +14 -0
  103. package/build/internal/es/src/ecom-recommendations-v1-recommendation-recommendations.public.js.map +1 -0
  104. package/build/internal/{ecom-recommendations-v1-recommendation-recommendations.universal-DXecA95A.d.ts → es/src/ecom-recommendations-v1-recommendation-recommendations.types.d.ts} +13 -29
  105. package/build/internal/es/src/ecom-recommendations-v1-recommendation-recommendations.types.js +7 -0
  106. package/build/internal/es/src/ecom-recommendations-v1-recommendation-recommendations.types.js.map +1 -0
  107. package/build/internal/es/src/ecom-recommendations-v1-recommendation-recommendations.universal.d.ts +258 -0
  108. package/build/internal/es/src/ecom-recommendations-v1-recommendation-recommendations.universal.js +130 -0
  109. package/build/internal/es/src/ecom-recommendations-v1-recommendation-recommendations.universal.js.map +1 -0
  110. package/package.json +11 -12
  111. package/build/index.js +0 -179
  112. package/build/index.js.map +0 -1
  113. package/build/index.mjs +0 -153
  114. package/build/index.mjs.map +0 -1
  115. package/build/internal/index.js +0 -179
  116. package/build/internal/index.js.map +0 -1
  117. package/build/internal/index.mjs +0 -153
  118. package/build/internal/index.mjs.map +0 -1
  119. package/build/internal/meta.d.mts +0 -162
  120. package/build/internal/meta.d.ts +0 -162
  121. package/build/internal/meta.js +0 -128
  122. package/build/internal/meta.js.map +0 -1
  123. package/build/internal/meta.mjs +0 -100
  124. package/build/internal/meta.mjs.map +0 -1
  125. package/build/meta.d.mts +0 -162
  126. package/build/meta.d.ts +0 -162
  127. package/build/meta.js +0 -128
  128. package/build/meta.js.map +0 -1
  129. package/build/meta.mjs +0 -100
  130. package/build/meta.mjs.map +0 -1
@@ -0,0 +1 @@
1
+ export * from './src/ecom-recommendations-v1-recommendation-recommendations.context.js';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./src/ecom-recommendations-v1-recommendation-recommendations.context.js"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0GAAwF"}
@@ -0,0 +1 @@
1
+ export * from './src/ecom-recommendations-v1-recommendation-recommendations.universal.js';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./src/ecom-recommendations-v1-recommendation-recommendations.universal.js"), exports);
18
+ //# sourceMappingURL=index.typings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4GAA0F"}
@@ -0,0 +1 @@
1
+ export * from './src/ecom-recommendations-v1-recommendation-recommendations.meta.js';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./src/ecom-recommendations-v1-recommendation-recommendations.meta.js"), exports);
18
+ //# sourceMappingURL=meta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uGAAqF"}
@@ -0,0 +1,6 @@
1
+ import { listAvailableAlgorithms as publicListAvailableAlgorithms, getRecommendation as publicGetRecommendation } from './ecom-recommendations-v1-recommendation-recommendations.public.js';
2
+ import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
3
+ export declare const listAvailableAlgorithms: MaybeContext<BuildRESTFunction<typeof publicListAvailableAlgorithms> & typeof publicListAvailableAlgorithms>;
4
+ export declare const getRecommendation: MaybeContext<BuildRESTFunction<typeof publicGetRecommendation> & typeof publicGetRecommendation>;
5
+ export { AlgorithmType } from './ecom-recommendations-v1-recommendation-recommendations.universal.js';
6
+ export { Recommendation, CatalogReference, Algorithm, ListAvailableAlgorithmsRequest, ListAvailableAlgorithmsResponse, AlgorithmInfo, AlgorithmConfig, GetRecommendationRequest, GetRecommendationResponse, ItemAppIdNotSupportedByProvider, RecommendationAlgorithmNotSupported, GetRecommendationOptions, } from './ecom-recommendations-v1-recommendation-recommendations.universal.js';
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AlgorithmType = exports.getRecommendation = exports.listAvailableAlgorithms = void 0;
4
+ const ecom_recommendations_v1_recommendation_recommendations_public_js_1 = require("./ecom-recommendations-v1-recommendation-recommendations.public.js");
5
+ const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
6
+ exports.listAvailableAlgorithms = (0, rest_modules_1.createRESTModule)(ecom_recommendations_v1_recommendation_recommendations_public_js_1.listAvailableAlgorithms);
7
+ exports.getRecommendation = (0, rest_modules_1.createRESTModule)(ecom_recommendations_v1_recommendation_recommendations_public_js_1.getRecommendation);
8
+ var ecom_recommendations_v1_recommendation_recommendations_universal_js_1 = require("./ecom-recommendations-v1-recommendation-recommendations.universal.js");
9
+ Object.defineProperty(exports, "AlgorithmType", { enumerable: true, get: function () { return ecom_recommendations_v1_recommendation_recommendations_universal_js_1.AlgorithmType; } });
10
+ //# sourceMappingURL=ecom-recommendations-v1-recommendation-recommendations.context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ecom-recommendations-v1-recommendation-recommendations.context.js","sourceRoot":"","sources":["../../../src/ecom-recommendations-v1-recommendation-recommendations.context.ts"],"names":[],"mappings":";;;AAAA,yJAG4E;AAC5E,gEAAiE;AAGpD,QAAA,uBAAuB,GAGlB,IAAA,+BAAgB,EAAC,0FAA6B,CAAC,CAAC;AACrD,QAAA,iBAAiB,GAGZ,IAAA,+BAAgB,EAAC,oFAAuB,CAAC,CAAC;AAE5D,6JAAsG;AAA7F,oKAAA,aAAa,OAAA"}
@@ -0,0 +1,37 @@
1
+ import { RequestOptionsFactory } from '@wix/sdk-types';
2
+ /**
3
+ * Returns a list of recommendation algorithms that can be used on your Wix site or project. These algorithms can be used with [`getRecommendation()`](#getRecommendation) to provide item recommendations to the customer.
4
+ *
5
+ * Algorithms are run by the apps that provide them, and can only be used on catalogs they support. Apps may provide algorithms for use with their own catalogs and/or catalogs from other apps.
6
+ *
7
+ * The app which provides an algorithm is referenced by that algorithm’s `appId`. The apps whose catalogs are supported by an algorithm are referenced by the IDs in that algorithm’s `catalogAppIds` array.
8
+ *
9
+ *
10
+ * For an algorithm to be considered “Available” and returned in this method’s response, the algorithm must meet the following conditions:
11
+ * 1. The algorithm’s `appId` must match the ID of an installed Wix app.
12
+ * 2. At least 1 of the IDs in `catalogAppIds` must match the ID of an installed Wix app.
13
+ *
14
+ * Wix app IDs are [listed here](https://dev.wix.com/api/rest/getting-started/wix-business-solutions#getting-started_wix-business-solutions_about-wix-business-solutions).
15
+ */
16
+ export declare function listAvailableAlgorithms(payload: object): RequestOptionsFactory<any>;
17
+ /**
18
+ * Returns a recommendation object containing a list of items to recommend to the customer.
19
+ *
20
+ * `getRecommendation()` determines which items to recommend based on the given recommendation algorithms.
21
+ *
22
+ * `getRecommendation()` doesn’t run the algorithms. It calls the installed apps that provide them.
23
+ *
24
+ * Apps may provide algorithms for use with their own catalogs, or for use with catalogs from other apps.
25
+ * For example, Wix Stores provides algorithms that can only be used on its own catalogs.
26
+ * To run an algorithm, the app providing it must be installed, and an app providing a supported catalog must be installed.
27
+ * For more information and to see which algorithms are available on your site or project, call [`listAvailableAlgorithms()`](#listavailablealgorithms).
28
+ *
29
+ * `getRecommendation()` operates as follows:
30
+ * 1. `getRecommendation()` receives as input a list of algorithms as an array. These algorithms can be provided by different apps and can apply to different catalogs.
31
+ * 2. `getRecommendation()` calls the app that corresponds to the `appId` of the first algorithm in the list of algorithms. It passes that algorithm’s ID and the IDs of any subsequent algorithms in the array for the same app.
32
+ * 3. The app runs the algorithms.
33
+ * 4. `getRecommendation()` returns items recommendations from the first algorithm (according to its position in the `algorithms` array) that meets the minimum number of recommendations. At that point `getRecommendation()` stops calling other apps.
34
+ * 5. If none of the algorithms run by the first app meet the minimum recommended items, `getRecommendation()` finds the next algorithm in the array with a new `appId` (an ID of an app that has not yet been called), and repeats the process.
35
+ * 6. If no algorithms in the `algorithms` array recommend at least the minimum recommended items, `getRecommendation()` returns an empty array.
36
+ */
37
+ export declare function getRecommendation(payload: object): RequestOptionsFactory<any>;
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRecommendation = exports.listAvailableAlgorithms = void 0;
4
+ const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
5
+ const rest_modules_2 = require("@wix/sdk-runtime/rest-modules");
6
+ function resolveComWixEcomRecommendationsV1RecommendationsServiceUrl(opts) {
7
+ const domainToMappings = {
8
+ 'www.wixapis.com': [
9
+ {
10
+ srcPath: '/v1/recommendations',
11
+ destPath: '/v1/recommendations',
12
+ },
13
+ {
14
+ srcPath: '/ecom/v1/recommendations',
15
+ destPath: '/v1/recommendations',
16
+ },
17
+ ],
18
+ };
19
+ return (0, rest_modules_2.resolveUrl)(Object.assign(opts, { domainToMappings }));
20
+ }
21
+ const PACKAGE_NAME = '@wix/auto_sdk_ecom_recommendations';
22
+ /**
23
+ * Returns a list of recommendation algorithms that can be used on your Wix site or project. These algorithms can be used with [`getRecommendation()`](#getRecommendation) to provide item recommendations to the customer.
24
+ *
25
+ * Algorithms are run by the apps that provide them, and can only be used on catalogs they support. Apps may provide algorithms for use with their own catalogs and/or catalogs from other apps.
26
+ *
27
+ * The app which provides an algorithm is referenced by that algorithm’s `appId`. The apps whose catalogs are supported by an algorithm are referenced by the IDs in that algorithm’s `catalogAppIds` array.
28
+ *
29
+ *
30
+ * For an algorithm to be considered “Available” and returned in this method’s response, the algorithm must meet the following conditions:
31
+ * 1. The algorithm’s `appId` must match the ID of an installed Wix app.
32
+ * 2. At least 1 of the IDs in `catalogAppIds` must match the ID of an installed Wix app.
33
+ *
34
+ * Wix app IDs are [listed here](https://dev.wix.com/api/rest/getting-started/wix-business-solutions#getting-started_wix-business-solutions_about-wix-business-solutions).
35
+ */
36
+ function listAvailableAlgorithms(payload) {
37
+ function __listAvailableAlgorithms({ host }) {
38
+ const metadata = {
39
+ entityFqdn: 'wix.ecom.recommendations.v1.recommendation',
40
+ method: 'GET',
41
+ methodFqn: 'com.wix.ecom.recommendations.v1.RecommendationsService.ListAvailableAlgorithms',
42
+ packageName: PACKAGE_NAME,
43
+ url: resolveComWixEcomRecommendationsV1RecommendationsServiceUrl({
44
+ protoPath: '/v1/recommendations/algorithms',
45
+ data: payload,
46
+ host,
47
+ }),
48
+ params: (0, rest_modules_1.toURLSearchParams)(payload),
49
+ };
50
+ return metadata;
51
+ }
52
+ return __listAvailableAlgorithms;
53
+ }
54
+ exports.listAvailableAlgorithms = listAvailableAlgorithms;
55
+ /**
56
+ * Returns a recommendation object containing a list of items to recommend to the customer.
57
+ *
58
+ * `getRecommendation()` determines which items to recommend based on the given recommendation algorithms.
59
+ *
60
+ * `getRecommendation()` doesn’t run the algorithms. It calls the installed apps that provide them.
61
+ *
62
+ * Apps may provide algorithms for use with their own catalogs, or for use with catalogs from other apps.
63
+ * For example, Wix Stores provides algorithms that can only be used on its own catalogs.
64
+ * To run an algorithm, the app providing it must be installed, and an app providing a supported catalog must be installed.
65
+ * For more information and to see which algorithms are available on your site or project, call [`listAvailableAlgorithms()`](#listavailablealgorithms).
66
+ *
67
+ * `getRecommendation()` operates as follows:
68
+ * 1. `getRecommendation()` receives as input a list of algorithms as an array. These algorithms can be provided by different apps and can apply to different catalogs.
69
+ * 2. `getRecommendation()` calls the app that corresponds to the `appId` of the first algorithm in the list of algorithms. It passes that algorithm’s ID and the IDs of any subsequent algorithms in the array for the same app.
70
+ * 3. The app runs the algorithms.
71
+ * 4. `getRecommendation()` returns items recommendations from the first algorithm (according to its position in the `algorithms` array) that meets the minimum number of recommendations. At that point `getRecommendation()` stops calling other apps.
72
+ * 5. If none of the algorithms run by the first app meet the minimum recommended items, `getRecommendation()` finds the next algorithm in the array with a new `appId` (an ID of an app that has not yet been called), and repeats the process.
73
+ * 6. If no algorithms in the `algorithms` array recommend at least the minimum recommended items, `getRecommendation()` returns an empty array.
74
+ */
75
+ function getRecommendation(payload) {
76
+ function __getRecommendation({ host }) {
77
+ const metadata = {
78
+ entityFqdn: 'wix.ecom.recommendations.v1.recommendation',
79
+ method: 'POST',
80
+ methodFqn: 'com.wix.ecom.recommendations.v1.RecommendationsService.GetRecommendation',
81
+ packageName: PACKAGE_NAME,
82
+ url: resolveComWixEcomRecommendationsV1RecommendationsServiceUrl({
83
+ protoPath: '/v1/recommendations/get',
84
+ data: payload,
85
+ host,
86
+ }),
87
+ data: payload,
88
+ };
89
+ return metadata;
90
+ }
91
+ return __getRecommendation;
92
+ }
93
+ exports.getRecommendation = getRecommendation;
94
+ //# sourceMappingURL=ecom-recommendations-v1-recommendation-recommendations.http.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ecom-recommendations-v1-recommendation-recommendations.http.js","sourceRoot":"","sources":["../../../src/ecom-recommendations-v1-recommendation-recommendations.http.ts"],"names":[],"mappings":";;;AAAA,gEAAkE;AAClE,gEAA2D;AAI3D,SAAS,2DAA2D,CAClE,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,qBAAqB;gBAC9B,QAAQ,EAAE,qBAAqB;aAChC;YACD;gBACE,OAAO,EAAE,0BAA0B;gBACnC,QAAQ,EAAE,qBAAqB;aAChC;SACF;KACF,CAAC;IAEF,OAAO,IAAA,yBAAU,EAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,YAAY,GAAG,oCAAoC,CAAC;AAE1D;;;;;;;;;;;;;GAaG;AACH,SAAgB,uBAAuB,CACrC,OAAe;IAEf,SAAS,yBAAyB,CAAC,EAAE,IAAI,EAAO;QAC9C,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,4CAA4C;YACxD,MAAM,EAAE,KAAY;YACpB,SAAS,EACP,gFAAgF;YAClF,WAAW,EAAE,YAAY;YACzB,GAAG,EAAE,2DAA2D,CAAC;gBAC/D,SAAS,EAAE,gCAAgC;gBAC3C,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,MAAM,EAAE,IAAA,gCAAiB,EAAC,OAAO,CAAC;SACnC,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,yBAAyB,CAAC;AACnC,CAAC;AAtBD,0DAsBC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,iBAAiB,CAAC,OAAe;IAC/C,SAAS,mBAAmB,CAAC,EAAE,IAAI,EAAO;QACxC,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,4CAA4C;YACxD,MAAM,EAAE,MAAa;YACrB,SAAS,EACP,0EAA0E;YAC5E,WAAW,EAAE,YAAY;YACzB,GAAG,EAAE,2DAA2D,CAAC;gBAC/D,SAAS,EAAE,yBAAyB;gBACpC,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,IAAI,EAAE,OAAO;SACd,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,mBAAmB,CAAC;AAC7B,CAAC;AApBD,8CAoBC"}
@@ -0,0 +1,14 @@
1
+ import * as ambassadorWixEcomRecommendationsV1RecommendationTypes from './ecom-recommendations-v1-recommendation-recommendations.types.js';
2
+ import * as ambassadorWixEcomRecommendationsV1RecommendationUniversalTypes from './ecom-recommendations-v1-recommendation-recommendations.universal.js';
3
+ export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
4
+ getUrl: (context: any) => string;
5
+ httpMethod: K;
6
+ path: string;
7
+ pathParams: M;
8
+ __requestType: T;
9
+ __originalRequestType: S;
10
+ __responseType: Q;
11
+ __originalResponseType: R;
12
+ };
13
+ export declare function listAvailableAlgorithms(): __PublicMethodMetaInfo<'GET', {}, ambassadorWixEcomRecommendationsV1RecommendationUniversalTypes.ListAvailableAlgorithmsRequest, ambassadorWixEcomRecommendationsV1RecommendationTypes.ListAvailableAlgorithmsRequest, ambassadorWixEcomRecommendationsV1RecommendationUniversalTypes.ListAvailableAlgorithmsResponse, ambassadorWixEcomRecommendationsV1RecommendationTypes.ListAvailableAlgorithmsResponse>;
14
+ export declare function getRecommendation(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixEcomRecommendationsV1RecommendationUniversalTypes.GetRecommendationRequest, ambassadorWixEcomRecommendationsV1RecommendationTypes.GetRecommendationRequest, ambassadorWixEcomRecommendationsV1RecommendationUniversalTypes.GetRecommendationResponse, ambassadorWixEcomRecommendationsV1RecommendationTypes.GetRecommendationResponse>;
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.getRecommendation = exports.listAvailableAlgorithms = void 0;
27
+ const ambassadorWixEcomRecommendationsV1Recommendation = __importStar(require("./ecom-recommendations-v1-recommendation-recommendations.http.js"));
28
+ function listAvailableAlgorithms() {
29
+ const payload = {};
30
+ const getRequestOptions = ambassadorWixEcomRecommendationsV1Recommendation.listAvailableAlgorithms(payload);
31
+ const getUrl = (context) => {
32
+ const { url } = getRequestOptions(context);
33
+ return url;
34
+ };
35
+ return {
36
+ getUrl,
37
+ httpMethod: 'GET',
38
+ path: '/v1/recommendations/algorithms',
39
+ pathParams: {},
40
+ __requestType: null,
41
+ __originalRequestType: null,
42
+ __responseType: null,
43
+ __originalResponseType: null,
44
+ };
45
+ }
46
+ exports.listAvailableAlgorithms = listAvailableAlgorithms;
47
+ function getRecommendation() {
48
+ const payload = {};
49
+ const getRequestOptions = ambassadorWixEcomRecommendationsV1Recommendation.getRecommendation(payload);
50
+ const getUrl = (context) => {
51
+ const { url } = getRequestOptions(context);
52
+ return url;
53
+ };
54
+ return {
55
+ getUrl,
56
+ httpMethod: 'POST',
57
+ path: '/v1/recommendations/get',
58
+ pathParams: {},
59
+ __requestType: null,
60
+ __originalRequestType: null,
61
+ __responseType: null,
62
+ __originalResponseType: null,
63
+ };
64
+ }
65
+ exports.getRecommendation = getRecommendation;
66
+ //# sourceMappingURL=ecom-recommendations-v1-recommendation-recommendations.meta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ecom-recommendations-v1-recommendation-recommendations.meta.js","sourceRoot":"","sources":["../../../src/ecom-recommendations-v1-recommendation-recommendations.meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mJAAqI;AAsBrI,SAAgB,uBAAuB;IAQrC,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,gDAAgD,CAAC,uBAAuB,CACtE,OAAO,CACR,CAAC;IAEJ,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,KAAK;QACjB,IAAI,EAAE,gCAAgC;QACtC,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA9BD,0DA8BC;AAED,SAAgB,iBAAiB;IAQ/B,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,gDAAgD,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAE9E,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,yBAAyB;QAC/B,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA5BD,8CA4BC"}
@@ -1,8 +1,9 @@
1
- import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
- import { L as ListAvailableAlgorithmsResponse, A as Algorithm, G as GetRecommendationOptions, a as GetRecommendationResponse } from './ecom-recommendations-v1-recommendation-recommendations.universal-DXecA95A.js';
3
- export { e as AlgorithmConfig, d as AlgorithmInfo, b as AlgorithmType, C as CatalogReference, f as GetRecommendationRequest, I as ItemAppIdNotSupportedByProvider, c as ListAvailableAlgorithmsRequest, R as Recommendation, g as RecommendationAlgorithmNotSupported } from './ecom-recommendations-v1-recommendation-recommendations.universal-DXecA95A.js';
4
-
5
- declare function listAvailableAlgorithms$1(httpClient: HttpClient): ListAvailableAlgorithmsSignature;
1
+ import { HttpClient } from '@wix/sdk-types';
2
+ import { Algorithm, GetRecommendationOptions, GetRecommendationResponse, ListAvailableAlgorithmsResponse } from './ecom-recommendations-v1-recommendation-recommendations.universal.js';
3
+ export declare const __metadata: {
4
+ PACKAGE_NAME: string;
5
+ };
6
+ export declare function listAvailableAlgorithms(httpClient: HttpClient): ListAvailableAlgorithmsSignature;
6
7
  interface ListAvailableAlgorithmsSignature {
7
8
  /**
8
9
  * Returns a list of recommendation algorithms that can be used on your Wix site or project. These algorithms can be used with [`getRecommendation()`](#getRecommendation) to provide item recommendations to the customer.
@@ -20,7 +21,7 @@ interface ListAvailableAlgorithmsSignature {
20
21
  */
21
22
  (): Promise<ListAvailableAlgorithmsResponse>;
22
23
  }
23
- declare function getRecommendation$1(httpClient: HttpClient): GetRecommendationSignature;
24
+ export declare function getRecommendation(httpClient: HttpClient): GetRecommendationSignature;
24
25
  interface GetRecommendationSignature {
25
26
  /**
26
27
  * Returns a recommendation object containing a list of items to recommend to the customer.
@@ -49,8 +50,4 @@ interface GetRecommendationSignature {
49
50
  */
50
51
  (algorithms: Algorithm[], options?: GetRecommendationOptions | undefined): Promise<GetRecommendationResponse>;
51
52
  }
52
-
53
- declare const listAvailableAlgorithms: MaybeContext<BuildRESTFunction<typeof listAvailableAlgorithms$1> & typeof listAvailableAlgorithms$1>;
54
- declare const getRecommendation: MaybeContext<BuildRESTFunction<typeof getRecommendation$1> & typeof getRecommendation$1>;
55
-
56
- export { Algorithm, GetRecommendationOptions, GetRecommendationResponse, ListAvailableAlgorithmsResponse, getRecommendation, listAvailableAlgorithms };
53
+ export { Algorithm, AlgorithmConfig, AlgorithmInfo, AlgorithmType, CatalogReference, GetRecommendationOptions, GetRecommendationRequest, GetRecommendationResponse, ItemAppIdNotSupportedByProvider, ListAvailableAlgorithmsRequest, ListAvailableAlgorithmsResponse, Recommendation, RecommendationAlgorithmNotSupported, } from './ecom-recommendations-v1-recommendation-recommendations.universal.js';
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AlgorithmType = exports.getRecommendation = exports.listAvailableAlgorithms = exports.__metadata = void 0;
4
+ const ecom_recommendations_v1_recommendation_recommendations_universal_js_1 = require("./ecom-recommendations-v1-recommendation-recommendations.universal.js");
5
+ exports.__metadata = { PACKAGE_NAME: '@wix/ecom' };
6
+ function listAvailableAlgorithms(httpClient) {
7
+ return () => (0, ecom_recommendations_v1_recommendation_recommendations_universal_js_1.listAvailableAlgorithms)(
8
+ // @ts-ignore
9
+ { httpClient });
10
+ }
11
+ exports.listAvailableAlgorithms = listAvailableAlgorithms;
12
+ function getRecommendation(httpClient) {
13
+ return (algorithms, options) => (0, ecom_recommendations_v1_recommendation_recommendations_universal_js_1.getRecommendation)(algorithms, options,
14
+ // @ts-ignore
15
+ { httpClient });
16
+ }
17
+ exports.getRecommendation = getRecommendation;
18
+ var ecom_recommendations_v1_recommendation_recommendations_universal_js_2 = require("./ecom-recommendations-v1-recommendation-recommendations.universal.js");
19
+ Object.defineProperty(exports, "AlgorithmType", { enumerable: true, get: function () { return ecom_recommendations_v1_recommendation_recommendations_universal_js_2.AlgorithmType; } });
20
+ //# sourceMappingURL=ecom-recommendations-v1-recommendation-recommendations.public.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ecom-recommendations-v1-recommendation-recommendations.public.js","sourceRoot":"","sources":["../../../src/ecom-recommendations-v1-recommendation-recommendations.public.ts"],"names":[],"mappings":";;;AACA,+JAO+E;AAElE,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC;AAExD,SAAgB,uBAAuB,CACrC,UAAsB;IAEtB,OAAO,GAAG,EAAE,CACV,IAAA,6FAAgC;IAC9B,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,0DAQC;AAoBD,SAAgB,iBAAiB,CAC/B,UAAsB;IAEtB,OAAO,CACL,UAA0D,EAC1D,OAGC,EACD,EAAE,CACF,IAAA,uFAA0B,EACxB,UAAU,EACV,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAhBD,8CAgBC;AAkCD,6JAc+E;AAV7E,oKAAA,aAAa,OAAA"}
@@ -1,4 +1,4 @@
1
- interface Recommendation {
1
+ export interface Recommendation {
2
2
  /**
3
3
  * Recommended items.
4
4
  * @maxSize 100
@@ -8,7 +8,7 @@ interface Recommendation {
8
8
  algorithm?: Algorithm;
9
9
  }
10
10
  /** Used for grouping line items. Sent when an item is added to a cart, checkout, or order. */
11
- interface CatalogReference {
11
+ export interface CatalogReference {
12
12
  /**
13
13
  * ID of the item within the catalog it belongs to.
14
14
  * @minLength 1
@@ -34,12 +34,12 @@ interface CatalogReference {
34
34
  */
35
35
  options?: Record<string, any> | null;
36
36
  }
37
- interface Algorithm {
37
+ export interface Algorithm {
38
38
  /**
39
39
  * Algorithm ID defined by the app providing the algorithm.
40
40
  * @format GUID
41
41
  */
42
- _id?: string;
42
+ id?: string;
43
43
  /**
44
44
  * App ID of the Wix or 3rd-party app providing the algorithm.
45
45
  *
@@ -49,16 +49,16 @@ interface Algorithm {
49
49
  */
50
50
  appId?: string;
51
51
  }
52
- interface ListAvailableAlgorithmsRequest {
52
+ export interface ListAvailableAlgorithmsRequest {
53
53
  }
54
- interface ListAvailableAlgorithmsResponse {
54
+ export interface ListAvailableAlgorithmsResponse {
55
55
  /**
56
56
  * Algorithms available for use on your Wix site or project. See the method description for more information.
57
57
  * @maxSize 500
58
58
  */
59
59
  availableAlgorithms?: AlgorithmInfo[];
60
60
  }
61
- interface AlgorithmInfo {
61
+ export interface AlgorithmInfo {
62
62
  /** How the algorithm is configured. */
63
63
  config?: AlgorithmConfig;
64
64
  /**
@@ -80,7 +80,7 @@ interface AlgorithmInfo {
80
80
  */
81
81
  catalogAppIds?: string[];
82
82
  }
83
- interface AlgorithmConfig {
83
+ export interface AlgorithmConfig {
84
84
  /**
85
85
  * Algorithm name. This value is not translatable.
86
86
  * @minLength 1
@@ -111,12 +111,12 @@ interface AlgorithmConfig {
111
111
  */
112
112
  algorithmId?: string;
113
113
  }
114
- declare enum AlgorithmType {
114
+ export declare enum AlgorithmType {
115
115
  UNSPECIFIED = "UNSPECIFIED",
116
116
  RELATED_ITEMS = "RELATED_ITEMS",
117
117
  GLOBAL = "GLOBAL"
118
118
  }
119
- interface GetRecommendationRequest {
119
+ export interface GetRecommendationRequest {
120
120
  /**
121
121
  * The set of items for which to get recommendations. Required if the `algorithmType` is `RELATED_ITEMS`.
122
122
  * @maxSize 300
@@ -139,11 +139,11 @@ interface GetRecommendationRequest {
139
139
  */
140
140
  minimumRecommendedItems?: number;
141
141
  }
142
- interface GetRecommendationResponse {
142
+ export interface GetRecommendationResponse {
143
143
  /** An object containing a list of items recommended by 1 of the specified algorithms. The recommendation is empty if none of the specified algorithms recommended enough items. */
144
144
  recommendation?: Recommendation;
145
145
  }
146
- interface ItemAppIdNotSupportedByProvider {
146
+ export interface ItemAppIdNotSupportedByProvider {
147
147
  /**
148
148
  * Items with an App ID not supported by the provider. Supported App IDs can be found in the provider config in the Dev Center.
149
149
  * @minSize 1
@@ -157,7 +157,7 @@ interface ItemAppIdNotSupportedByProvider {
157
157
  */
158
158
  algorithms?: Algorithm[];
159
159
  }
160
- interface RecommendationAlgorithmNotSupported {
160
+ export interface RecommendationAlgorithmNotSupported {
161
161
  /**
162
162
  * Algorithms not supported by the provider.
163
163
  * @minSize 1
@@ -165,19 +165,3 @@ interface RecommendationAlgorithmNotSupported {
165
165
  */
166
166
  unsupportedAlgorithms?: Algorithm[];
167
167
  }
168
- interface GetRecommendationOptions {
169
- /**
170
- * The set of items for which to get recommendations. Required if the `algorithmType` is `RELATED_ITEMS`.
171
- * @maxSize 300
172
- */
173
- items?: CatalogReference[];
174
- /**
175
- * The minimum number of items that must be recommended by the algorithm for those items to be returned in the response.
176
- *
177
- * Max: `100`
178
- * @max 100
179
- */
180
- minimumRecommendedItems?: number;
181
- }
182
-
183
- export { type Algorithm as A, type CatalogReference as C, type GetRecommendationOptions as G, type ItemAppIdNotSupportedByProvider as I, type ListAvailableAlgorithmsResponse as L, type Recommendation as R, type GetRecommendationResponse as a, AlgorithmType as b, type ListAvailableAlgorithmsRequest as c, type AlgorithmInfo as d, type AlgorithmConfig as e, type GetRecommendationRequest as f, type RecommendationAlgorithmNotSupported as g };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AlgorithmType = void 0;
4
+ var AlgorithmType;
5
+ (function (AlgorithmType) {
6
+ AlgorithmType["UNSPECIFIED"] = "UNSPECIFIED";
7
+ AlgorithmType["RELATED_ITEMS"] = "RELATED_ITEMS";
8
+ AlgorithmType["GLOBAL"] = "GLOBAL";
9
+ })(AlgorithmType || (exports.AlgorithmType = AlgorithmType = {}));
10
+ //# sourceMappingURL=ecom-recommendations-v1-recommendation-recommendations.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ecom-recommendations-v1-recommendation-recommendations.types.js","sourceRoot":"","sources":["../../../src/ecom-recommendations-v1-recommendation-recommendations.types.ts"],"names":[],"mappings":";;;AAuHA,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,4CAA2B,CAAA;IAC3B,gDAA+B,CAAA;IAC/B,kCAAiB,CAAA;AACnB,CAAC,EAJW,aAAa,6BAAb,aAAa,QAIxB"}