@wix/atlas 1.0.12 → 1.0.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/atlas",
3
- "version": "1.0.12",
3
+ "version": "1.0.14",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -18,9 +18,9 @@
18
18
  "type-bundles"
19
19
  ],
20
20
  "dependencies": {
21
- "@wix/atlas_autocomplete": "1.0.0",
22
- "@wix/atlas_location": "1.0.0",
23
- "@wix/atlas_places": "1.0.0"
21
+ "@wix/atlas_autocomplete": "1.0.1",
22
+ "@wix/atlas_location": "1.0.1",
23
+ "@wix/atlas_places": "1.0.1"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@wix/sdk": "https://cdn.dev.wixpress.com/@wix/sdk/02e8069ab2fd783e0e6a080fc7d590e76cb26ab93c8389574286305b.tar.gz",
@@ -45,5 +45,5 @@
45
45
  "fqdn": ""
46
46
  }
47
47
  },
48
- "falconPackageHash": "11a89732c925c67db175650890d2dbe1f49de5c65b212a1ed376b933"
48
+ "falconPackageHash": "e0ae31b93475629c0f61a3ce045ba3d6d4c288f176ea28b8b5180c1d"
49
49
  }
@@ -50,34 +50,34 @@ interface GetPlaceOptions {
50
50
  sessionToken?: string | null;
51
51
  }
52
52
 
53
- type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
54
- interface HttpClient {
55
- request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
53
+ type RESTFunctionDescriptor$2<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$2) => T;
54
+ interface HttpClient$2 {
55
+ request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
56
56
  }
