@kickflow/mcp-server 1.0.5 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 +1282 -1715
  27. package/dist/kickflow-api/generated/kickflowRESTAPIV1.schemas.js +44 -105
  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 +96 -96
  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 +9012 -9010
  48. package/dist/kickflow-api/generated/ticket/ticket.zod.js +130998 -41639
  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 +178 -178
  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 +9 -9
@@ -7,11 +7,6 @@ export interface ErrorResponse {
7
7
  /** エラーメッセージ */
8
8
  message: string;
9
9
  }
10
- /**
11
- * コード
12
- * @maxLength 100
13
- */
14
- export type GradeCode = string | null;
15
10
  /**
16
11
  * 役職
17
12
  */
@@ -32,8 +27,9 @@ export interface Grade {
32
27
  /**
33
28
  * コード
34
29
  * @maxLength 100
30
+ * @nullable
35
31
  */
36
- code: GradeCode;
32
+ code: string | null;
37
33
  /** デフォルトの役職かどうか */
38
34
  isDefault: boolean;
39
35
  /** 作成日時 */
@@ -83,21 +79,16 @@ export interface GradeUpdateBody {
83
79
  */
84
80
  code?: string;
85
81
  }
86
- /**
87
- * 社員番号
88
- * @maxLength 30
89
- */
90
- export type UserEmployeeId = string | null;
91
- export type UserImage100x100 = string | null;
92
- export type UserImage64x64 = string | null;
93
- export type UserImage32x32 = string | null;
94
82
  /**
95
83
  * ユーザー画像のURL。サイズごとに複数のURLを返します。
96
84
  */
97
85
  export type UserImage = {
98
- '100x100': UserImage100x100;
99
- '64x64': UserImage64x64;
100
- '32x32': UserImage32x32;
86
+ /** @nullable */
87
+ '100x100': string | null;
88
+ /** @nullable */
89
+ '64x64': string | null;
90
+ /** @nullable */
91
+ '32x32': string | null;
101
92
  };
102
93
  /**
103
94
  * ステータス
@@ -109,10 +100,6 @@ export declare const UserStatus: {
109
100
  readonly suspended: "suspended";
110
101
  readonly deactivated: "deactivated";
111
102
  };
112
- /**
113
- * 削除日時
114
- */
115
- export type UserDeactivatedAt = string | null;
116
103
  /**
117
104
  * ユーザー
118
105
  */
@@ -147,8 +134,9 @@ export interface User {
147
134
  /**
148
135
  * 社員番号
149
136
  * @maxLength 30
137
+ * @nullable
150
138
  */
151
- employeeId?: UserEmployeeId;
139
+ employeeId?: string | null;
152
140
  /** ユーザー画像のURL。サイズごとに複数のURLを返します。 */
153
141
  image: UserImage;
154
142
  /** ステータス */
@@ -159,21 +147,161 @@ export interface User {
159
147
  createdAt: string;
160
148
  /** 更新日時 */
161
149
  updatedAt: string;
162
- /** 削除日時 */
163
- deactivatedAt?: UserDeactivatedAt;
150
+ /**
151
+ * 削除日時
152
+ * @nullable
153
+ */
154
+ deactivatedAt?: string | null;
164
155
  }
165
156
  /**
166
157
  * ユーザー詳細
167
158
  */
168
159
  export type UserDetail = User;
169
160
  /**
170
- * 開始日
161
+ * ステータス。visibleは有効、invisibleは無効、deletedは削除済み。
162
+ */
163
+ export type WorkflowStatus = (typeof WorkflowStatus)[keyof typeof WorkflowStatus];
164
+ export declare const WorkflowStatus: {
165
+ readonly visible: "visible";
166
+ readonly invisible: "invisible";
167
+ readonly deleted: "deleted";
168
+ };
169
+ /**
170
+ * 申請者の上長を共有ユーザーに追加するか。noneは追加しない、directは直属の上長のみ、allはすべての上長を表す。
171
+ */
172
+ export type WorkflowVisibleToManager = (typeof WorkflowVisibleToManager)[keyof typeof WorkflowVisibleToManager];
173
+ export declare const WorkflowVisibleToManager: {
174
+ readonly none: "none";
175
+ readonly direct: "direct";
176
+ readonly all: "all";
177
+ };
178
+ /**
179
+ * タイトル入力モード
180
+ */
181
+ export type WorkflowTitleInputMode = (typeof WorkflowTitleInputMode)[keyof typeof WorkflowTitleInputMode];
182
+ export declare const WorkflowTitleInputMode: {
183
+ readonly none: "none";
184
+ readonly input: "input";
185
+ readonly calculate: "calculate";
186
+ };
187
+ /**
188
+ * フォルダ
189
+ */
190
+ export interface Folder {
191
+ /** UUID */
192
+ id: string;
193
+ /**
194
+ * 名前
195
+ * @maxLength 300
196
+ */
197
+ name: string;
198
+ /**
199
+ * コード
200
+ * @maxLength 100
201
+ */
202
+ code: string;
203
+ /**
204
+ * 説明
205
+ * @nullable
206
+ */
207
+ description?: string | null;
208
+ /**
209
+ * フォルダ内のワークフロー数
210
+ * @minimum 0
211
+ */
212
+ workflowsCount: number;
213
+ /**
214
+ * フォルダ内の経路数
215
+ * @minimum 0
216
+ */
217
+ routesCount: number;
218
+ /**
219
+ * フォルダ内のパイプライン数
220
+ * @minimum 0
221
+ */
222
+ pipelinesCount: number;
223
+ /** 作成日時 */
224
+ createdAt: string;
225
+ /** 更新日時 */
226
+ updatedAt: string;
227
+ }
228
+ /**
229
+ * カテゴリ
171
230
  */
172
- export type ProxyApplicantStartsOn = string | null;
231
+ export interface Category {
232
+ /** UUID */
233
+ id: string;
234
+ /**
235
+ * 名前
236
+ * @maxLength 100
237
+ */
238
+ name: string;
239
+ /** 作成日時 */
240
+ createdAt: string;
241
+ /** 更新日時 */
242
+ updatedAt: string;
243
+ }
173
244
  /**
174
- * 終了日
245
+ * ワークフロー
175
246
  */
176
- export type ProxyApplicantEndsOn = string | null;
247
+ export interface Workflow {
248
+ /** UUID */
249
+ id: string;
250
+ /**
251
+ * コード
252
+ * @pattern ^[a-zA-Z0-9_-]+$
253
+ */
254
+ code: string;
255
+ /** バージョンのUUID */
256
+ versionId: string;
257
+ /** バージョン番号 */
258
+ versionNumber: number;
259
+ /** 名前 */
260
+ name: string;
261
+ /** 説明 */
262
+ description: string;
263
+ /** ステータス。visibleは有効、invisibleは無効、deletedは削除済み。 */
264
+ status: WorkflowStatus;
265
+ /** チケットがテナント全体に共有される場合true */
266
+ publicTicket: boolean;
267
+ /** 申請者の上長を共有ユーザーに追加するか。noneは追加しない、directは直属の上長のみ、allはすべての上長を表す。 */
268
+ visibleToManager: WorkflowVisibleToManager;
269
+ /** 申請チームのメンバーが共有ユーザーに追加される場合true */
270
+ visibleToTeamMembers: boolean;
271
+ /**
272
+ * タイトルの説明
273
+ * @nullable
274
+ */
275
+ titleDescription: string | null;
276
+ /**
277
+ * チケット番号のフォーマット
278
+ * @nullable
279
+ */
280
+ ticketNumberFormat: string | null;
281
+ /** 承認者による上書きが可能な場合true */
282
+ overwritable: boolean;
283
+ /** 作成日時 */
284
+ createdAt: string;
285
+ /** 更新日時 */
286
+ updatedAt: string;
287
+ /** タイトル入力モード */
288
+ titleInputMode: WorkflowTitleInputMode;
289
+ /**
290
+ * タイトルの計算式
291
+ * @nullable
292
+ */
293
+ titleFormula: string | null;
294
+ /** 共有ユーザーの編集が可能な場合true */
295
+ allowEditingOfViewers?: boolean;
296
+ /** 作成者 */
297
+ author: User | null;
298
+ /** バージョン作成者 */
299
+ versionAuthor: User | null;
300
+ /** フォルダ */
301
+ folder: Folder;
302
+ /** カテゴリの配列 */
303
+ categories: Category[];
304
+ }
177
305
  /**
178
306
  * 代理申請
179
307
  */
@@ -186,21 +314,19 @@ export interface ProxyApplicant {
186
314
  updatedAt: string;
187
315
  user: User;
188
316
  proxyUser: User;
189
- /** 開始日 */
190
- startsOn: ProxyApplicantStartsOn;
191
- /** 終了日 */
192
- endsOn: ProxyApplicantEndsOn;
317
+ /**
318
+ * 開始日
319
+ * @nullable
320
+ */
321
+ startsOn: string | null;
322
+ /**
323
+ * 終了日
324
+ * @nullable
325
+ */
326
+ endsOn: string | null;
193
327
  /** 対象ワークフロー */
194
328
  workflows: Workflow[];
195
329
  }
196
- /**
197
- * 開始日
198
- */
199
- export type ProxyApproverStartsOn = string | null;
200
- /**
201
- * 終了日
202
- */
203
- export type ProxyApproverEndsOn = string | null;
204
330
  /**
205
331
  * 代理承認
206
332
  */
@@ -213,18 +339,19 @@ export interface ProxyApprover {
213
339
  updatedAt: string;
214
340
  user: User;
215
341
  proxyUser: User;
216
- /** 開始日 */
217
- startsOn: ProxyApproverStartsOn;
218
- /** 終了日 */
219
- endsOn: ProxyApproverEndsOn;
342
+ /**
343
+ * 開始日
344
+ * @nullable
345
+ */
346
+ startsOn: string | null;
347
+ /**
348
+ * 終了日
349
+ * @nullable
350
+ */
351
+ endsOn: string | null;
220
352
  /** 対象ワークフロー */
221
353
  workflows: Workflow[];
222
354
  }
223
- /**
224
- * 管理用メモ
225
- * @maxLength 10000
226
- */
227
- export type TeamNotes = string | null;
228
355
  /**
229
356
  * チーム
230
357
  */
@@ -246,8 +373,9 @@ export interface Team {
246
373
  /**
247
374
  * 管理用メモ
248
375
  * @maxLength 10000
376
+ * @nullable
249
377
  */
250
- notes?: TeamNotes;
378
+ notes?: string | null;
251
379
  /** 承認専用チームかどうか */
252
380
  approveOnly: boolean;
253
381
  /**
@@ -261,12 +389,23 @@ export interface Team {
261
389
  updatedAt: string;
262
390
  }
263
391
  /**
264
- * 親チーム
392
+ * チームの所属メンバー
393
+ */
394
+ export type MemberUser = User & {
395
+ /**
396
+ * 役職
397
+ * @minItems 1
398
+ */
399
+ grades: Grade[];
400
+ /** 上長かどうか */
401
+ leader: boolean;
402
+ };
403
+ /**
404
+ * チームの詳細
265
405
  */
266
- export type TeamDetailAllOfParent = Team | null;
267
- export type TeamDetailAllOf = {
406
+ export type TeamDetail = Team & {
268
407
  /** 親チーム */
269
- parent?: TeamDetailAllOfParent;
408
+ parent?: Team | null;
270
409
  /** 子チーム */
271
410
  children: Team[];
272
411
  /** メンバーの配列。
@@ -274,14 +413,6 @@ export type TeamDetailAllOf = {
274
413
  注意:パフォーマンス上の理由から、100件を超えるメンバーを返すことはできません。101件以上のメンバーをすべて取得したい場合は、別途メンバー取得APIを呼び出してください。 */
275
414
  users: MemberUser[];
276
415
  };
277
- /**
278
- * チームの詳細
279
- */
280
- export type TeamDetail = Team & TeamDetailAllOf;
281
- /**
282
- * 管理用メモ
283
- */
284
- export type TeamCreateBodyNotes = string | null;
285
416
  /**
286
417
  * チームを作成するときのrequest body
287
418
  */
@@ -290,8 +421,11 @@ export interface TeamCreateBody {
290
421
  name: string;
291
422
  /** コード。未指定の場合、ランダムな英数字が自動的に設定されます。 */
292
423
  code?: string;
293
- /** 管理用メモ */
294
- notes?: TeamCreateBodyNotes;
424
+ /**
425
+ * 管理用メモ
426
+ * @nullable
427
+ */
428
+ notes?: string | null;
295
429
  /** 親チームのUUID。nullの場合、作成したチームはルートになります。 */
296
430
  parentId?: string;
297
431
  /** 承認専用チームかどうか */
@@ -314,8 +448,9 @@ export interface TeamUpdateBody {
314
448
  }
315
449
  /**
316
450
  * 有効化の予定
451
+ * @nullable
317
452
  */
318
- export type OrganizationChartActivationPlanAnyOf = {
453
+ export type OrganizationChartActivationPlan = {
319
454
  /** UUID */
320
455
  id: string;
321
456
  /** 有効化の予定日 */
@@ -324,11 +459,7 @@ export type OrganizationChartActivationPlanAnyOf = {
324
459
  createdAt: string;
325
460
  /** 更新日時 */
326
461
  updatedAt: string;
327
- };
328
- /**
329
- * 有効化の予定
330
- */
331
- export type OrganizationChartActivationPlan = OrganizationChartActivationPlanAnyOf | null;
462
+ } | null;
332
463
  /**
333
464
  * 組織図
334
465
  */
@@ -350,7 +481,10 @@ export interface OrganizationChart {
350
481
  createdAt: string;
351
482
  /** 更新日時 */
352
483
  updatedAt: string;
353
- /** 有効化の予定 */
484
+ /**
485
+ * 有効化の予定
486
+ * @nullable
487
+ */
354
488
  activationPlan: OrganizationChartActivationPlan;
355
489
  }
356
490
  /**
@@ -364,19 +498,6 @@ export interface OrganizationChartBody {
364
498
  /** 名前 */
365
499
  name: string;
366
500
  }
367
- export type MemberUserAllOf = {
368
- /**
369
- * 役職
370
- * @minItems 1
371
- */
372
- grades: Grade[];
373
- /** 上長かどうか */
374
- leader: boolean;
375
- };
376
- /**
377
- * チームの所属メンバー
378
- */
379
- export type MemberUser = MemberUserAllOf & User;
380
501
  /**
381
502
  * 管理者ロール
382
503
  */
@@ -403,8 +524,8 @@ export interface Role {
403
524
  /**
404
525
  * 権限タイプ
405
526
  */
406
- export type RoleDetailAllOfPermissionListItemPermission = (typeof RoleDetailAllOfPermissionListItemPermission)[keyof typeof RoleDetailAllOfPermissionListItemPermission];
407
- export declare const RoleDetailAllOfPermissionListItemPermission: {
527
+ export type RoleDetailPermissionListItemPermission = (typeof RoleDetailPermissionListItemPermission)[keyof typeof RoleDetailPermissionListItemPermission];
528
+ export declare const RoleDetailPermissionListItemPermission: {
408
529
  readonly tenant: "tenant";
409
530
  readonly billing: "billing";
410
531
  readonly integration: "integration";
@@ -424,73 +545,150 @@ export declare const RoleDetailAllOfPermissionListItemPermission: {
424
545
  readonly label: "label";
425
546
  readonly automation: "automation";
426
547
  };
427
- export type RoleDetailAllOfPermissionListItem = {
428
- /** 権限タイプ */
429
- permission: RoleDetailAllOfPermissionListItemPermission;
430
- /** 管理対象が制限されている場合true */
431
- restricted: boolean;
432
- /** 管理対象のフォルダ */
433
- folders: Folder[];
434
- /** 管理対象の汎用マスタ */
435
- generalMasters: GeneralMaster[];
436
- /** 管理対象のチーム */
437
- teams: Team[];
438
- };
439
- export type RoleDetailAllOf = {
440
- /** 権限のリスト */
441
- permissionList: RoleDetailAllOfPermissionListItem[];
442
- };
443
548
  /**
444
- * 管理者ロールの詳細
445
- */
446
- export type RoleDetail = Role & RoleDetailAllOf;
447
- /**
448
- * 権限タイプ
549
+ * フィールドの型
449
550
  */
450
- export type RoleCreateBodyPermissionListItemPermission = (typeof RoleCreateBodyPermissionListItemPermission)[keyof typeof RoleCreateBodyPermissionListItemPermission];
451
- export declare const RoleCreateBodyPermissionListItemPermission: {
452
- readonly tenant: "tenant";
453
- readonly billing: "billing";
454
- readonly integration: "integration";
455
- readonly security: "security";
456
- readonly audit: "audit";
457
- readonly stats: "stats";
458
- readonly workflow: "workflow";
459
- readonly route: "route";
460
- readonly pipeline: "pipeline";
461
- readonly workflow_misc: "workflow_misc";
462
- readonly user: "user";
463
- readonly team: "team";
464
- readonly role: "role";
465
- readonly master: "master";
466
- readonly ticket_read: "ticket_read";
467
- readonly ticket_write: "ticket_write";
468
- readonly label: "label";
469
- readonly automation: "automation";
470
- };
471
- export type RoleCreateBodyPermissionListItem = {
472
- /** 権限タイプ */
473
- permission: RoleCreateBodyPermissionListItemPermission;
474
- /** 管理対象を制限する場合true */
475
- restricted: boolean;
476
- /** 管理対象のフォルダID */
477
- folderIds?: string[];
478
- /** 管理対象の汎用マスタID */
479
- generalMasterIds?: string[];
480
- /** 管理対象のチームID */
481
- teamIds?: string[];
551
+ export type GeneralMasterFieldFieldType = (typeof GeneralMasterFieldFieldType)[keyof typeof GeneralMasterFieldFieldType];
552
+ export declare const GeneralMasterFieldFieldType: {
553
+ readonly text: "text";
554
+ readonly text_long: "text_long";
555
+ readonly number: "number";
556
+ readonly integer: "integer";
557
+ readonly checkbox: "checkbox";
558
+ readonly pull_down: "pull_down";
559
+ readonly date: "date";
482
560
  };
483
561
  /**
484
- * 管理者ロールを作成するときのrequest body
562
+ * 汎用マスタのカスタムフィールド
485
563
  */
486
- export interface RoleCreateBody {
487
- /** 名前 */
488
- name: string;
489
- /** 権限リスト */
490
- permissionList: RoleCreateBodyPermissionListItem[];
491
- }
492
- /**
493
- * 権限タイプ
564
+ export interface GeneralMasterField {
565
+ /** UUID */
566
+ id: string;
567
+ /**
568
+ * フィールド名
569
+ * @maxLength 300
570
+ */
571
+ title: string;
572
+ /**
573
+ * フィールドの説明
574
+ * @nullable
575
+ */
576
+ description: string | null;
577
+ /**
578
+ * フィールドのコード
579
+ * @maxLength 100
580
+ */
581
+ code: string;
582
+ /** フィールドの型 */
583
+ fieldType: GeneralMasterFieldFieldType;
584
+ /** 必須項目かどうか */
585
+ required: boolean;
586
+ /** 管理者以外も閲覧可能な場合true */
587
+ visible: boolean;
588
+ /**
589
+ * 選択肢。fieldTypeがcheckboxまたはpull_downのときのみ。
590
+ * @nullable
591
+ */
592
+ options: string[] | null;
593
+ /** 作成日時 */
594
+ createdAt: string;
595
+ /** 更新日時 */
596
+ updatedAt: string;
597
+ }
598
+ /**
599
+ * 汎用マスタ
600
+ */
601
+ export interface GeneralMaster {
602
+ /** UUID */
603
+ id: string;
604
+ /**
605
+ * コード
606
+ * @maxLength 100
607
+ */
608
+ code: string;
609
+ /**
610
+ * 名前
611
+ * @maxLength 300
612
+ */
613
+ name: string;
614
+ /**
615
+ * 説明
616
+ * @nullable
617
+ */
618
+ description: string | null;
619
+ /** 作成日時 */
620
+ createdAt: string;
621
+ /** 更新日時 */
622
+ updatedAt: string;
623
+ /** カスタムフィールドの配列 */
624
+ fields: GeneralMasterField[];
625
+ }
626
+ export type RoleDetailPermissionListItem = {
627
+ /** 権限タイプ */
628
+ permission: RoleDetailPermissionListItemPermission;
629
+ /** 管理対象が制限されている場合true */
630
+ restricted: boolean;
631
+ /** 管理対象のフォルダ */
632
+ folders: Folder[];
633
+ /** 管理対象の汎用マスタ */
634
+ generalMasters: GeneralMaster[];
635
+ /** 管理対象のチーム */
636
+ teams: Team[];
637
+ };
638
+ /**
639
+ * 管理者ロールの詳細
640
+ */
641
+ export type RoleDetail = Role & {
642
+ /** 権限のリスト */
643
+ permissionList: RoleDetailPermissionListItem[];
644
+ };
645
+ /**
646
+ * 権限タイプ
647
+ */
648
+ export type RoleCreateBodyPermissionListItemPermission = (typeof RoleCreateBodyPermissionListItemPermission)[keyof typeof RoleCreateBodyPermissionListItemPermission];
649
+ export declare const RoleCreateBodyPermissionListItemPermission: {
650
+ readonly tenant: "tenant";
651
+ readonly billing: "billing";
652
+ readonly integration: "integration";
653
+ readonly security: "security";
654
+ readonly audit: "audit";
655
+ readonly stats: "stats";
656
+ readonly workflow: "workflow";
657
+ readonly route: "route";
658
+ readonly pipeline: "pipeline";
659
+ readonly workflow_misc: "workflow_misc";
660
+ readonly user: "user";
661
+ readonly team: "team";
662
+ readonly role: "role";
663
+ readonly master: "master";
664
+ readonly ticket_read: "ticket_read";
665
+ readonly ticket_write: "ticket_write";
666
+ readonly label: "label";
667
+ readonly automation: "automation";
668
+ };
669
+ export type RoleCreateBodyPermissionListItem = {
670
+ /** 権限タイプ */
671
+ permission: RoleCreateBodyPermissionListItemPermission;
672
+ /** 管理対象を制限する場合true */
673
+ restricted: boolean;
674
+ /** 管理対象のフォルダID */
675
+ folderIds?: string[];
676
+ /** 管理対象の汎用マスタID */
677
+ generalMasterIds?: string[];
678
+ /** 管理対象のチームID */
679
+ teamIds?: string[];
680
+ };
681
+ /**
682
+ * 管理者ロールを作成するときのrequest body
683
+ */
684
+ export interface RoleCreateBody {
685
+ /** 名前 */
686
+ name: string;
687
+ /** 権限リスト */
688
+ permissionList: RoleCreateBodyPermissionListItem[];
689
+ }
690
+ /**
691
+ * 権限タイプ
494
692
  */
495
693
  export type RoleUpdateBodyPermissionListItemPermission = (typeof RoleUpdateBodyPermissionListItemPermission)[keyof typeof RoleUpdateBodyPermissionListItemPermission];
496
694
  export declare const RoleUpdateBodyPermissionListItemPermission: {
@@ -535,124 +733,19 @@ export interface RoleUpdateBody {
535
733
  permissionList?: RoleUpdateBodyPermissionListItem[];
536
734
  }
537
735
  /**
538
- * カテゴリ
539
- */
540
- export interface Category {
541
- /** UUID */
542
- id: string;
543
- /**
544
- * 名前
545
- * @maxLength 100
546
- */
547
- name: string;
548
- /** 作成日時 */
549
- createdAt: string;
550
- /** 更新日時 */
551
- updatedAt: string;
552
- }
553
- /**
554
- * 説明
555
- */
556
- export type FolderDescription = string | null;
557
- /**
558
- * フォルダ
736
+ * フォルダの詳細
559
737
  */
560
- export interface Folder {
561
- /** UUID */
562
- id: string;
563
- /**
564
- * 名前
565
- * @maxLength 300
566
- */
567
- name: string;
568
- /**
569
- * コード
570
- * @maxLength 100
571
- */
572
- code: string;
573
- /** 説明 */
574
- description?: FolderDescription;
575
- /**
576
- * フォルダ内のワークフロー数
577
- * @minimum 0
578
- */
579
- workflowsCount: number;
580
- /**
581
- * フォルダ内の経路数
582
- * @minimum 0
583
- */
584
- routesCount: number;
585
- /**
586
- * フォルダ内のパイプライン数
587
- * @minimum 0
588
- */
589
- pipelinesCount: number;
590
- /** 作成日時 */
591
- createdAt: string;
592
- /** 更新日時 */
593
- updatedAt: string;
594
- }
595
- export type FolderDetailAllOf = {
738
+ export type FolderDetail = Folder & {
596
739
  /** 親フォルダからルートフォルダまでの配列 */
597
740
  ancestors?: Folder[];
598
741
  /** 子フォルダ */
599
742
  children?: Folder[];
600
743
  };
601
- /**
602
- * フォルダの詳細
603
- */
604
- export type FolderDetail = Folder & FolderDetailAllOf;
605
- /**
606
- * 説明
607
- */
608
- export type GeneralMasterDescription = string | null;
609
- /**
610
- * 汎用マスタ
611
- */
612
- export interface GeneralMaster {
613
- /** UUID */
614
- id: string;
615
- /**
616
- * コード
617
- * @maxLength 100
618
- */
619
- code: string;
620
- /**
621
- * 名前
622
- * @maxLength 300
623
- */
624
- name: string;
625
- /** 説明 */
626
- description: GeneralMasterDescription;
627
- /** 作成日時 */
628
- createdAt: string;
629
- /** 更新日時 */
630
- updatedAt: string;
631
- /** カスタムフィールドの配列 */
632
- fields: GeneralMasterField[];
633
- }
634
- /**
635
- * 説明
636
- */
637
- export type GeneralMasterItemDescription = string | null;
638
- /**
639
- * 有効期限の開始日
640
- */
641
- export type GeneralMasterItemStartsOn = string | null;
642
- /**
643
- * 有効期限の終了日
644
- */
645
- export type GeneralMasterItemEndsOn = string | null;
646
- export type GeneralMasterItemInputsItemValueAnyOf = string | null;
647
- /**
648
- * 入力値
649
- */
650
- export type GeneralMasterItemInputsItemValue = GeneralMasterItemInputsItemValueAnyOf | string[];
651
744
  export type GeneralMasterItemInputsItem = {
652
745
  /** UUID */
653
746
  id: string;
654
747
  /** 入力値 */
655
- value: GeneralMasterItemInputsItemValue;
748
+ value: string | null | string[];
656
749
  /** 作成日時 */
657
750
  createdAt: string;
658
751
  /** 更新日時 */
@@ -671,254 +764,44 @@ export interface GeneralMasterItem {
671
764
  */
672
765
  code: string;
673
766
  /**
674
- * 名前
675
- * @maxLength 100
676
- */
677
- name: string;
678
- /** 説明 */
679
- description: GeneralMasterItemDescription;
680
- /** 作成日時 */
681
- createdAt: string;
682
- /** 更新日時 */
683
- updatedAt: string;
684
- /** 有効期限の開始日 */
685
- startsOn: GeneralMasterItemStartsOn;
686
- /** 有効期限の終了日 */
687
- endsOn: GeneralMasterItemEndsOn;
688
- /** カスタムフィールドの入力の配列 */
689
- inputs: GeneralMasterItemInputsItem[];
690
- }
691
- /**
692
- * フィールドの説明
693
- */
694
- export type GeneralMasterFieldDescription = string | null;
695
- /**
696
- * フィールドの型
697
- */
698
- export type GeneralMasterFieldFieldType = (typeof GeneralMasterFieldFieldType)[keyof typeof GeneralMasterFieldFieldType];
699
- export declare const GeneralMasterFieldFieldType: {
700
- readonly text: "text";
701
- readonly text_long: "text_long";
702
- readonly number: "number";
703
- readonly integer: "integer";
704
- readonly checkbox: "checkbox";
705
- readonly pull_down: "pull_down";
706
- readonly date: "date";
707
- };
708
- /**
709
- * 選択肢。fieldTypeがcheckboxまたはpull_downのときのみ。
710
- */
711
- export type GeneralMasterFieldOptions = string[] | null;
712
- /**
713
- * 汎用マスタのカスタムフィールド
714
- */
715
- export interface GeneralMasterField {
716
- /** UUID */
717
- id: string;
718
- /**
719
- * フィールド名
720
- * @maxLength 300
721
- */
722
- title: string;
723
- /** フィールドの説明 */
724
- description: GeneralMasterFieldDescription;
725
- /**
726
- * フィールドのコード
727
- * @maxLength 100
728
- */
729
- code: string;
730
- /** フィールドの型 */
731
- fieldType: GeneralMasterFieldFieldType;
732
- /** 必須項目かどうか */
733
- required: boolean;
734
- /** 管理者以外も閲覧可能な場合true */
735
- visible: boolean;
736
- /** 選択肢。fieldTypeがcheckboxまたはpull_downのときのみ。 */
737
- options: GeneralMasterFieldOptions;
738
- /** 作成日時 */
739
- createdAt: string;
740
- /** 更新日時 */
741
- updatedAt: string;
742
- }
743
- /**
744
- * ステータス。visibleは有効、invisibleは無効、deletedは削除済み。
745
- */
746
- export type WorkflowStatus = (typeof WorkflowStatus)[keyof typeof WorkflowStatus];
747
- export declare const WorkflowStatus: {
748
- readonly visible: "visible";
749
- readonly invisible: "invisible";
750
- readonly deleted: "deleted";
751
- };
752
- /**
753
- * 申請者の上長を共有ユーザーに追加するか。noneは追加しない、directは直属の上長のみ、allはすべての上長を表す。
754
- */
755
- export type WorkflowVisibleToManager = (typeof WorkflowVisibleToManager)[keyof typeof WorkflowVisibleToManager];
756
- export declare const WorkflowVisibleToManager: {
757
- readonly none: "none";
758
- readonly direct: "direct";
759
- readonly all: "all";
760
- };
761
- /**
762
- * タイトルの説明
763
- */
764
- export type WorkflowTitleDescription = string | null;
765
- /**
766
- * チケット番号のフォーマット
767
- */
768
- export type WorkflowTicketNumberFormat = string | null;
769
- /**
770
- * タイトル入力モード
771
- */
772
- export type WorkflowTitleInputMode = (typeof WorkflowTitleInputMode)[keyof typeof WorkflowTitleInputMode];
773
- export declare const WorkflowTitleInputMode: {
774
- readonly none: "none";
775
- readonly input: "input";
776
- readonly calculate: "calculate";
777
- };
778
- /**
779
- * タイトルの計算式
780
- */
781
- export type WorkflowTitleFormula = string | null;
782
- /**
783
- * 作成者
784
- */
785
- export type WorkflowAuthor = User | null;
786
- /**
787
- * バージョン作成者
788
- */
789
- export type WorkflowVersionAuthor = User | null;
790
- /**
791
- * ワークフロー
792
- */
793
- export interface Workflow {
794
- /** UUID */
795
- id: string;
796
- /**
797
- * コード
798
- * @pattern ^[a-zA-Z0-9_-]+$
767
+ * 名前
768
+ * @maxLength 100
799
769
  */
800
- code: string;
801
- /** バージョンのUUID */
802
- versionId: string;
803
- /** バージョン番号 */
804
- versionNumber: number;
805
- /** 名前 */
806
770
  name: string;
807
- /** 説明 */
808
- description: string;
809
- /** ステータス。visibleは有効、invisibleは無効、deletedは削除済み。 */
810
- status: WorkflowStatus;
811
- /** チケットがテナント全体に共有される場合true */
812
- publicTicket: boolean;
813
- /** 申請者の上長を共有ユーザーに追加するか。noneは追加しない、directは直属の上長のみ、allはすべての上長を表す。 */
814
- visibleToManager: WorkflowVisibleToManager;
815
- /** 申請チームのメンバーが共有ユーザーに追加される場合true */
816
- visibleToTeamMembers: boolean;
817
- /** タイトルの説明 */
818
- titleDescription: WorkflowTitleDescription;
819
- /** チケット番号のフォーマット */
820
- ticketNumberFormat: WorkflowTicketNumberFormat;
821
- /** 承認者による上書きが可能な場合true */
822
- overwritable: boolean;
771
+ /**
772
+ * 説明
773
+ * @nullable
774
+ */
775
+ description: string | null;
823
776
  /** 作成日時 */
824
777
  createdAt: string;
825
778
  /** 更新日時 */
826
779
  updatedAt: string;
827
- /** タイトル入力モード */
828
- titleInputMode: WorkflowTitleInputMode;
829
- /** タイトルの計算式 */
830
- titleFormula: WorkflowTitleFormula;
831
- /** 共有ユーザーの編集が可能な場合true */
832
- allowEditingOfViewers?: boolean;
833
- /** 作成者 */
834
- author: WorkflowAuthor;
835
- /** バージョン作成者 */
836
- versionAuthor: WorkflowVersionAuthor;
837
- /** フォルダ */
838
- folder: Folder;
839
- /** カテゴリの配列 */
840
- categories: Category[];
780
+ /**
781
+ * 有効期限の開始日
782
+ * @nullable
783
+ */
784
+ startsOn: string | null;
785
+ /**
786
+ * 有効期限の終了日
787
+ * @nullable
788
+ */
789
+ endsOn: string | null;
790
+ /** カスタムフィールドの入力の配列 */
791
+ inputs: GeneralMasterItemInputsItem[];
841
792
  }
842
- export type WorkflowInTicketAllOfCloudSignSettingAnyOf = {
843
- /** 書類の添付が必須な場合true */
844
- required: boolean;
845
- };
846
793
  /**
847
794
  * クラウドサイン連携設定
848
795
  */
849
- export type WorkflowInTicketAllOfCloudSignSetting = WorkflowInTicketAllOfCloudSignSettingAnyOf | null;
850
- export type WorkflowInTicketAllOf = {
851
- /** セクション・明細を表すオブジェクトを画面に表示される順に格納した配列。 */
852
- sectionList?: SectionListItem[];
853
- /** ワークフロー単位のチケット共有ユーザー */
854
- ticketViewers: WorkflowTicketViewer[];
855
- /** クラウドサイン連携設定 */
856
- cloudSignSetting: WorkflowInTicketAllOfCloudSignSetting;
857
- };
858
- /**
859
- * チケットに含まれるワークフロー。セクション情報と共有ユーザー情報を含みます。
860
- */
861
- export type WorkflowInTicket = Workflow & WorkflowInTicketAllOf;
862
- export type WorkflowDetailAllOf = {
863
- /** 経路分岐 */
864
- routeConditions: WorkflowRouteCondition[];
865
- };
866
- /**
867
- * ワークフローの詳細
868
- */
869
- export type WorkflowDetail = WorkflowInTicket & WorkflowDetailAllOf;
796
+ export type WorkflowInTicketCloudSignSetting = {
797
+ /** 書類の添付が必須な場合true */
798
+ required: boolean;
799
+ } | null;
870
800
  export type SectionListItemSectionType = (typeof SectionListItemSectionType)[keyof typeof SectionListItemSectionType];
871
801
  export declare const SectionListItemSectionType: {
872
802
  readonly form: "form";
873
803
  readonly slip: "slip";
874
804
  };
875
- /**
876
- * タイトル
877
- */
878
- export type SectionListItemTitle = string | null;
879
- /**
880
- * 説明
881
- */
882
- export type SectionListItemDescription = string | null;
883
- /**
884
- * 条件の組み合わせタイプ。all=すべて、any=いずれか、custom=高度な条件式。明細セクションには含まれません。
885
- */
886
- export type SectionListItemCombinationType = (typeof SectionListItemCombinationType)[keyof typeof SectionListItemCombinationType];
887
- export declare const SectionListItemCombinationType: {
888
- readonly all: "all";
889
- readonly any: "any";
890
- readonly custom: "custom";
891
- };
892
- /**
893
- * 高度な条件式
894
- */
895
- export type SectionListItemCombinationExpression = string | null;
896
- /**
897
- * 明細セクションまたはフォームセクション
898
- */
899
- export interface SectionListItem {
900
- sectionType: SectionListItemSectionType;
901
- /** タイトル */
902
- title: SectionListItemTitle;
903
- /** 説明 */
904
- description: SectionListItemDescription;
905
- /** フォームセクションのID(UUID)。明細セクションには含まれません。 */
906
- id?: string;
907
- /** フォームフィールド。明細セクションには含まれません。 */
908
- formFields?: FormFieldDetail[];
909
- /** 表示条件があるかどうか。明細セクションには含まれません。 */
910
- conditional?: boolean;
911
- /** 条件の組み合わせタイプ。all=すべて、any=いずれか、custom=高度な条件式。明細セクションには含まれません。 */
912
- combinationType?: SectionListItemCombinationType;
913
- /** 高度な条件式 */
914
- combinationExpression?: SectionListItemCombinationExpression;
915
- /** 明細フィールド。フォームセクションには含まれません。 */
916
- slipFields?: SlipFieldDetail[];
917
- }
918
- /**
919
- * 説明
920
- */
921
- export type FormFieldDescription = string | null;
922
805
  /**
923
806
  * フィールドの型
924
807
  */
@@ -940,10 +823,6 @@ export declare const FormFieldFieldType: {
940
823
  readonly button_api: "button_api";
941
824
  readonly button_kintone: "button_kintone";
942
825
  };
943
- /**
944
- * 選択肢のリスト。型がcheckboxまたはpull_downのときのみ値が入ります。
945
- */
946
- export type FormFieldOptions = string[] | null;
947
826
  /**
948
827
  * フォームサイズ。fullの場合全幅、halfの場合1/2になります。
949
828
  */
@@ -952,64 +831,6 @@ export declare const FormFieldSize: {
952
831
  readonly full: "full";
953
832
  readonly half: "half";
954
833
  };
955
- /**
956
- * 正規表現フォーマット
957
- */
958
- export type FormFieldRegexpFormat = string | null;
959
- /**
960
- * 計算式。
961
- 型がcalculationのときのみ値が入ります。
962
- */
963
- export type FormFieldFormula = string | null;
964
- /**
965
- * 初期値
966
- */
967
- export type FormFieldDefaultValue = string | null;
968
- /**
969
- * 最小値
970
- */
971
- export type FormFieldMinValue = number | null;
972
- /**
973
- * 最大値
974
- */
975
- export type FormFieldMaxValue = number | null;
976
- /**
977
- * 最小文字数
978
- * @minimum 0
979
- */
980
- export type FormFieldMinLength = number | null;
981
- /**
982
- * 最大文字数
983
- * @minimum 0
984
- */
985
- export type FormFieldMaxLength = number | null;
986
- /**
987
- * 小数の桁数
988
- * @minimum 0
989
- */
990
- export type FormFieldDecimalDigit = number | null;
991
- /**
992
- * カンマ区切りで表示する場合true。
993
- 整数、数値、自動計算フィールド以外ではnullが入ります。
994
- */
995
- export type FormFieldDelimited = boolean | null;
996
- /**
997
- * 単位(接頭辞)
998
- */
999
- export type FormFieldPrefix = string | null;
1000
- /**
1001
- * 単位(接尾辞)
1002
- */
1003
- export type FormFieldSuffix = string | null;
1004
- /**
1005
- * 隠しフィールドである場合true
1006
- */
1007
- export type FormFieldHidden = boolean | null;
1008
- /**
1009
- * trueの時、申請者・承認者が画面上から値を入力することを禁止します。
1010
- 外部API連携(ボタン)による代入や、REST API経由での入力はこのオプションの対象外です。
1011
- */
1012
- export type FormFieldReadonlyOnUi = boolean | null;
1013
834
  /**
1014
835
  * フォームフィールド
1015
836
  */
@@ -1021,8 +842,11 @@ export interface FormField {
1021
842
  * @maxLength 300
1022
843
  */
1023
844
  title: string;
1024
- /** 説明 */
1025
- description: FormFieldDescription;
845
+ /**
846
+ * 説明
847
+ * @nullable
848
+ */
849
+ description: string | null;
1026
850
  /** フィールドの型 */
1027
851
  fieldType: FormFieldFieldType;
1028
852
  /** 必須項目かどうか */
@@ -1031,8 +855,11 @@ export interface FormField {
1031
855
  approver: boolean;
1032
856
  /** 申請者が編集可能かどうか */
1033
857
  author?: boolean;
1034
- /** 選択肢のリスト。型がcheckboxまたはpull_downのときのみ値が入ります。 */
1035
- options: FormFieldOptions;
858
+ /**
859
+ * 選択肢のリスト。型がcheckboxまたはpull_downのときのみ値が入ります。
860
+ * @nullable
861
+ */
862
+ options: string[] | null;
1036
863
  /**
1037
864
  * コード
1038
865
  * @maxLength 100
@@ -1040,87 +867,78 @@ export interface FormField {
1040
867
  code: string;
1041
868
  /** フォームサイズ。fullの場合全幅、halfの場合1/2になります。 */
1042
869
  size: FormFieldSize;
1043
- /** 正規表現フォーマット */
1044
- regexpFormat: FormFieldRegexpFormat;
1045
- /** 計算式。
1046
- 型がcalculationのときのみ値が入ります。 */
1047
- formula: FormFieldFormula;
1048
- /** 初期値 */
1049
- defaultValue: FormFieldDefaultValue;
1050
- /** 最小値 */
1051
- minValue: FormFieldMinValue;
1052
- /** 最大値 */
1053
- maxValue: FormFieldMaxValue;
870
+ /**
871
+ * 正規表現フォーマット
872
+ * @nullable
873
+ */
874
+ regexpFormat: string | null;
875
+ /**
876
+ * 計算式。
877
+ 型がcalculationのときのみ値が入ります。
878
+ * @nullable
879
+ */
880
+ formula: string | null;
881
+ /**
882
+ * 初期値
883
+ * @nullable
884
+ */
885
+ defaultValue: string | null;
886
+ /**
887
+ * 最小値
888
+ * @nullable
889
+ */
890
+ minValue: number | null;
891
+ /**
892
+ * 最大値
893
+ * @nullable
894
+ */
895
+ maxValue: number | null;
1054
896
  /**
1055
897
  * 最小文字数
1056
898
  * @minimum 0
899
+ * @nullable
1057
900
  */
1058
- minLength: FormFieldMinLength;
901
+ minLength: number | null;
1059
902
  /**
1060
903
  * 最大文字数
1061
904
  * @minimum 0
905
+ * @nullable
1062
906
  */
1063
- maxLength: FormFieldMaxLength;
907
+ maxLength: number | null;
1064
908
  /**
1065
909
  * 小数の桁数
1066
910
  * @minimum 0
911
+ * @nullable
912
+ */
913
+ decimalDigit: number | null;
914
+ /**
915
+ * カンマ区切りで表示する場合true。
916
+ 整数、数値、自動計算フィールド以外ではnullが入ります。
917
+ * @nullable
918
+ */
919
+ delimited: boolean | null;
920
+ /**
921
+ * 単位(接頭辞)
922
+ * @nullable
923
+ */
924
+ prefix: string | null;
925
+ /**
926
+ * 単位(接尾辞)
927
+ * @nullable
928
+ */
929
+ suffix: string | null;
930
+ /**
931
+ * 隠しフィールドである場合true
932
+ * @nullable
933
+ */
934
+ hidden?: boolean | null;
935
+ /**
936
+ * trueの時、申請者・承認者が画面上から値を入力することを禁止します。
937
+ 外部API連携(ボタン)による代入や、REST API経由での入力はこのオプションの対象外です。
938
+ * @nullable
1067
939
  */
1068
- decimalDigit: FormFieldDecimalDigit;
1069
- /** カンマ区切りで表示する場合true。
1070
- 整数、数値、自動計算フィールド以外ではnullが入ります。 */
1071
- delimited: FormFieldDelimited;
1072
- /** 単位(接頭辞) */
1073
- prefix: FormFieldPrefix;
1074
- /** 単位(接尾辞) */
1075
- suffix: FormFieldSuffix;
1076
- /** 隠しフィールドである場合true */
1077
- hidden?: FormFieldHidden;
1078
- /** trueの時、申請者・承認者が画面上から値を入力することを禁止します。
1079
- 外部API連携(ボタン)による代入や、REST API経由での入力はこのオプションの対象外です。 */
1080
- readonlyOnUi?: FormFieldReadonlyOnUi;
940
+ readonlyOnUi?: boolean | null;
1081
941
  }
1082
- /**
1083
- * 汎用マスタ(汎用マスタフィールドの場合)
1084
- */
1085
- export type FormFieldDetailAllOfGeneralMaster = GeneralMaster | null;
1086
- /**
1087
- * 初期値(汎用マスタフィールドの場合)
1088
- */
1089
- export type FormFieldDetailAllOfDefaultGeneralMasterItem = GeneralMasterItem | null;
1090
- /**
1091
- * 外部API設定。fieldTypeがbutton_apiのときのみ値が入ります。
1092
- */
1093
- export type FormFieldDetailAllOfExternalApiSetting = ExternalApiSetting | null;
1094
- /**
1095
- * 外部API設定。fieldTypeがbutton_kintoneのときのみ値が入ります。
1096
- */
1097
- export type FormFieldDetailAllOfKintoneAppSetting = KintoneAppSetting | null;
1098
- /**
1099
- * ClimberCloud連携設定。fieldTypeがfileのときのみ値が入ります。
1100
- */
1101
- export type FormFieldDetailAllOfClimberCloudSetting = ClimberCloudSetting | null;
1102
- /**
1103
- * 汎用マスタ型フィールドの自動絞り込みの設定
1104
- */
1105
- export type FormFieldDetailAllOfGeneralMasterSearchFilters = GeneralMasterSearchFilter[] | null;
1106
- export type FormFieldDetailAllOf = {
1107
- /** 汎用マスタ(汎用マスタフィールドの場合) */
1108
- generalMaster?: FormFieldDetailAllOfGeneralMaster;
1109
- /** 初期値(汎用マスタフィールドの場合) */
1110
- defaultGeneralMasterItem?: FormFieldDetailAllOfDefaultGeneralMasterItem;
1111
- /** 外部API設定。fieldTypeがbutton_apiのときのみ値が入ります。 */
1112
- externalApiSetting?: FormFieldDetailAllOfExternalApiSetting;
1113
- /** 外部API設定。fieldTypeがbutton_kintoneのときのみ値が入ります。 */
1114
- kintoneAppSetting?: FormFieldDetailAllOfKintoneAppSetting;
1115
- /** ClimberCloud連携設定。fieldTypeがfileのときのみ値が入ります。 */
1116
- climberCloudSetting?: FormFieldDetailAllOfClimberCloudSetting;
1117
- /** 汎用マスタ型フィールドの自動絞り込みの設定 */
1118
- generalMasterSearchFilters?: FormFieldDetailAllOfGeneralMasterSearchFilters;
1119
- };
1120
- /**
1121
- * フォームフィールドの詳細
1122
- */
1123
- export type FormFieldDetail = FormField & FormFieldDetailAllOf;
1124
942
  /**
1125
943
  * HTTPメソッド
1126
944
  */
@@ -1138,22 +956,17 @@ export type ExternalApiSettingHeadersItem = {
1138
956
  /** ヘッダーの値 */
1139
957
  value: string;
1140
958
  };
1141
- /**
1142
- * 複数レコードを含む場合の配列へのJSONPath
1143
- */
1144
- export type ExternalApiSettingArrayJsonPath = string | null;
1145
- /**
1146
- * 選択用テーブルでのタイトル
1147
- */
1148
- export type ExternalApiSettingMappingsItemTitle = string | null;
1149
959
  export type ExternalApiSettingMappingsItem = {
1150
960
  formField: FormField;
1151
961
  /** 値抽出用のJSONPath */
1152
962
  jsonPath: string;
1153
963
  /** 選択用テーブルで表示する場合true */
1154
964
  displayInTable: boolean;
1155
- /** 選択用テーブルでのタイトル */
1156
- title: ExternalApiSettingMappingsItemTitle;
965
+ /**
966
+ * 選択用テーブルでのタイトル
967
+ * @nullable
968
+ */
969
+ title: string | null;
1157
970
  };
1158
971
  /**
1159
972
  * 外部API設定
@@ -1169,11 +982,51 @@ export interface ExternalApiSetting {
1169
982
  headers: ExternalApiSettingHeadersItem[];
1170
983
  /** レスポンスが複数レコードを含む場合true */
1171
984
  responseArray: boolean;
1172
- /** 複数レコードを含む場合の配列へのJSONPath */
1173
- arrayJsonPath: ExternalApiSettingArrayJsonPath;
985
+ /**
986
+ * 複数レコードを含む場合の配列へのJSONPath
987
+ * @nullable
988
+ */
989
+ arrayJsonPath: string | null;
1174
990
  /** フィールドへのマッピング設定 */
1175
991
  mappings: ExternalApiSettingMappingsItem[];
1176
992
  }
993
+ /**
994
+ * kintone連携
995
+ */
996
+ export interface KintoneApp {
997
+ /** UUID */
998
+ id: string;
999
+ /** kintoneアプリ名 */
1000
+ name: string;
1001
+ /** kintoneドメイン */
1002
+ domain: string;
1003
+ /** kintoneアプリID */
1004
+ appId: string;
1005
+ }
1006
+ export type KintoneAppSettingMappingsItem = {
1007
+ /** UUID */
1008
+ id: string;
1009
+ /** 選択用テーブルで表示する場合true */
1010
+ displayInTable: boolean;
1011
+ /** kintoneフィールドコード */
1012
+ kintoneFieldCode: string;
1013
+ /** kintoneフィールドコード */
1014
+ kintoneFieldName: string;
1015
+ /** kintoneフィールドコード */
1016
+ kintoneFieldType: string;
1017
+ formField: FormField;
1018
+ };
1019
+ /**
1020
+ * kintone連携設定
1021
+ */
1022
+ export interface KintoneAppSetting {
1023
+ /** UUID */
1024
+ id: string;
1025
+ formField: FormField;
1026
+ kintoneApp: KintoneApp;
1027
+ /** フィールドへのマッピング設定 */
1028
+ mappings: KintoneAppSettingMappingsItem[];
1029
+ }
1177
1030
  export type ClimberCloudSettingMappingsItem = {
1178
1031
  formField: FormField;
1179
1032
  /** 表示順(1から始まります) */
@@ -1186,11 +1039,64 @@ export interface ClimberCloudSetting {
1186
1039
  /** UUID */
1187
1040
  id: string;
1188
1041
  /** ファイル付きリストID */
1189
- contentsId?: string;
1190
- formField?: FormField;
1042
+ contentsId: string;
1043
+ formField: FormField;
1191
1044
  /** ClimberCloudのカラムとのマッピング設定 */
1192
1045
  mappings: ClimberCloudSettingMappingsItem[];
1193
1046
  }
1047
+ /**
1048
+ * 絞り込み先のフィールドのタイプ
1049
+ */
1050
+ export type GeneralMasterSearchFilterFieldType = (typeof GeneralMasterSearchFilterFieldType)[keyof typeof GeneralMasterSearchFilterFieldType];
1051
+ export declare const GeneralMasterSearchFilterFieldType: {
1052
+ readonly free_word: "free_word";
1053
+ readonly name: "name";
1054
+ readonly code: "code";
1055
+ readonly description: "description";
1056
+ readonly custom_field: "custom_field";
1057
+ };
1058
+ export interface GeneralMasterSearchFilter {
1059
+ /** UUID */
1060
+ id: string;
1061
+ /** 絞り込みに使う汎用フィールドのID(UUID) */
1062
+ filterFormFieldId: string;
1063
+ /** 絞り込み先のフィールドのタイプ */
1064
+ fieldType: GeneralMasterSearchFilterFieldType;
1065
+ /**
1066
+ * fieldType=custom_fieldの場合に絞り込み先の汎用マスタのカスタムフィールドのID(UUID)
1067
+ * @nullable
1068
+ */
1069
+ generalMasterFieldId: string | null;
1070
+ }
1071
+ /**
1072
+ * フォームフィールドの詳細
1073
+ */
1074
+ export type FormFieldDetail = FormField & {
1075
+ /** 汎用マスタ(汎用マスタフィールドの場合) */
1076
+ generalMaster?: GeneralMaster | null;
1077
+ /** 初期値(汎用マスタフィールドの場合) */
1078
+ defaultGeneralMasterItem?: GeneralMasterItem | null;
1079
+ /** 外部API設定。fieldTypeがbutton_apiのときのみ値が入ります。 */
1080
+ externalApiSetting?: ExternalApiSetting | null;
1081
+ /** 外部API設定。fieldTypeがbutton_kintoneのときのみ値が入ります。 */
1082
+ kintoneAppSetting?: KintoneAppSetting | null;
1083
+ /** ClimberCloud連携設定。fieldTypeがfileのときのみ値が入ります。 */
1084
+ climberCloudSetting?: ClimberCloudSetting | null;
1085
+ /**
1086
+ * 汎用マスタ型フィールドの自動絞り込みの設定
1087
+ * @nullable
1088
+ */
1089
+ generalMasterSearchFilters?: GeneralMasterSearchFilter[] | null;
1090
+ };
1091
+ /**
1092
+ * 条件の組み合わせタイプ。all=すべて、any=いずれか、custom=高度な条件式。明細セクションには含まれません。
1093
+ */
1094
+ export type SectionListItemCombinationType = (typeof SectionListItemCombinationType)[keyof typeof SectionListItemCombinationType];
1095
+ export declare const SectionListItemCombinationType: {
1096
+ readonly all: "all";
1097
+ readonly any: "any";
1098
+ readonly custom: "custom";
1099
+ };
1194
1100
  /**
1195
1101
  * フィールドの型
1196
1102
  */
@@ -1209,52 +1115,6 @@ export declare const SlipFieldFieldType: {
1209
1115
  readonly team: "team";
1210
1116
  readonly ticket: "ticket";
1211
1117
  };
1212
- /**
1213
- * 正規表現フォーマット
1214
- */
1215
- export type SlipFieldRegexpFormat = string | null;
1216
- /**
1217
- * 計算式。型が自動計算のときのみ値が入ります。
1218
- */
1219
- export type SlipFieldFormula = string | null;
1220
- /**
1221
- * 最大値
1222
- */
1223
- export type SlipFieldMaxValue = number | null;
1224
- /**
1225
- * 最小値
1226
- */
1227
- export type SlipFieldMinValue = number | null;
1228
- /**
1229
- * 初期値
1230
- */
1231
- export type SlipFieldDefaultValue = string | null;
1232
- /**
1233
- * 小数の桁数
1234
- */
1235
- export type SlipFieldDecimalDigit = number | null;
1236
- /**
1237
- * カンマ区切りで表示する場合true。
1238
- 整数、数値、自動計算フィールド以外ではnullが入ります。
1239
- */
1240
- export type SlipFieldDelimited = boolean | null;
1241
- /**
1242
- * 単位(接頭辞)
1243
- */
1244
- export type SlipFieldPrefix = string | null;
1245
- /**
1246
- * 単位(接尾辞)
1247
- */
1248
- export type SlipFieldSuffix = string | null;
1249
- /**
1250
- * 隠しフィールドである場合true
1251
- */
1252
- export type SlipFieldHidden = boolean | null;
1253
- /**
1254
- * trueの時、申請者・承認者が画面上から値を入力することを禁止します。
1255
- 外部API連携(ボタン)による代入や、REST API経由での入力はこのオプションの対象外です。
1256
- */
1257
- export type SlipFieldReadonlyOnUi = boolean | null;
1258
1118
  /**
1259
1119
  * 明細フィールド
1260
1120
  */
@@ -1273,55 +1133,134 @@ export interface SlipField {
1273
1133
  showTotal: boolean;
1274
1134
  /** 選択肢。プルダウンまたはチェックボックスのときのみ値が入ります。 */
1275
1135
  options: string[];
1276
- /** 正規表現フォーマット */
1277
- regexpFormat: SlipFieldRegexpFormat;
1278
- /** 計算式。型が自動計算のときのみ値が入ります。 */
1279
- formula: SlipFieldFormula;
1280
- /** 最大値 */
1281
- maxValue: SlipFieldMaxValue;
1282
- /** 最小値 */
1283
- minValue: SlipFieldMinValue;
1284
- /** 初期値 */
1285
- defaultValue: SlipFieldDefaultValue;
1286
- /** 小数の桁数 */
1287
- decimalDigit: SlipFieldDecimalDigit;
1288
- /** カンマ区切りで表示する場合true。
1289
- 整数、数値、自動計算フィールド以外ではnullが入ります。 */
1290
- delimited: SlipFieldDelimited;
1136
+ /**
1137
+ * 正規表現フォーマット
1138
+ * @nullable
1139
+ */
1140
+ regexpFormat: string | null;
1141
+ /**
1142
+ * 計算式。型が自動計算のときのみ値が入ります。
1143
+ * @nullable
1144
+ */
1145
+ formula: string | null;
1146
+ /**
1147
+ * 最大値
1148
+ * @nullable
1149
+ */
1150
+ maxValue: number | null;
1151
+ /**
1152
+ * 最小値
1153
+ * @nullable
1154
+ */
1155
+ minValue: number | null;
1156
+ /**
1157
+ * 初期値
1158
+ * @nullable
1159
+ */
1160
+ defaultValue: string | null;
1161
+ /**
1162
+ * 小数の桁数
1163
+ * @nullable
1164
+ */
1165
+ decimalDigit: number | null;
1166
+ /**
1167
+ * カンマ区切りで表示する場合true。
1168
+ 整数、数値、自動計算フィールド以外ではnullが入ります。
1169
+ * @nullable
1170
+ */
1171
+ delimited: boolean | null;
1291
1172
  /** 添付可能な拡張子リスト */
1292
1173
  allowedExtensions: string[];
1293
- /** 単位(接頭辞) */
1294
- prefix: SlipFieldPrefix;
1295
- /** 単位(接尾辞) */
1296
- suffix: SlipFieldSuffix;
1174
+ /**
1175
+ * 単位(接頭辞)
1176
+ * @nullable
1177
+ */
1178
+ prefix: string | null;
1179
+ /**
1180
+ * 単位(接尾辞)
1181
+ * @nullable
1182
+ */
1183
+ suffix: string | null;
1297
1184
  /** 承認者が編集可能かどうか */
1298
1185
  approver: boolean;
1299
1186
  /** 申請者が編集可能かどうか */
1300
1187
  author?: boolean;
1301
- /** 隠しフィールドである場合true */
1302
- hidden?: SlipFieldHidden;
1303
- /** trueの時、申請者・承認者が画面上から値を入力することを禁止します。
1304
- 外部API連携(ボタン)による代入や、REST API経由での入力はこのオプションの対象外です。 */
1305
- readonlyOnUi?: SlipFieldReadonlyOnUi;
1188
+ /**
1189
+ * 隠しフィールドである場合true
1190
+ * @nullable
1191
+ */
1192
+ hidden?: boolean | null;
1193
+ /**
1194
+ * trueの時、申請者・承認者が画面上から値を入力することを禁止します。
1195
+ 外部API連携(ボタン)による代入や、REST API経由での入力はこのオプションの対象外です。
1196
+ * @nullable
1197
+ */
1198
+ readonlyOnUi?: boolean | null;
1306
1199
  }
1307
1200
  /**
1308
- * 汎用マスタ。型が汎用マスタのときのみ値が入ります。
1309
- */
1310
- export type SlipFieldDetailAllOfGeneralMaster = GeneralMaster | null;
1311
- /**
1312
- * 汎用マスタアイテムの初期値
1201
+ * 明細フィールドの詳細
1313
1202
  */
1314
- export type SlipFieldDetailAllOfDefaultGeneralMasterItem = GeneralMasterItem | null;
1315
- export type SlipFieldDetailAllOf = {
1203
+ export type SlipFieldDetail = SlipField & {
1316
1204
  /** 汎用マスタ。型が汎用マスタのときのみ値が入ります。 */
1317
- generalMaster?: SlipFieldDetailAllOfGeneralMaster;
1205
+ generalMaster?: GeneralMaster | null;
1318
1206
  /** 汎用マスタアイテムの初期値 */
1319
- defaultGeneralMasterItem?: SlipFieldDetailAllOfDefaultGeneralMasterItem;
1207
+ defaultGeneralMasterItem?: GeneralMasterItem | null;
1320
1208
  };
1321
1209
  /**
1322
- * 明細フィールドの詳細
1210
+ * 明細セクションまたはフォームセクション
1211
+ */
1212
+ export interface SectionListItem {
1213
+ sectionType: SectionListItemSectionType;
1214
+ /**
1215
+ * タイトル
1216
+ * @nullable
1217
+ */
1218
+ title: string | null;
1219
+ /**
1220
+ * 説明
1221
+ * @nullable
1222
+ */
1223
+ description: string | null;
1224
+ /** フォームセクションのID(UUID)。明細セクションには含まれません。 */
1225
+ id?: string;
1226
+ /** フォームフィールド。明細セクションには含まれません。 */
1227
+ formFields?: FormFieldDetail[];
1228
+ /** 表示条件があるかどうか。明細セクションには含まれません。 */
1229
+ conditional?: boolean;
1230
+ /** 条件の組み合わせタイプ。all=すべて、any=いずれか、custom=高度な条件式。明細セクションには含まれません。 */
1231
+ combinationType?: SectionListItemCombinationType;
1232
+ /**
1233
+ * 高度な条件式
1234
+ * @nullable
1235
+ */
1236
+ combinationExpression?: string | null;
1237
+ /** 明細フィールド。フォームセクションには含まれません。 */
1238
+ slipFields?: SlipFieldDetail[];
1239
+ }
1240
+ /**
1241
+ * ワークフロー単位で設定された共有ユーザー
1242
+ */
1243
+ export interface WorkflowTicketViewer {
1244
+ /** UUID */
1245
+ id: string;
1246
+ /** ユーザー。ユーザーとチームは片方のみ値が入ります。 */
1247
+ user: User | null;
1248
+ /** チーム。ユーザーとチームは片方のみ値が入ります。 */
1249
+ team: Team | null;
1250
+ /** 役職。チーム指定で役職も指定する場合のみ値が入ります。 */
1251
+ grade: Grade | null;
1252
+ }
1253
+ /**
1254
+ * チケットに含まれるワークフロー。セクション情報と共有ユーザー情報を含みます。
1323
1255
  */
1324
- export type SlipFieldDetail = SlipField & SlipFieldDetailAllOf;
1256
+ export type WorkflowInTicket = Workflow & {
1257
+ /** セクション・明細を表すオブジェクトを画面に表示される順に格納した配列。 */
1258
+ sectionList?: SectionListItem[];
1259
+ /** ワークフロー単位のチケット共有ユーザー */
1260
+ ticketViewers: WorkflowTicketViewer[];
1261
+ /** クラウドサイン連携設定 */
1262
+ cloudSignSetting: WorkflowInTicketCloudSignSetting;
1263
+ };
1325
1264
  /**
1326
1265
  * 経路分岐タイプ
1327
1266
  */
@@ -1340,110 +1279,6 @@ export declare const WorkflowRouteConditionCombinationType: {
1340
1279
  readonly any: "any";
1341
1280
  readonly custom: "custom";
1342
1281
  };
1343
- /**
1344
- * 経路。routeまたはerrorMessageは片方のみ値が入ります。
1345
- */
1346
- export type WorkflowRouteConditionRoute = Route | null;
1347
- /**
1348
- * 申請拒否時のエラーメッセージ。routeまたはerrorMessageは片方のみ値が入ります。
1349
- */
1350
- export type WorkflowRouteConditionErrorMessage = string | null;
1351
- /**
1352
- * ワークフローの経路分岐
1353
- */
1354
- export interface WorkflowRouteCondition {
1355
- /** UUID */
1356
- id: string;
1357
- /** 経路分岐タイプ */
1358
- conditionType: WorkflowRouteConditionConditionType;
1359
- /** 条件の組み合わせタイプ */
1360
- combinationType: WorkflowRouteConditionCombinationType;
1361
- /** 高度な条件式 */
1362
- combinationExpression: string;
1363
- /** 経路。routeまたはerrorMessageは片方のみ値が入ります。 */
1364
- route: WorkflowRouteConditionRoute;
1365
- /** 条件 */
1366
- conditionFields: WorkflowRouteConditionField[];
1367
- /** 申請拒否時のエラーメッセージ。routeまたはerrorMessageは片方のみ値が入ります。 */
1368
- errorMessage: WorkflowRouteConditionErrorMessage;
1369
- }
1370
- /**
1371
- * 演算子
1372
- */
1373
- export type WorkflowRouteConditionFieldSymbol = (typeof WorkflowRouteConditionFieldSymbol)[keyof typeof WorkflowRouteConditionFieldSymbol];
1374
- export declare const WorkflowRouteConditionFieldSymbol: {
1375
- readonly equal: "equal";
1376
- readonly not_equal: "not_equal";
1377
- readonly greater_than: "greater_than";
1378
- readonly greater_than_or_equal: "greater_than_or_equal";
1379
- readonly less_than: "less_than";
1380
- readonly less_than_or_equal: "less_than_or_equal";
1381
- readonly include: "include";
1382
- readonly exclude: "exclude";
1383
- readonly is_empty: "is_empty";
1384
- readonly is_not_empty: "is_not_empty";
1385
- readonly descendants_or_equal: "descendants_or_equal";
1386
- };
1387
- /**
1388
- * しきい値
1389
- */
1390
- export type WorkflowRouteConditionFieldValue = string | null;
1391
- /**
1392
- * しきい値として使う役職
1393
- */
1394
- export type WorkflowRouteConditionFieldGrade = Grade | null;
1395
- /**
1396
- * しきい値として使うチーム
1397
- */
1398
- export type WorkflowRouteConditionFieldTeam = Team | null;
1399
- /**
1400
- * しきい値として使う汎用マスタアイテム
1401
- */
1402
- export type WorkflowRouteConditionFieldGeneralMasterItem = GeneralMasterItem | null;
1403
- /**
1404
- * ワークフロー経路分岐の条件
1405
- */
1406
- export interface WorkflowRouteConditionField {
1407
- /** UUID */
1408
- id: string;
1409
- /** 演算子 */
1410
- symbol: WorkflowRouteConditionFieldSymbol;
1411
- /** しきい値 */
1412
- value: WorkflowRouteConditionFieldValue;
1413
- /** 対象のフォームフィールド */
1414
- formField: FormField;
1415
- /** しきい値として使う役職 */
1416
- grade: WorkflowRouteConditionFieldGrade;
1417
- /** しきい値として使うチーム */
1418
- team: WorkflowRouteConditionFieldTeam;
1419
- /** しきい値として使う汎用マスタアイテム */
1420
- generalMasterItem: WorkflowRouteConditionFieldGeneralMasterItem;
1421
- }
1422
- /**
1423
- * ユーザー。ユーザーとチームは片方のみ値が入ります。
1424
- */
1425
- export type WorkflowTicketViewerUser = User | null;
1426
- /**
1427
- * チーム。ユーザーとチームは片方のみ値が入ります。
1428
- */
1429
- export type WorkflowTicketViewerTeam = Team | null;
1430
- /**
1431
- * 役職。チーム指定で役職も指定する場合のみ値が入ります。
1432
- */
1433
- export type WorkflowTicketViewerGrade = Grade | null;
1434
- /**
1435
- * ワークフロー単位で設定された共有ユーザー
1436
- */
1437
- export interface WorkflowTicketViewer {
1438
- /** UUID */
1439
- id: string;
1440
- /** ユーザー。ユーザーとチームは片方のみ値が入ります。 */
1441
- user: WorkflowTicketViewerUser;
1442
- /** チーム。ユーザーとチームは片方のみ値が入ります。 */
1443
- team: WorkflowTicketViewerTeam;
1444
- /** 役職。チーム指定で役職も指定する場合のみ値が入ります。 */
1445
- grade: WorkflowTicketViewerGrade;
1446
- }
1447
1282
  /**
1448
1283
  * ステータス
1449
1284
  */
@@ -1453,11 +1288,6 @@ export declare const RouteStatus: {
1453
1288
  readonly deleted: "deleted";
1454
1289
  readonly error: "error";
1455
1290
  };
1456
- /**
1457
- * 作成者
1458
- */
1459
- export type RouteAuthor = User | null;
1460
- export type RouteVersionAuthor = User | null;
1461
1291
  /**
1462
1292
  * 経路
1463
1293
  */
@@ -1481,121 +1311,115 @@ export interface Route {
1481
1311
  /** 更新日時 */
1482
1312
  updatedAt: string;
1483
1313
  /** 作成者 */
1484
- author?: RouteAuthor;
1485
- versionAuthor?: RouteVersionAuthor;
1314
+ author?: User | null;
1315
+ versionAuthor?: User | null;
1486
1316
  /** フォルダ */
1487
1317
  folder: Folder;
1488
1318
  }
1489
- export type RouteDetailAllOf = {
1490
- /** 経路ステップ */
1491
- steps: RouteStep[];
1492
- };
1493
- /**
1494
- * 経路の詳細情報
1495
- */
1496
- export type RouteDetail = Route & RouteDetailAllOf;
1497
- /**
1498
- * ステップのタイプ
1499
- */
1500
- export type RouteStepStepType = (typeof RouteStepStepType)[keyof typeof RouteStepStepType];
1501
- export declare const RouteStepStepType: {
1502
- readonly author: "author";
1503
- readonly manager: "manager";
1504
- readonly team: "team";
1505
- readonly user: "user";
1506
- readonly author_customizable: "author_customizable";
1507
- readonly assignee_customizable: "assignee_customizable";
1508
- readonly dynamic_team: "dynamic_team";
1509
- readonly dynamic_user: "dynamic_user";
1510
- };
1511
1319
  /**
1512
- * アクションタイプ。承認/差し戻しの場合approve、回覧(確認あり)の場合confirm、回覧(確認なし)の場合noneになります。
1320
+ * 演算子
1513
1321
  */
1514
- export type RouteStepActionType = (typeof RouteStepActionType)[keyof typeof RouteStepActionType];
1515
- export declare const RouteStepActionType: {
1516
- readonly approve: "approve";
1517
- readonly confirm: "confirm";
1518
- readonly none: "none";
1322
+ export type WorkflowRouteConditionFieldSymbol = (typeof WorkflowRouteConditionFieldSymbol)[keyof typeof WorkflowRouteConditionFieldSymbol];
1323
+ export declare const WorkflowRouteConditionFieldSymbol: {
1324
+ readonly equal: "equal";
1325
+ readonly not_equal: "not_equal";
1326
+ readonly greater_than: "greater_than";
1327
+ readonly greater_than_or_equal: "greater_than_or_equal";
1328
+ readonly less_than: "less_than";
1329
+ readonly less_than_or_equal: "less_than_or_equal";
1330
+ readonly include: "include";
1331
+ readonly exclude: "exclude";
1332
+ readonly is_empty: "is_empty";
1333
+ readonly is_not_empty: "is_not_empty";
1334
+ readonly descendants_or_equal: "descendants_or_equal";
1519
1335
  };
1520
1336
  /**
1521
- * 承認者への指示
1522
- */
1523
- export type RouteStepInstruction = string | null;
1524
- /**
1525
- * フォールバックのタイプ
1526
- */
1527
- export type RouteStepFallbackType = 'direct_manager' | 'higher_manager' | 'skip' | 'no_fallback' | 'higher_team' | null;
1528
- /**
1529
- * 最小指名人数。「申請者が指名」ステップのみ設定可能。
1530
- * @minimum 0
1531
- */
1532
- export type RouteStepMinCustomAssignees = number | null;
1533
- /**
1534
- * 承認者の選び方
1337
+ * ワークフロー経路分岐の条件
1535
1338
  */
1536
- export type RouteStepApproverAssignmentInstruction = string | null;
1537
- export type RouteStepRouteStepCondition = RouteStepCondition | null;
1339
+ export interface WorkflowRouteConditionField {
1340
+ /** UUID */
1341
+ id: string;
1342
+ /** 演算子 */
1343
+ symbol: WorkflowRouteConditionFieldSymbol;
1344
+ /**
1345
+ * しきい値
1346
+ * @nullable
1347
+ */
1348
+ value: string | null;
1349
+ /** 対象のフォームフィールド */
1350
+ formField: FormField;
1351
+ /** しきい値として使う役職 */
1352
+ grade: Grade | null;
1353
+ /** しきい値として使うチーム */
1354
+ team: Team | null;
1355
+ /** しきい値として使う汎用マスタアイテム */
1356
+ generalMasterItem: GeneralMasterItem | null;
1357
+ }
1538
1358
  /**
1539
- * 経路ステップ
1359
+ * ワークフローの経路分岐
1540
1360
  */
1541
- export interface RouteStep {
1361
+ export interface WorkflowRouteCondition {
1542
1362
  /** UUID */
1543
1363
  id: string;
1544
- /** ステップ順序(1から始まります) */
1545
- stepOrder: number;
1546
- /** ステップのタイプ */
1547
- stepType: RouteStepStepType;
1548
- /** タイトル */
1549
- title: string;
1550
- /** アクションタイプ。承認/差し戻しの場合approve、回覧(確認あり)の場合confirm、回覧(確認なし)の場合noneになります。 */
1551
- actionType: RouteStepActionType;
1552
- /** 承認者への指示 */
1553
- instruction: RouteStepInstruction;
1554
- /** 必要な承認人数 */
1555
- requiredApprovalsNumber: number;
1556
- /** 必要な承認割合(%) */
1557
- requiredApprovalsPercent: number;
1558
- /** フォールバックのタイプ */
1559
- fallbackType: RouteStepFallbackType;
1560
- /** 自己承認を許可するか */
1561
- allowSelfApproval: boolean;
1364
+ /** 経路分岐タイプ */
1365
+ conditionType: WorkflowRouteConditionConditionType;
1366
+ /** 条件の組み合わせタイプ */
1367
+ combinationType: WorkflowRouteConditionCombinationType;
1368
+ /** 高度な条件式 */
1369
+ combinationExpression: string;
1370
+ /** 経路。routeまたはerrorMessageは片方のみ値が入ります。 */
1371
+ route: Route | null;
1372
+ /** 条件 */
1373
+ conditionFields: WorkflowRouteConditionField[];
1562
1374
  /**
1563
- * 最小指名人数。「申請者が指名」ステップのみ設定可能。
1564
- * @minimum 0
1375
+ * 申請拒否時のエラーメッセージ。routeまたはerrorMessageは片方のみ値が入ります。
1376
+ * @nullable
1565
1377
  */
1566
- minCustomAssignees: RouteStepMinCustomAssignees;
1567
- /** 承認者の選び方 */
1568
- approverAssignmentInstruction: RouteStepApproverAssignmentInstruction;
1569
- /** 承認者の指定に使うユーザーの配列 */
1570
- users: User[];
1571
- /** 承認者の指定に使うチームと役職の条件 */
1572
- targets?: RouteStepTarget[];
1573
- routeStepCondition?: RouteStepRouteStepCondition;
1574
- /** コード */
1575
- code: string;
1378
+ errorMessage: string | null;
1576
1379
  }
1577
1380
  /**
1578
- * 役職の比較条件。役職が指定されているときのみ値が入ります。
1381
+ * ワークフローの詳細
1579
1382
  */
1580
- export type RouteStepTargetGradeSymbol = (typeof RouteStepTargetGradeSymbol)[keyof typeof RouteStepTargetGradeSymbol];
1581
- export declare const RouteStepTargetGradeSymbol: {
1582
- readonly equal: "equal";
1583
- readonly greater_than: "greater_than";
1584
- readonly greater_than_or_equal: "greater_than_or_equal";
1585
- readonly less_than: "less_than";
1586
- readonly less_than_or_equal: "less_than_or_equal";
1587
- readonly any_of: "any_of";
1383
+ export type WorkflowDetail = WorkflowInTicket & {
1384
+ /** 経路分岐 */
1385
+ routeConditions: WorkflowRouteCondition[];
1386
+ };
1387
+ /**
1388
+ * ステップのタイプ
1389
+ */
1390
+ export type RouteStepStepType = (typeof RouteStepStepType)[keyof typeof RouteStepStepType];
1391
+ export declare const RouteStepStepType: {
1392
+ readonly author: "author";
1393
+ readonly manager: "manager";
1394
+ readonly team: "team";
1395
+ readonly user: "user";
1396
+ readonly author_customizable: "author_customizable";
1397
+ readonly assignee_customizable: "assignee_customizable";
1398
+ readonly dynamic_team: "dynamic_team";
1399
+ readonly dynamic_user: "dynamic_user";
1400
+ };
1401
+ /**
1402
+ * アクションタイプ。承認/差し戻しの場合approve、回覧(確認あり)の場合confirm、回覧(確認なし)の場合noneになります。
1403
+ */
1404
+ export type RouteStepActionType = (typeof RouteStepActionType)[keyof typeof RouteStepActionType];
1405
+ export declare const RouteStepActionType: {
1406
+ readonly approve: "approve";
1407
+ readonly confirm: "confirm";
1408
+ readonly none: "none";
1588
1409
  };
1589
1410
  export interface RouteStepTarget {
1590
1411
  team?: Team;
1591
1412
  /** stepType=author_customizableまたはstepType=assignee_customizableの場合に、指定したチームの下位チームのメンバーも承認者候補に含めるかどうか(true: 含める、false: 含めない) */
1592
1413
  descendants?: boolean;
1593
1414
  /** 役職の比較条件。役職が指定されているときのみ値が入ります。 */
1594
- gradeSymbol?: RouteStepTargetGradeSymbol;
1415
+ gradeSymbol?: 'equal' | 'greater_than' | 'greater_than_or_equal' | 'less_than' | 'less_than_or_equal' | 'any_of' | null;
1595
1416
  /** 承認者の指定に使う役職の配列 */
1596
1417
  grades?: Grade[];
1597
- /** 承認者タイプ「チームを動的に指定」または「ユーザーを動的に指定」で指定する変数名が入ります。 */
1598
- variable?: string;
1418
+ /**
1419
+ * 承認者タイプ「チームを動的に指定」または「ユーザーを動的に指定」で指定する変数名が入ります。
1420
+ * @nullable
1421
+ */
1422
+ variable?: string | null;
1599
1423
  }
1600
1424
  /**
1601
1425
  * 実行タイプ
@@ -1614,19 +1438,6 @@ export declare const RouteStepConditionCombinationType: {
1614
1438
  readonly all: "all";
1615
1439
  readonly any: "any";
1616
1440
  };
1617
- export type RouteStepConditionRouteStepConditionFields = RouteStepConditionField | unknown;
1618
- /**
1619
- * ステップごとに設定できる実行条件
1620
- */
1621
- export interface RouteStepCondition {
1622
- /** UUID */
1623
- id?: string;
1624
- /** 実行タイプ */
1625
- conditionType?: RouteStepConditionConditionType;
1626
- /** 条件の組み合わせタイプ */
1627
- combinationType?: RouteStepConditionCombinationType;
1628
- routeStepConditionFields?: RouteStepConditionRouteStepConditionFields;
1629
- }
1630
1441
  /**
1631
1442
  * 変数のフィールド
1632
1443
  */
@@ -1680,13 +1491,70 @@ export interface RouteStepConditionField {
1680
1491
  generalMasterItem?: GeneralMasterItem;
1681
1492
  }
1682
1493
  /**
1683
- * チケット番号
1494
+ * ステップごとに設定できる実行条件
1495
+ */
1496
+ export interface RouteStepCondition {
1497
+ /** UUID */
1498
+ id?: string;
1499
+ /** 実行タイプ */
1500
+ conditionType?: RouteStepConditionConditionType;
1501
+ /** 条件の組み合わせタイプ */
1502
+ combinationType?: RouteStepConditionCombinationType;
1503
+ routeStepConditionFields?: RouteStepConditionField[];
1504
+ }
1505
+ /**
1506
+ * 経路ステップ
1684
1507
  */
1685
- export type TicketTicketNumber = string | null;
1508
+ export interface RouteStep {
1509
+ /** UUID */
1510
+ id: string;
1511
+ /** ステップ順序(1から始まります) */
1512
+ stepOrder: number;
1513
+ /** ステップのタイプ */
1514
+ stepType: RouteStepStepType;
1515
+ /** タイトル */
1516
+ title: string;
1517
+ /** アクションタイプ。承認/差し戻しの場合approve、回覧(確認あり)の場合confirm、回覧(確認なし)の場合noneになります。 */
1518
+ actionType: RouteStepActionType;
1519
+ /**
1520
+ * 承認者への指示
1521
+ * @nullable
1522
+ */
1523
+ instruction: string | null;
1524
+ /** 必要な承認人数 */
1525
+ requiredApprovalsNumber: number;
1526
+ /** 必要な承認割合(%) */
1527
+ requiredApprovalsPercent: number;
1528
+ /** フォールバックのタイプ */
1529
+ fallbackType: 'direct_manager' | 'higher_manager' | 'skip' | 'no_fallback' | 'higher_team' | null;
1530
+ /** 自己承認を許可するか */
1531
+ allowSelfApproval: boolean;
1532
+ /**
1533
+ * 最小指名人数。「申請者が指名」ステップのみ設定可能。
1534
+ * @minimum 0
1535
+ * @nullable
1536
+ */
1537
+ minCustomAssignees: number | null;
1538
+ /**
1539
+ * 承認者の選び方
1540
+ * @nullable
1541
+ */
1542
+ approverAssignmentInstruction: string | null;
1543
+ /** 承認者の指定に使うユーザーの配列 */
1544
+ users: User[];
1545
+ /** 承認者の指定に使うチームと役職の条件 */
1546
+ targets?: RouteStepTarget[];
1547
+ routeStepCondition?: RouteStepCondition | null;
1548
+ /** コード */
1549
+ code: string;
1550
+ }
1686
1551
  /**
1687
- * タイトル
1552
+ * 経路の詳細情報
1688
1553
  */
1689
- export type TicketTitle = string | null;
1554
+ export type RouteDetail = Route & {
1555
+ /** 経路ステップ */
1556
+ steps: RouteStep[];
1557
+ };
1690
1558
  /**
1691
1559
  * ステータス
1692
1560
  */
@@ -1700,30 +1568,6 @@ export declare const TicketStatus: {
1700
1568
  readonly denied: "denied";
1701
1569
  readonly permanently_deleted: "permanently_deleted";
1702
1570
  };
1703
- /**
1704
- * サブステータス。処理中のみ値が入ります。
1705
- */
1706
- export type TicketSubStatus = SubStatus | null;
1707
- /**
1708
- * 申請者。代理申請の場合、代理人が入ります。外部ゲストの場合はnullになります。
1709
- */
1710
- export type TicketAuthor = User | null;
1711
- /**
1712
- * 代理申請を依頼したユーザー。代理申請の場合のみ値が入ります。
1713
- */
1714
- export type TicketProxyClientUser = User | null;
1715
- /**
1716
- * 申請日時
1717
- */
1718
- export type TicketOpenedAt = string | null;
1719
- /**
1720
- * 完了日時
1721
- */
1722
- export type TicketCompletedAt = string | null;
1723
- /**
1724
- * アーカイブ日時
1725
- */
1726
- export type TicketArchivedAt = string | null;
1727
1571
  /**
1728
1572
  * チケットの共有範囲の上書き設定
1729
1573
  */
@@ -1734,175 +1578,107 @@ export declare const TicketForcedPublicType: {
1734
1578
  readonly forced_private: "forced_private";
1735
1579
  };
1736
1580
  /**
1737
- * このチケットのワークフロー情報。チケットを一件だけ取得した場合のみ、セクションや共有ユーザーを含むより詳細なワークフロー情報が入ります。
1738
- */
1739
- export type TicketWorkflow = Workflow | WorkflowInTicket;
1740
- /**
1741
- * チケット
1581
+ * サブステータス
1742
1582
  */
1743
- export interface Ticket {
1583
+ export interface SubStatus {
1744
1584
  /** UUID */
1745
1585
  id: string;
1746
- /** チケット番号 */
1747
- ticketNumber: TicketTicketNumber;
1748
- /** タイトル */
1749
- title?: TicketTitle;
1750
- /** ステータス */
1751
- status: TicketStatus;
1752
- /** サブステータス。処理中のみ値が入ります。 */
1753
- subStatus?: TicketSubStatus;
1586
+ /** コード */
1587
+ code: string;
1588
+ /** 名前 */
1589
+ name: string;
1754
1590
  /**
1755
- * 現在のステップ。0が起票者、1が最初の承認ステップ。
1756
- * @minimum 0
1591
+ * 説明
1592
+ * @nullable
1757
1593
  */
1758
- currentStep: number;
1759
- /** 申請者。代理申請の場合、代理人が入ります。外部ゲストの場合はnullになります。 */
1760
- author: TicketAuthor;
1761
- /** 代理申請を依頼したユーザー。代理申請の場合のみ値が入ります。 */
1762
- proxyClientUser: TicketProxyClientUser;
1594
+ notes: string | null;
1763
1595
  /** 作成日時 */
1764
1596
  createdAt: string;
1765
- /** 申請日時 */
1766
- openedAt: TicketOpenedAt;
1767
- /** 完了日時 */
1768
- completedAt: TicketCompletedAt;
1769
- /** アーカイブ日時 */
1770
- archivedAt: TicketArchivedAt;
1771
1597
  /** 更新日時 */
1772
1598
  updatedAt: string;
1773
- /** チケットがテナント全体に共有の場合true */
1774
- publicStatus: boolean;
1775
- /** チケットの共有範囲の上書き設定 */
1776
- forcedPublicType: TicketForcedPublicType;
1777
- /** このチケットのワークフロー情報。チケットを一件だけ取得した場合のみ、セクションや共有ユーザーを含むより詳細なワークフロー情報が入ります。 */
1778
- workflow: TicketWorkflow;
1779
- /** チケットのラベルの配列 */
1780
- labels: Label[];
1781
1599
  }
1782
- export type TicketWithStepAllOf = {
1783
- /** ステップの配列 */
1784
- steps: TicketStep[];
1785
- };
1786
- export type TicketWithStep = Ticket & TicketWithStepAllOf;
1787
- /**
1788
- * 申請者の所属チーム. 外部ゲストの場合はnullになります。
1789
- */
1790
- export type TicketDetailAllOfAuthorTeam = Team | null;
1791
- /**
1792
- * このチケットの承認経路。申請拒否状態の場合、nullになります。
1793
- */
1794
- export type TicketDetailAllOfRoute = RouteDetail | null;
1795
- /**
1796
- * 元のチケット(パイプラインで作成されたときのみ値が入ります)
1797
- */
1798
- export type TicketDetailAllOfTriggerTicket = Ticket | null;
1799
1600
  /**
1800
- * クラウドサイン書類のステータス
1601
+ * ラベル
1801
1602
  */
1802
- export type TicketDetailAllOfCloudSignDocumentAnyOfStatus = (typeof TicketDetailAllOfCloudSignDocumentAnyOfStatus)[keyof typeof TicketDetailAllOfCloudSignDocumentAnyOfStatus];
1803
- export declare const TicketDetailAllOfCloudSignDocumentAnyOfStatus: {
1804
- readonly draft: "draft";
1805
- readonly in_progress: "in_progress";
1806
- readonly rejected: "rejected";
1807
- readonly template: "template";
1808
- readonly imported: "imported";
1809
- readonly completed: "completed";
1810
- };
1811
- export type TicketDetailAllOfCloudSignDocumentAnyOf = {
1603
+ export interface Label {
1812
1604
  /** UUID */
1813
1605
  id: string;
1814
- /** クラウドサイン書類のID */
1815
- documentId: string;
1816
- /** クラウドサイン書類のタイトル */
1817
- documentTitle: string;
1818
- /** クラウドサイン書類のステータス */
1819
- status: TicketDetailAllOfCloudSignDocumentAnyOfStatus;
1820
- /** クラウドサインがサンドボックス環境の場合true */
1821
- sandbox: boolean;
1606
+ /** 名前 */
1607
+ name: string;
1608
+ /**
1609
+ * 説明
1610
+ * @nullable
1611
+ */
1612
+ description: string | null;
1613
+ /**
1614
+ * ラベルの色。#なしHEXコード(例: ff0000)
1615
+ * @minLength 6
1616
+ * @maxLength 6
1617
+ * @pattern ^[a-f0-9]{6}$
1618
+ */
1619
+ color: string;
1822
1620
  /** 作成日時 */
1823
1621
  createdAt: string;
1824
1622
  /** 更新日時 */
1825
1623
  updatedAt: string;
1826
- /** クラウドサイン書類のURL */
1827
- url: string;
1828
- };
1829
- /**
1830
- * 添付されたクラウドサインの書類
1831
- */
1832
- export type TicketDetailAllOfCloudSignDocument = null | TicketDetailAllOfCloudSignDocumentAnyOf;
1833
- export type TicketDetailAllOf = {
1834
- /** 申請者の所属チーム. 外部ゲストの場合はnullになります。 */
1835
- authorTeam: TicketDetailAllOfAuthorTeam;
1836
- /** このチケットの承認経路。申請拒否状態の場合、nullになります。 */
1837
- route: TicketDetailAllOfRoute;
1838
- /** 元のチケット(パイプラインで作成されたときのみ値が入ります) */
1839
- triggerTicket?: TicketDetailAllOfTriggerTicket;
1840
- /** 次のチケット(パイプラインで次のチケットを作成したときのみ値が入ります) */
1841
- nextTickets?: Ticket[];
1842
- /** 明細の入力 */
1843
- slipItems: SlipItem[];
1844
- /** セクションの配列 */
1845
- ticketSections: TicketSection[];
1846
- /** フォームの入力 */
1847
- inputs: TicketInput[];
1848
- /** 添付されたクラウドサインの書類 */
1849
- cloudSignDocument: TicketDetailAllOfCloudSignDocument;
1850
- /** チケットのステップ */
1851
- steps: TicketStep[];
1852
- };
1853
- /**
1854
- * チケットの詳細
1855
- */
1856
- export type TicketDetail = Ticket & TicketDetailAllOf;
1857
- export type TicketInputValueAnyOf = string | null;
1858
- export type TicketInputValueAnyOfTwo = unknown[] | null;
1859
- export type TicketInputValueAnyOfThree = number | null;
1860
- export type TicketInputValueAnyOfFour = number | null;
1861
- /**
1862
- * 入力値
1863
- フィールドの型が汎用マスタアイテム、ユーザー、チーム、チケットの場合、JSON Arrayがキャッシュとして保存されます。
1864
- */
1865
- export type TicketInputValue = TicketInputValueAnyOf | TicketInputValueAnyOfTwo | TicketInputValueAnyOfThree | TicketInputValueAnyOfFour;
1624
+ }
1866
1625
  /**
1867
- * チケットのフォーム入力
1626
+ * チケット
1868
1627
  */
1869
- export interface TicketInput {
1628
+ export interface Ticket {
1870
1629
  /** UUID */
1871
1630
  id: string;
1872
- /** 入力値
1873
- フィールドの型が汎用マスタアイテム、ユーザー、チーム、チケットの場合、JSON Arrayがキャッシュとして保存されます。 */
1874
- value: TicketInputValue;
1875
- formField?: FormField;
1876
- /** 入力値: 汎用マスタアイテム */
1877
- generalMasterItems?: GeneralMasterItem[];
1878
- /** 入力値: ユーザー */
1879
- users?: User[];
1880
- /** 入力値: チーム */
1881
- teams?: Team[];
1882
- /** 入力値: チケット */
1883
- inputTickets?: Ticket[];
1884
- /** 添付ファイル */
1885
- attachments?: Attachment[];
1886
- }
1887
- /**
1888
- * チケットのセクション
1889
- */
1890
- export interface TicketSection {
1891
- /** ワークフローのセクションID */
1892
- sectionId: string;
1893
- /** セクションの表示状態 */
1894
- visible: boolean;
1895
- /** このセクションの入力の配列 */
1896
- inputs: TicketInput[];
1631
+ /**
1632
+ * チケット番号
1633
+ * @nullable
1634
+ */
1635
+ ticketNumber: string | null;
1636
+ /**
1637
+ * タイトル
1638
+ * @nullable
1639
+ */
1640
+ title?: string | null;
1641
+ /** ステータス */
1642
+ status: TicketStatus;
1643
+ /** サブステータス。処理中のみ値が入ります。 */
1644
+ subStatus?: SubStatus | null;
1645
+ /**
1646
+ * 現在のステップ。0が起票者、1が最初の承認ステップ。
1647
+ * @minimum 0
1648
+ */
1649
+ currentStep: number;
1650
+ /** 申請者。代理申請の場合、代理人が入ります。外部ゲストの場合はnullになります。 */
1651
+ author: User | null;
1652
+ /** 代理申請を依頼したユーザー。代理申請の場合のみ値が入ります。 */
1653
+ proxyClientUser: User | null;
1654
+ /** 作成日時 */
1655
+ createdAt: string;
1656
+ /**
1657
+ * 申請日時
1658
+ * @nullable
1659
+ */
1660
+ openedAt: string | null;
1661
+ /**
1662
+ * 完了日時
1663
+ * @nullable
1664
+ */
1665
+ completedAt: string | null;
1666
+ /**
1667
+ * アーカイブ日時
1668
+ * @nullable
1669
+ */
1670
+ archivedAt: string | null;
1671
+ /** 更新日時 */
1672
+ updatedAt: string;
1673
+ /** チケットがテナント全体に共有の場合true */
1674
+ publicStatus: boolean;
1675
+ /** チケットの共有範囲の上書き設定 */
1676
+ forcedPublicType: TicketForcedPublicType;
1677
+ /** このチケットのワークフロー情報。チケットを一件だけ取得した場合のみ、セクションや共有ユーザーを含むより詳細なワークフロー情報が入ります。 */
1678
+ workflow: Workflow | WorkflowInTicket;
1679
+ /** チケットのラベルの配列 */
1680
+ labels: Label[];
1897
1681
  }
1898
- /**
1899
- * 経路ステップのUUID。カスタムステップの場合、nullになります。
1900
- */
1901
- export type TicketStepRouteStepId = string | null;
1902
- /**
1903
- * ステップのタイトル
1904
- */
1905
- export type TicketStepTitle = string | null;
1906
1682
  /**
1907
1683
  * アクションタイプ。承認/差し戻しの場合approve、回覧(確認あり)の場合confirm、回覧(確認なし)の場合noneになります。
1908
1684
  */
@@ -1913,27 +1689,42 @@ export declare const TicketStepActionType: {
1913
1689
  readonly none: "none";
1914
1690
  };
1915
1691
  /**
1916
- * フォールバックの結果
1917
- */
1918
- export type TicketStepFallbackResult = 'direct_manager' | 'higher_manager' | 'skip' | 'no_fallback' | 'higher_team' | null;
1919
- /**
1920
- * 承認ステップの作成者。カスタムステップの場合のみ、値が入ります。
1921
- */
1922
- export type TicketStepAuthor = User | null;
1923
- /**
1924
- * ステップが完了した日時。過去のデータではnullを返します。
1692
+ * チケット承認者
1925
1693
  */
1926
- export type TicketStepCompletedAt = string | null;
1694
+ export interface TicketAssignee {
1695
+ /** UUID */
1696
+ id: string;
1697
+ /** ステップ番号。1が最初の承認ステップ。 */
1698
+ stepOrder: number;
1699
+ /** 現在の承認ステップの場合true */
1700
+ current: boolean;
1701
+ /** 承認済みの場合true */
1702
+ completed: boolean;
1703
+ /**
1704
+ * 承認日時。古いデータではnullを返します。
1705
+ * @nullable
1706
+ */
1707
+ completedAt: string | null;
1708
+ /** 承認を保留中の場合true */
1709
+ pending: boolean;
1710
+ user: User;
1711
+ }
1927
1712
  /**
1928
1713
  * チケット承認ステップ
1929
1714
  */
1930
1715
  export interface TicketStep {
1931
1716
  /** UUID */
1932
1717
  id: string;
1933
- /** 経路ステップのUUID。カスタムステップの場合、nullになります。 */
1934
- routeStepId: TicketStepRouteStepId;
1935
- /** ステップのタイトル */
1936
- title: TicketStepTitle;
1718
+ /**
1719
+ * 経路ステップのUUID。カスタムステップの場合、nullになります。
1720
+ * @nullable
1721
+ */
1722
+ routeStepId: string | null;
1723
+ /**
1724
+ * ステップのタイトル
1725
+ * @nullable
1726
+ */
1727
+ title: string | null;
1937
1728
  /** アクションタイプ。承認/差し戻しの場合approve、回覧(確認あり)の場合confirm、回覧(確認なし)の場合noneになります。 */
1938
1729
  actionType: TicketStepActionType;
1939
1730
  /** 必要な承認人数 */
@@ -1947,38 +1738,44 @@ export interface TicketStep {
1947
1738
  /** フォールバックした場合true */
1948
1739
  fallback: boolean;
1949
1740
  /** フォールバックの結果 */
1950
- fallbackResult: TicketStepFallbackResult;
1741
+ fallbackResult: 'direct_manager' | 'higher_manager' | 'skip' | 'no_fallback' | 'higher_team' | null;
1951
1742
  /** 承認ステップの作成者。カスタムステップの場合のみ、値が入ります。 */
1952
- author: TicketStepAuthor;
1743
+ author: User | null;
1953
1744
  /** 承認者 */
1954
1745
  assignees: TicketAssignee[];
1955
1746
  /** ステップが完了している場合true */
1956
1747
  completed: boolean;
1957
- /** ステップが完了した日時。過去のデータではnullを返します。 */
1958
- completedAt: TicketStepCompletedAt;
1748
+ /**
1749
+ * ステップが完了した日時。過去のデータではnullを返します。
1750
+ * @nullable
1751
+ */
1752
+ completedAt: string | null;
1959
1753
  }
1754
+ export type TicketWithStep = Ticket & {
1755
+ /** ステップの配列 */
1756
+ steps: TicketStep[];
1757
+ };
1960
1758
  /**
1961
- * 承認日時。古いデータではnullを返します。
1962
- */
1963
- export type TicketAssigneeCompletedAt = string | null;
1964
- /**
1965
- * チケット承認者
1759
+ * 添付されたクラウドサインの書類
1966
1760
  */
1967
- export interface TicketAssignee {
1761
+ export type TicketDetailCloudSignDocument = null | {
1968
1762
  /** UUID */
1969
1763
  id: string;
1970
- /** ステップ番号。1が最初の承認ステップ。 */
1971
- stepOrder: number;
1972
- /** 現在の承認ステップの場合true */
1973
- current: boolean;
1974
- /** 承認済みの場合true */
1975
- completed: boolean;
1976
- /** 承認日時。古いデータではnullを返します。 */
1977
- completedAt: TicketAssigneeCompletedAt;
1978
- /** 承認を保留中の場合true */
1979
- pending: boolean;
1980
- user: User;
1981
- }
1764
+ /** クラウドサイン書類のID */
1765
+ documentId: string;
1766
+ /** クラウドサイン書類のタイトル */
1767
+ documentTitle: string;
1768
+ /** クラウドサイン書類のステータス */
1769
+ status: 'draft' | 'in_progress' | 'rejected' | 'template' | 'imported' | 'completed';
1770
+ /** クラウドサインがサンドボックス環境の場合true */
1771
+ sandbox: boolean;
1772
+ /** 作成日時 */
1773
+ createdAt: string;
1774
+ /** 更新日時 */
1775
+ updatedAt: string;
1776
+ /** クラウドサイン書類のURL */
1777
+ url: string;
1778
+ };
1982
1779
  /**
1983
1780
  * 添付ファイル
1984
1781
  */
@@ -1990,27 +1787,6 @@ export interface Attachment {
1990
1787
  /** ファイルURL */
1991
1788
  url: string;
1992
1789
  }
1993
- /**
1994
- * 明細アイテム
1995
- */
1996
- export interface SlipItem {
1997
- /** UUID */
1998
- id: string;
1999
- /** 明細アイテムの入力の配列 */
2000
- inputs: SlipItemInput[];
2001
- /** 作成日時 */
2002
- createdAt: string;
2003
- /** 更新日時 */
2004
- updatedAt: string;
2005
- /** 明細セクションのUUID */
2006
- slipSectionId: string;
2007
- }
2008
- /**
2009
- * 入力値
2010
-
2011
- フィールドの型が汎用マスタアイテムの場合、JSON Arrayがキャッシュとして保存されます。
2012
- */
2013
- export type SlipItemInputValue = string | unknown[] | number | number | null;
2014
1790
  /**
2015
1791
  * 明細アイテム入力
2016
1792
  */
@@ -2026,7 +1802,7 @@ export interface SlipItemInput {
2026
1802
  /** 入力値
2027
1803
 
2028
1804
  フィールドの型が汎用マスタアイテムの場合、JSON Arrayがキャッシュとして保存されます。 */
2029
- value: SlipItemInputValue;
1805
+ value: string | unknown[] | number | null;
2030
1806
  /** 入力値: 汎用マスタアイテム */
2031
1807
  generalMasterItems: GeneralMasterItem[];
2032
1808
  /** 入力値: ユーザー */
@@ -2039,71 +1815,87 @@ export interface SlipItemInput {
2039
1815
  attachments: Attachment[];
2040
1816
  }
2041
1817
  /**
2042
- * 説明
2043
- */
2044
- export type LabelDescription = string | null;
2045
- /**
2046
- * ラベル
1818
+ * 明細アイテム
2047
1819
  */
2048
- export interface Label {
1820
+ export interface SlipItem {
2049
1821
  /** UUID */
2050
1822
  id: string;
2051
- /** 名前 */
2052
- name: string;
2053
- /** 説明 */
2054
- description: LabelDescription;
2055
- /**
2056
- * ラベルの色。#なしHEXコード(例: ff0000)
2057
- * @minLength 6
2058
- * @maxLength 6
2059
- * @pattern ^[a-f0-9]{6}$
2060
- */
2061
- color: string;
1823
+ /** 明細アイテムの入力の配列 */
1824
+ inputs: SlipItemInput[];
2062
1825
  /** 作成日時 */
2063
1826
  createdAt: string;
2064
1827
  /** 更新日時 */
2065
1828
  updatedAt: string;
1829
+ /** 明細セクションのUUID */
1830
+ slipSectionId: string;
2066
1831
  }
2067
1832
  /**
2068
- * 説明
2069
- */
2070
- export type SubStatusNotes = string | null;
2071
- /**
2072
- * サブステータス
1833
+ * チケットのフォーム入力
2073
1834
  */
2074
- export interface SubStatus {
1835
+ export interface TicketInput {
2075
1836
  /** UUID */
2076
1837
  id: string;
2077
- /** コード */
2078
- code: string;
2079
- /** 名前 */
2080
- name: string;
2081
- /** 説明 */
2082
- notes: SubStatusNotes;
2083
- /** 作成日時 */
2084
- createdAt: string;
2085
- /** 更新日時 */
2086
- updatedAt: string;
1838
+ /** 入力値
1839
+ フィールドの型が汎用マスタアイテム、ユーザー、チーム、チケットの場合、JSON Arrayがキャッシュとして保存されます。 */
1840
+ value: string | null | unknown[] | number;
1841
+ formField?: FormField;
1842
+ /** 入力値: 汎用マスタアイテム */
1843
+ generalMasterItems?: GeneralMasterItem[];
1844
+ /** 入力値: ユーザー */
1845
+ users?: User[];
1846
+ /** 入力値: チーム */
1847
+ teams?: Team[];
1848
+ /** 入力値: チケット */
1849
+ inputTickets?: Ticket[];
1850
+ /** 添付ファイル */
1851
+ attachments?: Attachment[];
1852
+ }
1853
+ /**
1854
+ * チケットのセクション
1855
+ */
1856
+ export interface TicketSection {
1857
+ /** ワークフローのセクションID */
1858
+ sectionId: string;
1859
+ /** セクションの表示状態 */
1860
+ visible: boolean;
1861
+ /** このセクションの入力の配列 */
1862
+ inputs: TicketInput[];
2087
1863
  }
2088
- export type TicketViewerUser = User | null;
2089
- export type TicketViewerTeam = Team | null;
2090
- export type TicketViewerGrade = Grade | null;
1864
+ /**
1865
+ * チケットの詳細
1866
+ */
1867
+ export type TicketDetail = Ticket & {
1868
+ /** 申請者の所属チーム. 外部ゲストの場合はnullになります。 */
1869
+ authorTeam: Team | null;
1870
+ /** このチケットの承認経路。申請拒否状態の場合、nullになります。 */
1871
+ route: RouteDetail | null;
1872
+ /** 元のチケット(パイプラインで作成されたときのみ値が入ります) */
1873
+ triggerTicket?: Ticket | null;
1874
+ /** 次のチケット(パイプラインで次のチケットを作成したときのみ値が入ります) */
1875
+ nextTickets?: Ticket[];
1876
+ /** 明細の入力 */
1877
+ slipItems: SlipItem[];
1878
+ /** セクションの配列 */
1879
+ ticketSections: TicketSection[];
1880
+ /** フォームの入力 */
1881
+ inputs: TicketInput[];
1882
+ /** 添付されたクラウドサインの書類 */
1883
+ cloudSignDocument: TicketDetailCloudSignDocument;
1884
+ /** チケットのステップ */
1885
+ steps: TicketStep[];
1886
+ };
2091
1887
  /**
2092
1888
  * チケットの共有ユーザー
2093
1889
  */
2094
1890
  export interface TicketViewer {
2095
1891
  /** UUID */
2096
1892
  id: string;
2097
- user: TicketViewerUser;
2098
- team: TicketViewerTeam;
2099
- grade: TicketViewerGrade;
1893
+ user: User | null;
1894
+ team: Team | null;
1895
+ grade: Grade | null;
2100
1896
  /** 下位のチームを含めるかどうか */
2101
1897
  descendants: boolean;
2102
1898
  }
2103
- /**
2104
- * 削除日時
2105
- */
2106
- export type CommentDeletedAt = string | null;
2107
1899
  /**
2108
1900
  * コメント
2109
1901
  */
@@ -2118,34 +1910,30 @@ export interface Comment {
2118
1910
  createdAt: string;
2119
1911
  /** 更新日時 */
2120
1912
  updatedAt: string;
2121
- /** 削除日時 */
2122
- deletedAt: CommentDeletedAt;
1913
+ /**
1914
+ * 削除日時
1915
+ * @nullable
1916
+ */
1917
+ deletedAt: string | null;
2123
1918
  user: User;
2124
1919
  /** メンションしたユーザーの配列 */
2125
1920
  mentionedUsers: User[];
2126
1921
  }
2127
- /**
2128
- * 操作ユーザー。システムによる操作の場合はnull。
2129
- */
2130
- export type AuditLogUser = User | null;
2131
1922
  /**
2132
1923
  * 操作データ
1924
+ * @nullable
2133
1925
  */
2134
- export type AuditLogDataAnyOf = {
1926
+ export type AuditLogData = {
2135
1927
  [key: string]: unknown;
2136
- };
2137
- /**
2138
- * 操作データ
2139
- */
2140
- export type AuditLogData = AuditLogDataAnyOf | null;
2141
- /**
2142
- * リモートIPアドレス
2143
- */
2144
- export type AuditLogRemoteIp = string | null;
1928
+ } | null;
2145
1929
  /**
2146
1930
  * システムによる操作種別
1931
+ * @nullable
2147
1932
  */
2148
- export type AuditLogSystemType = 'automation' | null;
1933
+ export type AuditLogSystemType = (typeof AuditLogSystemType)[keyof typeof AuditLogSystemType] | null;
1934
+ export declare const AuditLogSystemType: {
1935
+ readonly automation: "automation";
1936
+ };
2149
1937
  /**
2150
1938
  * 監査ログ
2151
1939
  */
@@ -2153,14 +1941,23 @@ export interface AuditLog {
2153
1941
  /** UUID */
2154
1942
  id: string;
2155
1943
  /** 操作ユーザー。システムによる操作の場合はnull。 */
2156
- user: AuditLogUser;
1944
+ user: User | null;
2157
1945
  /** 操作種別 */
2158
1946
  action: string;
2159
- /** 操作データ */
1947
+ /**
1948
+ * 操作データ
1949
+ * @nullable
1950
+ */
2160
1951
  data: AuditLogData;
2161
- /** リモートIPアドレス */
2162
- remoteIp: AuditLogRemoteIp;
2163
- /** システムによる操作種別 */
1952
+ /**
1953
+ * リモートIPアドレス
1954
+ * @nullable
1955
+ */
1956
+ remoteIp: string | null;
1957
+ /**
1958
+ * システムによる操作種別
1959
+ * @nullable
1960
+ */
2164
1961
  systemType: AuditLogSystemType;
2165
1962
  /** 作成日時 */
2166
1963
  createdAt: string;
@@ -2171,43 +1968,6 @@ export type WebhookRequestBodyPingData = {
2171
1968
  /** メッセージ。eventTypeがpingの場合に使用されます。 */
2172
1969
  message?: string;
2173
1970
  };
2174
- /**
2175
- * Webhookのリクエストボディ(ping)
2176
- */
2177
- export interface WebhookRequestBodyPing {
2178
- /** イベントの種類 */
2179
- eventType?: string;
2180
- tenant?: WebhookTenant;
2181
- user?: User;
2182
- data?: WebhookRequestBodyPingData;
2183
- }
2184
- export type WebhookRequestBodyTicketData = {
2185
- ticket?: TicketWithStep;
2186
- };
2187
- /**
2188
- * Webhookのリクエストボディ(ticket_*)
2189
- */
2190
- export interface WebhookRequestBodyTicket {
2191
- /** イベントの種類 */
2192
- eventType?: string;
2193
- tenant?: WebhookTenant;
2194
- user?: User;
2195
- data?: WebhookRequestBodyTicketData;
2196
- }
2197
- export type WebhookRequestBodyCommentData = {
2198
- ticket?: TicketWithStep;
2199
- comment?: Comment;
2200
- };
2201
- /**
2202
- * Webhookのリクエストボディ(comment_*)
2203
- */
2204
- export interface WebhookRequestBodyComment {
2205
- /** イベントの種類 */
2206
- eventType?: string;
2207
- tenant?: WebhookTenant;
2208
- user?: User;
2209
- data?: WebhookRequestBodyCommentData;
2210
- }
2211
1971
  /**
2212
1972
  * Webhookのテナント情報
2213
1973
  */
@@ -2220,66 +1980,41 @@ export interface WebhookTenant {
2220
1980
  name?: string;
2221
1981
  }
2222
1982
  /**
2223
- * kintone連携
2224
- */
2225
- export interface KintoneApp {
2226
- /** UUID */
2227
- id: string;
2228
- /** kintoneアプリ名 */
2229
- name: string;
2230
- /** kintoneドメイン */
2231
- domain: string;
2232
- /** kintoneアプリID */
2233
- appId: string;
2234
- }
2235
- export type KintoneAppSettingMappingsItem = {
2236
- /** UUID */
2237
- id: string;
2238
- /** 選択用テーブルで表示する場合true */
2239
- displayInTable: boolean;
2240
- /** kintoneフィールドコード */
2241
- kintoneFieldCode: string;
2242
- /** kintoneフィールドコード */
2243
- kintoneFieldName: string;
2244
- /** kintoneフィールドコード */
2245
- kintoneFieldType: string;
2246
- formField: FormField;
2247
- };
2248
- /**
2249
- * kintone連携設定
1983
+ * Webhookのリクエストボディ(ping)
2250
1984
  */
2251
- export interface KintoneAppSetting {
2252
- /** UUID */
2253
- id: string;
2254
- formField: FormField;
2255
- kintoneApp: KintoneApp;
2256
- /** フィールドへのマッピング設定 */
2257
- mappings: KintoneAppSettingMappingsItem[];
1985
+ export interface WebhookRequestBodyPing {
1986
+ /** イベントの種類 */
1987
+ eventType?: string;
1988
+ tenant?: WebhookTenant;
1989
+ user?: User;
1990
+ data?: WebhookRequestBodyPingData;
2258
1991
  }
1992
+ export type WebhookRequestBodyTicketData = {
1993
+ ticket?: TicketDetail;
1994
+ };
2259
1995
  /**
2260
- * 絞り込み先のフィールドのタイプ
1996
+ * Webhookのリクエストボディ(ticket_*)
2261
1997
  */
2262
- export type GeneralMasterSearchFilterFieldType = (typeof GeneralMasterSearchFilterFieldType)[keyof typeof GeneralMasterSearchFilterFieldType];
2263
- export declare const GeneralMasterSearchFilterFieldType: {
2264
- readonly free_word: "free_word";
2265
- readonly name: "name";
2266
- readonly code: "code";
2267
- readonly description: "description";
2268
- readonly custom_field: "custom_field";
1998
+ export interface WebhookRequestBodyTicket {
1999
+ /** イベントの種類 */
2000
+ eventType?: string;
2001
+ tenant?: WebhookTenant;
2002
+ user?: User;
2003
+ data?: WebhookRequestBodyTicketData;
2004
+ }
2005
+ export type WebhookRequestBodyCommentData = {
2006
+ ticket?: TicketWithStep;
2007
+ comment?: Comment;
2269
2008
  };
2270
2009
  /**
2271
- * fieldType=custom_fieldの場合に絞り込み先の汎用マスタのカスタムフィールドのID(UUID)
2010
+ * Webhookのリクエストボディ(comment_*)
2272
2011
  */
2273
- export type GeneralMasterSearchFilterGeneralMasterFieldId = string | null;
2274
- export interface GeneralMasterSearchFilter {
2275
- /** UUID */
2276
- id: string;
2277
- /** 絞り込みに使う汎用フィールドのID(UUID) */
2278
- filterFormFieldId: string;
2279
- /** 絞り込み先のフィールドのタイプ */
2280
- fieldType: GeneralMasterSearchFilterFieldType;
2281
- /** fieldType=custom_fieldの場合に絞り込み先の汎用マスタのカスタムフィールドのID(UUID) */
2282
- generalMasterFieldId: GeneralMasterSearchFilterGeneralMasterFieldId;
2012
+ export interface WebhookRequestBodyComment {
2013
+ /** イベントの種類 */
2014
+ eventType?: string;
2015
+ tenant?: WebhookTenant;
2016
+ user?: User;
2017
+ data?: WebhookRequestBodyCommentData;
2283
2018
  }
2284
2019
  /**
2285
2020
  * Bad Request
@@ -2300,14 +2035,13 @@ export type NotFoundResponse = ErrorResponse;
2300
2035
  /**
2301
2036
  * バリデーションエラーの詳細
2302
2037
  */
2303
- export type UnprocessableContentResponseAllOfErrors = {
2038
+ export type UnprocessableContentResponseErrors = {
2304
2039
  [key: string]: string[];
2305
2040
  };
2306
- export type UnprocessableContentResponseAllOf = {
2041
+ export type UnprocessableContentResponse = ErrorResponse & {
2307
2042
  /** バリデーションエラーの詳細 */
2308
- errors?: UnprocessableContentResponseAllOfErrors;
2043
+ errors?: UnprocessableContentResponseErrors;
2309
2044
  };
2310
- export type UnprocessableContentResponse = ErrorResponse & UnprocessableContentResponseAllOf;
2311
2045
  export type ListCategoriesParams = {
2312
2046
  /**
2313
2047
  * ページ
@@ -2352,10 +2086,6 @@ export type ListFoldersParams = {
2352
2086
  */
2353
2087
  sortBy?: string;
2354
2088
  };
2355
- /**
2356
- * 親フォルダのID
2357
- */
2358
- export type CreateFolderBodyParentFolderId = string | null;
2359
2089
  export type CreateFolderBody = {
2360
2090
  /** 名前 */
2361
2091
  name: string;
@@ -2363,13 +2093,12 @@ export type CreateFolderBody = {
2363
2093
  code?: string;
2364
2094
  /** フォルダの説明 */
2365
2095
  description?: string;
2366
- /** 親フォルダのID */
2367
- parentFolderId?: CreateFolderBodyParentFolderId;
2096
+ /**
2097
+ * 親フォルダのID
2098
+ * @nullable
2099
+ */
2100
+ parentFolderId?: string | null;
2368
2101
  };
2369
- /**
2370
- * 親フォルダのID
2371
- */
2372
- export type UpdateFolderBodyParentFolderId = string | null;
2373
2102
  export type UpdateFolderBody = {
2374
2103
  /** 名前 */
2375
2104
  name?: string;
@@ -2377,8 +2106,11 @@ export type UpdateFolderBody = {
2377
2106
  code?: string;
2378
2107
  /** フォルダの説明 */
2379
2108
  description?: string;
2380
- /** 親フォルダのID */
2381
- parentFolderId?: UpdateFolderBodyParentFolderId;
2109
+ /**
2110
+ * 親フォルダのID
2111
+ * @nullable
2112
+ */
2113
+ parentFolderId?: string | null;
2382
2114
  };
2383
2115
  export type ListGeneralMastersParams = {
2384
2116
  /**
@@ -2398,18 +2130,6 @@ export type ListGeneralMastersParams = {
2398
2130
  */
2399
2131
  sortBy?: string;
2400
2132
  };
2401
- /**
2402
- * コード。未指定の場合、ランダムな英数字が自動的に設定されます。
2403
- */
2404
- export type CreateGeneralMasterBodyCode = string | null;
2405
- /**
2406
- * 説明
2407
- */
2408
- export type CreateGeneralMasterBodyDescription = string | null;
2409
- /**
2410
- * フィールドの説明
2411
- */
2412
- export type CreateGeneralMasterBodyFieldsItemDescription = string | null;
2413
2133
  /**
2414
2134
  * フィールドの型
2415
2135
  */
@@ -2423,57 +2143,63 @@ export declare const CreateGeneralMasterBodyFieldsItemFieldType: {
2423
2143
  readonly pull_down: "pull_down";
2424
2144
  readonly date: "date";
2425
2145
  };
2426
- /**
2427
- * 選択肢。fieldTypeがcheckboxまたはpull_downのとき必須。
2428
- */
2429
- export type CreateGeneralMasterBodyFieldsItemOptions = string[] | null;
2430
2146
  export type CreateGeneralMasterBodyFieldsItem = {
2431
2147
  /** フィールド名 */
2432
2148
  title: string;
2433
- /** フィールドの説明 */
2434
- description?: CreateGeneralMasterBodyFieldsItemDescription;
2149
+ /**
2150
+ * フィールドの説明
2151
+ * @nullable
2152
+ */
2153
+ description?: string | null;
2435
2154
  /** フィールドのコード */
2436
2155
  code: string;
2437
2156
  /** 入力必須かどうか */
2438
2157
  required: boolean;
2439
2158
  /** フィールドの型 */
2440
2159
  fieldType: CreateGeneralMasterBodyFieldsItemFieldType;
2441
- /** 選択肢。fieldTypeがcheckboxまたはpull_downのとき必須。 */
2442
- options?: CreateGeneralMasterBodyFieldsItemOptions;
2160
+ /**
2161
+ * 選択肢。fieldTypeがcheckboxまたはpull_downのとき必須。
2162
+ * @nullable
2163
+ */
2164
+ options?: string[] | null;
2443
2165
  /** 管理者以外も閲覧可能な場合true */
2444
2166
  visible?: boolean;
2445
2167
  };
2446
2168
  export type CreateGeneralMasterBody = {
2447
2169
  /** 名前 */
2448
2170
  name: string;
2449
- /** コード。未指定の場合、ランダムな英数字が自動的に設定されます。 */
2450
- code?: CreateGeneralMasterBodyCode;
2451
- /** 説明 */
2452
- description?: CreateGeneralMasterBodyDescription;
2171
+ /**
2172
+ * コード。未指定の場合、ランダムな英数字が自動的に設定されます。
2173
+ * @nullable
2174
+ */
2175
+ code?: string | null;
2176
+ /**
2177
+ * 説明
2178
+ * @nullable
2179
+ */
2180
+ description?: string | null;
2453
2181
  /** カスタムフィールドの配列 */
2454
2182
  fields?: CreateGeneralMasterBodyFieldsItem[];
2455
2183
  };
2456
- /**
2457
- * フィールドの説明
2458
- */
2459
- export type UpdateGeneralMasterBodyFieldsItemDescription = string | null;
2460
- /**
2461
- * 選択肢。fieldTypeがcheckboxまたはpull_downのときのみ必須。
2462
- */
2463
- export type UpdateGeneralMasterBodyFieldsItemOptions = string[] | null;
2464
2184
  export type UpdateGeneralMasterBodyFieldsItem = {
2465
2185
  /** フィールド名 */
2466
2186
  title?: string;
2467
- /** フィールドの説明 */
2468
- description?: UpdateGeneralMasterBodyFieldsItemDescription;
2187
+ /**
2188
+ * フィールドの説明
2189
+ * @nullable
2190
+ */
2191
+ description?: string | null;
2469
2192
  /** フィールドのコード */
2470
2193
  code: string;
2471
2194
  /** 入力必須かどうか */
2472
2195
  required?: boolean;
2473
2196
  /** フィールドの型 */
2474
2197
  fieldType?: string;
2475
- /** 選択肢。fieldTypeがcheckboxまたはpull_downのときのみ必須。 */
2476
- options?: UpdateGeneralMasterBodyFieldsItemOptions;
2198
+ /**
2199
+ * 選択肢。fieldTypeがcheckboxまたはpull_downのときのみ必須。
2200
+ * @nullable
2201
+ */
2202
+ options?: string[] | null;
2477
2203
  /** 管理者以外も閲覧可能な場合true */
2478
2204
  visible?: boolean;
2479
2205
  };
@@ -2505,24 +2231,11 @@ export type ListGeneralMasterItemsParams = {
2505
2231
  */
2506
2232
  sortBy?: string;
2507
2233
  };
2508
- /**
2509
- * 有効期限の開始日
2510
- */
2511
- export type CreateGeneralMasterItemBodyStartsOn = string | null;
2512
- /**
2513
- * 有効期限の終了日
2514
- */
2515
- export type CreateGeneralMasterItemBodyEndsOn = string | null;
2516
- export type CreateGeneralMasterItemBodyInputsItemValueOneOf = string | null;
2517
- /**
2518
- * 入力値。カスタムフィールドがcheckboxまたはpull_downの場合は文字列の配列、それ以外は文字列。
2519
- */
2520
- export type CreateGeneralMasterItemBodyInputsItemValue = CreateGeneralMasterItemBodyInputsItemValueOneOf | string[];
2521
2234
  export type CreateGeneralMasterItemBodyInputsItem = {
2522
2235
  /** フィールドのコード */
2523
2236
  code: string;
2524
- /** 入力値。カスタムフィールドがcheckboxまたはpull_downの場合は文字列の配列、それ以外は文字列。 */
2525
- value: CreateGeneralMasterItemBodyInputsItemValue;
2237
+ /** 入力値。カスタムフィールドがcheckboxの場合は文字列の配列、それ以外は文字列。 */
2238
+ value: string | null | string[];
2526
2239
  };
2527
2240
  export type CreateGeneralMasterItemBody = {
2528
2241
  /** コード。未指定の場合、ランダムな英数字が自動的に設定されます。 */
@@ -2531,31 +2244,24 @@ export type CreateGeneralMasterItemBody = {
2531
2244
  name: string;
2532
2245
  /** 説明 */
2533
2246
  description?: string;
2534
- /** 有効期限の開始日 */
2535
- startsOn?: CreateGeneralMasterItemBodyStartsOn;
2536
- /** 有効期限の終了日 */
2537
- endsOn?: CreateGeneralMasterItemBodyEndsOn;
2247
+ /**
2248
+ * 有効期限の開始日
2249
+ * @nullable
2250
+ */
2251
+ startsOn?: string | null;
2252
+ /**
2253
+ * 有効期限の終了日
2254
+ * @nullable
2255
+ */
2256
+ endsOn?: string | null;
2538
2257
  /** カスタムフィールドの入力。必須ではないカスタムフィールドを含む、すべてのカスタムフィールドに対して入力する必要があります。 */
2539
2258
  inputs: CreateGeneralMasterItemBodyInputsItem[];
2540
2259
  };
2541
- /**
2542
- * 有効期限の開始日
2543
- */
2544
- export type UpdateGeneralMasterItemBodyStartsOn = string | null;
2545
- /**
2546
- * 有効期限の終了日
2547
- */
2548
- export type UpdateGeneralMasterItemBodyEndsOn = string | null;
2549
- export type UpdateGeneralMasterItemBodyInputsItemValueOneOf = string | null;
2550
- /**
2551
- * 入力値。カスタムフィールドがcheckboxまたはpull_downの場合文字列の配列、それ以外の場合文字列。
2552
- */
2553
- export type UpdateGeneralMasterItemBodyInputsItemValue = UpdateGeneralMasterItemBodyInputsItemValueOneOf | string[];
2554
2260
  export type UpdateGeneralMasterItemBodyInputsItem = {
2555
2261
  /** フィールドのコード */
2556
2262
  code: string;
2557
- /** 入力値。カスタムフィールドがcheckboxまたはpull_downの場合文字列の配列、それ以外の場合文字列。 */
2558
- value: UpdateGeneralMasterItemBodyInputsItemValue;
2263
+ /** 入力値。カスタムフィールドがcheckboxの場合文字列の配列、それ以外の場合文字列。 */
2264
+ value: string | null | string[];
2559
2265
  };
2560
2266
  export type UpdateGeneralMasterItemBody = {
2561
2267
  /** コード。未指定の場合、ランダムな英数字が自動的に設定されます。 */
@@ -2564,10 +2270,16 @@ export type UpdateGeneralMasterItemBody = {
2564
2270
  name?: string;
2565
2271
  /** 説明 */
2566
2272
  description?: string;
2567
- /** 有効期限の開始日 */
2568
- startsOn?: UpdateGeneralMasterItemBodyStartsOn;
2569
- /** 有効期限の終了日 */
2570
- endsOn?: UpdateGeneralMasterItemBodyEndsOn;
2273
+ /**
2274
+ * 有効期限の開始日
2275
+ * @nullable
2276
+ */
2277
+ startsOn?: string | null;
2278
+ /**
2279
+ * 有効期限の終了日
2280
+ * @nullable
2281
+ */
2282
+ endsOn?: string | null;
2571
2283
  /** カスタムフィールドの入力。必須ではないカスタムフィールドを含む、すべてのカスタムフィールドに対して入力する必要があります。 */
2572
2284
  inputs?: UpdateGeneralMasterItemBodyInputsItem[];
2573
2285
  };
@@ -2736,7 +2448,7 @@ export type ListTicketsParams = {
2736
2448
  /**
2737
2449
  * ステータスの配列
2738
2450
  */
2739
- status?: 'draft' | 'in_progress' | 'rejected' | 'completed' | 'denied' | 'archived' | ListTicketsStatusOneOfItem[];
2451
+ status?: 'draft' | 'in_progress' | 'rejected' | 'completed' | 'denied' | 'archived' | ('draft' | 'in_progress' | 'rejected' | 'completed' | 'denied' | 'archived')[];
2740
2452
  /**
2741
2453
  * サブステータスのUUIDの配列
2742
2454
  */
@@ -2810,15 +2522,6 @@ export type ListTicketsParams = {
2810
2522
  */
2811
2523
  stepTitle?: string;
2812
2524
  };
2813
- export type ListTicketsStatusOneOfItem = (typeof ListTicketsStatusOneOfItem)[keyof typeof ListTicketsStatusOneOfItem];
2814
- export declare const ListTicketsStatusOneOfItem: {
2815
- readonly draft: "draft";
2816
- readonly in_progress: "in_progress";
2817
- readonly rejected: "rejected";
2818
- readonly completed: "completed";
2819
- readonly denied: "denied";
2820
- readonly archived: "archived";
2821
- };
2822
2525
  export type ListTicketsAssigneeStatusItem = (typeof ListTicketsAssigneeStatusItem)[keyof typeof ListTicketsAssigneeStatusItem];
2823
2526
  export declare const ListTicketsAssigneeStatusItem: {
2824
2527
  readonly all: "all";
@@ -2833,146 +2536,79 @@ export declare const CreateTicketBodyStatus: {
2833
2536
  readonly draft: "draft";
2834
2537
  readonly in_progress: "in_progress";
2835
2538
  };
2836
- /**
2837
- * 依頼者となるユーザーのUUID。代理申請の場合のみ指定してください。
2838
- */
2839
- export type CreateTicketBodyProxyClientUserId = string | null;
2840
- /**
2841
- * チケットのタイトル。ワークフローでtitleInputModeがinputのときのみ設定可能です。
2842
- */
2843
- export type CreateTicketBodyTitle = string | null;
2844
- /**
2845
- * 明細セクションのUUID。
2846
- */
2847
- export type CreateTicketBodySlipItemsItemSlipSectionId = string | null;
2848
- /**
2849
- * 明細フィールドのUUID。slipFieldIdまたはslipFieldCodeは片方のみ必須です。
2850
- */
2851
- export type CreateTicketBodySlipItemsItemInputsItemSlipFieldId = string | null;
2852
- /**
2853
- * 明細フィールドのコード。slipFieldIdまたはslipFieldCodeは片方のみ必須です。
2854
- */
2855
- export type CreateTicketBodySlipItemsItemInputsItemSlipFieldCode = string | null;
2856
- export type CreateTicketBodySlipItemsItemInputsItemValueOneOf = string | null;
2857
- /**
2858
- * 入力値。フィールドがチェックボックスタイプのときは配列で指定してください。
2859
- */
2860
- export type CreateTicketBodySlipItemsItemInputsItemValue = CreateTicketBodySlipItemsItemInputsItemValueOneOf | string[];
2861
- export type CreateTicketBodySlipItemsItemInputsItemGeneralMasterItemIdOneOf = string | null;
2862
- /**
2863
- * 汎用マスタアイテムのUUID。フィールドが汎用マスタタイプのときのみ指定してください。
2864
- */
2865
- export type CreateTicketBodySlipItemsItemInputsItemGeneralMasterItemId = CreateTicketBodySlipItemsItemInputsItemGeneralMasterItemIdOneOf | string[];
2866
- export type CreateTicketBodySlipItemsItemInputsItemUserIdOneOf = string | null;
2867
- /**
2868
- * ユーザーUUID。フィールドがユーザータイプのときのみ指定してください。
2869
- */
2870
- export type CreateTicketBodySlipItemsItemInputsItemUserId = CreateTicketBodySlipItemsItemInputsItemUserIdOneOf | string[];
2871
- export type CreateTicketBodySlipItemsItemInputsItemTeamIdOneOf = string | null;
2872
- /**
2873
- * チームUUID。フィールドがチームタイプのときのみ指定してください。
2874
- */
2875
- export type CreateTicketBodySlipItemsItemInputsItemTeamId = CreateTicketBodySlipItemsItemInputsItemTeamIdOneOf | string[];
2876
- export type CreateTicketBodySlipItemsItemInputsItemTicketIdOneOf = string | null;
2877
- /**
2878
- * チケットUUID。フィールドがチケットタイプのときのみ指定してください。
2879
- */
2880
- export type CreateTicketBodySlipItemsItemInputsItemTicketId = CreateTicketBodySlipItemsItemInputsItemTicketIdOneOf | string[];
2881
- /**
2882
- * 添付ファイルの署名済みID。
2883
- フィールドがファイルタイプのときのみ指定してください。
2884
- */
2885
- export type CreateTicketBodySlipItemsItemInputsItemFiles = string[] | null;
2886
2539
  /**
2887
2540
  * 明細アイテム入力
2888
2541
  */
2889
2542
  export type CreateTicketBodySlipItemsItemInputsItem = {
2890
- /** 明細フィールドのUUID。slipFieldIdまたはslipFieldCodeは片方のみ必須です。 */
2891
- slipFieldId?: CreateTicketBodySlipItemsItemInputsItemSlipFieldId;
2892
- /** 明細フィールドのコード。slipFieldIdまたはslipFieldCodeは片方のみ必須です。 */
2893
- slipFieldCode?: CreateTicketBodySlipItemsItemInputsItemSlipFieldCode;
2543
+ /**
2544
+ * 明細フィールドのUUID。slipFieldIdまたはslipFieldCodeは片方のみ必須です。
2545
+ * @nullable
2546
+ */
2547
+ slipFieldId?: string | null;
2548
+ /**
2549
+ * 明細フィールドのコード。slipFieldIdまたはslipFieldCodeは片方のみ必須です。
2550
+ * @nullable
2551
+ */
2552
+ slipFieldCode?: string | null;
2894
2553
  /** 入力値。フィールドがチェックボックスタイプのときは配列で指定してください。 */
2895
- value?: CreateTicketBodySlipItemsItemInputsItemValue;
2554
+ value?: string | null | string[];
2896
2555
  /** 汎用マスタアイテムのUUID。フィールドが汎用マスタタイプのときのみ指定してください。 */
2897
- generalMasterItemId?: CreateTicketBodySlipItemsItemInputsItemGeneralMasterItemId;
2556
+ generalMasterItemId?: string | null | string[];
2898
2557
  /** ユーザーUUID。フィールドがユーザータイプのときのみ指定してください。 */
2899
- userId?: CreateTicketBodySlipItemsItemInputsItemUserId;
2558
+ userId?: string | null | string[];
2900
2559
  /** チームUUID。フィールドがチームタイプのときのみ指定してください。 */
2901
- teamId?: CreateTicketBodySlipItemsItemInputsItemTeamId;
2560
+ teamId?: string | null | string[];
2902
2561
  /** チケットUUID。フィールドがチケットタイプのときのみ指定してください。 */
2903
- ticketId?: CreateTicketBodySlipItemsItemInputsItemTicketId;
2904
- /** 添付ファイルの署名済みID。
2905
- フィールドがファイルタイプのときのみ指定してください。 */
2906
- files?: CreateTicketBodySlipItemsItemInputsItemFiles;
2562
+ ticketId?: string | null | string[];
2563
+ /**
2564
+ * 添付ファイルの署名済みID。
2565
+ フィールドがファイルタイプのときのみ指定してください。
2566
+ * @nullable
2567
+ */
2568
+ files?: string[] | null;
2907
2569
  };
2908
2570
  /**
2909
2571
  * 明細アイテム
2910
2572
  */
2911
2573
  export type CreateTicketBodySlipItemsItem = {
2912
- /** 明細セクションのUUID。 */
2913
- slipSectionId?: CreateTicketBodySlipItemsItemSlipSectionId;
2574
+ /**
2575
+ * 明細セクションのUUID。
2576
+ * @nullable
2577
+ */
2578
+ slipSectionId?: string | null;
2914
2579
  /** 明細アイテム入力の配列 */
2915
2580
  inputs: CreateTicketBodySlipItemsItemInputsItem[];
2916
2581
  };
2917
- /**
2918
- * フォームフィールドのUUID。formFieldIdまたはformFieldCodeは片方のみ必須です。
2919
- */
2920
- export type CreateTicketBodyInputsItemFormFieldId = string | null;
2921
- /**
2922
- * フォームフィールドのコード。formFieldIdまたはformFieldCodeは片方のみ必須です。
2923
- */
2924
- export type CreateTicketBodyInputsItemFormFieldCode = string | null;
2925
- export type CreateTicketBodyInputsItemValueOneOf = string | null;
2926
- /**
2927
- * 入力値。フィールドがチェックボックスタイプのときは配列で指定してください。
2928
- */
2929
- export type CreateTicketBodyInputsItemValue = CreateTicketBodyInputsItemValueOneOf | string[];
2930
- export type CreateTicketBodyInputsItemGeneralMasterItemIdOneOf = string | null;
2931
- /**
2932
- * 汎用マスタアイテムのUUID。フィールドが汎用マスタタイプのときのみ指定してください。
2933
- */
2934
- export type CreateTicketBodyInputsItemGeneralMasterItemId = CreateTicketBodyInputsItemGeneralMasterItemIdOneOf | string[];
2935
- export type CreateTicketBodyInputsItemUserIdOneOf = string | null;
2936
- /**
2937
- * ユーザーUUID。フィールドがユーザータイプのときのみ指定してください。
2938
- */
2939
- export type CreateTicketBodyInputsItemUserId = CreateTicketBodyInputsItemUserIdOneOf | string[];
2940
- export type CreateTicketBodyInputsItemTeamIdOneOf = string | null;
2941
- /**
2942
- * チームUUID。フィールドがチームタイプのときのみ指定してください。
2943
- */
2944
- export type CreateTicketBodyInputsItemTeamId = CreateTicketBodyInputsItemTeamIdOneOf | string[];
2945
- export type CreateTicketBodyInputsItemTicketIdOneOf = string | null;
2946
- /**
2947
- * チケットUUID。フィールドがチケットタイプのときのみ指定してください。
2948
- */
2949
- export type CreateTicketBodyInputsItemTicketId = CreateTicketBodyInputsItemTicketIdOneOf | string[];
2950
- /**
2951
- * 添付ファイルの署名済みID。
2952
- フィールドがファイルタイプのときのみ指定してください。
2953
- */
2954
- export type CreateTicketBodyInputsItemFiles = string[] | null;
2955
2582
  /**
2956
2583
  * フォームの入力
2957
2584
  */
2958
2585
  export type CreateTicketBodyInputsItem = {
2959
- /** フォームフィールドのUUID。formFieldIdまたはformFieldCodeは片方のみ必須です。 */
2960
- formFieldId?: CreateTicketBodyInputsItemFormFieldId;
2961
- /** フォームフィールドのコード。formFieldIdまたはformFieldCodeは片方のみ必須です。 */
2962
- formFieldCode?: CreateTicketBodyInputsItemFormFieldCode;
2586
+ /**
2587
+ * フォームフィールドのUUID。formFieldIdまたはformFieldCodeは片方のみ必須です。
2588
+ * @nullable
2589
+ */
2590
+ formFieldId?: string | null;
2591
+ /**
2592
+ * フォームフィールドのコード。formFieldIdまたはformFieldCodeは片方のみ必須です。
2593
+ * @nullable
2594
+ */
2595
+ formFieldCode?: string | null;
2963
2596
  /** 入力値。フィールドがチェックボックスタイプのときは配列で指定してください。 */
2964
- value?: CreateTicketBodyInputsItemValue;
2597
+ value?: string | null | string[];
2965
2598
  /** 汎用マスタアイテムのUUID。フィールドが汎用マスタタイプのときのみ指定してください。 */
2966
- generalMasterItemId?: CreateTicketBodyInputsItemGeneralMasterItemId;
2599
+ generalMasterItemId?: string | null | string[];
2967
2600
  /** ユーザーUUID。フィールドがユーザータイプのときのみ指定してください。 */
2968
- userId?: CreateTicketBodyInputsItemUserId;
2601
+ userId?: string | null | string[];
2969
2602
  /** チームUUID。フィールドがチームタイプのときのみ指定してください。 */
2970
- teamId?: CreateTicketBodyInputsItemTeamId;
2603
+ teamId?: string | null | string[];
2971
2604
  /** チケットUUID。フィールドがチケットタイプのときのみ指定してください。 */
2972
- ticketId?: CreateTicketBodyInputsItemTicketId;
2973
- /** 添付ファイルの署名済みID。
2974
- フィールドがファイルタイプのときのみ指定してください。 */
2975
- files?: CreateTicketBodyInputsItemFiles;
2605
+ ticketId?: string | null | string[];
2606
+ /**
2607
+ * 添付ファイルの署名済みID。
2608
+ フィールドがファイルタイプのときのみ指定してください。
2609
+ * @nullable
2610
+ */
2611
+ files?: string[] | null;
2976
2612
  };
2977
2613
  /**
2978
2614
  * クラウドサイン書類。ワークフローでクラウドサイン連携が有効な場合のみ指定してください。
@@ -2985,16 +2621,12 @@ export type CreateTicketBodyCloudSignDocument = {
2985
2621
  /** クラウドサインのサンドボックス環境の場合true */
2986
2622
  sandbox: string;
2987
2623
  };
2988
- export type CreateTicketBodyApproversAnyOfItem = {
2624
+ export type CreateTicketBodyApproversItem = {
2989
2625
  /** 承認者を指定する経路ステップのコード */
2990
2626
  routeStepCode: string;
2991
2627
  /** 承認者として指定するユーザーのUUID */
2992
2628
  userId: string[];
2993
2629
  };
2994
- /**
2995
- * 承認タイプが「申請者が指名」の経路ステップの承認者を指定する配列。
2996
- */
2997
- export type CreateTicketBodyApprovers = CreateTicketBodyApproversAnyOfItem[] | null;
2998
2630
  export type CreateTicketBody = {
2999
2631
  /** ステータス。作成ではdraftまたはin_progressのみ選択可能です。 */
3000
2632
  status: CreateTicketBodyStatus;
@@ -3002,18 +2634,27 @@ export type CreateTicketBody = {
3002
2634
  workflowId: string;
3003
2635
  /** 申請チームのUUID */
3004
2636
  authorTeamId: string;
3005
- /** 依頼者となるユーザーのUUID。代理申請の場合のみ指定してください。 */
3006
- proxyClientUserId?: CreateTicketBodyProxyClientUserId;
3007
- /** チケットのタイトル。ワークフローでtitleInputModeがinputのときのみ設定可能です。 */
3008
- title?: CreateTicketBodyTitle;
2637
+ /**
2638
+ * 依頼者となるユーザーのUUID。代理申請の場合のみ指定してください。
2639
+ * @nullable
2640
+ */
2641
+ proxyClientUserId?: string | null;
2642
+ /**
2643
+ * チケットのタイトル。ワークフローでtitleInputModeがinputのときのみ設定可能です。
2644
+ * @nullable
2645
+ */
2646
+ title?: string | null;
3009
2647
  /** 明細アイテムの配列。明細ワークフローの場合、このフィールドは必須です。 */
3010
2648
  slipItems?: CreateTicketBodySlipItemsItem[];
3011
2649
  /** フォームの入力の配列。ワークフローのすべてのフォームフィールドに対応する入力を入れてください。 */
3012
2650
  inputs: CreateTicketBodyInputsItem[];
3013
2651
  /** クラウドサイン書類。ワークフローでクラウドサイン連携が有効な場合のみ指定してください。 */
3014
2652
  cloudSignDocument?: CreateTicketBodyCloudSignDocument;
3015
- /** 承認タイプが「申請者が指名」の経路ステップの承認者を指定する配列。 */
3016
- approvers?: CreateTicketBodyApprovers;
2653
+ /**
2654
+ * 承認タイプが「申請者が指名」の経路ステップの承認者を指定する配列。
2655
+ * @nullable
2656
+ */
2657
+ approvers?: CreateTicketBodyApproversItem[] | null;
3017
2658
  };
3018
2659
  export type ListTasksParams = {
3019
2660
  /**
@@ -3028,8 +2669,8 @@ export type ListTasksParams = {
3028
2669
  */
3029
2670
  perPage?: number;
3030
2671
  /**
3031
- * ソート対象のフィールドと順序。指定可能なフィールド: createdAt, updatedAt
3032
- * @pattern ^(createdAt|updatedAt)(-asc|-desc)?$
2672
+ * ソート対象のフィールドと順序。指定可能なフィールド: createdAt, updatedAt, openedAt, assignedToMeAt
2673
+ * @pattern ^(createdAt|updatedAt|openedAt|assignedToMeAt)(-asc|-desc)?$
3033
2674
  */
3034
2675
  sortBy?: string;
3035
2676
  /**
@@ -3080,6 +2721,14 @@ export type ListTasksParams = {
3080
2721
  * 申請日時の終点
3081
2722
  */
3082
2723
  openedAtEnd?: string;
2724
+ /**
2725
+ * 承認依頼日時の起点
2726
+ */
2727
+ assignedToMeAtStart?: string;
2728
+ /**
2729
+ * 承認依頼日時の終点
2730
+ */
2731
+ assignedToMeAtEnd?: string;
3083
2732
  /**
3084
2733
  * 完了日時の起点
3085
2734
  */
@@ -3129,65 +2778,36 @@ export declare const UpdateTicketBodyStatus: {
3129
2778
  readonly in_progress: "in_progress";
3130
2779
  readonly rejected: "rejected";
3131
2780
  };
3132
- /**
3133
- * 明細フィールドのUUID。slipFieldIdまたはslipFieldCodeは片方のみ必須です。
3134
- */
3135
- export type UpdateTicketBodySlipItemsItemInputsItemSlipFieldId = string | null;
3136
- /**
3137
- * 明細フィールドのコード。slipFieldIdまたはslipFieldCodeは片方のみ必須です。
3138
- */
3139
- export type UpdateTicketBodySlipItemsItemInputsItemSlipFieldCode = string | null;
3140
- export type UpdateTicketBodySlipItemsItemInputsItemValueOneOf = string | null;
3141
- /**
3142
- * 入力値。フィールドがチェックボックスタイプのときは配列で指定してください。
3143
- */
3144
- export type UpdateTicketBodySlipItemsItemInputsItemValue = UpdateTicketBodySlipItemsItemInputsItemValueOneOf | string[];
3145
- export type UpdateTicketBodySlipItemsItemInputsItemGeneralMasterItemIdOneOf = string | null;
3146
- /**
3147
- * 汎用マスタアイテムのUUID。フィールドが汎用マスタタイプのときのみ指定してください。
3148
- */
3149
- export type UpdateTicketBodySlipItemsItemInputsItemGeneralMasterItemId = UpdateTicketBodySlipItemsItemInputsItemGeneralMasterItemIdOneOf | string[];
3150
- export type UpdateTicketBodySlipItemsItemInputsItemUserIdOneOf = string | null;
3151
- /**
3152
- * ユーザーUUID。フィールドがユーザータイプのときのみ指定してください。
3153
- */
3154
- export type UpdateTicketBodySlipItemsItemInputsItemUserId = UpdateTicketBodySlipItemsItemInputsItemUserIdOneOf | string[];
3155
- export type UpdateTicketBodySlipItemsItemInputsItemTeamIdOneOf = string | null;
3156
- /**
3157
- * チームUUID。フィールドがチームタイプのときのみ指定してください。
3158
- */
3159
- export type UpdateTicketBodySlipItemsItemInputsItemTeamId = UpdateTicketBodySlipItemsItemInputsItemTeamIdOneOf | string[];
3160
- export type UpdateTicketBodySlipItemsItemInputsItemTicketIdOneOf = string | null;
3161
- /**
3162
- * チケットUUID。フィールドがチケットタイプのときのみ指定してください。
3163
- */
3164
- export type UpdateTicketBodySlipItemsItemInputsItemTicketId = UpdateTicketBodySlipItemsItemInputsItemTicketIdOneOf | string[];
3165
- /**
3166
- * 添付ファイルの署名済みID。
3167
- フィールドがファイルタイプのときのみ指定してください。
3168
- */
3169
- export type UpdateTicketBodySlipItemsItemInputsItemFiles = string[] | null;
3170
2781
  /**
3171
2782
  * 明細アイテム入力
3172
2783
  */
3173
2784
  export type UpdateTicketBodySlipItemsItemInputsItem = {
3174
- /** 明細フィールドのUUID。slipFieldIdまたはslipFieldCodeは片方のみ必須です。 */
3175
- slipFieldId?: UpdateTicketBodySlipItemsItemInputsItemSlipFieldId;
3176
- /** 明細フィールドのコード。slipFieldIdまたはslipFieldCodeは片方のみ必須です。 */
3177
- slipFieldCode?: UpdateTicketBodySlipItemsItemInputsItemSlipFieldCode;
2785
+ /**
2786
+ * 明細フィールドのUUID。slipFieldIdまたはslipFieldCodeは片方のみ必須です。
2787
+ * @nullable
2788
+ */
2789
+ slipFieldId?: string | null;
2790
+ /**
2791
+ * 明細フィールドのコード。slipFieldIdまたはslipFieldCodeは片方のみ必須です。
2792
+ * @nullable
2793
+ */
2794
+ slipFieldCode?: string | null;
3178
2795
  /** 入力値。フィールドがチェックボックスタイプのときは配列で指定してください。 */
3179
- value?: UpdateTicketBodySlipItemsItemInputsItemValue;
2796
+ value?: string | null | string[];
3180
2797
  /** 汎用マスタアイテムのUUID。フィールドが汎用マスタタイプのときのみ指定してください。 */
3181
- generalMasterItemId?: UpdateTicketBodySlipItemsItemInputsItemGeneralMasterItemId;
2798
+ generalMasterItemId?: string | null | string[];
3182
2799
  /** ユーザーUUID。フィールドがユーザータイプのときのみ指定してください。 */
3183
- userId?: UpdateTicketBodySlipItemsItemInputsItemUserId;
2800
+ userId?: string | null | string[];
3184
2801
  /** チームUUID。フィールドがチームタイプのときのみ指定してください。 */
3185
- teamId?: UpdateTicketBodySlipItemsItemInputsItemTeamId;
2802
+ teamId?: string | null | string[];
3186
2803
  /** チケットUUID。フィールドがチケットタイプのときのみ指定してください。 */
3187
- ticketId?: UpdateTicketBodySlipItemsItemInputsItemTicketId;
3188
- /** 添付ファイルの署名済みID。
3189
- フィールドがファイルタイプのときのみ指定してください。 */
3190
- files?: UpdateTicketBodySlipItemsItemInputsItemFiles;
2804
+ ticketId?: string | null | string[];
2805
+ /**
2806
+ * 添付ファイルの署名済みID。
2807
+ フィールドがファイルタイプのときのみ指定してください。
2808
+ * @nullable
2809
+ */
2810
+ files?: string[] | null;
3191
2811
  };
3192
2812
  /**
3193
2813
  * 明細アイテム
@@ -3196,65 +2816,36 @@ export type UpdateTicketBodySlipItemsItem = {
3196
2816
  /** 明細アイテム入力の配列 */
3197
2817
  inputs: UpdateTicketBodySlipItemsItemInputsItem[];
3198
2818
  };
3199
- /**
3200
- * フォームフィールドのUUID。formFieldIdまたはformFieldCodeは片方のみ必須です。
3201
- */
3202
- export type UpdateTicketBodyInputsItemFormFieldId = string | null;
3203
- /**
3204
- * フォームフィールドのコード。formFieldIdまたはformFieldCodeは片方のみ必須です。
3205
- */
3206
- export type UpdateTicketBodyInputsItemFormFieldCode = string | null;
3207
- export type UpdateTicketBodyInputsItemValueOneOf = string | null;
3208
- /**
3209
- * 入力値。フィールドがチェックボックスタイプのときは配列で指定してください。
3210
- */
3211
- export type UpdateTicketBodyInputsItemValue = UpdateTicketBodyInputsItemValueOneOf | string[];
3212
- export type UpdateTicketBodyInputsItemGeneralMasterItemIdOneOf = string | null;
3213
- /**
3214
- * 汎用マスタアイテムのUUID。フィールドが汎用マスタタイプのときのみ指定してください。
3215
- */
3216
- export type UpdateTicketBodyInputsItemGeneralMasterItemId = UpdateTicketBodyInputsItemGeneralMasterItemIdOneOf | string[];
3217
- export type UpdateTicketBodyInputsItemUserIdOneOf = string | null;
3218
- /**
3219
- * ユーザーUUID。フィールドがユーザータイプのときのみ指定してください。
3220
- */
3221
- export type UpdateTicketBodyInputsItemUserId = UpdateTicketBodyInputsItemUserIdOneOf | string[];
3222
- export type UpdateTicketBodyInputsItemTeamIdOneOf = string | null;
3223
- /**
3224
- * チームUUID。フィールドがチームタイプのときのみ指定してください。
3225
- */
3226
- export type UpdateTicketBodyInputsItemTeamId = UpdateTicketBodyInputsItemTeamIdOneOf | string[];
3227
- export type UpdateTicketBodyInputsItemTicketIdOneOf = string | null;
3228
- /**
3229
- * チケットUUID。フィールドがチケットタイプのときのみ指定してください。
3230
- */
3231
- export type UpdateTicketBodyInputsItemTicketId = UpdateTicketBodyInputsItemTicketIdOneOf | string[];
3232
- /**
3233
- * 添付ファイルの署名済みID。
3234
- フィールドがファイルタイプのときのみ指定してください。
3235
- */
3236
- export type UpdateTicketBodyInputsItemFiles = string[] | null;
3237
2819
  /**
3238
2820
  * フォームの入力
3239
2821
  */
3240
2822
  export type UpdateTicketBodyInputsItem = {
3241
- /** フォームフィールドのUUID。formFieldIdまたはformFieldCodeは片方のみ必須です。 */
3242
- formFieldId?: UpdateTicketBodyInputsItemFormFieldId;
3243
- /** フォームフィールドのコード。formFieldIdまたはformFieldCodeは片方のみ必須です。 */
3244
- formFieldCode?: UpdateTicketBodyInputsItemFormFieldCode;
2823
+ /**
2824
+ * フォームフィールドのUUID。formFieldIdまたはformFieldCodeは片方のみ必須です。
2825
+ * @nullable
2826
+ */
2827
+ formFieldId?: string | null;
2828
+ /**
2829
+ * フォームフィールドのコード。formFieldIdまたはformFieldCodeは片方のみ必須です。
2830
+ * @nullable
2831
+ */
2832
+ formFieldCode?: string | null;
3245
2833
  /** 入力値。フィールドがチェックボックスタイプのときは配列で指定してください。 */
3246
- value?: UpdateTicketBodyInputsItemValue;
2834
+ value?: string | null | string[];
3247
2835
  /** 汎用マスタアイテムのUUID。フィールドが汎用マスタタイプのときのみ指定してください。 */
3248
- generalMasterItemId?: UpdateTicketBodyInputsItemGeneralMasterItemId;
2836
+ generalMasterItemId?: string | null | string[];
3249
2837
  /** ユーザーUUID。フィールドがユーザータイプのときのみ指定してください。 */
3250
- userId?: UpdateTicketBodyInputsItemUserId;
2838
+ userId?: string | null | string[];
3251
2839
  /** チームUUID。フィールドがチームタイプのときのみ指定してください。 */
3252
- teamId?: UpdateTicketBodyInputsItemTeamId;
2840
+ teamId?: string | null | string[];
3253
2841
  /** チケットUUID。フィールドがチケットタイプのときのみ指定してください。 */
3254
- ticketId?: UpdateTicketBodyInputsItemTicketId;
3255
- /** 添付ファイルの署名済みID。
3256
- フィールドがファイルタイプのときのみ指定してください。 */
3257
- files?: UpdateTicketBodyInputsItemFiles;
2842
+ ticketId?: string | null | string[];
2843
+ /**
2844
+ * 添付ファイルの署名済みID。
2845
+ フィールドがファイルタイプのときのみ指定してください。
2846
+ * @nullable
2847
+ */
2848
+ files?: string[] | null;
3258
2849
  };
3259
2850
  /**
3260
2851
  * クラウドサイン書類。ワークフローでクラウドサイン連携が有効な場合のみ指定してください。
@@ -3267,16 +2858,12 @@ export type UpdateTicketBodyCloudSignDocument = {
3267
2858
  /** クラウドサインのサンドボックス環境の場合true */
3268
2859
  sandbox: boolean;
3269
2860
  };
3270
- export type UpdateTicketBodyApproversAnyOfItem = {
2861
+ export type UpdateTicketBodyApproversItem = {
3271
2862
  /** 承認者を指定する経路ステップのコード */
3272
2863
  routeStepCode: string;
3273
2864
  /** 承認者として指定するユーザーのUUID */
3274
2865
  userId: string[];
3275
2866
  };
3276
- /**
3277
- * 承認タイプが「申請者が指名」の経路ステップの承認者を指定する配列。
3278
- */
3279
- export type UpdateTicketBodyApprovers = UpdateTicketBodyApproversAnyOfItem[] | null;
3280
2867
  export type UpdateTicketBody = {
3281
2868
  /** ステータス。更新ではdraft, in_progress, rejectedのみ選択可能です。 */
3282
2869
  status?: UpdateTicketBodyStatus;
@@ -3295,8 +2882,11 @@ export type UpdateTicketBody = {
3295
2882
  inputs?: UpdateTicketBodyInputsItem[];
3296
2883
  /** クラウドサイン書類。ワークフローでクラウドサイン連携が有効な場合のみ指定してください。 */
3297
2884
  cloudSignDocument?: UpdateTicketBodyCloudSignDocument;
3298
- /** 承認タイプが「申請者が指名」の経路ステップの承認者を指定する配列。 */
3299
- approvers?: UpdateTicketBodyApprovers;
2885
+ /**
2886
+ * 承認タイプが「申請者が指名」の経路ステップの承認者を指定する配列。
2887
+ * @nullable
2888
+ */
2889
+ approvers?: UpdateTicketBodyApproversItem[] | null;
3300
2890
  };
3301
2891
  export type RejectTicketBody = {
3302
2892
  /** 差し戻し先のステップ番号(0が起票者、1が最初の承認ステップ) */
@@ -3336,31 +2926,21 @@ export type ListViewersParams = {
3336
2926
  */
3337
2927
  sortBy?: string;
3338
2928
  };
3339
- /**
3340
- * ユーザーのUUID。userIdとteamIdは片方のみ必須です。
3341
- */
3342
- export type CreateViewerBodyUserId = string | string[] | null;
3343
- /**
3344
- * チームのUUID。userIdとteamIdは片方のみ必須です。
3345
- */
3346
- export type CreateViewerBodyTeamId = string | string[] | null;
3347
- /**
3348
- * 役職のUUID。teamId指定時のみ、任意で指定できます。
3349
- */
3350
- export type CreateViewerBodyGradeId = string | null;
3351
- /**
3352
- * 下位のチームを含めるかどうかをteamId指定時のみ指定できます。未指定時はfalse扱いです。
3353
- */
3354
- export type CreateViewerBodyDescendants = boolean | null;
3355
2929
  export type CreateViewerBody = {
3356
2930
  /** ユーザーのUUID。userIdとteamIdは片方のみ必須です。 */
3357
- userId?: CreateViewerBodyUserId;
2931
+ userId?: string | string[] | null;
3358
2932
  /** チームのUUID。userIdとteamIdは片方のみ必須です。 */
3359
- teamId?: CreateViewerBodyTeamId;
3360
- /** 役職のUUID。teamId指定時のみ、任意で指定できます。 */
3361
- gradeId?: CreateViewerBodyGradeId;
3362
- /** 下位のチームを含めるかどうかをteamId指定時のみ指定できます。未指定時はfalse扱いです。 */
3363
- descendants?: CreateViewerBodyDescendants;
2933
+ teamId?: string | string[] | null;
2934
+ /**
2935
+ * 役職のUUID。teamId指定時のみ、任意で指定できます。
2936
+ * @nullable
2937
+ */
2938
+ gradeId?: string | null;
2939
+ /**
2940
+ * 下位のチームを含めるかどうかをteamId指定時のみ指定できます。未指定時はfalse扱いです。
2941
+ * @nullable
2942
+ */
2943
+ descendants?: boolean | null;
3364
2944
  };
3365
2945
  export type ListCommentsParams = {
3366
2946
  /**
@@ -3380,15 +2960,14 @@ export type ListCommentsParams = {
3380
2960
  */
3381
2961
  sortBy?: string;
3382
2962
  };
3383
- /**
3384
- * 添付ファイルの署名済みID
3385
- */
3386
- export type CreateCommentBodyFiles = string[] | null;
3387
2963
  export type CreateCommentBody = {
3388
2964
  /** 本文 */
3389
2965
  body: string;
3390
- /** 添付ファイルの署名済みID */
3391
- files?: CreateCommentBodyFiles;
2966
+ /**
2967
+ * 添付ファイルの署名済みID
2968
+ * @nullable
2969
+ */
2970
+ files?: string[] | null;
3392
2971
  };
3393
2972
  export type UpdateCommentBody = {
3394
2973
  /** 本文 */
@@ -3423,11 +3002,6 @@ export declare const ListUsersStatusItem: {
3423
3002
  readonly suspended: "suspended";
3424
3003
  readonly deactivated: "deactivated";
3425
3004
  };
3426
- /**
3427
- * 社員番号
3428
- * @maxLength 30
3429
- */
3430
- export type CreateUserBodyEmployeeId = string | null;
3431
3005
  export type CreateUserBody = {
3432
3006
  /** メールアドレス */
3433
3007
  email: string;
@@ -3451,14 +3025,10 @@ export type CreateUserBody = {
3451
3025
  /**
3452
3026
  * 社員番号
3453
3027
  * @maxLength 30
3028
+ * @nullable
3454
3029
  */
3455
- employeeId?: CreateUserBodyEmployeeId;
3030
+ employeeId?: string | null;
3456
3031
  };
3457
- /**
3458
- * 社員番号
3459
- * @maxLength 30
3460
- */
3461
- export type UpdateUserBodyEmployeeId = string | null;
3462
3032
  export type UpdateUserBody = {
3463
3033
  /**
3464
3034
  * メールアドレス
@@ -3483,8 +3053,9 @@ export type UpdateUserBody = {
3483
3053
  /**
3484
3054
  * 社員番号
3485
3055
  * @maxLength 30
3056
+ * @nullable
3486
3057
  */
3487
- employeeId?: UpdateUserBodyEmployeeId;
3058
+ employeeId?: string | null;
3488
3059
  };
3489
3060
  export type LookupUserByEmailParams = {
3490
3061
  /**
@@ -3593,23 +3164,21 @@ export type ListProxyApplicantsParams = {
3593
3164
  */
3594
3165
  perPage?: number;
3595
3166
  };
3596
- /**
3597
- * 開始日。nullの場合、すでに開始しているものとして扱います。
3598
- */
3599
- export type CreateProxyApplicantBodyStartsOn = string | null;
3600
- /**
3601
- * 終了日。nullの場合、無期限のものとして扱います。
3602
- */
3603
- export type CreateProxyApplicantBodyEndsOn = string | null;
3604
3167
  export type CreateProxyApplicantBody = {
3605
3168
  /** 代理されるユーザーID */
3606
3169
  userId: string;
3607
3170
  /** 代理するユーザーID */
3608
3171
  proxyUserId: string;
3609
- /** 開始日。nullの場合、すでに開始しているものとして扱います。 */
3610
- startsOn?: CreateProxyApplicantBodyStartsOn;
3611
- /** 終了日。nullの場合、無期限のものとして扱います。 */
3612
- endsOn?: CreateProxyApplicantBodyEndsOn;
3172
+ /**
3173
+ * 開始日。nullの場合、すでに開始しているものとして扱います。
3174
+ * @nullable
3175
+ */
3176
+ startsOn?: string | null;
3177
+ /**
3178
+ * 終了日。nullの場合、無期限のものとして扱います。
3179
+ * @nullable
3180
+ */
3181
+ endsOn?: string | null;
3613
3182
  /** 対象ワークフローのID */
3614
3183
  workflowIds?: string[];
3615
3184
  };
@@ -3626,23 +3195,21 @@ export type ListProxyApproversParams = {
3626
3195
  */
3627
3196
  perPage?: number;
3628
3197
  };
3629
- /**
3630
- * 開始日。nullの場合、すでに始まっているものとして扱います。
3631
- */
3632
- export type CreateProxyApproverBodyStartsOn = string | null;
3633
- /**
3634
- * 終了日。nullの場合、無期限として扱います。
3635
- */
3636
- export type CreateProxyApproverBodyEndsOn = string | null;
3637
3198
  export type CreateProxyApproverBody = {
3638
3199
  /** 代理されるユーザーID */
3639
3200
  userId: string;
3640
3201
  /** 代理するユーザーID */
3641
3202
  proxyUserId: string;
3642
- /** 開始日。nullの場合、すでに始まっているものとして扱います。 */
3643
- startsOn?: CreateProxyApproverBodyStartsOn;
3644
- /** 終了日。nullの場合、無期限として扱います。 */
3645
- endsOn?: CreateProxyApproverBodyEndsOn;
3203
+ /**
3204
+ * 開始日。nullの場合、すでに始まっているものとして扱います。
3205
+ * @nullable
3206
+ */
3207
+ startsOn?: string | null;
3208
+ /**
3209
+ * 終了日。nullの場合、無期限として扱います。
3210
+ * @nullable
3211
+ */
3212
+ endsOn?: string | null;
3646
3213
  /** 対象ワークフローのID */
3647
3214
  workflowIds?: string[];
3648
3215
  };