@oursprivacy/platform-sdk 1.69.0 → 1.70.0
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/CHANGELOG.md +7 -0
- package/client.d.mts +5 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +5 -2
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +2 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/locations.d.mts +653 -13
- package/resources/locations.d.mts.map +1 -1
- package/resources/locations.d.ts +653 -13
- package/resources/locations.d.ts.map +1 -1
- package/resources/locations.js +10 -3
- package/resources/locations.js.map +1 -1
- package/resources/locations.mjs +10 -3
- package/resources/locations.mjs.map +1 -1
- package/resources/query-dispatches.d.mts +241 -0
- package/resources/query-dispatches.d.mts.map +1 -0
- package/resources/query-dispatches.d.ts +241 -0
- package/resources/query-dispatches.d.ts.map +1 -0
- package/resources/query-dispatches.js +56 -0
- package/resources/query-dispatches.js.map +1 -0
- package/resources/query-dispatches.mjs +52 -0
- package/resources/query-dispatches.mjs.map +1 -0
- package/src/client.ts +25 -0
- package/src/resources/index.ts +11 -0
- package/src/resources/locations.ts +690 -12
- package/src/resources/query-dispatches.ts +323 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -25,12 +25,20 @@ export class Locations extends APIResource {
|
|
|
25
25
|
return this._client.post('/rest/v1/locations', { body, ...options });
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
/**
|
|
29
|
+
* Retrieve a location and its address and map configuration by id. Requires
|
|
30
|
+
* API-key scope or current OAuth user permission: maps:find
|
|
31
|
+
*/
|
|
32
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<LocationRetrieveResponse> {
|
|
33
|
+
return this._client.get(path`/rest/v1/locations/${id}`, options);
|
|
34
|
+
}
|
|
35
|
+
|
|
28
36
|
/**
|
|
29
37
|
* Partially update a location. Only the fields you send are changed.
|
|
30
38
|
* `additionalAddresses` is replaced wholesale when sent — partial item updates are
|
|
31
|
-
* not merged. The map's computed center is recalculated
|
|
32
|
-
*
|
|
33
|
-
* maps:update
|
|
39
|
+
* not merged. The map's computed center is recalculated from the latest
|
|
40
|
+
* coordinates unless you send `center` explicitly. Requires API-key scope or
|
|
41
|
+
* current OAuth user permission: maps:update
|
|
34
42
|
*/
|
|
35
43
|
update(
|
|
36
44
|
id: string,
|
|
@@ -59,380 +67,1051 @@ export class Locations extends APIResource {
|
|
|
59
67
|
}
|
|
60
68
|
|
|
61
69
|
export interface LocationListResponse {
|
|
70
|
+
/**
|
|
71
|
+
* Locations visible to this account.
|
|
72
|
+
*/
|
|
62
73
|
entities: Array<LocationListResponse.Entity>;
|
|
63
74
|
}
|
|
64
75
|
|
|
65
76
|
export namespace LocationListResponse {
|
|
66
77
|
export interface Entity {
|
|
78
|
+
/**
|
|
79
|
+
* Unique id of the location.
|
|
80
|
+
*/
|
|
67
81
|
id: string;
|
|
68
82
|
|
|
83
|
+
/**
|
|
84
|
+
* Account that owns the location.
|
|
85
|
+
*/
|
|
69
86
|
accountId: string;
|
|
70
87
|
|
|
71
88
|
additionalAddresses?: Array<Entity.AdditionalAddress> | null;
|
|
72
89
|
|
|
90
|
+
/**
|
|
91
|
+
* Center point used to display the map.
|
|
92
|
+
*/
|
|
73
93
|
center?: Entity.Center | null;
|
|
74
94
|
|
|
95
|
+
/**
|
|
96
|
+
* City.
|
|
97
|
+
*/
|
|
75
98
|
city?: string | null;
|
|
76
99
|
|
|
100
|
+
/**
|
|
101
|
+
* Country.
|
|
102
|
+
*/
|
|
77
103
|
country?: string | null;
|
|
78
104
|
|
|
105
|
+
/**
|
|
106
|
+
* When the location was created.
|
|
107
|
+
*/
|
|
79
108
|
createdAt?: string | null;
|
|
80
109
|
|
|
110
|
+
/**
|
|
111
|
+
* Custom domain used by the map embed.
|
|
112
|
+
*/
|
|
81
113
|
customDomain?: string | null;
|
|
82
114
|
|
|
115
|
+
/**
|
|
116
|
+
* Latitude coordinate.
|
|
117
|
+
*/
|
|
83
118
|
latitude?: number | null;
|
|
84
119
|
|
|
120
|
+
/**
|
|
121
|
+
* First address line.
|
|
122
|
+
*/
|
|
85
123
|
line1?: string | null;
|
|
86
124
|
|
|
125
|
+
/**
|
|
126
|
+
* Second address line.
|
|
127
|
+
*/
|
|
87
128
|
line2?: string | null;
|
|
88
129
|
|
|
130
|
+
/**
|
|
131
|
+
* Longitude coordinate.
|
|
132
|
+
*/
|
|
89
133
|
longitude?: number | null;
|
|
90
134
|
|
|
135
|
+
/**
|
|
136
|
+
* Name of the map.
|
|
137
|
+
*/
|
|
91
138
|
mapName?: string | null;
|
|
92
139
|
|
|
140
|
+
/**
|
|
141
|
+
* Name of the location.
|
|
142
|
+
*/
|
|
93
143
|
name?: string | null;
|
|
94
144
|
|
|
145
|
+
/**
|
|
146
|
+
* Phone number for the location.
|
|
147
|
+
*/
|
|
95
148
|
phoneNumber?: string | null;
|
|
96
149
|
|
|
150
|
+
/**
|
|
151
|
+
* State or region.
|
|
152
|
+
*/
|
|
97
153
|
state?: string | null;
|
|
98
154
|
|
|
155
|
+
/**
|
|
156
|
+
* When the location was last updated.
|
|
157
|
+
*/
|
|
99
158
|
updatedAt?: string | null;
|
|
100
159
|
|
|
160
|
+
/**
|
|
161
|
+
* Link text for the website URL.
|
|
162
|
+
*/
|
|
101
163
|
websiteLinkText?: string | null;
|
|
102
164
|
|
|
165
|
+
/**
|
|
166
|
+
* Website URL for the location.
|
|
167
|
+
*/
|
|
103
168
|
websiteUrl?: string | null;
|
|
104
169
|
|
|
170
|
+
/**
|
|
171
|
+
* Postal code.
|
|
172
|
+
*/
|
|
105
173
|
zip?: string | null;
|
|
106
174
|
}
|
|
107
175
|
|
|
108
176
|
export namespace Entity {
|
|
109
177
|
export interface AdditionalAddress {
|
|
178
|
+
/**
|
|
179
|
+
* City.
|
|
180
|
+
*/
|
|
110
181
|
city?: string | null;
|
|
111
182
|
|
|
183
|
+
/**
|
|
184
|
+
* Country.
|
|
185
|
+
*/
|
|
112
186
|
country?: string | null;
|
|
113
187
|
|
|
188
|
+
/**
|
|
189
|
+
* Latitude coordinate.
|
|
190
|
+
*/
|
|
114
191
|
latitude?: number | null;
|
|
115
192
|
|
|
193
|
+
/**
|
|
194
|
+
* First address line.
|
|
195
|
+
*/
|
|
116
196
|
line1?: string | null;
|
|
117
197
|
|
|
198
|
+
/**
|
|
199
|
+
* Second address line.
|
|
200
|
+
*/
|
|
118
201
|
line2?: string | null;
|
|
119
202
|
|
|
203
|
+
/**
|
|
204
|
+
* Longitude coordinate.
|
|
205
|
+
*/
|
|
120
206
|
longitude?: number | null;
|
|
121
207
|
|
|
208
|
+
/**
|
|
209
|
+
* Name of this address.
|
|
210
|
+
*/
|
|
122
211
|
name?: string | null;
|
|
123
212
|
|
|
213
|
+
/**
|
|
214
|
+
* Phone number for this address.
|
|
215
|
+
*/
|
|
124
216
|
phoneNumber?: string | null;
|
|
125
217
|
|
|
218
|
+
/**
|
|
219
|
+
* State or region.
|
|
220
|
+
*/
|
|
126
221
|
state?: string | null;
|
|
127
222
|
|
|
223
|
+
/**
|
|
224
|
+
* Link text for the website URL.
|
|
225
|
+
*/
|
|
128
226
|
websiteLinkText?: string | null;
|
|
129
227
|
|
|
228
|
+
/**
|
|
229
|
+
* Website URL for this address.
|
|
230
|
+
*/
|
|
130
231
|
websiteUrl?: string | null;
|
|
131
232
|
|
|
233
|
+
/**
|
|
234
|
+
* Postal code.
|
|
235
|
+
*/
|
|
132
236
|
zip?: string | null;
|
|
133
237
|
}
|
|
134
238
|
|
|
239
|
+
/**
|
|
240
|
+
* Center point used to display the map.
|
|
241
|
+
*/
|
|
135
242
|
export interface Center {
|
|
243
|
+
/**
|
|
244
|
+
* Latitude coordinate.
|
|
245
|
+
*/
|
|
136
246
|
latitude: number;
|
|
137
247
|
|
|
248
|
+
/**
|
|
249
|
+
* Longitude coordinate.
|
|
250
|
+
*/
|
|
138
251
|
longitude: number;
|
|
139
252
|
}
|
|
140
253
|
}
|
|
141
254
|
}
|
|
142
255
|
|
|
143
256
|
export interface LocationCreateResponse {
|
|
257
|
+
/**
|
|
258
|
+
* Unique id of the location.
|
|
259
|
+
*/
|
|
144
260
|
id: string;
|
|
145
261
|
|
|
262
|
+
/**
|
|
263
|
+
* Account that owns the location.
|
|
264
|
+
*/
|
|
146
265
|
accountId: string;
|
|
147
266
|
|
|
148
267
|
additionalAddresses?: Array<LocationCreateResponse.AdditionalAddress> | null;
|
|
149
268
|
|
|
269
|
+
/**
|
|
270
|
+
* Center point used to display the map.
|
|
271
|
+
*/
|
|
150
272
|
center?: LocationCreateResponse.Center | null;
|
|
151
273
|
|
|
274
|
+
/**
|
|
275
|
+
* City.
|
|
276
|
+
*/
|
|
152
277
|
city?: string | null;
|
|
153
278
|
|
|
279
|
+
/**
|
|
280
|
+
* Country.
|
|
281
|
+
*/
|
|
154
282
|
country?: string | null;
|
|
155
283
|
|
|
284
|
+
/**
|
|
285
|
+
* When the location was created.
|
|
286
|
+
*/
|
|
156
287
|
createdAt?: string | null;
|
|
157
288
|
|
|
289
|
+
/**
|
|
290
|
+
* Custom domain used by the map embed.
|
|
291
|
+
*/
|
|
158
292
|
customDomain?: string | null;
|
|
159
293
|
|
|
294
|
+
/**
|
|
295
|
+
* Latitude coordinate.
|
|
296
|
+
*/
|
|
160
297
|
latitude?: number | null;
|
|
161
298
|
|
|
299
|
+
/**
|
|
300
|
+
* First address line.
|
|
301
|
+
*/
|
|
162
302
|
line1?: string | null;
|
|
163
303
|
|
|
304
|
+
/**
|
|
305
|
+
* Second address line.
|
|
306
|
+
*/
|
|
164
307
|
line2?: string | null;
|
|
165
308
|
|
|
309
|
+
/**
|
|
310
|
+
* Longitude coordinate.
|
|
311
|
+
*/
|
|
166
312
|
longitude?: number | null;
|
|
167
313
|
|
|
314
|
+
/**
|
|
315
|
+
* Name of the map.
|
|
316
|
+
*/
|
|
168
317
|
mapName?: string | null;
|
|
169
318
|
|
|
319
|
+
/**
|
|
320
|
+
* Name of the location.
|
|
321
|
+
*/
|
|
170
322
|
name?: string | null;
|
|
171
323
|
|
|
324
|
+
/**
|
|
325
|
+
* Phone number for the location.
|
|
326
|
+
*/
|
|
172
327
|
phoneNumber?: string | null;
|
|
173
328
|
|
|
329
|
+
/**
|
|
330
|
+
* State or region.
|
|
331
|
+
*/
|
|
174
332
|
state?: string | null;
|
|
175
333
|
|
|
334
|
+
/**
|
|
335
|
+
* When the location was last updated.
|
|
336
|
+
*/
|
|
176
337
|
updatedAt?: string | null;
|
|
177
338
|
|
|
339
|
+
/**
|
|
340
|
+
* Link text for the website URL.
|
|
341
|
+
*/
|
|
178
342
|
websiteLinkText?: string | null;
|
|
179
343
|
|
|
344
|
+
/**
|
|
345
|
+
* Website URL for the location.
|
|
346
|
+
*/
|
|
180
347
|
websiteUrl?: string | null;
|
|
181
348
|
|
|
349
|
+
/**
|
|
350
|
+
* Postal code.
|
|
351
|
+
*/
|
|
182
352
|
zip?: string | null;
|
|
183
353
|
}
|
|
184
354
|
|
|
185
355
|
export namespace LocationCreateResponse {
|
|
186
356
|
export interface AdditionalAddress {
|
|
357
|
+
/**
|
|
358
|
+
* City.
|
|
359
|
+
*/
|
|
360
|
+
city?: string | null;
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
* Country.
|
|
364
|
+
*/
|
|
365
|
+
country?: string | null;
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* Latitude coordinate.
|
|
369
|
+
*/
|
|
370
|
+
latitude?: number | null;
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* First address line.
|
|
374
|
+
*/
|
|
375
|
+
line1?: string | null;
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* Second address line.
|
|
379
|
+
*/
|
|
380
|
+
line2?: string | null;
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* Longitude coordinate.
|
|
384
|
+
*/
|
|
385
|
+
longitude?: number | null;
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* Name of this address.
|
|
389
|
+
*/
|
|
390
|
+
name?: string | null;
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* Phone number for this address.
|
|
394
|
+
*/
|
|
395
|
+
phoneNumber?: string | null;
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* State or region.
|
|
399
|
+
*/
|
|
400
|
+
state?: string | null;
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* Link text for the website URL.
|
|
404
|
+
*/
|
|
405
|
+
websiteLinkText?: string | null;
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* Website URL for this address.
|
|
409
|
+
*/
|
|
410
|
+
websiteUrl?: string | null;
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* Postal code.
|
|
414
|
+
*/
|
|
415
|
+
zip?: string | null;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* Center point used to display the map.
|
|
420
|
+
*/
|
|
421
|
+
export interface Center {
|
|
422
|
+
/**
|
|
423
|
+
* Latitude coordinate.
|
|
424
|
+
*/
|
|
425
|
+
latitude: number;
|
|
426
|
+
|
|
427
|
+
/**
|
|
428
|
+
* Longitude coordinate.
|
|
429
|
+
*/
|
|
430
|
+
longitude: number;
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
export interface LocationRetrieveResponse {
|
|
435
|
+
/**
|
|
436
|
+
* Unique id of the location.
|
|
437
|
+
*/
|
|
438
|
+
id: string;
|
|
439
|
+
|
|
440
|
+
/**
|
|
441
|
+
* Account that owns the location.
|
|
442
|
+
*/
|
|
443
|
+
accountId: string;
|
|
444
|
+
|
|
445
|
+
additionalAddresses?: Array<LocationRetrieveResponse.AdditionalAddress> | null;
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* Center point used to display the map.
|
|
449
|
+
*/
|
|
450
|
+
center?: LocationRetrieveResponse.Center | null;
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* City.
|
|
454
|
+
*/
|
|
455
|
+
city?: string | null;
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
* Country.
|
|
459
|
+
*/
|
|
460
|
+
country?: string | null;
|
|
461
|
+
|
|
462
|
+
/**
|
|
463
|
+
* When the location was created.
|
|
464
|
+
*/
|
|
465
|
+
createdAt?: string | null;
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* Custom domain used by the map embed.
|
|
469
|
+
*/
|
|
470
|
+
customDomain?: string | null;
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* Latitude coordinate.
|
|
474
|
+
*/
|
|
475
|
+
latitude?: number | null;
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* First address line.
|
|
479
|
+
*/
|
|
480
|
+
line1?: string | null;
|
|
481
|
+
|
|
482
|
+
/**
|
|
483
|
+
* Second address line.
|
|
484
|
+
*/
|
|
485
|
+
line2?: string | null;
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* Longitude coordinate.
|
|
489
|
+
*/
|
|
490
|
+
longitude?: number | null;
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* Name of the map.
|
|
494
|
+
*/
|
|
495
|
+
mapName?: string | null;
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* Name of the location.
|
|
499
|
+
*/
|
|
500
|
+
name?: string | null;
|
|
501
|
+
|
|
502
|
+
/**
|
|
503
|
+
* Phone number for the location.
|
|
504
|
+
*/
|
|
505
|
+
phoneNumber?: string | null;
|
|
506
|
+
|
|
507
|
+
/**
|
|
508
|
+
* State or region.
|
|
509
|
+
*/
|
|
510
|
+
state?: string | null;
|
|
511
|
+
|
|
512
|
+
/**
|
|
513
|
+
* When the location was last updated.
|
|
514
|
+
*/
|
|
515
|
+
updatedAt?: string | null;
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* Link text for the website URL.
|
|
519
|
+
*/
|
|
520
|
+
websiteLinkText?: string | null;
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* Website URL for the location.
|
|
524
|
+
*/
|
|
525
|
+
websiteUrl?: string | null;
|
|
526
|
+
|
|
527
|
+
/**
|
|
528
|
+
* Postal code.
|
|
529
|
+
*/
|
|
530
|
+
zip?: string | null;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
export namespace LocationRetrieveResponse {
|
|
534
|
+
export interface AdditionalAddress {
|
|
535
|
+
/**
|
|
536
|
+
* City.
|
|
537
|
+
*/
|
|
187
538
|
city?: string | null;
|
|
188
539
|
|
|
540
|
+
/**
|
|
541
|
+
* Country.
|
|
542
|
+
*/
|
|
189
543
|
country?: string | null;
|
|
190
544
|
|
|
545
|
+
/**
|
|
546
|
+
* Latitude coordinate.
|
|
547
|
+
*/
|
|
191
548
|
latitude?: number | null;
|
|
192
549
|
|
|
550
|
+
/**
|
|
551
|
+
* First address line.
|
|
552
|
+
*/
|
|
193
553
|
line1?: string | null;
|
|
194
554
|
|
|
555
|
+
/**
|
|
556
|
+
* Second address line.
|
|
557
|
+
*/
|
|
195
558
|
line2?: string | null;
|
|
196
559
|
|
|
560
|
+
/**
|
|
561
|
+
* Longitude coordinate.
|
|
562
|
+
*/
|
|
197
563
|
longitude?: number | null;
|
|
198
564
|
|
|
565
|
+
/**
|
|
566
|
+
* Name of this address.
|
|
567
|
+
*/
|
|
199
568
|
name?: string | null;
|
|
200
569
|
|
|
570
|
+
/**
|
|
571
|
+
* Phone number for this address.
|
|
572
|
+
*/
|
|
201
573
|
phoneNumber?: string | null;
|
|
202
574
|
|
|
575
|
+
/**
|
|
576
|
+
* State or region.
|
|
577
|
+
*/
|
|
203
578
|
state?: string | null;
|
|
204
579
|
|
|
580
|
+
/**
|
|
581
|
+
* Link text for the website URL.
|
|
582
|
+
*/
|
|
205
583
|
websiteLinkText?: string | null;
|
|
206
584
|
|
|
585
|
+
/**
|
|
586
|
+
* Website URL for this address.
|
|
587
|
+
*/
|
|
207
588
|
websiteUrl?: string | null;
|
|
208
589
|
|
|
590
|
+
/**
|
|
591
|
+
* Postal code.
|
|
592
|
+
*/
|
|
209
593
|
zip?: string | null;
|
|
210
594
|
}
|
|
211
595
|
|
|
596
|
+
/**
|
|
597
|
+
* Center point used to display the map.
|
|
598
|
+
*/
|
|
212
599
|
export interface Center {
|
|
600
|
+
/**
|
|
601
|
+
* Latitude coordinate.
|
|
602
|
+
*/
|
|
213
603
|
latitude: number;
|
|
214
604
|
|
|
605
|
+
/**
|
|
606
|
+
* Longitude coordinate.
|
|
607
|
+
*/
|
|
215
608
|
longitude: number;
|
|
216
609
|
}
|
|
217
610
|
}
|
|
218
611
|
|
|
219
612
|
export interface LocationUpdateResponse {
|
|
613
|
+
/**
|
|
614
|
+
* Unique id of the location.
|
|
615
|
+
*/
|
|
220
616
|
id: string;
|
|
221
617
|
|
|
618
|
+
/**
|
|
619
|
+
* Account that owns the location.
|
|
620
|
+
*/
|
|
222
621
|
accountId: string;
|
|
223
622
|
|
|
224
623
|
additionalAddresses?: Array<LocationUpdateResponse.AdditionalAddress> | null;
|
|
225
624
|
|
|
625
|
+
/**
|
|
626
|
+
* Center point used to display the map.
|
|
627
|
+
*/
|
|
226
628
|
center?: LocationUpdateResponse.Center | null;
|
|
227
629
|
|
|
630
|
+
/**
|
|
631
|
+
* City.
|
|
632
|
+
*/
|
|
228
633
|
city?: string | null;
|
|
229
634
|
|
|
635
|
+
/**
|
|
636
|
+
* Country.
|
|
637
|
+
*/
|
|
230
638
|
country?: string | null;
|
|
231
639
|
|
|
640
|
+
/**
|
|
641
|
+
* When the location was created.
|
|
642
|
+
*/
|
|
232
643
|
createdAt?: string | null;
|
|
233
644
|
|
|
645
|
+
/**
|
|
646
|
+
* Custom domain used by the map embed.
|
|
647
|
+
*/
|
|
234
648
|
customDomain?: string | null;
|
|
235
649
|
|
|
650
|
+
/**
|
|
651
|
+
* Latitude coordinate.
|
|
652
|
+
*/
|
|
236
653
|
latitude?: number | null;
|
|
237
654
|
|
|
655
|
+
/**
|
|
656
|
+
* First address line.
|
|
657
|
+
*/
|
|
238
658
|
line1?: string | null;
|
|
239
659
|
|
|
660
|
+
/**
|
|
661
|
+
* Second address line.
|
|
662
|
+
*/
|
|
240
663
|
line2?: string | null;
|
|
241
664
|
|
|
665
|
+
/**
|
|
666
|
+
* Longitude coordinate.
|
|
667
|
+
*/
|
|
242
668
|
longitude?: number | null;
|
|
243
669
|
|
|
670
|
+
/**
|
|
671
|
+
* Name of the map.
|
|
672
|
+
*/
|
|
244
673
|
mapName?: string | null;
|
|
245
674
|
|
|
675
|
+
/**
|
|
676
|
+
* Name of the location.
|
|
677
|
+
*/
|
|
246
678
|
name?: string | null;
|
|
247
679
|
|
|
680
|
+
/**
|
|
681
|
+
* Phone number for the location.
|
|
682
|
+
*/
|
|
248
683
|
phoneNumber?: string | null;
|
|
249
684
|
|
|
685
|
+
/**
|
|
686
|
+
* State or region.
|
|
687
|
+
*/
|
|
250
688
|
state?: string | null;
|
|
251
689
|
|
|
690
|
+
/**
|
|
691
|
+
* When the location was last updated.
|
|
692
|
+
*/
|
|
252
693
|
updatedAt?: string | null;
|
|
253
694
|
|
|
695
|
+
/**
|
|
696
|
+
* Link text for the website URL.
|
|
697
|
+
*/
|
|
254
698
|
websiteLinkText?: string | null;
|
|
255
699
|
|
|
700
|
+
/**
|
|
701
|
+
* Website URL for the location.
|
|
702
|
+
*/
|
|
256
703
|
websiteUrl?: string | null;
|
|
257
704
|
|
|
705
|
+
/**
|
|
706
|
+
* Postal code.
|
|
707
|
+
*/
|
|
258
708
|
zip?: string | null;
|
|
259
709
|
}
|
|
260
710
|
|
|
261
711
|
export namespace LocationUpdateResponse {
|
|
262
712
|
export interface AdditionalAddress {
|
|
713
|
+
/**
|
|
714
|
+
* City.
|
|
715
|
+
*/
|
|
263
716
|
city?: string | null;
|
|
264
717
|
|
|
718
|
+
/**
|
|
719
|
+
* Country.
|
|
720
|
+
*/
|
|
265
721
|
country?: string | null;
|
|
266
722
|
|
|
723
|
+
/**
|
|
724
|
+
* Latitude coordinate.
|
|
725
|
+
*/
|
|
267
726
|
latitude?: number | null;
|
|
268
727
|
|
|
728
|
+
/**
|
|
729
|
+
* First address line.
|
|
730
|
+
*/
|
|
269
731
|
line1?: string | null;
|
|
270
732
|
|
|
733
|
+
/**
|
|
734
|
+
* Second address line.
|
|
735
|
+
*/
|
|
271
736
|
line2?: string | null;
|
|
272
737
|
|
|
738
|
+
/**
|
|
739
|
+
* Longitude coordinate.
|
|
740
|
+
*/
|
|
273
741
|
longitude?: number | null;
|
|
274
742
|
|
|
743
|
+
/**
|
|
744
|
+
* Name of this address.
|
|
745
|
+
*/
|
|
275
746
|
name?: string | null;
|
|
276
747
|
|
|
748
|
+
/**
|
|
749
|
+
* Phone number for this address.
|
|
750
|
+
*/
|
|
277
751
|
phoneNumber?: string | null;
|
|
278
752
|
|
|
753
|
+
/**
|
|
754
|
+
* State or region.
|
|
755
|
+
*/
|
|
279
756
|
state?: string | null;
|
|
280
757
|
|
|
758
|
+
/**
|
|
759
|
+
* Link text for the website URL.
|
|
760
|
+
*/
|
|
281
761
|
websiteLinkText?: string | null;
|
|
282
762
|
|
|
763
|
+
/**
|
|
764
|
+
* Website URL for this address.
|
|
765
|
+
*/
|
|
283
766
|
websiteUrl?: string | null;
|
|
284
767
|
|
|
768
|
+
/**
|
|
769
|
+
* Postal code.
|
|
770
|
+
*/
|
|
285
771
|
zip?: string | null;
|
|
286
772
|
}
|
|
287
773
|
|
|
774
|
+
/**
|
|
775
|
+
* Center point used to display the map.
|
|
776
|
+
*/
|
|
288
777
|
export interface Center {
|
|
778
|
+
/**
|
|
779
|
+
* Latitude coordinate.
|
|
780
|
+
*/
|
|
289
781
|
latitude: number;
|
|
290
782
|
|
|
783
|
+
/**
|
|
784
|
+
* Longitude coordinate.
|
|
785
|
+
*/
|
|
291
786
|
longitude: number;
|
|
292
787
|
}
|
|
293
788
|
}
|
|
294
789
|
|
|
295
790
|
export interface LocationEmbedCodeResponse {
|
|
296
791
|
/**
|
|
297
|
-
*
|
|
298
|
-
* an optional JSON-LD `<script>`) ready to paste into any page. The iframe `src`
|
|
299
|
-
* points to the maps CDN for the current stage.
|
|
792
|
+
* Paste-ready HTML snippet containing the map iframe and optional JSON-LD.
|
|
300
793
|
*/
|
|
301
794
|
embedCode: string;
|
|
302
795
|
}
|
|
303
796
|
|
|
304
797
|
export interface LocationCreateParams {
|
|
798
|
+
/**
|
|
799
|
+
* Additional map locations.
|
|
800
|
+
*/
|
|
305
801
|
additionalAddresses?: Array<LocationCreateParams.AdditionalAddress> | null;
|
|
306
802
|
|
|
803
|
+
/**
|
|
804
|
+
* Center point used to display the map.
|
|
805
|
+
*/
|
|
307
806
|
center?: LocationCreateParams.Center | null;
|
|
308
807
|
|
|
808
|
+
/**
|
|
809
|
+
* City.
|
|
810
|
+
*/
|
|
309
811
|
city?: string | null;
|
|
310
812
|
|
|
813
|
+
/**
|
|
814
|
+
* Country.
|
|
815
|
+
*/
|
|
311
816
|
country?: string | null;
|
|
312
817
|
|
|
818
|
+
/**
|
|
819
|
+
* Custom domain used by the map embed.
|
|
820
|
+
*/
|
|
313
821
|
customDomain?: string | null;
|
|
314
822
|
|
|
823
|
+
/**
|
|
824
|
+
* Latitude coordinate.
|
|
825
|
+
*/
|
|
315
826
|
latitude?: number | null;
|
|
316
827
|
|
|
828
|
+
/**
|
|
829
|
+
* First address line.
|
|
830
|
+
*/
|
|
317
831
|
line1?: string | null;
|
|
318
832
|
|
|
833
|
+
/**
|
|
834
|
+
* Second address line.
|
|
835
|
+
*/
|
|
319
836
|
line2?: string | null;
|
|
320
837
|
|
|
838
|
+
/**
|
|
839
|
+
* Longitude coordinate.
|
|
840
|
+
*/
|
|
321
841
|
longitude?: number | null;
|
|
322
842
|
|
|
843
|
+
/**
|
|
844
|
+
* Name of the map.
|
|
845
|
+
*/
|
|
323
846
|
mapName?: string | null;
|
|
324
847
|
|
|
848
|
+
/**
|
|
849
|
+
* Name of the location.
|
|
850
|
+
*/
|
|
325
851
|
name?: string | null;
|
|
326
852
|
|
|
853
|
+
/**
|
|
854
|
+
* Phone number for the location.
|
|
855
|
+
*/
|
|
327
856
|
phoneNumber?: string | null;
|
|
328
857
|
|
|
858
|
+
/**
|
|
859
|
+
* State or region.
|
|
860
|
+
*/
|
|
329
861
|
state?: string | null;
|
|
330
862
|
|
|
863
|
+
/**
|
|
864
|
+
* Link text for the website URL.
|
|
865
|
+
*/
|
|
331
866
|
websiteLinkText?: string | null;
|
|
332
867
|
|
|
868
|
+
/**
|
|
869
|
+
* Website URL for the location.
|
|
870
|
+
*/
|
|
333
871
|
websiteUrl?: string | null;
|
|
334
872
|
|
|
873
|
+
/**
|
|
874
|
+
* Postal code.
|
|
875
|
+
*/
|
|
335
876
|
zip?: string | null;
|
|
336
877
|
}
|
|
337
878
|
|
|
338
879
|
export namespace LocationCreateParams {
|
|
339
880
|
export interface AdditionalAddress {
|
|
881
|
+
/**
|
|
882
|
+
* Latitude coordinate.
|
|
883
|
+
*/
|
|
340
884
|
latitude: number;
|
|
341
885
|
|
|
886
|
+
/**
|
|
887
|
+
* Longitude coordinate.
|
|
888
|
+
*/
|
|
342
889
|
longitude: number;
|
|
343
890
|
|
|
891
|
+
/**
|
|
892
|
+
* City.
|
|
893
|
+
*/
|
|
344
894
|
city?: string | null;
|
|
345
895
|
|
|
896
|
+
/**
|
|
897
|
+
* Country.
|
|
898
|
+
*/
|
|
346
899
|
country?: string | null;
|
|
347
900
|
|
|
901
|
+
/**
|
|
902
|
+
* First address line.
|
|
903
|
+
*/
|
|
348
904
|
line1?: string | null;
|
|
349
905
|
|
|
906
|
+
/**
|
|
907
|
+
* Second address line.
|
|
908
|
+
*/
|
|
350
909
|
line2?: string | null;
|
|
351
910
|
|
|
911
|
+
/**
|
|
912
|
+
* Name of this address.
|
|
913
|
+
*/
|
|
352
914
|
name?: string | null;
|
|
353
915
|
|
|
916
|
+
/**
|
|
917
|
+
* Phone number for this address.
|
|
918
|
+
*/
|
|
354
919
|
phoneNumber?: string | null;
|
|
355
920
|
|
|
921
|
+
/**
|
|
922
|
+
* State or region.
|
|
923
|
+
*/
|
|
356
924
|
state?: string | null;
|
|
357
925
|
|
|
926
|
+
/**
|
|
927
|
+
* Link text for the website URL.
|
|
928
|
+
*/
|
|
358
929
|
websiteLinkText?: string | null;
|
|
359
930
|
|
|
931
|
+
/**
|
|
932
|
+
* Website URL for this address.
|
|
933
|
+
*/
|
|
360
934
|
websiteUrl?: string | null;
|
|
361
935
|
|
|
936
|
+
/**
|
|
937
|
+
* Postal code.
|
|
938
|
+
*/
|
|
362
939
|
zip?: string | null;
|
|
363
940
|
}
|
|
364
941
|
|
|
942
|
+
/**
|
|
943
|
+
* Center point used to display the map.
|
|
944
|
+
*/
|
|
365
945
|
export interface Center {
|
|
946
|
+
/**
|
|
947
|
+
* Latitude coordinate.
|
|
948
|
+
*/
|
|
366
949
|
latitude: number;
|
|
367
950
|
|
|
951
|
+
/**
|
|
952
|
+
* Longitude coordinate.
|
|
953
|
+
*/
|
|
368
954
|
longitude: number;
|
|
369
955
|
}
|
|
370
956
|
}
|
|
371
957
|
|
|
372
958
|
export interface LocationUpdateParams {
|
|
959
|
+
/**
|
|
960
|
+
* Additional map locations.
|
|
961
|
+
*/
|
|
373
962
|
additionalAddresses?: Array<LocationUpdateParams.AdditionalAddress> | null;
|
|
374
963
|
|
|
964
|
+
/**
|
|
965
|
+
* Center point used to display the map.
|
|
966
|
+
*/
|
|
375
967
|
center?: LocationUpdateParams.Center | null;
|
|
376
968
|
|
|
969
|
+
/**
|
|
970
|
+
* City.
|
|
971
|
+
*/
|
|
377
972
|
city?: string | null;
|
|
378
973
|
|
|
974
|
+
/**
|
|
975
|
+
* Country.
|
|
976
|
+
*/
|
|
379
977
|
country?: string | null;
|
|
380
978
|
|
|
979
|
+
/**
|
|
980
|
+
* Custom domain used by the map embed.
|
|
981
|
+
*/
|
|
381
982
|
customDomain?: string | null;
|
|
382
983
|
|
|
984
|
+
/**
|
|
985
|
+
* Latitude coordinate.
|
|
986
|
+
*/
|
|
383
987
|
latitude?: number | null;
|
|
384
988
|
|
|
989
|
+
/**
|
|
990
|
+
* First address line.
|
|
991
|
+
*/
|
|
385
992
|
line1?: string | null;
|
|
386
993
|
|
|
994
|
+
/**
|
|
995
|
+
* Second address line.
|
|
996
|
+
*/
|
|
387
997
|
line2?: string | null;
|
|
388
998
|
|
|
999
|
+
/**
|
|
1000
|
+
* Longitude coordinate.
|
|
1001
|
+
*/
|
|
389
1002
|
longitude?: number | null;
|
|
390
1003
|
|
|
1004
|
+
/**
|
|
1005
|
+
* Name of the map.
|
|
1006
|
+
*/
|
|
391
1007
|
mapName?: string | null;
|
|
392
1008
|
|
|
1009
|
+
/**
|
|
1010
|
+
* Name of the location.
|
|
1011
|
+
*/
|
|
393
1012
|
name?: string | null;
|
|
394
1013
|
|
|
1014
|
+
/**
|
|
1015
|
+
* Phone number for the location.
|
|
1016
|
+
*/
|
|
395
1017
|
phoneNumber?: string | null;
|
|
396
1018
|
|
|
1019
|
+
/**
|
|
1020
|
+
* State or region.
|
|
1021
|
+
*/
|
|
397
1022
|
state?: string | null;
|
|
398
1023
|
|
|
1024
|
+
/**
|
|
1025
|
+
* Link text for the website URL.
|
|
1026
|
+
*/
|
|
399
1027
|
websiteLinkText?: string | null;
|
|
400
1028
|
|
|
1029
|
+
/**
|
|
1030
|
+
* Website URL for the location.
|
|
1031
|
+
*/
|
|
401
1032
|
websiteUrl?: string | null;
|
|
402
1033
|
|
|
1034
|
+
/**
|
|
1035
|
+
* Postal code.
|
|
1036
|
+
*/
|
|
403
1037
|
zip?: string | null;
|
|
404
1038
|
}
|
|
405
1039
|
|
|
406
1040
|
export namespace LocationUpdateParams {
|
|
407
1041
|
export interface AdditionalAddress {
|
|
1042
|
+
/**
|
|
1043
|
+
* Latitude coordinate.
|
|
1044
|
+
*/
|
|
408
1045
|
latitude: number;
|
|
409
1046
|
|
|
1047
|
+
/**
|
|
1048
|
+
* Longitude coordinate.
|
|
1049
|
+
*/
|
|
410
1050
|
longitude: number;
|
|
411
1051
|
|
|
1052
|
+
/**
|
|
1053
|
+
* City.
|
|
1054
|
+
*/
|
|
412
1055
|
city?: string | null;
|
|
413
1056
|
|
|
1057
|
+
/**
|
|
1058
|
+
* Country.
|
|
1059
|
+
*/
|
|
414
1060
|
country?: string | null;
|
|
415
1061
|
|
|
1062
|
+
/**
|
|
1063
|
+
* First address line.
|
|
1064
|
+
*/
|
|
416
1065
|
line1?: string | null;
|
|
417
1066
|
|
|
1067
|
+
/**
|
|
1068
|
+
* Second address line.
|
|
1069
|
+
*/
|
|
418
1070
|
line2?: string | null;
|
|
419
1071
|
|
|
1072
|
+
/**
|
|
1073
|
+
* Name of this address.
|
|
1074
|
+
*/
|
|
420
1075
|
name?: string | null;
|
|
421
1076
|
|
|
1077
|
+
/**
|
|
1078
|
+
* Phone number for this address.
|
|
1079
|
+
*/
|
|
422
1080
|
phoneNumber?: string | null;
|
|
423
1081
|
|
|
1082
|
+
/**
|
|
1083
|
+
* State or region.
|
|
1084
|
+
*/
|
|
424
1085
|
state?: string | null;
|
|
425
1086
|
|
|
1087
|
+
/**
|
|
1088
|
+
* Link text for the website URL.
|
|
1089
|
+
*/
|
|
426
1090
|
websiteLinkText?: string | null;
|
|
427
1091
|
|
|
1092
|
+
/**
|
|
1093
|
+
* Website URL for this address.
|
|
1094
|
+
*/
|
|
428
1095
|
websiteUrl?: string | null;
|
|
429
1096
|
|
|
1097
|
+
/**
|
|
1098
|
+
* Postal code.
|
|
1099
|
+
*/
|
|
430
1100
|
zip?: string | null;
|
|
431
1101
|
}
|
|
432
1102
|
|
|
1103
|
+
/**
|
|
1104
|
+
* Center point used to display the map.
|
|
1105
|
+
*/
|
|
433
1106
|
export interface Center {
|
|
1107
|
+
/**
|
|
1108
|
+
* Latitude coordinate.
|
|
1109
|
+
*/
|
|
434
1110
|
latitude: number;
|
|
435
1111
|
|
|
1112
|
+
/**
|
|
1113
|
+
* Longitude coordinate.
|
|
1114
|
+
*/
|
|
436
1115
|
longitude: number;
|
|
437
1116
|
}
|
|
438
1117
|
}
|
|
@@ -449,19 +1128,17 @@ export interface LocationEmbedCodeParams {
|
|
|
449
1128
|
colorScheme?: 'light' | 'dark';
|
|
450
1129
|
|
|
451
1130
|
/**
|
|
452
|
-
* Render the address sidebar overlay next to the map. Send
|
|
1131
|
+
* Render the address sidebar overlay next to the map. Send false to hide it.
|
|
453
1132
|
*/
|
|
454
1133
|
includeAddressBox?: boolean;
|
|
455
1134
|
|
|
456
1135
|
/**
|
|
457
|
-
* Whether
|
|
458
|
-
* controls.
|
|
1136
|
+
* Whether map controls appear; accessible enables keyboard navigation.
|
|
459
1137
|
*/
|
|
460
1138
|
includeControls?: 'yes' | 'no' | 'accessible';
|
|
461
1139
|
|
|
462
1140
|
/**
|
|
463
|
-
* Emit a
|
|
464
|
-
* can index the location.
|
|
1141
|
+
* Emit a schema.org Place JSON-LD block alongside the iframe.
|
|
465
1142
|
*/
|
|
466
1143
|
includeSEOSchema?: boolean;
|
|
467
1144
|
|
|
@@ -476,7 +1153,7 @@ export interface LocationEmbedCodeParams {
|
|
|
476
1153
|
theme?: 'default' | 'modern';
|
|
477
1154
|
|
|
478
1155
|
/**
|
|
479
|
-
* Initial map zoom level
|
|
1156
|
+
* Initial map zoom level from 1 to 20.
|
|
480
1157
|
*/
|
|
481
1158
|
zoom?: number;
|
|
482
1159
|
}
|
|
@@ -485,6 +1162,7 @@ export declare namespace Locations {
|
|
|
485
1162
|
export {
|
|
486
1163
|
type LocationListResponse as LocationListResponse,
|
|
487
1164
|
type LocationCreateResponse as LocationCreateResponse,
|
|
1165
|
+
type LocationRetrieveResponse as LocationRetrieveResponse,
|
|
488
1166
|
type LocationUpdateResponse as LocationUpdateResponse,
|
|
489
1167
|
type LocationEmbedCodeResponse as LocationEmbedCodeResponse,
|
|
490
1168
|
type LocationCreateParams as LocationCreateParams,
|