Documentation
    Preparing search index...
    "export=": {
        add_to_menu: (
            item: {
                label: string;
                min_role: number;
                pagename?: string;
                type: "View" | "Page";
                viewname?: string;
            },
        ) => Promise<void>;
        can_install_pack: (
            pack: Pack,
        ) => Promise<true | { error?: string; warning?: string }>;
        create_pack_from_tag: (tag: export=) => Promise<any>;
        event_log_pack: (eventLog: export=) => Promise<EventLogPack>;
        fetch_available_packs: () => Promise<{ name: string }[]>;
        fetch_pack_by_name: (
            name: string,
        ) => Promise<null | { name: string; pack: any }>;
        get_cached_packs: () => { name: string }[];
        install_pack: (
            pack: Pack,
            name: undefined | string,
            loadAndSaveNewPlugin: (arg0: export=) => void,
            bare_tables?: boolean,
        ) => Promise<void>;
        library_pack: (name: string) => Promise<LibraryCfg>;
        model_instance_pack: (
            instanceName: string,
            modelName: string,
            tableName: string,
        ) => Promise<ModelInstancePack>;
        model_pack: (name: string, tableName: string) => Promise<ModelPack>;
        page_group_pack: (name: string) => Promise<PageGroupPack>;
        page_pack: (name: string | export=) => Promise<PagePack>;
        plugin_pack: (name: string) => Promise<PluginCfg>;
        role_pack: (role: string) => Promise<AbstractRole>;
        table_pack: (nameOrTable: string | export=) => Promise<TablePack>;
        tag_pack: (name: string | export=) => Promise<TagPack>;
        trigger_pack: (name: string | export=) => Promise<TriggerCfg>;
        uninstall_pack: (pack: Pack, name?: string) => Promise<void>;
        view_pack: (name: string | export=) => Promise<ViewPack>;
    }

    Type Declaration

    • add_to_menu: (
          item: {
              label: string;
              min_role: number;
              pagename?: string;
              type: "View" | "Page";
              viewname?: string;
          },
      ) => Promise<void>
    • can_install_pack: (pack: Pack) => Promise<true | { error?: string; warning?: string }>

      Can install pock

    • create_pack_from_tag: (tag: export=) => Promise<any>
    • event_log_pack: (eventLog: export=) => Promise<EventLogPack>

      the userId gets replaced with userName no lookup by name because either all eventlogs or none are packed

    • fetch_available_packs: () => Promise<{ name: string }[]>

      Fetch available packs from the store endpoint (packs_store_endpoint cfg)

    • Functionfetch_pack_by_name: (name: string) => Promise<null | { name: string; pack: any }>

      Fetch pack by name

    • get_cached_packs: () => { name: string }[]

      Get cached packs

    • install_pack: (
          pack: Pack,
          name: undefined | string,
          loadAndSaveNewPlugin: (arg0: export=) => void,
          bare_tables?: boolean,
      ) => Promise<void>
    • Functionlibrary_pack: (name: string) => Promise<LibraryCfg>

      Library pack

    • model_instance_pack: (
          instanceName: string,
          modelName: string,
          tableName: string,
      ) => Promise<ModelInstancePack>

      the modelId gets replaced with modelName + tableName

    • model_pack: (name: string, tableName: string) => Promise<ModelPack>

      tableIds are replace by names

    • page_group_pack: (name: string) => Promise<PageGroupPack>

      Page group pack (page_id is replaced by page_name)

    • page_pack: (name: string | export=) => Promise<PagePack>

      Page Pack

    • plugin_pack: (name: string) => Promise<PluginCfg>

      Plugin pack

    • Functionrole_pack: (role: string) => Promise<AbstractRole>

      Role pack

    • Functiontable_pack: (nameOrTable: string | export=) => Promise<TablePack>

      Table Pack

    • tag_pack: (name: string | export=) => Promise<TagPack>

      'page/view/table/trigger' ids are replaced by names

    • trigger_pack: (name: string | export=) => Promise<TriggerCfg>

      Trigger pack

    • uninstall_pack: (pack: Pack, name?: string) => Promise<void>

      Uninstall pack

    • view_pack: (name: string | export=) => Promise<ViewPack>

      View Pack