@adminforth/import-export 1.4.19 → 1.4.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build.log CHANGED
@@ -11,5 +11,5 @@ custom/package.json
11
11
  custom/pnpm-lock.yaml
12
12
  custom/tsconfig.json
13
13
 
14
- sent 17,884 bytes received 134 bytes 36,036.00 bytes/sec
14
+ sent 17,877 bytes received 134 bytes 36,022.00 bytes/sec
15
15
  total size is 17,395 speedup is 0.97
@@ -0,0 +1,18 @@
1
+ import { AdminForthPlugin } from "adminforth";
2
+ import type { IAdminForth, IHttpServer, AdminForthResourceColumn, AdminForthResource } from "adminforth";
3
+ import type { PluginOptions } from './types.js';
4
+ export default class ImportExport extends AdminForthPlugin {
5
+ options: PluginOptions;
6
+ emailField: AdminForthResourceColumn;
7
+ authResourceId: string;
8
+ adminforth: IAdminForth;
9
+ constructor(options: PluginOptions);
10
+ modifyResourceConfig(adminforth: IAdminForth, resourceConfig: AdminForthResource): Promise<void>;
11
+ validateConfigAfterDiscover(adminforth: IAdminForth, resourceConfig: AdminForthResource): void;
12
+ instanceUniqueRepresentation(pluginOptions: any): string;
13
+ setupEndpoints(server: IHttpServer): void;
14
+ private getColumnNames;
15
+ private validateColumns;
16
+ private buildRowsFromData;
17
+ private coerceValue;
18
+ }
@@ -0,0 +1,3 @@
1
+ import { type PluginsCommonOptions } from "adminforth";
2
+ export interface PluginOptions extends PluginsCommonOptions {
3
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/import-export",
3
- "version": "1.4.19",
3
+ "version": "1.4.21",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -25,11 +25,11 @@
25
25
  "license": "MIT",
26
26
  "description": "CSV import/export plugin for adminforth",
27
27
  "peerDependencies": {
28
- "adminforth": "2.71.1"
28
+ "adminforth": "3.0.1"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/node": "^22.10.7",
32
- "adminforth": "2.71.1",
32
+ "adminforth": "3.0.1",
33
33
  "semantic-release": "^24.2.1",
34
34
  "semantic-release-slack-bot": "^4.0.2",
35
35
  "typescript": "^5.7.3"
package/tsconfig.json CHANGED
@@ -2,6 +2,7 @@
2
2
  "compilerOptions": {
3
3
  "target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include*/
4
4
  "module": "node16", /* Specify what module code is generated. */
5
+ "declaration": true,
5
6
  "outDir": "./dist", /* Specify an output folder for all emitted files. */
6
7
  "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. */
7
8
  "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */