@famgia/omnify-react 0.0.2 → 0.0.3

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.
@@ -1,744 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- /**
4
- * ⚠️ DO NOT EDIT THIS FILE! ⚠️
5
- * このファイルを編集しないでください!
6
- * KHÔNG ĐƯỢC SỬA FILE NÀY!
7
- *
8
- * Auto-generated TypeScript types from Omnify schemas.
9
- * Any manual changes will be OVERWRITTEN on next generation.
10
- *
11
- * To modify: Edit the schema YAML file and run: npx omnify generate
12
- */
13
- /**
14
- * Locale map for multi-language support.
15
- */
16
- interface LocaleMap {
17
- [locale: string]: string;
18
- }
19
- /**
20
- * Supported locales in this project.
21
- */
22
- type Locale = 'ja' | 'en';
23
- /**
24
- * Validation rule with multi-locale messages.
25
- * Use get{Model}Rules(locale) to get Ant Design compatible rules with string messages.
26
- */
27
- interface ValidationRule {
28
- required?: boolean;
29
- type?: 'string' | 'number' | 'email' | 'url' | 'integer' | 'array' | 'object';
30
- min?: number;
31
- max?: number;
32
- len?: number;
33
- pattern?: RegExp;
34
- message: LocaleMap;
35
- }
36
- /**
37
- * ISO 8601 date-time string.
38
- */
39
- type DateTimeString = string;
40
- /**
41
- * ISO 8601 date string (YYYY-MM-DD).
42
- */
43
- type DateString = string;
44
-
45
- /**
46
- * ⚠️ DO NOT EDIT THIS FILE! ⚠️
47
- * このファイルを編集しないでください!
48
- * KHÔNG ĐƯỢC SỬA FILE NÀY!
49
- *
50
- * Auto-generated TypeScript types from Omnify schemas.
51
- * Any manual changes will be OVERWRITTEN on next generation.
52
- *
53
- * To modify: Edit the schema YAML file and run: npx omnify generate
54
- */
55
- /**
56
- * Default locale for this project.
57
- */
58
- declare const defaultLocale: "ja";
59
- /**
60
- * Fallback locale when requested locale is not found.
61
- */
62
- declare const fallbackLocale: "en";
63
- /**
64
- * Supported locales in this project.
65
- */
66
- declare const supportedLocales: readonly ["ja", "en"];
67
- /**
68
- * Validation messages for all supported locales.
69
- * Use getMessage(key, locale, params) to get formatted message.
70
- */
71
- declare const validationMessages: {
72
- readonly required: {
73
- readonly ja: "${displayName}は必須です";
74
- readonly en: "${displayName} is required";
75
- };
76
- readonly minLength: {
77
- readonly ja: "${displayName}は${min}文字以上で入力してください";
78
- readonly en: "${displayName} must be at least ${min} characters";
79
- };
80
- readonly maxLength: {
81
- readonly ja: "${displayName}は${max}文字以内で入力してください";
82
- readonly en: "${displayName} must be at most ${max} characters";
83
- };
84
- readonly min: {
85
- readonly ja: "${displayName}は${min}以上で入力してください";
86
- readonly en: "${displayName} must be at least ${min}";
87
- };
88
- readonly max: {
89
- readonly ja: "${displayName}は${max}以下で入力してください";
90
- readonly en: "${displayName} must be at most ${max}";
91
- };
92
- readonly email: {
93
- readonly ja: "有効なメールアドレスを入力してください";
94
- readonly en: "Please enter a valid email address";
95
- };
96
- readonly url: {
97
- readonly ja: "有効なURLを入力してください";
98
- readonly en: "Please enter a valid URL";
99
- };
100
- readonly pattern: {
101
- readonly ja: "${displayName}の形式が正しくありません";
102
- readonly en: "${displayName} format is invalid";
103
- };
104
- };
105
- /**
106
- * Get validation message for a specific key and locale.
107
- * Supports template placeholders: ${displayName}, ${min}, ${max}, etc.
108
- *
109
- * @param key - Message key (e.g., 'required', 'minLength')
110
- * @param locale - Locale code (e.g., 'ja', 'en')
111
- * @param params - Template parameters to replace
112
- * @returns Formatted message string
113
- *
114
- * @example
115
- * getMessage('required', 'ja', { displayName: '氏名' })
116
- * // => '氏名は必須です'
117
- */
118
- declare function getMessage(key: string, locale: string, params?: Record<string, string | number>): string;
119
- /**
120
- * Get all validation messages for a specific locale.
121
- *
122
- * @param locale - Locale code
123
- * @returns Object with all messages for the locale
124
- */
125
- declare function getMessages(locale: string): Record<string, string>;
126
-
127
- /**
128
- * ⚠️ DO NOT EDIT THIS FILE! ⚠️
129
- * このファイルを編集しないでください!
130
- * KHÔNG ĐƯỢC SỬA FILE NÀY!
131
- *
132
- * Auto-generated TypeScript types from Omnify schemas.
133
- * Any manual changes will be OVERWRITTEN on next generation.
134
- *
135
- * To modify: Edit the schema YAML file and run: npx omnify generate
136
- */
137
-
138
- /**
139
- * Permission
140
- */
141
- interface Permission$1 {
142
- /** Primary key */
143
- id: number;
144
- /** Permission Name */
145
- name: string;
146
- /** Slug */
147
- slug: string;
148
- /** Group */
149
- group?: string;
150
- /** Roles */
151
- roles: Role$1[];
152
- /** Creation timestamp */
153
- created_at?: DateTimeString;
154
- /** Last update timestamp */
155
- updated_at?: DateTimeString;
156
- }
157
- /**
158
- * Unified i18n object for Permission
159
- * Contains model label and all field labels/placeholders
160
- */
161
- declare const permissionI18n: {
162
- /** Model display name */
163
- readonly label: {
164
- readonly en: "Permission";
165
- };
166
- /** Field labels and placeholders */
167
- readonly fields: {
168
- readonly name: {
169
- readonly label: {
170
- readonly en: "Permission Name";
171
- };
172
- };
173
- readonly slug: {
174
- readonly label: {
175
- readonly en: "Slug";
176
- };
177
- };
178
- readonly group: {
179
- readonly label: {
180
- readonly en: "Group";
181
- };
182
- };
183
- readonly roles: {
184
- readonly label: {
185
- readonly en: "Roles";
186
- };
187
- };
188
- };
189
- };
190
- /** Get model label for a specific locale */
191
- declare function getPermissionLabel(locale: string): string;
192
- /** Get field label for a specific locale */
193
- declare function getPermissionFieldLabel(field: string, locale: string): string;
194
- /** Get field placeholder for a specific locale */
195
- declare function getPermissionFieldPlaceholder(field: string, locale: string): string;
196
-
197
- /**
198
- * ⚠️ DO NOT EDIT THIS FILE! ⚠️
199
- * このファイルを編集しないでください!
200
- * KHÔNG ĐƯỢC SỬA FILE NÀY!
201
- *
202
- * Auto-generated TypeScript types from Omnify schemas.
203
- * Any manual changes will be OVERWRITTEN on next generation.
204
- *
205
- * To modify: Edit the schema YAML file and run: npx omnify generate
206
- */
207
-
208
- /**
209
- * Role
210
- */
211
- interface Role$1 {
212
- /** Primary key */
213
- id: number;
214
- /** Role Name */
215
- name: string;
216
- /** Slug */
217
- slug: string;
218
- /** Description */
219
- description?: string;
220
- /** Level */
221
- level: number;
222
- /** Permissions */
223
- permissions: Permission$1[];
224
- /** Creation timestamp */
225
- created_at?: DateTimeString;
226
- /** Last update timestamp */
227
- updated_at?: DateTimeString;
228
- }
229
- /**
230
- * Unified i18n object for Role
231
- * Contains model label and all field labels/placeholders
232
- */
233
- declare const roleI18n: {
234
- /** Model display name */
235
- readonly label: {
236
- readonly en: "Role";
237
- };
238
- /** Field labels and placeholders */
239
- readonly fields: {
240
- readonly name: {
241
- readonly label: {
242
- readonly en: "Role Name";
243
- };
244
- };
245
- readonly slug: {
246
- readonly label: {
247
- readonly en: "Slug";
248
- };
249
- };
250
- readonly description: {
251
- readonly label: {
252
- readonly en: "Description";
253
- };
254
- };
255
- readonly level: {
256
- readonly label: {
257
- readonly en: "Level";
258
- };
259
- };
260
- readonly permissions: {
261
- readonly label: {
262
- readonly en: "Permissions";
263
- };
264
- };
265
- };
266
- };
267
- /** Get model label for a specific locale */
268
- declare function getRoleLabel(locale: string): string;
269
- /** Get field label for a specific locale */
270
- declare function getRoleFieldLabel(field: string, locale: string): string;
271
- /** Get field placeholder for a specific locale */
272
- declare function getRoleFieldPlaceholder(field: string, locale: string): string;
273
-
274
- /**
275
- * ⚠️ DO NOT EDIT THIS FILE! ⚠️
276
- * このファイルを編集しないでください!
277
- * KHÔNG ĐƯỢC SỬA FILE NÀY!
278
- *
279
- * Auto-generated TypeScript types from Omnify schemas.
280
- * Any manual changes will be OVERWRITTEN on next generation.
281
- *
282
- * To modify: Edit the schema YAML file and run: npx omnify generate
283
- */
284
-
285
- /**
286
- * User
287
- */
288
- interface User$1 {
289
- /** Primary key */
290
- id: number;
291
- /** Name */
292
- name: string;
293
- /** Email */
294
- email: string;
295
- /** Email Verified At */
296
- email_verified_at?: DateTimeString;
297
- /** Password */
298
- password: string;
299
- /** Remember Token */
300
- remember_token?: string;
301
- /** Console User ID */
302
- console_user_id?: number;
303
- /** Console Access Token */
304
- console_access_token?: string;
305
- /** Console Refresh Token */
306
- console_refresh_token?: string;
307
- /** Console Token Expiry */
308
- console_token_expires_at?: DateTimeString;
309
- /** Role */
310
- role?: Role$1;
311
- /** Creation timestamp */
312
- created_at?: DateTimeString;
313
- /** Last update timestamp */
314
- updated_at?: DateTimeString;
315
- }
316
- /**
317
- * Unified i18n object for User
318
- * Contains model label and all field labels/placeholders
319
- */
320
- declare const userI18n: {
321
- /** Model display name */
322
- readonly label: {
323
- readonly en: "User";
324
- };
325
- /** Field labels and placeholders */
326
- readonly fields: {
327
- readonly name: {
328
- readonly label: {
329
- readonly en: "Name";
330
- };
331
- };
332
- readonly email: {
333
- readonly label: {
334
- readonly en: "Email";
335
- };
336
- };
337
- readonly email_verified_at: {
338
- readonly label: {
339
- readonly en: "Email Verified At";
340
- };
341
- };
342
- readonly password: {
343
- readonly label: {
344
- readonly en: "Password";
345
- };
346
- };
347
- readonly remember_token: {
348
- readonly label: {
349
- readonly en: "Remember Token";
350
- };
351
- };
352
- readonly console_user_id: {
353
- readonly label: {
354
- readonly en: "Console User ID";
355
- };
356
- };
357
- readonly console_access_token: {
358
- readonly label: {
359
- readonly en: "Console Access Token";
360
- };
361
- };
362
- readonly console_refresh_token: {
363
- readonly label: {
364
- readonly en: "Console Refresh Token";
365
- };
366
- };
367
- readonly console_token_expires_at: {
368
- readonly label: {
369
- readonly en: "Console Token Expiry";
370
- };
371
- };
372
- readonly role: {
373
- readonly label: {
374
- readonly en: "Role";
375
- };
376
- };
377
- };
378
- };
379
- /** Get model label for a specific locale */
380
- declare function getUserLabel(locale: string): string;
381
- /** Get field label for a specific locale */
382
- declare function getUserFieldLabel(field: string, locale: string): string;
383
- /** Get field placeholder for a specific locale */
384
- declare function getUserFieldPlaceholder(field: string, locale: string): string;
385
-
386
- /**
387
- * User Model
388
- *
389
- * This file extends the auto-generated base interface.
390
- * You can add custom methods, computed properties, or override types/schemas here.
391
- * This file will NOT be overwritten by the generator.
392
- */
393
-
394
- interface User extends User$1 {
395
- }
396
- declare const userSchemas: {
397
- name: z.ZodString;
398
- email: z.ZodString;
399
- email_verified_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
400
- password: z.ZodString;
401
- remember_token: z.ZodNullable<z.ZodOptional<z.ZodString>>;
402
- console_user_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
403
- console_access_token: z.ZodNullable<z.ZodOptional<z.ZodString>>;
404
- console_refresh_token: z.ZodNullable<z.ZodOptional<z.ZodString>>;
405
- console_token_expires_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
406
- };
407
- declare const userCreateSchema: z.ZodObject<{
408
- name: z.ZodString;
409
- email: z.ZodString;
410
- password: z.ZodString;
411
- remember_token: z.ZodNullable<z.ZodOptional<z.ZodString>>;
412
- console_user_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
413
- console_access_token: z.ZodNullable<z.ZodOptional<z.ZodString>>;
414
- console_refresh_token: z.ZodNullable<z.ZodOptional<z.ZodString>>;
415
- console_token_expires_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
416
- }, z.core.$strip>;
417
- declare const userUpdateSchema: z.ZodObject<{
418
- name: z.ZodOptional<z.ZodString>;
419
- email: z.ZodOptional<z.ZodString>;
420
- password: z.ZodOptional<z.ZodString>;
421
- remember_token: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
422
- console_user_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
423
- console_access_token: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
424
- console_refresh_token: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
425
- console_token_expires_at: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
426
- }, z.core.$strip>;
427
- type UserCreate = z.infer<typeof userCreateSchema>;
428
- type UserUpdate = z.infer<typeof userUpdateSchema>;
429
-
430
- /**
431
- * Permission Model
432
- *
433
- * This file extends the auto-generated base interface.
434
- * You can add custom methods, computed properties, or override types/schemas here.
435
- * This file will NOT be overwritten by the generator.
436
- */
437
-
438
- interface Permission extends Permission$1 {
439
- }
440
- declare const permissionSchemas: {
441
- name: z.ZodString;
442
- slug: z.ZodString;
443
- group: z.ZodNullable<z.ZodOptional<z.ZodString>>;
444
- };
445
- declare const permissionCreateSchema: z.ZodObject<{
446
- name: z.ZodString;
447
- slug: z.ZodString;
448
- group: z.ZodNullable<z.ZodOptional<z.ZodString>>;
449
- }, z.core.$strip>;
450
- declare const permissionUpdateSchema: z.ZodObject<{
451
- name: z.ZodOptional<z.ZodString>;
452
- slug: z.ZodOptional<z.ZodString>;
453
- group: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
454
- }, z.core.$strip>;
455
- type PermissionCreate = z.infer<typeof permissionCreateSchema>;
456
- type PermissionUpdate = z.infer<typeof permissionUpdateSchema>;
457
-
458
- /**
459
- * Role Model
460
- *
461
- * This file extends the auto-generated base interface.
462
- * You can add custom methods, computed properties, or override types/schemas here.
463
- * This file will NOT be overwritten by the generator.
464
- */
465
-
466
- interface Role extends Role$1 {
467
- }
468
- declare const roleSchemas: {
469
- name: z.ZodString;
470
- slug: z.ZodString;
471
- description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
472
- level: z.ZodNumber;
473
- };
474
- declare const roleCreateSchema: z.ZodObject<{
475
- name: z.ZodString;
476
- slug: z.ZodString;
477
- description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
478
- level: z.ZodNumber;
479
- }, z.core.$strip>;
480
- declare const roleUpdateSchema: z.ZodObject<{
481
- name: z.ZodOptional<z.ZodString>;
482
- slug: z.ZodOptional<z.ZodString>;
483
- description: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
484
- level: z.ZodOptional<z.ZodNumber>;
485
- }, z.core.$strip>;
486
- type RoleCreate = z.infer<typeof roleCreateSchema>;
487
- type RoleUpdate = z.infer<typeof roleUpdateSchema>;
488
-
489
- /**
490
- * ⚠️ DO NOT EDIT THIS FILE! ⚠️
491
- * このファイルを編集しないでください!
492
- * KHÔNG ĐƯỢC SỬA FILE NÀY!
493
- *
494
- * Auto-generated TypeScript types from Omnify schemas.
495
- * Any manual changes will be OVERWRITTEN on next generation.
496
- *
497
- * To modify: Edit the schema YAML file and run: npx omnify generate
498
- */
499
-
500
- /**
501
- * Role Permission
502
- */
503
- interface RolePermission$1 {
504
- /** Primary key */
505
- id: number;
506
- /** Role */
507
- role: Role$1;
508
- /** Permission */
509
- permission: Permission$1;
510
- /** Creation timestamp */
511
- created_at?: DateTimeString;
512
- /** Last update timestamp */
513
- updated_at?: DateTimeString;
514
- }
515
- /**
516
- * Unified i18n object for RolePermission
517
- * Contains model label and all field labels/placeholders
518
- */
519
- declare const rolePermissionI18n: {
520
- /** Model display name */
521
- readonly label: {
522
- readonly en: "Role Permission";
523
- };
524
- /** Field labels and placeholders */
525
- readonly fields: {
526
- readonly role: {
527
- readonly label: {
528
- readonly en: "Role";
529
- };
530
- };
531
- readonly permission: {
532
- readonly label: {
533
- readonly en: "Permission";
534
- };
535
- };
536
- };
537
- };
538
- /** Get model label for a specific locale */
539
- declare function getRolePermissionLabel(locale: string): string;
540
- /** Get field label for a specific locale */
541
- declare function getRolePermissionFieldLabel(field: string, locale: string): string;
542
- /** Get field placeholder for a specific locale */
543
- declare function getRolePermissionFieldPlaceholder(field: string, locale: string): string;
544
-
545
- /**
546
- * RolePermission Model
547
- *
548
- * This file extends the auto-generated base interface.
549
- * You can add custom methods, computed properties, or override types/schemas here.
550
- * This file will NOT be overwritten by the generator.
551
- */
552
-
553
- interface RolePermission extends RolePermission$1 {
554
- }
555
- declare const rolePermissionSchemas: {};
556
- declare const rolePermissionCreateSchema: z.ZodObject<{}, z.core.$strip>;
557
- declare const rolePermissionUpdateSchema: z.ZodObject<{}, z.core.$strip>;
558
- type RolePermissionCreate = z.infer<typeof rolePermissionCreateSchema>;
559
- type RolePermissionUpdate = z.infer<typeof rolePermissionUpdateSchema>;
560
-
561
- /**
562
- * ⚠️ DO NOT EDIT THIS FILE! ⚠️
563
- * このファイルを編集しないでください!
564
- * KHÔNG ĐƯỢC SỬA FILE NÀY!
565
- *
566
- * Auto-generated TypeScript types from Omnify schemas.
567
- * Any manual changes will be OVERWRITTEN on next generation.
568
- *
569
- * To modify: Edit the schema YAML file and run: npx omnify generate
570
- */
571
-
572
- /**
573
- * Team
574
- */
575
- interface Team$1 {
576
- /** Primary key */
577
- id: number;
578
- /** Console Team ID */
579
- console_team_id: number;
580
- /** Console Organization ID */
581
- console_org_id: number;
582
- /** Team Name */
583
- name: string;
584
- /** Creation timestamp */
585
- created_at?: DateTimeString;
586
- /** Last update timestamp */
587
- updated_at?: DateTimeString;
588
- /** Soft delete timestamp */
589
- deleted_at?: DateTimeString;
590
- }
591
- /**
592
- * Unified i18n object for Team
593
- * Contains model label and all field labels/placeholders
594
- */
595
- declare const teamI18n: {
596
- /** Model display name */
597
- readonly label: {
598
- readonly en: "Team";
599
- };
600
- /** Field labels and placeholders */
601
- readonly fields: {
602
- readonly console_team_id: {
603
- readonly label: {
604
- readonly en: "Console Team ID";
605
- };
606
- };
607
- readonly console_org_id: {
608
- readonly label: {
609
- readonly en: "Console Organization ID";
610
- };
611
- };
612
- readonly name: {
613
- readonly label: {
614
- readonly en: "Team Name";
615
- };
616
- };
617
- };
618
- };
619
- /** Get model label for a specific locale */
620
- declare function getTeamLabel(locale: string): string;
621
- /** Get field label for a specific locale */
622
- declare function getTeamFieldLabel(field: string, locale: string): string;
623
- /** Get field placeholder for a specific locale */
624
- declare function getTeamFieldPlaceholder(field: string, locale: string): string;
625
-
626
- /**
627
- * Team Model
628
- *
629
- * This file extends the auto-generated base interface.
630
- * You can add custom methods, computed properties, or override types/schemas here.
631
- * This file will NOT be overwritten by the generator.
632
- */
633
-
634
- interface Team extends Team$1 {
635
- }
636
- declare const teamSchemas: {
637
- console_team_id: z.ZodNumber;
638
- console_org_id: z.ZodNumber;
639
- name: z.ZodString;
640
- };
641
- declare const teamCreateSchema: z.ZodObject<{
642
- console_team_id: z.ZodNumber;
643
- console_org_id: z.ZodNumber;
644
- name: z.ZodString;
645
- }, z.core.$strip>;
646
- declare const teamUpdateSchema: z.ZodObject<{
647
- console_team_id: z.ZodOptional<z.ZodNumber>;
648
- console_org_id: z.ZodOptional<z.ZodNumber>;
649
- name: z.ZodOptional<z.ZodString>;
650
- }, z.core.$strip>;
651
- type TeamCreate = z.infer<typeof teamCreateSchema>;
652
- type TeamUpdate = z.infer<typeof teamUpdateSchema>;
653
-
654
- /**
655
- * ⚠️ DO NOT EDIT THIS FILE! ⚠️
656
- * このファイルを編集しないでください!
657
- * KHÔNG ĐƯỢC SỬA FILE NÀY!
658
- *
659
- * Auto-generated TypeScript types from Omnify schemas.
660
- * Any manual changes will be OVERWRITTEN on next generation.
661
- *
662
- * To modify: Edit the schema YAML file and run: npx omnify generate
663
- */
664
-
665
- /**
666
- * Team Permission
667
- */
668
- interface TeamPermission$1 {
669
- /** Primary key */
670
- id: number;
671
- /** Console Organization ID */
672
- console_org_id: number;
673
- /** Console Team ID */
674
- console_team_id: number;
675
- /** Permission */
676
- permission: Permission$1;
677
- /** Creation timestamp */
678
- created_at?: DateTimeString;
679
- /** Last update timestamp */
680
- updated_at?: DateTimeString;
681
- /** Soft delete timestamp */
682
- deleted_at?: DateTimeString;
683
- }
684
- /**
685
- * Unified i18n object for TeamPermission
686
- * Contains model label and all field labels/placeholders
687
- */
688
- declare const teamPermissionI18n: {
689
- /** Model display name */
690
- readonly label: {
691
- readonly en: "Team Permission";
692
- };
693
- /** Field labels and placeholders */
694
- readonly fields: {
695
- readonly console_org_id: {
696
- readonly label: {
697
- readonly en: "Console Organization ID";
698
- };
699
- };
700
- readonly console_team_id: {
701
- readonly label: {
702
- readonly en: "Console Team ID";
703
- };
704
- };
705
- readonly permission: {
706
- readonly label: {
707
- readonly en: "Permission";
708
- };
709
- };
710
- };
711
- };
712
- /** Get model label for a specific locale */
713
- declare function getTeamPermissionLabel(locale: string): string;
714
- /** Get field label for a specific locale */
715
- declare function getTeamPermissionFieldLabel(field: string, locale: string): string;
716
- /** Get field placeholder for a specific locale */
717
- declare function getTeamPermissionFieldPlaceholder(field: string, locale: string): string;
718
-
719
- /**
720
- * TeamPermission Model
721
- *
722
- * This file extends the auto-generated base interface.
723
- * You can add custom methods, computed properties, or override types/schemas here.
724
- * This file will NOT be overwritten by the generator.
725
- */
726
-
727
- interface TeamPermission extends TeamPermission$1 {
728
- }
729
- declare const teamPermissionSchemas: {
730
- console_org_id: z.ZodNumber;
731
- console_team_id: z.ZodNumber;
732
- };
733
- declare const teamPermissionCreateSchema: z.ZodObject<{
734
- console_org_id: z.ZodNumber;
735
- console_team_id: z.ZodNumber;
736
- }, z.core.$strip>;
737
- declare const teamPermissionUpdateSchema: z.ZodObject<{
738
- console_org_id: z.ZodOptional<z.ZodNumber>;
739
- console_team_id: z.ZodOptional<z.ZodNumber>;
740
- }, z.core.$strip>;
741
- type TeamPermissionCreate = z.infer<typeof teamPermissionCreateSchema>;
742
- type TeamPermissionUpdate = z.infer<typeof teamPermissionUpdateSchema>;
743
-
744
- export { type DateString, type DateTimeString, type Locale, type LocaleMap, type Permission, type PermissionCreate, type PermissionUpdate, type Role, type RoleCreate, type RolePermission, type RolePermissionCreate, type RolePermissionUpdate, type RoleUpdate, type Team, type TeamCreate, type TeamPermission, type TeamPermissionCreate, type TeamPermissionUpdate, type TeamUpdate, type User, type UserCreate, type UserUpdate, type ValidationRule, defaultLocale, fallbackLocale, getMessage, getMessages, getPermissionFieldLabel, getPermissionFieldPlaceholder, getPermissionLabel, getRoleFieldLabel, getRoleFieldPlaceholder, getRoleLabel, getRolePermissionFieldLabel, getRolePermissionFieldPlaceholder, getRolePermissionLabel, getTeamFieldLabel, getTeamFieldPlaceholder, getTeamLabel, getTeamPermissionFieldLabel, getTeamPermissionFieldPlaceholder, getTeamPermissionLabel, getUserFieldLabel, getUserFieldPlaceholder, getUserLabel, permissionCreateSchema, permissionI18n, permissionSchemas, permissionUpdateSchema, roleCreateSchema, roleI18n, rolePermissionCreateSchema, rolePermissionI18n, rolePermissionSchemas, rolePermissionUpdateSchema, roleSchemas, roleUpdateSchema, supportedLocales, teamCreateSchema, teamI18n, teamPermissionCreateSchema, teamPermissionI18n, teamPermissionSchemas, teamPermissionUpdateSchema, teamSchemas, teamUpdateSchema, userCreateSchema, userI18n, userSchemas, userUpdateSchema, validationMessages };