@famgia/omnify-react-sso 2.2.2 → 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.
@@ -13,7 +13,7 @@ import { z } from 'zod';
13
13
  import type { DateTimeString } from './common';
14
14
 
15
15
  /**
16
- * Branch
16
+ * 支店
17
17
  */
18
18
  export interface Branch {
19
19
  /** Primary key */
@@ -22,13 +22,13 @@ export interface Branch {
22
22
  console_branch_id: unknown;
23
23
  /** Console Organization ID */
24
24
  console_org_id: unknown;
25
- /** Branch Code */
25
+ /** 支店コード */
26
26
  code: string;
27
- /** Branch Name */
27
+ /** 支店名 */
28
28
  name: string;
29
- /** Is Headquarters */
29
+ /** 本社 */
30
30
  is_headquarters: boolean;
31
- /** Active */
31
+ /** 有効 */
32
32
  is_active: boolean;
33
33
  /** Creation timestamp */
34
34
  created_at?: DateTimeString;
@@ -48,26 +48,26 @@ export interface Branch {
48
48
  */
49
49
  export const branchI18n = {
50
50
  /** Model display name */
51
- label: {"en":"Branch"},
51
+ label: {"ja":"支店","en":"Branch"},
52
52
  /** Field labels and placeholders */
53
53
  fields: {
54
54
  console_branch_id: {
55
- label: {"en":"Console Branch ID"},
55
+ label: {"ja":"Console Branch ID","en":"Console Branch ID"},
56
56
  },
57
57
  console_org_id: {
58
- label: {"en":"Console Organization ID"},
58
+ label: {"ja":"Console Organization ID","en":"Console Organization ID"},
59
59
  },
60
60
  code: {
61
- label: {"en":"Branch Code"},
61
+ label: {"ja":"支店コード","en":"Branch Code"},
62
62
  },
63
63
  name: {
64
- label: {"en":"Branch Name"},
64
+ label: {"ja":"支店名","en":"Branch Name"},
65
65
  },
66
66
  is_headquarters: {
67
- label: {"en":"Is Headquarters"},
67
+ label: {"ja":"本社","en":"Is Headquarters"},
68
68
  },
69
69
  is_active: {
70
- label: {"en":"Active"},
70
+ label: {"ja":"有効","en":"Active"},
71
71
  },
72
72
  },
73
73
  } as const;
@@ -13,7 +13,7 @@ import { z } from 'zod';
13
13
  import type { DateTimeString } from './common';
14
14
 
15
15
  /**
16
- * Branch Cache
16
+ * 支店キャッシュ
17
17
  */
18
18
  export interface BranchCache {
19
19
  /** Primary key */
@@ -22,13 +22,13 @@ export interface BranchCache {
22
22
  console_branch_id: unknown;
23
23
  /** Console Organization ID */
24
24
  console_org_id: unknown;
25
- /** Branch Code */
25
+ /** 支店コード */
26
26
  code: string;
27
- /** Branch Name */
27
+ /** 支店名 */
28
28
  name: string;
29
- /** Is Headquarters */
29
+ /** 本社 */
30
30
  is_headquarters: boolean;
31
- /** Active */
31
+ /** 有効 */
32
32
  is_active: boolean;
33
33
  /** Creation timestamp */
34
34
  created_at?: DateTimeString;
@@ -48,26 +48,26 @@ export interface BranchCache {
48
48
  */
49
49
  export const branchCacheI18n = {
50
50
  /** Model display name */
51
- label: {"en":"Branch Cache"},
51
+ label: {"ja":"支店キャッシュ","en":"Branch Cache"},
52
52
  /** Field labels and placeholders */
53
53
  fields: {
54
54
  console_branch_id: {
55
- label: {"en":"Console Branch ID"},
55
+ label: {"ja":"Console Branch ID","en":"Console Branch ID"},
56
56
  },
57
57
  console_org_id: {
58
- label: {"en":"Console Organization ID"},
58
+ label: {"ja":"Console Organization ID","en":"Console Organization ID"},
59
59
  },
60
60
  code: {
61
- label: {"en":"Branch Code"},
61
+ label: {"ja":"支店コード","en":"Branch Code"},
62
62
  },
63
63
  name: {
64
- label: {"en":"Branch Name"},
64
+ label: {"ja":"支店名","en":"Branch Name"},
65
65
  },
66
66
  is_headquarters: {
67
- label: {"en":"Is Headquarters"},
67
+ label: {"ja":"本社","en":"Is Headquarters"},
68
68
  },
69
69
  is_active: {
70
- label: {"en":"Active"},
70
+ label: {"ja":"有効","en":"Active"},
71
71
  },
72
72
  },
73
73
  } as const;
@@ -13,18 +13,18 @@ import { z } from 'zod';
13
13
  import type { DateTimeString } from './common';
14
14
 
15
15
  /**
16
- * Organization Cache
16
+ * 組織キャッシュ
17
17
  */
18
18
  export interface OrganizationCache {
19
19
  /** Primary key */
20
20
  id: string;
21
21
  /** Console Organization ID */
22
22
  console_org_id: unknown;
23
- /** Organization Name */
23
+ /** 組織名 */
24
24
  name: string;
25
- /** Organization Code */
25
+ /** 組織コード */
26
26
  code: string;
27
- /** Active */
27
+ /** 有効 */
28
28
  is_active: boolean;
29
29
  /** Creation timestamp */
30
30
  created_at?: DateTimeString;
@@ -44,20 +44,20 @@ export interface OrganizationCache {
44
44
  */
45
45
  export const organizationCacheI18n = {
46
46
  /** Model display name */
47
- label: {"en":"Organization Cache"},
47
+ label: {"ja":"組織キャッシュ","en":"Organization Cache"},
48
48
  /** Field labels and placeholders */
49
49
  fields: {
50
50
  console_org_id: {
51
- label: {"en":"Console Organization ID"},
51
+ label: {"ja":"Console Organization ID","en":"Console Organization ID"},
52
52
  },
53
53
  name: {
54
- label: {"en":"Organization Name"},
54
+ label: {"ja":"組織名","en":"Organization Name"},
55
55
  },
56
56
  code: {
57
- label: {"en":"Organization Code"},
57
+ label: {"ja":"組織コード","en":"Organization Code"},
58
58
  },
59
59
  is_active: {
60
- label: {"en":"Active"},
60
+ label: {"ja":"有効","en":"Active"},
61
61
  },
62
62
  },
63
63
  } as const;
@@ -14,18 +14,18 @@ import type { DateTimeString } from './common';
14
14
  import type { Role } from './Role';
15
15
 
16
16
  /**
17
- * Permission
17
+ * 権限
18
18
  */
19
19
  export interface Permission {
20
20
  /** Primary key */
21
21
  id: string;
22
- /** Permission Name */
22
+ /** 権限名 */
23
23
  name: string;
24
- /** Slug */
24
+ /** スラッグ */
25
25
  slug: string;
26
- /** Group */
26
+ /** グループ */
27
27
  group?: string;
28
- /** Roles */
28
+ /** ロール */
29
29
  roles: Role[];
30
30
  /** Creation timestamp */
31
31
  created_at?: DateTimeString;
@@ -43,20 +43,20 @@ export interface Permission {
43
43
  */
44
44
  export const permissionI18n = {
45
45
  /** Model display name */
46
- label: {"en":"Permission"},
46
+ label: {"ja":"権限","en":"Permission"},
47
47
  /** Field labels and placeholders */
48
48
  fields: {
49
49
  name: {
50
- label: {"en":"Permission Name"},
50
+ label: {"ja":"権限名","en":"Permission Name"},
51
51
  },
52
52
  slug: {
53
- label: {"en":"Slug"},
53
+ label: {"ja":"スラッグ","en":"Slug"},
54
54
  },
55
55
  group: {
56
- label: {"en":"Group"},
56
+ label: {"ja":"グループ","en":"Group"},
57
57
  },
58
58
  roles: {
59
- label: {"en":"Roles"},
59
+ label: {"ja":"ロール","en":"Roles"},
60
60
  },
61
61
  },
62
62
  } as const;
@@ -14,20 +14,22 @@ import type { DateTimeString } from './common';
14
14
  import type { Permission } from './Permission';
15
15
 
16
16
  /**
17
- * Role
17
+ * ロール
18
18
  */
19
19
  export interface Role {
20
20
  /** Primary key */
21
21
  id: string;
22
- /** Role Name */
22
+ /** 組織ID */
23
+ console_org_id?: string;
24
+ /** ロール名 */
23
25
  name: string;
24
- /** Slug */
26
+ /** スラッグ */
25
27
  slug: string;
26
- /** Description */
28
+ /** 説明 */
27
29
  description?: string;
28
- /** Level */
30
+ /** レベル */
29
31
  level: number;
30
- /** Permissions */
32
+ /** 権限 */
31
33
  permissions: Permission[];
32
34
  /** Creation timestamp */
33
35
  created_at?: DateTimeString;
@@ -45,23 +47,26 @@ export interface Role {
45
47
  */
46
48
  export const roleI18n = {
47
49
  /** Model display name */
48
- label: {"en":"Role"},
50
+ label: {"ja":"ロール","en":"Role"},
49
51
  /** Field labels and placeholders */
50
52
  fields: {
53
+ console_org_id: {
54
+ label: {"ja":"組織ID","en":"Organization ID"},
55
+ },
51
56
  name: {
52
- label: {"en":"Role Name"},
57
+ label: {"ja":"ロール名","en":"Role Name"},
53
58
  },
54
59
  slug: {
55
- label: {"en":"Slug"},
60
+ label: {"ja":"スラッグ","en":"Slug"},
56
61
  },
57
62
  description: {
58
- label: {"en":"Description"},
63
+ label: {"ja":"説明","en":"Description"},
59
64
  },
60
65
  level: {
61
- label: {"en":"Level"},
66
+ label: {"ja":"レベル","en":"Level"},
62
67
  },
63
68
  permissions: {
64
- label: {"en":"Permissions"},
69
+ label: {"ja":"権限","en":"Permissions"},
65
70
  },
66
71
  },
67
72
  } as const;
@@ -72,6 +77,7 @@ export const roleI18n = {
72
77
 
73
78
  /** Field schemas for Role */
74
79
  export const baseRoleSchemas = {
80
+ console_org_id: z.string().max(36).optional().nullable(),
75
81
  name: z.string().min(1).max(100),
76
82
  slug: z.string().min(1).max(100),
77
83
  description: z.string().optional().nullable(),
@@ -80,6 +86,7 @@ export const baseRoleSchemas = {
80
86
 
81
87
  /** Create schema for Role (POST requests) */
82
88
  export const baseRoleCreateSchema = z.object({
89
+ console_org_id: baseRoleSchemas.console_org_id,
83
90
  name: baseRoleSchemas.name,
84
91
  slug: baseRoleSchemas.slug,
85
92
  description: baseRoleSchemas.description,
@@ -15,12 +15,12 @@ import type { Permission } from './Permission';
15
15
  import type { Role } from './Role';
16
16
 
17
17
  /**
18
- * Role Permission
18
+ * ロール権限
19
19
  */
20
20
  export interface RolePermission {
21
- /** Role */
21
+ /** ロール */
22
22
  role: Role;
23
- /** Permission */
23
+ /** 権限 */
24
24
  permission: Permission;
25
25
  /** Creation timestamp */
26
26
  created_at?: DateTimeString;
@@ -38,14 +38,14 @@ export interface RolePermission {
38
38
  */
39
39
  export const rolePermissionI18n = {
40
40
  /** Model display name */
41
- label: {"en":"Role Permission"},
41
+ label: {"ja":"ロール権限","en":"Role Permission"},
42
42
  /** Field labels and placeholders */
43
43
  fields: {
44
44
  role: {
45
- label: {"en":"Role"},
45
+ label: {"ja":"ロール","en":"Role"},
46
46
  },
47
47
  permission: {
48
- label: {"en":"Permission"},
48
+ label: {"ja":"権限","en":"Permission"},
49
49
  },
50
50
  },
51
51
  } as const;
@@ -13,7 +13,7 @@ import { z } from 'zod';
13
13
  import type { DateTimeString } from './common';
14
14
 
15
15
  /**
16
- * Team
16
+ * チーム
17
17
  */
18
18
  export interface Team {
19
19
  /** Primary key */
@@ -22,7 +22,7 @@ export interface Team {
22
22
  console_team_id: unknown;
23
23
  /** Console Organization ID */
24
24
  console_org_id: unknown;
25
- /** Team Name */
25
+ /** チーム名 */
26
26
  name: string;
27
27
  /** Creation timestamp */
28
28
  created_at?: DateTimeString;
@@ -42,17 +42,17 @@ export interface Team {
42
42
  */
43
43
  export const teamI18n = {
44
44
  /** Model display name */
45
- label: {"en":"Team"},
45
+ label: {"ja":"チーム","en":"Team"},
46
46
  /** Field labels and placeholders */
47
47
  fields: {
48
48
  console_team_id: {
49
- label: {"en":"Console Team ID"},
49
+ label: {"ja":"Console Team ID","en":"Console Team ID"},
50
50
  },
51
51
  console_org_id: {
52
- label: {"en":"Console Organization ID"},
52
+ label: {"ja":"Console Organization ID","en":"Console Organization ID"},
53
53
  },
54
54
  name: {
55
- label: {"en":"Team Name"},
55
+ label: {"ja":"チーム名","en":"Team Name"},
56
56
  },
57
57
  },
58
58
  } as const;
@@ -13,7 +13,7 @@ import { z } from 'zod';
13
13
  import type { DateTimeString } from './common';
14
14
 
15
15
  /**
16
- * Team Cache
16
+ * チームキャッシュ
17
17
  */
18
18
  export interface TeamCache {
19
19
  /** Primary key */
@@ -22,7 +22,7 @@ export interface TeamCache {
22
22
  console_team_id: unknown;
23
23
  /** Console Organization ID */
24
24
  console_org_id: unknown;
25
- /** Team Name */
25
+ /** チーム名 */
26
26
  name: string;
27
27
  /** Creation timestamp */
28
28
  created_at?: DateTimeString;
@@ -42,17 +42,17 @@ export interface TeamCache {
42
42
  */
43
43
  export const teamCacheI18n = {
44
44
  /** Model display name */
45
- label: {"en":"Team Cache"},
45
+ label: {"ja":"チームキャッシュ","en":"Team Cache"},
46
46
  /** Field labels and placeholders */
47
47
  fields: {
48
48
  console_team_id: {
49
- label: {"en":"Console Team ID"},
49
+ label: {"ja":"Console Team ID","en":"Console Team ID"},
50
50
  },
51
51
  console_org_id: {
52
- label: {"en":"Console Organization ID"},
52
+ label: {"ja":"Console Organization ID","en":"Console Organization ID"},
53
53
  },
54
54
  name: {
55
- label: {"en":"Team Name"},
55
+ label: {"ja":"チーム名","en":"Team Name"},
56
56
  },
57
57
  },
58
58
  } as const;
@@ -14,7 +14,7 @@ import type { DateTimeString } from './common';
14
14
  import type { Permission } from './Permission';
15
15
 
16
16
  /**
17
- * Team Permission
17
+ * チーム権限
18
18
  */
19
19
  export interface TeamPermission {
20
20
  /** Primary key */
@@ -23,7 +23,7 @@ export interface TeamPermission {
23
23
  console_org_id: unknown;
24
24
  /** Console Team ID */
25
25
  console_team_id: unknown;
26
- /** Permission */
26
+ /** 権限 */
27
27
  permission: Permission;
28
28
  /** Creation timestamp */
29
29
  created_at?: DateTimeString;
@@ -43,17 +43,17 @@ export interface TeamPermission {
43
43
  */
44
44
  export const teamPermissionI18n = {
45
45
  /** Model display name */
46
- label: {"en":"Team Permission"},
46
+ label: {"ja":"チーム権限","en":"Team Permission"},
47
47
  /** Field labels and placeholders */
48
48
  fields: {
49
49
  console_org_id: {
50
- label: {"en":"Console Organization ID"},
50
+ label: {"ja":"Console Organization ID","en":"Console Organization ID"},
51
51
  },
52
52
  console_team_id: {
53
- label: {"en":"Console Team ID"},
53
+ label: {"ja":"Console Team ID","en":"Console Team ID"},
54
54
  },
55
55
  permission: {
56
- label: {"en":"Permission"},
56
+ label: {"ja":"権限","en":"Permission"},
57
57
  },
58
58
  },
59
59
  } as const;
@@ -14,14 +14,14 @@ import type { DateTimeString } from './common';
14
14
  import type { Role } from './Role';
15
15
 
16
16
  /**
17
- * User
17
+ * ユーザー
18
18
  */
19
19
  export interface User {
20
20
  /** Primary key */
21
21
  id: string;
22
- /** Name */
22
+ /** 名前 */
23
23
  name: string;
24
- /** Email */
24
+ /** メールアドレス */
25
25
  email: string;
26
26
  /** Console User ID */
27
27
  console_user_id?: unknown;
@@ -29,9 +29,9 @@ export interface User {
29
29
  console_access_token?: string;
30
30
  /** Console Refresh Token */
31
31
  console_refresh_token?: string;
32
- /** Console Token Expiry */
32
+ /** Console Token有効期限 */
33
33
  console_token_expires_at?: DateTimeString;
34
- /** Roles */
34
+ /** ロール */
35
35
  roles: Role[];
36
36
  /** Creation timestamp */
37
37
  created_at?: DateTimeString;
@@ -49,29 +49,29 @@ export interface User {
49
49
  */
50
50
  export const userI18n = {
51
51
  /** Model display name */
52
- label: {"en":"User"},
52
+ label: {"ja":"ユーザー","en":"User"},
53
53
  /** Field labels and placeholders */
54
54
  fields: {
55
55
  name: {
56
- label: {"en":"Name"},
56
+ label: {"ja":"名前","en":"Name"},
57
57
  },
58
58
  email: {
59
- label: {"en":"Email"},
59
+ label: {"ja":"メールアドレス","en":"Email"},
60
60
  },
61
61
  console_user_id: {
62
- label: {"en":"Console User ID"},
62
+ label: {"ja":"Console User ID","en":"Console User ID"},
63
63
  },
64
64
  console_access_token: {
65
- label: {"en":"Console Access Token"},
65
+ label: {"ja":"Console Access Token","en":"Console Access Token"},
66
66
  },
67
67
  console_refresh_token: {
68
- label: {"en":"Console Refresh Token"},
68
+ label: {"ja":"Console Refresh Token","en":"Console Refresh Token"},
69
69
  },
70
70
  console_token_expires_at: {
71
- label: {"en":"Console Token Expiry"},
71
+ label: {"ja":"Console Token有効期限","en":"Console Token Expiry"},
72
72
  },
73
73
  roles: {
74
- label: {"en":"Roles"},
74
+ label: {"ja":"ロール","en":"Roles"},
75
75
  },
76
76
  },
77
77
  } as const;
@@ -14,24 +14,26 @@ import type { DateTimeString } from './common';
14
14
  import type { Role } from './Role';
15
15
 
16
16
  /**
17
- * User Cache
17
+ * ユーザーキャッシュ
18
18
  */
19
19
  export interface UserCache {
20
20
  /** Primary key */
21
21
  id: string;
22
- /** Name */
22
+ /** 名前 */
23
23
  name: string;
24
- /** Email */
24
+ /** メールアドレス */
25
25
  email: string;
26
26
  /** Console User ID */
27
27
  console_user_id?: unknown;
28
+ /** 所属組織ID */
29
+ console_org_id?: unknown;
28
30
  /** Console Access Token */
29
31
  console_access_token?: string;
30
32
  /** Console Refresh Token */
31
33
  console_refresh_token?: string;
32
- /** Console Token Expiry */
34
+ /** Console Token有効期限 */
33
35
  console_token_expires_at?: DateTimeString;
34
- /** Roles */
36
+ /** ロール */
35
37
  roles: Role[];
36
38
  /** Creation timestamp */
37
39
  created_at?: DateTimeString;
@@ -49,29 +51,32 @@ export interface UserCache {
49
51
  */
50
52
  export const userCacheI18n = {
51
53
  /** Model display name */
52
- label: {"en":"User Cache"},
54
+ label: {"ja":"ユーザーキャッシュ","en":"User Cache"},
53
55
  /** Field labels and placeholders */
54
56
  fields: {
55
57
  name: {
56
- label: {"en":"Name"},
58
+ label: {"ja":"名前","en":"Name"},
57
59
  },
58
60
  email: {
59
- label: {"en":"Email"},
61
+ label: {"ja":"メールアドレス","en":"Email"},
60
62
  },
61
63
  console_user_id: {
62
- label: {"en":"Console User ID"},
64
+ label: {"ja":"Console User ID","en":"Console User ID"},
65
+ },
66
+ console_org_id: {
67
+ label: {"ja":"所属組織ID","en":"Organization ID"},
63
68
  },
64
69
  console_access_token: {
65
- label: {"en":"Console Access Token"},
70
+ label: {"ja":"Console Access Token","en":"Console Access Token"},
66
71
  },
67
72
  console_refresh_token: {
68
- label: {"en":"Console Refresh Token"},
73
+ label: {"ja":"Console Refresh Token","en":"Console Refresh Token"},
69
74
  },
70
75
  console_token_expires_at: {
71
- label: {"en":"Console Token Expiry"},
76
+ label: {"ja":"Console Token有効期限","en":"Console Token Expiry"},
72
77
  },
73
78
  roles: {
74
- label: {"en":"Roles"},
79
+ label: {"ja":"ロール","en":"Roles"},
75
80
  },
76
81
  },
77
82
  } as const;
@@ -85,6 +90,7 @@ export const baseUserCacheSchemas = {
85
90
  name: z.string().min(1),
86
91
  email: z.string().min(1),
87
92
  console_user_id: z.string().optional().nullable(),
93
+ console_org_id: z.string().optional().nullable(),
88
94
  console_access_token: z.string().optional().nullable(),
89
95
  console_refresh_token: z.string().optional().nullable(),
90
96
  console_token_expires_at: z.string().datetime({ offset: true }).optional().nullable(),
@@ -95,6 +101,7 @@ export const baseUserCacheCreateSchema = z.object({
95
101
  name: baseUserCacheSchemas.name,
96
102
  email: baseUserCacheSchemas.email,
97
103
  console_user_id: baseUserCacheSchemas.console_user_id,
104
+ console_org_id: baseUserCacheSchemas.console_org_id,
98
105
  console_access_token: baseUserCacheSchemas.console_access_token,
99
106
  console_refresh_token: baseUserCacheSchemas.console_refresh_token,
100
107
  console_token_expires_at: baseUserCacheSchemas.console_token_expires_at,