mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-29 09:41:45 +00:00
Add SObject.updated
This commit is contained in:
Vendored
+6
@@ -15,6 +15,7 @@ export class SObject<T> {
|
||||
retrieve(ids: SalesforceId[], options?: Object, callback?: (err: Error, ret: Array<Record<T>>) => void): Promise<Array<Record<T>>>;
|
||||
update(record: Partial<T>, options?: Object, callback?: (err: Error, ret: RecordResult) => void): Promise<RecordResult>;
|
||||
update(records: Array<Partial<T>>, options?: Object, callback?: (err: Error, ret: RecordResult[]) => void): Promise<RecordResult[]>;
|
||||
updated(start: string | Date, end: string | Date, callback?: (err: Error, ret: UpdatedRecordsInfo) => void): Promise<UpdatedRecordsInfo>;
|
||||
upsert(records: Record<T>, extIdField: SalesforceId, options?: Object, callback?: (err: Error, ret: RecordResult) => void): Promise<RecordResult>;
|
||||
upsert(records: Array<Record<T>>, extIdField: SalesforceId, options?: Object, callback?: (err: Error, ret: RecordResult[]) => void): Promise<RecordResult[]>;
|
||||
upsertBulk(input?: Array<Record<T>> | stream.Stream | string, callback?: (err: Error, ret: RecordResult[] | BatchResultInfo[]) => void): Batch;
|
||||
@@ -75,6 +76,11 @@ export class SObject<T> {
|
||||
select(fields?: {[P in keyof T]: boolean} | Array<(keyof T)> | (keyof T), callback?: (err: Error, ret: Array<Partial<T>>) => void): Query<Array<Partial<T>>>;
|
||||
}
|
||||
|
||||
export interface UpdatedRecordsInfo {
|
||||
latestDateCovered: string;
|
||||
ids: string[];
|
||||
}
|
||||
|
||||
export interface ApprovalLayoutInfo {
|
||||
approvalLayouts: Object[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user