@zendesk/zcli-themes
Version:
zcli theme commands live here
67 lines (66 loc) • 1.39 kB
TypeScript
export declare type Flags = {
help?: string;
bind: string;
port: number;
logs: boolean;
livereload: boolean;
'https-key'?: string;
'https-cert'?: string;
};
export declare type Variable = {
identifier: string;
type: string;
value?: string | boolean | number;
};
export declare type Setting = {
variables: Variable[];
};
export declare type Manifest = {
api_version: number;
settings: Setting[];
};
export declare type ValidationError = {
description: string;
line?: number;
column?: number;
length?: number;
};
export declare type ValidationErrors = {
[path: `templates/${string}.hbs`]: ValidationError[];
};
export declare type Brand = {
id: number;
name: string;
};
export declare type JobError = {
title: string;
code: string;
message: string;
meta: object;
};
declare type JobData = {
theme_id: string;
upload: {
url: string;
parameters: {
[key: string]: string;
};
};
};
export declare type PendingJob = {
id: string;
status: 'pending';
data: JobData;
};
export declare type CompletedJob = {
id: string;
status: 'completed';
data: JobData;
};
export declare type FailedJob = {
id: string;
status: 'failed';
errors: JobError[];
};
export declare type Job = PendingJob | CompletedJob | FailedJob;
export {};