@adtrackify/at-service-common 5.0.0 → 5.0.2

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 (831) hide show
  1. package/dist/cjs/__tests__/clients/acuity-client.spec.d.ts +1 -1
  2. package/dist/cjs/__tests__/clients/acuity-client.spec.js +43 -43
  3. package/dist/cjs/__tests__/clients/cross-platform-compression.spec.d.ts +1 -1
  4. package/dist/cjs/__tests__/clients/cross-platform-compression.spec.js +354 -354
  5. package/dist/cjs/__tests__/clients/dynamodb-client.spec.d.ts +1 -1
  6. package/dist/cjs/__tests__/clients/dynamodb-client.spec.js +194 -194
  7. package/dist/cjs/__tests__/clients/event-collector-client.spec.d.ts +1 -1
  8. package/dist/cjs/__tests__/clients/event-collector-client.spec.js +227 -227
  9. package/dist/cjs/__tests__/clients/open-exchange-rates-client.spec.d.ts +1 -1
  10. package/dist/cjs/__tests__/clients/open-exchange-rates-client.spec.js +55 -55
  11. package/dist/cjs/__tests__/clients/sqs-bundled-client.spec.d.ts +1 -1
  12. package/dist/cjs/__tests__/clients/sqs-bundled-client.spec.js +931 -931
  13. package/dist/cjs/__tests__/clients/sqs-bundling-contracts.spec.d.ts +1 -1
  14. package/dist/cjs/__tests__/clients/sqs-bundling-contracts.spec.js +563 -563
  15. package/dist/cjs/__tests__/clients/sqs-client.spec.d.ts +1 -1
  16. package/dist/cjs/__tests__/clients/sqs-client.spec.js +191 -191
  17. package/dist/cjs/__tests__/clients/sqs-unbundle.spec.d.ts +1 -1
  18. package/dist/cjs/__tests__/clients/sqs-unbundle.spec.js +1357 -1357
  19. package/dist/cjs/__tests__/db/contact-enrichments-db-service.spec.d.ts +1 -1
  20. package/dist/cjs/__tests__/db/contact-enrichments-db-service.spec.js +68 -68
  21. package/dist/cjs/__tests__/db/destinations-db-service.spec.d.ts +1 -1
  22. package/dist/cjs/__tests__/db/destinations-db-service.spec.js +125 -125
  23. package/dist/cjs/__tests__/db/products-db-service.spec.d.ts +1 -1
  24. package/dist/cjs/__tests__/db/products-db-service.spec.js +89 -89
  25. package/dist/cjs/__tests__/db/shared-read-db-services.spec.d.ts +1 -1
  26. package/dist/cjs/__tests__/db/shared-read-db-services.spec.js +89 -89
  27. package/dist/cjs/__tests__/db/shopify-app-installs-db-service.spec.d.ts +1 -1
  28. package/dist/cjs/__tests__/db/shopify-app-installs-db-service.spec.js +104 -104
  29. package/dist/cjs/__tests__/db/subscriptions-db-service.spec.d.ts +1 -1
  30. package/dist/cjs/__tests__/db/subscriptions-db-service.spec.js +95 -95
  31. package/dist/cjs/__tests__/db/user-accounts-db-service.spec.d.ts +1 -1
  32. package/dist/cjs/__tests__/db/user-accounts-db-service.spec.js +76 -76
  33. package/dist/cjs/__tests__/helpers/account-users-helper.spec.d.ts +1 -1
  34. package/dist/cjs/__tests__/helpers/account-users-helper.spec.js +220 -220
  35. package/dist/cjs/__tests__/helpers/acuity-helper.spec.d.ts +1 -1
  36. package/dist/cjs/__tests__/helpers/acuity-helper.spec.js +69 -69
  37. package/dist/cjs/__tests__/helpers/api-key-auth-helper.spec.d.ts +1 -1
  38. package/dist/cjs/__tests__/helpers/api-key-auth-helper.spec.js +82 -82
  39. package/dist/cjs/__tests__/helpers/cognito-auth-helper.spec.d.ts +1 -1
  40. package/dist/cjs/__tests__/helpers/cognito-auth-helper.spec.js +46 -46
  41. package/dist/cjs/__tests__/helpers/order-calculation-helper.spec.d.ts +1 -1
  42. package/dist/cjs/__tests__/helpers/order-calculation-helper.spec.js +152 -152
  43. package/dist/cjs/__tests__/helpers/public-api-response-helper.spec.d.ts +1 -1
  44. package/dist/cjs/__tests__/helpers/public-api-response-helper.spec.js +60 -60
  45. package/dist/cjs/__tests__/identity-cache/helpers.spec.d.ts +1 -1
  46. package/dist/cjs/__tests__/identity-cache/helpers.spec.js +592 -592
  47. package/dist/cjs/__tests__/identity-cache/identity-cache-db-service.spec.d.ts +1 -1
  48. package/dist/cjs/__tests__/identity-cache/identity-cache-db-service.spec.js +676 -676
  49. package/dist/cjs/__tests__/identity-cache/identity-cache-dynamodb-db-service.spec.d.ts +1 -1
  50. package/dist/cjs/__tests__/identity-cache/identity-cache-dynamodb-db-service.spec.js +555 -555
  51. package/dist/cjs/__tests__/identity-cache/identity-cache-tier-routing.spec.d.ts +1 -1
  52. package/dist/cjs/__tests__/identity-cache/identity-cache-tier-routing.spec.js +631 -631
  53. package/dist/cjs/__tests__/identity-cache/identity-client.spec.d.ts +1 -1
  54. package/dist/cjs/__tests__/identity-cache/identity-client.spec.js +359 -359
  55. package/dist/cjs/__tests__/identity-cache/identity-gateway-cache-hit.spec.d.ts +1 -1
  56. package/dist/cjs/__tests__/identity-cache/identity-gateway-cache-hit.spec.js +137 -137
  57. package/dist/cjs/__tests__/identity-cache/identity-gateway-cache-miss.spec.d.ts +1 -1
  58. package/dist/cjs/__tests__/identity-cache/identity-gateway-cache-miss.spec.js +152 -152
  59. package/dist/cjs/__tests__/identity-cache/identity-gateway-constructor.spec.d.ts +1 -1
  60. package/dist/cjs/__tests__/identity-cache/identity-gateway-constructor.spec.js +71 -71
  61. package/dist/cjs/__tests__/identity-cache/identity-gateway-edge-cases.spec.d.ts +1 -1
  62. package/dist/cjs/__tests__/identity-cache/identity-gateway-edge-cases.spec.js +88 -88
  63. package/dist/cjs/__tests__/identity-cache/identity-gateway-enqueue-async.spec.d.ts +1 -1
  64. package/dist/cjs/__tests__/identity-cache/identity-gateway-enqueue-async.spec.js +135 -135
  65. package/dist/cjs/__tests__/identity-cache/identity-gateway-stale-cache.spec.d.ts +1 -1
  66. package/dist/cjs/__tests__/identity-cache/identity-gateway-stale-cache.spec.js +223 -223
  67. package/dist/cjs/__tests__/identity-cache/identity-gateway-test-setup.d.ts +28 -28
  68. package/dist/cjs/__tests__/identity-cache/identity-gateway-test-setup.js +89 -89
  69. package/dist/cjs/__tests__/identity-cache/trait-merging-and-staleness.spec.d.ts +1 -1
  70. package/dist/cjs/__tests__/identity-cache/trait-merging-and-staleness.spec.js +1770 -1770
  71. package/dist/cjs/__tests__/identity-cache/volatile-traits-optimization.spec.d.ts +1 -1
  72. package/dist/cjs/__tests__/identity-cache/volatile-traits-optimization.spec.js +818 -818
  73. package/dist/cjs/__tests__/integration/sqs-bundling-roundtrip.spec.d.ts +1 -1
  74. package/dist/cjs/__tests__/integration/sqs-bundling-roundtrip.spec.js +584 -584
  75. package/dist/cjs/__tests__/libs/compress-decompress.spec.d.ts +1 -1
  76. package/dist/cjs/__tests__/libs/compress-decompress.spec.js +16 -16
  77. package/dist/cjs/__tests__/libs/contacts.spec.d.ts +1 -1
  78. package/dist/cjs/__tests__/libs/contacts.spec.js +294 -294
  79. package/dist/cjs/__tests__/libs/currency.spec.d.ts +1 -1
  80. package/dist/cjs/__tests__/libs/currency.spec.js +220 -220
  81. package/dist/cjs/__tests__/libs/dates.spec.d.ts +1 -1
  82. package/dist/cjs/__tests__/libs/dates.spec.js +130 -130
  83. package/dist/cjs/__tests__/libs/domain.spec.d.ts +1 -1
  84. package/dist/cjs/__tests__/libs/domain.spec.js +107 -107
  85. package/dist/cjs/__tests__/libs/numbers.spec.d.ts +1 -1
  86. package/dist/cjs/__tests__/libs/numbers.spec.js +261 -261
  87. package/dist/cjs/__tests__/s3-client/s3-client.spec.d.ts +1 -1
  88. package/dist/cjs/__tests__/s3-client/s3-client.spec.js +33 -33
  89. package/dist/cjs/__tests__/services/acuity-api-service.spec.d.ts +1 -1
  90. package/dist/cjs/__tests__/services/acuity-api-service.spec.js +71 -71
  91. package/dist/cjs/__tests__/services/cost/cost-calculation-types.spec.d.ts +1 -1
  92. package/dist/cjs/__tests__/services/cost/cost-calculation-types.spec.js +23 -23
  93. package/dist/cjs/__tests__/services/cost/cost-calculator-service.spec.d.ts +1 -1
  94. package/dist/cjs/__tests__/services/cost/cost-calculator-service.spec.js +3361 -3361
  95. package/dist/cjs/__tests__/services/cost/cost-currency-service.spec.d.ts +1 -1
  96. package/dist/cjs/__tests__/services/cost/cost-currency-service.spec.js +114 -114
  97. package/dist/cjs/__tests__/services/cost/cost-filter-service.spec.d.ts +1 -1
  98. package/dist/cjs/__tests__/services/cost/cost-filter-service.spec.js +468 -468
  99. package/dist/cjs/__tests__/services/cost/order-cost/order-cost-resolution-service.spec.d.ts +1 -1
  100. package/dist/cjs/__tests__/services/cost/order-cost/order-cost-resolution-service.spec.js +360 -360
  101. package/dist/cjs/__tests__/services/currency-exchange-rate-lookup-service.spec.d.ts +1 -1
  102. package/dist/cjs/__tests__/services/currency-exchange-rate-lookup-service.spec.js +34 -34
  103. package/dist/cjs/__tests__/services/email-verification/contact-email-verification-service.spec.d.ts +1 -1
  104. package/dist/cjs/__tests__/services/email-verification/contact-email-verification-service.spec.js +93 -93
  105. package/dist/cjs/__tests__/services/email-verification/email-verification-service.spec.d.ts +1 -1
  106. package/dist/cjs/__tests__/services/email-verification/email-verification-service.spec.js +57 -57
  107. package/dist/cjs/__tests__/services/events/collect-queue-tracking-service.spec.d.ts +1 -1
  108. package/dist/cjs/__tests__/services/events/collect-queue-tracking-service.spec.js +229 -229
  109. package/dist/cjs/__tests__/services/events/tracking-event-sqs-service.spec.d.ts +1 -1
  110. package/dist/cjs/__tests__/services/events/tracking-event-sqs-service.spec.js +191 -191
  111. package/dist/cjs/__tests__/shopify/shopify-graphql-transformer.spec.d.ts +1 -1
  112. package/dist/cjs/__tests__/shopify/shopify-graphql-transformer.spec.js +35 -35
  113. package/dist/cjs/__tests__/unit/libs/api-router/public-api-router.spec.d.ts +1 -1
  114. package/dist/cjs/__tests__/unit/libs/api-router/public-api-router.spec.js +181 -181
  115. package/dist/cjs/__tests__/unit/libs/api-router/route-matcher.spec.d.ts +1 -1
  116. package/dist/cjs/__tests__/unit/libs/api-router/route-matcher.spec.js +69 -69
  117. package/dist/cjs/__tests__/utils/custom-measure-formula-utils.spec.d.ts +1 -1
  118. package/dist/cjs/__tests__/utils/custom-measure-formula-utils.spec.js +146 -146
  119. package/dist/cjs/clients/generic/cognito-client.d.ts +23 -23
  120. package/dist/cjs/clients/generic/cognito-client.js +209 -209
  121. package/dist/cjs/clients/generic/dynamodb-client.d.ts +20 -20
  122. package/dist/cjs/clients/generic/dynamodb-client.js +235 -235
  123. package/dist/cjs/clients/generic/eventbridge-client.d.ts +14 -14
  124. package/dist/cjs/clients/generic/eventbridge-client.js +51 -51
  125. package/dist/cjs/clients/generic/http-client.d.ts +14 -14
  126. package/dist/cjs/clients/generic/http-client.js +61 -61
  127. package/dist/cjs/clients/generic/index.d.ts +13 -13
  128. package/dist/cjs/clients/generic/index.js +29 -29
  129. package/dist/cjs/clients/generic/lambda-invoke-client.d.ts +10 -10
  130. package/dist/cjs/clients/generic/lambda-invoke-client.js +39 -39
  131. package/dist/cjs/clients/generic/location-client.d.ts +8 -8
  132. package/dist/cjs/clients/generic/location-client.js +31 -31
  133. package/dist/cjs/clients/generic/redis-client.d.ts +33 -33
  134. package/dist/cjs/clients/generic/redis-client.js +191 -191
  135. package/dist/cjs/clients/generic/s3-client.d.ts +23 -23
  136. package/dist/cjs/clients/generic/s3-client.js +216 -216
  137. package/dist/cjs/clients/generic/singlestore-db-client.d.ts +21 -14
  138. package/dist/cjs/clients/generic/singlestore-db-client.js +92 -67
  139. package/dist/cjs/clients/generic/singlestore-db-client.js.map +1 -1
  140. package/dist/cjs/clients/generic/sqs-bundled-client.d.ts +15 -15
  141. package/dist/cjs/clients/generic/sqs-bundled-client.js +311 -311
  142. package/dist/cjs/clients/generic/sqs-bundled-client.types.d.ts +53 -53
  143. package/dist/cjs/clients/generic/sqs-bundled-client.types.js +17 -17
  144. package/dist/cjs/clients/generic/sqs-client.d.ts +53 -53
  145. package/dist/cjs/clients/generic/sqs-client.js +285 -285
  146. package/dist/cjs/clients/generic/sqs-unbundle.d.ts +32 -32
  147. package/dist/cjs/clients/generic/sqs-unbundle.js +144 -144
  148. package/dist/cjs/clients/index.d.ts +3 -3
  149. package/dist/cjs/clients/index.js +19 -19
  150. package/dist/cjs/clients/internal-api/accounts-client.d.ts +91 -91
  151. package/dist/cjs/clients/internal-api/accounts-client.js +129 -129
  152. package/dist/cjs/clients/internal-api/cache-lambda-client.d.ts +26 -26
  153. package/dist/cjs/clients/internal-api/cache-lambda-client.js +89 -89
  154. package/dist/cjs/clients/internal-api/db-management-client.d.ts +18 -18
  155. package/dist/cjs/clients/internal-api/db-management-client.js +36 -36
  156. package/dist/cjs/clients/internal-api/destinations-client.d.ts +34 -34
  157. package/dist/cjs/clients/internal-api/destinations-client.js +79 -79
  158. package/dist/cjs/clients/internal-api/event-collector-client.d.ts +122 -122
  159. package/dist/cjs/clients/internal-api/event-collector-client.js +78 -78
  160. package/dist/cjs/clients/internal-api/identity-client.d.ts +41 -41
  161. package/dist/cjs/clients/internal-api/identity-client.js +137 -137
  162. package/dist/cjs/clients/internal-api/index.d.ts +9 -9
  163. package/dist/cjs/clients/internal-api/index.js +25 -25
  164. package/dist/cjs/clients/internal-api/shopify-app-install-client.d.ts +37 -37
  165. package/dist/cjs/clients/internal-api/shopify-app-install-client.js +81 -81
  166. package/dist/cjs/clients/internal-api/subscriptions-client.d.ts +26 -26
  167. package/dist/cjs/clients/internal-api/subscriptions-client.js +77 -77
  168. package/dist/cjs/clients/internal-api/users-auth-client.d.ts +35 -35
  169. package/dist/cjs/clients/internal-api/users-auth-client.js +110 -110
  170. package/dist/cjs/clients/third-party/acuity-client.d.ts +10 -10
  171. package/dist/cjs/clients/third-party/acuity-client.js +40 -40
  172. package/dist/cjs/clients/third-party/emailable-client.d.ts +7 -7
  173. package/dist/cjs/clients/third-party/emailable-client.js +25 -25
  174. package/dist/cjs/clients/third-party/exchange-rate-api-client.d.ts +17 -17
  175. package/dist/cjs/clients/third-party/exchange-rate-api-client.js +19 -19
  176. package/dist/cjs/clients/third-party/index.d.ts +6 -6
  177. package/dist/cjs/clients/third-party/index.js +22 -22
  178. package/dist/cjs/clients/third-party/loops-client.d.ts +10 -10
  179. package/dist/cjs/clients/third-party/loops-client.js +30 -30
  180. package/dist/cjs/clients/third-party/open-exchange-rates-client.d.ts +8 -8
  181. package/dist/cjs/clients/third-party/open-exchange-rates-client.js +27 -27
  182. package/dist/cjs/clients/third-party/shopify/graphql-analytics-queries.d.ts +18 -18
  183. package/dist/cjs/clients/third-party/shopify/graphql-analytics-queries.js +22 -22
  184. package/dist/cjs/clients/third-party/shopify/graphql-order-queries.d.ts +25 -25
  185. package/dist/cjs/clients/third-party/shopify/graphql-order-queries.js +4 -4
  186. package/dist/cjs/clients/third-party/shopify/graphql-product-queries.d.ts +2 -2
  187. package/dist/cjs/clients/third-party/shopify/graphql-product-queries.js +5 -5
  188. package/dist/cjs/clients/third-party/shopify/shopify-graphql-client.d.ts +42 -42
  189. package/dist/cjs/clients/third-party/shopify/shopify-graphql-client.js +352 -352
  190. package/dist/cjs/clients/third-party/shopify-client.d.ts +29 -29
  191. package/dist/cjs/clients/third-party/shopify-client.js +146 -146
  192. package/dist/cjs/constants/index.d.ts +1 -1
  193. package/dist/cjs/constants/index.js +17 -17
  194. package/dist/cjs/constants/sqs.d.ts +20 -20
  195. package/dist/cjs/constants/sqs.js +26 -26
  196. package/dist/cjs/helpers/account-users-helper.d.ts +2 -2
  197. package/dist/cjs/helpers/account-users-helper.js +22 -22
  198. package/dist/cjs/helpers/acuity-helper.d.ts +4 -4
  199. package/dist/cjs/helpers/acuity-helper.js +56 -56
  200. package/dist/cjs/helpers/api-key-auth-helper.d.ts +9 -9
  201. package/dist/cjs/helpers/api-key-auth-helper.js +40 -40
  202. package/dist/cjs/helpers/api-key-authorizer-helper.d.ts +36 -36
  203. package/dist/cjs/helpers/api-key-authorizer-helper.js +87 -87
  204. package/dist/cjs/helpers/cognito-auth-helper.d.ts +5 -5
  205. package/dist/cjs/helpers/cognito-auth-helper.js +14 -14
  206. package/dist/cjs/helpers/index.d.ts +12 -12
  207. package/dist/cjs/helpers/index.js +28 -28
  208. package/dist/cjs/helpers/input-validation-helper.d.ts +3 -3
  209. package/dist/cjs/helpers/input-validation-helper.js +22 -22
  210. package/dist/cjs/helpers/logging-helper.d.ts +16 -16
  211. package/dist/cjs/helpers/logging-helper.js +84 -84
  212. package/dist/cjs/helpers/order-calculation-helper.d.ts +13 -13
  213. package/dist/cjs/helpers/order-calculation-helper.js +117 -117
  214. package/dist/cjs/helpers/public-api-response-helper.d.ts +21 -21
  215. package/dist/cjs/helpers/public-api-response-helper.js +45 -45
  216. package/dist/cjs/helpers/response-helper.d.ts +18 -18
  217. package/dist/cjs/helpers/response-helper.js +43 -43
  218. package/dist/cjs/helpers/shopify-helper.d.ts +9 -9
  219. package/dist/cjs/helpers/shopify-helper.js +26 -26
  220. package/dist/cjs/helpers/sqs-utils.d.ts +6 -6
  221. package/dist/cjs/helpers/sqs-utils.js +14 -14
  222. package/dist/cjs/index.d.ts +7 -7
  223. package/dist/cjs/index.js +23 -23
  224. package/dist/cjs/libs/api-router/index.d.ts +2 -2
  225. package/dist/cjs/libs/api-router/index.js +18 -18
  226. package/dist/cjs/libs/api-router/public-api-router.d.ts +3 -3
  227. package/dist/cjs/libs/api-router/public-api-router.js +36 -36
  228. package/dist/cjs/libs/api-router/route-matcher.d.ts +21 -21
  229. package/dist/cjs/libs/api-router/route-matcher.js +36 -36
  230. package/dist/cjs/libs/click-id-parser.d.ts +23 -23
  231. package/dist/cjs/libs/click-id-parser.js +49 -49
  232. package/dist/cjs/libs/compression.d.ts +2 -2
  233. package/dist/cjs/libs/compression.js +33 -33
  234. package/dist/cjs/libs/contacts.d.ts +7 -7
  235. package/dist/cjs/libs/contacts.js +152 -152
  236. package/dist/cjs/libs/cookie.d.ts +17 -17
  237. package/dist/cjs/libs/cookie.js +76 -76
  238. package/dist/cjs/libs/crypto.d.ts +4 -4
  239. package/dist/cjs/libs/crypto.js +25 -25
  240. package/dist/cjs/libs/csv.d.ts +2 -2
  241. package/dist/cjs/libs/csv.js +35 -35
  242. package/dist/cjs/libs/currency.d.ts +1 -1
  243. package/dist/cjs/libs/currency.js +29 -29
  244. package/dist/cjs/libs/dates.d.ts +12 -12
  245. package/dist/cjs/libs/dates.js +96 -96
  246. package/dist/cjs/libs/domain.d.ts +2 -2
  247. package/dist/cjs/libs/domain.js +38 -38
  248. package/dist/cjs/libs/emails.d.ts +8 -8
  249. package/dist/cjs/libs/emails.js +154 -154
  250. package/dist/cjs/libs/http-error.d.ts +21 -21
  251. package/dist/cjs/libs/http-error.js +63 -63
  252. package/dist/cjs/libs/http-status-codes.d.ts +58 -58
  253. package/dist/cjs/libs/http-status-codes.js +62 -62
  254. package/dist/cjs/libs/index.d.ts +19 -19
  255. package/dist/cjs/libs/index.js +35 -35
  256. package/dist/cjs/libs/numbers.d.ts +1 -1
  257. package/dist/cjs/libs/numbers.js +15 -15
  258. package/dist/cjs/libs/referrer-parser/index.d.ts +2 -2
  259. package/dist/cjs/libs/referrer-parser/index.js +18 -18
  260. package/dist/cjs/libs/referrer-parser/referrer-data.d.ts +9 -9
  261. package/dist/cjs/libs/referrer-parser/referrer-data.js +3307 -3307
  262. package/dist/cjs/libs/referrer-parser/referrer-parser-util.d.ts +20 -20
  263. package/dist/cjs/libs/referrer-parser/referrer-parser-util.js +131 -131
  264. package/dist/cjs/libs/strings.d.ts +3 -3
  265. package/dist/cjs/libs/strings.js +46 -46
  266. package/dist/cjs/libs/traits.d.ts +6 -6
  267. package/dist/cjs/libs/traits.js +65 -65
  268. package/dist/cjs/libs/url.d.ts +1 -1
  269. package/dist/cjs/libs/url.js +13 -13
  270. package/dist/cjs/services/acuity-api-service.d.ts +9 -9
  271. package/dist/cjs/services/acuity-api-service.js +73 -73
  272. package/dist/cjs/services/cache/generic-cached-object.d.ts +5 -5
  273. package/dist/cjs/services/cache/generic-cached-object.js +2 -2
  274. package/dist/cjs/services/cache/index.d.ts +1 -1
  275. package/dist/cjs/services/cache/index.js +17 -17
  276. package/dist/cjs/services/cache/product-cache-service.d.ts +21 -21
  277. package/dist/cjs/services/cache/product-cache-service.js +76 -76
  278. package/dist/cjs/services/cost/cost-calculation-types.d.ts +69 -69
  279. package/dist/cjs/services/cost/cost-calculation-types.js +19 -19
  280. package/dist/cjs/services/cost/cost-calculator-service.d.ts +24 -24
  281. package/dist/cjs/services/cost/cost-calculator-service.js +462 -462
  282. package/dist/cjs/services/cost/cost-currency-service.d.ts +6 -6
  283. package/dist/cjs/services/cost/cost-currency-service.js +87 -87
  284. package/dist/cjs/services/cost/cost-filter-service.d.ts +10 -10
  285. package/dist/cjs/services/cost/cost-filter-service.js +121 -121
  286. package/dist/cjs/services/cost/index.d.ts +5 -5
  287. package/dist/cjs/services/cost/index.js +21 -21
  288. package/dist/cjs/services/cost/order-cost/index.d.ts +2 -2
  289. package/dist/cjs/services/cost/order-cost/index.js +18 -18
  290. package/dist/cjs/services/cost/order-cost/order-cost-resolution-service.d.ts +23 -23
  291. package/dist/cjs/services/cost/order-cost/order-cost-resolution-service.js +293 -293
  292. package/dist/cjs/services/cost/order-cost/order-cost-resolution-types.d.ts +31 -31
  293. package/dist/cjs/services/cost/order-cost/order-cost-resolution-types.js +2 -2
  294. package/dist/cjs/services/currency-exchange-rate-lookup-service.d.ts +12 -12
  295. package/dist/cjs/services/currency-exchange-rate-lookup-service.js +94 -94
  296. package/dist/cjs/services/db/accounts-db-service.d.ts +9 -9
  297. package/dist/cjs/services/db/accounts-db-service.js +33 -33
  298. package/dist/cjs/services/db/api-keys-db-service.d.ts +10 -10
  299. package/dist/cjs/services/db/api-keys-db-service.js +36 -36
  300. package/dist/cjs/services/db/contact-enrichments-db-service.d.ts +15 -15
  301. package/dist/cjs/services/db/contact-enrichments-db-service.js +94 -94
  302. package/dist/cjs/services/db/currency-exchange-rates-db-service.d.ts +21 -21
  303. package/dist/cjs/services/db/currency-exchange-rates-db-service.js +39 -39
  304. package/dist/cjs/services/db/custom-measures-db-service.d.ts +14 -14
  305. package/dist/cjs/services/db/custom-measures-db-service.js +48 -48
  306. package/dist/cjs/services/db/destinations-db-service.d.ts +13 -13
  307. package/dist/cjs/services/db/destinations-db-service.js +74 -74
  308. package/dist/cjs/services/db/identity-cache-db-service.d.ts +28 -28
  309. package/dist/cjs/services/db/identity-cache-db-service.js +320 -320
  310. package/dist/cjs/services/db/identity-cache-dynamodb-service/constants.d.ts +3 -3
  311. package/dist/cjs/services/db/identity-cache-dynamodb-service/constants.js +6 -6
  312. package/dist/cjs/services/db/identity-cache-dynamodb-service/identity-cache-dynamodb-db-service.d.ts +20 -20
  313. package/dist/cjs/services/db/identity-cache-dynamodb-service/identity-cache-dynamodb-db-service.js +362 -362
  314. package/dist/cjs/services/db/identity-cache-dynamodb-service/identity-gateway-service.d.ts +23 -23
  315. package/dist/cjs/services/db/identity-cache-dynamodb-service/identity-gateway-service.js +222 -222
  316. package/dist/cjs/services/db/identity-cache-dynamodb-service/index.d.ts +4 -4
  317. package/dist/cjs/services/db/identity-cache-dynamodb-service/index.js +20 -20
  318. package/dist/cjs/services/db/identity-cache-dynamodb-service/key-builders.d.ts +12 -12
  319. package/dist/cjs/services/db/identity-cache-dynamodb-service/key-builders.js +31 -31
  320. package/dist/cjs/services/db/identity-cache-dynamodb-service/types.d.ts +71 -71
  321. package/dist/cjs/services/db/identity-cache-dynamodb-service/types.js +28 -28
  322. package/dist/cjs/services/db/index.d.ts +22 -22
  323. package/dist/cjs/services/db/index.js +38 -38
  324. package/dist/cjs/services/db/log-events-db-service.d.ts +11 -11
  325. package/dist/cjs/services/db/log-events-db-service.js +181 -181
  326. package/dist/cjs/services/db/pixels-db-service.d.ts +8 -8
  327. package/dist/cjs/services/db/pixels-db-service.js +35 -35
  328. package/dist/cjs/services/db/products-db-service-types.d.ts +10 -10
  329. package/dist/cjs/services/db/products-db-service-types.js +2 -2
  330. package/dist/cjs/services/db/products-db-service.d.ts +19 -19
  331. package/dist/cjs/services/db/products-db-service.js +281 -281
  332. package/dist/cjs/services/db/purchasable-contacts-db-service.d.ts +9 -9
  333. package/dist/cjs/services/db/purchasable-contacts-db-service.js +43 -43
  334. package/dist/cjs/services/db/purchased-contacts/index.d.ts +2 -2
  335. package/dist/cjs/services/db/purchased-contacts/index.js +18 -18
  336. package/dist/cjs/services/db/purchased-contacts/purchased-contacts-db-service.d.ts +18 -18
  337. package/dist/cjs/services/db/purchased-contacts/purchased-contacts-db-service.js +152 -152
  338. package/dist/cjs/services/db/purchased-contacts/types.d.ts +11 -11
  339. package/dist/cjs/services/db/purchased-contacts/types.js +2 -2
  340. package/dist/cjs/services/db/shopify-app-installs-db-service.d.ts +10 -10
  341. package/dist/cjs/services/db/shopify-app-installs-db-service.js +52 -52
  342. package/dist/cjs/services/db/shopify-products-cache-db-service.d.ts +16 -16
  343. package/dist/cjs/services/db/shopify-products-cache-db-service.js +73 -73
  344. package/dist/cjs/services/db/subscriptions-db-service.d.ts +11 -11
  345. package/dist/cjs/services/db/subscriptions-db-service.js +38 -38
  346. package/dist/cjs/services/db/tracking-events-db-service.d.ts +21 -21
  347. package/dist/cjs/services/db/tracking-events-db-service.js +188 -188
  348. package/dist/cjs/services/db/user-accounts-db-service.d.ts +7 -7
  349. package/dist/cjs/services/db/user-accounts-db-service.js +17 -17
  350. package/dist/cjs/services/email-verification/contact-email-verification-service.d.ts +7 -7
  351. package/dist/cjs/services/email-verification/contact-email-verification-service.js +101 -101
  352. package/dist/cjs/services/email-verification/email-verification-service.d.ts +19 -19
  353. package/dist/cjs/services/email-verification/email-verification-service.js +131 -131
  354. package/dist/cjs/services/email-verification/index.d.ts +2 -2
  355. package/dist/cjs/services/email-verification/index.js +18 -18
  356. package/dist/cjs/services/eventbridge-integration-service.d.ts +9 -9
  357. package/dist/cjs/services/eventbridge-integration-service.js +28 -28
  358. package/dist/cjs/services/events/build-collect-queue-tracking-event.d.ts +11 -11
  359. package/dist/cjs/services/events/build-collect-queue-tracking-event.js +23 -23
  360. package/dist/cjs/services/events/collect-queue-tracking-service.d.ts +12 -12
  361. package/dist/cjs/services/events/collect-queue-tracking-service.js +22 -22
  362. package/dist/cjs/services/events/index.d.ts +5 -5
  363. package/dist/cjs/services/events/index.js +21 -21
  364. package/dist/cjs/services/events/log-event-service.d.ts +19 -19
  365. package/dist/cjs/services/events/log-event-service.js +77 -77
  366. package/dist/cjs/services/events/metric-event-service.d.ts +9 -9
  367. package/dist/cjs/services/events/metric-event-service.js +49 -49
  368. package/dist/cjs/services/events/tracking-event-sqs-service.d.ts +8 -8
  369. package/dist/cjs/services/events/tracking-event-sqs-service.js +36 -36
  370. package/dist/cjs/services/generic-cache-service.d.ts +7 -7
  371. package/dist/cjs/services/generic-cache-service.js +33 -33
  372. package/dist/cjs/services/index.d.ts +11 -11
  373. package/dist/cjs/services/index.js +27 -27
  374. package/dist/cjs/services/ipdata-lookup-service.d.ts +20 -20
  375. package/dist/cjs/services/ipdata-lookup-service.js +112 -112
  376. package/dist/cjs/services/shopify/index.d.ts +2 -2
  377. package/dist/cjs/services/shopify/index.js +18 -18
  378. package/dist/cjs/services/shopify/products/index.d.ts +1 -1
  379. package/dist/cjs/services/shopify/products/index.js +17 -17
  380. package/dist/cjs/services/shopify/products/shopify-products-serviceV2.d.ts +17 -17
  381. package/dist/cjs/services/shopify/products/shopify-products-serviceV2.js +112 -112
  382. package/dist/cjs/services/shopify/shopify-graphql-transformer.d.ts +8 -8
  383. package/dist/cjs/services/shopify/shopify-graphql-transformer.js +141 -141
  384. package/dist/cjs/types/acuity-types.d.ts +74 -74
  385. package/dist/cjs/types/acuity-types.js +2 -2
  386. package/dist/cjs/types/api-response.d.ts +6 -6
  387. package/dist/cjs/types/api-response.js +2 -2
  388. package/dist/cjs/types/index.d.ts +6 -6
  389. package/dist/cjs/types/index.js +35 -35
  390. package/dist/cjs/types/internal-events/event-detail-types.d.ts +20 -20
  391. package/dist/cjs/types/internal-events/event-detail-types.js +27 -27
  392. package/dist/cjs/types/internal-events/index.d.ts +1 -1
  393. package/dist/cjs/types/internal-events/index.js +17 -17
  394. package/dist/cjs/types/open-exchange-rates-types.d.ts +10 -10
  395. package/dist/cjs/types/open-exchange-rates-types.js +2 -2
  396. package/dist/cjs/types/public-api-types.d.ts +24 -24
  397. package/dist/cjs/types/public-api-types.js +13 -13
  398. package/dist/cjs/types/shopify-graphql-types/admin.generated.d.ts +123 -123
  399. package/dist/cjs/types/shopify-graphql-types/admin.generated.js +2 -2
  400. package/dist/cjs/types/shopify-graphql-types/admin.types.d.ts +26289 -26289
  401. package/dist/cjs/types/shopify-graphql-types/admin.types.js +5311 -5311
  402. package/dist/cjs/types/shopify-graphql-types/index.d.ts +2 -2
  403. package/dist/cjs/types/shopify-graphql-types/index.js +18 -18
  404. package/dist/cjs/types/shopify-rest-types.d.ts +767 -767
  405. package/dist/cjs/types/shopify-rest-types.js +2 -2
  406. package/dist/cjs/utils/compression.d.ts +36 -36
  407. package/dist/cjs/utils/compression.js +198 -198
  408. package/dist/cjs/utils/custom-measure-formula-utils.d.ts +6 -6
  409. package/dist/cjs/utils/custom-measure-formula-utils.js +209 -209
  410. package/dist/cjs/utils/index.d.ts +4 -4
  411. package/dist/cjs/utils/index.js +20 -20
  412. package/dist/cjs/utils/retry-envelope.d.ts +12 -12
  413. package/dist/cjs/utils/retry-envelope.js +28 -28
  414. package/dist/cjs/utils/size.d.ts +2 -2
  415. package/dist/cjs/utils/size.js +49 -49
  416. package/dist/esm/__tests__/clients/acuity-client.spec.d.ts +1 -1
  417. package/dist/esm/__tests__/clients/acuity-client.spec.js +41 -41
  418. package/dist/esm/__tests__/clients/cross-platform-compression.spec.d.ts +1 -1
  419. package/dist/esm/__tests__/clients/cross-platform-compression.spec.js +329 -329
  420. package/dist/esm/__tests__/clients/dynamodb-client.spec.d.ts +1 -1
  421. package/dist/esm/__tests__/clients/dynamodb-client.spec.js +192 -192
  422. package/dist/esm/__tests__/clients/event-collector-client.spec.d.ts +1 -1
  423. package/dist/esm/__tests__/clients/event-collector-client.spec.js +225 -225
  424. package/dist/esm/__tests__/clients/open-exchange-rates-client.spec.d.ts +1 -1
  425. package/dist/esm/__tests__/clients/open-exchange-rates-client.spec.js +53 -53
  426. package/dist/esm/__tests__/clients/sqs-bundled-client.spec.d.ts +1 -1
  427. package/dist/esm/__tests__/clients/sqs-bundled-client.spec.js +906 -906
  428. package/dist/esm/__tests__/clients/sqs-bundling-contracts.spec.d.ts +1 -1
  429. package/dist/esm/__tests__/clients/sqs-bundling-contracts.spec.js +538 -538
  430. package/dist/esm/__tests__/clients/sqs-client.spec.d.ts +1 -1
  431. package/dist/esm/__tests__/clients/sqs-client.spec.js +189 -189
  432. package/dist/esm/__tests__/clients/sqs-unbundle.spec.d.ts +1 -1
  433. package/dist/esm/__tests__/clients/sqs-unbundle.spec.js +1355 -1355
  434. package/dist/esm/__tests__/db/contact-enrichments-db-service.spec.d.ts +1 -1
  435. package/dist/esm/__tests__/db/contact-enrichments-db-service.spec.js +66 -66
  436. package/dist/esm/__tests__/db/destinations-db-service.spec.d.ts +1 -1
  437. package/dist/esm/__tests__/db/destinations-db-service.spec.js +123 -123
  438. package/dist/esm/__tests__/db/products-db-service.spec.d.ts +1 -1
  439. package/dist/esm/__tests__/db/products-db-service.spec.js +87 -87
  440. package/dist/esm/__tests__/db/shared-read-db-services.spec.d.ts +1 -1
  441. package/dist/esm/__tests__/db/shared-read-db-services.spec.js +87 -87
  442. package/dist/esm/__tests__/db/shopify-app-installs-db-service.spec.d.ts +1 -1
  443. package/dist/esm/__tests__/db/shopify-app-installs-db-service.spec.js +102 -102
  444. package/dist/esm/__tests__/db/subscriptions-db-service.spec.d.ts +1 -1
  445. package/dist/esm/__tests__/db/subscriptions-db-service.spec.js +93 -93
  446. package/dist/esm/__tests__/db/user-accounts-db-service.spec.d.ts +1 -1
  447. package/dist/esm/__tests__/db/user-accounts-db-service.spec.js +74 -74
  448. package/dist/esm/__tests__/helpers/account-users-helper.spec.d.ts +1 -1
  449. package/dist/esm/__tests__/helpers/account-users-helper.spec.js +218 -218
  450. package/dist/esm/__tests__/helpers/acuity-helper.spec.d.ts +1 -1
  451. package/dist/esm/__tests__/helpers/acuity-helper.spec.js +67 -67
  452. package/dist/esm/__tests__/helpers/api-key-auth-helper.spec.d.ts +1 -1
  453. package/dist/esm/__tests__/helpers/api-key-auth-helper.spec.js +80 -80
  454. package/dist/esm/__tests__/helpers/cognito-auth-helper.spec.d.ts +1 -1
  455. package/dist/esm/__tests__/helpers/cognito-auth-helper.spec.js +44 -44
  456. package/dist/esm/__tests__/helpers/order-calculation-helper.spec.d.ts +1 -1
  457. package/dist/esm/__tests__/helpers/order-calculation-helper.spec.js +150 -150
  458. package/dist/esm/__tests__/helpers/public-api-response-helper.spec.d.ts +1 -1
  459. package/dist/esm/__tests__/helpers/public-api-response-helper.spec.js +55 -55
  460. package/dist/esm/__tests__/identity-cache/helpers.spec.d.ts +1 -1
  461. package/dist/esm/__tests__/identity-cache/helpers.spec.js +590 -590
  462. package/dist/esm/__tests__/identity-cache/identity-cache-db-service.spec.d.ts +1 -1
  463. package/dist/esm/__tests__/identity-cache/identity-cache-db-service.spec.js +674 -674
  464. package/dist/esm/__tests__/identity-cache/identity-cache-dynamodb-db-service.spec.d.ts +1 -1
  465. package/dist/esm/__tests__/identity-cache/identity-cache-dynamodb-db-service.spec.js +553 -553
  466. package/dist/esm/__tests__/identity-cache/identity-cache-tier-routing.spec.d.ts +1 -1
  467. package/dist/esm/__tests__/identity-cache/identity-cache-tier-routing.spec.js +629 -629
  468. package/dist/esm/__tests__/identity-cache/identity-client.spec.d.ts +1 -1
  469. package/dist/esm/__tests__/identity-cache/identity-client.spec.js +357 -357
  470. package/dist/esm/__tests__/identity-cache/identity-gateway-cache-hit.spec.d.ts +1 -1
  471. package/dist/esm/__tests__/identity-cache/identity-gateway-cache-hit.spec.js +135 -135
  472. package/dist/esm/__tests__/identity-cache/identity-gateway-cache-miss.spec.d.ts +1 -1
  473. package/dist/esm/__tests__/identity-cache/identity-gateway-cache-miss.spec.js +150 -150
  474. package/dist/esm/__tests__/identity-cache/identity-gateway-constructor.spec.d.ts +1 -1
  475. package/dist/esm/__tests__/identity-cache/identity-gateway-constructor.spec.js +69 -69
  476. package/dist/esm/__tests__/identity-cache/identity-gateway-edge-cases.spec.d.ts +1 -1
  477. package/dist/esm/__tests__/identity-cache/identity-gateway-edge-cases.spec.js +86 -86
  478. package/dist/esm/__tests__/identity-cache/identity-gateway-enqueue-async.spec.d.ts +1 -1
  479. package/dist/esm/__tests__/identity-cache/identity-gateway-enqueue-async.spec.js +133 -133
  480. package/dist/esm/__tests__/identity-cache/identity-gateway-stale-cache.spec.d.ts +1 -1
  481. package/dist/esm/__tests__/identity-cache/identity-gateway-stale-cache.spec.js +221 -221
  482. package/dist/esm/__tests__/identity-cache/identity-gateway-test-setup.d.ts +28 -28
  483. package/dist/esm/__tests__/identity-cache/identity-gateway-test-setup.js +82 -82
  484. package/dist/esm/__tests__/identity-cache/trait-merging-and-staleness.spec.d.ts +1 -1
  485. package/dist/esm/__tests__/identity-cache/trait-merging-and-staleness.spec.js +1768 -1768
  486. package/dist/esm/__tests__/identity-cache/volatile-traits-optimization.spec.d.ts +1 -1
  487. package/dist/esm/__tests__/identity-cache/volatile-traits-optimization.spec.js +816 -816
  488. package/dist/esm/__tests__/integration/sqs-bundling-roundtrip.spec.d.ts +1 -1
  489. package/dist/esm/__tests__/integration/sqs-bundling-roundtrip.spec.js +582 -582
  490. package/dist/esm/__tests__/libs/compress-decompress.spec.d.ts +1 -1
  491. package/dist/esm/__tests__/libs/compress-decompress.spec.js +14 -14
  492. package/dist/esm/__tests__/libs/contacts.spec.d.ts +1 -1
  493. package/dist/esm/__tests__/libs/contacts.spec.js +292 -292
  494. package/dist/esm/__tests__/libs/currency.spec.d.ts +1 -1
  495. package/dist/esm/__tests__/libs/currency.spec.js +218 -218
  496. package/dist/esm/__tests__/libs/dates.spec.d.ts +1 -1
  497. package/dist/esm/__tests__/libs/dates.spec.js +128 -128
  498. package/dist/esm/__tests__/libs/domain.spec.d.ts +1 -1
  499. package/dist/esm/__tests__/libs/domain.spec.js +105 -105
  500. package/dist/esm/__tests__/libs/numbers.spec.d.ts +1 -1
  501. package/dist/esm/__tests__/libs/numbers.spec.js +259 -259
  502. package/dist/esm/__tests__/s3-client/s3-client.spec.d.ts +1 -1
  503. package/dist/esm/__tests__/s3-client/s3-client.spec.js +31 -31
  504. package/dist/esm/__tests__/services/acuity-api-service.spec.d.ts +1 -1
  505. package/dist/esm/__tests__/services/acuity-api-service.spec.js +69 -69
  506. package/dist/esm/__tests__/services/cost/cost-calculation-types.spec.d.ts +1 -1
  507. package/dist/esm/__tests__/services/cost/cost-calculation-types.spec.js +21 -21
  508. package/dist/esm/__tests__/services/cost/cost-calculator-service.spec.d.ts +1 -1
  509. package/dist/esm/__tests__/services/cost/cost-calculator-service.spec.js +3359 -3359
  510. package/dist/esm/__tests__/services/cost/cost-currency-service.spec.d.ts +1 -1
  511. package/dist/esm/__tests__/services/cost/cost-currency-service.spec.js +112 -112
  512. package/dist/esm/__tests__/services/cost/cost-filter-service.spec.d.ts +1 -1
  513. package/dist/esm/__tests__/services/cost/cost-filter-service.spec.js +466 -466
  514. package/dist/esm/__tests__/services/cost/order-cost/order-cost-resolution-service.spec.d.ts +1 -1
  515. package/dist/esm/__tests__/services/cost/order-cost/order-cost-resolution-service.spec.js +358 -358
  516. package/dist/esm/__tests__/services/currency-exchange-rate-lookup-service.spec.d.ts +1 -1
  517. package/dist/esm/__tests__/services/currency-exchange-rate-lookup-service.spec.js +32 -32
  518. package/dist/esm/__tests__/services/email-verification/contact-email-verification-service.spec.d.ts +1 -1
  519. package/dist/esm/__tests__/services/email-verification/contact-email-verification-service.spec.js +91 -91
  520. package/dist/esm/__tests__/services/email-verification/email-verification-service.spec.d.ts +1 -1
  521. package/dist/esm/__tests__/services/email-verification/email-verification-service.spec.js +55 -55
  522. package/dist/esm/__tests__/services/events/collect-queue-tracking-service.spec.d.ts +1 -1
  523. package/dist/esm/__tests__/services/events/collect-queue-tracking-service.spec.js +227 -227
  524. package/dist/esm/__tests__/services/events/tracking-event-sqs-service.spec.d.ts +1 -1
  525. package/dist/esm/__tests__/services/events/tracking-event-sqs-service.spec.js +189 -189
  526. package/dist/esm/__tests__/shopify/shopify-graphql-transformer.spec.d.ts +1 -1
  527. package/dist/esm/__tests__/shopify/shopify-graphql-transformer.spec.js +33 -33
  528. package/dist/esm/__tests__/unit/libs/api-router/public-api-router.spec.d.ts +1 -1
  529. package/dist/esm/__tests__/unit/libs/api-router/public-api-router.spec.js +156 -156
  530. package/dist/esm/__tests__/unit/libs/api-router/route-matcher.spec.d.ts +1 -1
  531. package/dist/esm/__tests__/unit/libs/api-router/route-matcher.spec.js +67 -67
  532. package/dist/esm/__tests__/utils/custom-measure-formula-utils.spec.d.ts +1 -1
  533. package/dist/esm/__tests__/utils/custom-measure-formula-utils.spec.js +144 -144
  534. package/dist/esm/clients/generic/cognito-client.d.ts +23 -23
  535. package/dist/esm/clients/generic/cognito-client.js +204 -204
  536. package/dist/esm/clients/generic/dynamodb-client.d.ts +20 -20
  537. package/dist/esm/clients/generic/dynamodb-client.js +231 -231
  538. package/dist/esm/clients/generic/eventbridge-client.d.ts +14 -14
  539. package/dist/esm/clients/generic/eventbridge-client.js +47 -47
  540. package/dist/esm/clients/generic/http-client.d.ts +14 -14
  541. package/dist/esm/clients/generic/http-client.js +53 -53
  542. package/dist/esm/clients/generic/index.d.ts +13 -13
  543. package/dist/esm/clients/generic/index.js +13 -13
  544. package/dist/esm/clients/generic/lambda-invoke-client.d.ts +10 -10
  545. package/dist/esm/clients/generic/lambda-invoke-client.js +35 -35
  546. package/dist/esm/clients/generic/location-client.d.ts +8 -8
  547. package/dist/esm/clients/generic/location-client.js +27 -27
  548. package/dist/esm/clients/generic/redis-client.d.ts +33 -33
  549. package/dist/esm/clients/generic/redis-client.js +184 -184
  550. package/dist/esm/clients/generic/s3-client.d.ts +23 -23
  551. package/dist/esm/clients/generic/s3-client.js +209 -209
  552. package/dist/esm/clients/generic/singlestore-db-client.d.ts +21 -14
  553. package/dist/esm/clients/generic/singlestore-db-client.js +65 -40
  554. package/dist/esm/clients/generic/singlestore-db-client.js.map +1 -1
  555. package/dist/esm/clients/generic/sqs-bundled-client.d.ts +15 -15
  556. package/dist/esm/clients/generic/sqs-bundled-client.js +307 -307
  557. package/dist/esm/clients/generic/sqs-bundled-client.types.d.ts +53 -53
  558. package/dist/esm/clients/generic/sqs-bundled-client.types.js +14 -14
  559. package/dist/esm/clients/generic/sqs-client.d.ts +53 -53
  560. package/dist/esm/clients/generic/sqs-client.js +281 -281
  561. package/dist/esm/clients/generic/sqs-unbundle.d.ts +32 -32
  562. package/dist/esm/clients/generic/sqs-unbundle.js +137 -137
  563. package/dist/esm/clients/index.d.ts +3 -3
  564. package/dist/esm/clients/index.js +3 -3
  565. package/dist/esm/clients/internal-api/accounts-client.d.ts +91 -91
  566. package/dist/esm/clients/internal-api/accounts-client.js +125 -125
  567. package/dist/esm/clients/internal-api/cache-lambda-client.d.ts +26 -26
  568. package/dist/esm/clients/internal-api/cache-lambda-client.js +85 -85
  569. package/dist/esm/clients/internal-api/db-management-client.d.ts +18 -18
  570. package/dist/esm/clients/internal-api/db-management-client.js +32 -32
  571. package/dist/esm/clients/internal-api/destinations-client.d.ts +34 -34
  572. package/dist/esm/clients/internal-api/destinations-client.js +75 -75
  573. package/dist/esm/clients/internal-api/event-collector-client.d.ts +122 -122
  574. package/dist/esm/clients/internal-api/event-collector-client.js +74 -74
  575. package/dist/esm/clients/internal-api/identity-client.d.ts +41 -41
  576. package/dist/esm/clients/internal-api/identity-client.js +133 -133
  577. package/dist/esm/clients/internal-api/index.d.ts +9 -9
  578. package/dist/esm/clients/internal-api/index.js +9 -9
  579. package/dist/esm/clients/internal-api/shopify-app-install-client.d.ts +37 -37
  580. package/dist/esm/clients/internal-api/shopify-app-install-client.js +77 -77
  581. package/dist/esm/clients/internal-api/subscriptions-client.d.ts +26 -26
  582. package/dist/esm/clients/internal-api/subscriptions-client.js +73 -73
  583. package/dist/esm/clients/internal-api/users-auth-client.d.ts +35 -35
  584. package/dist/esm/clients/internal-api/users-auth-client.js +106 -106
  585. package/dist/esm/clients/third-party/acuity-client.d.ts +10 -10
  586. package/dist/esm/clients/third-party/acuity-client.js +36 -36
  587. package/dist/esm/clients/third-party/emailable-client.d.ts +7 -7
  588. package/dist/esm/clients/third-party/emailable-client.js +21 -21
  589. package/dist/esm/clients/third-party/exchange-rate-api-client.d.ts +17 -17
  590. package/dist/esm/clients/third-party/exchange-rate-api-client.js +15 -15
  591. package/dist/esm/clients/third-party/index.d.ts +6 -6
  592. package/dist/esm/clients/third-party/index.js +6 -6
  593. package/dist/esm/clients/third-party/loops-client.d.ts +10 -10
  594. package/dist/esm/clients/third-party/loops-client.js +26 -26
  595. package/dist/esm/clients/third-party/open-exchange-rates-client.d.ts +8 -8
  596. package/dist/esm/clients/third-party/open-exchange-rates-client.js +23 -23
  597. package/dist/esm/clients/third-party/shopify/graphql-analytics-queries.d.ts +18 -18
  598. package/dist/esm/clients/third-party/shopify/graphql-analytics-queries.js +19 -19
  599. package/dist/esm/clients/third-party/shopify/graphql-order-queries.d.ts +25 -25
  600. package/dist/esm/clients/third-party/shopify/graphql-order-queries.js +1 -1
  601. package/dist/esm/clients/third-party/shopify/graphql-product-queries.d.ts +2 -2
  602. package/dist/esm/clients/third-party/shopify/graphql-product-queries.js +2 -2
  603. package/dist/esm/clients/third-party/shopify/shopify-graphql-client.d.ts +42 -42
  604. package/dist/esm/clients/third-party/shopify/shopify-graphql-client.js +348 -348
  605. package/dist/esm/clients/third-party/shopify-client.d.ts +29 -29
  606. package/dist/esm/clients/third-party/shopify-client.js +142 -142
  607. package/dist/esm/constants/index.d.ts +1 -1
  608. package/dist/esm/constants/index.js +1 -1
  609. package/dist/esm/constants/sqs.d.ts +20 -20
  610. package/dist/esm/constants/sqs.js +22 -22
  611. package/dist/esm/helpers/account-users-helper.d.ts +2 -2
  612. package/dist/esm/helpers/account-users-helper.js +18 -18
  613. package/dist/esm/helpers/acuity-helper.d.ts +4 -4
  614. package/dist/esm/helpers/acuity-helper.js +51 -51
  615. package/dist/esm/helpers/api-key-auth-helper.d.ts +9 -9
  616. package/dist/esm/helpers/api-key-auth-helper.js +35 -35
  617. package/dist/esm/helpers/api-key-authorizer-helper.d.ts +36 -36
  618. package/dist/esm/helpers/api-key-authorizer-helper.js +83 -83
  619. package/dist/esm/helpers/cognito-auth-helper.d.ts +5 -5
  620. package/dist/esm/helpers/cognito-auth-helper.js +10 -10
  621. package/dist/esm/helpers/index.d.ts +12 -12
  622. package/dist/esm/helpers/index.js +12 -12
  623. package/dist/esm/helpers/input-validation-helper.d.ts +3 -3
  624. package/dist/esm/helpers/input-validation-helper.js +18 -18
  625. package/dist/esm/helpers/logging-helper.d.ts +16 -16
  626. package/dist/esm/helpers/logging-helper.js +56 -56
  627. package/dist/esm/helpers/order-calculation-helper.d.ts +13 -13
  628. package/dist/esm/helpers/order-calculation-helper.js +111 -111
  629. package/dist/esm/helpers/public-api-response-helper.d.ts +21 -21
  630. package/dist/esm/helpers/public-api-response-helper.js +38 -38
  631. package/dist/esm/helpers/response-helper.d.ts +18 -18
  632. package/dist/esm/helpers/response-helper.js +37 -37
  633. package/dist/esm/helpers/shopify-helper.d.ts +9 -9
  634. package/dist/esm/helpers/shopify-helper.js +21 -21
  635. package/dist/esm/helpers/sqs-utils.d.ts +6 -6
  636. package/dist/esm/helpers/sqs-utils.js +9 -9
  637. package/dist/esm/index.d.ts +7 -7
  638. package/dist/esm/index.js +7 -7
  639. package/dist/esm/libs/api-router/index.d.ts +2 -2
  640. package/dist/esm/libs/api-router/index.js +2 -2
  641. package/dist/esm/libs/api-router/public-api-router.d.ts +3 -3
  642. package/dist/esm/libs/api-router/public-api-router.js +32 -32
  643. package/dist/esm/libs/api-router/route-matcher.d.ts +21 -21
  644. package/dist/esm/libs/api-router/route-matcher.js +30 -30
  645. package/dist/esm/libs/click-id-parser.d.ts +23 -23
  646. package/dist/esm/libs/click-id-parser.js +45 -45
  647. package/dist/esm/libs/compression.d.ts +2 -2
  648. package/dist/esm/libs/compression.js +25 -25
  649. package/dist/esm/libs/contacts.d.ts +7 -7
  650. package/dist/esm/libs/contacts.js +143 -143
  651. package/dist/esm/libs/cookie.d.ts +17 -17
  652. package/dist/esm/libs/cookie.js +70 -70
  653. package/dist/esm/libs/crypto.d.ts +4 -4
  654. package/dist/esm/libs/crypto.js +15 -15
  655. package/dist/esm/libs/csv.d.ts +2 -2
  656. package/dist/esm/libs/csv.js +30 -30
  657. package/dist/esm/libs/currency.d.ts +1 -1
  658. package/dist/esm/libs/currency.js +22 -22
  659. package/dist/esm/libs/dates.d.ts +12 -12
  660. package/dist/esm/libs/dates.js +83 -83
  661. package/dist/esm/libs/domain.d.ts +2 -2
  662. package/dist/esm/libs/domain.js +33 -33
  663. package/dist/esm/libs/emails.d.ts +8 -8
  664. package/dist/esm/libs/emails.js +146 -146
  665. package/dist/esm/libs/http-error.d.ts +21 -21
  666. package/dist/esm/libs/http-error.js +59 -59
  667. package/dist/esm/libs/http-status-codes.d.ts +58 -58
  668. package/dist/esm/libs/http-status-codes.js +59 -59
  669. package/dist/esm/libs/index.d.ts +19 -19
  670. package/dist/esm/libs/index.js +19 -19
  671. package/dist/esm/libs/numbers.d.ts +1 -1
  672. package/dist/esm/libs/numbers.js +11 -11
  673. package/dist/esm/libs/referrer-parser/index.d.ts +2 -2
  674. package/dist/esm/libs/referrer-parser/index.js +2 -2
  675. package/dist/esm/libs/referrer-parser/referrer-data.d.ts +9 -9
  676. package/dist/esm/libs/referrer-parser/referrer-data.js +3304 -3304
  677. package/dist/esm/libs/referrer-parser/referrer-parser-util.d.ts +20 -20
  678. package/dist/esm/libs/referrer-parser/referrer-parser-util.js +124 -124
  679. package/dist/esm/libs/strings.d.ts +3 -3
  680. package/dist/esm/libs/strings.js +40 -40
  681. package/dist/esm/libs/traits.d.ts +6 -6
  682. package/dist/esm/libs/traits.js +54 -54
  683. package/dist/esm/libs/url.d.ts +1 -1
  684. package/dist/esm/libs/url.js +9 -9
  685. package/dist/esm/services/acuity-api-service.d.ts +9 -9
  686. package/dist/esm/services/acuity-api-service.js +69 -69
  687. package/dist/esm/services/cache/generic-cached-object.d.ts +5 -5
  688. package/dist/esm/services/cache/generic-cached-object.js +1 -1
  689. package/dist/esm/services/cache/index.d.ts +1 -1
  690. package/dist/esm/services/cache/index.js +1 -1
  691. package/dist/esm/services/cache/product-cache-service.d.ts +21 -21
  692. package/dist/esm/services/cache/product-cache-service.js +68 -68
  693. package/dist/esm/services/cost/cost-calculation-types.d.ts +69 -69
  694. package/dist/esm/services/cost/cost-calculation-types.js +15 -15
  695. package/dist/esm/services/cost/cost-calculator-service.d.ts +24 -24
  696. package/dist/esm/services/cost/cost-calculator-service.js +456 -456
  697. package/dist/esm/services/cost/cost-currency-service.d.ts +6 -6
  698. package/dist/esm/services/cost/cost-currency-service.js +84 -84
  699. package/dist/esm/services/cost/cost-filter-service.d.ts +10 -10
  700. package/dist/esm/services/cost/cost-filter-service.js +118 -118
  701. package/dist/esm/services/cost/index.d.ts +5 -5
  702. package/dist/esm/services/cost/index.js +5 -5
  703. package/dist/esm/services/cost/order-cost/index.d.ts +2 -2
  704. package/dist/esm/services/cost/order-cost/index.js +2 -2
  705. package/dist/esm/services/cost/order-cost/order-cost-resolution-service.d.ts +23 -23
  706. package/dist/esm/services/cost/order-cost/order-cost-resolution-service.js +287 -287
  707. package/dist/esm/services/cost/order-cost/order-cost-resolution-types.d.ts +31 -31
  708. package/dist/esm/services/cost/order-cost/order-cost-resolution-types.js +1 -1
  709. package/dist/esm/services/currency-exchange-rate-lookup-service.d.ts +12 -12
  710. package/dist/esm/services/currency-exchange-rate-lookup-service.js +90 -90
  711. package/dist/esm/services/db/accounts-db-service.d.ts +9 -9
  712. package/dist/esm/services/db/accounts-db-service.js +29 -29
  713. package/dist/esm/services/db/api-keys-db-service.d.ts +10 -10
  714. package/dist/esm/services/db/api-keys-db-service.js +32 -32
  715. package/dist/esm/services/db/contact-enrichments-db-service.d.ts +15 -15
  716. package/dist/esm/services/db/contact-enrichments-db-service.js +90 -90
  717. package/dist/esm/services/db/currency-exchange-rates-db-service.d.ts +21 -21
  718. package/dist/esm/services/db/currency-exchange-rates-db-service.js +35 -35
  719. package/dist/esm/services/db/custom-measures-db-service.d.ts +14 -14
  720. package/dist/esm/services/db/custom-measures-db-service.js +44 -44
  721. package/dist/esm/services/db/destinations-db-service.d.ts +13 -13
  722. package/dist/esm/services/db/destinations-db-service.js +70 -70
  723. package/dist/esm/services/db/identity-cache-db-service.d.ts +28 -28
  724. package/dist/esm/services/db/identity-cache-db-service.js +313 -313
  725. package/dist/esm/services/db/identity-cache-dynamodb-service/constants.d.ts +3 -3
  726. package/dist/esm/services/db/identity-cache-dynamodb-service/constants.js +3 -3
  727. package/dist/esm/services/db/identity-cache-dynamodb-service/identity-cache-dynamodb-db-service.d.ts +20 -20
  728. package/dist/esm/services/db/identity-cache-dynamodb-service/identity-cache-dynamodb-db-service.js +358 -358
  729. package/dist/esm/services/db/identity-cache-dynamodb-service/identity-gateway-service.d.ts +23 -23
  730. package/dist/esm/services/db/identity-cache-dynamodb-service/identity-gateway-service.js +218 -218
  731. package/dist/esm/services/db/identity-cache-dynamodb-service/index.d.ts +4 -4
  732. package/dist/esm/services/db/identity-cache-dynamodb-service/index.js +4 -4
  733. package/dist/esm/services/db/identity-cache-dynamodb-service/key-builders.d.ts +12 -12
  734. package/dist/esm/services/db/identity-cache-dynamodb-service/key-builders.js +23 -23
  735. package/dist/esm/services/db/identity-cache-dynamodb-service/types.d.ts +71 -71
  736. package/dist/esm/services/db/identity-cache-dynamodb-service/types.js +25 -25
  737. package/dist/esm/services/db/index.d.ts +22 -22
  738. package/dist/esm/services/db/index.js +22 -22
  739. package/dist/esm/services/db/log-events-db-service.d.ts +11 -11
  740. package/dist/esm/services/db/log-events-db-service.js +177 -177
  741. package/dist/esm/services/db/pixels-db-service.d.ts +8 -8
  742. package/dist/esm/services/db/pixels-db-service.js +31 -31
  743. package/dist/esm/services/db/products-db-service-types.d.ts +10 -10
  744. package/dist/esm/services/db/products-db-service-types.js +1 -1
  745. package/dist/esm/services/db/products-db-service.d.ts +19 -19
  746. package/dist/esm/services/db/products-db-service.js +277 -277
  747. package/dist/esm/services/db/purchasable-contacts-db-service.d.ts +9 -9
  748. package/dist/esm/services/db/purchasable-contacts-db-service.js +39 -39
  749. package/dist/esm/services/db/purchased-contacts/index.d.ts +2 -2
  750. package/dist/esm/services/db/purchased-contacts/index.js +2 -2
  751. package/dist/esm/services/db/purchased-contacts/purchased-contacts-db-service.d.ts +18 -18
  752. package/dist/esm/services/db/purchased-contacts/purchased-contacts-db-service.js +148 -148
  753. package/dist/esm/services/db/purchased-contacts/types.d.ts +11 -11
  754. package/dist/esm/services/db/purchased-contacts/types.js +1 -1
  755. package/dist/esm/services/db/shopify-app-installs-db-service.d.ts +10 -10
  756. package/dist/esm/services/db/shopify-app-installs-db-service.js +48 -48
  757. package/dist/esm/services/db/shopify-products-cache-db-service.d.ts +16 -16
  758. package/dist/esm/services/db/shopify-products-cache-db-service.js +66 -66
  759. package/dist/esm/services/db/subscriptions-db-service.d.ts +11 -11
  760. package/dist/esm/services/db/subscriptions-db-service.js +34 -34
  761. package/dist/esm/services/db/tracking-events-db-service.d.ts +21 -21
  762. package/dist/esm/services/db/tracking-events-db-service.js +184 -184
  763. package/dist/esm/services/db/user-accounts-db-service.d.ts +7 -7
  764. package/dist/esm/services/db/user-accounts-db-service.js +13 -13
  765. package/dist/esm/services/email-verification/contact-email-verification-service.d.ts +7 -7
  766. package/dist/esm/services/email-verification/contact-email-verification-service.js +97 -97
  767. package/dist/esm/services/email-verification/email-verification-service.d.ts +19 -19
  768. package/dist/esm/services/email-verification/email-verification-service.js +127 -127
  769. package/dist/esm/services/email-verification/index.d.ts +2 -2
  770. package/dist/esm/services/email-verification/index.js +2 -2
  771. package/dist/esm/services/eventbridge-integration-service.d.ts +9 -9
  772. package/dist/esm/services/eventbridge-integration-service.js +24 -24
  773. package/dist/esm/services/events/build-collect-queue-tracking-event.d.ts +11 -11
  774. package/dist/esm/services/events/build-collect-queue-tracking-event.js +19 -19
  775. package/dist/esm/services/events/collect-queue-tracking-service.d.ts +12 -12
  776. package/dist/esm/services/events/collect-queue-tracking-service.js +18 -18
  777. package/dist/esm/services/events/index.d.ts +5 -5
  778. package/dist/esm/services/events/index.js +5 -5
  779. package/dist/esm/services/events/log-event-service.d.ts +19 -19
  780. package/dist/esm/services/events/log-event-service.js +73 -73
  781. package/dist/esm/services/events/metric-event-service.d.ts +9 -9
  782. package/dist/esm/services/events/metric-event-service.js +45 -45
  783. package/dist/esm/services/events/tracking-event-sqs-service.d.ts +8 -8
  784. package/dist/esm/services/events/tracking-event-sqs-service.js +32 -32
  785. package/dist/esm/services/generic-cache-service.d.ts +7 -7
  786. package/dist/esm/services/generic-cache-service.js +29 -29
  787. package/dist/esm/services/index.d.ts +11 -11
  788. package/dist/esm/services/index.js +11 -11
  789. package/dist/esm/services/ipdata-lookup-service.d.ts +20 -20
  790. package/dist/esm/services/ipdata-lookup-service.js +108 -108
  791. package/dist/esm/services/shopify/index.d.ts +2 -2
  792. package/dist/esm/services/shopify/index.js +2 -2
  793. package/dist/esm/services/shopify/products/index.d.ts +1 -1
  794. package/dist/esm/services/shopify/products/index.js +1 -1
  795. package/dist/esm/services/shopify/products/shopify-products-serviceV2.d.ts +17 -17
  796. package/dist/esm/services/shopify/products/shopify-products-serviceV2.js +108 -108
  797. package/dist/esm/services/shopify/shopify-graphql-transformer.d.ts +8 -8
  798. package/dist/esm/services/shopify/shopify-graphql-transformer.js +138 -138
  799. package/dist/esm/types/acuity-types.d.ts +74 -74
  800. package/dist/esm/types/acuity-types.js +1 -1
  801. package/dist/esm/types/api-response.d.ts +6 -6
  802. package/dist/esm/types/api-response.js +1 -1
  803. package/dist/esm/types/index.d.ts +6 -6
  804. package/dist/esm/types/index.js +6 -6
  805. package/dist/esm/types/internal-events/event-detail-types.d.ts +20 -20
  806. package/dist/esm/types/internal-events/event-detail-types.js +24 -24
  807. package/dist/esm/types/internal-events/index.d.ts +1 -1
  808. package/dist/esm/types/internal-events/index.js +1 -1
  809. package/dist/esm/types/open-exchange-rates-types.d.ts +10 -10
  810. package/dist/esm/types/open-exchange-rates-types.js +1 -1
  811. package/dist/esm/types/public-api-types.d.ts +24 -24
  812. package/dist/esm/types/public-api-types.js +10 -10
  813. package/dist/esm/types/shopify-graphql-types/admin.generated.d.ts +123 -123
  814. package/dist/esm/types/shopify-graphql-types/admin.generated.js +1 -1
  815. package/dist/esm/types/shopify-graphql-types/admin.types.d.ts +26289 -26289
  816. package/dist/esm/types/shopify-graphql-types/admin.types.js +5299 -5299
  817. package/dist/esm/types/shopify-graphql-types/index.d.ts +2 -2
  818. package/dist/esm/types/shopify-graphql-types/index.js +2 -2
  819. package/dist/esm/types/shopify-rest-types.d.ts +767 -767
  820. package/dist/esm/types/shopify-rest-types.js +1 -1
  821. package/dist/esm/utils/compression.d.ts +36 -36
  822. package/dist/esm/utils/compression.js +187 -187
  823. package/dist/esm/utils/custom-measure-formula-utils.d.ts +6 -6
  824. package/dist/esm/utils/custom-measure-formula-utils.js +201 -201
  825. package/dist/esm/utils/index.d.ts +4 -4
  826. package/dist/esm/utils/index.js +4 -4
  827. package/dist/esm/utils/retry-envelope.d.ts +12 -12
  828. package/dist/esm/utils/retry-envelope.js +22 -22
  829. package/dist/esm/utils/size.d.ts +2 -2
  830. package/dist/esm/utils/size.js +44 -44
  831. package/package.json +136 -136
