@becomes/cms-cloud-client
Version:
SDK for accessing BCMS Cloud API
42 lines (41 loc) • 1.02 kB
TypeScript
import { FSDBEntity } from '@becomes/purple-cheetah-mod-fsdb/types';
import type { ObjectSchema } from '@becomes/purple-cheetah/types';
export declare enum InstanceFJEType {
FUNCTION = "F",
JOB = "J",
EVENT = "E"
}
export interface InstanceFJE extends FSDBEntity {
instanceId: string;
type: InstanceFJEType;
external?: boolean;
name: string;
}
export declare const InstanceFJESchema: ObjectSchema;
export interface InstanceFJECode {
imports?: string;
init?: string;
handler?: string;
raw?: string;
F?: {
public: string;
};
E?: {
scope: string;
method: string;
};
J?: {
minute: string;
hour: string;
month: string;
dayOfMonth: string;
dayOfWeek: string;
};
}
export declare const InstanceFJECodeSchema: ObjectSchema;
export interface InstanceFJEWithCode extends InstanceFJE {
code: InstanceFJECode;
}
export interface InstanceFJEWithCodeRaw extends InstanceFJE {
code: string;
}