@wix/auto_sdk_atlas_autocomplete 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/build/cjs/{src/atlas-v2-prediction-autocomplete.types.d.ts → atlas-v2-prediction-autocomplete.universal-Bydmqyu-.d.ts} +30 -11
  2. package/build/cjs/index.d.ts +16 -1
  3. package/build/cjs/index.js +221 -15
  4. package/build/cjs/index.js.map +1 -1
  5. package/build/cjs/meta.d.ts +69 -1
  6. package/build/cjs/meta.js +177 -15
  7. package/build/cjs/meta.js.map +1 -1
  8. package/build/{internal/es/src/atlas-v2-prediction-autocomplete.types.d.ts → es/atlas-v2-prediction-autocomplete.universal-Bydmqyu-.d.mts} +30 -11
  9. package/build/es/index.d.mts +16 -0
  10. package/build/es/index.mjs +199 -0
  11. package/build/es/index.mjs.map +1 -0
  12. package/build/es/{src/atlas-v2-prediction-autocomplete.types.d.ts → meta.d.mts} +22 -33
  13. package/build/es/meta.mjs +153 -0
  14. package/build/es/meta.mjs.map +1 -0
  15. package/build/internal/cjs/atlas-v2-prediction-autocomplete.universal-Bydmqyu-.d.ts +99 -0
  16. package/build/internal/cjs/index.d.ts +16 -1
  17. package/build/internal/cjs/index.js +221 -15
  18. package/build/internal/cjs/index.js.map +1 -1
  19. package/build/internal/cjs/meta.d.ts +69 -1
  20. package/build/internal/cjs/meta.js +177 -15
  21. package/build/internal/cjs/meta.js.map +1 -1
  22. package/build/internal/es/atlas-v2-prediction-autocomplete.universal-Bydmqyu-.d.mts +99 -0
  23. package/build/internal/es/index.d.mts +16 -0
  24. package/build/internal/es/index.mjs +199 -0
  25. package/build/internal/es/index.mjs.map +1 -0
  26. package/build/internal/{cjs/src/atlas-v2-prediction-autocomplete.types.d.ts → es/meta.d.mts} +22 -33
  27. package/build/internal/es/meta.mjs +153 -0
  28. package/build/internal/es/meta.mjs.map +1 -0
  29. package/package.json +10 -9
  30. package/build/cjs/index.typings.d.ts +0 -1
  31. package/build/cjs/index.typings.js +0 -18
  32. package/build/cjs/index.typings.js.map +0 -1
  33. package/build/cjs/src/atlas-v2-prediction-autocomplete.context.d.ts +0 -5
  34. package/build/cjs/src/atlas-v2-prediction-autocomplete.context.js +0 -9
  35. package/build/cjs/src/atlas-v2-prediction-autocomplete.context.js.map +0 -1
  36. package/build/cjs/src/atlas-v2-prediction-autocomplete.http.d.ts +0 -3
  37. package/build/cjs/src/atlas-v2-prediction-autocomplete.http.js +0 -134
  38. package/build/cjs/src/atlas-v2-prediction-autocomplete.http.js.map +0 -1
  39. package/build/cjs/src/atlas-v2-prediction-autocomplete.meta.d.ts +0 -13
  40. package/build/cjs/src/atlas-v2-prediction-autocomplete.meta.js +0 -47
  41. package/build/cjs/src/atlas-v2-prediction-autocomplete.meta.js.map +0 -1
  42. package/build/cjs/src/atlas-v2-prediction-autocomplete.public.d.ts +0 -14
  43. package/build/cjs/src/atlas-v2-prediction-autocomplete.public.js +0 -14
  44. package/build/cjs/src/atlas-v2-prediction-autocomplete.public.js.map +0 -1
  45. package/build/cjs/src/atlas-v2-prediction-autocomplete.types.js +0 -11
  46. package/build/cjs/src/atlas-v2-prediction-autocomplete.types.js.map +0 -1
  47. package/build/cjs/src/atlas-v2-prediction-autocomplete.universal.d.ts +0 -128
  48. package/build/cjs/src/atlas-v2-prediction-autocomplete.universal.js +0 -100
  49. package/build/cjs/src/atlas-v2-prediction-autocomplete.universal.js.map +0 -1
  50. package/build/es/index.d.ts +0 -1
  51. package/build/es/index.js +0 -2
  52. package/build/es/index.js.map +0 -1
  53. package/build/es/index.typings.d.ts +0 -1
  54. package/build/es/index.typings.js +0 -2
  55. package/build/es/index.typings.js.map +0 -1
  56. package/build/es/meta.d.ts +0 -1
  57. package/build/es/meta.js +0 -2
  58. package/build/es/meta.js.map +0 -1
  59. package/build/es/src/atlas-v2-prediction-autocomplete.context.d.ts +0 -5
  60. package/build/es/src/atlas-v2-prediction-autocomplete.context.js +0 -5
  61. package/build/es/src/atlas-v2-prediction-autocomplete.context.js.map +0 -1
  62. package/build/es/src/atlas-v2-prediction-autocomplete.http.d.ts +0 -3
  63. package/build/es/src/atlas-v2-prediction-autocomplete.http.js +0 -130
  64. package/build/es/src/atlas-v2-prediction-autocomplete.http.js.map +0 -1
  65. package/build/es/src/atlas-v2-prediction-autocomplete.meta.d.ts +0 -13
  66. package/build/es/src/atlas-v2-prediction-autocomplete.meta.js +0 -20
  67. package/build/es/src/atlas-v2-prediction-autocomplete.meta.js.map +0 -1
  68. package/build/es/src/atlas-v2-prediction-autocomplete.public.d.ts +0 -14
  69. package/build/es/src/atlas-v2-prediction-autocomplete.public.js +0 -9
  70. package/build/es/src/atlas-v2-prediction-autocomplete.public.js.map +0 -1
  71. package/build/es/src/atlas-v2-prediction-autocomplete.types.js +0 -8
  72. package/build/es/src/atlas-v2-prediction-autocomplete.types.js.map +0 -1
  73. package/build/es/src/atlas-v2-prediction-autocomplete.universal.d.ts +0 -128
  74. package/build/es/src/atlas-v2-prediction-autocomplete.universal.js +0 -73
  75. package/build/es/src/atlas-v2-prediction-autocomplete.universal.js.map +0 -1
  76. package/build/internal/cjs/index.typings.d.ts +0 -1
  77. package/build/internal/cjs/index.typings.js +0 -18
  78. package/build/internal/cjs/index.typings.js.map +0 -1
  79. package/build/internal/cjs/src/atlas-v2-prediction-autocomplete.context.d.ts +0 -5
  80. package/build/internal/cjs/src/atlas-v2-prediction-autocomplete.context.js +0 -9
  81. package/build/internal/cjs/src/atlas-v2-prediction-autocomplete.context.js.map +0 -1
  82. package/build/internal/cjs/src/atlas-v2-prediction-autocomplete.http.d.ts +0 -3
  83. package/build/internal/cjs/src/atlas-v2-prediction-autocomplete.http.js +0 -134
  84. package/build/internal/cjs/src/atlas-v2-prediction-autocomplete.http.js.map +0 -1
  85. package/build/internal/cjs/src/atlas-v2-prediction-autocomplete.meta.d.ts +0 -13
  86. package/build/internal/cjs/src/atlas-v2-prediction-autocomplete.meta.js +0 -47
  87. package/build/internal/cjs/src/atlas-v2-prediction-autocomplete.meta.js.map +0 -1
  88. package/build/internal/cjs/src/atlas-v2-prediction-autocomplete.public.d.ts +0 -14
  89. package/build/internal/cjs/src/atlas-v2-prediction-autocomplete.public.js +0 -14
  90. package/build/internal/cjs/src/atlas-v2-prediction-autocomplete.public.js.map +0 -1
  91. package/build/internal/cjs/src/atlas-v2-prediction-autocomplete.types.js +0 -11
  92. package/build/internal/cjs/src/atlas-v2-prediction-autocomplete.types.js.map +0 -1
  93. package/build/internal/cjs/src/atlas-v2-prediction-autocomplete.universal.d.ts +0 -128
  94. package/build/internal/cjs/src/atlas-v2-prediction-autocomplete.universal.js +0 -100
  95. package/build/internal/cjs/src/atlas-v2-prediction-autocomplete.universal.js.map +0 -1
  96. package/build/internal/es/index.d.ts +0 -1
  97. package/build/internal/es/index.js +0 -2
  98. package/build/internal/es/index.js.map +0 -1
  99. package/build/internal/es/index.typings.d.ts +0 -1
  100. package/build/internal/es/index.typings.js +0 -2
  101. package/build/internal/es/index.typings.js.map +0 -1
  102. package/build/internal/es/meta.d.ts +0 -1
  103. package/build/internal/es/meta.js +0 -2
  104. package/build/internal/es/meta.js.map +0 -1
  105. package/build/internal/es/src/atlas-v2-prediction-autocomplete.context.d.ts +0 -5
  106. package/build/internal/es/src/atlas-v2-prediction-autocomplete.context.js +0 -5
  107. package/build/internal/es/src/atlas-v2-prediction-autocomplete.context.js.map +0 -1
  108. package/build/internal/es/src/atlas-v2-prediction-autocomplete.http.d.ts +0 -3
  109. package/build/internal/es/src/atlas-v2-prediction-autocomplete.http.js +0 -130
  110. package/build/internal/es/src/atlas-v2-prediction-autocomplete.http.js.map +0 -1
  111. package/build/internal/es/src/atlas-v2-prediction-autocomplete.meta.d.ts +0 -13
  112. package/build/internal/es/src/atlas-v2-prediction-autocomplete.meta.js +0 -20
  113. package/build/internal/es/src/atlas-v2-prediction-autocomplete.meta.js.map +0 -1
  114. package/build/internal/es/src/atlas-v2-prediction-autocomplete.public.d.ts +0 -14
  115. package/build/internal/es/src/atlas-v2-prediction-autocomplete.public.js +0 -9
  116. package/build/internal/es/src/atlas-v2-prediction-autocomplete.public.js.map +0 -1
  117. package/build/internal/es/src/atlas-v2-prediction-autocomplete.types.js +0 -8
  118. package/build/internal/es/src/atlas-v2-prediction-autocomplete.types.js.map +0 -1
  119. package/build/internal/es/src/atlas-v2-prediction-autocomplete.universal.d.ts +0 -128
  120. package/build/internal/es/src/atlas-v2-prediction-autocomplete.universal.js +0 -73
  121. package/build/internal/es/src/atlas-v2-prediction-autocomplete.universal.js.map +0 -1
