@segment/action-destinations 3.135.0 → 3.135.1-stratconn-1993-main.2
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/pinterest-conversions/constants.d.ts +13 -0
- package/dist/destinations/pinterest-conversions/constants.js +17 -0
- package/dist/destinations/pinterest-conversions/constants.js.map +1 -0
- package/dist/destinations/pinterest-conversions/index.d.ts +1 -1
- package/dist/destinations/pinterest-conversions/index.js +74 -1
- package/dist/destinations/pinterest-conversions/index.js.map +1 -1
- package/dist/destinations/pinterest-conversions/pinterest-capi-custom-data.d.ts +2 -0
- package/dist/destinations/pinterest-conversions/pinterest-capi-custom-data.js +81 -0
- package/dist/destinations/pinterest-conversions/pinterest-capi-custom-data.js.map +1 -0
- package/dist/destinations/pinterest-conversions/pinterset-capi-user-data.d.ts +7 -0
- package/dist/destinations/pinterest-conversions/pinterset-capi-user-data.js +188 -0
- package/dist/destinations/pinterest-conversions/pinterset-capi-user-data.js.map +1 -0
- package/dist/destinations/pinterest-conversions/reportConversionEvent/generated-types.d.ts +45 -0
- package/dist/destinations/pinterest-conversions/reportConversionEvent/index.js +207 -2
- package/dist/destinations/pinterest-conversions/reportConversionEvent/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const API_VERSION = "v5";
|
|
2
|
+
export declare const EVENT_NAME: {
|
|
3
|
+
ADD_TO_CART: string;
|
|
4
|
+
CHECKOUT: string;
|
|
5
|
+
CUSTOM: string;
|
|
6
|
+
LEAD: string;
|
|
7
|
+
PAGE_VISIT: string;
|
|
8
|
+
SEARCH: string;
|
|
9
|
+
SIGNUP: string;
|
|
10
|
+
VIEW_CATEGORY: string;
|
|
11
|
+
WATCH_VIDEO: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const ACTION_SOURCE: string[];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ACTION_SOURCE = exports.EVENT_NAME = exports.API_VERSION = void 0;
|
|
4
|
+
exports.API_VERSION = 'v5';
|
|
5
|
+
exports.EVENT_NAME = {
|
|
6
|
+
ADD_TO_CART: 'add_to_cart',
|
|
7
|
+
CHECKOUT: 'checkout',
|
|
8
|
+
CUSTOM: 'custom',
|
|
9
|
+
LEAD: 'lead',
|
|
10
|
+
PAGE_VISIT: 'page_visit',
|
|
11
|
+
SEARCH: 'search',
|
|
12
|
+
SIGNUP: 'search',
|
|
13
|
+
VIEW_CATEGORY: 'view_category',
|
|
14
|
+
WATCH_VIDEO: 'watch_video'
|
|
15
|
+
};
|
|
16
|
+
exports.ACTION_SOURCE = ['app_android', 'app_ios', 'web', 'offline'];
|
|
17
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/destinations/pinterest-conversions/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG,IAAI,CAAA;AAClB,QAAA,UAAU,GAAG;IACxB,WAAW,EAAE,aAAa;IAC1B,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,UAAU,EAAE,YAAY;IACxB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,aAAa,EAAE,eAAe;IAC9B,WAAW,EAAE,aAAa;CAC3B,CAAA;AACY,QAAA,aAAa,GAAG,CAAC,aAAa,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,CAAC,CAAA"}
|
|
@@ -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;
|
|
@@ -3,6 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const actions_core_1 = require("@segment/actions-core");
|
|
7
|
+
const constants_1 = require("./constants");
|
|
6
8
|
const reportConversionEvent_1 = __importDefault(require("./reportConversionEvent"));
|
|
7
9
|
const destination = {
|
|
8
10
|
name: 'Pinterest Conversions API',
|
|
@@ -24,9 +26,80 @@ const destination = {
|
|
|
24
26
|
required: true
|
|
25
27
|
}
|
|
26
28
|
},
|
|
27
|
-
testAuthentication: (
|
|
29
|
+
testAuthentication: (request, { settings }) => {
|
|
30
|
+
return request(`https://api.pinterest.com/${constants_1.API_VERSION}/ad_accounts/${settings.ad_account_id}/events?test=true`, {
|
|
31
|
+
method: 'POST',
|
|
32
|
+
json: {
|
|
33
|
+
data: [
|
|
34
|
+
{
|
|
35
|
+
event_name: 'checkout',
|
|
36
|
+
action_source: 'app_ios',
|
|
37
|
+
event_time: 1678203524,
|
|
38
|
+
event_id: 'test_eventId',
|
|
39
|
+
user_data: {
|
|
40
|
+
em: ['411e44ce1261728ffd2c0686e44e3fffe413c0e2c5adc498bc7da883d476b9c8']
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
});
|
|
28
46
|
}
|
|
29
47
|
},
|
|
48
|
+
extendRequest({ settings }) {
|
|
49
|
+
return {
|
|
50
|
+
headers: { Authorization: `Bearer ${settings.conversion_token}` }
|
|
51
|
+
};
|
|
52
|
+
},
|
|
53
|
+
presets: [
|
|
54
|
+
{
|
|
55
|
+
name: 'Add to Cart',
|
|
56
|
+
subscribe: 'type = "track" AND name = "Product Added"',
|
|
57
|
+
partnerAction: 'reportConversionEvent',
|
|
58
|
+
mapping: { ...actions_core_1.defaultValues(reportConversionEvent_1.default.fields), event_name: 'add_to_cart' }
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
name: 'Checkout',
|
|
62
|
+
subscribe: 'type = "track" AND name = "Checkout"',
|
|
63
|
+
partnerAction: 'reportConversionEvent',
|
|
64
|
+
mapping: { ...actions_core_1.defaultValues(reportConversionEvent_1.default.fields), event_name: 'checkout' }
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
name: 'Lead',
|
|
68
|
+
subscribe: 'type = "track" AND name = "Generate Lead"',
|
|
69
|
+
partnerAction: 'reportConversionEvent',
|
|
70
|
+
mapping: { ...actions_core_1.defaultValues(reportConversionEvent_1.default.fields), event_name: 'lead' }
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
name: 'Page Visit',
|
|
74
|
+
subscribe: 'type = "page"',
|
|
75
|
+
partnerAction: 'reportConversionEvent',
|
|
76
|
+
mapping: { ...actions_core_1.defaultValues(reportConversionEvent_1.default.fields), event_name: 'page_visit' }
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
name: 'Search',
|
|
80
|
+
subscribe: 'type = "track" AND name = "Products Searched"',
|
|
81
|
+
partnerAction: 'reportConversionEvent',
|
|
82
|
+
mapping: { ...actions_core_1.defaultValues(reportConversionEvent_1.default.fields), event_name: 'search' }
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: 'Sign Up',
|
|
86
|
+
subscribe: 'type = "track" AND name = "Signed Up',
|
|
87
|
+
partnerAction: 'reportConversionEvent',
|
|
88
|
+
mapping: { ...actions_core_1.defaultValues(reportConversionEvent_1.default.fields), event_name: 'sign_up' }
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
name: 'View Category',
|
|
92
|
+
subscribe: 'type = "page" AND name = "Product Category Viewed"',
|
|
93
|
+
partnerAction: 'reportConversionEvent',
|
|
94
|
+
mapping: { ...actions_core_1.defaultValues(reportConversionEvent_1.default.fields), event_name: 'view_category' }
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
name: 'Watch Video',
|
|
98
|
+
subscribe: 'type = "track" AND name = "Product Video Watched"',
|
|
99
|
+
partnerAction: 'reportConversionEvent',
|
|
100
|
+
mapping: { ...actions_core_1.defaultValues(reportConversionEvent_1.default.fields), event_name: 'watch_video' }
|
|
101
|
+
}
|
|
102
|
+
],
|
|
30
103
|
actions: {
|
|
31
104
|
reportConversionEvent: reportConversionEvent_1.default
|
|
32
105
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/pinterest-conversions/index.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/pinterest-conversions/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAA4E;AAC5E,2CAAyC;AAEzC,oFAA2D;AAE3D,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,2BAA2B;IACjC,IAAI,EAAE,mCAAmC;IACzC,IAAI,EAAE,OAAO;IAEb,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,aAAa,EAAE;gBACb,KAAK,EAAE,eAAe;gBACtB,WAAW,EACT,gOAAgO;gBAClO,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;YACD,gBAAgB,EAAE;gBAChB,KAAK,EAAE,kBAAkB;gBACzB,WAAW,EACT,8QAA8Q;gBAChR,IAAI,EAAE,UAAU;gBAChB,QAAQ,EAAE,IAAI;aACf;SACF;QACD,kBAAkB,EAAE,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;YAE5C,OAAO,OAAO,CACZ,6BAA6B,uBAAW,gBAAgB,QAAQ,CAAC,aAAa,mBAAmB,EACjG;gBACE,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE;wBACJ;4BACE,UAAU,EAAE,UAAU;4BACtB,aAAa,EAAE,SAAS;4BACxB,UAAU,EAAE,UAAU;4BACtB,QAAQ,EAAE,cAAc;4BACxB,SAAS,EAAE;gCACT,EAAE,EAAE,CA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Aa,EAAE,uBAAuB;YACtC,OAAO,EAAE,EAAE,GAAG,4BAAa,CAAC,+BAAqB,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,SAAS,EAAE;SACnF;QACD;YACE,IAAI,EAAE,eAAe;YACrB,SAAS,EAAE,oDAAoD;YAC/D,aAAa,EAAE,uBAAuB;YACtC,OAAO,EAAE,EAAE,GAAG,4BAAa,CAAC,+BAAqB,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,eAAe,EAAE;SACzF;QACD;YACE,IAAI,EAAE,aAAa;YACnB,SAAS,EAAE,mDAAmD;YAC9D,aAAa,EAAE,uBAAuB;YACtC,OAAO,EAAE,EAAE,GAAG,4BAAa,CAAC,+BAAqB,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,aAAa,EAAE;SACvF;KACF;IACD,OAAO,EAAE;QACP,qBAAqB,EAArB,+BAAqB;KACtB;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.custom_data_field = void 0;
|
|
4
|
+
exports.custom_data_field = {
|
|
5
|
+
label: 'Custom Data',
|
|
6
|
+
description: 'Object containing customer information data.',
|
|
7
|
+
type: 'object',
|
|
8
|
+
properties: {
|
|
9
|
+
currency: {
|
|
10
|
+
label: 'Currency',
|
|
11
|
+
description: 'ISO-4217 currency code. If not provided, it will default to the currency set for the ad account.',
|
|
12
|
+
type: 'string',
|
|
13
|
+
default: {
|
|
14
|
+
'@path': '$.properties.currency'
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
value: {
|
|
18
|
+
label: 'Value',
|
|
19
|
+
description: 'Total value of the event. E.g. if there are multiple items in a checkout event, value should be the total price of all items',
|
|
20
|
+
type: 'number',
|
|
21
|
+
default: {
|
|
22
|
+
'@if': {
|
|
23
|
+
exists: { '@path': '$.properties.price' },
|
|
24
|
+
then: { '@path': '$.properties.price' },
|
|
25
|
+
else: { '@path': '$.properties.value' }
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
content_ids: {
|
|
30
|
+
label: 'Content IDs',
|
|
31
|
+
description: 'Product IDs as an array of strings',
|
|
32
|
+
type: 'string',
|
|
33
|
+
multiple: true
|
|
34
|
+
},
|
|
35
|
+
contents: {
|
|
36
|
+
label: 'Gender',
|
|
37
|
+
description: 'Gender in lowercase. Either f or m.',
|
|
38
|
+
type: 'object',
|
|
39
|
+
multiple: true,
|
|
40
|
+
properties: {
|
|
41
|
+
item_price: {
|
|
42
|
+
label: 'Price',
|
|
43
|
+
type: 'number',
|
|
44
|
+
description: 'The price of the Item'
|
|
45
|
+
},
|
|
46
|
+
quantity: {
|
|
47
|
+
label: 'quantity',
|
|
48
|
+
type: 'integer',
|
|
49
|
+
description: 'The number of items purchased'
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
num_items: {
|
|
54
|
+
label: 'Number of Items',
|
|
55
|
+
description: 'Total number of products in the event. ',
|
|
56
|
+
type: 'string'
|
|
57
|
+
},
|
|
58
|
+
order_id: {
|
|
59
|
+
label: 'Order ID',
|
|
60
|
+
description: 'Order ID',
|
|
61
|
+
type: 'string',
|
|
62
|
+
default: {
|
|
63
|
+
'@path': '$.properties.order_id'
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
search_string: {
|
|
67
|
+
label: 'Search string',
|
|
68
|
+
description: 'Search string related to the conversion event.',
|
|
69
|
+
type: 'string',
|
|
70
|
+
default: {
|
|
71
|
+
'@path': '$.properties.query'
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
opt_out_type: {
|
|
75
|
+
label: 'Opt Out Type',
|
|
76
|
+
description: 'opt_out_type is the field where we accept opt outs for your users’ privacy preference. It can handle multiple values with commas separated.',
|
|
77
|
+
type: 'string'
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
//# sourceMappingURL=pinterest-capi-custom-data.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pinterest-capi-custom-data.js","sourceRoot":"","sources":["../../../src/destinations/pinterest-conversions/pinterest-capi-custom-data.ts"],"names":[],"mappings":";;;AAKa,QAAA,iBAAiB,GAAe;IAC3C,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,8CAA8C;IAC3D,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,QAAQ,EAAE;YACR,KAAK,EAAE,UAAU;YACjB,WAAW,EAAE,kGAAkG;YAC/G,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,uBAAuB;aACjC;SACF;QACD,KAAK,EAAE;YACL,KAAK,EAAE,OAAO;YACd,WAAW,EACT,8HAA8H;YAChI,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,KAAK,EAAE;oBACL,MAAM,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE;oBACzC,IAAI,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE;oBACvC,IAAI,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE;iBACxC;aACF;SACF;QACD,WAAW,EAAE;YACX,KAAK,EAAE,aAAa;YACpB,WAAW,EAAE,oCAAoC;YACjD,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACf;QACD,QAAQ,EAAE;YACR,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,UAAU,EAAE;gBACV,UAAU,EAAE;oBACV,KAAK,EAAE,OAAO;oBACd,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,uBAAuB;iBACrC;gBACD,QAAQ,EAAE;oBACR,KAAK,EAAE,UAAU;oBACjB,IAAI,EAAE,SAAS;oBACf,WAAW,EAAE,+BAA+B;iBAC7C;aACF;SACF;QACD,SAAS,EAAE;YACT,KAAK,EAAE,iBAAiB;YACxB,WAAW,EAAE,yCAAyC;YACtD,IAAI,EAAE,QAAQ;SACf;QACD,QAAQ,EAAE;YACR,KAAK,EAAE,UAAU;YACjB,WAAW,EAAE,UAAU;YACvB,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,uBAAuB;aACjC;SACF;QACD,aAAa,EAAE;YACb,KAAK,EAAE,eAAe;YACtB,WAAW,EAAE,gDAAgD;YAC7D,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,oBAAoB;aAC9B;SACF;QACD,YAAY,EAAE;YACZ,KAAK,EAAE,cAAc;YACrB,WAAW,EACT,8IAA8I;YAChJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { InputField } from '@segment/actions-core/src/destination-kit/types';
|
|
2
|
+
import { Payload } from './reportConversionEvent/generated-types';
|
|
3
|
+
export declare const user_data_field: InputField;
|
|
4
|
+
declare type UserData = Pick<Payload, 'user_data'>;
|
|
5
|
+
export declare const normalisedAndHashed: (payload: UserData) => void;
|
|
6
|
+
export declare const hash_user_data: (payload: UserData) => Object;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.hash_user_data = exports.normalisedAndHashed = exports.user_data_field = void 0;
|
|
7
|
+
const crypto_1 = require("crypto");
|
|
8
|
+
const isEmpty_1 = __importDefault(require("lodash/isEmpty"));
|
|
9
|
+
exports.user_data_field = {
|
|
10
|
+
label: 'User Data',
|
|
11
|
+
description: 'Object containing customer information data. Note, It is required at least one of 1) em, 2) hashed_maids or 3) pair client_ip_address + client_user_agent..',
|
|
12
|
+
type: 'object',
|
|
13
|
+
required: true,
|
|
14
|
+
properties: {
|
|
15
|
+
email: {
|
|
16
|
+
label: 'Email',
|
|
17
|
+
description: 'An email address in lowercase.',
|
|
18
|
+
type: 'string',
|
|
19
|
+
multiple: true
|
|
20
|
+
},
|
|
21
|
+
hashed_maids: {
|
|
22
|
+
label: 'Mobile Ad Identifier',
|
|
23
|
+
description: 'User’s Google advertising ID (GAIDs) or Apple’s identifier for advertisers (IDFAs).',
|
|
24
|
+
type: 'string',
|
|
25
|
+
multiple: true
|
|
26
|
+
},
|
|
27
|
+
client_ip_address: {
|
|
28
|
+
label: 'Client IP Address',
|
|
29
|
+
description: 'The IP address of the browser corresponding to the event.',
|
|
30
|
+
type: 'string',
|
|
31
|
+
default: {
|
|
32
|
+
'@path': '$.context.ip'
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
client_user_agent: {
|
|
36
|
+
label: 'Client User Agent',
|
|
37
|
+
description: 'User agent of the device the API call originated from.',
|
|
38
|
+
type: 'string',
|
|
39
|
+
default: {
|
|
40
|
+
'@path': '$.context.userAgent'
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
phone: {
|
|
44
|
+
label: 'Phone Number',
|
|
45
|
+
description: 'A phone number. Include only digits with country code, area code, and number. Remove symbols, letters, and any leading zeros. In addition, always include the country code, even if all of the data is from the same country, as the country code is used for matching.',
|
|
46
|
+
type: 'string',
|
|
47
|
+
multiple: true
|
|
48
|
+
},
|
|
49
|
+
first_name: {
|
|
50
|
+
label: 'First Name',
|
|
51
|
+
description: 'A first name in lowercase.',
|
|
52
|
+
type: 'string',
|
|
53
|
+
multiple: true
|
|
54
|
+
},
|
|
55
|
+
last_name: {
|
|
56
|
+
label: 'Last Name',
|
|
57
|
+
description: 'A last name in lowercase.',
|
|
58
|
+
type: 'string',
|
|
59
|
+
multiple: true
|
|
60
|
+
},
|
|
61
|
+
external_id: {
|
|
62
|
+
label: 'External ID',
|
|
63
|
+
description: 'Any unique ID from the advertiser, such as loyalty membership IDs, user IDs, and external cookie IDs. You can send one or more external IDs for a given event.',
|
|
64
|
+
type: 'string',
|
|
65
|
+
multiple: true
|
|
66
|
+
},
|
|
67
|
+
gender: {
|
|
68
|
+
label: 'Gender',
|
|
69
|
+
description: 'Gender in lowercase. Either f or m.',
|
|
70
|
+
type: 'string',
|
|
71
|
+
multiple: true
|
|
72
|
+
},
|
|
73
|
+
date_of_birth: {
|
|
74
|
+
label: 'Date of Birth',
|
|
75
|
+
description: 'A date of birth given as year, month, and day. Example: 19971226 for December 26, 1997.',
|
|
76
|
+
type: 'string',
|
|
77
|
+
multiple: true
|
|
78
|
+
},
|
|
79
|
+
city: {
|
|
80
|
+
label: 'City',
|
|
81
|
+
description: 'A city in lowercase without spaces or punctuation. Example: menlopark.',
|
|
82
|
+
type: 'string',
|
|
83
|
+
multiple: true
|
|
84
|
+
},
|
|
85
|
+
state: {
|
|
86
|
+
label: 'State',
|
|
87
|
+
description: 'A two-letter state code in lowercase. Example: ca.',
|
|
88
|
+
type: 'string',
|
|
89
|
+
multiple: true
|
|
90
|
+
},
|
|
91
|
+
zip: {
|
|
92
|
+
label: 'Zip Code',
|
|
93
|
+
description: 'A five-digit zip code for United States. For other locations, follow each country`s standards.',
|
|
94
|
+
type: 'string',
|
|
95
|
+
multiple: true
|
|
96
|
+
},
|
|
97
|
+
country: {
|
|
98
|
+
label: 'Country',
|
|
99
|
+
description: 'A two-letter country code in lowercase.',
|
|
100
|
+
type: 'string',
|
|
101
|
+
multiple: true
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
const hash = (value) => {
|
|
106
|
+
if (value === undefined)
|
|
107
|
+
return;
|
|
108
|
+
const hash = crypto_1.createHash('sha256');
|
|
109
|
+
hash.update(value);
|
|
110
|
+
return hash.digest('hex');
|
|
111
|
+
};
|
|
112
|
+
const normalisedAndHashed = (payload) => {
|
|
113
|
+
if (!isEmpty_1.default(payload.user_data?.email)) {
|
|
114
|
+
payload.user_data.email = payload.user_data?.email?.map((el) => hash(el.replace(/\s/g, '').toLowerCase()));
|
|
115
|
+
}
|
|
116
|
+
if (!isEmpty_1.default(payload.user_data?.phone)) {
|
|
117
|
+
payload.user_data.phone = payload.user_data.phone?.map((el) => hash(el.replace(/\D/g, '').toLowerCase()));
|
|
118
|
+
}
|
|
119
|
+
if (!isEmpty_1.default(payload.user_data?.gender)) {
|
|
120
|
+
payload.user_data.gender = payload.user_data.gender?.map((el) => {
|
|
121
|
+
el = el.replace(/\s/g, '').toLowerCase();
|
|
122
|
+
switch (el) {
|
|
123
|
+
case 'male':
|
|
124
|
+
el = 'm';
|
|
125
|
+
break;
|
|
126
|
+
case 'female':
|
|
127
|
+
el = 'f';
|
|
128
|
+
break;
|
|
129
|
+
case 'non-binary':
|
|
130
|
+
el = 'n';
|
|
131
|
+
break;
|
|
132
|
+
}
|
|
133
|
+
return hash(el);
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
if (!isEmpty_1.default(payload.user_data?.last_name)) {
|
|
137
|
+
payload.user_data.last_name = payload.user_data.last_name?.map((el) => hash(el.replace(/\s/g, '').toLowerCase()));
|
|
138
|
+
}
|
|
139
|
+
if (!isEmpty_1.default(payload.user_data?.first_name)) {
|
|
140
|
+
payload.user_data.first_name = payload.user_data.first_name?.map((el) => hash(el.replace(/\s/g, '').toLowerCase()));
|
|
141
|
+
}
|
|
142
|
+
if (!isEmpty_1.default(payload.user_data?.city)) {
|
|
143
|
+
payload.user_data.city = payload.user_data.city?.map((el) => hash(el.replace(/\s/g, '').toLowerCase()));
|
|
144
|
+
}
|
|
145
|
+
if (!isEmpty_1.default(payload.user_data?.state)) {
|
|
146
|
+
payload.user_data.state = payload.user_data.state?.map((el) => {
|
|
147
|
+
el = el.replace(/\s/g, '').toLowerCase();
|
|
148
|
+
return hash(el);
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
if (!isEmpty_1.default(payload.user_data?.zip)) {
|
|
152
|
+
payload.user_data.zip = payload.user_data.zip?.map((el) => hash(el.replace(/\s/g, '').toLowerCase()));
|
|
153
|
+
}
|
|
154
|
+
if (!isEmpty_1.default(payload.user_data?.country)) {
|
|
155
|
+
payload.user_data.country = payload.user_data.country?.map((el) => {
|
|
156
|
+
el = el.replace(/\s/g, '').toLowerCase();
|
|
157
|
+
return hash(el);
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
if (!isEmpty_1.default(payload.user_data?.external_id)) {
|
|
161
|
+
payload.user_data.external_id = payload.user_data.external_id?.map((el) => hash(el.replace(/\s/g, '').toLowerCase()));
|
|
162
|
+
}
|
|
163
|
+
if (!isEmpty_1.default(payload.user_data?.hashed_maids)) {
|
|
164
|
+
payload.user_data.hashed_maids = payload.user_data.hashed_maids?.map((el) => hash(el.replace(/\s/g, '').toLowerCase()));
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
exports.normalisedAndHashed = normalisedAndHashed;
|
|
168
|
+
const hash_user_data = (payload) => {
|
|
169
|
+
exports.normalisedAndHashed(payload);
|
|
170
|
+
return {
|
|
171
|
+
em: payload.user_data?.email,
|
|
172
|
+
ph: payload.user_data?.phone,
|
|
173
|
+
ge: payload.user_data?.gender,
|
|
174
|
+
db: payload.user_data?.date_of_birth,
|
|
175
|
+
ln: payload.user_data?.last_name,
|
|
176
|
+
fn: payload.user_data?.first_name,
|
|
177
|
+
ct: payload.user_data?.city,
|
|
178
|
+
st: payload.user_data?.state,
|
|
179
|
+
zp: payload.user_data?.zip,
|
|
180
|
+
country: payload.user_data?.country,
|
|
181
|
+
external_id: payload.user_data?.external_id,
|
|
182
|
+
client_ip_address: payload.user_data?.client_ip_address,
|
|
183
|
+
client_user_agent: payload.user_data?.client_user_agent,
|
|
184
|
+
hashed_maids: payload.user_data?.hashed_maids
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
exports.hash_user_data = hash_user_data;
|
|
188
|
+
//# sourceMappingURL=pinterset-capi-user-data.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pinterset-capi-user-data.js","sourceRoot":"","sources":["../../../src/destinations/pinterest-conversions/pinterset-capi-user-data.ts"],"names":[],"mappings":";;;;;;AACA,mCAAmC;AAInC,6DAAoC;AAKvB,QAAA,eAAe,GAAe;IACzC,KAAK,EAAE,WAAW;IAClB,WAAW,EACT,6JAA6J;IAC/J,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,IAAI;IACd,UAAU,EAAE;QACV,KAAK,EAAE;YACL,KAAK,EAAE,OAAO;YACd,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACf;QACD,YAAY,EAAE;YACZ,KAAK,EAAE,sBAAsB;YAC7B,WAAW,EAAE,qFAAqF;YAClG,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACf;QACD,iBAAiB,EAAE;YACjB,KAAK,EAAE,mBAAmB;YAC1B,WAAW,EAAE,2DAA2D;YACxE,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,cAAc;aACxB;SACF;QACD,iBAAiB,EAAE;YACjB,KAAK,EAAE,mBAAmB;YAC1B,WAAW,EAAE,wDAAwD;YACrE,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,qBAAqB;aAC/B;SACF;QACD,KAAK,EAAE;YACL,KAAK,EAAE,cAAc;YACrB,WAAW,EACT,yQAAyQ;YAC3Q,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACf;QACD,UAAU,EAAE;YACV,KAAK,EAAE,YAAY;YACnB,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACf;QACD,SAAS,EAAE;YACT,KAAK,EAAE,WAAW;YAClB,WAAW,EAAE,2BAA2B;YACxC,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACf;QACD,WAAW,EAAE;YACX,KAAK,EAAE,a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AE,EAAE,OAAO,CAAC,SAAS,EAAE,KAAK;QAC5B,EAAE,EAAE,OAAO,CAAC,SAAS,EAAE,KAAK;QAC5B,EAAE,EAAE,OAAO,CAAC,SAAS,EAAE,MAAM;QAC7B,EAAE,EAAE,OAAO,CAAC,SAAS,EAAE,aAAa;QACpC,EAAE,EAAE,OAAO,CAAC,SAAS,EAAE,SAAS;QAChC,EAAE,EAAE,OAAO,CAAC,SAAS,EAAE,UAAU;QACjC,EAAE,EAAE,OAAO,CAAC,SAAS,EAAE,IAAI;QAC3B,EAAE,EAAE,OAAO,CAAC,SAAS,EAAE,KAAK;QAC5B,EAAE,EAAE,OAAO,CAAC,SAAS,EAAE,GAAG;QAC1B,OAAO,EAAE,OAAO,CAAC,SAAS,EAAE,OAAO;QACnC,WAAW,EAAE,OAAO,CAAC,SAAS,EAAE,WAAW;QAC3C,iBAAiB,EAAE,OAAO,CAAC,SAAS,EAAE,iBAAiB;QACvD,iBAAiB,EAAE,OAAO,CAAC,SAAS,EAAE,iBAAiB;QACvD,YAAY,EAAE,OAAO,CAAC,SAAS,EAAE,YAAY;KAC9C,CAAA;AACH,CAAC,CAAA;AAlBY,QAAA,cAAc,kBAkB1B"}
|
|
@@ -1,2 +1,47 @@
|
|
|
1
1
|
export interface Payload {
|
|
2
|
+
event_name: string;
|
|
3
|
+
action_source: string;
|
|
4
|
+
event_time: number;
|
|
5
|
+
event_id: string;
|
|
6
|
+
event_source_url?: string;
|
|
7
|
+
opt_out?: boolean;
|
|
8
|
+
user_data: {
|
|
9
|
+
email?: string[];
|
|
10
|
+
hashed_maids?: string[];
|
|
11
|
+
client_ip_address?: string;
|
|
12
|
+
client_user_agent?: string;
|
|
13
|
+
phone?: string[];
|
|
14
|
+
first_name?: string[];
|
|
15
|
+
last_name?: string[];
|
|
16
|
+
external_id?: string[];
|
|
17
|
+
gender?: string[];
|
|
18
|
+
date_of_birth?: string[];
|
|
19
|
+
city?: string[];
|
|
20
|
+
state?: string[];
|
|
21
|
+
zip?: string[];
|
|
22
|
+
country?: string[];
|
|
23
|
+
};
|
|
24
|
+
custom_data?: {
|
|
25
|
+
currency?: string;
|
|
26
|
+
value?: number;
|
|
27
|
+
content_ids?: string[];
|
|
28
|
+
contents?: {
|
|
29
|
+
item_price?: number;
|
|
30
|
+
quantity?: number;
|
|
31
|
+
}[];
|
|
32
|
+
num_items?: string;
|
|
33
|
+
order_id?: string;
|
|
34
|
+
search_string?: string;
|
|
35
|
+
opt_out_type?: string;
|
|
36
|
+
};
|
|
37
|
+
app_id?: string;
|
|
38
|
+
app_name: string;
|
|
39
|
+
app_version?: string;
|
|
40
|
+
device_brand?: string;
|
|
41
|
+
device_carrier?: string;
|
|
42
|
+
device_model?: string;
|
|
43
|
+
device_type?: string;
|
|
44
|
+
os_version?: string;
|
|
45
|
+
wifi?: boolean;
|
|
46
|
+
language?: string;
|
|
2
47
|
}
|
|
@@ -1,11 +1,216 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const constants_1 = require("../constants");
|
|
4
|
+
const pinterest_capi_custom_data_1 = require("../pinterest-capi-custom-data");
|
|
5
|
+
const pinterset_capi_user_data_1 = require("../pinterset-capi-user-data");
|
|
3
6
|
const action = {
|
|
4
7
|
title: 'Report Conversion Event',
|
|
5
8
|
description: 'TODO',
|
|
6
|
-
fields: {
|
|
7
|
-
|
|
9
|
+
fields: {
|
|
10
|
+
event_name: {
|
|
11
|
+
label: 'Event Name',
|
|
12
|
+
description: 'The conversion event type. For custom events, you must use one of the predefined event name (custom). Please refer to the possible event types in [Pinterest API docs](https://developers.pinterest.com/docs/api/v5/#operation/events/create).',
|
|
13
|
+
type: 'string',
|
|
14
|
+
required: true,
|
|
15
|
+
choices: [
|
|
16
|
+
{ label: 'Add to Cart', value: 'add_to_cart' },
|
|
17
|
+
{ label: 'Checkout', value: 'checkout' },
|
|
18
|
+
{ label: 'Lead', value: 'lead' },
|
|
19
|
+
{ label: 'Page Visit', value: 'page_visit' },
|
|
20
|
+
{ label: 'Search', value: 'search' },
|
|
21
|
+
{ label: 'Sign Up', value: 'sign_up' },
|
|
22
|
+
{ label: 'View Category', value: 'view_category' },
|
|
23
|
+
{ label: 'Watch Video', value: 'watch_video' }
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
action_source: {
|
|
27
|
+
label: 'Action Source',
|
|
28
|
+
description: 'The source indicating where the conversion event occurred. This must be app_android, app_ios , web or offline.',
|
|
29
|
+
type: 'string',
|
|
30
|
+
required: true,
|
|
31
|
+
choices: [
|
|
32
|
+
{ label: 'App Android', value: 'app_android' },
|
|
33
|
+
{ label: 'App IOS', value: 'app_ios' },
|
|
34
|
+
{ label: 'Web', value: 'web' },
|
|
35
|
+
{ label: 'Offline', value: 'offline' }
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
event_time: {
|
|
39
|
+
label: 'Event Timestamp',
|
|
40
|
+
description: 'Device IDs can be used to add and remove only anonymous users to/from a cohort. However, users with an assigned User ID cannot use Device ID to sync to a cohort.',
|
|
41
|
+
type: 'integer',
|
|
42
|
+
required: true,
|
|
43
|
+
default: {
|
|
44
|
+
'@path': '$.timestamp'
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
event_id: {
|
|
48
|
+
label: 'Event ID',
|
|
49
|
+
description: 'A unique id string that identifies this event and can be used for deduping between events ingested via both the conversion API and Pinterest tracking.',
|
|
50
|
+
type: 'string',
|
|
51
|
+
required: true,
|
|
52
|
+
default: {
|
|
53
|
+
'@path': '$.messageId'
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
event_source_url: {
|
|
57
|
+
label: 'Event Source URL',
|
|
58
|
+
description: 'URL of the web conversion event.',
|
|
59
|
+
type: 'string',
|
|
60
|
+
default: {
|
|
61
|
+
'@path': '$.context.page.url'
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
opt_out: {
|
|
65
|
+
label: 'Opt Out',
|
|
66
|
+
description: 'When action_source is web or offline, it defines whether the user has opted out of tracking for web conversion events. While when action_source is app_android or app_ios, it defines whether the user has enabled Limit Ad Tracking on their iOS device, or opted out of Ads Personalization on their Android device.',
|
|
67
|
+
type: 'boolean',
|
|
68
|
+
default: true
|
|
69
|
+
},
|
|
70
|
+
user_data: pinterset_capi_user_data_1.user_data_field,
|
|
71
|
+
custom_data: pinterest_capi_custom_data_1.custom_data_field,
|
|
72
|
+
app_id: {
|
|
73
|
+
label: 'App ID',
|
|
74
|
+
description: 'The app store app ID.',
|
|
75
|
+
type: 'string',
|
|
76
|
+
default: {
|
|
77
|
+
'@path': 'context.app.id'
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
app_name: {
|
|
81
|
+
label: 'App Name',
|
|
82
|
+
description: 'Name of the app. ',
|
|
83
|
+
type: 'string',
|
|
84
|
+
required: true,
|
|
85
|
+
default: {
|
|
86
|
+
'@path': '$.context.app.name'
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
app_version: {
|
|
90
|
+
label: 'App Version',
|
|
91
|
+
description: 'Version of the app.',
|
|
92
|
+
type: 'string',
|
|
93
|
+
default: {
|
|
94
|
+
'@path': '$.context.app.version'
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
device_brand: {
|
|
98
|
+
label: 'Device Brand',
|
|
99
|
+
description: 'Brand of the user device.',
|
|
100
|
+
type: 'string',
|
|
101
|
+
default: {
|
|
102
|
+
'@path': '$.context.device.brand'
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
device_carrier: {
|
|
106
|
+
label: 'Device Carrier',
|
|
107
|
+
description: 'User device’s mobile carrier. ',
|
|
108
|
+
type: 'string',
|
|
109
|
+
default: {
|
|
110
|
+
'@path': 'context.device.carrier'
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
device_model: {
|
|
114
|
+
label: 'Device Model',
|
|
115
|
+
description: 'Model of the user device.',
|
|
116
|
+
type: 'string',
|
|
117
|
+
default: {
|
|
118
|
+
'@path': '$.context.device.model'
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
device_type: {
|
|
122
|
+
label: 'Device Type',
|
|
123
|
+
description: 'Type of the user device.',
|
|
124
|
+
type: 'string',
|
|
125
|
+
default: {
|
|
126
|
+
'@path': '$.context.device.type'
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
os_version: {
|
|
130
|
+
label: 'Os Version',
|
|
131
|
+
description: 'Version of the device operating system.',
|
|
132
|
+
type: 'string',
|
|
133
|
+
default: {
|
|
134
|
+
'@path': '$.context.os.version'
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
wifi: {
|
|
138
|
+
label: 'Wifi',
|
|
139
|
+
description: 'Whether the event occurred when the user device was connected to wifi.',
|
|
140
|
+
type: 'boolean',
|
|
141
|
+
default: {
|
|
142
|
+
'@path': '$.context.network.wifi'
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
language: {
|
|
146
|
+
label: 'Language',
|
|
147
|
+
description: "Two-character ISO-639-1 language code indicating the user's language.",
|
|
148
|
+
type: 'string'
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
perform: async (request, { settings, payload }) => {
|
|
152
|
+
return processPayload(request, settings, [payload]);
|
|
153
|
+
},
|
|
154
|
+
performBatch: async (request, { settings, payload }) => {
|
|
155
|
+
return processPayload(request, settings, payload);
|
|
8
156
|
}
|
|
9
157
|
};
|
|
158
|
+
async function processPayload(request, settings, payloads) {
|
|
159
|
+
try {
|
|
160
|
+
payloads = validateUserData(payloads);
|
|
161
|
+
const data = createPinterestPayload(payloads);
|
|
162
|
+
if (!data.length)
|
|
163
|
+
return;
|
|
164
|
+
return request(`https://api.pinterest.com/${constants_1.API_VERSION}/ad_accounts/${settings.ad_account_id}/events`, {
|
|
165
|
+
method: 'POST',
|
|
166
|
+
json: {
|
|
167
|
+
data: data
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
catch (err) {
|
|
172
|
+
console.log(err);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
function validateUserData(payloads) {
|
|
176
|
+
return payloads.filter((payload) => {
|
|
177
|
+
return (payload.user_data?.email?.length ||
|
|
178
|
+
payload.user_data?.hashed_maids?.length ||
|
|
179
|
+
(payload.user_data.client_ip_address && payload.user_data.client_user_agent));
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
function createPinterestPayload(payloads) {
|
|
183
|
+
return payloads.map((payload) => {
|
|
184
|
+
return {
|
|
185
|
+
event_name: payload.event_name,
|
|
186
|
+
action_source: payload.action_source,
|
|
187
|
+
event_time: payload.event_time,
|
|
188
|
+
event_id: payload.event_id,
|
|
189
|
+
event_source_url: payload.event_source_url,
|
|
190
|
+
opt_out: payload.opt_out,
|
|
191
|
+
user_data: pinterset_capi_user_data_1.hash_user_data({ user_data: payload.user_data }),
|
|
192
|
+
custom_data: {
|
|
193
|
+
currency: payload?.custom_data?.currency,
|
|
194
|
+
value: payload?.custom_data?.value,
|
|
195
|
+
content_ids: payload.custom_data?.content_ids,
|
|
196
|
+
contents: payload.custom_data?.contents,
|
|
197
|
+
num_items: payload.custom_data?.num_items,
|
|
198
|
+
order_id: payload.custom_data?.order_id,
|
|
199
|
+
search_string: payload.custom_data?.search_string,
|
|
200
|
+
opt_out_type: payload.custom_data?.opt_out_type
|
|
201
|
+
},
|
|
202
|
+
app_id: payload.app_id,
|
|
203
|
+
app_name: payload.app_name,
|
|
204
|
+
app_version: payload.app_version,
|
|
205
|
+
device_brand: payload.device_brand,
|
|
206
|
+
device_carrier: payload.device_carrier,
|
|
207
|
+
device_model: payload.device_model,
|
|
208
|
+
device_type: payload.device_type,
|
|
209
|
+
os_version: payload.os_version,
|
|
210
|
+
wifi: payload.wifi,
|
|
211
|
+
language: payload.language
|
|
212
|
+
};
|
|
213
|
+
});
|
|
214
|
+
}
|
|
10
215
|
exports.default = action;
|
|
11
216
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/pinterest-conversions/reportConversionEvent/index.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/pinterest-conversions/reportConversionEvent/index.ts"],"names":[],"mappings":";;AAEA,4CAA0C;AAE1C,8EAAiE;AACjE,0EAA6E;AAG7E,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,yBAAyB;IAChC,WAAW,EAAE,MAAM;IACnB,MAAM,EAAE;QACN,UAAU,EAAE;YACV,KAAK,EAAE,YAAY;YACnB,WAAW,EACT,gPAAgP;YAClP,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,EAAE;gBAC9C,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;gBACxC,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;gBAChC,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE;gBAC5C,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;gBACpC,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;gBACtC,EAAE,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,eAAe,EAAE;gBAClD,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,EAAE;aAC/C;SACF;QACD,aAAa,EAAE;YACb,KAAK,EAAE,eAAe;YACtB,WAAW,EACT,gHAAgH;YAClH,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,EAAE;gBAC9C,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;gBAC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AgB,EAAE,OAAO,CAAC,gBAAgB;YAC1C,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,SAAS,EAAE,yCAAc,CAAC,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,EAAE,CAAC;YAC3D,WAAW,EAAE;gBACX,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ;gBACxC,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,KAAK;gBAClC,WAAW,EAAE,OAAO,CAAC,WAAW,EAAE,WAAW;gBAC7C,QAAQ,EAAE,OAAO,CAAC,WAAW,EAAE,QAAQ;gBACvC,SAAS,EAAE,OAAO,CAAC,WAAW,EAAE,SAAS;gBACzC,QAAQ,EAAE,OAAO,CAAC,WAAW,EAAE,QAAQ;gBACvC,aAAa,EAAE,OAAO,CAAC,WAAW,EAAE,aAAa;gBACjD,YAAY,EAAE,OAAO,CAAC,WAAW,EAAE,YAAY;aAChD;YACD,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,QAAQ,EAAE,OAAO,CAAC,QAAQ;YAC1B,WAAW,EAAE,OAAO,CAAC,WAAW;YAChC,YAAY,EAAE,OAAO,CAAC,YAAY;YAClC,cAAc,EAAE,OAAO,CAAC,cAAc;YACtC,YAAY,EAAE,OAAO,CAAC,YAAY;YAClC,WAAW,EAAE,OAAO,CAAC,WAAW;YAChC,UAAU,EAAE,OAAO,CAAC,UAAU;YAC9B,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,QAAQ,EAAE,OAAO,CAAC,QAAQ;SAC3B,CAAA;IACH,CAAC,CAAC,CAAA;AACJ,CAAC;AAED,kBAAe,MAAM,CAAA"}
|
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.135.
|
|
4
|
+
"version": "3.135.1-stratconn-1993-main.2+6c4a350d",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/segmentio/action-destinations",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"lcov"
|
|
69
69
|
]
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "6c4a350dd6039c17e4620350f75f5b23d5c67a44"
|
|
72
72
|
}
|