@oursprivacy/platform-sdk 1.52.0 → 1.54.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 +12 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +12 -6
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +2 -2
- package/resources/allowed-events.d.mts +9 -7
- package/resources/allowed-events.d.mts.map +1 -1
- package/resources/allowed-events.d.ts +9 -7
- package/resources/allowed-events.d.ts.map +1 -1
- package/resources/allowed-events.js +9 -7
- package/resources/allowed-events.js.map +1 -1
- package/resources/allowed-events.mjs +9 -7
- package/resources/allowed-events.mjs.map +1 -1
- package/resources/analytics.d.mts +4 -2
- package/resources/analytics.d.mts.map +1 -1
- package/resources/analytics.d.ts +4 -2
- package/resources/analytics.d.ts.map +1 -1
- package/resources/analytics.js +4 -2
- package/resources/analytics.js.map +1 -1
- package/resources/analytics.mjs +4 -2
- package/resources/analytics.mjs.map +1 -1
- package/resources/attribution.d.mts +8 -5
- package/resources/attribution.d.mts.map +1 -1
- package/resources/attribution.d.ts +8 -5
- package/resources/attribution.d.ts.map +1 -1
- package/resources/attribution.js +8 -5
- package/resources/attribution.js.map +1 -1
- package/resources/attribution.mjs +8 -5
- package/resources/attribution.mjs.map +1 -1
- package/resources/audience-conversion-reports.d.mts +11 -9
- package/resources/audience-conversion-reports.d.mts.map +1 -1
- package/resources/audience-conversion-reports.d.ts +11 -9
- package/resources/audience-conversion-reports.d.ts.map +1 -1
- package/resources/audience-conversion-reports.js +11 -9
- package/resources/audience-conversion-reports.js.map +1 -1
- package/resources/audience-conversion-reports.mjs +11 -9
- package/resources/audience-conversion-reports.mjs.map +1 -1
- package/resources/consent-analytics.d.mts +2 -1
- package/resources/consent-analytics.d.mts.map +1 -1
- package/resources/consent-analytics.d.ts +2 -1
- package/resources/consent-analytics.d.ts.map +1 -1
- package/resources/consent-analytics.js +2 -1
- package/resources/consent-analytics.js.map +1 -1
- package/resources/consent-analytics.mjs +2 -1
- package/resources/consent-analytics.mjs.map +1 -1
- package/resources/consent-settings.d.mts +6238 -650
- package/resources/consent-settings.d.mts.map +1 -1
- package/resources/consent-settings.d.ts +6238 -650
- package/resources/consent-settings.d.ts.map +1 -1
- package/resources/consent-settings.js +72 -34
- package/resources/consent-settings.js.map +1 -1
- package/resources/consent-settings.mjs +72 -34
- package/resources/consent-settings.mjs.map +1 -1
- package/resources/conversion-journey-summaries.d.mts +10 -5
- package/resources/conversion-journey-summaries.d.mts.map +1 -1
- package/resources/conversion-journey-summaries.d.ts +10 -5
- package/resources/conversion-journey-summaries.d.ts.map +1 -1
- package/resources/conversion-journey-summaries.js +10 -5
- package/resources/conversion-journey-summaries.js.map +1 -1
- package/resources/conversion-journey-summaries.mjs +10 -5
- package/resources/conversion-journey-summaries.mjs.map +1 -1
- package/resources/custom-domains.d.mts +301 -0
- package/resources/custom-domains.d.mts.map +1 -0
- package/resources/custom-domains.d.ts +301 -0
- package/resources/custom-domains.d.ts.map +1 -0
- package/resources/custom-domains.js +55 -0
- package/resources/custom-domains.js.map +1 -0
- package/resources/custom-domains.mjs +51 -0
- package/resources/custom-domains.mjs.map +1 -0
- package/resources/data-governance.d.mts +83 -21
- package/resources/data-governance.d.mts.map +1 -1
- package/resources/data-governance.d.ts +83 -21
- package/resources/data-governance.d.ts.map +1 -1
- package/resources/data-governance.js +8 -6
- package/resources/data-governance.js.map +1 -1
- package/resources/data-governance.mjs +8 -6
- package/resources/data-governance.mjs.map +1 -1
- package/resources/default-mappings.d.mts +213 -8
- package/resources/default-mappings.d.mts.map +1 -1
- package/resources/default-mappings.d.ts +213 -8
- package/resources/default-mappings.d.ts.map +1 -1
- package/resources/default-mappings.js +6 -5
- package/resources/default-mappings.js.map +1 -1
- package/resources/default-mappings.mjs +6 -5
- package/resources/default-mappings.mjs.map +1 -1
- package/resources/destinations.d.mts +45 -20
- package/resources/destinations.d.mts.map +1 -1
- package/resources/destinations.d.ts +45 -20
- package/resources/destinations.d.ts.map +1 -1
- package/resources/destinations.js +12 -7
- package/resources/destinations.js.map +1 -1
- package/resources/destinations.mjs +12 -7
- package/resources/destinations.mjs.map +1 -1
- package/resources/experiment-settings.d.mts +9 -6
- package/resources/experiment-settings.d.mts.map +1 -1
- package/resources/experiment-settings.d.ts +9 -6
- package/resources/experiment-settings.d.ts.map +1 -1
- package/resources/experiment-settings.js +9 -6
- package/resources/experiment-settings.js.map +1 -1
- package/resources/experiment-settings.mjs +9 -6
- package/resources/experiment-settings.mjs.map +1 -1
- package/resources/experiment-variants.d.mts +126 -19
- package/resources/experiment-variants.d.mts.map +1 -1
- package/resources/experiment-variants.d.ts +126 -19
- package/resources/experiment-variants.d.ts.map +1 -1
- package/resources/experiment-variants.js +9 -5
- package/resources/experiment-variants.js.map +1 -1
- package/resources/experiment-variants.mjs +9 -5
- package/resources/experiment-variants.mjs.map +1 -1
- package/resources/experiments.d.mts +4009 -272
- package/resources/experiments.d.mts.map +1 -1
- package/resources/experiments.d.ts +4009 -272
- package/resources/experiments.d.ts.map +1 -1
- package/resources/experiments.js +30 -19
- package/resources/experiments.js.map +1 -1
- package/resources/experiments.mjs +30 -19
- package/resources/experiments.mjs.map +1 -1
- package/resources/funnels.d.mts +659 -17
- package/resources/funnels.d.mts.map +1 -1
- package/resources/funnels.d.ts +659 -17
- package/resources/funnels.d.ts.map +1 -1
- package/resources/funnels.js +11 -10
- package/resources/funnels.js.map +1 -1
- package/resources/funnels.mjs +11 -10
- package/resources/funnels.mjs.map +1 -1
- package/resources/heatmap-pages.d.mts +3 -2
- package/resources/heatmap-pages.d.mts.map +1 -1
- package/resources/heatmap-pages.d.ts +3 -2
- package/resources/heatmap-pages.d.ts.map +1 -1
- package/resources/heatmap-pages.js +3 -2
- package/resources/heatmap-pages.js.map +1 -1
- package/resources/heatmap-pages.mjs +3 -2
- package/resources/heatmap-pages.mjs.map +1 -1
- package/resources/index.d.mts +5 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/journey-flows.d.mts +597 -28
- package/resources/journey-flows.d.mts.map +1 -1
- package/resources/journey-flows.d.ts +597 -28
- package/resources/journey-flows.d.ts.map +1 -1
- package/resources/journey-flows.js +17 -12
- package/resources/journey-flows.js.map +1 -1
- package/resources/journey-flows.mjs +17 -12
- package/resources/journey-flows.mjs.map +1 -1
- package/resources/locations.d.mts +31 -10
- package/resources/locations.d.mts.map +1 -1
- package/resources/locations.d.ts +31 -10
- package/resources/locations.d.ts.map +1 -1
- package/resources/locations.js +6 -5
- package/resources/locations.js.map +1 -1
- package/resources/locations.mjs +6 -5
- package/resources/locations.mjs.map +1 -1
- package/resources/mappings.d.mts +558 -24
- package/resources/mappings.d.mts.map +1 -1
- package/resources/mappings.d.ts +558 -24
- package/resources/mappings.d.ts.map +1 -1
- package/resources/mappings.js +40 -12
- package/resources/mappings.js.map +1 -1
- package/resources/mappings.mjs +40 -12
- package/resources/mappings.mjs.map +1 -1
- package/resources/me.d.mts +29 -0
- package/resources/me.d.mts.map +1 -0
- package/resources/me.d.ts +29 -0
- package/resources/me.d.ts.map +1 -0
- package/resources/me.js +17 -0
- package/resources/me.js.map +1 -0
- package/resources/me.mjs +13 -0
- package/resources/me.mjs.map +1 -0
- package/resources/personalization-properties.d.mts +10 -7
- package/resources/personalization-properties.d.mts.map +1 -1
- package/resources/personalization-properties.d.ts +10 -7
- package/resources/personalization-properties.d.ts.map +1 -1
- package/resources/personalization-properties.js +10 -7
- package/resources/personalization-properties.js.map +1 -1
- package/resources/personalization-properties.mjs +10 -7
- package/resources/personalization-properties.mjs.map +1 -1
- package/resources/replay-settings.d.mts +126 -9
- package/resources/replay-settings.d.mts.map +1 -1
- package/resources/replay-settings.d.ts +126 -9
- package/resources/replay-settings.d.ts.map +1 -1
- package/resources/replay-settings.js +9 -6
- package/resources/replay-settings.js.map +1 -1
- package/resources/replay-settings.mjs +9 -6
- package/resources/replay-settings.mjs.map +1 -1
- package/resources/session-replays.d.mts +9 -2
- package/resources/session-replays.d.mts.map +1 -1
- package/resources/session-replays.d.ts +9 -2
- package/resources/session-replays.d.ts.map +1 -1
- package/resources/session-replays.js +4 -2
- package/resources/session-replays.js.map +1 -1
- package/resources/session-replays.mjs +4 -2
- package/resources/session-replays.mjs.map +1 -1
- package/resources/short-links.d.mts +733 -17
- package/resources/short-links.d.mts.map +1 -1
- package/resources/short-links.d.ts +733 -17
- package/resources/short-links.d.ts.map +1 -1
- package/resources/short-links.js +11 -7
- package/resources/short-links.js.map +1 -1
- package/resources/short-links.mjs +11 -7
- package/resources/short-links.mjs.map +1 -1
- package/resources/sources.d.mts +98 -17
- package/resources/sources.d.mts.map +1 -1
- package/resources/sources.d.ts +98 -17
- package/resources/sources.d.ts.map +1 -1
- package/resources/sources.js +12 -6
- package/resources/sources.js.map +1 -1
- package/resources/sources.mjs +12 -6
- package/resources/sources.mjs.map +1 -1
- package/resources/tag-manager-asset-folders.d.mts +2 -1
- package/resources/tag-manager-asset-folders.d.mts.map +1 -1
- package/resources/tag-manager-asset-folders.d.ts +2 -1
- package/resources/tag-manager-asset-folders.d.ts.map +1 -1
- package/resources/tag-manager-asset-folders.js +2 -1
- package/resources/tag-manager-asset-folders.js.map +1 -1
- package/resources/tag-manager-asset-folders.mjs +2 -1
- package/resources/tag-manager-asset-folders.mjs.map +1 -1
- package/resources/tag-manager-folders.d.mts +9 -7
- package/resources/tag-manager-folders.d.mts.map +1 -1
- package/resources/tag-manager-folders.d.ts +9 -7
- package/resources/tag-manager-folders.d.ts.map +1 -1
- package/resources/tag-manager-folders.js +9 -7
- package/resources/tag-manager-folders.js.map +1 -1
- package/resources/tag-manager-folders.mjs +9 -7
- package/resources/tag-manager-folders.mjs.map +1 -1
- package/resources/tag-manager-tags.d.mts +13 -7
- package/resources/tag-manager-tags.d.mts.map +1 -1
- package/resources/tag-manager-tags.d.ts +13 -7
- package/resources/tag-manager-tags.d.ts.map +1 -1
- package/resources/tag-manager-tags.js +10 -6
- package/resources/tag-manager-tags.js.map +1 -1
- package/resources/tag-manager-tags.mjs +10 -6
- package/resources/tag-manager-tags.mjs.map +1 -1
- package/resources/tag-manager-triggers.d.mts +14 -7
- package/resources/tag-manager-triggers.d.mts.map +1 -1
- package/resources/tag-manager-triggers.d.ts +14 -7
- package/resources/tag-manager-triggers.d.ts.map +1 -1
- package/resources/tag-manager-triggers.js +11 -6
- package/resources/tag-manager-triggers.js.map +1 -1
- package/resources/tag-manager-triggers.mjs +11 -6
- package/resources/tag-manager-triggers.mjs.map +1 -1
- package/resources/tag-manager-variables.d.mts +53 -23
- package/resources/tag-manager-variables.d.mts.map +1 -1
- package/resources/tag-manager-variables.d.ts +53 -23
- package/resources/tag-manager-variables.d.ts.map +1 -1
- package/resources/tag-manager-variables.js +10 -6
- package/resources/tag-manager-variables.js.map +1 -1
- package/resources/tag-manager-variables.mjs +10 -6
- package/resources/tag-manager-variables.mjs.map +1 -1
- package/resources/tag-managers.d.mts +24 -6
- package/resources/tag-managers.d.mts.map +1 -1
- package/resources/tag-managers.d.ts +24 -6
- package/resources/tag-managers.d.ts.map +1 -1
- package/resources/tag-managers.js +18 -5
- package/resources/tag-managers.js.map +1 -1
- package/resources/tag-managers.mjs +18 -5
- package/resources/tag-managers.mjs.map +1 -1
- package/resources/test-events.d.mts +73 -15
- package/resources/test-events.d.mts.map +1 -1
- package/resources/test-events.d.ts +73 -15
- package/resources/test-events.d.ts.map +1 -1
- package/resources/test-events.js +6 -4
- package/resources/test-events.js.map +1 -1
- package/resources/test-events.mjs +6 -4
- package/resources/test-events.mjs.map +1 -1
- package/resources/translation-widgets.d.mts +7 -6
- package/resources/translation-widgets.d.mts.map +1 -1
- package/resources/translation-widgets.d.ts +7 -6
- package/resources/translation-widgets.d.ts.map +1 -1
- package/resources/translation-widgets.js +7 -6
- package/resources/translation-widgets.js.map +1 -1
- package/resources/translation-widgets.mjs +7 -6
- package/resources/translation-widgets.mjs.map +1 -1
- package/resources/versions.d.mts +102 -47
- package/resources/versions.d.mts.map +1 -1
- package/resources/versions.d.ts +102 -47
- package/resources/versions.d.ts.map +1 -1
- package/resources/versions.js +20 -15
- package/resources/versions.js.map +1 -1
- package/resources/versions.mjs +20 -15
- package/resources/versions.mjs.map +1 -1
- package/resources/video-channels.d.mts +47 -13
- package/resources/video-channels.d.mts.map +1 -1
- package/resources/video-channels.d.ts +47 -13
- package/resources/video-channels.d.ts.map +1 -1
- package/resources/video-channels.js +15 -9
- package/resources/video-channels.js.map +1 -1
- package/resources/video-channels.mjs +15 -9
- package/resources/video-channels.mjs.map +1 -1
- package/resources/videos.d.mts +21 -14
- package/resources/videos.d.mts.map +1 -1
- package/resources/videos.d.ts +21 -14
- package/resources/videos.d.ts.map +1 -1
- package/resources/videos.js +21 -14
- package/resources/videos.js.map +1 -1
- package/resources/videos.mjs +21 -14
- package/resources/videos.mjs.map +1 -1
- package/resources/web-analytics.d.mts +14 -9
- package/resources/web-analytics.d.mts.map +1 -1
- package/resources/web-analytics.d.ts +14 -9
- package/resources/web-analytics.d.ts.map +1 -1
- package/resources/web-analytics.js +14 -9
- package/resources/web-analytics.js.map +1 -1
- package/resources/web-analytics.mjs +14 -9
- package/resources/web-analytics.mjs.map +1 -1
- package/resources/web-scanner-rules.d.mts +10 -6
- package/resources/web-scanner-rules.d.mts.map +1 -1
- package/resources/web-scanner-rules.d.ts +10 -6
- package/resources/web-scanner-rules.d.ts.map +1 -1
- package/resources/web-scanner-rules.js +10 -6
- package/resources/web-scanner-rules.js.map +1 -1
- package/resources/web-scanner-rules.mjs +10 -6
- package/resources/web-scanner-rules.mjs.map +1 -1
- package/resources/web-scanners.d.mts +26 -19
- package/resources/web-scanners.d.mts.map +1 -1
- package/resources/web-scanners.d.ts +26 -19
- package/resources/web-scanners.d.ts.map +1 -1
- package/resources/web-scanners.js +25 -18
- package/resources/web-scanners.js.map +1 -1
- package/resources/web-scanners.mjs +25 -18
- package/resources/web-scanners.mjs.map +1 -1
- package/src/client.ts +44 -0
- package/src/resources/allowed-events.ts +9 -7
- package/src/resources/analytics.ts +4 -2
- package/src/resources/attribution.ts +8 -5
- package/src/resources/audience-conversion-reports.ts +11 -9
- package/src/resources/consent-analytics.ts +2 -1
- package/src/resources/consent-settings.ts +7576 -519
- package/src/resources/conversion-journey-summaries.ts +10 -5
- package/src/resources/custom-domains.ts +450 -0
- package/src/resources/data-governance.ts +53 -21
- package/src/resources/default-mappings.ts +309 -8
- package/src/resources/destinations.ts +40 -15
- package/src/resources/experiment-settings.ts +9 -6
- package/src/resources/experiment-variants.ts +140 -19
- package/src/resources/experiments.ts +8051 -462
- package/src/resources/funnels.ts +1366 -17
- package/src/resources/heatmap-pages.ts +3 -2
- package/src/resources/index.ts +19 -0
- package/src/resources/journey-flows.ts +1241 -28
- package/src/resources/locations.ts +41 -10
- package/src/resources/mappings.ts +812 -31
- package/src/resources/me.ts +37 -0
- package/src/resources/personalization-properties.ts +10 -7
- package/src/resources/replay-settings.ts +147 -9
- package/src/resources/session-replays.ts +10 -2
- package/src/resources/short-links.ts +883 -17
- package/src/resources/sources.ts +108 -17
- package/src/resources/tag-manager-asset-folders.ts +2 -1
- package/src/resources/tag-manager-folders.ts +9 -7
- package/src/resources/tag-manager-tags.ts +17 -7
- package/src/resources/tag-manager-triggers.ts +18 -7
- package/src/resources/tag-manager-variables.ts +101 -19
- package/src/resources/tag-managers.ts +35 -5
- package/src/resources/test-events.ts +53 -15
- package/src/resources/translation-widgets.ts +7 -6
- package/src/resources/versions.ts +104 -47
- package/src/resources/video-channels.ts +59 -13
- package/src/resources/videos.ts +21 -14
- package/src/resources/web-analytics.ts +14 -9
- package/src/resources/web-scanner-rules.ts +10 -6
- package/src/resources/web-scanners.ts +26 -19
- 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
|
@@ -8,8 +8,8 @@ const path_1 = require("../internal/utils/path.js");
|
|
|
8
8
|
class JourneyFlows extends resource_1.APIResource {
|
|
9
9
|
/**
|
|
10
10
|
* List saved Journey Flow configurations, most recently updated first. Supports
|
|
11
|
-
* cursor pagination and name/description search. Requires scope
|
|
12
|
-
* web-analytics:view
|
|
11
|
+
* cursor pagination and name/description search. Requires API-key scope or current
|
|
12
|
+
* OAuth user permission: web-analytics:view
|
|
13
13
|
*/
|
|
14
14
|
list(query = {}, options) {
|
|
15
15
|
return this._client.getAPIList('/rest/v1/journey-flows', (pagination_1.Cursor), {
|
|
@@ -20,14 +20,16 @@ class JourneyFlows extends resource_1.APIResource {
|
|
|
20
20
|
/**
|
|
21
21
|
* Save a validated Journey Flow configuration. Source ownership, UTC scope,
|
|
22
22
|
* bounded entry dates, and compiler-supported semantics are enforced by the
|
|
23
|
-
* GraphQL domain path. Requires scope
|
|
23
|
+
* GraphQL domain path. Requires API-key scope or current OAuth user permission:
|
|
24
|
+
* web-analytics:write
|
|
24
25
|
*/
|
|
25
26
|
create(body, options) {
|
|
26
27
|
return this._client.post('/rest/v1/journey-flows', { body, ...options });
|
|
27
28
|
}
|
|
28
29
|
/**
|
|
29
30
|
* Fetch a saved Journey Flow configuration by id. Returns 404 when it does not
|
|
30
|
-
* exist or is not readable by this account. Requires scope
|
|
31
|
+
* exist or is not readable by this account. Requires API-key scope or current
|
|
32
|
+
* OAuth user permission: web-analytics:view
|
|
31
33
|
*/
|
|
32
34
|
retrieve(id, options) {
|
|
33
35
|
return this._client.get((0, path_1.path) `/rest/v1/journey-flows/${id}`, options);
|
|
@@ -35,14 +37,16 @@ class JourneyFlows extends resource_1.APIResource {
|
|
|
35
37
|
/**
|
|
36
38
|
* Partially update a Journey Flow using expectedRevision for optimistic
|
|
37
39
|
* concurrency. Omitted top-level fields remain unchanged; nested values replace
|
|
38
|
-
* the complete nested value. Requires scope
|
|
40
|
+
* the complete nested value. Requires API-key scope or current OAuth user
|
|
41
|
+
* permission: web-analytics:write
|
|
39
42
|
*/
|
|
40
43
|
update(id, body, options) {
|
|
41
44
|
return this._client.patch((0, path_1.path) `/rest/v1/journey-flows/${id}`, { body, ...options });
|
|
42
45
|
}
|
|
43
46
|
/**
|
|
44
47
|
* Delete a Journey Flow using expectedRevision for optimistic concurrency. The
|
|
45
|
-
* response includes the deleted revision. Requires scope
|
|
48
|
+
* response includes the deleted revision. Requires API-key scope or current OAuth
|
|
49
|
+
* user permission: web-analytics:write
|
|
46
50
|
*/
|
|
47
51
|
delete(id, params, options) {
|
|
48
52
|
const { expectedRevision } = params;
|
|
@@ -53,16 +57,16 @@ class JourneyFlows extends resource_1.APIResource {
|
|
|
53
57
|
}
|
|
54
58
|
/**
|
|
55
59
|
* Return the currently supported Journey Flow counting modes, visualizations,
|
|
56
|
-
* matcher kinds, limits, and unsupported-feature flags. Requires scope
|
|
57
|
-
* web-analytics:view
|
|
60
|
+
* matcher kinds, limits, and unsupported-feature flags. Requires API-key scope or
|
|
61
|
+
* current OAuth user permission: web-analytics:view
|
|
58
62
|
*/
|
|
59
63
|
capabilities(options) {
|
|
60
64
|
return this._client.get('/rest/v1/journey-flows/capabilities', options);
|
|
61
65
|
}
|
|
62
66
|
/**
|
|
63
67
|
* Compute a saved Journey Flow result on demand. Requires expectedRevision and
|
|
64
|
-
* permits an optional complete report context override. Requires scope
|
|
65
|
-
* web-analytics:view
|
|
68
|
+
* permits an optional complete report context override. Requires API-key scope or
|
|
69
|
+
* current OAuth user permission: web-analytics:view
|
|
66
70
|
*/
|
|
67
71
|
results(id, query, options) {
|
|
68
72
|
return this._client.get((0, path_1.path) `/rest/v1/journey-flows/${id}/result`, { query, ...options });
|
|
@@ -72,7 +76,7 @@ class JourneyFlows extends resource_1.APIResource {
|
|
|
72
76
|
* counts, timing, graph and bounded Top Paths. Requires expectedRevision; display
|
|
73
77
|
* limits and omitted path weight are included. The response contains the CSV
|
|
74
78
|
* content and filename. Visitor and session samples are not included. Requires
|
|
75
|
-
* scope: web-analytics:view
|
|
79
|
+
* API-key scope or current OAuth user permission: web-analytics:view
|
|
76
80
|
*/
|
|
77
81
|
export(id, query, options) {
|
|
78
82
|
return this._client.get((0, path_1.path) `/rest/v1/journey-flows/${id}/export`, { query, ...options });
|
|
@@ -80,7 +84,8 @@ class JourneyFlows extends resource_1.APIResource {
|
|
|
80
84
|
/**
|
|
81
85
|
* Compute a bounded preview from a serialized Journey Flow definition, report
|
|
82
86
|
* context, and view. Use GraphQL when the serialized input exceeds the HTTP URL
|
|
83
|
-
* budget. Requires scope
|
|
87
|
+
* budget. Requires API-key scope or current OAuth user permission:
|
|
88
|
+
* web-analytics:view
|
|
84
89
|
*/
|
|
85
90
|
preview(query, options) {
|
|
86
91
|
return this._client.get('/rest/v1/journey-flows/preview', { query, ...options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"journey-flows.js","sourceRoot":"","sources":["../src/resources/journey-flows.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAA4E;AAE5E,oDAA8C;AAE9C,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;OAIG;IACH,IAAI,CACF,QAAkD,EAAE,EACpD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,wBAAwB,EAAE,CAAA,mBAA+B,CAAA,EAAE;YACxF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"journey-flows.js","sourceRoot":"","sources":["../src/resources/journey-flows.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAA4E;AAE5E,oDAA8C;AAE9C,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;OAIG;IACH,IAAI,CACF,QAAkD,EAAE,EACpD,OAAwB;QAExB,OAAO,IAA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CAAC,IAAA,WAAI,EAAA,0BAA0B,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CACJ,EAAU,EACV,KAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,0BAA0B,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED;;;;;OAKG;IACH,OAAO,CAAC,KAA+B,EAAE,OAAwB;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gCAAgC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;CACF;AAhHD,oCAgHC"}
|
|
@@ -5,8 +5,8 @@ import { path } from "../internal/utils/path.mjs";
|
|
|
5
5
|
export class JourneyFlows extends APIResource {
|
|
6
6
|
/**
|
|
7
7
|
* List saved Journey Flow configurations, most recently updated first. Supports
|
|
8
|
-
* cursor pagination and name/description search. Requires scope
|
|
9
|
-
* web-analytics:view
|
|
8
|
+
* cursor pagination and name/description search. Requires API-key scope or current
|
|
9
|
+
* OAuth user permission: web-analytics:view
|
|
10
10
|
*/
|
|
11
11
|
list(query = {}, options) {
|
|
12
12
|
return this._client.getAPIList('/rest/v1/journey-flows', (Cursor), {
|
|
@@ -17,14 +17,16 @@ export class JourneyFlows extends APIResource {
|
|
|
17
17
|
/**
|
|
18
18
|
* Save a validated Journey Flow configuration. Source ownership, UTC scope,
|
|
19
19
|
* bounded entry dates, and compiler-supported semantics are enforced by the
|
|
20
|
-
* GraphQL domain path. Requires scope
|
|
20
|
+
* GraphQL domain path. Requires API-key scope or current OAuth user permission:
|
|
21
|
+
* web-analytics:write
|
|
21
22
|
*/
|
|
22
23
|
create(body, options) {
|
|
23
24
|
return this._client.post('/rest/v1/journey-flows', { body, ...options });
|
|
24
25
|
}
|
|
25
26
|
/**
|
|
26
27
|
* Fetch a saved Journey Flow configuration by id. Returns 404 when it does not
|
|
27
|
-
* exist or is not readable by this account. Requires scope
|
|
28
|
+
* exist or is not readable by this account. Requires API-key scope or current
|
|
29
|
+
* OAuth user permission: web-analytics:view
|
|
28
30
|
*/
|
|
29
31
|
retrieve(id, options) {
|
|
30
32
|
return this._client.get(path `/rest/v1/journey-flows/${id}`, options);
|
|
@@ -32,14 +34,16 @@ export class JourneyFlows extends APIResource {
|
|
|
32
34
|
/**
|
|
33
35
|
* Partially update a Journey Flow using expectedRevision for optimistic
|
|
34
36
|
* concurrency. Omitted top-level fields remain unchanged; nested values replace
|
|
35
|
-
* the complete nested value. Requires scope
|
|
37
|
+
* the complete nested value. Requires API-key scope or current OAuth user
|
|
38
|
+
* permission: web-analytics:write
|
|
36
39
|
*/
|
|
37
40
|
update(id, body, options) {
|
|
38
41
|
return this._client.patch(path `/rest/v1/journey-flows/${id}`, { body, ...options });
|
|
39
42
|
}
|
|
40
43
|
/**
|
|
41
44
|
* Delete a Journey Flow using expectedRevision for optimistic concurrency. The
|
|
42
|
-
* response includes the deleted revision. Requires scope
|
|
45
|
+
* response includes the deleted revision. Requires API-key scope or current OAuth
|
|
46
|
+
* user permission: web-analytics:write
|
|
43
47
|
*/
|
|
44
48
|
delete(id, params, options) {
|
|
45
49
|
const { expectedRevision } = params;
|
|
@@ -50,16 +54,16 @@ export class JourneyFlows extends APIResource {
|
|
|
50
54
|
}
|
|
51
55
|
/**
|
|
52
56
|
* Return the currently supported Journey Flow counting modes, visualizations,
|
|
53
|
-
* matcher kinds, limits, and unsupported-feature flags. Requires scope
|
|
54
|
-
* web-analytics:view
|
|
57
|
+
* matcher kinds, limits, and unsupported-feature flags. Requires API-key scope or
|
|
58
|
+
* current OAuth user permission: web-analytics:view
|
|
55
59
|
*/
|
|
56
60
|
capabilities(options) {
|
|
57
61
|
return this._client.get('/rest/v1/journey-flows/capabilities', options);
|
|
58
62
|
}
|
|
59
63
|
/**
|
|
60
64
|
* Compute a saved Journey Flow result on demand. Requires expectedRevision and
|
|
61
|
-
* permits an optional complete report context override. Requires scope
|
|
62
|
-
* web-analytics:view
|
|
65
|
+
* permits an optional complete report context override. Requires API-key scope or
|
|
66
|
+
* current OAuth user permission: web-analytics:view
|
|
63
67
|
*/
|
|
64
68
|
results(id, query, options) {
|
|
65
69
|
return this._client.get(path `/rest/v1/journey-flows/${id}/result`, { query, ...options });
|
|
@@ -69,7 +73,7 @@ export class JourneyFlows extends APIResource {
|
|
|
69
73
|
* counts, timing, graph and bounded Top Paths. Requires expectedRevision; display
|
|
70
74
|
* limits and omitted path weight are included. The response contains the CSV
|
|
71
75
|
* content and filename. Visitor and session samples are not included. Requires
|
|
72
|
-
* scope: web-analytics:view
|
|
76
|
+
* API-key scope or current OAuth user permission: web-analytics:view
|
|
73
77
|
*/
|
|
74
78
|
export(id, query, options) {
|
|
75
79
|
return this._client.get(path `/rest/v1/journey-flows/${id}/export`, { query, ...options });
|
|
@@ -77,7 +81,8 @@ export class JourneyFlows extends APIResource {
|
|
|
77
81
|
/**
|
|
78
82
|
* Compute a bounded preview from a serialized Journey Flow definition, report
|
|
79
83
|
* context, and view. Use GraphQL when the serialized input exceeds the HTTP URL
|
|
80
|
-
* budget. Requires scope
|
|
84
|
+
* budget. Requires API-key scope or current OAuth user permission:
|
|
85
|
+
* web-analytics:view
|
|
81
86
|
*/
|
|
82
87
|
preview(query, options) {
|
|
83
88
|
return this._client.get('/rest/v1/journey-flows/preview', { query, ...options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"journey-flows.mjs","sourceRoot":"","sources":["../src/resources/journey-flows.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAAE,MAAM,EAAkC,+BAA2B;AAE5E,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,YAAa,SAAQ,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C;IAED;;;;OAIG;IACH,MAAM,CACJ,EAAU,EACV,MAA+B,EAC/B,OAAwB;QAExB,MAAM,EAAE,gBAAgB,EAAE,GAAG,MAAM,CAAC;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,0BAA0B,EAAE,EAAE,EAAE;YAC7D,KAAK,EAAE,EAAE,gBAAgB,EAAE;YAC3B,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;OAIG;IACH,YAAY,CAAC,OAAwB;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qCAAqC,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;IAED;;;;OAIG;IACH,OAAO,CACL,EAAU,EACV,KAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,0BAA0B,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CACJ,EAAU,EACV,KAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,0BAA0B,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED;;;;;OAKG;IACH,OAAO,CAAC,KAA+B,EAAE,OAAwB;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gCAAgC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;CACF"}
|
|
@@ -5,21 +5,22 @@ export declare class Locations extends APIResource {
|
|
|
5
5
|
/**
|
|
6
6
|
* List every location for this account. Not paginated — each account has a small
|
|
7
7
|
* map-count limit (single digits in practice) so the response always fits in a
|
|
8
|
-
* single page. Requires scope: maps:list
|
|
8
|
+
* single page. Requires API-key scope or current OAuth user permission: maps:list
|
|
9
9
|
*/
|
|
10
10
|
list(options?: RequestOptions): APIPromise<LocationListResponse>;
|
|
11
11
|
/**
|
|
12
12
|
* Create a new location (map embed). All address fields are optional and can be
|
|
13
13
|
* filled in later via PATCH. Returns the slim entity with the server-assigned `id`
|
|
14
14
|
* so callers can immediately request `GET /rest/v1/locations/{id}/embed-code`.
|
|
15
|
-
* Requires scope: maps:create
|
|
15
|
+
* Requires API-key scope or current OAuth user permission: maps:create
|
|
16
16
|
*/
|
|
17
17
|
create(body: LocationCreateParams, options?: RequestOptions): APIPromise<LocationCreateResponse>;
|
|
18
18
|
/**
|
|
19
19
|
* Partially update a location. Only the fields you send are changed.
|
|
20
20
|
* `additionalAddresses` is replaced wholesale when sent — partial item updates are
|
|
21
21
|
* not merged. The map's computed center is recalculated on every PATCH from the
|
|
22
|
-
* latest coordinates. Requires scope
|
|
22
|
+
* latest coordinates. Requires API-key scope or current OAuth user permission:
|
|
23
|
+
* maps:update
|
|
23
24
|
*/
|
|
24
25
|
update(id: string, body: LocationUpdateParams, options?: RequestOptions): APIPromise<LocationUpdateResponse>;
|
|
25
26
|
/**
|
|
@@ -28,8 +29,8 @@ export declare class Locations extends APIResource {
|
|
|
28
29
|
* `<iframe>` pointed at the Ours Privacy maps CDN, plus an optional JSON-LD
|
|
29
30
|
* `<script>`). Customize the render with the optional query params (`color`,
|
|
30
31
|
* `theme`, `colorScheme`, `mapStyle`, `includeAddressBox`, `zoom`,
|
|
31
|
-
* `includeControls`, `includeSEOSchema`); all have sane defaults. Requires
|
|
32
|
-
* maps:find
|
|
32
|
+
* `includeControls`, `includeSEOSchema`); all have sane defaults. Requires API-key
|
|
33
|
+
* scope or current OAuth user permission: maps:find
|
|
33
34
|
*/
|
|
34
35
|
embedCode(id: string, query?: LocationEmbedCodeParams | null | undefined, options?: RequestOptions): APIPromise<LocationEmbedCodeResponse>;
|
|
35
36
|
}
|
|
@@ -41,7 +42,7 @@ export declare namespace LocationListResponse {
|
|
|
41
42
|
id: string;
|
|
42
43
|
accountId: string;
|
|
43
44
|
additionalAddresses?: Array<Entity.AdditionalAddress> | null;
|
|
44
|
-
center?:
|
|
45
|
+
center?: Entity.Center | null;
|
|
45
46
|
city?: string | null;
|
|
46
47
|
country?: string | null;
|
|
47
48
|
createdAt?: string | null;
|
|
@@ -74,13 +75,17 @@ export declare namespace LocationListResponse {
|
|
|
74
75
|
websiteUrl?: string | null;
|
|
75
76
|
zip?: string | null;
|
|
76
77
|
}
|
|
78
|
+
interface Center {
|
|
79
|
+
latitude: number;
|
|
80
|
+
longitude: number;
|
|
81
|
+
}
|
|
77
82
|
}
|
|
78
83
|
}
|
|
79
84
|
export interface LocationCreateResponse {
|
|
80
85
|
id: string;
|
|
81
86
|
accountId: string;
|
|
82
87
|
additionalAddresses?: Array<LocationCreateResponse.AdditionalAddress> | null;
|
|
83
|
-
center?:
|
|
88
|
+
center?: LocationCreateResponse.Center | null;
|
|
84
89
|
city?: string | null;
|
|
85
90
|
country?: string | null;
|
|
86
91
|
createdAt?: string | null;
|
|
@@ -113,12 +118,16 @@ export declare namespace LocationCreateResponse {
|
|
|
113
118
|
websiteUrl?: string | null;
|
|
114
119
|
zip?: string | null;
|
|
115
120
|
}
|
|
121
|
+
interface Center {
|
|
122
|
+
latitude: number;
|
|
123
|
+
longitude: number;
|
|
124
|
+
}
|
|
116
125
|
}
|
|
117
126
|
export interface LocationUpdateResponse {
|
|
118
127
|
id: string;
|
|
119
128
|
accountId: string;
|
|
120
129
|
additionalAddresses?: Array<LocationUpdateResponse.AdditionalAddress> | null;
|
|
121
|
-
center?:
|
|
130
|
+
center?: LocationUpdateResponse.Center | null;
|
|
122
131
|
city?: string | null;
|
|
123
132
|
country?: string | null;
|
|
124
133
|
createdAt?: string | null;
|
|
@@ -151,6 +160,10 @@ export declare namespace LocationUpdateResponse {
|
|
|
151
160
|
websiteUrl?: string | null;
|
|
152
161
|
zip?: string | null;
|
|
153
162
|
}
|
|
163
|
+
interface Center {
|
|
164
|
+
latitude: number;
|
|
165
|
+
longitude: number;
|
|
166
|
+
}
|
|
154
167
|
}
|
|
155
168
|
export interface LocationEmbedCodeResponse {
|
|
156
169
|
/**
|
|
@@ -162,7 +175,7 @@ export interface LocationEmbedCodeResponse {
|
|
|
162
175
|
}
|
|
163
176
|
export interface LocationCreateParams {
|
|
164
177
|
additionalAddresses?: Array<LocationCreateParams.AdditionalAddress> | null;
|
|
165
|
-
center?:
|
|
178
|
+
center?: LocationCreateParams.Center | null;
|
|
166
179
|
city?: string | null;
|
|
167
180
|
country?: string | null;
|
|
168
181
|
customDomain?: string | null;
|
|
@@ -193,10 +206,14 @@ export declare namespace LocationCreateParams {
|
|
|
193
206
|
websiteUrl?: string | null;
|
|
194
207
|
zip?: string | null;
|
|
195
208
|
}
|
|
209
|
+
interface Center {
|
|
210
|
+
latitude: number;
|
|
211
|
+
longitude: number;
|
|
212
|
+
}
|
|
196
213
|
}
|
|
197
214
|
export interface LocationUpdateParams {
|
|
198
215
|
additionalAddresses?: Array<LocationUpdateParams.AdditionalAddress> | null;
|
|
199
|
-
center?:
|
|
216
|
+
center?: LocationUpdateParams.Center | null;
|
|
200
217
|
city?: string | null;
|
|
201
218
|
country?: string | null;
|
|
202
219
|
customDomain?: string | null;
|
|
@@ -227,6 +244,10 @@ export declare namespace LocationUpdateParams {
|
|
|
227
244
|
websiteUrl?: string | null;
|
|
228
245
|
zip?: string | null;
|
|
229
246
|
}
|
|
247
|
+
interface Center {
|
|
248
|
+
latitude: number;
|
|
249
|
+
longitude: number;
|
|
250
|
+
}
|
|
230
251
|
}
|
|
231
252
|
export interface LocationEmbedCodeParams {
|
|
232
253
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locations.d.mts","sourceRoot":"","sources":["../src/resources/locations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,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GAAG,YAAY,CAAC;IAE9C;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;OAEG;IACH,QAAQ,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;IAErC;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;IAE7B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
package/resources/locations.d.ts
CHANGED
|
@@ -5,21 +5,22 @@ export declare class Locations extends APIResource {
|
|
|
5
5
|
/**
|
|
6
6
|
* List every location for this account. Not paginated — each account has a small
|
|
7
7
|
* map-count limit (single digits in practice) so the response always fits in a
|
|
8
|
-
* single page. Requires scope: maps:list
|
|
8
|
+
* single page. Requires API-key scope or current OAuth user permission: maps:list
|
|
9
9
|
*/
|
|
10
10
|
list(options?: RequestOptions): APIPromise<LocationListResponse>;
|
|
11
11
|
/**
|
|
12
12
|
* Create a new location (map embed). All address fields are optional and can be
|
|
13
13
|
* filled in later via PATCH. Returns the slim entity with the server-assigned `id`
|
|
14
14
|
* so callers can immediately request `GET /rest/v1/locations/{id}/embed-code`.
|
|
15
|
-
* Requires scope: maps:create
|
|
15
|
+
* Requires API-key scope or current OAuth user permission: maps:create
|
|
16
16
|
*/
|
|
17
17
|
create(body: LocationCreateParams, options?: RequestOptions): APIPromise<LocationCreateResponse>;
|
|
18
18
|
/**
|
|
19
19
|
* Partially update a location. Only the fields you send are changed.
|
|
20
20
|
* `additionalAddresses` is replaced wholesale when sent — partial item updates are
|
|
21
21
|
* not merged. The map's computed center is recalculated on every PATCH from the
|
|
22
|
-
* latest coordinates. Requires scope
|
|
22
|
+
* latest coordinates. Requires API-key scope or current OAuth user permission:
|
|
23
|
+
* maps:update
|
|
23
24
|
*/
|
|
24
25
|
update(id: string, body: LocationUpdateParams, options?: RequestOptions): APIPromise<LocationUpdateResponse>;
|
|
25
26
|
/**
|
|
@@ -28,8 +29,8 @@ export declare class Locations extends APIResource {
|
|
|
28
29
|
* `<iframe>` pointed at the Ours Privacy maps CDN, plus an optional JSON-LD
|
|
29
30
|
* `<script>`). Customize the render with the optional query params (`color`,
|
|
30
31
|
* `theme`, `colorScheme`, `mapStyle`, `includeAddressBox`, `zoom`,
|
|
31
|
-
* `includeControls`, `includeSEOSchema`); all have sane defaults. Requires
|
|
32
|
-
* maps:find
|
|
32
|
+
* `includeControls`, `includeSEOSchema`); all have sane defaults. Requires API-key
|
|
33
|
+
* scope or current OAuth user permission: maps:find
|
|
33
34
|
*/
|
|
34
35
|
embedCode(id: string, query?: LocationEmbedCodeParams | null | undefined, options?: RequestOptions): APIPromise<LocationEmbedCodeResponse>;
|
|
35
36
|
}
|
|
@@ -41,7 +42,7 @@ export declare namespace LocationListResponse {
|
|
|
41
42
|
id: string;
|
|
42
43
|
accountId: string;
|
|
43
44
|
additionalAddresses?: Array<Entity.AdditionalAddress> | null;
|
|
44
|
-
center?:
|
|
45
|
+
center?: Entity.Center | null;
|
|
45
46
|
city?: string | null;
|
|
46
47
|
country?: string | null;
|
|
47
48
|
createdAt?: string | null;
|
|
@@ -74,13 +75,17 @@ export declare namespace LocationListResponse {
|
|
|
74
75
|
websiteUrl?: string | null;
|
|
75
76
|
zip?: string | null;
|
|
76
77
|
}
|
|
78
|
+
interface Center {
|
|
79
|
+
latitude: number;
|
|
80
|
+
longitude: number;
|
|
81
|
+
}
|
|
77
82
|
}
|
|
78
83
|
}
|
|
79
84
|
export interface LocationCreateResponse {
|
|
80
85
|
id: string;
|
|
81
86
|
accountId: string;
|
|
82
87
|
additionalAddresses?: Array<LocationCreateResponse.AdditionalAddress> | null;
|
|
83
|
-
center?:
|
|
88
|
+
center?: LocationCreateResponse.Center | null;
|
|
84
89
|
city?: string | null;
|
|
85
90
|
country?: string | null;
|
|
86
91
|
createdAt?: string | null;
|
|
@@ -113,12 +118,16 @@ export declare namespace LocationCreateResponse {
|
|
|
113
118
|
websiteUrl?: string | null;
|
|
114
119
|
zip?: string | null;
|
|
115
120
|
}
|
|
121
|
+
interface Center {
|
|
122
|
+
latitude: number;
|
|
123
|
+
longitude: number;
|
|
124
|
+
}
|
|
116
125
|
}
|
|
117
126
|
export interface LocationUpdateResponse {
|
|
118
127
|
id: string;
|
|
119
128
|
accountId: string;
|
|
120
129
|
additionalAddresses?: Array<LocationUpdateResponse.AdditionalAddress> | null;
|
|
121
|
-
center?:
|
|
130
|
+
center?: LocationUpdateResponse.Center | null;
|
|
122
131
|
city?: string | null;
|
|
123
132
|
country?: string | null;
|
|
124
133
|
createdAt?: string | null;
|
|
@@ -151,6 +160,10 @@ export declare namespace LocationUpdateResponse {
|
|
|
151
160
|
websiteUrl?: string | null;
|
|
152
161
|
zip?: string | null;
|
|
153
162
|
}
|
|
163
|
+
interface Center {
|
|
164
|
+
latitude: number;
|
|
165
|
+
longitude: number;
|
|
166
|
+
}
|
|
154
167
|
}
|
|
155
168
|
export interface LocationEmbedCodeResponse {
|
|
156
169
|
/**
|
|
@@ -162,7 +175,7 @@ export interface LocationEmbedCodeResponse {
|
|
|
162
175
|
}
|
|
163
176
|
export interface LocationCreateParams {
|
|
164
177
|
additionalAddresses?: Array<LocationCreateParams.AdditionalAddress> | null;
|
|
165
|
-
center?:
|
|
178
|
+
center?: LocationCreateParams.Center | null;
|
|
166
179
|
city?: string | null;
|
|
167
180
|
country?: string | null;
|
|
168
181
|
customDomain?: string | null;
|
|
@@ -193,10 +206,14 @@ export declare namespace LocationCreateParams {
|
|
|
193
206
|
websiteUrl?: string | null;
|
|
194
207
|
zip?: string | null;
|
|
195
208
|
}
|
|
209
|
+
interface Center {
|
|
210
|
+
latitude: number;
|
|
211
|
+
longitude: number;
|
|
212
|
+
}
|
|
196
213
|
}
|
|
197
214
|
export interface LocationUpdateParams {
|
|
198
215
|
additionalAddresses?: Array<LocationUpdateParams.AdditionalAddress> | null;
|
|
199
|
-
center?:
|
|
216
|
+
center?: LocationUpdateParams.Center | null;
|
|
200
217
|
city?: string | null;
|
|
201
218
|
country?: string | null;
|
|
202
219
|
customDomain?: string | null;
|
|
@@ -227,6 +244,10 @@ export declare namespace LocationUpdateParams {
|
|
|
227
244
|
websiteUrl?: string | null;
|
|
228
245
|
zip?: string | null;
|
|
229
246
|
}
|
|
247
|
+
interface Center {
|
|
248
|
+
latitude: number;
|
|
249
|
+
longitude: number;
|
|
250
|
+
}
|
|
230
251
|
}
|
|
231
252
|
export interface LocationEmbedCodeParams {
|
|
232
253
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locations.d.ts","sourceRoot":"","sources":["../src/resources/locations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;OAIG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAIhE;;;;;OAKG;IACH,MAAM,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;IAIhG
|
|
1
|
+
{"version":3,"file":"locations.d.ts","sourceRoot":"","sources":["../src/resources/locations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,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C3D,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
package/resources/locations.js
CHANGED
|
@@ -8,7 +8,7 @@ class Locations extends resource_1.APIResource {
|
|
|
8
8
|
/**
|
|
9
9
|
* List every location for this account. Not paginated — each account has a small
|
|
10
10
|
* map-count limit (single digits in practice) so the response always fits in a
|
|
11
|
-
* single page. Requires scope: maps:list
|
|
11
|
+
* single page. Requires API-key scope or current OAuth user permission: maps:list
|
|
12
12
|
*/
|
|
13
13
|
list(options) {
|
|
14
14
|
return this._client.get('/rest/v1/locations', options);
|
|
@@ -17,7 +17,7 @@ class Locations extends resource_1.APIResource {
|
|
|
17
17
|
* Create a new location (map embed). All address fields are optional and can be
|
|
18
18
|
* filled in later via PATCH. Returns the slim entity with the server-assigned `id`
|
|
19
19
|
* so callers can immediately request `GET /rest/v1/locations/{id}/embed-code`.
|
|
20
|
-
* Requires scope: maps:create
|
|
20
|
+
* Requires API-key scope or current OAuth user permission: maps:create
|
|
21
21
|
*/
|
|
22
22
|
create(body, options) {
|
|
23
23
|
return this._client.post('/rest/v1/locations', { body, ...options });
|
|
@@ -26,7 +26,8 @@ class Locations extends resource_1.APIResource {
|
|
|
26
26
|
* Partially update a location. Only the fields you send are changed.
|
|
27
27
|
* `additionalAddresses` is replaced wholesale when sent — partial item updates are
|
|
28
28
|
* not merged. The map's computed center is recalculated on every PATCH from the
|
|
29
|
-
* latest coordinates. Requires scope
|
|
29
|
+
* latest coordinates. Requires API-key scope or current OAuth user permission:
|
|
30
|
+
* maps:update
|
|
30
31
|
*/
|
|
31
32
|
update(id, body, options) {
|
|
32
33
|
return this._client.patch((0, path_1.path) `/rest/v1/locations/${id}`, { body, ...options });
|
|
@@ -37,8 +38,8 @@ class Locations extends resource_1.APIResource {
|
|
|
37
38
|
* `<iframe>` pointed at the Ours Privacy maps CDN, plus an optional JSON-LD
|
|
38
39
|
* `<script>`). Customize the render with the optional query params (`color`,
|
|
39
40
|
* `theme`, `colorScheme`, `mapStyle`, `includeAddressBox`, `zoom`,
|
|
40
|
-
* `includeControls`, `includeSEOSchema`); all have sane defaults. Requires
|
|
41
|
-
* maps:find
|
|
41
|
+
* `includeControls`, `includeSEOSchema`); all have sane defaults. Requires API-key
|
|
42
|
+
* scope or current OAuth user permission: maps:find
|
|
42
43
|
*/
|
|
43
44
|
embedCode(id, query = {}, options) {
|
|
44
45
|
return this._client.get((0, path_1.path) `/rest/v1/locations/${id}/embed-code`, { query, ...options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locations.js","sourceRoot":"","sources":["../src/resources/locations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;OAIG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,IAA0B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"locations.js","sourceRoot":"","sources":["../src/resources/locations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;OAIG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,IAA0B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CACJ,EAAU,EACV,IAA0B,EAC1B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,sBAAsB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;IAED;;;;;;;;OAQG;IACH,SAAS,CACP,EAAU,EACV,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,sBAAsB,EAAE,aAAa,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;CACF;AAnDD,8BAmDC"}
|
package/resources/locations.mjs
CHANGED
|
@@ -5,7 +5,7 @@ export class Locations extends APIResource {
|
|
|
5
5
|
/**
|
|
6
6
|
* List every location for this account. Not paginated — each account has a small
|
|
7
7
|
* map-count limit (single digits in practice) so the response always fits in a
|
|
8
|
-
* single page. Requires scope: maps:list
|
|
8
|
+
* single page. Requires API-key scope or current OAuth user permission: maps:list
|
|
9
9
|
*/
|
|
10
10
|
list(options) {
|
|
11
11
|
return this._client.get('/rest/v1/locations', options);
|
|
@@ -14,7 +14,7 @@ export class Locations extends APIResource {
|
|
|
14
14
|
* Create a new location (map embed). All address fields are optional and can be
|
|
15
15
|
* filled in later via PATCH. Returns the slim entity with the server-assigned `id`
|
|
16
16
|
* so callers can immediately request `GET /rest/v1/locations/{id}/embed-code`.
|
|
17
|
-
* Requires scope: maps:create
|
|
17
|
+
* Requires API-key scope or current OAuth user permission: maps:create
|
|
18
18
|
*/
|
|
19
19
|
create(body, options) {
|
|
20
20
|
return this._client.post('/rest/v1/locations', { body, ...options });
|
|
@@ -23,7 +23,8 @@ export class Locations extends APIResource {
|
|
|
23
23
|
* Partially update a location. Only the fields you send are changed.
|
|
24
24
|
* `additionalAddresses` is replaced wholesale when sent — partial item updates are
|
|
25
25
|
* not merged. The map's computed center is recalculated on every PATCH from the
|
|
26
|
-
* latest coordinates. Requires scope
|
|
26
|
+
* latest coordinates. Requires API-key scope or current OAuth user permission:
|
|
27
|
+
* maps:update
|
|
27
28
|
*/
|
|
28
29
|
update(id, body, options) {
|
|
29
30
|
return this._client.patch(path `/rest/v1/locations/${id}`, { body, ...options });
|
|
@@ -34,8 +35,8 @@ export class Locations extends APIResource {
|
|
|
34
35
|
* `<iframe>` pointed at the Ours Privacy maps CDN, plus an optional JSON-LD
|
|
35
36
|
* `<script>`). Customize the render with the optional query params (`color`,
|
|
36
37
|
* `theme`, `colorScheme`, `mapStyle`, `includeAddressBox`, `zoom`,
|
|
37
|
-
* `includeControls`, `includeSEOSchema`); all have sane defaults. Requires
|
|
38
|
-
* maps:find
|
|
38
|
+
* `includeControls`, `includeSEOSchema`); all have sane defaults. Requires API-key
|
|
39
|
+
* scope or current OAuth user permission: maps:find
|
|
39
40
|
*/
|
|
40
41
|
embedCode(id, query = {}, options) {
|
|
41
42
|
return this._client.get(path `/rest/v1/locations/${id}/embed-code`, { query, ...options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locations.mjs","sourceRoot":"","sources":["../src/resources/locations.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;OAIG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,IAA0B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAA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