@hanzo/commerce 6.3.0 → 6.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@hanzo/commerce",
3
- "version": "6.3.0",
3
+ "version": "6.3.2",
4
4
  "description": "e-commerce framework.",
5
- "type": "module",
5
+ "type": "module",
6
6
  "publishConfig": {
7
7
  "registry": "https://registry.npmjs.org/",
8
8
  "access": "public",
@@ -41,7 +41,7 @@
41
41
  },
42
42
  "peerDependencies": {
43
43
  "@hanzo/auth": "^2.3.5",
44
- "@hanzo/ui": "^3.6.0",
44
+ "@hanzo/ui": "^3.6.2",
45
45
  "@hookform/resolvers": "^3.3.4",
46
46
  "@radix-ui/react-radio-group": "^1.1.3",
47
47
  "firebase": "^10.8.0",
@@ -2,21 +2,23 @@
2
2
 
3
3
  import type { Promo } from '../types'
4
4
 
5
+ const referallCodeDiscountedSkus = [
6
+ 'LXM-CR-B-ABT', 'LXM-CR-B-GM', 'LXM-CR-F-CC', 'LXM-CR-F-IC', 'LXM-CR-E-24G', 'LXM-CR-E-SS', 'LXM-CR-S-RT', // credit cards
7
+ 'LXM-VL-GN', 'LXM-VL-VL', 'LXM-VL-MI', 'LXM-VL-NA', // validators
8
+ 'LXM-PS-PS', // pass
9
+ 'LXM-AG-B-1_OZ', // silver
10
+ ]
11
+
5
12
  const PROMO_CODES: Promo[] = [
6
13
  {
7
14
  type: 'percent',
8
15
  code: 'ANGEL',
9
- value: 20
16
+ value: 22
10
17
  },
11
18
  {
12
19
  type: 'percent',
13
20
  code: 'NASSER',
14
- value: 20
15
- },
16
- {
17
- type: 'percent',
18
- code: 'DARA',
19
- value: 20
21
+ value: 11.11
20
22
  },
21
23
  {
22
24
  type: 'percent',
@@ -26,13 +28,73 @@ const PROMO_CODES: Promo[] = [
26
28
  {
27
29
  type: 'percent',
28
30
  code: 'IYKYK',
29
- value: 20
31
+ value: 11.1
30
32
  },
31
33
  {
32
34
  type: 'percent',
33
35
  code: 'GENESIS',
34
36
  value: 99,
35
37
  skus: ['LXM-PS-PS']
38
+ },
39
+ {
40
+ type: 'percent',
41
+ code: 'ANTJE',
42
+ value: 33.3,
43
+ skus: referallCodeDiscountedSkus
44
+ },
45
+ {
46
+ type: 'percent',
47
+ code: 'ASHLEY',
48
+ value: 33.3,
49
+ skus: referallCodeDiscountedSkus
50
+ },
51
+ {
52
+ type: 'percent',
53
+ code: 'CALE',
54
+ value: 33.3,
55
+ skus: referallCodeDiscountedSkus
56
+ },
57
+ {
58
+ type: 'percent',
59
+ code: 'DARA',
60
+ value: 33.3,
61
+ skus: referallCodeDiscountedSkus
62
+ },
63
+ {
64
+ type: 'percent',
65
+ code: 'KENJI',
66
+ value: 33.3,
67
+ skus: referallCodeDiscountedSkus
68
+ },
69
+ {
70
+ type: 'percent',
71
+ code: 'MAJOR',
72
+ value: 33.3,
73
+ skus: referallCodeDiscountedSkus
74
+ },
75
+ {
76
+ type: 'percent',
77
+ code: 'CYRUS',
78
+ value: 33.3,
79
+ skus: referallCodeDiscountedSkus
80
+ },
81
+ {
82
+ type: 'percent',
83
+ code: 'STOBIE',
84
+ value: 33.3,
85
+ skus: referallCodeDiscountedSkus
86
+ },
87
+ {
88
+ type: 'percent',
89
+ code: 'SKYLER',
90
+ value: 33.3,
91
+ skus: referallCodeDiscountedSkus
92
+ },
93
+ {
94
+ type: 'percent',
95
+ code: 'ZEEKAY',
96
+ value: 33.3,
97
+ skus: referallCodeDiscountedSkus
36
98
  }
37
99
  ]
38
100
 
@@ -43,4 +105,4 @@ const getPromoFromApi = async (code: string) => {
43
105
 
44
106
  export {
45
107
  getPromoFromApi as default
46
- }
108
+ }