@segment/action-destinations 3.93.1 → 3.93.2-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 (70) hide show
  1. package/dist/destinations/actions-pardot/generated-types.d.ts +5 -0
  2. package/dist/destinations/actions-pardot/generated-types.js +3 -0
  3. package/dist/destinations/actions-pardot/generated-types.js.map +1 -0
  4. package/dist/destinations/actions-pardot/index.d.ts +4 -0
  5. package/dist/destinations/actions-pardot/index.js +62 -0
  6. package/dist/destinations/actions-pardot/index.js.map +1 -0
  7. package/dist/destinations/actions-pardot/pa-operations.d.ts +17 -0
  8. package/dist/destinations/actions-pardot/pa-operations.js +51 -0
  9. package/dist/destinations/actions-pardot/pa-operations.js.map +1 -0
  10. package/dist/destinations/actions-pardot/pa-properties.d.ts +2 -0
  11. package/dist/destinations/actions-pardot/pa-properties.js +13 -0
  12. package/dist/destinations/actions-pardot/pa-properties.js.map +1 -0
  13. package/dist/destinations/actions-pardot/pa-type.d.ts +15 -0
  14. package/dist/destinations/actions-pardot/pa-type.js +3 -0
  15. package/dist/destinations/actions-pardot/pa-type.js.map +1 -0
  16. package/dist/destinations/actions-pardot/prospects/generated-types.d.ts +19 -0
  17. package/dist/destinations/actions-pardot/prospects/generated-types.js +3 -0
  18. package/dist/destinations/actions-pardot/prospects/generated-types.js.map +1 -0
  19. package/dist/destinations/actions-pardot/prospects/index.d.ts +5 -0
  20. package/dist/destinations/actions-pardot/prospects/index.js +204 -0
  21. package/dist/destinations/actions-pardot/prospects/index.js.map +1 -0
  22. package/dist/destinations/cordial/addProductToCart/index.js +1 -1
  23. package/dist/destinations/cordial/addProductToCart/index.js.map +1 -1
  24. package/dist/destinations/cordial/index.js +1 -1
  25. package/dist/destinations/cordial/index.js.map +1 -1
  26. package/dist/destinations/cordial/removeProductFromCart/index.js.map +1 -1
  27. package/dist/destinations/cordial/upsertOrder/index.js +8 -8
  28. package/dist/destinations/cordial/upsertOrder/index.js.map +1 -1
  29. package/dist/destinations/customerio/trackEvent/index.js.map +1 -1
  30. package/dist/destinations/engage-messaging-sendgrid/sendEmail/generated-types.d.ts +8 -0
  31. package/dist/destinations/engage-messaging-sendgrid/sendEmail/index.js +51 -1
  32. package/dist/destinations/engage-messaging-sendgrid/sendEmail/index.js.map +1 -1
  33. package/dist/destinations/engage-messaging-twilio/sendSms/generated-types.d.ts +3 -0
  34. package/dist/destinations/engage-messaging-twilio/sendSms/index.js +15 -1
  35. package/dist/destinations/engage-messaging-twilio/sendSms/index.js.map +1 -1
  36. package/dist/destinations/google-enhanced-conversions/postConversion/index.js +3 -2
  37. package/dist/destinations/google-enhanced-conversions/postConversion/index.js.map +1 -1
  38. package/dist/destinations/index.js +3 -0
  39. package/dist/destinations/index.js.map +1 -1
  40. package/dist/destinations/intercom/generated-types.d.ts +2 -0
  41. package/dist/destinations/intercom/generated-types.js +3 -0
  42. package/dist/destinations/intercom/generated-types.js.map +1 -0
  43. package/dist/destinations/intercom/groupIdentifyContact/generated-types.d.ts +14 -0
  44. package/dist/destinations/intercom/groupIdentifyContact/generated-types.js +3 -0
  45. package/dist/destinations/intercom/groupIdentifyContact/generated-types.js.map +1 -0
  46. package/dist/destinations/intercom/groupIdentifyContact/index.d.ts +5 -0
  47. package/dist/destinations/intercom/groupIdentifyContact/index.js +122 -0
  48. package/dist/destinations/intercom/groupIdentifyContact/index.js.map +1 -0
  49. package/dist/destinations/intercom/identifyContact/generated-types.d.ts +15 -0
  50. package/dist/destinations/intercom/identifyContact/generated-types.js +3 -0
  51. package/dist/destinations/intercom/identifyContact/generated-types.js.map +1 -0
  52. package/dist/destinations/intercom/identifyContact/index.d.ts +5 -0
  53. package/dist/destinations/intercom/identifyContact/index.js +153 -0
  54. package/dist/destinations/intercom/identifyContact/index.js.map +1 -0
  55. package/dist/destinations/intercom/index.d.ts +4 -0
  56. package/dist/destinations/intercom/index.js +37 -0
  57. package/dist/destinations/intercom/index.js.map +1 -0
  58. package/dist/destinations/salesforce-marketing-cloud/contact/generated-types.d.ts +2 -0
  59. package/dist/destinations/salesforce-marketing-cloud/contact/generated-types.js +3 -0
  60. package/dist/destinations/salesforce-marketing-cloud/contact/generated-types.js.map +1 -0
  61. package/dist/destinations/salesforce-marketing-cloud/contact/index.d.ts +5 -0
  62. package/dist/destinations/salesforce-marketing-cloud/contact/index.js +11 -0
  63. package/dist/destinations/salesforce-marketing-cloud/contact/index.js.map +1 -0
  64. package/dist/destinations/salesforce-marketing-cloud/generated-types.d.ts +2 -0
  65. package/dist/destinations/salesforce-marketing-cloud/generated-types.js +3 -0
  66. package/dist/destinations/salesforce-marketing-cloud/generated-types.js.map +1 -0
  67. package/dist/destinations/salesforce-marketing-cloud/index.d.ts +4 -0
  68. package/dist/destinations/salesforce-marketing-cloud/index.js +27 -0
  69. package/dist/destinations/salesforce-marketing-cloud/index.js.map +1 -0
  70. package/package.json +4 -4
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/intercom/identifyContact/index.ts"],"names":[],"mappings":";;AAAA,wDAAyG;AAazG,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,kBAAkB;IACzB,WAAW,EAAE,6BAA6B;IAC1C,mBAAmB,EAAE,mBAAmB;IACxC,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE;QACN,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,+FAA+F;YAC5G,KAAK,EAAE,MAAM;YACb,OAAO,EAAE,MAAM;SAChB;QACD,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,2FAA2F;YACxG,KAAK,EAAE,aAAa;YACpB,OAAO,EAAE;gBACP,OAAO,EAAE,UAAU;aACpB;SACF;QACD,KAAK,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,sEAAsE;YACnF,KAAK,EAAE,OAAO;YACd,MAAM,EAAE,OAAO;YACf,OAAO,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QAC9G,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,EAAE,KAAK,EAAE;KAChB,CAAC,CAAA;IAEF,IAAI,QAAQ,CAAC,IAAI,CAAC,WAAW,KAAK,CAAC,EAAE;QACnC,OAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;KAC7B;AACH,CAAC;AAED,KAAK,UAAU,qBAAqB,CAAC,OAAsB,EAAE,SAAiB,EAAE,OAAgB;IAC9F,OAAO,OAAO,CAAC,oCAAoC,SAAS,EAAE,EAAE;QAC9D,MAAM,EAAE,KAAK;QACb,IAAI,EAAE;YACJ,GAAG,OAAO;SACX;KACF,CAAC,CAAA;AACJ,CAAC;AAED,kBAAe,MAAM,CAAA"}
@@ -0,0 +1,4 @@
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;
@@ -0,0 +1,37 @@
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 identifyContact_1 = __importDefault(require("./identifyContact"));
7
+ const groupIdentifyContact_1 = __importDefault(require("./groupIdentifyContact"));
8
+ const destination = {
9
+ name: 'Intercom (Actions)',
10
+ slug: 'actions-intercom',
11
+ mode: 'cloud',
12
+ authentication: {
13
+ scheme: 'oauth2',
14
+ fields: {},
15
+ testAuthentication: (request) => {
16
+ return request('https://api.intercom.io/admins');
17
+ }
18
+ },
19
+ extendRequest({ auth }) {
20
+ return {
21
+ headers: {
22
+ authorization: `Bearer ${auth?.accessToken}`
23
+ }
24
+ };
25
+ },
26
+ onDelete: async (request, { payload }) => {
27
+ return request(`https://api.intercom.io/contacts/${payload.userId}`, {
28
+ method: 'DELETE'
29
+ });
30
+ },
31
+ actions: {
32
+ identifyContact: identifyContact_1.default,
33
+ groupIdentifyContact: groupIdentifyContact_1.default
34
+ }
35
+ };
36
+ exports.default = destination;
37
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/intercom/index.ts"],"names":[],"mappings":";;;;;AAEA,wEAA+C;AAC/C,kFAAyD;AAEzD,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,oBAAoB;IAC1B,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE,OAAO;IAEb,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE,EAAE;QACV,kBAAkB,EAAE,CAAC,OAAO,EAAE,EAAE;YAG9B,OAAO,OAAO,CAAC,gCAAgC,CAAC,CAAA;QAClD,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;IAED,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QACvC,OAAO,OAAO,CAAC,oCAAoC,OAAO,CAAC,MAAM,EAAE,EAAE;YACnE,MAAM,EAAE,QAAQ;SACjB,CAAC,CAAA;IACJ,CAAC;IAED,OAAO,EAAE;QACP,eAAe,EAAf,yBAAe;QACf,oBAAoB,EAApB,8BAAoB;KACrB;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
@@ -0,0 +1,2 @@
1
+ export interface Payload {
2
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=generated-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/salesforce-marketing-cloud/contact/generated-types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
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;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const action = {
4
+ title: 'Contact',
5
+ description: 'TODO',
6
+ fields: {},
7
+ perform: () => {
8
+ }
9
+ };
10
+ exports.default = action;
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/salesforce-marketing-cloud/contact/index.ts"],"names":[],"mappings":";;AAIA,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,SAAS;IAChB,WAAW,EAAE,MAAM;IACnB,MAAM,EAAE,EAAE;IACV,OAAO,EAAE,GAAG,EAAE;IAOd,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -0,0 +1,2 @@
1
+ export interface Settings {
2
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=generated-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../src/destinations/salesforce-marketing-cloud/generated-types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
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;
@@ -0,0 +1,27 @@
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 contact_1 = __importDefault(require("./contact"));
7
+ const destination = {
8
+ name: 'Salesforce Marketing Cloud (Actions)',
9
+ slug: 'actions-salesforce-marketing-cloud',
10
+ mode: 'cloud',
11
+ authentication: {
12
+ scheme: 'oauth2',
13
+ fields: {}
14
+ },
15
+ extendRequest({ auth }) {
16
+ return {
17
+ headers: {
18
+ authorization: `Bearer ${auth?.accessToken}`
19
+ }
20
+ };
21
+ },
22
+ actions: {
23
+ contact: contact_1.default
24
+ }
25
+ };
26
+ exports.default = destination;
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/salesforce-marketing-cloud/index.ts"],"names":[],"mappings":";;;;;AAGA,wDAA+B;AAE/B,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,sCAAsC;IAC5C,IAAI,EAAE,oCAAoC;IAC1C,IAAI,EAAE,OAAO;IAEb,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE,EAAE;KAoBX;IACD,aAAa,CAAC,EAAE,IAAI,EAAE;QACpB,OAAO;YACL,OAAO,EAAE;gBACP,aAAa,EAAE,UAAU,IAAI,EAAE,WAAW,EAAE;aAC7C;SACF,CAAA;IACH,CAAC;IAOD,OAAO,EAAE;QACP,OAAO,EAAP,iBAAO;KACR;CACF,CAAA;AAED,kBAAe,WAAW,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.93.1",
4
+ "version": "3.93.2-alpha.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/segmentio/action-destinations",
@@ -38,8 +38,8 @@
38
38
  "dependencies": {
39
39
  "@amplitude/ua-parser-js": "^0.7.25",
40
40
  "@segment/a1-notation": "^2.1.4",
41
- "@segment/actions-core": "^3.31.0",
42
- "@segment/actions-shared": "^1.14.0",
41
+ "@segment/actions-core": "^3.31.1-alpha.3",
42
+ "@segment/actions-shared": "^1.14.1-alpha.5",
43
43
  "cheerio": "^1.0.0-rc.10",
44
44
  "dayjs": "^1.10.7",
45
45
  "escape-goat": "^3",
@@ -65,5 +65,5 @@
65
65
  "lcov"
66
66
  ]
67
67
  },
68
- "gitHead": "8e08f39fa1531c379c746edffe3424306f0f2c1d"
68
+ "gitHead": "9d2f530f89258ff2b0793a29e21faaa2f643bfa1"
69
69
  }