@routebot/constants 0.3.48 → 0.3.50

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.
@@ -168,6 +168,7 @@ const HTTP_CODES = {
168
168
  GOOGLE_MAPS_API_ERROR: 627,
169
169
  USAGE_LIMIT_EXCEEDED: 628,
170
170
  DEMO_CAN_NOT_MAKE_THIS_ACTION: 629,
171
+ ROUTE_LIMIT_EXCEEDED: 630,
171
172
  };
172
173
 
173
174
  module.exports = {
@@ -20,6 +20,7 @@ const PLANS_META = {
20
20
  priceMonthly: 0,
21
21
  maxRoutes: 10,
22
22
  pricePerRoute: 0,
23
+ tier: 0,
23
24
  dontShow: true,
24
25
  },
25
26
 
@@ -29,8 +30,9 @@ const PLANS_META = {
29
30
  description: "plan.free.description",
30
31
  features: ["features.routes.limited"],
31
32
  priceMonthly: 0,
32
- maxRoutes: 5,
33
+ maxRoutes: 10,
33
34
  pricePerRoute: 0,
35
+ tier: 1,
34
36
  dontShow: true,
35
37
  },
36
38
 
@@ -42,6 +44,7 @@ const PLANS_META = {
42
44
  priceMonthly: 120,
43
45
  maxRoutes: 40,
44
46
  pricePerRoute: 3,
47
+ tier: 2,
45
48
  },
46
49
 
47
50
  [PLANS.PRO]: {
@@ -52,6 +55,7 @@ const PLANS_META = {
52
55
  priceMonthly: 500,
53
56
  maxRoutes: 200,
54
57
  pricePerRoute: 2.5,
58
+ tier: 3,
55
59
  recommended: true,
56
60
  },
57
61
 
@@ -63,6 +67,7 @@ const PLANS_META = {
63
67
  priceMonthly: 1500,
64
68
  maxRoutes: 750,
65
69
  pricePerRoute: 2,
70
+ tier: 4,
66
71
  },
67
72
 
68
73
  [PLANS.ENTERPRISE]: {
@@ -73,15 +78,20 @@ const PLANS_META = {
73
78
  priceMonthly: 5000,
74
79
  maxRoutes: 5000,
75
80
  pricePerRoute: 1,
81
+ tier: 5,
76
82
  contactRequired: true,
77
83
  dontShow: true,
78
84
  },
79
85
 
80
86
  [PLANS.UNLIMITED]: {
81
87
  key: PLANS.UNLIMITED,
88
+ name: "Unlimited",
89
+ description: "plan.unlimited.description",
82
90
  priceMonthly: 4000,
83
91
  maxRoutes: Infinity,
84
- dontShow: true, // özel anlaşma
92
+ tier: 6,
93
+ contactRequired: true, // özel anlaşma - değişiklik için iletişim gerekli
94
+ dontShow: true,
85
95
  },
86
96
  };
87
97
 
@@ -89,8 +99,8 @@ const PLAN_QUOTAS = {
89
99
  [PLANS.DEMO]: {
90
100
  [USAGE_TYPES.MAPS__ADDRESS_TO_NEAREST_ROAD_LOCATION]: 25,
91
101
  [USAGE_TYPES.MAPS__LOCATION_TO_NEAREST_ROAD_ADDRESS]: 25,
92
- [USAGE_TYPES.MAPS__DIRECTIONS_SINGLE]: 25,
93
- [USAGE_TYPES.MAPS__DIRECTIONS_WITH_WAYPOINTS]: 25,
102
+ [USAGE_TYPES.MAPS__DIRECTIONS_SINGLE]: 100,
103
+ [USAGE_TYPES.MAPS__DIRECTIONS_WITH_WAYPOINTS]: 100,
94
104
  },
95
105
  [PLANS.FREE]: {
96
106
  [USAGE_TYPES.MAPS__ADDRESS_TO_NEAREST_ROAD_LOCATION]: 100,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@routebot/constants",
3
- "version": "0.3.48",
3
+ "version": "0.3.50",
4
4
  "description": "Shared constants for RouteBot FE/BE",
5
5
  "main": "index.js",
6
6
  "files": [