@punks/backend-entity-manager 0.0.453 → 0.0.455

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.
@@ -35,7 +35,7 @@ export interface IEntitiesSearchAction<TEntity, TEntitySearchParameters extends
35
35
  execute(request: TEntitySearchParameters): Promise<IEntitiesSearchResults<TEntity, TEntitySearchParameters, TEntityListItemDto, TSorting, TCursor, TFacets>>;
36
36
  }
37
37
  export interface IEntitiesExportAction<TEntity, TEntitySearchParameters extends IEntitySearchParameters<TEntity, TSorting, TCursor>, TSorting extends SortingType, TCursor> {
38
- execute(input: EntitiesExportInput<TEntity, TEntitySearchParameters, TSorting, TCursor>): Promise<EntitiesExportResult>;
38
+ execute<TPayload = unknown>(input: EntitiesExportInput<TEntity, TEntitySearchParameters, TSorting, TCursor, TPayload>): Promise<EntitiesExportResult>;
39
39
  }
40
40
  export interface IEntitiesImportAction<TEntity> {
41
41
  execute<TPayload = unknown>(input: EntitiesImportInput<TPayload>): Promise<EntitiesImportResult>;
@@ -5,5 +5,5 @@ export declare class EntitiesParseAction<TEntity> implements IEntitiesParseActio
5
5
  private readonly services;
6
6
  private readonly logger;
7
7
  constructor(services: EntityServiceLocator<TEntity, unknown>);
8
- execute(input: EntitiesParseInput<unknown>): Promise<import("../abstractions/parse").EntitiesParseResult<unknown>>;
8
+ execute<TPayload>(input: EntitiesParseInput<TPayload>): Promise<import("../abstractions/parse").EntitiesParseResult<unknown>>;
9
9
  }
@@ -1,8 +1,6 @@
1
- /// <reference types="express-serve-static-core" />
2
1
  /// <reference types="multer" />
3
- import { EntitiesImportInput, EntitySerializationFormat } from "../abstractions";
4
- export declare const toEntitiesImportInput: <TPayload>(request: {
5
- format: EntitySerializationFormat;
2
+ import { EntitiesImportInput } from "../abstractions";
3
+ export type toEntitiesImportInputOptions<TPayload> = Omit<EntitiesImportInput<TPayload>, "file"> & {
6
4
  file: Express.Multer.File;
7
- payload?: TPayload | undefined;
8
- }) => EntitiesImportInput<TPayload>;
5
+ };
6
+ export declare const toEntitiesImportInput: <TPayload>(request: toEntitiesImportInputOptions<TPayload>) => EntitiesImportInput<TPayload>;
package/dist/index.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  /// <reference types="qs" />
3
3
  /// <reference types="express" />
4
- /// <reference types="express-serve-static-core" />
5
4
  /// <reference types="multer" />
6
5
  import * as _punks_backend_core from '@punks/backend-core';
7
6
  import { ExcelParseOptions } from '@punks/backend-core';
@@ -446,7 +445,7 @@ interface IEntitiesSearchAction<TEntity, TEntitySearchParameters extends IEntity
446
445
  execute(request: TEntitySearchParameters): Promise<IEntitiesSearchResults<TEntity, TEntitySearchParameters, TEntityListItemDto, TSorting, TCursor, TFacets>>;
447
446
  }
448
447
  interface IEntitiesExportAction<TEntity, TEntitySearchParameters extends IEntitySearchParameters<TEntity, TSorting, TCursor>, TSorting extends SortingType, TCursor> {
449
- execute(input: EntitiesExportInput<TEntity, TEntitySearchParameters, TSorting, TCursor>): Promise<EntitiesExportResult>;
448
+ execute<TPayload = unknown>(input: EntitiesExportInput<TEntity, TEntitySearchParameters, TSorting, TCursor, TPayload>): Promise<EntitiesExportResult>;
450
449
  }
451
450
  interface IEntitiesImportAction<TEntity> {
452
451
  execute<TPayload = unknown>(input: EntitiesImportInput<TPayload>): Promise<EntitiesImportResult>;
@@ -4081,11 +4080,10 @@ type LocalizedTexts = LocalizedMap<string>;
4081
4080
 
4082
4081
  declare const createContainer: () => IEntityManagerServiceRoot;
4083
4082
 
4084
- declare const toEntitiesImportInput: <TPayload>(request: {
4085
- format: EntitySerializationFormat;
4083
+ type toEntitiesImportInputOptions<TPayload> = Omit<EntitiesImportInput<TPayload>, "file"> & {
4086
4084
  file: Express.Multer.File;
4087
- payload?: TPayload | undefined;
4088
- }) => EntitiesImportInput<TPayload>;
4085
+ };
4086
+ declare const toEntitiesImportInput: <TPayload>(request: toEntitiesImportInputOptions<TPayload>) => EntitiesImportInput<TPayload>;
4089
4087
 
4090
4088
  declare const PLATFORM_EVENT_NAMESPACE = "platform";
4091
4089
  declare const PlatformEvents: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@punks/backend-entity-manager",
3
- "version": "0.0.453",
3
+ "version": "0.0.455",
4
4
  "description": "",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",