@fragment-dev/cli 2026.9.25-6 → 2026.9.25-8
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-OBT45LP4.js → chunk-7PGIZQ35.js} +2 -2
- package/dist/{chunk-7GH3R2YV.js → chunk-GYQHUBLU.js} +2 -2
- package/dist/{chunk-6BNLHGNX.js → chunk-K4KAVYAK.js} +1 -1
- package/dist/{chunk-MWJGSTAC.js → chunk-OZO3OJCY.js} +1 -1
- package/dist/{chunk-PQAPO2TG.js → chunk-RIMGBSEL.js} +2 -0
- package/dist/{chunk-JNFWF7GJ.js → chunk-VBNNSFRR.js} +1 -1
- package/dist/{chunk-UREI6FTI.js → chunk-XGAAIDHL.js} +26 -4
- package/dist/commands/gen-graphql.js +4 -4
- package/dist/commands/verify-schema.js +4 -4
- package/dist/commands.js +7 -7
- package/dist/graphql.js +2 -2
- package/dist/index.js +7 -7
- package/dist/utils/schemaValidation.js +3 -3
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
schemaToEntryDefinitions,
|
|
5
5
|
schemaToPaymentDefinitions,
|
|
6
6
|
validateOutputName
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OZO3OJCY.js";
|
|
8
8
|
import {
|
|
9
9
|
Schema,
|
|
10
10
|
parseWithError
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-XGAAIDHL.js";
|
|
12
12
|
import {
|
|
13
13
|
formatValidationErrors,
|
|
14
14
|
logValidationErrors
|
|
@@ -27,10 +27,10 @@ import {
|
|
|
27
27
|
} from "./chunk-6U6BM2J2.js";
|
|
28
28
|
import {
|
|
29
29
|
VerifySchema
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-K4KAVYAK.js";
|
|
31
31
|
import {
|
|
32
32
|
GenGraphQL
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-7PGIZQ35.js";
|
|
34
34
|
import {
|
|
35
35
|
GetSchema
|
|
36
36
|
} from "./chunk-Q5CL2ZCE.js";
|
|
@@ -174,6 +174,7 @@ var SchemaLinkTypeList = [
|
|
|
174
174
|
var SchemaLinkType = z.enum(SchemaLinkTypeList);
|
|
175
175
|
var SchemaExternalAccountMatchInput = z.object({
|
|
176
176
|
linkType: SchemaLinkType.optional(),
|
|
177
|
+
linkIk: z.string().optional(),
|
|
177
178
|
id: z.string().optional(),
|
|
178
179
|
externalId: z.string().optional(),
|
|
179
180
|
linkId: z.string().optional()
|
|
@@ -406,6 +407,7 @@ export {
|
|
|
406
407
|
SchemaTxMatchInput,
|
|
407
408
|
ConsistencyConfigSchema,
|
|
408
409
|
AccountConsistencyConfigSchema,
|
|
410
|
+
SchemaLinkType,
|
|
409
411
|
SchemaLedgerEntityStatusSchema,
|
|
410
412
|
BaseChartOfAccounts,
|
|
411
413
|
PostLinesAsSchema,
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
SYSTEM_PARAMETER_NAMES,
|
|
12
12
|
SchemaEntryGroup,
|
|
13
13
|
SchemaLedgerEntityStatusSchema,
|
|
14
|
+
SchemaLinkType,
|
|
14
15
|
SchemaPaymentTypeStatusSchema,
|
|
15
16
|
SchemaTxMatchInput,
|
|
16
17
|
SystemLineKind,
|
|
@@ -21,7 +22,7 @@ import {
|
|
|
21
22
|
getStructuralPath,
|
|
22
23
|
getStructuralSubpaths,
|
|
23
24
|
getSubpaths
|
|
24
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-RIMGBSEL.js";
|
|
25
26
|
import {
|
|
26
27
|
BadRequestError,
|
|
27
28
|
CurrencyMatchInputSchema,
|
|
@@ -4966,15 +4967,21 @@ var validateAccountLinkedAccount = ({
|
|
|
4966
4967
|
path: [...path, "children"]
|
|
4967
4968
|
});
|
|
4968
4969
|
}
|
|
4969
|
-
const { id, linkId, externalId } = linkedAccount;
|
|
4970
|
-
if (
|
|
4970
|
+
const { id, linkId, linkIk, linkType, externalId } = linkedAccount;
|
|
4971
|
+
if (linkIk !== void 0 && (linkType !== SchemaLinkType.enum.CustomLink || !!id)) {
|
|
4972
|
+
errors.push({
|
|
4973
|
+
message: `linkIk requires linkType CustomLink and cannot be combined with id. (key: ${key}, name: ${name})`,
|
|
4974
|
+
path: [...path, "linkedAccount"]
|
|
4975
|
+
});
|
|
4976
|
+
}
|
|
4977
|
+
if (!id && !(externalId && (linkId || linkIk))) {
|
|
4971
4978
|
errors.push({
|
|
4972
4979
|
message: `Linked Ledger Accounts must specify both External ID + Link ID or the Fragment ID. (key: ${key}, name: ${name})`,
|
|
4973
4980
|
path: [...path, "linkedAccount"]
|
|
4974
4981
|
});
|
|
4975
4982
|
}
|
|
4976
4983
|
const doesNotExistOrNoParams = (arg) => arg === void 0 || getSchemaObjectParameters(arg).length === 0;
|
|
4977
|
-
if ((isTemplateChild || template) && [id, linkId, externalId].every(doesNotExistOrNoParams)) {
|
|
4984
|
+
if ((isTemplateChild || template) && [id, linkId, linkIk, externalId].every(doesNotExistOrNoParams)) {
|
|
4978
4985
|
errors.push({
|
|
4979
4986
|
message: `Template accounts (and their children) cannot have linkedAccount properties hardcoded. You must provide parameters in the ExternalAccountMatchInput. (key: ${key}, name: ${name})`,
|
|
4980
4987
|
path: [...path, "linkedAccount"]
|
|
@@ -4998,6 +5005,21 @@ var validateAccountLinkedAccount = ({
|
|
|
4998
5005
|
])
|
|
4999
5006
|
);
|
|
5000
5007
|
}
|
|
5008
|
+
if (linkIk !== void 0) {
|
|
5009
|
+
if (getSchemaObjectParameters(linkIk).length === 0) {
|
|
5010
|
+
errors.push({
|
|
5011
|
+
message: `linkIk must contain a schema parameter. (key: ${key}, name: ${name})`,
|
|
5012
|
+
path: [...path, "linkedAccount", "linkIk"]
|
|
5013
|
+
});
|
|
5014
|
+
}
|
|
5015
|
+
errors.push(
|
|
5016
|
+
...safeGetZodErrors(ParameterizedString, linkIk, [
|
|
5017
|
+
...path,
|
|
5018
|
+
"linkedAccount",
|
|
5019
|
+
"linkIk"
|
|
5020
|
+
])
|
|
5021
|
+
);
|
|
5022
|
+
}
|
|
5001
5023
|
if (externalId) {
|
|
5002
5024
|
errors.push(
|
|
5003
5025
|
...safeGetZodErrors(ParameterizedString, externalId, [
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GenGraphQL
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-7PGIZQ35.js";
|
|
4
|
+
import "../chunk-OZO3OJCY.js";
|
|
5
5
|
import "../chunk-BXLI4XS7.js";
|
|
6
6
|
import "../chunk-ZMFGVGZP.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-XGAAIDHL.js";
|
|
8
8
|
import "../chunk-NRCYIEHQ.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-RIMGBSEL.js";
|
|
10
10
|
import "../chunk-FJ6QHDIV.js";
|
|
11
11
|
import "../chunk-XZABAHOU.js";
|
|
12
12
|
import "../chunk-34NLRFFT.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
VerifySchema
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-K4KAVYAK.js";
|
|
4
|
+
import "../chunk-VBNNSFRR.js";
|
|
5
5
|
import "../chunk-A4BSWX5D.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-XGAAIDHL.js";
|
|
7
7
|
import "../chunk-NRCYIEHQ.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-RIMGBSEL.js";
|
|
9
9
|
import "../chunk-FJ6QHDIV.js";
|
|
10
10
|
import "../chunk-XZABAHOU.js";
|
|
11
11
|
import "../chunk-34NLRFFT.js";
|
package/dist/commands.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
COMMANDS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GYQHUBLU.js";
|
|
4
4
|
import "./chunk-TZNA4KRJ.js";
|
|
5
5
|
import "./chunk-GNOFRTIY.js";
|
|
6
6
|
import "./chunk-AYMJNHSG.js";
|
|
@@ -10,16 +10,16 @@ import "./chunk-AEJWSVLO.js";
|
|
|
10
10
|
import "./chunk-4F34M57C.js";
|
|
11
11
|
import "./chunk-VZO6UGMG.js";
|
|
12
12
|
import "./chunk-6U6BM2J2.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-K4KAVYAK.js";
|
|
14
|
+
import "./chunk-VBNNSFRR.js";
|
|
15
15
|
import "./chunk-A4BSWX5D.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-7PGIZQ35.js";
|
|
17
|
+
import "./chunk-OZO3OJCY.js";
|
|
18
18
|
import "./chunk-BXLI4XS7.js";
|
|
19
19
|
import "./chunk-ZMFGVGZP.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-XGAAIDHL.js";
|
|
21
21
|
import "./chunk-NRCYIEHQ.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-RIMGBSEL.js";
|
|
23
23
|
import "./chunk-FJ6QHDIV.js";
|
|
24
24
|
import "./chunk-Q5CL2ZCE.js";
|
|
25
25
|
import "./chunk-HDTURAHN.js";
|
package/dist/graphql.js
CHANGED
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
schemaToEntryDefinitions,
|
|
12
12
|
schemaToPaymentDefinitions,
|
|
13
13
|
validateOutputName
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-OZO3OJCY.js";
|
|
15
15
|
import "./chunk-BXLI4XS7.js";
|
|
16
16
|
import "./chunk-ZMFGVGZP.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-RIMGBSEL.js";
|
|
18
18
|
import "./chunk-FJ6QHDIV.js";
|
|
19
19
|
import "./chunk-XK2D2Z44.js";
|
|
20
20
|
import "./chunk-7K4RMTU4.js";
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
COMMANDS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GYQHUBLU.js";
|
|
4
4
|
import "./chunk-TZNA4KRJ.js";
|
|
5
5
|
import "./chunk-GNOFRTIY.js";
|
|
6
6
|
import "./chunk-AYMJNHSG.js";
|
|
@@ -10,16 +10,16 @@ import "./chunk-AEJWSVLO.js";
|
|
|
10
10
|
import "./chunk-4F34M57C.js";
|
|
11
11
|
import "./chunk-VZO6UGMG.js";
|
|
12
12
|
import "./chunk-6U6BM2J2.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-K4KAVYAK.js";
|
|
14
|
+
import "./chunk-VBNNSFRR.js";
|
|
15
15
|
import "./chunk-A4BSWX5D.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-7PGIZQ35.js";
|
|
17
|
+
import "./chunk-OZO3OJCY.js";
|
|
18
18
|
import "./chunk-BXLI4XS7.js";
|
|
19
19
|
import "./chunk-ZMFGVGZP.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-XGAAIDHL.js";
|
|
21
21
|
import "./chunk-NRCYIEHQ.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-RIMGBSEL.js";
|
|
23
23
|
import "./chunk-FJ6QHDIV.js";
|
|
24
24
|
import "./chunk-Q5CL2ZCE.js";
|
|
25
25
|
import "./chunk-HDTURAHN.js";
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
extractSchemaMetadata,
|
|
4
4
|
isJsonParseError,
|
|
5
5
|
validateSchemaStructure
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-VBNNSFRR.js";
|
|
7
|
+
import "../chunk-XGAAIDHL.js";
|
|
8
8
|
import "../chunk-NRCYIEHQ.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-RIMGBSEL.js";
|
|
10
10
|
import "../chunk-FJ6QHDIV.js";
|
|
11
11
|
import "../chunk-XK2D2Z44.js";
|
|
12
12
|
import "../chunk-L7ZGDLYU.js";
|
package/oclif.manifest.json
CHANGED