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