@fragment-dev/cli 2026.10.28 → 2026.10.29-3
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-CEZBQ2OV.js → chunk-FP3RI3B7.js} +1 -1
- package/dist/{chunk-5Y3KBFC5.js → chunk-GV36M6WY.js} +1 -1
- package/dist/{chunk-ZA5GMNJV.js → chunk-XKJQ557J.js} +10 -1
- package/dist/commands/gen-graphql.js +2 -2
- package/dist/commands.js +3 -3
- package/dist/graphql.js +1 -1
- package/dist/index.js +3 -3
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
|
@@ -92,6 +92,8 @@ var schemaToEntryDefinitions = ({
|
|
|
92
92
|
);
|
|
93
93
|
const isRuntimeEntry = (ledgerEntry.lines ?? []).length === 0;
|
|
94
94
|
const hasSchemaConditions = (ledgerEntry.conditions ?? []).length > 0;
|
|
95
|
+
const staticTxLineCount = staticLines.filter((line) => !!line.tx).length;
|
|
96
|
+
const isDescriptionRequired = staticTxLineCount > 1 && ledgerEntry.description === void 0;
|
|
95
97
|
const codegenInput = {
|
|
96
98
|
entryType: ledgerEntry.type,
|
|
97
99
|
typeVersion: ledgerEntry.typeVersion,
|
|
@@ -99,7 +101,8 @@ var schemaToEntryDefinitions = ({
|
|
|
99
101
|
parameters,
|
|
100
102
|
repeatedParameterKeys: repeatedParameterKeys.length > 0 ? repeatedParameterKeys : void 0,
|
|
101
103
|
includeRuntimeArgs: includeRuntimeArgs ?? false,
|
|
102
|
-
hasSchemaConditions
|
|
104
|
+
hasSchemaConditions,
|
|
105
|
+
isDescriptionRequired
|
|
103
106
|
};
|
|
104
107
|
if (isRuntimeEntry) {
|
|
105
108
|
return [
|
|
@@ -310,6 +313,9 @@ var getPredefinedParameters = (definition) => {
|
|
|
310
313
|
}
|
|
311
314
|
}
|
|
312
315
|
params["ledgerIk"] = "SafeString!";
|
|
316
|
+
if (definition.isDescriptionRequired) {
|
|
317
|
+
params["description"] = "String!";
|
|
318
|
+
}
|
|
313
319
|
return params;
|
|
314
320
|
};
|
|
315
321
|
var entryDefinitionToMutation = (definition) => {
|
|
@@ -362,6 +368,9 @@ var entryDefinitionToMutation = (definition) => {
|
|
|
362
368
|
if (typeVersion !== void 0) {
|
|
363
369
|
command.push(`typeVersion: ${typeVersion},`);
|
|
364
370
|
}
|
|
371
|
+
if (definition.isDescriptionRequired) {
|
|
372
|
+
command.push(`description: $description,`);
|
|
373
|
+
}
|
|
365
374
|
if (isPostedAllowed) {
|
|
366
375
|
command.push(`posted: $posted,`);
|
|
367
376
|
}
|
package/dist/commands.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
COMMANDS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FP3RI3B7.js";
|
|
4
4
|
import "./chunk-VCN774BB.js";
|
|
5
5
|
import "./chunk-M2C3IDIY.js";
|
|
6
6
|
import "./chunk-WDUCGD5M.js";
|
|
@@ -14,8 +14,8 @@ import "./chunk-DXYJ2C6A.js";
|
|
|
14
14
|
import "./chunk-HZNM6VFG.js";
|
|
15
15
|
import "./chunk-743236RA.js";
|
|
16
16
|
import "./chunk-A4BSWX5D.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-GV36M6WY.js";
|
|
18
|
+
import "./chunk-XKJQ557J.js";
|
|
19
19
|
import "./chunk-VYIRWU6N.js";
|
|
20
20
|
import "./chunk-UQALZFPK.js";
|
|
21
21
|
import "./chunk-XOKV3CLM.js";
|
package/dist/graphql.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
COMMANDS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FP3RI3B7.js";
|
|
4
4
|
import "./chunk-VCN774BB.js";
|
|
5
5
|
import "./chunk-M2C3IDIY.js";
|
|
6
6
|
import "./chunk-WDUCGD5M.js";
|
|
@@ -14,8 +14,8 @@ import "./chunk-DXYJ2C6A.js";
|
|
|
14
14
|
import "./chunk-HZNM6VFG.js";
|
|
15
15
|
import "./chunk-743236RA.js";
|
|
16
16
|
import "./chunk-A4BSWX5D.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-GV36M6WY.js";
|
|
18
|
+
import "./chunk-XKJQ557J.js";
|
|
19
19
|
import "./chunk-VYIRWU6N.js";
|
|
20
20
|
import "./chunk-UQALZFPK.js";
|
|
21
21
|
import "./chunk-XOKV3CLM.js";
|
package/oclif.manifest.json
CHANGED