interface BeeminderNodeParameters {
additionalFields?:
| {
comment?: string;
requestid?: string;
timestamp?: string;
}
| { dryrun?: boolean; note?: string }
| {
datapublic?: boolean;
datasource?: "api" | "manual" | "ifttt" | "zapier";
dryrun?: boolean;
goaldate?: string;
goalval?: number;
initval?: number;
rate?: number;
secret?: boolean;
tags?: string;
}
| { datapoints?: boolean; emaciated?: boolean }
| {
associations?: boolean;
datapoints_count?: number;
diff_since?: string;
emaciated?: boolean;
skinny?: boolean;
}
| { emaciated?: boolean };
amount?: number;
authentication?: "oAuth2" | "apiToken";
datapointId?: string;
datapoints?: string;
goal_type?:
| "custom"
| "hustler"
| "biker"
| "fatloser"
| "gainer"
| "inboxer"
| "drinker";
goalName?: string;
gunits?: string;
limit?: number;
operation?: | "create"
| "get"
| "getAll"
| "update"
| "delete"
| "createAll"
| "getArchived"
| "refresh"
| "shortCircuit"
| "stepDown"
| "cancelStepDown"
| "uncle";
options?: {
page?: number;
per?: number;
sort?: string;
};
resource?: "user"
| "charge"
| "datapoint"
| "goal";
returnAll?: boolean;
slug?: string;
title?: string;
updateFields?:
| {
datapublic?: boolean;
datasource?: ""
| "api"
| "ifttt"
| "zapier";
roadall?: string;
secret?: boolean;
tags?: string;
title?: string;
tmax?: string;
tmin?: string;
yaxis?: string;
}
| {
comment?: string;
timestamp?: string;
value?: number;
};
value?: number;
}
Properties§
Source§readonly additional Fields?:
| {
comment?: string;
requestid?: string;
timestamp?: string;
}
| { dryrun?: boolean; note?: string }
| {
datapublic?: boolean;
datasource?: "api" | "manual" | "ifttt" | "zapier";
dryrun?: boolean;
goaldate?: string;
goalval?: number;
initval?: number;
rate?: number;
secret?: boolean;
tags?: string;
}
| { datapoints?: boolean; emaciated?: boolean }
| {
associations?: boolean;
datapoints_count?: number;
diff_since?: string;
emaciated?: boolean;
skinny?: boolean;
}
| { emaciated?: boolean }
readonly additional Fields?:
| {
comment?: string;
requestid?: string;
timestamp?: string;
}
| { dryrun?: boolean; note?: string }
| {
datapublic?: boolean;
datasource?: "api" | "manual" | "ifttt" | "zapier";
dryrun?: boolean;
goaldate?: string;
goalval?: number;
initval?: number;
rate?: number;
secret?: boolean;
tags?: string;
}
| { datapoints?: boolean; emaciated?: boolean }
| {
associations?: boolean;
datapoints_count?: number;
diff_since?: string;
emaciated?: boolean;
skinny?: boolean;
}
| { emaciated?: boolean }
Source§readonly datapoints?: string
readonly datapoints?: string
Array of datapoint objects to create. Each object should contain value and optionally timestamp, comment, etc. Default: "[]"
Source§readonly goal _ type?:
| "custom"
| "hustler"
| "biker"
| "fatloser"
| "gainer"
| "inboxer"
| "drinker"
readonly goal _ type?:
| "custom"
| "hustler"
| "biker"
| "fatloser"
| "gainer"
| "inboxer"
| "drinker"
Type of goal. More info here.. Default: "hustler"
Source§readonly goal Name?: string
readonly goal Name?: string
The name of the goal. Choose from the list, or specify an ID using an expression. Type options: {"loadOptionsMethod":"getGoals"}
Source§readonly limit?: number
readonly limit?: number
Max number of results to return Default: 30 Type options: {"minValue":1,"maxValue":300}
Source§readonly operation?:
| "create"
| "get"
| "getAll"
| "update"
| "delete"
| "createAll"
| "getArchived"
| "refresh"
| "shortCircuit"
| "stepDown"
| "cancelStepDown"
| "uncle"
readonly operation?:
| "create"
| "get"
| "getAll"
| "update"
| "delete"
| "createAll"
| "getArchived"
| "refresh"
| "shortCircuit"
| "stepDown"
| "cancelStepDown"
| "uncle"
Default: "create"
Default: {}