@adtrackify/at-tracking-event-types 4.17.2 → 4.17.4

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 (389) hide show
  1. package/README.md +12 -12
  2. package/dist/cjs/index.d.ts +1 -1
  3. package/dist/cjs/index.js +17 -17
  4. package/dist/cjs/package.json +3 -3
  5. package/dist/cjs/types/api/accounts/account-enums.d.ts +82 -82
  6. package/dist/cjs/types/api/accounts/account-enums.js +97 -97
  7. package/dist/cjs/types/api/accounts/account-types.d.ts +78 -78
  8. package/dist/cjs/types/api/accounts/account-types.js +2 -2
  9. package/dist/cjs/types/api/accounts/index.d.ts +3 -3
  10. package/dist/cjs/types/api/accounts/index.js +19 -19
  11. package/dist/cjs/types/api/accounts/user-account-types.d.ts +17 -17
  12. package/dist/cjs/types/api/accounts/user-account-types.js +2 -2
  13. package/dist/cjs/types/api/analytics/analytics-enums.d.ts +96 -96
  14. package/dist/cjs/types/api/analytics/analytics-enums.js +105 -105
  15. package/dist/cjs/types/api/analytics/event-tracking-types.d.ts +44 -44
  16. package/dist/cjs/types/api/analytics/event-tracking-types.js +3 -3
  17. package/dist/cjs/types/api/analytics/index.d.ts +3 -3
  18. package/dist/cjs/types/api/analytics/index.js +19 -19
  19. package/dist/cjs/types/api/analytics/query-types.d.ts +72 -72
  20. package/dist/cjs/types/api/analytics/query-types.js +2 -2
  21. package/dist/cjs/types/api/contact-acquisition/contact-acquisition.d.ts +106 -106
  22. package/dist/cjs/types/api/contact-acquisition/contact-acquisition.js +21 -21
  23. package/dist/cjs/types/api/contact-acquisition/email-verification.d.ts +30 -30
  24. package/dist/cjs/types/api/contact-acquisition/email-verification.js +11 -11
  25. package/dist/cjs/types/api/contact-acquisition/index.d.ts +6 -6
  26. package/dist/cjs/types/api/contact-acquisition/index.js +22 -22
  27. package/dist/cjs/types/api/contact-acquisition/purchased-contact.d.ts +35 -35
  28. package/dist/cjs/types/api/contact-acquisition/purchased-contact.js +8 -8
  29. package/dist/cjs/types/api/contact-acquisition/purchased-traits.d.ts +63 -63
  30. package/dist/cjs/types/api/contact-acquisition/purchased-traits.js +2 -2
  31. package/dist/cjs/types/api/contact-acquisition/third-party-contact.d.ts +44 -44
  32. package/dist/cjs/types/api/contact-acquisition/third-party-contact.js +2 -2
  33. package/dist/cjs/types/api/contact-acquisition/third-party-cookie-contact-acquisition.d.ts +6 -6
  34. package/dist/cjs/types/api/contact-acquisition/third-party-cookie-contact-acquisition.js +2 -2
  35. package/dist/cjs/types/api/dashboards/index.d.ts +1 -1
  36. package/dist/cjs/types/api/dashboards/index.js +17 -17
  37. package/dist/cjs/types/api/dashboards/widget.d.ts +127 -127
  38. package/dist/cjs/types/api/dashboards/widget.js +36 -36
  39. package/dist/cjs/types/api/destinations/custom-event-mapping.d.ts +71 -71
  40. package/dist/cjs/types/api/destinations/custom-event-mapping.js +40 -40
  41. package/dist/cjs/types/api/destinations/destination-catalog.d.ts +30 -30
  42. package/dist/cjs/types/api/destinations/destination-catalog.js +2 -2
  43. package/dist/cjs/types/api/destinations/destination-enums.d.ts +42 -42
  44. package/dist/cjs/types/api/destinations/destination-enums.js +48 -48
  45. package/dist/cjs/types/api/destinations/destinations.d.ts +69 -69
  46. package/dist/cjs/types/api/destinations/destinations.js +2 -2
  47. package/dist/cjs/types/api/destinations/index.d.ts +7 -7
  48. package/dist/cjs/types/api/destinations/index.js +23 -23
  49. package/dist/cjs/types/api/destinations/third-party-contact-acquisition-configs.d.ts +9 -9
  50. package/dist/cjs/types/api/destinations/third-party-contact-acquisition-configs.js +2 -2
  51. package/dist/cjs/types/api/destinations/third-party-destination-configs.d.ts +185 -185
  52. package/dist/cjs/types/api/destinations/third-party-destination-configs.js +23 -23
  53. package/dist/cjs/types/api/destinations/third-party-integration-configs.d.ts +68 -68
  54. package/dist/cjs/types/api/destinations/third-party-integration-configs.js +11 -11
  55. package/dist/cjs/types/api/emq/emq-enums.d.ts +58 -58
  56. package/dist/cjs/types/api/emq/emq-enums.js +68 -68
  57. package/dist/cjs/types/api/emq/emq-health.d.ts +19 -19
  58. package/dist/cjs/types/api/emq/emq-health.js +5 -5
  59. package/dist/cjs/types/api/emq/emq-types.d.ts +153 -153
  60. package/dist/cjs/types/api/emq/emq-types.js +7 -7
  61. package/dist/cjs/types/api/emq/index.d.ts +3 -3
  62. package/dist/cjs/types/api/emq/index.js +19 -19
  63. package/dist/cjs/types/api/feature.d.ts +229 -229
  64. package/dist/cjs/types/api/feature.js +199 -199
  65. package/dist/cjs/types/api/health/forwarding-health.d.ts +9 -9
  66. package/dist/cjs/types/api/health/forwarding-health.js +2 -2
  67. package/dist/cjs/types/api/health/health-condition-types.d.ts +48 -48
  68. package/dist/cjs/types/api/health/health-condition-types.js +8 -8
  69. package/dist/cjs/types/api/health/health-enums.d.ts +7 -7
  70. package/dist/cjs/types/api/health/health-enums.js +11 -11
  71. package/dist/cjs/types/api/health/health-status.d.ts +14 -14
  72. package/dist/cjs/types/api/health/health-status.js +2 -2
  73. package/dist/cjs/types/api/health/index.d.ts +5 -5
  74. package/dist/cjs/types/api/health/index.js +21 -21
  75. package/dist/cjs/types/api/health/pixel-health.d.ts +19 -19
  76. package/dist/cjs/types/api/health/pixel-health.js +2 -2
  77. package/dist/cjs/types/api/index.d.ts +15 -15
  78. package/dist/cjs/types/api/index.js +31 -31
  79. package/dist/cjs/types/api/logging/index.d.ts +1 -1
  80. package/dist/cjs/types/api/logging/index.js +17 -17
  81. package/dist/cjs/types/api/logging/logging-types.d.ts +22 -22
  82. package/dist/cjs/types/api/logging/logging-types.js +2 -2
  83. package/dist/cjs/types/api/measures/definitions/channel-measure-definitions.d.ts +2 -2
  84. package/dist/cjs/types/api/measures/definitions/channel-measure-definitions.js +1677 -1677
  85. package/dist/cjs/types/api/measures/definitions/core-measure-definitions.d.ts +2 -2
  86. package/dist/cjs/types/api/measures/definitions/core-measure-definitions.js +761 -446
  87. package/dist/cjs/types/api/measures/definitions/core-measure-definitions.js.map +1 -1
  88. package/dist/cjs/types/api/measures/definitions/emq-measure-definitions.d.ts +2 -2
  89. package/dist/cjs/types/api/measures/definitions/emq-measure-definitions.js +232 -232
  90. package/dist/cjs/types/api/measures/definitions/facebook-measure-definitions.d.ts +2 -2
  91. package/dist/cjs/types/api/measures/definitions/facebook-measure-definitions.js +1451 -1451
  92. package/dist/cjs/types/api/measures/definitions/google-measure-definitions.d.ts +2 -2
  93. package/dist/cjs/types/api/measures/definitions/google-measure-definitions.js +325 -325
  94. package/dist/cjs/types/api/measures/definitions/index.d.ts +13 -13
  95. package/dist/cjs/types/api/measures/definitions/index.js +29 -29
  96. package/dist/cjs/types/api/measures/definitions/measure-applicable-contexts.d.ts +9 -9
  97. package/dist/cjs/types/api/measures/definitions/measure-applicable-contexts.js +16 -16
  98. package/dist/cjs/types/api/measures/definitions/measure-categories.d.ts +19 -19
  99. package/dist/cjs/types/api/measures/definitions/measure-categories.js +23 -23
  100. package/dist/cjs/types/api/measures/definitions/measure-definitions.d.ts +44 -44
  101. package/dist/cjs/types/api/measures/definitions/measure-definitions.js +88 -88
  102. package/dist/cjs/types/api/measures/definitions/measure-value-type.d.ts +8 -8
  103. package/dist/cjs/types/api/measures/definitions/measure-value-type.js +12 -12
  104. package/dist/cjs/types/api/measures/definitions/shopify/shopify-measure-definitions.d.ts +2 -2
  105. package/dist/cjs/types/api/measures/definitions/shopify/shopify-measure-definitions.js +864 -864
  106. package/dist/cjs/types/api/measures/definitions/shopify/shopify-nc-measure-definitions.d.ts +2 -2
  107. package/dist/cjs/types/api/measures/definitions/shopify/shopify-nc-measure-definitions.js +450 -450
  108. package/dist/cjs/types/api/measures/definitions/shopify/shopify-rc-measure-definitions.d.ts +2 -2
  109. package/dist/cjs/types/api/measures/definitions/shopify/shopify-rc-measure-definitions.js +451 -451
  110. package/dist/cjs/types/api/measures/definitions/tracked-measure-definitions.d.ts +2 -2
  111. package/dist/cjs/types/api/measures/definitions/tracked-measure-definitions.js +509 -509
  112. package/dist/cjs/types/api/measures/index.d.ts +2 -2
  113. package/dist/cjs/types/api/measures/index.js +18 -18
  114. package/dist/cjs/types/api/measures/measures.d.ts +492 -471
  115. package/dist/cjs/types/api/measures/measures.js +496 -475
  116. package/dist/cjs/types/api/measures/measures.js.map +1 -1
  117. package/dist/cjs/types/api/notifications/index.d.ts +3 -3
  118. package/dist/cjs/types/api/notifications/index.js +19 -19
  119. package/dist/cjs/types/api/notifications/notification-enums.d.ts +52 -52
  120. package/dist/cjs/types/api/notifications/notification-enums.js +60 -60
  121. package/dist/cjs/types/api/notifications/notification-history.d.ts +27 -27
  122. package/dist/cjs/types/api/notifications/notification-history.js +2 -2
  123. package/dist/cjs/types/api/notifications/notification-settings.d.ts +21 -21
  124. package/dist/cjs/types/api/notifications/notification-settings.js +133 -133
  125. package/dist/cjs/types/api/promotion-code.d.ts +35 -35
  126. package/dist/cjs/types/api/promotion-code.js +9 -9
  127. package/dist/cjs/types/api/service-events/index.d.ts +3 -3
  128. package/dist/cjs/types/api/service-events/index.js +19 -19
  129. package/dist/cjs/types/api/service-events/service-event-details.d.ts +166 -166
  130. package/dist/cjs/types/api/service-events/service-event-details.js +2 -2
  131. package/dist/cjs/types/api/service-events/service-event-enums.d.ts +49 -49
  132. package/dist/cjs/types/api/service-events/service-event-enums.js +58 -58
  133. package/dist/cjs/types/api/service-events/service-event-wrappers.d.ts +26 -26
  134. package/dist/cjs/types/api/service-events/service-event-wrappers.js +2 -2
  135. package/dist/cjs/types/api/shopify/index.d.ts +2 -2
  136. package/dist/cjs/types/api/shopify/index.js +18 -18
  137. package/dist/cjs/types/api/shopify/shopify-enums.d.ts +10 -10
  138. package/dist/cjs/types/api/shopify/shopify-enums.js +14 -14
  139. package/dist/cjs/types/api/shopify/shopify-types.d.ts +32 -32
  140. package/dist/cjs/types/api/shopify/shopify-types.js +2 -2
  141. package/dist/cjs/types/api/subscriptions/index.d.ts +2 -2
  142. package/dist/cjs/types/api/subscriptions/index.js +18 -18
  143. package/dist/cjs/types/api/subscriptions/subscription-enums.d.ts +38 -38
  144. package/dist/cjs/types/api/subscriptions/subscription-enums.js +48 -48
  145. package/dist/cjs/types/api/subscriptions/subscription-types.d.ts +156 -156
  146. package/dist/cjs/types/api/subscriptions/subscription-types.js +2 -2
  147. package/dist/cjs/types/common/address.d.ts +22 -22
  148. package/dist/cjs/types/common/address.js +8 -8
  149. package/dist/cjs/types/common/currency.d.ts +1 -1
  150. package/dist/cjs/types/common/currency.js +63 -63
  151. package/dist/cjs/types/common/index.d.ts +2 -2
  152. package/dist/cjs/types/common/index.js +18 -18
  153. package/dist/cjs/types/costs/cost-types.d.ts +130 -0
  154. package/dist/cjs/types/costs/cost-types.js +69 -0
  155. package/dist/cjs/types/costs/cost-types.js.map +1 -0
  156. package/dist/cjs/types/costs/index.d.ts +1 -0
  157. package/dist/cjs/types/costs/index.js +18 -0
  158. package/dist/cjs/types/costs/index.js.map +1 -0
  159. package/dist/cjs/types/event/base/event-name-enum.d.ts +123 -123
  160. package/dist/cjs/types/event/base/event-name-enum.js +129 -129
  161. package/dist/cjs/types/event/base/event.d.ts +20 -20
  162. package/dist/cjs/types/event/base/event.js +10 -10
  163. package/dist/cjs/types/event/base/index.d.ts +2 -2
  164. package/dist/cjs/types/event/base/index.js +18 -18
  165. package/dist/cjs/types/event/context/event-context-identity.d.ts +32 -32
  166. package/dist/cjs/types/event/context/event-context-identity.js +2 -2
  167. package/dist/cjs/types/event/context/event-context.d.ts +201 -201
  168. package/dist/cjs/types/event/context/event-context.js +2 -2
  169. package/dist/cjs/types/event/context/index.d.ts +2 -2
  170. package/dist/cjs/types/event/context/index.js +18 -18
  171. package/dist/cjs/types/event/index.d.ts +6 -6
  172. package/dist/cjs/types/event/index.js +22 -22
  173. package/dist/cjs/types/event/log-event.d.ts +35 -35
  174. package/dist/cjs/types/event/log-event.js +22 -22
  175. package/dist/cjs/types/event/metric-event.d.ts +13 -13
  176. package/dist/cjs/types/event/metric-event.js +2 -2
  177. package/dist/cjs/types/event/saas-event-properties.d.ts +47 -47
  178. package/dist/cjs/types/event/saas-event-properties.js +10 -10
  179. package/dist/cjs/types/event/tracking-event.d.ts +69 -69
  180. package/dist/cjs/types/event/tracking-event.js +2 -2
  181. package/dist/cjs/types/event-bus-event.d.ts +25 -25
  182. package/dist/cjs/types/event-bus-event.js +2 -2
  183. package/dist/cjs/types/fingerprint/browser-attributes.d.ts +60 -60
  184. package/dist/cjs/types/fingerprint/browser-attributes.js +2 -2
  185. package/dist/cjs/types/fingerprint/index.d.ts +6 -6
  186. package/dist/cjs/types/fingerprint/index.js +18 -18
  187. package/dist/cjs/types/fingerprint/server-attributes.d.ts +50 -50
  188. package/dist/cjs/types/fingerprint/server-attributes.js +2 -2
  189. package/dist/cjs/types/index.d.ts +8 -7
  190. package/dist/cjs/types/index.js +24 -23
  191. package/dist/cjs/types/index.js.map +1 -1
  192. package/dist/cjs/types/third-party-event-configuration-types.d.ts +10 -10
  193. package/dist/cjs/types/third-party-event-configuration-types.js +2 -2
  194. package/dist/cjs/types/tracking-event-ingest-message.d.ts +12 -12
  195. package/dist/cjs/types/tracking-event-ingest-message.js +2 -2
  196. package/dist/esm/index.d.ts +1 -1
  197. package/dist/esm/index.js +1 -1
  198. package/dist/esm/types/api/accounts/account-enums.d.ts +82 -82
  199. package/dist/esm/types/api/accounts/account-enums.js +94 -94
  200. package/dist/esm/types/api/accounts/account-types.d.ts +78 -78
  201. package/dist/esm/types/api/accounts/account-types.js +1 -1
  202. package/dist/esm/types/api/accounts/index.d.ts +3 -3
  203. package/dist/esm/types/api/accounts/index.js +3 -3
  204. package/dist/esm/types/api/accounts/user-account-types.d.ts +17 -17
  205. package/dist/esm/types/api/accounts/user-account-types.js +1 -1
  206. package/dist/esm/types/api/analytics/analytics-enums.d.ts +96 -96
  207. package/dist/esm/types/api/analytics/analytics-enums.js +102 -102
  208. package/dist/esm/types/api/analytics/event-tracking-types.d.ts +44 -44
  209. package/dist/esm/types/api/analytics/event-tracking-types.js +1 -1
  210. package/dist/esm/types/api/analytics/index.d.ts +3 -3
  211. package/dist/esm/types/api/analytics/index.js +3 -3
  212. package/dist/esm/types/api/analytics/query-types.d.ts +72 -72
  213. package/dist/esm/types/api/analytics/query-types.js +1 -1
  214. package/dist/esm/types/api/contact-acquisition/contact-acquisition.d.ts +106 -106
  215. package/dist/esm/types/api/contact-acquisition/contact-acquisition.js +18 -18
  216. package/dist/esm/types/api/contact-acquisition/email-verification.d.ts +30 -30
  217. package/dist/esm/types/api/contact-acquisition/email-verification.js +8 -8
  218. package/dist/esm/types/api/contact-acquisition/index.d.ts +6 -6
  219. package/dist/esm/types/api/contact-acquisition/index.js +6 -6
  220. package/dist/esm/types/api/contact-acquisition/purchased-contact.d.ts +35 -35
  221. package/dist/esm/types/api/contact-acquisition/purchased-contact.js +5 -5
  222. package/dist/esm/types/api/contact-acquisition/purchased-traits.d.ts +63 -63
  223. package/dist/esm/types/api/contact-acquisition/purchased-traits.js +1 -1
  224. package/dist/esm/types/api/contact-acquisition/third-party-contact.d.ts +44 -44
  225. package/dist/esm/types/api/contact-acquisition/third-party-contact.js +1 -1
  226. package/dist/esm/types/api/contact-acquisition/third-party-cookie-contact-acquisition.d.ts +6 -6
  227. package/dist/esm/types/api/contact-acquisition/third-party-cookie-contact-acquisition.js +1 -1
  228. package/dist/esm/types/api/dashboards/index.d.ts +1 -1
  229. package/dist/esm/types/api/dashboards/index.js +1 -1
  230. package/dist/esm/types/api/dashboards/widget.d.ts +127 -127
  231. package/dist/esm/types/api/dashboards/widget.js +33 -33
  232. package/dist/esm/types/api/destinations/custom-event-mapping.d.ts +71 -71
  233. package/dist/esm/types/api/destinations/custom-event-mapping.js +37 -37
  234. package/dist/esm/types/api/destinations/destination-catalog.d.ts +30 -30
  235. package/dist/esm/types/api/destinations/destination-catalog.js +1 -1
  236. package/dist/esm/types/api/destinations/destination-enums.d.ts +42 -42
  237. package/dist/esm/types/api/destinations/destination-enums.js +45 -45
  238. package/dist/esm/types/api/destinations/destinations.d.ts +69 -69
  239. package/dist/esm/types/api/destinations/destinations.js +1 -1
  240. package/dist/esm/types/api/destinations/index.d.ts +7 -7
  241. package/dist/esm/types/api/destinations/index.js +7 -7
  242. package/dist/esm/types/api/destinations/third-party-contact-acquisition-configs.d.ts +9 -9
  243. package/dist/esm/types/api/destinations/third-party-contact-acquisition-configs.js +1 -1
  244. package/dist/esm/types/api/destinations/third-party-destination-configs.d.ts +185 -185
  245. package/dist/esm/types/api/destinations/third-party-destination-configs.js +20 -20
  246. package/dist/esm/types/api/destinations/third-party-integration-configs.d.ts +68 -68
  247. package/dist/esm/types/api/destinations/third-party-integration-configs.js +8 -8
  248. package/dist/esm/types/api/emq/emq-enums.d.ts +58 -58
  249. package/dist/esm/types/api/emq/emq-enums.js +65 -65
  250. package/dist/esm/types/api/emq/emq-health.d.ts +19 -19
  251. package/dist/esm/types/api/emq/emq-health.js +2 -2
  252. package/dist/esm/types/api/emq/emq-types.d.ts +153 -153
  253. package/dist/esm/types/api/emq/emq-types.js +4 -4
  254. package/dist/esm/types/api/emq/index.d.ts +3 -3
  255. package/dist/esm/types/api/emq/index.js +3 -3
  256. package/dist/esm/types/api/feature.d.ts +229 -229
  257. package/dist/esm/types/api/feature.js +196 -196
  258. package/dist/esm/types/api/health/forwarding-health.d.ts +9 -9
  259. package/dist/esm/types/api/health/forwarding-health.js +1 -1
  260. package/dist/esm/types/api/health/health-condition-types.d.ts +48 -48
  261. package/dist/esm/types/api/health/health-condition-types.js +5 -5
  262. package/dist/esm/types/api/health/health-enums.d.ts +7 -7
  263. package/dist/esm/types/api/health/health-enums.js +8 -8
  264. package/dist/esm/types/api/health/health-status.d.ts +14 -14
  265. package/dist/esm/types/api/health/health-status.js +1 -1
  266. package/dist/esm/types/api/health/index.d.ts +5 -5
  267. package/dist/esm/types/api/health/index.js +5 -5
  268. package/dist/esm/types/api/health/pixel-health.d.ts +19 -19
  269. package/dist/esm/types/api/health/pixel-health.js +1 -1
  270. package/dist/esm/types/api/index.d.ts +15 -15
  271. package/dist/esm/types/api/index.js +15 -15
  272. package/dist/esm/types/api/logging/index.d.ts +1 -1
  273. package/dist/esm/types/api/logging/index.js +1 -1
  274. package/dist/esm/types/api/logging/logging-types.d.ts +22 -22
  275. package/dist/esm/types/api/logging/logging-types.js +1 -1
  276. package/dist/esm/types/api/measures/definitions/channel-measure-definitions.d.ts +2 -2
  277. package/dist/esm/types/api/measures/definitions/channel-measure-definitions.js +1674 -1674
  278. package/dist/esm/types/api/measures/definitions/core-measure-definitions.d.ts +2 -2
  279. package/dist/esm/types/api/measures/definitions/core-measure-definitions.js +758 -443
  280. package/dist/esm/types/api/measures/definitions/core-measure-definitions.js.map +1 -1
  281. package/dist/esm/types/api/measures/definitions/emq-measure-definitions.d.ts +2 -2
  282. package/dist/esm/types/api/measures/definitions/emq-measure-definitions.js +229 -229
  283. package/dist/esm/types/api/measures/definitions/facebook-measure-definitions.d.ts +2 -2
  284. package/dist/esm/types/api/measures/definitions/facebook-measure-definitions.js +1448 -1448
  285. package/dist/esm/types/api/measures/definitions/google-measure-definitions.d.ts +2 -2
  286. package/dist/esm/types/api/measures/definitions/google-measure-definitions.js +322 -322
  287. package/dist/esm/types/api/measures/definitions/index.d.ts +13 -13
  288. package/dist/esm/types/api/measures/definitions/index.js +13 -13
  289. package/dist/esm/types/api/measures/definitions/measure-applicable-contexts.d.ts +9 -9
  290. package/dist/esm/types/api/measures/definitions/measure-applicable-contexts.js +13 -13
  291. package/dist/esm/types/api/measures/definitions/measure-categories.d.ts +19 -19
  292. package/dist/esm/types/api/measures/definitions/measure-categories.js +20 -20
  293. package/dist/esm/types/api/measures/definitions/measure-definitions.d.ts +44 -44
  294. package/dist/esm/types/api/measures/definitions/measure-definitions.js +84 -84
  295. package/dist/esm/types/api/measures/definitions/measure-value-type.d.ts +8 -8
  296. package/dist/esm/types/api/measures/definitions/measure-value-type.js +9 -9
  297. package/dist/esm/types/api/measures/definitions/shopify/shopify-measure-definitions.d.ts +2 -2
  298. package/dist/esm/types/api/measures/definitions/shopify/shopify-measure-definitions.js +861 -861
  299. package/dist/esm/types/api/measures/definitions/shopify/shopify-nc-measure-definitions.d.ts +2 -2
  300. package/dist/esm/types/api/measures/definitions/shopify/shopify-nc-measure-definitions.js +447 -447
  301. package/dist/esm/types/api/measures/definitions/shopify/shopify-rc-measure-definitions.d.ts +2 -2
  302. package/dist/esm/types/api/measures/definitions/shopify/shopify-rc-measure-definitions.js +448 -448
  303. package/dist/esm/types/api/measures/definitions/tracked-measure-definitions.d.ts +2 -2
  304. package/dist/esm/types/api/measures/definitions/tracked-measure-definitions.js +506 -506
  305. package/dist/esm/types/api/measures/index.d.ts +2 -2
  306. package/dist/esm/types/api/measures/index.js +2 -2
  307. package/dist/esm/types/api/measures/measures.d.ts +492 -471
  308. package/dist/esm/types/api/measures/measures.js +493 -472
  309. package/dist/esm/types/api/measures/measures.js.map +1 -1
  310. package/dist/esm/types/api/notifications/index.d.ts +3 -3
  311. package/dist/esm/types/api/notifications/index.js +3 -3
  312. package/dist/esm/types/api/notifications/notification-enums.d.ts +52 -52
  313. package/dist/esm/types/api/notifications/notification-enums.js +57 -57
  314. package/dist/esm/types/api/notifications/notification-history.d.ts +27 -27
  315. package/dist/esm/types/api/notifications/notification-history.js +1 -1
  316. package/dist/esm/types/api/notifications/notification-settings.d.ts +21 -21
  317. package/dist/esm/types/api/notifications/notification-settings.js +129 -129
  318. package/dist/esm/types/api/promotion-code.d.ts +35 -35
  319. package/dist/esm/types/api/promotion-code.js +6 -6
  320. package/dist/esm/types/api/service-events/index.d.ts +3 -3
  321. package/dist/esm/types/api/service-events/index.js +3 -3
  322. package/dist/esm/types/api/service-events/service-event-details.d.ts +166 -166
  323. package/dist/esm/types/api/service-events/service-event-details.js +1 -1
  324. package/dist/esm/types/api/service-events/service-event-enums.d.ts +49 -49
  325. package/dist/esm/types/api/service-events/service-event-enums.js +55 -55
  326. package/dist/esm/types/api/service-events/service-event-wrappers.d.ts +26 -26
  327. package/dist/esm/types/api/service-events/service-event-wrappers.js +1 -1
  328. package/dist/esm/types/api/shopify/index.d.ts +2 -2
  329. package/dist/esm/types/api/shopify/index.js +2 -2
  330. package/dist/esm/types/api/shopify/shopify-enums.d.ts +10 -10
  331. package/dist/esm/types/api/shopify/shopify-enums.js +11 -11
  332. package/dist/esm/types/api/shopify/shopify-types.d.ts +32 -32
  333. package/dist/esm/types/api/shopify/shopify-types.js +1 -1
  334. package/dist/esm/types/api/subscriptions/index.d.ts +2 -2
  335. package/dist/esm/types/api/subscriptions/index.js +2 -2
  336. package/dist/esm/types/api/subscriptions/subscription-enums.d.ts +38 -38
  337. package/dist/esm/types/api/subscriptions/subscription-enums.js +45 -45
  338. package/dist/esm/types/api/subscriptions/subscription-types.d.ts +156 -156
  339. package/dist/esm/types/api/subscriptions/subscription-types.js +1 -1
  340. package/dist/esm/types/common/address.d.ts +22 -22
  341. package/dist/esm/types/common/address.js +5 -5
  342. package/dist/esm/types/common/currency.d.ts +1 -1
  343. package/dist/esm/types/common/currency.js +60 -60
  344. package/dist/esm/types/common/index.d.ts +2 -2
  345. package/dist/esm/types/common/index.js +2 -2
  346. package/dist/esm/types/costs/cost-types.d.ts +130 -0
  347. package/dist/esm/types/costs/cost-types.js +66 -0
  348. package/dist/esm/types/costs/cost-types.js.map +1 -0
  349. package/dist/esm/types/costs/index.d.ts +1 -0
  350. package/dist/esm/types/costs/index.js +2 -0
  351. package/dist/esm/types/costs/index.js.map +1 -0
  352. package/dist/esm/types/event/base/event-name-enum.d.ts +123 -123
  353. package/dist/esm/types/event/base/event-name-enum.js +126 -126
  354. package/dist/esm/types/event/base/event.d.ts +20 -20
  355. package/dist/esm/types/event/base/event.js +7 -7
  356. package/dist/esm/types/event/base/index.d.ts +2 -2
  357. package/dist/esm/types/event/base/index.js +2 -2
  358. package/dist/esm/types/event/context/event-context-identity.d.ts +32 -32
  359. package/dist/esm/types/event/context/event-context-identity.js +1 -1
  360. package/dist/esm/types/event/context/event-context.d.ts +201 -201
  361. package/dist/esm/types/event/context/event-context.js +1 -1
  362. package/dist/esm/types/event/context/index.d.ts +2 -2
  363. package/dist/esm/types/event/context/index.js +2 -2
  364. package/dist/esm/types/event/index.d.ts +6 -6
  365. package/dist/esm/types/event/index.js +6 -6
  366. package/dist/esm/types/event/log-event.d.ts +35 -35
  367. package/dist/esm/types/event/log-event.js +19 -19
  368. package/dist/esm/types/event/metric-event.d.ts +13 -13
  369. package/dist/esm/types/event/metric-event.js +1 -1
  370. package/dist/esm/types/event/saas-event-properties.d.ts +47 -47
  371. package/dist/esm/types/event/saas-event-properties.js +7 -7
  372. package/dist/esm/types/event/tracking-event.d.ts +69 -69
  373. package/dist/esm/types/event/tracking-event.js +1 -1
  374. package/dist/esm/types/event-bus-event.d.ts +25 -25
  375. package/dist/esm/types/event-bus-event.js +1 -1
  376. package/dist/esm/types/fingerprint/browser-attributes.d.ts +60 -60
  377. package/dist/esm/types/fingerprint/browser-attributes.js +1 -1
  378. package/dist/esm/types/fingerprint/index.d.ts +6 -6
  379. package/dist/esm/types/fingerprint/index.js +2 -2
  380. package/dist/esm/types/fingerprint/server-attributes.d.ts +50 -50
  381. package/dist/esm/types/fingerprint/server-attributes.js +1 -1
  382. package/dist/esm/types/index.d.ts +8 -7
  383. package/dist/esm/types/index.js +8 -7
  384. package/dist/esm/types/index.js.map +1 -1
  385. package/dist/esm/types/third-party-event-configuration-types.d.ts +10 -10
  386. package/dist/esm/types/third-party-event-configuration-types.js +1 -1
  387. package/dist/esm/types/tracking-event-ingest-message.d.ts +12 -12
  388. package/dist/esm/types/tracking-event-ingest-message.js +1 -1
  389. package/package.json +110 -110
