@segment/action-destinations 3.251.0 → 3.251.2-staging
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/braze/index.js.map +1 -1
- package/dist/destinations/customerio/index.js.map +1 -1
- package/dist/destinations/engage/sendgrid/Profile.d.ts +6 -0
- package/dist/destinations/engage/sendgrid/Profile.js +3 -0
- package/dist/destinations/engage/sendgrid/Profile.js.map +1 -0
- package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.d.ts +21 -0
- package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.js +174 -0
- package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.js.map +1 -0
- package/dist/destinations/engage/twilio/sendWhatsApp/WhatsAppMessageSender.d.ts +1 -0
- package/dist/destinations/engage/twilio/sendWhatsApp/WhatsAppMessageSender.js +19 -11
- package/dist/destinations/engage/twilio/sendWhatsApp/WhatsAppMessageSender.js.map +1 -1
- package/dist/destinations/engage/utils/track.d.ts +17 -17
- package/dist/destinations/iterable/index.js.map +1 -1
- package/dist/destinations/kafka/utils.js.map +1 -1
- package/dist/destinations/klaviyo/index.js +1 -1
- package/dist/destinations/linkedin-conversions/api/api.test.js +27 -10
- package/dist/destinations/linkedin-conversions/api/api.test.js.map +1 -1
- package/dist/destinations/linkedin-conversions/api/index.js +25 -7
- package/dist/destinations/linkedin-conversions/api/index.js.map +1 -1
- package/dist/destinations/linkedin-conversions/constants.d.ts +7 -0
- package/dist/destinations/linkedin-conversions/constants.js +45 -1
- package/dist/destinations/linkedin-conversions/constants.js.map +1 -1
- package/dist/destinations/linkedin-conversions/streamConversion/generated-types.d.ts +4 -0
- package/dist/destinations/linkedin-conversions/streamConversion/index.js +27 -10
- package/dist/destinations/linkedin-conversions/streamConversion/index.js.map +1 -1
- package/dist/destinations/linkedin-conversions/types.d.ts +5 -0
- package/dist/destinations/marketo-static-lists/addToList/generated-types.d.ts +13 -1
- package/dist/destinations/marketo-static-lists/addToList/index.js +69 -2
- package/dist/destinations/marketo-static-lists/addToList/index.js.map +1 -1
- package/dist/destinations/marketo-static-lists/constants.d.ts +10 -3
- package/dist/destinations/marketo-static-lists/constants.js +2 -14
- package/dist/destinations/marketo-static-lists/constants.js.map +1 -1
- package/dist/destinations/marketo-static-lists/functions.d.ts +18 -1
- package/dist/destinations/marketo-static-lists/functions.js +87 -1
- package/dist/destinations/marketo-static-lists/functions.js.map +1 -1
- package/dist/destinations/marketo-static-lists/index.js +4 -42
- package/dist/destinations/marketo-static-lists/index.js.map +1 -1
- package/dist/destinations/marketo-static-lists/properties.js +1 -2
- package/dist/destinations/marketo-static-lists/properties.js.map +1 -1
- package/dist/destinations/marketo-static-lists/removeFromList/generated-types.d.ts +1 -1
- package/dist/destinations/mixpanel/utils.d.ts +13 -0
- package/dist/destinations/mixpanel/utils.js +117 -0
- package/dist/destinations/mixpanel/utils.js.map +1 -0
- package/dist/destinations/moloco-rmp/addToCart/generated-types.d.ts +28 -0
- package/dist/destinations/moloco-rmp/addToCart/generated-types.js +3 -0
- package/dist/destinations/moloco-rmp/addToCart/generated-types.js.map +1 -0
- package/dist/destinations/moloco-rmp/addToCart/index.d.ts +5 -0
- package/dist/destinations/moloco-rmp/addToCart/index.js +44 -0
- package/dist/destinations/moloco-rmp/addToCart/index.js.map +1 -0
- package/dist/destinations/moloco-rmp/addToWishlist/generated-types.d.ts +32 -0
- package/dist/destinations/moloco-rmp/addToWishlist/generated-types.js +3 -0
- package/dist/destinations/moloco-rmp/addToWishlist/generated-types.js.map +1 -0
- package/dist/destinations/moloco-rmp/addToWishlist/index.d.ts +5 -0
- package/dist/destinations/moloco-rmp/addToWishlist/index.js +45 -0
- package/dist/destinations/moloco-rmp/addToWishlist/index.js.map +1 -0
- package/dist/destinations/moloco-rmp/common/convert.d.ts +9 -0
- package/dist/destinations/moloco-rmp/common/convert.js +83 -0
- package/dist/destinations/moloco-rmp/common/convert.js.map +1 -0
- package/dist/destinations/moloco-rmp/common/event.d.ts +10 -0
- package/dist/destinations/moloco-rmp/common/event.js +15 -0
- package/dist/destinations/moloco-rmp/common/event.js.map +1 -0
- package/dist/destinations/moloco-rmp/common/fields.d.ts +14 -0
- package/dist/destinations/moloco-rmp/common/fields.js +348 -0
- package/dist/destinations/moloco-rmp/common/fields.js.map +1 -0
- package/dist/destinations/moloco-rmp/common/payload/moloco.d.ts +35 -0
- package/dist/destinations/moloco-rmp/common/payload/moloco.js +3 -0
- package/dist/destinations/moloco-rmp/common/payload/moloco.js.map +1 -0
- package/dist/destinations/moloco-rmp/common/payload/segment.d.ts +40 -0
- package/dist/destinations/moloco-rmp/common/payload/segment.js +3 -0
- package/dist/destinations/moloco-rmp/common/payload/segment.js.map +1 -0
- package/dist/destinations/moloco-rmp/common/request-client.d.ts +11 -0
- package/dist/destinations/moloco-rmp/common/request-client.js +28 -0
- package/dist/destinations/moloco-rmp/common/request-client.js.map +1 -0
- package/dist/destinations/moloco-rmp/common/settings.d.ts +4 -0
- package/dist/destinations/moloco-rmp/common/settings.js +3 -0
- package/dist/destinations/moloco-rmp/common/settings.js.map +1 -0
- package/dist/destinations/moloco-rmp/generated-types.d.ts +5 -0
- package/dist/destinations/moloco-rmp/generated-types.js +3 -0
- package/dist/destinations/moloco-rmp/generated-types.js.map +1 -0
- package/dist/destinations/moloco-rmp/home/generated-types.d.ts +28 -0
- package/dist/destinations/moloco-rmp/home/generated-types.js +3 -0
- package/dist/destinations/moloco-rmp/home/generated-types.js.map +1 -0
- package/dist/destinations/moloco-rmp/home/index.d.ts +5 -0
- package/dist/destinations/moloco-rmp/home/index.js +29 -0
- package/dist/destinations/moloco-rmp/home/index.js.map +1 -0
- package/dist/destinations/moloco-rmp/index.d.ts +4 -0
- package/dist/destinations/moloco-rmp/index.js +117 -0
- package/dist/destinations/moloco-rmp/index.js.map +1 -0
- package/dist/destinations/moloco-rmp/itemPageView/generated-types.d.ts +28 -0
- package/dist/destinations/moloco-rmp/itemPageView/generated-types.js +3 -0
- package/dist/destinations/moloco-rmp/itemPageView/generated-types.js.map +1 -0
- package/dist/destinations/moloco-rmp/itemPageView/index.d.ts +5 -0
- package/dist/destinations/moloco-rmp/itemPageView/index.js +44 -0
- package/dist/destinations/moloco-rmp/itemPageView/index.js.map +1 -0
- package/dist/destinations/moloco-rmp/land/generated-types.d.ts +29 -0
- package/dist/destinations/moloco-rmp/land/generated-types.js +3 -0
- package/dist/destinations/moloco-rmp/land/generated-types.js.map +1 -0
- package/dist/destinations/moloco-rmp/land/index.d.ts +5 -0
- package/dist/destinations/moloco-rmp/land/index.js +33 -0
- package/dist/destinations/moloco-rmp/land/index.js.map +1 -0
- package/dist/destinations/moloco-rmp/pageView/generated-types.d.ts +29 -0
- package/dist/destinations/moloco-rmp/pageView/generated-types.js +3 -0
- package/dist/destinations/moloco-rmp/pageView/generated-types.js.map +1 -0
- package/dist/destinations/moloco-rmp/pageView/index.d.ts +5 -0
- package/dist/destinations/moloco-rmp/pageView/index.js +36 -0
- package/dist/destinations/moloco-rmp/pageView/index.js.map +1 -0
- package/dist/destinations/moloco-rmp/purchase/generated-types.d.ts +36 -0
- package/dist/destinations/moloco-rmp/purchase/generated-types.js +3 -0
- package/dist/destinations/moloco-rmp/purchase/generated-types.js.map +1 -0
- package/dist/destinations/moloco-rmp/purchase/index.d.ts +5 -0
- package/dist/destinations/moloco-rmp/purchase/index.js +37 -0
- package/dist/destinations/moloco-rmp/purchase/index.js.map +1 -0
- package/dist/destinations/moloco-rmp/search/generated-types.d.ts +30 -0
- package/dist/destinations/moloco-rmp/search/generated-types.js +3 -0
- package/dist/destinations/moloco-rmp/search/generated-types.js.map +1 -0
- package/dist/destinations/moloco-rmp/search/index.d.ts +5 -0
- package/dist/destinations/moloco-rmp/search/index.js +34 -0
- package/dist/destinations/moloco-rmp/search/index.js.map +1 -0
- package/dist/destinations/responsys/asyncMergePetRecords/generated-types.d.ts +14 -0
- package/dist/destinations/responsys/asyncMergePetRecords/generated-types.js +3 -0
- package/dist/destinations/responsys/asyncMergePetRecords/generated-types.js.map +1 -0
- package/dist/destinations/responsys/asyncMergePetRecords/index.d.ts +5 -0
- package/dist/destinations/responsys/asyncMergePetRecords/index.js +113 -0
- package/dist/destinations/responsys/asyncMergePetRecords/index.js.map +1 -0
- package/dist/destinations/responsys/asyncMergeProfileListMembers/generated-types.d.ts +20 -0
- package/dist/destinations/responsys/asyncMergeProfileListMembers/generated-types.js +3 -0
- package/dist/destinations/responsys/asyncMergeProfileListMembers/generated-types.js.map +1 -0
- package/dist/destinations/responsys/asyncMergeProfileListMembers/index.d.ts +5 -0
- package/dist/destinations/responsys/asyncMergeProfileListMembers/index.js +174 -0
- package/dist/destinations/responsys/asyncMergeProfileListMembers/index.js.map +1 -0
- package/dist/destinations/responsys/index.d.ts +1 -1
- package/dist/destinations/responsys/index.js +12 -2
- package/dist/destinations/responsys/index.js.map +1 -1
- package/dist/destinations/responsys/rsp-operations.d.ts +14 -0
- package/dist/destinations/responsys/rsp-operations.js +33 -0
- package/dist/destinations/responsys/rsp-operations.js.map +1 -0
- package/dist/destinations/responsys/rsp-properties.d.ts +4 -0
- package/dist/destinations/responsys/rsp-properties.js +27 -0
- package/dist/destinations/responsys/rsp-properties.js.map +1 -0
- package/dist/destinations/responsys/sendAudience/generated-types.d.ts +2 -0
- package/dist/destinations/responsys/sendAudience/index.js +25 -6
- package/dist/destinations/responsys/sendAudience/index.js.map +1 -1
- package/dist/destinations/responsys/sendCustomTraits/generated-types.d.ts +2 -0
- package/dist/destinations/responsys/sendCustomTraits/index.js +25 -6
- package/dist/destinations/responsys/sendCustomTraits/index.js.map +1 -1
- package/dist/destinations/responsys/upsertListMember/generated-types.d.ts +1 -0
- package/dist/destinations/responsys/upsertListMember/index.js +8 -1
- package/dist/destinations/responsys/upsertListMember/index.js.map +1 -1
- package/dist/destinations/responsys/utils.d.ts +3 -1
- package/dist/destinations/responsys/utils.js +23 -7
- package/dist/destinations/responsys/utils.js.map +1 -1
- package/dist/destinations/segment-profiles/index.js +3 -1
- package/dist/destinations/segment-profiles/index.js.map +1 -1
- package/dist/destinations/segment-profiles/segment-properties.d.ts +2 -0
- package/dist/destinations/segment-profiles/segment-properties.js +14 -1
- package/dist/destinations/segment-profiles/segment-properties.js.map +1 -1
- package/dist/destinations/segment-profiles/sendTrack/generated-types.d.ts +11 -0
- package/dist/destinations/segment-profiles/sendTrack/generated-types.js +3 -0
- package/dist/destinations/segment-profiles/sendTrack/generated-types.js.map +1 -0
- package/dist/destinations/segment-profiles/sendTrack/index.d.ts +5 -0
- package/dist/destinations/segment-profiles/sendTrack/index.js +42 -0
- package/dist/destinations/segment-profiles/sendTrack/index.js.map +1 -0
- package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/formatter.d.ts +3 -0
- package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/formatter.js +43 -0
- package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/formatter.js.map +1 -0
- package/package.json +3 -3
|
@@ -18,7 +18,9 @@ class LinkedInConversions {
|
|
|
18
18
|
id: conversionRuleId,
|
|
19
19
|
name: data.name || `No name returned for rule: ${conversionRuleId}`,
|
|
20
20
|
conversionType: data.type || `No type returned for rule: ${conversionRuleId}`,
|
|
21
|
-
attribution_type: data.attributionType || `No attribution type returned for rule: ${conversionRuleId}
|
|
21
|
+
attribution_type: data.attributionType || `No attribution type returned for rule: ${conversionRuleId}`,
|
|
22
|
+
post_click_attribution_window_size: data.postClickAttributionWindowSize || 30,
|
|
23
|
+
view_through_attribution_window_size: data.viewThroughAttributionWindowSize || 7
|
|
22
24
|
}
|
|
23
25
|
};
|
|
24
26
|
}
|
|
@@ -42,8 +44,8 @@ class LinkedInConversions {
|
|
|
42
44
|
name: hookInputs?.name,
|
|
43
45
|
account: adAccount,
|
|
44
46
|
conversionMethod: 'CONVERSIONS_API',
|
|
45
|
-
postClickAttributionWindowSize: 30,
|
|
46
|
-
viewThroughAttributionWindowSize: 7,
|
|
47
|
+
postClickAttributionWindowSize: hookInputs?.post_click_attribution_window_size || 30,
|
|
48
|
+
viewThroughAttributionWindowSize: hookInputs?.view_through_attribution_window_size || 7,
|
|
47
49
|
attributionType: hookInputs?.attribution_type,
|
|
48
50
|
type: hookInputs?.conversionType
|
|
49
51
|
}
|
|
@@ -54,7 +56,9 @@ class LinkedInConversions {
|
|
|
54
56
|
id: data.id,
|
|
55
57
|
name: data.name,
|
|
56
58
|
conversionType: data.type,
|
|
57
|
-
attribution_type:
|
|
59
|
+
attribution_type: data.attributionType || 'UNKNOWN',
|
|
60
|
+
post_click_attribution_window_size: data.postClickAttributionWindowSize,
|
|
61
|
+
view_through_attribution_window_size: data.viewThroughAttributionWindowSize
|
|
58
62
|
}
|
|
59
63
|
};
|
|
60
64
|
}
|
|
@@ -95,7 +99,9 @@ class LinkedInConversions {
|
|
|
95
99
|
id: hookOutputs.id,
|
|
96
100
|
name: hookOutputs.name,
|
|
97
101
|
conversionType: hookOutputs.conversionType,
|
|
98
|
-
attribution_type: hookOutputs.attribution_type
|
|
102
|
+
attribution_type: hookOutputs.attribution_type,
|
|
103
|
+
post_click_attribution_window_size: hookOutputs.post_click_attribution_window_size,
|
|
104
|
+
view_through_attribution_window_size: hookOutputs.view_through_attribution_window_size
|
|
99
105
|
}
|
|
100
106
|
};
|
|
101
107
|
}
|
|
@@ -121,7 +127,9 @@ class LinkedInConversions {
|
|
|
121
127
|
id: hookOutputs.id,
|
|
122
128
|
name: valuesChanged?.name || hookOutputs.name,
|
|
123
129
|
conversionType: valuesChanged?.type || hookOutputs.conversionType,
|
|
124
|
-
attribution_type: valuesChanged?.attributionType || hookOutputs.attribution_type
|
|
130
|
+
attribution_type: valuesChanged?.attributionType || hookOutputs.attribution_type,
|
|
131
|
+
post_click_attribution_window_size: valuesChanged?.postClickAttributionWindowSize || hookOutputs.post_click_attribution_window_size,
|
|
132
|
+
view_through_attribution_window_size: valuesChanged?.viewThroughAttributionWindowSize || hookOutputs.view_through_attribution_window_size
|
|
125
133
|
}
|
|
126
134
|
};
|
|
127
135
|
}
|
|
@@ -131,7 +139,9 @@ class LinkedInConversions {
|
|
|
131
139
|
id: hookOutputs.id,
|
|
132
140
|
name: hookOutputs.name,
|
|
133
141
|
conversionType: hookOutputs.conversionType,
|
|
134
|
-
attribution_type: hookOutputs.attribution_type
|
|
142
|
+
attribution_type: hookOutputs.attribution_type,
|
|
143
|
+
post_click_attribution_window_size: hookOutputs.post_click_attribution_window_size,
|
|
144
|
+
view_through_attribution_window_size: hookOutputs.view_through_attribution_window_size
|
|
135
145
|
},
|
|
136
146
|
error: {
|
|
137
147
|
message: `Failed to update conversion rule: ${e?.message ?? JSON.stringify(e)}`,
|
|
@@ -266,6 +276,14 @@ class LinkedInConversions {
|
|
|
266
276
|
if (hookInputs?.attribution_type && hookInputs?.attribution_type !== hookOutputs?.attribution_type) {
|
|
267
277
|
valuesChanged.attributionType = hookInputs?.attribution_type;
|
|
268
278
|
}
|
|
279
|
+
if (hookInputs?.post_click_attribution_window_size &&
|
|
280
|
+
hookInputs?.post_click_attribution_window_size !== hookOutputs?.post_click_attribution_window_size) {
|
|
281
|
+
valuesChanged.postClickAttributionWindowSize = hookInputs?.post_click_attribution_window_size;
|
|
282
|
+
}
|
|
283
|
+
if (hookInputs?.view_through_attribution_window_size &&
|
|
284
|
+
hookInputs?.view_through_attribution_window_size !== hookOutputs?.view_through_attribution_window_size) {
|
|
285
|
+
valuesChanged.viewThroughAttributionWindowSize = hookInputs?.view_through_attribution_window_size;
|
|
286
|
+
}
|
|
269
287
|
return valuesChanged;
|
|
270
288
|
};
|
|
271
289
|
this.request = request;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/linkedin-conversions/api/index.ts"],"names":[],"mappings":";;;AACA,4CAAuC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/linkedin-conversions/api/index.ts"],"names":[],"m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|
2
2
|
export declare const BASE_URL = "https://api.linkedin.com/rest";
|
|
3
3
|
export declare const LINKEDIN_SOURCE_PLATFORM = "SEGMENT";
|
|
4
4
|
export declare const SUPPORTED_ID_TYPE: string[];
|
|
5
|
+
interface Choice {
|
|
6
|
+
value: string | number;
|
|
7
|
+
label: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const CONVERSION_TYPE_OPTIONS: Choice[];
|
|
10
|
+
export declare const SUPPORTED_LOOKBACK_WINDOW_CHOICES: Choice[];
|
|
11
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SUPPORTED_ID_TYPE = exports.LINKEDIN_SOURCE_PLATFORM = exports.BASE_URL = exports.LINKEDIN_API_VERSION = void 0;
|
|
3
|
+
exports.SUPPORTED_LOOKBACK_WINDOW_CHOICES = exports.CONVERSION_TYPE_OPTIONS = exports.SUPPORTED_ID_TYPE = exports.LINKEDIN_SOURCE_PLATFORM = exports.BASE_URL = exports.LINKEDIN_API_VERSION = void 0;
|
|
4
4
|
exports.LINKEDIN_API_VERSION = '202401';
|
|
5
5
|
exports.BASE_URL = 'https://api.linkedin.com/rest';
|
|
6
6
|
exports.LINKEDIN_SOURCE_PLATFORM = 'SEGMENT';
|
|
@@ -10,4 +10,48 @@ exports.SUPPORTED_ID_TYPE = [
|
|
|
10
10
|
'ACXIOM_ID',
|
|
11
11
|
'ORACLE_MOAT_ID'
|
|
12
12
|
];
|
|
13
|
+
exports.CONVERSION_TYPE_OPTIONS = [
|
|
14
|
+
{ label: 'Add to Cart', value: 'ADD_TO_CART' },
|
|
15
|
+
{ label: 'Download', value: 'DOWNLOAD' },
|
|
16
|
+
{ label: 'Install', value: 'INSTALL' },
|
|
17
|
+
{ label: 'Key Page View', value: 'KEY_PAGE_VIEW' },
|
|
18
|
+
{ label: 'Lead', value: 'LEAD' },
|
|
19
|
+
{ label: 'Purchase', value: 'PURCHASE' },
|
|
20
|
+
{ label: 'Sign Up', value: 'SIGN_UP' },
|
|
21
|
+
{ label: 'Other', value: 'OTHER' },
|
|
22
|
+
{ label: 'Talent Lead', value: 'TALENT_LEAD' },
|
|
23
|
+
{ label: 'Job Apply', value: 'JOB_APPLY' },
|
|
24
|
+
{ label: 'Save', value: 'SAVE' },
|
|
25
|
+
{ label: 'Start Checkout', value: 'START_CHECKOUT' },
|
|
26
|
+
{ label: 'Schedule', value: 'SCHEDULE' },
|
|
27
|
+
{ label: 'View Content', value: 'VIEW_CONTENT' },
|
|
28
|
+
{ label: 'View Video', value: 'VIEW_VIDEO' },
|
|
29
|
+
{ label: 'Add Billing Info', value: 'ADD_BILLING_INFO' },
|
|
30
|
+
{ label: 'Book Appointment', value: 'BOOK_APPOINTMENT' },
|
|
31
|
+
{ label: 'Request Quote', value: 'REQUEST_QUOTE' },
|
|
32
|
+
{ label: 'Search', value: 'SEARCH' },
|
|
33
|
+
{ label: 'Subscribe', value: 'SUBSCRIBE' },
|
|
34
|
+
{ label: 'Ad Click', value: 'AD_CLICK' },
|
|
35
|
+
{ label: 'Ad View', value: 'AD_VIEW' },
|
|
36
|
+
{ label: 'Complete Signup', value: 'COMPLETE_SIGNUP' },
|
|
37
|
+
{ label: 'Submit Application', value: 'SUBMIT_APPLICATION' },
|
|
38
|
+
{ label: 'Phone Call', value: 'PHONE_CALL' },
|
|
39
|
+
{ label: 'Invite', value: 'INVITE' },
|
|
40
|
+
{ label: 'Login', value: 'LOGIN' },
|
|
41
|
+
{ label: 'Share', value: 'SHARE' },
|
|
42
|
+
{ label: 'Donate', value: 'DONATE' },
|
|
43
|
+
{ label: 'Add to List', value: 'ADD_TO_LIST' },
|
|
44
|
+
{ label: 'Rate', value: 'RATE' },
|
|
45
|
+
{ label: 'Start Trial', value: 'START_TRIAL' },
|
|
46
|
+
{ label: 'Outbound Click', value: 'OUTBOUND_CLICK' },
|
|
47
|
+
{ label: 'Contact', value: 'CONTACT' },
|
|
48
|
+
{ label: 'Marketing Qualified Lead', value: 'MARKETING_QUALIFIED_LEAD' },
|
|
49
|
+
{ label: 'Sales Qualified Lead', value: 'SALES_QUALIFIED_LEAD' }
|
|
50
|
+
];
|
|
51
|
+
exports.SUPPORTED_LOOKBACK_WINDOW_CHOICES = [
|
|
52
|
+
{ label: '1 day', value: 1 },
|
|
53
|
+
{ label: '7 days', value: 7 },
|
|
54
|
+
{ label: '30 days', value: 30 },
|
|
55
|
+
{ label: '90 days', value: 90 }
|
|
56
|
+
];
|
|
13
57
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/destinations/linkedin-conversions/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,oBAAoB,GAAG,QAAQ,CAAA;AAC/B,QAAA,QAAQ,GAAG,+BAA+B,CAAA;AAC1C,QAAA,wBAAwB,GAAG,SAAS,CAAA;AAEpC,QAAA,iBAAiB,GAAG;IAC/B,cAAc;IACd,wCAAwC;IACxC,WAAW;IACX,gBAAgB;CACjB,CAAA"}
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/destinations/linkedin-conversions/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,oBAAoB,GAAG,QAAQ,CAAA;AAC/B,QAAA,QAAQ,GAAG,+BAA+B,CAAA;AAC1C,QAAA,wBAAwB,GAAG,SAAS,CAAA;AAEpC,QAAA,iBAAiB,GAAG;IAC/B,cAAc;IACd,wCAAwC;IACxC,WAAW;IACX,gBAAgB;CACjB,CAAA;AAOY,QAAA,uBAAuB,GAAa;IAC/C,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,EAAE;IAC9C,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;IACxC,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;IACtC,EAAE,KAAK,EAAE,eAAe,EAAE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,KAAK,EAAE,oBAAoB,EAAE;IAC5D,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE;IAC5C,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;IACpC,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;IAClC,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;IAClC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;IACpC,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,EAAE;IAC9C,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;IAChC,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,EAAE;IAC9C,EAAE,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,gBAAgB,EAAE;IACpD,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;IACtC,EAAE,KAAK,EAAE,0BAA0B,EAAE,KAAK,EAAE,0BAA0B,EAAE;IACxE,EAAE,KAAK,EAAE,sBAAsB,EAAE,KAAK,EAAE,sBAAsB,EAAE;CACjE,CAAA;AAEY,QAAA,iCAAiC,GAAa;IACzD,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE;IAC5B,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,EAAE;IAC7B,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,EAAE;IAC/B,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,EAAE;CAChC,CAAA"}
|
|
@@ -26,12 +26,16 @@ export interface HookBundle {
|
|
|
26
26
|
name?: string;
|
|
27
27
|
conversionType?: string;
|
|
28
28
|
attribution_type?: string;
|
|
29
|
+
post_click_attribution_window_size?: number;
|
|
30
|
+
view_through_attribution_window_size?: number;
|
|
29
31
|
};
|
|
30
32
|
outputs?: {
|
|
31
33
|
id: string;
|
|
32
34
|
name: string;
|
|
33
35
|
conversionType: string;
|
|
34
36
|
attribution_type: string;
|
|
37
|
+
post_click_attribution_window_size: number;
|
|
38
|
+
view_through_attribution_window_size: number;
|
|
35
39
|
};
|
|
36
40
|
};
|
|
37
41
|
}
|
|
@@ -41,16 +41,7 @@ const action = {
|
|
|
41
41
|
type: 'string',
|
|
42
42
|
label: 'Conversion Type',
|
|
43
43
|
description: 'The type of conversion rule.',
|
|
44
|
-
choices:
|
|
45
|
-
{ label: 'Add to Cart', value: 'ADD_TO_CART' },
|
|
46
|
-
{ label: 'Download', value: 'DOWNLOAD' },
|
|
47
|
-
{ label: 'Install', value: 'INSTALL' },
|
|
48
|
-
{ label: 'Key Page View', value: 'KEY_PAGE_VIEW' },
|
|
49
|
-
{ label: 'Lead', value: 'LEAD' },
|
|
50
|
-
{ label: 'Purchase', value: 'PURCHASE' },
|
|
51
|
-
{ label: 'Sign Up', value: 'SIGN_UP' },
|
|
52
|
-
{ label: 'Other', value: 'OTHER' }
|
|
53
|
-
],
|
|
44
|
+
choices: constants_1.CONVERSION_TYPE_OPTIONS,
|
|
54
45
|
depends_on: {
|
|
55
46
|
match: 'all',
|
|
56
47
|
conditions: [
|
|
@@ -80,6 +71,20 @@ const action = {
|
|
|
80
71
|
}
|
|
81
72
|
]
|
|
82
73
|
}
|
|
74
|
+
},
|
|
75
|
+
post_click_attribution_window_size: {
|
|
76
|
+
label: 'Post-Click Attribution Window Size',
|
|
77
|
+
description: 'Conversion window timeframe (in days) of a member clicking on a LinkedIn Ad (a post-click conversion) within which conversions will be attributed to a LinkedIn ad. Allowed values are 1, 7, 30 or 90. Default is 30.',
|
|
78
|
+
type: 'number',
|
|
79
|
+
default: 30,
|
|
80
|
+
choices: constants_1.SUPPORTED_LOOKBACK_WINDOW_CHOICES
|
|
81
|
+
},
|
|
82
|
+
view_through_attribution_window_size: {
|
|
83
|
+
label: 'View-Through Attribution Window Size',
|
|
84
|
+
description: ' Conversion window timeframe (in days) of a member seeing a LinkedIn Ad (a view-through conversion) within which conversions will be attributed to a LinkedIn ad. Allowed values are 1, 7, 30 or 90. Default is 7.',
|
|
85
|
+
type: 'number',
|
|
86
|
+
default: 7,
|
|
87
|
+
choices: constants_1.SUPPORTED_LOOKBACK_WINDOW_CHOICES
|
|
83
88
|
}
|
|
84
89
|
},
|
|
85
90
|
outputTypes: {
|
|
@@ -106,6 +111,18 @@ const action = {
|
|
|
106
111
|
description: 'The attribution type for the conversion rule.',
|
|
107
112
|
type: 'string',
|
|
108
113
|
required: true
|
|
114
|
+
},
|
|
115
|
+
post_click_attribution_window_size: {
|
|
116
|
+
label: 'Post-Click Attribution Window Size',
|
|
117
|
+
description: 'Conversion window timeframe (in days) of a member clicking on a LinkedIn Ad (a post-click conversion) within which conversions will be attributed to a LinkedIn ad.',
|
|
118
|
+
type: 'number',
|
|
119
|
+
required: true
|
|
120
|
+
},
|
|
121
|
+
view_through_attribution_window_size: {
|
|
122
|
+
label: 'View-Through Attribution Window Size',
|
|
123
|
+
description: ' Conversion window timeframe (in days) of a member seeing a LinkedIn Ad (a view-through conversion) within which conversions will be attributed to a LinkedIn ad.',
|
|
124
|
+
type: 'number',
|
|
125
|
+
required: true
|
|
109
126
|
}
|
|
110
127
|
},
|
|
111
128
|
performHook: async (request, { payload, hookInputs, hookOutputs }) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/linkedin-conversions/streamConversion/index.ts"],"names":[],"mappings":";;AACA,wDAAwH;AAExH,gCAA4C;AAC5C,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/linkedin-conversions/streamConversion/index.ts"],"names":[],"mappings":";;AACA,wDAAwH;AAExH,gCAA4C;AAC5C,4CAA4G;AAI5G,MAAM,MAAM,GAA+D;IACzE,KAAK,EAAE,yBAAyB;IAChC,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,SAAS,iCAAiC,CAAC,SAAiB;IAC1D,IAAI,OAAO,SAAS,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,EAAE;QAC9D,MAAM,kBAAkB,GAAG,MAAM,CAAC,SAAS,CAAC,CAAA;QAC5C,MAAM,SAAS,GAAG,IAAI,IAAI,CAAC,sBAAsB,CAAC,CAAC,OAAO,EAAE,CAAA;QAC5D,MAAM,OAAO,GAAG,IAAI,IAAI,CAAC,sBAAsB,CAAC,CAAC,OAAO,EAAE,CAAA;QAC1D,IAAI,MAAM,CAAC,aAAa,CAAC,kBAAkB,CAAC,IAAI,kBAAkB,IAAI,SAAS,IAAI,kBAAkB,IAAI,OAAO,EAAE;YAChH,OAAO,KAAK,CAAA;SACb;KACF;IACD,OAAO,IAAI,CAAA;AACb,CAAC;AAED,SAAS,oBAAoB,CAAC,SAAiB;IAC7C,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,SAAS,CAAC,CAAA;IAChC,OAAO,IAAI,CAAC,OAAO,EAAE,CAAA;AACvB,CAAC;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -85,6 +85,9 @@ export interface ConversionRuleCreationResponse {
|
|
|
85
85
|
id: string;
|
|
86
86
|
name: string;
|
|
87
87
|
type: string;
|
|
88
|
+
attributionType: string;
|
|
89
|
+
postClickAttributionWindowSize: number;
|
|
90
|
+
viewThroughAttributionWindowSize: number;
|
|
88
91
|
}
|
|
89
92
|
export interface ConversionRuleUpdateResponse {
|
|
90
93
|
}
|
|
@@ -96,4 +99,6 @@ export interface GetConversionRuleResponse {
|
|
|
96
99
|
id?: string;
|
|
97
100
|
attributionType?: string;
|
|
98
101
|
account?: string;
|
|
102
|
+
postClickAttributionWindowSize?: number;
|
|
103
|
+
viewThroughAttributionWindowSize?: number;
|
|
99
104
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export interface Payload {
|
|
2
|
-
external_id
|
|
2
|
+
external_id?: string;
|
|
3
3
|
lookup_field: string;
|
|
4
4
|
data: {
|
|
5
5
|
email?: string;
|
|
@@ -12,3 +12,15 @@ export interface Payload {
|
|
|
12
12
|
batch_size: number;
|
|
13
13
|
event_name: string;
|
|
14
14
|
}
|
|
15
|
+
export interface HookBundle {
|
|
16
|
+
onMappingSave: {
|
|
17
|
+
inputs?: {
|
|
18
|
+
list_id?: string;
|
|
19
|
+
list_name?: string;
|
|
20
|
+
};
|
|
21
|
+
outputs?: {
|
|
22
|
+
id?: string;
|
|
23
|
+
name?: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
}
|
|
@@ -14,12 +14,79 @@ const action = {
|
|
|
14
14
|
batch_size: { ...properties_1.batch_size },
|
|
15
15
|
event_name: { ...properties_1.event_name }
|
|
16
16
|
},
|
|
17
|
-
|
|
17
|
+
hooks: {
|
|
18
|
+
onMappingSave: {
|
|
19
|
+
label: 'Create a new static list in Marketo',
|
|
20
|
+
description: 'When saving this mapping, we will create a static list in Marketo using the fields you provided.',
|
|
21
|
+
inputFields: {
|
|
22
|
+
list_id: {
|
|
23
|
+
type: 'string',
|
|
24
|
+
label: 'List ID',
|
|
25
|
+
description: 'The ID of the Marketo Static List that users will be synced to. If defined, we will not create a new list.',
|
|
26
|
+
required: false
|
|
27
|
+
},
|
|
28
|
+
list_name: {
|
|
29
|
+
type: 'string',
|
|
30
|
+
label: 'List Name',
|
|
31
|
+
description: 'The name of the Marketo Static List that you would like to create.',
|
|
32
|
+
required: false
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
outputTypes: {
|
|
36
|
+
id: {
|
|
37
|
+
type: 'string',
|
|
38
|
+
label: 'ID',
|
|
39
|
+
description: 'The ID of the created Marketo Static List that users will be synced to.',
|
|
40
|
+
required: false
|
|
41
|
+
},
|
|
42
|
+
name: {
|
|
43
|
+
type: 'string',
|
|
44
|
+
label: 'List Name',
|
|
45
|
+
description: 'The name of the created Marketo Static List that users will be synced to.',
|
|
46
|
+
required: false
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
performHook: async (request, { settings, hookInputs, statsContext }) => {
|
|
50
|
+
if (hookInputs.list_id) {
|
|
51
|
+
return functions_1.getList(request, settings, hookInputs.list_id);
|
|
52
|
+
}
|
|
53
|
+
try {
|
|
54
|
+
const input = {
|
|
55
|
+
audienceName: hookInputs.list_name,
|
|
56
|
+
settings: settings
|
|
57
|
+
};
|
|
58
|
+
const listId = await functions_1.createList(request, input, statsContext);
|
|
59
|
+
return {
|
|
60
|
+
successMessage: `List ${listId} created successfully!`,
|
|
61
|
+
savedData: {
|
|
62
|
+
id: listId,
|
|
63
|
+
name: hookInputs.list_name
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
catch (e) {
|
|
68
|
+
return {
|
|
69
|
+
error: {
|
|
70
|
+
message: 'Failed to create list',
|
|
71
|
+
code: 'CREATE_LIST_FAILURE'
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
perform: async (request, { settings, payload, statsContext, hookOutputs }) => {
|
|
18
79
|
statsContext?.statsClient?.incr('addToAudience', 1, statsContext?.tags);
|
|
80
|
+
if (hookOutputs?.retlOnMappingSave?.outputs.id) {
|
|
81
|
+
payload.external_id = hookOutputs?.retlOnMappingSave?.outputs.id;
|
|
82
|
+
}
|
|
19
83
|
return functions_1.addToList(request, settings, [payload], statsContext);
|
|
20
84
|
},
|
|
21
|
-
performBatch: async (request, { settings, payload, statsContext }) => {
|
|
85
|
+
performBatch: async (request, { settings, payload, statsContext, hookOutputs }) => {
|
|
22
86
|
statsContext?.statsClient?.incr('addToAudience.batch', 1, statsContext?.tags);
|
|
87
|
+
if (hookOutputs?.retlOnMappingSave?.outputs.new_list_id) {
|
|
88
|
+
payload[0].external_id = hookOutputs?.retlOnMappingSave?.outputs.new_list_id;
|
|
89
|
+
}
|
|
23
90
|
return functions_1.addToList(request, settings, payload, statsContext);
|
|
24
91
|
}
|
|
25
92
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/marketo-static-lists/addToList/index.ts"],"names":[],"mappings":";;AAGA,8CAAwG;AACxG,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/marketo-static-lists/addToList/index.ts"],"names":[],"mappings":";;AAGA,8CAAwG;AACxG,4CAA6D;AAE7D,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,yDAAyD;IACtE,mBAAmB,EAAE,4BAA4B;IACjD,MAAM,EAAE;QACN,WAAW,EAAE,EAAE,GAAG,wBAAW,EAAE;QAC/B,YAAY,EAAE,EAAE,GAAG,yBAAY,EAAE;QACjC,IAAI,EAAE,EAAE,GAAG,iBAAI,EAAE;QACjB,eAAe,EAAE,EAAE,GAAG,4BAAe,EAAE;QACvC,UAAU,EAAE,EAAE,GAAG,uBAAU,EAAE;QAC7B,UAAU,EAAE,EAAE,GAAG,uBAAU,EAAE;KAC9B;IACD,KAAK,EAAE;QACL,aAAa,EAAE;YACb,KAAK,EAAE,qCAAqC;YAC5C,WAAW,EAAE,kGAAkG;YAC/G,WAAW,EAAE;gBACX,OAAO,EAAE;oBACP,IAAI,EAAE,QAAQ;oBACd,KAAK,EAAE,SAAS;oBAChB,WAAW,EACT,4GAA4G;oBAC9G,QAAQ,EAAE,KAAK;iBAChB;gBACD,SAAS,EAAE;oBACT,IAAI,EAAE,QAAQ;oBACd,KAAK,EAAE,WAAW;oBAClB,WAAW,EAAE,oEAAoE;oBACjF,QAAQ,EAAE,KAAK;iBAChB;aACF;YACD,WAAW,EAAE;gBACX,EAAE,EAAE;oBACF,IAAI,EAAE,QAAQ;oBACd,KAAK,EAAE,IAAI;oBACX,WAAW,EAAE,yEAAyE;oBACtF,QAAQ,EAAE,KAAK;iBAChB;gBACD,IAAI,EAAE;oBACJ,IAAI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AAE,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,YAAY,CAAC,CAAA;IAC9D,CAAC;IACD,YAAY,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,EAAE,EAAE;QAChF,YAAY,EAAE,WAAW,EAAE,IAAI,CAAC,qBAAqB,EAAE,CAAC,EAAE,YAAY,EAAE,IAAI,CAAC,CAAA;QAE7E,IAAI,WAAW,EAAE,iBAAiB,EAAE,OAAO,CAAC,WAAW,EAAE;YACvD,OAAO,CAAC,CAAC,CAAC,CAAC,WAAW,GAAG,WAAW,EAAE,iBAAiB,EAAE,OAAO,CAAC,WAAW,CAAA;SAC7E;QACD,OAAO,qBAAS,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,CAAC,CAAA;IAC5D,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { Settings } from './generated-types';
|
|
1
|
+
export declare const OAUTH_ENDPOINT = "identity/oauth/token";
|
|
3
2
|
export declare const GET_FOLDER_ENDPOINT: string;
|
|
4
3
|
export declare const CREATE_LIST_ENDPOINT: string;
|
|
5
4
|
export declare const GET_LIST_ENDPOINT: string;
|
|
@@ -56,4 +55,12 @@ export interface MarketoLeads {
|
|
|
56
55
|
updatedAt: string;
|
|
57
56
|
createdAt: string;
|
|
58
57
|
}
|
|
59
|
-
export
|
|
58
|
+
export interface CreateListInput {
|
|
59
|
+
audienceName: string;
|
|
60
|
+
settings: {
|
|
61
|
+
client_id: string;
|
|
62
|
+
client_secret: string;
|
|
63
|
+
api_endpoint: string;
|
|
64
|
+
folder_name: string;
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.CSV_LIMIT = exports.REMOVE_USERS_ENDPOINT = exports.GET_LEADS_ENDPOINT = exports.BULK_IMPORT_ENDPOINT = exports.GET_LIST_ENDPOINT = exports.CREATE_LIST_ENDPOINT = exports.GET_FOLDER_ENDPOINT = exports.OAUTH_ENDPOINT = void 0;
|
|
4
4
|
const API_VERSION = 'v1';
|
|
5
|
-
|
|
5
|
+
exports.OAUTH_ENDPOINT = 'identity/oauth/token';
|
|
6
6
|
exports.GET_FOLDER_ENDPOINT = `/rest/asset/${API_VERSION}/folder/byName.json?name=folderName`;
|
|
7
7
|
exports.CREATE_LIST_ENDPOINT = `/rest/asset/${API_VERSION}/staticLists.json?folder=folderId&name=listName`;
|
|
8
8
|
exports.GET_LIST_ENDPOINT = `/rest/asset/${API_VERSION}/staticList/listId.json`;
|
|
@@ -10,16 +10,4 @@ exports.BULK_IMPORT_ENDPOINT = `/bulk/${API_VERSION}/leads.json?format=csv&listI
|
|
|
10
10
|
exports.GET_LEADS_ENDPOINT = `/rest/${API_VERSION}/leads.json?filterType=field&filterValues=emailsToFilter`;
|
|
11
11
|
exports.REMOVE_USERS_ENDPOINT = `/rest/${API_VERSION}/lists/listId/leads.json?id=idsToDelete`;
|
|
12
12
|
exports.CSV_LIMIT = 10000000;
|
|
13
|
-
async function getAccessToken(request, settings) {
|
|
14
|
-
const res = await request(`${settings.api_endpoint}/${OAUTH_ENDPOINT}`, {
|
|
15
|
-
method: 'POST',
|
|
16
|
-
body: new URLSearchParams({
|
|
17
|
-
client_id: settings.client_id,
|
|
18
|
-
client_secret: settings.client_secret,
|
|
19
|
-
grant_type: 'client_credentials'
|
|
20
|
-
})
|
|
21
|
-
});
|
|
22
|
-
return res.data.access_token;
|
|
23
|
-
}
|
|
24
|
-
exports.getAccessToken = getAccessToken;
|
|
25
13
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/destinations/marketo-static-lists/constants.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/destinations/marketo-static-lists/constants.ts"],"names":[],"mappings":";;;AAAA,MAAM,WAAW,GAAG,IAAI,CAAA;AACX,QAAA,cAAc,GAAG,sBAAsB,CAAA;AACvC,QAAA,mBAAmB,GAAG,eAAe,WAAW,qCAAqC,CAAA;AACrF,QAAA,oBAAoB,GAAG,eAAe,WAAW,iDAAiD,CAAA;AAClG,QAAA,iBAAiB,GAAG,eAAe,WAAW,yBAAyB,CAAA;AACvE,QAAA,oBAAoB,GAAG,SAAS,WAAW,oEAAoE,CAAA;AAC/G,QAAA,kBAAkB,GAAG,SAAS,WAAW,0DAA0D,CAAA;AACnG,QAAA,qBAAqB,GAAG,SAAS,WAAW,yCAAyC,CAAA;AAErF,QAAA,SAAS,GAAG,QAAQ,CAAA"}
|
|
@@ -2,7 +2,24 @@ import { RequestClient, StatsContext } from '@segment/actions-core';
|
|
|
2
2
|
import { Settings } from './generated-types';
|
|
3
3
|
import { Payload as AddToListPayload } from './addToList/generated-types';
|
|
4
4
|
import { Payload as RemoveFromListPayload } from './removeFromList/generated-types';
|
|
5
|
-
import { MarketoBulkImportResponse, MarketoDeleteLeadsResponse } from './constants';
|
|
5
|
+
import { MarketoBulkImportResponse, MarketoDeleteLeadsResponse, CreateListInput } from './constants';
|
|
6
6
|
export declare function formatEndpoint(endpoint: string): string;
|
|
7
7
|
export declare function addToList(request: RequestClient, settings: Settings, payloads: AddToListPayload[], statsContext?: StatsContext): Promise<MarketoBulkImportResponse>;
|
|
8
8
|
export declare function removeFromList(request: RequestClient, settings: Settings, payloads: RemoveFromListPayload[], statsContext?: StatsContext): Promise<MarketoDeleteLeadsResponse>;
|
|
9
|
+
export declare function getAccessToken(request: RequestClient, settings: Settings): Promise<string>;
|
|
10
|
+
export declare function getList(request: RequestClient, settings: Settings, id: string): Promise<{
|
|
11
|
+
error: {
|
|
12
|
+
message: string;
|
|
13
|
+
code: string;
|
|
14
|
+
};
|
|
15
|
+
successMessage?: undefined;
|
|
16
|
+
savedData?: undefined;
|
|
17
|
+
} | {
|
|
18
|
+
successMessage: string;
|
|
19
|
+
savedData: {
|
|
20
|
+
id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
};
|
|
23
|
+
error?: undefined;
|
|
24
|
+
}>;
|
|
25
|
+
export declare function createList(request: RequestClient, input: CreateListInput, statsContext?: StatsContext): Promise<string>;
|