@segment/action-destinations 3.226.0 → 3.227.1

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 (165) hide show
  1. package/dist/destinations/apolloio/generated-types.d.ts +3 -0
  2. package/dist/destinations/{liveramp-audiences/audienceEnteredSFTP.types.js → apolloio/generated-types.js} +1 -1
  3. package/dist/destinations/apolloio/generated-types.js.map +1 -0
  4. package/dist/destinations/apolloio/index.d.ts +7 -0
  5. package/dist/destinations/apolloio/index.js +58 -0
  6. package/dist/destinations/apolloio/index.js.map +1 -0
  7. package/dist/destinations/apolloio/track/generated-types.d.ts +25 -0
  8. package/dist/destinations/apolloio/track/generated-types.js +3 -0
  9. package/dist/destinations/apolloio/track/generated-types.js.map +1 -0
  10. package/dist/destinations/apolloio/track/index.d.ts +5 -0
  11. package/dist/destinations/apolloio/track/index.js +162 -0
  12. package/dist/destinations/apolloio/track/index.js.map +1 -0
  13. package/dist/destinations/braze/identifyUser/generated-types.d.ts +1 -0
  14. package/dist/destinations/braze/identifyUser/index.js +11 -1
  15. package/dist/destinations/braze/identifyUser/index.js.map +1 -1
  16. package/dist/destinations/braze-cohorts/index.js +1 -0
  17. package/dist/destinations/braze-cohorts/index.js.map +1 -1
  18. package/dist/destinations/display-video-360/constants.d.ts +4 -0
  19. package/dist/destinations/display-video-360/constants.js +8 -0
  20. package/dist/destinations/display-video-360/constants.js.map +1 -0
  21. package/dist/destinations/display-video-360/generated-types.d.ts +3 -0
  22. package/dist/destinations/display-video-360/index.d.ts +3 -3
  23. package/dist/destinations/display-video-360/index.js +97 -0
  24. package/dist/destinations/display-video-360/index.js.map +1 -1
  25. package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.js +11 -1
  26. package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.js.map +1 -1
  27. package/dist/destinations/engage/sendgrid/sendEmail/actionDefinition.js +6 -0
  28. package/dist/destinations/engage/sendgrid/sendEmail/actionDefinition.js.map +1 -1
  29. package/dist/destinations/engage-messaging-sendgrid/sendEmail.types.d.ts +1 -0
  30. package/dist/destinations/google-enhanced-conversions/functions.d.ts +3 -1
  31. package/dist/destinations/google-enhanced-conversions/functions.js +37 -1
  32. package/dist/destinations/google-enhanced-conversions/functions.js.map +1 -1
  33. package/dist/destinations/google-enhanced-conversions/types.d.ts +12 -0
  34. package/dist/destinations/google-enhanced-conversions/uploadCallConversion/index.js +8 -2
  35. package/dist/destinations/google-enhanced-conversions/uploadCallConversion/index.js.map +1 -1
  36. package/dist/destinations/google-enhanced-conversions/uploadClickConversion/index.js +8 -2
  37. package/dist/destinations/google-enhanced-conversions/uploadClickConversion/index.js.map +1 -1
  38. package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment/index.js +10 -2
  39. package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment/index.js.map +1 -1
  40. package/dist/destinations/index.js +3 -0
  41. package/dist/destinations/index.js.map +1 -1
  42. package/dist/destinations/insider/cartViewedEvent/index.js +6 -0
  43. package/dist/destinations/insider/cartViewedEvent/index.js.map +1 -1
  44. package/dist/destinations/insider/checkoutEvent/index.js +6 -0
  45. package/dist/destinations/insider/checkoutEvent/index.js.map +1 -1
  46. package/dist/destinations/insider/insider-helpers.d.ts +32 -0
  47. package/dist/destinations/insider/insider-helpers.js +162 -1
  48. package/dist/destinations/insider/insider-helpers.js.map +1 -1
  49. package/dist/destinations/insider/orderCompletedEvent/index.js +6 -0
  50. package/dist/destinations/insider/orderCompletedEvent/index.js.map +1 -1
  51. package/dist/destinations/insider/productAddedEvent/index.js +6 -0
  52. package/dist/destinations/insider/productAddedEvent/index.js.map +1 -1
  53. package/dist/destinations/insider/productListViewedEvent/index.js +6 -0
  54. package/dist/destinations/insider/productListViewedEvent/index.js.map +1 -1
  55. package/dist/destinations/insider/productRemovedEvent/index.js +6 -0
  56. package/dist/destinations/insider/productRemovedEvent/index.js.map +1 -1
  57. package/dist/destinations/insider/productViewedEvent/index.js +6 -0
  58. package/dist/destinations/insider/productViewedEvent/index.js.map +1 -1
  59. package/dist/destinations/insider/trackEvent/index.js +6 -0
  60. package/dist/destinations/insider/trackEvent/index.js.map +1 -1
  61. package/dist/destinations/insider/updateUserProfile/index.js +6 -0
  62. package/dist/destinations/insider/updateUserProfile/index.js.map +1 -1
  63. package/dist/destinations/insider/userRegisteredEvent/index.js +6 -0
  64. package/dist/destinations/insider/userRegisteredEvent/index.js.map +1 -1
  65. package/dist/destinations/insider-audiences/insider-helpers.js +1 -2
  66. package/dist/destinations/insider-audiences/insider-helpers.js.map +1 -1
  67. package/dist/destinations/movable-ink/categoryView/generated-types.d.ts +22 -0
  68. package/dist/destinations/movable-ink/categoryView/generated-types.js +3 -0
  69. package/dist/destinations/movable-ink/categoryView/generated-types.js.map +1 -0
  70. package/dist/destinations/movable-ink/categoryView/index.d.ts +5 -0
  71. package/dist/destinations/movable-ink/categoryView/index.js +43 -0
  72. package/dist/destinations/movable-ink/categoryView/index.js.map +1 -0
  73. package/dist/destinations/movable-ink/conversion/generated-types.d.ts +20 -0
  74. package/dist/destinations/movable-ink/conversion/generated-types.js +3 -0
  75. package/dist/destinations/movable-ink/conversion/generated-types.js.map +1 -0
  76. package/dist/destinations/movable-ink/conversion/index.d.ts +5 -0
  77. package/dist/destinations/movable-ink/conversion/index.js +45 -0
  78. package/dist/destinations/movable-ink/conversion/index.js.map +1 -0
  79. package/dist/destinations/movable-ink/fields.d.ts +21 -0
  80. package/dist/destinations/movable-ink/fields.js +236 -0
  81. package/dist/destinations/movable-ink/fields.js.map +1 -0
  82. package/dist/destinations/movable-ink/generated-types.d.ts +5 -0
  83. package/dist/destinations/movable-ink/generated-types.js +3 -0
  84. package/dist/destinations/movable-ink/generated-types.js.map +1 -0
  85. package/dist/destinations/movable-ink/identify/generated-types.d.ts +7 -0
  86. package/dist/destinations/movable-ink/identify/generated-types.js +3 -0
  87. package/dist/destinations/movable-ink/identify/generated-types.js.map +1 -0
  88. package/dist/destinations/movable-ink/identify/index.d.ts +5 -0
  89. package/dist/destinations/movable-ink/identify/index.js +32 -0
  90. package/dist/destinations/movable-ink/identify/index.js.map +1 -0
  91. package/dist/destinations/movable-ink/index.d.ts +4 -0
  92. package/dist/destinations/movable-ink/index.js +70 -0
  93. package/dist/destinations/movable-ink/index.js.map +1 -0
  94. package/dist/destinations/movable-ink/productAdded/generated-types.d.ts +22 -0
  95. package/dist/destinations/movable-ink/productAdded/generated-types.js +3 -0
  96. package/dist/destinations/movable-ink/productAdded/generated-types.js.map +1 -0
  97. package/dist/destinations/movable-ink/productAdded/index.d.ts +5 -0
  98. package/dist/destinations/movable-ink/productAdded/index.js +43 -0
  99. package/dist/destinations/movable-ink/productAdded/index.js.map +1 -0
  100. package/dist/destinations/movable-ink/productViewed/generated-types.d.ts +21 -0
  101. package/dist/destinations/movable-ink/productViewed/generated-types.js +3 -0
  102. package/dist/destinations/movable-ink/productViewed/generated-types.js.map +1 -0
  103. package/dist/destinations/movable-ink/productViewed/index.d.ts +5 -0
  104. package/dist/destinations/movable-ink/productViewed/index.js +43 -0
  105. package/dist/destinations/movable-ink/productViewed/index.js.map +1 -0
  106. package/dist/destinations/movable-ink/search/generated-types.d.ts +12 -0
  107. package/dist/destinations/movable-ink/search/generated-types.js +3 -0
  108. package/dist/destinations/movable-ink/search/generated-types.js.map +1 -0
  109. package/dist/destinations/movable-ink/search/index.d.ts +5 -0
  110. package/dist/destinations/movable-ink/search/index.js +43 -0
  111. package/dist/destinations/movable-ink/search/index.js.map +1 -0
  112. package/dist/destinations/movable-ink/sendCustomEvent/generated-types.d.ts +25 -0
  113. package/dist/destinations/movable-ink/sendCustomEvent/generated-types.js +3 -0
  114. package/dist/destinations/movable-ink/sendCustomEvent/generated-types.js.map +1 -0
  115. package/dist/destinations/movable-ink/sendCustomEvent/index.d.ts +5 -0
  116. package/dist/destinations/movable-ink/sendCustomEvent/index.js +48 -0
  117. package/dist/destinations/movable-ink/sendCustomEvent/index.js.map +1 -0
  118. package/dist/destinations/movable-ink/sendEntireEvent/generated-types.d.ts +11 -0
  119. package/dist/destinations/movable-ink/sendEntireEvent/generated-types.js +3 -0
  120. package/dist/destinations/movable-ink/sendEntireEvent/generated-types.js.map +1 -0
  121. package/dist/destinations/movable-ink/sendEntireEvent/index.d.ts +5 -0
  122. package/dist/destinations/movable-ink/sendEntireEvent/index.js +79 -0
  123. package/dist/destinations/movable-ink/sendEntireEvent/index.js.map +1 -0
  124. package/dist/destinations/salesforce-marketing-cloud/sfmc-properties.js +1 -1
  125. package/dist/destinations/salesforce-marketing-cloud/sfmc-properties.js.map +1 -1
  126. package/dist/destinations/the-trade-desk-crm/functions.js +11 -3
  127. package/dist/destinations/the-trade-desk-crm/functions.js.map +1 -1
  128. package/dist/destinations/usermotion/generated-types.d.ts +3 -0
  129. package/dist/destinations/usermotion/generated-types.js +3 -0
  130. package/dist/destinations/usermotion/generated-types.js.map +1 -0
  131. package/dist/destinations/usermotion/group/generated-types.d.ts +7 -0
  132. package/dist/destinations/usermotion/group/generated-types.js +3 -0
  133. package/dist/destinations/usermotion/group/generated-types.js.map +1 -0
  134. package/dist/destinations/usermotion/group/index.d.ts +5 -0
  135. package/dist/destinations/usermotion/group/index.js +48 -0
  136. package/dist/destinations/usermotion/group/index.js.map +1 -0
  137. package/dist/destinations/usermotion/identify/generated-types.d.ts +8 -0
  138. package/dist/destinations/usermotion/identify/generated-types.js +3 -0
  139. package/dist/destinations/usermotion/identify/generated-types.js.map +1 -0
  140. package/dist/destinations/usermotion/identify/index.d.ts +5 -0
  141. package/dist/destinations/usermotion/identify/index.js +57 -0
  142. package/dist/destinations/usermotion/identify/index.js.map +1 -0
  143. package/dist/destinations/usermotion/index.d.ts +4 -0
  144. package/dist/destinations/usermotion/index.js +65 -0
  145. package/dist/destinations/usermotion/index.js.map +1 -0
  146. package/dist/destinations/usermotion/track/generated-types.d.ts +9 -0
  147. package/dist/destinations/usermotion/track/generated-types.js +3 -0
  148. package/dist/destinations/usermotion/track/generated-types.js.map +1 -0
  149. package/dist/destinations/usermotion/track/index.d.ts +5 -0
  150. package/dist/destinations/usermotion/track/index.js +72 -0
  151. package/dist/destinations/usermotion/track/index.js.map +1 -0
  152. package/dist/destinations/yahoo-audiences/index.js +25 -11
  153. package/dist/destinations/yahoo-audiences/index.js.map +1 -1
  154. package/dist/destinations/yahoo-audiences/updateSegment/generated-types.d.ts +1 -2
  155. package/dist/destinations/yahoo-audiences/updateSegment/index.js +48 -44
  156. package/dist/destinations/yahoo-audiences/updateSegment/index.js.map +1 -1
  157. package/dist/destinations/yahoo-audiences/utils-rt.d.ts +2 -0
  158. package/dist/destinations/yahoo-audiences/utils-rt.js +72 -17
  159. package/dist/destinations/yahoo-audiences/utils-rt.js.map +1 -1
  160. package/dist/destinations/yahoo-audiences/utils-tax.d.ts +2 -1
  161. package/dist/destinations/yahoo-audiences/utils-tax.js +7 -1
  162. package/dist/destinations/yahoo-audiences/utils-tax.js.map +1 -1
  163. package/package.json +8 -3
  164. package/dist/destinations/liveramp-audiences/audienceEnteredSFTP.types.d.ts +0 -16
  165. package/dist/destinations/liveramp-audiences/audienceEnteredSFTP.types.js.map +0 -1
