@salesforce/core
Version:
Core libraries to interact with SFDX projects, orgs, and APIs.
28 lines • 1.17 kB
JavaScript
;
/*
* Copyright (c) 2025, salesforce.com, inc.
* All rights reserved.
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.BundleEntrySchema = void 0;
const zod_1 = require("zod");
/**
* Represents an entry in a package bundle, containing version and descriptive information.
*/
exports.BundleEntrySchema = zod_1.z.object({
name: zod_1.z.string().meta({ title: 'Bundle Name' }).describe('The name of the bundle.'),
versionName: zod_1.z.string().meta({ title: 'Version Name' }).describe('Human readable name for the version.'),
versionNumber: zod_1.z
.string()
.regex(/^\d+\.\d+$/)
.meta({ title: 'Version Number' })
.describe('The version number in the format major.minor (e.g., 1.0).'),
versionDescription: zod_1.z
.string()
.optional()
.meta({ title: 'Version Description' })
.describe('Human readable version information, format not specified.'),
});
//# sourceMappingURL=bundleEntry.js.map