@fragment-dev/cli 2026.4.23-1 → 2026.4.27-1

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.
@@ -2,13 +2,13 @@ import {
2
2
  extractSchemaMetadata,
3
3
  isJsonParseError,
4
4
  validateSchemaStructure
5
- } from "./chunk-NIMCALUM.js";
5
+ } from "./chunk-O3B6JVQV.js";
6
6
  import {
7
7
  DEFAULT_SCHEMA_PATH
8
8
  } from "./chunk-A4BSWX5D.js";
9
9
  import {
10
10
  logValidationErrors
11
- } from "./chunk-PB3KY5ZL.js";
11
+ } from "./chunk-GTWL4UIV.js";
12
12
  import {
13
13
  FragmentCommand,
14
14
  require_lib
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  getSchemaObjectParameters,
9
9
  getStructuralSubpaths
10
- } from "./chunk-Y4KCQNPQ.js";
10
+ } from "./chunk-NESRZR6B.js";
11
11
  import {
12
12
  require_parser,
13
13
  require_printer
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  BadRequestError
3
- } from "./chunk-YCLRZPR6.js";
3
+ } from "./chunk-TM5X7AQ2.js";
4
4
  import {
5
5
  ZodError
6
6
  } from "./chunk-5TQBOAE7.js";
@@ -3,7 +3,7 @@ import {
3
3
  assert_default,
4
4
  codes,
5
5
  getStringParametersInternal
6
- } from "./chunk-YCLRZPR6.js";
6
+ } from "./chunk-TM5X7AQ2.js";
7
7
  import {
8
8
  init_cjs_shims
9
9
  } from "./chunk-7GH3YGSC.js";
@@ -108,5 +108,6 @@ export {
108
108
  getSchemaObjectParameters,
109
109
  getStructuralPath,
110
110
  getInstanceValueByAccountPath,
111
+ getSubpaths,
111
112
  getStructuralSubpaths
112
113
  };
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  Schema,
3
3
  parseWithError
4
- } from "./chunk-MGSKOQTQ.js";
4
+ } from "./chunk-UB2XQ6NG.js";
5
5
  import {
6
6
  formatValidationErrors
7
- } from "./chunk-PB3KY5ZL.js";
7
+ } from "./chunk-GTWL4UIV.js";
8
8
  import {
9
9
  BadRequestError
10
- } from "./chunk-YCLRZPR6.js";
10
+ } from "./chunk-TM5X7AQ2.js";
11
11
  import {
12
12
  init_cjs_shims
13
13
  } from "./chunk-7GH3YGSC.js";
@@ -3,18 +3,18 @@ import {
3
3
  generateQueryFiles,
4
4
  schemaToEntryDefinitions,
5
5
  validateOutputName
6
- } from "./chunk-GA6FNH6M.js";
6
+ } from "./chunk-ET73SGVV.js";
7
7
  import {
8
8
  Schema,
9
9
  parseWithError
10
- } from "./chunk-MGSKOQTQ.js";
10
+ } from "./chunk-UB2XQ6NG.js";
11
11
  import {
12
12
  formatValidationErrors,
13
13
  logValidationErrors
14
- } from "./chunk-PB3KY5ZL.js";
14
+ } from "./chunk-GTWL4UIV.js";
15
15
  import {
16
16
  BadRequestError
17
- } from "./chunk-YCLRZPR6.js";
17
+ } from "./chunk-TM5X7AQ2.js";
18
18
  import {
19
19
  FragmentCommand,
20
20
  require_lib
@@ -18,7 +18,7 @@ import {
18
18
  } from "./chunk-OASOBTXX.js";
19
19
  import {
20
20
  VerifySchema
21
- } from "./chunk-NY3HNDIP.js";
21
+ } from "./chunk-2H2UJALX.js";
22
22
  import {
23
23
  Workspace
24
24
  } from "./chunk-BTT5XSZ6.js";
@@ -66,7 +66,7 @@ import {
66
66
  } from "./chunk-TUOIGRBA.js";
67
67
  import {
68
68
  GenGraphQL
69
- } from "./chunk-5RDAFLJ2.js";
69
+ } from "./chunk-QJGCDFOK.js";
70
70
  import {
71
71
  init_cjs_shims
72
72
  } from "./chunk-7GH3YGSC.js";
