@punks/backend-entity-manager 0.0.470 → 0.0.472
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 +76 -16
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/abstractions/pipelines.d.ts +1 -0
- package/dist/cjs/types/platforms/nest/decorators/pipelines.d.ts +9 -0
- package/dist/cjs/types/platforms/nest/pipelines/template/template.d.ts +6 -1
- package/dist/cjs/types/platforms/nest/plugins/jobs/aws-batch/manager/index.d.ts +1 -0
- package/dist/cjs/types/platforms/nest/plugins/jobs/aws-batch/manager/types.d.ts +4 -0
- package/dist/cjs/types/platforms/nest/plugins/jobs/aws-batch/models/index.d.ts +1 -0
- package/dist/cjs/types/platforms/nest/plugins/jobs/aws-batch/settings/index.d.ts +2 -1
- package/dist/esm/index.js +77 -17
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/abstractions/pipelines.d.ts +1 -0
- package/dist/esm/types/platforms/nest/decorators/pipelines.d.ts +9 -0
- package/dist/esm/types/platforms/nest/pipelines/template/template.d.ts +6 -1
- package/dist/esm/types/platforms/nest/plugins/jobs/aws-batch/manager/index.d.ts +1 -0
- package/dist/esm/types/platforms/nest/plugins/jobs/aws-batch/manager/types.d.ts +4 -0
- package/dist/esm/types/platforms/nest/plugins/jobs/aws-batch/models/index.d.ts +1 -0
- package/dist/esm/types/platforms/nest/plugins/jobs/aws-batch/settings/index.d.ts +2 -1
- package/dist/index.d.ts +17 -2
- package/package.json +3 -3
|
@@ -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
|
-
|
|
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();
|
|
@@ -9,6 +9,7 @@ export type BathJobDefinition = {
|
|
|
9
9
|
};
|
|
10
10
|
export type BatchJobOverrides = {
|
|
11
11
|
command?: string[];
|
|
12
|
+
batchComputeEnvironment?: string;
|
|
12
13
|
};
|
|
13
14
|
export type SubmitBatchJobInput = {
|
|
14
15
|
overrides?: BatchJobOverrides;
|
|
@@ -24,3 +25,6 @@ export type AwsJobDefinition = {
|
|
|
24
25
|
infrastructureParams: AwsBatchInfrastructureParams;
|
|
25
26
|
invocationParams: AwsBatchInvocationParams;
|
|
26
27
|
};
|
|
28
|
+
export type AwsBatchCreateQueueOptions = {
|
|
29
|
+
batchComputeEnvironment: string;
|
|
30
|
+
};
|
|
@@ -3,7 +3,8 @@ export type AwsBatchSettings = {
|
|
|
3
3
|
awsAccessKeyId?: string;
|
|
4
4
|
awsSecretAccessKey?: string;
|
|
5
5
|
region?: string;
|
|
6
|
-
|
|
6
|
+
defaultFargateBatchComputeEnvironment: string;
|
|
7
|
+
defaultEc2BatchComputeEnvironment?: string;
|
|
7
8
|
batchExecutionRole: string;
|
|
8
9
|
batchResourcesPrefix: string;
|
|
9
10
|
};
|
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();
|
|
@@ -3653,6 +3666,7 @@ type AwsBatchInfrastructureParams = {
|
|
|
3653
3666
|
assignPublicIp?: boolean;
|
|
3654
3667
|
logGroupName?: string;
|
|
3655
3668
|
privileged?: boolean;
|
|
3669
|
+
batchComputeEnvironment?: string;
|
|
3656
3670
|
};
|
|
3657
3671
|
type AwsBatchInvocationParams = {
|
|
3658
3672
|
startCommand: string[];
|
|
@@ -3663,7 +3677,8 @@ type AwsBatchSettings = {
|
|
|
3663
3677
|
awsAccessKeyId?: string;
|
|
3664
3678
|
awsSecretAccessKey?: string;
|
|
3665
3679
|
region?: string;
|
|
3666
|
-
|
|
3680
|
+
defaultFargateBatchComputeEnvironment: string;
|
|
3681
|
+
defaultEc2BatchComputeEnvironment?: string;
|
|
3667
3682
|
batchExecutionRole: string;
|
|
3668
3683
|
batchResourcesPrefix: string;
|
|
3669
3684
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@punks/backend-entity-manager",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.472",
|
|
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.
|
|
50
|
+
"@punks/backend-core": "^0.0.82",
|
|
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.
|
|
114
|
+
"@punks/backend-core": "0.0.82",
|
|
115
115
|
"@sanity/client": "^6.10.0",
|
|
116
116
|
"@sendgrid/mail": "^7.7.0",
|
|
117
117
|
"bcrypt": "^5.1.0",
|