@segment/action-destinations 3.416.0 → 3.418.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 (221) hide show
  1. package/dist/destinations/attentive/fields.js +1 -16
  2. package/dist/destinations/attentive/fields.js.map +1 -1
  3. package/dist/destinations/attentive/functions.js +6 -9
  4. package/dist/destinations/attentive/functions.js.map +1 -1
  5. package/dist/destinations/attentive/types.d.ts +4 -1
  6. package/dist/destinations/batch/generated-types.d.ts +4 -0
  7. package/dist/destinations/batch/generated-types.js +3 -0
  8. package/dist/destinations/batch/generated-types.js.map +1 -0
  9. package/dist/destinations/batch/index.d.ts +4 -0
  10. package/dist/destinations/batch/index.js +64 -0
  11. package/dist/destinations/batch/index.js.map +1 -0
  12. package/dist/destinations/batch/updateProfile/constants.d.ts +2 -0
  13. package/dist/destinations/batch/updateProfile/constants.js +6 -0
  14. package/dist/destinations/batch/updateProfile/constants.js.map +1 -0
  15. package/dist/destinations/batch/updateProfile/generated-types.d.ts +22 -0
  16. package/dist/destinations/batch/updateProfile/generated-types.js +3 -0
  17. package/dist/destinations/batch/updateProfile/generated-types.js.map +1 -0
  18. package/dist/destinations/batch/updateProfile/index.d.ts +5 -0
  19. package/dist/destinations/batch/updateProfile/index.js +169 -0
  20. package/dist/destinations/batch/updateProfile/index.js.map +1 -0
  21. package/dist/destinations/batch/updateProfile/type.d.ts +31 -0
  22. package/dist/destinations/batch/updateProfile/type.js +3 -0
  23. package/dist/destinations/batch/updateProfile/type.js.map +1 -0
  24. package/dist/destinations/batch/updateProfile/utils.d.ts +6 -0
  25. package/dist/destinations/batch/updateProfile/utils.js +129 -0
  26. package/dist/destinations/batch/updateProfile/utils.js.map +1 -0
  27. package/dist/destinations/bing-ads-audiences/generated-types.d.ts +2 -0
  28. package/dist/destinations/bing-ads-audiences/generated-types.js +3 -0
  29. package/dist/destinations/bing-ads-audiences/generated-types.js.map +1 -0
  30. package/dist/destinations/bing-ads-audiences/index.d.ts +4 -0
  31. package/dist/destinations/bing-ads-audiences/index.js +34 -0
  32. package/dist/destinations/bing-ads-audiences/index.js.map +1 -0
  33. package/dist/destinations/bing-ads-audiences/syncAudiences/generated-types.d.ts +2 -0
  34. package/dist/destinations/bing-ads-audiences/syncAudiences/generated-types.js +3 -0
  35. package/dist/destinations/bing-ads-audiences/syncAudiences/generated-types.js.map +1 -0
  36. package/dist/destinations/bing-ads-audiences/syncAudiences/index.d.ts +5 -0
  37. package/dist/destinations/bing-ads-audiences/syncAudiences/index.js +15 -0
  38. package/dist/destinations/bing-ads-audiences/syncAudiences/index.js.map +1 -0
  39. package/dist/destinations/braze/index.js +1 -1
  40. package/dist/destinations/braze/index.js.map +1 -1
  41. package/dist/destinations/customerio/createUpdateDevice/generated-types.d.ts +2 -0
  42. package/dist/destinations/customerio/createUpdateDevice/index.js +3 -1
  43. package/dist/destinations/customerio/createUpdateDevice/index.js.map +1 -1
  44. package/dist/destinations/customerio/createUpdateObject/generated-types.d.ts +2 -0
  45. package/dist/destinations/customerio/createUpdateObject/index.js +3 -1
  46. package/dist/destinations/customerio/createUpdateObject/index.js.map +1 -1
  47. package/dist/destinations/customerio/createUpdatePerson/generated-types.d.ts +2 -0
  48. package/dist/destinations/customerio/createUpdatePerson/index.js +3 -1
  49. package/dist/destinations/customerio/createUpdatePerson/index.js.map +1 -1
  50. package/dist/destinations/customerio/customerio-properties.d.ts +2 -0
  51. package/dist/destinations/customerio/customerio-properties.js +21 -0
  52. package/dist/destinations/customerio/customerio-properties.js.map +1 -0
  53. package/dist/destinations/customerio/deleteDevice/generated-types.d.ts +2 -0
  54. package/dist/destinations/customerio/deleteDevice/index.js +3 -1
  55. package/dist/destinations/customerio/deleteDevice/index.js.map +1 -1
  56. package/dist/destinations/customerio/deleteObject/generated-types.d.ts +2 -0
  57. package/dist/destinations/customerio/deleteObject/index.js +3 -1
  58. package/dist/destinations/customerio/deleteObject/index.js.map +1 -1
  59. package/dist/destinations/customerio/deletePerson/generated-types.d.ts +2 -0
  60. package/dist/destinations/customerio/deletePerson/index.js +3 -1
  61. package/dist/destinations/customerio/deletePerson/index.js.map +1 -1
  62. package/dist/destinations/customerio/deleteRelationship/generated-types.d.ts +2 -0
  63. package/dist/destinations/customerio/deleteRelationship/index.js +3 -1
  64. package/dist/destinations/customerio/deleteRelationship/index.js.map +1 -1
  65. package/dist/destinations/customerio/mergePeople/generated-types.d.ts +2 -0
  66. package/dist/destinations/customerio/mergePeople/index.js +3 -1
  67. package/dist/destinations/customerio/mergePeople/index.js.map +1 -1
  68. package/dist/destinations/customerio/reportContentEvent/generated-types.d.ts +2 -0
  69. package/dist/destinations/customerio/reportContentEvent/index.js +2 -0
  70. package/dist/destinations/customerio/reportContentEvent/index.js.map +1 -1
  71. package/dist/destinations/customerio/reportDeliveryEvent/generated-types.d.ts +2 -0
  72. package/dist/destinations/customerio/reportDeliveryEvent/index.js +3 -1
  73. package/dist/destinations/customerio/reportDeliveryEvent/index.js.map +1 -1
  74. package/dist/destinations/customerio/suppressPerson/generated-types.d.ts +2 -0
  75. package/dist/destinations/customerio/suppressPerson/index.js +3 -1
  76. package/dist/destinations/customerio/suppressPerson/index.js.map +1 -1
  77. package/dist/destinations/customerio/trackEvent/generated-types.d.ts +2 -0
  78. package/dist/destinations/customerio/trackEvent/index.js +3 -1
  79. package/dist/destinations/customerio/trackEvent/index.js.map +1 -1
  80. package/dist/destinations/customerio/trackPageView/generated-types.d.ts +2 -0
  81. package/dist/destinations/customerio/trackPageView/index.js +3 -1
  82. package/dist/destinations/customerio/trackPageView/index.js.map +1 -1
  83. package/dist/destinations/customerio/trackScreenView/generated-types.d.ts +2 -0
  84. package/dist/destinations/customerio/trackScreenView/index.js +3 -1
  85. package/dist/destinations/customerio/trackScreenView/index.js.map +1 -1
  86. package/dist/destinations/customerio/unsuppressPerson/generated-types.d.ts +2 -0
  87. package/dist/destinations/customerio/unsuppressPerson/index.js +3 -1
  88. package/dist/destinations/customerio/unsuppressPerson/index.js.map +1 -1
  89. package/dist/destinations/customerio/utils.js +6 -0
  90. package/dist/destinations/customerio/utils.js.map +1 -1
  91. package/dist/destinations/epsilon/sendEvent/fields.js +4 -2
  92. package/dist/destinations/epsilon/sendEvent/fields.js.map +1 -1
  93. package/dist/destinations/index.js +4 -0
  94. package/dist/destinations/index.js.map +1 -1
  95. package/dist/destinations/intercom/index.js +0 -4
  96. package/dist/destinations/intercom/index.js.map +1 -1
  97. package/dist/destinations/klaviyo/functions.d.ts +2 -2
  98. package/dist/destinations/klaviyo/functions.js +5 -4
  99. package/dist/destinations/klaviyo/functions.js.map +1 -1
  100. package/dist/destinations/klaviyo/subscribeProfile/generated-types.d.ts +1 -0
  101. package/dist/destinations/klaviyo/subscribeProfile/index.js +13 -7
  102. package/dist/destinations/klaviyo/subscribeProfile/index.js.map +1 -1
  103. package/dist/destinations/klaviyo/types.d.ts +1 -0
  104. package/dist/destinations/livelike-cloud/syncToUserGroup/generated-types.d.ts +1 -0
  105. package/dist/destinations/livelike-cloud/syncToUserGroup/index.js +7 -1
  106. package/dist/destinations/livelike-cloud/syncToUserGroup/index.js.map +1 -1
  107. package/dist/destinations/liveramp-audiences/audienceEnteredS3/index.js +3 -1
  108. package/dist/destinations/liveramp-audiences/audienceEnteredS3/index.js.map +1 -1
  109. package/dist/destinations/liveramp-audiences/audienceEnteredSftp/index.js +2 -0
  110. package/dist/destinations/liveramp-audiences/audienceEnteredSftp/index.js.map +1 -1
  111. package/dist/destinations/liveramp-audiences/awsClient.d.ts +1 -0
  112. package/dist/destinations/liveramp-audiences/awsClient.js +2 -1
  113. package/dist/destinations/liveramp-audiences/awsClient.js.map +1 -1
  114. package/dist/destinations/liveramp-audiences/properties.d.ts +1 -0
  115. package/dist/destinations/liveramp-audiences/properties.js +2 -1
  116. package/dist/destinations/liveramp-audiences/properties.js.map +1 -1
  117. package/dist/destinations/sftp/client.d.ts +9 -0
  118. package/dist/destinations/sftp/client.js +96 -0
  119. package/dist/destinations/sftp/client.js.map +1 -0
  120. package/dist/destinations/sftp/constants.d.ts +1 -0
  121. package/dist/destinations/sftp/constants.js +5 -0
  122. package/dist/destinations/sftp/constants.js.map +1 -0
  123. package/dist/destinations/sftp/fields.d.ts +3 -0
  124. package/dist/destinations/sftp/fields.js +260 -0
  125. package/dist/destinations/sftp/fields.js.map +1 -0
  126. package/dist/destinations/sftp/functions.d.ts +13 -0
  127. package/dist/destinations/sftp/functions.js +116 -0
  128. package/dist/destinations/sftp/functions.js.map +1 -0
  129. package/dist/destinations/sftp/generated-types.d.ts +8 -0
  130. package/dist/destinations/sftp/generated-types.js +3 -0
  131. package/dist/destinations/sftp/generated-types.js.map +1 -0
  132. package/dist/destinations/sftp/index.d.ts +4 -0
  133. package/dist/destinations/sftp/index.js +103 -0
  134. package/dist/destinations/sftp/index.js.map +1 -0
  135. package/dist/destinations/sftp/syncEvents/generated-types.d.ts +39 -0
  136. package/dist/destinations/sftp/syncEvents/generated-types.js +3 -0
  137. package/dist/destinations/sftp/syncEvents/generated-types.js.map +1 -0
  138. package/dist/destinations/sftp/syncEvents/index.d.ts +5 -0
  139. package/dist/destinations/sftp/syncEvents/index.js +22 -0
  140. package/dist/destinations/sftp/syncEvents/index.js.map +1 -0
  141. package/dist/destinations/sftp/syncModelToSFTP/generated-types.d.ts +12 -0
  142. package/dist/destinations/sftp/syncModelToSFTP/generated-types.js +3 -0
  143. package/dist/destinations/sftp/syncModelToSFTP/generated-types.js.map +1 -0
  144. package/dist/destinations/sftp/syncModelToSFTP/index.d.ts +5 -0
  145. package/dist/destinations/sftp/syncModelToSFTP/index.js +22 -0
  146. package/dist/destinations/sftp/syncModelToSFTP/index.js.map +1 -0
  147. package/dist/destinations/sftp/types.d.ts +40 -0
  148. package/dist/destinations/sftp/types.js +3 -0
  149. package/dist/destinations/sftp/types.js.map +1 -0
  150. package/dist/destinations/stackadapt-audiences/forwardAudienceEvent/functions.js +4 -2
  151. package/dist/destinations/stackadapt-audiences/forwardAudienceEvent/functions.js.map +1 -1
  152. package/dist/destinations/stackadapt-audiences/functions.d.ts +1 -1
  153. package/dist/destinations/stackadapt-audiences/functions.js +1 -1
  154. package/dist/destinations/stackadapt-audiences/functions.js.map +1 -1
  155. package/dist/destinations/twilio-messaging/sendMessage/dynamic-fields.js +5 -0
  156. package/dist/destinations/twilio-messaging/sendMessage/dynamic-fields.js.map +1 -1
  157. package/dist/destinations/twilio-messaging/sendMessage/fields.js +11 -2
  158. package/dist/destinations/twilio-messaging/sendMessage/fields.js.map +1 -1
  159. package/dist/destinations/twilio-messaging/sendMessage/utils.js +4 -4
  160. package/dist/destinations/twilio-messaging/sendMessage/utils.js.map +1 -1
  161. package/dist/destinations/yonoma/generated-types.d.ts +3 -0
  162. package/dist/destinations/yonoma/generated-types.js +3 -0
  163. package/dist/destinations/yonoma/generated-types.js.map +1 -0
  164. package/dist/destinations/yonoma/index.d.ts +4 -0
  165. package/dist/destinations/yonoma/index.js +47 -0
  166. package/dist/destinations/yonoma/index.js.map +1 -0
  167. package/dist/destinations/yonoma/sendEvent/constants.d.ts +1 -0
  168. package/dist/destinations/yonoma/sendEvent/constants.js +5 -0
  169. package/dist/destinations/yonoma/sendEvent/constants.js.map +1 -0
  170. package/dist/destinations/yonoma/sendEvent/functions.d.ts +1 -0
  171. package/dist/destinations/yonoma/sendEvent/functions.js +19 -0
  172. package/dist/destinations/yonoma/sendEvent/functions.js.map +1 -0
  173. package/dist/destinations/yonoma/sendEvent/generated-types.d.ts +12 -0
  174. package/dist/destinations/yonoma/sendEvent/generated-types.js +3 -0
  175. package/dist/destinations/yonoma/sendEvent/generated-types.js.map +1 -0
  176. package/dist/destinations/yonoma/sendEvent/index.d.ts +5 -0
  177. package/dist/destinations/yonoma/sendEvent/index.js +97 -0
  178. package/dist/destinations/yonoma/sendEvent/index.js.map +1 -0
  179. package/dist/destinations/yonoma/sendEvent/types.d.ts +10 -0
  180. package/dist/destinations/yonoma/sendEvent/types.js +3 -0
  181. package/dist/destinations/yonoma/sendEvent/types.js.map +1 -0
  182. package/dist/destinations/yonoma/trackEvent/constants.d.ts +1 -0
  183. package/dist/destinations/yonoma/trackEvent/constants.js +5 -0
  184. package/dist/destinations/yonoma/trackEvent/constants.js.map +1 -0
  185. package/dist/destinations/yonoma/trackEvent/generated-types.d.ts +13 -0
  186. package/dist/destinations/yonoma/trackEvent/generated-types.js +3 -0
  187. package/dist/destinations/yonoma/trackEvent/generated-types.js.map +1 -0
  188. package/dist/destinations/yonoma/trackEvent/index.d.ts +5 -0
  189. package/dist/destinations/yonoma/trackEvent/index.js +104 -0
  190. package/dist/destinations/yonoma/trackEvent/index.js.map +1 -0
  191. package/dist/destinations/yonoma/trackEvent/types.d.ts +11 -0
  192. package/dist/destinations/yonoma/trackEvent/types.js +3 -0
  193. package/dist/destinations/yonoma/trackEvent/types.js.map +1 -0
  194. package/dist/destinations/yonoma/trackPageView/constants.d.ts +1 -0
  195. package/dist/destinations/yonoma/trackPageView/constants.js +5 -0
  196. package/dist/destinations/yonoma/trackPageView/constants.js.map +1 -0
  197. package/dist/destinations/yonoma/trackPageView/generated-types.d.ts +17 -0
  198. package/dist/destinations/yonoma/trackPageView/generated-types.js +3 -0
  199. package/dist/destinations/yonoma/trackPageView/generated-types.js.map +1 -0
  200. package/dist/destinations/yonoma/trackPageView/index.d.ts +5 -0
  201. package/dist/destinations/yonoma/trackPageView/index.js +116 -0
  202. package/dist/destinations/yonoma/trackPageView/index.js.map +1 -0
  203. package/dist/destinations/yonoma/trackPageView/types.d.ts +13 -0
  204. package/dist/destinations/yonoma/trackPageView/types.js +3 -0
  205. package/dist/destinations/yonoma/trackPageView/types.js.map +1 -0
  206. package/dist/destinations/yonoma/upsertContact/constants.d.ts +3 -0
  207. package/dist/destinations/yonoma/upsertContact/constants.js +7 -0
  208. package/dist/destinations/yonoma/upsertContact/constants.js.map +1 -0
  209. package/dist/destinations/yonoma/upsertContact/functions.d.ts +1 -0
  210. package/dist/destinations/yonoma/upsertContact/functions.js +19 -0
  211. package/dist/destinations/yonoma/upsertContact/functions.js.map +1 -0
  212. package/dist/destinations/yonoma/upsertContact/generated-types.d.ts +22 -0
  213. package/dist/destinations/yonoma/upsertContact/generated-types.js +3 -0
  214. package/dist/destinations/yonoma/upsertContact/generated-types.js.map +1 -0
  215. package/dist/destinations/yonoma/upsertContact/index.d.ts +5 -0
  216. package/dist/destinations/yonoma/upsertContact/index.js +189 -0
  217. package/dist/destinations/yonoma/upsertContact/index.js.map +1 -0
  218. package/dist/destinations/yonoma/upsertContact/types.d.ts +24 -0
  219. package/dist/destinations/yonoma/upsertContact/types.js +3 -0
  220. package/dist/destinations/yonoma/upsertContact/types.js.map +1 -0
  221. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/destinations/twilio-messaging/sendMessage/utils.ts"],"names":[],"mappings":";;AAiBA,oBAwMC;AAED,0CAMC;AAkBD,gDAEC;AArPD,wDAA6E;AAG7E,2CAWoB;AAGb,KAAK,UAAU,IAAI,CAAC,OAAsB,EAAE,OAAgB,EAAE,QAAkB;IACrF,IAAI,EAAE,aAAa,EAAE,eAAe,EAAE,mBAAmB,EAAE,UAAU,EAAE,GAAG,OAAO,CAAA;IAEjF,MAAM,EACJ,OAAO,EACP,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,MAAM,EACN,eAAe,EACf,UAAU,EACV,mBAAmB,EACnB,IAAI,EACL,GAAG,OAAO,CAAA;IAEX,MAAM,KAAK,GAAG,GAAW,EAAE;QACzB,QAAQ,OAAO,EAAE,CAAC;YAChB,KAAK,KAAK,CAAC;YACX,KAAK,KAAK,CAAC;YACX,KAAK,KAAK,CAAC,CAAC,CAAC;gBACX,aAAa,GAAG,aAAa,EAAE,IAAI,EAAE,IAAI,EAAE,CAAA;gBAC3C,IAAI,CAAC,CAAC,sBAAU,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,mCAAuB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,EAAE,CAAC;oBACrF,MAAM,IAAI,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KAAK,CAAC,EAAE,EAAE;QACrD,IAAI,GAAG,KAAK,UAAU,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YAC/C,KAAK,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;gBACpB,cAAc,CAAC,MAAM,CAAC,UAAU,EAAE,GAAG,CAAC,CAAA;YACxC,CAAC,CAAC,CAAA;QACJ,CAAC;aAAM,CAAC;YACN,cAAc,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAA;QAC3C,CAAC;IACH,CAAC,CAAC,CAAA;IAEF,OAAO,cAAc,CAAC,QAAQ,EAAE,CAAA;AAClC,CAAC;AAED,SAAgB,kBAAkB,CAAC,UAAkB;IACnD,OAAO,qBAAqB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;AAC/C,CAAC"}
