@punks/backend-entity-manager 0.0.332 → 0.0.334

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,5 +6,6 @@ export type UserLoginInput<TUserContext extends IAuthUserContext> = {
6
6
  };
7
7
  export type UserLoginResult = {
8
8
  token?: string;
9
+ userId?: string;
9
10
  success: boolean;
10
11
  };
@@ -45,6 +45,8 @@ export type PipelineOperationError = {
45
45
  exception?: Error;
46
46
  };
47
47
  export type PipelineOperationResult<TOperationInput, TOperationOutput> = {
48
+ key?: string;
49
+ name: string;
48
50
  input: TOperationInput;
49
51
  } & ({
50
52
  type: "success";
package/dist/esm/index.js CHANGED
@@ -2879,12 +2879,16 @@ class PipelineInstance {
2879
2879
  input,
2880
2880
  });
2881
2881
  return {
2882
+ name: operation.name,
2883
+ key: operation.key,
2882
2884
  type: "skipped",
2883
2885
  input,
2884
2886
  };
2885
2887
  }
2886
2888
  const operationResult = await operation.operation.action(input, state);
2887
2889
  return {
2890
+ name: operation.name,
2891
+ key: operation.key,
2888
2892
  type: "success",
2889
2893
  input,
2890
2894
  output: operationResult,
@@ -2895,6 +2899,8 @@ class PipelineInstance {
2895
2899
  input,
2896
2900
  });
2897
2901
  return {
2902
+ name: operation.name,
2903
+ key: operation.key,
2898
2904
  type: "error",
2899
2905
  input,
2900
2906
  error: toPipelineOperationError(error),
@@ -22589,6 +22595,7 @@ let UserLoginHandler = class UserLoginHandler {
22589
22595
  return {
22590
22596
  success: true,
22591
22597
  token: await this.generateUserJwtToken(user, input.context),
22598
+ userId: user.id,
22592
22599
  };
22593
22600
  }
22594
22601
  async generateUserJwtToken(user, context) {