Skip to content

Commit 9ed8f0d

Browse files
authored
fix(rest): Separate titleField type between GET and UPDATE (#3159)
1 parent 2609f13 commit 9ed8f0d

File tree

1 file changed

+7
-11
lines changed
  • packages/rest-api-client/src/client/types/app

1 file changed

+7
-11
lines changed

packages/rest-api-client/src/client/types/app/setting.ts

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,6 @@ type Theme =
1111
| "YELLOW"
1212
| "BLACK";
1313

14-
type TitleField =
15-
| {
16-
selectionMode: "AUTO";
17-
}
18-
| {
19-
selectionMode: "MANUAL";
20-
code: string;
21-
};
22-
2314
export type GetAppSettingsForRequest = {
2415
app: AppID;
2516
lang?: AppLang;
@@ -41,7 +32,10 @@ export type GetAppSettingsForResponse = {
4132
}
4233
| { type: "PRESET"; key: string };
4334
theme: Theme;
44-
titleField: TitleField;
35+
titleField: {
36+
selectionMode: "AUTO" | "MANUAL";
37+
code: string;
38+
};
4539
enableThumbnails: boolean;
4640
enableBulkDeletion: boolean;
4741
enableComments: boolean;
@@ -68,7 +62,9 @@ export type UpdateAppSettingsForRequest = {
6862
}
6963
| { type: "PRESET"; key: string };
7064
theme?: Theme;
71-
titleField?: TitleField;
65+
titleField?:
66+
| { selectionMode: "AUTO" }
67+
| { selectionMode: "MANUAL"; code: string };
7268
enableThumbnails?: boolean;
7369
enableBulkDeletion?: boolean;
7470
enableComments?: boolean;

0 commit comments

Comments
 (0)