@fragment-dev/cli 2025.9.24 → 2025.9.29
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/{chunk-WVPWSZFV.js → chunk-3UMWAIEH.js} +1 -1
- package/dist/{chunk-2YDYMQEU.js → chunk-CA3RG2XI.js} +4 -4
- package/dist/{chunk-5YFHCTKF.js → chunk-DAH4EIHV.js} +3 -3
- package/dist/{chunk-EUDPQTGG.js → chunk-GX2Y7J77.js} +1 -1
- package/dist/{chunk-DPINR45T.js → chunk-J4Q5VFMW.js} +2 -2
- package/dist/{chunk-C3HNQQDL.js → chunk-MZOZSRIG.js} +1 -1
- package/dist/{chunk-Z3BY6FHK.js → chunk-OBRIN4VY.js} +2 -2
- package/dist/{chunk-YWVJMLFY.js → chunk-SVOY3WJA.js} +1 -2
- package/dist/{chunk-2L2ZCHD7.js → chunk-WZSW2XFF.js} +89 -124
- package/dist/commands/gen-graphql.js +6 -6
- package/dist/commands/verify-schema.js +6 -6
- package/dist/commands.js +9 -9
- package/dist/graphql.js +3 -3
- package/dist/index.js +9 -9
- package/dist/utils/formatValidationErrors.js +2 -2
- package/dist/utils/schemaValidation.js +5 -5
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
|
@@ -3,18 +3,18 @@ import {
|
|
|
3
3
|
generateQueryFiles,
|
|
4
4
|
schemaToEntryDefinitions,
|
|
5
5
|
validateOutputName
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3UMWAIEH.js";
|
|
7
7
|
import {
|
|
8
8
|
Schema,
|
|
9
9
|
parseWithError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WZSW2XFF.js";
|
|
11
11
|
import {
|
|
12
12
|
formatValidationErrors,
|
|
13
13
|
logValidationErrors
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-GX2Y7J77.js";
|
|
15
15
|
import {
|
|
16
16
|
BadRequestError
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-SVOY3WJA.js";
|
|
18
18
|
import {
|
|
19
19
|
FragmentCommand,
|
|
20
20
|
require_lib
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Schema,
|
|
3
3
|
parseWithError
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-WZSW2XFF.js";
|
|
5
5
|
import {
|
|
6
6
|
formatValidationErrors
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GX2Y7J77.js";
|
|
8
8
|
import {
|
|
9
9
|
BadRequestError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-SVOY3WJA.js";
|
|
11
11
|
import {
|
|
12
12
|
init_cjs_shims
|
|
13
13
|
} from "./chunk-7GH3YGSC.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from "./chunk-HDSQSGJZ.js";
|
|
19
19
|
import {
|
|
20
20
|
VerifySchema
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-OBRIN4VY.js";
|
|
22
22
|
import {
|
|
23
23
|
Workspace
|
|
24
24
|
} from "./chunk-3LSL4JNW.js";
|
|
@@ -66,7 +66,7 @@ import {
|
|
|
66
66
|
} from "./chunk-VRHCYGEJ.js";
|
|
67
67
|
import {
|
|
68
68
|
GenGraphQL
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-CA3RG2XI.js";
|
|
70
70
|
import {
|
|
71
71
|
init_cjs_shims
|
|
72
72
|
} from "./chunk-7GH3YGSC.js";
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
extractSchemaMetadata,
|
|
3
3
|
isJsonParseError,
|
|
4
4
|
validateSchemaStructure
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-DAH4EIHV.js";
|
|
6
6
|
import {
|
|
7
7
|
DEFAULT_SCHEMA_PATH
|
|
8
8
|
} from "./chunk-A4BSWX5D.js";
|
|
9
9
|
import {
|
|
10
10
|
logValidationErrors
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-GX2Y7J77.js";
|
|
12
12
|
import {
|
|
13
13
|
FragmentCommand,
|
|
14
14
|
require_lib
|
|
@@ -7714,8 +7714,7 @@ var codes = {
|
|
|
7714
7714
|
schema: {
|
|
7715
7715
|
not_found: "schema_not_found",
|
|
7716
7716
|
entry_type_not_found: "schema_entry_type_not_found",
|
|
7717
|
-
max_size_exceeded: "schema_max_size_exceeded"
|
|
7718
|
-
flows_not_supported: "schema_flows_not_supported"
|
|
7717
|
+
max_size_exceeded: "schema_max_size_exceeded"
|
|
7719
7718
|
},
|
|
7720
7719
|
schema_ledger: {
|
|
7721
7720
|
not_found: "schema_ledger_not_found"
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
getInstanceValueByAccountPath,
|
|
4
4
|
getSchemaObjectParameters,
|
|
5
5
|
getStructuralPath
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MZOZSRIG.js";
|
|
7
7
|
import {
|
|
8
8
|
BadRequestError,
|
|
9
9
|
CurrencyMatchInputSchema,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
assert_default,
|
|
19
19
|
currencyCodes,
|
|
20
20
|
safe
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-SVOY3WJA.js";
|
|
22
22
|
import {
|
|
23
23
|
z
|
|
24
24
|
} from "./chunk-5TQBOAE7.js";
|
|
@@ -4614,25 +4614,29 @@ var BaseScene = z.object({
|
|
|
4614
4614
|
name: z.string(),
|
|
4615
4615
|
events: z.array(SceneEventSchema)
|
|
4616
4616
|
});
|
|
4617
|
-
var
|
|
4617
|
+
var EntryKey = z.object({
|
|
4618
4618
|
type: SafeStringSchema,
|
|
4619
4619
|
typeVersion: z.number().int().positive()
|
|
4620
4620
|
});
|
|
4621
|
-
var
|
|
4622
|
-
|
|
4623
|
-
|
|
4621
|
+
var SchemaLedgerAccountMatchInput = z.object({
|
|
4622
|
+
path: ParameterizedString
|
|
4623
|
+
});
|
|
4624
|
+
var GroupReconciliationParameters = z.object({
|
|
4625
|
+
clearingAccountPath: SchemaLedgerAccountMatchInput
|
|
4626
|
+
});
|
|
4627
|
+
var SchemaEntryGroup = z.object({
|
|
4628
|
+
key: SafeStringSchema,
|
|
4629
|
+
value: ParameterizedString,
|
|
4624
4630
|
description: ParameterizedString.optional(),
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
entries: z.array(FlowKey),
|
|
4628
|
-
flows: z.array(FlowKey)
|
|
4631
|
+
entries: z.array(EntryKey),
|
|
4632
|
+
reconciliation: GroupReconciliationParameters.optional()
|
|
4629
4633
|
});
|
|
4630
4634
|
var BaseSchema = z.object({
|
|
4631
4635
|
name: z.string().optional(),
|
|
4632
4636
|
key: z.string(),
|
|
4633
4637
|
chartOfAccounts: BaseChartOfAccounts,
|
|
4634
4638
|
ledgerEntries: BaseLedgerEntries.optional(),
|
|
4635
|
-
|
|
4639
|
+
groups: z.array(SchemaEntryGroup).optional(),
|
|
4636
4640
|
scenes: z.array(BaseScene).optional(),
|
|
4637
4641
|
consistencyConfig: z.optional(
|
|
4638
4642
|
z.object({
|
|
@@ -6318,72 +6322,70 @@ var transformAndValidateEntries = ({
|
|
|
6318
6322
|
};
|
|
6319
6323
|
};
|
|
6320
6324
|
|
|
6321
|
-
// ../../libs/schema-validation/utils/transformers/
|
|
6325
|
+
// ../../libs/schema-validation/utils/transformers/groups.ts
|
|
6322
6326
|
init_cjs_shims();
|
|
6323
6327
|
var isAccountPathEquivalent = (path1, path2) => {
|
|
6324
6328
|
return getStructuralPath(path1) === getStructuralPath(path2);
|
|
6325
6329
|
};
|
|
6326
|
-
var validateMinimumSteps = (
|
|
6327
|
-
|
|
6328
|
-
if (stepCount < 2) {
|
|
6330
|
+
var validateMinimumSteps = (group) => {
|
|
6331
|
+
if (group.entries.length < 2 && group.reconciliation) {
|
|
6329
6332
|
return [
|
|
6330
6333
|
{
|
|
6331
|
-
message: "
|
|
6332
|
-
path: []
|
|
6334
|
+
message: "Reconciliation Group must contain at least 2 entries",
|
|
6335
|
+
path: ["entries"]
|
|
6333
6336
|
}
|
|
6334
6337
|
];
|
|
6335
6338
|
}
|
|
6336
|
-
|
|
6337
|
-
};
|
|
6338
|
-
var validateInitializingEntryExists = (flow, validatedEntries) => {
|
|
6339
|
-
const initializingEntry = validatedEntries.types.find(
|
|
6340
|
-
(e) => e.type === flow.initializingEntry.type && (e.typeVersion ?? 1) === flow.initializingEntry.typeVersion
|
|
6341
|
-
);
|
|
6342
|
-
if (!initializingEntry) {
|
|
6339
|
+
if (group.entries.length < 1 && !group.reconciliation) {
|
|
6343
6340
|
return [
|
|
6344
6341
|
{
|
|
6345
|
-
message: "
|
|
6346
|
-
path: ["
|
|
6342
|
+
message: "Group must contain at least 1 entry",
|
|
6343
|
+
path: ["entries"]
|
|
6347
6344
|
}
|
|
6348
6345
|
];
|
|
6349
6346
|
}
|
|
6350
6347
|
return [];
|
|
6351
6348
|
};
|
|
6352
|
-
var validateUniqueEntries = (
|
|
6349
|
+
var validateUniqueEntries = (group) => {
|
|
6353
6350
|
const entrySet = new Set(
|
|
6354
|
-
|
|
6351
|
+
group.entries.map((entry) => `${entry.type}:${entry.typeVersion}`)
|
|
6355
6352
|
);
|
|
6356
|
-
if (entrySet.size !==
|
|
6353
|
+
if (entrySet.size !== group.entries.length) {
|
|
6357
6354
|
return [
|
|
6358
6355
|
{
|
|
6359
|
-
message: "Cannot have duplicate entries in the
|
|
6356
|
+
message: "Cannot have duplicate entries in the group",
|
|
6360
6357
|
path: ["entries"]
|
|
6361
6358
|
}
|
|
6362
6359
|
];
|
|
6363
6360
|
}
|
|
6364
6361
|
return [];
|
|
6365
6362
|
};
|
|
6366
|
-
var
|
|
6367
|
-
|
|
6368
|
-
if (flowSet.size !== flow.flows.length) {
|
|
6363
|
+
var validateReconciliationGroupHasClearingAccountPath = (group) => {
|
|
6364
|
+
if (group.reconciliation && group.reconciliation.clearingAccountPath.path.trim() === "") {
|
|
6369
6365
|
return [
|
|
6370
|
-
{
|
|
6366
|
+
{
|
|
6367
|
+
message: "Reconciliation group must have a clearing account path",
|
|
6368
|
+
path: ["reconciliation", "clearingAccountPath"]
|
|
6369
|
+
}
|
|
6371
6370
|
];
|
|
6372
6371
|
}
|
|
6373
6372
|
return [];
|
|
6374
6373
|
};
|
|
6375
|
-
var validateEntriesModifyClearingAccount = (
|
|
6376
|
-
|
|
6377
|
-
|
|
6374
|
+
var validateEntriesModifyClearingAccount = (group, validatedEntries) => {
|
|
6375
|
+
if (!group.reconciliation) {
|
|
6376
|
+
return [];
|
|
6377
|
+
}
|
|
6378
|
+
const clearingAccount = group.reconciliation.clearingAccountPath.path;
|
|
6379
|
+
const fullEntries = group.entries.map((entry) => {
|
|
6378
6380
|
const fullEntry = validatedEntries.types.find(
|
|
6379
6381
|
(e) => e.type === entry.type && (e.typeVersion ?? 1) === entry.typeVersion
|
|
6380
6382
|
);
|
|
6381
6383
|
return fullEntry;
|
|
6382
6384
|
});
|
|
6383
|
-
if (fullEntries.length !==
|
|
6385
|
+
if (fullEntries.length !== group.entries.length) {
|
|
6384
6386
|
return [
|
|
6385
6387
|
{
|
|
6386
|
-
message: "All entries in the
|
|
6388
|
+
message: "All entries in the group must be present in the validated entries",
|
|
6387
6389
|
path: ["entries"]
|
|
6388
6390
|
}
|
|
6389
6391
|
];
|
|
@@ -6395,127 +6397,90 @@ var validateEntriesModifyClearingAccount = (flow, validatedEntries) => {
|
|
|
6395
6397
|
);
|
|
6396
6398
|
if (entriesMissingClearingAccount.length > 0) {
|
|
6397
6399
|
return entriesMissingClearingAccount.map((e) => ({
|
|
6398
|
-
message: `All entries in
|
|
6400
|
+
message: `All entries in a reconciliation group must modify the clearing account, not present in the entries ${e?.type} v${e?.typeVersion}`,
|
|
6399
6401
|
path: ["entries"]
|
|
6400
6402
|
}));
|
|
6401
6403
|
}
|
|
6402
6404
|
return [];
|
|
6403
6405
|
};
|
|
6404
|
-
var
|
|
6405
|
-
if (!flows || !flow.flows || flow.flows.length === 0) {
|
|
6406
|
-
return [];
|
|
6407
|
-
}
|
|
6406
|
+
var validateGroupEntryReferences = (group, validatedEntries) => {
|
|
6408
6407
|
const errors = [];
|
|
6409
|
-
|
|
6410
|
-
const currentPath = [];
|
|
6411
|
-
const validateFlowRecursively = (currentFlow, depth, path) => {
|
|
6412
|
-
const flowId = `${currentFlow.type}:${currentFlow.typeVersion}`;
|
|
6413
|
-
if (visited.has(flowId)) {
|
|
6414
|
-
if (currentPath.includes(flowId)) {
|
|
6415
|
-
errors.push({
|
|
6416
|
-
message: `Circular reference detected in flow: ${flowId}`,
|
|
6417
|
-
path: ["flows", ...path]
|
|
6418
|
-
});
|
|
6419
|
-
return;
|
|
6420
|
-
}
|
|
6421
|
-
return;
|
|
6422
|
-
}
|
|
6423
|
-
if (depth > 5) {
|
|
6424
|
-
errors.push({
|
|
6425
|
-
message: `Flow depth exceeds maximum of 5 levels: ${flowId}`,
|
|
6426
|
-
path: ["flows", ...path]
|
|
6427
|
-
});
|
|
6428
|
-
return;
|
|
6429
|
-
}
|
|
6430
|
-
visited.add(flowId);
|
|
6431
|
-
currentPath.push(flowId);
|
|
6432
|
-
if (currentFlow.flows && currentFlow.flows.length > 0) {
|
|
6433
|
-
currentFlow.flows.forEach((flowKey, index) => {
|
|
6434
|
-
const childFlowId = `${flowKey.type}:${flowKey.typeVersion}`;
|
|
6435
|
-
const childFlow = flows.find(
|
|
6436
|
-
(f) => f.type === flowKey.type && f.typeVersion === flowKey.typeVersion
|
|
6437
|
-
);
|
|
6438
|
-
if (childFlow) {
|
|
6439
|
-
validateFlowRecursively(childFlow, depth + 1, [
|
|
6440
|
-
...path,
|
|
6441
|
-
index.toString()
|
|
6442
|
-
]);
|
|
6443
|
-
} else {
|
|
6444
|
-
errors.push({
|
|
6445
|
-
message: `Referenced flow not found: ${childFlowId}`,
|
|
6446
|
-
path: ["flows", ...path, index.toString()]
|
|
6447
|
-
});
|
|
6448
|
-
}
|
|
6449
|
-
});
|
|
6450
|
-
}
|
|
6451
|
-
currentPath.pop();
|
|
6452
|
-
};
|
|
6453
|
-
validateFlowRecursively(flow, 0, []);
|
|
6454
|
-
return errors;
|
|
6455
|
-
};
|
|
6456
|
-
var validateFlowEntryReferences = (flow, validatedEntries) => {
|
|
6457
|
-
const errors = [];
|
|
6458
|
-
flow.entries.forEach((entryRef, index) => {
|
|
6408
|
+
group.entries.forEach((entryRef, index) => {
|
|
6459
6409
|
const matchingEntry = validatedEntries?.types?.find(
|
|
6460
6410
|
(entry) => entry.type === entryRef.type && (entry.typeVersion ?? 1) === entryRef.typeVersion
|
|
6461
6411
|
);
|
|
6462
6412
|
if (!matchingEntry) {
|
|
6463
6413
|
errors.push({
|
|
6464
|
-
message: `
|
|
6414
|
+
message: `Group entry not found in validated entries: ${entryRef.type}:${entryRef.typeVersion}`,
|
|
6415
|
+
path: ["entries", index]
|
|
6416
|
+
});
|
|
6417
|
+
} else if (!matchingEntry.groups?.some(
|
|
6418
|
+
(g) => g.key === group.key && g.value === group.value
|
|
6419
|
+
)) {
|
|
6420
|
+
errors.push({
|
|
6421
|
+
message: `All entries in group ${group.key} must have the group as a parameter`,
|
|
6465
6422
|
path: ["entries", index]
|
|
6466
6423
|
});
|
|
6467
|
-
} else {
|
|
6468
6424
|
}
|
|
6469
6425
|
});
|
|
6470
6426
|
return errors;
|
|
6471
6427
|
};
|
|
6472
|
-
var validateClearingAccount = (
|
|
6473
|
-
|
|
6428
|
+
var validateClearingAccount = (group, validatedCoA) => {
|
|
6429
|
+
if (!group.reconciliation) {
|
|
6430
|
+
return [];
|
|
6431
|
+
}
|
|
6432
|
+
const clearingAccount = group.reconciliation.clearingAccountPath.path;
|
|
6433
|
+
if (!clearingAccount || clearingAccount.trim() === "") {
|
|
6434
|
+
return [
|
|
6435
|
+
{
|
|
6436
|
+
message: "Group clearing account path cannot be empty",
|
|
6437
|
+
path: ["reconciliation", "clearingAccountPath"]
|
|
6438
|
+
}
|
|
6439
|
+
];
|
|
6440
|
+
}
|
|
6474
6441
|
const accountPathToAccount = getStructuralPathToAccount(validatedCoA);
|
|
6475
6442
|
const errors = [];
|
|
6476
6443
|
errors.push(
|
|
6477
6444
|
...validateAccountPath(
|
|
6478
6445
|
clearingAccount,
|
|
6479
6446
|
accountPathToAccount,
|
|
6480
|
-
"
|
|
6481
|
-
["clearingAccountPath"]
|
|
6447
|
+
"Group clearing account",
|
|
6448
|
+
["reconciliation", "clearingAccountPath"]
|
|
6482
6449
|
)
|
|
6483
6450
|
);
|
|
6484
6451
|
errors.push(
|
|
6485
6452
|
...validateAccountIsActive(
|
|
6486
6453
|
clearingAccount,
|
|
6487
6454
|
accountPathToAccount,
|
|
6488
|
-
"
|
|
6489
|
-
["clearingAccountPath"]
|
|
6455
|
+
"Group clearing account",
|
|
6456
|
+
["reconciliation", "clearingAccountPath"]
|
|
6490
6457
|
)
|
|
6491
6458
|
);
|
|
6492
6459
|
errors.push(
|
|
6493
6460
|
...validateTemplateAccountParameters(
|
|
6494
6461
|
clearingAccount,
|
|
6495
6462
|
accountPathToAccount,
|
|
6496
|
-
"
|
|
6497
|
-
["clearingAccountPath"]
|
|
6463
|
+
"Group clearing account",
|
|
6464
|
+
["reconciliation", "clearingAccountPath"]
|
|
6498
6465
|
)
|
|
6499
6466
|
);
|
|
6500
6467
|
return errors;
|
|
6501
6468
|
};
|
|
6502
|
-
var
|
|
6469
|
+
var validateGroup = (group, validatedCoA, validatedEntries) => {
|
|
6503
6470
|
const errors = [];
|
|
6504
|
-
const zodErrors = safeGetZodErrors(
|
|
6471
|
+
const zodErrors = safeGetZodErrors(SchemaEntryGroup, group, []);
|
|
6505
6472
|
errors.push(...zodErrors);
|
|
6506
6473
|
if (errors.length > 0) {
|
|
6507
6474
|
return errors;
|
|
6508
6475
|
}
|
|
6509
|
-
errors.push(...
|
|
6510
|
-
errors.push(...
|
|
6511
|
-
errors.push(...validateUniqueEntries(
|
|
6512
|
-
errors.push(...validateUniqueFlows(flow));
|
|
6476
|
+
errors.push(...validateReconciliationGroupHasClearingAccountPath(group));
|
|
6477
|
+
errors.push(...validateMinimumSteps(group));
|
|
6478
|
+
errors.push(...validateUniqueEntries(group));
|
|
6513
6479
|
if (errors.length === 0) {
|
|
6514
|
-
errors.push(...
|
|
6515
|
-
errors.push(...
|
|
6516
|
-
errors.push(...validateClearingAccount(flow, validatedCoA));
|
|
6480
|
+
errors.push(...validateGroupEntryReferences(group, validatedEntries));
|
|
6481
|
+
errors.push(...validateClearingAccount(group, validatedCoA));
|
|
6517
6482
|
errors.push(
|
|
6518
|
-
...validateEntriesModifyClearingAccount(
|
|
6483
|
+
...validateEntriesModifyClearingAccount(group, validatedEntries)
|
|
6519
6484
|
);
|
|
6520
6485
|
}
|
|
6521
6486
|
return errors;
|
|
@@ -6755,9 +6720,10 @@ var Schema = z.object({
|
|
|
6755
6720
|
ledgerEntries: SchemaLedgerEntriesInput.optional(),
|
|
6756
6721
|
consistencyConfig: z.optional(LedgerConsistencyConfigSchema),
|
|
6757
6722
|
scenes: z.array(Scene).optional(),
|
|
6758
|
-
|
|
6723
|
+
groups: z.array(SchemaEntryGroup).optional()
|
|
6759
6724
|
}).transform((schema, ctx) => {
|
|
6760
|
-
const { chartOfAccounts, ledgerEntries, consistencyConfig,
|
|
6725
|
+
const { chartOfAccounts, ledgerEntries, consistencyConfig, groups } = schema;
|
|
6726
|
+
const mergedGroups = groups;
|
|
6761
6727
|
const { errors, filledIn: validatedLedgerEntries } = transformAndValidateEntries({
|
|
6762
6728
|
ledgerEntries: ledgerEntries ?? { types: [] },
|
|
6763
6729
|
validatedCoA: chartOfAccounts
|
|
@@ -6769,19 +6735,18 @@ var Schema = z.object({
|
|
|
6769
6735
|
path
|
|
6770
6736
|
})
|
|
6771
6737
|
);
|
|
6772
|
-
if (
|
|
6773
|
-
|
|
6774
|
-
const
|
|
6775
|
-
|
|
6738
|
+
if (mergedGroups && mergedGroups.length > 0) {
|
|
6739
|
+
mergedGroups.forEach((group, index) => {
|
|
6740
|
+
const groupErrors = validateGroup(
|
|
6741
|
+
group,
|
|
6776
6742
|
chartOfAccounts,
|
|
6777
|
-
validatedLedgerEntries
|
|
6778
|
-
flows
|
|
6743
|
+
validatedLedgerEntries
|
|
6779
6744
|
);
|
|
6780
|
-
|
|
6745
|
+
groupErrors.forEach(
|
|
6781
6746
|
({ message, path }) => ctx.addIssue({
|
|
6782
6747
|
code: z.ZodIssueCode.custom,
|
|
6783
6748
|
message,
|
|
6784
|
-
path: ["
|
|
6749
|
+
path: ["groups", index, ...path]
|
|
6785
6750
|
})
|
|
6786
6751
|
);
|
|
6787
6752
|
});
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GenGraphQL
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-CA3RG2XI.js";
|
|
4
|
+
import "../chunk-3UMWAIEH.js";
|
|
5
5
|
import "../chunk-ODU6I44Y.js";
|
|
6
6
|
import "../chunk-73ZTML2E.js";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-WZSW2XFF.js";
|
|
8
|
+
import "../chunk-GX2Y7J77.js";
|
|
9
|
+
import "../chunk-MZOZSRIG.js";
|
|
10
|
+
import "../chunk-SVOY3WJA.js";
|
|
11
11
|
import "../chunk-IH6BCA6S.js";
|
|
12
12
|
import "../chunk-UDU5PBTV.js";
|
|
13
13
|
import "../chunk-LJSFUVJW.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
VerifySchema
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-OBRIN4VY.js";
|
|
4
|
+
import "../chunk-DAH4EIHV.js";
|
|
5
5
|
import "../chunk-A4BSWX5D.js";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-WZSW2XFF.js";
|
|
7
|
+
import "../chunk-GX2Y7J77.js";
|
|
8
|
+
import "../chunk-MZOZSRIG.js";
|
|
9
|
+
import "../chunk-SVOY3WJA.js";
|
|
10
10
|
import "../chunk-IH6BCA6S.js";
|
|
11
11
|
import "../chunk-UDU5PBTV.js";
|
|
12
12
|
import "../chunk-LJSFUVJW.js";
|
package/dist/commands.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
COMMANDS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-J4Q5VFMW.js";
|
|
4
4
|
import "./chunk-ZDE3DZ3I.js";
|
|
5
5
|
import "./chunk-T3TNAOFS.js";
|
|
6
6
|
import "./chunk-3BFX3ZQM.js";
|
|
7
7
|
import "./chunk-LCVLN3SZ.js";
|
|
8
8
|
import "./chunk-GRMPAF2X.js";
|
|
9
9
|
import "./chunk-HDSQSGJZ.js";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-OBRIN4VY.js";
|
|
11
|
+
import "./chunk-DAH4EIHV.js";
|
|
12
12
|
import "./chunk-A4BSWX5D.js";
|
|
13
13
|
import "./chunk-3LSL4JNW.js";
|
|
14
14
|
import "./chunk-UOIGY3UB.js";
|
|
@@ -28,14 +28,14 @@ import "./chunk-YGEYBIHA.js";
|
|
|
28
28
|
import "./chunk-VRHCYGEJ.js";
|
|
29
29
|
import "./chunk-IVDQ4PQW.js";
|
|
30
30
|
import "./chunk-UXTOXY2F.js";
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-CA3RG2XI.js";
|
|
32
|
+
import "./chunk-3UMWAIEH.js";
|
|
33
33
|
import "./chunk-ODU6I44Y.js";
|
|
34
34
|
import "./chunk-73ZTML2E.js";
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-WZSW2XFF.js";
|
|
36
|
+
import "./chunk-GX2Y7J77.js";
|
|
37
|
+
import "./chunk-MZOZSRIG.js";
|
|
38
|
+
import "./chunk-SVOY3WJA.js";
|
|
39
39
|
import "./chunk-IH6BCA6S.js";
|
|
40
40
|
import "./chunk-UDU5PBTV.js";
|
|
41
41
|
import "./chunk-LJSFUVJW.js";
|
package/dist/graphql.js
CHANGED
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
isValidGraphQlName,
|
|
9
9
|
schemaToEntryDefinitions,
|
|
10
10
|
validateOutputName
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-3UMWAIEH.js";
|
|
12
12
|
import "./chunk-ODU6I44Y.js";
|
|
13
13
|
import "./chunk-73ZTML2E.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-MZOZSRIG.js";
|
|
15
|
+
import "./chunk-SVOY3WJA.js";
|
|
16
16
|
import "./chunk-7K4RMTU4.js";
|
|
17
17
|
import "./chunk-5TQBOAE7.js";
|
|
18
18
|
import "./chunk-M5OAS5QZ.js";
|
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
COMMANDS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-J4Q5VFMW.js";
|
|
4
4
|
import "./chunk-ZDE3DZ3I.js";
|
|
5
5
|
import "./chunk-T3TNAOFS.js";
|
|
6
6
|
import "./chunk-3BFX3ZQM.js";
|
|
7
7
|
import "./chunk-LCVLN3SZ.js";
|
|
8
8
|
import "./chunk-GRMPAF2X.js";
|
|
9
9
|
import "./chunk-HDSQSGJZ.js";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-OBRIN4VY.js";
|
|
11
|
+
import "./chunk-DAH4EIHV.js";
|
|
12
12
|
import "./chunk-A4BSWX5D.js";
|
|
13
13
|
import "./chunk-3LSL4JNW.js";
|
|
14
14
|
import "./chunk-UOIGY3UB.js";
|
|
@@ -28,14 +28,14 @@ import "./chunk-YGEYBIHA.js";
|
|
|
28
28
|
import "./chunk-VRHCYGEJ.js";
|
|
29
29
|
import "./chunk-IVDQ4PQW.js";
|
|
30
30
|
import "./chunk-UXTOXY2F.js";
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-CA3RG2XI.js";
|
|
32
|
+
import "./chunk-3UMWAIEH.js";
|
|
33
33
|
import "./chunk-ODU6I44Y.js";
|
|
34
34
|
import "./chunk-73ZTML2E.js";
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-WZSW2XFF.js";
|
|
36
|
+
import "./chunk-GX2Y7J77.js";
|
|
37
|
+
import "./chunk-MZOZSRIG.js";
|
|
38
|
+
import "./chunk-SVOY3WJA.js";
|
|
39
39
|
import {
|
|
40
40
|
require_lib
|
|
41
41
|
} from "./chunk-IH6BCA6S.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
formatValidationErrors,
|
|
3
3
|
logValidationErrors
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-GX2Y7J77.js";
|
|
5
|
+
import "../chunk-SVOY3WJA.js";
|
|
6
6
|
import "../chunk-5TQBOAE7.js";
|
|
7
7
|
import "../chunk-M5OAS5QZ.js";
|
|
8
8
|
import "../chunk-7GH3YGSC.js";
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
extractSchemaMetadata,
|
|
4
4
|
isJsonParseError,
|
|
5
5
|
validateSchemaStructure
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-DAH4EIHV.js";
|
|
7
|
+
import "../chunk-WZSW2XFF.js";
|
|
8
|
+
import "../chunk-GX2Y7J77.js";
|
|
9
|
+
import "../chunk-MZOZSRIG.js";
|
|
10
|
+
import "../chunk-SVOY3WJA.js";
|
|
11
11
|
import "../chunk-5TQBOAE7.js";
|
|
12
12
|
import "../chunk-M5OAS5QZ.js";
|
|
13
13
|
import "../chunk-7GH3YGSC.js";
|
package/oclif.manifest.json
CHANGED