@@ -0,0 +1,3 @@
1
+ export interface Settings {
2
+ apiKey: string;
3
+ }
@@ -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/yonoma/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,47 @@
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 upsertContact_1 = __importDefault(require("./upsertContact"));
7
+ const trackEvent_1 = __importDefault(require("./trackEvent"));
8
+ const sendEvent_1 = __importDefault(require("./sendEvent"));
9
+ const trackPageView_1 = __importDefault(require("./trackPageView"));
10
+ const destination = {
11
+ name: 'Yonoma',
12
+ slug: 'actions-yonoma',
13
+ mode: 'cloud',
14
+ authentication: {
15
+ scheme: 'custom',
16
+ fields: {
17
+ apiKey: {
18
+ label: 'API Key',
19
+ description: 'Your Yonoma API key.',
20
+ type: 'string',
21
+ required: true
22
+ }
23
+ },
24
+ testAuthentication: (request) => {
25
+ return request('https://api.yonoma.io/integration/authenticate', {
26
+ method: 'GET'
27
+ });
28
+ }
29
+ },
30
+ extendRequest: ({ settings }) => {
31
+ return {
32
+ headers: {
33
+ "User-Agent": "Segment",
34
+ "Content-Type": "application/json",
35
+ 'Authorization': `Bearer ${settings.apiKey}`
36
+ }
37
+ };
38
+ },
39
+ actions: {
40
+ upsertContact: upsertContact_1.default,
41
+ trackEvent: trackEvent_1.default,
42
+ sendEvent: sendEvent_1.default,
43
+ trackPageView: trackPageView_1.default
44
+ }
45
+ };
46
+ exports.default = destination;
47
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/yonoma/index.ts"],"names":[],"mappings":";;;;;AAEA,oEAA2C;AAC3C,8DAAqC;AACrC,4DAAmC;AACnC,oEAA2C;AAE3C,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,OAAO;IAEb,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,MAAM,EAAE;gBACN,KAAK,EAAE,SAAS;gBAChB,WAAW,EAAE,sBAAsB;gBACnC,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;SACF;QACD,kBAAkB,EAAE,CAAC,OAAO,EAAE,EAAE;YAC9B,OAAO,OAAO,CAAC,gDAAgD,EAAE;gBAC/D,MAAM,EAAE,KAAK;aACd,CAAC,CAAA;QACJ,CAAC;KACF;IACD,aAAa,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC9B,OAAO;YACL,OAAO,EAAE;gBACP,YAAY,EAAE,SAAS;gBACvB,cAAc,EAAE,kBAAkB;gBAClC,eAAe,EAAE,UAAU,QAAQ,CAAC,MAAM,EAAE;aAAE;SACjD,CAAA;IACH,CAAC;IACD,OAAO,EAAE;QACP,aAAa,EAAb,uBAAa;QACb,UAAU,EAAV,oBAAU;QACV,SAAS,EAAT,mBAAS;QACT,aAAa,EAAb,uBAAa;KACd;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
@@ -0,0 +1 @@
1
+ export declare const SEND_EVENT_URL = "https://api.yonoma.io/integration/segment/sendevent";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SEND_EVENT_URL = void 0;
4
+ exports.SEND_EVENT_URL = 'https://api.yonoma.io/integration/segment/sendevent';
5
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/destinations/yonoma/sendEvent/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,cAAc,GAAG,qDAAqD,CAAA"}
@@ -0,0 +1 @@
1
+ export declare function formatDate(input: string): string;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.formatDate = formatDate;
4
+ const actions_core_1 = require("@segment/actions-core");
5
+ function formatDate(input) {
6
+ const ymdRegex = /^\d{4}-\d{2}-\d{2}$/;
7
+ if (ymdRegex.test(input)) {
8
+ return input;
9
+ }
10
+ const date = new Date(input);
11
+ if (isNaN(date.getTime())) {
12
+ throw new actions_core_1.PayloadValidationError(`Invalid date string: ${input}`);
13
+ }
14
+ const year = date.getFullYear();
15
+ const month = String(date.getMonth() + 1).padStart(2, '0');
16
+ const day = String(date.getDate()).padStart(2, '0');
17
+ return `${year}-${month}-${day}`;
18
+ }
19
+ //# sourceMappingURL=functions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"functions.js","sourceRoot":"","sources":["../../../../src/destinations/yonoma/sendEvent/functions.ts"],"names":[],"mappings":";;AAEA,gCAiBC;AAnBD,wDAA8D;AAE9D,SAAgB,UAAU,CAAC,KAAa;IACtC,MAAM,QAAQ,GAAG,qBAAqB,CAAA;IACtC,IAAI,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QACzB,OAAO,KAAK,CAAA;IACd,CAAC;IAED,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,CAAA;IAE5B,IAAI,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC;QAC1B,MAAM,IAAI,qCAAsB,CAAC,wBAAwB,KAAK,EAAE,CAAC,CAAA;IACnE,CAAC;IAED,MAAM,IAAI,GAAG,IAAI,CAAC,WAAW,EAAE,CAAA;IAC/B,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAA;IAC1D,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAA;IAEnD,OAAO,GAAG,IAAI,IAAI,KAAK,IAAI,GAAG,EAAE,CAAA;AAClC,CAAC"}
@@ -0,0 +1,12 @@
1
+ export interface Payload {
2
+ event: string;
3
+ identifiers: {
4
+ userId?: string;
5
+ email?: string;
6
+ };
7
+ listId: string;
8
+ properties?: {
9
+ [k: string]: unknown;
10
+ };
11
+ timestamp?: 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/yonoma/sendEvent/generated-types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { 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,97 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const actions_core_1 = require("@segment/actions-core");
4
+ const constants_1 = require("./constants");
5
+ const action = {
6
+ title: 'Send Event',
7
+ description: 'Trigger automation based on a contact’s action within your product',
8
+ defaultSubscription: 'type = "track"',
9
+ fields: {
10
+ event: {
11
+ label: 'Event Name',
12
+ type: 'string',
13
+ description: 'The name of the event to track.',
14
+ required: true,
15
+ default: { '@path': '$.event' }
16
+ },
17
+ identifiers: {
18
+ label: 'Identifiers',
19
+ type: 'object',
20
+ description: 'Unique identifiers for the contact. At least one of userId or anonymousId is required.',
21
+ required: true,
22
+ additionalProperties: false,
23
+ properties: {
24
+ userId: {
25
+ label: 'User ID',
26
+ type: 'string',
27
+ description: 'Unique user identifier from your app.'
28
+ },
29
+ email: {
30
+ label: 'Email',
31
+ type: 'string',
32
+ description: "Contact's email address. Required if userId is not provided."
33
+ }
34
+ },
35
+ default: {
36
+ userId: { '@path': '$.userId' },
37
+ anonymousId: { '@path': '$.anonymousId' },
38
+ email: {
39
+ '@if': {
40
+ exists: { '@path': '$.context.traits.email' },
41
+ then: { '@path': '$.context.traits.email' },
42
+ else: { '@path': '$.properties.email' }
43
+ }
44
+ }
45
+ }
46
+ },
47
+ listId: {
48
+ label: 'List ID',
49
+ type: 'string',
50
+ description: "The Yonoma list to add the contact to.",
51
+ required: true,
52
+ default: {
53
+ '@if': {
54
+ exists: { '@path': '$.context.traits.list_id' },
55
+ then: { '@path': '$.context.traits.list_id' },
56
+ else: { '@path': '$.properties.list_id' }
57
+ }
58
+ }
59
+ },
60
+ properties: {
61
+ label: 'Event Properties',
62
+ type: 'object',
63
+ description: 'Additional properties associated with the event.',
64
+ required: false,
65
+ defaultObjectUI: 'keyvalue',
66
+ default: { '@path': '$.properties' }
67
+ },
68
+ timestamp: {
69
+ label: 'Timestamp',
70
+ type: 'string',
71
+ description: 'The timestamp of the event. Defaults to the current time if not provided.',
72
+ format: 'date-time',
73
+ default: { '@path': '$.timestamp' }
74
+ }
75
+ },
76
+ perform: async (request, { payload }) => {
77
+ const { event, properties, identifiers: { userId, email, } = {}, listId, timestamp } = payload;
78
+ if (!userId && !email) {
79
+ throw new actions_core_1.PayloadValidationError('At least one identifier (userId or email) is required.');
80
+ }
81
+ delete properties?.email;
82
+ delete properties?.list_id;
83
+ const json = {
84
+ event,
85
+ userId,
86
+ listId,
87
+ properties,
88
+ timestamp
89
+ };
90
+ return await request(constants_1.SEND_EVENT_URL, {
91
+ method: 'POST',
92
+ json
93
+ });
94
+ }
95
+ };
96
+ exports.default = action;
97
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/yonoma/sendEvent/index.ts"],"names":[],"mappings":";;AAAA,wDAAgF;AAIhF,2CAA4C;AAE5C,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,YAAY;IACnB,WAAW,EAAE,oEAAoE;IACjF,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE;QACN,KAAK,EAAE;YACL,KAAK,EAAE,YAAY;YACnB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,iCAAiC;YAC9C,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;SAChC;QACD,WAAW,EAAE;YACX,KAAK,EAAE,aAAa;YACpB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,wFAAwF;YACrG,QAAQ,EAAE,IAAI;YACd,oBAAoB,EAAE,KAAK;YAC3B,UAAU,EAAE;gBACV,MAAM,EAAE;oBACN,KAAK,EAAE,SAAS;oBAChB,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,uCAAuC;iBACrD;gBACD,KAAK,EAAE;oBACL,KAAK,EA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AM,EACN,KAAK,GACN,GAAG,EAAE,EACN,MAAM,EACN,SAAS,EACV,GAAG,OAAO,CAAA;QAEX,IAAG,CAAC,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC;YACrB,MAAM,IAAI,qCAAsB,CAAC,wDAAwD,CAAC,CAAA;QAC5F,CAAC;QAED,OAAO,UAAU,EAAE,KAAK,CAAA;QACxB,OAAO,UAAU,EAAE,OAAO,CAAA;QAE1B,MAAM,IAAI,GAAkB;YAC1B,KAAK;YACL,MAAM;YACN,MAAM;YACN,UAAU;YACV,SAAS;SACV,CAAA;QAED,OAAO,MAAM,OAAO,CAAC,0BAAc,EAAE;YACnC,MAAM,EAAE,MAAM;YACd,IAAI;SACL,CAAC,CAAA;IAEJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -0,0 +1,10 @@
1
+ export interface SendEventJSON {
2
+ event: string;
3
+ userId?: string;
4
+ email?: string;
5
+ listId: string;
6
+ properties?: {
7
+ [key: string]: unknown;
8
+ };
9
+ timestamp?: string | number;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/destinations/yonoma/sendEvent/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export declare const TRACK_EVENT_URL = "https://api.yonoma.io/integration/segment/trackevent";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TRACK_EVENT_URL = void 0;
4
+ exports.TRACK_EVENT_URL = 'https://api.yonoma.io/integration/segment/trackevent';
5
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/destinations/yonoma/trackEvent/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG,sDAAsD,CAAA"}
@@ -0,0 +1,13 @@
1
+ export interface Payload {
2
+ event: string;
3
+ identifiers: {
4
+ userId?: string;
5
+ anonymousId?: string;
6
+ email?: string;
7
+ };
8
+ listId: string;
9
+ properties?: {
10
+ [k: string]: unknown;
11
+ };
12
+ timestamp?: string;
13
+ }
@@ -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/yonoma/trackEvent/generated-types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { 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,104 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const actions_core_1 = require("@segment/actions-core");
4
+ const constants_1 = require("./constants");
5
+ const action = {
6
+ title: 'Track Event',
7
+ description: 'Capture behavioral events for both known and anonymous users to build a complete activity timeline in Yonoma.',
8
+ defaultSubscription: 'type = "track"',
9
+ fields: {
10
+ event: {
11
+ label: 'Event Name',
12
+ type: 'string',
13
+ description: 'The name of the event to track.',
14
+ required: true,
15
+ default: { '@path': '$.event' }
16
+ },
17
+ identifiers: {
18
+ label: 'Identifiers',
19
+ type: 'object',
20
+ description: 'Unique identifiers for the contact. At least one of userId or anonymousId is required.',
21
+ required: true,
22
+ additionalProperties: false,
23
+ properties: {
24
+ userId: {
25
+ label: 'User ID',
26
+ type: 'string',
27
+ description: 'Unique user identifier from your app.'
28
+ },
29
+ anonymousId: {
30
+ label: 'Anonymous ID',
31
+ type: 'string',
32
+ description: 'Anonymous identifier from Segment for tracking pre-identified activity.'
33
+ },
34
+ email: {
35
+ label: 'Email',
36
+ type: 'string',
37
+ description: "Contact's email address. Required if userId is not provided."
38
+ }
39
+ },
40
+ default: {
41
+ userId: { '@path': '$.userId' },
42
+ anonymousId: { '@path': '$.anonymousId' },
43
+ email: {
44
+ '@if': {
45
+ exists: { '@path': '$.context.traits.email' },
46
+ then: { '@path': '$.context.traits.email' },
47
+ else: { '@path': '$.properties.email' }
48
+ }
49
+ }
50
+ }
51
+ },
52
+ listId: {
53
+ label: 'List ID',
54
+ type: 'string',
55
+ description: "The Yonoma list to add the contact to.",
56
+ required: true,
57
+ default: {
58
+ '@if': {
59
+ exists: { '@path': '$.context.traits.list_id' },
60
+ then: { '@path': '$.context.traits.list_id' },
61
+ else: { '@path': '$.properties.list_id' }
62
+ }
63
+ }
64
+ },
65
+ properties: {
66
+ label: 'Event Properties',
67
+ type: 'object',
68
+ description: 'Additional properties associated with the event.',
69
+ required: false,
70
+ defaultObjectUI: 'keyvalue',
71
+ default: { '@path': '$.properties' }
72
+ },
73
+ timestamp: {
74
+ label: 'Timestamp',
75
+ type: 'string',
76
+ description: 'The timestamp of the event. Defaults to the current time if not provided.',
77
+ format: 'date-time',
78
+ default: { '@path': '$.timestamp' }
79
+ }
80
+ },
81
+ perform: async (request, { payload }) => {
82
+ const { event, listId, properties, identifiers: { userId, email, anonymousId } = {}, timestamp } = payload;
83
+ if (!userId && !email && !anonymousId) {
84
+ throw new actions_core_1.PayloadValidationError('At least one identifier (userId, email, or anonymousId) is required.');
85
+ }
86
+ delete properties?.email;
87
+ delete properties?.list_id;
88
+ const json = {
89
+ event,
90
+ ...(userId ? { userId } : {}),
91
+ ...(anonymousId ? { anonymousId } : {}),
92
+ ...(email ? { email } : {}),
93
+ listId,
94
+ properties,
95
+ timestamp
96
+ };
97
+ return await request(constants_1.TRACK_EVENT_URL, {
98
+ method: 'POST',
99
+ json
100
+ });
101
+ }
102
+ };
103
+ exports.default = action;
104
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/yonoma/trackEvent/index.ts"],"names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,CAAC,EAAE,CAAC;YACvC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC3B,MAAM;YACN,UAAU;YACV,SAAS;SACV,CAAA;QAED,OAAO,MAAM,OAAO,CAAC,2BAAe,EAAE;YACpC,MAAM,EAAE,MAAM;YACd,IAAI;SACL,CAAC,CAAA;IAEJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -0,0 +1,11 @@
1
+ export interface TrackEventJSON {
2
+ event: string;
3
+ userId?: string;
4
+ anonymousId?: string;
5
+ email?: string;
6
+ listId: string;
7
+ properties?: {
8
+ [key: string]: unknown;
9
+ };
10
+ timestamp?: string | number;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/destinations/yonoma/trackEvent/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export declare const TRACK_PAGE_VIEW_URL = "https://api.yonoma.io/integration/segment/pageview";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TRACK_PAGE_VIEW_URL = void 0;
4
+ exports.TRACK_PAGE_VIEW_URL = 'https://api.yonoma.io/integration/segment/pageview';
5
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/destinations/yonoma/trackPageView/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,mBAAmB,GAAG,oDAAoD,CAAA"}
@@ -0,0 +1,17 @@
1
+ export interface Payload {
2
+ pageDetails: {
3
+ title?: string;
4
+ url: string;
5
+ referrer?: string;
6
+ };
7
+ identifiers: {
8
+ userId?: string;
9
+ anonymousId?: string;
10
+ email?: string;
11
+ };
12
+ listId: string;
13
+ properties?: {
14
+ [k: string]: unknown;
15
+ };
16
+ timestamp?: string;
17
+ }
@@ -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/yonoma/trackPageView/generated-types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { 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;