@expo/eas-build-job
Advanced tools
Comparing version 1.0.87 to 1.0.88
import Joi from 'joi'; | ||
import { z } from 'zod'; | ||
import { BuildPhase, BuildPhaseResult } from './logs'; | ||
@@ -53,2 +54,45 @@ export declare enum BuildMode { | ||
export declare const ArchiveSourceSchema: Joi.ObjectSchema<ArchiveSource>; | ||
export declare const ArchiveSourceSchemaZ: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ | ||
type: z.ZodLiteral<ArchiveSourceType.GIT>; | ||
repositoryUrl: z.ZodString; | ||
gitRef: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
type: ArchiveSourceType.GIT; | ||
repositoryUrl: string; | ||
gitRef: string; | ||
}, { | ||
type: ArchiveSourceType.GIT; | ||
repositoryUrl: string; | ||
gitRef: string; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<ArchiveSourceType.PATH>; | ||
path: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
type: ArchiveSourceType.PATH; | ||
path: string; | ||
}, { | ||
type: ArchiveSourceType.PATH; | ||
path: string; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<ArchiveSourceType.URL>; | ||
url: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
type: ArchiveSourceType.URL; | ||
url: string; | ||
}, { | ||
type: ArchiveSourceType.URL; | ||
url: string; | ||
}>, z.ZodObject<{ | ||
type: z.ZodLiteral<ArchiveSourceType.GCS>; | ||
bucketKey: z.ZodString; | ||
metadataLocation: z.ZodOptional<z.ZodString>; | ||
}, "strip", z.ZodTypeAny, { | ||
type: ArchiveSourceType.GCS; | ||
bucketKey: string; | ||
metadataLocation?: string | undefined; | ||
}, { | ||
type: ArchiveSourceType.GCS; | ||
bucketKey: string; | ||
metadataLocation?: string | undefined; | ||
}>]>; | ||
export type Env = Record<string, string>; | ||
@@ -66,2 +110,15 @@ export declare const EnvSchema: Joi.ObjectSchema<any>; | ||
export declare const EnvironmentSecretsSchema: Joi.ArraySchema<any[]>; | ||
export declare const EnvironmentSecretZ: z.ZodObject<{ | ||
name: z.ZodString; | ||
value: z.ZodString; | ||
type: z.ZodNativeEnum<typeof EnvironmentSecretType>; | ||
}, "strip", z.ZodTypeAny, { | ||
type: EnvironmentSecretType; | ||
value: string; | ||
name: string; | ||
}, { | ||
type: EnvironmentSecretType; | ||
value: string; | ||
name: string; | ||
}>; | ||
export interface Cache { | ||
@@ -68,0 +125,0 @@ disabled: boolean; |
@@ -6,4 +6,5 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.CacheSchema = exports.EnvironmentSecretsSchema = exports.EnvironmentSecretType = exports.EnvSchema = exports.ArchiveSourceSchema = exports.BuildTrigger = exports.ArchiveSourceType = exports.Platform = exports.Workflow = exports.BuildMode = void 0; | ||
exports.CacheSchema = exports.EnvironmentSecretZ = exports.EnvironmentSecretsSchema = exports.EnvironmentSecretType = exports.EnvSchema = exports.ArchiveSourceSchemaZ = exports.ArchiveSourceSchema = exports.BuildTrigger = exports.ArchiveSourceType = exports.Platform = exports.Workflow = exports.BuildMode = void 0; | ||
const joi_1 = __importDefault(require("joi")); | ||
const zod_1 = require("zod"); | ||
var BuildMode; | ||
@@ -70,2 +71,22 @@ (function (BuildMode) { | ||
}); | ||
exports.ArchiveSourceSchemaZ = zod_1.z.discriminatedUnion('type', [ | ||
zod_1.z.object({ | ||
type: zod_1.z.literal(ArchiveSourceType.GIT), | ||
repositoryUrl: zod_1.z.string().url(), | ||
gitRef: zod_1.z.string(), | ||
}), | ||
zod_1.z.object({ | ||
type: zod_1.z.literal(ArchiveSourceType.PATH), | ||
path: zod_1.z.string(), | ||
}), | ||
zod_1.z.object({ | ||
type: zod_1.z.literal(ArchiveSourceType.URL), | ||
url: zod_1.z.string().url(), | ||
}), | ||
zod_1.z.object({ | ||
type: zod_1.z.literal(ArchiveSourceType.GCS), | ||
bucketKey: zod_1.z.string(), | ||
metadataLocation: zod_1.z.string().optional(), | ||
}), | ||
]); | ||
exports.EnvSchema = joi_1.default.object().pattern(joi_1.default.string(), joi_1.default.string()); | ||
@@ -84,2 +105,7 @@ var EnvironmentSecretType; | ||
})); | ||
exports.EnvironmentSecretZ = zod_1.z.object({ | ||
name: zod_1.z.string(), | ||
value: zod_1.z.string(), | ||
type: zod_1.z.nativeEnum(EnvironmentSecretType), | ||
}); | ||
exports.CacheSchema = joi_1.default.object({ | ||
@@ -86,0 +112,0 @@ disabled: joi_1.default.boolean().default(false), |
@@ -10,1 +10,2 @@ export * as Android from './android'; | ||
export * from './context'; | ||
export * from './generic'; |
@@ -47,2 +47,3 @@ "use strict"; | ||
__exportStar(require("./context"), exports); | ||
__exportStar(require("./generic"), exports); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@expo/eas-build-job", | ||
"version": "1.0.87", | ||
"version": "1.0.88", | ||
"main": "dist/index.js", | ||
@@ -30,3 +30,4 @@ "types": "dist/index.d.ts", | ||
"joi": "^17.11.0", | ||
"semver": "^7.5.4" | ||
"semver": "^7.5.4", | ||
"zod": "^3.22.4" | ||
}, | ||
@@ -37,3 +38,3 @@ "volta": { | ||
}, | ||
"gitHead": "06254fd8957eb04ef4a2d49edf85762d9247356e" | ||
"gitHead": "6b45ac04bc89ec878ab67d3e6cbca13615798f5a" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
126668
36
1599
3
+ Addedzod@^3.22.4
+ Addedzod@3.23.8(transitive)