@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
|
@@ -9,80 +9,171 @@ export const listGeneralMastersQueryPageDefault = 1;
|
|
|
9
9
|
export const listGeneralMastersQueryPerPageDefault = 25;
|
|
10
10
|
export const listGeneralMastersQueryPerPageMax = 100;
|
|
11
11
|
export const listGeneralMastersQuerySortByRegExp = new RegExp('^(createdAt|code|name)(-asc|-desc)?$');
|
|
12
|
-
export const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
export const ListGeneralMastersQueryParams = zod.object({
|
|
13
|
+
page: zod
|
|
14
|
+
.number()
|
|
15
|
+
.min(1)
|
|
16
|
+
.default(listGeneralMastersQueryPageDefault)
|
|
17
|
+
.describe('ページ'),
|
|
18
|
+
perPage: zod
|
|
19
|
+
.number()
|
|
20
|
+
.min(1)
|
|
21
|
+
.max(listGeneralMastersQueryPerPageMax)
|
|
22
|
+
.default(listGeneralMastersQueryPerPageDefault)
|
|
23
|
+
.describe('1ページあたりの件数'),
|
|
24
|
+
sortBy: zod
|
|
25
|
+
.string()
|
|
26
|
+
.regex(listGeneralMastersQuerySortByRegExp)
|
|
27
|
+
.optional()
|
|
28
|
+
.describe('ソート対象のフィールドと順序。指定可能なフィールド: createdAt, code, name'),
|
|
16
29
|
});
|
|
17
30
|
export const listGeneralMastersResponseCodeMax = 100;
|
|
18
31
|
export const listGeneralMastersResponseNameMax = 300;
|
|
19
32
|
export const listGeneralMastersResponseFieldsItemTitleMax = 300;
|
|
20
33
|
export const listGeneralMastersResponseFieldsItemCodeMax = 100;
|
|
21
|
-
export const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
34
|
+
export const ListGeneralMastersResponseItem = zod
|
|
35
|
+
.object({
|
|
36
|
+
id: zod.uuid().describe('UUID'),
|
|
37
|
+
code: zod
|
|
38
|
+
.string()
|
|
39
|
+
.max(listGeneralMastersResponseCodeMax)
|
|
40
|
+
.describe('コード'),
|
|
41
|
+
name: zod.string().max(listGeneralMastersResponseNameMax).describe('名前'),
|
|
42
|
+
description: zod.string().nullable().describe('説明'),
|
|
43
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
44
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
45
|
+
fields: zod
|
|
46
|
+
.array(zod
|
|
47
|
+
.object({
|
|
48
|
+
id: zod.uuid().describe('UUID'),
|
|
49
|
+
title: zod
|
|
50
|
+
.string()
|
|
51
|
+
.max(listGeneralMastersResponseFieldsItemTitleMax)
|
|
52
|
+
.describe('フィールド名'),
|
|
53
|
+
description: zod.string().nullable().describe('フィールドの説明'),
|
|
54
|
+
code: zod
|
|
55
|
+
.string()
|
|
56
|
+
.max(listGeneralMastersResponseFieldsItemCodeMax)
|
|
57
|
+
.describe('フィールドのコード'),
|
|
58
|
+
fieldType: zod
|
|
59
|
+
.enum([
|
|
60
|
+
'text',
|
|
61
|
+
'text_long',
|
|
62
|
+
'number',
|
|
63
|
+
'integer',
|
|
64
|
+
'checkbox',
|
|
65
|
+
'pull_down',
|
|
66
|
+
'date',
|
|
67
|
+
])
|
|
68
|
+
.describe('フィールドの型'),
|
|
69
|
+
required: zod.boolean().describe('必須項目かどうか'),
|
|
70
|
+
visible: zod.boolean().describe('管理者以外も閲覧可能な場合true'),
|
|
71
|
+
options: zod
|
|
72
|
+
.array(zod.string())
|
|
73
|
+
.nullable()
|
|
74
|
+
.describe('選択肢。fieldTypeがcheckboxまたはpull_downのときのみ。'),
|
|
75
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
76
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
77
|
+
})
|
|
78
|
+
.describe('汎用マスタのカスタムフィールド'))
|
|
79
|
+
.describe('カスタムフィールドの配列'),
|
|
80
|
+
})
|
|
81
|
+
.describe('汎用マスタ');
|
|
82
|
+
export const ListGeneralMastersResponse = zod.array(ListGeneralMastersResponseItem);
|
|
42
83
|
/**
|
|
43
84
|
* 汎用マスタを作成します。
|
|
44
85
|
|
|
45
86
|
このAPIの実行には、汎用マスタの管理権限が必要です。
|
|
46
87
|
* @summary 汎用マスタを作成
|
|
47
88
|
*/
|
|
48
|
-
export const
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
89
|
+
export const CreateGeneralMasterBody = zod.object({
|
|
90
|
+
name: zod.string().describe('名前'),
|
|
91
|
+
code: zod
|
|
92
|
+
.string()
|
|
93
|
+
.nullish()
|
|
94
|
+
.describe('コード。未指定の場合、ランダムな英数字が自動的に設定されます。'),
|
|
95
|
+
description: zod.string().nullish().describe('説明'),
|
|
96
|
+
fields: zod
|
|
97
|
+
.array(zod.object({
|
|
98
|
+
title: zod.string().describe('フィールド名'),
|
|
99
|
+
description: zod.string().nullish().describe('フィールドの説明'),
|
|
100
|
+
code: zod.string().describe('フィールドのコード'),
|
|
101
|
+
required: zod.boolean().describe('入力必須かどうか'),
|
|
102
|
+
fieldType: zod
|
|
103
|
+
.enum([
|
|
104
|
+
'text',
|
|
105
|
+
'text_long',
|
|
106
|
+
'number',
|
|
107
|
+
'integer',
|
|
108
|
+
'checkbox',
|
|
109
|
+
'pull_down',
|
|
110
|
+
'date',
|
|
111
|
+
])
|
|
112
|
+
.describe('フィールドの型'),
|
|
113
|
+
options: zod
|
|
114
|
+
.array(zod.string())
|
|
115
|
+
.nullish()
|
|
116
|
+
.describe('選択肢。fieldTypeがcheckboxまたはpull_downのとき必須。'),
|
|
117
|
+
visible: zod
|
|
118
|
+
.boolean()
|
|
119
|
+
.optional()
|
|
120
|
+
.describe('管理者以外も閲覧可能な場合true'),
|
|
121
|
+
}))
|
|
122
|
+
.optional()
|
|
123
|
+
.describe('カスタムフィールドの配列'),
|
|
61
124
|
});
|
|
62
125
|
export const createGeneralMasterResponseCodeMax = 100;
|
|
63
126
|
export const createGeneralMasterResponseNameMax = 300;
|
|
64
127
|
export const createGeneralMasterResponseFieldsItemTitleMax = 300;
|
|
65
128
|
export const createGeneralMasterResponseFieldsItemCodeMax = 100;
|
|
66
|
-
export const
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
129
|
+
export const CreateGeneralMasterResponse = zod
|
|
130
|
+
.object({
|
|
131
|
+
id: zod.uuid().describe('UUID'),
|
|
132
|
+
code: zod
|
|
133
|
+
.string()
|
|
134
|
+
.max(createGeneralMasterResponseCodeMax)
|
|
135
|
+
.describe('コード'),
|
|
136
|
+
name: zod.string().max(createGeneralMasterResponseNameMax).describe('名前'),
|
|
137
|
+
description: zod.string().nullable().describe('説明'),
|
|
138
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
139
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
140
|
+
fields: zod
|
|
141
|
+
.array(zod
|
|
142
|
+
.object({
|
|
143
|
+
id: zod.uuid().describe('UUID'),
|
|
144
|
+
title: zod
|
|
145
|
+
.string()
|
|
146
|
+
.max(createGeneralMasterResponseFieldsItemTitleMax)
|
|
147
|
+
.describe('フィールド名'),
|
|
148
|
+
description: zod.string().nullable().describe('フィールドの説明'),
|
|
149
|
+
code: zod
|
|
150
|
+
.string()
|
|
151
|
+
.max(createGeneralMasterResponseFieldsItemCodeMax)
|
|
152
|
+
.describe('フィールドのコード'),
|
|
153
|
+
fieldType: zod
|
|
154
|
+
.enum([
|
|
155
|
+
'text',
|
|
156
|
+
'text_long',
|
|
157
|
+
'number',
|
|
158
|
+
'integer',
|
|
159
|
+
'checkbox',
|
|
160
|
+
'pull_down',
|
|
161
|
+
'date',
|
|
162
|
+
])
|
|
163
|
+
.describe('フィールドの型'),
|
|
164
|
+
required: zod.boolean().describe('必須項目かどうか'),
|
|
165
|
+
visible: zod.boolean().describe('管理者以外も閲覧可能な場合true'),
|
|
166
|
+
options: zod
|
|
167
|
+
.array(zod.string())
|
|
168
|
+
.nullable()
|
|
169
|
+
.describe('選択肢。fieldTypeがcheckboxまたはpull_downのときのみ。'),
|
|
170
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
171
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
172
|
+
})
|
|
173
|
+
.describe('汎用マスタのカスタムフィールド'))
|
|
174
|
+
.describe('カスタムフィールドの配列'),
|
|
175
|
+
})
|
|
176
|
+
.describe('汎用マスタ');
|
|
86
177
|
/**
|
|
87
178
|
* 汎用マスタを一件取得します。
|
|
88
179
|
|
|
@@ -90,33 +181,61 @@ export const createGeneralMasterResponse = zod.object({
|
|
|
90
181
|
* @summary 汎用マスタを取得
|
|
91
182
|
*/
|
|
92
183
|
export const getGeneralMasterPathGeneralMasterIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
93
|
-
export const
|
|
94
|
-
|
|
184
|
+
export const GetGeneralMasterParams = zod.object({
|
|
185
|
+
generalMasterId: zod
|
|
186
|
+
.string()
|
|
187
|
+
.regex(getGeneralMasterPathGeneralMasterIdRegExp)
|
|
188
|
+
.describe('汎用マスタのUUIDまたはコード'),
|
|
95
189
|
});
|
|
96
190
|
export const getGeneralMasterResponseCodeMax = 100;
|
|
97
191
|
export const getGeneralMasterResponseNameMax = 300;
|
|
98
192
|
export const getGeneralMasterResponseFieldsItemTitleMax = 300;
|
|
99
193
|
export const getGeneralMasterResponseFieldsItemCodeMax = 100;
|
|
100
|
-
export const
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
194
|
+
export const GetGeneralMasterResponse = zod
|
|
195
|
+
.object({
|
|
196
|
+
id: zod.uuid().describe('UUID'),
|
|
197
|
+
code: zod.string().max(getGeneralMasterResponseCodeMax).describe('コード'),
|
|
198
|
+
name: zod.string().max(getGeneralMasterResponseNameMax).describe('名前'),
|
|
199
|
+
description: zod.string().nullable().describe('説明'),
|
|
200
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
201
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
202
|
+
fields: zod
|
|
203
|
+
.array(zod
|
|
204
|
+
.object({
|
|
205
|
+
id: zod.uuid().describe('UUID'),
|
|
206
|
+
title: zod
|
|
207
|
+
.string()
|
|
208
|
+
.max(getGeneralMasterResponseFieldsItemTitleMax)
|
|
209
|
+
.describe('フィールド名'),
|
|
210
|
+
description: zod.string().nullable().describe('フィールドの説明'),
|
|
211
|
+
code: zod
|
|
212
|
+
.string()
|
|
213
|
+
.max(getGeneralMasterResponseFieldsItemCodeMax)
|
|
214
|
+
.describe('フィールドのコード'),
|
|
215
|
+
fieldType: zod
|
|
216
|
+
.enum([
|
|
217
|
+
'text',
|
|
218
|
+
'text_long',
|
|
219
|
+
'number',
|
|
220
|
+
'integer',
|
|
221
|
+
'checkbox',
|
|
222
|
+
'pull_down',
|
|
223
|
+
'date',
|
|
224
|
+
])
|
|
225
|
+
.describe('フィールドの型'),
|
|
226
|
+
required: zod.boolean().describe('必須項目かどうか'),
|
|
227
|
+
visible: zod.boolean().describe('管理者以外も閲覧可能な場合true'),
|
|
228
|
+
options: zod
|
|
229
|
+
.array(zod.string())
|
|
230
|
+
.nullable()
|
|
231
|
+
.describe('選択肢。fieldTypeがcheckboxまたはpull_downのときのみ。'),
|
|
232
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
233
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
234
|
+
})
|
|
235
|
+
.describe('汎用マスタのカスタムフィールド'))
|
|
236
|
+
.describe('カスタムフィールドの配列'),
|
|
237
|
+
})
|
|
238
|
+
.describe('汎用マスタ');
|
|
120
239
|
/**
|
|
121
240
|
* 汎用マスタを更新します。
|
|
122
241
|
|
|
@@ -124,47 +243,90 @@ export const getGeneralMasterResponse = zod.object({
|
|
|
124
243
|
* @summary 汎用マスタを更新
|
|
125
244
|
*/
|
|
126
245
|
export const updateGeneralMasterPathGeneralMasterIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
127
|
-
export const
|
|
128
|
-
|
|
246
|
+
export const UpdateGeneralMasterParams = zod.object({
|
|
247
|
+
generalMasterId: zod
|
|
248
|
+
.string()
|
|
249
|
+
.regex(updateGeneralMasterPathGeneralMasterIdRegExp)
|
|
250
|
+
.describe('汎用マスタのUUIDまたはコード'),
|
|
129
251
|
});
|
|
130
|
-
export const
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
252
|
+
export const UpdateGeneralMasterBody = zod.object({
|
|
253
|
+
code: zod
|
|
254
|
+
.string()
|
|
255
|
+
.optional()
|
|
256
|
+
.describe('コード。未指定の場合、ランダムな英数字が自動的に設定されます。'),
|
|
257
|
+
name: zod.string().optional().describe('名前'),
|
|
258
|
+
description: zod.string().optional().describe('説明'),
|
|
259
|
+
fields: zod
|
|
260
|
+
.array(zod.object({
|
|
261
|
+
title: zod.string().optional().describe('フィールド名'),
|
|
262
|
+
description: zod.string().nullish().describe('フィールドの説明'),
|
|
263
|
+
code: zod.string().describe('フィールドのコード'),
|
|
264
|
+
required: zod.boolean().optional().describe('入力必須かどうか'),
|
|
265
|
+
fieldType: zod.string().optional().describe('フィールドの型'),
|
|
266
|
+
options: zod
|
|
267
|
+
.array(zod.string())
|
|
268
|
+
.nullish()
|
|
269
|
+
.describe('選択肢。fieldTypeがcheckboxまたはpull_downのときのみ必須。'),
|
|
270
|
+
visible: zod
|
|
271
|
+
.boolean()
|
|
272
|
+
.optional()
|
|
273
|
+
.describe('管理者以外も閲覧可能な場合true'),
|
|
274
|
+
}))
|
|
275
|
+
.optional()
|
|
276
|
+
.describe('カスタムフィールドの配列'),
|
|
143
277
|
});
|
|
144
278
|
export const updateGeneralMasterResponseCodeMax = 100;
|
|
145
279
|
export const updateGeneralMasterResponseNameMax = 300;
|
|
146
280
|
export const updateGeneralMasterResponseFieldsItemTitleMax = 300;
|
|
147
281
|
export const updateGeneralMasterResponseFieldsItemCodeMax = 100;
|
|
148
|
-
export const
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
282
|
+
export const UpdateGeneralMasterResponse = zod
|
|
283
|
+
.object({
|
|
284
|
+
id: zod.uuid().describe('UUID'),
|
|
285
|
+
code: zod
|
|
286
|
+
.string()
|
|
287
|
+
.max(updateGeneralMasterResponseCodeMax)
|
|
288
|
+
.describe('コード'),
|
|
289
|
+
name: zod.string().max(updateGeneralMasterResponseNameMax).describe('名前'),
|
|
290
|
+
description: zod.string().nullable().describe('説明'),
|
|
291
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
292
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
293
|
+
fields: zod
|
|
294
|
+
.array(zod
|
|
295
|
+
.object({
|
|
296
|
+
id: zod.uuid().describe('UUID'),
|
|
297
|
+
title: zod
|
|
298
|
+
.string()
|
|
299
|
+
.max(updateGeneralMasterResponseFieldsItemTitleMax)
|
|
300
|
+
.describe('フィールド名'),
|
|
301
|
+
description: zod.string().nullable().describe('フィールドの説明'),
|
|
302
|
+
code: zod
|
|
303
|
+
.string()
|
|
304
|
+
.max(updateGeneralMasterResponseFieldsItemCodeMax)
|
|
305
|
+
.describe('フィールドのコード'),
|
|
306
|
+
fieldType: zod
|
|
307
|
+
.enum([
|
|
308
|
+
'text',
|
|
309
|
+
'text_long',
|
|
310
|
+
'number',
|
|
311
|
+
'integer',
|
|
312
|
+
'checkbox',
|
|
313
|
+
'pull_down',
|
|
314
|
+
'date',
|
|
315
|
+
])
|
|
316
|
+
.describe('フィールドの型'),
|
|
317
|
+
required: zod.boolean().describe('必須項目かどうか'),
|
|
318
|
+
visible: zod.boolean().describe('管理者以外も閲覧可能な場合true'),
|
|
319
|
+
options: zod
|
|
320
|
+
.array(zod.string())
|
|
321
|
+
.nullable()
|
|
322
|
+
.describe('選択肢。fieldTypeがcheckboxまたはpull_downのときのみ。'),
|
|
323
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
324
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
325
|
+
})
|
|
326
|
+
.describe('汎用マスタのカスタムフィールド'))
|
|
327
|
+
.describe('カスタムフィールドの配列'),
|
|
328
|
+
})
|
|
329
|
+
.describe('汎用マスタ');
|
|
168
330
|
/**
|
|
169
331
|
* 汎用マスタを削除します。この汎用マスタのすべてのアイテムも同時に削除されます。
|
|
170
332
|
|
|
@@ -172,59 +334,111 @@ export const updateGeneralMasterResponse = zod.object({
|
|
|
172
334
|
* @summary 汎用マスタを削除
|
|
173
335
|
*/
|
|
174
336
|
export const deleteGeneralMasterPathGeneralMasterIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
175
|
-
export const
|
|
176
|
-
|
|
337
|
+
export const DeleteGeneralMasterParams = zod.object({
|
|
338
|
+
generalMasterId: zod
|
|
339
|
+
.string()
|
|
340
|
+
.regex(deleteGeneralMasterPathGeneralMasterIdRegExp)
|
|
341
|
+
.describe('汎用マスタのUUIDまたはコード'),
|
|
177
342
|
});
|
|
178
343
|
/**
|
|
179
344
|
* 汎用マスタアイテムの一覧を取得します。
|
|
180
345
|
* @summary 汎用マスタアイテムの一覧を取得
|
|
181
346
|
*/
|
|
182
347
|
export const listGeneralMasterItemsPathGeneralMasterIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
183
|
-
export const
|
|
184
|
-
|
|
348
|
+
export const ListGeneralMasterItemsParams = zod.object({
|
|
349
|
+
generalMasterId: zod
|
|
350
|
+
.string()
|
|
351
|
+
.regex(listGeneralMasterItemsPathGeneralMasterIdRegExp)
|
|
352
|
+
.describe('汎用マスタのUUIDまたはコード'),
|
|
185
353
|
});
|
|
186
354
|
export const listGeneralMasterItemsQueryPageDefault = 1;
|
|
187
355
|
export const listGeneralMasterItemsQueryPerPageDefault = 25;
|
|
188
356
|
export const listGeneralMasterItemsQueryPerPageMax = 100;
|
|
189
357
|
export const listGeneralMasterItemsQuerySortByRegExp = new RegExp('^(createdAt|code|name)(-asc|-desc)?$');
|
|
190
|
-
export const
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
358
|
+
export const ListGeneralMasterItemsQueryParams = zod.object({
|
|
359
|
+
page: zod
|
|
360
|
+
.number()
|
|
361
|
+
.min(1)
|
|
362
|
+
.default(listGeneralMasterItemsQueryPageDefault)
|
|
363
|
+
.describe('ページ'),
|
|
364
|
+
perPage: zod
|
|
365
|
+
.number()
|
|
366
|
+
.min(1)
|
|
367
|
+
.max(listGeneralMasterItemsQueryPerPageMax)
|
|
368
|
+
.default(listGeneralMasterItemsQueryPerPageDefault)
|
|
369
|
+
.describe('1ページあたりの件数'),
|
|
370
|
+
sortBy: zod
|
|
371
|
+
.string()
|
|
372
|
+
.regex(listGeneralMasterItemsQuerySortByRegExp)
|
|
373
|
+
.optional()
|
|
374
|
+
.describe('ソート対象のフィールドと順序。指定可能なフィールド: createdAt, code, name'),
|
|
194
375
|
});
|
|
195
376
|
export const listGeneralMasterItemsResponseCodeMax = 100;
|
|
196
377
|
export const listGeneralMasterItemsResponseNameMax = 100;
|
|
197
378
|
export const listGeneralMasterItemsResponseInputsItemFieldTitleMax = 300;
|
|
198
379
|
export const listGeneralMasterItemsResponseInputsItemFieldCodeMax = 100;
|
|
199
|
-
export const
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
380
|
+
export const ListGeneralMasterItemsResponseItem = zod
|
|
381
|
+
.object({
|
|
382
|
+
id: zod.uuid().describe('UUID'),
|
|
383
|
+
code: zod
|
|
384
|
+
.string()
|
|
385
|
+
.max(listGeneralMasterItemsResponseCodeMax)
|
|
386
|
+
.describe('コード'),
|
|
387
|
+
name: zod
|
|
388
|
+
.string()
|
|
389
|
+
.max(listGeneralMasterItemsResponseNameMax)
|
|
390
|
+
.describe('名前'),
|
|
391
|
+
description: zod.string().nullable().describe('説明'),
|
|
392
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
393
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
394
|
+
startsOn: zod.iso.date().nullable().describe('有効期限の開始日'),
|
|
395
|
+
endsOn: zod.iso.date().nullable().describe('有効期限の終了日'),
|
|
396
|
+
inputs: zod
|
|
397
|
+
.array(zod.object({
|
|
398
|
+
id: zod.uuid().describe('UUID'),
|
|
399
|
+
value: zod
|
|
400
|
+
.union([zod.string().nullable(), zod.array(zod.string())])
|
|
401
|
+
.describe('入力値'),
|
|
402
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
403
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
404
|
+
field: zod
|
|
405
|
+
.object({
|
|
406
|
+
id: zod.uuid().describe('UUID'),
|
|
407
|
+
title: zod
|
|
408
|
+
.string()
|
|
409
|
+
.max(listGeneralMasterItemsResponseInputsItemFieldTitleMax)
|
|
410
|
+
.describe('フィールド名'),
|
|
411
|
+
description: zod.string().nullable().describe('フィールドの説明'),
|
|
412
|
+
code: zod
|
|
413
|
+
.string()
|
|
414
|
+
.max(listGeneralMasterItemsResponseInputsItemFieldCodeMax)
|
|
415
|
+
.describe('フィールドのコード'),
|
|
416
|
+
fieldType: zod
|
|
417
|
+
.enum([
|
|
418
|
+
'text',
|
|
419
|
+
'text_long',
|
|
420
|
+
'number',
|
|
421
|
+
'integer',
|
|
422
|
+
'checkbox',
|
|
423
|
+
'pull_down',
|
|
424
|
+
'date',
|
|
425
|
+
])
|
|
426
|
+
.describe('フィールドの型'),
|
|
427
|
+
required: zod.boolean().describe('必須項目かどうか'),
|
|
428
|
+
visible: zod.boolean().describe('管理者以外も閲覧可能な場合true'),
|
|
429
|
+
options: zod
|
|
430
|
+
.array(zod.string())
|
|
431
|
+
.nullable()
|
|
432
|
+
.describe('選択肢。fieldTypeがcheckboxまたはpull_downのときのみ。'),
|
|
433
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
434
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
435
|
+
})
|
|
436
|
+
.describe('汎用マスタのカスタムフィールド'),
|
|
437
|
+
}))
|
|
438
|
+
.describe('カスタムフィールドの入力の配列'),
|
|
439
|
+
})
|
|
440
|
+
.describe('汎用マスタのアイテム');
|
|
441
|
+
export const ListGeneralMasterItemsResponse = zod.array(ListGeneralMasterItemsResponseItem);
|
|
228
442
|
/**
|
|
229
443
|
* 汎用マスタアイテムを作成します。
|
|
230
444
|
|
|
@@ -232,93 +446,172 @@ export const listGeneralMasterItemsResponse = zod.array(listGeneralMasterItemsRe
|
|
|
232
446
|
* @summary 汎用マスタアイテムを作成
|
|
233
447
|
*/
|
|
234
448
|
export const createGeneralMasterItemPathGeneralMasterIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
235
|
-
export const
|
|
236
|
-
|
|
449
|
+
export const CreateGeneralMasterItemParams = zod.object({
|
|
450
|
+
generalMasterId: zod
|
|
451
|
+
.string()
|
|
452
|
+
.regex(createGeneralMasterItemPathGeneralMasterIdRegExp)
|
|
453
|
+
.describe('汎用マスタのUUIDまたはコード'),
|
|
237
454
|
});
|
|
238
|
-
export const
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
455
|
+
export const CreateGeneralMasterItemBody = zod.object({
|
|
456
|
+
code: zod
|
|
457
|
+
.string()
|
|
458
|
+
.optional()
|
|
459
|
+
.describe('コード。未指定の場合、ランダムな英数字が自動的に設定されます。'),
|
|
460
|
+
name: zod.string().describe('名前'),
|
|
461
|
+
description: zod.string().optional().describe('説明'),
|
|
462
|
+
startsOn: zod.iso.date().nullish().describe('有効期限の開始日'),
|
|
463
|
+
endsOn: zod.iso.date().nullish().describe('有効期限の終了日'),
|
|
464
|
+
inputs: zod
|
|
465
|
+
.array(zod.object({
|
|
466
|
+
code: zod.string().describe('フィールドのコード'),
|
|
467
|
+
value: zod
|
|
468
|
+
.union([zod.string().nullable(), zod.array(zod.string())])
|
|
469
|
+
.describe('入力値。カスタムフィールドがcheckboxの場合は文字列の配列、それ以外は文字列。'),
|
|
470
|
+
}))
|
|
471
|
+
.describe('カスタムフィールドの入力。必須ではないカスタムフィールドを含む、すべてのカスタムフィールドに対して入力する必要があります。'),
|
|
248
472
|
});
|
|
249
473
|
export const createGeneralMasterItemResponseCodeMax = 100;
|
|
250
474
|
export const createGeneralMasterItemResponseNameMax = 100;
|
|
251
475
|
export const createGeneralMasterItemResponseInputsItemFieldTitleMax = 300;
|
|
252
476
|
export const createGeneralMasterItemResponseInputsItemFieldCodeMax = 100;
|
|
253
|
-
export const
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
477
|
+
export const CreateGeneralMasterItemResponse = zod
|
|
478
|
+
.object({
|
|
479
|
+
id: zod.uuid().describe('UUID'),
|
|
480
|
+
code: zod
|
|
481
|
+
.string()
|
|
482
|
+
.max(createGeneralMasterItemResponseCodeMax)
|
|
483
|
+
.describe('コード'),
|
|
484
|
+
name: zod
|
|
485
|
+
.string()
|
|
486
|
+
.max(createGeneralMasterItemResponseNameMax)
|
|
487
|
+
.describe('名前'),
|
|
488
|
+
description: zod.string().nullable().describe('説明'),
|
|
489
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
490
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
491
|
+
startsOn: zod.iso.date().nullable().describe('有効期限の開始日'),
|
|
492
|
+
endsOn: zod.iso.date().nullable().describe('有効期限の終了日'),
|
|
493
|
+
inputs: zod
|
|
494
|
+
.array(zod.object({
|
|
495
|
+
id: zod.uuid().describe('UUID'),
|
|
496
|
+
value: zod
|
|
497
|
+
.union([zod.string().nullable(), zod.array(zod.string())])
|
|
498
|
+
.describe('入力値'),
|
|
499
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
500
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
501
|
+
field: zod
|
|
502
|
+
.object({
|
|
503
|
+
id: zod.uuid().describe('UUID'),
|
|
504
|
+
title: zod
|
|
505
|
+
.string()
|
|
506
|
+
.max(createGeneralMasterItemResponseInputsItemFieldTitleMax)
|
|
507
|
+
.describe('フィールド名'),
|
|
508
|
+
description: zod.string().nullable().describe('フィールドの説明'),
|
|
509
|
+
code: zod
|
|
510
|
+
.string()
|
|
511
|
+
.max(createGeneralMasterItemResponseInputsItemFieldCodeMax)
|
|
512
|
+
.describe('フィールドのコード'),
|
|
513
|
+
fieldType: zod
|
|
514
|
+
.enum([
|
|
515
|
+
'text',
|
|
516
|
+
'text_long',
|
|
517
|
+
'number',
|
|
518
|
+
'integer',
|
|
519
|
+
'checkbox',
|
|
520
|
+
'pull_down',
|
|
521
|
+
'date',
|
|
522
|
+
])
|
|
523
|
+
.describe('フィールドの型'),
|
|
524
|
+
required: zod.boolean().describe('必須項目かどうか'),
|
|
525
|
+
visible: zod.boolean().describe('管理者以外も閲覧可能な場合true'),
|
|
526
|
+
options: zod
|
|
527
|
+
.array(zod.string())
|
|
528
|
+
.nullable()
|
|
529
|
+
.describe('選択肢。fieldTypeがcheckboxまたはpull_downのときのみ。'),
|
|
530
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
531
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
532
|
+
})
|
|
533
|
+
.describe('汎用マスタのカスタムフィールド'),
|
|
534
|
+
}))
|
|
535
|
+
.describe('カスタムフィールドの入力の配列'),
|
|
536
|
+
})
|
|
537
|
+
.describe('汎用マスタのアイテム');
|
|
281
538
|
/**
|
|
282
539
|
* 汎用マスタアイテムを一件取得します。
|
|
283
540
|
* @summary 汎用マスタアイテムを取得
|
|
284
541
|
*/
|
|
285
542
|
export const getGeneralMasterItemPathGeneralMasterIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
286
|
-
export const
|
|
287
|
-
|
|
288
|
-
|
|
543
|
+
export const GetGeneralMasterItemParams = zod.object({
|
|
544
|
+
generalMasterId: zod
|
|
545
|
+
.string()
|
|
546
|
+
.regex(getGeneralMasterItemPathGeneralMasterIdRegExp)
|
|
547
|
+
.describe('汎用マスタのUUIDまたはコード'),
|
|
548
|
+
itemId: zod.string().describe('汎用マスタアイテムのUUIDまたはコード'),
|
|
289
549
|
});
|
|
290
550
|
export const getGeneralMasterItemResponseCodeMax = 100;
|
|
291
551
|
export const getGeneralMasterItemResponseNameMax = 100;
|
|
292
552
|
export const getGeneralMasterItemResponseInputsItemFieldTitleMax = 300;
|
|
293
553
|
export const getGeneralMasterItemResponseInputsItemFieldCodeMax = 100;
|
|
294
|
-
export const
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
554
|
+
export const GetGeneralMasterItemResponse = zod
|
|
555
|
+
.object({
|
|
556
|
+
id: zod.uuid().describe('UUID'),
|
|
557
|
+
code: zod
|
|
558
|
+
.string()
|
|
559
|
+
.max(getGeneralMasterItemResponseCodeMax)
|
|
560
|
+
.describe('コード'),
|
|
561
|
+
name: zod
|
|
562
|
+
.string()
|
|
563
|
+
.max(getGeneralMasterItemResponseNameMax)
|
|
564
|
+
.describe('名前'),
|
|
565
|
+
description: zod.string().nullable().describe('説明'),
|
|
566
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
567
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
568
|
+
startsOn: zod.iso.date().nullable().describe('有効期限の開始日'),
|
|
569
|
+
endsOn: zod.iso.date().nullable().describe('有効期限の終了日'),
|
|
570
|
+
inputs: zod
|
|
571
|
+
.array(zod.object({
|
|
572
|
+
id: zod.uuid().describe('UUID'),
|
|
573
|
+
value: zod
|
|
574
|
+
.union([zod.string().nullable(), zod.array(zod.string())])
|
|
575
|
+
.describe('入力値'),
|
|
576
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
577
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
578
|
+
field: zod
|
|
579
|
+
.object({
|
|
580
|
+
id: zod.uuid().describe('UUID'),
|
|
581
|
+
title: zod
|
|
582
|
+
.string()
|
|
583
|
+
.max(getGeneralMasterItemResponseInputsItemFieldTitleMax)
|
|
584
|
+
.describe('フィールド名'),
|
|
585
|
+
description: zod.string().nullable().describe('フィールドの説明'),
|
|
586
|
+
code: zod
|
|
587
|
+
.string()
|
|
588
|
+
.max(getGeneralMasterItemResponseInputsItemFieldCodeMax)
|
|
589
|
+
.describe('フィールドのコード'),
|
|
590
|
+
fieldType: zod
|
|
591
|
+
.enum([
|
|
592
|
+
'text',
|
|
593
|
+
'text_long',
|
|
594
|
+
'number',
|
|
595
|
+
'integer',
|
|
596
|
+
'checkbox',
|
|
597
|
+
'pull_down',
|
|
598
|
+
'date',
|
|
599
|
+
])
|
|
600
|
+
.describe('フィールドの型'),
|
|
601
|
+
required: zod.boolean().describe('必須項目かどうか'),
|
|
602
|
+
visible: zod.boolean().describe('管理者以外も閲覧可能な場合true'),
|
|
603
|
+
options: zod
|
|
604
|
+
.array(zod.string())
|
|
605
|
+
.nullable()
|
|
606
|
+
.describe('選択肢。fieldTypeがcheckboxまたはpull_downのときのみ。'),
|
|
607
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
608
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
609
|
+
})
|
|
610
|
+
.describe('汎用マスタのカスタムフィールド'),
|
|
611
|
+
}))
|
|
612
|
+
.describe('カスタムフィールドの入力の配列'),
|
|
613
|
+
})
|
|
614
|
+
.describe('汎用マスタのアイテム');
|
|
322
615
|
/**
|
|
323
616
|
* 汎用マスタアイテムを更新します。
|
|
324
617
|
|
|
@@ -326,53 +619,97 @@ export const getGeneralMasterItemResponse = zod.object({
|
|
|
326
619
|
* @summary 汎用マスタアイテムを更新
|
|
327
620
|
*/
|
|
328
621
|
export const updateGeneralMasterItemPathGeneralMasterIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
329
|
-
export const
|
|
330
|
-
|
|
331
|
-
|
|
622
|
+
export const UpdateGeneralMasterItemParams = zod.object({
|
|
623
|
+
generalMasterId: zod
|
|
624
|
+
.string()
|
|
625
|
+
.regex(updateGeneralMasterItemPathGeneralMasterIdRegExp)
|
|
626
|
+
.describe('汎用マスタのUUIDまたはコード'),
|
|
627
|
+
itemId: zod.string().describe('汎用マスタアイテムのUUIDまたはコード'),
|
|
332
628
|
});
|
|
333
|
-
export const
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
629
|
+
export const UpdateGeneralMasterItemBody = zod.object({
|
|
630
|
+
code: zod
|
|
631
|
+
.string()
|
|
632
|
+
.optional()
|
|
633
|
+
.describe('コード。未指定の場合、ランダムな英数字が自動的に設定されます。'),
|
|
634
|
+
name: zod.string().optional().describe('名前'),
|
|
635
|
+
description: zod.string().optional().describe('説明'),
|
|
636
|
+
startsOn: zod.iso.date().nullish().describe('有効期限の開始日'),
|
|
637
|
+
endsOn: zod.iso.date().nullish().describe('有効期限の終了日'),
|
|
638
|
+
inputs: zod
|
|
639
|
+
.array(zod.object({
|
|
640
|
+
code: zod.string().describe('フィールドのコード'),
|
|
641
|
+
value: zod
|
|
642
|
+
.union([zod.string().nullable(), zod.array(zod.string())])
|
|
643
|
+
.describe('入力値。カスタムフィールドがcheckboxの場合文字列の配列、それ以外の場合文字列。'),
|
|
644
|
+
}))
|
|
645
|
+
.optional()
|
|
646
|
+
.describe('カスタムフィールドの入力。必須ではないカスタムフィールドを含む、すべてのカスタムフィールドに対して入力する必要があります。'),
|
|
343
647
|
});
|
|
344
648
|
export const updateGeneralMasterItemResponseCodeMax = 100;
|
|
345
649
|
export const updateGeneralMasterItemResponseNameMax = 100;
|
|
346
650
|
export const updateGeneralMasterItemResponseInputsItemFieldTitleMax = 300;
|
|
347
651
|
export const updateGeneralMasterItemResponseInputsItemFieldCodeMax = 100;
|
|
348
|
-
export const
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
652
|
+
export const UpdateGeneralMasterItemResponse = zod
|
|
653
|
+
.object({
|
|
654
|
+
id: zod.uuid().describe('UUID'),
|
|
655
|
+
code: zod
|
|
656
|
+
.string()
|
|
657
|
+
.max(updateGeneralMasterItemResponseCodeMax)
|
|
658
|
+
.describe('コード'),
|
|
659
|
+
name: zod
|
|
660
|
+
.string()
|
|
661
|
+
.max(updateGeneralMasterItemResponseNameMax)
|
|
662
|
+
.describe('名前'),
|
|
663
|
+
description: zod.string().nullable().describe('説明'),
|
|
664
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
665
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
666
|
+
startsOn: zod.iso.date().nullable().describe('有効期限の開始日'),
|
|
667
|
+
endsOn: zod.iso.date().nullable().describe('有効期限の終了日'),
|
|
668
|
+
inputs: zod
|
|
669
|
+
.array(zod.object({
|
|
670
|
+
id: zod.uuid().describe('UUID'),
|
|
671
|
+
value: zod
|
|
672
|
+
.union([zod.string().nullable(), zod.array(zod.string())])
|
|
673
|
+
.describe('入力値'),
|
|
674
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
675
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
676
|
+
field: zod
|
|
677
|
+
.object({
|
|
678
|
+
id: zod.uuid().describe('UUID'),
|
|
679
|
+
title: zod
|
|
680
|
+
.string()
|
|
681
|
+
.max(updateGeneralMasterItemResponseInputsItemFieldTitleMax)
|
|
682
|
+
.describe('フィールド名'),
|
|
683
|
+
description: zod.string().nullable().describe('フィールドの説明'),
|
|
684
|
+
code: zod
|
|
685
|
+
.string()
|
|
686
|
+
.max(updateGeneralMasterItemResponseInputsItemFieldCodeMax)
|
|
687
|
+
.describe('フィールドのコード'),
|
|
688
|
+
fieldType: zod
|
|
689
|
+
.enum([
|
|
690
|
+
'text',
|
|
691
|
+
'text_long',
|
|
692
|
+
'number',
|
|
693
|
+
'integer',
|
|
694
|
+
'checkbox',
|
|
695
|
+
'pull_down',
|
|
696
|
+
'date',
|
|
697
|
+
])
|
|
698
|
+
.describe('フィールドの型'),
|
|
699
|
+
required: zod.boolean().describe('必須項目かどうか'),
|
|
700
|
+
visible: zod.boolean().describe('管理者以外も閲覧可能な場合true'),
|
|
701
|
+
options: zod
|
|
702
|
+
.array(zod.string())
|
|
703
|
+
.nullable()
|
|
704
|
+
.describe('選択肢。fieldTypeがcheckboxまたはpull_downのときのみ。'),
|
|
705
|
+
createdAt: zod.iso.datetime({}).describe('作成日時'),
|
|
706
|
+
updatedAt: zod.iso.datetime({}).describe('更新日時'),
|
|
707
|
+
})
|
|
708
|
+
.describe('汎用マスタのカスタムフィールド'),
|
|
709
|
+
}))
|
|
710
|
+
.describe('カスタムフィールドの入力の配列'),
|
|
711
|
+
})
|
|
712
|
+
.describe('汎用マスタのアイテム');
|
|
376
713
|
/**
|
|
377
714
|
* 汎用マスタアイテムを削除します。
|
|
378
715
|
|
|
@@ -380,8 +717,11 @@ export const updateGeneralMasterItemResponse = zod.object({
|
|
|
380
717
|
* @summary 汎用マスタアイテムを削除
|
|
381
718
|
*/
|
|
382
719
|
export const deleteGeneralMasterItemPathGeneralMasterIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
383
|
-
export const
|
|
384
|
-
|
|
385
|
-
|
|
720
|
+
export const DeleteGeneralMasterItemParams = zod.object({
|
|
721
|
+
generalMasterId: zod
|
|
722
|
+
.string()
|
|
723
|
+
.regex(deleteGeneralMasterItemPathGeneralMasterIdRegExp)
|
|
724
|
+
.describe('汎用マスタのUUIDまたはコード'),
|
|
725
|
+
itemId: zod.string().describe('汎用マスタアイテムのUUIDまたはコード'),
|
|
386
726
|
});
|
|
387
727
|
//# sourceMappingURL=general-master.zod.js.map
|