generated from davidbonnet/foundation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
QueryUpdateMultiple.ts
42 lines (41 loc) 路 968 Bytes
/
QueryUpdateMultiple.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import type { Context } from "./Context";
import type { Filter } from "./Filter";
import type { Order } from "./Order";
import type { Parameters } from "./Parameters";
import type { QuerySettings } from "./QuerySettings";
/**
* Query for updating multiple items.
*/
export type QueryUpdateMultiple<T extends object> = {
method: "update";
multiple: true;
/**
* Common item properties to use for identifying the context in which to update the item.
*/
context?: Context<T>;
/**
* Partial property values to update.
*/
value: Partial<T>[];
filter?: Filter<T>;
/**
* Order by which the items should be sorted.
*/
order?: Order<T>[];
/**
* Offset of the first matching item to update.
*/
offset?: number;
/**
* Sets the upper bound of the number of items to update.
*/
limit?: number;
/**
* Query parameters.
*/
parameters?: Parameters;
/**
* Query settings.
*/
settings?: QuerySettings<T>;
};