mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-04-20 06:28:14 -04:00
remove codegen types
This commit is contained in:
@@ -26,7 +26,9 @@
|
||||
},
|
||||
"scripts": {
|
||||
"build": "turbo run build",
|
||||
"dev": "turbo run dev --parallel",
|
||||
"setup": "yarn && db:gen && yarn dev",
|
||||
"dev": "yarn desktop dev",
|
||||
"parallel": "turbo run dev --parallel",
|
||||
"db:migrate": "cd packages/core && prisma migrate dev",
|
||||
"db:gen": "cd packages/core && prisma generate",
|
||||
"lint": "turbo run lint",
|
||||
|
||||
1
packages/core/.gitignore
vendored
1
packages/core/.gitignore
vendored
@@ -1,2 +1,3 @@
|
||||
/target
|
||||
/types
|
||||
*.db*
|
||||
@@ -1,2 +0,0 @@
|
||||
|
||||
export interface CaptureDevice { id: number, name: string, date_created: string, date_modified: string, }
|
||||
@@ -1,3 +0,0 @@
|
||||
import type { Platform } from "./Platform";
|
||||
|
||||
export interface Client { id: number, name: string, platform: Platform, online: boolean, last_seen: string, timezone: string | null, date_created: string, }
|
||||
@@ -1,2 +0,0 @@
|
||||
|
||||
export type ClientEvent = { type: "NewFileTypeThumb", data: { file_id: number, icon_created: boolean, } } | { type: "NewJobCreated", data: { job_id: number, progress: number, } } | { type: "DatabaseDisconnected", data: { reason: string | null, } };
|
||||
@@ -1,2 +0,0 @@
|
||||
|
||||
export type Encryption = "None" | "AES128" | "AES192" | "AES256";
|
||||
@@ -1,3 +0,0 @@
|
||||
import type { Encryption } from "./Encryption";
|
||||
|
||||
export interface File { id: number, meta_integrity_hash: string, sampled_byte_integrity_hash: string | null, byte_integrity_hash: string | null, uri: string, is_dir: boolean, name: string, extension: string, size_in_bytes: string, library_id: number, date_created: string, date_modified: string, date_indexed: string, encryption: Encryption, ipfs_id: string | null, location_id: number | null, capture_device_id: number | null, parent_id: number | null, }
|
||||
@@ -1,2 +0,0 @@
|
||||
|
||||
export interface Library { id: number, name: string, is_primary: boolean, remote_id: string | null, total_file_count: number | null, total_bytes_used: string | null, total_byte_capacity: string | null, date_created: string, timezone: string | null, }
|
||||
@@ -1,2 +0,0 @@
|
||||
|
||||
export interface Location { id: number, name: string, total_capacity: number, available_capacity: number, is_removable: boolean, is_ejectable: boolean, is_root_filesystem: boolean, is_online: boolean, library_id: number, client_id: number, date_created: string, last_indexed: string, }
|
||||
@@ -1,3 +0,0 @@
|
||||
import type { PathRule } from "./PathRule";
|
||||
|
||||
export interface LocationPaths { id: number, path: string, rule: PathRule, location_id: number, date_created: string, date_modified: string, }
|
||||
@@ -1,2 +0,0 @@
|
||||
|
||||
export type PathRule = "Exclude" | "NoWatch";
|
||||
@@ -1,2 +0,0 @@
|
||||
|
||||
export type Platform = "Unknown" | "MacOS" | "Windows" | "Linux" | "IOS" | "Android";
|
||||
@@ -1,2 +0,0 @@
|
||||
|
||||
export interface Space { id: number, name: string, calculated_size_in_bytes: string | null, calculated_file_count: number | null, library_id: string, date_created: string, date_modified: string, }
|
||||
@@ -1,2 +0,0 @@
|
||||
|
||||
export interface StorageDevice { id: number, name: string, path: string, total_capacity: number, available_capacity: number, is_removable: boolean, is_ejectable: boolean, is_root_filesystem: boolean, is_online: boolean, watch_active: boolean, date_created: string, last_indexed: string, }
|
||||
@@ -1,2 +0,0 @@
|
||||
|
||||
export interface Tag { id: number, name: string, total_files: string | null, redundancy_goal: number | null, library_id: string, date_created: string, date_modified: string, }
|
||||
@@ -1,220 +0,0 @@
|
||||
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
|
||||
const {
|
||||
Decimal
|
||||
} = require('./runtime/index-browser')
|
||||
|
||||
|
||||
const Prisma = {}
|
||||
|
||||
exports.Prisma = Prisma
|
||||
|
||||
/**
|
||||
* Prisma Client JS version: 3.10.0
|
||||
* Query Engine version: 73e60b76d394f8d37d8ebd1f8918c79029f0db86
|
||||
*/
|
||||
Prisma.prismaVersion = {
|
||||
client: "3.10.0",
|
||||
engine: "73e60b76d394f8d37d8ebd1f8918c79029f0db86"
|
||||
}
|
||||
|
||||
Prisma.PrismaClientKnownRequestError = () => {
|
||||
throw new Error(`PrismaClientKnownRequestError is unable to be run in the browser.
|
||||
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
|
||||
)};
|
||||
Prisma.PrismaClientUnknownRequestError = () => {
|
||||
throw new Error(`PrismaClientUnknownRequestError is unable to be run in the browser.
|
||||
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
|
||||
)}
|
||||
Prisma.PrismaClientRustPanicError = () => {
|
||||
throw new Error(`PrismaClientRustPanicError is unable to be run in the browser.
|
||||
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
|
||||
)}
|
||||
Prisma.PrismaClientInitializationError = () => {
|
||||
throw new Error(`PrismaClientInitializationError is unable to be run in the browser.
|
||||
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
|
||||
)}
|
||||
Prisma.PrismaClientValidationError = () => {
|
||||
throw new Error(`PrismaClientValidationError is unable to be run in the browser.
|
||||
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
|
||||
)}
|
||||
Prisma.Decimal = Decimal
|
||||
|
||||
/**
|
||||
* Re-export of sql-template-tag
|
||||
*/
|
||||
Prisma.sql = () => {
|
||||
throw new Error(`sqltag is unable to be run in the browser.
|
||||
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
|
||||
)}
|
||||
Prisma.empty = () => {
|
||||
throw new Error(`empty is unable to be run in the browser.
|
||||
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
|
||||
)}
|
||||
Prisma.join = () => {
|
||||
throw new Error(`join is unable to be run in the browser.
|
||||
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
|
||||
)}
|
||||
Prisma.raw = () => {
|
||||
throw new Error(`raw is unable to be run in the browser.
|
||||
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
|
||||
)}
|
||||
Prisma.validator = () => (val) => val
|
||||
|
||||
/**
|
||||
* Shorthand utilities for JSON filtering
|
||||
*/
|
||||
Prisma.DbNull = 'DbNull'
|
||||
Prisma.JsonNull = 'JsonNull'
|
||||
Prisma.AnyNull = 'AnyNull'
|
||||
|
||||
/**
|
||||
* Enums
|
||||
*/
|
||||
// Based on
|
||||
// https://github.com/microsoft/TypeScript/issues/3192#issuecomment-261720275
|
||||
function makeEnum(x) { return x; }
|
||||
|
||||
exports.Prisma.MigrationScalarFieldEnum = makeEnum({
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
checksum: 'checksum',
|
||||
steps_applied: 'steps_applied',
|
||||
applied_at: 'applied_at'
|
||||
});
|
||||
|
||||
exports.Prisma.LibraryScalarFieldEnum = makeEnum({
|
||||
id: 'id',
|
||||
uuid: 'uuid',
|
||||
name: 'name',
|
||||
remote_id: 'remote_id',
|
||||
is_primary: 'is_primary',
|
||||
encryption: 'encryption',
|
||||
date_created: 'date_created',
|
||||
timezone: 'timezone'
|
||||
});
|
||||
|
||||
exports.Prisma.LibraryStatisticsScalarFieldEnum = makeEnum({
|
||||
id: 'id',
|
||||
date_captured: 'date_captured',
|
||||
library_id: 'library_id',
|
||||
total_file_count: 'total_file_count',
|
||||
total_bytes_used: 'total_bytes_used',
|
||||
total_byte_capacity: 'total_byte_capacity',
|
||||
total_unique_bytes: 'total_unique_bytes'
|
||||
});
|
||||
|
||||
exports.Prisma.ClientScalarFieldEnum = makeEnum({
|
||||
id: 'id',
|
||||
uuid: 'uuid',
|
||||
name: 'name',
|
||||
platform: 'platform',
|
||||
version: 'version',
|
||||
online: 'online',
|
||||
last_seen: 'last_seen',
|
||||
timezone: 'timezone',
|
||||
date_created: 'date_created'
|
||||
});
|
||||
|
||||
exports.Prisma.LocationScalarFieldEnum = makeEnum({
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
path: 'path',
|
||||
total_capacity: 'total_capacity',
|
||||
available_capacity: 'available_capacity',
|
||||
is_removable: 'is_removable',
|
||||
is_ejectable: 'is_ejectable',
|
||||
is_root_filesystem: 'is_root_filesystem',
|
||||
is_online: 'is_online',
|
||||
date_created: 'date_created'
|
||||
});
|
||||
|
||||
exports.Prisma.FileScalarFieldEnum = makeEnum({
|
||||
id: 'id',
|
||||
is_dir: 'is_dir',
|
||||
location_id: 'location_id',
|
||||
stem: 'stem',
|
||||
name: 'name',
|
||||
extension: 'extension',
|
||||
quick_checksum: 'quick_checksum',
|
||||
full_checksum: 'full_checksum',
|
||||
size_in_bytes: 'size_in_bytes',
|
||||
encryption: 'encryption',
|
||||
date_created: 'date_created',
|
||||
date_modified: 'date_modified',
|
||||
date_indexed: 'date_indexed',
|
||||
ipfs_id: 'ipfs_id',
|
||||
parent_id: 'parent_id'
|
||||
});
|
||||
|
||||
exports.Prisma.TagScalarFieldEnum = makeEnum({
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
encryption: 'encryption',
|
||||
total_files: 'total_files',
|
||||
redundancy_goal: 'redundancy_goal',
|
||||
date_created: 'date_created',
|
||||
date_modified: 'date_modified'
|
||||
});
|
||||
|
||||
exports.Prisma.TagOnFileScalarFieldEnum = makeEnum({
|
||||
date_created: 'date_created',
|
||||
tag_id: 'tag_id',
|
||||
file_id: 'file_id'
|
||||
});
|
||||
|
||||
exports.Prisma.JobScalarFieldEnum = makeEnum({
|
||||
id: 'id',
|
||||
client_id: 'client_id',
|
||||
action: 'action',
|
||||
status: 'status',
|
||||
percentage_complete: 'percentage_complete',
|
||||
task_count: 'task_count',
|
||||
completed_task_count: 'completed_task_count',
|
||||
date_created: 'date_created',
|
||||
date_modified: 'date_modified'
|
||||
});
|
||||
|
||||
exports.Prisma.SpaceScalarFieldEnum = makeEnum({
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
encryption: 'encryption',
|
||||
date_created: 'date_created',
|
||||
date_modified: 'date_modified',
|
||||
libraryId: 'libraryId'
|
||||
});
|
||||
|
||||
exports.Prisma.SortOrder = makeEnum({
|
||||
asc: 'asc',
|
||||
desc: 'desc'
|
||||
});
|
||||
|
||||
|
||||
exports.Prisma.ModelName = makeEnum({
|
||||
Migration: 'Migration',
|
||||
Library: 'Library',
|
||||
LibraryStatistics: 'LibraryStatistics',
|
||||
Client: 'Client',
|
||||
Location: 'Location',
|
||||
File: 'File',
|
||||
Tag: 'Tag',
|
||||
TagOnFile: 'TagOnFile',
|
||||
Job: 'Job',
|
||||
Space: 'Space'
|
||||
});
|
||||
|
||||
/**
|
||||
* Create the Client
|
||||
*/
|
||||
class PrismaClient {
|
||||
constructor() {
|
||||
throw new Error(
|
||||
`PrismaClient is unable to be run in the browser.
|
||||
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
|
||||
)
|
||||
}
|
||||
}
|
||||
exports.PrismaClient = PrismaClient
|
||||
|
||||
Object.assign(exports, Prisma)
|
||||
13751
packages/core/types/index.d.ts
vendored
13751
packages/core/types/index.d.ts
vendored
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
269
packages/core/types/runtime/index-browser.d.ts
vendored
269
packages/core/types/runtime/index-browser.d.ts
vendored
@@ -1,269 +0,0 @@
|
||||
export declare namespace Decimal {
|
||||
export type Constructor = typeof Decimal;
|
||||
export type Instance = Decimal;
|
||||
export type Rounding = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
|
||||
export type Modulo = Rounding | 9;
|
||||
export type Value = string | number | Decimal;
|
||||
|
||||
// http://mikemcl.github.io/decimal.js/#constructor-properties
|
||||
export interface Config {
|
||||
precision?: number;
|
||||
rounding?: Rounding;
|
||||
toExpNeg?: number;
|
||||
toExpPos?: number;
|
||||
minE?: number;
|
||||
maxE?: number;
|
||||
crypto?: boolean;
|
||||
modulo?: Modulo;
|
||||
defaults?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
export declare class Decimal {
|
||||
readonly d: number[];
|
||||
readonly e: number;
|
||||
readonly s: number;
|
||||
private readonly toStringTag: string;
|
||||
|
||||
constructor(n: Decimal.Value);
|
||||
|
||||
absoluteValue(): Decimal;
|
||||
abs(): Decimal;
|
||||
|
||||
ceil(): Decimal;
|
||||
|
||||
clampedTo(min: Decimal.Value, max: Decimal.Value): Decimal;
|
||||
clamp(min: Decimal.Value, max: Decimal.Value): Decimal;
|
||||
|
||||
comparedTo(n: Decimal.Value): number;
|
||||
cmp(n: Decimal.Value): number;
|
||||
|
||||
cosine(): Decimal;
|
||||
cos(): Decimal;
|
||||
|
||||
cubeRoot(): Decimal;
|
||||
cbrt(): Decimal;
|
||||
|
||||
decimalPlaces(): number;
|
||||
dp(): number;
|
||||
|
||||
dividedBy(n: Decimal.Value): Decimal;
|
||||
div(n: Decimal.Value): Decimal;
|
||||
|
||||
dividedToIntegerBy(n: Decimal.Value): Decimal;
|
||||
divToInt(n: Decimal.Value): Decimal;
|
||||
|
||||
equals(n: Decimal.Value): boolean;
|
||||
eq(n: Decimal.Value): boolean;
|
||||
|
||||
floor(): Decimal;
|
||||
|
||||
greaterThan(n: Decimal.Value): boolean;
|
||||
gt(n: Decimal.Value): boolean;
|
||||
|
||||
greaterThanOrEqualTo(n: Decimal.Value): boolean;
|
||||
gte(n: Decimal.Value): boolean;
|
||||
|
||||
hyperbolicCosine(): Decimal;
|
||||
cosh(): Decimal;
|
||||
|
||||
hyperbolicSine(): Decimal;
|
||||
sinh(): Decimal;
|
||||
|
||||
hyperbolicTangent(): Decimal;
|
||||
tanh(): Decimal;
|
||||
|
||||
inverseCosine(): Decimal;
|
||||
acos(): Decimal;
|
||||
|
||||
inverseHyperbolicCosine(): Decimal;
|
||||
acosh(): Decimal;
|
||||
|
||||
inverseHyperbolicSine(): Decimal;
|
||||
asinh(): Decimal;
|
||||
|
||||
inverseHyperbolicTangent(): Decimal;
|
||||
atanh(): Decimal;
|
||||
|
||||
inverseSine(): Decimal;
|
||||
asin(): Decimal;
|
||||
|
||||
inverseTangent(): Decimal;
|
||||
atan(): Decimal;
|
||||
|
||||
isFinite(): boolean;
|
||||
|
||||
isInteger(): boolean;
|
||||
isInt(): boolean;
|
||||
|
||||
isNaN(): boolean;
|
||||
|
||||
isNegative(): boolean;
|
||||
isNeg(): boolean;
|
||||
|
||||
isPositive(): boolean;
|
||||
isPos(): boolean;
|
||||
|
||||
isZero(): boolean;
|
||||
|
||||
lessThan(n: Decimal.Value): boolean;
|
||||
lt(n: Decimal.Value): boolean;
|
||||
|
||||
lessThanOrEqualTo(n: Decimal.Value): boolean;
|
||||
lte(n: Decimal.Value): boolean;
|
||||
|
||||
logarithm(n?: Decimal.Value): Decimal;
|
||||
log(n?: Decimal.Value): Decimal;
|
||||
|
||||
minus(n: Decimal.Value): Decimal;
|
||||
sub(n: Decimal.Value): Decimal;
|
||||
|
||||
modulo(n: Decimal.Value): Decimal;
|
||||
mod(n: Decimal.Value): Decimal;
|
||||
|
||||
naturalExponential(): Decimal;
|
||||
exp(): Decimal;
|
||||
|
||||
naturalLogarithm(): Decimal;
|
||||
ln(): Decimal;
|
||||
|
||||
negated(): Decimal;
|
||||
neg(): Decimal;
|
||||
|
||||
plus(n: Decimal.Value): Decimal;
|
||||
add(n: Decimal.Value): Decimal;
|
||||
|
||||
precision(includeZeros?: boolean): number;
|
||||
sd(includeZeros?: boolean): number;
|
||||
|
||||
round(): Decimal;
|
||||
|
||||
sine() : Decimal;
|
||||
sin() : Decimal;
|
||||
|
||||
squareRoot(): Decimal;
|
||||
sqrt(): Decimal;
|
||||
|
||||
tangent() : Decimal;
|
||||
tan() : Decimal;
|
||||
|
||||
times(n: Decimal.Value): Decimal;
|
||||
mul(n: Decimal.Value) : Decimal;
|
||||
|
||||
toBinary(significantDigits?: number): string;
|
||||
toBinary(significantDigits: number, rounding: Decimal.Rounding): string;
|
||||
|
||||
toDecimalPlaces(decimalPlaces?: number): Decimal;
|
||||
toDecimalPlaces(decimalPlaces: number, rounding: Decimal.Rounding): Decimal;
|
||||
toDP(decimalPlaces?: number): Decimal;
|
||||
toDP(decimalPlaces: number, rounding: Decimal.Rounding): Decimal;
|
||||
|
||||
toExponential(decimalPlaces?: number): string;
|
||||
toExponential(decimalPlaces: number, rounding: Decimal.Rounding): string;
|
||||
|
||||
toFixed(decimalPlaces?: number): string;
|
||||
toFixed(decimalPlaces: number, rounding: Decimal.Rounding): string;
|
||||
|
||||
toFraction(max_denominator?: Decimal.Value): Decimal[];
|
||||
|
||||
toHexadecimal(significantDigits?: number): string;
|
||||
toHexadecimal(significantDigits: number, rounding: Decimal.Rounding): string;
|
||||
toHex(significantDigits?: number): string;
|
||||
toHex(significantDigits: number, rounding?: Decimal.Rounding): string;
|
||||
|
||||
toJSON(): string;
|
||||
|
||||
toNearest(n: Decimal.Value, rounding?: Decimal.Rounding): Decimal;
|
||||
|
||||
toNumber(): number;
|
||||
|
||||
toOctal(significantDigits?: number): string;
|
||||
toOctal(significantDigits: number, rounding: Decimal.Rounding): string;
|
||||
|
||||
toPower(n: Decimal.Value): Decimal;
|
||||
pow(n: Decimal.Value): Decimal;
|
||||
|
||||
toPrecision(significantDigits?: number): string;
|
||||
toPrecision(significantDigits: number, rounding: Decimal.Rounding): string;
|
||||
|
||||
toSignificantDigits(significantDigits?: number): Decimal;
|
||||
toSignificantDigits(significantDigits: number, rounding: Decimal.Rounding): Decimal;
|
||||
toSD(significantDigits?: number): Decimal;
|
||||
toSD(significantDigits: number, rounding: Decimal.Rounding): Decimal;
|
||||
|
||||
toString(): string;
|
||||
|
||||
truncated(): Decimal;
|
||||
trunc(): Decimal;
|
||||
|
||||
valueOf(): string;
|
||||
|
||||
static abs(n: Decimal.Value): Decimal;
|
||||
static acos(n: Decimal.Value): Decimal;
|
||||
static acosh(n: Decimal.Value): Decimal;
|
||||
static add(x: Decimal.Value, y: Decimal.Value): Decimal;
|
||||
static asin(n: Decimal.Value): Decimal;
|
||||
static asinh(n: Decimal.Value): Decimal;
|
||||
static atan(n: Decimal.Value): Decimal;
|
||||
static atanh(n: Decimal.Value): Decimal;
|
||||
static atan2(y: Decimal.Value, x: Decimal.Value): Decimal;
|
||||
static cbrt(n: Decimal.Value): Decimal;
|
||||
static ceil(n: Decimal.Value): Decimal;
|
||||
static clamp(n: Decimal.Value, min: Decimal.Value, max: Decimal.Value): Decimal;
|
||||
static clone(object?: Decimal.Config): Decimal.Constructor;
|
||||
static config(object: Decimal.Config): Decimal.Constructor;
|
||||
static cos(n: Decimal.Value): Decimal;
|
||||
static cosh(n: Decimal.Value): Decimal;
|
||||
static div(x: Decimal.Value, y: Decimal.Value): Decimal;
|
||||
static exp(n: Decimal.Value): Decimal;
|
||||
static floor(n: Decimal.Value): Decimal;
|
||||
static hypot(...n: Decimal.Value[]): Decimal;
|
||||
static isDecimal(object: any): boolean
|
||||
static ln(n: Decimal.Value): Decimal;
|
||||
static log(n: Decimal.Value, base?: Decimal.Value): Decimal;
|
||||
static log2(n: Decimal.Value): Decimal;
|
||||
static log10(n: Decimal.Value): Decimal;
|
||||
static max(...n: Decimal.Value[]): Decimal;
|
||||
static min(...n: Decimal.Value[]): Decimal;
|
||||
static mod(x: Decimal.Value, y: Decimal.Value): Decimal;
|
||||
static mul(x: Decimal.Value, y: Decimal.Value): Decimal;
|
||||
static noConflict(): Decimal.Constructor; // Browser only
|
||||
static pow(base: Decimal.Value, exponent: Decimal.Value): Decimal;
|
||||
static random(significantDigits?: number): Decimal;
|
||||
static round(n: Decimal.Value): Decimal;
|
||||
static set(object: Decimal.Config): Decimal.Constructor;
|
||||
static sign(n: Decimal.Value): Decimal;
|
||||
static sin(n: Decimal.Value): Decimal;
|
||||
static sinh(n: Decimal.Value): Decimal;
|
||||
static sqrt(n: Decimal.Value): Decimal;
|
||||
static sub(x: Decimal.Value, y: Decimal.Value): Decimal;
|
||||
static sum(...n: Decimal.Value[]): Decimal;
|
||||
static tan(n: Decimal.Value): Decimal;
|
||||
static tanh(n: Decimal.Value): Decimal;
|
||||
static trunc(n: Decimal.Value): Decimal;
|
||||
|
||||
static readonly default?: Decimal.Constructor;
|
||||
static readonly Decimal?: Decimal.Constructor;
|
||||
|
||||
static readonly precision: number;
|
||||
static readonly rounding: Decimal.Rounding;
|
||||
static readonly toExpNeg: number;
|
||||
static readonly toExpPos: number;
|
||||
static readonly minE: number;
|
||||
static readonly maxE: number;
|
||||
static readonly crypto: boolean;
|
||||
static readonly modulo: Decimal.Modulo;
|
||||
|
||||
static readonly ROUND_UP: 0;
|
||||
static readonly ROUND_DOWN: 1;
|
||||
static readonly ROUND_CEIL: 2;
|
||||
static readonly ROUND_FLOOR: 3;
|
||||
static readonly ROUND_HALF_UP: 4;
|
||||
static readonly ROUND_HALF_DOWN: 5;
|
||||
static readonly ROUND_HALF_EVEN: 6;
|
||||
static readonly ROUND_HALF_CEIL: 7;
|
||||
static readonly ROUND_HALF_FLOOR: 8;
|
||||
static readonly EUCLID: 9;
|
||||
}
|
||||
|
||||
export { }
|
||||
File diff suppressed because it is too large
Load Diff
1294
packages/core/types/runtime/index.d.ts
vendored
1294
packages/core/types/runtime/index.d.ts
vendored
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
1294
packages/core/types/runtime/proxy.d.ts
vendored
1294
packages/core/types/runtime/proxy.d.ts
vendored
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@@ -1,162 +0,0 @@
|
||||
datasource db {
|
||||
provider = "sqlite"
|
||||
url = "file:dev.db"
|
||||
}
|
||||
|
||||
generator client {
|
||||
provider = "prisma-client-rust"
|
||||
output = "../src/prisma.rs"
|
||||
}
|
||||
|
||||
generator js {
|
||||
provider = "prisma-client-js"
|
||||
output = "../types"
|
||||
}
|
||||
|
||||
model Migration {
|
||||
id Int @id @default(autoincrement())
|
||||
name String
|
||||
checksum String @unique
|
||||
steps_applied Int @default(0)
|
||||
applied_at DateTime @default(now())
|
||||
|
||||
@@map("_migrations")
|
||||
}
|
||||
|
||||
model Library {
|
||||
id Int @id @default(autoincrement())
|
||||
uuid String @unique
|
||||
name String
|
||||
remote_id String?
|
||||
is_primary Boolean @default(true)
|
||||
encryption Int @default(0)
|
||||
date_created DateTime @default(now())
|
||||
timezone String?
|
||||
spaces Space[]
|
||||
|
||||
@@map("libraries")
|
||||
}
|
||||
|
||||
model LibraryStatistics {
|
||||
id Int @id @default(autoincrement())
|
||||
date_captured DateTime @default(now())
|
||||
library_id Int @unique
|
||||
total_file_count Int @default(0)
|
||||
total_bytes_used String @default("0")
|
||||
total_byte_capacity String @default("0")
|
||||
total_unique_bytes String @default("0")
|
||||
|
||||
@@map("library_statistics")
|
||||
}
|
||||
|
||||
model Client {
|
||||
id Int @id @default(autoincrement())
|
||||
uuid String @unique
|
||||
name String
|
||||
platform Int @default(0)
|
||||
version String?
|
||||
online Boolean? @default(true)
|
||||
last_seen DateTime @default(now())
|
||||
timezone String?
|
||||
date_created DateTime @default(now())
|
||||
jobs Job[]
|
||||
|
||||
@@map("clients")
|
||||
}
|
||||
|
||||
model Location {
|
||||
id Int @id @default(autoincrement())
|
||||
name String?
|
||||
path String?
|
||||
total_capacity Int?
|
||||
available_capacity Int?
|
||||
is_removable Boolean @default(true)
|
||||
is_ejectable Boolean @default(true)
|
||||
is_root_filesystem Boolean @default(true)
|
||||
is_online Boolean @default(true)
|
||||
date_created DateTime @default(now())
|
||||
files File[]
|
||||
|
||||
@@map("locations")
|
||||
}
|
||||
|
||||
model File {
|
||||
id Int @id @default(autoincrement())
|
||||
is_dir Boolean @default(false)
|
||||
location_id Int
|
||||
stem String
|
||||
name String
|
||||
extension String?
|
||||
quick_checksum String? // 100 * 100 byte samples
|
||||
full_checksum String? // full byte to byte hash
|
||||
size_in_bytes String
|
||||
encryption Int @default(0)
|
||||
date_created DateTime @default(now())
|
||||
date_modified DateTime @default(now())
|
||||
date_indexed DateTime @default(now())
|
||||
ipfs_id String?
|
||||
|
||||
location Location? @relation(fields: [location_id], references: [id], onDelete: NoAction, onUpdate: NoAction)
|
||||
|
||||
parent File? @relation("directory_files", fields: [parent_id], references: [id])
|
||||
parent_id Int?
|
||||
children File[] @relation("directory_files")
|
||||
|
||||
file_tags TagOnFile[]
|
||||
@@unique([location_id, stem, name, extension])
|
||||
@@map("files")
|
||||
}
|
||||
|
||||
model Tag {
|
||||
id Int @id @default(autoincrement())
|
||||
name String?
|
||||
encryption Int? @default(0)
|
||||
total_files Int? @default(0)
|
||||
redundancy_goal Int? @default(1)
|
||||
date_created DateTime @default(now())
|
||||
date_modified DateTime @default(now())
|
||||
|
||||
tag_files TagOnFile[]
|
||||
|
||||
@@map("tags")
|
||||
}
|
||||
|
||||
model TagOnFile {
|
||||
date_created DateTime @default(now())
|
||||
|
||||
tag_id Int
|
||||
tag Tag @relation(fields: [tag_id], references: [id], onDelete: NoAction, onUpdate: NoAction)
|
||||
|
||||
file_id Int
|
||||
file File @relation(fields: [file_id], references: [id], onDelete: NoAction, onUpdate: NoAction)
|
||||
|
||||
@@id([tag_id, file_id])
|
||||
@@map("tags_on_files")
|
||||
}
|
||||
|
||||
model Job {
|
||||
id Int @id @default(autoincrement())
|
||||
client_id Int
|
||||
action Int
|
||||
status Int @default(0)
|
||||
percentage_complete Int @default(0)
|
||||
task_count Int @default(1)
|
||||
completed_task_count Int @default(0)
|
||||
date_created DateTime @default(now())
|
||||
date_modified DateTime @default(now())
|
||||
clients Client @relation(fields: [client_id], references: [id], onDelete: NoAction, onUpdate: NoAction)
|
||||
|
||||
@@map("jobs")
|
||||
}
|
||||
|
||||
model Space {
|
||||
id Int @id @default(autoincrement())
|
||||
name String
|
||||
encryption Int? @default(0)
|
||||
date_created DateTime @default(now())
|
||||
date_modified DateTime @default(now())
|
||||
|
||||
Library Library? @relation(fields: [libraryId], references: [id])
|
||||
libraryId Int?
|
||||
@@map("spaces")
|
||||
}
|
||||
Reference in New Issue
Block a user