@punks/backend-entity-manager 0.0.171 → 0.0.173
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 +6 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/platforms/nest/pipelines/template/errors.d.ts +3 -2
- package/dist/esm/index.js +6 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/platforms/nest/pipelines/template/errors.d.ts +3 -2
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -458,10 +458,11 @@ class EntitiesSearchAction {
|
|
|
458
458
|
const results = await searchQuery.execute(request);
|
|
459
459
|
const converter = this.services.resolveConverter();
|
|
460
460
|
return {
|
|
461
|
-
|
|
461
|
+
items: results.items.map((x) => (converter?.toListItemDto(x) ?? x)),
|
|
462
462
|
paging: results.paging,
|
|
463
|
+
childrenMap: results.childrenMap,
|
|
464
|
+
facets: results.facets,
|
|
463
465
|
request: results.request,
|
|
464
|
-
items: results.items.map((x) => (converter?.toListItemDto(x) ?? x)),
|
|
465
466
|
};
|
|
466
467
|
}
|
|
467
468
|
}
|
|
@@ -22606,10 +22607,11 @@ class NestTypeOrmEntitySeeder extends TypeOrmEntitySeeder {
|
|
|
22606
22607
|
}
|
|
22607
22608
|
|
|
22608
22609
|
class PipelineInvocationError extends Error {
|
|
22609
|
-
constructor(errorType, innerError, message) {
|
|
22610
|
+
constructor(errorType, innerError, rawResult, message) {
|
|
22610
22611
|
super(message ?? innerError?.message);
|
|
22611
22612
|
this.errorType = errorType;
|
|
22612
22613
|
this.innerError = innerError;
|
|
22614
|
+
this.rawResult = rawResult;
|
|
22613
22615
|
}
|
|
22614
22616
|
}
|
|
22615
22617
|
|
|
@@ -22719,7 +22721,7 @@ class NestPipelineTemplate {
|
|
|
22719
22721
|
context: await this.getContext(),
|
|
22720
22722
|
});
|
|
22721
22723
|
if (result.type !== "success") {
|
|
22722
|
-
throw new PipelineInvocationError(result.errorType, result.exception);
|
|
22724
|
+
throw new PipelineInvocationError(result.errorType, result.exception, result);
|
|
22723
22725
|
}
|
|
22724
22726
|
return result.output;
|
|
22725
22727
|
}
|