PHP 8.2.30
Preview: Resource.d.ts Size: 2.01 KB
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/@adminjs/prisma/lib/Resource.d.ts

import { BaseResource, Filter, BaseRecord } from 'adminjs';
import { PrismaClient } from '@prisma/client';
import { DMMF } from '@prisma/client/runtime/library.js';
import { Property } from './Property.js';
import { ModelManager, Enums } from './types.js';
export declare class Resource extends BaseResource {
    protected client: PrismaClient;
    protected model: DMMF.Model;
    protected enums: Enums;
    protected manager: ModelManager;
    protected propertiesObject: Record<string, Property>;
    protected idProperty: Property;
    constructor(args: {
        model: DMMF.Model;
        client: PrismaClient;
        clientModule?: any;
    });
    databaseName(): string;
    databaseType(): string;
    id(): string;
    properties(): Array<Property>;
    property(path: string): Property | null;
    build(params: Record<string, any>): BaseRecord;
    count(filter: Filter): Promise<number>;
    find(filter: Filter, params?: {
        limit?: number;
        offset?: number;
        sort?: {
            sortBy?: string;
            direction?: 'asc' | 'desc';
        };
    }): Promise<Array<BaseRecord>>;
    protected buildSortBy(sort?: {
        sortBy?: string;
        direction?: 'asc' | 'desc';
    }): {
        [x: string]: {
            [x: string]: "asc" | "desc";
        };
    } | {
        [x: string]: "asc" | "desc";
    };
    findOne(id: string | number): Promise<BaseRecord | null>;
    findMany(ids: Array<string | number>): Promise<Array<BaseRecord>>;
    create(params: Record<string, any>): Promise<Record<string, any>>;
    update(pk: string | number, params?: Record<string, any>): Promise<Record<string, any>>;
    delete(id: string | number): Promise<void>;
    static isAdapterFor(args: {
        model: DMMF.Model;
        client: PrismaClient;
    }): boolean;
    protected prepareProperties(): {
        [propertyPath: string]: Property;
    };
    protected prepareParams(params: Record<string, any>): Record<string, any>;
    protected prepareReturnValues(params: Record<string, any>): Record<string, any>;
}

Directory Contents

Dirs: 1 × Files: 15

Name Size Perms Modified Actions
utils DIR
- drwxr-xr-x 2026-02-28 00:28:58
Edit Download
486 B lrw-r--r-- 2026-02-28 00:28:54
Edit Download
1.01 KB lrw-r--r-- 2026-02-28 00:27:46
Edit Download
1.07 KB lrw-r--r-- 2026-02-28 00:28:38
Edit Download
2.97 KB lrw-r--r-- 2026-02-28 00:28:58
Edit Download
2.87 KB lrw-r--r-- 2026-02-28 00:28:08
Edit Download
569 B lrw-r--r-- 2026-02-28 00:28:42
Edit Download
735 B lrw-r--r-- 2026-02-28 00:28:58
Edit Download
2.07 KB lrw-r--r-- 2026-02-28 00:28:14
Edit Download
2.19 KB lrw-r--r-- 2026-02-28 00:28:44
Edit Download
2.01 KB lrw-r--r-- 2026-02-28 00:29:00
Edit Download
7.07 KB lrw-r--r-- 2026-02-28 00:28:18
Edit Download
7.14 KB lrw-r--r-- 2026-02-28 00:28:44
Edit Download
222 B lrw-r--r-- 2026-02-28 00:29:00
Edit Download
44 B lrw-r--r-- 2026-02-28 00:28:22
Edit Download
102 B lrw-r--r-- 2026-02-28 00:28:46
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).