@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
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":["../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,EAAE,SAAS;QACd,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,yBAAyB;QACtC,KAAK,EAAE,KAAK;KACb;IACD;QACE,GAAG,EAAE,aAAa;QAClB,KAAK,EAAE,aAAa;QACpB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,6BAA6B;QAC1C,KAAK,EAAE,KAAK;KACb;IACD;QACE,GAAG,EAAE,UAAU;QACf,KAAK,EAAE,UAAU;QACjB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,0BAA0B;QACvC,KAAK,EAAE,KAAK;KACb;IACD;QACE,GAAG,EAAE,YAAY;QACjB,KAAK,EAAE,YAAY;QACnB,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,4BAA4B;QACzC,KAAK,EAAE,IAAI;KACZ;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,IA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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;
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.send = send;
|
|
4
|
+
exports.stringifyJsonWithEscapedQuotes = stringifyJsonWithEscapedQuotes;
|
|
5
|
+
exports.stringifyMappingSchemaForGraphQL = stringifyMappingSchemaForGraphQL;
|
|
6
|
+
const constants_1 = require("./constants");
|
|
7
|
+
const common_constants_1 = require("../common-constants");
|
|
8
|
+
const common_functions_1 = require("../common-functions");
|
|
9
|
+
async function send(request, payloads, settings) {
|
|
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, custom_traits, email } = p;
|
|
16
|
+
const { segment_computation_key, segment_computation_id, traits_or_props } = p;
|
|
17
|
+
if (custom_traits) {
|
|
18
|
+
delete custom_traits[segment_computation_key];
|
|
19
|
+
delete custom_traits[segment_computation_id];
|
|
20
|
+
}
|
|
21
|
+
const profile = {
|
|
22
|
+
userId: user_id,
|
|
23
|
+
email,
|
|
24
|
+
...standard_traits,
|
|
25
|
+
...custom_traits
|
|
26
|
+
};
|
|
27
|
+
profile.audienceId = segment_computation_id;
|
|
28
|
+
profile.audienceName = segment_computation_key;
|
|
29
|
+
profile.action = traits_or_props[segment_computation_key] ? 'enter' : 'exit';
|
|
30
|
+
updateFieldsToMapAndFieldTypes(fieldsToMap, fieldTypes, custom_traits);
|
|
31
|
+
return profile;
|
|
32
|
+
});
|
|
33
|
+
const mappings = getProfileMappings(Array.from(fieldsToMap), fieldTypes);
|
|
34
|
+
const profiles = stringifyJsonWithEscapedQuotes(profileUpdates);
|
|
35
|
+
const mutation = `mutation {
|
|
36
|
+
upsertProfiles(
|
|
37
|
+
input: {
|
|
38
|
+
advertiserId: ${advertiserId},
|
|
39
|
+
externalProvider: "${common_constants_1.EXTERNAL_PROVIDER}",
|
|
40
|
+
syncId: "${(0, common_functions_1.sha256hash)(profiles)}",
|
|
41
|
+
profiles: "${profiles}"
|
|
42
|
+
}
|
|
43
|
+
) {
|
|
44
|
+
userErrors {
|
|
45
|
+
message
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
upsertProfileMapping(
|
|
49
|
+
input: {
|
|
50
|
+
advertiserId: ${advertiserId},
|
|
51
|
+
mappingSchemaV2: ${mappings},
|
|
52
|
+
isOptedIn: ${marketingStatus === constants_1.MarketingStatus.OPT_IN},
|
|
53
|
+
mappableType: "${common_constants_1.EXTERNAL_PROVIDER}"
|
|
54
|
+
}
|
|
55
|
+
) {
|
|
56
|
+
userErrors {
|
|
57
|
+
message
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
${audienceMutation(advertiserId, stringifyMappingSchemaForGraphQL(constants_1.MAPPING_SCHEMA))}
|
|
61
|
+
}`;
|
|
62
|
+
return await request(common_constants_1.GQL_ENDPOINT, {
|
|
63
|
+
body: JSON.stringify({ query: mutation })
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
function audienceMutation(advertiserId, audienceMapping) {
|
|
67
|
+
return `upsertExternalAudienceMapping(
|
|
68
|
+
input: {
|
|
69
|
+
advertiserId: ${advertiserId},
|
|
70
|
+
mappingSchema: ${audienceMapping},
|
|
71
|
+
mappableType: "${common_constants_1.EXTERNAL_PROVIDER}"
|
|
72
|
+
}
|
|
73
|
+
) {
|
|
74
|
+
userErrors {
|
|
75
|
+
message
|
|
76
|
+
}
|
|
77
|
+
}`;
|
|
78
|
+
}
|
|
79
|
+
function updateFieldsToMapAndFieldTypes(fieldsToMap, fieldTypes, customTraits = {}) {
|
|
80
|
+
return Object.keys(customTraits).reduce((acc, key) => {
|
|
81
|
+
const value = customTraits[key];
|
|
82
|
+
if (key === '' || value === '') {
|
|
83
|
+
return acc;
|
|
84
|
+
}
|
|
85
|
+
acc[key] = value;
|
|
86
|
+
const standardFields = getDefaultFieldsToMap();
|
|
87
|
+
if (!standardFields.has(key)) {
|
|
88
|
+
fieldsToMap.add(key);
|
|
89
|
+
if (value || value === 0) {
|
|
90
|
+
const type = getType(value);
|
|
91
|
+
if (fieldTypes[key] && fieldTypes[key] !== type) {
|
|
92
|
+
fieldTypes[key] = 'STRING';
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
fieldTypes[key] = type;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
return acc;
|
|
100
|
+
}, {});
|
|
101
|
+
}
|
|
102
|
+
function getProfileMappings(customFields, fieldTypes) {
|
|
103
|
+
const mappingSchema = [];
|
|
104
|
+
for (const field of customFields) {
|
|
105
|
+
const fieldConfig = constants_1.PROFILE_DEFAULT_FIELDS.find((f) => f.key === field);
|
|
106
|
+
if (fieldConfig) {
|
|
107
|
+
let destinationKey;
|
|
108
|
+
switch (fieldConfig.key) {
|
|
109
|
+
case 'user_id':
|
|
110
|
+
destinationKey = 'external_id';
|
|
111
|
+
break;
|
|
112
|
+
default:
|
|
113
|
+
destinationKey = fieldConfig.key;
|
|
114
|
+
}
|
|
115
|
+
mappingSchema.push({
|
|
116
|
+
incomingKey: field,
|
|
117
|
+
destinationKey,
|
|
118
|
+
label: fieldConfig.label,
|
|
119
|
+
type: fieldConfig.type.toUpperCase(),
|
|
120
|
+
isPii: fieldConfig.isPii || false
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
mappingSchema.push({
|
|
125
|
+
incomingKey: field,
|
|
126
|
+
destinationKey: field,
|
|
127
|
+
label: generateLabel(field),
|
|
128
|
+
type: fieldTypes[field] ?? 'STRING',
|
|
129
|
+
isPii: false
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
return stringifyMappingSchemaForGraphQL(mappingSchema);
|
|
134
|
+
}
|
|
135
|
+
function generateLabel(field) {
|
|
136
|
+
let label = field
|
|
137
|
+
.replace(/_/g, ' ')
|
|
138
|
+
.trim()
|
|
139
|
+
.replace(/\b\w/g, (str) => str.toUpperCase());
|
|
140
|
+
if (field.startsWith('audience')) {
|
|
141
|
+
label = `External ${label}`;
|
|
142
|
+
}
|
|
143
|
+
return label;
|
|
144
|
+
}
|
|
145
|
+
function getType(value) {
|
|
146
|
+
if (isDateStr(value))
|
|
147
|
+
return 'DATE';
|
|
148
|
+
return (typeof value).toUpperCase();
|
|
149
|
+
}
|
|
150
|
+
function isDateStr(value) {
|
|
151
|
+
if (typeof value !== 'string')
|
|
152
|
+
return false;
|
|
153
|
+
const datePatterns = [
|
|
154
|
+
/^\d{4}-\d{2}-\d{2}/,
|
|
155
|
+
/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/,
|
|
156
|
+
/^\d{1,2}\/\d{1,2}\/\d{4}/,
|
|
157
|
+
/^\d{1,2}-\d{1,2}-\d{4}/
|
|
158
|
+
];
|
|
159
|
+
const hasDatePattern = datePatterns.some(pattern => pattern.test(value));
|
|
160
|
+
if (!hasDatePattern)
|
|
161
|
+
return false;
|
|
162
|
+
const parsed = Date.parse(value);
|
|
163
|
+
return !isNaN(parsed);
|
|
164
|
+
}
|
|
165
|
+
function stringifyJsonWithEscapedQuotes(value) {
|
|
166
|
+
const jsonString = JSON.stringify(value);
|
|
167
|
+
return jsonString.replace(/"/g, '\\"');
|
|
168
|
+
}
|
|
169
|
+
function stringifyMappingSchemaForGraphQL(value) {
|
|
170
|
+
let jsonString = JSON.stringify(value);
|
|
171
|
+
jsonString = jsonString.replace(/"type":"([^"]+)"/g, (_, typeValue) => `type:${typeValue.toUpperCase()}`);
|
|
172
|
+
jsonString = jsonString.replace(/"([a-zA-Z_][a-zA-Z0-9_]*)"\s*:/g, '$1:');
|
|
173
|
+
return jsonString;
|
|
174
|
+
}
|
|
175
|
+
const getDefaultFieldsToMap = () => {
|
|
176
|
+
return new Set(constants_1.PROFILE_DEFAULT_FIELDS.map(field => field.key));
|
|
177
|
+
};
|
|
178
|
+
const getDefaultFieldTypes = () => {
|
|
179
|
+
return constants_1.PROFILE_DEFAULT_FIELDS.reduce((acc, field) => {
|
|
180
|
+
acc[field.key] = field.type.toUpperCase();
|
|
181
|
+
return acc;
|
|
182
|
+
}, {});
|
|
183
|
+
};
|
|
184
|
+
//# sourceMappingURL=functions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"functions.js","sourceRoot":"","sources":["../../../../src/destinations/stackadapt-audiences/forwardAudienceEvent/functions.ts"],"names":[],"mappings":";;AAQA,oBAyEC;AA4HD,wEAKC;AAGD,4EAWC;AA9ND,2CAAyG;AACzG,0DAAoE;AAGpE,0DAAgD;AAEzC,KAAK,UAAU,IAAI,CAAC,OAAsB,EAAE,QAAmB,EAAE,QAAkB;IAExF,MAAM,UAAU,GAAG,oBAAo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IAC7D,IAAI,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAA;IAGtC,UAAU,GAAG,UAAU,CAAC,OAAO,CAAC,mBAAmB,EAAE,CAAC,CAAC,EAAE,SAAiB,EAAE,EAAE,CAC5E,QAAQ,SAAS,CAAC,WAAW,EAAE,EAAE,CAAC,CAAA;IAGpC,UAAU,GAAG,UAAU,CAAC,OAAO,CAAC,iCAAiC,EAAE,KAAK,CAAC,CAAC;IAE1E,OAAO,UAAU,CAAA;AACnB,CAAC;AAED,MAAM,qBAAqB,GAAG,GAAgB,EAAE;IAC9C,OAAO,IAAI,GAAG,CAAC,kCAAsB,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAA;AAChE,CAAC,CAAA;AAED,MAAM,oBAAoB,GAAG,GAA2B,EAAE;IACxD,OAAO,kCAAsB,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE;QAClD,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,WAAW,EAAE,CAAA;QACzC,OAAO,GAAG,CAAA;IACZ,CAAC,EAAE,EAA4B,CAAC,CAAA;AAClC,CAAC,CAAA"}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const
|
|
4
|
-
const common_fields_1 = require("../common-fields");
|
|
3
|
+
const functions_1 = require("./functions");
|
|
5
4
|
const fields_1 = require("./fields");
|
|
6
5
|
const action = {
|
|
7
6
|
title: 'Sync Audience',
|
|
8
7
|
description: 'Sync Segment Engage audience and user profile details to StackAdapt',
|
|
9
8
|
defaultSubscription: 'type = "identify" or type = "track"',
|
|
10
9
|
fields: {
|
|
11
|
-
...
|
|
10
|
+
...fields_1.profile_fields,
|
|
12
11
|
...fields_1.audience_only_fields,
|
|
13
12
|
email: {
|
|
14
13
|
label: 'Email',
|
|
@@ -26,10 +25,10 @@ const action = {
|
|
|
26
25
|
}
|
|
27
26
|
},
|
|
28
27
|
perform: async (request, { payload, settings }) => {
|
|
29
|
-
return await (0,
|
|
28
|
+
return await (0, functions_1.send)(request, [payload], settings);
|
|
30
29
|
},
|
|
31
30
|
performBatch: async (request, { payload, settings }) => {
|
|
32
|
-
return await (0,
|
|
31
|
+
return await (0, functions_1.send)(request, payload, settings);
|
|
33
32
|
}
|
|
34
33
|
};
|
|
35
34
|
exports.default = action;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/stackadapt-audiences/forwardAudienceEvent/index.ts"],"names":[],"mappings":";;AAGA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/stackadapt-audiences/forwardAudienceEvent/index.ts"],"names":[],"mappings":";;AAGA,2CAAkC;AAClC,qCAA+D;AAE/D,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,eAAe;IACtB,WAAW,EAAE,qEAAqE;IAClF,mBAAmB,EAAE,qCAAqC;IAC1D,MAAM,EAAE;QACN,GAAG,uBAAc;QACjB,GAAG,6BAAoB;QACvB,KAAK,EAAE;YACL,KAAK,EAAE,OAAO;YACd,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,OAAO;YACf,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,KAAK,EAAE;oBACL,MAAM,EAAE,EAAE,OAAO,EAAE,gBAAgB,EAAE;oBACrC,IAAI,EAAE,EAAE,OAAO,EAAE,gBAAgB,EAAE;oBACnC,IAAI,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE;iBACxC;aACF;SACF;KACF;IACD,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAChD,OAAO,MAAM,IAAA,gBAAI,EAAC,OAAO,EAAE,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC,CAAA;IACjD,CAAC;IACD,YAAY,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QACrD,OAAO,MAAM,IAAA,gBAAI,EAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAA;IAC/C,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
package/dist/destinations/stackadapt-audiences/{types.d.ts → forwardAudienceEvent/types.d.ts}
RENAMED
|
@@ -6,21 +6,6 @@ export interface ProfileFieldConfig {
|
|
|
6
6
|
description: string;
|
|
7
7
|
isPii?: boolean;
|
|
8
8
|
}
|
|
9
|
-
export interface AdvertiserScopesResponse {
|
|
10
|
-
data: {
|
|
11
|
-
tokenInfo: {
|
|
12
|
-
scopesByAdvertiser: {
|
|
13
|
-
nodes: {
|
|
14
|
-
advertiser: {
|
|
15
|
-
id: string;
|
|
16
|
-
name: string;
|
|
17
|
-
};
|
|
18
|
-
scopes: string[];
|
|
19
|
-
}[];
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
9
|
export interface Advertiser {
|
|
25
10
|
id: string;
|
|
26
11
|
name: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/destinations/stackadapt-audiences/forwardAudienceEvent/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { DestinationDefinition } from '@segment/actions-core';
|
|
2
2
|
import type { Settings } from './generated-types';
|
|
3
3
|
declare const destination: DestinationDefinition<Settings>;
|
|
4
4
|
export default destination;
|
|
@@ -4,14 +4,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const actions_core_1 = require("@segment/actions-core");
|
|
7
|
-
const forwardProfile_1 = __importDefault(require("./forwardProfile"));
|
|
8
7
|
const forwardAudienceEvent_1 = __importDefault(require("./forwardAudienceEvent"));
|
|
9
8
|
const common_functions_1 = require("./common-functions");
|
|
10
|
-
const
|
|
9
|
+
const common_constants_1 = require("./common-constants");
|
|
11
10
|
const destination = {
|
|
12
11
|
name: 'StackAdapt Audiences',
|
|
13
12
|
slug: 'actions-stackadapt-audiences',
|
|
14
|
-
description: '
|
|
13
|
+
description: 'Sync Segment Engage Audiences as well as user profile details to StackAdapt',
|
|
15
14
|
mode: 'cloud',
|
|
16
15
|
authentication: {
|
|
17
16
|
scheme: 'custom',
|
|
@@ -42,7 +41,7 @@ const destination = {
|
|
|
42
41
|
}
|
|
43
42
|
}
|
|
44
43
|
}`;
|
|
45
|
-
const res = await request(
|
|
44
|
+
const res = await request(common_constants_1.GQL_ENDPOINT, {
|
|
46
45
|
body: JSON.stringify({ query: scopeQuery }),
|
|
47
46
|
throwHttpErrors: false
|
|
48
47
|
});
|
|
@@ -73,7 +72,7 @@ const destination = {
|
|
|
73
72
|
deleteProfilesWithExternalIds(
|
|
74
73
|
input: {
|
|
75
74
|
externalIds: ${formattedExternalIds},
|
|
76
|
-
externalProvider: "${
|
|
75
|
+
externalProvider: "${common_constants_1.EXTERNAL_PROVIDER}",
|
|
77
76
|
syncId: "${syncId}",
|
|
78
77
|
advertiserIds: [${parseInt(advertiserId, 10)}]
|
|
79
78
|
}
|
|
@@ -84,7 +83,7 @@ const destination = {
|
|
|
84
83
|
}
|
|
85
84
|
}
|
|
86
85
|
}`;
|
|
87
|
-
const response = await request(
|
|
86
|
+
const response = await request(common_constants_1.GQL_ENDPOINT, {
|
|
88
87
|
method: 'POST',
|
|
89
88
|
headers: { 'Content-Type': 'application/json' },
|
|
90
89
|
body: JSON.stringify({ query: mutation })
|
|
@@ -97,7 +96,6 @@ const destination = {
|
|
|
97
96
|
return result;
|
|
98
97
|
},
|
|
99
98
|
actions: {
|
|
100
|
-
forwardProfile: forwardProfile_1.default,
|
|
101
99
|
forwardAudienceEvent: forwardAudienceEvent_1.default
|
|
102
100
|
}
|
|
103
101
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/stackadapt-audiences/index.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/stackadapt-audiences/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAA+E;AAE/E,kFAAyD;AAEzD,yDAA+C;AAC/C,yDAAoE;AAEpE,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,sBAAsB;IAC5B,IAAI,EAAE,8BAA8B;IACpC,WAAW,EAAE,6EAA6E;IAC1F,IAAI,EAAE,OAAO;IACb,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,MAAM,EAAE;gBACN,KAAK,EAAE,eAAe;gBACtB,WAAW,EAAE,+BAA+B;gBAC5C,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;YACD,aAAa,EAAE;gBACb,KAAK,EAAE,eAAe;gBACtB,WAAW,EAAE,qDAAqD;gBAClE,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;SACF;QACD,kBAAkB,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;YACpC,MAAM,UAAU,GAAG;;;;;;;;;;;QAWjB,CAAA;YAEF,MAAM,GAAG,GAAG,MAAM,OAAO,CAAC,+BAAY,EAAE;gBACtC,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC;gBAC3C,eAAe,EAAE,KAAK;aACvB,CAAC,CAAA;YACF,IAAI,GAAG,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;gBACvB,MAAM,IAAI,KAAK,CAAC,GAAG,CAAC,MAAM,GAAG,GAAG,CAAC,UAAU,CAAC,CAAA;YA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SAC1C,CAAC,CAAA;QAEF,MAAM,MAAM,GAMR,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAA;QAEzB,IAAI,MAAM,CAAC,IAAI,CAAC,6BAA6B,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACpE,MAAM,aAAa,GAAG,MAAM,CAAC,IAAI,CAAC,6BAA6B,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;YAC3G,MAAM,IAAI,+BAAgB,CAAC,wCAAwC,aAAa,EAAE,EAAE,eAAe,EAAE,GAAG,CAAC,CAAA;QAC3G,CAAC;QACD,OAAO,MAAM,CAAA;IACf,CAAC;IAED,OAAO,EAAE;QACP,oBAAoB,EAApB,8BAAoB;KACrB;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
|
|
@@ -5,7 +5,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const upsertContact_1 = __importDefault(require("./upsertContact"));
|
|
7
7
|
const trackEvent_1 = __importDefault(require("./trackEvent"));
|
|
8
|
-
const sendEvent_1 = __importDefault(require("./sendEvent"));
|
|
9
8
|
const trackPageView_1 = __importDefault(require("./trackPageView"));
|
|
10
9
|
const destination = {
|
|
11
10
|
name: 'Yonoma',
|
|
@@ -39,7 +38,6 @@ const destination = {
|
|
|
39
38
|
actions: {
|
|
40
39
|
upsertContact: upsertContact_1.default,
|
|
41
40
|
trackEvent: trackEvent_1.default,
|
|
42
|
-
sendEvent: sendEvent_1.default,
|
|
43
41
|
trackPageView: trackPageView_1.default
|
|
44
42
|
}
|
|
45
43
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/yonoma/index.ts"],"names":[],"mappings":";;;;;AAEA,oEAA2C;AAC3C,8DAAqC;AACrC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/yonoma/index.ts"],"names":[],"mappings":";;;;;AAEA,oEAA2C;AAC3C,8DAAqC;AACrC,oEAA2C;AAE3C,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,OAAO;IAEb,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,MAAM,EAAE;gBACN,KAAK,EAAE,SAAS;gBAChB,WAAW,EAAE,sBAAsB;gBACnC,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;SACF;QACD,kBAAkB,EAAE,CAAC,OAAO,EAAE,EAAE;YAC9B,OAAO,OAAO,CAAC,gDAAgD,EAAE;gBAC/D,MAAM,EAAE,KAAK;aACd,CAAC,CAAA;QACJ,CAAC;KACF;IACD,aAAa,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC9B,OAAO;YACL,OAAO,EAAE;gBACP,YAAY,EAAE,SAAS;gBACvB,cAAc,EAAE,kBAAkB;gBAClC,eAAe,EAAE,UAAU,QAAQ,CAAC,MAAM,EAAE;aAC7C;SACF,CAAA;IACH,CAAC;IACD,OAAO,EAAE;QACP,aAAa,EAAb,uBAAa;QACb,UAAU,EAAV,oBAAU;QACV,aAAa,EAAb,uBAAa;KACd;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
|