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,375 @@
1
+ {
2
+ "name": "NPO法人クイックスタート",
3
+ "description": "架空のNPO法人(地域コミュニティ支援)の3ヶ月分デモデータ。収益事業(課税)と非収益事業(非課税)の区分管理、寄附金収入・助成金収入・会費収入の処理を含む。",
4
+ "version": "1.0.0",
5
+ "expected": {
6
+ "walletables": 2,
7
+ "deals": 18,
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-10",
25
+ "type": "income",
26
+ "partner_name": "会員 年会費一括",
27
+ "details": [
28
+ {
29
+ "account_item_name": "雑収入",
30
+ "tax_code": 0,
31
+ "amount": 360000,
32
+ "description": "1月 年会費一括入金(法人会員12社 × ¥30,000)"
33
+ }
34
+ ]
35
+ },
36
+ {
37
+ "issue_date": "2026-01-15",
38
+ "type": "income",
39
+ "partner_name": "市民向けワークショップ参加費",
40
+ "details": [
41
+ {
42
+ "account_item_name": "売上高",
43
+ "tax_code": 21,
44
+ "amount": 165000,
45
+ "description": "1月 有料講座・ワークショップ参加費(課税事業収益)"
46
+ }
47
+ ]
48
+ },
49
+ {
50
+ "issue_date": "2026-01-20",
51
+ "type": "income",
52
+ "partner_name": "匿名・個人 寄附",
53
+ "details": [
54
+ {
55
+ "account_item_name": "雑収入",
56
+ "tax_code": 0,
57
+ "amount": 220000,
58
+ "description": "1月 個人寄附金(非課税)"
59
+ }
60
+ ]
61
+ },
62
+ {
63
+ "issue_date": "2026-01-25",
64
+ "type": "expense",
65
+ "partner_name": "事務局長 西村 佳代",
66
+ "details": [
67
+ {
68
+ "account_item_name": "給料手当",
69
+ "tax_code": 0,
70
+ "amount": 280000,
71
+ "description": "1月 事務局スタッフ給与(事務局長1名)"
72
+ }
73
+ ]
74
+ },
75
+ {
76
+ "issue_date": "2026-01-25",
77
+ "type": "expense",
78
+ "partner_name": "講師 岡田 浩二",
79
+ "details": [
80
+ {
81
+ "account_item_name": "外注費",
82
+ "tax_code": 34,
83
+ "amount": 88000,
84
+ "description": "1月 ワークショップ講師謝礼"
85
+ }
86
+ ]
87
+ },
88
+ {
89
+ "issue_date": "2026-01-31",
90
+ "type": "expense",
91
+ "partner_name": "コモンスペース株式会社",
92
+ "details": [
93
+ {
94
+ "account_item_name": "地代家賃",
95
+ "tax_code": 0,
96
+ "amount": 66000,
97
+ "description": "1月 事務局スペース賃料"
98
+ }
99
+ ]
100
+ },
101
+ {
102
+ "issue_date": "2026-02-10",
103
+ "type": "income",
104
+ "partner_name": "公益財団法人 地域振興基金",
105
+ "details": [
106
+ {
107
+ "account_item_name": "雑収入",
108
+ "tax_code": 0,
109
+ "amount": 500000,
110
+ "description": "2月 地域活動助成金 第1回交付"
111
+ }
112
+ ]
113
+ },
114
+ {
115
+ "issue_date": "2026-02-15",
116
+ "type": "income",
117
+ "partner_name": "市民向けワークショップ参加費",
118
+ "details": [
119
+ {
120
+ "account_item_name": "売上高",
121
+ "tax_code": 21,
122
+ "amount": 198000,
123
+ "description": "2月 有料講座・ワークショップ参加費"
124
+ }
125
+ ]
126
+ },
127
+ {
128
+ "issue_date": "2026-02-20",
129
+ "type": "income",
130
+ "partner_name": "匿名・個人 寄附",
131
+ "details": [
132
+ {
133
+ "account_item_name": "雑収入",
134
+ "tax_code": 0,
135
+ "amount": 180000,
136
+ "description": "2月 個人寄附金(非課税)"
137
+ }
138
+ ]
139
+ },
140
+ {
141
+ "issue_date": "2026-02-25",
142
+ "type": "expense",
143
+ "partner_name": "事務局長 西村 佳代",
144
+ "details": [
145
+ {
146
+ "account_item_name": "給料手当",
147
+ "tax_code": 0,
148
+ "amount": 280000,
149
+ "description": "2月 事務局スタッフ給与"
150
+ }
151
+ ]
152
+ },
153
+ {
154
+ "issue_date": "2026-02-25",
155
+ "type": "expense",
156
+ "partner_name": "講師 岡田 浩二",
157
+ "details": [
158
+ {
159
+ "account_item_name": "外注費",
160
+ "tax_code": 34,
161
+ "amount": 110000,
162
+ "description": "2月 ワークショップ講師謝礼(2回分)"
163
+ }
164
+ ]
165
+ },
166
+ {
167
+ "issue_date": "2026-02-28",
168
+ "type": "expense",
169
+ "partner_name": "コモンスペース株式会社",
170
+ "details": [
171
+ {
172
+ "account_item_name": "地代家賃",
173
+ "tax_code": 0,
174
+ "amount": 66000,
175
+ "description": "2月 事務局スペース賃料"
176
+ }
177
+ ]
178
+ },
179
+ {
180
+ "issue_date": "2026-03-10",
181
+ "type": "income",
182
+ "partner_name": "会員 年会費一括",
183
+ "details": [
184
+ {
185
+ "account_item_name": "雑収入",
186
+ "tax_code": 0,
187
+ "amount": 90000,
188
+ "description": "3月 個人会員更新(個人会員30名 × ¥3,000)"
189
+ }
190
+ ]
191
+ },
192
+ {
193
+ "issue_date": "2026-03-15",
194
+ "type": "income",
195
+ "partner_name": "市民向けワークショップ参加費",
196
+ "details": [
197
+ {
198
+ "account_item_name": "売上高",
199
+ "tax_code": 21,
200
+ "amount": 231000,
201
+ "description": "3月 年度末特別講座参加費"
202
+ }
203
+ ]
204
+ },
205
+ {
206
+ "issue_date": "2026-03-20",
207
+ "type": "income",
208
+ "partner_name": "匿名・個人 寄附",
209
+ "details": [
210
+ {
211
+ "account_item_name": "雑収入",
212
+ "tax_code": 0,
213
+ "amount": 310000,
214
+ "description": "3月 個人・法人寄附金(年度末集中)"
215
+ }
216
+ ]
217
+ },
218
+ {
219
+ "issue_date": "2026-03-25",
220
+ "type": "expense",
221
+ "partner_name": "事務局長 西村 佳代",
222
+ "details": [
223
+ {
224
+ "account_item_name": "給料手当",
225
+ "tax_code": 0,
226
+ "amount": 280000,
227
+ "description": "3月 事務局スタッフ給与"
228
+ }
229
+ ]
230
+ },
231
+ {
232
+ "issue_date": "2026-03-25",
233
+ "type": "expense",
234
+ "partner_name": "講師 岡田 浩二",
235
+ "details": [
236
+ {
237
+ "account_item_name": "外注費",
238
+ "tax_code": 34,
239
+ "amount": 132000,
240
+ "description": "3月 ワークショップ講師謝礼(特別講座)"
241
+ }
242
+ ]
243
+ },
244
+ {
245
+ "issue_date": "2026-03-31",
246
+ "type": "expense",
247
+ "partner_name": "コモンスペース株式会社",
248
+ "details": [
249
+ {
250
+ "account_item_name": "地代家賃",
251
+ "tax_code": 0,
252
+ "amount": 66000,
253
+ "description": "3月 事務局スペース賃料"
254
+ }
255
+ ]
256
+ }
257
+ ],
258
+ "manualJournals": [
259
+ {
260
+ "issue_date": "2026-01-31",
261
+ "details": [
262
+ {
263
+ "entry_side": "debit",
264
+ "account_item_name": "前受収益",
265
+ "tax_code": 0,
266
+ "amount": 330000,
267
+ "description": "1月末 年会費 未経過分繰延(11ヶ月分: ¥360,000 × 11/12)"
268
+ },
269
+ {
270
+ "entry_side": "credit",
271
+ "account_item_name": "雑収入",
272
+ "tax_code": 0,
273
+ "amount": 330000,
274
+ "description": "1月末 年会費 繰延振替"
275
+ }
276
+ ]
277
+ },
278
+ {
279
+ "issue_date": "2026-01-31",
280
+ "details": [
281
+ {
282
+ "entry_side": "debit",
283
+ "account_item_name": "法定福利費",
284
+ "tax_code": 0,
285
+ "amount": 42000,
286
+ "description": "1月 社会保険料 会社(法人)負担分"
287
+ },
288
+ {
289
+ "entry_side": "credit",
290
+ "account_item_name": "未払費用",
291
+ "tax_code": 0,
292
+ "amount": 42000,
293
+ "description": "1月 社会保険料 未払計上"
294
+ }
295
+ ]
296
+ },
297
+ {
298
+ "issue_date": "2026-02-28",
299
+ "details": [
300
+ {
301
+ "entry_side": "debit",
302
+ "account_item_name": "前受収益",
303
+ "tax_code": 0,
304
+ "amount": 41667,
305
+ "description": "2月末 年会費 月次経過按分(¥360,000 ÷ 12ヶ月 × 1ヶ月)"
306
+ },
307
+ {
308
+ "entry_side": "credit",
309
+ "account_item_name": "雑収入",
310
+ "tax_code": 0,
311
+ "amount": 41667,
312
+ "description": "2月末 年会費 月次収益計上"
313
+ }
314
+ ]
315
+ },
316
+ {
317
+ "issue_date": "2026-02-28",
318
+ "details": [
319
+ {
320
+ "entry_side": "debit",
321
+ "account_item_name": "法定福利費",
322
+ "tax_code": 0,
323
+ "amount": 42000,
324
+ "description": "2月 社会保険料 法人負担分"
325
+ },
326
+ {
327
+ "entry_side": "credit",
328
+ "account_item_name": "未払費用",
329
+ "tax_code": 0,
330
+ "amount": 42000,
331
+ "description": "2月 社会保険料 未払計上"
332
+ }
333
+ ]
334
+ },
335
+ {
336
+ "issue_date": "2026-03-31",
337
+ "details": [
338
+ {
339
+ "entry_side": "debit",
340
+ "account_item_name": "前受収益",
341
+ "tax_code": 0,
342
+ "amount": 41667,
343
+ "description": "3月末 年会費 月次経過按分"
344
+ },
345
+ {
346
+ "entry_side": "credit",
347
+ "account_item_name": "雑収入",
348
+ "tax_code": 0,
349
+ "amount": 41667,
350
+ "description": "3月末 年会費 月次収益計上"
351
+ }
352
+ ]
353
+ },
354
+ {
355
+ "issue_date": "2026-03-31",
356
+ "details": [
357
+ {
358
+ "entry_side": "debit",
359
+ "account_item_name": "法定福利費",
360
+ "tax_code": 0,
361
+ "amount": 42000,
362
+ "description": "3月 社会保険料 法人負担分"
363
+ },
364
+ {
365
+ "entry_side": "credit",
366
+ "account_item_name": "未払費用",
367
+ "tax_code": 0,
368
+ "amount": 42000,
369
+ "description": "3月 社会保険料 未払計上"
370
+ }
371
+ ]
372
+ }
373
+ ]
374
+ }
375
+ }