@segment/action-destinations 3.264.0 → 3.265.0-staging-f2df62ce4

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 (142) hide show
  1. package/dist/destinations/amazon-ads/utils.d.ts +25 -0
  2. package/dist/destinations/amazon-ads/utils.js +8 -0
  3. package/dist/destinations/amazon-ads/utils.js.map +1 -0
  4. package/dist/destinations/customerio/utils.d.ts +1 -1
  5. package/dist/destinations/dynamic-yield-audiences/syncAudience/types.d.ts +22 -0
  6. package/dist/destinations/dynamic-yield-audiences/syncAudience/types.js +3 -0
  7. package/dist/destinations/dynamic-yield-audiences/syncAudience/types.js.map +1 -0
  8. package/dist/destinations/dynamic-yield-audiences/types.d.ts +8 -0
  9. package/dist/destinations/dynamic-yield-audiences/types.js +12 -0
  10. package/dist/destinations/dynamic-yield-audiences/types.js.map +1 -0
  11. package/dist/destinations/engage/utils/track.d.ts +9 -9
  12. package/dist/destinations/engage-messaging-sendgrid/sendEmail/generated-types.d.ts +36 -0
  13. package/dist/destinations/engage-messaging-sendgrid/sendEmail/generated-types.js +3 -0
  14. package/dist/destinations/engage-messaging-sendgrid/sendEmail/generated-types.js.map +1 -0
  15. package/dist/destinations/engage-messaging-sendgrid/sendEmail/index.d.ts +5 -0
  16. package/dist/destinations/engage-messaging-sendgrid/sendEmail/index.js +452 -0
  17. package/dist/destinations/engage-messaging-sendgrid/sendEmail/index.js.map +1 -0
  18. package/dist/destinations/engage-messaging-twilio/sendSms/generated-types.d.ts +22 -0
  19. package/dist/destinations/engage-messaging-twilio/sendSms/generated-types.js +3 -0
  20. package/dist/destinations/engage-messaging-twilio/sendSms/generated-types.js.map +1 -0
  21. package/dist/destinations/engage-messaging-twilio/sendSms/index.d.ts +5 -0
  22. package/dist/destinations/engage-messaging-twilio/sendSms/index.js +131 -0
  23. package/dist/destinations/engage-messaging-twilio/sendSms/index.js.map +1 -0
  24. package/dist/destinations/engage-messaging-twilio/sendSms/sms-sender.d.ts +23 -0
  25. package/dist/destinations/engage-messaging-twilio/sendSms/sms-sender.js +131 -0
  26. package/dist/destinations/engage-messaging-twilio/sendSms/sms-sender.js.map +1 -0
  27. package/dist/destinations/engage-messaging-twilio/sendWhatsApp/generated-types.d.ts +24 -0
  28. package/dist/destinations/engage-messaging-twilio/sendWhatsApp/generated-types.js +3 -0
  29. package/dist/destinations/engage-messaging-twilio/sendWhatsApp/generated-types.js.map +1 -0
  30. package/dist/destinations/engage-messaging-twilio/sendWhatsApp/index.d.ts +5 -0
  31. package/dist/destinations/engage-messaging-twilio/sendWhatsApp/index.js +133 -0
  32. package/dist/destinations/engage-messaging-twilio/sendWhatsApp/index.js.map +1 -0
  33. package/dist/destinations/engage-messaging-twilio/sendWhatsApp/whatsapp-sender.d.ts +21 -0
  34. package/dist/destinations/engage-messaging-twilio/sendWhatsApp/whatsapp-sender.js +75 -0
  35. package/dist/destinations/engage-messaging-twilio/sendWhatsApp/whatsapp-sender.js.map +1 -0
  36. package/dist/destinations/engage-messaging-twilio/utils/message-sender.d.ts +24 -0
  37. package/dist/destinations/engage-messaging-twilio/utils/message-sender.js +111 -0
  38. package/dist/destinations/engage-messaging-twilio/utils/message-sender.js.map +1 -0
  39. package/dist/destinations/hubspot/helperFunctions.d.ts +7 -0
  40. package/dist/destinations/hubspot/helperFunctions.js +27 -0
  41. package/dist/destinations/hubspot/helperFunctions.js.map +1 -0
  42. package/dist/destinations/index.js +1 -0
  43. package/dist/destinations/index.js.map +1 -1
  44. package/dist/destinations/klaviyo/functions.js +1 -1
  45. package/dist/destinations/klaviyo/functions.js.map +1 -1
  46. package/dist/destinations/klaviyo/subscribeProfile/generated-types.d.ts +1 -1
  47. package/dist/destinations/klaviyo/subscribeProfile/index.js +1 -1
  48. package/dist/destinations/klaviyo/subscribeProfile/index.js.map +1 -1
  49. package/dist/destinations/magellan-ai/addToCart/generated-types.d.ts +11 -0
  50. package/dist/destinations/magellan-ai/addToCart/generated-types.js +3 -0
  51. package/dist/destinations/magellan-ai/addToCart/generated-types.js.map +1 -0
  52. package/dist/destinations/magellan-ai/addToCart/index.d.ts +5 -0
  53. package/dist/destinations/magellan-ai/addToCart/index.js +22 -0
  54. package/dist/destinations/magellan-ai/addToCart/index.js.map +1 -0
  55. package/dist/destinations/magellan-ai/checkout/generated-types.d.ts +17 -0
  56. package/dist/destinations/magellan-ai/checkout/generated-types.js +3 -0
  57. package/dist/destinations/magellan-ai/checkout/generated-types.js.map +1 -0
  58. package/dist/destinations/magellan-ai/checkout/index.d.ts +5 -0
  59. package/dist/destinations/magellan-ai/checkout/index.js +16 -0
  60. package/dist/destinations/magellan-ai/checkout/index.js.map +1 -0
  61. package/dist/destinations/magellan-ai/code/generated-types.d.ts +4 -0
  62. package/dist/destinations/magellan-ai/code/generated-types.js +3 -0
  63. package/dist/destinations/magellan-ai/code/generated-types.js.map +1 -0
  64. package/dist/destinations/magellan-ai/code/index.d.ts +5 -0
  65. package/dist/destinations/magellan-ai/code/index.js +27 -0
  66. package/dist/destinations/magellan-ai/code/index.js.map +1 -0
  67. package/dist/destinations/magellan-ai/generated-types.d.ts +4 -0
  68. package/dist/destinations/magellan-ai/generated-types.js +3 -0
  69. package/dist/destinations/magellan-ai/generated-types.js.map +1 -0
  70. package/dist/destinations/magellan-ai/identify/generated-types.d.ts +3 -0
  71. package/dist/destinations/magellan-ai/identify/generated-types.js +3 -0
  72. package/dist/destinations/magellan-ai/identify/generated-types.js.map +1 -0
  73. package/dist/destinations/magellan-ai/identify/index.d.ts +5 -0
  74. package/dist/destinations/magellan-ai/identify/index.js +20 -0
  75. package/dist/destinations/magellan-ai/identify/index.js.map +1 -0
  76. package/dist/destinations/magellan-ai/index.d.ts +4 -0
  77. package/dist/destinations/magellan-ai/index.js +60 -0
  78. package/dist/destinations/magellan-ai/index.js.map +1 -0
  79. package/dist/destinations/magellan-ai/install/generated-types.d.ts +12 -0
  80. package/dist/destinations/magellan-ai/install/generated-types.js +3 -0
  81. package/dist/destinations/magellan-ai/install/generated-types.js.map +1 -0
  82. package/dist/destinations/magellan-ai/install/index.d.ts +5 -0
  83. package/dist/destinations/magellan-ai/install/index.js +13 -0
  84. package/dist/destinations/magellan-ai/install/index.js.map +1 -0
  85. package/dist/destinations/magellan-ai/lead/generated-types.d.ts +9 -0
  86. package/dist/destinations/magellan-ai/lead/generated-types.js +3 -0
  87. package/dist/destinations/magellan-ai/lead/generated-types.js.map +1 -0
  88. package/dist/destinations/magellan-ai/lead/index.d.ts +5 -0
  89. package/dist/destinations/magellan-ai/lead/index.js +49 -0
  90. package/dist/destinations/magellan-ai/lead/index.js.map +1 -0
  91. package/dist/destinations/magellan-ai/product/generated-types.d.ts +10 -0
  92. package/dist/destinations/magellan-ai/product/generated-types.js +3 -0
  93. package/dist/destinations/magellan-ai/product/generated-types.js.map +1 -0
  94. package/dist/destinations/magellan-ai/product/index.d.ts +5 -0
  95. package/dist/destinations/magellan-ai/product/index.js +13 -0
  96. package/dist/destinations/magellan-ai/product/index.js.map +1 -0
  97. package/dist/destinations/magellan-ai/purchase/generated-types.d.ts +18 -0
  98. package/dist/destinations/magellan-ai/purchase/generated-types.js +3 -0
  99. package/dist/destinations/magellan-ai/purchase/generated-types.js.map +1 -0
  100. package/dist/destinations/magellan-ai/purchase/index.d.ts +5 -0
  101. package/dist/destinations/magellan-ai/purchase/index.js +22 -0
  102. package/dist/destinations/magellan-ai/purchase/index.js.map +1 -0
  103. package/dist/destinations/magellan-ai/schema.d.ts +6 -0
  104. package/dist/destinations/magellan-ai/schema.js +244 -0
  105. package/dist/destinations/magellan-ai/schema.js.map +1 -0
  106. package/dist/destinations/magellan-ai/thirdPartyEvent/generated-types.d.ts +16 -0
  107. package/dist/destinations/magellan-ai/thirdPartyEvent/generated-types.js +3 -0
  108. package/dist/destinations/magellan-ai/thirdPartyEvent/generated-types.js.map +1 -0
  109. package/dist/destinations/magellan-ai/thirdPartyEvent/index.d.ts +5 -0
  110. package/dist/destinations/magellan-ai/thirdPartyEvent/index.js +28 -0
  111. package/dist/destinations/magellan-ai/thirdPartyEvent/index.js.map +1 -0
  112. package/dist/destinations/magellan-ai/utils.d.ts +5 -0
  113. package/dist/destinations/magellan-ai/utils.js +16 -0
  114. package/dist/destinations/magellan-ai/utils.js.map +1 -0
  115. package/dist/destinations/magellan-ai/view/generated-types.d.ts +3 -0
  116. package/dist/destinations/magellan-ai/view/generated-types.js +3 -0
  117. package/dist/destinations/magellan-ai/view/generated-types.js.map +1 -0
  118. package/dist/destinations/magellan-ai/view/index.d.ts +5 -0
  119. package/dist/destinations/magellan-ai/view/index.js +21 -0
  120. package/dist/destinations/magellan-ai/view/index.js.map +1 -0
  121. package/dist/destinations/mixpanel/utils.d.ts +13 -0
  122. package/dist/destinations/mixpanel/utils.js +117 -0
  123. package/dist/destinations/mixpanel/utils.js.map +1 -0
  124. package/dist/destinations/snap-conversions-api/snap-capi-properties.d.ts +30 -0
  125. package/dist/destinations/snap-conversions-api/snap-capi-properties.js +316 -0
  126. package/dist/destinations/snap-conversions-api/snap-capi-properties.js.map +1 -0
  127. package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.d.ts +3 -0
  128. package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.js +34 -0
  129. package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.js.map +1 -0
  130. package/dist/destinations/vernst-test/generated-types.d.ts +2 -0
  131. package/dist/destinations/vernst-test/generated-types.js +3 -0
  132. package/dist/destinations/vernst-test/generated-types.js.map +1 -0
  133. package/dist/destinations/vernst-test/index.d.ts +4 -0
  134. package/dist/destinations/vernst-test/index.js +20 -0
  135. package/dist/destinations/vernst-test/index.js.map +1 -0
  136. package/dist/destinations/vernst-test/pingWebhook/generated-types.d.ts +3 -0
  137. package/dist/destinations/vernst-test/pingWebhook/generated-types.js +3 -0
  138. package/dist/destinations/vernst-test/pingWebhook/generated-types.js.map +1 -0
  139. package/dist/destinations/vernst-test/pingWebhook/index.d.ts +5 -0
  140. package/dist/destinations/vernst-test/pingWebhook/index.js +21 -0
  141. package/dist/destinations/vernst-test/pingWebhook/index.js.map +1 -0
  142. package/package.json +3 -3
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const utils_1 = require("../utils");
4
+ const action = {
5
+ title: 'Identify',
6
+ description: 'If you have your own identifiers for customers, Magellan AI can accept that identifier and report it back to you with other measurement data.',
7
+ defaultSubscription: 'type = "identify"',
8
+ fields: {
9
+ userId: {
10
+ label: 'User ID',
11
+ description: 'Your internal, unique identifier for the user',
12
+ type: 'string',
13
+ default: { '@path': '$.userId' },
14
+ required: true
15
+ }
16
+ },
17
+ perform: utils_1.buildPerformer('identify')
18
+ };
19
+ exports.default = action;
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/magellan-ai/identify/index.ts"],"names":[],"mappings":";;AAIA,oCAAyC;AAEzC,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,UAAU;IACjB,WAAW,EACT,+IAA+I;IACjJ,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE;QACN,MAAM,EAAE;YACN,KAAK,EAAE,SAAS;YAChB,WAAW,EAAE,+CAA+C;YAC5D,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;YAChC,QAAQ,EAAE,IAAI;SACf;KACF;IACD,OAAO,EAAE,sBAAc,CAAC,UAAU,CAAC;CACpC,CAAA;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,60 @@
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 identify_1 = __importDefault(require("./identify"));
7
+ const view_1 = __importDefault(require("./view"));
8
+ const lead_1 = __importDefault(require("./lead"));
9
+ const product_1 = __importDefault(require("./product"));
10
+ const addToCart_1 = __importDefault(require("./addToCart"));
11
+ const checkout_1 = __importDefault(require("./checkout"));
12
+ const code_1 = __importDefault(require("./code"));
13
+ const purchase_1 = __importDefault(require("./purchase"));
14
+ const install_1 = __importDefault(require("./install"));
15
+ const thirdPartyEvent_1 = __importDefault(require("./thirdPartyEvent"));
16
+ const destination = {
17
+ name: 'Magellan AI (Actions)',
18
+ slug: 'actions-magellan-ai',
19
+ mode: 'cloud',
20
+ authentication: {
21
+ scheme: 'custom',
22
+ fields: {
23
+ pixelToken: {
24
+ label: 'Pixel token',
25
+ description: 'Unique identifier for the web pixel on whose behalf the event is being sent; 32 hex digits',
26
+ type: 'string',
27
+ required: true
28
+ },
29
+ apiToken: {
30
+ label: 'API token',
31
+ description: 'Required in order to pass GDPR deletion requests to Magellan AI',
32
+ type: 'string',
33
+ required: false
34
+ }
35
+ }
36
+ },
37
+ onDelete: async (request, { payload, settings }) => {
38
+ if (!settings.apiToken)
39
+ return;
40
+ return request('https://api.magellan.ai/v2/gdpr/delete', {
41
+ method: 'post',
42
+ headers: { Authorization: `Bearer ${settings.apiToken}` },
43
+ json: { ...payload, pixelToken: settings.pixelToken }
44
+ });
45
+ },
46
+ actions: {
47
+ identify: identify_1.default,
48
+ view: view_1.default,
49
+ lead: lead_1.default,
50
+ product: product_1.default,
51
+ addToCart: addToCart_1.default,
52
+ checkout: checkout_1.default,
53
+ code: code_1.default,
54
+ purchase: purchase_1.default,
55
+ install: install_1.default,
56
+ thirdPartyEvent: thirdPartyEvent_1.default
57
+ }
58
+ };
59
+ exports.default = destination;
60
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/magellan-ai/index.ts"],"names":[],"mappings":";;;;;AAGA,0DAAiC;AACjC,kDAAyB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AW,CAAA"}
@@ -0,0 +1,12 @@
1
+ export interface Payload {
2
+ host: string;
3
+ app: string;
4
+ ip: string;
5
+ ua: string;
6
+ ts: string;
7
+ plat: string;
8
+ aifa?: string;
9
+ andi?: string;
10
+ idfa?: string;
11
+ idfv?: string;
12
+ }
@@ -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/magellan-ai/install/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,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const utils_1 = require("../utils");
4
+ const schema_1 = require("../schema");
5
+ const action = {
6
+ title: 'Install',
7
+ description: 'Fire this event to track when a user installs your mobile application. (Mobile applications only)',
8
+ defaultSubscription: 'type = "track" and event = "Application Installed"',
9
+ fields: schema_1.mobileFields,
10
+ perform: utils_1.buildPerformer('install')
11
+ };
12
+ exports.default = action;
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/magellan-ai/install/index.ts"],"names":[],"mappings":";;AAIA,oCAAyC;AACzC,sCAAwC;AAExC,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,SAAS;IAChB,WAAW,EAAE,mGAAmG;IAChH,mBAAmB,EAAE,oDAAoD;IACzE,MAAM,EAAE,qBAAY;IACpB,OAAO,EAAE,sBAAc,CAAC,SAAS,CAAC;CACnC,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -0,0 +1,9 @@
1
+ export interface Payload {
2
+ value: number;
3
+ currency: string;
4
+ id?: string;
5
+ productId?: string;
6
+ quantity?: number;
7
+ type?: string;
8
+ category?: string;
9
+ }
@@ -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/magellan-ai/lead/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,49 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const utils_1 = require("../utils");
4
+ const schema_1 = require("../schema");
5
+ const action = {
6
+ title: 'Lead',
7
+ description: 'Track lead generation, like signups, subscriptions, and notification requests.',
8
+ defaultSubscription: 'type = "track" and event = "Signed Up"',
9
+ fields: {
10
+ ...schema_1.priceFields(),
11
+ id: {
12
+ label: 'Lead ID',
13
+ description: 'The unique ID for this generated lead',
14
+ type: 'string',
15
+ required: false
16
+ },
17
+ productId: {
18
+ label: 'Product ID',
19
+ description: 'The product ID associated with this lead',
20
+ type: 'string',
21
+ default: { '@path': '$.properties.product_id' },
22
+ required: false
23
+ },
24
+ quantity: {
25
+ label: 'Quantity',
26
+ description: 'The number of items represented by this lead',
27
+ type: 'number',
28
+ default: { '@path': '$.properties.quantity' },
29
+ required: false
30
+ },
31
+ type: {
32
+ label: 'Lead type',
33
+ description: 'The type of lead',
34
+ type: 'string',
35
+ default: { '@path': '$.properties.type' },
36
+ required: false
37
+ },
38
+ category: {
39
+ label: 'Lead category',
40
+ description: 'The category of lead',
41
+ type: 'string',
42
+ default: { '@path': '$.properties.category' },
43
+ required: false
44
+ }
45
+ },
46
+ perform: utils_1.buildPerformer('lead')
47
+ };
48
+ exports.default = action;
49
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/magellan-ai/lead/index.ts"],"names":[],"mappings":";;AAIA,oCAAyC;AACzC,sCAAuC;AAEvC,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,MAAM;IACb,WAAW,EAAE,gFAAgF;IAC7F,mBAAmB,EAAE,wCAAwC;IAC7D,MAAM,EAAE;QACN,GAAG,oBAAW,EAAE;QAChB,EAAE,EAAE;YACF,KAAK,EAAE,SAAS;YAChB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;SAChB;QACD,SAAS,EAAE;YACT,KAAK,EAAE,YAAY;YACnB,WAAW,EAAE,0CAA0C;YACvD,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,EAAE,OAAO,EAAE,yBAAyB,EAAE;YAC/C,QAAQ,EAAE,KAAK;SAChB;QACD,QAAQ,EAAE;YACR,KAAK,EAAE,UAAU;YACjB,WAAW,EAAE,8CAA8C;YAC3D,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,EAAE,OAAO,EAAE,uBAAuB,EAAE;YAC7C,QAAQ,EAAE,KAAK;SAChB;QACD,IAAI,EAAE;YACJ,KAAK,EAAE,WAAW;YAClB,WAAW,EAAE,kBAAkB;YAC/B,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,EAAE,OAAO,EAAE,mBAAmB,EAAE;YACzC,QAAQ,EAAE,KAAK;SAChB;QACD,QAAQ,EAAE;YACR,KAAK,EAAE,eAAe;YACtB,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,EAAE,OAAO,EAAE,uBAAuB,EAAE;YAC7C,QAAQ,EAAE,KAAK;SAChB;KACF;IACD,OAAO,EAAE,sBAAc,CAAC,MAAM,CAAC;CAChC,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -0,0 +1,10 @@
1
+ export interface Payload {
2
+ value: number;
3
+ currency: string;
4
+ productId?: string;
5
+ productName?: string;
6
+ productType?: string;
7
+ productVendor?: string;
8
+ variantId?: string;
9
+ variantName?: string;
10
+ }
@@ -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/magellan-ai/product/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,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const utils_1 = require("../utils");
4
+ const schema_1 = require("../schema");
5
+ const action = {
6
+ title: 'Product',
7
+ description: 'Indicates that a user has visited the page for a specific product or variant of a product. This event is similar to the view event, but allows you to provide more details about the product the user has seen.',
8
+ defaultSubscription: 'type = "track" and event = "Product Viewed"',
9
+ fields: schema_1.productFields,
10
+ perform: utils_1.buildPerformer('product')
11
+ };
12
+ exports.default = action;
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/magellan-ai/product/index.ts"],"names":[],"mappings":";;AAIA,oCAAyC;AACzC,sCAAyC;AAEzC,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,SAAS;IAChB,WAAW,EACT,iNAAiN;IACnN,mBAAmB,EAAE,6CAA6C;IAClE,MAAM,EAAE,sBAAa;IACrB,OAAO,EAAE,sBAAc,CAAC,SAAS,CAAC;CACnC,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -0,0 +1,18 @@
1
+ export interface Payload {
2
+ value: number;
3
+ currency: string;
4
+ discountCode?: string;
5
+ id?: string;
6
+ quantity?: number;
7
+ lineItems?: {
8
+ quantity?: number;
9
+ value?: number;
10
+ productId?: string;
11
+ productName?: string;
12
+ productType?: string;
13
+ productVendor?: string;
14
+ variantId?: string;
15
+ variantName?: string;
16
+ }[];
17
+ isNewCustomer?: boolean;
18
+ }
@@ -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/magellan-ai/purchase/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,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const utils_1 = require("../utils");
4
+ const schema_1 = require("../schema");
5
+ const action = {
6
+ title: 'Purchase',
7
+ description: 'Fire this event upon successful completion of a purchase.',
8
+ defaultSubscription: 'type = "track" and event = "Order Completed"',
9
+ fields: {
10
+ ...schema_1.priceFields('total'),
11
+ ...schema_1.orderInfoFields,
12
+ isNewCustomer: {
13
+ label: 'New customer?',
14
+ description: 'Whether or not this customer is a first-time buyer from your store',
15
+ type: 'boolean',
16
+ required: false
17
+ }
18
+ },
19
+ perform: utils_1.buildPerformer('purchase')
20
+ };
21
+ exports.default = action;
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/magellan-ai/purchase/index.ts"],"names":[],"mappings":";;AAIA,oCAAyC;AACzC,sCAAwD;AAExD,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,UAAU;IACjB,WAAW,EAAE,2DAA2D;IACxE,mBAAmB,EAAE,8CAA8C;IACnE,MAAM,EAAE;QACN,GAAG,oBAAW,CAAC,OAAO,CAAC;QACvB,GAAG,wBAAe;QAClB,aAAa,EAAE;YACb,KAAK,EAAE,eAAe;YACtB,WAAW,EAAE,oEAAoE;YACjF,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,KAAK;SAChB;KACF;IACD,OAAO,EAAE,sBAAc,CAAC,UAAU,CAAC;CACpC,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -0,0 +1,6 @@
1
+ import { InputField } from '@segment/actions-core';
2
+ export declare function priceFields(valueSource?: string): Record<string, InputField>;
3
+ export declare const lineItemFields: Record<string, InputField>;
4
+ export declare const productFields: Record<string, InputField>;
5
+ export declare const orderInfoFields: Record<string, InputField>;
6
+ export declare const mobileFields: Record<string, InputField>;
@@ -0,0 +1,244 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.mobileFields = exports.orderInfoFields = exports.productFields = exports.lineItemFields = exports.priceFields = void 0;
4
+ function priceFields(valueSource = 'value') {
5
+ return {
6
+ value: {
7
+ label: 'Value',
8
+ description: 'The monetary value of this event, in the specified currency',
9
+ type: 'number',
10
+ default: { '@path': `$.properties.${valueSource}` },
11
+ required: true
12
+ },
13
+ currency: {
14
+ label: 'Currency',
15
+ description: 'ISO 4217 three-digit currency code (e.g., "USD", "CAD", "AUD")',
16
+ type: 'string',
17
+ default: { '@path': '$.properties.currency' },
18
+ required: true
19
+ }
20
+ };
21
+ }
22
+ exports.priceFields = priceFields;
23
+ exports.lineItemFields = {
24
+ productId: {
25
+ label: 'Product ID',
26
+ description: 'Your unique ID for this product',
27
+ type: 'string',
28
+ default: { '@path': '$.properties.product_id' },
29
+ required: false
30
+ },
31
+ productName: {
32
+ label: 'Product name',
33
+ description: 'The name of this product',
34
+ type: 'string',
35
+ default: { '@path': '$.properties.name' },
36
+ required: false
37
+ },
38
+ productType: {
39
+ label: 'Product type',
40
+ description: 'The type or category of this product',
41
+ type: 'string',
42
+ default: { '@path': '$.properties.category' },
43
+ required: false
44
+ },
45
+ productVendor: {
46
+ label: 'Vendor',
47
+ description: 'The vendor or brand for this product',
48
+ type: 'string',
49
+ default: { '@path': '$.properties.brand' },
50
+ required: false
51
+ },
52
+ variantId: {
53
+ label: 'Variant ID',
54
+ description: 'The unique ID for this variant of the product',
55
+ type: 'string',
56
+ default: { '@path': '$.properties.variant_id' },
57
+ required: false
58
+ },
59
+ variantName: {
60
+ label: 'Variant name',
61
+ description: 'The name of this variant of the product',
62
+ type: 'string',
63
+ default: { '@path': '$.properties.variant' },
64
+ required: false
65
+ }
66
+ };
67
+ exports.productFields = {
68
+ ...priceFields('price'),
69
+ ...exports.lineItemFields
70
+ };
71
+ exports.orderInfoFields = {
72
+ discountCode: {
73
+ label: 'Discount code',
74
+ description: 'The coupon or discount code applied to the cart',
75
+ type: 'string',
76
+ default: { '@path': '$.properties.coupon' },
77
+ required: false
78
+ },
79
+ id: {
80
+ label: 'Order ID',
81
+ description: 'The unique ID for the order initiated by this checkout event',
82
+ type: 'string',
83
+ default: { '@path': '$.properties.order_id' },
84
+ required: false
85
+ },
86
+ quantity: {
87
+ label: 'Quantity',
88
+ description: 'The total number of items in the cart',
89
+ type: 'number',
90
+ required: false
91
+ },
92
+ lineItems: {
93
+ label: 'Line items',
94
+ description: 'The list (array) of all products in the cart',
95
+ type: 'object',
96
+ multiple: true,
97
+ properties: {
98
+ quantity: {
99
+ label: 'Quantity',
100
+ description: 'The number of this product in the cart',
101
+ type: 'number',
102
+ required: false
103
+ },
104
+ value: {
105
+ label: 'Price',
106
+ description: 'The price per unit of this product',
107
+ type: 'number',
108
+ required: false
109
+ },
110
+ productId: {
111
+ label: 'Product ID',
112
+ description: 'Your unique ID for this product',
113
+ type: 'string',
114
+ required: false
115
+ },
116
+ productName: {
117
+ label: 'Product name',
118
+ description: 'The name of this product',
119
+ type: 'string',
120
+ required: false
121
+ },
122
+ productType: {
123
+ label: 'Product type',
124
+ description: 'The type or category of this product',
125
+ type: 'string',
126
+ required: false
127
+ },
128
+ productVendor: {
129
+ label: 'Vendor',
130
+ description: 'The vendor or brand for this product',
131
+ type: 'string',
132
+ required: false
133
+ },
134
+ variantId: {
135
+ label: 'Variant ID',
136
+ description: 'The unique ID for this variant of the product',
137
+ type: 'string',
138
+ required: false
139
+ },
140
+ variantName: {
141
+ label: 'Variant name',
142
+ description: 'The name of this variant of the product',
143
+ type: 'string',
144
+ required: false
145
+ }
146
+ },
147
+ default: {
148
+ '@arrayPath': [
149
+ '$.properties.products',
150
+ {
151
+ quantity: { '@path': '$.quantity' },
152
+ value: { '@path': '$.price' },
153
+ productId: { '@path': '$.product_id' },
154
+ productName: { '@path': '$.name' },
155
+ productType: { '@path': '$.category' },
156
+ productVendor: { '@path': '$.brand' },
157
+ variantId: { '@path': '$.variant_id' },
158
+ variantName: { '@path': '$.variant' }
159
+ }
160
+ ]
161
+ },
162
+ required: false
163
+ }
164
+ };
165
+ exports.mobileFields = {
166
+ host: {
167
+ label: 'MMP Host',
168
+ description: 'The name of the MMP platform transmitting this event to Segment (e.g., Appsflyer, Singular, etc.)',
169
+ type: 'string',
170
+ default: 'segment',
171
+ required: true
172
+ },
173
+ app: {
174
+ label: 'App name',
175
+ description: 'The name of the mobile application',
176
+ type: 'string',
177
+ default: { '@path': '$.context.app.name' },
178
+ required: true
179
+ },
180
+ ip: {
181
+ label: 'IP address',
182
+ description: 'The IPv4 address of the end user who installed the app (Note: Segment does not support collecting IPv6 addresses)',
183
+ type: 'string',
184
+ format: 'ipv4',
185
+ default: { '@path': '$.context.ip' },
186
+ required: true
187
+ },
188
+ ua: {
189
+ label: 'User agent',
190
+ description: 'The user agent of the end user who installed the app (Note: not sent by the iOS Segment agent)',
191
+ type: 'string',
192
+ default: {
193
+ '@if': {
194
+ exists: { '@path': '$.context.userAgent' },
195
+ then: { '@path': '$.context.userAgent' },
196
+ else: { '@path': '$.context.library.name' }
197
+ }
198
+ },
199
+ required: true
200
+ },
201
+ ts: {
202
+ label: 'Timestamp',
203
+ description: 'When the event occurred, in ISO 8601 format',
204
+ type: 'string',
205
+ default: { '@path': '$.timestamp' },
206
+ required: true
207
+ },
208
+ plat: {
209
+ label: 'Mobile platform',
210
+ description: 'The mobile platform of the device (e.g., iOS, Android)',
211
+ type: 'string',
212
+ default: { '@path': '$.context.device.type' },
213
+ required: true
214
+ },
215
+ aifa: {
216
+ label: 'GAID/AIFA',
217
+ description: 'The Google Advertising ID, on Android devices',
218
+ type: 'string',
219
+ default: { '@path': '$.context.device.advertisingId' },
220
+ required: false
221
+ },
222
+ andi: {
223
+ label: 'AID/ANDI',
224
+ description: 'The Android ID, on Android devices',
225
+ type: 'string',
226
+ default: { '@path': '$.context.device.id' },
227
+ required: false
228
+ },
229
+ idfa: {
230
+ label: 'IDFA',
231
+ description: 'The ID for Advertising, on iOS devices',
232
+ type: 'string',
233
+ default: { '@path': '$.context.device.advertisingId' },
234
+ required: false
235
+ },
236
+ idfv: {
237
+ label: 'IDFV',
238
+ description: 'The ID for Vendors, on iOS devices',
239
+ type: 'string',
240
+ default: { '@path': '$.context.device.id' },
241
+ required: false
242
+ }
243
+ };
244
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/destinations/magellan-ai/schema.ts"],"names":[],"mappings":";;;AAEA,SAAgB,WAAW,CAAC,WAAW,GAAG,OAAO;IAC/C,OAAO;QACL,KAAK,EAAE;YACL,KAAK,EAAE,OAAO;YACd,WAAW,EAAE,6DAA6D;YAC1E,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,EAAE,OAAO,EAAE,gBAAgB,WAAW,EAAE,EAAE;YACnD,QAAQ,EAAE,IAAI;SACf;QACD,QAAQ,EAAE;YACR,KAAK,EAAE,UAAU;YACjB,WAAW,EAAE,gEAAgE;YAC7E,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,EAAE,OAAO,EAAE,uBAAuB,EAAE;YAC7C,QAAQ,EAAE,IAAI;SACf;KACF,CAAA;AACH,CAAC;AAjBD,kCAiBC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b,WAAW,EAAE,wCAAwC;QACrD,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE,OAAO,EAAE,gCAAgC,EAAE;QACtD,QAAQ,EAAE,KAAK;KAChB;IACD,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM;QACb,WAAW,EAAE,oCAAoC;QACjD,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE,OAAO,EAAE,qBAAqB,EAAE;QAC3C,QAAQ,EAAE,KAAK;KAChB;CACF,CAAA"}
@@ -0,0 +1,16 @@
1
+ export interface Payload {
2
+ evtname: string;
3
+ evtattrs?: {
4
+ [k: string]: unknown;
5
+ };
6
+ host: string;
7
+ app: string;
8
+ ip: string;
9
+ ua: string;
10
+ ts: string;
11
+ plat: string;
12
+ aifa?: string;
13
+ andi?: string;
14
+ idfa?: string;
15
+ idfv?: string;
16
+ }
@@ -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/magellan-ai/thirdPartyEvent/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;