@tocca-systems/twp-cli 0.14.1 → 0.15.1

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 (318) hide show
  1. package/CHANGELOG.public.md +23 -0
  2. package/README.md +27 -0
  3. package/command-model/account-lock.json +108 -0
  4. package/command-model/address.json +40 -0
  5. package/command-model/agent-loop.json +1121 -0
  6. package/command-model/agent.json +838 -0
  7. package/command-model/ai-chat-history.json +239 -0
  8. package/command-model/ai-rag.json +118 -0
  9. package/command-model/ai-task-copilot.json +235 -0
  10. package/command-model/ai-token-usage.json +421 -0
  11. package/command-model/analysis-page-access-rule.json +250 -0
  12. package/command-model/analysis.json +153 -0
  13. package/command-model/announcement.json +208 -0
  14. package/command-model/api-key.json +255 -0
  15. package/command-model/api-usage.json +123 -0
  16. package/command-model/attendance-report-category.json +263 -0
  17. package/command-model/attendance-report-reason-detail.json +291 -0
  18. package/command-model/attendance-report-reason.json +279 -0
  19. package/command-model/attendance-report.json +384 -0
  20. package/command-model/attendance-timesheet.json +92 -0
  21. package/command-model/attendance.json +34 -0
  22. package/command-model/audit-log.json +146 -0
  23. package/command-model/auth.json +268 -0
  24. package/command-model/authorize.json +60 -0
  25. package/command-model/auto-charge.json +149 -0
  26. package/command-model/badge.json +116 -0
  27. package/command-model/billing.json +297 -0
  28. package/command-model/budget.json +505 -0
  29. package/command-model/business-card.json +47 -0
  30. package/command-model/business-place.json +323 -0
  31. package/command-model/capacity.json +171 -0
  32. package/command-model/catalog.json +234 -0
  33. package/command-model/chat-channel.json +566 -0
  34. package/command-model/chat-mention-group.json +135 -0
  35. package/command-model/chat-message.json +296 -0
  36. package/command-model/chat-tenant-connection.json +173 -0
  37. package/command-model/cli-auth.json +212 -0
  38. package/command-model/cms-tag.json +323 -0
  39. package/command-model/commuting-expense.json +422 -0
  40. package/command-model/company-case-document.json +41 -0
  41. package/command-model/company-contract-document.json +350 -0
  42. package/command-model/company.json +581 -0
  43. package/command-model/config.json +63 -0
  44. package/command-model/contract.json +546 -0
  45. package/command-model/credit.json +629 -0
  46. package/command-model/cross-project-report.json +40 -0
  47. package/command-model/customer-campaign.json +181 -0
  48. package/command-model/customer-contact.json +538 -0
  49. package/command-model/customer-interaction.json +714 -0
  50. package/command-model/customer-people.json +129 -0
  51. package/command-model/customer.json +129 -0
  52. package/command-model/cycle-time-analysis.json +59 -0
  53. package/command-model/dashboard-calendar.json +40 -0
  54. package/command-model/department.json +374 -0
  55. package/command-model/deposit-plan.json +69 -0
  56. package/command-model/deposit.json +498 -0
  57. package/command-model/desktop-release.json +63 -0
  58. package/command-model/domain-knowledge-doc.json +287 -0
  59. package/command-model/domain-knowledge.json +246 -0
  60. package/command-model/dynamo-attachment.json +253 -0
  61. package/command-model/dynamo-cms.json +1322 -0
  62. package/command-model/dynamo-inquiry.json +417 -0
  63. package/command-model/dynamo-support.json +297 -0
  64. package/command-model/email-change.json +59 -0
  65. package/command-model/equipment-category.json +129 -0
  66. package/command-model/equipment.json +614 -0
  67. package/command-model/estimate-case-document.json +349 -0
  68. package/command-model/estimate-format.json +465 -0
  69. package/command-model/estimate-no-rule.json +236 -0
  70. package/command-model/estimate.json +1025 -0
  71. package/command-model/evaluation-pdf.json +68 -0
  72. package/command-model/evaluation-period.json +476 -0
  73. package/command-model/evaluation.json +786 -0
  74. package/command-model/expense-settings.json +60 -0
  75. package/command-model/external-integration-proxy.json +1261 -0
  76. package/command-model/faq-notion-import.json +246 -0
  77. package/command-model/faq.json +410 -0
  78. package/command-model/favorite.json +179 -0
  79. package/command-model/feedback.json +544 -0
  80. package/command-model/fiscal-year-setting.json +167 -0
  81. package/command-model/floor-map.json +175 -0
  82. package/command-model/follow-up-message-template.json +197 -0
  83. package/command-model/git-hub-pr-status.json +41 -0
  84. package/command-model/goal-sheet.json +350 -0
  85. package/command-model/google-auth.json +100 -0
  86. package/command-model/hearing-auth.json +329 -0
  87. package/command-model/hearing-invitation.json +252 -0
  88. package/command-model/hearing-session.json +194 -0
  89. package/command-model/hearing.json +929 -0
  90. package/command-model/holiday.json +362 -0
  91. package/command-model/hr-checklist-template.json +261 -0
  92. package/command-model/hr-checklist.json +185 -0
  93. package/command-model/hr-qualification.json +108 -0
  94. package/command-model/html-editor.json +55 -0
  95. package/command-model/index.json +1500 -0
  96. package/command-model/inquiry-response-generator.json +43 -0
  97. package/command-model/inquiry-routing.json +364 -0
  98. package/command-model/invoice-auto-template.json +245 -0
  99. package/command-model/invoice-no-rule.json +236 -0
  100. package/command-model/invoice.json +897 -0
  101. package/command-model/job-title.json +421 -0
  102. package/command-model/knowledge-qa.json +62 -0
  103. package/command-model/knowledge-recommendation-feedback.json +102 -0
  104. package/command-model/knowledge-recommendation.json +56 -0
  105. package/command-model/legacy-migration.json +76 -0
  106. package/command-model/license-assignment.json +296 -0
  107. package/command-model/license-type.json +288 -0
  108. package/command-model/license.json +525 -0
  109. package/command-model/login-history.json +99 -0
  110. package/command-model/man-hour.json +107 -0
  111. package/command-model/master-announcement.json +520 -0
  112. package/command-model/master-billing.json +117 -0
  113. package/command-model/master-pricing.json +246 -0
  114. package/command-model/master-product.json +523 -0
  115. package/command-model/master-support-ai.json +39 -0
  116. package/command-model/master-support.json +450 -0
  117. package/command-model/master-tenant.json +1909 -0
  118. package/command-model/media-file-comment.json +142 -0
  119. package/command-model/media-file-hls.json +47 -0
  120. package/command-model/media-file-version.json +188 -0
  121. package/command-model/media-file.json +1712 -0
  122. package/command-model/media-folder.json +398 -0
  123. package/command-model/meeting-category.json +195 -0
  124. package/command-model/meeting-minutes.json +68 -0
  125. package/command-model/meeting-pdf.json +41 -0
  126. package/command-model/meeting-template.json +227 -0
  127. package/command-model/meeting.json +1030 -0
  128. package/command-model/member.json +132 -0
  129. package/command-model/microsoft-auth.json +97 -0
  130. package/command-model/milli-credit.json +273 -0
  131. package/command-model/ms365-calendar-o-auth.json +115 -0
  132. package/command-model/music-generation.json +232 -0
  133. package/command-model/my-task.json +167 -0
  134. package/command-model/my-training.json +158 -0
  135. package/command-model/news-perspective.json +215 -0
  136. package/command-model/note-category.json +149 -0
  137. package/command-model/note-comment.json +225 -0
  138. package/command-model/note-favorite.json +47 -0
  139. package/command-model/note-reaction.json +62 -0
  140. package/command-model/note-subscription.json +110 -0
  141. package/command-model/note.json +578 -0
  142. package/command-model/notification-recipient-rule.json +231 -0
  143. package/command-model/notification.json +336 -0
  144. package/command-model/notion-import.json +265 -0
  145. package/command-model/o-auth-client.json +334 -0
  146. package/command-model/onboarding-template.json +706 -0
  147. package/command-model/operating-hours.json +100 -0
  148. package/command-model/order-form-scan.json +33 -0
  149. package/command-model/org-chart.json +40 -0
  150. package/command-model/organization-announcement-category.json +135 -0
  151. package/command-model/organization-announcement.json +605 -0
  152. package/command-model/password-reset.json +100 -0
  153. package/command-model/payee.json +223 -0
  154. package/command-model/pc-situation.json +129 -0
  155. package/command-model/phone-change.json +65 -0
  156. package/command-model/policy-employee.json +99 -0
  157. package/command-model/policy.json +506 -0
  158. package/command-model/position.json +305 -0
  159. package/command-model/private-agent-loop.json +850 -0
  160. package/command-model/private-task.json +406 -0
  161. package/command-model/process.json +237 -0
  162. package/command-model/profit-analysis.json +183 -0
  163. package/command-model/profit-summary.json +70 -0
  164. package/command-model/project-assignment.json +55 -0
  165. package/command-model/project-cost.json +255 -0
  166. package/command-model/project-custom-field.json +379 -0
  167. package/command-model/project-digest.json +116 -0
  168. package/command-model/project-evaluation.json +313 -0
  169. package/command-model/project-health.json +158 -0
  170. package/command-model/project-member.json +468 -0
  171. package/command-model/project-process.json +310 -0
  172. package/command-model/project-profit-analysis.json +59 -0
  173. package/command-model/project-quality-check-corrective-task.json +126 -0
  174. package/command-model/project-quality-check-record.json +131 -0
  175. package/command-model/project-quality-check-scope.json +87 -0
  176. package/command-model/project-quality-check-status.json +63 -0
  177. package/command-model/project-repository.json +180 -0
  178. package/command-model/project-revenue.json +292 -0
  179. package/command-model/project-task-analytics.json +41 -0
  180. package/command-model/project-task-category.json +203 -0
  181. package/command-model/project-task-comment.json +430 -0
  182. package/command-model/project-task-form-options.json +41 -0
  183. package/command-model/project-task-label.json +203 -0
  184. package/command-model/project-task-link.json +169 -0
  185. package/command-model/project-task-milestone.json +215 -0
  186. package/command-model/project-task-rule.json +376 -0
  187. package/command-model/project-task-status.json +221 -0
  188. package/command-model/project-task-template.json +264 -0
  189. package/command-model/project-task-type.json +240 -0
  190. package/command-model/project-task-version.json +215 -0
  191. package/command-model/project-task-watcher.json +101 -0
  192. package/command-model/project-task.json +1476 -0
  193. package/command-model/project-template.json +443 -0
  194. package/command-model/project.json +979 -0
  195. package/command-model/prospect-activity.json +293 -0
  196. package/command-model/prospect-promotion.json +86 -0
  197. package/command-model/prospect.json +793 -0
  198. package/command-model/public-search.json +68 -0
  199. package/command-model/purchase-ai-field-mapping.json +293 -0
  200. package/command-model/purchase-document.json +349 -0
  201. package/command-model/purchase-estimate-scan.json +42 -0
  202. package/command-model/purchase-no-rule.json +242 -0
  203. package/command-model/purchase.json +608 -0
  204. package/command-model/push-subscription.json +108 -0
  205. package/command-model/qualification-import.json +91 -0
  206. package/command-model/qualification.json +252 -0
  207. package/command-model/quality-check-item.json +256 -0
  208. package/command-model/rag.json +76 -0
  209. package/command-model/rating-criteria.json +76 -0
  210. package/command-model/receivable-closing.json +105 -0
  211. package/command-model/receivable.json +63 -0
  212. package/command-model/received-invoice.json +151 -0
  213. package/command-model/refresh-token.json +31 -0
  214. package/command-model/report-format-order.json +48 -0
  215. package/command-model/report-saved-tab.json +154 -0
  216. package/command-model/report.json +2400 -0
  217. package/command-model/retrospective.json +591 -0
  218. package/command-model/revoke.json +34 -0
  219. package/command-model/risk-analysis.json +41 -0
  220. package/command-model/role-template.json +198 -0
  221. package/command-model/sales-ai-review-knowledge-draft.json +37 -0
  222. package/command-model/sales-ai-review-knowledge-pr.json +49 -0
  223. package/command-model/sales-ai-review-reason-list.json +70 -0
  224. package/command-model/sales-pdf.json +293 -0
  225. package/command-model/sales-rounding-setting.json +66 -0
  226. package/command-model/sales.json +425 -0
  227. package/command-model/saved-tab.json +150 -0
  228. package/command-model/saved-task-filter.json +154 -0
  229. package/command-model/seal-impression.json +195 -0
  230. package/command-model/segment.json +237 -0
  231. package/command-model/sidebar-badge-setting.json +60 -0
  232. package/command-model/skill-analytics.json +163 -0
  233. package/command-model/skill-category.json +235 -0
  234. package/command-model/skill-evaluation-export.json +49 -0
  235. package/command-model/skill-evaluation-record.json +140 -0
  236. package/command-model/skill-micro-feedback.json +132 -0
  237. package/command-model/skill-role-assignment.json +117 -0
  238. package/command-model/skill.json +327 -0
  239. package/command-model/staff-kpi-setting.json +186 -0
  240. package/command-model/staff-kpi.json +46 -0
  241. package/command-model/staffing-plan.json +428 -0
  242. package/command-model/storage.json +254 -0
  243. package/command-model/subscription.json +164 -0
  244. package/command-model/supplier-payment-schedule.json +237 -0
  245. package/command-model/supplier-payment.json +344 -0
  246. package/command-model/survey-tracker.json +398 -0
  247. package/command-model/survey.json +1759 -0
  248. package/command-model/task-analysis.json +34 -0
  249. package/command-model/task-branch.json +307 -0
  250. package/command-model/task-recurrence.json +261 -0
  251. package/command-model/task-wiki-link.json +155 -0
  252. package/command-model/tenant-ai-key.json +339 -0
  253. package/command-model/tenant-egress-policy.json +288 -0
  254. package/command-model/tenant-email-settings.json +143 -0
  255. package/command-model/tenant-git-hub-settings.json +361 -0
  256. package/command-model/tenant-master-email-change.json +59 -0
  257. package/command-model/tenant-rag-settings.json +382 -0
  258. package/command-model/tenant-registration.json +128 -0
  259. package/command-model/tenant-search.json +40 -0
  260. package/command-model/tenant-settings.json +1228 -0
  261. package/command-model/terms.json +90 -0
  262. package/command-model/test-execution.json +367 -0
  263. package/command-model/test-scenario.json +384 -0
  264. package/command-model/token.json +31 -0
  265. package/command-model/training-attendance.json +509 -0
  266. package/command-model/training-master.json +314 -0
  267. package/command-model/training-session.json +604 -0
  268. package/command-model/unified-search.json +127 -0
  269. package/command-model/update-record.json +90 -0
  270. package/command-model/user-api-key.json +357 -0
  271. package/command-model/user-assignment-calendar.json +47 -0
  272. package/command-model/user-assignment.json +663 -0
  273. package/command-model/user-contract-type.json +453 -0
  274. package/command-model/user-contract.json +759 -0
  275. package/command-model/user-group.json +147 -0
  276. package/command-model/user-info.json +34 -0
  277. package/command-model/user-invitation.json +1045 -0
  278. package/command-model/user-management.json +393 -0
  279. package/command-model/user-qualification.json +167 -0
  280. package/command-model/user-seal-generate.json +49 -0
  281. package/command-model/user-shortcut-setting.json +108 -0
  282. package/command-model/user-skill-profile.json +540 -0
  283. package/command-model/user.json +983 -0
  284. package/command-model/video-generation.json +456 -0
  285. package/command-model/web-search.json +67 -0
  286. package/command-model/well-known.json +63 -0
  287. package/command-model/whisper.json +88 -0
  288. package/command-model/wiki-collection.json +457 -0
  289. package/command-model/wiki-notion-import.json +172 -0
  290. package/command-model/wiki-template.json +187 -0
  291. package/command-model/wiki.json +449 -0
  292. package/command-model/worker-agent-run.json +185 -0
  293. package/command-model/worker-agent.json +524 -0
  294. package/command-model/workflow-ai-review.json +108 -0
  295. package/command-model/workflow-analysis.json +59 -0
  296. package/command-model/workflow-approval-delegation.json +135 -0
  297. package/command-model/workflow-approval.json +257 -0
  298. package/command-model/workflow-instance.json +273 -0
  299. package/command-model/workflow-tracker.json +481 -0
  300. package/command-model/workflow.json +553 -0
  301. package/command-model/workload-alert.json +105 -0
  302. package/dist/api-command-HGTPIEAP.js +73 -0
  303. package/dist/{app-BSEVWRJY.js → app-LLSZV6SM.js} +28 -27
  304. package/dist/{backlog-M5ORA4UV.js → backlog-AYEKG575.js} +2 -2
  305. package/dist/{chunk-V4VHRASG.js → chunk-7WEYBZSK.js} +1 -1
  306. package/dist/{run-6FWRZNZR.js → chunk-BPMSIIOU.js} +14 -14
  307. package/dist/{chunk-EOFANBVM.js → chunk-FKIZ5ZJU.js} +2 -2
  308. package/dist/{chunk-6JGIC2IW.js → chunk-HCO3IYGJ.js} +1 -1
  309. package/dist/{chunk-4WK2ECUX.js → chunk-S646CPM4.js} +3 -3
  310. package/dist/{chunk-ZVZL4QHS.js → chunk-Y5RTTQ4Y.js} +51 -25
  311. package/dist/cli.js +25 -23
  312. package/dist/{commands-S7RTRVR5.js → commands-RNBJ3AKL.js} +4 -4
  313. package/dist/{commands-YPT6RK74.js → commands-VUWI4ERO.js} +1 -1
  314. package/dist/{oneshot-FI5F5SP5.js → oneshot-HQJEXZHJ.js} +5 -5
  315. package/dist/run-BJQLIPWN.js +4 -0
  316. package/dist/{setup-JXETAINT.js → setup-OULTAG6G.js} +1 -1
  317. package/dist/{task-DAW7IUDT.js → task-UK4QO26W.js} +2 -2
  318. package/package.json +2 -1
