@placeshakr/config 10.19.0-alpha.8 → 10.19.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.
@@ -30,6 +30,61 @@ export interface SubscriptionSettings {
30
30
  * How many members can have a team
31
31
  */
32
32
  maxTeamMembers?: number;
33
+
34
+ /**
35
+ *
36
+ */
37
+ authorizationManagement?: boolean;
38
+
39
+ /**
40
+ * Acces to dashboard
41
+ */
42
+ dashboard?: boolean;
43
+
44
+ /**
45
+ * Acces to projects
46
+ */
47
+ projectStorage?: boolean;
48
+
49
+ /**
50
+ * This plan allows you to export PDF and Excel reports
51
+ */
52
+ exportReports?: boolean;
53
+
54
+ /**
55
+ * This plan allows you to customize the settings
56
+ */
57
+ customConfig?: boolean;
58
+
59
+ /**
60
+ *
61
+ */
62
+ externalApiIntegration?: boolean;
63
+
64
+ /**
65
+ *
66
+ */
67
+ support?: boolean
68
+
69
+ /**
70
+ * How many admins can have a team
71
+ */
72
+ maxAdminUsers?: number | null;
73
+
74
+ /**
75
+ * How many agents can have a team
76
+ */
77
+ maxAgentUsers?: number | null;
78
+
79
+ /**
80
+ * How many pros can have a team
81
+ */
82
+ maxProUsers?: number | null;
83
+
84
+ /**
85
+ * How many sellers can have a team
86
+ */
87
+ maxSellerUsers?: number | null;
33
88
  }
34
89
 
35
90
  export interface Product {
@@ -81,6 +136,11 @@ export interface Product {
81
136
  */
82
137
  rating: number;
83
138
 
139
+ /**
140
+ * Marked as private
141
+ */
142
+ isPrivate?: boolean;
143
+
84
144
  /**
85
145
  * Stripe plans associated with this product to be charged automatically
86
146
  */
@@ -101,20 +161,34 @@ export type ProductEntry = {
101
161
  id: string;
102
162
  internal: string;
103
163
  product: Product;
164
+ tariffs: {
165
+ base: { id: string; price: number; usageType: 'licensed' | 'metered'; type: 'base' | 'extra_user' };
166
+ additionalAdmin?: { id: string; price: number; usageType: 'licensed' | 'metered'; type: 'base' | 'extra_user' };
167
+ additionalAgent?: { id: string; price: number; usageType: 'licensed' | 'metered'; type: 'base' | 'extra_user' };
168
+ additionalPro?: { id: string; price: number; usageType: 'licensed' | 'metered'; type: 'base' | 'extra_user' };
169
+ additionalSeller?: { id: string; price: number; usageType: 'licensed' | 'metered'; type: 'base' | 'extra_user' };
170
+ };
104
171
  additionalUser: string;
105
172
  additionalUserPrice: number;
106
173
  };
107
174
 
108
175
  export type ProductReference = {
109
- standard: ProductEntry;
176
+ classic: ProductEntry;
110
177
  plus: ProductEntry;
111
- premium: ProductEntry;
178
+ standard: ProductEntry;
112
179
  };
113
180
 
114
181
  export type ProductCreationParams = {
115
182
  standard: {
116
183
  id: string;
117
184
  tax_rates: string[];
185
+ tariffs: {
186
+ base: { id: string; price: number; usageType: 'licensed' | 'metered'; type: 'base' | 'extra_user' };
187
+ additionalAdmin?: { id: string; price: number; usageType: 'licensed' | 'metered'; type: 'base' | 'extra_user' };
188
+ additionalAgent?: { id: string; price: number; usageType: 'licensed' | 'metered'; type: 'base' | 'extra_user' };
189
+ additionalPro?: { id: string; price: number; usageType: 'licensed' | 'metered'; type: 'base' | 'extra_user' };
190
+ additionalSeller?: { id: string; price: number; usageType: 'licensed' | 'metered'; type: 'base' | 'extra_user' };
191
+ };
118
192
  prices: {
119
193
  monthly: string;
120
194
  additionalUser: string;
@@ -124,15 +198,29 @@ export type ProductCreationParams = {
124
198
  plus: {
125
199
  id: string;
126
200
  tax_rates: string[];
201
+ tariffs: {
202
+ base: { id: string; price: number; usageType: 'licensed' | 'metered'; type: 'base' | 'extra_user' };
203
+ additionalAdmin?: { id: string; price: number; usageType: 'licensed' | 'metered'; type: 'base' | 'extra_user' };
204
+ additionalAgent?: { id: string; price: number; usageType: 'licensed' | 'metered'; type: 'base' | 'extra_user' };
205
+ additionalPro?: { id: string; price: number; usageType: 'licensed' | 'metered'; type: 'base' | 'extra_user' };
206
+ additionalSeller?: { id: string; price: number; usageType: 'licensed' | 'metered'; type: 'base' | 'extra_user' };
207
+ };
127
208
  prices: {
128
209
  monthly: string;
129
210
  additionalUser: string;
130
211
  };
131
212
  additionalUserPrice: number;
132
213
  };
133
- premium: {
214
+ classic: {
134
215
  id: string;
135
216
  tax_rates: string[];
217
+ tariffs: {
218
+ base: { id: string; price: number; usageType: 'licensed' | 'metered'; type: 'base' | 'extra_user' };
219
+ additionalAdmin?: { id: string; price: number; usageType: 'licensed' | 'metered'; type: 'base' | 'extra_user' };
220
+ additionalAgent?: { id: string; price: number; usageType: 'licensed' | 'metered'; type: 'base' | 'extra_user' };
221
+ additionalPro?: { id: string; price: number; usageType: 'licensed' | 'metered'; type: 'base' | 'extra_user' };
222
+ additionalSeller?: { id: string; price: number; usageType: 'licensed' | 'metered'; type: 'base' | 'extra_user' };
223
+ };
136
224
  prices: {
137
225
  monthly: string;
138
226
  additionalUser: string;