Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@equinor/fusion-framework-module-app

Package Overview
Dependencies
Maintainers
0
Versions
186
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@equinor/fusion-framework-module-app - npm Package Compare versions

Comparing version 6.0.0-alpha-df90c0f890db097d17d4b84fe6face6323143970 to 6.0.0-next-499bdf0f6597dbdcfdabd563b94ed08de36bbfe4

5

CHANGELOG.md
# Change Log
## 6.0.0-alpha-df90c0f890db097d17d4b84fe6face6323143970
## 6.0.0-next-499bdf0f6597dbdcfdabd563b94ed08de36bbfe4
### Major Changes
- [#2178](https://github.com/equinor/fusion-framework/pull/2178) [`dbdccb0`](https://github.com/equinor/fusion-framework/commit/dbdccb0c8878b59a6f5f2d404b3daf8f2b138ea6) Thanks [@eikeland](https://github.com/eikeland)! - Adjusted module to the new app service API.
- [#2494](https://github.com/equinor/fusion-framework/pull/2494) [`9f6eec8`](https://github.com/equinor/fusion-framework/commit/9f6eec8c5a4cb3dd430fc6bee227442a3dc28bb8) Thanks [@odinr](https://github.com/odinr)! - Adjusted module to the new app service API.

@@ -21,2 +21,3 @@ > [!WARNING]

- Modified `AppConfigurator` to utilize `AppClient` for client configuration.
- Updated `useApps` hook with new input parameter for `filterByCurrentUser` in `fusion-framework-react`.

@@ -23,0 +24,0 @@ **Migration**

2

dist/esm/app/flows.js

@@ -66,3 +66,3 @@ import { from, of, concat } from 'rxjs';

switchMap(({ payload }) => {
const endpoint = [provider.getBaseUri(), payload].join('/').replace(/\/{2,}/g, '/');
const endpoint = [provider.assetUri, payload].join('/').replace(/\/{2,}/g, '/');
// dynamically import the application script

@@ -69,0 +69,0 @@ return from(import(/* @vite-ignore */ endpoint)).pipe(

@@ -55,3 +55,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

return props.displayName;
}, categoryId: category === null || category === void 0 ? void 0 : category.id });
}, categoryId: category === null || category === void 0 ? void 0 : category.id, category });
});

