@segment/action-destinations 3.113.1-alpha.4 → 3.113.1-alpha.9

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 (106) hide show
  1. package/dist/destinations/clevertap/index.js +1 -1
  2. package/dist/destinations/criteo-audiences/addUserToAudience/index.js +5 -5
  3. package/dist/destinations/criteo-audiences/addUserToAudience/index.js.map +1 -1
  4. package/dist/destinations/criteo-audiences/criteo-audiences.d.ts +2 -2
  5. package/dist/destinations/criteo-audiences/criteo-audiences.js +5 -10
  6. package/dist/destinations/criteo-audiences/criteo-audiences.js.map +1 -1
  7. package/dist/destinations/criteo-audiences/removeUserFromAudience/index.js +5 -5
  8. package/dist/destinations/criteo-audiences/removeUserFromAudience/index.js.map +1 -1
  9. package/dist/destinations/engage-messaging-sendgrid/sendEmail/index.js +3 -3
  10. package/dist/destinations/engage-messaging-sendgrid/sendEmail/index.js.map +1 -1
  11. package/dist/destinations/engage-messaging-twilio/sendSms/generated-types.d.ts +0 -1
  12. package/dist/destinations/engage-messaging-twilio/sendSms/index.js +2 -22
  13. package/dist/destinations/engage-messaging-twilio/sendSms/index.js.map +1 -1
  14. package/dist/destinations/hubspot/errors.d.ts +17 -0
  15. package/dist/destinations/hubspot/errors.js +30 -0
  16. package/dist/destinations/hubspot/errors.js.map +1 -0
  17. package/dist/destinations/hubspot/index.js +5 -3
  18. package/dist/destinations/hubspot/index.js.map +1 -1
  19. package/dist/destinations/hubspot/properties.d.ts +3 -1
  20. package/dist/destinations/hubspot/properties.js +4 -2
  21. package/dist/destinations/hubspot/properties.js.map +1 -1
  22. package/dist/destinations/hubspot/sendCustomBehavioralEvent/index.js +1 -1
  23. package/dist/destinations/hubspot/sendCustomBehavioralEvent/index.js.map +1 -1
  24. package/dist/destinations/hubspot/upsertCompany/generated-types.d.ts +20 -0
  25. package/dist/destinations/{salesforce-marketing-cloud/apiEvent → hubspot/upsertCompany}/generated-types.js +0 -0
  26. package/dist/destinations/hubspot/upsertCompany/generated-types.js.map +1 -0
  27. package/dist/destinations/{salesforce-marketing-cloud/dataExtension → hubspot/upsertCompany}/index.d.ts +0 -0
  28. package/dist/destinations/hubspot/upsertCompany/index.js +312 -0
  29. package/dist/destinations/hubspot/upsertCompany/index.js.map +1 -0
  30. package/dist/destinations/hubspot/upsertContact/index.js +2 -2
  31. package/dist/destinations/hubspot/upsertContact/index.js.map +1 -1
  32. package/dist/destinations/hubspot/upsertCustomObjectRecord/index.js +38 -9
  33. package/dist/destinations/hubspot/upsertCustomObjectRecord/index.js.map +1 -1
  34. package/dist/destinations/index.js +0 -2
  35. package/dist/destinations/index.js.map +1 -1
  36. package/dist/destinations/linkedin-audiences/api/index.d.ts +13 -0
  37. package/dist/destinations/linkedin-audiences/api/index.js +62 -0
  38. package/dist/destinations/linkedin-audiences/api/index.js.map +1 -0
  39. package/dist/destinations/linkedin-audiences/constants.d.ts +2 -0
  40. package/dist/destinations/linkedin-audiences/constants.js +6 -0
  41. package/dist/destinations/linkedin-audiences/constants.js.map +1 -0
  42. package/dist/destinations/linkedin-audiences/generated-types.d.ts +2 -0
  43. package/dist/destinations/linkedin-audiences/index.js +49 -20
  44. package/dist/destinations/linkedin-audiences/index.js.map +1 -1
  45. package/dist/destinations/linkedin-audiences/types.d.ts +28 -0
  46. package/dist/destinations/linkedin-audiences/types.js +11 -0
  47. package/dist/destinations/linkedin-audiences/types.js.map +1 -0
  48. package/dist/destinations/linkedin-audiences/updateAudience/generated-types.d.ts +0 -2
  49. package/dist/destinations/linkedin-audiences/updateAudience/index.js +28 -67
  50. package/dist/destinations/linkedin-audiences/updateAudience/index.js.map +1 -1
  51. package/dist/destinations/mixpanel/groupIdentifyUser/index.js +1 -1
  52. package/dist/destinations/mixpanel/groupIdentifyUser/index.js.map +1 -1
  53. package/dist/destinations/mixpanel/identifyUser/generated-types.d.ts +1 -0
  54. package/dist/destinations/mixpanel/identifyUser/index.js +9 -0
  55. package/dist/destinations/mixpanel/identifyUser/index.js.map +1 -1
  56. package/dist/destinations/mixpanel/index.js +1 -1
  57. package/dist/destinations/mixpanel/mixpanel-properties.js.map +1 -1
  58. package/dist/destinations/mixpanel/trackEvent/functions.js.map +1 -1
  59. package/dist/destinations/mixpanel/trackEvent/index.js.map +1 -1
  60. package/dist/destinations/mixpanel/trackPurchase/index.js +1 -3
  61. package/dist/destinations/mixpanel/trackPurchase/index.js.map +1 -1
  62. package/dist/destinations/qualtrics/qualtricsApiClient.js +2 -1
  63. package/dist/destinations/qualtrics/qualtricsApiClient.js.map +1 -1
  64. package/dist/destinations/sendgrid/sendgrid-properties.js +2 -1
  65. package/dist/destinations/sendgrid/sendgrid-properties.js.map +1 -1
  66. package/package.json +4 -6
  67. package/dist/destinations/hubspot/testHelper.d.ts +0 -7
  68. package/dist/destinations/hubspot/testHelper.js +0 -24
  69. package/dist/destinations/hubspot/testHelper.js.map +0 -1
  70. package/dist/destinations/linkedin-audiences/linkedin-properties.d.ts +0 -1
  71. package/dist/destinations/linkedin-audiences/linkedin-properties.js +0 -5
  72. package/dist/destinations/linkedin-audiences/linkedin-properties.js.map +0 -1
  73. package/dist/destinations/salesforce-marketing-cloud/apiEvent/generated-types.d.ts +0 -7
  74. package/dist/destinations/salesforce-marketing-cloud/apiEvent/generated-types.js.map +0 -1
  75. package/dist/destinations/salesforce-marketing-cloud/apiEvent/index.d.ts +0 -5
  76. package/dist/destinations/salesforce-marketing-cloud/apiEvent/index.js +0 -20
  77. package/dist/destinations/salesforce-marketing-cloud/apiEvent/index.js.map +0 -1
  78. package/dist/destinations/salesforce-marketing-cloud/contact/generated-types.d.ts +0 -3
  79. package/dist/destinations/salesforce-marketing-cloud/contact/generated-types.js +0 -3
  80. package/dist/destinations/salesforce-marketing-cloud/contact/generated-types.js.map +0 -1
  81. package/dist/destinations/salesforce-marketing-cloud/contact/index.d.ts +0 -5
  82. package/dist/destinations/salesforce-marketing-cloud/contact/index.js +0 -23
  83. package/dist/destinations/salesforce-marketing-cloud/contact/index.js.map +0 -1
  84. package/dist/destinations/salesforce-marketing-cloud/contactDataExtension/generated-types.d.ts +0 -12
  85. package/dist/destinations/salesforce-marketing-cloud/contactDataExtension/generated-types.js +0 -3
  86. package/dist/destinations/salesforce-marketing-cloud/contactDataExtension/generated-types.js.map +0 -1
  87. package/dist/destinations/salesforce-marketing-cloud/contactDataExtension/index.d.ts +0 -5
  88. package/dist/destinations/salesforce-marketing-cloud/contactDataExtension/index.js +0 -35
  89. package/dist/destinations/salesforce-marketing-cloud/contactDataExtension/index.js.map +0 -1
  90. package/dist/destinations/salesforce-marketing-cloud/dataExtension/generated-types.d.ts +0 -11
  91. package/dist/destinations/salesforce-marketing-cloud/dataExtension/generated-types.js +0 -3
  92. package/dist/destinations/salesforce-marketing-cloud/dataExtension/generated-types.js.map +0 -1
  93. package/dist/destinations/salesforce-marketing-cloud/dataExtension/index.js +0 -23
  94. package/dist/destinations/salesforce-marketing-cloud/dataExtension/index.js.map +0 -1
  95. package/dist/destinations/salesforce-marketing-cloud/generated-types.d.ts +0 -7
  96. package/dist/destinations/salesforce-marketing-cloud/generated-types.js +0 -3
  97. package/dist/destinations/salesforce-marketing-cloud/generated-types.js.map +0 -1
  98. package/dist/destinations/salesforce-marketing-cloud/index.d.ts +0 -4
  99. package/dist/destinations/salesforce-marketing-cloud/index.js +0 -77
  100. package/dist/destinations/salesforce-marketing-cloud/index.js.map +0 -1
  101. package/dist/destinations/salesforce-marketing-cloud/sfmc-operations.d.ts +0 -3
  102. package/dist/destinations/salesforce-marketing-cloud/sfmc-operations.js +0 -31
  103. package/dist/destinations/salesforce-marketing-cloud/sfmc-operations.js.map +0 -1
  104. package/dist/destinations/salesforce-marketing-cloud/sfmc-properties.d.ts +0 -10
  105. package/dist/destinations/salesforce-marketing-cloud/sfmc-properties.js +0 -59
  106. package/dist/destinations/salesforce-marketing-cloud/sfmc-properties.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"sendgrid-properties.js","sourceRoot":"","sources":["../../../src/destinations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W,EAAE,CACvE,CAAC,CAAC,CAAC,CAAA;YACJ,SAAS,GAAG,mBAAmB,CAAC,EAAE,CAAA;SACnC;aAAM;YACL,MAAM,IAAI,+BAAgB,CACxB,yBAAyB,GAAG,mFAAmF,EAC/G,eAAe,EACf,GAAG,CACJ,CAAA;SACF;QACD,MAAM,CAAC,SAAS,CAAC,GAAG,YAAY,CAAC,GAAG,CAAC,CAAA;QACrC,OAAO,MAAM,CAAA;IACf,CAAC,EAAE,EAAE,CAAC,CAAA;AACR,CAAC,CAAA;AAEM,MAAM,cAAc,GAAG,CAAC,OAAgB,EAAE,mBAAkC,EAAE,EAAE;IACrF,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,YAAY,EAAE,GAAG,IAAI,EAAE,GAAG,OAAO,CAAA;IAGhF,MAAM,mBAAmB,GAAG,YAAY;QACtC,CAAC,CAAC,4BAA4B,CAAC,YAAY,EAAE,mBAAmB,CAAC;QACjE,CAAC,CAAC,YAAY,CAAA;IAEhB,OAAO,EAAE,GAAG,IAAI,EAAE,qBAAqB,EAAE,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,mBAAmB,EAAE,CAAA;AAC5G,CAAC,CAAA;AATY,QAAA,cAAc,kBAS1B"}
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.113.1-alpha.4",
4
+ "version": "3.113.1-alpha.9",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/segmentio/action-destinations",
@@ -31,7 +31,6 @@
31
31
  "typecheck": "tsc -p tsconfig.build.json --noEmit"
