@wix/auto_sdk_restaurants_recommendations 1.0.0 → 1.0.1

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.
@@ -81,8 +81,8 @@ interface GetRecommendationsRequest {
81
81
  */
82
82
  operationId: string;
83
83
  /**
84
- * How to select recommended items. To use the strategy the restaurant chose, specify a strategy returned by Get
85
- * Recommendation Settings as is.
84
+ * How to select recommended items. To use the strategy the restaurant chose, specify a strategy returned by
85
+ * [Get Recommendation Settings](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendation-settings/get-recommendation-settings) as is.
86
86
  */
87
87
  strategy: RecommendationStrategy;
88
88
  /**
@@ -114,19 +114,30 @@ interface GetRecommendationsRequest {
114
114
  }
115
115
  /** How recommended items are selected. */
116
116
  interface RecommendationStrategy extends RecommendationStrategyOptionsOneOf {
117
- /** Options for the `FEATURED` strategy. Required when `type` is `FEATURED`. */
117
+ /**
118
+ * Options for the `FEATURED` strategy.
119
+ *
120
+ * Required when `type` is `FEATURED`.
121
+ */
118
122
  featuredOptions?: FeaturedOptions;
119
123
  /** Strategy type. */
120
124
  type?: RecommendationStrategyTypeWithLiterals;
121
125
  }
122
126
  /** @oneof */
123
127
  interface RecommendationStrategyOptionsOneOf {
124
- /** Options for the `FEATURED` strategy. Required when `type` is `FEATURED`. */
128
+ /**
129
+ * Options for the `FEATURED` strategy.
130
+ *
131
+ * Required when `type` is `FEATURED`.
132
+ */
125
133
  featuredOptions?: FeaturedOptions;
126
134
  }
127
135
  /** Method for selecting recommended items. */
128
136
  declare enum RecommendationStrategyType {
129
- /** Items that customers often order together with the items specified in `items` when calling Get Recommendations. */
137
+ /**
138
+ * Items that customers often order together with the items specified in `items` when calling
139
+ * [Get Recommendations](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendations/get-recommendations).
140
+ */
130
141
  FREQUENTLY_ORDERED_TOGETHER = "FREQUENTLY_ORDERED_TOGETHER",
131
142
  /**
132
143
  * Items ordered most often from the operation, based on its order history. Not related to the `BEST_SELLER` featured
@@ -176,7 +187,11 @@ declare enum FeaturedType {
176
187
  type FeaturedTypeWithLiterals = FeaturedType | 'POPULAR' | 'BEST_SELLER' | 'NEW' | 'CHEF_SPECIAL' | 'RECOMMENDED' | 'SEASONAL' | 'FEATURED';
177
188
  /** Fulfillment method and timing. */
178
189
  interface FulfillmentDetails extends FulfillmentDetailsTimingOptionsOneOf {
179
- /** Time window of a scheduled order. Required when `timing` is `SCHEDULED`. */
190
+ /**
191
+ * Time window of a scheduled order.
192
+ *
193
+ * Required when `timing` is `SCHEDULED`.
194
+ */
180
195
  scheduledOptions?: ScheduledOptions;
181
196
  /** Fulfillment method. */
182
197
  type?: FulfillmentTypeWithLiterals;
@@ -185,7 +200,11 @@ interface FulfillmentDetails extends FulfillmentDetailsTimingOptionsOneOf {
185
200
  }
186
201
  /** @oneof */
187
202
  interface FulfillmentDetailsTimingOptionsOneOf {
188
- /** Time window of a scheduled order. Required when `timing` is `SCHEDULED`. */
203
+ /**
204
+ * Time window of a scheduled order.
205
+ *
206
+ * Required when `timing` is `SCHEDULED`.
207
+ */
189
208
  scheduledOptions?: ScheduledOptions;
190
209
  }
191
210
  /** Fulfillment method. */
@@ -7,8 +7,9 @@ interface GetRecommendationsSignature {
7
7
  /**
8
8
  * Retrieves menu items to recommend to a customer who's ordering from an operation.
9
9
  *
10
- * Recommended items are selected according to `strategy`. To use the strategy the restaurant chose, call Get
11
- * Recommendation Settings and specify the returned strategy for the relevant placement as is. This method doesn't
10
+ * Recommended items are selected according to `strategy`. To use the strategy the restaurant chose, call
11
+ * [Get Recommendation Settings](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendation-settings/get-recommendation-settings)
12
+ * and specify the returned strategy for the relevant placement as is. This method doesn't
12
13
  * check whether recommendations are enabled in the recommendation settings, so call it only when the relevant
13
14
  * `enabled` value is `true`.
14
15
  *
@@ -62,8 +62,8 @@ interface GetRecommendationsRequest {
62
62
  */
63
63
  operationId: string;
64
64
  /**
65
- * How to select recommended items. To use the strategy the restaurant chose, specify a strategy returned by Get
66
- * Recommendation Settings as is.
65
+ * How to select recommended items. To use the strategy the restaurant chose, specify a strategy returned by
66
+ * [Get Recommendation Settings](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendation-settings/get-recommendation-settings) as is.
67
67
  */
68
68
  strategy: RecommendationStrategy;
69
69
  /**
@@ -95,19 +95,30 @@ interface GetRecommendationsRequest {
95
95
  }
96
96
  /** How recommended items are selected. */
97
97
  interface RecommendationStrategy extends RecommendationStrategyOptionsOneOf {
98
- /** Options for the `FEATURED` strategy. Required when `type` is `FEATURED`. */
98
+ /**
99
+ * Options for the `FEATURED` strategy.
100
+ *
101
+ * Required when `type` is `FEATURED`.
102
+ */
99
103
  featuredOptions?: FeaturedOptions;
100
104
  /** Strategy type. */
101
105
  type?: RecommendationStrategyTypeWithLiterals;
102
106
  }
103
107
  /** @oneof */
104
108
  interface RecommendationStrategyOptionsOneOf {
105
- /** Options for the `FEATURED` strategy. Required when `type` is `FEATURED`. */
109
+ /**
110
+ * Options for the `FEATURED` strategy.
111
+ *
112
+ * Required when `type` is `FEATURED`.
113
+ */
106
114
  featuredOptions?: FeaturedOptions;
107
115
  }
108
116
  /** Method for selecting recommended items. */
109
117
  declare enum RecommendationStrategyType {
110
- /** Items that customers often order together with the items specified in `items` when calling Get Recommendations. */
118
+ /**
119
+ * Items that customers often order together with the items specified in `items` when calling
120
+ * [Get Recommendations](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendations/get-recommendations).
121
+ */
111
122
  FREQUENTLY_ORDERED_TOGETHER = "FREQUENTLY_ORDERED_TOGETHER",
112
123
  /**
113
124
  * Items ordered most often from the operation, based on its order history. Not related to the `BEST_SELLER` featured
@@ -157,7 +168,11 @@ declare enum FeaturedType {
157
168
  type FeaturedTypeWithLiterals = FeaturedType | 'POPULAR' | 'BEST_SELLER' | 'NEW' | 'CHEF_SPECIAL' | 'RECOMMENDED' | 'SEASONAL' | 'FEATURED';
158
169
  /** Fulfillment method and timing. */
159
170
  interface FulfillmentDetails extends FulfillmentDetailsTimingOptionsOneOf {
160
- /** Time window of a scheduled order. Required when `timing` is `SCHEDULED`. */
171
+ /**
172
+ * Time window of a scheduled order.
173
+ *
174
+ * Required when `timing` is `SCHEDULED`.
175
+ */
161
176
  scheduledOptions?: ScheduledOptions;
162
177
  /** Fulfillment method. */
163
178
  type?: FulfillmentTypeWithLiterals;
@@ -166,7 +181,11 @@ interface FulfillmentDetails extends FulfillmentDetailsTimingOptionsOneOf {
166
181
  }
167
182
  /** @oneof */
168
183
  interface FulfillmentDetailsTimingOptionsOneOf {
169
- /** Time window of a scheduled order. Required when `timing` is `SCHEDULED`. */
184
+ /**
185
+ * Time window of a scheduled order.
186
+ *
187
+ * Required when `timing` is `SCHEDULED`.
188
+ */
170
189
  scheduledOptions?: ScheduledOptions;
171
190
  }
172
191
  /** Fulfillment method. */
@@ -214,8 +233,9 @@ interface GetRecommendationsResponse {
214
233
  /**
215
234
  * Retrieves menu items to recommend to a customer who's ordering from an operation.
216
235
  *
217
- * Recommended items are selected according to `strategy`. To use the strategy the restaurant chose, call Get
218
- * Recommendation Settings and specify the returned strategy for the relevant placement as is. This method doesn't
236
+ * Recommended items are selected according to `strategy`. To use the strategy the restaurant chose, call
237
+ * [Get Recommendation Settings](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendation-settings/get-recommendation-settings)
238
+ * and specify the returned strategy for the relevant placement as is. This method doesn't
219
239
  * check whether recommendations are enabled in the recommendation settings, so call it only when the relevant
220
240
  * `enabled` value is `true`.
221
241
  *
@@ -253,8 +273,8 @@ interface GetRecommendationsResponse {
253
273
  declare function getRecommendations(operationId: string, options?: NonNullablePaths<GetRecommendationsOptions, `fulfillment` | `fulfillment.scheduledOptions.endTime` | `fulfillment.scheduledOptions.startTime` | `fulfillment.timing` | `fulfillment.type` | `items.${number}.itemId` | `items.${number}.menuId` | `items.${number}.sectionId` | `strategy` | `strategy.featuredOptions.featuredInfos` | `strategy.type`, 2>): Promise<NonNullablePaths<GetRecommendationsResponse, `recommendations` | `recommendations.${number}.item.itemId` | `recommendations.${number}.item.menuId` | `recommendations.${number}.item.sectionId` | `recommendations.${number}.name` | `recommendations.${number}.price` | `currencyCode`, 3>>;
254
274
  interface GetRecommendationsOptions {
255
275
  /**
256
- * How to select recommended items. To use the strategy the restaurant chose, specify a strategy returned by Get
257
- * Recommendation Settings as is.
276
+ * How to select recommended items. To use the strategy the restaurant chose, specify a strategy returned by
277
+ * [Get Recommendation Settings](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendation-settings/get-recommendation-settings) as is.
258
278
  */
259
279
  strategy: RecommendationStrategy;
260
280
  /**
@@ -81,8 +81,8 @@ interface GetRecommendationsRequest {
81
81
  */
82
82
  operationId: string;
83
83
  /**
84
- * How to select recommended items. To use the strategy the restaurant chose, specify a strategy returned by Get
85
- * Recommendation Settings as is.
84
+ * How to select recommended items. To use the strategy the restaurant chose, specify a strategy returned by
85
+ * [Get Recommendation Settings](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendation-settings/get-recommendation-settings) as is.
86
86
  */
87
87
  strategy: RecommendationStrategy;
88
88
  /**
@@ -114,19 +114,30 @@ interface GetRecommendationsRequest {
114
114
  }
115
115
  /** How recommended items are selected. */
116
116
  interface RecommendationStrategy extends RecommendationStrategyOptionsOneOf {
117
- /** Options for the `FEATURED` strategy. Required when `type` is `FEATURED`. */
117
+ /**
118
+ * Options for the `FEATURED` strategy.
119
+ *
120
+ * Required when `type` is `FEATURED`.
121
+ */
118
122
  featuredOptions?: FeaturedOptions;
119
123
  /** Strategy type. */
120
124
  type?: RecommendationStrategyTypeWithLiterals;
121
125
  }
122
126
  /** @oneof */
123
127
  interface RecommendationStrategyOptionsOneOf {
124
- /** Options for the `FEATURED` strategy. Required when `type` is `FEATURED`. */
128
+ /**
129
+ * Options for the `FEATURED` strategy.
130
+ *
131
+ * Required when `type` is `FEATURED`.
132
+ */
125
133
  featuredOptions?: FeaturedOptions;
126
134
  }
127
135
  /** Method for selecting recommended items. */
128
136
  declare enum RecommendationStrategyType {
129
- /** Items that customers often order together with the items specified in `items` when calling Get Recommendations. */
137
+ /**
138
+ * Items that customers often order together with the items specified in `items` when calling
139
+ * [Get Recommendations](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendations/get-recommendations).
140
+ */
130
141
  FREQUENTLY_ORDERED_TOGETHER = "FREQUENTLY_ORDERED_TOGETHER",
131
142
  /**
132
143
  * Items ordered most often from the operation, based on its order history. Not related to the `BEST_SELLER` featured
@@ -176,7 +187,11 @@ declare enum FeaturedType {
176
187
  type FeaturedTypeWithLiterals = FeaturedType | 'POPULAR' | 'BEST_SELLER' | 'NEW' | 'CHEF_SPECIAL' | 'RECOMMENDED' | 'SEASONAL' | 'FEATURED';
177
188
  /** Fulfillment method and timing. */
178
189
  interface FulfillmentDetails extends FulfillmentDetailsTimingOptionsOneOf {
179
- /** Time window of a scheduled order. Required when `timing` is `SCHEDULED`. */
190
+ /**
191
+ * Time window of a scheduled order.
192
+ *
193
+ * Required when `timing` is `SCHEDULED`.
194
+ */
180
195
  scheduledOptions?: ScheduledOptions;
181
196
  /** Fulfillment method. */
182
197
  type?: FulfillmentTypeWithLiterals;
@@ -185,7 +200,11 @@ interface FulfillmentDetails extends FulfillmentDetailsTimingOptionsOneOf {
185
200
  }
186
201
  /** @oneof */
187
202
  interface FulfillmentDetailsTimingOptionsOneOf {
188
- /** Time window of a scheduled order. Required when `timing` is `SCHEDULED`. */
203
+ /**
204
+ * Time window of a scheduled order.
205
+ *
206
+ * Required when `timing` is `SCHEDULED`.
207
+ */
189
208
  scheduledOptions?: ScheduledOptions;
190
209
  }
191
210
  /** Fulfillment method. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_restaurants_recommendations",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -50,5 +50,5 @@
50
50
  "fqdn": "wix.restaurants.ordering_recommendations.v1.recommendation"
51
51
  }
52
52
  },
53
- "falconPackageHash": "1ad5f913c8f9a87a1a01449c2eb9805c37035a8d313273a27b266e0e"
53
+ "falconPackageHash": "cf1c9957f91bf11a8c5d8f89c475af8da2b7734bdaaac9f9214ef398"
54
54
  }