@@ -1,50 +1,50 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.parseClickId = exports.ClickIdDictionary = exports.CLICK_NETWORK = void 0;
4
- const at_shared_utils_1 = require("@adtrackify/at-shared-utils");
5
- const helpers_1 = require("../helpers");
6
- var CLICK_NETWORK;
7
- (function (CLICK_NETWORK) {
8
- CLICK_NETWORK["GOOGLE"] = "Google";
9
- CLICK_NETWORK["FACEBOOK"] = "Facebook";
10
- CLICK_NETWORK["TIKTOK"] = "TikTok";
11
- CLICK_NETWORK["TWITTER"] = "Twitter";
12
- CLICK_NETWORK["SNAPCHAT"] = "Snapchat";
13
- CLICK_NETWORK["TABOOLA"] = "Taboola";
14
- CLICK_NETWORK["OUTBRAIN"] = "Outbrain";
15
- CLICK_NETWORK["MICROSOFT"] = "Microsoft";
16
- })(CLICK_NETWORK = exports.CLICK_NETWORK || (exports.CLICK_NETWORK = {}));
17
- exports.ClickIdDictionary = {
18
- gclid: CLICK_NETWORK.GOOGLE,
19
- dclid: CLICK_NETWORK.GOOGLE,
20
- gbraid: CLICK_NETWORK.GOOGLE,
21
- wbraid: CLICK_NETWORK.GOOGLE,
22
- fbclid: CLICK_NETWORK.FACEBOOK,
23
- ttclid: CLICK_NETWORK.TIKTOK,
24
- twclid: CLICK_NETWORK.TWITTER,
25
- sccid: CLICK_NETWORK.SNAPCHAT,
26
- taboola_click_id: CLICK_NETWORK.TABOOLA,
27
- ob_click_id: CLICK_NETWORK.OUTBRAIN,
28
- microsoftclickid: CLICK_NETWORK.MICROSOFT,
29
- };
30
- const parseClickId = (qsp) => {
31
- try {
32
- if (!(0, at_shared_utils_1.isEmpty)(qsp)) {
33
- for (const item of Object.entries(exports.ClickIdDictionary)) {
34
- if (qsp.has(item?.[0])) {
35
- return {
36
- mktClickParam: item[0],
37
- mktClickId: qsp.get(item[0]),
38
- mktClickNetwork: item[1],
39
- };
40
- }
41
- }
42
- }
43
- }
44
- catch (error) {
45
- helpers_1.Logger.warn('Unable to parse click ID', { error });
46
- return undefined;
47
- }
48
- };
49
- exports.parseClickId = parseClickId;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.parseClickId = exports.ClickIdDictionary = exports.CLICK_NETWORK = void 0;
4
+ const at_shared_utils_1 = require("@adtrackify/at-shared-utils");
5
+ const helpers_1 = require("../helpers");
6
+ var CLICK_NETWORK;
7
+ (function (CLICK_NETWORK) {
8
+ CLICK_NETWORK["GOOGLE"] = "Google";
9
+ CLICK_NETWORK["FACEBOOK"] = "Facebook";
10
+ CLICK_NETWORK["TIKTOK"] = "TikTok";
11
+ CLICK_NETWORK["TWITTER"] = "Twitter";
12
+ CLICK_NETWORK["SNAPCHAT"] = "Snapchat";
13
+ CLICK_NETWORK["TABOOLA"] = "Taboola";
14
+ CLICK_NETWORK["OUTBRAIN"] = "Outbrain";
15
+ CLICK_NETWORK["MICROSOFT"] = "Microsoft";
16
+ })(CLICK_NETWORK = exports.CLICK_NETWORK || (exports.CLICK_NETWORK = {}));
17
+ exports.ClickIdDictionary = {
18
+ gclid: CLICK_NETWORK.GOOGLE,
19
+ dclid: CLICK_NETWORK.GOOGLE,
20
+ gbraid: CLICK_NETWORK.GOOGLE,
21
+ wbraid: CLICK_NETWORK.GOOGLE,
22
+ fbclid: CLICK_NETWORK.FACEBOOK,
23
+ ttclid: CLICK_NETWORK.TIKTOK,
24
+ twclid: CLICK_NETWORK.TWITTER,
25
+ sccid: CLICK_NETWORK.SNAPCHAT,
26
+ taboola_click_id: CLICK_NETWORK.TABOOLA,
27
+ ob_click_id: CLICK_NETWORK.OUTBRAIN,
28
+ microsoftclickid: CLICK_NETWORK.MICROSOFT,
29
+ };
30
+ const parseClickId = (qsp) => {
31
+ try {
32
+ if (!(0, at_shared_utils_1.isEmpty)(qsp)) {
33
+ for (const item of Object.entries(exports.ClickIdDictionary)) {
34
+ if (qsp.has(item?.[0])) {
35
+ return {
36
+ mktClickParam: item[0],
37
+ mktClickId: qsp.get(item[0]),
38
+ mktClickNetwork: item[1],
39
+ };
40
+ }
41
+ }
42
+ }
43
+ }
44
+ catch (error) {
45
+ helpers_1.Logger.warn('Unable to parse click ID', { error });
46
+ return undefined;
47
+ }
48
+ };
49
+ exports.parseClickId = parseClickId;
50
50
  //# sourceMappingURL=click-id-parser.js.map
