@docyrus/docyrus 0.0.80 → 0.1.0
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/main.js +1169 -171
- package/main.js.map +3 -3
- package/package.json +1 -1
- package/resources/pi-agent/skills/docyrus-platform/references/docyrus-cli-usage.md +242 -1
package/main.js
CHANGED
|
@@ -34,9 +34,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
34
34
|
));
|
|
35
35
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
36
36
|
|
|
37
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
37
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/identity.js
|
|
38
38
|
var require_identity = __commonJS({
|
|
39
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
39
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/identity.js"(exports2) {
|
|
40
40
|
"use strict";
|
|
41
41
|
var ALIAS = /* @__PURE__ */ Symbol.for("yaml.alias");
|
|
42
42
|
var DOC = /* @__PURE__ */ Symbol.for("yaml.document");
|
|
@@ -91,9 +91,9 @@ var require_identity = __commonJS({
|
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
93
|
|
|
94
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
94
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/visit.js
|
|
95
95
|
var require_visit = __commonJS({
|
|
96
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
96
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/visit.js"(exports2) {
|
|
97
97
|
"use strict";
|
|
98
98
|
var identity3 = require_identity();
|
|
99
99
|
var BREAK = /* @__PURE__ */ Symbol("break visit");
|
|
@@ -249,9 +249,9 @@ var require_visit = __commonJS({
|
|
|
249
249
|
}
|
|
250
250
|
});
|
|
251
251
|
|
|
252
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
252
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/directives.js
|
|
253
253
|
var require_directives = __commonJS({
|
|
254
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
254
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/directives.js"(exports2) {
|
|
255
255
|
"use strict";
|
|
256
256
|
var identity3 = require_identity();
|
|
257
257
|
var visit2 = require_visit();
|
|
@@ -420,9 +420,9 @@ var require_directives = __commonJS({
|
|
|
420
420
|
}
|
|
421
421
|
});
|
|
422
422
|
|
|
423
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
423
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/anchors.js
|
|
424
424
|
var require_anchors = __commonJS({
|
|
425
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
425
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/anchors.js"(exports2) {
|
|
426
426
|
"use strict";
|
|
427
427
|
var identity3 = require_identity();
|
|
428
428
|
var visit2 = require_visit();
|
|
@@ -490,9 +490,9 @@ var require_anchors = __commonJS({
|
|
|
490
490
|
}
|
|
491
491
|
});
|
|
492
492
|
|
|
493
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
493
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/applyReviver.js
|
|
494
494
|
var require_applyReviver = __commonJS({
|
|
495
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
495
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/applyReviver.js"(exports2) {
|
|
496
496
|
"use strict";
|
|
497
497
|
function applyReviver(reviver, obj, key, val) {
|
|
498
498
|
if (val && typeof val === "object") {
|
|
@@ -540,9 +540,9 @@ var require_applyReviver = __commonJS({
|
|
|
540
540
|
}
|
|
541
541
|
});
|
|
542
542
|
|
|
543
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
543
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/toJS.js
|
|
544
544
|
var require_toJS = __commonJS({
|
|
545
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
545
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/toJS.js"(exports2) {
|
|
546
546
|
"use strict";
|
|
547
547
|
var identity3 = require_identity();
|
|
548
548
|
function toJS(value2, arg, ctx) {
|
|
@@ -570,9 +570,9 @@ var require_toJS = __commonJS({
|
|
|
570
570
|
}
|
|
571
571
|
});
|
|
572
572
|
|
|
573
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
573
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Node.js
|
|
574
574
|
var require_Node = __commonJS({
|
|
575
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
575
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Node.js"(exports2) {
|
|
576
576
|
"use strict";
|
|
577
577
|
var applyReviver = require_applyReviver();
|
|
578
578
|
var identity3 = require_identity();
|
|
@@ -611,9 +611,9 @@ var require_Node = __commonJS({
|
|
|
611
611
|
}
|
|
612
612
|
});
|
|
613
613
|
|
|
614
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
614
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Alias.js
|
|
615
615
|
var require_Alias = __commonJS({
|
|
616
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
616
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Alias.js"(exports2) {
|
|
617
617
|
"use strict";
|
|
618
618
|
var anchors = require_anchors();
|
|
619
619
|
var visit2 = require_visit();
|
|
@@ -727,9 +727,9 @@ var require_Alias = __commonJS({
|
|
|
727
727
|
}
|
|
728
728
|
});
|
|
729
729
|
|
|
730
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
730
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Scalar.js
|
|
731
731
|
var require_Scalar = __commonJS({
|
|
732
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
732
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Scalar.js"(exports2) {
|
|
733
733
|
"use strict";
|
|
734
734
|
var identity3 = require_identity();
|
|
735
735
|
var Node2 = require_Node();
|
|
@@ -757,9 +757,9 @@ var require_Scalar = __commonJS({
|
|
|
757
757
|
}
|
|
758
758
|
});
|
|
759
759
|
|
|
760
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
760
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/createNode.js
|
|
761
761
|
var require_createNode = __commonJS({
|
|
762
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
762
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/createNode.js"(exports2) {
|
|
763
763
|
"use strict";
|
|
764
764
|
var Alias = require_Alias();
|
|
765
765
|
var identity3 = require_identity();
|
|
@@ -832,9 +832,9 @@ var require_createNode = __commonJS({
|
|
|
832
832
|
}
|
|
833
833
|
});
|
|
834
834
|
|
|
835
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
835
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Collection.js
|
|
836
836
|
var require_Collection = __commonJS({
|
|
837
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
837
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Collection.js"(exports2) {
|
|
838
838
|
"use strict";
|
|
839
839
|
var createNode = require_createNode();
|
|
840
840
|
var identity3 = require_identity();
|
|
@@ -975,9 +975,9 @@ var require_Collection = __commonJS({
|
|
|
975
975
|
}
|
|
976
976
|
});
|
|
977
977
|
|
|
978
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
978
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyComment.js
|
|
979
979
|
var require_stringifyComment = __commonJS({
|
|
980
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
980
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyComment.js"(exports2) {
|
|
981
981
|
"use strict";
|
|
982
982
|
var stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
|
|
983
983
|
function indentComment(comment, indent) {
|
|
@@ -992,9 +992,9 @@ var require_stringifyComment = __commonJS({
|
|
|
992
992
|
}
|
|
993
993
|
});
|
|
994
994
|
|
|
995
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
995
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/foldFlowLines.js
|
|
996
996
|
var require_foldFlowLines = __commonJS({
|
|
997
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
997
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/foldFlowLines.js"(exports2) {
|
|
998
998
|
"use strict";
|
|
999
999
|
var FOLD_FLOW = "flow";
|
|
1000
1000
|
var FOLD_BLOCK = "block";
|
|
@@ -1128,9 +1128,9 @@ ${indent}${text3.slice(fold + 1, end2)}`;
|
|
|
1128
1128
|
}
|
|
1129
1129
|
});
|
|
1130
1130
|
|
|
1131
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
1131
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyString.js
|
|
1132
1132
|
var require_stringifyString = __commonJS({
|
|
1133
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
1133
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyString.js"(exports2) {
|
|
1134
1134
|
"use strict";
|
|
1135
1135
|
var Scalar = require_Scalar();
|
|
1136
1136
|
var foldFlowLines = require_foldFlowLines();
|
|
@@ -1411,9 +1411,9 @@ ${indent}`);
|
|
|
1411
1411
|
}
|
|
1412
1412
|
});
|
|
1413
1413
|
|
|
1414
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
1414
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringify.js
|
|
1415
1415
|
var require_stringify = __commonJS({
|
|
1416
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
1416
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringify.js"(exports2) {
|
|
1417
1417
|
"use strict";
|
|
1418
1418
|
var anchors = require_anchors();
|
|
1419
1419
|
var identity3 = require_identity();
|
|
@@ -1535,9 +1535,9 @@ ${ctx.indent}${str}`;
|
|
|
1535
1535
|
}
|
|
1536
1536
|
});
|
|
1537
1537
|
|
|
1538
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
1538
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyPair.js
|
|
1539
1539
|
var require_stringifyPair = __commonJS({
|
|
1540
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
1540
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyPair.js"(exports2) {
|
|
1541
1541
|
"use strict";
|
|
1542
1542
|
var identity3 = require_identity();
|
|
1543
1543
|
var Scalar = require_Scalar();
|
|
@@ -1668,9 +1668,9 @@ ${ctx.indent}`;
|
|
|
1668
1668
|
}
|
|
1669
1669
|
});
|
|
1670
1670
|
|
|
1671
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
1671
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/log.js
|
|
1672
1672
|
var require_log = __commonJS({
|
|
1673
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
1673
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/log.js"(exports2) {
|
|
1674
1674
|
"use strict";
|
|
1675
1675
|
var node_process = require("process");
|
|
1676
1676
|
function debug(logLevel, ...messages) {
|
|
@@ -1690,9 +1690,9 @@ var require_log = __commonJS({
|
|
|
1690
1690
|
}
|
|
1691
1691
|
});
|
|
1692
1692
|
|
|
1693
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
1693
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/merge.js
|
|
1694
1694
|
var require_merge = __commonJS({
|
|
1695
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
1695
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/merge.js"(exports2) {
|
|
1696
1696
|
"use strict";
|
|
1697
1697
|
var identity3 = require_identity();
|
|
1698
1698
|
var Scalar = require_Scalar();
|
|
@@ -1750,9 +1750,9 @@ var require_merge = __commonJS({
|
|
|
1750
1750
|
}
|
|
1751
1751
|
});
|
|
1752
1752
|
|
|
1753
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
1753
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/addPairToJSMap.js
|
|
1754
1754
|
var require_addPairToJSMap = __commonJS({
|
|
1755
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
1755
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports2) {
|
|
1756
1756
|
"use strict";
|
|
1757
1757
|
var log = require_log();
|
|
1758
1758
|
var merge2 = require_merge();
|
|
@@ -1814,9 +1814,9 @@ var require_addPairToJSMap = __commonJS({
|
|
|
1814
1814
|
}
|
|
1815
1815
|
});
|
|
1816
1816
|
|
|
1817
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
1817
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Pair.js
|
|
1818
1818
|
var require_Pair = __commonJS({
|
|
1819
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
1819
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Pair.js"(exports2) {
|
|
1820
1820
|
"use strict";
|
|
1821
1821
|
var createNode = require_createNode();
|
|
1822
1822
|
var stringifyPair = require_stringifyPair();
|
|
@@ -1854,9 +1854,9 @@ var require_Pair = __commonJS({
|
|
|
1854
1854
|
}
|
|
1855
1855
|
});
|
|
1856
1856
|
|
|
1857
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
1857
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyCollection.js
|
|
1858
1858
|
var require_stringifyCollection = __commonJS({
|
|
1859
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
1859
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyCollection.js"(exports2) {
|
|
1860
1860
|
"use strict";
|
|
1861
1861
|
var identity3 = require_identity();
|
|
1862
1862
|
var stringify = require_stringify();
|
|
@@ -2005,9 +2005,9 @@ ${indent}${end}`;
|
|
|
2005
2005
|
}
|
|
2006
2006
|
});
|
|
2007
2007
|
|
|
2008
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2008
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLMap.js
|
|
2009
2009
|
var require_YAMLMap = __commonJS({
|
|
2010
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2010
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLMap.js"(exports2) {
|
|
2011
2011
|
"use strict";
|
|
2012
2012
|
var stringifyCollection = require_stringifyCollection();
|
|
2013
2013
|
var addPairToJSMap = require_addPairToJSMap();
|
|
@@ -2149,9 +2149,9 @@ var require_YAMLMap = __commonJS({
|
|
|
2149
2149
|
}
|
|
2150
2150
|
});
|
|
2151
2151
|
|
|
2152
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2152
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/map.js
|
|
2153
2153
|
var require_map = __commonJS({
|
|
2154
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2154
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/map.js"(exports2) {
|
|
2155
2155
|
"use strict";
|
|
2156
2156
|
var identity3 = require_identity();
|
|
2157
2157
|
var YAMLMap = require_YAMLMap();
|
|
@@ -2171,9 +2171,9 @@ var require_map = __commonJS({
|
|
|
2171
2171
|
}
|
|
2172
2172
|
});
|
|
2173
2173
|
|
|
2174
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2174
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLSeq.js
|
|
2175
2175
|
var require_YAMLSeq = __commonJS({
|
|
2176
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2176
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLSeq.js"(exports2) {
|
|
2177
2177
|
"use strict";
|
|
2178
2178
|
var createNode = require_createNode();
|
|
2179
2179
|
var stringifyCollection = require_stringifyCollection();
|
|
@@ -2287,9 +2287,9 @@ var require_YAMLSeq = __commonJS({
|
|
|
2287
2287
|
}
|
|
2288
2288
|
});
|
|
2289
2289
|
|
|
2290
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2290
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/seq.js
|
|
2291
2291
|
var require_seq = __commonJS({
|
|
2292
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2292
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/seq.js"(exports2) {
|
|
2293
2293
|
"use strict";
|
|
2294
2294
|
var identity3 = require_identity();
|
|
2295
2295
|
var YAMLSeq = require_YAMLSeq();
|
|
@@ -2309,9 +2309,9 @@ var require_seq = __commonJS({
|
|
|
2309
2309
|
}
|
|
2310
2310
|
});
|
|
2311
2311
|
|
|
2312
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2312
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/string.js
|
|
2313
2313
|
var require_string = __commonJS({
|
|
2314
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2314
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/string.js"(exports2) {
|
|
2315
2315
|
"use strict";
|
|
2316
2316
|
var stringifyString = require_stringifyString();
|
|
2317
2317
|
var string6 = {
|
|
@@ -2328,9 +2328,9 @@ var require_string = __commonJS({
|
|
|
2328
2328
|
}
|
|
2329
2329
|
});
|
|
2330
2330
|
|
|
2331
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2331
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/null.js
|
|
2332
2332
|
var require_null = __commonJS({
|
|
2333
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2333
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/null.js"(exports2) {
|
|
2334
2334
|
"use strict";
|
|
2335
2335
|
var Scalar = require_Scalar();
|
|
2336
2336
|
var nullTag = {
|
|
@@ -2346,9 +2346,9 @@ var require_null = __commonJS({
|
|
|
2346
2346
|
}
|
|
2347
2347
|
});
|
|
2348
2348
|
|
|
2349
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2349
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/bool.js
|
|
2350
2350
|
var require_bool = __commonJS({
|
|
2351
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2351
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/bool.js"(exports2) {
|
|
2352
2352
|
"use strict";
|
|
2353
2353
|
var Scalar = require_Scalar();
|
|
2354
2354
|
var boolTag = {
|
|
@@ -2370,9 +2370,9 @@ var require_bool = __commonJS({
|
|
|
2370
2370
|
}
|
|
2371
2371
|
});
|
|
2372
2372
|
|
|
2373
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2373
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyNumber.js
|
|
2374
2374
|
var require_stringifyNumber = __commonJS({
|
|
2375
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2375
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyNumber.js"(exports2) {
|
|
2376
2376
|
"use strict";
|
|
2377
2377
|
function stringifyNumber({ format: format2, minFractionDigits, tag: tag2, value: value2 }) {
|
|
2378
2378
|
if (typeof value2 === "bigint")
|
|
@@ -2397,9 +2397,9 @@ var require_stringifyNumber = __commonJS({
|
|
|
2397
2397
|
}
|
|
2398
2398
|
});
|
|
2399
2399
|
|
|
2400
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2400
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/float.js
|
|
2401
2401
|
var require_float = __commonJS({
|
|
2402
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2402
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/float.js"(exports2) {
|
|
2403
2403
|
"use strict";
|
|
2404
2404
|
var Scalar = require_Scalar();
|
|
2405
2405
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -2443,9 +2443,9 @@ var require_float = __commonJS({
|
|
|
2443
2443
|
}
|
|
2444
2444
|
});
|
|
2445
2445
|
|
|
2446
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2446
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/int.js
|
|
2447
2447
|
var require_int = __commonJS({
|
|
2448
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2448
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/int.js"(exports2) {
|
|
2449
2449
|
"use strict";
|
|
2450
2450
|
var stringifyNumber = require_stringifyNumber();
|
|
2451
2451
|
var intIdentify = (value2) => typeof value2 === "bigint" || Number.isInteger(value2);
|
|
@@ -2488,9 +2488,9 @@ var require_int = __commonJS({
|
|
|
2488
2488
|
}
|
|
2489
2489
|
});
|
|
2490
2490
|
|
|
2491
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2491
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/schema.js
|
|
2492
2492
|
var require_schema = __commonJS({
|
|
2493
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2493
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/schema.js"(exports2) {
|
|
2494
2494
|
"use strict";
|
|
2495
2495
|
var map2 = require_map();
|
|
2496
2496
|
var _null4 = require_null();
|
|
@@ -2516,9 +2516,9 @@ var require_schema = __commonJS({
|
|
|
2516
2516
|
}
|
|
2517
2517
|
});
|
|
2518
2518
|
|
|
2519
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2519
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/json/schema.js
|
|
2520
2520
|
var require_schema2 = __commonJS({
|
|
2521
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2521
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/json/schema.js"(exports2) {
|
|
2522
2522
|
"use strict";
|
|
2523
2523
|
var Scalar = require_Scalar();
|
|
2524
2524
|
var map2 = require_map();
|
|
@@ -2583,9 +2583,9 @@ var require_schema2 = __commonJS({
|
|
|
2583
2583
|
}
|
|
2584
2584
|
});
|
|
2585
2585
|
|
|
2586
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2586
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/binary.js
|
|
2587
2587
|
var require_binary = __commonJS({
|
|
2588
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2588
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/binary.js"(exports2) {
|
|
2589
2589
|
"use strict";
|
|
2590
2590
|
var node_buffer = require("buffer");
|
|
2591
2591
|
var Scalar = require_Scalar();
|
|
@@ -2649,9 +2649,9 @@ var require_binary = __commonJS({
|
|
|
2649
2649
|
}
|
|
2650
2650
|
});
|
|
2651
2651
|
|
|
2652
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2652
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
|
|
2653
2653
|
var require_pairs = __commonJS({
|
|
2654
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2654
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(exports2) {
|
|
2655
2655
|
"use strict";
|
|
2656
2656
|
var identity3 = require_identity();
|
|
2657
2657
|
var Pair = require_Pair();
|
|
@@ -2727,9 +2727,9 @@ ${cn.comment}` : item.comment;
|
|
|
2727
2727
|
}
|
|
2728
2728
|
});
|
|
2729
2729
|
|
|
2730
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2730
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/omap.js
|
|
2731
2731
|
var require_omap = __commonJS({
|
|
2732
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2732
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/omap.js"(exports2) {
|
|
2733
2733
|
"use strict";
|
|
2734
2734
|
var identity3 = require_identity();
|
|
2735
2735
|
var toJS = require_toJS();
|
|
@@ -2805,9 +2805,9 @@ var require_omap = __commonJS({
|
|
|
2805
2805
|
}
|
|
2806
2806
|
});
|
|
2807
2807
|
|
|
2808
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2808
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/bool.js
|
|
2809
2809
|
var require_bool2 = __commonJS({
|
|
2810
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2810
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/bool.js"(exports2) {
|
|
2811
2811
|
"use strict";
|
|
2812
2812
|
var Scalar = require_Scalar();
|
|
2813
2813
|
function boolStringify({ value: value2, source }, ctx) {
|
|
@@ -2837,9 +2837,9 @@ var require_bool2 = __commonJS({
|
|
|
2837
2837
|
}
|
|
2838
2838
|
});
|
|
2839
2839
|
|
|
2840
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2840
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/float.js
|
|
2841
2841
|
var require_float2 = __commonJS({
|
|
2842
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2842
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/float.js"(exports2) {
|
|
2843
2843
|
"use strict";
|
|
2844
2844
|
var Scalar = require_Scalar();
|
|
2845
2845
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -2886,9 +2886,9 @@ var require_float2 = __commonJS({
|
|
|
2886
2886
|
}
|
|
2887
2887
|
});
|
|
2888
2888
|
|
|
2889
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2889
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/int.js
|
|
2890
2890
|
var require_int2 = __commonJS({
|
|
2891
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2891
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/int.js"(exports2) {
|
|
2892
2892
|
"use strict";
|
|
2893
2893
|
var stringifyNumber = require_stringifyNumber();
|
|
2894
2894
|
var intIdentify = (value2) => typeof value2 === "bigint" || Number.isInteger(value2);
|
|
@@ -2965,9 +2965,9 @@ var require_int2 = __commonJS({
|
|
|
2965
2965
|
}
|
|
2966
2966
|
});
|
|
2967
2967
|
|
|
2968
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2968
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/set.js
|
|
2969
2969
|
var require_set = __commonJS({
|
|
2970
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2970
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/set.js"(exports2) {
|
|
2971
2971
|
"use strict";
|
|
2972
2972
|
var identity3 = require_identity();
|
|
2973
2973
|
var Pair = require_Pair();
|
|
@@ -3054,9 +3054,9 @@ var require_set = __commonJS({
|
|
|
3054
3054
|
}
|
|
3055
3055
|
});
|
|
3056
3056
|
|
|
3057
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
3057
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
|
|
3058
3058
|
var require_timestamp = __commonJS({
|
|
3059
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
3059
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports2) {
|
|
3060
3060
|
"use strict";
|
|
3061
3061
|
var stringifyNumber = require_stringifyNumber();
|
|
3062
3062
|
function parseSexagesimal(str, asBigInt) {
|
|
@@ -3142,9 +3142,9 @@ var require_timestamp = __commonJS({
|
|
|
3142
3142
|
}
|
|
3143
3143
|
});
|
|
3144
3144
|
|
|
3145
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
3145
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/schema.js
|
|
3146
3146
|
var require_schema3 = __commonJS({
|
|
3147
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
3147
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/schema.js"(exports2) {
|
|
3148
3148
|
"use strict";
|
|
3149
3149
|
var map2 = require_map();
|
|
3150
3150
|
var _null4 = require_null();
|
|
@@ -3186,9 +3186,9 @@ var require_schema3 = __commonJS({
|
|
|
3186
3186
|
}
|
|
3187
3187
|
});
|
|
3188
3188
|
|
|
3189
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
3189
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/tags.js
|
|
3190
3190
|
var require_tags = __commonJS({
|
|
3191
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
3191
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/tags.js"(exports2) {
|
|
3192
3192
|
"use strict";
|
|
3193
3193
|
var map2 = require_map();
|
|
3194
3194
|
var _null4 = require_null();
|
|
@@ -3280,9 +3280,9 @@ var require_tags = __commonJS({
|
|
|
3280
3280
|
}
|
|
3281
3281
|
});
|
|
3282
3282
|
|
|
3283
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
3283
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/Schema.js
|
|
3284
3284
|
var require_Schema = __commonJS({
|
|
3285
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
3285
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/Schema.js"(exports2) {
|
|
3286
3286
|
"use strict";
|
|
3287
3287
|
var identity3 = require_identity();
|
|
3288
3288
|
var map2 = require_map();
|
|
@@ -3312,9 +3312,9 @@ var require_Schema = __commonJS({
|
|
|
3312
3312
|
}
|
|
3313
3313
|
});
|
|
3314
3314
|
|
|
3315
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
3315
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyDocument.js
|
|
3316
3316
|
var require_stringifyDocument = __commonJS({
|
|
3317
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
3317
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyDocument.js"(exports2) {
|
|
3318
3318
|
"use strict";
|
|
3319
3319
|
var identity3 = require_identity();
|
|
3320
3320
|
var stringify = require_stringify();
|
|
@@ -3392,9 +3392,9 @@ var require_stringifyDocument = __commonJS({
|
|
|
3392
3392
|
}
|
|
3393
3393
|
});
|
|
3394
3394
|
|
|
3395
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
3395
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/Document.js
|
|
3396
3396
|
var require_Document = __commonJS({
|
|
3397
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
3397
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/Document.js"(exports2) {
|
|
3398
3398
|
"use strict";
|
|
3399
3399
|
var Alias = require_Alias();
|
|
3400
3400
|
var Collection = require_Collection();
|
|
@@ -3701,9 +3701,9 @@ var require_Document = __commonJS({
|
|
|
3701
3701
|
}
|
|
3702
3702
|
});
|
|
3703
3703
|
|
|
3704
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
3704
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/errors.js
|
|
3705
3705
|
var require_errors = __commonJS({
|
|
3706
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
3706
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/errors.js"(exports2) {
|
|
3707
3707
|
"use strict";
|
|
3708
3708
|
var YAMLError = class extends Error {
|
|
3709
3709
|
constructor(name2, pos, code, message) {
|
|
@@ -3766,9 +3766,9 @@ ${pointer}
|
|
|
3766
3766
|
}
|
|
3767
3767
|
});
|
|
3768
3768
|
|
|
3769
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
3769
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-props.js
|
|
3770
3770
|
var require_resolve_props = __commonJS({
|
|
3771
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
3771
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-props.js"(exports2) {
|
|
3772
3772
|
"use strict";
|
|
3773
3773
|
function resolveProps(tokens, { flow: flow3, indicator, next, offset, onError, parentIndent, startOnNewline }) {
|
|
3774
3774
|
let spaceBefore = false;
|
|
@@ -3900,9 +3900,9 @@ var require_resolve_props = __commonJS({
|
|
|
3900
3900
|
}
|
|
3901
3901
|
});
|
|
3902
3902
|
|
|
3903
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
3903
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-contains-newline.js
|
|
3904
3904
|
var require_util_contains_newline = __commonJS({
|
|
3905
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
3905
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-contains-newline.js"(exports2) {
|
|
3906
3906
|
"use strict";
|
|
3907
3907
|
function containsNewline(key) {
|
|
3908
3908
|
if (!key)
|
|
@@ -3942,9 +3942,9 @@ var require_util_contains_newline = __commonJS({
|
|
|
3942
3942
|
}
|
|
3943
3943
|
});
|
|
3944
3944
|
|
|
3945
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
3945
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-flow-indent-check.js
|
|
3946
3946
|
var require_util_flow_indent_check = __commonJS({
|
|
3947
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
3947
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-flow-indent-check.js"(exports2) {
|
|
3948
3948
|
"use strict";
|
|
3949
3949
|
var utilContainsNewline = require_util_contains_newline();
|
|
3950
3950
|
function flowIndentCheck(indent, fc, onError) {
|
|
@@ -3960,9 +3960,9 @@ var require_util_flow_indent_check = __commonJS({
|
|
|
3960
3960
|
}
|
|
3961
3961
|
});
|
|
3962
3962
|
|
|
3963
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
3963
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-map-includes.js
|
|
3964
3964
|
var require_util_map_includes = __commonJS({
|
|
3965
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
3965
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-map-includes.js"(exports2) {
|
|
3966
3966
|
"use strict";
|
|
3967
3967
|
var identity3 = require_identity();
|
|
3968
3968
|
function mapIncludes(ctx, items, search2) {
|
|
@@ -3976,9 +3976,9 @@ var require_util_map_includes = __commonJS({
|
|
|
3976
3976
|
}
|
|
3977
3977
|
});
|
|
3978
3978
|
|
|
3979
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
3979
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-map.js
|
|
3980
3980
|
var require_resolve_block_map = __commonJS({
|
|
3981
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
3981
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-map.js"(exports2) {
|
|
3982
3982
|
"use strict";
|
|
3983
3983
|
var Pair = require_Pair();
|
|
3984
3984
|
var YAMLMap = require_YAMLMap();
|
|
@@ -4084,9 +4084,9 @@ var require_resolve_block_map = __commonJS({
|
|
|
4084
4084
|
}
|
|
4085
4085
|
});
|
|
4086
4086
|
|
|
4087
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
4087
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-seq.js
|
|
4088
4088
|
var require_resolve_block_seq = __commonJS({
|
|
4089
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
4089
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-seq.js"(exports2) {
|
|
4090
4090
|
"use strict";
|
|
4091
4091
|
var YAMLSeq = require_YAMLSeq();
|
|
4092
4092
|
var resolveProps = require_resolve_props();
|
|
@@ -4135,9 +4135,9 @@ var require_resolve_block_seq = __commonJS({
|
|
|
4135
4135
|
}
|
|
4136
4136
|
});
|
|
4137
4137
|
|
|
4138
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
4138
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-end.js
|
|
4139
4139
|
var require_resolve_end = __commonJS({
|
|
4140
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
4140
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-end.js"(exports2) {
|
|
4141
4141
|
"use strict";
|
|
4142
4142
|
function resolveEnd(end, offset, reqSpace, onError) {
|
|
4143
4143
|
let comment = "";
|
|
@@ -4178,9 +4178,9 @@ var require_resolve_end = __commonJS({
|
|
|
4178
4178
|
}
|
|
4179
4179
|
});
|
|
4180
4180
|
|
|
4181
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
4181
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-collection.js
|
|
4182
4182
|
var require_resolve_flow_collection = __commonJS({
|
|
4183
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
4183
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-collection.js"(exports2) {
|
|
4184
4184
|
"use strict";
|
|
4185
4185
|
var identity3 = require_identity();
|
|
4186
4186
|
var Pair = require_Pair();
|
|
@@ -4372,9 +4372,9 @@ var require_resolve_flow_collection = __commonJS({
|
|
|
4372
4372
|
}
|
|
4373
4373
|
});
|
|
4374
4374
|
|
|
4375
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
4375
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-collection.js
|
|
4376
4376
|
var require_compose_collection = __commonJS({
|
|
4377
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
4377
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-collection.js"(exports2) {
|
|
4378
4378
|
"use strict";
|
|
4379
4379
|
var identity3 = require_identity();
|
|
4380
4380
|
var Scalar = require_Scalar();
|
|
@@ -4437,9 +4437,9 @@ var require_compose_collection = __commonJS({
|
|
|
4437
4437
|
}
|
|
4438
4438
|
});
|
|
4439
4439
|
|
|
4440
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
4440
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-scalar.js
|
|
4441
4441
|
var require_resolve_block_scalar = __commonJS({
|
|
4442
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
4442
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-scalar.js"(exports2) {
|
|
4443
4443
|
"use strict";
|
|
4444
4444
|
var Scalar = require_Scalar();
|
|
4445
4445
|
function resolveBlockScalar(ctx, scalar, onError) {
|
|
@@ -4620,9 +4620,9 @@ var require_resolve_block_scalar = __commonJS({
|
|
|
4620
4620
|
}
|
|
4621
4621
|
});
|
|
4622
4622
|
|
|
4623
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
4623
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-scalar.js
|
|
4624
4624
|
var require_resolve_flow_scalar = __commonJS({
|
|
4625
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
4625
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-scalar.js"(exports2) {
|
|
4626
4626
|
"use strict";
|
|
4627
4627
|
var Scalar = require_Scalar();
|
|
4628
4628
|
var resolveEnd = require_resolve_end();
|
|
@@ -4840,9 +4840,9 @@ var require_resolve_flow_scalar = __commonJS({
|
|
|
4840
4840
|
}
|
|
4841
4841
|
});
|
|
4842
4842
|
|
|
4843
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
4843
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-scalar.js
|
|
4844
4844
|
var require_compose_scalar = __commonJS({
|
|
4845
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
4845
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-scalar.js"(exports2) {
|
|
4846
4846
|
"use strict";
|
|
4847
4847
|
var identity3 = require_identity();
|
|
4848
4848
|
var Scalar = require_Scalar();
|
|
@@ -4921,9 +4921,9 @@ var require_compose_scalar = __commonJS({
|
|
|
4921
4921
|
}
|
|
4922
4922
|
});
|
|
4923
4923
|
|
|
4924
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
4924
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-empty-scalar-position.js
|
|
4925
4925
|
var require_util_empty_scalar_position = __commonJS({
|
|
4926
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
4926
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-empty-scalar-position.js"(exports2) {
|
|
4927
4927
|
"use strict";
|
|
4928
4928
|
function emptyScalarPosition(offset, before, pos) {
|
|
4929
4929
|
if (before) {
|
|
@@ -4951,9 +4951,9 @@ var require_util_empty_scalar_position = __commonJS({
|
|
|
4951
4951
|
}
|
|
4952
4952
|
});
|
|
4953
4953
|
|
|
4954
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
4954
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-node.js
|
|
4955
4955
|
var require_compose_node = __commonJS({
|
|
4956
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
4956
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-node.js"(exports2) {
|
|
4957
4957
|
"use strict";
|
|
4958
4958
|
var Alias = require_Alias();
|
|
4959
4959
|
var identity3 = require_identity();
|
|
@@ -5057,9 +5057,9 @@ var require_compose_node = __commonJS({
|
|
|
5057
5057
|
}
|
|
5058
5058
|
});
|
|
5059
5059
|
|
|
5060
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
5060
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-doc.js
|
|
5061
5061
|
var require_compose_doc = __commonJS({
|
|
5062
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
5062
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-doc.js"(exports2) {
|
|
5063
5063
|
"use strict";
|
|
5064
5064
|
var Document = require_Document();
|
|
5065
5065
|
var composeNode = require_compose_node();
|
|
@@ -5100,9 +5100,9 @@ var require_compose_doc = __commonJS({
|
|
|
5100
5100
|
}
|
|
5101
5101
|
});
|
|
5102
5102
|
|
|
5103
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
5103
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/composer.js
|
|
5104
5104
|
var require_composer = __commonJS({
|
|
5105
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
5105
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/composer.js"(exports2) {
|
|
5106
5106
|
"use strict";
|
|
5107
5107
|
var node_process = require("process");
|
|
5108
5108
|
var directives = require_directives();
|
|
@@ -5184,8 +5184,10 @@ ${cb}` : comment;
|
|
|
5184
5184
|
}
|
|
5185
5185
|
}
|
|
5186
5186
|
if (afterDoc) {
|
|
5187
|
-
|
|
5188
|
-
|
|
5187
|
+
for (let i2 = 0; i2 < this.errors.length; ++i2)
|
|
5188
|
+
doc.errors.push(this.errors[i2]);
|
|
5189
|
+
for (let i2 = 0; i2 < this.warnings.length; ++i2)
|
|
5190
|
+
doc.warnings.push(this.warnings[i2]);
|
|
5189
5191
|
} else {
|
|
5190
5192
|
doc.errors = this.errors;
|
|
5191
5193
|
doc.warnings = this.warnings;
|
|
@@ -5306,9 +5308,9 @@ ${end.comment}` : end.comment;
|
|
|
5306
5308
|
}
|
|
5307
5309
|
});
|
|
5308
5310
|
|
|
5309
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
5311
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst-scalar.js
|
|
5310
5312
|
var require_cst_scalar = __commonJS({
|
|
5311
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
5313
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst-scalar.js"(exports2) {
|
|
5312
5314
|
"use strict";
|
|
5313
5315
|
var resolveBlockScalar = require_resolve_block_scalar();
|
|
5314
5316
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
|
@@ -5491,9 +5493,9 @@ var require_cst_scalar = __commonJS({
|
|
|
5491
5493
|
}
|
|
5492
5494
|
});
|
|
5493
5495
|
|
|
5494
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
5496
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst-stringify.js
|
|
5495
5497
|
var require_cst_stringify = __commonJS({
|
|
5496
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
5498
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst-stringify.js"(exports2) {
|
|
5497
5499
|
"use strict";
|
|
5498
5500
|
var stringify = (cst) => "type" in cst ? stringifyToken(cst) : stringifyItem(cst);
|
|
5499
5501
|
function stringifyToken(token) {
|
|
@@ -5552,9 +5554,9 @@ var require_cst_stringify = __commonJS({
|
|
|
5552
5554
|
}
|
|
5553
5555
|
});
|
|
5554
5556
|
|
|
5555
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
5557
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst-visit.js
|
|
5556
5558
|
var require_cst_visit = __commonJS({
|
|
5557
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
5559
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst-visit.js"(exports2) {
|
|
5558
5560
|
"use strict";
|
|
5559
5561
|
var BREAK = /* @__PURE__ */ Symbol("break visit");
|
|
5560
5562
|
var SKIP2 = /* @__PURE__ */ Symbol("skip children");
|
|
@@ -5614,9 +5616,9 @@ var require_cst_visit = __commonJS({
|
|
|
5614
5616
|
}
|
|
5615
5617
|
});
|
|
5616
5618
|
|
|
5617
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
5619
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst.js
|
|
5618
5620
|
var require_cst = __commonJS({
|
|
5619
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
5621
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst.js"(exports2) {
|
|
5620
5622
|
"use strict";
|
|
5621
5623
|
var cstScalar = require_cst_scalar();
|
|
5622
5624
|
var cstStringify = require_cst_stringify();
|
|
@@ -5716,9 +5718,9 @@ var require_cst = __commonJS({
|
|
|
5716
5718
|
}
|
|
5717
5719
|
});
|
|
5718
5720
|
|
|
5719
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
5721
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/lexer.js
|
|
5720
5722
|
var require_lexer = __commonJS({
|
|
5721
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
5723
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/lexer.js"(exports2) {
|
|
5722
5724
|
"use strict";
|
|
5723
5725
|
var cst = require_cst();
|
|
5724
5726
|
function isEmpty(ch) {
|
|
@@ -5918,7 +5920,7 @@ var require_lexer = __commonJS({
|
|
|
5918
5920
|
const n = (yield* this.pushCount(1)) + (yield* this.pushSpaces(true));
|
|
5919
5921
|
this.indentNext = this.indentValue + 1;
|
|
5920
5922
|
this.indentValue += n;
|
|
5921
|
-
return
|
|
5923
|
+
return "block-start";
|
|
5922
5924
|
}
|
|
5923
5925
|
return "doc";
|
|
5924
5926
|
}
|
|
@@ -6217,28 +6219,38 @@ var require_lexer = __commonJS({
|
|
|
6217
6219
|
return 0;
|
|
6218
6220
|
}
|
|
6219
6221
|
*pushIndicators() {
|
|
6220
|
-
|
|
6221
|
-
|
|
6222
|
-
|
|
6223
|
-
|
|
6224
|
-
|
|
6225
|
-
|
|
6226
|
-
|
|
6227
|
-
|
|
6228
|
-
|
|
6229
|
-
|
|
6230
|
-
|
|
6231
|
-
|
|
6232
|
-
|
|
6233
|
-
|
|
6234
|
-
|
|
6235
|
-
|
|
6236
|
-
|
|
6237
|
-
|
|
6222
|
+
let n = 0;
|
|
6223
|
+
loop: while (true) {
|
|
6224
|
+
switch (this.charAt(0)) {
|
|
6225
|
+
case "!":
|
|
6226
|
+
n += yield* this.pushTag();
|
|
6227
|
+
n += yield* this.pushSpaces(true);
|
|
6228
|
+
continue loop;
|
|
6229
|
+
case "&":
|
|
6230
|
+
n += yield* this.pushUntil(isNotAnchorChar);
|
|
6231
|
+
n += yield* this.pushSpaces(true);
|
|
6232
|
+
continue loop;
|
|
6233
|
+
case "-":
|
|
6234
|
+
// this is an error
|
|
6235
|
+
case "?":
|
|
6236
|
+
// this is an error outside flow collections
|
|
6237
|
+
case ":": {
|
|
6238
|
+
const inFlow = this.flowLevel > 0;
|
|
6239
|
+
const ch1 = this.charAt(1);
|
|
6240
|
+
if (isEmpty(ch1) || inFlow && flowIndicatorChars.has(ch1)) {
|
|
6241
|
+
if (!inFlow)
|
|
6242
|
+
this.indentNext = this.indentValue + 1;
|
|
6243
|
+
else if (this.flowKey)
|
|
6244
|
+
this.flowKey = false;
|
|
6245
|
+
n += yield* this.pushCount(1);
|
|
6246
|
+
n += yield* this.pushSpaces(true);
|
|
6247
|
+
continue loop;
|
|
6248
|
+
}
|
|
6238
6249
|
}
|
|
6239
6250
|
}
|
|
6251
|
+
break loop;
|
|
6240
6252
|
}
|
|
6241
|
-
return
|
|
6253
|
+
return n;
|
|
6242
6254
|
}
|
|
6243
6255
|
*pushTag() {
|
|
6244
6256
|
if (this.charAt(1) === "<") {
|
|
@@ -6295,9 +6307,9 @@ var require_lexer = __commonJS({
|
|
|
6295
6307
|
}
|
|
6296
6308
|
});
|
|
6297
6309
|
|
|
6298
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
6310
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/line-counter.js
|
|
6299
6311
|
var require_line_counter = __commonJS({
|
|
6300
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
6312
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/line-counter.js"(exports2) {
|
|
6301
6313
|
"use strict";
|
|
6302
6314
|
var LineCounter = class {
|
|
6303
6315
|
constructor() {
|
|
@@ -6326,9 +6338,9 @@ var require_line_counter = __commonJS({
|
|
|
6326
6338
|
}
|
|
6327
6339
|
});
|
|
6328
6340
|
|
|
6329
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
6341
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/parser.js
|
|
6330
6342
|
var require_parser = __commonJS({
|
|
6331
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
6343
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/parser.js"(exports2) {
|
|
6332
6344
|
"use strict";
|
|
6333
6345
|
var node_process = require("process");
|
|
6334
6346
|
var cst = require_cst();
|
|
@@ -6397,6 +6409,13 @@ var require_parser = __commonJS({
|
|
|
6397
6409
|
}
|
|
6398
6410
|
return prev.splice(i2, prev.length);
|
|
6399
6411
|
}
|
|
6412
|
+
function arrayPushArray(target, source) {
|
|
6413
|
+
if (source.length < 1e5)
|
|
6414
|
+
Array.prototype.push.apply(target, source);
|
|
6415
|
+
else
|
|
6416
|
+
for (let i2 = 0; i2 < source.length; ++i2)
|
|
6417
|
+
target.push(source[i2]);
|
|
6418
|
+
}
|
|
6400
6419
|
function fixFlowSeqItems(fc) {
|
|
6401
6420
|
if (fc.start.type === "flow-seq-start") {
|
|
6402
6421
|
for (const it of fc.items) {
|
|
@@ -6406,11 +6425,11 @@ var require_parser = __commonJS({
|
|
|
6406
6425
|
delete it.key;
|
|
6407
6426
|
if (isFlowToken(it.value)) {
|
|
6408
6427
|
if (it.value.end)
|
|
6409
|
-
|
|
6428
|
+
arrayPushArray(it.value.end, it.sep);
|
|
6410
6429
|
else
|
|
6411
6430
|
it.value.end = it.sep;
|
|
6412
6431
|
} else
|
|
6413
|
-
|
|
6432
|
+
arrayPushArray(it.start, it.sep);
|
|
6414
6433
|
delete it.sep;
|
|
6415
6434
|
}
|
|
6416
6435
|
}
|
|
@@ -6765,7 +6784,7 @@ var require_parser = __commonJS({
|
|
|
6765
6784
|
const prev = map2.items[map2.items.length - 2];
|
|
6766
6785
|
const end = prev?.value?.end;
|
|
6767
6786
|
if (Array.isArray(end)) {
|
|
6768
|
-
|
|
6787
|
+
arrayPushArray(end, it.start);
|
|
6769
6788
|
end.push(this.sourceToken);
|
|
6770
6789
|
map2.items.pop();
|
|
6771
6790
|
return;
|
|
@@ -6953,7 +6972,7 @@ var require_parser = __commonJS({
|
|
|
6953
6972
|
const prev = seq.items[seq.items.length - 2];
|
|
6954
6973
|
const end = prev?.value?.end;
|
|
6955
6974
|
if (Array.isArray(end)) {
|
|
6956
|
-
|
|
6975
|
+
arrayPushArray(end, it.start);
|
|
6957
6976
|
end.push(this.sourceToken);
|
|
6958
6977
|
seq.items.pop();
|
|
6959
6978
|
return;
|
|
@@ -7193,9 +7212,9 @@ var require_parser = __commonJS({
|
|
|
7193
7212
|
}
|
|
7194
7213
|
});
|
|
7195
7214
|
|
|
7196
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
7215
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/public-api.js
|
|
7197
7216
|
var require_public_api = __commonJS({
|
|
7198
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
7217
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/public-api.js"(exports2) {
|
|
7199
7218
|
"use strict";
|
|
7200
7219
|
var composer = require_composer();
|
|
7201
7220
|
var Document = require_Document();
|
|
@@ -7290,9 +7309,9 @@ var require_public_api = __commonJS({
|
|
|
7290
7309
|
}
|
|
7291
7310
|
});
|
|
7292
7311
|
|
|
7293
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
7312
|
+
// ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/index.js
|
|
7294
7313
|
var require_dist = __commonJS({
|
|
7295
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
7314
|
+
"../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/index.js"(exports2) {
|
|
7296
7315
|
"use strict";
|
|
7297
7316
|
var composer = require_composer();
|
|
7298
7317
|
var Document = require_Document();
|
|
@@ -139434,7 +139453,7 @@ function buildInputSchema(args2, env2, options2) {
|
|
|
139434
139453
|
// package.json
|
|
139435
139454
|
var package_default = {
|
|
139436
139455
|
name: "@docyrus/docyrus",
|
|
139437
|
-
version: "0.0
|
|
139456
|
+
version: "0.1.0",
|
|
139438
139457
|
private: false,
|
|
139439
139458
|
description: "Docyrus API CLI",
|
|
139440
139459
|
main: "./main.js",
|
|
@@ -151809,6 +151828,17 @@ function resolveBySlug(label, items, slug) {
|
|
|
151809
151828
|
}
|
|
151810
151829
|
return matchId;
|
|
151811
151830
|
}
|
|
151831
|
+
function resolveSlugById(label, items, id) {
|
|
151832
|
+
const match = items.find((item) => extractString2(item, "id") === id);
|
|
151833
|
+
if (!match) {
|
|
151834
|
+
throw new UserInputError(`${label} id '${id}' was not found.`);
|
|
151835
|
+
}
|
|
151836
|
+
const slug = extractString2(match, "slug");
|
|
151837
|
+
if (!slug) {
|
|
151838
|
+
throw new UserInputError(`${label} id '${id}' has no slug.`);
|
|
151839
|
+
}
|
|
151840
|
+
return slug;
|
|
151841
|
+
}
|
|
151812
151842
|
var StudioResolver = class {
|
|
151813
151843
|
constructor(apiClient) {
|
|
151814
151844
|
this.apiClient = apiClient;
|
|
@@ -151837,6 +151867,30 @@ var StudioResolver = class {
|
|
|
151837
151867
|
const dataSources = await this.getDataSourcesForApp(options2.appId);
|
|
151838
151868
|
return resolveBySlug("Data source", dataSources, dataSourceSlug);
|
|
151839
151869
|
}
|
|
151870
|
+
async resolveAppSlug(options2) {
|
|
151871
|
+
const appId = normalizeOptional2(options2.appId);
|
|
151872
|
+
const appSlug = normalizeOptional2(options2.appSlug);
|
|
151873
|
+
ensureExclusiveSelector("app", appId, appSlug);
|
|
151874
|
+
if (appSlug) {
|
|
151875
|
+
return appSlug;
|
|
151876
|
+
}
|
|
151877
|
+
const apps = await this.#getApps();
|
|
151878
|
+
return resolveSlugById("App", apps, appId);
|
|
151879
|
+
}
|
|
151880
|
+
async resolveDataSourceSlug(options2) {
|
|
151881
|
+
const dataSourceId = normalizeOptional2(options2.dataSourceId);
|
|
151882
|
+
const dataSourceSlug = normalizeOptional2(options2.dataSourceSlug);
|
|
151883
|
+
ensureExclusiveSelector("dataSource", dataSourceId, dataSourceSlug);
|
|
151884
|
+
if (dataSourceSlug) {
|
|
151885
|
+
return dataSourceSlug;
|
|
151886
|
+
}
|
|
151887
|
+
const appId = await this.resolveAppId({
|
|
151888
|
+
appId: options2.appId,
|
|
151889
|
+
appSlug: options2.appSlug
|
|
151890
|
+
});
|
|
151891
|
+
const dataSources = await this.getDataSourcesForApp(appId);
|
|
151892
|
+
return resolveSlugById("Data source", dataSources, dataSourceId);
|
|
151893
|
+
}
|
|
151840
151894
|
async resolveFieldId(options2) {
|
|
151841
151895
|
const fieldId = normalizeOptional2(options2.fieldId);
|
|
151842
151896
|
const fieldSlug = normalizeOptional2(options2.fieldSlug);
|
|
@@ -151941,6 +151995,76 @@ function fieldFlags(options2) {
|
|
|
151941
151995
|
validations: parseOptionalJsonFlag(options2.validations, "--validations")
|
|
151942
151996
|
};
|
|
151943
151997
|
}
|
|
151998
|
+
function dataViewFlags(options2) {
|
|
151999
|
+
return {
|
|
152000
|
+
name: options2.name,
|
|
152001
|
+
description: options2.description,
|
|
152002
|
+
tenant_app_id: options2.tenantAppId,
|
|
152003
|
+
columns: parseOptionalJsonFlag(options2.columns, "--columns"),
|
|
152004
|
+
filters: parseOptionalJsonFlag(options2.filters, "--filters"),
|
|
152005
|
+
sort: parseOptionalJsonFlag(options2.sort, "--sort"),
|
|
152006
|
+
color: options2.color,
|
|
152007
|
+
icon: options2.icon,
|
|
152008
|
+
color_rules: parseOptionalJsonFlag(options2.colorRules, "--colorRules"),
|
|
152009
|
+
quick_filter_fields: parseOptionalJsonFlag(options2.quickFilterFields, "--quickFilterFields"),
|
|
152010
|
+
is_default: options2.isDefault,
|
|
152011
|
+
sort_order: options2.sortOrder,
|
|
152012
|
+
archived: options2.archived
|
|
152013
|
+
};
|
|
152014
|
+
}
|
|
152015
|
+
function formFlags(options2) {
|
|
152016
|
+
return {
|
|
152017
|
+
name: options2.name,
|
|
152018
|
+
description: options2.description,
|
|
152019
|
+
title: options2.title,
|
|
152020
|
+
subtopic: options2.subtopic,
|
|
152021
|
+
color: options2.color,
|
|
152022
|
+
icon: options2.icon,
|
|
152023
|
+
layout: parseOptionalJsonFlag(options2.layout, "--layout"),
|
|
152024
|
+
is_default: options2.isDefault,
|
|
152025
|
+
status: options2.status,
|
|
152026
|
+
archived: options2.archived
|
|
152027
|
+
};
|
|
152028
|
+
}
|
|
152029
|
+
function webformFlags(options2) {
|
|
152030
|
+
return {
|
|
152031
|
+
dataSourceId: options2.dataSourceId,
|
|
152032
|
+
name: options2.name,
|
|
152033
|
+
schema: parseOptionalJsonFlag(options2.schema, "--schema"),
|
|
152034
|
+
status: options2.status,
|
|
152035
|
+
options: parseOptionalJsonFlag(options2.webformOptions, "--webformOptions"),
|
|
152036
|
+
sandbox: options2.sandbox,
|
|
152037
|
+
css: options2.css
|
|
152038
|
+
};
|
|
152039
|
+
}
|
|
152040
|
+
function htmlTemplateFlags(options2) {
|
|
152041
|
+
return {
|
|
152042
|
+
name: options2.name,
|
|
152043
|
+
filename_tmpl: options2.filenameTmpl,
|
|
152044
|
+
page_orientation: options2.pageOrientation,
|
|
152045
|
+
source_type: options2.sourceType,
|
|
152046
|
+
margin_left: options2.marginLeft,
|
|
152047
|
+
margin_right: options2.marginRight,
|
|
152048
|
+
margin_top: options2.marginTop,
|
|
152049
|
+
margin_bottom: options2.marginBottom,
|
|
152050
|
+
page_format: options2.pageFormat,
|
|
152051
|
+
body: options2.body,
|
|
152052
|
+
is_default: options2.isDefault,
|
|
152053
|
+
header_tmpl: options2.headerTmpl,
|
|
152054
|
+
footer_tmpl: options2.footerTmpl,
|
|
152055
|
+
styles: options2.styles,
|
|
152056
|
+
tenant_data_source_id: options2.tenantDataSourceId
|
|
152057
|
+
};
|
|
152058
|
+
}
|
|
152059
|
+
function emailTemplateFlags(options2) {
|
|
152060
|
+
return {
|
|
152061
|
+
name: options2.name,
|
|
152062
|
+
subject: options2.subject,
|
|
152063
|
+
body: options2.body,
|
|
152064
|
+
ownership: options2.ownership,
|
|
152065
|
+
tenant_data_source_id: options2.tenantDataSourceId
|
|
152066
|
+
};
|
|
152067
|
+
}
|
|
151944
152068
|
function requireNonEmptyObject(payload, label) {
|
|
151945
152069
|
if (Object.keys(payload).length === 0) {
|
|
151946
152070
|
throw new UserInputError(`${label} payload is empty. Provide flags, --data, or --from-file.`);
|
|
@@ -152776,6 +152900,880 @@ function createStudioCli(dependencies) {
|
|
|
152776
152900
|
return await wrapStudioPayload(studio.apiBaseUrl, dependencies, response.data);
|
|
152777
152901
|
}
|
|
152778
152902
|
});
|
|
152903
|
+
studioCli.command("list-data-views", {
|
|
152904
|
+
description: "List data source views for a data source",
|
|
152905
|
+
options: external_exports.object({
|
|
152906
|
+
appId: external_exports.string().optional().describe("App ID"),
|
|
152907
|
+
appSlug: external_exports.string().optional().describe("App slug"),
|
|
152908
|
+
dataSourceId: external_exports.string().optional().describe("Data source ID"),
|
|
152909
|
+
dataSourceSlug: external_exports.string().optional().describe("Data source slug"),
|
|
152910
|
+
tenantAppId: external_exports.string().optional().describe("Optional tenant app id to scope the view list")
|
|
152911
|
+
}),
|
|
152912
|
+
run: async (context) => {
|
|
152913
|
+
const studio = await getStudioRunContext(dependencies);
|
|
152914
|
+
const appSlug = await studio.resolver.resolveAppSlug({
|
|
152915
|
+
appId: context.options.appId,
|
|
152916
|
+
appSlug: context.options.appSlug
|
|
152917
|
+
});
|
|
152918
|
+
const dataSourceSlug = await studio.resolver.resolveDataSourceSlug({
|
|
152919
|
+
appId: context.options.appId,
|
|
152920
|
+
appSlug: context.options.appSlug,
|
|
152921
|
+
dataSourceId: context.options.dataSourceId,
|
|
152922
|
+
dataSourceSlug: context.options.dataSourceSlug
|
|
152923
|
+
});
|
|
152924
|
+
const response = await studio.apiClient.request({
|
|
152925
|
+
method: "GET",
|
|
152926
|
+
path: `/apps/${appSlug}/data-sources/${dataSourceSlug}/views`,
|
|
152927
|
+
query: {
|
|
152928
|
+
appId: context.options.tenantAppId
|
|
152929
|
+
}
|
|
152930
|
+
});
|
|
152931
|
+
return await wrapStudioPayload(studio.apiBaseUrl, dependencies, response.data);
|
|
152932
|
+
}
|
|
152933
|
+
});
|
|
152934
|
+
studioCli.command("get-data-view", {
|
|
152935
|
+
description: "Get a single data source view",
|
|
152936
|
+
options: external_exports.object({
|
|
152937
|
+
appId: external_exports.string().optional().describe("App ID"),
|
|
152938
|
+
appSlug: external_exports.string().optional().describe("App slug"),
|
|
152939
|
+
dataSourceId: external_exports.string().optional().describe("Data source ID"),
|
|
152940
|
+
dataSourceSlug: external_exports.string().optional().describe("Data source slug"),
|
|
152941
|
+
viewId: external_exports.string().min(1).describe("Data source view ID")
|
|
152942
|
+
}),
|
|
152943
|
+
run: async (context) => {
|
|
152944
|
+
const studio = await getStudioRunContext(dependencies);
|
|
152945
|
+
const appSlug = await studio.resolver.resolveAppSlug({
|
|
152946
|
+
appId: context.options.appId,
|
|
152947
|
+
appSlug: context.options.appSlug
|
|
152948
|
+
});
|
|
152949
|
+
const dataSourceSlug = await studio.resolver.resolveDataSourceSlug({
|
|
152950
|
+
appId: context.options.appId,
|
|
152951
|
+
appSlug: context.options.appSlug,
|
|
152952
|
+
dataSourceId: context.options.dataSourceId,
|
|
152953
|
+
dataSourceSlug: context.options.dataSourceSlug
|
|
152954
|
+
});
|
|
152955
|
+
const response = await studio.apiClient.request({
|
|
152956
|
+
method: "GET",
|
|
152957
|
+
path: `/apps/${appSlug}/data-sources/${dataSourceSlug}/views/${context.options.viewId}`
|
|
152958
|
+
});
|
|
152959
|
+
return await wrapStudioPayload(studio.apiBaseUrl, dependencies, response.data);
|
|
152960
|
+
}
|
|
152961
|
+
});
|
|
152962
|
+
studioCli.command("create-data-view", {
|
|
152963
|
+
description: "Create a data source view",
|
|
152964
|
+
options: external_exports.object({
|
|
152965
|
+
appId: external_exports.string().optional().describe("App ID"),
|
|
152966
|
+
appSlug: external_exports.string().optional().describe("App slug"),
|
|
152967
|
+
dataSourceId: external_exports.string().optional().describe("Data source ID"),
|
|
152968
|
+
dataSourceSlug: external_exports.string().optional().describe("Data source slug"),
|
|
152969
|
+
data: external_exports.string().optional().describe("JSON payload"),
|
|
152970
|
+
fromFile: external_exports.string().optional().describe("Path to JSON payload file"),
|
|
152971
|
+
name: external_exports.string().optional().describe("View name"),
|
|
152972
|
+
description: external_exports.string().optional().describe("Description"),
|
|
152973
|
+
tenantAppId: external_exports.string().optional().describe("Optional tenant app id"),
|
|
152974
|
+
columns: external_exports.string().optional().describe("JSON columns payload"),
|
|
152975
|
+
filters: external_exports.string().optional().describe("JSON filters payload"),
|
|
152976
|
+
sort: external_exports.string().optional().describe("JSON sort payload"),
|
|
152977
|
+
color: external_exports.string().optional().describe("Color"),
|
|
152978
|
+
icon: external_exports.string().optional().describe("Icon"),
|
|
152979
|
+
colorRules: external_exports.string().optional().describe("JSON color rules payload"),
|
|
152980
|
+
quickFilterFields: external_exports.string().optional().describe("JSON array of quick filter field slugs"),
|
|
152981
|
+
isDefault: external_exports.boolean().optional().describe("Mark as default view"),
|
|
152982
|
+
sortOrder: external_exports.number().optional().describe("Sort order")
|
|
152983
|
+
}),
|
|
152984
|
+
run: async (context) => {
|
|
152985
|
+
const studio = await getStudioRunContext(dependencies);
|
|
152986
|
+
const appSlug = await studio.resolver.resolveAppSlug({
|
|
152987
|
+
appId: context.options.appId,
|
|
152988
|
+
appSlug: context.options.appSlug
|
|
152989
|
+
});
|
|
152990
|
+
const dataSourceSlug = await studio.resolver.resolveDataSourceSlug({
|
|
152991
|
+
appId: context.options.appId,
|
|
152992
|
+
appSlug: context.options.appSlug,
|
|
152993
|
+
dataSourceId: context.options.dataSourceId,
|
|
152994
|
+
dataSourceSlug: context.options.dataSourceSlug
|
|
152995
|
+
});
|
|
152996
|
+
const basePayload = ensureObjectPayload(
|
|
152997
|
+
await readStudioWriteInput({
|
|
152998
|
+
data: context.options.data,
|
|
152999
|
+
fromFile: context.options.fromFile
|
|
153000
|
+
}),
|
|
153001
|
+
"create-data-view"
|
|
153002
|
+
);
|
|
153003
|
+
const payload = mergeObjectWithFlags(basePayload, dataViewFlags(context.options));
|
|
153004
|
+
requireNonEmptyObject(payload, "create-data-view");
|
|
153005
|
+
const response = await studio.apiClient.request({
|
|
153006
|
+
method: "POST",
|
|
153007
|
+
path: `/apps/${appSlug}/data-sources/${dataSourceSlug}/views`,
|
|
153008
|
+
body: payload
|
|
153009
|
+
});
|
|
153010
|
+
return await wrapStudioPayload(studio.apiBaseUrl, dependencies, response.data);
|
|
153011
|
+
}
|
|
153012
|
+
});
|
|
153013
|
+
studioCli.command("update-data-view", {
|
|
153014
|
+
description: "Update an existing data source view",
|
|
153015
|
+
options: external_exports.object({
|
|
153016
|
+
appId: external_exports.string().optional().describe("App ID"),
|
|
153017
|
+
appSlug: external_exports.string().optional().describe("App slug"),
|
|
153018
|
+
dataSourceId: external_exports.string().optional().describe("Data source ID"),
|
|
153019
|
+
dataSourceSlug: external_exports.string().optional().describe("Data source slug"),
|
|
153020
|
+
viewId: external_exports.string().min(1).describe("Data source view ID"),
|
|
153021
|
+
data: external_exports.string().optional().describe("JSON payload"),
|
|
153022
|
+
fromFile: external_exports.string().optional().describe("Path to JSON payload file"),
|
|
153023
|
+
name: external_exports.string().optional().describe("View name"),
|
|
153024
|
+
description: external_exports.string().optional().describe("Description"),
|
|
153025
|
+
tenantAppId: external_exports.string().optional().describe("Optional tenant app id"),
|
|
153026
|
+
columns: external_exports.string().optional().describe("JSON columns payload"),
|
|
153027
|
+
filters: external_exports.string().optional().describe("JSON filters payload"),
|
|
153028
|
+
sort: external_exports.string().optional().describe("JSON sort payload"),
|
|
153029
|
+
color: external_exports.string().optional().describe("Color"),
|
|
153030
|
+
icon: external_exports.string().optional().describe("Icon"),
|
|
153031
|
+
colorRules: external_exports.string().optional().describe("JSON color rules payload"),
|
|
153032
|
+
quickFilterFields: external_exports.string().optional().describe("JSON array of quick filter field slugs"),
|
|
153033
|
+
isDefault: external_exports.boolean().optional().describe("Mark as default view"),
|
|
153034
|
+
sortOrder: external_exports.number().optional().describe("Sort order"),
|
|
153035
|
+
archived: external_exports.boolean().optional().describe("Archive flag")
|
|
153036
|
+
}),
|
|
153037
|
+
run: async (context) => {
|
|
153038
|
+
const studio = await getStudioRunContext(dependencies);
|
|
153039
|
+
const appSlug = await studio.resolver.resolveAppSlug({
|
|
153040
|
+
appId: context.options.appId,
|
|
153041
|
+
appSlug: context.options.appSlug
|
|
153042
|
+
});
|
|
153043
|
+
const dataSourceSlug = await studio.resolver.resolveDataSourceSlug({
|
|
153044
|
+
appId: context.options.appId,
|
|
153045
|
+
appSlug: context.options.appSlug,
|
|
153046
|
+
dataSourceId: context.options.dataSourceId,
|
|
153047
|
+
dataSourceSlug: context.options.dataSourceSlug
|
|
153048
|
+
});
|
|
153049
|
+
const basePayload = ensureObjectPayload(
|
|
153050
|
+
await readStudioWriteInput({
|
|
153051
|
+
data: context.options.data,
|
|
153052
|
+
fromFile: context.options.fromFile
|
|
153053
|
+
}),
|
|
153054
|
+
"update-data-view"
|
|
153055
|
+
);
|
|
153056
|
+
const payload = mergeObjectWithFlags(basePayload, dataViewFlags(context.options));
|
|
153057
|
+
requireNonEmptyObject(payload, "update-data-view");
|
|
153058
|
+
const response = await studio.apiClient.request({
|
|
153059
|
+
method: "PUT",
|
|
153060
|
+
path: `/apps/${appSlug}/data-sources/${dataSourceSlug}/views/${context.options.viewId}`,
|
|
153061
|
+
body: payload
|
|
153062
|
+
});
|
|
153063
|
+
return await wrapStudioPayload(studio.apiBaseUrl, dependencies, response.data);
|
|
153064
|
+
}
|
|
153065
|
+
});
|
|
153066
|
+
studioCli.command("delete-data-view", {
|
|
153067
|
+
description: "Delete a data source view",
|
|
153068
|
+
options: external_exports.object({
|
|
153069
|
+
appId: external_exports.string().optional().describe("App ID"),
|
|
153070
|
+
appSlug: external_exports.string().optional().describe("App slug"),
|
|
153071
|
+
dataSourceId: external_exports.string().optional().describe("Data source ID"),
|
|
153072
|
+
dataSourceSlug: external_exports.string().optional().describe("Data source slug"),
|
|
153073
|
+
viewId: external_exports.string().min(1).describe("Data source view ID")
|
|
153074
|
+
}),
|
|
153075
|
+
run: async (context) => {
|
|
153076
|
+
const studio = await getStudioRunContext(dependencies);
|
|
153077
|
+
const appSlug = await studio.resolver.resolveAppSlug({
|
|
153078
|
+
appId: context.options.appId,
|
|
153079
|
+
appSlug: context.options.appSlug
|
|
153080
|
+
});
|
|
153081
|
+
const dataSourceSlug = await studio.resolver.resolveDataSourceSlug({
|
|
153082
|
+
appId: context.options.appId,
|
|
153083
|
+
appSlug: context.options.appSlug,
|
|
153084
|
+
dataSourceId: context.options.dataSourceId,
|
|
153085
|
+
dataSourceSlug: context.options.dataSourceSlug
|
|
153086
|
+
});
|
|
153087
|
+
const response = await studio.apiClient.request({
|
|
153088
|
+
method: "DELETE",
|
|
153089
|
+
path: `/apps/${appSlug}/data-sources/${dataSourceSlug}/views/${context.options.viewId}`
|
|
153090
|
+
});
|
|
153091
|
+
return await wrapStudioPayload(studio.apiBaseUrl, dependencies, response.data);
|
|
153092
|
+
}
|
|
153093
|
+
});
|
|
153094
|
+
studioCli.command("list-forms", {
|
|
153095
|
+
description: "List forms for a data source",
|
|
153096
|
+
options: external_exports.object({
|
|
153097
|
+
appId: external_exports.string().optional().describe("App ID"),
|
|
153098
|
+
appSlug: external_exports.string().optional().describe("App slug"),
|
|
153099
|
+
dataSourceId: external_exports.string().optional().describe("Data source ID"),
|
|
153100
|
+
dataSourceSlug: external_exports.string().optional().describe("Data source slug")
|
|
153101
|
+
}),
|
|
153102
|
+
run: async (context) => {
|
|
153103
|
+
const studio = await getStudioRunContext(dependencies);
|
|
153104
|
+
const appSlug = await studio.resolver.resolveAppSlug({
|
|
153105
|
+
appId: context.options.appId,
|
|
153106
|
+
appSlug: context.options.appSlug
|
|
153107
|
+
});
|
|
153108
|
+
const dataSourceSlug = await studio.resolver.resolveDataSourceSlug({
|
|
153109
|
+
appId: context.options.appId,
|
|
153110
|
+
appSlug: context.options.appSlug,
|
|
153111
|
+
dataSourceId: context.options.dataSourceId,
|
|
153112
|
+
dataSourceSlug: context.options.dataSourceSlug
|
|
153113
|
+
});
|
|
153114
|
+
const response = await studio.apiClient.request({
|
|
153115
|
+
method: "GET",
|
|
153116
|
+
path: `/apps/${appSlug}/data-sources/${dataSourceSlug}/forms`
|
|
153117
|
+
});
|
|
153118
|
+
return await wrapStudioPayload(studio.apiBaseUrl, dependencies, response.data);
|
|
153119
|
+
}
|
|
153120
|
+
});
|
|
153121
|
+
studioCli.command("get-form", {
|
|
153122
|
+
description: "Get a single form",
|
|
153123
|
+
options: external_exports.object({
|
|
153124
|
+
appId: external_exports.string().optional().describe("App ID"),
|
|
153125
|
+
appSlug: external_exports.string().optional().describe("App slug"),
|
|
153126
|
+
dataSourceId: external_exports.string().optional().describe("Data source ID"),
|
|
153127
|
+
dataSourceSlug: external_exports.string().optional().describe("Data source slug"),
|
|
153128
|
+
formId: external_exports.string().min(1).describe("Form ID")
|
|
153129
|
+
}),
|
|
153130
|
+
run: async (context) => {
|
|
153131
|
+
const studio = await getStudioRunContext(dependencies);
|
|
153132
|
+
const appSlug = await studio.resolver.resolveAppSlug({
|
|
153133
|
+
appId: context.options.appId,
|
|
153134
|
+
appSlug: context.options.appSlug
|
|
153135
|
+
});
|
|
153136
|
+
const dataSourceSlug = await studio.resolver.resolveDataSourceSlug({
|
|
153137
|
+
appId: context.options.appId,
|
|
153138
|
+
appSlug: context.options.appSlug,
|
|
153139
|
+
dataSourceId: context.options.dataSourceId,
|
|
153140
|
+
dataSourceSlug: context.options.dataSourceSlug
|
|
153141
|
+
});
|
|
153142
|
+
const response = await studio.apiClient.request({
|
|
153143
|
+
method: "GET",
|
|
153144
|
+
path: `/apps/${appSlug}/data-sources/${dataSourceSlug}/forms/${context.options.formId}`
|
|
153145
|
+
});
|
|
153146
|
+
return await wrapStudioPayload(studio.apiBaseUrl, dependencies, response.data);
|
|
153147
|
+
}
|
|
153148
|
+
});
|
|
153149
|
+
studioCli.command("create-form", {
|
|
153150
|
+
description: "Create a form for a data source",
|
|
153151
|
+
options: external_exports.object({
|
|
153152
|
+
appId: external_exports.string().optional().describe("App ID"),
|
|
153153
|
+
appSlug: external_exports.string().optional().describe("App slug"),
|
|
153154
|
+
dataSourceId: external_exports.string().optional().describe("Data source ID"),
|
|
153155
|
+
dataSourceSlug: external_exports.string().optional().describe("Data source slug"),
|
|
153156
|
+
data: external_exports.string().optional().describe("JSON payload"),
|
|
153157
|
+
fromFile: external_exports.string().optional().describe("Path to JSON payload file"),
|
|
153158
|
+
name: external_exports.string().optional().describe("Form name"),
|
|
153159
|
+
description: external_exports.string().optional().describe("Description"),
|
|
153160
|
+
title: external_exports.string().optional().describe("Title"),
|
|
153161
|
+
subtopic: external_exports.string().optional().describe("Subtopic"),
|
|
153162
|
+
color: external_exports.string().optional().describe("Color"),
|
|
153163
|
+
icon: external_exports.string().optional().describe("Icon"),
|
|
153164
|
+
layout: external_exports.string().optional().describe("JSON layout payload"),
|
|
153165
|
+
isDefault: external_exports.boolean().optional().describe("Mark as default form"),
|
|
153166
|
+
status: external_exports.number().optional().describe("Form status")
|
|
153167
|
+
}),
|
|
153168
|
+
run: async (context) => {
|
|
153169
|
+
const studio = await getStudioRunContext(dependencies);
|
|
153170
|
+
const appSlug = await studio.resolver.resolveAppSlug({
|
|
153171
|
+
appId: context.options.appId,
|
|
153172
|
+
appSlug: context.options.appSlug
|
|
153173
|
+
});
|
|
153174
|
+
const dataSourceSlug = await studio.resolver.resolveDataSourceSlug({
|
|
153175
|
+
appId: context.options.appId,
|
|
153176
|
+
appSlug: context.options.appSlug,
|
|
153177
|
+
dataSourceId: context.options.dataSourceId,
|
|
153178
|
+
dataSourceSlug: context.options.dataSourceSlug
|
|
153179
|
+
});
|
|
153180
|
+
const basePayload = ensureObjectPayload(
|
|
153181
|
+
await readStudioWriteInput({
|
|
153182
|
+
data: context.options.data,
|
|
153183
|
+
fromFile: context.options.fromFile
|
|
153184
|
+
}),
|
|
153185
|
+
"create-form"
|
|
153186
|
+
);
|
|
153187
|
+
const payload = mergeObjectWithFlags(basePayload, formFlags(context.options));
|
|
153188
|
+
requireNonEmptyObject(payload, "create-form");
|
|
153189
|
+
const response = await studio.apiClient.request({
|
|
153190
|
+
method: "POST",
|
|
153191
|
+
path: `/apps/${appSlug}/data-sources/${dataSourceSlug}/forms`,
|
|
153192
|
+
body: payload
|
|
153193
|
+
});
|
|
153194
|
+
return await wrapStudioPayload(studio.apiBaseUrl, dependencies, response.data);
|
|
153195
|
+
}
|
|
153196
|
+
});
|
|
153197
|
+
studioCli.command("update-form", {
|
|
153198
|
+
description: "Update an existing form",
|
|
153199
|
+
options: external_exports.object({
|
|
153200
|
+
appId: external_exports.string().optional().describe("App ID"),
|
|
153201
|
+
appSlug: external_exports.string().optional().describe("App slug"),
|
|
153202
|
+
dataSourceId: external_exports.string().optional().describe("Data source ID"),
|
|
153203
|
+
dataSourceSlug: external_exports.string().optional().describe("Data source slug"),
|
|
153204
|
+
formId: external_exports.string().min(1).describe("Form ID"),
|
|
153205
|
+
data: external_exports.string().optional().describe("JSON payload"),
|
|
153206
|
+
fromFile: external_exports.string().optional().describe("Path to JSON payload file"),
|
|
153207
|
+
name: external_exports.string().optional().describe("Form name"),
|
|
153208
|
+
description: external_exports.string().optional().describe("Description"),
|
|
153209
|
+
title: external_exports.string().optional().describe("Title"),
|
|
153210
|
+
subtopic: external_exports.string().optional().describe("Subtopic"),
|
|
153211
|
+
color: external_exports.string().optional().describe("Color"),
|
|
153212
|
+
icon: external_exports.string().optional().describe("Icon"),
|
|
153213
|
+
layout: external_exports.string().optional().describe("JSON layout payload"),
|
|
153214
|
+
isDefault: external_exports.boolean().optional().describe("Mark as default form"),
|
|
153215
|
+
status: external_exports.number().optional().describe("Form status"),
|
|
153216
|
+
archived: external_exports.boolean().optional().describe("Archive flag")
|
|
153217
|
+
}),
|
|
153218
|
+
run: async (context) => {
|
|
153219
|
+
const studio = await getStudioRunContext(dependencies);
|
|
153220
|
+
const appSlug = await studio.resolver.resolveAppSlug({
|
|
153221
|
+
appId: context.options.appId,
|
|
153222
|
+
appSlug: context.options.appSlug
|
|
153223
|
+
});
|
|
153224
|
+
const dataSourceSlug = await studio.resolver.resolveDataSourceSlug({
|
|
153225
|
+
appId: context.options.appId,
|
|
153226
|
+
appSlug: context.options.appSlug,
|
|
153227
|
+
dataSourceId: context.options.dataSourceId,
|
|
153228
|
+
dataSourceSlug: context.options.dataSourceSlug
|
|
153229
|
+
});
|
|
153230
|
+
const basePayload = ensureObjectPayload(
|
|
153231
|
+
await readStudioWriteInput({
|
|
153232
|
+
data: context.options.data,
|
|
153233
|
+
fromFile: context.options.fromFile
|
|
153234
|
+
}),
|
|
153235
|
+
"update-form"
|
|
153236
|
+
);
|
|
153237
|
+
const payload = mergeObjectWithFlags(basePayload, formFlags(context.options));
|
|
153238
|
+
requireNonEmptyObject(payload, "update-form");
|
|
153239
|
+
const response = await studio.apiClient.request({
|
|
153240
|
+
method: "PUT",
|
|
153241
|
+
path: `/apps/${appSlug}/data-sources/${dataSourceSlug}/forms/${context.options.formId}`,
|
|
153242
|
+
body: payload
|
|
153243
|
+
});
|
|
153244
|
+
return await wrapStudioPayload(studio.apiBaseUrl, dependencies, response.data);
|
|
153245
|
+
}
|
|
153246
|
+
});
|
|
153247
|
+
studioCli.command("delete-form", {
|
|
153248
|
+
description: "Delete a form",
|
|
153249
|
+
options: external_exports.object({
|
|
153250
|
+
appId: external_exports.string().optional().describe("App ID"),
|
|
153251
|
+
appSlug: external_exports.string().optional().describe("App slug"),
|
|
153252
|
+
dataSourceId: external_exports.string().optional().describe("Data source ID"),
|
|
153253
|
+
dataSourceSlug: external_exports.string().optional().describe("Data source slug"),
|
|
153254
|
+
formId: external_exports.string().min(1).describe("Form ID")
|
|
153255
|
+
}),
|
|
153256
|
+
run: async (context) => {
|
|
153257
|
+
const studio = await getStudioRunContext(dependencies);
|
|
153258
|
+
const appSlug = await studio.resolver.resolveAppSlug({
|
|
153259
|
+
appId: context.options.appId,
|
|
153260
|
+
appSlug: context.options.appSlug
|
|
153261
|
+
});
|
|
153262
|
+
const dataSourceSlug = await studio.resolver.resolveDataSourceSlug({
|
|
153263
|
+
appId: context.options.appId,
|
|
153264
|
+
appSlug: context.options.appSlug,
|
|
153265
|
+
dataSourceId: context.options.dataSourceId,
|
|
153266
|
+
dataSourceSlug: context.options.dataSourceSlug
|
|
153267
|
+
});
|
|
153268
|
+
const response = await studio.apiClient.request({
|
|
153269
|
+
method: "DELETE",
|
|
153270
|
+
path: `/apps/${appSlug}/data-sources/${dataSourceSlug}/forms/${context.options.formId}`
|
|
153271
|
+
});
|
|
153272
|
+
return await wrapStudioPayload(studio.apiBaseUrl, dependencies, response.data);
|
|
153273
|
+
}
|
|
153274
|
+
});
|
|
153275
|
+
studioCli.command("list-webforms", {
|
|
153276
|
+
description: "List webforms, optionally filtered by data source",
|
|
153277
|
+
options: external_exports.object({
|
|
153278
|
+
appId: external_exports.string().optional().describe("Optional app ID used to resolve --dataSourceSlug"),
|
|
153279
|
+
appSlug: external_exports.string().optional().describe("Optional app slug used to resolve --dataSourceSlug"),
|
|
153280
|
+
dataSourceId: external_exports.string().optional().describe("Filter by data source ID"),
|
|
153281
|
+
dataSourceSlug: external_exports.string().optional().describe("Filter by data source slug (requires --appId or --appSlug)")
|
|
153282
|
+
}),
|
|
153283
|
+
run: async (context) => {
|
|
153284
|
+
const studio = await getStudioRunContext(dependencies);
|
|
153285
|
+
let dataSourceId;
|
|
153286
|
+
const hasDataSourceSelector = Boolean(context.options.dataSourceId ?? context.options.dataSourceSlug);
|
|
153287
|
+
if (hasDataSourceSelector) {
|
|
153288
|
+
const appId = await studio.resolver.resolveAppId({
|
|
153289
|
+
appId: context.options.appId,
|
|
153290
|
+
appSlug: context.options.appSlug
|
|
153291
|
+
});
|
|
153292
|
+
dataSourceId = await studio.resolver.resolveDataSourceId({
|
|
153293
|
+
appId,
|
|
153294
|
+
dataSourceId: context.options.dataSourceId,
|
|
153295
|
+
dataSourceSlug: context.options.dataSourceSlug
|
|
153296
|
+
});
|
|
153297
|
+
}
|
|
153298
|
+
const response = await studio.apiClient.request({
|
|
153299
|
+
method: "GET",
|
|
153300
|
+
path: "/dev/webforms",
|
|
153301
|
+
query: {
|
|
153302
|
+
dataSourceId
|
|
153303
|
+
}
|
|
153304
|
+
});
|
|
153305
|
+
return await wrapStudioPayload(studio.apiBaseUrl, dependencies, response.data);
|
|
153306
|
+
}
|
|
153307
|
+
});
|
|
153308
|
+
studioCli.command("get-webform", {
|
|
153309
|
+
description: "Get a single webform",
|
|
153310
|
+
options: external_exports.object({
|
|
153311
|
+
webformId: external_exports.string().min(1).describe("Webform ID")
|
|
153312
|
+
}),
|
|
153313
|
+
run: async (context) => {
|
|
153314
|
+
const studio = await getStudioRunContext(dependencies);
|
|
153315
|
+
const response = await studio.apiClient.request({
|
|
153316
|
+
method: "GET",
|
|
153317
|
+
path: `/dev/webforms/${context.options.webformId}`
|
|
153318
|
+
});
|
|
153319
|
+
return await wrapStudioPayload(studio.apiBaseUrl, dependencies, response.data);
|
|
153320
|
+
}
|
|
153321
|
+
});
|
|
153322
|
+
studioCli.command("create-webform", {
|
|
153323
|
+
description: "Create a webform",
|
|
153324
|
+
options: external_exports.object({
|
|
153325
|
+
appId: external_exports.string().optional().describe("Optional app ID used to resolve --dataSourceSlug"),
|
|
153326
|
+
appSlug: external_exports.string().optional().describe("Optional app slug used to resolve --dataSourceSlug"),
|
|
153327
|
+
data: external_exports.string().optional().describe("JSON payload"),
|
|
153328
|
+
fromFile: external_exports.string().optional().describe("Path to JSON payload file"),
|
|
153329
|
+
dataSourceId: external_exports.string().optional().describe("Data source ID to bind the webform to"),
|
|
153330
|
+
dataSourceSlug: external_exports.string().optional().describe("Data source slug (requires --appId or --appSlug)"),
|
|
153331
|
+
name: external_exports.string().optional().describe("Webform name"),
|
|
153332
|
+
schema: external_exports.string().optional().describe("JSON schema payload"),
|
|
153333
|
+
status: external_exports.number().optional().describe("Status (1 active, 2 inactive)"),
|
|
153334
|
+
webformOptions: external_exports.string().optional().describe("JSON options payload"),
|
|
153335
|
+
sandbox: external_exports.boolean().optional().describe("Sandbox flag"),
|
|
153336
|
+
css: external_exports.string().optional().describe("Custom CSS")
|
|
153337
|
+
}),
|
|
153338
|
+
run: async (context) => {
|
|
153339
|
+
const studio = await getStudioRunContext(dependencies);
|
|
153340
|
+
let resolvedDataSourceId = context.options.dataSourceId;
|
|
153341
|
+
if (context.options.dataSourceSlug) {
|
|
153342
|
+
const appId = await studio.resolver.resolveAppId({
|
|
153343
|
+
appId: context.options.appId,
|
|
153344
|
+
appSlug: context.options.appSlug
|
|
153345
|
+
});
|
|
153346
|
+
resolvedDataSourceId = await studio.resolver.resolveDataSourceId({
|
|
153347
|
+
appId,
|
|
153348
|
+
dataSourceId: context.options.dataSourceId,
|
|
153349
|
+
dataSourceSlug: context.options.dataSourceSlug
|
|
153350
|
+
});
|
|
153351
|
+
}
|
|
153352
|
+
const basePayload = ensureObjectPayload(
|
|
153353
|
+
await readStudioWriteInput({
|
|
153354
|
+
data: context.options.data,
|
|
153355
|
+
fromFile: context.options.fromFile
|
|
153356
|
+
}),
|
|
153357
|
+
"create-webform"
|
|
153358
|
+
);
|
|
153359
|
+
const payload = mergeObjectWithFlags(
|
|
153360
|
+
basePayload,
|
|
153361
|
+
webformFlags({
|
|
153362
|
+
...context.options,
|
|
153363
|
+
dataSourceId: resolvedDataSourceId
|
|
153364
|
+
})
|
|
153365
|
+
);
|
|
153366
|
+
requireNonEmptyObject(payload, "create-webform");
|
|
153367
|
+
const response = await studio.apiClient.request({
|
|
153368
|
+
method: "POST",
|
|
153369
|
+
path: "/dev/webforms",
|
|
153370
|
+
body: payload
|
|
153371
|
+
});
|
|
153372
|
+
return await wrapStudioPayload(studio.apiBaseUrl, dependencies, response.data);
|
|
153373
|
+
}
|
|
153374
|
+
});
|
|
153375
|
+
studioCli.command("update-webform", {
|
|
153376
|
+
description: "Update an existing webform",
|
|
153377
|
+
options: external_exports.object({
|
|
153378
|
+
webformId: external_exports.string().min(1).describe("Webform ID"),
|
|
153379
|
+
data: external_exports.string().optional().describe("JSON payload"),
|
|
153380
|
+
fromFile: external_exports.string().optional().describe("Path to JSON payload file"),
|
|
153381
|
+
name: external_exports.string().optional().describe("Webform name"),
|
|
153382
|
+
schema: external_exports.string().optional().describe("JSON schema payload"),
|
|
153383
|
+
status: external_exports.number().optional().describe("Status (1 active, 2 inactive)"),
|
|
153384
|
+
webformOptions: external_exports.string().optional().describe("JSON options payload"),
|
|
153385
|
+
sandbox: external_exports.boolean().optional().describe("Sandbox flag"),
|
|
153386
|
+
css: external_exports.string().optional().describe("Custom CSS")
|
|
153387
|
+
}),
|
|
153388
|
+
run: async (context) => {
|
|
153389
|
+
const studio = await getStudioRunContext(dependencies);
|
|
153390
|
+
const basePayload = ensureObjectPayload(
|
|
153391
|
+
await readStudioWriteInput({
|
|
153392
|
+
data: context.options.data,
|
|
153393
|
+
fromFile: context.options.fromFile
|
|
153394
|
+
}),
|
|
153395
|
+
"update-webform"
|
|
153396
|
+
);
|
|
153397
|
+
const payload = mergeObjectWithFlags(basePayload, webformFlags(context.options));
|
|
153398
|
+
requireNonEmptyObject(payload, "update-webform");
|
|
153399
|
+
const response = await studio.apiClient.request({
|
|
153400
|
+
method: "PATCH",
|
|
153401
|
+
path: `/dev/webforms/${context.options.webformId}`,
|
|
153402
|
+
body: payload
|
|
153403
|
+
});
|
|
153404
|
+
return await wrapStudioPayload(studio.apiBaseUrl, dependencies, response.data);
|
|
153405
|
+
}
|
|
153406
|
+
});
|
|
153407
|
+
studioCli.command("delete-webform", {
|
|
153408
|
+
description: "Delete a webform",
|
|
153409
|
+
options: external_exports.object({
|
|
153410
|
+
webformId: external_exports.string().min(1).describe("Webform ID")
|
|
153411
|
+
}),
|
|
153412
|
+
run: async (context) => {
|
|
153413
|
+
const studio = await getStudioRunContext(dependencies);
|
|
153414
|
+
const response = await studio.apiClient.request({
|
|
153415
|
+
method: "DELETE",
|
|
153416
|
+
path: `/dev/webforms/${context.options.webformId}`
|
|
153417
|
+
});
|
|
153418
|
+
return await wrapStudioPayload(studio.apiBaseUrl, dependencies, response.data);
|
|
153419
|
+
}
|
|
153420
|
+
});
|
|
153421
|
+
studioCli.command("list-html-templates", {
|
|
153422
|
+
description: "List HTML/PDF/DOCX export templates",
|
|
153423
|
+
options: external_exports.object({
|
|
153424
|
+
appId: external_exports.string().optional().describe("Optional app ID used to resolve --dataSourceSlug"),
|
|
153425
|
+
appSlug: external_exports.string().optional().describe("Optional app slug used to resolve --dataSourceSlug"),
|
|
153426
|
+
dataSourceId: external_exports.string().optional().describe("Filter by data source ID"),
|
|
153427
|
+
dataSourceSlug: external_exports.string().optional().describe("Filter by data source slug (requires --appId or --appSlug)"),
|
|
153428
|
+
isDefault: external_exports.boolean().optional().describe("Filter by default flag"),
|
|
153429
|
+
limit: external_exports.coerce.number().int().min(1).max(1e3).optional().describe("Page size (default 100)"),
|
|
153430
|
+
offset: external_exports.coerce.number().int().min(0).optional().describe("Page offset (default 0)")
|
|
153431
|
+
}),
|
|
153432
|
+
run: async (context) => {
|
|
153433
|
+
const studio = await getStudioRunContext(dependencies);
|
|
153434
|
+
let tenantDataSourceId;
|
|
153435
|
+
if (context.options.dataSourceId ?? context.options.dataSourceSlug) {
|
|
153436
|
+
const appId = await studio.resolver.resolveAppId({
|
|
153437
|
+
appId: context.options.appId,
|
|
153438
|
+
appSlug: context.options.appSlug
|
|
153439
|
+
});
|
|
153440
|
+
tenantDataSourceId = await studio.resolver.resolveDataSourceId({
|
|
153441
|
+
appId,
|
|
153442
|
+
dataSourceId: context.options.dataSourceId,
|
|
153443
|
+
dataSourceSlug: context.options.dataSourceSlug
|
|
153444
|
+
});
|
|
153445
|
+
}
|
|
153446
|
+
const response = await studio.apiClient.request({
|
|
153447
|
+
method: "GET",
|
|
153448
|
+
path: "/dev/html-templates",
|
|
153449
|
+
query: {
|
|
153450
|
+
tenantDataSourceId,
|
|
153451
|
+
isDefault: context.options.isDefault,
|
|
153452
|
+
limit: context.options.limit,
|
|
153453
|
+
offset: context.options.offset
|
|
153454
|
+
}
|
|
153455
|
+
});
|
|
153456
|
+
return await wrapStudioPayload(studio.apiBaseUrl, dependencies, response.data);
|
|
153457
|
+
}
|
|
153458
|
+
});
|
|
153459
|
+
studioCli.command("get-html-template", {
|
|
153460
|
+
description: "Get a single HTML template",
|
|
153461
|
+
options: external_exports.object({
|
|
153462
|
+
templateId: external_exports.string().min(1).describe("HTML template ID")
|
|
153463
|
+
}),
|
|
153464
|
+
run: async (context) => {
|
|
153465
|
+
const studio = await getStudioRunContext(dependencies);
|
|
153466
|
+
const response = await studio.apiClient.request({
|
|
153467
|
+
method: "GET",
|
|
153468
|
+
path: `/dev/html-templates/${context.options.templateId}`
|
|
153469
|
+
});
|
|
153470
|
+
return await wrapStudioPayload(studio.apiBaseUrl, dependencies, response.data);
|
|
153471
|
+
}
|
|
153472
|
+
});
|
|
153473
|
+
studioCli.command("create-html-template", {
|
|
153474
|
+
description: "Create an HTML/PDF/DOCX export template",
|
|
153475
|
+
options: external_exports.object({
|
|
153476
|
+
appId: external_exports.string().optional().describe("Optional app ID used to resolve --dataSourceSlug"),
|
|
153477
|
+
appSlug: external_exports.string().optional().describe("Optional app slug used to resolve --dataSourceSlug"),
|
|
153478
|
+
dataSourceId: external_exports.string().optional().describe("Data source ID this template binds to"),
|
|
153479
|
+
dataSourceSlug: external_exports.string().optional().describe("Data source slug (requires --appId or --appSlug)"),
|
|
153480
|
+
data: external_exports.string().optional().describe("JSON payload"),
|
|
153481
|
+
fromFile: external_exports.string().optional().describe("Path to JSON payload file"),
|
|
153482
|
+
name: external_exports.string().optional().describe("Template name"),
|
|
153483
|
+
filenameTmpl: external_exports.string().optional().describe("Filename template"),
|
|
153484
|
+
pageOrientation: external_exports.string().optional().describe("Page orientation"),
|
|
153485
|
+
sourceType: external_exports.string().optional().describe("Source type (html, pdf, docx, ...)"),
|
|
153486
|
+
marginLeft: external_exports.coerce.number().optional().describe("Left margin"),
|
|
153487
|
+
marginRight: external_exports.coerce.number().optional().describe("Right margin"),
|
|
153488
|
+
marginTop: external_exports.coerce.number().optional().describe("Top margin"),
|
|
153489
|
+
marginBottom: external_exports.coerce.number().optional().describe("Bottom margin"),
|
|
153490
|
+
pageFormat: external_exports.string().optional().describe("Page format (A4, Letter, ...)"),
|
|
153491
|
+
body: external_exports.string().optional().describe("HTML body"),
|
|
153492
|
+
isDefault: external_exports.boolean().optional().describe("Mark as default template"),
|
|
153493
|
+
headerTmpl: external_exports.string().optional().describe("Header template"),
|
|
153494
|
+
footerTmpl: external_exports.string().optional().describe("Footer template"),
|
|
153495
|
+
styles: external_exports.string().optional().describe("Inline CSS styles")
|
|
153496
|
+
}),
|
|
153497
|
+
run: async (context) => {
|
|
153498
|
+
const studio = await getStudioRunContext(dependencies);
|
|
153499
|
+
let resolvedDataSourceId = context.options.dataSourceId;
|
|
153500
|
+
if (context.options.dataSourceSlug) {
|
|
153501
|
+
const appId = await studio.resolver.resolveAppId({
|
|
153502
|
+
appId: context.options.appId,
|
|
153503
|
+
appSlug: context.options.appSlug
|
|
153504
|
+
});
|
|
153505
|
+
resolvedDataSourceId = await studio.resolver.resolveDataSourceId({
|
|
153506
|
+
appId,
|
|
153507
|
+
dataSourceId: context.options.dataSourceId,
|
|
153508
|
+
dataSourceSlug: context.options.dataSourceSlug
|
|
153509
|
+
});
|
|
153510
|
+
}
|
|
153511
|
+
const basePayload = ensureObjectPayload(
|
|
153512
|
+
await readStudioWriteInput({
|
|
153513
|
+
data: context.options.data,
|
|
153514
|
+
fromFile: context.options.fromFile
|
|
153515
|
+
}),
|
|
153516
|
+
"create-html-template"
|
|
153517
|
+
);
|
|
153518
|
+
const payload = mergeObjectWithFlags(
|
|
153519
|
+
basePayload,
|
|
153520
|
+
htmlTemplateFlags({
|
|
153521
|
+
...context.options,
|
|
153522
|
+
tenantDataSourceId: resolvedDataSourceId
|
|
153523
|
+
})
|
|
153524
|
+
);
|
|
153525
|
+
requireNonEmptyObject(payload, "create-html-template");
|
|
153526
|
+
const response = await studio.apiClient.request({
|
|
153527
|
+
method: "POST",
|
|
153528
|
+
path: "/dev/html-templates",
|
|
153529
|
+
body: payload
|
|
153530
|
+
});
|
|
153531
|
+
return await wrapStudioPayload(studio.apiBaseUrl, dependencies, response.data);
|
|
153532
|
+
}
|
|
153533
|
+
});
|
|
153534
|
+
studioCli.command("update-html-template", {
|
|
153535
|
+
description: "Update an HTML template",
|
|
153536
|
+
options: external_exports.object({
|
|
153537
|
+
templateId: external_exports.string().min(1).describe("HTML template ID"),
|
|
153538
|
+
appId: external_exports.string().optional().describe("Optional app ID used to resolve --dataSourceSlug"),
|
|
153539
|
+
appSlug: external_exports.string().optional().describe("Optional app slug used to resolve --dataSourceSlug"),
|
|
153540
|
+
dataSourceId: external_exports.string().optional().describe("Data source ID this template binds to"),
|
|
153541
|
+
dataSourceSlug: external_exports.string().optional().describe("Data source slug (requires --appId or --appSlug)"),
|
|
153542
|
+
data: external_exports.string().optional().describe("JSON payload"),
|
|
153543
|
+
fromFile: external_exports.string().optional().describe("Path to JSON payload file"),
|
|
153544
|
+
name: external_exports.string().optional().describe("Template name"),
|
|
153545
|
+
filenameTmpl: external_exports.string().optional().describe("Filename template"),
|
|
153546
|
+
pageOrientation: external_exports.string().optional().describe("Page orientation"),
|
|
153547
|
+
sourceType: external_exports.string().optional().describe("Source type (html, pdf, docx, ...)"),
|
|
153548
|
+
marginLeft: external_exports.coerce.number().optional().describe("Left margin"),
|
|
153549
|
+
marginRight: external_exports.coerce.number().optional().describe("Right margin"),
|
|
153550
|
+
marginTop: external_exports.coerce.number().optional().describe("Top margin"),
|
|
153551
|
+
marginBottom: external_exports.coerce.number().optional().describe("Bottom margin"),
|
|
153552
|
+
pageFormat: external_exports.string().optional().describe("Page format (A4, Letter, ...)"),
|
|
153553
|
+
body: external_exports.string().optional().describe("HTML body"),
|
|
153554
|
+
isDefault: external_exports.boolean().optional().describe("Mark as default template"),
|
|
153555
|
+
headerTmpl: external_exports.string().optional().describe("Header template"),
|
|
153556
|
+
footerTmpl: external_exports.string().optional().describe("Footer template"),
|
|
153557
|
+
styles: external_exports.string().optional().describe("Inline CSS styles")
|
|
153558
|
+
}),
|
|
153559
|
+
run: async (context) => {
|
|
153560
|
+
const studio = await getStudioRunContext(dependencies);
|
|
153561
|
+
let resolvedDataSourceId = context.options.dataSourceId;
|
|
153562
|
+
if (context.options.dataSourceSlug) {
|
|
153563
|
+
const appId = await studio.resolver.resolveAppId({
|
|
153564
|
+
appId: context.options.appId,
|
|
153565
|
+
appSlug: context.options.appSlug
|
|
153566
|
+
});
|
|
153567
|
+
resolvedDataSourceId = await studio.resolver.resolveDataSourceId({
|
|
153568
|
+
appId,
|
|
153569
|
+
dataSourceId: context.options.dataSourceId,
|
|
153570
|
+
dataSourceSlug: context.options.dataSourceSlug
|
|
153571
|
+
});
|
|
153572
|
+
}
|
|
153573
|
+
const basePayload = ensureObjectPayload(
|
|
153574
|
+
await readStudioWriteInput({
|
|
153575
|
+
data: context.options.data,
|
|
153576
|
+
fromFile: context.options.fromFile
|
|
153577
|
+
}),
|
|
153578
|
+
"update-html-template"
|
|
153579
|
+
);
|
|
153580
|
+
const payload = mergeObjectWithFlags(
|
|
153581
|
+
basePayload,
|
|
153582
|
+
htmlTemplateFlags({
|
|
153583
|
+
...context.options,
|
|
153584
|
+
tenantDataSourceId: resolvedDataSourceId
|
|
153585
|
+
})
|
|
153586
|
+
);
|
|
153587
|
+
requireNonEmptyObject(payload, "update-html-template");
|
|
153588
|
+
const response = await studio.apiClient.request({
|
|
153589
|
+
method: "PUT",
|
|
153590
|
+
path: `/dev/html-templates/${context.options.templateId}`,
|
|
153591
|
+
body: payload
|
|
153592
|
+
});
|
|
153593
|
+
return await wrapStudioPayload(studio.apiBaseUrl, dependencies, response.data);
|
|
153594
|
+
}
|
|
153595
|
+
});
|
|
153596
|
+
studioCli.command("delete-html-template", {
|
|
153597
|
+
description: "Delete an HTML template",
|
|
153598
|
+
options: external_exports.object({
|
|
153599
|
+
templateId: external_exports.string().min(1).describe("HTML template ID")
|
|
153600
|
+
}),
|
|
153601
|
+
run: async (context) => {
|
|
153602
|
+
const studio = await getStudioRunContext(dependencies);
|
|
153603
|
+
const response = await studio.apiClient.request({
|
|
153604
|
+
method: "DELETE",
|
|
153605
|
+
path: `/dev/html-templates/${context.options.templateId}`
|
|
153606
|
+
});
|
|
153607
|
+
return await wrapStudioPayload(studio.apiBaseUrl, dependencies, response.data);
|
|
153608
|
+
}
|
|
153609
|
+
});
|
|
153610
|
+
studioCli.command("list-email-templates", {
|
|
153611
|
+
description: "List email templates",
|
|
153612
|
+
options: external_exports.object({
|
|
153613
|
+
appId: external_exports.string().optional().describe("Optional app ID used to resolve --dataSourceSlug"),
|
|
153614
|
+
appSlug: external_exports.string().optional().describe("Optional app slug used to resolve --dataSourceSlug"),
|
|
153615
|
+
dataSourceId: external_exports.string().optional().describe("Filter by data source ID"),
|
|
153616
|
+
dataSourceSlug: external_exports.string().optional().describe("Filter by data source slug (requires --appId or --appSlug)"),
|
|
153617
|
+
limit: external_exports.coerce.number().int().min(1).max(1e3).optional().describe("Page size (default 100)"),
|
|
153618
|
+
offset: external_exports.coerce.number().int().min(0).optional().describe("Page offset (default 0)")
|
|
153619
|
+
}),
|
|
153620
|
+
run: async (context) => {
|
|
153621
|
+
const studio = await getStudioRunContext(dependencies);
|
|
153622
|
+
let tenantDataSourceId;
|
|
153623
|
+
if (context.options.dataSourceId ?? context.options.dataSourceSlug) {
|
|
153624
|
+
const appId = await studio.resolver.resolveAppId({
|
|
153625
|
+
appId: context.options.appId,
|
|
153626
|
+
appSlug: context.options.appSlug
|
|
153627
|
+
});
|
|
153628
|
+
tenantDataSourceId = await studio.resolver.resolveDataSourceId({
|
|
153629
|
+
appId,
|
|
153630
|
+
dataSourceId: context.options.dataSourceId,
|
|
153631
|
+
dataSourceSlug: context.options.dataSourceSlug
|
|
153632
|
+
});
|
|
153633
|
+
}
|
|
153634
|
+
const response = await studio.apiClient.request({
|
|
153635
|
+
method: "GET",
|
|
153636
|
+
path: "/dev/email-templates",
|
|
153637
|
+
query: {
|
|
153638
|
+
tenantDataSourceId,
|
|
153639
|
+
limit: context.options.limit,
|
|
153640
|
+
offset: context.options.offset
|
|
153641
|
+
}
|
|
153642
|
+
});
|
|
153643
|
+
return await wrapStudioPayload(studio.apiBaseUrl, dependencies, response.data);
|
|
153644
|
+
}
|
|
153645
|
+
});
|
|
153646
|
+
studioCli.command("get-email-template", {
|
|
153647
|
+
description: "Get a single email template",
|
|
153648
|
+
options: external_exports.object({
|
|
153649
|
+
templateId: external_exports.string().min(1).describe("Email template ID")
|
|
153650
|
+
}),
|
|
153651
|
+
run: async (context) => {
|
|
153652
|
+
const studio = await getStudioRunContext(dependencies);
|
|
153653
|
+
const response = await studio.apiClient.request({
|
|
153654
|
+
method: "GET",
|
|
153655
|
+
path: `/dev/email-templates/${context.options.templateId}`
|
|
153656
|
+
});
|
|
153657
|
+
return await wrapStudioPayload(studio.apiBaseUrl, dependencies, response.data);
|
|
153658
|
+
}
|
|
153659
|
+
});
|
|
153660
|
+
studioCli.command("create-email-template", {
|
|
153661
|
+
description: "Create an email template",
|
|
153662
|
+
options: external_exports.object({
|
|
153663
|
+
appId: external_exports.string().optional().describe("Optional app ID used to resolve --dataSourceSlug"),
|
|
153664
|
+
appSlug: external_exports.string().optional().describe("Optional app slug used to resolve --dataSourceSlug"),
|
|
153665
|
+
dataSourceId: external_exports.string().optional().describe("Optional data source ID to bind the template to"),
|
|
153666
|
+
dataSourceSlug: external_exports.string().optional().describe("Data source slug (requires --appId or --appSlug)"),
|
|
153667
|
+
data: external_exports.string().optional().describe("JSON payload"),
|
|
153668
|
+
fromFile: external_exports.string().optional().describe("Path to JSON payload file"),
|
|
153669
|
+
name: external_exports.string().optional().describe("Template name"),
|
|
153670
|
+
subject: external_exports.string().optional().describe("Email subject"),
|
|
153671
|
+
body: external_exports.string().optional().describe("Email body"),
|
|
153672
|
+
ownership: external_exports.string().optional().describe("Ownership (e.g. system, user)")
|
|
153673
|
+
}),
|
|
153674
|
+
run: async (context) => {
|
|
153675
|
+
const studio = await getStudioRunContext(dependencies);
|
|
153676
|
+
let resolvedDataSourceId = context.options.dataSourceId;
|
|
153677
|
+
if (context.options.dataSourceSlug) {
|
|
153678
|
+
const appId = await studio.resolver.resolveAppId({
|
|
153679
|
+
appId: context.options.appId,
|
|
153680
|
+
appSlug: context.options.appSlug
|
|
153681
|
+
});
|
|
153682
|
+
resolvedDataSourceId = await studio.resolver.resolveDataSourceId({
|
|
153683
|
+
appId,
|
|
153684
|
+
dataSourceId: context.options.dataSourceId,
|
|
153685
|
+
dataSourceSlug: context.options.dataSourceSlug
|
|
153686
|
+
});
|
|
153687
|
+
}
|
|
153688
|
+
const basePayload = ensureObjectPayload(
|
|
153689
|
+
await readStudioWriteInput({
|
|
153690
|
+
data: context.options.data,
|
|
153691
|
+
fromFile: context.options.fromFile
|
|
153692
|
+
}),
|
|
153693
|
+
"create-email-template"
|
|
153694
|
+
);
|
|
153695
|
+
const payload = mergeObjectWithFlags(
|
|
153696
|
+
basePayload,
|
|
153697
|
+
emailTemplateFlags({
|
|
153698
|
+
...context.options,
|
|
153699
|
+
tenantDataSourceId: resolvedDataSourceId
|
|
153700
|
+
})
|
|
153701
|
+
);
|
|
153702
|
+
requireNonEmptyObject(payload, "create-email-template");
|
|
153703
|
+
const response = await studio.apiClient.request({
|
|
153704
|
+
method: "POST",
|
|
153705
|
+
path: "/dev/email-templates",
|
|
153706
|
+
body: payload
|
|
153707
|
+
});
|
|
153708
|
+
return await wrapStudioPayload(studio.apiBaseUrl, dependencies, response.data);
|
|
153709
|
+
}
|
|
153710
|
+
});
|
|
153711
|
+
studioCli.command("update-email-template", {
|
|
153712
|
+
description: "Update an email template",
|
|
153713
|
+
options: external_exports.object({
|
|
153714
|
+
templateId: external_exports.string().min(1).describe("Email template ID"),
|
|
153715
|
+
appId: external_exports.string().optional().describe("Optional app ID used to resolve --dataSourceSlug"),
|
|
153716
|
+
appSlug: external_exports.string().optional().describe("Optional app slug used to resolve --dataSourceSlug"),
|
|
153717
|
+
dataSourceId: external_exports.string().optional().describe("Optional data source ID to bind the template to"),
|
|
153718
|
+
dataSourceSlug: external_exports.string().optional().describe("Data source slug (requires --appId or --appSlug)"),
|
|
153719
|
+
data: external_exports.string().optional().describe("JSON payload"),
|
|
153720
|
+
fromFile: external_exports.string().optional().describe("Path to JSON payload file"),
|
|
153721
|
+
name: external_exports.string().optional().describe("Template name"),
|
|
153722
|
+
subject: external_exports.string().optional().describe("Email subject"),
|
|
153723
|
+
body: external_exports.string().optional().describe("Email body"),
|
|
153724
|
+
ownership: external_exports.string().optional().describe("Ownership (e.g. system, user)")
|
|
153725
|
+
}),
|
|
153726
|
+
run: async (context) => {
|
|
153727
|
+
const studio = await getStudioRunContext(dependencies);
|
|
153728
|
+
let resolvedDataSourceId = context.options.dataSourceId;
|
|
153729
|
+
if (context.options.dataSourceSlug) {
|
|
153730
|
+
const appId = await studio.resolver.resolveAppId({
|
|
153731
|
+
appId: context.options.appId,
|
|
153732
|
+
appSlug: context.options.appSlug
|
|
153733
|
+
});
|
|
153734
|
+
resolvedDataSourceId = await studio.resolver.resolveDataSourceId({
|
|
153735
|
+
appId,
|
|
153736
|
+
dataSourceId: context.options.dataSourceId,
|
|
153737
|
+
dataSourceSlug: context.options.dataSourceSlug
|
|
153738
|
+
});
|
|
153739
|
+
}
|
|
153740
|
+
const basePayload = ensureObjectPayload(
|
|
153741
|
+
await readStudioWriteInput({
|
|
153742
|
+
data: context.options.data,
|
|
153743
|
+
fromFile: context.options.fromFile
|
|
153744
|
+
}),
|
|
153745
|
+
"update-email-template"
|
|
153746
|
+
);
|
|
153747
|
+
const payload = mergeObjectWithFlags(
|
|
153748
|
+
basePayload,
|
|
153749
|
+
emailTemplateFlags({
|
|
153750
|
+
...context.options,
|
|
153751
|
+
tenantDataSourceId: resolvedDataSourceId
|
|
153752
|
+
})
|
|
153753
|
+
);
|
|
153754
|
+
requireNonEmptyObject(payload, "update-email-template");
|
|
153755
|
+
const response = await studio.apiClient.request({
|
|
153756
|
+
method: "PUT",
|
|
153757
|
+
path: `/dev/email-templates/${context.options.templateId}`,
|
|
153758
|
+
body: payload
|
|
153759
|
+
});
|
|
153760
|
+
return await wrapStudioPayload(studio.apiBaseUrl, dependencies, response.data);
|
|
153761
|
+
}
|
|
153762
|
+
});
|
|
153763
|
+
studioCli.command("delete-email-template", {
|
|
153764
|
+
description: "Delete an email template",
|
|
153765
|
+
options: external_exports.object({
|
|
153766
|
+
templateId: external_exports.string().min(1).describe("Email template ID")
|
|
153767
|
+
}),
|
|
153768
|
+
run: async (context) => {
|
|
153769
|
+
const studio = await getStudioRunContext(dependencies);
|
|
153770
|
+
const response = await studio.apiClient.request({
|
|
153771
|
+
method: "DELETE",
|
|
153772
|
+
path: `/dev/email-templates/${context.options.templateId}`
|
|
153773
|
+
});
|
|
153774
|
+
return await wrapStudioPayload(studio.apiBaseUrl, dependencies, response.data);
|
|
153775
|
+
}
|
|
153776
|
+
});
|
|
152779
153777
|
return studioCli;
|
|
152780
153778
|
}
|
|
152781
153779
|
|