@segment/action-destinations 3.438.0 → 3.440.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/aws-kinesis/generated-types.d.ts +2 -0
- package/dist/destinations/aws-kinesis/generated-types.js.map +1 -0
- package/dist/destinations/aws-kinesis/index.d.ts +4 -0
- package/dist/destinations/aws-kinesis/index.js +24 -0
- package/dist/destinations/aws-kinesis/index.js.map +1 -0
- package/dist/destinations/aws-kinesis/send/generated-types.d.ts +8 -0
- package/dist/destinations/aws-kinesis/send/generated-types.js.map +1 -0
- package/dist/destinations/{yonoma/sendEvent → aws-kinesis/send}/index.d.ts +1 -1
- package/dist/destinations/aws-kinesis/send/index.js +41 -0
- package/dist/destinations/aws-kinesis/send/index.js.map +1 -0
- 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/first-party-dv360/index.js +1 -1
- package/dist/destinations/first-party-dv360/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/common-types.js +3 -0
- 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/stackadapt-audiences/forwardAudienceEvent/types.js +3 -0
- 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.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/forwardProfile → aws-kinesis}/generated-types.js +0 -0
- /package/dist/destinations/{yonoma/sendEvent → aws-kinesis/send}/generated-types.js +0 -0
- /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
|
@@ -1,203 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.send = send;
|
|
4
3
|
exports.sha256hash = sha256hash;
|
|
5
|
-
exports.stringifyJsonWithEscapedQuotes = stringifyJsonWithEscapedQuotes;
|
|
6
|
-
exports.stringifyMappingSchemaForGraphQL = stringifyMappingSchemaForGraphQL;
|
|
7
|
-
const constants_1 = require("./constants");
|
|
8
4
|
const crypto_1 = require("crypto");
|
|
9
|
-
async function send(request, payloads, settings, isAudience) {
|
|
10
|
-
const fieldTypes = getDefaultFieldTypes();
|
|
11
|
-
const fieldsToMap = getDefaultFieldsToMap();
|
|
12
|
-
const advertiserId = settings.advertiser_id;
|
|
13
|
-
const marketingStatus = payloads[0].marketing_status;
|
|
14
|
-
const profileUpdates = payloads.map((p) => {
|
|
15
|
-
const { user_id, standard_traits: { birth_date, birth_day, birth_month, birth_year, ...restStandardTraits } = {}, custom_traits, email } = p;
|
|
16
|
-
const segment_computation_key = isAudience ? p.segment_computation_key : undefined;
|
|
17
|
-
const segment_computation_id = isAudience ? p.segment_computation_id : undefined;
|
|
18
|
-
const traits_or_props = isAudience ? p.traits_or_props : undefined;
|
|
19
|
-
if (isAudience && custom_traits) {
|
|
20
|
-
delete custom_traits[segment_computation_key];
|
|
21
|
-
delete custom_traits[segment_computation_id];
|
|
22
|
-
}
|
|
23
|
-
let date;
|
|
24
|
-
if (birth_date) {
|
|
25
|
-
date = new Date(birth_date);
|
|
26
|
-
}
|
|
27
|
-
const profile = {
|
|
28
|
-
userId: user_id,
|
|
29
|
-
email,
|
|
30
|
-
...restStandardTraits,
|
|
31
|
-
birth_day: (date ? date.getDate() : birth_day) ?? undefined,
|
|
32
|
-
birth_month: (date ? date.getMonth() + 1 : birth_month) ?? undefined,
|
|
33
|
-
birth_year: (date ? date.getFullYear() : birth_year) ?? undefined,
|
|
34
|
-
...custom_traits
|
|
35
|
-
};
|
|
36
|
-
if (isAudience && traits_or_props && segment_computation_key && segment_computation_id) {
|
|
37
|
-
profile.audienceId = segment_computation_id;
|
|
38
|
-
profile.audienceName = segment_computation_key;
|
|
39
|
-
profile.action = traits_or_props[segment_computation_key] ? 'enter' : 'exit';
|
|
40
|
-
}
|
|
41
|
-
if (!isAudience && p.previous_id) {
|
|
42
|
-
profile.previous_id = p.previous_id;
|
|
43
|
-
}
|
|
44
|
-
updateFieldsToMapAndFieldTypes(fieldsToMap, fieldTypes, custom_traits);
|
|
45
|
-
return profile;
|
|
46
|
-
});
|
|
47
|
-
const mappings = getProfileMappings(Array.from(fieldsToMap), fieldTypes);
|
|
48
|
-
const profiles = stringifyJsonWithEscapedQuotes(profileUpdates);
|
|
49
|
-
const mutation = `mutation {
|
|
50
|
-
upsertProfiles(
|
|
51
|
-
input: {
|
|
52
|
-
advertiserId: ${advertiserId},
|
|
53
|
-
externalProvider: "${constants_1.EXTERNAL_PROVIDER}",
|
|
54
|
-
syncId: "${sha256hash(profiles)}",
|
|
55
|
-
profiles: "${profiles}"
|
|
56
|
-
}
|
|
57
|
-
) {
|
|
58
|
-
userErrors {
|
|
59
|
-
message
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
upsertProfileMapping(
|
|
63
|
-
input: {
|
|
64
|
-
advertiserId: ${advertiserId},
|
|
65
|
-
mappingSchemaV2: ${mappings},
|
|
66
|
-
isOptedIn: ${marketingStatus === constants_1.MarketingStatus.OPT_IN},
|
|
67
|
-
mappableType: "${constants_1.EXTERNAL_PROVIDER}"
|
|
68
|
-
}
|
|
69
|
-
) {
|
|
70
|
-
userErrors {
|
|
71
|
-
message
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
${isAudience ? audienceMutation(advertiserId, stringifyMappingSchemaForGraphQL(constants_1.MAPPING_SCHEMA)) : ""}
|
|
75
|
-
}`;
|
|
76
|
-
return await request(constants_1.GQL_ENDPOINT, {
|
|
77
|
-
body: JSON.stringify({ query: mutation })
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
5
|
function sha256hash(data) {
|
|
81
6
|
const hash = (0, crypto_1.createHash)('sha256');
|
|
82
7
|
hash.update(data);
|
|
83
8
|
return hash.digest('hex');
|
|
84
9
|
}
|
|
85
|
-
function audienceMutation(advertiserId, audienceMapping) {
|
|
86
|
-
return `upsertExternalAudienceMapping(
|
|
87
|
-
input: {
|
|
88
|
-
advertiserId: ${advertiserId},
|
|
89
|
-
mappingSchema: ${audienceMapping},
|
|
90
|
-
mappableType: "${constants_1.EXTERNAL_PROVIDER}"
|
|
91
|
-
}
|
|
92
|
-
) {
|
|
93
|
-
userErrors {
|
|
94
|
-
message
|
|
95
|
-
}
|
|
96
|
-
}`;
|
|
97
|
-
}
|
|
98
|
-
function updateFieldsToMapAndFieldTypes(fieldsToMap, fieldTypes, customTraits = {}) {
|
|
99
|
-
return Object.keys(customTraits).reduce((acc, key) => {
|
|
100
|
-
const value = customTraits[key];
|
|
101
|
-
if (key === '' || value === '') {
|
|
102
|
-
return acc;
|
|
103
|
-
}
|
|
104
|
-
acc[key] = value;
|
|
105
|
-
const standardFields = getDefaultFieldsToMap();
|
|
106
|
-
if (!standardFields.has(key)) {
|
|
107
|
-
fieldsToMap.add(key);
|
|
108
|
-
if (value || value === 0) {
|
|
109
|
-
const type = getType(value);
|
|
110
|
-
if (fieldTypes[key] && fieldTypes[key] !== type) {
|
|
111
|
-
fieldTypes[key] = 'STRING';
|
|
112
|
-
}
|
|
113
|
-
else {
|
|
114
|
-
fieldTypes[key] = type;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
return acc;
|
|
119
|
-
}, {});
|
|
120
|
-
}
|
|
121
|
-
function getProfileMappings(customFields, fieldTypes) {
|
|
122
|
-
const mappingSchema = [];
|
|
123
|
-
for (const field of customFields) {
|
|
124
|
-
const fieldConfig = constants_1.PROFILE_DEFAULT_FIELDS.find((f) => f.key === field);
|
|
125
|
-
if (fieldConfig) {
|
|
126
|
-
let destinationKey;
|
|
127
|
-
switch (fieldConfig.key) {
|
|
128
|
-
case 'user_id':
|
|
129
|
-
destinationKey = 'external_id';
|
|
130
|
-
break;
|
|
131
|
-
default:
|
|
132
|
-
destinationKey = fieldConfig.key;
|
|
133
|
-
}
|
|
134
|
-
mappingSchema.push({
|
|
135
|
-
incomingKey: field,
|
|
136
|
-
destinationKey,
|
|
137
|
-
label: fieldConfig.label,
|
|
138
|
-
type: fieldConfig.type.toUpperCase(),
|
|
139
|
-
isPii: fieldConfig.isPii || false
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
|
-
else {
|
|
143
|
-
mappingSchema.push({
|
|
144
|
-
incomingKey: field,
|
|
145
|
-
destinationKey: field,
|
|
146
|
-
label: generateLabel(field),
|
|
147
|
-
type: fieldTypes[field] ?? 'STRING',
|
|
148
|
-
isPii: false
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
return stringifyMappingSchemaForGraphQL(mappingSchema);
|
|
153
|
-
}
|
|
154
|
-
function generateLabel(field) {
|
|
155
|
-
let label = field
|
|
156
|
-
.replace(/_/g, ' ')
|
|
157
|
-
.trim()
|
|
158
|
-
.replace(/\b\w/g, (str) => str.toUpperCase());
|
|
159
|
-
if (field.startsWith('audience')) {
|
|
160
|
-
label = `External ${label}`;
|
|
161
|
-
}
|
|
162
|
-
return label;
|
|
163
|
-
}
|
|
164
|
-
function getType(value) {
|
|
165
|
-
if (isDateStr(value))
|
|
166
|
-
return 'DATE';
|
|
167
|
-
return (typeof value).toUpperCase();
|
|
168
|
-
}
|
|
169
|
-
function isDateStr(value) {
|
|
170
|
-
if (typeof value !== 'string')
|
|
171
|
-
return false;
|
|
172
|
-
const datePatterns = [
|
|
173
|
-
/^\d{4}-\d{2}-\d{2}/,
|
|
174
|
-
/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/,
|
|
175
|
-
/^\d{1,2}\/\d{1,2}\/\d{4}/,
|
|
176
|
-
/^\d{1,2}-\d{1,2}-\d{4}/
|
|
177
|
-
];
|
|
178
|
-
const hasDatePattern = datePatterns.some(pattern => pattern.test(value));
|
|
179
|
-
if (!hasDatePattern)
|
|
180
|
-
return false;
|
|
181
|
-
const parsed = Date.parse(value);
|
|
182
|
-
return !isNaN(parsed);
|
|
183
|
-
}
|
|
184
|
-
function stringifyJsonWithEscapedQuotes(value) {
|
|
185
|
-
const jsonString = JSON.stringify(value);
|
|
186
|
-
return jsonString.replace(/"/g, '\\"');
|
|
187
|
-
}
|
|
188
|
-
function stringifyMappingSchemaForGraphQL(value) {
|
|
189
|
-
let jsonString = JSON.stringify(value);
|
|
190
|
-
jsonString = jsonString.replace(/"type":"([^"]+)"/g, (_, typeValue) => `type:${typeValue.toUpperCase()}`);
|
|
191
|
-
jsonString = jsonString.replace(/"([a-zA-Z_][a-zA-Z0-9_]*)"\s*:/g, '$1:');
|
|
192
|
-
return jsonString;
|
|
193
|
-
}
|
|
194
|
-
const getDefaultFieldsToMap = () => {
|
|
195
|
-
return new Set(constants_1.PROFILE_DEFAULT_FIELDS.map(field => field.key));
|
|
196
|
-
};
|
|
197
|
-
const getDefaultFieldTypes = () => {
|
|
198
|
-
return constants_1.PROFILE_DEFAULT_FIELDS.reduce((acc, field) => {
|
|
199
|
-
acc[field.key] = field.type.toUpperCase();
|
|
200
|
-
return acc;
|
|
201
|
-
}, {});
|
|
202
|
-
};
|
|
203
10
|
//# sourceMappingURL=common-functions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common-functions.js","sourceRoot":"","sources":["../../../src/destinations/stackadapt-audiences/common-functions.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"common-functions.js","sourceRoot":"","sources":["../../../src/destinations/stackadapt-audiences/common-functions.ts"],"names":[],"mappings":";;AAGA,gCAIC;AAND,mCAAmC;AAEnC,SAAgB,UAAU,CAAC,IAAY;IACrC,MAAM,IAAI,GAAG,IAAA,mBAAU,EAAC,QAAQ,CAAC,CAAA;IACjC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IACjB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;AAC3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common-types.js","sourceRoot":"","sources":["../../../src/destinations/stackadapt-audiences/common-types.ts"],"names":[],"mappings":""}
|
package/dist/destinations/stackadapt-audiences/{constants.js → forwardAudienceEvent/constants.js}
RENAMED
|
@@ -81,31 +81,10 @@ exports.PROFILE_DEFAULT_FIELDS = [
|
|
|
81
81
|
description: 'The timezone of the user',
|
|
82
82
|
isPii: false,
|
|
83
83
|
},
|
|
84
|
-
{
|
|
85
|
-
key: 'birth_day',
|
|
86
|
-
label: 'Birth Day',
|
|
87
|
-
type: 'number',
|
|
88
|
-
description: 'The birth day of the user (1-31)',
|
|
89
|
-
isPii: false,
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
key: 'birth_month',
|
|
93
|
-
label: 'Birth Month',
|
|
94
|
-
type: 'number',
|
|
95
|
-
description: 'The birth month of the user (1-12)',
|
|
96
|
-
isPii: false,
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
key: 'birth_year',
|
|
100
|
-
label: 'Birth Year',
|
|
101
|
-
type: 'number',
|
|
102
|
-
description: 'The birth year of the user (YYYY)',
|
|
103
|
-
isPii: false,
|
|
104
|
-
},
|
|
105
84
|
{
|
|
106
85
|
key: 'birth_date',
|
|
107
86
|
label: 'Birth Date',
|
|
108
|
-
type: '
|
|
87
|
+
type: 'date',
|
|
109
88
|
description: 'The birth date of the user',
|
|
110
89
|
isPii: true,
|
|
111
90
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/destinations/stackadapt-audiences/forwardAudienceEvent/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;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;CACF,CAAA;AAEY,QAAA,cAAc,GAAG;IAC5B;QACE,WAAW,EAAE,YAAY;QACzB,cAAc,EAAE,aAAa;QAC7B,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,sBAAsB;QAC7B,KAAK,EAAE,KAAK;KACb;IACD;QACE,WAAW,EAAE,cAAc;QAC3B,cAAc,EAAE,MAAM;QACtB,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,wBAAwB;QAC/B,KAAK,EAAE,KAAK;KACb;CACF,CAAA;AAEY,QAAA,eAAe,GAAG;IAC7B,MAAM,EAAE,UAAU;IAClB,aAAa,EAAE,eAAe;CACtB,CAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.audience_only_fields = void 0;
|
|
3
|
+
exports.profile_fields = exports.audience_only_fields = void 0;
|
|
4
|
+
const constants_1 = require("./constants");
|
|
4
5
|
exports.audience_only_fields = {
|
|
5
6
|
traits_or_props: {
|
|
6
7
|
label: 'Event Properties',
|
|
@@ -48,4 +49,186 @@ exports.audience_only_fields = {
|
|
|
48
49
|
}
|
|
49
50
|
}
|
|
50
51
|
};
|
|
52
|
+
exports.profile_fields = {
|
|
53
|
+
standard_traits: {
|
|
54
|
+
label: 'Standard User Properties',
|
|
55
|
+
type: 'object',
|
|
56
|
+
description: 'Standard properties for the user.',
|
|
57
|
+
defaultObjectUI: 'keyvalue',
|
|
58
|
+
additionalProperties: false,
|
|
59
|
+
required: false,
|
|
60
|
+
properties: {
|
|
61
|
+
first_name: {
|
|
62
|
+
label: 'First Name',
|
|
63
|
+
type: 'string',
|
|
64
|
+
description: "The user's first name."
|
|
65
|
+
},
|
|
66
|
+
last_name: {
|
|
67
|
+
label: 'Last Name',
|
|
68
|
+
type: 'string',
|
|
69
|
+
description: "The user's last name."
|
|
70
|
+
},
|
|
71
|
+
phone: {
|
|
72
|
+
label: 'Phone',
|
|
73
|
+
type: 'string',
|
|
74
|
+
description: 'The phone number of the user.'
|
|
75
|
+
},
|
|
76
|
+
address: {
|
|
77
|
+
label: 'Address',
|
|
78
|
+
type: 'string',
|
|
79
|
+
description: 'The address of the user.'
|
|
80
|
+
},
|
|
81
|
+
city: {
|
|
82
|
+
label: 'City',
|
|
83
|
+
type: 'string',
|
|
84
|
+
description: 'The city of the user.'
|
|
85
|
+
},
|
|
86
|
+
country: {
|
|
87
|
+
label: 'Country',
|
|
88
|
+
type: 'string',
|
|
89
|
+
description: 'The country of the user.'
|
|
90
|
+
},
|
|
91
|
+
state: {
|
|
92
|
+
label: 'State',
|
|
93
|
+
type: 'string',
|
|
94
|
+
description: 'The state of the user.'
|
|
95
|
+
},
|
|
96
|
+
timezone: {
|
|
97
|
+
label: 'Time Zone',
|
|
98
|
+
type: 'string',
|
|
99
|
+
description: 'The timezone of the user.'
|
|
100
|
+
},
|
|
101
|
+
postal_code: {
|
|
102
|
+
label: 'Postal Code',
|
|
103
|
+
type: 'string',
|
|
104
|
+
description: 'The postal code of the user.'
|
|
105
|
+
},
|
|
106
|
+
birth_date: {
|
|
107
|
+
label: 'Birth Date',
|
|
108
|
+
type: 'string',
|
|
109
|
+
format: 'date',
|
|
110
|
+
description: "The birthday of the user in YYYY-MM-DD format."
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
default: {
|
|
114
|
+
first_name: {
|
|
115
|
+
'@if': {
|
|
116
|
+
exists: { '@path': '$.traits.first_name' },
|
|
117
|
+
then: { '@path': '$.traits.first_name' },
|
|
118
|
+
else: { '@path': '$.properties.first_name' }
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
last_name: {
|
|
122
|
+
'@if': {
|
|
123
|
+
exists: { '@path': '$.traits.last_name' },
|
|
124
|
+
then: { '@path': '$.traits.last_name' },
|
|
125
|
+
else: { '@path': '$.properties.last_name' }
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
phone: {
|
|
129
|
+
'@if': {
|
|
130
|
+
exists: { '@path': '$.traits.phone' },
|
|
131
|
+
then: { '@path': '$.traits.phone' },
|
|
132
|
+
else: { '@path': '$.properties.phone' }
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
address: {
|
|
136
|
+
'@if': {
|
|
137
|
+
exists: { '@path': '$.traits.street' },
|
|
138
|
+
then: { '@path': '$.traits.street' },
|
|
139
|
+
else: { '@path': '$.properties.street' }
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
city: {
|
|
143
|
+
'@if': {
|
|
144
|
+
exists: { '@path': '$.traits.city' },
|
|
145
|
+
then: { '@path': '$.traits.city' },
|
|
146
|
+
else: { '@path': '$.properties.city' }
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
country: {
|
|
150
|
+
'@if': {
|
|
151
|
+
exists: { '@path': '$.traits.country' },
|
|
152
|
+
then: { '@path': '$.traits.country' },
|
|
153
|
+
else: { '@path': '$.properties.country' }
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
state: {
|
|
157
|
+
'@if': {
|
|
158
|
+
exists: { '@path': '$.traits.state' },
|
|
159
|
+
then: { '@path': '$.traits.state' },
|
|
160
|
+
else: { '@path': '$.properties.state' }
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
postal_code: {
|
|
164
|
+
'@if': {
|
|
165
|
+
exists: { '@path': '$.traits.postal_code' },
|
|
166
|
+
then: { '@path': '$.traits.postal_code' },
|
|
167
|
+
else: { '@path': '$.properties.postal_code' }
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
timezone: {
|
|
171
|
+
'@if': {
|
|
172
|
+
exists: { '@path': '$.traits.timezone' },
|
|
173
|
+
then: { '@path': '$.traits.timezone' },
|
|
174
|
+
else: { '@path': '$.properties.timezone' }
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
birth_date: {
|
|
178
|
+
'@if': {
|
|
179
|
+
exists: { '@path': '$.traits.birthday' },
|
|
180
|
+
then: { '@path': '$.traits.birthday' },
|
|
181
|
+
else: { '@path': '$.properties.birthday' }
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
custom_traits: {
|
|
187
|
+
label: 'Custom User Properties',
|
|
188
|
+
type: 'object',
|
|
189
|
+
description: 'Custom properties for the user.',
|
|
190
|
+
defaultObjectUI: 'keyvalue',
|
|
191
|
+
required: false
|
|
192
|
+
},
|
|
193
|
+
user_id: {
|
|
194
|
+
label: 'Segment User ID',
|
|
195
|
+
description: 'The ID of the user in Segment',
|
|
196
|
+
type: 'string',
|
|
197
|
+
default: {
|
|
198
|
+
'@if': {
|
|
199
|
+
exists: { '@path': '$.userId' },
|
|
200
|
+
then: { '@path': '$.userId' },
|
|
201
|
+
else: { '@path': '$.anonymousId' }
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
event_type: {
|
|
206
|
+
label: 'Event Type',
|
|
207
|
+
description: 'The Segment event type - track or identify',
|
|
208
|
+
type: 'string',
|
|
209
|
+
required: true,
|
|
210
|
+
default: {
|
|
211
|
+
'@path': '$.type'
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
marketing_status: {
|
|
215
|
+
label: 'Marketing Status',
|
|
216
|
+
description: 'In certain jurisdictions, explicit consent may be required to send email marketing communications to imported profiles. Consult independent counsel for further guidance.',
|
|
217
|
+
type: 'string',
|
|
218
|
+
required: true,
|
|
219
|
+
disabledInputMethods: ['literal', 'variable', 'function', 'freeform', 'enrichment'],
|
|
220
|
+
choices: [
|
|
221
|
+
{ label: 'Opted-in (Profiles can receive email marketing)', value: constants_1.MarketingStatus.OPT_IN },
|
|
222
|
+
{ label: 'Indeterminate (Profiles that have not opted-out, but are excluded from email marketing)', value: constants_1.MarketingStatus.Indeterminate }
|
|
223
|
+
]
|
|
224
|
+
},
|
|
225
|
+
enable_batching: {
|
|
226
|
+
type: 'boolean',
|
|
227
|
+
label: 'Batch Profiles',
|
|
228
|
+
unsafe_hidden: true,
|
|
229
|
+
description: 'When enabled, Segment will batch profiles together and send them to StackAdapt in a single request.',
|
|
230
|
+
required: true,
|
|
231
|
+
default: true
|
|
232
|
+
}
|
|
233
|
+
};
|
|
51
234
|
//# sourceMappingURL=fields.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../src/destinations/stackadapt-audiences/forwardAudienceEvent/fields.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../src/destinations/stackadapt-audiences/forwardAudienceEvent/fields.ts"],"names":[],"mappings":";;;AACA,2CAA6C;AAEhC,QAAA,oBAAoB,GAA+B;IAC5D,eAAe,EAAE;QACf,KAAK,EAAE,kBAAkB;QACzB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,sCAAsC;QACnD,aAAa,EAAE,IAAI;QACnB,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE;YACP,KAAK,EAAE;gBACL,MAAM,EAAE,EAAE,OAAO,EAAE,cAAc,EAAE;gBACnC,IAAI,EAAE,EAAE,OAAO,EAAE,cAAc,EAAE;gBACjC,IAAI,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;aAC9B;SACF;KACF;IACD,yBAAyB,EAAE;QACzB,KAAK,EAAE,2BAA2B;QAClC,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,yFAAyF;QACtG,IAAI,EAAE,QAAQ;QACd,aAAa,EAAE,IAAI;QACnB,OAAO,EAAE;YACP,OAAO,EAAE,sCAAsC;SAChD;QACD,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,EAAC,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,cAAc,EAAE,CAAC;KACrG;IACD,sBAAsB,EAAE;QACtB,KAAK,EAAE,wBAAwB;QAC/B,WAAW,EAAE,+DAA+D;QAC5E,IAAI,EAAE,QAAQ;QACd,QAA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AAe,EAAE,UAAU;QAC3B,QAAQ,EAAE,KAAK;KAChB;IACD,OAAO,EAAE;QACP,KAAK,EAAE,iBAAiB;QACxB,WAAW,EAAE,+BAA+B;QAC5C,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE;YAGP,KAAK,EAAE;gBACL,MAAM,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;gBAC/B,IAAI,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;gBAC7B,IAAI,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE;aACnC;SACF;KACF;IACD,UAAU,EAAE;QACV,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE,4CAA4C;QACzD,IAAI,EAAE,QAAQ;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"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { RequestClient } from '@segment/actions-core';
|
|
2
|
+
import { Settings } from '../generated-types';
|
|
3
|
+
import type { Payload } from './generated-types';
|
|
4
|
+
export declare function send(request: RequestClient, payloads: Payload[], settings: Settings): Promise<import("@segment/actions-core").ModifiedResponse<unknown>>;
|
|
5
|
+
export declare function stringifyJsonWithEscapedQuotes(value: unknown): string;
|
|
6
|
+
export declare function stringifyMappingSchemaForGraphQL(value: unknown): string;
|