@oursprivacy/platform-sdk 1.21.0 → 1.22.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 +10 -0
- package/client.d.mts +6 -12
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -12
- package/client.d.ts.map +1 -1
- package/client.js +2 -8
- package/client.js.map +1 -1
- package/client.mjs +2 -8
- package/client.mjs.map +1 -1
- package/package.json +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 +2 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -5
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -2
- package/resources/index.mjs.map +1 -1
- package/resources/mappings.d.mts +188 -1
- package/resources/mappings.d.mts.map +1 -1
- package/resources/mappings.d.ts +188 -1
- 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 +19 -33
- package/src/resources/destinations.ts +189 -4
- package/src/resources/index.ts +6 -10
- package/src/resources/mappings.ts +343 -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/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/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/mapping-templates.ts +0 -203
|
@@ -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,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qBAAqB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,EAAU,EAAE,IAAyB,EAAE,OAAwB;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,qBAAqB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,C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I,EAAA,qBAAqB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,qBAAqB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAED;;;;;OAKG;IACH,OAAO,CAAC,IAA0B,EAAE,OAAwB;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;OASG;IACH,SAAS,CAAC,KAA6B,EAAE,OAAwB;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,6BAA6B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;IAED;;;;;OAKG;IACH,gBAAgB,CAAC,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qCAAqC,EAAE,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,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,qBAAqB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,EAAU,EAAE,IAAyB,EAAE,OAAwB;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,qBAAqB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACz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qBAAqB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,qBAAqB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAED;;;;;OAKG;IACH,OAAO,CAAC,IAA0B,EAAE,OAAwB;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;OASG;IACH,SAAS,CAAC,KAA6B,EAAE,OAAwB;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,6BAA6B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;IAED;;;;;OAKG;IACH,gBAAgB,CAAC,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qCAAqC,EAAE,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"}
|
package/src/client.ts
CHANGED
|
@@ -45,11 +45,6 @@ import {
|
|
|
45
45
|
DefaultMappingRetrieveResponse,
|
|
46
46
|
DefaultMappings,
|
|
47
47
|
} from './resources/default-mappings';
|
|
48
|
-
import {
|
|
49
|
-
DestinationTypeListResponse,
|
|
50
|
-
DestinationTypeRetrieveResponse,
|
|
51
|
-
DestinationTypes,
|
|
52
|
-
} from './resources/destination-types';
|
|
53
48
|
import {
|
|
54
49
|
DestinationCreateParams,
|
|
55
50
|
DestinationCreateResponse,
|
|
@@ -58,6 +53,7 @@ import {
|
|
|
58
53
|
DestinationListResponse,
|
|
59
54
|
DestinationListResponsesCursor,
|
|
60
55
|
DestinationRetrieveResponse,
|
|
56
|
+
DestinationTypesResponse,
|
|
61
57
|
DestinationUpdateParams,
|
|
62
58
|
DestinationUpdateResponse,
|
|
63
59
|
Destinations,
|
|
@@ -140,21 +136,21 @@ import {
|
|
|
140
136
|
LocationUpdateResponse,
|
|
141
137
|
Locations,
|
|
142
138
|
} from './resources/locations';
|
|
143
|
-
import {
|
|
144
|
-
MappingTemplateListParams,
|
|
145
|
-
MappingTemplateListResponse,
|
|
146
|
-
MappingTemplates,
|
|
147
|
-
} from './resources/mapping-templates';
|
|
148
139
|
import {
|
|
149
140
|
MappingCreateParams,
|
|
150
141
|
MappingCreateResponse,
|
|
142
|
+
MappingCustomVariablesResponse,
|
|
143
|
+
MappingDefaultVariablesResponse,
|
|
151
144
|
MappingDeleteResponse,
|
|
152
145
|
MappingListParams,
|
|
153
146
|
MappingListResponse,
|
|
154
147
|
MappingListResponsesCursor,
|
|
148
|
+
MappingModificationsResponse,
|
|
155
149
|
MappingReorderParams,
|
|
156
150
|
MappingReorderResponse,
|
|
157
151
|
MappingRetrieveResponse,
|
|
152
|
+
MappingTemplatesParams,
|
|
153
|
+
MappingTemplatesResponse,
|
|
158
154
|
MappingUpdateParams,
|
|
159
155
|
MappingUpdateResponse,
|
|
160
156
|
Mappings,
|
|
@@ -957,7 +953,7 @@ export class OursPrivacyPlatform {
|
|
|
957
953
|
|
|
958
954
|
allowedEvents: API.AllowedEvents = new API.AllowedEvents(this);
|
|
959
955
|
consentSettings: API.ConsentSettings = new API.ConsentSettings(this);
|
|
960
|
-
|
|
956
|
+
defaultMappings: API.DefaultMappings = new API.DefaultMappings(this);
|
|
961
957
|
destinations: API.Destinations = new API.Destinations(this);
|
|
962
958
|
experimentSettings: API.ExperimentSettings = new API.ExperimentSettings(this);
|
|
963
959
|
experimentVariants: API.ExperimentVariants = new API.ExperimentVariants(this);
|
|
@@ -971,13 +967,11 @@ export class OursPrivacyPlatform {
|
|
|
971
967
|
versions: API.Versions = new API.Versions(this);
|
|
972
968
|
webScannerRules: API.WebScannerRules = new API.WebScannerRules(this);
|
|
973
969
|
webScanners: API.WebScanners = new API.WebScanners(this);
|
|
974
|
-
mappingTemplates: API.MappingTemplates = new API.MappingTemplates(this);
|
|
975
|
-
defaultMappings: API.DefaultMappings = new API.DefaultMappings(this);
|
|
976
970
|
}
|
|
977
971
|
|
|
978
972
|
OursPrivacyPlatform.AllowedEvents = AllowedEvents;
|
|
979
973
|
OursPrivacyPlatform.ConsentSettings = ConsentSettings;
|
|
980
|
-
OursPrivacyPlatform.
|
|
974
|
+
OursPrivacyPlatform.DefaultMappings = DefaultMappings;
|
|
981
975
|
OursPrivacyPlatform.Destinations = Destinations;
|
|
982
976
|
OursPrivacyPlatform.ExperimentSettings = ExperimentSettings;
|
|
983
977
|
OursPrivacyPlatform.ExperimentVariants = ExperimentVariants;
|
|
@@ -991,8 +985,6 @@ OursPrivacyPlatform.Sources = Sources;
|
|
|
991
985
|
OursPrivacyPlatform.Versions = Versions;
|
|
992
986
|
OursPrivacyPlatform.WebScannerRules = WebScannerRules;
|
|
993
987
|
OursPrivacyPlatform.WebScanners = WebScanners;
|
|
994
|
-
OursPrivacyPlatform.MappingTemplates = MappingTemplates;
|
|
995
|
-
OursPrivacyPlatform.DefaultMappings = DefaultMappings;
|
|
996
988
|
|
|
997
989
|
export declare namespace OursPrivacyPlatform {
|
|
998
990
|
export type RequestOptions = Opts.RequestOptions;
|
|
@@ -1022,9 +1014,11 @@ export declare namespace OursPrivacyPlatform {
|
|
|
1022
1014
|
};
|
|
1023
1015
|
|
|
1024
1016
|
export {
|
|
1025
|
-
|
|
1026
|
-
type
|
|
1027
|
-
type
|
|
1017
|
+
DefaultMappings as DefaultMappings,
|
|
1018
|
+
type DefaultMappingListResponse as DefaultMappingListResponse,
|
|
1019
|
+
type DefaultMappingRetrieveResponse as DefaultMappingRetrieveResponse,
|
|
1020
|
+
type DefaultMappingReplaceResponse as DefaultMappingReplaceResponse,
|
|
1021
|
+
type DefaultMappingReplaceParams as DefaultMappingReplaceParams,
|
|
1028
1022
|
};
|
|
1029
1023
|
|
|
1030
1024
|
export {
|
|
@@ -1034,6 +1028,7 @@ export declare namespace OursPrivacyPlatform {
|
|
|
1034
1028
|
type DestinationRetrieveResponse as DestinationRetrieveResponse,
|
|
1035
1029
|
type DestinationUpdateResponse as DestinationUpdateResponse,
|
|
1036
1030
|
type DestinationDeleteResponse as DestinationDeleteResponse,
|
|
1031
|
+
type DestinationTypesResponse as DestinationTypesResponse,
|
|
1037
1032
|
type DestinationListResponsesCursor as DestinationListResponsesCursor,
|
|
1038
1033
|
type DestinationListParams as DestinationListParams,
|
|
1039
1034
|
type DestinationCreateParams as DestinationCreateParams,
|
|
@@ -1132,11 +1127,16 @@ export declare namespace OursPrivacyPlatform {
|
|
|
1132
1127
|
type MappingUpdateResponse as MappingUpdateResponse,
|
|
1133
1128
|
type MappingDeleteResponse as MappingDeleteResponse,
|
|
1134
1129
|
type MappingReorderResponse as MappingReorderResponse,
|
|
1130
|
+
type MappingTemplatesResponse as MappingTemplatesResponse,
|
|
1131
|
+
type MappingDefaultVariablesResponse as MappingDefaultVariablesResponse,
|
|
1132
|
+
type MappingCustomVariablesResponse as MappingCustomVariablesResponse,
|
|
1133
|
+
type MappingModificationsResponse as MappingModificationsResponse,
|
|
1135
1134
|
type MappingListResponsesCursor as MappingListResponsesCursor,
|
|
1136
1135
|
type MappingListParams as MappingListParams,
|
|
1137
1136
|
type MappingCreateParams as MappingCreateParams,
|
|
1138
1137
|
type MappingUpdateParams as MappingUpdateParams,
|
|
1139
1138
|
type MappingReorderParams as MappingReorderParams,
|
|
1139
|
+
type MappingTemplatesParams as MappingTemplatesParams,
|
|
1140
1140
|
};
|
|
1141
1141
|
|
|
1142
1142
|
export {
|
|
@@ -1203,18 +1203,4 @@ export declare namespace OursPrivacyPlatform {
|
|
|
1203
1203
|
type WebScannerCreateParams as WebScannerCreateParams,
|
|
1204
1204
|
type WebScannerUpdateParams as WebScannerUpdateParams,
|
|
1205
1205
|
};
|
|
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
1206
|
}
|
|
@@ -54,6 +54,18 @@ export class Destinations extends APIResource {
|
|
|
54
54
|
delete(id: string, options?: RequestOptions): APIPromise<DestinationDeleteResponse> {
|
|
55
55
|
return this._client.delete(path`/rest/v1/destinations/${id}`, options);
|
|
56
56
|
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Lists every destination type the platform supports, with its human-readable
|
|
60
|
+
* label, capability flags (oauth, listsAccounts, supportsRenamedEvents), and the
|
|
61
|
+
* settings descriptor used to configure a destination of that type.
|
|
62
|
+
* Account-agnostic — the response is the same for every API key. Filter
|
|
63
|
+
* client-side to find a specific type (e.g. `Klaviyo`, `Facebook`). Requires
|
|
64
|
+
* scope: destination:list
|
|
65
|
+
*/
|
|
66
|
+
types(options?: RequestOptions): APIPromise<DestinationTypesResponse> {
|
|
67
|
+
return this._client.get('/rest/v1/destinations/types', options);
|
|
68
|
+
}
|
|
57
69
|
}
|
|
58
70
|
|
|
59
71
|
export type DestinationListResponsesCursor = Cursor<DestinationListResponse>;
|
|
@@ -456,6 +468,178 @@ export interface DestinationUpdateResponse {
|
|
|
456
468
|
|
|
457
469
|
export type DestinationDeleteResponse = boolean;
|
|
458
470
|
|
|
471
|
+
export interface DestinationTypesResponse {
|
|
472
|
+
entities: Array<DestinationTypesResponse.Entity>;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
export namespace DestinationTypesResponse {
|
|
476
|
+
export interface Entity {
|
|
477
|
+
id:
|
|
478
|
+
| 'Audiohook'
|
|
479
|
+
| 'BasisPostback'
|
|
480
|
+
| 'OursSyntheticData'
|
|
481
|
+
| 'FullContact'
|
|
482
|
+
| 'ZoomInfo'
|
|
483
|
+
| 'TheTradeDesk'
|
|
484
|
+
| 'Braze'
|
|
485
|
+
| 'LiveIntent'
|
|
486
|
+
| 'ConvertABTestingEvent'
|
|
487
|
+
| 'Customerio'
|
|
488
|
+
| 'BingAds'
|
|
489
|
+
| 'BingAdsWeb'
|
|
490
|
+
| 'HTTPDestination'
|
|
491
|
+
| 'Woopra'
|
|
492
|
+
| 'HTTPCustomRequest'
|
|
493
|
+
| 'Google'
|
|
494
|
+
| 'GoogleAdsServerContainer'
|
|
495
|
+
| 'G4Analytics'
|
|
496
|
+
| 'GA4ServerProxy'
|
|
497
|
+
| 'GA4MeasurementProtocol'
|
|
498
|
+
| 'GoogleAds360'
|
|
499
|
+
| 'Facebook'
|
|
500
|
+
| 'Mixpanel'
|
|
501
|
+
| 'Amplitude'
|
|
502
|
+
| 'TikTok'
|
|
503
|
+
| 'Reddit'
|
|
504
|
+
| 'Podscribe'
|
|
505
|
+
| 'Pinterest'
|
|
506
|
+
| 'Mailchimp'
|
|
507
|
+
| 'AWSKinesis'
|
|
508
|
+
| 'AWSLambda'
|
|
509
|
+
| 'GooglePubSub'
|
|
510
|
+
| 'LinkedInAdsCAPI'
|
|
511
|
+
| 'ActiveCampaignApi'
|
|
512
|
+
| 'StackAdaptAPI'
|
|
513
|
+
| 'Hubspot'
|
|
514
|
+
| 'Klaviyo'
|
|
515
|
+
| 'XAds'
|
|
516
|
+
| 'QuoraAds'
|
|
517
|
+
| 'SnapchatAdsCapi'
|
|
518
|
+
| 'Partnerize'
|
|
519
|
+
| 'NextdoorAds'
|
|
520
|
+
| 'Tatari'
|
|
521
|
+
| 'Viant'
|
|
522
|
+
| 'Impact'
|
|
523
|
+
| 'Spotify'
|
|
524
|
+
| 'Taboola'
|
|
525
|
+
| 'AmazonDSP'
|
|
526
|
+
| 'AppLovin'
|
|
527
|
+
| 'IHeartMediaMagellan'
|
|
528
|
+
| 'Vibe'
|
|
529
|
+
| 'GoogleDataManagerEventIngest'
|
|
530
|
+
| 'Zendesk'
|
|
531
|
+
| 'Iterable'
|
|
532
|
+
| 'ArtsAI'
|
|
533
|
+
| 'QuantcastCAPI'
|
|
534
|
+
| 'FloodlightSGTM'
|
|
535
|
+
| 'VWO'
|
|
536
|
+
| 'Attentive'
|
|
537
|
+
| 'Admitad'
|
|
538
|
+
| 'Plausible'
|
|
539
|
+
| 'PostHog'
|
|
540
|
+
| 'RokuCAPI'
|
|
541
|
+
| 'Everflow'
|
|
542
|
+
| 'BeeswaxPostback'
|
|
543
|
+
| 'AdobeAnalytics';
|
|
544
|
+
|
|
545
|
+
capabilities: Entity.Capabilities;
|
|
546
|
+
|
|
547
|
+
label: string;
|
|
548
|
+
|
|
549
|
+
settings: Array<
|
|
550
|
+
| Entity.UnionMember0
|
|
551
|
+
| Entity.UnionMember1
|
|
552
|
+
| Entity.UnionMember2
|
|
553
|
+
| Entity.UnionMember3
|
|
554
|
+
| Entity.UnionMember4
|
|
555
|
+
>;
|
|
556
|
+
|
|
557
|
+
status: 'deprecated' | 'ga';
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
export namespace Entity {
|
|
561
|
+
export interface Capabilities {
|
|
562
|
+
listsAccounts: boolean;
|
|
563
|
+
|
|
564
|
+
oauth: boolean;
|
|
565
|
+
|
|
566
|
+
supportsRenamedEvents: boolean;
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
export interface UnionMember0 {
|
|
570
|
+
key: string;
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
* Informational display message only. Do not send this key in POST or PATCH
|
|
574
|
+
* settings.
|
|
575
|
+
*/
|
|
576
|
+
label: string;
|
|
577
|
+
|
|
578
|
+
type: 'Alert';
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
export interface UnionMember1 {
|
|
582
|
+
key: string;
|
|
583
|
+
|
|
584
|
+
label: string;
|
|
585
|
+
|
|
586
|
+
options: Array<UnionMember1.Option>;
|
|
587
|
+
|
|
588
|
+
type: 'Select';
|
|
589
|
+
|
|
590
|
+
required?: boolean | null;
|
|
591
|
+
|
|
592
|
+
sublabel?: string | null;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
export namespace UnionMember1 {
|
|
596
|
+
export interface Option {
|
|
597
|
+
label: string;
|
|
598
|
+
|
|
599
|
+
value: string;
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
export interface UnionMember2 {
|
|
604
|
+
key: string;
|
|
605
|
+
|
|
606
|
+
label: string;
|
|
607
|
+
|
|
608
|
+
type: 'Switch';
|
|
609
|
+
|
|
610
|
+
defaultValue?: boolean | null;
|
|
611
|
+
|
|
612
|
+
required?: boolean | null;
|
|
613
|
+
|
|
614
|
+
sublabel?: string | null;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
export interface UnionMember3 {
|
|
618
|
+
key: string;
|
|
619
|
+
|
|
620
|
+
label: string;
|
|
621
|
+
|
|
622
|
+
type: 'GenericOauth';
|
|
623
|
+
|
|
624
|
+
sublabel?: string | null;
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
export interface UnionMember4 {
|
|
628
|
+
key: string;
|
|
629
|
+
|
|
630
|
+
label: string;
|
|
631
|
+
|
|
632
|
+
placeholder: string;
|
|
633
|
+
|
|
634
|
+
type: 'Text' | 'Secret';
|
|
635
|
+
|
|
636
|
+
required?: boolean | null;
|
|
637
|
+
|
|
638
|
+
sublabel?: string | null;
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
|
|
459
643
|
export interface DestinationListParams extends CursorParams {
|
|
460
644
|
/**
|
|
461
645
|
* Filter destinations by status.
|
|
@@ -620,8 +804,8 @@ export interface DestinationCreateParams {
|
|
|
620
804
|
name?: string | null;
|
|
621
805
|
|
|
622
806
|
/**
|
|
623
|
-
* Per-type configuration keys and values. Call GET /rest/v1/
|
|
624
|
-
*
|
|
807
|
+
* Per-type configuration keys and values. Call GET /rest/v1/destinations/types to
|
|
808
|
+
* get the valid keys for your destination type.
|
|
625
809
|
*/
|
|
626
810
|
settings?: unknown | null;
|
|
627
811
|
}
|
|
@@ -634,8 +818,8 @@ export interface DestinationUpdateParams {
|
|
|
634
818
|
name?: string | null;
|
|
635
819
|
|
|
636
820
|
/**
|
|
637
|
-
* Per-type configuration keys and values. Call GET /rest/v1/
|
|
638
|
-
*
|
|
821
|
+
* Per-type configuration keys and values. Call GET /rest/v1/destinations/types to
|
|
822
|
+
* get the valid keys for your destination type.
|
|
639
823
|
*/
|
|
640
824
|
settings?: unknown | null;
|
|
641
825
|
|
|
@@ -649,6 +833,7 @@ export declare namespace Destinations {
|
|
|
649
833
|
type DestinationRetrieveResponse as DestinationRetrieveResponse,
|
|
650
834
|
type DestinationUpdateResponse as DestinationUpdateResponse,
|
|
651
835
|
type DestinationDeleteResponse as DestinationDeleteResponse,
|
|
836
|
+
type DestinationTypesResponse as DestinationTypesResponse,
|
|
652
837
|
type DestinationListResponsesCursor as DestinationListResponsesCursor,
|
|
653
838
|
type DestinationListParams as DestinationListParams,
|
|
654
839
|
type DestinationCreateParams as DestinationCreateParams,
|
package/src/resources/index.ts
CHANGED
|
@@ -26,11 +26,6 @@ export {
|
|
|
26
26
|
type DefaultMappingReplaceResponse,
|
|
27
27
|
type DefaultMappingReplaceParams,
|
|
28
28
|
} from './default-mappings';
|
|
29
|
-
export {
|
|
30
|
-
DestinationTypes,
|
|
31
|
-
type DestinationTypeListResponse,
|
|
32
|
-
type DestinationTypeRetrieveResponse,
|
|
33
|
-
} from './destination-types';
|
|
34
29
|
export {
|
|
35
30
|
Destinations,
|
|
36
31
|
type DestinationListResponse,
|
|
@@ -38,6 +33,7 @@ export {
|
|
|
38
33
|
type DestinationRetrieveResponse,
|
|
39
34
|
type DestinationUpdateResponse,
|
|
40
35
|
type DestinationDeleteResponse,
|
|
36
|
+
type DestinationTypesResponse,
|
|
41
37
|
type DestinationListParams,
|
|
42
38
|
type DestinationCreateParams,
|
|
43
39
|
type DestinationUpdateParams,
|
|
@@ -121,11 +117,6 @@ export {
|
|
|
121
117
|
type LocationUpdateParams,
|
|
122
118
|
type LocationEmbedCodeParams,
|
|
123
119
|
} from './locations';
|
|
124
|
-
export {
|
|
125
|
-
MappingTemplates,
|
|
126
|
-
type MappingTemplateListResponse,
|
|
127
|
-
type MappingTemplateListParams,
|
|
128
|
-
} from './mapping-templates';
|
|
129
120
|
export {
|
|
130
121
|
Mappings,
|
|
131
122
|
type MappingListResponse,
|
|
@@ -134,10 +125,15 @@ export {
|
|
|
134
125
|
type MappingUpdateResponse,
|
|
135
126
|
type MappingDeleteResponse,
|
|
136
127
|
type MappingReorderResponse,
|
|
128
|
+
type MappingTemplatesResponse,
|
|
129
|
+
type MappingDefaultVariablesResponse,
|
|
130
|
+
type MappingCustomVariablesResponse,
|
|
131
|
+
type MappingModificationsResponse,
|
|
137
132
|
type MappingListParams,
|
|
138
133
|
type MappingCreateParams,
|
|
139
134
|
type MappingUpdateParams,
|
|
140
135
|
type MappingReorderParams,
|
|
136
|
+
type MappingTemplatesParams,
|
|
141
137
|
type MappingListResponsesCursor,
|
|
142
138
|
} from './mappings';
|
|
143
139
|
export {
|