@segment/action-destinations 3.73.0 → 3.74.1-alpha.1

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.
Files changed (63) hide show
  1. package/dist/destinations/gainsight-px-cloud-action/index.js +30 -36
  2. package/dist/destinations/gainsight-px-cloud-action/index.js.map +1 -1
  3. package/dist/destinations/gainsight-px-cloud-action/regional-endpoints.js +3 -3
  4. package/dist/destinations/gainsight-px-cloud-action/regional-endpoints.js.map +1 -1
  5. package/dist/destinations/gainsight-px-cloud-action/sendEvent/generated-types.d.ts +5 -0
  6. package/dist/destinations/gainsight-px-cloud-action/{groupIdentify → sendEvent}/generated-types.js +0 -0
  7. package/dist/destinations/gainsight-px-cloud-action/sendEvent/generated-types.js.map +1 -0
  8. package/dist/destinations/gainsight-px-cloud-action/{identifyUser → sendEvent}/index.d.ts +0 -0
  9. package/dist/destinations/gainsight-px-cloud-action/{groupIdentify → sendEvent}/index.js +5 -5
  10. package/dist/destinations/gainsight-px-cloud-action/sendEvent/index.js.map +1 -0
  11. package/dist/destinations/snap-conversions-api/index.js +1 -1
  12. package/dist/destinations/talon-one/t1-properties.js +10 -4
  13. package/dist/destinations/talon-one/t1-properties.js.map +1 -1
  14. package/dist/destinations/talon-one/trackEvent/index.js +10 -2
  15. package/dist/destinations/talon-one/trackEvent/index.js.map +1 -1
  16. package/dist/destinations/talon-one/updateCustomerProfile/index.js +1 -1
  17. package/dist/destinations/talon-one/updateCustomerProfile/index.js.map +1 -1
  18. package/package.json +2 -2
  19. package/dist/destinations/gainsight-px-cloud-action/groupIdentify/generated-types.d.ts +0 -2
  20. package/dist/destinations/gainsight-px-cloud-action/groupIdentify/generated-types.js.map +0 -1
  21. package/dist/destinations/gainsight-px-cloud-action/groupIdentify/index.d.ts +0 -5
  22. package/dist/destinations/gainsight-px-cloud-action/groupIdentify/index.js.map +0 -1
  23. package/dist/destinations/gainsight-px-cloud-action/identifyUser/generated-types.d.ts +0 -2
  24. package/dist/destinations/gainsight-px-cloud-action/identifyUser/generated-types.js +0 -3
  25. package/dist/destinations/gainsight-px-cloud-action/identifyUser/generated-types.js.map +0 -1
  26. package/dist/destinations/gainsight-px-cloud-action/identifyUser/index.js +0 -17
  27. package/dist/destinations/gainsight-px-cloud-action/identifyUser/index.js.map +0 -1
  28. package/dist/destinations/gainsight-px-cloud-action/trackEvent/generated-types.d.ts +0 -2
  29. package/dist/destinations/gainsight-px-cloud-action/trackEvent/generated-types.js +0 -3
  30. package/dist/destinations/gainsight-px-cloud-action/trackEvent/generated-types.js.map +0 -1
  31. package/dist/destinations/gainsight-px-cloud-action/trackEvent/index.d.ts +0 -5
  32. package/dist/destinations/gainsight-px-cloud-action/trackEvent/index.js +0 -17
  33. package/dist/destinations/gainsight-px-cloud-action/trackEvent/index.js.map +0 -1
  34. package/dist/destinations/gainsight-px-cloud-action/trackPageView/generated-types.d.ts +0 -2
  35. package/dist/destinations/gainsight-px-cloud-action/trackPageView/generated-types.js +0 -3
  36. package/dist/destinations/gainsight-px-cloud-action/trackPageView/generated-types.js.map +0 -1
  37. package/dist/destinations/gainsight-px-cloud-action/trackPageView/index.d.ts +0 -5
  38. package/dist/destinations/gainsight-px-cloud-action/trackPageView/index.js +0 -17
  39. package/dist/destinations/gainsight-px-cloud-action/trackPageView/index.js.map +0 -1
  40. package/dist/destinations/personas-messaging-sendgrid/generated-types.d.ts +0 -8
  41. package/dist/destinations/personas-messaging-sendgrid/generated-types.js +0 -3
  42. package/dist/destinations/personas-messaging-sendgrid/generated-types.js.map +0 -1
  43. package/dist/destinations/personas-messaging-sendgrid/index.d.ts +0 -4
  44. package/dist/destinations/personas-messaging-sendgrid/index.js +0 -59
  45. package/dist/destinations/personas-messaging-sendgrid/index.js.map +0 -1
  46. package/dist/destinations/personas-messaging-sendgrid/sendEmail/generated-types.d.ts +0 -26
  47. package/dist/destinations/personas-messaging-sendgrid/sendEmail/generated-types.js +0 -3
  48. package/dist/destinations/personas-messaging-sendgrid/sendEmail/generated-types.js.map +0 -1
  49. package/dist/destinations/personas-messaging-sendgrid/sendEmail/index.d.ts +0 -5
  50. package/dist/destinations/personas-messaging-sendgrid/sendEmail/index.js +0 -310
  51. package/dist/destinations/personas-messaging-sendgrid/sendEmail/index.js.map +0 -1
  52. package/dist/destinations/personas-messaging-twilio/generated-types.d.ts +0 -11
  53. package/dist/destinations/personas-messaging-twilio/generated-types.js +0 -3
  54. package/dist/destinations/personas-messaging-twilio/generated-types.js.map +0 -1
  55. package/dist/destinations/personas-messaging-twilio/index.d.ts +0 -4
  56. package/dist/destinations/personas-messaging-twilio/index.js +0 -150
  57. package/dist/destinations/personas-messaging-twilio/index.js.map +0 -1
  58. package/dist/destinations/personas-messaging-twilio/sendSms/generated-types.d.ts +0 -16
  59. package/dist/destinations/personas-messaging-twilio/sendSms/generated-types.js +0 -3
  60. package/dist/destinations/personas-messaging-twilio/sendSms/generated-types.js.map +0 -1
  61. package/dist/destinations/personas-messaging-twilio/sendSms/index.d.ts +0 -5
  62. package/dist/destinations/personas-messaging-twilio/sendSms/index.js +0 -166
  63. package/dist/destinations/personas-messaging-twilio/sendSms/index.js.map +0 -1