@@ -0,0 +1,897 @@
1
+ {
2
+ "domain": "invoice",
3
+ "operations": [
4
+ {
5
+ "name": "cancel",
6
+ "domain": "invoice",
7
+ "operationId": "invoice.cancel",
8
+ "method": "POST",
9
+ "path": "/v2/sales/invoices/{id}/cancel",
10
+ "summary": "請求を取消(無効)にする",
11
+ "pathParams": [
12
+ {
13
+ "name": "id",
14
+ "type": "string",
15
+ "required": true,
16
+ "source": "spec"
17
+ }
18
+ ],
19
+ "queryParams": [],
20
+ "body": {
21
+ "schema": {
22
+ "type": "object",
23
+ "properties": {
24
+ "cancel_reason": {
25
+ "type": "string",
26
+ "maxLength": 1000
27
+ }
28
+ },
29
+ "required": [
30
+ "cancel_reason"
31
+ ]
32
+ }
33
+ },
34
+ "resultPath": null,
35
+ "risk": "write",
36
+ "aliases": []
37
+ },
38
+ {
39
+ "name": "consolidate",
40
+ "domain": "invoice",
41
+ "operationId": "invoice.consolidate",
42
+ "method": "POST",
43
+ "path": "/v2/sales/invoices/consolidate",
44
+ "summary": "統合請求書作成(同一取引先の複数請求を1枚に統合)",
45
+ "pathParams": [],
46
+ "queryParams": [],
47
+ "body": {
48
+ "schema": {
49
+ "type": "object",
50
+ "properties": {
51
+ "invoice_ids": {
52
+ "type": "array",
53
+ "items": {
54
+ "type": "integer"
55
+ },
56
+ "minItems": 2
57
+ },
58
+ "title": {
59
+ "type": [
60
+ "string",
61
+ "null"
62
+ ],
63
+ "maxLength": 500
64
+ }
65
+ },
66
+ "required": [
67
+ "invoice_ids"
68
+ ]
69
+ }
70
+ },
71
+ "resultPath": null,
72
+ "risk": "write",
73
+ "aliases": []
74
+ },
75
+ {
76
+ "name": "create",
77
+ "domain": "invoice",
78
+ "operationId": "invoice.store",
79
+ "method": "POST",
80
+ "path": "/v2/sales/invoices",
81
+ "summary": "請求作成",
82
+ "pathParams": [],
83
+ "queryParams": [],
84
+ "body": {
85
+ "schema": {
86
+ "type": "object",
87
+ "properties": {
88
+ "direct_create": {
89
+ "type": [
90
+ "boolean",
91
+ "null"
92
+ ]
93
+ },
94
+ "estimate_format_id": {
95
+ "type": [
96
+ "integer",
97
+ "null"
98
+ ]
99
+ },
100
+ "contract_id": {
101
+ "type": [
102
+ "integer",
103
+ "null"
104
+ ]
105
+ },
106
+ "estimate_id": {
107
+ "type": [
108
+ "integer",
109
+ "null"
110
+ ]
111
+ },
112
+ "invoice_no_rule_id": {
113
+ "type": [
114
+ "integer",
115
+ "null"
116
+ ]
117
+ },
118
+ "title": {
119
+ "type": "string",
120
+ "maxLength": 500
121
+ },
122
+ "company_id": {
123
+ "type": [
124
+ "integer",
125
+ "null"
126
+ ]
127
+ },
128
+ "project_id": {
129
+ "type": "string",
130
+ "maxLength": 36
131
+ },
132
+ "invoice_user_id": {
133
+ "type": [
134
+ "string",
135
+ "null"
136
+ ],
137
+ "maxLength": 36
138
+ },
139
+ "business_place_id": {
140
+ "type": [
141
+ "integer",
142
+ "null"
143
+ ]
144
+ },
145
+ "seal_impression_id": {
146
+ "type": [
147
+ "integer",
148
+ "null"
149
+ ]
150
+ },
151
+ "payee_id": {
152
+ "type": [
153
+ "integer",
154
+ "null"
155
+ ]
156
+ },
157
+ "status": {
158
+ "type": [
159
+ "string",
160
+ "null"
161
+ ],
162
+ "enum": [
163
+ "new",
164
+ "create_completed",
165
+ "in_progress",
166
+ "approved",
167
+ "rejected",
168
+ "submitted",
169
+ "manager_confirmation",
170
+ "invoice_issued",
171
+ "sent_to_client",
172
+ "archived",
173
+ "deleted",
174
+ null
175
+ ]
176
+ },
177
+ "invoice_date": {
178
+ "type": "string",
179
+ "format": "date-time"
180
+ },
181
+ "delivery_date": {
182
+ "type": [
183
+ "string",
184
+ "null"
185
+ ],
186
+ "format": "date-time"
187
+ },
188
+ "inspection_date": {
189
+ "type": [
190
+ "string",
191
+ "null"
192
+ ],
193
+ "format": "date-time"
194
+ },
195
+ "due_date": {
196
+ "type": [
197
+ "string",
198
+ "null"
199
+ ],
200
+ "format": "date-time"
201
+ },
202
+ "terms": {
203
+ "type": [
204
+ "string",
205
+ "null"
206
+ ]
207
+ },
208
+ "memo": {
209
+ "type": [
210
+ "string",
211
+ "null"
212
+ ]
213
+ },
214
+ "internal_memo": {
215
+ "type": [
216
+ "string",
217
+ "null"
218
+ ],
219
+ "maxLength": 5000
220
+ },
221
+ "manage_form_data": {
222
+ "type": [
223
+ "array",
224
+ "null"
225
+ ],
226
+ "items": {
227
+ "type": "string"
228
+ }
229
+ },
230
+ "details": {
231
+ "type": "array",
232
+ "items": {
233
+ "type": "object",
234
+ "properties": {
235
+ "item_name": {
236
+ "type": "string",
237
+ "maxLength": 500
238
+ },
239
+ "quantity": {
240
+ "type": "number",
241
+ "minimum": 0
242
+ },
243
+ "unit": {
244
+ "type": "string",
245
+ "enum": [
246
+ "set",
247
+ "item",
248
+ "unit",
249
+ "hour",
250
+ "day",
251
+ "month",
252
+ "person",
253
+ "person_month",
254
+ "person_day"
255
+ ]
256
+ },
257
+ "unit_price": {
258
+ "type": "integer"
259
+ },
260
+ "tax_rate": {
261
+ "type": "string",
262
+ "enum": [
263
+ "10",
264
+ "8",
265
+ "0"
266
+ ]
267
+ },
268
+ "delivery_date": {
269
+ "type": [
270
+ "string",
271
+ "null"
272
+ ],
273
+ "format": "date-time"
274
+ }
275
+ },
276
+ "required": [
277
+ "item_name",
278
+ "quantity",
279
+ "unit",
280
+ "unit_price",
281
+ "tax_rate"
282
+ ]
283
+ },
284
+ "minItems": 1
285
+ },
286
+ "recipients": {
287
+ "type": "array",
288
+ "items": {
289
+ "type": "object",
290
+ "properties": {
291
+ "customer_contact_id": {
292
+ "type": "string",
293
+ "maxLength": 64
294
+ },
295
+ "recipient_type": {
296
+ "type": [
297
+ "string",
298
+ "null"
299
+ ],
300
+ "enum": [
301
+ "to",
302
+ "cc",
303
+ null
304
+ ]
305
+ }
306
+ },
307
+ "required": [
308
+ "customer_contact_id"
309
+ ]
310
+ },
311
+ "maxItems": 50
312
+ }
313
+ },
314
+ "required": [
315
+ "title",
316
+ "project_id",
317
+ "invoice_date",
318
+ "details"
319
+ ],
320
+ "title": "InvoiceStoreRequest"
321
+ }
322
+ },
323
+ "resultPath": null,
324
+ "risk": "write",
325
+ "aliases": []
326
+ },
327
+ {
328
+ "name": "create-payment-link",
329
+ "domain": "invoice",
330
+ "operationId": "invoice.createPaymentLink",
331
+ "method": "POST",
332
+ "path": "/v2/sales/invoices/{id}/create-payment-link",
333
+ "summary": "請求書の支払いリンク生成",
334
+ "pathParams": [
335
+ {
336
+ "name": "id",
337
+ "type": "integer",
338
+ "required": true,
339
+ "source": "spec"
340
+ }
341
+ ],
342
+ "queryParams": [],
343
+ "body": {
344
+ "schema": {
345
+ "type": "object",
346
+ "properties": {
347
+ "success_url": {
348
+ "type": "string"
349
+ },
350
+ "cancel_url": {
351
+ "type": "string"
352
+ }
353
+ }
354
+ }
355
+ },
356
+ "resultPath": null,
357
+ "risk": "write",
358
+ "aliases": []
359
+ },
360
+ {
361
+ "name": "delete",
362
+ "domain": "invoice",
363
+ "operationId": "invoice.destroy",
364
+ "method": "DELETE",
365
+ "path": "/v2/sales/invoices/{id}",
366
+ "summary": "",
367
+ "pathParams": [
368
+ {
369
+ "name": "id",
370
+ "type": "string",
371
+ "required": true,
372
+ "source": "spec"
373
+ }
374
+ ],
375
+ "queryParams": [],
376
+ "body": null,
377
+ "resultPath": null,
378
+ "risk": "destructive",
379
+ "aliases": []
380
+ },
381
+ {
382
+ "name": "export",
383
+ "domain": "invoice",
384
+ "operationId": "invoice.export",
385
+ "method": "GET",
386
+ "path": "/v2/sales/invoices/export",
387
+ "summary": "請求一覧CSV出力",
388
+ "pathParams": [],
389
+ "queryParams": [
390
+ {
391
+ "name": "sort_column",
392
+ "type": "string",
393
+ "required": false,
394
+ "source": "spec"
395
+ },
396
+ {
397
+ "name": "sort_direction",
398
+ "type": "string",
399
+ "required": false,
400
+ "source": "spec"
401
+ },
402
+ {
403
+ "name": "limit",
404
+ "type": "integer",
405
+ "required": false,
406
+ "description": "1ページあたりの件数",
407
+ "source": "curation"
408
+ },
409
+ {
410
+ "name": "cursor",
411
+ "type": "string",
412
+ "required": false,
413
+ "description": "次ページの取得に使うカーソル",
414
+ "source": "curation"
415
+ }
416
+ ],
417
+ "body": null,
418
+ "resultPath": null,
419
+ "risk": "read",
420
+ "aliases": []
421
+ },
422
+ {
423
+ "name": "export-mf-journal",
424
+ "domain": "invoice",
425
+ "operationId": "invoice.exportMfJournal",
426
+ "method": "GET",
427
+ "path": "/v2/sales/invoices/export-mf-journal",
428
+ "summary": "請求一覧CSV出力(MF会計仕訳形式・企業ごと集約)",
429
+ "pathParams": [],
430
+ "queryParams": [
431
+ {
432
+ "name": "debit_account",
433
+ "type": "string",
434
+ "required": false,
435
+ "source": "spec"
436
+ },
437
+ {
438
+ "name": "credit_account",
439
+ "type": "string",
440
+ "required": false,
441
+ "source": "spec"
442
+ },
443
+ {
444
+ "name": "invoice_date_from",
445
+ "type": "string",
446
+ "required": false,
447
+ "source": "spec"
448
+ },
449
+ {
450
+ "name": "limit",
451
+ "type": "integer",
452
+ "required": false,
453
+ "description": "1ページあたりの件数",
454
+ "source": "curation"
455
+ },
456
+ {
457
+ "name": "cursor",
458
+ "type": "string",
459
+ "required": false,
460
+ "description": "次ページの取得に使うカーソル",
461
+ "source": "curation"
462
+ }
463
+ ],
464
+ "body": null,
465
+ "resultPath": null,
466
+ "risk": "read",
467
+ "aliases": []
468
+ },
469
+ {
470
+ "name": "get",
471
+ "domain": "invoice",
472
+ "operationId": "invoice.show",
473
+ "method": "GET",
474
+ "path": "/v2/sales/invoices/{id}",
475
+ "summary": "請求詳細取得",
476
+ "pathParams": [
477
+ {
478
+ "name": "id",
479
+ "type": "string",
480
+ "required": true,
481
+ "source": "spec"
482
+ }
483
+ ],
484
+ "queryParams": [
485
+ {
486
+ "name": "limit",
487
+ "type": "integer",
488
+ "required": false,
489
+ "description": "1ページあたりの件数",
490
+ "source": "curation"
491
+ },
492
+ {
493
+ "name": "cursor",
494
+ "type": "string",
495
+ "required": false,
496
+ "description": "次ページの取得に使うカーソル",
497
+ "source": "curation"
498
+ }
499
+ ],
500
+ "body": null,
501
+ "resultPath": null,
502
+ "risk": "read",
503
+ "aliases": []
504
+ },
505
+ {
506
+ "name": "list",
507
+ "domain": "invoice",
508
+ "operationId": "invoice.index",
509
+ "method": "GET",
510
+ "path": "/v2/sales/invoices",
511
+ "summary": "請求一覧取得",
512
+ "pathParams": [],
513
+ "queryParams": [
514
+ {
515
+ "name": "sort_column",
516
+ "type": "string",
517
+ "required": false,
518
+ "source": "spec"
519
+ },
520
+ {
521
+ "name": "sort_direction",
522
+ "type": "string",
523
+ "required": false,
524
+ "source": "spec"
525
+ },
526
+ {
527
+ "name": "consolidated_view",
528
+ "type": "boolean",
529
+ "required": false,
530
+ "source": "spec"
531
+ },
532
+ {
533
+ "name": "limit",
534
+ "type": "integer",
535
+ "required": false,
536
+ "description": "1ページあたりの件数",
537
+ "source": "curation"
538
+ },
539
+ {
540
+ "name": "cursor",
541
+ "type": "string",
542
+ "required": false,
543
+ "description": "次ページの取得に使うカーソル",
544
+ "source": "curation"
545
+ }
546
+ ],
547
+ "body": null,
548
+ "resultPath": null,
549
+ "risk": "read",
550
+ "aliases": []
551
+ },
552
+ {
553
+ "name": "send-email",
554
+ "domain": "invoice",
555
+ "operationId": "invoice.sendEmail",
556
+ "method": "POST",
557
+ "path": "/v2/sales/invoices/{id}/send-email",
558
+ "summary": "請求書メール送信",
559
+ "pathParams": [
560
+ {
561
+ "name": "id",
562
+ "type": "string",
563
+ "required": true,
564
+ "source": "spec"
565
+ }
566
+ ],
567
+ "queryParams": [],
568
+ "body": {
569
+ "schema": {
570
+ "type": "object",
571
+ "properties": {
572
+ "to": {
573
+ "type": "array",
574
+ "items": {
575
+ "type": "string",
576
+ "format": "email"
577
+ },
578
+ "minItems": 1
579
+ },
580
+ "cc": {
581
+ "type": [
582
+ "array",
583
+ "null"
584
+ ],
585
+ "items": {
586
+ "type": [
587
+ "string",
588
+ "null"
589
+ ],
590
+ "format": "email"
591
+ }
592
+ },
593
+ "message": {
594
+ "type": [
595
+ "string",
596
+ "null"
597
+ ],
598
+ "maxLength": 2000
599
+ }
600
+ },
601
+ "required": [
602
+ "to"
603
+ ],
604
+ "title": "InvoiceSendEmailRequest"
605
+ }
606
+ },
607
+ "resultPath": null,
608
+ "risk": "write",
609
+ "aliases": []
610
+ },
611
+ {
612
+ "name": "uncancel",
613
+ "domain": "invoice",
614
+ "operationId": "invoice.uncancel",
615
+ "method": "DELETE",
616
+ "path": "/v2/sales/invoices/{id}/cancel",
617
+ "summary": "請求の取消(無効)を解除する",
618
+ "pathParams": [
619
+ {
620
+ "name": "id",
621
+ "type": "string",
622
+ "required": true,
623
+ "source": "spec"
624
+ }
625
+ ],
626
+ "queryParams": [],
627
+ "body": null,
628
+ "resultPath": null,
629
+ "risk": "destructive",
630
+ "aliases": []
631
+ },
632
+ {
633
+ "name": "update",
634
+ "domain": "invoice",
635
+ "operationId": "invoice.update",
636
+ "method": "PUT",
637
+ "path": "/v2/sales/invoices/{id}",
638
+ "summary": "請求更新",
639
+ "pathParams": [
640
+ {
641
+ "name": "id",
642
+ "type": "string",
643
+ "required": true,
644
+ "source": "spec"
645
+ }
646
+ ],
647
+ "queryParams": [],
648
+ "body": {
649
+ "schema": {
650
+ "type": "object",
651
+ "properties": {
652
+ "title": {
653
+ "type": "string",
654
+ "maxLength": 500
655
+ },
656
+ "company_id": {
657
+ "type": [
658
+ "integer",
659
+ "null"
660
+ ]
661
+ },
662
+ "project_id": {
663
+ "type": [
664
+ "string",
665
+ "null"
666
+ ],
667
+ "maxLength": 36
668
+ },
669
+ "invoice_user_id": {
670
+ "type": [
671
+ "string",
672
+ "null"
673
+ ],
674
+ "maxLength": 36
675
+ },
676
+ "business_place_id": {
677
+ "type": [
678
+ "integer",
679
+ "null"
680
+ ]
681
+ },
682
+ "seal_impression_id": {
683
+ "type": [
684
+ "integer",
685
+ "null"
686
+ ]
687
+ },
688
+ "payee_id": {
689
+ "type": [
690
+ "integer",
691
+ "null"
692
+ ]
693
+ },
694
+ "status": {
695
+ "type": [
696
+ "string",
697
+ "null"
698
+ ],
699
+ "enum": [
700
+ "new",
701
+ "create_completed",
702
+ "in_progress",
703
+ "approved",
704
+ "rejected",
705
+ "submitted",
706
+ "manager_confirmation",
707
+ "invoice_issued",
708
+ "sent_to_client",
709
+ "archived",
710
+ "deleted",
711
+ "lost",
712
+ null
713
+ ]
714
+ },
715
+ "invoice_date": {
716
+ "type": "string",
717
+ "format": "date-time"
718
+ },
719
+ "delivery_date": {
720
+ "type": [
721
+ "string",
722
+ "null"
723
+ ],
724
+ "format": "date-time"
725
+ },
726
+ "inspection_date": {
727
+ "type": [
728
+ "string",
729
+ "null"
730
+ ],
731
+ "format": "date-time"
732
+ },
733
+ "due_date": {
734
+ "type": [
735
+ "string",
736
+ "null"
737
+ ],
738
+ "format": "date-time"
739
+ },
740
+ "terms": {
741
+ "type": [
742
+ "string",
743
+ "null"
744
+ ]
745
+ },
746
+ "memo": {
747
+ "type": [
748
+ "string",
749
+ "null"
750
+ ]
751
+ },
752
+ "internal_memo": {
753
+ "type": [
754
+ "string",
755
+ "null"
756
+ ],
757
+ "maxLength": 5000
758
+ },
759
+ "approval_comment": {
760
+ "type": [
761
+ "string",
762
+ "null"
763
+ ],
764
+ "maxLength": 1000
765
+ },
766
+ "manage_form_data": {
767
+ "type": [
768
+ "array",
769
+ "null"
770
+ ],
771
+ "items": {
772
+ "type": "string"
773
+ }
774
+ },
775
+ "details": {
776
+ "type": "array",
777
+ "items": {
778
+ "type": "object",
779
+ "properties": {
780
+ "item_name": {
781
+ "type": "string",
782
+ "maxLength": 500
783
+ },
784
+ "quantity": {
785
+ "type": "number",
786
+ "minimum": 0
787
+ },
788
+ "unit": {
789
+ "type": "string",
790
+ "enum": [
791
+ "set",
792
+ "item",
793
+ "unit",
794
+ "hour",
795
+ "day",
796
+ "month",
797
+ "person",
798
+ "person_month",
799
+ "person_day"
800
+ ]
801
+ },
802
+ "unit_price": {
803
+ "type": "integer"
804
+ },
805
+ "tax_rate": {
806
+ "type": "string",
807
+ "enum": [
808
+ "10",
809
+ "8",
810
+ "0"
811
+ ]
812
+ },
813
+ "delivery_date": {
814
+ "type": [
815
+ "string",
816
+ "null"
817
+ ],
818
+ "format": "date-time"
819
+ }
820
+ }
821
+ },
822
+ "minItems": 1
823
+ },
824
+ "recipients": {
825
+ "type": "array",
826
+ "items": {
827
+ "type": "object",
828
+ "properties": {
829
+ "customer_contact_id": {
830
+ "type": "string",
831
+ "maxLength": 64
832
+ },
833
+ "recipient_type": {
834
+ "type": [
835
+ "string",
836
+ "null"
837
+ ],
838
+ "enum": [
839
+ "to",
840
+ "cc",
841
+ null
842
+ ]
843
+ }
844
+ },
845
+ "required": [
846
+ "customer_contact_id"
847
+ ]
848
+ },
849
+ "maxItems": 50
850
+ }
851
+ },
852
+ "title": "InvoiceUpdateRequest"
853
+ }
854
+ },
855
+ "resultPath": null,
856
+ "risk": "write",
857
+ "aliases": []
858
+ },
859
+ {
860
+ "name": "update-internal-memo",
861
+ "domain": "invoice",
862
+ "operationId": "invoice.updateInternalMemo",
863
+ "method": "PATCH",
864
+ "path": "/v2/sales/invoices/{id}/internal-memo",
865
+ "summary": "請求の社内共有メモを更新する",
866
+ "pathParams": [
867
+ {
868
+ "name": "id",
869
+ "type": "string",
870
+ "required": true,
871
+ "source": "spec"
872
+ }
873
+ ],
874
+ "queryParams": [],
875
+ "body": {
876
+ "schema": {
877
+ "type": "object",
878
+ "properties": {
879
+ "internal_memo": {
880
+ "type": [
881
+ "string",
882
+ "null"
883
+ ],
884
+ "maxLength": 5000
885
+ }
886
+ },
887
+ "required": [
888
+ "internal_memo"
889
+ ]
890
+ }
891
+ },
892
+ "resultPath": null,
893
+ "risk": "write",
894
+ "aliases": []
895
+ }
896
+ ]
897
+ }