@fragment-dev/cli 2026.11.13-7 → 2026.11.14-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.
Files changed (29) hide show
  1. package/dist/{chunk-3XCYMGE3.js → chunk-4AUNUT7Z.js} +4 -2
  2. package/dist/{chunk-2EZPMAOG.js → chunk-4KJOZZJJ.js} +1 -1
  3. package/dist/{chunk-5YXK5XSL.js → chunk-57YVQI74.js} +2 -2
  4. package/dist/{chunk-SBV53D6N.js → chunk-5Q5FY4NG.js} +2 -2
  5. package/dist/{chunk-FI2U3AB2.js → chunk-E72FRPF4.js} +8 -4
  6. package/dist/{chunk-GM4XMO7R.js → chunk-G5CBWM5A.js} +2 -2
  7. package/dist/{chunk-H34FQN7O.js → chunk-HHNGQYZB.js} +4 -4
  8. package/dist/{chunk-RBNP4MID.js → chunk-JVDAMJZJ.js} +2199 -2182
  9. package/dist/{chunk-P63ZOWQQ.js → chunk-K2KHRNPV.js} +9 -3
  10. package/dist/{chunk-BV3DJZN2.js → chunk-LGWOBHUY.js} +1 -1
  11. package/dist/{chunk-ZQ2XTJ24.js → chunk-QZ6NUJB5.js} +1 -1
  12. package/dist/{chunk-NUXJ4UQR.js → chunk-RG4CN74T.js} +162 -3
  13. package/dist/{chunk-TNZS3WJW.js → chunk-VY7NFMES.js} +2 -2
  14. package/dist/{chunk-CSP4CXUF.js → chunk-YV6J4BRT.js} +2 -2
  15. package/dist/commands/gen-graphql.js +4 -4
  16. package/dist/commands/print-schema.js +5 -5
  17. package/dist/commands/simulate-scenario.js +5 -5
  18. package/dist/commands/verify-schema.js +5 -5
  19. package/dist/commands.js +14 -14
  20. package/dist/graphql.js +2 -2
  21. package/dist/index.js +14 -14
  22. package/dist/utils/formatChartOfAccounts.js +3 -3
  23. package/dist/utils/formatEntries.js +3 -3
  24. package/dist/utils/formatScenarioAccountBalances.js +3 -3
  25. package/dist/utils/formatScenarioBalances.js +4 -4
  26. package/dist/utils/schemaBackCompat.js +4 -4
  27. package/dist/utils/schemaValidation.js +3 -3
  28. package/oclif.manifest.json +1 -1
  29. package/package.json +1 -1