@@ -6,36 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const actions_core_1 = require("@segment/actions-core");
7
7
  const actions_core_2 = require("@segment/actions-core");
8
8
  const regional_endpoints_1 = require("./regional-endpoints");
9
- const identifyUser_1 = __importDefault(require("./identifyUser"));
10
- const groupIdentify_1 = __importDefault(require("./groupIdentify"));
11
- const trackEvent_1 = __importDefault(require("./trackEvent"));
12
- const trackPageView_1 = __importDefault(require("./trackPageView"));
13
- const presets = [
14
- {
15
- name: 'Identify User',
16
- subscribe: 'type = "identify"',
17
- partnerAction: 'identifyUser',
18
- mapping: actions_core_2.defaultValues(identifyUser_1.default.fields)
19
- },
20
- {
21
- name: 'Group User',
22
- subscribe: 'type = "group"',
23
- partnerAction: 'groupIdentify',
24
- mapping: actions_core_2.defaultValues(groupIdentify_1.default.fields)
25
- },
26
- {
27
- name: 'Track Event',
28
- subscribe: 'type = "track"',
29
- partnerAction: 'trackEvent',
30
- mapping: actions_core_2.defaultValues(trackEvent_1.default.fields)
31
- },
32
- {
33
- name: 'Track Page View',
34
- subscribe: 'type = "page"',
35
- partnerAction: 'trackPageView',
36
- mapping: actions_core_2.defaultValues(trackPageView_1.default.fields)
37
- }
38
- ];
9
+ const sendEvent_1 = __importDefault(require("./sendEvent"));
10
+ const defaultVals = { ...actions_core_2.defaultValues(sendEvent_1.default.fields) };
39
11
  const destination = {
40
12
  name: 'Gainsight PX Cloud (Actions)',
41
13
  slug: 'actions-gainsight-px-cloud',
@@ -92,13 +64,35 @@ const destination = {
92
64
  password: ''
93
65
  };
94
66
  },
95
- presets,
96
67
  actions: {
97
- identifyUser: identifyUser_1.default,
98
- groupIdentify: groupIdentify_1.default,
99
- trackEvent: trackEvent_1.default,
100
- trackPageView: trackPageView_1.default
101
- }
68
+ sendEvent: sendEvent_1.default
69
+ },
70
+ presets: [
71
+ {
72
+ name: 'Identify User',
73
+ subscribe: 'type = "identify"',
74
+ partnerAction: 'sendEvent',
75
+ mapping: defaultVals
76
+ },
77
+ {
78
+ name: 'Group User',
79
+ subscribe: 'type = "group"',
80
+ partnerAction: 'sendEvent',
81
+ mapping: defaultVals
82
+ },
83
+ {
84
+ name: 'Track Event',
85
+ subscribe: 'type = "track"',
86
+ partnerAction: 'sendEvent',
87
+ mapping: defaultVals
88
+ },
89
+ {
90
+ name: 'Track Page View',
91
+ subscribe: 'type = "page"',
92
+ partnerAction: 'sendEvent',
93
+ mapping: defaultVals
94
+ }
95
+ ]
102
96
  };
