@oursprivacy/platform-sdk 1.68.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 +14 -0
- package/client.d.mts +7 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +7 -4
- 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/analytics.d.mts +10 -0
- package/resources/analytics.d.mts.map +1 -1
- package/resources/analytics.d.ts +10 -0
- package/resources/analytics.d.ts.map +1 -1
- package/resources/dashboards.d.mts +646 -4
- package/resources/dashboards.d.mts.map +1 -1
- package/resources/dashboards.d.ts +646 -4
- package/resources/dashboards.d.ts.map +1 -1
- package/resources/destinations.d.mts +7 -7
- package/resources/destinations.d.mts.map +1 -1
- package/resources/destinations.d.ts +7 -7
- package/resources/destinations.d.ts.map +1 -1
- package/resources/funnels.d.mts +253 -7
- package/resources/funnels.d.mts.map +1 -1
- package/resources/funnels.d.ts +253 -7
- package/resources/funnels.d.ts.map +1 -1
- package/resources/funnels.js +10 -7
- package/resources/funnels.js.map +1 -1
- package/resources/funnels.mjs +10 -7
- package/resources/funnels.mjs.map +1 -1
- package/resources/index.d.mts +3 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -2
- 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/insights.d.mts +73 -12
- package/resources/insights.d.mts.map +1 -1
- package/resources/insights.d.ts +73 -12
- package/resources/insights.d.ts.map +1 -1
- package/resources/insights.js +9 -7
- package/resources/insights.js.map +1 -1
- package/resources/insights.mjs +9 -7
- package/resources/insights.mjs.map +1 -1
- package/resources/journey-flows.d.mts +242 -18
- package/resources/journey-flows.d.mts.map +1 -1
- package/resources/journey-flows.d.ts +242 -18
- package/resources/journey-flows.d.ts.map +1 -1
- package/resources/journey-flows.js +18 -12
- package/resources/journey-flows.js.map +1 -1
- package/resources/journey-flows.mjs +18 -12
- package/resources/journey-flows.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/resources/query-events.d.mts +10 -0
- package/resources/query-events.d.mts.map +1 -1
- package/resources/query-events.d.ts +10 -0
- package/resources/query-events.d.ts.map +1 -1
- package/resources/report-branding.d.mts +112 -28
- package/resources/report-branding.d.mts.map +1 -1
- package/resources/report-branding.d.ts +112 -28
- package/resources/report-branding.d.ts.map +1 -1
- package/resources/report-branding.js +29 -15
- package/resources/report-branding.js.map +1 -1
- package/resources/report-branding.mjs +29 -15
- package/resources/report-branding.mjs.map +1 -1
- package/resources/sources.d.mts +6 -6
- package/resources/sources.d.mts.map +1 -1
- package/resources/sources.d.ts +6 -6
- package/resources/sources.d.ts.map +1 -1
- package/resources/test-events.d.mts +28 -0
- package/resources/test-events.d.mts.map +1 -1
- package/resources/test-events.d.ts +28 -0
- package/resources/test-events.d.ts.map +1 -1
- package/resources/web-analytics.d.mts +24 -0
- package/resources/web-analytics.d.mts.map +1 -1
- package/resources/web-analytics.d.ts +24 -0
- package/resources/web-analytics.d.ts.map +1 -1
- package/src/client.ts +29 -0
- package/src/resources/analytics.ts +12 -0
- package/src/resources/dashboards.ts +876 -8
- package/src/resources/destinations.ts +23 -2
- package/src/resources/funnels.ts +332 -7
- package/src/resources/index.ts +13 -0
- package/src/resources/insights.ts +107 -12
- package/src/resources/journey-flows.ts +300 -22
- package/src/resources/locations.ts +690 -12
- package/src/resources/query-dispatches.ts +323 -0
- package/src/resources/query-events.ts +12 -0
- package/src/resources/report-branding.ts +132 -27
- package/src/resources/sources.ts +12 -0
- package/src/resources/test-events.ts +33 -0
- package/src/resources/web-analytics.ts +40 -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
package/resources/locations.d.ts
CHANGED
|
@@ -15,12 +15,17 @@ export declare class Locations extends APIResource {
|
|
|
15
15
|
* Requires API-key scope or current OAuth user permission: maps:create
|
|
16
16
|
*/
|
|
17
17
|
create(body: LocationCreateParams, options?: RequestOptions): APIPromise<LocationCreateResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Retrieve a location and its address and map configuration by id. Requires
|
|
20
|
+
* API-key scope or current OAuth user permission: maps:find
|
|
21
|
+
*/
|
|
22
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<LocationRetrieveResponse>;
|
|
18
23
|
/**
|
|
19
24
|
* Partially update a location. Only the fields you send are changed.
|
|
20
25
|
* `additionalAddresses` is replaced wholesale when sent — partial item updates are
|
|
21
|
-
* not merged. The map's computed center is recalculated
|
|
22
|
-
*
|
|
23
|
-
* maps:update
|
|
26
|
+
* not merged. The map's computed center is recalculated from the latest
|
|
27
|
+
* coordinates unless you send `center` explicitly. Requires API-key scope or
|
|
28
|
+
* current OAuth user permission: maps:update
|
|
24
29
|
*/
|
|
25
30
|
update(id: string, body: LocationUpdateParams, options?: RequestOptions): APIPromise<LocationUpdateResponse>;
|
|
26
31
|
/**
|
|
@@ -35,217 +40,854 @@ export declare class Locations extends APIResource {
|
|
|
35
40
|
embedCode(id: string, query?: LocationEmbedCodeParams | null | undefined, options?: RequestOptions): APIPromise<LocationEmbedCodeResponse>;
|
|
36
41
|
}
|
|
37
42
|
export interface LocationListResponse {
|
|
43
|
+
/**
|
|
44
|
+
* Locations visible to this account.
|
|
45
|
+
*/
|
|
38
46
|
entities: Array<LocationListResponse.Entity>;
|
|
39
47
|
}
|
|
40
48
|
export declare namespace LocationListResponse {
|
|
41
49
|
interface Entity {
|
|
50
|
+
/**
|
|
51
|
+
* Unique id of the location.
|
|
52
|
+
*/
|
|
42
53
|
id: string;
|
|
54
|
+
/**
|
|
55
|
+
* Account that owns the location.
|
|
56
|
+
*/
|
|
43
57
|
accountId: string;
|
|
44
58
|
additionalAddresses?: Array<Entity.AdditionalAddress> | null;
|
|
59
|
+
/**
|
|
60
|
+
* Center point used to display the map.
|
|
61
|
+
*/
|
|
45
62
|
center?: Entity.Center | null;
|
|
63
|
+
/**
|
|
64
|
+
* City.
|
|
65
|
+
*/
|
|
46
66
|
city?: string | null;
|
|
67
|
+
/**
|
|
68
|
+
* Country.
|
|
69
|
+
*/
|
|
47
70
|
country?: string | null;
|
|
71
|
+
/**
|
|
72
|
+
* When the location was created.
|
|
73
|
+
*/
|
|
48
74
|
createdAt?: string | null;
|
|
75
|
+
/**
|
|
76
|
+
* Custom domain used by the map embed.
|
|
77
|
+
*/
|
|
49
78
|
customDomain?: string | null;
|
|
79
|
+
/**
|
|
80
|
+
* Latitude coordinate.
|
|
81
|
+
*/
|
|
50
82
|
latitude?: number | null;
|
|
83
|
+
/**
|
|
84
|
+
* First address line.
|
|
85
|
+
*/
|
|
51
86
|
line1?: string | null;
|
|
87
|
+
/**
|
|
88
|
+
* Second address line.
|
|
89
|
+
*/
|
|
52
90
|
line2?: string | null;
|
|
91
|
+
/**
|
|
92
|
+
* Longitude coordinate.
|
|
93
|
+
*/
|
|
53
94
|
longitude?: number | null;
|
|
95
|
+
/**
|
|
96
|
+
* Name of the map.
|
|
97
|
+
*/
|
|
54
98
|
mapName?: string | null;
|
|
99
|
+
/**
|
|
100
|
+
* Name of the location.
|
|
101
|
+
*/
|
|
55
102
|
name?: string | null;
|
|
103
|
+
/**
|
|
104
|
+
* Phone number for the location.
|
|
105
|
+
*/
|
|
56
106
|
phoneNumber?: string | null;
|
|
107
|
+
/**
|
|
108
|
+
* State or region.
|
|
109
|
+
*/
|
|
57
110
|
state?: string | null;
|
|
111
|
+
/**
|
|
112
|
+
* When the location was last updated.
|
|
113
|
+
*/
|
|
58
114
|
updatedAt?: string | null;
|
|
115
|
+
/**
|
|
116
|
+
* Link text for the website URL.
|
|
117
|
+
*/
|
|
59
118
|
websiteLinkText?: string | null;
|
|
119
|
+
/**
|
|
120
|
+
* Website URL for the location.
|
|
121
|
+
*/
|
|
60
122
|
websiteUrl?: string | null;
|
|
123
|
+
/**
|
|
124
|
+
* Postal code.
|
|
125
|
+
*/
|
|
61
126
|
zip?: string | null;
|
|
62
127
|
}
|
|
63
128
|
namespace Entity {
|
|
64
129
|
interface AdditionalAddress {
|
|
130
|
+
/**
|
|
131
|
+
* City.
|
|
132
|
+
*/
|
|
65
133
|
city?: string | null;
|
|
134
|
+
/**
|
|
135
|
+
* Country.
|
|
136
|
+
*/
|
|
66
137
|
country?: string | null;
|
|
138
|
+
/**
|
|
139
|
+
* Latitude coordinate.
|
|
140
|
+
*/
|
|
67
141
|
latitude?: number | null;
|
|
142
|
+
/**
|
|
143
|
+
* First address line.
|
|
144
|
+
*/
|
|
68
145
|
line1?: string | null;
|
|
146
|
+
/**
|
|
147
|
+
* Second address line.
|
|
148
|
+
*/
|
|
69
149
|
line2?: string | null;
|
|
150
|
+
/**
|
|
151
|
+
* Longitude coordinate.
|
|
152
|
+
*/
|
|
70
153
|
longitude?: number | null;
|
|
154
|
+
/**
|
|
155
|
+
* Name of this address.
|
|
156
|
+
*/
|
|
71
157
|
name?: string | null;
|
|
158
|
+
/**
|
|
159
|
+
* Phone number for this address.
|
|
160
|
+
*/
|
|
72
161
|
phoneNumber?: string | null;
|
|
162
|
+
/**
|
|
163
|
+
* State or region.
|
|
164
|
+
*/
|
|
73
165
|
state?: string | null;
|
|
166
|
+
/**
|
|
167
|
+
* Link text for the website URL.
|
|
168
|
+
*/
|
|
74
169
|
websiteLinkText?: string | null;
|
|
170
|
+
/**
|
|
171
|
+
* Website URL for this address.
|
|
172
|
+
*/
|
|
75
173
|
websiteUrl?: string | null;
|
|
174
|
+
/**
|
|
175
|
+
* Postal code.
|
|
176
|
+
*/
|
|
76
177
|
zip?: string | null;
|
|
77
178
|
}
|
|
179
|
+
/**
|
|
180
|
+
* Center point used to display the map.
|
|
181
|
+
*/
|
|
78
182
|
interface Center {
|
|
183
|
+
/**
|
|
184
|
+
* Latitude coordinate.
|
|
185
|
+
*/
|
|
79
186
|
latitude: number;
|
|
187
|
+
/**
|
|
188
|
+
* Longitude coordinate.
|
|
189
|
+
*/
|
|
80
190
|
longitude: number;
|
|
81
191
|
}
|
|
82
192
|
}
|
|
83
193
|
}
|
|
84
194
|
export interface LocationCreateResponse {
|
|
195
|
+
/**
|
|
196
|
+
* Unique id of the location.
|
|
197
|
+
*/
|
|
85
198
|
id: string;
|
|
199
|
+
/**
|
|
200
|
+
* Account that owns the location.
|
|
201
|
+
*/
|
|
86
202
|
accountId: string;
|
|
87
203
|
additionalAddresses?: Array<LocationCreateResponse.AdditionalAddress> | null;
|
|
204
|
+
/**
|
|
205
|
+
* Center point used to display the map.
|
|
206
|
+
*/
|
|
88
207
|
center?: LocationCreateResponse.Center | null;
|
|
208
|
+
/**
|
|
209
|
+
* City.
|
|
210
|
+
*/
|
|
89
211
|
city?: string | null;
|
|
212
|
+
/**
|
|
213
|
+
* Country.
|
|
214
|
+
*/
|
|
90
215
|
country?: string | null;
|
|
216
|
+
/**
|
|
217
|
+
* When the location was created.
|
|
218
|
+
*/
|
|
91
219
|
createdAt?: string | null;
|
|
220
|
+
/**
|
|
221
|
+
* Custom domain used by the map embed.
|
|
222
|
+
*/
|
|
92
223
|
customDomain?: string | null;
|
|
224
|
+
/**
|
|
225
|
+
* Latitude coordinate.
|
|
226
|
+
*/
|
|
93
227
|
latitude?: number | null;
|
|
228
|
+
/**
|
|
229
|
+
* First address line.
|
|
230
|
+
*/
|
|
94
231
|
line1?: string | null;
|
|
232
|
+
/**
|
|
233
|
+
* Second address line.
|
|
234
|
+
*/
|
|
95
235
|
line2?: string | null;
|
|
236
|
+
/**
|
|
237
|
+
* Longitude coordinate.
|
|
238
|
+
*/
|
|
96
239
|
longitude?: number | null;
|
|
240
|
+
/**
|
|
241
|
+
* Name of the map.
|
|
242
|
+
*/
|
|
97
243
|
mapName?: string | null;
|
|
244
|
+
/**
|
|
245
|
+
* Name of the location.
|
|
246
|
+
*/
|
|
98
247
|
name?: string | null;
|
|
248
|
+
/**
|
|
249
|
+
* Phone number for the location.
|
|
250
|
+
*/
|
|
99
251
|
phoneNumber?: string | null;
|
|
252
|
+
/**
|
|
253
|
+
* State or region.
|
|
254
|
+
*/
|
|
100
255
|
state?: string | null;
|
|
256
|
+
/**
|
|
257
|
+
* When the location was last updated.
|
|
258
|
+
*/
|
|
101
259
|
updatedAt?: string | null;
|
|
260
|
+
/**
|
|
261
|
+
* Link text for the website URL.
|
|
262
|
+
*/
|
|
102
263
|
websiteLinkText?: string | null;
|
|
264
|
+
/**
|
|
265
|
+
* Website URL for the location.
|
|
266
|
+
*/
|
|
103
267
|
websiteUrl?: string | null;
|
|
268
|
+
/**
|
|
269
|
+
* Postal code.
|
|
270
|
+
*/
|
|
104
271
|
zip?: string | null;
|
|
105
272
|
}
|
|
106
273
|
export declare namespace LocationCreateResponse {
|
|
107
274
|
interface AdditionalAddress {
|
|
275
|
+
/**
|
|
276
|
+
* City.
|
|
277
|
+
*/
|
|
278
|
+
city?: string | null;
|
|
279
|
+
/**
|
|
280
|
+
* Country.
|
|
281
|
+
*/
|
|
282
|
+
country?: string | null;
|
|
283
|
+
/**
|
|
284
|
+
* Latitude coordinate.
|
|
285
|
+
*/
|
|
286
|
+
latitude?: number | null;
|
|
287
|
+
/**
|
|
288
|
+
* First address line.
|
|
289
|
+
*/
|
|
290
|
+
line1?: string | null;
|
|
291
|
+
/**
|
|
292
|
+
* Second address line.
|
|
293
|
+
*/
|
|
294
|
+
line2?: string | null;
|
|
295
|
+
/**
|
|
296
|
+
* Longitude coordinate.
|
|
297
|
+
*/
|
|
298
|
+
longitude?: number | null;
|
|
299
|
+
/**
|
|
300
|
+
* Name of this address.
|
|
301
|
+
*/
|
|
302
|
+
name?: string | null;
|
|
303
|
+
/**
|
|
304
|
+
* Phone number for this address.
|
|
305
|
+
*/
|
|
306
|
+
phoneNumber?: string | null;
|
|
307
|
+
/**
|
|
308
|
+
* State or region.
|
|
309
|
+
*/
|
|
310
|
+
state?: string | null;
|
|
311
|
+
/**
|
|
312
|
+
* Link text for the website URL.
|
|
313
|
+
*/
|
|
314
|
+
websiteLinkText?: string | null;
|
|
315
|
+
/**
|
|
316
|
+
* Website URL for this address.
|
|
317
|
+
*/
|
|
318
|
+
websiteUrl?: string | null;
|
|
319
|
+
/**
|
|
320
|
+
* Postal code.
|
|
321
|
+
*/
|
|
322
|
+
zip?: string | null;
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* Center point used to display the map.
|
|
326
|
+
*/
|
|
327
|
+
interface Center {
|
|
328
|
+
/**
|
|
329
|
+
* Latitude coordinate.
|
|
330
|
+
*/
|
|
331
|
+
latitude: number;
|
|
332
|
+
/**
|
|
333
|
+
* Longitude coordinate.
|
|
334
|
+
*/
|
|
335
|
+
longitude: number;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
export interface LocationRetrieveResponse {
|
|
339
|
+
/**
|
|
340
|
+
* Unique id of the location.
|
|
341
|
+
*/
|
|
342
|
+
id: string;
|
|
343
|
+
/**
|
|
344
|
+
* Account that owns the location.
|
|
345
|
+
*/
|
|
346
|
+
accountId: string;
|
|
347
|
+
additionalAddresses?: Array<LocationRetrieveResponse.AdditionalAddress> | null;
|
|
348
|
+
/**
|
|
349
|
+
* Center point used to display the map.
|
|
350
|
+
*/
|
|
351
|
+
center?: LocationRetrieveResponse.Center | null;
|
|
352
|
+
/**
|
|
353
|
+
* City.
|
|
354
|
+
*/
|
|
355
|
+
city?: string | null;
|
|
356
|
+
/**
|
|
357
|
+
* Country.
|
|
358
|
+
*/
|
|
359
|
+
country?: string | null;
|
|
360
|
+
/**
|
|
361
|
+
* When the location was created.
|
|
362
|
+
*/
|
|
363
|
+
createdAt?: string | null;
|
|
364
|
+
/**
|
|
365
|
+
* Custom domain used by the map embed.
|
|
366
|
+
*/
|
|
367
|
+
customDomain?: string | null;
|
|
368
|
+
/**
|
|
369
|
+
* Latitude coordinate.
|
|
370
|
+
*/
|
|
371
|
+
latitude?: number | null;
|
|
372
|
+
/**
|
|
373
|
+
* First address line.
|
|
374
|
+
*/
|
|
375
|
+
line1?: string | null;
|
|
376
|
+
/**
|
|
377
|
+
* Second address line.
|
|
378
|
+
*/
|
|
379
|
+
line2?: string | null;
|
|
380
|
+
/**
|
|
381
|
+
* Longitude coordinate.
|
|
382
|
+
*/
|
|
383
|
+
longitude?: number | null;
|
|
384
|
+
/**
|
|
385
|
+
* Name of the map.
|
|
386
|
+
*/
|
|
387
|
+
mapName?: string | null;
|
|
388
|
+
/**
|
|
389
|
+
* Name of the location.
|
|
390
|
+
*/
|
|
391
|
+
name?: string | null;
|
|
392
|
+
/**
|
|
393
|
+
* Phone number for the location.
|
|
394
|
+
*/
|
|
395
|
+
phoneNumber?: string | null;
|
|
396
|
+
/**
|
|
397
|
+
* State or region.
|
|
398
|
+
*/
|
|
399
|
+
state?: string | null;
|
|
400
|
+
/**
|
|
401
|
+
* When the location was last updated.
|
|
402
|
+
*/
|
|
403
|
+
updatedAt?: string | null;
|
|
404
|
+
/**
|
|
405
|
+
* Link text for the website URL.
|
|
406
|
+
*/
|
|
407
|
+
websiteLinkText?: string | null;
|
|
408
|
+
/**
|
|
409
|
+
* Website URL for the location.
|
|
410
|
+
*/
|
|
411
|
+
websiteUrl?: string | null;
|
|
412
|
+
/**
|
|
413
|
+
* Postal code.
|
|
414
|
+
*/
|
|
415
|
+
zip?: string | null;
|
|
416
|
+
}
|
|
417
|
+
export declare namespace LocationRetrieveResponse {
|
|
418
|
+
interface AdditionalAddress {
|
|
419
|
+
/**
|
|
420
|
+
* City.
|
|
421
|
+
*/
|
|
108
422
|
city?: string | null;
|
|
423
|
+
/**
|
|
424
|
+
* Country.
|
|
425
|
+
*/
|
|
109
426
|
country?: string | null;
|
|
427
|
+
/**
|
|
428
|
+
* Latitude coordinate.
|
|
429
|
+
*/
|
|
110
430
|
latitude?: number | null;
|
|
431
|
+
/**
|
|
432
|
+
* First address line.
|
|
433
|
+
*/
|
|
111
434
|
line1?: string | null;
|
|
435
|
+
/**
|
|
436
|
+
* Second address line.
|
|
437
|
+
*/
|
|
112
438
|
line2?: string | null;
|
|
439
|
+
/**
|
|
440
|
+
* Longitude coordinate.
|
|
441
|
+
*/
|
|
113
442
|
longitude?: number | null;
|
|
443
|
+
/**
|
|
444
|
+
* Name of this address.
|
|
445
|
+
*/
|
|
114
446
|
name?: string | null;
|
|
447
|
+
/**
|
|
448
|
+
* Phone number for this address.
|
|
449
|
+
*/
|
|
115
450
|
phoneNumber?: string | null;
|
|
451
|
+
/**
|
|
452
|
+
* State or region.
|
|
453
|
+
*/
|
|
116
454
|
state?: string | null;
|
|
455
|
+
/**
|
|
456
|
+
* Link text for the website URL.
|
|
457
|
+
*/
|
|
117
458
|
websiteLinkText?: string | null;
|
|
459
|
+
/**
|
|
460
|
+
* Website URL for this address.
|
|
461
|
+
*/
|
|
118
462
|
websiteUrl?: string | null;
|
|
463
|
+
/**
|
|
464
|
+
* Postal code.
|
|
465
|
+
*/
|
|
119
466
|
zip?: string | null;
|
|
120
467
|
}
|
|
468
|
+
/**
|
|
469
|
+
* Center point used to display the map.
|
|
470
|
+
*/
|
|
121
471
|
interface Center {
|
|
472
|
+
/**
|
|
473
|
+
* Latitude coordinate.
|
|
474
|
+
*/
|
|
122
475
|
latitude: number;
|
|
476
|
+
/**
|
|
477
|
+
* Longitude coordinate.
|
|
478
|
+
*/
|
|
123
479
|
longitude: number;
|
|
124
480
|
}
|
|
125
481
|
}
|
|
126
482
|
export interface LocationUpdateResponse {
|
|
483
|
+
/**
|
|
484
|
+
* Unique id of the location.
|
|
485
|
+
*/
|
|
127
486
|
id: string;
|
|
487
|
+
/**
|
|
488
|
+
* Account that owns the location.
|
|
489
|
+
*/
|
|
128
490
|
accountId: string;
|
|
129
491
|
additionalAddresses?: Array<LocationUpdateResponse.AdditionalAddress> | null;
|
|
492
|
+
/**
|
|
493
|
+
* Center point used to display the map.
|
|
494
|
+
*/
|
|
130
495
|
center?: LocationUpdateResponse.Center | null;
|
|
496
|
+
/**
|
|
497
|
+
* City.
|
|
498
|
+
*/
|
|
131
499
|
city?: string | null;
|
|
500
|
+
/**
|
|
501
|
+
* Country.
|
|
502
|
+
*/
|
|
132
503
|
country?: string | null;
|
|
504
|
+
/**
|
|
505
|
+
* When the location was created.
|
|
506
|
+
*/
|
|
133
507
|
createdAt?: string | null;
|
|
508
|
+
/**
|
|
509
|
+
* Custom domain used by the map embed.
|
|
510
|
+
*/
|
|
134
511
|
customDomain?: string | null;
|
|
512
|
+
/**
|
|
513
|
+
* Latitude coordinate.
|
|
514
|
+
*/
|
|
135
515
|
latitude?: number | null;
|
|
516
|
+
/**
|
|
517
|
+
* First address line.
|
|
518
|
+
*/
|
|
136
519
|
line1?: string | null;
|
|
520
|
+
/**
|
|
521
|
+
* Second address line.
|
|
522
|
+
*/
|
|
137
523
|
line2?: string | null;
|
|
524
|
+
/**
|
|
525
|
+
* Longitude coordinate.
|
|
526
|
+
*/
|
|
138
527
|
longitude?: number | null;
|
|
528
|
+
/**
|
|
529
|
+
* Name of the map.
|
|
530
|
+
*/
|
|
139
531
|
mapName?: string | null;
|
|
532
|
+
/**
|
|
533
|
+
* Name of the location.
|
|
534
|
+
*/
|
|
140
535
|
name?: string | null;
|
|
536
|
+
/**
|
|
537
|
+
* Phone number for the location.
|
|
538
|
+
*/
|
|
141
539
|
phoneNumber?: string | null;
|
|
540
|
+
/**
|
|
541
|
+
* State or region.
|
|
542
|
+
*/
|
|
142
543
|
state?: string | null;
|
|
544
|
+
/**
|
|
545
|
+
* When the location was last updated.
|
|
546
|
+
*/
|
|
143
547
|
updatedAt?: string | null;
|
|
548
|
+
/**
|
|
549
|
+
* Link text for the website URL.
|
|
550
|
+
*/
|
|
144
551
|
websiteLinkText?: string | null;
|
|
552
|
+
/**
|
|
553
|
+
* Website URL for the location.
|
|
554
|
+
*/
|
|
145
555
|
websiteUrl?: string | null;
|
|
556
|
+
/**
|
|
557
|
+
* Postal code.
|
|
558
|
+
*/
|
|
146
559
|
zip?: string | null;
|
|
147
560
|
}
|
|
148
561
|
export declare namespace LocationUpdateResponse {
|
|
149
562
|
interface AdditionalAddress {
|
|
563
|
+
/**
|
|
564
|
+
* City.
|
|
565
|
+
*/
|
|
150
566
|
city?: string | null;
|
|
567
|
+
/**
|
|
568
|
+
* Country.
|
|
569
|
+
*/
|
|
151
570
|
country?: string | null;
|
|
571
|
+
/**
|
|
572
|
+
* Latitude coordinate.
|
|
573
|
+
*/
|
|
152
574
|
latitude?: number | null;
|
|
575
|
+
/**
|
|
576
|
+
* First address line.
|
|
577
|
+
*/
|
|
153
578
|
line1?: string | null;
|
|
579
|
+
/**
|
|
580
|
+
* Second address line.
|
|
581
|
+
*/
|
|
154
582
|
line2?: string | null;
|
|
583
|
+
/**
|
|
584
|
+
* Longitude coordinate.
|
|
585
|
+
*/
|
|
155
586
|
longitude?: number | null;
|
|
587
|
+
/**
|
|
588
|
+
* Name of this address.
|
|
589
|
+
*/
|
|
156
590
|
name?: string | null;
|
|
591
|
+
/**
|
|
592
|
+
* Phone number for this address.
|
|
593
|
+
*/
|
|
157
594
|
phoneNumber?: string | null;
|
|
595
|
+
/**
|
|
596
|
+
* State or region.
|
|
597
|
+
*/
|
|
158
598
|
state?: string | null;
|
|
599
|
+
/**
|
|
600
|
+
* Link text for the website URL.
|
|
601
|
+
*/
|
|
159
602
|
websiteLinkText?: string | null;
|
|
603
|
+
/**
|
|
604
|
+
* Website URL for this address.
|
|
605
|
+
*/
|
|
160
606
|
websiteUrl?: string | null;
|
|
607
|
+
/**
|
|
608
|
+
* Postal code.
|
|
609
|
+
*/
|
|
161
610
|
zip?: string | null;
|
|
162
611
|
}
|
|
612
|
+
/**
|
|
613
|
+
* Center point used to display the map.
|
|
614
|
+
*/
|
|
163
615
|
interface Center {
|
|
616
|
+
/**
|
|
617
|
+
* Latitude coordinate.
|
|
618
|
+
*/
|
|
164
619
|
latitude: number;
|
|
620
|
+
/**
|
|
621
|
+
* Longitude coordinate.
|
|
622
|
+
*/
|
|
165
623
|
longitude: number;
|
|
166
624
|
}
|
|
167
625
|
}
|
|
168
626
|
export interface LocationEmbedCodeResponse {
|
|
169
627
|
/**
|
|
170
|
-
*
|
|
171
|
-
* an optional JSON-LD `<script>`) ready to paste into any page. The iframe `src`
|
|
172
|
-
* points to the maps CDN for the current stage.
|
|
628
|
+
* Paste-ready HTML snippet containing the map iframe and optional JSON-LD.
|
|
173
629
|
*/
|
|
174
630
|
embedCode: string;
|
|
175
631
|
}
|
|
176
632
|
export interface LocationCreateParams {
|
|
633
|
+
/**
|
|
634
|
+
* Additional map locations.
|
|
635
|
+
*/
|
|
177
636
|
additionalAddresses?: Array<LocationCreateParams.AdditionalAddress> | null;
|
|
637
|
+
/**
|
|
638
|
+
* Center point used to display the map.
|
|
639
|
+
*/
|
|
178
640
|
center?: LocationCreateParams.Center | null;
|
|
641
|
+
/**
|
|
642
|
+
* City.
|
|
643
|
+
*/
|
|
179
644
|
city?: string | null;
|
|
645
|
+
/**
|
|
646
|
+
* Country.
|
|
647
|
+
*/
|
|
180
648
|
country?: string | null;
|
|
649
|
+
/**
|
|
650
|
+
* Custom domain used by the map embed.
|
|
651
|
+
*/
|
|
181
652
|
customDomain?: string | null;
|
|
653
|
+
/**
|
|
654
|
+
* Latitude coordinate.
|
|
655
|
+
*/
|
|
182
656
|
latitude?: number | null;
|
|
657
|
+
/**
|
|
658
|
+
* First address line.
|
|
659
|
+
*/
|
|
183
660
|
line1?: string | null;
|
|
661
|
+
/**
|
|
662
|
+
* Second address line.
|
|
663
|
+
*/
|
|
184
664
|
line2?: string | null;
|
|
665
|
+
/**
|
|
666
|
+
* Longitude coordinate.
|
|
667
|
+
*/
|
|
185
668
|
longitude?: number | null;
|
|
669
|
+
/**
|
|
670
|
+
* Name of the map.
|
|
671
|
+
*/
|
|
186
672
|
mapName?: string | null;
|
|
673
|
+
/**
|
|
674
|
+
* Name of the location.
|
|
675
|
+
*/
|
|
187
676
|
name?: string | null;
|
|
677
|
+
/**
|
|
678
|
+
* Phone number for the location.
|
|
679
|
+
*/
|
|
188
680
|
phoneNumber?: string | null;
|
|
681
|
+
/**
|
|
682
|
+
* State or region.
|
|
683
|
+
*/
|
|
189
684
|
state?: string | null;
|
|
685
|
+
/**
|
|
686
|
+
* Link text for the website URL.
|
|
687
|
+
*/
|
|
190
688
|
websiteLinkText?: string | null;
|
|
689
|
+
/**
|
|
690
|
+
* Website URL for the location.
|
|
691
|
+
*/
|
|
191
692
|
websiteUrl?: string | null;
|
|
693
|
+
/**
|
|
694
|
+
* Postal code.
|
|
695
|
+
*/
|
|
192
696
|
zip?: string | null;
|
|
193
697
|
}
|
|
194
698
|
export declare namespace LocationCreateParams {
|
|
195
699
|
interface AdditionalAddress {
|
|
700
|
+
/**
|
|
701
|
+
* Latitude coordinate.
|
|
702
|
+
*/
|
|
196
703
|
latitude: number;
|
|
704
|
+
/**
|
|
705
|
+
* Longitude coordinate.
|
|
706
|
+
*/
|
|
197
707
|
longitude: number;
|
|
708
|
+
/**
|
|
709
|
+
* City.
|
|
710
|
+
*/
|
|
198
711
|
city?: string | null;
|
|
712
|
+
/**
|
|
713
|
+
* Country.
|
|
714
|
+
*/
|
|
199
715
|
country?: string | null;
|
|
716
|
+
/**
|
|
717
|
+
* First address line.
|
|
718
|
+
*/
|
|
200
719
|
line1?: string | null;
|
|
720
|
+
/**
|
|
721
|
+
* Second address line.
|
|
722
|
+
*/
|
|
201
723
|
line2?: string | null;
|
|
724
|
+
/**
|
|
725
|
+
* Name of this address.
|
|
726
|
+
*/
|
|
202
727
|
name?: string | null;
|
|
728
|
+
/**
|
|
729
|
+
* Phone number for this address.
|
|
730
|
+
*/
|
|
203
731
|
phoneNumber?: string | null;
|
|
732
|
+
/**
|
|
733
|
+
* State or region.
|
|
734
|
+
*/
|
|
204
735
|
state?: string | null;
|
|
736
|
+
/**
|
|
737
|
+
* Link text for the website URL.
|
|
738
|
+
*/
|
|
205
739
|
websiteLinkText?: string | null;
|
|
740
|
+
/**
|
|
741
|
+
* Website URL for this address.
|
|
742
|
+
*/
|
|
206
743
|
websiteUrl?: string | null;
|
|
744
|
+
/**
|
|
745
|
+
* Postal code.
|
|
746
|
+
*/
|
|
207
747
|
zip?: string | null;
|
|
208
748
|
}
|
|
749
|
+
/**
|
|
750
|
+
* Center point used to display the map.
|
|
751
|
+
*/
|
|
209
752
|
interface Center {
|
|
753
|
+
/**
|
|
754
|
+
* Latitude coordinate.
|
|
755
|
+
*/
|
|
210
756
|
latitude: number;
|
|
757
|
+
/**
|
|
758
|
+
* Longitude coordinate.
|
|
759
|
+
*/
|
|
211
760
|
longitude: number;
|
|
212
761
|
}
|
|
213
762
|
}
|
|
214
763
|
export interface LocationUpdateParams {
|
|
764
|
+
/**
|
|
765
|
+
* Additional map locations.
|
|
766
|
+
*/
|
|
215
767
|
additionalAddresses?: Array<LocationUpdateParams.AdditionalAddress> | null;
|
|
768
|
+
/**
|
|
769
|
+
* Center point used to display the map.
|
|
770
|
+
*/
|
|
216
771
|
center?: LocationUpdateParams.Center | null;
|
|
772
|
+
/**
|
|
773
|
+
* City.
|
|
774
|
+
*/
|
|
217
775
|
city?: string | null;
|
|
776
|
+
/**
|
|
777
|
+
* Country.
|
|
778
|
+
*/
|
|
218
779
|
country?: string | null;
|
|
780
|
+
/**
|
|
781
|
+
* Custom domain used by the map embed.
|
|
782
|
+
*/
|
|
219
783
|
customDomain?: string | null;
|
|
784
|
+
/**
|
|
785
|
+
* Latitude coordinate.
|
|
786
|
+
*/
|
|
220
787
|
latitude?: number | null;
|
|
788
|
+
/**
|
|
789
|
+
* First address line.
|
|
790
|
+
*/
|
|
221
791
|
line1?: string | null;
|
|
792
|
+
/**
|
|
793
|
+
* Second address line.
|
|
794
|
+
*/
|
|
222
795
|
line2?: string | null;
|
|
796
|
+
/**
|
|
797
|
+
* Longitude coordinate.
|
|
798
|
+
*/
|
|
223
799
|
longitude?: number | null;
|
|
800
|
+
/**
|
|
801
|
+
* Name of the map.
|
|
802
|
+
*/
|
|
224
803
|
mapName?: string | null;
|
|
804
|
+
/**
|
|
805
|
+
* Name of the location.
|
|
806
|
+
*/
|
|
225
807
|
name?: string | null;
|
|
808
|
+
/**
|
|
809
|
+
* Phone number for the location.
|
|
810
|
+
*/
|
|
226
811
|
phoneNumber?: string | null;
|
|
812
|
+
/**
|
|
813
|
+
* State or region.
|
|
814
|
+
*/
|
|
227
815
|
state?: string | null;
|
|
816
|
+
/**
|
|
817
|
+
* Link text for the website URL.
|
|
818
|
+
*/
|
|
228
819
|
websiteLinkText?: string | null;
|
|
820
|
+
/**
|
|
821
|
+
* Website URL for the location.
|
|
822
|
+
*/
|
|
229
823
|
websiteUrl?: string | null;
|
|
824
|
+
/**
|
|
825
|
+
* Postal code.
|
|
826
|
+
*/
|
|
230
827
|
zip?: string | null;
|
|
231
828
|
}
|
|
232
829
|
export declare namespace LocationUpdateParams {
|
|
233
830
|
interface AdditionalAddress {
|
|
831
|
+
/**
|
|
832
|
+
* Latitude coordinate.
|
|
833
|
+
*/
|
|
234
834
|
latitude: number;
|
|
835
|
+
/**
|
|
836
|
+
* Longitude coordinate.
|
|
837
|
+
*/
|
|
235
838
|
longitude: number;
|
|
839
|
+
/**
|
|
840
|
+
* City.
|
|
841
|
+
*/
|
|
236
842
|
city?: string | null;
|
|
843
|
+
/**
|
|
844
|
+
* Country.
|
|
845
|
+
*/
|
|
237
846
|
country?: string | null;
|
|
847
|
+
/**
|
|
848
|
+
* First address line.
|
|
849
|
+
*/
|
|
238
850
|
line1?: string | null;
|
|
851
|
+
/**
|
|
852
|
+
* Second address line.
|
|
853
|
+
*/
|
|
239
854
|
line2?: string | null;
|
|
855
|
+
/**
|
|
856
|
+
* Name of this address.
|
|
857
|
+
*/
|
|
240
858
|
name?: string | null;
|
|
859
|
+
/**
|
|
860
|
+
* Phone number for this address.
|
|
861
|
+
*/
|
|
241
862
|
phoneNumber?: string | null;
|
|
863
|
+
/**
|
|
864
|
+
* State or region.
|
|
865
|
+
*/
|
|
242
866
|
state?: string | null;
|
|
867
|
+
/**
|
|
868
|
+
* Link text for the website URL.
|
|
869
|
+
*/
|
|
243
870
|
websiteLinkText?: string | null;
|
|
871
|
+
/**
|
|
872
|
+
* Website URL for this address.
|
|
873
|
+
*/
|
|
244
874
|
websiteUrl?: string | null;
|
|
875
|
+
/**
|
|
876
|
+
* Postal code.
|
|
877
|
+
*/
|
|
245
878
|
zip?: string | null;
|
|
246
879
|
}
|
|
880
|
+
/**
|
|
881
|
+
* Center point used to display the map.
|
|
882
|
+
*/
|
|
247
883
|
interface Center {
|
|
884
|
+
/**
|
|
885
|
+
* Latitude coordinate.
|
|
886
|
+
*/
|
|
248
887
|
latitude: number;
|
|
888
|
+
/**
|
|
889
|
+
* Longitude coordinate.
|
|
890
|
+
*/
|
|
249
891
|
longitude: number;
|
|
250
892
|
}
|
|
251
893
|
}
|
|
@@ -259,17 +901,15 @@ export interface LocationEmbedCodeParams {
|
|
|
259
901
|
*/
|
|
260
902
|
colorScheme?: 'light' | 'dark';
|
|
261
903
|
/**
|
|
262
|
-
* Render the address sidebar overlay next to the map. Send
|
|
904
|
+
* Render the address sidebar overlay next to the map. Send false to hide it.
|
|
263
905
|
*/
|
|
264
906
|
includeAddressBox?: boolean;
|
|
265
907
|
/**
|
|
266
|
-
* Whether
|
|
267
|
-
* controls.
|
|
908
|
+
* Whether map controls appear; accessible enables keyboard navigation.
|
|
268
909
|
*/
|
|
269
910
|
includeControls?: 'yes' | 'no' | 'accessible';
|
|
270
911
|
/**
|
|
271
|
-
* Emit a
|
|
272
|
-
* can index the location.
|
|
912
|
+
* Emit a schema.org Place JSON-LD block alongside the iframe.
|
|
273
913
|
*/
|
|
274
914
|
includeSEOSchema?: boolean;
|
|
275
915
|
/**
|
|
@@ -281,11 +921,11 @@ export interface LocationEmbedCodeParams {
|
|
|
281
921
|
*/
|
|
282
922
|
theme?: 'default' | 'modern';
|
|
283
923
|
/**
|
|
284
|
-
* Initial map zoom level
|
|
924
|
+
* Initial map zoom level from 1 to 20.
|
|
285
925
|
*/
|
|
286
926
|
zoom?: number;
|
|
287
927
|
}
|
|
288
928
|
export declare namespace Locations {
|
|
289
|
-
export { type LocationListResponse as LocationListResponse, type LocationCreateResponse as LocationCreateResponse, type LocationUpdateResponse as LocationUpdateResponse, type LocationEmbedCodeResponse as LocationEmbedCodeResponse, type LocationCreateParams as LocationCreateParams, type LocationUpdateParams as LocationUpdateParams, type LocationEmbedCodeParams as LocationEmbedCodeParams, };
|
|
929
|
+
export { type LocationListResponse as LocationListResponse, type LocationCreateResponse as LocationCreateResponse, type LocationRetrieveResponse as LocationRetrieveResponse, type LocationUpdateResponse as LocationUpdateResponse, type LocationEmbedCodeResponse as LocationEmbedCodeResponse, type LocationCreateParams as LocationCreateParams, type LocationUpdateParams as LocationUpdateParams, type LocationEmbedCodeParams as LocationEmbedCodeParams, };
|
|
290
930
|
}
|
|
291
931
|
//# sourceMappingURL=locations.d.ts.map
|