freee-demo-kit 0.1.4

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 (157) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +280 -0
  3. package/dist/cli.d.ts +3 -0
  4. package/dist/cli.d.ts.map +1 -0
  5. package/dist/cli.js +35 -0
  6. package/dist/cli.js.map +1 -0
  7. package/dist/commands/auth.d.ts +3 -0
  8. package/dist/commands/auth.d.ts.map +1 -0
  9. package/dist/commands/auth.js +57 -0
  10. package/dist/commands/auth.js.map +1 -0
  11. package/dist/commands/corrupt.d.ts +3 -0
  12. package/dist/commands/corrupt.d.ts.map +1 -0
  13. package/dist/commands/corrupt.js +72 -0
  14. package/dist/commands/corrupt.js.map +1 -0
  15. package/dist/commands/dry-run.d.ts +3 -0
  16. package/dist/commands/dry-run.d.ts.map +1 -0
  17. package/dist/commands/dry-run.js +59 -0
  18. package/dist/commands/dry-run.js.map +1 -0
  19. package/dist/commands/list.d.ts +3 -0
  20. package/dist/commands/list.d.ts.map +1 -0
  21. package/dist/commands/list.js +58 -0
  22. package/dist/commands/list.js.map +1 -0
  23. package/dist/commands/load-all.d.ts +3 -0
  24. package/dist/commands/load-all.d.ts.map +1 -0
  25. package/dist/commands/load-all.js +69 -0
  26. package/dist/commands/load-all.js.map +1 -0
  27. package/dist/commands/load.d.ts +25 -0
  28. package/dist/commands/load.d.ts.map +1 -0
  29. package/dist/commands/load.js +197 -0
  30. package/dist/commands/load.js.map +1 -0
  31. package/dist/commands/reset.d.ts +3 -0
  32. package/dist/commands/reset.d.ts.map +1 -0
  33. package/dist/commands/reset.js +117 -0
  34. package/dist/commands/reset.js.map +1 -0
  35. package/dist/commands/setup.d.ts +4 -0
  36. package/dist/commands/setup.d.ts.map +1 -0
  37. package/dist/commands/setup.js +190 -0
  38. package/dist/commands/setup.js.map +1 -0
  39. package/dist/commands/status.d.ts +3 -0
  40. package/dist/commands/status.d.ts.map +1 -0
  41. package/dist/commands/status.js +25 -0
  42. package/dist/commands/status.js.map +1 -0
  43. package/dist/commands/validate.d.ts +5 -0
  44. package/dist/commands/validate.d.ts.map +1 -0
  45. package/dist/commands/validate.js +132 -0
  46. package/dist/commands/validate.js.map +1 -0
  47. package/dist/commands/verify.d.ts +3 -0
  48. package/dist/commands/verify.d.ts.map +1 -0
  49. package/dist/commands/verify.js +87 -0
  50. package/dist/commands/verify.js.map +1 -0
  51. package/dist/commands/whoami.d.ts +3 -0
  52. package/dist/commands/whoami.d.ts.map +1 -0
  53. package/dist/commands/whoami.js +31 -0
  54. package/dist/commands/whoami.js.map +1 -0
  55. package/dist/types/freee.d.ts +112 -0
  56. package/dist/types/freee.d.ts.map +1 -0
  57. package/dist/types/freee.js +3 -0
  58. package/dist/types/freee.js.map +1 -0
  59. package/dist/types/preset.d.ts +14 -0
  60. package/dist/types/preset.d.ts.map +1 -0
  61. package/dist/types/preset.js +2 -0
  62. package/dist/types/preset.js.map +1 -0
  63. package/dist/utils/accounting-validator.d.ts +13 -0
  64. package/dist/utils/accounting-validator.d.ts.map +1 -0
  65. package/dist/utils/accounting-validator.js +95 -0
  66. package/dist/utils/accounting-validator.js.map +1 -0
  67. package/dist/utils/auth-flow.d.ts +17 -0
  68. package/dist/utils/auth-flow.d.ts.map +1 -0
  69. package/dist/utils/auth-flow.js +137 -0
  70. package/dist/utils/auth-flow.js.map +1 -0
  71. package/dist/utils/config.d.ts +11 -0
  72. package/dist/utils/config.d.ts.map +1 -0
  73. package/dist/utils/config.js +13 -0
  74. package/dist/utils/config.js.map +1 -0
  75. package/dist/utils/confirm-company.d.ts +7 -0
  76. package/dist/utils/confirm-company.d.ts.map +1 -0
  77. package/dist/utils/confirm-company.js +20 -0
  78. package/dist/utils/confirm-company.js.map +1 -0
  79. package/dist/utils/corrupt-injector.d.ts +17 -0
  80. package/dist/utils/corrupt-injector.d.ts.map +1 -0
  81. package/dist/utils/corrupt-injector.js +123 -0
  82. package/dist/utils/corrupt-injector.js.map +1 -0
  83. package/dist/utils/env-loader.d.ts +9 -0
  84. package/dist/utils/env-loader.d.ts.map +1 -0
  85. package/dist/utils/env-loader.js +12 -0
  86. package/dist/utils/env-loader.js.map +1 -0
  87. package/dist/utils/env-writer.d.ts +10 -0
  88. package/dist/utils/env-writer.d.ts.map +1 -0
  89. package/dist/utils/env-writer.js +40 -0
  90. package/dist/utils/env-writer.js.map +1 -0
  91. package/dist/utils/freee-api.d.ts +24 -0
  92. package/dist/utils/freee-api.d.ts.map +1 -0
  93. package/dist/utils/freee-api.js +175 -0
  94. package/dist/utils/freee-api.js.map +1 -0
  95. package/dist/utils/logger.d.ts +6 -0
  96. package/dist/utils/logger.d.ts.map +1 -0
  97. package/dist/utils/logger.js +22 -0
  98. package/dist/utils/logger.js.map +1 -0
  99. package/dist/utils/pkce.d.ts +12 -0
  100. package/dist/utils/pkce.d.ts.map +1 -0
  101. package/dist/utils/pkce.js +18 -0
  102. package/dist/utils/pkce.js.map +1 -0
  103. package/dist/utils/preset-loader.d.ts +3 -0
  104. package/dist/utils/preset-loader.d.ts.map +1 -0
  105. package/dist/utils/preset-loader.js +47 -0
  106. package/dist/utils/preset-loader.js.map +1 -0
  107. package/dist/utils/preset-validator.d.ts +10 -0
  108. package/dist/utils/preset-validator.d.ts.map +1 -0
  109. package/dist/utils/preset-validator.js +23 -0
  110. package/dist/utils/preset-validator.js.map +1 -0
  111. package/dist/utils/state-store.d.ts +6 -0
  112. package/dist/utils/state-store.d.ts.map +1 -0
  113. package/dist/utils/state-store.js +37 -0
  114. package/dist/utils/state-store.js.map +1 -0
  115. package/dist/utils/token-store.d.ts +6 -0
  116. package/dist/utils/token-store.d.ts.map +1 -0
  117. package/dist/utils/token-store.js +30 -0
  118. package/dist/utils/token-store.js.map +1 -0
  119. package/package.json +58 -0
  120. package/presets/README.md +182 -0
  121. package/presets/accounting/README.md +3 -0
  122. package/presets/accounting/construction/preset.json +309 -0
  123. package/presets/accounting/freelance-invoice/preset.json +261 -0
  124. package/presets/accounting/full-year/preset.json +1534 -0
  125. package/presets/accounting/it-startup/preset.json +472 -0
  126. package/presets/accounting/manufacturing/preset.json +333 -0
  127. package/presets/accounting/medical/preset.json +453 -0
  128. package/presets/accounting/non-profit/preset.json +375 -0
  129. package/presets/accounting/npo-subsidy/preset.json +454 -0
  130. package/presets/accounting/payroll-agency/preset.json +286 -0
  131. package/presets/accounting/quickstart/preset.json +917 -0
  132. package/presets/accounting/real-estate/preset.json +453 -0
  133. package/presets/accounting/restaurant/preset.json +349 -0
  134. package/presets/accounting/retail/preset.json +536 -0
  135. package/presets/accounting/sole-proprietor/preset.json +408 -0
  136. package/presets/advanced/multi-company/README.md +3 -0
  137. package/presets/advanced/multi-company/preset.json +640 -0
  138. package/presets/advanced/multi-period/README.md +3 -0
  139. package/presets/advanced/multi-period/preset.json +633 -0
  140. package/presets/common/depreciation/preset.json +433 -0
  141. package/presets/errors/consumption-tax/preset.json +136 -0
  142. package/presets/errors/depreciation-method/preset.json +133 -0
  143. package/presets/errors/duplicate-journal/preset.json +181 -0
  144. package/presets/errors/entertainment/preset.json +108 -0
  145. package/presets/errors/mixed/preset.json +171 -0
  146. package/presets/errors/officer-pay/preset.json +100 -0
  147. package/presets/errors/overdue-receivable/preset.json +157 -0
  148. package/presets/errors/tax-code/preset.json +140 -0
  149. package/presets/errors/year-end-closing/preset.json +163 -0
  150. package/presets/expenses/README.md +3 -0
  151. package/presets/expenses/quickstart/preset.json +240 -0
  152. package/presets/hr/README.md +3 -0
  153. package/presets/hr/quickstart/preset.json +443 -0
  154. package/presets/invoices/README.md +3 -0
  155. package/presets/invoices/quickstart/preset.json +246 -0
  156. package/presets/invoices/subscription/preset.json +263 -0
  157. package/presets/unclassified/quickstart/preset.json +182 -0
