@vtex/faststore-plugin-buyer-portal 1.1.7 → 1.1.9
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
|
@@ -7,7 +7,8 @@ export const buyingPoliciesData: BuyingPolicy[] = [
|
|
|
7
7
|
description: "Defines the standard rules for purchasing items.",
|
|
8
8
|
criteria: "budget >= 100",
|
|
9
9
|
action: {
|
|
10
|
-
|
|
10
|
+
label: "Bypass all buying policies",
|
|
11
|
+
type: "BYPASS_ALL",
|
|
11
12
|
},
|
|
12
13
|
},
|
|
13
14
|
{
|
|
@@ -16,7 +17,8 @@ export const buyingPoliciesData: BuyingPolicy[] = [
|
|
|
16
17
|
description: "Policy for handling bulk orders with discounts.",
|
|
17
18
|
criteria: "quantity > 100",
|
|
18
19
|
action: {
|
|
19
|
-
|
|
20
|
+
label: "Sequential workflow",
|
|
21
|
+
type: "SEQUENTIAL_WORKFLOW",
|
|
20
22
|
levels: [
|
|
21
23
|
{ id: "1", name: "Manager" },
|
|
22
24
|
{ id: "2", name: "Director" },
|
|
@@ -30,7 +32,8 @@ export const buyingPoliciesData: BuyingPolicy[] = [
|
|
|
30
32
|
description: "Restricts the purchase of certain items.",
|
|
31
33
|
criteria: "category == 'restricted'",
|
|
32
34
|
action: {
|
|
33
|
-
|
|
35
|
+
label: "Deny order",
|
|
36
|
+
type: "DENY_ORDER",
|
|
34
37
|
},
|
|
35
38
|
},
|
|
36
39
|
{
|
|
@@ -39,7 +42,8 @@ export const buyingPoliciesData: BuyingPolicy[] = [
|
|
|
39
42
|
description: "Provides discounts for employees.",
|
|
40
43
|
criteria: "userRole == 'employee'",
|
|
41
44
|
action: {
|
|
42
|
-
|
|
45
|
+
label: "Bypass all buying policies",
|
|
46
|
+
type: "BYPASS_ALL",
|
|
43
47
|
},
|
|
44
48
|
},
|
|
45
49
|
{
|
|
@@ -48,7 +52,8 @@ export const buyingPoliciesData: BuyingPolicy[] = [
|
|
|
48
52
|
description: "Handles seasonal promotions and discounts.",
|
|
49
53
|
criteria: "season == 'holiday'",
|
|
50
54
|
action: {
|
|
51
|
-
|
|
55
|
+
label: "Sequential workflow",
|
|
56
|
+
type: "SEQUENTIAL_WORKFLOW",
|
|
52
57
|
levels: [
|
|
53
58
|
{ id: "1", name: "Marketing Manager" },
|
|
54
59
|
{ id: "2", name: "Finance Director" },
|
|
@@ -61,7 +66,8 @@ export const buyingPoliciesData: BuyingPolicy[] = [
|
|
|
61
66
|
description: "Requires approval for high-value purchases.",
|
|
62
67
|
criteria: "purchaseAmount > 10000",
|
|
63
68
|
action: {
|
|
64
|
-
|
|
69
|
+
label: "Sequential workflow",
|
|
70
|
+
type: "SEQUENTIAL_WORKFLOW",
|
|
65
71
|
levels: [
|
|
66
72
|
{ id: "1", name: "Manager" },
|
|
67
73
|
{ id: "2", name: "Finance Director" },
|
|
@@ -75,7 +81,8 @@ export const buyingPoliciesData: BuyingPolicy[] = [
|
|
|
75
81
|
description: "Rewards loyal customers with points.",
|
|
76
82
|
criteria: "loyaltyPoints >= 500",
|
|
77
83
|
action: {
|
|
78
|
-
|
|
84
|
+
label: "Bypass all buying policies",
|
|
85
|
+
type: "BYPASS_ALL",
|
|
79
86
|
},
|
|
80
87
|
},
|
|
81
88
|
{
|
|
@@ -84,7 +91,8 @@ export const buyingPoliciesData: BuyingPolicy[] = [
|
|
|
84
91
|
description: "Special offers for new customers.",
|
|
85
92
|
criteria: "isFirstPurchase == true",
|
|
86
93
|
action: {
|
|
87
|
-
|
|
94
|
+
label: "Bypass all buying policies",
|
|
95
|
+
type: "BYPASS_ALL",
|
|
88
96
|
},
|
|
89
97
|
},
|
|
90
98
|
{
|
|
@@ -93,7 +101,8 @@ export const buyingPoliciesData: BuyingPolicy[] = [
|
|
|
93
101
|
description: "Custom rules for corporate accounts.",
|
|
94
102
|
criteria: "accountType == 'corporate'",
|
|
95
103
|
action: {
|
|
96
|
-
|
|
104
|
+
label: "Sequential workflow",
|
|
105
|
+
type: "SEQUENTIAL_WORKFLOW",
|
|
97
106
|
levels: [
|
|
98
107
|
{ id: "1", name: "Account Manager" },
|
|
99
108
|
{ id: "2", name: "Finance Director" },
|
|
@@ -106,7 +115,8 @@ export const buyingPoliciesData: BuyingPolicy[] = [
|
|
|
106
115
|
description: "Handles subscription renewals.",
|
|
107
116
|
criteria: "subscriptionStatus == 'active'",
|
|
108
117
|
action: {
|
|
109
|
-
|
|
118
|
+
label: "Bypass all buying policies",
|
|
119
|
+
type: "BYPASS_ALL",
|
|
110
120
|
},
|
|
111
121
|
},
|
|
112
122
|
{
|
|
@@ -115,7 +125,8 @@ export const buyingPoliciesData: BuyingPolicy[] = [
|
|
|
115
125
|
description: "Rules for international orders.",
|
|
116
126
|
criteria: "shippingCountry != 'domestic'",
|
|
117
127
|
action: {
|
|
118
|
-
|
|
128
|
+
label: "Sequential workflow",
|
|
129
|
+
type: "SEQUENTIAL_WORKFLOW",
|
|
119
130
|
levels: [
|
|
120
131
|
{ id: "1", name: "Logistics Manager" },
|
|
121
132
|
{ id: "2", name: "Finance Director" },
|
|
@@ -128,7 +139,8 @@ export const buyingPoliciesData: BuyingPolicy[] = [
|
|
|
128
139
|
description: "Defines rules for returns and refunds.",
|
|
129
140
|
criteria: "daysSincePurchase <= 30",
|
|
130
141
|
action: {
|
|
131
|
-
|
|
142
|
+
label: "Deny order",
|
|
143
|
+
type: "DENY_ORDER",
|
|
132
144
|
},
|
|
133
145
|
},
|
|
134
146
|
{
|
|
@@ -137,7 +149,8 @@ export const buyingPoliciesData: BuyingPolicy[] = [
|
|
|
137
149
|
description: "Restricts purchase of age-sensitive items.",
|
|
138
150
|
criteria: "userAge < 18",
|
|
139
151
|
action: {
|
|
140
|
-
|
|
152
|
+
label: "Deny order",
|
|
153
|
+
type: "DENY_ORDER",
|
|
141
154
|
},
|
|
142
155
|
},
|
|
143
156
|
{
|
|
@@ -146,7 +159,8 @@ export const buyingPoliciesData: BuyingPolicy[] = [
|
|
|
146
159
|
description: "Exclusive benefits for VIP customers.",
|
|
147
160
|
criteria: "userStatus == 'VIP'",
|
|
148
161
|
action: {
|
|
149
|
-
|
|
162
|
+
label: "Bypass all buying policies",
|
|
163
|
+
type: "BYPASS_ALL",
|
|
150
164
|
},
|
|
151
165
|
},
|
|
152
166
|
{
|
|
@@ -155,7 +169,8 @@ export const buyingPoliciesData: BuyingPolicy[] = [
|
|
|
155
169
|
description: "Encourages eco-friendly purchases.",
|
|
156
170
|
criteria: "productType == 'eco-friendly'",
|
|
157
171
|
action: {
|
|
158
|
-
|
|
172
|
+
label: "Sequential workflow",
|
|
173
|
+
type: "SEQUENTIAL_WORKFLOW",
|
|
159
174
|
levels: [
|
|
160
175
|
{ id: "1", name: "Sustainability Manager" },
|
|
161
176
|
{ id: "2", name: "CEO" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { type BuyingPolicy
|
|
1
|
+
export { type BuyingPolicy } from "./BuyingPolicy";
|