@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
|
@@ -46,7 +46,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
46
46
|
scopedTo: 'blah'
|
|
47
47
|
},
|
|
48
48
|
};
|
|
49
|
-
const result = (() => { const _io0 = input => "object" === typeof input.syncConfig && null !== input.syncConfig && _io1(input.syncConfig) && (undefined === input.sharedLibraries || Array.isArray(input.sharedLibraries) && input.sharedLibraries.every(elem => "object" === typeof elem && null !== elem && _io2(elem))) && (undefined === input.featureFlags || Array.isArray(input.featureFlags) && input.featureFlags.every(elem => "object" === typeof elem && null !== elem && _io3(elem))) && (undefined === input.catalog || Array.isArray(input.catalog) && input.catalog.every(elem => "object" === typeof elem && null !== elem && _io8(elem))) && (undefined === input.applicationsAuthz || Array.isArray(input.applicationsAuthz) && input.applicationsAuthz.every(elem => "object" === typeof elem && null !== elem &&
|
|
49
|
+
const result = (() => { const _io0 = input => "object" === typeof input.syncConfig && null !== input.syncConfig && _io1(input.syncConfig) && (undefined === input.sharedLibraries || Array.isArray(input.sharedLibraries) && input.sharedLibraries.every(elem => "object" === typeof elem && null !== elem && _io2(elem))) && (undefined === input.featureFlags || Array.isArray(input.featureFlags) && input.featureFlags.every(elem => "object" === typeof elem && null !== elem && _io3(elem))) && (undefined === input.catalog || Array.isArray(input.catalog) && input.catalog.every(elem => "object" === typeof elem && null !== elem && _io8(elem))) && (undefined === input.applicationsAuthz || Array.isArray(input.applicationsAuthz) && input.applicationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io29(elem))) && (undefined === input.rolesAuthz || Array.isArray(input.rolesAuthz) && input.rolesAuthz.every(elem => "object" === typeof elem && null !== elem && _io30(elem))) && (undefined === input.operationsAuthz || Array.isArray(input.operationsAuthz) && input.operationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io31(elem))) && (undefined === input.modulesConfig || Array.isArray(input.modulesConfig) && input.modulesConfig.every(elem => "object" === typeof elem && null !== elem && _io32(elem))); const _io1 = input => "string" === typeof input.scopedTo; const _io2 = input => "string" === typeof input.name && "string" === typeof input.url && (undefined === input.description || "string" === typeof input.description); const _io3 = input => "string" === typeof input.name && (undefined === input.description || "string" === typeof input.description) && (undefined === input.visible || "boolean" === typeof input.visible) && true && (undefined === input.valueRules || Array.isArray(input.valueRules) && input.valueRules.every(elem => "object" === typeof elem && null !== elem && _io4(elem))) && (undefined === input.applicationName || "string" === typeof input.applicationName); const _io4 = input => (undefined === input.name || "string" === typeof input.name) && ("object" === typeof input.condition && null !== input.condition && _iu0(input.condition)) && true && (undefined === input.rollout || "object" === typeof input.rollout && null !== input.rollout && _io7(input.rollout)); const _io5 = input => "string" === typeof input.attribute && ("eq" === input.operator || "neq" === input.operator || "in" === input.operator || "nin" === input.operator) && (null !== input.value && undefined !== input.value && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem))); const _io6 = input => ("AND" === input.operator || "OR" === input.operator) && (Array.isArray(input.rules) && input.rules.every(elem => "object" === typeof elem && null !== elem && _iu0(elem))); const _io7 = input => "number" === typeof input.percentage && "string" === typeof input.attribute; const _io8 = 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 && _io9(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) && _io10(input.commonPaths)) && (undefined === input.ui || "object" === typeof input.ui && null !== input.ui && _io11(input.ui)) && (undefined === input.cloudFunction || "object" === typeof input.cloudFunction && null !== input.cloudFunction && _io15(input.cloudFunction)) && (undefined === input.authorization || "object" === typeof input.authorization && null !== input.authorization && false === Array.isArray(input.authorization) && _io16(input.authorization)) && (undefined === input.mcp || "object" === typeof input.mcp && null !== input.mcp && _io18(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) && _io21(input.tenantOverrides)) && (undefined === input.id || "number" === typeof input.id) && (undefined === input.serviceLocal || "object" === typeof input.serviceLocal && null !== input.serviceLocal && false === Array.isArray(input.serviceLocal) && _io23(input.serviceLocal)); const _io9 = input => "string" === typeof input.host && "number" === typeof input.port && (undefined === input.protocol || "string" === typeof input.protocol) && (undefined === input.includeBaseURL || "boolean" === typeof input.includeBaseURL); const _io10 = 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 _io11 = input => "string" === typeof input.route && (null === input.mountAtSelector || undefined === input.mountAtSelector || "string" === typeof input.mountAtSelector) && "string" === typeof input.bundleFile && ("object" === typeof input.customProps && null !== input.customProps && false === Array.isArray(input.customProps) && _io12(input.customProps)) && (undefined === input.shell || "boolean" === typeof input.shell) && (undefined === input.isPlatformCustomization || "boolean" === typeof input.isPlatformCustomization); const _io12 = input => (undefined === input.tenantOverrides || "object" === typeof input.tenantOverrides && null !== input.tenantOverrides && false === Array.isArray(input.tenantOverrides) && _io13(input.tenantOverrides)) && Object.keys(input).every(key => {
|
|
50
50
|
if (["tenantOverrides"].some(prop => key === prop))
|
|
51
51
|
return true;
|
|
52
52
|
const value = input[key];
|
|
@@ -68,7 +68,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
68
68
|
if (undefined === value)
|
|
69
69
|
return true;
|
|
70
70
|
return Array.isArray(value) && value.every(elem => "string" === typeof elem);
|
|
71
|
-
}); const _io20 = 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 _io21 = input =>
|
|
71
|
+
}); const _io20 = 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 _io21 = input => Object.keys(input).every(key => {
|
|
72
|
+
const value = input[key];
|
|
73
|
+
if (undefined === value)
|
|
74
|
+
return true;
|
|
75
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io22(value);
|
|
76
|
+
}); const _io22 = 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) && _io23(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) && _io24(input.commonPaths)) && (undefined === input.ui || "object" === typeof input.ui && null !== input.ui && false === Array.isArray(input.ui) && _io25(input.ui)) && (undefined === input.cloudFunction || "object" === typeof input.cloudFunction && null !== input.cloudFunction && false === Array.isArray(input.cloudFunction) && _io26(input.cloudFunction)) && (undefined === input.authorization || "object" === typeof input.authorization && null !== input.authorization && false === Array.isArray(input.authorization) && _io27(input.authorization)) && (undefined === input.mcp || "object" === typeof input.mcp && null !== input.mcp && false === Array.isArray(input.mcp) && _io28(input.mcp)) && (undefined === input.application || "string" === typeof input.application) && (undefined === input.isPublic || "boolean" === typeof input.isPublic); const _io23 = 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 _io24 = 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 _io25 = 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) && _io12(input.customProps)) && (undefined === input.shell || "boolean" === typeof input.shell) && (undefined === input.isPlatformCustomization || "boolean" === typeof input.isPlatformCustomization); const _io26 = input => (undefined === input.provider || "aws" === input.provider) && (undefined === input.requiresSignature || "boolean" === typeof input.requiresSignature); const _io27 = 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 && _io17(elem))); const _io28 = 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) && _io19(input.scopeOperationMap)) && (undefined === input.tools || Array.isArray(input.tools) && input.tools.every(elem => "object" === typeof elem && null !== elem && _io20(elem))); const _io29 = input => "string" === typeof input.name && (undefined === input.displayName || "string" === typeof input.displayName) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.allowedByDefault || "boolean" === typeof input.allowedByDefault) && (undefined === input.allowedTenants || Array.isArray(input.allowedTenants) && input.allowedTenants.every(elem => "string" === typeof elem)); const _io30 = input => (undefined === input.applicationName || "string" === typeof input.applicationName) && "string" === typeof input.name && (undefined === input.description || "string" === typeof input.description); const _io31 = input => (undefined === input.roles || Array.isArray(input.roles) && input.roles.every(elem => "string" === typeof elem)) && "string" === typeof input.name && (undefined === input.description || "string" === typeof input.description) && (undefined === input.applicationName || "string" === typeof input.applicationName); const _io32 = input => "string" === typeof input.moduleName && ("object" === typeof input.customProps && null !== input.customProps && false === Array.isArray(input.customProps) && _io14(input.customProps)); const _iu0 = input => (() => {
|
|
72
77
|
if ("eq" === input.operator || "neq" === input.operator || "in" === input.operator || "nin" === input.operator)
|
|
73
78
|
return _io5(input);
|
|
74
79
|
else if ("AND" === input.operator || "OR" === input.operator)
|
|
@@ -87,12 +92,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
87
92
|
path: _path + ".sharedLibraries",
|
|
88
93
|
expected: "(Array<CreateSharedLibraryDTO> | undefined)",
|
|
89
94
|
value: input.sharedLibraries
|
|
90
|
-
})) && input.sharedLibraries.map((elem,
|
|
91
|
-
path: _path + ".sharedLibraries[" +
|
|
95
|
+
})) && input.sharedLibraries.map((elem, _index29) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
96
|
+
path: _path + ".sharedLibraries[" + _index29 + "]",
|
|
92
97
|
expected: "CreateSharedLibraryDTO",
|
|
93
98
|
value: elem
|
|
94
|
-
})) && _vo2(elem, _path + ".sharedLibraries[" +
|
|
95
|
-
path: _path + ".sharedLibraries[" +
|
|
99
|
+
})) && _vo2(elem, _path + ".sharedLibraries[" + _index29 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
100
|
+
path: _path + ".sharedLibraries[" + _index29 + "]",
|
|
96
101
|
expected: "CreateSharedLibraryDTO",
|
|
97
102
|
value: elem
|
|
98
103
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -103,12 +108,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
103
108
|
path: _path + ".featureFlags",
|
|
104
109
|
expected: "(Array<BootstrapFeatureFlag> | undefined)",
|
|
105
110
|
value: input.featureFlags
|
|
106
|
-
})) && input.featureFlags.map((elem,
|
|
107
|
-
path: _path + ".featureFlags[" +
|
|
111
|
+
})) && input.featureFlags.map((elem, _index30) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
112
|
+
path: _path + ".featureFlags[" + _index30 + "]",
|
|
108
113
|
expected: "BootstrapFeatureFlag",
|
|
109
114
|
value: elem
|
|
110
|
-
})) && _vo3(elem, _path + ".featureFlags[" +
|
|
111
|
-
path: _path + ".featureFlags[" +
|
|
115
|
+
})) && _vo3(elem, _path + ".featureFlags[" + _index30 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
116
|
+
path: _path + ".featureFlags[" + _index30 + "]",
|
|
112
117
|
expected: "BootstrapFeatureFlag",
|
|
113
118
|
value: elem
|
|
114
119
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -119,12 +124,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
119
124
|
path: _path + ".catalog",
|
|
120
125
|
expected: "(Array<BootstrapModule> | undefined)",
|
|
121
126
|
value: input.catalog
|
|
122
|
-
})) && input.catalog.map((elem,
|
|
123
|
-
path: _path + ".catalog[" +
|
|
127
|
+
})) && input.catalog.map((elem, _index31) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
128
|
+
path: _path + ".catalog[" + _index31 + "]",
|
|
124
129
|
expected: "BootstrapModule",
|
|
125
130
|
value: elem
|
|
126
|
-
})) && _vo8(elem, _path + ".catalog[" +
|
|
127
|
-
path: _path + ".catalog[" +
|
|
131
|
+
})) && _vo8(elem, _path + ".catalog[" + _index31 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
132
|
+
path: _path + ".catalog[" + _index31 + "]",
|
|
128
133
|
expected: "BootstrapModule",
|
|
129
134
|
value: elem
|
|
130
135
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -135,12 +140,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
135
140
|
path: _path + ".applicationsAuthz",
|
|
136
141
|
expected: "(Array<CreateApplicationDTO> | undefined)",
|
|
137
142
|
value: input.applicationsAuthz
|
|
138
|
-
})) && input.applicationsAuthz.map((elem,
|
|
139
|
-
path: _path + ".applicationsAuthz[" +
|
|
143
|
+
})) && input.applicationsAuthz.map((elem, _index32) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
144
|
+
path: _path + ".applicationsAuthz[" + _index32 + "]",
|
|
140
145
|
expected: "CreateApplicationDTO",
|
|
141
146
|
value: elem
|
|
142
|
-
})) &&
|
|
143
|
-
path: _path + ".applicationsAuthz[" +
|
|
147
|
+
})) && _vo29(elem, _path + ".applicationsAuthz[" + _index32 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
148
|
+
path: _path + ".applicationsAuthz[" + _index32 + "]",
|
|
144
149
|
expected: "CreateApplicationDTO",
|
|
145
150
|
value: elem
|
|
146
151
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -151,12 +156,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
151
156
|
path: _path + ".rolesAuthz",
|
|
152
157
|
expected: "(Array<CreateRoleDTO> | undefined)",
|
|
153
158
|
value: input.rolesAuthz
|
|
154
|
-
})) && input.rolesAuthz.map((elem,
|
|
155
|
-
path: _path + ".rolesAuthz[" +
|
|
159
|
+
})) && input.rolesAuthz.map((elem, _index33) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
160
|
+
path: _path + ".rolesAuthz[" + _index33 + "]",
|
|
156
161
|
expected: "CreateRoleDTO",
|
|
157
162
|
value: elem
|
|
158
|
-
})) &&
|
|
159
|
-
path: _path + ".rolesAuthz[" +
|
|
163
|
+
})) && _vo30(elem, _path + ".rolesAuthz[" + _index33 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
164
|
+
path: _path + ".rolesAuthz[" + _index33 + "]",
|
|
160
165
|
expected: "CreateRoleDTO",
|
|
161
166
|
value: elem
|
|
162
167
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -167,12 +172,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
167
172
|
path: _path + ".operationsAuthz",
|
|
168
173
|
expected: "(Array<OperationAuthzBootstrap> | undefined)",
|
|
169
174
|
value: input.operationsAuthz
|
|
170
|
-
})) && input.operationsAuthz.map((elem,
|
|
171
|
-
path: _path + ".operationsAuthz[" +
|
|
175
|
+
})) && input.operationsAuthz.map((elem, _index34) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
176
|
+
path: _path + ".operationsAuthz[" + _index34 + "]",
|
|
172
177
|
expected: "OperationAuthzBootstrap",
|
|
173
178
|
value: elem
|
|
174
|
-
})) &&
|
|
175
|
-
path: _path + ".operationsAuthz[" +
|
|
179
|
+
})) && _vo31(elem, _path + ".operationsAuthz[" + _index34 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
180
|
+
path: _path + ".operationsAuthz[" + _index34 + "]",
|
|
176
181
|
expected: "OperationAuthzBootstrap",
|
|
177
182
|
value: elem
|
|
178
183
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -183,12 +188,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
183
188
|
path: _path + ".modulesConfig",
|
|
184
189
|
expected: "(Array<UpdateModuleUIConfigDTO> | undefined)",
|
|
185
190
|
value: input.modulesConfig
|
|
186
|
-
})) && input.modulesConfig.map((elem,
|
|
187
|
-
path: _path + ".modulesConfig[" +
|
|
191
|
+
})) && input.modulesConfig.map((elem, _index35) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
192
|
+
path: _path + ".modulesConfig[" + _index35 + "]",
|
|
188
193
|
expected: "UpdateModuleUIConfigDTO",
|
|
189
194
|
value: elem
|
|
190
|
-
})) &&
|
|
191
|
-
path: _path + ".modulesConfig[" +
|
|
195
|
+
})) && _vo32(elem, _path + ".modulesConfig[" + _index35 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
196
|
+
path: _path + ".modulesConfig[" + _index35 + "]",
|
|
192
197
|
expected: "UpdateModuleUIConfigDTO",
|
|
193
198
|
value: elem
|
|
194
199
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -227,12 +232,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
227
232
|
path: _path + ".valueRules",
|
|
228
233
|
expected: "(Array<BootstrapValueRule> | undefined)",
|
|
229
234
|
value: input.valueRules
|
|
230
|
-
})) && input.valueRules.map((elem,
|
|
231
|
-
path: _path + ".valueRules[" +
|
|
235
|
+
})) && input.valueRules.map((elem, _index36) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
236
|
+
path: _path + ".valueRules[" + _index36 + "]",
|
|
232
237
|
expected: "BootstrapValueRule",
|
|
233
238
|
value: elem
|
|
234
|
-
})) && _vo4(elem, _path + ".valueRules[" +
|
|
235
|
-
path: _path + ".valueRules[" +
|
|
239
|
+
})) && _vo4(elem, _path + ".valueRules[" + _index36 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
240
|
+
path: _path + ".valueRules[" + _index36 + "]",
|
|
236
241
|
expected: "BootstrapValueRule",
|
|
237
242
|
value: elem
|
|
238
243
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -283,8 +288,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
283
288
|
path: _path + ".value",
|
|
284
289
|
expected: "(Array<string> | boolean | number | string)",
|
|
285
290
|
value: input.value
|
|
286
|
-
})) && input.value.map((elem,
|
|
287
|
-
path: _path + ".value[" +
|
|
291
|
+
})) && input.value.map((elem, _index37) => "string" === typeof elem || _report(_exceptionable, {
|
|
292
|
+
path: _path + ".value[" + _index37 + "]",
|
|
288
293
|
expected: "string",
|
|
289
294
|
value: elem
|
|
290
295
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -299,12 +304,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
299
304
|
path: _path + ".rules",
|
|
300
305
|
expected: "Array<BootstrapCondition>",
|
|
301
306
|
value: input.rules
|
|
302
|
-
})) && input.rules.map((elem,
|
|
303
|
-
path: _path + ".rules[" +
|
|
307
|
+
})) && input.rules.map((elem, _index38) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
308
|
+
path: _path + ".rules[" + _index38 + "]",
|
|
304
309
|
expected: "(BootstrapCompositeCondition | BootstrapLeafCondition)",
|
|
305
310
|
value: elem
|
|
306
|
-
})) && _vu0(elem, _path + ".rules[" +
|
|
307
|
-
path: _path + ".rules[" +
|
|
311
|
+
})) && _vu0(elem, _path + ".rules[" + _index38 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
312
|
+
path: _path + ".rules[" + _index38 + "]",
|
|
308
313
|
expected: "(BootstrapCompositeCondition | BootstrapLeafCondition)",
|
|
309
314
|
value: elem
|
|
310
315
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -347,8 +352,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
347
352
|
path: _path + ".dependsOn",
|
|
348
353
|
expected: "Array<string>",
|
|
349
354
|
value: input.dependsOn
|
|
350
|
-
})) && input.dependsOn.map((elem,
|
|
351
|
-
path: _path + ".dependsOn[" +
|
|
355
|
+
})) && input.dependsOn.map((elem, _index39) => "string" === typeof elem || _report(_exceptionable, {
|
|
356
|
+
path: _path + ".dependsOn[" + _index39 + "]",
|
|
352
357
|
expected: "string",
|
|
353
358
|
value: elem
|
|
354
359
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -407,6 +412,14 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
407
412
|
path: _path + ".isPublic",
|
|
408
413
|
expected: "(boolean | undefined)",
|
|
409
414
|
value: input.isPublic
|
|
415
|
+
}), undefined === input.tenantOverrides || ("object" === typeof input.tenantOverrides && null !== input.tenantOverrides && false === Array.isArray(input.tenantOverrides) || _report(_exceptionable, {
|
|
416
|
+
path: _path + ".tenantOverrides",
|
|
417
|
+
expected: "(ModuleTenantOverrides | undefined)",
|
|
418
|
+
value: input.tenantOverrides
|
|
419
|
+
})) && _vo21(input.tenantOverrides, _path + ".tenantOverrides", true && _exceptionable) || _report(_exceptionable, {
|
|
420
|
+
path: _path + ".tenantOverrides",
|
|
421
|
+
expected: "(ModuleTenantOverrides | undefined)",
|
|
422
|
+
value: input.tenantOverrides
|
|
410
423
|
}), undefined === input.id || "number" === typeof input.id || _report(_exceptionable, {
|
|
411
424
|
path: _path + ".id",
|
|
412
425
|
expected: "(number | undefined)",
|
|
@@ -415,7 +428,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
415
428
|
path: _path + ".serviceLocal",
|
|
416
429
|
expected: "(Partial<ServiceConfig> | undefined)",
|
|
417
430
|
value: input.serviceLocal
|
|
418
|
-
})) &&
|
|
431
|
+
})) && _vo23(input.serviceLocal, _path + ".serviceLocal", true && _exceptionable) || _report(_exceptionable, {
|
|
419
432
|
path: _path + ".serviceLocal",
|
|
420
433
|
expected: "(Partial<ServiceConfig> | undefined)",
|
|
421
434
|
value: input.serviceLocal
|
|
@@ -524,8 +537,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
524
537
|
path: _path + ".operations",
|
|
525
538
|
expected: "(Array<string> | undefined)",
|
|
526
539
|
value: input.operations
|
|
527
|
-
})) && input.operations.map((elem,
|
|
528
|
-
path: _path + ".operations[" +
|
|
540
|
+
})) && input.operations.map((elem, _index40) => "string" === typeof elem || _report(_exceptionable, {
|
|
541
|
+
path: _path + ".operations[" + _index40 + "]",
|
|
529
542
|
expected: "string",
|
|
530
543
|
value: elem
|
|
531
544
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -536,12 +549,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
536
549
|
path: _path + ".routes",
|
|
537
550
|
expected: "(Array<RouteAuthorization> | undefined)",
|
|
538
551
|
value: input.routes
|
|
539
|
-
})) && input.routes.map((elem,
|
|
540
|
-
path: _path + ".routes[" +
|
|
552
|
+
})) && input.routes.map((elem, _index41) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
553
|
+
path: _path + ".routes[" + _index41 + "]",
|
|
541
554
|
expected: "RouteAuthorization",
|
|
542
555
|
value: elem
|
|
543
|
-
})) && _vo17(elem, _path + ".routes[" +
|
|
544
|
-
path: _path + ".routes[" +
|
|
556
|
+
})) && _vo17(elem, _path + ".routes[" + _index41 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
557
|
+
path: _path + ".routes[" + _index41 + "]",
|
|
545
558
|
expected: "RouteAuthorization",
|
|
546
559
|
value: elem
|
|
547
560
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -552,8 +565,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
552
565
|
path: _path + ".methods",
|
|
553
566
|
expected: "(Array<HttpMethod> | undefined)",
|
|
554
567
|
value: input.methods
|
|
555
|
-
})) && input.methods.map((elem,
|
|
556
|
-
path: _path + ".methods[" +
|
|
568
|
+
})) && input.methods.map((elem, _index42) => "POST" === elem || "DELETE" === elem || "GET" === elem || "HEAD" === elem || "OPTIONS" === elem || "PUT" === elem || "PATCH" === elem || "CONNECT" === elem || "TRACE" === elem || _report(_exceptionable, {
|
|
569
|
+
path: _path + ".methods[" + _index42 + "]",
|
|
557
570
|
expected: "(\"CONNECT\" | \"DELETE\" | \"GET\" | \"HEAD\" | \"OPTIONS\" | \"PATCH\" | \"POST\" | \"PUT\" | \"TRACE\")",
|
|
558
571
|
value: elem
|
|
559
572
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -568,8 +581,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
568
581
|
path: _path + ".operations",
|
|
569
582
|
expected: "(Array<string> | undefined)",
|
|
570
583
|
value: input.operations
|
|
571
|
-
})) && input.operations.map((elem,
|
|
572
|
-
path: _path + ".operations[" +
|
|
584
|
+
})) && input.operations.map((elem, _index43) => "string" === typeof elem || _report(_exceptionable, {
|
|
585
|
+
path: _path + ".operations[" + _index43 + "]",
|
|
573
586
|
expected: "string",
|
|
574
587
|
value: elem
|
|
575
588
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -588,8 +601,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
588
601
|
path: _path + ".audience",
|
|
589
602
|
expected: "(Array<string> | string | undefined)",
|
|
590
603
|
value: input.audience
|
|
591
|
-
})) && input.audience.map((elem,
|
|
592
|
-
path: _path + ".audience[" +
|
|
604
|
+
})) && input.audience.map((elem, _index44) => "string" === typeof elem || _report(_exceptionable, {
|
|
605
|
+
path: _path + ".audience[" + _index44 + "]",
|
|
593
606
|
expected: "string",
|
|
594
607
|
value: elem
|
|
595
608
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -600,8 +613,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
600
613
|
path: _path + ".scopesSupported",
|
|
601
614
|
expected: "(Array<string> | undefined)",
|
|
602
615
|
value: input.scopesSupported
|
|
603
|
-
})) && input.scopesSupported.map((elem,
|
|
604
|
-
path: _path + ".scopesSupported[" +
|
|
616
|
+
})) && input.scopesSupported.map((elem, _index45) => "string" === typeof elem || _report(_exceptionable, {
|
|
617
|
+
path: _path + ".scopesSupported[" + _index45 + "]",
|
|
605
618
|
expected: "string",
|
|
606
619
|
value: elem
|
|
607
620
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -632,12 +645,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
632
645
|
path: _path + ".tools",
|
|
633
646
|
expected: "(Array<McpToolAuthorization> | undefined)",
|
|
634
647
|
value: input.tools
|
|
635
|
-
})) && input.tools.map((elem,
|
|
636
|
-
path: _path + ".tools[" +
|
|
648
|
+
})) && input.tools.map((elem, _index46) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
649
|
+
path: _path + ".tools[" + _index46 + "]",
|
|
637
650
|
expected: "McpToolAuthorization",
|
|
638
651
|
value: elem
|
|
639
|
-
})) && _vo20(elem, _path + ".tools[" +
|
|
640
|
-
path: _path + ".tools[" +
|
|
652
|
+
})) && _vo20(elem, _path + ".tools[" + _index46 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
653
|
+
path: _path + ".tools[" + _index46 + "]",
|
|
641
654
|
expected: "McpToolAuthorization",
|
|
642
655
|
value: elem
|
|
643
656
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -652,8 +665,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
652
665
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
653
666
|
expected: "Array<string>",
|
|
654
667
|
value: value
|
|
655
|
-
})) && value.map((elem,
|
|
656
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key) + "[" +
|
|
668
|
+
})) && value.map((elem, _index47) => "string" === typeof elem || _report(_exceptionable, {
|
|
669
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key) + "[" + _index47 + "]",
|
|
657
670
|
expected: "string",
|
|
658
671
|
value: elem
|
|
659
672
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -669,8 +682,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
669
682
|
path: _path + ".operations",
|
|
670
683
|
expected: "Array<string>",
|
|
671
684
|
value: input.operations
|
|
672
|
-
})) && input.operations.map((elem,
|
|
673
|
-
path: _path + ".operations[" +
|
|
685
|
+
})) && input.operations.map((elem, _index48) => "string" === typeof elem || _report(_exceptionable, {
|
|
686
|
+
path: _path + ".operations[" + _index48 + "]",
|
|
674
687
|
expected: "string",
|
|
675
688
|
value: elem
|
|
676
689
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -681,7 +694,96 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
681
694
|
path: _path + ".operator",
|
|
682
695
|
expected: "(\"AND\" | \"OR\" | undefined)",
|
|
683
696
|
value: input.operator
|
|
684
|
-
})].every(flag => flag); const _vo21 = (input, _path, _exceptionable = true) => [
|
|
697
|
+
})].every(flag => flag); const _vo21 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
698
|
+
const value = input[key];
|
|
699
|
+
if (undefined === value)
|
|
700
|
+
return true;
|
|
701
|
+
return ("object" === typeof value && null !== value && false === Array.isArray(value) || _report(_exceptionable, {
|
|
702
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
703
|
+
expected: "ModuleTenantOverride",
|
|
704
|
+
value: value
|
|
705
|
+
})) && _vo22(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
706
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
707
|
+
expected: "ModuleTenantOverride",
|
|
708
|
+
value: value
|
|
709
|
+
});
|
|
710
|
+
}).every(flag => flag)].every(flag => flag); const _vo22 = (input, _path, _exceptionable = true) => [undefined === input.displayName || "string" === typeof input.displayName || _report(_exceptionable, {
|
|
711
|
+
path: _path + ".displayName",
|
|
712
|
+
expected: "(string | undefined)",
|
|
713
|
+
value: input.displayName
|
|
714
|
+
}), 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 || _report(_exceptionable, {
|
|
715
|
+
path: _path + ".type",
|
|
716
|
+
expected: "(\"app\" | \"cloud-function\" | \"documentation\" | \"fragment\" | \"mcp\" | \"service\" | \"tool\" | \"utility\" | undefined)",
|
|
717
|
+
value: input.type
|
|
718
|
+
}), undefined === input.service || ("object" === typeof input.service && null !== input.service && false === Array.isArray(input.service) || _report(_exceptionable, {
|
|
719
|
+
path: _path + ".service",
|
|
720
|
+
expected: "(Partial<ServiceConfig> | undefined)",
|
|
721
|
+
value: input.service
|
|
722
|
+
})) && _vo23(input.service, _path + ".service", true && _exceptionable) || _report(_exceptionable, {
|
|
723
|
+
path: _path + ".service",
|
|
724
|
+
expected: "(Partial<ServiceConfig> | undefined)",
|
|
725
|
+
value: input.service
|
|
726
|
+
}), undefined === input.dependsOn || (Array.isArray(input.dependsOn) || _report(_exceptionable, {
|
|
727
|
+
path: _path + ".dependsOn",
|
|
728
|
+
expected: "(Array<string> | undefined)",
|
|
729
|
+
value: input.dependsOn
|
|
730
|
+
})) && input.dependsOn.map((elem, _index49) => "string" === typeof elem || _report(_exceptionable, {
|
|
731
|
+
path: _path + ".dependsOn[" + _index49 + "]",
|
|
732
|
+
expected: "string",
|
|
733
|
+
value: elem
|
|
734
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
735
|
+
path: _path + ".dependsOn",
|
|
736
|
+
expected: "(Array<string> | undefined)",
|
|
737
|
+
value: input.dependsOn
|
|
738
|
+
}), undefined === input.commonPaths || ("object" === typeof input.commonPaths && null !== input.commonPaths && false === Array.isArray(input.commonPaths) || _report(_exceptionable, {
|
|
739
|
+
path: _path + ".commonPaths",
|
|
740
|
+
expected: "(Partial<CommonPathsMetadata> | undefined)",
|
|
741
|
+
value: input.commonPaths
|
|
742
|
+
})) && _vo24(input.commonPaths, _path + ".commonPaths", true && _exceptionable) || _report(_exceptionable, {
|
|
743
|
+
path: _path + ".commonPaths",
|
|
744
|
+
expected: "(Partial<CommonPathsMetadata> | undefined)",
|
|
745
|
+
value: input.commonPaths
|
|
746
|
+
}), undefined === input.ui || ("object" === typeof input.ui && null !== input.ui && false === Array.isArray(input.ui) || _report(_exceptionable, {
|
|
747
|
+
path: _path + ".ui",
|
|
748
|
+
expected: "(Partial<UIConfig> | undefined)",
|
|
749
|
+
value: input.ui
|
|
750
|
+
})) && _vo25(input.ui, _path + ".ui", true && _exceptionable) || _report(_exceptionable, {
|
|
751
|
+
path: _path + ".ui",
|
|
752
|
+
expected: "(Partial<UIConfig> | undefined)",
|
|
753
|
+
value: input.ui
|
|
754
|
+
}), undefined === input.cloudFunction || ("object" === typeof input.cloudFunction && null !== input.cloudFunction && false === Array.isArray(input.cloudFunction) || _report(_exceptionable, {
|
|
755
|
+
path: _path + ".cloudFunction",
|
|
756
|
+
expected: "(Partial<CloudFunctionConfig> | undefined)",
|
|
757
|
+
value: input.cloudFunction
|
|
758
|
+
})) && _vo26(input.cloudFunction, _path + ".cloudFunction", true && _exceptionable) || _report(_exceptionable, {
|
|
759
|
+
path: _path + ".cloudFunction",
|
|
760
|
+
expected: "(Partial<CloudFunctionConfig> | undefined)",
|
|
761
|
+
value: input.cloudFunction
|
|
762
|
+
}), undefined === input.authorization || ("object" === typeof input.authorization && null !== input.authorization && false === Array.isArray(input.authorization) || _report(_exceptionable, {
|
|
763
|
+
path: _path + ".authorization",
|
|
764
|
+
expected: "(Partial<AuthorizationMetadata> | undefined)",
|
|
765
|
+
value: input.authorization
|
|
766
|
+
})) && _vo27(input.authorization, _path + ".authorization", true && _exceptionable) || _report(_exceptionable, {
|
|
767
|
+
path: _path + ".authorization",
|
|
768
|
+
expected: "(Partial<AuthorizationMetadata> | undefined)",
|
|
769
|
+
value: input.authorization
|
|
770
|
+
}), undefined === input.mcp || ("object" === typeof input.mcp && null !== input.mcp && false === Array.isArray(input.mcp) || _report(_exceptionable, {
|
|
771
|
+
path: _path + ".mcp",
|
|
772
|
+
expected: "(Partial<McpResourceConfig> | undefined)",
|
|
773
|
+
value: input.mcp
|
|
774
|
+
})) && _vo28(input.mcp, _path + ".mcp", true && _exceptionable) || _report(_exceptionable, {
|
|
775
|
+
path: _path + ".mcp",
|
|
776
|
+
expected: "(Partial<McpResourceConfig> | undefined)",
|
|
777
|
+
value: input.mcp
|
|
778
|
+
}), undefined === input.application || "string" === typeof input.application || _report(_exceptionable, {
|
|
779
|
+
path: _path + ".application",
|
|
780
|
+
expected: "(string | undefined)",
|
|
781
|
+
value: input.application
|
|
782
|
+
}), undefined === input.isPublic || "boolean" === typeof input.isPublic || _report(_exceptionable, {
|
|
783
|
+
path: _path + ".isPublic",
|
|
784
|
+
expected: "(boolean | undefined)",
|
|
785
|
+
value: input.isPublic
|
|
786
|
+
})].every(flag => flag); const _vo23 = (input, _path, _exceptionable = true) => [undefined === input.host || "string" === typeof input.host || _report(_exceptionable, {
|
|
685
787
|
path: _path + ".host",
|
|
686
788
|
expected: "(string | undefined)",
|
|
687
789
|
value: input.host
|
|
@@ -697,7 +799,151 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
697
799
|
path: _path + ".includeBaseURL",
|
|
698
800
|
expected: "(boolean | undefined)",
|
|
699
801
|
value: input.includeBaseURL
|
|
700
|
-
})].every(flag => flag); const
|
|
802
|
+
})].every(flag => flag); const _vo24 = (input, _path, _exceptionable = true) => [undefined === input.apiDocs || "string" === typeof input.apiDocs || _report(_exceptionable, {
|
|
803
|
+
path: _path + ".apiDocs",
|
|
804
|
+
expected: "(string | undefined)",
|
|
805
|
+
value: input.apiDocs
|
|
806
|
+
}), undefined === input.version || "string" === typeof input.version || _report(_exceptionable, {
|
|
807
|
+
path: _path + ".version",
|
|
808
|
+
expected: "(string | undefined)",
|
|
809
|
+
value: input.version
|
|
810
|
+
}), undefined === input.health || "string" === typeof input.health || _report(_exceptionable, {
|
|
811
|
+
path: _path + ".health",
|
|
812
|
+
expected: "(string | undefined)",
|
|
813
|
+
value: input.health
|
|
814
|
+
}), undefined === input.changelog || "string" === typeof input.changelog || _report(_exceptionable, {
|
|
815
|
+
path: _path + ".changelog",
|
|
816
|
+
expected: "(string | undefined)",
|
|
817
|
+
value: input.changelog
|
|
818
|
+
})].every(flag => flag); const _vo25 = (input, _path, _exceptionable = true) => [undefined === input.route || "string" === typeof input.route || _report(_exceptionable, {
|
|
819
|
+
path: _path + ".route",
|
|
820
|
+
expected: "(string | undefined)",
|
|
821
|
+
value: input.route
|
|
822
|
+
}), null === input.mountAtSelector || undefined === input.mountAtSelector || "string" === typeof input.mountAtSelector || _report(_exceptionable, {
|
|
823
|
+
path: _path + ".mountAtSelector",
|
|
824
|
+
expected: "(null | string | undefined)",
|
|
825
|
+
value: input.mountAtSelector
|
|
826
|
+
}), undefined === input.bundleFile || "string" === typeof input.bundleFile || _report(_exceptionable, {
|
|
827
|
+
path: _path + ".bundleFile",
|
|
828
|
+
expected: "(string | undefined)",
|
|
829
|
+
value: input.bundleFile
|
|
830
|
+
}), undefined === input.customProps || ("object" === typeof input.customProps && null !== input.customProps && false === Array.isArray(input.customProps) || _report(_exceptionable, {
|
|
831
|
+
path: _path + ".customProps",
|
|
832
|
+
expected: "(ModuleProps | undefined)",
|
|
833
|
+
value: input.customProps
|
|
834
|
+
})) && _vo12(input.customProps, _path + ".customProps", true && _exceptionable) || _report(_exceptionable, {
|
|
835
|
+
path: _path + ".customProps",
|
|
836
|
+
expected: "(ModuleProps | undefined)",
|
|
837
|
+
value: input.customProps
|
|
838
|
+
}), undefined === input.shell || "boolean" === typeof input.shell || _report(_exceptionable, {
|
|
839
|
+
path: _path + ".shell",
|
|
840
|
+
expected: "(boolean | undefined)",
|
|
841
|
+
value: input.shell
|
|
842
|
+
}), undefined === input.isPlatformCustomization || "boolean" === typeof input.isPlatformCustomization || _report(_exceptionable, {
|
|
843
|
+
path: _path + ".isPlatformCustomization",
|
|
844
|
+
expected: "(boolean | undefined)",
|
|
845
|
+
value: input.isPlatformCustomization
|
|
846
|
+
})].every(flag => flag); const _vo26 = (input, _path, _exceptionable = true) => [undefined === input.provider || "aws" === input.provider || _report(_exceptionable, {
|
|
847
|
+
path: _path + ".provider",
|
|
848
|
+
expected: "(\"aws\" | undefined)",
|
|
849
|
+
value: input.provider
|
|
850
|
+
}), undefined === input.requiresSignature || "boolean" === typeof input.requiresSignature || _report(_exceptionable, {
|
|
851
|
+
path: _path + ".requiresSignature",
|
|
852
|
+
expected: "(boolean | undefined)",
|
|
853
|
+
value: input.requiresSignature
|
|
854
|
+
})].every(flag => flag); const _vo27 = (input, _path, _exceptionable = true) => [undefined === input.operations || (Array.isArray(input.operations) || _report(_exceptionable, {
|
|
855
|
+
path: _path + ".operations",
|
|
856
|
+
expected: "(Array<string> | undefined)",
|
|
857
|
+
value: input.operations
|
|
858
|
+
})) && input.operations.map((elem, _index50) => "string" === typeof elem || _report(_exceptionable, {
|
|
859
|
+
path: _path + ".operations[" + _index50 + "]",
|
|
860
|
+
expected: "string",
|
|
861
|
+
value: elem
|
|
862
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
863
|
+
path: _path + ".operations",
|
|
864
|
+
expected: "(Array<string> | undefined)",
|
|
865
|
+
value: input.operations
|
|
866
|
+
}), undefined === input.routes || (Array.isArray(input.routes) || _report(_exceptionable, {
|
|
867
|
+
path: _path + ".routes",
|
|
868
|
+
expected: "(Array<RouteAuthorization> | undefined)",
|
|
869
|
+
value: input.routes
|
|
870
|
+
})) && input.routes.map((elem, _index51) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
871
|
+
path: _path + ".routes[" + _index51 + "]",
|
|
872
|
+
expected: "RouteAuthorization",
|
|
873
|
+
value: elem
|
|
874
|
+
})) && _vo17(elem, _path + ".routes[" + _index51 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
875
|
+
path: _path + ".routes[" + _index51 + "]",
|
|
876
|
+
expected: "RouteAuthorization",
|
|
877
|
+
value: elem
|
|
878
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
879
|
+
path: _path + ".routes",
|
|
880
|
+
expected: "(Array<RouteAuthorization> | undefined)",
|
|
881
|
+
value: input.routes
|
|
882
|
+
})].every(flag => flag); const _vo28 = (input, _path, _exceptionable = true) => [(null !== input.audience || _report(_exceptionable, {
|
|
883
|
+
path: _path + ".audience",
|
|
884
|
+
expected: "(Array<string> | string | undefined)",
|
|
885
|
+
value: input.audience
|
|
886
|
+
})) && (undefined === input.audience || "string" === typeof input.audience || (Array.isArray(input.audience) || _report(_exceptionable, {
|
|
887
|
+
path: _path + ".audience",
|
|
888
|
+
expected: "(Array<string> | string | undefined)",
|
|
889
|
+
value: input.audience
|
|
890
|
+
})) && input.audience.map((elem, _index52) => "string" === typeof elem || _report(_exceptionable, {
|
|
891
|
+
path: _path + ".audience[" + _index52 + "]",
|
|
892
|
+
expected: "string",
|
|
893
|
+
value: elem
|
|
894
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
895
|
+
path: _path + ".audience",
|
|
896
|
+
expected: "(Array<string> | string | undefined)",
|
|
897
|
+
value: input.audience
|
|
898
|
+
})), undefined === input.scopesSupported || (Array.isArray(input.scopesSupported) || _report(_exceptionable, {
|
|
899
|
+
path: _path + ".scopesSupported",
|
|
900
|
+
expected: "(Array<string> | undefined)",
|
|
901
|
+
value: input.scopesSupported
|
|
902
|
+
})) && input.scopesSupported.map((elem, _index53) => "string" === typeof elem || _report(_exceptionable, {
|
|
903
|
+
path: _path + ".scopesSupported[" + _index53 + "]",
|
|
904
|
+
expected: "string",
|
|
905
|
+
value: elem
|
|
906
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
907
|
+
path: _path + ".scopesSupported",
|
|
908
|
+
expected: "(Array<string> | undefined)",
|
|
909
|
+
value: input.scopesSupported
|
|
910
|
+
}), undefined === input.resourceName || "string" === typeof input.resourceName || _report(_exceptionable, {
|
|
911
|
+
path: _path + ".resourceName",
|
|
912
|
+
expected: "(string | undefined)",
|
|
913
|
+
value: input.resourceName
|
|
914
|
+
}), undefined === input.authServerProvider || "string" === typeof input.authServerProvider || _report(_exceptionable, {
|
|
915
|
+
path: _path + ".authServerProvider",
|
|
916
|
+
expected: "(string | undefined)",
|
|
917
|
+
value: input.authServerProvider
|
|
918
|
+
}), undefined === input.origin || "in-house" === input.origin || _report(_exceptionable, {
|
|
919
|
+
path: _path + ".origin",
|
|
920
|
+
expected: "(\"in-house\" | undefined)",
|
|
921
|
+
value: input.origin
|
|
922
|
+
}), undefined === input.scopeOperationMap || ("object" === typeof input.scopeOperationMap && null !== input.scopeOperationMap && false === Array.isArray(input.scopeOperationMap) || _report(_exceptionable, {
|
|
923
|
+
path: _path + ".scopeOperationMap",
|
|
924
|
+
expected: "(Record<string, Array<string>> | undefined)",
|
|
925
|
+
value: input.scopeOperationMap
|
|
926
|
+
})) && _vo19(input.scopeOperationMap, _path + ".scopeOperationMap", true && _exceptionable) || _report(_exceptionable, {
|
|
927
|
+
path: _path + ".scopeOperationMap",
|
|
928
|
+
expected: "(Record<string, Array<string>> | undefined)",
|
|
929
|
+
value: input.scopeOperationMap
|
|
930
|
+
}), undefined === input.tools || (Array.isArray(input.tools) || _report(_exceptionable, {
|
|
931
|
+
path: _path + ".tools",
|
|
932
|
+
expected: "(Array<McpToolAuthorization> | undefined)",
|
|
933
|
+
value: input.tools
|
|
934
|
+
})) && input.tools.map((elem, _index54) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
935
|
+
path: _path + ".tools[" + _index54 + "]",
|
|
936
|
+
expected: "McpToolAuthorization",
|
|
937
|
+
value: elem
|
|
938
|
+
})) && _vo20(elem, _path + ".tools[" + _index54 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
939
|
+
path: _path + ".tools[" + _index54 + "]",
|
|
940
|
+
expected: "McpToolAuthorization",
|
|
941
|
+
value: elem
|
|
942
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
943
|
+
path: _path + ".tools",
|
|
944
|
+
expected: "(Array<McpToolAuthorization> | undefined)",
|
|
945
|
+
value: input.tools
|
|
946
|
+
})].every(flag => flag); const _vo29 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
701
947
|
path: _path + ".name",
|
|
702
948
|
expected: "string",
|
|
703
949
|
value: input.name
|
|
@@ -717,15 +963,15 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
717
963
|
path: _path + ".allowedTenants",
|
|
718
964
|
expected: "(Array<string> | undefined)",
|
|
719
965
|
value: input.allowedTenants
|
|
720
|
-
})) && input.allowedTenants.map((elem,
|
|
721
|
-
path: _path + ".allowedTenants[" +
|
|
966
|
+
})) && input.allowedTenants.map((elem, _index55) => "string" === typeof elem || _report(_exceptionable, {
|
|
967
|
+
path: _path + ".allowedTenants[" + _index55 + "]",
|
|
722
968
|
expected: "string",
|
|
723
969
|
value: elem
|
|
724
970
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
725
971
|
path: _path + ".allowedTenants",
|
|
726
972
|
expected: "(Array<string> | undefined)",
|
|
727
973
|
value: input.allowedTenants
|
|
728
|
-
})].every(flag => flag); const
|
|
974
|
+
})].every(flag => flag); const _vo30 = (input, _path, _exceptionable = true) => [undefined === input.applicationName || "string" === typeof input.applicationName || _report(_exceptionable, {
|
|
729
975
|
path: _path + ".applicationName",
|
|
730
976
|
expected: "(string | undefined)",
|
|
731
977
|
value: input.applicationName
|
|
@@ -737,12 +983,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
737
983
|
path: _path + ".description",
|
|
738
984
|
expected: "(string | undefined)",
|
|
739
985
|
value: input.description
|
|
740
|
-
})].every(flag => flag); const
|
|
986
|
+
})].every(flag => flag); const _vo31 = (input, _path, _exceptionable = true) => [undefined === input.roles || (Array.isArray(input.roles) || _report(_exceptionable, {
|
|
741
987
|
path: _path + ".roles",
|
|
742
988
|
expected: "(Array<string> | undefined)",
|
|
743
989
|
value: input.roles
|
|
744
|
-
})) && input.roles.map((elem,
|
|
745
|
-
path: _path + ".roles[" +
|
|
990
|
+
})) && input.roles.map((elem, _index56) => "string" === typeof elem || _report(_exceptionable, {
|
|
991
|
+
path: _path + ".roles[" + _index56 + "]",
|
|
746
992
|
expected: "string",
|
|
747
993
|
value: elem
|
|
748
994
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -761,7 +1007,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
761
1007
|
path: _path + ".applicationName",
|
|
762
1008
|
expected: "(string | undefined)",
|
|
763
1009
|
value: input.applicationName
|
|
764
|
-
})].every(flag => flag); const
|
|
1010
|
+
})].every(flag => flag); const _vo32 = (input, _path, _exceptionable = true) => ["string" === typeof input.moduleName || _report(_exceptionable, {
|
|
765
1011
|
path: _path + ".moduleName",
|
|
766
1012
|
expected: "string",
|
|
767
1013
|
value: input.moduleName
|
|
@@ -818,7 +1064,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
818
1064
|
const invalidObject = {
|
|
819
1065
|
invalidField: 'invalidValue',
|
|
820
1066
|
};
|
|
821
|
-
const result = (() => { const _io0 = input => "object" === typeof input.syncConfig && null !== input.syncConfig && _io1(input.syncConfig) && (undefined === input.sharedLibraries || Array.isArray(input.sharedLibraries) && input.sharedLibraries.every(elem => "object" === typeof elem && null !== elem && _io2(elem))) && (undefined === input.featureFlags || Array.isArray(input.featureFlags) && input.featureFlags.every(elem => "object" === typeof elem && null !== elem && _io3(elem))) && (undefined === input.catalog || Array.isArray(input.catalog) && input.catalog.every(elem => "object" === typeof elem && null !== elem && _io8(elem))) && (undefined === input.applicationsAuthz || Array.isArray(input.applicationsAuthz) && input.applicationsAuthz.every(elem => "object" === typeof elem && null !== elem &&
|
|
1067
|
+
const result = (() => { const _io0 = input => "object" === typeof input.syncConfig && null !== input.syncConfig && _io1(input.syncConfig) && (undefined === input.sharedLibraries || Array.isArray(input.sharedLibraries) && input.sharedLibraries.every(elem => "object" === typeof elem && null !== elem && _io2(elem))) && (undefined === input.featureFlags || Array.isArray(input.featureFlags) && input.featureFlags.every(elem => "object" === typeof elem && null !== elem && _io3(elem))) && (undefined === input.catalog || Array.isArray(input.catalog) && input.catalog.every(elem => "object" === typeof elem && null !== elem && _io8(elem))) && (undefined === input.applicationsAuthz || Array.isArray(input.applicationsAuthz) && input.applicationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io29(elem))) && (undefined === input.rolesAuthz || Array.isArray(input.rolesAuthz) && input.rolesAuthz.every(elem => "object" === typeof elem && null !== elem && _io30(elem))) && (undefined === input.operationsAuthz || Array.isArray(input.operationsAuthz) && input.operationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io31(elem))) && (undefined === input.modulesConfig || Array.isArray(input.modulesConfig) && input.modulesConfig.every(elem => "object" === typeof elem && null !== elem && _io32(elem))); const _io1 = input => "string" === typeof input.scopedTo; const _io2 = input => "string" === typeof input.name && "string" === typeof input.url && (undefined === input.description || "string" === typeof input.description); const _io3 = input => "string" === typeof input.name && (undefined === input.description || "string" === typeof input.description) && (undefined === input.visible || "boolean" === typeof input.visible) && true && (undefined === input.valueRules || Array.isArray(input.valueRules) && input.valueRules.every(elem => "object" === typeof elem && null !== elem && _io4(elem))) && (undefined === input.applicationName || "string" === typeof input.applicationName); const _io4 = input => (undefined === input.name || "string" === typeof input.name) && ("object" === typeof input.condition && null !== input.condition && _iu0(input.condition)) && true && (undefined === input.rollout || "object" === typeof input.rollout && null !== input.rollout && _io7(input.rollout)); const _io5 = input => "string" === typeof input.attribute && ("eq" === input.operator || "neq" === input.operator || "in" === input.operator || "nin" === input.operator) && (null !== input.value && undefined !== input.value && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem))); const _io6 = input => ("AND" === input.operator || "OR" === input.operator) && (Array.isArray(input.rules) && input.rules.every(elem => "object" === typeof elem && null !== elem && _iu0(elem))); const _io7 = input => "number" === typeof input.percentage && "string" === typeof input.attribute; const _io8 = 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 && _io9(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) && _io10(input.commonPaths)) && (undefined === input.ui || "object" === typeof input.ui && null !== input.ui && _io11(input.ui)) && (undefined === input.cloudFunction || "object" === typeof input.cloudFunction && null !== input.cloudFunction && _io15(input.cloudFunction)) && (undefined === input.authorization || "object" === typeof input.authorization && null !== input.authorization && false === Array.isArray(input.authorization) && _io16(input.authorization)) && (undefined === input.mcp || "object" === typeof input.mcp && null !== input.mcp && _io18(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) && _io21(input.tenantOverrides)) && (undefined === input.id || "number" === typeof input.id) && (undefined === input.serviceLocal || "object" === typeof input.serviceLocal && null !== input.serviceLocal && false === Array.isArray(input.serviceLocal) && _io23(input.serviceLocal)); const _io9 = input => "string" === typeof input.host && "number" === typeof input.port && (undefined === input.protocol || "string" === typeof input.protocol) && (undefined === input.includeBaseURL || "boolean" === typeof input.includeBaseURL); const _io10 = 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 _io11 = input => "string" === typeof input.route && (null === input.mountAtSelector || undefined === input.mountAtSelector || "string" === typeof input.mountAtSelector) && "string" === typeof input.bundleFile && ("object" === typeof input.customProps && null !== input.customProps && false === Array.isArray(input.customProps) && _io12(input.customProps)) && (undefined === input.shell || "boolean" === typeof input.shell) && (undefined === input.isPlatformCustomization || "boolean" === typeof input.isPlatformCustomization); const _io12 = input => (undefined === input.tenantOverrides || "object" === typeof input.tenantOverrides && null !== input.tenantOverrides && false === Array.isArray(input.tenantOverrides) && _io13(input.tenantOverrides)) && Object.keys(input).every(key => {
|
|
822
1068
|
if (["tenantOverrides"].some(prop => key === prop))
|
|
823
1069
|
return true;
|
|
824
1070
|
const value = input[key];
|
|
@@ -840,7 +1086,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
840
1086
|
if (undefined === value)
|
|
841
1087
|
return true;
|
|
842
1088
|
return Array.isArray(value) && value.every(elem => "string" === typeof elem);
|
|
843
|
-
}); const _io20 = 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 _io21 = input =>
|
|
1089
|
+
}); const _io20 = 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 _io21 = input => Object.keys(input).every(key => {
|
|
1090
|
+
const value = input[key];
|
|
1091
|
+
if (undefined === value)
|
|
1092
|
+
return true;
|
|
1093
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io22(value);
|
|
1094
|
+
}); const _io22 = 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) && _io23(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) && _io24(input.commonPaths)) && (undefined === input.ui || "object" === typeof input.ui && null !== input.ui && false === Array.isArray(input.ui) && _io25(input.ui)) && (undefined === input.cloudFunction || "object" === typeof input.cloudFunction && null !== input.cloudFunction && false === Array.isArray(input.cloudFunction) && _io26(input.cloudFunction)) && (undefined === input.authorization || "object" === typeof input.authorization && null !== input.authorization && false === Array.isArray(input.authorization) && _io27(input.authorization)) && (undefined === input.mcp || "object" === typeof input.mcp && null !== input.mcp && false === Array.isArray(input.mcp) && _io28(input.mcp)) && (undefined === input.application || "string" === typeof input.application) && (undefined === input.isPublic || "boolean" === typeof input.isPublic); const _io23 = 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 _io24 = 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 _io25 = 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) && _io12(input.customProps)) && (undefined === input.shell || "boolean" === typeof input.shell) && (undefined === input.isPlatformCustomization || "boolean" === typeof input.isPlatformCustomization); const _io26 = input => (undefined === input.provider || "aws" === input.provider) && (undefined === input.requiresSignature || "boolean" === typeof input.requiresSignature); const _io27 = 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 && _io17(elem))); const _io28 = 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) && _io19(input.scopeOperationMap)) && (undefined === input.tools || Array.isArray(input.tools) && input.tools.every(elem => "object" === typeof elem && null !== elem && _io20(elem))); const _io29 = input => "string" === typeof input.name && (undefined === input.displayName || "string" === typeof input.displayName) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.allowedByDefault || "boolean" === typeof input.allowedByDefault) && (undefined === input.allowedTenants || Array.isArray(input.allowedTenants) && input.allowedTenants.every(elem => "string" === typeof elem)); const _io30 = input => (undefined === input.applicationName || "string" === typeof input.applicationName) && "string" === typeof input.name && (undefined === input.description || "string" === typeof input.description); const _io31 = input => (undefined === input.roles || Array.isArray(input.roles) && input.roles.every(elem => "string" === typeof elem)) && "string" === typeof input.name && (undefined === input.description || "string" === typeof input.description) && (undefined === input.applicationName || "string" === typeof input.applicationName); const _io32 = input => "string" === typeof input.moduleName && ("object" === typeof input.customProps && null !== input.customProps && false === Array.isArray(input.customProps) && _io14(input.customProps)); const _iu0 = input => (() => {
|
|
844
1095
|
if ("eq" === input.operator || "neq" === input.operator || "in" === input.operator || "nin" === input.operator)
|
|
845
1096
|
return _io5(input);
|
|
846
1097
|
else if ("AND" === input.operator || "OR" === input.operator)
|
|
@@ -859,12 +1110,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
859
1110
|
path: _path + ".sharedLibraries",
|
|
860
1111
|
expected: "(Array<CreateSharedLibraryDTO> | undefined)",
|
|
861
1112
|
value: input.sharedLibraries
|
|
862
|
-
})) && input.sharedLibraries.map((elem,
|
|
863
|
-
path: _path + ".sharedLibraries[" +
|
|
1113
|
+
})) && input.sharedLibraries.map((elem, _index29) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1114
|
+
path: _path + ".sharedLibraries[" + _index29 + "]",
|
|
864
1115
|
expected: "CreateSharedLibraryDTO",
|
|
865
1116
|
value: elem
|
|
866
|
-
})) && _vo2(elem, _path + ".sharedLibraries[" +
|
|
867
|
-
path: _path + ".sharedLibraries[" +
|
|
1117
|
+
})) && _vo2(elem, _path + ".sharedLibraries[" + _index29 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1118
|
+
path: _path + ".sharedLibraries[" + _index29 + "]",
|
|
868
1119
|
expected: "CreateSharedLibraryDTO",
|
|
869
1120
|
value: elem
|
|
870
1121
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -875,12 +1126,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
875
1126
|
path: _path + ".featureFlags",
|
|
876
1127
|
expected: "(Array<BootstrapFeatureFlag> | undefined)",
|
|
877
1128
|
value: input.featureFlags
|
|
878
|
-
})) && input.featureFlags.map((elem,
|
|
879
|
-
path: _path + ".featureFlags[" +
|
|
1129
|
+
})) && input.featureFlags.map((elem, _index30) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1130
|
+
path: _path + ".featureFlags[" + _index30 + "]",
|
|
880
1131
|
expected: "BootstrapFeatureFlag",
|
|
881
1132
|
value: elem
|
|
882
|
-
})) && _vo3(elem, _path + ".featureFlags[" +
|
|
883
|
-
path: _path + ".featureFlags[" +
|
|
1133
|
+
})) && _vo3(elem, _path + ".featureFlags[" + _index30 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1134
|
+
path: _path + ".featureFlags[" + _index30 + "]",
|
|
884
1135
|
expected: "BootstrapFeatureFlag",
|
|
885
1136
|
value: elem
|
|
886
1137
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -891,12 +1142,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
891
1142
|
path: _path + ".catalog",
|
|
892
1143
|
expected: "(Array<BootstrapModule> | undefined)",
|
|
893
1144
|
value: input.catalog
|
|
894
|
-
})) && input.catalog.map((elem,
|
|
895
|
-
path: _path + ".catalog[" +
|
|
1145
|
+
})) && input.catalog.map((elem, _index31) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1146
|
+
path: _path + ".catalog[" + _index31 + "]",
|
|
896
1147
|
expected: "BootstrapModule",
|
|
897
1148
|
value: elem
|
|
898
|
-
})) && _vo8(elem, _path + ".catalog[" +
|
|
899
|
-
path: _path + ".catalog[" +
|
|
1149
|
+
})) && _vo8(elem, _path + ".catalog[" + _index31 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1150
|
+
path: _path + ".catalog[" + _index31 + "]",
|
|
900
1151
|
expected: "BootstrapModule",
|
|
901
1152
|
value: elem
|
|
902
1153
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -907,12 +1158,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
907
1158
|
path: _path + ".applicationsAuthz",
|
|
908
1159
|
expected: "(Array<CreateApplicationDTO> | undefined)",
|
|
909
1160
|
value: input.applicationsAuthz
|
|
910
|
-
})) && input.applicationsAuthz.map((elem,
|
|
911
|
-
path: _path + ".applicationsAuthz[" +
|
|
1161
|
+
})) && input.applicationsAuthz.map((elem, _index32) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1162
|
+
path: _path + ".applicationsAuthz[" + _index32 + "]",
|
|
912
1163
|
expected: "CreateApplicationDTO",
|
|
913
1164
|
value: elem
|
|
914
|
-
})) &&
|
|
915
|
-
path: _path + ".applicationsAuthz[" +
|
|
1165
|
+
})) && _vo29(elem, _path + ".applicationsAuthz[" + _index32 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1166
|
+
path: _path + ".applicationsAuthz[" + _index32 + "]",
|
|
916
1167
|
expected: "CreateApplicationDTO",
|
|
917
1168
|
value: elem
|
|
918
1169
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -923,12 +1174,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
923
1174
|
path: _path + ".rolesAuthz",
|
|
924
1175
|
expected: "(Array<CreateRoleDTO> | undefined)",
|
|
925
1176
|
value: input.rolesAuthz
|
|
926
|
-
})) && input.rolesAuthz.map((elem,
|
|
927
|
-
path: _path + ".rolesAuthz[" +
|
|
1177
|
+
})) && input.rolesAuthz.map((elem, _index33) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1178
|
+
path: _path + ".rolesAuthz[" + _index33 + "]",
|
|
928
1179
|
expected: "CreateRoleDTO",
|
|
929
1180
|
value: elem
|
|
930
|
-
})) &&
|
|
931
|
-
path: _path + ".rolesAuthz[" +
|
|
1181
|
+
})) && _vo30(elem, _path + ".rolesAuthz[" + _index33 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1182
|
+
path: _path + ".rolesAuthz[" + _index33 + "]",
|
|
932
1183
|
expected: "CreateRoleDTO",
|
|
933
1184
|
value: elem
|
|
934
1185
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -939,12 +1190,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
939
1190
|
path: _path + ".operationsAuthz",
|
|
940
1191
|
expected: "(Array<OperationAuthzBootstrap> | undefined)",
|
|
941
1192
|
value: input.operationsAuthz
|
|
942
|
-
})) && input.operationsAuthz.map((elem,
|
|
943
|
-
path: _path + ".operationsAuthz[" +
|
|
1193
|
+
})) && input.operationsAuthz.map((elem, _index34) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1194
|
+
path: _path + ".operationsAuthz[" + _index34 + "]",
|
|
944
1195
|
expected: "OperationAuthzBootstrap",
|
|
945
1196
|
value: elem
|
|
946
|
-
})) &&
|
|
947
|
-
path: _path + ".operationsAuthz[" +
|
|
1197
|
+
})) && _vo31(elem, _path + ".operationsAuthz[" + _index34 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1198
|
+
path: _path + ".operationsAuthz[" + _index34 + "]",
|
|
948
1199
|
expected: "OperationAuthzBootstrap",
|
|
949
1200
|
value: elem
|
|
950
1201
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -955,12 +1206,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
955
1206
|
path: _path + ".modulesConfig",
|
|
956
1207
|
expected: "(Array<UpdateModuleUIConfigDTO> | undefined)",
|
|
957
1208
|
value: input.modulesConfig
|
|
958
|
-
})) && input.modulesConfig.map((elem,
|
|
959
|
-
path: _path + ".modulesConfig[" +
|
|
1209
|
+
})) && input.modulesConfig.map((elem, _index35) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1210
|
+
path: _path + ".modulesConfig[" + _index35 + "]",
|
|
960
1211
|
expected: "UpdateModuleUIConfigDTO",
|
|
961
1212
|
value: elem
|
|
962
|
-
})) &&
|
|
963
|
-
path: _path + ".modulesConfig[" +
|
|
1213
|
+
})) && _vo32(elem, _path + ".modulesConfig[" + _index35 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1214
|
+
path: _path + ".modulesConfig[" + _index35 + "]",
|
|
964
1215
|
expected: "UpdateModuleUIConfigDTO",
|
|
965
1216
|
value: elem
|
|
966
1217
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -999,12 +1250,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
999
1250
|
path: _path + ".valueRules",
|
|
1000
1251
|
expected: "(Array<BootstrapValueRule> | undefined)",
|
|
1001
1252
|
value: input.valueRules
|
|
1002
|
-
})) && input.valueRules.map((elem,
|
|
1003
|
-
path: _path + ".valueRules[" +
|
|
1253
|
+
})) && input.valueRules.map((elem, _index36) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1254
|
+
path: _path + ".valueRules[" + _index36 + "]",
|
|
1004
1255
|
expected: "BootstrapValueRule",
|
|
1005
1256
|
value: elem
|
|
1006
|
-
})) && _vo4(elem, _path + ".valueRules[" +
|
|
1007
|
-
path: _path + ".valueRules[" +
|
|
1257
|
+
})) && _vo4(elem, _path + ".valueRules[" + _index36 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1258
|
+
path: _path + ".valueRules[" + _index36 + "]",
|
|
1008
1259
|
expected: "BootstrapValueRule",
|
|
1009
1260
|
value: elem
|
|
1010
1261
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1055,8 +1306,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1055
1306
|
path: _path + ".value",
|
|
1056
1307
|
expected: "(Array<string> | boolean | number | string)",
|
|
1057
1308
|
value: input.value
|
|
1058
|
-
})) && input.value.map((elem,
|
|
1059
|
-
path: _path + ".value[" +
|
|
1309
|
+
})) && input.value.map((elem, _index37) => "string" === typeof elem || _report(_exceptionable, {
|
|
1310
|
+
path: _path + ".value[" + _index37 + "]",
|
|
1060
1311
|
expected: "string",
|
|
1061
1312
|
value: elem
|
|
1062
1313
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1071,12 +1322,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1071
1322
|
path: _path + ".rules",
|
|
1072
1323
|
expected: "Array<BootstrapCondition>",
|
|
1073
1324
|
value: input.rules
|
|
1074
|
-
})) && input.rules.map((elem,
|
|
1075
|
-
path: _path + ".rules[" +
|
|
1325
|
+
})) && input.rules.map((elem, _index38) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1326
|
+
path: _path + ".rules[" + _index38 + "]",
|
|
1076
1327
|
expected: "(BootstrapCompositeCondition | BootstrapLeafCondition)",
|
|
1077
1328
|
value: elem
|
|
1078
|
-
})) && _vu0(elem, _path + ".rules[" +
|
|
1079
|
-
path: _path + ".rules[" +
|
|
1329
|
+
})) && _vu0(elem, _path + ".rules[" + _index38 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1330
|
+
path: _path + ".rules[" + _index38 + "]",
|
|
1080
1331
|
expected: "(BootstrapCompositeCondition | BootstrapLeafCondition)",
|
|
1081
1332
|
value: elem
|
|
1082
1333
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1119,8 +1370,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1119
1370
|
path: _path + ".dependsOn",
|
|
1120
1371
|
expected: "Array<string>",
|
|
1121
1372
|
value: input.dependsOn
|
|
1122
|
-
})) && input.dependsOn.map((elem,
|
|
1123
|
-
path: _path + ".dependsOn[" +
|
|
1373
|
+
})) && input.dependsOn.map((elem, _index39) => "string" === typeof elem || _report(_exceptionable, {
|
|
1374
|
+
path: _path + ".dependsOn[" + _index39 + "]",
|
|
1124
1375
|
expected: "string",
|
|
1125
1376
|
value: elem
|
|
1126
1377
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1179,6 +1430,14 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1179
1430
|
path: _path + ".isPublic",
|
|
1180
1431
|
expected: "(boolean | undefined)",
|
|
1181
1432
|
value: input.isPublic
|
|
1433
|
+
}), undefined === input.tenantOverrides || ("object" === typeof input.tenantOverrides && null !== input.tenantOverrides && false === Array.isArray(input.tenantOverrides) || _report(_exceptionable, {
|
|
1434
|
+
path: _path + ".tenantOverrides",
|
|
1435
|
+
expected: "(ModuleTenantOverrides | undefined)",
|
|
1436
|
+
value: input.tenantOverrides
|
|
1437
|
+
})) && _vo21(input.tenantOverrides, _path + ".tenantOverrides", true && _exceptionable) || _report(_exceptionable, {
|
|
1438
|
+
path: _path + ".tenantOverrides",
|
|
1439
|
+
expected: "(ModuleTenantOverrides | undefined)",
|
|
1440
|
+
value: input.tenantOverrides
|
|
1182
1441
|
}), undefined === input.id || "number" === typeof input.id || _report(_exceptionable, {
|
|
1183
1442
|
path: _path + ".id",
|
|
1184
1443
|
expected: "(number | undefined)",
|
|
@@ -1187,7 +1446,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1187
1446
|
path: _path + ".serviceLocal",
|
|
1188
1447
|
expected: "(Partial<ServiceConfig> | undefined)",
|
|
1189
1448
|
value: input.serviceLocal
|
|
1190
|
-
})) &&
|
|
1449
|
+
})) && _vo23(input.serviceLocal, _path + ".serviceLocal", true && _exceptionable) || _report(_exceptionable, {
|
|
1191
1450
|
path: _path + ".serviceLocal",
|
|
1192
1451
|
expected: "(Partial<ServiceConfig> | undefined)",
|
|
1193
1452
|
value: input.serviceLocal
|
|
@@ -1296,8 +1555,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1296
1555
|
path: _path + ".operations",
|
|
1297
1556
|
expected: "(Array<string> | undefined)",
|
|
1298
1557
|
value: input.operations
|
|
1299
|
-
})) && input.operations.map((elem,
|
|
1300
|
-
path: _path + ".operations[" +
|
|
1558
|
+
})) && input.operations.map((elem, _index40) => "string" === typeof elem || _report(_exceptionable, {
|
|
1559
|
+
path: _path + ".operations[" + _index40 + "]",
|
|
1301
1560
|
expected: "string",
|
|
1302
1561
|
value: elem
|
|
1303
1562
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1308,12 +1567,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1308
1567
|
path: _path + ".routes",
|
|
1309
1568
|
expected: "(Array<RouteAuthorization> | undefined)",
|
|
1310
1569
|
value: input.routes
|
|
1311
|
-
})) && input.routes.map((elem,
|
|
1312
|
-
path: _path + ".routes[" +
|
|
1570
|
+
})) && input.routes.map((elem, _index41) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1571
|
+
path: _path + ".routes[" + _index41 + "]",
|
|
1313
1572
|
expected: "RouteAuthorization",
|
|
1314
1573
|
value: elem
|
|
1315
|
-
})) && _vo17(elem, _path + ".routes[" +
|
|
1316
|
-
path: _path + ".routes[" +
|
|
1574
|
+
})) && _vo17(elem, _path + ".routes[" + _index41 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1575
|
+
path: _path + ".routes[" + _index41 + "]",
|
|
1317
1576
|
expected: "RouteAuthorization",
|
|
1318
1577
|
value: elem
|
|
1319
1578
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1324,8 +1583,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1324
1583
|
path: _path + ".methods",
|
|
1325
1584
|
expected: "(Array<HttpMethod> | undefined)",
|
|
1326
1585
|
value: input.methods
|
|
1327
|
-
})) && input.methods.map((elem,
|
|
1328
|
-
path: _path + ".methods[" +
|
|
1586
|
+
})) && input.methods.map((elem, _index42) => "POST" === elem || "DELETE" === elem || "GET" === elem || "HEAD" === elem || "OPTIONS" === elem || "PUT" === elem || "PATCH" === elem || "CONNECT" === elem || "TRACE" === elem || _report(_exceptionable, {
|
|
1587
|
+
path: _path + ".methods[" + _index42 + "]",
|
|
1329
1588
|
expected: "(\"CONNECT\" | \"DELETE\" | \"GET\" | \"HEAD\" | \"OPTIONS\" | \"PATCH\" | \"POST\" | \"PUT\" | \"TRACE\")",
|
|
1330
1589
|
value: elem
|
|
1331
1590
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1340,8 +1599,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1340
1599
|
path: _path + ".operations",
|
|
1341
1600
|
expected: "(Array<string> | undefined)",
|
|
1342
1601
|
value: input.operations
|
|
1343
|
-
})) && input.operations.map((elem,
|
|
1344
|
-
path: _path + ".operations[" +
|
|
1602
|
+
})) && input.operations.map((elem, _index43) => "string" === typeof elem || _report(_exceptionable, {
|
|
1603
|
+
path: _path + ".operations[" + _index43 + "]",
|
|
1345
1604
|
expected: "string",
|
|
1346
1605
|
value: elem
|
|
1347
1606
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1360,8 +1619,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1360
1619
|
path: _path + ".audience",
|
|
1361
1620
|
expected: "(Array<string> | string | undefined)",
|
|
1362
1621
|
value: input.audience
|
|
1363
|
-
})) && input.audience.map((elem,
|
|
1364
|
-
path: _path + ".audience[" +
|
|
1622
|
+
})) && input.audience.map((elem, _index44) => "string" === typeof elem || _report(_exceptionable, {
|
|
1623
|
+
path: _path + ".audience[" + _index44 + "]",
|
|
1365
1624
|
expected: "string",
|
|
1366
1625
|
value: elem
|
|
1367
1626
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1372,8 +1631,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1372
1631
|
path: _path + ".scopesSupported",
|
|
1373
1632
|
expected: "(Array<string> | undefined)",
|
|
1374
1633
|
value: input.scopesSupported
|
|
1375
|
-
})) && input.scopesSupported.map((elem,
|
|
1376
|
-
path: _path + ".scopesSupported[" +
|
|
1634
|
+
})) && input.scopesSupported.map((elem, _index45) => "string" === typeof elem || _report(_exceptionable, {
|
|
1635
|
+
path: _path + ".scopesSupported[" + _index45 + "]",
|
|
1377
1636
|
expected: "string",
|
|
1378
1637
|
value: elem
|
|
1379
1638
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1404,12 +1663,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1404
1663
|
path: _path + ".tools",
|
|
1405
1664
|
expected: "(Array<McpToolAuthorization> | undefined)",
|
|
1406
1665
|
value: input.tools
|
|
1407
|
-
})) && input.tools.map((elem,
|
|
1408
|
-
path: _path + ".tools[" +
|
|
1666
|
+
})) && input.tools.map((elem, _index46) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1667
|
+
path: _path + ".tools[" + _index46 + "]",
|
|
1409
1668
|
expected: "McpToolAuthorization",
|
|
1410
1669
|
value: elem
|
|
1411
|
-
})) && _vo20(elem, _path + ".tools[" +
|
|
1412
|
-
path: _path + ".tools[" +
|
|
1670
|
+
})) && _vo20(elem, _path + ".tools[" + _index46 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1671
|
+
path: _path + ".tools[" + _index46 + "]",
|
|
1413
1672
|
expected: "McpToolAuthorization",
|
|
1414
1673
|
value: elem
|
|
1415
1674
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1424,8 +1683,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1424
1683
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1425
1684
|
expected: "Array<string>",
|
|
1426
1685
|
value: value
|
|
1427
|
-
})) && value.map((elem,
|
|
1428
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key) + "[" +
|
|
1686
|
+
})) && value.map((elem, _index47) => "string" === typeof elem || _report(_exceptionable, {
|
|
1687
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key) + "[" + _index47 + "]",
|
|
1429
1688
|
expected: "string",
|
|
1430
1689
|
value: elem
|
|
1431
1690
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1441,8 +1700,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1441
1700
|
path: _path + ".operations",
|
|
1442
1701
|
expected: "Array<string>",
|
|
1443
1702
|
value: input.operations
|
|
1444
|
-
})) && input.operations.map((elem,
|
|
1445
|
-
path: _path + ".operations[" +
|
|
1703
|
+
})) && input.operations.map((elem, _index48) => "string" === typeof elem || _report(_exceptionable, {
|
|
1704
|
+
path: _path + ".operations[" + _index48 + "]",
|
|
1446
1705
|
expected: "string",
|
|
1447
1706
|
value: elem
|
|
1448
1707
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1453,7 +1712,96 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1453
1712
|
path: _path + ".operator",
|
|
1454
1713
|
expected: "(\"AND\" | \"OR\" | undefined)",
|
|
1455
1714
|
value: input.operator
|
|
1456
|
-
})].every(flag => flag); const _vo21 = (input, _path, _exceptionable = true) => [
|
|
1715
|
+
})].every(flag => flag); const _vo21 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
1716
|
+
const value = input[key];
|
|
1717
|
+
if (undefined === value)
|
|
1718
|
+
return true;
|
|
1719
|
+
return ("object" === typeof value && null !== value && false === Array.isArray(value) || _report(_exceptionable, {
|
|
1720
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1721
|
+
expected: "ModuleTenantOverride",
|
|
1722
|
+
value: value
|
|
1723
|
+
})) && _vo22(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
1724
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1725
|
+
expected: "ModuleTenantOverride",
|
|
1726
|
+
value: value
|
|
1727
|
+
});
|
|
1728
|
+
}).every(flag => flag)].every(flag => flag); const _vo22 = (input, _path, _exceptionable = true) => [undefined === input.displayName || "string" === typeof input.displayName || _report(_exceptionable, {
|
|
1729
|
+
path: _path + ".displayName",
|
|
1730
|
+
expected: "(string | undefined)",
|
|
1731
|
+
value: input.displayName
|
|
1732
|
+
}), 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 || _report(_exceptionable, {
|
|
1733
|
+
path: _path + ".type",
|
|
1734
|
+
expected: "(\"app\" | \"cloud-function\" | \"documentation\" | \"fragment\" | \"mcp\" | \"service\" | \"tool\" | \"utility\" | undefined)",
|
|
1735
|
+
value: input.type
|
|
1736
|
+
}), undefined === input.service || ("object" === typeof input.service && null !== input.service && false === Array.isArray(input.service) || _report(_exceptionable, {
|
|
1737
|
+
path: _path + ".service",
|
|
1738
|
+
expected: "(Partial<ServiceConfig> | undefined)",
|
|
1739
|
+
value: input.service
|
|
1740
|
+
})) && _vo23(input.service, _path + ".service", true && _exceptionable) || _report(_exceptionable, {
|
|
1741
|
+
path: _path + ".service",
|
|
1742
|
+
expected: "(Partial<ServiceConfig> | undefined)",
|
|
1743
|
+
value: input.service
|
|
1744
|
+
}), undefined === input.dependsOn || (Array.isArray(input.dependsOn) || _report(_exceptionable, {
|
|
1745
|
+
path: _path + ".dependsOn",
|
|
1746
|
+
expected: "(Array<string> | undefined)",
|
|
1747
|
+
value: input.dependsOn
|
|
1748
|
+
})) && input.dependsOn.map((elem, _index49) => "string" === typeof elem || _report(_exceptionable, {
|
|
1749
|
+
path: _path + ".dependsOn[" + _index49 + "]",
|
|
1750
|
+
expected: "string",
|
|
1751
|
+
value: elem
|
|
1752
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
1753
|
+
path: _path + ".dependsOn",
|
|
1754
|
+
expected: "(Array<string> | undefined)",
|
|
1755
|
+
value: input.dependsOn
|
|
1756
|
+
}), undefined === input.commonPaths || ("object" === typeof input.commonPaths && null !== input.commonPaths && false === Array.isArray(input.commonPaths) || _report(_exceptionable, {
|
|
1757
|
+
path: _path + ".commonPaths",
|
|
1758
|
+
expected: "(Partial<CommonPathsMetadata> | undefined)",
|
|
1759
|
+
value: input.commonPaths
|
|
1760
|
+
})) && _vo24(input.commonPaths, _path + ".commonPaths", true && _exceptionable) || _report(_exceptionable, {
|
|
1761
|
+
path: _path + ".commonPaths",
|
|
1762
|
+
expected: "(Partial<CommonPathsMetadata> | undefined)",
|
|
1763
|
+
value: input.commonPaths
|
|
1764
|
+
}), undefined === input.ui || ("object" === typeof input.ui && null !== input.ui && false === Array.isArray(input.ui) || _report(_exceptionable, {
|
|
1765
|
+
path: _path + ".ui",
|
|
1766
|
+
expected: "(Partial<UIConfig> | undefined)",
|
|
1767
|
+
value: input.ui
|
|
1768
|
+
})) && _vo25(input.ui, _path + ".ui", true && _exceptionable) || _report(_exceptionable, {
|
|
1769
|
+
path: _path + ".ui",
|
|
1770
|
+
expected: "(Partial<UIConfig> | undefined)",
|
|
1771
|
+
value: input.ui
|
|
1772
|
+
}), undefined === input.cloudFunction || ("object" === typeof input.cloudFunction && null !== input.cloudFunction && false === Array.isArray(input.cloudFunction) || _report(_exceptionable, {
|
|
1773
|
+
path: _path + ".cloudFunction",
|
|
1774
|
+
expected: "(Partial<CloudFunctionConfig> | undefined)",
|
|
1775
|
+
value: input.cloudFunction
|
|
1776
|
+
})) && _vo26(input.cloudFunction, _path + ".cloudFunction", true && _exceptionable) || _report(_exceptionable, {
|
|
1777
|
+
path: _path + ".cloudFunction",
|
|
1778
|
+
expected: "(Partial<CloudFunctionConfig> | undefined)",
|
|
1779
|
+
value: input.cloudFunction
|
|
1780
|
+
}), undefined === input.authorization || ("object" === typeof input.authorization && null !== input.authorization && false === Array.isArray(input.authorization) || _report(_exceptionable, {
|
|
1781
|
+
path: _path + ".authorization",
|
|
1782
|
+
expected: "(Partial<AuthorizationMetadata> | undefined)",
|
|
1783
|
+
value: input.authorization
|
|
1784
|
+
})) && _vo27(input.authorization, _path + ".authorization", true && _exceptionable) || _report(_exceptionable, {
|
|
1785
|
+
path: _path + ".authorization",
|
|
1786
|
+
expected: "(Partial<AuthorizationMetadata> | undefined)",
|
|
1787
|
+
value: input.authorization
|
|
1788
|
+
}), undefined === input.mcp || ("object" === typeof input.mcp && null !== input.mcp && false === Array.isArray(input.mcp) || _report(_exceptionable, {
|
|
1789
|
+
path: _path + ".mcp",
|
|
1790
|
+
expected: "(Partial<McpResourceConfig> | undefined)",
|
|
1791
|
+
value: input.mcp
|
|
1792
|
+
})) && _vo28(input.mcp, _path + ".mcp", true && _exceptionable) || _report(_exceptionable, {
|
|
1793
|
+
path: _path + ".mcp",
|
|
1794
|
+
expected: "(Partial<McpResourceConfig> | undefined)",
|
|
1795
|
+
value: input.mcp
|
|
1796
|
+
}), undefined === input.application || "string" === typeof input.application || _report(_exceptionable, {
|
|
1797
|
+
path: _path + ".application",
|
|
1798
|
+
expected: "(string | undefined)",
|
|
1799
|
+
value: input.application
|
|
1800
|
+
}), undefined === input.isPublic || "boolean" === typeof input.isPublic || _report(_exceptionable, {
|
|
1801
|
+
path: _path + ".isPublic",
|
|
1802
|
+
expected: "(boolean | undefined)",
|
|
1803
|
+
value: input.isPublic
|
|
1804
|
+
})].every(flag => flag); const _vo23 = (input, _path, _exceptionable = true) => [undefined === input.host || "string" === typeof input.host || _report(_exceptionable, {
|
|
1457
1805
|
path: _path + ".host",
|
|
1458
1806
|
expected: "(string | undefined)",
|
|
1459
1807
|
value: input.host
|
|
@@ -1469,14 +1817,158 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1469
1817
|
path: _path + ".includeBaseURL",
|
|
1470
1818
|
expected: "(boolean | undefined)",
|
|
1471
1819
|
value: input.includeBaseURL
|
|
1472
|
-
})].every(flag => flag); const
|
|
1473
|
-
path: _path + ".
|
|
1474
|
-
expected: "string",
|
|
1475
|
-
value: input.name
|
|
1476
|
-
}), undefined === input.displayName || "string" === typeof input.displayName || _report(_exceptionable, {
|
|
1477
|
-
path: _path + ".displayName",
|
|
1820
|
+
})].every(flag => flag); const _vo24 = (input, _path, _exceptionable = true) => [undefined === input.apiDocs || "string" === typeof input.apiDocs || _report(_exceptionable, {
|
|
1821
|
+
path: _path + ".apiDocs",
|
|
1478
1822
|
expected: "(string | undefined)",
|
|
1479
|
-
value: input.
|
|
1823
|
+
value: input.apiDocs
|
|
1824
|
+
}), undefined === input.version || "string" === typeof input.version || _report(_exceptionable, {
|
|
1825
|
+
path: _path + ".version",
|
|
1826
|
+
expected: "(string | undefined)",
|
|
1827
|
+
value: input.version
|
|
1828
|
+
}), undefined === input.health || "string" === typeof input.health || _report(_exceptionable, {
|
|
1829
|
+
path: _path + ".health",
|
|
1830
|
+
expected: "(string | undefined)",
|
|
1831
|
+
value: input.health
|
|
1832
|
+
}), undefined === input.changelog || "string" === typeof input.changelog || _report(_exceptionable, {
|
|
1833
|
+
path: _path + ".changelog",
|
|
1834
|
+
expected: "(string | undefined)",
|
|
1835
|
+
value: input.changelog
|
|
1836
|
+
})].every(flag => flag); const _vo25 = (input, _path, _exceptionable = true) => [undefined === input.route || "string" === typeof input.route || _report(_exceptionable, {
|
|
1837
|
+
path: _path + ".route",
|
|
1838
|
+
expected: "(string | undefined)",
|
|
1839
|
+
value: input.route
|
|
1840
|
+
}), null === input.mountAtSelector || undefined === input.mountAtSelector || "string" === typeof input.mountAtSelector || _report(_exceptionable, {
|
|
1841
|
+
path: _path + ".mountAtSelector",
|
|
1842
|
+
expected: "(null | string | undefined)",
|
|
1843
|
+
value: input.mountAtSelector
|
|
1844
|
+
}), undefined === input.bundleFile || "string" === typeof input.bundleFile || _report(_exceptionable, {
|
|
1845
|
+
path: _path + ".bundleFile",
|
|
1846
|
+
expected: "(string | undefined)",
|
|
1847
|
+
value: input.bundleFile
|
|
1848
|
+
}), undefined === input.customProps || ("object" === typeof input.customProps && null !== input.customProps && false === Array.isArray(input.customProps) || _report(_exceptionable, {
|
|
1849
|
+
path: _path + ".customProps",
|
|
1850
|
+
expected: "(ModuleProps | undefined)",
|
|
1851
|
+
value: input.customProps
|
|
1852
|
+
})) && _vo12(input.customProps, _path + ".customProps", true && _exceptionable) || _report(_exceptionable, {
|
|
1853
|
+
path: _path + ".customProps",
|
|
1854
|
+
expected: "(ModuleProps | undefined)",
|
|
1855
|
+
value: input.customProps
|
|
1856
|
+
}), undefined === input.shell || "boolean" === typeof input.shell || _report(_exceptionable, {
|
|
1857
|
+
path: _path + ".shell",
|
|
1858
|
+
expected: "(boolean | undefined)",
|
|
1859
|
+
value: input.shell
|
|
1860
|
+
}), undefined === input.isPlatformCustomization || "boolean" === typeof input.isPlatformCustomization || _report(_exceptionable, {
|
|
1861
|
+
path: _path + ".isPlatformCustomization",
|
|
1862
|
+
expected: "(boolean | undefined)",
|
|
1863
|
+
value: input.isPlatformCustomization
|
|
1864
|
+
})].every(flag => flag); const _vo26 = (input, _path, _exceptionable = true) => [undefined === input.provider || "aws" === input.provider || _report(_exceptionable, {
|
|
1865
|
+
path: _path + ".provider",
|
|
1866
|
+
expected: "(\"aws\" | undefined)",
|
|
1867
|
+
value: input.provider
|
|
1868
|
+
}), undefined === input.requiresSignature || "boolean" === typeof input.requiresSignature || _report(_exceptionable, {
|
|
1869
|
+
path: _path + ".requiresSignature",
|
|
1870
|
+
expected: "(boolean | undefined)",
|
|
1871
|
+
value: input.requiresSignature
|
|
1872
|
+
})].every(flag => flag); const _vo27 = (input, _path, _exceptionable = true) => [undefined === input.operations || (Array.isArray(input.operations) || _report(_exceptionable, {
|
|
1873
|
+
path: _path + ".operations",
|
|
1874
|
+
expected: "(Array<string> | undefined)",
|
|
1875
|
+
value: input.operations
|
|
1876
|
+
})) && input.operations.map((elem, _index50) => "string" === typeof elem || _report(_exceptionable, {
|
|
1877
|
+
path: _path + ".operations[" + _index50 + "]",
|
|
1878
|
+
expected: "string",
|
|
1879
|
+
value: elem
|
|
1880
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
1881
|
+
path: _path + ".operations",
|
|
1882
|
+
expected: "(Array<string> | undefined)",
|
|
1883
|
+
value: input.operations
|
|
1884
|
+
}), undefined === input.routes || (Array.isArray(input.routes) || _report(_exceptionable, {
|
|
1885
|
+
path: _path + ".routes",
|
|
1886
|
+
expected: "(Array<RouteAuthorization> | undefined)",
|
|
1887
|
+
value: input.routes
|
|
1888
|
+
})) && input.routes.map((elem, _index51) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1889
|
+
path: _path + ".routes[" + _index51 + "]",
|
|
1890
|
+
expected: "RouteAuthorization",
|
|
1891
|
+
value: elem
|
|
1892
|
+
})) && _vo17(elem, _path + ".routes[" + _index51 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1893
|
+
path: _path + ".routes[" + _index51 + "]",
|
|
1894
|
+
expected: "RouteAuthorization",
|
|
1895
|
+
value: elem
|
|
1896
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
1897
|
+
path: _path + ".routes",
|
|
1898
|
+
expected: "(Array<RouteAuthorization> | undefined)",
|
|
1899
|
+
value: input.routes
|
|
1900
|
+
})].every(flag => flag); const _vo28 = (input, _path, _exceptionable = true) => [(null !== input.audience || _report(_exceptionable, {
|
|
1901
|
+
path: _path + ".audience",
|
|
1902
|
+
expected: "(Array<string> | string | undefined)",
|
|
1903
|
+
value: input.audience
|
|
1904
|
+
})) && (undefined === input.audience || "string" === typeof input.audience || (Array.isArray(input.audience) || _report(_exceptionable, {
|
|
1905
|
+
path: _path + ".audience",
|
|
1906
|
+
expected: "(Array<string> | string | undefined)",
|
|
1907
|
+
value: input.audience
|
|
1908
|
+
})) && input.audience.map((elem, _index52) => "string" === typeof elem || _report(_exceptionable, {
|
|
1909
|
+
path: _path + ".audience[" + _index52 + "]",
|
|
1910
|
+
expected: "string",
|
|
1911
|
+
value: elem
|
|
1912
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
1913
|
+
path: _path + ".audience",
|
|
1914
|
+
expected: "(Array<string> | string | undefined)",
|
|
1915
|
+
value: input.audience
|
|
1916
|
+
})), undefined === input.scopesSupported || (Array.isArray(input.scopesSupported) || _report(_exceptionable, {
|
|
1917
|
+
path: _path + ".scopesSupported",
|
|
1918
|
+
expected: "(Array<string> | undefined)",
|
|
1919
|
+
value: input.scopesSupported
|
|
1920
|
+
})) && input.scopesSupported.map((elem, _index53) => "string" === typeof elem || _report(_exceptionable, {
|
|
1921
|
+
path: _path + ".scopesSupported[" + _index53 + "]",
|
|
1922
|
+
expected: "string",
|
|
1923
|
+
value: elem
|
|
1924
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
1925
|
+
path: _path + ".scopesSupported",
|
|
1926
|
+
expected: "(Array<string> | undefined)",
|
|
1927
|
+
value: input.scopesSupported
|
|
1928
|
+
}), undefined === input.resourceName || "string" === typeof input.resourceName || _report(_exceptionable, {
|
|
1929
|
+
path: _path + ".resourceName",
|
|
1930
|
+
expected: "(string | undefined)",
|
|
1931
|
+
value: input.resourceName
|
|
1932
|
+
}), undefined === input.authServerProvider || "string" === typeof input.authServerProvider || _report(_exceptionable, {
|
|
1933
|
+
path: _path + ".authServerProvider",
|
|
1934
|
+
expected: "(string | undefined)",
|
|
1935
|
+
value: input.authServerProvider
|
|
1936
|
+
}), undefined === input.origin || "in-house" === input.origin || _report(_exceptionable, {
|
|
1937
|
+
path: _path + ".origin",
|
|
1938
|
+
expected: "(\"in-house\" | undefined)",
|
|
1939
|
+
value: input.origin
|
|
1940
|
+
}), undefined === input.scopeOperationMap || ("object" === typeof input.scopeOperationMap && null !== input.scopeOperationMap && false === Array.isArray(input.scopeOperationMap) || _report(_exceptionable, {
|
|
1941
|
+
path: _path + ".scopeOperationMap",
|
|
1942
|
+
expected: "(Record<string, Array<string>> | undefined)",
|
|
1943
|
+
value: input.scopeOperationMap
|
|
1944
|
+
})) && _vo19(input.scopeOperationMap, _path + ".scopeOperationMap", true && _exceptionable) || _report(_exceptionable, {
|
|
1945
|
+
path: _path + ".scopeOperationMap",
|
|
1946
|
+
expected: "(Record<string, Array<string>> | undefined)",
|
|
1947
|
+
value: input.scopeOperationMap
|
|
1948
|
+
}), undefined === input.tools || (Array.isArray(input.tools) || _report(_exceptionable, {
|
|
1949
|
+
path: _path + ".tools",
|
|
1950
|
+
expected: "(Array<McpToolAuthorization> | undefined)",
|
|
1951
|
+
value: input.tools
|
|
1952
|
+
})) && input.tools.map((elem, _index54) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1953
|
+
path: _path + ".tools[" + _index54 + "]",
|
|
1954
|
+
expected: "McpToolAuthorization",
|
|
1955
|
+
value: elem
|
|
1956
|
+
})) && _vo20(elem, _path + ".tools[" + _index54 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1957
|
+
path: _path + ".tools[" + _index54 + "]",
|
|
1958
|
+
expected: "McpToolAuthorization",
|
|
1959
|
+
value: elem
|
|
1960
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
1961
|
+
path: _path + ".tools",
|
|
1962
|
+
expected: "(Array<McpToolAuthorization> | undefined)",
|
|
1963
|
+
value: input.tools
|
|
1964
|
+
})].every(flag => flag); const _vo29 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
1965
|
+
path: _path + ".name",
|
|
1966
|
+
expected: "string",
|
|
1967
|
+
value: input.name
|
|
1968
|
+
}), undefined === input.displayName || "string" === typeof input.displayName || _report(_exceptionable, {
|
|
1969
|
+
path: _path + ".displayName",
|
|
1970
|
+
expected: "(string | undefined)",
|
|
1971
|
+
value: input.displayName
|
|
1480
1972
|
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
|
1481
1973
|
path: _path + ".description",
|
|
1482
1974
|
expected: "(string | undefined)",
|
|
@@ -1489,15 +1981,15 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1489
1981
|
path: _path + ".allowedTenants",
|
|
1490
1982
|
expected: "(Array<string> | undefined)",
|
|
1491
1983
|
value: input.allowedTenants
|
|
1492
|
-
})) && input.allowedTenants.map((elem,
|
|
1493
|
-
path: _path + ".allowedTenants[" +
|
|
1984
|
+
})) && input.allowedTenants.map((elem, _index55) => "string" === typeof elem || _report(_exceptionable, {
|
|
1985
|
+
path: _path + ".allowedTenants[" + _index55 + "]",
|
|
1494
1986
|
expected: "string",
|
|
1495
1987
|
value: elem
|
|
1496
1988
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
1497
1989
|
path: _path + ".allowedTenants",
|
|
1498
1990
|
expected: "(Array<string> | undefined)",
|
|
1499
1991
|
value: input.allowedTenants
|
|
1500
|
-
})].every(flag => flag); const
|
|
1992
|
+
})].every(flag => flag); const _vo30 = (input, _path, _exceptionable = true) => [undefined === input.applicationName || "string" === typeof input.applicationName || _report(_exceptionable, {
|
|
1501
1993
|
path: _path + ".applicationName",
|
|
1502
1994
|
expected: "(string | undefined)",
|
|
1503
1995
|
value: input.applicationName
|
|
@@ -1509,12 +2001,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1509
2001
|
path: _path + ".description",
|
|
1510
2002
|
expected: "(string | undefined)",
|
|
1511
2003
|
value: input.description
|
|
1512
|
-
})].every(flag => flag); const
|
|
2004
|
+
})].every(flag => flag); const _vo31 = (input, _path, _exceptionable = true) => [undefined === input.roles || (Array.isArray(input.roles) || _report(_exceptionable, {
|
|
1513
2005
|
path: _path + ".roles",
|
|
1514
2006
|
expected: "(Array<string> | undefined)",
|
|
1515
2007
|
value: input.roles
|
|
1516
|
-
})) && input.roles.map((elem,
|
|
1517
|
-
path: _path + ".roles[" +
|
|
2008
|
+
})) && input.roles.map((elem, _index56) => "string" === typeof elem || _report(_exceptionable, {
|
|
2009
|
+
path: _path + ".roles[" + _index56 + "]",
|
|
1518
2010
|
expected: "string",
|
|
1519
2011
|
value: elem
|
|
1520
2012
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1533,7 +2025,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1533
2025
|
path: _path + ".applicationName",
|
|
1534
2026
|
expected: "(string | undefined)",
|
|
1535
2027
|
value: input.applicationName
|
|
1536
|
-
})].every(flag => flag); const
|
|
2028
|
+
})].every(flag => flag); const _vo32 = (input, _path, _exceptionable = true) => ["string" === typeof input.moduleName || _report(_exceptionable, {
|
|
1537
2029
|
path: _path + ".moduleName",
|
|
1538
2030
|
expected: "string",
|
|
1539
2031
|
value: input.moduleName
|
|
@@ -1611,7 +2103,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1611
2103
|
scopedTo: "any"
|
|
1612
2104
|
},
|
|
1613
2105
|
};
|
|
1614
|
-
const result = (() => { const _io0 = input => "object" === typeof input.syncConfig && null !== input.syncConfig && _io1(input.syncConfig) && (undefined === input.sharedLibraries || Array.isArray(input.sharedLibraries) && input.sharedLibraries.every(elem => "object" === typeof elem && null !== elem && _io2(elem))) && (undefined === input.featureFlags || Array.isArray(input.featureFlags) && input.featureFlags.every(elem => "object" === typeof elem && null !== elem && _io3(elem))) && (undefined === input.catalog || Array.isArray(input.catalog) && input.catalog.every(elem => "object" === typeof elem && null !== elem && _io8(elem))) && (undefined === input.applicationsAuthz || Array.isArray(input.applicationsAuthz) && input.applicationsAuthz.every(elem => "object" === typeof elem && null !== elem &&
|
|
2106
|
+
const result = (() => { const _io0 = input => "object" === typeof input.syncConfig && null !== input.syncConfig && _io1(input.syncConfig) && (undefined === input.sharedLibraries || Array.isArray(input.sharedLibraries) && input.sharedLibraries.every(elem => "object" === typeof elem && null !== elem && _io2(elem))) && (undefined === input.featureFlags || Array.isArray(input.featureFlags) && input.featureFlags.every(elem => "object" === typeof elem && null !== elem && _io3(elem))) && (undefined === input.catalog || Array.isArray(input.catalog) && input.catalog.every(elem => "object" === typeof elem && null !== elem && _io8(elem))) && (undefined === input.applicationsAuthz || Array.isArray(input.applicationsAuthz) && input.applicationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io29(elem))) && (undefined === input.rolesAuthz || Array.isArray(input.rolesAuthz) && input.rolesAuthz.every(elem => "object" === typeof elem && null !== elem && _io30(elem))) && (undefined === input.operationsAuthz || Array.isArray(input.operationsAuthz) && input.operationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io31(elem))) && (undefined === input.modulesConfig || Array.isArray(input.modulesConfig) && input.modulesConfig.every(elem => "object" === typeof elem && null !== elem && _io32(elem))); const _io1 = input => "string" === typeof input.scopedTo; const _io2 = input => "string" === typeof input.name && "string" === typeof input.url && (undefined === input.description || "string" === typeof input.description); const _io3 = input => "string" === typeof input.name && (undefined === input.description || "string" === typeof input.description) && (undefined === input.visible || "boolean" === typeof input.visible) && true && (undefined === input.valueRules || Array.isArray(input.valueRules) && input.valueRules.every(elem => "object" === typeof elem && null !== elem && _io4(elem))) && (undefined === input.applicationName || "string" === typeof input.applicationName); const _io4 = input => (undefined === input.name || "string" === typeof input.name) && ("object" === typeof input.condition && null !== input.condition && _iu0(input.condition)) && true && (undefined === input.rollout || "object" === typeof input.rollout && null !== input.rollout && _io7(input.rollout)); const _io5 = input => "string" === typeof input.attribute && ("eq" === input.operator || "neq" === input.operator || "in" === input.operator || "nin" === input.operator) && (null !== input.value && undefined !== input.value && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem))); const _io6 = input => ("AND" === input.operator || "OR" === input.operator) && (Array.isArray(input.rules) && input.rules.every(elem => "object" === typeof elem && null !== elem && _iu0(elem))); const _io7 = input => "number" === typeof input.percentage && "string" === typeof input.attribute; const _io8 = 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 && _io9(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) && _io10(input.commonPaths)) && (undefined === input.ui || "object" === typeof input.ui && null !== input.ui && _io11(input.ui)) && (undefined === input.cloudFunction || "object" === typeof input.cloudFunction && null !== input.cloudFunction && _io15(input.cloudFunction)) && (undefined === input.authorization || "object" === typeof input.authorization && null !== input.authorization && false === Array.isArray(input.authorization) && _io16(input.authorization)) && (undefined === input.mcp || "object" === typeof input.mcp && null !== input.mcp && _io18(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) && _io21(input.tenantOverrides)) && (undefined === input.id || "number" === typeof input.id) && (undefined === input.serviceLocal || "object" === typeof input.serviceLocal && null !== input.serviceLocal && false === Array.isArray(input.serviceLocal) && _io23(input.serviceLocal)); const _io9 = input => "string" === typeof input.host && "number" === typeof input.port && (undefined === input.protocol || "string" === typeof input.protocol) && (undefined === input.includeBaseURL || "boolean" === typeof input.includeBaseURL); const _io10 = 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 _io11 = input => "string" === typeof input.route && (null === input.mountAtSelector || undefined === input.mountAtSelector || "string" === typeof input.mountAtSelector) && "string" === typeof input.bundleFile && ("object" === typeof input.customProps && null !== input.customProps && false === Array.isArray(input.customProps) && _io12(input.customProps)) && (undefined === input.shell || "boolean" === typeof input.shell) && (undefined === input.isPlatformCustomization || "boolean" === typeof input.isPlatformCustomization); const _io12 = input => (undefined === input.tenantOverrides || "object" === typeof input.tenantOverrides && null !== input.tenantOverrides && false === Array.isArray(input.tenantOverrides) && _io13(input.tenantOverrides)) && Object.keys(input).every(key => {
|
|
1615
2107
|
if (["tenantOverrides"].some(prop => key === prop))
|
|
1616
2108
|
return true;
|
|
1617
2109
|
const value = input[key];
|
|
@@ -1633,7 +2125,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1633
2125
|
if (undefined === value)
|
|
1634
2126
|
return true;
|
|
1635
2127
|
return Array.isArray(value) && value.every(elem => "string" === typeof elem);
|
|
1636
|
-
}); const _io20 = 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 _io21 = input =>
|
|
2128
|
+
}); const _io20 = 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 _io21 = input => Object.keys(input).every(key => {
|
|
2129
|
+
const value = input[key];
|
|
2130
|
+
if (undefined === value)
|
|
2131
|
+
return true;
|
|
2132
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io22(value);
|
|
2133
|
+
}); const _io22 = 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) && _io23(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) && _io24(input.commonPaths)) && (undefined === input.ui || "object" === typeof input.ui && null !== input.ui && false === Array.isArray(input.ui) && _io25(input.ui)) && (undefined === input.cloudFunction || "object" === typeof input.cloudFunction && null !== input.cloudFunction && false === Array.isArray(input.cloudFunction) && _io26(input.cloudFunction)) && (undefined === input.authorization || "object" === typeof input.authorization && null !== input.authorization && false === Array.isArray(input.authorization) && _io27(input.authorization)) && (undefined === input.mcp || "object" === typeof input.mcp && null !== input.mcp && false === Array.isArray(input.mcp) && _io28(input.mcp)) && (undefined === input.application || "string" === typeof input.application) && (undefined === input.isPublic || "boolean" === typeof input.isPublic); const _io23 = 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 _io24 = 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 _io25 = 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) && _io12(input.customProps)) && (undefined === input.shell || "boolean" === typeof input.shell) && (undefined === input.isPlatformCustomization || "boolean" === typeof input.isPlatformCustomization); const _io26 = input => (undefined === input.provider || "aws" === input.provider) && (undefined === input.requiresSignature || "boolean" === typeof input.requiresSignature); const _io27 = 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 && _io17(elem))); const _io28 = 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) && _io19(input.scopeOperationMap)) && (undefined === input.tools || Array.isArray(input.tools) && input.tools.every(elem => "object" === typeof elem && null !== elem && _io20(elem))); const _io29 = input => "string" === typeof input.name && (undefined === input.displayName || "string" === typeof input.displayName) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.allowedByDefault || "boolean" === typeof input.allowedByDefault) && (undefined === input.allowedTenants || Array.isArray(input.allowedTenants) && input.allowedTenants.every(elem => "string" === typeof elem)); const _io30 = input => (undefined === input.applicationName || "string" === typeof input.applicationName) && "string" === typeof input.name && (undefined === input.description || "string" === typeof input.description); const _io31 = input => (undefined === input.roles || Array.isArray(input.roles) && input.roles.every(elem => "string" === typeof elem)) && "string" === typeof input.name && (undefined === input.description || "string" === typeof input.description) && (undefined === input.applicationName || "string" === typeof input.applicationName); const _io32 = input => "string" === typeof input.moduleName && ("object" === typeof input.customProps && null !== input.customProps && false === Array.isArray(input.customProps) && _io14(input.customProps)); const _iu0 = input => (() => {
|
|
1637
2134
|
if ("eq" === input.operator || "neq" === input.operator || "in" === input.operator || "nin" === input.operator)
|
|
1638
2135
|
return _io5(input);
|
|
1639
2136
|
else if ("AND" === input.operator || "OR" === input.operator)
|
|
@@ -1652,12 +2149,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1652
2149
|
path: _path + ".sharedLibraries",
|
|
1653
2150
|
expected: "(Array<CreateSharedLibraryDTO> | undefined)",
|
|
1654
2151
|
value: input.sharedLibraries
|
|
1655
|
-
})) && input.sharedLibraries.map((elem,
|
|
1656
|
-
path: _path + ".sharedLibraries[" +
|
|
2152
|
+
})) && input.sharedLibraries.map((elem, _index29) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2153
|
+
path: _path + ".sharedLibraries[" + _index29 + "]",
|
|
1657
2154
|
expected: "CreateSharedLibraryDTO",
|
|
1658
2155
|
value: elem
|
|
1659
|
-
})) && _vo2(elem, _path + ".sharedLibraries[" +
|
|
1660
|
-
path: _path + ".sharedLibraries[" +
|
|
2156
|
+
})) && _vo2(elem, _path + ".sharedLibraries[" + _index29 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
2157
|
+
path: _path + ".sharedLibraries[" + _index29 + "]",
|
|
1661
2158
|
expected: "CreateSharedLibraryDTO",
|
|
1662
2159
|
value: elem
|
|
1663
2160
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1668,12 +2165,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1668
2165
|
path: _path + ".featureFlags",
|
|
1669
2166
|
expected: "(Array<BootstrapFeatureFlag> | undefined)",
|
|
1670
2167
|
value: input.featureFlags
|
|
1671
|
-
})) && input.featureFlags.map((elem,
|
|
1672
|
-
path: _path + ".featureFlags[" +
|
|
2168
|
+
})) && input.featureFlags.map((elem, _index30) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2169
|
+
path: _path + ".featureFlags[" + _index30 + "]",
|
|
1673
2170
|
expected: "BootstrapFeatureFlag",
|
|
1674
2171
|
value: elem
|
|
1675
|
-
})) && _vo3(elem, _path + ".featureFlags[" +
|
|
1676
|
-
path: _path + ".featureFlags[" +
|
|
2172
|
+
})) && _vo3(elem, _path + ".featureFlags[" + _index30 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
2173
|
+
path: _path + ".featureFlags[" + _index30 + "]",
|
|
1677
2174
|
expected: "BootstrapFeatureFlag",
|
|
1678
2175
|
value: elem
|
|
1679
2176
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1684,12 +2181,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1684
2181
|
path: _path + ".catalog",
|
|
1685
2182
|
expected: "(Array<BootstrapModule> | undefined)",
|
|
1686
2183
|
value: input.catalog
|
|
1687
|
-
})) && input.catalog.map((elem,
|
|
1688
|
-
path: _path + ".catalog[" +
|
|
2184
|
+
})) && input.catalog.map((elem, _index31) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2185
|
+
path: _path + ".catalog[" + _index31 + "]",
|
|
1689
2186
|
expected: "BootstrapModule",
|
|
1690
2187
|
value: elem
|
|
1691
|
-
})) && _vo8(elem, _path + ".catalog[" +
|
|
1692
|
-
path: _path + ".catalog[" +
|
|
2188
|
+
})) && _vo8(elem, _path + ".catalog[" + _index31 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
2189
|
+
path: _path + ".catalog[" + _index31 + "]",
|
|
1693
2190
|
expected: "BootstrapModule",
|
|
1694
2191
|
value: elem
|
|
1695
2192
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1700,12 +2197,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1700
2197
|
path: _path + ".applicationsAuthz",
|
|
1701
2198
|
expected: "(Array<CreateApplicationDTO> | undefined)",
|
|
1702
2199
|
value: input.applicationsAuthz
|
|
1703
|
-
})) && input.applicationsAuthz.map((elem,
|
|
1704
|
-
path: _path + ".applicationsAuthz[" +
|
|
2200
|
+
})) && input.applicationsAuthz.map((elem, _index32) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2201
|
+
path: _path + ".applicationsAuthz[" + _index32 + "]",
|
|
1705
2202
|
expected: "CreateApplicationDTO",
|
|
1706
2203
|
value: elem
|
|
1707
|
-
})) &&
|
|
1708
|
-
path: _path + ".applicationsAuthz[" +
|
|
2204
|
+
})) && _vo29(elem, _path + ".applicationsAuthz[" + _index32 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
2205
|
+
path: _path + ".applicationsAuthz[" + _index32 + "]",
|
|
1709
2206
|
expected: "CreateApplicationDTO",
|
|
1710
2207
|
value: elem
|
|
1711
2208
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1716,12 +2213,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1716
2213
|
path: _path + ".rolesAuthz",
|
|
1717
2214
|
expected: "(Array<CreateRoleDTO> | undefined)",
|
|
1718
2215
|
value: input.rolesAuthz
|
|
1719
|
-
})) && input.rolesAuthz.map((elem,
|
|
1720
|
-
path: _path + ".rolesAuthz[" +
|
|
2216
|
+
})) && input.rolesAuthz.map((elem, _index33) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2217
|
+
path: _path + ".rolesAuthz[" + _index33 + "]",
|
|
1721
2218
|
expected: "CreateRoleDTO",
|
|
1722
2219
|
value: elem
|
|
1723
|
-
})) &&
|
|
1724
|
-
path: _path + ".rolesAuthz[" +
|
|
2220
|
+
})) && _vo30(elem, _path + ".rolesAuthz[" + _index33 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
2221
|
+
path: _path + ".rolesAuthz[" + _index33 + "]",
|
|
1725
2222
|
expected: "CreateRoleDTO",
|
|
1726
2223
|
value: elem
|
|
1727
2224
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1732,12 +2229,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1732
2229
|
path: _path + ".operationsAuthz",
|
|
1733
2230
|
expected: "(Array<OperationAuthzBootstrap> | undefined)",
|
|
1734
2231
|
value: input.operationsAuthz
|
|
1735
|
-
})) && input.operationsAuthz.map((elem,
|
|
1736
|
-
path: _path + ".operationsAuthz[" +
|
|
2232
|
+
})) && input.operationsAuthz.map((elem, _index34) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2233
|
+
path: _path + ".operationsAuthz[" + _index34 + "]",
|
|
1737
2234
|
expected: "OperationAuthzBootstrap",
|
|
1738
2235
|
value: elem
|
|
1739
|
-
})) &&
|
|
1740
|
-
path: _path + ".operationsAuthz[" +
|
|
2236
|
+
})) && _vo31(elem, _path + ".operationsAuthz[" + _index34 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
2237
|
+
path: _path + ".operationsAuthz[" + _index34 + "]",
|
|
1741
2238
|
expected: "OperationAuthzBootstrap",
|
|
1742
2239
|
value: elem
|
|
1743
2240
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1748,12 +2245,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1748
2245
|
path: _path + ".modulesConfig",
|
|
1749
2246
|
expected: "(Array<UpdateModuleUIConfigDTO> | undefined)",
|
|
1750
2247
|
value: input.modulesConfig
|
|
1751
|
-
})) && input.modulesConfig.map((elem,
|
|
1752
|
-
path: _path + ".modulesConfig[" +
|
|
2248
|
+
})) && input.modulesConfig.map((elem, _index35) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2249
|
+
path: _path + ".modulesConfig[" + _index35 + "]",
|
|
1753
2250
|
expected: "UpdateModuleUIConfigDTO",
|
|
1754
2251
|
value: elem
|
|
1755
|
-
})) &&
|
|
1756
|
-
path: _path + ".modulesConfig[" +
|
|
2252
|
+
})) && _vo32(elem, _path + ".modulesConfig[" + _index35 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
2253
|
+
path: _path + ".modulesConfig[" + _index35 + "]",
|
|
1757
2254
|
expected: "UpdateModuleUIConfigDTO",
|
|
1758
2255
|
value: elem
|
|
1759
2256
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1792,12 +2289,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1792
2289
|
path: _path + ".valueRules",
|
|
1793
2290
|
expected: "(Array<BootstrapValueRule> | undefined)",
|
|
1794
2291
|
value: input.valueRules
|
|
1795
|
-
})) && input.valueRules.map((elem,
|
|
1796
|
-
path: _path + ".valueRules[" +
|
|
2292
|
+
})) && input.valueRules.map((elem, _index36) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2293
|
+
path: _path + ".valueRules[" + _index36 + "]",
|
|
1797
2294
|
expected: "BootstrapValueRule",
|
|
1798
2295
|
value: elem
|
|
1799
|
-
})) && _vo4(elem, _path + ".valueRules[" +
|
|
1800
|
-
path: _path + ".valueRules[" +
|
|
2296
|
+
})) && _vo4(elem, _path + ".valueRules[" + _index36 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
2297
|
+
path: _path + ".valueRules[" + _index36 + "]",
|
|
1801
2298
|
expected: "BootstrapValueRule",
|
|
1802
2299
|
value: elem
|
|
1803
2300
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1848,8 +2345,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1848
2345
|
path: _path + ".value",
|
|
1849
2346
|
expected: "(Array<string> | boolean | number | string)",
|
|
1850
2347
|
value: input.value
|
|
1851
|
-
})) && input.value.map((elem,
|
|
1852
|
-
path: _path + ".value[" +
|
|
2348
|
+
})) && input.value.map((elem, _index37) => "string" === typeof elem || _report(_exceptionable, {
|
|
2349
|
+
path: _path + ".value[" + _index37 + "]",
|
|
1853
2350
|
expected: "string",
|
|
1854
2351
|
value: elem
|
|
1855
2352
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1864,12 +2361,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1864
2361
|
path: _path + ".rules",
|
|
1865
2362
|
expected: "Array<BootstrapCondition>",
|
|
1866
2363
|
value: input.rules
|
|
1867
|
-
})) && input.rules.map((elem,
|
|
1868
|
-
path: _path + ".rules[" +
|
|
2364
|
+
})) && input.rules.map((elem, _index38) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2365
|
+
path: _path + ".rules[" + _index38 + "]",
|
|
1869
2366
|
expected: "(BootstrapCompositeCondition | BootstrapLeafCondition)",
|
|
1870
2367
|
value: elem
|
|
1871
|
-
})) && _vu0(elem, _path + ".rules[" +
|
|
1872
|
-
path: _path + ".rules[" +
|
|
2368
|
+
})) && _vu0(elem, _path + ".rules[" + _index38 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
2369
|
+
path: _path + ".rules[" + _index38 + "]",
|
|
1873
2370
|
expected: "(BootstrapCompositeCondition | BootstrapLeafCondition)",
|
|
1874
2371
|
value: elem
|
|
1875
2372
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1912,8 +2409,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1912
2409
|
path: _path + ".dependsOn",
|
|
1913
2410
|
expected: "Array<string>",
|
|
1914
2411
|
value: input.dependsOn
|
|
1915
|
-
})) && input.dependsOn.map((elem,
|
|
1916
|
-
path: _path + ".dependsOn[" +
|
|
2412
|
+
})) && input.dependsOn.map((elem, _index39) => "string" === typeof elem || _report(_exceptionable, {
|
|
2413
|
+
path: _path + ".dependsOn[" + _index39 + "]",
|
|
1917
2414
|
expected: "string",
|
|
1918
2415
|
value: elem
|
|
1919
2416
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1972,6 +2469,14 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1972
2469
|
path: _path + ".isPublic",
|
|
1973
2470
|
expected: "(boolean | undefined)",
|
|
1974
2471
|
value: input.isPublic
|
|
2472
|
+
}), undefined === input.tenantOverrides || ("object" === typeof input.tenantOverrides && null !== input.tenantOverrides && false === Array.isArray(input.tenantOverrides) || _report(_exceptionable, {
|
|
2473
|
+
path: _path + ".tenantOverrides",
|
|
2474
|
+
expected: "(ModuleTenantOverrides | undefined)",
|
|
2475
|
+
value: input.tenantOverrides
|
|
2476
|
+
})) && _vo21(input.tenantOverrides, _path + ".tenantOverrides", true && _exceptionable) || _report(_exceptionable, {
|
|
2477
|
+
path: _path + ".tenantOverrides",
|
|
2478
|
+
expected: "(ModuleTenantOverrides | undefined)",
|
|
2479
|
+
value: input.tenantOverrides
|
|
1975
2480
|
}), undefined === input.id || "number" === typeof input.id || _report(_exceptionable, {
|
|
1976
2481
|
path: _path + ".id",
|
|
1977
2482
|
expected: "(number | undefined)",
|
|
@@ -1980,7 +2485,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1980
2485
|
path: _path + ".serviceLocal",
|
|
1981
2486
|
expected: "(Partial<ServiceConfig> | undefined)",
|
|
1982
2487
|
value: input.serviceLocal
|
|
1983
|
-
})) &&
|
|
2488
|
+
})) && _vo23(input.serviceLocal, _path + ".serviceLocal", true && _exceptionable) || _report(_exceptionable, {
|
|
1984
2489
|
path: _path + ".serviceLocal",
|
|
1985
2490
|
expected: "(Partial<ServiceConfig> | undefined)",
|
|
1986
2491
|
value: input.serviceLocal
|
|
@@ -2089,8 +2594,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2089
2594
|
path: _path + ".operations",
|
|
2090
2595
|
expected: "(Array<string> | undefined)",
|
|
2091
2596
|
value: input.operations
|
|
2092
|
-
})) && input.operations.map((elem,
|
|
2093
|
-
path: _path + ".operations[" +
|
|
2597
|
+
})) && input.operations.map((elem, _index40) => "string" === typeof elem || _report(_exceptionable, {
|
|
2598
|
+
path: _path + ".operations[" + _index40 + "]",
|
|
2094
2599
|
expected: "string",
|
|
2095
2600
|
value: elem
|
|
2096
2601
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2101,12 +2606,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2101
2606
|
path: _path + ".routes",
|
|
2102
2607
|
expected: "(Array<RouteAuthorization> | undefined)",
|
|
2103
2608
|
value: input.routes
|
|
2104
|
-
})) && input.routes.map((elem,
|
|
2105
|
-
path: _path + ".routes[" +
|
|
2609
|
+
})) && input.routes.map((elem, _index41) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2610
|
+
path: _path + ".routes[" + _index41 + "]",
|
|
2106
2611
|
expected: "RouteAuthorization",
|
|
2107
2612
|
value: elem
|
|
2108
|
-
})) && _vo17(elem, _path + ".routes[" +
|
|
2109
|
-
path: _path + ".routes[" +
|
|
2613
|
+
})) && _vo17(elem, _path + ".routes[" + _index41 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
2614
|
+
path: _path + ".routes[" + _index41 + "]",
|
|
2110
2615
|
expected: "RouteAuthorization",
|
|
2111
2616
|
value: elem
|
|
2112
2617
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2117,8 +2622,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2117
2622
|
path: _path + ".methods",
|
|
2118
2623
|
expected: "(Array<HttpMethod> | undefined)",
|
|
2119
2624
|
value: input.methods
|
|
2120
|
-
})) && input.methods.map((elem,
|
|
2121
|
-
path: _path + ".methods[" +
|
|
2625
|
+
})) && input.methods.map((elem, _index42) => "POST" === elem || "DELETE" === elem || "GET" === elem || "HEAD" === elem || "OPTIONS" === elem || "PUT" === elem || "PATCH" === elem || "CONNECT" === elem || "TRACE" === elem || _report(_exceptionable, {
|
|
2626
|
+
path: _path + ".methods[" + _index42 + "]",
|
|
2122
2627
|
expected: "(\"CONNECT\" | \"DELETE\" | \"GET\" | \"HEAD\" | \"OPTIONS\" | \"PATCH\" | \"POST\" | \"PUT\" | \"TRACE\")",
|
|
2123
2628
|
value: elem
|
|
2124
2629
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2133,8 +2638,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2133
2638
|
path: _path + ".operations",
|
|
2134
2639
|
expected: "(Array<string> | undefined)",
|
|
2135
2640
|
value: input.operations
|
|
2136
|
-
})) && input.operations.map((elem,
|
|
2137
|
-
path: _path + ".operations[" +
|
|
2641
|
+
})) && input.operations.map((elem, _index43) => "string" === typeof elem || _report(_exceptionable, {
|
|
2642
|
+
path: _path + ".operations[" + _index43 + "]",
|
|
2138
2643
|
expected: "string",
|
|
2139
2644
|
value: elem
|
|
2140
2645
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2153,8 +2658,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2153
2658
|
path: _path + ".audience",
|
|
2154
2659
|
expected: "(Array<string> | string | undefined)",
|
|
2155
2660
|
value: input.audience
|
|
2156
|
-
})) && input.audience.map((elem,
|
|
2157
|
-
path: _path + ".audience[" +
|
|
2661
|
+
})) && input.audience.map((elem, _index44) => "string" === typeof elem || _report(_exceptionable, {
|
|
2662
|
+
path: _path + ".audience[" + _index44 + "]",
|
|
2158
2663
|
expected: "string",
|
|
2159
2664
|
value: elem
|
|
2160
2665
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2165,8 +2670,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2165
2670
|
path: _path + ".scopesSupported",
|
|
2166
2671
|
expected: "(Array<string> | undefined)",
|
|
2167
2672
|
value: input.scopesSupported
|
|
2168
|
-
})) && input.scopesSupported.map((elem,
|
|
2169
|
-
path: _path + ".scopesSupported[" +
|
|
2673
|
+
})) && input.scopesSupported.map((elem, _index45) => "string" === typeof elem || _report(_exceptionable, {
|
|
2674
|
+
path: _path + ".scopesSupported[" + _index45 + "]",
|
|
2170
2675
|
expected: "string",
|
|
2171
2676
|
value: elem
|
|
2172
2677
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2197,12 +2702,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2197
2702
|
path: _path + ".tools",
|
|
2198
2703
|
expected: "(Array<McpToolAuthorization> | undefined)",
|
|
2199
2704
|
value: input.tools
|
|
2200
|
-
})) && input.tools.map((elem,
|
|
2201
|
-
path: _path + ".tools[" +
|
|
2705
|
+
})) && input.tools.map((elem, _index46) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2706
|
+
path: _path + ".tools[" + _index46 + "]",
|
|
2202
2707
|
expected: "McpToolAuthorization",
|
|
2203
2708
|
value: elem
|
|
2204
|
-
})) && _vo20(elem, _path + ".tools[" +
|
|
2205
|
-
path: _path + ".tools[" +
|
|
2709
|
+
})) && _vo20(elem, _path + ".tools[" + _index46 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
2710
|
+
path: _path + ".tools[" + _index46 + "]",
|
|
2206
2711
|
expected: "McpToolAuthorization",
|
|
2207
2712
|
value: elem
|
|
2208
2713
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2217,8 +2722,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2217
2722
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
2218
2723
|
expected: "Array<string>",
|
|
2219
2724
|
value: value
|
|
2220
|
-
})) && value.map((elem,
|
|
2221
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key) + "[" +
|
|
2725
|
+
})) && value.map((elem, _index47) => "string" === typeof elem || _report(_exceptionable, {
|
|
2726
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key) + "[" + _index47 + "]",
|
|
2222
2727
|
expected: "string",
|
|
2223
2728
|
value: elem
|
|
2224
2729
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2234,8 +2739,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2234
2739
|
path: _path + ".operations",
|
|
2235
2740
|
expected: "Array<string>",
|
|
2236
2741
|
value: input.operations
|
|
2237
|
-
})) && input.operations.map((elem,
|
|
2238
|
-
path: _path + ".operations[" +
|
|
2742
|
+
})) && input.operations.map((elem, _index48) => "string" === typeof elem || _report(_exceptionable, {
|
|
2743
|
+
path: _path + ".operations[" + _index48 + "]",
|
|
2239
2744
|
expected: "string",
|
|
2240
2745
|
value: elem
|
|
2241
2746
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2246,7 +2751,96 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2246
2751
|
path: _path + ".operator",
|
|
2247
2752
|
expected: "(\"AND\" | \"OR\" | undefined)",
|
|
2248
2753
|
value: input.operator
|
|
2249
|
-
})].every(flag => flag); const _vo21 = (input, _path, _exceptionable = true) => [
|
|
2754
|
+
})].every(flag => flag); const _vo21 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
2755
|
+
const value = input[key];
|
|
2756
|
+
if (undefined === value)
|
|
2757
|
+
return true;
|
|
2758
|
+
return ("object" === typeof value && null !== value && false === Array.isArray(value) || _report(_exceptionable, {
|
|
2759
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
2760
|
+
expected: "ModuleTenantOverride",
|
|
2761
|
+
value: value
|
|
2762
|
+
})) && _vo22(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
2763
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
2764
|
+
expected: "ModuleTenantOverride",
|
|
2765
|
+
value: value
|
|
2766
|
+
});
|
|
2767
|
+
}).every(flag => flag)].every(flag => flag); const _vo22 = (input, _path, _exceptionable = true) => [undefined === input.displayName || "string" === typeof input.displayName || _report(_exceptionable, {
|
|
2768
|
+
path: _path + ".displayName",
|
|
2769
|
+
expected: "(string | undefined)",
|
|
2770
|
+
value: input.displayName
|
|
2771
|
+
}), 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 || _report(_exceptionable, {
|
|
2772
|
+
path: _path + ".type",
|
|
2773
|
+
expected: "(\"app\" | \"cloud-function\" | \"documentation\" | \"fragment\" | \"mcp\" | \"service\" | \"tool\" | \"utility\" | undefined)",
|
|
2774
|
+
value: input.type
|
|
2775
|
+
}), undefined === input.service || ("object" === typeof input.service && null !== input.service && false === Array.isArray(input.service) || _report(_exceptionable, {
|
|
2776
|
+
path: _path + ".service",
|
|
2777
|
+
expected: "(Partial<ServiceConfig> | undefined)",
|
|
2778
|
+
value: input.service
|
|
2779
|
+
})) && _vo23(input.service, _path + ".service", true && _exceptionable) || _report(_exceptionable, {
|
|
2780
|
+
path: _path + ".service",
|
|
2781
|
+
expected: "(Partial<ServiceConfig> | undefined)",
|
|
2782
|
+
value: input.service
|
|
2783
|
+
}), undefined === input.dependsOn || (Array.isArray(input.dependsOn) || _report(_exceptionable, {
|
|
2784
|
+
path: _path + ".dependsOn",
|
|
2785
|
+
expected: "(Array<string> | undefined)",
|
|
2786
|
+
value: input.dependsOn
|
|
2787
|
+
})) && input.dependsOn.map((elem, _index49) => "string" === typeof elem || _report(_exceptionable, {
|
|
2788
|
+
path: _path + ".dependsOn[" + _index49 + "]",
|
|
2789
|
+
expected: "string",
|
|
2790
|
+
value: elem
|
|
2791
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
2792
|
+
path: _path + ".dependsOn",
|
|
2793
|
+
expected: "(Array<string> | undefined)",
|
|
2794
|
+
value: input.dependsOn
|
|
2795
|
+
}), undefined === input.commonPaths || ("object" === typeof input.commonPaths && null !== input.commonPaths && false === Array.isArray(input.commonPaths) || _report(_exceptionable, {
|
|
2796
|
+
path: _path + ".commonPaths",
|
|
2797
|
+
expected: "(Partial<CommonPathsMetadata> | undefined)",
|
|
2798
|
+
value: input.commonPaths
|
|
2799
|
+
})) && _vo24(input.commonPaths, _path + ".commonPaths", true && _exceptionable) || _report(_exceptionable, {
|
|
2800
|
+
path: _path + ".commonPaths",
|
|
2801
|
+
expected: "(Partial<CommonPathsMetadata> | undefined)",
|
|
2802
|
+
value: input.commonPaths
|
|
2803
|
+
}), undefined === input.ui || ("object" === typeof input.ui && null !== input.ui && false === Array.isArray(input.ui) || _report(_exceptionable, {
|
|
2804
|
+
path: _path + ".ui",
|
|
2805
|
+
expected: "(Partial<UIConfig> | undefined)",
|
|
2806
|
+
value: input.ui
|
|
2807
|
+
})) && _vo25(input.ui, _path + ".ui", true && _exceptionable) || _report(_exceptionable, {
|
|
2808
|
+
path: _path + ".ui",
|
|
2809
|
+
expected: "(Partial<UIConfig> | undefined)",
|
|
2810
|
+
value: input.ui
|
|
2811
|
+
}), undefined === input.cloudFunction || ("object" === typeof input.cloudFunction && null !== input.cloudFunction && false === Array.isArray(input.cloudFunction) || _report(_exceptionable, {
|
|
2812
|
+
path: _path + ".cloudFunction",
|
|
2813
|
+
expected: "(Partial<CloudFunctionConfig> | undefined)",
|
|
2814
|
+
value: input.cloudFunction
|
|
2815
|
+
})) && _vo26(input.cloudFunction, _path + ".cloudFunction", true && _exceptionable) || _report(_exceptionable, {
|
|
2816
|
+
path: _path + ".cloudFunction",
|
|
2817
|
+
expected: "(Partial<CloudFunctionConfig> | undefined)",
|
|
2818
|
+
value: input.cloudFunction
|
|
2819
|
+
}), undefined === input.authorization || ("object" === typeof input.authorization && null !== input.authorization && false === Array.isArray(input.authorization) || _report(_exceptionable, {
|
|
2820
|
+
path: _path + ".authorization",
|
|
2821
|
+
expected: "(Partial<AuthorizationMetadata> | undefined)",
|
|
2822
|
+
value: input.authorization
|
|
2823
|
+
})) && _vo27(input.authorization, _path + ".authorization", true && _exceptionable) || _report(_exceptionable, {
|
|
2824
|
+
path: _path + ".authorization",
|
|
2825
|
+
expected: "(Partial<AuthorizationMetadata> | undefined)",
|
|
2826
|
+
value: input.authorization
|
|
2827
|
+
}), undefined === input.mcp || ("object" === typeof input.mcp && null !== input.mcp && false === Array.isArray(input.mcp) || _report(_exceptionable, {
|
|
2828
|
+
path: _path + ".mcp",
|
|
2829
|
+
expected: "(Partial<McpResourceConfig> | undefined)",
|
|
2830
|
+
value: input.mcp
|
|
2831
|
+
})) && _vo28(input.mcp, _path + ".mcp", true && _exceptionable) || _report(_exceptionable, {
|
|
2832
|
+
path: _path + ".mcp",
|
|
2833
|
+
expected: "(Partial<McpResourceConfig> | undefined)",
|
|
2834
|
+
value: input.mcp
|
|
2835
|
+
}), undefined === input.application || "string" === typeof input.application || _report(_exceptionable, {
|
|
2836
|
+
path: _path + ".application",
|
|
2837
|
+
expected: "(string | undefined)",
|
|
2838
|
+
value: input.application
|
|
2839
|
+
}), undefined === input.isPublic || "boolean" === typeof input.isPublic || _report(_exceptionable, {
|
|
2840
|
+
path: _path + ".isPublic",
|
|
2841
|
+
expected: "(boolean | undefined)",
|
|
2842
|
+
value: input.isPublic
|
|
2843
|
+
})].every(flag => flag); const _vo23 = (input, _path, _exceptionable = true) => [undefined === input.host || "string" === typeof input.host || _report(_exceptionable, {
|
|
2250
2844
|
path: _path + ".host",
|
|
2251
2845
|
expected: "(string | undefined)",
|
|
2252
2846
|
value: input.host
|
|
@@ -2262,7 +2856,151 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2262
2856
|
path: _path + ".includeBaseURL",
|
|
2263
2857
|
expected: "(boolean | undefined)",
|
|
2264
2858
|
value: input.includeBaseURL
|
|
2265
|
-
})].every(flag => flag); const
|
|
2859
|
+
})].every(flag => flag); const _vo24 = (input, _path, _exceptionable = true) => [undefined === input.apiDocs || "string" === typeof input.apiDocs || _report(_exceptionable, {
|
|
2860
|
+
path: _path + ".apiDocs",
|
|
2861
|
+
expected: "(string | undefined)",
|
|
2862
|
+
value: input.apiDocs
|
|
2863
|
+
}), undefined === input.version || "string" === typeof input.version || _report(_exceptionable, {
|
|
2864
|
+
path: _path + ".version",
|
|
2865
|
+
expected: "(string | undefined)",
|
|
2866
|
+
value: input.version
|
|
2867
|
+
}), undefined === input.health || "string" === typeof input.health || _report(_exceptionable, {
|
|
2868
|
+
path: _path + ".health",
|
|
2869
|
+
expected: "(string | undefined)",
|
|
2870
|
+
value: input.health
|
|
2871
|
+
}), undefined === input.changelog || "string" === typeof input.changelog || _report(_exceptionable, {
|
|
2872
|
+
path: _path + ".changelog",
|
|
2873
|
+
expected: "(string | undefined)",
|
|
2874
|
+
value: input.changelog
|
|
2875
|
+
})].every(flag => flag); const _vo25 = (input, _path, _exceptionable = true) => [undefined === input.route || "string" === typeof input.route || _report(_exceptionable, {
|
|
2876
|
+
path: _path + ".route",
|
|
2877
|
+
expected: "(string | undefined)",
|
|
2878
|
+
value: input.route
|
|
2879
|
+
}), null === input.mountAtSelector || undefined === input.mountAtSelector || "string" === typeof input.mountAtSelector || _report(_exceptionable, {
|
|
2880
|
+
path: _path + ".mountAtSelector",
|
|
2881
|
+
expected: "(null | string | undefined)",
|
|
2882
|
+
value: input.mountAtSelector
|
|
2883
|
+
}), undefined === input.bundleFile || "string" === typeof input.bundleFile || _report(_exceptionable, {
|
|
2884
|
+
path: _path + ".bundleFile",
|
|
2885
|
+
expected: "(string | undefined)",
|
|
2886
|
+
value: input.bundleFile
|
|
2887
|
+
}), undefined === input.customProps || ("object" === typeof input.customProps && null !== input.customProps && false === Array.isArray(input.customProps) || _report(_exceptionable, {
|
|
2888
|
+
path: _path + ".customProps",
|
|
2889
|
+
expected: "(ModuleProps | undefined)",
|
|
2890
|
+
value: input.customProps
|
|
2891
|
+
})) && _vo12(input.customProps, _path + ".customProps", true && _exceptionable) || _report(_exceptionable, {
|
|
2892
|
+
path: _path + ".customProps",
|
|
2893
|
+
expected: "(ModuleProps | undefined)",
|
|
2894
|
+
value: input.customProps
|
|
2895
|
+
}), undefined === input.shell || "boolean" === typeof input.shell || _report(_exceptionable, {
|
|
2896
|
+
path: _path + ".shell",
|
|
2897
|
+
expected: "(boolean | undefined)",
|
|
2898
|
+
value: input.shell
|
|
2899
|
+
}), undefined === input.isPlatformCustomization || "boolean" === typeof input.isPlatformCustomization || _report(_exceptionable, {
|
|
2900
|
+
path: _path + ".isPlatformCustomization",
|
|
2901
|
+
expected: "(boolean | undefined)",
|
|
2902
|
+
value: input.isPlatformCustomization
|
|
2903
|
+
})].every(flag => flag); const _vo26 = (input, _path, _exceptionable = true) => [undefined === input.provider || "aws" === input.provider || _report(_exceptionable, {
|
|
2904
|
+
path: _path + ".provider",
|
|
2905
|
+
expected: "(\"aws\" | undefined)",
|
|
2906
|
+
value: input.provider
|
|
2907
|
+
}), undefined === input.requiresSignature || "boolean" === typeof input.requiresSignature || _report(_exceptionable, {
|
|
2908
|
+
path: _path + ".requiresSignature",
|
|
2909
|
+
expected: "(boolean | undefined)",
|
|
2910
|
+
value: input.requiresSignature
|
|
2911
|
+
})].every(flag => flag); const _vo27 = (input, _path, _exceptionable = true) => [undefined === input.operations || (Array.isArray(input.operations) || _report(_exceptionable, {
|
|
2912
|
+
path: _path + ".operations",
|
|
2913
|
+
expected: "(Array<string> | undefined)",
|
|
2914
|
+
value: input.operations
|
|
2915
|
+
})) && input.operations.map((elem, _index50) => "string" === typeof elem || _report(_exceptionable, {
|
|
2916
|
+
path: _path + ".operations[" + _index50 + "]",
|
|
2917
|
+
expected: "string",
|
|
2918
|
+
value: elem
|
|
2919
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
2920
|
+
path: _path + ".operations",
|
|
2921
|
+
expected: "(Array<string> | undefined)",
|
|
2922
|
+
value: input.operations
|
|
2923
|
+
}), undefined === input.routes || (Array.isArray(input.routes) || _report(_exceptionable, {
|
|
2924
|
+
path: _path + ".routes",
|
|
2925
|
+
expected: "(Array<RouteAuthorization> | undefined)",
|
|
2926
|
+
value: input.routes
|
|
2927
|
+
})) && input.routes.map((elem, _index51) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2928
|
+
path: _path + ".routes[" + _index51 + "]",
|
|
2929
|
+
expected: "RouteAuthorization",
|
|
2930
|
+
value: elem
|
|
2931
|
+
})) && _vo17(elem, _path + ".routes[" + _index51 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
2932
|
+
path: _path + ".routes[" + _index51 + "]",
|
|
2933
|
+
expected: "RouteAuthorization",
|
|
2934
|
+
value: elem
|
|
2935
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
2936
|
+
path: _path + ".routes",
|
|
2937
|
+
expected: "(Array<RouteAuthorization> | undefined)",
|
|
2938
|
+
value: input.routes
|
|
2939
|
+
})].every(flag => flag); const _vo28 = (input, _path, _exceptionable = true) => [(null !== input.audience || _report(_exceptionable, {
|
|
2940
|
+
path: _path + ".audience",
|
|
2941
|
+
expected: "(Array<string> | string | undefined)",
|
|
2942
|
+
value: input.audience
|
|
2943
|
+
})) && (undefined === input.audience || "string" === typeof input.audience || (Array.isArray(input.audience) || _report(_exceptionable, {
|
|
2944
|
+
path: _path + ".audience",
|
|
2945
|
+
expected: "(Array<string> | string | undefined)",
|
|
2946
|
+
value: input.audience
|
|
2947
|
+
})) && input.audience.map((elem, _index52) => "string" === typeof elem || _report(_exceptionable, {
|
|
2948
|
+
path: _path + ".audience[" + _index52 + "]",
|
|
2949
|
+
expected: "string",
|
|
2950
|
+
value: elem
|
|
2951
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
2952
|
+
path: _path + ".audience",
|
|
2953
|
+
expected: "(Array<string> | string | undefined)",
|
|
2954
|
+
value: input.audience
|
|
2955
|
+
})), undefined === input.scopesSupported || (Array.isArray(input.scopesSupported) || _report(_exceptionable, {
|
|
2956
|
+
path: _path + ".scopesSupported",
|
|
2957
|
+
expected: "(Array<string> | undefined)",
|
|
2958
|
+
value: input.scopesSupported
|
|
2959
|
+
})) && input.scopesSupported.map((elem, _index53) => "string" === typeof elem || _report(_exceptionable, {
|
|
2960
|
+
path: _path + ".scopesSupported[" + _index53 + "]",
|
|
2961
|
+
expected: "string",
|
|
2962
|
+
value: elem
|
|
2963
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
2964
|
+
path: _path + ".scopesSupported",
|
|
2965
|
+
expected: "(Array<string> | undefined)",
|
|
2966
|
+
value: input.scopesSupported
|
|
2967
|
+
}), undefined === input.resourceName || "string" === typeof input.resourceName || _report(_exceptionable, {
|
|
2968
|
+
path: _path + ".resourceName",
|
|
2969
|
+
expected: "(string | undefined)",
|
|
2970
|
+
value: input.resourceName
|
|
2971
|
+
}), undefined === input.authServerProvider || "string" === typeof input.authServerProvider || _report(_exceptionable, {
|
|
2972
|
+
path: _path + ".authServerProvider",
|
|
2973
|
+
expected: "(string | undefined)",
|
|
2974
|
+
value: input.authServerProvider
|
|
2975
|
+
}), undefined === input.origin || "in-house" === input.origin || _report(_exceptionable, {
|
|
2976
|
+
path: _path + ".origin",
|
|
2977
|
+
expected: "(\"in-house\" | undefined)",
|
|
2978
|
+
value: input.origin
|
|
2979
|
+
}), undefined === input.scopeOperationMap || ("object" === typeof input.scopeOperationMap && null !== input.scopeOperationMap && false === Array.isArray(input.scopeOperationMap) || _report(_exceptionable, {
|
|
2980
|
+
path: _path + ".scopeOperationMap",
|
|
2981
|
+
expected: "(Record<string, Array<string>> | undefined)",
|
|
2982
|
+
value: input.scopeOperationMap
|
|
2983
|
+
})) && _vo19(input.scopeOperationMap, _path + ".scopeOperationMap", true && _exceptionable) || _report(_exceptionable, {
|
|
2984
|
+
path: _path + ".scopeOperationMap",
|
|
2985
|
+
expected: "(Record<string, Array<string>> | undefined)",
|
|
2986
|
+
value: input.scopeOperationMap
|
|
2987
|
+
}), undefined === input.tools || (Array.isArray(input.tools) || _report(_exceptionable, {
|
|
2988
|
+
path: _path + ".tools",
|
|
2989
|
+
expected: "(Array<McpToolAuthorization> | undefined)",
|
|
2990
|
+
value: input.tools
|
|
2991
|
+
})) && input.tools.map((elem, _index54) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2992
|
+
path: _path + ".tools[" + _index54 + "]",
|
|
2993
|
+
expected: "McpToolAuthorization",
|
|
2994
|
+
value: elem
|
|
2995
|
+
})) && _vo20(elem, _path + ".tools[" + _index54 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
2996
|
+
path: _path + ".tools[" + _index54 + "]",
|
|
2997
|
+
expected: "McpToolAuthorization",
|
|
2998
|
+
value: elem
|
|
2999
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
3000
|
+
path: _path + ".tools",
|
|
3001
|
+
expected: "(Array<McpToolAuthorization> | undefined)",
|
|
3002
|
+
value: input.tools
|
|
3003
|
+
})].every(flag => flag); const _vo29 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
2266
3004
|
path: _path + ".name",
|
|
2267
3005
|
expected: "string",
|
|
2268
3006
|
value: input.name
|
|
@@ -2282,15 +3020,15 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2282
3020
|
path: _path + ".allowedTenants",
|
|
2283
3021
|
expected: "(Array<string> | undefined)",
|
|
2284
3022
|
value: input.allowedTenants
|
|
2285
|
-
})) && input.allowedTenants.map((elem,
|
|
2286
|
-
path: _path + ".allowedTenants[" +
|
|
3023
|
+
})) && input.allowedTenants.map((elem, _index55) => "string" === typeof elem || _report(_exceptionable, {
|
|
3024
|
+
path: _path + ".allowedTenants[" + _index55 + "]",
|
|
2287
3025
|
expected: "string",
|
|
2288
3026
|
value: elem
|
|
2289
3027
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
2290
3028
|
path: _path + ".allowedTenants",
|
|
2291
3029
|
expected: "(Array<string> | undefined)",
|
|
2292
3030
|
value: input.allowedTenants
|
|
2293
|
-
})].every(flag => flag); const
|
|
3031
|
+
})].every(flag => flag); const _vo30 = (input, _path, _exceptionable = true) => [undefined === input.applicationName || "string" === typeof input.applicationName || _report(_exceptionable, {
|
|
2294
3032
|
path: _path + ".applicationName",
|
|
2295
3033
|
expected: "(string | undefined)",
|
|
2296
3034
|
value: input.applicationName
|
|
@@ -2302,12 +3040,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2302
3040
|
path: _path + ".description",
|
|
2303
3041
|
expected: "(string | undefined)",
|
|
2304
3042
|
value: input.description
|
|
2305
|
-
})].every(flag => flag); const
|
|
3043
|
+
})].every(flag => flag); const _vo31 = (input, _path, _exceptionable = true) => [undefined === input.roles || (Array.isArray(input.roles) || _report(_exceptionable, {
|
|
2306
3044
|
path: _path + ".roles",
|
|
2307
3045
|
expected: "(Array<string> | undefined)",
|
|
2308
3046
|
value: input.roles
|
|
2309
|
-
})) && input.roles.map((elem,
|
|
2310
|
-
path: _path + ".roles[" +
|
|
3047
|
+
})) && input.roles.map((elem, _index56) => "string" === typeof elem || _report(_exceptionable, {
|
|
3048
|
+
path: _path + ".roles[" + _index56 + "]",
|
|
2311
3049
|
expected: "string",
|
|
2312
3050
|
value: elem
|
|
2313
3051
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2326,7 +3064,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2326
3064
|
path: _path + ".applicationName",
|
|
2327
3065
|
expected: "(string | undefined)",
|
|
2328
3066
|
value: input.applicationName
|
|
2329
|
-
})].every(flag => flag); const
|
|
3067
|
+
})].every(flag => flag); const _vo32 = (input, _path, _exceptionable = true) => ["string" === typeof input.moduleName || _report(_exceptionable, {
|
|
2330
3068
|
path: _path + ".moduleName",
|
|
2331
3069
|
expected: "string",
|
|
2332
3070
|
value: input.moduleName
|
|
@@ -2404,7 +3142,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2404
3142
|
scopedTo: "any"
|
|
2405
3143
|
},
|
|
2406
3144
|
};
|
|
2407
|
-
const result = (() => { const _io0 = input => "object" === typeof input.syncConfig && null !== input.syncConfig && _io1(input.syncConfig) && (undefined === input.sharedLibraries || Array.isArray(input.sharedLibraries) && input.sharedLibraries.every(elem => "object" === typeof elem && null !== elem && _io2(elem))) && (undefined === input.featureFlags || Array.isArray(input.featureFlags) && input.featureFlags.every(elem => "object" === typeof elem && null !== elem && _io3(elem))) && (undefined === input.catalog || Array.isArray(input.catalog) && input.catalog.every(elem => "object" === typeof elem && null !== elem && _io8(elem))) && (undefined === input.applicationsAuthz || Array.isArray(input.applicationsAuthz) && input.applicationsAuthz.every(elem => "object" === typeof elem && null !== elem &&
|
|
3145
|
+
const result = (() => { const _io0 = input => "object" === typeof input.syncConfig && null !== input.syncConfig && _io1(input.syncConfig) && (undefined === input.sharedLibraries || Array.isArray(input.sharedLibraries) && input.sharedLibraries.every(elem => "object" === typeof elem && null !== elem && _io2(elem))) && (undefined === input.featureFlags || Array.isArray(input.featureFlags) && input.featureFlags.every(elem => "object" === typeof elem && null !== elem && _io3(elem))) && (undefined === input.catalog || Array.isArray(input.catalog) && input.catalog.every(elem => "object" === typeof elem && null !== elem && _io8(elem))) && (undefined === input.applicationsAuthz || Array.isArray(input.applicationsAuthz) && input.applicationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io29(elem))) && (undefined === input.rolesAuthz || Array.isArray(input.rolesAuthz) && input.rolesAuthz.every(elem => "object" === typeof elem && null !== elem && _io30(elem))) && (undefined === input.operationsAuthz || Array.isArray(input.operationsAuthz) && input.operationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io31(elem))) && (undefined === input.modulesConfig || Array.isArray(input.modulesConfig) && input.modulesConfig.every(elem => "object" === typeof elem && null !== elem && _io32(elem))); const _io1 = input => "string" === typeof input.scopedTo; const _io2 = input => "string" === typeof input.name && "string" === typeof input.url && (undefined === input.description || "string" === typeof input.description); const _io3 = input => "string" === typeof input.name && (undefined === input.description || "string" === typeof input.description) && (undefined === input.visible || "boolean" === typeof input.visible) && true && (undefined === input.valueRules || Array.isArray(input.valueRules) && input.valueRules.every(elem => "object" === typeof elem && null !== elem && _io4(elem))) && (undefined === input.applicationName || "string" === typeof input.applicationName); const _io4 = input => (undefined === input.name || "string" === typeof input.name) && ("object" === typeof input.condition && null !== input.condition && _iu0(input.condition)) && true && (undefined === input.rollout || "object" === typeof input.rollout && null !== input.rollout && _io7(input.rollout)); const _io5 = input => "string" === typeof input.attribute && ("eq" === input.operator || "neq" === input.operator || "in" === input.operator || "nin" === input.operator) && (null !== input.value && undefined !== input.value && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem))); const _io6 = input => ("AND" === input.operator || "OR" === input.operator) && (Array.isArray(input.rules) && input.rules.every(elem => "object" === typeof elem && null !== elem && _iu0(elem))); const _io7 = input => "number" === typeof input.percentage && "string" === typeof input.attribute; const _io8 = 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 && _io9(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) && _io10(input.commonPaths)) && (undefined === input.ui || "object" === typeof input.ui && null !== input.ui && _io11(input.ui)) && (undefined === input.cloudFunction || "object" === typeof input.cloudFunction && null !== input.cloudFunction && _io15(input.cloudFunction)) && (undefined === input.authorization || "object" === typeof input.authorization && null !== input.authorization && false === Array.isArray(input.authorization) && _io16(input.authorization)) && (undefined === input.mcp || "object" === typeof input.mcp && null !== input.mcp && _io18(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) && _io21(input.tenantOverrides)) && (undefined === input.id || "number" === typeof input.id) && (undefined === input.serviceLocal || "object" === typeof input.serviceLocal && null !== input.serviceLocal && false === Array.isArray(input.serviceLocal) && _io23(input.serviceLocal)); const _io9 = input => "string" === typeof input.host && "number" === typeof input.port && (undefined === input.protocol || "string" === typeof input.protocol) && (undefined === input.includeBaseURL || "boolean" === typeof input.includeBaseURL); const _io10 = 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 _io11 = input => "string" === typeof input.route && (null === input.mountAtSelector || undefined === input.mountAtSelector || "string" === typeof input.mountAtSelector) && "string" === typeof input.bundleFile && ("object" === typeof input.customProps && null !== input.customProps && false === Array.isArray(input.customProps) && _io12(input.customProps)) && (undefined === input.shell || "boolean" === typeof input.shell) && (undefined === input.isPlatformCustomization || "boolean" === typeof input.isPlatformCustomization); const _io12 = input => (undefined === input.tenantOverrides || "object" === typeof input.tenantOverrides && null !== input.tenantOverrides && false === Array.isArray(input.tenantOverrides) && _io13(input.tenantOverrides)) && Object.keys(input).every(key => {
|
|
2408
3146
|
if (["tenantOverrides"].some(prop => key === prop))
|
|
2409
3147
|
return true;
|
|
2410
3148
|
const value = input[key];
|
|
@@ -2426,7 +3164,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2426
3164
|
if (undefined === value)
|
|
2427
3165
|
return true;
|
|
2428
3166
|
return Array.isArray(value) && value.every(elem => "string" === typeof elem);
|
|
2429
|
-
}); const _io20 = 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 _io21 = input =>
|
|
3167
|
+
}); const _io20 = 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 _io21 = input => Object.keys(input).every(key => {
|
|
3168
|
+
const value = input[key];
|
|
3169
|
+
if (undefined === value)
|
|
3170
|
+
return true;
|
|
3171
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io22(value);
|
|
3172
|
+
}); const _io22 = 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) && _io23(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) && _io24(input.commonPaths)) && (undefined === input.ui || "object" === typeof input.ui && null !== input.ui && false === Array.isArray(input.ui) && _io25(input.ui)) && (undefined === input.cloudFunction || "object" === typeof input.cloudFunction && null !== input.cloudFunction && false === Array.isArray(input.cloudFunction) && _io26(input.cloudFunction)) && (undefined === input.authorization || "object" === typeof input.authorization && null !== input.authorization && false === Array.isArray(input.authorization) && _io27(input.authorization)) && (undefined === input.mcp || "object" === typeof input.mcp && null !== input.mcp && false === Array.isArray(input.mcp) && _io28(input.mcp)) && (undefined === input.application || "string" === typeof input.application) && (undefined === input.isPublic || "boolean" === typeof input.isPublic); const _io23 = 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 _io24 = 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 _io25 = 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) && _io12(input.customProps)) && (undefined === input.shell || "boolean" === typeof input.shell) && (undefined === input.isPlatformCustomization || "boolean" === typeof input.isPlatformCustomization); const _io26 = input => (undefined === input.provider || "aws" === input.provider) && (undefined === input.requiresSignature || "boolean" === typeof input.requiresSignature); const _io27 = 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 && _io17(elem))); const _io28 = 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) && _io19(input.scopeOperationMap)) && (undefined === input.tools || Array.isArray(input.tools) && input.tools.every(elem => "object" === typeof elem && null !== elem && _io20(elem))); const _io29 = input => "string" === typeof input.name && (undefined === input.displayName || "string" === typeof input.displayName) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.allowedByDefault || "boolean" === typeof input.allowedByDefault) && (undefined === input.allowedTenants || Array.isArray(input.allowedTenants) && input.allowedTenants.every(elem => "string" === typeof elem)); const _io30 = input => (undefined === input.applicationName || "string" === typeof input.applicationName) && "string" === typeof input.name && (undefined === input.description || "string" === typeof input.description); const _io31 = input => (undefined === input.roles || Array.isArray(input.roles) && input.roles.every(elem => "string" === typeof elem)) && "string" === typeof input.name && (undefined === input.description || "string" === typeof input.description) && (undefined === input.applicationName || "string" === typeof input.applicationName); const _io32 = input => "string" === typeof input.moduleName && ("object" === typeof input.customProps && null !== input.customProps && false === Array.isArray(input.customProps) && _io14(input.customProps)); const _iu0 = input => (() => {
|
|
2430
3173
|
if ("eq" === input.operator || "neq" === input.operator || "in" === input.operator || "nin" === input.operator)
|
|
2431
3174
|
return _io5(input);
|
|
2432
3175
|
else if ("AND" === input.operator || "OR" === input.operator)
|
|
@@ -2445,12 +3188,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2445
3188
|
path: _path + ".sharedLibraries",
|
|
2446
3189
|
expected: "(Array<CreateSharedLibraryDTO> | undefined)",
|
|
2447
3190
|
value: input.sharedLibraries
|
|
2448
|
-
})) && input.sharedLibraries.map((elem,
|
|
2449
|
-
path: _path + ".sharedLibraries[" +
|
|
3191
|
+
})) && input.sharedLibraries.map((elem, _index29) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
3192
|
+
path: _path + ".sharedLibraries[" + _index29 + "]",
|
|
2450
3193
|
expected: "CreateSharedLibraryDTO",
|
|
2451
3194
|
value: elem
|
|
2452
|
-
})) && _vo2(elem, _path + ".sharedLibraries[" +
|
|
2453
|
-
path: _path + ".sharedLibraries[" +
|
|
3195
|
+
})) && _vo2(elem, _path + ".sharedLibraries[" + _index29 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
3196
|
+
path: _path + ".sharedLibraries[" + _index29 + "]",
|
|
2454
3197
|
expected: "CreateSharedLibraryDTO",
|
|
2455
3198
|
value: elem
|
|
2456
3199
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2461,12 +3204,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2461
3204
|
path: _path + ".featureFlags",
|
|
2462
3205
|
expected: "(Array<BootstrapFeatureFlag> | undefined)",
|
|
2463
3206
|
value: input.featureFlags
|
|
2464
|
-
})) && input.featureFlags.map((elem,
|
|
2465
|
-
path: _path + ".featureFlags[" +
|
|
3207
|
+
})) && input.featureFlags.map((elem, _index30) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
3208
|
+
path: _path + ".featureFlags[" + _index30 + "]",
|
|
2466
3209
|
expected: "BootstrapFeatureFlag",
|
|
2467
3210
|
value: elem
|
|
2468
|
-
})) && _vo3(elem, _path + ".featureFlags[" +
|
|
2469
|
-
path: _path + ".featureFlags[" +
|
|
3211
|
+
})) && _vo3(elem, _path + ".featureFlags[" + _index30 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
3212
|
+
path: _path + ".featureFlags[" + _index30 + "]",
|
|
2470
3213
|
expected: "BootstrapFeatureFlag",
|
|
2471
3214
|
value: elem
|
|
2472
3215
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2477,12 +3220,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2477
3220
|
path: _path + ".catalog",
|
|
2478
3221
|
expected: "(Array<BootstrapModule> | undefined)",
|
|
2479
3222
|
value: input.catalog
|
|
2480
|
-
})) && input.catalog.map((elem,
|
|
2481
|
-
path: _path + ".catalog[" +
|
|
3223
|
+
})) && input.catalog.map((elem, _index31) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
3224
|
+
path: _path + ".catalog[" + _index31 + "]",
|
|
2482
3225
|
expected: "BootstrapModule",
|
|
2483
3226
|
value: elem
|
|
2484
|
-
})) && _vo8(elem, _path + ".catalog[" +
|
|
2485
|
-
path: _path + ".catalog[" +
|
|
3227
|
+
})) && _vo8(elem, _path + ".catalog[" + _index31 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
3228
|
+
path: _path + ".catalog[" + _index31 + "]",
|
|
2486
3229
|
expected: "BootstrapModule",
|
|
2487
3230
|
value: elem
|
|
2488
3231
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2493,12 +3236,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2493
3236
|
path: _path + ".applicationsAuthz",
|
|
2494
3237
|
expected: "(Array<CreateApplicationDTO> | undefined)",
|
|
2495
3238
|
value: input.applicationsAuthz
|
|
2496
|
-
})) && input.applicationsAuthz.map((elem,
|
|
2497
|
-
path: _path + ".applicationsAuthz[" +
|
|
3239
|
+
})) && input.applicationsAuthz.map((elem, _index32) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
3240
|
+
path: _path + ".applicationsAuthz[" + _index32 + "]",
|
|
2498
3241
|
expected: "CreateApplicationDTO",
|
|
2499
3242
|
value: elem
|
|
2500
|
-
})) &&
|
|
2501
|
-
path: _path + ".applicationsAuthz[" +
|
|
3243
|
+
})) && _vo29(elem, _path + ".applicationsAuthz[" + _index32 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
3244
|
+
path: _path + ".applicationsAuthz[" + _index32 + "]",
|
|
2502
3245
|
expected: "CreateApplicationDTO",
|
|
2503
3246
|
value: elem
|
|
2504
3247
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2509,12 +3252,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2509
3252
|
path: _path + ".rolesAuthz",
|
|
2510
3253
|
expected: "(Array<CreateRoleDTO> | undefined)",
|
|
2511
3254
|
value: input.rolesAuthz
|
|
2512
|
-
})) && input.rolesAuthz.map((elem,
|
|
2513
|
-
path: _path + ".rolesAuthz[" +
|
|
3255
|
+
})) && input.rolesAuthz.map((elem, _index33) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
3256
|
+
path: _path + ".rolesAuthz[" + _index33 + "]",
|
|
2514
3257
|
expected: "CreateRoleDTO",
|
|
2515
3258
|
value: elem
|
|
2516
|
-
})) &&
|
|
2517
|
-
path: _path + ".rolesAuthz[" +
|
|
3259
|
+
})) && _vo30(elem, _path + ".rolesAuthz[" + _index33 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
3260
|
+
path: _path + ".rolesAuthz[" + _index33 + "]",
|
|
2518
3261
|
expected: "CreateRoleDTO",
|
|
2519
3262
|
value: elem
|
|
2520
3263
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2525,12 +3268,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2525
3268
|
path: _path + ".operationsAuthz",
|
|
2526
3269
|
expected: "(Array<OperationAuthzBootstrap> | undefined)",
|
|
2527
3270
|
value: input.operationsAuthz
|
|
2528
|
-
})) && input.operationsAuthz.map((elem,
|
|
2529
|
-
path: _path + ".operationsAuthz[" +
|
|
3271
|
+
})) && input.operationsAuthz.map((elem, _index34) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
3272
|
+
path: _path + ".operationsAuthz[" + _index34 + "]",
|
|
2530
3273
|
expected: "OperationAuthzBootstrap",
|
|
2531
3274
|
value: elem
|
|
2532
|
-
})) &&
|
|
2533
|
-
path: _path + ".operationsAuthz[" +
|
|
3275
|
+
})) && _vo31(elem, _path + ".operationsAuthz[" + _index34 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
3276
|
+
path: _path + ".operationsAuthz[" + _index34 + "]",
|
|
2534
3277
|
expected: "OperationAuthzBootstrap",
|
|
2535
3278
|
value: elem
|
|
2536
3279
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2541,12 +3284,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2541
3284
|
path: _path + ".modulesConfig",
|
|
2542
3285
|
expected: "(Array<UpdateModuleUIConfigDTO> | undefined)",
|
|
2543
3286
|
value: input.modulesConfig
|
|
2544
|
-
})) && input.modulesConfig.map((elem,
|
|
2545
|
-
path: _path + ".modulesConfig[" +
|
|
3287
|
+
})) && input.modulesConfig.map((elem, _index35) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
3288
|
+
path: _path + ".modulesConfig[" + _index35 + "]",
|
|
2546
3289
|
expected: "UpdateModuleUIConfigDTO",
|
|
2547
3290
|
value: elem
|
|
2548
|
-
})) &&
|
|
2549
|
-
path: _path + ".modulesConfig[" +
|
|
3291
|
+
})) && _vo32(elem, _path + ".modulesConfig[" + _index35 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
3292
|
+
path: _path + ".modulesConfig[" + _index35 + "]",
|
|
2550
3293
|
expected: "UpdateModuleUIConfigDTO",
|
|
2551
3294
|
value: elem
|
|
2552
3295
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2585,12 +3328,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2585
3328
|
path: _path + ".valueRules",
|
|
2586
3329
|
expected: "(Array<BootstrapValueRule> | undefined)",
|
|
2587
3330
|
value: input.valueRules
|
|
2588
|
-
})) && input.valueRules.map((elem,
|
|
2589
|
-
path: _path + ".valueRules[" +
|
|
3331
|
+
})) && input.valueRules.map((elem, _index36) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
3332
|
+
path: _path + ".valueRules[" + _index36 + "]",
|
|
2590
3333
|
expected: "BootstrapValueRule",
|
|
2591
3334
|
value: elem
|
|
2592
|
-
})) && _vo4(elem, _path + ".valueRules[" +
|
|
2593
|
-
path: _path + ".valueRules[" +
|
|
3335
|
+
})) && _vo4(elem, _path + ".valueRules[" + _index36 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
3336
|
+
path: _path + ".valueRules[" + _index36 + "]",
|
|
2594
3337
|
expected: "BootstrapValueRule",
|
|
2595
3338
|
value: elem
|
|
2596
3339
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2641,8 +3384,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2641
3384
|
path: _path + ".value",
|
|
2642
3385
|
expected: "(Array<string> | boolean | number | string)",
|
|
2643
3386
|
value: input.value
|
|
2644
|
-
})) && input.value.map((elem,
|
|
2645
|
-
path: _path + ".value[" +
|
|
3387
|
+
})) && input.value.map((elem, _index37) => "string" === typeof elem || _report(_exceptionable, {
|
|
3388
|
+
path: _path + ".value[" + _index37 + "]",
|
|
2646
3389
|
expected: "string",
|
|
2647
3390
|
value: elem
|
|
2648
3391
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2657,12 +3400,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2657
3400
|
path: _path + ".rules",
|
|
2658
3401
|
expected: "Array<BootstrapCondition>",
|
|
2659
3402
|
value: input.rules
|
|
2660
|
-
})) && input.rules.map((elem,
|
|
2661
|
-
path: _path + ".rules[" +
|
|
3403
|
+
})) && input.rules.map((elem, _index38) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
3404
|
+
path: _path + ".rules[" + _index38 + "]",
|
|
2662
3405
|
expected: "(BootstrapCompositeCondition | BootstrapLeafCondition)",
|
|
2663
3406
|
value: elem
|
|
2664
|
-
})) && _vu0(elem, _path + ".rules[" +
|
|
2665
|
-
path: _path + ".rules[" +
|
|
3407
|
+
})) && _vu0(elem, _path + ".rules[" + _index38 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
3408
|
+
path: _path + ".rules[" + _index38 + "]",
|
|
2666
3409
|
expected: "(BootstrapCompositeCondition | BootstrapLeafCondition)",
|
|
2667
3410
|
value: elem
|
|
2668
3411
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2705,8 +3448,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2705
3448
|
path: _path + ".dependsOn",
|
|
2706
3449
|
expected: "Array<string>",
|
|
2707
3450
|
value: input.dependsOn
|
|
2708
|
-
})) && input.dependsOn.map((elem,
|
|
2709
|
-
path: _path + ".dependsOn[" +
|
|
3451
|
+
})) && input.dependsOn.map((elem, _index39) => "string" === typeof elem || _report(_exceptionable, {
|
|
3452
|
+
path: _path + ".dependsOn[" + _index39 + "]",
|
|
2710
3453
|
expected: "string",
|
|
2711
3454
|
value: elem
|
|
2712
3455
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2765,6 +3508,14 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2765
3508
|
path: _path + ".isPublic",
|
|
2766
3509
|
expected: "(boolean | undefined)",
|
|
2767
3510
|
value: input.isPublic
|
|
3511
|
+
}), undefined === input.tenantOverrides || ("object" === typeof input.tenantOverrides && null !== input.tenantOverrides && false === Array.isArray(input.tenantOverrides) || _report(_exceptionable, {
|
|
3512
|
+
path: _path + ".tenantOverrides",
|
|
3513
|
+
expected: "(ModuleTenantOverrides | undefined)",
|
|
3514
|
+
value: input.tenantOverrides
|
|
3515
|
+
})) && _vo21(input.tenantOverrides, _path + ".tenantOverrides", true && _exceptionable) || _report(_exceptionable, {
|
|
3516
|
+
path: _path + ".tenantOverrides",
|
|
3517
|
+
expected: "(ModuleTenantOverrides | undefined)",
|
|
3518
|
+
value: input.tenantOverrides
|
|
2768
3519
|
}), undefined === input.id || "number" === typeof input.id || _report(_exceptionable, {
|
|
2769
3520
|
path: _path + ".id",
|
|
2770
3521
|
expected: "(number | undefined)",
|
|
@@ -2773,7 +3524,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2773
3524
|
path: _path + ".serviceLocal",
|
|
2774
3525
|
expected: "(Partial<ServiceConfig> | undefined)",
|
|
2775
3526
|
value: input.serviceLocal
|
|
2776
|
-
})) &&
|
|
3527
|
+
})) && _vo23(input.serviceLocal, _path + ".serviceLocal", true && _exceptionable) || _report(_exceptionable, {
|
|
2777
3528
|
path: _path + ".serviceLocal",
|
|
2778
3529
|
expected: "(Partial<ServiceConfig> | undefined)",
|
|
2779
3530
|
value: input.serviceLocal
|
|
@@ -2882,8 +3633,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2882
3633
|
path: _path + ".operations",
|
|
2883
3634
|
expected: "(Array<string> | undefined)",
|
|
2884
3635
|
value: input.operations
|
|
2885
|
-
})) && input.operations.map((elem,
|
|
2886
|
-
path: _path + ".operations[" +
|
|
3636
|
+
})) && input.operations.map((elem, _index40) => "string" === typeof elem || _report(_exceptionable, {
|
|
3637
|
+
path: _path + ".operations[" + _index40 + "]",
|
|
2887
3638
|
expected: "string",
|
|
2888
3639
|
value: elem
|
|
2889
3640
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2894,12 +3645,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2894
3645
|
path: _path + ".routes",
|
|
2895
3646
|
expected: "(Array<RouteAuthorization> | undefined)",
|
|
2896
3647
|
value: input.routes
|
|
2897
|
-
})) && input.routes.map((elem,
|
|
2898
|
-
path: _path + ".routes[" +
|
|
3648
|
+
})) && input.routes.map((elem, _index41) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
3649
|
+
path: _path + ".routes[" + _index41 + "]",
|
|
2899
3650
|
expected: "RouteAuthorization",
|
|
2900
3651
|
value: elem
|
|
2901
|
-
})) && _vo17(elem, _path + ".routes[" +
|
|
2902
|
-
path: _path + ".routes[" +
|
|
3652
|
+
})) && _vo17(elem, _path + ".routes[" + _index41 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
3653
|
+
path: _path + ".routes[" + _index41 + "]",
|
|
2903
3654
|
expected: "RouteAuthorization",
|
|
2904
3655
|
value: elem
|
|
2905
3656
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2910,8 +3661,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2910
3661
|
path: _path + ".methods",
|
|
2911
3662
|
expected: "(Array<HttpMethod> | undefined)",
|
|
2912
3663
|
value: input.methods
|
|
2913
|
-
})) && input.methods.map((elem,
|
|
2914
|
-
path: _path + ".methods[" +
|
|
3664
|
+
})) && input.methods.map((elem, _index42) => "POST" === elem || "DELETE" === elem || "GET" === elem || "HEAD" === elem || "OPTIONS" === elem || "PUT" === elem || "PATCH" === elem || "CONNECT" === elem || "TRACE" === elem || _report(_exceptionable, {
|
|
3665
|
+
path: _path + ".methods[" + _index42 + "]",
|
|
2915
3666
|
expected: "(\"CONNECT\" | \"DELETE\" | \"GET\" | \"HEAD\" | \"OPTIONS\" | \"PATCH\" | \"POST\" | \"PUT\" | \"TRACE\")",
|
|
2916
3667
|
value: elem
|
|
2917
3668
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2926,8 +3677,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2926
3677
|
path: _path + ".operations",
|
|
2927
3678
|
expected: "(Array<string> | undefined)",
|
|
2928
3679
|
value: input.operations
|
|
2929
|
-
})) && input.operations.map((elem,
|
|
2930
|
-
path: _path + ".operations[" +
|
|
3680
|
+
})) && input.operations.map((elem, _index43) => "string" === typeof elem || _report(_exceptionable, {
|
|
3681
|
+
path: _path + ".operations[" + _index43 + "]",
|
|
2931
3682
|
expected: "string",
|
|
2932
3683
|
value: elem
|
|
2933
3684
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2946,8 +3697,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2946
3697
|
path: _path + ".audience",
|
|
2947
3698
|
expected: "(Array<string> | string | undefined)",
|
|
2948
3699
|
value: input.audience
|
|
2949
|
-
})) && input.audience.map((elem,
|
|
2950
|
-
path: _path + ".audience[" +
|
|
3700
|
+
})) && input.audience.map((elem, _index44) => "string" === typeof elem || _report(_exceptionable, {
|
|
3701
|
+
path: _path + ".audience[" + _index44 + "]",
|
|
2951
3702
|
expected: "string",
|
|
2952
3703
|
value: elem
|
|
2953
3704
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2958,8 +3709,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2958
3709
|
path: _path + ".scopesSupported",
|
|
2959
3710
|
expected: "(Array<string> | undefined)",
|
|
2960
3711
|
value: input.scopesSupported
|
|
2961
|
-
})) && input.scopesSupported.map((elem,
|
|
2962
|
-
path: _path + ".scopesSupported[" +
|
|
3712
|
+
})) && input.scopesSupported.map((elem, _index45) => "string" === typeof elem || _report(_exceptionable, {
|
|
3713
|
+
path: _path + ".scopesSupported[" + _index45 + "]",
|
|
2963
3714
|
expected: "string",
|
|
2964
3715
|
value: elem
|
|
2965
3716
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2990,12 +3741,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2990
3741
|
path: _path + ".tools",
|
|
2991
3742
|
expected: "(Array<McpToolAuthorization> | undefined)",
|
|
2992
3743
|
value: input.tools
|
|
2993
|
-
})) && input.tools.map((elem,
|
|
2994
|
-
path: _path + ".tools[" +
|
|
3744
|
+
})) && input.tools.map((elem, _index46) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
3745
|
+
path: _path + ".tools[" + _index46 + "]",
|
|
2995
3746
|
expected: "McpToolAuthorization",
|
|
2996
3747
|
value: elem
|
|
2997
|
-
})) && _vo20(elem, _path + ".tools[" +
|
|
2998
|
-
path: _path + ".tools[" +
|
|
3748
|
+
})) && _vo20(elem, _path + ".tools[" + _index46 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
3749
|
+
path: _path + ".tools[" + _index46 + "]",
|
|
2999
3750
|
expected: "McpToolAuthorization",
|
|
3000
3751
|
value: elem
|
|
3001
3752
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -3010,8 +3761,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
3010
3761
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
3011
3762
|
expected: "Array<string>",
|
|
3012
3763
|
value: value
|
|
3013
|
-
})) && value.map((elem,
|
|
3014
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key) + "[" +
|
|
3764
|
+
})) && value.map((elem, _index47) => "string" === typeof elem || _report(_exceptionable, {
|
|
3765
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key) + "[" + _index47 + "]",
|
|
3015
3766
|
expected: "string",
|
|
3016
3767
|
value: elem
|
|
3017
3768
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -3027,8 +3778,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
3027
3778
|
path: _path + ".operations",
|
|
3028
3779
|
expected: "Array<string>",
|
|
3029
3780
|
value: input.operations
|
|
3030
|
-
})) && input.operations.map((elem,
|
|
3031
|
-
path: _path + ".operations[" +
|
|
3781
|
+
})) && input.operations.map((elem, _index48) => "string" === typeof elem || _report(_exceptionable, {
|
|
3782
|
+
path: _path + ".operations[" + _index48 + "]",
|
|
3032
3783
|
expected: "string",
|
|
3033
3784
|
value: elem
|
|
3034
3785
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -3039,7 +3790,96 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
3039
3790
|
path: _path + ".operator",
|
|
3040
3791
|
expected: "(\"AND\" | \"OR\" | undefined)",
|
|
3041
3792
|
value: input.operator
|
|
3042
|
-
})].every(flag => flag); const _vo21 = (input, _path, _exceptionable = true) => [
|
|
3793
|
+
})].every(flag => flag); const _vo21 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
3794
|
+
const value = input[key];
|
|
3795
|
+
if (undefined === value)
|
|
3796
|
+
return true;
|
|
3797
|
+
return ("object" === typeof value && null !== value && false === Array.isArray(value) || _report(_exceptionable, {
|
|
3798
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
3799
|
+
expected: "ModuleTenantOverride",
|
|
3800
|
+
value: value
|
|
3801
|
+
})) && _vo22(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
3802
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
3803
|
+
expected: "ModuleTenantOverride",
|
|
3804
|
+
value: value
|
|
3805
|
+
});
|
|
3806
|
+
}).every(flag => flag)].every(flag => flag); const _vo22 = (input, _path, _exceptionable = true) => [undefined === input.displayName || "string" === typeof input.displayName || _report(_exceptionable, {
|
|
3807
|
+
path: _path + ".displayName",
|
|
3808
|
+
expected: "(string | undefined)",
|
|
3809
|
+
value: input.displayName
|
|
3810
|
+
}), 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 || _report(_exceptionable, {
|
|
3811
|
+
path: _path + ".type",
|
|
3812
|
+
expected: "(\"app\" | \"cloud-function\" | \"documentation\" | \"fragment\" | \"mcp\" | \"service\" | \"tool\" | \"utility\" | undefined)",
|
|
3813
|
+
value: input.type
|
|
3814
|
+
}), undefined === input.service || ("object" === typeof input.service && null !== input.service && false === Array.isArray(input.service) || _report(_exceptionable, {
|
|
3815
|
+
path: _path + ".service",
|
|
3816
|
+
expected: "(Partial<ServiceConfig> | undefined)",
|
|
3817
|
+
value: input.service
|
|
3818
|
+
})) && _vo23(input.service, _path + ".service", true && _exceptionable) || _report(_exceptionable, {
|
|
3819
|
+
path: _path + ".service",
|
|
3820
|
+
expected: "(Partial<ServiceConfig> | undefined)",
|
|
3821
|
+
value: input.service
|
|
3822
|
+
}), undefined === input.dependsOn || (Array.isArray(input.dependsOn) || _report(_exceptionable, {
|
|
3823
|
+
path: _path + ".dependsOn",
|
|
3824
|
+
expected: "(Array<string> | undefined)",
|
|
3825
|
+
value: input.dependsOn
|
|
3826
|
+
})) && input.dependsOn.map((elem, _index49) => "string" === typeof elem || _report(_exceptionable, {
|
|
3827
|
+
path: _path + ".dependsOn[" + _index49 + "]",
|
|
3828
|
+
expected: "string",
|
|
3829
|
+
value: elem
|
|
3830
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
3831
|
+
path: _path + ".dependsOn",
|
|
3832
|
+
expected: "(Array<string> | undefined)",
|
|
3833
|
+
value: input.dependsOn
|
|
3834
|
+
}), undefined === input.commonPaths || ("object" === typeof input.commonPaths && null !== input.commonPaths && false === Array.isArray(input.commonPaths) || _report(_exceptionable, {
|
|
3835
|
+
path: _path + ".commonPaths",
|
|
3836
|
+
expected: "(Partial<CommonPathsMetadata> | undefined)",
|
|
3837
|
+
value: input.commonPaths
|
|
3838
|
+
})) && _vo24(input.commonPaths, _path + ".commonPaths", true && _exceptionable) || _report(_exceptionable, {
|
|
3839
|
+
path: _path + ".commonPaths",
|
|
3840
|
+
expected: "(Partial<CommonPathsMetadata> | undefined)",
|
|
3841
|
+
value: input.commonPaths
|
|
3842
|
+
}), undefined === input.ui || ("object" === typeof input.ui && null !== input.ui && false === Array.isArray(input.ui) || _report(_exceptionable, {
|
|
3843
|
+
path: _path + ".ui",
|
|
3844
|
+
expected: "(Partial<UIConfig> | undefined)",
|
|
3845
|
+
value: input.ui
|
|
3846
|
+
})) && _vo25(input.ui, _path + ".ui", true && _exceptionable) || _report(_exceptionable, {
|
|
3847
|
+
path: _path + ".ui",
|
|
3848
|
+
expected: "(Partial<UIConfig> | undefined)",
|
|
3849
|
+
value: input.ui
|
|
3850
|
+
}), undefined === input.cloudFunction || ("object" === typeof input.cloudFunction && null !== input.cloudFunction && false === Array.isArray(input.cloudFunction) || _report(_exceptionable, {
|
|
3851
|
+
path: _path + ".cloudFunction",
|
|
3852
|
+
expected: "(Partial<CloudFunctionConfig> | undefined)",
|
|
3853
|
+
value: input.cloudFunction
|
|
3854
|
+
})) && _vo26(input.cloudFunction, _path + ".cloudFunction", true && _exceptionable) || _report(_exceptionable, {
|
|
3855
|
+
path: _path + ".cloudFunction",
|
|
3856
|
+
expected: "(Partial<CloudFunctionConfig> | undefined)",
|
|
3857
|
+
value: input.cloudFunction
|
|
3858
|
+
}), undefined === input.authorization || ("object" === typeof input.authorization && null !== input.authorization && false === Array.isArray(input.authorization) || _report(_exceptionable, {
|
|
3859
|
+
path: _path + ".authorization",
|
|
3860
|
+
expected: "(Partial<AuthorizationMetadata> | undefined)",
|
|
3861
|
+
value: input.authorization
|
|
3862
|
+
})) && _vo27(input.authorization, _path + ".authorization", true && _exceptionable) || _report(_exceptionable, {
|
|
3863
|
+
path: _path + ".authorization",
|
|
3864
|
+
expected: "(Partial<AuthorizationMetadata> | undefined)",
|
|
3865
|
+
value: input.authorization
|
|
3866
|
+
}), undefined === input.mcp || ("object" === typeof input.mcp && null !== input.mcp && false === Array.isArray(input.mcp) || _report(_exceptionable, {
|
|
3867
|
+
path: _path + ".mcp",
|
|
3868
|
+
expected: "(Partial<McpResourceConfig> | undefined)",
|
|
3869
|
+
value: input.mcp
|
|
3870
|
+
})) && _vo28(input.mcp, _path + ".mcp", true && _exceptionable) || _report(_exceptionable, {
|
|
3871
|
+
path: _path + ".mcp",
|
|
3872
|
+
expected: "(Partial<McpResourceConfig> | undefined)",
|
|
3873
|
+
value: input.mcp
|
|
3874
|
+
}), undefined === input.application || "string" === typeof input.application || _report(_exceptionable, {
|
|
3875
|
+
path: _path + ".application",
|
|
3876
|
+
expected: "(string | undefined)",
|
|
3877
|
+
value: input.application
|
|
3878
|
+
}), undefined === input.isPublic || "boolean" === typeof input.isPublic || _report(_exceptionable, {
|
|
3879
|
+
path: _path + ".isPublic",
|
|
3880
|
+
expected: "(boolean | undefined)",
|
|
3881
|
+
value: input.isPublic
|
|
3882
|
+
})].every(flag => flag); const _vo23 = (input, _path, _exceptionable = true) => [undefined === input.host || "string" === typeof input.host || _report(_exceptionable, {
|
|
3043
3883
|
path: _path + ".host",
|
|
3044
3884
|
expected: "(string | undefined)",
|
|
3045
3885
|
value: input.host
|
|
@@ -3055,7 +3895,151 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
3055
3895
|
path: _path + ".includeBaseURL",
|
|
3056
3896
|
expected: "(boolean | undefined)",
|
|
3057
3897
|
value: input.includeBaseURL
|
|
3058
|
-
})].every(flag => flag); const
|
|
3898
|
+
})].every(flag => flag); const _vo24 = (input, _path, _exceptionable = true) => [undefined === input.apiDocs || "string" === typeof input.apiDocs || _report(_exceptionable, {
|
|
3899
|
+
path: _path + ".apiDocs",
|
|
3900
|
+
expected: "(string | undefined)",
|
|
3901
|
+
value: input.apiDocs
|
|
3902
|
+
}), undefined === input.version || "string" === typeof input.version || _report(_exceptionable, {
|
|
3903
|
+
path: _path + ".version",
|
|
3904
|
+
expected: "(string | undefined)",
|
|
3905
|
+
value: input.version
|
|
3906
|
+
}), undefined === input.health || "string" === typeof input.health || _report(_exceptionable, {
|
|
3907
|
+
path: _path + ".health",
|
|
3908
|
+
expected: "(string | undefined)",
|
|
3909
|
+
value: input.health
|
|
3910
|
+
}), undefined === input.changelog || "string" === typeof input.changelog || _report(_exceptionable, {
|
|
3911
|
+
path: _path + ".changelog",
|
|
3912
|
+
expected: "(string | undefined)",
|
|
3913
|
+
value: input.changelog
|
|
3914
|
+
})].every(flag => flag); const _vo25 = (input, _path, _exceptionable = true) => [undefined === input.route || "string" === typeof input.route || _report(_exceptionable, {
|
|
3915
|
+
path: _path + ".route",
|
|
3916
|
+
expected: "(string | undefined)",
|
|
3917
|
+
value: input.route
|
|
3918
|
+
}), null === input.mountAtSelector || undefined === input.mountAtSelector || "string" === typeof input.mountAtSelector || _report(_exceptionable, {
|
|
3919
|
+
path: _path + ".mountAtSelector",
|
|
3920
|
+
expected: "(null | string | undefined)",
|
|
3921
|
+
value: input.mountAtSelector
|
|
3922
|
+
}), undefined === input.bundleFile || "string" === typeof input.bundleFile || _report(_exceptionable, {
|
|
3923
|
+
path: _path + ".bundleFile",
|
|
3924
|
+
expected: "(string | undefined)",
|
|
3925
|
+
value: input.bundleFile
|
|
3926
|
+
}), undefined === input.customProps || ("object" === typeof input.customProps && null !== input.customProps && false === Array.isArray(input.customProps) || _report(_exceptionable, {
|
|
3927
|
+
path: _path + ".customProps",
|
|
3928
|
+
expected: "(ModuleProps | undefined)",
|
|
3929
|
+
value: input.customProps
|
|
3930
|
+
})) && _vo12(input.customProps, _path + ".customProps", true && _exceptionable) || _report(_exceptionable, {
|
|
3931
|
+
path: _path + ".customProps",
|
|
3932
|
+
expected: "(ModuleProps | undefined)",
|
|
3933
|
+
value: input.customProps
|
|
3934
|
+
}), undefined === input.shell || "boolean" === typeof input.shell || _report(_exceptionable, {
|
|
3935
|
+
path: _path + ".shell",
|
|
3936
|
+
expected: "(boolean | undefined)",
|
|
3937
|
+
value: input.shell
|
|
3938
|
+
}), undefined === input.isPlatformCustomization || "boolean" === typeof input.isPlatformCustomization || _report(_exceptionable, {
|
|
3939
|
+
path: _path + ".isPlatformCustomization",
|
|
3940
|
+
expected: "(boolean | undefined)",
|
|
3941
|
+
value: input.isPlatformCustomization
|
|
3942
|
+
})].every(flag => flag); const _vo26 = (input, _path, _exceptionable = true) => [undefined === input.provider || "aws" === input.provider || _report(_exceptionable, {
|
|
3943
|
+
path: _path + ".provider",
|
|
3944
|
+
expected: "(\"aws\" | undefined)",
|
|
3945
|
+
value: input.provider
|
|
3946
|
+
}), undefined === input.requiresSignature || "boolean" === typeof input.requiresSignature || _report(_exceptionable, {
|
|
3947
|
+
path: _path + ".requiresSignature",
|
|
3948
|
+
expected: "(boolean | undefined)",
|
|
3949
|
+
value: input.requiresSignature
|
|
3950
|
+
})].every(flag => flag); const _vo27 = (input, _path, _exceptionable = true) => [undefined === input.operations || (Array.isArray(input.operations) || _report(_exceptionable, {
|
|
3951
|
+
path: _path + ".operations",
|
|
3952
|
+
expected: "(Array<string> | undefined)",
|
|
3953
|
+
value: input.operations
|
|
3954
|
+
})) && input.operations.map((elem, _index50) => "string" === typeof elem || _report(_exceptionable, {
|
|
3955
|
+
path: _path + ".operations[" + _index50 + "]",
|
|
3956
|
+
expected: "string",
|
|
3957
|
+
value: elem
|
|
3958
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
3959
|
+
path: _path + ".operations",
|
|
3960
|
+
expected: "(Array<string> | undefined)",
|
|
3961
|
+
value: input.operations
|
|
3962
|
+
}), undefined === input.routes || (Array.isArray(input.routes) || _report(_exceptionable, {
|
|
3963
|
+
path: _path + ".routes",
|
|
3964
|
+
expected: "(Array<RouteAuthorization> | undefined)",
|
|
3965
|
+
value: input.routes
|
|
3966
|
+
})) && input.routes.map((elem, _index51) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
3967
|
+
path: _path + ".routes[" + _index51 + "]",
|
|
3968
|
+
expected: "RouteAuthorization",
|
|
3969
|
+
value: elem
|
|
3970
|
+
})) && _vo17(elem, _path + ".routes[" + _index51 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
3971
|
+
path: _path + ".routes[" + _index51 + "]",
|
|
3972
|
+
expected: "RouteAuthorization",
|
|
3973
|
+
value: elem
|
|
3974
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
3975
|
+
path: _path + ".routes",
|
|
3976
|
+
expected: "(Array<RouteAuthorization> | undefined)",
|
|
3977
|
+
value: input.routes
|
|
3978
|
+
})].every(flag => flag); const _vo28 = (input, _path, _exceptionable = true) => [(null !== input.audience || _report(_exceptionable, {
|
|
3979
|
+
path: _path + ".audience",
|
|
3980
|
+
expected: "(Array<string> | string | undefined)",
|
|
3981
|
+
value: input.audience
|
|
3982
|
+
})) && (undefined === input.audience || "string" === typeof input.audience || (Array.isArray(input.audience) || _report(_exceptionable, {
|
|
3983
|
+
path: _path + ".audience",
|
|
3984
|
+
expected: "(Array<string> | string | undefined)",
|
|
3985
|
+
value: input.audience
|
|
3986
|
+
})) && input.audience.map((elem, _index52) => "string" === typeof elem || _report(_exceptionable, {
|
|
3987
|
+
path: _path + ".audience[" + _index52 + "]",
|
|
3988
|
+
expected: "string",
|
|
3989
|
+
value: elem
|
|
3990
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
3991
|
+
path: _path + ".audience",
|
|
3992
|
+
expected: "(Array<string> | string | undefined)",
|
|
3993
|
+
value: input.audience
|
|
3994
|
+
})), undefined === input.scopesSupported || (Array.isArray(input.scopesSupported) || _report(_exceptionable, {
|
|
3995
|
+
path: _path + ".scopesSupported",
|
|
3996
|
+
expected: "(Array<string> | undefined)",
|
|
3997
|
+
value: input.scopesSupported
|
|
3998
|
+
})) && input.scopesSupported.map((elem, _index53) => "string" === typeof elem || _report(_exceptionable, {
|
|
3999
|
+
path: _path + ".scopesSupported[" + _index53 + "]",
|
|
4000
|
+
expected: "string",
|
|
4001
|
+
value: elem
|
|
4002
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
4003
|
+
path: _path + ".scopesSupported",
|
|
4004
|
+
expected: "(Array<string> | undefined)",
|
|
4005
|
+
value: input.scopesSupported
|
|
4006
|
+
}), undefined === input.resourceName || "string" === typeof input.resourceName || _report(_exceptionable, {
|
|
4007
|
+
path: _path + ".resourceName",
|
|
4008
|
+
expected: "(string | undefined)",
|
|
4009
|
+
value: input.resourceName
|
|
4010
|
+
}), undefined === input.authServerProvider || "string" === typeof input.authServerProvider || _report(_exceptionable, {
|
|
4011
|
+
path: _path + ".authServerProvider",
|
|
4012
|
+
expected: "(string | undefined)",
|
|
4013
|
+
value: input.authServerProvider
|
|
4014
|
+
}), undefined === input.origin || "in-house" === input.origin || _report(_exceptionable, {
|
|
4015
|
+
path: _path + ".origin",
|
|
4016
|
+
expected: "(\"in-house\" | undefined)",
|
|
4017
|
+
value: input.origin
|
|
4018
|
+
}), undefined === input.scopeOperationMap || ("object" === typeof input.scopeOperationMap && null !== input.scopeOperationMap && false === Array.isArray(input.scopeOperationMap) || _report(_exceptionable, {
|
|
4019
|
+
path: _path + ".scopeOperationMap",
|
|
4020
|
+
expected: "(Record<string, Array<string>> | undefined)",
|
|
4021
|
+
value: input.scopeOperationMap
|
|
4022
|
+
})) && _vo19(input.scopeOperationMap, _path + ".scopeOperationMap", true && _exceptionable) || _report(_exceptionable, {
|
|
4023
|
+
path: _path + ".scopeOperationMap",
|
|
4024
|
+
expected: "(Record<string, Array<string>> | undefined)",
|
|
4025
|
+
value: input.scopeOperationMap
|
|
4026
|
+
}), undefined === input.tools || (Array.isArray(input.tools) || _report(_exceptionable, {
|
|
4027
|
+
path: _path + ".tools",
|
|
4028
|
+
expected: "(Array<McpToolAuthorization> | undefined)",
|
|
4029
|
+
value: input.tools
|
|
4030
|
+
})) && input.tools.map((elem, _index54) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
4031
|
+
path: _path + ".tools[" + _index54 + "]",
|
|
4032
|
+
expected: "McpToolAuthorization",
|
|
4033
|
+
value: elem
|
|
4034
|
+
})) && _vo20(elem, _path + ".tools[" + _index54 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
4035
|
+
path: _path + ".tools[" + _index54 + "]",
|
|
4036
|
+
expected: "McpToolAuthorization",
|
|
4037
|
+
value: elem
|
|
4038
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
4039
|
+
path: _path + ".tools",
|
|
4040
|
+
expected: "(Array<McpToolAuthorization> | undefined)",
|
|
4041
|
+
value: input.tools
|
|
4042
|
+
})].every(flag => flag); const _vo29 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
3059
4043
|
path: _path + ".name",
|
|
3060
4044
|
expected: "string",
|
|
3061
4045
|
value: input.name
|
|
@@ -3075,15 +4059,15 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
3075
4059
|
path: _path + ".allowedTenants",
|
|
3076
4060
|
expected: "(Array<string> | undefined)",
|
|
3077
4061
|
value: input.allowedTenants
|
|
3078
|
-
})) && input.allowedTenants.map((elem,
|
|
3079
|
-
path: _path + ".allowedTenants[" +
|
|
4062
|
+
})) && input.allowedTenants.map((elem, _index55) => "string" === typeof elem || _report(_exceptionable, {
|
|
4063
|
+
path: _path + ".allowedTenants[" + _index55 + "]",
|
|
3080
4064
|
expected: "string",
|
|
3081
4065
|
value: elem
|
|
3082
4066
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
3083
4067
|
path: _path + ".allowedTenants",
|
|
3084
4068
|
expected: "(Array<string> | undefined)",
|
|
3085
4069
|
value: input.allowedTenants
|
|
3086
|
-
})].every(flag => flag); const
|
|
4070
|
+
})].every(flag => flag); const _vo30 = (input, _path, _exceptionable = true) => [undefined === input.applicationName || "string" === typeof input.applicationName || _report(_exceptionable, {
|
|
3087
4071
|
path: _path + ".applicationName",
|
|
3088
4072
|
expected: "(string | undefined)",
|
|
3089
4073
|
value: input.applicationName
|
|
@@ -3095,12 +4079,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
3095
4079
|
path: _path + ".description",
|
|
3096
4080
|
expected: "(string | undefined)",
|
|
3097
4081
|
value: input.description
|
|
3098
|
-
})].every(flag => flag); const
|
|
4082
|
+
})].every(flag => flag); const _vo31 = (input, _path, _exceptionable = true) => [undefined === input.roles || (Array.isArray(input.roles) || _report(_exceptionable, {
|
|
3099
4083
|
path: _path + ".roles",
|
|
3100
4084
|
expected: "(Array<string> | undefined)",
|
|
3101
4085
|
value: input.roles
|
|
3102
|
-
})) && input.roles.map((elem,
|
|
3103
|
-
path: _path + ".roles[" +
|
|
4086
|
+
})) && input.roles.map((elem, _index56) => "string" === typeof elem || _report(_exceptionable, {
|
|
4087
|
+
path: _path + ".roles[" + _index56 + "]",
|
|
3104
4088
|
expected: "string",
|
|
3105
4089
|
value: elem
|
|
3106
4090
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -3119,7 +4103,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
3119
4103
|
path: _path + ".applicationName",
|
|
3120
4104
|
expected: "(string | undefined)",
|
|
3121
4105
|
value: input.applicationName
|
|
3122
|
-
})].every(flag => flag); const
|
|
4106
|
+
})].every(flag => flag); const _vo32 = (input, _path, _exceptionable = true) => ["string" === typeof input.moduleName || _report(_exceptionable, {
|
|
3123
4107
|
path: _path + ".moduleName",
|
|
3124
4108
|
expected: "string",
|
|
3125
4109
|
value: input.moduleName
|