@kickflow/mcp-server 1.0.6 → 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.
Files changed (58) hide show
  1. package/dist/kickflow-api/generated/api-definitions.js +817 -817
  2. package/dist/kickflow-api/generated/api-definitions.js.map +1 -1
  3. package/dist/kickflow-api/generated/audit-log/audit-log.zod.d.ts +17 -17
  4. package/dist/kickflow-api/generated/audit-log/audit-log.zod.js +90 -42
  5. package/dist/kickflow-api/generated/audit-log/audit-log.zod.js.map +1 -1
  6. package/dist/kickflow-api/generated/category/category.zod.d.ts +9 -9
  7. package/dist/kickflow-api/generated/category/category.zod.js +50 -31
  8. package/dist/kickflow-api/generated/category/category.zod.js.map +1 -1
  9. package/dist/kickflow-api/generated/comment/comment.zod.d.ts +67 -67
  10. package/dist/kickflow-api/generated/comment/comment.zod.js +492 -247
  11. package/dist/kickflow-api/generated/comment/comment.zod.js.map +1 -1
  12. package/dist/kickflow-api/generated/file/file.zod.d.ts +4 -4
  13. package/dist/kickflow-api/generated/file/file.zod.js +13 -13
  14. package/dist/kickflow-api/generated/file/file.zod.js.map +1 -1
  15. package/dist/kickflow-api/generated/folder/folder.zod.d.ts +56 -56
  16. package/dist/kickflow-api/generated/folder/folder.zod.js +374 -179
  17. package/dist/kickflow-api/generated/folder/folder.zod.js.map +1 -1
  18. package/dist/kickflow-api/generated/general-master/general-master.zod.d.ts +24 -24
  19. package/dist/kickflow-api/generated/general-master/general-master.zod.js +607 -267
  20. package/dist/kickflow-api/generated/general-master/general-master.zod.js.map +1 -1
  21. package/dist/kickflow-api/generated/grade/grade.zod.d.ts +17 -17
  22. package/dist/kickflow-api/generated/grade/grade.zod.js +157 -59
  23. package/dist/kickflow-api/generated/grade/grade.zod.js.map +1 -1
  24. package/dist/kickflow-api/generated/kickflowRESTAPIV1.js +1 -6
  25. package/dist/kickflow-api/generated/kickflowRESTAPIV1.js.map +1 -1
  26. package/dist/kickflow-api/generated/kickflowRESTAPIV1.schemas.d.ts +1243 -1679
  27. package/dist/kickflow-api/generated/kickflowRESTAPIV1.schemas.js +44 -96
  28. package/dist/kickflow-api/generated/kickflowRESTAPIV1.schemas.js.map +1 -1
  29. package/dist/kickflow-api/generated/organization-chart/organization-chart.zod.d.ts +20 -20
  30. package/dist/kickflow-api/generated/organization-chart/organization-chart.zod.js +189 -116
  31. package/dist/kickflow-api/generated/organization-chart/organization-chart.zod.js.map +1 -1
  32. package/dist/kickflow-api/generated/proxy-applicant/proxy-applicant.zod.d.ts +82 -82
  33. package/dist/kickflow-api/generated/proxy-applicant/proxy-applicant.zod.js +670 -286
  34. package/dist/kickflow-api/generated/proxy-applicant/proxy-applicant.zod.js.map +1 -1
  35. package/dist/kickflow-api/generated/proxy-approver/proxy-approver.zod.d.ts +82 -82
  36. package/dist/kickflow-api/generated/proxy-approver/proxy-approver.zod.js +670 -286
  37. package/dist/kickflow-api/generated/proxy-approver/proxy-approver.zod.js.map +1 -1
  38. package/dist/kickflow-api/generated/role/role.zod.d.ts +69 -69
  39. package/dist/kickflow-api/generated/role/role.zod.js +753 -281
  40. package/dist/kickflow-api/generated/role/role.zod.js.map +1 -1
  41. package/dist/kickflow-api/generated/route/route.zod.d.ts +91 -91
  42. package/dist/kickflow-api/generated/route/route.zod.js +795 -312
  43. package/dist/kickflow-api/generated/route/route.zod.js.map +1 -1
  44. package/dist/kickflow-api/generated/team/team.zod.d.ts +123 -123
  45. package/dist/kickflow-api/generated/team/team.zod.js +775 -373
  46. package/dist/kickflow-api/generated/team/team.zod.js.map +1 -1
  47. package/dist/kickflow-api/generated/ticket/ticket.zod.d.ts +8808 -8808
  48. package/dist/kickflow-api/generated/ticket/ticket.zod.js +130997 -41640
  49. package/dist/kickflow-api/generated/ticket/ticket.zod.js.map +1 -1
  50. package/dist/kickflow-api/generated/user/user.zod.d.ts +98 -98
  51. package/dist/kickflow-api/generated/user/user.zod.js +593 -291
  52. package/dist/kickflow-api/generated/user/user.zod.js.map +1 -1
  53. package/dist/kickflow-api/generated/workflow/workflow.zod.d.ts +175 -175
  54. package/dist/kickflow-api/generated/workflow/workflow.zod.js +2384 -810
  55. package/dist/kickflow-api/generated/workflow/workflow.zod.js.map +1 -1
  56. package/dist/kickflow-api/schema-registry.js +6 -2
  57. package/dist/kickflow-api/schema-registry.js.map +1 -1
  58. package/package.json +7 -7
@@ -7,826 +7,2400 @@ export const listWorkflowsQueryPageDefault = 1;
7
7
  export const listWorkflowsQueryPerPageDefault = 25;
8
8
  export const listWorkflowsQueryPerPageMax = 100;
9
9
  export const listWorkflowsQuerySortByRegExp = new RegExp('^(createdAt|updatedAt|name|status)(-asc|-desc)?$');
