@segment/action-destinations 3.296.0-staging-b963b9484 → 3.296.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 (303) hide show
  1. package/dist/destinations/aws-s3/operations.js.map +1 -1
  2. package/dist/destinations/blackbaud-raisers-edge-nxt/utils/index.d.ts +1 -1
  3. package/dist/destinations/facebook-custom-audiences/generated-types.d.ts +2 -2
  4. package/dist/destinations/facebook-custom-audiences/index.js +16 -6
  5. package/dist/destinations/facebook-custom-audiences/index.js.map +1 -1
  6. package/package.json +4 -4
  7. package/dist/destinations/amazon-ads/generated-types.d.ts +0 -3
  8. package/dist/destinations/amazon-ads/generated-types.js +0 -3
  9. package/dist/destinations/amazon-ads/generated-types.js.map +0 -1
  10. package/dist/destinations/amazon-ads/index.d.ts +0 -4
  11. package/dist/destinations/amazon-ads/index.js +0 -87
  12. package/dist/destinations/amazon-ads/index.js.map +0 -1
  13. package/dist/destinations/amazon-ads/syncAudiences/generated-types.d.ts +0 -2
  14. package/dist/destinations/amazon-ads/syncAudiences/generated-types.js +0 -3
  15. package/dist/destinations/amazon-ads/syncAudiences/generated-types.js.map +0 -1
  16. package/dist/destinations/amazon-ads/syncAudiences/index.d.ts +0 -5
  17. package/dist/destinations/amazon-ads/syncAudiences/index.js +0 -15
  18. package/dist/destinations/amazon-ads/syncAudiences/index.js.map +0 -1
  19. package/dist/destinations/amazon-ads/types.d.ts +0 -22
  20. package/dist/destinations/amazon-ads/types.js +0 -11
  21. package/dist/destinations/amazon-ads/types.js.map +0 -1
  22. package/dist/destinations/amazon-ads/utils.d.ts +0 -25
  23. package/dist/destinations/amazon-ads/utils.js +0 -8
  24. package/dist/destinations/amazon-ads/utils.js.map +0 -1
  25. package/dist/destinations/contentstack/constants.d.ts +0 -3
  26. package/dist/destinations/contentstack/constants.js +0 -7
  27. package/dist/destinations/contentstack/constants.js.map +0 -1
  28. package/dist/destinations/dynamic-yield-audiences/syncAudience/types.d.ts +0 -22
  29. package/dist/destinations/dynamic-yield-audiences/syncAudience/types.js +0 -3
  30. package/dist/destinations/dynamic-yield-audiences/syncAudience/types.js.map +0 -1
  31. package/dist/destinations/dynamic-yield-audiences/types.d.ts +0 -8
  32. package/dist/destinations/dynamic-yield-audiences/types.js +0 -12
  33. package/dist/destinations/dynamic-yield-audiences/types.js.map +0 -1
  34. package/dist/destinations/engage/sendgrid/Profile.d.ts +0 -6
  35. package/dist/destinations/engage/sendgrid/Profile.js +0 -3
  36. package/dist/destinations/engage/sendgrid/Profile.js.map +0 -1
  37. package/dist/destinations/engage/sendgrid/destinationDefinition.d.ts +0 -3
  38. package/dist/destinations/engage/sendgrid/destinationDefinition.js +0 -70
  39. package/dist/destinations/engage/sendgrid/destinationDefinition.js.map +0 -1
  40. package/dist/destinations/engage/sendgrid/generated-types.d.ts +0 -1
  41. package/dist/destinations/engage/sendgrid/generated-types.js +0 -14
  42. package/dist/destinations/engage/sendgrid/generated-types.js.map +0 -1
  43. package/dist/destinations/engage/sendgrid/index.d.ts +0 -2
  44. package/dist/destinations/engage/sendgrid/index.js +0 -5
  45. package/dist/destinations/engage/sendgrid/index.js.map +0 -1
  46. package/dist/destinations/engage/sendgrid/previewApiLookup/actionDefinition.d.ts +0 -4
  47. package/dist/destinations/engage/sendgrid/previewApiLookup/actionDefinition.js +0 -28
  48. package/dist/destinations/engage/sendgrid/previewApiLookup/actionDefinition.js.map +0 -1
  49. package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.d.ts +0 -21
  50. package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.js +0 -174
  51. package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.js.map +0 -1
  52. package/dist/destinations/engage/sendgrid/previewApiLookup/generated-types.d.ts +0 -1
  53. package/dist/destinations/engage/sendgrid/previewApiLookup/generated-types.js +0 -14
  54. package/dist/destinations/engage/sendgrid/previewApiLookup/generated-types.js.map +0 -1
  55. package/dist/destinations/engage/sendgrid/previewApiLookup/index.d.ts +0 -1
  56. package/dist/destinations/engage/sendgrid/previewApiLookup/index.js +0 -14
  57. package/dist/destinations/engage/sendgrid/previewApiLookup/index.js.map +0 -1
  58. package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.d.ts +0 -44
  59. package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.js +0 -419
  60. package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.js.map +0 -1
  61. package/dist/destinations/engage/sendgrid/sendEmail/UnlayerResponse.d.ts +0 -12
  62. package/dist/destinations/engage/sendgrid/sendEmail/UnlayerResponse.js +0 -3
  63. package/dist/destinations/engage/sendgrid/sendEmail/UnlayerResponse.js.map +0 -1
  64. package/dist/destinations/engage/sendgrid/sendEmail/actionDefinition.d.ts +0 -4
  65. package/dist/destinations/engage/sendgrid/sendEmail/actionDefinition.js +0 -257
  66. package/dist/destinations/engage/sendgrid/sendEmail/actionDefinition.js.map +0 -1
  67. package/dist/destinations/engage/sendgrid/sendEmail/generated-types.d.ts +0 -1
  68. package/dist/destinations/engage/sendgrid/sendEmail/generated-types.js +0 -14
  69. package/dist/destinations/engage/sendgrid/sendEmail/generated-types.js.map +0 -1
  70. package/dist/destinations/engage/sendgrid/sendEmail/index.d.ts +0 -1
  71. package/dist/destinations/engage/sendgrid/sendEmail/index.js +0 -14
  72. package/dist/destinations/engage/sendgrid/sendEmail/index.js.map +0 -1
  73. package/dist/destinations/engage/sendgrid/sendEmail/insertEmailPreviewText.d.ts +0 -1
  74. package/dist/destinations/engage/sendgrid/sendEmail/insertEmailPreviewText.js +0 -23
  75. package/dist/destinations/engage/sendgrid/sendEmail/insertEmailPreviewText.js.map +0 -1
  76. package/dist/destinations/engage/sendgrid/sendEmail/isRestrictedDomain.d.ts +0 -1
  77. package/dist/destinations/engage/sendgrid/sendEmail/isRestrictedDomain.js +0 -14
  78. package/dist/destinations/engage/sendgrid/sendEmail/isRestrictedDomain.js.map +0 -1
  79. package/dist/destinations/engage/twilio/destinationDefinition.d.ts +0 -3
  80. package/dist/destinations/engage/twilio/destinationDefinition.js +0 -172
  81. package/dist/destinations/engage/twilio/destinationDefinition.js.map +0 -1
  82. package/dist/destinations/engage/twilio/generated-types.d.ts +0 -1
  83. package/dist/destinations/engage/twilio/generated-types.js +0 -14
  84. package/dist/destinations/engage/twilio/generated-types.js.map +0 -1
  85. package/dist/destinations/engage/twilio/index.d.ts +0 -2
  86. package/dist/destinations/engage/twilio/index.js +0 -5
  87. package/dist/destinations/engage/twilio/index.js.map +0 -1
  88. package/dist/destinations/engage/twilio/sendMobilePush/PushSender.d.ts +0 -28
  89. package/dist/destinations/engage/twilio/sendMobilePush/PushSender.js +0 -151
  90. package/dist/destinations/engage/twilio/sendMobilePush/PushSender.js.map +0 -1
  91. package/dist/destinations/engage/twilio/sendMobilePush/actionDefinition.d.ts +0 -4
  92. package/dist/destinations/engage/twilio/sendMobilePush/actionDefinition.js +0 -250
  93. package/dist/destinations/engage/twilio/sendMobilePush/actionDefinition.js.map +0 -1
  94. package/dist/destinations/engage/twilio/sendMobilePush/generated-types.d.ts +0 -1
  95. package/dist/destinations/engage/twilio/sendMobilePush/generated-types.js +0 -14
  96. package/dist/destinations/engage/twilio/sendMobilePush/generated-types.js.map +0 -1
  97. package/dist/destinations/engage/twilio/sendMobilePush/index.d.ts +0 -1
  98. package/dist/destinations/engage/twilio/sendMobilePush/index.js +0 -14
  99. package/dist/destinations/engage/twilio/sendMobilePush/index.js.map +0 -1
  100. package/dist/destinations/engage/twilio/sendSms/SmsMessageSender.d.ts +0 -9
  101. package/dist/destinations/engage/twilio/sendSms/SmsMessageSender.js +0 -72
  102. package/dist/destinations/engage/twilio/sendSms/SmsMessageSender.js.map +0 -1
  103. package/dist/destinations/engage/twilio/sendSms/actionDefinition.d.ts +0 -4
  104. package/dist/destinations/engage/twilio/sendSms/actionDefinition.js +0 -162
  105. package/dist/destinations/engage/twilio/sendSms/actionDefinition.js.map +0 -1
  106. package/dist/destinations/engage/twilio/sendSms/generated-types.d.ts +0 -1
  107. package/dist/destinations/engage/twilio/sendSms/generated-types.js +0 -14
  108. package/dist/destinations/engage/twilio/sendSms/generated-types.js.map +0 -1
  109. package/dist/destinations/engage/twilio/sendSms/index.d.ts +0 -1
  110. package/dist/destinations/engage/twilio/sendSms/index.js +0 -14
  111. package/dist/destinations/engage/twilio/sendSms/index.js.map +0 -1
  112. package/dist/destinations/engage/twilio/sendWhatsApp/WhatsAppMessageSender.d.ts +0 -9
  113. package/dist/destinations/engage/twilio/sendWhatsApp/WhatsAppMessageSender.js +0 -89
  114. package/dist/destinations/engage/twilio/sendWhatsApp/WhatsAppMessageSender.js.map +0 -1
  115. package/dist/destinations/engage/twilio/sendWhatsApp/actionDefinition.d.ts +0 -4
  116. package/dist/destinations/engage/twilio/sendWhatsApp/actionDefinition.js +0 -136
  117. package/dist/destinations/engage/twilio/sendWhatsApp/actionDefinition.js.map +0 -1
  118. package/dist/destinations/engage/twilio/sendWhatsApp/generated-types.d.ts +0 -1
  119. package/dist/destinations/engage/twilio/sendWhatsApp/generated-types.js +0 -14
  120. package/dist/destinations/engage/twilio/sendWhatsApp/generated-types.js.map +0 -1
  121. package/dist/destinations/engage/twilio/sendWhatsApp/index.d.ts +0 -1
  122. package/dist/destinations/engage/twilio/sendWhatsApp/index.js +0 -14
  123. package/dist/destinations/engage/twilio/sendWhatsApp/index.js.map +0 -1
  124. package/dist/destinations/engage/twilio/utils/PhoneMessageSender.d.ts +0 -16
  125. package/dist/destinations/engage/twilio/utils/PhoneMessageSender.js +0 -71
  126. package/dist/destinations/engage/twilio/utils/PhoneMessageSender.js.map +0 -1
  127. package/dist/destinations/engage/twilio/utils/TwilioMessageSender.d.ts +0 -16
  128. package/dist/destinations/engage/twilio/utils/TwilioMessageSender.js +0 -115
  129. package/dist/destinations/engage/twilio/utils/TwilioMessageSender.js.map +0 -1
  130. package/dist/destinations/engage/twilio/utils/index.d.ts +0 -2
  131. package/dist/destinations/engage/twilio/utils/index.js +0 -15
  132. package/dist/destinations/engage/twilio/utils/index.js.map +0 -1
  133. package/dist/destinations/engage/twilio/utils/types.d.ts +0 -23
  134. package/dist/destinations/engage/twilio/utils/types.js +0 -3
  135. package/dist/destinations/engage/twilio/utils/types.js.map +0 -1
  136. package/dist/destinations/engage/utils/AggregateError.d.ts +0 -14
  137. package/dist/destinations/engage/utils/AggregateError.js +0 -26
  138. package/dist/destinations/engage/utils/AggregateError.js.map +0 -1
  139. package/dist/destinations/engage/utils/EngageActionPerformer.d.ts +0 -42
  140. package/dist/destinations/engage/utils/EngageActionPerformer.js +0 -148
  141. package/dist/destinations/engage/utils/EngageActionPerformer.js.map +0 -1
  142. package/dist/destinations/engage/utils/EngageLogger.d.ts +0 -18
  143. package/dist/destinations/engage/utils/EngageLogger.js +0 -52
  144. package/dist/destinations/engage/utils/EngageLogger.js.map +0 -1
  145. package/dist/destinations/engage/utils/EngageStats.d.ts +0 -18
  146. package/dist/destinations/engage/utils/EngageStats.js +0 -95
  147. package/dist/destinations/engage/utils/EngageStats.js.map +0 -1
  148. package/dist/destinations/engage/utils/IntegrationErrorWrapper.d.ts +0 -12
  149. package/dist/destinations/engage/utils/IntegrationErrorWrapper.js +0 -31
  150. package/dist/destinations/engage/utils/IntegrationErrorWrapper.js.map +0 -1
  151. package/dist/destinations/engage/utils/MessageSendPerformer.d.ts +0 -65
  152. package/dist/destinations/engage/utils/MessageSendPerformer.js +0 -211
  153. package/dist/destinations/engage/utils/MessageSendPerformer.js.map +0 -1
  154. package/dist/destinations/engage/utils/Profile.d.ts +0 -6
  155. package/dist/destinations/engage/utils/Profile.js +0 -3
  156. package/dist/destinations/engage/utils/Profile.js.map +0 -1
  157. package/dist/destinations/engage/utils/ResponseError.d.ts +0 -25
  158. package/dist/destinations/engage/utils/ResponseError.js +0 -22
  159. package/dist/destinations/engage/utils/ResponseError.js.map +0 -1
  160. package/dist/destinations/engage/utils/apiLookups.d.ts +0 -22
  161. package/dist/destinations/engage/utils/apiLookups.js +0 -189
  162. package/dist/destinations/engage/utils/apiLookups.js.map +0 -1
  163. package/dist/destinations/engage/utils/getProfileApiEndpoint.d.ts +0 -2
  164. package/dist/destinations/engage/utils/getProfileApiEndpoint.js +0 -10
  165. package/dist/destinations/engage/utils/getProfileApiEndpoint.js.map +0 -1
  166. package/dist/destinations/engage/utils/index.d.ts +0 -9
  167. package/dist/destinations/engage/utils/index.js +0 -22
  168. package/dist/destinations/engage/utils/index.js.map +0 -1
  169. package/dist/destinations/engage/utils/isDestinationActionService.d.ts +0 -1
  170. package/dist/destinations/engage/utils/isDestinationActionService.js +0 -8
  171. package/dist/destinations/engage/utils/isDestinationActionService.js.map +0 -1
  172. package/dist/destinations/engage/utils/isRetryableError.d.ts +0 -2
  173. package/dist/destinations/engage/utils/isRetryableError.js +0 -33
  174. package/dist/destinations/engage/utils/isRetryableError.js.map +0 -1
  175. package/dist/destinations/engage/utils/operationTracking/GenericMethodDecorator.d.ts +0 -1
  176. package/dist/destinations/engage/utils/operationTracking/GenericMethodDecorator.js +0 -3
  177. package/dist/destinations/engage/utils/operationTracking/GenericMethodDecorator.js.map +0 -1
  178. package/dist/destinations/engage/utils/operationTracking/OperationDecorator.d.ts +0 -46
  179. package/dist/destinations/engage/utils/operationTracking/OperationDecorator.js +0 -46
  180. package/dist/destinations/engage/utils/operationTracking/OperationDecorator.js.map +0 -1
  181. package/dist/destinations/engage/utils/operationTracking/OperationDuration.d.ts +0 -12
  182. package/dist/destinations/engage/utils/operationTracking/OperationDuration.js +0 -23
  183. package/dist/destinations/engage/utils/operationTracking/OperationDuration.js.map +0 -1
  184. package/dist/destinations/engage/utils/operationTracking/OperationErrorHandler.d.ts +0 -12
  185. package/dist/destinations/engage/utils/operationTracking/OperationErrorHandler.js +0 -35
  186. package/dist/destinations/engage/utils/operationTracking/OperationErrorHandler.js.map +0 -1
  187. package/dist/destinations/engage/utils/operationTracking/OperationFinallyHooks.d.ts +0 -14
  188. package/dist/destinations/engage/utils/operationTracking/OperationFinallyHooks.js +0 -31
  189. package/dist/destinations/engage/utils/operationTracking/OperationFinallyHooks.js.map +0 -1
  190. package/dist/destinations/engage/utils/operationTracking/OperationLogger.d.ts +0 -31
  191. package/dist/destinations/engage/utils/operationTracking/OperationLogger.js +0 -104
  192. package/dist/destinations/engage/utils/operationTracking/OperationLogger.js.map +0 -1
  193. package/dist/destinations/engage/utils/operationTracking/OperationStats.d.ts +0 -39
  194. package/dist/destinations/engage/utils/operationTracking/OperationStats.js +0 -130
  195. package/dist/destinations/engage/utils/operationTracking/OperationStats.js.map +0 -1
  196. package/dist/destinations/engage/utils/operationTracking/OperationTracker.test.d.ts +0 -1
  197. package/dist/destinations/engage/utils/operationTracking/OperationTracker.test.js +0 -377
  198. package/dist/destinations/engage/utils/operationTracking/OperationTracker.test.js.map +0 -1
  199. package/dist/destinations/engage/utils/operationTracking/OperationTree.d.ts +0 -23
  200. package/dist/destinations/engage/utils/operationTracking/OperationTree.js +0 -49
  201. package/dist/destinations/engage/utils/operationTracking/OperationTree.js.map +0 -1
  202. package/dist/destinations/engage/utils/operationTracking/TrackedError.d.ts +0 -6
  203. package/dist/destinations/engage/utils/operationTracking/TrackedError.js +0 -3
  204. package/dist/destinations/engage/utils/operationTracking/TrackedError.js.map +0 -1
  205. package/dist/destinations/engage/utils/operationTracking/index.d.ts +0 -10
  206. package/dist/destinations/engage/utils/operationTracking/index.js +0 -23
  207. package/dist/destinations/engage/utils/operationTracking/index.js.map +0 -1
  208. package/dist/destinations/engage/utils/operationTracking/wrapTryCatchFinallyPromisable.d.ts +0 -21
  209. package/dist/destinations/engage/utils/operationTracking/wrapTryCatchFinallyPromisable.js +0 -99
  210. package/dist/destinations/engage/utils/operationTracking/wrapTryCatchFinallyPromisable.js.map +0 -1
  211. package/dist/destinations/engage/utils/testUtils.d.ts +0 -6
  212. package/dist/destinations/engage/utils/testUtils.js +0 -26
  213. package/dist/destinations/engage/utils/testUtils.js.map +0 -1
  214. package/dist/destinations/engage/utils/track.d.ts +0 -52
  215. package/dist/destinations/engage/utils/track.js +0 -9
  216. package/dist/destinations/engage/utils/track.js.map +0 -1
  217. package/dist/destinations/engage-messaging-sendgrid/previewApiLookup.types.d.ts +0 -16
  218. package/dist/destinations/engage-messaging-sendgrid/previewApiLookup.types.js +0 -3
  219. package/dist/destinations/engage-messaging-sendgrid/previewApiLookup.types.js.map +0 -1
  220. package/dist/destinations/engage-messaging-sendgrid/sendEmail.types.d.ts +0 -56
  221. package/dist/destinations/engage-messaging-sendgrid/sendEmail.types.js +0 -3
  222. package/dist/destinations/engage-messaging-sendgrid/sendEmail.types.js.map +0 -1
  223. package/dist/destinations/engage-messaging-twilio/sendMobilePush.types.d.ts +0 -39
  224. package/dist/destinations/engage-messaging-twilio/sendMobilePush.types.js +0 -3
  225. package/dist/destinations/engage-messaging-twilio/sendMobilePush.types.js.map +0 -1
  226. package/dist/destinations/engage-messaging-twilio/sendSms.types.d.ts +0 -27
  227. package/dist/destinations/engage-messaging-twilio/sendSms.types.js +0 -3
  228. package/dist/destinations/engage-messaging-twilio/sendSms.types.js.map +0 -1
  229. package/dist/destinations/engage-messaging-twilio/sendWhatsApp.types.d.ts +0 -25
  230. package/dist/destinations/engage-messaging-twilio/sendWhatsApp.types.js +0 -3
  231. package/dist/destinations/engage-messaging-twilio/sendWhatsApp.types.js.map +0 -1
  232. package/dist/destinations/facebook-custom-audiences/fbca-operations.d.ts +0 -32
  233. package/dist/destinations/facebook-custom-audiences/fbca-operations.js +0 -50
  234. package/dist/destinations/facebook-custom-audiences/fbca-operations.js.map +0 -1
  235. package/dist/destinations/facebook-custom-audiences/fbca-properties.d.ts +0 -2
  236. package/dist/destinations/facebook-custom-audiences/fbca-properties.js +0 -10
  237. package/dist/destinations/facebook-custom-audiences/fbca-properties.js.map +0 -1
  238. package/dist/destinations/facebook-custom-audiences/sync/generated-types.d.ts +0 -15
  239. package/dist/destinations/facebook-custom-audiences/sync/generated-types.js +0 -3
  240. package/dist/destinations/facebook-custom-audiences/sync/generated-types.js.map +0 -1
  241. package/dist/destinations/facebook-custom-audiences/sync/index.d.ts +0 -5
  242. package/dist/destinations/facebook-custom-audiences/sync/index.js +0 -139
  243. package/dist/destinations/facebook-custom-audiences/sync/index.js.map +0 -1
  244. package/dist/destinations/google-enhanced-conversions/userList/generated-types.d.ts +0 -31
  245. package/dist/destinations/google-enhanced-conversions/userList/generated-types.js +0 -3
  246. package/dist/destinations/google-enhanced-conversions/userList/generated-types.js.map +0 -1
  247. package/dist/destinations/google-enhanced-conversions/userList/index.d.ts +0 -5
  248. package/dist/destinations/google-enhanced-conversions/userList/index.js +0 -280
  249. package/dist/destinations/google-enhanced-conversions/userList/index.js.map +0 -1
  250. package/dist/destinations/mappings-two-test/generated-types.d.ts +0 -3
  251. package/dist/destinations/mappings-two-test/generated-types.js +0 -3
  252. package/dist/destinations/mappings-two-test/generated-types.js.map +0 -1
  253. package/dist/destinations/mappings-two-test/index.d.ts +0 -4
  254. package/dist/destinations/mappings-two-test/index.js +0 -32
  255. package/dist/destinations/mappings-two-test/index.js.map +0 -1
  256. package/dist/destinations/mappings-two-test/kitchenSink/generated-types.d.ts +0 -53
  257. package/dist/destinations/mappings-two-test/kitchenSink/generated-types.js +0 -3
  258. package/dist/destinations/mappings-two-test/kitchenSink/generated-types.js.map +0 -1
  259. package/dist/destinations/mappings-two-test/kitchenSink/index.d.ts +0 -5
  260. package/dist/destinations/mappings-two-test/kitchenSink/index.js +0 -289
  261. package/dist/destinations/mappings-two-test/kitchenSink/index.js.map +0 -1
  262. package/dist/destinations/mappings-two-test/sendEvent/generated-types.d.ts +0 -17
  263. package/dist/destinations/mappings-two-test/sendEvent/generated-types.js +0 -3
  264. package/dist/destinations/mappings-two-test/sendEvent/generated-types.js.map +0 -1
  265. package/dist/destinations/mappings-two-test/sendEvent/index.d.ts +0 -5
  266. package/dist/destinations/mappings-two-test/sendEvent/index.js +0 -343
  267. package/dist/destinations/mappings-two-test/sendEvent/index.js.map +0 -1
  268. package/dist/destinations/responsys/asyncMergePetRecords/generated-types.d.ts +0 -14
  269. package/dist/destinations/responsys/asyncMergePetRecords/generated-types.js +0 -3
  270. package/dist/destinations/responsys/asyncMergePetRecords/generated-types.js.map +0 -1
  271. package/dist/destinations/responsys/asyncMergePetRecords/index.d.ts +0 -5
  272. package/dist/destinations/responsys/asyncMergePetRecords/index.js +0 -113
  273. package/dist/destinations/responsys/asyncMergePetRecords/index.js.map +0 -1
  274. package/dist/destinations/responsys/asyncMergeProfileListMembers/generated-types.d.ts +0 -20
  275. package/dist/destinations/responsys/asyncMergeProfileListMembers/generated-types.js +0 -3
  276. package/dist/destinations/responsys/asyncMergeProfileListMembers/generated-types.js.map +0 -1
  277. package/dist/destinations/responsys/asyncMergeProfileListMembers/index.d.ts +0 -5
  278. package/dist/destinations/responsys/asyncMergeProfileListMembers/index.js +0 -174
  279. package/dist/destinations/responsys/asyncMergeProfileListMembers/index.js.map +0 -1
  280. package/dist/destinations/responsys/rsp-operations.d.ts +0 -14
  281. package/dist/destinations/responsys/rsp-operations.js +0 -33
  282. package/dist/destinations/responsys/rsp-operations.js.map +0 -1
  283. package/dist/destinations/responsys/rsp-properties.d.ts +0 -4
  284. package/dist/destinations/responsys/rsp-properties.js +0 -27
  285. package/dist/destinations/responsys/rsp-properties.js.map +0 -1
  286. package/dist/destinations/snap-conversions-api/_tests_/capiV2tests.d.ts +0 -1
  287. package/dist/destinations/snap-conversions-api/_tests_/capiV2tests.js +0 -381
  288. package/dist/destinations/snap-conversions-api/_tests_/capiV2tests.js.map +0 -1
  289. package/dist/destinations/snap-conversions-api/_tests_/capiV3tests.d.ts +0 -1
  290. package/dist/destinations/snap-conversions-api/_tests_/capiV3tests.js +0 -581
  291. package/dist/destinations/snap-conversions-api/_tests_/capiV3tests.js.map +0 -1
  292. package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v2.d.ts +0 -4
  293. package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v2.js +0 -97
  294. package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v2.js.map +0 -1
  295. package/dist/destinations/snap-conversions-api/snap-capi-properties.d.ts +0 -30
  296. package/dist/destinations/snap-conversions-api/snap-capi-properties.js +0 -316
  297. package/dist/destinations/snap-conversions-api/snap-capi-properties.js.map +0 -1
  298. package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.d.ts +0 -3
  299. package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.js +0 -34
  300. package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.js.map +0 -1
  301. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/formatter.d.ts +0 -3
  302. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/formatter.js +0 -43
  303. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/formatter.js.map +0 -1
