@wix/auto_sdk_atlas_autocomplete 1.0.1 → 1.0.3

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 (123) hide show
  1. package/build/cjs/index.d.ts +19 -1
  2. package/build/cjs/index.js +227 -15
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +116 -1
  5. package/build/cjs/index.typings.js +213 -15
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +70 -1
  8. package/build/cjs/meta.js +183 -15
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +19 -0
  11. package/build/es/index.mjs +205 -0
  12. package/build/es/index.mjs.map +1 -0
  13. package/build/{internal/cjs/src/atlas-v2-prediction-autocomplete.universal.d.ts → es/index.typings.d.mts} +18 -30
  14. package/build/es/index.typings.mjs +191 -0
  15. package/build/es/index.typings.mjs.map +1 -0
  16. package/build/es/{src/atlas-v2-prediction-autocomplete.types.d.ts → meta.d.mts} +23 -33
  17. package/build/es/meta.mjs +159 -0
  18. package/build/es/meta.mjs.map +1 -0
  19. package/build/internal/cjs/index.d.ts +19 -1
  20. package/build/internal/cjs/index.js +227 -15
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +116 -1
  23. package/build/internal/cjs/index.typings.js +213 -15
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +70 -1
  26. package/build/internal/cjs/meta.js +183 -15
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +19 -0
  29. package/build/internal/es/index.mjs +205 -0
  30. package/build/internal/es/index.mjs.map +1 -0
  31. package/build/internal/es/{src/atlas-v2-prediction-autocomplete.universal.d.ts → index.typings.d.mts} +18 -30
  32. package/build/internal/es/index.typings.mjs +191 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -0
  34. package/build/internal/{cjs/src/atlas-v2-prediction-autocomplete.types.d.ts → es/meta.d.mts} +23 -33
  35. package/build/internal/es/meta.mjs +159 -0
  36. package/build/internal/es/meta.mjs.map +1 -0
  37. package/package.json +11 -10
  38. package/build/cjs/src/atlas-v2-prediction-autocomplete.context.d.ts +0 -5
  39. package/build/cjs/src/atlas-v2-prediction-autocomplete.context.js +0 -9
  40. package/build/cjs/src/atlas-v2-prediction-autocomplete.context.js.map +0 -1
  41. package/build/cjs/src/atlas-v2-prediction-autocomplete.http.d.ts +0 -3
  42. package/build/cjs/src/atlas-v2-prediction-autocomplete.http.js +0 -134
  43. package/build/cjs/src/atlas-v2-prediction-autocomplete.http.js.map +0 -1
  44. package/build/cjs/src/atlas-v2-prediction-autocomplete.meta.d.ts +0 -13
  45. package/build/cjs/src/atlas-v2-prediction-autocomplete.meta.js +0 -47
  46. package/build/cjs/src/atlas-v2-prediction-autocomplete.meta.js.map +0 -1
  47. package/build/cjs/src/atlas-v2-prediction-autocomplete.public.d.ts +0 -14
  48. package/build/cjs/src/atlas-v2-prediction-autocomplete.public.js +0 -14
  49. package/build/cjs/src/atlas-v2-prediction-autocomplete.public.js.map +0 -1
  50. package/build/cjs/src/atlas-v2-prediction-autocomplete.types.d.ts +0 -80
  51. package/build/cjs/src/atlas-v2-prediction-autocomplete.types.js +0 -11
  52. package/build/cjs/src/atlas-v2-prediction-autocomplete.types.js.map +0 -1
  53. package/build/cjs/src/atlas-v2-prediction-autocomplete.universal.d.ts +0 -128
  54. package/build/cjs/src/atlas-v2-prediction-autocomplete.universal.js +0 -100
  55. package/build/cjs/src/atlas-v2-prediction-autocomplete.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/src/atlas-v2-prediction-autocomplete.context.d.ts +0 -5
  66. package/build/es/src/atlas-v2-prediction-autocomplete.context.js +0 -5
  67. package/build/es/src/atlas-v2-prediction-autocomplete.context.js.map +0 -1
  68. package/build/es/src/atlas-v2-prediction-autocomplete.http.d.ts +0 -3
  69. package/build/es/src/atlas-v2-prediction-autocomplete.http.js +0 -130
  70. package/build/es/src/atlas-v2-prediction-autocomplete.http.js.map +0 -1
  71. package/build/es/src/atlas-v2-prediction-autocomplete.meta.d.ts +0 -13
  72. package/build/es/src/atlas-v2-prediction-autocomplete.meta.js +0 -20
  73. package/build/es/src/atlas-v2-prediction-autocomplete.meta.js.map +0 -1
  74. package/build/es/src/atlas-v2-prediction-autocomplete.public.d.ts +0 -14
  75. package/build/es/src/atlas-v2-prediction-autocomplete.public.js +0 -9
  76. package/build/es/src/atlas-v2-prediction-autocomplete.public.js.map +0 -1
  77. package/build/es/src/atlas-v2-prediction-autocomplete.types.js +0 -8
  78. package/build/es/src/atlas-v2-prediction-autocomplete.types.js.map +0 -1
  79. package/build/es/src/atlas-v2-prediction-autocomplete.universal.d.ts +0 -128
  80. package/build/es/src/atlas-v2-prediction-autocomplete.universal.js +0 -73
  81. package/build/es/src/atlas-v2-prediction-autocomplete.universal.js.map +0 -1
  82. package/build/internal/cjs/src/atlas-v2-prediction-autocomplete.context.d.ts +0 -5
  83. package/build/internal/cjs/src/atlas-v2-prediction-autocomplete.context.js +0 -9
  84. package/build/internal/cjs/src/atlas-v2-prediction-autocomplete.context.js.map +0 -1
  85. package/build/internal/cjs/src/atlas-v2-prediction-autocomplete.http.d.ts +0 -3
  86. package/build/internal/cjs/src/atlas-v2-prediction-autocomplete.http.js +0 -134
  87. package/build/internal/cjs/src/atlas-v2-prediction-autocomplete.http.js.map +0 -1
  88. package/build/internal/cjs/src/atlas-v2-prediction-autocomplete.meta.d.ts +0 -13
  89. package/build/internal/cjs/src/atlas-v2-prediction-autocomplete.meta.js +0 -47
  90. package/build/internal/cjs/src/atlas-v2-prediction-autocomplete.meta.js.map +0 -1
  91. package/build/internal/cjs/src/atlas-v2-prediction-autocomplete.public.d.ts +0 -14
  92. package/build/internal/cjs/src/atlas-v2-prediction-autocomplete.public.js +0 -14
  93. package/build/internal/cjs/src/atlas-v2-prediction-autocomplete.public.js.map +0 -1
  94. package/build/internal/cjs/src/atlas-v2-prediction-autocomplete.types.js +0 -11
  95. package/build/internal/cjs/src/atlas-v2-prediction-autocomplete.types.js.map +0 -1
  96. package/build/internal/cjs/src/atlas-v2-prediction-autocomplete.universal.js +0 -100
  97. package/build/internal/cjs/src/atlas-v2-prediction-autocomplete.universal.js.map +0 -1
  98. package/build/internal/es/index.d.ts +0 -1
  99. package/build/internal/es/index.js +0 -2
  100. package/build/internal/es/index.js.map +0 -1
  101. package/build/internal/es/index.typings.d.ts +0 -1
  102. package/build/internal/es/index.typings.js +0 -2
  103. package/build/internal/es/index.typings.js.map +0 -1
  104. package/build/internal/es/meta.d.ts +0 -1
  105. package/build/internal/es/meta.js +0 -2
  106. package/build/internal/es/meta.js.map +0 -1
  107. package/build/internal/es/src/atlas-v2-prediction-autocomplete.context.d.ts +0 -5
  108. package/build/internal/es/src/atlas-v2-prediction-autocomplete.context.js +0 -5
  109. package/build/internal/es/src/atlas-v2-prediction-autocomplete.context.js.map +0 -1
  110. package/build/internal/es/src/atlas-v2-prediction-autocomplete.http.d.ts +0 -3
  111. package/build/internal/es/src/atlas-v2-prediction-autocomplete.http.js +0 -130
  112. package/build/internal/es/src/atlas-v2-prediction-autocomplete.http.js.map +0 -1
  113. package/build/internal/es/src/atlas-v2-prediction-autocomplete.meta.d.ts +0 -13
  114. package/build/internal/es/src/atlas-v2-prediction-autocomplete.meta.js +0 -20
  115. package/build/internal/es/src/atlas-v2-prediction-autocomplete.meta.js.map +0 -1
  116. package/build/internal/es/src/atlas-v2-prediction-autocomplete.public.d.ts +0 -14
  117. package/build/internal/es/src/atlas-v2-prediction-autocomplete.public.js +0 -9
  118. package/build/internal/es/src/atlas-v2-prediction-autocomplete.public.js.map +0 -1
  119. package/build/internal/es/src/atlas-v2-prediction-autocomplete.types.d.ts +0 -80
  120. package/build/internal/es/src/atlas-v2-prediction-autocomplete.types.js +0 -8
  121. package/build/internal/es/src/atlas-v2-prediction-autocomplete.types.js.map +0 -1
  122. package/build/internal/es/src/atlas-v2-prediction-autocomplete.universal.js +0 -73
  123. package/build/internal/es/src/atlas-v2-prediction-autocomplete.universal.js.map +0 -1
