@segment/action-destinations 3.228.0 → 3.228.1-staging.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 (94) hide show
  1. package/dist/destinations/blackbaud-raisers-edge-nxt/utils/index.d.ts +1 -1
  2. package/dist/destinations/braze/trackEvent/index.js +1 -1
  3. package/dist/destinations/braze/trackEvent/index.js.map +1 -1
  4. package/dist/destinations/braze/trackPurchase/generated-types.d.ts +1 -0
  5. package/dist/destinations/braze/trackPurchase/index.js +9 -0
  6. package/dist/destinations/braze/trackPurchase/index.js.map +1 -1
  7. package/dist/destinations/braze/updateUserProfile/__snapshots__/snapshot.test.d.ts +1 -0
  8. package/dist/destinations/braze/updateUserProfile/__snapshots__/snapshot.test.js +184 -0
  9. package/dist/destinations/braze/updateUserProfile/__snapshots__/snapshot.test.js.map +1 -0
  10. package/dist/destinations/braze/updateUserProfile/generated-types.d.ts +1 -0
  11. package/dist/destinations/braze/updateUserProfile/index.js +11 -88
  12. package/dist/destinations/braze/updateUserProfile/index.js.map +1 -1
  13. package/dist/destinations/braze/utils.d.ts +4 -0
  14. package/dist/destinations/braze/utils.js +171 -1
  15. package/dist/destinations/braze/utils.js.map +1 -1
  16. package/dist/destinations/engage/utils/track.d.ts +17 -17
  17. package/dist/destinations/klaviyo/addProfileToList/generated-types.d.ts +4 -0
  18. package/dist/destinations/klaviyo/addProfileToList/generated-types.js +3 -0
  19. package/dist/destinations/klaviyo/addProfileToList/generated-types.js.map +1 -0
  20. package/dist/destinations/klaviyo/addProfileToList/index.d.ts +5 -0
  21. package/dist/destinations/klaviyo/addProfileToList/index.js +48 -0
  22. package/dist/destinations/klaviyo/addProfileToList/index.js.map +1 -0
  23. package/dist/destinations/klaviyo/functions.d.ts +7 -0
  24. package/dist/destinations/klaviyo/functions.js +91 -0
  25. package/dist/destinations/klaviyo/functions.js.map +1 -0
  26. package/dist/destinations/klaviyo/index.d.ts +2 -2
  27. package/dist/destinations/klaviyo/index.js +63 -1
  28. package/dist/destinations/klaviyo/index.js.map +1 -1
  29. package/dist/destinations/klaviyo/properties.d.ts +3 -0
  30. package/dist/destinations/klaviyo/properties.js +21 -0
  31. package/dist/destinations/klaviyo/properties.js.map +1 -0
  32. package/dist/destinations/klaviyo/removeProfileToList/generated-types.d.ts +4 -0
  33. package/dist/destinations/klaviyo/removeProfileToList/generated-types.js +3 -0
  34. package/dist/destinations/klaviyo/removeProfileToList/generated-types.js.map +1 -0
  35. package/dist/destinations/klaviyo/removeProfileToList/index.d.ts +5 -0
  36. package/dist/destinations/klaviyo/removeProfileToList/index.js +43 -0
  37. package/dist/destinations/klaviyo/removeProfileToList/index.js.map +1 -0
  38. package/dist/destinations/klaviyo/types.d.ts +20 -0
  39. package/dist/destinations/klaviyo/types.js.map +1 -1
  40. package/dist/destinations/klaviyo/upsertProfile/generated-types.d.ts +1 -0
  41. package/dist/destinations/klaviyo/upsertProfile/index.js +16 -1
  42. package/dist/destinations/klaviyo/upsertProfile/index.js.map +1 -1
  43. package/dist/destinations/linkedin-conversions/api/api.test.d.ts +1 -0
  44. package/dist/destinations/linkedin-conversions/api/api.test.js +220 -0
  45. package/dist/destinations/linkedin-conversions/api/api.test.js.map +1 -0
  46. package/dist/destinations/linkedin-conversions/api/index.d.ts +7 -1
  47. package/dist/destinations/linkedin-conversions/api/index.js +141 -0
  48. package/dist/destinations/linkedin-conversions/api/index.js.map +1 -1
  49. package/dist/destinations/linkedin-conversions/constants.d.ts +1 -0
  50. package/dist/destinations/linkedin-conversions/constants.js +7 -1
  51. package/dist/destinations/linkedin-conversions/constants.js.map +1 -1
  52. package/dist/destinations/linkedin-conversions/streamConversion/generated-types.d.ts +18 -0
  53. package/dist/destinations/linkedin-conversions/streamConversion/index.js +142 -6
  54. package/dist/destinations/linkedin-conversions/streamConversion/index.js.map +1 -1
  55. package/dist/destinations/linkedin-conversions/types.d.ts +50 -0
  56. package/dist/destinations/marketo-static-lists/addToList/generated-types.d.ts +5 -0
  57. package/dist/destinations/marketo-static-lists/addToList/index.js +16 -4
  58. package/dist/destinations/marketo-static-lists/addToList/index.js.map +1 -1
  59. package/dist/destinations/marketo-static-lists/constants.d.ts +38 -2
  60. package/dist/destinations/marketo-static-lists/constants.js +5 -1
  61. package/dist/destinations/marketo-static-lists/constants.js.map +1 -1
  62. package/dist/destinations/marketo-static-lists/functions.d.ts +7 -0
  63. package/dist/destinations/marketo-static-lists/functions.js +71 -0
  64. package/dist/destinations/marketo-static-lists/functions.js.map +1 -0
  65. package/dist/destinations/marketo-static-lists/index.js.map +1 -1
  66. package/dist/destinations/marketo-static-lists/properties.d.ts +6 -0
  67. package/dist/destinations/marketo-static-lists/properties.js +49 -0
  68. package/dist/destinations/marketo-static-lists/properties.js.map +1 -0
  69. package/dist/destinations/marketo-static-lists/removeFromList/generated-types.d.ts +5 -0
  70. package/dist/destinations/marketo-static-lists/removeFromList/index.js +17 -5
  71. package/dist/destinations/marketo-static-lists/removeFromList/index.js.map +1 -1
  72. package/dist/destinations/mixpanel/utils.d.ts +13 -0
  73. package/dist/destinations/mixpanel/utils.js +117 -0
  74. package/dist/destinations/mixpanel/utils.js.map +1 -0
  75. package/dist/destinations/snap-conversions-api/index.js +7 -0
  76. package/dist/destinations/snap-conversions-api/index.js.map +1 -1
  77. package/dist/destinations/webhook-audiences/index.js +2 -1
  78. package/dist/destinations/webhook-audiences/index.js.map +1 -1
  79. package/dist/destinations/yahoo-audiences/createCustomerNode/generated-types.d.ts +4 -0
  80. package/dist/destinations/yahoo-audiences/createCustomerNode/generated-types.js +3 -0
  81. package/dist/destinations/yahoo-audiences/createCustomerNode/generated-types.js.map +1 -0
  82. package/dist/destinations/yahoo-audiences/createCustomerNode/index.d.ts +5 -0
  83. package/dist/destinations/yahoo-audiences/createCustomerNode/index.js +26 -0
  84. package/dist/destinations/yahoo-audiences/createCustomerNode/index.js.map +1 -0
  85. package/dist/destinations/yahoo-audiences/createSegment/generated-types.d.ts +6 -0
  86. package/dist/destinations/yahoo-audiences/createSegment/generated-types.js +3 -0
  87. package/dist/destinations/yahoo-audiences/createSegment/generated-types.js.map +1 -0
  88. package/dist/destinations/yahoo-audiences/createSegment/index.d.ts +5 -0
  89. package/dist/destinations/yahoo-audiences/createSegment/index.js +38 -0
  90. package/dist/destinations/yahoo-audiences/createSegment/index.js.map +1 -0
  91. package/dist/destinations/yahoo-audiences/utils.d.ts +4 -0
  92. package/dist/destinations/yahoo-audiences/utils.js +30 -0
  93. package/dist/destinations/yahoo-audiences/utils.js.map +1 -0
  94. package/package.json +2 -2
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const action = {
4
+ title: 'Create top-level CUSTOMER node in Yahoo taxonomy',
5
+ defaultSubscription: 'event = "Audience Entered" and event = "Audience Exited"',
6
+ description: '',
7
+ fields: {
8
+ engage_space_id: {
9
+ label: 'Engage Space Id',
10
+ description: 'Provide Engage Space Id found in Unify > Settings > API Access. This maps to the "Id" and "Name" of the top-level Customer node in Yahoo taxonomy',
11
+ type: 'string',
12
+ required: true
13
+ },
14
+ customer_desc: {
15
+ label: 'Customer Description',
16
+ description: 'Provide a description for the Customer node in Yahoo taxonomy. This must be less then 1000 characters',
17
+ type: 'string',
18
+ required: false
19
+ }
20
+ },
21
+ perform: () => {
22
+ return;
23
+ }
24
+ };
25
+ exports.default = action;
26
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/yahoo-audiences/createCustomerNode/index.ts"],"names":[],"mappings":";;AAMA,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,kDAAkD;IACzD,mBAAmB,EAAE,0DAA0D;IAC/E,WAAW,EAAE,EAAE;IACf,MAAM,EAAE;QACN,eAAe,EAAE;YACf,KAAK,EAAE,iBAAiB;YACxB,WAAW,EACT,mJAAmJ;YACrJ,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACf;QACD,aAAa,EAAE;YACb,KAAK,EAAE,sBAAsB;YAC7B,WAAW,EACT,uGAAuG;YACzG,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;SAChB;KACF;IASD,OAAO,EAAE,GAAG,EAAE;QACZ,OAAM;IACR,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -0,0 +1,6 @@
1
+ export interface Payload {
2
+ segment_audience_key: string;
3
+ segment_audience_id: string;
4
+ engage_space_id?: string;
5
+ customer_desc?: string;
6
+ }
@@ -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/yahoo-audiences/createSegment/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,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const action = {
4
+ title: 'Create SEGMENT sub-node in Yahoo taxonomy',
5
+ description: 'Use this action to generate SEGMENT sub-node within CUSTOMER node in Yahoo taxonomy',
6
+ defaultSubscription: 'event = "Audience Entered" and event = "Audience Exited"',
7
+ fields: {
8
+ segment_audience_key: {
9
+ label: 'Audience Key',
10
+ description: 'Provide audience key. This maps to the "Name" of the Segment node in Yahoo taxonomy',
11
+ type: 'string',
12
+ required: true
13
+ },
14
+ segment_audience_id: {
15
+ label: 'Audience Id',
16
+ description: 'Provide audience Id (aud_...) from audience URL in Segment Engage. This maps to the "Id" of the Segment node in Yahoo taxonomy',
17
+ type: 'string',
18
+ required: true
19
+ },
20
+ engage_space_id: {
21
+ label: 'Engage Space Id',
22
+ description: 'Provide Engage Space Id found in Unify > Settings > API Access. This maps to the "Id" and "Name" of the top-level Customer node in Yahoo taxonomy and specifies the parent node for your Segment node in Yahoo taxonomy',
23
+ type: 'string',
24
+ required: false
25
+ },
26
+ customer_desc: {
27
+ label: 'Space Description',
28
+ description: 'Provide the description for Segment node in Yahoo taxonomy. This must be less then 1000 characters',
29
+ type: 'string',
30
+ required: false
31
+ }
32
+ },
33
+ perform: () => {
34
+ return;
35
+ }
36
+ };
37
+ exports.default = action;
38
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/yahoo-audiences/createSegment/index.ts"],"names":[],"mappings":";;AAQA,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,2CAA2C;IAClD,WAAW,EAAE,qFAAqF;IAClG,mBAAmB,EAAE,0DAA0D;IAE/E,MAAM,EAAE;QACN,oBAAoB,EAAE;YACpB,KAAK,EAAE,cAAc;YACrB,WAAW,EAAE,qFAAqF;YAClG,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACf;QACD,mBAAmB,EAAE;YACnB,KAAK,EAAE,aAAa;YACpB,WAAW,EACT,gIAAgI;YAClI,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACf;QACD,eAAe,EAAE;YACf,KAAK,EAAE,iBAAiB;YACxB,WAAW,EACT,yNAAyN;YAC3N,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;SAChB;QACD,aAAa,EAAE;YACb,KAAK,EAAE,mBAAmB;YAC1B,WAAW,EAAE,oGAAoG;YACjH,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;SAChB;KACF;IAUD,OAAO,EAAE,GAAG,EAAE;QACZ,OAAM;IACR,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { RequestClient } from '@segment/actions-core';
2
+ import { CredsObj } from './types';
3
+ export declare function gen_random_id(length: number): string;
4
+ export declare function update_taxonomy(engage_space_id: string, tx_creds: CredsObj, request: RequestClient, body_form_data: string): Promise<any>;
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.update_taxonomy = exports.gen_random_id = void 0;
4
+ const utils_tax_1 = require("./utils-tax");
5
+ function gen_random_id(length) {
6
+ const pattern = 'abcdefghijklmnopqrstuvwxyz123456789';
7
+ const result = [];
8
+ for (let i = 0; i < length; i++) {
9
+ result.push(pattern[Math.floor(Math.random() * pattern.length)]);
10
+ }
11
+ return result.join('');
12
+ }
13
+ exports.gen_random_id = gen_random_id;
14
+ async function update_taxonomy(engage_space_id, tx_creds, request, body_form_data) {
15
+ const tx_client_secret = tx_creds.tx_client_key;
16
+ const tx_client_key = tx_creds.tx_client_secret;
17
+ const url = `https://datax.yahooapis.com/v1/taxonomy/append${engage_space_id.length > 0 ? '/' + engage_space_id : ''}`;
18
+ const oauth1_auth_string = utils_tax_1.gen_oauth1_signature(tx_client_key, tx_client_secret, 'PUT', url);
19
+ const add_segment_node = await request(url, {
20
+ method: 'PUT',
21
+ body: body_form_data,
22
+ headers: {
23
+ Authorization: oauth1_auth_string,
24
+ 'Content-Type': 'multipart/form-data; boundary=SEGMENT-DATA'
25
+ }
26
+ });
27
+ return await add_segment_node.json();
28
+ }
29
+ exports.update_taxonomy = update_taxonomy;
30
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/destinations/yahoo-audiences/utils.ts"],"names":[],"mappings":";;;AAEA,2CAAkD;AAQlD,SAAgB,aAAa,CAAC,MAAc;IAC1C,MAAM,OAAO,GAAG,qCAAqC,CAAA;IACrD,MAAM,MAAM,GAAG,EAAE,CAAA;IACjB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,CAAC,EAAE,EAAE;QAC/B,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;KACjE;IACD,OAAO,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACxB,CAAC;AAPD,sCAOC;AAEM,KAAK,UAAU,eAAe,CACnC,eAAuB,EACvB,QAAkB,EAClB,OAAsB,EACtB,cAAsB;IAEtB,MAAM,gBAAgB,GAAG,QAAQ,CAAC,aAAa,CAAA;IAC/C,MAAM,aAAa,GAAG,QAAQ,CAAC,gBAAgB,CAAA;IAC/C,MAAM,GAAG,GAAG,iDAAiD,eAAe,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,eAAe,CAAC,CAAC,CAAC,EAAE,EAAE,CAAA;IACtH,MAAM,kBAAkB,GAAG,gCAAoB,CAAC,aAAa,EAAE,gBAAgB,EAAE,KAAK,EAAE,GAAG,CAAC,CAAA;IAE5F,MAAM,gBAAgB,GAAG,MAAM,OAAO,CAAC,GAAG,EAAE;QAC1C,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE;YACP,aAAa,EAAE,kBAAkB;YACjC,cAAc,EAAE,4CAA4C;SAC7D;KACF,CAAC,CAAA;IAEF,OAAO,MAAM,gBAAgB,CAAC,IAAI,EAAE,CAAA;AACtC,CAAC;AArBD,0CAqBC"}
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.228.0",
4
+ "version": "3.228.1-staging.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/segmentio/action-destinations",
@@ -82,5 +82,5 @@
82
82
  "__tests__/__helpers__/"
83
83
  ]
84
84
  },
85
- "gitHead": "3d539b1eae9d79b41149fb3179053c4f4c3a68cd"
85
+ "gitHead": "9c04e12c4a0e81f6b68dca0a297fb2c0209d2431"
86
86
  }