@fiado/credit-data 1.0.0 → 1.0.2

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/bin/index.js CHANGED
@@ -1,6 +1,11 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  exports.CreditExposureLimitsModel = exports.CreditSplitConfigModel = exports.CreditInterestRateConfigModel = exports.CreditScoreConfigModel = exports.CreditLevelConfigModel = exports.CreditEligibilityRulesModel = exports.CreditPartnerConfigModel = exports.FiadoIncCentralPaymentTxModel = exports.CreditProcessControlModel = exports.CreditOffersModel = exports.CreditIncomeSourceModel = exports.CreditNurturingBannerModel = exports.CreditFinancialProfileHistoryModel = exports.CreditFinancialProfileModel = void 0;
7
+ const dynamoose_1 = __importDefault(require("dynamoose"));
8
+ dynamoose_1.default.Table.defaults.set({ create: false, waitForActive: false });
4
9
  // Modelos operativos
5
10
  var CreditFinancialProfileModel_1 = require("./models/CreditFinancialProfileModel");
6
11
  Object.defineProperty(exports, "CreditFinancialProfileModel", { enumerable: true, get: function () { return CreditFinancialProfileModel_1.CreditFinancialProfileModel; } });
@@ -7,10 +7,24 @@ exports.FiadoIncCentralPaymentTxModel = void 0;
7
7
  const dynamoose_1 = __importDefault(require("dynamoose"));
8
8
  const schema = new dynamoose_1.default.Schema({
9
9
  id: { type: String, hashKey: true },
10
- directory_id: { type: String },
10
+ directory_id: {
11
+ type: String,
12
+ index: {
13
+ type: 'global',
14
+ name: 'directory_id-createdAt-index',
15
+ rangeKey: 'createdAt',
16
+ },
17
+ },
11
18
  account_id: { type: String },
12
19
  people_id: { type: String },
13
- tenant_id: { type: String },
20
+ tenant_id: {
21
+ type: String,
22
+ index: {
23
+ type: 'global',
24
+ name: 'tenant_id-createdAt-index',
25
+ rangeKey: 'createdAt',
26
+ },
27
+ },
14
28
  transaction_type: { type: String },
15
29
  amount: { type: Number },
16
30
  status: { type: String },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/credit-data",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Modelos Dynamoose compartidos para el dominio Credit (worker, engine, admin, collector)",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
package/src/index.ts CHANGED
@@ -1,3 +1,6 @@
1
+ import dynamoose from 'dynamoose';
2
+ dynamoose.Table.defaults.set({ create: false, waitForActive: false });
3
+
1
4
  // Modelos operativos
2
5
  export { CreditFinancialProfileModel } from './models/CreditFinancialProfileModel';
3
6
  export { CreditFinancialProfileHistoryModel } from './models/CreditFinancialProfileHistoryModel';
@@ -2,10 +2,24 @@ import dynamoose from 'dynamoose';
2
2
 
3
3
  const schema = new dynamoose.Schema({
4
4
  id: { type: String, hashKey: true },
5
- directory_id: { type: String },
5
+ directory_id: {
6
+ type: String,
7
+ index: {
8
+ type: 'global',
9
+ name: 'directory_id-createdAt-index',
10
+ rangeKey: 'createdAt',
11
+ },
12
+ },
6
13
  account_id: { type: String },
7
14
  people_id: { type: String },
8
- tenant_id: { type: String },
15
+ tenant_id: {
16
+ type: String,
17
+ index: {
18
+ type: 'global',
19
+ name: 'tenant_id-createdAt-index',
20
+ rangeKey: 'createdAt',
21
+ },
22
+ },
9
23
  transaction_type: { type: String },
10
24
  amount: { type: Number },
11
25
  status: { type: String },