@oursprivacy/platform-sdk 1.21.0 → 1.23.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 +19 -0
- package/README.md +8 -8
- package/client.d.mts +16 -19
- package/client.d.mts.map +1 -1
- package/client.d.ts +16 -19
- package/client.d.ts.map +1 -1
- package/client.js +8 -11
- package/client.js.map +1 -1
- package/client.mjs +8 -11
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/allowed-events.d.mts +206 -5
- package/resources/allowed-events.d.mts.map +1 -1
- package/resources/allowed-events.d.ts +206 -5
- package/resources/allowed-events.d.ts.map +1 -1
- package/resources/allowed-events.js +48 -4
- package/resources/allowed-events.js.map +1 -1
- package/resources/allowed-events.mjs +48 -4
- package/resources/allowed-events.mjs.map +1 -1
- package/resources/consent-analytics.d.mts +57 -0
- package/resources/consent-analytics.d.mts.map +1 -0
- package/resources/consent-analytics.d.ts +57 -0
- package/resources/consent-analytics.d.ts.map +1 -0
- package/resources/consent-analytics.js +22 -0
- package/resources/consent-analytics.js.map +1 -0
- package/resources/consent-analytics.mjs +18 -0
- package/resources/consent-analytics.mjs.map +1 -0
- package/resources/consent-settings.d.mts +198 -1
- package/resources/consent-settings.d.mts.map +1 -1
- package/resources/consent-settings.d.ts +198 -1
- package/resources/consent-settings.d.ts.map +1 -1
- package/resources/consent-settings.js +40 -0
- package/resources/consent-settings.js.map +1 -1
- package/resources/consent-settings.mjs +40 -0
- package/resources/consent-settings.mjs.map +1 -1
- package/resources/data-governance.d.mts +793 -0
- package/resources/data-governance.d.mts.map +1 -0
- package/resources/data-governance.d.ts +793 -0
- package/resources/data-governance.d.ts.map +1 -0
- package/resources/data-governance.js +70 -0
- package/resources/data-governance.js.map +1 -0
- package/resources/data-governance.mjs +66 -0
- package/resources/data-governance.mjs.map +1 -0
- package/resources/default-mappings.d.mts +60 -3
- package/resources/default-mappings.d.mts.map +1 -1
- package/resources/default-mappings.d.ts +60 -3
- package/resources/default-mappings.d.ts.map +1 -1
- package/resources/destinations.d.mts +78 -5
- package/resources/destinations.d.mts.map +1 -1
- package/resources/destinations.d.ts +78 -5
- package/resources/destinations.d.ts.map +1 -1
- package/resources/destinations.js +11 -0
- package/resources/destinations.js.map +1 -1
- package/resources/destinations.mjs +11 -0
- package/resources/destinations.mjs.map +1 -1
- package/resources/index.d.mts +6 -7
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +6 -7
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -7
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -3
- package/resources/index.mjs.map +1 -1
- package/resources/mappings.d.mts +362 -16
- package/resources/mappings.d.mts.map +1 -1
- package/resources/mappings.d.ts +362 -16
- package/resources/mappings.d.ts.map +1 -1
- package/resources/mappings.js +41 -0
- package/resources/mappings.js.map +1 -1
- package/resources/mappings.mjs +41 -0
- package/resources/mappings.mjs.map +1 -1
- package/src/client.ts +75 -60
- package/src/resources/allowed-events.ts +232 -4
- package/src/resources/consent-analytics.ts +76 -0
- package/src/resources/consent-settings.ts +272 -0
- package/src/resources/data-governance.ts +1091 -0
- package/src/resources/default-mappings.ts +60 -3
- package/src/resources/destinations.ts +189 -4
- package/src/resources/index.ts +31 -22
- package/src/resources/mappings.ts +517 -15
- 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/destination-types.d.mts +0 -146
- package/resources/destination-types.d.mts.map +0 -1
- package/resources/destination-types.d.ts +0 -146
- package/resources/destination-types.d.ts.map +0 -1
- package/resources/destination-types.js +0 -28
- package/resources/destination-types.js.map +0 -1
- package/resources/destination-types.mjs +0 -24
- package/resources/destination-types.mjs.map +0 -1
- package/resources/global-dispatch-centers.d.mts +0 -349
- package/resources/global-dispatch-centers.d.mts.map +0 -1
- package/resources/global-dispatch-centers.d.ts +0 -349
- package/resources/global-dispatch-centers.d.ts.map +0 -1
- package/resources/global-dispatch-centers.js +0 -43
- package/resources/global-dispatch-centers.js.map +0 -1
- package/resources/global-dispatch-centers.mjs +0 -39
- package/resources/global-dispatch-centers.mjs.map +0 -1
- package/resources/mapping-templates.d.mts +0 -101
- package/resources/mapping-templates.d.mts.map +0 -1
- package/resources/mapping-templates.d.ts +0 -101
- package/resources/mapping-templates.d.ts.map +0 -1
- package/resources/mapping-templates.js +0 -22
- package/resources/mapping-templates.js.map +0 -1
- package/resources/mapping-templates.mjs +0 -18
- package/resources/mapping-templates.mjs.map +0 -1
- package/src/resources/destination-types.ts +0 -373
- package/src/resources/global-dispatch-centers.ts +0 -458
- package/src/resources/mapping-templates.ts +0 -203
package/resources/mappings.js
CHANGED
|
@@ -63,6 +63,47 @@ class Mappings extends resource_1.APIResource {
|
|
|
63
63
|
reorder(body, options) {
|
|
64
64
|
return this._client.post('/rest/v1/mappings/reorder', { body, ...options });
|
|
65
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
* Discover every mapping template available for a destination or source, with full
|
|
68
|
+
* property descriptors inlined. Use the returned `id` as `templateId` when calling
|
|
69
|
+
* `POST /rest/v1/mappings` (template fat-create variant), and use each entry under
|
|
70
|
+
* `mappings[]` to learn the valid `property`, `kind`, `modificationOptions`, and
|
|
71
|
+
* any enforced `options`. The `isDefault: true` entry is the destination's
|
|
72
|
+
* built-in default template (the one stored at `MAPPER#{destinationId}` when
|
|
73
|
+
* configured via `PUT /rest/v1/default-mappings/{destinationId}`). Requires scope:
|
|
74
|
+
* mapping:find
|
|
75
|
+
*/
|
|
76
|
+
templates(query, options) {
|
|
77
|
+
return this._client.get('/rest/v1/mappings/templates', { query, ...options });
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Lists the platform-provided variables that any mapping `value` can reference
|
|
81
|
+
* (e.g. `event.email`, `event.request_context.ip`, `visitor.id`). Account-agnostic
|
|
82
|
+
* discovery — use these paths as the right-hand side of a mapping field. Requires
|
|
83
|
+
* scope: variables:find-default
|
|
84
|
+
*/
|
|
85
|
+
defaultVariables(options) {
|
|
86
|
+
return this._client.get('/rest/v1/mappings/default-variables', options);
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Lists the custom variables observed in this account’s recent event stream (last
|
|
90
|
+
* 14 days). These are dot-paths under `event.event_properties.*` that callers can
|
|
91
|
+
* target in mapping `value` fields. The result is cached for 10 minutes; an empty
|
|
92
|
+
* list means no custom properties have been seen yet for this account. Requires
|
|
93
|
+
* scope: variables:find-custom
|
|
94
|
+
*/
|
|
95
|
+
customVariables(options) {
|
|
96
|
+
return this._client.get('/rest/v1/mappings/custom-variables', options);
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Lists every value accepted on a mapping field’s `modification` property, with a
|
|
100
|
+
* human-readable label and one-sentence description. Account-agnostic. Use this
|
|
101
|
+
* alongside `GET /rest/v1/mapping-templates` to render a labelled modification
|
|
102
|
+
* picker without hardcoding the enum. Requires scope: variables:find-default
|
|
103
|
+
*/
|
|
104
|
+
modifications(options) {
|
|
105
|
+
return this._client.get('/rest/v1/mappings/modifications', options);
|
|
106
|
+
}
|
|
66
107
|
}
|
|
67
108
|
exports.Mappings = Mappings;
|
|
68
109
|
//# sourceMappingURL=mappings.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mappings.js","sourceRoot":"","sources":["../src/resources/mappings.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAA4E;AAE5E,oDAA8C;AAE9C,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;OAKG;IACH,IAAI,CACF,KAAwB,EACxB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,mBAAmB,EAAE,CAAA,mBAA2B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1G,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAAyB,EAAE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E,OAAO,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;OAMG;IACH,eAAe,CAAC,OAAwB;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oCAAoC,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAED;;;;;OAKG;IACH,aAAa,CAAC,OAAwB;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iCAAiC,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;CACF;AA/GD,4BA+GC"}
|
package/resources/mappings.mjs
CHANGED
|
@@ -60,5 +60,46 @@ export class Mappings extends APIResource {
|
|
|
60
60
|
reorder(body, options) {
|
|
61
61
|
return this._client.post('/rest/v1/mappings/reorder', { body, ...options });
|
|
62
62
|
}
|
|
63
|
+
/**
|
|
64
|
+
* Discover every mapping template available for a destination or source, with full
|
|
65
|
+
* property descriptors inlined. Use the returned `id` as `templateId` when calling
|
|
66
|
+
* `POST /rest/v1/mappings` (template fat-create variant), and use each entry under
|
|
67
|
+
* `mappings[]` to learn the valid `property`, `kind`, `modificationOptions`, and
|
|
68
|
+
* any enforced `options`. The `isDefault: true` entry is the destination's
|
|
69
|
+
* built-in default template (the one stored at `MAPPER#{destinationId}` when
|
|
70
|
+
* configured via `PUT /rest/v1/default-mappings/{destinationId}`). Requires scope:
|
|
71
|
+
* mapping:find
|
|
72
|
+
*/
|
|
73
|
+
templates(query, options) {
|
|
74
|
+
return this._client.get('/rest/v1/mappings/templates', { query, ...options });
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Lists the platform-provided variables that any mapping `value` can reference
|
|
78
|
+
* (e.g. `event.email`, `event.request_context.ip`, `visitor.id`). Account-agnostic
|
|
79
|
+
* discovery — use these paths as the right-hand side of a mapping field. Requires
|
|
80
|
+
* scope: variables:find-default
|
|
81
|
+
*/
|
|
82
|
+
defaultVariables(options) {
|
|
83
|
+
return this._client.get('/rest/v1/mappings/default-variables', options);
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Lists the custom variables observed in this account’s recent event stream (last
|
|
87
|
+
* 14 days). These are dot-paths under `event.event_properties.*` that callers can
|
|
88
|
+
* target in mapping `value` fields. The result is cached for 10 minutes; an empty
|
|
89
|
+
* list means no custom properties have been seen yet for this account. Requires
|
|
90
|
+
* scope: variables:find-custom
|
|
91
|
+
*/
|
|
92
|
+
customVariables(options) {
|
|
93
|
+
return this._client.get('/rest/v1/mappings/custom-variables', options);
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Lists every value accepted on a mapping field’s `modification` property, with a
|
|
97
|
+
* human-readable label and one-sentence description. Account-agnostic. Use this
|
|
98
|
+
* alongside `GET /rest/v1/mapping-templates` to render a labelled modification
|
|
99
|
+
* picker without hardcoding the enum. Requires scope: variables:find-default
|
|
100
|
+
*/
|
|
101
|
+
modifications(options) {
|
|
102
|
+
return this._client.get('/rest/v1/mappings/modifications', options);
|
|
103
|
+
}
|
|
63
104
|
}
|
|
64
105
|
//# sourceMappingURL=mappings.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mappings.mjs","sourceRoot":"","sources":["../src/resources/mappings.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,QAAS,SAAQ,WAAW;IACvC;;;;;OAKG;IACH,IAAI,CACF,KAAwB,EACxB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,mBAAmB,EAAE,CAAA,MAA2B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1G,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,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CAAC;IAC1E,CAAC;IAED;;;;;;OAMG;IACH,eAAe,CAAC,OAAwB;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oCAAoC,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAED;;;;;OAKG;IACH,aAAa,CAAC,OAAwB;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iCAAiC,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;CACF"}
|
package/src/client.ts
CHANGED
|
@@ -25,12 +25,25 @@ import {
|
|
|
25
25
|
AllowedEventDeleteResponse,
|
|
26
26
|
AllowedEventListResponse,
|
|
27
27
|
AllowedEventRetrieveResponse,
|
|
28
|
+
AllowedEventUpdateParams,
|
|
29
|
+
AllowedEventUpdateResponse,
|
|
28
30
|
AllowedEvents,
|
|
29
31
|
} from './resources/allowed-events';
|
|
30
32
|
import {
|
|
33
|
+
ConsentAnalytics,
|
|
34
|
+
ConsentAnalyticsListParams,
|
|
35
|
+
ConsentAnalyticsListResponse,
|
|
36
|
+
} from './resources/consent-analytics';
|
|
37
|
+
import {
|
|
38
|
+
ConsentSettingAnalyticsByRegionParams,
|
|
39
|
+
ConsentSettingAnalyticsByRegionResponse,
|
|
40
|
+
ConsentSettingAnalyticsParams,
|
|
41
|
+
ConsentSettingAnalyticsResponse,
|
|
31
42
|
ConsentSettingCreateResponse,
|
|
32
43
|
ConsentSettingDeleteResponse,
|
|
33
44
|
ConsentSettingListResponse,
|
|
45
|
+
ConsentSettingPageAnalysisParams,
|
|
46
|
+
ConsentSettingPageAnalysisResponse,
|
|
34
47
|
ConsentSettingReplaceParams,
|
|
35
48
|
ConsentSettingReplaceResponse,
|
|
36
49
|
ConsentSettingRetrieveResponse,
|
|
@@ -38,6 +51,18 @@ import {
|
|
|
38
51
|
ConsentSettingUpdateResponse,
|
|
39
52
|
ConsentSettings,
|
|
40
53
|
} from './resources/consent-settings';
|
|
54
|
+
import {
|
|
55
|
+
DataGovernance,
|
|
56
|
+
DataGovernanceCreateParams,
|
|
57
|
+
DataGovernanceCreateResponse,
|
|
58
|
+
DataGovernanceDeleteResponse,
|
|
59
|
+
DataGovernanceListParams,
|
|
60
|
+
DataGovernanceListResponse,
|
|
61
|
+
DataGovernanceListResponsesCursor,
|
|
62
|
+
DataGovernanceRetrieveResponse,
|
|
63
|
+
DataGovernanceUpdateParams,
|
|
64
|
+
DataGovernanceUpdateResponse,
|
|
65
|
+
} from './resources/data-governance';
|
|
41
66
|
import {
|
|
42
67
|
DefaultMappingListResponse,
|
|
43
68
|
DefaultMappingReplaceParams,
|
|
@@ -45,11 +70,6 @@ import {
|
|
|
45
70
|
DefaultMappingRetrieveResponse,
|
|
46
71
|
DefaultMappings,
|
|
47
72
|
} from './resources/default-mappings';
|
|
48
|
-
import {
|
|
49
|
-
DestinationTypeListResponse,
|
|
50
|
-
DestinationTypeRetrieveResponse,
|
|
51
|
-
DestinationTypes,
|
|
52
|
-
} from './resources/destination-types';
|
|
53
73
|
import {
|
|
54
74
|
DestinationCreateParams,
|
|
55
75
|
DestinationCreateResponse,
|
|
@@ -58,6 +78,7 @@ import {
|
|
|
58
78
|
DestinationListResponse,
|
|
59
79
|
DestinationListResponsesCursor,
|
|
60
80
|
DestinationRetrieveResponse,
|
|
81
|
+
DestinationTypesResponse,
|
|
61
82
|
DestinationUpdateParams,
|
|
62
83
|
DestinationUpdateResponse,
|
|
63
84
|
Destinations,
|
|
@@ -110,18 +131,6 @@ import {
|
|
|
110
131
|
ExperimentUpdateResponse,
|
|
111
132
|
Experiments,
|
|
112
133
|
} from './resources/experiments';
|
|
113
|
-
import {
|
|
114
|
-
GlobalDispatchCenterCreateParams,
|
|
115
|
-
GlobalDispatchCenterCreateResponse,
|
|
116
|
-
GlobalDispatchCenterDeleteResponse,
|
|
117
|
-
GlobalDispatchCenterListParams,
|
|
118
|
-
GlobalDispatchCenterListResponse,
|
|
119
|
-
GlobalDispatchCenterListResponsesCursor,
|
|
120
|
-
GlobalDispatchCenterRetrieveResponse,
|
|
121
|
-
GlobalDispatchCenterUpdateParams,
|
|
122
|
-
GlobalDispatchCenterUpdateResponse,
|
|
123
|
-
GlobalDispatchCenters,
|
|
124
|
-
} from './resources/global-dispatch-centers';
|
|
125
134
|
import {
|
|
126
135
|
HeatmapPageListParams,
|
|
127
136
|
HeatmapPageListResponse,
|
|
@@ -140,21 +149,21 @@ import {
|
|
|
140
149
|
LocationUpdateResponse,
|
|
141
150
|
Locations,
|
|
142
151
|
} from './resources/locations';
|
|
143
|
-
import {
|
|
144
|
-
MappingTemplateListParams,
|
|
145
|
-
MappingTemplateListResponse,
|
|
146
|
-
MappingTemplates,
|
|
147
|
-
} from './resources/mapping-templates';
|
|
148
152
|
import {
|
|
149
153
|
MappingCreateParams,
|
|
150
154
|
MappingCreateResponse,
|
|
155
|
+
MappingCustomVariablesResponse,
|
|
156
|
+
MappingDefaultVariablesResponse,
|
|
151
157
|
MappingDeleteResponse,
|
|
152
158
|
MappingListParams,
|
|
153
159
|
MappingListResponse,
|
|
154
160
|
MappingListResponsesCursor,
|
|
161
|
+
MappingModificationsResponse,
|
|
155
162
|
MappingReorderParams,
|
|
156
163
|
MappingReorderResponse,
|
|
157
164
|
MappingRetrieveResponse,
|
|
165
|
+
MappingTemplatesParams,
|
|
166
|
+
MappingTemplatesResponse,
|
|
158
167
|
MappingUpdateParams,
|
|
159
168
|
MappingUpdateResponse,
|
|
160
169
|
Mappings,
|
|
@@ -956,13 +965,14 @@ export class OursPrivacyPlatform {
|
|
|
956
965
|
static toFile = Uploads.toFile;
|
|
957
966
|
|
|
958
967
|
allowedEvents: API.AllowedEvents = new API.AllowedEvents(this);
|
|
968
|
+
consentAnalytics: API.ConsentAnalytics = new API.ConsentAnalytics(this);
|
|
959
969
|
consentSettings: API.ConsentSettings = new API.ConsentSettings(this);
|
|
960
|
-
|
|
970
|
+
dataGovernance: API.DataGovernance = new API.DataGovernance(this);
|
|
971
|
+
defaultMappings: API.DefaultMappings = new API.DefaultMappings(this);
|
|
961
972
|
destinations: API.Destinations = new API.Destinations(this);
|
|
962
973
|
experimentSettings: API.ExperimentSettings = new API.ExperimentSettings(this);
|
|
963
974
|
experimentVariants: API.ExperimentVariants = new API.ExperimentVariants(this);
|
|
964
975
|
experiments: API.Experiments = new API.Experiments(this);
|
|
965
|
-
globalDispatchCenters: API.GlobalDispatchCenters = new API.GlobalDispatchCenters(this);
|
|
966
976
|
heatmapPages: API.HeatmapPages = new API.HeatmapPages(this);
|
|
967
977
|
locations: API.Locations = new API.Locations(this);
|
|
968
978
|
mappings: API.Mappings = new API.Mappings(this);
|
|
@@ -971,18 +981,17 @@ export class OursPrivacyPlatform {
|
|
|
971
981
|
versions: API.Versions = new API.Versions(this);
|
|
972
982
|
webScannerRules: API.WebScannerRules = new API.WebScannerRules(this);
|
|
973
983
|
webScanners: API.WebScanners = new API.WebScanners(this);
|
|
974
|
-
mappingTemplates: API.MappingTemplates = new API.MappingTemplates(this);
|
|
975
|
-
defaultMappings: API.DefaultMappings = new API.DefaultMappings(this);
|
|
976
984
|
}
|
|
977
985
|
|
|
978
986
|
OursPrivacyPlatform.AllowedEvents = AllowedEvents;
|
|
987
|
+
OursPrivacyPlatform.ConsentAnalytics = ConsentAnalytics;
|
|
979
988
|
OursPrivacyPlatform.ConsentSettings = ConsentSettings;
|
|
980
|
-
OursPrivacyPlatform.
|
|
989
|
+
OursPrivacyPlatform.DataGovernance = DataGovernance;
|
|
990
|
+
OursPrivacyPlatform.DefaultMappings = DefaultMappings;
|
|
981
991
|
OursPrivacyPlatform.Destinations = Destinations;
|
|
982
992
|
OursPrivacyPlatform.ExperimentSettings = ExperimentSettings;
|
|
983
993
|
OursPrivacyPlatform.ExperimentVariants = ExperimentVariants;
|
|
984
994
|
OursPrivacyPlatform.Experiments = Experiments;
|
|
985
|
-
OursPrivacyPlatform.GlobalDispatchCenters = GlobalDispatchCenters;
|
|
986
995
|
OursPrivacyPlatform.HeatmapPages = HeatmapPages;
|
|
987
996
|
OursPrivacyPlatform.Locations = Locations;
|
|
988
997
|
OursPrivacyPlatform.Mappings = Mappings;
|
|
@@ -991,8 +1000,6 @@ OursPrivacyPlatform.Sources = Sources;
|
|
|
991
1000
|
OursPrivacyPlatform.Versions = Versions;
|
|
992
1001
|
OursPrivacyPlatform.WebScannerRules = WebScannerRules;
|
|
993
1002
|
OursPrivacyPlatform.WebScanners = WebScanners;
|
|
994
|
-
OursPrivacyPlatform.MappingTemplates = MappingTemplates;
|
|
995
|
-
OursPrivacyPlatform.DefaultMappings = DefaultMappings;
|
|
996
1003
|
|
|
997
1004
|
export declare namespace OursPrivacyPlatform {
|
|
998
1005
|
export type RequestOptions = Opts.RequestOptions;
|
|
@@ -1005,8 +1012,16 @@ export declare namespace OursPrivacyPlatform {
|
|
|
1005
1012
|
type AllowedEventListResponse as AllowedEventListResponse,
|
|
1006
1013
|
type AllowedEventCreateResponse as AllowedEventCreateResponse,
|
|
1007
1014
|
type AllowedEventRetrieveResponse as AllowedEventRetrieveResponse,
|
|
1015
|
+
type AllowedEventUpdateResponse as AllowedEventUpdateResponse,
|
|
1008
1016
|
type AllowedEventDeleteResponse as AllowedEventDeleteResponse,
|
|
1009
1017
|
type AllowedEventCreateParams as AllowedEventCreateParams,
|
|
1018
|
+
type AllowedEventUpdateParams as AllowedEventUpdateParams,
|
|
1019
|
+
};
|
|
1020
|
+
|
|
1021
|
+
export {
|
|
1022
|
+
ConsentAnalytics as ConsentAnalytics,
|
|
1023
|
+
type ConsentAnalyticsListResponse as ConsentAnalyticsListResponse,
|
|
1024
|
+
type ConsentAnalyticsListParams as ConsentAnalyticsListParams,
|
|
1010
1025
|
};
|
|
1011
1026
|
|
|
1012
1027
|
export {
|
|
@@ -1017,14 +1032,35 @@ export declare namespace OursPrivacyPlatform {
|
|
|
1017
1032
|
type ConsentSettingReplaceResponse as ConsentSettingReplaceResponse,
|
|
1018
1033
|
type ConsentSettingUpdateResponse as ConsentSettingUpdateResponse,
|
|
1019
1034
|
type ConsentSettingDeleteResponse as ConsentSettingDeleteResponse,
|
|
1035
|
+
type ConsentSettingAnalyticsResponse as ConsentSettingAnalyticsResponse,
|
|
1036
|
+
type ConsentSettingPageAnalysisResponse as ConsentSettingPageAnalysisResponse,
|
|
1037
|
+
type ConsentSettingAnalyticsByRegionResponse as ConsentSettingAnalyticsByRegionResponse,
|
|
1020
1038
|
type ConsentSettingReplaceParams as ConsentSettingReplaceParams,
|
|
1021
1039
|
type ConsentSettingUpdateParams as ConsentSettingUpdateParams,
|
|
1040
|
+
type ConsentSettingAnalyticsParams as ConsentSettingAnalyticsParams,
|
|
1041
|
+
type ConsentSettingPageAnalysisParams as ConsentSettingPageAnalysisParams,
|
|
1042
|
+
type ConsentSettingAnalyticsByRegionParams as ConsentSettingAnalyticsByRegionParams,
|
|
1043
|
+
};
|
|
1044
|
+
|
|
1045
|
+
export {
|
|
1046
|
+
DataGovernance as DataGovernance,
|
|
1047
|
+
type DataGovernanceListResponse as DataGovernanceListResponse,
|
|
1048
|
+
type DataGovernanceCreateResponse as DataGovernanceCreateResponse,
|
|
1049
|
+
type DataGovernanceRetrieveResponse as DataGovernanceRetrieveResponse,
|
|
1050
|
+
type DataGovernanceUpdateResponse as DataGovernanceUpdateResponse,
|
|
1051
|
+
type DataGovernanceDeleteResponse as DataGovernanceDeleteResponse,
|
|
1052
|
+
type DataGovernanceListResponsesCursor as DataGovernanceListResponsesCursor,
|
|
1053
|
+
type DataGovernanceListParams as DataGovernanceListParams,
|
|
1054
|
+
type DataGovernanceCreateParams as DataGovernanceCreateParams,
|
|
1055
|
+
type DataGovernanceUpdateParams as DataGovernanceUpdateParams,
|
|
1022
1056
|
};
|
|
1023
1057
|
|
|
1024
1058
|
export {
|
|
1025
|
-
|
|
1026
|
-
type
|
|
1027
|
-
type
|
|
1059
|
+
DefaultMappings as DefaultMappings,
|
|
1060
|
+
type DefaultMappingListResponse as DefaultMappingListResponse,
|
|
1061
|
+
type DefaultMappingRetrieveResponse as DefaultMappingRetrieveResponse,
|
|
1062
|
+
type DefaultMappingReplaceResponse as DefaultMappingReplaceResponse,
|
|
1063
|
+
type DefaultMappingReplaceParams as DefaultMappingReplaceParams,
|
|
1028
1064
|
};
|
|
1029
1065
|
|
|
1030
1066
|
export {
|
|
@@ -1034,6 +1070,7 @@ export declare namespace OursPrivacyPlatform {
|
|
|
1034
1070
|
type DestinationRetrieveResponse as DestinationRetrieveResponse,
|
|
1035
1071
|
type DestinationUpdateResponse as DestinationUpdateResponse,
|
|
1036
1072
|
type DestinationDeleteResponse as DestinationDeleteResponse,
|
|
1073
|
+
type DestinationTypesResponse as DestinationTypesResponse,
|
|
1037
1074
|
type DestinationListResponsesCursor as DestinationListResponsesCursor,
|
|
1038
1075
|
type DestinationListParams as DestinationListParams,
|
|
1039
1076
|
type DestinationCreateParams as DestinationCreateParams,
|
|
@@ -1091,19 +1128,6 @@ export declare namespace OursPrivacyPlatform {
|
|
|
1091
1128
|
type ExperimentSessionReplaysParams as ExperimentSessionReplaysParams,
|
|
1092
1129
|
};
|
|
1093
1130
|
|
|
1094
|
-
export {
|
|
1095
|
-
GlobalDispatchCenters as GlobalDispatchCenters,
|
|
1096
|
-
type GlobalDispatchCenterListResponse as GlobalDispatchCenterListResponse,
|
|
1097
|
-
type GlobalDispatchCenterCreateResponse as GlobalDispatchCenterCreateResponse,
|
|
1098
|
-
type GlobalDispatchCenterRetrieveResponse as GlobalDispatchCenterRetrieveResponse,
|
|
1099
|
-
type GlobalDispatchCenterUpdateResponse as GlobalDispatchCenterUpdateResponse,
|
|
1100
|
-
type GlobalDispatchCenterDeleteResponse as GlobalDispatchCenterDeleteResponse,
|
|
1101
|
-
type GlobalDispatchCenterListResponsesCursor as GlobalDispatchCenterListResponsesCursor,
|
|
1102
|
-
type GlobalDispatchCenterListParams as GlobalDispatchCenterListParams,
|
|
1103
|
-
type GlobalDispatchCenterCreateParams as GlobalDispatchCenterCreateParams,
|
|
1104
|
-
type GlobalDispatchCenterUpdateParams as GlobalDispatchCenterUpdateParams,
|
|
1105
|
-
};
|
|
1106
|
-
|
|
1107
1131
|
export {
|
|
1108
1132
|
HeatmapPages as HeatmapPages,
|
|
1109
1133
|
type HeatmapPageListResponse as HeatmapPageListResponse,
|
|
@@ -1132,11 +1156,16 @@ export declare namespace OursPrivacyPlatform {
|
|
|
1132
1156
|
type MappingUpdateResponse as MappingUpdateResponse,
|
|
1133
1157
|
type MappingDeleteResponse as MappingDeleteResponse,
|
|
1134
1158
|
type MappingReorderResponse as MappingReorderResponse,
|
|
1159
|
+
type MappingTemplatesResponse as MappingTemplatesResponse,
|
|
1160
|
+
type MappingDefaultVariablesResponse as MappingDefaultVariablesResponse,
|
|
1161
|
+
type MappingCustomVariablesResponse as MappingCustomVariablesResponse,
|
|
1162
|
+
type MappingModificationsResponse as MappingModificationsResponse,
|
|
1135
1163
|
type MappingListResponsesCursor as MappingListResponsesCursor,
|
|
1136
1164
|
type MappingListParams as MappingListParams,
|
|
1137
1165
|
type MappingCreateParams as MappingCreateParams,
|
|
1138
1166
|
type MappingUpdateParams as MappingUpdateParams,
|
|
1139
1167
|
type MappingReorderParams as MappingReorderParams,
|
|
1168
|
+
type MappingTemplatesParams as MappingTemplatesParams,
|
|
1140
1169
|
};
|
|
1141
1170
|
|
|
1142
1171
|
export {
|
|
@@ -1203,18 +1232,4 @@ export declare namespace OursPrivacyPlatform {
|
|
|
1203
1232
|
type WebScannerCreateParams as WebScannerCreateParams,
|
|
1204
1233
|
type WebScannerUpdateParams as WebScannerUpdateParams,
|
|
1205
1234
|
};
|
|
1206
|
-
|
|
1207
|
-
export {
|
|
1208
|
-
MappingTemplates as MappingTemplates,
|
|
1209
|
-
type MappingTemplateListResponse as MappingTemplateListResponse,
|
|
1210
|
-
type MappingTemplateListParams as MappingTemplateListParams,
|
|
1211
|
-
};
|
|
1212
|
-
|
|
1213
|
-
export {
|
|
1214
|
-
DefaultMappings as DefaultMappings,
|
|
1215
|
-
type DefaultMappingListResponse as DefaultMappingListResponse,
|
|
1216
|
-
type DefaultMappingRetrieveResponse as DefaultMappingRetrieveResponse,
|
|
1217
|
-
type DefaultMappingReplaceResponse as DefaultMappingReplaceResponse,
|
|
1218
|
-
type DefaultMappingReplaceParams as DefaultMappingReplaceParams,
|
|
1219
|
-
};
|
|
1220
1235
|
}
|