@punks/backend-entity-manager 0.0.445 → 0.0.446
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.
|
@@ -6,7 +6,7 @@ export declare class EntitiesParseCommand<TEntity> implements IEntitiesParseComm
|
|
|
6
6
|
private readonly services;
|
|
7
7
|
private readonly settings;
|
|
8
8
|
constructor(services: EntityServiceLocator<TEntity, unknown>, settings: EntitiesImportExportSettings);
|
|
9
|
-
execute(input: EntitiesParseInput<
|
|
9
|
+
execute<TPayload>(input: EntitiesParseInput<TPayload>): Promise<EntitiesParseResult<unknown>>;
|
|
10
10
|
private parseImportFile;
|
|
11
11
|
private uploadImportFile;
|
|
12
12
|
private buildAbsoluteBucketPath;
|
package/dist/esm/index.js
CHANGED
|
@@ -1005,13 +1005,15 @@ class EntitiesParseCommand {
|
|
|
1005
1005
|
contentType: input.file.contentType,
|
|
1006
1006
|
fileName: input.file.fileName,
|
|
1007
1007
|
});
|
|
1008
|
-
const entries = await this.parseImportFile(input.file.content, input.format);
|
|
1008
|
+
const entries = await this.parseImportFile(input.file.content, input.format, input?.payload);
|
|
1009
1009
|
return {
|
|
1010
1010
|
entries,
|
|
1011
1011
|
};
|
|
1012
1012
|
}
|
|
1013
|
-
async parseImportFile(content, format) {
|
|
1014
|
-
return await this.services
|
|
1013
|
+
async parseImportFile(content, format, payload) {
|
|
1014
|
+
return await this.services
|
|
1015
|
+
.resolveSerializer()
|
|
1016
|
+
.parse(content, format, payload);
|
|
1015
1017
|
}
|
|
1016
1018
|
async uploadImportFile(file) {
|
|
1017
1019
|
await this.bucket.fileUpload({
|