@@ -33,6 +33,12 @@ const action = {
33
33
  method: 'post',
34
34
  json: insider_helpers_1.sendTrackEvent(data.payload, 'item_added_to_cart')
35
35
  });
36
+ },
37
+ performBatch: (request, data) => {
38
+ return request(`${insider_helpers_1.API_BASE}${insider_helpers_1.UPSERT_ENDPOINT}`, {
39
+ method: 'post',
40
+ json: insider_helpers_1.sendBulkTrackEvents(data.payload, 'item_added_to_cart')
41
+ });
36
42
  }
37
43
  };
38
44
  exports.default = action;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/insider/productAddedEvent/index.ts"],"names":[],"mappings":";;AAGA,8DAQ8B;AAC9B,wDAA8E;AAE9E,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,qBAAqB;IAC5B,WAAW,EAAE,uCAAuC;IACpD,mBAAmB,EAAE,4CAA4C;IACjE,MAAM,EAAE;QACN,mBAAmB,EAAE,EAAE,GAAG,wCAAmB,EAAE;QAC/C,0BAA0B,EAAE,EAAE,GAAG,+CAA0B,EAAE;QAC7D,IAAI,EAAE,EAAE,GAAG,yBAAI,EAAE;QACjB,oBAAoB,EAAE,EAAE,GAAG,yCAAoB,EAAE;QACjD,SAAS,EAAE,EAAE,GAAG,8BAAS,EAAE;QAC3B,UAAU,EAAE;YACV,GAAG,wCAAmB,CAAC;gBACrB,UAAU;gBACV,KAAK;gBACL,UAAU;gBACV,YAAY;gBACZ,iBAAiB;gBACjB,UAAU;gBACV,YAAY;gBACZ,MAAM;gBACN,mBAAmB;gBACnB,UAAU;aACX,CAAC;SACH;QACD,UAAU,EAAE,EAAE,GAAG,oCAAe,EAAE;KACnC;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE;QACzB,OAAO,OAAO,CAAC,GAAG,0BAAQ,GAAG,iCAAe,EAAE,EAAE;YAC9C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,gCAAc,CAAC,IAAI,CAAC,OAAO,EAAE,oBAAoB,CAAC;SACzD,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/insider/productAddedEvent/index.ts"],"names":[],"mappings":";;AAGA,8DAQ8B;AAC9B,wDAAmG;AAEnG,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,qBAAqB;IAC5B,WAAW,EAAE,uCAAuC;IACpD,mBAAmB,EAAE,4CAA4C;IACjE,MAAM,EAAE;QACN,mBAAmB,EAAE,EAAE,GAAG,wCAAmB,EAAE;QAC/C,0BAA0B,EAAE,EAAE,GAAG,+CAA0B,EAAE;QAC7D,IAAI,EAAE,EAAE,GAAG,yBAAI,EAAE;QACjB,oBAAoB,EAAE,EAAE,GAAG,yCAAoB,EAAE;QACjD,SAAS,EAAE,EAAE,GAAG,8BAAS,EAAE;QAC3B,UAAU,EAAE;YACV,GAAG,wCAAmB,CAAC;gBACrB,UAAU;gBACV,KAAK;gBACL,UAAU;gBACV,YAAY;gBACZ,iBAAiB;gBACjB,UAAU;gBACV,YAAY;gBACZ,MAAM;gBACN,mBAAmB;gBACnB,UAAU;aACX,CAAC;SACH;QACD,UAAU,EAAE,EAAE,GAAG,oCAAe,EAAE;KACnC;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE;QACzB,OAAO,OAAO,CAAC,GAAG,0BAAQ,GAAG,iCAAe,EAAE,EAAE;YAC9C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,gCAAc,CAAC,IAAI,CAAC,OAAO,EAAE,oBAAoB,CAAC;SACzD,CAAC,CAAA;IACJ,CAAC;IACD,YAAY,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE;QAC9B,OAAO,OAAO,CAAC,GAAG,0BAAQ,GAAG,iCAAe,EAAE,EAAE;YAC9C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,qCAAmB,CAAC,IAAI,CAAC,OAAO,EAAE,oBAAoB,CAAC;SAC9D,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -20,6 +20,12 @@ const action = {
20
20
  method: 'post',
21
21
  json: insider_helpers_1.sendTrackEvent(data.payload, 'listing_page_view')
22
22
  });