@@ -0,0 +1,286 @@
1
+ {
2
+ "name": "社労士・給与計算代行",
3
+ "description": "社会保険労務士や給与計算代行事業者向けの会計データ。顧問料収入・給与計算代行収入の管理、社会保険料の預り金処理、従業員への立替払いと精算など、社労士事務所・給与代行会社の実務に即したシナリオ。",
4
+ "version": "1.0.0",
5
+ "expected": {
6
+ "walletables": 2,
7
+ "deals": 27,
8
+ "manualJournals": 6
9
+ },
10
+ "data": {
11
+ "walletables": [
12
+ {
13
+ "type": "bank_account",
14
+ "name": "みどり銀行 普通預金(事務所運営用)",
15
+ "bank_id": 2407
16
+ },
17
+ {
18
+ "type": "bank_account",
19
+ "name": "さくら銀行 普通預金(社会保険料預り専用)",
20
+ "bank_id": 2407
21
+ }
22
+ ],
23
+ "deals": [
24
+ {
25
+ "issue_date": "2026-01-31",
26
+ "type": "income",
27
+ "partner_name": "株式会社アルファ工業",
28
+ "details": [
29
+ { "account_item_name": "売上高", "tax_code": 21, "amount": 55000, "description": "社会保険・労務顧問料 1月(5万円/月)" }
30
+ ]
31
+ },
32
+ {
33
+ "issue_date": "2026-02-28",
34
+ "type": "income",
35
+ "partner_name": "株式会社アルファ工業",
36
+ "details": [
37
+ { "account_item_name": "売上高", "tax_code": 21, "amount": 55000, "description": "社会保険・労務顧問料 2月" }
38
+ ]
39
+ },
40
+ {
41
+ "issue_date": "2026-03-31",
42
+ "type": "income",
43
+ "partner_name": "株式会社アルファ工業",
44
+ "details": [
45
+ { "account_item_name": "売上高", "tax_code": 21, "amount": 55000, "description": "社会保険・労務顧問料 3月" }
46
+ ]
47
+ },
48
+ {
49
+ "issue_date": "2026-01-31",
50
+ "type": "income",
51
+ "partner_name": "合同会社ベータサービス",
52
+ "details": [
53
+ { "account_item_name": "売上高", "tax_code": 21, "amount": 33000, "description": "給与計算代行 1月(10名分 3,000円/名×10)" }
54
+ ]
55
+ },
56
+ {
57
+ "issue_date": "2026-02-28",
58
+ "type": "income",
59
+ "partner_name": "合同会社ベータサービス",
60
+ "details": [
61
+ { "account_item_name": "売上高", "tax_code": 21, "amount": 33000, "description": "給与計算代行 2月" }
62
+ ]
63
+ },
64
+ {
65
+ "issue_date": "2026-03-31",
66
+ "type": "income",
67
+ "partner_name": "合同会社ベータサービス",
68
+ "details": [
69
+ { "account_item_name": "売上高", "tax_code": 21, "amount": 33000, "description": "給与計算代行 3月" }
70
+ ]
71
+ },
72
+ {
73
+ "issue_date": "2026-01-31",
74
+ "type": "income",
75
+ "partner_name": "株式会社ガンマ商事",
76
+ "details": [
77
+ { "account_item_name": "売上高", "tax_code": 21, "amount": 77000, "description": "社会保険・労務顧問料 + 給与計算代行 1月(小規模事業者 一括プラン)" }
78
+ ]
79
+ },
80
+ {
81
+ "issue_date": "2026-02-28",
82
+ "type": "income",
83
+ "partner_name": "株式会社ガンマ商事",
84
+ "details": [
85
+ { "account_item_name": "売上高", "tax_code": 21, "amount": 77000, "description": "社会保険・労務顧問料 + 給与計算代行 2月" }
86
+ ]
87
+ },
88
+ {
89
+ "issue_date": "2026-03-31",
90
+ "type": "income",
91
+ "partner_name": "株式会社ガンマ商事",
92
+ "details": [
93
+ { "account_item_name": "売上高", "tax_code": 21, "amount": 77000, "description": "社会保険・労務顧問料 + 給与計算代行 3月" }
94
+ ]
95
+ },
96
+ {
97
+ "issue_date": "2026-01-15",
98
+ "type": "income",
99
+ "partner_name": "株式会社アルファ工業",
100
+ "details": [
101
+ { "account_item_name": "売上高", "tax_code": 21, "amount": 110000, "description": "労働保険料申告・納付代行 1月(年度更新手続き)" }
102
+ ]
103
+ },
104
+ {
105
+ "issue_date": "2026-02-20",
106
+ "type": "income",
107
+ "partner_name": "合同会社ベータサービス",
108
+ "details": [
109
+ { "account_item_name": "売上高", "tax_code": 21, "amount": 55000, "description": "育児休業給付金申請代行 手数料" }
110
+ ]
111
+ },
112
+ {
113
+ "issue_date": "2026-03-15",
114
+ "type": "income",
115
+ "partner_name": "株式会社ガンマ商事",
116
+ "details": [
117
+ { "account_item_name": "売上高", "tax_code": 21, "amount": 44000, "description": "算定基礎届作成代行 手数料" }
118
+ ]
119
+ },
120
+ {
121
+ "issue_date": "2026-01-31",
122
+ "type": "income",
123
+ "partner_name": "株式会社アルファ工業",
124
+ "details": [
125
+ { "account_item_name": "預り金", "tax_code": 0, "amount": 285000, "description": "社会保険料預り金 1月(事業主負担分+従業員負担分の立替原資として預り)" }
126
+ ]
127
+ },
128
+ {
129
+ "issue_date": "2026-02-28",
130
+ "type": "income",
131
+ "partner_name": "株式会社アルファ工業",
132
+ "details": [
133
+ { "account_item_name": "預り金", "tax_code": 0, "amount": 285000, "description": "社会保険料預り金 2月" }
134
+ ]
135
+ },
136
+ {
137
+ "issue_date": "2026-03-31",
138
+ "type": "income",
139
+ "partner_name": "株式会社アルファ工業",
140
+ "details": [
141
+ { "account_item_name": "預り金", "tax_code": 0, "amount": 285000, "description": "社会保険料預り金 3月" }
142
+ ]
143
+ },
144
+ {
145
+ "issue_date": "2026-01-31",
146
+ "type": "expense",
147
+ "partner_name": "日本年金機構",
148
+ "details": [
149
+ { "account_item_name": "預り金", "tax_code": 0, "amount": 285000, "description": "社会保険料 機構納付 1月(アルファ工業分 預り金から支出)" }
150
+ ]
151
+ },
152
+ {
153
+ "issue_date": "2026-02-28",
154
+ "type": "expense",
155
+ "partner_name": "日本年金機構",
156
+ "details": [
157
+ { "account_item_name": "預り金", "tax_code": 0, "amount": 285000, "description": "社会保険料 機構納付 2月" }
158
+ ]
159
+ },
160
+ {
161
+ "issue_date": "2026-03-31",
162
+ "type": "expense",
163
+ "partner_name": "日本年金機構",
164
+ "details": [
165
+ { "account_item_name": "預り金", "tax_code": 0, "amount": 285000, "description": "社会保険料 機構納付 3月" }
166
+ ]
167
+ },
168
+ {
169
+ "issue_date": "2026-01-25",
170
+ "type": "expense",
171
+ "partner_name": "給与計算",
172
+ "details": [
173
+ { "account_item_name": "給料手当", "tax_code": 0, "amount": 450000, "description": "事務所スタッフ人件費 1月(社労士補助者2名・事務1名)" }
174
+ ]
175
+ },
176
+ {
177
+ "issue_date": "2026-02-25",
178
+ "type": "expense",
179
+ "partner_name": "給与計算",
180
+ "details": [
181
+ { "account_item_name": "給料手当", "tax_code": 0, "amount": 450000, "description": "事務所スタッフ人件費 2月" }
182
+ ]
183
+ },
184
+ {
185
+ "issue_date": "2026-03-25",
186
+ "type": "expense",
187
+ "partner_name": "給与計算",
188
+ "details": [
189
+ { "account_item_name": "給料手当", "tax_code": 0, "amount": 450000, "description": "事務所スタッフ人件費 3月" }
190
+ ]
191
+ },
192
+ {
193
+ "issue_date": "2026-01-10",
194
+ "type": "expense",
195
+ "partner_name": "ビジネスシェアスペース株式会社",
196
+ "details": [
197
+ { "account_item_name": "地代家賃", "tax_code": 34, "amount": 88000, "description": "事務所賃料 1月" }
198
+ ]
199
+ },
200
+ {
201
+ "issue_date": "2026-02-10",
202
+ "type": "expense",
203
+ "partner_name": "ビジネスシェアスペース株式会社",
204
+ "details": [
205
+ { "account_item_name": "地代家賃", "tax_code": 34, "amount": 88000, "description": "事務所賃料 2月" }
206
+ ]
207
+ },
208
+ {
209
+ "issue_date": "2026-03-10",
210
+ "type": "expense",
211
+ "partner_name": "ビジネスシェアスペース株式会社",
212
+ "details": [
213
+ { "account_item_name": "地代家賃", "tax_code": 34, "amount": 88000, "description": "事務所賃料 3月" }
214
+ ]
215
+ },
216
+ {
217
+ "issue_date": "2026-01-31",
218
+ "type": "expense",
219
+ "partner_name": "社労士会",
220
+ "details": [
221
+ { "account_item_name": "諸会費", "tax_code": 0, "amount": 10800, "description": "社会保険労務士会 会費 1月分" }
222
+ ]
223
+ },
224
+ {
225
+ "issue_date": "2026-01-15",
226
+ "type": "expense",
227
+ "partner_name": "コンピュータ機器株式会社",
228
+ "details": [
229
+ { "account_item_name": "消耗品費", "tax_code": 34, "amount": 22000, "description": "給与計算ソフト ライセンス更新費用" }
230
+ ]
231
+ },
232
+ {
233
+ "issue_date": "2026-02-28",
234
+ "type": "expense",
235
+ "partner_name": "専門書出版株式会社",
236
+ "details": [
237
+ { "account_item_name": "新聞図書費", "tax_code": 34, "amount": 8800, "description": "労働保険・社会保険 実務書籍" }
238
+ ]
239
+ }
240
+ ],
241
+ "manualJournals": [
242
+ {
243
+ "issue_date": "2026-01-31",
244
+ "details": [
245
+ { "entry_side": "debit", "account_item_name": "売掛金", "tax_code": 0, "amount": 330000, "description": "1月末 顧問料・代行料 売掛金計上" },
246
+ { "entry_side": "credit", "account_item_name": "売上高", "tax_code": 21, "amount": 330000, "description": "1月 売上計上(アルファ+ベータ+ガンマ 顧問料+代行料)" }
247
+ ]
248
+ },
249
+ {
250
+ "issue_date": "2026-02-28",
251
+ "details": [
252
+ { "entry_side": "debit", "account_item_name": "売掛金", "tax_code": 0, "amount": 220000, "description": "2月末 顧問料・代行料 売掛金計上" },
253
+ { "entry_side": "credit", "account_item_name": "売上高", "tax_code": 21, "amount": 220000, "description": "2月 売上計上" }
254
+ ]
255
+ },
256
+ {
257
+ "issue_date": "2026-03-31",
258
+ "details": [
259
+ { "entry_side": "debit", "account_item_name": "売掛金", "tax_code": 0, "amount": 253000, "description": "3月末 顧問料・代行料 売掛金計上" },
260
+ { "entry_side": "credit", "account_item_name": "売上高", "tax_code": 21, "amount": 253000, "description": "3月 売上計上" }
261
+ ]
262
+ },
263
+ {
264
+ "issue_date": "2026-01-31",
265
+ "details": [
266
+ { "entry_side": "debit", "account_item_name": "法定福利費", "tax_code": 0, "amount": 62000, "description": "1月 事務所従業員 社会保険料 事業主負担分" },
267
+ { "entry_side": "credit", "account_item_name": "未払費用", "tax_code": 0, "amount": 62000, "description": "1月 社会保険料 未払計上(翌月納付)" }
268
+ ]
269
+ },
270
+ {
271
+ "issue_date": "2026-02-28",
272
+ "details": [
273
+ { "entry_side": "debit", "account_item_name": "法定福利費", "tax_code": 0, "amount": 62000, "description": "2月 事務所従業員 社会保険料 事業主負担分" },
274
+ { "entry_side": "credit", "account_item_name": "未払費用", "tax_code": 0, "amount": 62000, "description": "2月 社会保険料 未払計上" }
275
+ ]
276
+ },
277
+ {
278
+ "issue_date": "2026-03-31",
279
+ "details": [
280
+ { "entry_side": "debit", "account_item_name": "法定福利費", "tax_code": 0, "amount": 62000, "description": "3月 事務所従業員 社会保険料 事業主負担分" },
281
+ { "entry_side": "credit", "account_item_name": "未払費用", "tax_code": 0, "amount": 62000, "description": "3月 社会保険料 未払計上" }
282
+ ]
283
+ }
284
+ ]
285
+ }
286
+ }