@segment/action-destinations 3.127.3-staging.143 → 3.127.3-staging.157
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/braze-cohorts/syncAudiences/index.js +3 -3
- package/dist/destinations/braze-cohorts/syncAudiences/index.js.map +1 -1
- package/dist/destinations/customerio/createUpdateObject/generated-types.d.ts +1 -1
- package/dist/destinations/customerio/createUpdateObject/index.js +5 -5
- package/dist/destinations/customerio/createUpdateObject/index.js.map +1 -1
- package/dist/destinations/customerio/createUpdatePerson/index.js +2 -2
- package/dist/destinations/customerio/createUpdatePerson/index.js.map +1 -1
- package/dist/destinations/engage-messaging-twilio/sendWhatsApp/whatsapp-sender.js +4 -2
- package/dist/destinations/engage-messaging-twilio/sendWhatsApp/whatsapp-sender.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/index.js +1 -1
- package/dist/destinations/google-enhanced-conversions/index.js.map +1 -1
- package/dist/destinations/heap/constants.d.ts +1 -1
- package/dist/destinations/heap/constants.js +2 -2
- package/dist/destinations/heap/constants.js.map +1 -1
- package/dist/destinations/heap/trackEvent/generated-types.d.ts +1 -1
- package/dist/destinations/heap/trackEvent/index.js +13 -10
- package/dist/destinations/heap/trackEvent/index.js.map +1 -1
- package/dist/destinations/saleswings/api.d.ts +35 -0
- package/dist/destinations/saleswings/api.js +19 -0
- package/dist/destinations/saleswings/api.js.map +1 -0
- package/dist/destinations/saleswings/common.d.ts +5 -0
- package/dist/destinations/saleswings/common.js +37 -0
- package/dist/destinations/saleswings/common.js.map +1 -0
- package/dist/destinations/saleswings/converter.d.ts +12 -0
- package/dist/destinations/saleswings/converter.js +34 -0
- package/dist/destinations/saleswings/converter.js.map +1 -0
- package/dist/destinations/saleswings/fields.d.ts +12 -0
- package/dist/destinations/saleswings/fields.js +102 -0
- package/dist/destinations/saleswings/fields.js.map +1 -0
- package/dist/destinations/saleswings/generated-types.d.ts +3 -0
- package/dist/destinations/saleswings/generated-types.js +3 -0
- package/dist/destinations/saleswings/generated-types.js.map +1 -0
- package/dist/destinations/saleswings/index.d.ts +4 -0
- package/dist/destinations/saleswings/index.js +67 -0
- package/dist/destinations/saleswings/index.js.map +1 -0
- package/dist/destinations/saleswings/submitIdentifyEvent/generated-types.d.ts +14 -0
- package/dist/destinations/saleswings/submitIdentifyEvent/generated-types.js +3 -0
- package/dist/destinations/saleswings/submitIdentifyEvent/generated-types.js.map +1 -0
- package/dist/destinations/saleswings/submitIdentifyEvent/index.d.ts +5 -0
- package/dist/destinations/saleswings/submitIdentifyEvent/index.js +39 -0
- package/dist/destinations/saleswings/submitIdentifyEvent/index.js.map +1 -0
- package/dist/destinations/saleswings/submitPageEvent/generated-types.d.ts +8 -0
- package/dist/destinations/saleswings/submitPageEvent/generated-types.js +3 -0
- package/dist/destinations/saleswings/submitPageEvent/generated-types.js.map +1 -0
- package/dist/destinations/saleswings/submitPageEvent/index.d.ts +5 -0
- package/dist/destinations/saleswings/submitPageEvent/index.js +35 -0
- package/dist/destinations/saleswings/submitPageEvent/index.js.map +1 -0
- package/dist/destinations/saleswings/submitScreenEvent/generated-types.d.ts +14 -0
- package/dist/destinations/saleswings/submitScreenEvent/generated-types.js +3 -0
- package/dist/destinations/saleswings/submitScreenEvent/generated-types.js.map +1 -0
- package/dist/destinations/saleswings/submitScreenEvent/index.d.ts +5 -0
- package/dist/destinations/saleswings/submitScreenEvent/index.js +42 -0
- package/dist/destinations/saleswings/submitScreenEvent/index.js.map +1 -0
- package/dist/destinations/saleswings/submitTrackEvent/generated-types.d.ts +14 -0
- package/dist/destinations/saleswings/submitTrackEvent/generated-types.js +3 -0
- package/dist/destinations/saleswings/submitTrackEvent/generated-types.js.map +1 -0
- package/dist/destinations/saleswings/submitTrackEvent/index.d.ts +5 -0
- package/dist/destinations/saleswings/submitTrackEvent/index.js +42 -0
- package/dist/destinations/saleswings/submitTrackEvent/index.js.map +1 -0
- package/dist/destinations/saleswings/testing.d.ts +10 -0
- package/dist/destinations/saleswings/testing.js +55 -0
- package/dist/destinations/saleswings/testing.js.map +1 -0
- package/package.json +2 -2
|
@@ -21,7 +21,7 @@ const action = {
|
|
|
21
21
|
},
|
|
22
22
|
user_alias: {
|
|
23
23
|
label: 'User Alias Object',
|
|
24
|
-
description: '
|
|
24
|
+
description: 'Alternate unique user identifier, this is required if External User ID or Device ID is not set. Refer [Braze Documentation](https://www.braze.com/docs/api/objects_filters/user_alias_object) for more details.',
|
|
25
25
|
type: 'object',
|
|
26
26
|
properties: {
|
|
27
27
|
alias_name: {
|
|
@@ -38,7 +38,7 @@ const action = {
|
|
|
38
38
|
},
|
|
39
39
|
device_id: {
|
|
40
40
|
label: 'Device ID',
|
|
41
|
-
description: '
|
|
41
|
+
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.',
|
|
42
42
|
type: 'string'
|
|
43
43
|
},
|
|
44
44
|
cohort_id: {
|
|
@@ -73,7 +73,7 @@ const action = {
|
|
|
73
73
|
},
|
|
74
74
|
event_properties: {
|
|
75
75
|
label: 'Event Properties',
|
|
76
|
-
description: '
|
|
76
|
+
description: 'Displays properties of the event to add/remove users to a cohort and the traits of the specific user',
|
|
77
77
|
type: 'object',
|
|
78
78
|
required: true,
|
|
79
79
|
default: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/braze-cohorts/syncAudiences/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAAyF;AAGzF,gCAAsC;AAGtC,6DAAoC;AAEpC,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,eAAe;IACtB,WAAW,EAAE,+BAA+B;IAC5C,mBAAmB,EAAE,yDAAyD;IAC9E,MAAM,EAAE;QACN,WAAW,EAAE;YACX,KAAK,EAAE,kBAAkB;YACzB,WAAW,EACT,6NAA6N;YAC/N,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,UAAU;aACpB;SACF;QACD,UAAU,EAAE;YACV,KAAK,EAAE,mBAAmB;YAC1B,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/braze-cohorts/syncAudiences/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAAyF;AAGzF,gCAAsC;AAGtC,6DAAoC;AAEpC,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,eAAe;IACtB,WAAW,EAAE,+BAA+B;IAC5C,mBAAmB,EAAE,yDAAyD;IAC9E,MAAM,EAAE;QACN,WAAW,EAAE;YACX,KAAK,EAAE,kBAAkB;YACzB,WAAW,EACT,6NAA6N;YAC/N,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,UAAU;aACpB;SACF;QACD,UAAU,EAAE;YACV,KAAK,EAAE,mBAAmB;YAC1B,WAAW,EACT,iNAAiN;YACnN,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,UAAU,EAAE;oBACV,KAAK,EAAE,YAAY;oBACnB,IAAI,EAAE,QAAQ;oBACd,QAAQ,EAAE,IAAI;iBACf;gBACD,WAAW,EAAE;oBACX,KAAK,EAAE,aAAa;oBACpB,IAAI,EAAE,QAAQ;oBACd,QAAQ,EAAE,IAAI;iBACf;aACF;SACF;QACD,SAAS,EAAE;YACT,KAAK,EAAE,WAAW;YAClB,WAAW,EACT,mKAAmK;YACrK,IAAI,EAAE,QAAQ;SACf;QACD,SAAS,EAAE;YACT,KAAK,EAAE,WAAW;YAClB,WAAW,EAAE,uBAAuB;YACpC,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,mCAAmC;aAC7C;SACF;QACD,WAAW,EAAE;YACX,KAAK,EAAE,aAAa;YACpB,WAAW,EAAE,oBAAoB;YACjC,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,oC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
4
|
const action = {
|
|
5
5
|
title: 'Create or Update Object',
|
|
6
6
|
description: 'Create an object in Customer.io or update them if they exist.',
|
|
7
|
-
defaultSubscription: 'type = "
|
|
7
|
+
defaultSubscription: 'type = "group"',
|
|
8
8
|
fields: {
|
|
9
9
|
id: {
|
|
10
10
|
label: 'Object ID',
|
|
@@ -47,12 +47,12 @@ const action = {
|
|
|
47
47
|
'@path': '$.anonymousId'
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
|
-
|
|
50
|
+
object_type_id: {
|
|
51
51
|
label: 'Object Type Id',
|
|
52
52
|
description: 'The ID used to uniquely identify a custom object type in Customer.io. [Learn more](https://customer.io/docs/object-relationships).',
|
|
53
53
|
type: 'string',
|
|
54
54
|
default: {
|
|
55
|
-
'@path': '$.
|
|
55
|
+
'@path': '$.objectTypeId'
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
convert_timestamp: {
|
|
@@ -65,7 +65,7 @@ const action = {
|
|
|
65
65
|
perform: (request, { settings, payload }) => {
|
|
66
66
|
let createdAt = payload.created_at;
|
|
67
67
|
let customAttributes = payload.custom_attributes;
|
|
68
|
-
const
|
|
68
|
+
const objectTypeID = payload.object_type_id;
|
|
69
69
|
const userID = payload.user_id;
|
|
70
70
|
const objectID = payload.id;
|
|
71
71
|
const anonymousId = payload.anonymous_id;
|
|
@@ -83,7 +83,7 @@ const action = {
|
|
|
83
83
|
body.created_at = createdAt;
|
|
84
84
|
}
|
|
85
85
|
body.type = 'object';
|
|
86
|
-
body.identifiers = {
|
|
86
|
+
body.identifiers = { object_type_id: objectTypeID ?? '1', object_id: objectID };
|
|
87
87
|
if (userID) {
|
|
88
88
|
body.action = 'identify';
|
|
89
89
|
body.cio_relationships = [{ identifiers: { id: userID } }];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/customerio/createUpdateObject/index.ts"],"names":[],"mappings":";;AAGA,oCAA8F;AAE9F,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,yBAAyB;IAChC,WAAW,EAAE,+DAA+D;IAC5E,mBAAmB,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/customerio/createUpdateObject/index.ts"],"names":[],"mappings":";;AAGA,oCAA8F;AAE9F,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,yBAAyB;IAChC,WAAW,EAAE,+DAA+D;IAC5E,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE;QACN,EAAE,EAAE;YACF,KAAK,EAAE,WAAW;YAClB,WAAW,EACT,yHAAyH;YAC3H,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,WAAW;aACrB;SACF;QACD,UAAU,EAAE;YACV,KAAK,EAAE,YAAY;YACnB,WAAW,EAAE,6CAA6C;YAC1D,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,WAAW,EAAE,uBAAuB;aACrC;SACF;QACD,iBAAiB,EAAE;YACjB,KAAK,EAAE,mBAAmB;YAC1B,WAAW,EACT,4GAA4G;YAC9G,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,UAAU;aACpB;SACF;QACD,OAAO,EAAE;YACP,KAAK,EAAE,SAAS;YAChB,WAAW,EACT,mIAAmI;YACrI,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,UAAU;aACpB;SACF;QACD,YAAY,EAAE;YACZ,KAAK,EAAE,cAAc;YACrB,WAAW,EACT,4HAA4H;YAC9H,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,eAAe;aACzB;SACF;QAED,cAAc,EAAE;YACd,KAAK,EAAE,gBAAgB;YACvB,WAAW,EACT,oIAAoI;YACtI,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,gBAAgB;aAC1B;SACF;QACD,iBAAi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AG,oBAAoB,CAAA;YAClC,IAAI,CAAC,iBAAiB,GAAG,CAAC,EAAE,WAAW,EAAE,EAAE,YAAY,EAAE,WAAW,EAAE,EAAE,CAAC,CAAA;SAC1E;QAED,OAAO,OAAO,CAAC,GAAG,wBAAgB,CAAC,QAAQ,CAAC,aAAa,CAAC,gBAAgB,EAAE;YAC1E,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI;SACX,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -48,7 +48,7 @@ const action = {
|
|
|
48
48
|
description: 'The ID used to uniquely identify an object in Customer.io. [Learn more](https://customer.io/docs/object-relationships).',
|
|
49
49
|
type: 'string',
|
|
50
50
|
default: {
|
|
51
|
-
'@
|
|
51
|
+
'@path': '$.context.groupId'
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
custom_attributes: {
|
|
@@ -98,7 +98,7 @@ const action = {
|
|
|
98
98
|
if (objectId) {
|
|
99
99
|
body.cio_relationships = {
|
|
100
100
|
action: 'add_relationships',
|
|
101
|
-
relationships: [{ identifiers: {
|
|
101
|
+
relationships: [{ identifiers: { object_type_id: objectTypeId ?? '1', object_id: objectId } }]
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
104
|
return request(`${utils_1.trackApiEndpoint(settings.accountRegion)}/api/v1/customers/${payload.id}`, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/customerio/createUpdatePerson/index.ts"],"names":[],"mappings":";;AAGA,oCAA8F;AAE9F,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,yBAAyB;IAChC,WAAW,EAAE,8DAA8D;IAC3E,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE;QACN,EAAE,EAAE;YACF,KAAK,EAAE,WAAW;YAClB,WAAW,EACT,mIAAmI;YACrI,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,KAAK,EAAE;oBACL,MAAM,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;oBAC/B,IAAI,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;oBAC7B,IAAI,EAAE,EAAE,OAAO,EAAE,gBAAgB,EAAE;iBACpC;aACF;SACF;QACD,YAAY,EAAE;YACZ,KAAK,EAAE,cAAc;YACrB,WAAW,EACT,yGAAyG;YAC3G,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,eAAe;aACzB;SACF;QACD,KAAK,EAAE;YACL,KAAK,EAAE,eAAe;YACtB,WAAW,EAAE,6BAA6B;YAC1C,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,WAAW,EAAE,kBAAkB;aAChC;SACF;QACD,UAAU,EAAE;YACV,KAAK,EAAE,YAAY;YACnB,WAAW,EAAE,6CAA6C;YAC1D,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,WAAW,EAAE,uBAAuB;aACrC;SACF;QACD,QAAQ,EAAE;YACR,KAAK,EAAE,WAAW;YAClB,WAAW,EACT,yHAAyH;YAC3H,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/customerio/createUpdatePerson/index.ts"],"names":[],"mappings":";;AAGA,oCAA8F;AAE9F,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,yBAAyB;IAChC,WAAW,EAAE,8DAA8D;IAC3E,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE;QACN,EAAE,EAAE;YACF,KAAK,EAAE,WAAW;YAClB,WAAW,EACT,mIAAmI;YACrI,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,KAAK,EAAE;oBACL,MAAM,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;oBAC/B,IAAI,EAAE,EAAE,OAAO,EAAE,UAA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I,gBAAgB,GAAG,OAAO,CAAC,iBAAiB,CAAA;QAChD,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAA;QACjC,MAAM,YAAY,GAAG,OAAO,CAAC,cAAc,CAAA;QAE3C,IAAI,OAAO,CAAC,iBAAiB,KAAK,KAAK,EAAE;YACvC,IAAI,SAAS,EAAE;gBACb,SAAS,GAAG,6BAAqB,CAAC,SAAS,CAAC,CAAA;aAC7C;YAED,IAAI,gBAAgB,EAAE;gBACpB,gBAAgB,GAAG,kCAA0B,CAAC,gBAAgB,CAAC,CAAA;aAChE;SACF;QAED,MAAM,IAAI,GAA4B;YACpC,GAAG,gBAAgB;YACnB,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,YAAY,EAAE,OAAO,CAAC,YAAY;SACnC,CAAA;QAED,IAAI,SAAS,EAAE;YACb,IAAI,CAAC,UAAU,GAAG,SAAS,CAAA;SAC5B;QAGD,IAAI,QAAQ,EAAE;YACZ,IAAI,CAAC,iBAAiB,GAAG;gBACvB,MAAM,EAAE,mBAAmB;gBAC3B,aAAa,EAAE,CAAC,EAAE,WAAW,EAAE,EAAE,cAAc,EAAE,YAAY,IAAI,GAAG,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,CAAC;aAC/F,CAAA;SACF;QAED,OAAO,OAAO,CAAC,GAAG,wBAAgB,CAAC,QAAQ,CAAC,aAAa,CAAC,qBAAqB,OAAO,CAAC,EAAE,EAAE,EAAE;YAC3F,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,IAAI;SACX,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -41,9 +41,11 @@ class WhatsAppMessageSender extends message_sender_1.MessageSender {
|
|
|
41
41
|
return new URLSearchParams(params);
|
|
42
42
|
};
|
|
43
43
|
this.getVariables = async () => {
|
|
44
|
-
if (!this.payload.contentVariables || !this.payload.traits)
|
|
45
|
-
return null;
|
|
46
44
|
try {
|
|
45
|
+
if (!this.payload.traitEnrichment && this.payload.contentVariables)
|
|
46
|
+
return JSON.stringify(this.payload.contentVariables) ?? null;
|
|
47
|
+
if (!this.payload.contentVariables || !this.payload.traits)
|
|
48
|
+
return null;
|
|
47
49
|
const profile = {
|
|
48
50
|
profile: {
|
|
49
51
|
traits: this.payload.traits
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"whatsapp-sender.js","sourceRoot":"","sources":["../../../../src/destinations/engage-messaging-twilio/sendWhatsApp/whatsapp-sender.ts"],"names":[],"mappings":";;;AACA,uCAA6C;AAG7C,wDAAwD;AACxD,4DAAkE;AAClE,iEAA0E;AAG1E,MAAM,SAAS,GAAG,uCAAe,CAAC,WAAW,EAAE,CAAA;AAC/C,MAAM,MAAM,GAAG,IAAI,iBAAQ,EAAE,CAAA;AAE7B,MAAa,qBAAsB,SAAQ,8BAAsB;IAC/D,YACW,OAAkB,EAClB,OAAgB,EAChB,QAAkB,EAClB,WAAoC,EACpC,IAAsC;QAE/C,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,IAAI,CAAC,CAAA;QAN3C,YAAO,GAAP,OAAO,CAAW;QAClB,YAAO,GAAP,OAAO,CAAS;QAChB,aAAQ,GAAR,QAAQ,CAAU;QAClB,gBAAW,GAAX,WAAW,CAAyB;QACpC,SAAI,GAAJ,IAAI,CAAkC;QAKjD,YAAO,GAAG,KAAK,EAAE,KAAa,EAAE,EAAE;YAChC,IAAI,WAAW,CAAA;YAEf,IAAI;gBAIF,WAAW,GAAG,SAAS,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,CAAC,CAAA;gBAC1C,WAAW,GAAG,SAAS,CAAC,MAAM,CAAC,WAAW,EAAE,yCAAiB,CAAC,IAAI,CAAC,CAAA;gBACnE,WAAW,GAAG,YAAY,WAAW,EAAE,CAAA;aACxC;YAAC,OAAO,KAAc,EAAE;gBACvB,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,yBAAyB,CAAC,CAAA;gBAC1C,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,yCAAyC,EAAE,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;gBAC/E,MAAM,IAAI,+BAAgB,CACxB,wHAAwH,EACxH,eAAe,EACf,GAAG,CACJ,CAAA;aACF;YAED,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE;gBAC5B,MAAM,IAAI,+BAAgB,CAAC,gDAAgD,EAAE,qBAAqB,EAAE,GAAG,CAAC,CAAA;aACzG;YAED,MAAM,MAAM,GAA2B;gBACrC,UAAU,EAAE,IAAI,CAAC,OAAO,CAAC,UAAU;gBACnC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI;gBACvB,EAAE,EAAE,WAAW;aAChB,CAAA;YACD,MAAM,gBAAgB,GAAG,MAAM,IAAI,CAAC,YAAY,EAAE,CAAA;YAElD,IAAI,gBAAgB;gBAAE,MAAM,CAAC,kBAAkB,CAAC,GAAG,gBAAgB,CAAA;YAEnE,OAAO,IAAI,eAAe,CAAC,MAAM,CAAC,CAAA;QACpC,CAAC,CAAA;QAEO,iBAAY,GAAG,KAAK,IAA4B,EAAE;YACxD,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,gBAAgB,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"whatsapp-sender.js","sourceRoot":"","sources":["../../../../src/destinations/engage-messaging-twilio/sendWhatsApp/whatsapp-sender.ts"],"names":[],"mappings":";;;AACA,uCAA6C;AAG7C,wDAAwD;AACxD,4DAAkE;AAClE,iEAA0E;AAG1E,MAAM,SAAS,GAAG,uCAAe,CAAC,WAAW,EAAE,CAAA;AAC/C,MAAM,MAAM,GAAG,IAAI,iBAAQ,EAAE,CAAA;AAE7B,MAAa,qBAAsB,SAAQ,8BAAsB;IAC/D,YACW,OAAkB,EAClB,OAAgB,EAChB,QAAkB,EAClB,WAAoC,EACpC,IAAsC;QAE/C,KA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gB,CAAA;YAEnE,OAAO,IAAI,eAAe,CAAC,MAAM,CAAC,CAAA;QACpC,CAAC,CAAA;QAEO,iBAAY,GAAG,KAAK,IAA4B,EAAE;YACxD,IAAI;gBAIF,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,eAAe,IAAI,IAAI,CAAC,OAAO,CAAC,gBAAgB;oBAChE,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,IAAI,IAAI,CAAA;gBAC9D,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,gBAAgB,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM;oBAAE,OAAO,IAAI,CAAA;gBAEvE,MAAM,OAAO,GAAG;oBACd,OAAO,EAAE;wBACP,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,MAAM;qBAC5B;iBACF,CAAA;gBAED,MAAM,OAAO,GAA2B,EAAE,CAAA;gBAC1C,KAAK,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,EAAE;oBACtE,OAAO,CAAC,GAAG,CAAC,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,GAAa,EAAE,OAAO,CAAC,CAAA;iBACnE;gBAED,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAA;aAC/B;YAAC,OAAO,KAAc,EAAE;gBACvB,MAAM,IAAI,+BAAgB,CACxB,iDAAiD,EACjD,4CAA4C,EAC5C,GAAG,CACJ,CAAA;aACF;QACH,CAAC,CAAA;IAlED,CAAC;CAmEF;AA5ED,sDA4EC"}
|
|
@@ -16,7 +16,7 @@ const destination = {
|
|
|
16
16
|
fields: {
|
|
17
17
|
conversionTrackingId: {
|
|
18
18
|
label: 'Conversion ID',
|
|
19
|
-
description: 'You will find this information in the event snippet for your conversion action, for example `send_to: AW-CONVERSION_ID/AW-CONVERSION_LABEL`. In the sample snippet, AW-CONVERSION_ID stands for the conversion ID unique to your account. Enter the conversion
|
|
19
|
+
description: 'You will find this information in the event snippet for your conversion action, for example `send_to: AW-CONVERSION_ID/AW-CONVERSION_LABEL`. In the sample snippet, AW-CONVERSION_ID stands for the conversion ID unique to your account. Enter the conversion ID, without the AW- prefix. **Required if you are using a mapping that sends data to the legacy Google Enhanced Conversions API (i.e. Upload Enhanced Conversion (Legacy) Action).**',
|
|
20
20
|
type: 'string'
|
|
21
21
|
},
|
|
22
22
|
customerId: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/google-enhanced-conversions/index.ts"],"names":[],"mappings":";;;;;AAEA,sEAA6C;AAC7C,kFAAyD;AACzD,oFAA2D;AAC3D,8FAAqE;AAerE,MAAM,WAAW,GAAoC;IAGnD,IAAI,EAAE,wBAAwB;IAC9B,IAAI,EAAE,qCAAqC;IAC3C,IAAI,EAAE,OAAO;IACb,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,oBAAoB,EAAE;gBACpB,KAAK,EAAE,eAAe;gBACtB,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/google-enhanced-conversions/index.ts"],"names":[],"mappings":";;;;;AAEA,sEAA6C;AAC7C,kFAAyD;AACzD,oFAA2D;AAC3D,8FAAqE;AAerE,MAAM,WAAW,GAAoC;IAGnD,IAAI,EAAE,wBAAwB;IAC9B,IAAI,EAAE,qCAAqC;IAC3C,IAAI,EAAE,OAAO;IACb,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,oBAAoB,EAAE;gBACpB,KAAK,EAAE,eAAe;gBACtB,WAAW,EACT,qbAAqb;gBACvb,IAAI,EAAE,QAAQ;aACf;YACD,UAAU,EAAE;gBACV,KAAK,EAAE,aAAa;gBACpB,WAAW,EACT,oKAAoK;gBACtK,IAAI,EAAE,QAAQ;aACf;SACF;QACD,kBAAkB,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE;YAQrC,OAAO,IAAI,CAAA;QACb,CAAC;QACD,kBAAkB,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;YAC9C,MAAM,GAAG,GAAG,MAAM,OAAO,CAAuB,4CAA4C,EAAE;gBAC5F,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE,IAAI,eAAe,CAAC;oBACxB,aAAa,EAAE,IAAI,CAAC,YAAY;oBAChC,SAAS,EAAE,IAAI,CAAC,QAAQ;oBACxB,aAAa,EAAE,IAAI,CAAC,YAAY;oBAChC,UAAU,EAAE,eAAe;iBAC5B,CAAC;aACH,CAAC,CAAA;YAEF,OAAO,EAAE,WAAW,EAAE,GAAG,CAAC,IAAI,CAAC,YAAY,EAAE,CAAA;QAC/C,CAAC;KACF;IACD,aAAa,CAAC,EAAE,IAAI,EAAE;QACpB,OAAO;YACL,OAAO,EAAE;gBACP,aAAa,EAAE,UAAU,IAAI,EAAE,WAAW,EAAE;aAC7C;SACF,CAAA;IACH,CAAC;IACD,OAAO,EAAE;QACP,cAAc,EAAd,wBAAc;QACd,qBAAqB,EAArB,+BAAqB;QACrB,oBAAoB,EAApB,8BAAoB;QACpB,0BAA0B,EAA1B,oCAA0B;KAC3B;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const HEAP_SEGMENT_CLOUD_LIBRARY_NAME = "cloud-mode-destination";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.HEAP_SEGMENT_CLOUD_LIBRARY_NAME = void 0;
|
|
4
|
+
exports.HEAP_SEGMENT_CLOUD_LIBRARY_NAME = 'cloud-mode-destination';
|
|
5
5
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/destinations/heap/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/destinations/heap/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,+BAA+B,GAAG,wBAAwB,CAAA"}
|
|
@@ -64,12 +64,12 @@ const action = {
|
|
|
64
64
|
'@path': '$.timestamp'
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
|
-
|
|
68
|
-
label: '
|
|
67
|
+
session_id: {
|
|
68
|
+
label: 'Session ID',
|
|
69
69
|
type: 'string',
|
|
70
|
-
description: 'The
|
|
70
|
+
description: 'A Heap session ID. The session ID can be retrived by calling getSessionId() on the heap api. If a session ID is not provided one will be created.',
|
|
71
71
|
default: {
|
|
72
|
-
'@path': '$.
|
|
72
|
+
'@path': '$.session_id'
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
75
|
type: {
|
|
@@ -96,27 +96,30 @@ const action = {
|
|
|
96
96
|
if (!payload.anonymous_id && !payload.identity) {
|
|
97
97
|
throw new actions_core_1.IntegrationError('Either anonymous user id or identity should be specified.');
|
|
98
98
|
}
|
|
99
|
-
const defaultEventProperties = { segment_library:
|
|
99
|
+
const defaultEventProperties = { segment_library: constants_1.HEAP_SEGMENT_CLOUD_LIBRARY_NAME };
|
|
100
100
|
const flatten = flat_1.flat(payload.properties || {});
|
|
101
101
|
const eventProperties = Object.assign(defaultEventProperties, flatten);
|
|
102
|
-
const
|
|
102
|
+
const heapPayload = {
|
|
103
103
|
app_id: settings.appId,
|
|
104
104
|
event: getEventName(payload),
|
|
105
105
|
properties: eventProperties,
|
|
106
106
|
idempotency_key: payload.message_id
|
|
107
107
|
};
|
|
108
108
|
if (payload.anonymous_id && !payload.identity) {
|
|
109
|
-
|
|
109
|
+
heapPayload.user_id = userIdHash_1.getHeapUserId(payload.anonymous_id);
|
|
110
110
|
}
|
|
111
111
|
if (payload.identity) {
|
|
112
|
-
|
|
112
|
+
heapPayload.identity = payload.identity;
|
|
113
113
|
}
|
|
114
114
|
if (payload.timestamp && dayjs_1.default.utc(payload.timestamp).isValid()) {
|
|
115
|
-
|
|
115
|
+
heapPayload.timestamp = dayjs_1.default.utc(payload.timestamp).toISOString();
|
|
116
|
+
}
|
|
117
|
+
if (payload.session_id) {
|
|
118
|
+
heapPayload.session_id = payload.session_id;
|
|
116
119
|
}
|
|
117
120
|
return request('https://heapanalytics.com/api/track', {
|
|
118
121
|
method: 'post',
|
|
119
|
-
json:
|
|
122
|
+
json: heapPayload
|
|
120
123
|
});
|
|
121
124
|
}
|
|
122
125
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/heap/trackEvent/index.ts"],"names":[],"mappings":";;;;;AAGA,+DAAsC;AACtC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/heap/trackEvent/index.ts"],"names":[],"mappings":";;;;;AAGA,+DAAsC;AACtC,4CAA8D;AAC9D,8CAA6C;AAC7C,kCAA8B;AAC9B,wDAAwD;AAexD,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,wBAAwB;IACrC,mBAAmB,EAAE,oDAAoD;IACzE,MAAM,EAAE;QACN,UAAU,EAAE;YACV,KAAK,EAAE,YAAY;YACnB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,uCAAuC;YACpD,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,aAAa;aACvB;SACF;QACD,QAAQ,EAAE;YACR,KAAK,EAAE,UAAU;YACjB,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,IAAI;YACf,WAAW,EACT,6LAA6L;YAC/L,OAAO,EAAE;gBACP,OAAO,EAAE,UAAU;aACpB;SACF;QACD,YAAY,EAAE;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AgB,EAAE,EAAE;IACxC,QAAQ,OAAO,CAAC,IAAI,EAAE;QACpB,KAAK,OAAO;YACV,OAAO,OAAO,CAAC,KAAK,CAAA;QACtB,KAAK,MAAM,CAAC;QACZ,KAAK,QAAQ;YACX,OAAO,OAAO,CAAC,IAAI,CAAA;QACrB;YACE,OAAO,SAAS,CAAA;KACnB;AACH,CAAC,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare const apiBaseUrl = "https://helium.saleswings.pro/api/core";
|
|
2
|
+
export declare type Event = TrackingEvent | PageVisitEvent;
|
|
3
|
+
export declare type EventBatch = {
|
|
4
|
+
events: Event[];
|
|
5
|
+
};
|
|
6
|
+
export declare class TrackingEvent {
|
|
7
|
+
leadRefs: LeadRef[];
|
|
8
|
+
kind: string;
|
|
9
|
+
data: string;
|
|
10
|
+
url?: string;
|
|
11
|
+
referrerUrl?: string;
|
|
12
|
+
userAgent?: string;
|
|
13
|
+
timestamp: number;
|
|
14
|
+
values: ValueMap;
|
|
15
|
+
readonly type: string;
|
|
16
|
+
constructor(fields?: Partial<TrackingEvent>);
|
|
17
|
+
}
|
|
18
|
+
export declare class PageVisitEvent {
|
|
19
|
+
leadRefs: LeadRef[];
|
|
20
|
+
url: string;
|
|
21
|
+
referrerUrl?: string;
|
|
22
|
+
userAgent?: string;
|
|
23
|
+
timestamp: number;
|
|
24
|
+
readonly type: string;
|
|
25
|
+
constructor(fields?: Partial<PageVisitEvent>);
|
|
26
|
+
}
|
|
27
|
+
export declare type Value = string | number | boolean;
|
|
28
|
+
export declare type ValueMap = {
|
|
29
|
+
[k: string]: Value;
|
|
30
|
+
};
|
|
31
|
+
export declare type LeadRefType = 'email' | 'client-id';
|
|
32
|
+
export declare type LeadRef = {
|
|
33
|
+
type: LeadRefType;
|
|
34
|
+
value: string;
|
|
35
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PageVisitEvent = exports.TrackingEvent = exports.apiBaseUrl = void 0;
|
|
4
|
+
exports.apiBaseUrl = 'https://helium.saleswings.pro/api/core';
|
|
5
|
+
class TrackingEvent {
|
|
6
|
+
constructor(fields) {
|
|
7
|
+
this.type = 'tracking';
|
|
8
|
+
Object.assign(this, fields);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.TrackingEvent = TrackingEvent;
|
|
12
|
+
class PageVisitEvent {
|
|
13
|
+
constructor(fields) {
|
|
14
|
+
this.type = 'page-visit';
|
|
15
|
+
Object.assign(this, fields);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.PageVisitEvent = PageVisitEvent;
|
|
19
|
+
//# sourceMappingURL=api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/destinations/saleswings/api.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG,wCAAwC,CAAA;AAQlE,MAAa,aAAa;IAWxB,YAAmB,MAA+B;QAFzC,SAAI,GAAW,UAAU,CAAA;QAGhC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAA;IAC7B,CAAC;CACF;AAdD,sCAcC;AAED,MAAa,cAAc;IAQzB,YAAmB,MAAgC;QAF1C,SAAI,GAAW,YAAY,CAAA;QAGlC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAA;IAC7B,CAAC;CACF;AAXD,wCAWC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { RequestFn } from '@segment/actions-core';
|
|
2
|
+
import { Event } from './api';
|
|
3
|
+
import { Settings } from './generated-types';
|
|
4
|
+
export declare function perform<Payload>(convertEvent: (payload: Payload) => Event | undefined): RequestFn<Settings, Payload>;
|
|
5
|
+
export declare function performBatch<Payload>(convertEvent: (payload: Payload) => Event | undefined): RequestFn<Settings, Payload[]>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.performBatch = exports.perform = void 0;
|
|
4
|
+
const api_1 = require("./api");
|
|
5
|
+
function perform(convertEvent) {
|
|
6
|
+
return (request, data) => {
|
|
7
|
+
const event = convertEvent(data.payload);
|
|
8
|
+
if (!event)
|
|
9
|
+
return;
|
|
10
|
+
return request(`${api_1.apiBaseUrl}/events`, {
|
|
11
|
+
method: 'post',
|
|
12
|
+
json: event,
|
|
13
|
+
headers: { Authorization: `Bearer ${data.settings.apiKey}` }
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
exports.perform = perform;
|
|
18
|
+
function performBatch(convertEvent) {
|
|
19
|
+
return (request, data) => {
|
|
20
|
+
const batch = convertEventBatch(data.payload, convertEvent);
|
|
21
|
+
if (!batch)
|
|
22
|
+
return;
|
|
23
|
+
return request(`${api_1.apiBaseUrl}/events/batches`, {
|
|
24
|
+
method: 'post',
|
|
25
|
+
json: batch,
|
|
26
|
+
headers: { Authorization: `Bearer ${data.settings.apiKey}` }
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
exports.performBatch = performBatch;
|
|
31
|
+
function convertEventBatch(payloads, convertEvent) {
|
|
32
|
+
const events = payloads.map(convertEvent).filter((evt) => evt);
|
|
33
|
+
if (events.length == 0)
|
|
34
|
+
return undefined;
|
|
35
|
+
return { events };
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=common.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/destinations/saleswings/common.ts"],"names":[],"mappings":";;;AACA,+BAAqD;AAGrD,SAAgB,OAAO,CAAU,YAAqD;IACpF,OAAO,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE;QACvB,MAAM,KAAK,GAAG,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QACxC,IAAI,CAAC,KAAK;YAAE,OAAM;QAClB,OAAO,OAAO,CAAC,GAAG,gBAAU,SAAS,EAAE;YACrC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,KAAK;YACX,OAAO,EAAE,EAAE,aAAa,EAAE,UAAU,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,EAAE;SAC7D,CAAC,CAAA;IACJ,CAAC,CAAA;AACH,CAAC;AAVD,0BAUC;AAED,SAAgB,YAAY,CAC1B,YAAqD;IAErD,OAAO,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE;QACvB,MAAM,KAAK,GAAG,iBAAiB,CAAC,IAAI,CAAC,OAAO,EAAE,YAAY,CAAC,CAAA;QAC3D,IAAI,CAAC,KAAK;YAAE,OAAM;QAClB,OAAO,OAAO,CAAC,GAAG,gBAAU,iBAAiB,EAAE;YAC7C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,KAAK;YACX,OAAO,EAAE,EAAE,aAAa,EAAE,UAAU,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,EAAE;SAC7D,CAAC,CAAA;IACJ,CAAC,CAAA;AACH,CAAC;AAZD,oCAYC;AAED,SAAS,iBAAiB,CACxB,QAAmB,EACnB,YAAqD;IAErD,MAAM,MAAM,GAAG,QAAQ,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAY,CAAA;IACzE,IAAI,MAAM,CAAC,MAAM,IAAI,CAAC;QAAE,OAAO,SAAS,CAAA;IACxC,OAAO,EAAE,MAAM,EAAE,CAAA;AACnB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LeadRef, ValueMap } from './api';
|
|
2
|
+
declare type EventPayload = {
|
|
3
|
+
userId?: string;
|
|
4
|
+
anonymousId?: string;
|
|
5
|
+
email?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const convertLeadRefs: (payload: EventPayload) => LeadRef[];
|
|
8
|
+
export declare const convertValues: (source: {
|
|
9
|
+
[k: string]: unknown;
|
|
10
|
+
} | undefined) => ValueMap;
|
|
11
|
+
export declare const convertTimestamp: (timestamp: any) => number;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.convertTimestamp = exports.convertValues = exports.convertLeadRefs = void 0;
|
|
4
|
+
const convertLeadRefs = (payload) => {
|
|
5
|
+
const refs = [];
|
|
6
|
+
if (payload.userId)
|
|
7
|
+
refs.push({ type: 'client-id', value: payload.userId });
|
|
8
|
+
if (payload.anonymousId)
|
|
9
|
+
refs.push({ type: 'client-id', value: payload.anonymousId });
|
|
10
|
+
if (payload.email)
|
|
11
|
+
refs.push({ type: 'email', value: payload.email });
|
|
12
|
+
return refs;
|
|
13
|
+
};
|
|
14
|
+
exports.convertLeadRefs = convertLeadRefs;
|
|
15
|
+
const convertValues = (source) => {
|
|
16
|
+
const values = {};
|
|
17
|
+
if (!source)
|
|
18
|
+
return values;
|
|
19
|
+
Object.entries(source).forEach(([key, prop]) => {
|
|
20
|
+
if (typeof prop === 'number' || typeof prop === 'boolean' || typeof prop === 'string')
|
|
21
|
+
values[key] = prop;
|
|
22
|
+
});
|
|
23
|
+
return values;
|
|
24
|
+
};
|
|
25
|
+
exports.convertValues = convertValues;
|
|
26
|
+
const convertTimestamp = (timestamp) => {
|
|
27
|
+
if (!timestamp)
|
|
28
|
+
return Date.now();
|
|
29
|
+
if (typeof timestamp === 'number')
|
|
30
|
+
return timestamp;
|
|
31
|
+
return Date.parse(timestamp);
|
|
32
|
+
};
|
|
33
|
+
exports.convertTimestamp = convertTimestamp;
|
|
34
|
+
//# sourceMappingURL=converter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"converter.js","sourceRoot":"","sources":["../../../src/destinations/saleswings/converter.ts"],"names":[],"mappings":";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;IACnD,OAAO,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAA;AAC9B,CAAC,CAAA;AAJY,QAAA,gBAAgB,oBAI5B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { InputField } from '@segment/actions-core';
|
|
2
|
+
import { Directive } from '@segment/actions-core/src/destination-kit/types';
|
|
3
|
+
export declare const userId: InputField;
|
|
4
|
+
export declare const anonymousId: InputField;
|
|
5
|
+
export declare const email: InputField;
|
|
6
|
+
export declare const url: InputField;
|
|
7
|
+
export declare const referrerUrl: InputField;
|
|
8
|
+
export declare const userAgent: InputField;
|
|
9
|
+
export declare const timestamp: InputField;
|
|
10
|
+
export declare const kind: (defaultValue: string) => InputField;
|
|
11
|
+
export declare const data: (defaultValue: Directive) => InputField;
|
|
12
|
+
export declare const values: (defaultValue: Directive) => InputField;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.values = exports.data = exports.kind = exports.timestamp = exports.userAgent = exports.referrerUrl = exports.url = exports.email = exports.anonymousId = exports.userId = void 0;
|
|
4
|
+
exports.userId = {
|
|
5
|
+
label: 'Segment User ID',
|
|
6
|
+
description: 'Permanent identifier of a Segment user the event is attributed to.',
|
|
7
|
+
type: 'string',
|
|
8
|
+
dynamic: true,
|
|
9
|
+
default: {
|
|
10
|
+
'@path': '$.userId'
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
exports.anonymousId = {
|
|
14
|
+
label: 'Segment Anonymous User ID',
|
|
15
|
+
description: 'A pseudo-unique substitute for a Segment user ID the event is attributed to.',
|
|
16
|
+
type: 'string',
|
|
17
|
+
default: {
|
|
18
|
+
'@path': '$.anonymousId'
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
exports.email = {
|
|
22
|
+
label: 'Email',
|
|
23
|
+
description: 'Identified email of the Segment User.',
|
|
24
|
+
type: 'string',
|
|
25
|
+
default: {
|
|
26
|
+
'@if': {
|
|
27
|
+
exists: { '@path': '$.traits.email' },
|
|
28
|
+
then: { '@path': '$.traits.email' },
|
|
29
|
+
else: { '@path': '$.properties.email' }
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
exports.url = {
|
|
34
|
+
label: 'URL',
|
|
35
|
+
description: 'URL associated with the event.',
|
|
36
|
+
type: 'string',
|
|
37
|
+
default: {
|
|
38
|
+
'@if': {
|
|
39
|
+
exists: { '@path': '$.properties.url' },
|
|
40
|
+
then: { '@path': '$.properties.url' },
|
|
41
|
+
else: { '@path': '$.context.page.url' }
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
exports.referrerUrl = {
|
|
46
|
+
label: 'Referrer URL',
|
|
47
|
+
description: 'Referrer URL associated with the event.',
|
|
48
|
+
type: 'string',
|
|
49
|
+
default: {
|
|
50
|
+
'@if': {
|
|
51
|
+
exists: { '@path': '$.properties.referrer' },
|
|
52
|
+
then: { '@path': '$.properties.referrer' },
|
|
53
|
+
else: { '@path': '$.context.page.referrer' }
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
exports.userAgent = {
|
|
58
|
+
label: 'User Agent',
|
|
59
|
+
description: 'User Agent associated with the event.',
|
|
60
|
+
type: 'string',
|
|
61
|
+
default: {
|
|
62
|
+
'@path': '$.context.userAgent'
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
exports.timestamp = {
|
|
66
|
+
label: 'Event Timestamp',
|
|
67
|
+
description: 'When the event was sent.',
|
|
68
|
+
type: 'datetime',
|
|
69
|
+
default: {
|
|
70
|
+
'@path': '$.timestamp'
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
const kind = (defaultValue) => {
|
|
74
|
+
return {
|
|
75
|
+
label: 'Custom Event Kind',
|
|
76
|
+
description: 'Type of the SalesWings custom event (a custom event is visualized in SalesWings cockpit and SalesForce Lead Intent View as "[[Kind]] Data").',
|
|
77
|
+
type: 'string',
|
|
78
|
+
default: defaultValue,
|
|
79
|
+
required: true
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
exports.kind = kind;
|
|
83
|
+
const data = (defaultValue) => {
|
|
84
|
+
return {
|
|
85
|
+
label: 'Custom Event Data',
|
|
86
|
+
description: 'String description of the SalesWings custom event payload (a custom event is visualized in SalesWings cockpit and SalesForce Lead Intent View as "[[Kind]] Data").',
|
|
87
|
+
type: 'string',
|
|
88
|
+
default: defaultValue,
|
|
89
|
+
required: true
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
exports.data = data;
|
|
93
|
+
const values = (defaultValue) => {
|
|
94
|
+
return {
|
|
95
|
+
label: 'Custom Attribute Values',
|
|
96
|
+
description: 'Custom attribute values associated with the SalesWings custom event.',
|
|
97
|
+
type: 'object',
|
|
98
|
+
default: defaultValue
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
exports.values = values;
|
|
102
|
+
//# sourceMappingURL=fields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../src/destinations/saleswings/fields.ts"],"names":[],"mappings":";;;AAGa,QAAA,MAAM,GAAe;IAChC,KAAK,EAAE,iBAAiB;IACxB,WAAW,EAAE,oEAAoE;IACjF,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,IAAI;IACb,OAAO,EAAE;QACP,OAAO,EAAE,UAAU;KACpB;CACF,CAAA;AAEY,QAAA,WAAW,GAAe;IACrC,KAAK,EAAE,2BAA2B;IAClC,WAAW,EAAE,8EAA8E;IAC3F,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE;QACP,OAAO,EAAE,eAAe;KACzB;CACF,CAAA;AAEY,QAAA,KAAK,GAAe;IAC/B,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,uCAAuC;IACpD,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE;QACP,KAAK,EAAE;YACL,MAAM,EA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;QACd,OAAO,EAAE,YAAY;QACrB,QAAQ,EAAE,IAAI;KACf,CAAA;AACH,CAAC,CAAA;AATY,QAAA,IAAI,QAShB;AAEM,MAAM,IAAI,GAAG,CAAC,YAAuB,EAAc,EAAE;IAC1D,OAAO;QACL,KAAK,EAAE,mBAAmB;QAC1B,WAAW,EACT,oKAAoK;QACtK,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,YAAY;QACrB,QAAQ,EAAE,IAAI;KACf,CAAA;AACH,CAAC,CAAA;AATY,QAAA,IAAI,QAShB;AAEM,MAAM,MAAM,GAAG,CAAC,YAAuB,EAAc,EAAE;IAC5D,OAAO;QACL,KAAK,EAAE,yBAAyB;QAChC,WAAW,EAAE,sEAAsE;QACnF,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,YAAY;KACtB,CAAA;AACH,CAAC,CAAA;AAPY,QAAA,MAAM,UAOlB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../src/destinations/saleswings/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,67 @@
|
|
|
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 actions_core_1 = require("@segment/actions-core");
|
|
7
|
+
const api_1 = require("./api");
|
|
8
|
+
const submitTrackEvent_1 = __importDefault(require("./submitTrackEvent"));
|
|
9
|
+
const submitIdentifyEvent_1 = __importDefault(require("./submitIdentifyEvent"));
|
|
10
|
+
const submitPageEvent_1 = __importDefault(require("./submitPageEvent"));
|
|
11
|
+
const submitScreenEvent_1 = __importDefault(require("./submitScreenEvent"));
|
|
12
|
+
const destination = {
|
|
13
|
+
name: 'Saleswings (Actions)',
|
|
14
|
+
slug: 'actions-saleswings',
|
|
15
|
+
mode: 'cloud',
|
|
16
|
+
authentication: {
|
|
17
|
+
scheme: 'custom',
|
|
18
|
+
fields: {
|
|
19
|
+
apiKey: {
|
|
20
|
+
label: 'API Key',
|
|
21
|
+
description: 'Segment.io API key for your SalesWings project.',
|
|
22
|
+
type: 'password',
|
|
23
|
+
required: true
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
testAuthentication: async (request, { settings }) => {
|
|
27
|
+
const resp = await request(`${api_1.apiBaseUrl}/project/account`, {
|
|
28
|
+
headers: { Authorization: `Bearer ${settings.apiKey}` }
|
|
29
|
+
});
|
|
30
|
+
return resp.status == 200;
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
presets: [
|
|
34
|
+
{
|
|
35
|
+
name: 'Submit Track Event',
|
|
36
|
+
subscribe: 'type = "track"',
|
|
37
|
+
partnerAction: 'submitTrackEvent',
|
|
38
|
+
mapping: actions_core_1.defaultValues(submitTrackEvent_1.default.fields)
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: 'Submit Identify Event',
|
|
42
|
+
subscribe: 'type = "identify"',
|
|
43
|
+
partnerAction: 'submitIdentifyEvent',
|
|
44
|
+
mapping: actions_core_1.defaultValues(submitIdentifyEvent_1.default.fields)
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'Submit Page Event',
|
|
48
|
+
subscribe: 'type = "page"',
|
|
49
|
+
partnerAction: 'submitPageEvent',
|
|
50
|
+
mapping: actions_core_1.defaultValues(submitPageEvent_1.default.fields)
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: 'Submit Screen Event',
|
|
54
|
+
subscribe: 'type = "screen"',
|
|
55
|
+
partnerAction: 'submitScreenEvent',
|
|
56
|
+
mapping: actions_core_1.defaultValues(submitScreenEvent_1.default.fields)
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
actions: {
|
|
60
|
+
submitTrackEvent: submitTrackEvent_1.default,
|
|
61
|
+
submitIdentifyEvent: submitIdentifyEvent_1.default,
|
|
62
|
+
submitPageEvent: submitPageEvent_1.default,
|
|
63
|
+
submitScreenEvent: submitScreenEvent_1.default
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
exports.default = destination;
|
|
67
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/saleswings/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAA4E;AAC5E,+BAAkC;AAGlC,0EAAiD;AACjD,gFAAuD;AACvD,wEAA+C;AAC/C,4EAAmD;AAEnD,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,sBAAsB;IAC5B,IAAI,EAAE,oBAAoB;IAC1B,IAAI,EAAE,OAAO;IAEb,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,MAAM,EAAE;gBACN,KAAK,EAAE,SAAS;gBAChB,WAAW,EAAE,iDAAiD;gBAC9D,IAAI,EAAE,UAAU;gBAChB,QAAQ,EAAE,IAAI;aACf;SACF;QACD,kBAAkB,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;YAClD,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,GAAG,gBAAU,kBAAkB,EAAE;gBAC1D,OAAO,EAAE,EAAE,aAAa,EAAE,UAAU,QAAQ,CAAC,MAAM,EAAE,EAAE;aACxD,CAAC,CAAA;YACF,OAAO,IAAI,CAAC,MAAM,IAAI,GAAG,CAAA;QAC3B,CAAC;KACF;IAED,OAAO,EAAE;QACP;YACE,IAAI,EAAE,oBAAoB;YAC1B,SAAS,EAAE,gBAAgB;YAC3B,aAAa,EAAE,kBAAkB;YACjC,OAAO,EAAE,4BAAa,CAAC,0BAAgB,CAAC,MAAM,CAAC;SAChD;QACD;YACE,IAAI,EAAE,uBAAuB;YAC7B,SAAS,EAAE,mBAAmB;YAC9B,aAAa,EAAE,qBAAqB;YACpC,OAAO,EAAE,4BAAa,CAAC,6BAAmB,CAAC,MAAM,CAAC;SACnD;QACD;YACE,IAAI,EAAE,mBAAmB;YACzB,SAAS,EAAE,eAAe;YAC1B,aAAa,EAAE,iBAAiB;YAChC,OAAO,EAAE,4BAAa,CAAC,yBAAe,CAAC,MAAM,CAAC;SAC/C;QACD;YACE,IAAI,EAAE,qBAAqB;YAC3B,SAAS,EAAE,iBAAiB;YAC5B,aAAa,EAAE,mBAAmB;YAClC,OAAO,EAAE,4BAAa,CAAC,2BAAiB,CAAC,MAAM,CAAC;SACjD;KACF;IAED,OAAO,EAAE;QACP,gBAAgB,EAAhB,0BAAgB;QAChB,mBAAmB,EAAnB,6BAAmB;QACnB,eAAe,EAAf,yBAAe;QACf,iBAAiB,EAAjB,2BAAiB;KAClB;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface Payload {
|
|
2
|
+
kind: string;
|
|
3
|
+
data: string;
|
|
4
|
+
userId?: string;
|
|
5
|
+
anonymousId?: string;
|
|
6
|
+
email: string;
|
|
7
|
+
url?: string;
|
|
8
|
+
referrerUrl?: string;
|
|
9
|
+
userAgent?: string;
|
|
10
|
+
timestamp?: string | number;
|
|
11
|
+
values?: {
|
|
12
|
+
[k: string]: unknown;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/saleswings/submitIdentifyEvent/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const api_1 = require("../api");
|
|
4
|
+
const fields_1 = require("../fields");
|
|
5
|
+
const converter_1 = require("../converter");
|
|
6
|
+
const common_1 = require("../common");
|
|
7
|
+
const convertEvent = (payload) => {
|
|
8
|
+
return new api_1.TrackingEvent({
|
|
9
|
+
leadRefs: converter_1.convertLeadRefs(payload),
|
|
10
|
+
kind: payload.kind,
|
|
11
|
+
data: payload.data,
|
|
12
|
+
url: payload.url,
|
|
13
|
+
referrerUrl: payload.referrerUrl,
|
|
14
|
+
userAgent: payload.userAgent,
|
|
15
|
+
timestamp: converter_1.convertTimestamp(payload.timestamp),
|
|
16
|
+
values: converter_1.convertValues(payload.values)
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
const action = {
|
|
20
|
+
title: 'Submit Identify Event',
|
|
21
|
+
description: 'Send your Segment Identify events to SalesWings to use them for tagging, scoring and prioritising your leads.',
|
|
22
|
+
defaultSubscription: 'type = "identify"',
|
|
23
|
+
fields: {
|
|
24
|
+
kind: fields_1.kind('Identify'),
|
|
25
|
+
data: fields_1.data({ '@path': '$.traits.email' }),
|
|
26
|
+
userId: fields_1.userId,
|
|
27
|
+
anonymousId: fields_1.anonymousId,
|
|
28
|
+
email: { ...fields_1.email, required: true },
|
|
29
|
+
url: fields_1.url,
|
|
30
|
+
referrerUrl: fields_1.referrerUrl,
|
|
31
|
+
userAgent: fields_1.userAgent,
|
|
32
|
+
timestamp: fields_1.timestamp,
|
|
33
|
+
values: fields_1.values({ '@path': '$.traits' })
|
|
34
|
+
},
|
|
35
|
+
perform: common_1.perform(convertEvent),
|
|
36
|
+
performBatch: common_1.performBatch(convertEvent)
|
|
37
|
+
};
|
|
38
|
+
exports.default = action;
|
|
39
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/saleswings/submitIdentifyEvent/index.ts"],"names":[],"mappings":";;AAGA,gCAA6C;AAC7C,sCAAkH;AAClH,4CAA+E;AAC/E,sCAAiD;AAEjD,MAAM,YAAY,GAAG,CAAC,OAAgB,EAAqB,EAAE;IAC3D,OAAO,IAAI,mBAAa,CAAC;QACvB,QAAQ,EAAE,2BAAe,CAAC,OAAO,CAAC;QAClC,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,GAAG,EAAE,OAAO,CAAC,GAAG;QAChB,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,SAAS,EAAE,OAAO,CAAC,SAAS;QAC5B,SAAS,EAAE,4BAAgB,CAAC,OAAO,CAAC,SAAS,CAAC;QAC9C,MAAM,EAAE,yBAAa,CAAC,OAAO,CAAC,MAAM,CAAC;KACtC,CAAC,CAAA;AACJ,CAAC,CAAA;AAED,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,uBAAuB;IAC9B,WAAW,EACT,+GAA+G;IACjH,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE;QACN,IAAI,EAAE,aAAI,CAAC,UAAU,CAAC;QACtB,IAAI,EAAE,aAAI,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,CAAC;QACzC,MAAM,EAAN,eAAM;QACN,WAAW,EAAX,oBAAW;QACX,KAAK,EAAE,EAAE,GAAG,cAAK,EAAE,QAAQ,EAAE,IAAI,EAAE;QACnC,GAAG,EAAH,YAAG;QACH,WAAW,EAAX,oBAAW;QACX,SAAS,EAAT,kBAAS;QACT,SAAS,EAAT,kBAAS;QACT,MAAM,EAAE,eAAM,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;KACxC;IACD,OAAO,EAAE,gBAAO,CAAC,YAAY,CAAC;IAC9B,YAAY,EAAE,qBAAY,CAAC,YAAY,CAAC;CACzC,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/saleswings/submitPageEvent/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const api_1 = require("../api");
|
|
4
|
+
const fields_1 = require("../fields");
|
|
5
|
+
const converter_1 = require("../converter");
|
|
6
|
+
const common_1 = require("../common");
|
|
7
|
+
const convertEvent = (payload) => {
|
|
8
|
+
const leadRefs = converter_1.convertLeadRefs(payload);
|
|
9
|
+
if (leadRefs.length == 0)
|
|
10
|
+
return undefined;
|
|
11
|
+
return new api_1.PageVisitEvent({
|
|
12
|
+
leadRefs,
|
|
13
|
+
url: payload.url,
|
|
14
|
+
referrerUrl: payload.referrerUrl,
|
|
15
|
+
userAgent: payload.userAgent,
|
|
16
|
+
timestamp: converter_1.convertTimestamp(payload.timestamp)
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
const action = {
|
|
20
|
+
title: 'Submit Page Event',
|
|
21
|
+
description: 'Send your Segment Page events to SalesWings to use them for tagging, scoring and prioritising your leads.',
|
|
22
|
+
defaultSubscription: 'type = "page"',
|
|
23
|
+
fields: {
|
|
24
|
+
userId: fields_1.userId,
|
|
25
|
+
anonymousId: fields_1.anonymousId,
|
|
26
|
+
url: { ...fields_1.url, required: true },
|
|
27
|
+
referrerUrl: fields_1.referrerUrl,
|
|
28
|
+
userAgent: fields_1.userAgent,
|
|
29
|
+
timestamp: fields_1.timestamp
|
|
30
|
+
},
|
|
31
|
+
perform: common_1.perform(convertEvent),
|
|
32
|
+
performBatch: common_1.performBatch(convertEvent)
|
|
33
|
+
};
|
|
34
|
+
exports.default = action;
|
|
35
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/saleswings/submitPageEvent/index.ts"],"names":[],"mappings":";;AAGA,gCAA8C;AAC9C,sCAAuF;AACvF,4CAAgE;AAChE,sCAAiD;AAEjD,MAAM,YAAY,GAAG,CAAC,OAAgB,EAAqB,EAAE;IAC3D,MAAM,QAAQ,GAAG,2BAAe,CAAC,OAAO,CAAC,CAAA;IACzC,IAAI,QAAQ,CAAC,MAAM,IAAI,CAAC;QAAE,OAAO,SAAS,CAAA;IAC1C,OAAO,IAAI,oBAAc,CAAC;QACxB,QAAQ;QACR,GAAG,EAAE,OAAO,CAAC,GAAG;QAChB,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,SAAS,EAAE,OAAO,CAAC,SAAS;QAC5B,SAAS,EAAE,4BAAgB,CAAC,OAAO,CAAC,SAAS,CAAC;KAC/C,CAAC,CAAA;AACJ,CAAC,CAAA;AAED,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,mBAAmB;IAC1B,WAAW,EACT,2GAA2G;IAC7G,mBAAmB,EAAE,eAAe;IACpC,MAAM,EAAE;QACN,MAAM,EAAN,eAAM;QACN,WAAW,EAAX,oBAAW;QACX,GAAG,EAAE,EAAE,GAAG,YAAG,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC/B,WAAW,EAAX,oBAAW;QACX,SAAS,EAAT,kBAAS;QACT,SAAS,EAAT,kBAAS;KACV;IACD,OAAO,EAAE,gBAAO,CAAC,YAAY,CAAC;IAC9B,YAAY,EAAE,qBAAY,CAAC,YAAY,CAAC;CACzC,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface Payload {
|
|
2
|
+
kind: string;
|
|
3
|
+
data: string;
|
|
4
|
+
userId?: string;
|
|
5
|
+
anonymousId?: string;
|
|
6
|
+
email?: string;
|
|
7
|
+
url?: string;
|
|
8
|
+
referrerUrl?: string;
|
|
9
|
+
userAgent?: string;
|
|
10
|
+
timestamp?: string | number;
|
|
11
|
+
values?: {
|
|
12
|
+
[k: string]: unknown;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/saleswings/submitScreenEvent/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const api_1 = require("../api");
|
|
4
|
+
const fields_1 = require("../fields");
|
|
5
|
+
const converter_1 = require("../converter");
|
|
6
|
+
const common_1 = require("../common");
|
|
7
|
+
const convertEvent = (payload) => {
|
|
8
|
+
const leadRefs = converter_1.convertLeadRefs(payload);
|
|
9
|
+
if (leadRefs.length == 0)
|
|
10
|
+
return undefined;
|
|
11
|
+
return new api_1.TrackingEvent({
|
|
12
|
+
leadRefs,
|
|
13
|
+
kind: payload.kind,
|
|
14
|
+
data: payload.data,
|
|
15
|
+
url: payload.url,
|
|
16
|
+
referrerUrl: payload.referrerUrl,
|
|
17
|
+
userAgent: payload.userAgent,
|
|
18
|
+
timestamp: converter_1.convertTimestamp(payload.timestamp),
|
|
19
|
+
values: converter_1.convertValues(payload.values)
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
const action = {
|
|
23
|
+
title: 'Submit Screen Event',
|
|
24
|
+
description: 'Send your Segment Screen events to SalesWings to use them for tagging, scoring and prioritising your leads.',
|
|
25
|
+
defaultSubscription: 'type = "screen"',
|
|
26
|
+
fields: {
|
|
27
|
+
kind: fields_1.kind('Screen'),
|
|
28
|
+
data: fields_1.data({ '@path': '$.name' }),
|
|
29
|
+
userId: fields_1.userId,
|
|
30
|
+
anonymousId: fields_1.anonymousId,
|
|
31
|
+
email: fields_1.email,
|
|
32
|
+
url: fields_1.url,
|
|
33
|
+
referrerUrl: fields_1.referrerUrl,
|
|
34
|
+
userAgent: fields_1.userAgent,
|
|
35
|
+
timestamp: fields_1.timestamp,
|
|
36
|
+
values: fields_1.values({ '@path': '$.properties' })
|
|
37
|
+
},
|
|
38
|
+
perform: common_1.perform(convertEvent),
|
|
39
|
+
performBatch: common_1.performBatch(convertEvent)
|
|
40
|
+
};
|
|
41
|
+
exports.default = action;
|
|
42
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/saleswings/submitScreenEv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}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface Payload {
|
|
2
|
+
kind: string;
|
|
3
|
+
data: string;
|
|
4
|
+
userId?: string;
|
|
5
|
+
anonymousId?: string;
|
|
6
|
+
email?: string;
|
|
7
|
+
url?: string;
|
|
8
|
+
referrerUrl?: string;
|
|
9
|
+
userAgent?: string;
|
|
10
|
+
timestamp?: string | number;
|
|
11
|
+
values?: {
|
|
12
|
+
[k: string]: unknown;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/saleswings/submitTrackEvent/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const api_1 = require("../api");
|
|
4
|
+
const fields_1 = require("../fields");
|
|
5
|
+
const converter_1 = require("../converter");
|
|
6
|
+
const common_1 = require("../common");
|
|
7
|
+
const convertEvent = (payload) => {
|
|
8
|
+
const leadRefs = converter_1.convertLeadRefs(payload);
|
|
9
|
+
if (leadRefs.length == 0)
|
|
10
|
+
return undefined;
|
|
11
|
+
return new api_1.TrackingEvent({
|
|
12
|
+
leadRefs,
|
|
13
|
+
kind: payload.kind,
|
|
14
|
+
data: payload.data,
|
|
15
|
+
url: payload.url,
|
|
16
|
+
referrerUrl: payload.referrerUrl,
|
|
17
|
+
userAgent: payload.userAgent,
|
|
18
|
+
timestamp: converter_1.convertTimestamp(payload.timestamp),
|
|
19
|
+
values: converter_1.convertValues(payload.values)
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
const action = {
|
|
23
|
+
title: 'Submit Track Event',
|
|
24
|
+
description: 'Send your Segment Track events to SalesWings to use them for tagging, scoring and prioritising your leads.',
|
|
25
|
+
defaultSubscription: 'type = "track"',
|
|
26
|
+
fields: {
|
|
27
|
+
kind: fields_1.kind('Track'),
|
|
28
|
+
data: fields_1.data({ '@path': '$.event' }),
|
|
29
|
+
userId: fields_1.userId,
|
|
30
|
+
anonymousId: fields_1.anonymousId,
|
|
31
|
+
email: fields_1.email,
|
|
32
|
+
url: fields_1.url,
|
|
33
|
+
referrerUrl: fields_1.referrerUrl,
|
|
34
|
+
userAgent: fields_1.userAgent,
|
|
35
|
+
timestamp: fields_1.timestamp,
|
|
36
|
+
values: fields_1.values({ '@path': '$.properties' })
|
|
37
|
+
},
|
|
38
|
+
perform: common_1.perform(convertEvent),
|
|
39
|
+
performBatch: common_1.performBatch(convertEvent)
|
|
40
|
+
};
|
|
41
|
+
exports.default = action;
|
|
42
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/saleswings/submitTrackEvent/index.ts"],"names":[],"mappings":";;AAGA,gCAA6C;AAC7C,sCAAkH;AAClH,4CAA+E;AAC/E,sCAAiD;AAEjD,MAAM,YAAY,GAAG,CAAC,OAAgB,EAAqB,EAAE;IAC3D,MAAM,QAAQ,GAAG,2BAAe,CAAC,OAAO,CAAC,CAAA;IACzC,IAAI,QAAQ,CAAC,MAAM,IAAI,CAAC;QAAE,OAAO,SAAS,CAAA;IAC1C,OAAO,IAAI,mBAAa,CAAC;QACvB,QAAQ;QACR,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,GAAG,EAAE,OAAO,CAAC,GAAG;QAChB,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,SAAS,EAAE,OAAO,CAAC,SAAS;QAC5B,SAAS,EAAE,4BAAgB,CAAC,OAAO,CAAC,SAAS,CAAC;QAC9C,MAAM,EAAE,yBAAa,CAAC,OAAO,CAAC,MAAM,CAAC;KACtC,CAAC,CAAA;AACJ,CAAC,CAAA;AAED,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,oBAAoB;IAC3B,WAAW,EACT,4GAA4G;IAC9G,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE;QACN,IAAI,EAAE,aAAI,CAAC,OAAO,CAAC;QACnB,IAAI,EAAE,aAAI,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;QAClC,MAAM,EAAN,eAAM;QACN,WAAW,EAAX,oBAAW;QACX,KAAK,EAAL,cAAK;QACL,GAAG,EAAH,YAAG;QACH,WAAW,EAAX,oBAAW;QACX,SAAS,EAAT,kBAAS;QACT,SAAS,EAAT,kBAAS;QACT,MAAM,EAAE,eAAM,CAAC,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC;KAC5C;IACD,OAAO,EAAE,gBAAO,CAAC,YAAY,CAAC;IAC9B,YAAY,EAAE,qBAAY,CAAC,YAAY,CAAC;CACzC,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SegmentEvent } from '@segment/actions-core';
|
|
2
|
+
export declare const settings: {
|
|
3
|
+
apiKey: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const testAction: (actionName: string, event: SegmentEvent) => Promise<any>;
|
|
6
|
+
export declare const testBatchAction: (actionName: string, events: SegmentEvent[]) => Promise<any>;
|
|
7
|
+
export declare const testActionWithSkippedEvent: (actionName: string, event: SegmentEvent) => Promise<void>;
|
|
8
|
+
export declare const testBatchActionSkippedEvents: (actionName: string, events: SegmentEvent[]) => Promise<void>;
|
|
9
|
+
export declare const expectedTs: (segmentEventTs: string | Date | undefined) => number;
|
|
10
|
+
export declare const userAgent = "\"Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1";
|
|
@@ -0,0 +1,55 @@
|
|
|
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.userAgent = exports.expectedTs = exports.testBatchActionSkippedEvents = exports.testActionWithSkippedEvent = exports.testBatchAction = exports.testAction = exports.settings = void 0;
|
|
7
|
+
const actions_core_1 = require("@segment/actions-core");
|
|
8
|
+
const nock_1 = __importDefault(require("nock"));
|
|
9
|
+
const api_1 = require("./api");
|
|
10
|
+
const index_1 = __importDefault(require("./index"));
|
|
11
|
+
const testDestination = actions_core_1.createTestIntegration(index_1.default);
|
|
12
|
+
exports.settings = { apiKey: 'TEST_API_KEY' };
|
|
13
|
+
const testAction = async (actionName, event) => {
|
|
14
|
+
nock_1.default(api_1.apiBaseUrl).post('/events').reply(200, {});
|
|
15
|
+
const input = { event, settings: exports.settings, useDefaultMappings: true };
|
|
16
|
+
const responses = await testDestination.testAction(actionName, input);
|
|
17
|
+
expect(responses.length).toBe(1);
|
|
18
|
+
const request = responses[0].request;
|
|
19
|
+
expect(request.headers.get('Authorization')).toBe(`Bearer ${exports.settings.apiKey}`);
|
|
20
|
+
const rawBody = await request.text();
|
|
21
|
+
return JSON.parse(rawBody);
|
|
22
|
+
};
|
|
23
|
+
exports.testAction = testAction;
|
|
24
|
+
const testBatchAction = async (actionName, events) => {
|
|
25
|
+
nock_1.default(api_1.apiBaseUrl).post('/events/batches').reply(200, {});
|
|
26
|
+
const input = { events, settings: exports.settings, useDefaultMappings: true };
|
|
27
|
+
const responses = await testDestination.testBatchAction(actionName, input);
|
|
28
|
+
expect(responses.length).toBe(1);
|
|
29
|
+
const request = responses[0].request;
|
|
30
|
+
expect(request.headers.get('Authorization')).toBe(`Bearer ${exports.settings.apiKey}`);
|
|
31
|
+
const rawBody = await request.text();
|
|
32
|
+
return JSON.parse(rawBody);
|
|
33
|
+
};
|
|
34
|
+
exports.testBatchAction = testBatchAction;
|
|
35
|
+
const testActionWithSkippedEvent = async (actionName, event) => {
|
|
36
|
+
const responses = await testDestination.testAction(actionName, { event, settings: exports.settings, useDefaultMappings: true });
|
|
37
|
+
expect(responses.length).toBe(0);
|
|
38
|
+
};
|
|
39
|
+
exports.testActionWithSkippedEvent = testActionWithSkippedEvent;
|
|
40
|
+
const testBatchActionSkippedEvents = async (actionName, events) => {
|
|
41
|
+
const responses = await testDestination.testBatchAction(actionName, { events, settings: exports.settings, useDefaultMappings: true });
|
|
42
|
+
expect(responses.length).toBe(0);
|
|
43
|
+
};
|
|
44
|
+
exports.testBatchActionSkippedEvents = testBatchActionSkippedEvents;
|
|
45
|
+
const expectedTs = (segmentEventTs) => {
|
|
46
|
+
if (segmentEventTs === undefined)
|
|
47
|
+
throw new Error('Unexpected state: test event created without a timestamp');
|
|
48
|
+
else if (typeof segmentEventTs === 'string')
|
|
49
|
+
return Date.parse(segmentEventTs);
|
|
50
|
+
else
|
|
51
|
+
return segmentEventTs.valueOf();
|
|
52
|
+
};
|
|
53
|
+
exports.expectedTs = expectedTs;
|
|
54
|
+
exports.userAgent = '"Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1';
|
|
55
|
+
//# sourceMappingURL=testing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testing.js","sourceRoot":"","sources":["../../../src/destinations/saleswings/testing.ts"],"names":[],"mappings":";;;;;;AAAA,wDAA2E;AAC3E,gDAAuB;AACvB,+BAAkC;AAClC,oDAAiC;AAEjC,MAAM,eAAe,GAAG,oCAAqB,CAAC,eAAW,CAAC,CAAA;AAE7C,QAAA,QAAQ,GAAG,EAAE,MAAM,EAAE,cAAc,EAAE,CAAA;AAE3C,MAAM,UAAU,GAAG,KAAK,EAAE,UAAkB,EAAE,KAAmB,EAAgB,EAAE;IACxF,cAAI,CAAC,gBAAU,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,EAAE,CAAC,CAAA;IAC/C,MAAM,K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"}
|
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.127.3-staging.
|
|
4
|
+
"version": "3.127.3-staging.157+2236b8e4",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/segmentio/action-destinations",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"lcov"
|
|
68
68
|
]
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "2236b8e4a2de097f6729092e97550309a47a4b7a"
|
|
71
71
|
}
|