@qiwi/substrate-types
Advanced tools
Comparing version 1.26.0 to 1.27.0
@@ -0,1 +1,20 @@ | ||
# @qiwi/substrate-types [1.27.0](https://github.com/qiwi/substrate/compare/@qiwi/substrate-types@1.26.0...@qiwi/substrate-types@1.27.0) (2020-02-28) | ||
### Features | ||
* add IClientEventDto ([d5013b9](https://github.com/qiwi/substrate/commit/d5013b945cb7dbfd4f1237e205d263570f2322bf)) | ||
### Performance Improvements | ||
* up deps & repack ([8beeca7](https://github.com/qiwi/substrate/commit/8beeca70ba850332a07042e74269340a4bf93d86)) | ||
# @qiwi/substrate-types [1.27.0](https://github.com/qiwi/substrate/compare/@qiwi/substrate-types@1.26.0...@qiwi/substrate-types@1.27.0) (2020-02-27) | ||
### Features | ||
* add IClientEventDto ([d5013b9](https://github.com/qiwi/substrate/commit/d5013b945cb7dbfd4f1237e205d263570f2322bf)) | ||
# @qiwi/substrate-types [1.26.0](https://github.com/qiwi/substrate/compare/@qiwi/substrate-types@1.25.2...@qiwi/substrate-types@1.26.0) (2020-02-27) | ||
@@ -2,0 +21,0 @@ |
{ | ||
"name": "@qiwi/substrate-types", | ||
"version": "1.26.0", | ||
"version": "1.27.0", | ||
"main": "target/es5/index.js", | ||
@@ -55,3 +55,3 @@ "source": "target/ts/index.ts", | ||
"dts-generator": "^3.0.0", | ||
"dtslint": "^3.1.0", | ||
"dtslint": "^3.2.0", | ||
"flowgen": "^1.10.0", | ||
@@ -63,3 +63,3 @@ "lodash": "^4.17.15", | ||
"ts-to-flow": "^0.0.3", | ||
"typedoc": "0.16.10", | ||
"typedoc": "0.16.11", | ||
"typedoc-plugin-external-module-name": "3.0.0", | ||
@@ -66,0 +66,0 @@ "typescript": "3.8.2", |
@@ -26,1 +26,2 @@ /** @module @qiwi/substrate-types */ | ||
export { IHttpClient as HttpClient, IFetch as Fetch, IHttpRequestProvider as HttpRequestProvider, HttpMethod } from './IHttpClient'; | ||
export { IClientEventDto as ClientEventDto, IClientEventMeta as ClientEventMeta, EnvironmentProfile } from './IClientEventDto'; |
@@ -7,2 +7,4 @@ "use strict"; | ||
exports.LogLevel = ILogger_1.LogLevel; | ||
var IClientEventDto_1 = require("./IClientEventDto"); | ||
exports.EnvironmentProfile = IClientEventDto_1.EnvironmentProfile; | ||
//# sourceMappingURL=aliases.js.map |
@@ -26,1 +26,2 @@ /** @module @qiwi/substrate-types */ | ||
export { IHttpClient, IFetch, IHttpRequestProvider, HttpMethod } from './IHttpClient'; | ||
export { IClientEventDto, IClientEventMeta, EnvironmentProfile } from './IClientEventDto'; |
@@ -9,2 +9,4 @@ "use strict"; | ||
exports.IPromise = IPromise_1.IPromise; | ||
var IClientEventDto_1 = require("./IClientEventDto"); | ||
exports.EnvironmentProfile = IClientEventDto_1.EnvironmentProfile; | ||
//# sourceMappingURL=export.js.map |
@@ -26,1 +26,2 @@ /** @module @qiwi/substrate-types */ | ||
export { IHttpClient as HttpClient, IFetch as Fetch, IHttpRequestProvider as HttpRequestProvider, HttpMethod } from './IHttpClient'; | ||
export { IClientEventDto as ClientEventDto, IClientEventMeta as ClientEventMeta, EnvironmentProfile } from './IClientEventDto'; |
@@ -7,2 +7,4 @@ "use strict"; | ||
exports.LogLevel = ILogger_1.LogLevel; | ||
var IClientEventDto_1 = require("./IClientEventDto"); | ||
exports.EnvironmentProfile = IClientEventDto_1.EnvironmentProfile; | ||
//# sourceMappingURL=aliases.js.map |
@@ -26,1 +26,2 @@ /** @module @qiwi/substrate-types */ | ||
export { IHttpClient, IFetch, IHttpRequestProvider, HttpMethod } from './IHttpClient'; | ||
export { IClientEventDto, IClientEventMeta, EnvironmentProfile } from './IClientEventDto'; |
@@ -9,2 +9,4 @@ "use strict"; | ||
exports.IPromise = IPromise_1.IPromise; | ||
var IClientEventDto_1 = require("./IClientEventDto"); | ||
exports.EnvironmentProfile = IClientEventDto_1.EnvironmentProfile; | ||
//# sourceMappingURL=export.js.map |
@@ -54,1 +54,6 @@ /** @module @qiwi/substrate-types */ | ||
} from './IHttpClient' | ||
export { | ||
IClientEventDto as ClientEventDto, | ||
IClientEventMeta as ClientEventMeta, | ||
EnvironmentProfile | ||
} from './IClientEventDto' |
@@ -54,1 +54,6 @@ /** @module @qiwi/substrate-types */ | ||
} from './IHttpClient' | ||
export { | ||
IClientEventDto, | ||
IClientEventMeta, | ||
EnvironmentProfile | ||
} from './IClientEventDto' |
@@ -9,2 +9,65 @@ declare module '@qiwi/substrate-types/target/es5/IAnyMap' { | ||
} | ||
declare module '@qiwi/substrate-types/target/es5/helpers' { | ||
export type UnionToIntersection<U> = ((U extends any ? (k: U) => void : never) extends ((k: infer I) => void) ? I : never); | ||
export function mkenum<T extends { | ||
[index: string]: U; | ||
}, U extends string>(x: T): T; | ||
export type enumType<T> = T[keyof T]; | ||
} | ||
declare module '@qiwi/substrate-types/target/es5/ILogger' { | ||
/** @qiwi/substrate-types */ | ||
/** */ | ||
import { enumType } from '@qiwi/substrate-types/target/es5/helpers'; | ||
export type ILoggerMethod = (...args: any[]) => void; | ||
export const LogLevel: { | ||
ERROR: "error"; | ||
WARN: "warn"; | ||
INFO: "info"; | ||
DEBUG: "debug"; | ||
TRACE: "trace"; | ||
}; | ||
export type LogLevel = enumType<typeof LogLevel>; | ||
export interface ILogger { | ||
trace: ILoggerMethod; | ||
debug: ILoggerMethod; | ||
info: ILoggerMethod; | ||
log: ILoggerMethod; | ||
warn: ILoggerMethod; | ||
error: ILoggerMethod; | ||
fatal?: ILoggerMethod; | ||
[key: string]: any; | ||
[key: number]: any; | ||
} | ||
} | ||
declare module '@qiwi/substrate-types/target/es5/IClientEventDto' { | ||
/** @qiwi/substrate-types */ | ||
/** */ | ||
import { enumType } from '@qiwi/substrate-types/target/es5/helpers'; | ||
import { LogLevel } from '@qiwi/substrate-types/target/es5/ILogger'; | ||
export const EnvironmentProfile: { | ||
CI: "ci"; | ||
DEV: "development"; | ||
TEST: "testing"; | ||
PROD: "prod"; | ||
STAGE: "staging"; | ||
}; | ||
export type EnvironmentProfile = enumType<typeof EnvironmentProfile>; | ||
export interface IClientEventMeta { | ||
appName: string; | ||
appHost: string; | ||
appVersion: string; | ||
appNamespace: string; | ||
appConfig?: Record<string, any>; | ||
envProfile: EnvironmentProfile; | ||
deviceInfo?: Record<string, any>; | ||
} | ||
export interface IClientEventDto { | ||
message: string; | ||
tags?: Array<string>; | ||
code?: string; | ||
level?: LogLevel; | ||
meta?: IClientEventMeta; | ||
details?: Record<string, any>; | ||
} | ||
} | ||
declare module '@qiwi/substrate-types/target/es5/ICloneable' { | ||
@@ -170,34 +233,2 @@ /** @qiwi/substrate-types */ | ||
} | ||
declare module '@qiwi/substrate-types/target/es5/helpers' { | ||
export type UnionToIntersection<U> = ((U extends any ? (k: U) => void : never) extends ((k: infer I) => void) ? I : never); | ||
export function mkenum<T extends { | ||
[index: string]: U; | ||
}, U extends string>(x: T): T; | ||
export type enumType<T> = T[keyof T]; | ||
} | ||
declare module '@qiwi/substrate-types/target/es5/ILogger' { | ||
/** @qiwi/substrate-types */ | ||
/** */ | ||
import { enumType } from '@qiwi/substrate-types/target/es5/helpers'; | ||
export type ILoggerMethod = (...args: any[]) => void; | ||
export const LogLevel: { | ||
ERROR: "error"; | ||
WARN: "warn"; | ||
INFO: "info"; | ||
DEBUG: "debug"; | ||
TRACE: "trace"; | ||
}; | ||
export type LogLevel = enumType<typeof LogLevel>; | ||
export interface ILogger { | ||
trace: ILoggerMethod; | ||
debug: ILoggerMethod; | ||
info: ILoggerMethod; | ||
log: ILoggerMethod; | ||
warn: ILoggerMethod; | ||
error: ILoggerMethod; | ||
fatal?: ILoggerMethod; | ||
[key: string]: any; | ||
[key: number]: any; | ||
} | ||
} | ||
declare module '@qiwi/substrate-types/target/es5/IMiddleware' { | ||
@@ -346,2 +377,3 @@ /** @qiwi/substrate-types */ | ||
export { IHttpClient, IFetch, IHttpRequestProvider, HttpMethod } from '@qiwi/substrate-types/target/es5/IHttpClient'; | ||
export { IClientEventDto, IClientEventMeta, EnvironmentProfile } from '@qiwi/substrate-types/target/es5/IClientEventDto'; | ||
} | ||
@@ -403,2 +435,3 @@ declare module '@qiwi/substrate-types/target/es5/IPool' { | ||
export { IHttpClient as HttpClient, IFetch as Fetch, IHttpRequestProvider as HttpRequestProvider, HttpMethod } from '@qiwi/substrate-types/target/es5/IHttpClient'; | ||
export { IClientEventDto as ClientEventDto, IClientEventMeta as ClientEventMeta, EnvironmentProfile } from '@qiwi/substrate-types/target/es5/IClientEventDto'; | ||
} | ||
@@ -405,0 +438,0 @@ declare module '@qiwi/substrate-types/target/es5/index' { |
@@ -20,2 +20,78 @@ /** | ||
declare module "@qiwi/substrate-types/target/es5/helpers" { | ||
declare export type UnionToIntersection< | ||
U | ||
> = /* Flow doesn't support conditional types, use `$Call` utility type */ any; | ||
declare export function mkenum< | ||
T: { | ||
[index: string]: U, | ||
... | ||
}, | ||
U: string | ||
>( | ||
x: T | ||
): T; | ||
declare export type enumType<T> = $ElementType<T, $Keys<T>>; | ||
} | ||
declare module "@qiwi/substrate-types/target/es5/ILogger" { | ||
import type { enumType } from "@qiwi/substrate-types/target/es5/helpers"; | ||
declare export type ILoggerMethod = (...args: any[]) => void; | ||
declare export var LogLevel: { | ||
ERROR: "error", | ||
WARN: "warn", | ||
INFO: "info", | ||
DEBUG: "debug", | ||
TRACE: "trace", | ||
... | ||
}; | ||
declare export type LogLevel = enumType<typeof LogLevel>; | ||
declare export interface ILogger { | ||
trace: ILoggerMethod; | ||
debug: ILoggerMethod; | ||
info: ILoggerMethod; | ||
log: ILoggerMethod; | ||
warn: ILoggerMethod; | ||
error: ILoggerMethod; | ||
fatal?: ILoggerMethod; | ||
[key: string]: any; | ||
[key: number]: any; | ||
} | ||
} | ||
declare module "@qiwi/substrate-types/target/es5/IClientEventDto" { | ||
import type { enumType } from "@qiwi/substrate-types/target/es5/helpers"; | ||
import type { LogLevel } from "@qiwi/substrate-types/target/es5/ILogger"; | ||
declare export var EnvironmentProfile: { | ||
CI: "ci", | ||
DEV: "development", | ||
TEST: "testing", | ||
PROD: "prod", | ||
STAGE: "staging", | ||
... | ||
}; | ||
declare export type EnvironmentProfile = enumType<typeof EnvironmentProfile>; | ||
declare export interface IClientEventMeta { | ||
appName: string; | ||
appHost: string; | ||
appVersion: string; | ||
appNamespace: string; | ||
appConfig?: { [key: string]: any, ... }; | ||
envProfile: EnvironmentProfile; | ||
deviceInfo?: { [key: string]: any, ... }; | ||
} | ||
declare export interface IClientEventDto { | ||
message: string; | ||
tags?: Array<string>; | ||
code?: string; | ||
level?: LogLevel; | ||
meta?: IClientEventMeta; | ||
details?: { [key: string]: any, ... }; | ||
} | ||
} | ||
declare module "@qiwi/substrate-types/target/es5/ICloneable" { | ||
@@ -254,45 +330,2 @@ /** | ||
declare module "@qiwi/substrate-types/target/es5/helpers" { | ||
declare export type UnionToIntersection< | ||
U | ||
> = /* Flow doesn't support conditional types, use `$Call` utility type */ any; | ||
declare export function mkenum< | ||
T: { | ||
[index: string]: U, | ||
... | ||
}, | ||
U: string | ||
>( | ||
x: T | ||
): T; | ||
declare export type enumType<T> = $ElementType<T, $Keys<T>>; | ||
} | ||
declare module "@qiwi/substrate-types/target/es5/ILogger" { | ||
import type { enumType } from "@qiwi/substrate-types/target/es5/helpers"; | ||
declare export type ILoggerMethod = (...args: any[]) => void; | ||
declare export var LogLevel: { | ||
ERROR: "error", | ||
WARN: "warn", | ||
INFO: "info", | ||
DEBUG: "debug", | ||
TRACE: "trace", | ||
... | ||
}; | ||
declare export type LogLevel = enumType<typeof LogLevel>; | ||
declare export interface ILogger { | ||
trace: ILoggerMethod; | ||
debug: ILoggerMethod; | ||
info: ILoggerMethod; | ||
log: ILoggerMethod; | ||
warn: ILoggerMethod; | ||
error: ILoggerMethod; | ||
fatal?: ILoggerMethod; | ||
[key: string]: any; | ||
[key: number]: any; | ||
} | ||
} | ||
declare module "@qiwi/substrate-types/target/es5/IMiddleware" { | ||
@@ -553,2 +586,8 @@ /** | ||
} from "@qiwi/substrate-types/target/es5/IHttpClient"; | ||
declare export { | ||
IClientEventDto, | ||
IClientEventMeta, | ||
EnvironmentProfile | ||
} from "@qiwi/substrate-types/target/es5/IClientEventDto"; | ||
} | ||
@@ -661,2 +700,8 @@ | ||
} from "@qiwi/substrate-types/target/es5/IHttpClient"; | ||
declare export { | ||
IClientEventDto as ClientEventDto, | ||
IClientEventMeta as ClientEventMeta, | ||
EnvironmentProfile | ||
} from "@qiwi/substrate-types/target/es5/IClientEventDto"; | ||
} | ||
@@ -663,0 +708,0 @@ |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
118958
201
2585