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";
|
2023-08-24 20:38:15 +00:00
|
|
|
import { getNormalizedAppMetadata } from "./getNormalizedAppMetadata";
|
2023-01-18 22:30:25 +00:00
|
|
|
|
|
|
|
type RawAppStoreMetaData = typeof rawAppStoreMetadata;
|
|
|
|
type AppStoreMetaData = {
|
2023-10-10 04:16:04 +00:00
|
|
|
[key in keyof RawAppStoreMetaData]: Omit<AppMeta, "dirName"> & { dirName: string };
|
2023-01-18 22:30:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export const appStoreMetadata = {} as AppStoreMetaData;
|
|
|
|
for (const [key, value] of Object.entries(rawAppStoreMetadata)) {
|
2023-08-24 20:38:15 +00:00
|
|
|
appStoreMetadata[key as keyof typeof appStoreMetadata] = getNormalizedAppMetadata(value);
|
2023-01-18 22:30:25 +00:00
|
|
|
}
|