splid-js-googlesheet-updater/node_modules/splid-js/dist/mjs/methods/createEntry.d.ts
2025-05-27 21:06:02 +02:00

90 lines
2.9 KiB
TypeScript

import { RequestConfig } from '../requestConfig';
import { Entry } from '../types/entry';
export declare function createEntry(config: RequestConfig, entry: Omit<Entry, 'GlobalId' | 'UpdateInstallationID' | 'createdGlobally' | 'createdAt' | 'updatedAt' | 'UpdateID' | 'className' | '__type' | 'objectId' | 'isDeleted' | 'isPayment' | 'group'> & {
isDeleted?: boolean;
isPayment?: boolean;
} & ({
group: {
__type: 'Pointer';
className: '_User';
objectId: string;
};
} | {
groupObjectId: string;
})): {
readonly id: "createExpense";
readonly path: "/parse/classes/Entry";
readonly method: "POST";
readonly body: {
readonly title?: string;
secondaryPayers: Record<string, number>;
readonly primaryPayer: import("../types/primitives").UserId;
readonly items: import("../types/entry").EntryItem[];
readonly currencyCode: import("../types/primitives").CurrencyCode;
readonly category?: {
originalName: string;
type: import("../types/entry").EntryCategory;
} | {
__op: "Delete";
};
readonly date?: {
__type: "Date";
iso: import("../types/primitives").IsoTime;
} | {
__op: "Delete";
};
isDeleted: boolean;
isPayment: boolean;
readonly group: {
__type: "Pointer";
className: "_User";
objectId: string;
};
readonly UpdateInstallationID: string;
readonly GlobalId: string;
readonly notes: {
readonly __op: "Delete";
};
readonly createdGlobally: {
readonly __type: "Date";
readonly iso: string;
};
readonly UpdateID: string;
} | {
readonly title?: string;
secondaryPayers: Record<string, number>;
readonly primaryPayer: import("../types/primitives").UserId;
readonly items: import("../types/entry").EntryItem[];
readonly currencyCode: import("../types/primitives").CurrencyCode;
readonly category?: {
originalName: string;
type: import("../types/entry").EntryCategory;
} | {
__op: "Delete";
};
readonly date?: {
__type: "Date";
iso: import("../types/primitives").IsoTime;
} | {
__op: "Delete";
};
isDeleted: boolean;
isPayment: boolean;
readonly groupObjectId: string;
readonly UpdateInstallationID: string;
readonly GlobalId: string;
readonly notes: {
readonly __op: "Delete";
};
readonly createdGlobally: {
readonly __type: "Date";
readonly iso: string;
};
readonly UpdateID: string;
readonly group: {
__type: string;
className: string;
objectId: string;
};
};
};