mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-16 07:25:38 +00:00
Moved types from factory to schema
This commit is contained in:
@@ -20,20 +20,33 @@ export interface FactoryOptions {
|
||||
shouldOverwrite?: boolean;
|
||||
}
|
||||
|
||||
export interface PassInstance {
|
||||
model: { [key: string]: Buffer };
|
||||
certificates: {
|
||||
export interface BundleUnit {
|
||||
[key: string]: Buffer;
|
||||
}
|
||||
|
||||
export interface PartitionedBundle {
|
||||
bundle: BundleUnit;
|
||||
l10nBundle: {
|
||||
[key: string]: BundleUnit
|
||||
};
|
||||
}
|
||||
|
||||
export interface FinalCertificates {
|
||||
wwdr: string;
|
||||
signerCert: string;
|
||||
signerKey: {
|
||||
keyFile: string;
|
||||
passphrase?: string;
|
||||
};
|
||||
};
|
||||
overrides?: OverridesSupportedOptions;
|
||||
shouldOverwrite?: boolean;
|
||||
signerKey: string;
|
||||
}
|
||||
|
||||
export interface PassInstance {
|
||||
model: PartitionedBundle;
|
||||
certificates: FinalCertificates;
|
||||
overrides?: OverridesSupportedOptions;
|
||||
}
|
||||
|
||||
// ************************************ //
|
||||
// * JOI Schemas + Related Interfaces * //
|
||||
// ************************************ //
|
||||
|
||||
const certificatesSchema = Joi.object().keys({
|
||||
wwdr: Joi.string().required(),
|
||||
signerCert: Joi.string().required(),
|
||||
|
||||
Reference in New Issue
Block a user