2023-02-16 22:39:57 +00:00
|
|
|
import type { AppMeta } from "@calcom/types/App";
|
2023-01-18 22:30:25 +00:00
|
|
|
|
|
|
|
import { appStoreMetadata as rawAppStoreMetadata } from "./apps.metadata.generated";
|
|
|
|
|
|
|
|
type RawAppStoreMetaData = typeof rawAppStoreMetadata;
|
|
|
|
type AppStoreMetaData = {
|
|
|
|
[key in keyof RawAppStoreMetaData]: AppMeta;
|
|
|
|
};
|
|
|
|
|
|
|
|
export const appStoreMetadata = {} as AppStoreMetaData;
|
|
|
|
|
|
|
|
for (const [key, value] of Object.entries(rawAppStoreMetadata)) {
|
|
|
|
appStoreMetadata[key as keyof typeof appStoreMetadata] = {
|
|
|
|
appData: null,
|
2023-04-20 21:14:50 +00:00
|
|
|
dirName: "dirName" in value ? value.dirName : value.slug,
|
2023-01-18 22:30:25 +00:00
|
|
|
__template: "",
|
|
|
|
...value,
|
|
|
|
} as AppStoreMetaData[keyof AppStoreMetaData];
|
|
|
|
}
|