@punks/backend-entity-manager 0.0.89 → 0.0.91
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 +48 -14
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/abstractions/export.d.ts +1 -0
- package/dist/cjs/types/commands/sampleDownload.d.ts +6 -2
- package/dist/cjs/types/platforms/nest/__test__/server/app/foos/foo.controller.d.ts +2 -4
- package/dist/cjs/types/platforms/nest/__test__/server/app/foos/foo.dto.d.ts +2 -2
- package/dist/esm/index.js +48 -14
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/abstractions/export.d.ts +1 -0
- package/dist/esm/types/commands/sampleDownload.d.ts +6 -2
- package/dist/esm/types/platforms/nest/__test__/server/app/foos/foo.controller.d.ts +2 -4
- package/dist/esm/types/platforms/nest/__test__/server/app/foos/foo.dto.d.ts +2 -2
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { IEntitiesSampleDownloadCommand } from "../abstractions/commands";
|
|
2
2
|
import { EntityServiceLocator } from "../providers/services";
|
|
3
|
-
import { EntitiesSampleDownloadOptions, EntitiesSampleDownloadResult } from "../abstractions";
|
|
3
|
+
import { EntitiesImportExportSettings, EntitiesSampleDownloadOptions, EntitiesSampleDownloadResult } from "../abstractions";
|
|
4
4
|
export declare class EntitiesSampleDownloadCommand<TEntity> implements IEntitiesSampleDownloadCommand<TEntity> {
|
|
5
5
|
private readonly services;
|
|
6
|
-
|
|
6
|
+
private readonly settings;
|
|
7
|
+
constructor(services: EntityServiceLocator<TEntity, unknown>, settings: EntitiesImportExportSettings);
|
|
7
8
|
execute(input: EntitiesSampleDownloadOptions): Promise<EntitiesSampleDownloadResult>;
|
|
9
|
+
private uploadSampleFile;
|
|
10
|
+
private buildAbsoluteBucketPath;
|
|
11
|
+
private get bucket();
|
|
8
12
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
/// <reference types="multer" />
|
|
2
|
-
import { StreamableFile } from "@nestjs/common";
|
|
3
|
-
import type { Response } from "express";
|
|
4
2
|
import { FooActions } from "./foo.actions";
|
|
5
|
-
import { FooCreateDto, FooDto, FooExportRequest, FooExportResponse, FooImportRequest, FooSampleDownloadRequest, FooSearchRequest, FooSearchResponse, FooUpdateDto } from "./foo.dto";
|
|
3
|
+
import { FooCreateDto, FooDto, FooExportRequest, FooExportResponse, FooImportRequest, FooSampleDownloadRequest, FooSampleDownloadResponse, FooSearchRequest, FooSearchResponse, FooUpdateDto } from "./foo.dto";
|
|
6
4
|
export declare class FooController {
|
|
7
5
|
private readonly actions;
|
|
8
6
|
constructor(actions: FooActions);
|
|
@@ -13,5 +11,5 @@ export declare class FooController {
|
|
|
13
11
|
search(request: FooSearchRequest): Promise<FooSearchResponse>;
|
|
14
12
|
import(file: Express.Multer.File, request: FooImportRequest): Promise<void>;
|
|
15
13
|
export(request: FooExportRequest): Promise<FooExportResponse>;
|
|
16
|
-
sampleDownload(
|
|
14
|
+
sampleDownload(request: FooSampleDownloadRequest): Promise<FooSampleDownloadResponse>;
|
|
17
15
|
}
|
|
@@ -37,11 +37,11 @@ export declare class FooExportRequest {
|
|
|
37
37
|
filter?: FooSearchParameters;
|
|
38
38
|
}
|
|
39
39
|
export declare class FooExportResponse {
|
|
40
|
-
|
|
40
|
+
downloadUrl: string;
|
|
41
41
|
}
|
|
42
42
|
export declare class FooSampleDownloadRequest {
|
|
43
43
|
format: EntitySerializationFormat;
|
|
44
44
|
}
|
|
45
45
|
export declare class FooSampleDownloadResponse {
|
|
46
|
-
|
|
46
|
+
downloadUrl: string;
|
|
47
47
|
}
|
package/dist/index.d.ts
CHANGED