23
+ },
24
+ performBatch: (request, data) => {
25
+ return request(`${insider_helpers_1.API_BASE}${insider_helpers_1.UPSERT_ENDPOINT}`, {
26
+ method: 'post',
27
+ json: insider_helpers_1.sendBulkTrackEvents(data.payload, 'listing_page_view')
28
+ });
23
29
  }
24
30
  };
25
31
  exports.default = action;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/insider/productListViewedEvent/index.ts"],"names":[],"mappings":";;AAGA,8DAQ8B;AAC9B,wDAA8E;AAE9E,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,2BAA2B;IAClC,WAAW,EAAE,2CAA2C;IACxD,mBAAmB,EAAE,kDAAkD;IACvE,MAAM,EAAE;QACN,mBAAmB,EAAE,EAAE,GAAG,wCAAmB,EAAE;QAC/C,0BAA0B,EAAE,EAAE,GAAG,+CAA0B,EAAE;QAC7D,IAAI,EAAE,EAAE,GAAG,yBAAI,EAAE;QACjB,oBAAoB,EAAE,EAAE,GAAG,yCAAoB,EAAE;QACjD,SAAS,EAAE,EAAE,GAAG,8BAAS,EAAE;QAC3B,UAAU,EAAE,EAAE,GAAG,wCAAmB,CAAC,CAAC,UAAU,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC,EAAE;QACvE,UAAU,EAAE,EAAE,GAAG,oCAAe,EAAE;KACnC;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE;QACzB,OAAO,OAAO,CAAC,GAAG,0BAAQ,GAAG,iCAAe,EAAE,EAAE;YAC9C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,gCAAc,CAAC,IAAI,CAAC,OAAO,EAAE,mBAAmB,CAAC;SACxD,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/insider/productListViewedEvent/index.ts"],"names":[],"mappings":";;AAGA,8DAQ8B;AAC9B,wDAAmG;AAEnG,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,2BAA2B;IAClC,WAAW,EAAE,2CAA2C;IACxD,mBAAmB,EAAE,kDAAkD;IACvE,MAAM,EAAE;QACN,mBAAmB,EAAE,EAAE,GAAG,wCAAmB,EAAE;QAC/C,0BAA0B,EAAE,EAAE,GAAG,+CAA0B,EAAE;QAC7D,IAAI,EAAE,EAAE,GAAG,yBAAI,EAAE;QACjB,oBAAoB,EAAE,EAAE,GAAG,yCAAoB,EAAE;QACjD,SAAS,EAAE,EAAE,GAAG,8BAAS,EAAE;QAC3B,UAAU,EAAE,EAAE,GAAG,wCAAmB,CAAC,CAAC,UAAU,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC,EAAE;QACvE,UAAU,EAAE,EAAE,GAAG,oCAAe,EAAE;KACnC;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE;QACzB,OAAO,OAAO,CAAC,GAAG,0BAAQ,GAAG,iCAAe,EAAE,EAAE;YAC9C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,gCAAc,CAAC,IAAI,CAAC,OAAO,EAAE,mBAAmB,CAAC;SACxD,CAAC,CAAA;IACJ,CAAC;IACD,YAAY,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE;QAC9B,OAAO,OAAO,CAAC,GAAG,0BAAQ,GAAG,iCAAe,EAAE,EAAE;YAC9C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,qCAAmB,CAAC,IAAI,CAAC,OAAO,EAAE,mBAAmB,CAAC;SAC7D,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -33,6 +33,12 @@ const action = {
33
33
  method: 'post',
34
34
  json: insider_helpers_1.sendTrackEvent(data.payload, 'item_removed_from_cart')
35
35
  });
36
+ },
37
+ performBatch: (request, data) => {
38
+ return request(`${insider_helpers_1.API_BASE}${insider_helpers_1.UPSERT_ENDPOINT}`, {
39
+ method: 'post',
40
+ json: insider_helpers_1.sendBulkTrackEvents(data.payload, 'item_removed_from_cart')
41
+ });
36
42
  }
37
43
  };