@@ -90,3 +90,6 @@ /**

},
selector: (res) => __awaiter(this, void 0, void 0, function* () { return ApplicationSchema.array().parse(yield jsonSelector(res)); }),
selector: (res) => __awaiter(this, void 0, void 0, function* () {
const response = (yield jsonSelector(res));
return ApplicationSchema.array().parse(response.value);
}),
});

@@ -93,0 +96,0 @@ },

@@ -42,5 +42,5 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

// TODO - explain why, used in import of resources aka proxy url
setBaseUri(base_or_cb) {
setAssetUri(base_or_cb) {
const cb = typeof base_or_cb === 'string' ? () => __awaiter(this, void 0, void 0, function* () { return base_or_cb; }) : base_or_cb;
this._set('baseUri', cb);
this._set('assetUri', cb);
}

@@ -55,4 +55,4 @@ _createConfig(init, initial) {

}
if (!this._has('baseUri')) {
this.setBaseUri('/apps-proxy');
if (!this._has('assetUri')) {
this.setAssetUri('/apps-proxy');
}

@@ -59,0 +59,0 @@ return super._createConfig(init, initial);

import z from 'zod';
const ApiApplicationPersonSchema = z.object({
azureUniqueId: z.string(),
displayName: z.string().optional(),
mail: z.string().optional(),
upn: z.string().optional(),
accountType: z.string().optional(),
accountClassification: z.string().optional(),
isExpired: z.boolean().optional(),
displayName: z.string(),
mail: z.string().nullish(),
upn: z.string().nullish(),
accountType: z.string(),
accountClassification: z.string().nullish(),
isExpired: z.boolean().nullish(),
});
export const ApiApplicationBuildSchema = z.object({
version: z.string().optional(),
entryPoint: z.string().optional(),
tags: z.array(z.string()).optional(),
tag: z.enum(['latest', 'preview']).optional(),
assetPath: z.string().optional(),
configUrl: z.string().optional(),
timestamp: z.string().optional(),
commitSha: z.string().optional(),
githubRepo: z.string().optional(),
projectPage: z.string().optional(),
uploadedBy: ApiApplicationPersonSchema.optional(),
version: z.string(),
entryPoint: z.string(),
tags: z.array(z.string()).nullish(),
tag: z.enum(['latest', 'preview']).nullish(),
assetPath: z.string().nullish(),
configUrl: z.string().nullish(),
timestamp: z.string().nullish(),
commitSha: z.string().nullish(),
githubRepo: z.string().nullish(),
projectPage: z.string().nullish(),
allowedExtensions: z.array(z.string()).nullish(),
uploadedBy: ApiApplicationPersonSchema.nullish(),
});
export const ApiApplicationSchema = z.object({
appKey: z.string(),
displayName: z.string().optional(),
description: z.string().optional(),
type: z.string().optional(),
isPinned: z.boolean().optional(),
templateSource: z.string().optional(),
displayName: z.string(),
description: z.string(),
type: z.string(),
isPinned: z.boolean().nullish(),
templateSource: z.string().nullish(),
category: z
.object({
id: z.string(),
name: z.string().optional(),
displayName: z.string().optional(),
color: z.string().optional(),
defaultIcon: z.string().optional(),
sortOrder: z.number().optional(),
name: z.string(),
displayName: z.string(),
color: z.string(),
defaultIcon: z.string(),
sortOrder: z.number(),
})
.optional(),
.nullish(),
visualization: z
.object({
color: z.string().optional(),
icon: z.string().optional(),
color: z.string().nullish(),
icon: z.string().nullish(),
sortOrder: z.number(),
})
.optional(),
keywords: z.array(z.string()).optional(),
admins: z.array(ApiApplicationPersonSchema).optional(),
owners: z.array(ApiApplicationPersonSchema).optional(),
build: ApiApplicationBuildSchema.optional(),
.nullish(),
keywords: z.array(z.string()).nullish(),
admins: z.array(ApiApplicationPersonSchema).nullish(),
owners: z.array(ApiApplicationPersonSchema).nullish(),
build: ApiApplicationBuildSchema.nullish(),
});
export default { ApiApplicationPersonSchema, ApiApplicationBuildSchema, ApiApplicationSchema };
//# sourceMappingURL=application.schema.js.map

@@ -48,3 +48,3 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {

__classPrivateFieldSet(this, _AppModuleProvider_current$, new BehaviorSubject(undefined), "f");
__classPrivateFieldSet(this, _AppModuleProvider_appBaseUri, (_a = config.baseUri) !== null && _a !== void 0 ? _a : '', "f");
__classPrivateFieldSet(this, _AppModuleProvider_appBaseUri, (_a = config.assetUri) !== null && _a !== void 0 ? _a : '', "f");
__classPrivateFieldGet(this, _AppModuleProvider_subscription, "f").add(this.current$

@@ -97,3 +97,3 @@ .pipe(pairwise(), takeWhile(() => !!event))

}
getBaseUri() {
get assetUri() {
return __classPrivateFieldGet(this, _AppModuleProvider_appBaseUri, "f");

@@ -100,0 +100,0 @@ }

export {};
// export type ApiAppVersionConfig = {
// environment: string;
// endpoints: Record<
// string,
// {
// url: string;
// scopes: string[];
// }
// >;
// };
// export type ApiApp = {
// appKey: string;
// displayName?: string;
// description?: string;
// type?: AppType;
// isPinned?: boolean;
// templateSource?: string;
// category?: AppCategory;
// visualization: {
// color: string;
// icon: string;
// sortOrder: number;
// };
// keywords: string[];
// admins: AppOwnerOrAdmin[];
// owners: AppOwnerOrAdmin[];
// build: AppBuild<AzureUniqueId>;
// };
//# sourceMappingURL=types.js.map

@@ -7,7 +7,7 @@ import { BaseConfigBuilder, ConfigBuilderCallback, type ModuleInitializerArgs } from '@equinor/fusion-framework-module';

client: IAppClient;
baseUri?: string;
assetUri?: string;
}
export interface IAppConfigurator {
setClient: (client_or_cb: Promise<AppModuleConfig['client']> | ConfigBuilderCallback<AppModuleConfig['client']>) => void;
setBaseUri: (base_or_cb: string | ConfigBuilderCallback<string>) => void;
setAssetUri: (base_or_cb: string | ConfigBuilderCallback<string>) => void;
}

@@ -21,4 +21,4 @@ export declare class AppConfigurator extends BaseConfigBuilder<AppModuleConfig> implements IAppConfigurator {

setClient(client_or_cb: Promise<AppModuleConfig['client']> | ConfigBuilderCallback<AppModuleConfig['client']>): void;
setBaseUri(base_or_cb: string | ConfigBuilderCallback<string>): void;
setAssetUri(base_or_cb: string | ConfigBuilderCallback<string>): void;
protected _createConfig(init: ModuleInitializerArgs<IAppConfigurator, [HttpModule, ServiceDiscoveryModule]>, initial?: Partial<AppModuleConfig>): import("rxjs").ObservableInput<AppModuleConfig>;
}
import z from 'zod';
export declare const ApiApplicationBuildSchema: z.ZodObject<{
version: z.ZodOptional<z.ZodString>;
entryPoint: z.ZodOptional<z.ZodString>;
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
tag: z.ZodOptional<z.ZodEnum<["latest", "preview"]>>;
assetPath: z.ZodOptional<z.ZodString>;
configUrl: z.ZodOptional<z.ZodString>;
timestamp: z.ZodOptional<z.ZodString>;
commitSha: z.ZodOptional<z.ZodString>;
githubRepo: z.ZodOptional<z.ZodString>;
projectPage: z.ZodOptional<z.ZodString>;
uploadedBy: z.ZodOptional<z.ZodObject<{
version: z.ZodString;
entryPoint: z.ZodString;
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
tag: z.ZodOptional<z.ZodNullable<z.ZodEnum<["latest", "preview"]>>>;
assetPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
configUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
timestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
commitSha: z.ZodOptional<z.ZodNullable<z.ZodString>>;
githubRepo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
projectPage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
allowedExtensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
uploadedBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
azureUniqueId: z.ZodString;
displayName: z.ZodOptional<z.ZodString>;
mail: z.ZodOptional<z.ZodString>;
upn: z.ZodOptional<z.ZodString>;
accountType: z.ZodOptional<z.ZodString>;
accountClassification: z.ZodOptional<z.ZodString>;
isExpired: z.ZodOptional<z.ZodBoolean>;
displayName: z.ZodString;
mail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
upn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
accountType: z.ZodString;
accountClassification: z.ZodOptional<z.ZodNullable<z.ZodString>>;
isExpired: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
}, "strip", z.ZodTypeAny, {
azureUniqueId: string;
displayName?: string | undefined;
mail?: string | undefined;
upn?: string | undefined;
accountType?: string | undefined;
accountClassification?: string | undefined;
isExpired?: boolean | undefined;
displayName: string;
accountType: string;
mail?: string | null | undefined;
upn?: string | null | undefined;
accountClassification?: string | null | undefined;
isExpired?: boolean | null | undefined;
}, {
azureUniqueId: string;
displayName?: string | undefined;
mail?: string | undefined;
upn?: string | undefined;
accountType?: string | undefined;
accountClassification?: string | undefined;
isExpired?: boolean | undefined;
}>>;
displayName: string;
accountType: string;
mail?: string | null | undefined;
upn?: string | null | undefined;
accountClassification?: string | null | undefined;
isExpired?: boolean | null | undefined;
}>>>;
}, "strip", z.ZodTypeAny, {
version?: string | undefined;
entryPoint?: string | undefined;
tags?: string[] | undefined;
tag?: "latest" | "preview" | undefined;
assetPath?: string | undefined;
configUrl?: string | undefined;
timestamp?: string | undefined;
commitSha?: string | undefined;
githubRepo?: string | undefined;
projectPage?: string | undefined;
version: string;
entryPoint: string;
tags?: string[] | null | undefined;
tag?: "latest" | "preview" | null | undefined;
assetPath?: string | null | undefined;
configUrl?: string | null | undefined;
timestamp?: string | null | undefined;
commitSha?: string | null | undefined;
githubRepo?: string | null | undefined;
projectPage?: string | null | undefined;
allowedExtensions?: string[] | null | undefined;
uploadedBy?: {
azureUniqueId: string;
displayName?: string | undefined;
mail?: string | undefined;
upn?: string | undefined;
accountType?: string | undefined;
accountClassification?: string | undefined;
isExpired?: boolean | undefined;
} | undefined;
displayName: string;
accountType: string;
mail?: string | null | undefined;
upn?: string | null | undefined;
accountClassification?: string | null | undefined;
isExpired?: boolean | null | undefined;
} | null | undefined;
}, {
version?: string | undefined;
entryPoint?: string | undefined;
tags?: string[] | undefined;
tag?: "latest" | "preview" | undefined;
assetPath?: string | undefined;
configUrl?: string | undefined;
timestamp?: string | undefined;
commitSha?: string | undefined;
githubRepo?: string | undefined;
projectPage?: string | undefined;
version: string;
entryPoint: string;
tags?: string[] | null | undefined;
tag?: "latest" | "preview" | null | undefined;
assetPath?: string | null | undefined;
configUrl?: string | null | undefined;
timestamp?: string | null | undefined;
commitSha?: string | null | undefined;
githubRepo?: string | null | undefined;
projectPage?: string | null | undefined;
allowedExtensions?: string[] | null | undefined;
uploadedBy?: {
azureUniqueId: string;
displayName?: string | undefined;
mail?: string | undefined;
upn?: string | undefined;
accountType?: string | undefined;
accountClassification?: string | undefined;
isExpired?: boolean | undefined;
} | undefined;
displayName: string;
accountType: string;
mail?: string | null | undefined;
upn?: string | null | undefined;
accountClassification?: string | null | undefined;
isExpired?: boolean | null | undefined;
} | null | undefined;
}>;
export declare const ApiApplicationSchema: z.ZodObject<{
appKey: z.ZodString;
displayName: z.ZodOptional<z.ZodString>;
description: z.ZodOptional<z.ZodString>;
type: z.ZodOptional<z.ZodString>;
isPinned: z.ZodOptional<z.ZodBoolean>;
templateSource: z.ZodOptional<z.ZodString>;
category: z.ZodOptional<z.ZodObject<{
displayName: z.ZodString;
description: z.ZodString;
type: z.ZodString;
isPinned: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
templateSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
category: z.ZodOptional<z.ZodNullable<z.ZodObject<{
id: z.ZodString;
name: z.ZodOptional<z.ZodString>;
displayName: z.ZodOptional<z.ZodString>;
color: z.ZodOptional<z.ZodString>;
defaultIcon: z.ZodOptional<z.ZodString>;
sortOrder: z.ZodOptional<z.ZodNumber>;
name: z.ZodString;
displayName: z.ZodString;
color: z.ZodString;
defaultIcon: z.ZodString;
sortOrder: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
displayName: string;
id: string;
displayName?: string | undefined;
name?: string | undefined;
color?: string | undefined;
defaultIcon?: string | undefined;
sortOrder?: number | undefined;
name: string;
color: string;
defaultIcon: string;
sortOrder: number;
}, {
displayName: string;
id: string;
displayName?: string | undefined;
name?: string | undefined;
color?: string | undefined;
defaultIcon?: string | undefined;
sortOrder?: number | undefined;
}>>;
visualization: z.ZodOptional<z.ZodObject<{
color: z.ZodOptional<z.ZodString>;
icon: z.ZodOptional<z.ZodString>;
name: string;
color: string;
defaultIcon: string;
sortOrder: number;
}>>>;
visualization: z.ZodOptional<z.ZodNullable<z.ZodObject<{
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
sortOrder: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
sortOrder: number;
color?: string | undefined;
icon?: string | undefined;
color?: string | null | undefined;
icon?: string | null | undefined;
}, {
sortOrder: number;
color?: string | undefined;
icon?: string | undefined;
}>>;
keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
admins: z.ZodOptional<z.ZodArray<z.ZodObject<{
color?: string | null | undefined;
icon?: string | null | undefined;
}>>>;
keywords: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
admins: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
azureUniqueId: z.ZodString;
displayName: z.ZodOptional<z.ZodString>;
mail: z.ZodOptional<z.ZodString>;
upn: z.ZodOptional<z.ZodString>;
accountType: z.ZodOptional<z.ZodString>;
accountClassification: z.ZodOptional<z.ZodString>;
isExpired: z.ZodOptional<z.ZodBoolean>;
displayName: z.ZodString;
mail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
upn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
accountType: z.ZodString;
accountClassification: z.ZodOptional<z.ZodNullable<z.ZodString>>;
isExpired: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
}, "strip", z.ZodTypeAny, {
azureUniqueId: string;
displayName?: string | undefined;
mail?: string | undefined;
upn?: string | undefined;
accountType?: string | undefined;
accountClassification?: string | undefined;
isExpired?: boolean | undefined;
displayName: string;
accountType: string;
mail?: string | null | undefined;
upn?: string | null | undefined;
accountClassification?: string | null | undefined;
isExpired?: boolean | null | undefined;
}, {
azureUniqueId: string;
displayName?: string | undefined;
mail?: string | undefined;
upn?: string | undefined;
accountType?: string | undefined;
accountClassification?: string | undefined;
isExpired?: boolean | undefined;
}>, "many">>;
owners: z.ZodOptional<z.ZodArray<z.ZodObject<{
displayName: string;
accountType: string;
mail?: string | null | undefined;
upn?: string | null | undefined;
accountClassification?: string | null | undefined;
isExpired?: boolean | null | undefined;
}>, "many">>>;
owners: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
azureUniqueId: z.ZodString;
displayName: z.ZodOptional<z.ZodString>;
mail: z.ZodOptional<z.ZodString>;
upn: z.ZodOptional<z.ZodString>;
accountType: z.ZodOptional<z.ZodString>;
accountClassification: z.ZodOptional<z.ZodString>;
isExpired: z.ZodOptional<z.ZodBoolean>;
displayName: z.ZodString;
mail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
upn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
accountType: z.ZodString;
accountClassification: z.ZodOptional<z.ZodNullable<z.ZodString>>;
isExpired: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
}, "strip", z.ZodTypeAny, {
azureUniqueId: string;
displayName?: string | undefined;
mail?: string | undefined;
upn?: string | undefined;
accountType?: string | undefined;
accountClassification?: string | undefined;
isExpired?: boolean | undefined;
displayName: string;
accountType: string;
mail?: string | null | undefined;
upn?: string | null | undefined;
accountClassification?: string | null | undefined;
isExpired?: boolean | null | undefined;
}, {
azureUniqueId: string;
displayName?: string | undefined;
mail?: string | undefined;
upn?: string | undefined;
accountType?: string | undefined;
accountClassification?: string | undefined;
isExpired?: boolean | undefined;
}>, "many">>;
build: z.ZodOptional<z.ZodObject<{
version: z.ZodOptional<z.ZodString>;
entryPoint: z.ZodOptional<z.ZodString>;
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
tag: z.ZodOptional<z.ZodEnum<["latest", "preview"]>>;
assetPath: z.ZodOptional<z.ZodString>;
configUrl: z.ZodOptional<z.ZodString>;
timestamp: z.ZodOptional<z.ZodString>;
commitSha: z.ZodOptional<z.ZodString>;
githubRepo: z.ZodOptional<z.ZodString>;
projectPage: z.ZodOptional<z.ZodString>;
uploadedBy: z.ZodOptional<z.ZodObject<{
displayName: string;
accountType: string;
mail?: string | null | undefined;
upn?: string | null | undefined;
accountClassification?: string | null | undefined;
isExpired?: boolean | null | undefined;
}>, "many">>>;
build: z.ZodOptional<z.ZodNullable<z.ZodObject<{
version: z.ZodString;
entryPoint: z.ZodString;
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
tag: z.ZodOptional<z.ZodNullable<z.ZodEnum<["latest", "preview"]>>>;
assetPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
configUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
timestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
commitSha: z.ZodOptional<z.ZodNullable<z.ZodString>>;
githubRepo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
projectPage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
allowedExtensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
uploadedBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
azureUniqueId: z.ZodString;
displayName: z.ZodOptional<z.ZodString>;
mail: z.ZodOptional<z.ZodString>;
upn: z.ZodOptional<z.ZodString>;
accountType: z.ZodOptional<z.ZodString>;
accountClassification: z.ZodOptional<z.ZodString>;
isExpired: z.ZodOptional<z.ZodBoolean>;
displayName: z.ZodString;
mail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
upn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
accountType: z.ZodString;
accountClassification: z.ZodOptional<z.ZodNullable<z.ZodString>>;
isExpired: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
}, "strip", z.ZodTypeAny, {
azureUniqueId: string;
displayName?: string | undefined;
mail?: string | undefined;
upn?: string | undefined;
accountType?: string | undefined;
accountClassification?: string | undefined;
isExpired?: boolean | undefined;
displayName: string;
accountType: string;
mail?: string | null | undefined;
upn?: string | null | undefined;
accountClassification?: string | null | undefined;
isExpired?: boolean | null | undefined;
}, {
azureUniqueId: string;
displayName?: string | undefined;
mail?: string | undefined;
upn?: string | undefined;
accountType?: string | undefined;
accountClassification?: string | undefined;
isExpired?: boolean | undefined;
}>>;
displayName: string;
accountType: string;
mail?: string | null | undefined;
upn?: string | null | undefined;
accountClassification?: string | null | undefined;
isExpired?: boolean | null | undefined;
}>>>;
}, "strip", z.ZodTypeAny, {
version?: string | undefined;
entryPoint?: string | undefined;
tags?: string[] | undefined;
tag?: "latest" | "preview" | undefined;
assetPath?: string | undefined;
configUrl?: string | undefined;
timestamp?: string | undefined;
commitSha?: string | undefined;
githubRepo?: string | undefined;
projectPage?: string | undefined;
version: string;
entryPoint: string;
tags?: string[] | null | undefined;
tag?: "latest" | "preview" | null | undefined;
assetPath?: string | null | undefined;
configUrl?: string | null | undefined;
timestamp?: string | null | undefined;
commitSha?: string | null | undefined;
githubRepo?: string | null | undefined;
projectPage?: string | null | undefined;
allowedExtensions?: string[] | null | undefined;
uploadedBy?: {
azureUniqueId: string;
displayName?: string | undefined;
mail?: string | undefined;
upn?: string | undefined;
accountType?: string | undefined;
accountClassification?: string | undefined;
isExpired?: boolean | undefined;
} | undefined;
displayName: string;
accountType: string;
mail?: string | null | undefined;
upn?: string | null | undefined;
accountClassification?: string | null | undefined;
isExpired?: boolean | null | undefined;
} | null | undefined;
}, {
version?: string | undefined;
entryPoint?: string | undefined;
tags?: string[] | undefined;
tag?: "latest" | "preview" | undefined;
assetPath?: string | undefined;
configUrl?: string | undefined;
timestamp?: string | undefined;
commitSha?: string | undefined;
githubRepo?: string | undefined;
projectPage?: string | undefined;
version: string;
entryPoint: string;
tags?: string[] | null | undefined;
tag?: "latest" | "preview" | null | undefined;
assetPath?: string | null | undefined;
configUrl?: string | null | undefined;
timestamp?: string | null | undefined;
commitSha?: string | null | undefined;
githubRepo?: string | null | undefined;
projectPage?: string | null | undefined;
allowedExtensions?: string[] | null | undefined;
uploadedBy?: {
azureUniqueId: string;
displayName?: string | undefined;
mail?: string | undefined;
upn?: string | undefined;
accountType?: string | undefined;
accountClassification?: string | undefined;
isExpired?: boolean | undefined;
} | undefined;
}>>;
displayName: string;
accountType: string;
mail?: string | null | undefined;
upn?: string | null | undefined;
accountClassification?: string | null | undefined;
isExpired?: boolean | null | undefined;
} | null | undefined;
}>>>;
}, "strip", z.ZodTypeAny, {
displayName: string;
type: string;
appKey: string;
displayName?: string | undefined;
type?: string | undefined;
description?: string | undefined;
isPinned?: boolean | undefined;
templateSource?: string | undefined;
description: string;
isPinned?: boolean | null | undefined;
templateSource?: string | null | undefined;
category?: {
displayName: string;
id: string;
displayName?: string | undefined;
name?: string | undefined;
color?: string | undefined;
defaultIcon?: string | undefined;
sortOrder?: number | undefined;
} | undefined;
name: string;
color: string;
defaultIcon: string;
sortOrder: number;
} | null | undefined;
visualization?: {
sortOrder: number;
color?: string | undefined;
icon?: string | undefined;
} | undefined;
keywords?: string[] | undefined;
color?: string | null | undefined;
icon?: string | null | undefined;
} | null | undefined;
keywords?: string[] | null | undefined;
admins?: {
azureUniqueId: string;
displayName?: string | undefined;
mail?: string | undefined;
upn?: string | undefined;
accountType?: string | undefined;
accountClassification?: string | undefined;
isExpired?: boolean | undefined;
}[] | undefined;
displayName: string;
accountType: string;
mail?: string | null | undefined;
upn?: string | null | undefined;
accountClassification?: string | null | undefined;
isExpired?: boolean | null | undefined;
}[] | null | undefined;
owners?: {
azureUniqueId: string;
displayName?: string | undefined;
mail?: string | undefined;
upn?: string | undefined;
accountType?: string | undefined;
accountClassification?: string | undefined;
isExpired?: boolean | undefined;
}[] | undefined;
displayName: string;
accountType: string;
mail?: string | null | undefined;
upn?: string | null | undefined;
accountClassification?: string | null | undefined;
isExpired?: boolean | null | undefined;
}[] | null | undefined;
build?: {
version?: string | undefined;
entryPoint?: string | undefined;
tags?: string[] | undefined;
tag?: "latest" | "preview" | undefined;
assetPath?: string | undefined;
configUrl?: string | undefined;
timestamp?: string | undefined;
commitSha?: string | undefined;
githubRepo?: string | undefined;
projectPage?: string | undefined;
version: string;
entryPoint: string;
tags?: string[] | null | undefined;
tag?: "latest" | "preview" | null | undefined;
assetPath?: string | null | undefined;
configUrl?: string | null | undefined;
timestamp?: string | null | undefined;
commitSha?: string | null | undefined;
githubRepo?: string | null | undefined;
projectPage?: string | null | undefined;
allowedExtensions?: string[] | null | undefined;
uploadedBy?: {
azureUniqueId: string;
displayName?: string | undefined;
mail?: string | undefined;
upn?: string | undefined;
accountType?: string | undefined;
accountClassification?: string | undefined;
isExpired?: boolean | undefined;
} | undefined;
} | undefined;
displayName: string;
accountType: string;
mail?: string | null | undefined;
upn?: string | null | undefined;
accountClassification?: string | null | undefined;
isExpired?: boolean | null | undefined;
} | null | undefined;
} | null | undefined;
}, {
displayName: string;
type: string;
appKey: string;
displayName?: string | undefined;
type?: string | undefined;
description?: string | undefined;
isPinned?: boolean | undefined;
templateSource?: string | undefined;
description: string;
isPinned?: boolean | null | undefined;
templateSource?: string | null | undefined;
category?: {
displayName: string;
id: string;
displayName?: string | undefined;
name?: string | undefined;
color?: string | undefined;
defaultIcon?: string | undefined;
sortOrder?: number | undefined;
} | undefined;
name: string;
color: string;
defaultIcon: string;
sortOrder: number;
} | null | undefined;
visualization?: {
sortOrder: number;
color?: string | undefined;
icon?: string | undefined;
} | undefined;
keywords?: string[] | undefined;
color?: string | null | undefined;
icon?: string | null | undefined;
} | null | undefined;
keywords?: string[] | null | undefined;
admins?: {
azureUniqueId: string;
displayName?: string | undefined;
mail?: string | undefined;
upn?: string | undefined;
accountType?: string | undefined;
accountClassification?: string | undefined;
isExpired?: boolean | undefined;
}[] | undefined;
displayName: string;
accountType: string;
mail?: string | null | undefined;
upn?: string | null | undefined;
accountClassification?: string | null | undefined;
isExpired?: boolean | null | undefined;
}[] | null | undefined;
owners?: {
azureUniqueId: string;
displayName?: string | undefined;
mail?: string | undefined;
upn?: string | undefined;
accountType?: string | undefined;
accountClassification?: string | undefined;
isExpired?: boolean | undefined;
}[] | undefined;
displayName: string;
accountType: string;
mail?: string | null | undefined;
upn?: string | null | undefined;
accountClassification?: string | null | undefined;
isExpired?: boolean | null | undefined;
}[] | null | undefined;
build?: {
version?: string | undefined;
entryPoint?: string | undefined;
tags?: string[] | undefined;
tag?: "latest" | "preview" | undefined;
assetPath?: string | undefined;
configUrl?: string | undefined;
timestamp?: string | undefined;
commitSha?: string | undefined;
githubRepo?: string | undefined;
projectPage?: string | undefined;
version: string;
entryPoint: string;
tags?: string[] | null | undefined;
tag?: "latest" | "preview" | null | undefined;
assetPath?: string | null | undefined;
configUrl?: string | null | undefined;
timestamp?: string | null | undefined;
commitSha?: string | null | undefined;
githubRepo?: string | null | undefined;
projectPage?: string | null | undefined;
allowedExtensions?: string[] | null | undefined;
uploadedBy?: {
azureUniqueId: string;
displayName?: string | undefined;
mail?: string | undefined;
upn?: string | undefined;
accountType?: string | undefined;
accountClassification?: string | undefined;
isExpired?: boolean | undefined;
} | undefined;
} | undefined;
displayName: string;
accountType: string;
mail?: string | null | undefined;
upn?: string | null | undefined;
accountClassification?: string | null | undefined;
isExpired?: boolean | null | undefined;
} | null | undefined;
} | null | undefined;
}>;

@@ -373,394 +381,402 @@ declare const _default: {

azureUniqueId: z.ZodString;
displayName: z.ZodOptional<z.ZodString>;
mail: z.ZodOptional<z.ZodString>;
upn: z.ZodOptional<z.ZodString>;
accountType: z.ZodOptional<z.ZodString>;
accountClassification: z.ZodOptional<z.ZodString>;
isExpired: z.ZodOptional<z.ZodBoolean>;
displayName: z.ZodString;
mail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
upn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
accountType: z.ZodString;
accountClassification: z.ZodOptional<z.ZodNullable<z.ZodString>>;
isExpired: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
}, "strip", z.ZodTypeAny, {
azureUniqueId: string;
displayName?: string | undefined;
mail?: string | undefined;
upn?: string | undefined;
accountType?: string | undefined;
accountClassification?: string | undefined;
isExpired?: boolean | undefined;
displayName: string;
accountType: string;
mail?: string | null | undefined;
upn?: string | null | undefined;
accountClassification?: string | null | undefined;
isExpired?: boolean | null | undefined;
}, {
azureUniqueId: string;
displayName?: string | undefined;
mail?: string | undefined;
upn?: string | undefined;
accountType?: string | undefined;
accountClassification?: string | undefined;
isExpired?: boolean | undefined;
displayName: string;
accountType: string;
mail?: string | null | undefined;
upn?: string | null | undefined;
accountClassification?: string | null | undefined;
isExpired?: boolean | null | undefined;
}>;
ApiApplicationBuildSchema: z.ZodObject<{
version: z.ZodOptional<z.ZodString>;
entryPoint: z.ZodOptional<z.ZodString>;
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
tag: z.ZodOptional<z.ZodEnum<["latest", "preview"]>>;
assetPath: z.ZodOptional<z.ZodString>;
configUrl: z.ZodOptional<z.ZodString>;
timestamp: z.ZodOptional<z.ZodString>;
commitSha: z.ZodOptional<z.ZodString>;
githubRepo: z.ZodOptional<z.ZodString>;
projectPage: z.ZodOptional<z.ZodString>;
uploadedBy: z.ZodOptional<z.ZodObject<{
version: z.ZodString;
entryPoint: z.ZodString;
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
tag: z.ZodOptional<z.ZodNullable<z.ZodEnum<["latest", "preview"]>>>;
assetPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
configUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
timestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
commitSha: z.ZodOptional<z.ZodNullable<z.ZodString>>;
githubRepo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
projectPage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
allowedExtensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
uploadedBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
azureUniqueId: z.ZodString;
displayName: z.ZodOptional<z.ZodString>;
mail: z.ZodOptional<z.ZodString>;
upn: z.ZodOptional<z.ZodString>;
accountType: z.ZodOptional<z.ZodString>;
accountClassification: z.ZodOptional<z.ZodString>;
isExpired: z.ZodOptional<z.ZodBoolean>;
displayName: z.ZodString;
mail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
upn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
accountType: z.ZodString;
accountClassification: z.ZodOptional<z.ZodNullable<z.ZodString>>;
isExpired: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
}, "strip", z.ZodTypeAny, {
azureUniqueId: string;
displayName?: string | undefined;
mail?: string | undefined;
upn?: string | undefined;
accountType?: string | undefined;
accountClassification?: string | undefined;
isExpired?: boolean | undefined;
displayName: string;
accountType: string;
mail?: string | null | undefined;
upn?: string | null | undefined;
accountClassification?: string | null | undefined;
isExpired?: boolean | null | undefined;
}, {
azureUniqueId: string;
displayName?: string | undefined;
mail?: string | undefined;
upn?: string | undefined;
accountType?: string | undefined;
accountClassification?: string | undefined;
isExpired?: boolean | undefined;
}>>;
displayName: string;
accountType: string;
mail?: string | null | undefined;
upn?: string | null | undefined;
accountClassification?: string | null | undefined;
isExpired?: boolean | null | undefined;
}>>>;
}, "strip", z.ZodTypeAny, {
version?: string | undefined;
entryPoint?: string | undefined;
tags?: string[] | undefined;
tag?: "latest" | "preview" | undefined;
assetPath?: string | undefined;
configUrl?: string | undefined;
timestamp?: string | undefined;
commitSha?: string | undefined;
githubRepo?: string | undefined;
projectPage?: string | undefined;
version: string;
entryPoint: string;
tags?: string[] | null | undefined;
tag?: "latest" | "preview" | null | undefined;
assetPath?: string | null | undefined;
configUrl?: string | null | undefined;
timestamp?: string | null | undefined;
commitSha?: string | null | undefined;
githubRepo?: string | null | undefined;
projectPage?: string | null | undefined;
allowedExtensions?: string[] | null | undefined;
uploadedBy?: {
azureUniqueId: string;
displayName?: string | undefined;
mail?: string | undefined;
upn?: string | undefined;
accountType?: string | undefined;
accountClassification?: string | undefined;
isExpired?: boolean | undefined;
} | undefined;
displayName: string;
accountType: string;
mail?: string | null | undefined;
upn?: string | null | undefined;
accountClassification?: string | null | undefined;
isExpired?: boolean | null | undefined;
} | null | undefined;
}, {
version?: string | undefined;
entryPoint?: string | undefined;
tags?: string[] | undefined;
tag?: "latest" | "preview" | undefined;
assetPath?: string | undefined;
configUrl?: string | undefined;
timestamp?: string | undefined;
commitSha?: string | undefined;
githubRepo?: string | undefined;
projectPage?: string | undefined;
version: string;
entryPoint: string;
tags?: string[] | null | undefined;
tag?: "latest" | "preview" | null | undefined;
assetPath?: string | null | undefined;
configUrl?: string | null | undefined;
timestamp?: string | null | undefined;
commitSha?: string | null | undefined;
githubRepo?: string | null | undefined;
projectPage?: string | null | undefined;
allowedExtensions?: string[] | null | undefined;
uploadedBy?: {
azureUniqueId: string;
displayName?: string | undefined;
mail?: string | undefined;
upn?: string | undefined;
accountType?: string | undefined;
accountClassification?: string | undefined;
isExpired?: boolean | undefined;
} | undefined;
displayName: string;
accountType: string;
mail?: string | null | undefined;
upn?: string | null | undefined;
accountClassification?: string | null | undefined;
isExpired?: boolean | null | undefined;
} | null | undefined;
}>;
ApiApplicationSchema: z.ZodObject<{
appKey: z.ZodString;
displayName: z.ZodOptional<z.ZodString>;
description: z.ZodOptional<z.ZodString>;
type: z.ZodOptional<z.ZodString>;
isPinned: z.ZodOptional<z.ZodBoolean>;
templateSource: z.ZodOptional<z.ZodString>;
category: z.ZodOptional<z.ZodObject<{
displayName: z.ZodString;
description: z.ZodString;
type: z.ZodString;
isPinned: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
templateSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
category: z.ZodOptional<z.ZodNullable<z.ZodObject<{
id: z.ZodString;
name: z.ZodOptional<z.ZodString>;
displayName: z.ZodOptional<z.ZodString>;
color: z.ZodOptional<z.ZodString>;
defaultIcon: z.ZodOptional<z.ZodString>;
sortOrder: z.ZodOptional<z.ZodNumber>;
name: z.ZodString;
displayName: z.ZodString;
color: z.ZodString;
defaultIcon: z.ZodString;
sortOrder: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
displayName: string;
id: string;
displayName?: string | undefined;
name?: string | undefined;
color?: string | undefined;
defaultIcon?: string | undefined;
sortOrder?: number | undefined;
name: string;
color: string;
defaultIcon: string;
sortOrder: number;
}, {
displayName: string;
id: string;
displayName?: string | undefined;
name?: string | undefined;
color?: string | undefined;
defaultIcon?: string | undefined;
sortOrder?: number | undefined;
}>>;
visualization: z.ZodOptional<z.ZodObject<{
color: z.ZodOptional<z.ZodString>;
icon: z.ZodOptional<z.ZodString>;
name: string;
color: string;
defaultIcon: string;
sortOrder: number;
}>>>;
visualization: z.ZodOptional<z.ZodNullable<z.ZodObject<{
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
sortOrder: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
sortOrder: number;
color?: string | undefined;
icon?: string | undefined;
color?: string | null | undefined;
icon?: string | null | undefined;
}, {
sortOrder: number;
color?: string | undefined;
icon?: string | undefined;
}>>;
keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
admins: z.ZodOptional<z.ZodArray<z.ZodObject<{
color?: string | null | undefined;
icon?: string | null | undefined;
}>>>;
keywords: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
admins: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
azureUniqueId: z.ZodString;
displayName: z.ZodOptional<z.ZodString>;
mail: z.ZodOptional<z.ZodString>;
upn: z.ZodOptional<z.ZodString>;
accountType: z.ZodOptional<z.ZodString>;
accountClassification: z.ZodOptional<z.ZodString>;
isExpired: z.ZodOptional<z.ZodBoolean>;
displayName: z.ZodString;
mail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
upn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
accountType: z.ZodString;
accountClassification: z.ZodOptional<z.ZodNullable<z.ZodString>>;
isExpired: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
}, "strip", z.ZodTypeAny, {
azureUniqueId: string;
displayName?: string | undefined;
mail?: string | undefined;
upn?: string | undefined;
accountType?: string | undefined;
accountClassification?: string | undefined;
isExpired?: boolean | undefined;
displayName: string;
accountType: string;
mail?: string | null | undefined;
upn?: string | null | undefined;
accountClassification?: string | null | undefined;
isExpired?: boolean | null | undefined;
}, {
azureUniqueId: string;
displayName?: string | undefined;
mail?: string | undefined;
upn?: string | undefined;
accountType?: string | undefined;
accountClassification?: string | undefined;
isExpired?: boolean | undefined;
}>, "many">>;
owners: z.ZodOptional<z.ZodArray<z.ZodObject<{
displayName: string;
accountType: string;
mail?: string | null | undefined;
upn?: string | null | undefined;
accountClassification?: string | null | undefined;
isExpired?: boolean | null | undefined;
}>, "many">>>;
owners: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
azureUniqueId: z.ZodString;
displayName: z.ZodOptional<z.ZodString>;
mail: z.ZodOptional<z.ZodString>;
upn: z.ZodOptional<z.ZodString>;
accountType: z.ZodOptional<z.ZodString>;
accountClassification: z.ZodOptional<z.ZodString>;
isExpired: z.ZodOptional<z.ZodBoolean>;
displayName: z.ZodString;
mail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
upn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
accountType: z.ZodString;
accountClassification: z.ZodOptional<z.ZodNullable<z.ZodString>>;
isExpired: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
}, "strip", z.ZodTypeAny, {
azureUniqueId: string;
displayName?: string | undefined;
mail?: string | undefined;
upn?: string | undefined;
accountType?: string | undefined;
accountClassification?: string | undefined;
isExpired?: boolean | undefined;
displayName: string;
accountType: string;
mail?: string | null | undefined;
upn?: string | null | undefined;
accountClassification?: string | null | undefined;
isExpired?: boolean | null | undefined;
}, {
azureUniqueId: string;
displayName?: string | undefined;
mail?: string | undefined;
upn?: string | undefined;
accountType?: string | undefined;
accountClassification?: string | undefined;
isExpired?: boolean | undefined;
}>, "many">>;
build: z.ZodOptional<z.ZodObject<{
version: z.ZodOptional<z.ZodString>;
entryPoint: z.ZodOptional<z.ZodString>;
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
tag: z.ZodOptional<z.ZodEnum<["latest", "preview"]>>;
assetPath: z.ZodOptional<z.ZodString>;
configUrl: z.ZodOptional<z.ZodString>;
timestamp: z.ZodOptional<z.ZodString>;
commitSha: z.ZodOptional<z.ZodString>;
githubRepo: z.ZodOptional<z.ZodString>;
projectPage: z.ZodOptional<z.ZodString>;
uploadedBy: z.ZodOptional<z.ZodObject<{
displayName: string;
accountType: string;
mail?: string | null | undefined;
upn?: string | null | undefined;
accountClassification?: string | null | undefined;
isExpired?: boolean | null | undefined;
}>, "many">>>;
build: z.ZodOptional<z.ZodNullable<z.ZodObject<{
version: z.ZodString;
entryPoint: z.ZodString;
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
tag: z.ZodOptional<z.ZodNullable<z.ZodEnum<["latest", "preview"]>>>;
assetPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
configUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
timestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
commitSha: z.ZodOptional<z.ZodNullable<z.ZodString>>;
githubRepo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
projectPage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
allowedExtensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
uploadedBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
azureUniqueId: z.ZodString;
displayName: z.ZodOptional<z.ZodString>;
mail: z.ZodOptional<z.ZodString>;
upn: z.ZodOptional<z.ZodString>;
accountType: z.ZodOptional<z.ZodString>;
accountClassification: z.ZodOptional<z.ZodString>;
isExpired: z.ZodOptional<z.ZodBoolean>;
displayName: z.ZodString;
mail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
upn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
accountType: z.ZodString;
accountClassification: z.ZodOptional<z.ZodNullable<z.ZodString>>;
isExpired: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
}, "strip", z.ZodTypeAny, {
azureUniqueId: string;
displayName?: string | undefined;
mail?: string | undefined;
upn?: string | undefined;
accountType?: string | undefined;
accountClassification?: string | undefined;
isExpired?: boolean | undefined;
displayName: string;
accountType: string;
mail?: string | null | undefined;
upn?: string | null | undefined;
accountClassification?: string | null | undefined;
isExpired?: boolean | null | undefined;
}, {
azureUniqueId: string;
displayName?: string | undefined;
mail?: string | undefined;
upn?: string | undefined;
accountType?: string | undefined;
accountClassification?: string | undefined;
isExpired?: boolean | undefined;
}>>;
displayName: string;
accountType: string;
mail?: string | null | undefined;
upn?: string | null | undefined;
accountClassification?: string | null | undefined;
isExpired?: boolean | null | undefined;
}>>>;
}, "strip", z.ZodTypeAny, {
version?: string | undefined;
entryPoint?: string | undefined;
tags?: string[] | undefined;
tag?: "latest" | "preview" | undefined;
assetPath?: string | undefined;
configUrl?: string | undefined;
timestamp?: string | undefined;
commitSha?: string | undefined;
githubRepo?: string | undefined;
projectPage?: string | undefined;
version: string;
entryPoint: string;
tags?: string[] | null | undefined;
tag?: "latest" | "preview" | null | undefined;
assetPath?: string | null | undefined;
configUrl?: string | null | undefined;
timestamp?: string | null | undefined;
commitSha?: string | null | undefined;
githubRepo?: string | null | undefined;
projectPage?: string | null | undefined;
allowedExtensions?: string[] | null | undefined;
uploadedBy?: {
azureUniqueId: string;
displayName?: string | undefined;
mail?: string | undefined;
upn?: string | undefined;
accountType?: string | undefined;
accountClassification?: string | undefined;
isExpired?: boolean | undefined;
} | undefined;
displayName: string;
accountType: string;
mail?: string | null | undefined;
upn?: string | null | undefined;
accountClassification?: string | null | undefined;
isExpired?: boolean | null | undefined;
} | null | undefined;
}, {
version?: string | undefined;
entryPoint?: string | undefined;
tags?: string[] | undefined;
tag?: "latest" | "preview" | undefined;
assetPath?: string | undefined;
configUrl?: string | undefined;
timestamp?: string | undefined;
commitSha?: string | undefined;
githubRepo?: string | undefined;
projectPage?: string | undefined;
version: string;
entryPoint: string;
tags?: string[] | null | undefined;
tag?: "latest" | "preview" | null | undefined;
assetPath?: string | null | undefined;
configUrl?: string | null | undefined;
timestamp?: string | null | undefined;
commitSha?: string | null | undefined;
githubRepo?: string | null | undefined;
projectPage?: string | null | undefined;
allowedExtensions?: string[] | null | undefined;
uploadedBy?: {
azureUniqueId: string;
displayName?: string | undefined;
mail?: string | undefined;
upn?: string | undefined;
accountType?: string | undefined;
accountClassification?: string | undefined;
isExpired?: boolean | undefined;
} | undefined;
}>>;
displayName: string;
accountType: string;
mail?: string | null | undefined;
upn?: string | null | undefined;
accountClassification?: string | null | undefined;
isExpired?: boolean | null | undefined;
} | null | undefined;
}>>>;
}, "strip", z.ZodTypeAny, {
displayName: string;
type: string;
appKey: string;
displayName?: string | undefined;
type?: string | undefined;
description?: string | undefined;
isPinned?: boolean | undefined;
templateSource?: string | undefined;
description: string;
isPinned?: boolean | null | undefined;
templateSource?: string | null | undefined;
category?: {
displayName: string;
id: string;
displayName?: string | undefined;
name?: string | undefined;
color?: string | undefined;
defaultIcon?: string | undefined;
sortOrder?: number | undefined;
} | undefined;
name: string;
color: string;
defaultIcon: string;
sortOrder: number;
} | null | undefined;
visualization?: {
sortOrder: number;
color?: string | undefined;
icon?: string | undefined;
} | undefined;
keywords?: string[] | undefined;
color?: string | null | undefined;
icon?: string | null | undefined;
} | null | undefined;
keywords?: string[] | null | undefined;
admins?: {
azureUniqueId: string;
displayName?: string | undefined;
mail?: string | undefined;
upn?: string | undefined;
accountType?: string | undefined;
accountClassification?: string | undefined;
isExpired?: boolean | undefined;
}[] | undefined;
displayName: string;
accountType: string;
mail?: string | null | undefined;
upn?: string | null | undefined;
accountClassification?: string | null | undefined;
isExpired?: boolean | null | undefined;
}[] | null | undefined;
owners?: {
azureUniqueId: string;
displayName?: string | undefined;
mail?: string | undefined;
upn?: string | undefined;
accountType?: string | undefined;
accountClassification?: string | undefined;
isExpired?: boolean | undefined;
}[] | undefined;
displayName: string;
accountType: string;
mail?: string | null | undefined;
upn?: string | null | undefined;
accountClassification?: string | null | undefined;
isExpired?: boolean | null | undefined;
}[] | null | undefined;
build?: {
version?: string | undefined;
entryPoint?: string | undefined;
tags?: string[] | undefined;
tag?: "latest" | "preview" | undefined;
assetPath?: string | undefined;
configUrl?: string | undefined;
timestamp?: string | undefined;
commitSha?: string | undefined;
githubRepo?: string | undefined;
projectPage?: string | undefined;
version: string;
entryPoint: string;
tags?: string[] | null | undefined;
tag?: "latest" | "preview" | null | undefined;
assetPath?: string | null | undefined;
configUrl?: string | null | undefined;
timestamp?: string | null | undefined;
commitSha?: string | null | undefined;
githubRepo?: string | null | undefined;
projectPage?: string | null | undefined;
allowedExtensions?: string[] | null | undefined;
uploadedBy?: {
azureUniqueId: string;
displayName?: string | undefined;
mail?: string | undefined;
upn?: string | undefined;
accountType?: string | undefined;
accountClassification?: string | undefined;
isExpired?: boolean | undefined;
} | undefined;
} | undefined;
displayName: string;
accountType: string;
mail?: string | null | undefined;
upn?: string | null | undefined;
accountClassification?: string | null | undefined;
isExpired?: boolean | null | undefined;
} | null | undefined;
} | null | undefined;
}, {
displayName: string;
type: string;
appKey: string;
displayName?: string | undefined;
type?: string | undefined;
description?: string | undefined;
isPinned?: boolean | undefined;
templateSource?: string | undefined;
description: string;
isPinned?: boolean | null | undefined;
templateSource?: string | null | undefined;
category?: {
displayName: string;
id: string;
displayName?: string | undefined;
name?: string | undefined;
color?: string | undefined;
defaultIcon?: string | undefined;
sortOrder?: number | undefined;
} | undefined;
name: string;
color: string;
defaultIcon: string;
sortOrder: number;
} | null | undefined;
visualization?: {
sortOrder: number;
color?: string | undefined;
icon?: string | undefined;
} | undefined;
keywords?: string[] | undefined;
color?: string | null | undefined;
icon?: string | null | undefined;
} | null | undefined;
keywords?: string[] | null | undefined;
admins?: {
azureUniqueId: string;
displayName?: string | undefined;
mail?: string | undefined;
upn?: string | undefined;
accountType?: string | undefined;
accountClassification?: string | undefined;
isExpired?: boolean | undefined;
}[] | undefined;
displayName: string;
accountType: string;
mail?: string | null | undefined;
upn?: string | null | undefined;
accountClassification?: string | null | undefined;
isExpired?: boolean | null | undefined;
}[] | null | undefined;
owners?: {
azureUniqueId: string;
displayName?: string | undefined;
mail?: string | undefined;
upn?: string | undefined;
accountType?: string | undefined;
accountClassification?: string | undefined;
isExpired?: boolean | undefined;
}[] | undefined;
displayName: string;
accountType: string;
mail?: string | null | undefined;
upn?: string | null | undefined;
accountClassification?: string | null | undefined;
isExpired?: boolean | null | undefined;
}[] | null | undefined;
build?: {
version?: string | undefined;
entryPoint?: string | undefined;
tags?: string[] | undefined;
tag?: "latest" | "preview" | undefined;
assetPath?: string | undefined;
configUrl?: string | undefined;
timestamp?: string | undefined;
commitSha?: string | undefined;
githubRepo?: string | undefined;
projectPage?: string | undefined;
version: string;
entryPoint: string;
tags?: string[] | null | undefined;
tag?: "latest" | "preview" | null | undefined;
assetPath?: string | null | undefined;
configUrl?: string | null | undefined;
timestamp?: string | null | undefined;
commitSha?: string | null | undefined;
githubRepo?: string | null | undefined;
projectPage?: string | null | undefined;
allowedExtensions?: string[] | null | undefined;
uploadedBy?: {
azureUniqueId: string;
displayName?: string | undefined;
mail?: string | undefined;
upn?: string | undefined;
accountType?: string | undefined;
accountClassification?: string | undefined;
isExpired?: boolean | undefined;
} | undefined;
} | undefined;
displayName: string;
accountType: string;
mail?: string | null | undefined;
upn?: string | null | undefined;
accountClassification?: string | null | undefined;
isExpired?: boolean | null | undefined;
} | null | undefined;
} | null | undefined;
}>;
};
export default _default;

@@ -48,3 +48,3 @@ import { Observable } from 'rxjs';

clearCurrentApp(): void;
getBaseUri(): string;
get assetUri(): string;
/**

@@ -51,0 +51,0 @@ * This should not be used, only for legacy creation backdoor

@@ -17,33 +17,29 @@ import { AnyModule, CombinedModules, ModulesInstance } from '@equinor/fusion-framework-module';

export type CurrentApp<TModules extends Array<AnyModule> = [], TEnv = any> = IApp<TEnv, TModules> | null | undefined;
export type AppAdmin = {
type Nullable<T> = T | null | undefined;
type AppPerson = {
id: string;
azureUniqueId?: string;
displayName?: string;
mail?: string;
upn?: string;
accountType?: string;
accountClassification?: string;
azureUniqueId: string;
displayName: string;
mail?: Nullable<string>;
upn?: Nullable<string>;
accountType: string;
accountClassification?: Nullable<string>;
isExpired?: Nullable<boolean>;
};
export type AppOwner = AppAdmin;
export type AppAdmin = AppPerson;
export type AppOwner = AppPerson;
export type AppBuildManifest = {
version?: string;
entryPoint?: string;
tags?: string[];
tag?: 'latest' | 'preview';
assetPath?: string;
configUrl?: string;
timestamp?: string;
commitSha?: string;
githubRepo?: string;
projectPage?: string;
annotations?: Record<string, string>;
allowedExtensions?: string[];
uploadedBy?: {
azureUniqueId: string;
displayName?: string;
mail?: string;
upn?: string;
accountType?: string;
accountClassification?: string;
};
version: string;
entryPoint: string;
tags?: Nullable<string[]>;
tag?: Nullable<'latest' | 'preview'>;
assetPath?: Nullable<string>;
configUrl?: Nullable<string>;
timestamp?: Nullable<string>;
commitSha?: Nullable<string>;
githubRepo?: Nullable<string>;
projectPage?: Nullable<string>;
annotations?: Nullable<Record<string, string>>;
allowedExtensions?: Nullable<string[]>;
uploadedBy?: Nullable<AppOwner>;
};

@@ -56,8 +52,8 @@ export interface AppManifest {

name?: string;
displayName?: string;
description?: string;
type?: AppType;
isPinned?: boolean;
templateSource?: string;
category?: {
displayName: string;
description: string;
type: AppType;
isPinned?: Nullable<boolean>;
templateSource?: Nullable<string>;
category?: Nullable<{
id: string;

@@ -68,13 +64,13 @@ name: string;

defaultIcon: string;
sortOrder: 1000;
};
visualization?: {
color?: string;
icon?: string;
sortOrder: number;
};
keywords?: string[];
admins?: AppAdmin[];
owners?: AppOwner[];
build?: AppBuildManifest;
}>;
visualization?: Nullable<{
color?: Nullable<string>;
icon?: Nullable<string>;
sortOrder: number;
}>;
keywords?: Nullable<string[]>;
admins?: Nullable<AppAdmin[]>;
owners?: Nullable<AppOwner[]>;
build?: Nullable<AppBuildManifest>;
}

@@ -81,0 +77,0 @@ export type Endpoint = {

{
"name": "@equinor/fusion-framework-module-app",
"version": "6.0.0-alpha-df90c0f890db097d17d4b84fe6face6323143970",
"version": "6.0.0-next-499bdf0f6597dbdcfdabd563b94ed08de36bbfe4",
"description": "",

@@ -60,7 +60,7 @@ "main": "dist/esm/index.js",

"typescript": "^5.5.4",
"@equinor/fusion-framework-module": "^4.3.5-alpha-df90c0f890db097d17d4b84fe6face6323143970",
"@equinor/fusion-framework-module-event": "^4.2.4-alpha-df90c0f890db097d17d4b84fe6face6323143970",
"@equinor/fusion-framework-module-http": "^6.1.0-alpha-df90c0f890db097d17d4b84fe6face6323143970",
"@equinor/fusion-framework-module-service-discovery": "^8.0.0-alpha-df90c0f890db097d17d4b84fe6face6323143970",
"@equinor/fusion-framework-module-msal": "^3.1.5-alpha-df90c0f890db097d17d4b84fe6face6323143970"
"@equinor/fusion-framework-module": "^4.3.5",
"@equinor/fusion-framework-module-event": "^4.2.4",
"@equinor/fusion-framework-module-http": "^6.2.0",
"@equinor/fusion-framework-module-msal": "^3.1.5",
"@equinor/fusion-framework-module-service-discovery": "^8.0.1"
},

@@ -67,0 +67,0 @@ "scripts": {

@@ -108,3 +108,3 @@ import { from, of, concat } from 'rxjs';

switchMap(({ payload }) => {
const endpoint = [provider.getBaseUri(), payload].join('/').replace(/\/{2,}/g, '/');
const endpoint = [provider.assetUri, payload].join('/').replace(/\/{2,}/g, '/');
// dynamically import the application script

@@ -111,0 +111,0 @@ return from(import(/* @vite-ignore */ endpoint)).pipe(

@@ -52,2 +52,3 @@ import { catchError, map, Observable, ObservableInput } from 'rxjs';

categoryId: category?.id,
category,
} as AppManifest;

