ballerina-core 1.0.77 → 1.0.78

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "ballerina-core",
3
3
  "author": "Dr. Giuseppe Maggiore",
4
4
  "private": false,
5
- "version": "1.0.77",
5
+ "version": "1.0.78",
6
6
  "main": "main.ts",
7
7
  "dependencies": {
8
8
  "immutable": "^5.0.0-beta.5",
@@ -59,7 +59,7 @@ export const parseIntegratedFormsToLaunchers =
59
59
  formsConfig.launchers.forEach((launcher, launcherName) => {
60
60
  const parsedForm = parsedForms.get(launcher.form)!
61
61
  const form = parsedForm.form
62
- const globalConfigurationType = formsConfig.types.get(formsConfig.apis.globalConfigType)!
62
+ const globalConfigurationType = formsConfig.types.get(launcher.globalConfigurationType)!
63
63
  const initialState = parsedForm.initialFormState
64
64
  const formType = parsedForm.formDef.type;
65
65
  const visibilityPredicateExpressions = parsedForm.visibilityPredicateExpressions
@@ -6,6 +6,7 @@ import { ParsedRenderer } from "../../../parser/domains/renderer/state";
6
6
  export type IntegratedFormLauncher = {
7
7
  name: string,
8
8
  form: string,
9
+ globalConfigurationType: string
9
10
  }
10
11
 
11
12
  export type RawIntegratedFormJSON = {
@@ -17,7 +18,7 @@ export type RawIntegratedFormJSON = {
17
18
  export const RawIntegratedFormJSON = {
18
19
  hasTypes: (_: any): _ is { types: object } => isObject(_) && "types" in _ && isObject(_.types),
19
20
  hasForms: (_: any): _ is { forms: object } => isObject(_) && "forms" in _ && isObject(_.forms),
20
- hasApis: (_: any): _ is { apis: { enumOptions: object; searchableStreams: object; globalConfigType: string }} => isObject(_) && "apis" in _ && isObject(_.apis) && "enumOptions" in _.apis && isObject(_.apis.enumOptions) && "searchableStreams" in _.apis && isObject(_.apis.searchableStreams) && "globalConfigType" in _.apis && isString(_.apis.globalConfigType),
21
+ hasApis: (_: any): _ is { apis: { enumOptions: object; searchableStreams: object; globalConfigType: string }} => isObject(_) && "apis" in _ && isObject(_.apis) && "enumOptions" in _.apis && isObject(_.apis.enumOptions) && "searchableStreams" in _.apis && isObject(_.apis.searchableStreams),
21
22
  hasLaunchers: (_: any): _ is { launchers: any } => isObject(_) && "launchers" in _,
22
23
  }
23
24
  export type ParsedIntegratedFormJSON<T> = {
@@ -25,7 +26,6 @@ export type ParsedIntegratedFormJSON<T> = {
25
26
  apis: {
26
27
  enums: Map<string, TypeName>;
27
28
  streams: Map<string, TypeName>;
28
- globalConfigType: TypeName;
29
29
  };
30
30
  forms: Map<string, ParsedFormConfig<T>>;
31
31
  launchers: Map<string, IntegratedFormLauncher>;
@@ -166,6 +166,7 @@ export const IntegratedFormsConfig = {
166
166
  let launcher: IntegratedFormLauncher = {
167
167
  name: launcherName,
168
168
  form: formsConfig.launchers[launcherName]["form"],
169
+ globalConfigurationType: formsConfig.launchers[launcherName]["globalConfigurationType"]
169
170
  };
170
171
  launchers = launchers.set(launcherName, launcher)
171
172
  })