Browse Source

chore: remove Config namespace deprecation message

pull/6343/head
mehmet-erim 6 years ago
parent
commit
7c5b0c9c7e
  1. 50
      npm/ng-packs/packages/core/src/lib/models/config.ts

50
npm/ng-packs/packages/core/src/lib/models/config.ts

@ -1,31 +1,27 @@
import { Type } from '@angular/core';
import { AuthConfig } from 'angular-oauth2-oidc';
import { ApplicationConfiguration } from './application-configuration';
import { ABP } from './common';
import { Environment as IEnvironment } from './environment';
/**
* @deprecated Use ApplicationConfiguration.Response instead. To be deleted in v5.0.
*/
export namespace Config {
export type State = ApplicationConfiguration.Response & ABP.Root & { environment: Environment };
export interface Environment {
apis: Apis;
application: Application;
hmr?: boolean;
test?: boolean;
localization?: { defaultResourceName?: string };
oAuthConfig: AuthConfig;
production: boolean;
remoteEnv?: RemoteEnv;
}
/**
* @deprecated Use ApplicationConfiguration.Response instead. To be deleted in v5.0.
*/
export type State = ApplicationConfiguration.Response & ABP.Root & { environment: IEnvironment };
export type Environment = IEnvironment;
/**
* @deprecated Use ApplicationInfo interface instead. To be deleted in v5.0.
*/
export interface Application {
name: string;
baseUrl?: string;
logoUrl?: string;
}
/**
* @deprecated Use ApiConfig interface instead. To be deleted in v5.0.
*/
export type ApiConfig = {
[key: string]: string;
url: string;
@ -33,26 +29,38 @@ export namespace Config {
rootNamespace: string;
}>;
/**
* @deprecated Use Apis interface instead. To be deleted in v5.0.
*/
export interface Apis {
[key: string]: ApiConfig;
default: ApiConfig;
}
export interface Requirements {
layouts: Type<any>[];
}
/**
* @deprecated Use LocalizationWithDefault interface instead. To be deleted in v5.0.
*/
export interface LocalizationWithDefault {
key: string;
defaultValue: string;
}
/**
* @deprecated Use LocalizationParam interface instead. To be deleted in v5.0.
*/
export type LocalizationParam = string | LocalizationWithDefault;
/**
* @deprecated Use customMergeFn type instead. To be deleted in v5.0.
*/
export type customMergeFn = (
localEnv: Partial<Config.Environment>,
remoteEnv: any,
) => Config.Environment;
/**
* @deprecated Use RemoteEnv interface instead. To be deleted in v5.0.
*/
export interface RemoteEnv {
url: string;
mergeStrategy: 'deepmerge' | 'overwrite' | customMergeFn;

Loading…
Cancel
Save