Skip to content

Commit 27dfb0c

Browse files
committed
Clean up interface/typing
1 parent 922be4f commit 27dfb0c

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

frontend/interfaces/activity.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ export interface IActivityDetails {
245245
software_package?: string;
246246
software_title_id?: number;
247247
software_title?: string;
248+
/** Custom name set per team by admin */
248249
software_display_name?: string;
249250
source?: SoftwareSource;
250251
specs?: IQuery[] | IPolicy[];

frontend/interfaces/software.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export interface IGetSoftwareByIdResponse {
3535
export interface ISoftware {
3636
id: number;
3737
name: string; // e.g., "Figma.app"
38+
/** Custom name set per team by admin */
3839
display_name?: string; // e.g. "Figma for Desktop"
3940
version: string; // e.g., "2.1.11"
4041
bundle_identifier?: string | null; // e.g., "com.figma.Desktop"
@@ -91,6 +92,9 @@ export interface ISoftwareAppStoreAppStatus {
9192

9293
export interface ISoftwarePackage {
9394
name: string;
95+
/** Not included in SoftwareTitle software.software_package response, hoisted up one level
96+
* Custom name set per team by admin
97+
*/
9498
display_name?: string;
9599
title_id: number;
96100
url: string;
@@ -120,6 +124,7 @@ export const isSoftwarePackage = (
120124

121125
export interface IAppStoreApp {
122126
name: string;
127+
/** Not included in SoftwareTitle software.app_store_app response, hoisted up one level */
123128
display_name?: string;
124129
app_store_id: string; // API returns this as a string
125130
latest_version: string;
@@ -499,7 +504,6 @@ export interface ISoftwareInstallVersion {
499504

500505
export interface IHostSoftwarePackage {
501506
name: string;
502-
display_name?: string;
503507
self_service: boolean;
504508
icon_url: string | null;
505509
version: string;
@@ -511,7 +515,7 @@ export interface IHostSoftwarePackage {
511515
}
512516

513517
export interface IHostAppStoreApp {
514-
display_name?: string;
518+
xw;
515519
app_store_id: string;
516520
self_service: boolean;
517521
icon_url: string;
@@ -523,8 +527,9 @@ export interface IHostAppStoreApp {
523527

524528
export interface IHostSoftware {
525529
id: number;
526-
name: string;
527-
display_name?: string;
530+
name: string; // e.g., "mock software.app"
531+
/** Custom name set per team by admin */
532+
display_name?: string; // e.g. "Mock Software"
528533
icon_url: string | null;
529534
software_package: IHostSoftwarePackage | null;
530535
app_store_app: IHostAppStoreApp | null;

0 commit comments

Comments
 (0)