@bluealba/pae-bootstrap-lib 3.2.0-feature-replace-eslint-prettier-b-299 → 3.2.1-develop-372
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/bootstrap/apply-service-local.d.ts +1 -1
- package/dist/src/bootstrap/apply-service-local.d.ts.map +1 -1
- package/dist/src/bootstrap/apply-service-local.js +17 -18
- package/dist/src/bootstrap/apply-service-local.js.map +1 -1
- package/dist/src/bootstrap/apply-service-local.test.js +8 -12
- package/dist/src/bootstrap/apply-service-local.test.js.map +1 -1
- package/dist/src/bootstrap/bootstrap-platform.d.ts +1 -1
- package/dist/src/bootstrap/bootstrap-platform.d.ts.map +1 -1
- package/dist/src/bootstrap/bootstrap-platform.js +30 -20
- package/dist/src/bootstrap/bootstrap-platform.js.map +1 -1
- package/dist/src/bootstrap/domain/bootstrap-sync-metadata.interface.d.ts +2 -2
- package/dist/src/bootstrap/domain/bootstrap-sync-metadata.interface.d.ts.map +1 -1
- package/dist/src/bootstrap/domain/domain-validation.test.js +29 -29
- package/dist/src/bootstrap/domain/domain-validation.test.js.map +1 -1
- package/dist/src/bootstrap/entity-synchronizer.d.ts.map +1 -1
- package/dist/src/bootstrap/entity-synchronizer.js +3 -3
- package/dist/src/bootstrap/entity-synchronizer.js.map +1 -1
- package/dist/src/bootstrap/entity-synchronizer.test.js +20 -20
- package/dist/src/bootstrap/entity-synchronizer.test.js.map +1 -1
- package/dist/src/bootstrap/read-bootstrap-applications.d.ts +2 -2
- package/dist/src/bootstrap/read-bootstrap-applications.d.ts.map +1 -1
- package/dist/src/bootstrap/read-bootstrap-applications.js +42 -51
- package/dist/src/bootstrap/read-bootstrap-applications.js.map +1 -1
- package/dist/src/expression-language/expression-engine.d.ts.map +1 -1
- package/dist/src/expression-language/expression-engine.js +2 -2
- package/dist/src/expression-language/expression-engine.js.map +1 -1
- package/dist/src/expression-language/expression-engine.test.js +2 -4
- package/dist/src/expression-language/expression-engine.test.js.map +1 -1
- package/dist/src/expression-language/index.d.ts +1 -1
- package/dist/src/expression-language/index.d.ts.map +1 -1
- package/dist/src/expression-language/index.js +2 -2
- package/dist/src/expression-language/index.js.map +1 -1
- package/dist/src/expression-language/resolve-deep.js +1 -1
- package/dist/src/expression-language/resolve-deep.js.map +1 -1
- package/dist/src/expression-language/resolvers/index.d.ts +2 -2
- package/dist/src/expression-language/resolvers/index.d.ts.map +1 -1
- package/dist/src/expression-language/resolvers/index.js +1 -1
- package/dist/src/expression-language/resolvers/index.js.map +1 -1
- package/dist/src/index.d.ts +2 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +2 -2
- package/dist/src/index.js.map +1 -1
- package/dist/src/utils/compare-lists-by.d.ts.map +1 -1
- package/dist/src/utils/compare-lists-by.js +1 -1
- package/dist/src/utils/compare-lists-by.js.map +1 -1
- package/dist/src/utils/format-diff.d.ts.map +1 -1
- package/dist/src/utils/format-diff.js +9 -4
- package/dist/src/utils/format-diff.js.map +1 -1
- package/dist/src/utils/format-diff.test.js +13 -13
- package/dist/src/utils/get-common-keys.d.ts.map +1 -1
- package/dist/src/utils/get-common-keys.js.map +1 -1
- package/dist/src/utils/io.d.ts.map +1 -1
- package/dist/src/utils/io.js.map +1 -1
- package/package.json +2 -4
|
@@ -43,10 +43,10 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
43
43
|
it('should validate a correct object', () => {
|
|
44
44
|
const validObject = {
|
|
45
45
|
syncConfig: {
|
|
46
|
-
scopedTo: 'blah'
|
|
46
|
+
scopedTo: 'blah'
|
|
47
47
|
},
|
|
48
48
|
};
|
|
49
|
-
const result = (() => { const _io0 = input => "object" === typeof input.syncConfig && null !== input.syncConfig && _io1(input.syncConfig) && (undefined === input.sharedLibraries || Array.isArray(input.sharedLibraries) && input.sharedLibraries.every(elem => "object" === typeof elem && null !== elem && _io2(elem))) && (undefined === input.featureFlags || Array.isArray(input.featureFlags) && input.featureFlags.every(elem => "object" === typeof elem && null !== elem && _io3(elem))) && (undefined === input.catalog || Array.isArray(input.catalog) && input.catalog.every(elem => "object" === typeof elem && null !== elem && _io8(elem))) && (undefined === input.applicationsAuthz || Array.isArray(input.applicationsAuthz) && input.applicationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io19(elem))) && (undefined === input.rolesAuthz || Array.isArray(input.rolesAuthz) && input.rolesAuthz.every(elem => "object" === typeof elem && null !== elem && _io20(elem))) && (undefined === input.operationsAuthz || Array.isArray(input.operationsAuthz) && input.operationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io21(elem))) && (undefined === input.modulesConfig || Array.isArray(input.modulesConfig) && input.modulesConfig.every(elem => "object" === typeof elem && null !== elem && _io22(elem))); const _io1 = input => "string" === typeof input.scopedTo; const _io2 = input => "string" === typeof input.name && "string" === typeof input.url && (undefined === input.description || "string" === typeof input.description); const _io3 = input => "string" === typeof input.name && (undefined === input.description || "string" === typeof input.description) && (undefined === input.visible || "boolean" === typeof input.visible) && true && (undefined === input.valueRules || Array.isArray(input.valueRules) && input.valueRules.every(elem => "object" === typeof elem && null !== elem && _io4(elem))) && (undefined === input.applicationName || "string" === typeof input.applicationName); const _io4 = input => (undefined === input.name || "string" === typeof input.name) && ("object" === typeof input.condition && null !== input.condition && _iu0(input.condition)) && true && (undefined === input.rollout || "object" === typeof input.rollout && null !== input.rollout && _io7(input.rollout)); const _io5 = input => "string" === typeof input.attribute && ("eq" === input.operator || "neq" === input.operator || "in" === input.operator || "nin" === input.operator) && (null !== input.value && undefined !== input.value && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem))); const _io6 = input => ("AND" === input.operator || "OR" === input.operator) && (Array.isArray(input.rules) && input.rules.every(elem => "object" === typeof elem && null !== elem && _iu0(elem))); const _io7 = input => "number" === typeof input.percentage && "string" === typeof input.attribute; const _io8 = input => "string" === typeof input.name && "string" === typeof input.displayName && ("service" === input.type || "app" === input.type || "tool" === input.type || "utility" === input.type || "cloud-function" === input.type || "documentation" === input.type) && "string" === typeof input.baseUrl && ("object" === typeof input.service && null !== input.service && _io9(input.service)) && (Array.isArray(input.dependsOn) && input.dependsOn.every(elem => "string" === typeof elem)) && (undefined === input.commonPaths || "object" === typeof input.commonPaths && null !== input.commonPaths && false === Array.isArray(input.commonPaths) && _io10(input.commonPaths)) && (undefined === input.ui || "object" === typeof input.ui && null !== input.ui && _io11(input.ui)) && (undefined === input.cloudFunction || "object" === typeof input.cloudFunction && null !== input.cloudFunction && _io15(input.cloudFunction)) && (undefined === input.authorization || "object" === typeof input.authorization && null !== input.authorization && false === Array.isArray(input.authorization) && _io16(input.authorization)) && (undefined === input.application || "string" === typeof input.application) && (undefined === input.version || "string" === typeof input.version) && (undefined === input.isPublic || "boolean" === typeof input.isPublic) && (undefined === input.id || "number" === typeof input.id) && (undefined === input.serviceLocal || "object" === typeof input.serviceLocal && null !== input.serviceLocal && false === Array.isArray(input.serviceLocal) && _io18(input.serviceLocal)); const _io9 = input => "string" === typeof input.host && "number" === typeof input.port && (undefined === input.protocol || "string" === typeof input.protocol) && (undefined === input.includeBaseURL || "boolean" === typeof input.includeBaseURL); const _io10 = input => (undefined === input.apiDocs || "string" === typeof input.apiDocs) && (undefined === input.version || "string" === typeof input.version) && (undefined === input.health || "string" === typeof input.health) && (undefined === input.changelog || "string" === typeof input.changelog); const _io11 = input => "string" === typeof input.route && (null === input.mountAtSelector || undefined === input.mountAtSelector || "string" === typeof input.mountAtSelector) && "string" === typeof input.bundleFile && ("object" === typeof input.customProps && null !== input.customProps && false === Array.isArray(input.customProps) && _io12(input.customProps)) && (undefined === input.shell || "boolean" === typeof input.shell) && (undefined === input.isPlatformCustomization || "boolean" === typeof input.isPlatformCustomization); const _io12 = input => (undefined === input.tenantOverrides || "object" === typeof input.tenantOverrides && null !== input.tenantOverrides && false === Array.isArray(input.tenantOverrides) && _io13(input.tenantOverrides)) && Object.keys(input).every(key => {
|
|
49
|
+
const result = (() => { const _io0 = input => "object" === typeof input.syncConfig && null !== input.syncConfig && _io1(input.syncConfig) && (undefined === input.sharedLibraries || Array.isArray(input.sharedLibraries) && input.sharedLibraries.every(elem => "object" === typeof elem && null !== elem && _io2(elem))) && (undefined === input.featureFlags || Array.isArray(input.featureFlags) && input.featureFlags.every(elem => "object" === typeof elem && null !== elem && _io3(elem))) && (undefined === input.catalog || Array.isArray(input.catalog) && input.catalog.every(elem => "object" === typeof elem && null !== elem && _io8(elem))) && (undefined === input.applicationsAuthz || Array.isArray(input.applicationsAuthz) && input.applicationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io19(elem))) && (undefined === input.rolesAuthz || Array.isArray(input.rolesAuthz) && input.rolesAuthz.every(elem => "object" === typeof elem && null !== elem && _io20(elem))) && (undefined === input.operationsAuthz || Array.isArray(input.operationsAuthz) && input.operationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io21(elem))) && (undefined === input.modulesConfig || Array.isArray(input.modulesConfig) && input.modulesConfig.every(elem => "object" === typeof elem && null !== elem && _io22(elem))); const _io1 = input => "string" === typeof input.scopedTo; const _io2 = input => "string" === typeof input.name && "string" === typeof input.url && (undefined === input.description || "string" === typeof input.description); const _io3 = input => "string" === typeof input.name && (undefined === input.description || "string" === typeof input.description) && (undefined === input.visible || "boolean" === typeof input.visible) && true && (undefined === input.valueRules || Array.isArray(input.valueRules) && input.valueRules.every(elem => "object" === typeof elem && null !== elem && _io4(elem))) && (undefined === input.applicationName || "string" === typeof input.applicationName); const _io4 = input => (undefined === input.name || "string" === typeof input.name) && ("object" === typeof input.condition && null !== input.condition && _iu0(input.condition)) && true && (undefined === input.rollout || "object" === typeof input.rollout && null !== input.rollout && _io7(input.rollout)); const _io5 = input => "string" === typeof input.attribute && ("eq" === input.operator || "neq" === input.operator || "in" === input.operator || "nin" === input.operator) && (null !== input.value && undefined !== input.value && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem))); const _io6 = input => ("AND" === input.operator || "OR" === input.operator) && (Array.isArray(input.rules) && input.rules.every(elem => "object" === typeof elem && null !== elem && _iu0(elem))); const _io7 = input => "number" === typeof input.percentage && "string" === typeof input.attribute; const _io8 = input => "string" === typeof input.name && "string" === typeof input.displayName && ("service" === input.type || "app" === input.type || "tool" === input.type || "utility" === input.type || "cloud-function" === input.type || "documentation" === input.type || "fragment" === input.type) && "string" === typeof input.baseUrl && ("object" === typeof input.service && null !== input.service && _io9(input.service)) && (Array.isArray(input.dependsOn) && input.dependsOn.every(elem => "string" === typeof elem)) && (undefined === input.commonPaths || "object" === typeof input.commonPaths && null !== input.commonPaths && false === Array.isArray(input.commonPaths) && _io10(input.commonPaths)) && (undefined === input.ui || "object" === typeof input.ui && null !== input.ui && _io11(input.ui)) && (undefined === input.cloudFunction || "object" === typeof input.cloudFunction && null !== input.cloudFunction && _io15(input.cloudFunction)) && (undefined === input.authorization || "object" === typeof input.authorization && null !== input.authorization && false === Array.isArray(input.authorization) && _io16(input.authorization)) && (undefined === input.application || "string" === typeof input.application) && (undefined === input.version || "string" === typeof input.version) && (undefined === input.isPublic || "boolean" === typeof input.isPublic) && (undefined === input.id || "number" === typeof input.id) && (undefined === input.serviceLocal || "object" === typeof input.serviceLocal && null !== input.serviceLocal && false === Array.isArray(input.serviceLocal) && _io18(input.serviceLocal)); const _io9 = input => "string" === typeof input.host && "number" === typeof input.port && (undefined === input.protocol || "string" === typeof input.protocol) && (undefined === input.includeBaseURL || "boolean" === typeof input.includeBaseURL); const _io10 = input => (undefined === input.apiDocs || "string" === typeof input.apiDocs) && (undefined === input.version || "string" === typeof input.version) && (undefined === input.health || "string" === typeof input.health) && (undefined === input.changelog || "string" === typeof input.changelog); const _io11 = input => "string" === typeof input.route && (null === input.mountAtSelector || undefined === input.mountAtSelector || "string" === typeof input.mountAtSelector) && "string" === typeof input.bundleFile && ("object" === typeof input.customProps && null !== input.customProps && false === Array.isArray(input.customProps) && _io12(input.customProps)) && (undefined === input.shell || "boolean" === typeof input.shell) && (undefined === input.isPlatformCustomization || "boolean" === typeof input.isPlatformCustomization); const _io12 = input => (undefined === input.tenantOverrides || "object" === typeof input.tenantOverrides && null !== input.tenantOverrides && false === Array.isArray(input.tenantOverrides) && _io13(input.tenantOverrides)) && Object.keys(input).every(key => {
|
|
50
50
|
if (["tenantOverrides"].some(prop => key === prop))
|
|
51
51
|
return true;
|
|
52
52
|
const value = input[key];
|
|
@@ -322,9 +322,9 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
322
322
|
path: _path + ".displayName",
|
|
323
323
|
expected: "string",
|
|
324
324
|
value: input.displayName
|
|
325
|
-
}), "service" === input.type || "app" === input.type || "tool" === input.type || "utility" === input.type || "cloud-function" === input.type || "documentation" === input.type || _report(_exceptionable, {
|
|
325
|
+
}), "service" === input.type || "app" === input.type || "tool" === input.type || "utility" === input.type || "cloud-function" === input.type || "documentation" === input.type || "fragment" === input.type || _report(_exceptionable, {
|
|
326
326
|
path: _path + ".type",
|
|
327
|
-
expected: "(\"app\" | \"cloud-function\" | \"documentation\" | \"service\" | \"tool\" | \"utility\")",
|
|
327
|
+
expected: "(\"app\" | \"cloud-function\" | \"documentation\" | \"fragment\" | \"service\" | \"tool\" | \"utility\")",
|
|
328
328
|
value: input.type
|
|
329
329
|
}), "string" === typeof input.baseUrl || _report(_exceptionable, {
|
|
330
330
|
path: _path + ".baseUrl",
|
|
@@ -700,7 +700,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
700
700
|
const invalidObject = {
|
|
701
701
|
invalidField: 'invalidValue',
|
|
702
702
|
};
|
|
703
|
-
const result = (() => { const _io0 = input => "object" === typeof input.syncConfig && null !== input.syncConfig && _io1(input.syncConfig) && (undefined === input.sharedLibraries || Array.isArray(input.sharedLibraries) && input.sharedLibraries.every(elem => "object" === typeof elem && null !== elem && _io2(elem))) && (undefined === input.featureFlags || Array.isArray(input.featureFlags) && input.featureFlags.every(elem => "object" === typeof elem && null !== elem && _io3(elem))) && (undefined === input.catalog || Array.isArray(input.catalog) && input.catalog.every(elem => "object" === typeof elem && null !== elem && _io8(elem))) && (undefined === input.applicationsAuthz || Array.isArray(input.applicationsAuthz) && input.applicationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io19(elem))) && (undefined === input.rolesAuthz || Array.isArray(input.rolesAuthz) && input.rolesAuthz.every(elem => "object" === typeof elem && null !== elem && _io20(elem))) && (undefined === input.operationsAuthz || Array.isArray(input.operationsAuthz) && input.operationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io21(elem))) && (undefined === input.modulesConfig || Array.isArray(input.modulesConfig) && input.modulesConfig.every(elem => "object" === typeof elem && null !== elem && _io22(elem))); const _io1 = input => "string" === typeof input.scopedTo; const _io2 = input => "string" === typeof input.name && "string" === typeof input.url && (undefined === input.description || "string" === typeof input.description); const _io3 = input => "string" === typeof input.name && (undefined === input.description || "string" === typeof input.description) && (undefined === input.visible || "boolean" === typeof input.visible) && true && (undefined === input.valueRules || Array.isArray(input.valueRules) && input.valueRules.every(elem => "object" === typeof elem && null !== elem && _io4(elem))) && (undefined === input.applicationName || "string" === typeof input.applicationName); const _io4 = input => (undefined === input.name || "string" === typeof input.name) && ("object" === typeof input.condition && null !== input.condition && _iu0(input.condition)) && true && (undefined === input.rollout || "object" === typeof input.rollout && null !== input.rollout && _io7(input.rollout)); const _io5 = input => "string" === typeof input.attribute && ("eq" === input.operator || "neq" === input.operator || "in" === input.operator || "nin" === input.operator) && (null !== input.value && undefined !== input.value && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem))); const _io6 = input => ("AND" === input.operator || "OR" === input.operator) && (Array.isArray(input.rules) && input.rules.every(elem => "object" === typeof elem && null !== elem && _iu0(elem))); const _io7 = input => "number" === typeof input.percentage && "string" === typeof input.attribute; const _io8 = input => "string" === typeof input.name && "string" === typeof input.displayName && ("service" === input.type || "app" === input.type || "tool" === input.type || "utility" === input.type || "cloud-function" === input.type || "documentation" === input.type) && "string" === typeof input.baseUrl && ("object" === typeof input.service && null !== input.service && _io9(input.service)) && (Array.isArray(input.dependsOn) && input.dependsOn.every(elem => "string" === typeof elem)) && (undefined === input.commonPaths || "object" === typeof input.commonPaths && null !== input.commonPaths && false === Array.isArray(input.commonPaths) && _io10(input.commonPaths)) && (undefined === input.ui || "object" === typeof input.ui && null !== input.ui && _io11(input.ui)) && (undefined === input.cloudFunction || "object" === typeof input.cloudFunction && null !== input.cloudFunction && _io15(input.cloudFunction)) && (undefined === input.authorization || "object" === typeof input.authorization && null !== input.authorization && false === Array.isArray(input.authorization) && _io16(input.authorization)) && (undefined === input.application || "string" === typeof input.application) && (undefined === input.version || "string" === typeof input.version) && (undefined === input.isPublic || "boolean" === typeof input.isPublic) && (undefined === input.id || "number" === typeof input.id) && (undefined === input.serviceLocal || "object" === typeof input.serviceLocal && null !== input.serviceLocal && false === Array.isArray(input.serviceLocal) && _io18(input.serviceLocal)); const _io9 = input => "string" === typeof input.host && "number" === typeof input.port && (undefined === input.protocol || "string" === typeof input.protocol) && (undefined === input.includeBaseURL || "boolean" === typeof input.includeBaseURL); const _io10 = input => (undefined === input.apiDocs || "string" === typeof input.apiDocs) && (undefined === input.version || "string" === typeof input.version) && (undefined === input.health || "string" === typeof input.health) && (undefined === input.changelog || "string" === typeof input.changelog); const _io11 = input => "string" === typeof input.route && (null === input.mountAtSelector || undefined === input.mountAtSelector || "string" === typeof input.mountAtSelector) && "string" === typeof input.bundleFile && ("object" === typeof input.customProps && null !== input.customProps && false === Array.isArray(input.customProps) && _io12(input.customProps)) && (undefined === input.shell || "boolean" === typeof input.shell) && (undefined === input.isPlatformCustomization || "boolean" === typeof input.isPlatformCustomization); const _io12 = input => (undefined === input.tenantOverrides || "object" === typeof input.tenantOverrides && null !== input.tenantOverrides && false === Array.isArray(input.tenantOverrides) && _io13(input.tenantOverrides)) && Object.keys(input).every(key => {
|
|
703
|
+
const result = (() => { const _io0 = input => "object" === typeof input.syncConfig && null !== input.syncConfig && _io1(input.syncConfig) && (undefined === input.sharedLibraries || Array.isArray(input.sharedLibraries) && input.sharedLibraries.every(elem => "object" === typeof elem && null !== elem && _io2(elem))) && (undefined === input.featureFlags || Array.isArray(input.featureFlags) && input.featureFlags.every(elem => "object" === typeof elem && null !== elem && _io3(elem))) && (undefined === input.catalog || Array.isArray(input.catalog) && input.catalog.every(elem => "object" === typeof elem && null !== elem && _io8(elem))) && (undefined === input.applicationsAuthz || Array.isArray(input.applicationsAuthz) && input.applicationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io19(elem))) && (undefined === input.rolesAuthz || Array.isArray(input.rolesAuthz) && input.rolesAuthz.every(elem => "object" === typeof elem && null !== elem && _io20(elem))) && (undefined === input.operationsAuthz || Array.isArray(input.operationsAuthz) && input.operationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io21(elem))) && (undefined === input.modulesConfig || Array.isArray(input.modulesConfig) && input.modulesConfig.every(elem => "object" === typeof elem && null !== elem && _io22(elem))); const _io1 = input => "string" === typeof input.scopedTo; const _io2 = input => "string" === typeof input.name && "string" === typeof input.url && (undefined === input.description || "string" === typeof input.description); const _io3 = input => "string" === typeof input.name && (undefined === input.description || "string" === typeof input.description) && (undefined === input.visible || "boolean" === typeof input.visible) && true && (undefined === input.valueRules || Array.isArray(input.valueRules) && input.valueRules.every(elem => "object" === typeof elem && null !== elem && _io4(elem))) && (undefined === input.applicationName || "string" === typeof input.applicationName); const _io4 = input => (undefined === input.name || "string" === typeof input.name) && ("object" === typeof input.condition && null !== input.condition && _iu0(input.condition)) && true && (undefined === input.rollout || "object" === typeof input.rollout && null !== input.rollout && _io7(input.rollout)); const _io5 = input => "string" === typeof input.attribute && ("eq" === input.operator || "neq" === input.operator || "in" === input.operator || "nin" === input.operator) && (null !== input.value && undefined !== input.value && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem))); const _io6 = input => ("AND" === input.operator || "OR" === input.operator) && (Array.isArray(input.rules) && input.rules.every(elem => "object" === typeof elem && null !== elem && _iu0(elem))); const _io7 = input => "number" === typeof input.percentage && "string" === typeof input.attribute; const _io8 = input => "string" === typeof input.name && "string" === typeof input.displayName && ("service" === input.type || "app" === input.type || "tool" === input.type || "utility" === input.type || "cloud-function" === input.type || "documentation" === input.type || "fragment" === input.type) && "string" === typeof input.baseUrl && ("object" === typeof input.service && null !== input.service && _io9(input.service)) && (Array.isArray(input.dependsOn) && input.dependsOn.every(elem => "string" === typeof elem)) && (undefined === input.commonPaths || "object" === typeof input.commonPaths && null !== input.commonPaths && false === Array.isArray(input.commonPaths) && _io10(input.commonPaths)) && (undefined === input.ui || "object" === typeof input.ui && null !== input.ui && _io11(input.ui)) && (undefined === input.cloudFunction || "object" === typeof input.cloudFunction && null !== input.cloudFunction && _io15(input.cloudFunction)) && (undefined === input.authorization || "object" === typeof input.authorization && null !== input.authorization && false === Array.isArray(input.authorization) && _io16(input.authorization)) && (undefined === input.application || "string" === typeof input.application) && (undefined === input.version || "string" === typeof input.version) && (undefined === input.isPublic || "boolean" === typeof input.isPublic) && (undefined === input.id || "number" === typeof input.id) && (undefined === input.serviceLocal || "object" === typeof input.serviceLocal && null !== input.serviceLocal && false === Array.isArray(input.serviceLocal) && _io18(input.serviceLocal)); const _io9 = input => "string" === typeof input.host && "number" === typeof input.port && (undefined === input.protocol || "string" === typeof input.protocol) && (undefined === input.includeBaseURL || "boolean" === typeof input.includeBaseURL); const _io10 = input => (undefined === input.apiDocs || "string" === typeof input.apiDocs) && (undefined === input.version || "string" === typeof input.version) && (undefined === input.health || "string" === typeof input.health) && (undefined === input.changelog || "string" === typeof input.changelog); const _io11 = input => "string" === typeof input.route && (null === input.mountAtSelector || undefined === input.mountAtSelector || "string" === typeof input.mountAtSelector) && "string" === typeof input.bundleFile && ("object" === typeof input.customProps && null !== input.customProps && false === Array.isArray(input.customProps) && _io12(input.customProps)) && (undefined === input.shell || "boolean" === typeof input.shell) && (undefined === input.isPlatformCustomization || "boolean" === typeof input.isPlatformCustomization); const _io12 = input => (undefined === input.tenantOverrides || "object" === typeof input.tenantOverrides && null !== input.tenantOverrides && false === Array.isArray(input.tenantOverrides) && _io13(input.tenantOverrides)) && Object.keys(input).every(key => {
|
|
704
704
|
if (["tenantOverrides"].some(prop => key === prop))
|
|
705
705
|
return true;
|
|
706
706
|
const value = input[key];
|
|
@@ -976,9 +976,9 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
976
976
|
path: _path + ".displayName",
|
|
977
977
|
expected: "string",
|
|
978
978
|
value: input.displayName
|
|
979
|
-
}), "service" === input.type || "app" === input.type || "tool" === input.type || "utility" === input.type || "cloud-function" === input.type || "documentation" === input.type || _report(_exceptionable, {
|
|
979
|
+
}), "service" === input.type || "app" === input.type || "tool" === input.type || "utility" === input.type || "cloud-function" === input.type || "documentation" === input.type || "fragment" === input.type || _report(_exceptionable, {
|
|
980
980
|
path: _path + ".type",
|
|
981
|
-
expected: "(\"app\" | \"cloud-function\" | \"documentation\" | \"service\" | \"tool\" | \"utility\")",
|
|
981
|
+
expected: "(\"app\" | \"cloud-function\" | \"documentation\" | \"fragment\" | \"service\" | \"tool\" | \"utility\")",
|
|
982
982
|
value: input.type
|
|
983
983
|
}), "string" === typeof input.baseUrl || _report(_exceptionable, {
|
|
984
984
|
path: _path + ".baseUrl",
|
|
@@ -1354,16 +1354,16 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1354
1354
|
const validObjectWithOptionalFields = {
|
|
1355
1355
|
catalog: [
|
|
1356
1356
|
{
|
|
1357
|
-
name:
|
|
1358
|
-
baseUrl:
|
|
1359
|
-
dependsOn: [
|
|
1360
|
-
displayName:
|
|
1357
|
+
name: "Catalog1",
|
|
1358
|
+
baseUrl: "http://example.com",
|
|
1359
|
+
dependsOn: ["Catalog2"],
|
|
1360
|
+
displayName: "Catalog 1",
|
|
1361
1361
|
service: {
|
|
1362
|
-
host:
|
|
1362
|
+
host: "localhost",
|
|
1363
1363
|
port: 8080,
|
|
1364
|
-
protocol:
|
|
1364
|
+
protocol: "http",
|
|
1365
1365
|
},
|
|
1366
|
-
type:
|
|
1366
|
+
type: "app"
|
|
1367
1367
|
},
|
|
1368
1368
|
],
|
|
1369
1369
|
sharedLibraries: [],
|
|
@@ -1372,10 +1372,10 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1372
1372
|
operationsAuthz: [],
|
|
1373
1373
|
modulesConfig: [],
|
|
1374
1374
|
syncConfig: {
|
|
1375
|
-
scopedTo:
|
|
1375
|
+
scopedTo: "any"
|
|
1376
1376
|
},
|
|
1377
1377
|
};
|
|
1378
|
-
const result = (() => { const _io0 = input => "object" === typeof input.syncConfig && null !== input.syncConfig && _io1(input.syncConfig) && (undefined === input.sharedLibraries || Array.isArray(input.sharedLibraries) && input.sharedLibraries.every(elem => "object" === typeof elem && null !== elem && _io2(elem))) && (undefined === input.featureFlags || Array.isArray(input.featureFlags) && input.featureFlags.every(elem => "object" === typeof elem && null !== elem && _io3(elem))) && (undefined === input.catalog || Array.isArray(input.catalog) && input.catalog.every(elem => "object" === typeof elem && null !== elem && _io8(elem))) && (undefined === input.applicationsAuthz || Array.isArray(input.applicationsAuthz) && input.applicationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io19(elem))) && (undefined === input.rolesAuthz || Array.isArray(input.rolesAuthz) && input.rolesAuthz.every(elem => "object" === typeof elem && null !== elem && _io20(elem))) && (undefined === input.operationsAuthz || Array.isArray(input.operationsAuthz) && input.operationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io21(elem))) && (undefined === input.modulesConfig || Array.isArray(input.modulesConfig) && input.modulesConfig.every(elem => "object" === typeof elem && null !== elem && _io22(elem))); const _io1 = input => "string" === typeof input.scopedTo; const _io2 = input => "string" === typeof input.name && "string" === typeof input.url && (undefined === input.description || "string" === typeof input.description); const _io3 = input => "string" === typeof input.name && (undefined === input.description || "string" === typeof input.description) && (undefined === input.visible || "boolean" === typeof input.visible) && true && (undefined === input.valueRules || Array.isArray(input.valueRules) && input.valueRules.every(elem => "object" === typeof elem && null !== elem && _io4(elem))) && (undefined === input.applicationName || "string" === typeof input.applicationName); const _io4 = input => (undefined === input.name || "string" === typeof input.name) && ("object" === typeof input.condition && null !== input.condition && _iu0(input.condition)) && true && (undefined === input.rollout || "object" === typeof input.rollout && null !== input.rollout && _io7(input.rollout)); const _io5 = input => "string" === typeof input.attribute && ("eq" === input.operator || "neq" === input.operator || "in" === input.operator || "nin" === input.operator) && (null !== input.value && undefined !== input.value && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem))); const _io6 = input => ("AND" === input.operator || "OR" === input.operator) && (Array.isArray(input.rules) && input.rules.every(elem => "object" === typeof elem && null !== elem && _iu0(elem))); const _io7 = input => "number" === typeof input.percentage && "string" === typeof input.attribute; const _io8 = input => "string" === typeof input.name && "string" === typeof input.displayName && ("service" === input.type || "app" === input.type || "tool" === input.type || "utility" === input.type || "cloud-function" === input.type || "documentation" === input.type) && "string" === typeof input.baseUrl && ("object" === typeof input.service && null !== input.service && _io9(input.service)) && (Array.isArray(input.dependsOn) && input.dependsOn.every(elem => "string" === typeof elem)) && (undefined === input.commonPaths || "object" === typeof input.commonPaths && null !== input.commonPaths && false === Array.isArray(input.commonPaths) && _io10(input.commonPaths)) && (undefined === input.ui || "object" === typeof input.ui && null !== input.ui && _io11(input.ui)) && (undefined === input.cloudFunction || "object" === typeof input.cloudFunction && null !== input.cloudFunction && _io15(input.cloudFunction)) && (undefined === input.authorization || "object" === typeof input.authorization && null !== input.authorization && false === Array.isArray(input.authorization) && _io16(input.authorization)) && (undefined === input.application || "string" === typeof input.application) && (undefined === input.version || "string" === typeof input.version) && (undefined === input.isPublic || "boolean" === typeof input.isPublic) && (undefined === input.id || "number" === typeof input.id) && (undefined === input.serviceLocal || "object" === typeof input.serviceLocal && null !== input.serviceLocal && false === Array.isArray(input.serviceLocal) && _io18(input.serviceLocal)); const _io9 = input => "string" === typeof input.host && "number" === typeof input.port && (undefined === input.protocol || "string" === typeof input.protocol) && (undefined === input.includeBaseURL || "boolean" === typeof input.includeBaseURL); const _io10 = input => (undefined === input.apiDocs || "string" === typeof input.apiDocs) && (undefined === input.version || "string" === typeof input.version) && (undefined === input.health || "string" === typeof input.health) && (undefined === input.changelog || "string" === typeof input.changelog); const _io11 = input => "string" === typeof input.route && (null === input.mountAtSelector || undefined === input.mountAtSelector || "string" === typeof input.mountAtSelector) && "string" === typeof input.bundleFile && ("object" === typeof input.customProps && null !== input.customProps && false === Array.isArray(input.customProps) && _io12(input.customProps)) && (undefined === input.shell || "boolean" === typeof input.shell) && (undefined === input.isPlatformCustomization || "boolean" === typeof input.isPlatformCustomization); const _io12 = input => (undefined === input.tenantOverrides || "object" === typeof input.tenantOverrides && null !== input.tenantOverrides && false === Array.isArray(input.tenantOverrides) && _io13(input.tenantOverrides)) && Object.keys(input).every(key => {
|
|
1378
|
+
const result = (() => { const _io0 = input => "object" === typeof input.syncConfig && null !== input.syncConfig && _io1(input.syncConfig) && (undefined === input.sharedLibraries || Array.isArray(input.sharedLibraries) && input.sharedLibraries.every(elem => "object" === typeof elem && null !== elem && _io2(elem))) && (undefined === input.featureFlags || Array.isArray(input.featureFlags) && input.featureFlags.every(elem => "object" === typeof elem && null !== elem && _io3(elem))) && (undefined === input.catalog || Array.isArray(input.catalog) && input.catalog.every(elem => "object" === typeof elem && null !== elem && _io8(elem))) && (undefined === input.applicationsAuthz || Array.isArray(input.applicationsAuthz) && input.applicationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io19(elem))) && (undefined === input.rolesAuthz || Array.isArray(input.rolesAuthz) && input.rolesAuthz.every(elem => "object" === typeof elem && null !== elem && _io20(elem))) && (undefined === input.operationsAuthz || Array.isArray(input.operationsAuthz) && input.operationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io21(elem))) && (undefined === input.modulesConfig || Array.isArray(input.modulesConfig) && input.modulesConfig.every(elem => "object" === typeof elem && null !== elem && _io22(elem))); const _io1 = input => "string" === typeof input.scopedTo; const _io2 = input => "string" === typeof input.name && "string" === typeof input.url && (undefined === input.description || "string" === typeof input.description); const _io3 = input => "string" === typeof input.name && (undefined === input.description || "string" === typeof input.description) && (undefined === input.visible || "boolean" === typeof input.visible) && true && (undefined === input.valueRules || Array.isArray(input.valueRules) && input.valueRules.every(elem => "object" === typeof elem && null !== elem && _io4(elem))) && (undefined === input.applicationName || "string" === typeof input.applicationName); const _io4 = input => (undefined === input.name || "string" === typeof input.name) && ("object" === typeof input.condition && null !== input.condition && _iu0(input.condition)) && true && (undefined === input.rollout || "object" === typeof input.rollout && null !== input.rollout && _io7(input.rollout)); const _io5 = input => "string" === typeof input.attribute && ("eq" === input.operator || "neq" === input.operator || "in" === input.operator || "nin" === input.operator) && (null !== input.value && undefined !== input.value && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem))); const _io6 = input => ("AND" === input.operator || "OR" === input.operator) && (Array.isArray(input.rules) && input.rules.every(elem => "object" === typeof elem && null !== elem && _iu0(elem))); const _io7 = input => "number" === typeof input.percentage && "string" === typeof input.attribute; const _io8 = input => "string" === typeof input.name && "string" === typeof input.displayName && ("service" === input.type || "app" === input.type || "tool" === input.type || "utility" === input.type || "cloud-function" === input.type || "documentation" === input.type || "fragment" === input.type) && "string" === typeof input.baseUrl && ("object" === typeof input.service && null !== input.service && _io9(input.service)) && (Array.isArray(input.dependsOn) && input.dependsOn.every(elem => "string" === typeof elem)) && (undefined === input.commonPaths || "object" === typeof input.commonPaths && null !== input.commonPaths && false === Array.isArray(input.commonPaths) && _io10(input.commonPaths)) && (undefined === input.ui || "object" === typeof input.ui && null !== input.ui && _io11(input.ui)) && (undefined === input.cloudFunction || "object" === typeof input.cloudFunction && null !== input.cloudFunction && _io15(input.cloudFunction)) && (undefined === input.authorization || "object" === typeof input.authorization && null !== input.authorization && false === Array.isArray(input.authorization) && _io16(input.authorization)) && (undefined === input.application || "string" === typeof input.application) && (undefined === input.version || "string" === typeof input.version) && (undefined === input.isPublic || "boolean" === typeof input.isPublic) && (undefined === input.id || "number" === typeof input.id) && (undefined === input.serviceLocal || "object" === typeof input.serviceLocal && null !== input.serviceLocal && false === Array.isArray(input.serviceLocal) && _io18(input.serviceLocal)); const _io9 = input => "string" === typeof input.host && "number" === typeof input.port && (undefined === input.protocol || "string" === typeof input.protocol) && (undefined === input.includeBaseURL || "boolean" === typeof input.includeBaseURL); const _io10 = input => (undefined === input.apiDocs || "string" === typeof input.apiDocs) && (undefined === input.version || "string" === typeof input.version) && (undefined === input.health || "string" === typeof input.health) && (undefined === input.changelog || "string" === typeof input.changelog); const _io11 = input => "string" === typeof input.route && (null === input.mountAtSelector || undefined === input.mountAtSelector || "string" === typeof input.mountAtSelector) && "string" === typeof input.bundleFile && ("object" === typeof input.customProps && null !== input.customProps && false === Array.isArray(input.customProps) && _io12(input.customProps)) && (undefined === input.shell || "boolean" === typeof input.shell) && (undefined === input.isPlatformCustomization || "boolean" === typeof input.isPlatformCustomization); const _io12 = input => (undefined === input.tenantOverrides || "object" === typeof input.tenantOverrides && null !== input.tenantOverrides && false === Array.isArray(input.tenantOverrides) && _io13(input.tenantOverrides)) && Object.keys(input).every(key => {
|
|
1379
1379
|
if (["tenantOverrides"].some(prop => key === prop))
|
|
1380
1380
|
return true;
|
|
1381
1381
|
const value = input[key];
|
|
@@ -1651,9 +1651,9 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1651
1651
|
path: _path + ".displayName",
|
|
1652
1652
|
expected: "string",
|
|
1653
1653
|
value: input.displayName
|
|
1654
|
-
}), "service" === input.type || "app" === input.type || "tool" === input.type || "utility" === input.type || "cloud-function" === input.type || "documentation" === input.type || _report(_exceptionable, {
|
|
1654
|
+
}), "service" === input.type || "app" === input.type || "tool" === input.type || "utility" === input.type || "cloud-function" === input.type || "documentation" === input.type || "fragment" === input.type || _report(_exceptionable, {
|
|
1655
1655
|
path: _path + ".type",
|
|
1656
|
-
expected: "(\"app\" | \"cloud-function\" | \"documentation\" | \"service\" | \"tool\" | \"utility\")",
|
|
1656
|
+
expected: "(\"app\" | \"cloud-function\" | \"documentation\" | \"fragment\" | \"service\" | \"tool\" | \"utility\")",
|
|
1657
1657
|
value: input.type
|
|
1658
1658
|
}), "string" === typeof input.baseUrl || _report(_exceptionable, {
|
|
1659
1659
|
path: _path + ".baseUrl",
|
|
@@ -2029,16 +2029,16 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2029
2029
|
const invalidObjectWithOptionalFields = {
|
|
2030
2030
|
catalog: [
|
|
2031
2031
|
{
|
|
2032
|
-
name:
|
|
2033
|
-
baseUrl:
|
|
2034
|
-
dependsOn: [
|
|
2035
|
-
displayName:
|
|
2032
|
+
name: "Catalog1",
|
|
2033
|
+
baseUrl: "http://example.com",
|
|
2034
|
+
dependsOn: ["Catalog2"],
|
|
2035
|
+
displayName: "Catalog 1",
|
|
2036
2036
|
service: {
|
|
2037
|
-
host:
|
|
2037
|
+
host: "localhost",
|
|
2038
2038
|
port: 8080,
|
|
2039
|
-
protocol:
|
|
2039
|
+
protocol: "http",
|
|
2040
2040
|
},
|
|
2041
|
-
type:
|
|
2041
|
+
type: "invalidType" // Invalid type
|
|
2042
2042
|
},
|
|
2043
2043
|
],
|
|
2044
2044
|
sharedLibraries: [],
|
|
@@ -2047,10 +2047,10 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2047
2047
|
operationsAuthz: [],
|
|
2048
2048
|
modulesConfig: [],
|
|
2049
2049
|
syncConfig: {
|
|
2050
|
-
scopedTo:
|
|
2050
|
+
scopedTo: "any"
|
|
2051
2051
|
},
|
|
2052
2052
|
};
|
|
2053
|
-
const result = (() => { const _io0 = input => "object" === typeof input.syncConfig && null !== input.syncConfig && _io1(input.syncConfig) && (undefined === input.sharedLibraries || Array.isArray(input.sharedLibraries) && input.sharedLibraries.every(elem => "object" === typeof elem && null !== elem && _io2(elem))) && (undefined === input.featureFlags || Array.isArray(input.featureFlags) && input.featureFlags.every(elem => "object" === typeof elem && null !== elem && _io3(elem))) && (undefined === input.catalog || Array.isArray(input.catalog) && input.catalog.every(elem => "object" === typeof elem && null !== elem && _io8(elem))) && (undefined === input.applicationsAuthz || Array.isArray(input.applicationsAuthz) && input.applicationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io19(elem))) && (undefined === input.rolesAuthz || Array.isArray(input.rolesAuthz) && input.rolesAuthz.every(elem => "object" === typeof elem && null !== elem && _io20(elem))) && (undefined === input.operationsAuthz || Array.isArray(input.operationsAuthz) && input.operationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io21(elem))) && (undefined === input.modulesConfig || Array.isArray(input.modulesConfig) && input.modulesConfig.every(elem => "object" === typeof elem && null !== elem && _io22(elem))); const _io1 = input => "string" === typeof input.scopedTo; const _io2 = input => "string" === typeof input.name && "string" === typeof input.url && (undefined === input.description || "string" === typeof input.description); const _io3 = input => "string" === typeof input.name && (undefined === input.description || "string" === typeof input.description) && (undefined === input.visible || "boolean" === typeof input.visible) && true && (undefined === input.valueRules || Array.isArray(input.valueRules) && input.valueRules.every(elem => "object" === typeof elem && null !== elem && _io4(elem))) && (undefined === input.applicationName || "string" === typeof input.applicationName); const _io4 = input => (undefined === input.name || "string" === typeof input.name) && ("object" === typeof input.condition && null !== input.condition && _iu0(input.condition)) && true && (undefined === input.rollout || "object" === typeof input.rollout && null !== input.rollout && _io7(input.rollout)); const _io5 = input => "string" === typeof input.attribute && ("eq" === input.operator || "neq" === input.operator || "in" === input.operator || "nin" === input.operator) && (null !== input.value && undefined !== input.value && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem))); const _io6 = input => ("AND" === input.operator || "OR" === input.operator) && (Array.isArray(input.rules) && input.rules.every(elem => "object" === typeof elem && null !== elem && _iu0(elem))); const _io7 = input => "number" === typeof input.percentage && "string" === typeof input.attribute; const _io8 = input => "string" === typeof input.name && "string" === typeof input.displayName && ("service" === input.type || "app" === input.type || "tool" === input.type || "utility" === input.type || "cloud-function" === input.type || "documentation" === input.type) && "string" === typeof input.baseUrl && ("object" === typeof input.service && null !== input.service && _io9(input.service)) && (Array.isArray(input.dependsOn) && input.dependsOn.every(elem => "string" === typeof elem)) && (undefined === input.commonPaths || "object" === typeof input.commonPaths && null !== input.commonPaths && false === Array.isArray(input.commonPaths) && _io10(input.commonPaths)) && (undefined === input.ui || "object" === typeof input.ui && null !== input.ui && _io11(input.ui)) && (undefined === input.cloudFunction || "object" === typeof input.cloudFunction && null !== input.cloudFunction && _io15(input.cloudFunction)) && (undefined === input.authorization || "object" === typeof input.authorization && null !== input.authorization && false === Array.isArray(input.authorization) && _io16(input.authorization)) && (undefined === input.application || "string" === typeof input.application) && (undefined === input.version || "string" === typeof input.version) && (undefined === input.isPublic || "boolean" === typeof input.isPublic) && (undefined === input.id || "number" === typeof input.id) && (undefined === input.serviceLocal || "object" === typeof input.serviceLocal && null !== input.serviceLocal && false === Array.isArray(input.serviceLocal) && _io18(input.serviceLocal)); const _io9 = input => "string" === typeof input.host && "number" === typeof input.port && (undefined === input.protocol || "string" === typeof input.protocol) && (undefined === input.includeBaseURL || "boolean" === typeof input.includeBaseURL); const _io10 = input => (undefined === input.apiDocs || "string" === typeof input.apiDocs) && (undefined === input.version || "string" === typeof input.version) && (undefined === input.health || "string" === typeof input.health) && (undefined === input.changelog || "string" === typeof input.changelog); const _io11 = input => "string" === typeof input.route && (null === input.mountAtSelector || undefined === input.mountAtSelector || "string" === typeof input.mountAtSelector) && "string" === typeof input.bundleFile && ("object" === typeof input.customProps && null !== input.customProps && false === Array.isArray(input.customProps) && _io12(input.customProps)) && (undefined === input.shell || "boolean" === typeof input.shell) && (undefined === input.isPlatformCustomization || "boolean" === typeof input.isPlatformCustomization); const _io12 = input => (undefined === input.tenantOverrides || "object" === typeof input.tenantOverrides && null !== input.tenantOverrides && false === Array.isArray(input.tenantOverrides) && _io13(input.tenantOverrides)) && Object.keys(input).every(key => {
|
|
2053
|
+
const result = (() => { const _io0 = input => "object" === typeof input.syncConfig && null !== input.syncConfig && _io1(input.syncConfig) && (undefined === input.sharedLibraries || Array.isArray(input.sharedLibraries) && input.sharedLibraries.every(elem => "object" === typeof elem && null !== elem && _io2(elem))) && (undefined === input.featureFlags || Array.isArray(input.featureFlags) && input.featureFlags.every(elem => "object" === typeof elem && null !== elem && _io3(elem))) && (undefined === input.catalog || Array.isArray(input.catalog) && input.catalog.every(elem => "object" === typeof elem && null !== elem && _io8(elem))) && (undefined === input.applicationsAuthz || Array.isArray(input.applicationsAuthz) && input.applicationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io19(elem))) && (undefined === input.rolesAuthz || Array.isArray(input.rolesAuthz) && input.rolesAuthz.every(elem => "object" === typeof elem && null !== elem && _io20(elem))) && (undefined === input.operationsAuthz || Array.isArray(input.operationsAuthz) && input.operationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io21(elem))) && (undefined === input.modulesConfig || Array.isArray(input.modulesConfig) && input.modulesConfig.every(elem => "object" === typeof elem && null !== elem && _io22(elem))); const _io1 = input => "string" === typeof input.scopedTo; const _io2 = input => "string" === typeof input.name && "string" === typeof input.url && (undefined === input.description || "string" === typeof input.description); const _io3 = input => "string" === typeof input.name && (undefined === input.description || "string" === typeof input.description) && (undefined === input.visible || "boolean" === typeof input.visible) && true && (undefined === input.valueRules || Array.isArray(input.valueRules) && input.valueRules.every(elem => "object" === typeof elem && null !== elem && _io4(elem))) && (undefined === input.applicationName || "string" === typeof input.applicationName); const _io4 = input => (undefined === input.name || "string" === typeof input.name) && ("object" === typeof input.condition && null !== input.condition && _iu0(input.condition)) && true && (undefined === input.rollout || "object" === typeof input.rollout && null !== input.rollout && _io7(input.rollout)); const _io5 = input => "string" === typeof input.attribute && ("eq" === input.operator || "neq" === input.operator || "in" === input.operator || "nin" === input.operator) && (null !== input.value && undefined !== input.value && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem))); const _io6 = input => ("AND" === input.operator || "OR" === input.operator) && (Array.isArray(input.rules) && input.rules.every(elem => "object" === typeof elem && null !== elem && _iu0(elem))); const _io7 = input => "number" === typeof input.percentage && "string" === typeof input.attribute; const _io8 = input => "string" === typeof input.name && "string" === typeof input.displayName && ("service" === input.type || "app" === input.type || "tool" === input.type || "utility" === input.type || "cloud-function" === input.type || "documentation" === input.type || "fragment" === input.type) && "string" === typeof input.baseUrl && ("object" === typeof input.service && null !== input.service && _io9(input.service)) && (Array.isArray(input.dependsOn) && input.dependsOn.every(elem => "string" === typeof elem)) && (undefined === input.commonPaths || "object" === typeof input.commonPaths && null !== input.commonPaths && false === Array.isArray(input.commonPaths) && _io10(input.commonPaths)) && (undefined === input.ui || "object" === typeof input.ui && null !== input.ui && _io11(input.ui)) && (undefined === input.cloudFunction || "object" === typeof input.cloudFunction && null !== input.cloudFunction && _io15(input.cloudFunction)) && (undefined === input.authorization || "object" === typeof input.authorization && null !== input.authorization && false === Array.isArray(input.authorization) && _io16(input.authorization)) && (undefined === input.application || "string" === typeof input.application) && (undefined === input.version || "string" === typeof input.version) && (undefined === input.isPublic || "boolean" === typeof input.isPublic) && (undefined === input.id || "number" === typeof input.id) && (undefined === input.serviceLocal || "object" === typeof input.serviceLocal && null !== input.serviceLocal && false === Array.isArray(input.serviceLocal) && _io18(input.serviceLocal)); const _io9 = input => "string" === typeof input.host && "number" === typeof input.port && (undefined === input.protocol || "string" === typeof input.protocol) && (undefined === input.includeBaseURL || "boolean" === typeof input.includeBaseURL); const _io10 = input => (undefined === input.apiDocs || "string" === typeof input.apiDocs) && (undefined === input.version || "string" === typeof input.version) && (undefined === input.health || "string" === typeof input.health) && (undefined === input.changelog || "string" === typeof input.changelog); const _io11 = input => "string" === typeof input.route && (null === input.mountAtSelector || undefined === input.mountAtSelector || "string" === typeof input.mountAtSelector) && "string" === typeof input.bundleFile && ("object" === typeof input.customProps && null !== input.customProps && false === Array.isArray(input.customProps) && _io12(input.customProps)) && (undefined === input.shell || "boolean" === typeof input.shell) && (undefined === input.isPlatformCustomization || "boolean" === typeof input.isPlatformCustomization); const _io12 = input => (undefined === input.tenantOverrides || "object" === typeof input.tenantOverrides && null !== input.tenantOverrides && false === Array.isArray(input.tenantOverrides) && _io13(input.tenantOverrides)) && Object.keys(input).every(key => {
|
|
2054
2054
|
if (["tenantOverrides"].some(prop => key === prop))
|
|
2055
2055
|
return true;
|
|
2056
2056
|
const value = input[key];
|
|
@@ -2326,9 +2326,9 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
2326
2326
|
path: _path + ".displayName",
|
|
2327
2327
|
expected: "string",
|
|
2328
2328
|
value: input.displayName
|
|
2329
|
-
}), "service" === input.type || "app" === input.type || "tool" === input.type || "utility" === input.type || "cloud-function" === input.type || "documentation" === input.type || _report(_exceptionable, {
|
|
2329
|
+
}), "service" === input.type || "app" === input.type || "tool" === input.type || "utility" === input.type || "cloud-function" === input.type || "documentation" === input.type || "fragment" === input.type || _report(_exceptionable, {
|
|
2330
2330
|
path: _path + ".type",
|
|
2331
|
-
expected: "(\"app\" | \"cloud-function\" | \"documentation\" | \"service\" | \"tool\" | \"utility\")",
|
|
2331
|
+
expected: "(\"app\" | \"cloud-function\" | \"documentation\" | \"fragment\" | \"service\" | \"tool\" | \"utility\")",
|
|
2332
2332
|
value: input.type
|
|
2333
2333
|
}), "string" === typeof input.baseUrl || _report(_exceptionable, {
|
|
2334
2334
|
path: _path + ".baseUrl",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domain-validation.test.js","sourceRoot":"","sources":["../../../../src/bootstrap/domain/domain-validation.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA0B;
|
|
1
|
+
{"version":3,"file":"domain-validation.test.js","sourceRoot":"","sources":["../../../../src/bootst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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAAyC,+BAA+B,CAAC,CAAC;QAEtF,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;AAEL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-synchronizer.d.ts","sourceRoot":"","sources":["../../../src/bootstrap/entity-synchronizer.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,kBAAkB,CAAC,OAAO,EAAE,KAAK,GAAG,OAAO;IAC1D,GAAG,EAAE,CAAC,MAAM,EAAE,KAAK,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IACrC,MAAM,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IAC1C,MAAM,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IACvD,KAAK,EAAE,MAAM,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;IAChC,aAAa,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,KAAK,OAAO,CAAC;IACzD,UAAU,CAAC,EAAE,YAAY,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;CAC3C;AAED,MAAM,MAAM,YAAY,CAAC,OAAO,EAAE,KAAK,GAAG,OAAO,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,GAAG,SAAS,KAAK,OAAO,
|
|
1
|
+
{"version":3,"file":"entity-synchronizer.d.ts","sourceRoot":"","sources":["../../../src/bootstrap/entity-synchronizer.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,kBAAkB,CAAC,OAAO,EAAE,KAAK,GAAG,OAAO;IAC1D,GAAG,EAAE,CAAC,MAAM,EAAE,KAAK,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IACrC,MAAM,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IAC1C,MAAM,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IACvD,KAAK,EAAE,MAAM,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;IAChC,aAAa,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,KAAK,OAAO,CAAC;IACzD,UAAU,CAAC,EAAE,YAAY,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;CAC3C;AAED,MAAM,MAAM,YAAY,CAAC,OAAO,EAAE,KAAK,GAAG,OAAO,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,GAAG,SAAS,KAAK,OAAO,CAAA;AAE1G;;;GAGG;AACH,eAAO,MAAM,mBAAmB,UAA6D,CAAC;AAE9F;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,kBAAkB,GAAI,uBAAsB,MAAM,EAAO,KAAG,YAAY,CAAC,GAAG,EAAE,GAAG,CA+B7F,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,wBAAuB,CAAC"}
|
|
@@ -46,13 +46,13 @@ const createHasChangedFn = (additionalIgnoreKeys = []) => {
|
|
|
46
46
|
// Get all keys from data
|
|
47
47
|
const dataKeys = Object.keys(data);
|
|
48
48
|
// Check if data has any keys that entity doesn't have (excluding ignored keys)
|
|
49
|
-
const newKeys = dataKeys.filter(
|
|
49
|
+
const newKeys = dataKeys.filter(key => !ignoreKeys.has(key) && !(key in entity));
|
|
50
50
|
if (newKeys.length > 0) {
|
|
51
51
|
return true; // New keys detected in data
|
|
52
52
|
}
|
|
53
53
|
// Check if any common keys have changed values (excluding ignored keys)
|
|
54
|
-
const commonKeys = dataKeys.filter(
|
|
55
|
-
return commonKeys.some(
|
|
54
|
+
const commonKeys = dataKeys.filter(key => !ignoreKeys.has(key) && key in entity);
|
|
55
|
+
return commonKeys.some(key => !(0, ramda_1.equals)(data[key], entity[key]));
|
|
56
56
|
};
|
|
57
57
|
};
|
|
58
58
|
exports.createHasChangedFn = createHasChangedFn;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-synchronizer.js","sourceRoot":"","sources":["../../../src/bootstrap/entity-synchronizer.ts"],"names":[],"mappings":";;;AAAA,iCAA+B;AAa/B;;;GAGG;AACU,QAAA,mBAAmB,GAAG,CAAC,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC;AAE9F;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACI,MAAM,kBAAkB,GAAG,CAAC,uBAAiC,EAAE,EAA0B,EAAE;IAChG,MAAM,UAAU,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,2BAAmB,EAAE,GAAG,oBAAoB,CAAC,CAAC,CAAC;IAE9E,OAAO,CAAC,IAAS,EAAE,MAAuB,EAAW,EAAE;QACrD,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,OAAO,IAAI,CAAC,CAAC,wDAAwD;QACvE,CAAC;QAED,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,OAAO,KAAK,CAAC,CAAC,mCAAmC;QACnD,CAAC;QAED,yBAAyB;QACzB,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAEnC,+EAA+E;QAC/E,MAAM,OAAO,GAAG,QAAQ,CAAC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"entity-synchronizer.js","sourceRoot":"","sources":["../../../src/bootstrap/entity-synchronizer.ts"],"names":[],"mappings":";;;AAAA,iCAA+B;AAa/B;;;GAGG;AACU,QAAA,mBAAmB,GAAG,CAAC,IAAI,EAAE,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sBA+B7B;AAEF;;;;;;;;GAQG;AACU,QAAA,sBAAsB,GAAG,IAAA,0BAAkB,GAAE,CAAC"}
|
|
@@ -19,7 +19,7 @@ describe('entity-synchronizer', () => {
|
|
|
19
19
|
createdAt: new Date('2024-01-01'),
|
|
20
20
|
updatedAt: new Date('2024-01-02'),
|
|
21
21
|
createdBy: 'user1',
|
|
22
|
-
updatedBy: 'user2'
|
|
22
|
+
updatedBy: 'user2'
|
|
23
23
|
};
|
|
24
24
|
expect(hasChanged(data, entity)).toBe(false);
|
|
25
25
|
});
|
|
@@ -29,7 +29,7 @@ describe('entity-synchronizer', () => {
|
|
|
29
29
|
name: 'Test',
|
|
30
30
|
description: 'Original',
|
|
31
31
|
id: 1,
|
|
32
|
-
createdAt: new Date()
|
|
32
|
+
createdAt: new Date()
|
|
33
33
|
};
|
|
34
34
|
expect(hasChanged(data, entity)).toBe(true);
|
|
35
35
|
});
|
|
@@ -39,7 +39,7 @@ describe('entity-synchronizer', () => {
|
|
|
39
39
|
name: 'Test',
|
|
40
40
|
description: 'Same',
|
|
41
41
|
id: 1,
|
|
42
|
-
createdAt: new Date()
|
|
42
|
+
createdAt: new Date()
|
|
43
43
|
};
|
|
44
44
|
expect(hasChanged(data, entity)).toBe(false);
|
|
45
45
|
});
|
|
@@ -51,7 +51,7 @@ describe('entity-synchronizer', () => {
|
|
|
51
51
|
createdAt: new Date('2024-01-01'),
|
|
52
52
|
createdBy: 'user1',
|
|
53
53
|
updatedAt: new Date('2024-12-31'),
|
|
54
|
-
updatedBy: 'user2'
|
|
54
|
+
updatedBy: 'user2'
|
|
55
55
|
};
|
|
56
56
|
expect(hasChanged(data, entity)).toBe(false);
|
|
57
57
|
});
|
|
@@ -75,7 +75,7 @@ describe('entity-synchronizer', () => {
|
|
|
75
75
|
const entity = {
|
|
76
76
|
name: 'Test',
|
|
77
77
|
config: { enabled: false },
|
|
78
|
-
id: 1
|
|
78
|
+
id: 1
|
|
79
79
|
};
|
|
80
80
|
expect(hasChanged(data, entity)).toBe(true);
|
|
81
81
|
});
|
|
@@ -84,7 +84,7 @@ describe('entity-synchronizer', () => {
|
|
|
84
84
|
const entity = {
|
|
85
85
|
name: 'Test',
|
|
86
86
|
config: { enabled: true, nested: { value: 1 } },
|
|
87
|
-
id: 1
|
|
87
|
+
id: 1
|
|
88
88
|
};
|
|
89
89
|
expect(hasChanged(data, entity)).toBe(false);
|
|
90
90
|
});
|
|
@@ -93,7 +93,7 @@ describe('entity-synchronizer', () => {
|
|
|
93
93
|
const entity = {
|
|
94
94
|
name: 'Test',
|
|
95
95
|
tags: ['a', 'b', 'c'],
|
|
96
|
-
id: 1
|
|
96
|
+
id: 1
|
|
97
97
|
};
|
|
98
98
|
expect(hasChanged(data, entity)).toBe(true);
|
|
99
99
|
});
|
|
@@ -108,7 +108,7 @@ describe('entity-synchronizer', () => {
|
|
|
108
108
|
id: 1,
|
|
109
109
|
isGlobal: true,
|
|
110
110
|
computedField: 'computed',
|
|
111
|
-
createdAt: new Date()
|
|
111
|
+
createdAt: new Date()
|
|
112
112
|
};
|
|
113
113
|
expect(hasChanged(data, entity)).toBe(false);
|
|
114
114
|
});
|
|
@@ -119,7 +119,7 @@ describe('entity-synchronizer', () => {
|
|
|
119
119
|
description: 'Same',
|
|
120
120
|
id: 1,
|
|
121
121
|
isGlobal: true,
|
|
122
|
-
computedField: 'computed'
|
|
122
|
+
computedField: 'computed'
|
|
123
123
|
};
|
|
124
124
|
expect(hasChanged(data, entity)).toBe(true);
|
|
125
125
|
});
|
|
@@ -128,7 +128,7 @@ describe('entity-synchronizer', () => {
|
|
|
128
128
|
const entity = {
|
|
129
129
|
name: 'Test',
|
|
130
130
|
id: 1,
|
|
131
|
-
isGlobal: false
|
|
131
|
+
isGlobal: false
|
|
132
132
|
};
|
|
133
133
|
// newField is NOT in ignore list, so it should detect change
|
|
134
134
|
expect(hasChanged(data, entity)).toBe(true);
|
|
@@ -141,7 +141,7 @@ describe('entity-synchronizer', () => {
|
|
|
141
141
|
name: 'my-app',
|
|
142
142
|
displayName: 'My App',
|
|
143
143
|
description: 'Updated description',
|
|
144
|
-
allowedByDefault: true
|
|
144
|
+
allowedByDefault: true
|
|
145
145
|
};
|
|
146
146
|
const entity = {
|
|
147
147
|
id: 1,
|
|
@@ -153,7 +153,7 @@ describe('entity-synchronizer', () => {
|
|
|
153
153
|
createdAt: new Date('2024-01-01'),
|
|
154
154
|
updatedAt: new Date('2024-01-02'),
|
|
155
155
|
createdBy: 'admin',
|
|
156
|
-
updatedBy: 'admin'
|
|
156
|
+
updatedBy: 'admin'
|
|
157
157
|
};
|
|
158
158
|
const hasChanged = (0, entity_synchronizer_1.createHasChangedFn)(['isGlobal']); // isGlobal is computed
|
|
159
159
|
expect(hasChanged(data, entity)).toBe(true);
|
|
@@ -163,7 +163,7 @@ describe('entity-synchronizer', () => {
|
|
|
163
163
|
name: 'my-app',
|
|
164
164
|
displayName: 'My App',
|
|
165
165
|
description: 'Same description',
|
|
166
|
-
allowedByDefault: true
|
|
166
|
+
allowedByDefault: true
|
|
167
167
|
};
|
|
168
168
|
const entity = {
|
|
169
169
|
id: 1,
|
|
@@ -175,7 +175,7 @@ describe('entity-synchronizer', () => {
|
|
|
175
175
|
createdAt: new Date('2024-01-01'),
|
|
176
176
|
updatedAt: new Date('2024-06-15'), // Different timestamp
|
|
177
177
|
createdBy: 'admin',
|
|
178
|
-
updatedBy: 'user2'
|
|
178
|
+
updatedBy: 'user2' // Different user
|
|
179
179
|
};
|
|
180
180
|
const hasChanged = (0, entity_synchronizer_1.createHasChangedFn)(['isGlobal']);
|
|
181
181
|
expect(hasChanged(data, entity)).toBe(false);
|
|
@@ -187,13 +187,13 @@ describe('entity-synchronizer', () => {
|
|
|
187
187
|
name: 'my-module',
|
|
188
188
|
url: 'http://localhost:3000',
|
|
189
189
|
protocol: 'http', // This was materialized by API
|
|
190
|
-
includeBaseURL: false
|
|
190
|
+
includeBaseURL: false
|
|
191
191
|
};
|
|
192
192
|
const entity = {
|
|
193
193
|
id: 'module-1',
|
|
194
194
|
name: 'my-module',
|
|
195
195
|
url: 'http://localhost:3000',
|
|
196
|
-
createdAt: new Date()
|
|
196
|
+
createdAt: new Date()
|
|
197
197
|
};
|
|
198
198
|
const hasChanged = (0, entity_synchronizer_1.createHasChangedFn)();
|
|
199
199
|
expect(hasChanged(data, entity)).toBe(true); // protocol and includeBaseURL are new
|
|
@@ -204,7 +204,7 @@ describe('entity-synchronizer', () => {
|
|
|
204
204
|
const data = {
|
|
205
205
|
name: 'operation-1',
|
|
206
206
|
applicationName: 'my-app',
|
|
207
|
-
description: 'An operation'
|
|
207
|
+
description: 'An operation'
|
|
208
208
|
};
|
|
209
209
|
const entity = {
|
|
210
210
|
id: 1,
|
|
@@ -213,7 +213,7 @@ describe('entity-synchronizer', () => {
|
|
|
213
213
|
applicationId: 5, // Foreign key, should be ignored
|
|
214
214
|
description: 'An operation',
|
|
215
215
|
createdAt: new Date(),
|
|
216
|
-
updatedAt: new Date()
|
|
216
|
+
updatedAt: new Date()
|
|
217
217
|
};
|
|
218
218
|
const hasChanged = (0, entity_synchronizer_1.createHasChangedFn)(['applicationId']);
|
|
219
219
|
expect(hasChanged(data, entity)).toBe(false);
|
|
@@ -233,7 +233,7 @@ describe('entity-synchronizer', () => {
|
|
|
233
233
|
name: 'Test',
|
|
234
234
|
id: 1,
|
|
235
235
|
createdAt: new Date(),
|
|
236
|
-
updatedAt: new Date()
|
|
236
|
+
updatedAt: new Date()
|
|
237
237
|
};
|
|
238
238
|
expect((0, entity_synchronizer_1.DEFAULT_HAS_CHANGED_FN)(data, entity)).toBe(false);
|
|
239
239
|
});
|
|
@@ -249,7 +249,7 @@ describe('entity-synchronizer', () => {
|
|
|
249
249
|
description: 'Same',
|
|
250
250
|
id: 1,
|
|
251
251
|
createdAt: new Date('2024-01-01'),
|
|
252
|
-
updatedAt: new Date('2024-12-31')
|
|
252
|
+
updatedAt: new Date('2024-12-31')
|
|
253
253
|
};
|
|
254
254
|
expect((0, entity_synchronizer_1.DEFAULT_HAS_CHANGED_FN)(data, entity)).toBe(false);
|
|
255
255
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-synchronizer.test.js","sourceRoot":"","sources":["../../../src/bootstrap/entity-synchronizer.test.ts"],"names":[],"mappings":";;AAAA,+
|
|
1
|
+
{"version":3,"file":"entity-synchronizer.test.js","sourceRoot":"","sources":["../../../src/bootstrap/entity-synchronizer.test.ts"],"names":[],"mappings":";;AAAA,+DAI+B;AAE/B,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACnC,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;QAClC,QAAQ,CAAC,0BAA0B,EAAE,GAAG,EAAE;YACxC,MAAM,UAAU,GAAG,IAAA,wCAAkB,GAAE,CAAC;YAExC,EAAE,CAAC,4DAA4D,EAAE,GAAG,EAAE;gBACpE,MAAM,IAAI,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC;gBACxD,MAAM,MAAM,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,EAAE,SAAS,EAAE,IAAI,IAAI,EAAE,EAAE,CAAC;gBAE9D,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC9C,CAAC,CAAC,CAAC;YAEH,EAAE,CAAC,yDAAyD,EAAE,GAAG,EAAE;gBACjE,MAAM,IAAI,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC;gBACnD,MAAM,MAAM,GAAG;oBACb,IAAI,EAAE,MAAM;oBACZ,WAAW,EAAE,MAAM;oBACnB,EAAE,EAAE,CAAC;oBACL,SAAS,EAAE,IAAI,IAAI,CAAC,YAAY,CAAC;oBACjC,SAAS,EAAE,IAAI,IAAI,CAAC,YAAY,CAAC;oBACjC,SAAS,EAAE,OAAO;oBAClB,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AAM,CAAC,yCAAmB,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;YAC5C,MAAM,CAAC,yCAAmB,CAAC,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;YACnD,MAAM,CAAC,yCAAmB,CAAC,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;YACnD,MAAM,CAAC,yCAAmB,CAAC,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;YACnD,MAAM,CAAC,yCAAmB,CAAC,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;QACrD,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,oCAAoC,EAAE,GAAG,EAAE;YAC5C,MAAM,CAAC,yCAAmB,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;QAC9C,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BootstrapOptions } from
|
|
2
|
-
import { BootstrapPlatform } from
|
|
1
|
+
import { BootstrapOptions } from "./bootstrap-platform";
|
|
2
|
+
import { BootstrapPlatform } from "./domain/bootstrap-sync-metadata.interface";
|
|
3
3
|
/**
|
|
4
4
|
* Inspects the filesystem reading all application definitions
|
|
5
5
|
* NOTE: this is a really quick implementation pretty raw.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read-bootstrap-applications.d.ts","sourceRoot":"","sources":["../../../src/bootstrap/read-bootstrap-applications.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"read-bootstrap-applications.d.ts","sourceRoot":"","sources":["../../../src/bootstrap/read-bootstrap-applications.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAKL,iBAAiB,EAGlB,MAAM,4CAA4C,CAAC;AAapD;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,GAAI,MAAM,MAAM,EAAE,SAAS,gBAAgB,KAAG,iBA6CrF,CAAA"}
|