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,18 @@
|
|
|
1
|
+
import { CorporateActionsStatus, CorporateActionsType } from "../@enum";
|
|
2
|
+
import { ICorporateActionsEntity, ICorporateEntityOmitData, IOFSCorporateAction } from "../@type";
|
|
3
|
+
export declare class OFSCorporateActionModel implements IOFSCorporateAction, ICorporateEntityOmitData {
|
|
4
|
+
floorPrice: number;
|
|
5
|
+
startDate: number;
|
|
6
|
+
endDate: number;
|
|
7
|
+
companyName: string;
|
|
8
|
+
recordDate: number;
|
|
9
|
+
type: CorporateActionsType;
|
|
10
|
+
status: CorporateActionsStatus;
|
|
11
|
+
id: number;
|
|
12
|
+
createdOn: Date;
|
|
13
|
+
updatedOn: Date;
|
|
14
|
+
createdBy: number;
|
|
15
|
+
updatedBy: number;
|
|
16
|
+
constructor(entity: ICorporateActionsEntity);
|
|
17
|
+
getCorporateActionEntity(): ICorporateActionsEntity;
|
|
18
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.OFSCorporateActionModel = void 0;
|
|
15
|
+
var _enum_1 = require("../@enum");
|
|
16
|
+
var _utils_1 = require("../@utils");
|
|
17
|
+
var OFSCorporateActionModel = /** @class */ (function () {
|
|
18
|
+
function OFSCorporateActionModel(entity) {
|
|
19
|
+
_utils_1.ValidateUtils.validateCorporateActionType(entity.type, _enum_1.CorporateActionsType.OFS);
|
|
20
|
+
Object.assign(this, __assign(__assign({}, entity), JSON.parse(entity.data)));
|
|
21
|
+
}
|
|
22
|
+
OFSCorporateActionModel.prototype.getCorporateActionEntity = function () {
|
|
23
|
+
var corporateActionEntity = __assign(__assign({}, this), { data: JSON.stringify({
|
|
24
|
+
floorPrice: this.floorPrice,
|
|
25
|
+
startDate: this.startDate,
|
|
26
|
+
endDate: this.endDate,
|
|
27
|
+
}) });
|
|
28
|
+
return corporateActionEntity;
|
|
29
|
+
};
|
|
30
|
+
return OFSCorporateActionModel;
|
|
31
|
+
}());
|
|
32
|
+
exports.OFSCorporateActionModel = OFSCorporateActionModel;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CorporateActionsStatus, CorporateActionsType } from "../@enum";
|
|
2
|
+
import { ICorporateActionsEntity, ICorporateEntityOmitData, IOpenOfferCorporateAction } from "../@type";
|
|
3
|
+
export declare class OpenOfferCorporateActionModel implements IOpenOfferCorporateAction, ICorporateEntityOmitData {
|
|
4
|
+
price: number;
|
|
5
|
+
startDate: number;
|
|
6
|
+
endDate: number;
|
|
7
|
+
companyName: string;
|
|
8
|
+
recordDate: number;
|
|
9
|
+
type: CorporateActionsType;
|
|
10
|
+
status: CorporateActionsStatus;
|
|
11
|
+
id: number;
|
|
12
|
+
createdOn: Date;
|
|
13
|
+
updatedOn: Date;
|
|
14
|
+
createdBy: number;
|
|
15
|
+
updatedBy: number;
|
|
16
|
+
constructor(entity: ICorporateActionsEntity);
|
|
17
|
+
getCorporateActionEntity(): ICorporateActionsEntity;
|
|
18
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.OpenOfferCorporateActionModel = void 0;
|
|
15
|
+
var _enum_1 = require("../@enum");
|
|
16
|
+
var _utils_1 = require("../@utils");
|
|
17
|
+
var OpenOfferCorporateActionModel = /** @class */ (function () {
|
|
18
|
+
function OpenOfferCorporateActionModel(entity) {
|
|
19
|
+
_utils_1.ValidateUtils.validateCorporateActionType(entity.type, _enum_1.CorporateActionsType.OPEN_OFFER);
|
|
20
|
+
Object.assign(this, __assign(__assign({}, entity), JSON.parse(entity.data)));
|
|
21
|
+
}
|
|
22
|
+
OpenOfferCorporateActionModel.prototype.getCorporateActionEntity = function () {
|
|
23
|
+
var corporateActionEntity = __assign(__assign({}, this), { data: JSON.stringify({
|
|
24
|
+
price: this.price,
|
|
25
|
+
startDate: this.startDate,
|
|
26
|
+
endDate: this.endDate,
|
|
27
|
+
}) });
|
|
28
|
+
return corporateActionEntity;
|
|
29
|
+
};
|
|
30
|
+
return OpenOfferCorporateActionModel;
|
|
31
|
+
}());
|
|
32
|
+
exports.OpenOfferCorporateActionModel = OpenOfferCorporateActionModel;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { OrganizationStatus, OrganizationType } from "../@enum";
|
|
2
|
+
import { IOrganizationEntity, IRegistrationEntity } from "../@type";
|
|
3
|
+
export declare class OrganizationEntityModel implements IOrganizationEntity {
|
|
4
|
+
id: number;
|
|
5
|
+
name: string;
|
|
6
|
+
email: string | null;
|
|
7
|
+
contactNo: string | null;
|
|
8
|
+
type: OrganizationType;
|
|
9
|
+
panNo: string;
|
|
10
|
+
panFilePath: string;
|
|
11
|
+
gstNo: string | null;
|
|
12
|
+
gstFilePath: string | null;
|
|
13
|
+
deed: string | null;
|
|
14
|
+
deedFilePath: string | null;
|
|
15
|
+
status: OrganizationStatus;
|
|
16
|
+
registrationId: number;
|
|
17
|
+
sebiCertificate: string;
|
|
18
|
+
validateFrom: string;
|
|
19
|
+
validateTo: string;
|
|
20
|
+
createdOn: Date;
|
|
21
|
+
updatedOn: Date;
|
|
22
|
+
createdBy: number;
|
|
23
|
+
updatedBy: number;
|
|
24
|
+
constructor(data: IOrganizationEntity);
|
|
25
|
+
static getEntityInstanceByRegistrationEntity(registrationEntity: IRegistrationEntity): IOrganizationEntity;
|
|
26
|
+
getPanFolderName(): string;
|
|
27
|
+
getPanFileName(): string;
|
|
28
|
+
getGstFolderName(): string | undefined;
|
|
29
|
+
getGstFileName(): string | undefined;
|
|
30
|
+
getDeedFolderName(): string | undefined;
|
|
31
|
+
getDeedFileName(): string | undefined;
|
|
32
|
+
getSebiCertificateFolderName(): string | undefined;
|
|
33
|
+
getSebiCertificateFileName(): string | undefined;
|
|
34
|
+
static findByRegistrationId(organizationEntities: IOrganizationEntity[], registrationId: number): IOrganizationEntity | undefined;
|
|
35
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrganizationEntityModel = void 0;
|
|
4
|
+
var _enum_1 = require("../@enum");
|
|
5
|
+
var OrganizationEntityModel = /** @class */ (function () {
|
|
6
|
+
function OrganizationEntityModel(data) {
|
|
7
|
+
Object.assign(this, data);
|
|
8
|
+
}
|
|
9
|
+
OrganizationEntityModel.getEntityInstanceByRegistrationEntity = function (registrationEntity) {
|
|
10
|
+
var organizationEntity = {};
|
|
11
|
+
organizationEntity.name = "";
|
|
12
|
+
organizationEntity.email = null;
|
|
13
|
+
organizationEntity.contactNo = null;
|
|
14
|
+
organizationEntity.type = "";
|
|
15
|
+
organizationEntity.panNo = "";
|
|
16
|
+
organizationEntity.panFilePath = "";
|
|
17
|
+
organizationEntity.gstNo = null;
|
|
18
|
+
organizationEntity.gstFilePath = null;
|
|
19
|
+
organizationEntity.deed = null;
|
|
20
|
+
organizationEntity.deedFilePath = "";
|
|
21
|
+
organizationEntity.status = _enum_1.OrganizationStatus.REGISTRATION_APPROVED;
|
|
22
|
+
organizationEntity.registrationId = registrationEntity.id;
|
|
23
|
+
organizationEntity.sebiCertificate = "";
|
|
24
|
+
organizationEntity.validateFrom = "";
|
|
25
|
+
organizationEntity.validateTo = "";
|
|
26
|
+
organizationEntity.createdBy = registrationEntity.createdBy;
|
|
27
|
+
organizationEntity.createdOn = new Date();
|
|
28
|
+
organizationEntity.updatedBy = registrationEntity.createdBy;
|
|
29
|
+
organizationEntity.updatedOn = new Date();
|
|
30
|
+
return organizationEntity;
|
|
31
|
+
};
|
|
32
|
+
OrganizationEntityModel.prototype.getPanFolderName = function () {
|
|
33
|
+
return this.panFilePath.split("/").slice(3, 5)[0];
|
|
34
|
+
};
|
|
35
|
+
OrganizationEntityModel.prototype.getPanFileName = function () {
|
|
36
|
+
return this.panFilePath.split("/").slice(3, 5)[1];
|
|
37
|
+
};
|
|
38
|
+
OrganizationEntityModel.prototype.getGstFolderName = function () {
|
|
39
|
+
var _a;
|
|
40
|
+
return (_a = this.gstFilePath) === null || _a === void 0 ? void 0 : _a.split("/").slice(3, 5)[0];
|
|
41
|
+
};
|
|
42
|
+
OrganizationEntityModel.prototype.getGstFileName = function () {
|
|
43
|
+
var _a;
|
|
44
|
+
return (_a = this.gstFilePath) === null || _a === void 0 ? void 0 : _a.split("/").slice(3, 5)[1];
|
|
45
|
+
};
|
|
46
|
+
OrganizationEntityModel.prototype.getDeedFolderName = function () {
|
|
47
|
+
var _a;
|
|
48
|
+
return (_a = this.deedFilePath) === null || _a === void 0 ? void 0 : _a.split("/").slice(3, 5)[0];
|
|
49
|
+
};
|
|
50
|
+
OrganizationEntityModel.prototype.getDeedFileName = function () {
|
|
51
|
+
var _a;
|
|
52
|
+
return (_a = this.deedFilePath) === null || _a === void 0 ? void 0 : _a.split("/").slice(3, 5)[1];
|
|
53
|
+
};
|
|
54
|
+
OrganizationEntityModel.prototype.getSebiCertificateFolderName = function () {
|
|
55
|
+
var _a;
|
|
56
|
+
return (_a = this.sebiCertificate) === null || _a === void 0 ? void 0 : _a.split("/").slice(3, 5)[0];
|
|
57
|
+
};
|
|
58
|
+
OrganizationEntityModel.prototype.getSebiCertificateFileName = function () {
|
|
59
|
+
var _a;
|
|
60
|
+
return (_a = this.sebiCertificate) === null || _a === void 0 ? void 0 : _a.split("/").slice(3, 5)[1];
|
|
61
|
+
};
|
|
62
|
+
OrganizationEntityModel.findByRegistrationId = function (organizationEntities, registrationId) {
|
|
63
|
+
return organizationEntities.find(function (organizationEntity) {
|
|
64
|
+
return organizationEntity.registrationId == registrationId;
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
return OrganizationEntityModel;
|
|
68
|
+
}());
|
|
69
|
+
exports.OrganizationEntityModel = OrganizationEntityModel;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { PricingPlanStatus } from "../@enum";
|
|
2
|
+
import { IBillingCycle, IGetPricingPlanByDateResponse, IPricingPlanEntity } from "../@type";
|
|
3
|
+
export declare class PricingPlanEntityModel implements IPricingPlanEntity {
|
|
4
|
+
id: number;
|
|
5
|
+
effectiveFrom: number;
|
|
6
|
+
effectiveTo: number;
|
|
7
|
+
status: PricingPlanStatus;
|
|
8
|
+
createdBy: number;
|
|
9
|
+
createdOn: Date;
|
|
10
|
+
updatedBy: number;
|
|
11
|
+
updatedOn: Date;
|
|
12
|
+
basePrice: number;
|
|
13
|
+
billingCycle: string;
|
|
14
|
+
constructor(data: IPricingPlanEntity);
|
|
15
|
+
toObject(): IGetPricingPlanByDateResponse;
|
|
16
|
+
static getBillingCycleString(billingCycle: IBillingCycle): string;
|
|
17
|
+
static validateNoOfMonthsByBillingCycle(billingCycle: IBillingCycle): void;
|
|
18
|
+
static validateBillingCycleIndexByBillingCycle(billingCycle: IBillingCycle): void;
|
|
19
|
+
}
|
|
20
|
+
export declare class BillingCycleModel {
|
|
21
|
+
code: string;
|
|
22
|
+
noOfMonths: number;
|
|
23
|
+
discount: string;
|
|
24
|
+
name: string;
|
|
25
|
+
key: string;
|
|
26
|
+
constructor(code: string);
|
|
27
|
+
parse(): BillingCycleModel;
|
|
28
|
+
getDiscount(): number;
|
|
29
|
+
getKey(): string;
|
|
30
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BillingCycleModel = exports.PricingPlanEntityModel = void 0;
|
|
4
|
+
var _model_1 = require("../@model");
|
|
5
|
+
var PricingPlanEntityModel = /** @class */ (function () {
|
|
6
|
+
function PricingPlanEntityModel(data) {
|
|
7
|
+
Object.assign(this, data);
|
|
8
|
+
}
|
|
9
|
+
PricingPlanEntityModel.prototype.toObject = function () {
|
|
10
|
+
var responseObj = {
|
|
11
|
+
id: this.id,
|
|
12
|
+
effectiveFromDate: 0,
|
|
13
|
+
effectiveToDate: 0,
|
|
14
|
+
basePrice: 0,
|
|
15
|
+
billingCycle: {},
|
|
16
|
+
};
|
|
17
|
+
var billingCycle = this.billingCycle.split(",");
|
|
18
|
+
billingCycle.forEach(function (billing, index) {
|
|
19
|
+
var billingArray = billing.split("_");
|
|
20
|
+
responseObj.billingCycle[index] = {
|
|
21
|
+
noOfMonths: Number(billingArray[0]),
|
|
22
|
+
discount: billingArray[1],
|
|
23
|
+
value: parseFloat(billingArray[2]),
|
|
24
|
+
name: billingArray.slice(3).join("_"),
|
|
25
|
+
key: billingArray.slice(3).join("-").toLowerCase().replace(/ /g, "-"),
|
|
26
|
+
};
|
|
27
|
+
});
|
|
28
|
+
responseObj.effectiveFromDate = this.effectiveFrom;
|
|
29
|
+
responseObj.effectiveToDate = this.effectiveTo;
|
|
30
|
+
responseObj.basePrice = this.basePrice;
|
|
31
|
+
return responseObj;
|
|
32
|
+
};
|
|
33
|
+
PricingPlanEntityModel.getBillingCycleString = function (billingCycle) {
|
|
34
|
+
var billingCycles = [];
|
|
35
|
+
Object.values(billingCycle).forEach(function (billing) {
|
|
36
|
+
billingCycles.push("".concat(billing.noOfMonths, "_").concat(billing.discount, "_").concat(billing.value, "_").concat(billing.name));
|
|
37
|
+
});
|
|
38
|
+
return billingCycles.join(",");
|
|
39
|
+
};
|
|
40
|
+
PricingPlanEntityModel.validateNoOfMonthsByBillingCycle = function (billingCycle) {
|
|
41
|
+
var billingCycleKeys = Object.keys(billingCycle);
|
|
42
|
+
var previousMonthCount = 0;
|
|
43
|
+
for (var _i = 0, billingCycleKeys_1 = billingCycleKeys; _i < billingCycleKeys_1.length; _i++) {
|
|
44
|
+
var key = billingCycleKeys_1[_i];
|
|
45
|
+
var billingCycleObj = billingCycle[key];
|
|
46
|
+
var currentMonthCount = billingCycleObj.noOfMonths;
|
|
47
|
+
if (previousMonthCount >= currentMonthCount && key != "0") {
|
|
48
|
+
throw new _model_1.AppBadRequestException({
|
|
49
|
+
key: "noOfMonths.".concat(key),
|
|
50
|
+
message: [
|
|
51
|
+
"No of months at index ".concat(key, " should be greater than ").concat(previousMonthCount),
|
|
52
|
+
],
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
previousMonthCount = currentMonthCount;
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
PricingPlanEntityModel.validateBillingCycleIndexByBillingCycle = function (billingCycle) {
|
|
59
|
+
var billingCycleKeys = Object.keys(billingCycle);
|
|
60
|
+
for (var i = 0; i < billingCycleKeys.length; i++) {
|
|
61
|
+
var billingCycleIndex = Number(billingCycleKeys[i]);
|
|
62
|
+
if (billingCycleIndex !== 0) {
|
|
63
|
+
var recentBillingCycleIndex = Number(billingCycleKeys[i - 1]);
|
|
64
|
+
if (recentBillingCycleIndex !== billingCycleIndex - 1) {
|
|
65
|
+
throw new _model_1.AppBadRequestException({
|
|
66
|
+
key: "billingCycleIndex.".concat(billingCycleIndex),
|
|
67
|
+
message: [
|
|
68
|
+
"billingCycleIndex should be ".concat(recentBillingCycleIndex + 1, " at index ").concat(billingCycleIndex),
|
|
69
|
+
],
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
return PricingPlanEntityModel;
|
|
76
|
+
}());
|
|
77
|
+
exports.PricingPlanEntityModel = PricingPlanEntityModel;
|
|
78
|
+
var BillingCycleModel = /** @class */ (function () {
|
|
79
|
+
function BillingCycleModel(code) {
|
|
80
|
+
this.code = code;
|
|
81
|
+
this.parse();
|
|
82
|
+
}
|
|
83
|
+
BillingCycleModel.prototype.parse = function () {
|
|
84
|
+
var billingCycleComponents = this.code.split("_");
|
|
85
|
+
this.noOfMonths = Number(billingCycleComponents[0]);
|
|
86
|
+
this.discount = billingCycleComponents[1];
|
|
87
|
+
this.name = billingCycleComponents[2];
|
|
88
|
+
this.key = this.getKey();
|
|
89
|
+
return this;
|
|
90
|
+
};
|
|
91
|
+
BillingCycleModel.prototype.getDiscount = function () {
|
|
92
|
+
if (this.discount.indexOf("P") > -1) {
|
|
93
|
+
return parseFloat(this.discount.replace("P", ""));
|
|
94
|
+
}
|
|
95
|
+
return 0;
|
|
96
|
+
};
|
|
97
|
+
BillingCycleModel.prototype.getKey = function () {
|
|
98
|
+
return this.name.toLowerCase().replace(" ", "-");
|
|
99
|
+
};
|
|
100
|
+
return BillingCycleModel;
|
|
101
|
+
}());
|
|
102
|
+
exports.BillingCycleModel = BillingCycleModel;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IGetPricingPlanByDateResponse, IPricingPlanModel, IBillingCycleObj } from "../@type";
|
|
2
|
+
export declare class PricingPlanModel implements IPricingPlanModel {
|
|
3
|
+
id: number;
|
|
4
|
+
effectiveFromDate: number;
|
|
5
|
+
effectiveToDate: number;
|
|
6
|
+
basePrice: number;
|
|
7
|
+
billingCycle: {
|
|
8
|
+
[key: string]: IBillingCycleObj;
|
|
9
|
+
};
|
|
10
|
+
constructor(data: IGetPricingPlanByDateResponse);
|
|
11
|
+
getBillingCycleKeys(): string[];
|
|
12
|
+
validateBillingCycleKey(key: string): void;
|
|
13
|
+
getNoOfSubscriptionDays(type: string): number;
|
|
14
|
+
getBillCycleByKey(type: string): IBillingCycleObj;
|
|
15
|
+
getToDateCode(fromDateCode: number, billingCycleKey: string): number;
|
|
16
|
+
validateGetToDateCode(fromDateCode: number, toDateCode: number, billingCycleKey: string): number;
|
|
17
|
+
getFromToDateCode(billingCycleKey: string, offset?: number): {
|
|
18
|
+
fromDateCode: number;
|
|
19
|
+
toDateCode: number;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PricingPlanModel = void 0;
|
|
4
|
+
var _model_1 = require("../@model");
|
|
5
|
+
var _utils_1 = require("../@utils");
|
|
6
|
+
var PricingPlanModel = /** @class */ (function () {
|
|
7
|
+
function PricingPlanModel(data) {
|
|
8
|
+
Object.assign(this, data);
|
|
9
|
+
}
|
|
10
|
+
PricingPlanModel.prototype.getBillingCycleKeys = function () {
|
|
11
|
+
return Object.values(this.billingCycle).map(function (billingCycleObj) { return billingCycleObj.key; });
|
|
12
|
+
};
|
|
13
|
+
PricingPlanModel.prototype.validateBillingCycleKey = function (key) {
|
|
14
|
+
if (!this.getBillingCycleKeys().includes(key)) {
|
|
15
|
+
throw new _model_1.AppBadRequestException({
|
|
16
|
+
key: "type",
|
|
17
|
+
message: [
|
|
18
|
+
"subscription with type:'".concat(key, "' is wrong,type should be one of the ").concat(this.getBillingCycleKeys()),
|
|
19
|
+
],
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
PricingPlanModel.prototype.getNoOfSubscriptionDays = function (type) {
|
|
24
|
+
this.validateBillingCycleKey(type);
|
|
25
|
+
var billingCycleModel = this.getBillCycleByKey(type);
|
|
26
|
+
return billingCycleModel.noOfMonths * 30 - 1;
|
|
27
|
+
};
|
|
28
|
+
PricingPlanModel.prototype.getBillCycleByKey = function (type) {
|
|
29
|
+
this.validateBillingCycleKey(type);
|
|
30
|
+
return Object.values(this.billingCycle).filter(function (billingCycleObj) { return billingCycleObj.key === type; })[0];
|
|
31
|
+
};
|
|
32
|
+
PricingPlanModel.prototype.getToDateCode = function (fromDateCode, billingCycleKey) {
|
|
33
|
+
this.validateBillingCycleKey(billingCycleKey);
|
|
34
|
+
var copyFromDateCode = fromDateCode;
|
|
35
|
+
var newSubscriptionToDate = new Date(_utils_1.dateUtil.convertStringToDate(String(copyFromDateCode)));
|
|
36
|
+
newSubscriptionToDate.setDate(newSubscriptionToDate.getDate() +
|
|
37
|
+
this.getNoOfSubscriptionDays(billingCycleKey));
|
|
38
|
+
return Number(_utils_1.dateUtil.getDateCode(newSubscriptionToDate));
|
|
39
|
+
};
|
|
40
|
+
PricingPlanModel.prototype.validateGetToDateCode = function (fromDateCode, toDateCode, billingCycleKey) {
|
|
41
|
+
var calculatedToDateCode = this.getToDateCode(fromDateCode, billingCycleKey);
|
|
42
|
+
if (calculatedToDateCode != Number(toDateCode)) {
|
|
43
|
+
throw new _model_1.AppBadRequestException({
|
|
44
|
+
key: "to",
|
|
45
|
+
message: [
|
|
46
|
+
"calculated to Date:'".concat(calculatedToDateCode, "' is not matches with to date you entered"),
|
|
47
|
+
],
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
return calculatedToDateCode;
|
|
51
|
+
};
|
|
52
|
+
PricingPlanModel.prototype.getFromToDateCode = function (billingCycleKey, offset) {
|
|
53
|
+
if (offset === void 0) { offset = 0; }
|
|
54
|
+
var fromDateCode = Number(_utils_1.dateUtil.addNDaysToDateCode(_utils_1.dateUtil.getTodayCode(), offset));
|
|
55
|
+
var toDateCode = this.getToDateCode(fromDateCode, billingCycleKey);
|
|
56
|
+
return {
|
|
57
|
+
fromDateCode: fromDateCode,
|
|
58
|
+
toDateCode: toDateCode,
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
return PricingPlanModel;
|
|
62
|
+
}());
|
|
63
|
+
exports.PricingPlanModel = PricingPlanModel;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CorporateActionsStatus, CorporateActionsType } from "../@enum";
|
|
2
|
+
import { ICorporateActionsEntity, ICorporateEntityOmitData, IRightIssueCorporateAction } from "../@type";
|
|
3
|
+
export declare class RightIssueCorporateActionModel implements IRightIssueCorporateAction, ICorporateEntityOmitData {
|
|
4
|
+
price: number;
|
|
5
|
+
startDate: number;
|
|
6
|
+
endDate: number;
|
|
7
|
+
ratio: string;
|
|
8
|
+
companyName: string;
|
|
9
|
+
recordDate: number;
|
|
10
|
+
type: CorporateActionsType;
|
|
11
|
+
status: CorporateActionsStatus;
|
|
12
|
+
ratioInWord: string;
|
|
13
|
+
id: number;
|
|
14
|
+
createdOn: Date;
|
|
15
|
+
updatedOn: Date;
|
|
16
|
+
createdBy: number;
|
|
17
|
+
updatedBy: number;
|
|
18
|
+
constructor(entity: ICorporateActionsEntity);
|
|
19
|
+
getCorporateActionEntity(): ICorporateActionsEntity;
|
|
20
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.RightIssueCorporateActionModel = void 0;
|
|
15
|
+
var _enum_1 = require("../@enum");
|
|
16
|
+
var _utils_1 = require("../@utils");
|
|
17
|
+
var RightIssueCorporateActionModel = /** @class */ (function () {
|
|
18
|
+
function RightIssueCorporateActionModel(entity) {
|
|
19
|
+
_utils_1.ValidateUtils.validateCorporateActionType(entity.type, _enum_1.CorporateActionsType.RIGHTS_ISSUE);
|
|
20
|
+
Object.assign(this, __assign(__assign({}, entity), JSON.parse(entity.data)));
|
|
21
|
+
}
|
|
22
|
+
RightIssueCorporateActionModel.prototype.getCorporateActionEntity = function () {
|
|
23
|
+
var corporateActionEntity = __assign(__assign({}, this), { data: JSON.stringify({
|
|
24
|
+
ratio: this.ratio,
|
|
25
|
+
price: this.price,
|
|
26
|
+
startDate: this.startDate,
|
|
27
|
+
endDate: this.endDate,
|
|
28
|
+
ratioInWord: this.ratioInWord,
|
|
29
|
+
}) });
|
|
30
|
+
return corporateActionEntity;
|
|
31
|
+
};
|
|
32
|
+
return RightIssueCorporateActionModel;
|
|
33
|
+
}());
|
|
34
|
+
exports.RightIssueCorporateActionModel = RightIssueCorporateActionModel;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CorporateActionsStatus, CorporateActionsType, OrderOfSplitAndBonusStock } from "../@enum";
|
|
2
|
+
import { IBonusStockData, ICorporateActionsEntity, ICorporateEntityOmitData, ISplitBonusCorporateAction, ISplitStockData } from "../@type";
|
|
3
|
+
export declare class SplitBonusCorporateActionModel implements ISplitBonusCorporateAction, ICorporateEntityOmitData {
|
|
4
|
+
splitStock: ISplitStockData;
|
|
5
|
+
bonusStock: IBonusStockData;
|
|
6
|
+
order: OrderOfSplitAndBonusStock;
|
|
7
|
+
companyName: string;
|
|
8
|
+
recordDate: number;
|
|
9
|
+
type: CorporateActionsType;
|
|
10
|
+
status: CorporateActionsStatus;
|
|
11
|
+
id: number;
|
|
12
|
+
createdOn: Date;
|
|
13
|
+
updatedOn: Date;
|
|
14
|
+
createdBy: number;
|
|
15
|
+
updatedBy: number;
|
|
16
|
+
constructor(entity: ICorporateActionsEntity);
|
|
17
|
+
getCorporateActionEntity(): ICorporateActionsEntity;
|
|
18
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.SplitBonusCorporateActionModel = void 0;
|
|
15
|
+
var SplitBonusCorporateActionModel = /** @class */ (function () {
|
|
16
|
+
function SplitBonusCorporateActionModel(entity) {
|
|
17
|
+
Object.assign(this, __assign(__assign({}, entity), JSON.parse(entity.data)));
|
|
18
|
+
}
|
|
19
|
+
SplitBonusCorporateActionModel.prototype.getCorporateActionEntity = function () {
|
|
20
|
+
var corporateActionEntity = __assign(__assign({}, this), { data: JSON.stringify({
|
|
21
|
+
splitStock: {
|
|
22
|
+
currentFV: this.splitStock.currentFV,
|
|
23
|
+
newFV: this.splitStock.newFV,
|
|
24
|
+
},
|
|
25
|
+
bonusStock: {
|
|
26
|
+
ratio: this.bonusStock.ratio,
|
|
27
|
+
ratioInWords: this.bonusStock.ratioInWords,
|
|
28
|
+
},
|
|
29
|
+
order: this.order,
|
|
30
|
+
}) });
|
|
31
|
+
return corporateActionEntity;
|
|
32
|
+
};
|
|
33
|
+
return SplitBonusCorporateActionModel;
|
|
34
|
+
}());
|
|
35
|
+
exports.SplitBonusCorporateActionModel = SplitBonusCorporateActionModel;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CorporateActionsStatus, CorporateActionsType } from "../@enum";
|
|
2
|
+
import { ICorporateActionsEntity, ICorporateEntityOmitData, ISplitCorporateAction } from "../@type";
|
|
3
|
+
export declare class SplitCorporateActionModel implements ISplitCorporateAction, ICorporateEntityOmitData {
|
|
4
|
+
currentFV: number;
|
|
5
|
+
newFV: number;
|
|
6
|
+
companyName: string;
|
|
7
|
+
recordDate: number;
|
|
8
|
+
type: CorporateActionsType;
|
|
9
|
+
status: CorporateActionsStatus;
|
|
10
|
+
id: number;
|
|
11
|
+
createdOn: Date;
|
|
12
|
+
updatedOn: Date;
|
|
13
|
+
createdBy: number;
|
|
14
|
+
updatedBy: number;
|
|
15
|
+
constructor(entity: ICorporateActionsEntity);
|
|
16
|
+
getCorporateActionEntity(): ICorporateActionsEntity;
|
|
17
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.SplitCorporateActionModel = void 0;
|
|
15
|
+
var _enum_1 = require("../@enum");
|
|
16
|
+
var _utils_1 = require("../@utils");
|
|
17
|
+
var SplitCorporateActionModel = /** @class */ (function () {
|
|
18
|
+
function SplitCorporateActionModel(entity) {
|
|
19
|
+
_utils_1.ValidateUtils.validateCorporateActionType(entity.type, _enum_1.CorporateActionsType.SPLIT);
|
|
20
|
+
Object.assign(this, __assign(__assign({}, entity), JSON.parse(entity.data)));
|
|
21
|
+
}
|
|
22
|
+
SplitCorporateActionModel.prototype.getCorporateActionEntity = function () {
|
|
23
|
+
var corporateActionEntity = __assign(__assign({}, this), { data: JSON.stringify({
|
|
24
|
+
currentFV: this.currentFV,
|
|
25
|
+
newFV: this.newFV,
|
|
26
|
+
}) });
|
|
27
|
+
return corporateActionEntity;
|
|
28
|
+
};
|
|
29
|
+
return SplitCorporateActionModel;
|
|
30
|
+
}());
|
|
31
|
+
exports.SplitCorporateActionModel = SplitCorporateActionModel;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { IBillingCycleObj } from "../@type";
|
|
2
|
+
import { PricingPlanModel } from "./pricing-plan-model";
|
|
3
|
+
export declare class SubscribedPricingPlanModel {
|
|
4
|
+
billingCycleKey: string;
|
|
5
|
+
selectedBillingCycle: IBillingCycleObj;
|
|
6
|
+
basePrice: number;
|
|
7
|
+
pricingPlanModel: PricingPlanModel;
|
|
8
|
+
constructor(data: PricingPlanModel, billingCycleKey: string);
|
|
9
|
+
getGrossAmount(config?: {
|
|
10
|
+
roundDown: boolean;
|
|
11
|
+
}): number;
|
|
12
|
+
getNextBillingCycleDateRange(): {
|
|
13
|
+
subscriptionDays: number;
|
|
14
|
+
date: string;
|
|
15
|
+
};
|
|
16
|
+
getNetAmount(config?: {
|
|
17
|
+
roundDown: boolean;
|
|
18
|
+
}): number;
|
|
19
|
+
getBillingDiscount(): number;
|
|
20
|
+
validateGrossAmount(grossAmount: number, config?: {
|
|
21
|
+
roundDown: boolean;
|
|
22
|
+
}): number;
|
|
23
|
+
validateNetAmount(netAmount: number, config?: {
|
|
24
|
+
roundDown: boolean;
|
|
25
|
+
}): number;
|
|
26
|
+
validateGetBillingCycleDiscount(discount: string): number;
|
|
27
|
+
}
|