@diy-accounting-uk/diya-gl 1.2.57 → 1.2.58
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/dist/app/bin/export.js +7 -1
- package/dist/app/bin/link.js +2 -1
- package/dist/app/bin/roll-forward.js +2 -1
- package/dist/app/bin/write-workbook.js +2 -1
- package/dist/app/data/frc-taxonomy/2014.json +5925 -0
- package/dist/app/data/frc-taxonomy/2018.json +5960 -0
- package/dist/app/data/frc-taxonomy/2019.json +6288 -0
- package/dist/app/data/frc-taxonomy/2021.json +6332 -0
- package/dist/app/data/releases.json +26 -0
- package/dist/app/lib/diya-gl-interchange.js +2 -2
- package/dist/app/lib/frc-suite-concepts-node.js +29 -0
- package/dist/app/lib/ixbrl-accounts.js +20 -3
- package/dist/app/lib/ixbrl-summary-book.js +87 -18
- package/dist/app/lib/provenance-data.js +1 -1
- package/package.json +1 -1
package/dist/app/bin/export.js
CHANGED
|
@@ -60,6 +60,7 @@ import {
|
|
|
60
60
|
PackagePartError,
|
|
61
61
|
ProductNotAvailableError,
|
|
62
62
|
} from "../lib/diya-gl-interchange.js";
|
|
63
|
+
import { frcSuiteConcepts } from "../lib/frc-suite-concepts-node.js";
|
|
63
64
|
import { PRODUCTS } from "../lib/products.js";
|
|
64
65
|
|
|
65
66
|
// A book read through --file whose sniffed product disagrees with the
|
|
@@ -216,7 +217,12 @@ async function writeBookChecksJson(outputDir, book, lines) {
|
|
|
216
217
|
export async function extractBookFromFile(filePath, { product } = {}) {
|
|
217
218
|
const resolvedFile = resolve(filePath);
|
|
218
219
|
const bytes = readFileSync(resolvedFile);
|
|
219
|
-
const {
|
|
220
|
+
const {
|
|
221
|
+
product: sniffedProduct,
|
|
222
|
+
book,
|
|
223
|
+
lines,
|
|
224
|
+
overtyped,
|
|
225
|
+
} = await readBookSource(bytes, basename(resolvedFile), { products: PRODUCTS, suiteConcepts: frcSuiteConcepts });
|
|
220
226
|
if (product && product !== sniffedProduct) {
|
|
221
227
|
throw new PackageMismatchError(product, PRODUCTS[sniffedProduct].PRODUCT.name);
|
|
222
228
|
}
|
package/dist/app/bin/link.js
CHANGED
|
@@ -19,6 +19,7 @@ import { join, resolve } from "path";
|
|
|
19
19
|
import { fileURLToPath } from "url";
|
|
20
20
|
import { parseDiyaGlData } from "../lib/diya-gl-loader.js";
|
|
21
21
|
import { readBookSource } from "../lib/diya-gl-interchange.js";
|
|
22
|
+
import { frcSuiteConcepts } from "../lib/frc-suite-concepts-node.js";
|
|
22
23
|
import { canonicalBookToml, canonicalLinesJsonl } from "../lib/diya-gl-canonical.js";
|
|
23
24
|
import { productIdOf } from "../lib/xlsx-exporter.js";
|
|
24
25
|
import { PRODUCTS } from "../lib/products.js";
|
|
@@ -51,7 +52,7 @@ async function readBookText(source) {
|
|
|
51
52
|
const lines = readFileSync(join(path, "lines.jsonl"), "utf8");
|
|
52
53
|
return { toml, lines, book: parseDiyaGlData(toml, lines).book };
|
|
53
54
|
}
|
|
54
|
-
const { book, lines } = await readBookSource(readFileSync(path), source, { products: PRODUCTS });
|
|
55
|
+
const { book, lines } = await readBookSource(readFileSync(path), source, { products: PRODUCTS, suiteConcepts: frcSuiteConcepts });
|
|
55
56
|
return { toml: canonicalBookToml(book), lines: canonicalLinesJsonl(lines), book };
|
|
56
57
|
}
|
|
57
58
|
|
|
@@ -22,6 +22,7 @@ import { join, resolve } from "path";
|
|
|
22
22
|
import { fileURLToPath } from "url";
|
|
23
23
|
import { parseDiyaGlData } from "../lib/diya-gl-loader.js";
|
|
24
24
|
import { readBookSource } from "../lib/diya-gl-interchange.js";
|
|
25
|
+
import { frcSuiteConcepts } from "../lib/frc-suite-concepts-node.js";
|
|
25
26
|
import { PRODUCTS } from "../lib/products.js";
|
|
26
27
|
import { TOOLS, createSession } from "../lib/mcp/diya-gl-tools.js";
|
|
27
28
|
import { writeBookDirectory } from "./export.js";
|
|
@@ -52,7 +53,7 @@ async function readBook(source) {
|
|
|
52
53
|
if (statSync(path).isDirectory()) {
|
|
53
54
|
return parseDiyaGlData(readFileSync(join(path, "book.toml"), "utf8"), readFileSync(join(path, "lines.jsonl"), "utf8"));
|
|
54
55
|
}
|
|
55
|
-
const { book, lines } = await readBookSource(readFileSync(path), source, { products: PRODUCTS });
|
|
56
|
+
const { book, lines } = await readBookSource(readFileSync(path), source, { products: PRODUCTS, suiteConcepts: frcSuiteConcepts });
|
|
56
57
|
return { book, lines };
|
|
57
58
|
}
|
|
58
59
|
|
|
@@ -18,6 +18,7 @@ import { readFileSync, writeFileSync, mkdirSync } from "fs";
|
|
|
18
18
|
import { resolve } from "path";
|
|
19
19
|
import { loadDiyaGlData } from "../lib/diya-gl-loader.js";
|
|
20
20
|
import { readBookSource } from "../lib/diya-gl-interchange.js";
|
|
21
|
+
import { frcSuiteConcepts } from "../lib/frc-suite-concepts-node.js";
|
|
21
22
|
import { saveWorkbook, saveWorkbookFiles, savePackageZip, productOf } from "../lib/product-workbook.js";
|
|
22
23
|
import { productModule, PRODUCTS } from "../lib/products.js";
|
|
23
24
|
|
|
@@ -59,7 +60,7 @@ async function loadBookAndLines(dataDir, file, offset) {
|
|
|
59
60
|
return loadDiyaGlData(resolve(dataDir), offset);
|
|
60
61
|
}
|
|
61
62
|
const bytes = readFileSync(resolve(file));
|
|
62
|
-
const { book, lines } = await readBookSource(bytes, file, { products: PRODUCTS });
|
|
63
|
+
const { book, lines } = await readBookSource(bytes, file, { products: PRODUCTS, suiteConcepts: frcSuiteConcepts });
|
|
63
64
|
return { book, lines };
|
|
64
65
|
}
|
|
65
66
|
|