@famgia/omnify-react-sso 2.2.1 → 2.2.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.
- package/README.md +404 -113
- package/dist/@omnify-base/schemas/Branch.ts +12 -12
- package/dist/@omnify-base/schemas/BranchCache.ts +131 -0
- package/dist/@omnify-base/schemas/OrganizationCache.ts +117 -0
- package/dist/@omnify-base/schemas/Permission.ts +10 -10
- package/dist/@omnify-base/schemas/Role.ts +19 -12
- package/dist/@omnify-base/schemas/RolePermission.ts +6 -6
- package/dist/@omnify-base/schemas/Team.ts +6 -6
- package/dist/@omnify-base/schemas/TeamCache.ts +110 -0
- package/dist/@omnify-base/schemas/TeamPermission.ts +6 -6
- package/dist/@omnify-base/schemas/User.ts +13 -13
- package/dist/@omnify-base/schemas/UserCache.ts +142 -0
- package/dist/index.cjs +1846 -427
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +623 -14
- package/dist/index.d.ts +623 -14
- package/dist/index.js +1790 -400
- package/dist/index.js.map +1 -1
- package/dist/schemas/index.cjs +245 -167
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +67 -28
- package/dist/schemas/index.d.ts +67 -28
- package/dist/schemas/index.js +217 -146
- package/dist/schemas/index.js.map +1 -1
- package/dist/testing/index.d.cts +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/dist/{types-BCBSfJJr.d.cts → types-bD5deLxs.d.cts} +102 -1
- package/dist/{types-BCBSfJJr.d.ts → types-bD5deLxs.d.ts} +102 -1
- package/package.json +121 -106
- package/scripts/build-schemas.ts +1 -1
package/dist/schemas/index.cjs
CHANGED
|
@@ -20,17 +20,20 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/schemas/index.ts
|
|
21
21
|
var schemas_exports = {};
|
|
22
22
|
__export(schemas_exports, {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
branchCacheCreateSchema: () => branchCacheCreateSchema,
|
|
24
|
+
branchCacheI18n: () => branchCacheI18n,
|
|
25
|
+
branchCacheSchemas: () => branchCacheSchemas,
|
|
26
|
+
branchCacheUpdateSchema: () => branchCacheUpdateSchema,
|
|
27
27
|
defaultLocale: () => defaultLocale,
|
|
28
28
|
fallbackLocale: () => fallbackLocale,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
getBranchCacheFieldLabel: () => getBranchCacheFieldLabel,
|
|
30
|
+
getBranchCacheFieldPlaceholder: () => getBranchCacheFieldPlaceholder,
|
|
31
|
+
getBranchCacheLabel: () => getBranchCacheLabel,
|
|
32
32
|
getMessage: () => getMessage,
|
|
33
33
|
getMessages: () => getMessages,
|
|
34
|
+
getOrganizationCacheFieldLabel: () => getOrganizationCacheFieldLabel,
|
|
35
|
+
getOrganizationCacheFieldPlaceholder: () => getOrganizationCacheFieldPlaceholder,
|
|
36
|
+
getOrganizationCacheLabel: () => getOrganizationCacheLabel,
|
|
34
37
|
getPermissionFieldLabel: () => getPermissionFieldLabel,
|
|
35
38
|
getPermissionFieldPlaceholder: () => getPermissionFieldPlaceholder,
|
|
36
39
|
getPermissionLabel: () => getPermissionLabel,
|
|
@@ -40,15 +43,19 @@ __export(schemas_exports, {
|
|
|
40
43
|
getRolePermissionFieldLabel: () => getRolePermissionFieldLabel,
|
|
41
44
|
getRolePermissionFieldPlaceholder: () => getRolePermissionFieldPlaceholder,
|
|
42
45
|
getRolePermissionLabel: () => getRolePermissionLabel,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
+
getTeamCacheFieldLabel: () => getTeamCacheFieldLabel,
|
|
47
|
+
getTeamCacheFieldPlaceholder: () => getTeamCacheFieldPlaceholder,
|
|
48
|
+
getTeamCacheLabel: () => getTeamCacheLabel,
|
|
46
49
|
getTeamPermissionFieldLabel: () => getTeamPermissionFieldLabel,
|
|
47
50
|
getTeamPermissionFieldPlaceholder: () => getTeamPermissionFieldPlaceholder,
|
|
48
51
|
getTeamPermissionLabel: () => getTeamPermissionLabel,
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
+
getUserCacheFieldLabel: () => getUserCacheFieldLabel,
|
|
53
|
+
getUserCacheFieldPlaceholder: () => getUserCacheFieldPlaceholder,
|
|
54
|
+
getUserCacheLabel: () => getUserCacheLabel,
|
|
55
|
+
organizationCacheCreateSchema: () => organizationCacheCreateSchema,
|
|
56
|
+
organizationCacheI18n: () => organizationCacheI18n,
|
|
57
|
+
organizationCacheSchemas: () => organizationCacheSchemas,
|
|
58
|
+
organizationCacheUpdateSchema: () => organizationCacheUpdateSchema,
|
|
52
59
|
permissionCreateSchema: () => permissionCreateSchema,
|
|
53
60
|
permissionI18n: () => permissionI18n,
|
|
54
61
|
permissionSchemas: () => permissionSchemas,
|
|
@@ -62,18 +69,18 @@ __export(schemas_exports, {
|
|
|
62
69
|
roleSchemas: () => roleSchemas,
|
|
63
70
|
roleUpdateSchema: () => roleUpdateSchema,
|
|
64
71
|
supportedLocales: () => supportedLocales,
|
|
65
|
-
|
|
66
|
-
|
|
72
|
+
teamCacheCreateSchema: () => teamCacheCreateSchema,
|
|
73
|
+
teamCacheI18n: () => teamCacheI18n,
|
|
74
|
+
teamCacheSchemas: () => teamCacheSchemas,
|
|
75
|
+
teamCacheUpdateSchema: () => teamCacheUpdateSchema,
|
|
67
76
|
teamPermissionCreateSchema: () => teamPermissionCreateSchema,
|
|
68
77
|
teamPermissionI18n: () => teamPermissionI18n,
|
|
69
78
|
teamPermissionSchemas: () => teamPermissionSchemas,
|
|
70
79
|
teamPermissionUpdateSchema: () => teamPermissionUpdateSchema,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
userSchemas: () => userSchemas,
|
|
76
|
-
userUpdateSchema: () => userUpdateSchema,
|
|
80
|
+
userCacheCreateSchema: () => userCacheCreateSchema,
|
|
81
|
+
userCacheI18n: () => userCacheI18n,
|
|
82
|
+
userCacheSchemas: () => userCacheSchemas,
|
|
83
|
+
userCacheUpdateSchema: () => userCacheUpdateSchema,
|
|
77
84
|
validationMessages: () => validationMessages
|
|
78
85
|
});
|
|
79
86
|
module.exports = __toCommonJS(schemas_exports);
|
|
@@ -133,34 +140,34 @@ function getMessages(locale) {
|
|
|
133
140
|
return result;
|
|
134
141
|
}
|
|
135
142
|
|
|
136
|
-
// node_modules/@omnify-base/schemas/
|
|
143
|
+
// node_modules/@omnify-base/schemas/BranchCache.ts
|
|
137
144
|
var import_zod = require("zod");
|
|
138
|
-
var
|
|
145
|
+
var branchCacheI18n = {
|
|
139
146
|
/** Model display name */
|
|
140
|
-
label: { "en": "Branch" },
|
|
147
|
+
label: { "ja": "\u652F\u5E97\u30AD\u30E3\u30C3\u30B7\u30E5", "en": "Branch Cache" },
|
|
141
148
|
/** Field labels and placeholders */
|
|
142
149
|
fields: {
|
|
143
150
|
console_branch_id: {
|
|
144
|
-
label: { "en": "Console Branch ID" }
|
|
151
|
+
label: { "ja": "Console Branch ID", "en": "Console Branch ID" }
|
|
145
152
|
},
|
|
146
153
|
console_org_id: {
|
|
147
|
-
label: { "en": "Console Organization ID" }
|
|
154
|
+
label: { "ja": "Console Organization ID", "en": "Console Organization ID" }
|
|
148
155
|
},
|
|
149
156
|
code: {
|
|
150
|
-
label: { "en": "Branch Code" }
|
|
157
|
+
label: { "ja": "\u652F\u5E97\u30B3\u30FC\u30C9", "en": "Branch Code" }
|
|
151
158
|
},
|
|
152
159
|
name: {
|
|
153
|
-
label: { "en": "Branch Name" }
|
|
160
|
+
label: { "ja": "\u652F\u5E97\u540D", "en": "Branch Name" }
|
|
154
161
|
},
|
|
155
162
|
is_headquarters: {
|
|
156
|
-
label: { "en": "Is Headquarters" }
|
|
163
|
+
label: { "ja": "\u672C\u793E", "en": "Is Headquarters" }
|
|
157
164
|
},
|
|
158
165
|
is_active: {
|
|
159
|
-
label: { "en": "Active" }
|
|
166
|
+
label: { "ja": "\u6709\u52B9", "en": "Active" }
|
|
160
167
|
}
|
|
161
168
|
}
|
|
162
169
|
};
|
|
163
|
-
var
|
|
170
|
+
var baseBranchCacheSchemas = {
|
|
164
171
|
console_branch_id: import_zod.z.string(),
|
|
165
172
|
console_org_id: import_zod.z.string(),
|
|
166
173
|
code: import_zod.z.string().min(1).max(20),
|
|
@@ -168,62 +175,116 @@ var baseBranchSchemas = {
|
|
|
168
175
|
is_headquarters: import_zod.z.boolean(),
|
|
169
176
|
is_active: import_zod.z.boolean()
|
|
170
177
|
};
|
|
171
|
-
var
|
|
172
|
-
console_branch_id:
|
|
173
|
-
console_org_id:
|
|
174
|
-
code:
|
|
175
|
-
name:
|
|
176
|
-
is_headquarters:
|
|
177
|
-
is_active:
|
|
178
|
+
var baseBranchCacheCreateSchema = import_zod.z.object({
|
|
179
|
+
console_branch_id: baseBranchCacheSchemas.console_branch_id,
|
|
180
|
+
console_org_id: baseBranchCacheSchemas.console_org_id,
|
|
181
|
+
code: baseBranchCacheSchemas.code,
|
|
182
|
+
name: baseBranchCacheSchemas.name,
|
|
183
|
+
is_headquarters: baseBranchCacheSchemas.is_headquarters,
|
|
184
|
+
is_active: baseBranchCacheSchemas.is_active
|
|
178
185
|
});
|
|
179
|
-
var
|
|
180
|
-
function
|
|
181
|
-
return
|
|
186
|
+
var baseBranchCacheUpdateSchema = baseBranchCacheCreateSchema.partial();
|
|
187
|
+
function getBranchCacheLabel(locale) {
|
|
188
|
+
return branchCacheI18n.label[locale] ?? branchCacheI18n.label["en"] ?? "BranchCache";
|
|
182
189
|
}
|
|
183
|
-
function
|
|
184
|
-
const fieldI18n =
|
|
190
|
+
function getBranchCacheFieldLabel(field, locale) {
|
|
191
|
+
const fieldI18n = branchCacheI18n.fields[field];
|
|
185
192
|
if (!fieldI18n) return field;
|
|
186
193
|
return fieldI18n.label[locale] ?? fieldI18n.label["en"] ?? field;
|
|
187
194
|
}
|
|
188
|
-
function
|
|
189
|
-
const fieldI18n =
|
|
195
|
+
function getBranchCacheFieldPlaceholder(field, locale) {
|
|
196
|
+
const fieldI18n = branchCacheI18n.fields[field];
|
|
190
197
|
if (!fieldI18n || !("placeholder" in fieldI18n)) return "";
|
|
191
198
|
const placeholder = fieldI18n.placeholder;
|
|
192
199
|
return placeholder[locale] ?? placeholder["en"] ?? "";
|
|
193
200
|
}
|
|
194
201
|
|
|
195
|
-
// src/schemas/
|
|
196
|
-
var
|
|
197
|
-
var
|
|
198
|
-
var
|
|
202
|
+
// src/schemas/BranchCache.ts
|
|
203
|
+
var branchCacheSchemas = { ...baseBranchCacheSchemas };
|
|
204
|
+
var branchCacheCreateSchema = baseBranchCacheCreateSchema;
|
|
205
|
+
var branchCacheUpdateSchema = baseBranchCacheUpdateSchema;
|
|
199
206
|
|
|
200
|
-
// node_modules/@omnify-base/schemas/
|
|
207
|
+
// node_modules/@omnify-base/schemas/OrganizationCache.ts
|
|
201
208
|
var import_zod2 = require("zod");
|
|
209
|
+
var organizationCacheI18n = {
|
|
210
|
+
/** Model display name */
|
|
211
|
+
label: { "ja": "\u7D44\u7E54\u30AD\u30E3\u30C3\u30B7\u30E5", "en": "Organization Cache" },
|
|
212
|
+
/** Field labels and placeholders */
|
|
213
|
+
fields: {
|
|
214
|
+
console_org_id: {
|
|
215
|
+
label: { "ja": "Console Organization ID", "en": "Console Organization ID" }
|
|
216
|
+
},
|
|
217
|
+
name: {
|
|
218
|
+
label: { "ja": "\u7D44\u7E54\u540D", "en": "Organization Name" }
|
|
219
|
+
},
|
|
220
|
+
code: {
|
|
221
|
+
label: { "ja": "\u7D44\u7E54\u30B3\u30FC\u30C9", "en": "Organization Code" }
|
|
222
|
+
},
|
|
223
|
+
is_active: {
|
|
224
|
+
label: { "ja": "\u6709\u52B9", "en": "Active" }
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
var baseOrganizationCacheSchemas = {
|
|
229
|
+
console_org_id: import_zod2.z.string(),
|
|
230
|
+
name: import_zod2.z.string().min(1).max(100),
|
|
231
|
+
code: import_zod2.z.string().min(1).max(20),
|
|
232
|
+
is_active: import_zod2.z.boolean()
|
|
233
|
+
};
|
|
234
|
+
var baseOrganizationCacheCreateSchema = import_zod2.z.object({
|
|
235
|
+
console_org_id: baseOrganizationCacheSchemas.console_org_id,
|
|
236
|
+
name: baseOrganizationCacheSchemas.name,
|
|
237
|
+
code: baseOrganizationCacheSchemas.code,
|
|
238
|
+
is_active: baseOrganizationCacheSchemas.is_active
|
|
239
|
+
});
|
|
240
|
+
var baseOrganizationCacheUpdateSchema = baseOrganizationCacheCreateSchema.partial();
|
|
241
|
+
function getOrganizationCacheLabel(locale) {
|
|
242
|
+
return organizationCacheI18n.label[locale] ?? organizationCacheI18n.label["en"] ?? "OrganizationCache";
|
|
243
|
+
}
|
|
244
|
+
function getOrganizationCacheFieldLabel(field, locale) {
|
|
245
|
+
const fieldI18n = organizationCacheI18n.fields[field];
|
|
246
|
+
if (!fieldI18n) return field;
|
|
247
|
+
return fieldI18n.label[locale] ?? fieldI18n.label["en"] ?? field;
|
|
248
|
+
}
|
|
249
|
+
function getOrganizationCacheFieldPlaceholder(field, locale) {
|
|
250
|
+
const fieldI18n = organizationCacheI18n.fields[field];
|
|
251
|
+
if (!fieldI18n || !("placeholder" in fieldI18n)) return "";
|
|
252
|
+
const placeholder = fieldI18n.placeholder;
|
|
253
|
+
return placeholder[locale] ?? placeholder["en"] ?? "";
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
// src/schemas/OrganizationCache.ts
|
|
257
|
+
var organizationCacheSchemas = { ...baseOrganizationCacheSchemas };
|
|
258
|
+
var organizationCacheCreateSchema = baseOrganizationCacheCreateSchema;
|
|
259
|
+
var organizationCacheUpdateSchema = baseOrganizationCacheUpdateSchema;
|
|
260
|
+
|
|
261
|
+
// node_modules/@omnify-base/schemas/Permission.ts
|
|
262
|
+
var import_zod3 = require("zod");
|
|
202
263
|
var permissionI18n = {
|
|
203
264
|
/** Model display name */
|
|
204
|
-
label: { "en": "Permission" },
|
|
265
|
+
label: { "ja": "\u6A29\u9650", "en": "Permission" },
|
|
205
266
|
/** Field labels and placeholders */
|
|
206
267
|
fields: {
|
|
207
268
|
name: {
|
|
208
|
-
label: { "en": "Permission Name" }
|
|
269
|
+
label: { "ja": "\u6A29\u9650\u540D", "en": "Permission Name" }
|
|
209
270
|
},
|
|
210
271
|
slug: {
|
|
211
|
-
label: { "en": "Slug" }
|
|
272
|
+
label: { "ja": "\u30B9\u30E9\u30C3\u30B0", "en": "Slug" }
|
|
212
273
|
},
|
|
213
274
|
group: {
|
|
214
|
-
label: { "en": "Group" }
|
|
275
|
+
label: { "ja": "\u30B0\u30EB\u30FC\u30D7", "en": "Group" }
|
|
215
276
|
},
|
|
216
277
|
roles: {
|
|
217
|
-
label: { "en": "Roles" }
|
|
278
|
+
label: { "ja": "\u30ED\u30FC\u30EB", "en": "Roles" }
|
|
218
279
|
}
|
|
219
280
|
}
|
|
220
281
|
};
|
|
221
282
|
var basePermissionSchemas = {
|
|
222
|
-
name:
|
|
223
|
-
slug:
|
|
224
|
-
group:
|
|
283
|
+
name: import_zod3.z.string().min(1).max(100),
|
|
284
|
+
slug: import_zod3.z.string().min(1).max(100),
|
|
285
|
+
group: import_zod3.z.string().max(50).optional().nullable()
|
|
225
286
|
};
|
|
226
|
-
var basePermissionCreateSchema =
|
|
287
|
+
var basePermissionCreateSchema = import_zod3.z.object({
|
|
227
288
|
name: basePermissionSchemas.name,
|
|
228
289
|
slug: basePermissionSchemas.slug,
|
|
229
290
|
group: basePermissionSchemas.group
|
|
@@ -250,36 +311,41 @@ var permissionCreateSchema = basePermissionCreateSchema;
|
|
|
250
311
|
var permissionUpdateSchema = basePermissionUpdateSchema;
|
|
251
312
|
|
|
252
313
|
// node_modules/@omnify-base/schemas/Role.ts
|
|
253
|
-
var
|
|
314
|
+
var import_zod4 = require("zod");
|
|
254
315
|
var roleI18n = {
|
|
255
316
|
/** Model display name */
|
|
256
|
-
label: { "en": "Role" },
|
|
317
|
+
label: { "ja": "\u30ED\u30FC\u30EB", "en": "Role" },
|
|
257
318
|
/** Field labels and placeholders */
|
|
258
319
|
fields: {
|
|
320
|
+
console_org_id: {
|
|
321
|
+
label: { "ja": "\u7D44\u7E54ID", "en": "Organization ID" }
|
|
322
|
+
},
|
|
259
323
|
name: {
|
|
260
|
-
label: { "en": "Role Name" }
|
|
324
|
+
label: { "ja": "\u30ED\u30FC\u30EB\u540D", "en": "Role Name" }
|
|
261
325
|
},
|
|
262
326
|
slug: {
|
|
263
|
-
label: { "en": "Slug" }
|
|
327
|
+
label: { "ja": "\u30B9\u30E9\u30C3\u30B0", "en": "Slug" }
|
|
264
328
|
},
|
|
265
329
|
description: {
|
|
266
|
-
label: { "en": "Description" }
|
|
330
|
+
label: { "ja": "\u8AAC\u660E", "en": "Description" }
|
|
267
331
|
},
|
|
268
332
|
level: {
|
|
269
|
-
label: { "en": "Level" }
|
|
333
|
+
label: { "ja": "\u30EC\u30D9\u30EB", "en": "Level" }
|
|
270
334
|
},
|
|
271
335
|
permissions: {
|
|
272
|
-
label: { "en": "Permissions" }
|
|
336
|
+
label: { "ja": "\u6A29\u9650", "en": "Permissions" }
|
|
273
337
|
}
|
|
274
338
|
}
|
|
275
339
|
};
|
|
276
340
|
var baseRoleSchemas = {
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
341
|
+
console_org_id: import_zod4.z.string().max(36).optional().nullable(),
|
|
342
|
+
name: import_zod4.z.string().min(1).max(100),
|
|
343
|
+
slug: import_zod4.z.string().min(1).max(100),
|
|
344
|
+
description: import_zod4.z.string().optional().nullable(),
|
|
345
|
+
level: import_zod4.z.number().int()
|
|
281
346
|
};
|
|
282
|
-
var baseRoleCreateSchema =
|
|
347
|
+
var baseRoleCreateSchema = import_zod4.z.object({
|
|
348
|
+
console_org_id: baseRoleSchemas.console_org_id,
|
|
283
349
|
name: baseRoleSchemas.name,
|
|
284
350
|
slug: baseRoleSchemas.slug,
|
|
285
351
|
description: baseRoleSchemas.description,
|
|
@@ -307,22 +373,22 @@ var roleCreateSchema = baseRoleCreateSchema;
|
|
|
307
373
|
var roleUpdateSchema = baseRoleUpdateSchema;
|
|
308
374
|
|
|
309
375
|
// node_modules/@omnify-base/schemas/RolePermission.ts
|
|
310
|
-
var
|
|
376
|
+
var import_zod5 = require("zod");
|
|
311
377
|
var rolePermissionI18n = {
|
|
312
378
|
/** Model display name */
|
|
313
|
-
label: { "en": "Role Permission" },
|
|
379
|
+
label: { "ja": "\u30ED\u30FC\u30EB\u6A29\u9650", "en": "Role Permission" },
|
|
314
380
|
/** Field labels and placeholders */
|
|
315
381
|
fields: {
|
|
316
382
|
role: {
|
|
317
|
-
label: { "en": "Role" }
|
|
383
|
+
label: { "ja": "\u30ED\u30FC\u30EB", "en": "Role" }
|
|
318
384
|
},
|
|
319
385
|
permission: {
|
|
320
|
-
label: { "en": "Permission" }
|
|
386
|
+
label: { "ja": "\u6A29\u9650", "en": "Permission" }
|
|
321
387
|
}
|
|
322
388
|
}
|
|
323
389
|
};
|
|
324
390
|
var baseRolePermissionSchemas = {};
|
|
325
|
-
var baseRolePermissionCreateSchema =
|
|
391
|
+
var baseRolePermissionCreateSchema = import_zod5.z.object({});
|
|
326
392
|
var baseRolePermissionUpdateSchema = baseRolePermissionCreateSchema.partial();
|
|
327
393
|
function getRolePermissionLabel(locale) {
|
|
328
394
|
return rolePermissionI18n.label[locale] ?? rolePermissionI18n.label["en"] ?? "RolePermission";
|
|
@@ -344,78 +410,78 @@ var rolePermissionSchemas = { ...baseRolePermissionSchemas };
|
|
|
344
410
|
var rolePermissionCreateSchema = baseRolePermissionCreateSchema;
|
|
345
411
|
var rolePermissionUpdateSchema = baseRolePermissionUpdateSchema;
|
|
346
412
|
|
|
347
|
-
// node_modules/@omnify-base/schemas/
|
|
348
|
-
var
|
|
349
|
-
var
|
|
413
|
+
// node_modules/@omnify-base/schemas/TeamCache.ts
|
|
414
|
+
var import_zod6 = require("zod");
|
|
415
|
+
var teamCacheI18n = {
|
|
350
416
|
/** Model display name */
|
|
351
|
-
label: { "en": "Team" },
|
|
417
|
+
label: { "ja": "\u30C1\u30FC\u30E0\u30AD\u30E3\u30C3\u30B7\u30E5", "en": "Team Cache" },
|
|
352
418
|
/** Field labels and placeholders */
|
|
353
419
|
fields: {
|
|
354
420
|
console_team_id: {
|
|
355
|
-
label: { "en": "Console Team ID" }
|
|
421
|
+
label: { "ja": "Console Team ID", "en": "Console Team ID" }
|
|
356
422
|
},
|
|
357
423
|
console_org_id: {
|
|
358
|
-
label: { "en": "Console Organization ID" }
|
|
424
|
+
label: { "ja": "Console Organization ID", "en": "Console Organization ID" }
|
|
359
425
|
},
|
|
360
426
|
name: {
|
|
361
|
-
label: { "en": "Team Name" }
|
|
427
|
+
label: { "ja": "\u30C1\u30FC\u30E0\u540D", "en": "Team Name" }
|
|
362
428
|
}
|
|
363
429
|
}
|
|
364
430
|
};
|
|
365
|
-
var
|
|
366
|
-
console_team_id:
|
|
367
|
-
console_org_id:
|
|
368
|
-
name:
|
|
431
|
+
var baseTeamCacheSchemas = {
|
|
432
|
+
console_team_id: import_zod6.z.string(),
|
|
433
|
+
console_org_id: import_zod6.z.string(),
|
|
434
|
+
name: import_zod6.z.string().min(1).max(100)
|
|
369
435
|
};
|
|
370
|
-
var
|
|
371
|
-
console_team_id:
|
|
372
|
-
console_org_id:
|
|
373
|
-
name:
|
|
436
|
+
var baseTeamCacheCreateSchema = import_zod6.z.object({
|
|
437
|
+
console_team_id: baseTeamCacheSchemas.console_team_id,
|
|
438
|
+
console_org_id: baseTeamCacheSchemas.console_org_id,
|
|
439
|
+
name: baseTeamCacheSchemas.name
|
|
374
440
|
});
|
|
375
|
-
var
|
|
376
|
-
function
|
|
377
|
-
return
|
|
441
|
+
var baseTeamCacheUpdateSchema = baseTeamCacheCreateSchema.partial();
|
|
442
|
+
function getTeamCacheLabel(locale) {
|
|
443
|
+
return teamCacheI18n.label[locale] ?? teamCacheI18n.label["en"] ?? "TeamCache";
|
|
378
444
|
}
|
|
379
|
-
function
|
|
380
|
-
const fieldI18n =
|
|
445
|
+
function getTeamCacheFieldLabel(field, locale) {
|
|
446
|
+
const fieldI18n = teamCacheI18n.fields[field];
|
|
381
447
|
if (!fieldI18n) return field;
|
|
382
448
|
return fieldI18n.label[locale] ?? fieldI18n.label["en"] ?? field;
|
|
383
449
|
}
|
|
384
|
-
function
|
|
385
|
-
const fieldI18n =
|
|
450
|
+
function getTeamCacheFieldPlaceholder(field, locale) {
|
|
451
|
+
const fieldI18n = teamCacheI18n.fields[field];
|
|
386
452
|
if (!fieldI18n || !("placeholder" in fieldI18n)) return "";
|
|
387
453
|
const placeholder = fieldI18n.placeholder;
|
|
388
454
|
return placeholder[locale] ?? placeholder["en"] ?? "";
|
|
389
455
|
}
|
|
390
456
|
|
|
391
|
-
// src/schemas/
|
|
392
|
-
var
|
|
393
|
-
var
|
|
394
|
-
var
|
|
457
|
+
// src/schemas/TeamCache.ts
|
|
458
|
+
var teamCacheSchemas = { ...baseTeamCacheSchemas };
|
|
459
|
+
var teamCacheCreateSchema = baseTeamCacheCreateSchema;
|
|
460
|
+
var teamCacheUpdateSchema = baseTeamCacheUpdateSchema;
|
|
395
461
|
|
|
396
462
|
// node_modules/@omnify-base/schemas/TeamPermission.ts
|
|
397
|
-
var
|
|
463
|
+
var import_zod7 = require("zod");
|
|
398
464
|
var teamPermissionI18n = {
|
|
399
465
|
/** Model display name */
|
|
400
|
-
label: { "en": "Team Permission" },
|
|
466
|
+
label: { "ja": "\u30C1\u30FC\u30E0\u6A29\u9650", "en": "Team Permission" },
|
|
401
467
|
/** Field labels and placeholders */
|
|
402
468
|
fields: {
|
|
403
469
|
console_org_id: {
|
|
404
|
-
label: { "en": "Console Organization ID" }
|
|
470
|
+
label: { "ja": "Console Organization ID", "en": "Console Organization ID" }
|
|
405
471
|
},
|
|
406
472
|
console_team_id: {
|
|
407
|
-
label: { "en": "Console Team ID" }
|
|
473
|
+
label: { "ja": "Console Team ID", "en": "Console Team ID" }
|
|
408
474
|
},
|
|
409
475
|
permission: {
|
|
410
|
-
label: { "en": "Permission" }
|
|
476
|
+
label: { "ja": "\u6A29\u9650", "en": "Permission" }
|
|
411
477
|
}
|
|
412
478
|
}
|
|
413
479
|
};
|
|
414
480
|
var baseTeamPermissionSchemas = {
|
|
415
|
-
console_org_id:
|
|
416
|
-
console_team_id:
|
|
481
|
+
console_org_id: import_zod7.z.string(),
|
|
482
|
+
console_team_id: import_zod7.z.string()
|
|
417
483
|
};
|
|
418
|
-
var baseTeamPermissionCreateSchema =
|
|
484
|
+
var baseTeamPermissionCreateSchema = import_zod7.z.object({
|
|
419
485
|
console_org_id: baseTeamPermissionSchemas.console_org_id,
|
|
420
486
|
console_team_id: baseTeamPermissionSchemas.console_team_id
|
|
421
487
|
});
|
|
@@ -440,85 +506,93 @@ var teamPermissionSchemas = { ...baseTeamPermissionSchemas };
|
|
|
440
506
|
var teamPermissionCreateSchema = baseTeamPermissionCreateSchema;
|
|
441
507
|
var teamPermissionUpdateSchema = baseTeamPermissionUpdateSchema;
|
|
442
508
|
|
|
443
|
-
// node_modules/@omnify-base/schemas/
|
|
444
|
-
var
|
|
445
|
-
var
|
|
509
|
+
// node_modules/@omnify-base/schemas/UserCache.ts
|
|
510
|
+
var import_zod8 = require("zod");
|
|
511
|
+
var userCacheI18n = {
|
|
446
512
|
/** Model display name */
|
|
447
|
-
label: { "en": "User" },
|
|
513
|
+
label: { "ja": "\u30E6\u30FC\u30B6\u30FC\u30AD\u30E3\u30C3\u30B7\u30E5", "en": "User Cache" },
|
|
448
514
|
/** Field labels and placeholders */
|
|
449
515
|
fields: {
|
|
450
516
|
name: {
|
|
451
|
-
label: { "en": "Name" }
|
|
517
|
+
label: { "ja": "\u540D\u524D", "en": "Name" }
|
|
452
518
|
},
|
|
453
519
|
email: {
|
|
454
|
-
label: { "en": "Email" }
|
|
520
|
+
label: { "ja": "\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9", "en": "Email" }
|
|
455
521
|
},
|
|
456
522
|
console_user_id: {
|
|
457
|
-
label: { "en": "Console User ID" }
|
|
523
|
+
label: { "ja": "Console User ID", "en": "Console User ID" }
|
|
524
|
+
},
|
|
525
|
+
console_org_id: {
|
|
526
|
+
label: { "ja": "\u6240\u5C5E\u7D44\u7E54ID", "en": "Organization ID" }
|
|
458
527
|
},
|
|
459
528
|
console_access_token: {
|
|
460
|
-
label: { "en": "Console Access Token" }
|
|
529
|
+
label: { "ja": "Console Access Token", "en": "Console Access Token" }
|
|
461
530
|
},
|
|
462
531
|
console_refresh_token: {
|
|
463
|
-
label: { "en": "Console Refresh Token" }
|
|
532
|
+
label: { "ja": "Console Refresh Token", "en": "Console Refresh Token" }
|
|
464
533
|
},
|
|
465
534
|
console_token_expires_at: {
|
|
466
|
-
label: { "en": "Console Token Expiry" }
|
|
535
|
+
label: { "ja": "Console Token\u6709\u52B9\u671F\u9650", "en": "Console Token Expiry" }
|
|
467
536
|
},
|
|
468
537
|
roles: {
|
|
469
|
-
label: { "en": "Roles" }
|
|
538
|
+
label: { "ja": "\u30ED\u30FC\u30EB", "en": "Roles" }
|
|
470
539
|
}
|
|
471
540
|
}
|
|
472
541
|
};
|
|
473
|
-
var
|
|
474
|
-
name:
|
|
475
|
-
email:
|
|
476
|
-
console_user_id:
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
542
|
+
var baseUserCacheSchemas = {
|
|
543
|
+
name: import_zod8.z.string().min(1),
|
|
544
|
+
email: import_zod8.z.string().min(1),
|
|
545
|
+
console_user_id: import_zod8.z.string().optional().nullable(),
|
|
546
|
+
console_org_id: import_zod8.z.string().optional().nullable(),
|
|
547
|
+
console_access_token: import_zod8.z.string().optional().nullable(),
|
|
548
|
+
console_refresh_token: import_zod8.z.string().optional().nullable(),
|
|
549
|
+
console_token_expires_at: import_zod8.z.string().datetime({ offset: true }).optional().nullable()
|
|
480
550
|
};
|
|
481
|
-
var
|
|
482
|
-
name:
|
|
483
|
-
email:
|
|
484
|
-
console_user_id:
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
551
|
+
var baseUserCacheCreateSchema = import_zod8.z.object({
|
|
552
|
+
name: baseUserCacheSchemas.name,
|
|
553
|
+
email: baseUserCacheSchemas.email,
|
|
554
|
+
console_user_id: baseUserCacheSchemas.console_user_id,
|
|
555
|
+
console_org_id: baseUserCacheSchemas.console_org_id,
|
|
556
|
+
console_access_token: baseUserCacheSchemas.console_access_token,
|
|
557
|
+
console_refresh_token: baseUserCacheSchemas.console_refresh_token,
|
|
558
|
+
console_token_expires_at: baseUserCacheSchemas.console_token_expires_at
|
|
488
559
|
});
|
|
489
|
-
var
|
|
490
|
-
function
|
|
491
|
-
return
|
|
560
|
+
var baseUserCacheUpdateSchema = baseUserCacheCreateSchema.partial();
|
|
561
|
+
function getUserCacheLabel(locale) {
|
|
562
|
+
return userCacheI18n.label[locale] ?? userCacheI18n.label["en"] ?? "UserCache";
|
|
492
563
|
}
|
|
493
|
-
function
|
|
494
|
-
const fieldI18n =
|
|
564
|
+
function getUserCacheFieldLabel(field, locale) {
|
|
565
|
+
const fieldI18n = userCacheI18n.fields[field];
|
|
495
566
|
if (!fieldI18n) return field;
|
|
496
567
|
return fieldI18n.label[locale] ?? fieldI18n.label["en"] ?? field;
|
|
497
568
|
}
|
|
498
|
-
function
|
|
499
|
-
const fieldI18n =
|
|
569
|
+
function getUserCacheFieldPlaceholder(field, locale) {
|
|
570
|
+
const fieldI18n = userCacheI18n.fields[field];
|
|
500
571
|
if (!fieldI18n || !("placeholder" in fieldI18n)) return "";
|
|
501
572
|
const placeholder = fieldI18n.placeholder;
|
|
502
573
|
return placeholder[locale] ?? placeholder["en"] ?? "";
|
|
503
574
|
}
|
|
504
575
|
|
|
505
|
-
// src/schemas/
|
|
506
|
-
var
|
|
507
|
-
var
|
|
508
|
-
var
|
|
576
|
+
// src/schemas/UserCache.ts
|
|
577
|
+
var userCacheSchemas = { ...baseUserCacheSchemas };
|
|
578
|
+
var userCacheCreateSchema = baseUserCacheCreateSchema;
|
|
579
|
+
var userCacheUpdateSchema = baseUserCacheUpdateSchema;
|
|
509
580
|
// Annotate the CommonJS export names for ESM import in node:
|
|
510
581
|
0 && (module.exports = {
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
582
|
+
branchCacheCreateSchema,
|
|
583
|
+
branchCacheI18n,
|
|
584
|
+
branchCacheSchemas,
|
|
585
|
+
branchCacheUpdateSchema,
|
|
515
586
|
defaultLocale,
|
|
516
587
|
fallbackLocale,
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
588
|
+
getBranchCacheFieldLabel,
|
|
589
|
+
getBranchCacheFieldPlaceholder,
|
|
590
|
+
getBranchCacheLabel,
|
|
520
591
|
getMessage,
|
|
521
592
|
getMessages,
|
|
593
|
+
getOrganizationCacheFieldLabel,
|
|
594
|
+
getOrganizationCacheFieldPlaceholder,
|
|
595
|
+
getOrganizationCacheLabel,
|
|
522
596
|
getPermissionFieldLabel,
|
|
523
597
|
getPermissionFieldPlaceholder,
|
|
524
598
|
getPermissionLabel,
|
|
@@ -528,15 +602,19 @@ var userUpdateSchema = baseUserUpdateSchema;
|
|
|
528
602
|
getRolePermissionFieldLabel,
|
|
529
603
|
getRolePermissionFieldPlaceholder,
|
|
530
604
|
getRolePermissionLabel,
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
605
|
+
getTeamCacheFieldLabel,
|
|
606
|
+
getTeamCacheFieldPlaceholder,
|
|
607
|
+
getTeamCacheLabel,
|
|
534
608
|
getTeamPermissionFieldLabel,
|
|
535
609
|
getTeamPermissionFieldPlaceholder,
|
|
536
610
|
getTeamPermissionLabel,
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
611
|
+
getUserCacheFieldLabel,
|
|
612
|
+
getUserCacheFieldPlaceholder,
|
|
613
|
+
getUserCacheLabel,
|
|
614
|
+
organizationCacheCreateSchema,
|
|
615
|
+
organizationCacheI18n,
|
|
616
|
+
organizationCacheSchemas,
|
|
617
|
+
organizationCacheUpdateSchema,
|
|
540
618
|
permissionCreateSchema,
|
|
541
619
|
permissionI18n,
|
|
542
620
|
permissionSchemas,
|
|
@@ -550,18 +628,18 @@ var userUpdateSchema = baseUserUpdateSchema;
|
|
|
550
628
|
roleSchemas,
|
|
551
629
|
roleUpdateSchema,
|
|
552
630
|
supportedLocales,
|
|
553
|
-
|
|
554
|
-
|
|
631
|
+
teamCacheCreateSchema,
|
|
632
|
+
teamCacheI18n,
|
|
633
|
+
teamCacheSchemas,
|
|
634
|
+
teamCacheUpdateSchema,
|
|
555
635
|
teamPermissionCreateSchema,
|
|
556
636
|
teamPermissionI18n,
|
|
557
637
|
teamPermissionSchemas,
|
|
558
638
|
teamPermissionUpdateSchema,
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
userSchemas,
|
|
564
|
-
userUpdateSchema,
|
|
639
|
+
userCacheCreateSchema,
|
|
640
|
+
userCacheI18n,
|
|
641
|
+
userCacheSchemas,
|
|
642
|
+
userCacheUpdateSchema,
|
|
565
643
|
validationMessages
|
|
566
644
|
});
|
|
567
645
|
//# sourceMappingURL=index.cjs.map
|