@equinor/fusion-framework-module-app 6.1.18 → 7.0.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.
@@ -1,5 +1,5 @@
1
1
  import { type ActionInstanceMap, type ActionTypes } from '@equinor/fusion-observable';
2
- import type { AppConfig, AppManifest, AppScriptModule, AppSettings } from '../types';
2
+ import type { AppConfig, AppManifest, AppModulesInstance, AppScriptModule, AppSettings } from '../types';
3
3
  declare const createActions: () => {
4
4
  /** Manifest loading */
5
5
  setManifest: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[manifest: AppManifest, update?: boolean | undefined], AppManifest, "set_manifest", never, {
@@ -42,7 +42,7 @@ declare const createActions: () => {
42
42
  success: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[module: AppScriptModule], AppScriptModule, "import_app::success", never, never>;
43
43
  failure: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[error: unknown], unknown, "import_app::failure", never, never>;
44
44
  };
45
- setInstance: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[instance: any], any, "set_instance", never, never>;
45
+ setInstance: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[instance: AppModulesInstance], AppModulesInstance, "set_instance", never, never>;
46
46
  initialize: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[], null, "initialize_app::request", never, never> & {
47
47
  success: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[], null, "initialize_app::success", never, never>;
48
48
  failure: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[error: unknown], unknown, "initialize_app::failure", never, never>;
@@ -90,7 +90,7 @@ export declare const actions: {
90
90
  success: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[module: AppScriptModule], AppScriptModule, "import_app::success", never, never>;
91
91
  failure: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[error: unknown], unknown, "import_app::failure", never, never>;
92
92
  };
93
- setInstance: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[instance: any], any, "set_instance", never, never>;
93
+ setInstance: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[instance: AppModulesInstance], AppModulesInstance, "set_instance", never, never>;
94
94
  initialize: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[], null, "initialize_app::request", never, never> & {
95
95
  success: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[], null, "initialize_app::success", never, never>;
96
96
  failure: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[error: unknown], unknown, "initialize_app::failure", never, never>;
@@ -34,7 +34,7 @@ export declare const createReducer: (value: AppBundleStateInitial) => import("@e
34
34
  payload: string;
35
35
  type: "import_app::request";
36
36
  } | {
37
- payload: any;
37
+ payload: import("..").AppModulesInstance;
38
38
  type: "set_instance";
39
39
  } | {
40
40
  payload: null;
@@ -14,27 +14,9 @@ export declare const ApiAppConfigSchema: z.ZodObject<{
14
14
  environment: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
15
15
  endpoints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
16
16
  url: z.ZodString;
17
- scopes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
18
- }, "strip", z.ZodTypeAny, {
19
- url: string;
20
- scopes: string[];
21
- }, {
22
- url: string;
23
- scopes?: string[] | undefined;
24
- }>>>;
25
- }, "strip", z.ZodTypeAny, {
26
- environment: Record<string, any>;
27
- endpoints?: Record<string, {
28
- url: string;
29
- scopes: string[];
30
- }> | undefined;
31
- }, {
32
- environment?: Record<string, any> | undefined;
33
- endpoints?: Record<string, {
34
- url: string;
35
- scopes?: string[] | undefined;
36
- }> | undefined;
37
- }>;
17
+ scopes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
18
+ }, z.core.$strip>>>;
19
+ }, z.core.$strip>;
38
20
  export type ApiAppConfig = z.infer<typeof ApiAppConfigSchema>;
39
21
  /**
40
22
  * Schema for validating the structure of an API application build.
@@ -56,15 +38,18 @@ export type ApiAppConfig = z.infer<typeof ApiAppConfigSchema>;
56
38
  export declare const ApiApplicationBuildSchema: z.ZodObject<{
57
39
  version: z.ZodString;
58
40
  entryPoint: z.ZodString;
59
- tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
60
- tag: z.ZodOptional<z.ZodNullable<z.ZodEnum<["latest", "preview"]>>>;
41
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
42
+ tag: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
43
+ latest: "latest";
44
+ preview: "preview";
45
+ }>>>;
61
46
  assetPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
47
  configUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
63
48
  timestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
64
49
  commitSha: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
50
  githubRepo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
66
51
  projectPage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
67
- allowedExtensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
52
+ allowedExtensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
68
53
  uploadedBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
69
54
  azureUniqueId: z.ZodString;
70
55
  displayName: z.ZodString;
@@ -73,66 +58,8 @@ export declare const ApiApplicationBuildSchema: z.ZodObject<{
73
58
  accountType: z.ZodString;
74
59
  accountClassification: z.ZodOptional<z.ZodNullable<z.ZodString>>;
75
60
  isExpired: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
76
- }, "strip", z.ZodTypeAny, {
77
- azureUniqueId: string;
78
- displayName: string;
79
- accountType: string;
80
- mail?: string | null | undefined;
81
- upn?: string | null | undefined;
82
- accountClassification?: string | null | undefined;
83
- isExpired?: boolean | null | undefined;
84
- }, {
85
- azureUniqueId: string;
86
- displayName: string;
87
- accountType: string;
88
- mail?: string | null | undefined;
89
- upn?: string | null | undefined;
90
- accountClassification?: string | null | undefined;
91
- isExpired?: boolean | null | undefined;
92
- }>>>;
93
- }, "strip", z.ZodTypeAny, {
94
- version: string;
95
- entryPoint: string;
96
- tags?: string[] | null | undefined;
97
- tag?: "latest" | "preview" | null | undefined;
98
- assetPath?: string | null | undefined;
99
- configUrl?: string | null | undefined;
100
- timestamp?: string | null | undefined;
101
- commitSha?: string | null | undefined;
102
- githubRepo?: string | null | undefined;
103
- projectPage?: string | null | undefined;
104
- allowedExtensions?: string[] | null | undefined;
105
- uploadedBy?: {
106
- azureUniqueId: string;
107
- displayName: string;
108
- accountType: string;
109
- mail?: string | null | undefined;
110
- upn?: string | null | undefined;
111
- accountClassification?: string | null | undefined;
112
- isExpired?: boolean | null | undefined;
113
- } | null | undefined;
114
- }, {
115
- version: string;
116
- entryPoint: string;
117
- tags?: string[] | null | undefined;
118
- tag?: "latest" | "preview" | null | undefined;
119
- assetPath?: string | null | undefined;
120
- configUrl?: string | null | undefined;
121
- timestamp?: string | null | undefined;
122
- commitSha?: string | null | undefined;
123
- githubRepo?: string | null | undefined;
124
- projectPage?: string | null | undefined;
125
- allowedExtensions?: string[] | null | undefined;
126
- uploadedBy?: {
127
- azureUniqueId: string;
128
- displayName: string;
129
- accountType: string;
130
- mail?: string | null | undefined;
131
- upn?: string | null | undefined;
132
- accountClassification?: string | null | undefined;
133
- isExpired?: boolean | null | undefined;
134
- } | null | undefined;
135
- }>;
61
+ }, z.core.$strip>>>;
62
+ }, z.core.$strip>;
136
63
  /**
137
64
  * Schema for validating API application data.
138
65
  *
@@ -173,35 +100,13 @@ export declare const ApiApplicationSchema: z.ZodObject<{
173
100
  color: z.ZodString;
174
101
  defaultIcon: z.ZodString;
175
102
  sortOrder: z.ZodNumber;
176
- }, "strip", z.ZodTypeAny, {
177
- displayName: string;
178
- id: string;
179
- name: string;
180
- color: string;
181
- defaultIcon: string;
182
- sortOrder: number;
183
- }, {
184
- displayName: string;
185
- id: string;
186
- name: string;
187
- color: string;
188
- defaultIcon: string;
189
- sortOrder: number;
190
- }>>>;
103
+ }, z.core.$strip>>>;
191
104
  visualization: z.ZodOptional<z.ZodNullable<z.ZodObject<{
192
105
  color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
193
106
  icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
194
107
  sortOrder: z.ZodNumber;
195
- }, "strip", z.ZodTypeAny, {
196
- sortOrder: number;
197
- color?: string | null | undefined;
198
- icon?: string | null | undefined;
199
- }, {
200
- sortOrder: number;
201
- color?: string | null | undefined;
202
- icon?: string | null | undefined;
203
- }>>>;
204
- keywords: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
108
+ }, z.core.$strip>>>;
109
+ keywords: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
205
110
  admins: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
206
111
  azureUniqueId: z.ZodString;
207
112
  displayName: z.ZodString;
@@ -210,23 +115,7 @@ export declare const ApiApplicationSchema: z.ZodObject<{
210
115
  accountType: z.ZodString;
211
116
  accountClassification: z.ZodOptional<z.ZodNullable<z.ZodString>>;
212
117
  isExpired: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
213
- }, "strip", z.ZodTypeAny, {
214
- azureUniqueId: string;
215
- displayName: string;
216
- accountType: string;
217
- mail?: string | null | undefined;
218
- upn?: string | null | undefined;
219
- accountClassification?: string | null | undefined;
220
- isExpired?: boolean | null | undefined;
221
- }, {
222
- azureUniqueId: string;
223
- displayName: string;
224
- accountType: string;
225
- mail?: string | null | undefined;
226
- upn?: string | null | undefined;
227
- accountClassification?: string | null | undefined;
228
- isExpired?: boolean | null | undefined;
229
- }>, "many">>>;
118
+ }, z.core.$strip>>>>;
230
119
  owners: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
231
120
  azureUniqueId: z.ZodString;
232
121
  displayName: z.ZodString;
@@ -235,35 +124,22 @@ export declare const ApiApplicationSchema: z.ZodObject<{
235
124
  accountType: z.ZodString;
236
125
  accountClassification: z.ZodOptional<z.ZodNullable<z.ZodString>>;
237
126
  isExpired: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
238
- }, "strip", z.ZodTypeAny, {
239
- azureUniqueId: string;
240
- displayName: string;
241
- accountType: string;
242
- mail?: string | null | undefined;
243
- upn?: string | null | undefined;
244
- accountClassification?: string | null | undefined;
245
- isExpired?: boolean | null | undefined;
246
- }, {
247
- azureUniqueId: string;
248
- displayName: string;
249
- accountType: string;
250
- mail?: string | null | undefined;
251
- upn?: string | null | undefined;
252
- accountClassification?: string | null | undefined;
253
- isExpired?: boolean | null | undefined;
254
- }>, "many">>>;
127
+ }, z.core.$strip>>>>;
255
128
  build: z.ZodOptional<z.ZodNullable<z.ZodObject<{
256
129
  version: z.ZodString;
257
130
  entryPoint: z.ZodString;
258
- tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
259
- tag: z.ZodOptional<z.ZodNullable<z.ZodEnum<["latest", "preview"]>>>;
131
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
132
+ tag: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
133
+ latest: "latest";
134
+ preview: "preview";
135
+ }>>>;
260
136
  assetPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
261
137
  configUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
262
138
  timestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
263
139
  commitSha: z.ZodOptional<z.ZodNullable<z.ZodString>>;
264
140
  githubRepo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
265
141
  projectPage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
266
- allowedExtensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
142
+ allowedExtensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
267
143
  uploadedBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
268
144
  azureUniqueId: z.ZodString;
269
145
  displayName: z.ZodString;
@@ -272,187 +148,7 @@ export declare const ApiApplicationSchema: z.ZodObject<{
272
148
  accountType: z.ZodString;
273
149
  accountClassification: z.ZodOptional<z.ZodNullable<z.ZodString>>;
274
150
  isExpired: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
275
- }, "strip", z.ZodTypeAny, {
276
- azureUniqueId: string;
277
- displayName: string;
278
- accountType: string;
279
- mail?: string | null | undefined;
280
- upn?: string | null | undefined;
281
- accountClassification?: string | null | undefined;
282
- isExpired?: boolean | null | undefined;
283
- }, {
284
- azureUniqueId: string;
285
- displayName: string;
286
- accountType: string;
287
- mail?: string | null | undefined;
288
- upn?: string | null | undefined;
289
- accountClassification?: string | null | undefined;
290
- isExpired?: boolean | null | undefined;
291
- }>>>;
292
- }, "strip", z.ZodTypeAny, {
293
- version: string;
294
- entryPoint: string;
295
- tags?: string[] | null | undefined;
296
- tag?: "latest" | "preview" | null | undefined;
297
- assetPath?: string | null | undefined;
298
- configUrl?: string | null | undefined;
299
- timestamp?: string | null | undefined;
300
- commitSha?: string | null | undefined;
301
- githubRepo?: string | null | undefined;
302
- projectPage?: string | null | undefined;
303
- allowedExtensions?: string[] | null | undefined;
304
- uploadedBy?: {
305
- azureUniqueId: string;
306
- displayName: string;
307
- accountType: string;
308
- mail?: string | null | undefined;
309
- upn?: string | null | undefined;
310
- accountClassification?: string | null | undefined;
311
- isExpired?: boolean | null | undefined;
312
- } | null | undefined;
313
- }, {
314
- version: string;
315
- entryPoint: string;
316
- tags?: string[] | null | undefined;
317
- tag?: "latest" | "preview" | null | undefined;
318
- assetPath?: string | null | undefined;
319
- configUrl?: string | null | undefined;
320
- timestamp?: string | null | undefined;
321
- commitSha?: string | null | undefined;
322
- githubRepo?: string | null | undefined;
323
- projectPage?: string | null | undefined;
324
- allowedExtensions?: string[] | null | undefined;
325
- uploadedBy?: {
326
- azureUniqueId: string;
327
- displayName: string;
328
- accountType: string;
329
- mail?: string | null | undefined;
330
- upn?: string | null | undefined;
331
- accountClassification?: string | null | undefined;
332
- isExpired?: boolean | null | undefined;
333
- } | null | undefined;
334
- }>>>;
335
- }, "strip", z.ZodTypeAny, {
336
- type: string;
337
- description: string;
338
- displayName: string;
339
- appKey: string;
340
- isPinned?: boolean | null | undefined;
341
- templateSource?: string | null | undefined;
342
- category?: {
343
- displayName: string;
344
- id: string;
345
- name: string;
346
- color: string;
347
- defaultIcon: string;
348
- sortOrder: number;
349
- } | null | undefined;
350
- visualization?: {
351
- sortOrder: number;
352
- color?: string | null | undefined;
353
- icon?: string | null | undefined;
354
- } | null | undefined;
355
- keywords?: string[] | null | undefined;
356
- admins?: {
357
- azureUniqueId: string;
358
- displayName: string;
359
- accountType: string;
360
- mail?: string | null | undefined;
361
- upn?: string | null | undefined;
362
- accountClassification?: string | null | undefined;
363
- isExpired?: boolean | null | undefined;
364
- }[] | null | undefined;
365
- owners?: {
366
- azureUniqueId: string;
367
- displayName: string;
368
- accountType: string;
369
- mail?: string | null | undefined;
370
- upn?: string | null | undefined;
371
- accountClassification?: string | null | undefined;
372
- isExpired?: boolean | null | undefined;
373
- }[] | null | undefined;
374
- build?: {
375
- version: string;
376
- entryPoint: string;
377
- tags?: string[] | null | undefined;
378
- tag?: "latest" | "preview" | null | undefined;
379
- assetPath?: string | null | undefined;
380
- configUrl?: string | null | undefined;
381
- timestamp?: string | null | undefined;
382
- commitSha?: string | null | undefined;
383
- githubRepo?: string | null | undefined;
384
- projectPage?: string | null | undefined;
385
- allowedExtensions?: string[] | null | undefined;
386
- uploadedBy?: {
387
- azureUniqueId: string;
388
- displayName: string;
389
- accountType: string;
390
- mail?: string | null | undefined;
391
- upn?: string | null | undefined;
392
- accountClassification?: string | null | undefined;
393
- isExpired?: boolean | null | undefined;
394
- } | null | undefined;
395
- } | null | undefined;
396
- }, {
397
- type: string;
398
- description: string;
399
- displayName: string;
400
- appKey: string;
401
- isPinned?: boolean | null | undefined;
402
- templateSource?: string | null | undefined;
403
- category?: {
404
- displayName: string;
405
- id: string;
406
- name: string;
407
- color: string;
408
- defaultIcon: string;
409
- sortOrder: number;
410
- } | null | undefined;
411
- visualization?: {
412
- sortOrder: number;
413
- color?: string | null | undefined;
414
- icon?: string | null | undefined;
415
- } | null | undefined;
416
- keywords?: string[] | null | undefined;
417
- admins?: {
418
- azureUniqueId: string;
419
- displayName: string;
420
- accountType: string;
421
- mail?: string | null | undefined;
422
- upn?: string | null | undefined;
423
- accountClassification?: string | null | undefined;
424
- isExpired?: boolean | null | undefined;
425
- }[] | null | undefined;
426
- owners?: {
427
- azureUniqueId: string;
428
- displayName: string;
429
- accountType: string;
430
- mail?: string | null | undefined;
431
- upn?: string | null | undefined;
432
- accountClassification?: string | null | undefined;
433
- isExpired?: boolean | null | undefined;
434
- }[] | null | undefined;
435
- build?: {
436
- version: string;
437
- entryPoint: string;
438
- tags?: string[] | null | undefined;
439
- tag?: "latest" | "preview" | null | undefined;
440
- assetPath?: string | null | undefined;
441
- configUrl?: string | null | undefined;
442
- timestamp?: string | null | undefined;
443
- commitSha?: string | null | undefined;
444
- githubRepo?: string | null | undefined;
445
- projectPage?: string | null | undefined;
446
- allowedExtensions?: string[] | null | undefined;
447
- uploadedBy?: {
448
- azureUniqueId: string;
449
- displayName: string;
450
- accountType: string;
451
- mail?: string | null | undefined;
452
- upn?: string | null | undefined;
453
- accountClassification?: string | null | undefined;
454
- isExpired?: boolean | null | undefined;
455
- } | null | undefined;
456
- } | null | undefined;
457
- }>;
151
+ }, z.core.$strip>>>;
152
+ }, z.core.$strip>>>;
153
+ }, z.core.$strip>;
458
154
  export type ApiApplication = z.infer<typeof ApiApplicationSchema>;
@@ -18,7 +18,7 @@ export type ModuleDeps = [HttpModule, ServiceDiscoveryModule, EventModule];
18
18
  export interface AppSettings {
19
19
  [key: string]: unknown;
20
20
  }
21
- export type AppType = 'standalone' | 'report' | 'launcher' | 'template';
21
+ export type AppType = 'standalone' | 'report' | 'launcher' | 'template' | 'template-app' | 'landing-page';
22
22
  export type CurrentApp<TModules extends Array<AnyModule> = [], TEnv extends ConfigEnvironment = ConfigEnvironment> = IApp<TEnv, TModules> | null | undefined;
23
23
  type Nullable<T> = T | null | undefined;
24
24
  type AppPerson = {
@@ -1 +1 @@
1
- export declare const version = "6.1.18";
1
+ export declare const version = "7.0.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/fusion-framework-module-app",
3
- "version": "6.1.18",
3
+ "version": "7.0.0",
4
4
  "description": "",
5
5
  "main": "dist/esm/index.js",
6
6
  "exports": {
@@ -57,20 +57,20 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "fast-deep-equal": "^3.1.3",
60
- "immer": "^9.0.16",
60
+ "immer": "^10.1.3",
61
61
  "rxjs": "^7.8.1",
62
- "uuid": "^11.0.3",
63
- "zod": "^3.25.76",
64
- "@equinor/fusion-observable": "^8.5.1",
65
- "@equinor/fusion-query": "^5.2.11"
62
+ "uuid": "^13.0.0",
63
+ "zod": "^4.1.8",
64
+ "@equinor/fusion-observable": "^8.5.3",
65
+ "@equinor/fusion-query": "^5.2.13"
66
66
  },
67
67
  "devDependencies": {
68
68
  "typescript": "^5.8.2",
69
- "@equinor/fusion-framework-module": "^5.0.0",
70
- "@equinor/fusion-framework-module-http": "^6.3.4",
71
- "@equinor/fusion-framework-module-msal": "^4.0.9",
72
- "@equinor/fusion-framework-module-service-discovery": "^8.0.18",
73
- "@equinor/fusion-framework-module-event": "^4.3.7"
69
+ "@equinor/fusion-framework-module": "^5.0.1",
70
+ "@equinor/fusion-framework-module-event": "^4.3.7",
71
+ "@equinor/fusion-framework-module-http": "^7.0.0",
72
+ "@equinor/fusion-framework-module-service-discovery": "^9.0.0",
73
+ "@equinor/fusion-framework-module-msal": "^5.0.0"
74
74
  },
75
75
  "scripts": {
76
76
  "build": "tsc -b"
package/src/schemas.ts CHANGED
@@ -12,9 +12,10 @@ import { z } from 'zod';
12
12
  * - `scopes` (optional): An array of strings representing the scopes. Defaults to an empty array.
13
13
  */
14
14
  export const ApiAppConfigSchema = z.object({
15
- environment: z.record(z.any()).optional().default({}),
15
+ environment: z.record(z.string(), z.any()).optional().default({}),
16
16
  endpoints: z
17
17
  .record(
18
+ z.string(),
18
19
  z.object({
19
20
  url: z.string(),
20
21
  scopes: z.array(z.string()).optional().default([]),
@@ -38,27 +39,23 @@ export type ApiAppConfig = z.infer<typeof ApiAppConfigSchema>;
38
39
  * - `isExpired` (boolean | nullish): Indicates whether the account is expired, which can be null or undefined.
39
40
  */
40
41
  const ApiApplicationPersonSchema = z.object({
41
- azureUniqueId: z.string({ description: 'The unique identifier for the person in Azure.' }),
42
- displayName: z.string({ description: 'The display name of the person.' }),
42
+ azureUniqueId: z.string({ message: 'The unique identifier for the person in Azure.' }),
43
+ displayName: z.string({ message: 'The display name of the person.' }),
43
44
  mail: z
44
- .string({ description: 'The email address of the person, which can be null or undefined.' })
45
+ .string({ message: 'The email address of the person, which can be null or undefined.' })
45
46
  .nullish(),
46
47
  upn: z
47
48
  .string({
48
- description: 'The User Principal Name (UPN) of the person, which can be null or undefined.',
49
+ message: 'The User Principal Name (UPN) of the person, which can be null or undefined.',
49
50
  })
50
51
  .nullish(),
51
- accountType: z.string({
52
- description: 'The type of account the person has.',
53
- }),
52
+ accountType: z.string({ message: 'The type of account the person has.' }),
54
53
  accountClassification: z
55
- .string({
56
- description: 'The classification of the account, which can be null or undefined.',
57
- })
54
+ .string({ message: 'The classification of the account, which can be null or undefined.' })
58
55
  .nullish(),
59
56
  isExpired: z
60
57
  .boolean({
61
- description: 'Indicates whether the account is expired, which can be null or undefined.',
58
+ message: 'Indicates whether the account is expired, which can be null or undefined.',
62
59
  })
63
60
  .nullish(),
64
61
  });
package/src/types.ts CHANGED
@@ -28,7 +28,13 @@ export interface AppSettings {
28
28
  }
29
29
 
30
30
  // TODO: remove `report` and `launcher` when legacy apps are removed
31
- export type AppType = 'standalone' | 'report' | 'launcher' | 'template';
31
+ export type AppType =
32
+ | 'standalone'
33
+ | 'report'
34
+ | 'launcher'
35
+ | 'template'
36
+ | 'template-app'
37
+ | 'landing-page';
32
38
 
33
39
  export type CurrentApp<
34
40
  TModules extends Array<AnyModule> = [],
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '6.1.18';
2
+ export const version = '7.0.0';