@punks/backend-entity-manager 0.0.451 → 0.0.452
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 +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/abstractions/export.d.ts +2 -1
- package/dist/cjs/types/commands/export.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/abstractions/export.d.ts +2 -1
- package/dist/esm/types/commands/export.d.ts +1 -1
- package/dist/index.d.ts +2 -1
- package/package.json +1 -1
|
@@ -14,9 +14,10 @@ export type EntitiesExportResult = {
|
|
|
14
14
|
file: EntitiesExportFile;
|
|
15
15
|
downloadUrl: string;
|
|
16
16
|
};
|
|
17
|
-
export type EntitiesExportInput<TEntity, TEntitySearchParameters extends IEntitySearchParameters<TEntity, TSorting, TCursor>, TSorting extends SortingType, TCursor> = {
|
|
17
|
+
export type EntitiesExportInput<TEntity, TEntitySearchParameters extends IEntitySearchParameters<TEntity, TSorting, TCursor>, TSorting extends SortingType, TCursor, TPayload = unknown> = {
|
|
18
18
|
filter?: TEntitySearchParameters;
|
|
19
19
|
options: EntitiesExportOptions;
|
|
20
|
+
payload?: TPayload;
|
|
20
21
|
};
|
|
21
22
|
export type EntityExportBucketSettings = {
|
|
22
23
|
bucket: string;
|
|
@@ -8,7 +8,7 @@ export declare class EntitiesExportCommand<TEntity, TEntitySearchParameters exte
|
|
|
8
8
|
private readonly services;
|
|
9
9
|
private readonly settings;
|
|
10
10
|
constructor(services: EntityServiceLocator<TEntity, unknown>, settings: EntitiesImportExportSettings);
|
|
11
|
-
execute(input: EntitiesExportInput<TEntity, TEntitySearchParameters, TSorting, TCursor>): Promise<EntitiesExportResult>;
|
|
11
|
+
execute<TPayload>(input: EntitiesExportInput<TEntity, TEntitySearchParameters, TSorting, TCursor, TPayload>): Promise<EntitiesExportResult>;
|
|
12
12
|
private buildExportFile;
|
|
13
13
|
private uploadExportFile;
|
|
14
14
|
private buildAbsoluteBucketPath;
|
package/dist/index.d.ts
CHANGED
|
@@ -241,9 +241,10 @@ type EntitiesExportResult = {
|
|
|
241
241
|
file: EntitiesExportFile;
|
|
242
242
|
downloadUrl: string;
|
|
243
243
|
};
|
|
244
|
-
type EntitiesExportInput<TEntity, TEntitySearchParameters extends IEntitySearchParameters<TEntity, TSorting, TCursor>, TSorting extends SortingType, TCursor> = {
|
|
244
|
+
type EntitiesExportInput<TEntity, TEntitySearchParameters extends IEntitySearchParameters<TEntity, TSorting, TCursor>, TSorting extends SortingType, TCursor, TPayload = unknown> = {
|
|
245
245
|
filter?: TEntitySearchParameters;
|
|
246
246
|
options: EntitiesExportOptions;
|
|
247
|
+
payload?: TPayload;
|
|
247
248
|
};
|
|
248
249
|
type EntityExportBucketSettings = {
|
|
249
250
|
bucket: string;
|