@@ -91,4 +92,6 @@ });

},
selector: async (res: Response) =>
ApplicationSchema.array().parse(await jsonSelector(res)),
selector: async (res: Response) => {
const response = (await jsonSelector(res)) as { value: unknown[] };
return ApplicationSchema.array().parse(response.value);
},
});

@@ -95,0 +98,0 @@ },

@@ -15,3 +15,4 @@ import {

client: IAppClient;
baseUri?: string;
// uri which to fetch the assets from aka the bundle of the application
assetUri?: string;
}

@@ -25,3 +26,3 @@

) => void;
setBaseUri: (base_or_cb: string | ConfigBuilderCallback<string>) => void;
setAssetUri: (base_or_cb: string | ConfigBuilderCallback<string>) => void;
}

@@ -65,5 +66,5 @@

// TODO - explain why, used in import of resources aka proxy url
public setBaseUri(base_or_cb: string | ConfigBuilderCallback<string>) {
public setAssetUri(base_or_cb: string | ConfigBuilderCallback<string>) {
const cb = typeof base_or_cb === 'string' ? async () => base_or_cb : base_or_cb;
this._set('baseUri', cb);
this._set('assetUri', cb);
}

@@ -83,4 +84,4 @@

if (!this._has('baseUri')) {
this.setBaseUri('/apps-proxy');
if (!this._has('assetUri')) {
this.setAssetUri('/apps-proxy');
}

@@ -87,0 +88,0 @@

@@ -5,22 +5,23 @@ import z from 'zod';

azureUniqueId: z.string(),
displayName: z.string().optional(),
mail: z.string().optional(),
upn: z.string().optional(),
accountType: z.string().optional(),
accountClassification: z.string().optional(),
isExpired: z.boolean().optional(),
displayName: z.string(),
mail: z.string().nullish(),
upn: z.string().nullish(),
accountType: z.string(),
accountClassification: z.string().nullish(),
isExpired: z.boolean().nullish(),
});
export const ApiApplicationBuildSchema = z.object({
version: z.string().optional(),
entryPoint: z.string().optional(),
tags: z.array(z.string()).optional(),
tag: z.enum(['latest', 'preview']).optional(),
assetPath: z.string().optional(),
configUrl: z.string().optional(),
timestamp: z.string().optional(),
commitSha: z.string().optional(),
githubRepo: z.string().optional(),
projectPage: z.string().optional(),
uploadedBy: ApiApplicationPersonSchema.optional(),
version: z.string(),
entryPoint: z.string(),
tags: z.array(z.string()).nullish(),
tag: z.enum(['latest', 'preview']).nullish(),
assetPath: z.string().nullish(),
configUrl: z.string().nullish(),
timestamp: z.string().nullish(),
commitSha: z.string().nullish(),
githubRepo: z.string().nullish(),
projectPage: z.string().nullish(),
allowedExtensions: z.array(z.string()).nullish(),
uploadedBy: ApiApplicationPersonSchema.nullish(),
});

