wk-nmi
Version:
This is a simple utility package
58 lines (57 loc) • 1.37 kB
TypeScript
import type { MonthConfig, DayConfig } from "../types/plans";
export declare class Plans {
url: string;
org: string;
apikey: string;
constructor(url: string, org: string, apikey: string);
all(): Promise<{
response: any;
status: number;
message: string;
}>;
id(id: string): Promise<{
response: null;
status: number;
message: string;
} | {
response: any;
status: number;
message?: undefined;
}>;
withMonthConfig(config: MonthConfig): Promise<{
response: null;
status: number;
message: string;
} | {
response: any;
status: number;
message?: undefined;
}>;
editMonthConfig(config: MonthConfig): Promise<{
response: null;
status: number;
message: string;
} | {
response: any;
status: number;
message?: undefined;
}>;
withDayConfig(config: DayConfig): Promise<{
response: null;
status: number;
message: string;
} | {
response: any;
status: number;
message?: undefined;
}>;
editDayConfig(config: DayConfig): Promise<{
response: null;
status: number;
message: string;
} | {
response: any;
status: number;
message?: undefined;
}>;
}