@segment/action-destinations 3.265.0-staging-11edf92bc → 3.265.0-staging-aed4d3d22
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/blackbaud-raisers-edge-nxt/utils/index.d.ts +1 -1
- package/dist/destinations/customerio/test-helper.d.ts +1 -1
- package/dist/destinations/customerio/utils.d.ts +1 -1
- package/dist/destinations/engage/utils/EngageActionPerformer.d.ts +1 -1
- package/dist/destinations/engage/utils/track.d.ts +10 -10
- package/dist/destinations/snap-conversions-api/snap-capi-properties.d.ts +5 -0
- package/dist/destinations/snap-conversions-api/snap-capi-properties.js +87 -8
- package/dist/destinations/snap-conversions-api/snap-capi-properties.js.map +1 -1
- package/package.json +2 -2
- package/dist/destinations/mixpanel/utils.d.ts +0 -13
- package/dist/destinations/mixpanel/utils.js +0 -117
- package/dist/destinations/mixpanel/utils.js.map +0 -1
- package/dist/destinations/responsys/asyncMergePetRecords/generated-types.d.ts +0 -14
- package/dist/destinations/responsys/asyncMergePetRecords/generated-types.js +0 -3
- package/dist/destinations/responsys/asyncMergePetRecords/generated-types.js.map +0 -1
- package/dist/destinations/responsys/asyncMergePetRecords/index.d.ts +0 -5
- package/dist/destinations/responsys/asyncMergePetRecords/index.js +0 -113
- package/dist/destinations/responsys/asyncMergePetRecords/index.js.map +0 -1
- package/dist/destinations/responsys/asyncMergeProfileListMembers/generated-types.d.ts +0 -20
- package/dist/destinations/responsys/asyncMergeProfileListMembers/generated-types.js +0 -3
- package/dist/destinations/responsys/asyncMergeProfileListMembers/generated-types.js.map +0 -1
- package/dist/destinations/responsys/asyncMergeProfileListMembers/index.d.ts +0 -5
- package/dist/destinations/responsys/asyncMergeProfileListMembers/index.js +0 -174
- package/dist/destinations/responsys/asyncMergeProfileListMembers/index.js.map +0 -1
- package/dist/destinations/responsys/rsp-operations.d.ts +0 -14
- package/dist/destinations/responsys/rsp-operations.js +0 -33
- package/dist/destinations/responsys/rsp-operations.js.map +0 -1
- package/dist/destinations/responsys/rsp-properties.d.ts +0 -4
- package/dist/destinations/responsys/rsp-properties.js +0 -27
- package/dist/destinations/responsys/rsp-properties.js.map +0 -1
- package/dist/destinations/snap-conversions-api/_tests_/capiV2tests.d.ts +0 -1
- package/dist/destinations/snap-conversions-api/_tests_/capiV2tests.js +0 -381
- package/dist/destinations/snap-conversions-api/_tests_/capiV2tests.js.map +0 -1
- package/dist/destinations/snap-conversions-api/_tests_/capiV3tests.d.ts +0 -1
- package/dist/destinations/snap-conversions-api/_tests_/capiV3tests.js +0 -581
- package/dist/destinations/snap-conversions-api/_tests_/capiV3tests.js.map +0 -1
- package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v2.d.ts +0 -4
- package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v2.js +0 -97
- package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v2.js.map +0 -1
- package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/formatter.d.ts +0 -3
- package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/formatter.js +0 -43
- package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/formatter.js.map +0 -1
|
@@ -9,7 +9,7 @@ export declare const dateStringToFuzzyDate: (dateString: string | number) => fal
|
|
|
9
9
|
y: string;
|
|
10
10
|
};
|
|
11
11
|
export declare const augmentFieldsWithConstituentFields: (fields: Record<string, InputField>) => Record<string, InputField>;
|
|
12
|
-
export declare const splitConstituentPayload: (payload: CreateOrUpdateIndividualConstituentPayload) => (Partial<
|
|
12
|
+
export declare const splitConstituentPayload: (payload: CreateOrUpdateIndividualConstituentPayload) => (Partial<Phone> | Partial<Constituent> | Partial<Address> | Partial<OnlinePresence>)[];
|
|
13
13
|
export declare const buildConstituentPayloadFromPayload: (payload: StringIndexedObject) => Partial<CreateOrUpdateIndividualConstituentPayload>;
|
|
14
14
|
export declare const buildGiftDataFromPayload: (constituentId: string, payload: CreateGiftPayload) => Partial<Gift>;
|
|
15
15
|
export declare const buildConstituentActionDataFromPayload: (constituentId: string, payload: CreateConstituentAction) => Partial<ConstituentAction>;
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
import nock from 'nock';
|
|
3
3
|
import { AccountRegion } from './utils';
|
|
4
4
|
export declare const nockTrackInternalEndpoint: (region: AccountRegion) => nock.Scope;
|
|
5
|
-
export declare function getDefaultMappings(action: string): import("lodash").Dictionary<import("@segment/actions-core/
|
|
5
|
+
export declare function getDefaultMappings(action: string): import("lodash").Dictionary<import("@segment/actions-core/destination-kittypes").FieldValue | undefined>;
|
|
6
6
|
export declare function testRunner(fn: Function): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const trackApiEndpoint: ({ accountRegion }: {
|
|
2
2
|
accountRegion?: string | undefined;
|
|
3
|
-
}) => "https://track
|
|
3
|
+
}) => "https://track.customer.io" | "https://track-eu.customer.io";
|
|
4
4
|
export declare enum AccountRegion {
|
|
5
5
|
US = "US \uD83C\uDDFA\uD83C\uDDF8",
|
|
6
6
|
EU = "EU \uD83C\uDDEA\uD83C\uDDFA"
|
|
@@ -12,7 +12,7 @@ export declare abstract class EngageActionPerformer<TSettings = any, TPayload =
|
|
|
12
12
|
readonly executeInput: ExecuteInput<TSettings, TPayload>;
|
|
13
13
|
readonly logger: EngageLogger;
|
|
14
14
|
readonly statsClient: EngageStats;
|
|
15
|
-
readonly dataFeedCache: import("@segment/actions-core/
|
|
15
|
+
readonly dataFeedCache: import("@segment/actions-core/destination-kit").DataFeedCache | undefined;
|
|
16
16
|
readonly currentOperation: OperationContext | undefined;
|
|
17
17
|
readonly payload: TPayload;
|
|
18
18
|
readonly settings: TSettings;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ContextFromDecorator } from './operationTracking';
|
|
2
2
|
export declare const track: ((decoratorArgs?: ({
|
|
3
|
+
shouldStats?: ((args: import("./operationTracking").OperationStatsEventArgs) => boolean | void) | undefined;
|
|
4
|
+
} & {
|
|
3
5
|
onError?: ((ctx: import("./operationTracking").OperationErrorHandlerContext<import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>>) => void) | undefined;
|
|
4
6
|
} & {
|
|
5
7
|
onTry?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => void) | undefined;
|
|
6
8
|
onFinally?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => void) | undefined;
|
|
7
9
|
} & import("./operationTracking").OperationLoggerDecoratorArgs & {
|
|
8
|
-
shouldStats?: ((args: import("./operationTracking").OperationStatsEventArgs) => boolean | void) | undefined;
|
|
9
|
-
} & {
|
|
10
10
|
wrapIntegrationError?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => import("@segment/actions-core/*").IntegrationError | [message: string, code: string, status: number]) | undefined;
|
|
11
11
|
}) | undefined) => import("./operationTracking").GenericMethodDecorator<(this: any, ...args: any[]) => any>) & {
|
|
12
12
|
getCurrentOperation(classInstance: any): (import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any> & {
|
|
@@ -15,6 +15,14 @@ export declare const track: ((decoratorArgs?: ({
|
|
|
15
15
|
}) | undefined;
|
|
16
16
|
} & {
|
|
17
17
|
_contextType: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any> & {
|
|
18
|
+
tags: string[];
|
|
19
|
+
sharedContext: {
|
|
20
|
+
tags: string[];
|
|
21
|
+
};
|
|
22
|
+
decoratorArgs?: {
|
|
23
|
+
shouldStats?: ((args: import("./operationTracking").OperationStatsEventArgs) => boolean | void) | undefined;
|
|
24
|
+
} | undefined;
|
|
25
|
+
} & {
|
|
18
26
|
decoratorArgs?: {
|
|
19
27
|
onError?: ((ctx: import("./operationTracking").OperationErrorHandlerContext<import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>>) => void) | undefined;
|
|
20
28
|
} | undefined;
|
|
@@ -35,14 +43,6 @@ export declare const track: ((decoratorArgs?: ({
|
|
|
35
43
|
logMetadata?: Record<string, unknown> | undefined;
|
|
36
44
|
decoratorArgs?: import("./operationTracking").OperationLoggerDecoratorArgs | undefined;
|
|
37
45
|
sharedContext: import("./operationTracking").OperationLoggerSharedContext;
|
|
38
|
-
} & {
|
|
39
|
-
tags: string[];
|
|
40
|
-
sharedContext: {
|
|
41
|
-
tags: string[];
|
|
42
|
-
};
|
|
43
|
-
decoratorArgs?: {
|
|
44
|
-
shouldStats?: ((args: import("./operationTracking").OperationStatsEventArgs) => boolean | void) | undefined;
|
|
45
|
-
} | undefined;
|
|
46
46
|
} & {
|
|
47
47
|
decoratorArgs?: {
|
|
48
48
|
wrapIntegrationError?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => import("@segment/actions-core/*").IntegrationError | [message: string, code: string, status: number]) | undefined;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { InputField } from '@segment/actions-core/destination-kit/types';
|
|
2
|
+
import { Settings } from '../snap-conversions-api/generated-types';
|
|
3
|
+
import { Payload } from './reportConversionEvent/generated-types';
|
|
2
4
|
export declare const CURRENCY_ISO_4217_CODES: Set<string>;
|
|
3
5
|
export declare const products: InputField;
|
|
4
6
|
export declare const event_type: InputField;
|
|
@@ -28,3 +30,6 @@ export declare const sign_up_method: InputField;
|
|
|
28
30
|
export declare const device_model: InputField;
|
|
29
31
|
export declare const os_version: InputField;
|
|
30
32
|
export declare const click_id: InputField;
|
|
33
|
+
export declare const conversionType: (settings: Settings, event_conversion_type: String) => Settings;
|
|
34
|
+
export declare const hash: (value: string | undefined) => string | undefined;
|
|
35
|
+
export declare const formatPayload: (payload: Payload) => Object;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.click_id = exports.os_version = exports.device_model = exports.sign_up_method = exports.page_url = exports.search_string = exports.client_dedup_id = exports.level = exports.transaction_id = exports.currency = exports.price = exports.number_items = exports.description = exports.item_ids = exports.brands = exports.item_category = exports.ip_address = exports.user_agent = exports.phone_number = exports.idfv = exports.uuid_c1 = exports.mobile_ad_id = exports.email = exports.timestamp = exports.event_tag = exports.event_conversion_type = exports.event_type = exports.products = exports.CURRENCY_ISO_4217_CODES = void 0;
|
|
3
|
+
exports.formatPayload = exports.hash = exports.conversionType = exports.click_id = exports.os_version = exports.device_model = exports.sign_up_method = exports.page_url = exports.search_string = exports.client_dedup_id = exports.level = exports.transaction_id = exports.currency = exports.price = exports.number_items = exports.description = exports.item_ids = exports.brands = exports.item_category = exports.ip_address = exports.user_agent = exports.phone_number = exports.idfv = exports.uuid_c1 = exports.mobile_ad_id = exports.email = exports.timestamp = exports.event_tag = exports.event_conversion_type = exports.event_type = exports.products = exports.CURRENCY_ISO_4217_CODES = void 0;
|
|
4
|
+
const actions_core_1 = require("@segment/actions-core");
|
|
5
|
+
const crypto_1 = require("crypto");
|
|
4
6
|
exports.CURRENCY_ISO_4217_CODES = new Set([
|
|
5
7
|
'USD',
|
|
6
8
|
'AED',
|
|
@@ -157,10 +159,7 @@ exports.mobile_ad_id = {
|
|
|
157
159
|
exports.uuid_c1 = {
|
|
158
160
|
label: 'uuid_c1 Cookie',
|
|
159
161
|
description: 'Unique user ID cookie. If you are using the Pixel SDK, you can access a cookie1 by looking at the _scid value.',
|
|
160
|
-
type: 'string'
|
|
161
|
-
default: {
|
|
162
|
-
'@path': '$.integrations.Snap Conversions Api.uuid_c1'
|
|
163
|
-
}
|
|
162
|
+
type: 'string'
|
|
164
163
|
};
|
|
165
164
|
exports.idfv = {
|
|
166
165
|
label: 'Identifier for Vendor',
|
|
@@ -308,9 +307,89 @@ exports.os_version = {
|
|
|
308
307
|
exports.click_id = {
|
|
309
308
|
label: 'Click ID',
|
|
310
309
|
description: "The ID value stored in the landing page URL's `&ScCid=` query parameter. Using this ID improves ad measurement performance. We also encourage advertisers who are using `click_id` to pass the full url in the `page_url` field. For more details, please refer to [Sending a Click ID](#sending-a-click-id)",
|
|
311
|
-
type: 'string'
|
|
312
|
-
|
|
313
|
-
|
|
310
|
+
type: 'string'
|
|
311
|
+
};
|
|
312
|
+
const conversionType = (settings, event_conversion_type) => {
|
|
313
|
+
if (event_conversion_type === 'MOBILE_APP') {
|
|
314
|
+
if (!settings?.snap_app_id || !settings?.app_id) {
|
|
315
|
+
throw new actions_core_1.IntegrationError('If event conversion type is "MOBILE_APP" then Snap App ID and App ID must be defined', 'Misconfigured required field', 400);
|
|
316
|
+
}
|
|
317
|
+
delete settings?.pixel_id;
|
|
318
|
+
}
|
|
319
|
+
else {
|
|
320
|
+
if (!settings?.pixel_id) {
|
|
321
|
+
throw new actions_core_1.IntegrationError(`If event conversion type is "${event_conversion_type}" then Pixel ID must be defined`, 'Misconfigured required field', 400);
|
|
322
|
+
}
|
|
323
|
+
delete settings?.snap_app_id;
|
|
324
|
+
delete settings?.app_id;
|
|
325
|
+
}
|
|
326
|
+
return settings;
|
|
327
|
+
};
|
|
328
|
+
exports.conversionType = conversionType;
|
|
329
|
+
const hash = (value) => {
|
|
330
|
+
if (value === undefined)
|
|
331
|
+
return;
|
|
332
|
+
const hash = crypto_1.createHash('sha256');
|
|
333
|
+
hash.update(value);
|
|
334
|
+
return hash.digest('hex');
|
|
335
|
+
};
|
|
336
|
+
exports.hash = hash;
|
|
337
|
+
const isHashedEmail = (email) => new RegExp(/[0-9abcdef]{64}/gi).test(email);
|
|
338
|
+
const transformProperty = (property, items) => items
|
|
339
|
+
.map((i) => i[property] === undefined || i[property] === null
|
|
340
|
+
? ''
|
|
341
|
+
: typeof i[property] === 'number'
|
|
342
|
+
? i[property].toString()
|
|
343
|
+
: i[property].toString().replace(/;/g, ''))
|
|
344
|
+
.join(';');
|
|
345
|
+
const formatPayload = (payload) => {
|
|
346
|
+
if (payload.email) {
|
|
347
|
+
payload.email = payload.email.replace(/\s/g, '').toLowerCase();
|
|
348
|
+
}
|
|
349
|
+
if (payload.phone_number) {
|
|
350
|
+
payload.phone_number = payload.phone_number.replace(/\D|^0+/g, '');
|
|
351
|
+
}
|
|
352
|
+
if (payload.mobile_ad_id) {
|
|
353
|
+
payload.mobile_ad_id = payload.mobile_ad_id.toLowerCase();
|
|
354
|
+
}
|
|
355
|
+
let item_ids = undefined;
|
|
356
|
+
let item_category = undefined;
|
|
357
|
+
let brands = undefined;
|
|
358
|
+
const p = payload?.products;
|
|
359
|
+
if (p && Array.isArray(p) && p.length > 0) {
|
|
360
|
+
item_ids = transformProperty('item_id', p);
|
|
361
|
+
item_category = transformProperty('item_category', p);
|
|
362
|
+
brands = p.map((product) => product.brand ?? '');
|
|
314
363
|
}
|
|
364
|
+
return {
|
|
365
|
+
event_type: payload?.event_type,
|
|
366
|
+
event_conversion_type: payload?.event_conversion_type,
|
|
367
|
+
event_tag: payload?.event_tag,
|
|
368
|
+
timestamp: Date.parse(payload?.timestamp),
|
|
369
|
+
hashed_email: isHashedEmail(String(payload?.email)) ? payload?.email : exports.hash(payload?.email),
|
|
370
|
+
hashed_mobile_ad_id: exports.hash(payload?.mobile_ad_id),
|
|
371
|
+
uuid_c1: payload?.uuid_c1,
|
|
372
|
+
hashed_idfv: exports.hash(payload?.idfv),
|
|
373
|
+
hashed_phone_number: exports.hash(payload?.phone_number),
|
|
374
|
+
user_agent: payload?.user_agent,
|
|
375
|
+
hashed_ip_address: exports.hash(payload?.ip_address),
|
|
376
|
+
item_category: item_category ?? payload?.item_category,
|
|
377
|
+
brands: brands ?? payload?.brands,
|
|
378
|
+
item_ids: item_ids ?? payload?.item_ids,
|
|
379
|
+
description: payload?.description,
|
|
380
|
+
number_items: payload?.number_items,
|
|
381
|
+
price: payload?.price,
|
|
382
|
+
currency: payload?.currency,
|
|
383
|
+
transaction_id: payload?.transaction_id,
|
|
384
|
+
level: payload?.level,
|
|
385
|
+
client_dedup_id: payload?.client_dedup_id,
|
|
386
|
+
search_string: payload?.search_string,
|
|
387
|
+
page_url: payload?.page_url,
|
|
388
|
+
sign_up_method: payload?.sign_up_method,
|
|
389
|
+
device_model: payload?.device_model,
|
|
390
|
+
os_version: payload?.os_version,
|
|
391
|
+
click_id: payload?.click_id
|
|
392
|
+
};
|
|
315
393
|
};
|
|
394
|
+
exports.formatPayload = formatPayload;
|
|
316
395
|
//# sourceMappingURL=snap-capi-properties.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snap-capi-properties.js","sourceRoot":"","sources":["../../../src/destinations/snap-conversions-api/snap-capi-properties.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"snap-capi-properties.js","sourceRoot":"","sources":["../../../src/destinations/snap-conversions-api/snap-capi-properties.ts"],"names":[],"mappings":";;;AAAA,wDAAwD;AAExD,mCAAmC;AAItB,QAAA,uBAAuB,GAAG,IAAI,GAAG,CAAC;IAC7C,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;CACN,CAAC,CAAA;AAEW,QAAA,QAAQ,GAAe;IAClC,KAAK,EAAE,UAAU;IACjB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;QAC3B,cAAc,EAAE,OAAO,EAAE,cAAc;QACvC,KAAK,EAAE,OAAO,EAAE,KAAK;QACrB,eAAe,EAAE,OAAO,EAAE,eAAe;QACzC,aAAa,EAAE,OAAO,EAAE,aAAa;QACrC,QAAQ,EAAE,OAAO,EAAE,QAAQ;QAC3B,cAAc,EAAE,OAAO,EAAE,cAAc;QACvC,YAAY,EAAE,OAAO,EAAE,YAAY;QACnC,UAAU,EAAE,OAAO,EAAE,UAAU;QAC/B,QAAQ,EAAE,OAAO,EAAE,QAAQ;KAC5B,CAAA;AACH,CAAC,CAAA;AA1DY,QAAA,aAAa,iBA0DzB"}
|
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.265.0-staging-
|
|
4
|
+
"version": "3.265.0-staging-aed4d3d22",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/segmentio/action-destinations",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"escape-goat": "^3",
|
|
54
54
|
"google-libphonenumber": "^3.2.31",
|
|
55
55
|
"kafkajs": "^2.2.4",
|
|
56
|
-
"liquidjs": "^
|
|
56
|
+
"liquidjs": "^10.8.4",
|
|
57
57
|
"lodash": "^4.17.21",
|
|
58
58
|
"ssh2-sftp-client": "^9.1.0"
|
|
59
59
|
},
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare enum ApiRegions {
|
|
2
|
-
US = "US \uD83C\uDDFA\uD83C\uDDF8",
|
|
3
|
-
EU = "EU \uD83C\uDDEA\uD83C\uDDFA"
|
|
4
|
-
}
|
|
5
|
-
export declare enum StrictMode {
|
|
6
|
-
ON = "1",
|
|
7
|
-
OFF = "0"
|
|
8
|
-
}
|
|
9
|
-
export declare function getConcatenatedName(firstName: unknown, lastName: unknown, name: unknown): unknown;
|
|
10
|
-
export declare function getApiServerUrl(apiRegion: string | undefined): "https://api-eu.mixpanel.com" | "https://api.mixpanel.com";
|
|
11
|
-
export declare function getBrowser(userAgent: string): string;
|
|
12
|
-
export declare function getBrowserVersion(userAgent: string): string | undefined;
|
|
13
|
-
export declare function cheapGuid(maxlen?: number): string;
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.cheapGuid = exports.getBrowserVersion = exports.getBrowser = exports.getApiServerUrl = exports.getConcatenatedName = exports.StrictMode = exports.ApiRegions = void 0;
|
|
4
|
-
var ApiRegions;
|
|
5
|
-
(function (ApiRegions) {
|
|
6
|
-
ApiRegions["US"] = "US \uD83C\uDDFA\uD83C\uDDF8";
|
|
7
|
-
ApiRegions["EU"] = "EU \uD83C\uDDEA\uD83C\uDDFA";
|
|
8
|
-
})(ApiRegions = exports.ApiRegions || (exports.ApiRegions = {}));
|
|
9
|
-
var StrictMode;
|
|
10
|
-
(function (StrictMode) {
|
|
11
|
-
StrictMode["ON"] = "1";
|
|
12
|
-
StrictMode["OFF"] = "0";
|
|
13
|
-
})(StrictMode = exports.StrictMode || (exports.StrictMode = {}));
|
|
14
|
-
function getConcatenatedName(firstName, lastName, name) {
|
|
15
|
-
return name ?? (firstName && lastName ? `${firstName} ${lastName}` : undefined);
|
|
16
|
-
}
|
|
17
|
-
exports.getConcatenatedName = getConcatenatedName;
|
|
18
|
-
function getApiServerUrl(apiRegion) {
|
|
19
|
-
if (apiRegion == ApiRegions.EU) {
|
|
20
|
-
return 'https://api-eu.mixpanel.com';
|
|
21
|
-
}
|
|
22
|
-
return 'https://api.mixpanel.com';
|
|
23
|
-
}
|
|
24
|
-
exports.getApiServerUrl = getApiServerUrl;
|
|
25
|
-
function getBrowser(userAgent) {
|
|
26
|
-
if (userAgent.includes(' OPR/')) {
|
|
27
|
-
if (userAgent.includes('Mini')) {
|
|
28
|
-
return 'Opera Mini';
|
|
29
|
-
}
|
|
30
|
-
return 'Opera';
|
|
31
|
-
}
|
|
32
|
-
else if (/(BlackBerry|PlayBook|BB10)/i.test(userAgent)) {
|
|
33
|
-
return 'BlackBerry';
|
|
34
|
-
}
|
|
35
|
-
else if (userAgent.includes('IEMobile') || userAgent.includes('WPDesktop')) {
|
|
36
|
-
return 'Internet Explorer Mobile';
|
|
37
|
-
}
|
|
38
|
-
else if (userAgent.includes('SamsungBrowser/')) {
|
|
39
|
-
return 'Samsung Internet';
|
|
40
|
-
}
|
|
41
|
-
else if (userAgent.includes('Edge') || userAgent.includes('Edg/')) {
|
|
42
|
-
return 'Microsoft Edge';
|
|
43
|
-
}
|
|
44
|
-
else if (userAgent.includes('FBIOS')) {
|
|
45
|
-
return 'Facebook Mobile';
|
|
46
|
-
}
|
|
47
|
-
else if (userAgent.includes('Chrome')) {
|
|
48
|
-
return 'Chrome';
|
|
49
|
-
}
|
|
50
|
-
else if (userAgent.includes('CriOS')) {
|
|
51
|
-
return 'Chrome iOS';
|
|
52
|
-
}
|
|
53
|
-
else if (userAgent.includes('UCWEB') || userAgent.includes('UCBrowser')) {
|
|
54
|
-
return 'UC Browser';
|
|
55
|
-
}
|
|
56
|
-
else if (userAgent.includes('FxiOS')) {
|
|
57
|
-
return 'Firefox iOS';
|
|
58
|
-
}
|
|
59
|
-
else if (userAgent.includes('Safari')) {
|
|
60
|
-
return 'Safari';
|
|
61
|
-
}
|
|
62
|
-
else if (userAgent.includes('Android')) {
|
|
63
|
-
return 'Android Mobile';
|
|
64
|
-
}
|
|
65
|
-
else if (userAgent.includes('Konqueror')) {
|
|
66
|
-
return 'Konqueror';
|
|
67
|
-
}
|
|
68
|
-
else if (userAgent.includes('Firefox')) {
|
|
69
|
-
return 'Firefox';
|
|
70
|
-
}
|
|
71
|
-
else if (userAgent.includes('MSIE') || userAgent.includes('Trident/')) {
|
|
72
|
-
return 'Internet Explorer';
|
|
73
|
-
}
|
|
74
|
-
else if (userAgent.includes('Gecko')) {
|
|
75
|
-
return 'Mozilla';
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
78
|
-
return '';
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
exports.getBrowser = getBrowser;
|
|
82
|
-
function getBrowserVersion(userAgent) {
|
|
83
|
-
const browser = getBrowser(userAgent);
|
|
84
|
-
const versionRegexs = {
|
|
85
|
-
'Internet Explorer Mobile': /rv:(\d+(\.\d+)?)/,
|
|
86
|
-
'Microsoft Edge': /Edge?\/(\d+(\.\d+)?)/,
|
|
87
|
-
Chrome: /Chrome\/(\d+(\.\d+)?)/,
|
|
88
|
-
'Chrome iOS': /CriOS\/(\d+(\.\d+)?)/,
|
|
89
|
-
'UC Browser': /(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,
|
|
90
|
-
Safari: /Version\/(\d+(\.\d+)?)/,
|
|
91
|
-
'Mobile Safari': /Version\/(\d+(\.\d+)?)/,
|
|
92
|
-
Opera: /(Opera|OPR)\/(\d+(\.\d+)?)/,
|
|
93
|
-
Firefox: /Firefox\/(\d+(\.\d+)?)/,
|
|
94
|
-
'Firefox iOS': /FxiOS\/(\d+(\.\d+)?)/,
|
|
95
|
-
Konqueror: /Konqueror:(\d+(\.\d+)?)/,
|
|
96
|
-
BlackBerry: /BlackBerry (\d+(\.\d+)?)/,
|
|
97
|
-
'Android Mobile': /android\s(\d+(\.\d+)?)/,
|
|
98
|
-
'Samsung Internet': /SamsungBrowser\/(\d+(\.\d+)?)/,
|
|
99
|
-
'Internet Explorer': /(rv:|MSIE )(\d+(\.\d+)?)/,
|
|
100
|
-
Mozilla: /rv:(\d+(\.\d+)?)/
|
|
101
|
-
};
|
|
102
|
-
const regex = versionRegexs[browser];
|
|
103
|
-
if (!regex)
|
|
104
|
-
return regex;
|
|
105
|
-
const matches = regex.exec(userAgent);
|
|
106
|
-
if (!matches) {
|
|
107
|
-
return undefined;
|
|
108
|
-
}
|
|
109
|
-
return matches[matches.length - 2];
|
|
110
|
-
}
|
|
111
|
-
exports.getBrowserVersion = getBrowserVersion;
|
|
112
|
-
function cheapGuid(maxlen) {
|
|
113
|
-
const guid = Math.random().toString(36).substring(2, 10) + Math.random().toString(36).substring(2, 10);
|
|
114
|
-
return maxlen ? guid.substring(0, maxlen) : guid;
|
|
115
|
-
}
|
|
116
|
-
exports.cheapGuid = cheapGuid;
|
|
117
|
-
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/destinations/mixpanel/utils.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,gDAAc,CAAA;IACd,gDAAc,CAAA;AAChB,CAAC,EAHW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAGrB;AAED,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,sBAAQ,CAAA;IACR,uBAAS,CAAA;AACX,CAAC,EAHW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAGrB;AAED,SAAgB,mBAAmB,CAAC,SAAkB,EAAE,QAAiB,EAAE,IAAa;IACtF,OAAO,IAAI,IAAI,CAAC,SAAS,IAAI,QAAQ,CAAC,CAAC,CAAC,GAAG,SAAS,IAAI,QAAQ,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;AACjF,CAAC;AAFD,kDAEC;AAED,SAAgB,eAAe,CAAC,SAA6B;IAC3D,IAAI,SAAS,IAAI,UAAU,CAAC,EAAE,EAAE;QAC9B,OAAO,6BAA6B,CAAA;KACrC;IACD,OAAO,0BAA0B,CAAA;AACnC,CAAC;AALD,0CAKC;AAED,SAAgB,UAAU,CAAC,SAAiB;IAC1C,IAAI,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE;QAC/B,IAAI,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;YAC9B,OAAO,YAAY,CAAA;SACpB;QACD,OAAO,OAAO,CAAA;KACf;SAAM,IAAI,6BAA6B,CAAC,IAA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C,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,EAAE,CAAC,CAAA;IACtG,OAAO,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;AAClD,CAAC;AAHD,8BAGC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export interface Payload {
|
|
2
|
-
profileListName: string;
|
|
3
|
-
profileExtensionTable: string;
|
|
4
|
-
userData: {
|
|
5
|
-
[k: string]: unknown;
|
|
6
|
-
};
|
|
7
|
-
mapTemplateName?: string;
|
|
8
|
-
insertOnNoMatch?: boolean;
|
|
9
|
-
matchColumnName1?: string;
|
|
10
|
-
matchColumnName2?: string;
|
|
11
|
-
updateOnMatch: string;
|
|
12
|
-
enable_batching?: boolean;
|
|
13
|
-
batch_size?: number;
|
|
14
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/responsys/asyncMergePetRecords/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const rsp_properties_1 = require("../rsp-properties");
|
|
4
|
-
const rsp_operations_1 = require("../rsp-operations");
|
|
5
|
-
const action = {
|
|
6
|
-
title: 'Async Merge PET Records',
|
|
7
|
-
description: '',
|
|
8
|
-
defaultSubscription: 'type = "identify"',
|
|
9
|
-
fields: {
|
|
10
|
-
profileListName: {
|
|
11
|
-
label: 'List Name',
|
|
12
|
-
description: "Name of the profile extension table's parent profile list.",
|
|
13
|
-
type: 'string',
|
|
14
|
-
required: true
|
|
15
|
-
},
|
|
16
|
-
profileExtensionTable: {
|
|
17
|
-
label: 'Pet Name',
|
|
18
|
-
description: 'Name of the profile extension table.',
|
|
19
|
-
type: 'string',
|
|
20
|
-
required: true
|
|
21
|
-
},
|
|
22
|
-
userData: rsp_properties_1.userData,
|
|
23
|
-
mapTemplateName: {
|
|
24
|
-
label: 'Map Template Name',
|
|
25
|
-
description: 'The Map Template in Responsys that can be used to map Field Names of the Profile List to Column Names.',
|
|
26
|
-
type: 'string',
|
|
27
|
-
default: ''
|
|
28
|
-
},
|
|
29
|
-
insertOnNoMatch: {
|
|
30
|
-
label: 'Insert On No Match',
|
|
31
|
-
description: 'Indicates what should be done for records where a match is not found.',
|
|
32
|
-
type: 'boolean',
|
|
33
|
-
default: true
|
|
34
|
-
},
|
|
35
|
-
matchColumnName1: {
|
|
36
|
-
label: 'First Column Match',
|
|
37
|
-
description: 'First match column for determining whether an insert or update should occur.',
|
|
38
|
-
type: 'string',
|
|
39
|
-
choices: [
|
|
40
|
-
{ label: 'RIID_', value: 'RIID_' },
|
|
41
|
-
{ label: 'CUSTOMER_ID_', value: 'CUSTOMER_ID_' },
|
|
42
|
-
{ label: 'EMAIL_ADDRESS_', value: 'EMAIL_ADDRESS_' },
|
|
43
|
-
{ label: 'MOBILE_NUMBER_', value: 'MOBILE_NUMBER_' },
|
|
44
|
-
{ label: 'EMAIL_MD5_HASH_', value: 'EMAIL_MD5_HASH_' },
|
|
45
|
-
{ label: 'EMAIL_SHA256_HASH_', value: 'EMAIL_SHA256_HASH_' }
|
|
46
|
-
]
|
|
47
|
-
},
|
|
48
|
-
matchColumnName2: {
|
|
49
|
-
label: 'Second Column Match',
|
|
50
|
-
description: 'Second match column for determining whether an insert or update should occur.',
|
|
51
|
-
type: 'string',
|
|
52
|
-
choices: [
|
|
53
|
-
{ label: 'RIID_', value: 'RIID_' },
|
|
54
|
-
{ label: 'CUSTOMER_ID_', value: 'CUSTOMER_ID_' },
|
|
55
|
-
{ label: 'EMAIL_ADDRESS_', value: 'EMAIL_ADDRESS_' },
|
|
56
|
-
{ label: 'MOBILE_NUMBER_', value: 'MOBILE_NUMBER_' },
|
|
57
|
-
{ label: 'EMAIL_MD5_HASH_', value: 'EMAIL_MD5_HASH_' },
|
|
58
|
-
{ label: 'EMAIL_SHA256_HASH_', value: 'EMAIL_SHA256_HASH_' }
|
|
59
|
-
]
|
|
60
|
-
},
|
|
61
|
-
updateOnMatch: {
|
|
62
|
-
label: 'Update On Match',
|
|
63
|
-
description: 'Controls how the existing record should be updated.',
|
|
64
|
-
type: 'string',
|
|
65
|
-
required: true,
|
|
66
|
-
choices: [
|
|
67
|
-
{ label: 'Replace All', value: 'REPLACE_ALL' },
|
|
68
|
-
{ label: 'No Update', value: 'NO_UPDATE' }
|
|
69
|
-
]
|
|
70
|
-
},
|
|
71
|
-
enable_batching: rsp_properties_1.enable_batching,
|
|
72
|
-
batch_size: rsp_properties_1.batch_size
|
|
73
|
-
},
|
|
74
|
-
perform: async (request, { settings, payload }) => {
|
|
75
|
-
if (payload && payload.profileListName) {
|
|
76
|
-
const { profileListName, profileExtensionTable, insertOnNoMatch, matchColumnName1, matchColumnName2, updateOnMatch, userData, mapTemplateName } = payload;
|
|
77
|
-
const baseUrl = (settings.baseUrl?.startsWith('https://') ? settings.baseUrl : `https://${settings.baseUrl}`)?.replace(/\/$/, '');
|
|
78
|
-
const endpoint = `${baseUrl}/rest/asyncApi/v1.3/lists/${profileListName}/listExtensions/${profileExtensionTable}/members`;
|
|
79
|
-
const recordData = rsp_operations_1.buildRecordData(userData, mapTemplateName ?? '');
|
|
80
|
-
const requestBody = {
|
|
81
|
-
recordData: recordData,
|
|
82
|
-
insertOnNoMatch: !!insertOnNoMatch,
|
|
83
|
-
updateOnMatch: updateOnMatch || '',
|
|
84
|
-
matchColumnName1: matchColumnName1?.replace(/_+$/, '') || '',
|
|
85
|
-
matchColumnName2: matchColumnName2?.replace(/_+$/, '') || ''
|
|
86
|
-
};
|
|
87
|
-
return request(endpoint, {
|
|
88
|
-
method: 'POST',
|
|
89
|
-
body: JSON.stringify(requestBody)
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
performBatch: async (request, { settings, payload }) => {
|
|
94
|
-
const { profileListName, profileExtensionTable, insertOnNoMatch, matchColumnName1, matchColumnName2, updateOnMatch, mapTemplateName } = payload[0];
|
|
95
|
-
const payloadData = payload.map((obj) => obj.userData);
|
|
96
|
-
const recordData = rsp_operations_1.buildRecordData(payloadData, mapTemplateName ?? '');
|
|
97
|
-
const requestBody = {
|
|
98
|
-
recordData: recordData,
|
|
99
|
-
insertOnNoMatch: !!insertOnNoMatch,
|
|
100
|
-
updateOnMatch: updateOnMatch || '',
|
|
101
|
-
matchColumnName1: matchColumnName1?.replace(/_+$/, '') || '',
|
|
102
|
-
matchColumnName2: matchColumnName2?.replace(/_+$/, '') || ''
|
|
103
|
-
};
|
|
104
|
-
const baseUrl = (settings.baseUrl?.startsWith('https://') ? settings.baseUrl : `https://${settings.baseUrl}`)?.replace(/\/$/, '');
|
|
105
|
-
const endpoint = `${baseUrl}/rest/asyncApi/v1.3/lists/${profileListName}/listExtensions/${profileExtensionTable}/members`;
|
|
106
|
-
return await request(endpoint, {
|
|
107
|
-
method: 'POST',
|
|
108
|
-
body: JSON.stringify(requestBody)
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
|
-
exports.default = action;
|
|
113
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/responsys/asyncMergePetRecords/index.ts"],"names":[],"mappings":";;AAGA,sDAAyE;AAEzE,sDAAmD;AAEnD,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,yBAAyB;IAChC,WAAW,EAAE,EAAE;IACf,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE;QACN,eAAe,EAAE;YACf,KAAK,EAAE,WAAW;YAClB,WAAW,EAA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,EAAE,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,WAAW,QAAQ,CAAC,OAAO,EAAE,CAC5F,EAAE,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAA;QACrB,MAAM,QAAQ,GAAG,GAAG,OAAO,6BAA6B,eAAe,mBAAmB,qBAAqB,UAAU,CAAA;QACzH,OAAO,MAAM,OAAO,CAAC,QAAQ,EAAE;YAC7B,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;SAClC,CAAC,CAAA;IAkEJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export interface Payload {
|
|
2
|
-
profileListName: string;
|
|
3
|
-
userData: {
|
|
4
|
-
[k: string]: unknown;
|
|
5
|
-
};
|
|
6
|
-
mapTemplateName?: string;
|
|
7
|
-
defaultPermissionStatus?: string;
|
|
8
|
-
htmlValue?: string;
|
|
9
|
-
insertOnNoMatch?: boolean;
|
|
10
|
-
matchColumnName1?: string;
|
|
11
|
-
matchColumnName2?: string;
|
|
12
|
-
matchOperator?: string;
|
|
13
|
-
optinValue?: string;
|
|
14
|
-
optoutValue?: string;
|
|
15
|
-
rejectRecordIfChannelEmpty?: string;
|
|
16
|
-
textValue?: string;
|
|
17
|
-
updateOnMatch: string;
|
|
18
|
-
enable_batching?: boolean;
|
|
19
|
-
batch_size?: number;
|
|
20
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/responsys/asyncMergeProfileListMembers/generated-types.ts"],"names":[],"mappings":""}
|