av6-core 1.8.8 → 1.9.1

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/index.d.mts CHANGED
@@ -821,7 +821,7 @@ declare class ApprovalService {
821
821
  getApprovalActDetailsBySubjectId(subjectId: number, subjectType: string, service: string): Promise<ApprovalAction[]>;
822
822
  }
823
823
 
824
- declare const approvalRepository: (helpers: Helpers) => {
824
+ declare const approvalRepository: (deps: ApprovalDeps) => {
825
825
  findMatchingFlow(tx: PrismaClient | Prisma.TransactionClient, type: string, service: string, ccId: number, netTotal: number, level?: number): Promise<RawFlowWithSelectedStepResponse | null>;
826
826
  getAllApprovalFlow(tx: PrismaClient | Prisma.TransactionClient, { staffId, ccId, pageNo, pageSize, service, sortDir, startDate, endDate, searchText, status, flowType, }: GetMyApprovalFlow): Promise<PaginatedResponse<ApprovalInstanceByUser>>;
827
827
  getApprovalActDetailsBySubjectId(tx: PrismaClient | Prisma.TransactionClient, { subjectId, subjectType, service }: {
@@ -829,6 +829,10 @@ declare const approvalRepository: (helpers: Helpers) => {
829
829
  subjectType: string;
830
830
  service: string;
831
831
  }): Promise<any>;
832
+ commonStatusUpdate(config: IParentConfigJSON, data: ICommonApprovalUpdate): Promise<void>;
833
+ commonParentChildUpdate(config: IParentConfigJSON, childConfig: IChildConfigJSON | null, inst: EventInstance): Promise<void>;
834
+ getChildCommonDetailsByParentId(tx: PrismaClient | Prisma.TransactionClient, parentId: number, subjectType: string, service: string): Promise<any>;
835
+ getParentCommonDetailsByParentId(tx: PrismaClient | Prisma.TransactionClient, parentId: number, subjectType: string, service: string): Promise<any>;
832
836
  };
833
837
 
834
838
  declare function customOmit<T extends object, K extends keyof T>(obj: T, keys: K[]): {
package/dist/index.d.ts CHANGED
@@ -821,7 +821,7 @@ declare class ApprovalService {
821
821
  getApprovalActDetailsBySubjectId(subjectId: number, subjectType: string, service: string): Promise<ApprovalAction[]>;
822
822
  }
823
823
 
824
- declare const approvalRepository: (helpers: Helpers) => {
824
+ declare const approvalRepository: (deps: ApprovalDeps) => {
825
825
  findMatchingFlow(tx: PrismaClient | Prisma.TransactionClient, type: string, service: string, ccId: number, netTotal: number, level?: number): Promise<RawFlowWithSelectedStepResponse | null>;
826
826
  getAllApprovalFlow(tx: PrismaClient | Prisma.TransactionClient, { staffId, ccId, pageNo, pageSize, service, sortDir, startDate, endDate, searchText, status, flowType, }: GetMyApprovalFlow): Promise<PaginatedResponse<ApprovalInstanceByUser>>;
827
827
  getApprovalActDetailsBySubjectId(tx: PrismaClient | Prisma.TransactionClient, { subjectId, subjectType, service }: {
@@ -829,6 +829,10 @@ declare const approvalRepository: (helpers: Helpers) => {
829
829
  subjectType: string;
830
830
  service: string;
831
831
  }): Promise<any>;
832
+ commonStatusUpdate(config: IParentConfigJSON, data: ICommonApprovalUpdate): Promise<void>;
833
+ commonParentChildUpdate(config: IParentConfigJSON, childConfig: IChildConfigJSON | null, inst: EventInstance): Promise<void>;
834
+ getChildCommonDetailsByParentId(tx: PrismaClient | Prisma.TransactionClient, parentId: number, subjectType: string, service: string): Promise<any>;
835
+ getParentCommonDetailsByParentId(tx: PrismaClient | Prisma.TransactionClient, parentId: number, subjectType: string, service: string): Promise<any>;
832
836
  };
833
837
 
834
838
  declare function customOmit<T extends object, K extends keyof T>(obj: T, keys: K[]): {
package/dist/index.js CHANGED
@@ -2344,7 +2344,7 @@ var ActionMode = /* @__PURE__ */ ((ActionMode2) => {
2344
2344
 
2345
2345
  // src/repository/approval.repository.ts
2346
2346
  var import_client = require("@prisma/client");
2347
- var approvalRepository = (helpers) => {
2347
+ var approvalRepository = (deps) => {
2348
2348
  return {
2349
2349
  async findMatchingFlow(tx, type, service, ccId, netTotal, level = 1) {
2350
2350
  const result = await tx.$queryRaw`
@@ -2371,7 +2371,7 @@ var approvalRepository = (helpers) => {
2371
2371
  LIMIT 1;
2372
2372
  `;
2373
2373
  if (result.length === 0) {
2374
- throw new helpers.ErrorHandler(400, "No matching flow found.");
2374
+ throw new deps.helpers.ErrorHandler(400, "No matching flow found.");
2375
2375
  }
2376
2376
  return result[0];
2377
2377
  },
@@ -2480,6 +2480,99 @@ var approvalRepository = (helpers) => {
2480
2480
  isActive: true
2481
2481
  }
2482
2482
  });
2483
+ },
2484
+ async commonStatusUpdate(config, data) {
2485
+ const { tableName, ...columnMap } = config;
2486
+ const setFragments = Object.keys(columnMap).map((key) => {
2487
+ const columnName = columnMap[key] ?? "";
2488
+ const value = data[key] ?? null;
2489
+ return import_client.Prisma.sql`${import_client.Prisma.raw(columnName)} = ${value}`;
2490
+ });
2491
+ const query = import_client.Prisma.sql`
2492
+ UPDATE ${import_client.Prisma.raw(tableName)}
2493
+ SET ${import_client.Prisma.join(setFragments, ", ")}
2494
+ WHERE id = ${data.id};
2495
+ `;
2496
+ await deps.prisma.$queryRaw(query);
2497
+ },
2498
+ async commonParentChildUpdate(config, childConfig, inst) {
2499
+ deps.logger.info("entering::commonRefundUpdate::repository");
2500
+ const { tableName: parentTableName, ...parentTableConfig } = config;
2501
+ const { tableName: childTableName, ...childTableConfig } = childConfig ?? {};
2502
+ const parentId = inst.subjectId;
2503
+ await deps.prisma.$transaction(async (tx) => {
2504
+ const commonDetails = await this.getChildCommonDetailsByParentId(tx, parentId, inst.subjectType, inst.service);
2505
+ const parentDetails = await this.getParentCommonDetailsByParentId(tx, parentId, inst.subjectType, inst.service);
2506
+ if (!parentDetails) {
2507
+ return;
2508
+ }
2509
+ const parentData = {
2510
+ ...parentDetails,
2511
+ approvalNote: inst.comment || null,
2512
+ approvedAt: (/* @__PURE__ */ new Date()).toISOString(),
2513
+ approvedBy: JSON.stringify(inst.approverId),
2514
+ refundAmount: parentDetails.refundAmount ? parentDetails.refundAmount.toNumber() : null,
2515
+ discountValue: parentDetails.discountValue ? parentDetails.discountValue.toNumber() : null,
2516
+ discountAmount: parentDetails.discountAmount ? parentDetails.discountAmount.toNumber() : null,
2517
+ totalCopaymentAmount: parentDetails.totalCopaymentAmount ? parentDetails.totalCopaymentAmount.toNumber() : null
2518
+ };
2519
+ if (childTableName) {
2520
+ for (const child of commonDetails) {
2521
+ const setFragments2 = Object.keys(childTableConfig).map((key) => {
2522
+ const columnName = childTableConfig[key] ?? "";
2523
+ const value = child[key] ?? null;
2524
+ return import_client.Prisma.sql`${import_client.Prisma.raw(columnName)} = ${value}`;
2525
+ });
2526
+ const query2 = import_client.Prisma.sql`
2527
+ UPDATE ${import_client.Prisma.raw(childTableName)}
2528
+ SET ${import_client.Prisma.join(setFragments2, ", ")}
2529
+ WHERE id = ${child.childId};
2530
+ `;
2531
+ await tx.$queryRaw(query2);
2532
+ }
2533
+ }
2534
+ const setFragments = Object.keys(parentTableConfig).map((key) => {
2535
+ const columnName = parentTableConfig[key] ?? "";
2536
+ const value = parentData[key] ?? null;
2537
+ return import_client.Prisma.sql`${import_client.Prisma.raw(columnName)} = ${value}`;
2538
+ });
2539
+ const query = import_client.Prisma.sql`
2540
+ UPDATE ${import_client.Prisma.raw(parentTableName)}
2541
+ SET ${import_client.Prisma.join(setFragments, ", ")}
2542
+ WHERE id = ${parentId};
2543
+ `;
2544
+ await tx.$queryRaw(query);
2545
+ await tx.childCommonDetails.updateMany({
2546
+ where: {
2547
+ parentId,
2548
+ subjectType: inst.subjectType
2549
+ },
2550
+ data: {
2551
+ isActive: false
2552
+ }
2553
+ });
2554
+ });
2555
+ deps.logger.info("exiting::commonRefundUpdate::repository");
2556
+ },
2557
+ async getChildCommonDetailsByParentId(tx, parentId, subjectType, service) {
2558
+ return tx.childCommonDetails.findMany({
2559
+ where: {
2560
+ parentId,
2561
+ subjectType,
2562
+ service,
2563
+ isActive: true
2564
+ }
2565
+ });
2566
+ },
2567
+ async getParentCommonDetailsByParentId(tx, parentId, subjectType, service) {
2568
+ return tx.parentCommonDetails.findFirst({
2569
+ where: {
2570
+ parentId,
2571
+ subjectType,
2572
+ service,
2573
+ isActive: true
2574
+ }
2575
+ });
2483
2576
  }
2484
2577
  };
2485
2578
  };
@@ -2503,7 +2596,7 @@ var externalInterceptor = () => {
2503
2596
  var ApprovalService = class {
2504
2597
  constructor(deps) {
2505
2598
  this.deps = deps;
2506
- this.approvalRepo = approvalRepository(deps.helpers);
2599
+ this.approvalRepo = approvalRepository(deps);
2507
2600
  }
2508
2601
  deps;
2509
2602
  approvalRepo;
@@ -2712,60 +2805,68 @@ var ApprovalService = class {
2712
2805
  service: instance.service
2713
2806
  });
2714
2807
  } else {
2715
- const client = externalInterceptor();
2716
- switch (instance.status) {
2717
- case "APPROVED" /* APPROVED */:
2718
- if (approvalFlow.approveActionUrl) {
2719
- const res = await client.post(
2720
- approvalFlow.approveActionUrl,
2721
- { id: instance.id, subjectId: instance.subjectId },
2722
- {
2723
- validateStatus: (s) => s === 200 || s === 404
2724
- }
2725
- );
2726
- if (res.status !== 200) {
2727
- this.deps.logger.error(
2728
- "[Approval Service] Approve action URL webhook failed",
2729
- res.status,
2730
- res.statusText
2808
+ try {
2809
+ const client = externalInterceptor();
2810
+ switch (instance.status) {
2811
+ case "APPROVED" /* APPROVED */:
2812
+ if (approvalFlow.approveActionUrl) {
2813
+ const res = await client.post(
2814
+ approvalFlow.approveActionUrl,
2815
+ { id: instance.id, subjectId: instance.subjectId },
2816
+ {
2817
+ validateStatus: (s) => s === 200 || s === 404
2818
+ }
2731
2819
  );
2732
- }
2733
- }
2734
- break;
2735
- case "REJECTED" /* REJECTED */:
2736
- if (approvalFlow.rejectActionUrl) {
2737
- const res = await client.post(
2738
- approvalFlow.rejectActionUrl,
2739
- { id: instance.id, subjectId: instance.subjectId },
2740
- {
2741
- validateStatus: (s) => s === 200 || s === 404
2820
+ if (res.status !== 200) {
2821
+ this.deps.logger.error(
2822
+ "[Approval Service] Approve action URL webhook failed",
2823
+ res.status,
2824
+ res.statusText
2825
+ );
2742
2826
  }
2743
- );
2744
- if (res.status !== 200) {
2745
- this.deps.logger.error("[Approval Service] Reject action URL webhook failed", res.status, res.statusText);
2746
2827
  }
2747
- }
2748
- break;
2749
- case "PARTIALLY_APPROVED" /* PARTIALLY_APPROVED */:
2750
- if (approvalFlow.partiallyApproveActionUrl) {
2751
- const res = await client.post(
2752
- approvalFlow.partiallyApproveActionUrl,
2753
- { id: instance.id, subjectId: instance.subjectId },
2754
- {
2755
- validateStatus: (s) => s === 200 || s === 404
2828
+ break;
2829
+ case "REJECTED" /* REJECTED */:
2830
+ if (approvalFlow.rejectActionUrl) {
2831
+ const res = await client.post(
2832
+ approvalFlow.rejectActionUrl,
2833
+ { id: instance.id, subjectId: instance.subjectId },
2834
+ {
2835
+ validateStatus: (s) => s === 200 || s === 404
2836
+ }
2837
+ );
2838
+ if (res.status !== 200) {
2839
+ this.deps.logger.error(
2840
+ "[Approval Service] Reject action URL webhook failed",
2841
+ res.status,
2842
+ res.statusText
2843
+ );
2756
2844
  }
2757
- );
2758
- if (res.status !== 200) {
2759
- this.deps.logger.error(
2760
- "[Approval Service] Partially approve action URL webhook failed",
2761
- res.status,
2762
- res.statusText
2845
+ }
2846
+ break;
2847
+ case "PARTIALLY_APPROVED" /* PARTIALLY_APPROVED */:
2848
+ if (approvalFlow.partiallyApproveActionUrl) {
2849
+ const res = await client.post(
2850
+ approvalFlow.partiallyApproveActionUrl,
2851
+ { id: instance.id, subjectId: instance.subjectId },
2852
+ {
2853
+ validateStatus: (s) => s === 200 || s === 404
2854
+ }
2763
2855
  );
2856
+ if (res.status !== 200) {
2857
+ this.deps.logger.error(
2858
+ "[Approval Service] Partially approve action URL webhook failed",
2859
+ res.status,
2860
+ res.statusText
2861
+ );
2862
+ }
2764
2863
  }
2765
- }
2766
- break;
2767
- default:
2768
- break;
2864
+ break;
2865
+ default:
2866
+ break;
2867
+ }
2868
+ } catch (error) {
2869
+ this.deps.logger.error("[Approval Service] Error emitting events", error);
2769
2870
  }
2770
2871
  }
2771
2872
  }
package/dist/index.mjs CHANGED
@@ -2281,7 +2281,7 @@ var ActionMode = /* @__PURE__ */ ((ActionMode2) => {
2281
2281
 
2282
2282
  // src/repository/approval.repository.ts
2283
2283
  import { Prisma } from "@prisma/client";
2284
- var approvalRepository = (helpers) => {
2284
+ var approvalRepository = (deps) => {
2285
2285
  return {
2286
2286
  async findMatchingFlow(tx, type, service, ccId, netTotal, level = 1) {
2287
2287
  const result = await tx.$queryRaw`
@@ -2308,7 +2308,7 @@ var approvalRepository = (helpers) => {
2308
2308
  LIMIT 1;
2309
2309
  `;
2310
2310
  if (result.length === 0) {
2311
- throw new helpers.ErrorHandler(400, "No matching flow found.");
2311
+ throw new deps.helpers.ErrorHandler(400, "No matching flow found.");
2312
2312
  }
2313
2313
  return result[0];
2314
2314
  },
@@ -2417,6 +2417,99 @@ var approvalRepository = (helpers) => {
2417
2417
  isActive: true
2418
2418
  }
2419
2419
  });
2420
+ },
2421
+ async commonStatusUpdate(config, data) {
2422
+ const { tableName, ...columnMap } = config;
2423
+ const setFragments = Object.keys(columnMap).map((key) => {
2424
+ const columnName = columnMap[key] ?? "";
2425
+ const value = data[key] ?? null;
2426
+ return Prisma.sql`${Prisma.raw(columnName)} = ${value}`;
2427
+ });
2428
+ const query = Prisma.sql`
2429
+ UPDATE ${Prisma.raw(tableName)}
2430
+ SET ${Prisma.join(setFragments, ", ")}
2431
+ WHERE id = ${data.id};
2432
+ `;
2433
+ await deps.prisma.$queryRaw(query);
2434
+ },
2435
+ async commonParentChildUpdate(config, childConfig, inst) {
2436
+ deps.logger.info("entering::commonRefundUpdate::repository");
2437
+ const { tableName: parentTableName, ...parentTableConfig } = config;
2438
+ const { tableName: childTableName, ...childTableConfig } = childConfig ?? {};
2439
+ const parentId = inst.subjectId;
2440
+ await deps.prisma.$transaction(async (tx) => {
2441
+ const commonDetails = await this.getChildCommonDetailsByParentId(tx, parentId, inst.subjectType, inst.service);
2442
+ const parentDetails = await this.getParentCommonDetailsByParentId(tx, parentId, inst.subjectType, inst.service);
2443
+ if (!parentDetails) {
2444
+ return;
2445
+ }
2446
+ const parentData = {
2447
+ ...parentDetails,
2448
+ approvalNote: inst.comment || null,
2449
+ approvedAt: (/* @__PURE__ */ new Date()).toISOString(),
2450
+ approvedBy: JSON.stringify(inst.approverId),
2451
+ refundAmount: parentDetails.refundAmount ? parentDetails.refundAmount.toNumber() : null,
2452
+ discountValue: parentDetails.discountValue ? parentDetails.discountValue.toNumber() : null,
2453
+ discountAmount: parentDetails.discountAmount ? parentDetails.discountAmount.toNumber() : null,
2454
+ totalCopaymentAmount: parentDetails.totalCopaymentAmount ? parentDetails.totalCopaymentAmount.toNumber() : null
2455
+ };
2456
+ if (childTableName) {
2457
+ for (const child of commonDetails) {
2458
+ const setFragments2 = Object.keys(childTableConfig).map((key) => {
2459
+ const columnName = childTableConfig[key] ?? "";
2460
+ const value = child[key] ?? null;
2461
+ return Prisma.sql`${Prisma.raw(columnName)} = ${value}`;
2462
+ });
2463
+ const query2 = Prisma.sql`
2464
+ UPDATE ${Prisma.raw(childTableName)}
2465
+ SET ${Prisma.join(setFragments2, ", ")}
2466
+ WHERE id = ${child.childId};
2467
+ `;
2468
+ await tx.$queryRaw(query2);
2469
+ }
2470
+ }
2471
+ const setFragments = Object.keys(parentTableConfig).map((key) => {
2472
+ const columnName = parentTableConfig[key] ?? "";
2473
+ const value = parentData[key] ?? null;
2474
+ return Prisma.sql`${Prisma.raw(columnName)} = ${value}`;
2475
+ });
2476
+ const query = Prisma.sql`
2477
+ UPDATE ${Prisma.raw(parentTableName)}
2478
+ SET ${Prisma.join(setFragments, ", ")}
2479
+ WHERE id = ${parentId};
2480
+ `;
2481
+ await tx.$queryRaw(query);
2482
+ await tx.childCommonDetails.updateMany({
2483
+ where: {
2484
+ parentId,
2485
+ subjectType: inst.subjectType
2486
+ },
2487
+ data: {
2488
+ isActive: false
2489
+ }
2490
+ });
2491
+ });
2492
+ deps.logger.info("exiting::commonRefundUpdate::repository");
2493
+ },
2494
+ async getChildCommonDetailsByParentId(tx, parentId, subjectType, service) {
2495
+ return tx.childCommonDetails.findMany({
2496
+ where: {
2497
+ parentId,
2498
+ subjectType,
2499
+ service,
2500
+ isActive: true
2501
+ }
2502
+ });
2503
+ },
2504
+ async getParentCommonDetailsByParentId(tx, parentId, subjectType, service) {
2505
+ return tx.parentCommonDetails.findFirst({
2506
+ where: {
2507
+ parentId,
2508
+ subjectType,
2509
+ service,
2510
+ isActive: true
2511
+ }
2512
+ });
2420
2513
  }
2421
2514
  };
2422
2515
  };
@@ -2440,7 +2533,7 @@ var externalInterceptor = () => {
2440
2533
  var ApprovalService = class {
2441
2534
  constructor(deps) {
2442
2535
  this.deps = deps;
2443
- this.approvalRepo = approvalRepository(deps.helpers);
2536
+ this.approvalRepo = approvalRepository(deps);
2444
2537
  }
2445
2538
  deps;
2446
2539
  approvalRepo;
@@ -2649,60 +2742,68 @@ var ApprovalService = class {
2649
2742
  service: instance.service
2650
2743
  });
2651
2744
  } else {
2652
- const client = externalInterceptor();
2653
- switch (instance.status) {
2654
- case "APPROVED" /* APPROVED */:
2655
- if (approvalFlow.approveActionUrl) {
2656
- const res = await client.post(
2657
- approvalFlow.approveActionUrl,
2658
- { id: instance.id, subjectId: instance.subjectId },
2659
- {
2660
- validateStatus: (s) => s === 200 || s === 404
2661
- }
2662
- );
2663
- if (res.status !== 200) {
2664
- this.deps.logger.error(
2665
- "[Approval Service] Approve action URL webhook failed",
2666
- res.status,
2667
- res.statusText
2745
+ try {
2746
+ const client = externalInterceptor();
2747
+ switch (instance.status) {
2748
+ case "APPROVED" /* APPROVED */:
2749
+ if (approvalFlow.approveActionUrl) {
2750
+ const res = await client.post(
2751
+ approvalFlow.approveActionUrl,
2752
+ { id: instance.id, subjectId: instance.subjectId },
2753
+ {
2754
+ validateStatus: (s) => s === 200 || s === 404
2755
+ }
2668
2756
  );
2669
- }
2670
- }
2671
- break;
2672
- case "REJECTED" /* REJECTED */:
2673
- if (approvalFlow.rejectActionUrl) {
2674
- const res = await client.post(
2675
- approvalFlow.rejectActionUrl,
2676
- { id: instance.id, subjectId: instance.subjectId },
2677
- {
2678
- validateStatus: (s) => s === 200 || s === 404
2757
+ if (res.status !== 200) {
2758
+ this.deps.logger.error(
2759
+ "[Approval Service] Approve action URL webhook failed",
2760
+ res.status,
2761
+ res.statusText
2762
+ );
2679
2763
  }
2680
- );
2681
- if (res.status !== 200) {
2682
- this.deps.logger.error("[Approval Service] Reject action URL webhook failed", res.status, res.statusText);
2683
2764
  }
2684
- }
2685
- break;
2686
- case "PARTIALLY_APPROVED" /* PARTIALLY_APPROVED */:
2687
- if (approvalFlow.partiallyApproveActionUrl) {
2688
- const res = await client.post(
2689
- approvalFlow.partiallyApproveActionUrl,
2690
- { id: instance.id, subjectId: instance.subjectId },
2691
- {
2692
- validateStatus: (s) => s === 200 || s === 404
2765
+ break;
2766
+ case "REJECTED" /* REJECTED */:
2767
+ if (approvalFlow.rejectActionUrl) {
2768
+ const res = await client.post(
2769
+ approvalFlow.rejectActionUrl,
2770
+ { id: instance.id, subjectId: instance.subjectId },
2771
+ {
2772
+ validateStatus: (s) => s === 200 || s === 404
2773
+ }
2774
+ );
2775
+ if (res.status !== 200) {
2776
+ this.deps.logger.error(
2777
+ "[Approval Service] Reject action URL webhook failed",
2778
+ res.status,
2779
+ res.statusText
2780
+ );
2693
2781
  }
2694
- );
2695
- if (res.status !== 200) {
2696
- this.deps.logger.error(
2697
- "[Approval Service] Partially approve action URL webhook failed",
2698
- res.status,
2699
- res.statusText
2782
+ }
2783
+ break;
2784
+ case "PARTIALLY_APPROVED" /* PARTIALLY_APPROVED */:
2785
+ if (approvalFlow.partiallyApproveActionUrl) {
2786
+ const res = await client.post(
2787
+ approvalFlow.partiallyApproveActionUrl,
2788
+ { id: instance.id, subjectId: instance.subjectId },
2789
+ {
2790
+ validateStatus: (s) => s === 200 || s === 404
2791
+ }
2700
2792
  );
2793
+ if (res.status !== 200) {
2794
+ this.deps.logger.error(
2795
+ "[Approval Service] Partially approve action URL webhook failed",
2796
+ res.status,
2797
+ res.statusText
2798
+ );
2799
+ }
2701
2800
  }
2702
- }
2703
- break;
2704
- default:
2705
- break;
2801
+ break;
2802
+ default:
2803
+ break;
2804
+ }
2805
+ } catch (error) {
2806
+ this.deps.logger.error("[Approval Service] Error emitting events", error);
2706
2807
  }
2707
2808
  }
2708
2809
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "av6-core",
3
- "version": "1.8.8",
3
+ "version": "1.9.1",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",