@fonderie/vue-admin-screens 1.4.0 → 1.6.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.
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as vue from 'vue';
2
2
  import { PropType, VNode } from 'vue';
3
- import { AdminClient, ConfigAdminClient, CourierAdminClient, AuthAdminClient, BillingAdminClient, AuditAdminClient, SubscriberType } from '@fonderie/client';
3
+ import { AdminClient, ConfigAdminClient, CourierAdminClient, AuthAdminClient, BillingAdminClient, AuditAdminClient, AdminLocale, SubscriberType } from '@fonderie/client';
4
4
 
5
5
  type AdminPage = 'attention' | 'modules' | 'doctor' | 'environment' | 'routes' | 'migrations' | 'tokens' | 'operators' | 'log' | 'settings' | 'templates' | 'users' | 'catalog' | 'subscriber' | 'audit';
6
6
  declare const AdminShell: vue.DefineComponent<vue.ExtractPropTypes<{
@@ -52,6 +52,14 @@ declare const AdminShell: vue.DefineComponent<vue.ExtractPropTypes<{
52
52
  type: StringConstructor;
53
53
  default: undefined;
54
54
  };
55
+ publicConfigUrl: {
56
+ type: StringConstructor;
57
+ default: undefined;
58
+ };
59
+ locale: {
60
+ type: PropType<AdminLocale>;
61
+ default: undefined;
62
+ };
55
63
  }>, () => VNode<vue.RendererNode, vue.RendererElement, {
56
64
  [key: string]: any;
57
65
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
@@ -105,13 +113,22 @@ declare const AdminShell: vue.DefineComponent<vue.ExtractPropTypes<{
105
113
  type: StringConstructor;
106
114
  default: undefined;
107
115
  };
116
+ publicConfigUrl: {
117
+ type: StringConstructor;
118
+ default: undefined;
119
+ };
120
+ locale: {
121
+ type: PropType<AdminLocale>;
122
+ default: undefined;
123
+ };
108
124
  }>> & Readonly<{
109
125
  onNavigate?: (_page: AdminPage) => any;
110
126
  }>, {
111
127
  page: AdminPage;
112
128
  environment: string;
113
- billingClient: BillingAdminClient;
129
+ locale: "en" | "fr" | "es";
114
130
  operators: boolean;
131
+ billingClient: BillingAdminClient;
115
132
  configClient: ConfigAdminClient;
116
133
  courierClient: CourierAdminClient;
117
134
  authClient: AuthAdminClient;
@@ -119,6 +136,7 @@ declare const AdminShell: vue.DefineComponent<vue.ExtractPropTypes<{
119
136
  appName: string;
120
137
  envLabel: string;
121
138
  currentOperator: string;
139
+ publicConfigUrl: string;
122
140
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
123
141
 
124
142
  declare const AttentionScreen: vue.DefineComponent<vue.ExtractPropTypes<{
@@ -126,6 +144,10 @@ declare const AttentionScreen: vue.DefineComponent<vue.ExtractPropTypes<{
126
144
  type: PropType<AdminClient>;
127
145
  required: true;
128
146
  };
147
+ locale: {
148
+ type: PropType<AdminLocale>;
149
+ default: undefined;
150
+ };
129
151
  }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
130
152
  [key: string]: any;
131
153
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
@@ -133,13 +155,23 @@ declare const AttentionScreen: vue.DefineComponent<vue.ExtractPropTypes<{
133
155
  type: PropType<AdminClient>;
134
156
  required: true;
135
157
  };
136
- }>> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
158
+ locale: {
159
+ type: PropType<AdminLocale>;
160
+ default: undefined;
161
+ };
162
+ }>> & Readonly<{}>, {
163
+ locale: "en" | "fr" | "es";
164
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
137
165
 
138
166
  declare const ModulesScreen: vue.DefineComponent<vue.ExtractPropTypes<{
139
167
  client: {
140
168
  type: PropType<AdminClient>;
141
169
  required: true;
142
170
  };
171
+ locale: {
172
+ type: PropType<AdminLocale>;
173
+ default: undefined;
174
+ };
143
175
  }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
144
176
  [key: string]: any;
145
177
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
@@ -147,13 +179,23 @@ declare const ModulesScreen: vue.DefineComponent<vue.ExtractPropTypes<{
147
179
  type: PropType<AdminClient>;
148
180
  required: true;
149
181
  };
150
- }>> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
182
+ locale: {
183
+ type: PropType<AdminLocale>;
184
+ default: undefined;
185
+ };
186
+ }>> & Readonly<{}>, {
187
+ locale: "en" | "fr" | "es";
188
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
151
189
 
152
190
  declare const DoctorScreen: vue.DefineComponent<vue.ExtractPropTypes<{
153
191
  client: {
154
192
  type: PropType<AdminClient>;
155
193
  required: true;
156
194
  };
195
+ locale: {
196
+ type: PropType<AdminLocale>;
197
+ default: undefined;
198
+ };
157
199
  }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
158
200
  [key: string]: any;
159
201
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
@@ -161,13 +203,23 @@ declare const DoctorScreen: vue.DefineComponent<vue.ExtractPropTypes<{
161
203
  type: PropType<AdminClient>;
162
204
  required: true;
163
205
  };
164
- }>> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
206
+ locale: {
207
+ type: PropType<AdminLocale>;
208
+ default: undefined;
209
+ };
210
+ }>> & Readonly<{}>, {
211
+ locale: "en" | "fr" | "es";
212
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
165
213
 
166
214
  declare const EnvironmentScreen: vue.DefineComponent<vue.ExtractPropTypes<{
167
215
  client: {
168
216
  type: PropType<AdminClient>;
169
217
  required: true;
170
218
  };
219
+ locale: {
220
+ type: PropType<AdminLocale>;
221
+ default: undefined;
222
+ };
171
223
  }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
172
224
  [key: string]: any;
173
225
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
@@ -175,13 +227,23 @@ declare const EnvironmentScreen: vue.DefineComponent<vue.ExtractPropTypes<{
175
227
  type: PropType<AdminClient>;
176
228
  required: true;
177
229
  };
178
- }>> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
230
+ locale: {
231
+ type: PropType<AdminLocale>;
232
+ default: undefined;
233
+ };
234
+ }>> & Readonly<{}>, {
235
+ locale: "en" | "fr" | "es";
236
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
179
237
 
180
238
  declare const RoutesScreen: vue.DefineComponent<vue.ExtractPropTypes<{
181
239
  client: {
182
240
  type: PropType<AdminClient>;
183
241
  required: true;
184
242
  };
243
+ locale: {
244
+ type: PropType<AdminLocale>;
245
+ default: undefined;
246
+ };
185
247
  }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
186
248
  [key: string]: any;
187
249
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
@@ -189,13 +251,23 @@ declare const RoutesScreen: vue.DefineComponent<vue.ExtractPropTypes<{
189
251
  type: PropType<AdminClient>;
190
252
  required: true;
191
253
  };
192
- }>> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
254
+ locale: {
255
+ type: PropType<AdminLocale>;
256
+ default: undefined;
257
+ };
258
+ }>> & Readonly<{}>, {
259
+ locale: "en" | "fr" | "es";
260
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
193
261
 
194
262
  declare const TokensScreen: vue.DefineComponent<vue.ExtractPropTypes<{
195
263
  client: {
196
264
  type: PropType<AdminClient>;
197
265
  required: true;
198
266
  };
267
+ locale: {
268
+ type: PropType<AdminLocale>;
269
+ default: undefined;
270
+ };
199
271
  }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
200
272
  [key: string]: any;
201
273
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
@@ -203,7 +275,13 @@ declare const TokensScreen: vue.DefineComponent<vue.ExtractPropTypes<{
203
275
  type: PropType<AdminClient>;
204
276
  required: true;
205
277
  };
206
- }>> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
278
+ locale: {
279
+ type: PropType<AdminLocale>;
280
+ default: undefined;
281
+ };
282
+ }>> & Readonly<{}>, {
283
+ locale: "en" | "fr" | "es";
284
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
207
285
 
208
286
  declare const OperatorsScreen: vue.DefineComponent<vue.ExtractPropTypes<{
209
287
  client: {
@@ -214,6 +292,10 @@ declare const OperatorsScreen: vue.DefineComponent<vue.ExtractPropTypes<{
214
292
  type: StringConstructor;
215
293
  default: undefined;
216
294
  };
295
+ locale: {
296
+ type: PropType<AdminLocale>;
297
+ default: undefined;
298
+ };
217
299
  }>, () => VNode<vue.RendererNode, vue.RendererElement, {
218
300
  [key: string]: any;
219
301
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
@@ -225,7 +307,12 @@ declare const OperatorsScreen: vue.DefineComponent<vue.ExtractPropTypes<{
225
307
  type: StringConstructor;
226
308
  default: undefined;
227
309
  };
310
+ locale: {
311
+ type: PropType<AdminLocale>;
312
+ default: undefined;
313
+ };
228
314
  }>> & Readonly<{}>, {
315
+ locale: "en" | "fr" | "es";
229
316
  me: string;
230
317
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
231
318
 
@@ -234,6 +321,10 @@ declare const MigrationsScreen: vue.DefineComponent<vue.ExtractPropTypes<{
234
321
  type: PropType<AdminClient>;
235
322
  required: true;
236
323
  };
324
+ locale: {
325
+ type: PropType<AdminLocale>;
326
+ default: undefined;
327
+ };
237
328
  }>, () => VNode<vue.RendererNode, vue.RendererElement, {
238
329
  [key: string]: any;
239
330
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
@@ -241,7 +332,13 @@ declare const MigrationsScreen: vue.DefineComponent<vue.ExtractPropTypes<{
241
332
  type: PropType<AdminClient>;
242
333
  required: true;
243
334
  };
244
- }>> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
335
+ locale: {
336
+ type: PropType<AdminLocale>;
337
+ default: undefined;
338
+ };
339
+ }>> & Readonly<{}>, {
340
+ locale: "en" | "fr" | "es";
341
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
245
342
 
246
343
  declare const AdminLogScreen: vue.DefineComponent<vue.ExtractPropTypes<{
247
344
  client: {
@@ -252,6 +349,10 @@ declare const AdminLogScreen: vue.DefineComponent<vue.ExtractPropTypes<{
252
349
  type: NumberConstructor;
253
350
  default: number;
254
351
  };
352
+ locale: {
353
+ type: PropType<AdminLocale>;
354
+ default: undefined;
355
+ };
255
356
  }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
256
357
  [key: string]: any;
257
358
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
@@ -263,8 +364,13 @@ declare const AdminLogScreen: vue.DefineComponent<vue.ExtractPropTypes<{
263
364
  type: NumberConstructor;
264
365
  default: number;
265
366
  };
367
+ locale: {
368
+ type: PropType<AdminLocale>;
369
+ default: undefined;
370
+ };
266
371
  }>> & Readonly<{}>, {
267
372
  pageSize: number;
373
+ locale: "en" | "fr" | "es";
268
374
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
269
375
 
270
376
  declare const UsersScreen: vue.DefineComponent<vue.ExtractPropTypes<{
@@ -284,6 +390,10 @@ declare const UsersScreen: vue.DefineComponent<vue.ExtractPropTypes<{
284
390
  type: StringConstructor;
285
391
  default: undefined;
286
392
  };
393
+ locale: {
394
+ type: PropType<AdminLocale>;
395
+ default: undefined;
396
+ };
287
397
  }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
288
398
  [key: string]: any;
289
399
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
@@ -303,8 +413,13 @@ declare const UsersScreen: vue.DefineComponent<vue.ExtractPropTypes<{
303
413
  type: StringConstructor;
304
414
  default: undefined;
305
415
  };
416
+ locale: {
417
+ type: PropType<AdminLocale>;
418
+ default: undefined;
419
+ };
306
420
  }>> & Readonly<{}>, {
307
421
  pageSize: number;
422
+ locale: "en" | "fr" | "es";
308
423
  billingClient: BillingAdminClient;
309
424
  openUserId: string;
310
425
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
@@ -314,6 +429,10 @@ declare const CatalogScreen: vue.DefineComponent<vue.ExtractPropTypes<{
314
429
  type: PropType<BillingAdminClient>;
315
430
  required: true;
316
431
  };
432
+ locale: {
433
+ type: PropType<AdminLocale>;
434
+ default: undefined;
435
+ };
317
436
  }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
318
437
  [key: string]: any;
319
438
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
@@ -321,7 +440,13 @@ declare const CatalogScreen: vue.DefineComponent<vue.ExtractPropTypes<{
321
440
  type: PropType<BillingAdminClient>;
322
441
  required: true;
323
442
  };
324
- }>> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
443
+ locale: {
444
+ type: PropType<AdminLocale>;
445
+ default: undefined;
446
+ };
447
+ }>> & Readonly<{}>, {
448
+ locale: "en" | "fr" | "es";
449
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
325
450
 
326
451
  declare const SubscriberScreen: vue.DefineComponent<vue.ExtractPropTypes<{
327
452
  client: {
@@ -340,6 +465,10 @@ declare const SubscriberScreen: vue.DefineComponent<vue.ExtractPropTypes<{
340
465
  type: PropType<(userId: string) => void>;
341
466
  default: undefined;
342
467
  };
468
+ locale: {
469
+ type: PropType<AdminLocale>;
470
+ default: undefined;
471
+ };
343
472
  }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
344
473
  [key: string]: any;
345
474
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
@@ -359,8 +488,13 @@ declare const SubscriberScreen: vue.DefineComponent<vue.ExtractPropTypes<{
359
488
  type: PropType<(userId: string) => void>;
360
489
  default: undefined;
361
490
  };
491
+ locale: {
492
+ type: PropType<AdminLocale>;
493
+ default: undefined;
494
+ };
362
495
  }>> & Readonly<{}>, {
363
496
  pageSize: number;
497
+ locale: "en" | "fr" | "es";
364
498
  onOpenUser: (userId: string) => void;
365
499
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
366
500
 
@@ -377,6 +511,10 @@ declare const SubscriberBilling: vue.DefineComponent<vue.ExtractPropTypes<{
377
511
  type: StringConstructor;
378
512
  required: true;
379
513
  };
514
+ locale: {
515
+ type: PropType<AdminLocale>;
516
+ default: undefined;
517
+ };
380
518
  }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
381
519
  [key: string]: any;
382
520
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
@@ -392,7 +530,13 @@ declare const SubscriberBilling: vue.DefineComponent<vue.ExtractPropTypes<{
392
530
  type: StringConstructor;
393
531
  required: true;
394
532
  };
395
- }>> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
533
+ locale: {
534
+ type: PropType<AdminLocale>;
535
+ default: undefined;
536
+ };
537
+ }>> & Readonly<{}>, {
538
+ locale: "en" | "fr" | "es";
539
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
396
540
 
397
541
  declare const AuditScreen: vue.DefineComponent<vue.ExtractPropTypes<{
398
542
  client: {
@@ -403,6 +547,10 @@ declare const AuditScreen: vue.DefineComponent<vue.ExtractPropTypes<{
403
547
  type: NumberConstructor;
404
548
  default: number;
405
549
  };
550
+ locale: {
551
+ type: PropType<AdminLocale>;
552
+ default: undefined;
553
+ };
406
554
  }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
407
555
  [key: string]: any;
408
556
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
@@ -414,8 +562,13 @@ declare const AuditScreen: vue.DefineComponent<vue.ExtractPropTypes<{
414
562
  type: NumberConstructor;
415
563
  default: number;
416
564
  };
565
+ locale: {
566
+ type: PropType<AdminLocale>;
567
+ default: undefined;
568
+ };
417
569
  }>> & Readonly<{}>, {
418
570
  pageSize: number;
571
+ locale: "en" | "fr" | "es";
419
572
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
420
573
 
421
574
  export { AdminLogScreen, type AdminPage, AdminShell, AttentionScreen, AuditScreen, CatalogScreen, DoctorScreen, EnvironmentScreen, MigrationsScreen, ModulesScreen, OperatorsScreen, RoutesScreen, SubscriberBilling, SubscriberScreen, TokensScreen, UsersScreen };