@famgia/omnify-react-sso 2.2.0 → 2.2.2

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.
Files changed (33) hide show
  1. package/README.md +404 -113
  2. package/dist/@omnify-base/package.json +16 -0
  3. package/dist/@omnify-base/schemas/Branch.ts +131 -0
  4. package/dist/@omnify-base/schemas/BranchCache.ts +131 -0
  5. package/dist/@omnify-base/schemas/OrganizationCache.ts +117 -0
  6. package/dist/@omnify-base/schemas/Permission.ts +114 -0
  7. package/dist/@omnify-base/schemas/Role.ts +121 -0
  8. package/dist/@omnify-base/schemas/RolePermission.ts +97 -0
  9. package/dist/@omnify-base/schemas/Team.ts +110 -0
  10. package/dist/@omnify-base/schemas/TeamCache.ts +110 -0
  11. package/dist/@omnify-base/schemas/TeamPermission.ts +109 -0
  12. package/dist/@omnify-base/schemas/User.ts +135 -0
  13. package/dist/@omnify-base/schemas/UserCache.ts +135 -0
  14. package/dist/@omnify-base/schemas/common.ts +47 -0
  15. package/dist/@omnify-base/schemas/i18n.ts +118 -0
  16. package/dist/index.cjs +1200 -381
  17. package/dist/index.cjs.map +1 -1
  18. package/dist/index.d.cts +245 -7
  19. package/dist/index.d.ts +245 -7
  20. package/dist/index.js +1158 -355
  21. package/dist/index.js.map +1 -1
  22. package/dist/schemas/index.cjs +201 -133
  23. package/dist/schemas/index.cjs.map +1 -1
  24. package/dist/schemas/index.d.cts +61 -28
  25. package/dist/schemas/index.d.ts +61 -28
  26. package/dist/schemas/index.js +173 -112
  27. package/dist/schemas/index.js.map +1 -1
  28. package/dist/testing/index.d.cts +1 -1
  29. package/dist/testing/index.d.ts +1 -1
  30. package/dist/{types-BCBSfJJr.d.cts → types-CJmA2a9r.d.cts} +102 -1
  31. package/dist/{types-BCBSfJJr.d.ts → types-CJmA2a9r.d.ts} +102 -1
  32. package/package.json +10 -3
  33. package/scripts/postinstall.cjs +43 -0
@@ -1,32 +1,34 @@
1
1
  export { DateString, DateTimeString, Locale, LocaleMap, ValidationRule } from '@omnify-base/schemas/common';
2
2
  export { defaultLocale, fallbackLocale, getMessage, getMessages, supportedLocales, validationMessages } from '@omnify-base/schemas/i18n';
3
3
  import { z } from 'zod';
4
- import { Branch as Branch$1 } from '@omnify-base/schemas/Branch';
5
- export { branchI18n, getBranchFieldLabel, getBranchFieldPlaceholder, getBranchLabel } from '@omnify-base/schemas/Branch';
4
+ import { BranchCache as BranchCache$1 } from '@omnify-base/schemas/BranchCache';
5
+ export { branchCacheI18n, getBranchCacheFieldLabel, getBranchCacheFieldPlaceholder, getBranchCacheLabel } from '@omnify-base/schemas/BranchCache';
6
+ import { OrganizationCache as OrganizationCache$1 } from '@omnify-base/schemas/OrganizationCache';
7
+ export { getOrganizationCacheFieldLabel, getOrganizationCacheFieldPlaceholder, getOrganizationCacheLabel, organizationCacheI18n } from '@omnify-base/schemas/OrganizationCache';
6
8
  import { Permission as Permission$1 } from '@omnify-base/schemas/Permission';
7
9
  export { getPermissionFieldLabel, getPermissionFieldPlaceholder, getPermissionLabel, permissionI18n } from '@omnify-base/schemas/Permission';
8
10
  import { Role as Role$1 } from '@omnify-base/schemas/Role';
9
11
  export { getRoleFieldLabel, getRoleFieldPlaceholder, getRoleLabel, roleI18n } from '@omnify-base/schemas/Role';
10
12
  import { RolePermission as RolePermission$1 } from '@omnify-base/schemas/RolePermission';
11
13
  export { getRolePermissionFieldLabel, getRolePermissionFieldPlaceholder, getRolePermissionLabel, rolePermissionI18n } from '@omnify-base/schemas/RolePermission';
12
- import { Team as Team$1 } from '@omnify-base/schemas/Team';
13
- export { getTeamFieldLabel, getTeamFieldPlaceholder, getTeamLabel, teamI18n } from '@omnify-base/schemas/Team';
14
+ import { TeamCache as TeamCache$1 } from '@omnify-base/schemas/TeamCache';
15
+ export { getTeamCacheFieldLabel, getTeamCacheFieldPlaceholder, getTeamCacheLabel, teamCacheI18n } from '@omnify-base/schemas/TeamCache';
14
16
  import { TeamPermission as TeamPermission$1 } from '@omnify-base/schemas/TeamPermission';