38
44
  exports.default = action;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/insider/productRemovedEvent/index.ts"],"names":[],"mappings":";;AAGA,8DAQ8B;AAC9B,wDAA8E;AAE9E,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,uBAAuB;IAC9B,WAAW,EAAE,yCAAyC;IACtD,mBAAmB,EAAE,8CAA8C;IACnE,MAAM,EAAE;QACN,mBAAmB,EAAE,EAAE,GAAG,wCAAmB,EAAE;QAC/C,0BAA0B,EAAE,EAAE,GAAG,+CAA0B,EAAE;QAC7D,IAAI,EAAE,EAAE,GAAG,yBAAI,EAAE;QACjB,oBAAoB,EAAE,EAAE,GAAG,yCAAoB,EAAE;QACjD,SAAS,EAAE,EAAE,GAAG,8BAAS,EAAE;QAC3B,UAAU,EAAE;YACV,GAAG,wCAAmB,CAAC;gBACrB,UAAU;gBACV,KAAK;gBACL,UAAU;gBACV,YAAY;gBACZ,iBAAiB;gBACjB,UAAU;gBACV,YAAY;gBACZ,MAAM;gBACN,mBAAmB;gBACnB,UAAU;aACX,CAAC;SACH;QACD,UAAU,EAAE,EAAE,GAAG,oCAAe,EAAE;KACnC;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE;QACzB,OAAO,OAAO,CAAC,GAAG,0BAAQ,GAAG,iCAAe,EAAE,EAAE;YAC9C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,gCAAc,CAAC,IAAI,CAAC,OAAO,EAAE,wBAAwB,CAAC;SAC7D,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/insider/productRemovedEvent/index.ts"],"names":[],"mappings":";;AAGA,8DAQ8B;AAC9B,wDAAmG;AAEnG,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,uBAAuB;IAC9B,WAAW,EAAE,yCAAyC;IACtD,mBAAmB,EAAE,8CAA8C;IACnE,MAAM,EAAE;QACN,mBAAmB,EAAE,EAAE,GAAG,wCAAmB,EAAE;QAC/C,0BAA0B,EAAE,EAAE,GAAG,+CAA0B,EAAE;QAC7D,IAAI,EAAE,EAAE,GAAG,yBAAI,EAAE;QACjB,oBAAoB,EAAE,EAAE,GAAG,yCAAoB,EAAE;QACjD,SAAS,EAAE,EAAE,GAAG,8BAAS,EAAE;QAC3B,UAAU,EAAE;YACV,GAAG,wCAAmB,CAAC;gBACrB,UAAU;gBACV,KAAK;gBACL,UAAU;gBACV,YAAY;gBACZ,iBAAiB;gBACjB,UAAU;gBACV,YAAY;gBACZ,MAAM;gBACN,mBAAmB;gBACnB,UAAU;aACX,CAAC;SACH;QACD,UAAU,EAAE,EAAE,GAAG,oCAAe,EAAE;KACnC;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE;QACzB,OAAO,OAAO,CAAC,GAAG,0BAAQ,GAAG,iCAAe,EAAE,EAAE;YAC9C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,gCAAc,CAAC,IAAI,CAAC,OAAO,EAAE,wBAAwB,CAAC;SAC7D,CAAC,CAAA;IACJ,CAAC;IACD,YAAY,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE;QAC9B,OAAO,OAAO,CAAC,GAAG,0BAAQ,GAAG,iCAAe,EAAE,EAAE;YAC9C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,qCAAmB,CAAC,IAAI,CAAC,OAAO,EAAE,wBAAwB,CAAC;SAClE,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -33,6 +33,12 @@ const action = {
33
33
  method: 'post',
34
34
  json: insider_helpers_1.sendTrackEvent(data.payload, 'product_detail_page_view')
35
35
  });
36
+ },
37
+ performBatch: (request, data) => {
38
+ return request(`${insider_helpers_1.API_BASE}${insider_helpers_1.UPSERT_ENDPOINT}`, {
39
+ method: 'post',
40
+ json: insider_helpers_1.sendBulkTrackEvents(data.payload, 'product_detail_page_view')
41
+ });
36
42
  }
37
43
  };
38
44
  exports.default = action;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/insider/productViewedEvent/index.ts"],"names":[],"mappings":";;AAGA,8DAQ8B;AAC9B,wDAA8E;AAE9E,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,sBAAsB;IAC7B,WAAW,EAAE,sCAAsC;IACnD,mBAAmB,EAAE,6CAA6C;IAClE,MAAM,EAAE;QACN,mBAAmB,EAAE,EAAE,GAAG,wCAAmB,EAAE;QAC/C,0BAA0B,EAAE,EAAE,GAAG,+CAA0B,EAAE;QAC7D,IAAI,EAAE,EAAE,GAAG,yBAAI,EAAE;QACjB,oBAAoB,EAAE,EAAE,GAAG,yCAAoB,EAAE;QACjD,SAAS,EAAE,EAAE,GAAG,8BAAS,EAAE;QAC3B,UAAU,EAAE;YACV,GAAG,wCAAmB,CAAC;gBACrB,UAAU;gBACV,KAAK;gBACL,UAAU;gBACV,YAAY;gBACZ,iBAAiB;gBACjB,UAAU;gBACV,YAAY;gBACZ,MAAM;gBACN,mBAAmB;gBACnB,UAAU;aACX,CAAC;SACH;QACD,UAAU,EAAE,EAAE,GAAG,oCAAe,EAAE;KACnC;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE;QACzB,OAAO,OAAO,CAAC,GAAG,0BAAQ,GAAG,iCAAe,EAAE,EAAE;YAC9C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,gCAAc,CAAC,IAAI,CAAC,OAAO,EAAE,0BAA0B,CAAC;SAC/D,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/insider/productViewedEvent/index.ts"],"names":[],"mappings":";;AAGA,8DAQ8B;AAC9B,wDAAmG;AAEnG,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,sBAAsB;IAC7B,WAAW,EAAE,sCAAsC;IACnD,mBAAmB,EAAE,6CAA6C;IAClE,MAAM,EAAE;QACN,mBAAmB,EAAE,EAAE,GAAG,wCAAmB,EAAE;QAC/C,0BAA0B,EAAE,EAAE,GAAG,+CAA0B,EAAE;QAC7D,IAAI,EAAE,EAAE,GAAG,yBAAI,EAAE;QACjB,oBAAoB,EAAE,EAAE,GAAG,yCAAoB,EAAE;QACjD,SAAS,EAAE,EAAE,GAAG,8BAAS,EAAE;QAC3B,UAAU,EAAE;YACV,GAAG,wCAAmB,CAAC;gBACrB,UAAU;gBACV,KAAK;gBACL,UAAU;gBACV,YAAY;gBACZ,iBAAiB;gBACjB,UAAU;gBACV,YAAY;gBACZ,MAAM;gBACN,mBAAmB;gBACnB,UAAU;aACX,CAAC;SACH;QACD,UAAU,EAAE,EAAE,GAAG,oCAAe,EAAE;KACnC;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE;QACzB,OAAO,OAAO,CAAC,GAAG,0BAAQ,GAAG,iCAAe,EAAE,EAAE;YAC9C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,gCAAc,CAAC,IAAI,CAAC,OAAO,EAAE,0BAA0B,CAAC;SAC/D,CAAC,CAAA;IACJ,CAAC;IACD,YAAY,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE;QAC9B,OAAO,OAAO,CAAC,GAAG,0BAAQ,GAAG,iCAAe,EAAE,EAAE;YAC9C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,qCAAmB,CAAC,IAAI,CAAC,OAAO,EAAE,0BAA0B,CAAC;SACpE,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -22,6 +22,12 @@ const action = {
22
22
  method: 'post',
23
23
  json: insider_helpers_1.sendTrackEvent(data.payload, data.payload.event_name.toString().toLowerCase().trim().split(' ').join('_').toString())
24
24
  });
25
+ },
26
+ performBatch: (request, data) => {
27
+ return request(`${insider_helpers_1.API_BASE}${insider_helpers_1.UPSERT_ENDPOINT}`, {
28
+ method: 'post',
29
+ json: insider_helpers_1.sendBulkTrackEvents(data.payload)
30
+ });
25
31
  }
26
32
  };
27
33
  exports.default = action;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/insider/trackEvent/index.ts"],"names":[],"mappings":";;AAGA,wDAA8E;AAC9E,8DAU8B;AAE9B,M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EAAE,EAAE,GAAG,wCAAmB,EAAE;QAC/C,0BAA0B,EAAE,EAAE,GAAG,+CAA0B,EAAE;QAC7D,IAAI,EAAE,EAAE,GAAG,yBAAI,EAAE;QACjB,oBAAoB,EAAE,EAAE,GAAG,yCAAoB,EAAE;QACjD,UAAU,EAAE,EAAE,GAAG,+BAAU,EAAE;QAC7B,SAAS,EAAE,EAAE,GAAG,8BAAS,EAAE;QAC3B,UAAU,EAAE,EAAE,GAAG,wCAAmB,CAAC,EAAE,CAAC,EAAE;QAC1C,QAAQ,EAAE,EAAE,GAAG,6BAAQ,EAAE;QACzB,UAAU,EAAE,EAAE,GAAG,oCAAe,EAAE;KACnC;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE;QACzB,OAAO,OAAO,CAAC,GAAG,0BAAQ,GAAG,iCAAe,EAAE,EAAE;YAC9C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,gCAAc,CAClB,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,CACxF;SACF,CAAC,CAAA;IACJ,CAAC;IACD,YAAY,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE;QAC9B,OAAO,OAAO,CAAC,GAAG,0BAAQ,GAAG,iCAAe,EAAE,EAAE;YAC9C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,qCAAmB,CAAC,IAAI,CAAC,OAAO,CAAC;SACxC,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -146,6 +146,12 @@ const action = {
146
146
  method: 'post',
147
147
  json: insider_helpers_1.userProfilePayload(data.payload)
148
148
  });
