@adtrackify/at-tracking-event-types 3.4.35 → 3.5.0

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