@@ -30,30 +31,30 @@

appKey: z.string(),
displayName: z.string().optional(),
description: z.string().optional(),
type: z.string().optional(),
isPinned: z.boolean().optional(),
templateSource: z.string().optional(),
displayName: z.string(),
description: z.string(),
type: z.string(),
isPinned: z.boolean().nullish(),
templateSource: z.string().nullish(),
category: z
.object({
id: z.string(),
name: z.string().optional(),
displayName: z.string().optional(),
color: z.string().optional(),
defaultIcon: z.string().optional(),
sortOrder: z.number().optional(),
name: z.string(),
displayName: z.string(),
color: z.string(),
defaultIcon: z.string(),
sortOrder: z.number(),
})
.optional(),
.nullish(),
visualization: z
.object({
color: z.string().optional(),
icon: z.string().optional(),
color: z.string().nullish(),
icon: z.string().nullish(),
sortOrder: z.number(),
})
.optional(),
keywords: z.array(z.string()).optional(),
admins: z.array(ApiApplicationPersonSchema).optional(),
owners: z.array(ApiApplicationPersonSchema).optional(),
build: ApiApplicationBuildSchema.optional(),
.nullish(),
keywords: z.array(z.string()).nullish(),
admins: z.array(ApiApplicationPersonSchema).nullish(),
owners: z.array(ApiApplicationPersonSchema).nullish(),
build: ApiApplicationBuildSchema.nullish(),
});
export default { ApiApplicationPersonSchema, ApiApplicationBuildSchema, ApiApplicationSchema };

