@finos/legend-application-query 9.0.26 → 9.0.27
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/lib/application/LegendQueryApplicationConfig.d.ts +18 -1
- package/lib/application/LegendQueryApplicationConfig.d.ts.map +1 -1
- package/lib/application/LegendQueryApplicationConfig.js +24 -1
- package/lib/application/LegendQueryApplicationConfig.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/package.json +1 -1
- package/package.json +1 -1
- package/src/application/LegendQueryApplicationConfig.ts +38 -1
@@ -13,8 +13,15 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import { type PlainObject } from '@finos/legend-shared';
|
16
|
+
import { SerializationFactory, type PlainObject } from '@finos/legend-shared';
|
17
17
|
import { LegendApplicationConfig, type LegendApplicationConfigurationInput, type LegendApplicationConfigurationData } from '@finos/legend-application';
|
18
|
+
export declare class ServiceRegistrationEnvironmentConfig {
|
19
|
+
env: string;
|
20
|
+
executionUrl: string;
|
21
|
+
modes: string[];
|
22
|
+
managementUrl: string;
|
23
|
+
static readonly serialization: SerializationFactory<ServiceRegistrationEnvironmentConfig>;
|
24
|
+
}
|
18
25
|
declare class LegendQueryApplicationCoreOptions {
|
19
26
|
/**
|
20
27
|
* Indicates if we should enable theme switcher.
|
@@ -26,6 +33,16 @@ declare class LegendQueryApplicationCoreOptions {
|
|
26
33
|
* See https://github.com/finos/legend-studio/issues/264
|
27
34
|
*/
|
28
35
|
TEMPORARY__enableThemeSwitcher: boolean;
|
36
|
+
/**
|
37
|
+
* Provides service registration environment configs.
|
38
|
+
*
|
39
|
+
* TODO: when we modularize service, we can move this config to DSL Service preset. Then, we can remove
|
40
|
+
* the TEMPORARY__ prefix.
|
41
|
+
*
|
42
|
+
* @modularize
|
43
|
+
* See https://github.com/finos/legend-studio/issues/65
|
44
|
+
*/
|
45
|
+
TEMPORARY__serviceRegistrationConfig: ServiceRegistrationEnvironmentConfig[];
|
29
46
|
private static readonly serialization;
|
30
47
|
static create(configData: PlainObject<LegendQueryApplicationCoreOptions>): LegendQueryApplicationCoreOptions;
|
31
48
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LegendQueryApplicationConfig.d.ts","sourceRoot":"","sources":["../../src/application/LegendQueryApplicationConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,
|
1
|
+
{"version":3,"file":"LegendQueryApplicationConfig.d.ts","sourceRoot":"","sources":["../../src/application/LegendQueryApplicationConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAIL,oBAAoB,EACpB,KAAK,WAAW,EACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,uBAAuB,EACvB,KAAK,mCAAmC,EACxC,KAAK,kCAAkC,EACxC,MAAM,2BAA2B,CAAC;AASnC,qBAAa,oCAAoC;IAC/C,GAAG,EAAG,MAAM,CAAC;IACb,YAAY,EAAG,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,EAAE,CAAM;IACrB,aAAa,EAAG,MAAM,CAAC;IAEvB,MAAM,CAAC,QAAQ,CAAC,aAAa,6DAO3B;CACH;AAED,cAAM,iCAAiC;IACrC;;;;;;;;OAQG;IACH,8BAA8B,UAAS;IAEvC;;;;;;;;OAQG;IACH,oCAAoC,EAAE,oCAAoC,EAAE,CACvE;IAEL,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAOnC;IAEF,MAAM,CAAC,MAAM,CACX,UAAU,EAAE,WAAW,CAAC,iCAAiC,CAAC,GACzD,iCAAiC;CAGrC;AAED,KAAK,gDAAgD,GAAG;IACtD,mBAAmB,EAAE,MAAM,CAAC;IAC5B,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,WAAW,uCACf,SAAQ,kCAAkC;IAC1C,KAAK,EAAE;QACL,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;IACF,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3C,MAAM,EAAE;QACN,GAAG,EAAE,MAAM,CAAC;QACZ,SAAS,EAAE,gDAAgD,EAAE,CAAC;KAC/D,CAAC;IACF,QAAQ,EAAE;QACR,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;CACH;AAED,qBAAa,4BAA6B,SAAQ,uBAAuB;IACvE,QAAQ,CAAC,OAAO,oCAA2C;IAE3D,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,oBAAoB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnD,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,eAAe,EAAE,gDAAgD,EAAE,CACvE;IACL,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;gBAG3B,KAAK,EAAE,mCAAmC,CAAC,uCAAuC,CAAC;CAuDtF"}
|
@@ -15,7 +15,19 @@
|
|
15
15
|
*/
|
16
16
|
import { assertNonNullable, guaranteeNonEmptyString, guaranteeNonNullable, SerializationFactory, } from '@finos/legend-shared';
|
17
17
|
import { LegendApplicationConfig, } from '@finos/legend-application';
|
18
|
-
import { createModelSchema, optional, primitive } from 'serializr';
|
18
|
+
import { createModelSchema, optional, primitive, list, object, } from 'serializr';
|
19
|
+
export class ServiceRegistrationEnvironmentConfig {
|
20
|
+
env;
|
21
|
+
executionUrl;
|
22
|
+
modes = [];
|
23
|
+
managementUrl;
|
24
|
+
static serialization = new SerializationFactory(createModelSchema(ServiceRegistrationEnvironmentConfig, {
|
25
|
+
env: primitive(),
|
26
|
+
executionUrl: primitive(),
|
27
|
+
managementUrl: primitive(),
|
28
|
+
modes: list(primitive()),
|
29
|
+
}));
|
30
|
+
}
|
19
31
|
class LegendQueryApplicationCoreOptions {
|
20
32
|
/**
|
21
33
|
* Indicates if we should enable theme switcher.
|
@@ -27,8 +39,19 @@ class LegendQueryApplicationCoreOptions {
|
|
27
39
|
* See https://github.com/finos/legend-studio/issues/264
|
28
40
|
*/
|
29
41
|
TEMPORARY__enableThemeSwitcher = false;
|
42
|
+
/**
|
43
|
+
* Provides service registration environment configs.
|
44
|
+
*
|
45
|
+
* TODO: when we modularize service, we can move this config to DSL Service preset. Then, we can remove
|
46
|
+
* the TEMPORARY__ prefix.
|
47
|
+
*
|
48
|
+
* @modularize
|
49
|
+
* See https://github.com/finos/legend-studio/issues/65
|
50
|
+
*/
|
51
|
+
TEMPORARY__serviceRegistrationConfig = [];
|
30
52
|
static serialization = new SerializationFactory(createModelSchema(LegendQueryApplicationCoreOptions, {
|
31
53
|
TEMPORARY__enableThemeSwitcher: optional(primitive()),
|
54
|
+
TEMPORARY__serviceRegistrationConfig: list(object(ServiceRegistrationEnvironmentConfig)),
|
32
55
|
}));
|
33
56
|
static create(configData) {
|
34
57
|
return LegendQueryApplicationCoreOptions.serialization.fromJson(configData);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LegendQueryApplicationConfig.js","sourceRoot":"","sources":["../../src/application/LegendQueryApplicationConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,GAErB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,uBAAuB,GAGxB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,iBAAiB,EAAE,
|
1
|
+
{"version":3,"file":"LegendQueryApplicationConfig.js","sourceRoot":"","sources":["../../src/application/LegendQueryApplicationConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,GAErB,MAAM,sBAAsB,CAAC;AAC9B,O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26,29 @@ import {
|
|
26
26
|
type LegendApplicationConfigurationInput,
|
27
27
|
type LegendApplicationConfigurationData,
|
28
28
|
} from '@finos/legend-application';
|
29
|
-
import {
|
29
|
+
import {
|
30
|
+
createModelSchema,
|
31
|
+
optional,
|
32
|
+
primitive,
|
33
|
+
list,
|
34
|
+
object,
|
35
|
+
} from 'serializr';
|
36
|
+
|
37
|
+
export class ServiceRegistrationEnvironmentConfig {
|
38
|
+
env!: string;
|
39
|
+
executionUrl!: string;
|
40
|
+
modes: string[] = [];
|
41
|
+
managementUrl!: string;
|
42
|
+
|
43
|
+
static readonly serialization = new SerializationFactory(
|
44
|
+
createModelSchema(ServiceRegistrationEnvironmentConfig, {
|
45
|
+
env: primitive(),
|
46
|
+
executionUrl: primitive(),
|
47
|
+
managementUrl: primitive(),
|
48
|
+
modes: list(primitive()),
|
49
|
+
}),
|
50
|
+
);
|
51
|
+
}
|
30
52
|
|
31
53
|
class LegendQueryApplicationCoreOptions {
|
32
54
|
/**
|
@@ -40,9 +62,24 @@ class LegendQueryApplicationCoreOptions {
|
|
40
62
|
*/
|
41
63
|
TEMPORARY__enableThemeSwitcher = false;
|
42
64
|
|
65
|
+
/**
|
66
|
+
* Provides service registration environment configs.
|
67
|
+
*
|
68
|
+
* TODO: when we modularize service, we can move this config to DSL Service preset. Then, we can remove
|
69
|
+
* the TEMPORARY__ prefix.
|
70
|
+
*
|
71
|
+
* @modularize
|
72
|
+
* See https://github.com/finos/legend-studio/issues/65
|
73
|
+
*/
|
74
|
+
TEMPORARY__serviceRegistrationConfig: ServiceRegistrationEnvironmentConfig[] =
|
75
|
+
[];
|
76
|
+
|
43
77
|
private static readonly serialization = new SerializationFactory(
|
44
78
|
createModelSchema(LegendQueryApplicationCoreOptions, {
|
45
79
|
TEMPORARY__enableThemeSwitcher: optional(primitive()),
|
80
|
+
TEMPORARY__serviceRegistrationConfig: list(
|
81
|
+
object(ServiceRegistrationEnvironmentConfig),
|
82
|
+
),
|
46
83
|
}),
|
47
84
|
);
|
48
85
|
|