@@ -418,10 +418,10 @@ var require_util = __commonJS({
418
418
  return typeof arg === "symbol";
419
419
  }
420
420
  exports.isSymbol = isSymbol;
421
- function isUndefined2(arg) {
421
+ function isUndefined(arg) {
422
422
  return arg === void 0;
423
423
  }
424
- exports.isUndefined = isUndefined2;
424
+ exports.isUndefined = isUndefined;
425
425
  function isRegExp(re) {
426
426
  return objectToString2(re) === "[object RegExp]";
427
427
  }
@@ -881,6 +881,228 @@ RestError.prototype.code = "Error";
881
881
  init_cjs_shims();
882
882
  import assert from "assert";
883
883
 
884
+ // ../../libs/types/index.ts
885
+ init_cjs_shims();
886
+
887
+ // ../../libs/types/accountTypes.ts
888
+ init_cjs_shims();
889
+ var ledgerAccountTypes = [
890
+ "asset",
891
+ "liability",
892
+ "income",
893
+ "expense"
894
+ ];
895
+ var LedgerAccountTypeSchema = z.enum(ledgerAccountTypes);
896
+
897
+ // ../../libs/types/workspaceTypes.ts
898
+ init_cjs_shims();
899
+ var workspaceTypes = ["ledger", "payments"];
900
+ var WorkspaceTypeSchema = z.enum(workspaceTypes);
901
+
902
+ // ../../libs/types/currencyCodes.ts
903
+ init_cjs_shims();
904
+ var nonISOCurrencyCodes = [
905
+ // Crypto currencies
906
+ "ADA",
907
+ "BTC",
908
+ "DAI",
909
+ "ETH",
910
+ "SOL",
911
+ "USDC",
912
+ "USDT",
913
+ "USDG",
914
+ "EURC",
915
+ "CADC",
916
+ "CADT",
917
+ "XLM",
918
+ "UNI",
919
+ "BCH",
920
+ "LTC",
921
+ "AAVE",
922
+ "LINK",
923
+ "MATIC",
924
+ "PTS"
925
+ ];
926
+ var ISOCurrencyCodes = [
927
+ // Fiat currencies
928
+ "AED",
929
+ "AFN",
930
+ "ALL",
931
+ "AMD",
932
+ "ANG",
933
+ "AOA",
934
+ "ARS",
935
+ "AUD",
936
+ "AWG",
937
+ "AZN",
938
+ "BAM",
939
+ "BBD",
940
+ "BDT",
941
+ "BGN",
942
+ "BHD",
943
+ "BIF",
944
+ "BMD",
945
+ "BND",
946
+ "BOB",
947
+ "BRL",
948
+ "BSD",
949
+ "BTN",
950
+ "BWP",
951
+ "BYR",
952
+ "BZD",
953
+ "CAD",
954
+ "CDF",
955
+ "CHF",
956
+ "CLP",
957
+ "CNY",
958
+ "COP",
959
+ "CRC",
960
+ "CUC",
961
+ "CUP",
962
+ "CVE",
963
+ "CZK",
964
+ "DJF",
965
+ "DKK",
966
+ "DOP",
967
+ "DZD",
968
+ "EGP",
969
+ "ERN",
970
+ "ETB",
971
+ "EUR",
972
+ "FJD",
973
+ "FKP",
974
+ "GBP",
975
+ "GEL",
976
+ "GGP",
977
+ "GHS",
978
+ "GIP",
979
+ "GMD",
980
+ "GNF",
981
+ "GTQ",
982
+ "GYD",
983
+ "HKD",
984
+ "HNL",
985
+ "HRK",
986
+ "HTG",
987
+ "HUF",
988
+ "IDR",
989
+ "ILS",
990
+ "IMP",
991
+ "INR",
992
+ "IQD",
993
+ "IRR",
994
+ "ISK",
995
+ "JMD",
996
+ "JOD",
997
+ "JPY",
998
+ "KES",
999
+ "KGS",
1000
+ "KHR",
1001
+ "KMF",
1002
+ "KPW",
1003
+ "KRW",
1004
+ "KWD",
1005
+ "KYD",
1006
+ "KZT",
1007
+ "LAK",
1008
+ "LBP",
1009
+ "LKR",
1010
+ "LRD",
1011
+ "LSL",
1012
+ "LYD",
1013
+ "MAD",
1014
+ "MDL",
1015
+ "MGA",
1016
+ "MKD",
1017
+ "MMK",
1018
+ "MNT",
1019
+ "MOP",
1020
+ "MUR",
1021
+ "MVR",
1022
+ "MWK",
1023
+ "MXN",
1024
+ "MYR",
1025
+ "MZN",
1026
+ "NAD",
1027
+ "NGN",
1028
+ "NIO",
1029
+ "NOK",
1030
+ "NPR",
1031
+ "NZD",
1032
+ "OMR",
1033
+ "PAB",
1034
+ "PEN",
1035
+ "PGK",
1036
+ "PHP",
1037
+ "PKR",
1038
+ "PLN",
1039
+ "PYG",
1040
+ "QAR",
1041
+ "RON",
1042
+ "RSD",
1043
+ "RUB",
1044
+ "RWF",
1045
+ "SAR",
1046
+ "SBD",
1047
+ "SCR",
1048
+ "SDG",
1049
+ "SEK",
1050
+ "SGD",
1051
+ "SHP",
1052
+ "SLL",
1053
+ "SOS",
1054
+ "SPL",
1055
+ "SRD",
1056
+ "SVC",
1057
+ "SYP",
1058
+ "STN",
1059
+ "SZL",
1060
+ "THB",
1061
+ "TJS",
1062
+ "TMT",
1063
+ "TND",
1064
+ "TOP",
1065
+ "TRY",
1066
+ "TTD",
1067
+ "TVD",
1068
+ "TWD",
1069
+ "TZS",
1070
+ "UAH",
1071
+ "UGX",
1072
+ "USD",
1073
+ "UYU",
1074
+ "UZS",
1075
+ "VEF",
1076
+ "VND",
1077
+ "VUV",
1078
+ "WST",
1079
+ "XAF",
1080
+ "XCD",
1081
+ "XOF",
1082
+ "XPF",
1083
+ "YER",
1084
+ "ZAR",
1085
+ "ZMW"
1086
+ ];
1087
+ var currencyCodes = [
1088
+ ...nonISOCurrencyCodes,
1089
+ ...ISOCurrencyCodes,
1090
+ "LOGICAL",
1091
+ "CUSTOM"
1092
+ ];
1093
+ var accountCurrencyCodes = [...currencyCodes, "MULTI"];
1094
+ var currencyModes = ["single", "multi"];
1095
+ var CurrencyModeSchema = z.enum(currencyModes);
1096
+ var CurrencyCodeSchema = z.enum(currencyCodes);
1097
+ var AccountCurrencyCodeSchema = z.enum(accountCurrencyCodes);
1098
+ var CurrencyMatchInputSchema = z.object({
1099
+ customCurrencyId: z.optional(z.string()),
1100
+ code: CurrencyCodeSchema
1101
+ });
1102
+
1103
+ // ../../libs/types/strings.ts
1104
+ init_cjs_shims();
1105
+
884
1106
  // ../../node_modules/lodash-es/lodash.js
885
1107
  init_cjs_shims();
886
1108
 
@@ -1344,234 +1566,7 @@ function memoize(func, resolver) {
1344
1566
  memoize.Cache = MapCache_default;
1345
1567
  var memoize_default = memoize;
1346
1568
 
1347
- // ../../node_modules/lodash-es/isUndefined.js
1348
- init_cjs_shims();
1349
- function isUndefined(value) {
1350
- return value === void 0;
1351
- }
1352
- var isUndefined_default = isUndefined;
1353
-
1354
- // ../../libs/types/index.ts
1355
- init_cjs_shims();
1356
-
1357
- // ../../libs/types/accountTypes.ts
1358
- init_cjs_shims();
1359
- var ledgerAccountTypes = [
1360
- "asset",
1361
- "liability",
1362
- "income",
1363
- "expense"
1364
- ];
1365
- var LedgerAccountTypeSchema = z.enum(ledgerAccountTypes);
1366
-
1367
- // ../../libs/types/workspaceTypes.ts
1368
- init_cjs_shims();
1369
- var workspaceTypes = ["ledger", "payments"];
1370
- var WorkspaceTypeSchema = z.enum(workspaceTypes);
1371
-
1372
- // ../../libs/types/currencyCodes.ts
1373
- init_cjs_shims();
1374
- var nonISOCurrencyCodes = [
1375
- // Crypto currencies
1376
- "ADA",
1377
- "BTC",
1378
- "DAI",
1379
- "ETH",
1380
- "SOL",
1381
- "USDC",
1382
- "USDT",
1383
- "USDG",
1384
- "EURC",
1385
- "CADC",
1386
- "CADT",
1387
- "XLM",
1388
- "UNI",
1389
- "BCH",
1390
- "LTC",
1391
- "AAVE",
1392
- "LINK",
1393
- "MATIC",
1394
- "PTS"
1395
- ];
1396
- var ISOCurrencyCodes = [
1397
- // Fiat currencies
1398
- "AED",
1399
- "AFN",
1400
- "ALL",
1401
- "AMD",
1402
- "ANG",
1403
- "AOA",
1404
- "ARS",
1405
- "AUD",
1406
- "AWG",
1407
- "AZN",
1408
- "BAM",
1409
- "BBD",
1410
- "BDT",
1411
- "BGN",
1412
- "BHD",
1413
- "BIF",
1414
- "BMD",
1415
- "BND",
1416
- "BOB",
1417
- "BRL",
1418
- "BSD",
1419
- "BTN",
1420
- "BWP",
1421
- "BYR",
1422
- "BZD",
1423
- "CAD",
1424
- "CDF",
1425
- "CHF",
1426
- "CLP",
1427
- "CNY",
1428
- "COP",
1429
- "CRC",
1430
- "CUC",
1431
- "CUP",
1432
- "CVE",
1433
- "CZK",
1434
- "DJF",
1435
- "DKK",
1436
- "DOP",
1437
- "DZD",
1438
- "EGP",
1439
- "ERN",
1440
- "ETB",
1441
- "EUR",
1442
- "FJD",
1443
- "FKP",
1444
- "GBP",
1445
- "GEL",
1446
- "GGP",
1447
- "GHS",
1448
- "GIP",
1449
- "GMD",
1450
- "GNF",
1451
- "GTQ",
1452
- "GYD",
1453
- "HKD",
1454
- "HNL",
1455
- "HRK",
1456
- "HTG",
1457
- "HUF",
1458
- "IDR",
1459
- "ILS",
1460
- "IMP",
1461
- "INR",
1462
- "IQD",
1463
- "IRR",
1464
- "ISK",
1465
- "JMD",
1466
- "JOD",
1467
- "JPY",
1468
- "KES",
1469
- "KGS",
1470
- "KHR",
1471
- "KMF",
1472
- "KPW",
1473
- "KRW",
1474
- "KWD",
1475
- "KYD",
1476
- "KZT",
1477
- "LAK",
1478
- "LBP",
1479
- "LKR",
1480
- "LRD",
1481
- "LSL",
1482
- "LYD",
1483
- "MAD",
1484
- "MDL",
1485
- "MGA",
1486
- "MKD",
1487
- "MMK",
1488
- "MNT",
1489
- "MOP",
1490
- "MUR",
1491
- "MVR",
1492
- "MWK",
1493
- "MXN",
1494
- "MYR",
1495
- "MZN",
1496
- "NAD",
1497
- "NGN",
1498
- "NIO",
1499
- "NOK",
1500
- "NPR",
1501
- "NZD",
1502
- "OMR",
1503
- "PAB",
1504
- "PEN",
1505
- "PGK",
1506
- "PHP",
1507
- "PKR",
1508
- "PLN",
1509
- "PYG",
1510
- "QAR",
1511
- "RON",
1512
- "RSD",
1513
- "RUB",
1514
- "RWF",
1515
- "SAR",
1516
- "SBD",
1517
- "SCR",
1518
- "SDG",
1519
- "SEK",
1520
- "SGD",
1521
- "SHP",
1522
- "SLL",
1523
- "SOS",
1524
- "SPL",
1525
- "SRD",
1526
- "SVC",
1527
- "SYP",
1528
- "STN",
1529
- "SZL",
1530
- "THB",
1531
- "TJS",
1532
- "TMT",
1533
- "TND",
1534
- "TOP",
1535
- "TRY",
1536
- "TTD",
1537
- "TVD",
1538
- "TWD",
1539
- "TZS",
1540
- "UAH",
1541
- "UGX",
1542
- "USD",
1543
- "UYU",
1544
- "UZS",
1545
- "VEF",
1546
- "VND",
1547
- "VUV",
1548
- "WST",
1549
- "XAF",
1550
- "XCD",
1551
- "XOF",
1552
- "XPF",
1553
- "YER",
1554
- "ZAR",
1555
- "ZMW"
1556
- ];
1557
- var currencyCodes = [
1558
- ...nonISOCurrencyCodes,
1559
- ...ISOCurrencyCodes,
1560
- "LOGICAL",
1561
- "CUSTOM"
1562
- ];
1563
- var accountCurrencyCodes = [...currencyCodes, "MULTI"];
1564
- var currencyModes = ["single", "multi"];
1565
- var CurrencyModeSchema = z.enum(currencyModes);
1566
- var CurrencyCodeSchema = z.enum(currencyCodes);
1567
- var AccountCurrencyCodeSchema = z.enum(accountCurrencyCodes);
1568
- var CurrencyMatchInputSchema = z.object({
1569
- customCurrencyId: z.optional(z.string()),
1570
- code: CurrencyCodeSchema
1571
- });
1572
-
1573
1569
  // ../../libs/types/strings.ts
1574
- init_cjs_shims();
1575
1570
  var UNSAFE_CHARACTERS = ["#", "/", ":"];
1576
1571
  var isUnsafeString = (value) => {
1577
1572
  return !!UNSAFE_CHARACTERS.find((character) => {
@@ -1779,7 +1774,7 @@ var quarters = Object.keys(quarterMap);
1779
1774
 
1780
1775
  // ../../libs/error-utils/assert.ts
1781
1776
  function assertError(predicate, CustomError, options) {
1782
- if (isUndefined_default(CustomError)) {
1777
+ if (CustomError === void 0) {
1783
1778
  throw new InternalError("you must pass in CustomError to assert");
1784
1779
  }
1785
1780
  try {