57
- type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
58
- type HttpResponse<T = any> = {
57
+ type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
58
+ type HttpResponse$2<T = any> = {
59
59
  data: T;
60
60
  status: number;
61
61
  statusText: string;
62
62
  headers: any;
63
63
  request?: any;
64
64
  };
65
- type RequestOptions<_TResponse = any, Data = any> = {
65
+ type RequestOptions$2<_TResponse = any, Data = any> = {
66
66
  method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
67
67
  url: string;
68
68
  data?: Data;
69
69
  params?: URLSearchParams;
70
- } & APIMetadata;
71
- type APIMetadata = {
70
+ } & APIMetadata$2;
71
+ type APIMetadata$2 = {
72
72
  methodFqn?: string;
73
73
  entityFqdn?: string;
74
74
  packageName?: string;
75
75
  };
76
- type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
76
+ type BuildRESTFunction$2<T extends RESTFunctionDescriptor$2> = T extends RESTFunctionDescriptor$2<infer U> ? U : never;
77
77
 
78
- declare function getPlace$1(httpClient: HttpClient): (searchId: string, options?: GetPlaceOptions) => Promise<GetPlaceResponse & GetPlaceResponseNonNullableFields>;
78
+ declare function getPlace$1(httpClient: HttpClient$2): (searchId: string, options?: GetPlaceOptions) => Promise<GetPlaceResponse & GetPlaceResponseNonNullableFields>;
79
79
 
80
- declare const getPlace: BuildRESTFunction<typeof getPlace$1>;
80
+ declare const getPlace: BuildRESTFunction$2<typeof getPlace$1>;
81
81
 
82
82
  declare const context$2_getPlace: typeof getPlace;
83
83
  declare namespace context$2 {
@@ -148,9 +148,34 @@ interface PredictOptions {
148
148
  sessionToken?: string | null;
149
149
  }
150
150
 
151
- declare function predict$1(httpClient: HttpClient): (input: string, options?: PredictOptions) => Promise<PredictResponse & PredictResponseNonNullableFields>;
151
+ type RESTFunctionDescriptor$1<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$1) => T;
152
+ interface HttpClient$1 {
153
+ request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
154
+ }
155
+ type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
156
+ type HttpResponse$1<T = any> = {
157
+ data: T;
158
+ status: number;
159
+ statusText: string;
160
+ headers: any;
161
+ request?: any;
162
+ };
163
+ type RequestOptions$1<_TResponse = any, Data = any> = {
164
+ method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
165
+ url: string;
166
+ data?: Data;
167
+ params?: URLSearchParams;
168
+ } & APIMetadata$1;
169
+ type APIMetadata$1 = {
170
+ methodFqn?: string;
171
+ entityFqdn?: string;
172
+ packageName?: string;
173
+ };
174
+ type BuildRESTFunction$1<T extends RESTFunctionDescriptor$1> = T extends RESTFunctionDescriptor$1<infer U> ? U : never;
175
+
176
+ declare function predict$1(httpClient: HttpClient$1): (input: string, options?: PredictOptions) => Promise<PredictResponse & PredictResponseNonNullableFields>;
152
177
 
153
- declare const predict: BuildRESTFunction<typeof predict$1>;
178
+ declare const predict: BuildRESTFunction$1<typeof predict$1>;
154
179
 
155
180
  declare const context$1_predict: typeof predict;
156
181
  declare namespace context$1 {
@@ -237,6 +262,31 @@ interface SearchOptions {
237
262
  countryCodes?: string[];
238
263
  }
239
264
 
265
+ type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
266
+ interface HttpClient {
267
+ request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
268
+ }
269
+ type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
270
+ type HttpResponse<T = any> = {
271
+ data: T;
272
+ status: number;
273
+ statusText: string;
274
+ headers: any;
275
+ request?: any;
276
+ };
277
+ type RequestOptions<_TResponse = any, Data = any> = {
278
+ method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
279
+ url: string;
280
+ data?: Data;
281
+ params?: URLSearchParams;
282
+ } & APIMetadata;
283
+ type APIMetadata = {
284
+ methodFqn?: string;
285
+ entityFqdn?: string;
286
+ packageName?: string;
287
+ };
288
+ type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
289
+
240
290
  declare function search$1(httpClient: HttpClient): (options?: SearchOptions) => Promise<SearchResponse & SearchResponseNonNullableFields>;
241
291
 
242
292
  declare const search: BuildRESTFunction<typeof search$1>;
@@ -82,24 +82,24 @@ interface GetPlaceOptions {
82
82
  sessionToken?: string | null;
83
83
  }
84
84
 
85
- interface HttpClient {
86
- request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
85
+ interface HttpClient$2 {
86
+ request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
87
87
  }
88
- type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
89
- type HttpResponse<T = any> = {
88
+ type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
89
+ type HttpResponse$2<T = any> = {
90
90
  data: T;
91
91
  status: number;
92
92
  statusText: string;
93
93
  headers: any;
94
94
  request?: any;
95
95
  };
96
- type RequestOptions<_TResponse = any, Data = any> = {
96
+ type RequestOptions$2<_TResponse = any, Data = any> = {
97
97
  method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
98
98
  url: string;
99
99
  data?: Data;
100
100
  params?: URLSearchParams;
101
- } & APIMetadata;
102
- type APIMetadata = {
101
+ } & APIMetadata$2;
102
+ type APIMetadata$2 = {
103
103
  methodFqn?: string;
104
104
  entityFqdn?: string;
105
105
  packageName?: string;
@@ -108,7 +108,7 @@ type APIMetadata = {
108
108
  declare const __metadata$2: {
109
109
  PACKAGE_NAME: string;
110
110
  };
111
- declare function getPlace(httpClient: HttpClient): (searchId: string, options?: GetPlaceOptions) => Promise<GetPlaceResponse & GetPlaceResponseNonNullableFields>;
111
+ declare function getPlace(httpClient: HttpClient$2): (searchId: string, options?: GetPlaceOptions) => Promise<GetPlaceResponse & GetPlaceResponseNonNullableFields>;
112
112
 
113
113
  type index_d$2_GetPlaceOptions = GetPlaceOptions;
114
114
  type index_d$2_GetPlaceRequest = GetPlaceRequest;
@@ -225,10 +225,33 @@ interface PredictOptions {
225
225
  sessionToken?: string | null;
226
226
  }
227
227
 
228
+ interface HttpClient$1 {
229
+ request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
230
+ }
231
+ type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
232
+ type HttpResponse$1<T = any> = {
233
+ data: T;
234
+ status: number;
235
+ statusText: string;
236
+ headers: any;
237
+ request?: any;
238
+ };
239
+ type RequestOptions$1<_TResponse = any, Data = any> = {
240
+ method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
241
+ url: string;
242
+ data?: Data;
243
+ params?: URLSearchParams;
244
+ } & APIMetadata$1;
245
+ type APIMetadata$1 = {
246
+ methodFqn?: string;
247
+ entityFqdn?: string;
248
+ packageName?: string;
249
+ };
250
+
228
251
  declare const __metadata$1: {
229
252
  PACKAGE_NAME: string;
230
253
  };
231
- declare function predict(httpClient: HttpClient): (input: string, options?: PredictOptions) => Promise<PredictResponse & PredictResponseNonNullableFields>;
254
+ declare function predict(httpClient: HttpClient$1): (input: string, options?: PredictOptions) => Promise<PredictResponse & PredictResponseNonNullableFields>;
232
255
 
233
256
  type index_d$1_ListPredictionsRequest = ListPredictionsRequest;
234
257
  type index_d$1_ListPredictionsResponse = ListPredictionsResponse;
@@ -372,6 +395,29 @@ interface SearchOptions {
372
395
  countryCodes?: string[];
373
396
  }
374
397
 
398
+ interface HttpClient {
399
+ request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
400
+ }
401
+ type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
402
+ type HttpResponse<T = any> = {
403
+ data: T;
404
+ status: number;
405
+ statusText: string;
406
+ headers: any;
407
+ request?: any;
408
+ };
409
+ type RequestOptions<_TResponse = any, Data = any> = {
410
+ method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
411
+ url: string;
412
+ data?: Data;
413
+ params?: URLSearchParams;
414
+ } & APIMetadata;
415
+ type APIMetadata = {
416
+ methodFqn?: string;
417
+ entityFqdn?: string;
418
+ packageName?: string;
419
+ };
420
+
375
421
  declare const __metadata: {
376
422
  PACKAGE_NAME: string;
377
423
  };