@fragment-dev/cli 2026.2.18 → 2026.2.19
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-VVJZX5OT.js → chunk-5QYNAHTR.js} +1 -1
- package/dist/{chunk-FFVDQPSI.js → chunk-ASSZY3L3.js} +2 -0
- package/dist/{chunk-XIWBSHZZ.js → chunk-C6EYFW5V.js} +2 -2
- package/dist/{chunk-5YHLLX3S.js → chunk-RBQUCJPA.js} +2 -2
- package/dist/{chunk-RBNYETEU.js → chunk-TCZZFGKB.js} +1 -1
- package/dist/{chunk-HHGTGNNM.js → chunk-TFCZXSF7.js} +4 -4
- package/dist/{chunk-VUED5ERK.js → chunk-TUQN4LNR.js} +1 -1
- package/dist/{chunk-OYTGHES5.js → chunk-V4R2MRPF.js} +27 -2
- package/dist/{chunk-COUF55RX.js → chunk-ZEDW3XRN.js} +3 -3
- 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
|
@@ -1764,6 +1764,8 @@ var SfnExecutionNameSchema = SafeStringSchema.superRefine(
|
|
|
1764
1764
|
}
|
|
1765
1765
|
).brand();
|
|
1766
1766
|
var MAX_FREEFORM_TEXT_LENGTH = 1e3;
|
|
1767
|
+
var PlainRequestPayloadSchema = z.any().brand();
|
|
1768
|
+
var HashedRequestPayloadSchema = z.any().brand();
|
|
1767
1769
|
|
|
1768
1770
|
// ../../libs/types/time.ts
|
|
1769
1771
|
init_cjs_shims();
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
extractSchemaMetadata,
|
|
3
3
|
isJsonParseError,
|
|
4
4
|
validateSchemaStructure
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZEDW3XRN.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-5QYNAHTR.js";
|
|
12
12
|
import {
|
|
13
13
|
FragmentCommand,
|
|
14
14
|
require_lib
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from "./chunk-BQKFODF3.js";
|
|
19
19
|
import {
|
|
20
20
|
VerifySchema
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-C6EYFW5V.js";
|
|
22
22
|
import {
|
|
23
23
|
Workspace
|
|
24
24
|
} from "./chunk-LP4CCN7Q.js";
|
|
@@ -66,7 +66,7 @@ import {
|
|
|
66
66
|
} from "./chunk-52XFYFJI.js";
|
|
67
67
|
import {
|
|
68
68
|
GenGraphQL
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-TFCZXSF7.js";
|
|
70
70
|
import {
|
|
71
71
|
init_cjs_shims
|
|
72
72
|
} from "./chunk-7GH3YGSC.js";
|
|
@@ -3,18 +3,18 @@ import {
|
|
|
3
3
|
generateQueryFiles,
|
|
4
4
|
schemaToEntryDefinitions,
|
|
5
5
|
validateOutputName
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TUQN4LNR.js";
|
|
7
7
|
import {
|
|
8
8
|
Schema,
|
|
9
9
|
parseWithError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-V4R2MRPF.js";
|
|
11
11
|
import {
|
|
12
12
|
formatValidationErrors,
|
|
13
13
|
logValidationErrors
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5QYNAHTR.js";
|
|
15
15
|
import {
|
|
16
16
|
BadRequestError
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ASSZY3L3.js";
|
|
18
18
|
import {
|
|
19
19
|
FragmentCommand,
|
|
20
20
|
require_lib
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
getInstanceValueByAccountPath,
|
|
4
4
|
getSchemaObjectParameters,
|
|
5
5
|
getStructuralPath
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TCZZFGKB.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-ASSZY3L3.js";
|
|
22
22
|
import {
|
|
23
23
|
z
|
|
24
24
|
} from "./chunk-5TQBOAE7.js";
|
|
@@ -4767,6 +4767,16 @@ var validateAccountCurrency = ({
|
|
|
4767
4767
|
message: `Must provide custom currency ID for custom currency (key: ${key}, name: ${name})`,
|
|
4768
4768
|
path: [...path, "currency", "customCurrencyId"]
|
|
4769
4769
|
});
|
|
4770
|
+
} else if (currency.customCurrencyId && currency.code !== "CUSTOM" && !getSchemaObjectParameters(currency.code).length) {
|
|
4771
|
+
errors.push({
|
|
4772
|
+
message: `customCurrencyId cannot be set when currency code is '${currency.code}' (key: ${key}, name: ${name}). Set code to 'CUSTOM' or use a parameterized code.`,
|
|
4773
|
+
path: [...path, "currency", "customCurrencyId"]
|
|
4774
|
+
});
|
|
4775
|
+
} else if (currency.customCurrencyId && getSchemaObjectParameters(currency.code).length > 0 && getSchemaObjectParameters(currency.customCurrencyId).length === 0) {
|
|
4776
|
+
errors.push({
|
|
4777
|
+
message: `When currency code is parameterized, customCurrencyId must also be parameterized (key: ${key}, name: ${name})`,
|
|
4778
|
+
path: [...path, "currency", "customCurrencyId"]
|
|
4779
|
+
});
|
|
4770
4780
|
} else if (currency.code !== "CUSTOM") {
|
|
4771
4781
|
errors.push({
|
|
4772
4782
|
message: `Currency code '${currency.code}' is invalid (key: ${key}, name: ${name})`,
|
|
@@ -6001,6 +6011,16 @@ var validateLineCurrency = (currency, accountPath, accountPathToAccount, entryPa
|
|
|
6001
6011
|
message: `Line must provide custom currency ID for custom currency (Line key: ${lineKey}, entry: ${entryType})`,
|
|
6002
6012
|
path: ["currency", "customCurrencyId"]
|
|
6003
6013
|
});
|
|
6014
|
+
} else if (currency.customCurrencyId && currency.code !== "CUSTOM" && !getSchemaObjectParameters(currency.code).length) {
|
|
6015
|
+
validationResults.push({
|
|
6016
|
+
message: `customCurrencyId cannot be set when currency code is '${currency.code}' (Line key: ${lineKey}, entry: ${entryType}). Set code to 'CUSTOM' or use a parameterized code.`,
|
|
6017
|
+
path: ["currency", "customCurrencyId"]
|
|
6018
|
+
});
|
|
6019
|
+
} else if (currency.customCurrencyId && getSchemaObjectParameters(currency.code).length > 0 && getSchemaObjectParameters(currency.customCurrencyId).length === 0) {
|
|
6020
|
+
validationResults.push({
|
|
6021
|
+
message: `When currency code is parameterized, customCurrencyId must also be parameterized (Line key: ${lineKey}, entry: ${entryType})`,
|
|
6022
|
+
path: ["currency", "customCurrencyId"]
|
|
6023
|
+
});
|
|
6004
6024
|
} else if (currency.code !== "CUSTOM") {
|
|
6005
6025
|
validationResults.push({
|
|
6006
6026
|
message: `Currency code '${currency.code}' is invalid (Line key: ${lineKey}, entry: ${entryType})`,
|
|
@@ -6885,6 +6905,11 @@ var SchemaCurrencyMatchInput2 = z.object({
|
|
|
6885
6905
|
(str) => ({ message: `Invalid currency code: ${str}` })
|
|
6886
6906
|
)
|
|
6887
6907
|
}).refine(({ code, customCurrencyId }) => {
|
|
6908
|
+
const codeIsParameterized = getSchemaObjectParameters(code).length > 0;
|
|
6909
|
+
const customCurrencyIdIsParameterized = !!customCurrencyId && getSchemaObjectParameters(customCurrencyId).length > 0;
|
|
6910
|
+
if (codeIsParameterized) {
|
|
6911
|
+
return !customCurrencyId || customCurrencyIdIsParameterized;
|
|
6912
|
+
}
|
|
6888
6913
|
if (code === "CUSTOM") {
|
|
6889
6914
|
return !!customCurrencyId;
|
|
6890
6915
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Schema,
|
|
3
3
|
parseWithError
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-V4R2MRPF.js";
|
|
5
5
|
import {
|
|
6
6
|
formatValidationErrors
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5QYNAHTR.js";
|
|
8
8
|
import {
|
|
9
9
|
BadRequestError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ASSZY3L3.js";
|
|
11
11
|
import {
|
|
12
12
|
init_cjs_shims
|
|
13
13
|
} from "./chunk-7GH3YGSC.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GenGraphQL
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-TFCZXSF7.js";
|
|
4
|
+
import "../chunk-TUQN4LNR.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-V4R2MRPF.js";
|
|
8
|
+
import "../chunk-5QYNAHTR.js";
|
|
9
|
+
import "../chunk-TCZZFGKB.js";
|
|
10
|
+
import "../chunk-ASSZY3L3.js";
|
|
11
11
|
import "../chunk-XECLOG6B.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-C6EYFW5V.js";
|
|
4
|
+
import "../chunk-ZEDW3XRN.js";
|
|
5
5
|
import "../chunk-A4BSWX5D.js";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-V4R2MRPF.js";
|
|
7
|
+
import "../chunk-5QYNAHTR.js";
|
|
8
|
+
import "../chunk-TCZZFGKB.js";
|
|
9
|
+
import "../chunk-ASSZY3L3.js";
|
|
10
10
|
import "../chunk-XECLOG6B.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-RBQUCJPA.js";
|
|
4
4
|
import "./chunk-7KPTGOLB.js";
|
|
5
5
|
import "./chunk-B4BVB4BK.js";
|
|
6
6
|
import "./chunk-LPIIJDWE.js";
|
|
7
7
|
import "./chunk-ILNNTDXN.js";
|
|
8
8
|
import "./chunk-OW7BUT3P.js";
|
|
9
9
|
import "./chunk-BQKFODF3.js";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-C6EYFW5V.js";
|
|
11
|
+
import "./chunk-ZEDW3XRN.js";
|
|
12
12
|
import "./chunk-A4BSWX5D.js";
|
|
13
13
|
import "./chunk-LP4CCN7Q.js";
|
|
14
14
|
import "./chunk-XWLRTFUM.js";
|
|
@@ -28,14 +28,14 @@ import "./chunk-KRRHGRYV.js";
|
|
|
28
28
|
import "./chunk-52XFYFJI.js";
|
|
29
29
|
import "./chunk-KTBBROS4.js";
|
|
30
30
|
import "./chunk-H7VQ6EQO.js";
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-TFCZXSF7.js";
|
|
32
|
+
import "./chunk-TUQN4LNR.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-V4R2MRPF.js";
|
|
36
|
+
import "./chunk-5QYNAHTR.js";
|
|
37
|
+
import "./chunk-TCZZFGKB.js";
|
|
38
|
+
import "./chunk-ASSZY3L3.js";
|
|
39
39
|
import "./chunk-XECLOG6B.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-TUQN4LNR.js";
|
|
12
12
|
import "./chunk-ODU6I44Y.js";
|
|
13
13
|
import "./chunk-73ZTML2E.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-TCZZFGKB.js";
|
|
15
|
+
import "./chunk-ASSZY3L3.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-RBQUCJPA.js";
|
|
4
4
|
import "./chunk-7KPTGOLB.js";
|
|
5
5
|
import "./chunk-B4BVB4BK.js";
|
|
6
6
|
import "./chunk-LPIIJDWE.js";
|
|
7
7
|
import "./chunk-ILNNTDXN.js";
|
|
8
8
|
import "./chunk-OW7BUT3P.js";
|
|
9
9
|
import "./chunk-BQKFODF3.js";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-C6EYFW5V.js";
|
|
11
|
+
import "./chunk-ZEDW3XRN.js";
|
|
12
12
|
import "./chunk-A4BSWX5D.js";
|
|
13
13
|
import "./chunk-LP4CCN7Q.js";
|
|
14
14
|
import "./chunk-XWLRTFUM.js";
|
|
@@ -28,14 +28,14 @@ import "./chunk-KRRHGRYV.js";
|
|
|
28
28
|
import "./chunk-52XFYFJI.js";
|
|
29
29
|
import "./chunk-KTBBROS4.js";
|
|
30
30
|
import "./chunk-H7VQ6EQO.js";
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-TFCZXSF7.js";
|
|
32
|
+
import "./chunk-TUQN4LNR.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-V4R2MRPF.js";
|
|
36
|
+
import "./chunk-5QYNAHTR.js";
|
|
37
|
+
import "./chunk-TCZZFGKB.js";
|
|
38
|
+
import "./chunk-ASSZY3L3.js";
|
|
39
39
|
import {
|
|
40
40
|
require_lib
|
|
41
41
|
} from "./chunk-XECLOG6B.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
formatValidationErrors,
|
|
3
3
|
logValidationErrors
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-5QYNAHTR.js";
|
|
5
|
+
import "../chunk-ASSZY3L3.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-ZEDW3XRN.js";
|
|
7
|
+
import "../chunk-V4R2MRPF.js";
|
|
8
|
+
import "../chunk-5QYNAHTR.js";
|
|
9
|
+
import "../chunk-TCZZFGKB.js";
|
|
10
|
+
import "../chunk-ASSZY3L3.js";
|
|
11
11
|
import "../chunk-5TQBOAE7.js";
|
|
12
12
|
import "../chunk-M5OAS5QZ.js";
|
|
13
13
|
import "../chunk-7GH3YGSC.js";
|
package/oclif.manifest.json
CHANGED