@@ -24,6 +24,7 @@ import {
24
24
 
25
25
  // ../../libs/schema-validation/parameterization.ts
26
26
  init_cjs_shims();
27
+ var getParameter = (parameters, name) => Object.prototype.hasOwnProperty.call(parameters, name) ? parameters[name] : void 0;
27
28
  var fillParams = (obj, params = {}, options = {
28
29
  allowMissing: false,
29
30
  allowMissingInChildren: true
@@ -35,7 +36,7 @@ var fillParams = (obj, params = {}, options = {
35
36
  const match = token.match(/\{\{([^{}]+?)\}\}/);
36
37
  if (match) {
37
38
  const param = match[1];
38
- const paramValue = params[param];
39
+ const paramValue = getParameter(params, param);
39
40
  if (paramValue === void 0 || paramValue === null) {
40
41
  missingParams.add(param);
41
42
  return token;
@@ -339,7 +340,8 @@ var SYSTEM_PARAMETER_NAMES = new Set(
339
340
  );
340
341
  var BaseSchemaPaymentInput = z.object({
341
342
  amount: z.string(),
342
- direction: PaymentTypeDirectionSchema
343
+ direction: PaymentTypeDirectionSchema,
344
+ tags: BaseSchemaLedgerEntryInput.shape.tags
343
345
  });
344
346
  var BaseSchemaPaymentEntryLineInput = BaseSchemaLedgerEntryLineInput.pick({
345
347
  key: true,
@@ -10,7 +10,7 @@ import {
10
10
  parameterizeSchemaLedgerEntryConditionInput,
11
11
  parameterizeSchemaLedgerLineInput,
12
12
  reparameterizeSchemaLedgerAccountInput
13
- } from "./chunk-NUXJ4UQR.js";
13
+ } from "./chunk-RG4CN74T.js";
14
14
  import {
15
15
  getStructuralPath
16
16
  } from "./chunk-2QGAXOCF.js";
@@ -7,10 +7,10 @@ import {
7
7
  } from "./chunk-T3RKAA7V.js";
8
8
  import {
9
9
  ChartOfAccounts
10
- } from "./chunk-NUXJ4UQR.js";
10
+ } from "./chunk-RG4CN74T.js";
11
11
  import {
12
12
  BaseSchema
13
- } from "./chunk-3XCYMGE3.js";
13
+ } from "./chunk-4AUNUT7Z.js";
14
14
  import {
15
15
  init_cjs_shims
16
16
  } from "./chunk-7GH3YGSC.js";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  BackCompatCheckError,
3
3
  verifySchemaAgainstFile
4
- } from "./chunk-P63ZOWQQ.js";
4
+ } from "./chunk-K2KHRNPV.js";
5
5
  import {
6
6
  extractSchemaMetadata,
7
7
  isJsonParseError,
8
8
  validateSchemaStructure
9
- } from "./chunk-BV3DJZN2.js";
9
+ } from "./chunk-LGWOBHUY.js";
10
10
  import {
11
11
  logValidationErrors
12
12
  } from "./chunk-XOYUWNKQ.js";
@@ -6,9 +6,10 @@ import {
6
6
  } from "./chunk-UQALZFPK.js";
7
7
  import {
8
8
  DISPUTE_PAYMENT_ACCOUNTING_EVENT_KEYS,
9
+ PaymentAccountingEventKey,
9
10
  SYSTEM_PARAMETER_NAMES,
10
11
  getSchemaObjectParameters
11
- } from "./chunk-3XCYMGE3.js";
12
+ } from "./chunk-4AUNUT7Z.js";
12
13
  import {
13
14
  getStructuralSubpaths
14
15
  } from "./chunk-2QGAXOCF.js";
@@ -38,14 +39,17 @@ var getCallerParameters = (schemaObject) => new Set(
38
39
  (name) => !SYSTEM_PARAMETER_NAMES.has(name)
39
40
  )
40
41
  );
42
+ var PAYMENT_CREATION_ACCOUNTING_EVENT_KEYS = [
43
+ PaymentAccountingEventKey.initiated,
44
+ PaymentAccountingEventKey.settled,
45
+ ...DISPUTE_PAYMENT_ACCOUNTING_EVENT_KEYS
46
+ ];
41
47
  var getRequiredPaymentParameters = ({
42
48
  payment,
43
49
  accounting
44
50
  }) => getCallerParameters({
45
51
  payment,
46
- initiated: accounting.initiated,
47
- settled: accounting.settled,
48
- disputeEntries: DISPUTE_PAYMENT_ACCOUNTING_EVENT_KEYS.map(
52
+ entries: PAYMENT_CREATION_ACCOUNTING_EVENT_KEYS.map(
49
53
  (event) => accounting[event]
50
54
  )
51
55
  });
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  formatChartOfAccounts
3
- } from "./chunk-TNZS3WJW.js";
3
+ } from "./chunk-VY7NFMES.js";
4
4
  import {
5
5
  formatEntries
6
- } from "./chunk-5YXK5XSL.js";
6
+ } from "./chunk-57YVQI74.js";
7
7
  import {
8
8
  DEFAULT_SCHEMA_PATH
9
9
  } from "./chunk-A4BSWX5D.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-GR3GGYJY.js";
4
4
  import {
5
5
  VerifySchema
6
- } from "./chunk-SBV53D6N.js";
6
+ } from "./chunk-5Q5FY4NG.js";
7
7
  import {
8
8
  Version
9
9
  } from "./chunk-ZPU5TX3B.js";
@@ -21,7 +21,7 @@ import {
21
21
  } from "./chunk-HGJQFG33.js";
22
22
  import {
23
23
  SimulateScenario
24
- } from "./chunk-ZQ2XTJ24.js";
24
+ } from "./chunk-QZ6NUJB5.js";
25
25
  import {
26
26
  Start
27
27
  } from "./chunk-FMDJEY4R.js";
@@ -36,7 +36,7 @@ import {
36
36
  } from "./chunk-WQQ3DSJH.js";
37
37
  import {
38
38
  GenGraphQL
39
- } from "./chunk-CSP4CXUF.js";
39
+ } from "./chunk-YV6J4BRT.js";
40
40
  import {
41
41
  GetSchema
42
42
  } from "./chunk-VEM4AZAI.js";
@@ -51,7 +51,7 @@ import {
51
51
  } from "./chunk-4EBR67QU.js";
52
52
  import {
53
53
  PrintSchema
54
- } from "./chunk-GM4XMO7R.js";
54
+ } from "./chunk-G5CBWM5A.js";
55
55
  import {
56
56
  QueryLedgerAccounts
57
57
  } from "./chunk-4GSTQ6O4.js";