@dotcom-tool-kit/types
Advanced tools
Comparing version 2.9.2 to 2.10.0
@@ -52,5 +52,5 @@ import type { Logger } from 'winston'; | ||
} | ||
export type HookClass = { | ||
export type HookConstructor = { | ||
new (logger: Logger): Hook<void>; | ||
} & typeof Hook; | ||
}; | ||
export type RCFile = { | ||
@@ -76,3 +76,3 @@ plugins: string[]; | ||
hooks: { | ||
[id: string]: HookClass; | ||
[id: string]: HookConstructor; | ||
}; | ||
@@ -79,0 +79,0 @@ } |
@@ -207,3 +207,3 @@ import type prompts from 'prompts'; | ||
systemCode: z.ZodString; | ||
region: z.ZodString; | ||
regions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>; | ||
configPath: z.ZodOptional<z.ZodString>; | ||
@@ -219,3 +219,3 @@ useVault: z.ZodDefault<z.ZodBoolean>; | ||
awsAccountId: string; | ||
region: string; | ||
regions: string[]; | ||
buildNumVariable: string; | ||
@@ -226,6 +226,6 @@ }, { | ||
ports?: number[] | undefined; | ||
regions?: string[] | undefined; | ||
buildNumVariable?: string | undefined; | ||
systemCode: string; | ||
awsAccountId: string; | ||
region: string; | ||
}>; | ||
@@ -257,3 +257,2 @@ '@dotcom-tool-kit/typescript': z.ZodObject<{ | ||
secretAccessKeyEnvVar?: string | undefined; | ||
region: string; | ||
accessKeyId: string; | ||
@@ -264,2 +263,3 @@ secretAccessKey: string; | ||
prodBucket: string[]; | ||
region: string; | ||
destination: string; | ||
@@ -269,3 +269,2 @@ extensions: string; | ||
}, { | ||
region?: string | undefined; | ||
accessKeyIdEnvVar?: string | undefined; | ||
@@ -278,2 +277,3 @@ secretAccessKeyEnvVar?: string | undefined; | ||
prodBucket?: string[] | undefined; | ||
region?: string | undefined; | ||
destination?: string | undefined; | ||
@@ -280,0 +280,0 @@ extensions?: string | undefined; |
@@ -5,3 +5,3 @@ import { z } from 'zod'; | ||
systemCode: z.ZodString; | ||
region: z.ZodString; | ||
regions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>; | ||
configPath: z.ZodOptional<z.ZodString>; | ||
@@ -17,3 +17,3 @@ useVault: z.ZodDefault<z.ZodBoolean>; | ||
awsAccountId: string; | ||
region: string; | ||
regions: string[]; | ||
buildNumVariable: string; | ||
@@ -24,6 +24,6 @@ }, { | ||
ports?: number[] | undefined; | ||
regions?: string[] | undefined; | ||
buildNumVariable?: string | undefined; | ||
systemCode: string; | ||
awsAccountId: string; | ||
region: string; | ||
}>; | ||
@@ -34,3 +34,3 @@ export type ServerlessOptions = z.infer<typeof ServerlessSchema>; | ||
systemCode: z.ZodString; | ||
region: z.ZodString; | ||
regions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>; | ||
configPath: z.ZodOptional<z.ZodString>; | ||
@@ -46,3 +46,3 @@ useVault: z.ZodDefault<z.ZodBoolean>; | ||
awsAccountId: string; | ||
region: string; | ||
regions: string[]; | ||
buildNumVariable: string; | ||
@@ -53,7 +53,7 @@ }, { | ||
ports?: number[] | undefined; | ||
regions?: string[] | undefined; | ||
buildNumVariable?: string | undefined; | ||
systemCode: string; | ||
awsAccountId: string; | ||
region: string; | ||
}>; | ||
//# sourceMappingURL=serverless.d.ts.map |
@@ -8,8 +8,8 @@ "use strict"; | ||
systemCode: zod_1.z.string(), | ||
region: zod_1.z.string(), | ||
regions: zod_1.z.array(zod_1.z.string()).default(['eu-west-1']), | ||
configPath: zod_1.z.string().optional(), | ||
useVault: zod_1.z.boolean().default(true), | ||
ports: zod_1.z.number().array().default([3001, 3002, 3003]), | ||
buildNumVariable: zod_1.z.string().default("CIRCLE_BUILD_NUM") | ||
buildNumVariable: zod_1.z.string().default('CIRCLE_BUILD_NUM') | ||
}); | ||
exports.Schema = exports.ServerlessSchema; |
@@ -17,3 +17,2 @@ import { z } from 'zod'; | ||
secretAccessKeyEnvVar?: string | undefined; | ||
region: string; | ||
accessKeyId: string; | ||
@@ -24,2 +23,3 @@ secretAccessKey: string; | ||
prodBucket: string[]; | ||
region: string; | ||
destination: string; | ||
@@ -29,3 +29,2 @@ extensions: string; | ||
}, { | ||
region?: string | undefined; | ||
accessKeyIdEnvVar?: string | undefined; | ||
@@ -38,2 +37,3 @@ secretAccessKeyEnvVar?: string | undefined; | ||
prodBucket?: string[] | undefined; | ||
region?: string | undefined; | ||
destination?: string | undefined; | ||
@@ -59,3 +59,2 @@ extensions?: string | undefined; | ||
secretAccessKeyEnvVar?: string | undefined; | ||
region: string; | ||
accessKeyId: string; | ||
@@ -66,2 +65,3 @@ secretAccessKey: string; | ||
prodBucket: string[]; | ||
region: string; | ||
destination: string; | ||
@@ -71,3 +71,2 @@ extensions: string; | ||
}, { | ||
region?: string | undefined; | ||
accessKeyIdEnvVar?: string | undefined; | ||
@@ -80,2 +79,3 @@ secretAccessKeyEnvVar?: string | undefined; | ||
prodBucket?: string[] | undefined; | ||
region?: string | undefined; | ||
destination?: string | undefined; | ||
@@ -82,0 +82,0 @@ extensions?: string | undefined; |
{ | ||
"name": "@dotcom-tool-kit/types", | ||
"version": "2.9.2", | ||
"version": "2.10.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib", |
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
71539