@kickflow/mcp-server 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/kickflow-api/generated/api-definitions.js +817 -817
- package/dist/kickflow-api/generated/api-definitions.js.map +1 -1
- package/dist/kickflow-api/generated/audit-log/audit-log.zod.d.ts +17 -17
- package/dist/kickflow-api/generated/audit-log/audit-log.zod.js +90 -42
- package/dist/kickflow-api/generated/audit-log/audit-log.zod.js.map +1 -1
- package/dist/kickflow-api/generated/category/category.zod.d.ts +9 -9
- package/dist/kickflow-api/generated/category/category.zod.js +50 -31
- package/dist/kickflow-api/generated/category/category.zod.js.map +1 -1
- package/dist/kickflow-api/generated/comment/comment.zod.d.ts +67 -67
- package/dist/kickflow-api/generated/comment/comment.zod.js +492 -247
- package/dist/kickflow-api/generated/comment/comment.zod.js.map +1 -1
- package/dist/kickflow-api/generated/file/file.zod.d.ts +4 -4
- package/dist/kickflow-api/generated/file/file.zod.js +13 -13
- package/dist/kickflow-api/generated/file/file.zod.js.map +1 -1
- package/dist/kickflow-api/generated/folder/folder.zod.d.ts +56 -56
- package/dist/kickflow-api/generated/folder/folder.zod.js +374 -179
- package/dist/kickflow-api/generated/folder/folder.zod.js.map +1 -1
- package/dist/kickflow-api/generated/general-master/general-master.zod.d.ts +24 -24
- package/dist/kickflow-api/generated/general-master/general-master.zod.js +607 -267
- package/dist/kickflow-api/generated/general-master/general-master.zod.js.map +1 -1
- package/dist/kickflow-api/generated/grade/grade.zod.d.ts +17 -17
- package/dist/kickflow-api/generated/grade/grade.zod.js +157 -59
- package/dist/kickflow-api/generated/grade/grade.zod.js.map +1 -1
- package/dist/kickflow-api/generated/kickflowRESTAPIV1.js +1 -6
- package/dist/kickflow-api/generated/kickflowRESTAPIV1.js.map +1 -1
- package/dist/kickflow-api/generated/kickflowRESTAPIV1.schemas.d.ts +1282 -1715
- package/dist/kickflow-api/generated/kickflowRESTAPIV1.schemas.js +44 -105
- package/dist/kickflow-api/generated/kickflowRESTAPIV1.schemas.js.map +1 -1
- package/dist/kickflow-api/generated/organization-chart/organization-chart.zod.d.ts +20 -20
- package/dist/kickflow-api/generated/organization-chart/organization-chart.zod.js +189 -116
- package/dist/kickflow-api/generated/organization-chart/organization-chart.zod.js.map +1 -1
- package/dist/kickflow-api/generated/proxy-applicant/proxy-applicant.zod.d.ts +82 -82
- package/dist/kickflow-api/generated/proxy-applicant/proxy-applicant.zod.js +670 -286
- package/dist/kickflow-api/generated/proxy-applicant/proxy-applicant.zod.js.map +1 -1
- package/dist/kickflow-api/generated/proxy-approver/proxy-approver.zod.d.ts +82 -82
- package/dist/kickflow-api/generated/proxy-approver/proxy-approver.zod.js +670 -286
- package/dist/kickflow-api/generated/proxy-approver/proxy-approver.zod.js.map +1 -1
- package/dist/kickflow-api/generated/role/role.zod.d.ts +69 -69
- package/dist/kickflow-api/generated/role/role.zod.js +753 -281
- package/dist/kickflow-api/generated/role/role.zod.js.map +1 -1
- package/dist/kickflow-api/generated/route/route.zod.d.ts +96 -96
- package/dist/kickflow-api/generated/route/route.zod.js +795 -312
- package/dist/kickflow-api/generated/route/route.zod.js.map +1 -1
- package/dist/kickflow-api/generated/team/team.zod.d.ts +123 -123
- package/dist/kickflow-api/generated/team/team.zod.js +775 -373
- package/dist/kickflow-api/generated/team/team.zod.js.map +1 -1
- package/dist/kickflow-api/generated/ticket/ticket.zod.d.ts +9012 -9010
- package/dist/kickflow-api/generated/ticket/ticket.zod.js +130998 -41639
- package/dist/kickflow-api/generated/ticket/ticket.zod.js.map +1 -1
- package/dist/kickflow-api/generated/user/user.zod.d.ts +98 -98
- package/dist/kickflow-api/generated/user/user.zod.js +593 -291
- package/dist/kickflow-api/generated/user/user.zod.js.map +1 -1
- package/dist/kickflow-api/generated/workflow/workflow.zod.d.ts +178 -178
- package/dist/kickflow-api/generated/workflow/workflow.zod.js +2384 -810
- package/dist/kickflow-api/generated/workflow/workflow.zod.js.map +1 -1
- package/dist/kickflow-api/schema-registry.js +6 -2
- package/dist/kickflow-api/schema-registry.js.map +1 -1
- package/package.json +9 -9
|
@@ -7,323 +7,806 @@ export const listRoutesQueryPageDefault = 1;
|
|
|
7
7
|
export const listRoutesQueryPerPageDefault = 25;
|
|
8
8
|
export const listRoutesQueryPerPageMax = 100;
|
|
9
9
|
export const listRoutesQuerySortByRegExp = new RegExp('^(createdAt|folderId)(-asc|-desc)?$');
|
|
10
|
-
export const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
export const ListRoutesQueryParams = zod.object({
|
|
11
|
+
page: zod
|
|
12
|
+
.number()
|
|
13
|
+
.min(1)
|
|
14
|
+
.default(listRoutesQueryPageDefault)
|
|
15
|
+
.describe('ページ。1が最初のページ。'),
|
|
16
|
+
perPage: zod
|
|
17
|
+
.number()
|
|
18
|
+
.min(1)
|
|
19
|
+
.max(listRoutesQueryPerPageMax)
|
|
20
|
+
.default(listRoutesQueryPerPageDefault)
|
|
21
|
+
.describe('1ページあたりの件数'),
|
|
22
|
+
sortBy: zod
|
|
23
|
+
.string()
|
|
24
|
+
.regex(listRoutesQuerySortByRegExp)
|
|
25
|
+
.optional()
|
|
26
|
+
.describe('ソート対象のフィールドと順序。指定可能なフィールド: createdAt, folderId'),
|
|
27
|
+
status: zod
|
|
28
|
+
.array(zod.enum(['visible', 'error']))
|
|
29
|
+
.optional()
|
|
30
|
+
.describe('ステータス'),
|
|
31
|
+
folderId: zod.uuid().optional().describe('フォルダのUUID'),
|
|
16
32
|
});
|
|
17
|
-
export const
|
|
18
|
-
export const
|
|
19
|
-
export const
|
|
20
|
-
export const
|
|
21
|
-
export const
|
|
22
|
-
export const
|
|
23
|
-
export const
|
|
24
|
-
export const
|
|
25
|
-
export const
|
|
26
|
-
export const
|
|
27
|
-
export const
|
|
28
|
-
export const
|
|
29
|
-
export const
|
|
30
|
-
export const
|
|
31
|
-
export const
|
|
32
|
-
export const
|
|
33
|
-
export const
|
|
34
|
-
export const
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
33
|
+
export const listRoutesResponseAuthorOneEmailMax = 254;
|
|
34
|
+
export const listRoutesResponseAuthorOneCodeMax = 100;
|
|
35
|
+
export const listRoutesResponseAuthorOneFirstNameMax = 255;
|
|
36
|
+
export const listRoutesResponseAuthorOneLastNameMax = 255;
|
|
37
|
+
export const listRoutesResponseAuthorOneFullNameMax = 255;
|
|
38
|
+
export const listRoutesResponseAuthorOneEmployeeIdMax = 30;
|
|
39
|
+
export const listRoutesResponseVersionAuthorOneEmailMax = 254;
|
|
40
|
+
export const listRoutesResponseVersionAuthorOneCodeMax = 100;
|
|
41
|
+
export const listRoutesResponseVersionAuthorOneFirstNameMax = 255;
|
|
42
|
+
export const listRoutesResponseVersionAuthorOneLastNameMax = 255;
|
|
43
|
+
export const listRoutesResponseVersionAuthorOneFullNameMax = 255;
|
|
44
|
+
export const listRoutesResponseVersionAuthorOneEmployeeIdMax = 30;
|
|
45
|
+
export const listRoutesResponseFolderOneNameMax = 300;
|
|
46
|
+
export const listRoutesResponseFolderOneCodeMax = 100;
|
|
47
|
+
export const listRoutesResponseFolderOneWorkflowsCountMin = 0;
|
|
48
|
+
export const listRoutesResponseFolderOneRoutesCountMin = 0;
|
|
49
|
+
export const listRoutesResponseFolderOnePipelinesCountMin = 0;
|
|
50
|
+
export const ListRoutesResponseItem = zod
|
|
51
|
+
.object({
|
|
52
|
+
id: zod.string().describe('UUID'),
|
|
53
|
+
code: zod.string().describe('コード'),
|
|
54
|
+
status: zod.enum(['visible', 'deleted', 'error']).describe('ステータス'),
|
|
55
|
+
versionId: zod.string().describe('バージョンのID'),
|
|
56
|
+
versionNumber: zod.number().describe('バージョン番号'),
|
|
57
|
+
name: zod.string().describe('名前'),
|
|
58
|
+
description: zod.string().describe('説明'),
|
|
59
|
+
createdAt: zod.string().describe('作成日時'),
|
|
60
|
+
updatedAt: zod.string().describe('更新日時'),
|
|
61
|
+
author: zod
|
|
62
|
+
.union([
|
|
63
|
+
zod
|
|
64
|
+
.object({
|
|
65
|
+
id: zod.uuid().describe('UUID'),
|
|
66
|
+
email: zod
|
|
67
|
+
.email()
|
|
68
|
+
.max(listRoutesResponseAuthorOneEmailMax)
|
|
69
|
+
.describe('メールアドレス'),
|
|
70
|
+
code: zod
|
|
71
|
+
.string()
|
|
72
|
+
.max(listRoutesResponseAuthorOneCodeMax)
|
|
73
|
+
.describe('コード'),
|
|
74
|
+
firstName: zod
|
|
75
|
+
.string()
|
|
76
|
+
.max(listRoutesResponseAuthorOneFirstNameMax)
|
|
77
|
+
.describe('名'),
|
|
78
|
+
lastName: zod
|
|
79
|
+
.string()
|
|
80
|
+
.max(listRoutesResponseAuthorOneLastNameMax)
|
|
81
|
+
.describe('姓'),
|
|
82
|
+
fullName: zod
|
|
83
|
+
.string()
|
|
84
|
+
.max(listRoutesResponseAuthorOneFullNameMax)
|
|
85
|
+
.describe('フルネーム'),
|
|
86
|
+
employeeId: zod
|
|
87
|
+
.string()
|
|
88
|
+
.max(listRoutesResponseAuthorOneEmployeeIdMax)
|
|
89
|
+
.nullish()
|
|
90
|
+
.describe('社員番号'),
|
|
91
|
+
image: zod
|
|
92
|
+
.object({
|
|
93
|
+
'100x100': zod.string().nullable(),
|
|
94
|
+
'64x64': zod.string().nullable(),
|
|
95
|
+
'32x32': zod.string().nullable(),
|
|
96
|
+
})
|
|
97
|
+
.describe('ユーザー画像のURL。サイズごとに複数のURLを返します。'),
|
|
98
|
+
status: zod
|
|
99
|
+
.enum(['invited', 'activated', 'suspended', 'deactivated'])
|
|
100
|
+
.describe('ステータス'),
|
|
101
|
+
locale: zod.string().describe('ロケール(jaまたはen)'),
|
|
102
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
103
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
104
|
+
deactivatedAt: zod.iso.datetime({}).nullish().describe('削除日時'),
|
|
105
|
+
})
|
|
106
|
+
.describe('ユーザー'),
|
|
107
|
+
zod.null(),
|
|
108
|
+
])
|
|
109
|
+
.optional()
|
|
110
|
+
.describe('作成者'),
|
|
111
|
+
versionAuthor: zod
|
|
112
|
+
.union([
|
|
113
|
+
zod
|
|
114
|
+
.object({
|
|
115
|
+
id: zod.uuid().describe('UUID'),
|
|
116
|
+
email: zod
|
|
117
|
+
.email()
|
|
118
|
+
.max(listRoutesResponseVersionAuthorOneEmailMax)
|
|
119
|
+
.describe('メールアドレス'),
|
|
120
|
+
code: zod
|
|
121
|
+
.string()
|
|
122
|
+
.max(listRoutesResponseVersionAuthorOneCodeMax)
|
|
123
|
+
.describe('コード'),
|
|
124
|
+
firstName: zod
|
|
125
|
+
.string()
|
|
126
|
+
.max(listRoutesResponseVersionAuthorOneFirstNameMax)
|
|
127
|
+
.describe('名'),
|
|
128
|
+
lastName: zod
|
|
129
|
+
.string()
|
|
130
|
+
.max(listRoutesResponseVersionAuthorOneLastNameMax)
|
|
131
|
+
.describe('姓'),
|
|
132
|
+
fullName: zod
|
|
133
|
+
.string()
|
|
134
|
+
.max(listRoutesResponseVersionAuthorOneFullNameMax)
|
|
135
|
+
.describe('フルネーム'),
|
|
136
|
+
employeeId: zod
|
|
137
|
+
.string()
|
|
138
|
+
.max(listRoutesResponseVersionAuthorOneEmployeeIdMax)
|
|
139
|
+
.nullish()
|
|
140
|
+
.describe('社員番号'),
|
|
141
|
+
image: zod
|
|
142
|
+
.object({
|
|
143
|
+
'100x100': zod.string().nullable(),
|
|
144
|
+
'64x64': zod.string().nullable(),
|
|
145
|
+
'32x32': zod.string().nullable(),
|
|
146
|
+
})
|
|
147
|
+
.describe('ユーザー画像のURL。サイズごとに複数のURLを返します。'),
|
|
148
|
+
status: zod
|
|
149
|
+
.enum(['invited', 'activated', 'suspended', 'deactivated'])
|
|
150
|
+
.describe('ステータス'),
|
|
151
|
+
locale: zod.string().describe('ロケール(jaまたはen)'),
|
|
152
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
153
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
154
|
+
deactivatedAt: zod.iso.datetime({}).nullish().describe('削除日時'),
|
|
155
|
+
})
|
|
156
|
+
.describe('ユーザー'),
|
|
157
|
+
zod.null(),
|
|
158
|
+
])
|
|
159
|
+
.optional(),
|
|
160
|
+
folder: zod
|
|
161
|
+
.object({
|
|
162
|
+
id: zod.uuid().describe('UUID'),
|
|
163
|
+
name: zod
|
|
164
|
+
.string()
|
|
165
|
+
.max(listRoutesResponseFolderOneNameMax)
|
|
166
|
+
.describe('名前'),
|
|
167
|
+
code: zod
|
|
168
|
+
.string()
|
|
169
|
+
.max(listRoutesResponseFolderOneCodeMax)
|
|
170
|
+
.describe('コード'),
|
|
171
|
+
description: zod.string().nullish().describe('説明'),
|
|
172
|
+
workflowsCount: zod
|
|
173
|
+
.number()
|
|
174
|
+
.min(listRoutesResponseFolderOneWorkflowsCountMin)
|
|
175
|
+
.describe('フォルダ内のワークフロー数'),
|
|
176
|
+
routesCount: zod
|
|
177
|
+
.number()
|
|
178
|
+
.min(listRoutesResponseFolderOneRoutesCountMin)
|
|
179
|
+
.describe('フォルダ内の経路数'),
|
|
180
|
+
pipelinesCount: zod
|
|
181
|
+
.number()
|
|
182
|
+
.min(listRoutesResponseFolderOnePipelinesCountMin)
|
|
183
|
+
.describe('フォルダ内のパイプライン数'),
|
|
184
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
185
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
186
|
+
})
|
|
187
|
+
.describe('フォルダ')
|
|
188
|
+
.describe('フォルダ'),
|
|
189
|
+
})
|
|
190
|
+
.describe('経路');
|
|
191
|
+
export const ListRoutesResponse = zod.array(ListRoutesResponseItem);
|
|
95
192
|
/**
|
|
96
193
|
* 指定した経路を取得します。
|
|
97
194
|
* @summary 経路を取得
|
|
98
195
|
*/
|
|
99
196
|
export const getRoutePathRouteIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
100
|
-
export const
|
|
101
|
-
|
|
197
|
+
export const GetRouteParams = zod.object({
|
|
198
|
+
routeId: zod
|
|
199
|
+
.string()
|
|
200
|
+
.regex(getRoutePathRouteIdRegExp)
|
|
201
|
+
.describe('経路のUUIDまたはコード'),
|
|
102
202
|
});
|
|
103
|
-
export const
|
|
104
|
-
export const
|
|
105
|
-
export const
|
|
106
|
-
export const
|
|
107
|
-
export const
|
|
108
|
-
export const
|
|
109
|
-
export const
|
|
110
|
-
export const
|
|
111
|
-
export const
|
|
112
|
-
export const
|
|
113
|
-
export const
|
|
114
|
-
export const
|
|
115
|
-
export const
|
|
116
|
-
export const
|
|
117
|
-
export const
|
|
118
|
-
export const
|
|
119
|
-
export const
|
|
120
|
-
export const
|
|
121
|
-
export const
|
|
122
|
-
export const
|
|
123
|
-
export const
|
|
124
|
-
export const
|
|
125
|
-
export const
|
|
126
|
-
export const
|
|
127
|
-
export const
|
|
128
|
-
export const
|
|
129
|
-
export const
|
|
130
|
-
export const
|
|
131
|
-
export const
|
|
132
|
-
export const
|
|
133
|
-
export const
|
|
134
|
-
export const
|
|
135
|
-
export const
|
|
136
|
-
export const
|
|
137
|
-
export const
|
|
138
|
-
export const
|
|
139
|
-
export const
|
|
140
|
-
export const
|
|
141
|
-
export const
|
|
142
|
-
export const
|
|
143
|
-
export const
|
|
144
|
-
export const
|
|
145
|
-
export const
|
|
146
|
-
export const
|
|
147
|
-
export const
|
|
148
|
-
export const
|
|
149
|
-
export const
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
203
|
+
export const getRouteResponseOneAuthorOneEmailMax = 254;
|
|
204
|
+
export const getRouteResponseOneAuthorOneCodeMax = 100;
|
|
205
|
+
export const getRouteResponseOneAuthorOneFirstNameMax = 255;
|
|
206
|
+
export const getRouteResponseOneAuthorOneLastNameMax = 255;
|
|
207
|
+
export const getRouteResponseOneAuthorOneFullNameMax = 255;
|
|
208
|
+
export const getRouteResponseOneAuthorOneEmployeeIdMax = 30;
|
|
209
|
+
export const getRouteResponseOneVersionAuthorOneEmailMax = 254;
|
|
210
|
+
export const getRouteResponseOneVersionAuthorOneCodeMax = 100;
|
|
211
|
+
export const getRouteResponseOneVersionAuthorOneFirstNameMax = 255;
|
|
212
|
+
export const getRouteResponseOneVersionAuthorOneLastNameMax = 255;
|
|
213
|
+
export const getRouteResponseOneVersionAuthorOneFullNameMax = 255;
|
|
214
|
+
export const getRouteResponseOneVersionAuthorOneEmployeeIdMax = 30;
|
|
215
|
+
export const getRouteResponseOneFolderOneNameMax = 300;
|
|
216
|
+
export const getRouteResponseOneFolderOneCodeMax = 100;
|
|
217
|
+
export const getRouteResponseOneFolderOneWorkflowsCountMin = 0;
|
|
218
|
+
export const getRouteResponseOneFolderOneRoutesCountMin = 0;
|
|
219
|
+
export const getRouteResponseOneFolderOnePipelinesCountMin = 0;
|
|
220
|
+
export const getRouteResponseTwoStepsItemMinCustomAssigneesMin = 0;
|
|
221
|
+
export const getRouteResponseTwoStepsItemUsersItemEmailMax = 254;
|
|
222
|
+
export const getRouteResponseTwoStepsItemUsersItemCodeMax = 100;
|
|
223
|
+
export const getRouteResponseTwoStepsItemUsersItemFirstNameMax = 255;
|
|
224
|
+
export const getRouteResponseTwoStepsItemUsersItemLastNameMax = 255;
|
|
225
|
+
export const getRouteResponseTwoStepsItemUsersItemFullNameMax = 255;
|
|
226
|
+
export const getRouteResponseTwoStepsItemUsersItemEmployeeIdMax = 30;
|
|
227
|
+
export const getRouteResponseTwoStepsItemTargetsItemTeamNameMax = 300;
|
|
228
|
+
export const getRouteResponseTwoStepsItemTargetsItemTeamCodeMax = 100;
|
|
229
|
+
export const getRouteResponseTwoStepsItemTargetsItemTeamNotesMax = 10000;
|
|
230
|
+
export const getRouteResponseTwoStepsItemTargetsItemTeamUsersCountMin = 0;
|
|
231
|
+
export const getRouteResponseTwoStepsItemTargetsItemGradesItemNameMax = 300;
|
|
232
|
+
export const getRouteResponseTwoStepsItemTargetsItemGradesItemLevelMin = 0;
|
|
233
|
+
export const getRouteResponseTwoStepsItemTargetsItemGradesItemLevelMax = 255;
|
|
234
|
+
export const getRouteResponseTwoStepsItemTargetsItemGradesItemCodeMax = 100;
|
|
235
|
+
export const getRouteResponseTwoStepsItemTargetsItemGradesItemIsDefaultDefault = false;
|
|
236
|
+
export const getRouteResponseTwoStepsItemRouteStepConditionOneRouteStepConditionFieldsItemGradeOneNameMax = 300;
|
|
237
|
+
export const getRouteResponseTwoStepsItemRouteStepConditionOneRouteStepConditionFieldsItemGradeOneLevelMin = 0;
|
|
238
|
+
export const getRouteResponseTwoStepsItemRouteStepConditionOneRouteStepConditionFieldsItemGradeOneLevelMax = 255;
|
|
239
|
+
export const getRouteResponseTwoStepsItemRouteStepConditionOneRouteStepConditionFieldsItemGradeOneCodeMax = 100;
|
|
240
|
+
export const getRouteResponseTwoStepsItemRouteStepConditionOneRouteStepConditionFieldsItemGradeOneIsDefaultDefault = false;
|
|
241
|
+
export const getRouteResponseTwoStepsItemRouteStepConditionOneRouteStepConditionFieldsItemTeamOneNameMax = 300;
|
|
242
|
+
export const getRouteResponseTwoStepsItemRouteStepConditionOneRouteStepConditionFieldsItemTeamOneCodeMax = 100;
|
|
243
|
+
export const getRouteResponseTwoStepsItemRouteStepConditionOneRouteStepConditionFieldsItemTeamOneNotesMax = 10000;
|
|
244
|
+
export const getRouteResponseTwoStepsItemRouteStepConditionOneRouteStepConditionFieldsItemTeamOneUsersCountMin = 0;
|
|
245
|
+
export const getRouteResponseTwoStepsItemRouteStepConditionOneRouteStepConditionFieldsItemGeneralMasterItemOneCodeMax = 100;
|
|
246
|
+
export const getRouteResponseTwoStepsItemRouteStepConditionOneRouteStepConditionFieldsItemGeneralMasterItemOneNameMax = 100;
|
|
247
|
+
export const getRouteResponseTwoStepsItemRouteStepConditionOneRouteStepConditionFieldsItemGeneralMasterItemOneInputsItemFieldTitleMax = 300;
|
|
248
|
+
export const getRouteResponseTwoStepsItemRouteStepConditionOneRouteStepConditionFieldsItemGeneralMasterItemOneInputsItemFieldCodeMax = 100;
|
|
249
|
+
export const GetRouteResponse = zod
|
|
250
|
+
.object({
|
|
251
|
+
id: zod.string().describe('UUID'),
|
|
252
|
+
code: zod.string().describe('コード'),
|
|
253
|
+
status: zod.enum(['visible', 'deleted', 'error']).describe('ステータス'),
|
|
254
|
+
versionId: zod.string().describe('バージョンのID'),
|
|
255
|
+
versionNumber: zod.number().describe('バージョン番号'),
|
|
256
|
+
name: zod.string().describe('名前'),
|
|
257
|
+
description: zod.string().describe('説明'),
|
|
258
|
+
createdAt: zod.string().describe('作成日時'),
|
|
259
|
+
updatedAt: zod.string().describe('更新日時'),
|
|
260
|
+
author: zod
|
|
261
|
+
.union([
|
|
262
|
+
zod
|
|
263
|
+
.object({
|
|
264
|
+
id: zod.uuid().describe('UUID'),
|
|
265
|
+
email: zod
|
|
266
|
+
.email()
|
|
267
|
+
.max(getRouteResponseOneAuthorOneEmailMax)
|
|
268
|
+
.describe('メールアドレス'),
|
|
269
|
+
code: zod
|
|
270
|
+
.string()
|
|
271
|
+
.max(getRouteResponseOneAuthorOneCodeMax)
|
|
272
|
+
.describe('コード'),
|
|
273
|
+
firstName: zod
|
|
274
|
+
.string()
|
|
275
|
+
.max(getRouteResponseOneAuthorOneFirstNameMax)
|
|
276
|
+
.describe('名'),
|
|
277
|
+
lastName: zod
|
|
278
|
+
.string()
|
|
279
|
+
.max(getRouteResponseOneAuthorOneLastNameMax)
|
|
280
|
+
.describe('姓'),
|
|
281
|
+
fullName: zod
|
|
282
|
+
.string()
|
|
283
|
+
.max(getRouteResponseOneAuthorOneFullNameMax)
|
|
284
|
+
.describe('フルネーム'),
|
|
285
|
+
employeeId: zod
|
|
286
|
+
.string()
|
|
287
|
+
.max(getRouteResponseOneAuthorOneEmployeeIdMax)
|
|
288
|
+
.nullish()
|
|
289
|
+
.describe('社員番号'),
|
|
290
|
+
image: zod
|
|
291
|
+
.object({
|
|
292
|
+
'100x100': zod.string().nullable(),
|
|
293
|
+
'64x64': zod.string().nullable(),
|
|
294
|
+
'32x32': zod.string().nullable(),
|
|
295
|
+
})
|
|
296
|
+
.describe('ユーザー画像のURL。サイズごとに複数のURLを返します。'),
|
|
297
|
+
status: zod
|
|
298
|
+
.enum(['invited', 'activated', 'suspended', 'deactivated'])
|
|
299
|
+
.describe('ステータス'),
|
|
300
|
+
locale: zod.string().describe('ロケール(jaまたはen)'),
|
|
301
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
302
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
303
|
+
deactivatedAt: zod.iso.datetime({}).nullish().describe('削除日時'),
|
|
304
|
+
})
|
|
305
|
+
.describe('ユーザー'),
|
|
306
|
+
zod.null(),
|
|
307
|
+
])
|
|
308
|
+
.optional()
|
|
309
|
+
.describe('作成者'),
|
|
310
|
+
versionAuthor: zod
|
|
311
|
+
.union([
|
|
312
|
+
zod
|
|
313
|
+
.object({
|
|
314
|
+
id: zod.uuid().describe('UUID'),
|
|
315
|
+
email: zod
|
|
316
|
+
.email()
|
|
317
|
+
.max(getRouteResponseOneVersionAuthorOneEmailMax)
|
|
318
|
+
.describe('メールアドレス'),
|
|
319
|
+
code: zod
|
|
320
|
+
.string()
|
|
321
|
+
.max(getRouteResponseOneVersionAuthorOneCodeMax)
|
|
322
|
+
.describe('コード'),
|
|
323
|
+
firstName: zod
|
|
324
|
+
.string()
|
|
325
|
+
.max(getRouteResponseOneVersionAuthorOneFirstNameMax)
|
|
326
|
+
.describe('名'),
|
|
327
|
+
lastName: zod
|
|
328
|
+
.string()
|
|
329
|
+
.max(getRouteResponseOneVersionAuthorOneLastNameMax)
|
|
330
|
+
.describe('姓'),
|
|
331
|
+
fullName: zod
|
|
332
|
+
.string()
|
|
333
|
+
.max(getRouteResponseOneVersionAuthorOneFullNameMax)
|
|
334
|
+
.describe('フルネーム'),
|
|
335
|
+
employeeId: zod
|
|
336
|
+
.string()
|
|
337
|
+
.max(getRouteResponseOneVersionAuthorOneEmployeeIdMax)
|
|
338
|
+
.nullish()
|
|
339
|
+
.describe('社員番号'),
|
|
340
|
+
image: zod
|
|
341
|
+
.object({
|
|
342
|
+
'100x100': zod.string().nullable(),
|
|
343
|
+
'64x64': zod.string().nullable(),
|
|
344
|
+
'32x32': zod.string().nullable(),
|
|
345
|
+
})
|
|
346
|
+
.describe('ユーザー画像のURL。サイズごとに複数のURLを返します。'),
|
|
347
|
+
status: zod
|
|
348
|
+
.enum(['invited', 'activated', 'suspended', 'deactivated'])
|
|
349
|
+
.describe('ステータス'),
|
|
350
|
+
locale: zod.string().describe('ロケール(jaまたはen)'),
|
|
351
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
352
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
353
|
+
deactivatedAt: zod.iso.datetime({}).nullish().describe('削除日時'),
|
|
354
|
+
})
|
|
355
|
+
.describe('ユーザー'),
|
|
356
|
+
zod.null(),
|
|
357
|
+
])
|
|
358
|
+
.optional(),
|
|
359
|
+
folder: zod
|
|
360
|
+
.object({
|
|
361
|
+
id: zod.uuid().describe('UUID'),
|
|
362
|
+
name: zod
|
|
363
|
+
.string()
|
|
364
|
+
.max(getRouteResponseOneFolderOneNameMax)
|
|
365
|
+
.describe('名前'),
|
|
366
|
+
code: zod
|
|
367
|
+
.string()
|
|
368
|
+
.max(getRouteResponseOneFolderOneCodeMax)
|
|
369
|
+
.describe('コード'),
|
|
370
|
+
description: zod.string().nullish().describe('説明'),
|
|
371
|
+
workflowsCount: zod
|
|
372
|
+
.number()
|
|
373
|
+
.min(getRouteResponseOneFolderOneWorkflowsCountMin)
|
|
374
|
+
.describe('フォルダ内のワークフロー数'),
|
|
375
|
+
routesCount: zod
|
|
376
|
+
.number()
|
|
377
|
+
.min(getRouteResponseOneFolderOneRoutesCountMin)
|
|
378
|
+
.describe('フォルダ内の経路数'),
|
|
379
|
+
pipelinesCount: zod
|
|
380
|
+
.number()
|
|
381
|
+
.min(getRouteResponseOneFolderOnePipelinesCountMin)
|
|
382
|
+
.describe('フォルダ内のパイプライン数'),
|
|
383
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
384
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
385
|
+
})
|
|
386
|
+
.describe('フォルダ')
|
|
387
|
+
.describe('フォルダ'),
|
|
388
|
+
})
|
|
389
|
+
.describe('経路')
|
|
390
|
+
.and(zod.object({
|
|
391
|
+
steps: zod
|
|
392
|
+
.array(zod
|
|
393
|
+
.object({
|
|
394
|
+
id: zod.string().describe('UUID'),
|
|
395
|
+
stepOrder: zod
|
|
396
|
+
.number()
|
|
397
|
+
.describe('ステップ順序(1から始まります)'),
|
|
398
|
+
stepType: zod
|
|
399
|
+
.enum([
|
|
400
|
+
'author',
|
|
401
|
+
'manager',
|
|
402
|
+
'team',
|
|
403
|
+
'user',
|
|
404
|
+
'author_customizable',
|
|
405
|
+
'assignee_customizable',
|
|
406
|
+
'dynamic_team',
|
|
407
|
+
'dynamic_user',
|
|
408
|
+
])
|
|
409
|
+
.describe('ステップのタイプ'),
|
|
410
|
+
title: zod.string().describe('タイトル'),
|
|
411
|
+
actionType: zod
|
|
412
|
+
.enum(['approve', 'confirm', 'none'])
|
|
413
|
+
.describe('アクションタイプ。承認\/差し戻しの場合approve、回覧(確認あり)の場合confirm、回覧(確認なし)の場合noneになります。'),
|
|
414
|
+
instruction: zod.string().nullable().describe('承認者への指示'),
|
|
415
|
+
requiredApprovalsNumber: zod.number().describe('必要な承認人数'),
|
|
416
|
+
requiredApprovalsPercent: zod
|
|
417
|
+
.number()
|
|
418
|
+
.describe('必要な承認割合(%)'),
|
|
419
|
+
fallbackType: zod
|
|
420
|
+
.union([
|
|
421
|
+
zod.enum([
|
|
422
|
+
'direct_manager',
|
|
423
|
+
'higher_manager',
|
|
424
|
+
'skip',
|
|
425
|
+
'no_fallback',
|
|
426
|
+
'higher_team',
|
|
427
|
+
]),
|
|
428
|
+
zod.null(),
|
|
429
|
+
])
|
|
430
|
+
.describe('フォールバックのタイプ'),
|
|
431
|
+
allowSelfApproval: zod.boolean().describe('自己承認を許可するか'),
|
|
432
|
+
minCustomAssignees: zod
|
|
433
|
+
.number()
|
|
434
|
+
.min(getRouteResponseTwoStepsItemMinCustomAssigneesMin)
|
|
435
|
+
.nullable()
|
|
436
|
+
.describe('最小指名人数。「申請者が指名」ステップのみ設定可能。'),
|
|
437
|
+
approverAssignmentInstruction: zod
|
|
438
|
+
.string()
|
|
439
|
+
.nullable()
|
|
440
|
+
.describe('承認者の選び方'),
|
|
441
|
+
users: zod
|
|
442
|
+
.array(zod
|
|
443
|
+
.object({
|
|
444
|
+
id: zod.uuid().describe('UUID'),
|
|
445
|
+
email: zod
|
|
446
|
+
.email()
|
|
447
|
+
.max(getRouteResponseTwoStepsItemUsersItemEmailMax)
|
|
448
|
+
.describe('メールアドレス'),
|
|
449
|
+
code: zod
|
|
450
|
+
.string()
|
|
451
|
+
.max(getRouteResponseTwoStepsItemUsersItemCodeMax)
|
|
452
|
+
.describe('コード'),
|
|
453
|
+
firstName: zod
|
|
454
|
+
.string()
|
|
455
|
+
.max(getRouteResponseTwoStepsItemUsersItemFirstNameMax)
|
|
456
|
+
.describe('名'),
|
|
457
|
+
lastName: zod
|
|
458
|
+
.string()
|
|
459
|
+
.max(getRouteResponseTwoStepsItemUsersItemLastNameMax)
|
|
460
|
+
.describe('姓'),
|
|
461
|
+
fullName: zod
|
|
462
|
+
.string()
|
|
463
|
+
.max(getRouteResponseTwoStepsItemUsersItemFullNameMax)
|
|
464
|
+
.describe('フルネーム'),
|
|
465
|
+
employeeId: zod
|
|
466
|
+
.string()
|
|
467
|
+
.max(getRouteResponseTwoStepsItemUsersItemEmployeeIdMax)
|
|
468
|
+
.nullish()
|
|
469
|
+
.describe('社員番号'),
|
|
470
|
+
image: zod
|
|
471
|
+
.object({
|
|
472
|
+
'100x100': zod.string().nullable(),
|
|
473
|
+
'64x64': zod.string().nullable(),
|
|
474
|
+
'32x32': zod.string().nullable(),
|
|
475
|
+
})
|
|
476
|
+
.describe('ユーザー画像のURL。サイズごとに複数のURLを返します。'),
|
|
477
|
+
status: zod
|
|
478
|
+
.enum([
|
|
479
|
+
'invited',
|
|
480
|
+
'activated',
|
|
481
|
+
'suspended',
|
|
482
|
+
'deactivated',
|
|
483
|
+
])
|
|
484
|
+
.describe('ステータス'),
|
|
485
|
+
locale: zod.string().describe('ロケール(jaまたはen)'),
|
|
486
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
487
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
488
|
+
deactivatedAt: zod.iso
|
|
489
|
+
.datetime({})
|
|
490
|
+
.nullish()
|
|
491
|
+
.describe('削除日時'),
|
|
492
|
+
})
|
|
493
|
+
.describe('ユーザー'))
|
|
494
|
+
.describe('承認者の指定に使うユーザーの配列'),
|
|
495
|
+
targets: zod
|
|
496
|
+
.array(zod.object({
|
|
497
|
+
team: zod
|
|
498
|
+
.object({
|
|
499
|
+
id: zod.uuid().describe('UUID'),
|
|
500
|
+
name: zod
|
|
501
|
+
.string()
|
|
502
|
+
.max(getRouteResponseTwoStepsItemTargetsItemTeamNameMax)
|
|
503
|
+
.describe('名前'),
|
|
504
|
+
fullName: zod.string().describe('上位組織を含む名前'),
|
|
505
|
+
code: zod
|
|
506
|
+
.string()
|
|
507
|
+
.max(getRouteResponseTwoStepsItemTargetsItemTeamCodeMax)
|
|
508
|
+
.describe('コード'),
|
|
509
|
+
notes: zod
|
|
510
|
+
.string()
|
|
511
|
+
.max(getRouteResponseTwoStepsItemTargetsItemTeamNotesMax)
|
|
512
|
+
.nullish()
|
|
513
|
+
.describe('管理用メモ'),
|
|
514
|
+
approveOnly: zod
|
|
515
|
+
.boolean()
|
|
516
|
+
.describe('承認専用チームかどうか'),
|
|
517
|
+
usersCount: zod
|
|
518
|
+
.number()
|
|
519
|
+
.min(getRouteResponseTwoStepsItemTargetsItemTeamUsersCountMin)
|
|
520
|
+
.describe('ユーザー数'),
|
|
521
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
522
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
523
|
+
})
|
|
524
|
+
.optional()
|
|
525
|
+
.describe('チーム'),
|
|
526
|
+
descendants: zod
|
|
527
|
+
.boolean()
|
|
528
|
+
.optional()
|
|
529
|
+
.describe('stepType=author_customizableまたはstepType=assignee_customizableの場合に、指定したチームの下位チームのメンバーも承認者候補に含めるかどうか(true: 含める、false: 含めない)'),
|
|
530
|
+
gradeSymbol: zod
|
|
531
|
+
.union([
|
|
532
|
+
zod.enum([
|
|
533
|
+
'equal',
|
|
534
|
+
'greater_than',
|
|
535
|
+
'greater_than_or_equal',
|
|
536
|
+
'less_than',
|
|
537
|
+
'less_than_or_equal',
|
|
538
|
+
'any_of',
|
|
539
|
+
]),
|
|
540
|
+
zod.null(),
|
|
541
|
+
])
|
|
542
|
+
.optional()
|
|
543
|
+
.describe('役職の比較条件。役職が指定されているときのみ値が入ります。'),
|
|
544
|
+
grades: zod
|
|
545
|
+
.array(zod
|
|
546
|
+
.object({
|
|
547
|
+
id: zod.uuid().describe('UUID'),
|
|
548
|
+
name: zod
|
|
549
|
+
.string()
|
|
550
|
+
.max(getRouteResponseTwoStepsItemTargetsItemGradesItemNameMax)
|
|
551
|
+
.describe('名前'),
|
|
552
|
+
level: zod
|
|
553
|
+
.number()
|
|
554
|
+
.min(getRouteResponseTwoStepsItemTargetsItemGradesItemLevelMin)
|
|
555
|
+
.max(getRouteResponseTwoStepsItemTargetsItemGradesItemLevelMax)
|
|
556
|
+
.describe('レベル'),
|
|
557
|
+
code: zod
|
|
558
|
+
.string()
|
|
559
|
+
.max(getRouteResponseTwoStepsItemTargetsItemGradesItemCodeMax)
|
|
560
|
+
.nullable()
|
|
561
|
+
.describe('コード'),
|
|
562
|
+
isDefault: zod
|
|
563
|
+
.boolean()
|
|
564
|
+
.default(getRouteResponseTwoStepsItemTargetsItemGradesItemIsDefaultDefault)
|
|
565
|
+
.describe('デフォルトの役職かどうか'),
|
|
566
|
+
createdAt: zod.iso
|
|
567
|
+
.datetime({})
|
|
568
|
+
.describe('作成日時'),
|
|
569
|
+
updatedAt: zod.iso
|
|
570
|
+
.datetime({})
|
|
571
|
+
.describe('更新日時'),
|
|
572
|
+
})
|
|
573
|
+
.describe('役職'))
|
|
574
|
+
.optional()
|
|
575
|
+
.describe('承認者の指定に使う役職の配列'),
|
|
576
|
+
variable: zod
|
|
577
|
+
.string()
|
|
578
|
+
.nullish()
|
|
579
|
+
.describe('承認者タイプ「チームを動的に指定」または「ユーザーを動的に指定」で指定する変数名が入ります。'),
|
|
580
|
+
}))
|
|
581
|
+
.optional()
|
|
582
|
+
.describe('承認者の指定に使うチームと役職の条件'),
|
|
583
|
+
routeStepCondition: zod
|
|
584
|
+
.union([
|
|
585
|
+
zod
|
|
586
|
+
.object({
|
|
587
|
+
id: zod.uuid().optional().describe('UUID'),
|
|
588
|
+
conditionType: zod
|
|
589
|
+
.enum(['always', 'conditional', 'conditional_skip'])
|
|
590
|
+
.optional()
|
|
591
|
+
.describe('実行タイプ'),
|
|
592
|
+
combinationType: zod
|
|
593
|
+
.enum(['all', 'any'])
|
|
594
|
+
.optional()
|
|
595
|
+
.describe('条件の組み合わせタイプ'),
|
|
596
|
+
routeStepConditionFields: zod
|
|
597
|
+
.array(zod
|
|
598
|
+
.object({
|
|
599
|
+
id: zod.uuid().optional().describe('UUID'),
|
|
600
|
+
variable: zod
|
|
601
|
+
.string()
|
|
602
|
+
.optional()
|
|
603
|
+
.describe('変数'),
|
|
604
|
+
fieldKey: zod
|
|
605
|
+
.enum([
|
|
606
|
+
'author_grade',
|
|
607
|
+
'author_team',
|
|
608
|
+
'text_variable',
|
|
609
|
+
'number_variable',
|
|
610
|
+
'checkbox_variable',
|
|
611
|
+
'general_master_variable',
|
|
612
|
+
'other_variable',
|
|
613
|
+
])
|
|
614
|
+
.optional()
|
|
615
|
+
.describe('変数のフィールド'),
|
|
616
|
+
symbol: zod
|
|
617
|
+
.enum([
|
|
618
|
+
'equal',
|
|
619
|
+
'not_equal',
|
|
620
|
+
'greater_than',
|
|
621
|
+
'greater_than_or_equal',
|
|
622
|
+
'less_than',
|
|
623
|
+
'less_than_or_equal',
|
|
624
|
+
'include',
|
|
625
|
+
'exclude',
|
|
626
|
+
'is_empty',
|
|
627
|
+
'is_not_empty',
|
|
628
|
+
'descendants_or_equal',
|
|
629
|
+
'not_descendants_or_equal',
|
|
630
|
+
])
|
|
631
|
+
.optional()
|
|
632
|
+
.describe('演算子'),
|
|
633
|
+
value: zod
|
|
634
|
+
.string()
|
|
635
|
+
.optional()
|
|
636
|
+
.describe('しきい値'),
|
|
637
|
+
grade: zod
|
|
638
|
+
.object({
|
|
639
|
+
id: zod.uuid().describe('UUID'),
|
|
640
|
+
name: zod
|
|
641
|
+
.string()
|
|
642
|
+
.max(getRouteResponseTwoStepsItemRouteStepConditionOneRouteStepConditionFieldsItemGradeOneNameMax)
|
|
643
|
+
.describe('名前'),
|
|
644
|
+
level: zod
|
|
645
|
+
.number()
|
|
646
|
+
.min(getRouteResponseTwoStepsItemRouteStepConditionOneRouteStepConditionFieldsItemGradeOneLevelMin)
|
|
647
|
+
.max(getRouteResponseTwoStepsItemRouteStepConditionOneRouteStepConditionFieldsItemGradeOneLevelMax)
|
|
648
|
+
.describe('レベル'),
|
|
649
|
+
code: zod
|
|
650
|
+
.string()
|
|
651
|
+
.max(getRouteResponseTwoStepsItemRouteStepConditionOneRouteStepConditionFieldsItemGradeOneCodeMax)
|
|
652
|
+
.nullable()
|
|
653
|
+
.describe('コード'),
|
|
654
|
+
isDefault: zod
|
|
655
|
+
.boolean()
|
|
656
|
+
.default(getRouteResponseTwoStepsItemRouteStepConditionOneRouteStepConditionFieldsItemGradeOneIsDefaultDefault)
|
|
657
|
+
.describe('デフォルトの役職かどうか'),
|
|
658
|
+
createdAt: zod.iso
|
|
659
|
+
.datetime({})
|
|
660
|
+
.describe('作成日時'),
|
|
661
|
+
updatedAt: zod.iso
|
|
662
|
+
.datetime({})
|
|
663
|
+
.describe('更新日時'),
|
|
664
|
+
})
|
|
665
|
+
.describe('役職')
|
|
666
|
+
.optional()
|
|
667
|
+
.describe('しきい値として使う役職'),
|
|
668
|
+
team: zod
|
|
669
|
+
.object({
|
|
670
|
+
id: zod.uuid().describe('UUID'),
|
|
671
|
+
name: zod
|
|
672
|
+
.string()
|
|
673
|
+
.max(getRouteResponseTwoStepsItemRouteStepConditionOneRouteStepConditionFieldsItemTeamOneNameMax)
|
|
674
|
+
.describe('名前'),
|
|
675
|
+
fullName: zod
|
|
676
|
+
.string()
|
|
677
|
+
.describe('上位組織を含む名前'),
|
|
678
|
+
code: zod
|
|
679
|
+
.string()
|
|
680
|
+
.max(getRouteResponseTwoStepsItemRouteStepConditionOneRouteStepConditionFieldsItemTeamOneCodeMax)
|
|
681
|
+
.describe('コード'),
|
|
682
|
+
notes: zod
|
|
683
|
+
.string()
|
|
684
|
+
.max(getRouteResponseTwoStepsItemRouteStepConditionOneRouteStepConditionFieldsItemTeamOneNotesMax)
|
|
685
|
+
.nullish()
|
|
686
|
+
.describe('管理用メモ'),
|
|
687
|
+
approveOnly: zod
|
|
688
|
+
.boolean()
|
|
689
|
+
.describe('承認専用チームかどうか'),
|
|
690
|
+
usersCount: zod
|
|
691
|
+
.number()
|
|
692
|
+
.min(getRouteResponseTwoStepsItemRouteStepConditionOneRouteStepConditionFieldsItemTeamOneUsersCountMin)
|
|
693
|
+
.describe('ユーザー数'),
|
|
694
|
+
createdAt: zod.iso
|
|
695
|
+
.datetime({})
|
|
696
|
+
.describe('作成日時'),
|
|
697
|
+
updatedAt: zod.iso
|
|
698
|
+
.datetime({})
|
|
699
|
+
.describe('更新日時'),
|
|
700
|
+
})
|
|
701
|
+
.describe('チーム')
|
|
702
|
+
.optional()
|
|
703
|
+
.describe('しきい値として使うチーム'),
|
|
704
|
+
generalMasterItem: zod
|
|
705
|
+
.object({
|
|
706
|
+
id: zod.uuid().describe('UUID'),
|
|
707
|
+
code: zod
|
|
708
|
+
.string()
|
|
709
|
+
.max(getRouteResponseTwoStepsItemRouteStepConditionOneRouteStepConditionFieldsItemGeneralMasterItemOneCodeMax)
|
|
710
|
+
.describe('コード'),
|
|
711
|
+
name: zod
|
|
712
|
+
.string()
|
|
713
|
+
.max(getRouteResponseTwoStepsItemRouteStepConditionOneRouteStepConditionFieldsItemGeneralMasterItemOneNameMax)
|
|
714
|
+
.describe('名前'),
|
|
715
|
+
description: zod
|
|
716
|
+
.string()
|
|
717
|
+
.nullable()
|
|
718
|
+
.describe('説明'),
|
|
719
|
+
createdAt: zod.iso
|
|
720
|
+
.datetime({})
|
|
721
|
+
.describe('作成日時'),
|
|
722
|
+
updatedAt: zod.iso
|
|
723
|
+
.datetime({})
|
|
724
|
+
.describe('更新日時'),
|
|
725
|
+
startsOn: zod.iso
|
|
726
|
+
.date()
|
|
727
|
+
.nullable()
|
|
728
|
+
.describe('有効期限の開始日'),
|
|
729
|
+
endsOn: zod.iso
|
|
730
|
+
.date()
|
|
731
|
+
.nullable()
|
|
732
|
+
.describe('有効期限の終了日'),
|
|
733
|
+
inputs: zod
|
|
734
|
+
.array(zod.object({
|
|
735
|
+
id: zod.uuid().describe('UUID'),
|
|
736
|
+
value: zod
|
|
737
|
+
.union([
|
|
738
|
+
zod.string().nullable(),
|
|
739
|
+
zod.array(zod.string()),
|
|
740
|
+
])
|
|
741
|
+
.describe('入力値'),
|
|
742
|
+
createdAt: zod.iso
|
|
743
|
+
.datetime({})
|
|
744
|
+
.describe('作成日時'),
|
|
745
|
+
updatedAt: zod.iso
|
|
746
|
+
.datetime({})
|
|
747
|
+
.describe('更新日時'),
|
|
748
|
+
field: zod
|
|
749
|
+
.object({
|
|
750
|
+
id: zod.uuid().describe('UUID'),
|
|
751
|
+
title: zod
|
|
752
|
+
.string()
|
|
753
|
+
.max(getRouteResponseTwoStepsItemRouteStepConditionOneRouteStepConditionFieldsItemGeneralMasterItemOneInputsItemFieldTitleMax)
|
|
754
|
+
.describe('フィールド名'),
|
|
755
|
+
description: zod
|
|
756
|
+
.string()
|
|
757
|
+
.nullable()
|
|
758
|
+
.describe('フィールドの説明'),
|
|
759
|
+
code: zod
|
|
760
|
+
.string()
|
|
761
|
+
.max(getRouteResponseTwoStepsItemRouteStepConditionOneRouteStepConditionFieldsItemGeneralMasterItemOneInputsItemFieldCodeMax)
|
|
762
|
+
.describe('フィールドのコード'),
|
|
763
|
+
fieldType: zod
|
|
764
|
+
.enum([
|
|
765
|
+
'text',
|
|
766
|
+
'text_long',
|
|
767
|
+
'number',
|
|
768
|
+
'integer',
|
|
769
|
+
'checkbox',
|
|
770
|
+
'pull_down',
|
|
771
|
+
'date',
|
|
772
|
+
])
|
|
773
|
+
.describe('フィールドの型'),
|
|
774
|
+
required: zod
|
|
775
|
+
.boolean()
|
|
776
|
+
.describe('必須項目かどうか'),
|
|
777
|
+
visible: zod
|
|
778
|
+
.boolean()
|
|
779
|
+
.describe('管理者以外も閲覧可能な場合true'),
|
|
780
|
+
options: zod
|
|
781
|
+
.array(zod.string())
|
|
782
|
+
.nullable()
|
|
783
|
+
.describe('選択肢。fieldTypeがcheckboxまたはpull_downのときのみ。'),
|
|
784
|
+
createdAt: zod.iso
|
|
785
|
+
.datetime({})
|
|
786
|
+
.describe('作成日時'),
|
|
787
|
+
updatedAt: zod.iso
|
|
788
|
+
.datetime({})
|
|
789
|
+
.describe('更新日時'),
|
|
790
|
+
})
|
|
791
|
+
.describe('汎用マスタのカスタムフィールド'),
|
|
792
|
+
}))
|
|
793
|
+
.describe('カスタムフィールドの入力の配列'),
|
|
794
|
+
})
|
|
795
|
+
.describe('汎用マスタのアイテム')
|
|
796
|
+
.optional()
|
|
797
|
+
.describe('しきい値として使う汎用マスタアイテム'),
|
|
798
|
+
})
|
|
799
|
+
.describe('ステップごとに設定できる実行条件の詳細'))
|
|
800
|
+
.optional(),
|
|
801
|
+
})
|
|
802
|
+
.describe('ステップごとに設定できる実行条件'),
|
|
803
|
+
zod.null(),
|
|
804
|
+
])
|
|
805
|
+
.optional(),
|
|
806
|
+
code: zod.string().describe('コード'),
|
|
807
|
+
})
|
|
808
|
+
.describe('経路ステップ'))
|
|
809
|
+
.describe('経路ステップ'),
|
|
810
|
+
}))
|
|
811
|
+
.describe('経路の詳細情報');
|
|
329
812
|
//# sourceMappingURL=route.zod.js.map
|