@@ -1,2 +1,2 @@
1
- export declare const compressJSON: (jsonObject: any) => string | null;
2
- export declare const decompressJSON: (compressedJSONString: string) => any | null;
1
+ export declare const compressJSON: (jsonObject: any) => string | null;
2
+ export declare const decompressJSON: (compressedJSONString: string) => any | null;
@@ -1,34 +1,34 @@
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
- exports.decompressJSON = exports.compressJSON = void 0;
7
- const pako_1 = __importDefault(require("pako"));
8
- const helpers_1 = require("../helpers");
9
- const compressJSON = (jsonObject) => {
10
- try {
11
- const jsonString = JSON.stringify(jsonObject, null, '');
12
- const deflatedData = pako_1.default.deflate(jsonString, { level: 9 });
13
- const compressedJSONString = btoa(String.fromCharCode(...deflatedData));
14
- return compressedJSONString;
15
- }
16
- catch (error) {
17
- helpers_1.Logger.error('Failed to compress json', { error, jsonObject });
18
- return null;
19
- }
20
- };
21
- exports.compressJSON = compressJSON;
22
- const decompressJSON = (compressedJSONString) => {
23
- try {
24
- const decodedData = Uint8Array.from(atob(compressedJSONString), (c) => c.charCodeAt(0));
25
- const decompressedJSON = pako_1.default.inflate(decodedData, { to: 'string' });
26
- return JSON.parse(decompressedJSON);
27
- }
28
- catch (error) {
29
- helpers_1.Logger.error('Failed to decompress json', { error, compressedJSONString });
30
- return null;
31
- }
32
- };
33
- exports.decompressJSON = decompressJSON;
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
+ exports.decompressJSON = exports.compressJSON = void 0;
7
+ const pako_1 = __importDefault(require("pako"));
8
+ const helpers_1 = require("../helpers");
9
+ const compressJSON = (jsonObject) => {
10
+ try {
11
+ const jsonString = JSON.stringify(jsonObject, null, '');
12
+ const deflatedData = pako_1.default.deflate(jsonString, { level: 9 });
13
+ const compressedJSONString = btoa(String.fromCharCode(...deflatedData));
14
+ return compressedJSONString;
15
+ }
16
+ catch (error) {
17
+ helpers_1.Logger.error('Failed to compress json', { error, jsonObject });
18
+ return null;
19
+ }
20
+ };
21
+ exports.compressJSON = compressJSON;
22
+ const decompressJSON = (compressedJSONString) => {
23
+ try {
24
+ const decodedData = Uint8Array.from(atob(compressedJSONString), (c) => c.charCodeAt(0));
25
+ const decompressedJSON = pako_1.default.inflate(decodedData, { to: 'string' });
26
+ return JSON.parse(decompressedJSON);
27
+ }
28
+ catch (error) {
29
+ helpers_1.Logger.error('Failed to decompress json', { error, compressedJSONString });
30
+ return null;
31
+ }
32
+ };
33
+ exports.decompressJSON = decompressJSON;
34
34
  //# sourceMappingURL=compression.js.map