@@ -67,3 +67,3 @@ import {

this.#appBaseUri = config.baseUri ?? '';
this.#appBaseUri = config.assetUri ?? '';

@@ -140,3 +140,3 @@ this.#subscription.add(

public getBaseUri(): string {
public get assetUri(): string {
return this.#appBaseUri;

@@ -143,0 +143,0 @@ }

@@ -22,2 +22,3 @@ import { AnyModule, CombinedModules, ModulesInstance } from '@equinor/fusion-framework-module';

// TODO: remove `report` and `launcher` when legacy apps are removed
export type AppType = 'standalone' | 'report' | 'launcher' | 'template';

@@ -31,35 +32,33 @@

export type AppAdmin = {
type Nullable<T> = T | null | undefined;
type AppPerson = {
id: string;
azureUniqueId?: string;
displayName?: string;
mail?: string;
upn?: string;
accountType?: string;
accountClassification?: string;
azureUniqueId: string;
displayName: string;
mail?: Nullable<string>;
upn?: Nullable<string>;
accountType: string;
accountClassification?: Nullable<string>;
isExpired?: Nullable<boolean>;
};
export type AppOwner = AppAdmin;
export type AppAdmin = AppPerson;
export type AppOwner = AppPerson;
export type AppBuildManifest = {
version?: string;
entryPoint?: string;
tags?: string[];
tag?: 'latest' | 'preview';
assetPath?: string;
configUrl?: string;
timestamp?: string;
commitSha?: string;
githubRepo?: string;
projectPage?: string;
annotations?: Record<string, string>;
allowedExtensions?: string[];
uploadedBy?: {
azureUniqueId: string;
displayName?: string;
mail?: string;
upn?: string;
accountType?: string;
accountClassification?: string;
};
version: string;
entryPoint: string;
tags?: Nullable<string[]>;
tag?: Nullable<'latest' | 'preview'>;
assetPath?: Nullable<string>;
configUrl?: Nullable<string>;
timestamp?: Nullable<string>;
commitSha?: Nullable<string>;
githubRepo?: Nullable<string>;
projectPage?: Nullable<string>;
annotations?: Nullable<Record<string, string>>;
allowedExtensions?: Nullable<string[]>;
uploadedBy?: Nullable<AppOwner>;
};

@@ -73,8 +72,8 @@

name?: string;
displayName?: string;
description?: string;
type?: AppType;
isPinned?: boolean;
templateSource?: string;
category?: {
displayName: string;
description: string;
type: AppType;
isPinned?: Nullable<boolean>;
templateSource?: Nullable<string>;
category?: Nullable<{
id: string;

@@ -85,13 +84,13 @@ name: string;

defaultIcon: string;
sortOrder: 1000;
};
visualization?: {
color?: string;
icon?: string;
sortOrder: number;
};
keywords?: string[];
admins?: AppAdmin[];
owners?: AppOwner[];
build?: AppBuildManifest;
}>;
visualization?: Nullable<{
color?: Nullable<string>;
icon?: Nullable<string>;
sortOrder: number;
}>;
keywords?: Nullable<string[]>;
admins?: Nullable<AppAdmin[]>;
owners?: Nullable<AppOwner[]>;
build?: Nullable<AppBuildManifest>;
}

@@ -133,31 +132,1 @@

ModulesInstance<AppModules<TModules>>;
// export type ApiAppVersionConfig = {
// environment: string;
// endpoints: Record<
// string,
// {
// url: string;
// scopes: string[];
// }
// >;
// };
// export type ApiApp = {
// appKey: string;
// displayName?: string;
// description?: string;
// type?: AppType;
// isPinned?: boolean;
// templateSource?: string;
// category?: AppCategory;
// visualization: {
// color: string;
// icon: string;
// sortOrder: number;
// };
// keywords: string[];
// admins: AppOwnerOrAdmin[];
// owners: AppOwnerOrAdmin[];
// build: AppBuild<AzureUniqueId>;
// };

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc