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,453 @@
1
+ {
2
+ "name": "不動産賃貸クイックスタート",
3
+ "description": "架空の不動産賃貸業(居住用3棟・事業用1棟)の3ヶ月分デモデータ。居住用賃貸(非課税)と事業用賃貸(課税)の混在、修繕費・管理費の処理を含む。",
4
+ "version": "1.0.0",
5
+ "expected": {
6
+ "walletables": 2,
7
+ "deals": 24,
8
+ "manualJournals": 6
9
+ },
10
+ "data": {
11
+ "walletables": [
12
+ {
13
+ "type": "bank_account",
14
+ "name": "ひばり信用金庫 賃料入金口座",
15
+ "bank_id": 2407
16
+ },
17
+ {
18
+ "type": "wallet",
19
+ "name": "現金"
20
+ }
21
+ ],
22
+ "deals": [
23
+ {
24
+ "issue_date": "2026-01-05",
25
+ "type": "income",
26
+ "partner_name": "居住用テナント 光陽マンション301号",
27
+ "details": [
28
+ {
29
+ "account_item_name": "役務収益",
30
+ "tax_code": 0,
31
+ "amount": 88000,
32
+ "description": "1月分 居住用家賃(非課税)"
33
+ }
34
+ ]
35
+ },
36
+ {
37
+ "issue_date": "2026-01-05",
38
+ "type": "income",
39
+ "partner_name": "居住用テナント 光陽マンション302号",
40
+ "details": [
41
+ {
42
+ "account_item_name": "役務収益",
43
+ "tax_code": 0,
44
+ "amount": 75000,
45
+ "description": "1月分 居住用家賃(非課税)"
46
+ }
47
+ ]
48
+ },
49
+ {
50
+ "issue_date": "2026-01-05",
51
+ "type": "income",
52
+ "partner_name": "居住用テナント 緑丘アパート101号",
53
+ "details": [
54
+ {
55
+ "account_item_name": "役務収益",
56
+ "tax_code": 0,
57
+ "amount": 65000,
58
+ "description": "1月分 居住用家賃(非課税)"
59
+ }
60
+ ]
61
+ },
62
+ {
63
+ "issue_date": "2026-01-05",
64
+ "type": "income",
65
+ "partner_name": "有限会社サンビジネスサービス",
66
+ "details": [
67
+ {
68
+ "account_item_name": "売上高",
69
+ "tax_code": 21,
70
+ "amount": 220000,
71
+ "description": "1月分 事業用物件賃料(課税)"
72
+ }
73
+ ]
74
+ },
75
+ {
76
+ "issue_date": "2026-01-10",
77
+ "type": "expense",
78
+ "partner_name": "不動産管理株式会社エステート",
79
+ "details": [
80
+ {
81
+ "account_item_name": "支払手数料",
82
+ "tax_code": 34,
83
+ "amount": 44800,
84
+ "description": "1月分 管理委託費(管理料4%)"
85
+ }
86
+ ]
87
+ },
88
+ {
89
+ "issue_date": "2026-01-15",
90
+ "type": "expense",
91
+ "partner_name": "光陽修繕サービス",
92
+ "details": [
93
+ {
94
+ "account_item_name": "修繕費",
95
+ "tax_code": 34,
96
+ "amount": 88000,
97
+ "description": "光陽マンション301号 エアコン修理"
98
+ }
99
+ ]
100
+ },
101
+ {
102
+ "issue_date": "2026-01-25",
103
+ "type": "expense",
104
+ "partner_name": "オーナー 宮川 正人",
105
+ "details": [
106
+ {
107
+ "account_item_name": "役員報酬",
108
+ "tax_code": 0,
109
+ "amount": 300000,
110
+ "description": "1月度 役員報酬(合同会社)"
111
+ }
112
+ ]
113
+ },
114
+ {
115
+ "issue_date": "2026-01-31",
116
+ "type": "expense",
117
+ "partner_name": "損害保険株式会社ホープ",
118
+ "details": [
119
+ {
120
+ "account_item_name": "保険料",
121
+ "tax_code": 0,
122
+ "amount": 45000,
123
+ "description": "1月分 火災保険料(月割)"
124
+ }
125
+ ]
126
+ },
127
+ {
128
+ "issue_date": "2026-02-05",
129
+ "type": "income",
130
+ "partner_name": "居住用テナント 光陽マンション301号",
131
+ "details": [
132
+ {
133
+ "account_item_name": "役務収益",
134
+ "tax_code": 0,
135
+ "amount": 88000,
136
+ "description": "2月分 居住用家賃(非課税)"
137
+ }
138
+ ]
139
+ },
140
+ {
141
+ "issue_date": "2026-02-05",
142
+ "type": "income",
143
+ "partner_name": "居住用テナント 光陽マンション302号",
144
+ "details": [
145
+ {
146
+ "account_item_name": "役務収益",
147
+ "tax_code": 0,
148
+ "amount": 75000,
149
+ "description": "2月分 居住用家賃(非課税)"
150
+ }
151
+ ]
152
+ },
153
+ {
154
+ "issue_date": "2026-02-05",
155
+ "type": "income",
156
+ "partner_name": "居住用テナント 緑丘アパート101号",
157
+ "details": [
158
+ {
159
+ "account_item_name": "役務収益",
160
+ "tax_code": 0,
161
+ "amount": 65000,
162
+ "description": "2月分 居住用家賃(非課税)"
163
+ }
164
+ ]
165
+ },
166
+ {
167
+ "issue_date": "2026-02-05",
168
+ "type": "income",
169
+ "partner_name": "有限会社サンビジネスサービス",
170
+ "details": [
171
+ {
172
+ "account_item_name": "売上高",
173
+ "tax_code": 21,
174
+ "amount": 220000,
175
+ "description": "2月分 事業用物件賃料(課税)"
176
+ }
177
+ ]
178
+ },
179
+ {
180
+ "issue_date": "2026-02-10",
181
+ "type": "expense",
182
+ "partner_name": "不動産管理株式会社エステート",
183
+ "details": [
184
+ {
185
+ "account_item_name": "支払手数料",
186
+ "tax_code": 34,
187
+ "amount": 44800,
188
+ "description": "2月分 管理委託費"
189
+ }
190
+ ]
191
+ },
192
+ {
193
+ "issue_date": "2026-02-15",
194
+ "type": "expense",
195
+ "partner_name": "プロウッド建設",
196
+ "details": [
197
+ {
198
+ "account_item_name": "修繕費",
199
+ "tax_code": 34,
200
+ "amount": 165000,
201
+ "description": "緑丘アパート共用部 床補修工事"
202
+ }
203
+ ]
204
+ },
205
+ {
206
+ "issue_date": "2026-02-25",
207
+ "type": "expense",
208
+ "partner_name": "オーナー 宮川 正人",
209
+ "details": [
210
+ {
211
+ "account_item_name": "役員報酬",
212
+ "tax_code": 0,
213
+ "amount": 300000,
214
+ "description": "2月度 役員報酬"
215
+ }
216
+ ]
217
+ },
218
+ {
219
+ "issue_date": "2026-02-28",
220
+ "type": "expense",
221
+ "partner_name": "損害保険株式会社ホープ",
222
+ "details": [
223
+ {
224
+ "account_item_name": "保険料",
225
+ "tax_code": 0,
226
+ "amount": 45000,
227
+ "description": "2月分 火災保険料(月割)"
228
+ }
229
+ ]
230
+ },
231
+ {
232
+ "issue_date": "2026-03-05",
233
+ "type": "income",
234
+ "partner_name": "居住用テナント 光陽マンション301号",
235
+ "details": [
236
+ {
237
+ "account_item_name": "役務収益",
238
+ "tax_code": 0,
239
+ "amount": 88000,
240
+ "description": "3月分 居住用家賃(非課税)"
241
+ }
242
+ ]
243
+ },
244
+ {
245
+ "issue_date": "2026-03-05",
246
+ "type": "income",
247
+ "partner_name": "居住用テナント 光陽マンション302号",
248
+ "details": [
249
+ {
250
+ "account_item_name": "役務収益",
251
+ "tax_code": 0,
252
+ "amount": 75000,
253
+ "description": "3月分 居住用家賃(非課税)"
254
+ }
255
+ ]
256
+ },
257
+ {
258
+ "issue_date": "2026-03-05",
259
+ "type": "income",
260
+ "partner_name": "居住用テナント 緑丘アパート101号",
261
+ "details": [
262
+ {
263
+ "account_item_name": "役務収益",
264
+ "tax_code": 0,
265
+ "amount": 65000,
266
+ "description": "3月分 居住用家賃(非課税)"
267
+ }
268
+ ]
269
+ },
270
+ {
271
+ "issue_date": "2026-03-05",
272
+ "type": "income",
273
+ "partner_name": "有限会社サンビジネスサービス",
274
+ "details": [
275
+ {
276
+ "account_item_name": "売上高",
277
+ "tax_code": 21,
278
+ "amount": 220000,
279
+ "description": "3月分 事業用物件賃料(課税)"
280
+ }
281
+ ]
282
+ },
283
+ {
284
+ "issue_date": "2026-03-10",
285
+ "type": "expense",
286
+ "partner_name": "不動産管理株式会社エステート",
287
+ "details": [
288
+ {
289
+ "account_item_name": "支払手数料",
290
+ "tax_code": 34,
291
+ "amount": 44800,
292
+ "description": "3月分 管理委託費"
293
+ }
294
+ ]
295
+ },
296
+ {
297
+ "issue_date": "2026-03-20",
298
+ "type": "expense",
299
+ "partner_name": "光陽修繕サービス",
300
+ "details": [
301
+ {
302
+ "account_item_name": "修繕費",
303
+ "tax_code": 34,
304
+ "amount": 55000,
305
+ "description": "光陽マンション302号 給水栓修理"
306
+ }
307
+ ]
308
+ },
309
+ {
310
+ "issue_date": "2026-03-25",
311
+ "type": "expense",
312
+ "partner_name": "オーナー 宮川 正人",
313
+ "details": [
314
+ {
315
+ "account_item_name": "役員報酬",
316
+ "tax_code": 0,
317
+ "amount": 300000,
318
+ "description": "3月度 役員報酬"
319
+ }
320
+ ]
321
+ },
322
+ {
323
+ "issue_date": "2026-03-31",
324
+ "type": "expense",
325
+ "partner_name": "損害保険株式会社ホープ",
326
+ "details": [
327
+ {
328
+ "account_item_name": "保険料",
329
+ "tax_code": 0,
330
+ "amount": 45000,
331
+ "description": "3月分 火災保険料(月割)"
332
+ }
333
+ ]
334
+ }
335
+ ],
336
+ "manualJournals": [
337
+ {
338
+ "issue_date": "2026-01-31",
339
+ "details": [
340
+ {
341
+ "entry_side": "debit",
342
+ "account_item_name": "減価償却費",
343
+ "tax_code": 0,
344
+ "amount": 125000,
345
+ "description": "1月 建物減価償却(¥90,000,000 ÷ 720ヶ月)"
346
+ },
347
+ {
348
+ "entry_side": "credit",
349
+ "account_item_name": "建物",
350
+ "tax_code": 0,
351
+ "amount": 125000,
352
+ "description": "1月 建物減価償却累計"
353
+ }
354
+ ]
355
+ },
356
+ {
357
+ "issue_date": "2026-01-31",
358
+ "details": [
359
+ {
360
+ "entry_side": "debit",
361
+ "account_item_name": "未収入金",
362
+ "tax_code": 0,
363
+ "amount": 448000,
364
+ "description": "1月分 家賃未収計上(3月5日入金予定分)"
365
+ },
366
+ {
367
+ "entry_side": "credit",
368
+ "account_item_name": "役務収益",
369
+ "tax_code": 0,
370
+ "amount": 448000,
371
+ "description": "1月分 家賃収入計上(居住用合計)"
372
+ }
373
+ ]
374
+ },
375
+ {
376
+ "issue_date": "2026-02-28",
377
+ "details": [
378
+ {
379
+ "entry_side": "debit",
380
+ "account_item_name": "減価償却費",
381
+ "tax_code": 0,
382
+ "amount": 125000,
383
+ "description": "2月 建物減価償却"
384
+ },
385
+ {
386
+ "entry_side": "credit",
387
+ "account_item_name": "建物",
388
+ "tax_code": 0,
389
+ "amount": 125000,
390
+ "description": "2月 建物減価償却累計"
391
+ }
392
+ ]
393
+ },
394
+ {
395
+ "issue_date": "2026-02-28",
396
+ "details": [
397
+ {
398
+ "entry_side": "debit",
399
+ "account_item_name": "未収入金",
400
+ "tax_code": 0,
401
+ "amount": 448000,
402
+ "description": "2月分 家賃未収計上"
403
+ },
404
+ {
405
+ "entry_side": "credit",
406
+ "account_item_name": "役務収益",
407
+ "tax_code": 0,
408
+ "amount": 448000,
409
+ "description": "2月分 家賃収入計上"
410
+ }
411
+ ]
412
+ },
413
+ {
414
+ "issue_date": "2026-03-31",
415
+ "details": [
416
+ {
417
+ "entry_side": "debit",
418
+ "account_item_name": "減価償却費",
419
+ "tax_code": 0,
420
+ "amount": 125000,
421
+ "description": "3月 建物減価償却"
422
+ },
423
+ {
424
+ "entry_side": "credit",
425
+ "account_item_name": "建物",
426
+ "tax_code": 0,
427
+ "amount": 125000,
428
+ "description": "3月 建物減価償却累計"
429
+ }
430
+ ]
431
+ },
432
+ {
433
+ "issue_date": "2026-03-31",
434
+ "details": [
435
+ {
436
+ "entry_side": "debit",
437
+ "account_item_name": "未収入金",
438
+ "tax_code": 0,
439
+ "amount": 448000,
440
+ "description": "3月分 家賃未収計上(4月入金予定)"
441
+ },
442
+ {
443
+ "entry_side": "credit",
444
+ "account_item_name": "役務収益",
445
+ "tax_code": 0,
446
+ "amount": 448000,
447
+ "description": "3月分 家賃収入計上"
448
+ }
449
+ ]
450
+ }
451
+ ]
452
+ }
453
+ }