mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-14 01:50:39 +09:00
Implement markdown-first company package import export
This commit is contained in:
parent
2975aa950b
commit
271c2b9018
5 changed files with 1230 additions and 157 deletions
|
|
@ -49,6 +49,7 @@ export interface CompanyPortabilityManifest {
|
|||
}
|
||||
|
||||
export interface CompanyPortabilityExportResult {
|
||||
rootPath: string;
|
||||
manifest: CompanyPortabilityManifest;
|
||||
files: Record<string, string>;
|
||||
warnings: string[];
|
||||
|
|
@ -57,7 +58,7 @@ export interface CompanyPortabilityExportResult {
|
|||
export type CompanyPortabilitySource =
|
||||
| {
|
||||
type: "inline";
|
||||
manifest: CompanyPortabilityManifest;
|
||||
rootPath?: string | null;
|
||||
files: Record<string, string>;
|
||||
}
|
||||
| {
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ export const portabilityManifestSchema = z.object({
|
|||
export const portabilitySourceSchema = z.discriminatedUnion("type", [
|
||||
z.object({
|
||||
type: z.literal("inline"),
|
||||
manifest: portabilityManifestSchema,
|
||||
rootPath: z.string().min(1).optional().nullable(),
|
||||
files: z.record(z.string()),
|
||||
}),
|
||||
z.object({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue