@bluealba/pae-bootstrap-lib 2.0.0-feature-feature-flags-bootstrappi-1296 → 2.0.1-develop-1295
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/bootstrap-sync-metadata.interface.d.ts +0 -12
- package/dist/src/bootstrap/domain/bootstrap-sync-metadata.interface.d.ts.map +1 -1
- package/dist/src/bootstrap/domain/domain-validation.test.js +236 -492
- package/dist/src/bootstrap/domain/domain-validation.test.js.map +1 -1
- package/dist/src/bootstrap/read-bootstrap-applications.d.ts.map +1 -1
- package/dist/src/bootstrap/read-bootstrap-applications.js +0 -95
- package/dist/src/bootstrap/read-bootstrap-applications.js.map +1 -1
- package/dist/src/bootstrap/run-bootstrap-sync.service.d.ts.map +1 -1
- package/dist/src/bootstrap/run-bootstrap-sync.service.js +1 -3
- package/dist/src/bootstrap/run-bootstrap-sync.service.js.map +1 -1
- package/package.json +1 -1
- package/dist/src/bootstrap/synchronizers/sync-feature-flags.d.ts +0 -8
- package/dist/src/bootstrap/synchronizers/sync-feature-flags.d.ts.map +0 -1
- package/dist/src/bootstrap/synchronizers/sync-feature-flags.js +0 -67
- package/dist/src/bootstrap/synchronizers/sync-feature-flags.js.map +0 -1
|
@@ -46,12 +46,12 @@ 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.
|
|
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.catalog || Array.isArray(input.catalog) && input.catalog.every(elem => "object" === typeof elem && null !== elem && _io3(elem))) && (undefined === input.applicationsAuthz || Array.isArray(input.applicationsAuthz) && input.applicationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io11(elem))) && (undefined === input.rolesAuthz || Array.isArray(input.rolesAuthz) && input.rolesAuthz.every(elem => "object" === typeof elem && null !== elem && _io12(elem))) && (undefined === input.operationsAuthz || Array.isArray(input.operationsAuthz) && input.operationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io13(elem))) && (undefined === input.modulesConfig || Array.isArray(input.modulesConfig) && input.modulesConfig.every(elem => "object" === typeof elem && null !== elem && _io14(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 && "string" === typeof input.displayName && ("service" === input.type || "app" === input.type || "utility" === input.type || "cloud-function" === input.type || "documentation" === input.type) && "string" === typeof input.baseUrl && ("object" === typeof input.service && null !== input.service && _io4(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) && _io5(input.commonPaths)) && (undefined === input.ui || "object" === typeof input.ui && null !== input.ui && _io6(input.ui)) && (undefined === input.cloudFunction || "object" === typeof input.cloudFunction && null !== input.cloudFunction && _io8(input.cloudFunction)) && (undefined === input.authorization || "object" === typeof input.authorization && null !== input.authorization && false === Array.isArray(input.authorization) && _io9(input.authorization)) && (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); const _io4 = input => "string" === typeof input.host && "number" === typeof input.port && (undefined === input.protocol || "string" === typeof input.protocol) && (undefined === input.includeBaseURL || "boolean" === typeof input.includeBaseURL); const _io5 = 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 _io6 = 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) && _io7(input.customProps)) && (undefined === input.shell || "boolean" === typeof input.shell) && (undefined === input.isPlatformCustomization || "boolean" === typeof input.isPlatformCustomization); const _io7 = input => Object.keys(input).every(key => {
|
|
50
50
|
const value = input[key];
|
|
51
51
|
if (undefined === value)
|
|
52
52
|
return true;
|
|
53
53
|
return true;
|
|
54
|
-
}); const
|
|
54
|
+
}); const _io8 = input => "aws" === input.provider && "boolean" === typeof input.requiresSignature; const _io9 = 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 && _io10(elem))); const _io10 = input => (undefined === input.methods || Array.isArray(input.methods) && input.methods.every(elem => "GET" === elem || "POST" === elem || "PUT" === elem || "DELETE" === elem || "PATCH" === elem || "OPTIONS" === elem || "HEAD" === elem || "CONNECT" === elem || "TRACE" === elem)) && "string" === typeof input.pattern && (Array.isArray(input.operations) && input.operations.every(elem => "string" === typeof elem)); const _io11 = 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); const _io12 = input => (undefined === input.applicationName || "string" === typeof input.applicationName) && "string" === typeof input.name && (undefined === input.description || "string" === typeof input.description); const _io13 = 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 _io14 = input => "string" === typeof input.moduleName && ("object" === typeof input.customProps && null !== input.customProps && false === Array.isArray(input.customProps) && _io15(input.customProps)); const _io15 = input => Object.keys(input).every(key => {
|
|
55
55
|
const value = input[key];
|
|
56
56
|
if (undefined === value)
|
|
57
57
|
return true;
|
|
@@ -68,44 +68,28 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
68
68
|
path: _path + ".sharedLibraries",
|
|
69
69
|
expected: "(Array<CreateSharedLibraryDTO> | undefined)",
|
|
70
70
|
value: input.sharedLibraries
|
|
71
|
-
})) && input.sharedLibraries.map((elem,
|
|
72
|
-
path: _path + ".sharedLibraries[" +
|
|
71
|
+
})) && input.sharedLibraries.map((elem, _index13) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
72
|
+
path: _path + ".sharedLibraries[" + _index13 + "]",
|
|
73
73
|
expected: "CreateSharedLibraryDTO",
|
|
74
74
|
value: elem
|
|
75
|
-
})) && _vo2(elem, _path + ".sharedLibraries[" +
|
|
76
|
-
path: _path + ".sharedLibraries[" +
|
|
75
|
+
})) && _vo2(elem, _path + ".sharedLibraries[" + _index13 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
76
|
+
path: _path + ".sharedLibraries[" + _index13 + "]",
|
|
77
77
|
expected: "CreateSharedLibraryDTO",
|
|
78
78
|
value: elem
|
|
79
79
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
80
80
|
path: _path + ".sharedLibraries",
|
|
81
81
|
expected: "(Array<CreateSharedLibraryDTO> | undefined)",
|
|
82
82
|
value: input.sharedLibraries
|
|
83
|
-
}), undefined === input.featureFlags || (Array.isArray(input.featureFlags) || _report(_exceptionable, {
|
|
84
|
-
path: _path + ".featureFlags",
|
|
85
|
-
expected: "(Array<BootstrapFeatureFlag> | undefined)",
|
|
86
|
-
value: input.featureFlags
|
|
87
|
-
})) && input.featureFlags.map((elem, _index17) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
88
|
-
path: _path + ".featureFlags[" + _index17 + "]",
|
|
89
|
-
expected: "BootstrapFeatureFlag",
|
|
90
|
-
value: elem
|
|
91
|
-
})) && _vo3(elem, _path + ".featureFlags[" + _index17 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
92
|
-
path: _path + ".featureFlags[" + _index17 + "]",
|
|
93
|
-
expected: "BootstrapFeatureFlag",
|
|
94
|
-
value: elem
|
|
95
|
-
})).every(flag => flag) || _report(_exceptionable, {
|
|
96
|
-
path: _path + ".featureFlags",
|
|
97
|
-
expected: "(Array<BootstrapFeatureFlag> | undefined)",
|
|
98
|
-
value: input.featureFlags
|
|
99
83
|
}), undefined === input.catalog || (Array.isArray(input.catalog) || _report(_exceptionable, {
|
|
100
84
|
path: _path + ".catalog",
|
|
101
85
|
expected: "(Array<CreateOrUpdateModule> | undefined)",
|
|
102
86
|
value: input.catalog
|
|
103
|
-
})) && input.catalog.map((elem,
|
|
104
|
-
path: _path + ".catalog[" +
|
|
87
|
+
})) && input.catalog.map((elem, _index14) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
88
|
+
path: _path + ".catalog[" + _index14 + "]",
|
|
105
89
|
expected: "CreateOrUpdateModule",
|
|
106
90
|
value: elem
|
|
107
|
-
})) &&
|
|
108
|
-
path: _path + ".catalog[" +
|
|
91
|
+
})) && _vo3(elem, _path + ".catalog[" + _index14 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
92
|
+
path: _path + ".catalog[" + _index14 + "]",
|
|
109
93
|
expected: "CreateOrUpdateModule",
|
|
110
94
|
value: elem
|
|
111
95
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -116,12 +100,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
116
100
|
path: _path + ".applicationsAuthz",
|
|
117
101
|
expected: "(Array<CreateApplicationDTO> | undefined)",
|
|
118
102
|
value: input.applicationsAuthz
|
|
119
|
-
})) && input.applicationsAuthz.map((elem,
|
|
120
|
-
path: _path + ".applicationsAuthz[" +
|
|
103
|
+
})) && input.applicationsAuthz.map((elem, _index15) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
104
|
+
path: _path + ".applicationsAuthz[" + _index15 + "]",
|
|
121
105
|
expected: "CreateApplicationDTO",
|
|
122
106
|
value: elem
|
|
123
|
-
})) &&
|
|
124
|
-
path: _path + ".applicationsAuthz[" +
|
|
107
|
+
})) && _vo11(elem, _path + ".applicationsAuthz[" + _index15 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
108
|
+
path: _path + ".applicationsAuthz[" + _index15 + "]",
|
|
125
109
|
expected: "CreateApplicationDTO",
|
|
126
110
|
value: elem
|
|
127
111
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -132,12 +116,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
132
116
|
path: _path + ".rolesAuthz",
|
|
133
117
|
expected: "(Array<CreateRoleDTO> | undefined)",
|
|
134
118
|
value: input.rolesAuthz
|
|
135
|
-
})) && input.rolesAuthz.map((elem,
|
|
136
|
-
path: _path + ".rolesAuthz[" +
|
|
119
|
+
})) && input.rolesAuthz.map((elem, _index16) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
120
|
+
path: _path + ".rolesAuthz[" + _index16 + "]",
|
|
137
121
|
expected: "CreateRoleDTO",
|
|
138
122
|
value: elem
|
|
139
|
-
})) &&
|
|
140
|
-
path: _path + ".rolesAuthz[" +
|
|
123
|
+
})) && _vo12(elem, _path + ".rolesAuthz[" + _index16 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
124
|
+
path: _path + ".rolesAuthz[" + _index16 + "]",
|
|
141
125
|
expected: "CreateRoleDTO",
|
|
142
126
|
value: elem
|
|
143
127
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -148,12 +132,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
148
132
|
path: _path + ".operationsAuthz",
|
|
149
133
|
expected: "(Array<OperationAuthzBootstrap> | undefined)",
|
|
150
134
|
value: input.operationsAuthz
|
|
151
|
-
})) && input.operationsAuthz.map((elem,
|
|
152
|
-
path: _path + ".operationsAuthz[" +
|
|
135
|
+
})) && input.operationsAuthz.map((elem, _index17) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
136
|
+
path: _path + ".operationsAuthz[" + _index17 + "]",
|
|
153
137
|
expected: "OperationAuthzBootstrap",
|
|
154
138
|
value: elem
|
|
155
|
-
})) &&
|
|
156
|
-
path: _path + ".operationsAuthz[" +
|
|
139
|
+
})) && _vo13(elem, _path + ".operationsAuthz[" + _index17 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
140
|
+
path: _path + ".operationsAuthz[" + _index17 + "]",
|
|
157
141
|
expected: "OperationAuthzBootstrap",
|
|
158
142
|
value: elem
|
|
159
143
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -164,12 +148,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
164
148
|
path: _path + ".modulesConfig",
|
|
165
149
|
expected: "(Array<UpdateModuleUIConfigDTO> | undefined)",
|
|
166
150
|
value: input.modulesConfig
|
|
167
|
-
})) && input.modulesConfig.map((elem,
|
|
168
|
-
path: _path + ".modulesConfig[" +
|
|
151
|
+
})) && input.modulesConfig.map((elem, _index18) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
152
|
+
path: _path + ".modulesConfig[" + _index18 + "]",
|
|
169
153
|
expected: "UpdateModuleUIConfigDTO",
|
|
170
154
|
value: elem
|
|
171
|
-
})) &&
|
|
172
|
-
path: _path + ".modulesConfig[" +
|
|
155
|
+
})) && _vo14(elem, _path + ".modulesConfig[" + _index18 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
156
|
+
path: _path + ".modulesConfig[" + _index18 + "]",
|
|
173
157
|
expected: "UpdateModuleUIConfigDTO",
|
|
174
158
|
value: elem
|
|
175
159
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -196,54 +180,6 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
196
180
|
path: _path + ".name",
|
|
197
181
|
expected: "string",
|
|
198
182
|
value: input.name
|
|
199
|
-
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
|
200
|
-
path: _path + ".description",
|
|
201
|
-
expected: "(string | undefined)",
|
|
202
|
-
value: input.description
|
|
203
|
-
}), undefined === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
204
|
-
path: _path + ".enabled",
|
|
205
|
-
expected: "(boolean | undefined)",
|
|
206
|
-
value: input.enabled
|
|
207
|
-
}), undefined === input.constraints || (Array.isArray(input.constraints) || _report(_exceptionable, {
|
|
208
|
-
path: _path + ".constraints",
|
|
209
|
-
expected: "(Array<__type> | undefined)",
|
|
210
|
-
value: input.constraints
|
|
211
|
-
})) && input.constraints.map((elem, _index23) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
212
|
-
path: _path + ".constraints[" + _index23 + "]",
|
|
213
|
-
expected: "__type.o1",
|
|
214
|
-
value: elem
|
|
215
|
-
})) && _vo4(elem, _path + ".constraints[" + _index23 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
216
|
-
path: _path + ".constraints[" + _index23 + "]",
|
|
217
|
-
expected: "__type.o1",
|
|
218
|
-
value: elem
|
|
219
|
-
})).every(flag => flag) || _report(_exceptionable, {
|
|
220
|
-
path: _path + ".constraints",
|
|
221
|
-
expected: "(Array<__type> | undefined)",
|
|
222
|
-
value: input.constraints
|
|
223
|
-
})].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.contextName || _report(_exceptionable, {
|
|
224
|
-
path: _path + ".contextName",
|
|
225
|
-
expected: "string",
|
|
226
|
-
value: input.contextName
|
|
227
|
-
}), "string" === typeof input.operator || _report(_exceptionable, {
|
|
228
|
-
path: _path + ".operator",
|
|
229
|
-
expected: "string",
|
|
230
|
-
value: input.operator
|
|
231
|
-
}), undefined === input.values || (Array.isArray(input.values) || _report(_exceptionable, {
|
|
232
|
-
path: _path + ".values",
|
|
233
|
-
expected: "(Array<string> | undefined)",
|
|
234
|
-
value: input.values
|
|
235
|
-
})) && input.values.map((elem, _index24) => "string" === typeof elem || _report(_exceptionable, {
|
|
236
|
-
path: _path + ".values[" + _index24 + "]",
|
|
237
|
-
expected: "string",
|
|
238
|
-
value: elem
|
|
239
|
-
})).every(flag => flag) || _report(_exceptionable, {
|
|
240
|
-
path: _path + ".values",
|
|
241
|
-
expected: "(Array<string> | undefined)",
|
|
242
|
-
value: input.values
|
|
243
|
-
})].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
244
|
-
path: _path + ".name",
|
|
245
|
-
expected: "string",
|
|
246
|
-
value: input.name
|
|
247
183
|
}), "string" === typeof input.displayName || _report(_exceptionable, {
|
|
248
184
|
path: _path + ".displayName",
|
|
249
185
|
expected: "string",
|
|
@@ -260,7 +196,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
260
196
|
path: _path + ".service",
|
|
261
197
|
expected: "ServiceConfig",
|
|
262
198
|
value: input.service
|
|
263
|
-
})) &&
|
|
199
|
+
})) && _vo4(input.service, _path + ".service", true && _exceptionable) || _report(_exceptionable, {
|
|
264
200
|
path: _path + ".service",
|
|
265
201
|
expected: "ServiceConfig",
|
|
266
202
|
value: input.service
|
|
@@ -268,8 +204,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
268
204
|
path: _path + ".dependsOn",
|
|
269
205
|
expected: "Array<string>",
|
|
270
206
|
value: input.dependsOn
|
|
271
|
-
})) && input.dependsOn.map((elem,
|
|
272
|
-
path: _path + ".dependsOn[" +
|
|
207
|
+
})) && input.dependsOn.map((elem, _index19) => "string" === typeof elem || _report(_exceptionable, {
|
|
208
|
+
path: _path + ".dependsOn[" + _index19 + "]",
|
|
273
209
|
expected: "string",
|
|
274
210
|
value: elem
|
|
275
211
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -280,7 +216,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
280
216
|
path: _path + ".commonPaths",
|
|
281
217
|
expected: "(CommonPathsMetadata | undefined)",
|
|
282
218
|
value: input.commonPaths
|
|
283
|
-
})) &&
|
|
219
|
+
})) && _vo5(input.commonPaths, _path + ".commonPaths", true && _exceptionable) || _report(_exceptionable, {
|
|
284
220
|
path: _path + ".commonPaths",
|
|
285
221
|
expected: "(CommonPathsMetadata | undefined)",
|
|
286
222
|
value: input.commonPaths
|
|
@@ -288,7 +224,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
288
224
|
path: _path + ".ui",
|
|
289
225
|
expected: "(UIConfig | undefined)",
|
|
290
226
|
value: input.ui
|
|
291
|
-
})) &&
|
|
227
|
+
})) && _vo6(input.ui, _path + ".ui", true && _exceptionable) || _report(_exceptionable, {
|
|
292
228
|
path: _path + ".ui",
|
|
293
229
|
expected: "(UIConfig | undefined)",
|
|
294
230
|
value: input.ui
|
|
@@ -296,7 +232,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
296
232
|
path: _path + ".cloudFunction",
|
|
297
233
|
expected: "(CloudFunctionConfig | undefined)",
|
|
298
234
|
value: input.cloudFunction
|
|
299
|
-
})) &&
|
|
235
|
+
})) && _vo8(input.cloudFunction, _path + ".cloudFunction", true && _exceptionable) || _report(_exceptionable, {
|
|
300
236
|
path: _path + ".cloudFunction",
|
|
301
237
|
expected: "(CloudFunctionConfig | undefined)",
|
|
302
238
|
value: input.cloudFunction
|
|
@@ -304,7 +240,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
304
240
|
path: _path + ".authorization",
|
|
305
241
|
expected: "(AuthorizationMetadata | undefined)",
|
|
306
242
|
value: input.authorization
|
|
307
|
-
})) &&
|
|
243
|
+
})) && _vo9(input.authorization, _path + ".authorization", true && _exceptionable) || _report(_exceptionable, {
|
|
308
244
|
path: _path + ".authorization",
|
|
309
245
|
expected: "(AuthorizationMetadata | undefined)",
|
|
310
246
|
value: input.authorization
|
|
@@ -324,7 +260,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
324
260
|
path: _path + ".id",
|
|
325
261
|
expected: "(number | undefined)",
|
|
326
262
|
value: input.id
|
|
327
|
-
})].every(flag => flag); const
|
|
263
|
+
})].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || _report(_exceptionable, {
|
|
328
264
|
path: _path + ".host",
|
|
329
265
|
expected: "string",
|
|
330
266
|
value: input.host
|
|
@@ -340,7 +276,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
340
276
|
path: _path + ".includeBaseURL",
|
|
341
277
|
expected: "(boolean | undefined)",
|
|
342
278
|
value: input.includeBaseURL
|
|
343
|
-
})].every(flag => flag); const
|
|
279
|
+
})].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => [undefined === input.apiDocs || "string" === typeof input.apiDocs || _report(_exceptionable, {
|
|
344
280
|
path: _path + ".apiDocs",
|
|
345
281
|
expected: "(string | undefined)",
|
|
346
282
|
value: input.apiDocs
|
|
@@ -356,7 +292,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
356
292
|
path: _path + ".changelog",
|
|
357
293
|
expected: "(string | undefined)",
|
|
358
294
|
value: input.changelog
|
|
359
|
-
})].every(flag => flag); const
|
|
295
|
+
})].every(flag => flag); const _vo6 = (input, _path, _exceptionable = true) => ["string" === typeof input.route || _report(_exceptionable, {
|
|
360
296
|
path: _path + ".route",
|
|
361
297
|
expected: "string",
|
|
362
298
|
value: input.route
|
|
@@ -372,7 +308,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
372
308
|
path: _path + ".customProps",
|
|
373
309
|
expected: "ModuleProps",
|
|
374
310
|
value: input.customProps
|
|
375
|
-
})) &&
|
|
311
|
+
})) && _vo7(input.customProps, _path + ".customProps", true && _exceptionable) || _report(_exceptionable, {
|
|
376
312
|
path: _path + ".customProps",
|
|
377
313
|
expected: "ModuleProps",
|
|
378
314
|
value: input.customProps
|
|
@@ -384,12 +320,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
384
320
|
path: _path + ".isPlatformCustomization",
|
|
385
321
|
expected: "(boolean | undefined)",
|
|
386
322
|
value: input.isPlatformCustomization
|
|
387
|
-
})].every(flag => flag); const
|
|
323
|
+
})].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
388
324
|
const value = input[key];
|
|
389
325
|
if (undefined === value)
|
|
390
326
|
return true;
|
|
391
327
|
return true;
|
|
392
|
-
}).every(flag => flag)].every(flag => flag); const
|
|
328
|
+
}).every(flag => flag)].every(flag => flag); const _vo8 = (input, _path, _exceptionable = true) => ["aws" === input.provider || _report(_exceptionable, {
|
|
393
329
|
path: _path + ".provider",
|
|
394
330
|
expected: "\"aws\"",
|
|
395
331
|
value: input.provider
|
|
@@ -397,12 +333,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
397
333
|
path: _path + ".requiresSignature",
|
|
398
334
|
expected: "boolean",
|
|
399
335
|
value: input.requiresSignature
|
|
400
|
-
})].every(flag => flag); const
|
|
336
|
+
})].every(flag => flag); const _vo9 = (input, _path, _exceptionable = true) => [undefined === input.operations || (Array.isArray(input.operations) || _report(_exceptionable, {
|
|
401
337
|
path: _path + ".operations",
|
|
402
338
|
expected: "(Array<string> | undefined)",
|
|
403
339
|
value: input.operations
|
|
404
|
-
})) && input.operations.map((elem,
|
|
405
|
-
path: _path + ".operations[" +
|
|
340
|
+
})) && input.operations.map((elem, _index20) => "string" === typeof elem || _report(_exceptionable, {
|
|
341
|
+
path: _path + ".operations[" + _index20 + "]",
|
|
406
342
|
expected: "string",
|
|
407
343
|
value: elem
|
|
408
344
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -413,24 +349,24 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
413
349
|
path: _path + ".routes",
|
|
414
350
|
expected: "(Array<RouteAuthorization> | undefined)",
|
|
415
351
|
value: input.routes
|
|
416
|
-
})) && input.routes.map((elem,
|
|
417
|
-
path: _path + ".routes[" +
|
|
352
|
+
})) && input.routes.map((elem, _index21) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
353
|
+
path: _path + ".routes[" + _index21 + "]",
|
|
418
354
|
expected: "RouteAuthorization",
|
|
419
355
|
value: elem
|
|
420
|
-
})) &&
|
|
421
|
-
path: _path + ".routes[" +
|
|
356
|
+
})) && _vo10(elem, _path + ".routes[" + _index21 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
357
|
+
path: _path + ".routes[" + _index21 + "]",
|
|
422
358
|
expected: "RouteAuthorization",
|
|
423
359
|
value: elem
|
|
424
360
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
425
361
|
path: _path + ".routes",
|
|
426
362
|
expected: "(Array<RouteAuthorization> | undefined)",
|
|
427
363
|
value: input.routes
|
|
428
|
-
})].every(flag => flag); const
|
|
364
|
+
})].every(flag => flag); const _vo10 = (input, _path, _exceptionable = true) => [undefined === input.methods || (Array.isArray(input.methods) || _report(_exceptionable, {
|
|
429
365
|
path: _path + ".methods",
|
|
430
366
|
expected: "(Array<HttpMethod> | undefined)",
|
|
431
367
|
value: input.methods
|
|
432
|
-
})) && input.methods.map((elem,
|
|
433
|
-
path: _path + ".methods[" +
|
|
368
|
+
})) && input.methods.map((elem, _index22) => "GET" === elem || "POST" === elem || "PUT" === elem || "DELETE" === elem || "PATCH" === elem || "OPTIONS" === elem || "HEAD" === elem || "CONNECT" === elem || "TRACE" === elem || _report(_exceptionable, {
|
|
369
|
+
path: _path + ".methods[" + _index22 + "]",
|
|
434
370
|
expected: "(\"CONNECT\" | \"DELETE\" | \"GET\" | \"HEAD\" | \"OPTIONS\" | \"PATCH\" | \"POST\" | \"PUT\" | \"TRACE\")",
|
|
435
371
|
value: elem
|
|
436
372
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -445,15 +381,15 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
445
381
|
path: _path + ".operations",
|
|
446
382
|
expected: "Array<string>",
|
|
447
383
|
value: input.operations
|
|
448
|
-
})) && input.operations.map((elem,
|
|
449
|
-
path: _path + ".operations[" +
|
|
384
|
+
})) && input.operations.map((elem, _index23) => "string" === typeof elem || _report(_exceptionable, {
|
|
385
|
+
path: _path + ".operations[" + _index23 + "]",
|
|
450
386
|
expected: "string",
|
|
451
387
|
value: elem
|
|
452
388
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
453
389
|
path: _path + ".operations",
|
|
454
390
|
expected: "Array<string>",
|
|
455
391
|
value: input.operations
|
|
456
|
-
})].every(flag => flag); const
|
|
392
|
+
})].every(flag => flag); const _vo11 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
457
393
|
path: _path + ".name",
|
|
458
394
|
expected: "string",
|
|
459
395
|
value: input.name
|
|
@@ -469,7 +405,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
469
405
|
path: _path + ".allowedByDefault",
|
|
470
406
|
expected: "(boolean | undefined)",
|
|
471
407
|
value: input.allowedByDefault
|
|
472
|
-
})].every(flag => flag); const
|
|
408
|
+
})].every(flag => flag); const _vo12 = (input, _path, _exceptionable = true) => [undefined === input.applicationName || "string" === typeof input.applicationName || _report(_exceptionable, {
|
|
473
409
|
path: _path + ".applicationName",
|
|
474
410
|
expected: "(string | undefined)",
|
|
475
411
|
value: input.applicationName
|
|
@@ -481,12 +417,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
481
417
|
path: _path + ".description",
|
|
482
418
|
expected: "(string | undefined)",
|
|
483
419
|
value: input.description
|
|
484
|
-
})].every(flag => flag); const
|
|
420
|
+
})].every(flag => flag); const _vo13 = (input, _path, _exceptionable = true) => [undefined === input.roles || (Array.isArray(input.roles) || _report(_exceptionable, {
|
|
485
421
|
path: _path + ".roles",
|
|
486
422
|
expected: "(Array<string> | undefined)",
|
|
487
423
|
value: input.roles
|
|
488
|
-
})) && input.roles.map((elem,
|
|
489
|
-
path: _path + ".roles[" +
|
|
424
|
+
})) && input.roles.map((elem, _index24) => "string" === typeof elem || _report(_exceptionable, {
|
|
425
|
+
path: _path + ".roles[" + _index24 + "]",
|
|
490
426
|
expected: "string",
|
|
491
427
|
value: elem
|
|
492
428
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -505,7 +441,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
505
441
|
path: _path + ".applicationName",
|
|
506
442
|
expected: "(string | undefined)",
|
|
507
443
|
value: input.applicationName
|
|
508
|
-
})].every(flag => flag); const
|
|
444
|
+
})].every(flag => flag); const _vo14 = (input, _path, _exceptionable = true) => ["string" === typeof input.moduleName || _report(_exceptionable, {
|
|
509
445
|
path: _path + ".moduleName",
|
|
510
446
|
expected: "string",
|
|
511
447
|
value: input.moduleName
|
|
@@ -513,11 +449,11 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
513
449
|
path: _path + ".customProps",
|
|
514
450
|
expected: "Record<string, any>",
|
|
515
451
|
value: input.customProps
|
|
516
|
-
})) &&
|
|
452
|
+
})) && _vo15(input.customProps, _path + ".customProps", true && _exceptionable) || _report(_exceptionable, {
|
|
517
453
|
path: _path + ".customProps",
|
|
518
454
|
expected: "Record<string, any>",
|
|
519
455
|
value: input.customProps
|
|
520
|
-
})].every(flag => flag); const
|
|
456
|
+
})].every(flag => flag); const _vo15 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
521
457
|
const value = input[key];
|
|
522
458
|
if (undefined === value)
|
|
523
459
|
return true;
|
|
@@ -556,12 +492,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
556
492
|
const invalidObject = {
|
|
557
493
|
invalidField: 'invalidValue',
|
|
558
494
|
};
|
|
559
|
-
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.
|
|
495
|
+
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.catalog || Array.isArray(input.catalog) && input.catalog.every(elem => "object" === typeof elem && null !== elem && _io3(elem))) && (undefined === input.applicationsAuthz || Array.isArray(input.applicationsAuthz) && input.applicationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io11(elem))) && (undefined === input.rolesAuthz || Array.isArray(input.rolesAuthz) && input.rolesAuthz.every(elem => "object" === typeof elem && null !== elem && _io12(elem))) && (undefined === input.operationsAuthz || Array.isArray(input.operationsAuthz) && input.operationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io13(elem))) && (undefined === input.modulesConfig || Array.isArray(input.modulesConfig) && input.modulesConfig.every(elem => "object" === typeof elem && null !== elem && _io14(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 && "string" === typeof input.displayName && ("service" === input.type || "app" === input.type || "utility" === input.type || "cloud-function" === input.type || "documentation" === input.type) && "string" === typeof input.baseUrl && ("object" === typeof input.service && null !== input.service && _io4(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) && _io5(input.commonPaths)) && (undefined === input.ui || "object" === typeof input.ui && null !== input.ui && _io6(input.ui)) && (undefined === input.cloudFunction || "object" === typeof input.cloudFunction && null !== input.cloudFunction && _io8(input.cloudFunction)) && (undefined === input.authorization || "object" === typeof input.authorization && null !== input.authorization && false === Array.isArray(input.authorization) && _io9(input.authorization)) && (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); const _io4 = input => "string" === typeof input.host && "number" === typeof input.port && (undefined === input.protocol || "string" === typeof input.protocol) && (undefined === input.includeBaseURL || "boolean" === typeof input.includeBaseURL); const _io5 = 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 _io6 = 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) && _io7(input.customProps)) && (undefined === input.shell || "boolean" === typeof input.shell) && (undefined === input.isPlatformCustomization || "boolean" === typeof input.isPlatformCustomization); const _io7 = input => Object.keys(input).every(key => {
|
|
560
496
|
const value = input[key];
|
|
561
497
|
if (undefined === value)
|
|
562
498
|
return true;
|
|
563
499
|
return true;
|
|
564
|
-
}); const
|
|
500
|
+
}); const _io8 = input => "aws" === input.provider && "boolean" === typeof input.requiresSignature; const _io9 = 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 && _io10(elem))); const _io10 = input => (undefined === input.methods || Array.isArray(input.methods) && input.methods.every(elem => "GET" === elem || "POST" === elem || "PUT" === elem || "DELETE" === elem || "PATCH" === elem || "OPTIONS" === elem || "HEAD" === elem || "CONNECT" === elem || "TRACE" === elem)) && "string" === typeof input.pattern && (Array.isArray(input.operations) && input.operations.every(elem => "string" === typeof elem)); const _io11 = 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); const _io12 = input => (undefined === input.applicationName || "string" === typeof input.applicationName) && "string" === typeof input.name && (undefined === input.description || "string" === typeof input.description); const _io13 = 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 _io14 = input => "string" === typeof input.moduleName && ("object" === typeof input.customProps && null !== input.customProps && false === Array.isArray(input.customProps) && _io15(input.customProps)); const _io15 = input => Object.keys(input).every(key => {
|
|
565
501
|
const value = input[key];
|
|
566
502
|
if (undefined === value)
|
|
567
503
|
return true;
|
|
@@ -578,44 +514,28 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
578
514
|
path: _path + ".sharedLibraries",
|
|
579
515
|
expected: "(Array<CreateSharedLibraryDTO> | undefined)",
|
|
580
516
|
value: input.sharedLibraries
|
|
581
|
-
})) && input.sharedLibraries.map((elem,
|
|
582
|
-
path: _path + ".sharedLibraries[" +
|
|
517
|
+
})) && input.sharedLibraries.map((elem, _index13) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
518
|
+
path: _path + ".sharedLibraries[" + _index13 + "]",
|
|
583
519
|
expected: "CreateSharedLibraryDTO",
|
|
584
520
|
value: elem
|
|
585
|
-
})) && _vo2(elem, _path + ".sharedLibraries[" +
|
|
586
|
-
path: _path + ".sharedLibraries[" +
|
|
521
|
+
})) && _vo2(elem, _path + ".sharedLibraries[" + _index13 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
522
|
+
path: _path + ".sharedLibraries[" + _index13 + "]",
|
|
587
523
|
expected: "CreateSharedLibraryDTO",
|
|
588
524
|
value: elem
|
|
589
525
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
590
526
|
path: _path + ".sharedLibraries",
|
|
591
527
|
expected: "(Array<CreateSharedLibraryDTO> | undefined)",
|
|
592
528
|
value: input.sharedLibraries
|
|
593
|
-
}), undefined === input.featureFlags || (Array.isArray(input.featureFlags) || _report(_exceptionable, {
|
|
594
|
-
path: _path + ".featureFlags",
|
|
595
|
-
expected: "(Array<BootstrapFeatureFlag> | undefined)",
|
|
596
|
-
value: input.featureFlags
|
|
597
|
-
})) && input.featureFlags.map((elem, _index17) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
598
|
-
path: _path + ".featureFlags[" + _index17 + "]",
|
|
599
|
-
expected: "BootstrapFeatureFlag",
|
|
600
|
-
value: elem
|
|
601
|
-
})) && _vo3(elem, _path + ".featureFlags[" + _index17 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
602
|
-
path: _path + ".featureFlags[" + _index17 + "]",
|
|
603
|
-
expected: "BootstrapFeatureFlag",
|
|
604
|
-
value: elem
|
|
605
|
-
})).every(flag => flag) || _report(_exceptionable, {
|
|
606
|
-
path: _path + ".featureFlags",
|
|
607
|
-
expected: "(Array<BootstrapFeatureFlag> | undefined)",
|
|
608
|
-
value: input.featureFlags
|
|
609
529
|
}), undefined === input.catalog || (Array.isArray(input.catalog) || _report(_exceptionable, {
|
|
610
530
|
path: _path + ".catalog",
|
|
611
531
|
expected: "(Array<CreateOrUpdateModule> | undefined)",
|
|
612
532
|
value: input.catalog
|
|
613
|
-
})) && input.catalog.map((elem,
|
|
614
|
-
path: _path + ".catalog[" +
|
|
533
|
+
})) && input.catalog.map((elem, _index14) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
534
|
+
path: _path + ".catalog[" + _index14 + "]",
|
|
615
535
|
expected: "CreateOrUpdateModule",
|
|
616
536
|
value: elem
|
|
617
|
-
})) &&
|
|
618
|
-
path: _path + ".catalog[" +
|
|
537
|
+
})) && _vo3(elem, _path + ".catalog[" + _index14 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
538
|
+
path: _path + ".catalog[" + _index14 + "]",
|
|
619
539
|
expected: "CreateOrUpdateModule",
|
|
620
540
|
value: elem
|
|
621
541
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -626,12 +546,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
626
546
|
path: _path + ".applicationsAuthz",
|
|
627
547
|
expected: "(Array<CreateApplicationDTO> | undefined)",
|
|
628
548
|
value: input.applicationsAuthz
|
|
629
|
-
})) && input.applicationsAuthz.map((elem,
|
|
630
|
-
path: _path + ".applicationsAuthz[" +
|
|
549
|
+
})) && input.applicationsAuthz.map((elem, _index15) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
550
|
+
path: _path + ".applicationsAuthz[" + _index15 + "]",
|
|
631
551
|
expected: "CreateApplicationDTO",
|
|
632
552
|
value: elem
|
|
633
|
-
})) &&
|
|
634
|
-
path: _path + ".applicationsAuthz[" +
|
|
553
|
+
})) && _vo11(elem, _path + ".applicationsAuthz[" + _index15 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
554
|
+
path: _path + ".applicationsAuthz[" + _index15 + "]",
|
|
635
555
|
expected: "CreateApplicationDTO",
|
|
636
556
|
value: elem
|
|
637
557
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -642,12 +562,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
642
562
|
path: _path + ".rolesAuthz",
|
|
643
563
|
expected: "(Array<CreateRoleDTO> | undefined)",
|
|
644
564
|
value: input.rolesAuthz
|
|
645
|
-
})) && input.rolesAuthz.map((elem,
|
|
646
|
-
path: _path + ".rolesAuthz[" +
|
|
565
|
+
})) && input.rolesAuthz.map((elem, _index16) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
566
|
+
path: _path + ".rolesAuthz[" + _index16 + "]",
|
|
647
567
|
expected: "CreateRoleDTO",
|
|
648
568
|
value: elem
|
|
649
|
-
})) &&
|
|
650
|
-
path: _path + ".rolesAuthz[" +
|
|
569
|
+
})) && _vo12(elem, _path + ".rolesAuthz[" + _index16 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
570
|
+
path: _path + ".rolesAuthz[" + _index16 + "]",
|
|
651
571
|
expected: "CreateRoleDTO",
|
|
652
572
|
value: elem
|
|
653
573
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -658,12 +578,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
658
578
|
path: _path + ".operationsAuthz",
|
|
659
579
|
expected: "(Array<OperationAuthzBootstrap> | undefined)",
|
|
660
580
|
value: input.operationsAuthz
|
|
661
|
-
})) && input.operationsAuthz.map((elem,
|
|
662
|
-
path: _path + ".operationsAuthz[" +
|
|
581
|
+
})) && input.operationsAuthz.map((elem, _index17) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
582
|
+
path: _path + ".operationsAuthz[" + _index17 + "]",
|
|
663
583
|
expected: "OperationAuthzBootstrap",
|
|
664
584
|
value: elem
|
|
665
|
-
})) &&
|
|
666
|
-
path: _path + ".operationsAuthz[" +
|
|
585
|
+
})) && _vo13(elem, _path + ".operationsAuthz[" + _index17 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
586
|
+
path: _path + ".operationsAuthz[" + _index17 + "]",
|
|
667
587
|
expected: "OperationAuthzBootstrap",
|
|
668
588
|
value: elem
|
|
669
589
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -674,12 +594,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
674
594
|
path: _path + ".modulesConfig",
|
|
675
595
|
expected: "(Array<UpdateModuleUIConfigDTO> | undefined)",
|
|
676
596
|
value: input.modulesConfig
|
|
677
|
-
})) && input.modulesConfig.map((elem,
|
|
678
|
-
path: _path + ".modulesConfig[" +
|
|
597
|
+
})) && input.modulesConfig.map((elem, _index18) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
598
|
+
path: _path + ".modulesConfig[" + _index18 + "]",
|
|
679
599
|
expected: "UpdateModuleUIConfigDTO",
|
|
680
600
|
value: elem
|
|
681
|
-
})) &&
|
|
682
|
-
path: _path + ".modulesConfig[" +
|
|
601
|
+
})) && _vo14(elem, _path + ".modulesConfig[" + _index18 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
602
|
+
path: _path + ".modulesConfig[" + _index18 + "]",
|
|
683
603
|
expected: "UpdateModuleUIConfigDTO",
|
|
684
604
|
value: elem
|
|
685
605
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -706,54 +626,6 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
706
626
|
path: _path + ".name",
|
|
707
627
|
expected: "string",
|
|
708
628
|
value: input.name
|
|
709
|
-
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
|
710
|
-
path: _path + ".description",
|
|
711
|
-
expected: "(string | undefined)",
|
|
712
|
-
value: input.description
|
|
713
|
-
}), undefined === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
714
|
-
path: _path + ".enabled",
|
|
715
|
-
expected: "(boolean | undefined)",
|
|
716
|
-
value: input.enabled
|
|
717
|
-
}), undefined === input.constraints || (Array.isArray(input.constraints) || _report(_exceptionable, {
|
|
718
|
-
path: _path + ".constraints",
|
|
719
|
-
expected: "(Array<__type> | undefined)",
|
|
720
|
-
value: input.constraints
|
|
721
|
-
})) && input.constraints.map((elem, _index23) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
722
|
-
path: _path + ".constraints[" + _index23 + "]",
|
|
723
|
-
expected: "__type.o1",
|
|
724
|
-
value: elem
|
|
725
|
-
})) && _vo4(elem, _path + ".constraints[" + _index23 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
726
|
-
path: _path + ".constraints[" + _index23 + "]",
|
|
727
|
-
expected: "__type.o1",
|
|
728
|
-
value: elem
|
|
729
|
-
})).every(flag => flag) || _report(_exceptionable, {
|
|
730
|
-
path: _path + ".constraints",
|
|
731
|
-
expected: "(Array<__type> | undefined)",
|
|
732
|
-
value: input.constraints
|
|
733
|
-
})].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.contextName || _report(_exceptionable, {
|
|
734
|
-
path: _path + ".contextName",
|
|
735
|
-
expected: "string",
|
|
736
|
-
value: input.contextName
|
|
737
|
-
}), "string" === typeof input.operator || _report(_exceptionable, {
|
|
738
|
-
path: _path + ".operator",
|
|
739
|
-
expected: "string",
|
|
740
|
-
value: input.operator
|
|
741
|
-
}), undefined === input.values || (Array.isArray(input.values) || _report(_exceptionable, {
|
|
742
|
-
path: _path + ".values",
|
|
743
|
-
expected: "(Array<string> | undefined)",
|
|
744
|
-
value: input.values
|
|
745
|
-
})) && input.values.map((elem, _index24) => "string" === typeof elem || _report(_exceptionable, {
|
|
746
|
-
path: _path + ".values[" + _index24 + "]",
|
|
747
|
-
expected: "string",
|
|
748
|
-
value: elem
|
|
749
|
-
})).every(flag => flag) || _report(_exceptionable, {
|
|
750
|
-
path: _path + ".values",
|
|
751
|
-
expected: "(Array<string> | undefined)",
|
|
752
|
-
value: input.values
|
|
753
|
-
})].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
754
|
-
path: _path + ".name",
|
|
755
|
-
expected: "string",
|
|
756
|
-
value: input.name
|
|
757
629
|
}), "string" === typeof input.displayName || _report(_exceptionable, {
|
|
758
630
|
path: _path + ".displayName",
|
|
759
631
|
expected: "string",
|
|
@@ -770,7 +642,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
770
642
|
path: _path + ".service",
|
|
771
643
|
expected: "ServiceConfig",
|
|
772
644
|
value: input.service
|
|
773
|
-
})) &&
|
|
645
|
+
})) && _vo4(input.service, _path + ".service", true && _exceptionable) || _report(_exceptionable, {
|
|
774
646
|
path: _path + ".service",
|
|
775
647
|
expected: "ServiceConfig",
|
|
776
648
|
value: input.service
|
|
@@ -778,8 +650,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
778
650
|
path: _path + ".dependsOn",
|
|
779
651
|
expected: "Array<string>",
|
|
780
652
|
value: input.dependsOn
|
|
781
|
-
})) && input.dependsOn.map((elem,
|
|
782
|
-
path: _path + ".dependsOn[" +
|
|
653
|
+
})) && input.dependsOn.map((elem, _index19) => "string" === typeof elem || _report(_exceptionable, {
|
|
654
|
+
path: _path + ".dependsOn[" + _index19 + "]",
|
|
783
655
|
expected: "string",
|
|
784
656
|
value: elem
|
|
785
657
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -790,7 +662,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
790
662
|
path: _path + ".commonPaths",
|
|
791
663
|
expected: "(CommonPathsMetadata | undefined)",
|
|
792
664
|
value: input.commonPaths
|
|
793
|
-
})) &&
|
|
665
|
+
})) && _vo5(input.commonPaths, _path + ".commonPaths", true && _exceptionable) || _report(_exceptionable, {
|
|
794
666
|
path: _path + ".commonPaths",
|
|
795
667
|
expected: "(CommonPathsMetadata | undefined)",
|
|
796
668
|
value: input.commonPaths
|
|
@@ -798,7 +670,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
798
670
|
path: _path + ".ui",
|
|
799
671
|
expected: "(UIConfig | undefined)",
|
|
800
672
|
value: input.ui
|
|
801
|
-
})) &&
|
|
673
|
+
})) && _vo6(input.ui, _path + ".ui", true && _exceptionable) || _report(_exceptionable, {
|
|
802
674
|
path: _path + ".ui",
|
|
803
675
|
expected: "(UIConfig | undefined)",
|
|
804
676
|
value: input.ui
|
|
@@ -806,7 +678,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
806
678
|
path: _path + ".cloudFunction",
|
|
807
679
|
expected: "(CloudFunctionConfig | undefined)",
|
|
808
680
|
value: input.cloudFunction
|
|
809
|
-
})) &&
|
|
681
|
+
})) && _vo8(input.cloudFunction, _path + ".cloudFunction", true && _exceptionable) || _report(_exceptionable, {
|
|
810
682
|
path: _path + ".cloudFunction",
|
|
811
683
|
expected: "(CloudFunctionConfig | undefined)",
|
|
812
684
|
value: input.cloudFunction
|
|
@@ -814,7 +686,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
814
686
|
path: _path + ".authorization",
|
|
815
687
|
expected: "(AuthorizationMetadata | undefined)",
|
|
816
688
|
value: input.authorization
|
|
817
|
-
})) &&
|
|
689
|
+
})) && _vo9(input.authorization, _path + ".authorization", true && _exceptionable) || _report(_exceptionable, {
|
|
818
690
|
path: _path + ".authorization",
|
|
819
691
|
expected: "(AuthorizationMetadata | undefined)",
|
|
820
692
|
value: input.authorization
|
|
@@ -834,7 +706,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
834
706
|
path: _path + ".id",
|
|
835
707
|
expected: "(number | undefined)",
|
|
836
708
|
value: input.id
|
|
837
|
-
})].every(flag => flag); const
|
|
709
|
+
})].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || _report(_exceptionable, {
|
|
838
710
|
path: _path + ".host",
|
|
839
711
|
expected: "string",
|
|
840
712
|
value: input.host
|
|
@@ -850,7 +722,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
850
722
|
path: _path + ".includeBaseURL",
|
|
851
723
|
expected: "(boolean | undefined)",
|
|
852
724
|
value: input.includeBaseURL
|
|
853
|
-
})].every(flag => flag); const
|
|
725
|
+
})].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => [undefined === input.apiDocs || "string" === typeof input.apiDocs || _report(_exceptionable, {
|
|
854
726
|
path: _path + ".apiDocs",
|
|
855
727
|
expected: "(string | undefined)",
|
|
856
728
|
value: input.apiDocs
|
|
@@ -866,7 +738,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
866
738
|
path: _path + ".changelog",
|
|
867
739
|
expected: "(string | undefined)",
|
|
868
740
|
value: input.changelog
|
|
869
|
-
})].every(flag => flag); const
|
|
741
|
+
})].every(flag => flag); const _vo6 = (input, _path, _exceptionable = true) => ["string" === typeof input.route || _report(_exceptionable, {
|
|
870
742
|
path: _path + ".route",
|
|
871
743
|
expected: "string",
|
|
872
744
|
value: input.route
|
|
@@ -882,7 +754,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
882
754
|
path: _path + ".customProps",
|
|
883
755
|
expected: "ModuleProps",
|
|
884
756
|
value: input.customProps
|
|
885
|
-
})) &&
|
|
757
|
+
})) && _vo7(input.customProps, _path + ".customProps", true && _exceptionable) || _report(_exceptionable, {
|
|
886
758
|
path: _path + ".customProps",
|
|
887
759
|
expected: "ModuleProps",
|
|
888
760
|
value: input.customProps
|
|
@@ -894,12 +766,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
894
766
|
path: _path + ".isPlatformCustomization",
|
|
895
767
|
expected: "(boolean | undefined)",
|
|
896
768
|
value: input.isPlatformCustomization
|
|
897
|
-
})].every(flag => flag); const
|
|
769
|
+
})].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
898
770
|
const value = input[key];
|
|
899
771
|
if (undefined === value)
|
|
900
772
|
return true;
|
|
901
773
|
return true;
|
|
902
|
-
}).every(flag => flag)].every(flag => flag); const
|
|
774
|
+
}).every(flag => flag)].every(flag => flag); const _vo8 = (input, _path, _exceptionable = true) => ["aws" === input.provider || _report(_exceptionable, {
|
|
903
775
|
path: _path + ".provider",
|
|
904
776
|
expected: "\"aws\"",
|
|
905
777
|
value: input.provider
|
|
@@ -907,12 +779,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
907
779
|
path: _path + ".requiresSignature",
|
|
908
780
|
expected: "boolean",
|
|
909
781
|
value: input.requiresSignature
|
|
910
|
-
})].every(flag => flag); const
|
|
782
|
+
})].every(flag => flag); const _vo9 = (input, _path, _exceptionable = true) => [undefined === input.operations || (Array.isArray(input.operations) || _report(_exceptionable, {
|
|
911
783
|
path: _path + ".operations",
|
|
912
784
|
expected: "(Array<string> | undefined)",
|
|
913
785
|
value: input.operations
|
|
914
|
-
})) && input.operations.map((elem,
|
|
915
|
-
path: _path + ".operations[" +
|
|
786
|
+
})) && input.operations.map((elem, _index20) => "string" === typeof elem || _report(_exceptionable, {
|
|
787
|
+
path: _path + ".operations[" + _index20 + "]",
|
|
916
788
|
expected: "string",
|
|
917
789
|
value: elem
|
|
918
790
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -923,24 +795,24 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
923
795
|
path: _path + ".routes",
|
|
924
796
|
expected: "(Array<RouteAuthorization> | undefined)",
|
|
925
797
|
value: input.routes
|
|
926
|
-
})) && input.routes.map((elem,
|
|
927
|
-
path: _path + ".routes[" +
|
|
798
|
+
})) && input.routes.map((elem, _index21) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
799
|
+
path: _path + ".routes[" + _index21 + "]",
|
|
928
800
|
expected: "RouteAuthorization",
|
|
929
801
|
value: elem
|
|
930
|
-
})) &&
|
|
931
|
-
path: _path + ".routes[" +
|
|
802
|
+
})) && _vo10(elem, _path + ".routes[" + _index21 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
803
|
+
path: _path + ".routes[" + _index21 + "]",
|
|
932
804
|
expected: "RouteAuthorization",
|
|
933
805
|
value: elem
|
|
934
806
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
935
807
|
path: _path + ".routes",
|
|
936
808
|
expected: "(Array<RouteAuthorization> | undefined)",
|
|
937
809
|
value: input.routes
|
|
938
|
-
})].every(flag => flag); const
|
|
810
|
+
})].every(flag => flag); const _vo10 = (input, _path, _exceptionable = true) => [undefined === input.methods || (Array.isArray(input.methods) || _report(_exceptionable, {
|
|
939
811
|
path: _path + ".methods",
|
|
940
812
|
expected: "(Array<HttpMethod> | undefined)",
|
|
941
813
|
value: input.methods
|
|
942
|
-
})) && input.methods.map((elem,
|
|
943
|
-
path: _path + ".methods[" +
|
|
814
|
+
})) && input.methods.map((elem, _index22) => "GET" === elem || "POST" === elem || "PUT" === elem || "DELETE" === elem || "PATCH" === elem || "OPTIONS" === elem || "HEAD" === elem || "CONNECT" === elem || "TRACE" === elem || _report(_exceptionable, {
|
|
815
|
+
path: _path + ".methods[" + _index22 + "]",
|
|
944
816
|
expected: "(\"CONNECT\" | \"DELETE\" | \"GET\" | \"HEAD\" | \"OPTIONS\" | \"PATCH\" | \"POST\" | \"PUT\" | \"TRACE\")",
|
|
945
817
|
value: elem
|
|
946
818
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -955,15 +827,15 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
955
827
|
path: _path + ".operations",
|
|
956
828
|
expected: "Array<string>",
|
|
957
829
|
value: input.operations
|
|
958
|
-
})) && input.operations.map((elem,
|
|
959
|
-
path: _path + ".operations[" +
|
|
830
|
+
})) && input.operations.map((elem, _index23) => "string" === typeof elem || _report(_exceptionable, {
|
|
831
|
+
path: _path + ".operations[" + _index23 + "]",
|
|
960
832
|
expected: "string",
|
|
961
833
|
value: elem
|
|
962
834
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
963
835
|
path: _path + ".operations",
|
|
964
836
|
expected: "Array<string>",
|
|
965
837
|
value: input.operations
|
|
966
|
-
})].every(flag => flag); const
|
|
838
|
+
})].every(flag => flag); const _vo11 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
967
839
|
path: _path + ".name",
|
|
968
840
|
expected: "string",
|
|
969
841
|
value: input.name
|
|
@@ -979,7 +851,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
979
851
|
path: _path + ".allowedByDefault",
|
|
980
852
|
expected: "(boolean | undefined)",
|
|
981
853
|
value: input.allowedByDefault
|
|
982
|
-
})].every(flag => flag); const
|
|
854
|
+
})].every(flag => flag); const _vo12 = (input, _path, _exceptionable = true) => [undefined === input.applicationName || "string" === typeof input.applicationName || _report(_exceptionable, {
|
|
983
855
|
path: _path + ".applicationName",
|
|
984
856
|
expected: "(string | undefined)",
|
|
985
857
|
value: input.applicationName
|
|
@@ -991,12 +863,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
991
863
|
path: _path + ".description",
|
|
992
864
|
expected: "(string | undefined)",
|
|
993
865
|
value: input.description
|
|
994
|
-
})].every(flag => flag); const
|
|
866
|
+
})].every(flag => flag); const _vo13 = (input, _path, _exceptionable = true) => [undefined === input.roles || (Array.isArray(input.roles) || _report(_exceptionable, {
|
|
995
867
|
path: _path + ".roles",
|
|
996
868
|
expected: "(Array<string> | undefined)",
|
|
997
869
|
value: input.roles
|
|
998
|
-
})) && input.roles.map((elem,
|
|
999
|
-
path: _path + ".roles[" +
|
|
870
|
+
})) && input.roles.map((elem, _index24) => "string" === typeof elem || _report(_exceptionable, {
|
|
871
|
+
path: _path + ".roles[" + _index24 + "]",
|
|
1000
872
|
expected: "string",
|
|
1001
873
|
value: elem
|
|
1002
874
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1015,7 +887,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1015
887
|
path: _path + ".applicationName",
|
|
1016
888
|
expected: "(string | undefined)",
|
|
1017
889
|
value: input.applicationName
|
|
1018
|
-
})].every(flag => flag); const
|
|
890
|
+
})].every(flag => flag); const _vo14 = (input, _path, _exceptionable = true) => ["string" === typeof input.moduleName || _report(_exceptionable, {
|
|
1019
891
|
path: _path + ".moduleName",
|
|
1020
892
|
expected: "string",
|
|
1021
893
|
value: input.moduleName
|
|
@@ -1023,11 +895,11 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1023
895
|
path: _path + ".customProps",
|
|
1024
896
|
expected: "Record<string, any>",
|
|
1025
897
|
value: input.customProps
|
|
1026
|
-
})) &&
|
|
898
|
+
})) && _vo15(input.customProps, _path + ".customProps", true && _exceptionable) || _report(_exceptionable, {
|
|
1027
899
|
path: _path + ".customProps",
|
|
1028
900
|
expected: "Record<string, any>",
|
|
1029
901
|
value: input.customProps
|
|
1030
|
-
})].every(flag => flag); const
|
|
902
|
+
})].every(flag => flag); const _vo15 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
1031
903
|
const value = input[key];
|
|
1032
904
|
if (undefined === value)
|
|
1033
905
|
return true;
|
|
@@ -1087,12 +959,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1087
959
|
scopedTo: "any"
|
|
1088
960
|
},
|
|
1089
961
|
};
|
|
1090
|
-
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.
|
|
962
|
+
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.catalog || Array.isArray(input.catalog) && input.catalog.every(elem => "object" === typeof elem && null !== elem && _io3(elem))) && (undefined === input.applicationsAuthz || Array.isArray(input.applicationsAuthz) && input.applicationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io11(elem))) && (undefined === input.rolesAuthz || Array.isArray(input.rolesAuthz) && input.rolesAuthz.every(elem => "object" === typeof elem && null !== elem && _io12(elem))) && (undefined === input.operationsAuthz || Array.isArray(input.operationsAuthz) && input.operationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io13(elem))) && (undefined === input.modulesConfig || Array.isArray(input.modulesConfig) && input.modulesConfig.every(elem => "object" === typeof elem && null !== elem && _io14(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 && "string" === typeof input.displayName && ("service" === input.type || "app" === input.type || "utility" === input.type || "cloud-function" === input.type || "documentation" === input.type) && "string" === typeof input.baseUrl && ("object" === typeof input.service && null !== input.service && _io4(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) && _io5(input.commonPaths)) && (undefined === input.ui || "object" === typeof input.ui && null !== input.ui && _io6(input.ui)) && (undefined === input.cloudFunction || "object" === typeof input.cloudFunction && null !== input.cloudFunction && _io8(input.cloudFunction)) && (undefined === input.authorization || "object" === typeof input.authorization && null !== input.authorization && false === Array.isArray(input.authorization) && _io9(input.authorization)) && (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); const _io4 = input => "string" === typeof input.host && "number" === typeof input.port && (undefined === input.protocol || "string" === typeof input.protocol) && (undefined === input.includeBaseURL || "boolean" === typeof input.includeBaseURL); const _io5 = 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 _io6 = 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) && _io7(input.customProps)) && (undefined === input.shell || "boolean" === typeof input.shell) && (undefined === input.isPlatformCustomization || "boolean" === typeof input.isPlatformCustomization); const _io7 = input => Object.keys(input).every(key => {
|
|
1091
963
|
const value = input[key];
|
|
1092
964
|
if (undefined === value)
|
|
1093
965
|
return true;
|
|
1094
966
|
return true;
|
|
1095
|
-
}); const
|
|
967
|
+
}); const _io8 = input => "aws" === input.provider && "boolean" === typeof input.requiresSignature; const _io9 = 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 && _io10(elem))); const _io10 = input => (undefined === input.methods || Array.isArray(input.methods) && input.methods.every(elem => "GET" === elem || "POST" === elem || "PUT" === elem || "DELETE" === elem || "PATCH" === elem || "OPTIONS" === elem || "HEAD" === elem || "CONNECT" === elem || "TRACE" === elem)) && "string" === typeof input.pattern && (Array.isArray(input.operations) && input.operations.every(elem => "string" === typeof elem)); const _io11 = 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); const _io12 = input => (undefined === input.applicationName || "string" === typeof input.applicationName) && "string" === typeof input.name && (undefined === input.description || "string" === typeof input.description); const _io13 = 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 _io14 = input => "string" === typeof input.moduleName && ("object" === typeof input.customProps && null !== input.customProps && false === Array.isArray(input.customProps) && _io15(input.customProps)); const _io15 = input => Object.keys(input).every(key => {
|
|
1096
968
|
const value = input[key];
|
|
1097
969
|
if (undefined === value)
|
|
1098
970
|
return true;
|
|
@@ -1109,44 +981,28 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1109
981
|
path: _path + ".sharedLibraries",
|
|
1110
982
|
expected: "(Array<CreateSharedLibraryDTO> | undefined)",
|
|
1111
983
|
value: input.sharedLibraries
|
|
1112
|
-
})) && input.sharedLibraries.map((elem,
|
|
1113
|
-
path: _path + ".sharedLibraries[" +
|
|
984
|
+
})) && input.sharedLibraries.map((elem, _index13) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
985
|
+
path: _path + ".sharedLibraries[" + _index13 + "]",
|
|
1114
986
|
expected: "CreateSharedLibraryDTO",
|
|
1115
987
|
value: elem
|
|
1116
|
-
})) && _vo2(elem, _path + ".sharedLibraries[" +
|
|
1117
|
-
path: _path + ".sharedLibraries[" +
|
|
988
|
+
})) && _vo2(elem, _path + ".sharedLibraries[" + _index13 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
989
|
+
path: _path + ".sharedLibraries[" + _index13 + "]",
|
|
1118
990
|
expected: "CreateSharedLibraryDTO",
|
|
1119
991
|
value: elem
|
|
1120
992
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
1121
993
|
path: _path + ".sharedLibraries",
|
|
1122
994
|
expected: "(Array<CreateSharedLibraryDTO> | undefined)",
|
|
1123
995
|
value: input.sharedLibraries
|
|
1124
|
-
}), undefined === input.featureFlags || (Array.isArray(input.featureFlags) || _report(_exceptionable, {
|
|
1125
|
-
path: _path + ".featureFlags",
|
|
1126
|
-
expected: "(Array<BootstrapFeatureFlag> | undefined)",
|
|
1127
|
-
value: input.featureFlags
|
|
1128
|
-
})) && input.featureFlags.map((elem, _index17) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1129
|
-
path: _path + ".featureFlags[" + _index17 + "]",
|
|
1130
|
-
expected: "BootstrapFeatureFlag",
|
|
1131
|
-
value: elem
|
|
1132
|
-
})) && _vo3(elem, _path + ".featureFlags[" + _index17 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1133
|
-
path: _path + ".featureFlags[" + _index17 + "]",
|
|
1134
|
-
expected: "BootstrapFeatureFlag",
|
|
1135
|
-
value: elem
|
|
1136
|
-
})).every(flag => flag) || _report(_exceptionable, {
|
|
1137
|
-
path: _path + ".featureFlags",
|
|
1138
|
-
expected: "(Array<BootstrapFeatureFlag> | undefined)",
|
|
1139
|
-
value: input.featureFlags
|
|
1140
996
|
}), undefined === input.catalog || (Array.isArray(input.catalog) || _report(_exceptionable, {
|
|
1141
997
|
path: _path + ".catalog",
|
|
1142
998
|
expected: "(Array<CreateOrUpdateModule> | undefined)",
|
|
1143
999
|
value: input.catalog
|
|
1144
|
-
})) && input.catalog.map((elem,
|
|
1145
|
-
path: _path + ".catalog[" +
|
|
1000
|
+
})) && input.catalog.map((elem, _index14) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1001
|
+
path: _path + ".catalog[" + _index14 + "]",
|
|
1146
1002
|
expected: "CreateOrUpdateModule",
|
|
1147
1003
|
value: elem
|
|
1148
|
-
})) &&
|
|
1149
|
-
path: _path + ".catalog[" +
|
|
1004
|
+
})) && _vo3(elem, _path + ".catalog[" + _index14 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1005
|
+
path: _path + ".catalog[" + _index14 + "]",
|
|
1150
1006
|
expected: "CreateOrUpdateModule",
|
|
1151
1007
|
value: elem
|
|
1152
1008
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1157,12 +1013,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1157
1013
|
path: _path + ".applicationsAuthz",
|
|
1158
1014
|
expected: "(Array<CreateApplicationDTO> | undefined)",
|
|
1159
1015
|
value: input.applicationsAuthz
|
|
1160
|
-
})) && input.applicationsAuthz.map((elem,
|
|
1161
|
-
path: _path + ".applicationsAuthz[" +
|
|
1016
|
+
})) && input.applicationsAuthz.map((elem, _index15) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1017
|
+
path: _path + ".applicationsAuthz[" + _index15 + "]",
|
|
1162
1018
|
expected: "CreateApplicationDTO",
|
|
1163
1019
|
value: elem
|
|
1164
|
-
})) &&
|
|
1165
|
-
path: _path + ".applicationsAuthz[" +
|
|
1020
|
+
})) && _vo11(elem, _path + ".applicationsAuthz[" + _index15 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1021
|
+
path: _path + ".applicationsAuthz[" + _index15 + "]",
|
|
1166
1022
|
expected: "CreateApplicationDTO",
|
|
1167
1023
|
value: elem
|
|
1168
1024
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1173,12 +1029,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1173
1029
|
path: _path + ".rolesAuthz",
|
|
1174
1030
|
expected: "(Array<CreateRoleDTO> | undefined)",
|
|
1175
1031
|
value: input.rolesAuthz
|
|
1176
|
-
})) && input.rolesAuthz.map((elem,
|
|
1177
|
-
path: _path + ".rolesAuthz[" +
|
|
1032
|
+
})) && input.rolesAuthz.map((elem, _index16) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1033
|
+
path: _path + ".rolesAuthz[" + _index16 + "]",
|
|
1178
1034
|
expected: "CreateRoleDTO",
|
|
1179
1035
|
value: elem
|
|
1180
|
-
})) &&
|
|
1181
|
-
path: _path + ".rolesAuthz[" +
|
|
1036
|
+
})) && _vo12(elem, _path + ".rolesAuthz[" + _index16 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1037
|
+
path: _path + ".rolesAuthz[" + _index16 + "]",
|
|
1182
1038
|
expected: "CreateRoleDTO",
|
|
1183
1039
|
value: elem
|
|
1184
1040
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1189,12 +1045,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1189
1045
|
path: _path + ".operationsAuthz",
|
|
1190
1046
|
expected: "(Array<OperationAuthzBootstrap> | undefined)",
|
|
1191
1047
|
value: input.operationsAuthz
|
|
1192
|
-
})) && input.operationsAuthz.map((elem,
|
|
1193
|
-
path: _path + ".operationsAuthz[" +
|
|
1048
|
+
})) && input.operationsAuthz.map((elem, _index17) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1049
|
+
path: _path + ".operationsAuthz[" + _index17 + "]",
|
|
1194
1050
|
expected: "OperationAuthzBootstrap",
|
|
1195
1051
|
value: elem
|
|
1196
|
-
})) &&
|
|
1197
|
-
path: _path + ".operationsAuthz[" +
|
|
1052
|
+
})) && _vo13(elem, _path + ".operationsAuthz[" + _index17 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1053
|
+
path: _path + ".operationsAuthz[" + _index17 + "]",
|
|
1198
1054
|
expected: "OperationAuthzBootstrap",
|
|
1199
1055
|
value: elem
|
|
1200
1056
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1205,12 +1061,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1205
1061
|
path: _path + ".modulesConfig",
|
|
1206
1062
|
expected: "(Array<UpdateModuleUIConfigDTO> | undefined)",
|
|
1207
1063
|
value: input.modulesConfig
|
|
1208
|
-
})) && input.modulesConfig.map((elem,
|
|
1209
|
-
path: _path + ".modulesConfig[" +
|
|
1064
|
+
})) && input.modulesConfig.map((elem, _index18) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1065
|
+
path: _path + ".modulesConfig[" + _index18 + "]",
|
|
1210
1066
|
expected: "UpdateModuleUIConfigDTO",
|
|
1211
1067
|
value: elem
|
|
1212
|
-
})) &&
|
|
1213
|
-
path: _path + ".modulesConfig[" +
|
|
1068
|
+
})) && _vo14(elem, _path + ".modulesConfig[" + _index18 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1069
|
+
path: _path + ".modulesConfig[" + _index18 + "]",
|
|
1214
1070
|
expected: "UpdateModuleUIConfigDTO",
|
|
1215
1071
|
value: elem
|
|
1216
1072
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1237,54 +1093,6 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1237
1093
|
path: _path + ".name",
|
|
1238
1094
|
expected: "string",
|
|
1239
1095
|
value: input.name
|
|
1240
|
-
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
|
1241
|
-
path: _path + ".description",
|
|
1242
|
-
expected: "(string | undefined)",
|
|
1243
|
-
value: input.description
|
|
1244
|
-
}), undefined === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
1245
|
-
path: _path + ".enabled",
|
|
1246
|
-
expected: "(boolean | undefined)",
|
|
1247
|
-
value: input.enabled
|
|
1248
|
-
}), undefined === input.constraints || (Array.isArray(input.constraints) || _report(_exceptionable, {
|
|
1249
|
-
path: _path + ".constraints",
|
|
1250
|
-
expected: "(Array<__type> | undefined)",
|
|
1251
|
-
value: input.constraints
|
|
1252
|
-
})) && input.constraints.map((elem, _index23) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1253
|
-
path: _path + ".constraints[" + _index23 + "]",
|
|
1254
|
-
expected: "__type.o1",
|
|
1255
|
-
value: elem
|
|
1256
|
-
})) && _vo4(elem, _path + ".constraints[" + _index23 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1257
|
-
path: _path + ".constraints[" + _index23 + "]",
|
|
1258
|
-
expected: "__type.o1",
|
|
1259
|
-
value: elem
|
|
1260
|
-
})).every(flag => flag) || _report(_exceptionable, {
|
|
1261
|
-
path: _path + ".constraints",
|
|
1262
|
-
expected: "(Array<__type> | undefined)",
|
|
1263
|
-
value: input.constraints
|
|
1264
|
-
})].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.contextName || _report(_exceptionable, {
|
|
1265
|
-
path: _path + ".contextName",
|
|
1266
|
-
expected: "string",
|
|
1267
|
-
value: input.contextName
|
|
1268
|
-
}), "string" === typeof input.operator || _report(_exceptionable, {
|
|
1269
|
-
path: _path + ".operator",
|
|
1270
|
-
expected: "string",
|
|
1271
|
-
value: input.operator
|
|
1272
|
-
}), undefined === input.values || (Array.isArray(input.values) || _report(_exceptionable, {
|
|
1273
|
-
path: _path + ".values",
|
|
1274
|
-
expected: "(Array<string> | undefined)",
|
|
1275
|
-
value: input.values
|
|
1276
|
-
})) && input.values.map((elem, _index24) => "string" === typeof elem || _report(_exceptionable, {
|
|
1277
|
-
path: _path + ".values[" + _index24 + "]",
|
|
1278
|
-
expected: "string",
|
|
1279
|
-
value: elem
|
|
1280
|
-
})).every(flag => flag) || _report(_exceptionable, {
|
|
1281
|
-
path: _path + ".values",
|
|
1282
|
-
expected: "(Array<string> | undefined)",
|
|
1283
|
-
value: input.values
|
|
1284
|
-
})].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
1285
|
-
path: _path + ".name",
|
|
1286
|
-
expected: "string",
|
|
1287
|
-
value: input.name
|
|
1288
1096
|
}), "string" === typeof input.displayName || _report(_exceptionable, {
|
|
1289
1097
|
path: _path + ".displayName",
|
|
1290
1098
|
expected: "string",
|
|
@@ -1301,7 +1109,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1301
1109
|
path: _path + ".service",
|
|
1302
1110
|
expected: "ServiceConfig",
|
|
1303
1111
|
value: input.service
|
|
1304
|
-
})) &&
|
|
1112
|
+
})) && _vo4(input.service, _path + ".service", true && _exceptionable) || _report(_exceptionable, {
|
|
1305
1113
|
path: _path + ".service",
|
|
1306
1114
|
expected: "ServiceConfig",
|
|
1307
1115
|
value: input.service
|
|
@@ -1309,8 +1117,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1309
1117
|
path: _path + ".dependsOn",
|
|
1310
1118
|
expected: "Array<string>",
|
|
1311
1119
|
value: input.dependsOn
|
|
1312
|
-
})) && input.dependsOn.map((elem,
|
|
1313
|
-
path: _path + ".dependsOn[" +
|
|
1120
|
+
})) && input.dependsOn.map((elem, _index19) => "string" === typeof elem || _report(_exceptionable, {
|
|
1121
|
+
path: _path + ".dependsOn[" + _index19 + "]",
|
|
1314
1122
|
expected: "string",
|
|
1315
1123
|
value: elem
|
|
1316
1124
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1321,7 +1129,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1321
1129
|
path: _path + ".commonPaths",
|
|
1322
1130
|
expected: "(CommonPathsMetadata | undefined)",
|
|
1323
1131
|
value: input.commonPaths
|
|
1324
|
-
})) &&
|
|
1132
|
+
})) && _vo5(input.commonPaths, _path + ".commonPaths", true && _exceptionable) || _report(_exceptionable, {
|
|
1325
1133
|
path: _path + ".commonPaths",
|
|
1326
1134
|
expected: "(CommonPathsMetadata | undefined)",
|
|
1327
1135
|
value: input.commonPaths
|
|
@@ -1329,7 +1137,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1329
1137
|
path: _path + ".ui",
|
|
1330
1138
|
expected: "(UIConfig | undefined)",
|
|
1331
1139
|
value: input.ui
|
|
1332
|
-
})) &&
|
|
1140
|
+
})) && _vo6(input.ui, _path + ".ui", true && _exceptionable) || _report(_exceptionable, {
|
|
1333
1141
|
path: _path + ".ui",
|
|
1334
1142
|
expected: "(UIConfig | undefined)",
|
|
1335
1143
|
value: input.ui
|
|
@@ -1337,7 +1145,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1337
1145
|
path: _path + ".cloudFunction",
|
|
1338
1146
|
expected: "(CloudFunctionConfig | undefined)",
|
|
1339
1147
|
value: input.cloudFunction
|
|
1340
|
-
})) &&
|
|
1148
|
+
})) && _vo8(input.cloudFunction, _path + ".cloudFunction", true && _exceptionable) || _report(_exceptionable, {
|
|
1341
1149
|
path: _path + ".cloudFunction",
|
|
1342
1150
|
expected: "(CloudFunctionConfig | undefined)",
|
|
1343
1151
|
value: input.cloudFunction
|
|
@@ -1345,7 +1153,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1345
1153
|
path: _path + ".authorization",
|
|
1346
1154
|
expected: "(AuthorizationMetadata | undefined)",
|
|
1347
1155
|
value: input.authorization
|
|
1348
|
-
})) &&
|
|
1156
|
+
})) && _vo9(input.authorization, _path + ".authorization", true && _exceptionable) || _report(_exceptionable, {
|
|
1349
1157
|
path: _path + ".authorization",
|
|
1350
1158
|
expected: "(AuthorizationMetadata | undefined)",
|
|
1351
1159
|
value: input.authorization
|
|
@@ -1365,7 +1173,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1365
1173
|
path: _path + ".id",
|
|
1366
1174
|
expected: "(number | undefined)",
|
|
1367
1175
|
value: input.id
|
|
1368
|
-
})].every(flag => flag); const
|
|
1176
|
+
})].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || _report(_exceptionable, {
|
|
1369
1177
|
path: _path + ".host",
|
|
1370
1178
|
expected: "string",
|
|
1371
1179
|
value: input.host
|
|
@@ -1381,7 +1189,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1381
1189
|
path: _path + ".includeBaseURL",
|
|
1382
1190
|
expected: "(boolean | undefined)",
|
|
1383
1191
|
value: input.includeBaseURL
|
|
1384
|
-
})].every(flag => flag); const
|
|
1192
|
+
})].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => [undefined === input.apiDocs || "string" === typeof input.apiDocs || _report(_exceptionable, {
|
|
1385
1193
|
path: _path + ".apiDocs",
|
|
1386
1194
|
expected: "(string | undefined)",
|
|
1387
1195
|
value: input.apiDocs
|
|
@@ -1397,7 +1205,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1397
1205
|
path: _path + ".changelog",
|
|
1398
1206
|
expected: "(string | undefined)",
|
|
1399
1207
|
value: input.changelog
|
|
1400
|
-
})].every(flag => flag); const
|
|
1208
|
+
})].every(flag => flag); const _vo6 = (input, _path, _exceptionable = true) => ["string" === typeof input.route || _report(_exceptionable, {
|
|
1401
1209
|
path: _path + ".route",
|
|
1402
1210
|
expected: "string",
|
|
1403
1211
|
value: input.route
|
|
@@ -1413,7 +1221,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1413
1221
|
path: _path + ".customProps",
|
|
1414
1222
|
expected: "ModuleProps",
|
|
1415
1223
|
value: input.customProps
|
|
1416
|
-
})) &&
|
|
1224
|
+
})) && _vo7(input.customProps, _path + ".customProps", true && _exceptionable) || _report(_exceptionable, {
|
|
1417
1225
|
path: _path + ".customProps",
|
|
1418
1226
|
expected: "ModuleProps",
|
|
1419
1227
|
value: input.customProps
|
|
@@ -1425,12 +1233,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1425
1233
|
path: _path + ".isPlatformCustomization",
|
|
1426
1234
|
expected: "(boolean | undefined)",
|
|
1427
1235
|
value: input.isPlatformCustomization
|
|
1428
|
-
})].every(flag => flag); const
|
|
1236
|
+
})].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
1429
1237
|
const value = input[key];
|
|
1430
1238
|
if (undefined === value)
|
|
1431
1239
|
return true;
|
|
1432
1240
|
return true;
|
|
1433
|
-
}).every(flag => flag)].every(flag => flag); const
|
|
1241
|
+
}).every(flag => flag)].every(flag => flag); const _vo8 = (input, _path, _exceptionable = true) => ["aws" === input.provider || _report(_exceptionable, {
|
|
1434
1242
|
path: _path + ".provider",
|
|
1435
1243
|
expected: "\"aws\"",
|
|
1436
1244
|
value: input.provider
|
|
@@ -1438,12 +1246,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1438
1246
|
path: _path + ".requiresSignature",
|
|
1439
1247
|
expected: "boolean",
|
|
1440
1248
|
value: input.requiresSignature
|
|
1441
|
-
})].every(flag => flag); const
|
|
1249
|
+
})].every(flag => flag); const _vo9 = (input, _path, _exceptionable = true) => [undefined === input.operations || (Array.isArray(input.operations) || _report(_exceptionable, {
|
|
1442
1250
|
path: _path + ".operations",
|
|
1443
1251
|
expected: "(Array<string> | undefined)",
|
|
1444
1252
|
value: input.operations
|
|
1445
|
-
})) && input.operations.map((elem,
|
|
1446
|
-
path: _path + ".operations[" +
|
|
1253
|
+
})) && input.operations.map((elem, _index20) => "string" === typeof elem || _report(_exceptionable, {
|
|
1254
|
+
path: _path + ".operations[" + _index20 + "]",
|
|
1447
1255
|
expected: "string",
|
|
1448
1256
|
value: elem
|
|
1449
1257
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1454,24 +1262,24 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1454
1262
|
path: _path + ".routes",
|
|
1455
1263
|
expected: "(Array<RouteAuthorization> | undefined)",
|
|
1456
1264
|
value: input.routes
|
|
1457
|
-
})) && input.routes.map((elem,
|
|
1458
|
-
path: _path + ".routes[" +
|
|
1265
|
+
})) && input.routes.map((elem, _index21) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1266
|
+
path: _path + ".routes[" + _index21 + "]",
|
|
1459
1267
|
expected: "RouteAuthorization",
|
|
1460
1268
|
value: elem
|
|
1461
|
-
})) &&
|
|
1462
|
-
path: _path + ".routes[" +
|
|
1269
|
+
})) && _vo10(elem, _path + ".routes[" + _index21 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1270
|
+
path: _path + ".routes[" + _index21 + "]",
|
|
1463
1271
|
expected: "RouteAuthorization",
|
|
1464
1272
|
value: elem
|
|
1465
1273
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
1466
1274
|
path: _path + ".routes",
|
|
1467
1275
|
expected: "(Array<RouteAuthorization> | undefined)",
|
|
1468
1276
|
value: input.routes
|
|
1469
|
-
})].every(flag => flag); const
|
|
1277
|
+
})].every(flag => flag); const _vo10 = (input, _path, _exceptionable = true) => [undefined === input.methods || (Array.isArray(input.methods) || _report(_exceptionable, {
|
|
1470
1278
|
path: _path + ".methods",
|
|
1471
1279
|
expected: "(Array<HttpMethod> | undefined)",
|
|
1472
1280
|
value: input.methods
|
|
1473
|
-
})) && input.methods.map((elem,
|
|
1474
|
-
path: _path + ".methods[" +
|
|
1281
|
+
})) && input.methods.map((elem, _index22) => "GET" === elem || "POST" === elem || "PUT" === elem || "DELETE" === elem || "PATCH" === elem || "OPTIONS" === elem || "HEAD" === elem || "CONNECT" === elem || "TRACE" === elem || _report(_exceptionable, {
|
|
1282
|
+
path: _path + ".methods[" + _index22 + "]",
|
|
1475
1283
|
expected: "(\"CONNECT\" | \"DELETE\" | \"GET\" | \"HEAD\" | \"OPTIONS\" | \"PATCH\" | \"POST\" | \"PUT\" | \"TRACE\")",
|
|
1476
1284
|
value: elem
|
|
1477
1285
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1486,15 +1294,15 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1486
1294
|
path: _path + ".operations",
|
|
1487
1295
|
expected: "Array<string>",
|
|
1488
1296
|
value: input.operations
|
|
1489
|
-
})) && input.operations.map((elem,
|
|
1490
|
-
path: _path + ".operations[" +
|
|
1297
|
+
})) && input.operations.map((elem, _index23) => "string" === typeof elem || _report(_exceptionable, {
|
|
1298
|
+
path: _path + ".operations[" + _index23 + "]",
|
|
1491
1299
|
expected: "string",
|
|
1492
1300
|
value: elem
|
|
1493
1301
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
1494
1302
|
path: _path + ".operations",
|
|
1495
1303
|
expected: "Array<string>",
|
|
1496
1304
|
value: input.operations
|
|
1497
|
-
})].every(flag => flag); const
|
|
1305
|
+
})].every(flag => flag); const _vo11 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
1498
1306
|
path: _path + ".name",
|
|
1499
1307
|
expected: "string",
|
|
1500
1308
|
value: input.name
|
|
@@ -1510,7 +1318,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1510
1318
|
path: _path + ".allowedByDefault",
|
|
1511
1319
|
expected: "(boolean | undefined)",
|
|
1512
1320
|
value: input.allowedByDefault
|
|
1513
|
-
})].every(flag => flag); const
|
|
1321
|
+
})].every(flag => flag); const _vo12 = (input, _path, _exceptionable = true) => [undefined === input.applicationName || "string" === typeof input.applicationName || _report(_exceptionable, {
|
|
1514
1322
|
path: _path + ".applicationName",
|
|
1515
1323
|
expected: "(string | undefined)",
|
|
1516
1324
|
value: input.applicationName
|
|
@@ -1522,12 +1330,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1522
1330
|
path: _path + ".description",
|
|
1523
1331
|
expected: "(string | undefined)",
|
|
1524
1332
|
value: input.description
|
|
1525
|
-
})].every(flag => flag); const
|
|
1333
|
+
})].every(flag => flag); const _vo13 = (input, _path, _exceptionable = true) => [undefined === input.roles || (Array.isArray(input.roles) || _report(_exceptionable, {
|
|
1526
1334
|
path: _path + ".roles",
|
|
1527
1335
|
expected: "(Array<string> | undefined)",
|
|
1528
1336
|
value: input.roles
|
|
1529
|
-
})) && input.roles.map((elem,
|
|
1530
|
-
path: _path + ".roles[" +
|
|
1337
|
+
})) && input.roles.map((elem, _index24) => "string" === typeof elem || _report(_exceptionable, {
|
|
1338
|
+
path: _path + ".roles[" + _index24 + "]",
|
|
1531
1339
|
expected: "string",
|
|
1532
1340
|
value: elem
|
|
1533
1341
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1546,7 +1354,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1546
1354
|
path: _path + ".applicationName",
|
|
1547
1355
|
expected: "(string | undefined)",
|
|
1548
1356
|
value: input.applicationName
|
|
1549
|
-
})].every(flag => flag); const
|
|
1357
|
+
})].every(flag => flag); const _vo14 = (input, _path, _exceptionable = true) => ["string" === typeof input.moduleName || _report(_exceptionable, {
|
|
1550
1358
|
path: _path + ".moduleName",
|
|
1551
1359
|
expected: "string",
|
|
1552
1360
|
value: input.moduleName
|
|
@@ -1554,11 +1362,11 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1554
1362
|
path: _path + ".customProps",
|
|
1555
1363
|
expected: "Record<string, any>",
|
|
1556
1364
|
value: input.customProps
|
|
1557
|
-
})) &&
|
|
1365
|
+
})) && _vo15(input.customProps, _path + ".customProps", true && _exceptionable) || _report(_exceptionable, {
|
|
1558
1366
|
path: _path + ".customProps",
|
|
1559
1367
|
expected: "Record<string, any>",
|
|
1560
1368
|
value: input.customProps
|
|
1561
|
-
})].every(flag => flag); const
|
|
1369
|
+
})].every(flag => flag); const _vo15 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
1562
1370
|
const value = input[key];
|
|
1563
1371
|
if (undefined === value)
|
|
1564
1372
|
return true;
|
|
@@ -1618,12 +1426,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1618
1426
|
scopedTo: "any"
|
|
1619
1427
|
},
|
|
1620
1428
|
};
|
|
1621
|
-
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.
|
|
1429
|
+
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.catalog || Array.isArray(input.catalog) && input.catalog.every(elem => "object" === typeof elem && null !== elem && _io3(elem))) && (undefined === input.applicationsAuthz || Array.isArray(input.applicationsAuthz) && input.applicationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io11(elem))) && (undefined === input.rolesAuthz || Array.isArray(input.rolesAuthz) && input.rolesAuthz.every(elem => "object" === typeof elem && null !== elem && _io12(elem))) && (undefined === input.operationsAuthz || Array.isArray(input.operationsAuthz) && input.operationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io13(elem))) && (undefined === input.modulesConfig || Array.isArray(input.modulesConfig) && input.modulesConfig.every(elem => "object" === typeof elem && null !== elem && _io14(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 && "string" === typeof input.displayName && ("service" === input.type || "app" === input.type || "utility" === input.type || "cloud-function" === input.type || "documentation" === input.type) && "string" === typeof input.baseUrl && ("object" === typeof input.service && null !== input.service && _io4(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) && _io5(input.commonPaths)) && (undefined === input.ui || "object" === typeof input.ui && null !== input.ui && _io6(input.ui)) && (undefined === input.cloudFunction || "object" === typeof input.cloudFunction && null !== input.cloudFunction && _io8(input.cloudFunction)) && (undefined === input.authorization || "object" === typeof input.authorization && null !== input.authorization && false === Array.isArray(input.authorization) && _io9(input.authorization)) && (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); const _io4 = input => "string" === typeof input.host && "number" === typeof input.port && (undefined === input.protocol || "string" === typeof input.protocol) && (undefined === input.includeBaseURL || "boolean" === typeof input.includeBaseURL); const _io5 = 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 _io6 = 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) && _io7(input.customProps)) && (undefined === input.shell || "boolean" === typeof input.shell) && (undefined === input.isPlatformCustomization || "boolean" === typeof input.isPlatformCustomization); const _io7 = input => Object.keys(input).every(key => {
|
|
1622
1430
|
const value = input[key];
|
|
1623
1431
|
if (undefined === value)
|
|
1624
1432
|
return true;
|
|
1625
1433
|
return true;
|
|
1626
|
-
}); const
|
|
1434
|
+
}); const _io8 = input => "aws" === input.provider && "boolean" === typeof input.requiresSignature; const _io9 = 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 && _io10(elem))); const _io10 = input => (undefined === input.methods || Array.isArray(input.methods) && input.methods.every(elem => "GET" === elem || "POST" === elem || "PUT" === elem || "DELETE" === elem || "PATCH" === elem || "OPTIONS" === elem || "HEAD" === elem || "CONNECT" === elem || "TRACE" === elem)) && "string" === typeof input.pattern && (Array.isArray(input.operations) && input.operations.every(elem => "string" === typeof elem)); const _io11 = 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); const _io12 = input => (undefined === input.applicationName || "string" === typeof input.applicationName) && "string" === typeof input.name && (undefined === input.description || "string" === typeof input.description); const _io13 = 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 _io14 = input => "string" === typeof input.moduleName && ("object" === typeof input.customProps && null !== input.customProps && false === Array.isArray(input.customProps) && _io15(input.customProps)); const _io15 = input => Object.keys(input).every(key => {
|
|
1627
1435
|
const value = input[key];
|
|
1628
1436
|
if (undefined === value)
|
|
1629
1437
|
return true;
|
|
@@ -1640,44 +1448,28 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1640
1448
|
path: _path + ".sharedLibraries",
|
|
1641
1449
|
expected: "(Array<CreateSharedLibraryDTO> | undefined)",
|
|
1642
1450
|
value: input.sharedLibraries
|
|
1643
|
-
})) && input.sharedLibraries.map((elem,
|
|
1644
|
-
path: _path + ".sharedLibraries[" +
|
|
1451
|
+
})) && input.sharedLibraries.map((elem, _index13) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1452
|
+
path: _path + ".sharedLibraries[" + _index13 + "]",
|
|
1645
1453
|
expected: "CreateSharedLibraryDTO",
|
|
1646
1454
|
value: elem
|
|
1647
|
-
})) && _vo2(elem, _path + ".sharedLibraries[" +
|
|
1648
|
-
path: _path + ".sharedLibraries[" +
|
|
1455
|
+
})) && _vo2(elem, _path + ".sharedLibraries[" + _index13 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1456
|
+
path: _path + ".sharedLibraries[" + _index13 + "]",
|
|
1649
1457
|
expected: "CreateSharedLibraryDTO",
|
|
1650
1458
|
value: elem
|
|
1651
1459
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
1652
1460
|
path: _path + ".sharedLibraries",
|
|
1653
1461
|
expected: "(Array<CreateSharedLibraryDTO> | undefined)",
|
|
1654
1462
|
value: input.sharedLibraries
|
|
1655
|
-
}), undefined === input.featureFlags || (Array.isArray(input.featureFlags) || _report(_exceptionable, {
|
|
1656
|
-
path: _path + ".featureFlags",
|
|
1657
|
-
expected: "(Array<BootstrapFeatureFlag> | undefined)",
|
|
1658
|
-
value: input.featureFlags
|
|
1659
|
-
})) && input.featureFlags.map((elem, _index17) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1660
|
-
path: _path + ".featureFlags[" + _index17 + "]",
|
|
1661
|
-
expected: "BootstrapFeatureFlag",
|
|
1662
|
-
value: elem
|
|
1663
|
-
})) && _vo3(elem, _path + ".featureFlags[" + _index17 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1664
|
-
path: _path + ".featureFlags[" + _index17 + "]",
|
|
1665
|
-
expected: "BootstrapFeatureFlag",
|
|
1666
|
-
value: elem
|
|
1667
|
-
})).every(flag => flag) || _report(_exceptionable, {
|
|
1668
|
-
path: _path + ".featureFlags",
|
|
1669
|
-
expected: "(Array<BootstrapFeatureFlag> | undefined)",
|
|
1670
|
-
value: input.featureFlags
|
|
1671
1463
|
}), undefined === input.catalog || (Array.isArray(input.catalog) || _report(_exceptionable, {
|
|
1672
1464
|
path: _path + ".catalog",
|
|
1673
1465
|
expected: "(Array<CreateOrUpdateModule> | undefined)",
|
|
1674
1466
|
value: input.catalog
|
|
1675
|
-
})) && input.catalog.map((elem,
|
|
1676
|
-
path: _path + ".catalog[" +
|
|
1467
|
+
})) && input.catalog.map((elem, _index14) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1468
|
+
path: _path + ".catalog[" + _index14 + "]",
|
|
1677
1469
|
expected: "CreateOrUpdateModule",
|
|
1678
1470
|
value: elem
|
|
1679
|
-
})) &&
|
|
1680
|
-
path: _path + ".catalog[" +
|
|
1471
|
+
})) && _vo3(elem, _path + ".catalog[" + _index14 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1472
|
+
path: _path + ".catalog[" + _index14 + "]",
|
|
1681
1473
|
expected: "CreateOrUpdateModule",
|
|
1682
1474
|
value: elem
|
|
1683
1475
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1688,12 +1480,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1688
1480
|
path: _path + ".applicationsAuthz",
|
|
1689
1481
|
expected: "(Array<CreateApplicationDTO> | undefined)",
|
|
1690
1482
|
value: input.applicationsAuthz
|
|
1691
|
-
})) && input.applicationsAuthz.map((elem,
|
|
1692
|
-
path: _path + ".applicationsAuthz[" +
|
|
1483
|
+
})) && input.applicationsAuthz.map((elem, _index15) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1484
|
+
path: _path + ".applicationsAuthz[" + _index15 + "]",
|
|
1693
1485
|
expected: "CreateApplicationDTO",
|
|
1694
1486
|
value: elem
|
|
1695
|
-
})) &&
|
|
1696
|
-
path: _path + ".applicationsAuthz[" +
|
|
1487
|
+
})) && _vo11(elem, _path + ".applicationsAuthz[" + _index15 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1488
|
+
path: _path + ".applicationsAuthz[" + _index15 + "]",
|
|
1697
1489
|
expected: "CreateApplicationDTO",
|
|
1698
1490
|
value: elem
|
|
1699
1491
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1704,12 +1496,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1704
1496
|
path: _path + ".rolesAuthz",
|
|
1705
1497
|
expected: "(Array<CreateRoleDTO> | undefined)",
|
|
1706
1498
|
value: input.rolesAuthz
|
|
1707
|
-
})) && input.rolesAuthz.map((elem,
|
|
1708
|
-
path: _path + ".rolesAuthz[" +
|
|
1499
|
+
})) && input.rolesAuthz.map((elem, _index16) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1500
|
+
path: _path + ".rolesAuthz[" + _index16 + "]",
|
|
1709
1501
|
expected: "CreateRoleDTO",
|
|
1710
1502
|
value: elem
|
|
1711
|
-
})) &&
|
|
1712
|
-
path: _path + ".rolesAuthz[" +
|
|
1503
|
+
})) && _vo12(elem, _path + ".rolesAuthz[" + _index16 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1504
|
+
path: _path + ".rolesAuthz[" + _index16 + "]",
|
|
1713
1505
|
expected: "CreateRoleDTO",
|
|
1714
1506
|
value: elem
|
|
1715
1507
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1720,12 +1512,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1720
1512
|
path: _path + ".operationsAuthz",
|
|
1721
1513
|
expected: "(Array<OperationAuthzBootstrap> | undefined)",
|
|
1722
1514
|
value: input.operationsAuthz
|
|
1723
|
-
})) && input.operationsAuthz.map((elem,
|
|
1724
|
-
path: _path + ".operationsAuthz[" +
|
|
1515
|
+
})) && input.operationsAuthz.map((elem, _index17) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1516
|
+
path: _path + ".operationsAuthz[" + _index17 + "]",
|
|
1725
1517
|
expected: "OperationAuthzBootstrap",
|
|
1726
1518
|
value: elem
|
|
1727
|
-
})) &&
|
|
1728
|
-
path: _path + ".operationsAuthz[" +
|
|
1519
|
+
})) && _vo13(elem, _path + ".operationsAuthz[" + _index17 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1520
|
+
path: _path + ".operationsAuthz[" + _index17 + "]",
|
|
1729
1521
|
expected: "OperationAuthzBootstrap",
|
|
1730
1522
|
value: elem
|
|
1731
1523
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1736,12 +1528,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1736
1528
|
path: _path + ".modulesConfig",
|
|
1737
1529
|
expected: "(Array<UpdateModuleUIConfigDTO> | undefined)",
|
|
1738
1530
|
value: input.modulesConfig
|
|
1739
|
-
})) && input.modulesConfig.map((elem,
|
|
1740
|
-
path: _path + ".modulesConfig[" +
|
|
1531
|
+
})) && input.modulesConfig.map((elem, _index18) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1532
|
+
path: _path + ".modulesConfig[" + _index18 + "]",
|
|
1741
1533
|
expected: "UpdateModuleUIConfigDTO",
|
|
1742
1534
|
value: elem
|
|
1743
|
-
})) &&
|
|
1744
|
-
path: _path + ".modulesConfig[" +
|
|
1535
|
+
})) && _vo14(elem, _path + ".modulesConfig[" + _index18 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1536
|
+
path: _path + ".modulesConfig[" + _index18 + "]",
|
|
1745
1537
|
expected: "UpdateModuleUIConfigDTO",
|
|
1746
1538
|
value: elem
|
|
1747
1539
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1768,54 +1560,6 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1768
1560
|
path: _path + ".name",
|
|
1769
1561
|
expected: "string",
|
|
1770
1562
|
value: input.name
|
|
1771
|
-
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
|
1772
|
-
path: _path + ".description",
|
|
1773
|
-
expected: "(string | undefined)",
|
|
1774
|
-
value: input.description
|
|
1775
|
-
}), undefined === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
1776
|
-
path: _path + ".enabled",
|
|
1777
|
-
expected: "(boolean | undefined)",
|
|
1778
|
-
value: input.enabled
|
|
1779
|
-
}), undefined === input.constraints || (Array.isArray(input.constraints) || _report(_exceptionable, {
|
|
1780
|
-
path: _path + ".constraints",
|
|
1781
|
-
expected: "(Array<__type> | undefined)",
|
|
1782
|
-
value: input.constraints
|
|
1783
|
-
})) && input.constraints.map((elem, _index23) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1784
|
-
path: _path + ".constraints[" + _index23 + "]",
|
|
1785
|
-
expected: "__type.o1",
|
|
1786
|
-
value: elem
|
|
1787
|
-
})) && _vo4(elem, _path + ".constraints[" + _index23 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1788
|
-
path: _path + ".constraints[" + _index23 + "]",
|
|
1789
|
-
expected: "__type.o1",
|
|
1790
|
-
value: elem
|
|
1791
|
-
})).every(flag => flag) || _report(_exceptionable, {
|
|
1792
|
-
path: _path + ".constraints",
|
|
1793
|
-
expected: "(Array<__type> | undefined)",
|
|
1794
|
-
value: input.constraints
|
|
1795
|
-
})].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.contextName || _report(_exceptionable, {
|
|
1796
|
-
path: _path + ".contextName",
|
|
1797
|
-
expected: "string",
|
|
1798
|
-
value: input.contextName
|
|
1799
|
-
}), "string" === typeof input.operator || _report(_exceptionable, {
|
|
1800
|
-
path: _path + ".operator",
|
|
1801
|
-
expected: "string",
|
|
1802
|
-
value: input.operator
|
|
1803
|
-
}), undefined === input.values || (Array.isArray(input.values) || _report(_exceptionable, {
|
|
1804
|
-
path: _path + ".values",
|
|
1805
|
-
expected: "(Array<string> | undefined)",
|
|
1806
|
-
value: input.values
|
|
1807
|
-
})) && input.values.map((elem, _index24) => "string" === typeof elem || _report(_exceptionable, {
|
|
1808
|
-
path: _path + ".values[" + _index24 + "]",
|
|
1809
|
-
expected: "string",
|
|
1810
|
-
value: elem
|
|
1811
|
-
})).every(flag => flag) || _report(_exceptionable, {
|
|
1812
|
-
path: _path + ".values",
|
|
1813
|
-
expected: "(Array<string> | undefined)",
|
|
1814
|
-
value: input.values
|
|
1815
|
-
})].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
1816
|
-
path: _path + ".name",
|
|
1817
|
-
expected: "string",
|
|
1818
|
-
value: input.name
|
|
1819
1563
|
}), "string" === typeof input.displayName || _report(_exceptionable, {
|
|
1820
1564
|
path: _path + ".displayName",
|
|
1821
1565
|
expected: "string",
|
|
@@ -1832,7 +1576,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1832
1576
|
path: _path + ".service",
|
|
1833
1577
|
expected: "ServiceConfig",
|
|
1834
1578
|
value: input.service
|
|
1835
|
-
})) &&
|
|
1579
|
+
})) && _vo4(input.service, _path + ".service", true && _exceptionable) || _report(_exceptionable, {
|
|
1836
1580
|
path: _path + ".service",
|
|
1837
1581
|
expected: "ServiceConfig",
|
|
1838
1582
|
value: input.service
|
|
@@ -1840,8 +1584,8 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1840
1584
|
path: _path + ".dependsOn",
|
|
1841
1585
|
expected: "Array<string>",
|
|
1842
1586
|
value: input.dependsOn
|
|
1843
|
-
})) && input.dependsOn.map((elem,
|
|
1844
|
-
path: _path + ".dependsOn[" +
|
|
1587
|
+
})) && input.dependsOn.map((elem, _index19) => "string" === typeof elem || _report(_exceptionable, {
|
|
1588
|
+
path: _path + ".dependsOn[" + _index19 + "]",
|
|
1845
1589
|
expected: "string",
|
|
1846
1590
|
value: elem
|
|
1847
1591
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1852,7 +1596,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1852
1596
|
path: _path + ".commonPaths",
|
|
1853
1597
|
expected: "(CommonPathsMetadata | undefined)",
|
|
1854
1598
|
value: input.commonPaths
|
|
1855
|
-
})) &&
|
|
1599
|
+
})) && _vo5(input.commonPaths, _path + ".commonPaths", true && _exceptionable) || _report(_exceptionable, {
|
|
1856
1600
|
path: _path + ".commonPaths",
|
|
1857
1601
|
expected: "(CommonPathsMetadata | undefined)",
|
|
1858
1602
|
value: input.commonPaths
|
|
@@ -1860,7 +1604,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1860
1604
|
path: _path + ".ui",
|
|
1861
1605
|
expected: "(UIConfig | undefined)",
|
|
1862
1606
|
value: input.ui
|
|
1863
|
-
})) &&
|
|
1607
|
+
})) && _vo6(input.ui, _path + ".ui", true && _exceptionable) || _report(_exceptionable, {
|
|
1864
1608
|
path: _path + ".ui",
|
|
1865
1609
|
expected: "(UIConfig | undefined)",
|
|
1866
1610
|
value: input.ui
|
|
@@ -1868,7 +1612,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1868
1612
|
path: _path + ".cloudFunction",
|
|
1869
1613
|
expected: "(CloudFunctionConfig | undefined)",
|
|
1870
1614
|
value: input.cloudFunction
|
|
1871
|
-
})) &&
|
|
1615
|
+
})) && _vo8(input.cloudFunction, _path + ".cloudFunction", true && _exceptionable) || _report(_exceptionable, {
|
|
1872
1616
|
path: _path + ".cloudFunction",
|
|
1873
1617
|
expected: "(CloudFunctionConfig | undefined)",
|
|
1874
1618
|
value: input.cloudFunction
|
|
@@ -1876,7 +1620,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1876
1620
|
path: _path + ".authorization",
|
|
1877
1621
|
expected: "(AuthorizationMetadata | undefined)",
|
|
1878
1622
|
value: input.authorization
|
|
1879
|
-
})) &&
|
|
1623
|
+
})) && _vo9(input.authorization, _path + ".authorization", true && _exceptionable) || _report(_exceptionable, {
|
|
1880
1624
|
path: _path + ".authorization",
|
|
1881
1625
|
expected: "(AuthorizationMetadata | undefined)",
|
|
1882
1626
|
value: input.authorization
|
|
@@ -1896,7 +1640,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1896
1640
|
path: _path + ".id",
|
|
1897
1641
|
expected: "(number | undefined)",
|
|
1898
1642
|
value: input.id
|
|
1899
|
-
})].every(flag => flag); const
|
|
1643
|
+
})].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || _report(_exceptionable, {
|
|
1900
1644
|
path: _path + ".host",
|
|
1901
1645
|
expected: "string",
|
|
1902
1646
|
value: input.host
|
|
@@ -1912,7 +1656,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1912
1656
|
path: _path + ".includeBaseURL",
|
|
1913
1657
|
expected: "(boolean | undefined)",
|
|
1914
1658
|
value: input.includeBaseURL
|
|
1915
|
-
})].every(flag => flag); const
|
|
1659
|
+
})].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => [undefined === input.apiDocs || "string" === typeof input.apiDocs || _report(_exceptionable, {
|
|
1916
1660
|
path: _path + ".apiDocs",
|
|
1917
1661
|
expected: "(string | undefined)",
|
|
1918
1662
|
value: input.apiDocs
|
|
@@ -1928,7 +1672,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1928
1672
|
path: _path + ".changelog",
|
|
1929
1673
|
expected: "(string | undefined)",
|
|
1930
1674
|
value: input.changelog
|
|
1931
|
-
})].every(flag => flag); const
|
|
1675
|
+
})].every(flag => flag); const _vo6 = (input, _path, _exceptionable = true) => ["string" === typeof input.route || _report(_exceptionable, {
|
|
1932
1676
|
path: _path + ".route",
|
|
1933
1677
|
expected: "string",
|
|
1934
1678
|
value: input.route
|
|
@@ -1944,7 +1688,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1944
1688
|
path: _path + ".customProps",
|
|
1945
1689
|
expected: "ModuleProps",
|
|
1946
1690
|
value: input.customProps
|
|
1947
|
-
})) &&
|
|
1691
|
+
})) && _vo7(input.customProps, _path + ".customProps", true && _exceptionable) || _report(_exceptionable, {
|
|
1948
1692
|
path: _path + ".customProps",
|
|
1949
1693
|
expected: "ModuleProps",
|
|
1950
1694
|
value: input.customProps
|
|
@@ -1956,12 +1700,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1956
1700
|
path: _path + ".isPlatformCustomization",
|
|
1957
1701
|
expected: "(boolean | undefined)",
|
|
1958
1702
|
value: input.isPlatformCustomization
|
|
1959
|
-
})].every(flag => flag); const
|
|
1703
|
+
})].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
1960
1704
|
const value = input[key];
|
|
1961
1705
|
if (undefined === value)
|
|
1962
1706
|
return true;
|
|
1963
1707
|
return true;
|
|
1964
|
-
}).every(flag => flag)].every(flag => flag); const
|
|
1708
|
+
}).every(flag => flag)].every(flag => flag); const _vo8 = (input, _path, _exceptionable = true) => ["aws" === input.provider || _report(_exceptionable, {
|
|
1965
1709
|
path: _path + ".provider",
|
|
1966
1710
|
expected: "\"aws\"",
|
|
1967
1711
|
value: input.provider
|
|
@@ -1969,12 +1713,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1969
1713
|
path: _path + ".requiresSignature",
|
|
1970
1714
|
expected: "boolean",
|
|
1971
1715
|
value: input.requiresSignature
|
|
1972
|
-
})].every(flag => flag); const
|
|
1716
|
+
})].every(flag => flag); const _vo9 = (input, _path, _exceptionable = true) => [undefined === input.operations || (Array.isArray(input.operations) || _report(_exceptionable, {
|
|
1973
1717
|
path: _path + ".operations",
|
|
1974
1718
|
expected: "(Array<string> | undefined)",
|
|
1975
1719
|
value: input.operations
|
|
1976
|
-
})) && input.operations.map((elem,
|
|
1977
|
-
path: _path + ".operations[" +
|
|
1720
|
+
})) && input.operations.map((elem, _index20) => "string" === typeof elem || _report(_exceptionable, {
|
|
1721
|
+
path: _path + ".operations[" + _index20 + "]",
|
|
1978
1722
|
expected: "string",
|
|
1979
1723
|
value: elem
|
|
1980
1724
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1985,24 +1729,24 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1985
1729
|
path: _path + ".routes",
|
|
1986
1730
|
expected: "(Array<RouteAuthorization> | undefined)",
|
|
1987
1731
|
value: input.routes
|
|
1988
|
-
})) && input.routes.map((elem,
|
|
1989
|
-
path: _path + ".routes[" +
|
|
1732
|
+
})) && input.routes.map((elem, _index21) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1733
|
+
path: _path + ".routes[" + _index21 + "]",
|
|
1990
1734
|
expected: "RouteAuthorization",
|
|
1991
1735
|
value: elem
|
|
1992
|
-
})) &&
|
|
1993
|
-
path: _path + ".routes[" +
|
|
1736
|
+
})) && _vo10(elem, _path + ".routes[" + _index21 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1737
|
+
path: _path + ".routes[" + _index21 + "]",
|
|
1994
1738
|
expected: "RouteAuthorization",
|
|
1995
1739
|
value: elem
|
|
1996
1740
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
1997
1741
|
path: _path + ".routes",
|
|
1998
1742
|
expected: "(Array<RouteAuthorization> | undefined)",
|
|
1999
1743
|
value: input.routes
|
|
2000
|
-
})].every(flag => flag); const
|
|
1744
|
+
})].every(flag => flag); const _vo10 = (input, _path, _exceptionable = true) => [undefined === input.methods || (Array.isArray(input.methods) || _report(_exceptionable, {
|
|
2001
1745
|
path: _path + ".methods",
|
|
2002
1746
|
expected: "(Array<HttpMethod> | undefined)",
|
|
2003
1747
|
value: input.methods
|
|
2004
|
-
})) && input.methods.map((elem,
|
|
2005
|
-
path: _path + ".methods[" +
|
|
1748
|
+
})) && input.methods.map((elem, _index22) => "GET" === elem || "POST" === elem || "PUT" === elem || "DELETE" === elem || "PATCH" === elem || "OPTIONS" === elem || "HEAD" === elem || "CONNECT" === elem || "TRACE" === elem || _report(_exceptionable, {
|
|
1749
|
+
path: _path + ".methods[" + _index22 + "]",
|
|
2006
1750
|
expected: "(\"CONNECT\" | \"DELETE\" | \"GET\" | \"HEAD\" | \"OPTIONS\" | \"PATCH\" | \"POST\" | \"PUT\" | \"TRACE\")",
|
|
2007
1751
|
value: elem
|
|
2008
1752
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2017,15 +1761,15 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2017
1761
|
path: _path + ".operations",
|
|
2018
1762
|
expected: "Array<string>",
|
|
2019
1763
|
value: input.operations
|
|
2020
|
-
})) && input.operations.map((elem,
|
|
2021
|
-
path: _path + ".operations[" +
|
|
1764
|
+
})) && input.operations.map((elem, _index23) => "string" === typeof elem || _report(_exceptionable, {
|
|
1765
|
+
path: _path + ".operations[" + _index23 + "]",
|
|
2022
1766
|
expected: "string",
|
|
2023
1767
|
value: elem
|
|
2024
1768
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
2025
1769
|
path: _path + ".operations",
|
|
2026
1770
|
expected: "Array<string>",
|
|
2027
1771
|
value: input.operations
|
|
2028
|
-
})].every(flag => flag); const
|
|
1772
|
+
})].every(flag => flag); const _vo11 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
2029
1773
|
path: _path + ".name",
|
|
2030
1774
|
expected: "string",
|
|
2031
1775
|
value: input.name
|
|
@@ -2041,7 +1785,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2041
1785
|
path: _path + ".allowedByDefault",
|
|
2042
1786
|
expected: "(boolean | undefined)",
|
|
2043
1787
|
value: input.allowedByDefault
|
|
2044
|
-
})].every(flag => flag); const
|
|
1788
|
+
})].every(flag => flag); const _vo12 = (input, _path, _exceptionable = true) => [undefined === input.applicationName || "string" === typeof input.applicationName || _report(_exceptionable, {
|
|
2045
1789
|
path: _path + ".applicationName",
|
|
2046
1790
|
expected: "(string | undefined)",
|
|
2047
1791
|
value: input.applicationName
|
|
@@ -2053,12 +1797,12 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2053
1797
|
path: _path + ".description",
|
|
2054
1798
|
expected: "(string | undefined)",
|
|
2055
1799
|
value: input.description
|
|
2056
|
-
})].every(flag => flag); const
|
|
1800
|
+
})].every(flag => flag); const _vo13 = (input, _path, _exceptionable = true) => [undefined === input.roles || (Array.isArray(input.roles) || _report(_exceptionable, {
|
|
2057
1801
|
path: _path + ".roles",
|
|
2058
1802
|
expected: "(Array<string> | undefined)",
|
|
2059
1803
|
value: input.roles
|
|
2060
|
-
})) && input.roles.map((elem,
|
|
2061
|
-
path: _path + ".roles[" +
|
|
1804
|
+
})) && input.roles.map((elem, _index24) => "string" === typeof elem || _report(_exceptionable, {
|
|
1805
|
+
path: _path + ".roles[" + _index24 + "]",
|
|
2062
1806
|
expected: "string",
|
|
2063
1807
|
value: elem
|
|
2064
1808
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -2077,7 +1821,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2077
1821
|
path: _path + ".applicationName",
|
|
2078
1822
|
expected: "(string | undefined)",
|
|
2079
1823
|
value: input.applicationName
|
|
2080
|
-
})].every(flag => flag); const
|
|
1824
|
+
})].every(flag => flag); const _vo14 = (input, _path, _exceptionable = true) => ["string" === typeof input.moduleName || _report(_exceptionable, {
|
|
2081
1825
|
path: _path + ".moduleName",
|
|
2082
1826
|
expected: "string",
|
|
2083
1827
|
value: input.moduleName
|
|
@@ -2085,11 +1829,11 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2085
1829
|
path: _path + ".customProps",
|
|
2086
1830
|
expected: "Record<string, any>",
|
|
2087
1831
|
value: input.customProps
|
|
2088
|
-
})) &&
|
|
1832
|
+
})) && _vo15(input.customProps, _path + ".customProps", true && _exceptionable) || _report(_exceptionable, {
|
|
2089
1833
|
path: _path + ".customProps",
|
|
2090
1834
|
expected: "Record<string, any>",
|
|
2091
1835
|
value: input.customProps
|
|
2092
|
-
})].every(flag => flag); const
|
|
1836
|
+
})].every(flag => flag); const _vo15 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
2093
1837
|
const value = input[key];
|
|
2094
1838
|
if (undefined === value)
|
|
2095
1839
|
return true;
|