103
97
  exports.default = destination;
104
98
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/gainsight-px-cloud-action/index.ts"],"names":[],"mappings":";;;;;AACA,wDAAwD;AAExD,wDAAqD;AAErD,6DAA0D;AAC1D,kEAAyC;AACzC,oEAA2C;AA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AA;IACH,CAAC;IACD,OAAO,EAAE;QAEP,SAAS,EAAT,mBAAS;KACV;IACD,OAAO,EAAE;QACP;YACE,IAAI,EAAE,eAAe;YACrB,SAAS,EAAE,mBAAmB;YAC9B,aAAa,EAAE,WAAW;YAC1B,OAAO,EAAE,WAAW;SACrB;QACD;YACE,IAAI,EAAE,YAAY;YAClB,SAAS,EAAE,gBAAgB;YAC3B,aAAa,EAAE,WAAW;YAC1B,OAAO,EAAE,WAAW;SACrB;QACD;YACE,IAAI,EAAE,aAAa;YACnB,SAAS,EAAE,gBAAgB;YAC3B,aAAa,EAAE,WAAW;YAC1B,OAAO,EAAE,WAAW;SACrB;QACD;YACE,IAAI,EAAE,iBAAiB;YACvB,SAAS,EAAE,eAAe;YAC1B,aAAa,EAAE,WAAW;YAC1B,OAAO,EAAE,WAAW;SACrB;KACF;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
@@ -5,13 +5,13 @@ exports.endpoints = {
5
5
  track: {
6
6
  north_america: 'https://segment-esp.aptrinsic.com/rte/segmentio/v1/push',
7
7
  europe: 'https://segment-esp-eu.aptrinsic.com/rte/segmentio/v1/push',
8
- us2: 'https://segment-esp-us2.aptrinsic.com/rte/segmentio/v1/push',
8
+ us2: 'https://segment-esp-us2.aptrinsic.com/rte/segmentio/v1/push'
9
9
  },
10
10
  batch: {
11
11
  north_america: 'https://segment-esp.aptrinsic.com/rte/segmentio/v1/batch',
12
12
  europe: 'https://segment-esp-eu.aptrinsic.com/rte/segmentio/v1/batch',
13
- us2: 'https://segment-esp-us2.aptrinsic.com/rte/segmentio/v1/push',
14
- },
13
+ us2: 'https://segment-esp-us2.aptrinsic.com/rte/segmentio/v1/batch'
14
+ }
15
15
  };
