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