@segment/action-destinations 3.72.0 → 3.74.1-alpha.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 (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/index.js +1 -0
  12. package/dist/destinations/index.js.map +1 -1
  13. package/dist/destinations/personas-messaging-twilio/generated-types.d.ts +3 -2
  14. package/dist/destinations/personas-messaging-twilio/index.js +12 -6
  15. package/dist/destinations/personas-messaging-twilio/index.js.map +1 -1
  16. package/dist/destinations/personas-messaging-twilio/sendSms/index.js +2 -2
  17. package/dist/destinations/personas-messaging-twilio/sendSms/index.js.map +1 -1
  18. package/dist/destinations/salesforce/sf-operations.d.ts +1 -0
  19. package/dist/destinations/salesforce/sf-operations.js +12 -2
  20. package/dist/destinations/salesforce/sf-operations.js.map +1 -1
  21. package/dist/destinations/snap-conversions-api/_tests_/index.test.d.ts +1 -0
  22. package/dist/destinations/snap-conversions-api/_tests_/index.test.js +204 -0
  23. package/dist/destinations/snap-conversions-api/_tests_/index.test.js.map +1 -0
  24. package/dist/destinations/snap-conversions-api/generated-types.d.ts +5 -0
  25. package/dist/destinations/{gainsight-px-cloud-action/identifyUser → snap-conversions-api}/generated-types.js +0 -0
  26. package/dist/destinations/snap-conversions-api/generated-types.js.map +1 -0
  27. package/dist/destinations/snap-conversions-api/index.d.ts +4 -0
  28. package/dist/destinations/snap-conversions-api/index.js +189 -0
  29. package/dist/destinations/snap-conversions-api/index.js.map +1 -0
  30. package/dist/destinations/snap-conversions-api/reportConversionEvent/generated-types.d.ts +25 -0
  31. package/dist/destinations/{gainsight-px-cloud-action/trackEvent → snap-conversions-api/reportConversionEvent}/generated-types.js +0 -0
  32. package/dist/destinations/snap-conversions-api/reportConversionEvent/generated-types.js.map +1 -0
  33. package/dist/destinations/{gainsight-px-cloud-action/trackEvent → snap-conversions-api/reportConversionEvent}/index.d.ts +1 -1
  34. package/dist/destinations/snap-conversions-api/reportConversionEvent/index.js +50 -0
  35. package/dist/destinations/snap-conversions-api/reportConversionEvent/index.js.map +1 -0
  36. package/dist/destinations/snap-conversions-api/snap-capi-properties.d.ts +30 -0
  37. package/dist/destinations/snap-conversions-api/snap-capi-properties.js +310 -0
  38. package/dist/destinations/snap-conversions-api/snap-capi-properties.js.map +1 -0
  39. package/dist/destinations/talon-one/t1-properties.js +10 -4
  40. package/dist/destinations/talon-one/t1-properties.js.map +1 -1
  41. package/dist/destinations/talon-one/trackEvent/index.js +10 -2
  42. package/dist/destinations/talon-one/trackEvent/index.js.map +1 -1
  43. package/dist/destinations/talon-one/updateCustomerProfile/index.js +1 -1
  44. package/dist/destinations/talon-one/updateCustomerProfile/index.js.map +1 -1
  45. package/package.json +2 -2
  46. package/dist/destinations/gainsight-px-cloud-action/groupIdentify/generated-types.d.ts +0 -2
  47. package/dist/destinations/gainsight-px-cloud-action/groupIdentify/generated-types.js.map +0 -1
  48. package/dist/destinations/gainsight-px-cloud-action/groupIdentify/index.d.ts +0 -5
  49. package/dist/destinations/gainsight-px-cloud-action/groupIdentify/index.js.map +0 -1
  50. package/dist/destinations/gainsight-px-cloud-action/identifyUser/generated-types.d.ts +0 -2
  51. package/dist/destinations/gainsight-px-cloud-action/identifyUser/generated-types.js.map +0 -1
  52. package/dist/destinations/gainsight-px-cloud-action/identifyUser/index.js +0 -17
  53. package/dist/destinations/gainsight-px-cloud-action/identifyUser/index.js.map +0 -1
  54. package/dist/destinations/gainsight-px-cloud-action/trackEvent/generated-types.d.ts +0 -2
  55. package/dist/destinations/gainsight-px-cloud-action/trackEvent/generated-types.js.map +0 -1
  56. package/dist/destinations/gainsight-px-cloud-action/trackEvent/index.js +0 -17
  57. package/dist/destinations/gainsight-px-cloud-action/trackEvent/index.js.map +0 -1
  58. package/dist/destinations/gainsight-px-cloud-action/trackPageView/generated-types.d.ts +0 -2
  59. package/dist/destinations/gainsight-px-cloud-action/trackPageView/generated-types.js +0 -3
  60. package/dist/destinations/gainsight-px-cloud-action/trackPageView/generated-types.js.map +0 -1
  61. package/dist/destinations/gainsight-px-cloud-action/trackPageView/index.d.ts +0 -5
  62. package/dist/destinations/gainsight-px-cloud-action/trackPageView/index.js +0 -17
  63. package/dist/destinations/gainsight-px-cloud-action/trackPageView/index.js.map +0 -1
@@ -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.72.0",
4
+ "version": "3.74.1-alpha.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": "87215e422813e5fbc86dc147a7236bcd3eddf084"
64
+ "gitHead": "766cdc7e21ee05f8b6335160ae6116dd01facb84"
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 +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 +0,0 @@
1
- {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/gainsight-px-cloud-action/trackEvent/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: '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"}