@@ -1,47 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.predict = void 0;
27
- const ambassadorWixAtlasV2Prediction = __importStar(require("./atlas-v2-prediction-autocomplete.http.js"));
28
- function predict() {
29
- const payload = {};
30
- const getRequestOptions = ambassadorWixAtlasV2Prediction.predict(payload);
31
- const getUrl = (context) => {
32
- const { url } = getRequestOptions(context);
33
- return url;
34
- };
35
- return {
36
- getUrl,
37
- httpMethod: 'POST',
38
- path: '/v2/predict',
39
- pathParams: {},
40
- __requestType: null,
41
- __originalRequestType: null,
42
- __responseType: null,
43
- __originalResponseType: null,
44
- };
45
- }
46
- exports.predict = predict;
47
- //# sourceMappingURL=atlas-v2-prediction-autocomplete.meta.js.map
@@ -1 +0,0 @@
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,14 +0,0 @@
1
- import { HttpClient } from '@wix/sdk-types';
2
- import { PredictOptions, PredictResponse } from './atlas-v2-prediction-autocomplete.universal.js';
3
- export declare const __metadata: {
4
- PACKAGE_NAME: string;
5
- };
6
- export declare function predict(httpClient: HttpClient): PredictSignature;
7
- interface PredictSignature {
8
- /**
9
- * A Predict end-point take an input and returns an list of Prediction object.
10
- * @param - The text the predictions will be based on.
11
- */
12
- (input: string, options?: PredictOptions | undefined): Promise<PredictResponse>;
13
- }
14
- export { AddressLocation, FilterBy, FilterType, ListPredictionsRequest, ListPredictionsResponse, MatchedSubstrings, PredictOptions, PredictRequest, PredictResponse, Prediction, TextStructure, } from './atlas-v2-prediction-autocomplete.universal.js';
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FilterType = exports.predict = exports.__metadata = void 0;
4
- const atlas_v2_prediction_autocomplete_universal_js_1 = require("./atlas-v2-prediction-autocomplete.universal.js");
5
- exports.__metadata = { PACKAGE_NAME: '@wix/atlas' };
6
- function predict(httpClient) {
7
- return (input, options) => (0, atlas_v2_prediction_autocomplete_universal_js_1.predict)(input, options,
8
- // @ts-ignore
9
- { httpClient });
10
- }
11
- exports.predict = predict;
12
- var atlas_v2_prediction_autocomplete_universal_js_2 = require("./atlas-v2-prediction-autocomplete.universal.js");
13
- Object.defineProperty(exports, "FilterType", { enumerable: true, get: function () { return atlas_v2_prediction_autocomplete_universal_js_2.FilterType; } });
14
- //# sourceMappingURL=atlas-v2-prediction-autocomplete.public.js.map
@@ -1 +0,0 @@
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"}
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FilterType = void 0;
4
- var FilterType;
5
- (function (FilterType) {
6
- /** Filter by zip code */
7
- FilterType["zip_code"] = "zip_code";
8
- /** Filter by 2-letters or 3-letters country code */
9
- FilterType["country_code"] = "country_code";
10
- })(FilterType || (exports.FilterType = FilterType = {}));
11
- //# sourceMappingURL=atlas-v2-prediction-autocomplete.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"atlas-v2-prediction-autocomplete.types.js","sourceRoot":"","sources":["../../../../src/atlas-v2-prediction-autocomplete.types.ts"],"names":[],"mappings":";;;AAsDA,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,yBAAyB;IACzB,mCAAqB,CAAA;IACrB,oDAAoD;IACpD,2CAA6B,CAAA;AAC/B,CAAC,EALW,UAAU,0BAAV,UAAU,QAKrB"}
@@ -1,128 +0,0 @@
1
- import { NonNullablePaths } from '@wix/sdk-types';
2
- export interface Prediction {
3
- /** The human-readable name of the prediction */
4
- description?: string;
5
- /** The id of the prediction that can be use in place api. Available for short time. */
6
- searchId?: string;
7
- /** Contains an array with offset value and length. These describe the location of the entered term in the prediction result text, so that the term can be highlighted if desired */
8
- matchedSubstrings?: MatchedSubstrings[];
9
- /** Provides pre-formatted text that can be shown in your autocomplete results */
10
- textStructure?: TextStructure;
11
- /** Contains an integer indicating the straight-line distance between the predicted place, and the specified origin point, in meters. */
12
- distanceInMeters?: number | null;
13
- }
14
- export interface MatchedSubstrings {
15
- length?: number;
16
- offset?: number;
17
- }
18
- export interface TextStructure {
19
- /** Contains the main text of a prediction, usually the name of the place */
20
- mainText?: string;
21
- /** Contains the secondary text of a prediction, usually the location of the place */
22
- secondaryText?: string;
23
- /** Contains an array with offset value and length. These describe the location of the entered term in the prediction result text, so that the term can be highlighted if desired */
24
- mainTextMatchedSubstrings?: MatchedSubstrings[];
25
- }
26
- export interface ListPredictionsRequest {
27
- /** The text the predictions will be based on. */
28
- input?: string;
29
- /** The origin point from which to calculate straight-line distance to the destination */
30
- origin?: AddressLocation;
31
- /** The point around which you wish to retrieve place information */
32
- location?: AddressLocation;
33
- /** The acceptable distance from that location (in meters) */
34
- radius?: string | null;
35
- /** Filters the user can add in order to get more accurate results */
36
- filterBy?: FilterBy[];
37
- }
38
- export interface AddressLocation {
39
- /** Address latitude. */
40
- latitude?: number | null;
41
- /** Address longitude. */
42
- longitude?: number | null;
43
- }
44
- export interface FilterBy {
45
- /** One of the filter types enum */
46
- filterType?: FilterType;
47
- /** Free text like "us" */
48
- filterValue?: string;
49
- }
50
- export declare enum FilterType {
51
- /** Filter by zip code */
52
- zip_code = "zip_code",
53
- /** Filter by 2-letters or 3-letters country code */
54
- country_code = "country_code"
55
- }
56
- export interface ListPredictionsResponse {
57
- predictions?: Prediction[];
58
- }
59
- export interface PredictRequest {
60
- /**
61
- * The text the predictions will be based on.
62
- * @minLength 1
63
- */
64
- input: string;
65
- /** The origin point from which to calculate straight-line distance to the destination */
66
- origin?: AddressLocation;
67
- /** The point around which you wish to retrieve place information */
68
- location?: AddressLocation;
69
- /** The acceptable distance from that location (in meters) */
70
- radius?: string | null;
71
- /** alpha-2 or alpha-3 ISO-3166 country codes to filter by */
72
- countryCodes?: string[];
73
- /**
74
- * A random string which identifies an autocomplete session for billing purposes. The session begins when the user starts typing a query, and concludes when they select a place and a call to Get Place is made. Once a session has concluded, the token is no longer valid. your app must generate a fresh token for each session.
75
- * @format GUID
76
- */
77
- sessionToken?: string | null;
78
- }
79
- export interface PredictResponse {
80
- predictions?: Prediction[];
81
- }
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`;
83
- /**
84
- * A Predict end-point take an input and returns an list of Prediction object.
85
- * @param input - The text the predictions will be based on.
86
- * @public
87
- * @documentationMaturity preview
88
- * @requiredField input
89
- * @permissionId WIX_ATLAS.LIST_PREDICTIONS
90
- * @permissionScope Manage Stores
91
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
92
- * @permissionScope Manage Bookings Services and Settings
93
- * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
94
- * @permissionScope Manage Events
95
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
96
- * @permissionScope Manage Challenges
97
- * @permissionScopeId SCOPE.CHALLENGES.MANAGE
98
- * @permissionScope Manage Portfolio
99
- * @permissionScopeId SCOPE.PORTFOLIO.MANAGE-PORTFOLIO
100
- * @permissionScope Access Verticals by Automations
101
- * @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
102
- * @permissionScope Manage Restaurants - all permissions
103
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
104
- * @permissionScope Set Up Automations
105
- * @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
106
- * @applicableIdentity APP
107
- * @applicableIdentity VISITOR
108
- * @fqn com.wixpress.vi.atlas.service.v2.AutocompleteServiceV2.Predict
109
- */
110
- export declare function predict(input: string, options?: PredictOptions): Promise<NonNullablePaths<PredictResponse, {
111
- [P in PredictionNonNullablePaths]: `predictions.${number}.${P}`;
112
- }[PredictionNonNullablePaths]>>;
113
- export interface PredictOptions {
114
- /** The origin point from which to calculate straight-line distance to the destination */
115
- origin?: AddressLocation;
116
- /** The point around which you wish to retrieve place information */
117
- location?: AddressLocation;
118
- /** The acceptable distance from that location (in meters) */
119
- radius?: string | null;
120
- /** alpha-2 or alpha-3 ISO-3166 country codes to filter by */
121
- countryCodes?: string[];
122
- /**
123
- * A random string which identifies an autocomplete session for billing purposes. The session begins when the user starts typing a query, and concludes when they select a place and a call to Get Place is made. Once a session has concluded, the token is no longer valid. your app must generate a fresh token for each session.
124
- * @format GUID
125
- */
126
- sessionToken?: string | null;
127
- }
128
- export {};
@@ -1,100 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.predict = exports.FilterType = void 0;
27
- const transform_error_1 = require("@wix/sdk-runtime/transform-error");
28
- const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
29
- const ambassadorWixAtlasV2Prediction = __importStar(require("./atlas-v2-prediction-autocomplete.http.js"));
30
- var FilterType;
31
- (function (FilterType) {
32
- /** Filter by zip code */
33
- FilterType["zip_code"] = "zip_code";
34
- /** Filter by 2-letters or 3-letters country code */
35
- FilterType["country_code"] = "country_code";
36
- })(FilterType || (exports.FilterType = FilterType = {}));
37
- /**
38
- * A Predict end-point take an input and returns an list of Prediction object.
39
- * @param input - The text the predictions will be based on.
40
- * @public
41
- * @documentationMaturity preview
42
- * @requiredField input
43
- * @permissionId WIX_ATLAS.LIST_PREDICTIONS
44
- * @permissionScope Manage Stores
45
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
46
- * @permissionScope Manage Bookings Services and Settings
47
- * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
48
- * @permissionScope Manage Events
49
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
50
- * @permissionScope Manage Challenges
51
- * @permissionScopeId SCOPE.CHALLENGES.MANAGE
52
- * @permissionScope Manage Portfolio
53
- * @permissionScopeId SCOPE.PORTFOLIO.MANAGE-PORTFOLIO
54
- * @permissionScope Access Verticals by Automations
55
- * @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
56
- * @permissionScope Manage Restaurants - all permissions
57
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
58
- * @permissionScope Set Up Automations
59
- * @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
60
- * @applicableIdentity APP
61
- * @applicableIdentity VISITOR
62
- * @fqn com.wixpress.vi.atlas.service.v2.AutocompleteServiceV2.Predict
63
- */
64
- async function predict(input, options) {
65
- // @ts-ignore
66
- const { httpClient, sideEffects } = arguments[2];
67
- const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
68
- input: input,
69
- origin: options?.origin,
70
- location: options?.location,
71
- radius: options?.radius,
72
- countryCodes: options?.countryCodes,
73
- sessionToken: options?.sessionToken,
74
- });
75
- const reqOpts = ambassadorWixAtlasV2Prediction.predict(payload);
76
- sideEffects?.onSiteCall?.();
77
- try {
78
- const result = await httpClient.request(reqOpts);
79
- sideEffects?.onSuccess?.(result);
80
- return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
81
- }
82
- catch (err) {
83
- const transformedError = (0, transform_error_1.transformError)(err, {
84
- spreadPathsToArguments: {},
85
- explicitPathsToArguments: {
86
- input: '$[0]',
87
- origin: '$[1].origin',
88
- location: '$[1].location',
89
- radius: '$[1].radius',
90
- countryCodes: '$[1].countryCodes',
91
- sessionToken: '$[1].sessionToken',
92
- },
93
- singleArgumentUnchanged: false,
94
- }, ['input', 'options']);
95
- sideEffects?.onError?.(err);
96
- throw transformedError;
97
- }
98
- }
99
- exports.predict = predict;
100
- //# sourceMappingURL=atlas-v2-prediction-autocomplete.universal.js.map
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
1
- export * from './src/atlas-v2-prediction-autocomplete.context.js';
@@ -1,2 +0,0 @@
1
- export * from './src/atlas-v2-prediction-autocomplete.context.js';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../index.ts"],"names":[],"mappings":"AAAA,cAAc,mDAAmD,CAAC"}
@@ -1 +0,0 @@
1
- export * from './src/atlas-v2-prediction-autocomplete.universal.js';
@@ -1,2 +0,0 @@
1
- export * from './src/atlas-v2-prediction-autocomplete.universal.js';
2
- //# sourceMappingURL=index.typings.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../../index.typings.ts"],"names":[],"mappings":"AAAA,cAAc,qDAAqD,CAAC"}
@@ -1 +0,0 @@
1
- export * from './src/atlas-v2-prediction-autocomplete.meta.js';
@@ -1,2 +0,0 @@
1
- export * from './src/atlas-v2-prediction-autocomplete.meta.js';
2
- //# sourceMappingURL=meta.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../meta.ts"],"names":[],"mappings":"AAAA,cAAc,gDAAgD,CAAC"}
@@ -1,5 +0,0 @@
1
- import { predict as publicPredict } from './atlas-v2-prediction-autocomplete.public.js';
2
- import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
3
- export declare const predict: MaybeContext<BuildRESTFunction<typeof publicPredict> & typeof publicPredict>;
4
- export { FilterType } from './atlas-v2-prediction-autocomplete.universal.js';
5
- export { Prediction, MatchedSubstrings, TextStructure, ListPredictionsRequest, AddressLocation, FilterBy, ListPredictionsResponse, PredictRequest, PredictResponse, PredictOptions, } from './atlas-v2-prediction-autocomplete.universal.js';
@@ -1,5 +0,0 @@
1
- import { predict as publicPredict } from './atlas-v2-prediction-autocomplete.public.js';
2
- import { createRESTModule } from '@wix/sdk-runtime/rest-modules';
3
- export const predict = /*#__PURE__*/ createRESTModule(publicPredict);
4
- export { FilterType } from './atlas-v2-prediction-autocomplete.universal.js';
5
- //# sourceMappingURL=atlas-v2-prediction-autocomplete.context.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"atlas-v2-prediction-autocomplete.context.js","sourceRoot":"","sources":["../../../../src/atlas-v2-prediction-autocomplete.context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,8CAA8C,CAAC;AACxF,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGjE,MAAM,CAAC,MAAM,OAAO,GAEhB,aAAa,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;AAElD,OAAO,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC"}
@@ -1,3 +0,0 @@
1
- import { RequestOptionsFactory } from '@wix/sdk-types';
2
- /** A Predict end-point take an input and returns an list of Prediction object. */
3
- export declare function predict(payload: object): RequestOptionsFactory<any>;
@@ -1,130 +0,0 @@
1
- import { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';
2
- import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
3
- import { resolveUrl } from '@wix/sdk-runtime/rest-modules';
4
- function resolveComWixpressViAtlasServiceV2AutocompleteServiceV2Url(opts) {
5
- const domainToMappings = {
6
- 'api._api_base_domain_': [
7
- {
8
- srcPath: '/wix-atlas-service-web',
9
- destPath: '',
10
- },
11
- ],
12
- 'bo._base_domain_': [
13
- {
14
- srcPath: '/wix-atlas-service-web',
15
- destPath: '',
16
- },
17
- ],
18
- 'wixbo.ai': [
19
- {
20
- srcPath: '/wix-atlas-service-web',
21
- destPath: '',
22
- },
23
- ],
24
- 'wix-bo.com': [
25
- {
26
- srcPath: '/wix-atlas-service-web',
27
- destPath: '',
28
- },
29
- ],
30
- _: [
31
- {
32
- srcPath: '/api/wix-atlas-service-web',
33
- destPath: '',
34
- },
35
- {
36
- srcPath: '/_api/wix-atlas-service-web',
37
- destPath: '',
38
- },
39
- ],
40
- 'www._base_domain_': [
41
- {
42
- srcPath: '/wix-atlas-service-web',
43
- destPath: '',
44
- },
45
- {
46
- srcPath: '/_api/wix-atlas-service-web',
47
- destPath: '',
48
- },
49
- {
50
- srcPath: '/api/wix-atlas-service-web',
51
- destPath: '',
52
- },
53
- ],
54
- 'manage._base_domain_': [
55
- {
56
- srcPath: '/wix-atlas-service-web',
57
- destPath: '',
58
- },
59
- ],
60
- 'editor._base_domain_': [
61
- {
62
- srcPath: '/wix-atlas-service-web',
63
- destPath: '',
64
- },
65
- {
66
- srcPath: '/api/wix-atlas-service-web',
67
- destPath: '',
68
- },
69
- ],
70
- 'blocks._base_domain_': [
71
- {
72
- srcPath: '/wix-atlas-service-web',
73
- destPath: '',
74
- },
75
- {
76
- srcPath: '/api/wix-atlas-service-web',
77
- destPath: '',
78
- },
79
- ],
80
- 'create.editorx': [
81
- {
82
- srcPath: '/wix-atlas-service-web',
83
- destPath: '',
84
- },
85
- {
86
- srcPath: '/api/wix-atlas-service-web',
87
- destPath: '',
88
- },
89
- ],
90
- 'editor.wixapps.net': [
91
- {
92
- srcPath: '/api/wix-atlas-service-web',
93
- destPath: '',
94
- },
95
- ],
96
- };
97
- return resolveUrl(Object.assign(opts, { domainToMappings }));
98
- }
99
- const PACKAGE_NAME = '@wix/auto_sdk_atlas_autocomplete';
100
- /** A Predict end-point take an input and returns an list of Prediction object. */
101
- export function predict(payload) {
102
- function __predict({ host }) {
103
- const serializedData = transformPaths(payload, [
104
- {
105
- transformFn: transformSDKFloatToRESTFloat,
106
- paths: [
107
- { path: 'origin.latitude' },
108
- { path: 'origin.longitude' },
109
- { path: 'location.latitude' },
110
- { path: 'location.longitude' },
111
- ],
112
- },
113
- ]);
114
- const metadata = {
115
- entityFqdn: 'wix.atlas.v2.prediction',
116
- method: 'POST',
117
- methodFqn: 'com.wixpress.vi.atlas.service.v2.AutocompleteServiceV2.Predict',
118
- packageName: PACKAGE_NAME,
119
- url: resolveComWixpressViAtlasServiceV2AutocompleteServiceV2Url({
120
- protoPath: '/v2/predict',
121
- data: serializedData,
122
- host,
123
- }),
124
- data: serializedData,
125
- };
126
- return metadata;
127
- }
128
- return __predict;
129
- }
130
- //# sourceMappingURL=atlas-v2-prediction-autocomplete.http.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"atlas-v2-prediction-autocomplete.http.js","sourceRoot":"","sources":["../../../../src/atlas-v2-prediction-autocomplete.http.ts"],"names":[],"mappings":"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"}
@@ -1,13 +0,0 @@
1
- import * as ambassadorWixAtlasV2PredictionTypes from './atlas-v2-prediction-autocomplete.types.js';
2
- import * as ambassadorWixAtlasV2PredictionUniversalTypes from './atlas-v2-prediction-autocomplete.universal.js';
3
- export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
4
- getUrl: (context: any) => string;
5
- httpMethod: K;
6
- path: string;
7
- pathParams: M;
8
- __requestType: T;
9
- __originalRequestType: S;
10
- __responseType: Q;
11
- __originalResponseType: R;
12
- };
13
- export declare function predict(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixAtlasV2PredictionUniversalTypes.PredictRequest, ambassadorWixAtlasV2PredictionTypes.PredictRequest, ambassadorWixAtlasV2PredictionUniversalTypes.PredictResponse, ambassadorWixAtlasV2PredictionTypes.PredictResponse>;
@@ -1,20 +0,0 @@
1
- import * as ambassadorWixAtlasV2Prediction from './atlas-v2-prediction-autocomplete.http.js';
2
- export function predict() {
3
- const payload = {};
4
- const getRequestOptions = ambassadorWixAtlasV2Prediction.predict(payload);
5
- const getUrl = (context) => {
6
- const { url } = getRequestOptions(context);
7
- return url;
8
- };
9
- return {
10
- getUrl,
11
- httpMethod: 'POST',
12
- path: '/v2/predict',
13
- pathParams: {},
14
- __requestType: null,
15
- __originalRequestType: null,
16
- __responseType: null,
17
- __originalResponseType: null,
18
- };
19
- }
20
- //# sourceMappingURL=atlas-v2-prediction-autocomplete.meta.js.map
@@ -1 +0,0 @@
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,14 +0,0 @@
1
- import { HttpClient } from '@wix/sdk-types';
2
- import { PredictOptions, PredictResponse } from './atlas-v2-prediction-autocomplete.universal.js';
3
- export declare const __metadata: {
4
- PACKAGE_NAME: string;
5
- };
6
- export declare function predict(httpClient: HttpClient): PredictSignature;
7
- interface PredictSignature {
8
- /**
9
- * A Predict end-point take an input and returns an list of Prediction object.
10
- * @param - The text the predictions will be based on.
11
- */
12
- (input: string, options?: PredictOptions | undefined): Promise<PredictResponse>;
13
- }
14
- export { AddressLocation, FilterBy, FilterType, ListPredictionsRequest, ListPredictionsResponse, MatchedSubstrings, PredictOptions, PredictRequest, PredictResponse, Prediction, TextStructure, } from './atlas-v2-prediction-autocomplete.universal.js';
@@ -1,9 +0,0 @@
1
- import { predict as universalPredict, } from './atlas-v2-prediction-autocomplete.universal.js';
2
- export const __metadata = { PACKAGE_NAME: '@wix/atlas' };
3
- export function predict(httpClient) {
4
- return (input, options) => universalPredict(input, options,
5
- // @ts-ignore
6
- { httpClient });
7
- }
8
- export { FilterType, } from './atlas-v2-prediction-autocomplete.universal.js';
9
- //# sourceMappingURL=atlas-v2-prediction-autocomplete.public.js.map
@@ -1 +0,0 @@
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"}
@@ -1,8 +0,0 @@
1
- export var FilterType;
2
- (function (FilterType) {
3
- /** Filter by zip code */
4
- FilterType["zip_code"] = "zip_code";
5
- /** Filter by 2-letters or 3-letters country code */
6
- FilterType["country_code"] = "country_code";
7
- })(FilterType || (FilterType = {}));
8
- //# sourceMappingURL=atlas-v2-prediction-autocomplete.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"atlas-v2-prediction-autocomplete.types.js","sourceRoot":"","sources":["../../../../src/atlas-v2-prediction-autocomplete.types.ts"],"names":[],"mappings":"AAsDA,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"}