@@ -1,448 +1,448 @@
1
- import { MEASURE } from '../../measures.js';
2
- import { MEASURE_CATEGORY } from '../measure-categories.js';
3
- import { MeasureValueType } from '../measure-value-type.js';
4
- import { CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS, STANDARD_APPLICABLE_CONTEXTS } from '../measure-applicable-contexts.js';
5
- export const SHOPIFY_NEW_CUSTOMER_MEASURES_MAP = {
6
- [MEASURE.SHOPIFY_NEW_CUSTOMER_ORDERS]: {
7
- title: 'New Customer Orders',
8
- description: 'The number of orders from new customers.',
9
- sumPrefix: '',
10
- sumSuffix: '',
11
- avgPrefix: '',
12
- avgSuffix: '',
13
- icon: 'shopify',
14
- measure: MEASURE.SHOPIFY_NEW_CUSTOMER_ORDERS,
15
- category: MEASURE_CATEGORY.SALES,
16
- valueType: MeasureValueType.NUMBER,
17
- decimalPlaces: 0,
18
- useCompactNotation: false,
19
- applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
20
- },
21
- [MEASURE.SHOPIFY_NEW_CUSTOMERS]: {
22
- title: 'New Customers',
23
- description: 'The number of new customers.',
24
- sumPrefix: '',
25
- sumSuffix: '',
26
- avgPrefix: '',
27
- avgSuffix: '',
28
- icon: 'shopify',
29
- measure: MEASURE.SHOPIFY_NEW_CUSTOMERS,
30
- category: MEASURE_CATEGORY.SALES,
31
- valueType: MeasureValueType.NUMBER,
32
- decimalPlaces: 0,
33
- useCompactNotation: false,
34
- applicableContexts: STANDARD_APPLICABLE_CONTEXTS,
35
- },
36
- [MEASURE.SHOPIFY_NEW_CUSTOMER_TOTAL_REVENUE]: {
37
- title: 'New Customer Revenue',
38
- description: 'The total revenue from new customers.',
39
- sumPrefix: '$',
40
- sumSuffix: '',
41
- avgPrefix: '$',
42
- avgSuffix: '',
43
- icon: 'shopify',
44
- measure: MEASURE.SHOPIFY_NEW_CUSTOMER_TOTAL_REVENUE,
45
- category: MEASURE_CATEGORY.SALES,
46
- valueType: MeasureValueType.CURRENCY,
47
- decimalPlaces: 2,
48
- useCompactNotation: true,
49
- applicableContexts: STANDARD_APPLICABLE_CONTEXTS,
50
- aliases: [
51
- MEASURE.SHOPIFY_NEW_CUSTOMER_TOTAL_AMOUNT,
52
- MEASURE.SHOPIFY_NEW_CUSTOMER_TOTAL_SALES,
53
- MEASURE.SHOPIFY_NEW_CUSTOMER_REVENUE,
54
- ],
55
- },
56
- [MEASURE.SHOPIFY_NEW_CUSTOMER_GROSS_PERCENT]: {
57
- title: 'New Customer Gross Percent',
58
- description: 'The percentage of gross sales from new customers.',
59
- sumPrefix: '',
60
- sumSuffix: '%',
61
- avgPrefix: '',
62
- avgSuffix: '%',
63
- icon: 'shopify',
64
- measure: MEASURE.SHOPIFY_NEW_CUSTOMER_GROSS_PERCENT,
65
- category: MEASURE_CATEGORY.SALES,
66
- valueType: MeasureValueType.PERCENTAGE,
67
- decimalPlaces: 2,
68
- useCompactNotation: false,
69
- applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
70
- },
71
- [MEASURE.SHOPIFY_NEW_CUSTOMER_TOTAL_AOV]: {
72
- title: 'New Customer Total Average Order Value',
73
- description: 'The average value of an order from new customers.',
74
- sumPrefix: '$',
75
- sumSuffix: '',
76
- avgPrefix: '$',
77
- avgSuffix: '',
78
- icon: 'shopify',
79
- measure: MEASURE.SHOPIFY_NEW_CUSTOMER_TOTAL_AOV,
80
- category: MEASURE_CATEGORY.SALES,
81
- valueType: MeasureValueType.CURRENCY,
82
- decimalPlaces: 2,
83
- useCompactNotation: true,
84
- applicableContexts: STANDARD_APPLICABLE_CONTEXTS,
85
- },
86
- [MEASURE.SHOPIFY_NEW_CUSTOMER_GROSS_AOV]: {
87
- title: 'New Customer Gross Average Order Value',
88
- description: 'The average value of an order from new customers.',
89
- sumPrefix: '$',
90
- sumSuffix: '',
91
- avgPrefix: '$',
92
- avgSuffix: '',
93
- icon: 'shopify',
94
- measure: MEASURE.SHOPIFY_NEW_CUSTOMER_GROSS_AOV,
95
- category: MEASURE_CATEGORY.SALES,
96
- valueType: MeasureValueType.CURRENCY,
97
- decimalPlaces: 2,
98
- useCompactNotation: true,
99
- applicableContexts: STANDARD_APPLICABLE_CONTEXTS,
100
- aliases: [MEASURE.SHOPIFY_NEW_CUSTOMER_AOV],
101
- },
102
- [MEASURE.SHOPIFY_NEW_CUSTOMER_NET_AOV]: {
103
- title: 'New Customer Net Average Order Value',
104
- description: 'The average value of an order from new customers after refunds.',
105
- sumPrefix: '$',
106
- sumSuffix: '',
107
- avgPrefix: '$',
108
- avgSuffix: '',
109
- icon: 'shopify',
110
- measure: MEASURE.SHOPIFY_NEW_CUSTOMER_NET_AOV,
111
- category: MEASURE_CATEGORY.SALES,
112
- valueType: MeasureValueType.CURRENCY,
113
- decimalPlaces: 2,
114
- useCompactNotation: true,
115
- applicableContexts: STANDARD_APPLICABLE_CONTEXTS,
116
- },
117
- [MEASURE.SHOPIFY_NEW_CUSTOMER_RATE]: {
118
- title: 'New Customer Rate',
119
- description: 'The percentage of customers that are new customers.',
120
- sumPrefix: '',
121
- sumSuffix: '%',
122
- avgPrefix: '',
123
- avgSuffix: '%',
124
- icon: 'shopify',
125
- measure: MEASURE.SHOPIFY_NEW_CUSTOMER_RATE,
126
- category: MEASURE_CATEGORY.SALES,
127
- valueType: MeasureValueType.PERCENTAGE,
128
- decimalPlaces: 2,
129
- useCompactNotation: false,
130
- applicableContexts: STANDARD_APPLICABLE_CONTEXTS,
131
- },
132
- [MEASURE.SHOPIFY_NEW_CUSTOMER_GROSS_SALES]: {
133
- title: 'New Customer Gross Sales',
134
- description: 'The gross sales of new customers.',
135
- sumPrefix: '$',
136
- sumSuffix: '',
137
- avgPrefix: '$',
138
- avgSuffix: '',
139
- icon: 'shopify',
140
- measure: MEASURE.SHOPIFY_NEW_CUSTOMER_GROSS_SALES,
141
- category: MEASURE_CATEGORY.SALES,
142
- valueType: MeasureValueType.CURRENCY,
143
- decimalPlaces: 2,
144
- useCompactNotation: true,
145
- applicableContexts: STANDARD_APPLICABLE_CONTEXTS,
146
- },
147
- [MEASURE.SHOPIFY_NEW_CUSTOMER_NET_SALES]: {
148
- title: 'New Customer Net Sales',
149
- description: 'The net sales of new customers.',
150
- sumPrefix: '$',
151
- sumSuffix: '',
152
- avgPrefix: '$',
153
- avgSuffix: '',
154
- icon: 'shopify',
155
- measure: MEASURE.SHOPIFY_NEW_CUSTOMER_NET_SALES,
156
- category: MEASURE_CATEGORY.SALES,
157
- valueType: MeasureValueType.CURRENCY,
158
- decimalPlaces: 2,
159
- useCompactNotation: true,
160
- applicableContexts: STANDARD_APPLICABLE_CONTEXTS,
161
- },
162
- [MEASURE.SHOPIFY_NEW_CUSTOMER_DISCOUNT_AMOUNT]: {
163
- title: 'New Customer Discount Amount',
164
- description: 'The total amount of discounts applied to orders from new customers.',
165
- sumPrefix: '$',
166
- sumSuffix: '',
167
- avgPrefix: '$',
168
- avgSuffix: '',
169
- icon: 'shopify',
170
- measure: MEASURE.SHOPIFY_NEW_CUSTOMER_DISCOUNT_AMOUNT,
171
- category: MEASURE_CATEGORY.SALES,
172
- valueType: MeasureValueType.CURRENCY,
173
- decimalPlaces: 2,
174
- useCompactNotation: true,
175
- applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
176
- },
177
- [MEASURE.SHOPIFY_NEW_CUSTOMER_DISCOUNT_GROSS_PERCENT]: {
178
- title: 'New Customer Discount Rate (% of Gross Sales)',
179
- description: 'The percentage of gross sales amount that was discounted for new customers.',
180
- sumPrefix: '',
181
- sumSuffix: '%',
182
- avgPrefix: '',
183
- avgSuffix: '%',
184
- icon: 'shopify',
185
- measure: MEASURE.SHOPIFY_NEW_CUSTOMER_DISCOUNT_GROSS_PERCENT,
186
- category: MEASURE_CATEGORY.SALES,
187
- valueType: MeasureValueType.PERCENTAGE,
188
- decimalPlaces: 2,
189
- useCompactNotation: false,
190
- applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
191
- },
192
- [MEASURE.SHOPIFY_NEW_CUSTOMER_DISCOUNT_RATE]: {
193
- title: 'New Customer Discounted Order Rate',
194
- description: 'The percentage of total orders from new customers that were discounted.',
195
- sumPrefix: '',
196
- sumSuffix: '%',
197
- avgPrefix: '',
198
- avgSuffix: '%',
199
- icon: 'shopify',
200
- measure: MEASURE.SHOPIFY_NEW_CUSTOMER_DISCOUNT_RATE,
201
- category: MEASURE_CATEGORY.SALES,
202
- valueType: MeasureValueType.PERCENTAGE,
203
- decimalPlaces: 2,
204
- useCompactNotation: false,
205
- applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
206
- },
207
- [MEASURE.SHOPIFY_NEW_CUSTOMER_REFUND_PLUS_DISCOUNT_AMOUNT]: {
208
- title: 'New Customer Refund Plus Discount Amount',
209
- description: 'The amount of refunds plus discounts given to all new customers.',
210
- sumPrefix: '$',
211
- sumSuffix: '',
212
- avgPrefix: '$',
213
- avgSuffix: '',
214
- icon: 'shopify',
215
- measure: MEASURE.SHOPIFY_NEW_CUSTOMER_REFUND_PLUS_DISCOUNT_AMOUNT,
216
- category: MEASURE_CATEGORY.SALES,
217
- valueType: MeasureValueType.CURRENCY,
218
- decimalPlaces: 2,
219
- useCompactNotation: true,
220
- applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
221
- },
222
- [MEASURE.SHOPIFY_NEW_CUSTOMER_ORDER_TOTAL_PRODUCT_COST]: {
223
- title: 'New Customer Order Total Product Cost',
224
- description: 'The total cost of the products in an order from new customers.',
225
- sumPrefix: '$',
226
- sumSuffix: '',
227
- avgPrefix: '$',
228
- avgSuffix: '',
229
- icon: 'shopify',
230
- measure: MEASURE.SHOPIFY_NEW_CUSTOMER_ORDER_TOTAL_PRODUCT_COST,
231
- category: MEASURE_CATEGORY.SALES,
232
- valueType: MeasureValueType.CURRENCY,
233
- decimalPlaces: 2,
234
- useCompactNotation: true,
235
- applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
236
- },
237
- [MEASURE.SHOPIFY_NEW_CUSTOMER_ORDER_TOTAL_PRODUCT_COST_GROSS_PERCENT]: {
238
- title: 'New Customer Order Total Product Cost (% of Gross Sales)',
239
- description: 'The percentage of gross sales from new customers that represents the total product cost.',
240
- sumPrefix: '',
241
- sumSuffix: '%',
242
- avgPrefix: '',
243
- avgSuffix: '%',
244
- icon: 'shopify',
245
- measure: MEASURE.SHOPIFY_NEW_CUSTOMER_ORDER_TOTAL_PRODUCT_COST_GROSS_PERCENT,
246
- category: MEASURE_CATEGORY.SALES,
247
- valueType: MeasureValueType.PERCENTAGE,
248
- decimalPlaces: 2,
249
- useCompactNotation: false,
250
- applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
251
- },
252
- [MEASURE.SHOPIFY_NEW_CUSTOMER_ORDER_TOTAL_PRODUCT_COST_NET_PERCENT]: {
253
- title: 'New Customer Order Total Product Cost (% of Net Sales)',
254
- description: 'The percentage of net sales from new customers that represents the total product cost.',
255
- sumPrefix: '',
256
- sumSuffix: '%',
257
- avgPrefix: '',
258
- avgSuffix: '%',
259
- icon: 'shopify',
260
- measure: MEASURE.SHOPIFY_NEW_CUSTOMER_ORDER_TOTAL_PRODUCT_COST_NET_PERCENT,
261
- category: MEASURE_CATEGORY.SALES,
262
- valueType: MeasureValueType.PERCENTAGE,
263
- decimalPlaces: 2,
264
- useCompactNotation: false,
265
- applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
266
- },
267
- [MEASURE.SHOPIFY_NEW_CUSTOMER_GROSS_PRODUCT_MARGIN]: {
268
- title: 'New Customer Gross Product Margin',
269
- description: 'Shopify new customer gross margin (New Customer Gross Sales - New Customer Total Product Cost)',
270
- sumPrefix: '$',
271
- sumSuffix: '',
272
- avgPrefix: '$',
273
- avgSuffix: '',
274
- icon: 'shopify',
275
- measure: MEASURE.SHOPIFY_NEW_CUSTOMER_GROSS_PRODUCT_MARGIN,
276
- category: MEASURE_CATEGORY.SALES,
277
- valueType: MeasureValueType.CURRENCY,
278
- decimalPlaces: 2,
279
- useCompactNotation: true,
280
- applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
281
- },
282
- [MEASURE.SHOPIFY_NEW_CUSTOMER_GROSS_PRODUCT_MARGIN_GROSS_PERCENT]: {
283
- title: 'New Customer Gross Product Margin (% of Gross Sales)',
284
- description: 'The percentage of gross sales from new customers that represents the gross product margin.',
285
- sumPrefix: '',
286
- sumSuffix: '%',
287
- avgPrefix: '',
288
- avgSuffix: '%',
289
- icon: 'shopify',
290
- measure: MEASURE.SHOPIFY_NEW_CUSTOMER_GROSS_PRODUCT_MARGIN_GROSS_PERCENT,
291
- category: MEASURE_CATEGORY.SALES,
292
- valueType: MeasureValueType.PERCENTAGE,
293
- decimalPlaces: 2,
294
- useCompactNotation: false,
295
- applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
296
- },
297
- [MEASURE.SHOPIFY_NEW_CUSTOMER_GROSS_PRODUCT_MARGIN_NET_PERCENT]: {
298
- title: 'New Customer Gross Product Margin (% of Net Sales)',
299
- description: 'The percentage of net sales from new customers that represents the gross product margin.',
300
- sumPrefix: '',
301
- sumSuffix: '%',
302
- avgPrefix: '',
303
- avgSuffix: '%',
304
- icon: 'shopify',
305
- measure: MEASURE.SHOPIFY_NEW_CUSTOMER_GROSS_PRODUCT_MARGIN_NET_PERCENT,
306
- category: MEASURE_CATEGORY.SALES,
307
- valueType: MeasureValueType.PERCENTAGE,
308
- decimalPlaces: 2,
309
- useCompactNotation: false,
310
- applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
311
- },
312
- [MEASURE.SHOPIFY_NEW_CUSTOMER_NET_PRODUCT_MARGIN]: {
313
- title: 'New Customer Net Product Margin',
314
- description: 'Shopify new customer net margin (New Customer Net Sales - New Customer Total Product Cost)',
315
- sumPrefix: '$',
316
- sumSuffix: '',
317
- avgPrefix: '$',
318
- avgSuffix: '',
319
- icon: 'shopify',
320
- measure: MEASURE.SHOPIFY_NEW_CUSTOMER_NET_PRODUCT_MARGIN,
321
- category: MEASURE_CATEGORY.SALES,
322
- valueType: MeasureValueType.CURRENCY,
323
- decimalPlaces: 2,
324
- useCompactNotation: true,
325
- applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
326
- },
327
- [MEASURE.SHOPIFY_NEW_CUSTOMER_NET_PRODUCT_MARGIN_GROSS_PERCENT]: {
328
- title: 'New Customer Net Product Margin (% of Gross Sales)',
329
- description: 'The percentage of gross sales from new customers that represents the net product margin.',
330
- sumPrefix: '',
331
- sumSuffix: '%',
332
- avgPrefix: '',
333
- avgSuffix: '%',
334
- icon: 'shopify',
335
- measure: MEASURE.SHOPIFY_NEW_CUSTOMER_NET_PRODUCT_MARGIN_GROSS_PERCENT,
336
- category: MEASURE_CATEGORY.SALES,
337
- valueType: MeasureValueType.PERCENTAGE,
338
- decimalPlaces: 2,
339
- useCompactNotation: false,
340
- applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
341
- },
342
- [MEASURE.SHOPIFY_NEW_CUSTOMER_NET_PRODUCT_MARGIN_NET_PERCENT]: {
343
- title: 'New Customer Net Product Margin (% of Net Sales)',
344
- description: 'The percentage of net sales from new customers that represents the net product margin.',
345
- sumPrefix: '',
346
- sumSuffix: '%',
347
- avgPrefix: '',
348
- avgSuffix: '%',
349
- icon: 'shopify',
350
- measure: MEASURE.SHOPIFY_NEW_CUSTOMER_NET_PRODUCT_MARGIN_NET_PERCENT,
351
- category: MEASURE_CATEGORY.SALES,
352
- valueType: MeasureValueType.PERCENTAGE,
353
- decimalPlaces: 2,
354
- useCompactNotation: false,
355
- applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
356
- },
357
- [MEASURE.SHOPIFY_NEW_CUSTOMER_GROSS_MARGIN]: {
358
- title: 'New Customer Gross Margin',
359
- description: 'Shopify new customer gross margin (New Customer Gross Sales - New Customer Total Product Cost - Ad Spend)',
360
- sumPrefix: '$',
361
- sumSuffix: '',
362
- avgPrefix: '$',
363
- avgSuffix: '',
364
- icon: 'shopify',
365
- measure: MEASURE.SHOPIFY_NEW_CUSTOMER_GROSS_MARGIN,
366
- category: MEASURE_CATEGORY.SALES,
367
- valueType: MeasureValueType.CURRENCY,
368
- decimalPlaces: 2,
369
- useCompactNotation: true,
370
- applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
371
- },
372
- [MEASURE.SHOPIFY_NEW_CUSTOMER_GROSS_MARGIN_GROSS_PERCENT]: {
373
- title: 'New Customer Gross Margin (% of Gross Sales)',
374
- description: 'The percentage of gross sales from new customers that represents the gross margin.',
375
- sumPrefix: '',
376
- sumSuffix: '%',
377
- avgPrefix: '',
378
- avgSuffix: '%',
379
- icon: 'shopify',
380
- measure: MEASURE.SHOPIFY_NEW_CUSTOMER_GROSS_MARGIN_GROSS_PERCENT,
381
- category: MEASURE_CATEGORY.SALES,
382
- valueType: MeasureValueType.PERCENTAGE,
383
- decimalPlaces: 2,
384
- useCompactNotation: false,
385
- applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
386
- },
387
- [MEASURE.SHOPIFY_NEW_CUSTOMER_GROSS_MARGIN_NET_PERCENT]: {
388
- title: 'New Customer Gross Margin (% of Net Sales)',
389
- description: 'The percentage of net sales from new customers that represents the gross margin.',
390
- sumPrefix: '',
391
- sumSuffix: '%',
392
- avgPrefix: '',
393
- avgSuffix: '%',
394
- icon: 'shopify',
395
- measure: MEASURE.SHOPIFY_NEW_CUSTOMER_GROSS_MARGIN_NET_PERCENT,
396
- category: MEASURE_CATEGORY.SALES,
397
- valueType: MeasureValueType.PERCENTAGE,
398
- decimalPlaces: 2,
399
- useCompactNotation: false,
400
- applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
401
- },
402
- [MEASURE.SHOPIFY_NEW_CUSTOMER_NET_MARGIN]: {
403
- title: 'New Customer Net Margin',
404
- description: 'Shopify new customer net margin (New Customer Net Sales - New Customer Total Product Cost - Ad Spend)',
405
- sumPrefix: '$',
406
- sumSuffix: '',
407
- avgPrefix: '$',
408
- avgSuffix: '',
409
- icon: 'shopify',
410
- measure: MEASURE.SHOPIFY_NEW_CUSTOMER_NET_MARGIN,
411
- category: MEASURE_CATEGORY.SALES,
412
- valueType: MeasureValueType.CURRENCY,
413
- decimalPlaces: 2,
414
- useCompactNotation: true,
415
- applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
416
- },
417
- [MEASURE.SHOPIFY_NEW_CUSTOMER_NET_MARGIN_GROSS_PERCENT]: {
418
- title: 'New Customer Net Margin (% of Gross Sales)',
419
- description: 'The percentage of gross sales from new customers that represents the net margin.',
420
- sumPrefix: '',
421
- sumSuffix: '%',
422
- avgPrefix: '',
423
- avgSuffix: '%',
424
- icon: 'shopify',
425
- measure: MEASURE.SHOPIFY_NEW_CUSTOMER_NET_MARGIN_GROSS_PERCENT,
426
- category: MEASURE_CATEGORY.SALES,
427
- valueType: MeasureValueType.PERCENTAGE,
428
- decimalPlaces: 2,
429
- useCompactNotation: false,
430
- applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
431
- },
432
- [MEASURE.SHOPIFY_NEW_CUSTOMER_NET_MARGIN_NET_PERCENT]: {
433
- title: 'New Customer Net Margin (% of Net Sales)',
434
- description: 'The percentage of net sales from new customers that represents the net margin.',
435
- sumPrefix: '',
436
- sumSuffix: '%',
437
- avgPrefix: '',
438
- avgSuffix: '%',
439
- icon: 'shopify',
440
- measure: MEASURE.SHOPIFY_NEW_CUSTOMER_NET_MARGIN_NET_PERCENT,
441
- category: MEASURE_CATEGORY.SALES,
442
- valueType: MeasureValueType.PERCENTAGE,
443
- decimalPlaces: 2,
444
- useCompactNotation: false,
445
- applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
446
- },
447
- };
1
+ import { MEASURE } from '../../measures.js';
2
+ import { MEASURE_CATEGORY } from '../measure-categories.js';
3
+ import { MeasureValueType } from '../measure-value-type.js';
4
+ import { CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS, STANDARD_APPLICABLE_CONTEXTS } from '../measure-applicable-contexts.js';
5
+ export const SHOPIFY_NEW_CUSTOMER_MEASURES_MAP = {
6
+ [MEASURE.SHOPIFY_NEW_CUSTOMER_ORDERS]: {
7
+ title: 'New Customer Orders',
8
+ description: 'The number of orders from new customers.',
9
+ sumPrefix: '',
10
+ sumSuffix: '',
11
+ avgPrefix: '',
12
+ avgSuffix: '',
13
+ icon: 'shopify',
14
+ measure: MEASURE.SHOPIFY_NEW_CUSTOMER_ORDERS,
15
+ category: MEASURE_CATEGORY.SALES,
16
+ valueType: MeasureValueType.NUMBER,
17
+ decimalPlaces: 0,
18
+ useCompactNotation: false,
19
+ applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
20
+ },
21
+ [MEASURE.SHOPIFY_NEW_CUSTOMERS]: {
22
+ title: 'New Customers',
23
+ description: 'The number of new customers.',
24
+ sumPrefix: '',
25
+ sumSuffix: '',
26
+ avgPrefix: '',
27
+ avgSuffix: '',
28
+ icon: 'shopify',
29
+ measure: MEASURE.SHOPIFY_NEW_CUSTOMERS,
30
+ category: MEASURE_CATEGORY.SALES,
31
+ valueType: MeasureValueType.NUMBER,
32
+ decimalPlaces: 0,
33
+ useCompactNotation: false,
34
+ applicableContexts: STANDARD_APPLICABLE_CONTEXTS,
35
+ },
36
+ [MEASURE.SHOPIFY_NEW_CUSTOMER_TOTAL_REVENUE]: {
37
+ title: 'New Customer Revenue',
38
+ description: 'The total revenue from new customers.',
39
+ sumPrefix: '$',
40
+ sumSuffix: '',
41
+ avgPrefix: '$',
42
+ avgSuffix: '',
43
+ icon: 'shopify',
44
+ measure: MEASURE.SHOPIFY_NEW_CUSTOMER_TOTAL_REVENUE,
45
+ category: MEASURE_CATEGORY.SALES,
46
+ valueType: MeasureValueType.CURRENCY,
47
+ decimalPlaces: 2,
48
+ useCompactNotation: true,
49
+ applicableContexts: STANDARD_APPLICABLE_CONTEXTS,
50
+ aliases: [
51
+ MEASURE.SHOPIFY_NEW_CUSTOMER_TOTAL_AMOUNT,
52
+ MEASURE.SHOPIFY_NEW_CUSTOMER_TOTAL_SALES,
53
+ MEASURE.SHOPIFY_NEW_CUSTOMER_REVENUE,
54
+ ],
55
+ },
56
+ [MEASURE.SHOPIFY_NEW_CUSTOMER_GROSS_PERCENT]: {
57
+ title: 'New Customer Gross Percent',
58
+ description: 'The percentage of gross sales from new customers.',
59
+ sumPrefix: '',
60
+ sumSuffix: '%',
61
+ avgPrefix: '',
62
+ avgSuffix: '%',
63
+ icon: 'shopify',
64
+ measure: MEASURE.SHOPIFY_NEW_CUSTOMER_GROSS_PERCENT,
65
+ category: MEASURE_CATEGORY.SALES,
66
+ valueType: MeasureValueType.PERCENTAGE,
67
+ decimalPlaces: 2,
68
+ useCompactNotation: false,
69
+ applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
70
+ },
71
+ [MEASURE.SHOPIFY_NEW_CUSTOMER_TOTAL_AOV]: {
72
+ title: 'New Customer Total Average Order Value',
73
+ description: 'The average value of an order from new customers.',
74
+ sumPrefix: '$',
75
+ sumSuffix: '',
76
+ avgPrefix: '$',
77
+ avgSuffix: '',
78
+ icon: 'shopify',
79
+ measure: MEASURE.SHOPIFY_NEW_CUSTOMER_TOTAL_AOV,
80
+ category: MEASURE_CATEGORY.SALES,
81
+ valueType: MeasureValueType.CURRENCY,
82
+ decimalPlaces: 2,
83
+ useCompactNotation: true,
84
+ applicableContexts: STANDARD_APPLICABLE_CONTEXTS,
85
+ },
86
+ [MEASURE.SHOPIFY_NEW_CUSTOMER_GROSS_AOV]: {
87
+ title: 'New Customer Gross Average Order Value',
88
+ description: 'The average value of an order from new customers.',
89
+ sumPrefix: '$',
90
+ sumSuffix: '',
91
+ avgPrefix: '$',
92
+ avgSuffix: '',
93
+ icon: 'shopify',
94
+ measure: MEASURE.SHOPIFY_NEW_CUSTOMER_GROSS_AOV,
95
+ category: MEASURE_CATEGORY.SALES,
96
+ valueType: MeasureValueType.CURRENCY,
97
+ decimalPlaces: 2,
98
+ useCompactNotation: true,
99
+ applicableContexts: STANDARD_APPLICABLE_CONTEXTS,
100
+ aliases: [MEASURE.SHOPIFY_NEW_CUSTOMER_AOV],
101
+ },
102
+ [MEASURE.SHOPIFY_NEW_CUSTOMER_NET_AOV]: {
103
+ title: 'New Customer Net Average Order Value',
104
+ description: 'The average value of an order from new customers after refunds.',
105
+ sumPrefix: '$',
106
+ sumSuffix: '',
107
+ avgPrefix: '$',
108
+ avgSuffix: '',
109
+ icon: 'shopify',
110
+ measure: MEASURE.SHOPIFY_NEW_CUSTOMER_NET_AOV,
111
+ category: MEASURE_CATEGORY.SALES,
112
+ valueType: MeasureValueType.CURRENCY,
113
+ decimalPlaces: 2,
114
+ useCompactNotation: true,
115
+ applicableContexts: STANDARD_APPLICABLE_CONTEXTS,
116
+ },
117
+ [MEASURE.SHOPIFY_NEW_CUSTOMER_RATE]: {
118
+ title: 'New Customer Rate',
119
+ description: 'The percentage of customers that are new customers.',
120
+ sumPrefix: '',
121
+ sumSuffix: '%',
122
+ avgPrefix: '',
123
+ avgSuffix: '%',
124
+ icon: 'shopify',
125
+ measure: MEASURE.SHOPIFY_NEW_CUSTOMER_RATE,
126
+ category: MEASURE_CATEGORY.SALES,
127
+ valueType: MeasureValueType.PERCENTAGE,
128
+ decimalPlaces: 2,
129
+ useCompactNotation: false,
130
+ applicableContexts: STANDARD_APPLICABLE_CONTEXTS,
131
+ },
132
+ [MEASURE.SHOPIFY_NEW_CUSTOMER_GROSS_SALES]: {
133
+ title: 'New Customer Gross Sales',
134
+ description: 'The gross sales of new customers.',
135
+ sumPrefix: '$',
136
+ sumSuffix: '',
137
+ avgPrefix: '$',
138
+ avgSuffix: '',
139
+ icon: 'shopify',
140
+ measure: MEASURE.SHOPIFY_NEW_CUSTOMER_GROSS_SALES,
141
+ category: MEASURE_CATEGORY.SALES,
142
+ valueType: MeasureValueType.CURRENCY,
143
+ decimalPlaces: 2,
144
+ useCompactNotation: true,
145
+ applicableContexts: STANDARD_APPLICABLE_CONTEXTS,
146
+ },
147
+ [MEASURE.SHOPIFY_NEW_CUSTOMER_NET_SALES]: {
148
+ title: 'New Customer Net Sales',
149
+ description: 'The net sales of new customers.',
150
+ sumPrefix: '$',
151
+ sumSuffix: '',
152
+ avgPrefix: '$',
153
+ avgSuffix: '',
154
+ icon: 'shopify',
155
+ measure: MEASURE.SHOPIFY_NEW_CUSTOMER_NET_SALES,
156
+ category: MEASURE_CATEGORY.SALES,
157
+ valueType: MeasureValueType.CURRENCY,
158
+ decimalPlaces: 2,
159
+ useCompactNotation: true,
160
+ applicableContexts: STANDARD_APPLICABLE_CONTEXTS,
161
+ },
162
+ [MEASURE.SHOPIFY_NEW_CUSTOMER_DISCOUNT_AMOUNT]: {
163
+ title: 'New Customer Discount Amount',
164
+ description: 'The total amount of discounts applied to orders from new customers.',
165
+ sumPrefix: '$',
166
+ sumSuffix: '',
167
+ avgPrefix: '$',
168
+ avgSuffix: '',
169
+ icon: 'shopify',
170
+ measure: MEASURE.SHOPIFY_NEW_CUSTOMER_DISCOUNT_AMOUNT,
171
+ category: MEASURE_CATEGORY.SALES,
172
+ valueType: MeasureValueType.CURRENCY,
173
+ decimalPlaces: 2,
174
+ useCompactNotation: true,
175
+ applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
176
+ },
177
+ [MEASURE.SHOPIFY_NEW_CUSTOMER_DISCOUNT_GROSS_PERCENT]: {
178
+ title: 'New Customer Discount Rate (% of Gross Sales)',
179
+ description: 'The percentage of gross sales amount that was discounted for new customers.',
180
+ sumPrefix: '',
181
+ sumSuffix: '%',
182
+ avgPrefix: '',
183
+ avgSuffix: '%',
184
+ icon: 'shopify',
185
+ measure: MEASURE.SHOPIFY_NEW_CUSTOMER_DISCOUNT_GROSS_PERCENT,
186
+ category: MEASURE_CATEGORY.SALES,
187
+ valueType: MeasureValueType.PERCENTAGE,
188
+ decimalPlaces: 2,
189
+ useCompactNotation: false,
190
+ applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
191
+ },
192
+ [MEASURE.SHOPIFY_NEW_CUSTOMER_DISCOUNT_RATE]: {
193
+ title: 'New Customer Discounted Order Rate',
194
+ description: 'The percentage of total orders from new customers that were discounted.',
195
+ sumPrefix: '',
196
+ sumSuffix: '%',
197
+ avgPrefix: '',
198
+ avgSuffix: '%',
199
+ icon: 'shopify',
200
+ measure: MEASURE.SHOPIFY_NEW_CUSTOMER_DISCOUNT_RATE,
201
+ category: MEASURE_CATEGORY.SALES,
202
+ valueType: MeasureValueType.PERCENTAGE,
203
+ decimalPlaces: 2,
204
+ useCompactNotation: false,
205
+ applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
206
+ },
207
+ [MEASURE.SHOPIFY_NEW_CUSTOMER_REFUND_PLUS_DISCOUNT_AMOUNT]: {
208
+ title: 'New Customer Refund Plus Discount Amount',
209
+ description: 'The amount of refunds plus discounts given to all new customers.',
210
+ sumPrefix: '$',
211
+ sumSuffix: '',
212
+ avgPrefix: '$',
213
+ avgSuffix: '',
214
+ icon: 'shopify',
215
+ measure: MEASURE.SHOPIFY_NEW_CUSTOMER_REFUND_PLUS_DISCOUNT_AMOUNT,
216
+ category: MEASURE_CATEGORY.SALES,
217
+ valueType: MeasureValueType.CURRENCY,
218
+ decimalPlaces: 2,
219
+ useCompactNotation: true,
220
+ applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
221
+ },
222
+ [MEASURE.SHOPIFY_NEW_CUSTOMER_ORDER_TOTAL_PRODUCT_COST]: {
223
+ title: 'New Customer Order Total Product Cost',
224
+ description: 'The total cost of the products in an order from new customers.',
225
+ sumPrefix: '$',
226
+ sumSuffix: '',
227
+ avgPrefix: '$',
228
+ avgSuffix: '',
229
+ icon: 'shopify',
230
+ measure: MEASURE.SHOPIFY_NEW_CUSTOMER_ORDER_TOTAL_PRODUCT_COST,
231
+ category: MEASURE_CATEGORY.SALES,
232
+ valueType: MeasureValueType.CURRENCY,
233
+ decimalPlaces: 2,
234
+ useCompactNotation: true,
235
+ applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
236
+ },
237
+ [MEASURE.SHOPIFY_NEW_CUSTOMER_ORDER_TOTAL_PRODUCT_COST_GROSS_PERCENT]: {
238
+ title: 'New Customer Order Total Product Cost (% of Gross Sales)',
239
+ description: 'The percentage of gross sales from new customers that represents the total product cost.',
240
+ sumPrefix: '',
241
+ sumSuffix: '%',
242
+ avgPrefix: '',
243
+ avgSuffix: '%',
244
+ icon: 'shopify',
245
+ measure: MEASURE.SHOPIFY_NEW_CUSTOMER_ORDER_TOTAL_PRODUCT_COST_GROSS_PERCENT,
246
+ category: MEASURE_CATEGORY.SALES,
247
+ valueType: MeasureValueType.PERCENTAGE,
248
+ decimalPlaces: 2,
249
+ useCompactNotation: false,
250
+ applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
251
+ },
252
+ [MEASURE.SHOPIFY_NEW_CUSTOMER_ORDER_TOTAL_PRODUCT_COST_NET_PERCENT]: {
253
+ title: 'New Customer Order Total Product Cost (% of Net Sales)',
254
+ description: 'The percentage of net sales from new customers that represents the total product cost.',
255
+ sumPrefix: '',
256
+ sumSuffix: '%',
257
+ avgPrefix: '',
258
+ avgSuffix: '%',
259
+ icon: 'shopify',
260
+ measure: MEASURE.SHOPIFY_NEW_CUSTOMER_ORDER_TOTAL_PRODUCT_COST_NET_PERCENT,
261
+ category: MEASURE_CATEGORY.SALES,
262
+ valueType: MeasureValueType.PERCENTAGE,
263
+ decimalPlaces: 2,
264
+ useCompactNotation: false,
265
+ applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
266
+ },
267
+ [MEASURE.SHOPIFY_NEW_CUSTOMER_GROSS_PRODUCT_MARGIN]: {
268
+ title: 'New Customer Gross Product Margin',
269
+ description: 'Shopify new customer gross margin (New Customer Gross Sales - New Customer Total Product Cost)',
270
+ sumPrefix: '$',
271
+ sumSuffix: '',
272
+ avgPrefix: '$',
273
+ avgSuffix: '',
274
+ icon: 'shopify',
275
+ measure: MEASURE.SHOPIFY_NEW_CUSTOMER_GROSS_PRODUCT_MARGIN,
276
+ category: MEASURE_CATEGORY.SALES,
277
+ valueType: MeasureValueType.CURRENCY,
278
+ decimalPlaces: 2,
279
+ useCompactNotation: true,
280
+ applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
281
+ },
282
+ [MEASURE.SHOPIFY_NEW_CUSTOMER_GROSS_PRODUCT_MARGIN_GROSS_PERCENT]: {
283
+ title: 'New Customer Gross Product Margin (% of Gross Sales)',
284
+ description: 'The percentage of gross sales from new customers that represents the gross product margin.',
285
+ sumPrefix: '',
286
+ sumSuffix: '%',
287
+ avgPrefix: '',
288
+ avgSuffix: '%',
289
+ icon: 'shopify',
290
+ measure: MEASURE.SHOPIFY_NEW_CUSTOMER_GROSS_PRODUCT_MARGIN_GROSS_PERCENT,
291
+ category: MEASURE_CATEGORY.SALES,
292
+ valueType: MeasureValueType.PERCENTAGE,
293
+ decimalPlaces: 2,
294
+ useCompactNotation: false,
295
+ applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
296
+ },
297
+ [MEASURE.SHOPIFY_NEW_CUSTOMER_GROSS_PRODUCT_MARGIN_NET_PERCENT]: {
298
+ title: 'New Customer Gross Product Margin (% of Net Sales)',
299
+ description: 'The percentage of net sales from new customers that represents the gross product margin.',
300
+ sumPrefix: '',
301
+ sumSuffix: '%',
302
+ avgPrefix: '',
303
+ avgSuffix: '%',
304
+ icon: 'shopify',
305
+ measure: MEASURE.SHOPIFY_NEW_CUSTOMER_GROSS_PRODUCT_MARGIN_NET_PERCENT,
306
+ category: MEASURE_CATEGORY.SALES,
307
+ valueType: MeasureValueType.PERCENTAGE,
308
+ decimalPlaces: 2,
309
+ useCompactNotation: false,
310
+ applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
311
+ },
312
+ [MEASURE.SHOPIFY_NEW_CUSTOMER_NET_PRODUCT_MARGIN]: {
313
+ title: 'New Customer Net Product Margin',
314
+ description: 'Shopify new customer net margin (New Customer Net Sales - New Customer Total Product Cost)',
315
+ sumPrefix: '$',
316
+ sumSuffix: '',
317
+ avgPrefix: '$',
318
+ avgSuffix: '',
319
+ icon: 'shopify',
320
+ measure: MEASURE.SHOPIFY_NEW_CUSTOMER_NET_PRODUCT_MARGIN,
321
+ category: MEASURE_CATEGORY.SALES,
322
+ valueType: MeasureValueType.CURRENCY,
323
+ decimalPlaces: 2,
324
+ useCompactNotation: true,
325
+ applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
326
+ },
327
+ [MEASURE.SHOPIFY_NEW_CUSTOMER_NET_PRODUCT_MARGIN_GROSS_PERCENT]: {
328
+ title: 'New Customer Net Product Margin (% of Gross Sales)',
329
+ description: 'The percentage of gross sales from new customers that represents the net product margin.',
330
+ sumPrefix: '',
331
+ sumSuffix: '%',
332
+ avgPrefix: '',
333
+ avgSuffix: '%',
334
+ icon: 'shopify',
335
+ measure: MEASURE.SHOPIFY_NEW_CUSTOMER_NET_PRODUCT_MARGIN_GROSS_PERCENT,
336
+ category: MEASURE_CATEGORY.SALES,
337
+ valueType: MeasureValueType.PERCENTAGE,
338
+ decimalPlaces: 2,
339
+ useCompactNotation: false,
340
+ applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
341
+ },
342
+ [MEASURE.SHOPIFY_NEW_CUSTOMER_NET_PRODUCT_MARGIN_NET_PERCENT]: {
343
+ title: 'New Customer Net Product Margin (% of Net Sales)',
344
+ description: 'The percentage of net sales from new customers that represents the net product margin.',
345
+ sumPrefix: '',
346
+ sumSuffix: '%',
347
+ avgPrefix: '',
348
+ avgSuffix: '%',
349
+ icon: 'shopify',
350
+ measure: MEASURE.SHOPIFY_NEW_CUSTOMER_NET_PRODUCT_MARGIN_NET_PERCENT,
351
+ category: MEASURE_CATEGORY.SALES,
352
+ valueType: MeasureValueType.PERCENTAGE,
353
+ decimalPlaces: 2,
354
+ useCompactNotation: false,
355
+ applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
356
+ },
357
+ [MEASURE.SHOPIFY_NEW_CUSTOMER_GROSS_MARGIN]: {
358
+ title: 'New Customer Gross Margin',
359
+ description: 'Shopify new customer gross margin (New Customer Gross Sales - New Customer Total Product Cost - Ad Spend)',
360
+ sumPrefix: '$',
361
+ sumSuffix: '',
362
+ avgPrefix: '$',
363
+ avgSuffix: '',
364
+ icon: 'shopify',
365
+ measure: MEASURE.SHOPIFY_NEW_CUSTOMER_GROSS_MARGIN,
366
+ category: MEASURE_CATEGORY.SALES,
367
+ valueType: MeasureValueType.CURRENCY,
368
+ decimalPlaces: 2,
369
+ useCompactNotation: true,
370
+ applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
371
+ },
372
+ [MEASURE.SHOPIFY_NEW_CUSTOMER_GROSS_MARGIN_GROSS_PERCENT]: {
373
+ title: 'New Customer Gross Margin (% of Gross Sales)',
374
+ description: 'The percentage of gross sales from new customers that represents the gross margin.',
375
+ sumPrefix: '',
376
+ sumSuffix: '%',
377
+ avgPrefix: '',
378
+ avgSuffix: '%',
379
+ icon: 'shopify',
380
+ measure: MEASURE.SHOPIFY_NEW_CUSTOMER_GROSS_MARGIN_GROSS_PERCENT,
381
+ category: MEASURE_CATEGORY.SALES,
382
+ valueType: MeasureValueType.PERCENTAGE,
383
+ decimalPlaces: 2,
384
+ useCompactNotation: false,
385
+ applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
386
+ },
387
+ [MEASURE.SHOPIFY_NEW_CUSTOMER_GROSS_MARGIN_NET_PERCENT]: {
388
+ title: 'New Customer Gross Margin (% of Net Sales)',
389
+ description: 'The percentage of net sales from new customers that represents the gross margin.',
390
+ sumPrefix: '',
391
+ sumSuffix: '%',
392
+ avgPrefix: '',
393
+ avgSuffix: '%',
394
+ icon: 'shopify',
395
+ measure: MEASURE.SHOPIFY_NEW_CUSTOMER_GROSS_MARGIN_NET_PERCENT,
396
+ category: MEASURE_CATEGORY.SALES,
397
+ valueType: MeasureValueType.PERCENTAGE,
398
+ decimalPlaces: 2,
399
+ useCompactNotation: false,
400
+ applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
401
+ },
402
+ [MEASURE.SHOPIFY_NEW_CUSTOMER_NET_MARGIN]: {
403
+ title: 'New Customer Net Margin',
404
+ description: 'Shopify new customer net margin (New Customer Net Sales - New Customer Total Product Cost - Ad Spend)',
405
+ sumPrefix: '$',
406
+ sumSuffix: '',
407
+ avgPrefix: '$',
408
+ avgSuffix: '',
409
+ icon: 'shopify',
410
+ measure: MEASURE.SHOPIFY_NEW_CUSTOMER_NET_MARGIN,
411
+ category: MEASURE_CATEGORY.SALES,
412
+ valueType: MeasureValueType.CURRENCY,
413
+ decimalPlaces: 2,
414
+ useCompactNotation: true,
415
+ applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
416
+ },
417
+ [MEASURE.SHOPIFY_NEW_CUSTOMER_NET_MARGIN_GROSS_PERCENT]: {
418
+ title: 'New Customer Net Margin (% of Gross Sales)',
419
+ description: 'The percentage of gross sales from new customers that represents the net margin.',
420
+ sumPrefix: '',
421
+ sumSuffix: '%',
422
+ avgPrefix: '',
423
+ avgSuffix: '%',
424
+ icon: 'shopify',
425
+ measure: MEASURE.SHOPIFY_NEW_CUSTOMER_NET_MARGIN_GROSS_PERCENT,
426
+ category: MEASURE_CATEGORY.SALES,
427
+ valueType: MeasureValueType.PERCENTAGE,
428
+ decimalPlaces: 2,
429
+ useCompactNotation: false,
430
+ applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
431
+ },
432
+ [MEASURE.SHOPIFY_NEW_CUSTOMER_NET_MARGIN_NET_PERCENT]: {
433
+ title: 'New Customer Net Margin (% of Net Sales)',
434
+ description: 'The percentage of net sales from new customers that represents the net margin.',
435
+ sumPrefix: '',
436
+ sumSuffix: '%',
437
+ avgPrefix: '',
438
+ avgSuffix: '%',
439
+ icon: 'shopify',
440
+ measure: MEASURE.SHOPIFY_NEW_CUSTOMER_NET_MARGIN_NET_PERCENT,
441
+ category: MEASURE_CATEGORY.SALES,
442
+ valueType: MeasureValueType.PERCENTAGE,
443
+ decimalPlaces: 2,
444
+ useCompactNotation: false,
445
+ applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
446
+ },
447
+ };
448
448
  //# sourceMappingURL=shopify-nc-measure-definitions.js.map