@jitsu/types
Advanced tools
Comparing version 0.3.0-alpha.0 to 0.3.1-alpha.0
@@ -6,2 +6,17 @@ import { DefaultJitsuEvent } from "./event"; | ||
/** | ||
* Information about extension build. It's added automatically | ||
* to module export during build time | ||
*/ | ||
export declare type ExtensionBuildInfo = { | ||
/** | ||
* SDK version (@jitsu/cli package version) | ||
*/ | ||
sdkVersion: string; | ||
/** | ||
* ISO 8601 timestamp of the build | ||
*/ | ||
buildTimestamp: string; | ||
}; | ||
/** | ||
* Jitsu plugin structure. This datatype isn't used anywhere but rather demonstrates the structure of | ||
@@ -36,2 +51,7 @@ * export of every plugin. | ||
validator?: ConfigValidator; | ||
/** | ||
* Automatically added to module export by `jitsu extension build` | ||
*/ | ||
buildInfo: ExtensionBuildInfo; | ||
}; | ||
@@ -112,3 +132,3 @@ | ||
*/ | ||
export declare type ExtensionDescriptor = { | ||
export declare type ExtensionDescriptor<Config = Record<string, any>> = { | ||
/** | ||
@@ -133,3 +153,3 @@ * Extension id. If extension is published as NPM package, it should match NPM package name | ||
*/ | ||
configurationParameters: ConfigurationParameter[]; | ||
configurationParameters: ConfigurationParameter<keyof Config>[]; | ||
}; |
{ | ||
"name": "@jitsu/types", | ||
"version": "0.3.0-alpha.0", | ||
"version": "0.3.1-alpha.0", | ||
"publishConfig": { | ||
@@ -20,3 +20,3 @@ "access": "public" | ||
}, | ||
"gitHead": "ce408e69992f569f34a71e3383a1b958538ffce4" | ||
"gitHead": "120161bceedd95853a88a71468df29238c117c84" | ||
} |
type ConfigParameterType = "string" | "int" | "json" | "boolean" | "password"; | ||
export type ConfigurationParameter = { | ||
export type ConfigurationParameter<T = string> = { | ||
/** | ||
* Id (corresponds to key in yaml config) | ||
*/ | ||
id: string; | ||
id: T; | ||
/** | ||
@@ -9,0 +9,0 @@ * Type of parameter |
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
10523
261