UNPKG

@calljmp/cli

Version:
94 lines 3.35 kB
export interface ProjectSettings { user: { session?: { durationSecs?: number; refreshThresholdSecs?: number; }; auth?: { email?: { disableSafety?: boolean; }; password?: { enabled?: boolean; minLength?: number; maxLength?: number; noRequireSymbols?: boolean; noRequireNumbers?: boolean; noRequireLetters?: boolean; allowSequentialChars?: boolean; allowRepeatedChars?: boolean; }; apple?: { enabled?: boolean; }; google?: { enabled?: boolean; clientIds?: string[]; }; }; }; } export interface Project { id: number; name: string; description: string | null; ownerId: number; organizationId: number | null; d1DatabaseName: string | null; d1DatabaseUuid: string | null; d1DatabaseVersion: number | null; appleIosTeamId: string | null; appleIosBundleId: string | null; appleIosConnected: boolean; googleAndroidPlayIntegrityResponsePubkey: string | null; googleAndroidPlayIntegrityResponsePrivkey: string | null; googleAndroidPlayIntegrityResponseKeys: string | null; googleAndroidPlayIntegrityHasResponseKeys: boolean; googleAndroidPackageName: string | null; googleAndroidConnected: boolean; devApiToken: string | null; devApiTokenExpiresAt: Date | null; serviceUuid: string | null; interfaceId: string | null; interfaceVersion: string | null; settings: ProjectSettings | null; emailsVersion: number; createdAt: Date; updatedAt: Date; deletedAt: Date | null; } export declare function jsonToProject(json: Record<string, any>): Project; export declare function projectToJson(project: Project): { id: number; name: string; description: string | null; ownerId: number; organizationId: number | null; d1DatabaseName: string | null; d1DatabaseUuid: string | null; D1DatabaseVersion: number | null; appleIosTeamId: string | null; appleIosBundleId: string | null; appleIosConnected: boolean; googleAndroidPlayIntegrityResponsePubkey: string | null; googleAndroidPlayIntegrityResponsePrivkey: string | null; googleAndroidPlayIntegrityResponseKeys: string | null; googleAndroidPlayIntegrityHasResponseKeys: boolean; googleAndroidPackageName: string | null; googleAndroidConnected: boolean; devApiToken: string | null; devApiTokenExpiresAt: string | null; serviceUuid: string | null; interfaceId: string | null; interfaceVersion: string | null; emailsVersion: number; settings: ProjectSettings | null; createdAt: string; updatedAt: string; deletedAt: string | null; }; export declare function sanitizeProjectName(name: string): string; export declare function projectSettingsToJson(settings: ProjectSettings): ProjectSettings; export declare function jsonToProjectSettings(json: Record<string, any>): ProjectSettings; export declare function mergeSettings(current: ProjectSettings | null, updates: Partial<ProjectSettings> | null): ProjectSettings | null; //# sourceMappingURL=projects.d.ts.map