@punks/backend-entity-manager 0.0.427 → 0.0.429
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/dist/cjs/index.js +7 -9
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/abstractions/serializer.d.ts +3 -0
- package/dist/esm/index.js +7 -9
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/abstractions/serializer.d.ts +3 -0
- package/dist/index.d.ts +4 -1
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
+
import { ExcelParseOptions } from "@punks/backend-core";
|
|
2
3
|
export type EntryValidationError = {
|
|
3
4
|
errorCode: string;
|
|
4
5
|
value?: any;
|
|
@@ -50,8 +51,10 @@ export type EntitySerializerSheetOptions = {
|
|
|
50
51
|
useTypeColumn?: boolean;
|
|
51
52
|
};
|
|
52
53
|
export type EntitySerializerSheetDefinition<TSheetItem> = {
|
|
54
|
+
autoColumns?: boolean;
|
|
53
55
|
columns: EntitySerializerColumnDefinition<TSheetItem>[];
|
|
54
56
|
sheet?: EntitySerializerSheetOptions;
|
|
57
|
+
options?: ExcelParseOptions;
|
|
55
58
|
};
|
|
56
59
|
export type EntityExportFile = {
|
|
57
60
|
content: Buffer;
|
package/dist/index.d.ts
CHANGED
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
/// <reference types="express" />
|
|
4
4
|
/// <reference types="express-serve-static-core" />
|
|
5
5
|
/// <reference types="multer" />
|
|
6
|
+
import * as _punks_backend_core from '@punks/backend-core';
|
|
7
|
+
import { ExcelParseOptions } from '@punks/backend-core';
|
|
6
8
|
import * as _nestjs_common from '@nestjs/common';
|
|
7
9
|
import { Type as Type$1, INestApplicationContext, CanActivate, ExecutionContext, NestModule, DynamicModule, MiddlewareConsumer, OnModuleInit, OnModuleDestroy, StreamableFile, ExceptionFilter, ArgumentsHost, NestMiddleware } from '@nestjs/common';
|
|
8
|
-
import * as _punks_backend_core from '@punks/backend-core';
|
|
9
10
|
import { Repository, EntityTarget, ObjectLiteral, FindOneOptions, FindManyOptions, FindOptionsRelations, ObjectId, FindOptionsWhere, FindOperator, FindOptionsOrder } from 'typeorm';
|
|
10
11
|
import { Module } from '@nestjs/core/injector/module';
|
|
11
12
|
import { ModulesContainer } from '@nestjs/core/injector/modules-container';
|
|
@@ -198,8 +199,10 @@ type EntitySerializerSheetOptions = {
|
|
|
198
199
|
useTypeColumn?: boolean;
|
|
199
200
|
};
|
|
200
201
|
type EntitySerializerSheetDefinition<TSheetItem> = {
|
|
202
|
+
autoColumns?: boolean;
|
|
201
203
|
columns: EntitySerializerColumnDefinition<TSheetItem>[];
|
|
202
204
|
sheet?: EntitySerializerSheetOptions;
|
|
205
|
+
options?: ExcelParseOptions;
|
|
203
206
|
};
|
|
204
207
|
type EntityExportFile = {
|
|
205
208
|
content: Buffer;
|