@adtrackify/at-tracking-event-types 4.5.0 → 4.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (371) 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 +76 -76
  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 +22 -22
  12. package/dist/cjs/types/api/accounts/user-account-types.js +2 -2
  13. package/dist/cjs/types/api/analytics/analytics-enums.d.ts +95 -93
  14. package/dist/cjs/types/api/analytics/analytics-enums.js +104 -102
  15. package/dist/cjs/types/api/analytics/analytics-enums.js.map +1 -1
  16. package/dist/cjs/types/api/analytics/event-tracking-types.d.ts +44 -44
  17. package/dist/cjs/types/api/analytics/event-tracking-types.js +3 -3
  18. package/dist/cjs/types/api/analytics/index.d.ts +3 -3
  19. package/dist/cjs/types/api/analytics/index.js +19 -19
  20. package/dist/cjs/types/api/analytics/query-types.d.ts +66 -66
  21. package/dist/cjs/types/api/analytics/query-types.js +2 -2
  22. package/dist/cjs/types/api/contact-acquisition/contact-acquisition.d.ts +106 -106
  23. package/dist/cjs/types/api/contact-acquisition/contact-acquisition.js +21 -21
  24. package/dist/cjs/types/api/contact-acquisition/email-verification.d.ts +30 -30
  25. package/dist/cjs/types/api/contact-acquisition/email-verification.js +11 -11
  26. package/dist/cjs/types/api/contact-acquisition/index.d.ts +6 -6
  27. package/dist/cjs/types/api/contact-acquisition/index.js +22 -22
  28. package/dist/cjs/types/api/contact-acquisition/purchased-contact.d.ts +35 -35
  29. package/dist/cjs/types/api/contact-acquisition/purchased-contact.js +8 -8
  30. package/dist/cjs/types/api/contact-acquisition/purchased-traits.d.ts +63 -63
  31. package/dist/cjs/types/api/contact-acquisition/purchased-traits.js +2 -2
  32. package/dist/cjs/types/api/contact-acquisition/third-party-contact.d.ts +44 -44
  33. package/dist/cjs/types/api/contact-acquisition/third-party-contact.js +2 -2
  34. package/dist/cjs/types/api/contact-acquisition/third-party-cookie-contact-acquisition.d.ts +6 -6
  35. package/dist/cjs/types/api/contact-acquisition/third-party-cookie-contact-acquisition.js +2 -2
  36. package/dist/cjs/types/api/dashboards/index.d.ts +1 -1
  37. package/dist/cjs/types/api/dashboards/index.js +17 -17
  38. package/dist/cjs/types/api/dashboards/widget.d.ts +127 -127
  39. package/dist/cjs/types/api/dashboards/widget.js +36 -36
  40. package/dist/cjs/types/api/destinations/destination-catalog.d.ts +30 -30
  41. package/dist/cjs/types/api/destinations/destination-catalog.js +2 -2
  42. package/dist/cjs/types/api/destinations/destination-enums.d.ts +42 -42
  43. package/dist/cjs/types/api/destinations/destination-enums.js +48 -48
  44. package/dist/cjs/types/api/destinations/destinations.d.ts +65 -65
  45. package/dist/cjs/types/api/destinations/destinations.js +2 -2
  46. package/dist/cjs/types/api/destinations/index.d.ts +6 -6
  47. package/dist/cjs/types/api/destinations/index.js +22 -22
  48. package/dist/cjs/types/api/destinations/third-party-contact-acquisition-configs.d.ts +9 -9
  49. package/dist/cjs/types/api/destinations/third-party-contact-acquisition-configs.js +2 -2
  50. package/dist/cjs/types/api/destinations/third-party-destination-configs.d.ts +185 -185
  51. package/dist/cjs/types/api/destinations/third-party-destination-configs.js +23 -23
  52. package/dist/cjs/types/api/destinations/third-party-integration-configs.d.ts +67 -67
  53. package/dist/cjs/types/api/destinations/third-party-integration-configs.js +11 -11
  54. package/dist/cjs/types/api/emq/emq-enums.d.ts +56 -51
  55. package/dist/cjs/types/api/emq/emq-enums.js +66 -60
  56. package/dist/cjs/types/api/emq/emq-enums.js.map +1 -1
  57. package/dist/cjs/types/api/emq/emq-health.d.ts +24 -24
  58. package/dist/cjs/types/api/emq/emq-health.js +5 -5
  59. package/dist/cjs/types/api/emq/emq-types.d.ts +156 -152
  60. package/dist/cjs/types/api/emq/emq-types.js +7 -7
  61. package/dist/cjs/types/api/emq/emq-types.js.map +1 -1
  62. package/dist/cjs/types/api/emq/index.d.ts +3 -3
  63. package/dist/cjs/types/api/emq/index.js +19 -19
  64. package/dist/cjs/types/api/feature.d.ts +229 -229
  65. package/dist/cjs/types/api/feature.js +199 -199
  66. package/dist/cjs/types/api/health/health-enums.d.ts +7 -7
  67. package/dist/cjs/types/api/health/health-enums.js +11 -11
  68. package/dist/cjs/types/api/health/health-status.d.ts +14 -14
  69. package/dist/cjs/types/api/health/health-status.js +2 -2
  70. package/dist/cjs/types/api/health/index.d.ts +3 -3
  71. package/dist/cjs/types/api/health/index.js +19 -19
  72. package/dist/cjs/types/api/health/pixel-health.d.ts +19 -19
  73. package/dist/cjs/types/api/health/pixel-health.js +2 -2
  74. package/dist/cjs/types/api/index.d.ts +15 -15
  75. package/dist/cjs/types/api/index.js +31 -31
  76. package/dist/cjs/types/api/logging/index.d.ts +1 -1
  77. package/dist/cjs/types/api/logging/index.js +17 -17
  78. package/dist/cjs/types/api/logging/logging-types.d.ts +22 -22
  79. package/dist/cjs/types/api/logging/logging-types.js +2 -2
  80. package/dist/cjs/types/api/measures/definitions/channel-measure-definitions.d.ts +2 -2
  81. package/dist/cjs/types/api/measures/definitions/channel-measure-definitions.js +1677 -1677
  82. package/dist/cjs/types/api/measures/definitions/core-measure-definitions.d.ts +2 -2
  83. package/dist/cjs/types/api/measures/definitions/core-measure-definitions.js +446 -446
  84. package/dist/cjs/types/api/measures/definitions/emq-measure-definitions.d.ts +2 -2
  85. package/dist/cjs/types/api/measures/definitions/emq-measure-definitions.js +232 -204
  86. package/dist/cjs/types/api/measures/definitions/emq-measure-definitions.js.map +1 -1
  87. package/dist/cjs/types/api/measures/definitions/facebook-measure-definitions.d.ts +2 -2
  88. package/dist/cjs/types/api/measures/definitions/facebook-measure-definitions.js +1451 -1451
  89. package/dist/cjs/types/api/measures/definitions/google-measure-definitions.d.ts +2 -2
  90. package/dist/cjs/types/api/measures/definitions/google-measure-definitions.js +325 -325
  91. package/dist/cjs/types/api/measures/definitions/index.d.ts +13 -13
  92. package/dist/cjs/types/api/measures/definitions/index.js +29 -29
  93. package/dist/cjs/types/api/measures/definitions/measure-applicable-contexts.d.ts +9 -9
  94. package/dist/cjs/types/api/measures/definitions/measure-applicable-contexts.js +16 -16
  95. package/dist/cjs/types/api/measures/definitions/measure-categories.d.ts +19 -19
  96. package/dist/cjs/types/api/measures/definitions/measure-categories.js +23 -23
  97. package/dist/cjs/types/api/measures/definitions/measure-definitions.d.ts +40 -40
  98. package/dist/cjs/types/api/measures/definitions/measure-definitions.js +31 -31
  99. package/dist/cjs/types/api/measures/definitions/measure-value-type.d.ts +8 -8
  100. package/dist/cjs/types/api/measures/definitions/measure-value-type.js +12 -12
  101. package/dist/cjs/types/api/measures/definitions/shopify/shopify-measure-definitions.d.ts +2 -2
  102. package/dist/cjs/types/api/measures/definitions/shopify/shopify-measure-definitions.js +864 -864
  103. package/dist/cjs/types/api/measures/definitions/shopify/shopify-nc-measure-definitions.d.ts +2 -2
  104. package/dist/cjs/types/api/measures/definitions/shopify/shopify-nc-measure-definitions.js +450 -450
  105. package/dist/cjs/types/api/measures/definitions/shopify/shopify-rc-measure-definitions.d.ts +2 -2
  106. package/dist/cjs/types/api/measures/definitions/shopify/shopify-rc-measure-definitions.js +451 -451
  107. package/dist/cjs/types/api/measures/definitions/tracked-measure-definitions.d.ts +2 -2
  108. package/dist/cjs/types/api/measures/definitions/tracked-measure-definitions.js +509 -509
  109. package/dist/cjs/types/api/measures/index.d.ts +2 -2
  110. package/dist/cjs/types/api/measures/index.js +18 -18
  111. package/dist/cjs/types/api/measures/measures.d.ts +471 -469
  112. package/dist/cjs/types/api/measures/measures.js +475 -473
  113. package/dist/cjs/types/api/measures/measures.js.map +1 -1
  114. package/dist/cjs/types/api/notifications/index.d.ts +3 -3
  115. package/dist/cjs/types/api/notifications/index.js +19 -19
  116. package/dist/cjs/types/api/notifications/notification-enums.d.ts +46 -46
  117. package/dist/cjs/types/api/notifications/notification-enums.js +54 -54
  118. package/dist/cjs/types/api/notifications/notification-history.d.ts +25 -25
  119. package/dist/cjs/types/api/notifications/notification-history.js +2 -2
  120. package/dist/cjs/types/api/notifications/notification-settings.d.ts +17 -17
  121. package/dist/cjs/types/api/notifications/notification-settings.js +103 -103
  122. package/dist/cjs/types/api/promotion-code.d.ts +35 -35
  123. package/dist/cjs/types/api/promotion-code.js +9 -9
  124. package/dist/cjs/types/api/service-events/index.d.ts +3 -3
  125. package/dist/cjs/types/api/service-events/index.js +19 -19
  126. package/dist/cjs/types/api/service-events/service-event-details.d.ts +127 -60
  127. package/dist/cjs/types/api/service-events/service-event-details.js +2 -2
  128. package/dist/cjs/types/api/service-events/service-event-enums.d.ts +33 -26
  129. package/dist/cjs/types/api/service-events/service-event-enums.js +39 -32
  130. package/dist/cjs/types/api/service-events/service-event-enums.js.map +1 -1
  131. package/dist/cjs/types/api/service-events/service-event-wrappers.d.ts +25 -16
  132. package/dist/cjs/types/api/service-events/service-event-wrappers.js +2 -2
  133. package/dist/cjs/types/api/shopify/index.d.ts +2 -2
  134. package/dist/cjs/types/api/shopify/index.js +18 -18
  135. package/dist/cjs/types/api/shopify/shopify-enums.d.ts +10 -10
  136. package/dist/cjs/types/api/shopify/shopify-enums.js +14 -14
  137. package/dist/cjs/types/api/shopify/shopify-types.d.ts +32 -32
  138. package/dist/cjs/types/api/shopify/shopify-types.js +2 -2
  139. package/dist/cjs/types/api/subscriptions/index.d.ts +2 -2
  140. package/dist/cjs/types/api/subscriptions/index.js +18 -18
  141. package/dist/cjs/types/api/subscriptions/subscription-enums.d.ts +38 -38
  142. package/dist/cjs/types/api/subscriptions/subscription-enums.js +48 -48
  143. package/dist/cjs/types/api/subscriptions/subscription-types.d.ts +155 -155
  144. package/dist/cjs/types/api/subscriptions/subscription-types.js +2 -2
  145. package/dist/cjs/types/common/address.d.ts +22 -22
  146. package/dist/cjs/types/common/address.js +8 -8
  147. package/dist/cjs/types/common/currency.d.ts +1 -1
  148. package/dist/cjs/types/common/currency.js +63 -63
  149. package/dist/cjs/types/common/index.d.ts +2 -2
  150. package/dist/cjs/types/common/index.js +18 -18
  151. package/dist/cjs/types/event/base/event-name-enum.d.ts +123 -123
  152. package/dist/cjs/types/event/base/event-name-enum.js +129 -129
  153. package/dist/cjs/types/event/base/event.d.ts +20 -20
  154. package/dist/cjs/types/event/base/event.js +10 -10
  155. package/dist/cjs/types/event/base/index.d.ts +2 -2
  156. package/dist/cjs/types/event/base/index.js +18 -18
  157. package/dist/cjs/types/event/context/event-context-identity.d.ts +32 -32
  158. package/dist/cjs/types/event/context/event-context-identity.js +2 -2
  159. package/dist/cjs/types/event/context/event-context.d.ts +201 -201
  160. package/dist/cjs/types/event/context/event-context.js +2 -2
  161. package/dist/cjs/types/event/context/index.d.ts +2 -2
  162. package/dist/cjs/types/event/context/index.js +18 -18
  163. package/dist/cjs/types/event/index.d.ts +6 -6
  164. package/dist/cjs/types/event/index.js +22 -22
  165. package/dist/cjs/types/event/log-event.d.ts +35 -35
  166. package/dist/cjs/types/event/log-event.js +22 -22
  167. package/dist/cjs/types/event/metric-event.d.ts +13 -13
  168. package/dist/cjs/types/event/metric-event.js +2 -2
  169. package/dist/cjs/types/event/saas-event-properties.d.ts +47 -47
  170. package/dist/cjs/types/event/saas-event-properties.js +10 -10
  171. package/dist/cjs/types/event/tracking-event.d.ts +69 -69
  172. package/dist/cjs/types/event/tracking-event.js +2 -2
  173. package/dist/cjs/types/event-bus-event.d.ts +25 -25
  174. package/dist/cjs/types/event-bus-event.js +2 -2
  175. package/dist/cjs/types/fingerprint/browser-attributes.d.ts +60 -60
  176. package/dist/cjs/types/fingerprint/browser-attributes.js +2 -2
  177. package/dist/cjs/types/fingerprint/index.d.ts +6 -6
  178. package/dist/cjs/types/fingerprint/index.js +18 -18
  179. package/dist/cjs/types/fingerprint/server-attributes.d.ts +50 -50
  180. package/dist/cjs/types/fingerprint/server-attributes.js +2 -2
  181. package/dist/cjs/types/index.d.ts +7 -7
  182. package/dist/cjs/types/index.js +23 -23
  183. package/dist/cjs/types/third-party-event-configuration-types.d.ts +10 -10
  184. package/dist/cjs/types/third-party-event-configuration-types.js +2 -2
  185. package/dist/cjs/types/tracking-event-ingest-message.d.ts +12 -12
  186. package/dist/cjs/types/tracking-event-ingest-message.js +2 -2
  187. package/dist/esm/index.d.ts +1 -1
  188. package/dist/esm/index.js +1 -1
  189. package/dist/esm/types/api/accounts/account-enums.d.ts +82 -82
  190. package/dist/esm/types/api/accounts/account-enums.js +94 -94
  191. package/dist/esm/types/api/accounts/account-types.d.ts +76 -76
  192. package/dist/esm/types/api/accounts/account-types.js +1 -1
  193. package/dist/esm/types/api/accounts/index.d.ts +3 -3
  194. package/dist/esm/types/api/accounts/index.js +3 -3
  195. package/dist/esm/types/api/accounts/user-account-types.d.ts +22 -22
  196. package/dist/esm/types/api/accounts/user-account-types.js +1 -1
  197. package/dist/esm/types/api/analytics/analytics-enums.d.ts +95 -93
  198. package/dist/esm/types/api/analytics/analytics-enums.js +101 -99
  199. package/dist/esm/types/api/analytics/analytics-enums.js.map +1 -1
  200. package/dist/esm/types/api/analytics/event-tracking-types.d.ts +44 -44
  201. package/dist/esm/types/api/analytics/event-tracking-types.js +1 -1
  202. package/dist/esm/types/api/analytics/index.d.ts +3 -3
  203. package/dist/esm/types/api/analytics/index.js +3 -3
  204. package/dist/esm/types/api/analytics/query-types.d.ts +66 -66
  205. package/dist/esm/types/api/analytics/query-types.js +1 -1
  206. package/dist/esm/types/api/contact-acquisition/contact-acquisition.d.ts +106 -106
  207. package/dist/esm/types/api/contact-acquisition/contact-acquisition.js +18 -18
  208. package/dist/esm/types/api/contact-acquisition/email-verification.d.ts +30 -30
  209. package/dist/esm/types/api/contact-acquisition/email-verification.js +8 -8
  210. package/dist/esm/types/api/contact-acquisition/index.d.ts +6 -6
  211. package/dist/esm/types/api/contact-acquisition/index.js +6 -6
  212. package/dist/esm/types/api/contact-acquisition/purchased-contact.d.ts +35 -35
  213. package/dist/esm/types/api/contact-acquisition/purchased-contact.js +5 -5
  214. package/dist/esm/types/api/contact-acquisition/purchased-traits.d.ts +63 -63
  215. package/dist/esm/types/api/contact-acquisition/purchased-traits.js +1 -1
  216. package/dist/esm/types/api/contact-acquisition/third-party-contact.d.ts +44 -44
  217. package/dist/esm/types/api/contact-acquisition/third-party-contact.js +1 -1
  218. package/dist/esm/types/api/contact-acquisition/third-party-cookie-contact-acquisition.d.ts +6 -6
  219. package/dist/esm/types/api/contact-acquisition/third-party-cookie-contact-acquisition.js +1 -1
  220. package/dist/esm/types/api/dashboards/index.d.ts +1 -1
  221. package/dist/esm/types/api/dashboards/index.js +1 -1
  222. package/dist/esm/types/api/dashboards/widget.d.ts +127 -127
  223. package/dist/esm/types/api/dashboards/widget.js +33 -33
  224. package/dist/esm/types/api/destinations/destination-catalog.d.ts +30 -30
  225. package/dist/esm/types/api/destinations/destination-catalog.js +1 -1
  226. package/dist/esm/types/api/destinations/destination-enums.d.ts +42 -42
  227. package/dist/esm/types/api/destinations/destination-enums.js +45 -45
  228. package/dist/esm/types/api/destinations/destinations.d.ts +65 -65
  229. package/dist/esm/types/api/destinations/destinations.js +1 -1
  230. package/dist/esm/types/api/destinations/index.d.ts +6 -6
  231. package/dist/esm/types/api/destinations/index.js +6 -6
  232. package/dist/esm/types/api/destinations/third-party-contact-acquisition-configs.d.ts +9 -9
  233. package/dist/esm/types/api/destinations/third-party-contact-acquisition-configs.js +1 -1
  234. package/dist/esm/types/api/destinations/third-party-destination-configs.d.ts +185 -185
  235. package/dist/esm/types/api/destinations/third-party-destination-configs.js +20 -20
  236. package/dist/esm/types/api/destinations/third-party-integration-configs.d.ts +67 -67
  237. package/dist/esm/types/api/destinations/third-party-integration-configs.js +8 -8
  238. package/dist/esm/types/api/emq/emq-enums.d.ts +56 -51
  239. package/dist/esm/types/api/emq/emq-enums.js +63 -57
  240. package/dist/esm/types/api/emq/emq-enums.js.map +1 -1
  241. package/dist/esm/types/api/emq/emq-health.d.ts +24 -24
  242. package/dist/esm/types/api/emq/emq-health.js +2 -2
  243. package/dist/esm/types/api/emq/emq-types.d.ts +156 -152
  244. package/dist/esm/types/api/emq/emq-types.js +4 -4
  245. package/dist/esm/types/api/emq/emq-types.js.map +1 -1
  246. package/dist/esm/types/api/emq/index.d.ts +3 -3
  247. package/dist/esm/types/api/emq/index.js +3 -3
  248. package/dist/esm/types/api/feature.d.ts +229 -229
  249. package/dist/esm/types/api/feature.js +196 -196
  250. package/dist/esm/types/api/health/health-enums.d.ts +7 -7
  251. package/dist/esm/types/api/health/health-enums.js +8 -8
  252. package/dist/esm/types/api/health/health-status.d.ts +14 -14
  253. package/dist/esm/types/api/health/health-status.js +1 -1
  254. package/dist/esm/types/api/health/index.d.ts +3 -3
  255. package/dist/esm/types/api/health/index.js +3 -3
  256. package/dist/esm/types/api/health/pixel-health.d.ts +19 -19
  257. package/dist/esm/types/api/health/pixel-health.js +1 -1
  258. package/dist/esm/types/api/index.d.ts +15 -15
  259. package/dist/esm/types/api/index.js +15 -15
  260. package/dist/esm/types/api/logging/index.d.ts +1 -1
  261. package/dist/esm/types/api/logging/index.js +1 -1
  262. package/dist/esm/types/api/logging/logging-types.d.ts +22 -22
  263. package/dist/esm/types/api/logging/logging-types.js +1 -1
  264. package/dist/esm/types/api/measures/definitions/channel-measure-definitions.d.ts +2 -2
  265. package/dist/esm/types/api/measures/definitions/channel-measure-definitions.js +1674 -1674
  266. package/dist/esm/types/api/measures/definitions/core-measure-definitions.d.ts +2 -2
  267. package/dist/esm/types/api/measures/definitions/core-measure-definitions.js +443 -443
  268. package/dist/esm/types/api/measures/definitions/emq-measure-definitions.d.ts +2 -2
  269. package/dist/esm/types/api/measures/definitions/emq-measure-definitions.js +229 -201
  270. package/dist/esm/types/api/measures/definitions/emq-measure-definitions.js.map +1 -1
  271. package/dist/esm/types/api/measures/definitions/facebook-measure-definitions.d.ts +2 -2
  272. package/dist/esm/types/api/measures/definitions/facebook-measure-definitions.js +1448 -1448
  273. package/dist/esm/types/api/measures/definitions/google-measure-definitions.d.ts +2 -2
  274. package/dist/esm/types/api/measures/definitions/google-measure-definitions.js +322 -322
  275. package/dist/esm/types/api/measures/definitions/index.d.ts +13 -13
  276. package/dist/esm/types/api/measures/definitions/index.js +13 -13
  277. package/dist/esm/types/api/measures/definitions/measure-applicable-contexts.d.ts +9 -9
  278. package/dist/esm/types/api/measures/definitions/measure-applicable-contexts.js +13 -13
  279. package/dist/esm/types/api/measures/definitions/measure-categories.d.ts +19 -19
  280. package/dist/esm/types/api/measures/definitions/measure-categories.js +20 -20
  281. package/dist/esm/types/api/measures/definitions/measure-definitions.d.ts +40 -40
  282. package/dist/esm/types/api/measures/definitions/measure-definitions.js +28 -28
  283. package/dist/esm/types/api/measures/definitions/measure-value-type.d.ts +8 -8
  284. package/dist/esm/types/api/measures/definitions/measure-value-type.js +9 -9
  285. package/dist/esm/types/api/measures/definitions/shopify/shopify-measure-definitions.d.ts +2 -2
  286. package/dist/esm/types/api/measures/definitions/shopify/shopify-measure-definitions.js +861 -861
  287. package/dist/esm/types/api/measures/definitions/shopify/shopify-nc-measure-definitions.d.ts +2 -2
  288. package/dist/esm/types/api/measures/definitions/shopify/shopify-nc-measure-definitions.js +447 -447
  289. package/dist/esm/types/api/measures/definitions/shopify/shopify-rc-measure-definitions.d.ts +2 -2
  290. package/dist/esm/types/api/measures/definitions/shopify/shopify-rc-measure-definitions.js +448 -448
  291. package/dist/esm/types/api/measures/definitions/tracked-measure-definitions.d.ts +2 -2
  292. package/dist/esm/types/api/measures/definitions/tracked-measure-definitions.js +506 -506
  293. package/dist/esm/types/api/measures/index.d.ts +2 -2
  294. package/dist/esm/types/api/measures/index.js +2 -2
  295. package/dist/esm/types/api/measures/measures.d.ts +471 -469
  296. package/dist/esm/types/api/measures/measures.js +472 -470
  297. package/dist/esm/types/api/measures/measures.js.map +1 -1
  298. package/dist/esm/types/api/notifications/index.d.ts +3 -3
  299. package/dist/esm/types/api/notifications/index.js +3 -3
  300. package/dist/esm/types/api/notifications/notification-enums.d.ts +46 -46
  301. package/dist/esm/types/api/notifications/notification-enums.js +51 -51
  302. package/dist/esm/types/api/notifications/notification-history.d.ts +25 -25
  303. package/dist/esm/types/api/notifications/notification-history.js +1 -1
  304. package/dist/esm/types/api/notifications/notification-settings.d.ts +17 -17
  305. package/dist/esm/types/api/notifications/notification-settings.js +99 -99
  306. package/dist/esm/types/api/promotion-code.d.ts +35 -35
  307. package/dist/esm/types/api/promotion-code.js +6 -6
  308. package/dist/esm/types/api/service-events/index.d.ts +3 -3
  309. package/dist/esm/types/api/service-events/index.js +3 -3
  310. package/dist/esm/types/api/service-events/service-event-details.d.ts +127 -60
  311. package/dist/esm/types/api/service-events/service-event-details.js +1 -1
  312. package/dist/esm/types/api/service-events/service-event-enums.d.ts +33 -26
  313. package/dist/esm/types/api/service-events/service-event-enums.js +36 -29
  314. package/dist/esm/types/api/service-events/service-event-enums.js.map +1 -1
  315. package/dist/esm/types/api/service-events/service-event-wrappers.d.ts +25 -16
  316. package/dist/esm/types/api/service-events/service-event-wrappers.js +1 -1
  317. package/dist/esm/types/api/shopify/index.d.ts +2 -2
  318. package/dist/esm/types/api/shopify/index.js +2 -2
  319. package/dist/esm/types/api/shopify/shopify-enums.d.ts +10 -10
  320. package/dist/esm/types/api/shopify/shopify-enums.js +11 -11
  321. package/dist/esm/types/api/shopify/shopify-types.d.ts +32 -32
  322. package/dist/esm/types/api/shopify/shopify-types.js +1 -1
  323. package/dist/esm/types/api/subscriptions/index.d.ts +2 -2
  324. package/dist/esm/types/api/subscriptions/index.js +2 -2
  325. package/dist/esm/types/api/subscriptions/subscription-enums.d.ts +38 -38
  326. package/dist/esm/types/api/subscriptions/subscription-enums.js +45 -45
  327. package/dist/esm/types/api/subscriptions/subscription-types.d.ts +155 -155
  328. package/dist/esm/types/api/subscriptions/subscription-types.js +1 -1
  329. package/dist/esm/types/common/address.d.ts +22 -22
  330. package/dist/esm/types/common/address.js +5 -5
  331. package/dist/esm/types/common/currency.d.ts +1 -1
  332. package/dist/esm/types/common/currency.js +60 -60
  333. package/dist/esm/types/common/index.d.ts +2 -2
  334. package/dist/esm/types/common/index.js +2 -2
  335. package/dist/esm/types/event/base/event-name-enum.d.ts +123 -123
  336. package/dist/esm/types/event/base/event-name-enum.js +126 -126
  337. package/dist/esm/types/event/base/event.d.ts +20 -20
  338. package/dist/esm/types/event/base/event.js +7 -7
  339. package/dist/esm/types/event/base/index.d.ts +2 -2
  340. package/dist/esm/types/event/base/index.js +2 -2
  341. package/dist/esm/types/event/context/event-context-identity.d.ts +32 -32
  342. package/dist/esm/types/event/context/event-context-identity.js +1 -1
  343. package/dist/esm/types/event/context/event-context.d.ts +201 -201
  344. package/dist/esm/types/event/context/event-context.js +1 -1
  345. package/dist/esm/types/event/context/index.d.ts +2 -2
  346. package/dist/esm/types/event/context/index.js +2 -2
  347. package/dist/esm/types/event/index.d.ts +6 -6
  348. package/dist/esm/types/event/index.js +6 -6
  349. package/dist/esm/types/event/log-event.d.ts +35 -35
  350. package/dist/esm/types/event/log-event.js +19 -19
  351. package/dist/esm/types/event/metric-event.d.ts +13 -13
  352. package/dist/esm/types/event/metric-event.js +1 -1
  353. package/dist/esm/types/event/saas-event-properties.d.ts +47 -47
  354. package/dist/esm/types/event/saas-event-properties.js +7 -7
  355. package/dist/esm/types/event/tracking-event.d.ts +69 -69
  356. package/dist/esm/types/event/tracking-event.js +1 -1
  357. package/dist/esm/types/event-bus-event.d.ts +25 -25
  358. package/dist/esm/types/event-bus-event.js +1 -1
  359. package/dist/esm/types/fingerprint/browser-attributes.d.ts +60 -60
  360. package/dist/esm/types/fingerprint/browser-attributes.js +1 -1
  361. package/dist/esm/types/fingerprint/index.d.ts +6 -6
  362. package/dist/esm/types/fingerprint/index.js +2 -2
  363. package/dist/esm/types/fingerprint/server-attributes.d.ts +50 -50
  364. package/dist/esm/types/fingerprint/server-attributes.js +1 -1
  365. package/dist/esm/types/index.d.ts +7 -7
  366. package/dist/esm/types/index.js +7 -7
  367. package/dist/esm/types/third-party-event-configuration-types.d.ts +10 -10
  368. package/dist/esm/types/third-party-event-configuration-types.js +1 -1
  369. package/dist/esm/types/tracking-event-ingest-message.d.ts +12 -12
  370. package/dist/esm/types/tracking-event-ingest-message.js +1 -1
  371. package/package.json +108 -108
@@ -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