@bluealba/pae-bootstrap-lib 3.2.2 → 3.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/bootstrap/domain/domain-validation.test.js +712 -256
- package/dist/src/bootstrap/domain/domain-validation.test.js.map +1 -1
- package/dist/src/bootstrap/read-bootstrap-applications.js +164 -24
- package/dist/src/bootstrap/read-bootstrap-applications.js.map +1 -1
- package/package.json +1 -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 && _io22(elem))) && (undefined === input.rolesAuthz || Array.isArray(input.rolesAuthz) && input.rolesAuthz.every(elem => "object" === typeof elem && null !== elem && _io23(elem))) && (undefined === input.operationsAuthz || Array.isArray(input.operationsAuthz) && input.operationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io24(elem))) && (undefined === input.modulesConfig || Array.isArray(input.modulesConfig) && input.modulesConfig.every(elem => "object" === typeof elem && null !== elem && _io25(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.id || "number" === typeof input.id) && (undefined === input.serviceLocal || "object" === typeof input.serviceLocal && null !== input.serviceLocal && false === Array.isArray(input.serviceLocal) && _io21(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];
|
|
@@ -63,7 +63,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
63
63
|
if (undefined === value)
|
|
64
64
|
return true;
|
|
65
65
|
return true;
|
|
66
|
-
}); const _io15 = input => "aws" === input.provider && "boolean" === typeof input.requiresSignature; const _io16 = 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 _io17 = input => (undefined === input.methods || Array.isArray(input.methods) && input.methods.every(elem => "POST" === elem || "DELETE" === elem || "GET" === elem || "HEAD" === elem || "OPTIONS" === elem || "PUT" === elem || "PATCH" === elem || "CONNECT" === elem || "TRACE" === elem)) && "string" === typeof input.pattern && (undefined === input.operations || Array.isArray(input.operations) && input.operations.every(elem => "string" === typeof elem)) && (undefined === input.isPublic || "boolean" === typeof input.isPublic); const _io18 = input =>
|
|
66
|
+
}); const _io15 = input => "aws" === input.provider && "boolean" === typeof input.requiresSignature; const _io16 = 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 _io17 = input => (undefined === input.methods || Array.isArray(input.methods) && input.methods.every(elem => "POST" === elem || "DELETE" === elem || "GET" === elem || "HEAD" === elem || "OPTIONS" === elem || "PUT" === elem || "PATCH" === elem || "CONNECT" === elem || "TRACE" === elem)) && "string" === typeof input.pattern && (undefined === input.operations || Array.isArray(input.operations) && input.operations.every(elem => "string" === typeof elem)) && (undefined === input.isPublic || "boolean" === typeof input.isPublic); const _io18 = 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) && "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 _io19 = input => Object.keys(input).every(key => {
|
|
67
|
+
const value = input[key];
|
|
68
|
+
if (undefined === value)
|
|
69
|
+
return true;
|
|
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 => (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 _io22 = 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 _io23 = input => (undefined === input.applicationName || "string" === typeof input.applicationName) && "string" === typeof input.name && (undefined === input.description || "string" === typeof input.description); const _io24 = 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 _io25 = input => "string" === typeof input.moduleName && ("object" === typeof input.customProps && null !== input.customProps && false === Array.isArray(input.customProps) && _io14(input.customProps)); const _iu0 = input => (() => {
|
|
67
72
|
if ("eq" === input.operator || "neq" === input.operator || "in" === input.operator || "nin" === input.operator)
|
|
68
73
|
return _io5(input);
|
|
69
74
|
else if ("AND" === input.operator || "OR" === input.operator)
|
|
@@ -82,12 +87,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
82
87
|
path: _path + ".sharedLibraries",
|
|
83
88
|
expected: "(Array<CreateSharedLibraryDTO> | undefined)",
|
|
84
89
|
value: input.sharedLibraries
|
|
85
|
-
})) && input.sharedLibraries.map((elem,
|
|
86
|
-
path: _path + ".sharedLibraries[" +
|
|
90
|
+
})) && input.sharedLibraries.map((elem, _index23) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
91
|
+
path: _path + ".sharedLibraries[" + _index23 + "]",
|
|
87
92
|
expected: "CreateSharedLibraryDTO",
|
|
88
93
|
value: elem
|
|
89
|
-
})) && _vo2(elem, _path + ".sharedLibraries[" +
|
|
90
|
-
path: _path + ".sharedLibraries[" +
|
|
94
|
+
})) && _vo2(elem, _path + ".sharedLibraries[" + _index23 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
95
|
+
path: _path + ".sharedLibraries[" + _index23 + "]",
|
|
91
96
|
expected: "CreateSharedLibraryDTO",
|
|
92
97
|
value: elem
|
|
93
98
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -98,12 +103,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
98
103
|
path: _path + ".featureFlags",
|
|
99
104
|
expected: "(Array<BootstrapFeatureFlag> | undefined)",
|
|
100
105
|
value: input.featureFlags
|
|
101
|
-
})) && input.featureFlags.map((elem,
|
|
102
|
-
path: _path + ".featureFlags[" +
|
|
106
|
+
})) && input.featureFlags.map((elem, _index24) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
107
|
+
path: _path + ".featureFlags[" + _index24 + "]",
|
|
103
108
|
expected: "BootstrapFeatureFlag",
|
|
104
109
|
value: elem
|
|
105
|
-
})) && _vo3(elem, _path + ".featureFlags[" +
|
|
106
|
-
path: _path + ".featureFlags[" +
|
|
110
|
+
})) && _vo3(elem, _path + ".featureFlags[" + _index24 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
111
|
+
path: _path + ".featureFlags[" + _index24 + "]",
|
|
107
112
|
expected: "BootstrapFeatureFlag",
|
|
108
113
|
value: elem
|
|
109
114
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -114,12 +119,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
114
119
|
path: _path + ".catalog",
|
|
115
120
|
expected: "(Array<BootstrapModule> | undefined)",
|
|
116
121
|
value: input.catalog
|
|
117
|
-
})) && input.catalog.map((elem,
|
|
118
|
-
path: _path + ".catalog[" +
|
|
122
|
+
})) && input.catalog.map((elem, _index25) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
123
|
+
path: _path + ".catalog[" + _index25 + "]",
|
|
119
124
|
expected: "BootstrapModule",
|
|
120
125
|
value: elem
|
|
121
|
-
})) && _vo8(elem, _path + ".catalog[" +
|
|
122
|
-
path: _path + ".catalog[" +
|
|
126
|
+
})) && _vo8(elem, _path + ".catalog[" + _index25 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
127
|
+
path: _path + ".catalog[" + _index25 + "]",
|
|
123
128
|
expected: "BootstrapModule",
|
|
124
129
|
value: elem
|
|
125
130
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -130,12 +135,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
130
135
|
path: _path + ".applicationsAuthz",
|
|
131
136
|
expected: "(Array<CreateApplicationDTO> | undefined)",
|
|
132
137
|
value: input.applicationsAuthz
|
|
133
|
-
})) && input.applicationsAuthz.map((elem,
|
|
134
|
-
path: _path + ".applicationsAuthz[" +
|
|
138
|
+
})) && input.applicationsAuthz.map((elem, _index26) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
139
|
+
path: _path + ".applicationsAuthz[" + _index26 + "]",
|
|
135
140
|
expected: "CreateApplicationDTO",
|
|
136
141
|
value: elem
|
|
137
|
-
})) &&
|
|
138
|
-
path: _path + ".applicationsAuthz[" +
|
|
142
|
+
})) && _vo22(elem, _path + ".applicationsAuthz[" + _index26 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
143
|
+
path: _path + ".applicationsAuthz[" + _index26 + "]",
|
|
139
144
|
expected: "CreateApplicationDTO",
|
|
140
145
|
value: elem
|
|
141
146
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -146,12 +151,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
146
151
|
path: _path + ".rolesAuthz",
|
|
147
152
|
expected: "(Array<CreateRoleDTO> | undefined)",
|
|
148
153
|
value: input.rolesAuthz
|
|
149
|
-
})) && input.rolesAuthz.map((elem,
|
|
150
|
-
path: _path + ".rolesAuthz[" +
|
|
154
|
+
})) && input.rolesAuthz.map((elem, _index27) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
155
|
+
path: _path + ".rolesAuthz[" + _index27 + "]",
|
|
151
156
|
expected: "CreateRoleDTO",
|
|
152
157
|
value: elem
|
|
153
|
-
})) &&
|
|
154
|
-
path: _path + ".rolesAuthz[" +
|
|
158
|
+
})) && _vo23(elem, _path + ".rolesAuthz[" + _index27 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
159
|
+
path: _path + ".rolesAuthz[" + _index27 + "]",
|
|
155
160
|
expected: "CreateRoleDTO",
|
|
156
161
|
value: elem
|
|
157
162
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -162,12 +167,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
162
167
|
path: _path + ".operationsAuthz",
|
|
163
168
|
expected: "(Array<OperationAuthzBootstrap> | undefined)",
|
|
164
169
|
value: input.operationsAuthz
|
|
165
|
-
})) && input.operationsAuthz.map((elem,
|
|
166
|
-
path: _path + ".operationsAuthz[" +
|
|
170
|
+
})) && input.operationsAuthz.map((elem, _index28) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
171
|
+
path: _path + ".operationsAuthz[" + _index28 + "]",
|
|
167
172
|
expected: "OperationAuthzBootstrap",
|
|
168
173
|
value: elem
|
|
169
|
-
})) &&
|
|
170
|
-
path: _path + ".operationsAuthz[" +
|
|
174
|
+
})) && _vo24(elem, _path + ".operationsAuthz[" + _index28 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
175
|
+
path: _path + ".operationsAuthz[" + _index28 + "]",
|
|
171
176
|
expected: "OperationAuthzBootstrap",
|
|
172
177
|
value: elem
|
|
173
178
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -178,12 +183,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
178
183
|
path: _path + ".modulesConfig",
|
|
179
184
|
expected: "(Array<UpdateModuleUIConfigDTO> | undefined)",
|
|
180
185
|
value: input.modulesConfig
|
|
181
|
-
})) && input.modulesConfig.map((elem,
|
|
182
|
-
path: _path + ".modulesConfig[" +
|
|
186
|
+
})) && input.modulesConfig.map((elem, _index29) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
187
|
+
path: _path + ".modulesConfig[" + _index29 + "]",
|
|
183
188
|
expected: "UpdateModuleUIConfigDTO",
|
|
184
189
|
value: elem
|
|
185
|
-
})) &&
|
|
186
|
-
path: _path + ".modulesConfig[" +
|
|
190
|
+
})) && _vo25(elem, _path + ".modulesConfig[" + _index29 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
191
|
+
path: _path + ".modulesConfig[" + _index29 + "]",
|
|
187
192
|
expected: "UpdateModuleUIConfigDTO",
|
|
188
193
|
value: elem
|
|
189
194
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -222,12 +227,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
222
227
|
path: _path + ".valueRules",
|
|
223
228
|
expected: "(Array<BootstrapValueRule> | undefined)",
|
|
224
229
|
value: input.valueRules
|
|
225
|
-
})) && input.valueRules.map((elem,
|
|
226
|
-
path: _path + ".valueRules[" +
|
|
230
|
+
})) && input.valueRules.map((elem, _index30) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
231
|
+
path: _path + ".valueRules[" + _index30 + "]",
|
|
227
232
|
expected: "BootstrapValueRule",
|
|
228
233
|
value: elem
|
|
229
|
-
})) && _vo4(elem, _path + ".valueRules[" +
|
|
230
|
-
path: _path + ".valueRules[" +
|
|
234
|
+
})) && _vo4(elem, _path + ".valueRules[" + _index30 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
235
|
+
path: _path + ".valueRules[" + _index30 + "]",
|
|
231
236
|
expected: "BootstrapValueRule",
|
|
232
237
|
value: elem
|
|
233
238
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -278,8 +283,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
278
283
|
path: _path + ".value",
|
|
279
284
|
expected: "(Array<string> | boolean | number | string)",
|
|
280
285
|
value: input.value
|
|
281
|
-
})) && input.value.map((elem,
|
|
282
|
-
path: _path + ".value[" +
|
|
286
|
+
})) && input.value.map((elem, _index31) => "string" === typeof elem || _report(_exceptionable, {
|
|
287
|
+
path: _path + ".value[" + _index31 + "]",
|
|
283
288
|
expected: "string",
|
|
284
289
|
value: elem
|
|
285
290
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -294,12 +299,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
294
299
|
path: _path + ".rules",
|
|
295
300
|
expected: "Array<BootstrapCondition>",
|
|
296
301
|
value: input.rules
|
|
297
|
-
})) && input.rules.map((elem,
|
|
298
|
-
path: _path + ".rules[" +
|
|
302
|
+
})) && input.rules.map((elem, _index32) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
303
|
+
path: _path + ".rules[" + _index32 + "]",
|
|
299
304
|
expected: "(BootstrapCompositeCondition | BootstrapLeafCondition)",
|
|
300
305
|
value: elem
|
|
301
|
-
})) && _vu0(elem, _path + ".rules[" +
|
|
302
|
-
path: _path + ".rules[" +
|
|
306
|
+
})) && _vu0(elem, _path + ".rules[" + _index32 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
307
|
+
path: _path + ".rules[" + _index32 + "]",
|
|
303
308
|
expected: "(BootstrapCompositeCondition | BootstrapLeafCondition)",
|
|
304
309
|
value: elem
|
|
305
310
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -322,9 +327,9 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
322
327
|
path: _path + ".displayName",
|
|
323
328
|
expected: "string",
|
|
324
329
|
value: input.displayName
|
|
325
|
-
}), "service" === input.type || "app" === input.type || "tool" === input.type || "utility" === input.type || "cloud-function" === input.type || "documentation" === input.type || "fragment" === input.type || _report(_exceptionable, {
|
|
330
|
+
}), "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, {
|
|
326
331
|
path: _path + ".type",
|
|
327
|
-
expected: "(\"app\" | \"cloud-function\" | \"documentation\" | \"fragment\" | \"service\" | \"tool\" | \"utility\")",
|
|
332
|
+
expected: "(\"app\" | \"cloud-function\" | \"documentation\" | \"fragment\" | \"mcp\" | \"service\" | \"tool\" | \"utility\")",
|
|
328
333
|
value: input.type
|
|
329
334
|
}), "string" === typeof input.baseUrl || _report(_exceptionable, {
|
|
330
335
|
path: _path + ".baseUrl",
|
|
@@ -342,8 +347,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
342
347
|
path: _path + ".dependsOn",
|
|
343
348
|
expected: "Array<string>",
|
|
344
349
|
value: input.dependsOn
|
|
345
|
-
})) && input.dependsOn.map((elem,
|
|
346
|
-
path: _path + ".dependsOn[" +
|
|
350
|
+
})) && input.dependsOn.map((elem, _index33) => "string" === typeof elem || _report(_exceptionable, {
|
|
351
|
+
path: _path + ".dependsOn[" + _index33 + "]",
|
|
347
352
|
expected: "string",
|
|
348
353
|
value: elem
|
|
349
354
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -382,6 +387,14 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
382
387
|
path: _path + ".authorization",
|
|
383
388
|
expected: "(AuthorizationMetadata | undefined)",
|
|
384
389
|
value: input.authorization
|
|
390
|
+
}), undefined === input.mcp || ("object" === typeof input.mcp && null !== input.mcp || _report(_exceptionable, {
|
|
391
|
+
path: _path + ".mcp",
|
|
392
|
+
expected: "(McpResourceConfig | undefined)",
|
|
393
|
+
value: input.mcp
|
|
394
|
+
})) && _vo18(input.mcp, _path + ".mcp", true && _exceptionable) || _report(_exceptionable, {
|
|
395
|
+
path: _path + ".mcp",
|
|
396
|
+
expected: "(McpResourceConfig | undefined)",
|
|
397
|
+
value: input.mcp
|
|
385
398
|
}), undefined === input.application || "string" === typeof input.application || _report(_exceptionable, {
|
|
386
399
|
path: _path + ".application",
|
|
387
400
|
expected: "(string | undefined)",
|
|
@@ -402,7 +415,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
402
415
|
path: _path + ".serviceLocal",
|
|
403
416
|
expected: "(Partial<ServiceConfig> | undefined)",
|
|
404
417
|
value: input.serviceLocal
|
|
405
|
-
})) &&
|
|
418
|
+
})) && _vo21(input.serviceLocal, _path + ".serviceLocal", true && _exceptionable) || _report(_exceptionable, {
|
|
406
419
|
path: _path + ".serviceLocal",
|
|
407
420
|
expected: "(Partial<ServiceConfig> | undefined)",
|
|
408
421
|
value: input.serviceLocal
|
|
@@ -511,8 +524,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
511
524
|
path: _path + ".operations",
|
|
512
525
|
expected: "(Array<string> | undefined)",
|
|
513
526
|
value: input.operations
|
|
514
|
-
})) && input.operations.map((elem,
|
|
515
|
-
path: _path + ".operations[" +
|
|
527
|
+
})) && input.operations.map((elem, _index34) => "string" === typeof elem || _report(_exceptionable, {
|
|
528
|
+
path: _path + ".operations[" + _index34 + "]",
|
|
516
529
|
expected: "string",
|
|
517
530
|
value: elem
|
|
518
531
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -523,12 +536,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
523
536
|
path: _path + ".routes",
|
|
524
537
|
expected: "(Array<RouteAuthorization> | undefined)",
|
|
525
538
|
value: input.routes
|
|
526
|
-
})) && input.routes.map((elem,
|
|
527
|
-
path: _path + ".routes[" +
|
|
539
|
+
})) && input.routes.map((elem, _index35) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
540
|
+
path: _path + ".routes[" + _index35 + "]",
|
|
528
541
|
expected: "RouteAuthorization",
|
|
529
542
|
value: elem
|
|
530
|
-
})) && _vo17(elem, _path + ".routes[" +
|
|
531
|
-
path: _path + ".routes[" +
|
|
543
|
+
})) && _vo17(elem, _path + ".routes[" + _index35 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
544
|
+
path: _path + ".routes[" + _index35 + "]",
|
|
532
545
|
expected: "RouteAuthorization",
|
|
533
546
|
value: elem
|
|
534
547
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -539,8 +552,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
539
552
|
path: _path + ".methods",
|
|
540
553
|
expected: "(Array<HttpMethod> | undefined)",
|
|
541
554
|
value: input.methods
|
|
542
|
-
})) && input.methods.map((elem,
|
|
543
|
-
path: _path + ".methods[" +
|
|
555
|
+
})) && input.methods.map((elem, _index36) => "POST" === elem || "DELETE" === elem || "GET" === elem || "HEAD" === elem || "OPTIONS" === elem || "PUT" === elem || "PATCH" === elem || "CONNECT" === elem || "TRACE" === elem || _report(_exceptionable, {
|
|
556
|
+
path: _path + ".methods[" + _index36 + "]",
|
|
544
557
|
expected: "(\"CONNECT\" | \"DELETE\" | \"GET\" | \"HEAD\" | \"OPTIONS\" | \"PATCH\" | \"POST\" | \"PUT\" | \"TRACE\")",
|
|
545
558
|
value: elem
|
|
546
559
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -555,8 +568,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
555
568
|
path: _path + ".operations",
|
|
556
569
|
expected: "(Array<string> | undefined)",
|
|
557
570
|
value: input.operations
|
|
558
|
-
})) && input.operations.map((elem,
|
|
559
|
-
path: _path + ".operations[" +
|
|
571
|
+
})) && input.operations.map((elem, _index37) => "string" === typeof elem || _report(_exceptionable, {
|
|
572
|
+
path: _path + ".operations[" + _index37 + "]",
|
|
560
573
|
expected: "string",
|
|
561
574
|
value: elem
|
|
562
575
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -567,7 +580,108 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
567
580
|
path: _path + ".isPublic",
|
|
568
581
|
expected: "(boolean | undefined)",
|
|
569
582
|
value: input.isPublic
|
|
570
|
-
})].every(flag => flag); const _vo18 = (input, _path, _exceptionable = true) => [
|
|
583
|
+
})].every(flag => flag); const _vo18 = (input, _path, _exceptionable = true) => [(null !== input.audience || _report(_exceptionable, {
|
|
584
|
+
path: _path + ".audience",
|
|
585
|
+
expected: "(Array<string> | string | undefined)",
|
|
586
|
+
value: input.audience
|
|
587
|
+
})) && (undefined === input.audience || "string" === typeof input.audience || (Array.isArray(input.audience) || _report(_exceptionable, {
|
|
588
|
+
path: _path + ".audience",
|
|
589
|
+
expected: "(Array<string> | string | undefined)",
|
|
590
|
+
value: input.audience
|
|
591
|
+
})) && input.audience.map((elem, _index38) => "string" === typeof elem || _report(_exceptionable, {
|
|
592
|
+
path: _path + ".audience[" + _index38 + "]",
|
|
593
|
+
expected: "string",
|
|
594
|
+
value: elem
|
|
595
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
596
|
+
path: _path + ".audience",
|
|
597
|
+
expected: "(Array<string> | string | undefined)",
|
|
598
|
+
value: input.audience
|
|
599
|
+
})), undefined === input.scopesSupported || (Array.isArray(input.scopesSupported) || _report(_exceptionable, {
|
|
600
|
+
path: _path + ".scopesSupported",
|
|
601
|
+
expected: "(Array<string> | undefined)",
|
|
602
|
+
value: input.scopesSupported
|
|
603
|
+
})) && input.scopesSupported.map((elem, _index39) => "string" === typeof elem || _report(_exceptionable, {
|
|
604
|
+
path: _path + ".scopesSupported[" + _index39 + "]",
|
|
605
|
+
expected: "string",
|
|
606
|
+
value: elem
|
|
607
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
608
|
+
path: _path + ".scopesSupported",
|
|
609
|
+
expected: "(Array<string> | undefined)",
|
|
610
|
+
value: input.scopesSupported
|
|
611
|
+
}), undefined === input.resourceName || "string" === typeof input.resourceName || _report(_exceptionable, {
|
|
612
|
+
path: _path + ".resourceName",
|
|
613
|
+
expected: "(string | undefined)",
|
|
614
|
+
value: input.resourceName
|
|
615
|
+
}), undefined === input.authServerProvider || "string" === typeof input.authServerProvider || _report(_exceptionable, {
|
|
616
|
+
path: _path + ".authServerProvider",
|
|
617
|
+
expected: "(string | undefined)",
|
|
618
|
+
value: input.authServerProvider
|
|
619
|
+
}), "in-house" === input.origin || _report(_exceptionable, {
|
|
620
|
+
path: _path + ".origin",
|
|
621
|
+
expected: "\"in-house\"",
|
|
622
|
+
value: input.origin
|
|
623
|
+
}), undefined === input.scopeOperationMap || ("object" === typeof input.scopeOperationMap && null !== input.scopeOperationMap && false === Array.isArray(input.scopeOperationMap) || _report(_exceptionable, {
|
|
624
|
+
path: _path + ".scopeOperationMap",
|
|
625
|
+
expected: "(Record<string, Array<string>> | undefined)",
|
|
626
|
+
value: input.scopeOperationMap
|
|
627
|
+
})) && _vo19(input.scopeOperationMap, _path + ".scopeOperationMap", true && _exceptionable) || _report(_exceptionable, {
|
|
628
|
+
path: _path + ".scopeOperationMap",
|
|
629
|
+
expected: "(Record<string, Array<string>> | undefined)",
|
|
630
|
+
value: input.scopeOperationMap
|
|
631
|
+
}), undefined === input.tools || (Array.isArray(input.tools) || _report(_exceptionable, {
|
|
632
|
+
path: _path + ".tools",
|
|
633
|
+
expected: "(Array<McpToolAuthorization> | undefined)",
|
|
634
|
+
value: input.tools
|
|
635
|
+
})) && input.tools.map((elem, _index40) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
636
|
+
path: _path + ".tools[" + _index40 + "]",
|
|
637
|
+
expected: "McpToolAuthorization",
|
|
638
|
+
value: elem
|
|
639
|
+
})) && _vo20(elem, _path + ".tools[" + _index40 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
640
|
+
path: _path + ".tools[" + _index40 + "]",
|
|
641
|
+
expected: "McpToolAuthorization",
|
|
642
|
+
value: elem
|
|
643
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
644
|
+
path: _path + ".tools",
|
|
645
|
+
expected: "(Array<McpToolAuthorization> | undefined)",
|
|
646
|
+
value: input.tools
|
|
647
|
+
})].every(flag => flag); const _vo19 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
648
|
+
const value = input[key];
|
|
649
|
+
if (undefined === value)
|
|
650
|
+
return true;
|
|
651
|
+
return (Array.isArray(value) || _report(_exceptionable, {
|
|
652
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
653
|
+
expected: "Array<string>",
|
|
654
|
+
value: value
|
|
655
|
+
})) && value.map((elem, _index41) => "string" === typeof elem || _report(_exceptionable, {
|
|
656
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key) + "[" + _index41 + "]",
|
|
657
|
+
expected: "string",
|
|
658
|
+
value: elem
|
|
659
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
660
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
661
|
+
expected: "Array<string>",
|
|
662
|
+
value: value
|
|
663
|
+
});
|
|
664
|
+
}).every(flag => flag)].every(flag => flag); const _vo20 = (input, _path, _exceptionable = true) => ["string" === typeof input.tool || _report(_exceptionable, {
|
|
665
|
+
path: _path + ".tool",
|
|
666
|
+
expected: "string",
|
|
667
|
+
value: input.tool
|
|
668
|
+
}), (Array.isArray(input.operations) || _report(_exceptionable, {
|
|
669
|
+
path: _path + ".operations",
|
|
670
|
+
expected: "Array<string>",
|
|
671
|
+
value: input.operations
|
|
672
|
+
})) && input.operations.map((elem, _index42) => "string" === typeof elem || _report(_exceptionable, {
|
|
673
|
+
path: _path + ".operations[" + _index42 + "]",
|
|
674
|
+
expected: "string",
|
|
675
|
+
value: elem
|
|
676
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
677
|
+
path: _path + ".operations",
|
|
678
|
+
expected: "Array<string>",
|
|
679
|
+
value: input.operations
|
|
680
|
+
}), undefined === input.operator || "AND" === input.operator || "OR" === input.operator || _report(_exceptionable, {
|
|
681
|
+
path: _path + ".operator",
|
|
682
|
+
expected: "(\"AND\" | \"OR\" | undefined)",
|
|
683
|
+
value: input.operator
|
|
684
|
+
})].every(flag => flag); const _vo21 = (input, _path, _exceptionable = true) => [undefined === input.host || "string" === typeof input.host || _report(_exceptionable, {
|
|
571
685
|
path: _path + ".host",
|
|
572
686
|
expected: "(string | undefined)",
|
|
573
687
|
value: input.host
|
|
@@ -583,7 +697,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
583
697
|
path: _path + ".includeBaseURL",
|
|
584
698
|
expected: "(boolean | undefined)",
|
|
585
699
|
value: input.includeBaseURL
|
|
586
|
-
})].every(flag => flag); const
|
|
700
|
+
})].every(flag => flag); const _vo22 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
587
701
|
path: _path + ".name",
|
|
588
702
|
expected: "string",
|
|
589
703
|
value: input.name
|
|
@@ -603,15 +717,15 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
603
717
|
path: _path + ".allowedTenants",
|
|
604
718
|
expected: "(Array<string> | undefined)",
|
|
605
719
|
value: input.allowedTenants
|
|
606
|
-
})) && input.allowedTenants.map((elem,
|
|
607
|
-
path: _path + ".allowedTenants[" +
|
|
720
|
+
})) && input.allowedTenants.map((elem, _index43) => "string" === typeof elem || _report(_exceptionable, {
|
|
721
|
+
path: _path + ".allowedTenants[" + _index43 + "]",
|
|
608
722
|
expected: "string",
|
|
609
723
|
value: elem
|
|
610
724
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
611
725
|
path: _path + ".allowedTenants",
|
|
612
726
|
expected: "(Array<string> | undefined)",
|
|
613
727
|
value: input.allowedTenants
|
|
614
|
-
})].every(flag => flag); const
|
|
728
|
+
})].every(flag => flag); const _vo23 = (input, _path, _exceptionable = true) => [undefined === input.applicationName || "string" === typeof input.applicationName || _report(_exceptionable, {
|
|
615
729
|
path: _path + ".applicationName",
|
|
616
730
|
expected: "(string | undefined)",
|
|
617
731
|
value: input.applicationName
|
|
@@ -623,12 +737,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
623
737
|
path: _path + ".description",
|
|
624
738
|
expected: "(string | undefined)",
|
|
625
739
|
value: input.description
|
|
626
|
-
})].every(flag => flag); const
|
|
740
|
+
})].every(flag => flag); const _vo24 = (input, _path, _exceptionable = true) => [undefined === input.roles || (Array.isArray(input.roles) || _report(_exceptionable, {
|
|
627
741
|
path: _path + ".roles",
|
|
628
742
|
expected: "(Array<string> | undefined)",
|
|
629
743
|
value: input.roles
|
|
630
|
-
})) && input.roles.map((elem,
|
|
631
|
-
path: _path + ".roles[" +
|
|
744
|
+
})) && input.roles.map((elem, _index44) => "string" === typeof elem || _report(_exceptionable, {
|
|
745
|
+
path: _path + ".roles[" + _index44 + "]",
|
|
632
746
|
expected: "string",
|
|
633
747
|
value: elem
|
|
634
748
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -647,7 +761,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
647
761
|
path: _path + ".applicationName",
|
|
648
762
|
expected: "(string | undefined)",
|
|
649
763
|
value: input.applicationName
|
|
650
|
-
})].every(flag => flag); const
|
|
764
|
+
})].every(flag => flag); const _vo25 = (input, _path, _exceptionable = true) => ["string" === typeof input.moduleName || _report(_exceptionable, {
|
|
651
765
|
path: _path + ".moduleName",
|
|
652
766
|
expected: "string",
|
|
653
767
|
value: input.moduleName
|
|
@@ -704,7 +818,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
704
818
|
const invalidObject = {
|
|
705
819
|
invalidField: 'invalidValue',
|
|
706
820
|
};
|
|
707
|
-
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 &&
|
|
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 && _io22(elem))) && (undefined === input.rolesAuthz || Array.isArray(input.rolesAuthz) && input.rolesAuthz.every(elem => "object" === typeof elem && null !== elem && _io23(elem))) && (undefined === input.operationsAuthz || Array.isArray(input.operationsAuthz) && input.operationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io24(elem))) && (undefined === input.modulesConfig || Array.isArray(input.modulesConfig) && input.modulesConfig.every(elem => "object" === typeof elem && null !== elem && _io25(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.id || "number" === typeof input.id) && (undefined === input.serviceLocal || "object" === typeof input.serviceLocal && null !== input.serviceLocal && false === Array.isArray(input.serviceLocal) && _io21(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 => {
|
|
708
822
|
if (["tenantOverrides"].some(prop => key === prop))
|
|
709
823
|
return true;
|
|
710
824
|
const value = input[key];
|
|
@@ -721,7 +835,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
721
835
|
if (undefined === value)
|
|
722
836
|
return true;
|
|
723
837
|
return true;
|
|
724
|
-
}); const _io15 = input => "aws" === input.provider && "boolean" === typeof input.requiresSignature; const _io16 = 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 _io17 = input => (undefined === input.methods || Array.isArray(input.methods) && input.methods.every(elem => "POST" === elem || "DELETE" === elem || "GET" === elem || "HEAD" === elem || "OPTIONS" === elem || "PUT" === elem || "PATCH" === elem || "CONNECT" === elem || "TRACE" === elem)) && "string" === typeof input.pattern && (undefined === input.operations || Array.isArray(input.operations) && input.operations.every(elem => "string" === typeof elem)) && (undefined === input.isPublic || "boolean" === typeof input.isPublic); const _io18 = input =>
|
|
838
|
+
}); const _io15 = input => "aws" === input.provider && "boolean" === typeof input.requiresSignature; const _io16 = 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 _io17 = input => (undefined === input.methods || Array.isArray(input.methods) && input.methods.every(elem => "POST" === elem || "DELETE" === elem || "GET" === elem || "HEAD" === elem || "OPTIONS" === elem || "PUT" === elem || "PATCH" === elem || "CONNECT" === elem || "TRACE" === elem)) && "string" === typeof input.pattern && (undefined === input.operations || Array.isArray(input.operations) && input.operations.every(elem => "string" === typeof elem)) && (undefined === input.isPublic || "boolean" === typeof input.isPublic); const _io18 = 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) && "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 _io19 = input => Object.keys(input).every(key => {
|
|
839
|
+
const value = input[key];
|
|
840
|
+
if (undefined === value)
|
|
841
|
+
return true;
|
|
842
|
+
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 => (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 _io22 = 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 _io23 = input => (undefined === input.applicationName || "string" === typeof input.applicationName) && "string" === typeof input.name && (undefined === input.description || "string" === typeof input.description); const _io24 = 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 _io25 = input => "string" === typeof input.moduleName && ("object" === typeof input.customProps && null !== input.customProps && false === Array.isArray(input.customProps) && _io14(input.customProps)); const _iu0 = input => (() => {
|
|
725
844
|
if ("eq" === input.operator || "neq" === input.operator || "in" === input.operator || "nin" === input.operator)
|
|
726
845
|
return _io5(input);
|
|
727
846
|
else if ("AND" === input.operator || "OR" === input.operator)
|
|
@@ -740,12 +859,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
740
859
|
path: _path + ".sharedLibraries",
|
|
741
860
|
expected: "(Array<CreateSharedLibraryDTO> | undefined)",
|
|
742
861
|
value: input.sharedLibraries
|
|
743
|
-
})) && input.sharedLibraries.map((elem,
|
|
744
|
-
path: _path + ".sharedLibraries[" +
|
|
862
|
+
})) && input.sharedLibraries.map((elem, _index23) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
863
|
+
path: _path + ".sharedLibraries[" + _index23 + "]",
|
|
745
864
|
expected: "CreateSharedLibraryDTO",
|
|
746
865
|
value: elem
|
|
747
|
-
})) && _vo2(elem, _path + ".sharedLibraries[" +
|
|
748
|
-
path: _path + ".sharedLibraries[" +
|
|
866
|
+
})) && _vo2(elem, _path + ".sharedLibraries[" + _index23 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
867
|
+
path: _path + ".sharedLibraries[" + _index23 + "]",
|
|
749
868
|
expected: "CreateSharedLibraryDTO",
|
|
750
869
|
value: elem
|
|
751
870
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -756,12 +875,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
756
875
|
path: _path + ".featureFlags",
|
|
757
876
|
expected: "(Array<BootstrapFeatureFlag> | undefined)",
|
|
758
877
|
value: input.featureFlags
|
|
759
|
-
})) && input.featureFlags.map((elem,
|
|
760
|
-
path: _path + ".featureFlags[" +
|
|
878
|
+
})) && input.featureFlags.map((elem, _index24) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
879
|
+
path: _path + ".featureFlags[" + _index24 + "]",
|
|
761
880
|
expected: "BootstrapFeatureFlag",
|
|
762
881
|
value: elem
|
|
763
|
-
})) && _vo3(elem, _path + ".featureFlags[" +
|
|
764
|
-
path: _path + ".featureFlags[" +
|
|
882
|
+
})) && _vo3(elem, _path + ".featureFlags[" + _index24 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
883
|
+
path: _path + ".featureFlags[" + _index24 + "]",
|
|
765
884
|
expected: "BootstrapFeatureFlag",
|
|
766
885
|
value: elem
|
|
767
886
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -772,12 +891,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
772
891
|
path: _path + ".catalog",
|
|
773
892
|
expected: "(Array<BootstrapModule> | undefined)",
|
|
774
893
|
value: input.catalog
|
|
775
|
-
})) && input.catalog.map((elem,
|
|
776
|
-
path: _path + ".catalog[" +
|
|
894
|
+
})) && input.catalog.map((elem, _index25) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
895
|
+
path: _path + ".catalog[" + _index25 + "]",
|
|
777
896
|
expected: "BootstrapModule",
|
|
778
897
|
value: elem
|
|
779
|
-
})) && _vo8(elem, _path + ".catalog[" +
|
|
780
|
-
path: _path + ".catalog[" +
|
|
898
|
+
})) && _vo8(elem, _path + ".catalog[" + _index25 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
899
|
+
path: _path + ".catalog[" + _index25 + "]",
|
|
781
900
|
expected: "BootstrapModule",
|
|
782
901
|
value: elem
|
|
783
902
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -788,12 +907,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
788
907
|
path: _path + ".applicationsAuthz",
|
|
789
908
|
expected: "(Array<CreateApplicationDTO> | undefined)",
|
|
790
909
|
value: input.applicationsAuthz
|
|
791
|
-
})) && input.applicationsAuthz.map((elem,
|
|
792
|
-
path: _path + ".applicationsAuthz[" +
|
|
910
|
+
})) && input.applicationsAuthz.map((elem, _index26) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
911
|
+
path: _path + ".applicationsAuthz[" + _index26 + "]",
|
|
793
912
|
expected: "CreateApplicationDTO",
|
|
794
913
|
value: elem
|
|
795
|
-
})) &&
|
|
796
|
-
path: _path + ".applicationsAuthz[" +
|
|
914
|
+
})) && _vo22(elem, _path + ".applicationsAuthz[" + _index26 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
915
|
+
path: _path + ".applicationsAuthz[" + _index26 + "]",
|
|
797
916
|
expected: "CreateApplicationDTO",
|
|
798
917
|
value: elem
|
|
799
918
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -804,12 +923,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
804
923
|
path: _path + ".rolesAuthz",
|
|
805
924
|
expected: "(Array<CreateRoleDTO> | undefined)",
|
|
806
925
|
value: input.rolesAuthz
|
|
807
|
-
})) && input.rolesAuthz.map((elem,
|
|
808
|
-
path: _path + ".rolesAuthz[" +
|
|
926
|
+
})) && input.rolesAuthz.map((elem, _index27) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
927
|
+
path: _path + ".rolesAuthz[" + _index27 + "]",
|
|
809
928
|
expected: "CreateRoleDTO",
|
|
810
929
|
value: elem
|
|
811
|
-
})) &&
|
|
812
|
-
path: _path + ".rolesAuthz[" +
|
|
930
|
+
})) && _vo23(elem, _path + ".rolesAuthz[" + _index27 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
931
|
+
path: _path + ".rolesAuthz[" + _index27 + "]",
|
|
813
932
|
expected: "CreateRoleDTO",
|
|
814
933
|
value: elem
|
|
815
934
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -820,12 +939,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
820
939
|
path: _path + ".operationsAuthz",
|
|
821
940
|
expected: "(Array<OperationAuthzBootstrap> | undefined)",
|
|
822
941
|
value: input.operationsAuthz
|
|
823
|
-
})) && input.operationsAuthz.map((elem,
|
|
824
|
-
path: _path + ".operationsAuthz[" +
|
|
942
|
+
})) && input.operationsAuthz.map((elem, _index28) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
943
|
+
path: _path + ".operationsAuthz[" + _index28 + "]",
|
|
825
944
|
expected: "OperationAuthzBootstrap",
|
|
826
945
|
value: elem
|
|
827
|
-
})) &&
|
|
828
|
-
path: _path + ".operationsAuthz[" +
|
|
946
|
+
})) && _vo24(elem, _path + ".operationsAuthz[" + _index28 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
947
|
+
path: _path + ".operationsAuthz[" + _index28 + "]",
|
|
829
948
|
expected: "OperationAuthzBootstrap",
|
|
830
949
|
value: elem
|
|
831
950
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -836,12 +955,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
836
955
|
path: _path + ".modulesConfig",
|
|
837
956
|
expected: "(Array<UpdateModuleUIConfigDTO> | undefined)",
|
|
838
957
|
value: input.modulesConfig
|
|
839
|
-
})) && input.modulesConfig.map((elem,
|
|
840
|
-
path: _path + ".modulesConfig[" +
|
|
958
|
+
})) && input.modulesConfig.map((elem, _index29) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
959
|
+
path: _path + ".modulesConfig[" + _index29 + "]",
|
|
841
960
|
expected: "UpdateModuleUIConfigDTO",
|
|
842
961
|
value: elem
|
|
843
|
-
})) &&
|
|
844
|
-
path: _path + ".modulesConfig[" +
|
|
962
|
+
})) && _vo25(elem, _path + ".modulesConfig[" + _index29 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
963
|
+
path: _path + ".modulesConfig[" + _index29 + "]",
|
|
845
964
|
expected: "UpdateModuleUIConfigDTO",
|
|
846
965
|
value: elem
|
|
847
966
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -880,12 +999,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
880
999
|
path: _path + ".valueRules",
|
|
881
1000
|
expected: "(Array<BootstrapValueRule> | undefined)",
|
|
882
1001
|
value: input.valueRules
|
|
883
|
-
})) && input.valueRules.map((elem,
|
|
884
|
-
path: _path + ".valueRules[" +
|
|
1002
|
+
})) && input.valueRules.map((elem, _index30) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1003
|
+
path: _path + ".valueRules[" + _index30 + "]",
|
|
885
1004
|
expected: "BootstrapValueRule",
|
|
886
1005
|
value: elem
|
|
887
|
-
})) && _vo4(elem, _path + ".valueRules[" +
|
|
888
|
-
path: _path + ".valueRules[" +
|
|
1006
|
+
})) && _vo4(elem, _path + ".valueRules[" + _index30 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1007
|
+
path: _path + ".valueRules[" + _index30 + "]",
|
|
889
1008
|
expected: "BootstrapValueRule",
|
|
890
1009
|
value: elem
|
|
891
1010
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -936,8 +1055,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
936
1055
|
path: _path + ".value",
|
|
937
1056
|
expected: "(Array<string> | boolean | number | string)",
|
|
938
1057
|
value: input.value
|
|
939
|
-
})) && input.value.map((elem,
|
|
940
|
-
path: _path + ".value[" +
|
|
1058
|
+
})) && input.value.map((elem, _index31) => "string" === typeof elem || _report(_exceptionable, {
|
|
1059
|
+
path: _path + ".value[" + _index31 + "]",
|
|
941
1060
|
expected: "string",
|
|
942
1061
|
value: elem
|
|
943
1062
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -952,12 +1071,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
952
1071
|
path: _path + ".rules",
|
|
953
1072
|
expected: "Array<BootstrapCondition>",
|
|
954
1073
|
value: input.rules
|
|
955
|
-
})) && input.rules.map((elem,
|
|
956
|
-
path: _path + ".rules[" +
|
|
1074
|
+
})) && input.rules.map((elem, _index32) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1075
|
+
path: _path + ".rules[" + _index32 + "]",
|
|
957
1076
|
expected: "(BootstrapCompositeCondition | BootstrapLeafCondition)",
|
|
958
1077
|
value: elem
|
|
959
|
-
})) && _vu0(elem, _path + ".rules[" +
|
|
960
|
-
path: _path + ".rules[" +
|
|
1078
|
+
})) && _vu0(elem, _path + ".rules[" + _index32 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1079
|
+
path: _path + ".rules[" + _index32 + "]",
|
|
961
1080
|
expected: "(BootstrapCompositeCondition | BootstrapLeafCondition)",
|
|
962
1081
|
value: elem
|
|
963
1082
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -980,9 +1099,9 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
980
1099
|
path: _path + ".displayName",
|
|
981
1100
|
expected: "string",
|
|
982
1101
|
value: input.displayName
|
|
983
|
-
}), "service" === input.type || "app" === input.type || "tool" === input.type || "utility" === input.type || "cloud-function" === input.type || "documentation" === input.type || "fragment" === input.type || _report(_exceptionable, {
|
|
1102
|
+
}), "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, {
|
|
984
1103
|
path: _path + ".type",
|
|
985
|
-
expected: "(\"app\" | \"cloud-function\" | \"documentation\" | \"fragment\" | \"service\" | \"tool\" | \"utility\")",
|
|
1104
|
+
expected: "(\"app\" | \"cloud-function\" | \"documentation\" | \"fragment\" | \"mcp\" | \"service\" | \"tool\" | \"utility\")",
|
|
986
1105
|
value: input.type
|
|
987
1106
|
}), "string" === typeof input.baseUrl || _report(_exceptionable, {
|
|
988
1107
|
path: _path + ".baseUrl",
|
|
@@ -1000,8 +1119,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1000
1119
|
path: _path + ".dependsOn",
|
|
1001
1120
|
expected: "Array<string>",
|
|
1002
1121
|
value: input.dependsOn
|
|
1003
|
-
})) && input.dependsOn.map((elem,
|
|
1004
|
-
path: _path + ".dependsOn[" +
|
|
1122
|
+
})) && input.dependsOn.map((elem, _index33) => "string" === typeof elem || _report(_exceptionable, {
|
|
1123
|
+
path: _path + ".dependsOn[" + _index33 + "]",
|
|
1005
1124
|
expected: "string",
|
|
1006
1125
|
value: elem
|
|
1007
1126
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1040,6 +1159,14 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1040
1159
|
path: _path + ".authorization",
|
|
1041
1160
|
expected: "(AuthorizationMetadata | undefined)",
|
|
1042
1161
|
value: input.authorization
|
|
1162
|
+
}), undefined === input.mcp || ("object" === typeof input.mcp && null !== input.mcp || _report(_exceptionable, {
|
|
1163
|
+
path: _path + ".mcp",
|
|
1164
|
+
expected: "(McpResourceConfig | undefined)",
|
|
1165
|
+
value: input.mcp
|
|
1166
|
+
})) && _vo18(input.mcp, _path + ".mcp", true && _exceptionable) || _report(_exceptionable, {
|
|
1167
|
+
path: _path + ".mcp",
|
|
1168
|
+
expected: "(McpResourceConfig | undefined)",
|
|
1169
|
+
value: input.mcp
|
|
1043
1170
|
}), undefined === input.application || "string" === typeof input.application || _report(_exceptionable, {
|
|
1044
1171
|
path: _path + ".application",
|
|
1045
1172
|
expected: "(string | undefined)",
|
|
@@ -1060,7 +1187,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1060
1187
|
path: _path + ".serviceLocal",
|
|
1061
1188
|
expected: "(Partial<ServiceConfig> | undefined)",
|
|
1062
1189
|
value: input.serviceLocal
|
|
1063
|
-
})) &&
|
|
1190
|
+
})) && _vo21(input.serviceLocal, _path + ".serviceLocal", true && _exceptionable) || _report(_exceptionable, {
|
|
1064
1191
|
path: _path + ".serviceLocal",
|
|
1065
1192
|
expected: "(Partial<ServiceConfig> | undefined)",
|
|
1066
1193
|
value: input.serviceLocal
|
|
@@ -1169,8 +1296,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1169
1296
|
path: _path + ".operations",
|
|
1170
1297
|
expected: "(Array<string> | undefined)",
|
|
1171
1298
|
value: input.operations
|
|
1172
|
-
})) && input.operations.map((elem,
|
|
1173
|
-
path: _path + ".operations[" +
|
|
1299
|
+
})) && input.operations.map((elem, _index34) => "string" === typeof elem || _report(_exceptionable, {
|
|
1300
|
+
path: _path + ".operations[" + _index34 + "]",
|
|
1174
1301
|
expected: "string",
|
|
1175
1302
|
value: elem
|
|
1176
1303
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1181,12 +1308,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1181
1308
|
path: _path + ".routes",
|
|
1182
1309
|
expected: "(Array<RouteAuthorization> | undefined)",
|
|
1183
1310
|
value: input.routes
|
|
1184
|
-
})) && input.routes.map((elem,
|
|
1185
|
-
path: _path + ".routes[" +
|
|
1311
|
+
})) && input.routes.map((elem, _index35) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1312
|
+
path: _path + ".routes[" + _index35 + "]",
|
|
1186
1313
|
expected: "RouteAuthorization",
|
|
1187
1314
|
value: elem
|
|
1188
|
-
})) && _vo17(elem, _path + ".routes[" +
|
|
1189
|
-
path: _path + ".routes[" +
|
|
1315
|
+
})) && _vo17(elem, _path + ".routes[" + _index35 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1316
|
+
path: _path + ".routes[" + _index35 + "]",
|
|
1190
1317
|
expected: "RouteAuthorization",
|
|
1191
1318
|
value: elem
|
|
1192
1319
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1197,8 +1324,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1197
1324
|
path: _path + ".methods",
|
|
1198
1325
|
expected: "(Array<HttpMethod> | undefined)",
|
|
1199
1326
|
value: input.methods
|
|
1200
|
-
})) && input.methods.map((elem,
|
|
1201
|
-
path: _path + ".methods[" +
|
|
1327
|
+
})) && input.methods.map((elem, _index36) => "POST" === elem || "DELETE" === elem || "GET" === elem || "HEAD" === elem || "OPTIONS" === elem || "PUT" === elem || "PATCH" === elem || "CONNECT" === elem || "TRACE" === elem || _report(_exceptionable, {
|
|
1328
|
+
path: _path + ".methods[" + _index36 + "]",
|
|
1202
1329
|
expected: "(\"CONNECT\" | \"DELETE\" | \"GET\" | \"HEAD\" | \"OPTIONS\" | \"PATCH\" | \"POST\" | \"PUT\" | \"TRACE\")",
|
|
1203
1330
|
value: elem
|
|
1204
1331
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1213,8 +1340,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1213
1340
|
path: _path + ".operations",
|
|
1214
1341
|
expected: "(Array<string> | undefined)",
|
|
1215
1342
|
value: input.operations
|
|
1216
|
-
})) && input.operations.map((elem,
|
|
1217
|
-
path: _path + ".operations[" +
|
|
1343
|
+
})) && input.operations.map((elem, _index37) => "string" === typeof elem || _report(_exceptionable, {
|
|
1344
|
+
path: _path + ".operations[" + _index37 + "]",
|
|
1218
1345
|
expected: "string",
|
|
1219
1346
|
value: elem
|
|
1220
1347
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1225,7 +1352,108 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1225
1352
|
path: _path + ".isPublic",
|
|
1226
1353
|
expected: "(boolean | undefined)",
|
|
1227
1354
|
value: input.isPublic
|
|
1228
|
-
})].every(flag => flag); const _vo18 = (input, _path, _exceptionable = true) => [
|
|
1355
|
+
})].every(flag => flag); const _vo18 = (input, _path, _exceptionable = true) => [(null !== input.audience || _report(_exceptionable, {
|
|
1356
|
+
path: _path + ".audience",
|
|
1357
|
+
expected: "(Array<string> | string | undefined)",
|
|
1358
|
+
value: input.audience
|
|
1359
|
+
})) && (undefined === input.audience || "string" === typeof input.audience || (Array.isArray(input.audience) || _report(_exceptionable, {
|
|
1360
|
+
path: _path + ".audience",
|
|
1361
|
+
expected: "(Array<string> | string | undefined)",
|
|
1362
|
+
value: input.audience
|
|
1363
|
+
})) && input.audience.map((elem, _index38) => "string" === typeof elem || _report(_exceptionable, {
|
|
1364
|
+
path: _path + ".audience[" + _index38 + "]",
|
|
1365
|
+
expected: "string",
|
|
1366
|
+
value: elem
|
|
1367
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
1368
|
+
path: _path + ".audience",
|
|
1369
|
+
expected: "(Array<string> | string | undefined)",
|
|
1370
|
+
value: input.audience
|
|
1371
|
+
})), undefined === input.scopesSupported || (Array.isArray(input.scopesSupported) || _report(_exceptionable, {
|
|
1372
|
+
path: _path + ".scopesSupported",
|
|
1373
|
+
expected: "(Array<string> | undefined)",
|
|
1374
|
+
value: input.scopesSupported
|
|
1375
|
+
})) && input.scopesSupported.map((elem, _index39) => "string" === typeof elem || _report(_exceptionable, {
|
|
1376
|
+
path: _path + ".scopesSupported[" + _index39 + "]",
|
|
1377
|
+
expected: "string",
|
|
1378
|
+
value: elem
|
|
1379
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
1380
|
+
path: _path + ".scopesSupported",
|
|
1381
|
+
expected: "(Array<string> | undefined)",
|
|
1382
|
+
value: input.scopesSupported
|
|
1383
|
+
}), undefined === input.resourceName || "string" === typeof input.resourceName || _report(_exceptionable, {
|
|
1384
|
+
path: _path + ".resourceName",
|
|
1385
|
+
expected: "(string | undefined)",
|
|
1386
|
+
value: input.resourceName
|
|
1387
|
+
}), undefined === input.authServerProvider || "string" === typeof input.authServerProvider || _report(_exceptionable, {
|
|
1388
|
+
path: _path + ".authServerProvider",
|
|
1389
|
+
expected: "(string | undefined)",
|
|
1390
|
+
value: input.authServerProvider
|
|
1391
|
+
}), "in-house" === input.origin || _report(_exceptionable, {
|
|
1392
|
+
path: _path + ".origin",
|
|
1393
|
+
expected: "\"in-house\"",
|
|
1394
|
+
value: input.origin
|
|
1395
|
+
}), undefined === input.scopeOperationMap || ("object" === typeof input.scopeOperationMap && null !== input.scopeOperationMap && false === Array.isArray(input.scopeOperationMap) || _report(_exceptionable, {
|
|
1396
|
+
path: _path + ".scopeOperationMap",
|
|
1397
|
+
expected: "(Record<string, Array<string>> | undefined)",
|
|
1398
|
+
value: input.scopeOperationMap
|
|
1399
|
+
})) && _vo19(input.scopeOperationMap, _path + ".scopeOperationMap", true && _exceptionable) || _report(_exceptionable, {
|
|
1400
|
+
path: _path + ".scopeOperationMap",
|
|
1401
|
+
expected: "(Record<string, Array<string>> | undefined)",
|
|
1402
|
+
value: input.scopeOperationMap
|
|
1403
|
+
}), undefined === input.tools || (Array.isArray(input.tools) || _report(_exceptionable, {
|
|
1404
|
+
path: _path + ".tools",
|
|
1405
|
+
expected: "(Array<McpToolAuthorization> | undefined)",
|
|
1406
|
+
value: input.tools
|
|
1407
|
+
})) && input.tools.map((elem, _index40) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1408
|
+
path: _path + ".tools[" + _index40 + "]",
|
|
1409
|
+
expected: "McpToolAuthorization",
|
|
1410
|
+
value: elem
|
|
1411
|
+
})) && _vo20(elem, _path + ".tools[" + _index40 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1412
|
+
path: _path + ".tools[" + _index40 + "]",
|
|
1413
|
+
expected: "McpToolAuthorization",
|
|
1414
|
+
value: elem
|
|
1415
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
1416
|
+
path: _path + ".tools",
|
|
1417
|
+
expected: "(Array<McpToolAuthorization> | undefined)",
|
|
1418
|
+
value: input.tools
|
|
1419
|
+
})].every(flag => flag); const _vo19 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
1420
|
+
const value = input[key];
|
|
1421
|
+
if (undefined === value)
|
|
1422
|
+
return true;
|
|
1423
|
+
return (Array.isArray(value) || _report(_exceptionable, {
|
|
1424
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1425
|
+
expected: "Array<string>",
|
|
1426
|
+
value: value
|
|
1427
|
+
})) && value.map((elem, _index41) => "string" === typeof elem || _report(_exceptionable, {
|
|
1428
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key) + "[" + _index41 + "]",
|
|
1429
|
+
expected: "string",
|
|
1430
|
+
value: elem
|
|
1431
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
1432
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1433
|
+
expected: "Array<string>",
|
|
1434
|
+
value: value
|
|
1435
|
+
});
|
|
1436
|
+
}).every(flag => flag)].every(flag => flag); const _vo20 = (input, _path, _exceptionable = true) => ["string" === typeof input.tool || _report(_exceptionable, {
|
|
1437
|
+
path: _path + ".tool",
|
|
1438
|
+
expected: "string",
|
|
1439
|
+
value: input.tool
|
|
1440
|
+
}), (Array.isArray(input.operations) || _report(_exceptionable, {
|
|
1441
|
+
path: _path + ".operations",
|
|
1442
|
+
expected: "Array<string>",
|
|
1443
|
+
value: input.operations
|
|
1444
|
+
})) && input.operations.map((elem, _index42) => "string" === typeof elem || _report(_exceptionable, {
|
|
1445
|
+
path: _path + ".operations[" + _index42 + "]",
|
|
1446
|
+
expected: "string",
|
|
1447
|
+
value: elem
|
|
1448
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
1449
|
+
path: _path + ".operations",
|
|
1450
|
+
expected: "Array<string>",
|
|
1451
|
+
value: input.operations
|
|
1452
|
+
}), undefined === input.operator || "AND" === input.operator || "OR" === input.operator || _report(_exceptionable, {
|
|
1453
|
+
path: _path + ".operator",
|
|
1454
|
+
expected: "(\"AND\" | \"OR\" | undefined)",
|
|
1455
|
+
value: input.operator
|
|
1456
|
+
})].every(flag => flag); const _vo21 = (input, _path, _exceptionable = true) => [undefined === input.host || "string" === typeof input.host || _report(_exceptionable, {
|
|
1229
1457
|
path: _path + ".host",
|
|
1230
1458
|
expected: "(string | undefined)",
|
|
1231
1459
|
value: input.host
|
|
@@ -1241,7 +1469,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1241
1469
|
path: _path + ".includeBaseURL",
|
|
1242
1470
|
expected: "(boolean | undefined)",
|
|
1243
1471
|
value: input.includeBaseURL
|
|
1244
|
-
})].every(flag => flag); const
|
|
1472
|
+
})].every(flag => flag); const _vo22 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
1245
1473
|
path: _path + ".name",
|
|
1246
1474
|
expected: "string",
|
|
1247
1475
|
value: input.name
|
|
@@ -1261,15 +1489,15 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1261
1489
|
path: _path + ".allowedTenants",
|
|
1262
1490
|
expected: "(Array<string> | undefined)",
|
|
1263
1491
|
value: input.allowedTenants
|
|
1264
|
-
})) && input.allowedTenants.map((elem,
|
|
1265
|
-
path: _path + ".allowedTenants[" +
|
|
1492
|
+
})) && input.allowedTenants.map((elem, _index43) => "string" === typeof elem || _report(_exceptionable, {
|
|
1493
|
+
path: _path + ".allowedTenants[" + _index43 + "]",
|
|
1266
1494
|
expected: "string",
|
|
1267
1495
|
value: elem
|
|
1268
1496
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
1269
1497
|
path: _path + ".allowedTenants",
|
|
1270
1498
|
expected: "(Array<string> | undefined)",
|
|
1271
1499
|
value: input.allowedTenants
|
|
1272
|
-
})].every(flag => flag); const
|
|
1500
|
+
})].every(flag => flag); const _vo23 = (input, _path, _exceptionable = true) => [undefined === input.applicationName || "string" === typeof input.applicationName || _report(_exceptionable, {
|
|
1273
1501
|
path: _path + ".applicationName",
|
|
1274
1502
|
expected: "(string | undefined)",
|
|
1275
1503
|
value: input.applicationName
|
|
@@ -1281,12 +1509,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1281
1509
|
path: _path + ".description",
|
|
1282
1510
|
expected: "(string | undefined)",
|
|
1283
1511
|
value: input.description
|
|
1284
|
-
})].every(flag => flag); const
|
|
1512
|
+
})].every(flag => flag); const _vo24 = (input, _path, _exceptionable = true) => [undefined === input.roles || (Array.isArray(input.roles) || _report(_exceptionable, {
|
|
1285
1513
|
path: _path + ".roles",
|
|
1286
1514
|
expected: "(Array<string> | undefined)",
|
|
1287
1515
|
value: input.roles
|
|
1288
|
-
})) && input.roles.map((elem,
|
|
1289
|
-
path: _path + ".roles[" +
|
|
1516
|
+
})) && input.roles.map((elem, _index44) => "string" === typeof elem || _report(_exceptionable, {
|
|
1517
|
+
path: _path + ".roles[" + _index44 + "]",
|
|
1290
1518
|
expected: "string",
|
|
1291
1519
|
value: elem
|
|
1292
1520
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1305,7 +1533,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1305
1533
|
path: _path + ".applicationName",
|
|
1306
1534
|
expected: "(string | undefined)",
|
|
1307
1535
|
value: input.applicationName
|
|
1308
|
-
})].every(flag => flag); const
|
|
1536
|
+
})].every(flag => flag); const _vo25 = (input, _path, _exceptionable = true) => ["string" === typeof input.moduleName || _report(_exceptionable, {
|
|
1309
1537
|
path: _path + ".moduleName",
|
|
1310
1538
|
expected: "string",
|
|
1311
1539
|
value: input.moduleName
|
|
@@ -1383,7 +1611,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1383
1611
|
scopedTo: "any"
|
|
1384
1612
|
},
|
|
1385
1613
|
};
|
|
1386
|
-
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 &&
|
|
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 && _io22(elem))) && (undefined === input.rolesAuthz || Array.isArray(input.rolesAuthz) && input.rolesAuthz.every(elem => "object" === typeof elem && null !== elem && _io23(elem))) && (undefined === input.operationsAuthz || Array.isArray(input.operationsAuthz) && input.operationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io24(elem))) && (undefined === input.modulesConfig || Array.isArray(input.modulesConfig) && input.modulesConfig.every(elem => "object" === typeof elem && null !== elem && _io25(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.id || "number" === typeof input.id) && (undefined === input.serviceLocal || "object" === typeof input.serviceLocal && null !== input.serviceLocal && false === Array.isArray(input.serviceLocal) && _io21(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 => {
|
|
1387
1615
|
if (["tenantOverrides"].some(prop => key === prop))
|
|
1388
1616
|
return true;
|
|
1389
1617
|
const value = input[key];
|
|
@@ -1400,7 +1628,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1400
1628
|
if (undefined === value)
|
|
1401
1629
|
return true;
|
|
1402
1630
|
return true;
|
|
1403
|
-
}); const _io15 = input => "aws" === input.provider && "boolean" === typeof input.requiresSignature; const _io16 = 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 _io17 = input => (undefined === input.methods || Array.isArray(input.methods) && input.methods.every(elem => "POST" === elem || "DELETE" === elem || "GET" === elem || "HEAD" === elem || "OPTIONS" === elem || "PUT" === elem || "PATCH" === elem || "CONNECT" === elem || "TRACE" === elem)) && "string" === typeof input.pattern && (undefined === input.operations || Array.isArray(input.operations) && input.operations.every(elem => "string" === typeof elem)) && (undefined === input.isPublic || "boolean" === typeof input.isPublic); const _io18 = input =>
|
|
1631
|
+
}); const _io15 = input => "aws" === input.provider && "boolean" === typeof input.requiresSignature; const _io16 = 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 _io17 = input => (undefined === input.methods || Array.isArray(input.methods) && input.methods.every(elem => "POST" === elem || "DELETE" === elem || "GET" === elem || "HEAD" === elem || "OPTIONS" === elem || "PUT" === elem || "PATCH" === elem || "CONNECT" === elem || "TRACE" === elem)) && "string" === typeof input.pattern && (undefined === input.operations || Array.isArray(input.operations) && input.operations.every(elem => "string" === typeof elem)) && (undefined === input.isPublic || "boolean" === typeof input.isPublic); const _io18 = 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) && "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 _io19 = input => Object.keys(input).every(key => {
|
|
1632
|
+
const value = input[key];
|
|
1633
|
+
if (undefined === value)
|
|
1634
|
+
return true;
|
|
1635
|
+
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 => (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 _io22 = 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 _io23 = input => (undefined === input.applicationName || "string" === typeof input.applicationName) && "string" === typeof input.name && (undefined === input.description || "string" === typeof input.description); const _io24 = 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 _io25 = input => "string" === typeof input.moduleName && ("object" === typeof input.customProps && null !== input.customProps && false === Array.isArray(input.customProps) && _io14(input.customProps)); const _iu0 = input => (() => {
|
|
1404
1637
|
if ("eq" === input.operator || "neq" === input.operator || "in" === input.operator || "nin" === input.operator)
|
|
1405
1638
|
return _io5(input);
|
|
1406
1639
|
else if ("AND" === input.operator || "OR" === input.operator)
|
|
@@ -1419,12 +1652,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1419
1652
|
path: _path + ".sharedLibraries",
|
|
1420
1653
|
expected: "(Array<CreateSharedLibraryDTO> | undefined)",
|
|
1421
1654
|
value: input.sharedLibraries
|
|
1422
|
-
})) && input.sharedLibraries.map((elem,
|
|
1423
|
-
path: _path + ".sharedLibraries[" +
|
|
1655
|
+
})) && input.sharedLibraries.map((elem, _index23) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1656
|
+
path: _path + ".sharedLibraries[" + _index23 + "]",
|
|
1424
1657
|
expected: "CreateSharedLibraryDTO",
|
|
1425
1658
|
value: elem
|
|
1426
|
-
})) && _vo2(elem, _path + ".sharedLibraries[" +
|
|
1427
|
-
path: _path + ".sharedLibraries[" +
|
|
1659
|
+
})) && _vo2(elem, _path + ".sharedLibraries[" + _index23 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1660
|
+
path: _path + ".sharedLibraries[" + _index23 + "]",
|
|
1428
1661
|
expected: "CreateSharedLibraryDTO",
|
|
1429
1662
|
value: elem
|
|
1430
1663
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1435,12 +1668,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1435
1668
|
path: _path + ".featureFlags",
|
|
1436
1669
|
expected: "(Array<BootstrapFeatureFlag> | undefined)",
|
|
1437
1670
|
value: input.featureFlags
|
|
1438
|
-
})) && input.featureFlags.map((elem,
|
|
1439
|
-
path: _path + ".featureFlags[" +
|
|
1671
|
+
})) && input.featureFlags.map((elem, _index24) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1672
|
+
path: _path + ".featureFlags[" + _index24 + "]",
|
|
1440
1673
|
expected: "BootstrapFeatureFlag",
|
|
1441
1674
|
value: elem
|
|
1442
|
-
})) && _vo3(elem, _path + ".featureFlags[" +
|
|
1443
|
-
path: _path + ".featureFlags[" +
|
|
1675
|
+
})) && _vo3(elem, _path + ".featureFlags[" + _index24 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1676
|
+
path: _path + ".featureFlags[" + _index24 + "]",
|
|
1444
1677
|
expected: "BootstrapFeatureFlag",
|
|
1445
1678
|
value: elem
|
|
1446
1679
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1451,12 +1684,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1451
1684
|
path: _path + ".catalog",
|
|
1452
1685
|
expected: "(Array<BootstrapModule> | undefined)",
|
|
1453
1686
|
value: input.catalog
|
|
1454
|
-
})) && input.catalog.map((elem,
|
|
1455
|
-
path: _path + ".catalog[" +
|
|
1687
|
+
})) && input.catalog.map((elem, _index25) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1688
|
+
path: _path + ".catalog[" + _index25 + "]",
|
|
1456
1689
|
expected: "BootstrapModule",
|
|
1457
1690
|
value: elem
|
|
1458
|
-
})) && _vo8(elem, _path + ".catalog[" +
|
|
1459
|
-
path: _path + ".catalog[" +
|
|
1691
|
+
})) && _vo8(elem, _path + ".catalog[" + _index25 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1692
|
+
path: _path + ".catalog[" + _index25 + "]",
|
|
1460
1693
|
expected: "BootstrapModule",
|
|
1461
1694
|
value: elem
|
|
1462
1695
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1467,12 +1700,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1467
1700
|
path: _path + ".applicationsAuthz",
|
|
1468
1701
|
expected: "(Array<CreateApplicationDTO> | undefined)",
|
|
1469
1702
|
value: input.applicationsAuthz
|
|
1470
|
-
})) && input.applicationsAuthz.map((elem,
|
|
1471
|
-
path: _path + ".applicationsAuthz[" +
|
|
1703
|
+
})) && input.applicationsAuthz.map((elem, _index26) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1704
|
+
path: _path + ".applicationsAuthz[" + _index26 + "]",
|
|
1472
1705
|
expected: "CreateApplicationDTO",
|
|
1473
1706
|
value: elem
|
|
1474
|
-
})) &&
|
|
1475
|
-
path: _path + ".applicationsAuthz[" +
|
|
1707
|
+
})) && _vo22(elem, _path + ".applicationsAuthz[" + _index26 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1708
|
+
path: _path + ".applicationsAuthz[" + _index26 + "]",
|
|
1476
1709
|
expected: "CreateApplicationDTO",
|
|
1477
1710
|
value: elem
|
|
1478
1711
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1483,12 +1716,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1483
1716
|
path: _path + ".rolesAuthz",
|
|
1484
1717
|
expected: "(Array<CreateRoleDTO> | undefined)",
|
|
1485
1718
|
value: input.rolesAuthz
|
|
1486
|
-
})) && input.rolesAuthz.map((elem,
|
|
1487
|
-
path: _path + ".rolesAuthz[" +
|
|
1719
|
+
})) && input.rolesAuthz.map((elem, _index27) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1720
|
+
path: _path + ".rolesAuthz[" + _index27 + "]",
|
|
1488
1721
|
expected: "CreateRoleDTO",
|
|
1489
1722
|
value: elem
|
|
1490
|
-
})) &&
|
|
1491
|
-
path: _path + ".rolesAuthz[" +
|
|
1723
|
+
})) && _vo23(elem, _path + ".rolesAuthz[" + _index27 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1724
|
+
path: _path + ".rolesAuthz[" + _index27 + "]",
|
|
1492
1725
|
expected: "CreateRoleDTO",
|
|
1493
1726
|
value: elem
|
|
1494
1727
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1499,12 +1732,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1499
1732
|
path: _path + ".operationsAuthz",
|
|
1500
1733
|
expected: "(Array<OperationAuthzBootstrap> | undefined)",
|
|
1501
1734
|
value: input.operationsAuthz
|
|
1502
|
-
})) && input.operationsAuthz.map((elem,
|
|
1503
|
-
path: _path + ".operationsAuthz[" +
|
|
1735
|
+
})) && input.operationsAuthz.map((elem, _index28) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1736
|
+
path: _path + ".operationsAuthz[" + _index28 + "]",
|
|
1504
1737
|
expected: "OperationAuthzBootstrap",
|
|
1505
1738
|
value: elem
|
|
1506
|
-
})) &&
|
|
1507
|
-
path: _path + ".operationsAuthz[" +
|
|
1739
|
+
})) && _vo24(elem, _path + ".operationsAuthz[" + _index28 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1740
|
+
path: _path + ".operationsAuthz[" + _index28 + "]",
|
|
1508
1741
|
expected: "OperationAuthzBootstrap",
|
|
1509
1742
|
value: elem
|
|
1510
1743
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1515,12 +1748,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1515
1748
|
path: _path + ".modulesConfig",
|
|
1516
1749
|
expected: "(Array<UpdateModuleUIConfigDTO> | undefined)",
|
|
1517
1750
|
value: input.modulesConfig
|
|
1518
|
-
})) && input.modulesConfig.map((elem,
|
|
1519
|
-
path: _path + ".modulesConfig[" +
|
|
1751
|
+
})) && input.modulesConfig.map((elem, _index29) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1752
|
+
path: _path + ".modulesConfig[" + _index29 + "]",
|
|
1520
1753
|
expected: "UpdateModuleUIConfigDTO",
|
|
1521
1754
|
value: elem
|
|
1522
|
-
})) &&
|
|
1523
|
-
path: _path + ".modulesConfig[" +
|
|
1755
|
+
})) && _vo25(elem, _path + ".modulesConfig[" + _index29 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1756
|
+
path: _path + ".modulesConfig[" + _index29 + "]",
|
|
1524
1757
|
expected: "UpdateModuleUIConfigDTO",
|
|
1525
1758
|
value: elem
|
|
1526
1759
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1559,12 +1792,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1559
1792
|
path: _path + ".valueRules",
|
|
1560
1793
|
expected: "(Array<BootstrapValueRule> | undefined)",
|
|
1561
1794
|
value: input.valueRules
|
|
1562
|
-
})) && input.valueRules.map((elem,
|
|
1563
|
-
path: _path + ".valueRules[" +
|
|
1795
|
+
})) && input.valueRules.map((elem, _index30) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1796
|
+
path: _path + ".valueRules[" + _index30 + "]",
|
|
1564
1797
|
expected: "BootstrapValueRule",
|
|
1565
1798
|
value: elem
|
|
1566
|
-
})) && _vo4(elem, _path + ".valueRules[" +
|
|
1567
|
-
path: _path + ".valueRules[" +
|
|
1799
|
+
})) && _vo4(elem, _path + ".valueRules[" + _index30 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1800
|
+
path: _path + ".valueRules[" + _index30 + "]",
|
|
1568
1801
|
expected: "BootstrapValueRule",
|
|
1569
1802
|
value: elem
|
|
1570
1803
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1615,8 +1848,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1615
1848
|
path: _path + ".value",
|
|
1616
1849
|
expected: "(Array<string> | boolean | number | string)",
|
|
1617
1850
|
value: input.value
|
|
1618
|
-
})) && input.value.map((elem,
|
|
1619
|
-
path: _path + ".value[" +
|
|
1851
|
+
})) && input.value.map((elem, _index31) => "string" === typeof elem || _report(_exceptionable, {
|
|
1852
|
+
path: _path + ".value[" + _index31 + "]",
|
|
1620
1853
|
expected: "string",
|
|
1621
1854
|
value: elem
|
|
1622
1855
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1631,12 +1864,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1631
1864
|
path: _path + ".rules",
|
|
1632
1865
|
expected: "Array<BootstrapCondition>",
|
|
1633
1866
|
value: input.rules
|
|
1634
|
-
})) && input.rules.map((elem,
|
|
1635
|
-
path: _path + ".rules[" +
|
|
1867
|
+
})) && input.rules.map((elem, _index32) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1868
|
+
path: _path + ".rules[" + _index32 + "]",
|
|
1636
1869
|
expected: "(BootstrapCompositeCondition | BootstrapLeafCondition)",
|
|
1637
1870
|
value: elem
|
|
1638
|
-
})) && _vu0(elem, _path + ".rules[" +
|
|
1639
|
-
path: _path + ".rules[" +
|
|
1871
|
+
})) && _vu0(elem, _path + ".rules[" + _index32 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1872
|
+
path: _path + ".rules[" + _index32 + "]",
|
|
1640
1873
|
expected: "(BootstrapCompositeCondition | BootstrapLeafCondition)",
|
|
1641
1874
|
value: elem
|
|
1642
1875
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1659,9 +1892,9 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1659
1892
|
path: _path + ".displayName",
|
|
1660
1893
|
expected: "string",
|
|
1661
1894
|
value: input.displayName
|
|
1662
|
-
}), "service" === input.type || "app" === input.type || "tool" === input.type || "utility" === input.type || "cloud-function" === input.type || "documentation" === input.type || "fragment" === input.type || _report(_exceptionable, {
|
|
1895
|
+
}), "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, {
|
|
1663
1896
|
path: _path + ".type",
|
|
1664
|
-
expected: "(\"app\" | \"cloud-function\" | \"documentation\" | \"fragment\" | \"service\" | \"tool\" | \"utility\")",
|
|
1897
|
+
expected: "(\"app\" | \"cloud-function\" | \"documentation\" | \"fragment\" | \"mcp\" | \"service\" | \"tool\" | \"utility\")",
|
|
1665
1898
|
value: input.type
|
|
1666
1899
|
}), "string" === typeof input.baseUrl || _report(_exceptionable, {
|
|
1667
1900
|
path: _path + ".baseUrl",
|
|
@@ -1679,8 +1912,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1679
1912
|
path: _path + ".dependsOn",
|
|
1680
1913
|
expected: "Array<string>",
|
|
1681
1914
|
value: input.dependsOn
|
|
1682
|
-
})) && input.dependsOn.map((elem,
|
|
1683
|
-
path: _path + ".dependsOn[" +
|
|
1915
|
+
})) && input.dependsOn.map((elem, _index33) => "string" === typeof elem || _report(_exceptionable, {
|
|
1916
|
+
path: _path + ".dependsOn[" + _index33 + "]",
|
|
1684
1917
|
expected: "string",
|
|
1685
1918
|
value: elem
|
|
1686
1919
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1719,6 +1952,14 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1719
1952
|
path: _path + ".authorization",
|
|
1720
1953
|
expected: "(AuthorizationMetadata | undefined)",
|
|
1721
1954
|
value: input.authorization
|
|
1955
|
+
}), undefined === input.mcp || ("object" === typeof input.mcp && null !== input.mcp || _report(_exceptionable, {
|
|
1956
|
+
path: _path + ".mcp",
|
|
1957
|
+
expected: "(McpResourceConfig | undefined)",
|
|
1958
|
+
value: input.mcp
|
|
1959
|
+
})) && _vo18(input.mcp, _path + ".mcp", true && _exceptionable) || _report(_exceptionable, {
|
|
1960
|
+
path: _path + ".mcp",
|
|
1961
|
+
expected: "(McpResourceConfig | undefined)",
|
|
1962
|
+
value: input.mcp
|
|
1722
1963
|
}), undefined === input.application || "string" === typeof input.application || _report(_exceptionable, {
|
|
1723
1964
|
path: _path + ".application",
|
|
1724
1965
|
expected: "(string | undefined)",
|
|
@@ -1739,7 +1980,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1739
1980
|
path: _path + ".serviceLocal",
|
|
1740
1981
|
expected: "(Partial<ServiceConfig> | undefined)",
|
|
1741
1982
|
value: input.serviceLocal
|
|
1742
|
-
})) &&
|
|
1983
|
+
})) && _vo21(input.serviceLocal, _path + ".serviceLocal", true && _exceptionable) || _report(_exceptionable, {
|
|
1743
1984
|
path: _path + ".serviceLocal",
|
|
1744
1985
|
expected: "(Partial<ServiceConfig> | undefined)",
|
|
1745
1986
|
value: input.serviceLocal
|
|
@@ -1848,8 +2089,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1848
2089
|
path: _path + ".operations",
|
|
1849
2090
|
expected: "(Array<string> | undefined)",
|
|
1850
2091
|
value: input.operations
|
|
1851
|
-
})) && input.operations.map((elem,
|
|
1852
|
-
path: _path + ".operations[" +
|
|
2092
|
+
})) && input.operations.map((elem, _index34) => "string" === typeof elem || _report(_exceptionable, {
|
|
2093
|
+
path: _path + ".operations[" + _index34 + "]",
|
|
1853
2094
|
expected: "string",
|
|
1854
2095
|
value: elem
|
|
1855
2096
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1860,12 +2101,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1860
2101
|
path: _path + ".routes",
|
|
1861
2102
|
expected: "(Array<RouteAuthorization> | undefined)",
|
|
1862
2103
|
value: input.routes
|
|
1863
|
-
})) && input.routes.map((elem,
|
|
1864
|
-
path: _path + ".routes[" +
|
|
2104
|
+
})) && input.routes.map((elem, _index35) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2105
|
+
path: _path + ".routes[" + _index35 + "]",
|
|
1865
2106
|
expected: "RouteAuthorization",
|
|
1866
2107
|
value: elem
|
|
1867
|
-
})) && _vo17(elem, _path + ".routes[" +
|
|
1868
|
-
path: _path + ".routes[" +
|
|
2108
|
+
})) && _vo17(elem, _path + ".routes[" + _index35 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
2109
|
+
path: _path + ".routes[" + _index35 + "]",
|
|
1869
2110
|
expected: "RouteAuthorization",
|
|
1870
2111
|
value: elem
|
|
1871
2112
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1876,8 +2117,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1876
2117
|
path: _path + ".methods",
|
|
1877
2118
|
expected: "(Array<HttpMethod> | undefined)",
|
|
1878
2119
|
value: input.methods
|
|
1879
|
-
})) && input.methods.map((elem,
|
|
1880
|
-
path: _path + ".methods[" +
|
|
2120
|
+
})) && input.methods.map((elem, _index36) => "POST" === elem || "DELETE" === elem || "GET" === elem || "HEAD" === elem || "OPTIONS" === elem || "PUT" === elem || "PATCH" === elem || "CONNECT" === elem || "TRACE" === elem || _report(_exceptionable, {
|
|
2121
|
+
path: _path + ".methods[" + _index36 + "]",
|
|
1881
2122
|
expected: "(\"CONNECT\" | \"DELETE\" | \"GET\" | \"HEAD\" | \"OPTIONS\" | \"PATCH\" | \"POST\" | \"PUT\" | \"TRACE\")",
|
|
1882
2123
|
value: elem
|
|
1883
2124
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1892,8 +2133,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1892
2133
|
path: _path + ".operations",
|
|
1893
2134
|
expected: "(Array<string> | undefined)",
|
|
1894
2135
|
value: input.operations
|
|
1895
|
-
})) && input.operations.map((elem,
|
|
1896
|
-
path: _path + ".operations[" +
|
|
2136
|
+
})) && input.operations.map((elem, _index37) => "string" === typeof elem || _report(_exceptionable, {
|
|
2137
|
+
path: _path + ".operations[" + _index37 + "]",
|
|
1897
2138
|
expected: "string",
|
|
1898
2139
|
value: elem
|
|
1899
2140
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1904,7 +2145,108 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1904
2145
|
path: _path + ".isPublic",
|
|
1905
2146
|
expected: "(boolean | undefined)",
|
|
1906
2147
|
value: input.isPublic
|
|
1907
|
-
})].every(flag => flag); const _vo18 = (input, _path, _exceptionable = true) => [
|
|
2148
|
+
})].every(flag => flag); const _vo18 = (input, _path, _exceptionable = true) => [(null !== input.audience || _report(_exceptionable, {
|
|
2149
|
+
path: _path + ".audience",
|
|
2150
|
+
expected: "(Array<string> | string | undefined)",
|
|
2151
|
+
value: input.audience
|
|
2152
|
+
})) && (undefined === input.audience || "string" === typeof input.audience || (Array.isArray(input.audience) || _report(_exceptionable, {
|
|
2153
|
+
path: _path + ".audience",
|
|
2154
|
+
expected: "(Array<string> | string | undefined)",
|
|
2155
|
+
value: input.audience
|
|
2156
|
+
})) && input.audience.map((elem, _index38) => "string" === typeof elem || _report(_exceptionable, {
|
|
2157
|
+
path: _path + ".audience[" + _index38 + "]",
|
|
2158
|
+
expected: "string",
|
|
2159
|
+
value: elem
|
|
2160
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
2161
|
+
path: _path + ".audience",
|
|
2162
|
+
expected: "(Array<string> | string | undefined)",
|
|
2163
|
+
value: input.audience
|
|
2164
|
+
})), undefined === input.scopesSupported || (Array.isArray(input.scopesSupported) || _report(_exceptionable, {
|
|
2165
|
+
path: _path + ".scopesSupported",
|
|
2166
|
+
expected: "(Array<string> | undefined)",
|
|
2167
|
+
value: input.scopesSupported
|
|
2168
|
+
})) && input.scopesSupported.map((elem, _index39) => "string" === typeof elem || _report(_exceptionable, {
|
|
2169
|
+
path: _path + ".scopesSupported[" + _index39 + "]",
|
|
2170
|
+
expected: "string",
|
|
2171
|
+
value: elem
|
|
2172
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
2173
|
+
path: _path + ".scopesSupported",
|
|
2174
|
+
expected: "(Array<string> | undefined)",
|
|
2175
|
+
value: input.scopesSupported
|
|
2176
|
+
}), undefined === input.resourceName || "string" === typeof input.resourceName || _report(_exceptionable, {
|
|
2177
|
+
path: _path + ".resourceName",
|
|
2178
|
+
expected: "(string | undefined)",
|
|
2179
|
+
value: input.resourceName
|
|
2180
|
+
}), undefined === input.authServerProvider || "string" === typeof input.authServerProvider || _report(_exceptionable, {
|
|
2181
|
+
path: _path + ".authServerProvider",
|
|
2182
|
+
expected: "(string | undefined)",
|
|
2183
|
+
value: input.authServerProvider
|
|
2184
|
+
}), "in-house" === input.origin || _report(_exceptionable, {
|
|
2185
|
+
path: _path + ".origin",
|
|
2186
|
+
expected: "\"in-house\"",
|
|
2187
|
+
value: input.origin
|
|
2188
|
+
}), undefined === input.scopeOperationMap || ("object" === typeof input.scopeOperationMap && null !== input.scopeOperationMap && false === Array.isArray(input.scopeOperationMap) || _report(_exceptionable, {
|
|
2189
|
+
path: _path + ".scopeOperationMap",
|
|
2190
|
+
expected: "(Record<string, Array<string>> | undefined)",
|
|
2191
|
+
value: input.scopeOperationMap
|
|
2192
|
+
})) && _vo19(input.scopeOperationMap, _path + ".scopeOperationMap", true && _exceptionable) || _report(_exceptionable, {
|
|
2193
|
+
path: _path + ".scopeOperationMap",
|
|
2194
|
+
expected: "(Record<string, Array<string>> | undefined)",
|
|
2195
|
+
value: input.scopeOperationMap
|
|
2196
|
+
}), undefined === input.tools || (Array.isArray(input.tools) || _report(_exceptionable, {
|
|
2197
|
+
path: _path + ".tools",
|
|
2198
|
+
expected: "(Array<McpToolAuthorization> | undefined)",
|
|
2199
|
+
value: input.tools
|
|
2200
|
+
})) && input.tools.map((elem, _index40) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2201
|
+
path: _path + ".tools[" + _index40 + "]",
|
|
2202
|
+
expected: "McpToolAuthorization",
|
|
2203
|
+
value: elem
|
|
2204
|
+
})) && _vo20(elem, _path + ".tools[" + _index40 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
2205
|
+
path: _path + ".tools[" + _index40 + "]",
|
|
2206
|
+
expected: "McpToolAuthorization",
|
|
2207
|
+
value: elem
|
|
2208
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
2209
|
+
path: _path + ".tools",
|
|
2210
|
+
expected: "(Array<McpToolAuthorization> | undefined)",
|
|
2211
|
+
value: input.tools
|
|
2212
|
+
})].every(flag => flag); const _vo19 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
2213
|
+
const value = input[key];
|
|
2214
|
+
if (undefined === value)
|
|
2215
|
+
return true;
|
|
2216
|
+
return (Array.isArray(value) || _report(_exceptionable, {
|
|
2217
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
2218
|
+
expected: "Array<string>",
|
|
2219
|
+
value: value
|
|
2220
|
+
})) && value.map((elem, _index41) => "string" === typeof elem || _report(_exceptionable, {
|
|
2221
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key) + "[" + _index41 + "]",
|
|
2222
|
+
expected: "string",
|
|
2223
|
+
value: elem
|
|
2224
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
2225
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
2226
|
+
expected: "Array<string>",
|
|
2227
|
+
value: value
|
|
2228
|
+
});
|
|
2229
|
+
}).every(flag => flag)].every(flag => flag); const _vo20 = (input, _path, _exceptionable = true) => ["string" === typeof input.tool || _report(_exceptionable, {
|
|
2230
|
+
path: _path + ".tool",
|
|
2231
|
+
expected: "string",
|
|
2232
|
+
value: input.tool
|
|
2233
|
+
}), (Array.isArray(input.operations) || _report(_exceptionable, {
|
|
2234
|
+
path: _path + ".operations",
|
|
2235
|
+
expected: "Array<string>",
|
|
2236
|
+
value: input.operations
|
|
2237
|
+
})) && input.operations.map((elem, _index42) => "string" === typeof elem || _report(_exceptionable, {
|
|
2238
|
+
path: _path + ".operations[" + _index42 + "]",
|
|
2239
|
+
expected: "string",
|
|
2240
|
+
value: elem
|
|
2241
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
2242
|
+
path: _path + ".operations",
|
|
2243
|
+
expected: "Array<string>",
|
|
2244
|
+
value: input.operations
|
|
2245
|
+
}), undefined === input.operator || "AND" === input.operator || "OR" === input.operator || _report(_exceptionable, {
|
|
2246
|
+
path: _path + ".operator",
|
|
2247
|
+
expected: "(\"AND\" | \"OR\" | undefined)",
|
|
2248
|
+
value: input.operator
|
|
2249
|
+
})].every(flag => flag); const _vo21 = (input, _path, _exceptionable = true) => [undefined === input.host || "string" === typeof input.host || _report(_exceptionable, {
|
|
1908
2250
|
path: _path + ".host",
|
|
1909
2251
|
expected: "(string | undefined)",
|
|
1910
2252
|
value: input.host
|
|
@@ -1920,7 +2262,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1920
2262
|
path: _path + ".includeBaseURL",
|
|
1921
2263
|
expected: "(boolean | undefined)",
|
|
1922
2264
|
value: input.includeBaseURL
|
|
1923
|
-
})].every(flag => flag); const
|
|
2265
|
+
})].every(flag => flag); const _vo22 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
1924
2266
|
path: _path + ".name",
|
|
1925
2267
|
expected: "string",
|
|
1926
2268
|
value: input.name
|
|
@@ -1940,15 +2282,15 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1940
2282
|
path: _path + ".allowedTenants",
|
|
1941
2283
|
expected: "(Array<string> | undefined)",
|
|
1942
2284
|
value: input.allowedTenants
|
|
1943
|
-
})) && input.allowedTenants.map((elem,
|
|
1944
|
-
path: _path + ".allowedTenants[" +
|
|
2285
|
+
})) && input.allowedTenants.map((elem, _index43) => "string" === typeof elem || _report(_exceptionable, {
|
|
2286
|
+
path: _path + ".allowedTenants[" + _index43 + "]",
|
|
1945
2287
|
expected: "string",
|
|
1946
2288
|
value: elem
|
|
1947
2289
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
1948
2290
|
path: _path + ".allowedTenants",
|
|
1949
2291
|
expected: "(Array<string> | undefined)",
|
|
1950
2292
|
value: input.allowedTenants
|
|
1951
|
-
})].every(flag => flag); const
|
|
2293
|
+
})].every(flag => flag); const _vo23 = (input, _path, _exceptionable = true) => [undefined === input.applicationName || "string" === typeof input.applicationName || _report(_exceptionable, {
|
|
1952
2294
|
path: _path + ".applicationName",
|
|
1953
2295
|
expected: "(string | undefined)",
|
|
1954
2296
|
value: input.applicationName
|
|
@@ -1960,12 +2302,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1960
2302
|
path: _path + ".description",
|
|
1961
2303
|
expected: "(string | undefined)",
|
|
1962
2304
|
value: input.description
|
|
1963
|
-
})].every(flag => flag); const
|
|
2305
|
+
})].every(flag => flag); const _vo24 = (input, _path, _exceptionable = true) => [undefined === input.roles || (Array.isArray(input.roles) || _report(_exceptionable, {
|
|
1964
2306
|
path: _path + ".roles",
|
|
1965
2307
|
expected: "(Array<string> | undefined)",
|
|
1966
2308
|
value: input.roles
|
|
1967
|
-
})) && input.roles.map((elem,
|
|
1968
|
-
path: _path + ".roles[" +
|
|
2309
|
+
})) && input.roles.map((elem, _index44) => "string" === typeof elem || _report(_exceptionable, {
|
|
2310
|
+
path: _path + ".roles[" + _index44 + "]",
|
|
1969
2311
|
expected: "string",
|
|
1970
2312
|
value: elem
|
|
1971
2313
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1984,7 +2326,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1984
2326
|
path: _path + ".applicationName",
|
|
1985
2327
|
expected: "(string | undefined)",
|
|
1986
2328
|
value: input.applicationName
|
|
1987
|
-
})].every(flag => flag); const
|
|
2329
|
+
})].every(flag => flag); const _vo25 = (input, _path, _exceptionable = true) => ["string" === typeof input.moduleName || _report(_exceptionable, {
|
|
1988
2330
|
path: _path + ".moduleName",
|
|
1989
2331
|
expected: "string",
|
|
1990
2332
|
value: input.moduleName
|
|
@@ -2062,7 +2404,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2062
2404
|
scopedTo: "any"
|
|
2063
2405
|
},
|
|
2064
2406
|
};
|
|
2065
|
-
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 &&
|
|
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 && _io22(elem))) && (undefined === input.rolesAuthz || Array.isArray(input.rolesAuthz) && input.rolesAuthz.every(elem => "object" === typeof elem && null !== elem && _io23(elem))) && (undefined === input.operationsAuthz || Array.isArray(input.operationsAuthz) && input.operationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io24(elem))) && (undefined === input.modulesConfig || Array.isArray(input.modulesConfig) && input.modulesConfig.every(elem => "object" === typeof elem && null !== elem && _io25(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.id || "number" === typeof input.id) && (undefined === input.serviceLocal || "object" === typeof input.serviceLocal && null !== input.serviceLocal && false === Array.isArray(input.serviceLocal) && _io21(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 => {
|
|
2066
2408
|
if (["tenantOverrides"].some(prop => key === prop))
|
|
2067
2409
|
return true;
|
|
2068
2410
|
const value = input[key];
|
|
@@ -2079,7 +2421,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2079
2421
|
if (undefined === value)
|
|
2080
2422
|
return true;
|
|
2081
2423
|
return true;
|
|
2082
|
-
}); const _io15 = input => "aws" === input.provider && "boolean" === typeof input.requiresSignature; const _io16 = 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 _io17 = input => (undefined === input.methods || Array.isArray(input.methods) && input.methods.every(elem => "POST" === elem || "DELETE" === elem || "GET" === elem || "HEAD" === elem || "OPTIONS" === elem || "PUT" === elem || "PATCH" === elem || "CONNECT" === elem || "TRACE" === elem)) && "string" === typeof input.pattern && (undefined === input.operations || Array.isArray(input.operations) && input.operations.every(elem => "string" === typeof elem)) && (undefined === input.isPublic || "boolean" === typeof input.isPublic); const _io18 = input =>
|
|
2424
|
+
}); const _io15 = input => "aws" === input.provider && "boolean" === typeof input.requiresSignature; const _io16 = 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 _io17 = input => (undefined === input.methods || Array.isArray(input.methods) && input.methods.every(elem => "POST" === elem || "DELETE" === elem || "GET" === elem || "HEAD" === elem || "OPTIONS" === elem || "PUT" === elem || "PATCH" === elem || "CONNECT" === elem || "TRACE" === elem)) && "string" === typeof input.pattern && (undefined === input.operations || Array.isArray(input.operations) && input.operations.every(elem => "string" === typeof elem)) && (undefined === input.isPublic || "boolean" === typeof input.isPublic); const _io18 = 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) && "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 _io19 = input => Object.keys(input).every(key => {
|
|
2425
|
+
const value = input[key];
|
|
2426
|
+
if (undefined === value)
|
|
2427
|
+
return true;
|
|
2428
|
+
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 => (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 _io22 = 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 _io23 = input => (undefined === input.applicationName || "string" === typeof input.applicationName) && "string" === typeof input.name && (undefined === input.description || "string" === typeof input.description); const _io24 = 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 _io25 = input => "string" === typeof input.moduleName && ("object" === typeof input.customProps && null !== input.customProps && false === Array.isArray(input.customProps) && _io14(input.customProps)); const _iu0 = input => (() => {
|
|
2083
2430
|
if ("eq" === input.operator || "neq" === input.operator || "in" === input.operator || "nin" === input.operator)
|
|
2084
2431
|
return _io5(input);
|
|
2085
2432
|
else if ("AND" === input.operator || "OR" === input.operator)
|
|
@@ -2098,12 +2445,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2098
2445
|
path: _path + ".sharedLibraries",
|
|
2099
2446
|
expected: "(Array<CreateSharedLibraryDTO> | undefined)",
|
|
2100
2447
|
value: input.sharedLibraries
|
|
2101
|
-
})) && input.sharedLibraries.map((elem,
|
|
2102
|
-
path: _path + ".sharedLibraries[" +
|
|
2448
|
+
})) && input.sharedLibraries.map((elem, _index23) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2449
|
+
path: _path + ".sharedLibraries[" + _index23 + "]",
|
|
2103
2450
|
expected: "CreateSharedLibraryDTO",
|
|
2104
2451
|
value: elem
|
|
2105
|
-
})) && _vo2(elem, _path + ".sharedLibraries[" +
|
|
2106
|
-
path: _path + ".sharedLibraries[" +
|
|
2452
|
+
})) && _vo2(elem, _path + ".sharedLibraries[" + _index23 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
2453
|
+
path: _path + ".sharedLibraries[" + _index23 + "]",
|
|
2107
2454
|
expected: "CreateSharedLibraryDTO",
|
|
2108
2455
|
value: elem
|
|
2109
2456
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2114,12 +2461,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2114
2461
|
path: _path + ".featureFlags",
|
|
2115
2462
|
expected: "(Array<BootstrapFeatureFlag> | undefined)",
|
|
2116
2463
|
value: input.featureFlags
|
|
2117
|
-
})) && input.featureFlags.map((elem,
|
|
2118
|
-
path: _path + ".featureFlags[" +
|
|
2464
|
+
})) && input.featureFlags.map((elem, _index24) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2465
|
+
path: _path + ".featureFlags[" + _index24 + "]",
|
|
2119
2466
|
expected: "BootstrapFeatureFlag",
|
|
2120
2467
|
value: elem
|
|
2121
|
-
})) && _vo3(elem, _path + ".featureFlags[" +
|
|
2122
|
-
path: _path + ".featureFlags[" +
|
|
2468
|
+
})) && _vo3(elem, _path + ".featureFlags[" + _index24 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
2469
|
+
path: _path + ".featureFlags[" + _index24 + "]",
|
|
2123
2470
|
expected: "BootstrapFeatureFlag",
|
|
2124
2471
|
value: elem
|
|
2125
2472
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2130,12 +2477,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2130
2477
|
path: _path + ".catalog",
|
|
2131
2478
|
expected: "(Array<BootstrapModule> | undefined)",
|
|
2132
2479
|
value: input.catalog
|
|
2133
|
-
})) && input.catalog.map((elem,
|
|
2134
|
-
path: _path + ".catalog[" +
|
|
2480
|
+
})) && input.catalog.map((elem, _index25) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2481
|
+
path: _path + ".catalog[" + _index25 + "]",
|
|
2135
2482
|
expected: "BootstrapModule",
|
|
2136
2483
|
value: elem
|
|
2137
|
-
})) && _vo8(elem, _path + ".catalog[" +
|
|
2138
|
-
path: _path + ".catalog[" +
|
|
2484
|
+
})) && _vo8(elem, _path + ".catalog[" + _index25 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
2485
|
+
path: _path + ".catalog[" + _index25 + "]",
|
|
2139
2486
|
expected: "BootstrapModule",
|
|
2140
2487
|
value: elem
|
|
2141
2488
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2146,12 +2493,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2146
2493
|
path: _path + ".applicationsAuthz",
|
|
2147
2494
|
expected: "(Array<CreateApplicationDTO> | undefined)",
|
|
2148
2495
|
value: input.applicationsAuthz
|
|
2149
|
-
})) && input.applicationsAuthz.map((elem,
|
|
2150
|
-
path: _path + ".applicationsAuthz[" +
|
|
2496
|
+
})) && input.applicationsAuthz.map((elem, _index26) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2497
|
+
path: _path + ".applicationsAuthz[" + _index26 + "]",
|
|
2151
2498
|
expected: "CreateApplicationDTO",
|
|
2152
2499
|
value: elem
|
|
2153
|
-
})) &&
|
|
2154
|
-
path: _path + ".applicationsAuthz[" +
|
|
2500
|
+
})) && _vo22(elem, _path + ".applicationsAuthz[" + _index26 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
2501
|
+
path: _path + ".applicationsAuthz[" + _index26 + "]",
|
|
2155
2502
|
expected: "CreateApplicationDTO",
|
|
2156
2503
|
value: elem
|
|
2157
2504
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2162,12 +2509,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2162
2509
|
path: _path + ".rolesAuthz",
|
|
2163
2510
|
expected: "(Array<CreateRoleDTO> | undefined)",
|
|
2164
2511
|
value: input.rolesAuthz
|
|
2165
|
-
})) && input.rolesAuthz.map((elem,
|
|
2166
|
-
path: _path + ".rolesAuthz[" +
|
|
2512
|
+
})) && input.rolesAuthz.map((elem, _index27) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2513
|
+
path: _path + ".rolesAuthz[" + _index27 + "]",
|
|
2167
2514
|
expected: "CreateRoleDTO",
|
|
2168
2515
|
value: elem
|
|
2169
|
-
})) &&
|
|
2170
|
-
path: _path + ".rolesAuthz[" +
|
|
2516
|
+
})) && _vo23(elem, _path + ".rolesAuthz[" + _index27 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
2517
|
+
path: _path + ".rolesAuthz[" + _index27 + "]",
|
|
2171
2518
|
expected: "CreateRoleDTO",
|
|
2172
2519
|
value: elem
|
|
2173
2520
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2178,12 +2525,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2178
2525
|
path: _path + ".operationsAuthz",
|
|
2179
2526
|
expected: "(Array<OperationAuthzBootstrap> | undefined)",
|
|
2180
2527
|
value: input.operationsAuthz
|
|
2181
|
-
})) && input.operationsAuthz.map((elem,
|
|
2182
|
-
path: _path + ".operationsAuthz[" +
|
|
2528
|
+
})) && input.operationsAuthz.map((elem, _index28) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2529
|
+
path: _path + ".operationsAuthz[" + _index28 + "]",
|
|
2183
2530
|
expected: "OperationAuthzBootstrap",
|
|
2184
2531
|
value: elem
|
|
2185
|
-
})) &&
|
|
2186
|
-
path: _path + ".operationsAuthz[" +
|
|
2532
|
+
})) && _vo24(elem, _path + ".operationsAuthz[" + _index28 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
2533
|
+
path: _path + ".operationsAuthz[" + _index28 + "]",
|
|
2187
2534
|
expected: "OperationAuthzBootstrap",
|
|
2188
2535
|
value: elem
|
|
2189
2536
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2194,12 +2541,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2194
2541
|
path: _path + ".modulesConfig",
|
|
2195
2542
|
expected: "(Array<UpdateModuleUIConfigDTO> | undefined)",
|
|
2196
2543
|
value: input.modulesConfig
|
|
2197
|
-
})) && input.modulesConfig.map((elem,
|
|
2198
|
-
path: _path + ".modulesConfig[" +
|
|
2544
|
+
})) && input.modulesConfig.map((elem, _index29) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2545
|
+
path: _path + ".modulesConfig[" + _index29 + "]",
|
|
2199
2546
|
expected: "UpdateModuleUIConfigDTO",
|
|
2200
2547
|
value: elem
|
|
2201
|
-
})) &&
|
|
2202
|
-
path: _path + ".modulesConfig[" +
|
|
2548
|
+
})) && _vo25(elem, _path + ".modulesConfig[" + _index29 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
2549
|
+
path: _path + ".modulesConfig[" + _index29 + "]",
|
|
2203
2550
|
expected: "UpdateModuleUIConfigDTO",
|
|
2204
2551
|
value: elem
|
|
2205
2552
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2238,12 +2585,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2238
2585
|
path: _path + ".valueRules",
|
|
2239
2586
|
expected: "(Array<BootstrapValueRule> | undefined)",
|
|
2240
2587
|
value: input.valueRules
|
|
2241
|
-
})) && input.valueRules.map((elem,
|
|
2242
|
-
path: _path + ".valueRules[" +
|
|
2588
|
+
})) && input.valueRules.map((elem, _index30) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2589
|
+
path: _path + ".valueRules[" + _index30 + "]",
|
|
2243
2590
|
expected: "BootstrapValueRule",
|
|
2244
2591
|
value: elem
|
|
2245
|
-
})) && _vo4(elem, _path + ".valueRules[" +
|
|
2246
|
-
path: _path + ".valueRules[" +
|
|
2592
|
+
})) && _vo4(elem, _path + ".valueRules[" + _index30 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
2593
|
+
path: _path + ".valueRules[" + _index30 + "]",
|
|
2247
2594
|
expected: "BootstrapValueRule",
|
|
2248
2595
|
value: elem
|
|
2249
2596
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2294,8 +2641,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2294
2641
|
path: _path + ".value",
|
|
2295
2642
|
expected: "(Array<string> | boolean | number | string)",
|
|
2296
2643
|
value: input.value
|
|
2297
|
-
})) && input.value.map((elem,
|
|
2298
|
-
path: _path + ".value[" +
|
|
2644
|
+
})) && input.value.map((elem, _index31) => "string" === typeof elem || _report(_exceptionable, {
|
|
2645
|
+
path: _path + ".value[" + _index31 + "]",
|
|
2299
2646
|
expected: "string",
|
|
2300
2647
|
value: elem
|
|
2301
2648
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2310,12 +2657,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2310
2657
|
path: _path + ".rules",
|
|
2311
2658
|
expected: "Array<BootstrapCondition>",
|
|
2312
2659
|
value: input.rules
|
|
2313
|
-
})) && input.rules.map((elem,
|
|
2314
|
-
path: _path + ".rules[" +
|
|
2660
|
+
})) && input.rules.map((elem, _index32) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2661
|
+
path: _path + ".rules[" + _index32 + "]",
|
|
2315
2662
|
expected: "(BootstrapCompositeCondition | BootstrapLeafCondition)",
|
|
2316
2663
|
value: elem
|
|
2317
|
-
})) && _vu0(elem, _path + ".rules[" +
|
|
2318
|
-
path: _path + ".rules[" +
|
|
2664
|
+
})) && _vu0(elem, _path + ".rules[" + _index32 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
2665
|
+
path: _path + ".rules[" + _index32 + "]",
|
|
2319
2666
|
expected: "(BootstrapCompositeCondition | BootstrapLeafCondition)",
|
|
2320
2667
|
value: elem
|
|
2321
2668
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2338,9 +2685,9 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2338
2685
|
path: _path + ".displayName",
|
|
2339
2686
|
expected: "string",
|
|
2340
2687
|
value: input.displayName
|
|
2341
|
-
}), "service" === input.type || "app" === input.type || "tool" === input.type || "utility" === input.type || "cloud-function" === input.type || "documentation" === input.type || "fragment" === input.type || _report(_exceptionable, {
|
|
2688
|
+
}), "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, {
|
|
2342
2689
|
path: _path + ".type",
|
|
2343
|
-
expected: "(\"app\" | \"cloud-function\" | \"documentation\" | \"fragment\" | \"service\" | \"tool\" | \"utility\")",
|
|
2690
|
+
expected: "(\"app\" | \"cloud-function\" | \"documentation\" | \"fragment\" | \"mcp\" | \"service\" | \"tool\" | \"utility\")",
|
|
2344
2691
|
value: input.type
|
|
2345
2692
|
}), "string" === typeof input.baseUrl || _report(_exceptionable, {
|
|
2346
2693
|
path: _path + ".baseUrl",
|
|
@@ -2358,8 +2705,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2358
2705
|
path: _path + ".dependsOn",
|
|
2359
2706
|
expected: "Array<string>",
|
|
2360
2707
|
value: input.dependsOn
|
|
2361
|
-
})) && input.dependsOn.map((elem,
|
|
2362
|
-
path: _path + ".dependsOn[" +
|
|
2708
|
+
})) && input.dependsOn.map((elem, _index33) => "string" === typeof elem || _report(_exceptionable, {
|
|
2709
|
+
path: _path + ".dependsOn[" + _index33 + "]",
|
|
2363
2710
|
expected: "string",
|
|
2364
2711
|
value: elem
|
|
2365
2712
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2398,6 +2745,14 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2398
2745
|
path: _path + ".authorization",
|
|
2399
2746
|
expected: "(AuthorizationMetadata | undefined)",
|
|
2400
2747
|
value: input.authorization
|
|
2748
|
+
}), undefined === input.mcp || ("object" === typeof input.mcp && null !== input.mcp || _report(_exceptionable, {
|
|
2749
|
+
path: _path + ".mcp",
|
|
2750
|
+
expected: "(McpResourceConfig | undefined)",
|
|
2751
|
+
value: input.mcp
|
|
2752
|
+
})) && _vo18(input.mcp, _path + ".mcp", true && _exceptionable) || _report(_exceptionable, {
|
|
2753
|
+
path: _path + ".mcp",
|
|
2754
|
+
expected: "(McpResourceConfig | undefined)",
|
|
2755
|
+
value: input.mcp
|
|
2401
2756
|
}), undefined === input.application || "string" === typeof input.application || _report(_exceptionable, {
|
|
2402
2757
|
path: _path + ".application",
|
|
2403
2758
|
expected: "(string | undefined)",
|
|
@@ -2418,7 +2773,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2418
2773
|
path: _path + ".serviceLocal",
|
|
2419
2774
|
expected: "(Partial<ServiceConfig> | undefined)",
|
|
2420
2775
|
value: input.serviceLocal
|
|
2421
|
-
})) &&
|
|
2776
|
+
})) && _vo21(input.serviceLocal, _path + ".serviceLocal", true && _exceptionable) || _report(_exceptionable, {
|
|
2422
2777
|
path: _path + ".serviceLocal",
|
|
2423
2778
|
expected: "(Partial<ServiceConfig> | undefined)",
|
|
2424
2779
|
value: input.serviceLocal
|
|
@@ -2527,8 +2882,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2527
2882
|
path: _path + ".operations",
|
|
2528
2883
|
expected: "(Array<string> | undefined)",
|
|
2529
2884
|
value: input.operations
|
|
2530
|
-
})) && input.operations.map((elem,
|
|
2531
|
-
path: _path + ".operations[" +
|
|
2885
|
+
})) && input.operations.map((elem, _index34) => "string" === typeof elem || _report(_exceptionable, {
|
|
2886
|
+
path: _path + ".operations[" + _index34 + "]",
|
|
2532
2887
|
expected: "string",
|
|
2533
2888
|
value: elem
|
|
2534
2889
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2539,12 +2894,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2539
2894
|
path: _path + ".routes",
|
|
2540
2895
|
expected: "(Array<RouteAuthorization> | undefined)",
|
|
2541
2896
|
value: input.routes
|
|
2542
|
-
})) && input.routes.map((elem,
|
|
2543
|
-
path: _path + ".routes[" +
|
|
2897
|
+
})) && input.routes.map((elem, _index35) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2898
|
+
path: _path + ".routes[" + _index35 + "]",
|
|
2544
2899
|
expected: "RouteAuthorization",
|
|
2545
2900
|
value: elem
|
|
2546
|
-
})) && _vo17(elem, _path + ".routes[" +
|
|
2547
|
-
path: _path + ".routes[" +
|
|
2901
|
+
})) && _vo17(elem, _path + ".routes[" + _index35 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
2902
|
+
path: _path + ".routes[" + _index35 + "]",
|
|
2548
2903
|
expected: "RouteAuthorization",
|
|
2549
2904
|
value: elem
|
|
2550
2905
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2555,8 +2910,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2555
2910
|
path: _path + ".methods",
|
|
2556
2911
|
expected: "(Array<HttpMethod> | undefined)",
|
|
2557
2912
|
value: input.methods
|
|
2558
|
-
})) && input.methods.map((elem,
|
|
2559
|
-
path: _path + ".methods[" +
|
|
2913
|
+
})) && input.methods.map((elem, _index36) => "POST" === elem || "DELETE" === elem || "GET" === elem || "HEAD" === elem || "OPTIONS" === elem || "PUT" === elem || "PATCH" === elem || "CONNECT" === elem || "TRACE" === elem || _report(_exceptionable, {
|
|
2914
|
+
path: _path + ".methods[" + _index36 + "]",
|
|
2560
2915
|
expected: "(\"CONNECT\" | \"DELETE\" | \"GET\" | \"HEAD\" | \"OPTIONS\" | \"PATCH\" | \"POST\" | \"PUT\" | \"TRACE\")",
|
|
2561
2916
|
value: elem
|
|
2562
2917
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2571,8 +2926,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2571
2926
|
path: _path + ".operations",
|
|
2572
2927
|
expected: "(Array<string> | undefined)",
|
|
2573
2928
|
value: input.operations
|
|
2574
|
-
})) && input.operations.map((elem,
|
|
2575
|
-
path: _path + ".operations[" +
|
|
2929
|
+
})) && input.operations.map((elem, _index37) => "string" === typeof elem || _report(_exceptionable, {
|
|
2930
|
+
path: _path + ".operations[" + _index37 + "]",
|
|
2576
2931
|
expected: "string",
|
|
2577
2932
|
value: elem
|
|
2578
2933
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2583,7 +2938,108 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2583
2938
|
path: _path + ".isPublic",
|
|
2584
2939
|
expected: "(boolean | undefined)",
|
|
2585
2940
|
value: input.isPublic
|
|
2586
|
-
})].every(flag => flag); const _vo18 = (input, _path, _exceptionable = true) => [
|
|
2941
|
+
})].every(flag => flag); const _vo18 = (input, _path, _exceptionable = true) => [(null !== input.audience || _report(_exceptionable, {
|
|
2942
|
+
path: _path + ".audience",
|
|
2943
|
+
expected: "(Array<string> | string | undefined)",
|
|
2944
|
+
value: input.audience
|
|
2945
|
+
})) && (undefined === input.audience || "string" === typeof input.audience || (Array.isArray(input.audience) || _report(_exceptionable, {
|
|
2946
|
+
path: _path + ".audience",
|
|
2947
|
+
expected: "(Array<string> | string | undefined)",
|
|
2948
|
+
value: input.audience
|
|
2949
|
+
})) && input.audience.map((elem, _index38) => "string" === typeof elem || _report(_exceptionable, {
|
|
2950
|
+
path: _path + ".audience[" + _index38 + "]",
|
|
2951
|
+
expected: "string",
|
|
2952
|
+
value: elem
|
|
2953
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
2954
|
+
path: _path + ".audience",
|
|
2955
|
+
expected: "(Array<string> | string | undefined)",
|
|
2956
|
+
value: input.audience
|
|
2957
|
+
})), undefined === input.scopesSupported || (Array.isArray(input.scopesSupported) || _report(_exceptionable, {
|
|
2958
|
+
path: _path + ".scopesSupported",
|
|
2959
|
+
expected: "(Array<string> | undefined)",
|
|
2960
|
+
value: input.scopesSupported
|
|
2961
|
+
})) && input.scopesSupported.map((elem, _index39) => "string" === typeof elem || _report(_exceptionable, {
|
|
2962
|
+
path: _path + ".scopesSupported[" + _index39 + "]",
|
|
2963
|
+
expected: "string",
|
|
2964
|
+
value: elem
|
|
2965
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
2966
|
+
path: _path + ".scopesSupported",
|
|
2967
|
+
expected: "(Array<string> | undefined)",
|
|
2968
|
+
value: input.scopesSupported
|
|
2969
|
+
}), undefined === input.resourceName || "string" === typeof input.resourceName || _report(_exceptionable, {
|
|
2970
|
+
path: _path + ".resourceName",
|
|
2971
|
+
expected: "(string | undefined)",
|
|
2972
|
+
value: input.resourceName
|
|
2973
|
+
}), undefined === input.authServerProvider || "string" === typeof input.authServerProvider || _report(_exceptionable, {
|
|
2974
|
+
path: _path + ".authServerProvider",
|
|
2975
|
+
expected: "(string | undefined)",
|
|
2976
|
+
value: input.authServerProvider
|
|
2977
|
+
}), "in-house" === input.origin || _report(_exceptionable, {
|
|
2978
|
+
path: _path + ".origin",
|
|
2979
|
+
expected: "\"in-house\"",
|
|
2980
|
+
value: input.origin
|
|
2981
|
+
}), undefined === input.scopeOperationMap || ("object" === typeof input.scopeOperationMap && null !== input.scopeOperationMap && false === Array.isArray(input.scopeOperationMap) || _report(_exceptionable, {
|
|
2982
|
+
path: _path + ".scopeOperationMap",
|
|
2983
|
+
expected: "(Record<string, Array<string>> | undefined)",
|
|
2984
|
+
value: input.scopeOperationMap
|
|
2985
|
+
})) && _vo19(input.scopeOperationMap, _path + ".scopeOperationMap", true && _exceptionable) || _report(_exceptionable, {
|
|
2986
|
+
path: _path + ".scopeOperationMap",
|
|
2987
|
+
expected: "(Record<string, Array<string>> | undefined)",
|
|
2988
|
+
value: input.scopeOperationMap
|
|
2989
|
+
}), undefined === input.tools || (Array.isArray(input.tools) || _report(_exceptionable, {
|
|
2990
|
+
path: _path + ".tools",
|
|
2991
|
+
expected: "(Array<McpToolAuthorization> | undefined)",
|
|
2992
|
+
value: input.tools
|
|
2993
|
+
})) && input.tools.map((elem, _index40) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2994
|
+
path: _path + ".tools[" + _index40 + "]",
|
|
2995
|
+
expected: "McpToolAuthorization",
|
|
2996
|
+
value: elem
|
|
2997
|
+
})) && _vo20(elem, _path + ".tools[" + _index40 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
2998
|
+
path: _path + ".tools[" + _index40 + "]",
|
|
2999
|
+
expected: "McpToolAuthorization",
|
|
3000
|
+
value: elem
|
|
3001
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
3002
|
+
path: _path + ".tools",
|
|
3003
|
+
expected: "(Array<McpToolAuthorization> | undefined)",
|
|
3004
|
+
value: input.tools
|
|
3005
|
+
})].every(flag => flag); const _vo19 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
3006
|
+
const value = input[key];
|
|
3007
|
+
if (undefined === value)
|
|
3008
|
+
return true;
|
|
3009
|
+
return (Array.isArray(value) || _report(_exceptionable, {
|
|
3010
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
3011
|
+
expected: "Array<string>",
|
|
3012
|
+
value: value
|
|
3013
|
+
})) && value.map((elem, _index41) => "string" === typeof elem || _report(_exceptionable, {
|
|
3014
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key) + "[" + _index41 + "]",
|
|
3015
|
+
expected: "string",
|
|
3016
|
+
value: elem
|
|
3017
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
3018
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
3019
|
+
expected: "Array<string>",
|
|
3020
|
+
value: value
|
|
3021
|
+
});
|
|
3022
|
+
}).every(flag => flag)].every(flag => flag); const _vo20 = (input, _path, _exceptionable = true) => ["string" === typeof input.tool || _report(_exceptionable, {
|
|
3023
|
+
path: _path + ".tool",
|
|
3024
|
+
expected: "string",
|
|
3025
|
+
value: input.tool
|
|
3026
|
+
}), (Array.isArray(input.operations) || _report(_exceptionable, {
|
|
3027
|
+
path: _path + ".operations",
|
|
3028
|
+
expected: "Array<string>",
|
|
3029
|
+
value: input.operations
|
|
3030
|
+
})) && input.operations.map((elem, _index42) => "string" === typeof elem || _report(_exceptionable, {
|
|
3031
|
+
path: _path + ".operations[" + _index42 + "]",
|
|
3032
|
+
expected: "string",
|
|
3033
|
+
value: elem
|
|
3034
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
3035
|
+
path: _path + ".operations",
|
|
3036
|
+
expected: "Array<string>",
|
|
3037
|
+
value: input.operations
|
|
3038
|
+
}), undefined === input.operator || "AND" === input.operator || "OR" === input.operator || _report(_exceptionable, {
|
|
3039
|
+
path: _path + ".operator",
|
|
3040
|
+
expected: "(\"AND\" | \"OR\" | undefined)",
|
|
3041
|
+
value: input.operator
|
|
3042
|
+
})].every(flag => flag); const _vo21 = (input, _path, _exceptionable = true) => [undefined === input.host || "string" === typeof input.host || _report(_exceptionable, {
|
|
2587
3043
|
path: _path + ".host",
|
|
2588
3044
|
expected: "(string | undefined)",
|
|
2589
3045
|
value: input.host
|
|
@@ -2599,7 +3055,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2599
3055
|
path: _path + ".includeBaseURL",
|
|
2600
3056
|
expected: "(boolean | undefined)",
|
|
2601
3057
|
value: input.includeBaseURL
|
|
2602
|
-
})].every(flag => flag); const
|
|
3058
|
+
})].every(flag => flag); const _vo22 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
2603
3059
|
path: _path + ".name",
|
|
2604
3060
|
expected: "string",
|
|
2605
3061
|
value: input.name
|
|
@@ -2619,15 +3075,15 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2619
3075
|
path: _path + ".allowedTenants",
|
|
2620
3076
|
expected: "(Array<string> | undefined)",
|
|
2621
3077
|
value: input.allowedTenants
|
|
2622
|
-
})) && input.allowedTenants.map((elem,
|
|
2623
|
-
path: _path + ".allowedTenants[" +
|
|
3078
|
+
})) && input.allowedTenants.map((elem, _index43) => "string" === typeof elem || _report(_exceptionable, {
|
|
3079
|
+
path: _path + ".allowedTenants[" + _index43 + "]",
|
|
2624
3080
|
expected: "string",
|
|
2625
3081
|
value: elem
|
|
2626
3082
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
2627
3083
|
path: _path + ".allowedTenants",
|
|
2628
3084
|
expected: "(Array<string> | undefined)",
|
|
2629
3085
|
value: input.allowedTenants
|
|
2630
|
-
})].every(flag => flag); const
|
|
3086
|
+
})].every(flag => flag); const _vo23 = (input, _path, _exceptionable = true) => [undefined === input.applicationName || "string" === typeof input.applicationName || _report(_exceptionable, {
|
|
2631
3087
|
path: _path + ".applicationName",
|
|
2632
3088
|
expected: "(string | undefined)",
|
|
2633
3089
|
value: input.applicationName
|
|
@@ -2639,12 +3095,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2639
3095
|
path: _path + ".description",
|
|
2640
3096
|
expected: "(string | undefined)",
|
|
2641
3097
|
value: input.description
|
|
2642
|
-
})].every(flag => flag); const
|
|
3098
|
+
})].every(flag => flag); const _vo24 = (input, _path, _exceptionable = true) => [undefined === input.roles || (Array.isArray(input.roles) || _report(_exceptionable, {
|
|
2643
3099
|
path: _path + ".roles",
|
|
2644
3100
|
expected: "(Array<string> | undefined)",
|
|
2645
3101
|
value: input.roles
|
|
2646
|
-
})) && input.roles.map((elem,
|
|
2647
|
-
path: _path + ".roles[" +
|
|
3102
|
+
})) && input.roles.map((elem, _index44) => "string" === typeof elem || _report(_exceptionable, {
|
|
3103
|
+
path: _path + ".roles[" + _index44 + "]",
|
|
2648
3104
|
expected: "string",
|
|
2649
3105
|
value: elem
|
|
2650
3106
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2663,7 +3119,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2663
3119
|
path: _path + ".applicationName",
|
|
2664
3120
|
expected: "(string | undefined)",
|
|
2665
3121
|
value: input.applicationName
|
|
2666
|
-
})].every(flag => flag); const
|
|
3122
|
+
})].every(flag => flag); const _vo25 = (input, _path, _exceptionable = true) => ["string" === typeof input.moduleName || _report(_exceptionable, {
|
|
2667
3123
|
path: _path + ".moduleName",
|
|
2668
3124
|
expected: "string",
|
|
2669
3125
|
value: input.moduleName
|