-
Notifications
You must be signed in to change notification settings - Fork 0
/
screenshot-update-request.ts
55 lines (46 loc) · 1.52 KB
/
screenshot-update-request.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
43
44
45
46
47
48
49
50
51
52
53
54
55
import { Project } from '@/types/project';
import { Screenshot } from '@/types/screenshot';
import { ScreenshotMetadata } from '@/types/screenshot-metadata';
import { ScreenshotPhrase } from '@/types/screenshot-phrase';
import { ScreenshotTag } from '@/types/screenshot-tag';
export type ScreenshotUpdateRequest = {
/**
* Project object or Project ID.
*/
project: Project | string;
/**
* Screenshot object or Screenshot ID.
*/
screenshot: Screenshot | string;
/**
* Custom comment for the screenshot
*/
comment?: string;
/**
* Add or remove tags. Adding has priority over removing. Cannot be used together with tags.
*/
addTags?: ScreenshotTag[];
removeTags?: ScreenshotTag[];
/**
* Replace tags with the current value. Cannot be used together with addTags and/or removeTags.
*/
tags?: ScreenshotTag[];
/**
* Add or remove linked phrases. Adding has priority over removing. Cannot be used together with phrases.
*/
addPhrases?: ScreenshotPhrase[];
removePhrases?: ScreenshotPhrase[];
/**
* Replace linked phrases with the current value. Cannot be used together with addPhrases and/or removePhrases.
*/
phrases?: ScreenshotPhrase[];
/**
* Add or remove metadata. Adding has priority over removing. Cannot be used together with metadata.
*/
addMetadata?: ScreenshotMetadata;
removeMetadata?: string[];
/**
* Replace metadata with the current value. Cannot be used together with addMetadata and/or removeMetadata.
*/
metadata?: ScreenshotMetadata;
};