push neon reactor
This commit is contained in:
+28
@@ -0,0 +1,28 @@
|
||||
/*!
|
||||
* Copyright (C) Microsoft Corporation. All rights reserved.
|
||||
*/
|
||||
import type { ILogger } from '../telemetry/Logger.types';
|
||||
export interface IConfig {
|
||||
logger?: ILogger;
|
||||
}
|
||||
export interface IContext {
|
||||
app: IAppContext;
|
||||
host: IHostContext;
|
||||
user: IUserContext;
|
||||
}
|
||||
export interface IUserContext {
|
||||
fullName?: string;
|
||||
objectId?: string;
|
||||
tenantId?: string;
|
||||
userPrincipalName?: string;
|
||||
}
|
||||
export interface IAppContext {
|
||||
appId: string;
|
||||
appSettings: object;
|
||||
environmentId: string;
|
||||
queryParams: Record<string, string>;
|
||||
}
|
||||
export interface IHostContext {
|
||||
sessionId: string;
|
||||
}
|
||||
//# sourceMappingURL=App.Types.d.ts.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"App.Types.d.ts","sourceRoot":"","sources":["../../src/app/App.Types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAEzD,MAAM,WAAW,OAAO;IACtB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,WAAW,CAAC;IACjB,IAAI,EAAE,YAAY,CAAC;IACnB,IAAI,EAAE,YAAY,CAAC;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACrC;AAED,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
/*!
|
||||
* Copyright (C) Microsoft Corporation. All rights reserved.
|
||||
*/
|
||||
export {};
|
||||
//# sourceMappingURL=App.Types.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"App.Types.js","sourceRoot":"","sources":["../../src/app/App.Types.ts"],"names":[],"mappings":"AAAA;;GAEG"}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
/*!
|
||||
* Copyright (C) Microsoft Corporation. All rights reserved.
|
||||
*/
|
||||
import type { IConfig } from './App.Types';
|
||||
export declare function setConfig(config: IConfig): void;
|
||||
//# sourceMappingURL=Config.d.ts.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/app/Config.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,wBAAgB,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAI/C"}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
/*!
|
||||
* Copyright (C) Microsoft Corporation. All rights reserved.
|
||||
*/
|
||||
import { initializeLogger } from '../telemetry';
|
||||
export function setConfig(config) {
|
||||
if (config.logger) {
|
||||
initializeLogger(config.logger);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=Config.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Config.js","sourceRoot":"","sources":["../../src/app/Config.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAGhD,MAAM,UAAU,SAAS,CAAC,MAAe;IACvC,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC;QAClB,gBAAgB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAClC,CAAC;AACH,CAAC"}
|
||||
Generated
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
/*!
|
||||
* Copyright (C) Microsoft Corporation. All rights reserved.
|
||||
*/
|
||||
import type { IContext } from './App.Types';
|
||||
export declare function getContext(): Promise<IContext>;
|
||||
//# sourceMappingURL=ContextProvider.d.ts.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ContextProvider.d.ts","sourceRoot":"","sources":["../../src/app/ContextProvider.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI5C,wBAAsB,UAAU,IAAI,OAAO,CAAC,QAAQ,CAAC,CAOpD"}
|
||||
Generated
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
/*!
|
||||
* Copyright (C) Microsoft Corporation. All rights reserved.
|
||||
*/
|
||||
import { executePluginAsync } from '../internal/plugins';
|
||||
let context;
|
||||
export async function getContext() {
|
||||
if (context) {
|
||||
return context;
|
||||
}
|
||||
context = await executePluginAsync('AppLifecycle', 'getContext');
|
||||
return context;
|
||||
}
|
||||
//# sourceMappingURL=ContextProvider.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ContextProvider.js","sourceRoot":"","sources":["../../src/app/ContextProvider.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAGzD,IAAI,OAA6B,CAAC;AAElC,MAAM,CAAC,KAAK,UAAU,UAAU;IAC9B,IAAI,OAAO,EAAE,CAAC;QACZ,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,OAAO,GAAG,MAAM,kBAAkB,CAAW,cAAc,EAAE,YAAY,CAAC,CAAC;IAC3E,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
/*!
|
||||
* Copyright (C) Microsoft Corporation. All rights reserved.
|
||||
*/
|
||||
export type { IConfig, IContext } from './App.Types';
|
||||
export { setConfig } from './Config';
|
||||
export { getContext } from './ContextProvider';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/app/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC"}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
/*!
|
||||
* Copyright (C) Microsoft Corporation. All rights reserved.
|
||||
*/
|
||||
export { setConfig } from './Config';
|
||||
export { getContext } from './ContextProvider';
|
||||
//# sourceMappingURL=index.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/app/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC"}
|
||||
Reference in New Issue
Block a user