@segment/action-destinations 3.494.1-staging-f466f04ea.0 → 3.496.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/dist/destinations/braze/ecommerce/constants.d.ts +0 -1
- package/dist/destinations/braze/ecommerce/constants.js +0 -1
- package/dist/destinations/braze/ecommerce/constants.js.map +1 -1
- package/dist/destinations/braze/ecommerce/fields.d.ts +0 -6
- package/dist/destinations/braze/ecommerce/fields.js +2 -173
- package/dist/destinations/braze/ecommerce/fields.js.map +1 -1
- package/dist/destinations/braze/ecommerce/functions.js +8 -35
- package/dist/destinations/braze/ecommerce/functions.js.map +1 -1
- package/dist/destinations/braze/ecommerce/generated-types.d.ts +0 -4
- package/dist/destinations/braze/ecommerce/types.d.ts +3 -25
- package/dist/destinations/braze/ecommerceSingleProduct/generated-types.d.ts +0 -5
- package/dist/destinations/braze/ecommerceSingleProduct/index.js +0 -1
- package/dist/destinations/braze/ecommerceSingleProduct/index.js.map +1 -1
- package/dist/destinations/braze/index.js +2 -48
- package/dist/destinations/braze/index.js.map +1 -1
- package/dist/destinations/braze/userAlias.d.ts +2 -1
- package/dist/destinations/customerio/createUpdateObject/index.js +11 -33
- package/dist/destinations/customerio/createUpdateObject/index.js.map +1 -1
- package/dist/destinations/customerio/utils.d.ts +1 -4
- package/dist/destinations/customerio/utils.js +7 -52
- package/dist/destinations/customerio/utils.js.map +1 -1
- package/dist/destinations/display-video-360/index.js +0 -7
- package/dist/destinations/display-video-360/index.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/addToCart/generated-types.d.ts +0 -1
- package/dist/destinations/facebook-conversions-api/addToCart2/generated-types.d.ts +0 -1
- package/dist/destinations/facebook-conversions-api/custom/generated-types.d.ts +0 -9
- package/dist/destinations/facebook-conversions-api/custom2/generated-types.d.ts +0 -9
- package/dist/destinations/facebook-conversions-api/initiateCheckout/generated-types.d.ts +0 -1
- package/dist/destinations/facebook-conversions-api/initiateCheckout2/generated-types.d.ts +0 -1
- package/dist/destinations/facebook-conversions-api/pageView/generated-types.d.ts +0 -1
- package/dist/destinations/facebook-conversions-api/pageView2/generated-types.d.ts +0 -1
- package/dist/destinations/facebook-conversions-api/purchase/generated-types.d.ts +0 -11
- package/dist/destinations/facebook-conversions-api/purchase2/generated-types.d.ts +0 -11
- package/dist/destinations/facebook-conversions-api/search/generated-types.d.ts +0 -1
- package/dist/destinations/facebook-conversions-api/search2/generated-types.d.ts +0 -1
- package/dist/destinations/facebook-conversions-api/shared/constants.d.ts +0 -1
- package/dist/destinations/facebook-conversions-api/shared/constants.js +1 -2
- package/dist/destinations/facebook-conversions-api/shared/constants.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/shared/fields.d.ts +0 -3
- package/dist/destinations/facebook-conversions-api/shared/fields.js +2 -109
- package/dist/destinations/facebook-conversions-api/shared/fields.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/shared/functions.d.ts +4 -5
- package/dist/destinations/facebook-conversions-api/shared/functions.js +16 -90
- package/dist/destinations/facebook-conversions-api/shared/functions.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/shared/types.d.ts +1 -23
- package/dist/destinations/facebook-conversions-api/viewContent/generated-types.d.ts +0 -1
- package/dist/destinations/facebook-conversions-api/viewContent2/generated-types.d.ts +0 -1
- package/dist/destinations/facebook-custom-audiences/presets.js +0 -7
- package/dist/destinations/facebook-custom-audiences/presets.js.map +1 -1
- package/dist/destinations/first-party-dv360/properties.js +6 -30
- package/dist/destinations/first-party-dv360/properties.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/functions.d.ts +7 -12
- package/dist/destinations/google-enhanced-conversions/functions.js +103 -163
- package/dist/destinations/google-enhanced-conversions/functions.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/index.js +20 -22
- package/dist/destinations/google-enhanced-conversions/index.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/types.d.ts +0 -20
- package/dist/destinations/google-enhanced-conversions/userList/index.js +24 -20
- package/dist/destinations/google-enhanced-conversions/userList/index.js.map +1 -1
- package/dist/destinations/hubspot/index.js +2 -3
- package/dist/destinations/hubspot/index.js.map +1 -1
- package/dist/destinations/hubspot/versioning-info.d.ts +0 -1
- package/dist/destinations/hubspot/versioning-info.js +1 -2
- package/dist/destinations/hubspot/versioning-info.js.map +1 -1
- package/dist/destinations/iterable/index.js +1 -3
- package/dist/destinations/iterable/index.js.map +1 -1
- package/dist/destinations/iterable/updateUser/generated-types.d.ts +0 -1
- package/dist/destinations/iterable/updateUser/index.js +5 -35
- package/dist/destinations/iterable/updateUser/index.js.map +1 -1
- package/dist/destinations/iterable/utils.d.ts +0 -5
- package/dist/destinations/iterable/utils.js +1 -9
- package/dist/destinations/iterable/utils.js.map +1 -1
- package/dist/destinations/linkedin-conversions/api/index.js +2 -14
- package/dist/destinations/linkedin-conversions/api/index.js.map +1 -1
- package/dist/destinations/linkedin-conversions/streamConversion/generated-types.d.ts +0 -2
- package/dist/destinations/linkedin-conversions/streamConversion/index.js +6 -19
- package/dist/destinations/linkedin-conversions/streamConversion/index.js.map +1 -1
- package/dist/destinations/mixpanel/__test__/multistatus.test.js +1 -0
- package/dist/destinations/mixpanel/__test__/multistatus.test.js.map +1 -1
- package/dist/destinations/mixpanel/generated-types.d.ts +1 -0
- package/dist/destinations/mixpanel/incrementProperties/__test__/index.test.js +6 -0
- package/dist/destinations/mixpanel/incrementProperties/__test__/index.test.js.map +1 -1
- package/dist/destinations/mixpanel/index.js +7 -0
- package/dist/destinations/mixpanel/index.js.map +1 -1
- package/dist/destinations/mixpanel/trackEvent/index.js +1 -1
- package/dist/destinations/mixpanel/trackEvent/index.js.map +1 -1
- package/dist/destinations/mixpanel/trackPurchase/index.js +1 -1
- package/dist/destinations/mixpanel/trackPurchase/index.js.map +1 -1
- package/dist/destinations/ms-bing-ads-audiences/index.js +5 -19
- package/dist/destinations/ms-bing-ads-audiences/index.js.map +1 -1
- package/dist/destinations/ms-bing-ads-audiences/syncAudiences/index.js +5 -68
- package/dist/destinations/ms-bing-ads-audiences/syncAudiences/index.js.map +1 -1
- package/dist/destinations/ms-bing-ads-audiences/utils.d.ts +0 -2
- package/dist/destinations/ms-bing-ads-audiences/utils.js +1 -43
- package/dist/destinations/ms-bing-ads-audiences/utils.js.map +1 -1
- package/dist/destinations/pinterest-conversions/constants.d.ts +0 -13
- package/dist/destinations/pinterest-conversions/constants.js +1 -14
- package/dist/destinations/pinterest-conversions/constants.js.map +1 -1
- package/dist/destinations/pinterest-conversions/index.js +8 -88
- package/dist/destinations/pinterest-conversions/index.js.map +1 -1
- package/dist/destinations/pinterest-conversions/pinterest-capi-custom-data.d.ts +2 -4
- package/dist/destinations/pinterest-conversions/pinterest-capi-custom-data.js +8 -185
- package/dist/destinations/pinterest-conversions/pinterest-capi-custom-data.js.map +1 -1
- package/dist/destinations/pinterest-conversions/reportConversionEvent/generated-types.d.ts +1 -70
- package/dist/destinations/pinterest-conversions/reportConversionEvent/index.js +42 -354
- package/dist/destinations/pinterest-conversions/reportConversionEvent/index.js.map +1 -1
- package/dist/destinations/pinterest-conversions/types.d.ts +0 -117
- package/dist/destinations/reddit-conversions-api/customEvent/generated-types.d.ts +0 -5
- package/dist/destinations/reddit-conversions-api/customEvent/index.js +5 -8
- package/dist/destinations/reddit-conversions-api/customEvent/index.js.map +1 -1
- package/dist/destinations/reddit-conversions-api/fields.d.ts +0 -3
- package/dist/destinations/reddit-conversions-api/fields.js +2 -42
- package/dist/destinations/reddit-conversions-api/fields.js.map +1 -1
- package/dist/destinations/reddit-conversions-api/index.js.map +1 -1
- package/dist/destinations/reddit-conversions-api/standardEvent/generated-types.d.ts +0 -5
- package/dist/destinations/reddit-conversions-api/standardEvent/index.js +5 -8
- package/dist/destinations/reddit-conversions-api/standardEvent/index.js.map +1 -1
- package/dist/destinations/reddit-conversions-api/types.d.ts +0 -50
- package/dist/destinations/reddit-conversions-api/utils.d.ts +2 -6
- package/dist/destinations/reddit-conversions-api/utils.js +137 -12
- package/dist/destinations/reddit-conversions-api/utils.js.map +1 -1
- package/dist/destinations/reddit-conversions-api/versioning-info.d.ts +0 -1
- package/dist/destinations/reddit-conversions-api/versioning-info.js +1 -2
- package/dist/destinations/reddit-conversions-api/versioning-info.js.map +1 -1
- package/dist/destinations/rokt-capi/send/functions.js +16 -37
- package/dist/destinations/rokt-capi/send/functions.js.map +1 -1
- package/dist/destinations/s3/syncToS3/fields.js +0 -28
- package/dist/destinations/s3/syncToS3/fields.js.map +1 -1
- package/dist/destinations/s3/syncToS3/functions.d.ts +3 -5
- package/dist/destinations/s3/syncToS3/functions.js +9 -47
- package/dist/destinations/s3/syncToS3/functions.js.map +1 -1
- package/dist/destinations/s3/syncToS3/generated-types.d.ts +0 -4
- package/dist/destinations/s3/syncToS3/index.js +4 -4
- package/dist/destinations/s3/syncToS3/index.js.map +1 -1
- package/dist/destinations/s3/syncToS3/types.d.ts +0 -2
- package/dist/destinations/salesforce-marketing-cloud/_tests_/getCategoryList.test.js +0 -88
- package/dist/destinations/salesforce-marketing-cloud/_tests_/getCategoryList.test.js.map +1 -1
- package/dist/destinations/salesforce-marketing-cloud/asyncDataExtension/generated-types.d.ts +0 -1
- package/dist/destinations/salesforce-marketing-cloud/asyncDataExtension/index.js +52 -4
- package/dist/destinations/salesforce-marketing-cloud/asyncDataExtension/index.js.map +1 -1
- package/dist/destinations/salesforce-marketing-cloud/index.js +2 -6
- package/dist/destinations/salesforce-marketing-cloud/index.js.map +1 -1
- package/dist/destinations/salesforce-marketing-cloud/sfmc-operations.d.ts +3 -13
- package/dist/destinations/salesforce-marketing-cloud/sfmc-operations.js +6 -11
- package/dist/destinations/salesforce-marketing-cloud/sfmc-operations.js.map +1 -1
- package/dist/destinations/salesforce-marketing-cloud/sfmc-properties.js +2 -2
- package/dist/destinations/salesforce-marketing-cloud/sfmc-properties.js.map +1 -1
- package/dist/destinations/salesforce-marketing-cloud/versioning-info.d.ts +0 -1
- package/dist/destinations/salesforce-marketing-cloud/versioning-info.js +1 -2
- package/dist/destinations/salesforce-marketing-cloud/versioning-info.js.map +1 -1
- package/dist/destinations/tiktok-audiences/index.js +0 -7
- package/dist/destinations/tiktok-audiences/index.js.map +1 -1
- package/dist/destinations/webhook/send/index.js +0 -7
- package/dist/destinations/webhook/send/index.js.map +1 -1
- package/dist/destinations/webhook-extensible/send/index.js +0 -7
- package/dist/destinations/webhook-extensible/send/index.js.map +1 -1
- package/package.json +5 -5
- package/dist/destinations/braze/mergeUsers/functions.d.ts +0 -12
- package/dist/destinations/braze/mergeUsers/functions.js +0 -142
- package/dist/destinations/braze/mergeUsers/functions.js.map +0 -1
- package/dist/destinations/braze/mergeUsers/generated-types.d.ts +0 -17
- package/dist/destinations/braze/mergeUsers/generated-types.js +0 -3
- package/dist/destinations/braze/mergeUsers/generated-types.js.map +0 -1
- package/dist/destinations/braze/mergeUsers/index.d.ts +0 -5
- package/dist/destinations/braze/mergeUsers/index.js +0 -216
- package/dist/destinations/braze/mergeUsers/index.js.map +0 -1
- package/dist/destinations/braze/mergeUsers/types.d.ts +0 -27
- package/dist/destinations/braze/mergeUsers/types.js +0 -3
- package/dist/destinations/braze/mergeUsers/types.js.map +0 -1
- package/dist/destinations/customerio/types.d.ts +0 -9
- package/dist/destinations/customerio/types.js +0 -3
- package/dist/destinations/customerio/types.js.map +0 -1
- package/dist/destinations/iterable/updateSubscriptions/constants.d.ts +0 -3
- package/dist/destinations/iterable/updateSubscriptions/constants.js +0 -7
- package/dist/destinations/iterable/updateSubscriptions/constants.js.map +0 -1
- package/dist/destinations/iterable/updateSubscriptions/dynamic-fields.d.ts +0 -9
- package/dist/destinations/iterable/updateSubscriptions/dynamic-fields.js +0 -60
- package/dist/destinations/iterable/updateSubscriptions/dynamic-fields.js.map +0 -1
- package/dist/destinations/iterable/updateSubscriptions/functions.d.ts +0 -9
- package/dist/destinations/iterable/updateSubscriptions/functions.js +0 -168
- package/dist/destinations/iterable/updateSubscriptions/functions.js.map +0 -1
- package/dist/destinations/iterable/updateSubscriptions/generated-types.d.ts +0 -15
- package/dist/destinations/iterable/updateSubscriptions/generated-types.js +0 -3
- package/dist/destinations/iterable/updateSubscriptions/generated-types.js.map +0 -1
- package/dist/destinations/iterable/updateSubscriptions/index.d.ts +0 -5
- package/dist/destinations/iterable/updateSubscriptions/index.js +0 -129
- package/dist/destinations/iterable/updateSubscriptions/index.js.map +0 -1
- package/dist/destinations/iterable/updateSubscriptions/types.d.ts +0 -39
- package/dist/destinations/iterable/updateSubscriptions/types.js +0 -3
- package/dist/destinations/iterable/updateSubscriptions/types.js.map +0 -1
- package/dist/destinations/reddit-conversions-api/shared.d.ts +0 -20
- package/dist/destinations/reddit-conversions-api/shared.js +0 -66
- package/dist/destinations/reddit-conversions-api/shared.js.map +0 -1
- package/dist/destinations/reddit-conversions-api/v2.d.ts +0 -5
- package/dist/destinations/reddit-conversions-api/v2.js +0 -87
- package/dist/destinations/reddit-conversions-api/v2.js.map +0 -1
- package/dist/destinations/reddit-conversions-api/v3.d.ts +0 -6
- package/dist/destinations/reddit-conversions-api/v3.js +0 -118
- package/dist/destinations/reddit-conversions-api/v3.js.map +0 -1
- package/dist/destinations/s3/constants.d.ts +0 -1
- package/dist/destinations/s3/constants.js +0 -5
- package/dist/destinations/s3/constants.js.map +0 -1
- package/dist/destinations/salesforce-marketing-cloud/_tests_/asyncDataExtension.async.test.d.ts +0 -1
- package/dist/destinations/salesforce-marketing-cloud/_tests_/asyncDataExtension.async.test.js +0 -656
- package/dist/destinations/salesforce-marketing-cloud/_tests_/asyncDataExtension.async.test.js.map +0 -1
- package/dist/destinations/salesforce-marketing-cloud/asyncDataExtension/fields.d.ts +0 -140
- package/dist/destinations/salesforce-marketing-cloud/asyncDataExtension/fields.js +0 -69
- package/dist/destinations/salesforce-marketing-cloud/asyncDataExtension/fields.js.map +0 -1
- package/dist/destinations/salesforce-marketing-cloud/asyncDataExtension/index.async.d.ts +0 -5
- package/dist/destinations/salesforce-marketing-cloud/asyncDataExtension/index.async.js +0 -145
- package/dist/destinations/salesforce-marketing-cloud/asyncDataExtension/index.async.js.map +0 -1
- package/dist/destinations/webhook/ssrf-utils.d.ts +0 -1
- package/dist/destinations/webhook/ssrf-utils.js +0 -74
- package/dist/destinations/webhook/ssrf-utils.js.map +0 -1
- package/dist/destinations/webhook-extensible/ssrf-utils.d.ts +0 -1
- package/dist/destinations/webhook-extensible/ssrf-utils.js +0 -74
- package/dist/destinations/webhook-extensible/ssrf-utils.js.map +0 -1
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
|
|
5
|
-
label: '
|
|
6
|
-
description: 'Object containing
|
|
3
|
+
exports.custom_data_field = void 0;
|
|
4
|
+
exports.custom_data_field = {
|
|
5
|
+
label: 'Custom Data',
|
|
6
|
+
description: 'Object containing customer information data.',
|
|
7
7
|
type: 'object',
|
|
8
|
-
depends_on: dependsOn,
|
|
9
8
|
properties: {
|
|
10
9
|
currency: {
|
|
11
10
|
label: 'Currency',
|
|
@@ -40,29 +39,9 @@ const getCustomDataField = (dependsOn) => ({
|
|
|
40
39
|
description: 'The price of the Item'
|
|
41
40
|
},
|
|
42
41
|
quantity: {
|
|
43
|
-
label: '
|
|
42
|
+
label: 'quantity',
|
|
44
43
|
type: 'integer',
|
|
45
|
-
description: 'The number of items purchased
|
|
46
|
-
},
|
|
47
|
-
item_brand: {
|
|
48
|
-
label: 'Item Brand',
|
|
49
|
-
type: 'string',
|
|
50
|
-
description: 'The brand of a product.'
|
|
51
|
-
},
|
|
52
|
-
item_brand_id: {
|
|
53
|
-
label: 'Item Brand ID',
|
|
54
|
-
type: 'string',
|
|
55
|
-
description: 'The brand ID of a product. Max 64 characters.'
|
|
56
|
-
},
|
|
57
|
-
item_category: {
|
|
58
|
-
label: 'Item Category',
|
|
59
|
-
type: 'string',
|
|
60
|
-
description: 'The category of a product.'
|
|
61
|
-
},
|
|
62
|
-
item_name: {
|
|
63
|
-
label: 'Item Name',
|
|
64
|
-
type: 'string',
|
|
65
|
-
description: 'The name of a product.'
|
|
44
|
+
description: 'The number of items purchased'
|
|
66
45
|
}
|
|
67
46
|
}
|
|
68
47
|
},
|
|
@@ -83,28 +62,8 @@ const getCustomDataField = (dependsOn) => ({
|
|
|
83
62
|
},
|
|
84
63
|
opt_out_type: {
|
|
85
64
|
label: 'Opt Out Type',
|
|
86
|
-
description:
|
|
87
|
-
type: 'string'
|
|
88
|
-
},
|
|
89
|
-
content_brand: {
|
|
90
|
-
label: 'Content Brand',
|
|
91
|
-
description: 'The brand of the content associated with the event.',
|
|
65
|
+
description: 'opt_out_type is the field where we accept opt outs for your users’ privacy preference. It can handle multiple values with commas separated.',
|
|
92
66
|
type: 'string'
|
|
93
|
-
},
|
|
94
|
-
content_category: {
|
|
95
|
-
label: 'Content Category',
|
|
96
|
-
description: 'The category of the content associated with the event.',
|
|
97
|
-
type: 'string'
|
|
98
|
-
},
|
|
99
|
-
content_name: {
|
|
100
|
-
label: 'Content Name',
|
|
101
|
-
description: 'The name of the page or product associated with the event.',
|
|
102
|
-
type: 'string'
|
|
103
|
-
},
|
|
104
|
-
predicted_ltv: {
|
|
105
|
-
label: 'Predicted LTV',
|
|
106
|
-
description: 'Predicted lifetime value of user associated with the event.',
|
|
107
|
-
type: 'number'
|
|
108
67
|
}
|
|
109
68
|
},
|
|
110
69
|
default: {
|
|
@@ -125,141 +84,5 @@ const getCustomDataField = (dependsOn) => ({
|
|
|
125
84
|
'@path': '$.properties.currency'
|
|
126
85
|
}
|
|
127
86
|
}
|
|
128
|
-
}
|
|
129
|
-
exports.getCustomDataField = getCustomDataField;
|
|
130
|
-
const getCustomDataField2 = (dependsOn) => ({
|
|
131
|
-
label: 'Custom Data',
|
|
132
|
-
description: 'Object containing custom event data.',
|
|
133
|
-
type: 'object',
|
|
134
|
-
depends_on: dependsOn,
|
|
135
|
-
properties: {
|
|
136
|
-
currency: {
|
|
137
|
-
label: 'Currency',
|
|
138
|
-
type: 'string',
|
|
139
|
-
description: 'ISO-4217 currency code. If not provided, it will default to the currency set for the ad account.'
|
|
140
|
-
},
|
|
141
|
-
value: {
|
|
142
|
-
label: 'Value',
|
|
143
|
-
type: 'number',
|
|
144
|
-
description: 'Total value of the event. E.g. if there are multiple items in a checkout event, value should be the total price of all items.'
|
|
145
|
-
},
|
|
146
|
-
content_ids: {
|
|
147
|
-
label: 'Content IDs',
|
|
148
|
-
type: 'string',
|
|
149
|
-
multiple: true,
|
|
150
|
-
description: 'Product IDs as an array of strings.'
|
|
151
|
-
},
|
|
152
|
-
num_items: {
|
|
153
|
-
label: 'Number of Items',
|
|
154
|
-
type: 'integer',
|
|
155
|
-
description: 'Total number of products in the event.'
|
|
156
|
-
},
|
|
157
|
-
order_id: {
|
|
158
|
-
label: 'Order ID',
|
|
159
|
-
type: 'string',
|
|
160
|
-
description: 'The order ID.'
|
|
161
|
-
},
|
|
162
|
-
search_string: {
|
|
163
|
-
label: 'Search String',
|
|
164
|
-
type: 'string',
|
|
165
|
-
description: 'Search string related to the conversion event.'
|
|
166
|
-
},
|
|
167
|
-
opt_out_type: {
|
|
168
|
-
label: 'Opt Out Type',
|
|
169
|
-
type: 'string',
|
|
170
|
-
description: "The field where Pinterest accepts opt outs for your users' privacy preference. It can handle multiple values with commas separated."
|
|
171
|
-
},
|
|
172
|
-
content_brand: {
|
|
173
|
-
label: 'Content Brand',
|
|
174
|
-
type: 'string',
|
|
175
|
-
description: 'The brand of the content associated with the event.'
|
|
176
|
-
},
|
|
177
|
-
content_category: {
|
|
178
|
-
label: 'Content Category',
|
|
179
|
-
type: 'string',
|
|
180
|
-
description: 'The category of the content associated with the event.'
|
|
181
|
-
},
|
|
182
|
-
content_name: {
|
|
183
|
-
label: 'Content Name',
|
|
184
|
-
type: 'string',
|
|
185
|
-
description: 'The name of the page or product associated with the event.'
|
|
186
|
-
},
|
|
187
|
-
predicted_ltv: {
|
|
188
|
-
label: 'Predicted LTV',
|
|
189
|
-
type: 'number',
|
|
190
|
-
description: 'Predicted lifetime value of user associated with the event.'
|
|
191
|
-
}
|
|
192
|
-
},
|
|
193
|
-
default: {
|
|
194
|
-
currency: { '@path': '$.properties.currency' },
|
|
195
|
-
value: {
|
|
196
|
-
'@if': {
|
|
197
|
-
exists: { '@path': '$.properties.price' },
|
|
198
|
-
then: { '@path': '$.properties.price' },
|
|
199
|
-
else: { '@path': '$.properties.value' }
|
|
200
|
-
}
|
|
201
|
-
},
|
|
202
|
-
order_id: { '@path': '$.properties.order_id' },
|
|
203
|
-
search_string: { '@path': '$.properties.query' }
|
|
204
|
-
}
|
|
205
|
-
});
|
|
206
|
-
exports.getCustomDataField2 = getCustomDataField2;
|
|
207
|
-
const getContentsField = (dependsOn) => ({
|
|
208
|
-
label: 'Contents',
|
|
209
|
-
description: 'A list of objects containing information about products.',
|
|
210
|
-
type: 'object',
|
|
211
|
-
multiple: true,
|
|
212
|
-
depends_on: dependsOn,
|
|
213
|
-
properties: {
|
|
214
|
-
id: {
|
|
215
|
-
label: 'Product ID',
|
|
216
|
-
type: 'string',
|
|
217
|
-
description: 'The id of the item.'
|
|
218
|
-
},
|
|
219
|
-
item_price: {
|
|
220
|
-
label: 'Price',
|
|
221
|
-
type: 'number',
|
|
222
|
-
description: 'The price of the item.'
|
|
223
|
-
},
|
|
224
|
-
quantity: {
|
|
225
|
-
label: 'Quantity',
|
|
226
|
-
type: 'integer',
|
|
227
|
-
description: 'The number of items purchased.'
|
|
228
|
-
},
|
|
229
|
-
item_brand: {
|
|
230
|
-
label: 'Item Brand',
|
|
231
|
-
type: 'string',
|
|
232
|
-
description: 'The brand of the product.'
|
|
233
|
-
},
|
|
234
|
-
item_brand_id: {
|
|
235
|
-
label: 'Item Brand ID',
|
|
236
|
-
type: 'string',
|
|
237
|
-
description: 'The brand ID of the product. Max 64 characters.'
|
|
238
|
-
},
|
|
239
|
-
item_category: {
|
|
240
|
-
label: 'Item Category',
|
|
241
|
-
type: 'string',
|
|
242
|
-
description: 'The category of the product.'
|
|
243
|
-
},
|
|
244
|
-
item_name: {
|
|
245
|
-
label: 'Item Name',
|
|
246
|
-
type: 'string',
|
|
247
|
-
description: 'The name of the product.'
|
|
248
|
-
}
|
|
249
|
-
},
|
|
250
|
-
default: {
|
|
251
|
-
'@arrayPath': [
|
|
252
|
-
'$.properties.products',
|
|
253
|
-
{
|
|
254
|
-
id: { '@path': '$.product_id' },
|
|
255
|
-
item_price: { '@path': '$.price' },
|
|
256
|
-
quantity: { '@path': '$.quantity' },
|
|
257
|
-
item_brand: { '@path': '$.brand' },
|
|
258
|
-
item_category: { '@path': '$.category' },
|
|
259
|
-
item_name: { '@path': '$.name' }
|
|
260
|
-
}
|
|
261
|
-
]
|
|
262
|
-
}
|
|
263
|
-
});
|
|
264
|
-
exports.getContentsField = getContentsField;
|
|
87
|
+
};
|
|
265
88
|
//# sourceMappingURL=pinterest-capi-custom-data.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pinterest-capi-custom-data.js","sourceRoot":"","sources":["../../../src/destinations/pinterest-conversions/pinterest-capi-custom-data.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"pinterest-capi-custom-data.js","sourceRoot":"","sources":["../../../src/destinations/pinterest-conversions/pinterest-capi-custom-data.ts"],"names":[],"mappings":";;;AAEa,QAAA,iBAAiB,GAAe;IAC3C,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,8CAA8C;IAC3D,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,QAAQ,EAAE;YACR,KAAK,EAAE,UAAU;YACjB,WAAW,EAAE,kGAAkG;YAC/G,IAAI,EAAE,QAAQ;SACf;QACD,KAAK,EAAE;YACL,KAAK,EAAE,OAAO;YACd,WAAW,EACT,8HAA8H;YAChI,IAAI,EAAE,QAAQ;SACf;QACD,WAAW,EAAE;YACX,KAAK,EAAE,aAAa;YACpB,WAAW,EAAE,oCAAoC;YACjD,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACf;QACD,QAAQ,EAAE;YACR,KAAK,EAAE,cAAc;YACrB,WAAW,EAAE,0DAA0D;YACvE,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,UAAU,EAAE;gBACV,EAAE,EAAE;oBACF,KAAK,EAAE,IAAI;oBACX,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,oBAAoB;iBAClC;gBACD,UAAU,EAAE;oBACV,KAAK,EAAE,OAAO;oBACd,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,uBAAuB;iBACrC;gBACD,QAAQ,EAAE;oBACR,KAAK,EAAE,UAAU;oBACjB,IAAI,EAAE,SAAS;oBACf,WAAW,EAAE,+BAA+B;iBAC7C;aACF;SACF;QACD,SAAS,EAAE;YACT,KAAK,EAAE,iBAAiB;YACxB,WAAW,EAAE,yCAAyC;YACtD,IAAI,EAAE,SAAS;SAChB;QACD,QAAQ,EAAE;YACR,KAAK,EAAE,UAAU;YACjB,WAAW,EAAE,UAAU;YACvB,IAAI,EAAE,QAAQ;SACf;QACD,aAAa,EAAE;YACb,KAAK,EAAE,eAAe;YACtB,WAAW,EAAE,gDAAgD;YAC7D,IAAI,EAAE,QAAQ;SACf;QACD,YAAY,EAAE;YACZ,KAAK,EAAE,cAAc;YACrB,WAAW,EACT,8IAA8I;YAChJ,IAAI,EAAE,QAAQ;SACf;KACF;IACD,OAAO,EAAE;QACP,KAAK,EAAE;YACL,KAAK,EAAE;gBACL,MAAM,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE;gBACzC,IAAI,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE;gBACvC,IAAI,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE;aACxC;SACF;QACD,aAAa,EAAE;YACb,OAAO,EAAE,oBAAoB;SAC9B;QACD,QAAQ,EAAE;YACR,OAAO,EAAE,uBAAuB;SACjC;QACD,QAAQ,EAAE;YACR,OAAO,EAAE,uBAAuB;SACjC;KACF;CACF,CAAA"}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
export interface Payload {
|
|
2
|
-
data_format?: string;
|
|
3
2
|
event_name: string;
|
|
4
3
|
action_source: string;
|
|
5
4
|
event_time: string;
|
|
6
5
|
event_id: string;
|
|
7
6
|
event_source_url?: string;
|
|
8
7
|
opt_out?: boolean;
|
|
9
|
-
advertiser_tracking_enabled?: boolean;
|
|
10
8
|
user_data?: {
|
|
11
9
|
email?: string[];
|
|
12
10
|
hashed_maids?: string[];
|
|
@@ -33,87 +31,20 @@ export interface Payload {
|
|
|
33
31
|
id?: string;
|
|
34
32
|
item_price?: number;
|
|
35
33
|
quantity?: number;
|
|
36
|
-
item_brand?: string;
|
|
37
|
-
item_brand_id?: string;
|
|
38
|
-
item_category?: string;
|
|
39
|
-
item_name?: string;
|
|
40
34
|
}[];
|
|
41
35
|
num_items?: number;
|
|
42
36
|
order_id?: string;
|
|
43
37
|
search_string?: string;
|
|
44
38
|
opt_out_type?: string;
|
|
45
|
-
content_brand?: string;
|
|
46
|
-
content_category?: string;
|
|
47
|
-
content_name?: string;
|
|
48
|
-
predicted_ltv?: number;
|
|
49
39
|
};
|
|
50
40
|
app_id?: string;
|
|
51
|
-
app_name
|
|
41
|
+
app_name: string;
|
|
52
42
|
app_version?: string;
|
|
53
43
|
device_brand?: string;
|
|
54
44
|
device_carrier?: string;
|
|
55
45
|
device_model?: string;
|
|
56
46
|
device_type?: string;
|
|
57
47
|
os_version?: string;
|
|
58
|
-
custom_data_2?: {
|
|
59
|
-
currency?: string;
|
|
60
|
-
value?: number;
|
|
61
|
-
content_ids?: string[];
|
|
62
|
-
num_items?: number;
|
|
63
|
-
order_id?: string;
|
|
64
|
-
search_string?: string;
|
|
65
|
-
opt_out_type?: string;
|
|
66
|
-
content_brand?: string;
|
|
67
|
-
content_category?: string;
|
|
68
|
-
content_name?: string;
|
|
69
|
-
predicted_ltv?: number;
|
|
70
|
-
};
|
|
71
|
-
contents?: {
|
|
72
|
-
id?: string;
|
|
73
|
-
item_price?: number;
|
|
74
|
-
quantity?: number;
|
|
75
|
-
item_brand?: string;
|
|
76
|
-
item_brand_id?: string;
|
|
77
|
-
item_category?: string;
|
|
78
|
-
item_name?: string;
|
|
79
|
-
}[];
|
|
80
|
-
app_info?: {
|
|
81
|
-
app_id?: string;
|
|
82
|
-
app_name?: string;
|
|
83
|
-
app_package_name?: string;
|
|
84
|
-
app_store?: string;
|
|
85
|
-
app_version?: string;
|
|
86
|
-
install_time?: string | number;
|
|
87
|
-
user_agent?: string;
|
|
88
|
-
window_height?: number;
|
|
89
|
-
window_width?: number;
|
|
90
|
-
};
|
|
91
|
-
device_info?: {
|
|
92
|
-
battery_level?: number;
|
|
93
|
-
brand?: string;
|
|
94
|
-
carrier?: string;
|
|
95
|
-
cpu_cores?: number;
|
|
96
|
-
external_storage_free_space?: number;
|
|
97
|
-
external_storage_size?: number;
|
|
98
|
-
form_factor?: string;
|
|
99
|
-
kernel_version?: string;
|
|
100
|
-
languages?: string[];
|
|
101
|
-
locale?: string;
|
|
102
|
-
model?: string;
|
|
103
|
-
network_type?: string;
|
|
104
|
-
os_family?: string;
|
|
105
|
-
os_name?: string;
|
|
106
|
-
os_release_name?: string;
|
|
107
|
-
os_version?: string;
|
|
108
|
-
screen_density?: number;
|
|
109
|
-
screen_height?: number;
|
|
110
|
-
screen_width?: number;
|
|
111
|
-
storage_free_space?: number;
|
|
112
|
-
storage_size?: number;
|
|
113
|
-
timezone?: string;
|
|
114
|
-
timezone_abbr?: string;
|
|
115
|
-
type?: string;
|
|
116
|
-
};
|
|
117
48
|
wifi?: boolean;
|
|
118
49
|
language?: string;
|
|
119
50
|
}
|