@wix/auto_sdk_atlas_autocomplete 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.
- package/build/cjs/src/atlas-v2-prediction-autocomplete.context.d.ts +1 -1
- package/build/cjs/src/atlas-v2-prediction-autocomplete.meta.d.ts +1 -1
- package/build/cjs/src/atlas-v2-prediction-autocomplete.meta.js.map +1 -1
- package/build/cjs/src/atlas-v2-prediction-autocomplete.public.d.ts +3 -3
- package/build/cjs/src/atlas-v2-prediction-autocomplete.public.js.map +1 -1
- package/build/cjs/src/atlas-v2-prediction-autocomplete.types.d.ts +0 -19
- package/build/cjs/src/atlas-v2-prediction-autocomplete.universal.d.ts +7 -19
- package/build/cjs/src/atlas-v2-prediction-autocomplete.universal.js +2 -0
- package/build/cjs/src/atlas-v2-prediction-autocomplete.universal.js.map +1 -1
- package/build/es/src/atlas-v2-prediction-autocomplete.context.d.ts +1 -1
- package/build/es/src/atlas-v2-prediction-autocomplete.meta.d.ts +1 -1
- package/build/es/src/atlas-v2-prediction-autocomplete.meta.js.map +1 -1
- package/build/es/src/atlas-v2-prediction-autocomplete.public.d.ts +3 -3
- package/build/es/src/atlas-v2-prediction-autocomplete.public.js.map +1 -1
- package/build/es/src/atlas-v2-prediction-autocomplete.types.d.ts +0 -19
- package/build/es/src/atlas-v2-prediction-autocomplete.universal.d.ts +7 -19
- package/build/es/src/atlas-v2-prediction-autocomplete.universal.js +2 -0
- package/build/es/src/atlas-v2-prediction-autocomplete.universal.js.map +1 -1
- package/build/internal/cjs/src/atlas-v2-prediction-autocomplete.context.d.ts +1 -1
- package/build/internal/cjs/src/atlas-v2-prediction-autocomplete.meta.d.ts +1 -1
- package/build/internal/cjs/src/atlas-v2-prediction-autocomplete.meta.js.map +1 -1
- package/build/internal/cjs/src/atlas-v2-prediction-autocomplete.public.d.ts +3 -3
- package/build/internal/cjs/src/atlas-v2-prediction-autocomplete.public.js.map +1 -1
- package/build/internal/cjs/src/atlas-v2-prediction-autocomplete.types.d.ts +0 -19
- package/build/internal/cjs/src/atlas-v2-prediction-autocomplete.universal.d.ts +7 -19
- package/build/internal/cjs/src/atlas-v2-prediction-autocomplete.universal.js +2 -0
- package/build/internal/cjs/src/atlas-v2-prediction-autocomplete.universal.js.map +1 -1
- package/build/internal/es/src/atlas-v2-prediction-autocomplete.context.d.ts +1 -1
- package/build/internal/es/src/atlas-v2-prediction-autocomplete.meta.d.ts +1 -1
- package/build/internal/es/src/atlas-v2-prediction-autocomplete.meta.js.map +1 -1
- package/build/internal/es/src/atlas-v2-prediction-autocomplete.public.d.ts +3 -3
- package/build/internal/es/src/atlas-v2-prediction-autocomplete.public.js.map +1 -1
- package/build/internal/es/src/atlas-v2-prediction-autocomplete.types.d.ts +0 -19
- package/build/internal/es/src/atlas-v2-prediction-autocomplete.universal.d.ts +7 -19
- package/build/internal/es/src/atlas-v2-prediction-autocomplete.universal.js +2 -0
- package/build/internal/es/src/atlas-v2-prediction-autocomplete.universal.js.map +1 -1
- package/package.json +4 -4
|
@@ -2,4 +2,4 @@ import { predict as publicPredict } from './atlas-v2-prediction-autocomplete.pub
|
|
|
2
2
|
import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
|
|
3
3
|
export declare const predict: MaybeContext<BuildRESTFunction<typeof publicPredict> & typeof publicPredict>;
|
|
4
4
|
export { FilterType } from './atlas-v2-prediction-autocomplete.universal.js';
|
|
5
|
-
export { Prediction, MatchedSubstrings, TextStructure, ListPredictionsRequest, AddressLocation, FilterBy, ListPredictionsResponse, PredictRequest, PredictResponse,
|
|
5
|
+
export { Prediction, MatchedSubstrings, TextStructure, ListPredictionsRequest, AddressLocation, FilterBy, ListPredictionsResponse, PredictRequest, PredictResponse, PredictOptions, } from './atlas-v2-prediction-autocomplete.universal.js';
|
|
@@ -10,4 +10,4 @@ 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 predict(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixAtlasV2PredictionUniversalTypes.PredictRequest, ambassadorWixAtlasV2PredictionTypes.PredictRequest, ambassadorWixAtlasV2PredictionUniversalTypes.PredictResponse
|
|
13
|
+
export declare function predict(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixAtlasV2PredictionUniversalTypes.PredictRequest, ambassadorWixAtlasV2PredictionTypes.PredictRequest, ambassadorWixAtlasV2PredictionUniversalTypes.PredictResponse, ambassadorWixAtlasV2PredictionTypes.PredictResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"atlas-v2-prediction-autocomplete.meta.js","sourceRoot":"","sources":["../../../src/atlas-v2-prediction-autocomplete.meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2GAA6F;AAsB7F,SAAgB,OAAO;
|
|
1
|
+
{"version":3,"file":"atlas-v2-prediction-autocomplete.meta.js","sourceRoot":"","sources":["../../../src/atlas-v2-prediction-autocomplete.meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2GAA6F;AAsB7F,SAAgB,OAAO;IAQrB,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GAAG,8BAA8B,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAE1E,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,aAAa;QACnB,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA3BD,0BA2BC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import { PredictOptions, PredictResponse
|
|
2
|
+
import { PredictOptions, PredictResponse } from './atlas-v2-prediction-autocomplete.universal.js';
|
|
3
3
|
export declare const __metadata: {
|
|
4
4
|
PACKAGE_NAME: string;
|
|
5
5
|
};
|
|
@@ -9,6 +9,6 @@ interface PredictSignature {
|
|
|
9
9
|
* A Predict end-point take an input and returns an list of Prediction object.
|
|
10
10
|
* @param - The text the predictions will be based on.
|
|
11
11
|
*/
|
|
12
|
-
(input: string, options?: PredictOptions | undefined): Promise<PredictResponse
|
|
12
|
+
(input: string, options?: PredictOptions | undefined): Promise<PredictResponse>;
|
|
13
13
|
}
|
|
14
|
-
export { AddressLocation, FilterBy, FilterType, ListPredictionsRequest, ListPredictionsResponse, MatchedSubstrings, PredictOptions, PredictRequest, PredictResponse,
|
|
14
|
+
export { AddressLocation, FilterBy, FilterType, ListPredictionsRequest, ListPredictionsResponse, MatchedSubstrings, PredictOptions, PredictRequest, PredictResponse, Prediction, TextStructure, } from './atlas-v2-prediction-autocomplete.universal.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"atlas-v2-prediction-autocomplete.public.js","sourceRoot":"","sources":["../../../src/atlas-v2-prediction-autocomplete.public.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"atlas-v2-prediction-autocomplete.public.js","sourceRoot":"","sources":["../../../src/atlas-v2-prediction-autocomplete.public.ts"],"names":[],"mappings":";;;AACA,mHAIyD;AAE5C,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,YAAY,EAAE,CAAC;AAEzD,SAAgB,OAAO,CAAC,UAAsB;IAC5C,OAAO,CAAC,KAAa,EAAE,OAAwB,EAAE,EAAE,CACjD,IAAA,uDAAgB,EACd,KAAK,EACL,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,0BAQC;AAaD,iHAYyD;AATvD,2IAAA,UAAU,OAAA"}
|
|
@@ -78,22 +78,3 @@ export interface PredictRequest {
|
|
|
78
78
|
export interface PredictResponse {
|
|
79
79
|
predictions?: Prediction[];
|
|
80
80
|
}
|
|
81
|
-
interface MatchedSubstringsNonNullableFields {
|
|
82
|
-
length: number;
|
|
83
|
-
offset: number;
|
|
84
|
-
}
|
|
85
|
-
interface TextStructureNonNullableFields {
|
|
86
|
-
mainText: string;
|
|
87
|
-
secondaryText: string;
|
|
88
|
-
mainTextMatchedSubstrings: MatchedSubstringsNonNullableFields[];
|
|
89
|
-
}
|
|
90
|
-
interface PredictionNonNullableFields {
|
|
91
|
-
description: string;
|
|
92
|
-
searchId: string;
|
|
93
|
-
matchedSubstrings: MatchedSubstringsNonNullableFields[];
|
|
94
|
-
textStructure?: TextStructureNonNullableFields;
|
|
95
|
-
}
|
|
96
|
-
export interface PredictResponseNonNullableFields {
|
|
97
|
-
predictions: PredictionNonNullableFields[];
|
|
98
|
-
}
|
|
99
|
-
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { NonNullablePaths } from '@wix/sdk-types';
|
|
1
2
|
export interface Prediction {
|
|
2
3
|
/** The human-readable name of the prediction */
|
|
3
4
|
description?: string;
|
|
@@ -78,24 +79,7 @@ export interface PredictRequest {
|
|
|
78
79
|
export interface PredictResponse {
|
|
79
80
|
predictions?: Prediction[];
|
|
80
81
|
}
|
|
81
|
-
|
|
82
|
-
length: number;
|
|
83
|
-
offset: number;
|
|
84
|
-
}
|
|
85
|
-
interface TextStructureNonNullableFields {
|
|
86
|
-
mainText: string;
|
|
87
|
-
secondaryText: string;
|
|
88
|
-
mainTextMatchedSubstrings: MatchedSubstringsNonNullableFields[];
|
|
89
|
-
}
|
|
90
|
-
interface PredictionNonNullableFields {
|
|
91
|
-
description: string;
|
|
92
|
-
searchId: string;
|
|
93
|
-
matchedSubstrings: MatchedSubstringsNonNullableFields[];
|
|
94
|
-
textStructure?: TextStructureNonNullableFields;
|
|
95
|
-
}
|
|
96
|
-
export interface PredictResponseNonNullableFields {
|
|
97
|
-
predictions: PredictionNonNullableFields[];
|
|
98
|
-
}
|
|
82
|
+
type PredictionNonNullablePaths = `description` | `searchId` | `matchedSubstrings` | `matchedSubstrings.${number}.length` | `matchedSubstrings.${number}.offset` | `textStructure.mainText` | `textStructure.secondaryText` | `textStructure.mainTextMatchedSubstrings` | `textStructure.mainTextMatchedSubstrings.${number}.length` | `textStructure.mainTextMatchedSubstrings.${number}.offset`;
|
|
99
83
|
/**
|
|
100
84
|
* A Predict end-point take an input and returns an list of Prediction object.
|
|
101
85
|
* @param input - The text the predictions will be based on.
|
|
@@ -103,6 +87,8 @@ export interface PredictResponseNonNullableFields {
|
|
|
103
87
|
* @documentationMaturity preview
|
|
104
88
|
* @requiredField input
|
|
105
89
|
* @permissionId WIX_ATLAS.LIST_PREDICTIONS
|
|
90
|
+
* @permissionScope Manage Stores
|
|
91
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
106
92
|
* @permissionScope Manage Bookings Services and Settings
|
|
107
93
|
* @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
|
|
108
94
|
* @permissionScope Manage Events
|
|
@@ -121,7 +107,9 @@ export interface PredictResponseNonNullableFields {
|
|
|
121
107
|
* @applicableIdentity VISITOR
|
|
122
108
|
* @fqn com.wixpress.vi.atlas.service.v2.AutocompleteServiceV2.Predict
|
|
123
109
|
*/
|
|
124
|
-
export declare function predict(input: string, options?: PredictOptions): Promise<PredictResponse
|
|
110
|
+
export declare function predict(input: string, options?: PredictOptions): Promise<NonNullablePaths<PredictResponse, {
|
|
111
|
+
[P in PredictionNonNullablePaths]: `predictions.${number}.${P}`;
|
|
112
|
+
}[PredictionNonNullablePaths]>>;
|
|
125
113
|
export interface PredictOptions {
|
|
126
114
|
/** The origin point from which to calculate straight-line distance to the destination */
|
|
127
115
|
origin?: AddressLocation;
|
|
@@ -41,6 +41,8 @@ var FilterType;
|
|
|
41
41
|
* @documentationMaturity preview
|
|
42
42
|
* @requiredField input
|
|
43
43
|
* @permissionId WIX_ATLAS.LIST_PREDICTIONS
|
|
44
|
+
* @permissionScope Manage Stores
|
|
45
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
44
46
|
* @permissionScope Manage Bookings Services and Settings
|
|
45
47
|
* @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
|
|
46
48
|
* @permissionScope Manage Events
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"atlas-v2-prediction-autocomplete.universal.js","sourceRoot":"","sources":["../../../src/atlas-v2-prediction-autocomplete.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,2GAA6F;AAwD7F,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,yBAAyB;IACzB,mCAAqB,CAAA;IACrB,oDAAoD;IACpD,2CAA6B,CAAA;AAC/B,CAAC,EALW,UAAU,0BAAV,UAAU,QAKrB;
|
|
1
|
+
{"version":3,"file":"atlas-v2-prediction-autocomplete.universal.js","sourceRoot":"","sources":["../../../src/atlas-v2-prediction-autocomplete.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,2GAA6F;AAwD7F,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,yBAAyB;IACzB,mCAAqB,CAAA;IACrB,oDAAoD;IACpD,2CAA6B,CAAA;AAC/B,CAAC,EALW,UAAU,0BAAV,UAAU,QAKrB;AA2CD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACI,KAAK,UAAU,OAAO,CAC3B,KAAa,EACb,OAAwB;IASxB,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,IAAA,8DAAqC,EAAC;QACpD,KAAK,EAAE,KAAK;QACZ,MAAM,EAAE,OAAO,EAAE,MAAM;QACvB,QAAQ,EAAE,OAAO,EAAE,QAAQ;QAC3B,MAAM,EAAE,OAAO,EAAE,MAAM;QACvB,YAAY,EAAE,OAAO,EAAE,YAAY;QACnC,YAAY,EAAE,OAAO,EAAE,YAAY;KACpC,CAAC,CAAC;IAEH,MAAM,OAAO,GAAG,8BAA8B,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAEhE,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,KAAK,EAAE,MAAM;gBACb,MAAM,EAAE,aAAa;gBACrB,QAAQ,EAAE,eAAe;gBACzB,MAAM,EAAE,aAAa;gBACrB,YAAY,EAAE,mBAAmB;gBACjC,YAAY,EAAE,mBAAmB;aAClC;YACD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,OAAO,EAAE,SAAS,CAAC,CACrB,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AAvDD,0BAuDC"}
|
|
@@ -2,4 +2,4 @@ import { predict as publicPredict } from './atlas-v2-prediction-autocomplete.pub
|
|
|
2
2
|
import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
|
|
3
3
|
export declare const predict: MaybeContext<BuildRESTFunction<typeof publicPredict> & typeof publicPredict>;
|
|
4
4
|
export { FilterType } from './atlas-v2-prediction-autocomplete.universal.js';
|
|
5
|
-
export { Prediction, MatchedSubstrings, TextStructure, ListPredictionsRequest, AddressLocation, FilterBy, ListPredictionsResponse, PredictRequest, PredictResponse,
|
|
5
|
+
export { Prediction, MatchedSubstrings, TextStructure, ListPredictionsRequest, AddressLocation, FilterBy, ListPredictionsResponse, PredictRequest, PredictResponse, PredictOptions, } from './atlas-v2-prediction-autocomplete.universal.js';
|
|
@@ -10,4 +10,4 @@ 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 predict(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixAtlasV2PredictionUniversalTypes.PredictRequest, ambassadorWixAtlasV2PredictionTypes.PredictRequest, ambassadorWixAtlasV2PredictionUniversalTypes.PredictResponse
|
|
13
|
+
export declare function predict(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixAtlasV2PredictionUniversalTypes.PredictRequest, ambassadorWixAtlasV2PredictionTypes.PredictRequest, ambassadorWixAtlasV2PredictionUniversalTypes.PredictResponse, ambassadorWixAtlasV2PredictionTypes.PredictResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"atlas-v2-prediction-autocomplete.meta.js","sourceRoot":"","sources":["../../../src/atlas-v2-prediction-autocomplete.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,8BAA8B,MAAM,4CAA4C,CAAC;AAsB7F,MAAM,UAAU,OAAO;
|
|
1
|
+
{"version":3,"file":"atlas-v2-prediction-autocomplete.meta.js","sourceRoot":"","sources":["../../../src/atlas-v2-prediction-autocomplete.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,8BAA8B,MAAM,4CAA4C,CAAC;AAsB7F,MAAM,UAAU,OAAO;IAQrB,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GAAG,8BAA8B,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAE1E,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,aAAa;QACnB,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 { PredictOptions, PredictResponse
|
|
2
|
+
import { PredictOptions, PredictResponse } from './atlas-v2-prediction-autocomplete.universal.js';
|
|
3
3
|
export declare const __metadata: {
|
|
4
4
|
PACKAGE_NAME: string;
|
|
5
5
|
};
|
|
@@ -9,6 +9,6 @@ interface PredictSignature {
|
|
|
9
9
|
* A Predict end-point take an input and returns an list of Prediction object.
|
|
10
10
|
* @param - The text the predictions will be based on.
|
|
11
11
|
*/
|
|
12
|
-
(input: string, options?: PredictOptions | undefined): Promise<PredictResponse
|
|
12
|
+
(input: string, options?: PredictOptions | undefined): Promise<PredictResponse>;
|
|
13
13
|
}
|
|
14
|
-
export { AddressLocation, FilterBy, FilterType, ListPredictionsRequest, ListPredictionsResponse, MatchedSubstrings, PredictOptions, PredictRequest, PredictResponse,
|
|
14
|
+
export { AddressLocation, FilterBy, FilterType, ListPredictionsRequest, ListPredictionsResponse, MatchedSubstrings, PredictOptions, PredictRequest, PredictResponse, Prediction, TextStructure, } from './atlas-v2-prediction-autocomplete.universal.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"atlas-v2-prediction-autocomplete.public.js","sourceRoot":"","sources":["../../../src/atlas-v2-prediction-autocomplete.public.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"atlas-v2-prediction-autocomplete.public.js","sourceRoot":"","sources":["../../../src/atlas-v2-prediction-autocomplete.public.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,OAAO,IAAI,gBAAgB,GAC5B,MAAM,iDAAiD,CAAC;AAEzD,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,YAAY,EAAE,CAAC;AAEzD,MAAM,UAAU,OAAO,CAAC,UAAsB;IAC5C,OAAO,CAAC,KAAa,EAAE,OAAwB,EAAE,EAAE,CACjD,gBAAgB,CACd,KAAK,EACL,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAaD,OAAO,EAGL,UAAU,GASX,MAAM,iDAAiD,CAAC"}
|
|
@@ -78,22 +78,3 @@ export interface PredictRequest {
|
|
|
78
78
|
export interface PredictResponse {
|
|
79
79
|
predictions?: Prediction[];
|
|
80
80
|
}
|
|
81
|
-
interface MatchedSubstringsNonNullableFields {
|
|
82
|
-
length: number;
|
|
83
|
-
offset: number;
|
|
84
|
-
}
|
|
85
|
-
interface TextStructureNonNullableFields {
|
|
86
|
-
mainText: string;
|
|
87
|
-
secondaryText: string;
|
|
88
|
-
mainTextMatchedSubstrings: MatchedSubstringsNonNullableFields[];
|
|
89
|
-
}
|
|
90
|
-
interface PredictionNonNullableFields {
|
|
91
|
-
description: string;
|
|
92
|
-
searchId: string;
|
|
93
|
-
matchedSubstrings: MatchedSubstringsNonNullableFields[];
|
|
94
|
-
textStructure?: TextStructureNonNullableFields;
|
|
95
|
-
}
|
|
96
|
-
export interface PredictResponseNonNullableFields {
|
|
97
|
-
predictions: PredictionNonNullableFields[];
|
|
98
|
-
}
|
|
99
|
-
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { NonNullablePaths } from '@wix/sdk-types';
|
|
1
2
|
export interface Prediction {
|
|
2
3
|
/** The human-readable name of the prediction */
|
|
3
4
|
description?: string;
|
|
@@ -78,24 +79,7 @@ export interface PredictRequest {
|
|
|
78
79
|
export interface PredictResponse {
|
|
79
80
|
predictions?: Prediction[];
|
|
80
81
|
}
|
|
81
|
-
|
|
82
|
-
length: number;
|
|
83
|
-
offset: number;
|
|
84
|
-
}
|
|
85
|
-
interface TextStructureNonNullableFields {
|
|
86
|
-
mainText: string;
|
|
87
|
-
secondaryText: string;
|
|
88
|
-
mainTextMatchedSubstrings: MatchedSubstringsNonNullableFields[];
|
|
89
|
-
}
|
|
90
|
-
interface PredictionNonNullableFields {
|
|
91
|
-
description: string;
|
|
92
|
-
searchId: string;
|
|
93
|
-
matchedSubstrings: MatchedSubstringsNonNullableFields[];
|
|
94
|
-
textStructure?: TextStructureNonNullableFields;
|
|
95
|
-
}
|
|
96
|
-
export interface PredictResponseNonNullableFields {
|
|
97
|
-
predictions: PredictionNonNullableFields[];
|
|
98
|
-
}
|
|
82
|
+
type PredictionNonNullablePaths = `description` | `searchId` | `matchedSubstrings` | `matchedSubstrings.${number}.length` | `matchedSubstrings.${number}.offset` | `textStructure.mainText` | `textStructure.secondaryText` | `textStructure.mainTextMatchedSubstrings` | `textStructure.mainTextMatchedSubstrings.${number}.length` | `textStructure.mainTextMatchedSubstrings.${number}.offset`;
|
|
99
83
|
/**
|
|
100
84
|
* A Predict end-point take an input and returns an list of Prediction object.
|
|
101
85
|
* @param input - The text the predictions will be based on.
|
|
@@ -103,6 +87,8 @@ export interface PredictResponseNonNullableFields {
|
|
|
103
87
|
* @documentationMaturity preview
|
|
104
88
|
* @requiredField input
|
|
105
89
|
* @permissionId WIX_ATLAS.LIST_PREDICTIONS
|
|
90
|
+
* @permissionScope Manage Stores
|
|
91
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
106
92
|
* @permissionScope Manage Bookings Services and Settings
|
|
107
93
|
* @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
|
|
108
94
|
* @permissionScope Manage Events
|
|
@@ -121,7 +107,9 @@ export interface PredictResponseNonNullableFields {
|
|
|
121
107
|
* @applicableIdentity VISITOR
|
|
122
108
|
* @fqn com.wixpress.vi.atlas.service.v2.AutocompleteServiceV2.Predict
|
|
123
109
|
*/
|
|
124
|
-
export declare function predict(input: string, options?: PredictOptions): Promise<PredictResponse
|
|
110
|
+
export declare function predict(input: string, options?: PredictOptions): Promise<NonNullablePaths<PredictResponse, {
|
|
111
|
+
[P in PredictionNonNullablePaths]: `predictions.${number}.${P}`;
|
|
112
|
+
}[PredictionNonNullablePaths]>>;
|
|
125
113
|
export interface PredictOptions {
|
|
126
114
|
/** The origin point from which to calculate straight-line distance to the destination */
|
|
127
115
|
origin?: AddressLocation;
|
|
@@ -15,6 +15,8 @@ export var FilterType;
|
|
|
15
15
|
* @documentationMaturity preview
|
|
16
16
|
* @requiredField input
|
|
17
17
|
* @permissionId WIX_ATLAS.LIST_PREDICTIONS
|
|
18
|
+
* @permissionScope Manage Stores
|
|
19
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
18
20
|
* @permissionScope Manage Bookings Services and Settings
|
|
19
21
|
* @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
|
|
20
22
|
* @permissionScope Manage Events
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"atlas-v2-prediction-autocomplete.universal.js","sourceRoot":"","sources":["../../../src/atlas-v2-prediction-autocomplete.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,8BAA8B,MAAM,4CAA4C,CAAC;AAwD7F,MAAM,CAAN,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,yBAAyB;IACzB,mCAAqB,CAAA;IACrB,oDAAoD;IACpD,2CAA6B,CAAA;AAC/B,CAAC,EALW,UAAU,KAAV,UAAU,QAKrB;
|
|
1
|
+
{"version":3,"file":"atlas-v2-prediction-autocomplete.universal.js","sourceRoot":"","sources":["../../../src/atlas-v2-prediction-autocomplete.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,8BAA8B,MAAM,4CAA4C,CAAC;AAwD7F,MAAM,CAAN,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,yBAAyB;IACzB,mCAAqB,CAAA;IACrB,oDAAoD;IACpD,2CAA6B,CAAA;AAC/B,CAAC,EALW,UAAU,KAAV,UAAU,QAKrB;AA2CD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,CAAC,KAAK,UAAU,OAAO,CAC3B,KAAa,EACb,OAAwB;IASxB,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,qCAAqC,CAAC;QACpD,KAAK,EAAE,KAAK;QACZ,MAAM,EAAE,OAAO,EAAE,MAAM;QACvB,QAAQ,EAAE,OAAO,EAAE,QAAQ;QAC3B,MAAM,EAAE,OAAO,EAAE,MAAM;QACvB,YAAY,EAAE,OAAO,EAAE,YAAY;QACnC,YAAY,EAAE,OAAO,EAAE,YAAY;KACpC,CAAC,CAAC;IAEH,MAAM,OAAO,GAAG,8BAA8B,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAEhE,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;gBACxB,KAAK,EAAE,MAAM;gBACb,MAAM,EAAE,aAAa;gBACrB,QAAQ,EAAE,eAAe;gBACzB,MAAM,EAAE,aAAa;gBACrB,YAAY,EAAE,mBAAmB;gBACjC,YAAY,EAAE,mBAAmB;aAClC;YACD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,OAAO,EAAE,SAAS,CAAC,CACrB,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC"}
|
|
@@ -2,4 +2,4 @@ import { predict as publicPredict } from './atlas-v2-prediction-autocomplete.pub
|
|
|
2
2
|
import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
|
|
3
3
|
export declare const predict: MaybeContext<BuildRESTFunction<typeof publicPredict> & typeof publicPredict>;
|
|
4
4
|
export { FilterType } from './atlas-v2-prediction-autocomplete.universal.js';
|
|
5
|
-
export { Prediction, MatchedSubstrings, TextStructure, ListPredictionsRequest, AddressLocation, FilterBy, ListPredictionsResponse, PredictRequest, PredictResponse,
|
|
5
|
+
export { Prediction, MatchedSubstrings, TextStructure, ListPredictionsRequest, AddressLocation, FilterBy, ListPredictionsResponse, PredictRequest, PredictResponse, PredictOptions, } from './atlas-v2-prediction-autocomplete.universal.js';
|
|
@@ -10,4 +10,4 @@ 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 predict(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixAtlasV2PredictionUniversalTypes.PredictRequest, ambassadorWixAtlasV2PredictionTypes.PredictRequest, ambassadorWixAtlasV2PredictionUniversalTypes.PredictResponse
|
|
13
|
+
export declare function predict(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixAtlasV2PredictionUniversalTypes.PredictRequest, ambassadorWixAtlasV2PredictionTypes.PredictRequest, ambassadorWixAtlasV2PredictionUniversalTypes.PredictResponse, ambassadorWixAtlasV2PredictionTypes.PredictResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"atlas-v2-prediction-autocomplete.meta.js","sourceRoot":"","sources":["../../../../src/atlas-v2-prediction-autocomplete.meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2GAA6F;AAsB7F,SAAgB,OAAO;
|
|
1
|
+
{"version":3,"file":"atlas-v2-prediction-autocomplete.meta.js","sourceRoot":"","sources":["../../../../src/atlas-v2-prediction-autocomplete.meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2GAA6F;AAsB7F,SAAgB,OAAO;IAQrB,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GAAG,8BAA8B,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAE1E,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,aAAa;QACnB,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA3BD,0BA2BC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import { PredictOptions, PredictResponse
|
|
2
|
+
import { PredictOptions, PredictResponse } from './atlas-v2-prediction-autocomplete.universal.js';
|
|
3
3
|
export declare const __metadata: {
|
|
4
4
|
PACKAGE_NAME: string;
|
|
5
5
|
};
|
|
@@ -9,6 +9,6 @@ interface PredictSignature {
|
|
|
9
9
|
* A Predict end-point take an input and returns an list of Prediction object.
|
|
10
10
|
* @param - The text the predictions will be based on.
|
|
11
11
|
*/
|
|
12
|
-
(input: string, options?: PredictOptions | undefined): Promise<PredictResponse
|
|
12
|
+
(input: string, options?: PredictOptions | undefined): Promise<PredictResponse>;
|
|
13
13
|
}
|
|
14
|
-
export { AddressLocation, FilterBy, FilterType, ListPredictionsRequest, ListPredictionsResponse, MatchedSubstrings, PredictOptions, PredictRequest, PredictResponse,
|
|
14
|
+
export { AddressLocation, FilterBy, FilterType, ListPredictionsRequest, ListPredictionsResponse, MatchedSubstrings, PredictOptions, PredictRequest, PredictResponse, Prediction, TextStructure, } from './atlas-v2-prediction-autocomplete.universal.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"atlas-v2-prediction-autocomplete.public.js","sourceRoot":"","sources":["../../../../src/atlas-v2-prediction-autocomplete.public.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"atlas-v2-prediction-autocomplete.public.js","sourceRoot":"","sources":["../../../../src/atlas-v2-prediction-autocomplete.public.ts"],"names":[],"mappings":";;;AACA,mHAIyD;AAE5C,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,YAAY,EAAE,CAAC;AAEzD,SAAgB,OAAO,CAAC,UAAsB;IAC5C,OAAO,CAAC,KAAa,EAAE,OAAwB,EAAE,EAAE,CACjD,IAAA,uDAAgB,EACd,KAAK,EACL,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,0BAQC;AAaD,iHAYyD;AATvD,2IAAA,UAAU,OAAA"}
|
|
@@ -78,22 +78,3 @@ export interface PredictRequest {
|
|
|
78
78
|
export interface PredictResponse {
|
|
79
79
|
predictions?: Prediction[];
|
|
80
80
|
}
|
|
81
|
-
interface MatchedSubstringsNonNullableFields {
|
|
82
|
-
length: number;
|
|
83
|
-
offset: number;
|
|
84
|
-
}
|
|
85
|
-
interface TextStructureNonNullableFields {
|
|
86
|
-
mainText: string;
|
|
87
|
-
secondaryText: string;
|
|
88
|
-
mainTextMatchedSubstrings: MatchedSubstringsNonNullableFields[];
|
|
89
|
-
}
|
|
90
|
-
interface PredictionNonNullableFields {
|
|
91
|
-
description: string;
|
|
92
|
-
searchId: string;
|
|
93
|
-
matchedSubstrings: MatchedSubstringsNonNullableFields[];
|
|
94
|
-
textStructure?: TextStructureNonNullableFields;
|
|
95
|
-
}
|
|
96
|
-
export interface PredictResponseNonNullableFields {
|
|
97
|
-
predictions: PredictionNonNullableFields[];
|
|
98
|
-
}
|
|
99
|
-
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { NonNullablePaths } from '@wix/sdk-types';
|
|
1
2
|
export interface Prediction {
|
|
2
3
|
/** The human-readable name of the prediction */
|
|
3
4
|
description?: string;
|
|
@@ -78,24 +79,7 @@ export interface PredictRequest {
|
|
|
78
79
|
export interface PredictResponse {
|
|
79
80
|
predictions?: Prediction[];
|
|
80
81
|
}
|
|
81
|
-
|
|
82
|
-
length: number;
|
|
83
|
-
offset: number;
|
|
84
|
-
}
|
|
85
|
-
interface TextStructureNonNullableFields {
|
|
86
|
-
mainText: string;
|
|
87
|
-
secondaryText: string;
|
|
88
|
-
mainTextMatchedSubstrings: MatchedSubstringsNonNullableFields[];
|
|
89
|
-
}
|
|
90
|
-
interface PredictionNonNullableFields {
|
|
91
|
-
description: string;
|
|
92
|
-
searchId: string;
|
|
93
|
-
matchedSubstrings: MatchedSubstringsNonNullableFields[];
|
|
94
|
-
textStructure?: TextStructureNonNullableFields;
|
|
95
|
-
}
|
|
96
|
-
export interface PredictResponseNonNullableFields {
|
|
97
|
-
predictions: PredictionNonNullableFields[];
|
|
98
|
-
}
|
|
82
|
+
type PredictionNonNullablePaths = `description` | `searchId` | `matchedSubstrings` | `matchedSubstrings.${number}.length` | `matchedSubstrings.${number}.offset` | `textStructure.mainText` | `textStructure.secondaryText` | `textStructure.mainTextMatchedSubstrings` | `textStructure.mainTextMatchedSubstrings.${number}.length` | `textStructure.mainTextMatchedSubstrings.${number}.offset`;
|
|
99
83
|
/**
|
|
100
84
|
* A Predict end-point take an input and returns an list of Prediction object.
|
|
101
85
|
* @param input - The text the predictions will be based on.
|
|
@@ -103,6 +87,8 @@ export interface PredictResponseNonNullableFields {
|
|
|
103
87
|
* @documentationMaturity preview
|
|
104
88
|
* @requiredField input
|
|
105
89
|
* @permissionId WIX_ATLAS.LIST_PREDICTIONS
|
|
90
|
+
* @permissionScope Manage Stores
|
|
91
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
106
92
|
* @permissionScope Manage Bookings Services and Settings
|
|
107
93
|
* @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
|
|
108
94
|
* @permissionScope Manage Events
|
|
@@ -121,7 +107,9 @@ export interface PredictResponseNonNullableFields {
|
|
|
121
107
|
* @applicableIdentity VISITOR
|
|
122
108
|
* @fqn com.wixpress.vi.atlas.service.v2.AutocompleteServiceV2.Predict
|
|
123
109
|
*/
|
|
124
|
-
export declare function predict(input: string, options?: PredictOptions): Promise<PredictResponse
|
|
110
|
+
export declare function predict(input: string, options?: PredictOptions): Promise<NonNullablePaths<PredictResponse, {
|
|
111
|
+
[P in PredictionNonNullablePaths]: `predictions.${number}.${P}`;
|
|
112
|
+
}[PredictionNonNullablePaths]>>;
|
|
125
113
|
export interface PredictOptions {
|
|
126
114
|
/** The origin point from which to calculate straight-line distance to the destination */
|
|
127
115
|
origin?: AddressLocation;
|
|
@@ -41,6 +41,8 @@ var FilterType;
|
|
|
41
41
|
* @documentationMaturity preview
|
|
42
42
|
* @requiredField input
|
|
43
43
|
* @permissionId WIX_ATLAS.LIST_PREDICTIONS
|
|
44
|
+
* @permissionScope Manage Stores
|
|
45
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
44
46
|
* @permissionScope Manage Bookings Services and Settings
|
|
45
47
|
* @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
|
|
46
48
|
* @permissionScope Manage Events
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"atlas-v2-prediction-autocomplete.universal.js","sourceRoot":"","sources":["../../../../src/atlas-v2-prediction-autocomplete.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,2GAA6F;AAwD7F,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,yBAAyB;IACzB,mCAAqB,CAAA;IACrB,oDAAoD;IACpD,2CAA6B,CAAA;AAC/B,CAAC,EALW,UAAU,0BAAV,UAAU,QAKrB;
|
|
1
|
+
{"version":3,"file":"atlas-v2-prediction-autocomplete.universal.js","sourceRoot":"","sources":["../../../../src/atlas-v2-prediction-autocomplete.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,2GAA6F;AAwD7F,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,yBAAyB;IACzB,mCAAqB,CAAA;IACrB,oDAAoD;IACpD,2CAA6B,CAAA;AAC/B,CAAC,EALW,UAAU,0BAAV,UAAU,QAKrB;AA2CD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACI,KAAK,UAAU,OAAO,CAC3B,KAAa,EACb,OAAwB;IASxB,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,IAAA,8DAAqC,EAAC;QACpD,KAAK,EAAE,KAAK;QACZ,MAAM,EAAE,OAAO,EAAE,MAAM;QACvB,QAAQ,EAAE,OAAO,EAAE,QAAQ;QAC3B,MAAM,EAAE,OAAO,EAAE,MAAM;QACvB,YAAY,EAAE,OAAO,EAAE,YAAY;QACnC,YAAY,EAAE,OAAO,EAAE,YAAY;KACpC,CAAC,CAAC;IAEH,MAAM,OAAO,GAAG,8BAA8B,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAEhE,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,KAAK,EAAE,MAAM;gBACb,MAAM,EAAE,aAAa;gBACrB,QAAQ,EAAE,eAAe;gBACzB,MAAM,EAAE,aAAa;gBACrB,YAAY,EAAE,mBAAmB;gBACjC,YAAY,EAAE,mBAAmB;aAClC;YACD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,OAAO,EAAE,SAAS,CAAC,CACrB,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AAvDD,0BAuDC"}
|
|
@@ -2,4 +2,4 @@ import { predict as publicPredict } from './atlas-v2-prediction-autocomplete.pub
|
|
|
2
2
|
import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
|
|
3
3
|
export declare const predict: MaybeContext<BuildRESTFunction<typeof publicPredict> & typeof publicPredict>;
|
|
4
4
|
export { FilterType } from './atlas-v2-prediction-autocomplete.universal.js';
|
|
5
|
-
export { Prediction, MatchedSubstrings, TextStructure, ListPredictionsRequest, AddressLocation, FilterBy, ListPredictionsResponse, PredictRequest, PredictResponse,
|
|
5
|
+
export { Prediction, MatchedSubstrings, TextStructure, ListPredictionsRequest, AddressLocation, FilterBy, ListPredictionsResponse, PredictRequest, PredictResponse, PredictOptions, } from './atlas-v2-prediction-autocomplete.universal.js';
|
|
@@ -10,4 +10,4 @@ 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 predict(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixAtlasV2PredictionUniversalTypes.PredictRequest, ambassadorWixAtlasV2PredictionTypes.PredictRequest, ambassadorWixAtlasV2PredictionUniversalTypes.PredictResponse
|
|
13
|
+
export declare function predict(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixAtlasV2PredictionUniversalTypes.PredictRequest, ambassadorWixAtlasV2PredictionTypes.PredictRequest, ambassadorWixAtlasV2PredictionUniversalTypes.PredictResponse, ambassadorWixAtlasV2PredictionTypes.PredictResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"atlas-v2-prediction-autocomplete.meta.js","sourceRoot":"","sources":["../../../../src/atlas-v2-prediction-autocomplete.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,8BAA8B,MAAM,4CAA4C,CAAC;AAsB7F,MAAM,UAAU,OAAO;
|
|
1
|
+
{"version":3,"file":"atlas-v2-prediction-autocomplete.meta.js","sourceRoot":"","sources":["../../../../src/atlas-v2-prediction-autocomplete.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,8BAA8B,MAAM,4CAA4C,CAAC;AAsB7F,MAAM,UAAU,OAAO;IAQrB,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GAAG,8BAA8B,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAE1E,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,aAAa;QACnB,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 { PredictOptions, PredictResponse
|
|
2
|
+
import { PredictOptions, PredictResponse } from './atlas-v2-prediction-autocomplete.universal.js';
|
|
3
3
|
export declare const __metadata: {
|
|
4
4
|
PACKAGE_NAME: string;
|
|
5
5
|
};
|
|
@@ -9,6 +9,6 @@ interface PredictSignature {
|
|
|
9
9
|
* A Predict end-point take an input and returns an list of Prediction object.
|
|
10
10
|
* @param - The text the predictions will be based on.
|
|
11
11
|
*/
|
|
12
|
-
(input: string, options?: PredictOptions | undefined): Promise<PredictResponse
|
|
12
|
+
(input: string, options?: PredictOptions | undefined): Promise<PredictResponse>;
|
|
13
13
|
}
|
|
14
|
-
export { AddressLocation, FilterBy, FilterType, ListPredictionsRequest, ListPredictionsResponse, MatchedSubstrings, PredictOptions, PredictRequest, PredictResponse,
|
|
14
|
+
export { AddressLocation, FilterBy, FilterType, ListPredictionsRequest, ListPredictionsResponse, MatchedSubstrings, PredictOptions, PredictRequest, PredictResponse, Prediction, TextStructure, } from './atlas-v2-prediction-autocomplete.universal.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"atlas-v2-prediction-autocomplete.public.js","sourceRoot":"","sources":["../../../../src/atlas-v2-prediction-autocomplete.public.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"atlas-v2-prediction-autocomplete.public.js","sourceRoot":"","sources":["../../../../src/atlas-v2-prediction-autocomplete.public.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,OAAO,IAAI,gBAAgB,GAC5B,MAAM,iDAAiD,CAAC;AAEzD,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,YAAY,EAAE,CAAC;AAEzD,MAAM,UAAU,OAAO,CAAC,UAAsB;IAC5C,OAAO,CAAC,KAAa,EAAE,OAAwB,EAAE,EAAE,CACjD,gBAAgB,CACd,KAAK,EACL,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAaD,OAAO,EAGL,UAAU,GASX,MAAM,iDAAiD,CAAC"}
|
|
@@ -78,22 +78,3 @@ export interface PredictRequest {
|
|
|
78
78
|
export interface PredictResponse {
|
|
79
79
|
predictions?: Prediction[];
|
|
80
80
|
}
|
|
81
|
-
interface MatchedSubstringsNonNullableFields {
|
|
82
|
-
length: number;
|
|
83
|
-
offset: number;
|
|
84
|
-
}
|
|
85
|
-
interface TextStructureNonNullableFields {
|
|
86
|
-
mainText: string;
|
|
87
|
-
secondaryText: string;
|
|
88
|
-
mainTextMatchedSubstrings: MatchedSubstringsNonNullableFields[];
|
|
89
|
-
}
|
|
90
|
-
interface PredictionNonNullableFields {
|
|
91
|
-
description: string;
|
|
92
|
-
searchId: string;
|
|
93
|
-
matchedSubstrings: MatchedSubstringsNonNullableFields[];
|
|
94
|
-
textStructure?: TextStructureNonNullableFields;
|
|
95
|
-
}
|
|
96
|
-
export interface PredictResponseNonNullableFields {
|
|
97
|
-
predictions: PredictionNonNullableFields[];
|
|
98
|
-
}
|
|
99
|
-
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { NonNullablePaths } from '@wix/sdk-types';
|
|
1
2
|
export interface Prediction {
|
|
2
3
|
/** The human-readable name of the prediction */
|
|
3
4
|
description?: string;
|
|
@@ -78,24 +79,7 @@ export interface PredictRequest {
|
|
|
78
79
|
export interface PredictResponse {
|
|
79
80
|
predictions?: Prediction[];
|
|
80
81
|
}
|
|
81
|
-
|
|
82
|
-
length: number;
|
|
83
|
-
offset: number;
|
|
84
|
-
}
|
|
85
|
-
interface TextStructureNonNullableFields {
|
|
86
|
-
mainText: string;
|
|
87
|
-
secondaryText: string;
|
|
88
|
-
mainTextMatchedSubstrings: MatchedSubstringsNonNullableFields[];
|
|
89
|
-
}
|
|
90
|
-
interface PredictionNonNullableFields {
|
|
91
|
-
description: string;
|
|
92
|
-
searchId: string;
|
|
93
|
-
matchedSubstrings: MatchedSubstringsNonNullableFields[];
|
|
94
|
-
textStructure?: TextStructureNonNullableFields;
|
|
95
|
-
}
|
|
96
|
-
export interface PredictResponseNonNullableFields {
|
|
97
|
-
predictions: PredictionNonNullableFields[];
|
|
98
|
-
}
|
|
82
|
+
type PredictionNonNullablePaths = `description` | `searchId` | `matchedSubstrings` | `matchedSubstrings.${number}.length` | `matchedSubstrings.${number}.offset` | `textStructure.mainText` | `textStructure.secondaryText` | `textStructure.mainTextMatchedSubstrings` | `textStructure.mainTextMatchedSubstrings.${number}.length` | `textStructure.mainTextMatchedSubstrings.${number}.offset`;
|
|
99
83
|
/**
|
|
100
84
|
* A Predict end-point take an input and returns an list of Prediction object.
|
|
101
85
|
* @param input - The text the predictions will be based on.
|
|
@@ -103,6 +87,8 @@ export interface PredictResponseNonNullableFields {
|
|
|
103
87
|
* @documentationMaturity preview
|
|
104
88
|
* @requiredField input
|
|
105
89
|
* @permissionId WIX_ATLAS.LIST_PREDICTIONS
|
|
90
|
+
* @permissionScope Manage Stores
|
|
91
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
106
92
|
* @permissionScope Manage Bookings Services and Settings
|
|
107
93
|
* @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
|
|
108
94
|
* @permissionScope Manage Events
|
|
@@ -121,7 +107,9 @@ export interface PredictResponseNonNullableFields {
|
|
|
121
107
|
* @applicableIdentity VISITOR
|
|
122
108
|
* @fqn com.wixpress.vi.atlas.service.v2.AutocompleteServiceV2.Predict
|
|
123
109
|
*/
|
|
124
|
-
export declare function predict(input: string, options?: PredictOptions): Promise<PredictResponse
|
|
110
|
+
export declare function predict(input: string, options?: PredictOptions): Promise<NonNullablePaths<PredictResponse, {
|
|
111
|
+
[P in PredictionNonNullablePaths]: `predictions.${number}.${P}`;
|
|
112
|
+
}[PredictionNonNullablePaths]>>;
|
|
125
113
|
export interface PredictOptions {
|
|
126
114
|
/** The origin point from which to calculate straight-line distance to the destination */
|
|
127
115
|
origin?: AddressLocation;
|
|
@@ -15,6 +15,8 @@ export var FilterType;
|
|
|
15
15
|
* @documentationMaturity preview
|
|
16
16
|
* @requiredField input
|
|
17
17
|
* @permissionId WIX_ATLAS.LIST_PREDICTIONS
|
|
18
|
+
* @permissionScope Manage Stores
|
|
19
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
18
20
|
* @permissionScope Manage Bookings Services and Settings
|
|
19
21
|
* @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
|
|
20
22
|
* @permissionScope Manage Events
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"atlas-v2-prediction-autocomplete.universal.js","sourceRoot":"","sources":["../../../../src/atlas-v2-prediction-autocomplete.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,8BAA8B,MAAM,4CAA4C,CAAC;AAwD7F,MAAM,CAAN,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,yBAAyB;IACzB,mCAAqB,CAAA;IACrB,oDAAoD;IACpD,2CAA6B,CAAA;AAC/B,CAAC,EALW,UAAU,KAAV,UAAU,QAKrB;
|
|
1
|
+
{"version":3,"file":"atlas-v2-prediction-autocomplete.universal.js","sourceRoot":"","sources":["../../../../src/atlas-v2-prediction-autocomplete.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,8BAA8B,MAAM,4CAA4C,CAAC;AAwD7F,MAAM,CAAN,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,yBAAyB;IACzB,mCAAqB,CAAA;IACrB,oDAAoD;IACpD,2CAA6B,CAAA;AAC/B,CAAC,EALW,UAAU,KAAV,UAAU,QAKrB;AA2CD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,CAAC,KAAK,UAAU,OAAO,CAC3B,KAAa,EACb,OAAwB;IASxB,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,qCAAqC,CAAC;QACpD,KAAK,EAAE,KAAK;QACZ,MAAM,EAAE,OAAO,EAAE,MAAM;QACvB,QAAQ,EAAE,OAAO,EAAE,QAAQ;QAC3B,MAAM,EAAE,OAAO,EAAE,MAAM;QACvB,YAAY,EAAE,OAAO,EAAE,YAAY;QACnC,YAAY,EAAE,OAAO,EAAE,YAAY;KACpC,CAAC,CAAC;IAEH,MAAM,OAAO,GAAG,8BAA8B,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAEhE,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;gBACxB,KAAK,EAAE,MAAM;gBACb,MAAM,EAAE,aAAa;gBACrB,QAAQ,EAAE,eAAe;gBACzB,MAAM,EAAE,aAAa;gBACrB,YAAY,EAAE,mBAAmB;gBACjC,YAAY,EAAE,mBAAmB;aAClC;YACD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,OAAO,EAAE,SAAS,CAAC,CACrB,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_atlas_autocomplete",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
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.49",
|
|
32
|
+
"@wix/sdk-types": "^1.13.23"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"typescript": "^5.3.2"
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"fqdn": "wix.atlas.v2.prediction"
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
|
-
"falconPackageHash": "
|
|
51
|
+
"falconPackageHash": "351a845b8db0f704fea8de566cbc55159ec69448036aeb48736966df"
|
|
52
52
|
}
|