@@ -1,289 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const action = {
4
- title: 'Kitchen Sink',
5
- description: 'Action with all possible field types',
6
- platform: 'cloud',
7
- syncMode: {
8
- description: 'Define how the records from your destination will be synced to mappings 2 test destination',
9
- label: 'How to sync records',
10
- default: 'add',
11
- choices: [
12
- { label: 'Adds record to mappings 2 test destination', value: 'add' },
13
- { label: 'Updates record in mappings 2 test destination', value: 'update' }
14
- ]
15
- },
16
- hooks: {
17
- onMappingSave: {
18
- label: 'Excute the test hook 🎣',
19
- description: 'This hook will be executed when the mapping is saved 🐟🐟🐟. It will send a test event to the destination.',
20
- inputFields: {
21
- structured_hook_input: {
22
- label: 'Structured Hook Input',
23
- description: 'A test structured object',
24
- type: 'object',
25
- properties: {
26
- name: {
27
- label: 'Name',
28
- description: 'A test string field',
29
- type: 'string'
30
- },
31
- age: {
32
- label: 'Age',
33
- description: 'A test number field',
34
- type: 'number'
35
- }
36
- }
37
- }
38
- },
39
- outputTypes: {},
40
- performHook: async (request, { hookInputs, hookOutputs, payload, settings }) => {
41
- const api_key = settings.apiKey;
42
- await request('https://api.segment.io/v1/t', {
43
- method: 'POST',
44
- json: {
45
- userId: 'test-user',
46
- type: 'track',
47
- event: 'test-event-hooks',
48
- writeKey: api_key,
49
- properties: {
50
- hookInputs,
51
- hookOutputs,
52
- payload
53
- }
54
- }
55
- });
56
- return {};
57
- }
58
- }
59
- },
60
- fields: {
61
- string_field: {
62
- label: 'String Field',
63
- description: 'A test string field',
64
- type: 'string',
65
- format: 'email'
66
- },
67
- dynamic_string_field: {
68
- label: 'Dynamic String Field',
69
- description: 'A test dynamic string field',
70
- type: 'string',
71
- dynamic: true
72
- },
73
- number_field: {
74
- label: 'Number Field',
75
- description: 'A test number field',
76
- type: 'number',
77
- required: true
78
- },
79
- boolean_field: {
80
- label: 'Boolean Field',
81
- description: 'A test boolean field',
82
- type: 'boolean'
83
- },
84
- string_select: {
85
- label: 'Select field',
86
- description: 'A test select field to pick a single string value',
87
- type: 'string',
88
- choices: [
89
- { label: 'Option 1', value: 'option1' },
90
- { label: 'Option 2', value: 'option2' }
91
- ]
92
- },
93
- select_number: {
94
- label: 'Select Number',
95
- description: 'A test select field to pick a single number value',
96
- type: 'number',
97
- choices: [
98
- { label: 'Number 1', value: 1 },
99
- { label: 'Number 2', value: 2 }
100
- ]
101
- },
102
- array_field: {
103
- label: 'Array of string field (Unsupported)',
104
- description: 'A test array of string field',
105
- type: 'string',
106
- multiple: true
107
- },
108
- date_time_field: {
109
- label: 'Date time field',
110
- description: 'A test date time field',
111
- type: 'datetime'
112
- },
113
- integer_field: {
114
- label: 'Integer field',
115
- description: 'A test integer field',
116
- type: 'integer'
117
- },
118
- password_field: {
119
- label: 'Password field',
120
- description: 'A test password field',
121
- type: 'password'
122
- },
123
- text_field: {
124
- label: 'Text field',
125
- description: 'A Text Field',
126
- type: 'text'
127
- },
128
- unstructured_object: {
129
- label: 'Unstructured Object',
130
- description: 'A test unstructured object',
131
- type: 'object',
132
- defaultObjectUI: 'keyvalue:only'
133
- },
134
- mappable_object: {
135
- label: 'Unstructured Object that is only mappable',
136
- description: 'A test unstructured object',
137
- type: 'object',
138
- defaultObjectUI: 'object:only'
139
- },
140
- mappable_and_editable_object: {
141
- label: 'Unstructured Object that is both mappable and editable',
142
- description: 'A test unstructured object that is both mappable and editable',
143
- type: 'object'
144
- },
145
- structured_object: {
146
- label: 'Structured Object',
147
- description: 'A test structured object',
148
- type: 'object',
149
- properties: {
150
- name: {
151
- label: 'Name',
152
- description: 'A test string field',
153
- type: 'string'
154
- },
155
- age: {
156
- label: 'Age',
157
- description: 'A test number field',
158
- type: 'number'
159
- },
160
- is_active: {
161
- label: 'Is Active',
162
- description: 'A test boolean field',
163
- type: 'boolean'
164
- },
165
- role: {
166
- label: 'Role',
167
- description: 'A test select field to pick a single string value',
168
- type: 'string',
169
- choices: [
170
- { label: 'Admin', value: 'admin' },
171
- { label: 'User', value: 'user' }
172
- ]
173
- }
174
- }
175
- },
176
- structured_object_with_additional_properties: {
177
- label: 'Structured Object with Additional Properties',
178
- description: 'A test structured object with additional properties',
179
- type: 'object',
180
- additionalProperties: true,
181
- properties: {
182
- name: {
183
- label: 'Name',
184
- description: 'A test string field',
185
- type: 'string'
186
- },
187
- age: {
188
- label: 'Age',
189
- description: 'A test number field',
190
- type: 'number'
191
- }
192
- }
193
- },
194
- structured_array_of_objects: {
195
- label: 'Structured Array of Objects',
196
- description: 'A test structured array of objects',
197
- type: 'object',
198
- multiple: true,
199
- properties: {
200
- name: {
201
- label: 'Name',
202
- description: 'A test string field',
203
- type: 'string'
204
- },
205
- age: {
206
- label: 'Age',
207
- description: 'A test number field',
208
- type: 'number'
209
- }
210
- }
211
- },
212
- structured_array_of_objects_with_additional_props: {
213
- label: 'Structured Array of Objects with Additional Properties',
214
- description: 'A test structured array of objects with additional properties',
215
- type: 'object',
216
- multiple: true,
217
- additionalProperties: true,
218
- properties: {
219
- name: {
220
- label: 'Name',
221
- description: 'A test string field',
222
- type: 'string'
223
- },
224
- age: {
225
- label: 'Age',
226
- description: 'A test number field',
227
- type: 'number'
228
- }
229
- }
230
- }
231
- },
232
- dynamicFields: {
233
- dynamic_string_field: async () => {
234
- return Promise.resolve({
235
- choices: [
236
- {
237
- label: 'Cat 🐱',
238
- value: 'cat',
239
- type: 'string',
240
- description: 'A small, independent, and playful pet known for its agility and affectionate purring.'
241
- },
242
- {
243
- label: 'Dog 🐶',
244
- value: 'dog',
245
- type: 'string',
246
- description: "A loyal and friendly pet, great for companionship and known as man's best friend."
247
- },
248
- {
249
- label: 'Elephant 🐘',
250
- value: 'elephant',
251
- type: 'string',
252
- description: 'A large and intelligent animal with a trunk, known for its memory and social structure.'
253
- },
254
- {
255
- label: 'Dolphin 🐬',
256
- value: 'dolphin',
257
- type: 'string',
258
- description: 'A highly intelligent and social marine mammal known for its playful behavior and acrobatics.'
259
- },
260
- {
261
- label: 'Tiger 🐅',
262
- value: 'tiger',
263
- type: 'string',
264
- description: 'A majestic and powerful big cat, known for its striking orange coat with black stripes.'
265
- }
266
- ],
267
- nextPage: ''
268
- });
269
- }
270
- },
271
- perform: (request, { payload, settings, syncMode }) => {
272
- const api_key = settings.apiKey;
273
- return request('https://api.segment.io/v1/t', {
274
- method: 'POST',
275
- json: {
276
- userId: 'test-user',
277
- type: 'track',
278
- event: 'test-event',
279
- writeKey: api_key,
280
- properties: {
281
- ...payload,
282
- syncMode
283
- }
284
- }
285
- });
286
- }
287
- };
288
- exports.default = action;
289
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/mappings-two-test/kitchenSink/index.ts"],"names":[],"mappings":";;AAIA,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,cAAc;IACrB,WAAW,EAAE,sCAAsC;IACnD,QAAQ,EAAE,OAAO;IACjB,QAAQ,EAAE;QACR,WAAW,EAAE,4FAA4F;QACzG,KAAK,EAAE,qBAAqB;QAC5B,OAAO,EAAE,KAAK;QACd,OAAO,EAAE;YACP,EAAE,KAAK,EAAE,4CAA4C,EAAE,KAAK,EAAE,KAAK,EAAE;YACrE,EAAE,KAAK,E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wBACd,WAAW,EAAE,mFAAmF;qBACjG;oBACD;wBACE,KAAK,EAAE,aAAa;wBACpB,KAAK,EAAE,UAAU;wBACjB,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,yFAAyF;qBACvG;oBACD;wBACE,KAAK,EAAE,YAAY;wBACnB,KAAK,EAAE,SAAS;wBAChB,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,8FAA8F;qBAC5G;oBACD;wBACE,KAAK,EAAE,UAAU;wBACjB,KAAK,EAAE,OAAO;wBACd,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,yFAAyF;qBACvG;iBACF;gBACD,QAAQ,EAAE,EAAE;aACb,CAAC,CAAA;QACJ,CAAC;KACF;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE;QACpD,MAAM,OAAO,GAAG,QAAQ,CAAC,MAAM,CAAA;QAC/B,OAAO,OAAO,CAAC,6BAA6B,EAAE;YAC5C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE;gBACJ,MAAM,EAAE,WAAW;gBACnB,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,YAAY;gBACnB,QAAQ,EAAE,OAAO;gBACjB,UAAU,EAAE;oBACV,GAAG,OAAO;oBACV,QAAQ;iBACT;aACF;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -1,17 +0,0 @@
1
- export interface Payload {
2
- test_field?: string;
3
- dynamic_object: {
4
- [k: string]: unknown;
5
- };
6
- dynamic_structured_object: {
7
- pet?: string;
8
- plant?: string;
9
- name?: string;
10
- age?: number;
11
- };
12
- dynamic_array?: {
13
- product_category?: string;
14
- product_name?: string;
15
- product_price?: number;
16
- }[];
17
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=generated-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/mappings-two-test/sendEvent/generated-types.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- import type { ActionDefinition } from '@segment/actions-core';
2
- import type { Settings } from '../generated-types';
3
- import type { Payload } from './generated-types';
4
- declare const action: ActionDefinition<Settings, Payload>;
5
- export default action;
@@ -1,343 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const action = {
4
- title: 'Send Event',
5
- description: 'Test Segment Action',
6
- platform: 'cloud',
7
- syncMode: {
8
- description: 'Define how the records from your destination will be synced to mappings 2 test destination',
9
- label: 'How to sync records',
10
- default: 'update',
11
- choices: [
12
- { label: 'Adds record to mappings 2 test destination', value: 'add' },
13
- { label: 'Updates record in mappings 2 test destination', value: 'update' }
14
- ]
15
- },
16
- fields: {
17
- test_field: {
18
- label: 'Test Field',
19
- description: 'A test string field',
20
- type: 'string'
21
- },
22
- dynamic_object: {
23
- label: 'Dynamic Object',
24
- description: 'A dynamic object',
25
- type: 'object',
26
- required: true,
27
- defaultObjectUI: 'keyvalue:only',
28
- dynamic: true
29
- },
30
- dynamic_structured_object: {
31
- label: 'Choose a pet or plant',
32
- description: 'Choose a pet or plant and provide details',
33
- type: 'object',
34
- required: true,
35
- defaultObjectUI: 'keyvalue',
36
- properties: {
37
- pet: {
38
- label: 'Pet type',
39
- description: 'Pet type',
40
- type: 'string',
41
- dynamic: true
42
- },
43
- plant: {
44
- label: 'Plant type',
45
- description: 'Plant type',
46
- type: 'string',
47
- dynamic: true
48
- },
49
- name: {
50
- label: 'Name',
51
- description: 'Name',
52
- type: 'string'
53
- },
54
- age: {
55
- label: 'Age',
56
- description: 'Age',
57
- type: 'number',
58
- choices: [
59
- { label: '0-10', value: 1 },
60
- { label: '10-20', value: 2 }
61
- ]
62
- }
63
- }
64
- },
65
- dynamic_array: {
66
- label: 'Dynamic Array',
67
- description: 'A dynamic array',
68
- type: 'object',
69
- defaultObjectUI: 'arrayeditor',
70
- multiple: true,
71
- properties: {
72
- product_category: {
73
- label: 'Product Category',
74
- description: 'Product Category',
75
- type: 'string',
76
- choices: [
77
- { label: 'Electronics', value: 'electronics' },
78
- { label: 'Home Decor', value: 'home-decor' },
79
- { label: 'Clothing', value: 'clothing' }
80
- ]
81
- },
82
- product_name: {
83
- label: 'Product Name',
84
- description: 'Product Name',
85
- type: 'string',
86
- dynamic: true
87
- },
88
- product_price: {
89
- label: 'Product Price',
90
- description: 'Product Price',
91
- type: 'number'
92
- }
93
- }
94
- }
95
- },
96
- dynamicFields: {
97
- dynamic_object: {
98
- __keys__: async () => {
99
- return Promise.resolve({
100
- choices: [
101
- {
102
- label: 'Apple 🍎',
103
- value: 'apple',
104
- type: 'string',
105
- description: 'A crisp and juicy red fruit, perfect for snacking or making pies.'
106
- },
107
- {
108
- label: 'Banana 🍌',
109
- value: 'banana',
110
- type: 'string',
111
- description: 'A sweet and soft yellow fruit, ideal for a quick energy boost.'
112
- },
113
- {
114
- label: 'Cherry 🍒',
115
- value: 'cherry',
116
- type: 'string',
117
- description: 'A small and tart red fruit, great for desserts and snacking.'
118
- },
119
- {
120
- label: 'Grapes 🍇',
121
- value: 'grapes',
122
- type: 'string',
123
- description: 'Juicy and sweet clusters of small, round fruits, perfect for snacking or making wine.'
124
- },
125
- {
126
- label: 'Orange 🍊',
127
- value: 'orange',
128
- type: 'string',
129
- description: 'A tangy and refreshing orange fruit, great for juicing or eating fresh.'
130
- }
131
- ],
132
- nextPage: ''
133
- });
134
- },
135
- __values__: async (_, { dynamicFieldContext }) => {
136
- if (!dynamicFieldContext?.selectedKey) {
137
- throw new Error('Selected key is missing');
138
- }
139
- const selectedKey = dynamicFieldContext?.selectedKey || 'unknwon';
140
- return Promise.resolve({
141
- choices: [
142
- {
143
- label: `${selectedKey} juice`,
144
- value: `${selectedKey}_juice`
145
- },
146
- {
147
- label: `${selectedKey} cake`,
148
- value: `${selectedKey}_cake`
149
- },
150
- {
151
- label: `${selectedKey} smoothie`,
152
- value: `${selectedKey}_smoothie`
153
- }
154
- ],
155
- nextPage: ''
156
- });
157
- }
158
- },
159
- dynamic_structured_object: {
160
- pet: async () => {
161
- return Promise.resolve({
162
- choices: [
163
- {
164
- label: 'Cat 🐱',
165
- value: 'cat',
166
- type: 'string',
167
- description: 'A small, independent, and playful pet known for its agility and affectionate purring.'
168
- },
169
- {
170
- label: 'Dog 🐶',
171
- value: 'dog',
172
- type: 'string',
173
- description: 'A loyal and friendly pet, great for companionship'
174
- },
175
- {
176
- label: 'Fish 🐠',
177
- value: 'fish',
178
- type: 'string',
179
- description: 'A small and low-maintenance pet that lives in water.'
180
- }
181
- ],
182
- nextPage: ''
183
- });
184
- },
185
- plant: async () => {
186
- return Promise.resolve({
187
- choices: [
188
- {
189
- label: 'Fern 🌿',
190
- value: 'fern',
191
- type: 'string',
192
- description: 'A leafy green plant that thrives in humid environments.'
193
- },
194
- {
195
- label: 'Cactus 🌵',
196
- value: 'cactus',
197
- type: 'string',
198
- description: 'A spiky plant that requires minimal water and sunlight.'
199
- },
200
- {
201
- label: 'Succulent 🌱',
202
- value: 'succulent',
203
- type: 'string',
204
- description: 'A fleshy plant that stores water in its leaves, stems, or roots.'
205
- }
206
- ],
207
- nextPage: ''
208
- });
209
- }
210
- },
211
- dynamic_array: {
212
- product_name: async (_, { dynamicFieldContext, payload }) => {
213
- const products = [
214
- {
215
- name: 'Laptop 💻',
216
- category: 'electronics',
217
- slug: 'laptop',
218
- description: 'A high-performance laptop with 16GB RAM and 512GB SSD.'
219
- },
220
- {
221
- name: 'Smartphone 📱',
222
- category: 'electronics',
223
- slug: 'smartphone',
224
- description: 'A sleek smartphone with a powerful camera and long battery life.'
225
- },
226
- {
227
- name: 'Headphones 🎧',
228
- category: 'electronics',
229
- slug: 'headphones',
230
- description: 'Noise-cancelling over-ear headphones with premium sound quality.'
231
- },
232
- {
233
- name: 'Smartwatch ⌚',
234
- category: 'electronics',
235
- slug: 'smartwatch',
236
- description: 'A stylish smartwatch with fitness tracking and notifications.'
237
- },
238
- {
239
- name: 'T-shirt 👕',
240
- category: 'clothing',
241
- slug: 't-shirt',
242
- description: 'A comfortable cotton t-shirt available in various colors.'
243
- },
244
- {
245
- name: 'Jeans 👖',
246
- category: 'clothing',
247
- slug: 'jeans',
248
- description: 'Classic blue jeans with a modern slim fit.'
249
- },
250
- {
251
- name: 'Sneakers 👟',
252
- category: 'clothing',
253
- slug: 'sneakers',
254
- description: 'Stylish and comfortable sneakers for everyday wear.'
255
- },
256
- {
257
- name: 'Jacket 🧥',
258
- category: 'clothing',
259
- slug: 'jacket',
260
- description: 'A warm and trendy jacket perfect for cold weather.'
261
- },
262
- {
263
- name: 'Table Lamp 🛋️',
264
- category: 'Home Decor',
265
- slug: 'table-lamp',
266
- description: 'A modern table lamp with adjustable brightness.'
267
- },
268
- {
269
- name: 'Sofa 🛋️',
270
- category: 'Home Decor',
271
- slug: 'sofa',
272
- description: 'A comfortable sofa with a stylish design and durable fabric.'
273
- },
274
- {
275
- name: 'Wall Art 🖼️',
276
- category: 'home-decor',
277
- slug: 'wall-art',
278
- description: 'Beautiful wall art to add a touch of elegance to your home.'
279
- },
280
- {
281
- name: 'Rug 🏡',
282
- category: 'home-decor',
283
- slug: 'rug',
284
- description: 'A soft and cozy rug perfect for any living space.'
285
- },
286
- {
287
- name: 'Bluetooth Speaker 🔊',
288
- category: 'Electronics',
289
- slug: 'bluetooth-speaker',
290
- description: 'Portable Bluetooth speaker with powerful sound and long battery life.'
291
- },
292
- {
293
- name: 'Dress 👗',
294
- category: 'Clothing',
295
- slug: 'dress',
296
- description: 'A stylish dress perfect for both casual and formal occasions.'
297
- },
298
- {
299
- name: 'Curtains 🏡',
300
- category: 'home-decor',
301
- slug: 'curtains',
302
- description: 'Elegant curtains to enhance the look of any room.'
303
- },
304
- {
305
- name: 'Table 🛋️',
306
- category: 'home-decor',
307
- slug: 'table',
308
- description: 'A modern dining table made of high-quality wood.'
309
- }
310
- ];
311
- const index = dynamicFieldContext?.selectedArrayIndex || 0;
312
- const selectedCategory = payload.dynamic_array?.[index]?.product_category;
313
- const choices = products
314
- .filter((product) => (selectedCategory ? product.category === selectedCategory : true))
315
- .map((product) => {
316
- return { value: product.slug, label: product.name };
317
- });
318
- return Promise.resolve({
319
- choices: choices,
320
- nextPage: ''
321
- });
322
- }
323
- }
324
- },
325
- perform: (request, { payload, settings, syncMode }) => {
326
- const api_key = settings.apiKey;
327
- return request('https://api.segment.io/v1/t', {
328
- method: 'POST',
329
- json: {
330
- userId: 'test-user',
331
- type: 'track',
332
- event: 'test-event',
333
- writeKey: api_key,
334
- properties: {
335
- ...payload,
336
- syncMode
337
- }
338
- }
339
- });
340
- }
341
- };
342
- exports.default = action;
343
- //# sourceMappingURL=index.js.map