16
16
  function getEndpointByRegion(endpoint, region) {
17
17
  return exports.endpoints[endpoint][region] ?? exports.endpoints[endpoint]['north_america'];
@@ -1 +1 @@
1
- {"version":3,"file":"regional-endpoints.js","sourceRoot":"","sources":["../../../src/destinations/gainsight-px-cloud-action/regional-endpoints.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG;IACvB,KAAK,EAAE;QACL,aAAa,EAAE,yDAAyD;QACxE,MAAM,EAAE,4DAA4D;QACpE,GAAG,EAAE,6DAA6D;KAEnE;IACD,KAAK,EAAE;QACL,aAAa,EAAE,0DAA0D;QACzE,MAAM,EAAE,6DAA6D;QACrE,GAAG,EAAE,6DAA6D;KACnE;CACF,CAAA;AAYD,SAAgB,mBAAmB,CAAC,QAAgC,EAAE,MAAe;IACnF,OAAO,iBAAS,CAAC,QAAQ,CAAC,CAAC,MAAgB,CAAC,IAAI,iBAAS,CAAC,QAAQ,CAAC,CAAC,eAAe,CAAC,CAAA;AACtF,CAAC;AAFD,kDAEC;AAED,kBAAe,iBAAS,CAAA"}
1
+ {"version":3,"file":"regional-endpoints.js","sourceRoot":"","sources":["../../../src/destinations/gainsight-px-cloud-action/regional-endpoints.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG;IACvB,KAAK,EAAE;QACL,aAAa,EAAE,yDAAyD;QACxE,MAAM,EAAE,4DAA4D;QACpE,GAAG,EAAE,6DAA6D;KACnE;IACD,KAAK,EAAE;QACL,aAAa,EAAE,0DAA0D;QACzE,MAAM,EAAE,6DAA6D;QACrE,GAAG,EAAE,8DAA8D;KACpE;CACF,CAAA;AAYD,SAAgB,mBAAmB,CAAC,QAAgC,EAAE,MAAe;IACnF,OAAO,iBAAS,CAAC,QAAQ,CAAC,CAAC,MAAgB,CAAC,IAAI,iBAAS,CAAC,QAAQ,CAAC,CAAC,eAAe,CAAC,CAAA;AACtF,CAAC;AAFD,kDAEC;AAED,kBAAe,iBAAS,CAAA"}
@@ -0,0 +1,5 @@
1
+ export interface Payload {
2
+ segmentEvent?: {
3
+ [k: string]: unknown;
4
+ };
5
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/gainsight-px-cloud-action/sendEvent/generated-types.ts"],"names":[],"mappings":""}
@@ -1,15 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const regional_endpoints_1 = require("../regional-endpoints");
4
+ const common_fields_1 = require("../common-fields");
4
5
  const action = {
5
- title: 'Group Identify User',
6
- description: 'Updates or adds properties to an account. The account is created if it does not exist.',
7
- defaultSubscription: 'type = "group"',
8
- fields: {},
6
+ title: 'Send Event',
7
+ description: 'Send entire event payload to Gainsight PX',
8
+ fields: { ...common_fields_1.commonFields },
9
9
  perform: (request, { payload, settings }) => {
10
10
  return request(regional_endpoints_1.getEndpointByRegion('track', settings.dataCenter), {
11
11
  method: 'post',
12
- json: payload
12
+ json: payload.segmentEvent
13
13
  });
14
14
  }
15
15
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/gainsight-px-cloud-action/sendEvent/index.ts"],"names":[],"mappings":";;AAGA,8DAA2D;AAC3D,oDAA+C;AAE/C,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,YAAY;IACnB,WAAW,EAAE,2CAA2C;IACxD,MAAM,EAAE,EAAE,GAAG,4BAAY,EAAE;IAC3B,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC1C,OAAO,OAAO,CAAC,wCAAmB,CAAC,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE;YAChE,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,OAAO,CAAC,YAAY;SAC3B,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -138,7 +138,7 @@ const presets = [
138
138
  }
139
139
  ];
140
140
  const destination = {
141
- name: 'Snap Conversions Api',
141
+ name: 'Snap Conversions API',
142
142
  slug: 'actions-snap-conversions',
143
143
  mode: 'cloud',
144
144
  authentication: {
@@ -5,17 +5,23 @@ exports.customerProfileId = {
5
5
  label: 'Customer Profile ID',
6
6
  description: 'The customer profile integration identifier to use in Talon.One.',
7
7
  type: 'string',
8
- required: true
8
+ required: true,
9
+ default: {
10
+ '@path': '$.userId'
11
+ }
9
12
  };
10
13
  exports.attribute = {
11
14
  label: 'Attribute-Value pairs',
12
15
  description: 'Extra attributes associated with the customer profile. [See more info](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes).',
13
16
  type: 'object',
14
- required: false
17
+ required: false,
18
+ default: {
19
+ '@path': '$.traits'
20
+ }
15
21
  };
16
22
  exports.audienceId = {
17
- label: 'Not used',
18
- description: 'You should get this audience ID from Talon.One.',
23
+ label: 'Audience IDs (the label must not be used)',
24
+ description: 'You should get these audience IDs from Talon.One.',
19
25
  type: 'integer',
20
26
  multiple: true,
21
27
  required: false
@@ -1 +1 @@
1
- {"version":3,"file":"t1-properties.js","sourceRoot":"","sources":["../../../src/destinations/talon-one/t1-properties.ts"],"names":[],"mappings":";;;AAEa,QAAA,iBAAiB,GAAe;IAC3C,KAAK,EAAE,qBAAqB;IAC5B,WAAW,EAAE,kEAAkE;IAC/E,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,IAAI;CACf,CAAA;AAEY,QAAA,SAAS,GAAe;IACnC,KAAK,EAAE,uBAAuB;IAC9B,WAAW,EACT,oJAAoJ;IACtJ,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,KAAK;CAChB,CAAA;AAEY,QAAA,UAAU,GAAe;IACpC,KAAK,EAAE,UAAU;IACjB,WAAW,EAAE,iDAAiD;IAC9D,IAAI,EAAE,SAAS;IACf,QAAQ,EAAE,IAAI;IACd,QAAQ,EAAE,KAAK;CAChB,CAAA;AAEY,QAAA,aAAa,GAAe;IACvC,GAAG,kBAAU;IACb,KAAK,EAAE,6DAA6D;CACrE,CAAA;AAEY,QAAA,gBAAgB,GAAe;IAC1C,GAAG,kBAAU;IACb,KAAK,EAAE,8DAA8D;CACtE,CAAA"}
1
+ {"version":3,"file":"t1-properties.js","sourceRoot":"","sources":["../../../src/destinations/talon-one/t1-properties.ts"],"names":[],"mappings":";;;AAEa,QAAA,iBAAiB,GAAe;IAC3C,KAAK,EAAE,qBAAqB;IAC5B,WAAW,EAAE,kEAAkE;IAC/E,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE;QACP,OAAO,EAAE,UAAU;KACpB;CACF,CAAA;AAEY,QAAA,SAAS,GAAe;IACnC,KAAK,EAAE,uBAAuB;IAC9B,WAAW,EACT,oJAAoJ;IACtJ,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,KAAK;IACf,OAAO,EAAE;QACP,OAAO,EAAE,UAAU;KACpB;CACF,CAAA;AAEY,QAAA,UAAU,GAAe;IACpC,KAAK,EAAE,2CAA2C;IAClD,WAAW,EAAE,mDAAmD;IAChE,IAAI,EAAE,SAAS;IACf,QAAQ,EAAE,IAAI;IACd,QAAQ,EAAE,KAAK;CAChB,CAAA;AAEY,QAAA,aAAa,GAAe;IACvC,GAAG,kBAAU;IACb,KAAK,EAAE,6DAA6D;CACrE,CAAA;AAEY,QAAA,gBAAgB,GAAe;IAC1C,GAAG,kBAAU;IACb,KAAK,EAAE,8DAA8D;CACtE,CAAA"}
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const t1_properties_1 = require("../t1-properties");
4
+ const TARGET_EVENT_TYPE = 'string';
4
5
  const action = {
5
6
  title: 'Track Event',
6
7
  description: 'This records a custom event in Talon.One.',
@@ -13,16 +14,23 @@ const action = {
13
14
  label: 'Event Type',
14
15
  description: 'The name of the event sent to Talon.One.',
15
16
  type: 'string',
16
- required: true
17
+ required: true,
18
+ default: {
19
+ '@path': '$.event'
20
+ }
17
21
  },
18
22
  type: {
19
23
  label: 'Type',
20
24
  description: 'Type of event. Can be only `string`, `time`, `number`, `boolean`, `location`',
21
25
  type: 'string',
22
- required: true
26
+ required: true,
27
+ default: TARGET_EVENT_TYPE
23
28
  },
24
29
  attributes: {
25
30
  ...t1_properties_1.attribute,
31
+ default: {
32
+ '@path': '$.properties'
33
+ },
26
34
  description: 'Extra attributes associated with the event. [See more info](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes).'
27
35
  }
28
36
  },
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/talon-one/trackEvent/index.ts"],"names":[],"mappings":";;AAGA,oDAA+D;AAE/D,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,2CAA2C;IACxD,MAAM,EAAE;QACN,iBAAiB,EAAE;YACjB,GAAG,iCAAiB;YACpB,WAAW,EACT,gIAAgI;SACnI;QACD,SAAS,EAAE;YACT,KAAK,EAAE,YAAY;YACnB,WAAW,EAAE,0CAA0C;YACvD,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACf;QACD,IAAI,EAAE;YACJ,KAAK,EAAE,MAAM;YACb,WAAW,EAAE,8EAA8E;YAC3F,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACf;QACD,UAAU,EAAE;YACV,GAAG,yBAAS;YACZ,WAAW,EACT,yIAAyI;SAC5I;KACF;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QAEhC,OAAO,OAAO,CAAC,6CAA6C,EAAE;YAC5D,MAAM,EAAE,KAAK;YACb,IAAI,EAAE;gBACJ,iBAAiB,EAAE,OAAO,CAAC,iBAAiB;gBAC5C,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,IAAI,EAAE,OAAO,CAAC,IAAI;gBAClB,eAAe,EAAE,OAAO,CAAC,UAAU;aACpC;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/talon-one/trackEvent/index.ts"],"names":[],"mappings":";;AAGA,oDAA+D;AAE/D,MAAM,iBAAiB,GAAG,QAAQ,CAAA;AAElC,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,2CAA2C;IACxD,MAAM,EAAE;QACN,iBAAiB,EAAE;YACjB,GAAG,iCAAiB;YACpB,WAAW,EACT,gIAAgI;SACnI;QACD,SAAS,EAAE;YACT,KAAK,EAAE,YAAY;YACnB,WAAW,EAAE,0CAA0C;YACvD,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,SAAS;aACnB;SACF;QACD,IAAI,EAAE;YACJ,KAAK,EAAE,MAAM;YACb,WAAW,EAAE,8EAA8E;YAC3F,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,iBAAiB;SAC3B;QACD,UAAU,EAAE;YACV,GAAG,yBAAS;YACZ,OAAO,EAAE;gBACP,OAAO,EAAE,cAAc;aACxB;YACD,WAAW,EACT,yIAAyI;SAC5I;KACF;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QAEhC,OAAO,OAAO,CAAC,6CAA6C,EAAE;YAC5D,MAAM,EAAE,KAAK;YACb,IAAI,EAAE;gBACJ,iBAAiB,EAAE,OAAO,CAAC,iBAAiB;gBAC5C,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,IAAI,EAAE,OAAO,CAAC,IAAI;gBAClB,eAAe,EAAE,OAAO,CAAC,UAAU;aACpC;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -13,7 +13,7 @@ const action = {
13
13
  label: 'Run rule engine',
14
14
  description: 'This runs rule engine in Talon.One upon updating customer profile. Set to true to trigger rules.',
15
15
  type: 'boolean',
16
- default: false
16
+ default: true
17
17
  }
18
18
  },
19
19
  perform: (request, { payload }) => {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/talon-one/updateCustomerProfile/index.ts"],"names":[],"mappings":";;AAGA,oDAAgG;AAEhG,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,yBAAyB;IAChC,WAAW,EAAE,sEAAsE;IACnF,MAAM,EAAE;QACN,UAAU,EAAE,EAAE,GAAG,yBAAS,EAAE;QAC5B,iBAAiB,EAAE,EAAE,GAAG,iCAAiB,EAAE;QAC3C,iBAAiB,EAAE,EAAE,GAAG,gCAAgB,EAAE;QAC1C,cAAc,EAAE,EAAE,GAAG,6BAAa,EAAE;QACpC,aAAa,EAAE;YACb,KAAK,EAAE,iBAAiB;YACxB,WAAW,EAAE,kGAAkG;YAC/G,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,KAAK;SACf;KACF;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QAEhC,OAAO,OAAO,CAAC,0DAA0D,OAAO,CAAC,iBAAiB,EAAE,EAAE;YACpG,MAAM,EAAE,KAAK;YACb,IAAI,EAAE;gBACJ,UAAU,EAAE,OAAO,CAAC,UAAU;gBAC9B,gBAAgB,EAAE;oBAChB,IAAI,EAAE,OAAO,CAAC,cAAc;oBAC5B,OAAO,EAAE,OAAO,CAAC,iBAAiB;iBACnC;gBACD,aAAa,EAAE,OAAO,CAAC,aAAa;aACrC;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/talon-one/updateCustomerProfile/index.ts"],"names":[],"mappings":";;AAGA,oDAAgG;AAEhG,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,yBAAyB;IAChC,WAAW,EAAE,sEAAsE;IACnF,MAAM,EAAE;QACN,UAAU,EAAE,EAAE,GAAG,yBAAS,EAAE;QAC5B,iBAAiB,EAAE,EAAE,GAAG,iCAAiB,EAAE;QAC3C,iBAAiB,EAAE,EAAE,GAAG,gCAAgB,EAAE;QAC1C,cAAc,EAAE,EAAE,GAAG,6BAAa,EAAE;QACpC,aAAa,EAAE;YACb,KAAK,EAAE,iBAAiB;YACxB,WAAW,EAAE,kGAAkG;YAC/G,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,IAAI;SACd;KACF;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QAEhC,OAAO,OAAO,CAAC,0DAA0D,OAAO,CAAC,iBAAiB,EAAE,EAAE;YACpG,MAAM,EAAE,KAAK;YACb,IAAI,EAAE;gBACJ,UAAU,EAAE,OAAO,CAAC,UAAU;gBAC9B,gBAAgB,EAAE;oBAChB,IAAI,EAAE,OAAO,CAAC,cAAc;oBAC5B,OAAO,EAAE,OAAO,CAAC,iBAAiB;iBACnC;gBACD,aAAa,EAAE,OAAO,CAAC,aAAa;aACrC;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@segment/action-destinations",
3
3
  "description": "Destination Actions engine and definitions.",
4
- "version": "3.73.0",
4
+ "version": "3.74.1-alpha.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/segmentio/action-destinations",
@@ -61,5 +61,5 @@
61
61
  "<rootDir>/test/setup-after-env.ts"
62
62
  ]
63
63
  },
64
- "gitHead": "1fb48a8892e622c96cf960c65a4babb83c7448d9"
64
+ "gitHead": "1f2e6fc8b731590db779dacac71c7f8748a59a54"
65
65
  }
@@ -1,2 +0,0 @@
1
- export interface Payload {
2
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/gainsight-px-cloud-action/groupIdentify/generated-types.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- import type { ActionDefinition } from '@segment/actions-core';
2
- import type { Settings } from '../generated-types';
3
- import type { Payload } from './generated-types';
4
- declare const action: ActionDefinition<Settings, Payload>;
5
- export default action;
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/gainsight-px-cloud-action/groupIdentify/index.ts"],"names":[],"mappings":";;AAGA,8DAA2D;AAE3D,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,qBAAqB;IAC5B,WAAW,EAAE,wFAAwF;IACrG,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE,EAAE;IACV,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAE1C,OAAO,OAAO,CAAC,wCAAmB,CAAC,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE;YAChE,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,OAAO;SACd,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -1,2 +0,0 @@
1
- export interface Payload {
2
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=generated-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/gainsight-px-cloud-action/identifyUser/generated-types.ts"],"names":[],"mappings":""}
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const regional_endpoints_1 = require("../regional-endpoints");
4
- const action = {
5
- title: 'Identify User',
6
- description: 'Set the user ID for a particular device ID or update user properties',
7
- defaultSubscription: 'type = "identify"',
8
- fields: {},
9
- perform: (request, { payload, settings }) => {
10
- return request(regional_endpoints_1.getEndpointByRegion('track', settings.dataCenter), {
11
- method: 'post',
12
- json: payload
13
- });
14
- }
15
- };
16
- exports.default = action;
17
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/gainsight-px-cloud-action/identifyUser/index.ts"],"names":[],"mappings":";;AAGA,8DAA2D;AAE3D,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,eAAe;IACtB,WAAW,EAAE,sEAAsE;IACnF,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE,EAAE;IACV,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAE1C,OAAO,OAAO,CAAC,wCAAmB,CAAC,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE;YAChE,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,OAAO;SACd,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -1,2 +0,0 @@
1
- export interface Payload {
2
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=generated-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/gainsight-px-cloud-action/trackEvent/generated-types.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- import type { ActionDefinition } from '@segment/actions-core';
2
- import type { Settings } from '../generated-types';
3
- import type { Payload } from './generated-types';
4
- declare const action: ActionDefinition<Settings, Payload>;
5
- export default action;
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const regional_endpoints_1 = require("../regional-endpoints");
4
- const action = {
5
- title: 'Track Event',
6
- description: 'Send an event to Gainsight PX',
7
- defaultSubscription: 'type = "track"',
8
- fields: {},
9
- perform: (request, { payload, settings }) => {
10
- return request(regional_endpoints_1.getEndpointByRegion('track', settings.dataCenter), {
11
- method: 'post',
12
- json: payload
13
- });
14
- }
15
- };
16
- exports.default = action;
17
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/gainsight-px-cloud-action/trackEvent/index.ts"],"names":[],"mappings":";;AAGA,8DAA2D;AAE3D,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,+BAA+B;IAC5C,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE,EAAE;IACV,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAE1C,OAAO,OAAO,CAAC,wCAAmB,CAAC,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE;YAChE,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,OAAO;SACd,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -1,2 +0,0 @@
1
- export interface Payload {
2
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=generated-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/gainsight-px-cloud-action/trackPageView/generated-types.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- import type { ActionDefinition } from '@segment/actions-core';
2
- import type { Settings } from '../generated-types';
3
- import type { Payload } from './generated-types';
4
- declare const action: ActionDefinition<Settings, Payload>;
5
- export default action;
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const regional_endpoints_1 = require("../regional-endpoints");
4
- const action = {
5
- title: 'Track Page View',
6
- description: 'Send a page view event to Gainsight PX',
7
- defaultSubscription: 'type = "page"',
8
- fields: {},
9
- perform: (request, { payload, settings }) => {
10
- return request(regional_endpoints_1.getEndpointByRegion('track', settings.dataCenter), {
11
- method: 'post',
12
- json: payload
13
- });
14
- }
15
- };
16
- exports.default = action;
17
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/gainsight-px-cloud-action/trackPageView/index.ts"],"names":[],"mappings":";;AAGA,8DAA2D;AAE3D,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,iBAAiB;IACxB,WAAW,EAAE,wCAAwC;IACrD,mBAAmB,EAAE,eAAe;IACpC,MAAM,EAAE,EAAE;IACV,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAE1C,OAAO,OAAO,CAAC,wCAAmB,CAAC,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE;YAChE,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,OAAO;SACd,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -1,8 +0,0 @@
1
- export interface Settings {
2
- unlayerApiKey?: string;
3
- sendGridApiKey: string;
4
- profileApiEnvironment: string;
5
- profileApiAccessToken: string;
6
- spaceId: string;
7
- sourceId: string;
8
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=generated-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../src/destinations/personas-messaging-sendgrid/generated-types.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- import type { DestinationDefinition } from '@segment/actions-core';
2
- import type { Settings } from './generated-types';
3
- declare const destination: DestinationDefinition<Settings>;
4
- export default destination;
@@ -1,59 +0,0 @@
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 sendEmail_1 = __importDefault(require("./sendEmail"));
7
- const destination = {
8
- name: 'Actions Personas Messaging Sendgrid',
9
- mode: 'cloud',
10
- description: 'This is a personas specific action to send an email',
11
- authentication: {
12
- scheme: 'custom',
13
- fields: {
14
- unlayerApiKey: {
15
- label: 'Unlayer API Key',
16
- type: 'password',
17
- description: 'The API key for your Unlayer account'
18
- },
19
- sendGridApiKey: {
20
- label: 'API Key',
21
- type: 'password',
22
- description: 'The Api Key for your sendGrid account',
23
- required: true
24
- },
25
- profileApiEnvironment: {
26
- label: 'Profile API Environment',
27
- description: 'Profile API Environment',
28
- type: 'string',
29
- required: true
30
- },
31
- profileApiAccessToken: {
32
- label: 'Profile API Access Token',
33
- description: 'Profile API Access Token',
34
- type: 'password',
35
- required: true
36
- },
37
- spaceId: {
38
- label: 'Space ID',
39
- description: 'Space ID',
40
- type: 'string',
41
- required: true
42
- },
43
- sourceId: {
44
- label: 'Source ID',
45
- description: 'Source ID',
46
- type: 'string',
47
- required: true
48
- }
49
- },
50
- testAuthentication: (request) => {
51
- return request('https://api.sendgrid.com/v3/mail_settings');
52
- }
53
- },
54
- actions: {
55
- sendEmail: sendEmail_1.default
56
- }
57
- };
58
- exports.default = destination;
59
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/personas-messaging-sendgrid/index.ts"],"names":[],"mappings":";;;;;AAEA,4DAAmC;AAEnC,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,qCAAqC;IAC3C,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,qDAAqD;IAClE,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,aAAa,EAAE;gBACb,KAAK,EAAE,iBAAiB;gBACxB,IAAI,EAAE,UAAU;gBAChB,WAAW,EAAE,sCAAsC;aACpD;YACD,cAAc,EAAE;gBACd,KAAK,EAAE,SAAS;gBAChB,IAAI,EAAE,UAAU;gBAChB,WAAW,EAAE,uCAAuC;gBACpD,QAAQ,EAAE,IAAI;aACf;YACD,qBAAqB,EAAE;gBACrB,KAAK,EAAE,yBAAyB;gBAChC,WAAW,EAAE,yBAAyB;gBACtC,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;YACD,qBAAqB,EAAE;gBACrB,KAAK,EAAE,0BAA0B;gBACjC,WAAW,EAAE,0BAA0B;gBACvC,IAAI,EAAE,UAAU;gBAChB,QAAQ,EAAE,IAAI;aACf;YACD,OAAO,EAAE;gBACP,KAAK,EAAE,UAAU;gBACjB,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;YACD,QAAQ,EAAE;gBACR,KAAK,EAAE,WAAW;gBAClB,WAAW,EAAE,WAAW;gBACxB,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;SACF;QACD,kBAAkB,EAAE,CAAC,OAAO,EAAE,EAAE;YAC9B,OAAO,OAAO,CAAC,2CAA2C,CAAC,CAAA;QAC7D,CAAC;KACF;IACD,OAAO,EAAE;QACP,SAAS,EAAT,mBAAS;KACV;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
@@ -1,26 +0,0 @@
1
- export interface Payload {
2
- send?: boolean;
3
- userId: string;
4
- toEmail?: string;
5
- fromDomain?: string | null;
6
- fromEmail: string;
7
- fromName: string;
8
- replyToEqualsFrom?: boolean;
9
- replyToEmail: string;
10
- replyToName: string;
11
- bcc: string;
12
- previewText?: string;
13
- subject: string;
14
- body?: string;
15
- bodyUrl?: string;
16
- bodyType: string;
17
- bodyHtml?: string;
18
- externalIds?: {
19
- id?: string;
20
- type?: string;
21
- subscriptionStatus?: string;
22
- }[];
23
- customArgs?: {
24
- [k: string]: unknown;
25
- };
26
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=generated-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/personas-messaging-sendgrid/sendEmail/generated-types.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- import { ActionDefinition } from '@segment/actions-core';
2
- import type { Settings } from '../generated-types';
3
- import type { Payload } from './generated-types';
4
- declare const action: ActionDefinition<Settings, Payload>;
5
- export default action;