@equinor/fusion-framework-module-app 7.4.1 → 7.4.2-next.0

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.
@@ -40,6 +40,18 @@ type AppPerson = {
40
40
  };
41
41
  export type AppAdmin = AppPerson;
42
42
  export type AppOwner = AppPerson;
43
+ /**
44
+ * Schema entry format for route documentation in app manifests.
45
+ * Each entry represents a route with its path, description, and optional parameter/search schemas.
46
+ */
47
+ export type RouteSchemaEntry = [
48
+ path: string,
49
+ description: string,
50
+ options?: {
51
+ params?: Record<string, string>;
52
+ search?: Record<string, string>;
53
+ }
54
+ ];
43
55
  export type AppBuildManifest = {
44
56
  version: string;
45
57
  entryPoint: string;
@@ -83,6 +95,8 @@ export interface AppManifest {
83
95
  admins?: Nullable<AppAdmin[]>;
84
96
  owners?: Nullable<AppOwner[]>;
85
97
  build?: Nullable<AppBuildManifest>;
98
+ /** Route schema entries for documentation and API schema generation */
99
+ routes?: Nullable<RouteSchemaEntry[]>;
86
100
  }
87
101
  /**
88
102
  * @template TEnvironment - name of hosted environment
@@ -1 +1 @@
1
- export declare const version = "7.4.1";
1
+ export declare const version = "7.4.2-next.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/fusion-framework-module-app",
3
- "version": "7.4.1",
3
+ "version": "7.4.2-next.0",
4
4
  "description": "",
5
5
  "main": "dist/esm/index.js",
6
6
  "exports": {
@@ -61,16 +61,16 @@
61
61
  "rxjs": "^7.8.1",
62
62
  "uuid": "^13.0.0",
63
63
  "zod": "^4.1.8",
64
- "@equinor/fusion-observable": "^8.5.8",
65
- "@equinor/fusion-query": "^6.0.4"
64
+ "@equinor/fusion-observable": "^8.5.9-next.0",
65
+ "@equinor/fusion-query": "^6.0.5-next.0"
66
66
  },
67
67
  "devDependencies": {
68
68
  "typescript": "^5.8.2",
69
- "@equinor/fusion-framework-module-event": "^5.0.1",
70
- "@equinor/fusion-framework-module-msal": "^7.3.1",
71
- "@equinor/fusion-framework-module": "^5.0.6",
72
- "@equinor/fusion-framework-module-service-discovery": "^9.1.1",
73
- "@equinor/fusion-framework-module-http": "^7.0.8"
69
+ "@equinor/fusion-framework-module": "^5.0.7-next.0",
70
+ "@equinor/fusion-framework-module-event": "^5.0.2-next.0",
71
+ "@equinor/fusion-framework-module-http": "^7.0.9-next.0",
72
+ "@equinor/fusion-framework-module-msal": "^7.3.2-next.0",
73
+ "@equinor/fusion-framework-module-service-discovery": "^9.1.2-next.0"
74
74
  },
75
75
  "scripts": {
76
76
  "build": "tsc -b"
package/src/types.ts CHANGED
@@ -9,8 +9,7 @@ import type IApp from './app';
9
9
  export type ConfigEnvironment = Record<string, unknown>;
10
10
  export type { AppConfig } from './AppConfig';
11
11
 
12
- // TODO
13
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
12
+ // biome-ignore lint/suspicious/noExplicitAny: TODO - needs proper type definition
14
13
  type Fusion = any;
15
14
 
16
15
  export type AppEnv<TEnv extends ConfigEnvironment = ConfigEnvironment, TProps = unknown> = {
@@ -66,6 +65,19 @@ export type AppAdmin = AppPerson;
66
65
 
67
66
  export type AppOwner = AppPerson;
68
67
 
68
+ /**
69
+ * Schema entry format for route documentation in app manifests.
70
+ * Each entry represents a route with its path, description, and optional parameter/search schemas.
71
+ */
72
+ export type RouteSchemaEntry = [
73
+ path: string,
74
+ description: string,
75
+ options?: {
76
+ params?: Record<string, string>;
77
+ search?: Record<string, string>;
78
+ },
79
+ ];
80
+
69
81
  export type AppBuildManifest = {
70
82
  version: string;
71
83
  entryPoint: string;
@@ -110,6 +122,8 @@ export interface AppManifest {
110
122
  admins?: Nullable<AppAdmin[]>;
111
123
  owners?: Nullable<AppOwner[]>;
112
124
  build?: Nullable<AppBuildManifest>;
125
+ /** Route schema entries for documentation and API schema generation */
126
+ routes?: Nullable<RouteSchemaEntry[]>;
113
127
  }
114
128
 
115
129
  /**
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '7.4.1';
2
+ export const version = '7.4.2-next.0';