@octopusdeploy/step-inputs
Advanced tools
Comparing version 0.1.0 to 0.2.0
# @octopusdeploy/step-inputs | ||
## 0.2.0 | ||
### Minor Changes | ||
- 8ebd4c6: Added support for a new input type: ContainerImageReference | ||
## 0.1.0 | ||
@@ -4,0 +10,0 @@ |
@@ -17,4 +17,5 @@ "use strict"; | ||
assert(); | ||
assert(); | ||
function assert() { | ||
} | ||
//# sourceMappingURL=InputPaths.type-test.js.map |
@@ -8,1 +8,2 @@ export * from "./PackageReference"; | ||
export * from "./accounts/AzureServicePrincipal"; | ||
export * from "./ContainerImageReference"; |
@@ -20,2 +20,3 @@ "use strict"; | ||
__exportStar(require("./accounts/AzureServicePrincipal"), exports); | ||
__exportStar(require("./ContainerImageReference"), exports); | ||
//# sourceMappingURL=index.js.map |
import type { Discriminator } from "./Discriminator"; | ||
import type { SensitiveValue } from "./SensitiveValues"; | ||
import type { PackageReference } from "./PackageReference"; | ||
import type { ContainerImageReference } from "./ContainerImageReference"; | ||
export declare type InputPathToValue<InputValue> = { | ||
@@ -33,3 +34,3 @@ readonly __inputPathToValueBrand: unique symbol; | ||
}; | ||
export declare type InputPaths<PropertyType> = [PropertyType] extends [Discriminator<infer D>] ? D : [PropertyType] extends [SensitiveValue] ? ConvertibleInputPathToValue<PropertyType> : [PropertyType] extends [PackageReference] ? ConvertibleInputPathToValue<PropertyType> : [PropertyType] extends [Array<infer ArrayItem>] ? Array<ObjectInputPathsAndPathToObject<ArrayItem>> & InputPathToArray<ArrayItem> : [PropertyType] extends [object] ? ObjectInputPathsAndPathToObject<PropertyType> : [PropertyType] extends [PropertyType] ? ConvertibleInputPathToValue<PropertyType> : never; | ||
export declare type InputPaths<PropertyType> = [PropertyType] extends [Discriminator<infer D>] ? D : [PropertyType] extends [SensitiveValue] ? ConvertibleInputPathToValue<PropertyType> : [PropertyType] extends [PackageReference] ? ConvertibleInputPathToValue<PropertyType> : [PropertyType] extends [ContainerImageReference] ? ConvertibleInputPathToValue<PropertyType> : [PropertyType] extends [Array<infer ArrayItem>] ? Array<ObjectInputPathsAndPathToObject<ArrayItem>> & InputPathToArray<ArrayItem> : [PropertyType] extends [object] ? ObjectInputPathsAndPathToObject<PropertyType> : [PropertyType] extends [PropertyType] ? ConvertibleInputPathToValue<PropertyType> : never; | ||
export declare type ObjectInputPathsAndPathToObject<T> = ObjectInputPaths<T> & InputPathToObject<T>; | ||
@@ -36,0 +37,0 @@ export declare type ObjectInputPaths<T> = { |
import { SensitiveValue } from "./SensitiveValues"; | ||
import { PackageReference } from "./PackageReference"; | ||
export declare type SupportedValueTypes = number | bigint | boolean | string | null | undefined | SensitiveValue | PackageReference; | ||
import { ContainerImageReference } from "./ContainerImageReference"; | ||
export declare type SupportedValueTypes = number | bigint | boolean | string | null | undefined | SensitiveValue | PackageReference | ContainerImageReference; |
{ | ||
"name": "@octopusdeploy/step-inputs", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "The step UI", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
@@ -6,2 +6,3 @@ // simple property maps to a path with one segment | ||
import { Discriminator } from "../Discriminator"; | ||
import { ContainerImageReference } from "../ContainerImageReference"; | ||
@@ -27,2 +28,10 @@ assert<IsExactly<ObjectInputPathsAndPathToObject<{ foo: string }>, { foo: ConvertibleInputPathToValue<string> } & InputPathToObject<{ foo: string }>>>(); | ||
// works for container image references | ||
assert< | ||
IsExactly< | ||
ObjectInputPathsAndPathToObject<{ foo: ContainerImageReference }>, | ||
{ foo: ConvertibleInputPathToValue<ContainerImageReference> } & InputPathToObject<{ foo: ContainerImageReference }> | ||
> | ||
>(); | ||
// works for optional types | ||
@@ -29,0 +38,0 @@ assert<IsExactly<InputPaths<number | undefined>, ConvertibleInputPathToValue<number | undefined>>>(); |
@@ -8,1 +8,2 @@ export * from "./PackageReference"; | ||
export * from "./accounts/AzureServicePrincipal"; | ||
export * from "./ContainerImageReference"; |
import type { Discriminator } from "./Discriminator"; | ||
import type { SensitiveValue } from "./SensitiveValues"; | ||
import type { PackageReference } from "./PackageReference"; | ||
import type { ContainerImageReference } from "./ContainerImageReference"; | ||
@@ -36,2 +37,4 @@ export type InputPathToValue<InputValue> = { | ||
? ConvertibleInputPathToValue<PropertyType> | ||
: [PropertyType] extends [ContainerImageReference] | ||
? ConvertibleInputPathToValue<PropertyType> | ||
: [PropertyType] extends [Array<infer ArrayItem>] | ||
@@ -38,0 +41,0 @@ ? Array<ObjectInputPathsAndPathToObject<ArrayItem>> & InputPathToArray<ArrayItem> // eslint-disable-next-line @typescript-eslint/ban-types |
import { SensitiveValue } from "./SensitiveValues"; | ||
import { PackageReference } from "./PackageReference"; | ||
import { ContainerImageReference } from "./ContainerImageReference"; | ||
export type SupportedValueTypes = number | bigint | boolean | string | null | undefined | SensitiveValue | PackageReference; | ||
export type SupportedValueTypes = number | bigint | boolean | string | null | undefined | SensitiveValue | PackageReference | ContainerImageReference; |
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
22205
40
359