@accounter/opcn1214-generator 0.0.0-bootstrap.0
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.
- package/.bob/cjs/api/generate.d.ts +44 -0
- package/.bob/cjs/api/generate.js +115 -0
- package/.bob/cjs/api/parse.d.ts +28 -0
- package/.bob/cjs/api/parse.js +38 -0
- package/.bob/cjs/api/response.d.ts +24 -0
- package/.bob/cjs/api/response.js +75 -0
- package/.bob/cjs/api/validate.d.ts +16 -0
- package/.bob/cjs/api/validate.js +15 -0
- package/.bob/cjs/codec/boolean.d.ts +7 -0
- package/.bob/cjs/codec/boolean.js +49 -0
- package/.bob/cjs/codec/date.d.ts +6 -0
- package/.bob/cjs/codec/date.js +68 -0
- package/.bob/cjs/codec/enum.d.ts +4 -0
- package/.bob/cjs/codec/enum.js +26 -0
- package/.bob/cjs/codec/numeric.d.ts +56 -0
- package/.bob/cjs/codec/numeric.js +186 -0
- package/.bob/cjs/codec/padding.d.ts +10 -0
- package/.bob/cjs/codec/padding.js +26 -0
- package/.bob/cjs/codec/percent.d.ts +6 -0
- package/.bob/cjs/codec/percent.js +33 -0
- package/.bob/cjs/codec/phone.d.ts +4 -0
- package/.bob/cjs/codec/phone.js +48 -0
- package/.bob/cjs/codec/record.d.ts +18 -0
- package/.bob/cjs/codec/record.js +176 -0
- package/.bob/cjs/codec/registry.d.ts +8 -0
- package/.bob/cjs/codec/registry.js +27 -0
- package/.bob/cjs/codec/sections.d.ts +41 -0
- package/.bob/cjs/codec/sections.js +177 -0
- package/.bob/cjs/codec/text.d.ts +5 -0
- package/.bob/cjs/codec/text.js +29 -0
- package/.bob/cjs/codec/types.d.ts +36 -0
- package/.bob/cjs/codec/types.js +16 -0
- package/.bob/cjs/codec/windows1255.d.ts +9 -0
- package/.bob/cjs/codec/windows1255.js +38 -0
- package/.bob/cjs/errors.d.ts +32 -0
- package/.bob/cjs/errors.js +103 -0
- package/.bob/cjs/file/assemble.d.ts +17 -0
- package/.bob/cjs/file/assemble.js +28 -0
- package/.bob/cjs/file/control.d.ts +13 -0
- package/.bob/cjs/file/control.js +45 -0
- package/.bob/cjs/file/parse.d.ts +18 -0
- package/.bob/cjs/file/parse.js +478 -0
- package/.bob/cjs/file/split.d.ts +17 -0
- package/.bob/cjs/file/split.js +71 -0
- package/.bob/cjs/index.d.ts +16 -0
- package/.bob/cjs/index.js +28 -0
- package/.bob/cjs/layout/2024/layout.generated.d.ts +6919 -0
- package/.bob/cjs/layout/2024/layout.generated.js +7224 -0
- package/.bob/cjs/layout/2025/index.d.ts +6 -0
- package/.bob/cjs/layout/2025/index.js +10 -0
- package/.bob/cjs/layout/capital-gains.d.ts +9 -0
- package/.bob/cjs/layout/capital-gains.js +15 -0
- package/.bob/cjs/layout/countries.d.ts +5 -0
- package/.bob/cjs/layout/countries.js +10 -0
- package/.bob/cjs/layout/freeze.d.ts +5 -0
- package/.bob/cjs/layout/freeze.js +16 -0
- package/.bob/cjs/layout/registry.d.ts +10 -0
- package/.bob/cjs/layout/registry.js +32 -0
- package/.bob/cjs/layout/types.d.ts +82 -0
- package/.bob/cjs/layout/types.js +35 -0
- package/.bob/cjs/model/codes.generated.d.ts +48 -0
- package/.bob/cjs/model/codes.generated.js +628 -0
- package/.bob/cjs/model/index.d.ts +3 -0
- package/.bob/cjs/model/index.js +5 -0
- package/.bob/cjs/model/input.d.ts +543 -0
- package/.bob/cjs/model/input.js +24 -0
- package/.bob/cjs/model/normalized.d.ts +43 -0
- package/.bob/cjs/model/normalized.js +0 -0
- package/.bob/cjs/model/options.d.ts +14 -0
- package/.bob/cjs/model/options.js +0 -0
- package/.bob/cjs/model/schema.d.ts +594 -0
- package/.bob/cjs/model/schema.js +339 -0
- package/.bob/cjs/normalize/canonical.d.ts +13 -0
- package/.bob/cjs/normalize/canonical.js +288 -0
- package/.bob/cjs/normalize/capital-gains/assets.d.ts +37 -0
- package/.bob/cjs/normalize/capital-gains/assets.js +94 -0
- package/.bob/cjs/normalize/capital-gains/index.d.ts +61 -0
- package/.bob/cjs/normalize/capital-gains/index.js +149 -0
- package/.bob/cjs/normalize/capital-gains/no-withholding.d.ts +18 -0
- package/.bob/cjs/normalize/capital-gains/no-withholding.js +36 -0
- package/.bob/cjs/normalize/capital-gains/other.d.ts +54 -0
- package/.bob/cjs/normalize/capital-gains/other.js +122 -0
- package/.bob/cjs/normalize/capital-gains/section6.d.ts +7 -0
- package/.bob/cjs/normalize/capital-gains/section6.js +13 -0
- package/.bob/cjs/normalize/capital-gains/securities.d.ts +26 -0
- package/.bob/cjs/normalize/capital-gains/securities.js +58 -0
- package/.bob/cjs/normalize/denormalize.d.ts +42 -0
- package/.bob/cjs/normalize/denormalize.js +359 -0
- package/.bob/cjs/normalize/derive.d.ts +57 -0
- package/.bob/cjs/normalize/derive.js +111 -0
- package/.bob/cjs/normalize/enums.d.ts +58 -0
- package/.bob/cjs/normalize/enums.js +69 -0
- package/.bob/cjs/normalize/fields.d.ts +28 -0
- package/.bob/cjs/normalize/fields.js +86 -0
- package/.bob/cjs/normalize/foreign.d.ts +22 -0
- package/.bob/cjs/normalize/foreign.js +85 -0
- package/.bob/cjs/normalize/main.d.ts +24 -0
- package/.bob/cjs/normalize/main.js +208 -0
- package/.bob/cjs/normalize/paths.d.ts +74 -0
- package/.bob/cjs/normalize/paths.js +169 -0
- package/.bob/cjs/normalize/phone.d.ts +12 -0
- package/.bob/cjs/normalize/phone.js +35 -0
- package/.bob/cjs/normalize/rd-investments.d.ts +10 -0
- package/.bob/cjs/normalize/rd-investments.js +25 -0
- package/.bob/cjs/normalize/related-companies.d.ts +10 -0
- package/.bob/cjs/normalize/related-companies.js +25 -0
- package/.bob/cjs/normalize/report.d.ts +9 -0
- package/.bob/cjs/normalize/report.js +53 -0
- package/.bob/cjs/normalize/shareholders.d.ts +10 -0
- package/.bob/cjs/normalize/shareholders.js +30 -0
- package/.bob/cjs/normalize/text.d.ts +11 -0
- package/.bob/cjs/normalize/text.js +41 -0
- package/.bob/cjs/normalize/today.d.ts +4 -0
- package/.bob/cjs/normalize/today.js +14 -0
- package/.bob/cjs/pipeline.d.ts +13 -0
- package/.bob/cjs/pipeline.js +37 -0
- package/.bob/cjs/response/codes.d.ts +2 -0
- package/.bob/cjs/response/codes.js +31 -0
- package/.bob/cjs/validate/capital-gains-rules.d.ts +6 -0
- package/.bob/cjs/validate/capital-gains-rules.js +162 -0
- package/.bob/cjs/validate/check-digit.d.ts +10 -0
- package/.bob/cjs/validate/check-digit.js +26 -0
- package/.bob/cjs/validate/engine.d.ts +5 -0
- package/.bob/cjs/validate/engine.js +35 -0
- package/.bob/cjs/validate/field-rules.d.ts +4 -0
- package/.bob/cjs/validate/field-rules.js +331 -0
- package/.bob/cjs/validate/foreign-rules.d.ts +6 -0
- package/.bob/cjs/validate/foreign-rules.js +171 -0
- package/.bob/cjs/validate/issue.d.ts +51 -0
- package/.bob/cjs/validate/issue.js +78 -0
- package/.bob/cjs/validate/main-rules.d.ts +24 -0
- package/.bob/cjs/validate/main-rules.js +425 -0
- package/.bob/cjs/validate/parse-rules.d.ts +31 -0
- package/.bob/cjs/validate/parse-rules.js +114 -0
- package/.bob/cjs/validate/rules.d.ts +746 -0
- package/.bob/cjs/validate/rules.js +680 -0
- package/.bob/cjs/validate/shape.d.ts +19 -0
- package/.bob/cjs/validate/shape.js +231 -0
- package/.bob/cjs/validate/shareholder-rules.d.ts +6 -0
- package/.bob/cjs/validate/shareholder-rules.js +83 -0
- package/.bob/cjs/validate/structure-rules.d.ts +26 -0
- package/.bob/cjs/validate/structure-rules.js +130 -0
- package/.bob/esm/api/generate.d.ts +44 -0
- package/.bob/esm/api/generate.js +111 -0
- package/.bob/esm/api/parse.d.ts +28 -0
- package/.bob/esm/api/parse.js +34 -0
- package/.bob/esm/api/response.d.ts +24 -0
- package/.bob/esm/api/response.js +72 -0
- package/.bob/esm/api/validate.d.ts +16 -0
- package/.bob/esm/api/validate.js +11 -0
- package/.bob/esm/codec/boolean.d.ts +7 -0
- package/.bob/esm/codec/boolean.js +46 -0
- package/.bob/esm/codec/date.d.ts +6 -0
- package/.bob/esm/codec/date.js +64 -0
- package/.bob/esm/codec/enum.d.ts +4 -0
- package/.bob/esm/codec/enum.js +23 -0
- package/.bob/esm/codec/numeric.d.ts +56 -0
- package/.bob/esm/codec/numeric.js +175 -0
- package/.bob/esm/codec/padding.d.ts +10 -0
- package/.bob/esm/codec/padding.js +21 -0
- package/.bob/esm/codec/percent.d.ts +6 -0
- package/.bob/esm/codec/percent.js +30 -0
- package/.bob/esm/codec/phone.d.ts +4 -0
- package/.bob/esm/codec/phone.js +45 -0
- package/.bob/esm/codec/record.d.ts +18 -0
- package/.bob/esm/codec/record.js +172 -0
- package/.bob/esm/codec/registry.d.ts +8 -0
- package/.bob/esm/codec/registry.js +23 -0
- package/.bob/esm/codec/sections.d.ts +41 -0
- package/.bob/esm/codec/sections.js +170 -0
- package/.bob/esm/codec/text.d.ts +5 -0
- package/.bob/esm/codec/text.js +26 -0
- package/.bob/esm/codec/types.d.ts +36 -0
- package/.bob/esm/codec/types.js +12 -0
- package/.bob/esm/codec/windows1255.d.ts +9 -0
- package/.bob/esm/codec/windows1255.js +32 -0
- package/.bob/esm/errors.d.ts +32 -0
- package/.bob/esm/errors.js +94 -0
- package/.bob/esm/file/assemble.d.ts +17 -0
- package/.bob/esm/file/assemble.js +25 -0
- package/.bob/esm/file/control.d.ts +13 -0
- package/.bob/esm/file/control.js +41 -0
- package/.bob/esm/file/parse.d.ts +18 -0
- package/.bob/esm/file/parse.js +474 -0
- package/.bob/esm/file/split.d.ts +17 -0
- package/.bob/esm/file/split.js +68 -0
- package/.bob/esm/index.d.ts +16 -0
- package/.bob/esm/index.js +11 -0
- package/.bob/esm/layout/2024/layout.generated.d.ts +6919 -0
- package/.bob/esm/layout/2024/layout.generated.js +7221 -0
- package/.bob/esm/layout/2025/index.d.ts +6 -0
- package/.bob/esm/layout/2025/index.js +7 -0
- package/.bob/esm/layout/capital-gains.d.ts +9 -0
- package/.bob/esm/layout/capital-gains.js +11 -0
- package/.bob/esm/layout/countries.d.ts +5 -0
- package/.bob/esm/layout/countries.js +7 -0
- package/.bob/esm/layout/freeze.d.ts +5 -0
- package/.bob/esm/layout/freeze.js +13 -0
- package/.bob/esm/layout/registry.d.ts +10 -0
- package/.bob/esm/layout/registry.js +27 -0
- package/.bob/esm/layout/types.d.ts +82 -0
- package/.bob/esm/layout/types.js +32 -0
- package/.bob/esm/model/codes.generated.d.ts +48 -0
- package/.bob/esm/model/codes.generated.js +625 -0
- package/.bob/esm/model/index.d.ts +3 -0
- package/.bob/esm/model/index.js +2 -0
- package/.bob/esm/model/input.d.ts +543 -0
- package/.bob/esm/model/input.js +21 -0
- package/.bob/esm/model/normalized.d.ts +43 -0
- package/.bob/esm/model/normalized.js +0 -0
- package/.bob/esm/model/options.d.ts +14 -0
- package/.bob/esm/model/options.js +0 -0
- package/.bob/esm/model/schema.d.ts +594 -0
- package/.bob/esm/model/schema.js +335 -0
- package/.bob/esm/normalize/canonical.d.ts +13 -0
- package/.bob/esm/normalize/canonical.js +285 -0
- package/.bob/esm/normalize/capital-gains/assets.d.ts +37 -0
- package/.bob/esm/normalize/capital-gains/assets.js +87 -0
- package/.bob/esm/normalize/capital-gains/index.d.ts +61 -0
- package/.bob/esm/normalize/capital-gains/index.js +142 -0
- package/.bob/esm/normalize/capital-gains/no-withholding.d.ts +18 -0
- package/.bob/esm/normalize/capital-gains/no-withholding.js +31 -0
- package/.bob/esm/normalize/capital-gains/other.d.ts +54 -0
- package/.bob/esm/normalize/capital-gains/other.js +112 -0
- package/.bob/esm/normalize/capital-gains/section6.d.ts +7 -0
- package/.bob/esm/normalize/capital-gains/section6.js +9 -0
- package/.bob/esm/normalize/capital-gains/securities.d.ts +26 -0
- package/.bob/esm/normalize/capital-gains/securities.js +52 -0
- package/.bob/esm/normalize/denormalize.d.ts +42 -0
- package/.bob/esm/normalize/denormalize.js +354 -0
- package/.bob/esm/normalize/derive.d.ts +57 -0
- package/.bob/esm/normalize/derive.js +99 -0
- package/.bob/esm/normalize/enums.d.ts +58 -0
- package/.bob/esm/normalize/enums.js +64 -0
- package/.bob/esm/normalize/fields.d.ts +28 -0
- package/.bob/esm/normalize/fields.js +81 -0
- package/.bob/esm/normalize/foreign.d.ts +22 -0
- package/.bob/esm/normalize/foreign.js +81 -0
- package/.bob/esm/normalize/main.d.ts +24 -0
- package/.bob/esm/normalize/main.js +204 -0
- package/.bob/esm/normalize/paths.d.ts +74 -0
- package/.bob/esm/normalize/paths.js +161 -0
- package/.bob/esm/normalize/phone.d.ts +12 -0
- package/.bob/esm/normalize/phone.js +32 -0
- package/.bob/esm/normalize/rd-investments.d.ts +10 -0
- package/.bob/esm/normalize/rd-investments.js +22 -0
- package/.bob/esm/normalize/related-companies.d.ts +10 -0
- package/.bob/esm/normalize/related-companies.js +22 -0
- package/.bob/esm/normalize/report.d.ts +9 -0
- package/.bob/esm/normalize/report.js +50 -0
- package/.bob/esm/normalize/shareholders.d.ts +10 -0
- package/.bob/esm/normalize/shareholders.js +27 -0
- package/.bob/esm/normalize/text.d.ts +11 -0
- package/.bob/esm/normalize/text.js +37 -0
- package/.bob/esm/normalize/today.d.ts +4 -0
- package/.bob/esm/normalize/today.js +11 -0
- package/.bob/esm/pipeline.d.ts +13 -0
- package/.bob/esm/pipeline.js +34 -0
- package/.bob/esm/response/codes.d.ts +2 -0
- package/.bob/esm/response/codes.js +28 -0
- package/.bob/esm/validate/capital-gains-rules.d.ts +6 -0
- package/.bob/esm/validate/capital-gains-rules.js +159 -0
- package/.bob/esm/validate/check-digit.d.ts +10 -0
- package/.bob/esm/validate/check-digit.js +23 -0
- package/.bob/esm/validate/engine.d.ts +5 -0
- package/.bob/esm/validate/engine.js +32 -0
- package/.bob/esm/validate/field-rules.d.ts +4 -0
- package/.bob/esm/validate/field-rules.js +328 -0
- package/.bob/esm/validate/foreign-rules.d.ts +6 -0
- package/.bob/esm/validate/foreign-rules.js +168 -0
- package/.bob/esm/validate/issue.d.ts +51 -0
- package/.bob/esm/validate/issue.js +72 -0
- package/.bob/esm/validate/main-rules.d.ts +24 -0
- package/.bob/esm/validate/main-rules.js +420 -0
- package/.bob/esm/validate/parse-rules.d.ts +31 -0
- package/.bob/esm/validate/parse-rules.js +110 -0
- package/.bob/esm/validate/rules.d.ts +746 -0
- package/.bob/esm/validate/rules.js +676 -0
- package/.bob/esm/validate/shape.d.ts +19 -0
- package/.bob/esm/validate/shape.js +227 -0
- package/.bob/esm/validate/shareholder-rules.d.ts +6 -0
- package/.bob/esm/validate/shareholder-rules.js +80 -0
- package/.bob/esm/validate/structure-rules.d.ts +26 -0
- package/.bob/esm/validate/structure-rules.js +122 -0
- package/.bob/tsconfig.tsbuildinfo +1 -0
- package/.gitattributes +1 -0
- package/CLAUDE.md +39 -0
- package/README.md +337 -0
- package/dist/cjs/index.js +28 -0
- package/dist/esm/index.js +11 -0
- package/documentation/IMPLEMENTATION_PLAN.md +2258 -0
- package/documentation/SPEC.md +1803 -0
- package/documentation/layout/2024/codes.csv +261 -0
- package/documentation/layout/2024/countries.csv +256 -0
- package/documentation/layout/2024/fields.csv +271 -0
- package/documentation/layout/2024/records.csv +18 -0
- package/documentation/layout/README.md +87 -0
- package/documentation/specifications/1214-2024.pdf +0 -0
- package/documentation/tools/extract_layout.py +191 -0
- package/package.json +77 -0
- package/scripts/generate-layout.ts +23 -0
- package/scripts/layout/csv.ts +111 -0
- package/scripts/layout/derived-codes.ts +12 -0
- package/scripts/layout/render.ts +364 -0
- package/scripts/layout/sources.ts +51 -0
- package/scripts/layout/values.ts +42 -0
- package/scripts/render-rules-table.ts +66 -0
- package/src/api/generate.ts +169 -0
- package/src/api/parse.ts +58 -0
- package/src/api/response.ts +110 -0
- package/src/api/validate.ts +26 -0
- package/src/codec/boolean.ts +62 -0
- package/src/codec/date.ts +75 -0
- package/src/codec/enum.ts +28 -0
- package/src/codec/numeric.ts +208 -0
- package/src/codec/padding.ts +33 -0
- package/src/codec/percent.ts +35 -0
- package/src/codec/phone.ts +54 -0
- package/src/codec/record.ts +206 -0
- package/src/codec/registry.ts +27 -0
- package/src/codec/sections.ts +208 -0
- package/src/codec/text.ts +31 -0
- package/src/codec/types.ts +47 -0
- package/src/codec/windows1255.ts +38 -0
- package/src/errors.ts +114 -0
- package/src/file/assemble.ts +42 -0
- package/src/file/control.ts +59 -0
- package/src/file/parse.ts +620 -0
- package/src/file/split.ts +86 -0
- package/src/index.ts +70 -0
- package/src/layout/2024/layout.generated.ts +7238 -0
- package/src/layout/2025/index.ts +9 -0
- package/src/layout/capital-gains.ts +20 -0
- package/src/layout/countries.ts +7 -0
- package/src/layout/freeze.ts +13 -0
- package/src/layout/registry.ts +33 -0
- package/src/layout/types.ts +134 -0
- package/src/model/codes.generated.ts +1190 -0
- package/src/model/index.ts +4 -0
- package/src/model/input.ts +594 -0
- package/src/model/normalized.ts +38 -0
- package/src/model/options.ts +17 -0
- package/src/model/schema.ts +381 -0
- package/src/normalize/canonical.ts +374 -0
- package/src/normalize/capital-gains/assets.ts +112 -0
- package/src/normalize/capital-gains/index.ts +212 -0
- package/src/normalize/capital-gains/no-withholding.ts +46 -0
- package/src/normalize/capital-gains/other.ts +153 -0
- package/src/normalize/capital-gains/section6.ts +14 -0
- package/src/normalize/capital-gains/securities.ts +73 -0
- package/src/normalize/denormalize.ts +426 -0
- package/src/normalize/derive.ts +136 -0
- package/src/normalize/enums.ts +87 -0
- package/src/normalize/fields.ts +110 -0
- package/src/normalize/foreign.ts +114 -0
- package/src/normalize/main.ts +284 -0
- package/src/normalize/paths.ts +184 -0
- package/src/normalize/phone.ts +45 -0
- package/src/normalize/rd-investments.ts +38 -0
- package/src/normalize/related-companies.ts +37 -0
- package/src/normalize/report.ts +59 -0
- package/src/normalize/shareholders.ts +42 -0
- package/src/normalize/text.ts +40 -0
- package/src/normalize/today.ts +15 -0
- package/src/pipeline.ts +42 -0
- package/src/response/codes.ts +30 -0
- package/src/validate/capital-gains-rules.ts +199 -0
- package/src/validate/check-digit.ts +25 -0
- package/src/validate/engine.ts +45 -0
- package/src/validate/field-rules.ts +383 -0
- package/src/validate/foreign-rules.ts +274 -0
- package/src/validate/issue.ts +121 -0
- package/src/validate/main-rules.ts +678 -0
- package/src/validate/parse-rules.ts +169 -0
- package/src/validate/rules.ts +747 -0
- package/src/validate/shape.ts +278 -0
- package/src/validate/shareholder-rules.ts +92 -0
- package/src/validate/structure-rules.ts +136 -0
- package/tests/api/batch.test.ts +227 -0
- package/tests/api/exports.test.ts +355 -0
- package/tests/api/generate.test.ts +409 -0
- package/tests/api/parse.test.ts +789 -0
- package/tests/api/response.test.ts +152 -0
- package/tests/api/validate.test.ts +86 -0
- package/tests/codec/numeric.test.ts +325 -0
- package/tests/codec/record.test.ts +318 -0
- package/tests/codec/registry.test.ts +17 -0
- package/tests/codec/sections.test.ts +333 -0
- package/tests/codec/text.test.ts +454 -0
- package/tests/codec/windows1255.test.ts +46 -0
- package/tests/docs/readme.test.ts +69 -0
- package/tests/edge-cases.test.ts +359 -0
- package/tests/errors.test.ts +138 -0
- package/tests/file/assemble.test.ts +188 -0
- package/tests/file/split.test.ts +61 -0
- package/tests/fixtures/builders.ts +512 -0
- package/tests/fixtures/files.ts +78 -0
- package/tests/fixtures/golden/README.md +37 -0
- package/tests/fixtures/golden/VERIFICATION.md +72 -0
- package/tests/fixtures/golden/batch-50.input.ts +92 -0
- package/tests/fixtures/golden/batch-50.opcn +150 -0
- package/tests/fixtures/golden/capital-gains-max.input.ts +177 -0
- package/tests/fixtures/golden/capital-gains-max.opcn +17 -0
- package/tests/fixtures/golden/cg-27.input.ts +63 -0
- package/tests/fixtures/golden/cg-27.opcn +4 -0
- package/tests/fixtures/golden/cg-50.input.ts +59 -0
- package/tests/fixtures/golden/cg-50.opcn +4 -0
- package/tests/fixtures/golden/cg-51.input.ts +60 -0
- package/tests/fixtures/golden/cg-51.opcn +4 -0
- package/tests/fixtures/golden/cg-54.input.ts +53 -0
- package/tests/fixtures/golden/cg-54.opcn +4 -0
- package/tests/fixtures/golden/cg-60.input.ts +77 -0
- package/tests/fixtures/golden/cg-60.opcn +4 -0
- package/tests/fixtures/golden/cg-63.input.ts +51 -0
- package/tests/fixtures/golden/cg-63.opcn +4 -0
- package/tests/fixtures/golden/cg-64.input.ts +62 -0
- package/tests/fixtures/golden/cg-64.opcn +4 -0
- package/tests/fixtures/golden/cg-65.input.ts +79 -0
- package/tests/fixtures/golden/cg-65.opcn +4 -0
- package/tests/fixtures/golden/cg-66.input.ts +53 -0
- package/tests/fixtures/golden/cg-66.opcn +4 -0
- package/tests/fixtures/golden/cg-77.input.ts +109 -0
- package/tests/fixtures/golden/cg-77.opcn +4 -0
- package/tests/fixtures/golden/foreign.input.ts +202 -0
- package/tests/fixtures/golden/foreign.opcn +27 -0
- package/tests/fixtures/golden/hebrew-edge.input.ts +90 -0
- package/tests/fixtures/golden/hebrew-edge.opcn +8 -0
- package/tests/fixtures/golden/kibbutz.input.ts +31 -0
- package/tests/fixtures/golden/kibbutz.opcn +2 -0
- package/tests/fixtures/golden/main-full.input.ts +780 -0
- package/tests/fixtures/golden/main-full.opcn +101 -0
- package/tests/fixtures/golden/minimal.input.ts +37 -0
- package/tests/fixtures/golden/minimal.opcn +3 -0
- package/tests/fixtures/golden/related-and-rd.input.ts +59 -0
- package/tests/fixtures/golden/related-and-rd.opcn +11 -0
- package/tests/fixtures/random.ts +843 -0
- package/tests/golden/fixtures.test.ts +627 -0
- package/tests/golden/golden.test.ts +95 -0
- package/tests/helpers/coverage.ts +18 -0
- package/tests/helpers/sample-values.ts +114 -0
- package/tests/layout/codegen-sync.test.ts +19 -0
- package/tests/layout/integrity.test.ts +232 -0
- package/tests/layout/registry.test.ts +98 -0
- package/tests/model/code-unions.test.ts +91 -0
- package/tests/model/schema.test.ts +1031 -0
- package/tests/normalize/canonical.test.ts +728 -0
- package/tests/normalize/capital-gains.test.ts +1850 -0
- package/tests/normalize/coverage.test.ts +88 -0
- package/tests/normalize/denormalize.test.ts +318 -0
- package/tests/normalize/enums.test.ts +118 -0
- package/tests/normalize/foreign.test.ts +273 -0
- package/tests/normalize/main.test.ts +839 -0
- package/tests/normalize/paths.test.ts +257 -0
- package/tests/normalize/rd-investments.test.ts +99 -0
- package/tests/normalize/related-companies.test.ts +106 -0
- package/tests/normalize/shareholders.test.ts +117 -0
- package/tests/normalize/text.test.ts +86 -0
- package/tests/pipeline.test.ts +96 -0
- package/tests/roundtrip/determinism.test.ts +207 -0
- package/tests/roundtrip/property.test.ts +126 -0
- package/tests/roundtrip/roundtrip.test.ts +573 -0
- package/tests/rules/cases.ts +873 -0
- package/tests/rules/rules.test.ts +69 -0
- package/tests/rules/spec-sync.test.ts +80 -0
- package/tests/scripts/csv.test.ts +78 -0
- package/tests/scripts/values.test.ts +80 -0
- package/tests/validate/capital-gains-rules.test.ts +307 -0
- package/tests/validate/check-digit.test.ts +42 -0
- package/tests/validate/field-rules.test.ts +867 -0
- package/tests/validate/foreign-rules.test.ts +255 -0
- package/tests/validate/issue.test.ts +96 -0
- package/tests/validate/main-rules.test.ts +761 -0
- package/tests/validate/parse-rules.test.ts +293 -0
- package/tests/validate/shareholder-rules.test.ts +143 -0
- package/tsconfig.json +10 -0
- package/tsconfig.typecheck.json +9 -0
- package/vitest.config.ts +11 -0
|
@@ -0,0 +1,594 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Strict zod schemas of the public input (SPEC §7, §9.2 stage 2), mirroring `input.ts`. They check
|
|
3
|
+
* JavaScript shape only: digit strings, phone prefixes and country codes are plain strings
|
|
4
|
+
* and dates only need the ISO form, so the semantic field rules stay reachable for untyped callers.
|
|
5
|
+
*/
|
|
6
|
+
import { z } from 'zod';
|
|
7
|
+
import type { SupportedTaxYear } from './input.js';
|
|
8
|
+
/** The schema of a `Report1214Input` (SPEC §7.2); one schema serves every supported year today. */
|
|
9
|
+
export declare const report1214InputSchema: z.ZodObject<{
|
|
10
|
+
taxYear: z.ZodLiteral<2024 | 2025>;
|
|
11
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
12
|
+
softwareName: z.ZodOptional<z.ZodString>;
|
|
13
|
+
saveDate: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, z.core.$strict>>;
|
|
15
|
+
company: z.ZodObject<{
|
|
16
|
+
fileNumber: z.ZodString;
|
|
17
|
+
registeredName: z.ZodString;
|
|
18
|
+
withholdingFileNumber: z.ZodOptional<z.ZodString>;
|
|
19
|
+
vatFileNumber: z.ZodOptional<z.ZodString>;
|
|
20
|
+
occupationDescription: z.ZodOptional<z.ZodString>;
|
|
21
|
+
mailingAddress: z.ZodString;
|
|
22
|
+
businessAddress: z.ZodString;
|
|
23
|
+
booksAddress: z.ZodOptional<z.ZodString>;
|
|
24
|
+
email: z.ZodOptional<z.ZodString>;
|
|
25
|
+
phone: z.ZodObject<{
|
|
26
|
+
prefix: z.ZodString;
|
|
27
|
+
number: z.ZodString;
|
|
28
|
+
}, z.core.$strict>;
|
|
29
|
+
fax: z.ZodOptional<z.ZodObject<{
|
|
30
|
+
prefix: z.ZodString;
|
|
31
|
+
number: z.ZodString;
|
|
32
|
+
}, z.core.$strict>>;
|
|
33
|
+
}, z.core.$strict>;
|
|
34
|
+
preparer: z.ZodOptional<z.ZodObject<{
|
|
35
|
+
officeName: z.ZodOptional<z.ZodString>;
|
|
36
|
+
contactName: z.ZodOptional<z.ZodString>;
|
|
37
|
+
name: z.ZodOptional<z.ZodString>;
|
|
38
|
+
profession: z.ZodOptional<z.ZodString>;
|
|
39
|
+
licensedDealerNumber: z.ZodOptional<z.ZodString>;
|
|
40
|
+
address: z.ZodOptional<z.ZodString>;
|
|
41
|
+
phone: z.ZodOptional<z.ZodObject<{
|
|
42
|
+
prefix: z.ZodString;
|
|
43
|
+
number: z.ZodString;
|
|
44
|
+
}, z.core.$strict>>;
|
|
45
|
+
}, z.core.$strict>>;
|
|
46
|
+
declarations: z.ZodObject<{
|
|
47
|
+
hasTaxPlanningAction: z.ZodBoolean;
|
|
48
|
+
hadRelatedPartyTransactions: z.ZodBoolean;
|
|
49
|
+
controlsBodyOfPersons: z.ZodBoolean;
|
|
50
|
+
holdsRightsInBodyOfPersons: z.ZodBoolean;
|
|
51
|
+
appliesAccountingStandards: z.ZodBoolean;
|
|
52
|
+
directorsReceivedOpinion: z.ZodBoolean;
|
|
53
|
+
tookReportablePosition: z.ZodBoolean;
|
|
54
|
+
reportablePositions: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
55
|
+
form6111Obligation: z.ZodOptional<z.ZodEnum<{
|
|
56
|
+
obliged: "obliged";
|
|
57
|
+
notObliged: "notObliged";
|
|
58
|
+
notRelevant: "notRelevant";
|
|
59
|
+
}>>;
|
|
60
|
+
financialStatementsAttached: z.ZodOptional<z.ZodBoolean>;
|
|
61
|
+
familyCompany: z.ZodOptional<z.ZodObject<{
|
|
62
|
+
representativeFileNumber: z.ZodString;
|
|
63
|
+
}, z.core.$strict>>;
|
|
64
|
+
isHouseCompany: z.ZodOptional<z.ZodBoolean>;
|
|
65
|
+
form1343Attached: z.ZodOptional<z.ZodBoolean>;
|
|
66
|
+
form1344Attached: z.ZodOptional<z.ZodBoolean>;
|
|
67
|
+
claimsCapitalInvestmentLawBenefits: z.ZodOptional<z.ZodBoolean>;
|
|
68
|
+
preferredEnterprise: z.ZodOptional<z.ZodBoolean>;
|
|
69
|
+
beneficiaryEnterprise: z.ZodOptional<z.ZodObject<{
|
|
70
|
+
noticeDate: z.ZodString;
|
|
71
|
+
}, z.core.$strict>>;
|
|
72
|
+
dividendDistributed: z.ZodOptional<z.ZodBoolean>;
|
|
73
|
+
specialYear: z.ZodOptional<z.ZodObject<{
|
|
74
|
+
balanceSheetDate: z.ZodString;
|
|
75
|
+
}, z.core.$strict>>;
|
|
76
|
+
foreignInvestors: z.ZodOptional<z.ZodBoolean>;
|
|
77
|
+
consolidatedReport: z.ZodOptional<z.ZodEnum<{
|
|
78
|
+
notRelevant: "notRelevant";
|
|
79
|
+
consolidatedUnderSection23: "consolidatedUnderSection23";
|
|
80
|
+
consolidatesWithParent: "consolidatesWithParent";
|
|
81
|
+
}>>;
|
|
82
|
+
partnerInPartnership: z.ZodOptional<z.ZodBoolean>;
|
|
83
|
+
isKibbutz: z.ZodOptional<z.ZodBoolean>;
|
|
84
|
+
requestsAdvancePayments: z.ZodOptional<z.ZodBoolean>;
|
|
85
|
+
hasBuildingIncome: z.ZodOptional<z.ZodBoolean>;
|
|
86
|
+
isTrustBeneficiary: z.ZodOptional<z.ZodBoolean>;
|
|
87
|
+
nonDeductibleSalaryExpenses: z.ZodOptional<z.ZodBoolean>;
|
|
88
|
+
fewMembersCompany62A: z.ZodOptional<z.ZodBoolean>;
|
|
89
|
+
partOfMultinationalGroup: z.ZodOptional<z.ZodBoolean>;
|
|
90
|
+
noBankAccount: z.ZodOptional<z.ZodBoolean>;
|
|
91
|
+
hasCapitalGainsAppendix: z.ZodOptional<z.ZodBoolean>;
|
|
92
|
+
}, z.core.$strict>;
|
|
93
|
+
otherTaxableIncome: z.ZodOptional<z.ZodObject<{
|
|
94
|
+
source: z.ZodOptional<z.ZodString>;
|
|
95
|
+
amount: z.ZodOptional<z.ZodNumber>;
|
|
96
|
+
ratePercent: z.ZodOptional<z.ZodNumber>;
|
|
97
|
+
}, z.core.$strict>>;
|
|
98
|
+
attachments: z.ZodOptional<z.ZodObject<{
|
|
99
|
+
donationReceiptsCount: z.ZodOptional<z.ZodNumber>;
|
|
100
|
+
withholdingCertificatesCount: z.ZodOptional<z.ZodNumber>;
|
|
101
|
+
}, z.core.$strict>>;
|
|
102
|
+
capitalGainsSummary: z.ZodOptional<z.ZodObject<{
|
|
103
|
+
totalAppendicesCount: z.ZodOptional<z.ZodNumber>;
|
|
104
|
+
untransmittedCount: z.ZodOptional<z.ZodNumber>;
|
|
105
|
+
reasons: z.ZodOptional<z.ZodObject<{
|
|
106
|
+
lossOrNoGain: z.ZodOptional<z.ZodBoolean>;
|
|
107
|
+
overFiveImprovementBalances: z.ZodOptional<z.ZodBoolean>;
|
|
108
|
+
over14Appendices: z.ZodOptional<z.ZodBoolean>;
|
|
109
|
+
other: z.ZodOptional<z.ZodBoolean>;
|
|
110
|
+
otherText: z.ZodOptional<z.ZodString>;
|
|
111
|
+
}, z.core.$strict>>;
|
|
112
|
+
}, z.core.$strict>>;
|
|
113
|
+
qualifyingCompany: z.ZodOptional<z.ZodObject<{
|
|
114
|
+
purchased: z.ZodOptional<z.ZodBoolean>;
|
|
115
|
+
israeliPurchaseAmount: z.ZodOptional<z.ZodNumber>;
|
|
116
|
+
foreignPurchaseAmount: z.ZodOptional<z.ZodNumber>;
|
|
117
|
+
amortizationClaimed: z.ZodOptional<z.ZodBoolean>;
|
|
118
|
+
amortizationAmount: z.ZodOptional<z.ZodNumber>;
|
|
119
|
+
}, z.core.$strict>>;
|
|
120
|
+
bankAccount: z.ZodOptional<z.ZodObject<{
|
|
121
|
+
bank: z.ZodString;
|
|
122
|
+
branch: z.ZodString;
|
|
123
|
+
account: z.ZodString;
|
|
124
|
+
}, z.core.$strict>>;
|
|
125
|
+
amounts: z.ZodRecord<z.ZodEnum<{
|
|
126
|
+
"010": "010";
|
|
127
|
+
"011": "011";
|
|
128
|
+
"012": "012";
|
|
129
|
+
"013": "013";
|
|
130
|
+
"014": "014";
|
|
131
|
+
"015": "015";
|
|
132
|
+
"018": "018";
|
|
133
|
+
"020": "020";
|
|
134
|
+
"021": "021";
|
|
135
|
+
"023": "023";
|
|
136
|
+
"024": "024";
|
|
137
|
+
"026": "026";
|
|
138
|
+
"027": "027";
|
|
139
|
+
"029": "029";
|
|
140
|
+
"030": "030";
|
|
141
|
+
"031": "031";
|
|
142
|
+
"032": "032";
|
|
143
|
+
"033": "033";
|
|
144
|
+
"039": "039";
|
|
145
|
+
"040": "040";
|
|
146
|
+
"043": "043";
|
|
147
|
+
"045": "045";
|
|
148
|
+
"046": "046";
|
|
149
|
+
"047": "047";
|
|
150
|
+
"051": "051";
|
|
151
|
+
"061": "061";
|
|
152
|
+
"062": "062";
|
|
153
|
+
"063": "063";
|
|
154
|
+
"064": "064";
|
|
155
|
+
"065": "065";
|
|
156
|
+
"068": "068";
|
|
157
|
+
"069": "069";
|
|
158
|
+
"070": "070";
|
|
159
|
+
"072": "072";
|
|
160
|
+
"080": "080";
|
|
161
|
+
"081": "081";
|
|
162
|
+
"084": "084";
|
|
163
|
+
"086": "086";
|
|
164
|
+
"088": "088";
|
|
165
|
+
"089": "089";
|
|
166
|
+
"091": "091";
|
|
167
|
+
"094": "094";
|
|
168
|
+
"096": "096";
|
|
169
|
+
"097": "097";
|
|
170
|
+
101: "101";
|
|
171
|
+
102: "102";
|
|
172
|
+
105: "105";
|
|
173
|
+
106: "106";
|
|
174
|
+
107: "107";
|
|
175
|
+
108: "108";
|
|
176
|
+
113: "113";
|
|
177
|
+
114: "114";
|
|
178
|
+
115: "115";
|
|
179
|
+
121: "121";
|
|
180
|
+
122: "122";
|
|
181
|
+
126: "126";
|
|
182
|
+
127: "127";
|
|
183
|
+
128: "128";
|
|
184
|
+
141: "141";
|
|
185
|
+
142: "142";
|
|
186
|
+
143: "143";
|
|
187
|
+
145: "145";
|
|
188
|
+
146: "146";
|
|
189
|
+
148: "148";
|
|
190
|
+
149: "149";
|
|
191
|
+
151: "151";
|
|
192
|
+
152: "152";
|
|
193
|
+
155: "155";
|
|
194
|
+
157: "157";
|
|
195
|
+
159: "159";
|
|
196
|
+
160: "160";
|
|
197
|
+
162: "162";
|
|
198
|
+
163: "163";
|
|
199
|
+
164: "164";
|
|
200
|
+
165: "165";
|
|
201
|
+
185: "185";
|
|
202
|
+
187: "187";
|
|
203
|
+
188: "188";
|
|
204
|
+
191: "191";
|
|
205
|
+
209: "209";
|
|
206
|
+
211: "211";
|
|
207
|
+
217: "217";
|
|
208
|
+
218: "218";
|
|
209
|
+
219: "219";
|
|
210
|
+
221: "221";
|
|
211
|
+
225: "225";
|
|
212
|
+
226: "226";
|
|
213
|
+
227: "227";
|
|
214
|
+
253: "253";
|
|
215
|
+
259: "259";
|
|
216
|
+
263: "263";
|
|
217
|
+
271: "271";
|
|
218
|
+
286: "286";
|
|
219
|
+
290: "290";
|
|
220
|
+
299: "299";
|
|
221
|
+
}> & z.core.$partial, z.ZodOptional<z.ZodNumber>>;
|
|
222
|
+
relatedCompanies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
223
|
+
companyName: z.ZodString;
|
|
224
|
+
companyFileNumber: z.ZodOptional<z.ZodString>;
|
|
225
|
+
relationType: z.ZodEnum<{
|
|
226
|
+
parent: "parent";
|
|
227
|
+
subsidiary: "subsidiary";
|
|
228
|
+
partnership: "partnership";
|
|
229
|
+
other: "other";
|
|
230
|
+
kibbutzRelatedCorporation: "kibbutzRelatedCorporation";
|
|
231
|
+
jointlyControlled: "jointlyControlled";
|
|
232
|
+
granddaughter: "granddaughter";
|
|
233
|
+
grandmother: "grandmother";
|
|
234
|
+
}>;
|
|
235
|
+
assessingOfficeCode: z.ZodOptional<z.ZodNumber>;
|
|
236
|
+
}, z.core.$strict>>>;
|
|
237
|
+
shareholders: z.ZodArray<z.ZodObject<{
|
|
238
|
+
idNumber: z.ZodString;
|
|
239
|
+
fullName: z.ZodString;
|
|
240
|
+
isControllingShareholder: z.ZodBoolean;
|
|
241
|
+
dividendRightsPercent: z.ZodOptional<z.ZodNumber>;
|
|
242
|
+
votingRightsPercent: z.ZodOptional<z.ZodNumber>;
|
|
243
|
+
otherRightsPercent: z.ZodOptional<z.ZodNumber>;
|
|
244
|
+
isMaterialShareholder: z.ZodOptional<z.ZodBoolean>;
|
|
245
|
+
salaryMonths1To9: z.ZodOptional<z.ZodNumber>;
|
|
246
|
+
salaryMonths10To12: z.ZodOptional<z.ZodNumber>;
|
|
247
|
+
otherPayments: z.ZodOptional<z.ZodNumber>;
|
|
248
|
+
}, z.core.$strict>>;
|
|
249
|
+
rdInvestments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
250
|
+
companyName: z.ZodString;
|
|
251
|
+
companyFileNumber: z.ZodOptional<z.ZodString>;
|
|
252
|
+
investmentAmount: z.ZodNumber;
|
|
253
|
+
}, z.core.$strict>>>;
|
|
254
|
+
foreignAppendix: z.ZodOptional<z.ZodObject<{
|
|
255
|
+
otherTaxableIncomeDescription: z.ZodOptional<z.ZodString>;
|
|
256
|
+
otherTaxableIncome: z.ZodOptional<z.ZodNumber>;
|
|
257
|
+
foreignTaxPaidOnOtherIncome: z.ZodOptional<z.ZodNumber>;
|
|
258
|
+
totalForeignTaxableIncome: z.ZodOptional<z.ZodNumber>;
|
|
259
|
+
totalForeignLoss: z.ZodOptional<z.ZodNumber>;
|
|
260
|
+
participationExemptionHoldingCompany: z.ZodOptional<z.ZodNumber>;
|
|
261
|
+
taxRefundDeclaration: z.ZodBoolean;
|
|
262
|
+
taxRefundDeclarationAmount: z.ZodOptional<z.ZodNumber>;
|
|
263
|
+
amounts: z.ZodRecord<z.ZodEnum<{
|
|
264
|
+
437: "437";
|
|
265
|
+
401: "401";
|
|
266
|
+
403: "403";
|
|
267
|
+
404: "404";
|
|
268
|
+
405: "405";
|
|
269
|
+
406: "406";
|
|
270
|
+
407: "407";
|
|
271
|
+
409: "409";
|
|
272
|
+
410: "410";
|
|
273
|
+
411: "411";
|
|
274
|
+
412: "412";
|
|
275
|
+
415: "415";
|
|
276
|
+
416: "416";
|
|
277
|
+
417: "417";
|
|
278
|
+
418: "418";
|
|
279
|
+
419: "419";
|
|
280
|
+
420: "420";
|
|
281
|
+
423: "423";
|
|
282
|
+
424: "424";
|
|
283
|
+
425: "425";
|
|
284
|
+
426: "426";
|
|
285
|
+
427: "427";
|
|
286
|
+
428: "428";
|
|
287
|
+
429: "429";
|
|
288
|
+
430: "430";
|
|
289
|
+
431: "431";
|
|
290
|
+
432: "432";
|
|
291
|
+
433: "433";
|
|
292
|
+
435: "435";
|
|
293
|
+
436: "436";
|
|
294
|
+
438: "438";
|
|
295
|
+
439: "439";
|
|
296
|
+
440: "440";
|
|
297
|
+
442: "442";
|
|
298
|
+
443: "443";
|
|
299
|
+
445: "445";
|
|
300
|
+
446: "446";
|
|
301
|
+
447: "447";
|
|
302
|
+
449: "449";
|
|
303
|
+
450: "450";
|
|
304
|
+
452: "452";
|
|
305
|
+
454: "454";
|
|
306
|
+
456: "456";
|
|
307
|
+
458: "458";
|
|
308
|
+
460: "460";
|
|
309
|
+
461: "461";
|
|
310
|
+
462: "462";
|
|
311
|
+
480: "480";
|
|
312
|
+
481: "481";
|
|
313
|
+
486: "486";
|
|
314
|
+
494: "494";
|
|
315
|
+
}> & z.core.$partial, z.ZodOptional<z.ZodNumber>>;
|
|
316
|
+
countryBreakdown: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
317
|
+
437: "437";
|
|
318
|
+
416: "416";
|
|
319
|
+
417: "417";
|
|
320
|
+
420: "420";
|
|
321
|
+
423: "423";
|
|
322
|
+
424: "424";
|
|
323
|
+
426: "426";
|
|
324
|
+
427: "427";
|
|
325
|
+
430: "430";
|
|
326
|
+
431: "431";
|
|
327
|
+
432: "432";
|
|
328
|
+
433: "433";
|
|
329
|
+
436: "436";
|
|
330
|
+
438: "438";
|
|
331
|
+
439: "439";
|
|
332
|
+
442: "442";
|
|
333
|
+
443: "443";
|
|
334
|
+
445: "445";
|
|
335
|
+
447: "447";
|
|
336
|
+
450: "450";
|
|
337
|
+
454: "454";
|
|
338
|
+
458: "458";
|
|
339
|
+
461: "461";
|
|
340
|
+
}> & z.core.$partial, z.ZodOptional<z.ZodObject<{
|
|
341
|
+
deductionsOffsetsAndExemptions: z.ZodOptional<z.ZodNumber>;
|
|
342
|
+
countries: z.ZodArray<z.ZodObject<{
|
|
343
|
+
country: z.ZodString;
|
|
344
|
+
income: z.ZodNumber;
|
|
345
|
+
}, z.core.$strict>>;
|
|
346
|
+
}, z.core.$strict>>>>;
|
|
347
|
+
}, z.core.$strict>>;
|
|
348
|
+
capitalGains: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
349
|
+
symbol: z.ZodLiteral<27>;
|
|
350
|
+
expropriation: z.ZodOptional<z.ZodBoolean>;
|
|
351
|
+
assetDetails: z.ZodOptional<z.ZodString>;
|
|
352
|
+
assetLocation: z.ZodOptional<z.ZodEnum<{
|
|
353
|
+
abroad: "abroad";
|
|
354
|
+
israel: "israel";
|
|
355
|
+
}>>;
|
|
356
|
+
relatedParty: z.ZodOptional<z.ZodBoolean>;
|
|
357
|
+
buyerName: z.ZodOptional<z.ZodString>;
|
|
358
|
+
dates: z.ZodOptional<z.ZodObject<{
|
|
359
|
+
code15: z.ZodOptional<z.ZodString>;
|
|
360
|
+
code20: z.ZodOptional<z.ZodString>;
|
|
361
|
+
code53: z.ZodOptional<z.ZodString>;
|
|
362
|
+
}, z.core.$strict>>;
|
|
363
|
+
amounts: z.ZodRecord<z.ZodEnum<{
|
|
364
|
+
"015": "015";
|
|
365
|
+
"018": "018";
|
|
366
|
+
"020": "020";
|
|
367
|
+
"027": "027";
|
|
368
|
+
"053": "053";
|
|
369
|
+
"055": "055";
|
|
370
|
+
"057": "057";
|
|
371
|
+
"058": "058";
|
|
372
|
+
"074": "074";
|
|
373
|
+
"075": "075";
|
|
374
|
+
"076": "076";
|
|
375
|
+
"077": "077";
|
|
376
|
+
}> & z.core.$partial, z.ZodOptional<z.ZodNumber>>;
|
|
377
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
378
|
+
symbol: z.ZodLiteral<50>;
|
|
379
|
+
expropriation: z.ZodOptional<z.ZodBoolean>;
|
|
380
|
+
assetDetails: z.ZodOptional<z.ZodString>;
|
|
381
|
+
purchaseDate: z.ZodString;
|
|
382
|
+
dates: z.ZodObject<{
|
|
383
|
+
code15: z.ZodString;
|
|
384
|
+
}, z.core.$strict>;
|
|
385
|
+
amounts: z.ZodRecord<z.ZodEnum<{
|
|
386
|
+
"014": "014";
|
|
387
|
+
"015": "015";
|
|
388
|
+
"018": "018";
|
|
389
|
+
"074": "074";
|
|
390
|
+
"075": "075";
|
|
391
|
+
"076": "076";
|
|
392
|
+
"077": "077";
|
|
393
|
+
"016": "016";
|
|
394
|
+
"017": "017";
|
|
395
|
+
}> & z.core.$partial, z.ZodOptional<z.ZodNumber>>;
|
|
396
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
397
|
+
symbol: z.ZodLiteral<51>;
|
|
398
|
+
assetDetails: z.ZodOptional<z.ZodString>;
|
|
399
|
+
assetLocation: z.ZodOptional<z.ZodEnum<{
|
|
400
|
+
abroad: "abroad";
|
|
401
|
+
israel: "israel";
|
|
402
|
+
}>>;
|
|
403
|
+
relatedParty: z.ZodOptional<z.ZodBoolean>;
|
|
404
|
+
buyerName: z.ZodOptional<z.ZodString>;
|
|
405
|
+
dates: z.ZodObject<{
|
|
406
|
+
code15: z.ZodString;
|
|
407
|
+
}, z.core.$strict>;
|
|
408
|
+
walletAddresses: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
409
|
+
amounts: z.ZodRecord<z.ZodEnum<{
|
|
410
|
+
"015": "015";
|
|
411
|
+
"074": "074";
|
|
412
|
+
"076": "076";
|
|
413
|
+
"016": "016";
|
|
414
|
+
"071": "071";
|
|
415
|
+
}> & z.core.$partial, z.ZodOptional<z.ZodNumber>>;
|
|
416
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
417
|
+
symbol: z.ZodLiteral<54>;
|
|
418
|
+
assetDetails: z.ZodOptional<z.ZodString>;
|
|
419
|
+
purchaseDate: z.ZodString;
|
|
420
|
+
dates: z.ZodObject<{
|
|
421
|
+
code15: z.ZodString;
|
|
422
|
+
}, z.core.$strict>;
|
|
423
|
+
amounts: z.ZodRecord<z.ZodEnum<{
|
|
424
|
+
"015": "015";
|
|
425
|
+
"074": "074";
|
|
426
|
+
"076": "076";
|
|
427
|
+
"016": "016";
|
|
428
|
+
}> & z.core.$partial, z.ZodOptional<z.ZodNumber>>;
|
|
429
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
430
|
+
amounts: z.ZodRecord<z.ZodEnum<{
|
|
431
|
+
"010": "010";
|
|
432
|
+
"012": "012";
|
|
433
|
+
"013": "013";
|
|
434
|
+
"030": "030";
|
|
435
|
+
"032": "032";
|
|
436
|
+
"033": "033";
|
|
437
|
+
"062": "062";
|
|
438
|
+
"063": "063";
|
|
439
|
+
"084": "084";
|
|
440
|
+
"086": "086";
|
|
441
|
+
"089": "089";
|
|
442
|
+
"034": "034";
|
|
443
|
+
"036": "036";
|
|
444
|
+
"044": "044";
|
|
445
|
+
"056": "056";
|
|
446
|
+
"060": "060";
|
|
447
|
+
"082": "082";
|
|
448
|
+
"085": "085";
|
|
449
|
+
"087": "087";
|
|
450
|
+
"093": "093";
|
|
451
|
+
"099": "099";
|
|
452
|
+
}> & z.core.$partial, z.ZodOptional<z.ZodNumber>>;
|
|
453
|
+
foreignAsset: z.ZodOptional<z.ZodBoolean>;
|
|
454
|
+
soldToRelatedParty: z.ZodOptional<z.ZodBoolean>;
|
|
455
|
+
boughtFromRelatedParty: z.ZodOptional<z.ZodBoolean>;
|
|
456
|
+
gainFromInvestmentFund: z.ZodOptional<z.ZodBoolean>;
|
|
457
|
+
withholders: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
458
|
+
name: z.ZodOptional<z.ZodString>;
|
|
459
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
460
|
+
account: z.ZodOptional<z.ZodString>;
|
|
461
|
+
}, z.core.$strict>>>;
|
|
462
|
+
lossesCarriedForward: z.ZodOptional<z.ZodNumber>;
|
|
463
|
+
symbol: z.ZodLiteral<60>;
|
|
464
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
465
|
+
symbol: z.ZodLiteral<63>;
|
|
466
|
+
foreignAsset: z.ZodOptional<z.ZodBoolean>;
|
|
467
|
+
lossesCarriedForward: z.ZodOptional<z.ZodNumber>;
|
|
468
|
+
amounts: z.ZodRecord<z.ZodEnum<{
|
|
469
|
+
"023": "023";
|
|
470
|
+
"026": "026";
|
|
471
|
+
"029": "029";
|
|
472
|
+
"056": "056";
|
|
473
|
+
"022": "022";
|
|
474
|
+
}> & z.core.$partial, z.ZodOptional<z.ZodNumber>>;
|
|
475
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
476
|
+
amounts: z.ZodRecord<z.ZodEnum<{
|
|
477
|
+
"013": "013";
|
|
478
|
+
"033": "033";
|
|
479
|
+
"063": "063";
|
|
480
|
+
"056": "056";
|
|
481
|
+
"085": "085";
|
|
482
|
+
"087": "087";
|
|
483
|
+
}> & z.core.$partial, z.ZodOptional<z.ZodNumber>>;
|
|
484
|
+
foreignAsset: z.ZodOptional<z.ZodBoolean>;
|
|
485
|
+
soldToRelatedParty: z.ZodOptional<z.ZodBoolean>;
|
|
486
|
+
boughtFromRelatedParty: z.ZodOptional<z.ZodBoolean>;
|
|
487
|
+
gainFromInvestmentFund: z.ZodOptional<z.ZodBoolean>;
|
|
488
|
+
withholders: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
489
|
+
name: z.ZodOptional<z.ZodString>;
|
|
490
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
491
|
+
account: z.ZodOptional<z.ZodString>;
|
|
492
|
+
}, z.core.$strict>>>;
|
|
493
|
+
lossesCarriedForward: z.ZodOptional<z.ZodNumber>;
|
|
494
|
+
symbol: z.ZodLiteral<64>;
|
|
495
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
496
|
+
withholdingStatus: z.ZodOptional<z.ZodEnum<{
|
|
497
|
+
notWithheldFirstHalf: "notWithheldFirstHalf";
|
|
498
|
+
notWithheldSecondHalf: "notWithheldSecondHalf";
|
|
499
|
+
}>>;
|
|
500
|
+
amounts: z.ZodRecord<z.ZodEnum<{
|
|
501
|
+
"010": "010";
|
|
502
|
+
"012": "012";
|
|
503
|
+
"013": "013";
|
|
504
|
+
"030": "030";
|
|
505
|
+
"032": "032";
|
|
506
|
+
"033": "033";
|
|
507
|
+
"062": "062";
|
|
508
|
+
"063": "063";
|
|
509
|
+
"084": "084";
|
|
510
|
+
"086": "086";
|
|
511
|
+
"089": "089";
|
|
512
|
+
"034": "034";
|
|
513
|
+
"036": "036";
|
|
514
|
+
"044": "044";
|
|
515
|
+
"056": "056";
|
|
516
|
+
"060": "060";
|
|
517
|
+
"082": "082";
|
|
518
|
+
"085": "085";
|
|
519
|
+
"087": "087";
|
|
520
|
+
"093": "093";
|
|
521
|
+
"099": "099";
|
|
522
|
+
}> & z.core.$partial, z.ZodOptional<z.ZodNumber>>;
|
|
523
|
+
foreignAsset: z.ZodOptional<z.ZodBoolean>;
|
|
524
|
+
soldToRelatedParty: z.ZodOptional<z.ZodBoolean>;
|
|
525
|
+
boughtFromRelatedParty: z.ZodOptional<z.ZodBoolean>;
|
|
526
|
+
gainFromInvestmentFund: z.ZodOptional<z.ZodBoolean>;
|
|
527
|
+
withholders: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
528
|
+
name: z.ZodOptional<z.ZodString>;
|
|
529
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
530
|
+
account: z.ZodOptional<z.ZodString>;
|
|
531
|
+
}, z.core.$strict>>>;
|
|
532
|
+
lossesCarriedForward: z.ZodOptional<z.ZodNumber>;
|
|
533
|
+
symbol: z.ZodLiteral<65>;
|
|
534
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
535
|
+
symbol: z.ZodLiteral<66>;
|
|
536
|
+
foreignAsset: z.ZodOptional<z.ZodBoolean>;
|
|
537
|
+
withholdingStatus: z.ZodOptional<z.ZodEnum<{
|
|
538
|
+
notWithheldFirstHalf: "notWithheldFirstHalf";
|
|
539
|
+
notWithheldSecondHalf: "notWithheldSecondHalf";
|
|
540
|
+
}>>;
|
|
541
|
+
lossesCarriedForward: z.ZodOptional<z.ZodNumber>;
|
|
542
|
+
amounts: z.ZodRecord<z.ZodEnum<{
|
|
543
|
+
"023": "023";
|
|
544
|
+
"026": "026";
|
|
545
|
+
"029": "029";
|
|
546
|
+
"056": "056";
|
|
547
|
+
"022": "022";
|
|
548
|
+
}> & z.core.$partial, z.ZodOptional<z.ZodNumber>>;
|
|
549
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
550
|
+
symbol: z.ZodLiteral<77>;
|
|
551
|
+
expropriation: z.ZodOptional<z.ZodBoolean>;
|
|
552
|
+
assetDetails: z.ZodOptional<z.ZodString>;
|
|
553
|
+
assetLocation: z.ZodOptional<z.ZodEnum<{
|
|
554
|
+
abroad: "abroad";
|
|
555
|
+
israel: "israel";
|
|
556
|
+
}>>;
|
|
557
|
+
relatedParty: z.ZodOptional<z.ZodBoolean>;
|
|
558
|
+
buyerName: z.ZodOptional<z.ZodString>;
|
|
559
|
+
dates: z.ZodObject<{
|
|
560
|
+
code15: z.ZodString;
|
|
561
|
+
code20: z.ZodString;
|
|
562
|
+
}, z.core.$strict>;
|
|
563
|
+
improvements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
564
|
+
expense: z.ZodOptional<z.ZodNumber>;
|
|
565
|
+
accumulatedDepreciation: z.ZodOptional<z.ZodNumber>;
|
|
566
|
+
date: z.ZodString;
|
|
567
|
+
code50Amount: z.ZodOptional<z.ZodNumber>;
|
|
568
|
+
}, z.core.$strict>>>;
|
|
569
|
+
replacementAsset: z.ZodOptional<z.ZodObject<{
|
|
570
|
+
details: z.ZodOptional<z.ZodString>;
|
|
571
|
+
purchaseDate: z.ZodOptional<z.ZodString>;
|
|
572
|
+
price: z.ZodOptional<z.ZodNumber>;
|
|
573
|
+
}, z.core.$strict>>;
|
|
574
|
+
walletAddresses: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
575
|
+
amounts: z.ZodRecord<z.ZodEnum<{
|
|
576
|
+
"015": "015";
|
|
577
|
+
"018": "018";
|
|
578
|
+
"020": "020";
|
|
579
|
+
"027": "027";
|
|
580
|
+
"040": "040";
|
|
581
|
+
"072": "072";
|
|
582
|
+
"055": "055";
|
|
583
|
+
"074": "074";
|
|
584
|
+
"075": "075";
|
|
585
|
+
"076": "076";
|
|
586
|
+
"077": "077";
|
|
587
|
+
"071": "071";
|
|
588
|
+
"059": "059";
|
|
589
|
+
"092": "092";
|
|
590
|
+
}> & z.core.$partial, z.ZodOptional<z.ZodNumber>>;
|
|
591
|
+
}, z.core.$strict>], "symbol">>>;
|
|
592
|
+
}, z.core.$strict>;
|
|
593
|
+
/** The input schema of `taxYear` (SPEC §9.2: the schema is per year). */
|
|
594
|
+
export declare function schemaFor(_taxYear: SupportedTaxYear): typeof report1214InputSchema;
|