@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
@@ -0,0 +1,116 @@
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 Page View',
7
+ description: 'Log page visits to build behavioral profiles and trigger view-based automations in Yonoma.',
8
+ defaultSubscription: 'type = "page"',
9
+ fields: {
10
+ pageDetails: {
11
+ label: 'Page Details',
12
+ type: 'object',
13
+ description: 'The details of the page being viewed.',
14
+ required: true,
15
+ properties: {
16
+ title: {
17
+ label: 'Page Title',
18
+ type: 'string',
19
+ description: 'Title of the page.'
20
+ },
21
+ url: {
22
+ label: 'Page URL',
23
+ type: 'string',
24
+ description: 'Full URL of the page visited.',
25
+ required: true
26
+ },
27
+ referrer: {
28
+ label: 'Referrer URL',
29
+ type: 'string',
30
+ description: 'URL of the referring page.'
31
+ }
32
+ },
33
+ default: {
34
+ title: { '@path': '$.context.page.title' },
35
+ url: { '@path': '$.context.page.url' },
36
+ referrer: { '@path': '$.context.page.referrer' }
37
+ }
38
+ },
39
+ identifiers: {
40
+ label: 'Identifiers',
41
+ type: 'object',
42
+ description: 'Unique identifiers for the contact. At least one of userId or anonymousId is required.',
43
+ required: true,
44
+ additionalProperties: false,
45
+ properties: {
46
+ userId: {
47
+ label: 'User ID',
48
+ type: 'string',
49
+ description: 'Unique user identifier from your app.'
50
+ },
51
+ anonymousId: {
52
+ label: 'Anonymous ID',
53
+ type: 'string',
54
+ description: 'Anonymous identifier from Segment for tracking pre-identified activity.'
55
+ },
56
+ email: {
57
+ label: 'Email',
58
+ type: 'string',
59
+ description: "Contact's email address. Required if userId is not provided."
60
+ }
61
+ },
62
+ default: {
63
+ userId: { '@path': '$.userId' },
64
+ anonymousId: { '@path': '$.anonymousId' },
65
+ email: { '@path': '$.traits.email' }
66
+ }
67
+ },
68
+ listId: {
69
+ label: 'List ID',
70
+ type: 'string',
71
+ description: "The Yonoma list to add the contact to.",
72
+ required: true,
73
+ default: { '@path': '$.traits.list_id' }
74
+ },
75
+ properties: {
76
+ label: 'Event Properties',
77
+ type: 'object',
78
+ description: 'Additional properties associated with the event.',
79
+ required: false,
80
+ defaultObjectUI: 'keyvalue',
81
+ default: { '@path': '$.properties' }
82
+ },
83
+ timestamp: {
84
+ label: 'Timestamp',
85
+ type: 'string',
86
+ description: 'The timestamp of the event. Defaults to the current time if not provided.',
87
+ format: 'date-time',
88
+ default: { '@path': '$.timestamp' }
89
+ }
90
+ },
91
+ perform: async (request, { payload }) => {
92
+ const { pageDetails: { title, url, referrer } = {}, listId, properties, identifiers: { userId, email, anonymousId } = {}, timestamp } = payload;
93
+ if (!userId && !email && !anonymousId) {
94
+ throw new actions_core_1.PayloadValidationError('At least one identifier (userId, email, or anonymousId) is required.');
95
+ }
96
+ delete properties?.email;
97
+ delete properties?.list_id;
98
+ const json = {
99
+ url: url,
100
+ ...(referrer ? { referrer } : {}),
101
+ ...(title ? { title } : {}),
102
+ ...(userId ? { userId } : {}),
103
+ ...(anonymousId ? { anonymousId } : {}),
104
+ ...(email ? { email } : {}),
105
+ listId,
106
+ properties,
107
+ timestamp
108
+ };
109
+ return await request(constants_1.TRACK_PAGE_VIEW_URL, {
110
+ method: 'POST',
111
+ json
112
+ });
113
+ }
114
+ };
115
+ exports.default = action;
116
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/yonoma/trackPageView/index.ts"],"names":[],"mappings":";;AAAA,wDAAgF;AAIhF,2CAAiD;AAEjD,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,iBAAiB;IACxB,WAAW,EAAE,4FAA4F;IACzG,mBAAmB,EAAE,eAAe;IACpC,MAAM,EAAE;QACN,WAAW,EAAE;YACX,KAAK,EAAE,cAAc;YACrB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,uCAAuC;YACpD,QAAQ,EAAE,IAAI;YACd,UAAU,EAAE;gBACV,KAAK,EAAE;oBACL,KAAK,EAAE,YAAY;oBACnB,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,oBAAoB;iBAClC;gBACD,GAAG,EAAE;oBACH,KAAK,EAAE,UAAU;oBACjB,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,+BAA+B;oBAC5C,QAAQ,EAAE,IAAI;iBACf;gBACD,QAAQ,EAAE;oBACR,KAAK,EAAE,cAAc;oBACrB,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,4BAA4B;iBAC1C;aACF;YACD,OAAO,EAAE;gBACP,KAAK,EAAE,EAAE,OAAO,EAAE,sBAAsB,EAAE;gBAC1C,GAAG,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE;gBACtC,QAAQ,EAAE,EAAE,OAAO,EAAE,yBAAyB,EAAE;aACjD;SACF;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,WAAW,EAAE;oBACX,KAAK,EAAE,cAAc;oBACrB,IAAI,EAAE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,qCAAsB,CAAC,sEAAsE,CAAC,CAAA;QAC1G,CAAC;QAED,OAAO,UAAU,EAAE,KAAK,CAAA;QACxB,OAAO,UAAU,EAAE,OAAO,CAAA;QAE1B,MAAM,IAAI,GAAuB;YAC/B,GAAG,EAAE,GAAa;YAClB,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACjC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC3B,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC7B,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,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,+BAAmB,EAAE;YACxC,MAAM,EAAE,MAAM;YACd,IAAI;SACL,CAAC,CAAA;IAEJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -0,0 +1,13 @@
1
+ export interface TrackPageEventJSON {
2
+ url: string;
3
+ title?: string;
4
+ referrer?: string;
5
+ userId?: string;
6
+ anonymousId?: string;
7
+ email?: string;
8
+ listId: string;
9
+ properties?: {
10
+ [key: string]: unknown;
11
+ };
12
+ timestamp?: string | number;
13
+ }
@@ -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/trackPageView/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export declare const UPSERT_CONTACT_URL = "https://api.yonoma.io/integration/segment/upsertcontact";
2
+ export declare const TAG_CONTACT_URL = "https://api.yonoma.io/integration/segment/tagcontact";
3
+ export declare const UNTAG_CONTACT_URL = "https://api.yonoma.io/integration/segment/untagcontact";
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UNTAG_CONTACT_URL = exports.TAG_CONTACT_URL = exports.UPSERT_CONTACT_URL = void 0;
4
+ exports.UPSERT_CONTACT_URL = 'https://api.yonoma.io/integration/segment/upsertcontact';
5
+ exports.TAG_CONTACT_URL = 'https://api.yonoma.io/integration/segment/tagcontact';
6
+ exports.UNTAG_CONTACT_URL = 'https://api.yonoma.io/integration/segment/untagcontact';
7
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/destinations/yonoma/upsertContact/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,kBAAkB,GAAG,yDAAyD,CAAA;AAC9E,QAAA,eAAe,GAAG,sDAAsD,CAAA;AACxE,QAAA,iBAAiB,GAAG,wDAAwD,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/upsertContact/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,22 @@
1
+ export interface Payload {
2
+ identifiers: {
3
+ userId?: string;
4
+ anonymousId?: string;
5
+ email?: string;
6
+ };
7
+ listId: string;
8
+ properties?: {
9
+ firstName?: string;
10
+ lastName?: string;
11
+ phone?: string;
12
+ dateOfBirth?: string;
13
+ address?: string;
14
+ city?: string;
15
+ state?: string;
16
+ country?: string;
17
+ zipcode?: string;
18
+ };
19
+ status: boolean;
20
+ tags_to_add?: string[];
21
+ tags_to_remove?: string[];
22
+ }
@@ -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/upsertContact/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,189 @@
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 functions_1 = require("./functions");
6
+ const action = {
7
+ title: 'Upsert Contact',
8
+ description: 'Sync Segment user profile details to Yonoma Contacts.',
9
+ defaultSubscription: 'type = "identify"',
10
+ fields: {
11
+ identifiers: {
12
+ label: 'Identifiers',
13
+ type: 'object',
14
+ description: 'Unique identifiers for the contact. At least one of userId or anonymousId is required.',
15
+ required: true,
16
+ additionalProperties: false,
17
+ properties: {
18
+ userId: {
19
+ label: 'User ID',
20
+ type: 'string',
21
+ description: 'Unique user identifier from your app.'
22
+ },
23
+ anonymousId: {
24
+ label: 'Anonymous ID',
25
+ type: 'string',
26
+ description: 'Anonymous identifier from Segment for tracking pre-identified activity.'
27
+ },
28
+ email: {
29
+ label: 'Email',
30
+ type: 'string',
31
+ description: "Contact's email address. Required if userId is not provided."
32
+ }
33
+ },
34
+ default: {
35
+ userId: { '@path': '$.userId' },
36
+ anonymousId: { '@path': '$.anonymousId' },
37
+ email: { '@path': '$.traits.email' }
38
+ }
39
+ },
40
+ listId: {
41
+ label: 'List ID',
42
+ type: 'string',
43
+ description: "The Yonoma list to add the contact to.",
44
+ required: true,
45
+ default: { '@path': '$.traits.list_id' }
46
+ },
47
+ properties: {
48
+ label: 'Contact Properties',
49
+ type: 'object',
50
+ description: 'Additional Contact metadata.',
51
+ required: false,
52
+ additionalProperties: false,
53
+ defaultObjectUI: 'keyvalue',
54
+ properties: {
55
+ firstName: {
56
+ label: 'First Name',
57
+ type: 'string',
58
+ description: "Contact's first name."
59
+ },
60
+ lastName: {
61
+ label: 'Last Name',
62
+ type: 'string',
63
+ description: "Contact's last name."
64
+ },
65
+ phone: {
66
+ label: 'Phone Number',
67
+ type: 'string',
68
+ description: "Contact's phone number."
69
+ },
70
+ dateOfBirth: {
71
+ label: 'Date of Birth',
72
+ type: 'string',
73
+ description: "Contact's date of birth in YYYY-MM-DD or ISO8601 format."
74
+ },
75
+ address: {
76
+ label: 'Address',
77
+ type: 'string',
78
+ description: "Contact's address."
79
+ },
80
+ city: {
81
+ label: 'City',
82
+ type: 'string',
83
+ description: "Contact's city."
84
+ },
85
+ state: {
86
+ label: 'State',
87
+ type: 'string',
88
+ description: "Contact's state or province."
89
+ },
90
+ country: {
91
+ label: 'Country',
92
+ type: 'string',
93
+ description: "Contact's country."
94
+ },
95
+ zipcode: {
96
+ label: 'Zip Code',
97
+ type: 'string',
98
+ description: "Contact's postal code."
99
+ }
100
+ },
101
+ default: {
102
+ firstName: { '@path': '$.traits.first_name' },
103
+ lastName: { '@path': '$.traits.last_name' },
104
+ phone: { '@path': '$.traits.phone' },
105
+ dateOfBirth: { '@path': '$.traits.birthday' },
106
+ address: { '@path': '$.traits.address.street' },
107
+ city: { '@path': '$.traits.address.city' },
108
+ state: { '@path': '$.traits.address.state' },
109
+ country: { '@path': '$.traits.address.country' },
110
+ zipcode: { '@path': '$.traits.address.postal_code' }
111
+ }
112
+ },
113
+ status: {
114
+ label: 'Email subscription status',
115
+ type: 'boolean',
116
+ description: 'Indicates if the Contact is subscribed or unsubscribed from marketing emails. Set to true to subscribe, false to unsubscribe.',
117
+ required: true,
118
+ default: true
119
+ },
120
+ tags_to_add: {
121
+ label: 'Tags to Add',
122
+ type: 'string',
123
+ multiple: true,
124
+ description: 'List of tags to add to the Contact. Can be a single string or array of tags. Tags must already exist in Yonoma.',
125
+ required: false
126
+ },
127
+ tags_to_remove: {
128
+ label: 'Tags to Remove',
129
+ type: 'string',
130
+ multiple: true,
131
+ description: 'List of tags to remove from the Contact. Can be a single string or array of strings. Tags must already exist in Yonoma.',
132
+ required: false
133
+ }
134
+ },
135
+ perform: async (request, { payload }) => {
136
+ const { listId, properties: { firstName, lastName, phone, dateOfBirth, address, city, state, country, zipcode } = {}, status, tags_to_add, tags_to_remove, identifiers: { userId, email, anonymousId } = {} } = payload;
137
+ if (!userId && !email && !anonymousId) {
138
+ throw new actions_core_1.PayloadValidationError('At least one identifier (userId, email, or anonymousId) is required.');
139
+ }
140
+ const jsonUpsertContact = {
141
+ ...(userId ? { userId } : {}),
142
+ ...(anonymousId ? { anonymousId } : {}),
143
+ ...(email ? { email } : {}),
144
+ listId,
145
+ ...(typeof status === 'boolean' ? { status } : {}),
146
+ properties: {
147
+ ...(firstName ? { firstName } : {}),
148
+ ...(lastName ? { lastName } : {}),
149
+ ...(phone ? { phone } : {}),
150
+ ...(dateOfBirth ? { dateOfBirth: (0, functions_1.formatDate)(dateOfBirth) } : {}),
151
+ ...(address ? { address } : {}),
152
+ ...(city ? { city } : {}),
153
+ ...(state ? { state } : {}),
154
+ ...(country ? { country } : {}),
155
+ ...(zipcode ? { zipcode } : {})
156
+ }
157
+ };
158
+ await request(constants_1.UPSERT_CONTACT_URL, {
159
+ method: 'POST',
160
+ json: jsonUpsertContact
161
+ });
162
+ if (typeof tags_to_add === 'string' || ((Array.isArray(tags_to_add) && tags_to_add.length > 0))) {
163
+ const jsonAddTags = {
164
+ ...(userId ? { userId } : {}),
165
+ ...(email ? { email } : {}),
166
+ listId,
167
+ tags: Array.isArray(tags_to_add) ? tags_to_add : [tags_to_add]
168
+ };
169
+ await request(constants_1.TAG_CONTACT_URL, {
170
+ method: 'POST',
171
+ json: jsonAddTags
172
+ });
173
+ }
174
+ if (typeof tags_to_remove === 'string' || ((Array.isArray(tags_to_remove) && tags_to_remove.length > 0))) {
175
+ const jsonRemoveTags = {
176
+ ...(userId ? { userId } : {}),
177
+ ...(email ? { email } : {}),
178
+ listId,
179
+ tags: Array.isArray(tags_to_remove) ? tags_to_remove : [tags_to_remove]
180
+ };
181
+ await request(constants_1.UNTAG_CONTACT_URL, {
182
+ method: 'POST',
183
+ json: jsonRemoveTags
184
+ });
185
+ }
186
+ }
187
+ };
188
+ exports.default = action;
189
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/yonoma/upsertContact/index.ts"],"names":[],"mappings":";;AAAA,wDAAgF;AAGhF,2CAAoF;AAEpF,2CAAwC;AAExC,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,gBAAgB;IACvB,WAAW,EAAE,uDAAuD;IACpE,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE;QACN,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,WAAW,EAAE;oBACX,KAAK,EAAE,cAAc;oBACrB,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,yEAAyE;iBACvF;gBACD,KAAK,EAAE;oBACL,KAAK,EAAE,OAAO;oBACd,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,8DAA8D;iBAC5E;aACF;YACD,OAAO,EAAE;gBACP,MAAM,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;gBAC/B,WAAW,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE;gBACzC,KAAK,EAAE,EAAE,OAAO,EAAE,gBAAgB,EAAE;aACrC;SACF;QACD,MAAM,EAAE;YACN,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,QAA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E,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC7B,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC3B,MAAM;gBACN,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC;aACxE,CAAA;YACD,MAAM,OAAO,CAAC,6BAAiB,EAAE;gBAC/B,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE,cAAc;aACrB,CAAC,CAAA;QACJ,CAAC;IAEH,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -0,0 +1,24 @@
1
+ export interface UpsertContactJSON {
2
+ userId?: string;
3
+ anonymousId?: string;
4
+ email?: string;
5
+ listId: string;
6
+ status?: boolean;
7
+ properties: {
8
+ firstName?: string;
9
+ lastName?: string;
10
+ phone?: string;
11
+ dateOfBirth?: string;
12
+ address?: string;
13
+ city?: string;
14
+ state?: string;
15
+ country?: string;
16
+ zipcode?: string;
17
+ };
18
+ }
19
+ export interface UpdateTagsJSON {
20
+ userId?: string;
21
+ email?: string;
22
+ listId: string;
23
+ tags: string[];
24
+ }
@@ -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/upsertContact/types.ts"],"names":[],"mappings":""}
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.416.0",
4
+ "version": "3.418.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/segmentio/action-destinations",
@@ -90,5 +90,5 @@
90
90
  "__tests__/__helpers__/"
91
91
  ]
92
92
  },
93
- "gitHead": "ddc2b0c5e0ea3bdb8e78f5ba3ddf4627cbb4e193"
93
+ "gitHead": "b367ebd5a59a0e271bff6a1f809de98bd9f14677"
94
94
  }