@@ -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,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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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,80 +0,0 @@
1
- export interface Prediction {
2
- /** The human-readable name of the prediction */
3
- description?: string;
4
- /** The id of the prediction that can be use in place api. Available for short time. */
5
- searchId?: string;
6
- /** 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 */
7
- matchedSubstrings?: MatchedSubstrings[];
8
- /** Provides pre-formatted text that can be shown in your autocomplete results */
9
- textStructure?: TextStructure;
10
- /** Contains an integer indicating the straight-line distance between the predicted place, and the specified origin point, in meters. */
11
- distanceInMeters?: number | null;
12
- }
13
- export interface MatchedSubstrings {
14
- length?: number;
15
- offset?: number;
16
- }
17
- export interface TextStructure {
18
- /** Contains the main text of a prediction, usually the name of the place */
19
- mainText?: string;
20
- /** Contains the secondary text of a prediction, usually the location of the place */
21
- secondaryText?: string;
22
- /** 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 */
23
- mainTextMatchedSubstrings?: MatchedSubstrings[];
24
- }
25
- export interface ListPredictionsRequest {
26
- /** The text the predictions will be based on. */
27
- input?: string;
28
- /** The origin point from which to calculate straight-line distance to the destination */
29
- origin?: AddressLocation;
30
- /** The point around which you wish to retrieve place information */
31
- location?: AddressLocation;
32
- /** The acceptable distance from that location (in meters) */
33
- radius?: string | null;
34
- /** Filters the user can add in order to get more accurate results */
35
- filterBy?: FilterBy[];
36
- }
37
- export interface AddressLocation {
38
- /** Address latitude. */
39
- latitude?: number | null;
40
- /** Address longitude. */
41
- longitude?: number | null;
42
- }
43
- export interface FilterBy {
44
- /** One of the filter types enum */
45
- filterType?: FilterType;
46
- /** Free text like "us" */
47
- filterValue?: string;
48
- }
49
- export declare enum FilterType {
50
- /** Filter by zip code */
51
- zip_code = "zip_code",
52
- /** Filter by 2-letters or 3-letters country code */
53
- country_code = "country_code"
54
- }
55
- export interface ListPredictionsResponse {
56
- predictions?: Prediction[];
57
- }
58
- export interface PredictRequest {
59
- /**
60
- * The text the predictions will be based on.
61
- * @minLength 1
62
- */
63
- input: string;
64
- /** The origin point from which to calculate straight-line distance to the destination */
65
- origin?: AddressLocation;
66
- /** The point around which you wish to retrieve place information */
67
- location?: AddressLocation;
68
- /** The acceptable distance from that location (in meters) */
69
- radius?: string | null;
70
- /** alpha-2 or alpha-3 ISO-3166 country codes to filter by */
71
- countryCodes?: string[];
72
- /**
73
- * 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.
74
- * @format GUID
75
- */
76
- sessionToken?: string | null;
77
- }
78
- export interface PredictResponse {
79
- predictions?: Prediction[];
80
- }
@@ -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"}
@@ -1,73 +0,0 @@
1
- import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';
2
- import { renameKeysFromSDKRequestToRESTRequest, renameKeysFromRESTResponseToSDKResponse, } from '@wix/sdk-runtime/rename-all-nested-keys';
3
- import * as ambassadorWixAtlasV2Prediction from './atlas-v2-prediction-autocomplete.http.js';
4
- export 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 || (FilterType = {}));
11
- /**
12
- * A Predict end-point take an input and returns an list of Prediction object.
13
- * @param input - The text the predictions will be based on.
14
- * @public
15
- * @documentationMaturity preview
16
- * @requiredField input
17
- * @permissionId WIX_ATLAS.LIST_PREDICTIONS
18
- * @permissionScope Manage Stores
19
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
20
- * @permissionScope Manage Bookings Services and Settings
21
- * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
22
- * @permissionScope Manage Events
23
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
24
- * @permissionScope Manage Challenges
25
- * @permissionScopeId SCOPE.CHALLENGES.MANAGE
26
- * @permissionScope Manage Portfolio
27
- * @permissionScopeId SCOPE.PORTFOLIO.MANAGE-PORTFOLIO
28
- * @permissionScope Access Verticals by Automations
29
- * @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
30
- * @permissionScope Manage Restaurants - all permissions
31
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
32
- * @permissionScope Set Up Automations
33
- * @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
34
- * @applicableIdentity APP
35
- * @applicableIdentity VISITOR
36
- * @fqn com.wixpress.vi.atlas.service.v2.AutocompleteServiceV2.Predict
37
- */
38
- export async function predict(input, options) {
39
- // @ts-ignore
40
- const { httpClient, sideEffects } = arguments[2];
41
- const payload = renameKeysFromSDKRequestToRESTRequest({
42
- input: input,
43
- origin: options?.origin,
44
- location: options?.location,
45
- radius: options?.radius,
46
- countryCodes: options?.countryCodes,
47
- sessionToken: options?.sessionToken,
48
- });
49
- const reqOpts = ambassadorWixAtlasV2Prediction.predict(payload);
50
- sideEffects?.onSiteCall?.();
51
- try {
52
- const result = await httpClient.request(reqOpts);
53
- sideEffects?.onSuccess?.(result);
54
- return renameKeysFromRESTResponseToSDKResponse(result.data);
55
- }
56
- catch (err) {
57
- const transformedError = sdkTransformError(err, {
58
- spreadPathsToArguments: {},
59
- explicitPathsToArguments: {
60
- input: '$[0]',
61
- origin: '$[1].origin',
62
- location: '$[1].location',
63
- radius: '$[1].radius',
64
- countryCodes: '$[1].countryCodes',
65
- sessionToken: '$[1].sessionToken',
66
- },
67
- singleArgumentUnchanged: false,
68
- }, ['input', 'options']);
69
- sideEffects?.onError?.(err);
70
- throw transformedError;
71
- }
72
- }
73
- //# 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,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,W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