From 2e211033022fc83b8f628e7f2c43c201464a87c6 Mon Sep 17 00:00:00 2001 From: Georgi Georgiev Date: Mon, 6 Jan 2020 16:07:41 +0200 Subject: [PATCH] feature/1093 Alter DB Schema for Settlements (#501) * Added migrations and seeds * WIP * Remove unused code (#504) * Remove unused code * Update dependencies * Maintenance update (#505) - Upgraded Event-SDK - Version bump * Upgraded central-services-stream for #1114KafkaErrorLocalQueuefull fix (#511) * package.json and package-lock * Changes following peer review * Added settlementWindowContent.settlementId Co-authored-by: Steven Oderayi Co-authored-by: Miguel de Barros --- .env | 15 +- migrations/100100_event.js | 7 +- migrations/110100_contactType.js | 7 +- migrations/110101_contactType-indexes.js | 7 +- migrations/110200_currency.js | 7 +- migrations/110201_currency-scale.js | 7 +- migrations/110300_endpointType.js | 7 +- migrations/110301_endpointType-indexes.js | 7 +- migrations/110400_ledgerEntryType.js | 7 +- migrations/110401_ledgerEntryType-indexes.js | 7 +- migrations/110450_ledgerAccountType.js | 7 +- .../110451_ledgerAccountType-indexes.js | 7 +- migrations/110500_participantLimitType.js | 7 +- .../110501_participantLimitType-indexes.js | 7 +- .../110600_transferParticipantRoleType.js | 7 +- ...601_transferParticipantRoleType-indexes.js | 7 +- migrations/110700_transferState.js | 7 +- migrations/110800_settlementWindowState.js | 7 +- migrations/110900_settlementState.js | 7 +- migrations/111000_amountType.js | 9 +- migrations/111001_amountType-indexes.js | 9 +- migrations/111100_balanceOfPayments.js | 9 +- .../111101_balanceOfPayments-indexes.js | 9 +- migrations/111200_partyIdentifierType.js | 9 +- .../111201_partyIdentifierType-indexes.js | 9 +- migrations/111300_partyType.js | 9 +- migrations/111301_partyType-indexes.js | 9 +- migrations/111400_quoteDuplicateCheck.js | 9 +- migrations/111500_transactionInitiator.js | 9 +- .../111501_transactionInitiator-indexes.js | 9 +- migrations/111600_transactionInitiatorType.js | 9 +- ...111601_transactionInitiatorType-indexes.js | 11 +- migrations/111700_settlementDelay.js | 50 + migrations/111701_settlementDelay-indexes.js | 44 + migrations/111800_settlementInterchange.js | 50 + .../111801_settlementInterchange-indexes.js | 45 + migrations/111900_settlementGranularity.js | 50 + .../111901_settlementGranularity-indexes.js | 45 + migrations/112000_bulkTransferState.js | 7 +- migrations/112100_bulkProcessingState.js | 7 +- .../112101_bulkProcessingState-indexes.js | 7 +- migrations/200100_participant.js | 7 +- migrations/200101_participant-indexes.js | 7 +- migrations/200200_participantContact.js | 7 +- .../200201_participantContact-indexes.js | 7 +- migrations/200300_participantEndpoint.js | 7 +- .../200301_participantEndpoint-indexes.js | 7 +- migrations/200400_participantParty.js | 7 +- migrations/200401_participantParty-indexes.js | 7 +- migrations/200600_token.js | 7 +- migrations/200601_token-indexes.js | 7 +- migrations/300100_transferDuplicateCheck.js | 7 +- .../300150_bulkTransferDuplicateCheck.js | 7 +- migrations/300200_transfer.js | 7 +- migrations/300201_transfer-indexes.js | 7 +- migrations/300202_transfer-decimal184.js | 7 +- migrations/300250_bulkTransfer.js | 7 +- migrations/300251_bulkTransfer-indexes.js | 7 +- migrations/300275_bulkTransferAssociation.js | 7 +- .../300276_bulkTransferAssociation-indexes.js | 7 +- migrations/300300_ilpPacket.js | 7 +- migrations/300400_transferStateChange.js | 7 +- .../300401_transferStateChange-indexes.js | 7 +- migrations/300450_bulkTransferStateChange.js | 7 +- .../300451_bulkTransferStateChange-indexes.js | 7 +- migrations/300500_segment.js | 7 +- migrations/300501_segment-indexes.js | 7 +- migrations/310100_participantCurrency.js | 7 +- .../310101_participantCurrency-indexes.js | 7 +- migrations/310200_transferParticipant.js | 7 +- .../310201_transferParticipant-indexes.js | 7 +- .../310202_transferParticipant-decimal184.js | 7 +- migrations/310300_participantPosition.js | 7 +- .../310301_participantPosition-indexes.js | 7 +- .../310302_participantPosition-decimal184.js | 7 +- .../310400_participantPositionChange.js | 7 +- ...10401_participantPositionChange-indexes.js | 7 +- ...02_participantPositionChange-decimal184.js | 7 +- migrations/310500_participantLimit.js | 7 +- migrations/310501_participantLimit-indexes.js | 7 +- .../310502_participantLimit-decimal184.js | 7 +- migrations/400100_settlementWindow.js | 7 +- migrations/400200_settlement.js | 7 +- .../400300_settlementSettlementWindow.js | 7 +- ...0301_settlementSettlementWindow-indexes.js | 7 +- .../400400_settlementWindowStateChange.js | 7 +- ...01_settlementWindowStateChange-indexes.js} | 7 +- .../400500_settlementTransferParticipant.js | 7 +- ...1_settlementTransferParticipant-indexes.js | 7 +- ...ettlementTransferParticipant-decimal184.js | 7 +- .../400600_settlementParticipantCurrency.js | 7 +- ...1_settlementParticipantCurrency-indexes.js | 7 +- ...ettlementParticipantCurrency-decimal184.js | 7 +- ...ettlementParticipantCurrencyStateChange.js | 7 +- ...tParticipantCurrencyStateChange-indexes.js | 7 +- migrations/400800_settlementStateChange.js | 7 +- .../400801_settlementStateChange-indexes.js | 7 +- migrations/400900_settlementWindowContent.js | 50 + ...1000_settlementWindowContentStateChange.js | 46 + ...tlementWindowContentStateChange-indexes.js | 46 + .../401002_settlementWindowContent-indexes.js | 46 + .../401200_settlementContentAggregation.js | 54 + ...01_settlementContentAggregation-indexes.js | 48 + migrations/401300_settlementModel.js | 53 + migrations/401301_settlementModel-indexes.js | 46 + ...410100_transferFulfilmentDuplicateCheck.js | 7 +- ...ransferFulfilmentDuplicateCheck-indexes.js | 7 +- ...entDuplicateCheck-dropForeignTransferId.js | 7 +- ...erFulfilmentDuplicateCheck-hashNullable.js | 7 +- migrations/410200_transferFulfilment.js | 7 +- .../410201_transferFulfilment-indexes.js | 7 +- ...410202_transferFulfilment-ilpFulfilment.js | 7 +- ...rFulfilment-foreignTransferFulfilmentId.js | 7 +- ...40_bulkTransferFulfilmentDuplicateCheck.js | 7 +- migrations/410250_bulkTransferFulfilment.js | 7 +- migrations/410300_transferExtension.js | 7 +- .../410301_transferExtension-indexes.js | 7 +- ...10302_transferExtension-transferErrorId.js | 7 +- migrations/410350_bulkTransferExtension.js | 7 +- .../410351_bulkTransferExtension-indexes.js | 7 +- migrations/410400_transferTimeout.js | 7 +- migrations/410401_transferTimeout-indexes.js | 7 +- .../410450_transferErrorDuplicateCheck.js | 7 +- migrations/410500_transferError.js | 7 +- migrations/410501_transferError-indexes.js | 7 +- ...or-foreignTransferErrorDuplicateCheckId.js | 7 +- migrations/410550_bulkTransferError.js | 7 +- .../410551_bulkTransferError-indexes.js | 7 +- migrations/500100_transactionReference.js | 9 +- .../500101_transactionReference-indexes.js | 9 +- migrations/500200_transactionScenario.js | 9 +- .../500201_transactionScenario-indexes.js | 11 +- migrations/500300_transactionSubScenario.js | 9 +- migrations/500400_quote.js | 9 +- migrations/500500_quoteParty.js | 9 +- migrations/500600_party.js | 9 +- migrations/500700_quoteResponse.js | 9 +- migrations/500800_quoteResponseIlpPacket.js | 9 +- migrations/500900_geoCode.js | 9 +- migrations/501000_quoteExtension.js | 9 +- .../501100_quoteResponseDuplicateCheck.js | 9 +- migrations/501200_quoteError.js | 9 +- migrations/501300_transferRules.js | 7 +- migrations/800100_quotePartyView.js | 7 +- migrations/800200_quoteView.js | 7 +- migrations/800300_quoteResponseView.js | 7 +- migrations/900100_foreign-keys.js | 7 +- migrations/900101_foreign-keys.js | 7 +- migrations/910100_feature904DDL.js | 7 +- migrations/910101_feature904DataMigration.js | 11 +- migrations/910102_feature949DataMigration.js | 12 +- migrations/910102_hotfix954.js | 28 +- .../910103_feature1093SettlementByCurrency.js | 60 + package-lock.json | 1698 ++++++++++------- package.json | 20 +- seeds/ledgerAccountType.js | 8 +- seeds/ledgerEntryType.js | 6 +- seeds/settlementDelay.js | 48 + seeds/settlementGranularity.js | 48 + seeds/settlementInterchange.js | 48 + src/domain/bulkTransfer/index.js | 2 +- test/integration/handlers/handlers.test.js | 16 +- .../models/transfer/ilpPacket.test.js | 2 +- .../models/transfer/transferExtension.test.js | 2 +- test/unit/api/metrics/handler.test.js | 3 +- test/unit/api/participants/handler.test.js | 10 +- 166 files changed, 2505 insertions(+), 1201 deletions(-) create mode 100644 migrations/111700_settlementDelay.js create mode 100644 migrations/111701_settlementDelay-indexes.js create mode 100644 migrations/111800_settlementInterchange.js create mode 100644 migrations/111801_settlementInterchange-indexes.js create mode 100644 migrations/111900_settlementGranularity.js create mode 100644 migrations/111901_settlementGranularity-indexes.js rename migrations/{400401_settlmentWindowStateChange-indexes.js => 400401_settlementWindowStateChange-indexes.js} (92%) create mode 100644 migrations/400900_settlementWindowContent.js create mode 100644 migrations/401000_settlementWindowContentStateChange.js create mode 100644 migrations/401001_settlementWindowContentStateChange-indexes.js create mode 100644 migrations/401002_settlementWindowContent-indexes.js create mode 100644 migrations/401200_settlementContentAggregation.js create mode 100644 migrations/401201_settlementContentAggregation-indexes.js create mode 100644 migrations/401300_settlementModel.js create mode 100644 migrations/401301_settlementModel-indexes.js create mode 100644 migrations/910103_feature1093SettlementByCurrency.js create mode 100644 seeds/settlementDelay.js create mode 100644 seeds/settlementGranularity.js create mode 100644 seeds/settlementInterchange.js diff --git a/.env b/.env index 7c285891d..877c59dbb 100644 --- a/.env +++ b/.env @@ -1,9 +1,6 @@ -POSTGRES_USER=central_ledger -POSTGRES_PASSWORD=cVq8iFqaLuHy8jjKuA -SIDE_SERVICE=central-ledger -SIDE_POSTGRES_USER=sidecar -SIDE_POSTGRES_PASSWORD=6dauAWcoeJuyRTFXH9 -DB_HOST=postgres -DB_PORT=5432 -DB_USER=kms -DB_PASSWORD=kms +DB_USER=central_ledger +DB_PASS=password +DB_NAME=central_ledger +DB_HOST=localhost +DB_PORT=3306 +CLEDG_DATABASE_URI=mysql://$DB_USER:$DB_PASS@$DB_HOST:$DB_PORT/$DB_NAME diff --git a/migrations/100100_event.js b/migrations/100100_event.js index 2a392d146..b7f44442b 100644 --- a/migrations/100100_event.js +++ b/migrations/100100_event.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('event').then(function(exists) { if (!exists) { return knex.schema.createTable('event', (t) => { @@ -37,6 +38,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('event') } diff --git a/migrations/110100_contactType.js b/migrations/110100_contactType.js index 3a768f0a5..7aef5b28a 100644 --- a/migrations/110100_contactType.js +++ b/migrations/110100_contactType.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('contactType').then(function(exists) { if (!exists) { return knex.schema.createTable('contactType', (t) => { @@ -38,6 +39,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('contactType') } diff --git a/migrations/110101_contactType-indexes.js b/migrations/110101_contactType-indexes.js index 3417bdd56..9693420d2 100644 --- a/migrations/110101_contactType-indexes.js +++ b/migrations/110101_contactType-indexes.js @@ -18,19 +18,20 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('contactType', (t) => { t.unique('name') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('contactType', (t) => { t.dropUnique('name') }) diff --git a/migrations/110200_currency.js b/migrations/110200_currency.js index 7891f4909..cc9394b40 100644 --- a/migrations/110200_currency.js +++ b/migrations/110200_currency.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('currency').then(function(exists) { if (!exists) { return knex.schema.createTable('currency', (t) => { @@ -37,6 +38,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('currency') } diff --git a/migrations/110201_currency-scale.js b/migrations/110201_currency-scale.js index 89bec4b67..b8e9aff13 100644 --- a/migrations/110201_currency-scale.js +++ b/migrations/110201_currency-scale.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('currency').then(function(exists) { if (exists) { return knex.schema.alterTable('currency', (t) => { @@ -34,6 +35,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('currency') } diff --git a/migrations/110300_endpointType.js b/migrations/110300_endpointType.js index 75facd41d..84d1a7356 100644 --- a/migrations/110300_endpointType.js +++ b/migrations/110300_endpointType.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('endpointType').then(function(exists) { if (!exists) { return knex.schema.createTable('endpointType', (t) => { @@ -38,6 +39,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('endpointType') } diff --git a/migrations/110301_endpointType-indexes.js b/migrations/110301_endpointType-indexes.js index 797217dbe..e60dfdc92 100644 --- a/migrations/110301_endpointType-indexes.js +++ b/migrations/110301_endpointType-indexes.js @@ -18,19 +18,20 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('endpointType', (t) => { t.unique('name') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('endpointType', (t) => { t.dropUnique('name') }) diff --git a/migrations/110400_ledgerEntryType.js b/migrations/110400_ledgerEntryType.js index 2b4101237..cd859423d 100644 --- a/migrations/110400_ledgerEntryType.js +++ b/migrations/110400_ledgerEntryType.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('ledgerEntryType').then(function(exists) { if (!exists) { return knex.schema.createTable('ledgerEntryType', (t) => { @@ -38,6 +39,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('ledgerEntryType') } diff --git a/migrations/110401_ledgerEntryType-indexes.js b/migrations/110401_ledgerEntryType-indexes.js index f34694177..ecf0ed081 100644 --- a/migrations/110401_ledgerEntryType-indexes.js +++ b/migrations/110401_ledgerEntryType-indexes.js @@ -18,19 +18,20 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('ledgerEntryType', (t) => { t.unique('name') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('ledgerEntryType', (t) => { t.dropUnique('name') }) diff --git a/migrations/110450_ledgerAccountType.js b/migrations/110450_ledgerAccountType.js index bedb4e344..aa42d2b79 100644 --- a/migrations/110450_ledgerAccountType.js +++ b/migrations/110450_ledgerAccountType.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('ledgerAccountType').then(function(exists) { if (!exists) { return knex.schema.createTable('ledgerAccountType', (t) => { @@ -38,6 +39,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('ledgerAccountType') } diff --git a/migrations/110451_ledgerAccountType-indexes.js b/migrations/110451_ledgerAccountType-indexes.js index 10f5b6a0e..07a3413b7 100644 --- a/migrations/110451_ledgerAccountType-indexes.js +++ b/migrations/110451_ledgerAccountType-indexes.js @@ -18,19 +18,20 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('ledgerAccountType', (t) => { t.unique('name') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('ledgerAccountType', (t) => { t.dropUnique('name') }) diff --git a/migrations/110500_participantLimitType.js b/migrations/110500_participantLimitType.js index c8b6213ad..59baafef6 100644 --- a/migrations/110500_participantLimitType.js +++ b/migrations/110500_participantLimitType.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('participantLimitType').then(function(exists) { if (!exists) { return knex.schema.createTable('participantLimitType', (t) => { @@ -38,6 +39,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('participantLimitType') } diff --git a/migrations/110501_participantLimitType-indexes.js b/migrations/110501_participantLimitType-indexes.js index 8ab576bc4..8f9e83cdd 100644 --- a/migrations/110501_participantLimitType-indexes.js +++ b/migrations/110501_participantLimitType-indexes.js @@ -18,19 +18,20 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('participantLimitType', (t) => { t.unique('name') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('participantLimitType', (t) => { t.dropUnique('name') }) diff --git a/migrations/110600_transferParticipantRoleType.js b/migrations/110600_transferParticipantRoleType.js index c629177f0..3521daa7d 100644 --- a/migrations/110600_transferParticipantRoleType.js +++ b/migrations/110600_transferParticipantRoleType.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('transferParticipantRoleType').then(function(exists) { if (!exists) { return knex.schema.createTable('transferParticipantRoleType', (t) => { @@ -38,6 +39,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transferParticipantRoleType') } diff --git a/migrations/110601_transferParticipantRoleType-indexes.js b/migrations/110601_transferParticipantRoleType-indexes.js index 3c0d55949..955e7743a 100644 --- a/migrations/110601_transferParticipantRoleType-indexes.js +++ b/migrations/110601_transferParticipantRoleType-indexes.js @@ -18,19 +18,20 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('transferParticipantRoleType', (t) => { t.unique('name') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('transferParticipantRoleType', (t) => { t.dropUnique('name') }) diff --git a/migrations/110700_transferState.js b/migrations/110700_transferState.js index 0d696c2a1..38f73fd0a 100644 --- a/migrations/110700_transferState.js +++ b/migrations/110700_transferState.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('transferState').then(function(exists) { if (!exists) { return knex.schema.createTable('transferState', (t) => { @@ -38,6 +39,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transferState') } diff --git a/migrations/110800_settlementWindowState.js b/migrations/110800_settlementWindowState.js index 3f1f299ef..372c14313 100644 --- a/migrations/110800_settlementWindowState.js +++ b/migrations/110800_settlementWindowState.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('settlementWindowState').then(function (exists) { if (!exists) { return knex.schema.createTable('settlementWindowState', (t) => { @@ -38,6 +39,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('settlementWindowState') } diff --git a/migrations/110900_settlementState.js b/migrations/110900_settlementState.js index 13686a5fa..f4e98e1b7 100644 --- a/migrations/110900_settlementState.js +++ b/migrations/110900_settlementState.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('settlementState').then(function(exists) { if (!exists) { return knex.schema.createTable('settlementState', (t) => { @@ -38,6 +39,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('settlementState') } diff --git a/migrations/111000_amountType.js b/migrations/111000_amountType.js index a50145c2f..5f5bda6e8 100644 --- a/migrations/111000_amountType.js +++ b/migrations/111000_amountType.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -24,14 +24,15 @@ Contributors * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = (knex, Promise) => { +exports.up = (knex) => { return knex.schema.hasTable('amountType').then((exists) => { if (!exists) { return knex.schema.createTable('amountType', (t) => { @@ -44,6 +45,6 @@ exports.up = (knex, Promise) => { }) } -exports.down = (knex, Promise) => { +exports.down = (knex) => { return knex.schema.dropTableIfExists('amountType') } diff --git a/migrations/111001_amountType-indexes.js b/migrations/111001_amountType-indexes.js index 1c7751111..29d0bfd2d 100644 --- a/migrations/111001_amountType-indexes.js +++ b/migrations/111001_amountType-indexes.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -24,20 +24,21 @@ Contributors * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('amountType', (t) => { t.unique('name') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('amountType', (t) => { t.dropUnique('name') }) diff --git a/migrations/111100_balanceOfPayments.js b/migrations/111100_balanceOfPayments.js index 2e0025359..667d4f8b4 100644 --- a/migrations/111100_balanceOfPayments.js +++ b/migrations/111100_balanceOfPayments.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -24,14 +24,15 @@ Contributors * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = (knex, Promise) => { +exports.up = (knex) => { return knex.schema.hasTable('balanceOfPayments').then((exists) => { if (!exists) { return knex.schema.createTable('balanceOfPayments', (t) => { @@ -45,6 +46,6 @@ exports.up = (knex, Promise) => { }) } -exports.down = (knex, Promise) => { +exports.down = (knex) => { return knex.schema.dropTableIfExists('balanceOfPayments') } diff --git a/migrations/111101_balanceOfPayments-indexes.js b/migrations/111101_balanceOfPayments-indexes.js index 79cd755a8..46b6c1b9d 100644 --- a/migrations/111101_balanceOfPayments-indexes.js +++ b/migrations/111101_balanceOfPayments-indexes.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -24,20 +24,21 @@ Contributors * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('balanceOfPayments', (t) => { t.unique('name') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('balanceOfPayments', (t) => { t.dropUnique('name') }) diff --git a/migrations/111200_partyIdentifierType.js b/migrations/111200_partyIdentifierType.js index 7c85f447f..ae3a479b5 100644 --- a/migrations/111200_partyIdentifierType.js +++ b/migrations/111200_partyIdentifierType.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -24,14 +24,15 @@ Contributors * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = (knex, Promise) => { +exports.up = (knex) => { return knex.schema.hasTable('partyIdentifierType').then((exists) => { if (!exists) { return knex.schema.createTable('partyIdentifierType', (t) => { @@ -43,6 +44,6 @@ exports.up = (knex, Promise) => { }) } -exports.down = (knex, Promise) => { +exports.down = (knex) => { return knex.schema.dropTableIfExists('partyIdentifierType') } diff --git a/migrations/111201_partyIdentifierType-indexes.js b/migrations/111201_partyIdentifierType-indexes.js index cf39f3075..36e72ae16 100644 --- a/migrations/111201_partyIdentifierType-indexes.js +++ b/migrations/111201_partyIdentifierType-indexes.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -24,20 +24,21 @@ Contributors * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('partyIdentifierType', (t) => { t.unique('name') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('partyIdentifierType', (t) => { t.dropUnique('name') }) diff --git a/migrations/111300_partyType.js b/migrations/111300_partyType.js index 43372d7d9..59986b35e 100644 --- a/migrations/111300_partyType.js +++ b/migrations/111300_partyType.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -24,14 +24,15 @@ Contributors * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = (knex, Promise) => { +exports.up = (knex) => { return knex.schema.hasTable('partyType').then((exists) => { if (!exists) { return knex.schema.createTable('partyType', (t) => { @@ -43,6 +44,6 @@ exports.up = (knex, Promise) => { }) } -exports.down = (knex, Promise) => { +exports.down = (knex) => { return knex.schema.dropTableIfExists('partyType') } diff --git a/migrations/111301_partyType-indexes.js b/migrations/111301_partyType-indexes.js index c6a0fd44c..27e6484f3 100644 --- a/migrations/111301_partyType-indexes.js +++ b/migrations/111301_partyType-indexes.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -24,20 +24,21 @@ Contributors * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('partyType', (t) => { t.unique('name') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('partyType', (t) => { t.dropUnique('name') }) diff --git a/migrations/111400_quoteDuplicateCheck.js b/migrations/111400_quoteDuplicateCheck.js index 71cd3fac1..c60cb28dd 100644 --- a/migrations/111400_quoteDuplicateCheck.js +++ b/migrations/111400_quoteDuplicateCheck.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -24,14 +24,15 @@ Contributors * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = (knex, Promise) => { +exports.up = (knex) => { return knex.schema.hasTable('quoteDuplicateCheck').then((exists) => { if (!exists) { return knex.schema.createTable('quoteDuplicateCheck', (t) => { @@ -43,6 +44,6 @@ exports.up = (knex, Promise) => { }) } -exports.down = (knex, Promise) => { +exports.down = (knex) => { return knex.schema.dropTableIfExists('quoteDuplicateCheck') } diff --git a/migrations/111500_transactionInitiator.js b/migrations/111500_transactionInitiator.js index 403b6df1b..c8330b5db 100644 --- a/migrations/111500_transactionInitiator.js +++ b/migrations/111500_transactionInitiator.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -24,14 +24,15 @@ Contributors * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = (knex, Promise) => { +exports.up = (knex) => { return knex.schema.hasTable('transactionInitiator').then((exists) => { if (!exists) { return knex.schema.createTable('transactionInitiator', (t) => { @@ -44,6 +45,6 @@ exports.up = (knex, Promise) => { }) } -exports.down = (knex, Promise) => { +exports.down = (knex) => { return knex.schema.dropTableIfExists('transactionInitiator') } diff --git a/migrations/111501_transactionInitiator-indexes.js b/migrations/111501_transactionInitiator-indexes.js index b420a4065..34bf7e64e 100644 --- a/migrations/111501_transactionInitiator-indexes.js +++ b/migrations/111501_transactionInitiator-indexes.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -24,20 +24,21 @@ Contributors * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('transactionInitiator', (t) => { t.unique('name') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('transactionInitiator', (t) => { t.dropUnique('name') }) diff --git a/migrations/111600_transactionInitiatorType.js b/migrations/111600_transactionInitiatorType.js index 6b5925f40..8c2b1465d 100644 --- a/migrations/111600_transactionInitiatorType.js +++ b/migrations/111600_transactionInitiatorType.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -24,14 +24,15 @@ Contributors * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = (knex, Promise) => { +exports.up = (knex) => { return knex.schema.hasTable('transactionInitiatorType').then((exists) => { if (!exists) { return knex.schema.createTable('transactionInitiatorType', (t) => { @@ -44,6 +45,6 @@ exports.up = (knex, Promise) => { }) } -exports.down = (knex, Promise) => { +exports.down = (knex) => { return knex.schema.dropTableIfExists('transactionInitiatorType') } diff --git a/migrations/111601_transactionInitiatorType-indexes.js b/migrations/111601_transactionInitiatorType-indexes.js index b4c086c15..02047801f 100644 --- a/migrations/111601_transactionInitiatorType-indexes.js +++ b/migrations/111601_transactionInitiatorType-indexes.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -24,21 +24,22 @@ Contributors * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('transactionInitiatorType', (t) => { t.unique('name') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('transactionInitiatorType', (t) => { t.dropUnique('name') }) -} \ No newline at end of file +} diff --git a/migrations/111700_settlementDelay.js b/migrations/111700_settlementDelay.js new file mode 100644 index 000000000..7244b62d6 --- /dev/null +++ b/migrations/111700_settlementDelay.js @@ -0,0 +1,50 @@ +/***** + License + -------------- + Copyright © 2017 Bill & Melinda Gates Foundation + The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 + Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + + Initial contribution + -------------------- + The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. + * Project: Mowali + +Contributors + -------------- + This is the official list of the Mojaloop project contributors for this file. + Names of the original copyright holders (individuals or organizations) + should be listed with a '*' in the first column. People who have + contributed from an organization can be listed under the organization + that actually holds the copyright for their contributions (see the + Gates Foundation organization for an example). Those individuals should have + their names indented and be marked with a '-'. Email address can be added + optionally within square brackets . + * Gates Foundation + - Name Surname + + * ModusBox + - Georgi Georgiev + -------------- + ******/ + +'use strict' + +exports.up = (knex, Promise) => { + return knex.schema.hasTable('settlementDelay').then((exists) => { + if (!exists) { + return knex.schema.createTable('settlementDelay', (t) => { + t.increments('settlementDelayId').primary().notNullable() + t.string('name', 50).notNullable() + t.string('description', 512).defaultTo(null).nullable() + t.boolean('isActive').defaultTo(true).notNullable() + t.dateTime('createdDate').defaultTo(knex.fn.now()).notNullable().comment('System dateTime stamp pertaining to the inserted record') + }) + } + }) +} + +exports.down = (knex, Promise) => { + return knex.schema.dropTableIfExists('settlementDelay') +} diff --git a/migrations/111701_settlementDelay-indexes.js b/migrations/111701_settlementDelay-indexes.js new file mode 100644 index 000000000..9a80551e4 --- /dev/null +++ b/migrations/111701_settlementDelay-indexes.js @@ -0,0 +1,44 @@ +/***** + License + -------------- + Copyright © 2017 Bill & Melinda Gates Foundation + The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 + Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + + Initial contribution + -------------------- + The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. + * Project: Mowali + +Contributors + -------------- + This is the official list of the Mojaloop project contributors for this file. + Names of the original copyright holders (individuals or organizations) + should be listed with a '*' in the first column. People who have + contributed from an organization can be listed under the organization + that actually holds the copyright for their contributions (see the + Gates Foundation organization for an example). Those individuals should have + their names indented and be marked with a '-'. Email address can be added + optionally within square brackets . + * Gates Foundation + - Name Surname + + * ModusBox + - Georgi Georgiev + -------------- + ******/ + +'use strict' + +exports.up = function (knex, Promise) { + return knex.schema.table('settlementDelay', (t) => { + t.unique('name') + }) +} + +exports.down = function (knex, Promise) { + return knex.schema.table('settlementDelay', (t) => { + t.dropUnique('name') + }) +} \ No newline at end of file diff --git a/migrations/111800_settlementInterchange.js b/migrations/111800_settlementInterchange.js new file mode 100644 index 000000000..e969c1a37 --- /dev/null +++ b/migrations/111800_settlementInterchange.js @@ -0,0 +1,50 @@ +/***** + License + -------------- + Copyright © 2017 Bill & Melinda Gates Foundation + The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 + Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + + Initial contribution + -------------------- + The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. + * Project: Mowali + +Contributors + -------------- + This is the official list of the Mojaloop project contributors for this file. + Names of the original copyright holders (individuals or organizations) + should be listed with a '*' in the first column. People who have + contributed from an organization can be listed under the organization + that actually holds the copyright for their contributions (see the + Gates Foundation organization for an example). Those individuals should have + their names indented and be marked with a '-'. Email address can be added + optionally within square brackets . + * Gates Foundation + - Name Surname + + * ModusBox + - Georgi Georgiev + -------------- + ******/ + +'use strict' + +exports.up = (knex, Promise) => { + return knex.schema.hasTable('settlementInterchange').then((exists) => { + if (!exists) { + return knex.schema.createTable('settlementInterchange', (t) => { + t.increments('settlementInterchangeId').primary().notNullable() + t.string('name', 50).notNullable() + t.string('description', 512).defaultTo(null).nullable() + t.boolean('isActive').defaultTo(true).notNullable() + t.dateTime('createdDate').defaultTo(knex.fn.now()).notNullable().comment('System dateTime stamp pertaining to the inserted record') + }) + } + }) +} + +exports.down = (knex, Promise) => { + return knex.schema.dropTableIfExists('settlementInterchange') +} diff --git a/migrations/111801_settlementInterchange-indexes.js b/migrations/111801_settlementInterchange-indexes.js new file mode 100644 index 000000000..7bc0b3cee --- /dev/null +++ b/migrations/111801_settlementInterchange-indexes.js @@ -0,0 +1,45 @@ +/***** + License + -------------- + Copyright © 2017 Bill & Melinda Gates Foundation + The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 + Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + + Initial contribution + -------------------- + The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. + * Project: Mowali + +Contributors + -------------- + This is the official list of the Mojaloop project contributors for this file. + Names of the original copyright holders (individuals or organizations) + should be listed with a '*' in the first column. People who have + contributed from an organization can be listed under the organization + that actually holds the copyright for their contributions (see the + Gates Foundation organization for an example). Those individuals should have + their names indented and be marked with a '-'. Email address can be added + optionally within square brackets . + * Gates Foundation + - Name Surname + + * ModusBox + - Georgi Georgiev + -------------- + ******/ + +// Notes: these changes are required for the quoting-service and are not used by central-ledger +'use strict' + +exports.up = function (knex, Promise) { + return knex.schema.table('settlementInterchange', (t) => { + t.unique('name') + }) +} + +exports.down = function (knex, Promise) { + return knex.schema.table('settlementInterchange', (t) => { + t.dropUnique('name') + }) +} \ No newline at end of file diff --git a/migrations/111900_settlementGranularity.js b/migrations/111900_settlementGranularity.js new file mode 100644 index 000000000..00593108b --- /dev/null +++ b/migrations/111900_settlementGranularity.js @@ -0,0 +1,50 @@ +/***** + License + -------------- + Copyright © 2017 Bill & Melinda Gates Foundation + The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 + Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + + Initial contribution + -------------------- + The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. + * Project: Mowali + +Contributors + -------------- + This is the official list of the Mojaloop project contributors for this file. + Names of the original copyright holders (individuals or organizations) + should be listed with a '*' in the first column. People who have + contributed from an organization can be listed under the organization + that actually holds the copyright for their contributions (see the + Gates Foundation organization for an example). Those individuals should have + their names indented and be marked with a '-'. Email address can be added + optionally within square brackets . + * Gates Foundation + - Name Surname + + * ModusBox + - Georgi Georgiev + -------------- + ******/ + +'use strict' + +exports.up = (knex, Promise) => { + return knex.schema.hasTable('settlementGranularity').then((exists) => { + if (!exists) { + return knex.schema.createTable('settlementGranularity', (t) => { + t.increments('settlementGranularityId').primary().notNullable() + t.string('name', 50).notNullable() + t.string('description', 512).defaultTo(null).nullable() + t.boolean('isActive').defaultTo(true).notNullable() + t.dateTime('createdDate').defaultTo(knex.fn.now()).notNullable().comment('System dateTime stamp pertaining to the inserted record') + }) + } + }) +} + +exports.down = (knex, Promise) => { + return knex.schema.dropTableIfExists('settlementGranularity') +} diff --git a/migrations/111901_settlementGranularity-indexes.js b/migrations/111901_settlementGranularity-indexes.js new file mode 100644 index 000000000..659525022 --- /dev/null +++ b/migrations/111901_settlementGranularity-indexes.js @@ -0,0 +1,45 @@ +/***** + License + -------------- + Copyright © 2017 Bill & Melinda Gates Foundation + The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 + Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + + Initial contribution + -------------------- + The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. + * Project: Mowali + +Contributors + -------------- + This is the official list of the Mojaloop project contributors for this file. + Names of the original copyright holders (individuals or organizations) + should be listed with a '*' in the first column. People who have + contributed from an organization can be listed under the organization + that actually holds the copyright for their contributions (see the + Gates Foundation organization for an example). Those individuals should have + their names indented and be marked with a '-'. Email address can be added + optionally within square brackets . + * Gates Foundation + - Name Surname + + * ModusBox + - Georgi Georgiev + -------------- + ******/ + +// Notes: these changes are required for the quoting-service and are not used by central-ledger +'use strict' + +exports.up = function (knex, Promise) { + return knex.schema.table('settlementGranularity', (t) => { + t.unique('name') + }) +} + +exports.down = function (knex, Promise) { + return knex.schema.table('settlementGranularity', (t) => { + t.dropUnique('name') + }) +} \ No newline at end of file diff --git a/migrations/112000_bulkTransferState.js b/migrations/112000_bulkTransferState.js index f67f7d00c..77db634c9 100644 --- a/migrations/112000_bulkTransferState.js +++ b/migrations/112000_bulkTransferState.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('bulkTransferState').then(function(exists) { if (!exists) { return knex.schema.createTable('bulkTransferState', (t) => { @@ -38,6 +39,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('bulkTransferState') } diff --git a/migrations/112100_bulkProcessingState.js b/migrations/112100_bulkProcessingState.js index a7d693a35..60cba67a6 100644 --- a/migrations/112100_bulkProcessingState.js +++ b/migrations/112100_bulkProcessingState.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('bulkProcessingState').then(function(exists) { if (!exists) { return knex.schema.createTable('bulkProcessingState', (t) => { @@ -38,6 +39,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('bulkProcessingState') } diff --git a/migrations/112101_bulkProcessingState-indexes.js b/migrations/112101_bulkProcessingState-indexes.js index 536ba7269..172d2844c 100644 --- a/migrations/112101_bulkProcessingState-indexes.js +++ b/migrations/112101_bulkProcessingState-indexes.js @@ -18,19 +18,20 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('bulkProcessingState', (t) => { t.unique('name') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('bulkProcessingState', (t) => { t.dropUnique('name') }) diff --git a/migrations/200100_participant.js b/migrations/200100_participant.js index 6b9d27c18..24466d655 100644 --- a/migrations/200100_participant.js +++ b/migrations/200100_participant.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('participant').then(function(exists) { if (!exists) { return knex.schema.createTable('participant', (t) => { @@ -39,6 +40,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('participant') } diff --git a/migrations/200101_participant-indexes.js b/migrations/200101_participant-indexes.js index 8ff74d90c..8e000d9b8 100644 --- a/migrations/200101_participant-indexes.js +++ b/migrations/200101_participant-indexes.js @@ -18,19 +18,20 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('participant', (t) => { t.unique('name') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('participant', (t) => { t.dropUnique('name') }) diff --git a/migrations/200200_participantContact.js b/migrations/200200_participantContact.js index b725bec9c..e8f0a4b70 100644 --- a/migrations/200200_participantContact.js +++ b/migrations/200200_participantContact.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('participantContact').then(function(exists) { if (!exists) { return knex.schema.createTable('participantContact', (t) => { @@ -43,6 +44,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('participantContact') } diff --git a/migrations/200201_participantContact-indexes.js b/migrations/200201_participantContact-indexes.js index b031c1918..5507f3e3b 100644 --- a/migrations/200201_participantContact-indexes.js +++ b/migrations/200201_participantContact-indexes.js @@ -18,20 +18,21 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('participantContact', (t) => { t.index('participantId') t.index('contactTypeId') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('participantContact', (t) => { t.dropIndex('participantId') t.dropIndex('contactTypeId') diff --git a/migrations/200300_participantEndpoint.js b/migrations/200300_participantEndpoint.js index d04b7386a..7340f9a16 100644 --- a/migrations/200300_participantEndpoint.js +++ b/migrations/200300_participantEndpoint.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('participantEndpoint').then(function(exists) { if (!exists) { return knex.schema.createTable('participantEndpoint', (t) => { @@ -42,6 +43,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('participantEndpoint') } diff --git a/migrations/200301_participantEndpoint-indexes.js b/migrations/200301_participantEndpoint-indexes.js index 8f516b7ee..948f3ebc7 100644 --- a/migrations/200301_participantEndpoint-indexes.js +++ b/migrations/200301_participantEndpoint-indexes.js @@ -18,20 +18,21 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('participantEndpoint', (t) => { t.index('participantId') t.index('endpointTypeId') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('participantEndpoint', (t) => { t.dropIndex('participantId') t.dropIndex('endpointTypeId') diff --git a/migrations/200400_participantParty.js b/migrations/200400_participantParty.js index 9bbc1fa95..a89039f6b 100644 --- a/migrations/200400_participantParty.js +++ b/migrations/200400_participantParty.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('participantParty').then(function(exists) { if (!exists) { return knex.schema.createTable('participantParty', (t) => { @@ -37,6 +38,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('participantParty') } diff --git a/migrations/200401_participantParty-indexes.js b/migrations/200401_participantParty-indexes.js index 96d652611..e6e2ed859 100644 --- a/migrations/200401_participantParty-indexes.js +++ b/migrations/200401_participantParty-indexes.js @@ -18,20 +18,21 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('participantParty', (t) => { t.index('participantId') t.unique(['participantId', 'partyId']) }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('participantParty', (t) => { t.dropIndex('participantId') t.dropUnique(['participantId', 'partyId']) diff --git a/migrations/200600_token.js b/migrations/200600_token.js index d18827637..ccc4ba08d 100644 --- a/migrations/200600_token.js +++ b/migrations/200600_token.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('token').then(function(exists) { if (!exists) { return knex.schema.createTable('token', (t) => { @@ -39,6 +40,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('token') } diff --git a/migrations/200601_token-indexes.js b/migrations/200601_token-indexes.js index 0c85fd508..6a5a7a449 100644 --- a/migrations/200601_token-indexes.js +++ b/migrations/200601_token-indexes.js @@ -18,20 +18,21 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('token', (t) => { t.index('participantId') t.unique('value') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('token', (t) => { t.dropIndex('participantId') t.dropUnique('value') diff --git a/migrations/300100_transferDuplicateCheck.js b/migrations/300100_transferDuplicateCheck.js index b1a2ca43b..139b90a7f 100644 --- a/migrations/300100_transferDuplicateCheck.js +++ b/migrations/300100_transferDuplicateCheck.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('transferDuplicateCheck').then(function(exists) { if (!exists) { return knex.schema.createTable('transferDuplicateCheck', (t) => { @@ -36,6 +37,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transferDuplicateCheck') } diff --git a/migrations/300150_bulkTransferDuplicateCheck.js b/migrations/300150_bulkTransferDuplicateCheck.js index c3de3d6a3..5cb648c22 100644 --- a/migrations/300150_bulkTransferDuplicateCheck.js +++ b/migrations/300150_bulkTransferDuplicateCheck.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('bulkTransferDuplicateCheck').then(function(exists) { if (!exists) { return knex.schema.createTable('bulkTransferDuplicateCheck', (t) => { @@ -36,6 +37,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('bulkTransferDuplicateCheck') } diff --git a/migrations/300200_transfer.js b/migrations/300200_transfer.js index 651f7c281..2dbf3bbe4 100644 --- a/migrations/300200_transfer.js +++ b/migrations/300200_transfer.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('transfer').then(function(exists) { if (!exists) { return knex.schema.createTable('transfer', (t) => { @@ -41,6 +42,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transfer') } diff --git a/migrations/300201_transfer-indexes.js b/migrations/300201_transfer-indexes.js index 68b39ceab..9a938c5a0 100644 --- a/migrations/300201_transfer-indexes.js +++ b/migrations/300201_transfer-indexes.js @@ -18,19 +18,20 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('transfer', (t) => { t.index('currencyId') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('transfer', (t) => { t.dropIndex('currencyId') }) diff --git a/migrations/300202_transfer-decimal184.js b/migrations/300202_transfer-decimal184.js index ee7c5ff22..283af64b5 100644 --- a/migrations/300202_transfer-decimal184.js +++ b/migrations/300202_transfer-decimal184.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('transfer').then(function(exists) { if (exists) { return knex.schema.alterTable('transfer', (t) => { @@ -34,6 +35,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transfer') } diff --git a/migrations/300250_bulkTransfer.js b/migrations/300250_bulkTransfer.js index 3f96b5648..8131fe017 100644 --- a/migrations/300250_bulkTransfer.js +++ b/migrations/300250_bulkTransfer.js @@ -19,13 +19,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('bulkTransfer').then(function(exists) { if (!exists) { return knex.schema.createTable('bulkTransfer', (t) => { @@ -43,6 +44,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('bulkTransfer') } diff --git a/migrations/300251_bulkTransfer-indexes.js b/migrations/300251_bulkTransfer-indexes.js index 1f00de686..c43d62729 100644 --- a/migrations/300251_bulkTransfer-indexes.js +++ b/migrations/300251_bulkTransfer-indexes.js @@ -18,20 +18,21 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('bulkTransfer', (t) => { t.index('payerParticipantId') t.index('payeeParticipantId') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('bulkTransfer', (t) => { t.dropIndex('payerParticipantId') t.dropIndex('payeeParticipantId') diff --git a/migrations/300275_bulkTransferAssociation.js b/migrations/300275_bulkTransferAssociation.js index 6479aeaf7..70807d5bd 100644 --- a/migrations/300275_bulkTransferAssociation.js +++ b/migrations/300275_bulkTransferAssociation.js @@ -19,13 +19,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('bulkTransferAssociation').then(function(exists) { if (!exists) { return knex.schema.createTable('bulkTransferAssociation', (t) => { @@ -44,6 +45,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('bulkTransferAssociation') } diff --git a/migrations/300276_bulkTransferAssociation-indexes.js b/migrations/300276_bulkTransferAssociation-indexes.js index 1aa861183..71d2b9be6 100644 --- a/migrations/300276_bulkTransferAssociation-indexes.js +++ b/migrations/300276_bulkTransferAssociation-indexes.js @@ -18,19 +18,20 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('bulkTransferAssociation', (t) => { t.unique(['transferId', 'bulkTransferId']) }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('bulkTransferAssociation', (t) => { t.dropUnique(['transferId', 'bulkTransferId']) }) diff --git a/migrations/300300_ilpPacket.js b/migrations/300300_ilpPacket.js index c15df5c5c..36d18a790 100644 --- a/migrations/300300_ilpPacket.js +++ b/migrations/300300_ilpPacket.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('ilpPacket').then(function(exists) { if (!exists) { return knex.schema.createTable('ilpPacket', (t) => { @@ -37,6 +38,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('ilpPacket') } diff --git a/migrations/300400_transferStateChange.js b/migrations/300400_transferStateChange.js index 7d60c98ff..58bebb820 100644 --- a/migrations/300400_transferStateChange.js +++ b/migrations/300400_transferStateChange.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('transferStateChange').then(function(exists) { if (!exists) { return knex.schema.createTable('transferStateChange', (t) => { @@ -40,6 +41,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transferStateChange') } diff --git a/migrations/300401_transferStateChange-indexes.js b/migrations/300401_transferStateChange-indexes.js index 801833e8e..1f9a077c9 100644 --- a/migrations/300401_transferStateChange-indexes.js +++ b/migrations/300401_transferStateChange-indexes.js @@ -18,20 +18,21 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('transferStateChange', (t) => { t.index('transferId') t.index('transferStateId') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('transferStateChange', (t) => { t.dropIndex('transferId') t.dropIndex('transferStateId') diff --git a/migrations/300450_bulkTransferStateChange.js b/migrations/300450_bulkTransferStateChange.js index fde7ea1b0..424711b8d 100644 --- a/migrations/300450_bulkTransferStateChange.js +++ b/migrations/300450_bulkTransferStateChange.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('bulkTransferStateChange').then(function(exists) { if (!exists) { return knex.schema.createTable('bulkTransferStateChange', (t) => { @@ -40,6 +41,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('bulkTransferStateChange') } diff --git a/migrations/300451_bulkTransferStateChange-indexes.js b/migrations/300451_bulkTransferStateChange-indexes.js index a5dcd08be..d6590d444 100644 --- a/migrations/300451_bulkTransferStateChange-indexes.js +++ b/migrations/300451_bulkTransferStateChange-indexes.js @@ -18,20 +18,21 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('bulkTransferStateChange', (t) => { t.index('bulkTransferId') t.index('bulkTransferStateId') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('bulkTransferStateChange', (t) => { t.dropIndex('bulkTransferId') t.dropIndex('bulkTransferStateId') diff --git a/migrations/300500_segment.js b/migrations/300500_segment.js index b4f1d1162..0d5a3ba81 100644 --- a/migrations/300500_segment.js +++ b/migrations/300500_segment.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('segment').then(function(exists) { if (!exists) { return knex.schema.createTable('segment', (t) => { @@ -39,6 +40,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('segment') } diff --git a/migrations/300501_segment-indexes.js b/migrations/300501_segment-indexes.js index 5fc5e01a9..73241efda 100644 --- a/migrations/300501_segment-indexes.js +++ b/migrations/300501_segment-indexes.js @@ -18,19 +18,20 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('segment', (t) => { t.index(['segmentType', 'enumeration', 'tableName'], 'segment_keys_index') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('segment', (t) => { t.dropIndex(['segmentType', 'enumeration', 'tableName'], 'segment_keys_index') }) diff --git a/migrations/310100_participantCurrency.js b/migrations/310100_participantCurrency.js index 8d507c247..ed557a95c 100644 --- a/migrations/310100_participantCurrency.js +++ b/migrations/310100_participantCurrency.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('participantCurrency').then(function(exists) { if (!exists) { return knex.schema.createTable('participantCurrency', (t) => { @@ -43,6 +44,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('participantCurrency') } diff --git a/migrations/310101_participantCurrency-indexes.js b/migrations/310101_participantCurrency-indexes.js index 310000835..1276b2a9c 100644 --- a/migrations/310101_participantCurrency-indexes.js +++ b/migrations/310101_participantCurrency-indexes.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('participantCurrency', (t) => { t.index('participantId') t.index('currencyId') @@ -32,7 +33,7 @@ exports.up = function (knex, Promise) { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('participantCurrency', (t) => { t.dropIndex('participantId') t.dropIndex('currencyId') diff --git a/migrations/310200_transferParticipant.js b/migrations/310200_transferParticipant.js index 3f266ddeb..ea1641112 100644 --- a/migrations/310200_transferParticipant.js +++ b/migrations/310200_transferParticipant.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('transferParticipant').then(function(exists) { if (!exists) { return knex.schema.createTable('transferParticipant', (t) => { @@ -44,6 +45,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transferParticipant') } diff --git a/migrations/310201_transferParticipant-indexes.js b/migrations/310201_transferParticipant-indexes.js index bfcc0e9f8..a7d4ea532 100644 --- a/migrations/310201_transferParticipant-indexes.js +++ b/migrations/310201_transferParticipant-indexes.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('transferParticipant', (t) => { t.index('transferId') t.index('participantCurrencyId') @@ -33,7 +34,7 @@ exports.up = function (knex, Promise) { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('transferParticipant', (t) => { t.dropIndex('transferId') t.dropIndex('participantCurrencyId') diff --git a/migrations/310202_transferParticipant-decimal184.js b/migrations/310202_transferParticipant-decimal184.js index 76cf1eacc..eb7c30144 100644 --- a/migrations/310202_transferParticipant-decimal184.js +++ b/migrations/310202_transferParticipant-decimal184.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('transferParticipant').then(function(exists) { if (exists) { return knex.schema.alterTable('transferParticipant', (t) => { @@ -34,6 +35,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transferParticipant') } diff --git a/migrations/310300_participantPosition.js b/migrations/310300_participantPosition.js index d43fa6b31..5521fce1b 100644 --- a/migrations/310300_participantPosition.js +++ b/migrations/310300_participantPosition.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('participantPosition').then(function(exists) { if (!exists) { return knex.schema.createTable('participantPosition', (t) => { @@ -39,6 +40,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('participantPosition') } diff --git a/migrations/310301_participantPosition-indexes.js b/migrations/310301_participantPosition-indexes.js index 9ef87d344..4c69c22f0 100644 --- a/migrations/310301_participantPosition-indexes.js +++ b/migrations/310301_participantPosition-indexes.js @@ -18,19 +18,20 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('participantPosition', (t) => { t.index('participantCurrencyId') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('participantPosition', (t) => { t.dropIndex('participantCurrencyId') }) diff --git a/migrations/310302_participantPosition-decimal184.js b/migrations/310302_participantPosition-decimal184.js index 6a920939d..3d2d14a5d 100644 --- a/migrations/310302_participantPosition-decimal184.js +++ b/migrations/310302_participantPosition-decimal184.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('participantPosition').then(function(exists) { if (exists) { return knex.schema.alterTable('participantPosition', (t) => { @@ -35,6 +36,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('participantPosition') } diff --git a/migrations/310400_participantPositionChange.js b/migrations/310400_participantPositionChange.js index 53be0b11e..3e6f31c6d 100644 --- a/migrations/310400_participantPositionChange.js +++ b/migrations/310400_participantPositionChange.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('participantPositionChange').then(function(exists) { if (!exists) { return knex.schema.createTable('participantPositionChange', (t) => { @@ -41,6 +42,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('participantPositionChange') } diff --git a/migrations/310401_participantPositionChange-indexes.js b/migrations/310401_participantPositionChange-indexes.js index 0980aa423..8acd89ecd 100644 --- a/migrations/310401_participantPositionChange-indexes.js +++ b/migrations/310401_participantPositionChange-indexes.js @@ -18,20 +18,21 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('participantPositionChange', (t) => { t.index('participantPositionId') t.index('transferStateChangeId') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('participantPositionChange', (t) => { t.dropIndex('participantPositionId') t.dropIndex('transferStateChangeId') diff --git a/migrations/310402_participantPositionChange-decimal184.js b/migrations/310402_participantPositionChange-decimal184.js index 938a02b1d..1977bb15b 100644 --- a/migrations/310402_participantPositionChange-decimal184.js +++ b/migrations/310402_participantPositionChange-decimal184.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('participantPositionChange').then(function(exists) { if (exists) { return knex.schema.alterTable('participantPositionChange', (t) => { @@ -35,6 +36,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('participantPositionChange') } diff --git a/migrations/310500_participantLimit.js b/migrations/310500_participantLimit.js index 9a39f82b5..cc20a208b 100644 --- a/migrations/310500_participantLimit.js +++ b/migrations/310500_participantLimit.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('participantLimit').then(function(exists) { if (!exists) { return knex.schema.createTable('participantLimit', (t) => { @@ -45,6 +46,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('participantLimit') } diff --git a/migrations/310501_participantLimit-indexes.js b/migrations/310501_participantLimit-indexes.js index 193d4a192..6bd67f94e 100644 --- a/migrations/310501_participantLimit-indexes.js +++ b/migrations/310501_participantLimit-indexes.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('participantLimit', (t) => { t.index('participantCurrencyId') t.index('participantLimitTypeId') @@ -32,7 +33,7 @@ exports.up = function (knex, Promise) { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('participantLimit', (t) => { t.dropIndex('participantCurrencyId') t.dropIndex('participantLimitTypeId') diff --git a/migrations/310502_participantLimit-decimal184.js b/migrations/310502_participantLimit-decimal184.js index a24ec4de1..dc2853489 100644 --- a/migrations/310502_participantLimit-decimal184.js +++ b/migrations/310502_participantLimit-decimal184.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('participantLimit').then(function(exists) { if (exists) { return knex.schema.alterTable('participantLimit', (t) => { @@ -34,6 +35,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('participantLimit') } diff --git a/migrations/400100_settlementWindow.js b/migrations/400100_settlementWindow.js index 4c310ac28..547b40467 100644 --- a/migrations/400100_settlementWindow.js +++ b/migrations/400100_settlementWindow.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('settlementWindow').then(function(exists) { if (!exists) { return knex.schema.createTable('settlementWindow', (t) => { @@ -37,6 +38,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('settlementWindow') } diff --git a/migrations/400200_settlement.js b/migrations/400200_settlement.js index 4e258c20c..09ac3bb19 100644 --- a/migrations/400200_settlement.js +++ b/migrations/400200_settlement.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('settlement').then(function(exists) { if (!exists) { return knex.schema.createTable('settlement', (t) => { @@ -37,6 +38,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('settlement') } diff --git a/migrations/400300_settlementSettlementWindow.js b/migrations/400300_settlementSettlementWindow.js index bcd9056ff..30664c865 100644 --- a/migrations/400300_settlementSettlementWindow.js +++ b/migrations/400300_settlementSettlementWindow.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('settlementSettlementWindow').then(function(exists) { if (!exists) { return knex.schema.createTable('settlementSettlementWindow', (t) => { @@ -39,6 +40,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('settlementSettlementWindow') } diff --git a/migrations/400301_settlementSettlementWindow-indexes.js b/migrations/400301_settlementSettlementWindow-indexes.js index 1806d31c5..cabee0d0e 100644 --- a/migrations/400301_settlementSettlementWindow-indexes.js +++ b/migrations/400301_settlementSettlementWindow-indexes.js @@ -19,13 +19,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('settlementSettlementWindow', (t) => { t.index('settlementId') t.index('settlementWindowId') @@ -33,7 +34,7 @@ exports.up = function (knex, Promise) { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('settlementSettlementWindow', (t) => { t.dropIndex('settlementId') t.dropIndex('settlementWindowId') diff --git a/migrations/400400_settlementWindowStateChange.js b/migrations/400400_settlementWindowStateChange.js index 19213a84f..42463454f 100644 --- a/migrations/400400_settlementWindowStateChange.js +++ b/migrations/400400_settlementWindowStateChange.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('settlementWindowStateChange').then(function(exists) { if (!exists) { return knex.schema.createTable('settlementWindowStateChange', (t) => { @@ -40,6 +41,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('settlementWindowStateChange') } diff --git a/migrations/400401_settlmentWindowStateChange-indexes.js b/migrations/400401_settlementWindowStateChange-indexes.js similarity index 92% rename from migrations/400401_settlmentWindowStateChange-indexes.js rename to migrations/400401_settlementWindowStateChange-indexes.js index 2309094de..283840d52 100644 --- a/migrations/400401_settlmentWindowStateChange-indexes.js +++ b/migrations/400401_settlementWindowStateChange-indexes.js @@ -18,20 +18,21 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('settlementWindowStateChange', (t) => { t.index('settlementWindowId') t.index('settlementWindowStateId') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('settlementWindowStateChange', (t) => { t.dropIndex('settlementWindowId') t.dropIndex('settlementWindowStateId') diff --git a/migrations/400500_settlementTransferParticipant.js b/migrations/400500_settlementTransferParticipant.js index 28821b224..dd0fe6194 100644 --- a/migrations/400500_settlementTransferParticipant.js +++ b/migrations/400500_settlementTransferParticipant.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('settlementTransferParticipant').then(function(exists) { if (!exists) { return knex.schema.createTable('settlementTransferParticipant', (t) => { @@ -46,6 +47,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('settlementTransferParticipant') } diff --git a/migrations/400501_settlementTransferParticipant-indexes.js b/migrations/400501_settlementTransferParticipant-indexes.js index 88ecdf367..3e72e723a 100644 --- a/migrations/400501_settlementTransferParticipant-indexes.js +++ b/migrations/400501_settlementTransferParticipant-indexes.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('settlementTransferParticipant', (t) => { t.index('settlementId') t.index('settlementWindowId') @@ -34,7 +35,7 @@ exports.up = function (knex, Promise) { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('settlementTransferParticipant', (t) => { t.dropIndex('settlementId') t.dropIndex('settlementWindowId') diff --git a/migrations/400502_settlementTransferParticipant-decimal184.js b/migrations/400502_settlementTransferParticipant-decimal184.js index dae32342b..ba475d451 100644 --- a/migrations/400502_settlementTransferParticipant-decimal184.js +++ b/migrations/400502_settlementTransferParticipant-decimal184.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('settlementTransferParticipant').then(function(exists) { if (exists) { return knex.schema.alterTable('settlementTransferParticipant', (t) => { @@ -34,6 +35,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('settlementTransferParticipant') } diff --git a/migrations/400600_settlementParticipantCurrency.js b/migrations/400600_settlementParticipantCurrency.js index 20cc6bc97..b8b32c4ae 100644 --- a/migrations/400600_settlementParticipantCurrency.js +++ b/migrations/400600_settlementParticipantCurrency.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('settlementParticipantCurrency').then(function(exists) { if (!exists) { return knex.schema.createTable('settlementParticipantCurrency', (t) => { @@ -42,6 +43,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('settlementParticipantCurrency') } diff --git a/migrations/400601_settlementParticipantCurrency-indexes.js b/migrations/400601_settlementParticipantCurrency-indexes.js index b8cedf0d1..0180ca412 100644 --- a/migrations/400601_settlementParticipantCurrency-indexes.js +++ b/migrations/400601_settlementParticipantCurrency-indexes.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('settlementParticipantCurrency', (t) => { t.index('settlementId') t.index('participantCurrencyId') @@ -32,7 +33,7 @@ exports.up = function (knex, Promise) { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('settlementParticipantCurrency', (t) => { t.dropIndex('settlementId') t.dropIndex('participantCurrencyId') diff --git a/migrations/400602_settlementParticipantCurrency-decimal184.js b/migrations/400602_settlementParticipantCurrency-decimal184.js index cf480e1af..3bd7690c7 100644 --- a/migrations/400602_settlementParticipantCurrency-decimal184.js +++ b/migrations/400602_settlementParticipantCurrency-decimal184.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('settlementParticipantCurrency').then(function(exists) { if (exists) { return knex.schema.alterTable('settlementParticipantCurrency', (t) => { @@ -34,6 +35,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('settlementParticipantCurrency') } diff --git a/migrations/400700_settlementParticipantCurrencyStateChange.js b/migrations/400700_settlementParticipantCurrencyStateChange.js index 82d7efb6b..0fb7d7ff9 100644 --- a/migrations/400700_settlementParticipantCurrencyStateChange.js +++ b/migrations/400700_settlementParticipantCurrencyStateChange.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('settlementParticipantCurrencyStateChange').then(function(exists) { if (!exists) { return knex.schema.createTable('settlementParticipantCurrencyStateChange', (t) => { @@ -41,6 +42,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('settlementParticipantCurrencyStateChange') } diff --git a/migrations/400701_settlementParticipantCurrencyStateChange-indexes.js b/migrations/400701_settlementParticipantCurrencyStateChange-indexes.js index b151c3024..075e37d93 100644 --- a/migrations/400701_settlementParticipantCurrencyStateChange-indexes.js +++ b/migrations/400701_settlementParticipantCurrencyStateChange-indexes.js @@ -18,20 +18,21 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('settlementParticipantCurrencyStateChange', (t) => { t.index('settlementParticipantCurrencyId', 'spcsc_settlementparticipantcurrencyid_index') t.index('settlementStateId', 'spcsc_settlementstateid_index') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('settlementParticipantCurrencyStateChange', (t) => { t.dropIndex('settlementParticipantCurrencyId', 'spcsc_settlementparticipantcurrencyid_index') t.dropIndex('settlementStateId', 'spcsc_settlementstateid_index') diff --git a/migrations/400800_settlementStateChange.js b/migrations/400800_settlementStateChange.js index 03623d302..92d4da88e 100644 --- a/migrations/400800_settlementStateChange.js +++ b/migrations/400800_settlementStateChange.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('settlementStateChange').then(function(exists) { if (!exists) { return knex.schema.createTable('settlementStateChange', (t) => { @@ -40,6 +41,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('settlementStateChange') } diff --git a/migrations/400801_settlementStateChange-indexes.js b/migrations/400801_settlementStateChange-indexes.js index 643516c2c..502f2181c 100644 --- a/migrations/400801_settlementStateChange-indexes.js +++ b/migrations/400801_settlementStateChange-indexes.js @@ -18,20 +18,21 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('settlementStateChange', (t) => { t.index('settlementId') t.index('settlementStateId') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('settlementStateChange', (t) => { t.dropIndex('settlementId') t.dropIndex('settlementStateId') diff --git a/migrations/400900_settlementWindowContent.js b/migrations/400900_settlementWindowContent.js new file mode 100644 index 000000000..d55dc1ec0 --- /dev/null +++ b/migrations/400900_settlementWindowContent.js @@ -0,0 +1,50 @@ +/***** + License + -------------- + Copyright © 2017 Bill & Melinda Gates Foundation + The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 + Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + Contributors + -------------- + This is the official list of the Mojaloop project contributors for this file. + Names of the original copyright holders (individuals or organizations) + should be listed with a '*' in the first column. People who have + contributed from an organization can be listed under the organization + that actually holds the copyright for their contributions (see the + Gates Foundation organization for an example). Those individuals should have + their names indented and be marked with a '-'. Email address can be added + optionally within square brackets . + * Gates Foundation + - Name Surname + + * ModusBox + - Georgi Georgiev + -------------- + ******/ + +'use strict' + +exports.up = async (knex, Promise) => { + return await knex.schema.hasTable('settlementWindowContent').then(function(exists) { + if (!exists) { + return knex.schema.createTable('settlementWindowContent', (t) => { + t.bigIncrements('settlementWindowContentId').primary().notNullable() + t.bigInteger('settlementWindowId').unsigned().notNullable() + t.foreign('settlementWindowId').references('settlementWindowId').inTable('settlementWindow') + t.integer('ledgerAccountTypeId').unsigned().notNullable() + t.foreign('ledgerAccountTypeId').references('ledgerAccountTypeId').inTable('ledgerAccountType') + t.string('currencyId', 3).notNullable() + t.foreign('currencyId').references('currencyId').inTable('currency') + t.dateTime('createdDate').defaultTo(knex.fn.now()).notNullable() + t.bigInteger('currentStateChangeId').unsigned().nullable() + t.bigInteger('settlementId').unsigned() + t.foreign('settlementId').references('settlementId').inTable('settlement') + }) + } + }) +} + +exports.down = function (knex, Promise) { + return knex.schema.dropTableIfExists('settlementWindowContent') +} diff --git a/migrations/401000_settlementWindowContentStateChange.js b/migrations/401000_settlementWindowContentStateChange.js new file mode 100644 index 000000000..99af8e3c3 --- /dev/null +++ b/migrations/401000_settlementWindowContentStateChange.js @@ -0,0 +1,46 @@ +/***** + License + -------------- + Copyright © 2017 Bill & Melinda Gates Foundation + The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 + Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + Contributors + -------------- + This is the official list of the Mojaloop project contributors for this file. + Names of the original copyright holders (individuals or organizations) + should be listed with a '*' in the first column. People who have + contributed from an organization can be listed under the organization + that actually holds the copyright for their contributions (see the + Gates Foundation organization for an example). Those individuals should have + their names indented and be marked with a '-'. Email address can be added + optionally within square brackets . + * Gates Foundation + - Name Surname + + * ModusBox + - Georgi Georgiev + -------------- + ******/ + +'use strict' + +exports.up = async (knex, Promise) => { + return await knex.schema.hasTable('settlementWindowContentStateChange').then(function(exists) { + if (!exists) { + return knex.schema.createTable('settlementWindowContentStateChange', (t) => { + t.bigIncrements('settlementWindowContentStateChangeId').primary().notNullable() + t.bigInteger('settlementWindowContentId').unsigned().notNullable() + t.foreign('settlementWindowContentId', 'swc_settlementwindowcontentid_foreign').references('settlementWindowContentId').inTable('settlementWindowContent') + t.string('settlementWindowStateId', 50).notNullable() + t.foreign('settlementWindowStateId', 'sws1_settlementwindowstateid_foreign').references('settlementWindowStateId').inTable('settlementWindowState') + t.string('reason', 512).defaultTo(null).nullable() + t.dateTime('createdDate').defaultTo(knex.fn.now()).notNullable() + }) + } + }) +} + +exports.down = function (knex, Promise) { + return knex.schema.dropTableIfExists('settlementWindowContentStateChange') +} diff --git a/migrations/401001_settlementWindowContentStateChange-indexes.js b/migrations/401001_settlementWindowContentStateChange-indexes.js new file mode 100644 index 000000000..fd46206d8 --- /dev/null +++ b/migrations/401001_settlementWindowContentStateChange-indexes.js @@ -0,0 +1,46 @@ +/***** + License + -------------- + Copyright © 2017 Bill & Melinda Gates Foundation + The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 + Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + Contributors + -------------- + This is the official list of the Mojaloop project contributors for this file. + Names of the original copyright holders (individuals or organizations) + should be listed with a '*' in the first column. People who have + contributed from an organization can be listed under the organization + that actually holds the copyright for their contributions (see the + Gates Foundation organization for an example). Those individuals should have + their names indented and be marked with a '-'. Email address can be added + optionally within square brackets . + * Gates Foundation + - Name Surname + + * ModusBox + - Georgi Georgiev + -------------- + ******/ + +'use strict' + +exports.up = function (knex, Promise) { + return knex.schema.table('settlementWindowContentStateChange', (t) => { + t.index('settlementWindowContentId', 'swcsc_settlementwindowcontentid_index') + t.index('settlementWindowStateId', 'swcsc_settlementwindowstateid_index') + }) + .table('settlementWindowContent', (t) => { + t.foreign('currentStateChangeId').references('settlementWindowContentStateChange.settlementWindowContentStateChangeId') + }) +} + +exports.down = function (knex, Promise) { + return knex.schema.table('settlementWindowContentStateChange', (t) => { + t.dropIndex('settlementWindowContentId', 'swcsc_settlementwindowcontentid_index') + t.dropIndex('settlementWindowStateId', 'swcsc_settlementwindowstateid_index') + }) + .table('settlementWindowContent', (t) => { + t.dropForeign('currentStateChangeId') + }) +} diff --git a/migrations/401002_settlementWindowContent-indexes.js b/migrations/401002_settlementWindowContent-indexes.js new file mode 100644 index 000000000..122db29fa --- /dev/null +++ b/migrations/401002_settlementWindowContent-indexes.js @@ -0,0 +1,46 @@ +/***** + License + -------------- + Copyright © 2017 Bill & Melinda Gates Foundation + The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 + Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + Contributors + -------------- + This is the official list of the Mojaloop project contributors for this file. + Names of the original copyright holders (individuals or organizations) + should be listed with a '*' in the first column. People who have + contributed from an organization can be listed under the organization + that actually holds the copyright for their contributions (see the + Gates Foundation organization for an example). Those individuals should have + their names indented and be marked with a '-'. Email address can be added + optionally within square brackets . + * Gates Foundation + - Name Surname + + * ModusBox + - Georgi Georgiev + -------------- + ******/ + +'use strict' + +exports.up = function (knex, Promise) { + return knex.schema.table('settlementWindowContent', (t) => { + t.index('settlementWindowId') + t.index('ledgerAccountTypeId') + t.index('currencyId') + t.index('currentStateChangeId') + t.index('settlementId') + }) +} + +exports.down = function (knex, Promise) { + return knex.schema.table('settlementWindowContent', (t) => { + t.dropIndex('settlementWindowId') + t.dropIndex('ledgerAccountTypeId') + t.dropIndex('currencyId') + t.dropIndex('currentStateChangeId') + t.dropIndex('settlementId') + }) +} diff --git a/migrations/401200_settlementContentAggregation.js b/migrations/401200_settlementContentAggregation.js new file mode 100644 index 000000000..dfa847807 --- /dev/null +++ b/migrations/401200_settlementContentAggregation.js @@ -0,0 +1,54 @@ +/***** + License + -------------- + Copyright © 2017 Bill & Melinda Gates Foundation + The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 + Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + Contributors + -------------- + This is the official list of the Mojaloop project contributors for this file. + Names of the original copyright holders (individuals or organizations) + should be listed with a '*' in the first column. People who have + contributed from an organization can be listed under the organization + that actually holds the copyright for their contributions (see the + Gates Foundation organization for an example). Those individuals should have + their names indented and be marked with a '-'. Email address can be added + optionally within square brackets . + * Gates Foundation + - Name Surname + + * ModusBox + - Georgi Georgiev + -------------- + ******/ + +'use strict' + +exports.up = async (knex, Promise) => { + return await knex.schema.hasTable('settlementContentAggregation').then(function(exists) { + if (!exists) { + return knex.schema.createTable('settlementContentAggregation', (t) => { + t.bigIncrements('settlementContentAggregationId').primary().notNullable() + t.bigInteger('settlementWindowContentId').unsigned().notNullable() + t.foreign('settlementWindowContentId').references('settlementWindowContentId').inTable('settlementWindowContent') + t.integer('participantCurrencyId').unsigned().notNullable() + t.foreign('participantCurrencyId').references('participantCurrencyId').inTable('participantCurrency') + t.integer('transferParticipantRoleTypeId').unsigned().notNullable() + t.foreign('transferParticipantRoleTypeId', 'sca_transferparticipantroletypeid_foreign').references('transferParticipantRoleTypeId').inTable('transferParticipantRoleType') + t.integer('ledgerEntryTypeId').unsigned().notNullable() + t.foreign('ledgerEntryTypeId').references('ledgerEntryTypeId').inTable('ledgerEntryType') + t.decimal('amount', 18, 2).notNullable() + t.dateTime('createdDate').defaultTo(knex.fn.now()).notNullable() + t.string('settlementWindowStateId', 50).notNullable() + t.foreign('settlementWindowStateId').references('settlementWindowStateId').inTable('settlementWindowState') + t.bigInteger('settlementId').unsigned() + t.foreign('settlementId').references('settlementId').inTable('settlement') + }) + } + }) +} + +exports.down = function (knex, Promise) { + return knex.schema.dropTableIfExists('settlementContentAggregation') +} diff --git a/migrations/401201_settlementContentAggregation-indexes.js b/migrations/401201_settlementContentAggregation-indexes.js new file mode 100644 index 000000000..3ef14b1e0 --- /dev/null +++ b/migrations/401201_settlementContentAggregation-indexes.js @@ -0,0 +1,48 @@ +/***** + License + -------------- + Copyright © 2017 Bill & Melinda Gates Foundation + The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 + Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + Contributors + -------------- + This is the official list of the Mojaloop project contributors for this file. + Names of the original copyright holders (individuals or organizations) + should be listed with a '*' in the first column. People who have + contributed from an organization can be listed under the organization + that actually holds the copyright for their contributions (see the + Gates Foundation organization for an example). Those individuals should have + their names indented and be marked with a '-'. Email address can be added + optionally within square brackets . + * Gates Foundation + - Name Surname + + * ModusBox + - Georgi Georgiev + -------------- + ******/ + +'use strict' + +exports.up = function (knex, Promise) { + return knex.schema.table('settlementContentAggregation', (t) => { + t.index('settlementWindowContentId') + t.index('participantCurrencyId') + t.index('transferParticipantRoleTypeId') + t.index('ledgerEntryTypeId') + t.index('settlementWindowStateId') + t.index('settlementId') + }) +} + +exports.down = function (knex, Promise) { + return knex.schema.table('settlementContentAggregation', (t) => { + t.dropIndex('settlementWindowContentId') + t.dropIndex('participantCurrencyId') + t.dropIndex('transferParticipantRoleTypeId') + t.dropIndex('ledgerEntryTypeId') + t.dropIndex('settlementWindowStateId') + t.dropIndex('settlementId') + }) +} diff --git a/migrations/401300_settlementModel.js b/migrations/401300_settlementModel.js new file mode 100644 index 000000000..51316e742 --- /dev/null +++ b/migrations/401300_settlementModel.js @@ -0,0 +1,53 @@ +/***** + License + -------------- + Copyright © 2017 Bill & Melinda Gates Foundation + The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 + Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + Contributors + -------------- + This is the official list of the Mojaloop project contributors for this file. + Names of the original copyright holders (individuals or organizations) + should be listed with a '*' in the first column. People who have + contributed from an organization can be listed under the organization + that actually holds the copyright for their contributions (see the + Gates Foundation organization for an example). Those individuals should have + their names indented and be marked with a '-'. Email address can be added + optionally within square brackets . + * Gates Foundation + - Name Surname + + * ModusBox + - Georgi Georgiev + -------------- + ******/ + +'use strict' + +exports.up = async (knex, Promise) => { + return await knex.schema.hasTable('settlementModel').then(function(exists) { + if (!exists) { + return knex.schema.createTable('settlementModel', (t) => { + t.increments('settlementModelId').primary().notNullable() + t.string('name', 50).notNullable() + t.boolean('isActive').defaultTo(true).notNullable() + t.integer('settlementGranularityId').unsigned().notNullable() + t.foreign('settlementGranularityId').references('settlementGranularityId').inTable('settlementGranularity') + t.integer('settlementInterchangeId').unsigned().notNullable() + t.foreign('settlementInterchangeId').references('settlementInterchangeId').inTable('settlementInterchange') + t.integer('settlementDelayId').unsigned().notNullable() + t.foreign('settlementDelayId').references('settlementDelayId').inTable('settlementDelay') + t.string('currencyId', 3).nullable() + t.foreign('currencyId').references('currencyId').inTable('currency') + t.boolean('requireLiquidityCheck').defaultTo(true).notNullable() + t.integer('ledgerAccountTypeId').unsigned().notNullable() + t.foreign('ledgerAccountTypeId').references('ledgerAccountTypeId').inTable('ledgerAccountType') + }) + } + }) +} + +exports.down = function (knex, Promise) { + return knex.schema.dropTableIfExists('settlementModel') +} diff --git a/migrations/401301_settlementModel-indexes.js b/migrations/401301_settlementModel-indexes.js new file mode 100644 index 000000000..5d7b1de12 --- /dev/null +++ b/migrations/401301_settlementModel-indexes.js @@ -0,0 +1,46 @@ +/***** + License + -------------- + Copyright © 2017 Bill & Melinda Gates Foundation + The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 + Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + Contributors + -------------- + This is the official list of the Mojaloop project contributors for this file. + Names of the original copyright holders (individuals or organizations) + should be listed with a '*' in the first column. People who have + contributed from an organization can be listed under the organization + that actually holds the copyright for their contributions (see the + Gates Foundation organization for an example). Those individuals should have + their names indented and be marked with a '-'. Email address can be added + optionally within square brackets . + * Gates Foundation + - Name Surname + + * ModusBox + - Georgi Georgiev + -------------- + ******/ + +'use strict' + +exports.up = function (knex, Promise) { + return knex.schema.table('settlementModel', (t) => { + t.index('settlementGranularityId') + t.index('settlementInterchangeId') + t.index('settlementDelayId') + t.index('currencyId') + t.index('ledgerAccountTypeId') + }) +} + +exports.down = function (knex, Promise) { + return knex.schema.table('settlementModel', (t) => { + t.dropIndex('settlementGranularityId') + t.dropIndex('settlementInterchangeId') + t.dropIndex('settlementDelayId') + t.dropIndex('currencyId') + t.dropIndex('ledgerAccountTypeId') + }) +} diff --git a/migrations/410100_transferFulfilmentDuplicateCheck.js b/migrations/410100_transferFulfilmentDuplicateCheck.js index da7e20dcd..29960f6f1 100644 --- a/migrations/410100_transferFulfilmentDuplicateCheck.js +++ b/migrations/410100_transferFulfilmentDuplicateCheck.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('transferFulfilmentDuplicateCheck').then(function(exists) { if (!exists) { return knex.schema.createTable('transferFulfilmentDuplicateCheck', (t) => { @@ -38,6 +39,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transferFulfilmentDuplicateCheck') } diff --git a/migrations/410101_transferFulfilmentDuplicateCheck-indexes.js b/migrations/410101_transferFulfilmentDuplicateCheck-indexes.js index 36fefa6ab..822d255fd 100644 --- a/migrations/410101_transferFulfilmentDuplicateCheck-indexes.js +++ b/migrations/410101_transferFulfilmentDuplicateCheck-indexes.js @@ -18,19 +18,20 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('transferFulfilmentDuplicateCheck', (t) => { t.index('transferId') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('transferFulfilmentDuplicateCheck', (t) => { t.dropIndex('transferId') }) diff --git a/migrations/410102_transferFulfilmentDuplicateCheck-dropForeignTransferId.js b/migrations/410102_transferFulfilmentDuplicateCheck-dropForeignTransferId.js index bfc2847d7..e9639575a 100644 --- a/migrations/410102_transferFulfilmentDuplicateCheck-dropForeignTransferId.js +++ b/migrations/410102_transferFulfilmentDuplicateCheck-dropForeignTransferId.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('transferFulfilmentDuplicateCheck').then(function(exists) { if (exists) { return knex.schema.alterTable('transferFulfilmentDuplicateCheck', (t) => { @@ -34,6 +35,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transferFulfilmentDuplicateCheck') } diff --git a/migrations/410103_transferFulfilmentDuplicateCheck-hashNullable.js b/migrations/410103_transferFulfilmentDuplicateCheck-hashNullable.js index fd3fcf012..07937e3c2 100644 --- a/migrations/410103_transferFulfilmentDuplicateCheck-hashNullable.js +++ b/migrations/410103_transferFulfilmentDuplicateCheck-hashNullable.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('transferFulfilmentDuplicateCheck').then(function(exists) { if (exists) { return knex.schema.alterTable('transferFulfilmentDuplicateCheck', (t) => { @@ -35,6 +36,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transferFulfilmentDuplicateCheck') } diff --git a/migrations/410200_transferFulfilment.js b/migrations/410200_transferFulfilment.js index 97afb480a..a9ef3469a 100644 --- a/migrations/410200_transferFulfilment.js +++ b/migrations/410200_transferFulfilment.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('transferFulfilment').then(function(exists) { if (!exists) { return knex.schema.createTable('transferFulfilment', (t) => { @@ -44,6 +45,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transferFulfilment') } diff --git a/migrations/410201_transferFulfilment-indexes.js b/migrations/410201_transferFulfilment-indexes.js index d0ab482bf..69c6a1a05 100644 --- a/migrations/410201_transferFulfilment-indexes.js +++ b/migrations/410201_transferFulfilment-indexes.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('transferFulfilment', (t) => { t.index('transferId') t.index('settlementWindowId') @@ -32,7 +33,7 @@ exports.up = function (knex, Promise) { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('transferFulfilment', (t) => { t.dropIndex('transferId') t.dropIndex('settlementWindowId') diff --git a/migrations/410202_transferFulfilment-ilpFulfilment.js b/migrations/410202_transferFulfilment-ilpFulfilment.js index 24c4effc3..f5dc8ea93 100644 --- a/migrations/410202_transferFulfilment-ilpFulfilment.js +++ b/migrations/410202_transferFulfilment-ilpFulfilment.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('transferFulfilment').then(function(exists) { if (exists) { return knex.schema.alterTable('transferFulfilment', (t) => { @@ -34,6 +35,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transferFulfilment') } diff --git a/migrations/410203_transferFulfilment-foreignTransferFulfilmentId.js b/migrations/410203_transferFulfilment-foreignTransferFulfilmentId.js index 669afe6eb..d74ff7bfc 100644 --- a/migrations/410203_transferFulfilment-foreignTransferFulfilmentId.js +++ b/migrations/410203_transferFulfilment-foreignTransferFulfilmentId.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('transferFulfilment').then(function(exists) { if (exists) { return knex.schema.alterTable('transferFulfilment', (t) => { @@ -34,6 +35,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transferFulfilment') } diff --git a/migrations/410240_bulkTransferFulfilmentDuplicateCheck.js b/migrations/410240_bulkTransferFulfilmentDuplicateCheck.js index b8e881626..6eb9b72f1 100644 --- a/migrations/410240_bulkTransferFulfilmentDuplicateCheck.js +++ b/migrations/410240_bulkTransferFulfilmentDuplicateCheck.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('bulkTransferFulfilmentDuplicateCheck').then(function(exists) { if (!exists) { return knex.schema.createTable('bulkTransferFulfilmentDuplicateCheck', (t) => { @@ -37,6 +38,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('bulkTransferFulfilmentDuplicateCheck') } diff --git a/migrations/410250_bulkTransferFulfilment.js b/migrations/410250_bulkTransferFulfilment.js index b2ebd0a77..7c7807fe4 100644 --- a/migrations/410250_bulkTransferFulfilment.js +++ b/migrations/410250_bulkTransferFulfilment.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('bulkTransferFulfilment').then(function(exists) { if (!exists) { return knex.schema.createTable('bulkTransferFulfilment', (t) => { @@ -37,6 +38,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('bulkTransferFulfilment') } diff --git a/migrations/410300_transferExtension.js b/migrations/410300_transferExtension.js index 75ef4b7d4..8e49e8224 100644 --- a/migrations/410300_transferExtension.js +++ b/migrations/410300_transferExtension.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('transferExtension').then(function(exists) { if (!exists) { return knex.schema.createTable('transferExtension', (t) => { @@ -41,6 +42,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transferExtension') } diff --git a/migrations/410301_transferExtension-indexes.js b/migrations/410301_transferExtension-indexes.js index 98b0b51f0..3f0ab5788 100644 --- a/migrations/410301_transferExtension-indexes.js +++ b/migrations/410301_transferExtension-indexes.js @@ -18,20 +18,21 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('transferExtension', (t) => { t.index('transferId') t.index('transferFulfilmentId') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('transferExtension', (t) => { t.dropIndex('transferId') t.dropIndex('transferFulfilmentId') diff --git a/migrations/410302_transferExtension-transferErrorId.js b/migrations/410302_transferExtension-transferErrorId.js index c436170d0..898c787d4 100644 --- a/migrations/410302_transferExtension-transferErrorId.js +++ b/migrations/410302_transferExtension-transferErrorId.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('transferExtension').then(function(exists) { if (exists) { return knex.schema.alterTable('transferExtension', (t) => { @@ -34,6 +35,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transferExtension') } diff --git a/migrations/410350_bulkTransferExtension.js b/migrations/410350_bulkTransferExtension.js index 911980570..751127c79 100644 --- a/migrations/410350_bulkTransferExtension.js +++ b/migrations/410350_bulkTransferExtension.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('bulkTransferExtension').then(function(exists) { if (!exists) { return knex.schema.createTable('bulkTransferExtension', (t) => { @@ -40,6 +41,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transferExtension') } diff --git a/migrations/410351_bulkTransferExtension-indexes.js b/migrations/410351_bulkTransferExtension-indexes.js index a8e8d1081..6237f5dea 100644 --- a/migrations/410351_bulkTransferExtension-indexes.js +++ b/migrations/410351_bulkTransferExtension-indexes.js @@ -18,19 +18,20 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('bulkTransferExtension', (t) => { t.index('bulkTransferId') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('bulkTransferExtension', (t) => { t.dropIndex('bulkTransferId') }) diff --git a/migrations/410400_transferTimeout.js b/migrations/410400_transferTimeout.js index 64ab125ec..8db21c1e2 100644 --- a/migrations/410400_transferTimeout.js +++ b/migrations/410400_transferTimeout.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('transferTimeout').then(function(exists) { if (!exists) { return knex.schema.createTable('transferTimeout', (t) => { @@ -38,6 +39,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transferTimeout') } diff --git a/migrations/410401_transferTimeout-indexes.js b/migrations/410401_transferTimeout-indexes.js index c209ee95b..ecfb5344b 100644 --- a/migrations/410401_transferTimeout-indexes.js +++ b/migrations/410401_transferTimeout-indexes.js @@ -18,19 +18,20 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('transferTimeout', (t) => { t.unique('transferId') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('transferTimeout', (t) => { t.dropUnique('transferId') }) diff --git a/migrations/410450_transferErrorDuplicateCheck.js b/migrations/410450_transferErrorDuplicateCheck.js index 02497d722..99b4adf12 100644 --- a/migrations/410450_transferErrorDuplicateCheck.js +++ b/migrations/410450_transferErrorDuplicateCheck.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('transferErrorDuplicateCheck').then(function(exists) { if (!exists) { return knex.schema.createTable('transferErrorDuplicateCheck', (t) => { @@ -38,6 +39,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transferErrorDuplicateCheck') } diff --git a/migrations/410500_transferError.js b/migrations/410500_transferError.js index d149ddc67..a14fa3492 100644 --- a/migrations/410500_transferError.js +++ b/migrations/410500_transferError.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('transferError').then(function(exists) { if (!exists) { return knex.schema.createTable('transferError', (t) => { @@ -39,6 +40,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transferError') } diff --git a/migrations/410501_transferError-indexes.js b/migrations/410501_transferError-indexes.js index 660b5eaad..9c202732d 100644 --- a/migrations/410501_transferError-indexes.js +++ b/migrations/410501_transferError-indexes.js @@ -18,19 +18,20 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('transferError', (t) => { t.index('transferStateChangeId') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('transferError', (t) => { t.dropIndex('transferStateChangeId') }) diff --git a/migrations/410502_transferError-foreignTransferErrorDuplicateCheckId.js b/migrations/410502_transferError-foreignTransferErrorDuplicateCheckId.js index 2dde2353b..5f6d83518 100644 --- a/migrations/410502_transferError-foreignTransferErrorDuplicateCheckId.js +++ b/migrations/410502_transferError-foreignTransferErrorDuplicateCheckId.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('transferError').then(function(exists) { if (exists) { return knex.schema.alterTable('transferError', (t) => { @@ -35,6 +36,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transferError') } diff --git a/migrations/410550_bulkTransferError.js b/migrations/410550_bulkTransferError.js index 5a7eb3467..65fca0536 100644 --- a/migrations/410550_bulkTransferError.js +++ b/migrations/410550_bulkTransferError.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await knex.schema.hasTable('bulkTransferError').then(function(exists) { if (!exists) { return knex.schema.createTable('bulkTransferError', (t) => { @@ -39,6 +40,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('bulkTransferError') } diff --git a/migrations/410551_bulkTransferError-indexes.js b/migrations/410551_bulkTransferError-indexes.js index 4a2885405..b6c87feb0 100644 --- a/migrations/410551_bulkTransferError-indexes.js +++ b/migrations/410551_bulkTransferError-indexes.js @@ -18,19 +18,20 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('bulkTransferError', (t) => { t.index('bulkTransferStateChangeId') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('bulkTransferError', (t) => { t.dropIndex('bulkTransferStateChangeId') }) diff --git a/migrations/500100_transactionReference.js b/migrations/500100_transactionReference.js index 240799590..31e111d2c 100644 --- a/migrations/500100_transactionReference.js +++ b/migrations/500100_transactionReference.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -24,14 +24,15 @@ Contributors * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = (knex, Promise) => { +exports.up = (knex) => { return knex.schema.hasTable('transactionReference').then((exists) => { if (!exists) { return knex.schema.createTable('transactionReference', (t) => { @@ -44,6 +45,6 @@ exports.up = (knex, Promise) => { }) } -exports.down = (knex, Promise) => { +exports.down = (knex) => { return knex.schema.dropTableIfExists('transactionReference') } diff --git a/migrations/500101_transactionReference-indexes.js b/migrations/500101_transactionReference-indexes.js index 646d8344a..37a0bb31c 100644 --- a/migrations/500101_transactionReference-indexes.js +++ b/migrations/500101_transactionReference-indexes.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -24,20 +24,21 @@ Contributors * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('transactionReference', (t) => { t.index('quoteId') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('transactionReference', (t) => { t.dropIndex('quoteId') }) diff --git a/migrations/500200_transactionScenario.js b/migrations/500200_transactionScenario.js index 24d78ba51..7f14ba229 100644 --- a/migrations/500200_transactionScenario.js +++ b/migrations/500200_transactionScenario.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -24,14 +24,15 @@ Contributors * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = (knex, Promise) => { +exports.up = (knex) => { return knex.schema.hasTable('transactionScenario').then((exists) => { if (!exists) { return knex.schema.createTable('transactionScenario', (t) => { @@ -44,6 +45,6 @@ exports.up = (knex, Promise) => { }) } -exports.down = (knex, Promise) => { +exports.down = (knex) => { return knex.schema.dropTableIfExists('transactionScenario') } diff --git a/migrations/500201_transactionScenario-indexes.js b/migrations/500201_transactionScenario-indexes.js index 0edbf8e9b..d8d2f3680 100644 --- a/migrations/500201_transactionScenario-indexes.js +++ b/migrations/500201_transactionScenario-indexes.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -24,21 +24,22 @@ Contributors * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.schema.table('transactionScenario', (t) => { t.unique('name') }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.table('transactionScenario', (t) => { t.dropUnique('name') }) -} \ No newline at end of file +} diff --git a/migrations/500300_transactionSubScenario.js b/migrations/500300_transactionSubScenario.js index 250341da4..9076806e8 100644 --- a/migrations/500300_transactionSubScenario.js +++ b/migrations/500300_transactionSubScenario.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -24,14 +24,15 @@ Contributors * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = (knex, Promise) => { +exports.up = (knex) => { return knex.schema.hasTable('transactionSubScenario').then((exists) => { if (!exists) { return knex.schema.createTable('transactionSubScenario', (t) => { @@ -44,6 +45,6 @@ exports.up = (knex, Promise) => { }) } -exports.down = (knex, Promise) => { +exports.down = (knex) => { return knex.schema.dropTableIfExists('transactionSubScenario') } diff --git a/migrations/500400_quote.js b/migrations/500400_quote.js index b82ed1f93..e4a1f716d 100644 --- a/migrations/500400_quote.js +++ b/migrations/500400_quote.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -24,14 +24,15 @@ Contributors * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = (knex, Promise) => { +exports.up = (knex) => { return knex.schema.hasTable('quote').then((exists) => { if (!exists) { return knex.schema.createTable('quote', (t) => { @@ -63,6 +64,6 @@ exports.up = (knex, Promise) => { }) } -exports.down = (knex, Promise) => { +exports.down = (knex) => { return knex.schema.dropTableIfExists('quote') } diff --git a/migrations/500500_quoteParty.js b/migrations/500500_quoteParty.js index b0304bac3..9ce769ad9 100644 --- a/migrations/500500_quoteParty.js +++ b/migrations/500500_quoteParty.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -24,14 +24,15 @@ Contributors * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = (knex, Promise) => { +exports.up = (knex) => { return knex.schema.hasTable('quoteParty').then((exists) => { if (!exists) { return knex.schema.createTable('quoteParty', (t) => { @@ -63,6 +64,6 @@ exports.up = (knex, Promise) => { }) } -exports.down = (knex, Promise) => { +exports.down = (knex) => { return knex.schema.dropTableIfExists('quoteParty') } diff --git a/migrations/500600_party.js b/migrations/500600_party.js index 074958861..2516ae4b5 100644 --- a/migrations/500600_party.js +++ b/migrations/500600_party.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -24,14 +24,15 @@ Contributors * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = (knex, Promise) => { +exports.up = (knex) => { return knex.schema.hasTable('party').then((exists) => { if (!exists) { return knex.schema.createTable('party', (t) => { @@ -48,6 +49,6 @@ exports.up = (knex, Promise) => { }) } -exports.down = (knex, Promise) => { +exports.down = (knex) => { return knex.schema.dropTableIfExists('party') } diff --git a/migrations/500700_quoteResponse.js b/migrations/500700_quoteResponse.js index 5e38b66a4..dd7fd9718 100644 --- a/migrations/500700_quoteResponse.js +++ b/migrations/500700_quoteResponse.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -24,14 +24,15 @@ Contributors * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = (knex, Promise) => { +exports.up = (knex) => { return knex.schema.hasTable('quoteResponse').then((exists) => { if (!exists) { return knex.schema.createTable('quoteResponse', (t) => { @@ -59,6 +60,6 @@ exports.up = (knex, Promise) => { }) } -exports.down = (knex, Promise) => { +exports.down = (knex) => { return knex.schema.dropTableIfExists('quoteResponse') } diff --git a/migrations/500800_quoteResponseIlpPacket.js b/migrations/500800_quoteResponseIlpPacket.js index f1e95db3e..5b44455ac 100644 --- a/migrations/500800_quoteResponseIlpPacket.js +++ b/migrations/500800_quoteResponseIlpPacket.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -24,14 +24,15 @@ Contributors * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = (knex, Promise) => { +exports.up = (knex) => { return knex.schema.hasTable('quoteResponseIlpPacket').then((exists) => { if (!exists) { return knex.schema.createTable('quoteResponseIlpPacket', (t) => { @@ -43,6 +44,6 @@ exports.up = (knex, Promise) => { }) } -exports.down = (knex, Promise) => { +exports.down = (knex) => { return knex.schema.dropTableIfExists('quoteResponseIlpPacket') } diff --git a/migrations/500900_geoCode.js b/migrations/500900_geoCode.js index f1e2beb4c..a4097c445 100644 --- a/migrations/500900_geoCode.js +++ b/migrations/500900_geoCode.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -24,14 +24,15 @@ Contributors * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = (knex, Promise) => { +exports.up = (knex) => { return knex.schema.hasTable('geoCode').then((exists) => { if (!exists) { return knex.schema.createTable('geoCode', (t) => { @@ -46,6 +47,6 @@ exports.up = (knex, Promise) => { }) } -exports.down = (knex, Promise) => { +exports.down = (knex) => { return knex.schema.dropTableIfExists('geoCode') } diff --git a/migrations/501000_quoteExtension.js b/migrations/501000_quoteExtension.js index b89b904a3..366d2cf12 100644 --- a/migrations/501000_quoteExtension.js +++ b/migrations/501000_quoteExtension.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -24,14 +24,15 @@ Contributors * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = (knex, Promise) => { +exports.up = (knex) => { return knex.schema.hasTable('quoteExtension').then((exists) => { if (!exists) { return knex.schema.createTable('quoteExtension', (t) => { @@ -50,6 +51,6 @@ exports.up = (knex, Promise) => { }) } -exports.down = (knex, Promise) => { +exports.down = (knex) => { return knex.schema.dropTableIfExists('quoteExtension') } diff --git a/migrations/501100_quoteResponseDuplicateCheck.js b/migrations/501100_quoteResponseDuplicateCheck.js index 4403fbb97..be7e21e07 100644 --- a/migrations/501100_quoteResponseDuplicateCheck.js +++ b/migrations/501100_quoteResponseDuplicateCheck.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -24,14 +24,15 @@ Contributors * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = (knex, Promise) => { +exports.up = (knex) => { return knex.schema.hasTable('quoteResponseDuplicateCheck').then((exists) => { if (!exists) { return knex.schema.createTable('quoteResponseDuplicateCheck', (t) => { @@ -46,6 +47,6 @@ exports.up = (knex, Promise) => { }) } -exports.down = (knex, Promise) => { +exports.down = (knex) => { return knex.schema.dropTableIfExists('quoteResponseDuplicateCheck') } diff --git a/migrations/501200_quoteError.js b/migrations/501200_quoteError.js index 1378443cd..847cb7636 100644 --- a/migrations/501200_quoteError.js +++ b/migrations/501200_quoteError.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -24,14 +24,15 @@ Contributors * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = (knex, Promise) => { +exports.up = (knex) => { return knex.schema.hasTable('quoteError').then((exists) => { if (!exists) { return knex.schema.createTable('quoteError', (t) => { @@ -48,6 +49,6 @@ exports.up = (knex, Promise) => { }) } -exports.down = (knex, Promise) => { +exports.down = (knex) => { return knex.schema.dropTableIfExists('quoteError') } diff --git a/migrations/501300_transferRules.js b/migrations/501300_transferRules.js index 36b69187c..42954011e 100644 --- a/migrations/501300_transferRules.js +++ b/migrations/501300_transferRules.js @@ -24,14 +24,15 @@ Contributors * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = (knex, Promise) => { +exports.up = (knex) => { return knex.schema.hasTable('transferRules').then((exists) => { if (!exists) { return knex.schema.createTable('transferRules', (t) => { @@ -46,6 +47,6 @@ exports.up = (knex, Promise) => { }) } -exports.down = (knex, Promise) => { +exports.down = (knex) => { return knex.schema.dropTableIfExists('transferRules') } diff --git a/migrations/800100_quotePartyView.js b/migrations/800100_quotePartyView.js index 92bbbbebe..9027942a0 100644 --- a/migrations/800100_quotePartyView.js +++ b/migrations/800100_quotePartyView.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -24,14 +24,15 @@ Contributors * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.raw(` CREATE OR REPLACE VIEW quotePartyView AS SELECT diff --git a/migrations/800200_quoteView.js b/migrations/800200_quoteView.js index 612a62187..ca1b9c8da 100644 --- a/migrations/800200_quoteView.js +++ b/migrations/800200_quoteView.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -24,14 +24,15 @@ Contributors * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.raw(` CREATE OR REPLACE VIEW quoteView AS SELECT diff --git a/migrations/800300_quoteResponseView.js b/migrations/800300_quoteResponseView.js index cdfd1b348..d1c4a1ec8 100644 --- a/migrations/800300_quoteResponseView.js +++ b/migrations/800300_quoteResponseView.js @@ -5,7 +5,7 @@ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + Initial contribution -------------------- The initial functionality and code base was donated by the Mowali project working in conjunction with MTN and Orange as service provides. @@ -24,14 +24,15 @@ Contributors * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ // Notes: these changes are required for the quoting-service and are not used by central-ledger 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { return knex.raw(` CREATE OR REPLACE VIEW quoteResponseView AS SELECT diff --git a/migrations/900100_foreign-keys.js b/migrations/900100_foreign-keys.js index c9106db12..dd39c9f55 100644 --- a/migrations/900100_foreign-keys.js +++ b/migrations/900100_foreign-keys.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { // foreign keys sorted alphabetically by table name return knex.schema .table('settlement', (t) => { @@ -38,7 +39,7 @@ exports.up = function (knex, Promise) { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema .table('settlement', (t) => { t.dropForeign('currentStateChangeId') diff --git a/migrations/900101_foreign-keys.js b/migrations/900101_foreign-keys.js index 111b674ea..56b324a54 100644 --- a/migrations/900101_foreign-keys.js +++ b/migrations/900101_foreign-keys.js @@ -18,13 +18,14 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -exports.up = function (knex, Promise) { +exports.up = function (knex) { // foreign keys sorted alphabetically by table name return knex.schema .table('transferExtension', (t) => { @@ -32,7 +33,7 @@ exports.up = function (knex, Promise) { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema .table('transferExtension', (t) => { t.dropForeign('transferErrorId') diff --git a/migrations/910100_feature904DDL.js b/migrations/910100_feature904DDL.js index f65c1b50c..96752833f 100644 --- a/migrations/910100_feature904DDL.js +++ b/migrations/910100_feature904DDL.js @@ -18,7 +18,8 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ @@ -151,10 +152,10 @@ const migrateDDL = async (knex) => { return 0 } -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { return await migrateDDL(knex) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transferFulfilmentDuplicateCheck') } diff --git a/migrations/910101_feature904DataMigration.js b/migrations/910101_feature904DataMigration.js index 12d9c65e3..e798759e1 100644 --- a/migrations/910101_feature904DataMigration.js +++ b/migrations/910101_feature904DataMigration.js @@ -18,7 +18,8 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ @@ -33,8 +34,8 @@ const tableNameSuffix = Time.getYMDString(new Date()) * This migration script is provided with no warranties! It is given as a reference * to help implementers, as well as used by maintainers for QA and other enabling tasks. * Use at your own risk! - * - * Make sure you have fresh DB backup before initializing it and also set + * + * Make sure you have fresh DB backup before initializing it and also set * `tableNameSuffix` to match the suffix of the tables you want to migrate data from. * If you need to execute this script multiple times after failure or modifications, * please delete the corresponding record from central_ledger.migration table. @@ -103,12 +104,12 @@ const migrateData = async (knex) => { }) } -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { if (RUN_DATA_MIGRATIONS) { return await migrateData(knex) } } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transferFulfilmentDuplicateCheck') } diff --git a/migrations/910102_feature949DataMigration.js b/migrations/910102_feature949DataMigration.js index 5b9e1e301..30bc7dee4 100644 --- a/migrations/910102_feature949DataMigration.js +++ b/migrations/910102_feature949DataMigration.js @@ -18,12 +18,12 @@ * Gates Foundation - Name Surname - * Georgi Georgiev + * ModusBox + - Georgi Georgiev -------------- ******/ 'use strict' -const Time = require('@mojaloop/central-services-shared').Util.Time const Config = require('../src/lib/config') const RUN_DATA_MIGRATIONS = Config.DB_RUN_DATA_MIGRATIONS @@ -31,8 +31,8 @@ const RUN_DATA_MIGRATIONS = Config.DB_RUN_DATA_MIGRATIONS * This migration script is provided with no warranties! It is given as a reference * to help implementers, as well as used by maintainers for QA and other enabling tasks. * Use at your own risk! - * - * Make sure you have fresh DB backup before initializing it and also set + * + * Make sure you have fresh DB backup before initializing it and also set * `tableNameSuffix` to match the suffix of the tables you want to migrate data from. * If you need to execute this script multiple times after failure or modifications, * please delete the corresponding record from central_ledger.migration table. @@ -270,12 +270,12 @@ const migrateData = async (knex) => { }) } -exports.up = async (knex, Promise) => { +exports.up = async (knex) => { if (RUN_DATA_MIGRATIONS) { return await migrateData(knex) } } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('currency') } diff --git a/migrations/910102_hotfix954.js b/migrations/910102_hotfix954.js index 957488534..b6d593883 100644 --- a/migrations/910102_hotfix954.js +++ b/migrations/910102_hotfix954.js @@ -25,32 +25,6 @@ 'use strict' -/***** - License - -------------- - Copyright © 2017 Bill & Melinda Gates Foundation - The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - Contributors - -------------- - This is the official list of the Mojaloop project contributors for this file. - Names of the original copyright holders (individuals or organizations) - should be listed with a '*' in the first column. People who have - contributed from an organization can be listed under the organization - that actually holds the copyright for their contributions (see the - Gates Foundation organization for an example). Those individuals should have - their names indented and be marked with a '-'. Email address can be added - optionally within square brackets . - * Gates Foundation - - Name Surname - - * Miguel de Barros - -------------- - ******/ - -'use strict' - exports.up = async (knex, Promise) => { return knex.schema.table('transferError', (t) => { // Dropping foreign keys for the transferError table to allow the error to be logged without any record existing in the transferErrorDuplicateCheck @@ -58,6 +32,6 @@ exports.up = async (knex, Promise) => { }) } -exports.down = function (knex, Promise) { +exports.down = function (knex) { return knex.schema.dropTableIfExists('transferError') } diff --git a/migrations/910103_feature1093SettlementByCurrency.js b/migrations/910103_feature1093SettlementByCurrency.js new file mode 100644 index 000000000..350bbdb65 --- /dev/null +++ b/migrations/910103_feature1093SettlementByCurrency.js @@ -0,0 +1,60 @@ +/***** + License + -------------- + Copyright © 2017 Bill & Melinda Gates Foundation + The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 + Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + Contributors + -------------- + This is the official list of the Mojaloop project contributors for this file. + Names of the original copyright holders (individuals or organizations) + should be listed with a '*' in the first column. People who have + contributed from an organization can be listed under the organization + that actually holds the copyright for their contributions (see the + Gates Foundation organization for an example). Those individuals should have + their names indented and be marked with a '-'. Email address can be added + optionally within square brackets . + * Gates Foundation + - Name Surname + + * ModusBox + - Georgi Georgiev + -------------- + ******/ + +'use strict' + +exports.up = async (knex, Promise) => { + await knex.schema.hasTable('ledgerAccountType').then(function(exists) { + if (exists) { + return knex.schema.alterTable('ledgerAccountType', (t) => { + t.boolean('isSettleable').defaultTo(false).notNullable() + }) + } + }) + await knex.schema.hasTable('ledgerEntryType').then(function(exists) { + if (exists) { + return knex.schema.alterTable('ledgerEntryType', (t) => { + t.integer('ledgerAccountTypeId').unsigned().nullable() + t.foreign('ledgerAccountTypeId').references('ledgerAccountTypeId').inTable('ledgerAccountType') + }) + } + }) + await knex.schema.hasTable('settlement').then(function(exists) { + if (exists) { + return knex.schema.alterTable('settlement', (t) => { + t.integer('settlementModelId').unsigned().nullable() + t.foreign('settlementModelId').references('settlementModelId').inTable('settlementModel') + }) + } + }) + return 0 +} + +exports.down = async (knex, Promise) => { + await knex.schema.dropTableIfExists('ledgerAccountType') + await knex.schema.dropTableIfExists('ledgerEntryType') + await knex.schema.dropTableIfExists('settlement') + return 0 +} diff --git a/package-lock.json b/package-lock.json index 4709d17c3..0bb079f84 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@mojaloop/central-ledger", - "version": "8.6.3", + "version": "8.7.1", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -14,44 +14,44 @@ } }, "@babel/generator": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.7.2.tgz", - "integrity": "sha512-WthSArvAjYLz4TcbKOi88me+KmDJdKSlfwwN8CnUYn9jBkzhq0ZEPuBfkAWIvjJ3AdEV1Cf/+eSQTnp3IDJKlQ==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.7.4.tgz", + "integrity": "sha512-m5qo2WgdOJeyYngKImbkyQrnUN1mPceaG5BV+G0E3gWsa4l/jCSryWJdM2x8OuGAOyh+3d5pVYfZWCiNFtynxg==", "dev": true, "requires": { - "@babel/types": "^7.7.2", + "@babel/types": "^7.7.4", "jsesc": "^2.5.1", "lodash": "^4.17.13", "source-map": "^0.5.0" } }, "@babel/helper-function-name": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.7.0.tgz", - "integrity": "sha512-tDsJgMUAP00Ugv8O2aGEua5I2apkaQO7lBGUq1ocwN3G23JE5Dcq0uh3GvFTChPa4b40AWiAsLvCZOA2rdnQ7Q==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.7.4.tgz", + "integrity": "sha512-AnkGIdiBhEuiwdoMnKm7jfPfqItZhgRaZfMg1XX3bS25INOnLPjPG1Ppnajh8eqgt5kPJnfqrRHqFqmjKDZLzQ==", "dev": true, "requires": { - "@babel/helper-get-function-arity": "^7.7.0", - "@babel/template": "^7.7.0", - "@babel/types": "^7.7.0" + "@babel/helper-get-function-arity": "^7.7.4", + "@babel/template": "^7.7.4", + "@babel/types": "^7.7.4" } }, "@babel/helper-get-function-arity": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.7.0.tgz", - "integrity": "sha512-tLdojOTz4vWcEnHWHCuPN5P85JLZWbm5Fx5ZsMEMPhF3Uoe3O7awrbM2nQ04bDOUToH/2tH/ezKEOR8zEYzqyw==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.7.4.tgz", + "integrity": "sha512-QTGKEdCkjgzgfJ3bAyRwF4yyT3pg+vDgan8DSivq1eS0gwi+KGKE5x8kRcbeFTb/673mkO5SN1IZfmCfA5o+EA==", "dev": true, "requires": { - "@babel/types": "^7.7.0" + "@babel/types": "^7.7.4" } }, "@babel/helper-split-export-declaration": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.7.0.tgz", - "integrity": "sha512-HgYSI8rH08neWlAH3CcdkFg9qX9YsZysZI5GD8LjhQib/mM0jGOZOVkoUiiV2Hu978fRtjtsGsW6w0pKHUWtqA==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.7.4.tgz", + "integrity": "sha512-guAg1SXFcVr04Guk9eq0S4/rWS++sbmyqosJzVs8+1fH5NI+ZcmkaSkc7dmtAFbHFva6yRJnjW3yAcGxjueDug==", "dev": true, "requires": { - "@babel/types": "^7.7.0" + "@babel/types": "^7.7.4" } }, "@babel/highlight": { @@ -66,34 +66,34 @@ } }, "@babel/parser": { - "version": "7.7.3", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.3.tgz", - "integrity": "sha512-bqv+iCo9i+uLVbI0ILzKkvMorqxouI+GbV13ivcARXn9NNEabi2IEz912IgNpT/60BNXac5dgcfjb94NjsF33A==", + "version": "7.7.5", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.5.tgz", + "integrity": "sha512-KNlOe9+/nk4i29g0VXgl8PEXIRms5xKLJeuZ6UptN0fHv+jDiriG+y94X6qAgWTR0h3KaoM1wK5G5h7MHFRSig==", "dev": true }, "@babel/template": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.0.tgz", - "integrity": "sha512-OKcwSYOW1mhWbnTBgQY5lvg1Fxg+VyfQGjcBduZFljfc044J5iDlnDSfhQ867O17XHiSCxYHUxHg2b7ryitbUQ==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.4.tgz", + "integrity": "sha512-qUzihgVPguAzXCK7WXw8pqs6cEwi54s3E+HrejlkuWO6ivMKx9hZl3Y2fSXp9i5HgyWmj7RKP+ulaYnKM4yYxw==", "dev": true, "requires": { "@babel/code-frame": "^7.0.0", - "@babel/parser": "^7.7.0", - "@babel/types": "^7.7.0" + "@babel/parser": "^7.7.4", + "@babel/types": "^7.7.4" } }, "@babel/traverse": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.7.2.tgz", - "integrity": "sha512-TM01cXib2+rgIZrGJOLaHV/iZUAxf4A0dt5auY6KNZ+cm6aschuJGqKJM3ROTt3raPUdIDk9siAufIFEleRwtw==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.7.4.tgz", + "integrity": "sha512-P1L58hQyupn8+ezVA2z5KBm4/Zr4lCC8dwKCMYzsa5jFMDMQAzaBNy9W5VjB+KAmBjb40U7a/H6ao+Xo+9saIw==", "dev": true, "requires": { "@babel/code-frame": "^7.5.5", - "@babel/generator": "^7.7.2", - "@babel/helper-function-name": "^7.7.0", - "@babel/helper-split-export-declaration": "^7.7.0", - "@babel/parser": "^7.7.2", - "@babel/types": "^7.7.2", + "@babel/generator": "^7.7.4", + "@babel/helper-function-name": "^7.7.4", + "@babel/helper-split-export-declaration": "^7.7.4", + "@babel/parser": "^7.7.4", + "@babel/types": "^7.7.4", "debug": "^4.1.0", "globals": "^11.1.0", "lodash": "^4.17.13" @@ -111,9 +111,9 @@ } }, "@babel/types": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.2.tgz", - "integrity": "sha512-YTf6PXoh3+eZgRCBzzP25Bugd2ngmpQVrk7kXX0i5N9BO7TFBtIgZYs7WtxtOGs8e6A4ZI7ECkbBCEHeXocvOA==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.4.tgz", + "integrity": "sha512-cz5Ji23KCi4T+YIE/BolWosrJuSmoZeN1EFnRtBwF+KKLi8GG/Z2c2hOJJeCXPk4mwk4QFvTmwIodJowXgttRA==", "dev": true, "requires": { "esutils": "^2.0.2", @@ -140,9 +140,9 @@ } }, "@hapi/address": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/@hapi/address/-/address-2.1.2.tgz", - "integrity": "sha512-O4QDrx+JoGKZc6aN64L04vqa7e41tIiLU+OvKdcYaEMP97UttL0f9GIi9/0A4WAMx0uBd6SidDIhktZhgOcN8Q==" + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/@hapi/address/-/address-2.1.4.tgz", + "integrity": "sha512-QD1PhQk+s31P1ixsX0H0Suoupp3VMXzIVMSwobR3F3MSUO2YCV0B7xqLcUw/Bh8yuvd3LhpyqLQWTNcRmp6IdQ==" }, "@hapi/ammo": { "version": "3.1.1", @@ -551,9 +551,9 @@ }, "dependencies": { "bluebird": { - "version": "3.7.1", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.1.tgz", - "integrity": "sha512-DdmyoGCleJnkbp3nkbxTLJ18rjDsE4yCggEwKNXkeV123sPNfOCYeDoeuOY+F2FrSjO1YXcTU+dsy96KMy+gcg==" + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", + "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==" }, "commander": { "version": "3.0.2", @@ -620,21 +620,6 @@ "requires": { "@mojaloop/sdk-standard-components": "8.1.4", "lodash": "4.17.15" - }, - "dependencies": { - "@mojaloop/sdk-standard-components": { - "version": "8.1.4", - "resolved": "https://registry.npmjs.org/@mojaloop/sdk-standard-components/-/sdk-standard-components-8.1.4.tgz", - "integrity": "sha512-OyUYb3DenwZyUQdvdfpOqUHXlOaHCqedh12Y7RIXPUwanadL/AU+b5RWKm6HY1PrELhvTaBoyzOLRaCrAegx5Q==", - "requires": { - "base64url": "^3.0.1", - "ilp-packet": "2.2.0", - "jsonwebtoken": "^8.5.1", - "jws": "^3.2.2", - "request": "^2.34", - "request-promise-native": "^1.0.7" - } - } } }, "@mojaloop/central-services-logger": { @@ -665,30 +650,6 @@ "lodash": "4.17.15", "mustache": "3.1.0", "raw-body": "2.4.1" - }, - "dependencies": { - "@mojaloop/event-sdk": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/@mojaloop/event-sdk/-/event-sdk-8.3.0.tgz", - "integrity": "sha512-Shc2NMZPHu8BKU9qPNxJVUhocr+l500DYZ2v+gxDjUL9PgmBCcFKsmGyf10PtV5xK9bLWxviWrhvXdZZyOQ6oQ==", - "requires": { - "@grpc/proto-loader": "0.5.2", - "@mojaloop/central-services-logger": "8.1.2", - "@types/protobufjs": "6.0.0", - "brototype": "0.0.6", - "error-callsites": "2.0.2", - "grpc": "1.24.0", - "lodash": "4.17.15", - "moment": "2.24.0", - "parse-strings-in-object": "1.2.0", - "protobufjs": "6.8.8", - "rc": "1.2.8", - "serialize-error": "4.1.0", - "sinon": "7.5.0", - "traceparent": "1.0.0", - "uuid4": "1.1.4" - } - } } }, "@mojaloop/central-services-stream": { @@ -721,13 +682,48 @@ "requires": { "winston": "3.2.1" } + }, + "@mojaloop/sdk-standard-components": { + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/@mojaloop/sdk-standard-components/-/sdk-standard-components-7.4.0.tgz", + "integrity": "sha512-5bpw0oFuSon9Zd7qNOhWoLozHLBPGqcu0vFhxMcLecSA5UPjyq5JJf3tAcaAtnJspkTMDW/GieI0uCr9pCEJzA==", + "requires": { + "base64url": "^3.0.1", + "ilp-packet": "2.2.0", + "jsonwebtoken": "^8.5.1", + "jws": "^3.2.2", + "request": "^2.34", + "request-promise-native": "^1.0.7" + } } } }, + "@mojaloop/event-sdk": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/@mojaloop/event-sdk/-/event-sdk-8.3.0.tgz", + "integrity": "sha512-Shc2NMZPHu8BKU9qPNxJVUhocr+l500DYZ2v+gxDjUL9PgmBCcFKsmGyf10PtV5xK9bLWxviWrhvXdZZyOQ6oQ==", + "requires": { + "@grpc/proto-loader": "0.5.2", + "@mojaloop/central-services-logger": "8.1.2", + "@types/protobufjs": "6.0.0", + "brototype": "0.0.6", + "error-callsites": "2.0.2", + "grpc": "1.24.0", + "lodash": "4.17.15", + "moment": "2.24.0", + "parse-strings-in-object": "1.2.0", + "protobufjs": "6.8.8", + "rc": "1.2.8", + "serialize-error": "4.1.0", + "sinon": "7.5.0", + "traceparent": "1.0.0", + "uuid4": "1.1.4" + } + }, "@mojaloop/sdk-standard-components": { - "version": "7.4.0", - "resolved": "https://registry.npmjs.org/@mojaloop/sdk-standard-components/-/sdk-standard-components-7.4.0.tgz", - "integrity": "sha512-5bpw0oFuSon9Zd7qNOhWoLozHLBPGqcu0vFhxMcLecSA5UPjyq5JJf3tAcaAtnJspkTMDW/GieI0uCr9pCEJzA==", + "version": "8.1.4", + "resolved": "https://registry.npmjs.org/@mojaloop/sdk-standard-components/-/sdk-standard-components-8.1.4.tgz", + "integrity": "sha512-OyUYb3DenwZyUQdvdfpOqUHXlOaHCqedh12Y7RIXPUwanadL/AU+b5RWKm6HY1PrELhvTaBoyzOLRaCrAegx5Q==", "requires": { "base64url": "^3.0.1", "ilp-packet": "2.2.0", @@ -784,16 +780,16 @@ } }, "@mojaloop/central-services-shared": { - "version": "8.6.2", - "resolved": "https://registry.npmjs.org/@mojaloop/central-services-shared/-/central-services-shared-8.6.2.tgz", - "integrity": "sha512-zgzqUMHHU/CwB3dIqAvb1rHuVz7auzQdPCq+8/JOj3wqzzoQ4CH0Om4oxkRQiYt5yP1eh9TdEwKBp7dSustGsw==", + "version": "8.7.1", + "resolved": "https://registry.npmjs.org/@mojaloop/central-services-shared/-/central-services-shared-8.7.1.tgz", + "integrity": "sha512-kA3jq0HwTfcZV6tWYKJpvVvlD9U+lxyOa9ZDsK7uXmxXJc5DekU8TySRbL6bPMDSeiqYHJaCO3lvhFvK6dD/ng==", "requires": { "@hapi/catbox": "10.2.3", "@hapi/catbox-memory": "4.1.1", "@mojaloop/central-services-error-handling": "8.6.2", - "@mojaloop/central-services-logger": "8.5.2", + "@mojaloop/central-services-logger": "8.6.0", "@mojaloop/central-services-stream": "8.4.0", - "@mojaloop/event-sdk": "8.3.0", + "@mojaloop/event-sdk": "8.6.2", "axios": "0.19.0", "base64url": "3.0.1", "clone": "2.1.2", @@ -805,38 +801,29 @@ "raw-body": "2.4.1" }, "dependencies": { - "@mojaloop/central-services-logger": { - "version": "8.5.2", - "resolved": "https://registry.npmjs.org/@mojaloop/central-services-logger/-/central-services-logger-8.5.2.tgz", - "integrity": "sha512-9nnpk82Q3UKeY5Tq4xuTuZAwGNNf6PR5NArJiSwx2LA4Kp43Det+6/E01nhqEcA4e5GkdAnraxwk8jOFBQoTkQ==", - "requires": { - "parse-strings-in-object": "1.2.0", - "rc": "1.2.8", - "winston": "3.2.1" - } - }, - "@mojaloop/event-sdk": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/@mojaloop/event-sdk/-/event-sdk-8.3.0.tgz", - "integrity": "sha512-Shc2NMZPHu8BKU9qPNxJVUhocr+l500DYZ2v+gxDjUL9PgmBCcFKsmGyf10PtV5xK9bLWxviWrhvXdZZyOQ6oQ==", + "@mojaloop/central-services-stream": { + "version": "8.4.0", + "resolved": "https://registry.npmjs.org/@mojaloop/central-services-stream/-/central-services-stream-8.4.0.tgz", + "integrity": "sha512-8bxafIFGHb4pZn7lT9xxMh+QyHV9vojSWHSrzST3Z74CyQv5Llj2AzaXpKP0En22Rt7GUc7PKRGs/qSEdMaSUg==", "requires": { - "@grpc/proto-loader": "0.5.2", + "@mojaloop/central-services-error-handling": "8.3.0", "@mojaloop/central-services-logger": "8.1.2", - "@types/protobufjs": "6.0.0", - "brototype": "0.0.6", - "error-callsites": "2.0.2", - "grpc": "1.24.0", - "lodash": "4.17.15", - "moment": "2.24.0", - "parse-strings-in-object": "1.2.0", - "protobufjs": "6.8.8", - "rc": "1.2.8", - "serialize-error": "4.1.0", - "sinon": "7.5.0", - "traceparent": "1.0.0", - "uuid4": "1.1.4" + "async": "3.1.0", + "debug": "4.1.1", + "events": "3.0.0", + "node-rdkafka": "2.7.1", + "raw-body": "2.4.1" }, "dependencies": { + "@mojaloop/central-services-error-handling": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/@mojaloop/central-services-error-handling/-/central-services-error-handling-8.3.0.tgz", + "integrity": "sha512-2m/TyJ45AGJ+1hCobLiIj9idb1BGKGhq1LJ5n6nRlF6cJR7wx0+Y2cOlI2khl7VZ+PNdonHL9ODbRo7ZGqFczQ==", + "requires": { + "@mojaloop/sdk-standard-components": "8.1.4", + "lodash": "4.17.15" + } + }, "@mojaloop/central-services-logger": { "version": "8.1.2", "resolved": "https://registry.npmjs.org/@mojaloop/central-services-logger/-/central-services-logger-8.1.2.tgz", @@ -846,39 +833,6 @@ } } } - } - } - }, - "@mojaloop/central-services-stream": { - "version": "8.4.0", - "resolved": "https://registry.npmjs.org/@mojaloop/central-services-stream/-/central-services-stream-8.4.0.tgz", - "integrity": "sha512-8bxafIFGHb4pZn7lT9xxMh+QyHV9vojSWHSrzST3Z74CyQv5Llj2AzaXpKP0En22Rt7GUc7PKRGs/qSEdMaSUg==", - "requires": { - "@mojaloop/central-services-error-handling": "8.3.0", - "@mojaloop/central-services-logger": "8.1.2", - "async": "3.1.0", - "debug": "4.1.1", - "events": "3.0.0", - "node-rdkafka": "2.7.1", - "raw-body": "2.4.1" - }, - "dependencies": { - "@mojaloop/central-services-error-handling": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/@mojaloop/central-services-error-handling/-/central-services-error-handling-8.3.0.tgz", - "integrity": "sha512-2m/TyJ45AGJ+1hCobLiIj9idb1BGKGhq1LJ5n6nRlF6cJR7wx0+Y2cOlI2khl7VZ+PNdonHL9ODbRo7ZGqFczQ==", - "requires": { - "@mojaloop/sdk-standard-components": "8.1.4", - "lodash": "4.17.15" - } - }, - "@mojaloop/central-services-logger": { - "version": "8.1.2", - "resolved": "https://registry.npmjs.org/@mojaloop/central-services-logger/-/central-services-logger-8.1.2.tgz", - "integrity": "sha512-wNnr07xcJNAy+KX2C8Djb6ubeH2c1KkfXMyMJz+/dKrfqyVcqcI0RuhneERZrJMI5Ah4X9Sjcuz+LqH9HQoW/w==", - "requires": { - "winston": "3.2.1" - } }, "@mojaloop/sdk-standard-components": { "version": "8.1.4", @@ -908,10 +862,38 @@ } } }, + "@mojaloop/central-services-stream": { + "version": "8.7.0", + "resolved": "https://registry.npmjs.org/@mojaloop/central-services-stream/-/central-services-stream-8.7.0.tgz", + "integrity": "sha512-6jn/Y6SRlEOzvyGOf25AlwNrE6asmHPdPtSrzROciDvaPF6u3NJ7R03Z4IygetRe6ALjv2H5F2SWrJ8IQdbHfw==", + "requires": { + "@mojaloop/central-services-error-handling": "8.6.2", + "@mojaloop/central-services-logger": "8.6.0", + "async": "3.1.0", + "events": "3.0.0", + "node-rdkafka": "2.7.4" + }, + "dependencies": { + "async": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/async/-/async-3.1.0.tgz", + "integrity": "sha512-4vx/aaY6j/j3Lw3fbCHNWP0pPaTCew3F6F3hYyl/tHs/ndmV1q7NW9T5yuJ2XAGwdQrP+6Wu20x06U4APo/iQQ==" + }, + "node-rdkafka": { + "version": "2.7.4", + "resolved": "https://registry.npmjs.org/node-rdkafka/-/node-rdkafka-2.7.4.tgz", + "integrity": "sha512-415Hfu2SkAo9+mSj3xxw+dHwJqC0jRY0D/OKqUdPfvEE1r4p+N0OfbsAmmSR5FSxZFRFTY3j+/tGntp6ssqHWw==", + "requires": { + "bindings": "^1.3.1", + "nan": "^2.14.0" + } + } + } + }, "@mojaloop/event-sdk": { - "version": "8.6.1", - "resolved": "https://registry.npmjs.org/@mojaloop/event-sdk/-/event-sdk-8.6.1.tgz", - "integrity": "sha512-vzxOQ5JzBgXHE9HU3we4Lad1a9DxJN/qpp5IwHPwxFZy3hEDzyOy32ib4RKh4CEu5umFIg9FL1qWjGkBgdnxFw==", + "version": "8.6.2", + "resolved": "https://registry.npmjs.org/@mojaloop/event-sdk/-/event-sdk-8.6.2.tgz", + "integrity": "sha512-ZeQffxnRNU7+/2PF2viuje2F5cz5EvvDkfajYZJtL9SBPxPqHlXxEV+J3FmHsM8JMDMr5j8rDwz++mVCyYj8Kw==", "requires": { "@grpc/proto-loader": "0.5.3", "@mojaloop/central-services-logger": "8.6.0", @@ -921,7 +903,7 @@ "grpc": "1.24.2", "lodash": "4.17.15", "moment": "2.24.0", - "parse-strings-in-object": "1.2.0", + "parse-strings-in-object": "2.0.0", "protobufjs": "6.8.8", "rc": "1.2.8", "serialize-error": "4.1.0", @@ -955,19 +937,23 @@ "dependencies": { "abbrev": { "version": "1.1.1", - "bundled": true + "resolved": false, + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==" }, "ansi-regex": { "version": "2.1.1", - "bundled": true + "resolved": false, + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=" }, "aproba": { "version": "1.2.0", - "bundled": true + "resolved": false, + "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==" }, "are-we-there-yet": { "version": "1.1.5", - "bundled": true, + "resolved": false, + "integrity": "sha512-5hYdAkZlcG8tOLujVDTgCT+uPX0VnpAH28gWsLfzpXYm7wP6mp5Q/gYyR7YQ0cKVJcXJnl3j2kpBan13PtQf6w==", "requires": { "delegates": "^1.0.0", "readable-stream": "^2.0.6" @@ -975,11 +961,13 @@ }, "balanced-match": { "version": "1.0.0", - "bundled": true + "resolved": false, + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" }, "brace-expansion": { "version": "1.1.11", - "bundled": true, + "resolved": false, + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -987,57 +975,69 @@ }, "chownr": { "version": "1.1.3", - "bundled": true + "resolved": false, + "integrity": "sha512-i70fVHhmV3DtTl6nqvZOnIjbY0Pe4kAUjwHj8z0zAdgBtYrJyYwLKCCuRBQ5ppkyL0AkN7HKRnETdmdp1zqNXw==" }, "code-point-at": { "version": "1.1.0", - "bundled": true + "resolved": false, + "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=" }, "concat-map": { "version": "0.0.1", - "bundled": true + "resolved": false, + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" }, "console-control-strings": { "version": "1.1.0", - "bundled": true + "resolved": false, + "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=" }, "core-util-is": { "version": "1.0.2", - "bundled": true + "resolved": false, + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" }, "debug": { "version": "3.2.6", - "bundled": true, + "resolved": false, + "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", "requires": { "ms": "^2.1.1" } }, "deep-extend": { "version": "0.6.0", - "bundled": true + "resolved": false, + "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==" }, "delegates": { "version": "1.0.0", - "bundled": true + "resolved": false, + "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=" }, "detect-libc": { "version": "1.0.3", - "bundled": true + "resolved": false, + "integrity": "sha1-+hN8S9aY7fVc1c0CrFWfkaTEups=" }, "fs-minipass": { "version": "1.2.7", - "bundled": true, + "resolved": false, + "integrity": "sha512-GWSSJGFy4e9GUeCcbIkED+bgAoFyj7XF1mV8rma3QW4NIqX9Kyx79N/PF61H5udOV3aY1IaMLs6pGbH71nlCTA==", "requires": { "minipass": "^2.6.0" } }, "fs.realpath": { "version": "1.0.0", - "bundled": true + "resolved": false, + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" }, "gauge": { "version": "2.7.4", - "bundled": true, + "resolved": false, + "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", "requires": { "aproba": "^1.0.3", "console-control-strings": "^1.0.0", @@ -1051,7 +1051,8 @@ }, "glob": { "version": "7.1.4", - "bundled": true, + "resolved": false, + "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -1063,25 +1064,29 @@ }, "has-unicode": { "version": "2.0.1", - "bundled": true + "resolved": false, + "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=" }, "iconv-lite": { "version": "0.4.24", - "bundled": true, + "resolved": false, + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", "requires": { "safer-buffer": ">= 2.1.2 < 3" } }, "ignore-walk": { "version": "3.0.3", - "bundled": true, + "resolved": false, + "integrity": "sha512-m7o6xuOaT1aqheYHKf8W6J5pYH85ZI9w077erOzLje3JsB1gkafkAhHHY19dqjulgIZHFm32Cp5uNZgcQqdJKw==", "requires": { "minimatch": "^3.0.4" } }, "inflight": { "version": "1.0.6", - "bundled": true, + "resolved": false, + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", "requires": { "once": "^1.3.0", "wrappy": "1" @@ -1089,37 +1094,44 @@ }, "inherits": { "version": "2.0.4", - "bundled": true + "resolved": false, + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, "ini": { "version": "1.3.5", - "bundled": true + "resolved": false, + "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==" }, "is-fullwidth-code-point": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", "requires": { "number-is-nan": "^1.0.0" } }, "isarray": { "version": "1.0.0", - "bundled": true + "resolved": false, + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" }, "minimatch": { "version": "3.0.4", - "bundled": true, + "resolved": false, + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", "requires": { "brace-expansion": "^1.1.7" } }, "minimist": { "version": "1.2.0", - "bundled": true + "resolved": false, + "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=" }, "minipass": { "version": "2.9.0", - "bundled": true, + "resolved": false, + "integrity": "sha512-wxfUjg9WebH+CUDX/CdbRlh5SmfZiy/hpkxaRI16Y9W56Pa75sWgd/rvFilSgrauD9NyFymP/+JFV3KwzIsJeg==", "requires": { "safe-buffer": "^5.1.2", "yallist": "^3.0.0" @@ -1127,31 +1139,36 @@ }, "minizlib": { "version": "1.3.3", - "bundled": true, + "resolved": false, + "integrity": "sha512-6ZYMOEnmVsdCeTJVE0W9ZD+pVnE8h9Hma/iOwwRDsdQoePpoX56/8B6z3P9VNwppJuBKNRuFDRNRqRWexT9G9Q==", "requires": { "minipass": "^2.9.0" } }, "mkdirp": { "version": "0.5.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", "requires": { "minimist": "0.0.8" }, "dependencies": { "minimist": { "version": "0.0.8", - "bundled": true + "resolved": false, + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" } } }, "ms": { "version": "2.1.2", - "bundled": true + "resolved": false, + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" }, "needle": { "version": "2.4.0", - "bundled": true, + "resolved": false, + "integrity": "sha512-4Hnwzr3mi5L97hMYeNl8wRW/Onhy4nUKR/lVemJ8gJedxxUyBLm9kkrDColJvoSfwi0jCNhD+xCdOtiGDQiRZg==", "requires": { "debug": "^3.2.6", "iconv-lite": "^0.4.4", @@ -1160,7 +1177,8 @@ }, "node-pre-gyp": { "version": "0.14.0", - "bundled": true, + "resolved": false, + "integrity": "sha512-+CvDC7ZttU/sSt9rFjix/P05iS43qHCOOGzcr3Ry99bXG7VX953+vFyEuph/tfqoYu8dttBkE86JSKBO2OzcxA==", "requires": { "detect-libc": "^1.0.2", "mkdirp": "^0.5.1", @@ -1176,7 +1194,8 @@ }, "nopt": { "version": "4.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-0NRoWv1UFRk8jHUFYC0NF81kR00=", "requires": { "abbrev": "1", "osenv": "^0.1.4" @@ -1184,11 +1203,13 @@ }, "npm-bundled": { "version": "1.0.6", - "bundled": true + "resolved": false, + "integrity": "sha512-8/JCaftHwbd//k6y2rEWp6k1wxVfpFzB6t1p825+cUb7Ym2XQfhwIC5KwhrvzZRJu+LtDE585zVaS32+CGtf0g==" }, "npm-packlist": { "version": "1.4.6", - "bundled": true, + "resolved": false, + "integrity": "sha512-u65uQdb+qwtGvEJh/DgQgW1Xg7sqeNbmxYyrvlNznaVTjV3E5P6F/EFjM+BVHXl7JJlsdG8A64M0XI8FI/IOlg==", "requires": { "ignore-walk": "^3.0.1", "npm-bundled": "^1.0.1" @@ -1196,7 +1217,8 @@ }, "npmlog": { "version": "4.1.2", - "bundled": true, + "resolved": false, + "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==", "requires": { "are-we-there-yet": "~1.1.2", "console-control-strings": "~1.1.0", @@ -1206,30 +1228,36 @@ }, "number-is-nan": { "version": "1.0.1", - "bundled": true + "resolved": false, + "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=" }, "object-assign": { "version": "4.1.1", - "bundled": true + "resolved": false, + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" }, "once": { "version": "1.4.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", "requires": { "wrappy": "1" } }, "os-homedir": { "version": "1.0.2", - "bundled": true + "resolved": false, + "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=" }, "os-tmpdir": { "version": "1.0.2", - "bundled": true + "resolved": false, + "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=" }, "osenv": { "version": "0.1.5", - "bundled": true, + "resolved": false, + "integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==", "requires": { "os-homedir": "^1.0.0", "os-tmpdir": "^1.0.0" @@ -1237,11 +1265,13 @@ }, "path-is-absolute": { "version": "1.0.1", - "bundled": true + "resolved": false, + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" }, "process-nextick-args": { "version": "2.0.1", - "bundled": true + "resolved": false, + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" }, "protobufjs": { "version": "5.0.3", @@ -1256,7 +1286,8 @@ }, "rc": { "version": "1.2.8", - "bundled": true, + "resolved": false, + "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", "requires": { "deep-extend": "^0.6.0", "ini": "~1.3.0", @@ -1266,7 +1297,8 @@ }, "readable-stream": { "version": "2.3.6", - "bundled": true, + "resolved": false, + "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", "requires": { "core-util-is": "~1.0.0", "inherits": "~2.0.3", @@ -1279,38 +1311,46 @@ }, "rimraf": { "version": "2.7.1", - "bundled": true, + "resolved": false, + "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", "requires": { "glob": "^7.1.3" } }, "safe-buffer": { "version": "5.1.2", - "bundled": true + "resolved": false, + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" }, "safer-buffer": { "version": "2.1.2", - "bundled": true + "resolved": false, + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" }, "sax": { "version": "1.2.4", - "bundled": true + "resolved": false, + "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==" }, "semver": { "version": "5.7.1", - "bundled": true + "resolved": false, + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" }, "set-blocking": { "version": "2.0.0", - "bundled": true + "resolved": false, + "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=" }, "signal-exit": { "version": "3.0.2", - "bundled": true + "resolved": false, + "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=" }, "string-width": { "version": "1.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -1319,25 +1359,29 @@ }, "string_decoder": { "version": "1.1.1", - "bundled": true, + "resolved": false, + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", "requires": { "safe-buffer": "~5.1.0" } }, "strip-ansi": { "version": "3.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", "requires": { "ansi-regex": "^2.0.0" } }, "strip-json-comments": { "version": "2.0.1", - "bundled": true + "resolved": false, + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=" }, "tar": { "version": "4.4.13", - "bundled": true, + "resolved": false, + "integrity": "sha512-w2VwSrBoHa5BsSyH+KxEqeQBAllHhccyMFVHtGtdMpF4W7IRWfZjFiQceJPChOeTsSDVUpER2T8FA93pr0L+QA==", "requires": { "chownr": "^1.1.1", "fs-minipass": "^1.2.5", @@ -1350,24 +1394,33 @@ }, "util-deprecate": { "version": "1.0.2", - "bundled": true + "resolved": false, + "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" }, "wide-align": { "version": "1.1.3", - "bundled": true, + "resolved": false, + "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", "requires": { "string-width": "^1.0.2 || 2" } }, "wrappy": { "version": "1.0.2", - "bundled": true + "resolved": false, + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" }, "yallist": { "version": "3.1.1", - "bundled": true + "resolved": false, + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==" } } + }, + "parse-strings-in-object": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/parse-strings-in-object/-/parse-strings-in-object-2.0.0.tgz", + "integrity": "sha512-hb50xDyEo8boMtyzB1IdVE4KcTNVbIirk/ZqC8na1irOf/70DyZS30y1FIIAUe9jyHJk9s2QoZ4aBNHR9NXHsg==" } } }, @@ -1550,15 +1603,21 @@ "@types/node": "*" } }, + "@types/color-name": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz", + "integrity": "sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==", + "dev": true + }, "@types/long": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.0.tgz", "integrity": "sha512-1w52Nyx4Gq47uuu0EVcsHBxZFJgurQ+rTKS3qMHxR1GY2T8c2AJYd6vZoZ9q1rupaDjU0yT+Jc2XTyXkjeMA+Q==" }, "@types/node": { - "version": "10.17.6", - "resolved": "https://registry.npmjs.org/@types/node/-/node-10.17.6.tgz", - "integrity": "sha512-0a2X6cgN3RdPBL2MIlR6Lt0KlM7fOFsutuXcdglcOq6WvLnYXgPQSh0Mx6tO1KCAE8MxbHSOSTWDoUxRq+l3DA==" + "version": "10.17.8", + "resolved": "https://registry.npmjs.org/@types/node/-/node-10.17.8.tgz", + "integrity": "sha512-FeTtEwXbQa187ABpeEQoO7pq3dHgE85FmAUExx2sKO6U1/MYrLTYv+BIMcgVbQ66WjI4w+Ni+5HJtY+gHgWnPg==" }, "@types/protobufjs": { "version": "6.0.0", @@ -1568,20 +1627,10 @@ "protobufjs": "*" } }, - "JSONStream": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz", - "integrity": "sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==", - "dev": true, - "requires": { - "jsonparse": "^1.2.0", - "through": ">=2.2.7 <3" - } - }, "abab": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.2.tgz", - "integrity": "sha512-2scffjvioEmNz0OyDSLGWDfKCVwaKc6l9Pm9kOIREU13ClXZvHpg/nRL5xyjSSSLhOnXqft2HpsAzNEEA8cFFg==" + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.3.tgz", + "integrity": "sha512-tsFzPpcttalNjFBCFMqsKYQcWxxen1pgJR56by//QwvJc4/OUS3kPOOttx2tSIfjsylB0pYu7f5D3K1RCxUnUg==" }, "abbrev": { "version": "1.1.1", @@ -1619,6 +1668,16 @@ "humanize-ms": "^1.2.1" } }, + "aggregate-error": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.0.1.tgz", + "integrity": "sha512-quoaXsZ9/BLNae5yiNoUz+Nhkwz83GhWwtYFglcjEQB2NDHCIpApbqXxIFnm4Pq/Nvhrsq5sYJFyohrrxnTGAA==", + "dev": true, + "requires": { + "clean-stack": "^2.0.0", + "indent-string": "^4.0.0" + } + }, "ajv": { "version": "6.10.2", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.2.tgz", @@ -1839,11 +1898,6 @@ "lodash": "^4.17.14" } }, - "async-limiter": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.1.tgz", - "integrity": "sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ==" - }, "async-retry": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/async-retry/-/async-retry-1.2.3.tgz", @@ -1913,9 +1967,9 @@ "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=" }, "aws4": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz", - "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==" + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.9.0.tgz", + "integrity": "sha512-Uvq6hVe90D0B2WEnUqtdgY1bATGz3mw33nH9Y+dmA+w5DHvUmBgkr5rM/KCHpCsiFNRUfokW/szpPPgMK2hm4A==" }, "axios": { "version": "0.19.0", @@ -2198,34 +2252,31 @@ "integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==" }, "cacache": { - "version": "12.0.3", - "resolved": "https://registry.npmjs.org/cacache/-/cacache-12.0.3.tgz", - "integrity": "sha512-kqdmfXEGFepesTuROHMs3MpFLWrPkSSpRqOw80RCflZXy/khxaArvFrQ7uJxSUduzAufc6G0g1VUCOZXxWavPw==", + "version": "13.0.1", + "resolved": "https://registry.npmjs.org/cacache/-/cacache-13.0.1.tgz", + "integrity": "sha512-5ZvAxd05HDDU+y9BVvcqYu2LLXmPnQ0hW62h32g4xBTgL/MppR4/04NHfj/ycM2y6lmTnbw6HVi+1eN0Psba6w==", "dev": true, "requires": { - "bluebird": "^3.5.5", - "chownr": "^1.1.1", + "chownr": "^1.1.2", "figgy-pudding": "^3.5.1", + "fs-minipass": "^2.0.0", "glob": "^7.1.4", - "graceful-fs": "^4.1.15", - "infer-owner": "^1.0.3", + "graceful-fs": "^4.2.2", + "infer-owner": "^1.0.4", "lru-cache": "^5.1.1", - "mississippi": "^3.0.0", + "minipass": "^3.0.0", + "minipass-collect": "^1.0.2", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.2", "mkdirp": "^0.5.1", "move-concurrently": "^1.0.1", + "p-map": "^3.0.0", "promise-inflight": "^1.0.1", - "rimraf": "^2.6.3", - "ssri": "^6.0.1", - "unique-filename": "^1.1.1", - "y18n": "^4.0.0" + "rimraf": "^2.7.1", + "ssri": "^7.0.0", + "unique-filename": "^1.1.1" }, "dependencies": { - "bluebird": { - "version": "3.7.1", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.1.tgz", - "integrity": "sha512-DdmyoGCleJnkbp3nkbxTLJ18rjDsE4yCggEwKNXkeV123sPNfOCYeDoeuOY+F2FrSjO1YXcTU+dsy96KMy+gcg==", - "dev": true - }, "lru-cache": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", @@ -2235,12 +2286,6 @@ "yallist": "^3.0.2" } }, - "y18n": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz", - "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==", - "dev": true - }, "yallist": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", @@ -2502,6 +2547,12 @@ } } }, + "clean-stack": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", + "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", + "dev": true + }, "cli-boxes": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-1.0.0.tgz", @@ -2728,9 +2779,9 @@ "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=" }, "core-js": { - "version": "2.6.10", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.10.tgz", - "integrity": "sha512-I39t74+4t+zau64EN1fE5v2W31Adtc/REhzWN+gWRRXg6WH5qAsZm62DHpQ1+Yhe4047T55jvzz7MUqF/dBBlA==" + "version": "2.6.11", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.11.tgz", + "integrity": "sha512-5wjnpaT/3dV+XB4borEsnAYQchn00XSgTAWKDkEqv+K8KevjbzmofK6hfJ9TZIlpj2N0xQpazy7PiRQiWHqzWg==" }, "core-util-is": { "version": "1.0.2", @@ -2803,12 +2854,6 @@ "integrity": "sha1-ojD2T1aDEOFJgAmUB5DsmVRbyn4=", "dev": true }, - "cyclist": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/cyclist/-/cyclist-1.0.1.tgz", - "integrity": "sha1-WW6WmP0MgOEgOMK4LW6xs1tiJNk=", - "dev": true - }, "dashdash": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", @@ -2922,9 +2967,9 @@ } }, "defer-to-connect": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-1.1.0.tgz", - "integrity": "sha512-WE2sZoctWm/v4smfCAdjYbrfS55JiMRdlY9ZubFhsYbteCK9+BvAx4YV7nPjYM6ZnX5BcoVKwfmyx9sIFTgQMQ==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-1.1.1.tgz", + "integrity": "sha512-J7thop4u3mRTkYRQ+Vpfwy2G5Ehoy82I14+14W4YMDLKdWloI9gSzRbV30s/NckQGVJtPkWNcW4oMAUigTdqiQ==", "dev": true }, "define-properties": { @@ -3147,6 +3192,7 @@ "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.12.tgz", "integrity": "sha1-U4tm8+5izRq1HsMjgp0flIDHS+s=", "dev": true, + "optional": true, "requires": { "iconv-lite": "~0.4.13" } @@ -3197,17 +3243,17 @@ } }, "es-abstract": { - "version": "1.16.0", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.16.0.tgz", - "integrity": "sha512-xdQnfykZ9JMEiasTAJZJdMWCQ1Vm00NBw79/AWi7ELfZuuPCSOMDZbT9mkOfSctVtfhb+sAAzrm+j//GjjLHLg==", + "version": "1.16.3", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.16.3.tgz", + "integrity": "sha512-WtY7Fx5LiOnSYgF5eg/1T+GONaGmpvpPdCpSnYij+U2gDTL0UPfWrhDw7b2IYb+9NQJsYpCA0wOQvZfsd6YwRw==", "requires": { - "es-to-primitive": "^1.2.0", + "es-to-primitive": "^1.2.1", "function-bind": "^1.1.1", "has": "^1.0.3", - "has-symbols": "^1.0.0", + "has-symbols": "^1.0.1", "is-callable": "^1.1.4", "is-regex": "^1.0.4", - "object-inspect": "^1.6.0", + "object-inspect": "^1.7.0", "object-keys": "^1.1.1", "string.prototype.trimleft": "^2.1.0", "string.prototype.trimright": "^2.1.0" @@ -3409,12 +3455,12 @@ } }, "eslint-module-utils": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.4.1.tgz", - "integrity": "sha512-H6DOj+ejw7Tesdgbfs4jeS4YMFrT8uI8xwd1gtQqXssaR0EQ26L+2O/w6wkYFy2MymON0fTwHmXBvvfLNZVZEw==", + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.5.0.tgz", + "integrity": "sha512-kCo8pZaNz2dsAW7nCUjuVoI11EBXXpIzfNxmaoLhXoRDOnqXLC4iSGVRdZPhOitfbdEfMEfKOiENaK6wDPZEGw==", "dev": true, "requires": { - "debug": "^2.6.8", + "debug": "^2.6.9", "pkg-dir": "^2.0.0" }, "dependencies": { @@ -4238,16 +4284,6 @@ "integrity": "sha512-a1hQMktqW9Nmqr5aktAux3JMNqaucxGcjtjWnZLHX7yyPCmlSV3M54nGYbqT8K+0GhF3NBgmJCc3ma+WOgX8Jg==", "dev": true }, - "flush-write-stream": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/flush-write-stream/-/flush-write-stream-1.1.1.tgz", - "integrity": "sha512-3Z4XhFZ3992uIq0XOqb9AreonueSYphE6oYbpt5+3u06JWklbsPkNv3ZKkP9Bz/r+1MWCaMoSQ28P85+1Yc77w==", - "dev": true, - "requires": { - "inherits": "^2.0.3", - "readable-stream": "^2.3.6" - } - }, "follow-redirects": { "version": "1.5.10", "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.5.10.tgz", @@ -4328,23 +4364,13 @@ "map-cache": "^0.2.2" } }, - "from2": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz", - "integrity": "sha1-i/tVAr3kpNNs/e6gB/zKIdfjgq8=", - "dev": true, - "requires": { - "inherits": "^2.0.1", - "readable-stream": "^2.0.0" - } - }, "fs-minipass": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-1.2.7.tgz", - "integrity": "sha512-GWSSJGFy4e9GUeCcbIkED+bgAoFyj7XF1mV8rma3QW4NIqX9Kyx79N/PF61H5udOV3aY1IaMLs6pGbH71nlCTA==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.0.0.tgz", + "integrity": "sha512-40Qz+LFXmd9tzYVnnBmZvFfvAADfUA14TXPK1s7IfElJTIZ97rA8w4Kin7Wt5JBrC3ShnnFJO/5vPjPEeJIq9A==", "dev": true, "requires": { - "minipass": "^2.6.0" + "minipass": "^3.0.0" } }, "fs-write-stream-atomic": { @@ -4382,12 +4408,6 @@ "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", "dev": true }, - "genfun": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/genfun/-/genfun-5.0.0.tgz", - "integrity": "sha512-KGDOARWVga7+rnB3z9Sd2Letx515owfk0hSxHGuqjANb1M+x2bGZGqHLiozPsYMdM2OubeMni/Hpwmjq6qIUhA==", - "dev": true - }, "get-caller-file": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", @@ -4576,19 +4596,23 @@ "dependencies": { "abbrev": { "version": "1.1.1", - "bundled": true + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==" }, "ansi-regex": { "version": "2.1.1", - "bundled": true + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=" }, "aproba": { "version": "1.2.0", - "bundled": true + "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", + "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==" }, "are-we-there-yet": { "version": "1.1.5", - "bundled": true, + "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz", + "integrity": "sha512-5hYdAkZlcG8tOLujVDTgCT+uPX0VnpAH28gWsLfzpXYm7wP6mp5Q/gYyR7YQ0cKVJcXJnl3j2kpBan13PtQf6w==", "requires": { "delegates": "^1.0.0", "readable-stream": "^2.0.6" @@ -4596,11 +4620,13 @@ }, "balanced-match": { "version": "1.0.0", - "bundled": true + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" }, "brace-expansion": { "version": "1.1.11", - "bundled": true, + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -4608,57 +4634,69 @@ }, "chownr": { "version": "1.1.2", - "bundled": true + "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.2.tgz", + "integrity": "sha512-GkfeAQh+QNy3wquu9oIZr6SS5x7wGdSgNQvD10X3r+AZr1Oys22HW8kAmDMvNg2+Dm0TeGaEuO8gFwdBXxwO8A==" }, "code-point-at": { "version": "1.1.0", - "bundled": true + "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", + "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=" }, "concat-map": { "version": "0.0.1", - "bundled": true + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" }, "console-control-strings": { "version": "1.1.0", - "bundled": true + "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", + "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=" }, "core-util-is": { "version": "1.0.2", - "bundled": true + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" }, "debug": { "version": "3.2.6", - "bundled": true, + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", + "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", "requires": { "ms": "^2.1.1" } }, "deep-extend": { "version": "0.6.0", - "bundled": true + "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", + "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==" }, "delegates": { "version": "1.0.0", - "bundled": true + "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", + "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=" }, "detect-libc": { "version": "1.0.3", - "bundled": true + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", + "integrity": "sha1-+hN8S9aY7fVc1c0CrFWfkaTEups=" }, "fs-minipass": { "version": "1.2.6", - "bundled": true, + "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-1.2.6.tgz", + "integrity": "sha512-crhvyXcMejjv3Z5d2Fa9sf5xLYVCF5O1c71QxbVnbLsmYMBEvDAftewesN/HhY03YRoA7zOMxjNGrF5svGaaeQ==", "requires": { "minipass": "^2.2.1" } }, "fs.realpath": { "version": "1.0.0", - "bundled": true + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" }, "gauge": { "version": "2.7.4", - "bundled": true, + "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz", + "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", "requires": { "aproba": "^1.0.3", "console-control-strings": "^1.0.0", @@ -4672,7 +4710,8 @@ }, "glob": { "version": "7.1.4", - "bundled": true, + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", + "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -4684,25 +4723,29 @@ }, "has-unicode": { "version": "2.0.1", - "bundled": true + "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", + "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=" }, "iconv-lite": { "version": "0.4.24", - "bundled": true, + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", "requires": { "safer-buffer": ">= 2.1.2 < 3" } }, "ignore-walk": { "version": "3.0.1", - "bundled": true, + "resolved": "https://registry.npmjs.org/ignore-walk/-/ignore-walk-3.0.1.tgz", + "integrity": "sha512-DTVlMx3IYPe0/JJcYP7Gxg7ttZZu3IInhuEhbchuqneY9wWe5Ojy2mXLBaQFUQmo0AW2r3qG7m1mg86js+gnlQ==", "requires": { "minimatch": "^3.0.4" } }, "inflight": { "version": "1.0.6", - "bundled": true, + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", "requires": { "once": "^1.3.0", "wrappy": "1" @@ -4710,37 +4753,44 @@ }, "inherits": { "version": "2.0.4", - "bundled": true + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, "ini": { "version": "1.3.5", - "bundled": true + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", + "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==" }, "is-fullwidth-code-point": { "version": "1.0.0", - "bundled": true, + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", + "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", "requires": { "number-is-nan": "^1.0.0" } }, "isarray": { "version": "1.0.0", - "bundled": true + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" }, "minimatch": { "version": "3.0.4", - "bundled": true, + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", "requires": { "brace-expansion": "^1.1.7" } }, "minimist": { "version": "1.2.0", - "bundled": true + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=" }, "minipass": { "version": "2.3.5", - "bundled": true, + "resolved": "https://registry.npmjs.org/minipass/-/minipass-2.3.5.tgz", + "integrity": "sha512-Gi1W4k059gyRbyVUZQ4mEqLm0YIUiGYfvxhF6SIlk3ui1WVxMTGfGdQ2SInh3PDrRTVvPKgULkpJtT4RH10+VA==", "requires": { "safe-buffer": "^5.1.2", "yallist": "^3.0.0" @@ -4748,31 +4798,36 @@ }, "minizlib": { "version": "1.2.1", - "bundled": true, + "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-1.2.1.tgz", + "integrity": "sha512-7+4oTUOWKg7AuL3vloEWekXY2/D20cevzsrNT2kGWm+39J9hGTCBv8VI5Pm5lXZ/o3/mdR4f8rflAPhnQb8mPA==", "requires": { "minipass": "^2.2.1" } }, "mkdirp": { "version": "0.5.1", - "bundled": true, + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", "requires": { "minimist": "0.0.8" }, "dependencies": { "minimist": { "version": "0.0.8", - "bundled": true + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" } } }, "ms": { "version": "2.1.2", - "bundled": true + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" }, "needle": { "version": "2.4.0", - "bundled": true, + "resolved": "https://registry.npmjs.org/needle/-/needle-2.4.0.tgz", + "integrity": "sha512-4Hnwzr3mi5L97hMYeNl8wRW/Onhy4nUKR/lVemJ8gJedxxUyBLm9kkrDColJvoSfwi0jCNhD+xCdOtiGDQiRZg==", "requires": { "debug": "^3.2.6", "iconv-lite": "^0.4.4", @@ -4781,7 +4836,8 @@ }, "node-pre-gyp": { "version": "0.13.0", - "bundled": true, + "resolved": "https://registry.npmjs.org/node-pre-gyp/-/node-pre-gyp-0.13.0.tgz", + "integrity": "sha512-Md1D3xnEne8b/HGVQkZZwV27WUi1ZRuZBij24TNaZwUPU3ZAFtvT6xxJGaUVillfmMKnn5oD1HoGsp2Ftik7SQ==", "requires": { "detect-libc": "^1.0.2", "mkdirp": "^0.5.1", @@ -4797,7 +4853,8 @@ }, "nopt": { "version": "4.0.1", - "bundled": true, + "resolved": "https://registry.npmjs.org/nopt/-/nopt-4.0.1.tgz", + "integrity": "sha1-0NRoWv1UFRk8jHUFYC0NF81kR00=", "requires": { "abbrev": "1", "osenv": "^0.1.4" @@ -4805,11 +4862,13 @@ }, "npm-bundled": { "version": "1.0.6", - "bundled": true + "resolved": "https://registry.npmjs.org/npm-bundled/-/npm-bundled-1.0.6.tgz", + "integrity": "sha512-8/JCaftHwbd//k6y2rEWp6k1wxVfpFzB6t1p825+cUb7Ym2XQfhwIC5KwhrvzZRJu+LtDE585zVaS32+CGtf0g==" }, "npm-packlist": { "version": "1.4.4", - "bundled": true, + "resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-1.4.4.tgz", + "integrity": "sha512-zTLo8UcVYtDU3gdeaFu2Xu0n0EvelfHDGuqtNIn5RO7yQj4H1TqNdBc/yZjxnWA0PVB8D3Woyp0i5B43JwQ6Vw==", "requires": { "ignore-walk": "^3.0.1", "npm-bundled": "^1.0.1" @@ -4817,7 +4876,8 @@ }, "npmlog": { "version": "4.1.2", - "bundled": true, + "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz", + "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==", "requires": { "are-we-there-yet": "~1.1.2", "console-control-strings": "~1.1.0", @@ -4827,30 +4887,36 @@ }, "number-is-nan": { "version": "1.0.1", - "bundled": true + "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", + "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=" }, "object-assign": { "version": "4.1.1", - "bundled": true + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" }, "once": { "version": "1.4.0", - "bundled": true, + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", "requires": { "wrappy": "1" } }, "os-homedir": { "version": "1.0.2", - "bundled": true + "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", + "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=" }, "os-tmpdir": { "version": "1.0.2", - "bundled": true + "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", + "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=" }, "osenv": { "version": "0.1.5", - "bundled": true, + "resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.5.tgz", + "integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==", "requires": { "os-homedir": "^1.0.0", "os-tmpdir": "^1.0.0" @@ -4858,11 +4924,13 @@ }, "path-is-absolute": { "version": "1.0.1", - "bundled": true + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" }, "process-nextick-args": { "version": "2.0.1", - "bundled": true + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" }, "protobufjs": { "version": "5.0.3", @@ -4877,7 +4945,8 @@ }, "rc": { "version": "1.2.8", - "bundled": true, + "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", + "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", "requires": { "deep-extend": "^0.6.0", "ini": "~1.3.0", @@ -4887,7 +4956,8 @@ }, "readable-stream": { "version": "2.3.6", - "bundled": true, + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", + "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", "requires": { "core-util-is": "~1.0.0", "inherits": "~2.0.3", @@ -4900,38 +4970,46 @@ }, "rimraf": { "version": "2.7.1", - "bundled": true, + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", + "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", "requires": { "glob": "^7.1.3" } }, "safe-buffer": { "version": "5.1.2", - "bundled": true + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" }, "safer-buffer": { "version": "2.1.2", - "bundled": true + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" }, "sax": { "version": "1.2.4", - "bundled": true + "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", + "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==" }, "semver": { "version": "5.7.1", - "bundled": true + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" }, "set-blocking": { "version": "2.0.0", - "bundled": true + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=" }, "signal-exit": { "version": "3.0.2", - "bundled": true + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", + "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=" }, "string-width": { "version": "1.0.2", - "bundled": true, + "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", + "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -4940,25 +5018,29 @@ }, "string_decoder": { "version": "1.1.1", - "bundled": true, + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", "requires": { "safe-buffer": "~5.1.0" } }, "strip-ansi": { "version": "3.0.1", - "bundled": true, + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", "requires": { "ansi-regex": "^2.0.0" } }, "strip-json-comments": { "version": "2.0.1", - "bundled": true + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=" }, "tar": { "version": "4.4.10", - "bundled": true, + "resolved": "https://registry.npmjs.org/tar/-/tar-4.4.10.tgz", + "integrity": "sha512-g2SVs5QIxvo6OLp0GudTqEf05maawKUxXru104iaayWA09551tFCTI8f1Asb4lPfkBr91k07iL4c11XO3/b0tA==", "requires": { "chownr": "^1.1.1", "fs-minipass": "^1.2.5", @@ -4971,22 +5053,26 @@ }, "util-deprecate": { "version": "1.0.2", - "bundled": true + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" }, "wide-align": { "version": "1.1.3", - "bundled": true, + "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", + "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", "requires": { "string-width": "^1.0.2 || 2" } }, "wrappy": { "version": "1.0.2", - "bundled": true + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" }, "yallist": { "version": "3.0.3", - "bundled": true + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.0.3.tgz", + "integrity": "sha512-S+Zk8DEWE6oKpV+vI3qWkaK+jSbIK86pCwe2IF/xwIpQ8jEuxpw9NyaGjmp9+BoJv5FV2piqCDcoCtStppiq2A==" } } }, @@ -5060,9 +5146,9 @@ } }, "hapi-swagger": { - "version": "11.0.2", - "resolved": "https://registry.npmjs.org/hapi-swagger/-/hapi-swagger-11.0.2.tgz", - "integrity": "sha512-NJd43dvdpCgdBztc9khIXreucmuEeGcJkD5ZarKk4Dgq56WbqDA0foauJ6jKe9RXLnoT0OJQJzbB3Kb3z43h7g==", + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/hapi-swagger/-/hapi-swagger-11.1.0.tgz", + "integrity": "sha512-ZffpCe6ayUbPz/7K+gRR4fPWHYUCBqzfKMzcVKHkqie681X8G/uVJLB1Kq/aoHiH5ELh5PFXfbJ8RjDPfc7Vkw==", "requires": { "@hapi/boom": "^8.0.1", "@hapi/hoek": "^8.2.4", @@ -5121,9 +5207,9 @@ "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" }, "has-symbols": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.0.tgz", - "integrity": "sha1-uhqPGvKg/DllD1yFA2dwQSIGO0Q=" + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.1.tgz", + "integrity": "sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg==" }, "has-value": { "version": "1.0.0", @@ -5226,14 +5312,14 @@ } }, "http-status": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/http-status/-/http-status-1.4.1.tgz", - "integrity": "sha512-nEg0G+mDyN+IkMkE3m+Sl6a0AeLAfuDBLraHeSSz8xB2V1O4BnHCW+waX2P2jDnp5yNEuK6NcvBByfWG2o/Unw==" + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/http-status/-/http-status-1.4.2.tgz", + "integrity": "sha512-mBnIohUwRw9NyXMEMMv8/GANnzEYUj0Y8d3uL01zDWFkxUjYyZ6rgCaAI2zZ1Wb34Oqtbx/nFZolPRDc8Xlm5A==" }, "https-proxy-agent": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-2.2.4.tgz", - "integrity": "sha512-OmvfoQ53WLjtA9HeYP9RNrWMJzzAz1JGaSFr1nijg0PVR1JaD/xbJq1mdEIIlxGpXp9eSe/O2LgU9DJmTPd0Eg==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-3.0.1.tgz", + "integrity": "sha512-+ML2Rbh6DAuee7d07tYGEKOEi2voWPUGan+ExdPbPW6Z3svq+JCqr0v8WmKPOkz1vOVykPCBSuobe7G8GJUtVg==", "dev": true, "requires": { "agent-base": "^4.3.0", @@ -5308,9 +5394,9 @@ "integrity": "sha1-wkOZUUVbs5kT2vKBN28VMOEErfM=" }, "import-fresh": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.1.0.tgz", - "integrity": "sha512-PpuksHKGt8rXfWEr9m9EHIpgyyaltBy8+eF6GJM0QCAxMgxCfucMF3mjecK2QsJr0amJW7gTqh5/wht0z2UhEQ==", + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.2.1.tgz", + "integrity": "sha512-6e1q1cnWP2RXD9/keSkxHScg508CdXqXWgWBaETNhyuBFz+kUZlKboh+ISK+bU++DmbHimVBrOz/zzPe0sZ3sQ==", "dev": true, "requires": { "parent-module": "^1.0.0", @@ -5352,6 +5438,12 @@ "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", "dev": true }, + "indent-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", + "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", + "dev": true + }, "infer-owner": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/infer-owner/-/infer-owner-1.0.4.tgz", @@ -5499,6 +5591,12 @@ } } }, + "is-arguments": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.0.4.tgz", + "integrity": "sha512-xPh0Rmt8NE65sNzvyUmWgI1tz3mKq74lGA0mL8LYZcoIzKOzDh6HmrYm3d18k60nHerC8A9Km8kYu87zfSFnLA==", + "dev": true + }, "is-arrayish": { "version": "0.3.2", "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz", @@ -5707,11 +5805,11 @@ "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=" }, "is-symbol": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.2.tgz", - "integrity": "sha512-HS8bZ9ox60yCJLH9snBpIwv9pYUAkcuLhSA1oero1UB5y9aiQpRA8y2ex945AOtCZL1lJDeIk3G5LthswI46Lw==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.3.tgz", + "integrity": "sha512-OwijhaRSgqvhm/0ZdAcXNZt9lYdKFpcRDT5ULUuYXPoT794UNOdU+gpT6Rzo7b4V2HUl/op6GqY894AZwv9faQ==", "requires": { - "has-symbols": "^1.0.0" + "has-symbols": "^1.0.1" } }, "is-typedarray": { @@ -5947,9 +6045,9 @@ }, "dependencies": { "bluebird": { - "version": "3.7.1", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.1.tgz", - "integrity": "sha512-DdmyoGCleJnkbp3nkbxTLJ18rjDsE4yCggEwKNXkeV123sPNfOCYeDoeuOY+F2FrSjO1YXcTU+dsy96KMy+gcg==", + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", + "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", "dev": true }, "escape-string-regexp": { @@ -5983,6 +6081,12 @@ "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==" }, + "json-parse-even-better-errors": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.0.1.tgz", + "integrity": "sha512-XFY2Mbnmg+8r7MRsxfArVkZcfjxGlF/NjM3LsPXVeCX/GBF/1FTCv+idHBYC4qLPtK7q8HC8bapLoWqnhP/bXw==", + "dev": true + }, "json-parse-helpfulerror": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/json-parse-helpfulerror/-/json-parse-helpfulerror-1.0.3.tgz", @@ -6180,9 +6284,9 @@ "dev": true }, "knex": { - "version": "0.20.3", - "resolved": "https://registry.npmjs.org/knex/-/knex-0.20.3.tgz", - "integrity": "sha512-zzYO34pSCCYVqRTbCp8xL+Z7fvHQl5anif3Oacu6JaHFDubB7mFGWRRJBNSO3N8Ql4g4CxUgBctaPiliwoOsNA==", + "version": "0.20.4", + "resolved": "https://registry.npmjs.org/knex/-/knex-0.20.4.tgz", + "integrity": "sha512-gNpYj9BtacWnQwkyPaHOlzHRLJ7N6Abz8AKYb4OqoDA/iCY50VAUSpigjkS7Z4sr7uW64sxW2cVoXudaLN1ZQw==", "requires": { "bluebird": "^3.7.1", "colorette": "1.1.0", @@ -6202,9 +6306,9 @@ }, "dependencies": { "bluebird": { - "version": "3.7.1", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.1.tgz", - "integrity": "sha512-DdmyoGCleJnkbp3nkbxTLJ18rjDsE4yCggEwKNXkeV123sPNfOCYeDoeuOY+F2FrSjO1YXcTU+dsy96KMy+gcg==" + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", + "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==" }, "debug": { "version": "4.1.1", @@ -6474,22 +6578,25 @@ } }, "make-fetch-happen": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-5.0.1.tgz", - "integrity": "sha512-b4dfaMvUDR67zxUq1+GN7Ke9rH5WvGRmoHuMH7l+gmUCR2tCXFP6mpeJ9Dp+jB6z8mShRopSf1vLRBhRs8Cu5w==", + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-6.1.0.tgz", + "integrity": "sha512-Q/RHcHofC+BnleSGDiO3SQQX2mCvXz639s+kJ7+loR4RPT487itVJ8RWIyBEfnqpnkaUFaWgNyV6CxT7eyDdEA==", "dev": true, "requires": { "agentkeepalive": "^3.4.1", - "cacache": "^12.0.0", + "cacache": "^13.0.1", "http-cache-semantics": "^3.8.1", "http-proxy-agent": "^2.1.0", - "https-proxy-agent": "^2.2.3", + "https-proxy-agent": "^3.0.1", "lru-cache": "^5.1.1", - "mississippi": "^3.0.0", - "node-fetch-npm": "^2.0.2", + "minipass": "^3.0.0", + "minipass-collect": "^1.0.2", + "minipass-fetch": "^1.1.2", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.2", "promise-retry": "^1.1.1", "socks-proxy-agent": "^4.0.0", - "ssri": "^6.0.0" + "ssri": "^7.0.1" }, "dependencies": { "lru-cache": { @@ -6630,18 +6737,11 @@ "integrity": "sha512-UbfJCR4UAVRNgMpfImz05smAXK7+c+ZntjaA26ANtkXLlOe947Aag5zdIcKQULAiF9Cq4WxBi9jUs5zkA84bYQ==" }, "mime-types": { - "version": "2.1.24", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.24.tgz", - "integrity": "sha512-WaFHS3MCl5fapm3oLxU4eYDw77IQM2ACcxQ9RIxfaC3ooc6PFuBMGZZsYpvoXS5D5QTWPieo1jjLdAm3TBP3cQ==", + "version": "2.1.25", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.25.tgz", + "integrity": "sha512-5KhStqB5xpTAeGqKBAMgwaYMnQik7teQN4IAzC7npDv6kzeU6prfkR67bc87J1kWMPGkoaZSq1npmexMgkmEVg==", "requires": { - "mime-db": "1.40.0" - }, - "dependencies": { - "mime-db": { - "version": "1.40.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.40.0.tgz", - "integrity": "sha512-jYdeOMPy9vnxEqFRRo6ZvTZ8d9oPb+k18PKoYNYUe2stVEBPPwsln/qWzdbmaIvnhZ9v2P+CuecK+fpUfsV2mA==" - } + "mime-db": "1.42.0" } }, "mimic-fn": { @@ -6675,74 +6775,95 @@ "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" }, "minipass": { - "version": "2.9.0", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-2.9.0.tgz", - "integrity": "sha512-wxfUjg9WebH+CUDX/CdbRlh5SmfZiy/hpkxaRI16Y9W56Pa75sWgd/rvFilSgrauD9NyFymP/+JFV3KwzIsJeg==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.1.1.tgz", + "integrity": "sha512-UFqVihv6PQgwj8/yTGvl9kPz7xIAY+R5z6XYjRInD3Gk3qx6QGSD6zEcpeG4Dy/lQnv1J6zv8ejV90hyYIKf3w==", "dev": true, "requires": { - "safe-buffer": "^5.1.2", - "yallist": "^3.0.0" + "yallist": "^4.0.0" }, "dependencies": { "yallist": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", "dev": true } } }, - "minizlib": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-1.3.3.tgz", - "integrity": "sha512-6ZYMOEnmVsdCeTJVE0W9ZD+pVnE8h9Hma/iOwwRDsdQoePpoX56/8B6z3P9VNwppJuBKNRuFDRNRqRWexT9G9Q==", + "minipass-collect": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/minipass-collect/-/minipass-collect-1.0.2.tgz", + "integrity": "sha512-6T6lH0H8OG9kITm/Jm6tdooIbogG9e0tLgpY6mphXSm/A9u8Nq1ryBG+Qspiub9LjWlBPsPS3tWQ/Botq4FdxA==", "dev": true, "requires": { - "minipass": "^2.9.0" + "minipass": "^3.0.0" } }, - "mississippi": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/mississippi/-/mississippi-3.0.0.tgz", - "integrity": "sha512-x471SsVjUtBRtcvd4BzKE9kFC+/2TeWgKCgw0bZcw1b9l2X3QX5vCWgF+KaZaYm87Ss//rHnWryupDrgLvmSkA==", + "minipass-fetch": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/minipass-fetch/-/minipass-fetch-1.2.1.tgz", + "integrity": "sha512-ssHt0dkljEDaKmTgQ04DQgx2ag6G2gMPxA5hpcsoeTbfDgRf2fC2gNSRc6kISjD7ckCpHwwQvXxuTBK8402fXg==", "dev": true, "requires": { - "concat-stream": "^1.5.0", - "duplexify": "^3.4.2", - "end-of-stream": "^1.1.0", - "flush-write-stream": "^1.0.0", - "from2": "^2.1.0", - "parallel-transform": "^1.1.0", - "pump": "^3.0.0", - "pumpify": "^1.3.3", - "stream-each": "^1.1.0", - "through2": "^2.0.0" - }, + "encoding": "^0.1.12", + "minipass": "^3.1.0", + "minipass-pipeline": "^1.2.2", + "minipass-sized": "^1.0.3", + "minizlib": "^2.0.0" + } + }, + "minipass-flush": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/minipass-flush/-/minipass-flush-1.0.5.tgz", + "integrity": "sha512-JmQSYYpPUqX5Jyn1mXaRwOda1uQ8HP5KAT/oDSLCzt1BYRhQU0/hDtsB1ufZfEEzMZ9aAVmsBw8+FWsIXlClWw==", + "dev": true, + "requires": { + "minipass": "^3.0.0" + } + }, + "minipass-json-stream": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/minipass-json-stream/-/minipass-json-stream-1.0.1.tgz", + "integrity": "sha512-ODqY18UZt/I8k+b7rl2AENgbWE8IDYam+undIJONvigAz8KR5GWblsFTEfQs0WODsjbSXWlm+JHEv8Gr6Tfdbg==", + "dev": true, + "requires": { + "jsonparse": "^1.3.1", + "minipass": "^3.0.0" + } + }, + "minipass-pipeline": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/minipass-pipeline/-/minipass-pipeline-1.2.2.tgz", + "integrity": "sha512-3JS5A2DKhD2g0Gg8x3yamO0pj7YeKGwVlDS90pF++kxptwx/F+B//roxf9SqYil5tQo65bijy+dAuAFZmYOouA==", + "dev": true, + "requires": { + "minipass": "^3.0.0" + } + }, + "minipass-sized": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/minipass-sized/-/minipass-sized-1.0.3.tgz", + "integrity": "sha512-MbkQQ2CTiBMlA2Dm/5cY+9SWFEN8pzzOXi6rlM5Xxq0Yqbda5ZQy9sU75a673FE9ZK0Zsbr6Y5iP6u9nktfg2g==", + "dev": true, + "requires": { + "minipass": "^3.0.0" + } + }, + "minizlib": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.0.tgz", + "integrity": "sha512-EzTZN/fjSvifSX0SlqUERCN39o6T40AMarPbv0MrarSFtIITCBh7bi+dU8nxGFHuqs9jdIAeoYoKuQAAASsPPA==", + "dev": true, + "requires": { + "minipass": "^3.0.0", + "yallist": "^4.0.0" + }, "dependencies": { - "pump": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", - "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", - "dev": true, - "requires": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - }, - "through2": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", - "dev": true, - "requires": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" - } - }, - "xtend": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", - "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", "dev": true } } @@ -6979,17 +7100,6 @@ } } }, - "node-fetch-npm": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/node-fetch-npm/-/node-fetch-npm-2.0.2.tgz", - "integrity": "sha512-nJIxm1QmAj4v3nfCvEeCrYSoVwXyxLnaPBK5W1W5DGEJwjlKuC2VEUycGw5oxk+4zZahRrB84PUJJgEmhFTDFw==", - "dev": true, - "requires": { - "encoding": "^0.1.11", - "json-parse-better-errors": "^1.0.0", - "safe-buffer": "^5.1.1" - } - }, "node-rdkafka": { "version": "2.7.1", "resolved": "https://registry.npmjs.org/node-rdkafka/-/node-rdkafka-2.7.1.tgz", @@ -7000,9 +7110,9 @@ } }, "nodemon": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-2.0.1.tgz", - "integrity": "sha512-UC6FVhNLXjbbV4UzaXA3wUdbEkUZzLGgMGzmxvWAex5nzib/jhcSHVFlQODdbuUHq8SnnZ4/EABBAbC3RplvPg==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-2.0.2.tgz", + "integrity": "sha512-GWhYPMfde2+M0FsHnggIHXTqPDHXia32HRhh6H0d75Mt9FKUoCBvumNHr7LdrpPBTKxsWmIEOjoN+P4IU6Hcaw==", "dev": true, "requires": { "chokidar": "^3.2.2", @@ -7076,21 +7186,24 @@ } }, "npm-bundled": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/npm-bundled/-/npm-bundled-1.0.6.tgz", - "integrity": "sha512-8/JCaftHwbd//k6y2rEWp6k1wxVfpFzB6t1p825+cUb7Ym2XQfhwIC5KwhrvzZRJu+LtDE585zVaS32+CGtf0g==", - "dev": true + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/npm-bundled/-/npm-bundled-1.1.1.tgz", + "integrity": "sha512-gqkfgGePhTpAEgUsGEgcq1rqPXA+tv/aVBlgEzfXwA1yiUJF7xtEt3CtVwOjNYQOVknDk0F20w58Fnm3EtG0fA==", + "dev": true, + "requires": { + "npm-normalize-package-bin": "^1.0.1" + } }, "npm-check-updates": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/npm-check-updates/-/npm-check-updates-3.2.2.tgz", - "integrity": "sha512-smZLGQWYbNOQVL787LwxTKakhTll/GZ4EwlKRfskD+eTCSpxdwpbkUHbT0QxyCf1uZw86TXeAFGw8ETzmW3Fqw==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-check-updates/-/npm-check-updates-4.0.1.tgz", + "integrity": "sha512-rDrKAqhQuTYq2EkndroPMZGA9N6tpTotOVOIJoxRa3ZKnb/mOcq2TZv4A4LLSM8+9kZlP+sBwE+XAGh8wWZw/w==", "dev": true, "requires": { - "chalk": "^2.4.2", + "chalk": "^3.0.0", "cint": "^8.2.1", "cli-table": "^0.3.1", - "commander": "^3.0.2", + "commander": "^4.0.1", "fast-diff": "^1.2.0", "find-up": "4.1.0", "get-stdin": "^7.0.0", @@ -7098,10 +7211,10 @@ "libnpmconfig": "^1.2.1", "lodash": "^4.17.15", "node-alias": "^1.0.4", - "pacote": "^9.5.8", + "pacote": "^10.2.0", "progress": "^2.0.3", - "prompts": "^2.2.1", - "rc-config-loader": "^2.0.4", + "prompts": "^2.3.0", + "rc-config-loader": "^3.0.0", "requireg": "^0.2.2", "semver": "^6.3.0", "semver-utils": "^1.1.4", @@ -7124,6 +7237,16 @@ "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", "dev": true }, + "ansi-styles": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.0.tgz", + "integrity": "sha512-7kFQgnEaMdRtwf6uSfUnVr9gSGC7faurn+J/Mv90/W+iTtN0405/nLdopfMWwchyxhbGYl6TC4Sccn9TUkGAgg==", + "dev": true, + "requires": { + "@types/color-name": "^1.1.1", + "color-convert": "^2.0.1" + } + }, "boxen": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/boxen/-/boxen-3.2.0.tgz", @@ -7138,6 +7261,58 @@ "term-size": "^1.2.0", "type-fest": "^0.3.0", "widest-line": "^2.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + } } }, "camelcase": { @@ -7146,6 +7321,16 @@ "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", "dev": true }, + "chalk": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", + "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, "ci-info": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", @@ -7158,10 +7343,19 @@ "integrity": "sha512-gpaBrMAizVEANOpfZp/EEUixTXDyGt7DFzdK5hU+UbWt/J0lB0w20ncZj59Z9a93xHb9u12zF5BS6i9RKbtg4w==", "dev": true }, - "commander": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/commander/-/commander-3.0.2.tgz", - "integrity": "sha512-Gar0ASD4BDyKC4hl4DwHqDrmvjoxWKZigVnAbn5H1owvm4CxCPdb0HQDehwNYMJpla5+M2tPmPARzhtYuwpHow==", + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, "configstore": { @@ -7206,6 +7400,12 @@ "url-parse-lax": "^3.0.0" } }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, "is-ci": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", @@ -7309,6 +7509,15 @@ "ansi-regex": "^4.1.0" } }, + "supports-color": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz", + "integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + }, "update-notifier": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-3.0.1.tgz", @@ -7327,6 +7536,58 @@ "latest-version": "^5.0.0", "semver-diff": "^2.0.0", "xdg-basedir": "^3.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + } } }, "url-parse-lax": { @@ -7340,22 +7601,54 @@ } } }, + "npm-normalize-package-bin": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/npm-normalize-package-bin/-/npm-normalize-package-bin-1.0.1.tgz", + "integrity": "sha512-EPfafl6JL5/rU+ot6P3gRSCpPDW5VmIzX959Ob1+ySFUuuYHWHekXpwdUZcKP5C+DS4GEtdJluwBjnsNDl+fSA==", + "dev": true + }, "npm-package-arg": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/npm-package-arg/-/npm-package-arg-6.1.1.tgz", - "integrity": "sha512-qBpssaL3IOZWi5vEKUKW0cO7kzLeT+EQO9W8RsLOZf76KF9E/K9+wH0C7t06HXPpaH8WH5xF1MExLuCwbTqRUg==", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/npm-package-arg/-/npm-package-arg-7.0.0.tgz", + "integrity": "sha512-xXxr8y5U0kl8dVkz2oK7yZjPBvqM2fwaO5l3Yg13p03v8+E3qQcD0JNhHzjL1vyGgxcKkD0cco+NLR72iuPk3g==", "dev": true, "requires": { - "hosted-git-info": "^2.7.1", + "hosted-git-info": "^3.0.2", "osenv": "^0.1.5", "semver": "^5.6.0", "validate-npm-package-name": "^3.0.0" + }, + "dependencies": { + "hosted-git-info": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-3.0.2.tgz", + "integrity": "sha512-ezZMWtHXm7Eb7Rq4Mwnx2vs79WUx2QmRg3+ZqeGroKzfDO+EprOcgRPYghsOP9JuYBfK18VojmRTGCg8Ma+ktw==", + "dev": true, + "requires": { + "lru-cache": "^5.1.1" + } + }, + "lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "requires": { + "yallist": "^3.0.2" + } + }, + "yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + } } }, "npm-packlist": { - "version": "1.4.6", - "resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-1.4.6.tgz", - "integrity": "sha512-u65uQdb+qwtGvEJh/DgQgW1Xg7sqeNbmxYyrvlNznaVTjV3E5P6F/EFjM+BVHXl7JJlsdG8A64M0XI8FI/IOlg==", + "version": "1.4.7", + "resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-1.4.7.tgz", + "integrity": "sha512-vAj7dIkp5NhieaGZxBJB8fF4R0078rqsmhJcAfXZ6O7JJhjhPK96n5Ry1oZcfLXgfun0GWTZPOxaEyqv8GBykQ==", "dev": true, "requires": { "ignore-walk": "^3.0.1", @@ -7363,28 +7656,31 @@ } }, "npm-pick-manifest": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/npm-pick-manifest/-/npm-pick-manifest-3.0.2.tgz", - "integrity": "sha512-wNprTNg+X5nf+tDi+hbjdHhM4bX+mKqv6XmPh7B5eG+QY9VARfQPfCEH013H5GqfNj6ee8Ij2fg8yk0mzps1Vw==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/npm-pick-manifest/-/npm-pick-manifest-4.0.0.tgz", + "integrity": "sha512-SsYReLe/16UgSL6GKX6GO4o3RVBthVy1uuHq6kZ9mkPeQXpOHbrLZoV13i8fr3LQtET+pLPSfD13e4RIYfkX5Q==", "dev": true, "requires": { "figgy-pudding": "^3.5.1", - "npm-package-arg": "^6.0.0", + "npm-package-arg": "^7.0.0", "semver": "^5.4.1" } }, "npm-registry-fetch": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/npm-registry-fetch/-/npm-registry-fetch-4.0.2.tgz", - "integrity": "sha512-Z0IFtPEozNdeZRPh3aHHxdG+ZRpzcbQaJLthsm3VhNf6DScicTFRHZzK82u8RsJUsUHkX+QH/zcB/5pmd20H4A==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/npm-registry-fetch/-/npm-registry-fetch-5.0.1.tgz", + "integrity": "sha512-GK7SUx188KSkPvbceOGO59L3FGHLBYoP0YEhUAKYjAypL15v5xmoempZ9rIJS2R/1eOS0KS1Y9AQe79YfgNxaw==", "dev": true, "requires": { - "JSONStream": "^1.3.4", "bluebird": "^3.5.1", "figgy-pudding": "^3.4.1", "lru-cache": "^5.1.1", - "make-fetch-happen": "^5.0.0", - "npm-package-arg": "^6.1.0", + "make-fetch-happen": "^6.0.0", + "minipass": "^3.0.0", + "minipass-fetch": "^1.1.2", + "minipass-json-stream": "^1.0.1", + "minizlib": "^2.0.0", + "npm-package-arg": "^7.0.0", "safe-buffer": "^5.2.0" }, "dependencies": { @@ -7653,6 +7949,12 @@ "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.7.0.tgz", "integrity": "sha512-a7pEHdh1xKIAgTySUGgLMx/xwDZskN1Ud6egYYN3EdRW4ZMPNEDUTF+hwy2LUC+Bl+SyLXANnwz/jyh/qutKUw==" }, + "object-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.0.2.tgz", + "integrity": "sha512-Epah+btZd5wrrfjkJZq1AOB9O6OxUQto45hzFd7lXGrpHPGE0W1k+426yrZV+k6NJOzLNNW/nVsmZdIWsAqoOQ==", + "dev": true + }, "object-keys": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", @@ -7871,6 +8173,15 @@ "p-limit": "^2.2.0" } }, + "p-map": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-3.0.0.tgz", + "integrity": "sha512-d3qXVTF/s+W+CdJ5A29wywV2n8CQQYahlgz2bFiA+4eVNJbHJodPZ+/gXwPGh0bOqA+j8S+6+ckmvLGPk1QpxQ==", + "dev": true, + "requires": { + "aggregate-error": "^3.0.0" + } + }, "p-try": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", @@ -7902,57 +8213,32 @@ } }, "pacote": { - "version": "9.5.9", - "resolved": "https://registry.npmjs.org/pacote/-/pacote-9.5.9.tgz", - "integrity": "sha512-S1nYW9ly+3btn3VmwRAk2LG3TEh8mkrFdY+psbnHSk8oPODbZ28uG0Z0d3yI0EpqcpLR6BukoVRf3H4IbGCkPQ==", + "version": "10.2.1", + "resolved": "https://registry.npmjs.org/pacote/-/pacote-10.2.1.tgz", + "integrity": "sha512-sPHVOF7uKY8yDivKYimb5l3D8BvNNjR+9FmzkThOTtftkddGY/C6uENVkgc3HQtOpCX8R2qztkSAOI369bgLEA==", "dev": true, "requires": { - "bluebird": "^3.5.3", - "cacache": "^12.0.2", - "chownr": "^1.1.2", - "figgy-pudding": "^3.5.1", - "get-stream": "^4.1.0", - "glob": "^7.1.3", + "cacache": "^13.0.1", + "chownr": "^1.1.3", + "fs-minipass": "^2.0.0", "infer-owner": "^1.0.4", "lru-cache": "^5.1.1", - "make-fetch-happen": "^5.0.0", - "minimatch": "^3.0.4", - "minipass": "^2.3.5", - "mississippi": "^3.0.0", - "mkdirp": "^0.5.1", - "normalize-package-data": "^2.4.0", - "npm-package-arg": "^6.1.0", - "npm-packlist": "^1.1.12", - "npm-pick-manifest": "^3.0.0", - "npm-registry-fetch": "^4.0.0", + "minipass": "^3.0.1", + "minipass-fetch": "^1.2.1", + "npm-package-arg": "^7.0.0", + "npm-packlist": "^1.4.6", + "npm-pick-manifest": "^4.0.0", + "npm-registry-fetch": "^5.0.1", "osenv": "^0.1.5", "promise-inflight": "^1.0.1", "promise-retry": "^1.1.1", - "protoduck": "^5.0.1", - "rimraf": "^2.6.2", - "safe-buffer": "^5.1.2", - "semver": "^5.6.0", - "ssri": "^6.0.1", - "tar": "^4.4.10", - "unique-filename": "^1.1.1", - "which": "^1.3.1" + "read-package-json-fast": "^1.0.3", + "semver": "^6.3.0", + "ssri": "^7.1.0", + "tar": "^5.0.5", + "which": "^2.0.1" }, "dependencies": { - "bluebird": { - "version": "3.7.1", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.1.tgz", - "integrity": "sha512-DdmyoGCleJnkbp3nkbxTLJ18rjDsE4yCggEwKNXkeV123sPNfOCYeDoeuOY+F2FrSjO1YXcTU+dsy96KMy+gcg==", - "dev": true - }, - "get-stream": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", - "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", - "dev": true, - "requires": { - "pump": "^3.0.0" - } - }, "lru-cache": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", @@ -7962,14 +8248,19 @@ "yallist": "^3.0.2" } }, - "pump": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", - "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + }, + "which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", "dev": true, "requires": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" + "isexe": "^2.0.0" } }, "yallist": { @@ -7980,17 +8271,6 @@ } } }, - "parallel-transform": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/parallel-transform/-/parallel-transform-1.2.0.tgz", - "integrity": "sha512-P2vSmIu38uIlvdcU7fDkyrxj33gTUy/ABO5ZUbGowxNCopBq/OoD42bP4UmMrJoPyk4Uqf0mu3mtWBhHCZD8yg==", - "dev": true, - "requires": { - "cyclist": "^1.0.1", - "inherits": "^2.0.3", - "readable-stream": "^2.1.5" - } - }, "parent-module": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-0.1.0.tgz", @@ -8410,15 +8690,6 @@ } } }, - "protoduck": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/protoduck/-/protoduck-5.0.1.tgz", - "integrity": "sha512-WxoCeDCoCBY55BMvj4cAEjdVUFGRWed9ZxPlqTKYyw1nDDTQ4pqmnIMAGfJlg7Dx35uB/M+PHJPTmGOvaCaPTg==", - "dev": true, - "requires": { - "genfun": "^5.0.0" - } - }, "proxyquire": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/proxyquire/-/proxyquire-2.1.3.tgz", @@ -8436,9 +8707,9 @@ "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=" }, "psl": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/psl/-/psl-1.4.0.tgz", - "integrity": "sha512-HZzqCGPecFLyoRj5HLfuDSKYTJkAfB5thKBIkRHtGjWwY7p1dAyveIbXIq4tO0KYfDF2tHqPUgY9SDnGm00uFw==" + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.6.0.tgz", + "integrity": "sha512-SYKKmVel98NCOYXpkwUqZqh0ahZeeKfmisiLIcEZdsb+WbLv02g/dI5BUmZnIyOe7RzZtLax81nnb2HbvC2tzA==" }, "pstree.remy": { "version": "1.1.7", @@ -8510,17 +8781,14 @@ } }, "rc-config-loader": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/rc-config-loader/-/rc-config-loader-2.0.5.tgz", - "integrity": "sha512-T464K2MQlnNWOblUDIglpFhyN+zYJq7jSlL++/N0hUkcmIXeNFumwXFVdtf8qhUGohn4RYQ0wdi74R575I44PQ==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/rc-config-loader/-/rc-config-loader-3.0.0.tgz", + "integrity": "sha512-bwfUSB37TWkHfP+PPjb/x8BUjChFmmBK44JMfVnU7paisWqZl/o5k7ttCH+EQLnrbn2Aq8Fo1LAsyUiz+WF4CQ==", "dev": true, "requires": { "debug": "^4.1.1", "js-yaml": "^3.12.0", - "json5": "^2.1.0", - "object-assign": "^4.1.0", - "object-keys": "^1.0.12", - "path-exists": "^3.0.0", + "json5": "^2.1.1", "require-from-string": "^2.0.2" }, "dependencies": { @@ -8532,19 +8800,13 @@ "requires": { "ms": "^2.1.1" } - }, - "path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", - "dev": true } } }, "react-is": { - "version": "16.11.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.11.0.tgz", - "integrity": "sha512-gbBVYR2p8mnriqAwWx9LbuUrShnAuSCNnuPGyc7GJrMVQtPDAh8iLpv7FRuMPFb56KkaVZIYSz1PrjI9q0QPCw==", + "version": "16.12.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.12.0.tgz", + "integrity": "sha512-rPCkf/mWBtKc97aLL9/txD8DZdemK0vkA3JMLShjlJB3Pj3s+lpf1KaBzMfQrAmhMQB0n1cU/SUGgKKBCe837Q==", "dev": true }, "read": { @@ -8556,6 +8818,16 @@ "mute-stream": "~0.0.4" } }, + "read-package-json-fast": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/read-package-json-fast/-/read-package-json-fast-1.1.1.tgz", + "integrity": "sha512-vDw3wiWLwUXhYBCVvjAQJGCI5+DcgwGSYlFETCV9m/b107/yNBnYfCkoVrwHj7338j1z24/dxUXvtrXVjVjL1Q==", + "dev": true, + "requires": { + "json-parse-even-better-errors": "^2.0.1", + "npm-normalize-package-bin": "^1.0.1" + } + }, "read-pkg": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", @@ -8657,6 +8929,37 @@ "resolved": "https://registry.npmjs.org/regexp-clone/-/regexp-clone-1.0.0.tgz", "integrity": "sha512-TuAasHQNamyyJ2hb97IuBEif4qBHGjPHBS64sZwytpLEqtBQ1gPJTnOaQ6qmpET16cK14kkjbazl6+p0RRv0yw==" }, + "regexp.prototype.flags": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.3.0.tgz", + "integrity": "sha512-2+Q0C5g951OlYlJz6yu5/M33IcsESLlLfsyIaLJaG4FA2r4yP8MvVMJUUP/fVBkSpbbbZlS5gynbEWLipiiXiQ==", + "dev": true, + "requires": { + "define-properties": "^1.1.3", + "es-abstract": "^1.17.0-next.1" + }, + "dependencies": { + "es-abstract": { + "version": "1.17.0-next.1", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.17.0-next.1.tgz", + "integrity": "sha512-7MmGr03N7Rnuid6+wyhD9sHNE2n4tFSwExnU2lQl3lIo2ShXWGePY80zYaoMOmILWv57H0amMjZGHNzzGG70Rw==", + "dev": true, + "requires": { + "es-to-primitive": "^1.2.1", + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-symbols": "^1.0.1", + "is-callable": "^1.1.4", + "is-regex": "^1.0.4", + "object-inspect": "^1.7.0", + "object-keys": "^1.1.1", + "object.assign": "^4.1.0", + "string.prototype.trimleft": "^2.1.0", + "string.prototype.trimright": "^2.1.0" + } + } + } + }, "regexpp": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-2.0.1.tgz", @@ -8815,9 +9118,9 @@ } }, "resolve": { - "version": "1.12.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", - "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", + "version": "1.13.1", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.13.1.tgz", + "integrity": "sha512-CxqObCX8K8YtAhOBRg+lrcdn+LK+WYOS8tSjqSFbjtrI5PnS63QPhZl4+yKfrU9tdsbMu9Anr/amegT87M9Z6w==", "requires": { "path-parse": "^1.0.6" } @@ -9378,12 +9681,13 @@ } }, "ssri": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/ssri/-/ssri-6.0.1.tgz", - "integrity": "sha512-3Wge10hNcT1Kur4PDFwEieXSCMCJs/7WvSACcrMYrNp+b8kDL1/0wJch5Ni2WrtwEa2IO8OsVfeKIciKCDx/QA==", + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/ssri/-/ssri-7.1.0.tgz", + "integrity": "sha512-77/WrDZUWocK0mvA5NTRQyveUf+wsrIc6vyrxpS8tVvYBcX215QbafrJR3KtkpskIzoFLqqNuuYQvxaMjXJ/0g==", "dev": true, "requires": { - "figgy-pudding": "^3.5.1" + "figgy-pudding": "^3.5.1", + "minipass": "^3.1.1" } }, "stack-trace": { @@ -9466,16 +9770,6 @@ "resolved": "https://registry.npmjs.org/stealthy-require/-/stealthy-require-1.1.1.tgz", "integrity": "sha1-NbCYdbT/SfJqd35QmzCQoyJr8ks=" }, - "stream-each": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/stream-each/-/stream-each-1.2.3.tgz", - "integrity": "sha512-vlMC2f8I2u/bZGqkdfLQW/13Zihpej/7PmSiMQsbYddxuTsJp8vRe2x2FvVExZg7FaOds43ROAuFJwPR4MTZLw==", - "dev": true, - "requires": { - "end-of-stream": "^1.1.0", - "stream-shift": "^1.0.0" - } - }, "stream-shift": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.0.tgz", @@ -9502,14 +9796,35 @@ } }, "string.prototype.trim": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.1.2.tgz", - "integrity": "sha1-0E3iyJ4Tf019IG8Ia17S+ua+jOo=", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.1.tgz", + "integrity": "sha512-MjGFEeqixw47dAMFMtgUro/I0+wNqZB5GKXGt1fFr24u3TzDXCPu7J9Buppzoe3r/LqkSDLDDJzE15RGWDGAVw==", "dev": true, "requires": { - "define-properties": "^1.1.2", - "es-abstract": "^1.5.0", - "function-bind": "^1.0.2" + "define-properties": "^1.1.3", + "es-abstract": "^1.17.0-next.1", + "function-bind": "^1.1.1" + }, + "dependencies": { + "es-abstract": { + "version": "1.17.0-next.1", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.17.0-next.1.tgz", + "integrity": "sha512-7MmGr03N7Rnuid6+wyhD9sHNE2n4tFSwExnU2lQl3lIo2ShXWGePY80zYaoMOmILWv57H0amMjZGHNzzGG70Rw==", + "dev": true, + "requires": { + "es-to-primitive": "^1.2.1", + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-symbols": "^1.0.1", + "is-callable": "^1.1.4", + "is-regex": "^1.0.4", + "object-inspect": "^1.7.0", + "object-keys": "^1.1.1", + "object.assign": "^4.1.0", + "string.prototype.trimleft": "^2.1.0", + "string.prototype.trimright": "^2.1.0" + } + } } }, "string.prototype.trimleft": { @@ -9751,31 +10066,40 @@ } }, "tape": { - "version": "4.11.0", - "resolved": "https://registry.npmjs.org/tape/-/tape-4.11.0.tgz", - "integrity": "sha512-yixvDMX7q7JIs/omJSzSZrqulOV51EC9dK8dM0TzImTIkHWfe2/kFyL5v+d9C+SrCMaICk59ujsqFAVidDqDaA==", + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/tape/-/tape-4.12.0.tgz", + "integrity": "sha512-PWs/TopmfVeYyLNZnfKsoV160xjNq1LvX2SWzZTyhVYsDldR93p5Zp0lfmsY3BCpZdVMXBOkfYZFeScEfsFvKQ==", "dev": true, "requires": { - "deep-equal": "~1.0.1", + "deep-equal": "~1.1.1", "defined": "~1.0.0", "for-each": "~0.3.3", "function-bind": "~1.1.1", - "glob": "~7.1.4", + "glob": "~7.1.6", "has": "~1.0.3", "inherits": "~2.0.4", + "is-regex": "~1.0.5", "minimist": "~1.2.0", - "object-inspect": "~1.6.0", - "resolve": "~1.11.1", + "object-inspect": "~1.7.0", + "resolve": "~1.13.1", "resumer": "~0.0.0", - "string.prototype.trim": "~1.1.2", + "string.prototype.trim": "~1.2.1", "through": "~2.3.8" }, "dependencies": { "deep-equal": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-1.0.1.tgz", - "integrity": "sha1-9dJgKStmDghO/0zbyfCK0yR0SLU=", - "dev": true + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-1.1.1.tgz", + "integrity": "sha512-yd9c5AdiqVcR+JjcwUQb9DkhJc8ngNr0MahEBGvDiJw8puWab2yZlh+nkasOnZP+EGTAP6rRp2JzJhJZzvNF8g==", + "dev": true, + "requires": { + "is-arguments": "^1.0.4", + "is-date-object": "^1.0.1", + "is-regex": "^1.0.4", + "object-is": "^1.0.1", + "object-keys": "^1.1.1", + "regexp.prototype.flags": "^1.2.0" + } }, "defined": { "version": "1.0.0", @@ -9783,26 +10107,20 @@ "integrity": "sha1-yY2bzvdWdBiOEQlpFRGZ45sfppM=", "dev": true }, + "is-regex": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.5.tgz", + "integrity": "sha512-vlKW17SNq44owv5AQR3Cq0bQPEb8+kF3UKZ2fiZNOWtztYE5i0CzCZxFDwO58qAOWtxdBRVO/V5Qin1wjCqFYQ==", + "dev": true, + "requires": { + "has": "^1.0.3" + } + }, "minimist": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", "dev": true - }, - "object-inspect": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.6.0.tgz", - "integrity": "sha512-GJzfBZ6DgDAmnuaM3104jR4s1Myxr3Y3zfIyN4z3UdqN69oSRacNK8UhnobDdC+7J2AHCjGwxQubNJfE70SXXQ==", - "dev": true - }, - "resolve": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.11.1.tgz", - "integrity": "sha512-vIpgF6wfuJOZI7KKKSP+HmiKggadPQAdsp5HiC1mvqnfp0gF1vdwgBWZIdrVft9pgqoMFQN+R7BSWZiBxx+BBw==", - "dev": true, - "requires": { - "path-parse": "^1.0.6" - } } } }, @@ -9838,24 +10156,23 @@ } }, "tar": { - "version": "4.4.13", - "resolved": "https://registry.npmjs.org/tar/-/tar-4.4.13.tgz", - "integrity": "sha512-w2VwSrBoHa5BsSyH+KxEqeQBAllHhccyMFVHtGtdMpF4W7IRWfZjFiQceJPChOeTsSDVUpER2T8FA93pr0L+QA==", + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/tar/-/tar-5.0.5.tgz", + "integrity": "sha512-MNIgJddrV2TkuwChwcSNds/5E9VijOiw7kAc1y5hTNJoLDSuIyid2QtLYiCYNnICebpuvjhPQZsXwUL0O3l7OQ==", "dev": true, "requires": { - "chownr": "^1.1.1", - "fs-minipass": "^1.2.5", - "minipass": "^2.8.6", - "minizlib": "^1.2.1", + "chownr": "^1.1.3", + "fs-minipass": "^2.0.0", + "minipass": "^3.0.0", + "minizlib": "^2.1.0", "mkdirp": "^0.5.0", - "safe-buffer": "^5.1.2", - "yallist": "^3.0.3" + "yallist": "^4.0.0" }, "dependencies": { "yallist": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", "dev": true } } @@ -10118,9 +10435,9 @@ "dev": true }, "uglify-js": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.7.0.tgz", - "integrity": "sha512-PC/ee458NEMITe1OufAjal65i6lB58R1HWMRcxwvdz1UopW0DYqlRL3xdu3IcTvTXsB02CRHykidkTRL+A3hQA==", + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.7.2.tgz", + "integrity": "sha512-uhRwZcANNWVLrxLfNFEdltoPNhECUR3lc+UdJoG9CBpMcSnKyWA94tc3eAujB1GcMY5Uwq8ZMp4qWpxWYDQmaA==", "optional": true, "requires": { "commander": "~2.20.3", @@ -10554,12 +10871,9 @@ } }, "ws": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.2.0.tgz", - "integrity": "sha512-+SqNqFbwTm/0DC18KYzIsMTnEWpLwJsiasW/O17la4iDRRIO9uaHbvKiAS3AHgTiuuWerK/brj4O6MYZkei9xg==", - "requires": { - "async-limiter": "^1.0.0" - } + "version": "7.2.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.2.1.tgz", + "integrity": "sha512-sucePNSafamSKoOqoNfBd8V0StlkzJKL2ZAhGQinCfNQ+oacw+Pk7lcdAElecBF2VkLNZRiIb5Oi1Q5lVUVt2A==" }, "xdg-basedir": { "version": "3.0.0", diff --git a/package.json b/package.json index 11c316ff9..7dc266367 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mojaloop/central-ledger", - "version": "8.6.3", + "version": "8.7.1", "description": "Central ledger hosted by a scheme to record and settle transfers", "license": "Apache-2.0", "author": "ModusBox", @@ -83,9 +83,9 @@ "@mojaloop/central-services-health": "8.3.0", "@mojaloop/central-services-logger": "8.6.0", "@mojaloop/central-services-metrics": "8.3.0", - "@mojaloop/central-services-shared": "8.6.2", - "@mojaloop/central-services-stream": "8.4.0", - "@mojaloop/event-sdk": "8.6.1", + "@mojaloop/central-services-shared": "8.7.1", + "@mojaloop/central-services-stream": "8.7.0", + "@mojaloop/event-sdk": "8.6.2", "@mojaloop/forensic-logging-client": "8.3.0", "@mojaloop/ml-number": "8.2.0", "@now-ims/hapi-now-auth": "2.0.0", @@ -102,8 +102,8 @@ "good-winston": "4.0.0", "hapi-auth-basic": "5.0.0", "hapi-auth-bearer-token": "6.2.1", - "hapi-swagger": "11.0.2", - "knex": "0.20.3", + "hapi-swagger": "11.1.0", + "knex": "0.20.4", "lodash": "4.17.15", "moment": "2.24.0", "mustache": "3.1.0", @@ -112,7 +112,7 @@ "require-glob": "3.2.0", "urlsafe-base64": "1.0.0", "uuid4": "1.1.4", - "ws": "7.2.0" + "ws": "7.2.1" }, "optionalDependencies": { "mysql": "2.17.1" @@ -123,16 +123,16 @@ "get-port": "5.0.0", "jsdoc": "3.6.3", "jsonpath": "1.0.2", - "nodemon": "2.0.1", + "nodemon": "2.0.2", "npm-audit-resolver": "2.1.0", - "npm-check-updates": "3.2.2", + "npm-check-updates": "4.0.1", "nyc": "14.1.1", "pre-commit": "1.2.2", "proxyquire": "2.1.3", "sinon": "7.5.0", "standard": "14.3.1", "tap-xunit": "2.4.1", - "tape": "4.11.0", + "tape": "4.12.0", "tapes": "4.1.0" } } diff --git a/seeds/ledgerAccountType.js b/seeds/ledgerAccountType.js index b382b97c4..e5681912c 100644 --- a/seeds/ledgerAccountType.js +++ b/seeds/ledgerAccountType.js @@ -27,7 +27,8 @@ const ledgerAccountTypes = [ { name: 'POSITION', - description: 'Typical accounts from which a DFSP provisions transfers ' + description: 'Typical accounts from which a DFSP provisions transfers', + isSettleable: 1 }, { name: 'SETTLEMENT', @@ -44,6 +45,11 @@ const ledgerAccountTypes = [ { name: 'HUB_FEE', description: 'An account to which fees will be charged or collected' + }, + { + name: 'INTERCHANGE_FEE', + description: null, + isSettleable: 1 } ] diff --git a/seeds/ledgerEntryType.js b/seeds/ledgerEntryType.js index 298780be5..9e63ec40a 100644 --- a/seeds/ledgerEntryType.js +++ b/seeds/ledgerEntryType.js @@ -27,11 +27,13 @@ const ledgerEntryTypes = [ { name: 'PRINCIPLE_VALUE', - description: 'The principle amount to be settled between parties, derived on quotes between DFSPs' + description: 'The principle amount to be settled between parties, derived on quotes between DFSPs', + ledgerAccountTypeId: 1 // POSITION }, { name: 'INTERCHANGE_FEE', - description: 'Fees to be paid between DFSP' + description: 'Fees to be paid between DFSP', + ledgerAccountTypeId: 6 // INTERCHANGE_FEE }, { name: 'HUB_FEE', diff --git a/seeds/settlementDelay.js b/seeds/settlementDelay.js new file mode 100644 index 000000000..4f946657c --- /dev/null +++ b/seeds/settlementDelay.js @@ -0,0 +1,48 @@ +/***** + License + -------------- + Copyright © 2017 Bill & Melinda Gates Foundation + The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 + Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + Contributors + -------------- + This is the official list of the Mojaloop project contributors for this file. + Names of the original copyright holders (individuals or organizations) + should be listed with a '*' in the first column. People who have + contributed from an organization can be listed under the organization + that actually holds the copyright for their contributions (see the + Gates Foundation organization for an example). Those individuals should have + their names indented and be marked with a '-'. Email address can be added + optionally within square brackets . + * Gates Foundation + - Name Surname + + * Georgi Georgiev + -------------- + ******/ + +'use strict' + +const settlementDelayTypes = [ + { + name: 'IMMEDIATE', + description: null + }, + { + name: 'DEFERRED', + description: null + } +] + +exports.seed = async function (knex) { + try { + return await knex('settlementDelay').insert(settlementDelayTypes) + } catch (err) { + if (err.code === 'ER_DUP_ENTRY') return -1001 + else { + console.log(`Uploading seeds for settlementDelay has failed with the following error: ${err}`) + return -1000 + } + } +} diff --git a/seeds/settlementGranularity.js b/seeds/settlementGranularity.js new file mode 100644 index 000000000..f3370e515 --- /dev/null +++ b/seeds/settlementGranularity.js @@ -0,0 +1,48 @@ +/***** + License + -------------- + Copyright © 2017 Bill & Melinda Gates Foundation + The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 + Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + Contributors + -------------- + This is the official list of the Mojaloop project contributors for this file. + Names of the original copyright holders (individuals or organizations) + should be listed with a '*' in the first column. People who have + contributed from an organization can be listed under the organization + that actually holds the copyright for their contributions (see the + Gates Foundation organization for an example). Those individuals should have + their names indented and be marked with a '-'. Email address can be added + optionally within square brackets . + * Gates Foundation + - Name Surname + + * Georgi Georgiev + -------------- + ******/ + +'use strict' + +const settlementGranularityTypes = [ + { + name: 'GROSS', + description: null + }, + { + name: 'NET', + description: null + } +] + +exports.seed = async function (knex) { + try { + return await knex('settlementGranularity').insert(settlementGranularityTypes) + } catch (err) { + if (err.code === 'ER_DUP_ENTRY') return -1001 + else { + console.log(`Uploading seeds for settlementGranularity has failed with the following error: ${err}`) + return -1000 + } + } +} diff --git a/seeds/settlementInterchange.js b/seeds/settlementInterchange.js new file mode 100644 index 000000000..ae0e972be --- /dev/null +++ b/seeds/settlementInterchange.js @@ -0,0 +1,48 @@ +/***** + License + -------------- + Copyright © 2017 Bill & Melinda Gates Foundation + The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 + Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + Contributors + -------------- + This is the official list of the Mojaloop project contributors for this file. + Names of the original copyright holders (individuals or organizations) + should be listed with a '*' in the first column. People who have + contributed from an organization can be listed under the organization + that actually holds the copyright for their contributions (see the + Gates Foundation organization for an example). Those individuals should have + their names indented and be marked with a '-'. Email address can be added + optionally within square brackets . + * Gates Foundation + - Name Surname + + * Georgi Georgiev + -------------- + ******/ + +'use strict' + +const settlementInterchangeTypes = [ + { + name: 'BILATERAL', + description: null + }, + { + name: 'MULTILATERAL', + description: null + } +] + +exports.seed = async function (knex) { + try { + return await knex('settlementInterchange').insert(settlementInterchangeTypes) + } catch (err) { + if (err.code === 'ER_DUP_ENTRY') return -1001 + else { + console.log(`Uploading seeds for settlementInterchange has failed with the following error: ${err}`) + return -1000 + } + } +} diff --git a/src/domain/bulkTransfer/index.js b/src/domain/bulkTransfer/index.js index 1e7d057de..45ed522e1 100644 --- a/src/domain/bulkTransfer/index.js +++ b/src/domain/bulkTransfer/index.js @@ -48,7 +48,7 @@ const getBulkTransferById = async (id) => { // TODO: refactor this to move away from Promises and use async-await individualTransfers = await Promise.all(individualTransfers.map(async (transfer) => { // eslint-disable-next-line no-async-promise-executor - return new Promise(async (resolve, reject) => { + return new Promise(async (resolve) => { const result = { transferId: transfer.transferId } diff --git a/test/integration/handlers/handlers.test.js b/test/integration/handlers/handlers.test.js index 0ffe2a1e6..f85b4ecaa 100644 --- a/test/integration/handlers/handlers.test.js +++ b/test/integration/handlers/handlers.test.js @@ -285,7 +285,7 @@ Test('Handlers test', async handlersTest => { } try { - await retry(async bail => { // use bail(new Error('to break before max retries')) + await retry(async () => { // use bail(new Error('to break before max retries')) const transfer = await TransferService.getById(td.messageProtocolPrepare.content.payload.transferId) || {} if (transfer.transferState !== TransferState.RESERVED) { if (debug) console.log(`retrying in ${retryDelay / 1000}s..`) @@ -325,7 +325,7 @@ Test('Handlers test', async handlersTest => { } try { - await retry(async bail => { // use bail(new Error('to break before max retries')) + await retry(async () => { // use bail(new Error('to break before max retries')) const transfer = await TransferService.getById(td.messageProtocolPrepare.content.payload.transferId) || {} if (transfer.transferState !== TransferState.COMMITTED) { if (debug) console.log(`retrying in ${retryDelay / 1000}s..`) @@ -364,7 +364,7 @@ Test('Handlers test', async handlersTest => { } try { - await retry(async bail => { // use bail(new Error('to break before max retries')) + await retry(async () => { // use bail(new Error('to break before max retries')) const transfer = await TransferService.getById(td.messageProtocolPrepare.content.payload.transferId) || {} if (transfer.transferState !== TransferState.RESERVED) { if (debug) console.log(`retrying in ${retryDelay / 1000}s..`) @@ -403,7 +403,7 @@ Test('Handlers test', async handlersTest => { } try { - await retry(async bail => { // use bail(new Error('to break before max retries')) + await retry(async () => { // use bail(new Error('to break before max retries')) const transfer = await TransferService.getById(td.messageProtocolPrepare.content.payload.transferId) || {} if (transfer.transferState !== TransferInternalState.ABORTED_REJECTED) { if (debug) console.log(`retrying in ${retryDelay / 1000}s..`) @@ -442,7 +442,7 @@ Test('Handlers test', async handlersTest => { } try { - await retry(async bail => { // use bail(new Error('to break before max retries')) + await retry(async () => { // use bail(new Error('to break before max retries')) const transfer = await TransferService.getById(td.messageProtocolPrepare.content.payload.transferId) || {} if (transfer.transferState !== TransferInternalState.ABORTED_REJECTED) { if (debug) console.log(`retrying in ${retryDelay / 1000}s..`) @@ -481,7 +481,7 @@ Test('Handlers test', async handlersTest => { } try { - await retry(async bail => { // use bail(new Error('to break before max retries')) + await retry(async () => { // use bail(new Error('to break before max retries')) const transfer = await TransferService.getById(td.messageProtocolPrepare.content.payload.transferId) || {} if (transfer.transferState !== TransferState.RESERVED) { if (debug) console.log(`retrying in ${retryDelay / 1000}s..`) @@ -528,7 +528,7 @@ Test('Handlers test', async handlersTest => { } try { - await retry(async bail => { // use bail(new Error('to break before max retries')) + await retry(async () => { // use bail(new Error('to break before max retries')) const transfer = await TransferService.getById(td.messageProtocolPrepare.content.payload.transferId) || {} if (transfer.transferState !== TransferInternalState.ABORTED_ERROR) { if (debug) console.log(`retrying in ${retryDelay / 1000}s..`) @@ -574,7 +574,7 @@ Test('Handlers test', async handlersTest => { } try { - await retry(async bail => { // use bail(new Error('to break before max retries')) + await retry(async () => { // use bail(new Error('to break before max retries')) const transfer = await TransferService.getById(td.messageProtocolPrepare.content.payload.transferId) || {} if (transfer.transferState !== TransferState.RESERVED) { if (debug) console.log(`retrying in ${retryDelay / 1000}s..`) diff --git a/test/integration/models/transfer/ilpPacket.test.js b/test/integration/models/transfer/ilpPacket.test.js index 490116a02..1cb4c8cc1 100644 --- a/test/integration/models/transfer/ilpPacket.test.js +++ b/test/integration/models/transfer/ilpPacket.test.js @@ -64,7 +64,7 @@ Test('Ilp service tests', async (ilpTest) => { await ilpTest.test('create ilp', async (assert) => { try { - ilpTestValues.forEach(async ilp => { + ilpTestValues.forEach(async () => { try { const ilpResult = await HelperModule.prepareNeededData('ilpPacket') const result = ilpResult.ilp diff --git a/test/integration/models/transfer/transferExtension.test.js b/test/integration/models/transfer/transferExtension.test.js index b79a8c226..61b65fbe3 100644 --- a/test/integration/models/transfer/transferExtension.test.js +++ b/test/integration/models/transfer/transferExtension.test.js @@ -68,7 +68,7 @@ Test('Extension model test', async (extensionTest) => { await extensionTest.test('create extension', async (assert) => { try { - extensionTestValues.forEach(async (extension) => { + extensionTestValues.forEach(async () => { try { const extensionResult = await HelperModule.prepareNeededData('transferExtension') const result = extensionResult.extension[0] diff --git a/test/unit/api/metrics/handler.test.js b/test/unit/api/metrics/handler.test.js index d56c56853..1163c94e4 100644 --- a/test/unit/api/metrics/handler.test.js +++ b/test/unit/api/metrics/handler.test.js @@ -56,8 +56,7 @@ Test('metrics handler', (handlerTest) => { handlerTest.test('metrics should', (healthTest) => { healthTest.test('return thr metrics ok', async function (assert) { const reply = { - response: (response) => { - // assert.equal(response.status, 'OK') + response: () => { return { code: (statusCode) => { assert.equal(statusCode, 200) diff --git a/test/unit/api/participants/handler.test.js b/test/unit/api/participants/handler.test.js index 85d3b4d93..a7777adc0 100644 --- a/test/unit/api/participants/handler.test.js +++ b/test/unit/api/participants/handler.test.js @@ -416,7 +416,7 @@ Test('Participant', participantHandlerTest => { Participant.addEndpoint.withArgs(params.name, payload).returns(Promise.resolve(1)) const reply = { - response: (response) => { + response: () => { return { code: statusCode => { test.equal(statusCode, 201, 'Participant Endpoint created successfully') @@ -561,7 +561,7 @@ Test('Participant', participantHandlerTest => { Participant.addLimitAndInitialPosition.withArgs(params.name, payload).returns(Promise.resolve(1)) const reply = { - response: (response) => { + response: () => { return { code: statusCode => { test.equal(statusCode, 201, 'Participant limit and initial position added successfully') @@ -587,7 +587,7 @@ Test('Participant', participantHandlerTest => { Participant.addLimitAndInitialPosition.withArgs(params.name, payload).returns(Promise.resolve(1)) const reply = { - response: (response) => { + response: () => { return { code: statusCode => { test.equal(statusCode, 201, 'Participant limit and initial position added successfully') @@ -1336,7 +1336,7 @@ Test('Participant', participantHandlerTest => { } const h = { - response: (response) => { + response: () => { return { code: statusCode => { test.deepEqual(statusCode, 202) @@ -1368,7 +1368,7 @@ Test('Participant', participantHandlerTest => { } const h = { - response: (response) => { + response: () => { return { code: statusCode => { test.deepEqual(statusCode, 202)