149
+ },
150
+ performBatch: (request, { payload }) => {
151
+ return request(`${insider_helpers_1.API_BASE}${insider_helpers_1.UPSERT_ENDPOINT}`, {
152
+ method: 'post',
153
+ json: insider_helpers_1.bulkUserProfilePayload(payload)
154
+ });
149
155
  }
150
156
  };
151
157
  exports.default = action;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/insider/updateUserProfile/index.ts"],"names":[],"mappings":";;AAGA,wDAAkF;AAElF,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,iCAAiC;IACxC,WAAW,EAAE,4DAA4D;IACzE,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE;QACN,mBAAmB,EAAE;YACnB,KAAK,EAAE,2BAA2B;YAClC,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,uDAAuD;YACpE,OAAO,EAAE,IAAI;SACd;QACD,0BAA0B,EAAE;YAC1B,KAAK,EAAE,kCAAkC;YACzC,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,6DAA6D;YAC1E,OAAO,EAAE,IAAI;SACd;QACD,GAAG,EAAE;YACH,KAAK,EAAE,KAAK;YACZ,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,gBAAgB;YAC7B,OAAO,EAAE;gBACP,OAAO,EAAE,cAAc;aACxB;SACF;QACD,QAAQ,EAAE;YACR,KAAK,EAAE,UAAU;YACjB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,iBAAiB;YAC9B,OAAO,EAAE;gBACP,OAAO,EAAE,mBAAmB;aAC7B;SACF;QACD,KAAK,EAAE;YACL,KAAK,EAAE,OAAO;YACd,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,0BAA0B;YACvC,OAAO,EAAE;gBACP,OAAO,EAAE,gBAAgB;aAC1B;SACF;QACD,SAAS,EAAE;YACT,KAAK,EAAE,YAAY;YACnB,WAAW,EAAE,uBAAuB;YACpC,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,qBAAqB;aAC/B;SACF;QACD,MAAM,EAAE;YACN,KAAK,EAAE,QAAQ;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YACR,KAAK,EAAE,YAAY;YACnB,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,SAAS;YAClB,WAAW,EAAE,aAAa;SAC3B;QACD,aAAa,EAAE;YACb,KAAK,EAAE,iBAAiB;YACxB,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,SAAS;YAClB,WAAW,EAAE,kBAAkB;SAChC;QACD,QAAQ,EAAE;YACR,KAAK,EAAE,UAAU;YACjB,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,QAAQ;SACf;QACD,MAAM,EAAE;YACN,KAAK,EAAE,kBAAkB;YACzB,WAAW,EAAE,oCAAoC;YACjD,IAAI,EAAE,QAAQ;SACf;KACF;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE;QACzB,OAAO,OAAO,CAAC,GAAG,0BAAQ,GAAG,iCAAe,EAAE,EAAE;YAC9C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,oCAAkB,CAAC,IAAI,CAAC,OAAO,CAAC;SACvC,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/insider/updateUserProfile/index.ts"],"names":[],"mappings":";;AAGA,wDAA0G;AAE1G,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,iCAAiC;IACxC,WAAW,EAAE,4DAA4D;IACzE,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE;QACN,mBAAmB,EAAE;YACnB,KAAK,EAAE,2BAA2B;YAClC,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,uDAAuD;YACpE,OAAO,EAAE,IAAI;SACd;QACD,0BAA0B,EAAE;YAC1B,KAAK,EAAE,kCAAkC;YACzC,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,6DAA6D;YAC1E,OAAO,EAAE,IAAI;SACd;QACD,GAAG,EAAE;YACH,KAAK,EAAE,KAAK;YACZ,IAAI,EAAE,QAAQ;YAC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C,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QACrC,OAAO,OAAO,CAAC,GAAG,0BAAQ,GAAG,iCAAe,EAAE,EAAE;YAC9C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,wCAAsB,CAAC,OAAO,CAAC;SACtC,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -19,6 +19,12 @@ const action = {
19
19
  method: 'post',
20
20
  json: insider_helpers_1.sendTrackEvent(data.payload, 'sign_up_confirmation')
21
21
  });
22
+ },
23
+ performBatch: (request, data) => {
24
+ return request(`${insider_helpers_1.API_BASE}${insider_helpers_1.UPSERT_ENDPOINT}`, {
25
+ method: 'post',
26
+ json: insider_helpers_1.sendBulkTrackEvents(data.payload, 'sign_up_confirmation')
27
+ });
22
28
  }
23
29
  };
24
30
  exports.default = action;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/insider/userRegisteredEvent/index.ts"],"names":[],"mappings":";;AAGA,8DAO8B;AAC9B,wDAA8E;AAE9E,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,uBAAuB;IAC9B,WAAW,EAAE,yCAAyC;IACtD,mBAAmB,EAAE,8CAA8C;IACnE,MAAM,EAAE;QACN,mBAAmB,EAAE,EAAE,GAAG,wCAAmB,EAAE;QAC/C,0BAA0B,EAAE,EAAE,GAAG,+CAA0B,EAAE;QAC7D,IAAI,EAAE,EAAE,GAAG,yBAAI,EAAE;QACjB,oBAAoB,EAAE,EAAE,GAAG,yCAAoB,EAAE;QACjD,SAAS,EAAE,EAAE,GAAG,8BAAS,EAAE;QAC3B,UAAU,EAAE,EAAE,GAAG,oCAAe,EAAE;KACnC;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE;QACzB,OAAO,OAAO,CAAC,GAAG,0BAAQ,GAAG,iCAAe,EAAE,EAAE;YAC9C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,gCAAc,CAAC,IAAI,CAAC,OAAO,EAAE,sBAAsB,CAAC;SAC3D,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/insider/userRegisteredEvent/index.ts"],"names":[],"mappings":";;AAGA,8DAO8B;AAC9B,wDAAmG;AAEnG,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,uBAAuB;IAC9B,WAAW,EAAE,yCAAyC;IACtD,mBAAmB,EAAE,8CAA8C;IACnE,MAAM,EAAE;QACN,mBAAmB,EAAE,EAAE,GAAG,wCAAmB,EAAE;QAC/C,0BAA0B,EAAE,EAAE,GAAG,+CAA0B,EAAE;QAC7D,IAAI,EAAE,EAAE,GAAG,yBAAI,EAAE;QACjB,oBAAoB,EAAE,EAAE,GAAG,yCAAoB,EAAE;QACjD,SAAS,EAAE,EAAE,GAAG,8BAAS,EAAE;QAC3B,UAAU,EAAE,EAAE,GAAG,oCAAe,EAAE;KACnC;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE;QACzB,OAAO,OAAO,CAAC,GAAG,0BAAQ,GAAG,iCAAe,EAAE,EAAE;YAC9C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,gCAAc,CAAC,IAAI,CAAC,OAAO,EAAE,sBAAsB,CAAC;SAC3D,CAAC,CAAA;IACJ,CAAC;IACD,YAAY,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE;QAC9B,OAAO,OAAO,CAAC,GAAG,0BAAQ,GAAG,iCAAe,EAAE,EAAE;YAC9C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,qCAAmB,CAAC,IAAI,CAAC,OAAO,EAAE,sBAAsB,CAAC;SAChE,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -119,12 +119,11 @@ const getIdentifiers = function (data) {
119
119
  };
