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,472 @@
1
+ {
2
+ "name": "ITスタートアップ(SaaS)クイックスタート",
3
+ "description": "架空のSaaS企業(月額課金モデル)の3ヶ月分デモデータ。前受収益→売上計上の振替、ソフトウェア開発費の資産計上・償却、ストック型収益の会計処理を含む。",
4
+ "version": "1.0.0",
5
+ "expected": {
6
+ "walletables": 2,
7
+ "deals": 21,
8
+ "manualJournals": 9
9
+ },
10
+ "data": {
11
+ "walletables": [
12
+ {
13
+ "type": "bank_account",
14
+ "name": "みらい信用銀行 法人普通預金",
15
+ "bank_id": 2407
16
+ },
17
+ {
18
+ "type": "credit_card",
19
+ "name": "法人クレジットカード",
20
+ "bank_id": 1442
21
+ }
22
+ ],
23
+ "deals": [
24
+ {
25
+ "issue_date": "2026-01-05",
26
+ "type": "income",
27
+ "partner_name": "クラウドサービス 月額顧客一括",
28
+ "details": [
29
+ {
30
+ "account_item_name": "売上高",
31
+ "tax_code": 21,
32
+ "amount": 2200000,
33
+ "description": "SaaSサブスクリプション 1月分(法人顧客20社 平均¥110,000/社)"
34
+ }
35
+ ]
36
+ },
37
+ {
38
+ "issue_date": "2026-01-10",
39
+ "type": "income",
40
+ "partner_name": "株式会社オーシャンデジタル",
41
+ "details": [
42
+ {
43
+ "account_item_name": "売上高",
44
+ "tax_code": 21,
45
+ "amount": 550000,
46
+ "description": "初期導入費・カスタマイズ 1月"
47
+ }
48
+ ]
49
+ },
50
+ {
51
+ "issue_date": "2026-01-15",
52
+ "type": "expense",
53
+ "partner_name": "フリーランスエンジニア 岩本 健",
54
+ "details": [
55
+ {
56
+ "account_item_name": "外注費",
57
+ "tax_code": 34,
58
+ "amount": 660000,
59
+ "description": "プロダクト開発 業務委託 1月分"
60
+ }
61
+ ]
62
+ },
63
+ {
64
+ "issue_date": "2026-01-20",
65
+ "type": "expense",
66
+ "partner_name": "クラウドインフラ 星雲ホスティング株式会社",
67
+ "details": [
68
+ {
69
+ "account_item_name": "通信費",
70
+ "tax_code": 34,
71
+ "amount": 198000,
72
+ "description": "サーバー・CDN・DB クラウド利用料 1月分"
73
+ }
74
+ ]
75
+ },
76
+ {
77
+ "issue_date": "2026-01-25",
78
+ "type": "expense",
79
+ "partner_name": "代表取締役 藤崎 孝之",
80
+ "details": [
81
+ {
82
+ "account_item_name": "役員報酬",
83
+ "tax_code": 0,
84
+ "amount": 800000,
85
+ "description": "1月度 役員報酬"
86
+ }
87
+ ]
88
+ },
89
+ {
90
+ "issue_date": "2026-01-25",
91
+ "type": "expense",
92
+ "partner_name": "エンジニア 中川 亮 他2名",
93
+ "details": [
94
+ {
95
+ "account_item_name": "給料手当",
96
+ "tax_code": 0,
97
+ "amount": 1200000,
98
+ "description": "1月 エンジニア・CSM 給与 3名分"
99
+ }
100
+ ]
101
+ },
102
+ {
103
+ "issue_date": "2026-01-31",
104
+ "type": "expense",
105
+ "partner_name": "ルーセント通信株式会社",
106
+ "details": [
107
+ {
108
+ "account_item_name": "通信費",
109
+ "tax_code": 34,
110
+ "amount": 33000,
111
+ "description": "オフィス回線・携帯電話 1月分"
112
+ }
113
+ ]
114
+ },
115
+ {
116
+ "issue_date": "2026-02-05",
117
+ "type": "income",
118
+ "partner_name": "クラウドサービス 月額顧客一括",
119
+ "details": [
120
+ {
121
+ "account_item_name": "売上高",
122
+ "tax_code": 21,
123
+ "amount": 2420000,
124
+ "description": "SaaSサブスクリプション 2月分(新規2社追加)"
125
+ }
126
+ ]
127
+ },
128
+ {
129
+ "issue_date": "2026-02-10",
130
+ "type": "income",
131
+ "partner_name": "株式会社ネクストフォース",
132
+ "details": [
133
+ {
134
+ "account_item_name": "売上高",
135
+ "tax_code": 21,
136
+ "amount": 330000,
137
+ "description": "初期導入費 2月"
138
+ }
139
+ ]
140
+ },
141
+ {
142
+ "issue_date": "2026-02-15",
143
+ "type": "expense",
144
+ "partner_name": "フリーランスエンジニア 岩本 健",
145
+ "details": [
146
+ {
147
+ "account_item_name": "外注費",
148
+ "tax_code": 34,
149
+ "amount": 660000,
150
+ "description": "プロダクト開発 業務委託 2月分"
151
+ }
152
+ ]
153
+ },
154
+ {
155
+ "issue_date": "2026-02-20",
156
+ "type": "expense",
157
+ "partner_name": "クラウドインフラ 星雲ホスティング株式会社",
158
+ "details": [
159
+ {
160
+ "account_item_name": "通信費",
161
+ "tax_code": 34,
162
+ "amount": 214500,
163
+ "description": "サーバー・CDN・DB クラウド利用料 2月分(顧客増加分)"
164
+ }
165
+ ]
166
+ },
167
+ {
168
+ "issue_date": "2026-02-25",
169
+ "type": "expense",
170
+ "partner_name": "代表取締役 藤崎 孝之",
171
+ "details": [
172
+ {
173
+ "account_item_name": "役員報酬",
174
+ "tax_code": 0,
175
+ "amount": 800000,
176
+ "description": "2月度 役員報酬"
177
+ }
178
+ ]
179
+ },
180
+ {
181
+ "issue_date": "2026-02-25",
182
+ "type": "expense",
183
+ "partner_name": "エンジニア 中川 亮 他2名",
184
+ "details": [
185
+ {
186
+ "account_item_name": "給料手当",
187
+ "tax_code": 0,
188
+ "amount": 1200000,
189
+ "description": "2月 給与 3名分"
190
+ }
191
+ ]
192
+ },
193
+ {
194
+ "issue_date": "2026-02-28",
195
+ "type": "expense",
196
+ "partner_name": "ルーセント通信株式会社",
197
+ "details": [
198
+ {
199
+ "account_item_name": "通信費",
200
+ "tax_code": 34,
201
+ "amount": 33000,
202
+ "description": "オフィス回線・携帯電話 2月分"
203
+ }
204
+ ]
205
+ },
206
+ {
207
+ "issue_date": "2026-03-05",
208
+ "type": "income",
209
+ "partner_name": "クラウドサービス 月額顧客一括",
210
+ "details": [
211
+ {
212
+ "account_item_name": "売上高",
213
+ "tax_code": 21,
214
+ "amount": 2640000,
215
+ "description": "SaaSサブスクリプション 3月分(法人顧客24社)"
216
+ }
217
+ ]
218
+ },
219
+ {
220
+ "issue_date": "2026-03-10",
221
+ "type": "income",
222
+ "partner_name": "株式会社ビジョンクリエイト",
223
+ "details": [
224
+ {
225
+ "account_item_name": "売上高",
226
+ "tax_code": 21,
227
+ "amount": 440000,
228
+ "description": "初期導入費・研修費 3月"
229
+ }
230
+ ]
231
+ },
232
+ {
233
+ "issue_date": "2026-03-15",
234
+ "type": "expense",
235
+ "partner_name": "フリーランスエンジニア 岩本 健",
236
+ "details": [
237
+ {
238
+ "account_item_name": "外注費",
239
+ "tax_code": 34,
240
+ "amount": 770000,
241
+ "description": "新機能開発 業務委託 3月分(工数増)"
242
+ }
243
+ ]
244
+ },
245
+ {
246
+ "issue_date": "2026-03-20",
247
+ "type": "expense",
248
+ "partner_name": "クラウドインフラ 星雲ホスティング株式会社",
249
+ "details": [
250
+ {
251
+ "account_item_name": "通信費",
252
+ "tax_code": 34,
253
+ "amount": 231000,
254
+ "description": "サーバー・CDN・DB クラウド利用料 3月分"
255
+ }
256
+ ]
257
+ },
258
+ {
259
+ "issue_date": "2026-03-25",
260
+ "type": "expense",
261
+ "partner_name": "代表取締役 藤崎 孝之",
262
+ "details": [
263
+ {
264
+ "account_item_name": "役員報酬",
265
+ "tax_code": 0,
266
+ "amount": 800000,
267
+ "description": "3月度 役員報酬"
268
+ }
269
+ ]
270
+ },
271
+ {
272
+ "issue_date": "2026-03-25",
273
+ "type": "expense",
274
+ "partner_name": "エンジニア 中川 亮 他2名",
275
+ "details": [
276
+ {
277
+ "account_item_name": "給料手当",
278
+ "tax_code": 0,
279
+ "amount": 1200000,
280
+ "description": "3月 給与 3名分"
281
+ }
282
+ ]
283
+ },
284
+ {
285
+ "issue_date": "2026-03-31",
286
+ "type": "expense",
287
+ "partner_name": "ルーセント通信株式会社",
288
+ "details": [
289
+ {
290
+ "account_item_name": "通信費",
291
+ "tax_code": 34,
292
+ "amount": 33000,
293
+ "description": "オフィス回線・携帯電話 3月分"
294
+ }
295
+ ]
296
+ }
297
+ ],
298
+ "manualJournals": [
299
+ {
300
+ "issue_date": "2026-01-31",
301
+ "details": [
302
+ {
303
+ "entry_side": "debit",
304
+ "account_item_name": "前受収益",
305
+ "tax_code": 0,
306
+ "amount": 550000,
307
+ "description": "1月末 前払い年額契約 1月分売上振替(¥6,600,000 ÷ 12ヶ月)"
308
+ },
309
+ {
310
+ "entry_side": "credit",
311
+ "account_item_name": "売上高",
312
+ "tax_code": 21,
313
+ "amount": 550000,
314
+ "description": "1月分 年額契約 売上計上"
315
+ }
316
+ ]
317
+ },
318
+ {
319
+ "issue_date": "2026-01-31",
320
+ "details": [
321
+ {
322
+ "entry_side": "debit",
323
+ "account_item_name": "ソフトウェア",
324
+ "tax_code": 0,
325
+ "amount": 990000,
326
+ "description": "1月 自社開発SaaS 開発費資産計上(外注費の75%)"
327
+ },
328
+ {
329
+ "entry_side": "credit",
330
+ "account_item_name": "外注費",
331
+ "tax_code": 0,
332
+ "amount": 990000,
333
+ "description": "1月 開発費用のソフトウェア資産振替"
334
+ }
335
+ ]
336
+ },
337
+ {
338
+ "issue_date": "2026-01-31",
339
+ "details": [
340
+ {
341
+ "entry_side": "debit",
342
+ "account_item_name": "減価償却費",
343
+ "tax_code": 0,
344
+ "amount": 55000,
345
+ "description": "1月 ソフトウェア月次償却(¥3,960,000 ÷ 72ヶ月)"
346
+ },
347
+ {
348
+ "entry_side": "credit",
349
+ "account_item_name": "ソフトウェア",
350
+ "tax_code": 0,
351
+ "amount": 55000,
352
+ "description": "1月 ソフトウェア減価償却累計"
353
+ }
354
+ ]
355
+ },
356
+ {
357
+ "issue_date": "2026-02-28",
358
+ "details": [
359
+ {
360
+ "entry_side": "debit",
361
+ "account_item_name": "前受収益",
362
+ "tax_code": 0,
363
+ "amount": 550000,
364
+ "description": "2月末 前払い年額契約 2月分売上振替"
365
+ },
366
+ {
367
+ "entry_side": "credit",
368
+ "account_item_name": "売上高",
369
+ "tax_code": 21,
370
+ "amount": 550000,
371
+ "description": "2月分 年額契約 売上計上"
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": 990000,
383
+ "description": "2月 自社開発SaaS 開発費資産計上"
384
+ },
385
+ {
386
+ "entry_side": "credit",
387
+ "account_item_name": "外注費",
388
+ "tax_code": 0,
389
+ "amount": 990000,
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": 55000,
402
+ "description": "2月 ソフトウェア月次償却"
403
+ },
404
+ {
405
+ "entry_side": "credit",
406
+ "account_item_name": "ソフトウェア",
407
+ "tax_code": 0,
408
+ "amount": 55000,
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": 550000,
421
+ "description": "3月末 前払い年額契約 3月分売上振替"
422
+ },
423
+ {
424
+ "entry_side": "credit",
425
+ "account_item_name": "売上高",
426
+ "tax_code": 21,
427
+ "amount": 550000,
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": 990000,
440
+ "description": "3月 自社開発SaaS 開発費資産計上"
441
+ },
442
+ {
443
+ "entry_side": "credit",
444
+ "account_item_name": "外注費",
445
+ "tax_code": 0,
446
+ "amount": 990000,
447
+ "description": "3月 開発費用のソフトウェア資産振替"
448
+ }
449
+ ]
450
+ },
451
+ {
452
+ "issue_date": "2026-03-31",
453
+ "details": [
454
+ {
455
+ "entry_side": "debit",
456
+ "account_item_name": "減価償却費",
457
+ "tax_code": 0,
458
+ "amount": 55000,
459
+ "description": "3月 ソフトウェア月次償却"
460
+ },
461
+ {
462
+ "entry_side": "credit",
463
+ "account_item_name": "ソフトウェア",
464
+ "tax_code": 0,
465
+ "amount": 55000,
466
+ "description": "3月 ソフトウェア減価償却累計"
467
+ }
468
+ ]
469
+ }
470
+ ]
471
+ }
472
+ }