@segment/action-destinations 3.165.0 → 3.165.1-add-new-error.23
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/acoustic/Utility/eventprocessing.js +18 -18
- package/dist/destinations/acoustic/Utility/eventprocessing.js.map +1 -1
- package/dist/destinations/airship/customEvents/generated-types.d.ts +9 -0
- package/dist/destinations/airship/customEvents/generated-types.js +3 -0
- package/dist/destinations/airship/customEvents/generated-types.js.map +1 -0
- package/dist/destinations/airship/customEvents/index.d.ts +5 -0
- package/dist/destinations/airship/customEvents/index.js +59 -0
- package/dist/destinations/airship/customEvents/index.js.map +1 -0
- package/dist/destinations/airship/generated-types.d.ts +5 -0
- package/dist/destinations/airship/generated-types.js +3 -0
- package/dist/destinations/airship/generated-types.js.map +1 -0
- package/dist/destinations/airship/index.d.ts +4 -0
- package/dist/destinations/airship/index.js +97 -0
- package/dist/destinations/airship/index.js.map +1 -0
- package/dist/destinations/airship/manageTags/generated-types.d.ts +7 -0
- package/dist/destinations/airship/manageTags/generated-types.js +3 -0
- package/dist/destinations/airship/manageTags/generated-types.js.map +1 -0
- package/dist/destinations/airship/manageTags/index.d.ts +5 -0
- package/dist/destinations/airship/manageTags/index.js +38 -0
- package/dist/destinations/airship/manageTags/index.js.map +1 -0
- package/dist/destinations/airship/setAttributes/generated-types.d.ts +30 -0
- package/dist/destinations/airship/setAttributes/generated-types.js +3 -0
- package/dist/destinations/airship/setAttributes/generated-types.js.map +1 -0
- package/dist/destinations/airship/setAttributes/index.d.ts +5 -0
- package/dist/destinations/airship/setAttributes/index.js +182 -0
- package/dist/destinations/airship/setAttributes/index.js.map +1 -0
- package/dist/destinations/airship/utilities.d.ts +28 -0
- package/dist/destinations/airship/utilities.js +146 -0
- package/dist/destinations/airship/utilities.js.map +1 -0
- package/dist/destinations/calliper/alias/generated-types.d.ts +5 -0
- package/dist/destinations/calliper/alias/generated-types.js +3 -0
- package/dist/destinations/calliper/alias/generated-types.js.map +1 -0
- package/dist/destinations/calliper/alias/index.d.ts +5 -0
- package/dist/destinations/calliper/alias/index.js +60 -0
- package/dist/destinations/calliper/alias/index.js.map +1 -0
- package/dist/destinations/calliper/generated-types.d.ts +4 -0
- package/dist/destinations/calliper/generated-types.js +3 -0
- package/dist/destinations/calliper/generated-types.js.map +1 -0
- package/dist/destinations/calliper/identifyGroup/generated-types.d.ts +7 -0
- package/dist/destinations/calliper/identifyGroup/generated-types.js +3 -0
- package/dist/destinations/calliper/identifyGroup/generated-types.js.map +1 -0
- package/dist/destinations/calliper/identifyGroup/index.d.ts +5 -0
- package/dist/destinations/calliper/identifyGroup/index.js +53 -0
- package/dist/destinations/calliper/identifyGroup/index.js.map +1 -0
- package/dist/destinations/calliper/identifyUser/generated-types.d.ts +14 -0
- package/dist/destinations/calliper/identifyUser/generated-types.js +3 -0
- package/dist/destinations/calliper/identifyUser/generated-types.js.map +1 -0
- package/dist/destinations/calliper/identifyUser/index.d.ts +5 -0
- package/dist/destinations/calliper/identifyUser/index.js +152 -0
- package/dist/destinations/calliper/identifyUser/index.js.map +1 -0
- package/dist/destinations/calliper/index.d.ts +4 -0
- package/dist/destinations/calliper/index.js +81 -0
- package/dist/destinations/calliper/index.js.map +1 -0
- package/dist/destinations/calliper/trackEvent/eventProperties.d.ts +2 -0
- package/dist/destinations/calliper/trackEvent/eventProperties.js +231 -0
- package/dist/destinations/calliper/trackEvent/eventProperties.js.map +1 -0
- package/dist/destinations/calliper/trackEvent/generated-types.d.ts +32 -0
- package/dist/destinations/calliper/trackEvent/generated-types.js +3 -0
- package/dist/destinations/calliper/trackEvent/generated-types.js.map +1 -0
- package/dist/destinations/calliper/trackEvent/index.d.ts +5 -0
- package/dist/destinations/calliper/trackEvent/index.js +65 -0
- package/dist/destinations/calliper/trackEvent/index.js.map +1 -0
- package/dist/destinations/calliper/utils/constants.d.ts +1 -0
- package/dist/destinations/calliper/utils/constants.js +5 -0
- package/dist/destinations/calliper/utils/constants.js.map +1 -0
- package/dist/destinations/calliper/utils/helpers.d.ts +1 -0
- package/dist/destinations/calliper/utils/helpers.js +8 -0
- package/dist/destinations/calliper/utils/helpers.js.map +1 -0
- package/dist/destinations/facebook-conversions-api/addToCart/generated-types.d.ts +21 -0
- package/dist/destinations/facebook-conversions-api/addToCart/index.js +3 -0
- package/dist/destinations/facebook-conversions-api/addToCart/index.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/custom/generated-types.d.ts +21 -0
- package/dist/destinations/facebook-conversions-api/custom/index.js +3 -0
- package/dist/destinations/facebook-conversions-api/custom/index.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/fb-capi-app-data.d.ts +10 -0
- package/dist/destinations/facebook-conversions-api/fb-capi-app-data.js +179 -0
- package/dist/destinations/facebook-conversions-api/fb-capi-app-data.js.map +1 -0
- package/dist/destinations/facebook-conversions-api/index.js +1 -1
- package/dist/destinations/facebook-conversions-api/index.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/initiateCheckout/generated-types.d.ts +21 -0
- package/dist/destinations/facebook-conversions-api/initiateCheckout/index.js +3 -0
- package/dist/destinations/facebook-conversions-api/initiateCheckout/index.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/pageView/generated-types.d.ts +21 -0
- package/dist/destinations/facebook-conversions-api/pageView/index.js +3 -0
- package/dist/destinations/facebook-conversions-api/pageView/index.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/purchase/generated-types.d.ts +21 -0
- package/dist/destinations/facebook-conversions-api/purchase/index.js +3 -0
- package/dist/destinations/facebook-conversions-api/purchase/index.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/search/generated-types.d.ts +21 -0
- package/dist/destinations/facebook-conversions-api/search/index.js +3 -0
- package/dist/destinations/facebook-conversions-api/search/index.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/viewContent/generated-types.d.ts +21 -0
- package/dist/destinations/facebook-conversions-api/viewContent/index.js +3 -0
- package/dist/destinations/facebook-conversions-api/viewContent/index.js.map +1 -1
- package/dist/destinations/fullstory/index.js +1 -1
- package/dist/destinations/fullstory/index.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/functions.d.ts +1 -0
- package/dist/destinations/google-enhanced-conversions/functions.js +3 -1
- package/dist/destinations/google-enhanced-conversions/functions.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/uploadClickConversion/index.js +3 -1
- package/dist/destinations/google-enhanced-conversions/uploadClickConversion/index.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment/index.js +3 -1
- package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment/index.js.map +1 -1
- package/dist/destinations/index.js +2 -0
- package/dist/destinations/index.js.map +1 -1
- package/dist/destinations/iterable/index.js +3 -3
- package/dist/destinations/iterable/index.js.map +1 -1
- package/dist/destinations/iterable/shared-fields.d.ts +15 -1
- package/dist/destinations/iterable/shared-fields.js +19 -17
- package/dist/destinations/iterable/shared-fields.js.map +1 -1
- package/dist/destinations/iterable/trackEvent/index.js +4 -1
- package/dist/destinations/iterable/trackEvent/index.js.map +1 -1
- package/dist/destinations/iterable/trackPurchase/generated-types.d.ts +1 -4
- package/dist/destinations/iterable/trackPurchase/index.js +21 -26
- package/dist/destinations/iterable/trackPurchase/index.js.map +1 -1
- package/dist/destinations/iterable/updateCart/generated-types.d.ts +1 -4
- package/dist/destinations/iterable/updateCart/index.js +21 -28
- package/dist/destinations/iterable/updateCart/index.js.map +1 -1
- package/dist/destinations/iterable/updateUser/generated-types.d.ts +1 -1
- package/dist/destinations/iterable/updateUser/index.js +12 -8
- package/dist/destinations/iterable/updateUser/index.js.map +1 -1
- package/dist/destinations/iterable/utils.d.ts +4 -0
- package/dist/destinations/iterable/utils.js +63 -0
- package/dist/destinations/iterable/utils.js.map +1 -0
- package/dist/destinations/liveramp-audiences/audienceEntered/generated-types.d.ts +1 -0
- package/dist/destinations/liveramp-audiences/audienceEntered/index.js +7 -0
- package/dist/destinations/liveramp-audiences/audienceEntered/index.js.map +1 -1
- package/dist/destinations/liveramp-audiences/generated-types.d.ts +2 -0
- package/dist/destinations/liveramp-audiences/index.js +14 -0
- package/dist/destinations/liveramp-audiences/index.js.map +1 -1
- package/dist/destinations/noop/generated-types.d.ts +2 -0
- package/dist/destinations/noop/generated-types.js +3 -0
- package/dist/destinations/noop/generated-types.js.map +1 -0
- package/dist/destinations/noop/index.d.ts +4 -0
- package/dist/destinations/noop/index.js +27 -0
- package/dist/destinations/noop/index.js.map +1 -0
- package/dist/destinations/noop/noop/generated-types.d.ts +3 -0
- package/dist/destinations/noop/noop/generated-types.js +3 -0
- package/dist/destinations/noop/noop/generated-types.js.map +1 -0
- package/dist/destinations/noop/noop/index.d.ts +5 -0
- package/dist/destinations/noop/noop/index.js +19 -0
- package/dist/destinations/noop/noop/index.js.map +1 -0
- package/dist/destinations/optimizely-feature-experimentation-actions/trackEvent/index.js +1 -1
- package/dist/destinations/optimizely-feature-experimentation-actions/trackEvent/index.js.map +1 -1
- package/dist/destinations/snap-conversions-api/snap-capi-properties.js +2 -1
- package/dist/destinations/snap-conversions-api/snap-capi-properties.js.map +1 -1
- package/dist/destinations/usermaven/common-definitions.js +1 -1
- package/dist/destinations/usermaven/common-definitions.js.map +1 -1
- package/dist/destinations/usermaven/generated-types.d.ts +1 -0
- package/dist/destinations/usermaven/group/generated-types.d.ts +1 -1
- package/dist/destinations/usermaven/identify/generated-types.d.ts +1 -1
- package/dist/destinations/usermaven/index.js +10 -1
- package/dist/destinations/usermaven/index.js.map +1 -1
- package/dist/destinations/usermaven/page/generated-types.d.ts +1 -1
- package/dist/destinations/usermaven/request-params.js +4 -3
- package/dist/destinations/usermaven/request-params.js.map +1 -1
- package/dist/destinations/usermaven/track/generated-types.d.ts +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.app_data_field = exports.generate_app_data = void 0;
|
|
4
|
+
const generate_app_data = (app_data) => {
|
|
5
|
+
if (!app_data || !app_data.use_app_data) {
|
|
6
|
+
return undefined;
|
|
7
|
+
}
|
|
8
|
+
return {
|
|
9
|
+
advertiser_tracking_enabled: app_data?.advertiser_tracking_enabled ? 1 : 0,
|
|
10
|
+
application_tracking_enabled: app_data?.application_tracking_enabled ? 1 : 0,
|
|
11
|
+
extinfo: [
|
|
12
|
+
app_data?.version ?? '',
|
|
13
|
+
app_data?.packageName ?? '',
|
|
14
|
+
app_data?.shortVersion ?? '',
|
|
15
|
+
app_data?.longVersion ?? '',
|
|
16
|
+
app_data?.osVersion ?? '',
|
|
17
|
+
app_data?.deviceName ?? '',
|
|
18
|
+
app_data?.locale ?? '',
|
|
19
|
+
app_data?.timezone ?? '',
|
|
20
|
+
app_data?.carrier ?? '',
|
|
21
|
+
app_data?.width ?? '',
|
|
22
|
+
app_data?.height ?? '',
|
|
23
|
+
app_data?.density ?? '',
|
|
24
|
+
app_data?.cpuCores ?? '',
|
|
25
|
+
app_data?.storageSize ?? '',
|
|
26
|
+
app_data?.freeStorage ?? '',
|
|
27
|
+
app_data?.deviceTimezone ?? ''
|
|
28
|
+
]
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
exports.generate_app_data = generate_app_data;
|
|
32
|
+
exports.app_data_field = {
|
|
33
|
+
label: 'App Events Fields',
|
|
34
|
+
description: `These fields support sending app events to Facebook through the Conversions API. For more information about app events support in the Conversions API, see the Facebook docs [here](https://developers.facebook.com/docs/marketing-api/conversions-api/app-events).
|
|
35
|
+
App events sent through the Conversions API must be associated with a dataset.
|
|
36
|
+
Instructions for creating a dataset can be found [here](https://www.facebook.com/business/help/750785952855662?id=490360542427371). Once a dataset is created, the dataset ID
|
|
37
|
+
can be substituted for the pixel ID in the destination settings.`,
|
|
38
|
+
type: 'object',
|
|
39
|
+
properties: {
|
|
40
|
+
use_app_data: {
|
|
41
|
+
label: 'Send App Events?',
|
|
42
|
+
description: 'Segment will not send app events to Facebook by default. Enable this once you have created a dataset in Facebook and are ready to begin sending app events.',
|
|
43
|
+
type: 'boolean',
|
|
44
|
+
default: false
|
|
45
|
+
},
|
|
46
|
+
advertiser_tracking_enabled: {
|
|
47
|
+
label: 'Advertiser Tracking Enabled',
|
|
48
|
+
description: `*Required for app events*
|
|
49
|
+
Use this field to specify ATT permission on an iOS 14.5+ device. Set to 0 for disabled or 1 for enabled.`,
|
|
50
|
+
type: 'boolean'
|
|
51
|
+
},
|
|
52
|
+
application_tracking_enabled: {
|
|
53
|
+
label: 'Application Tracking Enabled',
|
|
54
|
+
type: 'boolean',
|
|
55
|
+
description: `*Required for app events*
|
|
56
|
+
A person can choose to enable ad tracking on an app level. Your SDK should allow an app developer to put an opt-out setting into their app. Use this field to specify the person's choice. Use 0 for disabled, 1 for enabled.`
|
|
57
|
+
},
|
|
58
|
+
version: {
|
|
59
|
+
label: 'ExtInfo Version',
|
|
60
|
+
description: `*Required for app events* Example: 'i2'.`,
|
|
61
|
+
type: 'string',
|
|
62
|
+
choices: [
|
|
63
|
+
{ label: 'iOS', value: 'i2' },
|
|
64
|
+
{ label: 'Android', value: 'a2' }
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
packageName: {
|
|
68
|
+
label: 'Package Name',
|
|
69
|
+
description: `Example: 'com.facebook.sdk.samples.hellofacebook'.`,
|
|
70
|
+
type: 'string'
|
|
71
|
+
},
|
|
72
|
+
shortVersion: {
|
|
73
|
+
label: 'Short Version',
|
|
74
|
+
description: `Example: '1.0'.`,
|
|
75
|
+
type: 'string'
|
|
76
|
+
},
|
|
77
|
+
longVersion: {
|
|
78
|
+
label: 'Long Version',
|
|
79
|
+
description: `Example: '1.0 long'.`,
|
|
80
|
+
type: 'string'
|
|
81
|
+
},
|
|
82
|
+
osVersion: {
|
|
83
|
+
label: '*Required for app events* OS Version',
|
|
84
|
+
description: `Example: '13.4.1'.`,
|
|
85
|
+
type: 'string'
|
|
86
|
+
},
|
|
87
|
+
deviceName: {
|
|
88
|
+
label: 'Device Model Name',
|
|
89
|
+
description: `Example: 'iPhone5,1'.`,
|
|
90
|
+
type: 'string'
|
|
91
|
+
},
|
|
92
|
+
locale: {
|
|
93
|
+
label: 'Locale',
|
|
94
|
+
description: `Example: 'En_US'.`,
|
|
95
|
+
type: 'string'
|
|
96
|
+
},
|
|
97
|
+
timezone: {
|
|
98
|
+
label: 'Timezone Abbreviation',
|
|
99
|
+
description: `Example: 'PST'.`,
|
|
100
|
+
type: 'string'
|
|
101
|
+
},
|
|
102
|
+
carrier: {
|
|
103
|
+
label: 'Carrier Name',
|
|
104
|
+
description: `Example: 'AT&T'.`,
|
|
105
|
+
type: 'string'
|
|
106
|
+
},
|
|
107
|
+
width: {
|
|
108
|
+
label: 'Screen Width',
|
|
109
|
+
description: `Example: '1080'.`,
|
|
110
|
+
type: 'string'
|
|
111
|
+
},
|
|
112
|
+
height: {
|
|
113
|
+
label: 'Screen Height',
|
|
114
|
+
description: `Example: '1920'.`,
|
|
115
|
+
type: 'string'
|
|
116
|
+
},
|
|
117
|
+
density: {
|
|
118
|
+
label: 'Screen Density',
|
|
119
|
+
description: `Example: '2.0'.`,
|
|
120
|
+
type: 'string'
|
|
121
|
+
},
|
|
122
|
+
cpuCores: {
|
|
123
|
+
label: 'CPU Cores',
|
|
124
|
+
description: `Example: '8'.`,
|
|
125
|
+
type: 'string'
|
|
126
|
+
},
|
|
127
|
+
storageSize: {
|
|
128
|
+
label: 'Storage Size in GBs',
|
|
129
|
+
description: `Example: '64'.`,
|
|
130
|
+
type: 'string'
|
|
131
|
+
},
|
|
132
|
+
freeStorage: {
|
|
133
|
+
label: 'Free Storage in GBs',
|
|
134
|
+
description: `Example: '32'.`,
|
|
135
|
+
type: 'string'
|
|
136
|
+
},
|
|
137
|
+
deviceTimezone: {
|
|
138
|
+
label: 'Device Timezone',
|
|
139
|
+
description: `Example: 'USA/New York'.`,
|
|
140
|
+
type: 'string'
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
default: {
|
|
144
|
+
application_tracking_enabled: {
|
|
145
|
+
'@path': '$.context.device.adTrackingEnabled'
|
|
146
|
+
},
|
|
147
|
+
packageName: {
|
|
148
|
+
'@path': '$.context.app.namespace'
|
|
149
|
+
},
|
|
150
|
+
longVersion: {
|
|
151
|
+
'@path': '$.context.app.version'
|
|
152
|
+
},
|
|
153
|
+
osVersion: {
|
|
154
|
+
'@path': '$.context.os.version'
|
|
155
|
+
},
|
|
156
|
+
deviceName: {
|
|
157
|
+
'@path': '$.context.device.model'
|
|
158
|
+
},
|
|
159
|
+
locale: {
|
|
160
|
+
'@path': '$.context.locale'
|
|
161
|
+
},
|
|
162
|
+
carrier: {
|
|
163
|
+
'@path': '$.context.network.carrier'
|
|
164
|
+
},
|
|
165
|
+
width: {
|
|
166
|
+
'@path': '$.context.screen.width'
|
|
167
|
+
},
|
|
168
|
+
height: {
|
|
169
|
+
'@path': '$.context.screen.height'
|
|
170
|
+
},
|
|
171
|
+
density: {
|
|
172
|
+
'@path': '$.context.screen.density'
|
|
173
|
+
},
|
|
174
|
+
deviceTimezone: {
|
|
175
|
+
'@path': '$.context.timezone'
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
//# sourceMappingURL=fb-capi-app-data.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fb-capi-app-data.js","sourceRoot":"","sources":["../../../src/destinations/facebook-conversions-api/fb-capi-app-data.ts"],"names":[],"mappings":";;;AAWO,MAAM,iBAAiB,GAAG,CAAC,QAAiB,EAAgC,EAAE;IACnF,IAAI,CAAC,QAAQ,IAAI,CAAC,QAAQ,CAAC,YAAY,EAAE;QACvC,OAAO,SAAS,CAAA;KACjB;IAED,OAAO;QACL,2BAA2B,EAAE,QAAQ,EAAE,2BAA2B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC1E,4BAA4B,EAAE,QAAQ,EAAE,4BAA4B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC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Q;SACf;QACD,QAAQ,EAAE;YACR,KAAK,EAAE,WAAW;YAClB,WAAW,EAAE,eAAe;YAC5B,IAAI,EAAE,QAAQ;SACf;QACD,WAAW,EAAE;YACX,KAAK,EAAE,qBAAqB;YAC5B,WAAW,EAAE,gBAAgB;YAC7B,IAAI,EAAE,QAAQ;SACf;QACD,WAAW,EAAE;YACX,KAAK,EAAE,qBAAqB;YAC5B,WAAW,EAAE,gBAAgB;YAC7B,IAAI,EAAE,QAAQ;SACf;QACD,cAAc,EAAE;YACd,KAAK,EAAE,iBAAiB;YACxB,WAAW,EAAE,0BAA0B;YACvC,IAAI,EAAE,QAAQ;SACf;KACF;IACD,OAAO,EAAE;QACP,4BAA4B,EAAE;YAC5B,OAAO,EAAE,oCAAoC;SAC9C;QACD,WAAW,EAAE;YACX,OAAO,EAAE,yBAAyB;SACnC;QACD,WAAW,EAAE;YACX,OAAO,EAAE,uBAAuB;SACjC;QACD,SAAS,EAAE;YACT,OAAO,EAAE,sBAAsB;SAChC;QACD,UAAU,EAAE;YACV,OAAO,EAAE,wBAAwB;SAClC;QACD,MAAM,EAAE;YACN,OAAO,EAAE,kBAAkB;SAC5B;QACD,OAAO,EAAE;YACP,OAAO,EAAE,2BAA2B;SACrC;QACD,KAAK,EAAE;YACL,OAAO,EAAE,wBAAwB;SAClC;QACD,MAAM,EAAE;YACN,OAAO,EAAE,yBAAyB;SACnC;QACD,OAAO,EAAE;YACP,OAAO,EAAE,0BAA0B;SACpC;QACD,cAAc,EAAE;YACd,OAAO,EAAE,oBAAoB;SAC9B;KACF;CACF,CAAA"}
|
|
@@ -19,7 +19,7 @@ const destination = {
|
|
|
19
19
|
fields: {
|
|
20
20
|
pixelId: {
|
|
21
21
|
label: 'Pixel ID',
|
|
22
|
-
description: 'Your Facebook Pixel ID',
|
|
22
|
+
description: 'Your Facebook Pixel ID. Note: You may also use a dataset ID here if you have configured a dataset in your Facebook Events Manager.',
|
|
23
23
|
type: 'string',
|
|
24
24
|
required: true
|
|
25
25
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/facebook-conversions-api/index.ts"],"names":[],"mappings":";;;;;AAEA,0DAAiC;AACjC,0EAAiD;AACjD,4DAAmC;AACnC,gEAAuC;AACvC,sDAA6B;AAC7B,0DAAiC;AACjC,sDAA6B;AAE7B,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,oCAAoC;IAC1C,IAAI,EAAE,kCAAkC;IACxC,IAAI,EAAE,OAAO;IAEb,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,OAAO,EAAE;gBACP,KAAK,EAAE,UAAU;gBACjB,WAAW,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/facebook-conversions-api/index.ts"],"names":[],"mappings":";;;;;AAEA,0DAAiC;AACjC,0EAAiD;AACjD,4DAAmC;AACnC,gEAAuC;AACvC,sDAA6B;AAC7B,0DAAiC;AACjC,sDAA6B;AAE7B,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,oCAAoC;IAC1C,IAAI,EAAE,kCAAkC;IACxC,IAAI,EAAE,OAAO;IAEb,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,OAAO,EAAE;gBACP,KAAK,EAAE,UAAU;gBACjB,WAAW,EACT,oIAAoI;gBACtI,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;YACD,aAAa,EAAE;gBACb,KAAK,EAAE,iBAAiB;gBACxB,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,wRAAwR;gBAC1R,QAAQ,EAAE,KAAK;aAChB;SACF;KACF;IACD,aAAa,EAAE,GAAG,EAAE;QAClB,OAAO;YACL,OAAO,EAAE,EAAE,aAAa,EAAE,UAAU,OAAO,CAAC,GAAG,CAAC,iCAAiC,EAAE,EAAE;SACtF,CAAA;IACH,CAAC;IACD,OAAO,EAAE;QACP,QAAQ,EAAR,kBAAQ;QACR,gBAAgB,EAAhB,0BAAgB;QAChB,SAAS,EAAT,mBAAS;QACT,WAAW,EAAX,qBAAW;QACX,MAAM,EAAN,gBAAM;QACN,QAAQ,EAAR,kBAAQ;QACR,MAAM,EAAN,gBAAM;KACP;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
|
|
@@ -23,6 +23,27 @@ export interface Payload {
|
|
|
23
23
|
partner_id?: string;
|
|
24
24
|
partner_name?: string;
|
|
25
25
|
};
|
|
26
|
+
app_data_field?: {
|
|
27
|
+
use_app_data?: boolean;
|
|
28
|
+
advertiser_tracking_enabled?: boolean;
|
|
29
|
+
application_tracking_enabled?: boolean;
|
|
30
|
+
version?: string;
|
|
31
|
+
packageName?: string;
|
|
32
|
+
shortVersion?: string;
|
|
33
|
+
longVersion?: string;
|
|
34
|
+
osVersion?: string;
|
|
35
|
+
deviceName?: string;
|
|
36
|
+
locale?: string;
|
|
37
|
+
timezone?: string;
|
|
38
|
+
carrier?: string;
|
|
39
|
+
width?: string;
|
|
40
|
+
height?: string;
|
|
41
|
+
density?: string;
|
|
42
|
+
cpuCores?: string;
|
|
43
|
+
storageSize?: string;
|
|
44
|
+
freeStorage?: string;
|
|
45
|
+
deviceTimezone?: string;
|
|
46
|
+
};
|
|
26
47
|
content_category?: string;
|
|
27
48
|
content_ids?: string[];
|
|
28
49
|
contents?: {
|
|
@@ -5,6 +5,7 @@ const constants_1 = require("../constants");
|
|
|
5
5
|
const fb_capi_properties_1 = require("../fb-capi-properties");
|
|
6
6
|
const fb_capi_user_data_1 = require("../fb-capi-user-data");
|
|
7
7
|
const utils_1 = require("../utils");
|
|
8
|
+
const fb_capi_app_data_1 = require("../fb-capi-app-data");
|
|
8
9
|
const action = {
|
|
9
10
|
title: 'Initiate Checkout',
|
|
10
11
|
description: 'Send event when a user enters the checkout flow',
|
|
@@ -13,6 +14,7 @@ const action = {
|
|
|
13
14
|
action_source: { ...fb_capi_properties_1.action_source, required: true },
|
|
14
15
|
event_time: { ...fb_capi_properties_1.event_time, required: true },
|
|
15
16
|
user_data: fb_capi_user_data_1.user_data_field,
|
|
17
|
+
app_data_field: fb_capi_app_data_1.app_data_field,
|
|
16
18
|
content_category: fb_capi_properties_1.content_category,
|
|
17
19
|
content_ids: fb_capi_properties_1.content_ids,
|
|
18
20
|
contents: {
|
|
@@ -83,6 +85,7 @@ const action = {
|
|
|
83
85
|
num_items: payload.num_items,
|
|
84
86
|
content_category: payload.content_category
|
|
85
87
|
},
|
|
88
|
+
app_data: fb_capi_app_data_1.generate_app_data(payload.app_data_field),
|
|
86
89
|
data_processing_options: data_options,
|
|
87
90
|
data_processing_options_country: country_code,
|
|
88
91
|
data_processing_options_state: state_code
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/facebook-conversions-api/initiateCheckout/index.ts"],"names":[],"mappings":";;AAAA,wDAA0E;AAG1E,4CAAiD;AACjD,8DAiB8B;AAC9B,4DAAsE;AACtE,oCAA0C;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/facebook-conversions-api/initiateCheckout/index.ts"],"names":[],"mappings":";;AAAA,wDAA0E;AAG1E,4CAAiD;AACjD,8DAiB8B;AAC9B,4DAAsE;AACtE,oCAA0C;AAC1C,0DAAuE;AAEvE,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,mBAAmB;IAC1B,WAAW,EAAE,iDAAiD;IAC9D,mBAAmB,EAAE,+CAA+C;IACpE,MAAM,EAAE;QACN,aAAa,EAAE,EAAE,GAAG,kCAAa,EAAE,QAAQ,EAAE,IAAI,EAAE;QACnD,UAAU,EAAE,EAAE,GAAG,+BAAU,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC7C,SAAS,EAAE,mCAAe;QAC1B,cAAc,EAAE,iCAAc;QAC9B,gBAAgB,EAAE,qCAAgB;QAClC,WAAW,EAAE,gCAAW;QACxB,QAAQ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,EAAE,QAAQ,CAAC,aAAa,EAAE,CAAC;aAC3E;SACF,CACF,CAAA;IACH,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -23,6 +23,27 @@ export interface Payload {
|
|
|
23
23
|
partner_id?: string;
|
|
24
24
|
partner_name?: string;
|
|
25
25
|
};
|
|
26
|
+
app_data_field?: {
|
|
27
|
+
use_app_data?: boolean;
|
|
28
|
+
advertiser_tracking_enabled?: boolean;
|
|
29
|
+
application_tracking_enabled?: boolean;
|
|
30
|
+
version?: string;
|
|
31
|
+
packageName?: string;
|
|
32
|
+
shortVersion?: string;
|
|
33
|
+
longVersion?: string;
|
|
34
|
+
osVersion?: string;
|
|
35
|
+
deviceName?: string;
|
|
36
|
+
locale?: string;
|
|
37
|
+
timezone?: string;
|
|
38
|
+
carrier?: string;
|
|
39
|
+
width?: string;
|
|
40
|
+
height?: string;
|
|
41
|
+
density?: string;
|
|
42
|
+
cpuCores?: string;
|
|
43
|
+
storageSize?: string;
|
|
44
|
+
freeStorage?: string;
|
|
45
|
+
deviceTimezone?: string;
|
|
46
|
+
};
|
|
26
47
|
event_id?: string;
|
|
27
48
|
event_source_url?: string;
|
|
28
49
|
custom_data?: {
|
|
@@ -4,6 +4,7 @@ const actions_core_1 = require("@segment/actions-core");
|
|
|
4
4
|
const fb_capi_properties_1 = require("../fb-capi-properties");
|
|
5
5
|
const fb_capi_user_data_1 = require("../fb-capi-user-data");
|
|
6
6
|
const utils_1 = require("../utils");
|
|
7
|
+
const fb_capi_app_data_1 = require("../fb-capi-app-data");
|
|
7
8
|
const action = {
|
|
8
9
|
title: 'Page View',
|
|
9
10
|
description: 'Send a page view event when a user lands on a page',
|
|
@@ -12,6 +13,7 @@ const action = {
|
|
|
12
13
|
action_source: { ...fb_capi_properties_1.action_source, required: true },
|
|
13
14
|
event_time: { ...fb_capi_properties_1.event_time, required: true },
|
|
14
15
|
user_data: fb_capi_user_data_1.user_data_field,
|
|
16
|
+
app_data_field: fb_capi_app_data_1.app_data_field,
|
|
15
17
|
event_id: fb_capi_properties_1.event_id,
|
|
16
18
|
event_source_url: fb_capi_properties_1.event_source_url,
|
|
17
19
|
custom_data: fb_capi_properties_1.custom_data,
|
|
@@ -38,6 +40,7 @@ const action = {
|
|
|
38
40
|
event_source_url: payload.event_source_url,
|
|
39
41
|
event_id: payload.event_id,
|
|
40
42
|
user_data: fb_capi_user_data_1.hash_user_data({ user_data: payload.user_data }),
|
|
43
|
+
app_data: fb_capi_app_data_1.generate_app_data(payload.app_data_field),
|
|
41
44
|
data_processing_options: data_options,
|
|
42
45
|
data_processing_options_country: country_code,
|
|
43
46
|
data_processing_options_state: state_code
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/facebook-conversions-api/pageView/index.ts"],"names":[],"mappings":";;AAAA,wDAA0E;AAC1E,8DAU8B;AAC9B,4DAAsE;AAGtE,oCAA0C;AAC1C,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,WAAW;IAClB,WAAW,EAAE,oDAAoD;IACjE,mBAAmB,EAAE,eAAe;IACpC,MAAM,EAAE;QACN,aAAa,EAAE,EAAE,GAAG,kCAAa,EAAE,QAAQ,EAAE,IAAI,EAAE;QACnD,UAAU,EAAE,EAAE,GAAG,+BAAU,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC7C,SAAS,EAAE,mCAAe;QAC1B,QAAQ,EAAE,6BAAQ;QAClB,gBAAgB,EAAE,qCAAgB;QAClC,WAAW,EAAE,gCAAW;QACxB,uBAAuB,EAAE,4CAAuB;QAChD,+BAA+B,EAAE,oDAA+B;QAChE,6BAA6B,EAAE,kDAA6B;KAC7D;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,EAAE,EAAE;QAClE,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE;YACtB,MAAM,IAAI,+BAAgB,CAAC,8CAA8C,EAAE,8BAA8B,EAAE,GAAG,CAAC,CAAA;SAChH;QAED,IAAI,OAAO,CAAC,aAAa,KAAK,SAAS,IAAI,OAAO,CAAC,SAAS,CAAC,iBAAiB,KAAK,SAAS,EAAE;YAC5F,MAAM,IAAI,+BAAgB,CACxB,sEAAsE,EACtE,8BAA8B,EAC9B,GAAG,CACJ,CAAA;SACF;QAED,MAAM,CAAC,YAAY,EAAE,YAAY,EAAE,UAAU,CAAC,GAAG,0CAAqB,CACpE,OAAO,CAAC,uBAAuB,EAC/B,OAAO,CAAC,+BAA+B,EACvC,OAAO,CAAC,6BAA6B,CACtC,CAAA;QAED,OAAO,OAAO,CACZ,+BAA+B,uBAAe,CAAC,QAAQ,EAAE,YAAY,CAAC,IAAI,QAAQ,CAAC,OAAO,SAAS,EACnG;YACE,MAAM,EAAE,MAAM;YACd,IAAI,EAAE;gBACJ,IAAI,EAAE;oBACJ;wBACE,UAAU,EAAE,UAAU;wBACtB,UAAU,EAAE,OAAO,CAAC,UAAU;wBAC9B,aAAa,EAAE,OAAO,CAAC,aAAa;wBACpC,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;wBAC1C,QAAQ,EAAE,OAAO,CAAC,QAAQ;wBAC1B,SAAS,EAAE,kCAAc,CAAC,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,EAAE,CAAC;wBAC3D,uBAAuB,EAAE,YAAY;wBACrC,+BAA+B,EAAE,YAAY;wBAC7C,6BAA6B,EAAE,UAAU;qBAC1C;iBACF;gBACD,GAAG,CAAC,QAAQ,CAAC,aAAa,IAAI,EAAE,eAAe,EAAE,QAAQ,CAAC,aAAa,EAAE,CAAC;aAC3E;SACF,CACF,CAAA;IACH,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/facebook-conversions-api/pageView/index.ts"],"names":[],"mappings":";;AAAA,wDAA0E;AAC1E,8DAU8B;AAC9B,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YACd,IAAI,EAAE;gBACJ,IAAI,EAAE;oBACJ;wBACE,UAAU,EAAE,UAAU;wBACtB,UAAU,EAAE,OAAO,CAAC,UAAU;wBAC9B,aAAa,EAAE,OAAO,CAAC,aAAa;wBACpC,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;wBAC1C,QAAQ,EAAE,OAAO,CAAC,QAAQ;wBAC1B,SAAS,EAAE,kCAAc,CAAC,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,EAAE,CAAC;wBAC3D,QAAQ,EAAE,oCAAiB,CAAC,OAAO,CAAC,cAAc,CAAC;wBACnD,uBAAuB,EAAE,YAAY;wBACrC,+BAA+B,EAAE,YAAY;wBAC7C,6BAA6B,EAAE,UAAU;qBAC1C;iBACF;gBACD,GAAG,CAAC,QAAQ,CAAC,aAAa,IAAI,EAAE,eAAe,EAAE,QAAQ,CAAC,aAAa,EAAE,CAAC;aAC3E;SACF,CACF,CAAA;IACH,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -24,6 +24,27 @@ export interface Payload {
|
|
|
24
24
|
partner_id?: string;
|
|
25
25
|
partner_name?: string;
|
|
26
26
|
};
|
|
27
|
+
app_data_field?: {
|
|
28
|
+
use_app_data?: boolean;
|
|
29
|
+
advertiser_tracking_enabled?: boolean;
|
|
30
|
+
application_tracking_enabled?: boolean;
|
|
31
|
+
version?: string;
|
|
32
|
+
packageName?: string;
|
|
33
|
+
shortVersion?: string;
|
|
34
|
+
longVersion?: string;
|
|
35
|
+
osVersion?: string;
|
|
36
|
+
deviceName?: string;
|
|
37
|
+
locale?: string;
|
|
38
|
+
timezone?: string;
|
|
39
|
+
carrier?: string;
|
|
40
|
+
width?: string;
|
|
41
|
+
height?: string;
|
|
42
|
+
density?: string;
|
|
43
|
+
cpuCores?: string;
|
|
44
|
+
storageSize?: string;
|
|
45
|
+
freeStorage?: string;
|
|
46
|
+
deviceTimezone?: string;
|
|
47
|
+
};
|
|
27
48
|
value: number;
|
|
28
49
|
content_ids?: string[];
|
|
29
50
|
content_name?: string;
|
|
@@ -5,6 +5,7 @@ const constants_1 = require("../constants");
|
|
|
5
5
|
const utils_1 = require("../utils");
|
|
6
6
|
const fb_capi_properties_1 = require("../fb-capi-properties");
|
|
7
7
|
const fb_capi_user_data_1 = require("../fb-capi-user-data");
|
|
8
|
+
const fb_capi_app_data_1 = require("../fb-capi-app-data");
|
|
8
9
|
const action = {
|
|
9
10
|
title: 'Purchase',
|
|
10
11
|
description: 'Send event when a user completes a purchase',
|
|
@@ -14,6 +15,7 @@ const action = {
|
|
|
14
15
|
currency: { ...fb_capi_properties_1.currency, required: true },
|
|
15
16
|
event_time: { ...fb_capi_properties_1.event_time, required: true },
|
|
16
17
|
user_data: fb_capi_user_data_1.user_data_field,
|
|
18
|
+
app_data_field: fb_capi_app_data_1.app_data_field,
|
|
17
19
|
value: {
|
|
18
20
|
...fb_capi_properties_1.value,
|
|
19
21
|
required: true,
|
|
@@ -86,6 +88,7 @@ const action = {
|
|
|
86
88
|
contents: payload.contents,
|
|
87
89
|
num_items: payload.num_items
|
|
88
90
|
},
|
|
91
|
+
app_data: fb_capi_app_data_1.generate_app_data(payload.app_data_field),
|
|
89
92
|
data_processing_options: data_options,
|
|
90
93
|
data_processing_options_country: country_code,
|
|
91
94
|
data_processing_options_state: state_code
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/facebook-conversions-api/purchase/index.ts"],"names":[],"mappings":";;AAAA,wDAA8G;AAG9G,4CAAiD;AACjD,oCAA0C;AAC1C,8DAkB8B;AAC9B,4DAAsE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/facebook-conversions-api/purchase/index.ts"],"names":[],"mappings":";;AAAA,wDAA8G;AAG9G,4CAAiD;AACjD,oCAA0C;AAC1C,8DAkB8B;AAC9B,4DAAsE;AACtE,0DAAuE;AAEvE,MAAM,MAAM,GAAwC;IACl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pB,WAAW,EAAE,OAAO,CAAC,WAAW;4BAChC,YAAY,EAAE,OAAO,CAAC,YAAY;4BAClC,YAAY,EAAE,OAAO,CAAC,YAAY;4BAClC,QAAQ,EAAE,OAAO,CAAC,QAAQ;4BAC1B,SAAS,EAAE,OAAO,CAAC,SAAS;yBAC7B;wBACD,QAAQ,EAAE,oCAAiB,CAAC,OAAO,CAAC,cAAc,CAAC;wBACnD,uBAAuB,EAAE,YAAY;wBACrC,+BAA+B,EAAE,YAAY;wBAC7C,6BAA6B,EAAE,UAAU;qBAC1C;iBACF;gBACD,GAAG,CAAC,QAAQ,CAAC,aAAa,IAAI,EAAE,eAAe,EAAE,QAAQ,CAAC,aAAa,EAAE,CAAC;aAC3E;SACF,CACF,CAAA;IACH,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -23,6 +23,27 @@ export interface Payload {
|
|
|
23
23
|
partner_id?: string;
|
|
24
24
|
partner_name?: string;
|
|
25
25
|
};
|
|
26
|
+
app_data_field?: {
|
|
27
|
+
use_app_data?: boolean;
|
|
28
|
+
advertiser_tracking_enabled?: boolean;
|
|
29
|
+
application_tracking_enabled?: boolean;
|
|
30
|
+
version?: string;
|
|
31
|
+
packageName?: string;
|
|
32
|
+
shortVersion?: string;
|
|
33
|
+
longVersion?: string;
|
|
34
|
+
osVersion?: string;
|
|
35
|
+
deviceName?: string;
|
|
36
|
+
locale?: string;
|
|
37
|
+
timezone?: string;
|
|
38
|
+
carrier?: string;
|
|
39
|
+
width?: string;
|
|
40
|
+
height?: string;
|
|
41
|
+
density?: string;
|
|
42
|
+
cpuCores?: string;
|
|
43
|
+
storageSize?: string;
|
|
44
|
+
freeStorage?: string;
|
|
45
|
+
deviceTimezone?: string;
|
|
46
|
+
};
|
|
26
47
|
content_category?: string;
|
|
27
48
|
content_ids?: string[];
|
|
28
49
|
contents?: {
|
|
@@ -5,6 +5,7 @@ const constants_1 = require("../constants");
|
|
|
5
5
|
const utils_1 = require("../utils");
|
|
6
6
|
const fb_capi_properties_1 = require("../fb-capi-properties");
|
|
7
7
|
const fb_capi_user_data_1 = require("../fb-capi-user-data");
|
|
8
|
+
const fb_capi_app_data_1 = require("../fb-capi-app-data");
|
|
8
9
|
const action = {
|
|
9
10
|
title: 'Search',
|
|
10
11
|
description: 'Send event when a user searches content or products',
|
|
@@ -13,6 +14,7 @@ const action = {
|
|
|
13
14
|
action_source: { ...fb_capi_properties_1.action_source, required: true },
|
|
14
15
|
event_time: { ...fb_capi_properties_1.event_time, required: true },
|
|
15
16
|
user_data: fb_capi_user_data_1.user_data_field,
|
|
17
|
+
app_data_field: fb_capi_app_data_1.app_data_field,
|
|
16
18
|
content_category: fb_capi_properties_1.content_category,
|
|
17
19
|
content_ids: fb_capi_properties_1.content_ids,
|
|
18
20
|
contents: {
|
|
@@ -87,6 +89,7 @@ const action = {
|
|
|
87
89
|
value: payload.value,
|
|
88
90
|
search_string: payload.search_string
|
|
89
91
|
},
|
|
92
|
+
app_data: fb_capi_app_data_1.generate_app_data(payload.app_data_field),
|
|
90
93
|
data_processing_options: data_options,
|
|
91
94
|
data_processing_options_country: country_code,
|
|
92
95
|
data_processing_options_state: state_code
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/facebook-conversions-api/search/index.ts"],"names":[],"mappings":";;AAAA,wDAA0E;AAG1E,4CAAiD;AACjD,oCAA0C;AAC1C,8DAgB8B;AAC9B,4DAAsE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/facebook-conversions-api/search/index.ts"],"names":[],"mappings":";;AAAA,wDAA0E;AAG1E,4CAAiD;AACjD,oCAA0C;AAC1C,8DAgB8B;AAC9B,4DAAsE;AACtE,0DAAuE;AAEvE,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,QAAQ;IACf,WAAW,EAAE,qDAAqD;IAClE,mBAAmB,EAAE,gDAAgD;IACrE,MAAM,EAAE;Q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C,gBAAgB;4BAC1C,KAAK,EAAE,OAAO,CAAC,KAAK;4BACpB,aAAa,EAAE,OAAO,CAAC,aAAa;yBACrC;wBACD,QAAQ,EAAE,oCAAiB,CAAC,OAAO,CAAC,cAAc,CAAC;wBACnD,uBAAuB,EAAE,YAAY;wBACrC,+BAA+B,EAAE,YAAY;wBAC7C,6BAA6B,EAAE,UAAU;qBAC1C;iBACF;gBACD,GAAG,CAAC,QAAQ,CAAC,aAAa,IAAI,EAAE,eAAe,EAAE,QAAQ,CAAC,aAAa,EAAE,CAAC;aAC3E;SACF,CACF,CAAA;IACH,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -23,6 +23,27 @@ export interface Payload {
|
|
|
23
23
|
partner_id?: string;
|
|
24
24
|
partner_name?: string;
|
|
25
25
|
};
|
|
26
|
+
app_data_field?: {
|
|
27
|
+
use_app_data?: boolean;
|
|
28
|
+
advertiser_tracking_enabled?: boolean;
|
|
29
|
+
application_tracking_enabled?: boolean;
|
|
30
|
+
version?: string;
|
|
31
|
+
packageName?: string;
|
|
32
|
+
shortVersion?: string;
|
|
33
|
+
longVersion?: string;
|
|
34
|
+
osVersion?: string;
|
|
35
|
+
deviceName?: string;
|
|
36
|
+
locale?: string;
|
|
37
|
+
timezone?: string;
|
|
38
|
+
carrier?: string;
|
|
39
|
+
width?: string;
|
|
40
|
+
height?: string;
|
|
41
|
+
density?: string;
|
|
42
|
+
cpuCores?: string;
|
|
43
|
+
storageSize?: string;
|
|
44
|
+
freeStorage?: string;
|
|
45
|
+
deviceTimezone?: string;
|
|
46
|
+
};
|
|
26
47
|
content_category?: string;
|
|
27
48
|
content_ids?: string[];
|
|
28
49
|
content_name?: string;
|
|
@@ -5,6 +5,7 @@ const fb_capi_properties_1 = require("../fb-capi-properties");
|
|
|
5
5
|
const fb_capi_user_data_1 = require("../fb-capi-user-data");
|
|
6
6
|
const constants_1 = require("../constants");
|
|
7
7
|
const utils_1 = require("../utils");
|
|
8
|
+
const fb_capi_app_data_1 = require("../fb-capi-app-data");
|
|
8
9
|
const action = {
|
|
9
10
|
title: 'View Content',
|
|
10
11
|
description: 'Send event when a user views content or a product',
|
|
@@ -13,6 +14,7 @@ const action = {
|
|
|
13
14
|
action_source: { ...fb_capi_properties_1.action_source, required: true },
|
|
14
15
|
event_time: { ...fb_capi_properties_1.event_time, required: true },
|
|
15
16
|
user_data: fb_capi_user_data_1.user_data_field,
|
|
17
|
+
app_data_field: fb_capi_app_data_1.app_data_field,
|
|
16
18
|
content_category: fb_capi_properties_1.content_category,
|
|
17
19
|
content_ids: { ...fb_capi_properties_1.content_ids, default: { '@path': '$.properties.product_id' } },
|
|
18
20
|
content_name: fb_capi_properties_1.content_name,
|
|
@@ -82,6 +84,7 @@ const action = {
|
|
|
82
84
|
contents: payload.contents,
|
|
83
85
|
content_category: payload.content_category
|
|
84
86
|
},
|
|
87
|
+
app_data: fb_capi_app_data_1.generate_app_data(payload.app_data_field),
|
|
85
88
|
data_processing_options: data_options,
|
|
86
89
|
data_processing_options_country: country_code,
|
|
87
90
|
data_processing_options_state: state_code
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/facebook-conversions-api/viewContent/index.ts"],"names":[],"mappings":";;AAAA,wDAA0E;AAC1E,8DAkB8B;AAC9B,4DAAsE;AAGtE,4CAAiD;AACjD,oCAA0C;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/facebook-conversions-api/viewContent/index.ts"],"names":[],"mappings":";;AAAA,wDAA0E;AAC1E,8DAkB8B;AAC9B,4DAAsE;AAGtE,4CAAiD;AACjD,oCAA0C;AAC1C,0DAAuE;AAEvE,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,cAAc;IACrB,WAAW,EAAE,mDAAmD;IAChE,mBAAmB,EAAE,6CAA6C;IAClE,MAAM,EAAE;QACN,aAAa,EAAE,EAAE,GAAG,kCAAa,EAAE,Q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AY;4BAClC,YAAY,EAAE,OAAO,CAAC,YAAY;4BAClC,QAAQ,EAAE,OAAO,CAAC,QAAQ;4BAC1B,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;yBAC3C;wBACD,QAAQ,EAAE,oCAAiB,CAAC,OAAO,CAAC,cAAc,CAAC;wBACnD,uBAAuB,EAAE,YAAY;wBACrC,+BAA+B,EAAE,YAAY;wBAC7C,6BAA6B,EAAE,UAAU;qBAC1C;iBACF;gBACD,GAAG,CAAC,QAAQ,CAAC,aAAa,IAAI,EAAE,eAAe,EAAE,QAAQ,CAAC,aAAa,EAAE,CAAC;aAC3E;SACF,CACF,CAAA;IACH,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -42,7 +42,7 @@ const destination = {
|
|
|
42
42
|
},
|
|
43
43
|
onDelete: async (request, { settings, payload }) => {
|
|
44
44
|
if (!payload.userId) {
|
|
45
|
-
throw new actions_core_1.
|
|
45
|
+
throw new actions_core_1.PayloadValidationError('User Id is required for user deletion.');
|
|
46
46
|
}
|
|
47
47
|
const { url, options } = request_params_1.deleteUserRequestParams(settings, payload.userId);
|
|
48
48
|
return request(url, options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/fullstory/index.ts"],"names":[],"mappings":";;;;;AACA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/fullstory/index.ts"],"names":[],"mappings":";;;;;AACA,wDAA6E;AAE7E,kEAAyC;AACzC,8DAAqC;AACrC,qDAAuF;AAEvF,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,gCAAgC;IACtC,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE,OAAO;IACb,OAAO,EAAE;QACP;YACE,IAAI,EAAE,aAAa;YACnB,SAAS,EAAE,gBAAgB;YAC3B,aAAa,EAAE,YAAY;YAC3B,OAAO,EAAE,4BAAa,CAAC,oBAAU,CAAC,MAAM,CAAC;SAC1C;QACD;YACE,IAAI,EAAE,eAAe;YACrB,SAAS,EAAE,mBAAmB;YAC9B,aAAa,EAAE,cAAc;YAC7B,OAAO,EAAE,4BAAa,CAAC,sBAAY,CAAC,MAAM,CAAC;SAC5C;KACF;IACD,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,MAAM,EAAE;gBACN,KAAK,EAAE,SAAS;gBAChB,WAAW,EAAE,kGAAkG;gBAC/G,IAAI,EAAE,UAAU;gBAChB,QAAQ,EAAE,IAAI;aACf;SACF;QAED,kBAAkB,EAAE,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;YAC5C,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,4CAA2B,CAAC,QAAQ,CAAC,CAAA;YAC9D,OAAO,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,CAAA;QAC9B,CAAC;KACF;IAED,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;QACjD,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE;YACnB,MAAM,IAAI,qCAAsB,CAAC,wCAAwC,CAAC,CAAA;SAC3E;QACD,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,wCAAuB,CAAC,QAAQ,EAAE,OAAO,CAAC,MAAM,CAAC,CAAA;QAC1E,OAAO,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,CAAA;IAC9B,CAAC;IAED,OAAO,EAAE;QACP,UAAU,EAAV,oBAAU;QACV,YAAY,EAAZ,sBAAY;KACb;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
|
|
@@ -11,3 +11,4 @@ export declare function getCustomVariables(customerId: string, auth: any, reques
|
|
|
11
11
|
export declare function handleGoogleErrors(response: ModifiedResponse<PartialErrorResponse>): void;
|
|
12
12
|
export declare function convertTimestamp(timestamp: string | undefined): string | undefined;
|
|
13
13
|
export declare function getApiVersion(features?: Features, statsContext?: StatsContext): string;
|
|
14
|
+
export declare const isHashedEmail: (email: string) => boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getApiVersion = exports.convertTimestamp = exports.handleGoogleErrors = exports.getCustomVariables = exports.hash = exports.formatCustomVariables = exports.FLAGON_NAME = exports.CANARY_API_VERSION = exports.API_VERSION = void 0;
|
|
3
|
+
exports.isHashedEmail = exports.getApiVersion = exports.convertTimestamp = exports.handleGoogleErrors = exports.getCustomVariables = exports.hash = exports.formatCustomVariables = exports.FLAGON_NAME = exports.CANARY_API_VERSION = exports.API_VERSION = void 0;
|
|
4
4
|
const crypto_1 = require("crypto");
|
|
5
5
|
const actions_core_1 = require("@segment/actions-core");
|
|
6
6
|
exports.API_VERSION = 'v12';
|
|
@@ -69,4 +69,6 @@ function getApiVersion(features, statsContext) {
|
|
|
69
69
|
return version;
|
|
70
70
|
}
|
|
71
71
|
exports.getApiVersion = getApiVersion;
|
|
72
|
+
const isHashedEmail = (email) => new RegExp(/[0-9abcdef]{64}/gi).test(email);
|
|
73
|
+
exports.isHashedEmail = isHashedEmail;
|
|
72
74
|
//# sourceMappingURL=functions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functions.js","sourceRoot":"","sources":["../../../src/destinations/google-enhanced-conversions/functions.ts"],"names":[],"mappings":";;;AAAA,mCAAmC;AAEnC,wDAAyF;AAI5E,QAAA,WAAW,GAAG,KAAK,CAAA;AACnB,QAAA,kBAAkB,GAAG,KAAK,CAAA;AAC1B,QAAA,WAAW,GAAG,gCAAgC,CAAA;AAE3D,SAAgB,qBAAqB,CACnC,eAAuB,EACvB,wBAAyD;IAGzD,MAAM,aAAa,GAA2B,EAAE,CAAA;IAChD,MAAM,CAAC,OAAO,CAAC,wBAAwB,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE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C,uBAAuB,EAAE;SAC5D;QACD,IAAI,EAAE;YACJ,KAAK,EAAE,uGAAuG;SAC/G;KACF,CACF,CAAA;AACH,CAAC;AAvBD,gDAuBC;AAKD,SAAgB,kBAAkB,CAAC,QAAgD;IACjF,IAAI,QAAQ,CAAC,IAAI,CAAC,mBAAmB,EAAE;QACrC,MAAM,IAAI,+BAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC,mBAAmB,CAAC,OAAO,EAAE,kBAAkB,EAAE,GAAG,CAAC,CAAA;KAC/F;AACH,CAAC;AAJD,gDAIC;AAED,SAAgB,gBAAgB,CAAC,SAA6B;IAC5D,IAAI,CAAC,SAAS,EAAE;QACd,OAAO,SAAS,CAAA;KACjB;IACD,OAAO,SAAS,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAA;AAC9D,CAAC;AALD,4CAKC;AAED,SAAgB,aAAa,CAAC,QAAmB,EAAE,YAA2B;IAC5E,MAAM,WAAW,GAAG,YAAY,EAAE,WAAW,CAAA;IAC7C,MAAM,IAAI,GAAG,YAAY,EAAE,IAAI,CAAA;IAE/B,MAAM,OAAO,GAAG,QAAQ,IAAI,QAAQ,CAAC,mBAAW,CAAC,CAAC,CAAC,CAAC,0BAAkB,CAAC,CAAC,CAAC,mBAAW,CAAA;IACpF,IAAI,EAAE,IAAI,CAAC,WAAW,OAAO,EAAE,CAAC,CAAA;IAChC,WAAW,EAAE,IAAI,CAAC,oBAAoB,EAAE,CAAC,EAAE,IAAI,CAAC,CAAA;IAChD,OAAO,OAAO,CAAA;AAChB,CAAC;AARD,sCAQC"}
|
|
1
|
+
{"version":3,"file":"functions.js","sourceRoot":"","sources":["../../../src/destinations/google-enhanced-conversions/functions.ts"],"names":[],"mappings":";;;AAAA,mCAAmC;AAEnC,wDAAyF;AAI5E,QAAA,WAAW,GAAG,KAAK,CAAA;AACnB,QAAA,kBAAkB,GAAG,KAAK,CAAA;AA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sCAQC;AAEM,MAAM,aAAa,GAAG,CAAC,KAAa,EAAW,EAAE,CAAC,IAAI,MAAM,CAAC,mBAAmB,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;AAAvF,QAAA,aAAa,iBAA0E"}
|
|
@@ -207,7 +207,9 @@ const action = {
|
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
209
|
if (payload.email_address) {
|
|
210
|
-
request_object.userIdentifiers.push({
|
|
210
|
+
request_object.userIdentifiers.push({
|
|
211
|
+
hashedEmail: functions_1.isHashedEmail(payload.email_address) ? payload.email_address : functions_1.hash(payload.email_address)
|
|
212
|
+
});
|
|
211
213
|
}
|
|
212
214
|
if (payload.phone_number) {
|
|
213
215
|
request_object.userIdentifiers.push({ hashedPhoneNumber: functions_1.hash(payload.phone_number) });
|