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
3
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 1.0.12 to 1.1.0

dist/esm/configurator.js

6

CHANGELOG.md

@@ -6,2 +6,8 @@ # Change Log

## 1.1.0 (2022-11-01)
### Features
- **module-app:** initial app module ([ce5aed1](https://github.com/equinor/fusion-framework/commit/ce5aed124431afbe55b9cf11a50a5c8d5499260e))
## 1.0.12 (2022-10-27)

@@ -8,0 +14,0 @@

20

dist/esm/types.js

@@ -1,20 +0,2 @@

export var ContextTypes;
(function (ContextTypes) {
ContextTypes["Contract"] = "Contract";
ContextTypes["OrgChart"] = "OrgChart";
ContextTypes["PDP"] = "PDP";
ContextTypes["PimsDomain"] = "PimsDomain";
ContextTypes["Portfolio"] = "Portfolio";
ContextTypes["Project"] = "Project";
ContextTypes["ProjectMaster"] = "ProjectMaster";
ContextTypes["Facility"] = "Facility";
ContextTypes["TpdPortfolio"] = "TpdPortfolio";
})(ContextTypes || (ContextTypes = {}));
export class ContextType {
constructor(id, isChildType, parentTypeIds = []) {
this.id = id;
this.isChildType = isChildType;
this.parentTypeIds = parentTypeIds;
}
}
export {};
//# sourceMappingURL=types.js.map

@@ -1,39 +0,5 @@

export declare enum ContextTypes {
Contract = "Contract",
OrgChart = "OrgChart",
PDP = "PDP",
PimsDomain = "PimsDomain",
Portfolio = "Portfolio",
Project = "Project",
ProjectMaster = "ProjectMaster",
Facility = "Facility",
TpdPortfolio = "TpdPortfolio"
}
export declare class ContextType {
readonly id: ContextTypes;
readonly isChildType: boolean;
readonly parentTypeIds: string[];
constructor(id: ContextTypes, isChildType: boolean, parentTypeIds?: string[]);
}
declare type ParentContext = {
id: string;
type: ContextType;
};
export declare type Context = {
id: string;
externalId: string | null;
type: ContextType;
title: string;
value: any;
isActive: boolean;
parent: ParentContext;
};
export declare type ContextManifest = {
readonly types: ContextTypes[];
readonly placeholder?: string;
readonly nullable?: boolean;
filterContexts?: (contexts: Context[]) => Context[];
buildUrl?: (context: Context | null, url: string) => string;
getContextFromUrl?: (url: string) => string;
};
import type { EventModule } from '@equinor/fusion-framework-module-event';
import type { HttpModule } from '@equinor/fusion-framework-module-http';
import type { ServiceDiscoveryModule } from '@equinor/fusion-framework-module-service-discovery';
export declare type ModuleDeps = [HttpModule, ServiceDiscoveryModule, EventModule];
export declare type AppType = 'standalone' | 'report' | 'launcher';

@@ -58,3 +24,2 @@ export declare type AppAuth = {

tags: string[];
context?: ContextManifest;
auth?: AppAuth[];

@@ -69,2 +34,11 @@ icon?: string;

};
export declare type Endpoint = {
name: string;
uri: string;
scopes?: string[];
};
export declare type AppConfig<TEnvironment = unknown> = {
environment: TEnvironment;
endpoints: Record<string, string | Endpoint>;
};
export {};
{
"name": "@equinor/fusion-framework-module-app",
"version": "1.0.12",
"version": "1.1.0",
"description": "",

@@ -23,12 +23,16 @@ "main": "dist/esm/index.js",

"url": "git+https://github.com/equinor/fusion-framework.git",
"directory": "packages/module-apps"
"directory": "packages/module-app"
},
"dependencies": {
"@equinor/fusion-framework-module": "^1.2.6",
"@equinor/fusion-observable": "^1.3.0",
"rxjs": "^7.5.7"
},
"devDependencies": {
"@equinor/fusion-framework-module": "^1.2.6",
"typescript": "^4.8.4"
},
"gitHead": "2ad4d827ff390bbc3e45c2962598df918457f6e6"
"peerDependencies": {
"@equinor/fusion-observable": "^1.2.1"
},
"gitHead": "21ae1ec0a760c03a0887eced5532de8443274916"
}

@@ -1,46 +0,8 @@

export enum ContextTypes {
Contract = 'Contract',
OrgChart = 'OrgChart',
PDP = 'PDP',
PimsDomain = 'PimsDomain',
Portfolio = 'Portfolio',
Project = 'Project',
ProjectMaster = 'ProjectMaster',
Facility = 'Facility',
TpdPortfolio = 'TpdPortfolio',
}
import type { EventModule } from '@equinor/fusion-framework-module-event';
import type { HttpModule } from '@equinor/fusion-framework-module-http';
import type { ServiceDiscoveryModule } from '@equinor/fusion-framework-module-service-discovery';
export class ContextType {
constructor(
readonly id: ContextTypes,
readonly isChildType: boolean,
readonly parentTypeIds: string[] = []
) {}
}
// TODO: change to module-services when new app service is created
export type ModuleDeps = [HttpModule, ServiceDiscoveryModule, EventModule];
type ParentContext = {
id: string;
type: ContextType;
};
export type Context = {
id: string;
externalId: string | null;
type: ContextType;
title: string;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
value: any;
isActive: boolean;
parent: ParentContext;
};
export type ContextManifest = {
readonly types: ContextTypes[];
readonly placeholder?: string;
readonly nullable?: boolean;
filterContexts?: (contexts: Context[]) => Context[];
buildUrl?: (context: Context | null, url: string) => string;
getContextFromUrl?: (url: string) => string;
};
export type AppType = 'standalone' | 'report' | 'launcher';

@@ -68,3 +30,3 @@

tags: string[];
context?: ContextManifest;
// context?: ContextManifest;
auth?: AppAuth[];

@@ -79,1 +41,8 @@ icon?: string;

};
export type Endpoint = { name: string; uri: string; scopes?: string[] };
export type AppConfig<TEnvironment = unknown> = {
environment: TEnvironment;
endpoints: Record<string, string | Endpoint>;
};

@@ -12,2 +12,8 @@ {

"path": "../module"
},
{
"path": "../observable"
},
{
"path": "../module-http"
}

@@ -14,0 +20,0 @@ ],

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