ia-common 1.0.1-beta.2 → 1.0.1-beta.200
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 +25 -0
- package/build/@enum.js +25 -0
- package/build/@model.d.ts +19 -0
- package/build/@model.js +35 -0
- package/build/@type.d.ts +10 -0
- package/build/@type.js +10 -0
- package/build/@utils.d.ts +4 -0
- package/build/@utils.js +21 -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/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/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/organization-status.enum.d.ts +6 -1
- package/build/enum/organization-status.enum.js +5 -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/pricing-plan-status.enum.d.ts +4 -0
- package/build/enum/pricing-plan-status.enum.js +8 -0
- package/build/enum/registration-status.enum.d.ts +6 -1
- package/build/enum/registration-status.enum.js +5 -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/subscription-status.enum.d.ts +11 -0
- package/build/enum/subscription-status.enum.js +15 -0
- package/build/enum/transaction-type.enum.d.ts +5 -0
- package/build/enum/transaction-type.enum.js +9 -0
- package/build/enum/user-status.enum.d.ts +5 -1
- package/build/enum/user-status.enum.js +4 -0
- package/build/enum/user-type.enum.d.ts +4 -1
- package/build/enum/user-type.enum.js +3 -0
- package/build/exception/app-badrequest.exception.d.ts +4 -0
- package/build/exception/app-badrequest.exception.js +28 -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-ipo.interface.js +2 -0
- package/build/interface/api/add-mutual-funds.interface.d.ts +8 -0
- package/build/interface/api/add-mutual-funds.interface.js +2 -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-bank-details.interface.d.ts +22 -0
- package/build/interface/api/create-bank-details.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 +21 -0
- package/build/interface/api/create-pricing-plan.interface.js +2 -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 +8 -0
- package/build/interface/api/create-staff-dto.js +2 -0
- package/build/interface/api/create-subscription.interface.d.ts +18 -0
- package/build/interface/api/create-subscription.interface.js +2 -0
- package/build/interface/api/delete-bank-details-by-id.interface.d.ts +7 -0
- package/build/interface/api/delete-bank-details-by-id.interface.js +2 -0
- package/build/interface/api/delete-pricing-plan-by-id.interface.d.ts +6 -0
- 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-bank-details.interface.d.ts +7 -0
- package/build/interface/api/get-bank-details.interface.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 +8 -0
- package/build/interface/api/get-organization-entities.interface.js +2 -0
- package/build/interface/api/get-pricing-plan-by-date.interface.d.ts +3 -0
- package/build/interface/api/get-pricing-plan-by-date.interface.js +2 -0
- package/build/interface/api/get-registration-by-id.interface.d.ts +15 -0
- package/build/interface/api/get-registration-by-id.interface.js +2 -0
- package/build/interface/api/get-registration-with-organization-owners.interface.d.ts +12 -0
- package/build/interface/api/get-registration-with-organization-owners.interface.js +2 -0
- 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 +69 -0
- package/build/interface/api/index.js +69 -0
- package/build/interface/api/login.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-bank-details.interface.d.ts +18 -0
- package/build/interface/api/update-bank-details.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 +2 -0
- package/build/interface/api/update-pricing-plan-by-id.interface.d.ts +18 -0
- package/build/interface/api/update-pricing-plan-by-id.interface.js +2 -0
- package/build/interface/api/update-pricing-plan.interface.d.ts +13 -0
- package/build/interface/api/update-pricing-plan.interface.js +2 -0
- package/build/interface/api/update-registration.interface.d.ts +8 -0
- package/build/interface/api/update-registration.interface.js +2 -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/api/update-subscription.interface.d.ts +11 -0
- package/build/interface/api/update-subscription.interface.js +2 -0
- package/build/interface/app-badrequest-exception.type.d.ts +4 -0
- package/build/interface/app-badrequest-exception.type.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/bank-details-entity.interface.d.ts +12 -0
- package/build/interface/entity/bank-details-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/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 +14 -0
- package/build/interface/entity/index.js +14 -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/pricing-plan-entity.interface.d.ts +10 -0
- package/build/interface/entity/pricing-plan-entity.interface.js +2 -0
- package/build/interface/entity/subscription-entity.interface.d.ts +17 -0
- package/build/interface/entity/subscription-entity.interface.js +2 -0
- package/build/interface/entity/user-entity.interface.d.ts +1 -0
- package/build/interface/key-value.interface.d.ts +3 -0
- package/build/interface/key-value.interface.js +2 -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/interface/user-entity-without-password.interface.d.ts +3 -0
- package/build/interface/user-entity-without-password.interface.js +2 -0
- 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/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 +35 -0
- package/build/model/organization-entity-model.js +69 -0
- package/build/model/pricing-plan-entity-model.d.ts +30 -0
- package/build/model/pricing-plan-entity-model.js +102 -0
- 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 +27 -0
- package/build/model/subscribed-pricing-plan-model.js +81 -0
- 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 +21 -0
- package/build/utils/date-util.js +90 -0
- package/build/utils/string-to-date-conversion-methods.d.ts +19 -0
- package/build/utils/string-to-date-conversion-methods.js +48 -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 +4 -1
- /package/build/interface/{api/login-interface.js → advice-file-documents.interface.js} +0 -0
- /package/build/interface/api/{login-interface.d.ts → login.interface.d.ts} +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;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { INgbDateStruct } from "../@type";
|
|
2
|
+
export declare class DateUtil {
|
|
3
|
+
static isValidDate(dateCode: string): boolean;
|
|
4
|
+
getDateCode(date: Date): string;
|
|
5
|
+
getTodayCode(): string;
|
|
6
|
+
convertStringToDate(dateString: string, format?: string): Date;
|
|
7
|
+
addNDaysToDate(date: Date, n: number): Date;
|
|
8
|
+
addNDaysToDateCode(dateCode: string, n: number): string;
|
|
9
|
+
convertMonthsToNumber: (months: INgbDateStruct) => string;
|
|
10
|
+
convertNumberToNgbDateStruct: (numericDate: string) => INgbDateStruct | null;
|
|
11
|
+
formatDateCode(dateCode: string, formatter?: 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
|
+
}
|
|
21
|
+
export declare const dateUtil: DateUtil;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.dateUtil = exports.DateUtil = void 0;
|
|
4
|
+
var date_fns_1 = require("date-fns");
|
|
5
|
+
var DateUtil = /** @class */ (function () {
|
|
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
|
+
};
|
|
25
|
+
}
|
|
26
|
+
DateUtil.isValidDate = function (dateCode) {
|
|
27
|
+
if (dateCode.length !== 6)
|
|
28
|
+
return false;
|
|
29
|
+
// Date format: YYMMDD
|
|
30
|
+
function isDate(dateString) {
|
|
31
|
+
var separators = ["\\.", "\\-", "\\/"];
|
|
32
|
+
var stringBits = dateString.split(new RegExp(separators.join("|"), "g"));
|
|
33
|
+
var intBits = stringBits.map(function (bit) { return parseInt(bit); });
|
|
34
|
+
var parsedDate = new Date(intBits[0], intBits[1] - 1, intBits[2]);
|
|
35
|
+
return (parsedDate.getFullYear() === intBits[0] &&
|
|
36
|
+
parsedDate.getMonth() + 1 === intBits[1] &&
|
|
37
|
+
parsedDate.getDate() === intBits[2]);
|
|
38
|
+
}
|
|
39
|
+
return isDate("20".concat(dateCode.slice(0, 2), ".").concat(dateCode.slice(2, 4), ".").concat(dateCode.slice(4, 6)));
|
|
40
|
+
};
|
|
41
|
+
DateUtil.prototype.getDateCode = function (date) {
|
|
42
|
+
return (0, date_fns_1.format)(date, "yyMMdd");
|
|
43
|
+
};
|
|
44
|
+
DateUtil.prototype.getTodayCode = function () {
|
|
45
|
+
return (0, date_fns_1.format)(new Date(), "yyMMdd");
|
|
46
|
+
};
|
|
47
|
+
DateUtil.prototype.convertStringToDate = function (dateString, format) {
|
|
48
|
+
if (format === void 0) { format = "yyMMdd"; }
|
|
49
|
+
var parsedDate = (0, date_fns_1.parse)(dateString, format, new Date());
|
|
50
|
+
// IST has a fixed offset of UTC+5:30
|
|
51
|
+
var indianDate = new Date(parsedDate.getTime() + 330 * 60 * 1000);
|
|
52
|
+
return indianDate;
|
|
53
|
+
};
|
|
54
|
+
DateUtil.prototype.addNDaysToDate = function (date, n) {
|
|
55
|
+
return (0, date_fns_1.add)(date, { days: n });
|
|
56
|
+
};
|
|
57
|
+
DateUtil.prototype.addNDaysToDateCode = function (dateCode, n) {
|
|
58
|
+
return this.getDateCode(this.addNDaysToDate(this.convertStringToDate(dateCode, "yyMMdd"), n));
|
|
59
|
+
};
|
|
60
|
+
DateUtil.prototype.formatDateCode = function (dateCode, formatter) {
|
|
61
|
+
if (formatter === void 0) { formatter = "dd-MMM (EE)"; }
|
|
62
|
+
var date = (0, date_fns_1.parse)(dateCode, "yyMMdd", new Date());
|
|
63
|
+
var d = (0, date_fns_1.format)(date, formatter);
|
|
64
|
+
return d.slice(0, d.length - 2) + d.slice(d.length - 1);
|
|
65
|
+
};
|
|
66
|
+
DateUtil.prototype.addYearsToDateCode = function (dateCode, noOfYear) {
|
|
67
|
+
var date = this.convertStringToDate(dateCode);
|
|
68
|
+
var nextYear = new Date(date);
|
|
69
|
+
nextYear.setFullYear(date.getFullYear() + 1);
|
|
70
|
+
return this.getDateCode(nextYear);
|
|
71
|
+
};
|
|
72
|
+
DateUtil.prototype.getDateTimeCode = function (date) {
|
|
73
|
+
return (0, date_fns_1.format)(date, "yyMMddHHmm");
|
|
74
|
+
};
|
|
75
|
+
DateUtil.prototype.formatCreatedOrUpdateOn = function (data) {
|
|
76
|
+
var datePart = data.slice(8, 10);
|
|
77
|
+
var monthPart = data.slice(5, 7);
|
|
78
|
+
var yearPart = data.slice(2, 4);
|
|
79
|
+
return "".concat(yearPart).concat(monthPart).concat(datePart);
|
|
80
|
+
};
|
|
81
|
+
DateUtil.prototype.convertToNgbDate = function (input) {
|
|
82
|
+
var year = 2000 + parseInt(input.substring(0, 2), 10);
|
|
83
|
+
var month = parseInt(input.substring(2, 4), 10);
|
|
84
|
+
var day = parseInt(input.substring(4, 6), 10);
|
|
85
|
+
return { year: year, month: month, day: day };
|
|
86
|
+
};
|
|
87
|
+
return DateUtil;
|
|
88
|
+
}());
|
|
89
|
+
exports.DateUtil = DateUtil;
|
|
90
|
+
exports.dateUtil = new DateUtil();
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { IModifyEntity, Modify } from "../@type";
|
|
2
|
+
import { IKeyValue } from "../interface/key-value.interface";
|
|
3
|
+
export declare function ConvertCommonEntries<T extends {
|
|
4
|
+
createdOn: Date;
|
|
5
|
+
updatedOn: Date;
|
|
6
|
+
}>(inputObject: {
|
|
7
|
+
[key: string]: T;
|
|
8
|
+
}): IKeyValue<IModifyEntity<T>>;
|
|
9
|
+
export declare function ConvertToCommonEntities<T extends {
|
|
10
|
+
createdOn: Date;
|
|
11
|
+
updatedOn: Date;
|
|
12
|
+
}>(inputObject: T[]): IModifyEntity<T>[];
|
|
13
|
+
export declare function ConvertToCommonEntity<T extends {
|
|
14
|
+
createdOn: Date;
|
|
15
|
+
updatedOn: Date;
|
|
16
|
+
}, R extends Modify<T, {
|
|
17
|
+
createdOn: string;
|
|
18
|
+
updatedOn: string;
|
|
19
|
+
}>>(obj: T): R;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
+
t[p] = s[p];
|
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
+
t[p[i]] = s[p[i]];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.ConvertToCommonEntity = exports.ConvertToCommonEntities = exports.ConvertCommonEntries = void 0;
|
|
26
|
+
//key - value converter
|
|
27
|
+
function ConvertCommonEntries(inputObject) {
|
|
28
|
+
return Object.entries(inputObject).reduce(function (acc, _a) {
|
|
29
|
+
var key = _a[0], value = _a[1];
|
|
30
|
+
acc[key] = ConvertToCommonEntity(value);
|
|
31
|
+
return acc;
|
|
32
|
+
}, {});
|
|
33
|
+
}
|
|
34
|
+
exports.ConvertCommonEntries = ConvertCommonEntries;
|
|
35
|
+
function ConvertToCommonEntities(inputObject) {
|
|
36
|
+
return inputObject.reduce(function (acc, value) {
|
|
37
|
+
var modifiedEntity = ConvertToCommonEntity(value);
|
|
38
|
+
acc.push(modifiedEntity);
|
|
39
|
+
return acc;
|
|
40
|
+
}, []);
|
|
41
|
+
}
|
|
42
|
+
exports.ConvertToCommonEntities = ConvertToCommonEntities;
|
|
43
|
+
function ConvertToCommonEntity(obj) {
|
|
44
|
+
var _a, _b;
|
|
45
|
+
var _ = obj.createdOn, __ = obj.updatedOn, objectToAssign = __rest(obj, ["createdOn", "updatedOn"]);
|
|
46
|
+
return __assign({ createdOn: (_a = obj.createdOn) === null || _a === void 0 ? void 0 : _a.toISOString(), updatedOn: (_b = obj.updatedOn) === null || _b === void 0 ? void 0 : _b.toISOString() }, objectToAssign);
|
|
47
|
+
}
|
|
48
|
+
exports.ConvertToCommonEntity = ConvertToCommonEntity;
|
|
@@ -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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ia-common",
|
|
3
|
-
"version": "1.0.1-beta.
|
|
3
|
+
"version": "1.0.1-beta.200",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -30,5 +30,8 @@
|
|
|
30
30
|
"del-cli": "^5.1.0",
|
|
31
31
|
"eslint": "^8.56.0",
|
|
32
32
|
"typescript": "^5.3.3"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"date-fns": "^3.3.1"
|
|
33
36
|
}
|
|
34
37
|
}
|
|
File without changes
|
|
File without changes
|