PHP 8.2.30
Preview: resource-json.interface.ts Size: 1.68 KB
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/adminjs/src/frontend/interfaces/resource-json.interface.ts

import { BasePropertyJSON } from './property-json/index.js'
import { ActionJSON } from './action/action-json.interface.js'

/**
 * Resource object accessible on the fronted
 * @alias ResourceJSON
 * @subcategory Frontend
 */
export interface ResourceJSON {
  /**
   * Unique Id of a resource
   */
  id: string;
  /**
   * Resource name
   */
  name: string;
  /**
   * url to a resource list action. If null - resource should not be seen in the sidebar.
   */
  href: string | null;
  /**
   * Resource parent - visible on the sidebar
   */
  navigation: {
    /**
     * Parent name
     */
    name: string | null;
    /**
     * Parent icon
     */
    icon: string;
    /**
     * Visibility
     */
    show: boolean;
  } | null;

  /**
   * Property which should be treated as a Main property
   */
  titleProperty: BasePropertyJSON;
  /**
   * Actions available for entire resource with type: resource
   */
  resourceActions: Array<ActionJSON>;
  /**
   * All actions - whether they are available or not.
   */
  actions: Array<ActionJSON>;
  /**
   * Properties which should be visible on the list
   */
  listProperties: Array<BasePropertyJSON>;
  /**
   * Properties which should be visible on the edit view
   */
  editProperties: Array<BasePropertyJSON>;
  /**
   * Properties which should be visible on the show view
   */
  showProperties: Array<BasePropertyJSON>;
  /**
   * Properties which should be visible on the filter
   */
  filterProperties: Array<BasePropertyJSON>;
  /**
   * Map of all properties inside the resource. It also contains nested properties.
   * So this is the easies way of getting any property you like from a resource.
   */
  properties: Record<string, BasePropertyJSON>;
}

Directory Contents

Dirs: 2 × Files: 6

Name Size Perms Modified Actions
action DIR
- drwxr-xr-x 2026-02-28 00:32:28
Edit Download
- drwxr-xr-x 2026-02-28 00:32:40
Edit Download
286 B lrw-r--r-- 2026-02-28 00:32:28
Edit Download
502 B lrw-r--r-- 2026-02-28 00:32:38
Edit Download
482 B lrw-r--r-- 2026-02-28 00:32:38
Edit Download
347 B lrw-r--r-- 2026-02-28 00:32:38
Edit Download
1.32 KB lrw-r--r-- 2026-02-28 00:32:40
Edit Download
1.68 KB lrw-r--r-- 2026-02-28 00:32:42
Edit Download

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