@punks/backend-entity-manager 0.0.469 → 0.0.471

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.
@@ -31,7 +31,7 @@ export declare class EntityNotFoundException<TEntityId> extends EntityManagerExc
31
31
  getEntityType(): string | undefined;
32
32
  }
33
33
  export declare class MultipleEntitiesFoundException extends EntityManagerException {
34
- constructor();
34
+ constructor(params: object, items: any[]);
35
35
  }
36
36
  export declare class EntityManagerConfigurationError extends EntityManagerException {
37
37
  constructor(message: string);
@@ -8,3 +8,4 @@ export interface IPipelinesController {
8
8
  export interface IPipelineOperationExecutor<TPipelineInput, TPipelineOutput, TContext> {
9
9
  execute(input: TPipelineInput, context: TContext): Promise<PipelineOperationResult<TPipelineInput, TPipelineOutput>>;
10
10
  }
11
+ export type PipelineConcurrency = "exclusive" | "sequential";
@@ -1,4 +1,13 @@
1
+ import { PipelineConcurrency } from "../../../abstractions/pipelines";
2
+ export type PipelineTemplateOptions = {
3
+ logging?: {
4
+ enabled?: boolean;
5
+ ignoreMeta?: boolean;
6
+ };
7
+ };
1
8
  export type PipelineTemplateProps = {
2
9
  name: string;
10
+ concurrency?: PipelineConcurrency;
11
+ options?: PipelineTemplateOptions;
3
12
  };
4
13
  export declare const WpPipeline: (name: string, props?: Omit<PipelineTemplateProps, "name">) => <TFunction extends Function, Y>(target: object | TFunction, propertyKey?: string | symbol | undefined, descriptor?: TypedPropertyDescriptor<Y> | undefined) => void;
@@ -2,9 +2,12 @@ import { PipelineDefinition, PipelineResult } from "../../../../types";
2
2
  import { IPipelineTemplateBuilder } from "../builder/types";
3
3
  import { PipelineUtils } from "./utils";
4
4
  import { PipelineTemplateProps } from "../../decorators";
5
- export type PipelineConcurrency = "exclusive" | "sequential";
5
+ import { PipelineConcurrency } from "../../../../abstractions/pipelines";
6
6
  export type PipelineTemplateOptions = {
7
7
  concurrency?: PipelineConcurrency;
8
+ logging?: {
9
+ ignoreMeta?: boolean;
10
+ };
8
11
  };
9
12
  export declare abstract class NestPipelineTemplate<TPipelineInput, TPipelineOutput, TContext> {
10
13
  private readonly options?;
@@ -21,9 +24,11 @@ export declare abstract class NestPipelineTemplate<TPipelineInput, TPipelineOutp
21
24
  context: TContext;
22
25
  }): Promise<PipelineResult<TPipelineInput, TPipelineOutput>>;
23
26
  private pipelineExecute;
27
+ private processLogMetadata;
24
28
  private getDefinition;
25
29
  private buildDefinition;
26
30
  private getContext;
31
+ private get concurrency();
27
32
  private get operationsLockService();
28
33
  private get controller();
29
34
  private get registry();
package/dist/index.d.ts CHANGED
@@ -1048,6 +1048,7 @@ interface IPipelineInstance<TPipelineInput, TPipelineOutput, TContext> {
1048
1048
  interface IPipelinesController {
1049
1049
  createInstance<TPipelineInput, TPipelineOutput, TContext>(definition: PipelineDefinition<TPipelineInput, TPipelineOutput, TContext>, input: TPipelineInput, context: TContext | undefined): Promise<IPipelineInstance<TPipelineInput, TPipelineOutput, TContext>>;
1050
1050
  }
1051
+ type PipelineConcurrency = "exclusive" | "sequential";
1051
1052
 
1052
1053
  interface IEntitiesDeleteResult {
1053
1054
  deletedCount: number;
@@ -1509,8 +1510,16 @@ interface EntityQueryBuilderProps {
1509
1510
  }
1510
1511
  declare const WpEntityQueryBuilder: (entityName: string, props?: Omit<EntityQueryBuilderProps, "entityName">) => <TFunction extends Function, Y>(target: object | TFunction, propertyKey?: string | symbol | undefined, descriptor?: TypedPropertyDescriptor<Y> | undefined) => void;
1511
1512
 
1513
+ type PipelineTemplateOptions$1 = {
1514
+ logging?: {
1515
+ enabled?: boolean;
1516
+ ignoreMeta?: boolean;
1517
+ };
1518
+ };
1512
1519
  type PipelineTemplateProps = {
1513
1520
  name: string;
1521
+ concurrency?: PipelineConcurrency;
1522
+ options?: PipelineTemplateOptions$1;
1514
1523
  };
1515
1524
  declare const WpPipeline: (name: string, props?: Omit<PipelineTemplateProps, "name">) => <TFunction extends Function, Y>(target: object | TFunction, propertyKey?: string | symbol | undefined, descriptor?: TypedPropertyDescriptor<Y> | undefined) => void;
1516
1525
 
@@ -3337,9 +3346,11 @@ declare class PipelineUtils<TPipelineInput, TPipelineOutput, TContext> {
3337
3346
  getStepOutput: <TStepOutput>(state: PipelineCompletedStepState<TPipelineInput, TContext, unknown, unknown>, index: number) => TStepOutput;
3338
3347
  }
3339
3348
 
3340
- type PipelineConcurrency = "exclusive" | "sequential";
3341
3349
  type PipelineTemplateOptions = {
3342
3350
  concurrency?: PipelineConcurrency;
3351
+ logging?: {
3352
+ ignoreMeta?: boolean;
3353
+ };
3343
3354
  };
3344
3355
  declare abstract class NestPipelineTemplate<TPipelineInput, TPipelineOutput, TContext> {
3345
3356
  private readonly options?;
@@ -3356,9 +3367,11 @@ declare abstract class NestPipelineTemplate<TPipelineInput, TPipelineOutput, TCo
3356
3367
  context: TContext;
3357
3368
  }): Promise<PipelineResult<TPipelineInput, TPipelineOutput>>;
3358
3369
  private pipelineExecute;
3370
+ private processLogMetadata;
3359
3371
  private getDefinition;
3360
3372
  private buildDefinition;
3361
3373
  private getContext;
3374
+ private get concurrency();
3362
3375
  private get operationsLockService();
3363
3376
  private get controller();
3364
3377
  private get registry();
@@ -4085,7 +4098,7 @@ declare class EntityNotFoundException<TEntityId> extends EntityManagerException
4085
4098
  getEntityType(): string | undefined;
4086
4099
  }
4087
4100
  declare class MultipleEntitiesFoundException extends EntityManagerException {
4088
- constructor();
4101
+ constructor(params: object, items: any[]);
4089
4102
  }
4090
4103
  declare class EntityManagerConfigurationError extends EntityManagerException {
4091
4104
  constructor(message: string);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@punks/backend-entity-manager",
3
- "version": "0.0.469",
3
+ "version": "0.0.471",
4
4
  "description": "",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -47,7 +47,7 @@
47
47
  "@nestjs/swagger": "^7.3.0",
48
48
  "@nestjs/testing": "^10.4.1",
49
49
  "@nestjs/typeorm": "^10.0.0",
50
- "@punks/backend-core": "^0.0.75",
50
+ "@punks/backend-core": "^0.0.81",
51
51
  "@rollup/plugin-commonjs": "^21.0.1",
52
52
  "@rollup/plugin-json": "^6.0.0",
53
53
  "@rollup/plugin-node-resolve": "^13.0.6",
@@ -111,7 +111,7 @@
111
111
  "@nestjs/swagger": "^7.3.0",
112
112
  "@nestjs/testing": "^10.4.1",
113
113
  "@nestjs/typeorm": "^10.0.0",
114
- "@punks/backend-core": "0.0.73",
114
+ "@punks/backend-core": "0.0.81",
115
115
  "@sanity/client": "^6.10.0",
116
116
  "@sendgrid/mail": "^7.7.0",
117
117
  "bcrypt": "^5.1.0",