120
120
  const getAttributes = function (data) {
121
121
  const computationKey = data.custom_audience_name;
122
- const attributes = {
122
+ return {
123
123
  custom: {
124
124
  segment_audience_name: [computationKey]
125
125
  }
126
126
  };
127
- return attributes;
128
127
  };
129
128
  const getTraitAttributes = function (data) {
130
129
  const computationKey = 'segment_io_' + data.custom_audience_name;
@@ -1 +1 @@
1
- {"version":3,"file":"insider-helpers.js","sourceRoot":"","sources":["../../../src/destinations/insider-audiences/insider-helpers.ts"],"names":[],"mappings":";;;AAGa,QAAA,QAAQ,GAAG,yCAAyC,CAAA;AACpD,QAAA,eAAe,GAAG,gBAAgB,CAAA;AAClC,QAAA,yBAAyB,GAAG,0BAA0B,CAAA;AACnE,MAAM,aAAa,GAAG,UAAU,CAAA;AAChC,MAAM,QAAQ,GAAG,UAAU,CAAA;AAC3B,MAAM,KAAK,GAAG,OAAO,CAAA;AACrB,MAAM,mBAAmB,GAAG,OAAO,CAAA;AAEnC,MAAM,sBAAuB,SAAQ,KAAK;IACxC,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAA;QACd,IAAI,CAAC,IAAI,GAAG,wBAAwB,CAAA;IACtC,CAAC;CACF;AAGD,MAAM,oCAAoC,GAAG,UAC3C,IAAa,EACb,OAA+G;IAE/G,MAAM,WAAW,GAAG,cAAc,CAAC,IAAI,CAAC,CAAA;IACxC,MAAM,UAAU,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAA;IAE3C,MAAM,OAAO,GAAG;QACd,KAAK,EAAE;YACL;gBACE,WAAW;gBACX,UAAU;aACX;SACF;KACF,CAAA;IAED,OAAO,OAAO,CAAC,gBAAQ,GAAG,uBAAe,EAAE;QACzC,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,OAAO;KACd,CAAC,CAAA;AACJ,CAAC,CAAA;AAGD,MAAM,iCAAiC,GAAG,UACxC,IAAa,EACb,OAA+G;IAE/G,MAAM,WAAW,GAAG,cAAc,CAAC,IAAI,CAAC,CAAA;IACxC,MAAM,MAAM,GAAG,SAAS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CAAC,IAAI,EAAE,EAAE;QACpC,IAAI,IAAI,CAAC,0BAA0B,KAAK,aAAa,EAAE;YACrD,OAAO,kBAAkB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;SACzC;QAED,IAAI,IAAI,CAAC,0BAA0B,KAAK,mBAAmB,EAAE;YAC3D,OAAO,qBAAqB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;SAC5C;QAED,MAAM,IAAI,sBAAsB,CAAC,2EAA2E,CAAC,CAAA;IAC/G,CAAC,CAAC,CAAA;IAEF,OAAO,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAA;AAC9B,CAAC,CAAA;AAjBY,QAAA,cAAc,kBAiB1B"}
1
+ {"version":3,"file":"insider-helpers.js","sourceRoot":"","sources":["../../../src/destinations/insider-audiences/insider-helpers.ts"],"names":[],"mappings":";;;AAGa,QAAA,QAAQ,GAAG,yCAAyC,CAAA;AACpD,QAAA,eAAe,GAAG,gBAAgB,CAAA;AAClC,QAAA,yBAAyB,GAAG,0BAA0B,CAAA;AACnE,MAAM,aAAa,GAAG,UAAU,CAAA;AAChC,MAAM,QAAQ,GAAG,UAAU,CAAA;AAC3B,MAAM,KAAK,GAAG,OAAO,CAAA;AACrB,MAAM,mBAAmB,GAAG,OAAO,CAAA;AAEnC,MAAM,sBAAuB,SAAQ,KAAK;IACxC,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAA;QACd,IAAI,CAAC,IAAI,GAAG,wBAAwB,CAAA;IACtC,CAAC;CACF;AAGD,MAAM,oCAAoC,GAAG,UAC3C,IAAa,EACb,OAA+G;IAE/G,MAAM,WAAW,GAAG,cAAc,CAAC,IAAI,CAAC,CAAA;IACxC,MAAM,UAAU,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAA;IAE3C,MAAM,OAAO,GAAG;QACd,KAAK,EAAE;YACL;gBACE,WAAW;gBACX,UAAU;aACX;SACF;KACF,CAAA;IAED,OAAO,OAAO,CAAC,gBAAQ,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AO,CAAC,CAAA;KACxD;IAED,MAAM,IAAI,sBAAsB,CAAC,+CAA+C,CAAC,CAAA;AACnF,CAAC,CAAA;AAGM,MAAM,cAAc,GAAG,KAAK,WACjC,OAA+G,EAC/G,OAAkB;IAElB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACpC,IAAI,IAAI,CAAC,0BAA0B,KAAK,aAAa,EAAE;YACrD,OAAO,kBAAkB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;SACzC;QAED,IAAI,IAAI,CAAC,0BAA0B,KAAK,mBAAmB,EAAE;YAC3D,OAAO,qBAAqB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;SAC5C;QAED,MAAM,IAAI,sBAAsB,CAAC,2EAA2E,CAAC,CAAA;IAC/G,CAAC,CAAC,CAAA;IAEF,OAAO,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAA;AAC9B,CAAC,CAAA;AAjBY,QAAA,cAAc,kBAiB1B"}
@@ -0,0 +1,22 @@
1
+ export interface Payload {
2
+ movable_ink_url?: string;
3
+ user_id?: string;
4
+ anonymous_id?: string;
5
+ timestamp: string | number;
6
+ timezone?: string;
7
+ products_required_false?: {
8
+ id: string;
9
+ title?: string;
10
+ price?: number;
11
+ url?: string;
12
+ quantity?: number;
13
+ [k: string]: unknown;
14
+ }[];
15
+ categories: {
16
+ id: string;
17
+ url?: string;
18
+ }[];
19
+ meta?: {
20
+ [k: string]: unknown;
21
+ };
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/movable-ink/categoryView/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,43 @@
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 actions_core_1 = require("@segment/actions-core");
7
+ const fields_1 = require("../fields");
8
+ const omit_1 = __importDefault(require("lodash/omit"));
9
+ const action = {
10
+ title: 'Category View',
11
+ description: 'Send a "Category View" event to Movable Ink',
12
+ defaultSubscription: 'type = "track" and event = "Category Viewed"',
13
+ fields: {
14
+ movable_ink_url: fields_1.movable_ink_url,
15
+ user_id: fields_1.user_id,
16
+ anonymous_id: fields_1.anonymous_id,
17
+ timestamp: fields_1.timestamp,
18
+ timezone: fields_1.timezone,
19
+ products_required_false: fields_1.products_required_false,
20
+ categories: fields_1.categories,
21
+ meta: fields_1.meta
22
+ },
23
+ perform: (request, { settings, payload }) => {
24
+ const url = payload?.movable_ink_url ?? settings?.movable_ink_url;
25
+ if (!url)
26
+ throw new actions_core_1.IntegrationError('"Movable Ink URL" setting or "Movable Ink URL" field must be populated', 'MISSING_DESTINATION_URL', 400);
27
+ return request(url, {
28
+ method: 'POST',
29
+ json: {
30
+ event_name: 'Category View',
31
+ user_id: payload.user_id,
32
+ anonymous_id: payload.anonymous_id,
33
+ timestamp: payload.timestamp,
34
+ timezone: payload.timezone,
35
+ product: payload.products_required_false,
36
+ categories: payload.categories,
37
+ metadata: { ...omit_1.default(payload.meta, ['products_required_false', 'categories']) }
38
+ }
39
+ });
40
+ }
41
+ };
42
+ exports.default = action;
43
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/movable-ink/categoryView/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAA0E;AAG1E,sCASkB;AAClB,uDAA8B;AAE9B,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,eAAe;IACtB,WAAW,EAAE,6CAA6C;IAC1D,mBAAmB,EAAE,8CAA8C;IACnE,MAAM,EAAE;QACN,eAAe,EAAf,wBAAe;QACf,OAAO,EAAP,gBAAO;QACP,YAAY,EAAZ,qBAAY;QACZ,SAAS,EAAT,kBAAS;QACT,QAAQ,EAAR,iBAAQ;QACR,uBAAuB,EAAvB,gCAAuB;QACvB,UAAU,EAAV,mBAAU;QACV,IAAI,EAAJ,aAAI;KACL;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;QAC1C,MAAM,GAAG,GAAG,OAAO,EAAE,eAAe,IAAI,QAAQ,EAAE,eAAe,CAAA;QACjE,IAAI,CAAC,GAAG;YACN,MAAM,IAAI,+BAAgB,CACxB,wEAAwE,EACxE,yBAAyB,EACzB,GAAG,CACJ,CAAA;QAEH,OAAO,OAAO,CAAC,GAAG,EAAE;YAClB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE;gBACJ,UAAU,EAAE,eAAe;gBAC3B,OAAO,EAAE,OAAO,CAAC,OAAO;gBACxB,YAAY,EAAE,OAAO,CAAC,YAAY;gBAClC,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,QAAQ,EAAE,OAAO,CAAC,QAAQ;gBAC1B,OAAO,EAAE,OAAO,CAAC,uBAAuB;gBACxC,UAAU,EAAE,OAAO,CAAC,UAAU;gBAC9B,QAAQ,EAAE,EAAE,GAAG,cAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,yBAAyB,EAAE,YAAY,CAAC,CAAC,EAAE;aAC/E;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -0,0 +1,20 @@
1
+ export interface Payload {
2
+ movable_ink_url?: string;
3
+ user_id?: string;
4
+ anonymous_id?: string;
5
+ timestamp: string | number;
6
+ timezone?: string;
7
+ products: {
8
+ id: string;
9
+ title?: string;
10
+ price?: number;
11
+ url?: string;
12
+ quantity?: number;
13
+ [k: string]: unknown;
14
+ }[];
15
+ order_id: string;
16
+ revenue: number;
17
+ meta?: {
18
+ [k: string]: unknown;
19
+ };
20
+ }
@@ -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/movable-ink/conversion/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,45 @@
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 actions_core_1 = require("@segment/actions-core");
7
+ const fields_1 = require("../fields");
8
+ const omit_1 = __importDefault(require("lodash/omit"));
9
+ const action = {
10
+ title: 'Conversion',
11
+ description: 'Send a Conversion event Movable Ink',
12
+ defaultSubscription: 'type = "track" and event = "Order Completed"',
13
+ fields: {
14
+ movable_ink_url: fields_1.movable_ink_url,
15
+ user_id: fields_1.user_id,
16
+ anonymous_id: fields_1.anonymous_id,
17
+ timestamp: fields_1.timestamp,
18
+ timezone: fields_1.timezone,
19
+ products: fields_1.products,
20
+ order_id: fields_1.order_id,
21
+ revenue: fields_1.revenue,
22
+ meta: fields_1.meta
23
+ },
24
+ perform: (request, { settings, payload }) => {
25
+ const url = payload?.movable_ink_url ?? settings?.movable_ink_url;
26
+ if (!url)
27
+ throw new actions_core_1.IntegrationError('"Movable Ink URL" setting or "Movable Ink URL" field must be populated', 'MISSING_DESTINATION_URL', 400);
28
+ return request(url, {
29
+ method: 'POST',
30
+ json: {
31
+ event_name: 'Conversion',
32
+ user_id: payload.user_id,
33
+ anonymous_id: payload.anonymous_id,
34
+ timestamp: payload.timestamp,
35
+ timezone: payload.timezone,
36
+ products: payload.products,
37
+ order_id: payload.order_id,
38
+ revenue: payload.revenue,
39
+ metadata: { ...omit_1.default(payload.meta, ['products', 'order_id', 'revenue']) }
40
+ }
41
+ });
42
+ }
43
+ };
44
+ exports.default = action;
45
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/movable-ink/conversion/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAA0E;AAG1E,sCAUkB;AAClB,uDAA8B;AAE9B,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,YAAY;IACnB,WAAW,EAAE,qCAAqC;IAClD,mBAAmB,EAAE,8CAA8C;IACnE,MAAM,EAAE;QACN,eAAe,EAAf,wBAAe;QACf,OAAO,EAAP,gBAAO;QACP,YAAY,EAAZ,qBAAY;QACZ,SAAS,EAAT,kBAAS;QACT,QAAQ,EAAR,iBAAQ;QACR,QAAQ,EAAR,iBAAQ;QACR,QAAQ,EAAR,iBAAQ;QACR,OAAO,EAAP,gBAAO;QACP,IAAI,EAAJ,aAAI;KACL;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;QAC1C,MAAM,GAAG,GAAG,OAAO,EAAE,eAAe,IAAI,QAAQ,EAAE,eAAe,CAAA;QACjE,IAAI,CAAC,GAAG;YACN,MAAM,IAAI,+BAAgB,CACxB,wEAAwE,EACxE,yBAAyB,EACzB,GAAG,CACJ,CAAA;QAEH,OAAO,OAAO,CAAC,GAAG,EAAE;YAClB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE;gBACJ,UAAU,EAAE,YAAY;gBACxB,OAAO,EAAE,OAAO,CAAC,OAAO;gBACxB,YAAY,EAAE,OAAO,CAAC,YAAY;gBAClC,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,QAAQ,EAAE,OAAO,CAAC,QAAQ;gBAC1B,QAAQ,EAAE,OAAO,CAAC,QAAQ;gBAC1B,QAAQ,EAAE,OAAO,CAAC,QAAQ;gBAC1B,OAAO,EAAE,OAAO,CAAC,OAAO;gBACxB,QAAQ,EAAE,EAAE,GAAG,cAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC,EAAE;aACzE;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -0,0 +1,21 @@
1
+ import { InputField } from '@segment/actions-core/destination-kit/types';
2
+ export declare const movable_ink_url: InputField;
3
+ export declare const timestamp: InputField;
4
+ export declare const timezone: InputField;
5
+ export declare const event_name: InputField;
6
+ export declare const user_id: InputField;
7
+ export declare const anonymous_id: InputField;
8
+ export declare const meta: InputField;
9
+ export declare const query_url: InputField;
10
+ export declare const revenue: InputField;
11
+ export declare const revenue_required_false: InputField;
12
+ export declare const query: InputField;
13
+ export declare const order_id: InputField;
14
+ export declare const order_id_required_false: InputField;
15
+ export declare const product_quantity: InputField;
16
+ export declare const product: InputField;
17
+ export declare const product_with_quantity: InputField;
18
+ export declare const products: InputField;
19
+ export declare const products_required_false: InputField;
20
+ export declare const categories: InputField;
21
+ export declare const categories_required_false: InputField;
@@ -0,0 +1,236 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.categories_required_false = exports.categories = exports.products_required_false = exports.products = exports.product_with_quantity = exports.product = exports.product_quantity = exports.order_id_required_false = exports.order_id = exports.query = exports.revenue_required_false = exports.revenue = exports.query_url = exports.meta = exports.anonymous_id = exports.user_id = exports.event_name = exports.timezone = exports.timestamp = exports.movable_ink_url = void 0;
4
+ exports.movable_ink_url = {
5
+ label: 'Movable Ink URL',
6
+ description: 'The Movable Ink URL to send data to. This field overrides the "Movable Ink URL" setting.',
7
+ type: 'string',
8
+ required: false,
9
+ format: 'uri'
10
+ };
11
+ exports.timestamp = {
12
+ label: 'timestamp',
13
+ description: "Timestamp for the event. Must be in ISO 8601 format. For example '2023-09-18T11:45:59.533Z'. Segment will convert to Unix time before sending to Movable Ink.",
14
+ type: 'datetime',
15
+ required: true,
16
+ default: { '@path': '$.timestamp' }
17
+ };
18
+ exports.timezone = {
19
+ label: 'Timezone',
20
+ description: 'The timezone of where the event took place (TZ database name in the IANA Time Zone Database)',
21
+ type: 'string',
22
+ required: false,
23
+ default: {
24
+ '@if': {
25
+ exists: { '@path': '$.context.timezone' },
26
+ then: { '@path': '$.context.timezone' },
27
+ else: { '@path': '$.properties.timezone' }
28
+ }
29
+ }
30
+ };
31
+ exports.event_name = {
32
+ label: 'Event Name',
33
+ description: 'The name of the event to send',
34
+ type: 'string',
35
+ required: true,
36
+ default: { '@path': '$.event' }
37
+ };
38
+ exports.user_id = {
39
+ label: 'User ID',
40
+ description: 'The unique identifier of the profile that triggered this event.',
41
+ type: 'string',
42
+ required: false,
43
+ default: { '@path': '$.userId' }
44
+ };
45
+ exports.anonymous_id = {
46
+ label: 'Anonymous ID',
47
+ description: 'A unique identifier of the anonymous profile that triggered this event.',
48
+ type: 'string',
49
+ required: false,
50
+ default: { '@path': '$.anonymousId' }
51
+ };
52
+ exports.meta = {
53
+ label: 'Metadata',
54
+ description: 'A map of meta data to provide additional context about the event.',
55
+ type: 'object',
56
+ defaultObjectUI: 'keyvalue',
57
+ additionalProperties: true,
58
+ required: false,
59
+ default: { '@path': '$.properties' }
60
+ };
61
+ exports.query_url = {
62
+ label: 'Query URL',
63
+ description: 'The URL of a query the user searched with',
64
+ type: 'string',
65
+ required: false,
66
+ default: { '@path': '$.properties.url' }
67
+ };
68
+ exports.revenue = {
69
+ label: 'Revenue',
70
+ description: 'The revenue generated by the purchase',
71
+ type: 'number',
72
+ required: true,
73
+ default: { '@path': '$.properties.revenue' }
74
+ };
75
+ exports.revenue_required_false = {
76
+ ...exports.revenue,
77
+ required: false
78
+ };
79
+ exports.query = {
80
+ label: 'Query',
81
+ description: 'Query the user searched with',
82
+ type: 'string',
83
+ required: true,
84
+ default: { '@path': '$.properties.query' }
85
+ };
86
+ exports.order_id = {
87
+ label: 'Order ID',
88
+ description: 'Unique ID for the purchase',
89
+ type: 'string',
90
+ required: true,
91
+ default: { '@path': '$.properties.order_id' }
92
+ };
93
+ exports.order_id_required_false = {
94
+ ...exports.order_id,
95
+ required: false
96
+ };
97
+ exports.product_quantity = {
98
+ label: 'Product Quantity',
99
+ description: 'The quantity of the product.',
100
+ type: 'integer',
101
+ required: false,
102
+ default: { '@path': '$.properties.quantity' }
103
+ };
104
+ exports.product = {
105
+ label: 'Product Details',
106
+ description: 'Product details to associate with the event',
107
+ type: 'object',
108
+ required: true,
109
+ multiple: false,
110
+ additionalProperties: true,
111
+ properties: {
112
+ id: {
113
+ label: 'Product ID',
114
+ description: 'The unique identifier of the product.',
115
+ type: 'string',
116
+ required: true
117
+ },
118
+ title: {
119
+ label: 'Product title',
120
+ description: 'The title or name of the product.',
121
+ type: 'string',
122
+ required: false
123
+ },
124
+ price: {
125
+ label: 'Product price',
126
+ description: 'The product price.',
127
+ type: 'number',
128
+ required: false
129
+ },
130
+ url: {
131
+ label: 'Product URL',
132
+ description: 'The URL of the product.',
133
+ type: 'string',
134
+ required: false
135
+ }
136
+ },
137
+ default: {
138
+ id: { '@path': '$.properties.product_id' },
139
+ title: { '@path': '$.properties.name' },
140
+ price: { '@path': '$.properties.price' },
141
+ url: { '@path': '$.properties.url' }
142
+ }
143
+ };
144
+ exports.product_with_quantity = {
145
+ ...exports.product,
146
+ properties: {
147
+ ...exports.product.properties,
148
+ quantity: {
149
+ label: 'Quantity',
150
+ description: 'The quantity of the product.',
151
+ type: 'integer',
152
+ required: false
153
+ }
154
+ },
155
+ default: {
156
+ ...exports.product.default,
157
+ quantity: { '@path': '$.quantity' }
158
+ }
159
+ };
160
+ exports.products = {
161
+ label: 'Products',
162
+ description: 'Product details to associate with the event.',
163
+ type: 'object',
164
+ required: true,
165
+ multiple: true,
166
+ additionalProperties: true,
167
+ properties: {
168
+ id: {
169
+ label: 'Product ID',
170
+ description: 'The unique identifier of the product.',
171
+ type: 'string',
172
+ required: true
173
+ },
174
+ title: {
175
+ label: 'Product title',
176
+ description: 'The title or name of the product.',
177
+ type: 'string',
178
+ required: false
179
+ },
180
+ price: {
181
+ label: 'Product price',
182
+ description: 'The product price.',
183
+ type: 'number',
184
+ required: false
185
+ },
186
+ url: {
187
+ label: 'Product URL',
188
+ description: 'The URL of the product.',
189
+ type: 'string',
190
+ required: false
191
+ },
192
+ quantity: {
193
+ label: 'Product Quantity',
194
+ description: 'The quantity of the product.',
195
+ type: 'integer',
196
+ required: false
197
+ }
198
+ },
199
+ default: {
200
+ '@arrayPath': [
201
+ '$.properties.products',
202
+ {
203
+ id: { '@path': '$.product_id' },
204
+ title: { '@path': '$.name' },
205
+ price: { '@path': '$.price' },
206
+ url: { '@path': '$.url' },
207
+ quantity: { '@path': '$.quantity' }
208
+ }
209
+ ]
210
+ }
211
+ };
212
+ exports.products_required_false = {
213
+ ...exports.products,
214
+ required: false
215
+ };
216
+ exports.categories = {
217
+ label: 'Categories',
218
+ description: 'Product Category details',
219
+ type: 'object',
220
+ multiple: true,
221
+ required: true,
222
+ defaultObjectUI: 'keyvalue',
223
+ additionalProperties: false,
224
+ properties: {
225
+ id: { label: 'Category ID', description: 'The unique identifier of the Category.', type: 'string', required: true },
226
+ url: { label: 'Category URL', description: 'The URL of the Category', type: 'string' }
227
+ },
228
+ default: {
229
+ '@arrayPath': ['$.properties.categories', { id: { '@path': '$.id' }, url: { '@path': '$.url' } }]
230
+ }
231
+ };
232
+ exports.categories_required_false = {
233
+ ...exports.categories,
234
+ required: false
235
+ };
236
+ //# sourceMappingURL=fields.js.map