@segment/action-destinations 3.73.0 → 3.74.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) 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/talon-one/t1-properties.js +10 -4
  12. package/dist/destinations/talon-one/t1-properties.js.map +1 -1
  13. package/dist/destinations/talon-one/trackEvent/index.js +10 -2
  14. package/dist/destinations/talon-one/trackEvent/index.js.map +1 -1
  15. package/dist/destinations/talon-one/updateCustomerProfile/index.js +1 -1
  16. package/dist/destinations/talon-one/updateCustomerProfile/index.js.map +1 -1
  17. package/package.json +2 -2
  18. package/dist/destinations/gainsight-px-cloud-action/groupIdentify/generated-types.d.ts +0 -2
  19. package/dist/destinations/gainsight-px-cloud-action/groupIdentify/generated-types.js.map +0 -1
  20. package/dist/destinations/gainsight-px-cloud-action/groupIdentify/index.d.ts +0 -5
  21. package/dist/destinations/gainsight-px-cloud-action/groupIdentify/index.js.map +0 -1
  22. package/dist/destinations/gainsight-px-cloud-action/identifyUser/generated-types.d.ts +0 -2
  23. package/dist/destinations/gainsight-px-cloud-action/identifyUser/generated-types.js +0 -3
  24. package/dist/destinations/gainsight-px-cloud-action/identifyUser/generated-types.js.map +0 -1
  25. package/dist/destinations/gainsight-px-cloud-action/identifyUser/index.js +0 -17
  26. package/dist/destinations/gainsight-px-cloud-action/identifyUser/index.js.map +0 -1
  27. package/dist/destinations/gainsight-px-cloud-action/trackEvent/generated-types.d.ts +0 -2
  28. package/dist/destinations/gainsight-px-cloud-action/trackEvent/generated-types.js +0 -3
  29. package/dist/destinations/gainsight-px-cloud-action/trackEvent/generated-types.js.map +0 -1
  30. package/dist/destinations/gainsight-px-cloud-action/trackEvent/index.d.ts +0 -5
  31. package/dist/destinations/gainsight-px-cloud-action/trackEvent/index.js +0 -17
  32. package/dist/destinations/gainsight-px-cloud-action/trackEvent/index.js.map +0 -1
  33. package/dist/destinations/gainsight-px-cloud-action/trackPageView/generated-types.d.ts +0 -2
  34. package/dist/destinations/gainsight-px-cloud-action/trackPageView/generated-types.js +0 -3
  35. package/dist/destinations/gainsight-px-cloud-action/trackPageView/generated-types.js.map +0 -1
  36. package/dist/destinations/gainsight-px-cloud-action/trackPageView/index.d.ts +0 -5
  37. package/dist/destinations/gainsight-px-cloud-action/trackPageView/index.js +0 -17
  38. package/dist/destinations/gainsight-px-cloud-action/trackPageView/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,wDAA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QAAQ,EAAE,QAAQ,CAAC,MAAM;YACzB,QAAQ,EAAE,EAAE;SACb,CAAA;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"}
@@ -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.0",
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": "1d80dc9fa6aec5712915453f70b4b399829df3b1"
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"}