@segment/action-destinations 3.239.5-staging.1 → 3.240.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/destinations/courier/generated-types.d.ts +4 -0
- package/dist/destinations/courier/generated-types.js.map +1 -0
- package/dist/destinations/courier/index.js +44 -0
- package/dist/destinations/courier/index.js.map +1 -0
- package/dist/destinations/courier/postToCourier/generated-types.d.ts +5 -0
- package/dist/destinations/courier/postToCourier/generated-types.js.map +1 -0
- package/dist/destinations/courier/postToCourier/index.js +35 -0
- package/dist/destinations/courier/postToCourier/index.js.map +1 -0
- package/dist/destinations/facebook-conversions-api/constants.d.ts +1 -1
- package/dist/destinations/facebook-conversions-api/constants.js +1 -1
- package/dist/destinations/index.js +5 -0
- package/dist/destinations/index.js.map +1 -1
- package/dist/destinations/kameleoon/index.js +1 -1
- package/dist/destinations/kameleoon/index.js.map +1 -1
- package/dist/destinations/linkedin-conversions/api/api.test.js +1 -1
- package/dist/destinations/linkedin-conversions/api/api.test.js.map +1 -1
- package/dist/destinations/linkedin-conversions/api/index.d.ts +1 -1
- package/dist/destinations/linkedin-conversions/api/index.js +4 -4
- package/dist/destinations/linkedin-conversions/api/index.js.map +1 -1
- package/dist/destinations/schematic/generated-types.d.ts +3 -0
- package/dist/destinations/schematic/generated-types.js.map +1 -0
- package/dist/destinations/schematic/identifyUser/generated-types.d.ts +18 -0
- package/dist/destinations/schematic/identifyUser/generated-types.js.map +1 -0
- package/dist/destinations/schematic/identifyUser/index.d.ts +5 -0
- package/dist/destinations/schematic/identifyUser/index.js +114 -0
- package/dist/destinations/schematic/identifyUser/index.js.map +1 -0
- package/dist/destinations/schematic/index.d.ts +4 -0
- package/dist/destinations/schematic/index.js +58 -0
- package/dist/destinations/schematic/index.js.map +1 -0
- package/dist/destinations/schematic/trackEvent/generated-types.d.ts +13 -0
- package/dist/destinations/schematic/trackEvent/generated-types.js +3 -0
- package/dist/destinations/schematic/trackEvent/generated-types.js.map +1 -0
- package/dist/destinations/schematic/trackEvent/index.d.ts +5 -0
- package/dist/destinations/schematic/trackEvent/index.js +89 -0
- package/dist/destinations/schematic/trackEvent/index.js.map +1 -0
- package/dist/destinations/surveysparrow/createContact/generated-types.d.ts +10 -0
- package/dist/destinations/surveysparrow/createContact/generated-types.js +3 -0
- package/dist/destinations/surveysparrow/createContact/generated-types.js.map +1 -0
- package/dist/destinations/surveysparrow/createContact/index.js +105 -0
- package/dist/destinations/surveysparrow/createContact/index.js.map +1 -0
- package/dist/destinations/surveysparrow/generated-types.d.ts +3 -0
- package/dist/destinations/surveysparrow/generated-types.js +3 -0
- package/dist/destinations/surveysparrow/generated-types.js.map +1 -0
- package/dist/destinations/surveysparrow/index.d.ts +4 -0
- package/dist/destinations/surveysparrow/index.js +40 -0
- package/dist/destinations/surveysparrow/index.js.map +1 -0
- package/dist/destinations/surveysparrow/triggerSurvey/generated-types.d.ts +10 -0
- package/dist/destinations/surveysparrow/triggerSurvey/generated-types.js +3 -0
- package/dist/destinations/surveysparrow/triggerSurvey/generated-types.js.map +1 -0
- package/dist/destinations/surveysparrow/triggerSurvey/index.d.ts +8 -0
- package/dist/destinations/surveysparrow/triggerSurvey/index.js +165 -0
- package/dist/destinations/surveysparrow/triggerSurvey/index.js.map +1 -0
- package/dist/destinations/tiktok-conversions-sandbox/common_fields.d.ts +2 -0
- package/dist/destinations/tiktok-conversions-sandbox/common_fields.js +244 -0
- package/dist/destinations/tiktok-conversions-sandbox/common_fields.js.map +1 -0
- package/dist/destinations/{tiktok-offline-conversions/reportOfflineEvent → tiktok-conversions-sandbox}/formatter.js +11 -11
- package/dist/destinations/tiktok-conversions-sandbox/formatter.js.map +1 -0
- package/dist/destinations/tiktok-conversions-sandbox/generated-types.d.ts +4 -0
- package/dist/destinations/tiktok-conversions-sandbox/generated-types.js +3 -0
- package/dist/destinations/tiktok-conversions-sandbox/generated-types.js.map +1 -0
- package/dist/destinations/tiktok-conversions-sandbox/index.d.ts +4 -0
- package/dist/destinations/tiktok-conversions-sandbox/index.js +247 -0
- package/dist/destinations/tiktok-conversions-sandbox/index.js.map +1 -0
- package/dist/destinations/tiktok-conversions-sandbox/reportWebEvent/generated-types.d.ts +33 -0
- package/dist/destinations/tiktok-conversions-sandbox/reportWebEvent/generated-types.js +3 -0
- package/dist/destinations/tiktok-conversions-sandbox/reportWebEvent/generated-types.js.map +1 -0
- package/dist/destinations/tiktok-conversions-sandbox/reportWebEvent/index.js +16 -0
- package/dist/destinations/tiktok-conversions-sandbox/reportWebEvent/index.js.map +1 -0
- package/dist/destinations/tiktok-conversions-sandbox/utils.d.ts +4 -0
- package/dist/destinations/tiktok-conversions-sandbox/utils.js +65 -0
- package/dist/destinations/tiktok-conversions-sandbox/utils.js.map +1 -0
- package/dist/destinations/tiktok-offline-conversions/common_fields.js +20 -179
- package/dist/destinations/tiktok-offline-conversions/common_fields.js.map +1 -1
- package/dist/destinations/tiktok-offline-conversions/formatter.d.ts +0 -1
- package/dist/destinations/tiktok-offline-conversions/formatter.js +1 -11
- package/dist/destinations/tiktok-offline-conversions/formatter.js.map +1 -1
- package/dist/destinations/tiktok-offline-conversions/index.js +15 -169
- package/dist/destinations/tiktok-offline-conversions/index.js.map +1 -1
- package/dist/destinations/tiktok-offline-conversions/trackNonPaymentOfflineConversion/generated-types.d.ts +2 -25
- package/dist/destinations/tiktok-offline-conversions/trackNonPaymentOfflineConversion/index.js +29 -4
- package/dist/destinations/tiktok-offline-conversions/trackNonPaymentOfflineConversion/index.js.map +1 -1
- package/dist/destinations/tiktok-offline-conversions/trackPaymentOfflineConversion/generated-types.d.ts +5 -18
- package/dist/destinations/tiktok-offline-conversions/trackPaymentOfflineConversion/index.js +126 -5
- package/dist/destinations/tiktok-offline-conversions/trackPaymentOfflineConversion/index.js.map +1 -1
- package/dist/destinations/tiktok-offline-conversions-sandbox/common_fields.d.ts +2 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/common_fields.js +244 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/common_fields.js.map +1 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/formatter.d.ts +3 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/formatter.js +43 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/formatter.js.map +1 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/generated-types.d.ts +4 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/generated-types.js +3 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/generated-types.js.map +1 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/index.d.ts +4 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/index.js +251 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/index.js.map +1 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/reportOfflineEvent/generated-types.js +3 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/reportOfflineEvent/generated-types.js.map +1 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/reportOfflineEvent/index.d.ts +5 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/reportOfflineEvent/index.js.map +1 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/trackNonPaymentOfflineConversion/generated-types.d.ts +33 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/trackNonPaymentOfflineConversion/generated-types.js +3 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/trackNonPaymentOfflineConversion/generated-types.js.map +1 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/trackNonPaymentOfflineConversion/index.d.ts +5 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/trackNonPaymentOfflineConversion/index.js +16 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/trackNonPaymentOfflineConversion/index.js.map +1 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/trackPaymentOfflineConversion/generated-types.d.ts +33 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/trackPaymentOfflineConversion/generated-types.js +3 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/trackPaymentOfflineConversion/generated-types.js.map +1 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/trackPaymentOfflineConversion/index.d.ts +5 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/trackPaymentOfflineConversion/index.js +16 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/trackPaymentOfflineConversion/index.js.map +1 -0
- package/dist/destinations/{tiktok-offline-conversions → tiktok-offline-conversions-sandbox}/utils.js +10 -9
- package/dist/destinations/tiktok-offline-conversions-sandbox/utils.js.map +1 -0
- package/package.json +4 -4
- package/dist/destinations/engage/sendgrid/Profile.d.ts +0 -6
- package/dist/destinations/engage/sendgrid/Profile.js +0 -3
- package/dist/destinations/engage/sendgrid/Profile.js.map +0 -1
- package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.d.ts +0 -21
- package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.js +0 -174
- package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.js.map +0 -1
- package/dist/destinations/responsys/asyncMergePetRecords/generated-types.d.ts +0 -14
- package/dist/destinations/responsys/asyncMergePetRecords/generated-types.js.map +0 -1
- 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.map +0 -1
- package/dist/destinations/responsys/asyncMergeProfileListMembers/index.js +0 -174
- package/dist/destinations/responsys/asyncMergeProfileListMembers/index.js.map +0 -1
- package/dist/destinations/responsys/generated-types.d.ts +0 -5
- package/dist/destinations/responsys/generated-types.js.map +0 -1
- package/dist/destinations/responsys/index.js +0 -62
- package/dist/destinations/responsys/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/responsys/types.d.ts +0 -37
- package/dist/destinations/responsys/types.js +0 -3
- package/dist/destinations/responsys/types.js.map +0 -1
- package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/formatter.js.map +0 -1
- package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/generated-types.js.map +0 -1
- package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/index.js.map +0 -1
- package/dist/destinations/tiktok-offline-conversions/utils.js.map +0 -1
- package/dist/destinations/{responsys/asyncMergePetRecords → courier}/generated-types.js +0 -0
- package/dist/destinations/{responsys → courier}/index.d.ts +0 -0
- package/dist/destinations/{responsys/asyncMergeProfileListMembers → courier/postToCourier}/generated-types.js +0 -0
- package/dist/destinations/{responsys/asyncMergePetRecords → courier/postToCourier}/index.d.ts +0 -0
- package/dist/destinations/{responsys → schematic}/generated-types.js +0 -0
- package/dist/destinations/{tiktok-offline-conversions/reportOfflineEvent → schematic/identifyUser}/generated-types.js +0 -0
- package/dist/destinations/{responsys/asyncMergeProfileListMembers → surveysparrow/createContact}/index.d.ts +0 -0
- package/dist/destinations/{tiktok-offline-conversions/reportOfflineEvent → tiktok-conversions-sandbox}/formatter.d.ts +1 -1
- /package/dist/destinations/{tiktok-offline-conversions/reportOfflineEvent → tiktok-conversions-sandbox/reportWebEvent}/index.d.ts +0 -0
- /package/dist/destinations/{tiktok-offline-conversions → tiktok-offline-conversions-sandbox}/reportOfflineEvent/generated-types.d.ts +0 -0
- /package/dist/destinations/{tiktok-offline-conversions → tiktok-offline-conversions-sandbox}/reportOfflineEvent/index.js +0 -0
- /package/dist/destinations/{tiktok-offline-conversions → tiktok-offline-conversions-sandbox}/utils.d.ts +0 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const action = {
|
|
4
|
+
title: 'Track Event',
|
|
5
|
+
description: 'Send track events to Schematic',
|
|
6
|
+
defaultSubscription: 'type = "track"',
|
|
7
|
+
fields: {
|
|
8
|
+
event_name: {
|
|
9
|
+
label: 'Event name',
|
|
10
|
+
description: 'Name of event',
|
|
11
|
+
type: 'string',
|
|
12
|
+
required: true,
|
|
13
|
+
default: { '@path': '$.event' }
|
|
14
|
+
},
|
|
15
|
+
company_keys: {
|
|
16
|
+
label: 'Company keys',
|
|
17
|
+
description: 'Key-value pairs associated with a company (e.g. organization_id: 123456)',
|
|
18
|
+
type: 'object',
|
|
19
|
+
defaultObjectUI: 'keyvalue',
|
|
20
|
+
required: false,
|
|
21
|
+
properties: {
|
|
22
|
+
groupId: {
|
|
23
|
+
label: 'groupId',
|
|
24
|
+
description: 'Segment groupId',
|
|
25
|
+
type: 'string',
|
|
26
|
+
required: false
|
|
27
|
+
},
|
|
28
|
+
organization_id: {
|
|
29
|
+
label: 'Organization ID',
|
|
30
|
+
description: 'Organization ID',
|
|
31
|
+
type: 'string',
|
|
32
|
+
required: false
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
default: {
|
|
36
|
+
groupId: {
|
|
37
|
+
'@if': {
|
|
38
|
+
exists: { '@path': '$.groupId' },
|
|
39
|
+
then: { '@path': '$.groupId' },
|
|
40
|
+
else: { '@path': '$.context.groupId' }
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
organization_id: { '@path': '$.properties.organization_id' }
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
user_keys: {
|
|
47
|
+
label: 'User keys',
|
|
48
|
+
description: 'Key-value pairs associated with a user (e.g. email: example@example.com)',
|
|
49
|
+
type: 'object',
|
|
50
|
+
required: false,
|
|
51
|
+
defaultObjectUI: 'keyvalue',
|
|
52
|
+
properties: {
|
|
53
|
+
userId: {
|
|
54
|
+
label: 'userId',
|
|
55
|
+
description: 'Segment userId',
|
|
56
|
+
type: 'string',
|
|
57
|
+
required: false
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
default: {
|
|
61
|
+
userId: { '@path': '$.userId' }
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
traits: {
|
|
65
|
+
label: 'Traits',
|
|
66
|
+
description: 'Additional properties to send with event',
|
|
67
|
+
type: 'object',
|
|
68
|
+
defaultObjectUI: 'keyvalue',
|
|
69
|
+
required: false
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
perform: (request, { settings, payload }) => {
|
|
73
|
+
return request('https://api.schematichq.com/events', {
|
|
74
|
+
method: 'post',
|
|
75
|
+
headers: { 'X-Schematic-Api-Key': `${settings.apiKey}` },
|
|
76
|
+
json: {
|
|
77
|
+
body: {
|
|
78
|
+
company: payload.company_keys,
|
|
79
|
+
user: payload.user_keys,
|
|
80
|
+
traits: payload.traits,
|
|
81
|
+
event: payload.event_name
|
|
82
|
+
},
|
|
83
|
+
event_type: 'track'
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
exports.default = action;
|
|
89
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/schematic/trackEvent/index.ts"],"names":[],"mappings":";;AAIA,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,gCAAgC;IAC7C,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE;QACN,UAAU,EAAE;YACV,KAAK,EAAE,YAAY;YACnB,WAAW,EAAE,eAAe;YAC5B,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;SAChC;QACD,YAAY,EAAE;YACZ,KAAK,EAAE,cAAc;YACrB,WAAW,EAAE,0EAA0E;YACvF,IAAI,EAAE,QAAQ;YACd,eAAe,EAAE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E;YACnD,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,EAAE,qBAAqB,EAAE,GAAG,QAAQ,CAAC,MAAM,EAAE,EAAE;YACxD,IAAI,EAAE;gBACJ,IAAI,EAAE;oBACJ,OAAO,EAAE,OAAO,CAAC,YAAY;oBAC7B,IAAI,EAAE,OAAO,CAAC,SAAS;oBACvB,MAAM,EAAE,OAAO,CAAC,MAAM;oBACtB,KAAK,EAAE,OAAO,CAAC,UAAU;iBAC1B;gBACD,UAAU,EAAE,OAAO;aACpB;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/surveysparrow/createContact/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const actions_core_1 = require("@segment/actions-core");
|
|
4
|
+
const action = {
|
|
5
|
+
title: 'Create or Update Contact in SurveySparrow',
|
|
6
|
+
defaultSubscription: 'type=identify',
|
|
7
|
+
description: 'This Action will create a new Contact or update an existing Contact in SurveySparrow. One of Email or Mobile are mandatory when creating a Contact.',
|
|
8
|
+
fields: {
|
|
9
|
+
full_name: {
|
|
10
|
+
label: 'Name',
|
|
11
|
+
type: 'string',
|
|
12
|
+
description: 'Full name of the Contact',
|
|
13
|
+
default: {
|
|
14
|
+
'@if': {
|
|
15
|
+
exists: { '@path': '$.properties.name' },
|
|
16
|
+
then: { '@path': '$.properties.name' },
|
|
17
|
+
else: { '@path': '$.context.traits.name' }
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
phone: {
|
|
22
|
+
label: 'Phone',
|
|
23
|
+
type: 'string',
|
|
24
|
+
description: 'Non Mobile Phone number for the Contact. This should include + followed by Country Code. For Example, +18004810410',
|
|
25
|
+
default: {
|
|
26
|
+
'@if': {
|
|
27
|
+
exists: { '@path': '$.properties.phone' },
|
|
28
|
+
then: { '@path': '$.properties.phone' },
|
|
29
|
+
else: { '@path': '$.context.traits.phone' }
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
mobile: {
|
|
34
|
+
label: 'Mobile',
|
|
35
|
+
type: 'string',
|
|
36
|
+
description: 'Mobile number for the Contact. This should include + followed by Country Code. For Example, +18004810410',
|
|
37
|
+
default: {
|
|
38
|
+
'@if': {
|
|
39
|
+
exists: { '@path': '$.properties.mobile' },
|
|
40
|
+
then: { '@path': '$.properties.mobile' },
|
|
41
|
+
else: { '@path': '$.context.traits.mobile' }
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
email: {
|
|
46
|
+
label: 'Email',
|
|
47
|
+
type: 'string',
|
|
48
|
+
format: 'email',
|
|
49
|
+
description: 'Email Address for the Contact',
|
|
50
|
+
default: {
|
|
51
|
+
'@if': {
|
|
52
|
+
exists: { '@path': '$.properties.email' },
|
|
53
|
+
then: { '@path': '$.properties.email' },
|
|
54
|
+
else: { '@path': '$.context.traits.email' }
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
job_title: {
|
|
59
|
+
label: 'Job Title',
|
|
60
|
+
type: 'string',
|
|
61
|
+
description: 'Job Title for the Contact',
|
|
62
|
+
default: {
|
|
63
|
+
'@if': {
|
|
64
|
+
exists: { '@path': '$.properties.job_title' },
|
|
65
|
+
then: { '@path': '$.properties.job_title' },
|
|
66
|
+
else: { '@path': '$.context.traits.job_title' }
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
custom_fields: {
|
|
71
|
+
label: 'Custom Contact Properties',
|
|
72
|
+
type: 'object',
|
|
73
|
+
defaultObjectUI: 'keyvalue',
|
|
74
|
+
description: 'Key:Value Custom Properties to be added to the Contact in SurveySparrow. [Contact Property](https://support.surveysparrow.com/hc/en-us/articles/7078996288925-How-to-add-custom-properties-to-your-contact) should be created in SurveySparrow in advance.',
|
|
75
|
+
default: {
|
|
76
|
+
'@if': {
|
|
77
|
+
exists: { '@path': '$.properties.custom_fields' },
|
|
78
|
+
then: { '@path': '$.properties.custom_fields' },
|
|
79
|
+
else: { '@path': '$.context.traits.custom_fields' }
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
perform: (request, { payload }) => {
|
|
85
|
+
if (payload.email || payload.mobile) {
|
|
86
|
+
const transformedPayload = {
|
|
87
|
+
full_name: payload.full_name,
|
|
88
|
+
phone: payload.phone,
|
|
89
|
+
mobile: payload.mobile,
|
|
90
|
+
email: payload.email,
|
|
91
|
+
job_title: payload.job_title,
|
|
92
|
+
...payload.custom_fields
|
|
93
|
+
};
|
|
94
|
+
return request('https://api.surveysparrow.com/v3/contacts', {
|
|
95
|
+
method: 'post',
|
|
96
|
+
json: transformedPayload
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
throw new actions_core_1.PayloadValidationError('Either Email or Mobile are required');
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
exports.default = action;
|
|
105
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/surveysparrow/createContact/index.ts"],"names":[],"mappings":";;AAAA,wDAAgF;AAIhF,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,2CAA2C;IAClD,mBAAmB,EAAE,eAAe;IACpC,WAAW,EACT,qJAAqJ;IACvJ,MAAM,EAAE;QACN,SAAS,EAAE;YACT,KAAK,EAAE,MAAM;YACb,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,0BAA0B;YACvC,OAAO,EAAE;gBACP,KAAK,EAAE;oBACL,MAAM,EAAE,EAAE,OAAO,EAAE,mBAAmB,EAAE;o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E,EAAE,OAAO,EAAE,wBAAwB,EAAE;oBAC3C,IAAI,EAAE,EAAE,OAAO,EAAE,4BAA4B,EAAE;iBAChD;aACF;SACF;QACD,aAAa,EAAE;YACb,KAAK,EAAE,2BAA2B;YAClC,IAAI,EAAE,QAAQ;YACd,eAAe,EAAE,UAAU;YAC3B,WAAW,EACT,4PAA4P;YAC9P,OAAO,EAAE;gBACP,KAAK,EAAE;oBACL,MAAM,EAAE,EAAE,OAAO,EAAE,4BAA4B,EAAE;oBACjD,IAAI,EAAE,EAAE,OAAO,EAAE,4BAA4B,EAAE;oBAC/C,IAAI,EAAE,EAAE,OAAO,EAAE,gCAAgC,EAAE;iBACpD;aACF;SACF;KACF;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QAChC,IAAI,OAAO,CAAC,KAAK,IAAI,OAAO,CAAC,MAAM,EAAE;YACnC,MAAM,kBAAkB,GAAG;gBACzB,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,KAAK,EAAE,OAAO,CAAC,KAAK;gBACpB,MAAM,EAAE,OAAO,CAAC,MAAM;gBACtB,KAAK,EAAE,OAAO,CAAC,KAAK;gBACpB,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,GAAG,OAAO,CAAC,aAAa;aACzB,CAAA;YACD,OAAO,OAAO,CAAC,2CAA2C,EAAE;gBAC1D,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE,kBAAkB;aACzB,CAAC,CAAA;SACH;aAAM;YACL,MAAM,IAAI,qCAAsB,CAAC,qCAAqC,CAAC,CAAA;SACxE;IACH,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../src/destinations/surveysparrow/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
const createContact_1 = __importDefault(require("./createContact"));
|
|
7
|
+
const triggerSurvey_1 = __importDefault(require("./triggerSurvey"));
|
|
8
|
+
const destination = {
|
|
9
|
+
name: 'Surveysparrow',
|
|
10
|
+
slug: 'actions-surveysparrow',
|
|
11
|
+
mode: 'cloud',
|
|
12
|
+
description: 'Trigger Surveys and Create Contacts in SurveySparrow',
|
|
13
|
+
authentication: {
|
|
14
|
+
scheme: 'custom',
|
|
15
|
+
fields: {
|
|
16
|
+
apiToken: {
|
|
17
|
+
label: 'Access Token',
|
|
18
|
+
description: 'SurveySparrow Access Token can be found in Settings > Apps and Integrations > Create a Custom app',
|
|
19
|
+
type: 'password',
|
|
20
|
+
required: true
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
testAuthentication: (request) => {
|
|
24
|
+
return request(`https://api.surveysparrow.com/v3/users`, {
|
|
25
|
+
method: 'get'
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
extendRequest({ settings }) {
|
|
30
|
+
return {
|
|
31
|
+
headers: { Authorization: `Bearer ${settings.apiToken}` }
|
|
32
|
+
};
|
|
33
|
+
},
|
|
34
|
+
actions: {
|
|
35
|
+
createContact: createContact_1.default,
|
|
36
|
+
triggerSurvey: triggerSurvey_1.default
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
exports.default = destination;
|
|
40
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/surveysparrow/index.ts"],"names":[],"mappings":";;;;;AAGA,oEAA2C;AAE3C,oEAA2C;AAE3C,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE,uBAAuB;IAC7B,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,sDAAsD;IAEnE,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,QAAQ,EAAE;gBACR,KAAK,EAAE,cAAc;gBACrB,WAAW,EACT,mGAAmG;gBACrG,IAAI,EAAE,UAAU;gBAChB,QAAQ,EAAE,IAAI;aACf;SACF;QACD,kBAAkB,EAAE,CAAC,OAAO,EAAE,EAAE;YAC9B,OAAO,OAAO,CAAC,wCAAwC,EAAE;gBACvD,MAAM,EAAE,KAAK;aACd,CAAC,CAAA;QACJ,CAAC;KACF;IACD,aAAa,CAAC,EAAE,QAAQ,EAAE;QACxB,OAAO;YACL,OAAO,EAAE,EAAE,aAAa,EAAE,UAAU,QAAQ,CAAC,QAAQ,EAAE,EAAE;SAC1D,CAAA;IACH,CAAC;IAED,OAAO,EAAE;QACP,aAAa,EAAb,uBAAa;QACb,aAAa,EAAb,uBAAa;KACd;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/surveysparrow/triggerSurvey/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ActionDefinition } from '@segment/actions-core';
|
|
2
|
+
import type { Settings } from '../generated-types';
|
|
3
|
+
import type { Payload } from './generated-types';
|
|
4
|
+
import { DynamicFieldResponse } from '@segment/actions-core';
|
|
5
|
+
import { RequestClient } from '@segment/actions-core';
|
|
6
|
+
export declare function getSurveys(request: RequestClient): Promise<DynamicFieldResponse>;
|
|
7
|
+
declare const action: ActionDefinition<Settings, Payload>;
|
|
8
|
+
export default action;
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getSurveys = void 0;
|
|
4
|
+
const actions_core_1 = require("@segment/actions-core");
|
|
5
|
+
async function getSurveys(request) {
|
|
6
|
+
const choices = [];
|
|
7
|
+
try {
|
|
8
|
+
let has_next_page = false;
|
|
9
|
+
let page = 1;
|
|
10
|
+
do {
|
|
11
|
+
const response = await request(`https://api.surveysparrow.com/v3/surveys?page=${page}`, {
|
|
12
|
+
method: 'get'
|
|
13
|
+
});
|
|
14
|
+
const data = JSON.parse(response.content);
|
|
15
|
+
const surveys = data.data;
|
|
16
|
+
for (const survey of surveys) {
|
|
17
|
+
choices.push({
|
|
18
|
+
label: `${survey.name}`,
|
|
19
|
+
value: survey.id
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
page++;
|
|
23
|
+
has_next_page = data.has_next_page;
|
|
24
|
+
} while (has_next_page);
|
|
25
|
+
}
|
|
26
|
+
catch (err) {
|
|
27
|
+
return getError(err);
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
choices
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
exports.getSurveys = getSurveys;
|
|
34
|
+
async function getError(err) {
|
|
35
|
+
const errResponse = err?.response;
|
|
36
|
+
const errorBody = await errResponse.json();
|
|
37
|
+
return {
|
|
38
|
+
choices: [],
|
|
39
|
+
error: {
|
|
40
|
+
message: errorBody?.meta?.error?.errorMessage ?? 'Unknown Error',
|
|
41
|
+
code: errResponse?.status.toString() ?? '500'
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
const action = {
|
|
46
|
+
title: 'Trigger Survey in SurveySparrow',
|
|
47
|
+
defaultSubscription: 'type=track and event="Trigger Survey"',
|
|
48
|
+
description: 'This Action will trigger a SurveySparrow survey to a user via Email, SMS or WhatsApp. The [Survey](https://support.surveysparrow.com/hc/en-us/articles/7079412445213-How-to-create-surveys-using-SurveySparrow) and required Share [Channel](https://support.surveysparrow.com/hc/en-us/articles/7078359450269-How-to-share-surveys-across-different-channels) should be created in SurveySparrow.',
|
|
49
|
+
fields: {
|
|
50
|
+
id: {
|
|
51
|
+
label: 'Channel ID',
|
|
52
|
+
type: 'number',
|
|
53
|
+
required: true,
|
|
54
|
+
description: 'Channel ID is the unique identifier for the Share Channel in SurveySparrow. This can be copied from the URL.',
|
|
55
|
+
default: {
|
|
56
|
+
'@path': '$.properties.channel_id'
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
share_type: {
|
|
60
|
+
label: 'Share Type',
|
|
61
|
+
type: 'string',
|
|
62
|
+
required: true,
|
|
63
|
+
description: 'Type of Survey Share to be triggered',
|
|
64
|
+
choices: [
|
|
65
|
+
{
|
|
66
|
+
label: 'Email',
|
|
67
|
+
value: 'Email'
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
label: 'SMS',
|
|
71
|
+
value: 'SMS'
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
label: 'WhatsApp',
|
|
75
|
+
value: 'WhatsApp'
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
default: {
|
|
79
|
+
'@path': '$.properties.share_type'
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
survey_id: {
|
|
83
|
+
label: 'Survey',
|
|
84
|
+
type: 'number',
|
|
85
|
+
required: true,
|
|
86
|
+
description: 'Select the SurveySparrow Survey you want to trigger',
|
|
87
|
+
dynamic: true,
|
|
88
|
+
default: {
|
|
89
|
+
'@path': '$.properties.survey_id'
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
mobile: {
|
|
93
|
+
label: 'Mobile',
|
|
94
|
+
type: 'string',
|
|
95
|
+
description: 'Mobile number to send Survey to for either SMS or WhatsApp. This should include + followed by Country Code. For Example, +18004810410. Mobile is required for SMS or WhatsApp Shares',
|
|
96
|
+
default: {
|
|
97
|
+
'@if': {
|
|
98
|
+
exists: { '@path': '$.properties.mobile' },
|
|
99
|
+
then: { '@path': '$.properties.mobile' },
|
|
100
|
+
else: { '@path': '$.context.traits.mobile' }
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
email: {
|
|
105
|
+
label: 'Email',
|
|
106
|
+
type: 'string',
|
|
107
|
+
format: 'email',
|
|
108
|
+
description: 'Email address to send Survey to. This is required for an Email Share.',
|
|
109
|
+
default: {
|
|
110
|
+
'@if': {
|
|
111
|
+
exists: { '@path': '$.properties.email' },
|
|
112
|
+
then: { '@path': '$.properties.email' },
|
|
113
|
+
else: { '@path': '$.context.traits.email' }
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
variables: {
|
|
118
|
+
label: 'Variables',
|
|
119
|
+
type: 'object',
|
|
120
|
+
defaultObjectUI: 'keyvalue',
|
|
121
|
+
description: 'Variables you want to pass to SurveySparrow.',
|
|
122
|
+
default: {
|
|
123
|
+
'@path': '$.properties.variables'
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
dynamicFields: {
|
|
128
|
+
survey_id: getSurveys
|
|
129
|
+
},
|
|
130
|
+
perform: (request, data) => {
|
|
131
|
+
switch (data.payload.share_type) {
|
|
132
|
+
case 'Email': {
|
|
133
|
+
if (!data.payload.email) {
|
|
134
|
+
throw new actions_core_1.PayloadValidationError('Email is a Required Field Email Shares');
|
|
135
|
+
}
|
|
136
|
+
else
|
|
137
|
+
break;
|
|
138
|
+
}
|
|
139
|
+
case 'SMS':
|
|
140
|
+
case 'WhatsApp': {
|
|
141
|
+
if (!data.payload.mobile) {
|
|
142
|
+
throw new actions_core_1.PayloadValidationError(`Mobile is a Required Field for ${data.payload.share_type} Shares`);
|
|
143
|
+
}
|
|
144
|
+
else
|
|
145
|
+
break;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
const payload = {
|
|
149
|
+
survey_id: data.payload.survey_id,
|
|
150
|
+
contacts: [
|
|
151
|
+
{
|
|
152
|
+
email: data.payload.email,
|
|
153
|
+
mobile: data.payload.mobile
|
|
154
|
+
}
|
|
155
|
+
],
|
|
156
|
+
variables: data.payload.variables
|
|
157
|
+
};
|
|
158
|
+
return request(`https://api.surveysparrow.com/v3/channels/${data.payload.id}`, {
|
|
159
|
+
method: 'put',
|
|
160
|
+
json: payload
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
exports.default = action;
|
|
165
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/surveysparrow/triggerSurvey/index.ts"],"names":[],"mappings":";;;AAIA,wDAA6E;AAGtE,KAAK,UAAU,UAAU,CAAC,OAAsB;IACrD,MAAM,OAAO,GAAuB,EAAE,CAAA;IACtC,IAAI;QACF,IAAI,aAAa,GAAG,KAAK,CAAA;QACzB,IAAI,IAAI,GAAG,CAAC,CAAA;QACZ,GAAG;YACD,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,iDAAiD,IAAI,EAAE,EAAE;gBACtF,MAAM,EAAE,KAAK;aACd,CAAC,CAAA;YACF,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAA;YACzC,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAA;YACzB,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE;gBAC5B,OAAO,CAAC,IAAI,CAAC;oBACX,KAAK,EAAE,GAAG,MAAM,CAAC,IAAI,EAAE;oBACvB,KAAK,EAAE,MAAM,CAAC,EAAE;iBACjB,CAAC,CAAA;aACH;YACD,IAAI,EAAE,CAAA;YACN,aAAa,GAAG,IAAI,CAAC,aAAa,CAAA;SACnC,QAAQ,aAAa,EAAC;KACxB;IAAC,OAAO,GAAG,EAAE;QACZ,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAA;KACrB;IACD,OAAO;QACL,OAAO;KACR,CAAA;AACH,CAAC;AA1BD,gCA0BC;AAED,KAAK,UAAU,QAAQ,CAAC,GAAY;IAClC,MAAM,WAAW,GAAI,GAAiB,EAAE,QAAQ,CAAA;IAChD,MAAM,S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