diff --git a/e2e/infrastructure/AccountHttp.spec.ts b/e2e/infrastructure/AccountHttp.spec.ts index 89a8b69d3b..7de5fc82f1 100644 --- a/e2e/infrastructure/AccountHttp.spec.ts +++ b/e2e/infrastructure/AccountHttp.spec.ts @@ -36,7 +36,7 @@ import { IntegrationTestHelper } from './IntegrationTestHelper'; import { AccountPaginationStreamer } from '../../src/infrastructure/paginationStreamer/AccountPaginationStreamer'; import { toArray, take } from 'rxjs/operators'; import { deepEqual } from 'assert'; -import { Order } from '../../src/infrastructure/infrastructure'; +import { Order } from '../../src/infrastructure'; import { AccountOrderBy } from '../../src/infrastructure/searchCriteria/AccountOrderBy'; describe('AccountHttp', () => { diff --git a/e2e/infrastructure/BlockHttp.spec.ts b/e2e/infrastructure/BlockHttp.spec.ts index 9f1db1a2b2..faac630bc5 100644 --- a/e2e/infrastructure/BlockHttp.spec.ts +++ b/e2e/infrastructure/BlockHttp.spec.ts @@ -28,9 +28,9 @@ import { IntegrationTestHelper } from './IntegrationTestHelper'; import { BlockPaginationStreamer } from '../../src/infrastructure/paginationStreamer/BlockPaginationStreamer'; import { deepEqual } from 'assert'; import { take } from 'rxjs/operators'; -import { TransactionStatement } from '../../src/model/model'; +import { TransactionStatement } from '../../src/model'; import { ReceiptPaginationStreamer } from '../../src/infrastructure/paginationStreamer/ReceiptPaginationStreamer'; -import { Order } from '../../src/infrastructure/infrastructure'; +import { Order } from '../../src/infrastructure'; describe('BlockHttp', () => { const helper = new IntegrationTestHelper(); diff --git a/e2e/infrastructure/HashLockHttp.spec.ts b/e2e/infrastructure/HashLockHttp.spec.ts index fba13c3c48..3791a109fb 100644 --- a/e2e/infrastructure/HashLockHttp.spec.ts +++ b/e2e/infrastructure/HashLockHttp.spec.ts @@ -27,7 +27,7 @@ import { UInt64 } from '../../src/model/UInt64'; import { IntegrationTestHelper } from './IntegrationTestHelper'; import { toArray, take } from 'rxjs/operators'; import { deepEqual } from 'assert'; -import { Order, HashLockPaginationStreamer } from '../../src/infrastructure/infrastructure'; +import { Order, HashLockPaginationStreamer } from '../../src/infrastructure'; import { Mosaic } from '../../src/model/mosaic/Mosaic'; import { LockFundsTransaction } from '../../src/model/transaction/LockFundsTransaction'; import { ChronoUnit } from '@js-joda/core'; diff --git a/e2e/infrastructure/MetadataHttp.spec.ts b/e2e/infrastructure/MetadataHttp.spec.ts index 832d196301..e6363c0d1d 100644 --- a/e2e/infrastructure/MetadataHttp.spec.ts +++ b/e2e/infrastructure/MetadataHttp.spec.ts @@ -32,8 +32,8 @@ import { NamespaceMetadataTransaction } from '../../src/model/transaction/Namesp import { NamespaceRegistrationTransaction } from '../../src/model/transaction/NamespaceRegistrationTransaction'; import { UInt64 } from '../../src/model/UInt64'; import { IntegrationTestHelper } from './IntegrationTestHelper'; -import { MetadataType } from '../../src/model/model'; -import { Order, MetadataPaginationStreamer } from '../../src/infrastructure/infrastructure'; +import { MetadataType } from '../../src/model'; +import { Order, MetadataPaginationStreamer } from '../../src/infrastructure'; import { deepEqual } from 'assert'; import { take, toArray } from 'rxjs/operators'; diff --git a/e2e/infrastructure/NamespaceHttp.spec.ts b/e2e/infrastructure/NamespaceHttp.spec.ts index f5e7d0611b..11603e98e1 100644 --- a/e2e/infrastructure/NamespaceHttp.spec.ts +++ b/e2e/infrastructure/NamespaceHttp.spec.ts @@ -27,7 +27,7 @@ import { UInt64 } from '../../src/model/UInt64'; import { IntegrationTestHelper } from './IntegrationTestHelper'; import { NamespacePaginationStreamer } from '../../src/infrastructure/paginationStreamer/NamespacePaginationStreamer'; import { take, toArray } from 'rxjs/operators'; -import { Order } from '../../src/infrastructure/infrastructure'; +import { Order } from '../../src/infrastructure'; describe('NamespaceHttp', () => { let defaultNamespaceId: NamespaceId; diff --git a/e2e/infrastructure/ReceiptHttp.spec.ts b/e2e/infrastructure/ReceiptHttp.spec.ts index 1ff0e15bea..43b6ac8d7a 100644 --- a/e2e/infrastructure/ReceiptHttp.spec.ts +++ b/e2e/infrastructure/ReceiptHttp.spec.ts @@ -18,7 +18,7 @@ import { expect } from 'chai'; import { toArray } from 'rxjs/operators'; import { ReceiptPaginationStreamer } from '../../src/infrastructure/paginationStreamer/ReceiptPaginationStreamer'; import { ReceiptRepository } from '../../src/infrastructure/ReceiptRepository'; -import { ReceiptType, UInt64 } from '../../src/model/model'; +import { ReceiptType, UInt64 } from '../../src/model'; import { IntegrationTestHelper } from './IntegrationTestHelper'; describe('ReceiptHttp', () => { diff --git a/e2e/infrastructure/SecretLockHttp.spec.ts b/e2e/infrastructure/SecretLockHttp.spec.ts index 870ae9fdb0..3c5e5889fd 100644 --- a/e2e/infrastructure/SecretLockHttp.spec.ts +++ b/e2e/infrastructure/SecretLockHttp.spec.ts @@ -22,7 +22,7 @@ import { UInt64 } from '../../src/model/UInt64'; import { IntegrationTestHelper } from './IntegrationTestHelper'; import { toArray, take } from 'rxjs/operators'; import { deepEqual } from 'assert'; -import { Order, SecretLockPaginationStreamer } from '../../src/infrastructure/infrastructure'; +import { Order, SecretLockPaginationStreamer } from '../../src/infrastructure'; import { SecretLockRepository } from '../../src/infrastructure/SecretLockRepository'; import { SecretLockTransaction } from '../../src/model/transaction/SecretLockTransaction'; import { LockHashAlgorithm } from '../../src/model/lock/LockHashAlgorithm'; diff --git a/e2e/infrastructure/TransactionHttp.spec.ts b/e2e/infrastructure/TransactionHttp.spec.ts index 723b152286..37edd7774f 100644 --- a/e2e/infrastructure/TransactionHttp.spec.ts +++ b/e2e/infrastructure/TransactionHttp.spec.ts @@ -64,7 +64,7 @@ import { TransferTransaction } from '../../src/model/transaction/TransferTransac import { UInt64 } from '../../src/model/UInt64'; import { IntegrationTestHelper } from './IntegrationTestHelper'; import { LockHashUtils } from '../../src/core/utils/LockHashUtils'; -import { TransactionSearchCriteria } from '../../src/infrastructure/infrastructure'; +import { TransactionSearchCriteria } from '../../src/infrastructure'; import { VrfKeyLinkTransaction } from '../../src/model/transaction/VrfKeyLinkTransaction'; import { VotingKeyLinkTransaction } from '../../src/model/transaction/VotingKeyLinkTransaction'; import { NodeKeyLinkTransaction } from '../../src/model/transaction/NodeKeyLinkTransaction'; diff --git a/index.ts b/index.ts index 1239bbb0f5..dc739fb4d2 100644 --- a/index.ts +++ b/index.ts @@ -1,5 +1,5 @@ /* - * Copyright 2018 NEM + * Copyright 2020 NEM * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,9 +14,4 @@ * limitations under the License. */ -export * from './src/infrastructure/infrastructure'; -export * from './src/model/model'; -export * from './src/service/service'; -export * from './src/core/utils/utility'; -export * from './src/core/format'; -export * from './src/core/crypto'; +export * from './src'; diff --git a/package-lock.json b/package-lock.json index 73b9825761..4c8b0c1042 100644 --- a/package-lock.json +++ b/package-lock.json @@ -395,7 +395,6 @@ "version": "2.1.3", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.3.tgz", "integrity": "sha512-eGmwYQn3gxo4r7jdQnkrrN6bY478C3P+a/y72IJukF8LjB6ZHeB3c+Ehacj3sYeSmUXGlnA67/PmbM9CVwL7Dw==", - "dev": true, "requires": { "@nodelib/fs.stat": "2.0.3", "run-parallel": "^1.1.9" @@ -404,14 +403,12 @@ "@nodelib/fs.stat": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.3.tgz", - "integrity": "sha512-bQBFruR2TAwoevBEd/NWMoAAtNGzTRgdrqnYCc7dhzfoNvqPzLyqlEQnzZ3kVnNrSp25iyxE00/3h2fqGAGArA==", - "dev": true + "integrity": "sha512-bQBFruR2TAwoevBEd/NWMoAAtNGzTRgdrqnYCc7dhzfoNvqPzLyqlEQnzZ3kVnNrSp25iyxE00/3h2fqGAGArA==" }, "@nodelib/fs.walk": { "version": "1.2.4", "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.4.tgz", "integrity": "sha512-1V9XOY4rDW0rehzbrcqAmHnz8e7SKvX27gh8Gt2WgB0+pdzdiLV83p72kZPU+jvMbS1qU5mauP2iOvO8rhmurQ==", - "dev": true, "requires": { "@nodelib/fs.scandir": "2.1.3", "fastq": "^1.6.0" @@ -697,6 +694,15 @@ "integrity": "sha512-OCutwjDZ4aFS6PB1UZ988C4YgwlBHJd6wCeQqaLdmadZ/7e+w79+hbMUFC1QXDNCmdyoRfAFdm0RypzwR+Qpag==", "dev": true }, + "@types/glob": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.1.3.tgz", + "integrity": "sha512-SEYeGAIQIQX8NN6LDKprLjbrd5dARM5EXsd8GI/A5l0apYI1fGMWgPHSe4ZKL4eozlAyI+doUE9XbYS4xCkQ1w==", + "requires": { + "@types/minimatch": "*", + "@types/node": "*" + } + }, "@types/json-schema": { "version": "7.0.5", "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.5.tgz", @@ -715,6 +721,11 @@ "integrity": "sha512-5tXH6Bx/kNGd3MgffdmP4dy2Z+G4eaXw0SE81Tq3BNadtnMR5/ySMzX4SLEzHJzSmPNn4HIdpQsBvXMUykr58w==", "dev": true }, + "@types/minimatch": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.3.tgz", + "integrity": "sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA==" + }, "@types/mocha": { "version": "2.2.48", "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-2.2.48.tgz", @@ -724,8 +735,7 @@ "@types/node": { "version": "9.6.0", "resolved": "https://registry.npmjs.org/@types/node/-/node-9.6.0.tgz", - "integrity": "sha512-h3YZbOq2+ZoDFI1z8Zx0Ck/xRWkOESVaLdgLdd/c25mMQ1Y2CAkILu9ny5A15S5f32gGcQdaUIZ2jzYr8D7IFg==", - "dev": true + "integrity": "sha512-h3YZbOq2+ZoDFI1z8Zx0Ck/xRWkOESVaLdgLdd/c25mMQ1Y2CAkILu9ny5A15S5f32gGcQdaUIZ2jzYr8D7IFg==" }, "@types/ripemd160": { "version": "2.0.0", @@ -922,7 +932,6 @@ "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" } @@ -1087,8 +1096,7 @@ "array-union": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", - "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", - "dev": true + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==" }, "array-unique": { "version": "0.3.2", @@ -1239,8 +1247,7 @@ "balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", - "dev": true + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" }, "base": { "version": "0.11.2", @@ -1329,7 +1336,6 @@ "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -1629,7 +1635,6 @@ "version": "1.9.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.1.tgz", "integrity": "sha512-mjGanIiwQJskCC18rPR6OmrZ6fm2Lc7PeGFYwCmy5J34wC6F1PzdGL6xeMfmgicfYcNLGuVFA3WzXtIDCQSZxQ==", - "dev": true, "requires": { "color-name": "^1.1.1" } @@ -1637,8 +1642,7 @@ "color-name": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", - "dev": true + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" }, "color-string": { "version": "1.5.4", @@ -1681,6 +1685,12 @@ "delayed-stream": "~1.0.0" } }, + "commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, "commondir": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", @@ -1696,8 +1706,7 @@ "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "dev": true + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" }, "concat-stream": { "version": "1.6.2", @@ -1755,6 +1764,202 @@ "request": "^2.88.2" } }, + "create-ts-index": { + "version": "1.13.6", + "resolved": "https://registry.npmjs.org/create-ts-index/-/create-ts-index-1.13.6.tgz", + "integrity": "sha512-vBcuficF62laj/wZv01D4YBz1TXTtEM8hsUq7J1k1uyPUHYq3YTWTVQlmlp+Y311KdM6HhPQeC2aHktvQR8u3w==", + "dev": true, + "requires": { + "chalk": "^2.4.1", + "commander": "^2.19.0", + "dayjs": "^1.8.14", + "debug": "^4.1.1", + "deepmerge": "^4.2.2", + "fast-glob": "^3.2.2", + "glob": "^7.1.3", + "json5": "^2.1.3", + "merge": "^1.2.1", + "minimatch": "^3.0.4", + "my-easy-fp": "^0.5.1", + "tslib": "^1.10.0", + "yargs": "^15.3.1" + }, + "dependencies": { + "ansi-regex": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", + "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", + "dev": true + }, + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true + }, + "cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "dev": true, + "requires": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "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 + }, + "find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "requires": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + } + }, + "get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true + }, + "glob": { + "version": "7.1.6", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", + "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true + }, + "path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true + }, + "require-main-filename": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", + "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", + "dev": true + }, + "string-width": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz", + "integrity": "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==", + "dev": true, + "requires": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.0" + } + }, + "strip-ansi": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", + "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", + "dev": true, + "requires": { + "ansi-regex": "^5.0.0" + } + }, + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + }, + "which-module": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", + "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", + "dev": true + }, + "wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "dev": true, + "requires": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + } + }, + "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 + }, + "yargs": { + "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "dev": true, + "requires": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + } + }, + "yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "dev": true, + "requires": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + } + } + } + }, "cross-spawn": { "version": "7.0.3", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", @@ -1800,6 +2005,12 @@ "assert-plus": "^1.0.0" } }, + "dayjs": { + "version": "1.9.4", + "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.9.4.tgz", + "integrity": "sha512-ABSF3alrldf7nM9sQ2U+Ln67NRwmzlLOqG7kK03kck0mw3wlSSEKv/XhKGGxUjQcS57QeiCyNdrFgtj9nWlrng==", + "dev": true + }, "debug": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", @@ -1820,8 +2031,7 @@ "decamelize": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", - "dev": true + "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=" }, "decode-uri-component": { "version": "0.2.0", @@ -1844,6 +2054,12 @@ "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", "dev": true }, + "deepmerge": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz", + "integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==", + "dev": true + }, "default-compare": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/default-compare/-/default-compare-1.0.0.tgz", @@ -1954,7 +2170,6 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", - "dev": true, "requires": { "path-type": "^4.0.0" }, @@ -1962,8 +2177,7 @@ "path-type": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", - "dev": true + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==" } } }, @@ -2637,7 +2851,6 @@ "version": "3.2.4", "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.4.tgz", "integrity": "sha512-kr/Oo6PX51265qeuCYsyGypiO5uJFgBS0jksyG7FUeCyQzNwYnzrNIMR1NXfkZXsMYXYLRAHgISHBz8gQcxKHQ==", - "dev": true, "requires": { "@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.walk": "^1.2.3", @@ -2651,7 +2864,6 @@ "version": "3.0.2", "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", - "dev": true, "requires": { "fill-range": "^7.0.1" } @@ -2660,7 +2872,6 @@ "version": "7.0.1", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "dev": true, "requires": { "to-regex-range": "^5.0.1" } @@ -2669,7 +2880,6 @@ "version": "5.1.1", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.1.tgz", "integrity": "sha512-FnI+VGOpnlGHWZxthPGR+QhR78fuiK0sNLkHQv+bL9fQi57lNNdquIbna/WrfROrolq8GK5Ek6BiMwqL/voRYQ==", - "dev": true, "requires": { "is-glob": "^4.0.1" } @@ -2677,14 +2887,12 @@ "is-number": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==" }, "micromatch": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.2.tgz", "integrity": "sha512-y7FpHSbMUMoyPbYUSzO6PaZ6FyRnQOpHuKwbo1G+Knck95XVU4QAiKdGEnj5wwoS7PlOgthX/09u5iFJ+aYf5Q==", - "dev": true, "requires": { "braces": "^3.0.1", "picomatch": "^2.0.5" @@ -2694,7 +2902,6 @@ "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, "requires": { "is-number": "^7.0.0" } @@ -2723,7 +2930,6 @@ "version": "1.8.0", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.8.0.tgz", "integrity": "sha512-SMIZoZdLh/fgofivvIkmknUXyPnvxRE3DhtZ5Me3Mrsk5gyPL42F0xr51TdRXskBxHfMp+07bcYzfsYEsSQA9Q==", - "dev": true, "requires": { "reusify": "^1.0.4" } @@ -2998,8 +3204,7 @@ "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" }, "fsevents": { "version": "1.2.9", @@ -3617,6 +3822,11 @@ "assert-plus": "^1.0.0" } }, + "gitignore-to-glob": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/gitignore-to-glob/-/gitignore-to-glob-0.3.0.tgz", + "integrity": "sha1-WfMqs9m2bOUCmcPtJMsO9CoJTOs=" + }, "glob": { "version": "7.1.2", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", @@ -4071,7 +4281,6 @@ "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "dev": true, "requires": { "once": "^1.3.0", "wrappy": "1" @@ -4326,8 +4535,7 @@ "is-extglob": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", - "dev": true + "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=" }, "is-fullwidth-code-point": { "version": "1.0.0", @@ -4342,7 +4550,6 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", - "dev": true, "requires": { "is-extglob": "^2.1.1" } @@ -4820,6 +5027,201 @@ "type-check": "~0.3.2" } }, + "license-check-and-add": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/license-check-and-add/-/license-check-and-add-3.0.4.tgz", + "integrity": "sha512-j3dotPJECxJRdvfkXxxDJqlKoRyKoR0G1woG1TiuqHAHG2/EjByRQZNcaDZ0GCY6/zBhrkoPC/gZHz0vsQtAsQ==", + "requires": { + "fs-extra": "^8.1.0", + "gitignore-to-glob": "^0.3.0", + "globby": "^10.0.1", + "ignore": "^5.1.2", + "yargs": "^13.3.0" + }, + "dependencies": { + "ansi-regex": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", + "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==" + }, + "cliui": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz", + "integrity": "sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==", + "requires": { + "string-width": "^3.1.0", + "strip-ansi": "^5.2.0", + "wrap-ansi": "^5.1.0" + } + }, + "emoji-regex": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", + "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==" + }, + "find-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", + "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "requires": { + "locate-path": "^3.0.0" + } + }, + "fs-extra": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", + "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", + "requires": { + "graceful-fs": "^4.2.0", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==" + }, + "glob": { + "version": "7.1.6", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", + "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "globby": { + "version": "10.0.2", + "resolved": "https://registry.npmjs.org/globby/-/globby-10.0.2.tgz", + "integrity": "sha512-7dUi7RvCoT/xast/o/dLN53oqND4yk0nsHkhRgn9w65C4PofCLOoJ39iSOg+qVDdWQPIEj+eszMHQ+aLVwwQSg==", + "requires": { + "@types/glob": "^7.1.1", + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.0.3", + "glob": "^7.1.3", + "ignore": "^5.1.1", + "merge2": "^1.2.3", + "slash": "^3.0.0" + } + }, + "graceful-fs": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz", + "integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==" + }, + "ignore": { + "version": "5.1.8", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.1.8.tgz", + "integrity": "sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw==" + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=" + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", + "requires": { + "graceful-fs": "^4.1.6" + } + }, + "locate-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", + "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "requires": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + } + }, + "p-locate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", + "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "requires": { + "p-limit": "^2.0.0" + } + }, + "path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=" + }, + "require-main-filename": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", + "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==" + }, + "string-width": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", + "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", + "requires": { + "emoji-regex": "^7.0.1", + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^5.1.0" + } + }, + "strip-ansi": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "requires": { + "ansi-regex": "^4.1.0" + } + }, + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" + }, + "which-module": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", + "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=" + }, + "wrap-ansi": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz", + "integrity": "sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==", + "requires": { + "ansi-styles": "^3.2.0", + "string-width": "^3.0.0", + "strip-ansi": "^5.0.0" + } + }, + "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==" + }, + "yargs": { + "version": "13.3.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.3.2.tgz", + "integrity": "sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw==", + "requires": { + "cliui": "^5.0.0", + "find-up": "^3.0.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^3.0.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^13.1.2" + } + } + } + }, "liftoff": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/liftoff/-/liftoff-3.1.0.tgz", @@ -5092,11 +5494,16 @@ "integrity": "sha1-htcJCzDORV1j+64S3aUaR93K+bI=", "dev": true }, + "merge": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/merge/-/merge-1.2.1.tgz", + "integrity": "sha512-VjFo4P5Whtj4vsLzsYBu5ayHhoHJ0UqNm7ibvShmbmoz7tGi0vXaoJbGdB+GmDMLUdg8DpQXEIeVDAe8MaABvQ==", + "dev": true + }, "merge2": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "dev": true + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==" }, "merkle-lib": { "version": "2.0.10", @@ -5173,7 +5580,6 @@ "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, "requires": { "brace-expansion": "^1.1.7" } @@ -5643,6 +6049,24 @@ "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==", "dev": true }, + "my-easy-fp": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/my-easy-fp/-/my-easy-fp-0.5.1.tgz", + "integrity": "sha512-musRCJYBnEDDzod5ugUykOqHoZYudhtC90J536tFrMqXfjpBzb0PRzLkadM2chgNFsCebzm9GtC+qjQ7xKgpGg==", + "dev": true, + "requires": { + "debug": "^4.1.1", + "tslib": "1.11.1" + }, + "dependencies": { + "tslib": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.11.1.tgz", + "integrity": "sha512-aZW88SY8kQbU7gpV19lN24LtXh/yD4ZZg6qieAJDDg+YBsJcSmLGK9QpnUjAKVG/xefmvJGd1WUmfpT/g6AJGA==", + "dev": true + } + } + }, "nanomatch": { "version": "1.2.13", "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz", @@ -6092,7 +6516,6 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "dev": true, "requires": { "wrappy": "1" } @@ -6163,7 +6586,6 @@ "version": "2.2.2", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.2.2.tgz", "integrity": "sha512-WGR+xHecKTr7EbUEhyLSh5Dube9JtdiG78ufaeLxTgpudf/20KqyMioIUZJAezlTIi6evxuoUs9YXc11cU+yzQ==", - "dev": true, "requires": { "p-try": "^2.0.0" } @@ -6189,8 +6611,7 @@ "p-try": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==" }, "package-hash": { "version": "4.0.0", @@ -6269,8 +6690,7 @@ "path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" }, "path-key": { "version": "3.1.1", @@ -6325,8 +6745,7 @@ "picomatch": { "version": "2.2.2", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.2.tgz", - "integrity": "sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg==", - "dev": true + "integrity": "sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg==" }, "pify": { "version": "2.3.0", @@ -6753,8 +7172,7 @@ "require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", - "dev": true + "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=" }, "require-main-filename": { "version": "1.0.1", @@ -6821,8 +7239,7 @@ "reusify": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", - "dev": true + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==" }, "rimraf": { "version": "3.0.2", @@ -6870,8 +7287,7 @@ "run-parallel": { "version": "1.1.9", "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.1.9.tgz", - "integrity": "sha512-DEqnSRTDw/Tc3FXf49zedI638Z9onwUotBMiUFKmrO2sdFKIbXamXGQ3Axd4qgphxKB4kw/qP1w5kTxnfU1B9Q==", - "dev": true + "integrity": "sha512-DEqnSRTDw/Tc3FXf49zedI638Z9onwUotBMiUFKmrO2sdFKIbXamXGQ3Axd4qgphxKB4kw/qP1w5kTxnfU1B9Q==" }, "rxjs": { "version": "6.6.3", @@ -6939,8 +7355,7 @@ "set-blocking": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", - "dev": true + "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=" }, "set-value": { "version": "2.0.1", @@ -7028,8 +7443,7 @@ "slash": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==" }, "slice-ansi": { "version": "2.1.0", @@ -8346,8 +8760,7 @@ "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "dev": true + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" }, "write": { "version": "1.0.3", @@ -8425,6 +8838,22 @@ } } }, + "yargs-parser": { + "version": "13.1.2", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz", + "integrity": "sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==", + "requires": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + }, + "dependencies": { + "camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==" + } + } + }, "yargs-unparser": { "version": "1.6.1", "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-1.6.1.tgz", diff --git a/package.json b/package.json index ffd93844cc..8ca857cefc 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "lint": "eslint --cache src/ test/ e2e/ --ext .ts", "lint:fix": "eslint src/ test/ e2e/ --ext .ts --fix", "style:fix": "npm run prettier && npm run lint:fix", + "create-index-files": "cti create ./src -b -n", "doc": "typedoc --out \"ts-docs/$(npm run version --silent)\" src", "bootstrap-clean": "symbol-bootstrap clean -t target/bootstrap-test", "bootstrap-start-detached": "symbol-bootstrap start -r -c ./e2e/e2e-preset.yml -t target/bootstrap-test -d --healthCheck", @@ -70,6 +71,7 @@ "assert": "^1.5.0", "chai": "^4.2.0", "coveralls": "^3.1.0", + "create-ts-index": "^1.13.6", "eslint": "^6.8.0", "eslint-config-prettier": "^6.12.0", "eslint-plugin-prettier": "^3.1.4", diff --git a/src/core/crypto/index.ts b/src/core/crypto/index.ts index 6ffaea0a02..028be718aa 100644 --- a/src/core/crypto/index.ts +++ b/src/core/crypto/index.ts @@ -1,21 +1,8 @@ -/* - * Copyright 2020 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file 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, software - * distributed under the License is 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. - */ +// created from 'create-ts-index' export * from './Crypto'; export * from './KeyPair'; +export * from './MerkleHashBuilder'; export * from './SHA3Hasher'; +export * from './Utilities'; export * from './nacl_catapult'; -export * from './MerkleHashBuilder'; diff --git a/src/core/format/index.ts b/src/core/format/index.ts index 45d6ee1ca4..acaaf20c89 100644 --- a/src/core/format/index.ts +++ b/src/core/format/index.ts @@ -1,22 +1,10 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file 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, software - * distributed under the License is 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. - */ +// created from 'create-ts-index' -export * from './RawAddress'; -export * from './RawArray'; +export * from './Base32'; export * from './Convert'; export * from './IdGenerator'; export * from './KeyGenerator'; +export * from './RawAddress'; +export * from './RawArray'; export * from './RawUInt64'; +export * from './Utilities'; diff --git a/src/core/index.ts b/src/core/index.ts new file mode 100644 index 0000000000..5a5f9091ac --- /dev/null +++ b/src/core/index.ts @@ -0,0 +1,5 @@ +// created from 'create-ts-index' + +export * from './crypto'; +export * from './format'; +export * from './utils'; diff --git a/src/core/utils/index.ts b/src/core/utils/index.ts new file mode 100644 index 0000000000..711287fe60 --- /dev/null +++ b/src/core/utils/index.ts @@ -0,0 +1,6 @@ +// created from 'create-ts-index' + +export * from './DtoMapping'; +export * from './LockHashUtils'; +export * from './TransactionMapping'; +export * from './UnresolvedMapping'; diff --git a/src/core/utils/utility.ts b/src/core/utils/utility.ts deleted file mode 100644 index c6c1a30814..0000000000 --- a/src/core/utils/utility.ts +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file 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, software - * distributed under the License is 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. - */ - -export * from './TransactionMapping'; -export * from './DtoMapping'; -export * from './LockHashUtils'; diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 0000000000..6bf85fc685 --- /dev/null +++ b/src/index.ts @@ -0,0 +1,6 @@ +// created from 'create-ts-index' + +export * from './core'; +export * from './infrastructure'; +export * from './model'; +export * from './service'; diff --git a/src/infrastructure/index.ts b/src/infrastructure/index.ts new file mode 100644 index 0000000000..8e00d39b22 --- /dev/null +++ b/src/infrastructure/index.ts @@ -0,0 +1,47 @@ +// created from 'create-ts-index' + +export * from './paginationStreamer'; +export * from './receipt'; +export * from './searchCriteria'; +export * from './transaction'; +export * from './AccountHttp'; +export * from './AccountRepository'; +export * from './BlockHttp'; +export * from './BlockRepository'; +export * from './ChainHttp'; +export * from './ChainRepository'; +export * from './HashLockHttp'; +export * from './HashLockRepository'; +export * from './Http'; +export * from './IListener'; +export * from './Listener'; +export * from './MetadataHttp'; +export * from './MetadataRepository'; +export * from './MosaicHttp'; +export * from './MosaicRepository'; +export * from './MultisigHttp'; +export * from './MultisigRepository'; +export * from './NamespaceHttp'; +export * from './NamespaceRepository'; +export * from './NetworkHttp'; +export * from './NetworkRepository'; +export * from './NodeHttp'; +export * from './NodeRepository'; +export * from './Page'; +export * from './ReceiptHttp'; +export * from './ReceiptRepository'; +export * from './RepositoryCallError'; +export * from './RepositoryFactory'; +export * from './RepositoryFactoryConfig'; +export * from './RepositoryFactoryHttp'; +export * from './RestrictionAccountHttp'; +export * from './RestrictionAccountRepository'; +export * from './RestrictionMosaicHttp'; +export * from './RestrictionMosaicRepository'; +export * from './SecretLockHttp'; +export * from './SecretLockRepository'; +export * from './TransactionGroup'; +export * from './TransactionHttp'; +export * from './TransactionRepository'; +export * from './TransactionStatusHttp'; +export * from './TransactionStatusRepository'; diff --git a/src/infrastructure/infrastructure.ts b/src/infrastructure/infrastructure.ts deleted file mode 100644 index 3768fe9d0a..0000000000 --- a/src/infrastructure/infrastructure.ts +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2018 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file 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, software - * distributed under the License is 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. - */ - -export * from './AccountHttp'; -export * from './BlockHttp'; -export * from './ChainHttp'; -export * from './Http'; -export * from './MosaicHttp'; -export * from './MetadataHttp'; -export * from './NamespaceHttp'; -export * from './TransactionHttp'; -export * from './Listener'; -export * from './NetworkHttp'; -export * from './NodeHttp'; -export * from './RestrictionAccountHttp'; -export * from './RestrictionMosaicHttp'; -export * from './MultisigHttp'; -export * from './ReceiptHttp'; -export * from './RepositoryFactoryHttp'; -export * from './transaction/NamespaceMosaicIdGenerator'; -export * from './AccountRepository'; -export * from './BlockRepository'; -export * from './ChainRepository'; -export * from './IListener'; -export * from './MosaicRepository'; -export * from './MultisigRepository'; -export * from './NamespaceRepository'; -export * from './NetworkRepository'; -export * from './NodeRepository'; -export * from './ReceiptRepository'; -export * from './RepositoryFactory'; -export * from './RestrictionAccountRepository'; -export * from './RestrictionMosaicRepository'; -export * from './TransactionRepository'; -export * from './RepositoryFactoryConfig'; -export * from './TransactionStatusHttp'; -export * from './TransactionStatusRepository'; -export * from './TransactionGroup'; -export * from './RepositoryCallError'; -export * from './MetadataRepository'; -export * from './HashLockRepository'; -export * from './HashLockHttp'; -export * from './SecretLockRepository'; -export * from './SecretLockHttp'; - -// Pagination -export * from './Page'; -export * from './searchCriteria/SearchCriteria'; -export * from './searchCriteria/BlockOrderBy'; -export * from './searchCriteria/Order'; -export * from './searchCriteria/AccountOrderBy'; -export * from './searchCriteria/AccountSearchCriteria'; -export * from './searchCriteria/NamespaceSearchCriteria'; -export * from './searchCriteria/TransactionSearchCriteria'; -export * from './searchCriteria/MetadataSearchCriteria'; -export * from './searchCriteria/ResolutionStatementSearchCriteria'; -export * from './searchCriteria/TransactionStatementSearchCriteria'; -export * from './searchCriteria/HashLockSearchCriteria'; -export * from './searchCriteria/SecretLockSearchCriteria'; -export * from './searchCriteria/RestrictionMosaicSearchCriteria'; - -export * from './paginationStreamer/BlockPaginationStreamer'; -export * from './paginationStreamer/MosaicPaginationStreamer'; -export * from './paginationStreamer/PaginationStreamer'; -export * from './paginationStreamer/Searcher'; -export * from './paginationStreamer/TransactionPaginationStreamer'; -export * from './paginationStreamer/AccountPaginationStreamer'; -export * from './paginationStreamer/NamespacePaginationStreamer'; -export * from './paginationStreamer/MetadataPaginationStreamer'; -export * from './paginationStreamer/ReceiptPaginationStreamer'; -export * from './paginationStreamer/HashLockPaginationStreamer'; -export * from './paginationStreamer/SecretLockPaginationStreamer'; -export * from './paginationStreamer/RestrictionMosaicPaginationStreamer'; diff --git a/src/infrastructure/paginationStreamer/index.ts b/src/infrastructure/paginationStreamer/index.ts new file mode 100644 index 0000000000..8e968a6701 --- /dev/null +++ b/src/infrastructure/paginationStreamer/index.ts @@ -0,0 +1,14 @@ +// created from 'create-ts-index' + +export * from './AccountPaginationStreamer'; +export * from './BlockPaginationStreamer'; +export * from './HashLockPaginationStreamer'; +export * from './MetadataPaginationStreamer'; +export * from './MosaicPaginationStreamer'; +export * from './NamespacePaginationStreamer'; +export * from './PaginationStreamer'; +export * from './ReceiptPaginationStreamer'; +export * from './RestrictionMosaicPaginationStreamer'; +export * from './Searcher'; +export * from './SecretLockPaginationStreamer'; +export * from './TransactionPaginationStreamer'; diff --git a/src/infrastructure/receipt/index.ts b/src/infrastructure/receipt/index.ts new file mode 100644 index 0000000000..c4b1bc791b --- /dev/null +++ b/src/infrastructure/receipt/index.ts @@ -0,0 +1,3 @@ +// created from 'create-ts-index' + +export * from './CreateReceiptFromDTO'; diff --git a/src/infrastructure/searchCriteria/index.ts b/src/infrastructure/searchCriteria/index.ts new file mode 100644 index 0000000000..ffee13da99 --- /dev/null +++ b/src/infrastructure/searchCriteria/index.ts @@ -0,0 +1,17 @@ +// created from 'create-ts-index' + +export * from './AccountOrderBy'; +export * from './AccountSearchCriteria'; +export * from './BlockOrderBy'; +export * from './BlockSearchCriteria'; +export * from './HashLockSearchCriteria'; +export * from './MetadataSearchCriteria'; +export * from './MosaicSearchCriteria'; +export * from './NamespaceSearchCriteria'; +export * from './Order'; +export * from './ResolutionStatementSearchCriteria'; +export * from './RestrictionMosaicSearchCriteria'; +export * from './SearchCriteria'; +export * from './SecretLockSearchCriteria'; +export * from './TransactionSearchCriteria'; +export * from './TransactionStatementSearchCriteria'; diff --git a/src/infrastructure/transaction/index.ts b/src/infrastructure/transaction/index.ts new file mode 100644 index 0000000000..2f0e638d55 --- /dev/null +++ b/src/infrastructure/transaction/index.ts @@ -0,0 +1,6 @@ +// created from 'create-ts-index' + +export * from './CreateTransactionFromDTO'; +export * from './CreateTransactionFromPayload'; +export * from './NamespaceMosaicIdGenerator'; +export * from './SerializeTransactionToJSON'; diff --git a/src/model/account/index.ts b/src/model/account/index.ts index b7bfb1df65..ec200dbdbf 100644 --- a/src/model/account/index.ts +++ b/src/model/account/index.ts @@ -1,30 +1,17 @@ -/* - * Copyright 2020 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file 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, software - * distributed under the License is 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. - */ +// created from 'create-ts-index' + export * from './Account'; +export * from './AccountInfo'; +export * from './AccountInfoResolvedMosaic'; +export * from './AccountKeyTypeFlags'; +export * from './AccountLinkPublicKey'; +export * from './AccountLinkVotingKey'; +export * from './AccountNames'; export * from './AccountType'; export * from './ActivityBucket'; -export * from './AccountInfo'; export * from './Address'; export * from './MultisigAccountGraphInfo'; export * from './MultisigAccountInfo'; export * from './PublicAccount'; -export * from './AccountNames'; -export * from './AccountInfoResolvedMosaic'; -export * from './AccountKeyTypeFlags'; -export * from './AccountLinkPublicKey'; -export * from './AccountLinkVotingKey'; export * from './SupplementalPublicKeys'; export * from './UnresolvedAddress'; diff --git a/src/model/blockchain/index.ts b/src/model/blockchain/index.ts new file mode 100644 index 0000000000..71722e8040 --- /dev/null +++ b/src/model/blockchain/index.ts @@ -0,0 +1,10 @@ +// created from 'create-ts-index' + +export * from './BlockInfo'; +export * from './ChainInfo'; +export * from './FinalizedBlock'; +export * from './MerklePathItem'; +export * from './MerklePosition'; +export * from './MerkleProofInfo'; +export * from './NewBlock'; +export * from './StorageInfo'; diff --git a/src/model/index.ts b/src/model/index.ts new file mode 100644 index 0000000000..a095638bca --- /dev/null +++ b/src/model/index.ts @@ -0,0 +1,17 @@ +// created from 'create-ts-index' + +export * from './account'; +export * from './blockchain'; +export * from './lock'; +export * from './message'; +export * from './metadata'; +export * from './mosaic'; +export * from './namespace'; +export * from './network'; +export * from './node'; +export * from './receipt'; +export * from './restriction'; +export * from './transaction'; +export * from './wallet'; +export * from './Id'; +export * from './UInt64'; diff --git a/src/model/lock/index.ts b/src/model/lock/index.ts new file mode 100644 index 0000000000..dc1a584188 --- /dev/null +++ b/src/model/lock/index.ts @@ -0,0 +1,5 @@ +// created from 'create-ts-index' + +export * from './HashLockInfo'; +export * from './LockHashAlgorithm'; +export * from './SecretLockInfo'; diff --git a/src/model/message/index.ts b/src/model/message/index.ts new file mode 100644 index 0000000000..7160f1e9b4 --- /dev/null +++ b/src/model/message/index.ts @@ -0,0 +1,8 @@ +// created from 'create-ts-index' + +export * from './EncryptedMessage'; +export * from './Message'; +export * from './MessageMarker'; +export * from './MessageType'; +export * from './PersistentHarvestingDelegationMessage'; +export * from './PlainMessage'; diff --git a/src/model/metadata/index.ts b/src/model/metadata/index.ts new file mode 100644 index 0000000000..ffffeae3e6 --- /dev/null +++ b/src/model/metadata/index.ts @@ -0,0 +1,5 @@ +// created from 'create-ts-index' + +export * from './Metadata'; +export * from './MetadataEntry'; +export * from './MetadataType'; diff --git a/src/model/model.ts b/src/model/model.ts deleted file mode 100644 index cb75fabaab..0000000000 --- a/src/model/model.ts +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Copyright 2020 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file 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, software - * distributed under the License is 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. - */ - -export * from './UInt64'; -export * from './Id'; - -// Account -export * from './account'; - -// Blockchain -export * from './blockchain/ChainInfo'; -export * from './blockchain/StorageInfo'; -export * from './blockchain/BlockInfo'; -export * from './blockchain/MerklePathItem'; -export * from './blockchain/MerkleProofInfo'; -export * from './blockchain/NewBlock'; -export * from './blockchain/MerklePosition'; -export * from './blockchain/FinalizedBlock'; - -// Diagnostic -export * from './node/ServerInfo'; - -// Mosaic -export * from './mosaic'; -export * from '../service/MosaicView'; -export * from '../service/MosaicAmountView'; - -//lock -export * from './lock/HashLockInfo'; -export * from './lock/SecretLockInfo'; - -// Mosaic -export * from './metadata/Metadata'; -export * from './metadata/MetadataEntry'; -export * from './metadata/MetadataType'; - -// Namespace -export * from '../service/Namespace'; -export * from './namespace'; - -// Network - -export * from './network/AccountLinkNetworkProperties'; -export * from './network/AccountRestrictionNetworkProperties'; -export * from './network/AggregateNetworkProperties'; -export * from './network/ChainProperties'; -export * from './network/HashLockNetworkProperties'; -export * from './network/MetadataNetworkProperties'; -export * from './network/MosaicNetworkProperties'; -export * from './network/MosaicRestrictionNetworkProperties'; -export * from './network/MultisigNetworkProperties'; -export * from './network/NamespaceNetworkProperties'; -export * from './network/NetworkConfiguration'; -export * from './network/NetworkName'; -export * from './network/NetworkProperties'; -export * from './network/NetworkType'; -export * from './network/PluginProperties'; -export * from './network/RentalFees'; -export * from './network/SecretLockNetworkProperties'; -export * from './network/TransactionFees'; -export * from './network/TransferNetworkProperties'; - -// Node -export * from './node/NodeInfo'; -export * from './node/NodeTime'; -export * from './node/RoleType'; -export * from './node/NodeHealth'; - -// Receipt -export * from './receipt/ArtifactExpiryReceipt'; -export * from './receipt/BalanceChangeReceipt'; -export * from './receipt/BalanceTransferReceipt'; -export * from './receipt/Receipt'; -export * from './receipt/ReceiptSource'; -export * from './receipt/ReceiptType'; -export * from './receipt/ReceiptVersion'; -export * from './receipt/ResolutionEntry'; -export * from './receipt/ResolutionStatement'; -export * from './receipt/TransactionStatement'; -export * from './receipt/ResolutionType'; -export * from './receipt/InflationReceipt'; -export * from './receipt/Statement'; - -// Restriction -export * from './restriction/AccountRestrictions'; -export * from './restriction/AccountRestrictionsInfo'; -export * from './restriction/AccountRestriction'; -export * from './restriction/AccountRestrictionModificationAction'; -export * from './restriction/AddressRestrictionFlag'; -export * from './restriction/MosaicRestrictionFlag'; -export * from './restriction/OperationRestrictionFlag'; -export * from './restriction/MosaicRestrictionType'; -export * from './restriction/MosaicAddressRestriction'; -export * from './restriction/MosaicGlobalRestriction'; -export * from './restriction/MosaicGlobalRestrictionItem'; -export * from './restriction/MosaicRestrictionEntryType'; - -// Message -export * from './message/PersistentHarvestingDelegationMessage'; -export * from './message/EncryptedMessage'; -export * from './message/Message'; -export * from './message/PlainMessage'; -export * from './message/MessageMarker'; -export * from './message/MessageType'; - -// Transaction -export * from './transaction/AccountKeyLinkTransaction'; -export * from './transaction/AccountRestrictionTransaction'; -export * from './transaction/AccountAddressRestrictionTransaction'; -export * from './transaction/AccountMosaicRestrictionTransaction'; -export * from './transaction/AccountOperationRestrictionTransaction'; -export * from './transaction/AccountRestrictionModification'; -export * from './transaction/AddressAliasTransaction'; -export * from './transaction/AggregateTransaction'; -export * from './transaction/AggregateTransactionCosignature'; -export * from './transaction/AggregateTransactionInfo'; -export * from './transaction/AliasTransaction'; -export * from './transaction/CosignatureSignedTransaction'; -export * from './transaction/CosignatureTransaction'; -export * from './transaction/Deadline'; -export * from './transaction/PersistentDelegationRequestTransaction'; -export * from './transaction/HashLockTransaction'; -export * from './lock/LockHashAlgorithm'; -export * from './transaction/InnerTransaction'; -export * from './transaction/LinkAction'; -export * from './transaction/LockFundsTransaction'; -export * from './transaction/MultisigAccountModificationTransaction'; -export * from './transaction/MosaicAliasTransaction'; -export * from './transaction/MosaicDefinitionTransaction'; -export * from './transaction/MosaicSupplyChangeTransaction'; -export * from './transaction/MultisigCosignatoryModification'; -export * from './transaction/CosignatoryModificationAction'; -export * from './transaction/NamespaceRegistrationTransaction'; -export * from './transaction/SecretLockTransaction'; -export * from './transaction/SecretProofTransaction'; -export * from './transaction/SignedTransaction'; -export * from './transaction/SyncAnnounce'; -export * from './transaction/Transaction'; -export * from './transaction/TransactionAnnounceResponse'; -export * from './transaction/TransactionInfo'; -export * from './transaction/TransactionStatus'; -export * from './transaction/TransactionStatusError'; -export * from './transaction/TransactionType'; -export * from './transaction/TransferTransaction'; -export * from './transaction/AccountMetadataTransaction'; -export * from './transaction/MosaicMetadataTransaction'; -export * from './transaction/NamespaceMetadataTransaction'; -export * from './transaction/MosaicGlobalRestrictionTransaction'; -export * from './transaction/MosaicAddressRestrictionTransaction'; -export * from './transaction/VotingKeyLinkTransaction'; -export * from './transaction/VrfKeyLinkTransaction'; -export * from './transaction/NodeKeyLinkTransaction'; - -// Wallet -export * from './wallet/ISimpleWalletDTO'; -export * from './wallet/Password'; -export * from './wallet/SimpleWallet'; -export * from './wallet/Wallet'; diff --git a/src/model/mosaic/index.ts b/src/model/mosaic/index.ts index 6a08ad494d..7fbc802e5c 100644 --- a/src/model/mosaic/index.ts +++ b/src/model/mosaic/index.ts @@ -1,19 +1,6 @@ -/* - * Copyright 2020 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file 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, software - * distributed under the License is 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. - */ +// created from 'create-ts-index' +export * from './Currency'; export * from './Mosaic'; export * from './MosaicFlags'; export * from './MosaicId'; @@ -21,7 +8,6 @@ export * from './MosaicInfo'; export * from './MosaicNames'; export * from './MosaicNonce'; export * from './MosaicSupplyChangeAction'; -export * from './Currency'; export * from './NetworkCurrencies'; export * from './ResolvedMosaic'; export * from './UnresolvedMosaicId'; diff --git a/src/model/namespace/index.ts b/src/model/namespace/index.ts index e88203fd14..d56962729e 100644 --- a/src/model/namespace/index.ts +++ b/src/model/namespace/index.ts @@ -1,27 +1,13 @@ -/* - * Copyright 2020 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file 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, software - * distributed under the License is 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. - */ +// created from 'create-ts-index' -export * from './AliasType'; -export * from './Alias'; export * from './AddressAlias'; +export * from './Alias'; +export * from './AliasAction'; +export * from './AliasType'; +export * from './EmptyAlias'; export * from './MosaicAlias'; export * from './NamespaceId'; export * from './NamespaceInfo'; +export * from './NamespaceInfoWithName'; export * from './NamespaceName'; export * from './NamespaceRegistrationType'; -export * from './AliasAction'; -export * from './EmptyAlias'; -export * from './NamespaceInfoWithName'; diff --git a/src/model/network/index.ts b/src/model/network/index.ts new file mode 100644 index 0000000000..973da3b5ee --- /dev/null +++ b/src/model/network/index.ts @@ -0,0 +1,21 @@ +// created from 'create-ts-index' + +export * from './AccountLinkNetworkProperties'; +export * from './AccountRestrictionNetworkProperties'; +export * from './AggregateNetworkProperties'; +export * from './ChainProperties'; +export * from './HashLockNetworkProperties'; +export * from './MetadataNetworkProperties'; +export * from './MosaicNetworkProperties'; +export * from './MosaicRestrictionNetworkProperties'; +export * from './MultisigNetworkProperties'; +export * from './NamespaceNetworkProperties'; +export * from './NetworkConfiguration'; +export * from './NetworkName'; +export * from './NetworkProperties'; +export * from './NetworkType'; +export * from './PluginProperties'; +export * from './RentalFees'; +export * from './SecretLockNetworkProperties'; +export * from './TransactionFees'; +export * from './TransferNetworkProperties'; diff --git a/src/model/node/index.ts b/src/model/node/index.ts new file mode 100644 index 0000000000..f4f07cae7e --- /dev/null +++ b/src/model/node/index.ts @@ -0,0 +1,7 @@ +// created from 'create-ts-index' + +export * from './NodeHealth'; +export * from './NodeInfo'; +export * from './NodeTime'; +export * from './RoleType'; +export * from './ServerInfo'; diff --git a/src/model/receipt/index.ts b/src/model/receipt/index.ts new file mode 100644 index 0000000000..9ab4173148 --- /dev/null +++ b/src/model/receipt/index.ts @@ -0,0 +1,15 @@ +// created from 'create-ts-index' + +export * from './ArtifactExpiryReceipt'; +export * from './BalanceChangeReceipt'; +export * from './BalanceTransferReceipt'; +export * from './InflationReceipt'; +export * from './Receipt'; +export * from './ReceiptSource'; +export * from './ReceiptType'; +export * from './ReceiptVersion'; +export * from './ResolutionEntry'; +export * from './ResolutionStatement'; +export * from './ResolutionType'; +export * from './Statement'; +export * from './TransactionStatement'; diff --git a/src/model/restriction/index.ts b/src/model/restriction/index.ts new file mode 100644 index 0000000000..5ec8448e8c --- /dev/null +++ b/src/model/restriction/index.ts @@ -0,0 +1,15 @@ +// created from 'create-ts-index' + +export * from './AccountRestriction'; +export * from './AccountRestrictionModificationAction'; +export * from './AccountRestrictions'; +export * from './AccountRestrictionsInfo'; +export * from './AddressRestrictionFlag'; +export * from './MosaicAddressRestriction'; +export * from './MosaicGlobalRestriction'; +export * from './MosaicGlobalRestrictionItem'; +export * from './MosaicRestrictionEntryType'; +export * from './MosaicRestrictionFlag'; +export * from './MosaicRestrictionType'; +export * from './OperationRestrictionFlag'; +export * from './RestrictionFlag'; diff --git a/src/model/transaction/index.ts b/src/model/transaction/index.ts new file mode 100644 index 0000000000..69baa2e8f6 --- /dev/null +++ b/src/model/transaction/index.ts @@ -0,0 +1,48 @@ +// created from 'create-ts-index' + +export * from './AccountAddressRestrictionTransaction'; +export * from './AccountKeyLinkTransaction'; +export * from './AccountMetadataTransaction'; +export * from './AccountMosaicRestrictionTransaction'; +export * from './AccountOperationRestrictionTransaction'; +export * from './AccountRestrictionModification'; +export * from './AccountRestrictionTransaction'; +export * from './AddressAliasTransaction'; +export * from './AggregateTransaction'; +export * from './AggregateTransactionCosignature'; +export * from './AggregateTransactionInfo'; +export * from './AliasTransaction'; +export * from './CosignatoryModificationAction'; +export * from './CosignatureSignedTransaction'; +export * from './CosignatureTransaction'; +export * from './Deadline'; +export * from './HashLockTransaction'; +export * from './InnerTransaction'; +export * from './LinkAction'; +export * from './LockFundsTransaction'; +export * from './MosaicAddressRestrictionTransaction'; +export * from './MosaicAliasTransaction'; +export * from './MosaicDefinitionTransaction'; +export * from './MosaicGlobalRestrictionTransaction'; +export * from './MosaicMetadataTransaction'; +export * from './MosaicSupplyChangeTransaction'; +export * from './MultisigAccountModificationTransaction'; +export * from './MultisigCosignatoryModification'; +export * from './NamespaceMetadataTransaction'; +export * from './NamespaceRegistrationTransaction'; +export * from './NodeKeyLinkTransaction'; +export * from './PersistentDelegationRequestTransaction'; +export * from './SecretLockTransaction'; +export * from './SecretProofTransaction'; +export * from './SignedTransaction'; +export * from './SyncAnnounce'; +export * from './Transaction'; +export * from './TransactionAnnounceResponse'; +export * from './TransactionInfo'; +export * from './TransactionStatus'; +export * from './TransactionStatusError'; +export * from './TransactionType'; +export * from './TransactionVersion'; +export * from './TransferTransaction'; +export * from './VotingKeyLinkTransaction'; +export * from './VrfKeyLinkTransaction'; diff --git a/src/model/wallet/index.ts b/src/model/wallet/index.ts new file mode 100644 index 0000000000..62c702c0ab --- /dev/null +++ b/src/model/wallet/index.ts @@ -0,0 +1,6 @@ +// created from 'create-ts-index' + +export * from './ISimpleWalletDTO'; +export * from './Password'; +export * from './SimpleWallet'; +export * from './Wallet'; diff --git a/src/service/index.ts b/src/service/index.ts new file mode 100644 index 0000000000..3035138656 --- /dev/null +++ b/src/service/index.ts @@ -0,0 +1,15 @@ +// created from 'create-ts-index' + +export * from './interfaces'; +export * from './AccountService'; +export * from './AggregateTransactionService'; +export * from './BlockService'; +export * from './CurrencyService'; +export * from './MetadataTransactionService'; +export * from './MosaicAmountView'; +export * from './MosaicRestrictionTransactionService'; +export * from './MosaicService'; +export * from './MosaicView'; +export * from './Namespace'; +export * from './NamespaceService'; +export * from './TransactionService'; diff --git a/src/service/interfaces/index.ts b/src/service/interfaces/index.ts index 78eb2f46da..16408639e4 100644 --- a/src/service/interfaces/index.ts +++ b/src/service/interfaces/index.ts @@ -1,18 +1,4 @@ -/* - * Copyright 2020 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file 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, software - * distributed under the License is 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. - */ +// created from 'create-ts-index' export * from './IAccountService'; export * from './IBlockService'; diff --git a/src/service/service.ts b/src/service/service.ts deleted file mode 100644 index 54a474613f..0000000000 --- a/src/service/service.ts +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright 2018 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file 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, software - * distributed under the License is 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. - */ - -export * from './AccountService'; -export * from './NamespaceService'; -export * from './MosaicService'; -export * from './AggregateTransactionService'; -export * from './MetadataTransactionService'; -export * from './MosaicRestrictionTransactionService'; -export * from './TransactionService'; -export * from './BlockService'; -export * from './interfaces/IAccountService'; -export * from './interfaces/IBlockService'; -export * from './interfaces/ITransactionService'; diff --git a/test/infrastructure/NodeHttp.spec.ts b/test/infrastructure/NodeHttp.spec.ts index cda64f3c76..6b58e9c594 100644 --- a/test/infrastructure/NodeHttp.spec.ts +++ b/test/infrastructure/NodeHttp.spec.ts @@ -31,7 +31,7 @@ import { import { instance, mock, reset, when } from 'ts-mockito'; import { DtoMapping } from '../../src/core/utils/DtoMapping'; import { NodeHttp } from '../../src/infrastructure/NodeHttp'; -import { RoleType } from '../../src/model/model'; +import { RoleType } from '../../src/model'; import { NetworkType } from '../../src/model/network/NetworkType'; describe('NodeHttp', () => { diff --git a/test/infrastructure/Page.spec.ts b/test/infrastructure/Page.spec.ts index 6d75eed3bf..ee5e93a337 100644 --- a/test/infrastructure/Page.spec.ts +++ b/test/infrastructure/Page.spec.ts @@ -15,12 +15,12 @@ */ import { expect } from 'chai'; -import { Page } from '../../src/infrastructure/infrastructure'; -import { PlainMessage } from '../../src/model/message/PlainMessage'; -import { NetworkType } from '../../src/model/network/NetworkType'; -import { Deadline } from '../../src/model/transaction/Deadline'; -import { Transaction } from '../../src/model/transaction/Transaction'; -import { TransferTransaction } from '../../src/model/transaction/TransferTransaction'; +import { Page } from '../../src/infrastructure'; +import { PlainMessage } from '../../src/model/message'; +import { NetworkType } from '../../src/model/network'; +import { Deadline } from '../../src/model/transaction'; +import { Transaction } from '../../src/model/transaction'; +import { TransferTransaction } from '../../src/model/transaction'; import { TestingAccount } from '../conf/conf.spec'; describe('Page', () => { diff --git a/test/infrastructure/ReceiptHttp.spec.ts b/test/infrastructure/ReceiptHttp.spec.ts index 255fe42c95..d394068b60 100644 --- a/test/infrastructure/ReceiptHttp.spec.ts +++ b/test/infrastructure/ReceiptHttp.spec.ts @@ -30,7 +30,7 @@ import { instance, mock, reset, when } from 'ts-mockito'; import { DtoMapping } from '../../src/core/utils/DtoMapping'; import { ReceiptHttp } from '../../src/infrastructure/ReceiptHttp'; import { PublicAccount } from '../../src/model/account/PublicAccount'; -import { UInt64, NamespaceId, MosaicId, ResolutionType } from '../../src/model/model'; +import { UInt64, NamespaceId, MosaicId, ResolutionType } from '../../src/model'; import { NetworkType } from '../../src/model/network/NetworkType'; import { ResolutionStatementInfoDTO } from 'symbol-openapi-typescript-fetch-client'; import { Pagination } from 'symbol-openapi-typescript-fetch-client'; diff --git a/test/model/transaction/AddressAliasTransaction.spec.ts b/test/model/transaction/AddressAliasTransaction.spec.ts index 4e07af2c02..b86e120ddb 100644 --- a/test/model/transaction/AddressAliasTransaction.spec.ts +++ b/test/model/transaction/AddressAliasTransaction.spec.ts @@ -25,7 +25,7 @@ import { AddressAliasTransaction } from '../../../src/model/transaction/AddressA import { Deadline } from '../../../src/model/transaction/Deadline'; import { UInt64 } from '../../../src/model/UInt64'; import { TestingAccount } from '../../conf/conf.spec'; -import { AliasTransaction } from '../../../src/model/model'; +import { AliasTransaction } from '../../../src/model'; describe('AddressAliasTransaction', () => { let account: Account; diff --git a/test/service/BlockService.spec.ts b/test/service/BlockService.spec.ts index 3d0fcaa94c..110dfb6e41 100644 --- a/test/service/BlockService.spec.ts +++ b/test/service/BlockService.spec.ts @@ -33,7 +33,7 @@ import { TransactionRepository } from '../../src/infrastructure/TransactionRepos import { Page } from '../../src/infrastructure/Page'; import { Transaction } from '../../src/model/transaction/Transaction'; import { TransferTransaction } from '../../src/model/transaction/TransferTransaction'; -import { Deadline, TransactionInfo } from '../../src/model/model'; +import { Deadline, TransactionInfo } from '../../src/model'; import { PlainMessage } from '../../src/model/message/PlainMessage'; import { TransactionGroup } from '../../src/infrastructure/TransactionGroup';