@segment/action-destinations 3.438.0 → 3.439.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/criteo-audiences/addUserToAudience/generated-types.d.ts +1 -0
- package/dist/destinations/criteo-audiences/addUserToAudience/index.js +7 -0
- package/dist/destinations/criteo-audiences/addUserToAudience/index.js.map +1 -1
- package/dist/destinations/criteo-audiences/removeUserFromAudience/generated-types.d.ts +1 -0
- package/dist/destinations/criteo-audiences/removeUserFromAudience/index.js +7 -0
- package/dist/destinations/criteo-audiences/removeUserFromAudience/index.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/functions.d.ts +1 -1
- package/dist/destinations/google-enhanced-conversions/functions.js +1 -1
- package/dist/destinations/google-enhanced-conversions/uploadCallConversion/index.js +2 -2
- package/dist/destinations/google-enhanced-conversions/uploadCallConversion2/index.js +2 -2
- package/dist/destinations/google-enhanced-conversions/uploadClickConversion/index.js +2 -2
- package/dist/destinations/google-enhanced-conversions/uploadClickConversion2/index.js +2 -2
- package/dist/destinations/google-enhanced-conversions/userList/index.js +3 -3
- package/dist/destinations/google-enhanced-conversions/userList/index.js.map +1 -1
- package/dist/destinations/linkedin-audiences/{api/index.d.ts → api.d.ts} +3 -3
- package/dist/destinations/linkedin-audiences/{api/index.js → api.js} +2 -2
- package/dist/destinations/linkedin-audiences/api.js.map +1 -0
- package/dist/destinations/linkedin-audiences/updateAudience/fields.d.ts +2 -0
- package/dist/destinations/linkedin-audiences/updateAudience/fields.js +126 -0
- package/dist/destinations/linkedin-audiences/updateAudience/fields.js.map +1 -0
- package/dist/destinations/linkedin-audiences/updateAudience/functions.d.ts +5 -0
- package/dist/destinations/linkedin-audiences/updateAudience/functions.js +112 -0
- package/dist/destinations/linkedin-audiences/updateAudience/functions.js.map +1 -0
- package/dist/destinations/linkedin-audiences/updateAudience/index.js +5 -232
- package/dist/destinations/linkedin-audiences/updateAudience/index.js.map +1 -1
- package/dist/destinations/ms-bing-ads-audiences/index.js +1 -1
- package/dist/destinations/ms-bing-ads-audiences/index.js.map +1 -1
- package/dist/destinations/ms-bing-ads-audiences/syncAudiences/fields.js +13 -17
- package/dist/destinations/ms-bing-ads-audiences/syncAudiences/fields.js.map +1 -1
- package/dist/destinations/snap-audiences/constants.d.ts +2 -0
- package/dist/destinations/snap-audiences/constants.js +6 -0
- package/dist/destinations/snap-audiences/constants.js.map +1 -0
- package/dist/destinations/snap-audiences/index.js +24 -40
- package/dist/destinations/snap-audiences/index.js.map +1 -1
- package/dist/destinations/snap-audiences/syncAudience/constants.d.ts +5 -0
- package/dist/destinations/snap-audiences/syncAudience/constants.js +9 -0
- package/dist/destinations/snap-audiences/syncAudience/constants.js.map +1 -0
- package/dist/destinations/snap-audiences/syncAudience/fields.d.ts +2 -0
- package/dist/destinations/snap-audiences/syncAudience/fields.js +90 -0
- package/dist/destinations/snap-audiences/syncAudience/fields.js.map +1 -0
- package/dist/destinations/snap-audiences/syncAudience/functions.d.ts +5 -0
- package/dist/destinations/snap-audiences/syncAudience/functions.js +119 -0
- package/dist/destinations/snap-audiences/syncAudience/functions.js.map +1 -0
- package/dist/destinations/snap-audiences/syncAudience/generated-types.d.ts +2 -1
- package/dist/destinations/snap-audiences/syncAudience/index.js +6 -146
- package/dist/destinations/snap-audiences/syncAudience/index.js.map +1 -1
- package/dist/destinations/snap-audiences/syncAudience/types.d.ts +18 -0
- package/dist/destinations/snap-audiences/syncAudience/types.js.map +1 -0
- package/dist/destinations/snap-audiences/types.d.ts +19 -0
- package/dist/destinations/snap-audiences/types.js.map +1 -0
- package/dist/destinations/stackadapt-audiences/common-constants.d.ts +2 -0
- package/dist/destinations/stackadapt-audiences/common-constants.js +6 -0
- package/dist/destinations/stackadapt-audiences/common-constants.js.map +1 -0
- package/dist/destinations/stackadapt-audiences/common-functions.d.ts +0 -7
- package/dist/destinations/stackadapt-audiences/common-functions.js +0 -193
- package/dist/destinations/stackadapt-audiences/common-functions.js.map +1 -1
- package/dist/destinations/stackadapt-audiences/common-types.d.ts +15 -0
- package/dist/destinations/stackadapt-audiences/{forwardProfile/generated-types.js → common-types.js} +1 -1
- package/dist/destinations/stackadapt-audiences/common-types.js.map +1 -0
- package/dist/destinations/stackadapt-audiences/{constants.js → forwardAudienceEvent/constants.js} +1 -22
- package/dist/destinations/stackadapt-audiences/forwardAudienceEvent/constants.js.map +1 -0
- package/dist/destinations/stackadapt-audiences/forwardAudienceEvent/fields.d.ts +1 -0
- package/dist/destinations/stackadapt-audiences/forwardAudienceEvent/fields.js +184 -1
- package/dist/destinations/stackadapt-audiences/forwardAudienceEvent/fields.js.map +1 -1
- package/dist/destinations/stackadapt-audiences/forwardAudienceEvent/functions.d.ts +6 -0
- package/dist/destinations/stackadapt-audiences/forwardAudienceEvent/functions.js +184 -0
- package/dist/destinations/stackadapt-audiences/forwardAudienceEvent/functions.js.map +1 -0
- package/dist/destinations/stackadapt-audiences/forwardAudienceEvent/generated-types.d.ts +0 -3
- package/dist/destinations/stackadapt-audiences/forwardAudienceEvent/index.js +4 -5
- package/dist/destinations/stackadapt-audiences/forwardAudienceEvent/index.js.map +1 -1
- package/dist/destinations/stackadapt-audiences/{types.d.ts → forwardAudienceEvent/types.d.ts} +0 -15
- package/dist/destinations/{yonoma/sendEvent/generated-types.js → stackadapt-audiences/forwardAudienceEvent/types.js} +1 -1
- package/dist/destinations/stackadapt-audiences/forwardAudienceEvent/types.js.map +1 -0
- package/dist/destinations/stackadapt-audiences/index.d.ts +1 -1
- package/dist/destinations/stackadapt-audiences/index.js +5 -7
- package/dist/destinations/stackadapt-audiences/index.js.map +1 -1
- package/dist/destinations/yonoma/index.js +0 -2
- package/dist/destinations/yonoma/index.js.map +1 -1
- package/dist/destinations/yonoma/trackEvent/generated-types.d.ts +24 -3
- package/dist/destinations/yonoma/trackEvent/index.js +140 -16
- package/dist/destinations/yonoma/trackEvent/index.js.map +1 -1
- package/dist/destinations/yonoma/trackEvent/types.d.ts +24 -3
- package/dist/destinations/yonoma/trackPageView/generated-types.d.ts +23 -7
- package/dist/destinations/yonoma/trackPageView/index.js +133 -50
- package/dist/destinations/yonoma/trackPageView/index.js.map +1 -1
- package/dist/destinations/yonoma/trackPageView/types.d.ts +22 -4
- package/dist/destinations/yonoma/upsertContact/generated-types.d.ts +25 -3
- package/dist/destinations/yonoma/upsertContact/index.js +153 -21
- package/dist/destinations/yonoma/upsertContact/index.js.map +1 -1
- package/dist/destinations/yonoma/upsertContact/types.d.ts +26 -4
- package/package.json +2 -2
- package/dist/destinations/linkedin-audiences/api/index.js.map +0 -1
- package/dist/destinations/snap-audiences/syncAudience/utils.d.ts +0 -8
- package/dist/destinations/snap-audiences/syncAudience/utils.js +0 -61
- package/dist/destinations/snap-audiences/syncAudience/utils.js.map +0 -1
- package/dist/destinations/stackadapt-audiences/common-fields.d.ts +0 -2
- package/dist/destinations/stackadapt-audiences/common-fields.js +0 -227
- package/dist/destinations/stackadapt-audiences/common-fields.js.map +0 -1
- package/dist/destinations/stackadapt-audiences/constants.js.map +0 -1
- package/dist/destinations/stackadapt-audiences/forwardProfile/generated-types.d.ts +0 -26
- package/dist/destinations/stackadapt-audiences/forwardProfile/generated-types.js.map +0 -1
- package/dist/destinations/stackadapt-audiences/forwardProfile/index.d.ts +0 -5
- package/dist/destinations/stackadapt-audiences/forwardProfile/index.js +0 -140
- package/dist/destinations/stackadapt-audiences/forwardProfile/index.js.map +0 -1
- package/dist/destinations/stackadapt-audiences/types.js.map +0 -1
- package/dist/destinations/yonoma/sendEvent/constants.d.ts +0 -1
- package/dist/destinations/yonoma/sendEvent/constants.js +0 -5
- package/dist/destinations/yonoma/sendEvent/constants.js.map +0 -1
- package/dist/destinations/yonoma/sendEvent/functions.d.ts +0 -1
- package/dist/destinations/yonoma/sendEvent/functions.js +0 -19
- package/dist/destinations/yonoma/sendEvent/functions.js.map +0 -1
- package/dist/destinations/yonoma/sendEvent/generated-types.d.ts +0 -13
- package/dist/destinations/yonoma/sendEvent/generated-types.js.map +0 -1
- package/dist/destinations/yonoma/sendEvent/index.d.ts +0 -5
- package/dist/destinations/yonoma/sendEvent/index.js +0 -103
- package/dist/destinations/yonoma/sendEvent/index.js.map +0 -1
- package/dist/destinations/yonoma/sendEvent/types.d.ts +0 -10
- package/dist/destinations/yonoma/sendEvent/types.js.map +0 -1
- /package/dist/destinations/{stackadapt-audiences → snap-audiences/syncAudience}/types.js +0 -0
- /package/dist/destinations/{yonoma/sendEvent → snap-audiences}/types.js +0 -0
- /package/dist/destinations/stackadapt-audiences/{constants.d.ts → forwardAudienceEvent/constants.d.ts} +0 -0
|
@@ -11,14 +11,15 @@ const action = {
|
|
|
11
11
|
identifiers: {
|
|
12
12
|
label: 'Identifiers',
|
|
13
13
|
type: 'object',
|
|
14
|
-
description: 'Unique identifiers for the contact.
|
|
14
|
+
description: 'Unique identifiers for the contact. User ID and email are required. Anonymous ID is optional.',
|
|
15
15
|
required: true,
|
|
16
16
|
additionalProperties: false,
|
|
17
17
|
properties: {
|
|
18
18
|
userId: {
|
|
19
19
|
label: 'User ID',
|
|
20
20
|
type: 'string',
|
|
21
|
-
description: 'Unique user identifier from your app.'
|
|
21
|
+
description: 'Unique user identifier from your app.',
|
|
22
|
+
required: true
|
|
22
23
|
},
|
|
23
24
|
anonymousId: {
|
|
24
25
|
label: 'Anonymous ID',
|
|
@@ -28,7 +29,8 @@ const action = {
|
|
|
28
29
|
email: {
|
|
29
30
|
label: 'Email',
|
|
30
31
|
type: 'string',
|
|
31
|
-
description: "Contact's email address.
|
|
32
|
+
description: "Contact's email address.",
|
|
33
|
+
required: true
|
|
32
34
|
}
|
|
33
35
|
},
|
|
34
36
|
default: {
|
|
@@ -44,6 +46,137 @@ const action = {
|
|
|
44
46
|
required: true,
|
|
45
47
|
default: { '@path': '$.traits.list_id' }
|
|
46
48
|
},
|
|
49
|
+
status: {
|
|
50
|
+
label: 'Email subscription status',
|
|
51
|
+
type: 'boolean',
|
|
52
|
+
description: 'Indicates if the Contact is subscribed or unsubscribed from marketing emails. Set to true to subscribe, false to unsubscribe.',
|
|
53
|
+
required: true,
|
|
54
|
+
default: true
|
|
55
|
+
},
|
|
56
|
+
timestamp: {
|
|
57
|
+
label: 'Timestamp',
|
|
58
|
+
type: 'string',
|
|
59
|
+
description: 'The timestamp of the event. Defaults to the current time if not provided.',
|
|
60
|
+
format: 'date-time',
|
|
61
|
+
default: { '@path': '$.timestamp' }
|
|
62
|
+
},
|
|
63
|
+
ip: {
|
|
64
|
+
label: 'IP Address',
|
|
65
|
+
type: 'string',
|
|
66
|
+
description: 'The IP address of the user. Defaults to the current user IP if not provided.',
|
|
67
|
+
default: { '@path': '$.context.ip' }
|
|
68
|
+
},
|
|
69
|
+
userAgent: {
|
|
70
|
+
label: 'User Agent',
|
|
71
|
+
type: 'string',
|
|
72
|
+
description: 'The user agent of the user.',
|
|
73
|
+
default: { '@path': '$.context.userAgent' }
|
|
74
|
+
},
|
|
75
|
+
page: {
|
|
76
|
+
label: 'Page',
|
|
77
|
+
type: 'object',
|
|
78
|
+
description: 'The details of the page being viewed.',
|
|
79
|
+
properties: {
|
|
80
|
+
url: {
|
|
81
|
+
label: 'Page URL',
|
|
82
|
+
type: 'string',
|
|
83
|
+
description: 'Full URL of the page visited.'
|
|
84
|
+
},
|
|
85
|
+
title: {
|
|
86
|
+
label: 'Page Title',
|
|
87
|
+
type: 'string',
|
|
88
|
+
description: 'Title of the page.'
|
|
89
|
+
},
|
|
90
|
+
referrer: {
|
|
91
|
+
label: 'Referrer URL',
|
|
92
|
+
type: 'string',
|
|
93
|
+
description: 'URL of the referring page.'
|
|
94
|
+
},
|
|
95
|
+
path: {
|
|
96
|
+
label: 'Page Path',
|
|
97
|
+
type: 'string',
|
|
98
|
+
description: 'Path of the page being viewed.'
|
|
99
|
+
},
|
|
100
|
+
search: {
|
|
101
|
+
label: 'Search Query',
|
|
102
|
+
type: 'string',
|
|
103
|
+
description: 'Search query used to find the page.'
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
default: {
|
|
107
|
+
title: { '@path': '$.context.page.title' },
|
|
108
|
+
url: { '@path': '$.context.page.url' },
|
|
109
|
+
referrer: { '@path': '$.context.page.referrer' },
|
|
110
|
+
path: { '@path': '$.context.page.path' },
|
|
111
|
+
search: { '@path': '$.context.page.search' }
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
campaign: {
|
|
115
|
+
label: 'Campaign',
|
|
116
|
+
type: 'object',
|
|
117
|
+
description: 'The marketing campaign that referred the user to the site.',
|
|
118
|
+
properties: {
|
|
119
|
+
name: {
|
|
120
|
+
label: 'UTM Campaign Name',
|
|
121
|
+
type: 'string',
|
|
122
|
+
description: 'Name of the campaign.'
|
|
123
|
+
},
|
|
124
|
+
source: {
|
|
125
|
+
label: 'UTM Campaign Source',
|
|
126
|
+
type: 'string',
|
|
127
|
+
description: 'Source of the campaign UTM parameter.'
|
|
128
|
+
},
|
|
129
|
+
medium: {
|
|
130
|
+
label: 'UTM Campaign Medium',
|
|
131
|
+
type: 'string',
|
|
132
|
+
description: 'Medium of the campaign UTM parameter.'
|
|
133
|
+
},
|
|
134
|
+
term: {
|
|
135
|
+
label: 'UTM Campaign Term',
|
|
136
|
+
type: 'string',
|
|
137
|
+
description: 'Term or keyword of the campaign UTM parameter.'
|
|
138
|
+
},
|
|
139
|
+
content: {
|
|
140
|
+
label: 'UTM Campaign Content',
|
|
141
|
+
type: 'string',
|
|
142
|
+
description: 'Content of the campaign UTM parameter.'
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
default: {
|
|
146
|
+
name: { '@path': '$.context.campaign.name' },
|
|
147
|
+
source: { '@path': '$.context.campaign.source' },
|
|
148
|
+
medium: { '@path': '$.context.campaign.medium' },
|
|
149
|
+
term: { '@path': '$.context.campaign.term' },
|
|
150
|
+
content: { '@path': '$.context.campaign.content' }
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
location: {
|
|
154
|
+
label: 'Location',
|
|
155
|
+
type: 'object',
|
|
156
|
+
description: 'The geographic location of the user.',
|
|
157
|
+
properties: {
|
|
158
|
+
country: {
|
|
159
|
+
label: 'Country',
|
|
160
|
+
type: 'string',
|
|
161
|
+
description: 'Country of the user.'
|
|
162
|
+
},
|
|
163
|
+
region: {
|
|
164
|
+
label: 'Region/State',
|
|
165
|
+
type: 'string',
|
|
166
|
+
description: 'Region or state of the user.'
|
|
167
|
+
},
|
|
168
|
+
city: {
|
|
169
|
+
label: 'City',
|
|
170
|
+
type: 'string',
|
|
171
|
+
description: 'City of the user.'
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
default: {
|
|
175
|
+
country: { '@path': '$.context.location.country' },
|
|
176
|
+
region: { '@path': '$.context.location.region' },
|
|
177
|
+
city: { '@path': '$.context.location.city' }
|
|
178
|
+
}
|
|
179
|
+
},
|
|
47
180
|
properties: {
|
|
48
181
|
label: 'Contact Properties',
|
|
49
182
|
type: 'object',
|
|
@@ -110,13 +243,6 @@ const action = {
|
|
|
110
243
|
zipcode: { '@path': '$.traits.address.postal_code' }
|
|
111
244
|
}
|
|
112
245
|
},
|
|
113
|
-
status: {
|
|
114
|
-
label: 'Email subscription status',
|
|
115
|
-
type: 'boolean',
|
|
116
|
-
description: 'Indicates if the Contact is subscribed or unsubscribed from marketing emails. Set to true to subscribe, false to unsubscribe.',
|
|
117
|
-
required: true,
|
|
118
|
-
default: true
|
|
119
|
-
},
|
|
120
246
|
tags_to_add: {
|
|
121
247
|
label: 'Tags to Add',
|
|
122
248
|
type: 'string',
|
|
@@ -135,16 +261,22 @@ const action = {
|
|
|
135
261
|
}
|
|
136
262
|
},
|
|
137
263
|
perform: async (request, { payload }) => {
|
|
138
|
-
const { listId, properties: { firstName, lastName, phone, dateOfBirth, address, city, state, country, zipcode } = {},
|
|
264
|
+
const { identifiers: { userId, email }, identifiers: { anonymousId } = {}, listId, status, ip, timestamp, userAgent, page, campaign, location, properties: { firstName, lastName, phone, dateOfBirth, address, city, state, country, zipcode } = {}, tags_to_add, tags_to_remove } = payload;
|
|
139
265
|
if (!userId && !email && !anonymousId) {
|
|
140
266
|
throw new actions_core_1.PayloadValidationError('At least one identifier (userId, email, or anonymousId) is required.');
|
|
141
267
|
}
|
|
142
268
|
const jsonUpsertContact = {
|
|
143
|
-
|
|
269
|
+
userId,
|
|
144
270
|
...(anonymousId ? { anonymousId } : {}),
|
|
145
|
-
|
|
271
|
+
email,
|
|
146
272
|
listId,
|
|
147
|
-
|
|
273
|
+
status,
|
|
274
|
+
timestamp,
|
|
275
|
+
ip,
|
|
276
|
+
userAgent,
|
|
277
|
+
page,
|
|
278
|
+
campaign,
|
|
279
|
+
location,
|
|
148
280
|
properties: {
|
|
149
281
|
...(firstName ? { firstName } : {}),
|
|
150
282
|
...(lastName ? { lastName } : {}),
|
|
@@ -154,15 +286,15 @@ const action = {
|
|
|
154
286
|
...(city ? { city } : {}),
|
|
155
287
|
...(state ? { state } : {}),
|
|
156
288
|
...(country ? { country } : {}),
|
|
157
|
-
...(zipcode ? { zipcode } : {})
|
|
289
|
+
...(zipcode ? { zipcode } : {}),
|
|
290
|
+
...((typeof tags_to_add === 'string' || (Array.isArray(tags_to_add) && tags_to_add.length > 0))
|
|
291
|
+
? { tags_to_add: Array.isArray(tags_to_add) ? tags_to_add : [tags_to_add] }
|
|
292
|
+
: {}),
|
|
293
|
+
...((typeof tags_to_remove === 'string' || (Array.isArray(tags_to_remove) && tags_to_remove.length > 0))
|
|
294
|
+
? { tags_to_remove: Array.isArray(tags_to_remove) ? tags_to_remove : [tags_to_remove] }
|
|
295
|
+
: {})
|
|
158
296
|
}
|
|
159
297
|
};
|
|
160
|
-
if (typeof tags_to_add === 'string' || ((Array.isArray(tags_to_add) && tags_to_add.length > 0))) {
|
|
161
|
-
jsonUpsertContact.properties.tags_to_add = Array.isArray(tags_to_add) ? tags_to_add : [tags_to_add];
|
|
162
|
-
}
|
|
163
|
-
if (typeof tags_to_remove === 'string' || ((Array.isArray(tags_to_remove) && tags_to_remove.length > 0))) {
|
|
164
|
-
jsonUpsertContact.properties.tags_to_remove = Array.isArray(tags_to_remove) ? tags_to_remove : [tags_to_remove];
|
|
165
|
-
}
|
|
166
298
|
await request(constants_1.UPSERT_CONTACT_URL, {
|
|
167
299
|
method: 'POST',
|
|
168
300
|
json: jsonUpsertContact
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/yonoma/upsertContact/index.ts"],"names":[],"mappings":";;AAAA,wDAAgF;AAGhF,2CAAgD;AAEhD,2CAAwC;AAExC,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,gBAAgB;IACvB,WAAW,EAAE,uDAAuD;IACpE,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE;QACN,WAAW,EAAE;YACX,KAAK,EAAE,aAAa;YACpB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/yonoma/upsertContact/index.ts"],"names":[],"mappings":";;AAAA,wDAAgF;AAGhF,2CAAgD;AAEhD,2CAAwC;AAExC,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,gBAAgB;IACvB,WAAW,EAAE,uDAAuD;IACpE,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE;QACN,WAAW,EAAE;YACX,KAAK,EAAE,aAAa;YACpB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,+FAA+F;YAC5G,QAAQ,EAAE,IAAI;YACd,oBAAoB,EAAE,KAAK;YAC3B,UAAU,EAAE;gBACV,MAAM,EAAE;oBACN,KAAK,EAAE,SAAS;oBAChB,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,uCAAuC;oBACpD,QAAQ,EAAE,IAAI;iBACf;gBACD,WAAW,EAAE;oBACX,KAAK,EAAE,cAAc;oBACrB,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,yEAAyE;iBACvF;gBACD,KAAK,EAAE;oBACL,KAAK,EAAE,OAAO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E,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE;oBAC3E,CAAC,CAAC,EAAE,CAAC;gBACP,GAAG,CAAC,CAAC,OAAO,cAAc,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,cAAc,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;oBACtG,CAAC,CAAC,EAAE,cAAc,EAAE,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,EAAE;oBACvF,CAAC,CAAC,EAAE,CAAC;aACR;SACF,CAAA;QAED,MAAM,OAAO,CAAC,8BAAkB,EAAE;YAChC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,iBAAiB;SACxB,CAAC,CAAA;IAEJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1,10 +1,32 @@
|
|
|
1
1
|
export interface UpsertContactJSON {
|
|
2
|
-
userId
|
|
2
|
+
userId: string;
|
|
3
3
|
anonymousId?: string;
|
|
4
|
-
email
|
|
4
|
+
email: string;
|
|
5
5
|
listId: string;
|
|
6
|
-
status
|
|
7
|
-
|
|
6
|
+
status: boolean;
|
|
7
|
+
timestamp?: string;
|
|
8
|
+
ip?: string;
|
|
9
|
+
userAgent?: string;
|
|
10
|
+
page?: {
|
|
11
|
+
url?: string;
|
|
12
|
+
title?: string;
|
|
13
|
+
referrer?: string;
|
|
14
|
+
path?: string;
|
|
15
|
+
search?: string;
|
|
16
|
+
};
|
|
17
|
+
campaign?: {
|
|
18
|
+
name?: string;
|
|
19
|
+
source?: string;
|
|
20
|
+
medium?: string;
|
|
21
|
+
term?: string;
|
|
22
|
+
content?: string;
|
|
23
|
+
};
|
|
24
|
+
location?: {
|
|
25
|
+
country?: string;
|
|
26
|
+
region?: string;
|
|
27
|
+
city?: string;
|
|
28
|
+
};
|
|
29
|
+
properties?: {
|
|
8
30
|
firstName?: string;
|
|
9
31
|
lastName?: string;
|
|
10
32
|
phone?: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@segment/action-destinations",
|
|
3
3
|
"description": "Destination Actions engine and definitions.",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.439.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/segmentio/action-destinations",
|
|
@@ -91,5 +91,5 @@
|
|
|
91
91
|
"__tests__/__helpers__/"
|
|
92
92
|
]
|
|
93
93
|
},
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "a945135cc54a818a4ccdc3f1961c576d30087665"
|
|
95
95
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/linkedin-audiences/api/index.ts"],"names":[],"mappings":";;;AAIA,4CAAiE;AAGjE,MAAa,iBAAiB;IAG5B,YAAY,OAAsB;QAChC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACxB,CAAC;IAED,KAAK,CAAC,UAAU;QACd,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,oBAAQ,KAAK,EAAE;YACpC,MAAM,EAAE,KAAK;SACd,CAAC,CAAA;IACJ,CAAC;IAED,KAAK,CAAC,uBAAuB,CAAC,QAAkB,EAAE,MAAc;QAC9D,OAAO,IAAI,CAAC,OAAO,CACjB,GAAG,oBAAQ,mDAAmD,QAAQ,CAAC,aAAa,uBAAuB,MAAM,EAAE,EACnH;YACE,MAAM,EAAE,KAAK;SACd,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,QAAkB,EAAE,OAAgB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,oBAAQ,cAAc,EAAE;YAC7C,MAAM,EAAE,KAAK;YACb,YAAY,EAAE;gBACZ,CAAC,EAAE,SAAS;gBACZ,OAAO,EAAE,2BAA2B,QAAQ,CAAC,aAAa,EAAE;gBAC5D,eAAe,EAAE,OAAO,CAAC,qBAAqB,IAAI,EAAE;gBACpD,cAAc,EAAE,oCAAwB;aACzC;SACF,CAAC,CAAA;IACJ,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAC,QAAkB,EAAE,OAAgB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,oBAAQ,cAAc,EAAE;YAC7C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE;gBACJ,IAAI,EAAE,OAAO,CAAC,gBAAgB;gBAC9B,cAAc,EAAE,oCAAwB;gBACxC,eAAe,EAAE,OAAO,CAAC,qBAAqB;gBAC9C,OAAO,EAAE,2BAA2B,QAAQ,CAAC,aAAa,EAAE;gBAC5D,IAAI,EAAE,MAAM;gBACZ,YAAY,EAAE;oBACZ;wBACE,WAAW,EAAE,UAAU;qBACxB;iBACF;aACF;SACF,CAAC,CAAA;IACJ,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,YAAoB,EAAE,QAAmC;QACzE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,oBAAQ,gBAAgB,YAAY,QAAQ,EAAE;YACnE,MAAM,EAAE,MAAM;YACd,OAAO,EAAE;gBACP,iBAAiB,EAAE,cAAc;aAClC;YACD,IAAI,EAAE;gBACJ,QAAQ;aACT;YACD,eAAe,EAAE,KAAK;SACvB,CAAC,CAAA;IACJ,CAAC;CACF;AAhED,8CAgEC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Payload } from './generated-types';
|
|
2
|
-
export declare const sortPayload: (payload: Payload[]) => {
|
|
3
|
-
enteredAudience: string[][];
|
|
4
|
-
exitedAudience: string[][];
|
|
5
|
-
};
|
|
6
|
-
export declare const validationError: (schema_type: string) => string;
|
|
7
|
-
export declare const normalize: (identifier: string) => string;
|
|
8
|
-
export declare const normalizePhone: (phone: string) => string;
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.normalizePhone = exports.normalize = exports.validationError = exports.sortPayload = void 0;
|
|
4
|
-
const hashing_utils_1 = require("../../../lib/hashing-utils");
|
|
5
|
-
const sortPayload = (payload) => {
|
|
6
|
-
return payload.reduce((acc, payloadItem) => {
|
|
7
|
-
const audienceEntered = payloadItem.props[payloadItem.audienceKey];
|
|
8
|
-
const externalId = validateAndExtractIdentifier(payloadItem.schema_type, payloadItem.email, payloadItem.phone, payloadItem.advertising_id);
|
|
9
|
-
if (externalId) {
|
|
10
|
-
if (audienceEntered) {
|
|
11
|
-
acc.enteredAudience.push([externalId]);
|
|
12
|
-
}
|
|
13
|
-
else {
|
|
14
|
-
acc.exitedAudience.push([externalId]);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
return acc;
|
|
18
|
-
}, { enteredAudience: [], exitedAudience: [] });
|
|
19
|
-
};
|
|
20
|
-
exports.sortPayload = sortPayload;
|
|
21
|
-
const validationError = (schema_type) => {
|
|
22
|
-
switch (schema_type) {
|
|
23
|
-
case 'MOBILE_AD_ID_SHA256':
|
|
24
|
-
return 'Mobile Advertising ID';
|
|
25
|
-
case 'EMAIL_SHA256':
|
|
26
|
-
return 'Email';
|
|
27
|
-
case 'PHONE_SHA256':
|
|
28
|
-
return 'Phone number';
|
|
29
|
-
default:
|
|
30
|
-
return 'Identifier';
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
exports.validationError = validationError;
|
|
34
|
-
const validateAndExtractIdentifier = (schemaType, email, phone, mobileAdId) => {
|
|
35
|
-
if (schemaType === 'EMAIL_SHA256' && email) {
|
|
36
|
-
return (0, hashing_utils_1.processHashing)(email, 'sha256', 'hex', exports.normalize);
|
|
37
|
-
}
|
|
38
|
-
if (schemaType === 'MOBILE_AD_ID_SHA256' && mobileAdId) {
|
|
39
|
-
return (0, hashing_utils_1.processHashing)(mobileAdId, 'sha256', 'hex', exports.normalize);
|
|
40
|
-
}
|
|
41
|
-
if (schemaType === 'PHONE_SHA256' && phone) {
|
|
42
|
-
return (0, hashing_utils_1.processHashing)(phone, 'sha256', 'hex', exports.normalizePhone);
|
|
43
|
-
}
|
|
44
|
-
return null;
|
|
45
|
-
};
|
|
46
|
-
const normalize = (identifier) => {
|
|
47
|
-
return identifier.trim().toLowerCase();
|
|
48
|
-
};
|
|
49
|
-
exports.normalize = normalize;
|
|
50
|
-
const normalizePhone = (phone) => {
|
|
51
|
-
let normalizedPhone = phone.replace(/[\s()+-]/g, '');
|
|
52
|
-
if (normalizedPhone.startsWith('00')) {
|
|
53
|
-
normalizedPhone = normalizedPhone.substring(2);
|
|
54
|
-
}
|
|
55
|
-
if (normalizedPhone.startsWith('0')) {
|
|
56
|
-
normalizedPhone = normalizedPhone.substring(1);
|
|
57
|
-
}
|
|
58
|
-
return normalizedPhone;
|
|
59
|
-
};
|
|
60
|
-
exports.normalizePhone = normalizePhone;
|
|
61
|
-
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/destinations/snap-audiences/syncAudience/utils.ts"],"names":[],"mappings":";;;AACA,8DAA2D;AAGpD,MAAM,WAAW,GAAG,CAAC,OAAkB,EAAE,EAAE;IAChD,OAAO,OAAO,CAAC,MAAM,CAInB,CAAC,GAAG,EAAE,WAAW,EAAE,EAAE;QACnB,MAAM,eAAe,GAAG,WAAW,CAAC,KAAK,CAAC,WAAW,CAAC,WAAW,CAAC,CAAA;QAClE,MAAM,UAAU,GAAG,4BAA4B,CAC7C,WAAW,CAAC,WAAW,EACvB,WAAW,CAAC,KAAK,EACjB,WAAW,CAAC,KAAK,EACjB,WAAW,CAAC,cAAc,CAC3B,CAAA;QAED,IAAI,UAAU,EAAE,CAAC;YACf,IAAI,eAAe,EAAE,CAAC;gBACpB,GAAG,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MAAM,SAAS,GAAG,CAAC,UAAkB,EAAU,EAAE;IACtD,OAAO,UAAU,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAA;AACxC,CAAC,CAAA;AAFY,QAAA,SAAS,aAErB;AAQM,MAAM,cAAc,GAAG,CAAC,KAAa,EAAU,EAAE;IAEtD,IAAI,eAAe,GAAG,KAAK,CAAC,OAAO,CAAC,WAAW,EAAE,EAAE,CAAC,CAAA;IAGpD,IAAI,eAAe,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;QACrC,eAAe,GAAG,eAAe,CAAC,SAAS,CAAC,CAAC,CAAC,CAAA;IAChD,CAAC;IAGD,IAAI,eAAe,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;QACpC,eAAe,GAAG,eAAe,CAAC,SAAS,CAAC,CAAC,CAAC,CAAA;IAChD,CAAC;IAED,OAAO,eAAe,CAAA;AACxB,CAAC,CAAA;AAfY,QAAA,cAAc,kBAe1B"}
|
|
@@ -1,227 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.common_fields = void 0;
|
|
4
|
-
const constants_1 = require("./constants");
|
|
5
|
-
exports.common_fields = {
|
|
6
|
-
standard_traits: {
|
|
7
|
-
label: 'Standard User Properties',
|
|
8
|
-
type: 'object',
|
|
9
|
-
description: 'Standard properties for the user.',
|
|
10
|
-
defaultObjectUI: 'keyvalue',
|
|
11
|
-
additionalProperties: false,
|
|
12
|
-
required: false,
|
|
13
|
-
properties: {
|
|
14
|
-
first_name: {
|
|
15
|
-
label: 'First Name',
|
|
16
|
-
type: 'string',
|
|
17
|
-
description: "The user's first name."
|
|
18
|
-
},
|
|
19
|
-
last_name: {
|
|
20
|
-
label: 'Last Name',
|
|
21
|
-
type: 'string',
|
|
22
|
-
description: "The user's last name."
|
|
23
|
-
},
|
|
24
|
-
phone: {
|
|
25
|
-
label: 'Phone',
|
|
26
|
-
type: 'string',
|
|
27
|
-
description: 'The phone number of the user.'
|
|
28
|
-
},
|
|
29
|
-
address: {
|
|
30
|
-
label: 'Address',
|
|
31
|
-
type: 'string',
|
|
32
|
-
description: 'The address of the user.'
|
|
33
|
-
},
|
|
34
|
-
city: {
|
|
35
|
-
label: 'City',
|
|
36
|
-
type: 'string',
|
|
37
|
-
description: 'The city of the user.'
|
|
38
|
-
},
|
|
39
|
-
country: {
|
|
40
|
-
label: 'Country',
|
|
41
|
-
type: 'string',
|
|
42
|
-
description: 'The country of the user.'
|
|
43
|
-
},
|
|
44
|
-
state: {
|
|
45
|
-
label: 'State',
|
|
46
|
-
type: 'string',
|
|
47
|
-
description: 'The state of the user.'
|
|
48
|
-
},
|
|
49
|
-
timezone: {
|
|
50
|
-
label: 'Time Zone',
|
|
51
|
-
type: 'string',
|
|
52
|
-
description: 'The timezone of the user.'
|
|
53
|
-
},
|
|
54
|
-
postal_code: {
|
|
55
|
-
label: 'Postal Code',
|
|
56
|
-
type: 'string',
|
|
57
|
-
description: 'The postal code of the user.'
|
|
58
|
-
},
|
|
59
|
-
birth_day: {
|
|
60
|
-
label: 'Birth Day',
|
|
61
|
-
type: 'number',
|
|
62
|
-
description: 'The numeric birth day of the user. e.g 15 for the 15th of the month.',
|
|
63
|
-
maximum: 31,
|
|
64
|
-
minimum: 1
|
|
65
|
-
},
|
|
66
|
-
birth_month: {
|
|
67
|
-
label: 'Birth Month',
|
|
68
|
-
type: 'number',
|
|
69
|
-
description: 'The numeric birth month of the user. e.g 6 for June.',
|
|
70
|
-
maximum: 12,
|
|
71
|
-
minimum: 1
|
|
72
|
-
},
|
|
73
|
-
birth_year: {
|
|
74
|
-
label: 'Birth Year',
|
|
75
|
-
type: 'number',
|
|
76
|
-
description: 'The numeric birth year of the user. e.g 1990.'
|
|
77
|
-
},
|
|
78
|
-
birth_date: {
|
|
79
|
-
label: 'Birth Date',
|
|
80
|
-
type: 'string',
|
|
81
|
-
format: 'date',
|
|
82
|
-
description: "The birth date of the user in YYYY-MM-DD format. If set, overrides 'Birth Day', 'Birth Month' and 'Birth Year' fields."
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
default: {
|
|
86
|
-
first_name: {
|
|
87
|
-
'@if': {
|
|
88
|
-
exists: { '@path': '$.traits.first_name' },
|
|
89
|
-
then: { '@path': '$.traits.first_name' },
|
|
90
|
-
else: { '@path': '$.properties.first_name' }
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
last_name: {
|
|
94
|
-
'@if': {
|
|
95
|
-
exists: { '@path': '$.traits.last_name' },
|
|
96
|
-
then: { '@path': '$.traits.last_name' },
|
|
97
|
-
else: { '@path': '$.properties.last_name' }
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
phone: {
|
|
101
|
-
'@if': {
|
|
102
|
-
exists: { '@path': '$.traits.phone' },
|
|
103
|
-
then: { '@path': '$.traits.phone' },
|
|
104
|
-
else: { '@path': '$.properties.phone' }
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
address: {
|
|
108
|
-
'@if': {
|
|
109
|
-
exists: { '@path': '$.traits.street' },
|
|
110
|
-
then: { '@path': '$.traits.street' },
|
|
111
|
-
else: { '@path': '$.properties.street' }
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
city: {
|
|
115
|
-
'@if': {
|
|
116
|
-
exists: { '@path': '$.traits.city' },
|
|
117
|
-
then: { '@path': '$.traits.city' },
|
|
118
|
-
else: { '@path': '$.properties.city' }
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
country: {
|
|
122
|
-
'@if': {
|
|
123
|
-
exists: { '@path': '$.traits.country' },
|
|
124
|
-
then: { '@path': '$.traits.country' },
|
|
125
|
-
else: { '@path': '$.properties.country' }
|
|
126
|
-
}
|
|
127
|
-
},
|
|
128
|
-
state: {
|
|
129
|
-
'@if': {
|
|
130
|
-
exists: { '@path': '$.traits.state' },
|
|
131
|
-
then: { '@path': '$.traits.state' },
|
|
132
|
-
else: { '@path': '$.properties.state' }
|
|
133
|
-
}
|
|
134
|
-
},
|
|
135
|
-
postal_code: {
|
|
136
|
-
'@if': {
|
|
137
|
-
exists: { '@path': '$.traits.postal_code' },
|
|
138
|
-
then: { '@path': '$.traits.postal_code' },
|
|
139
|
-
else: { '@path': '$.properties.postal_code' }
|
|
140
|
-
}
|
|
141
|
-
},
|
|
142
|
-
timezone: {
|
|
143
|
-
'@if': {
|
|
144
|
-
exists: { '@path': '$.traits.timezone' },
|
|
145
|
-
then: { '@path': '$.traits.timezone' },
|
|
146
|
-
else: { '@path': '$.properties.timezone' }
|
|
147
|
-
}
|
|
148
|
-
},
|
|
149
|
-
birth_day: {
|
|
150
|
-
'@if': {
|
|
151
|
-
exists: { '@path': '$.traits.birth_day' },
|
|
152
|
-
then: { '@path': '$.traits.birth_day' },
|
|
153
|
-
else: { '@path': '$.properties.birth_day' }
|
|
154
|
-
}
|
|
155
|
-
},
|
|
156
|
-
birth_month: {
|
|
157
|
-
'@if': {
|
|
158
|
-
exists: { '@path': '$.traits.birth_month' },
|
|
159
|
-
then: { '@path': '$.traits.birth_month' },
|
|
160
|
-
else: { '@path': '$.properties.birth_month' }
|
|
161
|
-
}
|
|
162
|
-
},
|
|
163
|
-
birth_year: {
|
|
164
|
-
'@if': {
|
|
165
|
-
exists: { '@path': '$.traits.birth_year' },
|
|
166
|
-
then: { '@path': '$.traits.birth_year' },
|
|
167
|
-
else: { '@path': '$.properties.birth_year' }
|
|
168
|
-
}
|
|
169
|
-
},
|
|
170
|
-
birth_date: {
|
|
171
|
-
'@if': {
|
|
172
|
-
exists: { '@path': '$.traits.birth_date' },
|
|
173
|
-
then: { '@path': '$.traits.birth_date' },
|
|
174
|
-
else: { '@path': '$.properties.birth_date' }
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
},
|
|
179
|
-
custom_traits: {
|
|
180
|
-
label: 'Custom User Properties',
|
|
181
|
-
type: 'object',
|
|
182
|
-
description: 'Custom properties for the user.',
|
|
183
|
-
defaultObjectUI: 'keyvalue',
|
|
184
|
-
required: false
|
|
185
|
-
},
|
|
186
|
-
user_id: {
|
|
187
|
-
label: 'Segment User ID',
|
|
188
|
-
description: 'The ID of the user in Segment',
|
|
189
|
-
type: 'string',
|
|
190
|
-
default: {
|
|
191
|
-
'@if': {
|
|
192
|
-
exists: { '@path': '$.userId' },
|
|
193
|
-
then: { '@path': '$.userId' },
|
|
194
|
-
else: { '@path': '$.anonymousId' }
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
},
|
|
198
|
-
event_type: {
|
|
199
|
-
label: 'Event Type',
|
|
200
|
-
description: 'The Segment event type - track or identify',
|
|
201
|
-
type: 'string',
|
|
202
|
-
required: true,
|
|
203
|
-
default: {
|
|
204
|
-
'@path': '$.type'
|
|
205
|
-
}
|
|
206
|
-
},
|
|
207
|
-
marketing_status: {
|
|
208
|
-
label: 'Marketing Status',
|
|
209
|
-
description: 'In certain jurisdictions, explicit consent may be required to send email marketing communications to imported profiles. Consult independent counsel for further guidance.',
|
|
210
|
-
type: 'string',
|
|
211
|
-
required: true,
|
|
212
|
-
disabledInputMethods: ['literal', 'variable', 'function', 'freeform', 'enrichment'],
|
|
213
|
-
choices: [
|
|
214
|
-
{ label: 'Opted-in (Profiles can receive email marketing)', value: constants_1.MarketingStatus.OPT_IN },
|
|
215
|
-
{ label: 'Indeterminate (Profiles that have not opted-out, but are excluded from email marketing)', value: constants_1.MarketingStatus.Indeterminate }
|
|
216
|
-
]
|
|
217
|
-
},
|
|
218
|
-
enable_batching: {
|
|
219
|
-
type: 'boolean',
|
|
220
|
-
label: 'Batch Profiles',
|
|
221
|
-
unsafe_hidden: true,
|
|
222
|
-
description: 'When enabled, Segment will batch profiles together and send them to StackAdapt in a single request.',
|
|
223
|
-
required: true,
|
|
224
|
-
default: true
|
|
225
|
-
}
|
|
226
|
-
};
|
|
227
|
-
//# sourceMappingURL=common-fields.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common-fields.js","sourceRoot":"","sources":["../../../src/destinations/stackadapt-audiences/common-fields.ts"],"names":[],"mappings":";;;AACA,2CAA6C;AAEhC,QAAA,aAAa,GAA+B;IACrD,eAAe,EAAE;QACf,KAAK,EAAE,0BAA0B;QACjC,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,mCAAmC;QAChD,eAAe,EAAE,UAAU;QAC3B,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,KAAK;QACf,UAAU,EAAE;YACV,UAAU,EAAE;gBACV,KAAK,EAAE,YAAY;gBACnB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,wBAAwB;aACtC;YACD,SAAS,EAAE;gBACT,KAAK,EAAE,WAAW;gBAClB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,uBAAuB;aACrC;YACD,KAAK,EAAE;gBACL,KAAK,EAAE,OAAO;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,+BAA+B;aAC7C;YACD,OAAO,EAAE;gBACP,KAAK,EAAE,SAAS;gBAChB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,0BAA0B;aACxC;YACD,IAAI,EAAE;gBACJ,KAAK,EAAE,MAAM;gBACb,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,uBAAuB;aACrC;YACD,OAAO,EAAE;gBACP,KAAK,EAAE,SAAS;gBAChB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,0BAA0B;aACxC;YACD,KAAK,EAAE;gBACL,KAAK,EAAE,OAAO;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,wBAAwB;aACtC;YACD,QAAQ,EAAE;gBACR,KAAK,EAAE,WAAW;gBAClB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,2BAA2B;aACzC;YACD,WAAW,EAAE;gBACX,KAAK,EAAE,aAAa;gBACpB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,8BAA8B;aAC5C;YACD,SAAS,EAAE;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Q;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE;YACP,OAAO,EAAE,QAAQ;SAClB;KACF;IACD,gBAAgB,EAAE;QAChB,KAAK,EAAE,kBAAkB;QACzB,WAAW,EAAE,2KAA2K;QACxL,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,oBAAoB,EAAE,CAAC,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,YAAY,CAAC;QACnF,OAAO,EAAE;YACP,EAAE,KAAK,EAAE,iDAAiD,EAAE,KAAK,EAAE,2BAAe,CAAC,MAAM,EAAE;YAC3F,EAAE,KAAK,EAAE,yFAAyF,EAAE,KAAK,EAAE,2BAAe,CAAC,aAAa,EAAE;SAC3I;KACF;IACD,eAAe,EAAE;QACf,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,gBAAgB;QACvB,aAAa,EAAE,IAAI;QACnB,WAAW,EACT,qGAAqG;QACvG,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,IAAI;KACd;CACJ,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/destinations/stackadapt-audiences/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,iBAAiB,GAAG,YAAY,CAAA;AAEhC,QAAA,YAAY,GAAG,oCAAoC,CAAA;AAInD,QAAA,sBAAsB,GAAyB;IAC1D;QACE,GAAG,EAAE,SAAS;QACd,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,oCAAoC;QACjD,KAAK,EAAE,KAAK;KACb;IACD;QACE,GAAG,EAAE,OAAO;QACZ,KAAK,EAAE,OAAO;QACd,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,+BAA+B;QAC5C,KAAK,EAAE,IAAI;KACZ;IACD;QACE,GAAG,EAAE,YAAY;QACjB,KAAK,EAAE,YAAY;QACnB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,u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