@fragment-dev/cli 2025.11.4 → 2025.11.5
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-LAPGZFPA.js → chunk-5BKPV3GD.js} +1 -1
- package/dist/{chunk-5XCUG7BX.js → chunk-IID3EAD2.js} +1 -1
- package/dist/{chunk-2Y5YVXAJ.js → chunk-J4ZTYY6X.js} +2 -2
- package/dist/{chunk-EBV4D5G6.js → chunk-JVO2IFFR.js} +4 -4
- package/dist/{chunk-4V7NEA3S.js → chunk-KTCLACRS.js} +219 -218
- package/dist/{chunk-QWJD2ONM.js → chunk-LAOHNXFN.js} +2 -2
- package/dist/{chunk-LEVOCBSJ.js → chunk-P2FYO77R.js} +3 -3
- package/dist/{chunk-QYGFGPZM.js → chunk-SEXV6TUY.js} +17 -2
- package/dist/{chunk-DQGPHX45.js → chunk-SZXF2QTY.js} +1 -1
- 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
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
extractSchemaMetadata,
|
|
3
3
|
isJsonParseError,
|
|
4
4
|
validateSchemaStructure
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-P2FYO77R.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-SZXF2QTY.js";
|
|
12
12
|
import {
|
|
13
13
|
FragmentCommand,
|
|
14
14
|
require_lib
|
|
@@ -3,18 +3,18 @@ import {
|
|
|
3
3
|
generateQueryFiles,
|
|
4
4
|
schemaToEntryDefinitions,
|
|
5
5
|
validateOutputName
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-IID3EAD2.js";
|
|
7
7
|
import {
|
|
8
8
|
Schema,
|
|
9
9
|
parseWithError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-SEXV6TUY.js";
|
|
11
11
|
import {
|
|
12
12
|
formatValidationErrors,
|
|
13
13
|
logValidationErrors
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-SZXF2QTY.js";
|
|
15
15
|
import {
|
|
16
16
|
BadRequestError
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-KTCLACRS.js";
|
|
18
18
|
import {
|
|
19
19
|
FragmentCommand,
|
|
20
20
|
require_lib
|
|
@@ -873,222 +873,6 @@ RestError.prototype.code = "Error";
|
|
|
873
873
|
init_cjs_shims();
|
|
874
874
|
import assert from "assert";
|
|
875
875
|
|
|
876
|
-
// ../../libs/types/index.ts
|
|
877
|
-
init_cjs_shims();
|
|
878
|
-
|
|
879
|
-
// ../../libs/types/accountTypes.ts
|
|
880
|
-
init_cjs_shims();
|
|
881
|
-
var ledgerAccountTypes = [
|
|
882
|
-
"asset",
|
|
883
|
-
"liability",
|
|
884
|
-
"income",
|
|
885
|
-
"expense"
|
|
886
|
-
];
|
|
887
|
-
var LedgerAccountTypeSchema = z.enum(ledgerAccountTypes);
|
|
888
|
-
|
|
889
|
-
// ../../libs/types/currencyCodes.ts
|
|
890
|
-
init_cjs_shims();
|
|
891
|
-
var nonISOCurrencyCodes = [
|
|
892
|
-
// Crypto currencies
|
|
893
|
-
"ADA",
|
|
894
|
-
"BTC",
|
|
895
|
-
"DAI",
|
|
896
|
-
"ETH",
|
|
897
|
-
"SOL",
|
|
898
|
-
"USDC",
|
|
899
|
-
"USDT",
|
|
900
|
-
"XLM",
|
|
901
|
-
"UNI",
|
|
902
|
-
"BCH",
|
|
903
|
-
"LTC",
|
|
904
|
-
"AAVE",
|
|
905
|
-
"LINK",
|
|
906
|
-
"MATIC",
|
|
907
|
-
"PTS"
|
|
908
|
-
];
|
|
909
|
-
var ISOCurrencyCodes = [
|
|
910
|
-
// Fiat currencies
|
|
911
|
-
"AED",
|
|
912
|
-
"AFN",
|
|
913
|
-
"ALL",
|
|
914
|
-
"AMD",
|
|
915
|
-
"ANG",
|
|
916
|
-
"AOA",
|
|
917
|
-
"ARS",
|
|
918
|
-
"AUD",
|
|
919
|
-
"AWG",
|
|
920
|
-
"AZN",
|
|
921
|
-
"BAM",
|
|
922
|
-
"BBD",
|
|
923
|
-
"BDT",
|
|
924
|
-
"BGN",
|
|
925
|
-
"BHD",
|
|
926
|
-
"BIF",
|
|
927
|
-
"BMD",
|
|
928
|
-
"BND",
|
|
929
|
-
"BOB",
|
|
930
|
-
"BRL",
|
|
931
|
-
"BSD",
|
|
932
|
-
"BTN",
|
|
933
|
-
"BWP",
|
|
934
|
-
"BYR",
|
|
935
|
-
"BZD",
|
|
936
|
-
"CAD",
|
|
937
|
-
"CDF",
|
|
938
|
-
"CHF",
|
|
939
|
-
"CLP",
|
|
940
|
-
"CNY",
|
|
941
|
-
"COP",
|
|
942
|
-
"CRC",
|
|
943
|
-
"CUC",
|
|
944
|
-
"CUP",
|
|
945
|
-
"CVE",
|
|
946
|
-
"CZK",
|
|
947
|
-
"DJF",
|
|
948
|
-
"DKK",
|
|
949
|
-
"DOP",
|
|
950
|
-
"DZD",
|
|
951
|
-
"EGP",
|
|
952
|
-
"ERN",
|
|
953
|
-
"ETB",
|
|
954
|
-
"EUR",
|
|
955
|
-
"FJD",
|
|
956
|
-
"FKP",
|
|
957
|
-
"GBP",
|
|
958
|
-
"GEL",
|
|
959
|
-
"GGP",
|
|
960
|
-
"GHS",
|
|
961
|
-
"GIP",
|
|
962
|
-
"GMD",
|
|
963
|
-
"GNF",
|
|
964
|
-
"GTQ",
|
|
965
|
-
"GYD",
|
|
966
|
-
"HKD",
|
|
967
|
-
"HNL",
|
|
968
|
-
"HRK",
|
|
969
|
-
"HTG",
|
|
970
|
-
"HUF",
|
|
971
|
-
"IDR",
|
|
972
|
-
"ILS",
|
|
973
|
-
"IMP",
|
|
974
|
-
"INR",
|
|
975
|
-
"IQD",
|
|
976
|
-
"IRR",
|
|
977
|
-
"ISK",
|
|
978
|
-
"JMD",
|
|
979
|
-
"JOD",
|
|
980
|
-
"JPY",
|
|
981
|
-
"KES",
|
|
982
|
-
"KGS",
|
|
983
|
-
"KHR",
|
|
984
|
-
"KMF",
|
|
985
|
-
"KPW",
|
|
986
|
-
"KRW",
|
|
987
|
-
"KWD",
|
|
988
|
-
"KYD",
|
|
989
|
-
"KZT",
|
|
990
|
-
"LAK",
|
|
991
|
-
"LBP",
|
|
992
|
-
"LKR",
|
|
993
|
-
"LRD",
|
|
994
|
-
"LSL",
|
|
995
|
-
"LYD",
|
|
996
|
-
"MAD",
|
|
997
|
-
"MDL",
|
|
998
|
-
"MGA",
|
|
999
|
-
"MKD",
|
|
1000
|
-
"MMK",
|
|
1001
|
-
"MNT",
|
|
1002
|
-
"MOP",
|
|
1003
|
-
"MUR",
|
|
1004
|
-
"MVR",
|
|
1005
|
-
"MWK",
|
|
1006
|
-
"MXN",
|
|
1007
|
-
"MYR",
|
|
1008
|
-
"MZN",
|
|
1009
|
-
"NAD",
|
|
1010
|
-
"NGN",
|
|
1011
|
-
"NIO",
|
|
1012
|
-
"NOK",
|
|
1013
|
-
"NPR",
|
|
1014
|
-
"NZD",
|
|
1015
|
-
"OMR",
|
|
1016
|
-
"PAB",
|
|
1017
|
-
"PEN",
|
|
1018
|
-
"PGK",
|
|
1019
|
-
"PHP",
|
|
1020
|
-
"PKR",
|
|
1021
|
-
"PLN",
|
|
1022
|
-
"PYG",
|
|
1023
|
-
"QAR",
|
|
1024
|
-
"RON",
|
|
1025
|
-
"RSD",
|
|
1026
|
-
"RUB",
|
|
1027
|
-
"RWF",
|
|
1028
|
-
"SAR",
|
|
1029
|
-
"SBD",
|
|
1030
|
-
"SCR",
|
|
1031
|
-
"SDG",
|
|
1032
|
-
"SEK",
|
|
1033
|
-
"SGD",
|
|
1034
|
-
"SHP",
|
|
1035
|
-
"SLL",
|
|
1036
|
-
"SOS",
|
|
1037
|
-
"SPL",
|
|
1038
|
-
"SRD",
|
|
1039
|
-
"SVC",
|
|
1040
|
-
"SYP",
|
|
1041
|
-
"STN",
|
|
1042
|
-
"SZL",
|
|
1043
|
-
"THB",
|
|
1044
|
-
"TJS",
|
|
1045
|
-
"TMT",
|
|
1046
|
-
"TND",
|
|
1047
|
-
"TOP",
|
|
1048
|
-
"TRY",
|
|
1049
|
-
"TTD",
|
|
1050
|
-
"TVD",
|
|
1051
|
-
"TWD",
|
|
1052
|
-
"TZS",
|
|
1053
|
-
"UAH",
|
|
1054
|
-
"UGX",
|
|
1055
|
-
"USD",
|
|
1056
|
-
"UYU",
|
|
1057
|
-
"UZS",
|
|
1058
|
-
"VEF",
|
|
1059
|
-
"VND",
|
|
1060
|
-
"VUV",
|
|
1061
|
-
"WST",
|
|
1062
|
-
"XAF",
|
|
1063
|
-
"XCD",
|
|
1064
|
-
"XOF",
|
|
1065
|
-
"XPF",
|
|
1066
|
-
"YER",
|
|
1067
|
-
"ZAR",
|
|
1068
|
-
"ZMW"
|
|
1069
|
-
];
|
|
1070
|
-
var currencyCodes = [
|
|
1071
|
-
...nonISOCurrencyCodes,
|
|
1072
|
-
...ISOCurrencyCodes,
|
|
1073
|
-
"LOGICAL",
|
|
1074
|
-
"CUSTOM"
|
|
1075
|
-
];
|
|
1076
|
-
var accountCurrencyCodes = [...currencyCodes, "MULTI"];
|
|
1077
|
-
var currencyModes = ["single", "multi"];
|
|
1078
|
-
var CurrencyModeSchema = z.enum(currencyModes);
|
|
1079
|
-
var CurrencyCodeSchema = z.enum(currencyCodes);
|
|
1080
|
-
var AccountCurrencyCodeSchema = z.enum(accountCurrencyCodes);
|
|
1081
|
-
var CurrencyMatchInputSchema = z.object({
|
|
1082
|
-
customCurrencyId: z.optional(z.string()),
|
|
1083
|
-
code: CurrencyCodeSchema
|
|
1084
|
-
});
|
|
1085
|
-
|
|
1086
|
-
// ../../libs/types/strings.ts
|
|
1087
|
-
init_cjs_shims();
|
|
1088
|
-
|
|
1089
|
-
// ../../node_modules/lodash-unified/import.js
|
|
1090
|
-
init_cjs_shims();
|
|
1091
|
-
|
|
1092
876
|
// ../../node_modules/lodash-es/lodash.js
|
|
1093
877
|
init_cjs_shims();
|
|
1094
878
|
|
|
@@ -1552,7 +1336,225 @@ function memoize(func, resolver) {
|
|
|
1552
1336
|
memoize.Cache = MapCache_default;
|
|
1553
1337
|
var memoize_default = memoize;
|
|
1554
1338
|
|
|
1339
|
+
// ../../node_modules/lodash-es/isUndefined.js
|
|
1340
|
+
init_cjs_shims();
|
|
1341
|
+
function isUndefined(value) {
|
|
1342
|
+
return value === void 0;
|
|
1343
|
+
}
|
|
1344
|
+
var isUndefined_default = isUndefined;
|
|
1345
|
+
|
|
1346
|
+
// ../../libs/types/index.ts
|
|
1347
|
+
init_cjs_shims();
|
|
1348
|
+
|
|
1349
|
+
// ../../libs/types/accountTypes.ts
|
|
1350
|
+
init_cjs_shims();
|
|
1351
|
+
var ledgerAccountTypes = [
|
|
1352
|
+
"asset",
|
|
1353
|
+
"liability",
|
|
1354
|
+
"income",
|
|
1355
|
+
"expense"
|
|
1356
|
+
];
|
|
1357
|
+
var LedgerAccountTypeSchema = z.enum(ledgerAccountTypes);
|
|
1358
|
+
|
|
1359
|
+
// ../../libs/types/currencyCodes.ts
|
|
1360
|
+
init_cjs_shims();
|
|
1361
|
+
var nonISOCurrencyCodes = [
|
|
1362
|
+
// Crypto currencies
|
|
1363
|
+
"ADA",
|
|
1364
|
+
"BTC",
|
|
1365
|
+
"DAI",
|
|
1366
|
+
"ETH",
|
|
1367
|
+
"SOL",
|
|
1368
|
+
"USDC",
|
|
1369
|
+
"USDT",
|
|
1370
|
+
"XLM",
|
|
1371
|
+
"UNI",
|
|
1372
|
+
"BCH",
|
|
1373
|
+
"LTC",
|
|
1374
|
+
"AAVE",
|
|
1375
|
+
"LINK",
|
|
1376
|
+
"MATIC",
|
|
1377
|
+
"PTS"
|
|
1378
|
+
];
|
|
1379
|
+
var ISOCurrencyCodes = [
|
|
1380
|
+
// Fiat currencies
|
|
1381
|
+
"AED",
|
|
1382
|
+
"AFN",
|
|
1383
|
+
"ALL",
|
|
1384
|
+
"AMD",
|
|
1385
|
+
"ANG",
|
|
1386
|
+
"AOA",
|
|
1387
|
+
"ARS",
|
|
1388
|
+
"AUD",
|
|
1389
|
+
"AWG",
|
|
1390
|
+
"AZN",
|
|
1391
|
+
"BAM",
|
|
1392
|
+
"BBD",
|
|
1393
|
+
"BDT",
|
|
1394
|
+
"BGN",
|
|
1395
|
+
"BHD",
|
|
1396
|
+
"BIF",
|
|
1397
|
+
"BMD",
|
|
1398
|
+
"BND",
|
|
1399
|
+
"BOB",
|
|
1400
|
+
"BRL",
|
|
1401
|
+
"BSD",
|
|
1402
|
+
"BTN",
|
|
1403
|
+
"BWP",
|
|
1404
|
+
"BYR",
|
|
1405
|
+
"BZD",
|
|
1406
|
+
"CAD",
|
|
1407
|
+
"CDF",
|
|
1408
|
+
"CHF",
|
|
1409
|
+
"CLP",
|
|
1410
|
+
"CNY",
|
|
1411
|
+
"COP",
|
|
1412
|
+
"CRC",
|
|
1413
|
+
"CUC",
|
|
1414
|
+
"CUP",
|
|
1415
|
+
"CVE",
|
|
1416
|
+
"CZK",
|
|
1417
|
+
"DJF",
|
|
1418
|
+
"DKK",
|
|
1419
|
+
"DOP",
|
|
1420
|
+
"DZD",
|
|
1421
|
+
"EGP",
|
|
1422
|
+
"ERN",
|
|
1423
|
+
"ETB",
|
|
1424
|
+
"EUR",
|
|
1425
|
+
"FJD",
|
|
1426
|
+
"FKP",
|
|
1427
|
+
"GBP",
|
|
1428
|
+
"GEL",
|
|
1429
|
+
"GGP",
|
|
1430
|
+
"GHS",
|
|
1431
|
+
"GIP",
|
|
1432
|
+
"GMD",
|
|
1433
|
+
"GNF",
|
|
1434
|
+
"GTQ",
|
|
1435
|
+
"GYD",
|
|
1436
|
+
"HKD",
|
|
1437
|
+
"HNL",
|
|
1438
|
+
"HRK",
|
|
1439
|
+
"HTG",
|
|
1440
|
+
"HUF",
|
|
1441
|
+
"IDR",
|
|
1442
|
+
"ILS",
|
|
1443
|
+
"IMP",
|
|
1444
|
+
"INR",
|
|
1445
|
+
"IQD",
|
|
1446
|
+
"IRR",
|
|
1447
|
+
"ISK",
|
|
1448
|
+
"JMD",
|
|
1449
|
+
"JOD",
|
|
1450
|
+
"JPY",
|
|
1451
|
+
"KES",
|
|
1452
|
+
"KGS",
|
|
1453
|
+
"KHR",
|
|
1454
|
+
"KMF",
|
|
1455
|
+
"KPW",
|
|
1456
|
+
"KRW",
|
|
1457
|
+
"KWD",
|
|
1458
|
+
"KYD",
|
|
1459
|
+
"KZT",
|
|
1460
|
+
"LAK",
|
|
1461
|
+
"LBP",
|
|
1462
|
+
"LKR",
|
|
1463
|
+
"LRD",
|
|
1464
|
+
"LSL",
|
|
1465
|
+
"LYD",
|
|
1466
|
+
"MAD",
|
|
1467
|
+
"MDL",
|
|
1468
|
+
"MGA",
|
|
1469
|
+
"MKD",
|
|
1470
|
+
"MMK",
|
|
1471
|
+
"MNT",
|
|
1472
|
+
"MOP",
|
|
1473
|
+
"MUR",
|
|
1474
|
+
"MVR",
|
|
1475
|
+
"MWK",
|
|
1476
|
+
"MXN",
|
|
1477
|
+
"MYR",
|
|
1478
|
+
"MZN",
|
|
1479
|
+
"NAD",
|
|
1480
|
+
"NGN",
|
|
1481
|
+
"NIO",
|
|
1482
|
+
"NOK",
|
|
1483
|
+
"NPR",
|
|
1484
|
+
"NZD",
|
|
1485
|
+
"OMR",
|
|
1486
|
+
"PAB",
|
|
1487
|
+
"PEN",
|
|
1488
|
+
"PGK",
|
|
1489
|
+
"PHP",
|
|
1490
|
+
"PKR",
|
|
1491
|
+
"PLN",
|
|
1492
|
+
"PYG",
|
|
1493
|
+
"QAR",
|
|
1494
|
+
"RON",
|
|
1495
|
+
"RSD",
|
|
1496
|
+
"RUB",
|
|
1497
|
+
"RWF",
|
|
1498
|
+
"SAR",
|
|
1499
|
+
"SBD",
|
|
1500
|
+
"SCR",
|
|
1501
|
+
"SDG",
|
|
1502
|
+
"SEK",
|
|
1503
|
+
"SGD",
|
|
1504
|
+
"SHP",
|
|
1505
|
+
"SLL",
|
|
1506
|
+
"SOS",
|
|
1507
|
+
"SPL",
|
|
1508
|
+
"SRD",
|
|
1509
|
+
"SVC",
|
|
1510
|
+
"SYP",
|
|
1511
|
+
"STN",
|
|
1512
|
+
"SZL",
|
|
1513
|
+
"THB",
|
|
1514
|
+
"TJS",
|
|
1515
|
+
"TMT",
|
|
1516
|
+
"TND",
|
|
1517
|
+
"TOP",
|
|
1518
|
+
"TRY",
|
|
1519
|
+
"TTD",
|
|
1520
|
+
"TVD",
|
|
1521
|
+
"TWD",
|
|
1522
|
+
"TZS",
|
|
1523
|
+
"UAH",
|
|
1524
|
+
"UGX",
|
|
1525
|
+
"USD",
|
|
1526
|
+
"UYU",
|
|
1527
|
+
"UZS",
|
|
1528
|
+
"VEF",
|
|
1529
|
+
"VND",
|
|
1530
|
+
"VUV",
|
|
1531
|
+
"WST",
|
|
1532
|
+
"XAF",
|
|
1533
|
+
"XCD",
|
|
1534
|
+
"XOF",
|
|
1535
|
+
"XPF",
|
|
1536
|
+
"YER",
|
|
1537
|
+
"ZAR",
|
|
1538
|
+
"ZMW"
|
|
1539
|
+
];
|
|
1540
|
+
var currencyCodes = [
|
|
1541
|
+
...nonISOCurrencyCodes,
|
|
1542
|
+
...ISOCurrencyCodes,
|
|
1543
|
+
"LOGICAL",
|
|
1544
|
+
"CUSTOM"
|
|
1545
|
+
];
|
|
1546
|
+
var accountCurrencyCodes = [...currencyCodes, "MULTI"];
|
|
1547
|
+
var currencyModes = ["single", "multi"];
|
|
1548
|
+
var CurrencyModeSchema = z.enum(currencyModes);
|
|
1549
|
+
var CurrencyCodeSchema = z.enum(currencyCodes);
|
|
1550
|
+
var AccountCurrencyCodeSchema = z.enum(accountCurrencyCodes);
|
|
1551
|
+
var CurrencyMatchInputSchema = z.object({
|
|
1552
|
+
customCurrencyId: z.optional(z.string()),
|
|
1553
|
+
code: CurrencyCodeSchema
|
|
1554
|
+
});
|
|
1555
|
+
|
|
1555
1556
|
// ../../libs/types/strings.ts
|
|
1557
|
+
init_cjs_shims();
|
|
1556
1558
|
var UNSAFE_CHARACTERS = ["#", "/", ":"];
|
|
1557
1559
|
var isUnsafeString = (value) => {
|
|
1558
1560
|
return !!UNSAFE_CHARACTERS.find((character) => {
|
|
@@ -1757,9 +1759,8 @@ var quarterMap = {
|
|
|
1757
1759
|
var quarters = Object.keys(quarterMap);
|
|
1758
1760
|
|
|
1759
1761
|
// ../../libs/error-utils/assert.ts
|
|
1760
|
-
var isUndefined = (value) => value === void 0;
|
|
1761
1762
|
function assertError(predicate, CustomError, options) {
|
|
1762
|
-
if (
|
|
1763
|
+
if (isUndefined_default(CustomError)) {
|
|
1763
1764
|
throw new InternalError("you must pass in CustomError to assert");
|
|
1764
1765
|
}
|
|
1765
1766
|
try {
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from "./chunk-HDSQSGJZ.js";
|
|
19
19
|
import {
|
|
20
20
|
VerifySchema
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-J4ZTYY6X.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-JVO2IFFR.js";
|
|
70
70
|
import {
|
|
71
71
|
init_cjs_shims
|
|
72
72
|
} from "./chunk-7GH3YGSC.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Schema,
|
|
3
3
|
parseWithError
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SEXV6TUY.js";
|
|
5
5
|
import {
|
|
6
6
|
formatValidationErrors
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SZXF2QTY.js";
|
|
8
8
|
import {
|
|
9
9
|
BadRequestError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-KTCLACRS.js";
|
|
11
11
|
import {
|
|
12
12
|
init_cjs_shims
|
|
13
13
|
} from "./chunk-7GH3YGSC.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
getInstanceValueByAccountPath,
|
|
4
4
|
getSchemaObjectParameters,
|
|
5
5
|
getStructuralPath
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5BKPV3GD.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-KTCLACRS.js";
|
|
22
22
|
import {
|
|
23
23
|
z
|
|
24
24
|
} from "./chunk-5TQBOAE7.js";
|
|
@@ -4538,6 +4538,7 @@ var BaseSchemaLedgerAccountInput = z.lazy(
|
|
|
4538
4538
|
currency: SchemaCurrencyMatchInput.optional(),
|
|
4539
4539
|
currencyMode: CurrencyModeSchema.optional(),
|
|
4540
4540
|
template: z.boolean().optional(),
|
|
4541
|
+
clearing: z.boolean().optional(),
|
|
4541
4542
|
children: z.array(BaseSchemaLedgerAccountInput).optional(),
|
|
4542
4543
|
linkedAccount: SchemaExternalAccountMatchInput.optional(),
|
|
4543
4544
|
consistencyConfig: AccountConsistencyConfigSchema.optional(),
|
|
@@ -4844,6 +4845,20 @@ var validateAccount = ({
|
|
|
4844
4845
|
});
|
|
4845
4846
|
}
|
|
4846
4847
|
}
|
|
4848
|
+
if (account.clearing) {
|
|
4849
|
+
if (account.linkedAccount) {
|
|
4850
|
+
errors.push({
|
|
4851
|
+
message: `Clearing accounts cannot be Linked Ledger Accounts (key: ${account.key}, name: ${account.name})`,
|
|
4852
|
+
path: [...path, "clearing"]
|
|
4853
|
+
});
|
|
4854
|
+
}
|
|
4855
|
+
if ((account.children ?? []).length > 0) {
|
|
4856
|
+
errors.push({
|
|
4857
|
+
message: `Clearing accounts cannot have children (key: ${account.key}, name: ${account.name})`,
|
|
4858
|
+
path: [...path, "clearing"]
|
|
4859
|
+
});
|
|
4860
|
+
}
|
|
4861
|
+
}
|
|
4847
4862
|
const accountConsistencyErrors = account.consistencyConfig ? validateAccountConsistencySettings(account.consistencyConfig) : { errors: [] };
|
|
4848
4863
|
errors.push(...accountConsistencyErrors.errors);
|
|
4849
4864
|
const status = getAccountStatus(account);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GenGraphQL
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-JVO2IFFR.js";
|
|
4
|
+
import "../chunk-IID3EAD2.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-SEXV6TUY.js";
|
|
8
|
+
import "../chunk-SZXF2QTY.js";
|
|
9
|
+
import "../chunk-5BKPV3GD.js";
|
|
10
|
+
import "../chunk-KTCLACRS.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-J4ZTYY6X.js";
|
|
4
|
+
import "../chunk-P2FYO77R.js";
|
|
5
5
|
import "../chunk-A4BSWX5D.js";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-SEXV6TUY.js";
|
|
7
|
+
import "../chunk-SZXF2QTY.js";
|
|
8
|
+
import "../chunk-5BKPV3GD.js";
|
|
9
|
+
import "../chunk-KTCLACRS.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-LAOHNXFN.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-J4ZTYY6X.js";
|
|
11
|
+
import "./chunk-P2FYO77R.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-JVO2IFFR.js";
|
|
32
|
+
import "./chunk-IID3EAD2.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-SEXV6TUY.js";
|
|
36
|
+
import "./chunk-SZXF2QTY.js";
|
|
37
|
+
import "./chunk-5BKPV3GD.js";
|
|
38
|
+
import "./chunk-KTCLACRS.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-IID3EAD2.js";
|
|
12
12
|
import "./chunk-ODU6I44Y.js";
|
|
13
13
|
import "./chunk-73ZTML2E.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-5BKPV3GD.js";
|
|
15
|
+
import "./chunk-KTCLACRS.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-LAOHNXFN.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-J4ZTYY6X.js";
|
|
11
|
+
import "./chunk-P2FYO77R.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-JVO2IFFR.js";
|
|
32
|
+
import "./chunk-IID3EAD2.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-SEXV6TUY.js";
|
|
36
|
+
import "./chunk-SZXF2QTY.js";
|
|
37
|
+
import "./chunk-5BKPV3GD.js";
|
|
38
|
+
import "./chunk-KTCLACRS.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-SZXF2QTY.js";
|
|
5
|
+
import "../chunk-KTCLACRS.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-P2FYO77R.js";
|
|
7
|
+
import "../chunk-SEXV6TUY.js";
|
|
8
|
+
import "../chunk-SZXF2QTY.js";
|
|
9
|
+
import "../chunk-5BKPV3GD.js";
|
|
10
|
+
import "../chunk-KTCLACRS.js";
|
|
11
11
|
import "../chunk-5TQBOAE7.js";
|
|
12
12
|
import "../chunk-M5OAS5QZ.js";
|
|
13
13
|
import "../chunk-7GH3YGSC.js";
|
package/oclif.manifest.json
CHANGED