mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
relates to #19869 > NOTE: API integration will be included in a separate PR This adds the UI updates to support the new VPP feature on the software pages. This includes the software titles page and software titles details page. The new UI includes: **Add Vpp apps tab in Add software modal:**  **Various updates to the SoftwareIcon component to support icons from an external source:**  **Various updates to the SoftwarePackageCard compont to support app store apps.**  - [x] Changes file added for user-visible changes in `changes/`, `orbit/changes/` or `ee/fleetd-chrome/changes`. See [Changes files](https://fleetdm.com/docs/contributing/committing-changes#changes-files) for more information. - [x] Added/updated testss: - [x] Manual QA for all new/changed functionality
41 lines
1.1 KiB
TypeScript
41 lines
1.1 KiB
TypeScript
import { IMdmApple } from "interfaces/mdm";
|
|
import { IGetVppInfoResponse, IVppApp } from "services/entities/mdm_apple";
|
|
|
|
const DEFAULT_MDM_APPLE_MOCK: IMdmApple = {
|
|
common_name: "APSP:12345",
|
|
serial_number: "12345",
|
|
issuer: "Test Certification Authority",
|
|
renew_date: "2023-03-24T22:13:59Z",
|
|
};
|
|
|
|
export const createMockMdmApple = (
|
|
overrides?: Partial<IMdmApple>
|
|
): IMdmApple => {
|
|
return { ...DEFAULT_MDM_APPLE_MOCK, ...overrides };
|
|
};
|
|
|
|
const DEFAULT_MDM_APPLE_VPP_INFO_MOCK: IGetVppInfoResponse = {
|
|
org_name: "test org",
|
|
renew_date: "2024-09-19T00:00:00Z",
|
|
location: "test location",
|
|
};
|
|
|
|
export const createMockVppInfo = (
|
|
overrides?: Partial<IGetVppInfoResponse>
|
|
): IGetVppInfoResponse => {
|
|
return { ...DEFAULT_MDM_APPLE_VPP_INFO_MOCK, ...overrides };
|
|
};
|
|
|
|
const DEFAULT_MDM_APPLE_VPP_APP_MOCK: IVppApp = {
|
|
name: "Test App",
|
|
icon_url: "https://via.placeholder.com/512",
|
|
latest_version: "1.0",
|
|
app_store_id: 1,
|
|
added: false,
|
|
};
|
|
|
|
export const createMockVppApp = (overrides?: Partial<IVppApp>): IVppApp => {
|
|
return { ...DEFAULT_MDM_APPLE_VPP_APP_MOCK, ...overrides };
|
|
};
|
|
|
|
export default createMockMdmApple;
|