@bluealba/pae-bootstrap-lib 3.2.5 → 3.3.0-feature-pillar-v4-release-647
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/bootstrap/apply-service-local.d.ts.map +1 -1
- package/dist/src/bootstrap/apply-service-local.js +3 -2
- package/dist/src/bootstrap/apply-service-local.js.map +1 -1
- package/dist/src/bootstrap/bootstrap-platform.d.ts +10 -0
- package/dist/src/bootstrap/bootstrap-platform.d.ts.map +1 -1
- package/dist/src/bootstrap/bootstrap-platform.js +15 -13
- package/dist/src/bootstrap/bootstrap-platform.js.map +1 -1
- package/dist/src/bootstrap/domain/domain-validation.test.js +1286 -302
- package/dist/src/bootstrap/domain/domain-validation.test.js.map +1 -1
- package/dist/src/bootstrap/entity-synchronizer.test.js +24 -0
- package/dist/src/bootstrap/entity-synchronizer.test.js.map +1 -1
- package/dist/src/bootstrap/read-bootstrap-applications.d.ts.map +1 -1
- package/dist/src/bootstrap/read-bootstrap-applications.js +344 -38
- package/dist/src/bootstrap/read-bootstrap-applications.js.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/logger.d.ts +27 -0
- package/dist/src/logger.d.ts.map +1 -0
- package/dist/src/logger.js +37 -0
- package/dist/src/logger.js.map +1 -0
- package/dist/src/utils/format-diff.d.ts.map +1 -1
- package/dist/src/utils/format-diff.js +2 -1
- package/dist/src/utils/format-diff.js.map +1 -1
- package/package.json +1 -1
|
@@ -39,6 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.readPlatformBootstrapFolder = void 0;
|
|
40
40
|
const __typia_transform__assertGuard = __importStar(require("typia/lib/internal/_assertGuard.js"));
|
|
41
41
|
const __typia_transform__accessExpressionAsString = __importStar(require("typia/lib/internal/_accessExpressionAsString.js"));
|
|
42
|
+
const logger_1 = require("../logger");
|
|
42
43
|
const pae_core_1 = require("@bluealba/pae-core");
|
|
43
44
|
const path_1 = require("path");
|
|
44
45
|
const typia_1 = __importDefault(require("typia"));
|
|
@@ -308,7 +309,7 @@ const readPlatformBootstrapFolder = (path, options) => {
|
|
|
308
309
|
return acc;
|
|
309
310
|
}
|
|
310
311
|
if (((_a = options.exclude) !== null && _a !== void 0 ? _a : []).includes(item.name)) {
|
|
311
|
-
|
|
312
|
+
(0, logger_1.log)().info(`Excluding application [${item.name}] !`);
|
|
312
313
|
return acc;
|
|
313
314
|
}
|
|
314
315
|
const appPath = (0, path_1.join)(path, item.name);
|
|
@@ -397,8 +398,8 @@ const readApplicationDirectory = (path, defaultApplication) => {
|
|
|
397
398
|
if (existsSync((0, path_1.join)(path, FILE_MODULES))) {
|
|
398
399
|
const data = readApplicationItems(path, FILE_MODULES, application, 'application');
|
|
399
400
|
try {
|
|
400
|
-
application.modules.push(...(() => { const _io0 = input => "string" === typeof input.name && "string" === typeof input.displayName && ("service" === input.type || "mcp" === input.type || "app" === input.type || "tool" === input.type || "utility" === input.type || "cloud-function" === input.type || "documentation" === input.type || "fragment" === input.type) && "string" === typeof input.baseUrl && ("object" === typeof input.service && null !== input.service && _io1(input.service)) && (Array.isArray(input.dependsOn) && input.dependsOn.every(elem => "string" === typeof elem)) && (undefined === input.commonPaths || "object" === typeof input.commonPaths && null !== input.commonPaths && false === Array.isArray(input.commonPaths) && _io2(input.commonPaths)) && (undefined === input.ui || "object" === typeof input.ui && null !== input.ui && _io3(input.ui)) && (undefined === input.cloudFunction || "object" === typeof input.cloudFunction && null !== input.cloudFunction && _io7(input.cloudFunction)) && (undefined === input.authorization || "object" === typeof input.authorization && null !== input.authorization && false === Array.isArray(input.authorization) && _io8(input.authorization)) && (undefined === input.mcp || "object" === typeof input.mcp && null !== input.mcp && _io10(input.mcp)) && (undefined === input.application || "string" === typeof input.application) && (undefined === input.version || "string" === typeof input.version) && (undefined === input.isPublic || "boolean" === typeof input.isPublic) && (undefined === input.id || "number" === typeof input.id) && (undefined === input.serviceLocal || "object" === typeof input.serviceLocal && null !== input.serviceLocal && false === Array.isArray(input.serviceLocal) &&
|
|
401
|
-
if (["name", "displayName", "type", "baseUrl", "service", "dependsOn", "commonPaths", "ui", "cloudFunction", "authorization", "mcp", "application", "version", "isPublic", "id", "serviceLocal"].some(prop => key === prop))
|
|
401
|
+
application.modules.push(...(() => { const _io0 = input => "string" === typeof input.name && "string" === typeof input.displayName && ("service" === input.type || "mcp" === input.type || "app" === input.type || "tool" === input.type || "utility" === input.type || "cloud-function" === input.type || "documentation" === input.type || "fragment" === input.type) && "string" === typeof input.baseUrl && ("object" === typeof input.service && null !== input.service && _io1(input.service)) && (Array.isArray(input.dependsOn) && input.dependsOn.every(elem => "string" === typeof elem)) && (undefined === input.commonPaths || "object" === typeof input.commonPaths && null !== input.commonPaths && false === Array.isArray(input.commonPaths) && _io2(input.commonPaths)) && (undefined === input.ui || "object" === typeof input.ui && null !== input.ui && _io3(input.ui)) && (undefined === input.cloudFunction || "object" === typeof input.cloudFunction && null !== input.cloudFunction && _io7(input.cloudFunction)) && (undefined === input.authorization || "object" === typeof input.authorization && null !== input.authorization && false === Array.isArray(input.authorization) && _io8(input.authorization)) && (undefined === input.mcp || "object" === typeof input.mcp && null !== input.mcp && _io10(input.mcp)) && (undefined === input.application || "string" === typeof input.application) && (undefined === input.version || "string" === typeof input.version) && (undefined === input.isPublic || "boolean" === typeof input.isPublic) && (undefined === input.tenantOverrides || "object" === typeof input.tenantOverrides && null !== input.tenantOverrides && false === Array.isArray(input.tenantOverrides) && _io13(input.tenantOverrides)) && (undefined === input.id || "number" === typeof input.id) && (undefined === input.serviceLocal || "object" === typeof input.serviceLocal && null !== input.serviceLocal && false === Array.isArray(input.serviceLocal) && _io15(input.serviceLocal)) && Object.keys(input).every(key => {
|
|
402
|
+
if (["name", "displayName", "type", "baseUrl", "service", "dependsOn", "commonPaths", "ui", "cloudFunction", "authorization", "mcp", "application", "version", "isPublic", "tenantOverrides", "id", "serviceLocal"].some(prop => key === prop))
|
|
402
403
|
return true;
|
|
403
404
|
const value = input[key];
|
|
404
405
|
if (undefined === value)
|
|
@@ -426,7 +427,12 @@ const readApplicationDirectory = (path, defaultApplication) => {
|
|
|
426
427
|
if (undefined === value)
|
|
427
428
|
return true;
|
|
428
429
|
return Array.isArray(value) && value.every(elem => "string" === typeof elem);
|
|
429
|
-
}); const _io12 = input => "string" === typeof input.tool && (Array.isArray(input.operations) && input.operations.every(elem => "string" === typeof elem)) && (undefined === input.operator || "AND" === input.operator || "OR" === input.operator); const _io13 = input =>
|
|
430
|
+
}); const _io12 = input => "string" === typeof input.tool && (Array.isArray(input.operations) && input.operations.every(elem => "string" === typeof elem)) && (undefined === input.operator || "AND" === input.operator || "OR" === input.operator); const _io13 = input => Object.keys(input).every(key => {
|
|
431
|
+
const value = input[key];
|
|
432
|
+
if (undefined === value)
|
|
433
|
+
return true;
|
|
434
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io14(value);
|
|
435
|
+
}); const _io14 = input => (undefined === input.displayName || "string" === typeof input.displayName) && (undefined === input.type || "service" === input.type || "mcp" === input.type || "app" === input.type || "tool" === input.type || "utility" === input.type || "cloud-function" === input.type || "documentation" === input.type || "fragment" === input.type) && (undefined === input.service || "object" === typeof input.service && null !== input.service && false === Array.isArray(input.service) && _io15(input.service)) && (undefined === input.dependsOn || Array.isArray(input.dependsOn) && input.dependsOn.every(elem => "string" === typeof elem)) && (undefined === input.commonPaths || "object" === typeof input.commonPaths && null !== input.commonPaths && false === Array.isArray(input.commonPaths) && _io16(input.commonPaths)) && (undefined === input.ui || "object" === typeof input.ui && null !== input.ui && false === Array.isArray(input.ui) && _io17(input.ui)) && (undefined === input.cloudFunction || "object" === typeof input.cloudFunction && null !== input.cloudFunction && false === Array.isArray(input.cloudFunction) && _io18(input.cloudFunction)) && (undefined === input.authorization || "object" === typeof input.authorization && null !== input.authorization && false === Array.isArray(input.authorization) && _io19(input.authorization)) && (undefined === input.mcp || "object" === typeof input.mcp && null !== input.mcp && false === Array.isArray(input.mcp) && _io20(input.mcp)) && (undefined === input.application || "string" === typeof input.application) && (undefined === input.isPublic || "boolean" === typeof input.isPublic); const _io15 = input => (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "number" === typeof input.port) && (undefined === input.protocol || "string" === typeof input.protocol) && (undefined === input.includeBaseURL || "boolean" === typeof input.includeBaseURL); const _io16 = input => (undefined === input.apiDocs || "string" === typeof input.apiDocs) && (undefined === input.version || "string" === typeof input.version) && (undefined === input.health || "string" === typeof input.health) && (undefined === input.changelog || "string" === typeof input.changelog); const _io17 = input => (undefined === input.route || "string" === typeof input.route) && (null === input.mountAtSelector || undefined === input.mountAtSelector || "string" === typeof input.mountAtSelector) && (undefined === input.bundleFile || "string" === typeof input.bundleFile) && (undefined === input.customProps || "object" === typeof input.customProps && null !== input.customProps && false === Array.isArray(input.customProps) && _io4(input.customProps)) && (undefined === input.shell || "boolean" === typeof input.shell) && (undefined === input.isPlatformCustomization || "boolean" === typeof input.isPlatformCustomization); const _io18 = input => (undefined === input.provider || "aws" === input.provider) && (undefined === input.requiresSignature || "boolean" === typeof input.requiresSignature); const _io19 = input => (undefined === input.operations || Array.isArray(input.operations) && input.operations.every(elem => "string" === typeof elem)) && (undefined === input.routes || Array.isArray(input.routes) && input.routes.every(elem => "object" === typeof elem && null !== elem && _io9(elem))); const _io20 = input => null !== input.audience && (undefined === input.audience || "string" === typeof input.audience || Array.isArray(input.audience) && input.audience.every(elem => "string" === typeof elem)) && (undefined === input.scopesSupported || Array.isArray(input.scopesSupported) && input.scopesSupported.every(elem => "string" === typeof elem)) && (undefined === input.resourceName || "string" === typeof input.resourceName) && (undefined === input.authServerProvider || "string" === typeof input.authServerProvider) && (undefined === input.origin || "in-house" === input.origin) && (undefined === input.scopeOperationMap || "object" === typeof input.scopeOperationMap && null !== input.scopeOperationMap && false === Array.isArray(input.scopeOperationMap) && _io11(input.scopeOperationMap)) && (undefined === input.tools || Array.isArray(input.tools) && input.tools.every(elem => "object" === typeof elem && null !== elem && _io12(elem))); const _ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.name || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
430
436
|
method: "typia.assert",
|
|
431
437
|
path: _path + ".name",
|
|
432
438
|
expected: "string",
|
|
@@ -461,9 +467,9 @@ const readApplicationDirectory = (path, defaultApplication) => {
|
|
|
461
467
|
path: _path + ".dependsOn",
|
|
462
468
|
expected: "Array<string>",
|
|
463
469
|
value: input.dependsOn
|
|
464
|
-
}, _errorFactory)) && input.dependsOn.every((elem,
|
|
470
|
+
}, _errorFactory)) && input.dependsOn.every((elem, _index19) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
465
471
|
method: "typia.assert",
|
|
466
|
-
path: _path + ".dependsOn[" +
|
|
472
|
+
path: _path + ".dependsOn[" + _index19 + "]",
|
|
467
473
|
expected: "string",
|
|
468
474
|
value: elem
|
|
469
475
|
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
@@ -536,6 +542,16 @@ const readApplicationDirectory = (path, defaultApplication) => {
|
|
|
536
542
|
path: _path + ".isPublic",
|
|
537
543
|
expected: "(boolean | undefined)",
|
|
538
544
|
value: input.isPublic
|
|
545
|
+
}, _errorFactory)) && (undefined === input.tenantOverrides || ("object" === typeof input.tenantOverrides && null !== input.tenantOverrides && false === Array.isArray(input.tenantOverrides) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
546
|
+
method: "typia.assert",
|
|
547
|
+
path: _path + ".tenantOverrides",
|
|
548
|
+
expected: "(ModuleTenantOverrides | undefined)",
|
|
549
|
+
value: input.tenantOverrides
|
|
550
|
+
}, _errorFactory)) && _ao13(input.tenantOverrides, _path + ".tenantOverrides", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
551
|
+
method: "typia.assert",
|
|
552
|
+
path: _path + ".tenantOverrides",
|
|
553
|
+
expected: "(ModuleTenantOverrides | undefined)",
|
|
554
|
+
value: input.tenantOverrides
|
|
539
555
|
}, _errorFactory)) && (undefined === input.id || "number" === typeof input.id || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
540
556
|
method: "typia.assert",
|
|
541
557
|
path: _path + ".id",
|
|
@@ -546,13 +562,13 @@ const readApplicationDirectory = (path, defaultApplication) => {
|
|
|
546
562
|
path: _path + ".serviceLocal",
|
|
547
563
|
expected: "(Partial<ServiceConfig> | undefined)",
|
|
548
564
|
value: input.serviceLocal
|
|
549
|
-
}, _errorFactory)) &&
|
|
565
|
+
}, _errorFactory)) && _ao15(input.serviceLocal, _path + ".serviceLocal", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
550
566
|
method: "typia.assert",
|
|
551
567
|
path: _path + ".serviceLocal",
|
|
552
568
|
expected: "(Partial<ServiceConfig> | undefined)",
|
|
553
569
|
value: input.serviceLocal
|
|
554
570
|
}, _errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
555
|
-
if (["name", "displayName", "type", "baseUrl", "service", "dependsOn", "commonPaths", "ui", "cloudFunction", "authorization", "mcp", "application", "version", "isPublic", "id", "serviceLocal"].some(prop => key === prop))
|
|
571
|
+
if (["name", "displayName", "type", "baseUrl", "service", "dependsOn", "commonPaths", "ui", "cloudFunction", "authorization", "mcp", "application", "version", "isPublic", "tenantOverrides", "id", "serviceLocal"].some(prop => key === prop))
|
|
556
572
|
return true;
|
|
557
573
|
const value = input[key];
|
|
558
574
|
if (undefined === value)
|
|
@@ -690,9 +706,9 @@ const readApplicationDirectory = (path, defaultApplication) => {
|
|
|
690
706
|
path: _path + ".operations",
|
|
691
707
|
expected: "(Array<string> | undefined)",
|
|
692
708
|
value: input.operations
|
|
693
|
-
}, _errorFactory)) && input.operations.every((elem,
|
|
709
|
+
}, _errorFactory)) && input.operations.every((elem, _index20) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
694
710
|
method: "typia.assert",
|
|
695
|
-
path: _path + ".operations[" +
|
|
711
|
+
path: _path + ".operations[" + _index20 + "]",
|
|
696
712
|
expected: "string",
|
|
697
713
|
value: elem
|
|
698
714
|
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
@@ -705,14 +721,14 @@ const readApplicationDirectory = (path, defaultApplication) => {
|
|
|
705
721
|
path: _path + ".routes",
|
|
706
722
|
expected: "(Array<RouteAuthorization> | undefined)",
|
|
707
723
|
value: input.routes
|
|
708
|
-
}, _errorFactory)) && input.routes.every((elem,
|
|
724
|
+
}, _errorFactory)) && input.routes.every((elem, _index21) => ("object" === typeof elem && null !== elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
709
725
|
method: "typia.assert",
|
|
710
|
-
path: _path + ".routes[" +
|
|
726
|
+
path: _path + ".routes[" + _index21 + "]",
|
|
711
727
|
expected: "RouteAuthorization",
|
|
712
728
|
value: elem
|
|
713
|
-
}, _errorFactory)) && _ao9(elem, _path + ".routes[" +
|
|
729
|
+
}, _errorFactory)) && _ao9(elem, _path + ".routes[" + _index21 + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
714
730
|
method: "typia.assert",
|
|
715
|
-
path: _path + ".routes[" +
|
|
731
|
+
path: _path + ".routes[" + _index21 + "]",
|
|
716
732
|
expected: "RouteAuthorization",
|
|
717
733
|
value: elem
|
|
718
734
|
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
@@ -725,9 +741,9 @@ const readApplicationDirectory = (path, defaultApplication) => {
|
|
|
725
741
|
path: _path + ".methods",
|
|
726
742
|
expected: "(Array<HttpMethod> | undefined)",
|
|
727
743
|
value: input.methods
|
|
728
|
-
}, _errorFactory)) && input.methods.every((elem,
|
|
744
|
+
}, _errorFactory)) && input.methods.every((elem, _index22) => "POST" === elem || "DELETE" === elem || "GET" === elem || "HEAD" === elem || "OPTIONS" === elem || "PUT" === elem || "PATCH" === elem || "CONNECT" === elem || "TRACE" === elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
729
745
|
method: "typia.assert",
|
|
730
|
-
path: _path + ".methods[" +
|
|
746
|
+
path: _path + ".methods[" + _index22 + "]",
|
|
731
747
|
expected: "(\"CONNECT\" | \"DELETE\" | \"GET\" | \"HEAD\" | \"OPTIONS\" | \"PATCH\" | \"POST\" | \"PUT\" | \"TRACE\")",
|
|
732
748
|
value: elem
|
|
733
749
|
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
@@ -745,9 +761,9 @@ const readApplicationDirectory = (path, defaultApplication) => {
|
|
|
745
761
|
path: _path + ".operations",
|
|
746
762
|
expected: "(Array<string> | undefined)",
|
|
747
763
|
value: input.operations
|
|
748
|
-
}, _errorFactory)) && input.operations.every((elem,
|
|
764
|
+
}, _errorFactory)) && input.operations.every((elem, _index23) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
749
765
|
method: "typia.assert",
|
|
750
|
-
path: _path + ".operations[" +
|
|
766
|
+
path: _path + ".operations[" + _index23 + "]",
|
|
751
767
|
expected: "string",
|
|
752
768
|
value: elem
|
|
753
769
|
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
@@ -770,9 +786,9 @@ const readApplicationDirectory = (path, defaultApplication) => {
|
|
|
770
786
|
path: _path + ".audience",
|
|
771
787
|
expected: "(Array<string> | string | undefined)",
|
|
772
788
|
value: input.audience
|
|
773
|
-
}, _errorFactory)) && input.audience.every((elem,
|
|
789
|
+
}, _errorFactory)) && input.audience.every((elem, _index24) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
774
790
|
method: "typia.assert",
|
|
775
|
-
path: _path + ".audience[" +
|
|
791
|
+
path: _path + ".audience[" + _index24 + "]",
|
|
776
792
|
expected: "string",
|
|
777
793
|
value: elem
|
|
778
794
|
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
@@ -785,9 +801,9 @@ const readApplicationDirectory = (path, defaultApplication) => {
|
|
|
785
801
|
path: _path + ".scopesSupported",
|
|
786
802
|
expected: "(Array<string> | undefined)",
|
|
787
803
|
value: input.scopesSupported
|
|
788
|
-
}, _errorFactory)) && input.scopesSupported.every((elem,
|
|
804
|
+
}, _errorFactory)) && input.scopesSupported.every((elem, _index25) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
789
805
|
method: "typia.assert",
|
|
790
|
-
path: _path + ".scopesSupported[" +
|
|
806
|
+
path: _path + ".scopesSupported[" + _index25 + "]",
|
|
791
807
|
expected: "string",
|
|
792
808
|
value: elem
|
|
793
809
|
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
@@ -825,14 +841,14 @@ const readApplicationDirectory = (path, defaultApplication) => {
|
|
|
825
841
|
path: _path + ".tools",
|
|
826
842
|
expected: "(Array<McpToolAuthorization> | undefined)",
|
|
827
843
|
value: input.tools
|
|
828
|
-
}, _errorFactory)) && input.tools.every((elem,
|
|
844
|
+
}, _errorFactory)) && input.tools.every((elem, _index26) => ("object" === typeof elem && null !== elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
829
845
|
method: "typia.assert",
|
|
830
|
-
path: _path + ".tools[" +
|
|
846
|
+
path: _path + ".tools[" + _index26 + "]",
|
|
831
847
|
expected: "McpToolAuthorization",
|
|
832
848
|
value: elem
|
|
833
|
-
}, _errorFactory)) && _ao12(elem, _path + ".tools[" +
|
|
849
|
+
}, _errorFactory)) && _ao12(elem, _path + ".tools[" + _index26 + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
834
850
|
method: "typia.assert",
|
|
835
|
-
path: _path + ".tools[" +
|
|
851
|
+
path: _path + ".tools[" + _index26 + "]",
|
|
836
852
|
expected: "McpToolAuthorization",
|
|
837
853
|
value: elem
|
|
838
854
|
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
@@ -849,9 +865,9 @@ const readApplicationDirectory = (path, defaultApplication) => {
|
|
|
849
865
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
850
866
|
expected: "Array<string>",
|
|
851
867
|
value: value
|
|
852
|
-
}, _errorFactory)) && value.every((elem,
|
|
868
|
+
}, _errorFactory)) && value.every((elem, _index27) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
853
869
|
method: "typia.assert",
|
|
854
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key) + "[" +
|
|
870
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key) + "[" + _index27 + "]",
|
|
855
871
|
expected: "string",
|
|
856
872
|
value: elem
|
|
857
873
|
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
@@ -870,9 +886,9 @@ const readApplicationDirectory = (path, defaultApplication) => {
|
|
|
870
886
|
path: _path + ".operations",
|
|
871
887
|
expected: "Array<string>",
|
|
872
888
|
value: input.operations
|
|
873
|
-
}, _errorFactory)) && input.operations.every((elem,
|
|
889
|
+
}, _errorFactory)) && input.operations.every((elem, _index28) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
874
890
|
method: "typia.assert",
|
|
875
|
-
path: _path + ".operations[" +
|
|
891
|
+
path: _path + ".operations[" + _index28 + "]",
|
|
876
892
|
expected: "string",
|
|
877
893
|
value: elem
|
|
878
894
|
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
@@ -885,7 +901,117 @@ const readApplicationDirectory = (path, defaultApplication) => {
|
|
|
885
901
|
path: _path + ".operator",
|
|
886
902
|
expected: "(\"AND\" | \"OR\" | undefined)",
|
|
887
903
|
value: input.operator
|
|
888
|
-
}, _errorFactory)); const _ao13 = (input, _path, _exceptionable = true) =>
|
|
904
|
+
}, _errorFactory)); const _ao13 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
905
|
+
const value = input[key];
|
|
906
|
+
if (undefined === value)
|
|
907
|
+
return true;
|
|
908
|
+
return ("object" === typeof value && null !== value && false === Array.isArray(value) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
909
|
+
method: "typia.assert",
|
|
910
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
911
|
+
expected: "ModuleTenantOverride",
|
|
912
|
+
value: value
|
|
913
|
+
}, _errorFactory)) && _ao14(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
914
|
+
method: "typia.assert",
|
|
915
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
916
|
+
expected: "ModuleTenantOverride",
|
|
917
|
+
value: value
|
|
918
|
+
}, _errorFactory);
|
|
919
|
+
}); const _ao14 = (input, _path, _exceptionable = true) => (undefined === input.displayName || "string" === typeof input.displayName || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
920
|
+
method: "typia.assert",
|
|
921
|
+
path: _path + ".displayName",
|
|
922
|
+
expected: "(string | undefined)",
|
|
923
|
+
value: input.displayName
|
|
924
|
+
}, _errorFactory)) && (undefined === input.type || "service" === input.type || "mcp" === input.type || "app" === input.type || "tool" === input.type || "utility" === input.type || "cloud-function" === input.type || "documentation" === input.type || "fragment" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
925
|
+
method: "typia.assert",
|
|
926
|
+
path: _path + ".type",
|
|
927
|
+
expected: "(\"app\" | \"cloud-function\" | \"documentation\" | \"fragment\" | \"mcp\" | \"service\" | \"tool\" | \"utility\" | undefined)",
|
|
928
|
+
value: input.type
|
|
929
|
+
}, _errorFactory)) && (undefined === input.service || ("object" === typeof input.service && null !== input.service && false === Array.isArray(input.service) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
930
|
+
method: "typia.assert",
|
|
931
|
+
path: _path + ".service",
|
|
932
|
+
expected: "(Partial<ServiceConfig> | undefined)",
|
|
933
|
+
value: input.service
|
|
934
|
+
}, _errorFactory)) && _ao15(input.service, _path + ".service", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
935
|
+
method: "typia.assert",
|
|
936
|
+
path: _path + ".service",
|
|
937
|
+
expected: "(Partial<ServiceConfig> | undefined)",
|
|
938
|
+
value: input.service
|
|
939
|
+
}, _errorFactory)) && (undefined === input.dependsOn || (Array.isArray(input.dependsOn) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
940
|
+
method: "typia.assert",
|
|
941
|
+
path: _path + ".dependsOn",
|
|
942
|
+
expected: "(Array<string> | undefined)",
|
|
943
|
+
value: input.dependsOn
|
|
944
|
+
}, _errorFactory)) && input.dependsOn.every((elem, _index29) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
945
|
+
method: "typia.assert",
|
|
946
|
+
path: _path + ".dependsOn[" + _index29 + "]",
|
|
947
|
+
expected: "string",
|
|
948
|
+
value: elem
|
|
949
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
950
|
+
method: "typia.assert",
|
|
951
|
+
path: _path + ".dependsOn",
|
|
952
|
+
expected: "(Array<string> | undefined)",
|
|
953
|
+
value: input.dependsOn
|
|
954
|
+
}, _errorFactory)) && (undefined === input.commonPaths || ("object" === typeof input.commonPaths && null !== input.commonPaths && false === Array.isArray(input.commonPaths) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
955
|
+
method: "typia.assert",
|
|
956
|
+
path: _path + ".commonPaths",
|
|
957
|
+
expected: "(Partial<CommonPathsMetadata> | undefined)",
|
|
958
|
+
value: input.commonPaths
|
|
959
|
+
}, _errorFactory)) && _ao16(input.commonPaths, _path + ".commonPaths", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
960
|
+
method: "typia.assert",
|
|
961
|
+
path: _path + ".commonPaths",
|
|
962
|
+
expected: "(Partial<CommonPathsMetadata> | undefined)",
|
|
963
|
+
value: input.commonPaths
|
|
964
|
+
}, _errorFactory)) && (undefined === input.ui || ("object" === typeof input.ui && null !== input.ui && false === Array.isArray(input.ui) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
965
|
+
method: "typia.assert",
|
|
966
|
+
path: _path + ".ui",
|
|
967
|
+
expected: "(Partial<UIConfig> | undefined)",
|
|
968
|
+
value: input.ui
|
|
969
|
+
}, _errorFactory)) && _ao17(input.ui, _path + ".ui", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
970
|
+
method: "typia.assert",
|
|
971
|
+
path: _path + ".ui",
|
|
972
|
+
expected: "(Partial<UIConfig> | undefined)",
|
|
973
|
+
value: input.ui
|
|
974
|
+
}, _errorFactory)) && (undefined === input.cloudFunction || ("object" === typeof input.cloudFunction && null !== input.cloudFunction && false === Array.isArray(input.cloudFunction) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
975
|
+
method: "typia.assert",
|
|
976
|
+
path: _path + ".cloudFunction",
|
|
977
|
+
expected: "(Partial<CloudFunctionConfig> | undefined)",
|
|
978
|
+
value: input.cloudFunction
|
|
979
|
+
}, _errorFactory)) && _ao18(input.cloudFunction, _path + ".cloudFunction", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
980
|
+
method: "typia.assert",
|
|
981
|
+
path: _path + ".cloudFunction",
|
|
982
|
+
expected: "(Partial<CloudFunctionConfig> | undefined)",
|
|
983
|
+
value: input.cloudFunction
|
|
984
|
+
}, _errorFactory)) && (undefined === input.authorization || ("object" === typeof input.authorization && null !== input.authorization && false === Array.isArray(input.authorization) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
985
|
+
method: "typia.assert",
|
|
986
|
+
path: _path + ".authorization",
|
|
987
|
+
expected: "(Partial<AuthorizationMetadata> | undefined)",
|
|
988
|
+
value: input.authorization
|
|
989
|
+
}, _errorFactory)) && _ao19(input.authorization, _path + ".authorization", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
990
|
+
method: "typia.assert",
|
|
991
|
+
path: _path + ".authorization",
|
|
992
|
+
expected: "(Partial<AuthorizationMetadata> | undefined)",
|
|
993
|
+
value: input.authorization
|
|
994
|
+
}, _errorFactory)) && (undefined === input.mcp || ("object" === typeof input.mcp && null !== input.mcp && false === Array.isArray(input.mcp) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
995
|
+
method: "typia.assert",
|
|
996
|
+
path: _path + ".mcp",
|
|
997
|
+
expected: "(Partial<McpResourceConfig> | undefined)",
|
|
998
|
+
value: input.mcp
|
|
999
|
+
}, _errorFactory)) && _ao20(input.mcp, _path + ".mcp", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1000
|
+
method: "typia.assert",
|
|
1001
|
+
path: _path + ".mcp",
|
|
1002
|
+
expected: "(Partial<McpResourceConfig> | undefined)",
|
|
1003
|
+
value: input.mcp
|
|
1004
|
+
}, _errorFactory)) && (undefined === input.application || "string" === typeof input.application || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1005
|
+
method: "typia.assert",
|
|
1006
|
+
path: _path + ".application",
|
|
1007
|
+
expected: "(string | undefined)",
|
|
1008
|
+
value: input.application
|
|
1009
|
+
}, _errorFactory)) && (undefined === input.isPublic || "boolean" === typeof input.isPublic || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1010
|
+
method: "typia.assert",
|
|
1011
|
+
path: _path + ".isPublic",
|
|
1012
|
+
expected: "(boolean | undefined)",
|
|
1013
|
+
value: input.isPublic
|
|
1014
|
+
}, _errorFactory)); const _ao15 = (input, _path, _exceptionable = true) => (undefined === input.host || "string" === typeof input.host || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
889
1015
|
method: "typia.assert",
|
|
890
1016
|
path: _path + ".host",
|
|
891
1017
|
expected: "(string | undefined)",
|
|
@@ -905,6 +1031,186 @@ const readApplicationDirectory = (path, defaultApplication) => {
|
|
|
905
1031
|
path: _path + ".includeBaseURL",
|
|
906
1032
|
expected: "(boolean | undefined)",
|
|
907
1033
|
value: input.includeBaseURL
|
|
1034
|
+
}, _errorFactory)); const _ao16 = (input, _path, _exceptionable = true) => (undefined === input.apiDocs || "string" === typeof input.apiDocs || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1035
|
+
method: "typia.assert",
|
|
1036
|
+
path: _path + ".apiDocs",
|
|
1037
|
+
expected: "(string | undefined)",
|
|
1038
|
+
value: input.apiDocs
|
|
1039
|
+
}, _errorFactory)) && (undefined === input.version || "string" === typeof input.version || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1040
|
+
method: "typia.assert",
|
|
1041
|
+
path: _path + ".version",
|
|
1042
|
+
expected: "(string | undefined)",
|
|
1043
|
+
value: input.version
|
|
1044
|
+
}, _errorFactory)) && (undefined === input.health || "string" === typeof input.health || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1045
|
+
method: "typia.assert",
|
|
1046
|
+
path: _path + ".health",
|
|
1047
|
+
expected: "(string | undefined)",
|
|
1048
|
+
value: input.health
|
|
1049
|
+
}, _errorFactory)) && (undefined === input.changelog || "string" === typeof input.changelog || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1050
|
+
method: "typia.assert",
|
|
1051
|
+
path: _path + ".changelog",
|
|
1052
|
+
expected: "(string | undefined)",
|
|
1053
|
+
value: input.changelog
|
|
1054
|
+
}, _errorFactory)); const _ao17 = (input, _path, _exceptionable = true) => (undefined === input.route || "string" === typeof input.route || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1055
|
+
method: "typia.assert",
|
|
1056
|
+
path: _path + ".route",
|
|
1057
|
+
expected: "(string | undefined)",
|
|
1058
|
+
value: input.route
|
|
1059
|
+
}, _errorFactory)) && (null === input.mountAtSelector || undefined === input.mountAtSelector || "string" === typeof input.mountAtSelector || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1060
|
+
method: "typia.assert",
|
|
1061
|
+
path: _path + ".mountAtSelector",
|
|
1062
|
+
expected: "(null | string | undefined)",
|
|
1063
|
+
value: input.mountAtSelector
|
|
1064
|
+
}, _errorFactory)) && (undefined === input.bundleFile || "string" === typeof input.bundleFile || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1065
|
+
method: "typia.assert",
|
|
1066
|
+
path: _path + ".bundleFile",
|
|
1067
|
+
expected: "(string | undefined)",
|
|
1068
|
+
value: input.bundleFile
|
|
1069
|
+
}, _errorFactory)) && (undefined === input.customProps || ("object" === typeof input.customProps && null !== input.customProps && false === Array.isArray(input.customProps) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1070
|
+
method: "typia.assert",
|
|
1071
|
+
path: _path + ".customProps",
|
|
1072
|
+
expected: "(ModuleProps | undefined)",
|
|
1073
|
+
value: input.customProps
|
|
1074
|
+
}, _errorFactory)) && _ao4(input.customProps, _path + ".customProps", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1075
|
+
method: "typia.assert",
|
|
1076
|
+
path: _path + ".customProps",
|
|
1077
|
+
expected: "(ModuleProps | undefined)",
|
|
1078
|
+
value: input.customProps
|
|
1079
|
+
}, _errorFactory)) && (undefined === input.shell || "boolean" === typeof input.shell || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1080
|
+
method: "typia.assert",
|
|
1081
|
+
path: _path + ".shell",
|
|
1082
|
+
expected: "(boolean | undefined)",
|
|
1083
|
+
value: input.shell
|
|
1084
|
+
}, _errorFactory)) && (undefined === input.isPlatformCustomization || "boolean" === typeof input.isPlatformCustomization || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1085
|
+
method: "typia.assert",
|
|
1086
|
+
path: _path + ".isPlatformCustomization",
|
|
1087
|
+
expected: "(boolean | undefined)",
|
|
1088
|
+
value: input.isPlatformCustomization
|
|
1089
|
+
}, _errorFactory)); const _ao18 = (input, _path, _exceptionable = true) => (undefined === input.provider || "aws" === input.provider || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1090
|
+
method: "typia.assert",
|
|
1091
|
+
path: _path + ".provider",
|
|
1092
|
+
expected: "(\"aws\" | undefined)",
|
|
1093
|
+
value: input.provider
|
|
1094
|
+
}, _errorFactory)) && (undefined === input.requiresSignature || "boolean" === typeof input.requiresSignature || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1095
|
+
method: "typia.assert",
|
|
1096
|
+
path: _path + ".requiresSignature",
|
|
1097
|
+
expected: "(boolean | undefined)",
|
|
1098
|
+
value: input.requiresSignature
|
|
1099
|
+
}, _errorFactory)); const _ao19 = (input, _path, _exceptionable = true) => (undefined === input.operations || (Array.isArray(input.operations) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1100
|
+
method: "typia.assert",
|
|
1101
|
+
path: _path + ".operations",
|
|
1102
|
+
expected: "(Array<string> | undefined)",
|
|
1103
|
+
value: input.operations
|
|
1104
|
+
}, _errorFactory)) && input.operations.every((elem, _index30) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1105
|
+
method: "typia.assert",
|
|
1106
|
+
path: _path + ".operations[" + _index30 + "]",
|
|
1107
|
+
expected: "string",
|
|
1108
|
+
value: elem
|
|
1109
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1110
|
+
method: "typia.assert",
|
|
1111
|
+
path: _path + ".operations",
|
|
1112
|
+
expected: "(Array<string> | undefined)",
|
|
1113
|
+
value: input.operations
|
|
1114
|
+
}, _errorFactory)) && (undefined === input.routes || (Array.isArray(input.routes) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1115
|
+
method: "typia.assert",
|
|
1116
|
+
path: _path + ".routes",
|
|
1117
|
+
expected: "(Array<RouteAuthorization> | undefined)",
|
|
1118
|
+
value: input.routes
|
|
1119
|
+
}, _errorFactory)) && input.routes.every((elem, _index31) => ("object" === typeof elem && null !== elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1120
|
+
method: "typia.assert",
|
|
1121
|
+
path: _path + ".routes[" + _index31 + "]",
|
|
1122
|
+
expected: "RouteAuthorization",
|
|
1123
|
+
value: elem
|
|
1124
|
+
}, _errorFactory)) && _ao9(elem, _path + ".routes[" + _index31 + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1125
|
+
method: "typia.assert",
|
|
1126
|
+
path: _path + ".routes[" + _index31 + "]",
|
|
1127
|
+
expected: "RouteAuthorization",
|
|
1128
|
+
value: elem
|
|
1129
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1130
|
+
method: "typia.assert",
|
|
1131
|
+
path: _path + ".routes",
|
|
1132
|
+
expected: "(Array<RouteAuthorization> | undefined)",
|
|
1133
|
+
value: input.routes
|
|
1134
|
+
}, _errorFactory)); const _ao20 = (input, _path, _exceptionable = true) => (null !== input.audience || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1135
|
+
method: "typia.assert",
|
|
1136
|
+
path: _path + ".audience",
|
|
1137
|
+
expected: "(Array<string> | string | undefined)",
|
|
1138
|
+
value: input.audience
|
|
1139
|
+
}, _errorFactory)) && (undefined === input.audience || "string" === typeof input.audience || (Array.isArray(input.audience) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1140
|
+
method: "typia.assert",
|
|
1141
|
+
path: _path + ".audience",
|
|
1142
|
+
expected: "(Array<string> | string | undefined)",
|
|
1143
|
+
value: input.audience
|
|
1144
|
+
}, _errorFactory)) && input.audience.every((elem, _index32) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1145
|
+
method: "typia.assert",
|
|
1146
|
+
path: _path + ".audience[" + _index32 + "]",
|
|
1147
|
+
expected: "string",
|
|
1148
|
+
value: elem
|
|
1149
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1150
|
+
method: "typia.assert",
|
|
1151
|
+
path: _path + ".audience",
|
|
1152
|
+
expected: "(Array<string> | string | undefined)",
|
|
1153
|
+
value: input.audience
|
|
1154
|
+
}, _errorFactory)) && (undefined === input.scopesSupported || (Array.isArray(input.scopesSupported) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1155
|
+
method: "typia.assert",
|
|
1156
|
+
path: _path + ".scopesSupported",
|
|
1157
|
+
expected: "(Array<string> | undefined)",
|
|
1158
|
+
value: input.scopesSupported
|
|
1159
|
+
}, _errorFactory)) && input.scopesSupported.every((elem, _index33) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1160
|
+
method: "typia.assert",
|
|
1161
|
+
path: _path + ".scopesSupported[" + _index33 + "]",
|
|
1162
|
+
expected: "string",
|
|
1163
|
+
value: elem
|
|
1164
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1165
|
+
method: "typia.assert",
|
|
1166
|
+
path: _path + ".scopesSupported",
|
|
1167
|
+
expected: "(Array<string> | undefined)",
|
|
1168
|
+
value: input.scopesSupported
|
|
1169
|
+
}, _errorFactory)) && (undefined === input.resourceName || "string" === typeof input.resourceName || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1170
|
+
method: "typia.assert",
|
|
1171
|
+
path: _path + ".resourceName",
|
|
1172
|
+
expected: "(string | undefined)",
|
|
1173
|
+
value: input.resourceName
|
|
1174
|
+
}, _errorFactory)) && (undefined === input.authServerProvider || "string" === typeof input.authServerProvider || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1175
|
+
method: "typia.assert",
|
|
1176
|
+
path: _path + ".authServerProvider",
|
|
1177
|
+
expected: "(string | undefined)",
|
|
1178
|
+
value: input.authServerProvider
|
|
1179
|
+
}, _errorFactory)) && (undefined === input.origin || "in-house" === input.origin || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1180
|
+
method: "typia.assert",
|
|
1181
|
+
path: _path + ".origin",
|
|
1182
|
+
expected: "(\"in-house\" | undefined)",
|
|
1183
|
+
value: input.origin
|
|
1184
|
+
}, _errorFactory)) && (undefined === input.scopeOperationMap || ("object" === typeof input.scopeOperationMap && null !== input.scopeOperationMap && false === Array.isArray(input.scopeOperationMap) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1185
|
+
method: "typia.assert",
|
|
1186
|
+
path: _path + ".scopeOperationMap",
|
|
1187
|
+
expected: "(Record<string, Array<string>> | undefined)",
|
|
1188
|
+
value: input.scopeOperationMap
|
|
1189
|
+
}, _errorFactory)) && _ao11(input.scopeOperationMap, _path + ".scopeOperationMap", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1190
|
+
method: "typia.assert",
|
|
1191
|
+
path: _path + ".scopeOperationMap",
|
|
1192
|
+
expected: "(Record<string, Array<string>> | undefined)",
|
|
1193
|
+
value: input.scopeOperationMap
|
|
1194
|
+
}, _errorFactory)) && (undefined === input.tools || (Array.isArray(input.tools) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1195
|
+
method: "typia.assert",
|
|
1196
|
+
path: _path + ".tools",
|
|
1197
|
+
expected: "(Array<McpToolAuthorization> | undefined)",
|
|
1198
|
+
value: input.tools
|
|
1199
|
+
}, _errorFactory)) && input.tools.every((elem, _index34) => ("object" === typeof elem && null !== elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1200
|
+
method: "typia.assert",
|
|
1201
|
+
path: _path + ".tools[" + _index34 + "]",
|
|
1202
|
+
expected: "McpToolAuthorization",
|
|
1203
|
+
value: elem
|
|
1204
|
+
}, _errorFactory)) && _ao12(elem, _path + ".tools[" + _index34 + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1205
|
+
method: "typia.assert",
|
|
1206
|
+
path: _path + ".tools[" + _index34 + "]",
|
|
1207
|
+
expected: "McpToolAuthorization",
|
|
1208
|
+
value: elem
|
|
1209
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1210
|
+
method: "typia.assert",
|
|
1211
|
+
path: _path + ".tools",
|
|
1212
|
+
expected: "(Array<McpToolAuthorization> | undefined)",
|
|
1213
|
+
value: input.tools
|
|
908
1214
|
}, _errorFactory)); const __is = input => Array.isArray(input) && input.every(elem => "object" === typeof elem && null !== elem && _io0(elem)); let _errorFactory; return (input, errorFactory) => {
|
|
909
1215
|
if (false === __is(input)) {
|
|
910
1216
|
_errorFactory = errorFactory;
|
|
@@ -913,14 +1219,14 @@ const readApplicationDirectory = (path, defaultApplication) => {
|
|
|
913
1219
|
path: _path + "",
|
|
914
1220
|
expected: "Array<CreateOrUpdateModule & { serviceLocal?: Partial<ServiceConfig> | undefined; } & { [x: string]: string; }>",
|
|
915
1221
|
value: input
|
|
916
|
-
}, _errorFactory)) && input.every((elem,
|
|
1222
|
+
}, _errorFactory)) && input.every((elem, _index18) => ("object" === typeof elem && null !== elem || __typia_transform__assertGuard._assertGuard(true, {
|
|
917
1223
|
method: "typia.assert",
|
|
918
|
-
path: _path + "[" +
|
|
1224
|
+
path: _path + "[" + _index18 + "]",
|
|
919
1225
|
expected: "CreateOrUpdateModule & { serviceLocal?: Partial<ServiceConfig> | undefined; } & { [x: string]: string; }",
|
|
920
1226
|
value: elem
|
|
921
|
-
}, _errorFactory)) && _ao0(elem, _path + "[" +
|
|
1227
|
+
}, _errorFactory)) && _ao0(elem, _path + "[" + _index18 + "]", true) || __typia_transform__assertGuard._assertGuard(true, {
|
|
922
1228
|
method: "typia.assert",
|
|
923
|
-
path: _path + "[" +
|
|
1229
|
+
path: _path + "[" + _index18 + "]",
|
|
924
1230
|
expected: "CreateOrUpdateModule & { serviceLocal?: Partial<ServiceConfig> | undefined; } & { [x: string]: string; }",
|
|
925
1231
|
value: elem
|
|
926
1232
|
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(true, {
|
|
@@ -1458,7 +1764,7 @@ const migrateGlobalFolderToPlatform = (basePath) => {
|
|
|
1458
1764
|
if (!existsSync(platformPath)) {
|
|
1459
1765
|
mkdirSync(platformPath, { recursive: true });
|
|
1460
1766
|
}
|
|
1461
|
-
|
|
1767
|
+
(0, logger_1.log)().info(`Migrating [${FOLDER_GLOBAL}] folder content into [${pae_core_1.PLATFORM_APPLICATION_NAME}]...`);
|
|
1462
1768
|
const files = readdirSync(globalPath, { withFileTypes: true });
|
|
1463
1769
|
for (const file of files) {
|
|
1464
1770
|
if (file.isDirectory())
|
|
@@ -1473,9 +1779,9 @@ const migrateGlobalFolderToPlatform = (basePath) => {
|
|
|
1473
1779
|
else {
|
|
1474
1780
|
writeFileSync(platformFilePath, JSON.stringify(globalContent, null, 2));
|
|
1475
1781
|
}
|
|
1476
|
-
|
|
1782
|
+
(0, logger_1.log)().info(` Migrated [${FOLDER_GLOBAL}/${file.name}] -> [${pae_core_1.PLATFORM_APPLICATION_NAME}/${file.name}]`);
|
|
1477
1783
|
}
|
|
1478
1784
|
rmSync(globalPath, { recursive: true, force: true });
|
|
1479
|
-
|
|
1785
|
+
(0, logger_1.log)().info(`Removed legacy [${FOLDER_GLOBAL}] folder`);
|
|
1480
1786
|
};
|
|
1481
1787
|
//# sourceMappingURL=read-bootstrap-applications.js.map
|