@bluealba/pae-bootstrap-lib 2.1.2-feature-assign-application-to-fea-49 → 2.1.2-feature-bootstrap-config-for-sche-61
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/README.md +2 -1
- package/dist/src/bootstrap/domain/bootstrap-sync-metadata.interface.d.ts +9 -2
- package/dist/src/bootstrap/domain/bootstrap-sync-metadata.interface.d.ts.map +1 -1
- package/dist/src/bootstrap/domain/domain-validation.test.js +12 -28
- 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 +47 -75
- package/dist/src/bootstrap/read-bootstrap-applications.js.map +1 -1
- package/dist/src/bootstrap/run-bootstrap-sync.service.js +1 -1
- package/dist/src/bootstrap/run-bootstrap-sync.service.js.map +1 -1
- package/dist/src/bootstrap/synchronizers/sync-catalog.d.ts.map +1 -1
- package/dist/src/bootstrap/synchronizers/sync-catalog.js +22 -0
- package/dist/src/bootstrap/synchronizers/sync-catalog.js.map +1 -1
- package/dist/src/bootstrap/synchronizers/sync-feature-flags.d.ts.map +1 -1
- package/dist/src/bootstrap/synchronizers/sync-feature-flags.js +0 -1
- package/dist/src/bootstrap/synchronizers/sync-feature-flags.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ bootstrapPlatform({
|
|
|
14
14
|
# Folder & Files conventions
|
|
15
15
|
|
|
16
16
|
Each folder potentially represents an application if it has an `application.json` file.
|
|
17
|
-
Each folder might optionally contain definition files that must follow the names: `(modules | operations | roles).json`
|
|
17
|
+
Each folder might optionally contain definition files that must follow the names: `(modules | operations | roles | jobs).json`
|
|
18
18
|
If it defines an `application.json` then all resources declared in the previously mentioned files will be automatically
|
|
19
19
|
created scoped to that application.
|
|
20
20
|
Otherwise a folder that doesn't have `application.json` might define resources as well but they will be created
|
|
@@ -30,6 +30,7 @@ At the top there are platform defitions such as `shared-libraries.json`
|
|
|
30
30
|
modules.json
|
|
31
31
|
operations.json
|
|
32
32
|
roles.json
|
|
33
|
+
jobs.json (optional)
|
|
33
34
|
- another-application
|
|
34
35
|
application.json
|
|
35
36
|
modules.json
|
|
@@ -9,7 +9,6 @@ export interface BootstrapFeatureFlag {
|
|
|
9
9
|
name: string;
|
|
10
10
|
description?: string;
|
|
11
11
|
enabled?: boolean;
|
|
12
|
-
applicationName?: string;
|
|
13
12
|
constraints?: Array<{
|
|
14
13
|
contextName: string;
|
|
15
14
|
operator: string;
|
|
@@ -23,6 +22,14 @@ export interface ModuleConfig {
|
|
|
23
22
|
name: string;
|
|
24
23
|
config: Record<string, any>;
|
|
25
24
|
}
|
|
25
|
+
export interface BootstrapJob {
|
|
26
|
+
name: string;
|
|
27
|
+
description?: string;
|
|
28
|
+
enabled?: boolean;
|
|
29
|
+
pattern: string;
|
|
30
|
+
taskType: string;
|
|
31
|
+
taskConfig: Record<string, any>;
|
|
32
|
+
}
|
|
26
33
|
export interface BootstrapSyncMetadata {
|
|
27
34
|
syncConfig: {
|
|
28
35
|
scopedTo: BootstrapOptions['scopedTo'];
|
|
@@ -41,7 +48,7 @@ export type BootstrapApplication = CreateApplicationDTO & {
|
|
|
41
48
|
operations: CreateOperationDTO[];
|
|
42
49
|
roles: CreateRoleDTO[];
|
|
43
50
|
modulesConfig: ModuleConfig[];
|
|
44
|
-
|
|
51
|
+
jobs: BootstrapJob[];
|
|
45
52
|
};
|
|
46
53
|
export type BootstrapPlatform = {
|
|
47
54
|
sharedLibraries: CreateSharedLibraryDTO[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bootstrap-sync-metadata.interface.d.ts","sourceRoot":"","sources":["../../../../src/bootstrap/domain/bootstrap-sync-metadata.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oEAAoE,CAAC;AACxG,OAAO,EAAE,sBAAsB,EAAE,MAAM,wEAAwE,CAAC;AAChH,OAAO,EAAE,oBAAoB,EAAkB,MAAM,oBAAoB,CAAC;AAC1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,sEAAsE,CAAC;AAC5G,OAAO,EAAE,aAAa,EAAE,MAAM,+DAA+D,CAAC;AAC9F,OAAO,EAAE,uBAAuB,EAAE,MAAM,qEAAqE,CAAC;AAC9G,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,
|
|
1
|
+
{"version":3,"file":"bootstrap-sync-metadata.interface.d.ts","sourceRoot":"","sources":["../../../../src/bootstrap/domain/bootstrap-sync-metadata.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oEAAoE,CAAC;AACxG,OAAO,EAAE,sBAAsB,EAAE,MAAM,wEAAwE,CAAC;AAChH,OAAO,EAAE,oBAAoB,EAAkB,MAAM,oBAAoB,CAAC;AAC1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,sEAAsE,CAAC;AAC5G,OAAO,EAAE,aAAa,EAAE,MAAM,+DAA+D,CAAC;AAC9F,OAAO,EAAE,uBAAuB,EAAE,MAAM,qEAAqE,CAAC;AAC9G,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,KAAK,CAAC;QAClB,WAAW,EAAE,MAAM,CAAC;QACpB,QAAQ,EAAE,MAAM,CAAC;QACjB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;KACnB,CAAC,CAAC;CACJ;AAED,MAAM,WAAW,uBAAwB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CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,eAAe,EAAE,sBAAsB,EAAE,CAAC;IAC1C,YAAY,CAAC,EAAE,oBAAoB,EAAE,CAAC;IACtC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;CACpD,CAAA"}
|
|
@@ -46,7 +46,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
46
46
|
scopedTo: 'blah'
|
|
47
47
|
},
|
|
48
48
|
};
|
|
49
|
-
const result = (() => { const _io0 = input => "object" === typeof input.syncConfig && null !== input.syncConfig && _io1(input.syncConfig) && (undefined === input.sharedLibraries || Array.isArray(input.sharedLibraries) && input.sharedLibraries.every(elem => "object" === typeof elem && null !== elem && _io2(elem))) && (undefined === input.featureFlags || Array.isArray(input.featureFlags) && input.featureFlags.every(elem => "object" === typeof elem && null !== elem && _io3(elem))) && (undefined === input.catalog || Array.isArray(input.catalog) && input.catalog.every(elem => "object" === typeof elem && null !== elem && _io5(elem))) && (undefined === input.applicationsAuthz || Array.isArray(input.applicationsAuthz) && input.applicationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io13(elem))) && (undefined === input.rolesAuthz || Array.isArray(input.rolesAuthz) && input.rolesAuthz.every(elem => "object" === typeof elem && null !== elem && _io14(elem))) && (undefined === input.operationsAuthz || Array.isArray(input.operationsAuthz) && input.operationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io15(elem))) && (undefined === input.modulesConfig || Array.isArray(input.modulesConfig) && input.modulesConfig.every(elem => "object" === typeof elem && null !== elem && _io16(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.enabled || "boolean" === typeof input.enabled) && (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.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 && _io5(elem))) && (undefined === input.applicationsAuthz || Array.isArray(input.applicationsAuthz) && input.applicationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io13(elem))) && (undefined === input.rolesAuthz || Array.isArray(input.rolesAuthz) && input.rolesAuthz.every(elem => "object" === typeof elem && null !== elem && _io14(elem))) && (undefined === input.operationsAuthz || Array.isArray(input.operationsAuthz) && input.operationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io15(elem))) && (undefined === input.modulesConfig || Array.isArray(input.modulesConfig) && input.modulesConfig.every(elem => "object" === typeof elem && null !== elem && _io16(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.enabled || "boolean" === typeof input.enabled) && (undefined === input.constraints || Array.isArray(input.constraints) && input.constraints.every(elem => "object" === typeof elem && null !== elem && _io4(elem))); const _io4 = input => "string" === typeof input.contextName && "string" === typeof input.operator && (undefined === input.values || Array.isArray(input.values) && input.values.every(elem => "string" === typeof elem)); const _io5 = 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 && _io6(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) && _io7(input.commonPaths)) && (undefined === input.ui || "object" === typeof input.ui && null !== input.ui && _io8(input.ui)) && (undefined === input.cloudFunction || "object" === typeof input.cloudFunction && null !== input.cloudFunction && _io10(input.cloudFunction)) && (undefined === input.authorization || "object" === typeof input.authorization && null !== input.authorization && false === Array.isArray(input.authorization) && _io11(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 _io6 = input => "string" === typeof input.host && "number" === typeof input.port && (undefined === input.protocol || "string" === typeof input.protocol) && (undefined === input.includeBaseURL || "boolean" === typeof input.includeBaseURL); const _io7 = 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 _io8 = 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) && _io9(input.customProps)) && (undefined === input.shell || "boolean" === typeof input.shell) && (undefined === input.isPlatformCustomization || "boolean" === typeof input.isPlatformCustomization); const _io9 = input => Object.keys(input).every(key => {
|
|
50
50
|
const value = input[key];
|
|
51
51
|
if (undefined === value)
|
|
52
52
|
return true;
|
|
@@ -204,10 +204,6 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
204
204
|
path: _path + ".enabled",
|
|
205
205
|
expected: "(boolean | undefined)",
|
|
206
206
|
value: input.enabled
|
|
207
|
-
}), undefined === input.applicationName || "string" === typeof input.applicationName || _report(_exceptionable, {
|
|
208
|
-
path: _path + ".applicationName",
|
|
209
|
-
expected: "(string | undefined)",
|
|
210
|
-
value: input.applicationName
|
|
211
207
|
}), undefined === input.constraints || (Array.isArray(input.constraints) || _report(_exceptionable, {
|
|
212
208
|
path: _path + ".constraints",
|
|
213
209
|
expected: "(Array<__type> | undefined)",
|
|
@@ -252,9 +248,9 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
252
248
|
path: _path + ".displayName",
|
|
253
249
|
expected: "string",
|
|
254
250
|
value: input.displayName
|
|
255
|
-
}), "service" === input.type || "app" === input.type || "utility" === input.type || "cloud-function" === input.type || "documentation" === input.type || _report(_exceptionable, {
|
|
251
|
+
}), "service" === input.type || "app" === input.type || "tool" === input.type || "utility" === input.type || "cloud-function" === input.type || "documentation" === input.type || _report(_exceptionable, {
|
|
256
252
|
path: _path + ".type",
|
|
257
|
-
expected: "(\"app\" | \"cloud-function\" | \"documentation\" | \"service\" | \"utility\")",
|
|
253
|
+
expected: "(\"app\" | \"cloud-function\" | \"documentation\" | \"service\" | \"tool\" | \"utility\")",
|
|
258
254
|
value: input.type
|
|
259
255
|
}), "string" === typeof input.baseUrl || _report(_exceptionable, {
|
|
260
256
|
path: _path + ".baseUrl",
|
|
@@ -560,7 +556,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
560
556
|
const invalidObject = {
|
|
561
557
|
invalidField: 'invalidValue',
|
|
562
558
|
};
|
|
563
|
-
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 && _io5(elem))) && (undefined === input.applicationsAuthz || Array.isArray(input.applicationsAuthz) && input.applicationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io13(elem))) && (undefined === input.rolesAuthz || Array.isArray(input.rolesAuthz) && input.rolesAuthz.every(elem => "object" === typeof elem && null !== elem && _io14(elem))) && (undefined === input.operationsAuthz || Array.isArray(input.operationsAuthz) && input.operationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io15(elem))) && (undefined === input.modulesConfig || Array.isArray(input.modulesConfig) && input.modulesConfig.every(elem => "object" === typeof elem && null !== elem && _io16(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.enabled || "boolean" === typeof input.enabled) && (undefined === input.
|
|
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.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 && _io5(elem))) && (undefined === input.applicationsAuthz || Array.isArray(input.applicationsAuthz) && input.applicationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io13(elem))) && (undefined === input.rolesAuthz || Array.isArray(input.rolesAuthz) && input.rolesAuthz.every(elem => "object" === typeof elem && null !== elem && _io14(elem))) && (undefined === input.operationsAuthz || Array.isArray(input.operationsAuthz) && input.operationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io15(elem))) && (undefined === input.modulesConfig || Array.isArray(input.modulesConfig) && input.modulesConfig.every(elem => "object" === typeof elem && null !== elem && _io16(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.enabled || "boolean" === typeof input.enabled) && (undefined === input.constraints || Array.isArray(input.constraints) && input.constraints.every(elem => "object" === typeof elem && null !== elem && _io4(elem))); const _io4 = input => "string" === typeof input.contextName && "string" === typeof input.operator && (undefined === input.values || Array.isArray(input.values) && input.values.every(elem => "string" === typeof elem)); const _io5 = 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 && _io6(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) && _io7(input.commonPaths)) && (undefined === input.ui || "object" === typeof input.ui && null !== input.ui && _io8(input.ui)) && (undefined === input.cloudFunction || "object" === typeof input.cloudFunction && null !== input.cloudFunction && _io10(input.cloudFunction)) && (undefined === input.authorization || "object" === typeof input.authorization && null !== input.authorization && false === Array.isArray(input.authorization) && _io11(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 _io6 = input => "string" === typeof input.host && "number" === typeof input.port && (undefined === input.protocol || "string" === typeof input.protocol) && (undefined === input.includeBaseURL || "boolean" === typeof input.includeBaseURL); const _io7 = 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 _io8 = 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) && _io9(input.customProps)) && (undefined === input.shell || "boolean" === typeof input.shell) && (undefined === input.isPlatformCustomization || "boolean" === typeof input.isPlatformCustomization); const _io9 = input => Object.keys(input).every(key => {
|
|
564
560
|
const value = input[key];
|
|
565
561
|
if (undefined === value)
|
|
566
562
|
return true;
|
|
@@ -718,10 +714,6 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
718
714
|
path: _path + ".enabled",
|
|
719
715
|
expected: "(boolean | undefined)",
|
|
720
716
|
value: input.enabled
|
|
721
|
-
}), undefined === input.applicationName || "string" === typeof input.applicationName || _report(_exceptionable, {
|
|
722
|
-
path: _path + ".applicationName",
|
|
723
|
-
expected: "(string | undefined)",
|
|
724
|
-
value: input.applicationName
|
|
725
717
|
}), undefined === input.constraints || (Array.isArray(input.constraints) || _report(_exceptionable, {
|
|
726
718
|
path: _path + ".constraints",
|
|
727
719
|
expected: "(Array<__type> | undefined)",
|
|
@@ -766,9 +758,9 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
766
758
|
path: _path + ".displayName",
|
|
767
759
|
expected: "string",
|
|
768
760
|
value: input.displayName
|
|
769
|
-
}), "service" === input.type || "app" === input.type || "utility" === input.type || "cloud-function" === input.type || "documentation" === input.type || _report(_exceptionable, {
|
|
761
|
+
}), "service" === input.type || "app" === input.type || "tool" === input.type || "utility" === input.type || "cloud-function" === input.type || "documentation" === input.type || _report(_exceptionable, {
|
|
770
762
|
path: _path + ".type",
|
|
771
|
-
expected: "(\"app\" | \"cloud-function\" | \"documentation\" | \"service\" | \"utility\")",
|
|
763
|
+
expected: "(\"app\" | \"cloud-function\" | \"documentation\" | \"service\" | \"tool\" | \"utility\")",
|
|
772
764
|
value: input.type
|
|
773
765
|
}), "string" === typeof input.baseUrl || _report(_exceptionable, {
|
|
774
766
|
path: _path + ".baseUrl",
|
|
@@ -1095,7 +1087,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1095
1087
|
scopedTo: "any"
|
|
1096
1088
|
},
|
|
1097
1089
|
};
|
|
1098
|
-
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 && _io5(elem))) && (undefined === input.applicationsAuthz || Array.isArray(input.applicationsAuthz) && input.applicationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io13(elem))) && (undefined === input.rolesAuthz || Array.isArray(input.rolesAuthz) && input.rolesAuthz.every(elem => "object" === typeof elem && null !== elem && _io14(elem))) && (undefined === input.operationsAuthz || Array.isArray(input.operationsAuthz) && input.operationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io15(elem))) && (undefined === input.modulesConfig || Array.isArray(input.modulesConfig) && input.modulesConfig.every(elem => "object" === typeof elem && null !== elem && _io16(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.enabled || "boolean" === typeof input.enabled) && (undefined === input.
|
|
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.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 && _io5(elem))) && (undefined === input.applicationsAuthz || Array.isArray(input.applicationsAuthz) && input.applicationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io13(elem))) && (undefined === input.rolesAuthz || Array.isArray(input.rolesAuthz) && input.rolesAuthz.every(elem => "object" === typeof elem && null !== elem && _io14(elem))) && (undefined === input.operationsAuthz || Array.isArray(input.operationsAuthz) && input.operationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io15(elem))) && (undefined === input.modulesConfig || Array.isArray(input.modulesConfig) && input.modulesConfig.every(elem => "object" === typeof elem && null !== elem && _io16(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.enabled || "boolean" === typeof input.enabled) && (undefined === input.constraints || Array.isArray(input.constraints) && input.constraints.every(elem => "object" === typeof elem && null !== elem && _io4(elem))); const _io4 = input => "string" === typeof input.contextName && "string" === typeof input.operator && (undefined === input.values || Array.isArray(input.values) && input.values.every(elem => "string" === typeof elem)); const _io5 = 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 && _io6(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) && _io7(input.commonPaths)) && (undefined === input.ui || "object" === typeof input.ui && null !== input.ui && _io8(input.ui)) && (undefined === input.cloudFunction || "object" === typeof input.cloudFunction && null !== input.cloudFunction && _io10(input.cloudFunction)) && (undefined === input.authorization || "object" === typeof input.authorization && null !== input.authorization && false === Array.isArray(input.authorization) && _io11(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 _io6 = input => "string" === typeof input.host && "number" === typeof input.port && (undefined === input.protocol || "string" === typeof input.protocol) && (undefined === input.includeBaseURL || "boolean" === typeof input.includeBaseURL); const _io7 = 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 _io8 = 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) && _io9(input.customProps)) && (undefined === input.shell || "boolean" === typeof input.shell) && (undefined === input.isPlatformCustomization || "boolean" === typeof input.isPlatformCustomization); const _io9 = input => Object.keys(input).every(key => {
|
|
1099
1091
|
const value = input[key];
|
|
1100
1092
|
if (undefined === value)
|
|
1101
1093
|
return true;
|
|
@@ -1253,10 +1245,6 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1253
1245
|
path: _path + ".enabled",
|
|
1254
1246
|
expected: "(boolean | undefined)",
|
|
1255
1247
|
value: input.enabled
|
|
1256
|
-
}), undefined === input.applicationName || "string" === typeof input.applicationName || _report(_exceptionable, {
|
|
1257
|
-
path: _path + ".applicationName",
|
|
1258
|
-
expected: "(string | undefined)",
|
|
1259
|
-
value: input.applicationName
|
|
1260
1248
|
}), undefined === input.constraints || (Array.isArray(input.constraints) || _report(_exceptionable, {
|
|
1261
1249
|
path: _path + ".constraints",
|
|
1262
1250
|
expected: "(Array<__type> | undefined)",
|
|
@@ -1301,9 +1289,9 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1301
1289
|
path: _path + ".displayName",
|
|
1302
1290
|
expected: "string",
|
|
1303
1291
|
value: input.displayName
|
|
1304
|
-
}), "service" === input.type || "app" === input.type || "utility" === input.type || "cloud-function" === input.type || "documentation" === input.type || _report(_exceptionable, {
|
|
1292
|
+
}), "service" === input.type || "app" === input.type || "tool" === input.type || "utility" === input.type || "cloud-function" === input.type || "documentation" === input.type || _report(_exceptionable, {
|
|
1305
1293
|
path: _path + ".type",
|
|
1306
|
-
expected: "(\"app\" | \"cloud-function\" | \"documentation\" | \"service\" | \"utility\")",
|
|
1294
|
+
expected: "(\"app\" | \"cloud-function\" | \"documentation\" | \"service\" | \"tool\" | \"utility\")",
|
|
1307
1295
|
value: input.type
|
|
1308
1296
|
}), "string" === typeof input.baseUrl || _report(_exceptionable, {
|
|
1309
1297
|
path: _path + ".baseUrl",
|
|
@@ -1630,7 +1618,7 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1630
1618
|
scopedTo: "any"
|
|
1631
1619
|
},
|
|
1632
1620
|
};
|
|
1633
|
-
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 && _io5(elem))) && (undefined === input.applicationsAuthz || Array.isArray(input.applicationsAuthz) && input.applicationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io13(elem))) && (undefined === input.rolesAuthz || Array.isArray(input.rolesAuthz) && input.rolesAuthz.every(elem => "object" === typeof elem && null !== elem && _io14(elem))) && (undefined === input.operationsAuthz || Array.isArray(input.operationsAuthz) && input.operationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io15(elem))) && (undefined === input.modulesConfig || Array.isArray(input.modulesConfig) && input.modulesConfig.every(elem => "object" === typeof elem && null !== elem && _io16(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.enabled || "boolean" === typeof input.enabled) && (undefined === input.
|
|
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.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 && _io5(elem))) && (undefined === input.applicationsAuthz || Array.isArray(input.applicationsAuthz) && input.applicationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io13(elem))) && (undefined === input.rolesAuthz || Array.isArray(input.rolesAuthz) && input.rolesAuthz.every(elem => "object" === typeof elem && null !== elem && _io14(elem))) && (undefined === input.operationsAuthz || Array.isArray(input.operationsAuthz) && input.operationsAuthz.every(elem => "object" === typeof elem && null !== elem && _io15(elem))) && (undefined === input.modulesConfig || Array.isArray(input.modulesConfig) && input.modulesConfig.every(elem => "object" === typeof elem && null !== elem && _io16(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.enabled || "boolean" === typeof input.enabled) && (undefined === input.constraints || Array.isArray(input.constraints) && input.constraints.every(elem => "object" === typeof elem && null !== elem && _io4(elem))); const _io4 = input => "string" === typeof input.contextName && "string" === typeof input.operator && (undefined === input.values || Array.isArray(input.values) && input.values.every(elem => "string" === typeof elem)); const _io5 = 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 && _io6(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) && _io7(input.commonPaths)) && (undefined === input.ui || "object" === typeof input.ui && null !== input.ui && _io8(input.ui)) && (undefined === input.cloudFunction || "object" === typeof input.cloudFunction && null !== input.cloudFunction && _io10(input.cloudFunction)) && (undefined === input.authorization || "object" === typeof input.authorization && null !== input.authorization && false === Array.isArray(input.authorization) && _io11(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 _io6 = input => "string" === typeof input.host && "number" === typeof input.port && (undefined === input.protocol || "string" === typeof input.protocol) && (undefined === input.includeBaseURL || "boolean" === typeof input.includeBaseURL); const _io7 = 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 _io8 = 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) && _io9(input.customProps)) && (undefined === input.shell || "boolean" === typeof input.shell) && (undefined === input.isPlatformCustomization || "boolean" === typeof input.isPlatformCustomization); const _io9 = input => Object.keys(input).every(key => {
|
|
1634
1622
|
const value = input[key];
|
|
1635
1623
|
if (undefined === value)
|
|
1636
1624
|
return true;
|
|
@@ -1788,10 +1776,6 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1788
1776
|
path: _path + ".enabled",
|
|
1789
1777
|
expected: "(boolean | undefined)",
|
|
1790
1778
|
value: input.enabled
|
|
1791
|
-
}), undefined === input.applicationName || "string" === typeof input.applicationName || _report(_exceptionable, {
|
|
1792
|
-
path: _path + ".applicationName",
|
|
1793
|
-
expected: "(string | undefined)",
|
|
1794
|
-
value: input.applicationName
|
|
1795
1779
|
}), undefined === input.constraints || (Array.isArray(input.constraints) || _report(_exceptionable, {
|
|
1796
1780
|
path: _path + ".constraints",
|
|
1797
1781
|
expected: "(Array<__type> | undefined)",
|
|
@@ -1836,9 +1820,9 @@ describe('BootstrapSyncMetadata - type validations', () => {
|
|
|
1836
1820
|
path: _path + ".displayName",
|
|
1837
1821
|
expected: "string",
|
|
1838
1822
|
value: input.displayName
|
|
1839
|
-
}), "service" === input.type || "app" === input.type || "utility" === input.type || "cloud-function" === input.type || "documentation" === input.type || _report(_exceptionable, {
|
|
1823
|
+
}), "service" === input.type || "app" === input.type || "tool" === input.type || "utility" === input.type || "cloud-function" === input.type || "documentation" === input.type || _report(_exceptionable, {
|
|
1840
1824
|
path: _path + ".type",
|
|
1841
|
-
expected: "(\"app\" | \"cloud-function\" | \"documentation\" | \"service\" | \"utility\")",
|
|
1825
|
+
expected: "(\"app\" | \"cloud-function\" | \"documentation\" | \"service\" | \"tool\" | \"utility\")",
|
|
1842
1826
|
value: input.type
|
|
1843
1827
|
}), "string" === typeof input.baseUrl || _report(_exceptionable, {
|
|
1844
1828
|
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;AAI1B,QAAQ,CAAC,0CAA0C,EAAE,GAAG,EAAE;IAExD,EAAE,CAAC,kCAAkC,EAAE,GAAG,EAAE;QAC1C,MAAM,WAAW,GAA0B;YACzC,UAAU,EAAE;gBACV,QAAQ,EAAE,MAAM;aACjB;SACuB,CAAC;QAE3B,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"domain-validation.test.js","sourceRoot":"","sources":["../../../../src/bootstrap/domain/domain-validation.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAI1B,QAAQ,CAAC,0CAA0C,EAAE,GAAG,EAAE;IAExD,EAAE,CAAC,kCAAkC,EAAE,GAAG,EAAE;QAC1C,MAAM,WAAW,GAA0B;YACzC,UAAU,EAAE;gB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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":"read-bootstrap-applications.d.ts","sourceRoot":"","sources":["../../../src/bootstrap/read-bootstrap-applications.ts"],"names":[],"mappings":"AAGA,OAAO,EAIL,iBAAiB,EAElB,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"read-bootstrap-applications.d.ts","sourceRoot":"","sources":["../../../src/bootstrap/read-bootstrap-applications.ts"],"names":[],"mappings":"AAGA,OAAO,EAIL,iBAAiB,EAElB,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAgBxD;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,GAAI,MAAM,MAAM,EAAE,SAAS,gBAAgB,KAAG,iBAgCrF,CAAA"}
|
|
@@ -51,6 +51,7 @@ const FILE_OPERATIONS = 'operations.json';
|
|
|
51
51
|
const FILE_MODULES = 'modules.json';
|
|
52
52
|
const FILE_MODULES_CONFIG = 'modules-config.json';
|
|
53
53
|
const FILE_ROLES = 'roles.json';
|
|
54
|
+
const FILE_JOBS = 'jobs.json';
|
|
54
55
|
/**
|
|
55
56
|
* Inspects the filesystem reading all application definitions
|
|
56
57
|
* NOTE: this is a really quick implementation pretty raw.
|
|
@@ -62,7 +63,7 @@ const readPlatformBootstrapFolder = (path, options) => {
|
|
|
62
63
|
const { readdirSync } = require("fs");
|
|
63
64
|
// @ts-ignore
|
|
64
65
|
return readdirSync(path, { withFileTypes: true }).reduce((acc, item) => {
|
|
65
|
-
var _a
|
|
66
|
+
var _a;
|
|
66
67
|
if (item.name === FILE_SHARED_LIBRARIES) {
|
|
67
68
|
try {
|
|
68
69
|
acc.sharedLibraries = (() => { const _io0 = input => "string" === typeof input.name && "string" === typeof input.url && (undefined === input.description || "string" === typeof input.description); const _ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.name || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
@@ -114,7 +115,7 @@ const readPlatformBootstrapFolder = (path, options) => {
|
|
|
114
115
|
}
|
|
115
116
|
else if (item.name === FILE_FEATURE_FLAGS) {
|
|
116
117
|
try {
|
|
117
|
-
acc.featureFlags = (() => { const _io0 = input => "string" === typeof input.name && (undefined === input.description || "string" === typeof input.description) && (undefined === input.enabled || "boolean" === typeof input.enabled) && (undefined === input.
|
|
118
|
+
acc.featureFlags = (() => { const _io0 = input => "string" === typeof input.name && (undefined === input.description || "string" === typeof input.description) && (undefined === input.enabled || "boolean" === typeof input.enabled) && (undefined === input.constraints || Array.isArray(input.constraints) && input.constraints.every(elem => "object" === typeof elem && null !== elem && _io1(elem))); const _io1 = input => "string" === typeof input.contextName && "string" === typeof input.operator && (undefined === input.values || Array.isArray(input.values) && input.values.every(elem => "string" === typeof elem)); const _ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.name || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
118
119
|
method: "typia.assert",
|
|
119
120
|
path: _path + ".name",
|
|
120
121
|
expected: "string",
|
|
@@ -129,11 +130,6 @@ const readPlatformBootstrapFolder = (path, options) => {
|
|
|
129
130
|
path: _path + ".enabled",
|
|
130
131
|
expected: "(boolean | undefined)",
|
|
131
132
|
value: input.enabled
|
|
132
|
-
}, _errorFactory)) && (undefined === input.applicationName || "string" === typeof input.applicationName || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
133
|
-
method: "typia.assert",
|
|
134
|
-
path: _path + ".applicationName",
|
|
135
|
-
expected: "(string | undefined)",
|
|
136
|
-
value: input.applicationName
|
|
137
133
|
}, _errorFactory)) && (undefined === input.constraints || (Array.isArray(input.constraints) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
138
134
|
method: "typia.assert",
|
|
139
135
|
path: _path + ".constraints",
|
|
@@ -219,9 +215,6 @@ const readPlatformBootstrapFolder = (path, options) => {
|
|
|
219
215
|
const app = readApplicationDirectory((0, path_1.join)(path, item.name), globalApplication);
|
|
220
216
|
if (app.name !== pae_core_1.GLOBAL_APPLICATION_NAME) {
|
|
221
217
|
acc.applications[app.name] = app;
|
|
222
|
-
if ((_b = app.featureFlags) === null || _b === void 0 ? void 0 : _b.length) {
|
|
223
|
-
acc.featureFlags = [...((_c = acc.featureFlags) !== null && _c !== void 0 ? _c : []), ...app.featureFlags];
|
|
224
|
-
}
|
|
225
218
|
}
|
|
226
219
|
}
|
|
227
220
|
return acc;
|
|
@@ -234,7 +227,8 @@ const createGlobalApplication = () => ({
|
|
|
234
227
|
modules: [],
|
|
235
228
|
operations: [],
|
|
236
229
|
roles: [],
|
|
237
|
-
modulesConfig: []
|
|
230
|
+
modulesConfig: [],
|
|
231
|
+
jobs: []
|
|
238
232
|
});
|
|
239
233
|
const readApplicationDirectory = (path, globalApplication) => {
|
|
240
234
|
const { existsSync } = require("fs");
|
|
@@ -277,12 +271,12 @@ const readApplicationDirectory = (path, globalApplication) => {
|
|
|
277
271
|
}
|
|
278
272
|
return input;
|
|
279
273
|
}; })();
|
|
280
|
-
const application = existsSync((0, path_1.join)(path, FILE_APPLICATION)) ? Object.assign(Object.assign({}, assert((0, io_1.readJSONFile)((0, path_1.join)(path, FILE_APPLICATION)))), { modules: [], operations: [], roles: [], modulesConfig: [] }) : globalApplication;
|
|
274
|
+
const application = existsSync((0, path_1.join)(path, FILE_APPLICATION)) ? Object.assign(Object.assign({}, assert((0, io_1.readJSONFile)((0, path_1.join)(path, FILE_APPLICATION)))), { modules: [], operations: [], roles: [], modulesConfig: [], jobs: [] }) : globalApplication;
|
|
281
275
|
// read modules setting the application (if app is not global)
|
|
282
276
|
if (existsSync((0, path_1.join)(path, FILE_MODULES))) {
|
|
283
277
|
const data = readApplicationItems(path, FILE_MODULES, application, 'application');
|
|
284
278
|
try {
|
|
285
|
-
application.modules.push(...(() => { const _io0 = 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 && _io1(input.service)) && (Array.isArray(input.dependsOn) && input.dependsOn.every(elem => "string" === typeof elem)) && (undefined === input.commonPaths || "object" === typeof input.commonPaths && null !== input.commonPaths && false === Array.isArray(input.commonPaths) && _io2(input.commonPaths)) && (undefined === input.ui || "object" === typeof input.ui && null !== input.ui && _io3(input.ui)) && (undefined === input.cloudFunction || "object" === typeof input.cloudFunction && null !== input.cloudFunction && _io5(input.cloudFunction)) && (undefined === input.authorization || "object" === typeof input.authorization && null !== input.authorization && false === Array.isArray(input.authorization) && _io6(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 _io1 = input => "string" === typeof input.host && "number" === typeof input.port && (undefined === input.protocol || "string" === typeof input.protocol) && (undefined === input.includeBaseURL || "boolean" === typeof input.includeBaseURL); const _io2 = 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 _io3 = 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) && _io4(input.customProps)) && (undefined === input.shell || "boolean" === typeof input.shell) && (undefined === input.isPlatformCustomization || "boolean" === typeof input.isPlatformCustomization); const _io4 = input => Object.keys(input).every(key => {
|
|
279
|
+
application.modules.push(...(() => { const _io0 = 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 && _io1(input.service)) && (Array.isArray(input.dependsOn) && input.dependsOn.every(elem => "string" === typeof elem)) && (undefined === input.commonPaths || "object" === typeof input.commonPaths && null !== input.commonPaths && false === Array.isArray(input.commonPaths) && _io2(input.commonPaths)) && (undefined === input.ui || "object" === typeof input.ui && null !== input.ui && _io3(input.ui)) && (undefined === input.cloudFunction || "object" === typeof input.cloudFunction && null !== input.cloudFunction && _io5(input.cloudFunction)) && (undefined === input.authorization || "object" === typeof input.authorization && null !== input.authorization && false === Array.isArray(input.authorization) && _io6(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 _io1 = input => "string" === typeof input.host && "number" === typeof input.port && (undefined === input.protocol || "string" === typeof input.protocol) && (undefined === input.includeBaseURL || "boolean" === typeof input.includeBaseURL); const _io2 = 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 _io3 = 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) && _io4(input.customProps)) && (undefined === input.shell || "boolean" === typeof input.shell) && (undefined === input.isPlatformCustomization || "boolean" === typeof input.isPlatformCustomization); const _io4 = input => Object.keys(input).every(key => {
|
|
286
280
|
const value = input[key];
|
|
287
281
|
if (undefined === value)
|
|
288
282
|
return true;
|
|
@@ -297,10 +291,10 @@ const readApplicationDirectory = (path, globalApplication) => {
|
|
|
297
291
|
path: _path + ".displayName",
|
|
298
292
|
expected: "string",
|
|
299
293
|
value: input.displayName
|
|
300
|
-
}, _errorFactory)) && ("service" === input.type || "app" === input.type || "utility" === input.type || "cloud-function" === input.type || "documentation" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
294
|
+
}, _errorFactory)) && ("service" === input.type || "app" === input.type || "tool" === input.type || "utility" === input.type || "cloud-function" === input.type || "documentation" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
301
295
|
method: "typia.assert",
|
|
302
296
|
path: _path + ".type",
|
|
303
|
-
expected: "(\"app\" | \"cloud-function\" | \"documentation\" | \"service\" | \"utility\")",
|
|
297
|
+
expected: "(\"app\" | \"cloud-function\" | \"documentation\" | \"service\" | \"tool\" | \"utility\")",
|
|
304
298
|
value: input.type
|
|
305
299
|
}, _errorFactory)) && ("string" === typeof input.baseUrl || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
306
300
|
method: "typia.assert",
|
|
@@ -744,9 +738,15 @@ const readApplicationDirectory = (path, globalApplication) => {
|
|
|
744
738
|
throw new Error(`Error reading ${(0, path_1.join)(path, FILE_ROLES)} file: ${e}`);
|
|
745
739
|
}
|
|
746
740
|
}
|
|
747
|
-
if (existsSync((0, path_1.join)(path,
|
|
741
|
+
if (existsSync((0, path_1.join)(path, FILE_JOBS))) {
|
|
742
|
+
const data = (0, io_1.readJSONFile)((0, path_1.join)(path, FILE_JOBS));
|
|
748
743
|
try {
|
|
749
|
-
|
|
744
|
+
application.jobs.push(...(() => { const _io0 = input => "string" === typeof input.name && (undefined === input.description || "string" === typeof input.description) && (undefined === input.enabled || "boolean" === typeof input.enabled) && "string" === typeof input.pattern && "string" === typeof input.taskType && ("object" === typeof input.taskConfig && null !== input.taskConfig && false === Array.isArray(input.taskConfig) && _io1(input.taskConfig)); const _io1 = input => Object.keys(input).every(key => {
|
|
745
|
+
const value = input[key];
|
|
746
|
+
if (undefined === value)
|
|
747
|
+
return true;
|
|
748
|
+
return true;
|
|
749
|
+
}); const _ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.name || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
750
750
|
method: "typia.assert",
|
|
751
751
|
path: _path + ".name",
|
|
752
752
|
expected: "string",
|
|
@@ -761,89 +761,61 @@ const readApplicationDirectory = (path, globalApplication) => {
|
|
|
761
761
|
path: _path + ".enabled",
|
|
762
762
|
expected: "(boolean | undefined)",
|
|
763
763
|
value: input.enabled
|
|
764
|
-
}, _errorFactory)) && (
|
|
765
|
-
method: "typia.assert",
|
|
766
|
-
path: _path + ".applicationName",
|
|
767
|
-
expected: "(string | undefined)",
|
|
768
|
-
value: input.applicationName
|
|
769
|
-
}, _errorFactory)) && (undefined === input.constraints || (Array.isArray(input.constraints) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
770
|
-
method: "typia.assert",
|
|
771
|
-
path: _path + ".constraints",
|
|
772
|
-
expected: "(Array<__type> | undefined)",
|
|
773
|
-
value: input.constraints
|
|
774
|
-
}, _errorFactory)) && input.constraints.every((elem, _index5) => ("object" === typeof elem && null !== elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
775
|
-
method: "typia.assert",
|
|
776
|
-
path: _path + ".constraints[" + _index5 + "]",
|
|
777
|
-
expected: "__type",
|
|
778
|
-
value: elem
|
|
779
|
-
}, _errorFactory)) && _ao1(elem, _path + ".constraints[" + _index5 + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
780
|
-
method: "typia.assert",
|
|
781
|
-
path: _path + ".constraints[" + _index5 + "]",
|
|
782
|
-
expected: "__type",
|
|
783
|
-
value: elem
|
|
784
|
-
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
785
|
-
method: "typia.assert",
|
|
786
|
-
path: _path + ".constraints",
|
|
787
|
-
expected: "(Array<__type> | undefined)",
|
|
788
|
-
value: input.constraints
|
|
789
|
-
}, _errorFactory)); const _ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.contextName || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
764
|
+
}, _errorFactory)) && ("string" === typeof input.pattern || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
790
765
|
method: "typia.assert",
|
|
791
|
-
path: _path + ".
|
|
766
|
+
path: _path + ".pattern",
|
|
792
767
|
expected: "string",
|
|
793
|
-
value: input.
|
|
794
|
-
}, _errorFactory)) && ("string" === typeof input.
|
|
768
|
+
value: input.pattern
|
|
769
|
+
}, _errorFactory)) && ("string" === typeof input.taskType || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
795
770
|
method: "typia.assert",
|
|
796
|
-
path: _path + ".
|
|
771
|
+
path: _path + ".taskType",
|
|
797
772
|
expected: "string",
|
|
798
|
-
value: input.
|
|
799
|
-
}, _errorFactory)) && (
|
|
800
|
-
method: "typia.assert",
|
|
801
|
-
path: _path + ".values",
|
|
802
|
-
expected: "(Array<string> | undefined)",
|
|
803
|
-
value: input.values
|
|
804
|
-
}, _errorFactory)) && input.values.every((elem, _index6) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
773
|
+
value: input.taskType
|
|
774
|
+
}, _errorFactory)) && (("object" === typeof input.taskConfig && null !== input.taskConfig && false === Array.isArray(input.taskConfig) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
805
775
|
method: "typia.assert",
|
|
806
|
-
path: _path + ".
|
|
807
|
-
expected: "string",
|
|
808
|
-
value:
|
|
809
|
-
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
776
|
+
path: _path + ".taskConfig",
|
|
777
|
+
expected: "Record<string, any>",
|
|
778
|
+
value: input.taskConfig
|
|
779
|
+
}, _errorFactory)) && _ao1(input.taskConfig, _path + ".taskConfig", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
810
780
|
method: "typia.assert",
|
|
811
|
-
path: _path + ".
|
|
812
|
-
expected: "
|
|
813
|
-
value: input.
|
|
814
|
-
}, _errorFactory)); const
|
|
781
|
+
path: _path + ".taskConfig",
|
|
782
|
+
expected: "Record<string, any>",
|
|
783
|
+
value: input.taskConfig
|
|
784
|
+
}, _errorFactory)); const _ao1 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
785
|
+
const value = input[key];
|
|
786
|
+
if (undefined === value)
|
|
787
|
+
return true;
|
|
788
|
+
return true;
|
|
789
|
+
}); const __is = input => Array.isArray(input) && input.every(elem => "object" === typeof elem && null !== elem && _io0(elem)); let _errorFactory; return (input, errorFactory) => {
|
|
815
790
|
if (false === __is(input)) {
|
|
816
791
|
_errorFactory = errorFactory;
|
|
817
792
|
((input, _path, _exceptionable = true) => (Array.isArray(input) || __typia_transform__assertGuard._assertGuard(true, {
|
|
818
793
|
method: "typia.assert",
|
|
819
794
|
path: _path + "",
|
|
820
|
-
expected: "Array<
|
|
795
|
+
expected: "Array<BootstrapJob>",
|
|
821
796
|
value: input
|
|
822
|
-
}, _errorFactory)) && input.every((elem,
|
|
797
|
+
}, _errorFactory)) && input.every((elem, _index2) => ("object" === typeof elem && null !== elem || __typia_transform__assertGuard._assertGuard(true, {
|
|
823
798
|
method: "typia.assert",
|
|
824
|
-
path: _path + "[" +
|
|
825
|
-
expected: "
|
|
799
|
+
path: _path + "[" + _index2 + "]",
|
|
800
|
+
expected: "BootstrapJob",
|
|
826
801
|
value: elem
|
|
827
|
-
}, _errorFactory)) && _ao0(elem, _path + "[" +
|
|
802
|
+
}, _errorFactory)) && _ao0(elem, _path + "[" + _index2 + "]", true) || __typia_transform__assertGuard._assertGuard(true, {
|
|
828
803
|
method: "typia.assert",
|
|
829
|
-
path: _path + "[" +
|
|
830
|
-
expected: "
|
|
804
|
+
path: _path + "[" + _index2 + "]",
|
|
805
|
+
expected: "BootstrapJob",
|
|
831
806
|
value: elem
|
|
832
807
|
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(true, {
|
|
833
808
|
method: "typia.assert",
|
|
834
809
|
path: _path + "",
|
|
835
|
-
expected: "Array<
|
|
810
|
+
expected: "Array<BootstrapJob>",
|
|
836
811
|
value: input
|
|
837
812
|
}, _errorFactory))(input, "$input", true);
|
|
838
813
|
}
|
|
839
814
|
return input;
|
|
840
|
-
}; })()(
|
|
841
|
-
application.featureFlags = rawFlags.map(flag => application.name === pae_core_1.GLOBAL_APPLICATION_NAME
|
|
842
|
-
? flag
|
|
843
|
-
: Object.assign(Object.assign({}, flag), { applicationName: application.name }));
|
|
815
|
+
}; })()(data));
|
|
844
816
|
}
|
|
845
817
|
catch (e) {
|
|
846
|
-
throw new Error(`Error reading ${(0, path_1.join)(path,
|
|
818
|
+
throw new Error(`Error reading ${(0, path_1.join)(path, FILE_JOBS)} file: ${e}`);
|
|
847
819
|
}
|
|
848
820
|
}
|
|
849
821
|
return application;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read-bootstrap-applications.js","sourceRoot":"","sources":["../../../src/bootstrap/read-bootstrap-applications.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAA4B;AAE5B,oCAA2C;AAS3C,iDAAmF;AAGnF,kDAA0B;AAE1B,cAAc;AACd,MAAM,qBAAqB,GAAG,uBAAuB,CAAC;AACtD,MAAM,kBAAkB,GAAG,oBAAoB,CAAC;AAChD,MAAM,gBAAgB,GAAG,kBAAkB,CA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;;;;;;;;;;oBAAgB,IAAI,CAAC,CAAC,CAAC;QAC/C,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,MAAM,IAAI,KAAK,CAAC,iBAAiB,IAAA,WAAI,EAAC,IAAI,EAAE,SAAS,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;QACvE,CAAC;IACH,CAAC;IAED,OAAO,WAAW,CAAA;AACpB,CAAC,CAAA;AAED,MAAM,oBAAoB,GAAG,CAAI,IAAY,EAAE,QAAgB,EAAE,WAAiC,EAAE,YAAoB,iBAAiB,EAAE,EAAE,CAC1I,IAAA,iBAAY,EAAC,IAAA,WAAI,EAAC,IAAI,EAAE,QAAQ,CAAC,CAAoB;KACnD,GAAG,CAAC,IAAI,CAAC,EAAE;IACV,OAAO,WAAW,CAAC,IAAI,KAAK,kCAAuB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,iCACxD,IAAI,KACP,CAAC,SAAS,CAAC,EAAE,WAAW,CAAC,IAAI,IAC7B,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
|
@@ -21,8 +21,8 @@ const runBootstrapSync = (pae, config) => __awaiter(void 0, void 0, void 0, func
|
|
|
21
21
|
yield (0, sync_catalog_1.syncCatalog)(pae, catalog, syncConfig);
|
|
22
22
|
yield (0, sync_modules_config_1.syncModulesConfig)(pae, modulesConfig);
|
|
23
23
|
yield (0, sync_shared_libraries_1.syncSharedLibraries)(pae, sharedLibraries, syncConfig);
|
|
24
|
-
yield (0, sync_applications_1.syncApplications)(pae, applicationsAuthz, syncConfig);
|
|
25
24
|
yield (0, sync_feature_flags_1.syncFeatureFlags)(pae, featureFlags, syncConfig);
|
|
25
|
+
yield (0, sync_applications_1.syncApplications)(pae, applicationsAuthz, syncConfig);
|
|
26
26
|
yield (0, sync_authz_entities_1.syncAuthzEntities)(pae, rolesAuthz, operationsAuthz, syncConfig);
|
|
27
27
|
});
|
|
28
28
|
exports.runBootstrapSync = runBootstrapSync;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-bootstrap-sync.service.js","sourceRoot":"","sources":["../../../src/bootstrap/run-bootstrap-sync.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,+DAA2D;AAC3D,iFAA4E;AAC5E,2EAAsE;AACtE,yEAAqE;AACrE,6EAAwE;AACxE,6EAAwE;AAEjE,MAAM,gBAAgB,GAAG,CAC9B,GAAQ,EACR,MAA6B,EAC7B,EAAE;IACF,MAAM,EAAE,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,iBAAiB,EAAE,UAAU,EAAE,eAAe,EAAE,aAAa,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;IAErI,MAAM,IAAA,0BAAW,EAAC,GAAG,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;IAE5C,MAAM,IAAA,uCAAiB,EAAC,GAAG,EAAE,aAAa,CAAC,CAAC;IAE5C,MAAM,IAAA,2CAAmB,EAAC,GAAG,EAAE,eAAe,EAAE,UAAU,CAAC,CAAC;IAE5D,MAAM,IAAA,
|
|
1
|
+
{"version":3,"file":"run-bootstrap-sync.service.js","sourceRoot":"","sources":["../../../src/bootstrap/run-bootstrap-sync.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,+DAA2D;AAC3D,iFAA4E;AAC5E,2EAAsE;AACtE,yEAAqE;AACrE,6EAAwE;AACxE,6EAAwE;AAEjE,MAAM,gBAAgB,GAAG,CAC9B,GAAQ,EACR,MAA6B,EAC7B,EAAE;IACF,MAAM,EAAE,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,iBAAiB,EAAE,UAAU,EAAE,eAAe,EAAE,aAAa,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;IAErI,MAAM,IAAA,0BAAW,EAAC,GAAG,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;IAE5C,MAAM,IAAA,uCAAiB,EAAC,GAAG,EAAE,aAAa,CAAC,CAAC;IAE5C,MAAM,IAAA,2CAAmB,EAAC,GAAG,EAAE,eAAe,EAAE,UAAU,CAAC,CAAC;IAE5D,MAAM,IAAA,qCAAgB,EAAC,GAAG,EAAE,YAAY,EAAE,UAAU,CAAC,CAAC;IAEtD,MAAM,IAAA,oCAAgB,EAAC,GAAG,EAAE,iBAAiB,EAAE,UAAU,CAAC,CAAC;IAE3D,MAAM,IAAA,uCAAiB,EAAC,GAAG,EAAE,UAAU,EAAE,eAAe,EAAE,UAAU,CAAC,CAAC;AACxE,CAAC,CAAA,CAAA;AAjBY,QAAA,gBAAgB,oBAiB5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync-catalog.d.ts","sourceRoot":"","sources":["../../../../src/bootstrap/synchronizers/sync-catalog.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,GAAG,EAEJ,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AAKpF,eAAO,MAAM,WAAW,GAAU,KAAK,GAAG,EAAE,SAAS,qBAAqB,CAAC,SAAS,CAAC,EAAE,YAAY,qBAAqB,CAAC,YAAY,CAAC,
|
|
1
|
+
{"version":3,"file":"sync-catalog.d.ts","sourceRoot":"","sources":["../../../../src/bootstrap/synchronizers/sync-catalog.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,GAAG,EAEJ,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AAKpF,eAAO,MAAM,WAAW,GAAU,KAAK,GAAG,EAAE,SAAS,qBAAqB,CAAC,SAAS,CAAC,EAAE,YAAY,qBAAqB,CAAC,YAAY,CAAC,kBAiBrI,CAAA;AAkED,eAAO,MAAM,OAAO,GAAI,OAAO,MAAM,EAAE,QAAQ,GAAG,YAAgC,CAAA"}
|
|
@@ -19,6 +19,7 @@ const sync_entities_1 = __importDefault(require("./sync-entities"));
|
|
|
19
19
|
const ramda_1 = require("ramda");
|
|
20
20
|
const syncCatalog = (pae, catalog, syncConfig) => __awaiter(void 0, void 0, void 0, function* () {
|
|
21
21
|
if (catalog) {
|
|
22
|
+
yield fixWrongOwner(pae, catalog, syncConfig.scopedTo);
|
|
22
23
|
yield (0, sync_entities_1.default)({
|
|
23
24
|
name: 'catalog-modules',
|
|
24
25
|
data: setModuleDefaults(catalog !== null && catalog !== void 0 ? catalog : []),
|
|
@@ -35,6 +36,27 @@ const syncCatalog = (pae, catalog, syncConfig) => __awaiter(void 0, void 0, void
|
|
|
35
36
|
}
|
|
36
37
|
});
|
|
37
38
|
exports.syncCatalog = syncCatalog;
|
|
39
|
+
/**
|
|
40
|
+
* Temporary fix for modules whose createdBy was incorrectly set to 'pae_gateway_service'
|
|
41
|
+
* due to the gateway always using its own identity when running bootstrap syncs.
|
|
42
|
+
* Affected modules are deleted and recreated so the correct scopedTo owner is applied.
|
|
43
|
+
*/
|
|
44
|
+
const fixWrongOwner = (pae, catalog, scopedTo) => __awaiter(void 0, void 0, void 0, function* () {
|
|
45
|
+
const serverModules = yield pae.getAllModules();
|
|
46
|
+
const catalogNames = new Set(catalog.map(m => m.name));
|
|
47
|
+
const modulesToFix = serverModules.filter(m => catalogNames.has(m.name) && m.createdBy === 'pae_gateway_service');
|
|
48
|
+
if (modulesToFix.length === 0) {
|
|
49
|
+
console.log('>>> [FIXING OWNER] No modules with wrong owner found, skipping fix.');
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
console.log(`>>> [FIXING OWNER] ${modulesToFix.length} module(s) with wrong owner 'pae_gateway_service', re-creating as '${scopedTo}'`);
|
|
53
|
+
yield Promise.all(modulesToFix.map((m) => __awaiter(void 0, void 0, void 0, function* () {
|
|
54
|
+
const localModule = catalog.find(c => c.name === m.name);
|
|
55
|
+
console.log(`>>> [FIXING OWNER] re-creating module ${m.name}`);
|
|
56
|
+
yield pae.deleteModule(m.name);
|
|
57
|
+
yield pae.createModule(localModule);
|
|
58
|
+
})));
|
|
59
|
+
});
|
|
38
60
|
/**
|
|
39
61
|
* NOTE !
|
|
40
62
|
* This is IMPORTANT ! See note in ModuleMetadata type.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync-catalog.js","sourceRoot":"","sources":["../../../../src/bootstrap/synchronizers/sync-catalog.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,iDAK4B;AAE5B,gEAA4D;AAC5D,oEAA2C;AAC3C,iCAA8B;AAEvB,MAAM,WAAW,GAAG,CAAO,GAAQ,EAAE,OAAyC,EAAE,UAA+C,EAAE,EAAE;IACxI,IAAI,OAAO,EAAE,CAAC;QACZ,MAAM,IAAA,uBAAY,EAAuC;YACvD,IAAI,EAAE,iBAAiB;YACvB,IAAI,EAAE,iBAAiB,CAAC,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,CAAC;YACtC,QAAQ,EAAE,UAAU,CAAC,QAAQ;YAC7B,YAAY,EAAE;gBACZ,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,MAAM,CAAC,IAAI;gBAC5D,KAAK,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,aAAa,EAAE;gBAChC,GAAG,EAAE,MAAM,CAAC,EAAE,CAAC,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC;gBACvC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC;gBAC1C,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC;gBAC/C,UAAU,EAAE,IAAA,wCAAkB,EAAC,CAAC,SAAS,CAAC,CAAC;aAC5C;SACF,CAAC,CAAA;IACJ,CAAC;AACH,CAAC,CAAA,CAAA;
|
|
1
|
+
{"version":3,"file":"sync-catalog.js","sourceRoot":"","sources":["../../../../src/bootstrap/synchronizers/sync-catalog.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,iDAK4B;AAE5B,gE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,CAAC;YACpC,CAAC,CAAC,OAAO,CAAC,cAAc,GAAG,KAAK,CAAA;QAClC,CAAC;QACD,IAAI,CAAC,CAAC,EAAE,IAAI,IAAA,aAAK,EAAC,CAAC,CAAC,EAAE,CAAC,uBAAuB,CAAC,EAAE,CAAC;YAChD,CAAC,CAAC,EAAE,CAAC,uBAAuB,GAAG,KAAK,CAAA;QACtC,CAAC;QACD,IAAI,CAAC,CAAC,EAAE,IAAI,IAAA,aAAK,EAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;YAC9B,CAAC,CAAC,EAAE,CAAC,KAAK,GAAG,KAAK,CAAA;QACpB,CAAC;QACD,0DAA0D;QAC1D,4DAA4D;QAC5D,6EAA6E;QAC7E,6EAA6E;QAC7E,CAAC,CAAC,QAAQ,GAAG,IAAA,0BAAe,EAC1B;YACE,KAAK,EAAE,MAAA,CAAC,CAAC,EAAE,0CAAE,KAAK;YAClB,uBAAuB,EAAE,MAAA,CAAC,CAAC,EAAE,0CAAE,uBAAuB;SACvD,EACD,CAAC,CAAC,QAAQ,CACX,CAAC;IACJ,CAAC,CAAC,CAAA;IACF,OAAO,OAAO,CAAA;AAChB,CAAC,CAAA;AAEM,MAAM,OAAO,GAAG,CAAC,KAAa,EAAE,MAAW,EAAE,EAAE,CAAC,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,SAAS,MAAK,KAAK,CAAA;AAArE,QAAA,OAAO,WAA8D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync-feature-flags.d.ts","sourceRoot":"","sources":["../../../../src/bootstrap/synchronizers/sync-feature-flags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AACzC,OAAO,EAAE,qBAAqB,EAAwB,MAAM,6CAA6C,CAAC;
|
|
1
|
+
{"version":3,"file":"sync-feature-flags.d.ts","sourceRoot":"","sources":["../../../../src/bootstrap/synchronizers/sync-feature-flags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AACzC,OAAO,EAAE,qBAAqB,EAAwB,MAAM,6CAA6C,CAAC;AA4C1G;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAC3B,KAAK,GAAG,EACR,cAAc,qBAAqB,CAAC,cAAc,CAAC,EACnD,YAAY,qBAAqB,CAAC,YAAY,CAAC,kBAwChD,CAAC"}
|
|
@@ -20,7 +20,6 @@ const transformFeatureFlag = (flag) => {
|
|
|
20
20
|
name: flag.name,
|
|
21
21
|
description: (_a = flag.description) !== null && _a !== void 0 ? _a : '',
|
|
22
22
|
enabled: (_b = flag.enabled) !== null && _b !== void 0 ? _b : false,
|
|
23
|
-
applicationName: flag.applicationName,
|
|
24
23
|
strategies: [{
|
|
25
24
|
type: 'boolean',
|
|
26
25
|
parameters: {},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync-feature-flags.js","sourceRoot":"","sources":["../../../../src/bootstrap/synchronizers/sync-feature-flags.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"sync-feature-flags.js","sourceRoot":"","sources":["../../../../src/bootstrap/synchronizers/sync-feature-flags.ts"],"names":[],"mappings":";;;;;;;;;;;;AA4BA;;;GAGG;AACH,MAAM,oBAAoB,GAAG,CAAC,IAA0B,EAAwB,EAAE;;IAChF,OAAO;QACL,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,WAAW,EAAE,MAAA,IAAI,CAAC,WAAW,mCAAI,EAAE;QACnC,OAAO,EAAE,MAAA,IAAI,CAAC,OAAO,mCAAI,KAAK;QAC9B,UAAU,EAAE,CAAC;gBACX,IAAI,EAAE,SAAS;gBACf,UAAU,EAAE,EAAE;gBACd,WAAW,EAAE,IAAI,CAAC,WAAW,IAAI,EAAE;aACpC,CAAC;KACH,CAAC;AACJ,CAAC,CAAC;AAEF;;;GAGG;AACI,MAAM,gBAAgB,GAAG,CAC9B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AAC;AACH,CAAC,CAAA,CAAC;AA3CW,QAAA,gBAAgB,oBA2C3B"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bluealba/pae-bootstrap-lib",
|
|
3
3
|
"description": "PAE library for bootstrapping platforms",
|
|
4
|
-
"version": "2.1.2-feature-
|
|
4
|
+
"version": "2.1.2-feature-bootstrap-config-for-sche-61",
|
|
5
5
|
"main": "./dist/src/index.js",
|
|
6
6
|
"types": "./dist/src/index.d.ts",
|
|
7
7
|
"files": [
|