10
- export const listWorkflowsQueryParams = zod.object({
11
- "page": zod.number().min(1).default(listWorkflowsQueryPageDefault).describe('ページ。1が最初のページ。'),
12
- "perPage": zod.number().min(1).max(listWorkflowsQueryPerPageMax).default(listWorkflowsQueryPerPageDefault).describe('1ページあたりの件数'),
13
- "sortBy": zod.string().regex(listWorkflowsQuerySortByRegExp).optional().describe('ソート対象のフィールドと順序。指定可能なフィールド: createdAt, updatedAt, name, status'),
14
- "status": zod.array(zod.enum(['visible', 'invisible'])).optional().describe('ステータス')
10
+ export const ListWorkflowsQueryParams = zod.object({
11
+ page: zod
12
+ .number()
13
+ .min(1)
14
+ .default(listWorkflowsQueryPageDefault)
15
+ .describe('ページ。1が最初のページ。'),
16
+ perPage: zod
17
+ .number()
18
+ .min(1)
19
+ .max(listWorkflowsQueryPerPageMax)
20
+ .default(listWorkflowsQueryPerPageDefault)
21
+ .describe('1ページあたりの件数'),
22
+ sortBy: zod
23
+ .string()
24
+ .regex(listWorkflowsQuerySortByRegExp)
25
+ .optional()
26
+ .describe('ソート対象のフィールドと順序。指定可能なフィールド: createdAt, updatedAt, name, status'),
27
+ status: zod
28
+ .array(zod.enum(['visible', 'invisible']))
29
+ .optional()
30
+ .describe('ステータス'),
15
31
  });
16
32
  export const listWorkflowsResponseCodeRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
17
33
  export const listWorkflowsResponsePublicTicketDefault = false;
18
34
  export const listWorkflowsResponseVisibleToTeamMembersDefault = false;
19
35
  export const listWorkflowsResponseAllowEditingOfViewersDefault = true;
20
- export const listWorkflowsResponseAuthorEmailMax = 254;
21
- export const listWorkflowsResponseAuthorCodeMax = 100;
22
- export const listWorkflowsResponseAuthorFirstNameMax = 255;
23
- export const listWorkflowsResponseAuthorLastNameMax = 255;
24
- export const listWorkflowsResponseAuthorFullNameMax = 255;
25
- export const listWorkflowsResponseAuthorEmployeeIdMax = 30;
26
- export const listWorkflowsResponseVersionAuthorEmailMax = 254;
27
- export const listWorkflowsResponseVersionAuthorCodeMax = 100;
28
- export const listWorkflowsResponseVersionAuthorFirstNameMax = 255;
29
- export const listWorkflowsResponseVersionAuthorLastNameMax = 255;
30
- export const listWorkflowsResponseVersionAuthorFullNameMax = 255;
31
- export const listWorkflowsResponseVersionAuthorEmployeeIdMax = 30;
32
- export const listWorkflowsResponseFolderNameMax = 300;
33
- export const listWorkflowsResponseFolderCodeMax = 100;
34
- export const listWorkflowsResponseFolderWorkflowsCountMin = 0;
35
- export const listWorkflowsResponseFolderRoutesCountMin = 0;
36
- export const listWorkflowsResponseFolderPipelinesCountMin = 0;
36
+ export const listWorkflowsResponseAuthorOneEmailMax = 254;
37
+ export const listWorkflowsResponseAuthorOneCodeMax = 100;
38
+ export const listWorkflowsResponseAuthorOneFirstNameMax = 255;
39
+ export const listWorkflowsResponseAuthorOneLastNameMax = 255;
40
+ export const listWorkflowsResponseAuthorOneFullNameMax = 255;
41
+ export const listWorkflowsResponseAuthorOneEmployeeIdMax = 30;
42
+ export const listWorkflowsResponseVersionAuthorOneEmailMax = 254;
43
+ export const listWorkflowsResponseVersionAuthorOneCodeMax = 100;
44
+ export const listWorkflowsResponseVersionAuthorOneFirstNameMax = 255;
45
+ export const listWorkflowsResponseVersionAuthorOneLastNameMax = 255;
46
+ export const listWorkflowsResponseVersionAuthorOneFullNameMax = 255;
47
+ export const listWorkflowsResponseVersionAuthorOneEmployeeIdMax = 30;
48
+ export const listWorkflowsResponseFolderOneNameMax = 300;
49
+ export const listWorkflowsResponseFolderOneCodeMax = 100;
50
+ export const listWorkflowsResponseFolderOneWorkflowsCountMin = 0;
51
+ export const listWorkflowsResponseFolderOneRoutesCountMin = 0;
52
+ export const listWorkflowsResponseFolderOnePipelinesCountMin = 0;
37
53
  export const listWorkflowsResponseCategoriesItemNameMax = 100;
38
- export const listWorkflowsResponseItem = zod.object({
39
- "id": zod.string().describe('UUID'),
40
- "code": zod.string().regex(listWorkflowsResponseCodeRegExp).describe('コード'),
41
- "versionId": zod.string().describe('バージョンのUUID'),
42
- "versionNumber": zod.number().describe('バージョン番号'),
43
- "name": zod.string().describe('名前'),
44
- "description": zod.string().describe('説明'),
45
- "status": zod.enum(['visible', 'invisible', 'deleted']).describe('ステータス。visibleは有効、invisibleは無効、deletedは削除済み。'),
46
- "publicTicket": zod.boolean().describe('チケットがテナント全体に共有される場合true'),
47
- "visibleToManager": zod.enum(['none', 'direct', 'all']).describe('申請者の上長を共有ユーザーに追加するか。noneは追加しない、directは直属の上長のみ、allはすべての上長を表す。'),
48
- "visibleToTeamMembers": zod.boolean().describe('申請チームのメンバーが共有ユーザーに追加される場合true'),
49
- "titleDescription": zod.string().nullable().describe('タイトルの説明'),
50
- "ticketNumberFormat": zod.string().nullable().describe('チケット番号のフォーマット'),
51
- "overwritable": zod.boolean().describe('承認者による上書きが可能な場合true'),
52
- "createdAt": zod.string().describe('作成日時'),
53
- "updatedAt": zod.string().describe('更新日時'),
54
- "titleInputMode": zod.enum(['none', 'input', 'calculate']).describe('タイトル入力モード'),
55
- "titleFormula": zod.string().nullable().describe('タイトルの計算式'),
56
- "allowEditingOfViewers": zod.boolean().default(listWorkflowsResponseAllowEditingOfViewersDefault).describe('共有ユーザーの編集が可能な場合true'),
57
- "author": zod.union([zod.object({
58
- "id": zod.uuid().describe('UUID'),
59
- "email": zod.email().max(listWorkflowsResponseAuthorEmailMax).describe('メールアドレス'),
60
- "code": zod.string().max(listWorkflowsResponseAuthorCodeMax).describe('コード'),
61
- "firstName": zod.string().max(listWorkflowsResponseAuthorFirstNameMax).describe('名'),
62
- "lastName": zod.string().max(listWorkflowsResponseAuthorLastNameMax).describe(''),
63
- "fullName": zod.string().max(listWorkflowsResponseAuthorFullNameMax).describe('フルネーム'),
64
- "employeeId": zod.string().max(listWorkflowsResponseAuthorEmployeeIdMax).nullish().describe('社員番号'),
65
- "image": zod.object({
66
- "100x100": zod.string().nullable(),
67
- "64x64": zod.string().nullable(),
68
- "32x32": zod.string().nullable()
69
- }).describe('ユーザー画像のURL。サイズごとに複数のURLを返します。'),
70
- "status": zod.enum(['invited', 'activated', 'suspended', 'deactivated']).describe('ステータス'),
71
- "locale": zod.string().describe('ロケール(jaまたはen)'),
72
- "createdAt": zod.iso.datetime({}).describe('作成日時'),
73
- "updatedAt": zod.iso.datetime({}).describe('更新日時'),
74
- "deactivatedAt": zod.iso.datetime({}).nullish().describe('削除日時')
75
- }).describe('ユーザー'), zod.null()]).describe('作成者'),
76
- "versionAuthor": zod.union([zod.object({
77
- "id": zod.uuid().describe('UUID'),
78
- "email": zod.email().max(listWorkflowsResponseVersionAuthorEmailMax).describe('メールアドレス'),
79
- "code": zod.string().max(listWorkflowsResponseVersionAuthorCodeMax).describe('コード'),
80
- "firstName": zod.string().max(listWorkflowsResponseVersionAuthorFirstNameMax).describe('名'),
81
- "lastName": zod.string().max(listWorkflowsResponseVersionAuthorLastNameMax).describe('姓'),
82
- "fullName": zod.string().max(listWorkflowsResponseVersionAuthorFullNameMax).describe('フルネーム'),
83
- "employeeId": zod.string().max(listWorkflowsResponseVersionAuthorEmployeeIdMax).nullish().describe('社員番号'),
84
- "image": zod.object({
85
- "100x100": zod.string().nullable(),
86
- "64x64": zod.string().nullable(),
87
- "32x32": zod.string().nullable()
88
- }).describe('ユーザー画像のURL。サイズごとに複数のURLを返します。'),
89
- "status": zod.enum(['invited', 'activated', 'suspended', 'deactivated']).describe('ステータス'),
90
- "locale": zod.string().describe('ロケール(jaまたはen)'),
91
- "createdAt": zod.iso.datetime({}).describe('作成日時'),
92
- "updatedAt": zod.iso.datetime({}).describe('更新日時'),
93
- "deactivatedAt": zod.iso.datetime({}).nullish().describe('削除日時')
94
- }).describe('ユーザー'), zod.null()]).describe('バージョン作成者'),
95
- "folder": zod.object({
96
- "id": zod.uuid().describe('UUID'),
97
- "name": zod.string().max(listWorkflowsResponseFolderNameMax).describe('名前'),
98
- "code": zod.string().max(listWorkflowsResponseFolderCodeMax).describe('コード'),
99
- "description": zod.string().nullish().describe('説明'),
100
- "workflowsCount": zod.number().min(listWorkflowsResponseFolderWorkflowsCountMin).describe('フォルダ内のワークフロー数'),
101
- "routesCount": zod.number().min(listWorkflowsResponseFolderRoutesCountMin).describe('フォルダ内の経路数'),
102
- "pipelinesCount": zod.number().min(listWorkflowsResponseFolderPipelinesCountMin).describe('フォルダ内のパイプライン数'),
103
- "createdAt": zod.iso.datetime({}).describe('作成日時'),
104
- "updatedAt": zod.iso.datetime({}).describe('更新日時')
105
- }).describe('フォルダ').describe('フォルダ'),
106
- "categories": zod.array(zod.object({
107
- "id": zod.uuid().describe('UUID'),
108
- "name": zod.string().max(listWorkflowsResponseCategoriesItemNameMax).describe('名前'),
109
- "createdAt": zod.iso.datetime({}).describe('作成日時'),
110
- "updatedAt": zod.iso.datetime({}).describe('更新日時')
111
- }).describe('カテゴリ')).describe('カテゴリの配列')
112
- }).describe('ワークフロー');
113
- export const listWorkflowsResponse = zod.array(listWorkflowsResponseItem);
54
+ export const ListWorkflowsResponseItem = zod
55
+ .object({
56
+ id: zod.string().describe('UUID'),
57
+ code: zod
58
+ .string()
59
+ .regex(listWorkflowsResponseCodeRegExp)
60
+ .describe('コード'),
61
+ versionId: zod.string().describe('バージョンのUUID'),
62
+ versionNumber: zod.number().describe('バージョン番号'),
63
+ name: zod.string().describe('名前'),
64
+ description: zod.string().describe('説明'),
65
+ status: zod
66
+ .enum(['visible', 'invisible', 'deleted'])
67
+ .describe('ステータス。visibleは有効、invisibleは無効、deletedは削除済み。'),
68
+ publicTicket: zod
69
+ .boolean()
70
+ .default(listWorkflowsResponsePublicTicketDefault)
71
+ .describe('チケットがテナント全体に共有される場合true'),
72
+ visibleToManager: zod
73
+ .enum(['none', 'direct', 'all'])
74
+ .describe('申請者の上長を共有ユーザーに追加するか。noneは追加しない、directは直属の上長のみ、allはすべての上長を表す。'),
75
+ visibleToTeamMembers: zod
76
+ .boolean()
77
+ .default(listWorkflowsResponseVisibleToTeamMembersDefault)
78
+ .describe('申請チームのメンバーが共有ユーザーに追加される場合true'),
79
+ titleDescription: zod.string().nullable().describe('タイトルの説明'),
80
+ ticketNumberFormat: zod
81
+ .string()
82
+ .nullable()
83
+ .describe('チケット番号のフォーマット'),
84
+ overwritable: zod.boolean().describe('承認者による上書きが可能な場合true'),
85
+ createdAt: zod.string().describe('作成日時'),
86
+ updatedAt: zod.string().describe('更新日時'),
87
+ titleInputMode: zod
88
+ .enum(['none', 'input', 'calculate'])
89
+ .describe('タイトル入力モード'),
90
+ titleFormula: zod.string().nullable().describe('タイトルの計算式'),
91
+ allowEditingOfViewers: zod
92
+ .boolean()
93
+ .default(listWorkflowsResponseAllowEditingOfViewersDefault)
94
+ .describe('共有ユーザーの編集が可能な場合true'),
95
+ author: zod
96
+ .union([
97
+ zod
98
+ .object({
99
+ id: zod.uuid().describe('UUID'),
100
+ email: zod
101
+ .email()
102
+ .max(listWorkflowsResponseAuthorOneEmailMax)
103
+ .describe('メールアドレス'),
104
+ code: zod
105
+ .string()
106
+ .max(listWorkflowsResponseAuthorOneCodeMax)
107
+ .describe('コード'),
108
+ firstName: zod
109
+ .string()
110
+ .max(listWorkflowsResponseAuthorOneFirstNameMax)
111
+ .describe('名'),
112
+ lastName: zod
113
+ .string()
114
+ .max(listWorkflowsResponseAuthorOneLastNameMax)
115
+ .describe(''),
116
+ fullName: zod
117
+ .string()
118
+ .max(listWorkflowsResponseAuthorOneFullNameMax)
119
+ .describe('フルネーム'),
120
+ employeeId: zod
121
+ .string()
122
+ .max(listWorkflowsResponseAuthorOneEmployeeIdMax)
123
+ .nullish()
124
+ .describe('社員番号'),
125
+ image: zod
126
+ .object({
127
+ '100x100': zod.string().nullable(),
128
+ '64x64': zod.string().nullable(),
129
+ '32x32': zod.string().nullable(),
130
+ })
131
+ .describe('ユーザー画像のURL。サイズごとに複数のURLを返します。'),
132
+ status: zod
133
+ .enum(['invited', 'activated', 'suspended', 'deactivated'])
134
+ .describe('ステータス'),
135
+ locale: zod.string().describe('ロケール(jaまたはen)'),
136
+ createdAt: zod.iso.datetime({}).describe('作成日時'),
137
+ updatedAt: zod.iso.datetime({}).describe('更新日時'),
138
+ deactivatedAt: zod.iso.datetime({}).nullish().describe('削除日時'),
139
+ })
140
+ .describe('ユーザー'),
141
+ zod.null(),
142
+ ])
143
+ .describe('作成者'),
144
+ versionAuthor: zod
145
+ .union([
146
+ zod
147
+ .object({
148
+ id: zod.uuid().describe('UUID'),
149
+ email: zod
150
+ .email()
151
+ .max(listWorkflowsResponseVersionAuthorOneEmailMax)
152
+ .describe('メールアドレス'),
153
+ code: zod
154
+ .string()
155
+ .max(listWorkflowsResponseVersionAuthorOneCodeMax)
156
+ .describe('コード'),
157
+ firstName: zod
158
+ .string()
159
+ .max(listWorkflowsResponseVersionAuthorOneFirstNameMax)
160
+ .describe('名'),
161
+ lastName: zod
162
+ .string()
163
+ .max(listWorkflowsResponseVersionAuthorOneLastNameMax)
164
+ .describe('姓'),
165
+ fullName: zod
166
+ .string()
167
+ .max(listWorkflowsResponseVersionAuthorOneFullNameMax)
168
+ .describe('フルネーム'),
169
+ employeeId: zod
170
+ .string()
171
+ .max(listWorkflowsResponseVersionAuthorOneEmployeeIdMax)
172
+ .nullish()
173
+ .describe('社員番号'),
174
+ image: zod
175
+ .object({
176
+ '100x100': zod.string().nullable(),
177
+ '64x64': zod.string().nullable(),
178
+ '32x32': zod.string().nullable(),
179
+ })
180
+ .describe('ユーザー画像のURL。サイズごとに複数のURLを返します。'),
181
+ status: zod
182
+ .enum(['invited', 'activated', 'suspended', 'deactivated'])
183
+ .describe('ステータス'),
184
+ locale: zod.string().describe('ロケール(jaまたはen)'),
185
+ createdAt: zod.iso.datetime({}).describe('作成日時'),
186
+ updatedAt: zod.iso.datetime({}).describe('更新日時'),
187
+ deactivatedAt: zod.iso.datetime({}).nullish().describe('削除日時'),
188
+ })
189
+ .describe('ユーザー'),
190
+ zod.null(),
191
+ ])
192
+ .describe('バージョン作成者'),
193
+ folder: zod
194
+ .object({
195
+ id: zod.uuid().describe('UUID'),
196
+ name: zod
197
+ .string()
198
+ .max(listWorkflowsResponseFolderOneNameMax)
199
+ .describe('名前'),
200
+ code: zod
201
+ .string()
202
+ .max(listWorkflowsResponseFolderOneCodeMax)
203
+ .describe('コード'),
204
+ description: zod.string().nullish().describe('説明'),
205
+ workflowsCount: zod
206
+ .number()
207
+ .min(listWorkflowsResponseFolderOneWorkflowsCountMin)
208
+ .describe('フォルダ内のワークフロー数'),
209
+ routesCount: zod
210
+ .number()
211
+ .min(listWorkflowsResponseFolderOneRoutesCountMin)
212
+ .describe('フォルダ内の経路数'),
213
+ pipelinesCount: zod
214
+ .number()
215
+ .min(listWorkflowsResponseFolderOnePipelinesCountMin)
216
+ .describe('フォルダ内のパイプライン数'),
217
+ createdAt: zod.iso.datetime({}).describe('作成日時'),
218
+ updatedAt: zod.iso.datetime({}).describe('更新日時'),
219
+ })
220
+ .describe('フォルダ')
221
+ .describe('フォルダ'),
222
+ categories: zod
223
+ .array(zod
224
+ .object({
225
+ id: zod.uuid().describe('UUID'),
226
+ name: zod
227
+ .string()
228
+ .max(listWorkflowsResponseCategoriesItemNameMax)
229
+ .describe('名前'),
230
+ createdAt: zod.iso.datetime({}).describe('作成日時'),
231
+ updatedAt: zod.iso.datetime({}).describe('更新日時'),
232
+ })
233
+ .describe('カテゴリ'))
234
+ .describe('カテゴリの配列'),
235
+ })
236
+ .describe('ワークフロー');
237
+ export const ListWorkflowsResponse = zod.array(ListWorkflowsResponseItem);
114
238
  /**
115
239
  * 指定したIDのワークフローを取得します。
116
240
  * @summary ワークフローを取得
117
241
  */
118
242
  export const getWorkflowPathWorkflowIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
119
- export const getWorkflowParams = zod.object({
120
- "workflowId": zod.string().regex(getWorkflowPathWorkflowIdRegExp).describe('ワークフローのUUIDまたはコード')
243
+ export const GetWorkflowParams = zod.object({
244
+ workflowId: zod
245
+ .string()
246
+ .regex(getWorkflowPathWorkflowIdRegExp)
247
+ .describe('ワークフローのUUIDまたはコード'),
121
248
  });
122
- export const getWorkflowResponseCodeRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
123
- export const getWorkflowResponsePublicTicketDefault = false;
124
- export const getWorkflowResponseVisibleToTeamMembersDefault = false;
125
- export const getWorkflowResponseAllowEditingOfViewersDefault = true;
126
- export const getWorkflowResponseAuthorEmailMax = 254;
127
- export const getWorkflowResponseAuthorCodeMax = 100;
128
- export const getWorkflowResponseAuthorFirstNameMax = 255;
129
- export const getWorkflowResponseAuthorLastNameMax = 255;
130
- export const getWorkflowResponseAuthorFullNameMax = 255;
131
- export const getWorkflowResponseAuthorEmployeeIdMax = 30;
132
- export const getWorkflowResponseVersionAuthorEmailMax = 254;
133
- export const getWorkflowResponseVersionAuthorCodeMax = 100;
134
- export const getWorkflowResponseVersionAuthorFirstNameMax = 255;
135
- export const getWorkflowResponseVersionAuthorLastNameMax = 255;
136
- export const getWorkflowResponseVersionAuthorFullNameMax = 255;
137
- export const getWorkflowResponseVersionAuthorEmployeeIdMax = 30;
138
- export const getWorkflowResponseFolderNameMax = 300;
139
- export const getWorkflowResponseFolderCodeMax = 100;
140
- export const getWorkflowResponseFolderWorkflowsCountMin = 0;
141
- export const getWorkflowResponseFolderRoutesCountMin = 0;
142
- export const getWorkflowResponseFolderPipelinesCountMin = 0;
143
- export const getWorkflowResponseCategoriesItemNameMax = 100;
144
- export const getWorkflowResponseSectionListItemFormFieldsItemTitleMax = 300;
145
- export const getWorkflowResponseSectionListItemFormFieldsItemCodeMax = 100;
146
- export const getWorkflowResponseSectionListItemFormFieldsItemMinLengthMin = 0;
147
- export const getWorkflowResponseSectionListItemFormFieldsItemMaxLengthMin = 0;
148
- export const getWorkflowResponseSectionListItemFormFieldsItemDecimalDigitMin = 0;
149
- export const getWorkflowResponseSectionListItemFormFieldsItemGeneralMasterCodeMax = 100;
150
- export const getWorkflowResponseSectionListItemFormFieldsItemGeneralMasterNameMax = 300;
151
- export const getWorkflowResponseSectionListItemFormFieldsItemGeneralMasterFieldsItemTitleMax = 300;
152
- export const getWorkflowResponseSectionListItemFormFieldsItemGeneralMasterFieldsItemCodeMax = 100;
153
- export const getWorkflowResponseSectionListItemFormFieldsItemDefaultGeneralMasterItemCodeMax = 100;
154
- export const getWorkflowResponseSectionListItemFormFieldsItemDefaultGeneralMasterItemNameMax = 100;
155
- export const getWorkflowResponseSectionListItemFormFieldsItemDefaultGeneralMasterItemInputsItemFieldTitleMax = 300;
156
- export const getWorkflowResponseSectionListItemFormFieldsItemDefaultGeneralMasterItemInputsItemFieldCodeMax = 100;
157
- export const getWorkflowResponseSectionListItemFormFieldsItemExternalApiSettingMappingsItemFormFieldTitleMax = 300;
158
- export const getWorkflowResponseSectionListItemFormFieldsItemExternalApiSettingMappingsItemFormFieldCodeMax = 100;
159
- export const getWorkflowResponseSectionListItemFormFieldsItemExternalApiSettingMappingsItemFormFieldMinLengthMin = 0;
160
- export const getWorkflowResponseSectionListItemFormFieldsItemExternalApiSettingMappingsItemFormFieldMaxLengthMin = 0;
161
- export const getWorkflowResponseSectionListItemFormFieldsItemExternalApiSettingMappingsItemFormFieldDecimalDigitMin = 0;
162
- export const getWorkflowResponseSectionListItemFormFieldsItemKintoneAppSettingFormFieldTitleMax = 300;
163
- export const getWorkflowResponseSectionListItemFormFieldsItemKintoneAppSettingFormFieldCodeMax = 100;
164
- export const getWorkflowResponseSectionListItemFormFieldsItemKintoneAppSettingFormFieldMinLengthMin = 0;
165
- export const getWorkflowResponseSectionListItemFormFieldsItemKintoneAppSettingFormFieldMaxLengthMin = 0;
166
- export const getWorkflowResponseSectionListItemFormFieldsItemKintoneAppSettingFormFieldDecimalDigitMin = 0;
167
- export const getWorkflowResponseSectionListItemFormFieldsItemKintoneAppSettingMappingsItemFormFieldTitleMax = 300;
168
- export const getWorkflowResponseSectionListItemFormFieldsItemKintoneAppSettingMappingsItemFormFieldCodeMax = 100;
169
- export const getWorkflowResponseSectionListItemFormFieldsItemKintoneAppSettingMappingsItemFormFieldMinLengthMin = 0;
170
- export const getWorkflowResponseSectionListItemFormFieldsItemKintoneAppSettingMappingsItemFormFieldMaxLengthMin = 0;
171
- export const getWorkflowResponseSectionListItemFormFieldsItemKintoneAppSettingMappingsItemFormFieldDecimalDigitMin = 0;
172
- export const getWorkflowResponseSectionListItemFormFieldsItemClimberCloudSettingFormFieldTitleMax = 300;
173
- export const getWorkflowResponseSectionListItemFormFieldsItemClimberCloudSettingFormFieldCodeMax = 100;
174
- export const getWorkflowResponseSectionListItemFormFieldsItemClimberCloudSettingFormFieldMinLengthMin = 0;
175
- export const getWorkflowResponseSectionListItemFormFieldsItemClimberCloudSettingFormFieldMaxLengthMin = 0;
176
- export const getWorkflowResponseSectionListItemFormFieldsItemClimberCloudSettingFormFieldDecimalDigitMin = 0;
177
- export const getWorkflowResponseSectionListItemFormFieldsItemClimberCloudSettingMappingsItemFormFieldTitleMax = 300;
178
- export const getWorkflowResponseSectionListItemFormFieldsItemClimberCloudSettingMappingsItemFormFieldCodeMax = 100;
179
- export const getWorkflowResponseSectionListItemFormFieldsItemClimberCloudSettingMappingsItemFormFieldMinLengthMin = 0;
180
- export const getWorkflowResponseSectionListItemFormFieldsItemClimberCloudSettingMappingsItemFormFieldMaxLengthMin = 0;
181
- export const getWorkflowResponseSectionListItemFormFieldsItemClimberCloudSettingMappingsItemFormFieldDecimalDigitMin = 0;
182
- export const getWorkflowResponseSectionListItemSlipFieldsItemGeneralMasterCodeMax = 100;
183
- export const getWorkflowResponseSectionListItemSlipFieldsItemGeneralMasterNameMax = 300;
184
- export const getWorkflowResponseSectionListItemSlipFieldsItemGeneralMasterFieldsItemTitleMax = 300;
185
- export const getWorkflowResponseSectionListItemSlipFieldsItemGeneralMasterFieldsItemCodeMax = 100;
186
- export const getWorkflowResponseSectionListItemSlipFieldsItemDefaultGeneralMasterItemCodeMax = 100;
187
- export const getWorkflowResponseSectionListItemSlipFieldsItemDefaultGeneralMasterItemNameMax = 100;
188
- export const getWorkflowResponseSectionListItemSlipFieldsItemDefaultGeneralMasterItemInputsItemFieldTitleMax = 300;
189
- export const getWorkflowResponseSectionListItemSlipFieldsItemDefaultGeneralMasterItemInputsItemFieldCodeMax = 100;
190
- export const getWorkflowResponseTicketViewersItemUserEmailMax = 254;
191
- export const getWorkflowResponseTicketViewersItemUserCodeMax = 100;
192
- export const getWorkflowResponseTicketViewersItemUserFirstNameMax = 255;
193
- export const getWorkflowResponseTicketViewersItemUserLastNameMax = 255;
194
- export const getWorkflowResponseTicketViewersItemUserFullNameMax = 255;
195
- export const getWorkflowResponseTicketViewersItemUserEmployeeIdMax = 30;
196
- export const getWorkflowResponseTicketViewersItemTeamNameMax = 300;
197
- export const getWorkflowResponseTicketViewersItemTeamCodeMax = 100;
198
- export const getWorkflowResponseTicketViewersItemTeamNotesMax = 10000;
199
- export const getWorkflowResponseTicketViewersItemTeamUsersCountMin = 0;
200
- export const getWorkflowResponseTicketViewersItemGradeNameMax = 300;
201
- export const getWorkflowResponseTicketViewersItemGradeLevelMin = 0;
202
- export const getWorkflowResponseTicketViewersItemGradeLevelMax = 255;
203
- export const getWorkflowResponseTicketViewersItemGradeCodeMax = 100;
204
- export const getWorkflowResponseTicketViewersItemGradeIsDefaultDefault = false;
205
- export const getWorkflowResponseRouteConditionsItemRouteAuthorEmailMax = 254;
206
- export const getWorkflowResponseRouteConditionsItemRouteAuthorCodeMax = 100;
207
- export const getWorkflowResponseRouteConditionsItemRouteAuthorFirstNameMax = 255;
208
- export const getWorkflowResponseRouteConditionsItemRouteAuthorLastNameMax = 255;
209
- export const getWorkflowResponseRouteConditionsItemRouteAuthorFullNameMax = 255;
210
- export const getWorkflowResponseRouteConditionsItemRouteAuthorEmployeeIdMax = 30;
211
- export const getWorkflowResponseRouteConditionsItemRouteVersionAuthorEmailMax = 254;
212
- export const getWorkflowResponseRouteConditionsItemRouteVersionAuthorCodeMax = 100;
213
- export const getWorkflowResponseRouteConditionsItemRouteVersionAuthorFirstNameMax = 255;
214
- export const getWorkflowResponseRouteConditionsItemRouteVersionAuthorLastNameMax = 255;
215
- export const getWorkflowResponseRouteConditionsItemRouteVersionAuthorFullNameMax = 255;
216
- export const getWorkflowResponseRouteConditionsItemRouteVersionAuthorEmployeeIdMax = 30;
217
- export const getWorkflowResponseRouteConditionsItemRouteFolderNameMax = 300;
218
- export const getWorkflowResponseRouteConditionsItemRouteFolderCodeMax = 100;
219
- export const getWorkflowResponseRouteConditionsItemRouteFolderWorkflowsCountMin = 0;
220
- export const getWorkflowResponseRouteConditionsItemRouteFolderRoutesCountMin = 0;
221
- export const getWorkflowResponseRouteConditionsItemRouteFolderPipelinesCountMin = 0;
222
- export const getWorkflowResponseRouteConditionsItemConditionFieldsItemFormFieldTitleMax = 300;
223
- export const getWorkflowResponseRouteConditionsItemConditionFieldsItemFormFieldCodeMax = 100;
224
- export const getWorkflowResponseRouteConditionsItemConditionFieldsItemFormFieldMinLengthMin = 0;
225
- export const getWorkflowResponseRouteConditionsItemConditionFieldsItemFormFieldMaxLengthMin = 0;
226
- export const getWorkflowResponseRouteConditionsItemConditionFieldsItemFormFieldDecimalDigitMin = 0;
227
- export const getWorkflowResponseRouteConditionsItemConditionFieldsItemGradeNameMax = 300;
228
- export const getWorkflowResponseRouteConditionsItemConditionFieldsItemGradeLevelMin = 0;
229
- export const getWorkflowResponseRouteConditionsItemConditionFieldsItemGradeLevelMax = 255;
230
- export const getWorkflowResponseRouteConditionsItemConditionFieldsItemGradeCodeMax = 100;
231
- export const getWorkflowResponseRouteConditionsItemConditionFieldsItemGradeIsDefaultDefault = false;
232
- export const getWorkflowResponseRouteConditionsItemConditionFieldsItemTeamNameMax = 300;
233
- export const getWorkflowResponseRouteConditionsItemConditionFieldsItemTeamCodeMax = 100;
234
- export const getWorkflowResponseRouteConditionsItemConditionFieldsItemTeamNotesMax = 10000;
235
- export const getWorkflowResponseRouteConditionsItemConditionFieldsItemTeamUsersCountMin = 0;
236
- export const getWorkflowResponseRouteConditionsItemConditionFieldsItemGeneralMasterItemCodeMax = 100;
237
- export const getWorkflowResponseRouteConditionsItemConditionFieldsItemGeneralMasterItemNameMax = 100;
238
- export const getWorkflowResponseRouteConditionsItemConditionFieldsItemGeneralMasterItemInputsItemFieldTitleMax = 300;
239
- export const getWorkflowResponseRouteConditionsItemConditionFieldsItemGeneralMasterItemInputsItemFieldCodeMax = 100;
240
- export const getWorkflowResponse = zod.object({
241
- "id": zod.string().describe('UUID'),
242
- "code": zod.string().regex(getWorkflowResponseCodeRegExp).describe('コード'),
243
- "versionId": zod.string().describe('バージョンのUUID'),
244
- "versionNumber": zod.number().describe('バージョン番号'),
245
- "name": zod.string().describe('名前'),
246
- "description": zod.string().describe('説明'),
247
- "status": zod.enum(['visible', 'invisible', 'deleted']).describe('ステータス。visibleは有効、invisibleは無効、deletedは削除済み。'),
248
- "publicTicket": zod.boolean().describe('チケットがテナント全体に共有される場合true'),
249
- "visibleToManager": zod.enum(['none', 'direct', 'all']).describe('申請者の上長を共有ユーザーに追加するか。noneは追加しない、directは直属の上長のみ、allはすべての上長を表す。'),
250
- "visibleToTeamMembers": zod.boolean().describe('申請チームのメンバーが共有ユーザーに追加される場合true'),
251
- "titleDescription": zod.string().nullable().describe('タイトルの説明'),
252
- "ticketNumberFormat": zod.string().nullable().describe('チケット番号のフォーマット'),
253
- "overwritable": zod.boolean().describe('承認者による上書きが可能な場合true'),
254
- "createdAt": zod.string().describe('作成日時'),
255
- "updatedAt": zod.string().describe('更新日時'),
256
- "titleInputMode": zod.enum(['none', 'input', 'calculate']).describe('タイトル入力モード'),
257
- "titleFormula": zod.string().nullable().describe('タイトルの計算式'),
258
- "allowEditingOfViewers": zod.boolean().default(getWorkflowResponseAllowEditingOfViewersDefault).describe('共有ユーザーの編集が可能な場合true'),
259
- "author": zod.union([zod.object({
260
- "id": zod.uuid().describe('UUID'),
261
- "email": zod.email().max(getWorkflowResponseAuthorEmailMax).describe('メールアドレス'),
262
- "code": zod.string().max(getWorkflowResponseAuthorCodeMax).describe('コード'),
263
- "firstName": zod.string().max(getWorkflowResponseAuthorFirstNameMax).describe('名'),
264
- "lastName": zod.string().max(getWorkflowResponseAuthorLastNameMax).describe(''),
265
- "fullName": zod.string().max(getWorkflowResponseAuthorFullNameMax).describe('フルネーム'),
266
- "employeeId": zod.string().max(getWorkflowResponseAuthorEmployeeIdMax).nullish().describe('社員番号'),
267
- "image": zod.object({
268
- "100x100": zod.string().nullable(),
269
- "64x64": zod.string().nullable(),
270
- "32x32": zod.string().nullable()
271
- }).describe('ユーザー画像のURL。サイズごとに複数のURLを返します。'),
272
- "status": zod.enum(['invited', 'activated', 'suspended', 'deactivated']).describe('ステータス'),
273
- "locale": zod.string().describe('ロケール(jaまたはen)'),
274
- "createdAt": zod.iso.datetime({}).describe('作成日時'),
275
- "updatedAt": zod.iso.datetime({}).describe('更新日時'),
276
- "deactivatedAt": zod.iso.datetime({}).nullish().describe('削除日時')
277
- }).describe('ユーザー'), zod.null()]).describe('作成者'),
278
- "versionAuthor": zod.union([zod.object({
279
- "id": zod.uuid().describe('UUID'),
280
- "email": zod.email().max(getWorkflowResponseVersionAuthorEmailMax).describe('メールアドレス'),
281
- "code": zod.string().max(getWorkflowResponseVersionAuthorCodeMax).describe('コード'),
282
- "firstName": zod.string().max(getWorkflowResponseVersionAuthorFirstNameMax).describe('名'),
283
- "lastName": zod.string().max(getWorkflowResponseVersionAuthorLastNameMax).describe('姓'),
284
- "fullName": zod.string().max(getWorkflowResponseVersionAuthorFullNameMax).describe('フルネーム'),
285
- "employeeId": zod.string().max(getWorkflowResponseVersionAuthorEmployeeIdMax).nullish().describe('社員番号'),
286
- "image": zod.object({
287
- "100x100": zod.string().nullable(),
288
- "64x64": zod.string().nullable(),
289
- "32x32": zod.string().nullable()
290
- }).describe('ユーザー画像のURL。サイズごとに複数のURLを返します。'),
291
- "status": zod.enum(['invited', 'activated', 'suspended', 'deactivated']).describe('ステータス'),
292
- "locale": zod.string().describe('ロケール(jaまたはen)'),
293
- "createdAt": zod.iso.datetime({}).describe('作成日時'),
294
- "updatedAt": zod.iso.datetime({}).describe('更新日時'),
295
- "deactivatedAt": zod.iso.datetime({}).nullish().describe('削除日時')
296
- }).describe('ユーザー'), zod.null()]).describe('バージョン作成者'),
297
- "folder": zod.object({
298
- "id": zod.uuid().describe('UUID'),
299
- "name": zod.string().max(getWorkflowResponseFolderNameMax).describe('名前'),
300
- "code": zod.string().max(getWorkflowResponseFolderCodeMax).describe('コード'),
301
- "description": zod.string().nullish().describe('説明'),
302
- "workflowsCount": zod.number().min(getWorkflowResponseFolderWorkflowsCountMin).describe('フォルダ内のワークフロー数'),
303
- "routesCount": zod.number().min(getWorkflowResponseFolderRoutesCountMin).describe('フォルダ内の経路数'),
304
- "pipelinesCount": zod.number().min(getWorkflowResponseFolderPipelinesCountMin).describe('フォルダ内のパイプライン数'),
305
- "createdAt": zod.iso.datetime({}).describe('作成日時'),
306
- "updatedAt": zod.iso.datetime({}).describe('更新日時')
307
- }).describe('フォルダ').describe('フォルダ'),
308
- "categories": zod.array(zod.object({
309
- "id": zod.uuid().describe('UUID'),
310
- "name": zod.string().max(getWorkflowResponseCategoriesItemNameMax).describe('名前'),
311
- "createdAt": zod.iso.datetime({}).describe('作成日時'),
312
- "updatedAt": zod.iso.datetime({}).describe('更新日時')
313
- }).describe('カテゴリ')).describe('カテゴリの配列')
314
- }).describe('ワークフロー').and(zod.object({
315
- "sectionList": zod.array(zod.object({
316
- "sectionType": zod.enum(['form', 'slip']),
317
- "title": zod.string().nullable().describe('タイトル'),
318
- "description": zod.string().nullable().describe('説明'),
319
- "id": zod.uuid().optional().describe('フォームセクションのID(UUID)。明細セクションには含まれません。'),
320
- "formFields": zod.array(zod.object({
321
- "id": zod.uuid().describe('UUID'),
322
- "title": zod.string().max(getWorkflowResponseSectionListItemFormFieldsItemTitleMax).describe('説明'),
323
- "description": zod.string().nullable().describe('説明'),
324
- "fieldType": zod.enum(['text', 'text_long', 'number', 'integer', 'checkbox', 'pull_down', 'date', 'file', 'master', 'user', 'team', 'ticket', 'calculation', 'button_api', 'button_kintone']).describe('フィールドの型'),
325
- "required": zod.boolean().describe('必須項目かどうか'),
326
- "approver": zod.boolean().describe('承認者が編集可能かどうか'),
327
- "author": zod.boolean().optional().describe('申請者が編集可能かどうか'),
328
- "options": zod.array(zod.string()).nullable().describe('選択肢のリスト。型がcheckboxまたはpull_downのときのみ値が入ります。'),
329
- "code": zod.string().max(getWorkflowResponseSectionListItemFormFieldsItemCodeMax).describe('コード'),
330
- "size": zod.enum(['full', 'half']).describe('フォームサイズ。fullの場合全幅、halfの場合1\/2になります。'),
331
- "regexpFormat": zod.string().nullable().describe('正規表現フォーマット'),
332
- "formula": zod.string().nullable().describe('計算式。\n型がcalculationのときのみ値が入ります。'),
333
- "defaultValue": zod.string().nullable().describe('初期値'),
334
- "minValue": zod.number().nullable().describe('最小値'),
335
- "maxValue": zod.number().nullable().describe('最大値'),
336
- "minLength": zod.number().min(getWorkflowResponseSectionListItemFormFieldsItemMinLengthMin).nullable().describe('最小文字数'),
337
- "maxLength": zod.number().min(getWorkflowResponseSectionListItemFormFieldsItemMaxLengthMin).nullable().describe('最大文字数'),
338
- "decimalDigit": zod.number().min(getWorkflowResponseSectionListItemFormFieldsItemDecimalDigitMin).nullable().describe('小数の桁数'),
339
- "delimited": zod.boolean().nullable().describe('カンマ区切りで表示する場合true。\n整数、数値、自動計算フィールド以外ではnullが入ります。'),
340
- "prefix": zod.string().nullable().describe('単位(接頭辞)'),
341
- "suffix": zod.string().nullable().describe('単位(接尾辞)'),
342
- "hidden": zod.boolean().nullish().describe('隠しフィールドである場合true'),
343
- "readonlyOnUi": zod.boolean().nullish().describe('trueの時、申請者・承認者が画面上から値を入力することを禁止します。\n外部API連携(ボタン)による代入や、REST API経由での入力はこのオプションの対象外です。')
344
- }).describe('フォームフィールド').and(zod.object({
345
- "generalMaster": zod.union([zod.object({
346
- "id": zod.uuid().describe('UUID'),
347
- "code": zod.string().max(getWorkflowResponseSectionListItemFormFieldsItemGeneralMasterCodeMax).describe('コード'),
348
- "name": zod.string().max(getWorkflowResponseSectionListItemFormFieldsItemGeneralMasterNameMax).describe('名前'),
349
- "description": zod.string().nullable().describe('説明'),
350
- "createdAt": zod.iso.datetime({}).describe('作成日時'),
351
- "updatedAt": zod.iso.datetime({}).describe('更新日時'),
352
- "fields": zod.array(zod.object({
353
- "id": zod.uuid().describe('UUID'),
354
- "title": zod.string().max(getWorkflowResponseSectionListItemFormFieldsItemGeneralMasterFieldsItemTitleMax).describe('フィールド名'),
355
- "description": zod.string().nullable().describe('フィールドの説明'),
356
- "code": zod.string().max(getWorkflowResponseSectionListItemFormFieldsItemGeneralMasterFieldsItemCodeMax).describe('フィールドのコード'),
357
- "fieldType": zod.enum(['text', 'text_long', 'number', 'integer', 'checkbox', 'pull_down', 'date']).describe('フィールドの型'),
358
- "required": zod.boolean().describe('必須項目かどうか'),
359
- "visible": zod.boolean().describe('管理者以外も閲覧可能な場合true'),
360
- "options": zod.array(zod.string()).nullable().describe('選択肢。fieldTypeがcheckboxまたはpull_downのときのみ。'),
361
- "createdAt": zod.iso.datetime({}).describe('作成日時'),
362
- "updatedAt": zod.iso.datetime({}).describe('更新日時')
363
- }).describe('汎用マスタのカスタムフィールド')).describe('カスタムフィールドの配列')
364
- }).describe('汎用マスタ'), zod.null()]).optional().describe('汎用マスタ(汎用マスタフィールドの場合)'),
365
- "defaultGeneralMasterItem": zod.union([zod.object({
366
- "id": zod.uuid().describe('UUID'),
367
- "code": zod.string().max(getWorkflowResponseSectionListItemFormFieldsItemDefaultGeneralMasterItemCodeMax).describe('コード'),
368
- "name": zod.string().max(getWorkflowResponseSectionListItemFormFieldsItemDefaultGeneralMasterItemNameMax).describe('名前'),
369
- "description": zod.string().nullable().describe('説明'),
370
- "createdAt": zod.iso.datetime({}).describe('作成日時'),
371
- "updatedAt": zod.iso.datetime({}).describe('更新日時'),
372
- "startsOn": zod.iso.date().nullable().describe('有効期限の開始日'),
373
- "endsOn": zod.iso.date().nullable().describe('有効期限の終了日'),
374
- "inputs": zod.array(zod.object({
375
- "id": zod.uuid().describe('UUID'),
376
- "value": zod.union([zod.string().nullable(), zod.array(zod.string())]).describe('入力値'),
377
- "createdAt": zod.iso.datetime({}).describe('作成日時'),
378
- "updatedAt": zod.iso.datetime({}).describe('更新日時'),
379
- "field": zod.object({
380
- "id": zod.uuid().describe('UUID'),
381
- "title": zod.string().max(getWorkflowResponseSectionListItemFormFieldsItemDefaultGeneralMasterItemInputsItemFieldTitleMax).describe('フィールド名'),
382
- "description": zod.string().nullable().describe('フィールドの説明'),
383
- "code": zod.string().max(getWorkflowResponseSectionListItemFormFieldsItemDefaultGeneralMasterItemInputsItemFieldCodeMax).describe('フィールドのコード'),
384
- "fieldType": zod.enum(['text', 'text_long', 'number', 'integer', 'checkbox', 'pull_down', 'date']).describe('フィールドの型'),
385
- "required": zod.boolean().describe('必須項目かどうか'),
386
- "visible": zod.boolean().describe('管理者以外も閲覧可能な場合true'),
387
- "options": zod.array(zod.string()).nullable().describe('選択肢。fieldTypeがcheckboxまたはpull_downのときのみ。'),
388
- "createdAt": zod.iso.datetime({}).describe('作成日時'),
389
- "updatedAt": zod.iso.datetime({}).describe('更新日時')
390
- }).describe('汎用マスタのカスタムフィールド')
391
- })).describe('カスタムフィールドの入力の配列')
392
- }).describe('汎用マスタのアイテム'), zod.null()]).optional().describe('初期値(汎用マスタフィールドの場合)'),
393
- "externalApiSetting": zod.union([zod.object({
394
- "id": zod.uuid().describe('UUID'),
395
- "httpMethod": zod.enum(['get', 'post', 'put', 'delete', 'patch']).describe('HTTPメソッド'),
396
- "url": zod.url().describe('URL'),
397
- "headers": zod.array(zod.object({
398
- "key": zod.string().describe('ヘッダーのキー'),
399
- "value": zod.string().describe('ヘッダーの値')
400
- })).describe('リクエストヘッダー'),
401
- "responseArray": zod.boolean().describe('レスポンスが複数レコードを含む場合true'),
402
- "arrayJsonPath": zod.string().nullable().describe('複数レコードを含む場合の配列へのJSONPath'),
403
- "mappings": zod.array(zod.object({
404
- "formField": zod.object({
405
- "id": zod.uuid().describe('UUID'),
406
- "title": zod.string().max(getWorkflowResponseSectionListItemFormFieldsItemExternalApiSettingMappingsItemFormFieldTitleMax).describe('説明'),
407
- "description": zod.string().nullable().describe('説明'),
408
- "fieldType": zod.enum(['text', 'text_long', 'number', 'integer', 'checkbox', 'pull_down', 'date', 'file', 'master', 'user', 'team', 'ticket', 'calculation', 'button_api', 'button_kintone']).describe('フィールドの型'),
409
- "required": zod.boolean().describe('必須項目かどうか'),
410
- "approver": zod.boolean().describe('承認者が編集可能かどうか'),
411
- "author": zod.boolean().optional().describe('申請者が編集可能かどうか'),
412
- "options": zod.array(zod.string()).nullable().describe('選択肢のリスト。型がcheckboxまたはpull_downのときのみ値が入ります。'),
413
- "code": zod.string().max(getWorkflowResponseSectionListItemFormFieldsItemExternalApiSettingMappingsItemFormFieldCodeMax).describe('コード'),
414
- "size": zod.enum(['full', 'half']).describe('フォームサイズ。fullの場合全幅、halfの場合1\/2になります。'),
415
- "regexpFormat": zod.string().nullable().describe('正規表現フォーマット'),
416
- "formula": zod.string().nullable().describe('計算式。\n型がcalculationのときのみ値が入ります。'),
417
- "defaultValue": zod.string().nullable().describe('初期値'),
418
- "minValue": zod.number().nullable().describe('最小値'),
419
- "maxValue": zod.number().nullable().describe('最大値'),
420
- "minLength": zod.number().min(getWorkflowResponseSectionListItemFormFieldsItemExternalApiSettingMappingsItemFormFieldMinLengthMin).nullable().describe('最小文字数'),
421
- "maxLength": zod.number().min(getWorkflowResponseSectionListItemFormFieldsItemExternalApiSettingMappingsItemFormFieldMaxLengthMin).nullable().describe('最大文字数'),
422
- "decimalDigit": zod.number().min(getWorkflowResponseSectionListItemFormFieldsItemExternalApiSettingMappingsItemFormFieldDecimalDigitMin).nullable().describe('小数の桁数'),
423
- "delimited": zod.boolean().nullable().describe('カンマ区切りで表示する場合true。\n整数、数値、自動計算フィールド以外ではnullが入ります。'),
424
- "prefix": zod.string().nullable().describe('単位(接頭辞)'),
425
- "suffix": zod.string().nullable().describe('単位(接尾辞)'),
426
- "hidden": zod.boolean().nullish().describe('隠しフィールドである場合true'),
427
- "readonlyOnUi": zod.boolean().nullish().describe('trueの時、申請者・承認者が画面上から値を入力することを禁止します。\n外部API連携(ボタン)による代入や、REST API経由での入力はこのオプションの対象外です。')
428
- }).describe('フォームフィールド'),
429
- "jsonPath": zod.string().describe('値抽出用のJSONPath'),
430
- "displayInTable": zod.boolean().describe('選択用テーブルで表示する場合true'),
431
- "title": zod.string().nullable().describe('選択用テーブルでのタイトル')
432
- })).describe('フィールドへのマッピング設定')
433
- }).describe('外部API設定'), zod.null()]).optional().describe('外部API設定。fieldTypeがbutton_apiのときのみ値が入ります。'),
434
- "kintoneAppSetting": zod.union([zod.object({
435
- "id": zod.uuid().describe('UUID'),
436
- "formField": zod.object({
437
- "id": zod.uuid().describe('UUID'),
438
- "title": zod.string().max(getWorkflowResponseSectionListItemFormFieldsItemKintoneAppSettingFormFieldTitleMax).describe('説明'),
439
- "description": zod.string().nullable().describe('説明'),
440
- "fieldType": zod.enum(['text', 'text_long', 'number', 'integer', 'checkbox', 'pull_down', 'date', 'file', 'master', 'user', 'team', 'ticket', 'calculation', 'button_api', 'button_kintone']).describe('フィールドの型'),
441
- "required": zod.boolean().describe('必須項目かどうか'),
442
- "approver": zod.boolean().describe('承認者が編集可能かどうか'),
443
- "author": zod.boolean().optional().describe('申請者が編集可能かどうか'),
444
- "options": zod.array(zod.string()).nullable().describe('選択肢のリスト。型がcheckboxまたはpull_downのときのみ値が入ります。'),
445
- "code": zod.string().max(getWorkflowResponseSectionListItemFormFieldsItemKintoneAppSettingFormFieldCodeMax).describe('コード'),
446
- "size": zod.enum(['full', 'half']).describe('フォームサイズ。fullの場合全幅、halfの場合1\/2になります。'),
447
- "regexpFormat": zod.string().nullable().describe('正規表現フォーマット'),
448
- "formula": zod.string().nullable().describe('計算式。\n型がcalculationのときのみ値が入ります。'),
449
- "defaultValue": zod.string().nullable().describe('初期値'),
450
- "minValue": zod.number().nullable().describe('最小値'),
451
- "maxValue": zod.number().nullable().describe('最大値'),
452
- "minLength": zod.number().min(getWorkflowResponseSectionListItemFormFieldsItemKintoneAppSettingFormFieldMinLengthMin).nullable().describe('最小文字数'),
453
- "maxLength": zod.number().min(getWorkflowResponseSectionListItemFormFieldsItemKintoneAppSettingFormFieldMaxLengthMin).nullable().describe('最大文字数'),
454
- "decimalDigit": zod.number().min(getWorkflowResponseSectionListItemFormFieldsItemKintoneAppSettingFormFieldDecimalDigitMin).nullable().describe('小数の桁数'),
455
- "delimited": zod.boolean().nullable().describe('カンマ区切りで表示する場合true。\n整数、数値、自動計算フィールド以外ではnullが入ります。'),
456
- "prefix": zod.string().nullable().describe('単位(接頭辞)'),
457
- "suffix": zod.string().nullable().describe('単位(接尾辞)'),
458
- "hidden": zod.boolean().nullish().describe('隠しフィールドである場合true'),
459
- "readonlyOnUi": zod.boolean().nullish().describe('trueの時、申請者・承認者が画面上から値を入力することを禁止します。\n外部API連携(ボタン)による代入や、REST API経由での入力はこのオプションの対象外です。')
460
- }).describe('フォームフィールド'),
461
- "kintoneApp": zod.object({
462
- "id": zod.uuid().describe('UUID'),
463
- "name": zod.string().describe('kintoneアプリ名'),
464
- "domain": zod.string().describe('kintoneドメイン'),
465
- "appId": zod.string().describe('kintoneアプリID')
466
- }).describe('kintone連携'),
467
- "mappings": zod.array(zod.object({
468
- "id": zod.uuid().describe('UUID'),
469
- "displayInTable": zod.boolean().describe('選択用テーブルで表示する場合true'),
470
- "kintoneFieldCode": zod.string().describe('kintoneフィールドコード'),
471
- "kintoneFieldName": zod.string().describe('kintoneフィールドコード'),
472
- "kintoneFieldType": zod.string().describe('kintoneフィールドコード'),
473
- "formField": zod.object({
474
- "id": zod.uuid().describe('UUID'),
475
- "title": zod.string().max(getWorkflowResponseSectionListItemFormFieldsItemKintoneAppSettingMappingsItemFormFieldTitleMax).describe('説明'),
476
- "description": zod.string().nullable().describe('説明'),
477
- "fieldType": zod.enum(['text', 'text_long', 'number', 'integer', 'checkbox', 'pull_down', 'date', 'file', 'master', 'user', 'team', 'ticket', 'calculation', 'button_api', 'button_kintone']).describe('フィールドの型'),
478
- "required": zod.boolean().describe('必須項目かどうか'),
479
- "approver": zod.boolean().describe('承認者が編集可能かどうか'),
480
- "author": zod.boolean().optional().describe('申請者が編集可能かどうか'),
481
- "options": zod.array(zod.string()).nullable().describe('選択肢のリスト。型がcheckboxまたはpull_downのときのみ値が入ります。'),
482
- "code": zod.string().max(getWorkflowResponseSectionListItemFormFieldsItemKintoneAppSettingMappingsItemFormFieldCodeMax).describe('コード'),
483
- "size": zod.enum(['full', 'half']).describe('フォームサイズ。fullの場合全幅、halfの場合1\/2になります。'),
484
- "regexpFormat": zod.string().nullable().describe('正規表現フォーマット'),
485
- "formula": zod.string().nullable().describe('計算式。\n型がcalculationのときのみ値が入ります。'),
486
- "defaultValue": zod.string().nullable().describe('初期値'),
487
- "minValue": zod.number().nullable().describe('最小値'),
488
- "maxValue": zod.number().nullable().describe('最大値'),
489
- "minLength": zod.number().min(getWorkflowResponseSectionListItemFormFieldsItemKintoneAppSettingMappingsItemFormFieldMinLengthMin).nullable().describe('最小文字数'),
490
- "maxLength": zod.number().min(getWorkflowResponseSectionListItemFormFieldsItemKintoneAppSettingMappingsItemFormFieldMaxLengthMin).nullable().describe('最大文字数'),
491
- "decimalDigit": zod.number().min(getWorkflowResponseSectionListItemFormFieldsItemKintoneAppSettingMappingsItemFormFieldDecimalDigitMin).nullable().describe('小数の桁数'),
492
- "delimited": zod.boolean().nullable().describe('カンマ区切りで表示する場合true。\n整数、数値、自動計算フィールド以外ではnullが入ります。'),
493
- "prefix": zod.string().nullable().describe('単位(接頭辞)'),
494
- "suffix": zod.string().nullable().describe('単位(接尾辞)'),
495
- "hidden": zod.boolean().nullish().describe('隠しフィールドである場合true'),
496
- "readonlyOnUi": zod.boolean().nullish().describe('trueの時、申請者・承認者が画面上から値を入力することを禁止します。\n外部API連携(ボタン)による代入や、REST API経由での入力はこのオプションの対象外です。')
497
- }).describe('フォームフィールド')
498
- })).describe('フィールドへのマッピング設定')
499
- }).describe('kintone連携設定'), zod.null()]).optional().describe('外部API設定。fieldTypeがbutton_kintoneのときのみ値が入ります。'),
500
- "climberCloudSetting": zod.union([zod.object({
501
- "id": zod.uuid().describe('UUID'),
502
- "contentsId": zod.string().describe('ファイル付きリストID'),
503
- "formField": zod.object({
504
- "id": zod.uuid().describe('UUID'),
505
- "title": zod.string().max(getWorkflowResponseSectionListItemFormFieldsItemClimberCloudSettingFormFieldTitleMax).describe('説明'),
506
- "description": zod.string().nullable().describe('説明'),
507
- "fieldType": zod.enum(['text', 'text_long', 'number', 'integer', 'checkbox', 'pull_down', 'date', 'file', 'master', 'user', 'team', 'ticket', 'calculation', 'button_api', 'button_kintone']).describe('フィールドの型'),
508
- "required": zod.boolean().describe('必須項目かどうか'),
509
- "approver": zod.boolean().describe('承認者が編集可能かどうか'),
510
- "author": zod.boolean().optional().describe('申請者が編集可能かどうか'),
511
- "options": zod.array(zod.string()).nullable().describe('選択肢のリスト。型がcheckboxまたはpull_downのときのみ値が入ります。'),
512
- "code": zod.string().max(getWorkflowResponseSectionListItemFormFieldsItemClimberCloudSettingFormFieldCodeMax).describe('コード'),
513
- "size": zod.enum(['full', 'half']).describe('フォームサイズ。fullの場合全幅、halfの場合1\/2になります。'),
514
- "regexpFormat": zod.string().nullable().describe('正規表現フォーマット'),
515
- "formula": zod.string().nullable().describe('計算式。\n型がcalculationのときのみ値が入ります。'),
516
- "defaultValue": zod.string().nullable().describe('初期値'),
517
- "minValue": zod.number().nullable().describe('最小値'),
518
- "maxValue": zod.number().nullable().describe('最大値'),
519
- "minLength": zod.number().min(getWorkflowResponseSectionListItemFormFieldsItemClimberCloudSettingFormFieldMinLengthMin).nullable().describe('最小文字数'),
520
- "maxLength": zod.number().min(getWorkflowResponseSectionListItemFormFieldsItemClimberCloudSettingFormFieldMaxLengthMin).nullable().describe('最大文字数'),
521
- "decimalDigit": zod.number().min(getWorkflowResponseSectionListItemFormFieldsItemClimberCloudSettingFormFieldDecimalDigitMin).nullable().describe('小数の桁数'),
522
- "delimited": zod.boolean().nullable().describe('カンマ区切りで表示する場合true。\n整数、数値、自動計算フィールド以外ではnullが入ります。'),
523
- "prefix": zod.string().nullable().describe('単位(接頭辞)'),
524
- "suffix": zod.string().nullable().describe('単位(接尾辞)'),
525
- "hidden": zod.boolean().nullish().describe('隠しフィールドである場合true'),
526
- "readonlyOnUi": zod.boolean().nullish().describe('trueの時、申請者・承認者が画面上から値を入力することを禁止します。\n外部API連携(ボタン)による代入や、REST API経由での入力はこのオプションの対象外です。')
527
- }).describe('フォームフィールド'),
528
- "mappings": zod.array(zod.object({
529
- "formField": zod.object({
530
- "id": zod.uuid().describe('UUID'),
531
- "title": zod.string().max(getWorkflowResponseSectionListItemFormFieldsItemClimberCloudSettingMappingsItemFormFieldTitleMax).describe('説明'),
532
- "description": zod.string().nullable().describe('説明'),
533
- "fieldType": zod.enum(['text', 'text_long', 'number', 'integer', 'checkbox', 'pull_down', 'date', 'file', 'master', 'user', 'team', 'ticket', 'calculation', 'button_api', 'button_kintone']).describe('フィールドの型'),
534
- "required": zod.boolean().describe('必須項目かどうか'),
535
- "approver": zod.boolean().describe('承認者が編集可能かどうか'),
536
- "author": zod.boolean().optional().describe('申請者が編集可能かどうか'),
537
- "options": zod.array(zod.string()).nullable().describe('選択肢のリスト。型がcheckboxまたはpull_downのときのみ値が入ります。'),
538
- "code": zod.string().max(getWorkflowResponseSectionListItemFormFieldsItemClimberCloudSettingMappingsItemFormFieldCodeMax).describe('コード'),
539
- "size": zod.enum(['full', 'half']).describe('フォームサイズ。fullの場合全幅、halfの場合1\/2になります。'),
540
- "regexpFormat": zod.string().nullable().describe('正規表現フォーマット'),
541
- "formula": zod.string().nullable().describe('計算式。\n型がcalculationのときのみ値が入ります。'),
542
- "defaultValue": zod.string().nullable().describe('初期値'),
543
- "minValue": zod.number().nullable().describe('最小値'),
544
- "maxValue": zod.number().nullable().describe('最大値'),
545
- "minLength": zod.number().min(getWorkflowResponseSectionListItemFormFieldsItemClimberCloudSettingMappingsItemFormFieldMinLengthMin).nullable().describe('最小文字数'),
546
- "maxLength": zod.number().min(getWorkflowResponseSectionListItemFormFieldsItemClimberCloudSettingMappingsItemFormFieldMaxLengthMin).nullable().describe('最大文字数'),
547
- "decimalDigit": zod.number().min(getWorkflowResponseSectionListItemFormFieldsItemClimberCloudSettingMappingsItemFormFieldDecimalDigitMin).nullable().describe('小数の桁数'),
548
- "delimited": zod.boolean().nullable().describe('カンマ区切りで表示する場合true。\n整数、数値、自動計算フィールド以外ではnullが入ります。'),
549
- "prefix": zod.string().nullable().describe('単位(接頭辞)'),
550
- "suffix": zod.string().nullable().describe('単位(接尾辞)'),
551
- "hidden": zod.boolean().nullish().describe('隠しフィールドである場合true'),
552
- "readonlyOnUi": zod.boolean().nullish().describe('trueの時、申請者・承認者が画面上から値を入力することを禁止します。\n外部API連携(ボタン)による代入や、REST API経由での入力はこのオプションの対象外です。')
553
- }).describe('フォームフィールド'),
554
- "order": zod.number().describe('表示順(1から始まります)')
555
- })).describe('ClimberCloudのカラムとのマッピング設定')
556
- }).describe('ClimberCloud連携設定'), zod.null()]).optional().describe('ClimberCloud連携設定。fieldTypeがfileのときのみ値が入ります。'),
557
- "generalMasterSearchFilters": zod.array(zod.object({
558
- "id": zod.uuid().describe('UUID'),
559
- "filterFormFieldId": zod.uuid().describe('絞り込みに使う汎用フィールドのID(UUID)'),
560
- "fieldType": zod.enum(['free_word', 'name', 'code', 'description', 'custom_field']).describe('絞り込み先のフィールドのタイプ'),
561
- "generalMasterFieldId": zod.uuid().nullable().describe('fieldType=custom_fieldの場合に絞り込み先の汎用マスタのカスタムフィールドのID(UUID)')
562
- })).nullish().describe('汎用マスタ型フィールドの自動絞り込みの設定')
563
- })).describe('フォームフィールドの詳細')).optional().describe('フォームフィールド。明細セクションには含まれません。'),
564
- "conditional": zod.boolean().optional().describe('表示条件があるかどうか。明細セクションには含まれません。'),
565
- "combinationType": zod.enum(['all', 'any', 'custom']).optional().describe('条件の組み合わせタイプ。all=すべて、any=いずれか、custom=高度な条件式。明細セクションには含まれません。'),
566
- "combinationExpression": zod.string().nullish().describe('高度な条件式'),
567
- "slipFields": zod.array(zod.object({
568
- "id": zod.uuid().describe('UUID'),
569
- "fieldType": zod.enum(['text', 'number', 'integer', 'calculation', 'pull_down', 'checkbox', 'date', 'file', 'master', 'user', 'team', 'ticket']).describe('フィールドの型'),
570
- "code": zod.string().describe('フィールドのコード'),
571
- "title": zod.string().describe('タイトル'),
572
- "required": zod.boolean().describe('入力必須の場合true'),
573
- "showTotal": zod.boolean().describe('列の合計を表示する場合true'),
574
- "options": zod.array(zod.string()).describe('選択肢。プルダウンまたはチェックボックスのときのみ値が入ります。'),
575
- "regexpFormat": zod.string().nullable().describe('正規表現フォーマット'),
576
- "formula": zod.string().nullable().describe('計算式。型が自動計算のときのみ値が入ります。'),
577
- "maxValue": zod.number().nullable().describe('最大値'),
578
- "minValue": zod.number().nullable().describe('最小値'),
579
- "defaultValue": zod.string().nullable().describe('初期値'),
580
- "decimalDigit": zod.number().nullable().describe('小数の桁数'),
581
- "delimited": zod.boolean().nullable().describe('カンマ区切りで表示する場合true。\n整数、数値、自動計算フィールド以外ではnullが入ります。'),
582
- "allowedExtensions": zod.array(zod.string()).describe('添付可能な拡張子リスト'),
583
- "prefix": zod.string().nullable().describe('単位(接頭辞)'),
584
- "suffix": zod.string().nullable().describe('単位(接尾辞)'),
585
- "approver": zod.boolean().describe('承認者が編集可能かどうか'),
586
- "author": zod.boolean().optional().describe('申請者が編集可能かどうか'),
587
- "hidden": zod.boolean().nullish().describe('隠しフィールドである場合true'),
588
- "readonlyOnUi": zod.boolean().nullish().describe('trueの時、申請者・承認者が画面上から値を入力することを禁止します。\n外部API連携(ボタン)による代入や、REST API経由での入力はこのオプションの対象外です。')
589
- }).describe('明細フィールド').and(zod.object({
590
- "generalMaster": zod.union([zod.object({
591
- "id": zod.uuid().describe('UUID'),
592
- "code": zod.string().max(getWorkflowResponseSectionListItemSlipFieldsItemGeneralMasterCodeMax).describe('コード'),
593
- "name": zod.string().max(getWorkflowResponseSectionListItemSlipFieldsItemGeneralMasterNameMax).describe('名前'),
594
- "description": zod.string().nullable().describe('説明'),
595
- "createdAt": zod.iso.datetime({}).describe('作成日時'),
596
- "updatedAt": zod.iso.datetime({}).describe('更新日時'),
597
- "fields": zod.array(zod.object({
598
- "id": zod.uuid().describe('UUID'),
599
- "title": zod.string().max(getWorkflowResponseSectionListItemSlipFieldsItemGeneralMasterFieldsItemTitleMax).describe('フィールド名'),
600
- "description": zod.string().nullable().describe('フィールドの説明'),
601
- "code": zod.string().max(getWorkflowResponseSectionListItemSlipFieldsItemGeneralMasterFieldsItemCodeMax).describe('フィールドのコード'),
602
- "fieldType": zod.enum(['text', 'text_long', 'number', 'integer', 'checkbox', 'pull_down', 'date']).describe('フィールドの型'),
603
- "required": zod.boolean().describe('必須項目かどうか'),
604
- "visible": zod.boolean().describe('管理者以外も閲覧可能な場合true'),
605
- "options": zod.array(zod.string()).nullable().describe('選択肢。fieldTypeがcheckboxまたはpull_downのときのみ。'),
606
- "createdAt": zod.iso.datetime({}).describe('作成日時'),
607
- "updatedAt": zod.iso.datetime({}).describe('更新日時')
608
- }).describe('汎用マスタのカスタムフィールド')).describe('カスタムフィールドの配列')
609
- }).describe('汎用マスタ'), zod.null()]).optional().describe('汎用マスタ。型が汎用マスタのときのみ値が入ります。'),
610
- "defaultGeneralMasterItem": zod.union([zod.object({
611
- "id": zod.uuid().describe('UUID'),
612
- "code": zod.string().max(getWorkflowResponseSectionListItemSlipFieldsItemDefaultGeneralMasterItemCodeMax).describe('コード'),
613
- "name": zod.string().max(getWorkflowResponseSectionListItemSlipFieldsItemDefaultGeneralMasterItemNameMax).describe('名前'),
614
- "description": zod.string().nullable().describe('説明'),
615
- "createdAt": zod.iso.datetime({}).describe('作成日時'),
616
- "updatedAt": zod.iso.datetime({}).describe('更新日時'),
617
- "startsOn": zod.iso.date().nullable().describe('有効期限の開始日'),
618
- "endsOn": zod.iso.date().nullable().describe('有効期限の終了日'),
619
- "inputs": zod.array(zod.object({
620
- "id": zod.uuid().describe('UUID'),
621
- "value": zod.union([zod.string().nullable(), zod.array(zod.string())]).describe('入力値'),
622
- "createdAt": zod.iso.datetime({}).describe('作成日時'),
623
- "updatedAt": zod.iso.datetime({}).describe('更新日時'),
624
- "field": zod.object({
625
- "id": zod.uuid().describe('UUID'),
626
- "title": zod.string().max(getWorkflowResponseSectionListItemSlipFieldsItemDefaultGeneralMasterItemInputsItemFieldTitleMax).describe('フィールド名'),
627
- "description": zod.string().nullable().describe('フィールドの説明'),
628
- "code": zod.string().max(getWorkflowResponseSectionListItemSlipFieldsItemDefaultGeneralMasterItemInputsItemFieldCodeMax).describe('フィールドのコード'),
629
- "fieldType": zod.enum(['text', 'text_long', 'number', 'integer', 'checkbox', 'pull_down', 'date']).describe('フィールドの型'),
630
- "required": zod.boolean().describe('必須項目かどうか'),
631
- "visible": zod.boolean().describe('管理者以外も閲覧可能な場合true'),
632
- "options": zod.array(zod.string()).nullable().describe('選択肢。fieldTypeがcheckboxまたはpull_downのときのみ。'),
633
- "createdAt": zod.iso.datetime({}).describe('作成日時'),
634
- "updatedAt": zod.iso.datetime({}).describe('更新日時')
635
- }).describe('汎用マスタのカスタムフィールド')
636
- })).describe('カスタムフィールドの入力の配列')
637
- }).describe('汎用マスタのアイテム'), zod.null()]).optional().describe('汎用マスタアイテムの初期値')
638
- })).describe('明細フィールドの詳細')).optional().describe('明細フィールド。フォームセクションには含まれません。')
639
- }).describe('明細セクションまたはフォームセクション')).optional().describe('セクション・明細を表すオブジェクトを画面に表示される順に格納した配列。'),
640
- "ticketViewers": zod.array(zod.object({
641
- "id": zod.string().describe('UUID'),
642
- "user": zod.union([zod.object({
643
- "id": zod.uuid().describe('UUID'),
644
- "email": zod.email().max(getWorkflowResponseTicketViewersItemUserEmailMax).describe('メールアドレス'),
645
- "code": zod.string().max(getWorkflowResponseTicketViewersItemUserCodeMax).describe('コード'),
646
- "firstName": zod.string().max(getWorkflowResponseTicketViewersItemUserFirstNameMax).describe('名'),
647
- "lastName": zod.string().max(getWorkflowResponseTicketViewersItemUserLastNameMax).describe(''),
648
- "fullName": zod.string().max(getWorkflowResponseTicketViewersItemUserFullNameMax).describe('フルネーム'),
649
- "employeeId": zod.string().max(getWorkflowResponseTicketViewersItemUserEmployeeIdMax).nullish().describe('社員番号'),
650
- "image": zod.object({
651
- "100x100": zod.string().nullable(),
652
- "64x64": zod.string().nullable(),
653
- "32x32": zod.string().nullable()
654
- }).describe('ユーザー画像のURL。サイズごとに複数のURLを返します。'),
655
- "status": zod.enum(['invited', 'activated', 'suspended', 'deactivated']).describe('ステータス'),
656
- "locale": zod.string().describe('ロケール(jaまたはen)'),
657
- "createdAt": zod.iso.datetime({}).describe('作成日時'),
658
- "updatedAt": zod.iso.datetime({}).describe('更新日時'),
659
- "deactivatedAt": zod.iso.datetime({}).nullish().describe('削除日時')
660
- }).describe('ユーザー'), zod.null()]).describe('ユーザー。ユーザーとチームは片方のみ値が入ります。'),
661
- "team": zod.union([zod.object({
662
- "id": zod.uuid().describe('UUID'),
663
- "name": zod.string().max(getWorkflowResponseTicketViewersItemTeamNameMax).describe('名前'),
664
- "fullName": zod.string().describe('上位組織を含む名前'),
665
- "code": zod.string().max(getWorkflowResponseTicketViewersItemTeamCodeMax).describe('コード'),
666
- "notes": zod.string().max(getWorkflowResponseTicketViewersItemTeamNotesMax).nullish().describe('管理用メモ'),
667
- "approveOnly": zod.boolean().describe('承認専用チームかどうか'),
668
- "usersCount": zod.number().min(getWorkflowResponseTicketViewersItemTeamUsersCountMin).describe('ユーザー数'),
669
- "createdAt": zod.iso.datetime({}).describe('作成日時'),
670
- "updatedAt": zod.iso.datetime({}).describe('更新日時')
671
- }).describe('チーム'), zod.null()]).describe('チーム。ユーザーとチームは片方のみ値が入ります。'),
672
- "grade": zod.union([zod.object({
673
- "id": zod.uuid().describe('UUID'),
674
- "name": zod.string().max(getWorkflowResponseTicketViewersItemGradeNameMax).describe('名前'),
675
- "level": zod.number().min(getWorkflowResponseTicketViewersItemGradeLevelMin).max(getWorkflowResponseTicketViewersItemGradeLevelMax).describe('レベル'),
676
- "code": zod.string().max(getWorkflowResponseTicketViewersItemGradeCodeMax).nullable().describe('コード'),
677
- "isDefault": zod.boolean().describe('デフォルトの役職かどうか'),
678
- "createdAt": zod.iso.datetime({}).describe('作成日時'),
679
- "updatedAt": zod.iso.datetime({}).describe('更新日時')
680
- }).describe('役職'), zod.null()]).describe('役職。チーム指定で役職も指定する場合のみ値が入ります。')
681
- }).describe('ワークフロー単位で設定された共有ユーザー')).describe('ワークフロー単位のチケット共有ユーザー'),
682
- "cloudSignSetting": zod.union([zod.object({
683
- "required": zod.boolean().describe('書類の添付が必須な場合true')
684
- }), zod.null()]).describe('クラウドサイン連携設定')
685
- })).describe('チケットに含まれるワークフロー。セクション情報と共有ユーザー情報を含みます。').and(zod.object({
686
- "routeConditions": zod.array(zod.object({
687
- "id": zod.string().describe('UUID'),
688
- "conditionType": zod.enum(['always', 'field', 'field_otherwise']).describe('経路分岐タイプ'),
689
- "combinationType": zod.enum(['all', 'any', 'custom']).describe('条件の組み合わせタイプ'),
690
- "combinationExpression": zod.string().describe('高度な条件式'),
691
- "route": zod.union([zod.object({
692
- "id": zod.string().describe('UUID'),
693
- "code": zod.string().describe('コード'),
694
- "status": zod.enum(['visible', 'deleted', 'error']).describe('ステータス'),
695
- "versionId": zod.string().describe('バージョンのID'),
696
- "versionNumber": zod.number().describe('バージョン番号'),
697
- "name": zod.string().describe('名前'),
698
- "description": zod.string().describe('説明'),
699
- "createdAt": zod.string().describe('作成日時'),
700
- "updatedAt": zod.string().describe('更新日時'),
701
- "author": zod.union([zod.object({
702
- "id": zod.uuid().describe('UUID'),
703
- "email": zod.email().max(getWorkflowResponseRouteConditionsItemRouteAuthorEmailMax).describe('メールアドレス'),
704
- "code": zod.string().max(getWorkflowResponseRouteConditionsItemRouteAuthorCodeMax).describe('コード'),
705
- "firstName": zod.string().max(getWorkflowResponseRouteConditionsItemRouteAuthorFirstNameMax).describe('名'),
706
- "lastName": zod.string().max(getWorkflowResponseRouteConditionsItemRouteAuthorLastNameMax).describe('姓'),
707
- "fullName": zod.string().max(getWorkflowResponseRouteConditionsItemRouteAuthorFullNameMax).describe('フルネーム'),
708
- "employeeId": zod.string().max(getWorkflowResponseRouteConditionsItemRouteAuthorEmployeeIdMax).nullish().describe('社員番号'),
709
- "image": zod.object({
710
- "100x100": zod.string().nullable(),
711
- "64x64": zod.string().nullable(),
712
- "32x32": zod.string().nullable()
713
- }).describe('ユーザー画像のURL。サイズごとに複数のURLを返します。'),
714
- "status": zod.enum(['invited', 'activated', 'suspended', 'deactivated']).describe('ステータス'),
715
- "locale": zod.string().describe('ロケール(jaまたはen)'),
716
- "createdAt": zod.iso.datetime({}).describe('作成日時'),
717
- "updatedAt": zod.iso.datetime({}).describe('更新日時'),
718
- "deactivatedAt": zod.iso.datetime({}).nullish().describe('削除日時')
719
- }).describe('ユーザー'), zod.null()]).optional().describe('作成者'),
720
- "versionAuthor": zod.union([zod.object({
721
- "id": zod.uuid().describe('UUID'),
722
- "email": zod.email().max(getWorkflowResponseRouteConditionsItemRouteVersionAuthorEmailMax).describe('メールアドレス'),
723
- "code": zod.string().max(getWorkflowResponseRouteConditionsItemRouteVersionAuthorCodeMax).describe('コード'),
724
- "firstName": zod.string().max(getWorkflowResponseRouteConditionsItemRouteVersionAuthorFirstNameMax).describe('名'),
725
- "lastName": zod.string().max(getWorkflowResponseRouteConditionsItemRouteVersionAuthorLastNameMax).describe(''),
726
- "fullName": zod.string().max(getWorkflowResponseRouteConditionsItemRouteVersionAuthorFullNameMax).describe('フルネーム'),
727
- "employeeId": zod.string().max(getWorkflowResponseRouteConditionsItemRouteVersionAuthorEmployeeIdMax).nullish().describe('社員番号'),
728
- "image": zod.object({
729
- "100x100": zod.string().nullable(),
730
- "64x64": zod.string().nullable(),
731
- "32x32": zod.string().nullable()
732
- }).describe('ユーザー画像のURL。サイズごとに複数のURLを返します。'),
733
- "status": zod.enum(['invited', 'activated', 'suspended', 'deactivated']).describe('ステータス'),
734
- "locale": zod.string().describe('ロケール(jaまたはen)'),
735
- "createdAt": zod.iso.datetime({}).describe('作成日時'),
736
- "updatedAt": zod.iso.datetime({}).describe('更新日時'),
737
- "deactivatedAt": zod.iso.datetime({}).nullish().describe('削除日時')
738
- }).describe('ユーザー'), zod.null()]).optional(),
739
- "folder": zod.object({
740
- "id": zod.uuid().describe('UUID'),
741
- "name": zod.string().max(getWorkflowResponseRouteConditionsItemRouteFolderNameMax).describe('名前'),
742
- "code": zod.string().max(getWorkflowResponseRouteConditionsItemRouteFolderCodeMax).describe('コード'),
743
- "description": zod.string().nullish().describe('説明'),
744
- "workflowsCount": zod.number().min(getWorkflowResponseRouteConditionsItemRouteFolderWorkflowsCountMin).describe('フォルダ内のワークフロー数'),
745
- "routesCount": zod.number().min(getWorkflowResponseRouteConditionsItemRouteFolderRoutesCountMin).describe('フォルダ内の経路数'),
746
- "pipelinesCount": zod.number().min(getWorkflowResponseRouteConditionsItemRouteFolderPipelinesCountMin).describe('フォルダ内のパイプライン数'),
747
- "createdAt": zod.iso.datetime({}).describe('作成日時'),
748
- "updatedAt": zod.iso.datetime({}).describe('更新日時')
749
- }).describe('フォルダ').describe('フォルダ')
750
- }).describe('経路'), zod.null()]).describe('経路。routeまたはerrorMessageは片方のみ値が入ります。'),
751
- "conditionFields": zod.array(zod.object({
752
- "id": zod.string().describe('UUID'),
753
- "symbol": zod.enum(['equal', 'not_equal', 'greater_than', 'greater_than_or_equal', 'less_than', 'less_than_or_equal', 'include', 'exclude', 'is_empty', 'is_not_empty', 'descendants_or_equal']).describe('演算子'),
754
- "value": zod.string().nullable().describe('しきい値'),
755
- "formField": zod.object({
756
- "id": zod.uuid().describe('UUID'),
757
- "title": zod.string().max(getWorkflowResponseRouteConditionsItemConditionFieldsItemFormFieldTitleMax).describe('説明'),
758
- "description": zod.string().nullable().describe('説明'),
759
- "fieldType": zod.enum(['text', 'text_long', 'number', 'integer', 'checkbox', 'pull_down', 'date', 'file', 'master', 'user', 'team', 'ticket', 'calculation', 'button_api', 'button_kintone']).describe('フィールドの型'),
760
- "required": zod.boolean().describe('必須項目かどうか'),
761
- "approver": zod.boolean().describe('承認者が編集可能かどうか'),
762
- "author": zod.boolean().optional().describe('申請者が編集可能かどうか'),
763
- "options": zod.array(zod.string()).nullable().describe('選択肢のリスト。型がcheckboxまたはpull_downのときのみ値が入ります。'),
764
- "code": zod.string().max(getWorkflowResponseRouteConditionsItemConditionFieldsItemFormFieldCodeMax).describe('コード'),
765
- "size": zod.enum(['full', 'half']).describe('フォームサイズ。fullの場合全幅、halfの場合1\/2になります。'),
766
- "regexpFormat": zod.string().nullable().describe('正規表現フォーマット'),
767
- "formula": zod.string().nullable().describe('計算式。\n型がcalculationのときのみ値が入ります。'),
768
- "defaultValue": zod.string().nullable().describe('初期値'),
769
- "minValue": zod.number().nullable().describe('最小値'),
770
- "maxValue": zod.number().nullable().describe('最大値'),
771
- "minLength": zod.number().min(getWorkflowResponseRouteConditionsItemConditionFieldsItemFormFieldMinLengthMin).nullable().describe('最小文字数'),
772
- "maxLength": zod.number().min(getWorkflowResponseRouteConditionsItemConditionFieldsItemFormFieldMaxLengthMin).nullable().describe('最大文字数'),
773
- "decimalDigit": zod.number().min(getWorkflowResponseRouteConditionsItemConditionFieldsItemFormFieldDecimalDigitMin).nullable().describe('小数の桁数'),
774
- "delimited": zod.boolean().nullable().describe('カンマ区切りで表示する場合true。\n整数、数値、自動計算フィールド以外ではnullが入ります。'),
775
- "prefix": zod.string().nullable().describe('単位(接頭辞)'),
776
- "suffix": zod.string().nullable().describe('単位(接尾辞)'),
777
- "hidden": zod.boolean().nullish().describe('隠しフィールドである場合true'),
778
- "readonlyOnUi": zod.boolean().nullish().describe('trueの時、申請者・承認者が画面上から値を入力することを禁止します。\n外部API連携(ボタン)による代入や、REST API経由での入力はこのオプションの対象外です。')
779
- }).describe('フォームフィールド').describe('対象のフォームフィールド'),
780
- "grade": zod.union([zod.object({
781
- "id": zod.uuid().describe('UUID'),
782
- "name": zod.string().max(getWorkflowResponseRouteConditionsItemConditionFieldsItemGradeNameMax).describe('名前'),
783
- "level": zod.number().min(getWorkflowResponseRouteConditionsItemConditionFieldsItemGradeLevelMin).max(getWorkflowResponseRouteConditionsItemConditionFieldsItemGradeLevelMax).describe('レベル'),
784
- "code": zod.string().max(getWorkflowResponseRouteConditionsItemConditionFieldsItemGradeCodeMax).nullable().describe('コード'),
785
- "isDefault": zod.boolean().describe('デフォルトの役職かどうか'),
786
- "createdAt": zod.iso.datetime({}).describe('作成日時'),
787
- "updatedAt": zod.iso.datetime({}).describe('更新日時')
788
- }).describe('役職'), zod.null()]).describe('しきい値として使う役職'),
789
- "team": zod.union([zod.object({
790
- "id": zod.uuid().describe('UUID'),
791
- "name": zod.string().max(getWorkflowResponseRouteConditionsItemConditionFieldsItemTeamNameMax).describe('名前'),
792
- "fullName": zod.string().describe('上位組織を含む名前'),
793
- "code": zod.string().max(getWorkflowResponseRouteConditionsItemConditionFieldsItemTeamCodeMax).describe('コード'),
794
- "notes": zod.string().max(getWorkflowResponseRouteConditionsItemConditionFieldsItemTeamNotesMax).nullish().describe('管理用メモ'),
795
- "approveOnly": zod.boolean().describe('承認専用チームかどうか'),
796
- "usersCount": zod.number().min(getWorkflowResponseRouteConditionsItemConditionFieldsItemTeamUsersCountMin).describe('ユーザー数'),
797
- "createdAt": zod.iso.datetime({}).describe('作成日時'),
798
- "updatedAt": zod.iso.datetime({}).describe('更新日時')
799
- }).describe('チーム'), zod.null()]).describe('しきい値として使うチーム'),
800
- "generalMasterItem": zod.union([zod.object({
801
- "id": zod.uuid().describe('UUID'),
802
- "code": zod.string().max(getWorkflowResponseRouteConditionsItemConditionFieldsItemGeneralMasterItemCodeMax).describe('コード'),
803
- "name": zod.string().max(getWorkflowResponseRouteConditionsItemConditionFieldsItemGeneralMasterItemNameMax).describe('名前'),
804
- "description": zod.string().nullable().describe('説明'),
805
- "createdAt": zod.iso.datetime({}).describe('作成日時'),
806
- "updatedAt": zod.iso.datetime({}).describe('更新日時'),
807
- "startsOn": zod.iso.date().nullable().describe('有効期限の開始日'),
808
- "endsOn": zod.iso.date().nullable().describe('有効期限の終了日'),
809
- "inputs": zod.array(zod.object({
810
- "id": zod.uuid().describe('UUID'),
811
- "value": zod.union([zod.string().nullable(), zod.array(zod.string())]).describe('入力値'),
812
- "createdAt": zod.iso.datetime({}).describe('作成日時'),
813
- "updatedAt": zod.iso.datetime({}).describe('更新日時'),
814
- "field": zod.object({
815
- "id": zod.uuid().describe('UUID'),
816
- "title": zod.string().max(getWorkflowResponseRouteConditionsItemConditionFieldsItemGeneralMasterItemInputsItemFieldTitleMax).describe('フィールド名'),
817
- "description": zod.string().nullable().describe('フィールドの説明'),
818
- "code": zod.string().max(getWorkflowResponseRouteConditionsItemConditionFieldsItemGeneralMasterItemInputsItemFieldCodeMax).describe('フィールドのコード'),
819
- "fieldType": zod.enum(['text', 'text_long', 'number', 'integer', 'checkbox', 'pull_down', 'date']).describe('フィールドの型'),
820
- "required": zod.boolean().describe('必須項目かどうか'),
821
- "visible": zod.boolean().describe('管理者以外も閲覧可能な場合true'),
822
- "options": zod.array(zod.string()).nullable().describe('選択肢。fieldTypeがcheckboxまたはpull_downのときのみ。'),
823
- "createdAt": zod.iso.datetime({}).describe('作成日時'),
824
- "updatedAt": zod.iso.datetime({}).describe('更新日時')
825
- }).describe('汎用マスタのカスタムフィールド')
826
- })).describe('カスタムフィールドの入力の配列')
827
- }).describe('汎用マスタのアイテム'), zod.null()]).describe('しきい値として使う汎用マスタアイテム')
828
- }).describe('ワークフロー経路分岐の条件')).describe('条件'),
829
- "errorMessage": zod.string().nullable().describe('申請拒否時のエラーメッセージ。routeまたはerrorMessageは片方のみ値が入ります。')
830
- }).describe('ワークフローの経路分岐')).describe('経路分岐')
831
- })).describe('ワークフローの詳細');
249
+ export const getWorkflowResponseOneOneCodeRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
250
+ export const getWorkflowResponseOneOnePublicTicketDefault = false;
251
+ export const getWorkflowResponseOneOneVisibleToTeamMembersDefault = false;
252
+ export const getWorkflowResponseOneOneAllowEditingOfViewersDefault = true;
253
+ export const getWorkflowResponseOneOneAuthorOneEmailMax = 254;
254
+ export const getWorkflowResponseOneOneAuthorOneCodeMax = 100;
255
+ export const getWorkflowResponseOneOneAuthorOneFirstNameMax = 255;
256
+ export const getWorkflowResponseOneOneAuthorOneLastNameMax = 255;
257
+ export const getWorkflowResponseOneOneAuthorOneFullNameMax = 255;
258
+ export const getWorkflowResponseOneOneAuthorOneEmployeeIdMax = 30;
259
+ export const getWorkflowResponseOneOneVersionAuthorOneEmailMax = 254;
260
+ export const getWorkflowResponseOneOneVersionAuthorOneCodeMax = 100;
261
+ export const getWorkflowResponseOneOneVersionAuthorOneFirstNameMax = 255;
262
+ export const getWorkflowResponseOneOneVersionAuthorOneLastNameMax = 255;
263
+ export const getWorkflowResponseOneOneVersionAuthorOneFullNameMax = 255;
264
+ export const getWorkflowResponseOneOneVersionAuthorOneEmployeeIdMax = 30;
265
+ export const getWorkflowResponseOneOneFolderOneNameMax = 300;
266
+ export const getWorkflowResponseOneOneFolderOneCodeMax = 100;
267
+ export const getWorkflowResponseOneOneFolderOneWorkflowsCountMin = 0;
268
+ export const getWorkflowResponseOneOneFolderOneRoutesCountMin = 0;
269
+ export const getWorkflowResponseOneOneFolderOnePipelinesCountMin = 0;
270
+ export const getWorkflowResponseOneOneCategoriesItemNameMax = 100;
271
+ export const getWorkflowResponseOneTwoSectionListItemFormFieldsItemOneTitleMax = 300;
272
+ export const getWorkflowResponseOneTwoSectionListItemFormFieldsItemOneCodeMax = 100;
273
+ export const getWorkflowResponseOneTwoSectionListItemFormFieldsItemOneMinLengthMin = 0;
274
+ export const getWorkflowResponseOneTwoSectionListItemFormFieldsItemOneMaxLengthMin = 0;
275
+ export const getWorkflowResponseOneTwoSectionListItemFormFieldsItemOneDecimalDigitMin = 0;
276
+ export const getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoGeneralMasterOneCodeMax = 100;
277
+ export const getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoGeneralMasterOneNameMax = 300;
278
+ export const getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoGeneralMasterOneFieldsItemTitleMax = 300;
279
+ export const getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoGeneralMasterOneFieldsItemCodeMax = 100;
280
+ export const getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoDefaultGeneralMasterItemOneCodeMax = 100;
281
+ export const getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoDefaultGeneralMasterItemOneNameMax = 100;
282
+ export const getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoDefaultGeneralMasterItemOneInputsItemFieldTitleMax = 300;
283
+ export const getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoDefaultGeneralMasterItemOneInputsItemFieldCodeMax = 100;
284
+ export const getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoExternalApiSettingOneMappingsItemFormFieldTitleMax = 300;
285
+ export const getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoExternalApiSettingOneMappingsItemFormFieldCodeMax = 100;
286
+ export const getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoExternalApiSettingOneMappingsItemFormFieldMinLengthMin = 0;
287
+ export const getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoExternalApiSettingOneMappingsItemFormFieldMaxLengthMin = 0;
288
+ export const getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoExternalApiSettingOneMappingsItemFormFieldDecimalDigitMin = 0;
289
+ export const getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoKintoneAppSettingOneFormFieldTitleMax = 300;
290
+ export const getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoKintoneAppSettingOneFormFieldCodeMax = 100;
291
+ export const getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoKintoneAppSettingOneFormFieldMinLengthMin = 0;
292
+ export const getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoKintoneAppSettingOneFormFieldMaxLengthMin = 0;
293
+ export const getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoKintoneAppSettingOneFormFieldDecimalDigitMin = 0;
294
+ export const getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoKintoneAppSettingOneMappingsItemFormFieldTitleMax = 300;
295
+ export const getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoKintoneAppSettingOneMappingsItemFormFieldCodeMax = 100;
296
+ export const getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoKintoneAppSettingOneMappingsItemFormFieldMinLengthMin = 0;
297
+ export const getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoKintoneAppSettingOneMappingsItemFormFieldMaxLengthMin = 0;
298
+ export const getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoKintoneAppSettingOneMappingsItemFormFieldDecimalDigitMin = 0;
299
+ export const getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoClimberCloudSettingOneFormFieldTitleMax = 300;
300
+ export const getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoClimberCloudSettingOneFormFieldCodeMax = 100;
301
+ export const getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoClimberCloudSettingOneFormFieldMinLengthMin = 0;
302
+ export const getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoClimberCloudSettingOneFormFieldMaxLengthMin = 0;
303
+ export const getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoClimberCloudSettingOneFormFieldDecimalDigitMin = 0;
304
+ export const getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoClimberCloudSettingOneMappingsItemFormFieldTitleMax = 300;
305
+ export const getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoClimberCloudSettingOneMappingsItemFormFieldCodeMax = 100;
306
+ export const getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoClimberCloudSettingOneMappingsItemFormFieldMinLengthMin = 0;
307
+ export const getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoClimberCloudSettingOneMappingsItemFormFieldMaxLengthMin = 0;
308
+ export const getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoClimberCloudSettingOneMappingsItemFormFieldDecimalDigitMin = 0;
309
+ export const getWorkflowResponseOneTwoSectionListItemSlipFieldsItemTwoGeneralMasterOneCodeMax = 100;
310
+ export const getWorkflowResponseOneTwoSectionListItemSlipFieldsItemTwoGeneralMasterOneNameMax = 300;
311
+ export const getWorkflowResponseOneTwoSectionListItemSlipFieldsItemTwoGeneralMasterOneFieldsItemTitleMax = 300;
312
+ export const getWorkflowResponseOneTwoSectionListItemSlipFieldsItemTwoGeneralMasterOneFieldsItemCodeMax = 100;
313
+ export const getWorkflowResponseOneTwoSectionListItemSlipFieldsItemTwoDefaultGeneralMasterItemOneCodeMax = 100;
314
+ export const getWorkflowResponseOneTwoSectionListItemSlipFieldsItemTwoDefaultGeneralMasterItemOneNameMax = 100;
315
+ export const getWorkflowResponseOneTwoSectionListItemSlipFieldsItemTwoDefaultGeneralMasterItemOneInputsItemFieldTitleMax = 300;
316
+ export const getWorkflowResponseOneTwoSectionListItemSlipFieldsItemTwoDefaultGeneralMasterItemOneInputsItemFieldCodeMax = 100;
317
+ export const getWorkflowResponseOneTwoTicketViewersItemUserOneEmailMax = 254;
318
+ export const getWorkflowResponseOneTwoTicketViewersItemUserOneCodeMax = 100;
319
+ export const getWorkflowResponseOneTwoTicketViewersItemUserOneFirstNameMax = 255;
320
+ export const getWorkflowResponseOneTwoTicketViewersItemUserOneLastNameMax = 255;
321
+ export const getWorkflowResponseOneTwoTicketViewersItemUserOneFullNameMax = 255;
322
+ export const getWorkflowResponseOneTwoTicketViewersItemUserOneEmployeeIdMax = 30;
323
+ export const getWorkflowResponseOneTwoTicketViewersItemTeamOneNameMax = 300;
324
+ export const getWorkflowResponseOneTwoTicketViewersItemTeamOneCodeMax = 100;
325
+ export const getWorkflowResponseOneTwoTicketViewersItemTeamOneNotesMax = 10000;
326
+ export const getWorkflowResponseOneTwoTicketViewersItemTeamOneUsersCountMin = 0;
327
+ export const getWorkflowResponseOneTwoTicketViewersItemGradeOneNameMax = 300;
328
+ export const getWorkflowResponseOneTwoTicketViewersItemGradeOneLevelMin = 0;
329
+ export const getWorkflowResponseOneTwoTicketViewersItemGradeOneLevelMax = 255;
330
+ export const getWorkflowResponseOneTwoTicketViewersItemGradeOneCodeMax = 100;
331
+ export const getWorkflowResponseOneTwoTicketViewersItemGradeOneIsDefaultDefault = false;
332
+ export const getWorkflowResponseTwoRouteConditionsItemRouteOneAuthorOneEmailMax = 254;
333
+ export const getWorkflowResponseTwoRouteConditionsItemRouteOneAuthorOneCodeMax = 100;
334
+ export const getWorkflowResponseTwoRouteConditionsItemRouteOneAuthorOneFirstNameMax = 255;
335
+ export const getWorkflowResponseTwoRouteConditionsItemRouteOneAuthorOneLastNameMax = 255;
336
+ export const getWorkflowResponseTwoRouteConditionsItemRouteOneAuthorOneFullNameMax = 255;
337
+ export const getWorkflowResponseTwoRouteConditionsItemRouteOneAuthorOneEmployeeIdMax = 30;
338
+ export const getWorkflowResponseTwoRouteConditionsItemRouteOneVersionAuthorOneEmailMax = 254;
339
+ export const getWorkflowResponseTwoRouteConditionsItemRouteOneVersionAuthorOneCodeMax = 100;
340
+ export const getWorkflowResponseTwoRouteConditionsItemRouteOneVersionAuthorOneFirstNameMax = 255;
341
+ export const getWorkflowResponseTwoRouteConditionsItemRouteOneVersionAuthorOneLastNameMax = 255;
342
+ export const getWorkflowResponseTwoRouteConditionsItemRouteOneVersionAuthorOneFullNameMax = 255;
343
+ export const getWorkflowResponseTwoRouteConditionsItemRouteOneVersionAuthorOneEmployeeIdMax = 30;
344
+ export const getWorkflowResponseTwoRouteConditionsItemRouteOneFolderOneNameMax = 300;
345
+ export const getWorkflowResponseTwoRouteConditionsItemRouteOneFolderOneCodeMax = 100;
346
+ export const getWorkflowResponseTwoRouteConditionsItemRouteOneFolderOneWorkflowsCountMin = 0;
347
+ export const getWorkflowResponseTwoRouteConditionsItemRouteOneFolderOneRoutesCountMin = 0;
348
+ export const getWorkflowResponseTwoRouteConditionsItemRouteOneFolderOnePipelinesCountMin = 0;
349
+ export const getWorkflowResponseTwoRouteConditionsItemConditionFieldsItemFormFieldOneTitleMax = 300;
350
+ export const getWorkflowResponseTwoRouteConditionsItemConditionFieldsItemFormFieldOneCodeMax = 100;
351
+ export const getWorkflowResponseTwoRouteConditionsItemConditionFieldsItemFormFieldOneMinLengthMin = 0;
352
+ export const getWorkflowResponseTwoRouteConditionsItemConditionFieldsItemFormFieldOneMaxLengthMin = 0;
353
+ export const getWorkflowResponseTwoRouteConditionsItemConditionFieldsItemFormFieldOneDecimalDigitMin = 0;
354
+ export const getWorkflowResponseTwoRouteConditionsItemConditionFieldsItemGradeOneNameMax = 300;
355
+ export const getWorkflowResponseTwoRouteConditionsItemConditionFieldsItemGradeOneLevelMin = 0;
356
+ export const getWorkflowResponseTwoRouteConditionsItemConditionFieldsItemGradeOneLevelMax = 255;
357
+ export const getWorkflowResponseTwoRouteConditionsItemConditionFieldsItemGradeOneCodeMax = 100;
358
+ export const getWorkflowResponseTwoRouteConditionsItemConditionFieldsItemGradeOneIsDefaultDefault = false;
359
+ export const getWorkflowResponseTwoRouteConditionsItemConditionFieldsItemTeamOneNameMax = 300;
360
+ export const getWorkflowResponseTwoRouteConditionsItemConditionFieldsItemTeamOneCodeMax = 100;
361
+ export const getWorkflowResponseTwoRouteConditionsItemConditionFieldsItemTeamOneNotesMax = 10000;
362
+ export const getWorkflowResponseTwoRouteConditionsItemConditionFieldsItemTeamOneUsersCountMin = 0;
363
+ export const getWorkflowResponseTwoRouteConditionsItemConditionFieldsItemGeneralMasterItemOneCodeMax = 100;
364
+ export const getWorkflowResponseTwoRouteConditionsItemConditionFieldsItemGeneralMasterItemOneNameMax = 100;
365
+ export const getWorkflowResponseTwoRouteConditionsItemConditionFieldsItemGeneralMasterItemOneInputsItemFieldTitleMax = 300;
366
+ export const getWorkflowResponseTwoRouteConditionsItemConditionFieldsItemGeneralMasterItemOneInputsItemFieldCodeMax = 100;
367
+ export const GetWorkflowResponse = zod
368
+ .object({
369
+ id: zod.string().describe('UUID'),
370
+ code: zod
371
+ .string()
372
+ .regex(getWorkflowResponseOneOneCodeRegExp)
373
+ .describe('コード'),
374
+ versionId: zod.string().describe('バージョンのUUID'),
375
+ versionNumber: zod.number().describe('バージョン番号'),
376
+ name: zod.string().describe('名前'),
377
+ description: zod.string().describe('説明'),
378
+ status: zod
379
+ .enum(['visible', 'invisible', 'deleted'])
380
+ .describe('ステータス。visibleは有効、invisibleは無効、deletedは削除済み。'),
381
+ publicTicket: zod
382
+ .boolean()
383
+ .default(getWorkflowResponseOneOnePublicTicketDefault)
384
+ .describe('チケットがテナント全体に共有される場合true'),
385
+ visibleToManager: zod
386
+ .enum(['none', 'direct', 'all'])
387
+ .describe('申請者の上長を共有ユーザーに追加するか。noneは追加しない、directは直属の上長のみ、allはすべての上長を表す。'),
388
+ visibleToTeamMembers: zod
389
+ .boolean()
390
+ .default(getWorkflowResponseOneOneVisibleToTeamMembersDefault)
391
+ .describe('申請チームのメンバーが共有ユーザーに追加される場合true'),
392
+ titleDescription: zod.string().nullable().describe('タイトルの説明'),
393
+ ticketNumberFormat: zod
394
+ .string()
395
+ .nullable()
396
+ .describe('チケット番号のフォーマット'),
397
+ overwritable: zod.boolean().describe('承認者による上書きが可能な場合true'),
398
+ createdAt: zod.string().describe('作成日時'),
399
+ updatedAt: zod.string().describe('更新日時'),
400
+ titleInputMode: zod
401
+ .enum(['none', 'input', 'calculate'])
402
+ .describe('タイトル入力モード'),
403
+ titleFormula: zod.string().nullable().describe('タイトルの計算式'),
404
+ allowEditingOfViewers: zod
405
+ .boolean()
406
+ .default(getWorkflowResponseOneOneAllowEditingOfViewersDefault)
407
+ .describe('共有ユーザーの編集が可能な場合true'),
408
+ author: zod
409
+ .union([
410
+ zod
411
+ .object({
412
+ id: zod.uuid().describe('UUID'),
413
+ email: zod
414
+ .email()
415
+ .max(getWorkflowResponseOneOneAuthorOneEmailMax)
416
+ .describe('メールアドレス'),
417
+ code: zod
418
+ .string()
419
+ .max(getWorkflowResponseOneOneAuthorOneCodeMax)
420
+ .describe('コード'),
421
+ firstName: zod
422
+ .string()
423
+ .max(getWorkflowResponseOneOneAuthorOneFirstNameMax)
424
+ .describe('名'),
425
+ lastName: zod
426
+ .string()
427
+ .max(getWorkflowResponseOneOneAuthorOneLastNameMax)
428
+ .describe(''),
429
+ fullName: zod
430
+ .string()
431
+ .max(getWorkflowResponseOneOneAuthorOneFullNameMax)
432
+ .describe('フルネーム'),
433
+ employeeId: zod
434
+ .string()
435
+ .max(getWorkflowResponseOneOneAuthorOneEmployeeIdMax)
436
+ .nullish()
437
+ .describe('社員番号'),
438
+ image: zod
439
+ .object({
440
+ '100x100': zod.string().nullable(),
441
+ '64x64': zod.string().nullable(),
442
+ '32x32': zod.string().nullable(),
443
+ })
444
+ .describe('ユーザー画像のURL。サイズごとに複数のURLを返します。'),
445
+ status: zod
446
+ .enum(['invited', 'activated', 'suspended', 'deactivated'])
447
+ .describe('ステータス'),
448
+ locale: zod.string().describe('ロケール(jaまたはen)'),
449
+ createdAt: zod.iso.datetime({}).describe('作成日時'),
450
+ updatedAt: zod.iso.datetime({}).describe('更新日時'),
451
+ deactivatedAt: zod.iso.datetime({}).nullish().describe('削除日時'),
452
+ })
453
+ .describe('ユーザー'),
454
+ zod.null(),
455
+ ])
456
+ .describe('作成者'),
457
+ versionAuthor: zod
458
+ .union([
459
+ zod
460
+ .object({
461
+ id: zod.uuid().describe('UUID'),
462
+ email: zod
463
+ .email()
464
+ .max(getWorkflowResponseOneOneVersionAuthorOneEmailMax)
465
+ .describe('メールアドレス'),
466
+ code: zod
467
+ .string()
468
+ .max(getWorkflowResponseOneOneVersionAuthorOneCodeMax)
469
+ .describe('コード'),
470
+ firstName: zod
471
+ .string()
472
+ .max(getWorkflowResponseOneOneVersionAuthorOneFirstNameMax)
473
+ .describe(''),
474
+ lastName: zod
475
+ .string()
476
+ .max(getWorkflowResponseOneOneVersionAuthorOneLastNameMax)
477
+ .describe(''),
478
+ fullName: zod
479
+ .string()
480
+ .max(getWorkflowResponseOneOneVersionAuthorOneFullNameMax)
481
+ .describe('フルネーム'),
482
+ employeeId: zod
483
+ .string()
484
+ .max(getWorkflowResponseOneOneVersionAuthorOneEmployeeIdMax)
485
+ .nullish()
486
+ .describe('社員番号'),
487
+ image: zod
488
+ .object({
489
+ '100x100': zod.string().nullable(),
490
+ '64x64': zod.string().nullable(),
491
+ '32x32': zod.string().nullable(),
492
+ })
493
+ .describe('ユーザー画像のURL。サイズごとに複数のURLを返します。'),
494
+ status: zod
495
+ .enum(['invited', 'activated', 'suspended', 'deactivated'])
496
+ .describe('ステータス'),
497
+ locale: zod.string().describe('ロケール(jaまたはen)'),
498
+ createdAt: zod.iso.datetime({}).describe('作成日時'),
499
+ updatedAt: zod.iso.datetime({}).describe('更新日時'),
500
+ deactivatedAt: zod.iso.datetime({}).nullish().describe('削除日時'),
501
+ })
502
+ .describe('ユーザー'),
503
+ zod.null(),
504
+ ])
505
+ .describe('バージョン作成者'),
506
+ folder: zod
507
+ .object({
508
+ id: zod.uuid().describe('UUID'),
509
+ name: zod
510
+ .string()
511
+ .max(getWorkflowResponseOneOneFolderOneNameMax)
512
+ .describe('名前'),
513
+ code: zod
514
+ .string()
515
+ .max(getWorkflowResponseOneOneFolderOneCodeMax)
516
+ .describe('コード'),
517
+ description: zod.string().nullish().describe('説明'),
518
+ workflowsCount: zod
519
+ .number()
520
+ .min(getWorkflowResponseOneOneFolderOneWorkflowsCountMin)
521
+ .describe('フォルダ内のワークフロー数'),
522
+ routesCount: zod
523
+ .number()
524
+ .min(getWorkflowResponseOneOneFolderOneRoutesCountMin)
525
+ .describe('フォルダ内の経路数'),
526
+ pipelinesCount: zod
527
+ .number()
528
+ .min(getWorkflowResponseOneOneFolderOnePipelinesCountMin)
529
+ .describe('フォルダ内のパイプライン数'),
530
+ createdAt: zod.iso.datetime({}).describe('作成日時'),
531
+ updatedAt: zod.iso.datetime({}).describe('更新日時'),
532
+ })
533
+ .describe('フォルダ')
534
+ .describe('フォルダ'),
535
+ categories: zod
536
+ .array(zod
537
+ .object({
538
+ id: zod.uuid().describe('UUID'),
539
+ name: zod
540
+ .string()
541
+ .max(getWorkflowResponseOneOneCategoriesItemNameMax)
542
+ .describe('名前'),
543
+ createdAt: zod.iso.datetime({}).describe('作成日時'),
544
+ updatedAt: zod.iso.datetime({}).describe('更新日時'),
545
+ })
546
+ .describe('カテゴリ'))
547
+ .describe('カテゴリの配列'),
548
+ })
549
+ .describe('ワークフロー')
550
+ .and(zod.object({
551
+ sectionList: zod
552
+ .array(zod
553
+ .object({
554
+ sectionType: zod.enum(['form', 'slip']),
555
+ title: zod.string().nullable().describe('タイトル'),
556
+ description: zod.string().nullable().describe('説明'),
557
+ id: zod
558
+ .uuid()
559
+ .optional()
560
+ .describe('フォームセクションのID(UUID)。明細セクションには含まれません。'),
561
+ formFields: zod
562
+ .array(zod
563
+ .object({
564
+ id: zod.uuid().describe('UUID'),
565
+ title: zod
566
+ .string()
567
+ .max(getWorkflowResponseOneTwoSectionListItemFormFieldsItemOneTitleMax)
568
+ .describe('説明'),
569
+ description: zod.string().nullable().describe('説明'),
570
+ fieldType: zod
571
+ .enum([
572
+ 'text',
573
+ 'text_long',
574
+ 'number',
575
+ 'integer',
576
+ 'checkbox',
577
+ 'pull_down',
578
+ 'date',
579
+ 'file',
580
+ 'master',
581
+ 'user',
582
+ 'team',
583
+ 'ticket',
584
+ 'calculation',
585
+ 'button_api',
586
+ 'button_kintone',
587
+ ])
588
+ .describe('フィールドの型'),
589
+ required: zod.boolean().describe('必須項目かどうか'),
590
+ approver: zod
591
+ .boolean()
592
+ .describe('承認者が編集可能かどうか'),
593
+ author: zod
594
+ .boolean()
595
+ .optional()
596
+ .describe('申請者が編集可能かどうか'),
597
+ options: zod
598
+ .array(zod.string())
599
+ .nullable()
600
+ .describe('選択肢のリスト。型がcheckboxまたはpull_downのときのみ値が入ります。'),
601
+ code: zod
602
+ .string()
603
+ .max(getWorkflowResponseOneTwoSectionListItemFormFieldsItemOneCodeMax)
604
+ .describe('コード'),
605
+ size: zod
606
+ .enum(['full', 'half'])
607
+ .describe('フォームサイズ。fullの場合全幅、halfの場合1\/2になります。'),
608
+ regexpFormat: zod
609
+ .string()
610
+ .nullable()
611
+ .describe('正規表現フォーマット'),
612
+ formula: zod
613
+ .string()
614
+ .nullable()
615
+ .describe('計算式。\n型がcalculationのときのみ値が入ります。'),
616
+ defaultValue: zod.string().nullable().describe('初期値'),
617
+ minValue: zod.number().nullable().describe('最小値'),
618
+ maxValue: zod.number().nullable().describe('最大値'),
619
+ minLength: zod
620
+ .number()
621
+ .min(getWorkflowResponseOneTwoSectionListItemFormFieldsItemOneMinLengthMin)
622
+ .nullable()
623
+ .describe('最小文字数'),
624
+ maxLength: zod
625
+ .number()
626
+ .min(getWorkflowResponseOneTwoSectionListItemFormFieldsItemOneMaxLengthMin)
627
+ .nullable()
628
+ .describe('最大文字数'),
629
+ decimalDigit: zod
630
+ .number()
631
+ .min(getWorkflowResponseOneTwoSectionListItemFormFieldsItemOneDecimalDigitMin)
632
+ .nullable()
633
+ .describe('小数の桁数'),
634
+ delimited: zod
635
+ .boolean()
636
+ .nullable()
637
+ .describe('カンマ区切りで表示する場合true。\n整数、数値、自動計算フィールド以外ではnullが入ります。'),
638
+ prefix: zod
639
+ .string()
640
+ .nullable()
641
+ .describe('単位(接頭辞)'),
642
+ suffix: zod
643
+ .string()
644
+ .nullable()
645
+ .describe('単位(接尾辞)'),
646
+ hidden: zod
647
+ .boolean()
648
+ .nullish()
649
+ .describe('隠しフィールドである場合true'),
650
+ readonlyOnUi: zod
651
+ .boolean()
652
+ .nullish()
653
+ .describe('trueの時、申請者・承認者が画面上から値を入力することを禁止します。\n外部API連携(ボタン)による代入や、REST API経由での入力はこのオプションの対象外です。'),
654
+ })
655
+ .describe('フォームフィールド')
656
+ .and(zod.object({
657
+ generalMaster: zod
658
+ .union([
659
+ zod
660
+ .object({
661
+ id: zod.uuid().describe('UUID'),
662
+ code: zod
663
+ .string()
664
+ .max(getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoGeneralMasterOneCodeMax)
665
+ .describe('コード'),
666
+ name: zod
667
+ .string()
668
+ .max(getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoGeneralMasterOneNameMax)
669
+ .describe('名前'),
670
+ description: zod
671
+ .string()
672
+ .nullable()
673
+ .describe('説明'),
674
+ createdAt: zod.iso
675
+ .datetime({})
676
+ .describe('作成日時'),
677
+ updatedAt: zod.iso
678
+ .datetime({})
679
+ .describe('更新日時'),
680
+ fields: zod
681
+ .array(zod
682
+ .object({
683
+ id: zod.uuid().describe('UUID'),
684
+ title: zod
685
+ .string()
686
+ .max(getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoGeneralMasterOneFieldsItemTitleMax)
687
+ .describe('フィールド名'),
688
+ description: zod
689
+ .string()
690
+ .nullable()
691
+ .describe('フィールドの説明'),
692
+ code: zod
693
+ .string()
694
+ .max(getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoGeneralMasterOneFieldsItemCodeMax)
695
+ .describe('フィールドのコード'),
696
+ fieldType: zod
697
+ .enum([
698
+ 'text',
699
+ 'text_long',
700
+ 'number',
701
+ 'integer',
702
+ 'checkbox',
703
+ 'pull_down',
704
+ 'date',
705
+ ])
706
+ .describe('フィールドの型'),
707
+ required: zod
708
+ .boolean()
709
+ .describe('必須項目かどうか'),
710
+ visible: zod
711
+ .boolean()
712
+ .describe('管理者以外も閲覧可能な場合true'),
713
+ options: zod
714
+ .array(zod.string())
715
+ .nullable()
716
+ .describe('選択肢。fieldTypeがcheckboxまたはpull_downのときのみ。'),
717
+ createdAt: zod.iso
718
+ .datetime({})
719
+ .describe('作成日時'),
720
+ updatedAt: zod.iso
721
+ .datetime({})
722
+ .describe('更新日時'),
723
+ })
724
+ .describe('汎用マスタのカスタムフィールド'))
725
+ .describe('カスタムフィールドの配列'),
726
+ })
727
+ .describe('汎用マスタ'),
728
+ zod.null(),
729
+ ])
730
+ .optional()
731
+ .describe('汎用マスタ(汎用マスタフィールドの場合)'),
732
+ defaultGeneralMasterItem: zod
733
+ .union([
734
+ zod
735
+ .object({
736
+ id: zod.uuid().describe('UUID'),
737
+ code: zod
738
+ .string()
739
+ .max(getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoDefaultGeneralMasterItemOneCodeMax)
740
+ .describe('コード'),
741
+ name: zod
742
+ .string()
743
+ .max(getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoDefaultGeneralMasterItemOneNameMax)
744
+ .describe('名前'),
745
+ description: zod
746
+ .string()
747
+ .nullable()
748
+ .describe('説明'),
749
+ createdAt: zod.iso
750
+ .datetime({})
751
+ .describe('作成日時'),
752
+ updatedAt: zod.iso
753
+ .datetime({})
754
+ .describe('更新日時'),
755
+ startsOn: zod.iso
756
+ .date()
757
+ .nullable()
758
+ .describe('有効期限の開始日'),
759
+ endsOn: zod.iso
760
+ .date()
761
+ .nullable()
762
+ .describe('有効期限の終了日'),
763
+ inputs: zod
764
+ .array(zod.object({
765
+ id: zod.uuid().describe('UUID'),
766
+ value: zod
767
+ .union([
768
+ zod.string().nullable(),
769
+ zod.array(zod.string()),
770
+ ])
771
+ .describe('入力値'),
772
+ createdAt: zod.iso
773
+ .datetime({})
774
+ .describe('作成日時'),
775
+ updatedAt: zod.iso
776
+ .datetime({})
777
+ .describe('更新日時'),
778
+ field: zod
779
+ .object({
780
+ id: zod.uuid().describe('UUID'),
781
+ title: zod
782
+ .string()
783
+ .max(getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoDefaultGeneralMasterItemOneInputsItemFieldTitleMax)
784
+ .describe('フィールド名'),
785
+ description: zod
786
+ .string()
787
+ .nullable()
788
+ .describe('フィールドの説明'),
789
+ code: zod
790
+ .string()
791
+ .max(getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoDefaultGeneralMasterItemOneInputsItemFieldCodeMax)
792
+ .describe('フィールドのコード'),
793
+ fieldType: zod
794
+ .enum([
795
+ 'text',
796
+ 'text_long',
797
+ 'number',
798
+ 'integer',
799
+ 'checkbox',
800
+ 'pull_down',
801
+ 'date',
802
+ ])
803
+ .describe('フィールドの型'),
804
+ required: zod
805
+ .boolean()
806
+ .describe('必須項目かどうか'),
807
+ visible: zod
808
+ .boolean()
809
+ .describe('管理者以外も閲覧可能な場合true'),
810
+ options: zod
811
+ .array(zod.string())
812
+ .nullable()
813
+ .describe('選択肢。fieldTypeがcheckboxまたはpull_downのときのみ。'),
814
+ createdAt: zod.iso
815
+ .datetime({})
816
+ .describe('作成日時'),
817
+ updatedAt: zod.iso
818
+ .datetime({})
819
+ .describe('更新日時'),
820
+ })
821
+ .describe('汎用マスタのカスタムフィールド'),
822
+ }))
823
+ .describe('カスタムフィールドの入力の配列'),
824
+ })
825
+ .describe('汎用マスタのアイテム'),
826
+ zod.null(),
827
+ ])
828
+ .optional()
829
+ .describe('初期値(汎用マスタフィールドの場合)'),
830
+ externalApiSetting: zod
831
+ .union([
832
+ zod
833
+ .object({
834
+ id: zod.uuid().describe('UUID'),
835
+ httpMethod: zod
836
+ .enum([
837
+ 'get',
838
+ 'post',
839
+ 'put',
840
+ 'delete',
841
+ 'patch',
842
+ ])
843
+ .describe('HTTPメソッド'),
844
+ url: zod.url().describe('URL'),
845
+ headers: zod
846
+ .array(zod.object({
847
+ key: zod
848
+ .string()
849
+ .describe('ヘッダーのキー'),
850
+ value: zod
851
+ .string()
852
+ .describe('ヘッダーの値'),
853
+ }))
854
+ .describe('リクエストヘッダー'),
855
+ responseArray: zod
856
+ .boolean()
857
+ .describe('レスポンスが複数レコードを含む場合true'),
858
+ arrayJsonPath: zod
859
+ .string()
860
+ .nullable()
861
+ .describe('複数レコードを含む場合の配列へのJSONPath'),
862
+ mappings: zod
863
+ .array(zod.object({
864
+ formField: zod
865
+ .object({
866
+ id: zod.uuid().describe('UUID'),
867
+ title: zod
868
+ .string()
869
+ .max(getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoExternalApiSettingOneMappingsItemFormFieldTitleMax)
870
+ .describe('説明'),
871
+ description: zod
872
+ .string()
873
+ .nullable()
874
+ .describe('説明'),
875
+ fieldType: zod
876
+ .enum([
877
+ 'text',
878
+ 'text_long',
879
+ 'number',
880
+ 'integer',
881
+ 'checkbox',
882
+ 'pull_down',
883
+ 'date',
884
+ 'file',
885
+ 'master',
886
+ 'user',
887
+ 'team',
888
+ 'ticket',
889
+ 'calculation',
890
+ 'button_api',
891
+ 'button_kintone',
892
+ ])
893
+ .describe('フィールドの型'),
894
+ required: zod
895
+ .boolean()
896
+ .describe('必須項目かどうか'),
897
+ approver: zod
898
+ .boolean()
899
+ .describe('承認者が編集可能かどうか'),
900
+ author: zod
901
+ .boolean()
902
+ .optional()
903
+ .describe('申請者が編集可能かどうか'),
904
+ options: zod
905
+ .array(zod.string())
906
+ .nullable()
907
+ .describe('選択肢のリスト。型がcheckboxまたはpull_downのときのみ値が入ります。'),
908
+ code: zod
909
+ .string()
910
+ .max(getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoExternalApiSettingOneMappingsItemFormFieldCodeMax)
911
+ .describe('コード'),
912
+ size: zod
913
+ .enum(['full', 'half'])
914
+ .describe('フォームサイズ。fullの場合全幅、halfの場合1\/2になります。'),
915
+ regexpFormat: zod
916
+ .string()
917
+ .nullable()
918
+ .describe('正規表現フォーマット'),
919
+ formula: zod
920
+ .string()
921
+ .nullable()
922
+ .describe('計算式。\n型がcalculationのときのみ値が入ります。'),
923
+ defaultValue: zod
924
+ .string()
925
+ .nullable()
926
+ .describe('初期値'),
927
+ minValue: zod
928
+ .number()
929
+ .nullable()
930
+ .describe('最小値'),
931
+ maxValue: zod
932
+ .number()
933
+ .nullable()
934
+ .describe('最大値'),
935
+ minLength: zod
936
+ .number()
937
+ .min(getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoExternalApiSettingOneMappingsItemFormFieldMinLengthMin)
938
+ .nullable()
939
+ .describe('最小文字数'),
940
+ maxLength: zod
941
+ .number()
942
+ .min(getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoExternalApiSettingOneMappingsItemFormFieldMaxLengthMin)
943
+ .nullable()
944
+ .describe('最大文字数'),
945
+ decimalDigit: zod
946
+ .number()
947
+ .min(getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoExternalApiSettingOneMappingsItemFormFieldDecimalDigitMin)
948
+ .nullable()
949
+ .describe('小数の桁数'),
950
+ delimited: zod
951
+ .boolean()
952
+ .nullable()
953
+ .describe('カンマ区切りで表示する場合true。\n整数、数値、自動計算フィールド以外ではnullが入ります。'),
954
+ prefix: zod
955
+ .string()
956
+ .nullable()
957
+ .describe('単位(接頭辞)'),
958
+ suffix: zod
959
+ .string()
960
+ .nullable()
961
+ .describe('単位(接尾辞)'),
962
+ hidden: zod
963
+ .boolean()
964
+ .nullish()
965
+ .describe('隠しフィールドである場合true'),
966
+ readonlyOnUi: zod
967
+ .boolean()
968
+ .nullish()
969
+ .describe('trueの時、申請者・承認者が画面上から値を入力することを禁止します。\n外部API連携(ボタン)による代入や、REST API経由での入力はこのオプションの対象外です。'),
970
+ })
971
+ .describe('フォームフィールド'),
972
+ jsonPath: zod
973
+ .string()
974
+ .describe('値抽出用のJSONPath'),
975
+ displayInTable: zod
976
+ .boolean()
977
+ .describe('選択用テーブルで表示する場合true'),
978
+ title: zod
979
+ .string()
980
+ .nullable()
981
+ .describe('選択用テーブルでのタイトル'),
982
+ }))
983
+ .describe('フィールドへのマッピング設定'),
984
+ })
985
+ .describe('外部API設定'),
986
+ zod.null(),
987
+ ])
988
+ .optional()
989
+ .describe('外部API設定。fieldTypeがbutton_apiのときのみ値が入ります。'),
990
+ kintoneAppSetting: zod
991
+ .union([
992
+ zod
993
+ .object({
994
+ id: zod.uuid().describe('UUID'),
995
+ formField: zod
996
+ .object({
997
+ id: zod.uuid().describe('UUID'),
998
+ title: zod
999
+ .string()
1000
+ .max(getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoKintoneAppSettingOneFormFieldTitleMax)
1001
+ .describe('説明'),
1002
+ description: zod
1003
+ .string()
1004
+ .nullable()
1005
+ .describe('説明'),
1006
+ fieldType: zod
1007
+ .enum([
1008
+ 'text',
1009
+ 'text_long',
1010
+ 'number',
1011
+ 'integer',
1012
+ 'checkbox',
1013
+ 'pull_down',
1014
+ 'date',
1015
+ 'file',
1016
+ 'master',
1017
+ 'user',
1018
+ 'team',
1019
+ 'ticket',
1020
+ 'calculation',
1021
+ 'button_api',
1022
+ 'button_kintone',
1023
+ ])
1024
+ .describe('フィールドの型'),
1025
+ required: zod
1026
+ .boolean()
1027
+ .describe('必須項目かどうか'),
1028
+ approver: zod
1029
+ .boolean()
1030
+ .describe('承認者が編集可能かどうか'),
1031
+ author: zod
1032
+ .boolean()
1033
+ .optional()
1034
+ .describe('申請者が編集可能かどうか'),
1035
+ options: zod
1036
+ .array(zod.string())
1037
+ .nullable()
1038
+ .describe('選択肢のリスト。型がcheckboxまたはpull_downのときのみ値が入ります。'),
1039
+ code: zod
1040
+ .string()
1041
+ .max(getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoKintoneAppSettingOneFormFieldCodeMax)
1042
+ .describe('コード'),
1043
+ size: zod
1044
+ .enum(['full', 'half'])
1045
+ .describe('フォームサイズ。fullの場合全幅、halfの場合1\/2になります。'),
1046
+ regexpFormat: zod
1047
+ .string()
1048
+ .nullable()
1049
+ .describe('正規表現フォーマット'),
1050
+ formula: zod
1051
+ .string()
1052
+ .nullable()
1053
+ .describe('計算式。\n型がcalculationのときのみ値が入ります。'),
1054
+ defaultValue: zod
1055
+ .string()
1056
+ .nullable()
1057
+ .describe('初期値'),
1058
+ minValue: zod
1059
+ .number()
1060
+ .nullable()
1061
+ .describe('最小値'),
1062
+ maxValue: zod
1063
+ .number()
1064
+ .nullable()
1065
+ .describe('最大値'),
1066
+ minLength: zod
1067
+ .number()
1068
+ .min(getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoKintoneAppSettingOneFormFieldMinLengthMin)
1069
+ .nullable()
1070
+ .describe('最小文字数'),
1071
+ maxLength: zod
1072
+ .number()
1073
+ .min(getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoKintoneAppSettingOneFormFieldMaxLengthMin)
1074
+ .nullable()
1075
+ .describe('最大文字数'),
1076
+ decimalDigit: zod
1077
+ .number()
1078
+ .min(getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoKintoneAppSettingOneFormFieldDecimalDigitMin)
1079
+ .nullable()
1080
+ .describe('小数の桁数'),
1081
+ delimited: zod
1082
+ .boolean()
1083
+ .nullable()
1084
+ .describe('カンマ区切りで表示する場合true。\n整数、数値、自動計算フィールド以外ではnullが入ります。'),
1085
+ prefix: zod
1086
+ .string()
1087
+ .nullable()
1088
+ .describe('単位(接頭辞)'),
1089
+ suffix: zod
1090
+ .string()
1091
+ .nullable()
1092
+ .describe('単位(接尾辞)'),
1093
+ hidden: zod
1094
+ .boolean()
1095
+ .nullish()
1096
+ .describe('隠しフィールドである場合true'),
1097
+ readonlyOnUi: zod
1098
+ .boolean()
1099
+ .nullish()
1100
+ .describe('trueの時、申請者・承認者が画面上から値を入力することを禁止します。\n外部API連携(ボタン)による代入や、REST API経由での入力はこのオプションの対象外です。'),
1101
+ })
1102
+ .describe('フォームフィールド'),
1103
+ kintoneApp: zod
1104
+ .object({
1105
+ id: zod.uuid().describe('UUID'),
1106
+ name: zod
1107
+ .string()
1108
+ .describe('kintoneアプリ名'),
1109
+ domain: zod
1110
+ .string()
1111
+ .describe('kintoneドメイン'),
1112
+ appId: zod
1113
+ .string()
1114
+ .describe('kintoneアプリID'),
1115
+ })
1116
+ .describe('kintone連携'),
1117
+ mappings: zod
1118
+ .array(zod.object({
1119
+ id: zod.uuid().describe('UUID'),
1120
+ displayInTable: zod
1121
+ .boolean()
1122
+ .describe('選択用テーブルで表示する場合true'),
1123
+ kintoneFieldCode: zod
1124
+ .string()
1125
+ .describe('kintoneフィールドコード'),
1126
+ kintoneFieldName: zod
1127
+ .string()
1128
+ .describe('kintoneフィールドコード'),
1129
+ kintoneFieldType: zod
1130
+ .string()
1131
+ .describe('kintoneフィールドコード'),
1132
+ formField: zod
1133
+ .object({
1134
+ id: zod.uuid().describe('UUID'),
1135
+ title: zod
1136
+ .string()
1137
+ .max(getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoKintoneAppSettingOneMappingsItemFormFieldTitleMax)
1138
+ .describe('説明'),
1139
+ description: zod
1140
+ .string()
1141
+ .nullable()
1142
+ .describe('説明'),
1143
+ fieldType: zod
1144
+ .enum([
1145
+ 'text',
1146
+ 'text_long',
1147
+ 'number',
1148
+ 'integer',
1149
+ 'checkbox',
1150
+ 'pull_down',
1151
+ 'date',
1152
+ 'file',
1153
+ 'master',
1154
+ 'user',
1155
+ 'team',
1156
+ 'ticket',
1157
+ 'calculation',
1158
+ 'button_api',
1159
+ 'button_kintone',
1160
+ ])
1161
+ .describe('フィールドの型'),
1162
+ required: zod
1163
+ .boolean()
1164
+ .describe('必須項目かどうか'),
1165
+ approver: zod
1166
+ .boolean()
1167
+ .describe('承認者が編集可能かどうか'),
1168
+ author: zod
1169
+ .boolean()
1170
+ .optional()
1171
+ .describe('申請者が編集可能かどうか'),
1172
+ options: zod
1173
+ .array(zod.string())
1174
+ .nullable()
1175
+ .describe('選択肢のリスト。型がcheckboxまたはpull_downのときのみ値が入ります。'),
1176
+ code: zod
1177
+ .string()
1178
+ .max(getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoKintoneAppSettingOneMappingsItemFormFieldCodeMax)
1179
+ .describe('コード'),
1180
+ size: zod
1181
+ .enum(['full', 'half'])
1182
+ .describe('フォームサイズ。fullの場合全幅、halfの場合1\/2になります。'),
1183
+ regexpFormat: zod
1184
+ .string()
1185
+ .nullable()
1186
+ .describe('正規表現フォーマット'),
1187
+ formula: zod
1188
+ .string()
1189
+ .nullable()
1190
+ .describe('計算式。\n型がcalculationのときのみ値が入ります。'),
1191
+ defaultValue: zod
1192
+ .string()
1193
+ .nullable()
1194
+ .describe('初期値'),
1195
+ minValue: zod
1196
+ .number()
1197
+ .nullable()
1198
+ .describe('最小値'),
1199
+ maxValue: zod
1200
+ .number()
1201
+ .nullable()
1202
+ .describe('最大値'),
1203
+ minLength: zod
1204
+ .number()
1205
+ .min(getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoKintoneAppSettingOneMappingsItemFormFieldMinLengthMin)
1206
+ .nullable()
1207
+ .describe('最小文字数'),
1208
+ maxLength: zod
1209
+ .number()
1210
+ .min(getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoKintoneAppSettingOneMappingsItemFormFieldMaxLengthMin)
1211
+ .nullable()
1212
+ .describe('最大文字数'),
1213
+ decimalDigit: zod
1214
+ .number()
1215
+ .min(getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoKintoneAppSettingOneMappingsItemFormFieldDecimalDigitMin)
1216
+ .nullable()
1217
+ .describe('小数の桁数'),
1218
+ delimited: zod
1219
+ .boolean()
1220
+ .nullable()
1221
+ .describe('カンマ区切りで表示する場合true。\n整数、数値、自動計算フィールド以外ではnullが入ります。'),
1222
+ prefix: zod
1223
+ .string()
1224
+ .nullable()
1225
+ .describe('単位(接頭辞)'),
1226
+ suffix: zod
1227
+ .string()
1228
+ .nullable()
1229
+ .describe('単位(接尾辞)'),
1230
+ hidden: zod
1231
+ .boolean()
1232
+ .nullish()
1233
+ .describe('隠しフィールドである場合true'),
1234
+ readonlyOnUi: zod
1235
+ .boolean()
1236
+ .nullish()
1237
+ .describe('trueの時、申請者・承認者が画面上から値を入力することを禁止します。\n外部API連携(ボタン)による代入や、REST API経由での入力はこのオプションの対象外です。'),
1238
+ })
1239
+ .describe('フォームフィールド'),
1240
+ }))
1241
+ .describe('フィールドへのマッピング設定'),
1242
+ })
1243
+ .describe('kintone連携設定'),
1244
+ zod.null(),
1245
+ ])
1246
+ .optional()
1247
+ .describe('外部API設定。fieldTypeがbutton_kintoneのときのみ値が入ります。'),
1248
+ climberCloudSetting: zod
1249
+ .union([
1250
+ zod
1251
+ .object({
1252
+ id: zod.uuid().describe('UUID'),
1253
+ contentsId: zod
1254
+ .string()
1255
+ .describe('ファイル付きリストID'),
1256
+ formField: zod
1257
+ .object({
1258
+ id: zod.uuid().describe('UUID'),
1259
+ title: zod
1260
+ .string()
1261
+ .max(getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoClimberCloudSettingOneFormFieldTitleMax)
1262
+ .describe('説明'),
1263
+ description: zod
1264
+ .string()
1265
+ .nullable()
1266
+ .describe('説明'),
1267
+ fieldType: zod
1268
+ .enum([
1269
+ 'text',
1270
+ 'text_long',
1271
+ 'number',
1272
+ 'integer',
1273
+ 'checkbox',
1274
+ 'pull_down',
1275
+ 'date',
1276
+ 'file',
1277
+ 'master',
1278
+ 'user',
1279
+ 'team',
1280
+ 'ticket',
1281
+ 'calculation',
1282
+ 'button_api',
1283
+ 'button_kintone',
1284
+ ])
1285
+ .describe('フィールドの型'),
1286
+ required: zod
1287
+ .boolean()
1288
+ .describe('必須項目かどうか'),
1289
+ approver: zod
1290
+ .boolean()
1291
+ .describe('承認者が編集可能かどうか'),
1292
+ author: zod
1293
+ .boolean()
1294
+ .optional()
1295
+ .describe('申請者が編集可能かどうか'),
1296
+ options: zod
1297
+ .array(zod.string())
1298
+ .nullable()
1299
+ .describe('選択肢のリスト。型がcheckboxまたはpull_downのときのみ値が入ります。'),
1300
+ code: zod
1301
+ .string()
1302
+ .max(getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoClimberCloudSettingOneFormFieldCodeMax)
1303
+ .describe('コード'),
1304
+ size: zod
1305
+ .enum(['full', 'half'])
1306
+ .describe('フォームサイズ。fullの場合全幅、halfの場合1\/2になります。'),
1307
+ regexpFormat: zod
1308
+ .string()
1309
+ .nullable()
1310
+ .describe('正規表現フォーマット'),
1311
+ formula: zod
1312
+ .string()
1313
+ .nullable()
1314
+ .describe('計算式。\n型がcalculationのときのみ値が入ります。'),
1315
+ defaultValue: zod
1316
+ .string()
1317
+ .nullable()
1318
+ .describe('初期値'),
1319
+ minValue: zod
1320
+ .number()
1321
+ .nullable()
1322
+ .describe('最小値'),
1323
+ maxValue: zod
1324
+ .number()
1325
+ .nullable()
1326
+ .describe('最大値'),
1327
+ minLength: zod
1328
+ .number()
1329
+ .min(getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoClimberCloudSettingOneFormFieldMinLengthMin)
1330
+ .nullable()
1331
+ .describe('最小文字数'),
1332
+ maxLength: zod
1333
+ .number()
1334
+ .min(getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoClimberCloudSettingOneFormFieldMaxLengthMin)
1335
+ .nullable()
1336
+ .describe('最大文字数'),
1337
+ decimalDigit: zod
1338
+ .number()
1339
+ .min(getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoClimberCloudSettingOneFormFieldDecimalDigitMin)
1340
+ .nullable()
1341
+ .describe('小数の桁数'),
1342
+ delimited: zod
1343
+ .boolean()
1344
+ .nullable()
1345
+ .describe('カンマ区切りで表示する場合true。\n整数、数値、自動計算フィールド以外ではnullが入ります。'),
1346
+ prefix: zod
1347
+ .string()
1348
+ .nullable()
1349
+ .describe('単位(接頭辞)'),
1350
+ suffix: zod
1351
+ .string()
1352
+ .nullable()
1353
+ .describe('単位(接尾辞)'),
1354
+ hidden: zod
1355
+ .boolean()
1356
+ .nullish()
1357
+ .describe('隠しフィールドである場合true'),
1358
+ readonlyOnUi: zod
1359
+ .boolean()
1360
+ .nullish()
1361
+ .describe('trueの時、申請者・承認者が画面上から値を入力することを禁止します。\n外部API連携(ボタン)による代入や、REST API経由での入力はこのオプションの対象外です。'),
1362
+ })
1363
+ .describe('フォームフィールド'),
1364
+ mappings: zod
1365
+ .array(zod.object({
1366
+ formField: zod
1367
+ .object({
1368
+ id: zod.uuid().describe('UUID'),
1369
+ title: zod
1370
+ .string()
1371
+ .max(getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoClimberCloudSettingOneMappingsItemFormFieldTitleMax)
1372
+ .describe('説明'),
1373
+ description: zod
1374
+ .string()
1375
+ .nullable()
1376
+ .describe('説明'),
1377
+ fieldType: zod
1378
+ .enum([
1379
+ 'text',
1380
+ 'text_long',
1381
+ 'number',
1382
+ 'integer',
1383
+ 'checkbox',
1384
+ 'pull_down',
1385
+ 'date',
1386
+ 'file',
1387
+ 'master',
1388
+ 'user',
1389
+ 'team',
1390
+ 'ticket',
1391
+ 'calculation',
1392
+ 'button_api',
1393
+ 'button_kintone',
1394
+ ])
1395
+ .describe('フィールドの型'),
1396
+ required: zod
1397
+ .boolean()
1398
+ .describe('必須項目かどうか'),
1399
+ approver: zod
1400
+ .boolean()
1401
+ .describe('承認者が編集可能かどうか'),
1402
+ author: zod
1403
+ .boolean()
1404
+ .optional()
1405
+ .describe('申請者が編集可能かどうか'),
1406
+ options: zod
1407
+ .array(zod.string())
1408
+ .nullable()
1409
+ .describe('選択肢のリスト。型がcheckboxまたはpull_downのときのみ値が入ります。'),
1410
+ code: zod
1411
+ .string()
1412
+ .max(getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoClimberCloudSettingOneMappingsItemFormFieldCodeMax)
1413
+ .describe('コード'),
1414
+ size: zod
1415
+ .enum(['full', 'half'])
1416
+ .describe('フォームサイズ。fullの場合全幅、halfの場合1\/2になります。'),
1417
+ regexpFormat: zod
1418
+ .string()
1419
+ .nullable()
1420
+ .describe('正規表現フォーマット'),
1421
+ formula: zod
1422
+ .string()
1423
+ .nullable()
1424
+ .describe('計算式。\n型がcalculationのときのみ値が入ります。'),
1425
+ defaultValue: zod
1426
+ .string()
1427
+ .nullable()
1428
+ .describe('初期値'),
1429
+ minValue: zod
1430
+ .number()
1431
+ .nullable()
1432
+ .describe('最小値'),
1433
+ maxValue: zod
1434
+ .number()
1435
+ .nullable()
1436
+ .describe('最大値'),
1437
+ minLength: zod
1438
+ .number()
1439
+ .min(getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoClimberCloudSettingOneMappingsItemFormFieldMinLengthMin)
1440
+ .nullable()
1441
+ .describe('最小文字数'),
1442
+ maxLength: zod
1443
+ .number()
1444
+ .min(getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoClimberCloudSettingOneMappingsItemFormFieldMaxLengthMin)
1445
+ .nullable()
1446
+ .describe('最大文字数'),
1447
+ decimalDigit: zod
1448
+ .number()
1449
+ .min(getWorkflowResponseOneTwoSectionListItemFormFieldsItemTwoClimberCloudSettingOneMappingsItemFormFieldDecimalDigitMin)
1450
+ .nullable()
1451
+ .describe('小数の桁数'),
1452
+ delimited: zod
1453
+ .boolean()
1454
+ .nullable()
1455
+ .describe('カンマ区切りで表示する場合true。\n整数、数値、自動計算フィールド以外ではnullが入ります。'),
1456
+ prefix: zod
1457
+ .string()
1458
+ .nullable()
1459
+ .describe('単位(接頭辞)'),
1460
+ suffix: zod
1461
+ .string()
1462
+ .nullable()
1463
+ .describe('単位(接尾辞)'),
1464
+ hidden: zod
1465
+ .boolean()
1466
+ .nullish()
1467
+ .describe('隠しフィールドである場合true'),
1468
+ readonlyOnUi: zod
1469
+ .boolean()
1470
+ .nullish()
1471
+ .describe('trueの時、申請者・承認者が画面上から値を入力することを禁止します。\n外部API連携(ボタン)による代入や、REST API経由での入力はこのオプションの対象外です。'),
1472
+ })
1473
+ .describe('フォームフィールド'),
1474
+ order: zod
1475
+ .number()
1476
+ .describe('表示順(1から始まります)'),
1477
+ }))
1478
+ .describe('ClimberCloudのカラムとのマッピング設定'),
1479
+ })
1480
+ .describe('ClimberCloud連携設定'),
1481
+ zod.null(),
1482
+ ])
1483
+ .optional()
1484
+ .describe('ClimberCloud連携設定。fieldTypeがfileのときのみ値が入ります。'),
1485
+ generalMasterSearchFilters: zod
1486
+ .array(zod.object({
1487
+ id: zod.uuid().describe('UUID'),
1488
+ filterFormFieldId: zod
1489
+ .uuid()
1490
+ .describe('絞り込みに使う汎用フィールドのID(UUID)'),
1491
+ fieldType: zod
1492
+ .enum([
1493
+ 'free_word',
1494
+ 'name',
1495
+ 'code',
1496
+ 'description',
1497
+ 'custom_field',
1498
+ ])
1499
+ .describe('絞り込み先のフィールドのタイプ'),
1500
+ generalMasterFieldId: zod
1501
+ .uuid()
1502
+ .nullable()
1503
+ .describe('fieldType=custom_fieldの場合に絞り込み先の汎用マスタのカスタムフィールドのID(UUID)'),
1504
+ }))
1505
+ .nullish()
1506
+ .describe('汎用マスタ型フィールドの自動絞り込みの設定'),
1507
+ }))
1508
+ .describe('フォームフィールドの詳細'))
1509
+ .optional()
1510
+ .describe('フォームフィールド。明細セクションには含まれません。'),
1511
+ conditional: zod
1512
+ .boolean()
1513
+ .optional()
1514
+ .describe('表示条件があるかどうか。明細セクションには含まれません。'),
1515
+ combinationType: zod
1516
+ .enum(['all', 'any', 'custom'])
1517
+ .optional()
1518
+ .describe('条件の組み合わせタイプ。all=すべて、any=いずれか、custom=高度な条件式。明細セクションには含まれません。'),
1519
+ combinationExpression: zod
1520
+ .string()
1521
+ .nullish()
1522
+ .describe('高度な条件式'),
1523
+ slipFields: zod
1524
+ .array(zod
1525
+ .object({
1526
+ id: zod.uuid().describe('UUID'),
1527
+ fieldType: zod
1528
+ .enum([
1529
+ 'text',
1530
+ 'number',
1531
+ 'integer',
1532
+ 'calculation',
1533
+ 'pull_down',
1534
+ 'checkbox',
1535
+ 'date',
1536
+ 'file',
1537
+ 'master',
1538
+ 'user',
1539
+ 'team',
1540
+ 'ticket',
1541
+ ])
1542
+ .describe('フィールドの型'),
1543
+ code: zod.string().describe('フィールドのコード'),
1544
+ title: zod.string().describe('タイトル'),
1545
+ required: zod.boolean().describe('入力必須の場合true'),
1546
+ showTotal: zod
1547
+ .boolean()
1548
+ .describe('列の合計を表示する場合true'),
1549
+ options: zod
1550
+ .array(zod.string())
1551
+ .describe('選択肢。プルダウンまたはチェックボックスのときのみ値が入ります。'),
1552
+ regexpFormat: zod
1553
+ .string()
1554
+ .nullable()
1555
+ .describe('正規表現フォーマット'),
1556
+ formula: zod
1557
+ .string()
1558
+ .nullable()
1559
+ .describe('計算式。型が自動計算のときのみ値が入ります。'),
1560
+ maxValue: zod.number().nullable().describe('最大値'),
1561
+ minValue: zod.number().nullable().describe('最小値'),
1562
+ defaultValue: zod.string().nullable().describe('初期値'),
1563
+ decimalDigit: zod
1564
+ .number()
1565
+ .nullable()
1566
+ .describe('小数の桁数'),
1567
+ delimited: zod
1568
+ .boolean()
1569
+ .nullable()
1570
+ .describe('カンマ区切りで表示する場合true。\n整数、数値、自動計算フィールド以外ではnullが入ります。'),
1571
+ allowedExtensions: zod
1572
+ .array(zod.string())
1573
+ .describe('添付可能な拡張子リスト'),
1574
+ prefix: zod
1575
+ .string()
1576
+ .nullable()
1577
+ .describe('単位(接頭辞)'),
1578
+ suffix: zod
1579
+ .string()
1580
+ .nullable()
1581
+ .describe('単位(接尾辞)'),
1582
+ approver: zod
1583
+ .boolean()
1584
+ .describe('承認者が編集可能かどうか'),
1585
+ author: zod
1586
+ .boolean()
1587
+ .optional()
1588
+ .describe('申請者が編集可能かどうか'),
1589
+ hidden: zod
1590
+ .boolean()
1591
+ .nullish()
1592
+ .describe('隠しフィールドである場合true'),
1593
+ readonlyOnUi: zod
1594
+ .boolean()
1595
+ .nullish()
1596
+ .describe('trueの時、申請者・承認者が画面上から値を入力することを禁止します。\n外部API連携(ボタン)による代入や、REST API経由での入力はこのオプションの対象外です。'),
1597
+ })
1598
+ .describe('明細フィールド')
1599
+ .and(zod.object({
1600
+ generalMaster: zod
1601
+ .union([
1602
+ zod
1603
+ .object({
1604
+ id: zod.uuid().describe('UUID'),
1605
+ code: zod
1606
+ .string()
1607
+ .max(getWorkflowResponseOneTwoSectionListItemSlipFieldsItemTwoGeneralMasterOneCodeMax)
1608
+ .describe('コード'),
1609
+ name: zod
1610
+ .string()
1611
+ .max(getWorkflowResponseOneTwoSectionListItemSlipFieldsItemTwoGeneralMasterOneNameMax)
1612
+ .describe('名前'),
1613
+ description: zod
1614
+ .string()
1615
+ .nullable()
1616
+ .describe('説明'),
1617
+ createdAt: zod.iso
1618
+ .datetime({})
1619
+ .describe('作成日時'),
1620
+ updatedAt: zod.iso
1621
+ .datetime({})
1622
+ .describe('更新日時'),
1623
+ fields: zod
1624
+ .array(zod
1625
+ .object({
1626
+ id: zod.uuid().describe('UUID'),
1627
+ title: zod
1628
+ .string()
1629
+ .max(getWorkflowResponseOneTwoSectionListItemSlipFieldsItemTwoGeneralMasterOneFieldsItemTitleMax)
1630
+ .describe('フィールド名'),
1631
+ description: zod
1632
+ .string()
1633
+ .nullable()
1634
+ .describe('フィールドの説明'),
1635
+ code: zod
1636
+ .string()
1637
+ .max(getWorkflowResponseOneTwoSectionListItemSlipFieldsItemTwoGeneralMasterOneFieldsItemCodeMax)
1638
+ .describe('フィールドのコード'),
1639
+ fieldType: zod
1640
+ .enum([
1641
+ 'text',
1642
+ 'text_long',
1643
+ 'number',
1644
+ 'integer',
1645
+ 'checkbox',
1646
+ 'pull_down',
1647
+ 'date',
1648
+ ])
1649
+ .describe('フィールドの型'),
1650
+ required: zod
1651
+ .boolean()
1652
+ .describe('必須項目かどうか'),
1653
+ visible: zod
1654
+ .boolean()
1655
+ .describe('管理者以外も閲覧可能な場合true'),
1656
+ options: zod
1657
+ .array(zod.string())
1658
+ .nullable()
1659
+ .describe('選択肢。fieldTypeがcheckboxまたはpull_downのときのみ。'),
1660
+ createdAt: zod.iso
1661
+ .datetime({})
1662
+ .describe('作成日時'),
1663
+ updatedAt: zod.iso
1664
+ .datetime({})
1665
+ .describe('更新日時'),
1666
+ })
1667
+ .describe('汎用マスタのカスタムフィールド'))
1668
+ .describe('カスタムフィールドの配列'),
1669
+ })
1670
+ .describe('汎用マスタ'),
1671
+ zod.null(),
1672
+ ])
1673
+ .optional()
1674
+ .describe('汎用マスタ。型が汎用マスタのときのみ値が入ります。'),
1675
+ defaultGeneralMasterItem: zod
1676
+ .union([
1677
+ zod
1678
+ .object({
1679
+ id: zod.uuid().describe('UUID'),
1680
+ code: zod
1681
+ .string()
1682
+ .max(getWorkflowResponseOneTwoSectionListItemSlipFieldsItemTwoDefaultGeneralMasterItemOneCodeMax)
1683
+ .describe('コード'),
1684
+ name: zod
1685
+ .string()
1686
+ .max(getWorkflowResponseOneTwoSectionListItemSlipFieldsItemTwoDefaultGeneralMasterItemOneNameMax)
1687
+ .describe('名前'),
1688
+ description: zod
1689
+ .string()
1690
+ .nullable()
1691
+ .describe('説明'),
1692
+ createdAt: zod.iso
1693
+ .datetime({})
1694
+ .describe('作成日時'),
1695
+ updatedAt: zod.iso
1696
+ .datetime({})
1697
+ .describe('更新日時'),
1698
+ startsOn: zod.iso
1699
+ .date()
1700
+ .nullable()
1701
+ .describe('有効期限の開始日'),
1702
+ endsOn: zod.iso
1703
+ .date()
1704
+ .nullable()
1705
+ .describe('有効期限の終了日'),
1706
+ inputs: zod
1707
+ .array(zod.object({
1708
+ id: zod.uuid().describe('UUID'),
1709
+ value: zod
1710
+ .union([
1711
+ zod.string().nullable(),
1712
+ zod.array(zod.string()),
1713
+ ])
1714
+ .describe('入力値'),
1715
+ createdAt: zod.iso
1716
+ .datetime({})
1717
+ .describe('作成日時'),
1718
+ updatedAt: zod.iso
1719
+ .datetime({})
1720
+ .describe('更新日時'),
1721
+ field: zod
1722
+ .object({
1723
+ id: zod.uuid().describe('UUID'),
1724
+ title: zod
1725
+ .string()
1726
+ .max(getWorkflowResponseOneTwoSectionListItemSlipFieldsItemTwoDefaultGeneralMasterItemOneInputsItemFieldTitleMax)
1727
+ .describe('フィールド名'),
1728
+ description: zod
1729
+ .string()
1730
+ .nullable()
1731
+ .describe('フィールドの説明'),
1732
+ code: zod
1733
+ .string()
1734
+ .max(getWorkflowResponseOneTwoSectionListItemSlipFieldsItemTwoDefaultGeneralMasterItemOneInputsItemFieldCodeMax)
1735
+ .describe('フィールドのコード'),
1736
+ fieldType: zod
1737
+ .enum([
1738
+ 'text',
1739
+ 'text_long',
1740
+ 'number',
1741
+ 'integer',
1742
+ 'checkbox',
1743
+ 'pull_down',
1744
+ 'date',
1745
+ ])
1746
+ .describe('フィールドの型'),
1747
+ required: zod
1748
+ .boolean()
1749
+ .describe('必須項目かどうか'),
1750
+ visible: zod
1751
+ .boolean()
1752
+ .describe('管理者以外も閲覧可能な場合true'),
1753
+ options: zod
1754
+ .array(zod.string())
1755
+ .nullable()
1756
+ .describe('選択肢。fieldTypeがcheckboxまたはpull_downのときのみ。'),
1757
+ createdAt: zod.iso
1758
+ .datetime({})
1759
+ .describe('作成日時'),
1760
+ updatedAt: zod.iso
1761
+ .datetime({})
1762
+ .describe('更新日時'),
1763
+ })
1764
+ .describe('汎用マスタのカスタムフィールド'),
1765
+ }))
1766
+ .describe('カスタムフィールドの入力の配列'),
1767
+ })
1768
+ .describe('汎用マスタのアイテム'),
1769
+ zod.null(),
1770
+ ])
1771
+ .optional()
1772
+ .describe('汎用マスタアイテムの初期値'),
1773
+ }))
1774
+ .describe('明細フィールドの詳細'))
1775
+ .optional()
1776
+ .describe('明細フィールド。フォームセクションには含まれません。'),
1777
+ })
1778
+ .describe('明細セクションまたはフォームセクション'))
1779
+ .optional()
1780
+ .describe('セクション・明細を表すオブジェクトを画面に表示される順に格納した配列。'),
1781
+ ticketViewers: zod
1782
+ .array(zod
1783
+ .object({
1784
+ id: zod.string().describe('UUID'),
1785
+ user: zod
1786
+ .union([
1787
+ zod
1788
+ .object({
1789
+ id: zod.uuid().describe('UUID'),
1790
+ email: zod
1791
+ .email()
1792
+ .max(getWorkflowResponseOneTwoTicketViewersItemUserOneEmailMax)
1793
+ .describe('メールアドレス'),
1794
+ code: zod
1795
+ .string()
1796
+ .max(getWorkflowResponseOneTwoTicketViewersItemUserOneCodeMax)
1797
+ .describe('コード'),
1798
+ firstName: zod
1799
+ .string()
1800
+ .max(getWorkflowResponseOneTwoTicketViewersItemUserOneFirstNameMax)
1801
+ .describe('名'),
1802
+ lastName: zod
1803
+ .string()
1804
+ .max(getWorkflowResponseOneTwoTicketViewersItemUserOneLastNameMax)
1805
+ .describe('姓'),
1806
+ fullName: zod
1807
+ .string()
1808
+ .max(getWorkflowResponseOneTwoTicketViewersItemUserOneFullNameMax)
1809
+ .describe('フルネーム'),
1810
+ employeeId: zod
1811
+ .string()
1812
+ .max(getWorkflowResponseOneTwoTicketViewersItemUserOneEmployeeIdMax)
1813
+ .nullish()
1814
+ .describe('社員番号'),
1815
+ image: zod
1816
+ .object({
1817
+ '100x100': zod.string().nullable(),
1818
+ '64x64': zod.string().nullable(),
1819
+ '32x32': zod.string().nullable(),
1820
+ })
1821
+ .describe('ユーザー画像のURL。サイズごとに複数のURLを返します。'),
1822
+ status: zod
1823
+ .enum([
1824
+ 'invited',
1825
+ 'activated',
1826
+ 'suspended',
1827
+ 'deactivated',
1828
+ ])
1829
+ .describe('ステータス'),
1830
+ locale: zod.string().describe('ロケール(jaまたはen)'),
1831
+ createdAt: zod.iso.datetime({}).describe('作成日時'),
1832
+ updatedAt: zod.iso.datetime({}).describe('更新日時'),
1833
+ deactivatedAt: zod.iso
1834
+ .datetime({})
1835
+ .nullish()
1836
+ .describe('削除日時'),
1837
+ })
1838
+ .describe('ユーザー'),
1839
+ zod.null(),
1840
+ ])
1841
+ .describe('ユーザー。ユーザーとチームは片方のみ値が入ります。'),
1842
+ team: zod
1843
+ .union([
1844
+ zod
1845
+ .object({
1846
+ id: zod.uuid().describe('UUID'),
1847
+ name: zod
1848
+ .string()
1849
+ .max(getWorkflowResponseOneTwoTicketViewersItemTeamOneNameMax)
1850
+ .describe('名前'),
1851
+ fullName: zod.string().describe('上位組織を含む名前'),
1852
+ code: zod
1853
+ .string()
1854
+ .max(getWorkflowResponseOneTwoTicketViewersItemTeamOneCodeMax)
1855
+ .describe('コード'),
1856
+ notes: zod
1857
+ .string()
1858
+ .max(getWorkflowResponseOneTwoTicketViewersItemTeamOneNotesMax)
1859
+ .nullish()
1860
+ .describe('管理用メモ'),
1861
+ approveOnly: zod
1862
+ .boolean()
1863
+ .describe('承認専用チームかどうか'),
1864
+ usersCount: zod
1865
+ .number()
1866
+ .min(getWorkflowResponseOneTwoTicketViewersItemTeamOneUsersCountMin)
1867
+ .describe('ユーザー数'),
1868
+ createdAt: zod.iso.datetime({}).describe('作成日時'),
1869
+ updatedAt: zod.iso.datetime({}).describe('更新日時'),
1870
+ })
1871
+ .describe('チーム'),
1872
+ zod.null(),
1873
+ ])
1874
+ .describe('チーム。ユーザーとチームは片方のみ値が入ります。'),
1875
+ grade: zod
1876
+ .union([
1877
+ zod
1878
+ .object({
1879
+ id: zod.uuid().describe('UUID'),
1880
+ name: zod
1881
+ .string()
1882
+ .max(getWorkflowResponseOneTwoTicketViewersItemGradeOneNameMax)
1883
+ .describe('名前'),
1884
+ level: zod
1885
+ .number()
1886
+ .min(getWorkflowResponseOneTwoTicketViewersItemGradeOneLevelMin)
1887
+ .max(getWorkflowResponseOneTwoTicketViewersItemGradeOneLevelMax)
1888
+ .describe('レベル'),
1889
+ code: zod
1890
+ .string()
1891
+ .max(getWorkflowResponseOneTwoTicketViewersItemGradeOneCodeMax)
1892
+ .nullable()
1893
+ .describe('コード'),
1894
+ isDefault: zod
1895
+ .boolean()
1896
+ .default(getWorkflowResponseOneTwoTicketViewersItemGradeOneIsDefaultDefault)
1897
+ .describe('デフォルトの役職かどうか'),
1898
+ createdAt: zod.iso.datetime({}).describe('作成日時'),
1899
+ updatedAt: zod.iso.datetime({}).describe('更新日時'),
1900
+ })
1901
+ .describe('役職'),
1902
+ zod.null(),
1903
+ ])
1904
+ .describe('役職。チーム指定で役職も指定する場合のみ値が入ります。'),
1905
+ })
1906
+ .describe('ワークフロー単位で設定された共有ユーザー'))
1907
+ .describe('ワークフロー単位のチケット共有ユーザー'),
1908
+ cloudSignSetting: zod
1909
+ .union([
1910
+ zod.object({
1911
+ required: zod.boolean().describe('書類の添付が必須な場合true'),
1912
+ }),
1913
+ zod.null(),
1914
+ ])
1915
+ .describe('クラウドサイン連携設定'),
1916
+ }))
1917
+ .describe('チケットに含まれるワークフロー。セクション情報と共有ユーザー情報を含みます。')
1918
+ .and(zod.object({
1919
+ routeConditions: zod
1920
+ .array(zod
1921
+ .object({
1922
+ id: zod.string().describe('UUID'),
1923
+ conditionType: zod
1924
+ .enum(['always', 'field', 'field_otherwise'])
1925
+ .describe('経路分岐タイプ'),
1926
+ combinationType: zod
1927
+ .enum(['all', 'any', 'custom'])
1928
+ .describe('条件の組み合わせタイプ'),
1929
+ combinationExpression: zod.string().describe('高度な条件式'),
1930
+ route: zod
1931
+ .union([
1932
+ zod
1933
+ .object({
1934
+ id: zod.string().describe('UUID'),
1935
+ code: zod.string().describe('コード'),
1936
+ status: zod
1937
+ .enum(['visible', 'deleted', 'error'])
1938
+ .describe('ステータス'),
1939
+ versionId: zod.string().describe('バージョンのID'),
1940
+ versionNumber: zod.number().describe('バージョン番号'),
1941
+ name: zod.string().describe('名前'),
1942
+ description: zod.string().describe('説明'),
1943
+ createdAt: zod.string().describe('作成日時'),
1944
+ updatedAt: zod.string().describe('更新日時'),
1945
+ author: zod
1946
+ .union([
1947
+ zod
1948
+ .object({
1949
+ id: zod.uuid().describe('UUID'),
1950
+ email: zod
1951
+ .email()
1952
+ .max(getWorkflowResponseTwoRouteConditionsItemRouteOneAuthorOneEmailMax)
1953
+ .describe('メールアドレス'),
1954
+ code: zod
1955
+ .string()
1956
+ .max(getWorkflowResponseTwoRouteConditionsItemRouteOneAuthorOneCodeMax)
1957
+ .describe('コード'),
1958
+ firstName: zod
1959
+ .string()
1960
+ .max(getWorkflowResponseTwoRouteConditionsItemRouteOneAuthorOneFirstNameMax)
1961
+ .describe('名'),
1962
+ lastName: zod
1963
+ .string()
1964
+ .max(getWorkflowResponseTwoRouteConditionsItemRouteOneAuthorOneLastNameMax)
1965
+ .describe('姓'),
1966
+ fullName: zod
1967
+ .string()
1968
+ .max(getWorkflowResponseTwoRouteConditionsItemRouteOneAuthorOneFullNameMax)
1969
+ .describe('フルネーム'),
1970
+ employeeId: zod
1971
+ .string()
1972
+ .max(getWorkflowResponseTwoRouteConditionsItemRouteOneAuthorOneEmployeeIdMax)
1973
+ .nullish()
1974
+ .describe('社員番号'),
1975
+ image: zod
1976
+ .object({
1977
+ '100x100': zod.string().nullable(),
1978
+ '64x64': zod.string().nullable(),
1979
+ '32x32': zod.string().nullable(),
1980
+ })
1981
+ .describe('ユーザー画像のURL。サイズごとに複数のURLを返します。'),
1982
+ status: zod
1983
+ .enum([
1984
+ 'invited',
1985
+ 'activated',
1986
+ 'suspended',
1987
+ 'deactivated',
1988
+ ])
1989
+ .describe('ステータス'),
1990
+ locale: zod
1991
+ .string()
1992
+ .describe('ロケール(jaまたはen)'),
1993
+ createdAt: zod.iso
1994
+ .datetime({})
1995
+ .describe('作成日時'),
1996
+ updatedAt: zod.iso
1997
+ .datetime({})
1998
+ .describe('更新日時'),
1999
+ deactivatedAt: zod.iso
2000
+ .datetime({})
2001
+ .nullish()
2002
+ .describe('削除日時'),
2003
+ })
2004
+ .describe('ユーザー'),
2005
+ zod.null(),
2006
+ ])
2007
+ .optional()
2008
+ .describe('作成者'),
2009
+ versionAuthor: zod
2010
+ .union([
2011
+ zod
2012
+ .object({
2013
+ id: zod.uuid().describe('UUID'),
2014
+ email: zod
2015
+ .email()
2016
+ .max(getWorkflowResponseTwoRouteConditionsItemRouteOneVersionAuthorOneEmailMax)
2017
+ .describe('メールアドレス'),
2018
+ code: zod
2019
+ .string()
2020
+ .max(getWorkflowResponseTwoRouteConditionsItemRouteOneVersionAuthorOneCodeMax)
2021
+ .describe('コード'),
2022
+ firstName: zod
2023
+ .string()
2024
+ .max(getWorkflowResponseTwoRouteConditionsItemRouteOneVersionAuthorOneFirstNameMax)
2025
+ .describe('名'),
2026
+ lastName: zod
2027
+ .string()
2028
+ .max(getWorkflowResponseTwoRouteConditionsItemRouteOneVersionAuthorOneLastNameMax)
2029
+ .describe('姓'),
2030
+ fullName: zod
2031
+ .string()
2032
+ .max(getWorkflowResponseTwoRouteConditionsItemRouteOneVersionAuthorOneFullNameMax)
2033
+ .describe('フルネーム'),
2034
+ employeeId: zod
2035
+ .string()
2036
+ .max(getWorkflowResponseTwoRouteConditionsItemRouteOneVersionAuthorOneEmployeeIdMax)
2037
+ .nullish()
2038
+ .describe('社員番号'),
2039
+ image: zod
2040
+ .object({
2041
+ '100x100': zod.string().nullable(),
2042
+ '64x64': zod.string().nullable(),
2043
+ '32x32': zod.string().nullable(),
2044
+ })
2045
+ .describe('ユーザー画像のURL。サイズごとに複数のURLを返します。'),
2046
+ status: zod
2047
+ .enum([
2048
+ 'invited',
2049
+ 'activated',
2050
+ 'suspended',
2051
+ 'deactivated',
2052
+ ])
2053
+ .describe('ステータス'),
2054
+ locale: zod
2055
+ .string()
2056
+ .describe('ロケール(jaまたはen)'),
2057
+ createdAt: zod.iso
2058
+ .datetime({})
2059
+ .describe('作成日時'),
2060
+ updatedAt: zod.iso
2061
+ .datetime({})
2062
+ .describe('更新日時'),
2063
+ deactivatedAt: zod.iso
2064
+ .datetime({})
2065
+ .nullish()
2066
+ .describe('削除日時'),
2067
+ })
2068
+ .describe('ユーザー'),
2069
+ zod.null(),
2070
+ ])
2071
+ .optional(),
2072
+ folder: zod
2073
+ .object({
2074
+ id: zod.uuid().describe('UUID'),
2075
+ name: zod
2076
+ .string()
2077
+ .max(getWorkflowResponseTwoRouteConditionsItemRouteOneFolderOneNameMax)
2078
+ .describe('名前'),
2079
+ code: zod
2080
+ .string()
2081
+ .max(getWorkflowResponseTwoRouteConditionsItemRouteOneFolderOneCodeMax)
2082
+ .describe('コード'),
2083
+ description: zod.string().nullish().describe('説明'),
2084
+ workflowsCount: zod
2085
+ .number()
2086
+ .min(getWorkflowResponseTwoRouteConditionsItemRouteOneFolderOneWorkflowsCountMin)
2087
+ .describe('フォルダ内のワークフロー数'),
2088
+ routesCount: zod
2089
+ .number()
2090
+ .min(getWorkflowResponseTwoRouteConditionsItemRouteOneFolderOneRoutesCountMin)
2091
+ .describe('フォルダ内の経路数'),
2092
+ pipelinesCount: zod
2093
+ .number()
2094
+ .min(getWorkflowResponseTwoRouteConditionsItemRouteOneFolderOnePipelinesCountMin)
2095
+ .describe('フォルダ内のパイプライン数'),
2096
+ createdAt: zod.iso.datetime({}).describe('作成日時'),
2097
+ updatedAt: zod.iso.datetime({}).describe('更新日時'),
2098
+ })
2099
+ .describe('フォルダ')
2100
+ .describe('フォルダ'),
2101
+ })
2102
+ .describe('経路'),
2103
+ zod.null(),
2104
+ ])
2105
+ .describe('経路。routeまたはerrorMessageは片方のみ値が入ります。'),
2106
+ conditionFields: zod
2107
+ .array(zod
2108
+ .object({
2109
+ id: zod.string().describe('UUID'),
2110
+ symbol: zod
2111
+ .enum([
2112
+ 'equal',
2113
+ 'not_equal',
2114
+ 'greater_than',
2115
+ 'greater_than_or_equal',
2116
+ 'less_than',
2117
+ 'less_than_or_equal',
2118
+ 'include',
2119
+ 'exclude',
2120
+ 'is_empty',
2121
+ 'is_not_empty',
2122
+ 'descendants_or_equal',
2123
+ ])
2124
+ .describe('演算子'),
2125
+ value: zod.string().nullable().describe('しきい値'),
2126
+ formField: zod
2127
+ .object({
2128
+ id: zod.uuid().describe('UUID'),
2129
+ title: zod
2130
+ .string()
2131
+ .max(getWorkflowResponseTwoRouteConditionsItemConditionFieldsItemFormFieldOneTitleMax)
2132
+ .describe('説明'),
2133
+ description: zod.string().nullable().describe('説明'),
2134
+ fieldType: zod
2135
+ .enum([
2136
+ 'text',
2137
+ 'text_long',
2138
+ 'number',
2139
+ 'integer',
2140
+ 'checkbox',
2141
+ 'pull_down',
2142
+ 'date',
2143
+ 'file',
2144
+ 'master',
2145
+ 'user',
2146
+ 'team',
2147
+ 'ticket',
2148
+ 'calculation',
2149
+ 'button_api',
2150
+ 'button_kintone',
2151
+ ])
2152
+ .describe('フィールドの型'),
2153
+ required: zod.boolean().describe('必須項目かどうか'),
2154
+ approver: zod
2155
+ .boolean()
2156
+ .describe('承認者が編集可能かどうか'),
2157
+ author: zod
2158
+ .boolean()
2159
+ .optional()
2160
+ .describe('申請者が編集可能かどうか'),
2161
+ options: zod
2162
+ .array(zod.string())
2163
+ .nullable()
2164
+ .describe('選択肢のリスト。型がcheckboxまたはpull_downのときのみ値が入ります。'),
2165
+ code: zod
2166
+ .string()
2167
+ .max(getWorkflowResponseTwoRouteConditionsItemConditionFieldsItemFormFieldOneCodeMax)
2168
+ .describe('コード'),
2169
+ size: zod
2170
+ .enum(['full', 'half'])
2171
+ .describe('フォームサイズ。fullの場合全幅、halfの場合1\/2になります。'),
2172
+ regexpFormat: zod
2173
+ .string()
2174
+ .nullable()
2175
+ .describe('正規表現フォーマット'),
2176
+ formula: zod
2177
+ .string()
2178
+ .nullable()
2179
+ .describe('計算式。\n型がcalculationのときのみ値が入ります。'),
2180
+ defaultValue: zod
2181
+ .string()
2182
+ .nullable()
2183
+ .describe('初期値'),
2184
+ minValue: zod.number().nullable().describe('最小値'),
2185
+ maxValue: zod.number().nullable().describe('最大値'),
2186
+ minLength: zod
2187
+ .number()
2188
+ .min(getWorkflowResponseTwoRouteConditionsItemConditionFieldsItemFormFieldOneMinLengthMin)
2189
+ .nullable()
2190
+ .describe('最小文字数'),
2191
+ maxLength: zod
2192
+ .number()
2193
+ .min(getWorkflowResponseTwoRouteConditionsItemConditionFieldsItemFormFieldOneMaxLengthMin)
2194
+ .nullable()
2195
+ .describe('最大文字数'),
2196
+ decimalDigit: zod
2197
+ .number()
2198
+ .min(getWorkflowResponseTwoRouteConditionsItemConditionFieldsItemFormFieldOneDecimalDigitMin)
2199
+ .nullable()
2200
+ .describe('小数の桁数'),
2201
+ delimited: zod
2202
+ .boolean()
2203
+ .nullable()
2204
+ .describe('カンマ区切りで表示する場合true。\n整数、数値、自動計算フィールド以外ではnullが入ります。'),
2205
+ prefix: zod
2206
+ .string()
2207
+ .nullable()
2208
+ .describe('単位(接頭辞)'),
2209
+ suffix: zod
2210
+ .string()
2211
+ .nullable()
2212
+ .describe('単位(接尾辞)'),
2213
+ hidden: zod
2214
+ .boolean()
2215
+ .nullish()
2216
+ .describe('隠しフィールドである場合true'),
2217
+ readonlyOnUi: zod
2218
+ .boolean()
2219
+ .nullish()
2220
+ .describe('trueの時、申請者・承認者が画面上から値を入力することを禁止します。\n外部API連携(ボタン)による代入や、REST API経由での入力はこのオプションの対象外です。'),
2221
+ })
2222
+ .describe('フォームフィールド')
2223
+ .describe('対象のフォームフィールド'),
2224
+ grade: zod
2225
+ .union([
2226
+ zod
2227
+ .object({
2228
+ id: zod.uuid().describe('UUID'),
2229
+ name: zod
2230
+ .string()
2231
+ .max(getWorkflowResponseTwoRouteConditionsItemConditionFieldsItemGradeOneNameMax)
2232
+ .describe('名前'),
2233
+ level: zod
2234
+ .number()
2235
+ .min(getWorkflowResponseTwoRouteConditionsItemConditionFieldsItemGradeOneLevelMin)
2236
+ .max(getWorkflowResponseTwoRouteConditionsItemConditionFieldsItemGradeOneLevelMax)
2237
+ .describe('レベル'),
2238
+ code: zod
2239
+ .string()
2240
+ .max(getWorkflowResponseTwoRouteConditionsItemConditionFieldsItemGradeOneCodeMax)
2241
+ .nullable()
2242
+ .describe('コード'),
2243
+ isDefault: zod
2244
+ .boolean()
2245
+ .default(getWorkflowResponseTwoRouteConditionsItemConditionFieldsItemGradeOneIsDefaultDefault)
2246
+ .describe('デフォルトの役職かどうか'),
2247
+ createdAt: zod.iso
2248
+ .datetime({})
2249
+ .describe('作成日時'),
2250
+ updatedAt: zod.iso
2251
+ .datetime({})
2252
+ .describe('更新日時'),
2253
+ })
2254
+ .describe('役職'),
2255
+ zod.null(),
2256
+ ])
2257
+ .describe('しきい値として使う役職'),
2258
+ team: zod
2259
+ .union([
2260
+ zod
2261
+ .object({
2262
+ id: zod.uuid().describe('UUID'),
2263
+ name: zod
2264
+ .string()
2265
+ .max(getWorkflowResponseTwoRouteConditionsItemConditionFieldsItemTeamOneNameMax)
2266
+ .describe('名前'),
2267
+ fullName: zod
2268
+ .string()
2269
+ .describe('上位組織を含む名前'),
2270
+ code: zod
2271
+ .string()
2272
+ .max(getWorkflowResponseTwoRouteConditionsItemConditionFieldsItemTeamOneCodeMax)
2273
+ .describe('コード'),
2274
+ notes: zod
2275
+ .string()
2276
+ .max(getWorkflowResponseTwoRouteConditionsItemConditionFieldsItemTeamOneNotesMax)
2277
+ .nullish()
2278
+ .describe('管理用メモ'),
2279
+ approveOnly: zod
2280
+ .boolean()
2281
+ .describe('承認専用チームかどうか'),
2282
+ usersCount: zod
2283
+ .number()
2284
+ .min(getWorkflowResponseTwoRouteConditionsItemConditionFieldsItemTeamOneUsersCountMin)
2285
+ .describe('ユーザー数'),
2286
+ createdAt: zod.iso
2287
+ .datetime({})
2288
+ .describe('作成日時'),
2289
+ updatedAt: zod.iso
2290
+ .datetime({})
2291
+ .describe('更新日時'),
2292
+ })
2293
+ .describe('チーム'),
2294
+ zod.null(),
2295
+ ])
2296
+ .describe('しきい値として使うチーム'),
2297
+ generalMasterItem: zod
2298
+ .union([
2299
+ zod
2300
+ .object({
2301
+ id: zod.uuid().describe('UUID'),
2302
+ code: zod
2303
+ .string()
2304
+ .max(getWorkflowResponseTwoRouteConditionsItemConditionFieldsItemGeneralMasterItemOneCodeMax)
2305
+ .describe('コード'),
2306
+ name: zod
2307
+ .string()
2308
+ .max(getWorkflowResponseTwoRouteConditionsItemConditionFieldsItemGeneralMasterItemOneNameMax)
2309
+ .describe('名前'),
2310
+ description: zod
2311
+ .string()
2312
+ .nullable()
2313
+ .describe('説明'),
2314
+ createdAt: zod.iso
2315
+ .datetime({})
2316
+ .describe('作成日時'),
2317
+ updatedAt: zod.iso
2318
+ .datetime({})
2319
+ .describe('更新日時'),
2320
+ startsOn: zod.iso
2321
+ .date()
2322
+ .nullable()
2323
+ .describe('有効期限の開始日'),
2324
+ endsOn: zod.iso
2325
+ .date()
2326
+ .nullable()
2327
+ .describe('有効期限の終了日'),
2328
+ inputs: zod
2329
+ .array(zod.object({
2330
+ id: zod.uuid().describe('UUID'),
2331
+ value: zod
2332
+ .union([
2333
+ zod.string().nullable(),
2334
+ zod.array(zod.string()),
2335
+ ])
2336
+ .describe('入力値'),
2337
+ createdAt: zod.iso
2338
+ .datetime({})
2339
+ .describe('作成日時'),
2340
+ updatedAt: zod.iso
2341
+ .datetime({})
2342
+ .describe('更新日時'),
2343
+ field: zod
2344
+ .object({
2345
+ id: zod.uuid().describe('UUID'),
2346
+ title: zod
2347
+ .string()
2348
+ .max(getWorkflowResponseTwoRouteConditionsItemConditionFieldsItemGeneralMasterItemOneInputsItemFieldTitleMax)
2349
+ .describe('フィールド名'),
2350
+ description: zod
2351
+ .string()
2352
+ .nullable()
2353
+ .describe('フィールドの説明'),
2354
+ code: zod
2355
+ .string()
2356
+ .max(getWorkflowResponseTwoRouteConditionsItemConditionFieldsItemGeneralMasterItemOneInputsItemFieldCodeMax)
2357
+ .describe('フィールドのコード'),
2358
+ fieldType: zod
2359
+ .enum([
2360
+ 'text',
2361
+ 'text_long',
2362
+ 'number',
2363
+ 'integer',
2364
+ 'checkbox',
2365
+ 'pull_down',
2366
+ 'date',
2367
+ ])
2368
+ .describe('フィールドの型'),
2369
+ required: zod
2370
+ .boolean()
2371
+ .describe('必須項目かどうか'),
2372
+ visible: zod
2373
+ .boolean()
2374
+ .describe('管理者以外も閲覧可能な場合true'),
2375
+ options: zod
2376
+ .array(zod.string())
2377
+ .nullable()
2378
+ .describe('選択肢。fieldTypeがcheckboxまたはpull_downのときのみ。'),
2379
+ createdAt: zod.iso
2380
+ .datetime({})
2381
+ .describe('作成日時'),
2382
+ updatedAt: zod.iso
2383
+ .datetime({})
2384
+ .describe('更新日時'),
2385
+ })
2386
+ .describe('汎用マスタのカスタムフィールド'),
2387
+ }))
2388
+ .describe('カスタムフィールドの入力の配列'),
2389
+ })
2390
+ .describe('汎用マスタのアイテム'),
2391
+ zod.null(),
2392
+ ])
2393
+ .describe('しきい値として使う汎用マスタアイテム'),
2394
+ })
2395
+ .describe('ワークフロー経路分岐の条件'))
2396
+ .describe('条件'),
2397
+ errorMessage: zod
2398
+ .string()
2399
+ .nullable()
2400
+ .describe('申請拒否時のエラーメッセージ。routeまたはerrorMessageは片方のみ値が入ります。'),
2401
+ })
2402
+ .describe('ワークフローの経路分岐'))
2403
+ .describe('経路分岐'),
2404
+ }))
2405
+ .describe('ワークフローの詳細');
832
2406
  //# sourceMappingURL=workflow.zod.js.map