@@ -1,7 +1,7 @@
1
- import { CONTACT_SOURCE_ID, ThirdPartyContact, ThirdPartyTraits } from '@adtrackify/at-tracking-event-types';
2
- export declare const buildThirdPartyTraits: (contacts: ThirdPartyContact[], sourceId: CONTACT_SOURCE_ID, contactGroupId?: string) => ThirdPartyTraits | null;
3
- export declare const normalizeThirdPartyContacts: (contacts: ThirdPartyContact[]) => ThirdPartyContact[];
4
- export declare const removeDuplicateContactsByEmail: <T extends ThirdPartyContact>(contacts: T[], emailKey: keyof T) => T[];
5
- export declare const removeInvalidContactsByEmail: (contacts: ThirdPartyContact[], emailKey: keyof ThirdPartyContact) => ThirdPartyContact[];
6
- export declare const removeDuplicateNonDottedGmailContacts: (contacts: ThirdPartyContact[]) => ThirdPartyContact[];
7
- export declare const removeDuplicateDottedEmailVariationContacts: (contacts: ThirdPartyContact[]) => ThirdPartyContact[];
1
+ import { CONTACT_SOURCE_ID, ThirdPartyContact, ThirdPartyTraits } from '@adtrackify/at-tracking-event-types';
2
+ export declare const buildThirdPartyTraits: (contacts: ThirdPartyContact[], sourceId: CONTACT_SOURCE_ID, contactGroupId?: string) => ThirdPartyTraits | null;
3
+ export declare const normalizeThirdPartyContacts: (contacts: ThirdPartyContact[]) => ThirdPartyContact[];
4
+ export declare const removeDuplicateContactsByEmail: <T extends ThirdPartyContact>(contacts: T[], emailKey: keyof T) => T[];
5
+ export declare const removeInvalidContactsByEmail: (contacts: ThirdPartyContact[], emailKey: keyof ThirdPartyContact) => ThirdPartyContact[];
6
+ export declare const removeDuplicateNonDottedGmailContacts: (contacts: ThirdPartyContact[]) => ThirdPartyContact[];
7
+ export declare const removeDuplicateDottedEmailVariationContacts: (contacts: ThirdPartyContact[]) => ThirdPartyContact[];
@@ -1,153 +1,153 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.removeDuplicateDottedEmailVariationContacts = exports.removeDuplicateNonDottedGmailContacts = exports.removeInvalidContactsByEmail = exports.removeDuplicateContactsByEmail = exports.normalizeThirdPartyContacts = exports.buildThirdPartyTraits = void 0;
4
- const at_shared_utils_1 = require("@adtrackify/at-shared-utils");
5
- const helpers_1 = require("../helpers");
6
- const crypto_js_1 = require("./crypto.js");
7
- const emails_js_1 = require("./emails.js");
8
- const strings_js_1 = require("./strings.js");
9
- const traits_js_1 = require("./traits.js");
10
- const buildThirdPartyTraits = (contacts, sourceId, contactGroupId) => {
11
- try {
12
- const emails = contacts.map((contact) => contact.emailAddress).filter((email) => !!email);
13
- const phones = contacts
14
- .flatMap((contact) => [contact.mobilePhone1, contact.homePhone1])
15
- .filter((phone) => !!phone)
16
- .map((phone) => (0, traits_js_1.safeParsePhone)(phone))
17
- .filter((phone) => !!phone);
18
- const now = Date.now();
19
- return {
20
- ...(contactGroupId ? { cgId: contactGroupId } : {}),
21
- si: sourceId,
22
- esha2: (0, at_shared_utils_1.getCleanedArray)(emails).map((email) => (0, crypto_js_1.generateSha256Hash)(email)),
23
- psha2: (0, at_shared_utils_1.getCleanedArray)(phones).map((phone) => (0, crypto_js_1.generateSha256Hash)(phone)),
24
- cra: now,
25
- upa: now,
26
- };
27
- }
28
- catch (error) {
29
- helpers_1.Logger.error('Failed to build third party traits', { error, sourceId });
30
- return null;
31
- }
32
- };
33
- exports.buildThirdPartyTraits = buildThirdPartyTraits;
34
- const normalizeThirdPartyContacts = (contacts) => {
35
- try {
36
- return contacts.map((contact) => {
37
- return {
38
- ...contact,
39
- emailAddress: contact.emailAddress?.trim()?.toLowerCase(),
40
- firstName: contact?.firstName ? (0, strings_js_1.capitalizeEachWord)(contact?.firstName?.trim()) : undefined,
41
- lastName: contact?.lastName ? (0, strings_js_1.capitalizeEachWord)(contact?.lastName?.trim()) : undefined,
42
- };
43
- });
44
- }
45
- catch (error) {
46
- helpers_1.Logger.error('Failed to normalize third party contacts', { error });
47
- return contacts;
48
- }
49
- };
50
- exports.normalizeThirdPartyContacts = normalizeThirdPartyContacts;
51
- const removeDuplicateContactsByEmail = (contacts, emailKey) => {
52
- return contacts.filter((contact, index, self) => index === self.findIndex((t) => t[emailKey] === contact[emailKey]));
53
- };
54
- exports.removeDuplicateContactsByEmail = removeDuplicateContactsByEmail;
55
- const removeInvalidContactsByEmail = (contacts, emailKey) => {
56
- return contacts.filter((contact) => contact[emailKey] && contact?.[emailKey]?.trim() !== '' && (0, emails_js_1.validateEmail)(contact[emailKey]));
57
- };
58
- exports.removeInvalidContactsByEmail = removeInvalidContactsByEmail;
59
- const removeDuplicateNonDottedGmailContacts = (contacts) => {
60
- try {
61
- if (!contacts || contacts.length === 0) {
62
- return contacts;
63
- }
64
- const uniqueContacts = [];
65
- for (const contact of contacts) {
66
- if (!contact.emailAddress) {
67
- uniqueContacts.push(contact);
68
- }
69
- else if (!contact?.emailAddress?.includes('@gmail.com')) {
70
- uniqueContacts.push(contact);
71
- }
72
- else {
73
- const parts = contact?.emailAddress?.split('@') ?? [];
74
- const localPart = parts[0];
75
- const normalizedEmail = (0, emails_js_1.normalizeGmailAddress)(contact.emailAddress);
76
- const existingIndex = uniqueContacts.findIndex((x) => x.emailAddress &&
77
- (0, emails_js_1.normalizeGmailAddress)(x.emailAddress) === normalizedEmail &&
78
- x.emailAddress !== contact.emailAddress);
79
- const isDotted = localPart.includes('.');
80
- if (existingIndex !== -1) {
81
- const existingContact = uniqueContacts[existingIndex];
82
- const existingIsDotted = existingContact.emailAddress?.split('@')[0]?.includes('.');
83
- if (isDotted && !existingIsDotted) {
84
- helpers_1.Logger.info('contact acquisition - Replacing non-dotted Gmail with dotted Gmail contact', {
85
- replacing: existingContact,
86
- with: contact,
87
- });
88
- uniqueContacts.splice(existingIndex, 1, contact);
89
- }
90
- else {
91
- helpers_1.Logger.info('contact acquisition - Duplicate Gmail contact found -- skipping', {
92
- contact,
93
- existingContact,
94
- });
95
- }
96
- }
97
- else {
98
- uniqueContacts.push(contact);
99
- }
100
- }
101
- }
102
- helpers_1.Logger.info('contact acquisition - Removed non-dotted duplicate gmail contacts', {
103
- originalCount: contacts.length,
104
- uniqueCount: uniqueContacts.length,
105
- removedCount: contacts.length - uniqueContacts.length,
106
- });
107
- return uniqueContacts;
108
- }
109
- catch (error) {
110
- helpers_1.Logger.error('contact acquisition - Failed to remove non-dotted duplicate gmail contacts', { error });
111
- return contacts;
112
- }
113
- };
114
- exports.removeDuplicateNonDottedGmailContacts = removeDuplicateNonDottedGmailContacts;
115
- const removeDuplicateDottedEmailVariationContacts = (contacts) => {
116
- try {
117
- if (!contacts || contacts.length === 0) {
118
- return contacts;
119
- }
120
- const seenNormalizedEmails = new Map();
121
- const uniqueContacts = [];
122
- for (const contact of contacts) {
123
- if (!contact.emailAddress) {
124
- uniqueContacts.push(contact);
125
- continue;
126
- }
127
- const normalizedEmail = (0, emails_js_1.normalizeGmailAddress)(contact.emailAddress);
128
- contact.emailAddress = normalizedEmail;
129
- if (!seenNormalizedEmails.has(normalizedEmail)) {
130
- seenNormalizedEmails.set(normalizedEmail, contact);
131
- uniqueContacts.push(contact);
132
- }
133
- else {
134
- helpers_1.Logger.info('contact acquisition - Duplicate dotted email gmail variation found -- skipping', {
135
- contact,
136
- normalizedEmail,
137
- });
138
- }
139
- }
140
- helpers_1.Logger.info('contact acquisition - Removed duplicate dotted email variations', {
141
- originalCount: contacts.length,
142
- uniqueCount: uniqueContacts.length,
143
- removedCount: contacts.length - uniqueContacts.length,
144
- });
145
- return uniqueContacts;
146
- }
147
- catch (error) {
148
- helpers_1.Logger.error('contact acquisition - Failed to remove duplicate dotted email variations', { error });
149
- return contacts;
150
- }
151
- };
152
- exports.removeDuplicateDottedEmailVariationContacts = removeDuplicateDottedEmailVariationContacts;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.removeDuplicateDottedEmailVariationContacts = exports.removeDuplicateNonDottedGmailContacts = exports.removeInvalidContactsByEmail = exports.removeDuplicateContactsByEmail = exports.normalizeThirdPartyContacts = exports.buildThirdPartyTraits = void 0;
4
+ const at_shared_utils_1 = require("@adtrackify/at-shared-utils");
5
+ const helpers_1 = require("../helpers");
6
+ const crypto_js_1 = require("./crypto.js");
7
+ const emails_js_1 = require("./emails.js");
8
+ const strings_js_1 = require("./strings.js");
9
+ const traits_js_1 = require("./traits.js");
10
+ const buildThirdPartyTraits = (contacts, sourceId, contactGroupId) => {
11
+ try {
12
+ const emails = contacts.map((contact) => contact.emailAddress).filter((email) => !!email);
13
+ const phones = contacts
14
+ .flatMap((contact) => [contact.mobilePhone1, contact.homePhone1])
15
+ .filter((phone) => !!phone)
16
+ .map((phone) => (0, traits_js_1.safeParsePhone)(phone))
17
+ .filter((phone) => !!phone);
18
+ const now = Date.now();
19
+ return {
20
+ ...(contactGroupId ? { cgId: contactGroupId } : {}),
21
+ si: sourceId,
22
+ esha2: (0, at_shared_utils_1.getCleanedArray)(emails).map((email) => (0, crypto_js_1.generateSha256Hash)(email)),
23
+ psha2: (0, at_shared_utils_1.getCleanedArray)(phones).map((phone) => (0, crypto_js_1.generateSha256Hash)(phone)),
24
+ cra: now,
25
+ upa: now,
26
+ };
27
+ }
28
+ catch (error) {
29
+ helpers_1.Logger.error('Failed to build third party traits', { error, sourceId });
30
+ return null;
31
+ }
32
+ };
33
+ exports.buildThirdPartyTraits = buildThirdPartyTraits;
34
+ const normalizeThirdPartyContacts = (contacts) => {
35
+ try {
36
+ return contacts.map((contact) => {
37
+ return {
38
+ ...contact,
39
+ emailAddress: contact.emailAddress?.trim()?.toLowerCase(),
40
+ firstName: contact?.firstName ? (0, strings_js_1.capitalizeEachWord)(contact?.firstName?.trim()) : undefined,
41
+ lastName: contact?.lastName ? (0, strings_js_1.capitalizeEachWord)(contact?.lastName?.trim()) : undefined,
42
+ };
43
+ });
44
+ }
45
+ catch (error) {
46
+ helpers_1.Logger.error('Failed to normalize third party contacts', { error });
47
+ return contacts;
48
+ }
49
+ };
50
+ exports.normalizeThirdPartyContacts = normalizeThirdPartyContacts;
51
+ const removeDuplicateContactsByEmail = (contacts, emailKey) => {
52
+ return contacts.filter((contact, index, self) => index === self.findIndex((t) => t[emailKey] === contact[emailKey]));
53
+ };
54
+ exports.removeDuplicateContactsByEmail = removeDuplicateContactsByEmail;
55
+ const removeInvalidContactsByEmail = (contacts, emailKey) => {
56
+ return contacts.filter((contact) => contact[emailKey] && contact?.[emailKey]?.trim() !== '' && (0, emails_js_1.validateEmail)(contact[emailKey]));
57
+ };
58
+ exports.removeInvalidContactsByEmail = removeInvalidContactsByEmail;
59
+ const removeDuplicateNonDottedGmailContacts = (contacts) => {
60
+ try {
61
+ if (!contacts || contacts.length === 0) {
62
+ return contacts;
63
+ }
64
+ const uniqueContacts = [];
65
+ for (const contact of contacts) {
66
+ if (!contact.emailAddress) {
67
+ uniqueContacts.push(contact);
68
+ }
69
+ else if (!contact?.emailAddress?.includes('@gmail.com')) {
70
+ uniqueContacts.push(contact);
71
+ }
72
+ else {
73
+ const parts = contact?.emailAddress?.split('@') ?? [];
74
+ const localPart = parts[0];
75
+ const normalizedEmail = (0, emails_js_1.normalizeGmailAddress)(contact.emailAddress);
76
+ const existingIndex = uniqueContacts.findIndex((x) => x.emailAddress &&
77
+ (0, emails_js_1.normalizeGmailAddress)(x.emailAddress) === normalizedEmail &&
78
+ x.emailAddress !== contact.emailAddress);
79
+ const isDotted = localPart.includes('.');
80
+ if (existingIndex !== -1) {
81
+ const existingContact = uniqueContacts[existingIndex];
82
+ const existingIsDotted = existingContact.emailAddress?.split('@')[0]?.includes('.');
83
+ if (isDotted && !existingIsDotted) {
84
+ helpers_1.Logger.info('contact acquisition - Replacing non-dotted Gmail with dotted Gmail contact', {
85
+ replacing: existingContact,
86
+ with: contact,
87
+ });
88
+ uniqueContacts.splice(existingIndex, 1, contact);
89
+ }
90
+ else {
91
+ helpers_1.Logger.info('contact acquisition - Duplicate Gmail contact found -- skipping', {
92
+ contact,
93
+ existingContact,
94
+ });
95
+ }
96
+ }
97
+ else {
98
+ uniqueContacts.push(contact);
99
+ }
100
+ }
101
+ }
102
+ helpers_1.Logger.info('contact acquisition - Removed non-dotted duplicate gmail contacts', {
103
+ originalCount: contacts.length,
104
+ uniqueCount: uniqueContacts.length,
105
+ removedCount: contacts.length - uniqueContacts.length,
106
+ });
107
+ return uniqueContacts;
108
+ }
109
+ catch (error) {
110
+ helpers_1.Logger.error('contact acquisition - Failed to remove non-dotted duplicate gmail contacts', { error });
111
+ return contacts;
112
+ }
113
+ };
114
+ exports.removeDuplicateNonDottedGmailContacts = removeDuplicateNonDottedGmailContacts;
115
+ const removeDuplicateDottedEmailVariationContacts = (contacts) => {
116
+ try {
117
+ if (!contacts || contacts.length === 0) {
118
+ return contacts;
119
+ }
120
+ const seenNormalizedEmails = new Map();
121
+ const uniqueContacts = [];
122
+ for (const contact of contacts) {
123
+ if (!contact.emailAddress) {
124
+ uniqueContacts.push(contact);
125
+ continue;
126
+ }
127
+ const normalizedEmail = (0, emails_js_1.normalizeGmailAddress)(contact.emailAddress);
128
+ contact.emailAddress = normalizedEmail;
129
+ if (!seenNormalizedEmails.has(normalizedEmail)) {
130
+ seenNormalizedEmails.set(normalizedEmail, contact);
131
+ uniqueContacts.push(contact);
132
+ }
133
+ else {
134
+ helpers_1.Logger.info('contact acquisition - Duplicate dotted email gmail variation found -- skipping', {
135
+ contact,
136
+ normalizedEmail,
137
+ });
138
+ }
139
+ }
140
+ helpers_1.Logger.info('contact acquisition - Removed duplicate dotted email variations', {
141
+ originalCount: contacts.length,
142
+ uniqueCount: uniqueContacts.length,
143
+ removedCount: contacts.length - uniqueContacts.length,
144
+ });
145
+ return uniqueContacts;
146
+ }
147
+ catch (error) {
148
+ helpers_1.Logger.error('contact acquisition - Failed to remove duplicate dotted email variations', { error });
149
+ return contacts;
150
+ }
151
+ };
152
+ exports.removeDuplicateDottedEmailVariationContacts = removeDuplicateDottedEmailVariationContacts;
153
153
  //# sourceMappingURL=contacts.js.map
