@kickflow/mcp-server 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/kickflow-api/generated/api-definitions.js +817 -817
- package/dist/kickflow-api/generated/api-definitions.js.map +1 -1
- package/dist/kickflow-api/generated/audit-log/audit-log.zod.d.ts +17 -17
- package/dist/kickflow-api/generated/audit-log/audit-log.zod.js +90 -42
- package/dist/kickflow-api/generated/audit-log/audit-log.zod.js.map +1 -1
- package/dist/kickflow-api/generated/category/category.zod.d.ts +9 -9
- package/dist/kickflow-api/generated/category/category.zod.js +50 -31
- package/dist/kickflow-api/generated/category/category.zod.js.map +1 -1
- package/dist/kickflow-api/generated/comment/comment.zod.d.ts +67 -67
- package/dist/kickflow-api/generated/comment/comment.zod.js +492 -247
- package/dist/kickflow-api/generated/comment/comment.zod.js.map +1 -1
- package/dist/kickflow-api/generated/file/file.zod.d.ts +4 -4
- package/dist/kickflow-api/generated/file/file.zod.js +13 -13
- package/dist/kickflow-api/generated/file/file.zod.js.map +1 -1
- package/dist/kickflow-api/generated/folder/folder.zod.d.ts +56 -56
- package/dist/kickflow-api/generated/folder/folder.zod.js +374 -179
- package/dist/kickflow-api/generated/folder/folder.zod.js.map +1 -1
- package/dist/kickflow-api/generated/general-master/general-master.zod.d.ts +24 -24
- package/dist/kickflow-api/generated/general-master/general-master.zod.js +607 -267
- package/dist/kickflow-api/generated/general-master/general-master.zod.js.map +1 -1
- package/dist/kickflow-api/generated/grade/grade.zod.d.ts +17 -17
- package/dist/kickflow-api/generated/grade/grade.zod.js +157 -59
- package/dist/kickflow-api/generated/grade/grade.zod.js.map +1 -1
- package/dist/kickflow-api/generated/kickflowRESTAPIV1.js +1 -6
- package/dist/kickflow-api/generated/kickflowRESTAPIV1.js.map +1 -1
- package/dist/kickflow-api/generated/kickflowRESTAPIV1.schemas.d.ts +1243 -1679
- package/dist/kickflow-api/generated/kickflowRESTAPIV1.schemas.js +44 -96
- package/dist/kickflow-api/generated/kickflowRESTAPIV1.schemas.js.map +1 -1
- package/dist/kickflow-api/generated/organization-chart/organization-chart.zod.d.ts +20 -20
- package/dist/kickflow-api/generated/organization-chart/organization-chart.zod.js +189 -116
- package/dist/kickflow-api/generated/organization-chart/organization-chart.zod.js.map +1 -1
- package/dist/kickflow-api/generated/proxy-applicant/proxy-applicant.zod.d.ts +82 -82
- package/dist/kickflow-api/generated/proxy-applicant/proxy-applicant.zod.js +670 -286
- package/dist/kickflow-api/generated/proxy-applicant/proxy-applicant.zod.js.map +1 -1
- package/dist/kickflow-api/generated/proxy-approver/proxy-approver.zod.d.ts +82 -82
- package/dist/kickflow-api/generated/proxy-approver/proxy-approver.zod.js +670 -286
- package/dist/kickflow-api/generated/proxy-approver/proxy-approver.zod.js.map +1 -1
- package/dist/kickflow-api/generated/role/role.zod.d.ts +69 -69
- package/dist/kickflow-api/generated/role/role.zod.js +753 -281
- package/dist/kickflow-api/generated/role/role.zod.js.map +1 -1
- package/dist/kickflow-api/generated/route/route.zod.d.ts +91 -91
- package/dist/kickflow-api/generated/route/route.zod.js +795 -312
- package/dist/kickflow-api/generated/route/route.zod.js.map +1 -1
- package/dist/kickflow-api/generated/team/team.zod.d.ts +123 -123
- package/dist/kickflow-api/generated/team/team.zod.js +775 -373
- package/dist/kickflow-api/generated/team/team.zod.js.map +1 -1
- package/dist/kickflow-api/generated/ticket/ticket.zod.d.ts +8808 -8808
- package/dist/kickflow-api/generated/ticket/ticket.zod.js +130997 -41640
- package/dist/kickflow-api/generated/ticket/ticket.zod.js.map +1 -1
- package/dist/kickflow-api/generated/user/user.zod.d.ts +98 -98
- package/dist/kickflow-api/generated/user/user.zod.js +593 -291
- package/dist/kickflow-api/generated/user/user.zod.js.map +1 -1
- package/dist/kickflow-api/generated/workflow/workflow.zod.d.ts +175 -175
- package/dist/kickflow-api/generated/workflow/workflow.zod.js +2384 -810
- package/dist/kickflow-api/generated/workflow/workflow.zod.js.map +1 -1
- package/dist/kickflow-api/schema-registry.js +6 -2
- package/dist/kickflow-api/schema-registry.js.map +1 -1
- package/package.json +7 -7
|
@@ -7,89 +7,169 @@ export const listFoldersQueryPageDefault = 1;
|
|
|
7
7
|
export const listFoldersQueryPerPageDefault = 25;
|
|
8
8
|
export const listFoldersQueryPerPageMax = 100;
|
|
9
9
|
export const listFoldersQuerySortByRegExp = new RegExp('^(createdAt|name|fullName)(-asc|-desc)?$');
|
|
10
|
-
export const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
export const ListFoldersQueryParams = zod.object({
|
|
11
|
+
page: zod
|
|
12
|
+
.number()
|
|
13
|
+
.min(1)
|
|
14
|
+
.default(listFoldersQueryPageDefault)
|
|
15
|
+
.describe('ページ'),
|
|
16
|
+
perPage: zod
|
|
17
|
+
.number()
|
|
18
|
+
.min(1)
|
|
19
|
+
.max(listFoldersQueryPerPageMax)
|
|
20
|
+
.default(listFoldersQueryPerPageDefault)
|
|
21
|
+
.describe('1ページあたりの件数'),
|
|
22
|
+
sortBy: zod
|
|
23
|
+
.string()
|
|
24
|
+
.regex(listFoldersQuerySortByRegExp)
|
|
25
|
+
.optional()
|
|
26
|
+
.describe('ソート対象のフィールドと順序。指定可能なフィールド: createdAt, name, fullName'),
|
|
14
27
|
});
|
|
15
28
|
export const listFoldersResponseNameMax = 300;
|
|
16
29
|
export const listFoldersResponseCodeMax = 100;
|
|
17
30
|
export const listFoldersResponseWorkflowsCountMin = 0;
|
|
18
31
|
export const listFoldersResponseRoutesCountMin = 0;
|
|
19
32
|
export const listFoldersResponsePipelinesCountMin = 0;
|
|
20
|
-
export const
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
33
|
+
export const ListFoldersResponseItem = zod
|
|
34
|
+
.object({
|
|
35
|
+
id: zod.uuid().describe('UUID'),
|
|
36
|
+
name: zod.string().max(listFoldersResponseNameMax).describe('名前'),
|
|
37
|
+
code: zod.string().max(listFoldersResponseCodeMax).describe('コード'),
|
|
38
|
+
description: zod.string().nullish().describe('説明'),
|
|
39
|
+
workflowsCount: zod
|
|
40
|
+
.number()
|
|
41
|
+
.min(listFoldersResponseWorkflowsCountMin)
|
|
42
|
+
.describe('フォルダ内のワークフロー数'),
|
|
43
|
+
routesCount: zod
|
|
44
|
+
.number()
|
|
45
|
+
.min(listFoldersResponseRoutesCountMin)
|
|
46
|
+
.describe('フォルダ内の経路数'),
|
|
47
|
+
pipelinesCount: zod
|
|
48
|
+
.number()
|
|
49
|
+
.min(listFoldersResponsePipelinesCountMin)
|
|
50
|
+
.describe('フォルダ内のパイプライン数'),
|
|
51
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
52
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
53
|
+
})
|
|
54
|
+
.describe('フォルダ');
|
|
55
|
+
export const ListFoldersResponse = zod.array(ListFoldersResponseItem);
|
|
32
56
|
/**
|
|
33
57
|
* フォルダを作成します。
|
|
34
58
|
|
|
35
59
|
このAPIの実行には、ワークフロー関連設定の管理権限が必要です。
|
|
36
60
|
* @summary フォルダを作成
|
|
37
61
|
*/
|
|
38
|
-
export const
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
62
|
+
export const CreateFolderBody = zod.object({
|
|
63
|
+
name: zod.string().describe('名前'),
|
|
64
|
+
code: zod
|
|
65
|
+
.string()
|
|
66
|
+
.optional()
|
|
67
|
+
.describe('コード。未指定の場合、ランダムな英数字が自動的に設定されます。'),
|
|
68
|
+
description: zod.string().optional().describe('フォルダの説明'),
|
|
69
|
+
parentFolderId: zod.string().nullish().describe('親フォルダのID'),
|
|
43
70
|
});
|
|
44
|
-
export const
|
|
45
|
-
export const
|
|
46
|
-
export const
|
|
47
|
-
export const
|
|
48
|
-
export const
|
|
49
|
-
export const
|
|
50
|
-
export const
|
|
51
|
-
export const
|
|
52
|
-
export const
|
|
53
|
-
export const
|
|
54
|
-
export const
|
|
55
|
-
export const
|
|
56
|
-
export const
|
|
57
|
-
export const
|
|
58
|
-
export const
|
|
59
|
-
export const
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
71
|
+
export const createFolderResponseOneNameMax = 300;
|
|
72
|
+
export const createFolderResponseOneCodeMax = 100;
|
|
73
|
+
export const createFolderResponseOneWorkflowsCountMin = 0;
|
|
74
|
+
export const createFolderResponseOneRoutesCountMin = 0;
|
|
75
|
+
export const createFolderResponseOnePipelinesCountMin = 0;
|
|
76
|
+
export const createFolderResponseTwoAncestorsItemNameMax = 300;
|
|
77
|
+
export const createFolderResponseTwoAncestorsItemCodeMax = 100;
|
|
78
|
+
export const createFolderResponseTwoAncestorsItemWorkflowsCountMin = 0;
|
|
79
|
+
export const createFolderResponseTwoAncestorsItemRoutesCountMin = 0;
|
|
80
|
+
export const createFolderResponseTwoAncestorsItemPipelinesCountMin = 0;
|
|
81
|
+
export const createFolderResponseTwoChildrenItemNameMax = 300;
|
|
82
|
+
export const createFolderResponseTwoChildrenItemCodeMax = 100;
|
|
83
|
+
export const createFolderResponseTwoChildrenItemWorkflowsCountMin = 0;
|
|
84
|
+
export const createFolderResponseTwoChildrenItemRoutesCountMin = 0;
|
|
85
|
+
export const createFolderResponseTwoChildrenItemPipelinesCountMin = 0;
|
|
86
|
+
export const CreateFolderResponse = zod
|
|
87
|
+
.object({
|
|
88
|
+
id: zod.uuid().describe('UUID'),
|
|
89
|
+
name: zod.string().max(createFolderResponseOneNameMax).describe('名前'),
|
|
90
|
+
code: zod.string().max(createFolderResponseOneCodeMax).describe('コード'),
|
|
91
|
+
description: zod.string().nullish().describe('説明'),
|
|
92
|
+
workflowsCount: zod
|
|
93
|
+
.number()
|
|
94
|
+
.min(createFolderResponseOneWorkflowsCountMin)
|
|
95
|
+
.describe('フォルダ内のワークフロー数'),
|
|
96
|
+
routesCount: zod
|
|
97
|
+
.number()
|
|
98
|
+
.min(createFolderResponseOneRoutesCountMin)
|
|
99
|
+
.describe('フォルダ内の経路数'),
|
|
100
|
+
pipelinesCount: zod
|
|
101
|
+
.number()
|
|
102
|
+
.min(createFolderResponseOnePipelinesCountMin)
|
|
103
|
+
.describe('フォルダ内のパイプライン数'),
|
|
104
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
105
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
106
|
+
})
|
|
107
|
+
.describe('フォルダ')
|
|
108
|
+
.and(zod.object({
|
|
109
|
+
ancestors: zod
|
|
110
|
+
.array(zod
|
|
111
|
+
.object({
|
|
112
|
+
id: zod.uuid().describe('UUID'),
|
|
113
|
+
name: zod
|
|
114
|
+
.string()
|
|
115
|
+
.max(createFolderResponseTwoAncestorsItemNameMax)
|
|
116
|
+
.describe('名前'),
|
|
117
|
+
code: zod
|
|
118
|
+
.string()
|
|
119
|
+
.max(createFolderResponseTwoAncestorsItemCodeMax)
|
|
120
|
+
.describe('コード'),
|
|
121
|
+
description: zod.string().nullish().describe('説明'),
|
|
122
|
+
workflowsCount: zod
|
|
123
|
+
.number()
|
|
124
|
+
.min(createFolderResponseTwoAncestorsItemWorkflowsCountMin)
|
|
125
|
+
.describe('フォルダ内のワークフロー数'),
|
|
126
|
+
routesCount: zod
|
|
127
|
+
.number()
|
|
128
|
+
.min(createFolderResponseTwoAncestorsItemRoutesCountMin)
|
|
129
|
+
.describe('フォルダ内の経路数'),
|
|
130
|
+
pipelinesCount: zod
|
|
131
|
+
.number()
|
|
132
|
+
.min(createFolderResponseTwoAncestorsItemPipelinesCountMin)
|
|
133
|
+
.describe('フォルダ内のパイプライン数'),
|
|
134
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
135
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
136
|
+
})
|
|
137
|
+
.describe('フォルダ'))
|
|
138
|
+
.optional()
|
|
139
|
+
.describe('親フォルダからルートフォルダまでの配列'),
|
|
140
|
+
children: zod
|
|
141
|
+
.array(zod
|
|
142
|
+
.object({
|
|
143
|
+
id: zod.uuid().describe('UUID'),
|
|
144
|
+
name: zod
|
|
145
|
+
.string()
|
|
146
|
+
.max(createFolderResponseTwoChildrenItemNameMax)
|
|
147
|
+
.describe('名前'),
|
|
148
|
+
code: zod
|
|
149
|
+
.string()
|
|
150
|
+
.max(createFolderResponseTwoChildrenItemCodeMax)
|
|
151
|
+
.describe('コード'),
|
|
152
|
+
description: zod.string().nullish().describe('説明'),
|
|
153
|
+
workflowsCount: zod
|
|
154
|
+
.number()
|
|
155
|
+
.min(createFolderResponseTwoChildrenItemWorkflowsCountMin)
|
|
156
|
+
.describe('フォルダ内のワークフロー数'),
|
|
157
|
+
routesCount: zod
|
|
158
|
+
.number()
|
|
159
|
+
.min(createFolderResponseTwoChildrenItemRoutesCountMin)
|
|
160
|
+
.describe('フォルダ内の経路数'),
|
|
161
|
+
pipelinesCount: zod
|
|
162
|
+
.number()
|
|
163
|
+
.min(createFolderResponseTwoChildrenItemPipelinesCountMin)
|
|
164
|
+
.describe('フォルダ内のパイプライン数'),
|
|
165
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
166
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
167
|
+
})
|
|
168
|
+
.describe('フォルダ'))
|
|
169
|
+
.optional()
|
|
170
|
+
.describe('子フォルダ'),
|
|
171
|
+
}))
|
|
172
|
+
.describe('フォルダの詳細');
|
|
93
173
|
/**
|
|
94
174
|
* フォルダを削除します。
|
|
95
175
|
|
|
@@ -99,8 +179,11 @@ export const createFolderResponse = zod.object({
|
|
|
99
179
|
* @summary フォルダを削除
|
|
100
180
|
*/
|
|
101
181
|
export const deleteFolderPathFolderIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
102
|
-
export const
|
|
103
|
-
|
|
182
|
+
export const DeleteFolderParams = zod.object({
|
|
183
|
+
folderId: zod
|
|
184
|
+
.string()
|
|
185
|
+
.regex(deleteFolderPathFolderIdRegExp)
|
|
186
|
+
.describe('フォルダのUUIDまたはコード'),
|
|
104
187
|
});
|
|
105
188
|
/**
|
|
106
189
|
* フォルダを更新します。
|
|
@@ -109,119 +192,231 @@ export const deleteFolderParams = zod.object({
|
|
|
109
192
|
* @summary フォルダを更新
|
|
110
193
|
*/
|
|
111
194
|
export const updateFolderPathFolderIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
112
|
-
export const
|
|
113
|
-
|
|
195
|
+
export const UpdateFolderParams = zod.object({
|
|
196
|
+
folderId: zod
|
|
197
|
+
.string()
|
|
198
|
+
.regex(updateFolderPathFolderIdRegExp)
|
|
199
|
+
.describe('フォルダのUUIDまたはコード'),
|
|
114
200
|
});
|
|
115
|
-
export const
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
201
|
+
export const UpdateFolderBody = zod.object({
|
|
202
|
+
name: zod.string().optional().describe('名前'),
|
|
203
|
+
code: zod.string().optional().describe('コード'),
|
|
204
|
+
description: zod.string().optional().describe('フォルダの説明'),
|
|
205
|
+
parentFolderId: zod.string().nullish().describe('親フォルダのID'),
|
|
120
206
|
});
|
|
121
|
-
export const
|
|
122
|
-
export const
|
|
123
|
-
export const
|
|
124
|
-
export const
|
|
125
|
-
export const
|
|
126
|
-
export const
|
|
127
|
-
export const
|
|
128
|
-
export const
|
|
129
|
-
export const
|
|
130
|
-
export const
|
|
131
|
-
export const
|
|
132
|
-
export const
|
|
133
|
-
export const
|
|
134
|
-
export const
|
|
135
|
-
export const
|
|
136
|
-
export const
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
207
|
+
export const updateFolderResponseOneNameMax = 300;
|
|
208
|
+
export const updateFolderResponseOneCodeMax = 100;
|
|
209
|
+
export const updateFolderResponseOneWorkflowsCountMin = 0;
|
|
210
|
+
export const updateFolderResponseOneRoutesCountMin = 0;
|
|
211
|
+
export const updateFolderResponseOnePipelinesCountMin = 0;
|
|
212
|
+
export const updateFolderResponseTwoAncestorsItemNameMax = 300;
|
|
213
|
+
export const updateFolderResponseTwoAncestorsItemCodeMax = 100;
|
|
214
|
+
export const updateFolderResponseTwoAncestorsItemWorkflowsCountMin = 0;
|
|
215
|
+
export const updateFolderResponseTwoAncestorsItemRoutesCountMin = 0;
|
|
216
|
+
export const updateFolderResponseTwoAncestorsItemPipelinesCountMin = 0;
|
|
217
|
+
export const updateFolderResponseTwoChildrenItemNameMax = 300;
|
|
218
|
+
export const updateFolderResponseTwoChildrenItemCodeMax = 100;
|
|
219
|
+
export const updateFolderResponseTwoChildrenItemWorkflowsCountMin = 0;
|
|
220
|
+
export const updateFolderResponseTwoChildrenItemRoutesCountMin = 0;
|
|
221
|
+
export const updateFolderResponseTwoChildrenItemPipelinesCountMin = 0;
|
|
222
|
+
export const UpdateFolderResponse = zod
|
|
223
|
+
.object({
|
|
224
|
+
id: zod.uuid().describe('UUID'),
|
|
225
|
+
name: zod.string().max(updateFolderResponseOneNameMax).describe('名前'),
|
|
226
|
+
code: zod.string().max(updateFolderResponseOneCodeMax).describe('コード'),
|
|
227
|
+
description: zod.string().nullish().describe('説明'),
|
|
228
|
+
workflowsCount: zod
|
|
229
|
+
.number()
|
|
230
|
+
.min(updateFolderResponseOneWorkflowsCountMin)
|
|
231
|
+
.describe('フォルダ内のワークフロー数'),
|
|
232
|
+
routesCount: zod
|
|
233
|
+
.number()
|
|
234
|
+
.min(updateFolderResponseOneRoutesCountMin)
|
|
235
|
+
.describe('フォルダ内の経路数'),
|
|
236
|
+
pipelinesCount: zod
|
|
237
|
+
.number()
|
|
238
|
+
.min(updateFolderResponseOnePipelinesCountMin)
|
|
239
|
+
.describe('フォルダ内のパイプライン数'),
|
|
240
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
241
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
242
|
+
})
|
|
243
|
+
.describe('フォルダ')
|
|
244
|
+
.and(zod.object({
|
|
245
|
+
ancestors: zod
|
|
246
|
+
.array(zod
|
|
247
|
+
.object({
|
|
248
|
+
id: zod.uuid().describe('UUID'),
|
|
249
|
+
name: zod
|
|
250
|
+
.string()
|
|
251
|
+
.max(updateFolderResponseTwoAncestorsItemNameMax)
|
|
252
|
+
.describe('名前'),
|
|
253
|
+
code: zod
|
|
254
|
+
.string()
|
|
255
|
+
.max(updateFolderResponseTwoAncestorsItemCodeMax)
|
|
256
|
+
.describe('コード'),
|
|
257
|
+
description: zod.string().nullish().describe('説明'),
|
|
258
|
+
workflowsCount: zod
|
|
259
|
+
.number()
|
|
260
|
+
.min(updateFolderResponseTwoAncestorsItemWorkflowsCountMin)
|
|
261
|
+
.describe('フォルダ内のワークフロー数'),
|
|
262
|
+
routesCount: zod
|
|
263
|
+
.number()
|
|
264
|
+
.min(updateFolderResponseTwoAncestorsItemRoutesCountMin)
|
|
265
|
+
.describe('フォルダ内の経路数'),
|
|
266
|
+
pipelinesCount: zod
|
|
267
|
+
.number()
|
|
268
|
+
.min(updateFolderResponseTwoAncestorsItemPipelinesCountMin)
|
|
269
|
+
.describe('フォルダ内のパイプライン数'),
|
|
270
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
271
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
272
|
+
})
|
|
273
|
+
.describe('フォルダ'))
|
|
274
|
+
.optional()
|
|
275
|
+
.describe('親フォルダからルートフォルダまでの配列'),
|
|
276
|
+
children: zod
|
|
277
|
+
.array(zod
|
|
278
|
+
.object({
|
|
279
|
+
id: zod.uuid().describe('UUID'),
|
|
280
|
+
name: zod
|
|
281
|
+
.string()
|
|
282
|
+
.max(updateFolderResponseTwoChildrenItemNameMax)
|
|
283
|
+
.describe('名前'),
|
|
284
|
+
code: zod
|
|
285
|
+
.string()
|
|
286
|
+
.max(updateFolderResponseTwoChildrenItemCodeMax)
|
|
287
|
+
.describe('コード'),
|
|
288
|
+
description: zod.string().nullish().describe('説明'),
|
|
289
|
+
workflowsCount: zod
|
|
290
|
+
.number()
|
|
291
|
+
.min(updateFolderResponseTwoChildrenItemWorkflowsCountMin)
|
|
292
|
+
.describe('フォルダ内のワークフロー数'),
|
|
293
|
+
routesCount: zod
|
|
294
|
+
.number()
|
|
295
|
+
.min(updateFolderResponseTwoChildrenItemRoutesCountMin)
|
|
296
|
+
.describe('フォルダ内の経路数'),
|
|
297
|
+
pipelinesCount: zod
|
|
298
|
+
.number()
|
|
299
|
+
.min(updateFolderResponseTwoChildrenItemPipelinesCountMin)
|
|
300
|
+
.describe('フォルダ内のパイプライン数'),
|
|
301
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
302
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
303
|
+
})
|
|
304
|
+
.describe('フォルダ'))
|
|
305
|
+
.optional()
|
|
306
|
+
.describe('子フォルダ'),
|
|
307
|
+
}))
|
|
308
|
+
.describe('フォルダの詳細');
|
|
170
309
|
/**
|
|
171
310
|
* フォルダを一件取得します。
|
|
172
311
|
* @summary フォルダを取得
|
|
173
312
|
*/
|
|
174
313
|
export const getFolderPathFolderIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
175
|
-
export const
|
|
176
|
-
|
|
314
|
+
export const GetFolderParams = zod.object({
|
|
315
|
+
folderId: zod
|
|
316
|
+
.string()
|
|
317
|
+
.regex(getFolderPathFolderIdRegExp)
|
|
318
|
+
.describe('フォルダのUUIDまたはコード'),
|
|
177
319
|
});
|
|
178
|
-
export const
|
|
179
|
-
export const
|
|
180
|
-
export const
|
|
181
|
-
export const
|
|
182
|
-
export const
|
|
183
|
-
export const
|
|
184
|
-
export const
|
|
185
|
-
export const
|
|
186
|
-
export const
|
|
187
|
-
export const
|
|
188
|
-
export const
|
|
189
|
-
export const
|
|
190
|
-
export const
|
|
191
|
-
export const
|
|
192
|
-
export const
|
|
193
|
-
export const
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
320
|
+
export const getFolderResponseOneNameMax = 300;
|
|
321
|
+
export const getFolderResponseOneCodeMax = 100;
|
|
322
|
+
export const getFolderResponseOneWorkflowsCountMin = 0;
|
|
323
|
+
export const getFolderResponseOneRoutesCountMin = 0;
|
|
324
|
+
export const getFolderResponseOnePipelinesCountMin = 0;
|
|
325
|
+
export const getFolderResponseTwoAncestorsItemNameMax = 300;
|
|
326
|
+
export const getFolderResponseTwoAncestorsItemCodeMax = 100;
|
|
327
|
+
export const getFolderResponseTwoAncestorsItemWorkflowsCountMin = 0;
|
|
328
|
+
export const getFolderResponseTwoAncestorsItemRoutesCountMin = 0;
|
|
329
|
+
export const getFolderResponseTwoAncestorsItemPipelinesCountMin = 0;
|
|
330
|
+
export const getFolderResponseTwoChildrenItemNameMax = 300;
|
|
331
|
+
export const getFolderResponseTwoChildrenItemCodeMax = 100;
|
|
332
|
+
export const getFolderResponseTwoChildrenItemWorkflowsCountMin = 0;
|
|
333
|
+
export const getFolderResponseTwoChildrenItemRoutesCountMin = 0;
|
|
334
|
+
export const getFolderResponseTwoChildrenItemPipelinesCountMin = 0;
|
|
335
|
+
export const GetFolderResponse = zod
|
|
336
|
+
.object({
|
|
337
|
+
id: zod.uuid().describe('UUID'),
|
|
338
|
+
name: zod.string().max(getFolderResponseOneNameMax).describe('名前'),
|
|
339
|
+
code: zod.string().max(getFolderResponseOneCodeMax).describe('コード'),
|
|
340
|
+
description: zod.string().nullish().describe('説明'),
|
|
341
|
+
workflowsCount: zod
|
|
342
|
+
.number()
|
|
343
|
+
.min(getFolderResponseOneWorkflowsCountMin)
|
|
344
|
+
.describe('フォルダ内のワークフロー数'),
|
|
345
|
+
routesCount: zod
|
|
346
|
+
.number()
|
|
347
|
+
.min(getFolderResponseOneRoutesCountMin)
|
|
348
|
+
.describe('フォルダ内の経路数'),
|
|
349
|
+
pipelinesCount: zod
|
|
350
|
+
.number()
|
|
351
|
+
.min(getFolderResponseOnePipelinesCountMin)
|
|
352
|
+
.describe('フォルダ内のパイプライン数'),
|
|
353
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
354
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
355
|
+
})
|
|
356
|
+
.describe('フォルダ')
|
|
357
|
+
.and(zod.object({
|
|
358
|
+
ancestors: zod
|
|
359
|
+
.array(zod
|
|
360
|
+
.object({
|
|
361
|
+
id: zod.uuid().describe('UUID'),
|
|
362
|
+
name: zod
|
|
363
|
+
.string()
|
|
364
|
+
.max(getFolderResponseTwoAncestorsItemNameMax)
|
|
365
|
+
.describe('名前'),
|
|
366
|
+
code: zod
|
|
367
|
+
.string()
|
|
368
|
+
.max(getFolderResponseTwoAncestorsItemCodeMax)
|
|
369
|
+
.describe('コード'),
|
|
370
|
+
description: zod.string().nullish().describe('説明'),
|
|
371
|
+
workflowsCount: zod
|
|
372
|
+
.number()
|
|
373
|
+
.min(getFolderResponseTwoAncestorsItemWorkflowsCountMin)
|
|
374
|
+
.describe('フォルダ内のワークフロー数'),
|
|
375
|
+
routesCount: zod
|
|
376
|
+
.number()
|
|
377
|
+
.min(getFolderResponseTwoAncestorsItemRoutesCountMin)
|
|
378
|
+
.describe('フォルダ内の経路数'),
|
|
379
|
+
pipelinesCount: zod
|
|
380
|
+
.number()
|
|
381
|
+
.min(getFolderResponseTwoAncestorsItemPipelinesCountMin)
|
|
382
|
+
.describe('フォルダ内のパイプライン数'),
|
|
383
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
384
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
385
|
+
})
|
|
386
|
+
.describe('フォルダ'))
|
|
387
|
+
.optional()
|
|
388
|
+
.describe('親フォルダからルートフォルダまでの配列'),
|
|
389
|
+
children: zod
|
|
390
|
+
.array(zod
|
|
391
|
+
.object({
|
|
392
|
+
id: zod.uuid().describe('UUID'),
|
|
393
|
+
name: zod
|
|
394
|
+
.string()
|
|
395
|
+
.max(getFolderResponseTwoChildrenItemNameMax)
|
|
396
|
+
.describe('名前'),
|
|
397
|
+
code: zod
|
|
398
|
+
.string()
|
|
399
|
+
.max(getFolderResponseTwoChildrenItemCodeMax)
|
|
400
|
+
.describe('コード'),
|
|
401
|
+
description: zod.string().nullish().describe('説明'),
|
|
402
|
+
workflowsCount: zod
|
|
403
|
+
.number()
|
|
404
|
+
.min(getFolderResponseTwoChildrenItemWorkflowsCountMin)
|
|
405
|
+
.describe('フォルダ内のワークフロー数'),
|
|
406
|
+
routesCount: zod
|
|
407
|
+
.number()
|
|
408
|
+
.min(getFolderResponseTwoChildrenItemRoutesCountMin)
|
|
409
|
+
.describe('フォルダ内の経路数'),
|
|
410
|
+
pipelinesCount: zod
|
|
411
|
+
.number()
|
|
412
|
+
.min(getFolderResponseTwoChildrenItemPipelinesCountMin)
|
|
413
|
+
.describe('フォルダ内のパイプライン数'),
|
|
414
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
415
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
416
|
+
})
|
|
417
|
+
.describe('フォルダ'))
|
|
418
|
+
.optional()
|
|
419
|
+
.describe('子フォルダ'),
|
|
420
|
+
}))
|
|
421
|
+
.describe('フォルダの詳細');
|
|
227
422
|
//# sourceMappingURL=folder.zod.js.map
|