32
32
  },
33
33
  "devDependencies": {
34
- "@types/google-libphonenumber": "^7.4.23",
35
34
  "@types/jest": "^27.0.0",
36
35
  "jest": "^27.3.1",
37
36
  "nock": "^13.1.4"
@@ -39,12 +38,11 @@
39
38
  "dependencies": {
40
39
  "@amplitude/ua-parser-js": "^0.7.25",
41
40
  "@segment/a1-notation": "^2.1.4",
42
- "@segment/actions-core": "3.41.1-alpha.2",
43
- "@segment/actions-shared": "^1.23.1-alpha.2",
41
+ "@segment/actions-core": "^3.41.1-alpha.9",
42
+ "@segment/actions-shared": "^1.24.1-alpha.9",
44
43
  "cheerio": "^1.0.0-rc.10",
45
44
  "dayjs": "^1.10.7",
46
45
  "escape-goat": "^3",
47
- "google-libphonenumber": "^3.2.31",
48
46
  "liquidjs": "^9.37.0",
49
47
  "lodash": "^4.17.21"
50
48
  },
@@ -67,5 +65,5 @@
67
65
  "lcov"
68
66
  ]
69
67
  },
70
- "gitHead": "f5541cf75979d3cfbf76805f5b7c098b6889de20"
68
+ "gitHead": "5fc9f0090471598ea6683721bf2a09251c8bf63d"
71
69
  }
