@nocobase/plugin-action-import
Version:
Import records using excel templates. You can configure which fields to import and templates will be generated automatically.
14 lines (13 loc) • 576 B
TypeScript
/**
* This file is part of the NocoBase (R) project.
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
* Authors: NocoBase Team.
*
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
* For more information, please refer to: https://www.nocobase.com/agreement.
*/
/// <reference types="node" />
import { Context, Next } from '@nocobase/actions';
import * as XLSX from 'xlsx';
export declare function readImportWorkbook(buffer: Buffer, sheetRows: number): XLSX.WorkBook;
export declare function importXlsx(ctx: Context, next: Next): Promise<void>;