@wix/auto_sdk_ecom_recommendations 1.0.2 → 1.0.4
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/build/cjs/src/ecom-recommendations-v1-recommendation-recommendations.context.d.ts +1 -1
- package/build/cjs/src/ecom-recommendations-v1-recommendation-recommendations.meta.d.ts +2 -2
- package/build/cjs/src/ecom-recommendations-v1-recommendation-recommendations.meta.js.map +1 -1
- package/build/cjs/src/ecom-recommendations-v1-recommendation-recommendations.public.d.ts +4 -4
- package/build/cjs/src/ecom-recommendations-v1-recommendation-recommendations.public.js.map +1 -1
- package/build/cjs/src/ecom-recommendations-v1-recommendation-recommendations.types.d.ts +0 -30
- package/build/cjs/src/ecom-recommendations-v1-recommendation-recommendations.universal.d.ts +6 -31
- package/build/cjs/src/ecom-recommendations-v1-recommendation-recommendations.universal.js.map +1 -1
- package/build/es/src/ecom-recommendations-v1-recommendation-recommendations.context.d.ts +1 -1
- package/build/es/src/ecom-recommendations-v1-recommendation-recommendations.meta.d.ts +2 -2
- package/build/es/src/ecom-recommendations-v1-recommendation-recommendations.meta.js.map +1 -1
- package/build/es/src/ecom-recommendations-v1-recommendation-recommendations.public.d.ts +4 -4
- package/build/es/src/ecom-recommendations-v1-recommendation-recommendations.public.js.map +1 -1
- package/build/es/src/ecom-recommendations-v1-recommendation-recommendations.types.d.ts +0 -30
- package/build/es/src/ecom-recommendations-v1-recommendation-recommendations.universal.d.ts +6 -31
- package/build/es/src/ecom-recommendations-v1-recommendation-recommendations.universal.js.map +1 -1
- package/build/internal/cjs/src/ecom-recommendations-v1-recommendation-recommendations.context.d.ts +1 -1
- package/build/internal/cjs/src/ecom-recommendations-v1-recommendation-recommendations.meta.d.ts +2 -2
- package/build/internal/cjs/src/ecom-recommendations-v1-recommendation-recommendations.meta.js.map +1 -1
- package/build/internal/cjs/src/ecom-recommendations-v1-recommendation-recommendations.public.d.ts +4 -4
- package/build/internal/cjs/src/ecom-recommendations-v1-recommendation-recommendations.public.js.map +1 -1
- package/build/internal/cjs/src/ecom-recommendations-v1-recommendation-recommendations.types.d.ts +0 -30
- package/build/internal/cjs/src/ecom-recommendations-v1-recommendation-recommendations.universal.d.ts +6 -31
- package/build/internal/cjs/src/ecom-recommendations-v1-recommendation-recommendations.universal.js.map +1 -1
- package/build/internal/es/src/ecom-recommendations-v1-recommendation-recommendations.context.d.ts +1 -1
- package/build/internal/es/src/ecom-recommendations-v1-recommendation-recommendations.meta.d.ts +2 -2
- package/build/internal/es/src/ecom-recommendations-v1-recommendation-recommendations.meta.js.map +1 -1
- package/build/internal/es/src/ecom-recommendations-v1-recommendation-recommendations.public.d.ts +4 -4
- package/build/internal/es/src/ecom-recommendations-v1-recommendation-recommendations.public.js.map +1 -1
- package/build/internal/es/src/ecom-recommendations-v1-recommendation-recommendations.types.d.ts +0 -30
- package/build/internal/es/src/ecom-recommendations-v1-recommendation-recommendations.universal.d.ts +6 -31
- package/build/internal/es/src/ecom-recommendations-v1-recommendation-recommendations.universal.js.map +1 -1
- package/package.json +4 -4
|
@@ -3,4 +3,4 @@ import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
|
|
|
3
3
|
export declare const listAvailableAlgorithms: MaybeContext<BuildRESTFunction<typeof publicListAvailableAlgorithms> & typeof publicListAvailableAlgorithms>;
|
|
4
4
|
export declare const getRecommendation: MaybeContext<BuildRESTFunction<typeof publicGetRecommendation> & typeof publicGetRecommendation>;
|
|
5
5
|
export { AlgorithmType } from './ecom-recommendations-v1-recommendation-recommendations.universal.js';
|
|
6
|
-
export { Recommendation, CatalogReference, Algorithm, ListAvailableAlgorithmsRequest, ListAvailableAlgorithmsResponse, AlgorithmInfo, AlgorithmConfig, GetRecommendationRequest, GetRecommendationResponse, ItemAppIdNotSupportedByProvider, RecommendationAlgorithmNotSupported,
|
|
6
|
+
export { Recommendation, CatalogReference, Algorithm, ListAvailableAlgorithmsRequest, ListAvailableAlgorithmsResponse, AlgorithmInfo, AlgorithmConfig, GetRecommendationRequest, GetRecommendationResponse, ItemAppIdNotSupportedByProvider, RecommendationAlgorithmNotSupported, GetRecommendationOptions, } from './ecom-recommendations-v1-recommendation-recommendations.universal.js';
|
|
@@ -10,5 +10,5 @@ export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unk
|
|
|
10
10
|
__responseType: Q;
|
|
11
11
|
__originalResponseType: R;
|
|
12
12
|
};
|
|
13
|
-
export declare function listAvailableAlgorithms(): __PublicMethodMetaInfo<'GET', {}, ambassadorWixEcomRecommendationsV1RecommendationUniversalTypes.ListAvailableAlgorithmsRequest, ambassadorWixEcomRecommendationsV1RecommendationTypes.ListAvailableAlgorithmsRequest, ambassadorWixEcomRecommendationsV1RecommendationUniversalTypes.ListAvailableAlgorithmsResponse
|
|
14
|
-
export declare function getRecommendation(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixEcomRecommendationsV1RecommendationUniversalTypes.GetRecommendationRequest, ambassadorWixEcomRecommendationsV1RecommendationTypes.GetRecommendationRequest, ambassadorWixEcomRecommendationsV1RecommendationUniversalTypes.GetRecommendationResponse
|
|
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>;
|
|
@@ -1 +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;
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import { Algorithm, GetRecommendationOptions, GetRecommendationResponse,
|
|
2
|
+
import { Algorithm, GetRecommendationOptions, GetRecommendationResponse, ListAvailableAlgorithmsResponse } from './ecom-recommendations-v1-recommendation-recommendations.universal.js';
|
|
3
3
|
export declare const __metadata: {
|
|
4
4
|
PACKAGE_NAME: string;
|
|
5
5
|
};
|
|
@@ -19,7 +19,7 @@ interface ListAvailableAlgorithmsSignature {
|
|
|
19
19
|
*
|
|
20
20
|
* 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).
|
|
21
21
|
*/
|
|
22
|
-
(): Promise<ListAvailableAlgorithmsResponse
|
|
22
|
+
(): Promise<ListAvailableAlgorithmsResponse>;
|
|
23
23
|
}
|
|
24
24
|
export declare function getRecommendation(httpClient: HttpClient): GetRecommendationSignature;
|
|
25
25
|
interface GetRecommendationSignature {
|
|
@@ -48,6 +48,6 @@ interface GetRecommendationSignature {
|
|
|
48
48
|
* If no algorithm is able to return at least `minimumRecommendedItems` items, an empty array is returned.
|
|
49
49
|
* @param - Get recommendation options.
|
|
50
50
|
*/
|
|
51
|
-
(algorithms: Algorithm[], options?: GetRecommendationOptions | undefined): Promise<GetRecommendationResponse
|
|
51
|
+
(algorithms: Algorithm[], options?: GetRecommendationOptions | undefined): Promise<GetRecommendationResponse>;
|
|
52
52
|
}
|
|
53
|
-
export { Algorithm, AlgorithmConfig, AlgorithmInfo, AlgorithmType, CatalogReference, GetRecommendationOptions, GetRecommendationRequest, GetRecommendationResponse,
|
|
53
|
+
export { Algorithm, AlgorithmConfig, AlgorithmInfo, AlgorithmType, CatalogReference, GetRecommendationOptions, GetRecommendationRequest, GetRecommendationResponse, ItemAppIdNotSupportedByProvider, ListAvailableAlgorithmsRequest, ListAvailableAlgorithmsResponse, Recommendation, RecommendationAlgorithmNotSupported, } from './ecom-recommendations-v1-recommendation-recommendations.universal.js';
|
|
@@ -1 +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,+
|
|
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"}
|
|
@@ -165,33 +165,3 @@ export interface RecommendationAlgorithmNotSupported {
|
|
|
165
165
|
*/
|
|
166
166
|
unsupportedAlgorithms?: Algorithm[];
|
|
167
167
|
}
|
|
168
|
-
interface AlgorithmConfigNonNullableFields {
|
|
169
|
-
name: string;
|
|
170
|
-
description: string;
|
|
171
|
-
algorithmType: AlgorithmType;
|
|
172
|
-
algorithmId: string;
|
|
173
|
-
}
|
|
174
|
-
interface AlgorithmInfoNonNullableFields {
|
|
175
|
-
config?: AlgorithmConfigNonNullableFields;
|
|
176
|
-
appId: string;
|
|
177
|
-
catalogAppIds: string[];
|
|
178
|
-
}
|
|
179
|
-
export interface ListAvailableAlgorithmsResponseNonNullableFields {
|
|
180
|
-
availableAlgorithms: AlgorithmInfoNonNullableFields[];
|
|
181
|
-
}
|
|
182
|
-
interface CatalogReferenceNonNullableFields {
|
|
183
|
-
catalogItemId: string;
|
|
184
|
-
appId: string;
|
|
185
|
-
}
|
|
186
|
-
interface AlgorithmNonNullableFields {
|
|
187
|
-
id: string;
|
|
188
|
-
appId: string;
|
|
189
|
-
}
|
|
190
|
-
interface RecommendationNonNullableFields {
|
|
191
|
-
items: CatalogReferenceNonNullableFields[];
|
|
192
|
-
algorithm?: AlgorithmNonNullableFields;
|
|
193
|
-
}
|
|
194
|
-
export interface GetRecommendationResponseNonNullableFields {
|
|
195
|
-
recommendation?: RecommendationNonNullableFields;
|
|
196
|
-
}
|
|
197
|
-
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { NonNullablePaths } from '@wix/sdk-types';
|
|
1
2
|
export interface Recommendation {
|
|
2
3
|
/**
|
|
3
4
|
* Recommended items.
|
|
@@ -165,35 +166,7 @@ export interface RecommendationAlgorithmNotSupported {
|
|
|
165
166
|
*/
|
|
166
167
|
unsupportedAlgorithms?: Algorithm[];
|
|
167
168
|
}
|
|
168
|
-
|
|
169
|
-
name: string;
|
|
170
|
-
description: string;
|
|
171
|
-
algorithmType: AlgorithmType;
|
|
172
|
-
algorithmId: string;
|
|
173
|
-
}
|
|
174
|
-
interface AlgorithmInfoNonNullableFields {
|
|
175
|
-
config?: AlgorithmConfigNonNullableFields;
|
|
176
|
-
appId: string;
|
|
177
|
-
catalogAppIds: string[];
|
|
178
|
-
}
|
|
179
|
-
export interface ListAvailableAlgorithmsResponseNonNullableFields {
|
|
180
|
-
availableAlgorithms: AlgorithmInfoNonNullableFields[];
|
|
181
|
-
}
|
|
182
|
-
interface CatalogReferenceNonNullableFields {
|
|
183
|
-
catalogItemId: string;
|
|
184
|
-
appId: string;
|
|
185
|
-
}
|
|
186
|
-
interface AlgorithmNonNullableFields {
|
|
187
|
-
_id: string;
|
|
188
|
-
appId: string;
|
|
189
|
-
}
|
|
190
|
-
interface RecommendationNonNullableFields {
|
|
191
|
-
items: CatalogReferenceNonNullableFields[];
|
|
192
|
-
algorithm?: AlgorithmNonNullableFields;
|
|
193
|
-
}
|
|
194
|
-
export interface GetRecommendationResponseNonNullableFields {
|
|
195
|
-
recommendation?: RecommendationNonNullableFields;
|
|
196
|
-
}
|
|
169
|
+
type RecommendationNonNullablePaths = `items` | `items.${number}.catalogItemId` | `items.${number}.appId` | `algorithm._id` | `algorithm.appId`;
|
|
197
170
|
/**
|
|
198
171
|
* 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.
|
|
199
172
|
*
|
|
@@ -219,7 +192,7 @@ export interface GetRecommendationResponseNonNullableFields {
|
|
|
219
192
|
* @applicableIdentity VISITOR
|
|
220
193
|
* @fqn com.wix.ecom.recommendations.v1.RecommendationsService.ListAvailableAlgorithms
|
|
221
194
|
*/
|
|
222
|
-
export declare function listAvailableAlgorithms(): Promise<ListAvailableAlgorithmsResponse
|
|
195
|
+
export declare function listAvailableAlgorithms(): Promise<NonNullablePaths<ListAvailableAlgorithmsResponse, `availableAlgorithms` | `availableAlgorithms.${number}.config.name` | `availableAlgorithms.${number}.config.description` | `availableAlgorithms.${number}.config.algorithmType` | `availableAlgorithms.${number}.config.algorithmId` | `availableAlgorithms.${number}.appId` | `availableAlgorithms.${number}.catalogAppIds`>>;
|
|
223
196
|
/**
|
|
224
197
|
* Returns a recommendation object containing a list of items to recommend to the customer.
|
|
225
198
|
*
|
|
@@ -261,7 +234,9 @@ export declare function listAvailableAlgorithms(): Promise<ListAvailableAlgorith
|
|
|
261
234
|
* @applicableIdentity VISITOR
|
|
262
235
|
* @fqn com.wix.ecom.recommendations.v1.RecommendationsService.GetRecommendation
|
|
263
236
|
*/
|
|
264
|
-
export declare function getRecommendation(algorithms: Algorithm[], options?: GetRecommendationOptions): Promise<GetRecommendationResponse
|
|
237
|
+
export declare function getRecommendation(algorithms: NonNullablePaths<Algorithm, `_id` | `appId`>[], options?: NonNullablePaths<GetRecommendationOptions, `items.${number}.appId` | `items.${number}.catalogItemId`>): Promise<NonNullablePaths<GetRecommendationResponse, {
|
|
238
|
+
[P in RecommendationNonNullablePaths]: `recommendation.${P}`;
|
|
239
|
+
}[RecommendationNonNullablePaths]>>;
|
|
265
240
|
export interface GetRecommendationOptions {
|
|
266
241
|
/**
|
|
267
242
|
* The set of items for which to get recommendations. Required if the `algorithmType` is `RELATED_ITEMS`.
|
package/build/cjs/src/ecom-recommendations-v1-recommendation-recommendations.universal.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-recommendations-v1-recommendation-recommendations.universal.js","sourceRoot":"","sources":["../../../src/ecom-recommendations-v1-recommendation-recommendations.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,mJAAqI;AAyHrI,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,4CAA2B,CAAA;IAC3B,gDAA+B,CAAA;IAC/B,kCAAiB,CAAA;AACnB,CAAC,EAJW,aAAa,6BAAb,aAAa,QAIxB;
|
|
1
|
+
{"version":3,"file":"ecom-recommendations-v1-recommendation-recommendations.universal.js","sourceRoot":"","sources":["../../../src/ecom-recommendations-v1-recommendation-recommendations.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,mJAAqI;AAyHrI,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,4CAA2B,CAAA;IAC3B,gDAA+B,CAAA;IAC/B,k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AK;QACrB,uBAAuB,EAAE,OAAO,EAAE,uBAAuB;KAC1D,CAAC,CAAC;IAEH,MAAM,OAAO,GACX,gDAAgD,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAE9E,WAAW,EAAE,UAAU,EAAE,EAAE,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;QAEjC,OAAO,IAAA,gEAAuC,EAAC,MAAM,CAAC,IAAI,CAAE,CAAC;IAC/D,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,IAAA,gCAAiB,EACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE;gBACxB,UAAU,EAAE,MAAM;gBAClB,KAAK,EAAE,YAAY;gBACnB,uBAAuB,EAAE,8BAA8B;aACxD;YACD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,YAAY,EAAE,SAAS,CAAC,CAC1B,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AArDD,8CAqDC"}
|
|
@@ -3,4 +3,4 @@ import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
|
|
|
3
3
|
export declare const listAvailableAlgorithms: MaybeContext<BuildRESTFunction<typeof publicListAvailableAlgorithms> & typeof publicListAvailableAlgorithms>;
|
|
4
4
|
export declare const getRecommendation: MaybeContext<BuildRESTFunction<typeof publicGetRecommendation> & typeof publicGetRecommendation>;
|
|
5
5
|
export { AlgorithmType } from './ecom-recommendations-v1-recommendation-recommendations.universal.js';
|
|
6
|
-
export { Recommendation, CatalogReference, Algorithm, ListAvailableAlgorithmsRequest, ListAvailableAlgorithmsResponse, AlgorithmInfo, AlgorithmConfig, GetRecommendationRequest, GetRecommendationResponse, ItemAppIdNotSupportedByProvider, RecommendationAlgorithmNotSupported,
|
|
6
|
+
export { Recommendation, CatalogReference, Algorithm, ListAvailableAlgorithmsRequest, ListAvailableAlgorithmsResponse, AlgorithmInfo, AlgorithmConfig, GetRecommendationRequest, GetRecommendationResponse, ItemAppIdNotSupportedByProvider, RecommendationAlgorithmNotSupported, GetRecommendationOptions, } from './ecom-recommendations-v1-recommendation-recommendations.universal.js';
|
|
@@ -10,5 +10,5 @@ export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unk
|
|
|
10
10
|
__responseType: Q;
|
|
11
11
|
__originalResponseType: R;
|
|
12
12
|
};
|
|
13
|
-
export declare function listAvailableAlgorithms(): __PublicMethodMetaInfo<'GET', {}, ambassadorWixEcomRecommendationsV1RecommendationUniversalTypes.ListAvailableAlgorithmsRequest, ambassadorWixEcomRecommendationsV1RecommendationTypes.ListAvailableAlgorithmsRequest, ambassadorWixEcomRecommendationsV1RecommendationUniversalTypes.ListAvailableAlgorithmsResponse
|
|
14
|
-
export declare function getRecommendation(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixEcomRecommendationsV1RecommendationUniversalTypes.GetRecommendationRequest, ambassadorWixEcomRecommendationsV1RecommendationTypes.GetRecommendationRequest, ambassadorWixEcomRecommendationsV1RecommendationUniversalTypes.GetRecommendationResponse
|
|
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>;
|
|
@@ -1 +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,OAAO,KAAK,gDAAgD,MAAM,kEAAkE,CAAC;AAsBrI,MAAM,UAAU,uBAAuB;
|
|
1
|
+
{"version":3,"file":"ecom-recommendations-v1-recommendation-recommendations.meta.js","sourceRoot":"","sources":["../../../src/ecom-recommendations-v1-recommendation-recommendations.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,gDAAgD,MAAM,kEAAkE,CAAC;AAsBrI,MAAM,UAAU,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;AAED,MAAM,UAAU,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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import { Algorithm, GetRecommendationOptions, GetRecommendationResponse,
|
|
2
|
+
import { Algorithm, GetRecommendationOptions, GetRecommendationResponse, ListAvailableAlgorithmsResponse } from './ecom-recommendations-v1-recommendation-recommendations.universal.js';
|
|
3
3
|
export declare const __metadata: {
|
|
4
4
|
PACKAGE_NAME: string;
|
|
5
5
|
};
|
|
@@ -19,7 +19,7 @@ interface ListAvailableAlgorithmsSignature {
|
|
|
19
19
|
*
|
|
20
20
|
* 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).
|
|
21
21
|
*/
|
|
22
|
-
(): Promise<ListAvailableAlgorithmsResponse
|
|
22
|
+
(): Promise<ListAvailableAlgorithmsResponse>;
|
|
23
23
|
}
|
|
24
24
|
export declare function getRecommendation(httpClient: HttpClient): GetRecommendationSignature;
|
|
25
25
|
interface GetRecommendationSignature {
|
|
@@ -48,6 +48,6 @@ interface GetRecommendationSignature {
|
|
|
48
48
|
* If no algorithm is able to return at least `minimumRecommendedItems` items, an empty array is returned.
|
|
49
49
|
* @param - Get recommendation options.
|
|
50
50
|
*/
|
|
51
|
-
(algorithms: Algorithm[], options?: GetRecommendationOptions | undefined): Promise<GetRecommendationResponse
|
|
51
|
+
(algorithms: Algorithm[], options?: GetRecommendationOptions | undefined): Promise<GetRecommendationResponse>;
|
|
52
52
|
}
|
|
53
|
-
export { Algorithm, AlgorithmConfig, AlgorithmInfo, AlgorithmType, CatalogReference, GetRecommendationOptions, GetRecommendationRequest, GetRecommendationResponse,
|
|
53
|
+
export { Algorithm, AlgorithmConfig, AlgorithmInfo, AlgorithmType, CatalogReference, GetRecommendationOptions, GetRecommendationRequest, GetRecommendationResponse, ItemAppIdNotSupportedByProvider, ListAvailableAlgorithmsRequest, ListAvailableAlgorithmsResponse, Recommendation, RecommendationAlgorithmNotSupported, } from './ecom-recommendations-v1-recommendation-recommendations.universal.js';
|
|
@@ -1 +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,OAAO,
|
|
1
|
+
{"version":3,"file":"ecom-recommendations-v1-recommendation-recommendations.public.js","sourceRoot":"","sources":["../../../src/ecom-recommendations-v1-recommendation-recommendations.public.ts"],"names":[],"mappings":"AACA,OAAO,EAKL,iBAAiB,IAAI,0BAA0B,EAC/C,uBAAuB,IAAI,gCAAgC,GAC5D,MAAM,uEAAuE,CAAC;AAE/E,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC;AAExD,MAAM,UAAU,uBAAuB,CACrC,UAAsB;IAEtB,OAAO,GAAG,EAAE,CACV,gCAAgC;IAC9B,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAoBD,MAAM,UAAU,iBAAiB,CAC/B,UAAsB;IAEtB,OAAO,CACL,UAA0D,EAC1D,OAGC,EACD,EAAE,CACF,0BAA0B,CACxB,UAAU,EACV,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAkCD,OAAO,EAIL,aAAa,GAUd,MAAM,uEAAuE,CAAC"}
|
|
@@ -165,33 +165,3 @@ export interface RecommendationAlgorithmNotSupported {
|
|
|
165
165
|
*/
|
|
166
166
|
unsupportedAlgorithms?: Algorithm[];
|
|
167
167
|
}
|
|
168
|
-
interface AlgorithmConfigNonNullableFields {
|
|
169
|
-
name: string;
|
|
170
|
-
description: string;
|
|
171
|
-
algorithmType: AlgorithmType;
|
|
172
|
-
algorithmId: string;
|
|
173
|
-
}
|
|
174
|
-
interface AlgorithmInfoNonNullableFields {
|
|
175
|
-
config?: AlgorithmConfigNonNullableFields;
|
|
176
|
-
appId: string;
|
|
177
|
-
catalogAppIds: string[];
|
|
178
|
-
}
|
|
179
|
-
export interface ListAvailableAlgorithmsResponseNonNullableFields {
|
|
180
|
-
availableAlgorithms: AlgorithmInfoNonNullableFields[];
|
|
181
|
-
}
|
|
182
|
-
interface CatalogReferenceNonNullableFields {
|
|
183
|
-
catalogItemId: string;
|
|
184
|
-
appId: string;
|
|
185
|
-
}
|
|
186
|
-
interface AlgorithmNonNullableFields {
|
|
187
|
-
id: string;
|
|
188
|
-
appId: string;
|
|
189
|
-
}
|
|
190
|
-
interface RecommendationNonNullableFields {
|
|
191
|
-
items: CatalogReferenceNonNullableFields[];
|
|
192
|
-
algorithm?: AlgorithmNonNullableFields;
|
|
193
|
-
}
|
|
194
|
-
export interface GetRecommendationResponseNonNullableFields {
|
|
195
|
-
recommendation?: RecommendationNonNullableFields;
|
|
196
|
-
}
|
|
197
|
-
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { NonNullablePaths } from '@wix/sdk-types';
|
|
1
2
|
export interface Recommendation {
|
|
2
3
|
/**
|
|
3
4
|
* Recommended items.
|
|
@@ -165,35 +166,7 @@ export interface RecommendationAlgorithmNotSupported {
|
|
|
165
166
|
*/
|
|
166
167
|
unsupportedAlgorithms?: Algorithm[];
|
|
167
168
|
}
|
|
168
|
-
|
|
169
|
-
name: string;
|
|
170
|
-
description: string;
|
|
171
|
-
algorithmType: AlgorithmType;
|
|
172
|
-
algorithmId: string;
|
|
173
|
-
}
|
|
174
|
-
interface AlgorithmInfoNonNullableFields {
|
|
175
|
-
config?: AlgorithmConfigNonNullableFields;
|
|
176
|
-
appId: string;
|
|
177
|
-
catalogAppIds: string[];
|
|
178
|
-
}
|
|
179
|
-
export interface ListAvailableAlgorithmsResponseNonNullableFields {
|
|
180
|
-
availableAlgorithms: AlgorithmInfoNonNullableFields[];
|
|
181
|
-
}
|
|
182
|
-
interface CatalogReferenceNonNullableFields {
|
|
183
|
-
catalogItemId: string;
|
|
184
|
-
appId: string;
|
|
185
|
-
}
|
|
186
|
-
interface AlgorithmNonNullableFields {
|
|
187
|
-
_id: string;
|
|
188
|
-
appId: string;
|
|
189
|
-
}
|
|
190
|
-
interface RecommendationNonNullableFields {
|
|
191
|
-
items: CatalogReferenceNonNullableFields[];
|
|
192
|
-
algorithm?: AlgorithmNonNullableFields;
|
|
193
|
-
}
|
|
194
|
-
export interface GetRecommendationResponseNonNullableFields {
|
|
195
|
-
recommendation?: RecommendationNonNullableFields;
|
|
196
|
-
}
|
|
169
|
+
type RecommendationNonNullablePaths = `items` | `items.${number}.catalogItemId` | `items.${number}.appId` | `algorithm._id` | `algorithm.appId`;
|
|
197
170
|
/**
|
|
198
171
|
* 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.
|
|
199
172
|
*
|
|
@@ -219,7 +192,7 @@ export interface GetRecommendationResponseNonNullableFields {
|
|
|
219
192
|
* @applicableIdentity VISITOR
|
|
220
193
|
* @fqn com.wix.ecom.recommendations.v1.RecommendationsService.ListAvailableAlgorithms
|
|
221
194
|
*/
|
|
222
|
-
export declare function listAvailableAlgorithms(): Promise<ListAvailableAlgorithmsResponse
|
|
195
|
+
export declare function listAvailableAlgorithms(): Promise<NonNullablePaths<ListAvailableAlgorithmsResponse, `availableAlgorithms` | `availableAlgorithms.${number}.config.name` | `availableAlgorithms.${number}.config.description` | `availableAlgorithms.${number}.config.algorithmType` | `availableAlgorithms.${number}.config.algorithmId` | `availableAlgorithms.${number}.appId` | `availableAlgorithms.${number}.catalogAppIds`>>;
|
|
223
196
|
/**
|
|
224
197
|
* Returns a recommendation object containing a list of items to recommend to the customer.
|
|
225
198
|
*
|
|
@@ -261,7 +234,9 @@ export declare function listAvailableAlgorithms(): Promise<ListAvailableAlgorith
|
|
|
261
234
|
* @applicableIdentity VISITOR
|
|
262
235
|
* @fqn com.wix.ecom.recommendations.v1.RecommendationsService.GetRecommendation
|
|
263
236
|
*/
|
|
264
|
-
export declare function getRecommendation(algorithms: Algorithm[], options?: GetRecommendationOptions): Promise<GetRecommendationResponse
|
|
237
|
+
export declare function getRecommendation(algorithms: NonNullablePaths<Algorithm, `_id` | `appId`>[], options?: NonNullablePaths<GetRecommendationOptions, `items.${number}.appId` | `items.${number}.catalogItemId`>): Promise<NonNullablePaths<GetRecommendationResponse, {
|
|
238
|
+
[P in RecommendationNonNullablePaths]: `recommendation.${P}`;
|
|
239
|
+
}[RecommendationNonNullablePaths]>>;
|
|
265
240
|
export interface GetRecommendationOptions {
|
|
266
241
|
/**
|
|
267
242
|
* The set of items for which to get recommendations. Required if the `algorithmType` is `RELATED_ITEMS`.
|
package/build/es/src/ecom-recommendations-v1-recommendation-recommendations.universal.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-recommendations-v1-recommendation-recommendations.universal.js","sourceRoot":"","sources":["../../../src/ecom-recommendations-v1-recommendation-recommendations.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,gDAAgD,MAAM,kEAAkE,CAAC;AAyHrI,MAAM,CAAN,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,4CAA2B,CAAA;IAC3B,gDAA+B,CAAA;IAC/B,kCAAiB,CAAA;AACnB,CAAC,EAJW,aAAa,KAAb,aAAa,QAIxB;
|
|
1
|
+
{"version":3,"file":"ecom-recommendations-v1-recommendation-recommendations.universal.js","sourceRoot":"","sources":["../../../src/ecom-recommendations-v1-recommendation-recommendations.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,gDAAgD,MAAM,kEAAkE,CAAC;AAyHrI,MAAM,CAAN,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,4CAA2B,CAAA;IAC3B,gDAA+B,CAAA;IAC/B,kCAAiB,CAAA;AACnB,CAAC,EAJW,aAAa,KAAb,aAAa,QAIxB;AA8DD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,CAAC,KAAK,UAAU,uBAAuB;IAY3C,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,qCAAqC,CAAC,EAAE,CAAC,CAAC;IAE1D,MAAM,OAAO,GACX,gDAAgD,CAAC,uBAAuB,CACtE,OAAO,CACR,CAAC;IAEJ,WAAW,EAAE,UAAU,EAAE,EAAE,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;QAEjC,OAAO,uCAAuC,CAAC,MAAM,CAAC,IAAI,CAAE,CAAC;IAC/D,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,iBAAiB,CACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE;YAC5B,uBAAuB,EAAE,KAAK;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}
|
package/build/internal/cjs/src/ecom-recommendations-v1-recommendation-recommendations.context.d.ts
CHANGED
|
@@ -3,4 +3,4 @@ import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
|
|
|
3
3
|
export declare const listAvailableAlgorithms: MaybeContext<BuildRESTFunction<typeof publicListAvailableAlgorithms> & typeof publicListAvailableAlgorithms>;
|
|
4
4
|
export declare const getRecommendation: MaybeContext<BuildRESTFunction<typeof publicGetRecommendation> & typeof publicGetRecommendation>;
|
|
5
5
|
export { AlgorithmType } from './ecom-recommendations-v1-recommendation-recommendations.universal.js';
|
|
6
|
-
export { Recommendation, CatalogReference, Algorithm, ListAvailableAlgorithmsRequest, ListAvailableAlgorithmsResponse, AlgorithmInfo, AlgorithmConfig, GetRecommendationRequest, GetRecommendationResponse, ItemAppIdNotSupportedByProvider, RecommendationAlgorithmNotSupported,
|
|
6
|
+
export { Recommendation, CatalogReference, Algorithm, ListAvailableAlgorithmsRequest, ListAvailableAlgorithmsResponse, AlgorithmInfo, AlgorithmConfig, GetRecommendationRequest, GetRecommendationResponse, ItemAppIdNotSupportedByProvider, RecommendationAlgorithmNotSupported, GetRecommendationOptions, } from './ecom-recommendations-v1-recommendation-recommendations.universal.js';
|
package/build/internal/cjs/src/ecom-recommendations-v1-recommendation-recommendations.meta.d.ts
CHANGED
|
@@ -10,5 +10,5 @@ export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unk
|
|
|
10
10
|
__responseType: Q;
|
|
11
11
|
__originalResponseType: R;
|
|
12
12
|
};
|
|
13
|
-
export declare function listAvailableAlgorithms(): __PublicMethodMetaInfo<'GET', {}, ambassadorWixEcomRecommendationsV1RecommendationUniversalTypes.ListAvailableAlgorithmsRequest, ambassadorWixEcomRecommendationsV1RecommendationTypes.ListAvailableAlgorithmsRequest, ambassadorWixEcomRecommendationsV1RecommendationUniversalTypes.ListAvailableAlgorithmsResponse
|
|
14
|
-
export declare function getRecommendation(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixEcomRecommendationsV1RecommendationUniversalTypes.GetRecommendationRequest, ambassadorWixEcomRecommendationsV1RecommendationTypes.GetRecommendationRequest, ambassadorWixEcomRecommendationsV1RecommendationUniversalTypes.GetRecommendationResponse
|
|
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>;
|
package/build/internal/cjs/src/ecom-recommendations-v1-recommendation-recommendations.meta.js.map
CHANGED
|
@@ -1 +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;
|
|
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"}
|
package/build/internal/cjs/src/ecom-recommendations-v1-recommendation-recommendations.public.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import { Algorithm, GetRecommendationOptions, GetRecommendationResponse,
|
|
2
|
+
import { Algorithm, GetRecommendationOptions, GetRecommendationResponse, ListAvailableAlgorithmsResponse } from './ecom-recommendations-v1-recommendation-recommendations.universal.js';
|
|
3
3
|
export declare const __metadata: {
|
|
4
4
|
PACKAGE_NAME: string;
|
|
5
5
|
};
|
|
@@ -19,7 +19,7 @@ interface ListAvailableAlgorithmsSignature {
|
|
|
19
19
|
*
|
|
20
20
|
* 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).
|
|
21
21
|
*/
|
|
22
|
-
(): Promise<ListAvailableAlgorithmsResponse
|
|
22
|
+
(): Promise<ListAvailableAlgorithmsResponse>;
|
|
23
23
|
}
|
|
24
24
|
export declare function getRecommendation(httpClient: HttpClient): GetRecommendationSignature;
|
|
25
25
|
interface GetRecommendationSignature {
|
|
@@ -48,6 +48,6 @@ interface GetRecommendationSignature {
|
|
|
48
48
|
* If no algorithm is able to return at least `minimumRecommendedItems` items, an empty array is returned.
|
|
49
49
|
* @param - Get recommendation options.
|
|
50
50
|
*/
|
|
51
|
-
(algorithms: Algorithm[], options?: GetRecommendationOptions | undefined): Promise<GetRecommendationResponse
|
|
51
|
+
(algorithms: Algorithm[], options?: GetRecommendationOptions | undefined): Promise<GetRecommendationResponse>;
|
|
52
52
|
}
|
|
53
|
-
export { Algorithm, AlgorithmConfig, AlgorithmInfo, AlgorithmType, CatalogReference, GetRecommendationOptions, GetRecommendationRequest, GetRecommendationResponse,
|
|
53
|
+
export { Algorithm, AlgorithmConfig, AlgorithmInfo, AlgorithmType, CatalogReference, GetRecommendationOptions, GetRecommendationRequest, GetRecommendationResponse, ItemAppIdNotSupportedByProvider, ListAvailableAlgorithmsRequest, ListAvailableAlgorithmsResponse, Recommendation, RecommendationAlgorithmNotSupported, } from './ecom-recommendations-v1-recommendation-recommendations.universal.js';
|
package/build/internal/cjs/src/ecom-recommendations-v1-recommendation-recommendations.public.js.map
CHANGED
|
@@ -1 +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,+
|
|
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"}
|
package/build/internal/cjs/src/ecom-recommendations-v1-recommendation-recommendations.types.d.ts
CHANGED
|
@@ -165,33 +165,3 @@ export interface RecommendationAlgorithmNotSupported {
|
|
|
165
165
|
*/
|
|
166
166
|
unsupportedAlgorithms?: Algorithm[];
|
|
167
167
|
}
|
|
168
|
-
interface AlgorithmConfigNonNullableFields {
|
|
169
|
-
name: string;
|
|
170
|
-
description: string;
|
|
171
|
-
algorithmType: AlgorithmType;
|
|
172
|
-
algorithmId: string;
|
|
173
|
-
}
|
|
174
|
-
interface AlgorithmInfoNonNullableFields {
|
|
175
|
-
config?: AlgorithmConfigNonNullableFields;
|
|
176
|
-
appId: string;
|
|
177
|
-
catalogAppIds: string[];
|
|
178
|
-
}
|
|
179
|
-
export interface ListAvailableAlgorithmsResponseNonNullableFields {
|
|
180
|
-
availableAlgorithms: AlgorithmInfoNonNullableFields[];
|
|
181
|
-
}
|
|
182
|
-
interface CatalogReferenceNonNullableFields {
|
|
183
|
-
catalogItemId: string;
|
|
184
|
-
appId: string;
|
|
185
|
-
}
|
|
186
|
-
interface AlgorithmNonNullableFields {
|
|
187
|
-
id: string;
|
|
188
|
-
appId: string;
|
|
189
|
-
}
|
|
190
|
-
interface RecommendationNonNullableFields {
|
|
191
|
-
items: CatalogReferenceNonNullableFields[];
|
|
192
|
-
algorithm?: AlgorithmNonNullableFields;
|
|
193
|
-
}
|
|
194
|
-
export interface GetRecommendationResponseNonNullableFields {
|
|
195
|
-
recommendation?: RecommendationNonNullableFields;
|
|
196
|
-
}
|
|
197
|
-
export {};
|
package/build/internal/cjs/src/ecom-recommendations-v1-recommendation-recommendations.universal.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { NonNullablePaths } from '@wix/sdk-types';
|
|
1
2
|
export interface Recommendation {
|
|
2
3
|
/**
|
|
3
4
|
* Recommended items.
|
|
@@ -165,35 +166,7 @@ export interface RecommendationAlgorithmNotSupported {
|
|
|
165
166
|
*/
|
|
166
167
|
unsupportedAlgorithms?: Algorithm[];
|
|
167
168
|
}
|
|
168
|
-
|
|
169
|
-
name: string;
|
|
170
|
-
description: string;
|
|
171
|
-
algorithmType: AlgorithmType;
|
|
172
|
-
algorithmId: string;
|
|
173
|
-
}
|
|
174
|
-
interface AlgorithmInfoNonNullableFields {
|
|
175
|
-
config?: AlgorithmConfigNonNullableFields;
|
|
176
|
-
appId: string;
|
|
177
|
-
catalogAppIds: string[];
|
|
178
|
-
}
|
|
179
|
-
export interface ListAvailableAlgorithmsResponseNonNullableFields {
|
|
180
|
-
availableAlgorithms: AlgorithmInfoNonNullableFields[];
|
|
181
|
-
}
|
|
182
|
-
interface CatalogReferenceNonNullableFields {
|
|
183
|
-
catalogItemId: string;
|
|
184
|
-
appId: string;
|
|
185
|
-
}
|
|
186
|
-
interface AlgorithmNonNullableFields {
|
|
187
|
-
_id: string;
|
|
188
|
-
appId: string;
|
|
189
|
-
}
|
|
190
|
-
interface RecommendationNonNullableFields {
|
|
191
|
-
items: CatalogReferenceNonNullableFields[];
|
|
192
|
-
algorithm?: AlgorithmNonNullableFields;
|
|
193
|
-
}
|
|
194
|
-
export interface GetRecommendationResponseNonNullableFields {
|
|
195
|
-
recommendation?: RecommendationNonNullableFields;
|
|
196
|
-
}
|
|
169
|
+
type RecommendationNonNullablePaths = `items` | `items.${number}.catalogItemId` | `items.${number}.appId` | `algorithm._id` | `algorithm.appId`;
|
|
197
170
|
/**
|
|
198
171
|
* 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.
|
|
199
172
|
*
|
|
@@ -219,7 +192,7 @@ export interface GetRecommendationResponseNonNullableFields {
|
|
|
219
192
|
* @applicableIdentity VISITOR
|
|
220
193
|
* @fqn com.wix.ecom.recommendations.v1.RecommendationsService.ListAvailableAlgorithms
|
|
221
194
|
*/
|
|
222
|
-
export declare function listAvailableAlgorithms(): Promise<ListAvailableAlgorithmsResponse
|
|
195
|
+
export declare function listAvailableAlgorithms(): Promise<NonNullablePaths<ListAvailableAlgorithmsResponse, `availableAlgorithms` | `availableAlgorithms.${number}.config.name` | `availableAlgorithms.${number}.config.description` | `availableAlgorithms.${number}.config.algorithmType` | `availableAlgorithms.${number}.config.algorithmId` | `availableAlgorithms.${number}.appId` | `availableAlgorithms.${number}.catalogAppIds`>>;
|
|
223
196
|
/**
|
|
224
197
|
* Returns a recommendation object containing a list of items to recommend to the customer.
|
|
225
198
|
*
|
|
@@ -261,7 +234,9 @@ export declare function listAvailableAlgorithms(): Promise<ListAvailableAlgorith
|
|
|
261
234
|
* @applicableIdentity VISITOR
|
|
262
235
|
* @fqn com.wix.ecom.recommendations.v1.RecommendationsService.GetRecommendation
|
|
263
236
|
*/
|
|
264
|
-
export declare function getRecommendation(algorithms: Algorithm[], options?: GetRecommendationOptions): Promise<GetRecommendationResponse
|
|
237
|
+
export declare function getRecommendation(algorithms: NonNullablePaths<Algorithm, `_id` | `appId`>[], options?: NonNullablePaths<GetRecommendationOptions, `items.${number}.appId` | `items.${number}.catalogItemId`>): Promise<NonNullablePaths<GetRecommendationResponse, {
|
|
238
|
+
[P in RecommendationNonNullablePaths]: `recommendation.${P}`;
|
|
239
|
+
}[RecommendationNonNullablePaths]>>;
|
|
265
240
|
export interface GetRecommendationOptions {
|
|
266
241
|
/**
|
|
267
242
|
* The set of items for which to get recommendations. Required if the `algorithmType` is `RELATED_ITEMS`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-recommendations-v1-recommendation-recommendations.universal.js","sourceRoot":"","sources":["../../../../src/ecom-recommendations-v1-recommendation-recommendations.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,mJAAqI;AAyHrI,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,4CAA2B,CAAA;IAC3B,gDAA+B,CAAA;IAC/B,kCAAiB,CAAA;AACnB,CAAC,EAJW,aAAa,6BAAb,aAAa,QAIxB;
|
|
1
|
+
{"version":3,"file":"ecom-recommendations-v1-recommendation-recommendations.universal.js","sourceRoot":"","sources":["../../../../src/ecom-recommendations-v1-recommendation-recommendations.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,mJAAqI;AAyHrI,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,4CAA2B,CAAA;IAC3B,gDAA+B,CAAA;IAC/B,kCAAiB,CAAA;AACnB,CAAC,EAJW,aAAa,6BAAb,aAAa,QAIxB;AA8DD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACI,KAAK,UAAU,uBAAuB;IAY3C,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,IAAA,8DAAqC,EAAC,EAAE,CAAC,CAAC;IAE1D,MAAM,OAAO,G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AC,MAAM,CAAC,CAAC;QAEjC,OAAO,IAAA,gEAAuC,EAAC,MAAM,CAAC,IAAI,CAAE,CAAC;IAC/D,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,IAAA,gCAAiB,EACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE;gBACxB,UAAU,EAAE,MAAM;gBAClB,KAAK,EAAE,YAAY;gBACnB,uBAAuB,EAAE,8BAA8B;aACxD;YACD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,YAAY,EAAE,SAAS,CAAC,CAC1B,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AArDD,8CAqDC"}
|
package/build/internal/es/src/ecom-recommendations-v1-recommendation-recommendations.context.d.ts
CHANGED
|
@@ -3,4 +3,4 @@ import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
|
|
|
3
3
|
export declare const listAvailableAlgorithms: MaybeContext<BuildRESTFunction<typeof publicListAvailableAlgorithms> & typeof publicListAvailableAlgorithms>;
|
|
4
4
|
export declare const getRecommendation: MaybeContext<BuildRESTFunction<typeof publicGetRecommendation> & typeof publicGetRecommendation>;
|
|
5
5
|
export { AlgorithmType } from './ecom-recommendations-v1-recommendation-recommendations.universal.js';
|
|
6
|
-
export { Recommendation, CatalogReference, Algorithm, ListAvailableAlgorithmsRequest, ListAvailableAlgorithmsResponse, AlgorithmInfo, AlgorithmConfig, GetRecommendationRequest, GetRecommendationResponse, ItemAppIdNotSupportedByProvider, RecommendationAlgorithmNotSupported,
|
|
6
|
+
export { Recommendation, CatalogReference, Algorithm, ListAvailableAlgorithmsRequest, ListAvailableAlgorithmsResponse, AlgorithmInfo, AlgorithmConfig, GetRecommendationRequest, GetRecommendationResponse, ItemAppIdNotSupportedByProvider, RecommendationAlgorithmNotSupported, GetRecommendationOptions, } from './ecom-recommendations-v1-recommendation-recommendations.universal.js';
|
package/build/internal/es/src/ecom-recommendations-v1-recommendation-recommendations.meta.d.ts
CHANGED
|
@@ -10,5 +10,5 @@ export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unk
|
|
|
10
10
|
__responseType: Q;
|
|
11
11
|
__originalResponseType: R;
|
|
12
12
|
};
|
|
13
|
-
export declare function listAvailableAlgorithms(): __PublicMethodMetaInfo<'GET', {}, ambassadorWixEcomRecommendationsV1RecommendationUniversalTypes.ListAvailableAlgorithmsRequest, ambassadorWixEcomRecommendationsV1RecommendationTypes.ListAvailableAlgorithmsRequest, ambassadorWixEcomRecommendationsV1RecommendationUniversalTypes.ListAvailableAlgorithmsResponse
|
|
14
|
-
export declare function getRecommendation(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixEcomRecommendationsV1RecommendationUniversalTypes.GetRecommendationRequest, ambassadorWixEcomRecommendationsV1RecommendationTypes.GetRecommendationRequest, ambassadorWixEcomRecommendationsV1RecommendationUniversalTypes.GetRecommendationResponse
|
|
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>;
|
package/build/internal/es/src/ecom-recommendations-v1-recommendation-recommendations.meta.js.map
CHANGED
|
@@ -1 +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,OAAO,KAAK,gDAAgD,MAAM,kEAAkE,CAAC;AAsBrI,MAAM,UAAU,uBAAuB;
|
|
1
|
+
{"version":3,"file":"ecom-recommendations-v1-recommendation-recommendations.meta.js","sourceRoot":"","sources":["../../../../src/ecom-recommendations-v1-recommendation-recommendations.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,gDAAgD,MAAM,kEAAkE,CAAC;AAsBrI,MAAM,UAAU,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;AAED,MAAM,UAAU,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"}
|
package/build/internal/es/src/ecom-recommendations-v1-recommendation-recommendations.public.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import { Algorithm, GetRecommendationOptions, GetRecommendationResponse,
|
|
2
|
+
import { Algorithm, GetRecommendationOptions, GetRecommendationResponse, ListAvailableAlgorithmsResponse } from './ecom-recommendations-v1-recommendation-recommendations.universal.js';
|
|
3
3
|
export declare const __metadata: {
|
|
4
4
|
PACKAGE_NAME: string;
|
|
5
5
|
};
|
|
@@ -19,7 +19,7 @@ interface ListAvailableAlgorithmsSignature {
|
|
|
19
19
|
*
|
|
20
20
|
* 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).
|
|
21
21
|
*/
|
|
22
|
-
(): Promise<ListAvailableAlgorithmsResponse
|
|
22
|
+
(): Promise<ListAvailableAlgorithmsResponse>;
|
|
23
23
|
}
|
|
24
24
|
export declare function getRecommendation(httpClient: HttpClient): GetRecommendationSignature;
|
|
25
25
|
interface GetRecommendationSignature {
|
|
@@ -48,6 +48,6 @@ interface GetRecommendationSignature {
|
|
|
48
48
|
* If no algorithm is able to return at least `minimumRecommendedItems` items, an empty array is returned.
|
|
49
49
|
* @param - Get recommendation options.
|
|
50
50
|
*/
|
|
51
|
-
(algorithms: Algorithm[], options?: GetRecommendationOptions | undefined): Promise<GetRecommendationResponse
|
|
51
|
+
(algorithms: Algorithm[], options?: GetRecommendationOptions | undefined): Promise<GetRecommendationResponse>;
|
|
52
52
|
}
|
|
53
|
-
export { Algorithm, AlgorithmConfig, AlgorithmInfo, AlgorithmType, CatalogReference, GetRecommendationOptions, GetRecommendationRequest, GetRecommendationResponse,
|
|
53
|
+
export { Algorithm, AlgorithmConfig, AlgorithmInfo, AlgorithmType, CatalogReference, GetRecommendationOptions, GetRecommendationRequest, GetRecommendationResponse, ItemAppIdNotSupportedByProvider, ListAvailableAlgorithmsRequest, ListAvailableAlgorithmsResponse, Recommendation, RecommendationAlgorithmNotSupported, } from './ecom-recommendations-v1-recommendation-recommendations.universal.js';
|
package/build/internal/es/src/ecom-recommendations-v1-recommendation-recommendations.public.js.map
CHANGED
|
@@ -1 +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,OAAO,
|
|
1
|
+
{"version":3,"file":"ecom-recommendations-v1-recommendation-recommendations.public.js","sourceRoot":"","sources":["../../../../src/ecom-recommendations-v1-recommendation-recommendations.public.ts"],"names":[],"mappings":"AACA,OAAO,EAKL,iBAAiB,IAAI,0BAA0B,EAC/C,uBAAuB,IAAI,gCAAgC,GAC5D,MAAM,uEAAuE,CAAC;AAE/E,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC;AAExD,MAAM,UAAU,uBAAuB,CACrC,UAAsB;IAEtB,OAAO,GAAG,EAAE,CACV,gCAAgC;IAC9B,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAoBD,MAAM,UAAU,iBAAiB,CAC/B,UAAsB;IAEtB,OAAO,CACL,UAA0D,EAC1D,OAGC,EACD,EAAE,CACF,0BAA0B,CACxB,UAAU,EACV,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAkCD,OAAO,EAIL,aAAa,GAUd,MAAM,uEAAuE,CAAC"}
|
package/build/internal/es/src/ecom-recommendations-v1-recommendation-recommendations.types.d.ts
CHANGED
|
@@ -165,33 +165,3 @@ export interface RecommendationAlgorithmNotSupported {
|
|
|
165
165
|
*/
|
|
166
166
|
unsupportedAlgorithms?: Algorithm[];
|
|
167
167
|
}
|
|
168
|
-
interface AlgorithmConfigNonNullableFields {
|
|
169
|
-
name: string;
|
|
170
|
-
description: string;
|
|
171
|
-
algorithmType: AlgorithmType;
|
|
172
|
-
algorithmId: string;
|
|
173
|
-
}
|
|
174
|
-
interface AlgorithmInfoNonNullableFields {
|
|
175
|
-
config?: AlgorithmConfigNonNullableFields;
|
|
176
|
-
appId: string;
|
|
177
|
-
catalogAppIds: string[];
|
|
178
|
-
}
|
|
179
|
-
export interface ListAvailableAlgorithmsResponseNonNullableFields {
|
|
180
|
-
availableAlgorithms: AlgorithmInfoNonNullableFields[];
|
|
181
|
-
}
|
|
182
|
-
interface CatalogReferenceNonNullableFields {
|
|
183
|
-
catalogItemId: string;
|
|
184
|
-
appId: string;
|
|
185
|
-
}
|
|
186
|
-
interface AlgorithmNonNullableFields {
|
|
187
|
-
id: string;
|
|
188
|
-
appId: string;
|
|
189
|
-
}
|
|
190
|
-
interface RecommendationNonNullableFields {
|
|
191
|
-
items: CatalogReferenceNonNullableFields[];
|
|
192
|
-
algorithm?: AlgorithmNonNullableFields;
|
|
193
|
-
}
|
|
194
|
-
export interface GetRecommendationResponseNonNullableFields {
|
|
195
|
-
recommendation?: RecommendationNonNullableFields;
|
|
196
|
-
}
|
|
197
|
-
export {};
|
package/build/internal/es/src/ecom-recommendations-v1-recommendation-recommendations.universal.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { NonNullablePaths } from '@wix/sdk-types';
|
|
1
2
|
export interface Recommendation {
|
|
2
3
|
/**
|
|
3
4
|
* Recommended items.
|
|
@@ -165,35 +166,7 @@ export interface RecommendationAlgorithmNotSupported {
|
|
|
165
166
|
*/
|
|
166
167
|
unsupportedAlgorithms?: Algorithm[];
|
|
167
168
|
}
|
|
168
|
-
|
|
169
|
-
name: string;
|
|
170
|
-
description: string;
|
|
171
|
-
algorithmType: AlgorithmType;
|
|
172
|
-
algorithmId: string;
|
|
173
|
-
}
|
|
174
|
-
interface AlgorithmInfoNonNullableFields {
|
|
175
|
-
config?: AlgorithmConfigNonNullableFields;
|
|
176
|
-
appId: string;
|
|
177
|
-
catalogAppIds: string[];
|
|
178
|
-
}
|
|
179
|
-
export interface ListAvailableAlgorithmsResponseNonNullableFields {
|
|
180
|
-
availableAlgorithms: AlgorithmInfoNonNullableFields[];
|
|
181
|
-
}
|
|
182
|
-
interface CatalogReferenceNonNullableFields {
|
|
183
|
-
catalogItemId: string;
|
|
184
|
-
appId: string;
|
|
185
|
-
}
|
|
186
|
-
interface AlgorithmNonNullableFields {
|
|
187
|
-
_id: string;
|
|
188
|
-
appId: string;
|
|
189
|
-
}
|
|
190
|
-
interface RecommendationNonNullableFields {
|
|
191
|
-
items: CatalogReferenceNonNullableFields[];
|
|
192
|
-
algorithm?: AlgorithmNonNullableFields;
|
|
193
|
-
}
|
|
194
|
-
export interface GetRecommendationResponseNonNullableFields {
|
|
195
|
-
recommendation?: RecommendationNonNullableFields;
|
|
196
|
-
}
|
|
169
|
+
type RecommendationNonNullablePaths = `items` | `items.${number}.catalogItemId` | `items.${number}.appId` | `algorithm._id` | `algorithm.appId`;
|
|
197
170
|
/**
|
|
198
171
|
* 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.
|
|
199
172
|
*
|
|
@@ -219,7 +192,7 @@ export interface GetRecommendationResponseNonNullableFields {
|
|
|
219
192
|
* @applicableIdentity VISITOR
|
|
220
193
|
* @fqn com.wix.ecom.recommendations.v1.RecommendationsService.ListAvailableAlgorithms
|
|
221
194
|
*/
|
|
222
|
-
export declare function listAvailableAlgorithms(): Promise<ListAvailableAlgorithmsResponse
|
|
195
|
+
export declare function listAvailableAlgorithms(): Promise<NonNullablePaths<ListAvailableAlgorithmsResponse, `availableAlgorithms` | `availableAlgorithms.${number}.config.name` | `availableAlgorithms.${number}.config.description` | `availableAlgorithms.${number}.config.algorithmType` | `availableAlgorithms.${number}.config.algorithmId` | `availableAlgorithms.${number}.appId` | `availableAlgorithms.${number}.catalogAppIds`>>;
|
|
223
196
|
/**
|
|
224
197
|
* Returns a recommendation object containing a list of items to recommend to the customer.
|
|
225
198
|
*
|
|
@@ -261,7 +234,9 @@ export declare function listAvailableAlgorithms(): Promise<ListAvailableAlgorith
|
|
|
261
234
|
* @applicableIdentity VISITOR
|
|
262
235
|
* @fqn com.wix.ecom.recommendations.v1.RecommendationsService.GetRecommendation
|
|
263
236
|
*/
|
|
264
|
-
export declare function getRecommendation(algorithms: Algorithm[], options?: GetRecommendationOptions): Promise<GetRecommendationResponse
|
|
237
|
+
export declare function getRecommendation(algorithms: NonNullablePaths<Algorithm, `_id` | `appId`>[], options?: NonNullablePaths<GetRecommendationOptions, `items.${number}.appId` | `items.${number}.catalogItemId`>): Promise<NonNullablePaths<GetRecommendationResponse, {
|
|
238
|
+
[P in RecommendationNonNullablePaths]: `recommendation.${P}`;
|
|
239
|
+
}[RecommendationNonNullablePaths]>>;
|
|
265
240
|
export interface GetRecommendationOptions {
|
|
266
241
|
/**
|
|
267
242
|
* The set of items for which to get recommendations. Required if the `algorithmType` is `RELATED_ITEMS`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-recommendations-v1-recommendation-recommendations.universal.js","sourceRoot":"","sources":["../../../../src/ecom-recommendations-v1-recommendation-recommendations.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,gDAAgD,MAAM,kEAAkE,CAAC;AAyHrI,MAAM,CAAN,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,4CAA2B,CAAA;IAC3B,gDAA+B,CAAA;IAC/B,kCAAiB,CAAA;AACnB,CAAC,EAJW,aAAa,KAAb,aAAa,QAIxB;
|
|
1
|
+
{"version":3,"file":"ecom-recommendations-v1-recommendation-recommendations.universal.js","sourceRoot":"","sources":["../../../../src/ecom-recommendations-v1-recommendation-recommendations.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,gDAAgD,MAAM,kEAAkE,CAAC;AAyHrI,MAAM,CAAN,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,4CAA2B,CAAA;IAC3B,gDAA+B,CAAA;IAC/B,kCAAiB,CAAA;AACnB,CAAC,EAJW,aAAa,KAAb,aAAa,QAIxB;AA8DD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,CAAC,KAAK,UAAU,uBAAuB;IAY3C,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,qCAAqC,CAAC,EAAE,CAAC,CAAC;IAE1D,MAAM,OAAO,GACX,gDAAgD,CAAC,uBAAuB,CACtE,OAAO,CACR,CAAC;IAEJ,WAAW,EAAE,UAAU,EAAE,EAAE,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;QAEjC,OAAO,uCAAuC,CAAC,MAAM,CAAC,IAAI,CAAE,CAAC;IAC/D,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,iBAAiB,CACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBA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,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_ecom_recommendations",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"service-plugins"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@wix/sdk-runtime": "^0.3.
|
|
32
|
-
"@wix/sdk-types": "^1.
|
|
31
|
+
"@wix/sdk-runtime": "^0.3.42",
|
|
32
|
+
"@wix/sdk-types": "^1.13.10"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"typescript": "^5.3.2"
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"fqdn": "wix.ecom.recommendations.v1.recommendation"
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
|
-
"falconPackageHash": "
|
|
51
|
+
"falconPackageHash": "e528909ee722c79eac3f87b7104a90d2f21121ab5f2661f390da06f5"
|
|
52
52
|
}
|