@@ -1,17 +1,17 @@
1
- export declare enum SAME_SITE {
2
- STRICT = "Strict",
3
- LAX = "Lax",
4
- NONE = "None"
5
- }
6
- export interface CookieOptions {
7
- domain?: string;
8
- path?: string;
9
- maxAge?: number;
10
- expires?: string;
11
- secure?: boolean;
12
- httpOnly?: boolean;
13
- sameSite?: SAME_SITE;
14
- }
15
- export declare const createCookie: (name: string, value: string, options?: CookieOptions) => string;
16
- export declare const parseCookieHeader: (cookieHeader: string) => Record<string, string>;
17
- export declare const getCookiesWithPrefix: (cookies: Record<string, string>, prefix: string) => Record<string, string>;
1
+ export declare enum SAME_SITE {
2
+ STRICT = "Strict",
3
+ LAX = "Lax",
4
+ NONE = "None"
5
+ }
6
+ export interface CookieOptions {
7
+ domain?: string;
8
+ path?: string;
9
+ maxAge?: number;
10
+ expires?: string;
11
+ secure?: boolean;
12
+ httpOnly?: boolean;
13
+ sameSite?: SAME_SITE;
14
+ }
15
+ export declare const createCookie: (name: string, value: string, options?: CookieOptions) => string;
16
+ export declare const parseCookieHeader: (cookieHeader: string) => Record<string, string>;
17
+ export declare const getCookiesWithPrefix: (cookies: Record<string, string>, prefix: string) => Record<string, string>;