1 | export declare type PatchOperation = ExistingKeyOperation | RemoveOperation;
|
2 | export declare const PatchOperationType: {
|
3 | readonly add: "add";
|
4 | readonly replace: "replace";
|
5 | readonly remove: "remove";
|
6 | readonly set: "set";
|
7 | readonly incr: "incr";
|
8 | };
|
9 | export declare type ExistingKeyOperation = {
|
10 | op: keyof typeof PatchOperationType;
|
11 | value: any;
|
12 | path: string;
|
13 | };
|
14 | export declare type RemoveOperation = {
|
15 | op: "remove";
|
16 | path: string;
|
17 | };
|
18 | export declare type PatchRequestBody = {
|
19 | operations: PatchOperation[];
|
20 | condition?: string;
|
21 | } | PatchOperation[];
|
22 |
|
\ | No newline at end of file |