@@ -1,7 +0,0 @@
1
- declare const generateValidHubSpotCustomObjectName: (seed: string) => {
2
- objectType: string;
3
- properties: {
4
- testProperty: string;
5
- };
6
- };
7
- export { generateValidHubSpotCustomObjectName };
@@ -1,24 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.generateValidHubSpotCustomObjectName = void 0;
4
- const generateHash = (seed) => {
5
- let i, chr, hash;
6
- hash = 0;
7
- if (seed.length === 0)
8
- return hash;
9
- for (i = 0; i < seed.length; i++) {
10
- chr = seed.charCodeAt(i);
11
- hash = (hash << 5) - hash + chr;
12
- hash |= 0;
13
- }
14
- return Math.abs(hash);
15
- };
16
- const generateValidHubSpotCustomObjectName = (seed) => {
17
- const hash = generateHash(seed);
18
- return {
19
- objectType: `p${hash}_Obj${hash}`,
20
- properties: { testProperty: `testValue-${hash}` }
21
- };
22
- };
23
- exports.generateValidHubSpotCustomObjectName = generateValidHubSpotCustomObjectName;
24
- //# sourceMappingURL=testHelper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"testHelper.js","sourceRoot":"","sources":["../../../src/destinations/hubspot/testHelper.ts"],"names":[],"mappings":";;;AAAA,MAAM,YAAY,GAAG,CAAC,IAAY,EAAE,EAAE;IACpC,IAAI,CAAC,EAAE,GAAG,EAAE,IAAI,CAAA;IAChB,IAAI,GAAG,CAAC,CAAA;IAER,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAA;IAClC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QAChC,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAA;QACxB,IAAI,GAAG,CAAC,IAAI,IAAI,CAAC,CAAC,GAAG,IAAI,GAAG,GAAG,CAAA;QAC/B,IAAI,IAAI,CAAC,CAAA;KACV;IACD,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;AACvB,CAAC,CAAA;AAED,MAAM,oCAAoC,GAAG,CAAC,IAAY,EAAE,EAAE;IAC5D,MAAM,IAAI,GAAG,YAAY,CAAC,IAAI,CAAC,CAAA;IAC/B,OAAO;QACL,UAAU,EAAE,IAAI,IAAI,OAAO,IAAI,EAAE;QACjC,UAAU,EAAE,EAAE,YAAY,EAAE,aAAa,IAAI,EAAE,EAAE;KAClD,CAAA;AACH,CAAC,CAAA;AACQ,oFAAoC"}
@@ -1 +0,0 @@
1
- export declare const LINKEDIN_API_VERSION = "202207";
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LINKEDIN_API_VERSION = void 0;
4
- exports.LINKEDIN_API_VERSION = '202207';
5
- //# sourceMappingURL=linkedin-properties.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"linkedin-properties.js","sourceRoot":"","sources":["../../../src/destinations/linkedin-audiences/linkedin-properties.ts"],"names":[],"mappings":";;;AAAa,QAAA,oBAAoB,GAAG,QAAQ,CAAA"}
@@ -1,7 +0,0 @@
1
- export interface Payload {
2
- eventDefinitionKey: string;
3
- contactKey: string;
4
- data?: {
5
- [k: string]: unknown;
6
- };
7
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/salesforce-marketing-cloud/apiEvent/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,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const sfmc_properties_1 = require("../sfmc-properties");
4
- const action = {
5
- title: 'Send API Event',
6
- description: 'Send events into an existing Event Definition in Salesforce Marketing Cloud.',
7
- fields: {
8
- eventDefinitionKey: sfmc_properties_1.eventDefinitionKey,
9
- contactKey: sfmc_properties_1.contactKeyAPIEvent,
10
- data: sfmc_properties_1.eventData
11
- },
12
- perform: (request, { settings, payload }) => {
13
- return request(`https://${settings.subdomain}.rest.marketingcloudapis.com/interaction/v1/events`, {
14
- method: 'post',
15
- json: payload
16
- });
17
- }
18
- };
19
- exports.default = action;
20
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/salesforce-marketing-cloud/apiEvent/index.ts"],"names":[],"mappings":";;AAEA,wDAAsF;AAGtF,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,gBAAgB;IACvB,WAAW,EAAE,8EAA8E;IAC3F,MAAM,EAAE;QACN,kBAAkB,EAAE,oCAAkB;QACtC,UAAU,EAAE,oCAAkB;QAC9B,IAAI,EAAE,2BAAS;KAChB;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;QAC1C,OAAO,OAAO,CAAC,WAAW,QAAQ,CAAC,SAAS,oDAAoD,EAAE;YAChG,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,OAAO;SACd,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -1,3 +0,0 @@
1
- export interface Payload {
2
- contactKey: string;
3
- }
@@ -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/salesforce-marketing-cloud/contact/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,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const sfmc_properties_1 = require("../sfmc-properties");
4
- const action = {
5
- title: 'Create Contact',
6
- description: 'Create contacts in Salesforce Marketing Cloud.',
7
- defaultSubscription: 'type = "identify"',
8
- fields: {
9
- contactKey: { ...sfmc_properties_1.contactKey, required: true }
10
- },
11
- perform: (request, { settings, payload }) => {
12
- const requestUrl = `https://${settings.subdomain}.rest.marketingcloudapis.com/contacts/v1/contacts`;
13
- return request(requestUrl, {
14
- method: 'post',
15
- json: {
16
- contactKey: payload.contactKey,
17
- attributeSets: []
18
- }
19
- });
20
- }
21
- };
22
- exports.default = action;
23
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/salesforce-marketing-cloud/contact/index.ts"],"names":[],"mappings":";;AAEA,wDAA+C;AAG/C,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,gBAAgB;IACvB,WAAW,EAAE,gDAAgD;IAC7D,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE;QACN,UAAU,EAAE,EAAE,GAAG,4BAAU,EAAE,QAAQ,EAAE,IAAI,EAAE;KAC9C;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;QAC1C,MAAM,UAAU,GAAG,WAAW,QAAQ,CAAC,SAAS,mDAAmD,CAAA;QACnG,OAAO,OAAO,CAAC,UAAU,EAAE;YACzB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE;gBACJ,UAAU,EAAE,OAAO,CAAC,UAAU;gBAC9B,aAAa,EAAE,EAAE;aAClB;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -1,12 +0,0 @@
1
- export interface Payload {
2
- key?: string;
3
- id?: string;
4
- keys: {
5
- contactKey: string;
6
- [k: string]: unknown;
7
- };
8
- values?: {
9
- [k: string]: unknown;
10
- };
11
- enable_batching?: boolean;
12
- }
@@ -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/salesforce-marketing-cloud/contactDataExtension/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,35 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const sfmc_properties_1 = require("../sfmc-properties");
4
- const sfmc_operations_1 = require("../sfmc-operations");
5
- const action = {
6
- title: 'Contact Data Extension',
7
- defaultSubscription: 'type = "identify"',
8
- description: 'Upsert contact data as rows into an existing data extension in Salesforce Marketing Cloud.',
9
- fields: {
10
- key: sfmc_properties_1.key,
11
- id: sfmc_properties_1.id,
12
- keys: {
13
- ...sfmc_properties_1.keys,
14
- properties: {
15
- contactKey: {
16
- label: 'Contact Key',
17
- description: 'The unique identifier that you assign to a contact. Contact Key must be a Primary Key in the data extension that contains contact information.',
18
- type: 'string',
19
- required: true,
20
- default: { '@path': '$.userId' }
21
- }
22
- }
23
- },
24
- values: sfmc_properties_1.values,
25
- enable_batching: sfmc_properties_1.enable_batching
26
- },
27
- perform: async (request, { settings, payload }) => {
28
- return sfmc_operations_1.upsertRows(request, settings.subdomain, [payload]);
29
- },
30
- performBatch: async (request, { settings, payload }) => {
31
- return sfmc_operations_1.upsertRows(request, settings.subdomain, payload);
32
- }
33
- };
34
- exports.default = action;
35
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/salesforce-marketing-cloud/contactDataExtension/index.ts"],"names":[],"mappings":";;AAGA,wDAA2E;AAC3E,wDAA+C;AAE/C,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,wBAAwB;IAC/B,mBAAmB,EAAE,mBAAmB;IACxC,WAAW,EAAE,4FAA4F;IACzG,MAAM,EAAE;QACN,GAAG,EAAE,qBAAG;QACR,EAAE,EAAE,oBAAE;QACN,IAAI,EAAE;YACJ,GAAG,sBAAI;YACP,UAAU,EAAE;gBACV,UAAU,EAAE;oBACV,KAAK,EAAE,aAAa;oBACpB,WAAW,EACT,gJAAgJ;oBAClJ,IAAI,EAAE,QAAQ;oBACd,QAAQ,EAAE,IAAI;oBACd,OAAO,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;iBACjC;aACF;SACF;QACD,MAAM,EAAE,wBAAM;QACd,eAAe,EAAE,iCAAe;KACjC;IACD,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;QAChD,OAAO,4BAAU,CAAC,OAAO,EAAE,QAAQ,CAAC,SAAS,EAAE,CAAC,OAAO,CAAC,CAAC,CAAA;IAC3D,CAAC;IACD,YAAY,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;QACrD,OAAO,4BAAU,CAAC,OAAO,EAAE,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC,CAAA;IACzD,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -1,11 +0,0 @@
1
- export interface Payload {
2
- key?: string;
3
- id?: string;
4
- keys: {
5
- [k: string]: unknown;
6
- };
7
- values?: {
8
- [k: string]: unknown;
9
- };
10
- enable_batching?: boolean;
11
- }
@@ -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/salesforce-marketing-cloud/dataExtension/generated-types.ts"],"names":[],"mappings":""}
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const sfmc_properties_1 = require("../sfmc-properties");
4
- const sfmc_operations_1 = require("../sfmc-operations");
5
- const action = {
6
- title: 'Send Event to Data Extension',
7
- description: 'Upsert events as rows into an existing data extension in Salesforce Marketing Cloud.',
8
- fields: {
9
- key: sfmc_properties_1.key,
10
- id: sfmc_properties_1.id,
11
- keys: { ...sfmc_properties_1.keys, required: true },
12
- values: sfmc_properties_1.values,
13
- enable_batching: sfmc_properties_1.enable_batching
14
- },
15
- perform: async (request, { settings, payload }) => {
16
- return sfmc_operations_1.upsertRows(request, settings.subdomain, [payload]);
17
- },
18
- performBatch: async (request, { settings, payload }) => {
19
- return sfmc_operations_1.upsertRows(request, settings.subdomain, payload);
20
- }
21
- };
22
- exports.default = action;
23
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/salesforce-marketing-cloud/dataExtension/index.ts"],"names":[],"mappings":";;AAGA,wDAA2E;AAC3E,wDAA+C;AAE/C,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,8BAA8B;IACrC,WAAW,EAAE,sFAAsF;IACnG,MAAM,EAAE;QACN,GAAG,EAAE,qBAAG;QACR,EAAE,EAAE,oBAAE;QACN,IAAI,EAAE,EAAE,GAAG,sBAAI,EAAE,QAAQ,EAAE,IAAI,EAAE;QACjC,MAAM,EAAE,wBAAM;QACd,eAAe,EAAE,iCAAe;KACjC;IACD,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;QAChD,OAAO,4BAAU,CAAC,OAAO,EAAE,QAAQ,CAAC,SAAS,EAAE,CAAC,OAAO,CAAC,CAAC,CAAA;IAC3D,CAAC;IACD,YAAY,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;QACrD,OAAO,4BAAU,CAAC,OAAO,EAAE,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC,CAAA;IACzD,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -1,7 +0,0 @@
1
- export interface Settings {
2
- subdomain: string;
3
- token: string;
4
- account_id: string;
5
- client_id: string;
6
- client_secret: string;
7
- }
@@ -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/salesforce-marketing-cloud/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,77 +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 contact_1 = __importDefault(require("./contact"));
7
- const dataExtension_1 = __importDefault(require("./dataExtension"));
8
- const contactDataExtension_1 = __importDefault(require("./contactDataExtension"));
9
- const apiEvent_1 = __importDefault(require("./apiEvent"));
10
- const destination = {
11
- name: 'Salesforce Marketing Cloud (Actions)',
12
- slug: 'actions-salesforce-marketing-cloud',
13
- mode: 'cloud',
14
- authentication: {
15
- scheme: 'oauth2',
16
- fields: {
17
- subdomain: {
18
- label: 'Subdomain',
19
- description: 'The unique subdomain Salesforce Marketing Cloud assigned to your account. Subdomains are tenant specific and should be a 28-character string starting with the letters "mc". Do not include the .rest.marketingcloudapis.com part of your subdomain URL. See more information on how to find your subdomain [here](https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/your-subdomain-tenant-specific-endpoints.html).',
20
- type: 'string',
21
- required: true
22
- },
23
- token: {
24
- label: 'Token',
25
- description: 'STAGE TESTING',
26
- type: 'string',
27
- required: true
28
- },
29
- account_id: {
30
- label: 'account id',
31
- description: 'STAGE TESTING',
32
- type: 'string',
33
- required: true
34
- },
35
- client_id: {
36
- label: 'client_id',
37
- description: 'STAGE TESTING',
38
- type: 'string',
39
- required: true
40
- },
41
- client_secret: {
42
- label: 'client_secret',
43
- description: 'STAGE TESTING',
44
- type: 'string',
45
- required: true
46
- }
47
- },
48
- refreshAccessToken: async (request, { settings }) => {
49
- const baseUrl = `https://${settings.subdomain}.auth.marketingcloudapis.com/v2/token`;
50
- const res = await request(`${baseUrl}`, {
51
- method: 'POST',
52
- body: new URLSearchParams({
53
- account_id: settings.account_id,
54
- client_id: settings.client_id,
55
- client_secret: settings.client_secret,
56
- grant_type: 'client_credentials'
57
- })
58
- });
59
- return { accessToken: res.data.access_token };
60
- }
61
- },
62
- extendRequest({ auth }) {
63
- return {
64
- headers: {
65
- authorization: `Bearer ${auth?.accessToken}`
66
- }
67
- };
68
- },
69
- actions: {
70
- contact: contact_1.default,
71
- dataExtension: dataExtension_1.default,
72
- contactDataExtension: contactDataExtension_1.default,
73
- apiEvent: apiEvent_1.default
74
- }
75
- };
76
- exports.default = destination;
77
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/salesforce-marketing-cloud/index.ts"],"names":[],"mappings":";;;;;AAEA,wDAA+B;AAC/B,oEAA2C;AAC3C,kFAAyD;AACzD,0DAAiC;AAMjC,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;YACN,SAAS,EAAE;gBACT,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,0aAA0a;gBAC5a,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;YACD,KAAK,EAAE;gBACL,KAAK,EAAE,OAAO;gBACd,WAAW,EAAE,eAAe;gBAC5B,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;YACD,UAAU,EAAE;gBACV,KAAK,EAAE,YAAY;gBACnB,WAAW,EAAE,eAAe;gBAC5B,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;YACD,SAAS,EAAE;gBACT,KAAK,EAAE,WAAW;gBAClB,WAAW,EAAE,eAAe;gBAC5B,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;YACD,aAAa,EAAE;gBACb,KAAK,EAAE,eAAe;gBACtB,WAAW,EAAE,eAAe;gBAC5B,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;SACF;QACD,kBAAkB,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;YAClD,MAAM,OAAO,GAAG,WAAW,QAAQ,CAAC,SAAS,uCAAuC,CAAA;YACpF,MAAM,GAAG,GAAG,MAAM,OAAO,CAAuB,GAAG,OAAO,EAAE,EAAE;gBAC5D,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE,IAAI,eAAe,CAAC;oBACxB,UAAU,EAAE,QAAQ,CAAC,UAAU;oBAC/B,SAAS,EAAE,QAAQ,CAAC,SAAS;oBAC7B,aAAa,EAAE,QAAQ,CAAC,aAAa;oBACrC,UAAU,EAAE,oBAAoB;iBACjC,CAAC;aACH,CAAC,CAAA;YACF,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,OAAO,EAAP,iBAAO;QACP,aAAa,EAAb,uBAAa;QACb,oBAAoB,EAApB,8BAAoB;QACpB,QAAQ,EAAR,kBAAQ;KACT;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
@@ -1,3 +0,0 @@
1
- import { RequestClient } from '@segment/actions-core';
2
- import { Payload } from './dataExtension/generated-types';
3
- export declare function upsertRows(request: RequestClient, subdomain: String, payloads: Payload[]): Promise<import("@segment/actions-core").ModifiedResponse<unknown>>;
@@ -1,31 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.upsertRows = void 0;
4
- const actions_core_1 = require("@segment/actions-core");
5
- function upsertRows(request, subdomain, payloads) {
6
- const { key, id } = payloads[0];
7
- if (!key && !id) {
8
- throw new actions_core_1.IntegrationError(`In order to send an event to a data extension either Data Extension ID or Data Extension Key must be defined.`, 'Misconfigured required field', 400);
9
- }
10
- const rows = [];
11
- payloads.forEach((payload) => {
12
- rows.push({
13
- keys: payload.keys,
14
- values: payload.values
15
- });
16
- });
17
- if (key) {
18
- return request(`https://${subdomain}.rest.marketingcloudapis.com/hub/v1/dataevents/key:${key}/rowset`, {
19
- method: 'post',
20
- json: rows
21
- });
22
- }
23
- else {
24
- return request(`https://${subdomain}.rest.marketingcloudapis.com/hub/v1/dataevents/${id}/rowset`, {
25
- method: 'post',
26
- json: rows
27
- });
28
- }
29
- }
30
- exports.upsertRows = upsertRows;
31
- //# sourceMappingURL=sfmc-operations.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sfmc-operations.js","sourceRoot":"","sources":["../../../src/destinations/salesforce-marketing-cloud/sfmc-operations.ts"],"names":[],"mappings":";;;AAAA,wDAAuE;AAGvE,SAAgB,UAAU,CAAC,OAAsB,EAAE,SAAiB,EAAE,QAAmB;IACvF,MAAM,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAA;IAE/B,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,EAAE;QACf,MAAM,IAAI,+BAAgB,CACxB,+GAA+G,EAC/G,8BAA8B,EAC9B,GAAG,CACJ,CAAA;KACF;IACD,MAAM,IAAI,GAA0B,EAAE,CAAA;IACtC,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAgB,EAAE,EAAE;QACpC,IAAI,CAAC,IAAI,CAAC;YACR,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,MAAM,EAAE,OAAO,CAAC,MAAM;SACvB,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;IACF,IAAI,GAAG,EAAE;QACP,OAAO,OAAO,CAAC,WAAW,SAAS,sDAAsD,GAAG,SAAS,EAAE;YACrG,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI;SACX,CAAC,CAAA;KACH;SAAM;QACL,OAAO,OAAO,CAAC,WAAW,SAAS,kDAAkD,EAAE,SAAS,EAAE;YAChG,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI;SACX,CAAC,CAAA;KACH;AACH,CAAC;AA5BD,gCA4BC"}
@@ -1,10 +0,0 @@
1
- import { InputField } from '@segment/actions-core/src/destination-kit/types';
2
- export declare const contactKey: InputField;
3
- export declare const contactKeyAPIEvent: InputField;
4
- export declare const key: InputField;
5
- export declare const id: InputField;
6
- export declare const keys: InputField;
7
- export declare const values: InputField;
8
- export declare const eventDefinitionKey: InputField;
9
- export declare const eventData: InputField;
10
- export declare const enable_batching: InputField;
@@ -1,59 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.enable_batching = exports.eventData = exports.eventDefinitionKey = exports.values = exports.keys = exports.id = exports.key = exports.contactKeyAPIEvent = exports.contactKey = void 0;
4
- exports.contactKey = {
5
- label: 'Contact Key',
6
- description: 'The unique identifier that you assign to a contact. This will be used to create a contact if one does not already exist with this Contact Key.',
7
- type: 'string',
8
- default: { '@path': '$.userId' }
9
- };
10
- exports.contactKeyAPIEvent = {
11
- label: 'Contact Key',
12
- description: 'The unique identifier that identifies a subscriber or a contact.',
13
- type: 'string',
14
- default: { '@path': '$.userId' },
15
- required: true
16
- };
17
- exports.key = {
18
- label: 'Data Extension Key',
19
- description: 'The key of the data extension that you want to store contact information in. The data extension must be predefined in SFMC. Segment recommends storing all contact information in a single data extension. The key is required if a Data Extension ID is not provided.',
20
- type: 'string'
21
- };
22
- exports.id = {
23
- label: 'Data Extension ID',
24
- description: 'The ID of the data extension that you want to store contact information in. The data extension must be predefined in SFMC. Segment recommends storing all contact information in a single data extension. The ID is required if a Data Extension Key is not provided.',
25
- type: 'string'
26
- };
27
- exports.keys = {
28
- label: 'Data Extension Primary Keys',
29
- description: 'The primary key(s) that uniquely identify a contact in the data extension. At a minimum, Contact Key must exist in your data extension as a Primary Key. On the left-hand side, input the SFMC key name. On the right-hand side, map the Segment field that contains the corresponding value. When multiple primary keys are provided, SFMC will update an existing row if all primary keys match, otherwise a new row will be created.',
30
- type: 'object',
31
- required: true,
32
- defaultObjectUI: 'keyvalue:only',
33
- additionalProperties: true
34
- };
35
- exports.values = {
36
- label: 'Contact Fields',
37
- description: 'The fields in the data extension that contain data about a contact, such as Email, Last Name, etc. Fields must be created in the data extension before sending data for it. On the left-hand side, input the SFMC field name exactly how it appears in the data extension. On the right-hand side, map the Segment field that contains the corresponding value.',
38
- type: 'object',
39
- defaultObjectUI: 'keyvalue:only'
40
- };
41
- exports.eventDefinitionKey = {
42
- label: 'Event Definition Key',
43
- description: 'The unique key for an event definition in Salesforce Marketing Cloud. The event defintion must be predefined in SFMC. ',
44
- type: 'string',
45
- required: true
46
- };
47
- exports.eventData = {
48
- label: 'Event Data',
49
- description: 'The properties of the event. Fields must be created in the event definition schema before sending data for it. On the left-hand side, input the SFMC field name exactly how it appears in the event definition schema. On the right-hand side, map the Segment field that contains the corresponding value.',
50
- type: 'object',
51
- defaultObjectUI: 'keyvalue:only'
52
- };
53
- exports.enable_batching = {
54
- label: 'Batch data to SFMC',
55
- description: 'If true, data is batched before sending to the SFMC Data Extension.',
56
- type: 'boolean',
57
- default: false
58
- };
59
- //# sourceMappingURL=sfmc-properties.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sfmc-properties.js","sourceRoot":"","sources":["../../../src/destinations/salesforce-marketing-cloud/sfmc-properties.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAe;IACpC,KAAK,EAAE,aAAa;IACpB,WAAW,EACT,gJAAgJ;IAClJ,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;CACjC,CAAA;AAEY,QAAA,kBAAkB,GAAe;IAC5C,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,kEAAkE;IAC/E,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;IAChC,QAAQ,EAAE,IAAI;CACf,CAAA;AAEY,QAAA,GAAG,GAAe;IAC7B,KAAK,EAAE,oBAAoB;IAC3B,WAAW,EACT,wQAAwQ;IAC1Q,IAAI,EAAE,QAAQ;CACf,CAAA;AACY,QAAA,EAAE,GAAe;IAC5B,KAAK,EAAE,mBAAmB;IAC1B,WAAW,EACT,uQAAuQ;IACzQ,IAAI,EAAE,QAAQ;CACf,CAAA;AACY,QAAA,IAAI,GAAe;IAC9B,KAAK,EAAE,6BAA6B;IACpC,WAAW,EACT,yaAAya;IA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