15
17
  export { getTeamPermissionFieldLabel, getTeamPermissionFieldPlaceholder, getTeamPermissionLabel, teamPermissionI18n } from '@omnify-base/schemas/TeamPermission';
16
- import { User as User$1 } from '@omnify-base/schemas/User';
17
- export { getUserFieldLabel, getUserFieldPlaceholder, getUserLabel, userI18n } from '@omnify-base/schemas/User';
18
+ import { UserCache as UserCache$1 } from '@omnify-base/schemas/UserCache';
19
+ export { getUserCacheFieldLabel, getUserCacheFieldPlaceholder, getUserCacheLabel, userCacheI18n } from '@omnify-base/schemas/UserCache';
18
20
 
19
21
  /**
20
- * Branch Model
22
+ * BranchCache Model
21
23
  *
22
24
  * This file extends the auto-generated base interface.
23
25
  * You can add custom methods, computed properties, or override types/schemas here.
24
26
  * This file will NOT be overwritten by the generator.
25
27
  */
26
28
 
27
- interface Branch extends Branch$1 {
29
+ interface BranchCache extends BranchCache$1 {
28
30
  }
29
- declare const branchSchemas: {
31
+ declare const branchCacheSchemas: {
30
32
  console_branch_id: z.ZodString;
31
33
  console_org_id: z.ZodString;
32
34
  code: z.ZodString;
@@ -34,7 +36,7 @@ declare const branchSchemas: {
34
36
  is_headquarters: z.ZodBoolean;
35
37
  is_active: z.ZodBoolean;
36
38
  };
37
- declare const branchCreateSchema: z.ZodObject<{
39
+ declare const branchCacheCreateSchema: z.ZodObject<{
38
40
  console_branch_id: z.ZodString;
39
41
  console_org_id: z.ZodString;
40
42
  code: z.ZodString;
@@ -42,7 +44,7 @@ declare const branchCreateSchema: z.ZodObject<{
42
44
  is_headquarters: z.ZodBoolean;
43
45
  is_active: z.ZodBoolean;
44
46
  }, z.core.$strip>;
45
- declare const branchUpdateSchema: z.ZodObject<{
47
+ declare const branchCacheUpdateSchema: z.ZodObject<{
46
48
  console_branch_id: z.ZodOptional<z.ZodString>;
47
49
  console_org_id: z.ZodOptional<z.ZodString>;
48
50
  code: z.ZodOptional<z.ZodString>;
@@ -50,8 +52,39 @@ declare const branchUpdateSchema: z.ZodObject<{
50
52
  is_headquarters: z.ZodOptional<z.ZodBoolean>;
51
53
  is_active: z.ZodOptional<z.ZodBoolean>;
52
54
  }, z.core.$strip>;
53
- type BranchCreate = z.infer<typeof branchCreateSchema>;
54
- type BranchUpdate = z.infer<typeof branchUpdateSchema>;
55
+ type BranchCacheCreate = z.infer<typeof branchCacheCreateSchema>;
56
+ type BranchCacheUpdate = z.infer<typeof branchCacheUpdateSchema>;
57
+
58
+ /**
59
+ * OrganizationCache Model
60
+ *
61
+ * This file extends the auto-generated base interface.
62
+ * You can add custom methods, computed properties, or override types/schemas here.
63
+ * This file will NOT be overwritten by the generator.
64
+ */
65
+
66
+ interface OrganizationCache extends OrganizationCache$1 {
67
+ }
68
+ declare const organizationCacheSchemas: {
69
+ console_org_id: z.ZodString;
70
+ name: z.ZodString;
71
+ code: z.ZodString;
72
+ is_active: z.ZodBoolean;
73
+ };
74
+ declare const organizationCacheCreateSchema: z.ZodObject<{
75
+ console_org_id: z.ZodString;
76
+ name: z.ZodString;
77
+ code: z.ZodString;
78
+ is_active: z.ZodBoolean;
79
+ }, z.core.$strip>;
80
+ declare const organizationCacheUpdateSchema: z.ZodObject<{
81
+ console_org_id: z.ZodOptional<z.ZodString>;
82
+ name: z.ZodOptional<z.ZodString>;
83
+ code: z.ZodOptional<z.ZodString>;
84
+ is_active: z.ZodOptional<z.ZodBoolean>;
85
+ }, z.core.$strip>;
86
+ type OrganizationCacheCreate = z.infer<typeof organizationCacheCreateSchema>;
87
+ type OrganizationCacheUpdate = z.infer<typeof organizationCacheUpdateSchema>;
55
88
 
56
89
  /**
57
90
  * Permission Model
@@ -129,32 +162,32 @@ type RolePermissionCreate = z.infer<typeof rolePermissionCreateSchema>;
129
162
  type RolePermissionUpdate = z.infer<typeof rolePermissionUpdateSchema>;
130
163
 
131
164
  /**
132
- * Team Model
165
+ * TeamCache Model
133
166
  *
134
167
  * This file extends the auto-generated base interface.
135
168
  * You can add custom methods, computed properties, or override types/schemas here.
136
169
  * This file will NOT be overwritten by the generator.
137
170
  */
138
171
 
139
- interface Team extends Team$1 {
172
+ interface TeamCache extends TeamCache$1 {
140
173
  }
141
- declare const teamSchemas: {
174
+ declare const teamCacheSchemas: {
142
175
  console_team_id: z.ZodString;
143
176
  console_org_id: z.ZodString;
144
177
  name: z.ZodString;
145
178
  };
146
- declare const teamCreateSchema: z.ZodObject<{
179
+ declare const teamCacheCreateSchema: z.ZodObject<{
147
180
  console_team_id: z.ZodString;
148
181
  console_org_id: z.ZodString;
149
182
  name: z.ZodString;
150
183
  }, z.core.$strip>;
151
- declare const teamUpdateSchema: z.ZodObject<{
184
+ declare const teamCacheUpdateSchema: z.ZodObject<{
152
185
  console_team_id: z.ZodOptional<z.ZodString>;
153
186
  console_org_id: z.ZodOptional<z.ZodString>;
154
187
  name: z.ZodOptional<z.ZodString>;
155
188
  }, z.core.$strip>;
156
- type TeamCreate = z.infer<typeof teamCreateSchema>;
157
- type TeamUpdate = z.infer<typeof teamUpdateSchema>;
189
+ type TeamCacheCreate = z.infer<typeof teamCacheCreateSchema>;
190
+ type TeamCacheUpdate = z.infer<typeof teamCacheUpdateSchema>;
158
191
 
159
192
  /**
160
193
  * TeamPermission Model
@@ -182,16 +215,16 @@ type TeamPermissionCreate = z.infer<typeof teamPermissionCreateSchema>;
182
215
  type TeamPermissionUpdate = z.infer<typeof teamPermissionUpdateSchema>;
183
216
 
184
217
  /**
185
- * User Model
218
+ * UserCache Model
186
219
  *
187
220
  * This file extends the auto-generated base interface.
188
221
  * You can add custom methods, computed properties, or override types/schemas here.
189
222
  * This file will NOT be overwritten by the generator.
190
223
  */
191
224
 
192
- interface User extends User$1 {
225
+ interface UserCache extends UserCache$1 {
193
226
  }
194
- declare const userSchemas: {
227
+ declare const userCacheSchemas: {
195
228
  name: z.ZodString;
196
229
  email: z.ZodString;
197
230
  console_user_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -199,7 +232,7 @@ declare const userSchemas: {
199
232
  console_refresh_token: z.ZodNullable<z.ZodOptional<z.ZodString>>;
200
233
  console_token_expires_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
201
234
  };
202
- declare const userCreateSchema: z.ZodObject<{
235
+ declare const userCacheCreateSchema: z.ZodObject<{
203
236
  name: z.ZodString;
204
237
  email: z.ZodString;
205
238
  console_user_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -207,7 +240,7 @@ declare const userCreateSchema: z.ZodObject<{
207
240
  console_refresh_token: z.ZodNullable<z.ZodOptional<z.ZodString>>;
208
241
  console_token_expires_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
209
242
  }, z.core.$strip>;
210
- declare const userUpdateSchema: z.ZodObject<{
243
+ declare const userCacheUpdateSchema: z.ZodObject<{
211
244
  name: z.ZodOptional<z.ZodString>;
212
245
  email: z.ZodOptional<z.ZodString>;
213
246
  console_user_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
@@ -215,7 +248,7 @@ declare const userUpdateSchema: z.ZodObject<{
215
248
  console_refresh_token: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
216
249
  console_token_expires_at: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
217
250
  }, z.core.$strip>;
218
- type UserCreate = z.infer<typeof userCreateSchema>;
219
- type UserUpdate = z.infer<typeof userUpdateSchema>;
251
+ type UserCacheCreate = z.infer<typeof userCacheCreateSchema>;
252
+ type UserCacheUpdate = z.infer<typeof userCacheUpdateSchema>;
220
253
 
221
- export { type Branch, type BranchCreate, type BranchUpdate, 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, branchCreateSchema, branchSchemas, branchUpdateSchema, permissionCreateSchema, permissionSchemas, permissionUpdateSchema, roleCreateSchema, rolePermissionCreateSchema, rolePermissionSchemas, rolePermissionUpdateSchema, roleSchemas, roleUpdateSchema, teamCreateSchema, teamPermissionCreateSchema, teamPermissionSchemas, teamPermissionUpdateSchema, teamSchemas, teamUpdateSchema, userCreateSchema, userSchemas, userUpdateSchema };
254
+ export { type BranchCache, type BranchCacheCreate, type BranchCacheUpdate, type OrganizationCache, type OrganizationCacheCreate, type OrganizationCacheUpdate, type Permission, type PermissionCreate, type PermissionUpdate, type Role, type RoleCreate, type RolePermission, type RolePermissionCreate, type RolePermissionUpdate, type RoleUpdate, type TeamCache, type TeamCacheCreate, type TeamCacheUpdate, type TeamPermission, type TeamPermissionCreate, type TeamPermissionUpdate, type UserCache, type UserCacheCreate, type UserCacheUpdate, branchCacheCreateSchema, branchCacheSchemas, branchCacheUpdateSchema, organizationCacheCreateSchema, organizationCacheSchemas, organizationCacheUpdateSchema, permissionCreateSchema, permissionSchemas, permissionUpdateSchema, roleCreateSchema, rolePermissionCreateSchema, rolePermissionSchemas, rolePermissionUpdateSchema, roleSchemas, roleUpdateSchema, teamCacheCreateSchema, teamCacheSchemas, teamCacheUpdateSchema, teamPermissionCreateSchema, teamPermissionSchemas, teamPermissionUpdateSchema, userCacheCreateSchema, userCacheSchemas, userCacheUpdateSchema };
@@ -53,11 +53,11 @@ function getMessages(locale) {
53
53
  return result;
54
54
  }
55
55
 
56
- // node_modules/@omnify-base/schemas/Branch.ts
56
+ // node_modules/@omnify-base/schemas/BranchCache.ts
57
57
  import { z } from "zod";
58
- var branchI18n = {
58
+ var branchCacheI18n = {
59
59
  /** Model display name */
60
- label: { "en": "Branch" },
60
+ label: { "en": "Branch Cache" },
61
61
  /** Field labels and placeholders */
62
62
  fields: {
63
63
  console_branch_id: {
@@ -80,7 +80,7 @@ var branchI18n = {
80
80
  }
81
81
  }
82
82
  };
83
- var baseBranchSchemas = {
83
+ var baseBranchCacheSchemas = {
84
84
  console_branch_id: z.string(),
85
85
  console_org_id: z.string(),
86
86
  code: z.string().min(1).max(20),
@@ -88,37 +88,91 @@ var baseBranchSchemas = {
88
88
  is_headquarters: z.boolean(),
89
89
  is_active: z.boolean()
90
90
  };
91
- var baseBranchCreateSchema = z.object({
92
- console_branch_id: baseBranchSchemas.console_branch_id,
93
- console_org_id: baseBranchSchemas.console_org_id,
94
- code: baseBranchSchemas.code,
95
- name: baseBranchSchemas.name,
96
- is_headquarters: baseBranchSchemas.is_headquarters,
97
- is_active: baseBranchSchemas.is_active
91
+ var baseBranchCacheCreateSchema = z.object({
92
+ console_branch_id: baseBranchCacheSchemas.console_branch_id,
93
+ console_org_id: baseBranchCacheSchemas.console_org_id,
94
+ code: baseBranchCacheSchemas.code,
95
+ name: baseBranchCacheSchemas.name,
96
+ is_headquarters: baseBranchCacheSchemas.is_headquarters,
97
+ is_active: baseBranchCacheSchemas.is_active
98
98
  });
99
- var baseBranchUpdateSchema = baseBranchCreateSchema.partial();
100
- function getBranchLabel(locale) {
101
- return branchI18n.label[locale] ?? branchI18n.label["en"] ?? "Branch";
99
+ var baseBranchCacheUpdateSchema = baseBranchCacheCreateSchema.partial();
100
+ function getBranchCacheLabel(locale) {
101
+ return branchCacheI18n.label[locale] ?? branchCacheI18n.label["en"] ?? "BranchCache";
102
102
  }
103
- function getBranchFieldLabel(field, locale) {
104
- const fieldI18n = branchI18n.fields[field];
103
+ function getBranchCacheFieldLabel(field, locale) {
104
+ const fieldI18n = branchCacheI18n.fields[field];
105
105
  if (!fieldI18n) return field;
106
106
  return fieldI18n.label[locale] ?? fieldI18n.label["en"] ?? field;
107
107
  }
108
- function getBranchFieldPlaceholder(field, locale) {
109
- const fieldI18n = branchI18n.fields[field];
108
+ function getBranchCacheFieldPlaceholder(field, locale) {
109
+ const fieldI18n = branchCacheI18n.fields[field];
110
110
  if (!fieldI18n || !("placeholder" in fieldI18n)) return "";
111
111
  const placeholder = fieldI18n.placeholder;
112
112
  return placeholder[locale] ?? placeholder["en"] ?? "";
113
113
  }
114
114
 
115
- // src/schemas/Branch.ts
116
- var branchSchemas = { ...baseBranchSchemas };
117
- var branchCreateSchema = baseBranchCreateSchema;
118
- var branchUpdateSchema = baseBranchUpdateSchema;
115
+ // src/schemas/BranchCache.ts
116
+ var branchCacheSchemas = { ...baseBranchCacheSchemas };
117
+ var branchCacheCreateSchema = baseBranchCacheCreateSchema;
118
+ var branchCacheUpdateSchema = baseBranchCacheUpdateSchema;
119
119
 
120
- // node_modules/@omnify-base/schemas/Permission.ts
120
+ // node_modules/@omnify-base/schemas/OrganizationCache.ts
121
121
  import { z as z2 } from "zod";
122
+ var organizationCacheI18n = {
123
+ /** Model display name */
124
+ label: { "en": "Organization Cache" },
125
+ /** Field labels and placeholders */
126
+ fields: {
127
+ console_org_id: {
128
+ label: { "en": "Console Organization ID" }
129
+ },
130
+ name: {
131
+ label: { "en": "Organization Name" }
132
+ },
133
+ code: {
134
+ label: { "en": "Organization Code" }
135
+ },
136
+ is_active: {
137
+ label: { "en": "Active" }
138
+ }
139
+ }
140
+ };
141
+ var baseOrganizationCacheSchemas = {
142
+ console_org_id: z2.string(),
143
+ name: z2.string().min(1).max(100),
144
+ code: z2.string().min(1).max(20),
145
+ is_active: z2.boolean()
146
+ };
147
+ var baseOrganizationCacheCreateSchema = z2.object({
148
+ console_org_id: baseOrganizationCacheSchemas.console_org_id,
149
+ name: baseOrganizationCacheSchemas.name,
150
+ code: baseOrganizationCacheSchemas.code,
151
+ is_active: baseOrganizationCacheSchemas.is_active
152
+ });
153
+ var baseOrganizationCacheUpdateSchema = baseOrganizationCacheCreateSchema.partial();
154
+ function getOrganizationCacheLabel(locale) {
155
+ return organizationCacheI18n.label[locale] ?? organizationCacheI18n.label["en"] ?? "OrganizationCache";
156
+ }
157
+ function getOrganizationCacheFieldLabel(field, locale) {
158
+ const fieldI18n = organizationCacheI18n.fields[field];
159
+ if (!fieldI18n) return field;
160
+ return fieldI18n.label[locale] ?? fieldI18n.label["en"] ?? field;
161
+ }
162
+ function getOrganizationCacheFieldPlaceholder(field, locale) {
163
+ const fieldI18n = organizationCacheI18n.fields[field];
164
+ if (!fieldI18n || !("placeholder" in fieldI18n)) return "";
165
+ const placeholder = fieldI18n.placeholder;
166
+ return placeholder[locale] ?? placeholder["en"] ?? "";
167
+ }
168
+
169
+ // src/schemas/OrganizationCache.ts
170
+ var organizationCacheSchemas = { ...baseOrganizationCacheSchemas };
171
+ var organizationCacheCreateSchema = baseOrganizationCacheCreateSchema;
172
+ var organizationCacheUpdateSchema = baseOrganizationCacheUpdateSchema;
173
+
174
+ // node_modules/@omnify-base/schemas/Permission.ts
175
+ import { z as z3 } from "zod";
122
176
  var permissionI18n = {
123
177
  /** Model display name */
124
178
  label: { "en": "Permission" },
@@ -139,11 +193,11 @@ var permissionI18n = {
139
193
  }
140
194
  };
141
195
  var basePermissionSchemas = {
142
- name: z2.string().min(1).max(100),
143
- slug: z2.string().min(1).max(100),
144
- group: z2.string().max(50).optional().nullable()
196
+ name: z3.string().min(1).max(100),
197
+ slug: z3.string().min(1).max(100),
198
+ group: z3.string().max(50).optional().nullable()
145
199
  };
146
- var basePermissionCreateSchema = z2.object({
200
+ var basePermissionCreateSchema = z3.object({
147
201
  name: basePermissionSchemas.name,
148
202
  slug: basePermissionSchemas.slug,
149
203
  group: basePermissionSchemas.group
@@ -170,7 +224,7 @@ var permissionCreateSchema = basePermissionCreateSchema;
170
224
  var permissionUpdateSchema = basePermissionUpdateSchema;
171
225
 
172
226
  // node_modules/@omnify-base/schemas/Role.ts
173
- import { z as z3 } from "zod";
227
+ import { z as z4 } from "zod";
174
228
  var roleI18n = {
175
229
  /** Model display name */
176
230
  label: { "en": "Role" },
@@ -194,12 +248,12 @@ var roleI18n = {
194
248
  }
195
249
  };
196
250
  var baseRoleSchemas = {
197
- name: z3.string().min(1).max(100),
198
- slug: z3.string().min(1).max(100),
199
- description: z3.string().optional().nullable(),
200
- level: z3.number().int()
251
+ name: z4.string().min(1).max(100),
252
+ slug: z4.string().min(1).max(100),
253
+ description: z4.string().optional().nullable(),
254
+ level: z4.number().int()
201
255
  };
202
- var baseRoleCreateSchema = z3.object({
256
+ var baseRoleCreateSchema = z4.object({
203
257
  name: baseRoleSchemas.name,
204
258
  slug: baseRoleSchemas.slug,
205
259
  description: baseRoleSchemas.description,
@@ -227,7 +281,7 @@ var roleCreateSchema = baseRoleCreateSchema;
227
281
  var roleUpdateSchema = baseRoleUpdateSchema;
228
282
 
229
283
  // node_modules/@omnify-base/schemas/RolePermission.ts
230
- import { z as z4 } from "zod";
284
+ import { z as z5 } from "zod";
231
285
  var rolePermissionI18n = {
232
286
  /** Model display name */
233
287
  label: { "en": "Role Permission" },
@@ -242,7 +296,7 @@ var rolePermissionI18n = {
242
296
  }
243
297
  };
244
298
  var baseRolePermissionSchemas = {};
245
- var baseRolePermissionCreateSchema = z4.object({});
299
+ var baseRolePermissionCreateSchema = z5.object({});
246
300
  var baseRolePermissionUpdateSchema = baseRolePermissionCreateSchema.partial();
247
301
  function getRolePermissionLabel(locale) {
248
302
  return rolePermissionI18n.label[locale] ?? rolePermissionI18n.label["en"] ?? "RolePermission";
@@ -264,11 +318,11 @@ var rolePermissionSchemas = { ...baseRolePermissionSchemas };
264
318
  var rolePermissionCreateSchema = baseRolePermissionCreateSchema;
265
319
  var rolePermissionUpdateSchema = baseRolePermissionUpdateSchema;
266
320
 
267
- // node_modules/@omnify-base/schemas/Team.ts
268
- import { z as z5 } from "zod";
269
- var teamI18n = {
321
+ // node_modules/@omnify-base/schemas/TeamCache.ts
322
+ import { z as z6 } from "zod";
323
+ var teamCacheI18n = {
270
324
  /** Model display name */
271
- label: { "en": "Team" },
325
+ label: { "en": "Team Cache" },
272
326
  /** Field labels and placeholders */
273
327
  fields: {
274
328
  console_team_id: {
@@ -282,39 +336,39 @@ var teamI18n = {
282
336
  }
283
337
  }
284
338
  };
285
- var baseTeamSchemas = {
286
- console_team_id: z5.string(),
287
- console_org_id: z5.string(),
288
- name: z5.string().min(1).max(100)
339
+ var baseTeamCacheSchemas = {
340
+ console_team_id: z6.string(),
341
+ console_org_id: z6.string(),
342
+ name: z6.string().min(1).max(100)
289
343
  };
290
- var baseTeamCreateSchema = z5.object({
291
- console_team_id: baseTeamSchemas.console_team_id,
292
- console_org_id: baseTeamSchemas.console_org_id,
293
- name: baseTeamSchemas.name
344
+ var baseTeamCacheCreateSchema = z6.object({
345
+ console_team_id: baseTeamCacheSchemas.console_team_id,
346
+ console_org_id: baseTeamCacheSchemas.console_org_id,
347
+ name: baseTeamCacheSchemas.name
294
348
  });
295
- var baseTeamUpdateSchema = baseTeamCreateSchema.partial();
296
- function getTeamLabel(locale) {
297
- return teamI18n.label[locale] ?? teamI18n.label["en"] ?? "Team";
349
+ var baseTeamCacheUpdateSchema = baseTeamCacheCreateSchema.partial();
350
+ function getTeamCacheLabel(locale) {
351
+ return teamCacheI18n.label[locale] ?? teamCacheI18n.label["en"] ?? "TeamCache";
298
352
  }
299
- function getTeamFieldLabel(field, locale) {
300
- const fieldI18n = teamI18n.fields[field];
353
+ function getTeamCacheFieldLabel(field, locale) {
354
+ const fieldI18n = teamCacheI18n.fields[field];
301
355
  if (!fieldI18n) return field;
302
356
  return fieldI18n.label[locale] ?? fieldI18n.label["en"] ?? field;
303
357
  }
304
- function getTeamFieldPlaceholder(field, locale) {
305
- const fieldI18n = teamI18n.fields[field];
358
+ function getTeamCacheFieldPlaceholder(field, locale) {
359
+ const fieldI18n = teamCacheI18n.fields[field];
306
360
  if (!fieldI18n || !("placeholder" in fieldI18n)) return "";
307
361
  const placeholder = fieldI18n.placeholder;
308
362
  return placeholder[locale] ?? placeholder["en"] ?? "";
309
363
  }
310
364
 
311
- // src/schemas/Team.ts
312
- var teamSchemas = { ...baseTeamSchemas };
313
- var teamCreateSchema = baseTeamCreateSchema;
314
- var teamUpdateSchema = baseTeamUpdateSchema;
365
+ // src/schemas/TeamCache.ts
366
+ var teamCacheSchemas = { ...baseTeamCacheSchemas };
367
+ var teamCacheCreateSchema = baseTeamCacheCreateSchema;
368
+ var teamCacheUpdateSchema = baseTeamCacheUpdateSchema;
315
369
 
316
370
  // node_modules/@omnify-base/schemas/TeamPermission.ts
317
- import { z as z6 } from "zod";
371
+ import { z as z7 } from "zod";
318
372
  var teamPermissionI18n = {
319
373
  /** Model display name */
320
374
  label: { "en": "Team Permission" },
@@ -332,10 +386,10 @@ var teamPermissionI18n = {
332
386
  }
333
387
  };
334
388
  var baseTeamPermissionSchemas = {
335
- console_org_id: z6.string(),
336
- console_team_id: z6.string()
389
+ console_org_id: z7.string(),
390
+ console_team_id: z7.string()
337
391
  };
338
- var baseTeamPermissionCreateSchema = z6.object({
392
+ var baseTeamPermissionCreateSchema = z7.object({
339
393
  console_org_id: baseTeamPermissionSchemas.console_org_id,
340
394
  console_team_id: baseTeamPermissionSchemas.console_team_id
341
395
  });
@@ -360,11 +414,11 @@ var teamPermissionSchemas = { ...baseTeamPermissionSchemas };
360
414
  var teamPermissionCreateSchema = baseTeamPermissionCreateSchema;
361
415
  var teamPermissionUpdateSchema = baseTeamPermissionUpdateSchema;
362
416
 
363
- // node_modules/@omnify-base/schemas/User.ts
364
- import { z as z7 } from "zod";
365
- var userI18n = {
417
+ // node_modules/@omnify-base/schemas/UserCache.ts
418
+ import { z as z8 } from "zod";
419
+ var userCacheI18n = {
366
420
  /** Model display name */
367
- label: { "en": "User" },
421
+ label: { "en": "User Cache" },
368
422
  /** Field labels and placeholders */
369
423
  fields: {
370
424
  name: {
@@ -390,54 +444,57 @@ var userI18n = {
390
444
  }
391
445
  }
392
446
  };
393
- var baseUserSchemas = {
394
- name: z7.string().min(1),
395
- email: z7.string().min(1),
396
- console_user_id: z7.string().optional().nullable(),
397
- console_access_token: z7.string().optional().nullable(),
398
- console_refresh_token: z7.string().optional().nullable(),
399
- console_token_expires_at: z7.string().datetime({ offset: true }).optional().nullable()
447
+ var baseUserCacheSchemas = {
448
+ name: z8.string().min(1),
449
+ email: z8.string().min(1),
450
+ console_user_id: z8.string().optional().nullable(),
451
+ console_access_token: z8.string().optional().nullable(),
452
+ console_refresh_token: z8.string().optional().nullable(),
453
+ console_token_expires_at: z8.string().datetime({ offset: true }).optional().nullable()
400
454
  };
401
- var baseUserCreateSchema = z7.object({
402
- name: baseUserSchemas.name,
403
- email: baseUserSchemas.email,
404
- console_user_id: baseUserSchemas.console_user_id,
405
- console_access_token: baseUserSchemas.console_access_token,
406
- console_refresh_token: baseUserSchemas.console_refresh_token,
407
- console_token_expires_at: baseUserSchemas.console_token_expires_at
455
+ var baseUserCacheCreateSchema = z8.object({
456
+ name: baseUserCacheSchemas.name,
457
+ email: baseUserCacheSchemas.email,
458
+ console_user_id: baseUserCacheSchemas.console_user_id,
459
+ console_access_token: baseUserCacheSchemas.console_access_token,
460
+ console_refresh_token: baseUserCacheSchemas.console_refresh_token,
461
+ console_token_expires_at: baseUserCacheSchemas.console_token_expires_at
408
462
  });
409
- var baseUserUpdateSchema = baseUserCreateSchema.partial();
410
- function getUserLabel(locale) {
411
- return userI18n.label[locale] ?? userI18n.label["en"] ?? "User";
463
+ var baseUserCacheUpdateSchema = baseUserCacheCreateSchema.partial();
464
+ function getUserCacheLabel(locale) {
465
+ return userCacheI18n.label[locale] ?? userCacheI18n.label["en"] ?? "UserCache";
412
466
  }
413
- function getUserFieldLabel(field, locale) {
414
- const fieldI18n = userI18n.fields[field];
467
+ function getUserCacheFieldLabel(field, locale) {
468
+ const fieldI18n = userCacheI18n.fields[field];
415
469
  if (!fieldI18n) return field;
416
470
  return fieldI18n.label[locale] ?? fieldI18n.label["en"] ?? field;
417
471
  }
418
- function getUserFieldPlaceholder(field, locale) {
419
- const fieldI18n = userI18n.fields[field];
472
+ function getUserCacheFieldPlaceholder(field, locale) {
473
+ const fieldI18n = userCacheI18n.fields[field];
420
474
  if (!fieldI18n || !("placeholder" in fieldI18n)) return "";
421
475
  const placeholder = fieldI18n.placeholder;
422
476
  return placeholder[locale] ?? placeholder["en"] ?? "";
423
477
  }
424
478
 
425
- // src/schemas/User.ts
426
- var userSchemas = { ...baseUserSchemas };
427
- var userCreateSchema = baseUserCreateSchema;
428
- var userUpdateSchema = baseUserUpdateSchema;
479
+ // src/schemas/UserCache.ts
480
+ var userCacheSchemas = { ...baseUserCacheSchemas };
481
+ var userCacheCreateSchema = baseUserCacheCreateSchema;
482
+ var userCacheUpdateSchema = baseUserCacheUpdateSchema;
429
483
  export {
430
- branchCreateSchema,
431
- branchI18n,
432
- branchSchemas,
433
- branchUpdateSchema,
484
+ branchCacheCreateSchema,
485
+ branchCacheI18n,
486
+ branchCacheSchemas,
487
+ branchCacheUpdateSchema,
434
488
  defaultLocale,
435
489
  fallbackLocale,
436
- getBranchFieldLabel,
437
- getBranchFieldPlaceholder,
438
- getBranchLabel,
490
+ getBranchCacheFieldLabel,
491
+ getBranchCacheFieldPlaceholder,
492
+ getBranchCacheLabel,
439
493
  getMessage,
440
494
  getMessages,
495
+ getOrganizationCacheFieldLabel,
496
+ getOrganizationCacheFieldPlaceholder,
497
+ getOrganizationCacheLabel,
441
498
  getPermissionFieldLabel,
442
499
  getPermissionFieldPlaceholder,
443
500
  getPermissionLabel,
@@ -447,15 +504,19 @@ export {
447
504
  getRolePermissionFieldLabel,
448
505
  getRolePermissionFieldPlaceholder,
449
506
  getRolePermissionLabel,
450
- getTeamFieldLabel,
451
- getTeamFieldPlaceholder,
452
- getTeamLabel,
507
+ getTeamCacheFieldLabel,
508
+ getTeamCacheFieldPlaceholder,
509
+ getTeamCacheLabel,
453
510
  getTeamPermissionFieldLabel,
454
511
  getTeamPermissionFieldPlaceholder,
455
512
  getTeamPermissionLabel,
456
- getUserFieldLabel,
457
- getUserFieldPlaceholder,
458
- getUserLabel,
513
+ getUserCacheFieldLabel,
514
+ getUserCacheFieldPlaceholder,
515
+ getUserCacheLabel,
516
+ organizationCacheCreateSchema,
517
+ organizationCacheI18n,
518
+ organizationCacheSchemas,
519
+ organizationCacheUpdateSchema,
459
520
  permissionCreateSchema,
460
521
  permissionI18n,
461
522
  permissionSchemas,
@@ -469,18 +530,18 @@ export {
469
530
  roleSchemas,
470
531
  roleUpdateSchema,
471
532
  supportedLocales,
472
- teamCreateSchema,
473
- teamI18n,
533
+ teamCacheCreateSchema,
534
+ teamCacheI18n,
535
+ teamCacheSchemas,
536
+ teamCacheUpdateSchema,
474
537
  teamPermissionCreateSchema,
475
538
  teamPermissionI18n,
476
539
  teamPermissionSchemas,
477
540
  teamPermissionUpdateSchema,
478
- teamSchemas,
479
- teamUpdateSchema,
480
- userCreateSchema,
481
- userI18n,
482
- userSchemas,
483
- userUpdateSchema,
541
+ userCacheCreateSchema,
542
+ userCacheI18n,
543
+ userCacheSchemas,
544
+ userCacheUpdateSchema,
484
545
  validationMessages
485
546
  };
486
547
  //# sourceMappingURL=index.js.map