ia-common 1.0.1-beta.21 → 1.0.1-beta.211
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/@enum.d.ts +29 -0
- package/build/@enum.js +29 -0
- package/build/@model.d.ts +17 -0
- package/build/@model.js +17 -0
- package/build/@type.d.ts +9 -0
- package/build/@type.js +9 -0
- package/build/@utils.d.ts +2 -0
- package/build/@utils.js +3 -0
- package/build/enum/advice-status.enum.d.ts +7 -0
- package/build/enum/advice-status.enum.js +11 -0
- package/build/enum/advice-type.enum.d.ts +6 -0
- package/build/enum/advice-type.enum.js +10 -0
- package/build/enum/advisor-user-mapping-type.enum.d.ts +4 -0
- package/build/enum/advisor-user-mapping-type.enum.js +8 -0
- package/build/enum/buy-back-type.enum.d.ts +4 -0
- package/build/enum/buy-back-type.enum.js +8 -0
- package/build/enum/configuration-description.enum.d.ts +3 -0
- package/build/enum/configuration-description.enum.js +7 -0
- package/build/enum/configuration-key.enum.d.ts +8 -0
- package/build/enum/configuration-key.enum.js +25 -0
- package/build/enum/configuration-text.enum.d.ts +3 -0
- package/build/enum/configuration-text.enum.js +7 -0
- package/build/enum/corporate-action-advice-status.enum.d.ts +6 -0
- package/build/enum/corporate-action-advice-status.enum.js +10 -0
- package/build/enum/corporate-actions-advice-transaction-type.enum.d.ts +5 -0
- package/build/enum/corporate-actions-advice-transaction-type.enum.js +9 -0
- package/build/enum/corporate-actions-status.enum.d.ts +5 -0
- package/build/enum/corporate-actions-status.enum.js +9 -0
- package/build/enum/corporate-actions-type.enum.d.ts +13 -0
- package/build/enum/corporate-actions-type.enum.js +17 -0
- package/build/enum/cron-job-name.enum.d.ts +3 -0
- package/build/enum/cron-job-name.enum.js +7 -0
- package/build/enum/cron-job-status.enum.d.ts +5 -0
- package/build/enum/cron-job-status.enum.js +9 -0
- package/build/enum/investment-duration-type.enum.d.ts +5 -0
- package/build/enum/investment-duration-type.enum.js +9 -0
- package/build/enum/ipo-advice-transaction-type.enum.d.ts +4 -0
- package/build/enum/ipo-advice-transaction-type.enum.js +8 -0
- package/build/enum/ipo-listing-exchange.enum.d.ts +6 -0
- package/build/enum/ipo-listing-exchange.enum.js +10 -0
- package/build/enum/ipo-listing-platform.enum.d.ts +5 -0
- package/build/enum/ipo-listing-platform.enum.js +9 -0
- package/build/enum/kafka-topics.enum.d.ts +5 -0
- package/build/enum/kafka-topics.enum.js +9 -0
- package/build/enum/mutual-fund-advice-duration.enum.d.ts +4 -0
- package/build/enum/mutual-fund-advice-duration.enum.js +8 -0
- package/build/enum/mutual-fund-advice-type.enum.d.ts +5 -0
- package/build/enum/mutual-fund-advice-type.enum.js +9 -0
- package/build/enum/mutual-fund-status.enum.d.ts +6 -0
- package/build/enum/mutual-fund-status.enum.js +10 -0
- package/build/enum/mutual-funds-risk.enum.d.ts +7 -0
- package/build/enum/mutual-funds-risk.enum.js +11 -0
- package/build/enum/mutual-funds-type.enum.d.ts +7 -0
- package/build/enum/mutual-funds-type.enum.js +11 -0
- package/build/enum/nfo-advice-status.enum.d.ts +6 -0
- package/build/enum/nfo-advice-status.enum.js +10 -0
- package/build/enum/nfo-advice-transaction-type.enum.d.ts +4 -0
- package/build/enum/nfo-advice-transaction-type.enum.js +8 -0
- package/build/enum/owner-operation-type.enum.d.ts +3 -0
- package/build/enum/owner-operation-type.enum.js +7 -0
- package/build/enum/split-and-bonus-stock-order.enum.d.ts +4 -0
- package/build/enum/split-and-bonus-stock-order.enum.js +8 -0
- package/build/enum/time-zone.enum.d.ts +3 -0
- package/build/enum/time-zone.enum.js +7 -0
- package/build/enum/transaction-type.enum.d.ts +5 -0
- package/build/enum/transaction-type.enum.js +9 -0
- package/build/enum/user-type.enum.d.ts +4 -1
- package/build/enum/user-type.enum.js +3 -0
- package/build/interface/advice-file-documents.interface.d.ts +8 -0
- package/build/interface/api/add-ipo.interface.d.ts +13 -0
- package/build/interface/api/add-mutual-funds.interface.d.ts +8 -0
- package/build/interface/api/advisor-user-mapping-entity.interface.d.ts +6 -0
- package/build/interface/api/advisor-user-mapping-entity.interface.js +2 -0
- package/build/interface/api/base-corporate-actions.interface.d.ts +7 -0
- package/build/interface/api/base-corporate-actions.interface.js +2 -0
- package/build/interface/api/create-advice.interface.d.ts +21 -0
- package/build/interface/api/create-advice.interface.js +2 -0
- package/build/interface/api/create-bonus-stock.interface.d.ts +6 -0
- package/build/interface/api/create-bonus-stock.interface.js +2 -0
- package/build/interface/api/create-bulk-advice-using-csv.interface.d.ts +7 -0
- package/build/interface/api/create-bulk-advice-using-csv.interface.js +2 -0
- package/build/interface/api/create-buy-back-interface.d.ts +6 -0
- package/build/interface/api/create-buy-back-interface.js +2 -0
- package/build/interface/api/create-client.interface.d.ts +12 -0
- package/build/interface/api/create-client.interface.js +2 -0
- package/build/interface/api/create-corporate-action-advice.interface.d.ts +8 -0
- package/build/interface/api/create-corporate-action-advice.interface.js +2 -0
- package/build/interface/api/create-delisting.interface.d.ts +6 -0
- package/build/interface/api/create-delisting.interface.js +2 -0
- package/build/interface/api/create-dividend-interface.d.ts +6 -0
- package/build/interface/api/create-dividend-interface.js +2 -0
- package/build/interface/api/create-fpo.interface.d.ts +6 -0
- package/build/interface/api/create-fpo.interface.js +2 -0
- package/build/interface/api/create-ipo-advice.interface.d.ts +14 -0
- package/build/interface/api/create-ipo-advice.interface.js +2 -0
- package/build/interface/api/create-ipo.interface.d.ts +6 -0
- package/build/interface/api/create-ipo.interface.js +2 -0
- package/build/interface/api/create-mutual-fund-advice.interface.d.ts +17 -0
- package/build/interface/api/create-mutual-fund-advice.interface.js +2 -0
- package/build/interface/api/create-nfo-advice.interface.d.ts +13 -0
- package/build/interface/api/create-nfo-advice.interface.js +2 -0
- package/build/interface/api/create-nfo.interface.d.ts +12 -0
- package/build/interface/api/create-nfo.interface.js +2 -0
- package/build/interface/api/create-ofs.interface.d.ts +6 -0
- package/build/interface/api/create-ofs.interface.js +2 -0
- package/build/interface/api/create-open-offer.interface.d.ts +6 -0
- package/build/interface/api/create-open-offer.interface.js +2 -0
- package/build/interface/api/create-pricing-plan.interface.d.ts +1 -0
- package/build/interface/api/create-registration.interface.d.ts +0 -2
- package/build/interface/api/create-right-issue.interface.d.ts +6 -0
- package/build/interface/api/create-right-issue.interface.js +2 -0
- package/build/interface/api/create-split-bonus-stock.interface.d.ts +6 -0
- package/build/interface/api/create-split-bonus-stock.interface.js +2 -0
- package/build/interface/api/create-split-stock.interface.d.ts +6 -0
- package/build/interface/api/create-split-stock.interface.js +2 -0
- package/build/interface/api/create-staff-dto.d.ts +9 -0
- package/build/interface/api/create-staff-dto.js +2 -0
- package/build/interface/api/create-subscription.interface.d.ts +11 -0
- package/build/interface/api/{remove-bank-details-by-id.interface.d.ts → delete-bank-details-by-id.interface.d.ts} +1 -1
- package/build/interface/api/delete-bank-details-by-id.interface.js +2 -0
- package/build/interface/api/{remove-pricing-plan-by-id.interface.d.ts → delete-pricing-plan-by-id.interface.d.ts} +1 -1
- package/build/interface/api/delete-pricing-plan-by-id.interface.js +2 -0
- package/build/interface/api/get-advice-by-id.interface.d.ts +5 -0
- package/build/interface/api/get-advice-by-id.interface.js +2 -0
- package/build/interface/api/get-advice-by-ids-status.inteface.d.ts +5 -0
- package/build/interface/api/get-advice-by-ids-status.inteface.js +2 -0
- package/build/interface/api/get-corporate-action-advice.interface.d.ts +4 -0
- package/build/interface/api/get-corporate-action-advice.interface.js +2 -0
- package/build/interface/api/get-corporate-actions.interface.d.ts +22 -0
- package/build/interface/api/get-corporate-actions.interface.js +3 -0
- package/build/interface/api/get-ipo-by-issue-end-date.interface.d.ts +4 -0
- package/build/interface/api/get-ipo-by-issue-end-date.interface.js +2 -0
- package/build/interface/api/get-mutual-funds-by-type.interface.d.ts +4 -0
- package/build/interface/api/get-mutual-funds-by-type.interface.js +2 -0
- package/build/interface/api/get-nfo-advice.interface.d.ts +4 -0
- package/build/interface/api/get-nfo-advice.interface.js +2 -0
- package/build/interface/api/get-nfo.interface.d.ts +4 -0
- package/build/interface/api/get-nfo.interface.js +2 -0
- package/build/interface/api/get-organization-by-id.interface.d.ts +6 -0
- package/build/interface/api/get-organization-by-id.interface.js +2 -0
- package/build/interface/api/get-organization-entities.interface.d.ts +9 -0
- package/build/interface/api/get-organization-entities.interface.js +2 -0
- package/build/interface/api/get-pricing-plan-by-date.interface.d.ts +2 -13
- package/build/interface/api/get-registration-by-id.interface.d.ts +1 -1
- package/build/interface/api/get-registration-with-organization-owners.interface.d.ts +1 -1
- package/build/interface/api/get-staff-members.interface.d.ts +10 -0
- package/build/interface/api/get-staff-members.interface.js +2 -0
- package/build/interface/api/get-user-entities-by-advisor-id-type.interface.d.ts +4 -0
- package/build/interface/api/get-user-entities-by-advisor-id-type.interface.js +2 -0
- package/build/interface/api/index.d.ts +57 -2
- package/build/interface/api/index.js +57 -2
- package/build/interface/api/remove-staff-member.interface.d.ts +3 -0
- package/build/interface/api/remove-staff-member.interface.js +2 -0
- package/build/interface/api/update-advice.interface.d.ts +20 -0
- package/build/interface/api/update-advice.interface.js +2 -0
- package/build/interface/api/update-bonus-stock.interface.d.ts +6 -0
- package/build/interface/api/update-bonus-stock.interface.js +2 -0
- package/build/interface/api/update-buy-back.interface.d.ts +6 -0
- package/build/interface/api/update-buy-back.interface.js +2 -0
- package/build/interface/api/update-corporate-action-advice.interface.d.ts +9 -0
- package/build/interface/api/update-corporate-action-advice.interface.js +2 -0
- package/build/interface/api/update-corporate-action.interface.d.ts +8 -0
- package/build/interface/api/update-corporate-action.interface.js +2 -0
- package/build/interface/api/update-delisting.interface.d.ts +5 -0
- package/build/interface/api/update-delisting.interface.js +2 -0
- package/build/interface/api/update-dividend.interface.d.ts +6 -0
- package/build/interface/api/update-dividend.interface.js +2 -0
- package/build/interface/api/update-fpo.interface.d.ts +6 -0
- package/build/interface/api/update-fpo.interface.js +2 -0
- package/build/interface/api/update-ipo.interface.d.ts +6 -0
- package/build/interface/api/update-ipo.interface.js +2 -0
- package/build/interface/api/update-nfo-advice.interface.d.ts +14 -0
- package/build/interface/api/update-nfo-advice.interface.js +2 -0
- package/build/interface/api/update-ofs.interface.d.ts +6 -0
- package/build/interface/api/update-ofs.interface.js +2 -0
- package/build/interface/api/update-open-offer.interface.d.ts +6 -0
- package/build/interface/api/update-open-offer.interface.js +2 -0
- package/build/interface/api/update-organization.interface.d.ts +3 -0
- package/build/interface/api/update-right-issue.interface.d.ts +6 -0
- package/build/interface/api/update-right-issue.interface.js +2 -0
- package/build/interface/api/update-split-bonus.interface.d.ts +6 -0
- package/build/interface/api/update-split-bonus.interface.js +2 -0
- package/build/interface/api/update-split-stock.interface.d.ts +6 -0
- package/build/interface/api/update-split-stock.interface.js +2 -0
- package/build/interface/api/update-staff.dto.d.ts +9 -0
- package/build/interface/api/update-staff.dto.js +2 -0
- package/build/interface/corporate-actions/bonus-corporate-actions.interface.d.ts +5 -0
- package/build/interface/corporate-actions/bonus-corporate-actions.interface.js +2 -0
- package/build/interface/corporate-actions/bonus-stock-data.interface.d.ts +4 -0
- package/build/interface/corporate-actions/bonus-stock-data.interface.js +2 -0
- package/build/interface/corporate-actions/buy-back-corporate-actions.interface.d.ts +8 -0
- package/build/interface/corporate-actions/buy-back-corporate-actions.interface.js +2 -0
- package/build/interface/corporate-actions/corporate-entity-omit-data.interface.d.ts +2 -0
- package/build/interface/corporate-actions/corporate-entity-omit-data.interface.js +2 -0
- package/build/interface/corporate-actions/delisting-corporate-actions.interface.d.ts +6 -0
- package/build/interface/corporate-actions/delisting-corporate-actions.interface.js +2 -0
- package/build/interface/corporate-actions/dividend-corporate-actions.interface.d.ts +6 -0
- package/build/interface/corporate-actions/dividend-corporate-actions.interface.js +2 -0
- package/build/interface/corporate-actions/fpo-corporate-actions.interface.d.ts +7 -0
- package/build/interface/corporate-actions/fpo-corporate-actions.interface.js +2 -0
- package/build/interface/corporate-actions/index.d.ts +14 -0
- package/build/interface/corporate-actions/index.js +30 -0
- package/build/interface/corporate-actions/ipo-corporate-action.interface.d.ts +9 -0
- package/build/interface/corporate-actions/ipo-corporate-action.interface.js +2 -0
- package/build/interface/corporate-actions/ofs-corporate-actions.interface.d.ts +6 -0
- package/build/interface/corporate-actions/ofs-corporate-actions.interface.js +2 -0
- package/build/interface/corporate-actions/open-offer-corporate-actions.interface.d.ts +6 -0
- package/build/interface/corporate-actions/open-offer-corporate-actions.interface.js +2 -0
- package/build/interface/corporate-actions/right-issues-corporate-actions.interface.d.ts +8 -0
- package/build/interface/corporate-actions/right-issues-corporate-actions.interface.js +2 -0
- package/build/interface/corporate-actions/split-bonus-corporate-action.interface.d.ts +7 -0
- package/build/interface/corporate-actions/split-bonus-corporate-action.interface.js +2 -0
- package/build/interface/corporate-actions/split-stock-corporate-actions.interface.d.ts +5 -0
- package/build/interface/corporate-actions/split-stock-corporate-actions.interface.js +2 -0
- package/build/interface/corporate-actions/split-stock-data.interface.d.ts +4 -0
- package/build/interface/corporate-actions/split-stock-data.interface.js +2 -0
- package/build/interface/entity/advice-entity.interface.d.ts +20 -0
- package/build/interface/entity/advice-entity.interface.js +2 -0
- package/build/interface/entity/configurations-entity.interface.d.ts +9 -0
- package/build/interface/entity/configurations-entity.interface.js +2 -0
- package/build/interface/entity/corporate-action-advice-entity.interface.d.ts +14 -0
- package/build/interface/entity/corporate-action-advice-entity.interface.js +2 -0
- package/build/interface/entity/corporate-actions-entity.interface.d.ts +5 -0
- package/build/interface/entity/corporate-actions-entity.interface.js +2 -0
- package/build/interface/entity/cron-job-entity.interface.d.ts +11 -0
- package/build/interface/entity/cron-job-entity.interface.js +2 -0
- package/build/interface/entity/equity-advice-in-process-entity.interface.d.ts +15 -0
- package/build/interface/entity/equity-advice-in-process-entity.interface.js +2 -0
- package/build/interface/entity/index.d.ts +13 -0
- package/build/interface/entity/index.js +13 -0
- package/build/interface/entity/ipo-advice-entity.interface.d.ts +16 -0
- package/build/interface/entity/ipo-advice-entity.interface.js +2 -0
- package/build/interface/entity/ipo-entity.interface.d.ts +11 -0
- package/build/interface/entity/ipo-entity.interface.js +2 -0
- package/build/interface/entity/mutual-fund-advice-entity.interface.d.ts +19 -0
- package/build/interface/entity/mutual-fund-advice-entity.interface.js +2 -0
- package/build/interface/entity/mutual-funds-entity.interface.d.ts +17 -0
- package/build/interface/entity/mutual-funds-entity.interface.js +2 -0
- package/build/interface/entity/nfo-entity.interface.d.ts +10 -0
- package/build/interface/entity/nfo-entity.interface.js +2 -0
- package/build/interface/entity/nfp-advice-entity.interface.d.ts +14 -0
- package/build/interface/entity/nfp-advice-entity.interface.js +2 -0
- package/build/interface/entity/organization-entity.interface.d.ts +1 -0
- package/build/interface/entity/user-entity.interface.d.ts +1 -0
- package/build/interface/last-trade.interface.d.ts +4 -0
- package/build/interface/last-trade.interface.js +2 -0
- package/build/interface/model/organization-entity-model.interface.d.ts +11 -0
- package/build/interface/model/organization-entity-model.interface.js +2 -0
- package/build/interface/ng-date-struct.interface.d.ts +5 -0
- package/build/interface/ng-date-struct.interface.js +2 -0
- package/build/interface/pricing-plan-model.interface.d.ts +10 -0
- package/build/interface/pricing-plan-model.interface.js +2 -0
- package/build/interface/selected-billing-cycle.interface.d.ts +7 -0
- package/build/interface/selected-billing-cycle.interface.js +2 -0
- package/build/interface/stock-advice.interface.d.ts +8 -0
- package/build/interface/stock-advice.interface.js +2 -0
- package/build/interface/subscription-data.inteface.d.ts +4 -0
- package/build/interface/subscription-data.inteface.js +2 -0
- package/build/interface/tree-value.interface.d.ts +5 -0
- package/build/interface/tree-value.interface.js +2 -0
- package/build/interface/update-user-info.interface.d.ts +2 -2
- package/build/model/bank-details-entity-model.d.ts +19 -0
- package/build/model/bank-details-entity-model.js +18 -0
- package/build/model/bonus-corporate-action-model.d.ts +17 -0
- package/build/model/bonus-corporate-action-model.js +31 -0
- package/build/model/buy-back-corporate-action-model.d.ts +19 -0
- package/build/model/buy-back-corporate-action-model.js +44 -0
- package/build/model/configurations-entity-model.d.ts +16 -0
- package/build/model/configurations-entity-model.js +17 -0
- package/build/model/corporate-action-model.d.ts +37 -0
- package/build/model/corporate-action-model.js +54 -0
- package/build/model/delisting-corporate-action-model.d.ts +18 -0
- package/build/model/delisting-corporate-action-model.js +32 -0
- package/build/model/dividend-corporate-action-model.d.ts +18 -0
- package/build/model/dividend-corporate-action-model.js +43 -0
- package/build/model/fpo-corporate-action-model.d.ts +21 -0
- package/build/model/fpo-corporate-action-model.js +33 -0
- package/build/model/ipo-corporate-action-model.d.ts +20 -0
- package/build/model/ipo-corporate-action-model.js +34 -0
- package/build/model/ofs-corporate-action-model.d.ts +18 -0
- package/build/model/ofs-corporate-action-model.js +32 -0
- package/build/model/open-offer-corporate-action-model.d.ts +18 -0
- package/build/model/open-offer-corporate-action-model.js +32 -0
- package/build/model/organization-entity-model.d.ts +36 -0
- package/build/model/organization-entity-model.js +69 -0
- package/build/model/pricing-plan-entity-model.d.ts +5 -40
- package/build/model/pricing-plan-entity-model.js +47 -31
- package/build/model/pricing-plan-model.d.ts +21 -0
- package/build/model/pricing-plan-model.js +63 -0
- package/build/model/right-issue-corporate-action-model.d.ts +20 -0
- package/build/model/right-issue-corporate-action-model.js +34 -0
- package/build/model/split-bonus-corporate-action-model.d.ts +18 -0
- package/build/model/split-bonus-corporate-action-model.js +35 -0
- package/build/model/split-corporate-action-model.d.ts +17 -0
- package/build/model/split-corporate-action-model.js +31 -0
- package/build/model/subscribed-pricing-plan-model.d.ts +17 -10
- package/build/model/subscribed-pricing-plan-model.js +50 -32
- package/build/model/subscription-entity-model.d.ts +25 -0
- package/build/model/subscription-entity-model.js +58 -0
- package/build/model/user-entity-model.d.ts +26 -0
- package/build/model/user-entity-model.js +36 -0
- package/build/red-black-tree/js-cols.d.ts +0 -0
- package/build/red-black-tree/js-cols.js +6259 -0
- package/build/red-black-tree/red-black-tree.d.ts +11 -0
- package/build/red-black-tree/red-black-tree.js +56 -0
- package/build/utils/date-util.d.ts +14 -0
- package/build/utils/date-util.js +51 -0
- package/build/utils/string-utils.d.ts +6 -0
- package/build/utils/string-utils.js +18 -0
- package/build/utils/validate-utils.d.ts +4 -0
- package/build/utils/validate-utils.js +20 -0
- package/package.json +1 -1
- package/build/interface/api/login-interface.d.ts +0 -22
- /package/build/interface/{api/login-interface.js → advice-file-documents.interface.js} +0 -0
- /package/build/interface/api/{remove-bank-details-by-id.interface.js → add-ipo.interface.js} +0 -0
- /package/build/interface/api/{remove-pricing-plan-by-id.interface.js → add-mutual-funds.interface.js} +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare class RedBlackTree<T, V> {
|
|
2
|
+
js_col: RedBlackTree<T, V>;
|
|
3
|
+
constructor(compare: any);
|
|
4
|
+
insert<T, V>(key: T, value: V): T;
|
|
5
|
+
remove(key: string): V;
|
|
6
|
+
getMin(): V;
|
|
7
|
+
isEmpty(): boolean;
|
|
8
|
+
getValues(): V[];
|
|
9
|
+
static getMinTree<T, V>(): RedBlackTree<T, V>;
|
|
10
|
+
static getMaxTree<T, V>(): RedBlackTree<T, V>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RedBlackTree = void 0;
|
|
4
|
+
var _utils_1 = require("../@utils");
|
|
5
|
+
var js_cols = require("./js-cols");
|
|
6
|
+
var RedBlackTree = /** @class */ (function () {
|
|
7
|
+
function RedBlackTree(compare) {
|
|
8
|
+
this.js_col = new js_cols.RedBlackMap(compare);
|
|
9
|
+
}
|
|
10
|
+
RedBlackTree.prototype.insert = function (key, value) {
|
|
11
|
+
this.js_col.insert(key, value);
|
|
12
|
+
return key;
|
|
13
|
+
};
|
|
14
|
+
RedBlackTree.prototype.remove = function (key) {
|
|
15
|
+
return this.js_col.remove(key);
|
|
16
|
+
};
|
|
17
|
+
RedBlackTree.prototype.getMin = function () {
|
|
18
|
+
return this.js_col.getMin();
|
|
19
|
+
};
|
|
20
|
+
RedBlackTree.prototype.isEmpty = function () {
|
|
21
|
+
return this.js_col.isEmpty();
|
|
22
|
+
};
|
|
23
|
+
RedBlackTree.prototype.getValues = function () {
|
|
24
|
+
return this.js_col.getValues();
|
|
25
|
+
};
|
|
26
|
+
RedBlackTree.getMinTree = function () {
|
|
27
|
+
var compare = function (a, b) {
|
|
28
|
+
var _a = a.split("#"), aInteger = _a[0], aDecimal = _a[1];
|
|
29
|
+
var _b = b.split("#"), bInteger = _b[0], bDecimal = _b[1];
|
|
30
|
+
var aFormatted = "".concat(_utils_1.StringUtil.PadStartToIntegerPart(Number(aInteger)), "#").concat(Number(aDecimal));
|
|
31
|
+
var bFormatted = "".concat(_utils_1.StringUtil.PadStartToIntegerPart(Number(bInteger)), "#").concat(Number(bDecimal));
|
|
32
|
+
if (aFormatted < bFormatted)
|
|
33
|
+
return -1;
|
|
34
|
+
if (aFormatted > bFormatted)
|
|
35
|
+
return 1;
|
|
36
|
+
return 0;
|
|
37
|
+
};
|
|
38
|
+
return new RedBlackTree(compare);
|
|
39
|
+
};
|
|
40
|
+
RedBlackTree.getMaxTree = function () {
|
|
41
|
+
var compare = function (a, b) {
|
|
42
|
+
var _a = a.split("#"), aInteger = _a[0], aDecimal = _a[1];
|
|
43
|
+
var _b = b.split("#"), bInteger = _b[0], bDecimal = _b[1];
|
|
44
|
+
var aFormatted = "".concat(_utils_1.StringUtil.PadStartToIntegerPart(Number(aInteger)), "#").concat(Number(aDecimal));
|
|
45
|
+
var bFormatted = "".concat(_utils_1.StringUtil.PadStartToIntegerPart(Number(bInteger)), "#").concat(Number(bDecimal));
|
|
46
|
+
if (aFormatted < bFormatted)
|
|
47
|
+
return 1;
|
|
48
|
+
if (aFormatted > bFormatted)
|
|
49
|
+
return -1;
|
|
50
|
+
return 0;
|
|
51
|
+
};
|
|
52
|
+
return new RedBlackTree(compare);
|
|
53
|
+
};
|
|
54
|
+
return RedBlackTree;
|
|
55
|
+
}());
|
|
56
|
+
exports.RedBlackTree = RedBlackTree;
|
|
@@ -1,8 +1,22 @@
|
|
|
1
|
+
import { INgbDateStruct } from "../@type";
|
|
1
2
|
export declare class DateUtil {
|
|
2
3
|
static isValidDate(dateCode: string): boolean;
|
|
3
4
|
getDateCode(date: Date): string;
|
|
5
|
+
getTodayCode(): string;
|
|
4
6
|
convertStringToDate(dateString: string, format?: string): Date;
|
|
5
7
|
addNDaysToDate(date: Date, n: number): Date;
|
|
6
8
|
addNDaysToDateCode(dateCode: string, n: number): string;
|
|
9
|
+
convertMonthsToNumber: (months: INgbDateStruct) => string;
|
|
10
|
+
convertNumberToNgbDateStruct: (numericDate: string) => INgbDateStruct | null;
|
|
11
|
+
formatDateCode(dateCode: string): string;
|
|
12
|
+
addYearsToDateCode(dateCode: string, noOfYear: number): string;
|
|
13
|
+
getDateTimeCode(date: Date): string;
|
|
14
|
+
formatCreatedOrUpdateOn(data: string): string;
|
|
15
|
+
convertToNgbDate(input: string): {
|
|
16
|
+
year: number;
|
|
17
|
+
month: number;
|
|
18
|
+
day: number;
|
|
19
|
+
};
|
|
20
|
+
dateCodeFormatter(dateCode: string, formatter: string): string;
|
|
7
21
|
}
|
|
8
22
|
export declare const dateUtil: DateUtil;
|
package/build/utils/date-util.js
CHANGED
|
@@ -4,6 +4,24 @@ exports.dateUtil = exports.DateUtil = void 0;
|
|
|
4
4
|
var date_fns_1 = require("date-fns");
|
|
5
5
|
var DateUtil = /** @class */ (function () {
|
|
6
6
|
function DateUtil() {
|
|
7
|
+
this.convertMonthsToNumber = function (months) {
|
|
8
|
+
var year = months.year.toString().slice(2, 4);
|
|
9
|
+
var month = months.month.toString().padStart(2, "0");
|
|
10
|
+
var day = months.day.toString().padStart(2, "0");
|
|
11
|
+
var dates = year.concat(month).concat(day);
|
|
12
|
+
return "".concat(dates);
|
|
13
|
+
};
|
|
14
|
+
this.convertNumberToNgbDateStruct = function (numericDate) {
|
|
15
|
+
if (typeof numericDate === "string" && numericDate.length === 6) {
|
|
16
|
+
var year = parseInt(numericDate.slice(0, 2), 10);
|
|
17
|
+
var month = parseInt(numericDate.slice(2, 4), 10);
|
|
18
|
+
var day = parseInt(numericDate.slice(4, 6), 10);
|
|
19
|
+
if (!isNaN(year) && !isNaN(month) && !isNaN(day)) {
|
|
20
|
+
return { year: 2000 + year, month: month, day: day };
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return null;
|
|
24
|
+
};
|
|
7
25
|
}
|
|
8
26
|
DateUtil.isValidDate = function (dateCode) {
|
|
9
27
|
if (dateCode.length !== 6)
|
|
@@ -23,6 +41,9 @@ var DateUtil = /** @class */ (function () {
|
|
|
23
41
|
DateUtil.prototype.getDateCode = function (date) {
|
|
24
42
|
return (0, date_fns_1.format)(date, "yyMMdd");
|
|
25
43
|
};
|
|
44
|
+
DateUtil.prototype.getTodayCode = function () {
|
|
45
|
+
return (0, date_fns_1.format)(new Date(), "yyMMdd");
|
|
46
|
+
};
|
|
26
47
|
DateUtil.prototype.convertStringToDate = function (dateString, format) {
|
|
27
48
|
if (format === void 0) { format = "yyMMdd"; }
|
|
28
49
|
var parsedDate = (0, date_fns_1.parse)(dateString, format, new Date());
|
|
@@ -36,6 +57,36 @@ var DateUtil = /** @class */ (function () {
|
|
|
36
57
|
DateUtil.prototype.addNDaysToDateCode = function (dateCode, n) {
|
|
37
58
|
return this.getDateCode(this.addNDaysToDate(this.convertStringToDate(dateCode, "yyMMdd"), n));
|
|
38
59
|
};
|
|
60
|
+
DateUtil.prototype.formatDateCode = function (dateCode) {
|
|
61
|
+
var date = (0, date_fns_1.parse)(dateCode, "yyMMdd", new Date());
|
|
62
|
+
var d = (0, date_fns_1.format)(date, "dd-MMM (EE)");
|
|
63
|
+
return d.slice(0, d.length - 2) + d.slice(d.length - 1);
|
|
64
|
+
};
|
|
65
|
+
DateUtil.prototype.addYearsToDateCode = function (dateCode, noOfYear) {
|
|
66
|
+
var date = this.convertStringToDate(dateCode);
|
|
67
|
+
var nextYear = new Date(date);
|
|
68
|
+
nextYear.setFullYear(date.getFullYear() + 1);
|
|
69
|
+
return this.getDateCode(nextYear);
|
|
70
|
+
};
|
|
71
|
+
DateUtil.prototype.getDateTimeCode = function (date) {
|
|
72
|
+
return (0, date_fns_1.format)(date, "yyMMddHHmm");
|
|
73
|
+
};
|
|
74
|
+
DateUtil.prototype.formatCreatedOrUpdateOn = function (data) {
|
|
75
|
+
var datePart = data.slice(8, 10);
|
|
76
|
+
var monthPart = data.slice(5, 7);
|
|
77
|
+
var yearPart = data.slice(2, 4);
|
|
78
|
+
return "".concat(yearPart).concat(monthPart).concat(datePart);
|
|
79
|
+
};
|
|
80
|
+
DateUtil.prototype.convertToNgbDate = function (input) {
|
|
81
|
+
var year = 2000 + parseInt(input.substring(0, 2), 10);
|
|
82
|
+
var month = parseInt(input.substring(2, 4), 10);
|
|
83
|
+
var day = parseInt(input.substring(4, 6), 10);
|
|
84
|
+
return { year: year, month: month, day: day };
|
|
85
|
+
};
|
|
86
|
+
DateUtil.prototype.dateCodeFormatter = function (dateCode, formatter) {
|
|
87
|
+
var date = (0, date_fns_1.parse)(dateCode, "yyMMdd", new Date());
|
|
88
|
+
return (0, date_fns_1.format)(date, formatter);
|
|
89
|
+
};
|
|
39
90
|
return DateUtil;
|
|
40
91
|
}());
|
|
41
92
|
exports.DateUtil = DateUtil;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
export declare class StringUtil {
|
|
2
2
|
generateRandomPassword(): string;
|
|
3
|
+
static convertToIdObjectResponse<T extends {
|
|
4
|
+
id: number;
|
|
5
|
+
}>(entities: T[]): {
|
|
6
|
+
[id: number]: T;
|
|
7
|
+
};
|
|
8
|
+
static PadStartToIntegerPart(number: number, length?: number): string;
|
|
3
9
|
}
|
|
4
10
|
export declare const stringUtil: StringUtil;
|
|
@@ -35,6 +35,24 @@ var StringUtil = /** @class */ (function () {
|
|
|
35
35
|
}
|
|
36
36
|
return passwordArray.join("");
|
|
37
37
|
};
|
|
38
|
+
StringUtil.convertToIdObjectResponse = function (entities) {
|
|
39
|
+
var response = {};
|
|
40
|
+
entities.forEach(function (entity) {
|
|
41
|
+
if (!response[entity.id])
|
|
42
|
+
response[entity.id] = entity;
|
|
43
|
+
});
|
|
44
|
+
return response;
|
|
45
|
+
};
|
|
46
|
+
StringUtil.PadStartToIntegerPart = function (number, length) {
|
|
47
|
+
if (length === void 0) { length = 7; }
|
|
48
|
+
var numString = number.toString();
|
|
49
|
+
var _a = numString.split("."), integerPart = _a[0], decimalPart = _a[1];
|
|
50
|
+
var paddedIntegerPart = integerPart.padStart(length, "0");
|
|
51
|
+
var formattedNum = decimalPart
|
|
52
|
+
? "".concat(paddedIntegerPart, ".").concat(decimalPart)
|
|
53
|
+
: paddedIntegerPart;
|
|
54
|
+
return formattedNum;
|
|
55
|
+
};
|
|
38
56
|
return StringUtil;
|
|
39
57
|
}());
|
|
40
58
|
exports.StringUtil = StringUtil;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ValidateUtils = void 0;
|
|
4
|
+
var _model_1 = require("../@model");
|
|
5
|
+
var ValidateUtils = /** @class */ (function () {
|
|
6
|
+
function ValidateUtils() {
|
|
7
|
+
}
|
|
8
|
+
ValidateUtils.validateCorporateActionType = function (corporateActionType, expectedType) {
|
|
9
|
+
if (corporateActionType !== expectedType) {
|
|
10
|
+
throw new _model_1.AppBadRequestException({
|
|
11
|
+
key: expectedType,
|
|
12
|
+
message: [
|
|
13
|
+
"Corporate action entity with type does not belongs to ".concat(expectedType),
|
|
14
|
+
],
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
return ValidateUtils;
|
|
19
|
+
}());
|
|
20
|
+
exports.ValidateUtils = ValidateUtils;
|
package/package.json
CHANGED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export interface ILoginResponse {
|
|
2
|
-
UIMessage: string;
|
|
3
|
-
tokenType: string;
|
|
4
|
-
accessToken: string;
|
|
5
|
-
id: string;
|
|
6
|
-
firstname: string;
|
|
7
|
-
status: string;
|
|
8
|
-
requireNewPassword: boolean;
|
|
9
|
-
userId: number;
|
|
10
|
-
role: string;
|
|
11
|
-
email: string | null;
|
|
12
|
-
imageUrl: string | null;
|
|
13
|
-
userPermissions: string[];
|
|
14
|
-
registrationId: number;
|
|
15
|
-
organizationId: number;
|
|
16
|
-
subscriptionStatus: string | null;
|
|
17
|
-
contact: string;
|
|
18
|
-
}
|
|
19
|
-
export interface ILoginRequest {
|
|
20
|
-
username: string;
|
|
21
|
-
password: string;
|
|
22
|
-
}
|
|
File without changes
|
/package/build/interface/api/{remove-bank-details-by-id.interface.js → add-ipo.interface.js}
RENAMED
|
File without changes
|
|
File without changes
|