gemcap-be-common 1.4.112 → 1.4.113

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.
@@ -0,0 +1,11 @@
1
+ export declare const AiExchange: "ai.exchange";
2
+ export declare const AiRoutingKeys: {
3
+ readonly compliance: {
4
+ readonly findMatch: "AI.COMPLIANCE.FIND_MATCH";
5
+ };
6
+ };
7
+ export declare const AiQueues: {
8
+ readonly compliance: {
9
+ readonly main: "ai.compliance.queue";
10
+ };
11
+ };
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AiQueues = exports.AiRoutingKeys = exports.AiExchange = void 0;
4
+ exports.AiExchange = 'ai.exchange';
5
+ exports.AiRoutingKeys = {
6
+ compliance: {
7
+ findMatch: 'AI.COMPLIANCE.FIND_MATCH',
8
+ },
9
+ };
10
+ exports.AiQueues = {
11
+ compliance: {
12
+ main: 'ai.compliance.queue',
13
+ },
14
+ };
@@ -0,0 +1,13 @@
1
+ export const AiExchange = 'ai.exchange' as const;
2
+
3
+ export const AiRoutingKeys = {
4
+ compliance: {
5
+ findMatch: 'AI.COMPLIANCE.FIND_MATCH',
6
+ },
7
+ } as const;
8
+
9
+ export const AiQueues = {
10
+ compliance: {
11
+ main: 'ai.compliance.queue',
12
+ },
13
+ } as const;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemcap-be-common",
3
- "version": "1.4.112",
3
+ "version": "1.4.113",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -16,7 +16,7 @@ const CashAllocationReference_model_1 = require("../models/CashAllocationReferen
16
16
  const CashAllocationProduct_model_1 = require("../models/CashAllocationProduct.model");
17
17
  const AllocatedBankTransaction_model_1 = require("../models/AllocatedBankTransaction.model");
18
18
  const AllocatedData_model_1 = require("../models/AllocatedData.model");
19
- const date_formats_contsants_1 = require("../constants/date-formats.contsants");
19
+ const date_formats_constants_1 = require("../constants/date-formats.constants");
20
20
  const useExternalUploader = false; // TODO keep only external upload
21
21
  const createCashAllocationReferencesOnUpload = false;
22
22
  class BankUploadedTransactionsService {
@@ -273,7 +273,7 @@ class BankUploadedTransactionsService {
273
273
  }
274
274
  async createAllocatedBankTransactions(date) {
275
275
  const cashAllocations = await this.getAllocatedTransactions(date);
276
- const allocatedData = await AllocatedData_model_1.AllocatedData.findOne({ date: (0, dayjs_1.default)(date).format(date_formats_contsants_1.MAIN_DATE_FORMAT) });
276
+ const allocatedData = await AllocatedData_model_1.AllocatedData.findOne({ date: (0, dayjs_1.default)(date).format(date_formats_constants_1.MAIN_DATE_FORMAT) });
277
277
  if (cashAllocations.length > 0 && (allocatedData && allocatedData.isLocked)) {
278
278
  return;
279
279
  }
@@ -456,7 +456,7 @@ class BankUploadedTransactionsService {
456
456
  }
457
457
  async updateLockStatus(date, isLocked) {
458
458
  const normalizedDate = (0, dayjs_1.default)(date).utcOffset(0).startOf('day');
459
- await AllocatedData_model_1.AllocatedData.updateOne({ date: normalizedDate.format(date_formats_contsants_1.MAIN_DATE_FORMAT) }, { isLocked }, { upsert: true });
459
+ await AllocatedData_model_1.AllocatedData.updateOne({ date: normalizedDate.format(date_formats_constants_1.MAIN_DATE_FORMAT) }, { isLocked }, { upsert: true });
460
460
  }
461
461
  }
462
462
  exports.BankUploadedTransactionsService = BankUploadedTransactionsService;
@@ -27,7 +27,7 @@ import {
27
27
  PreSplitUploadedBankTransactionWithInfo,
28
28
  } from '../models/AllocatedBankTransaction.model';
29
29
  import { AllocatedData } from '../models/AllocatedData.model';
30
- import { MAIN_DATE_FORMAT } from '../constants/date-formats.contsants';
30
+ import { MAIN_DATE_FORMAT } from '../constants/date-formats.constants';
31
31
  import { LoanTransactionsService } from './loan-transactions.service';
32
32
  import { CashAllocationService } from './cash-allocation.service';
33
33
  import { LoanStatementStatusService } from './loan-statement-status.service';