ia-common 1.0.1-beta.47 → 1.0.1-beta.49

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 CHANGED
@@ -9,3 +9,5 @@ export * from "./enum/advice-status.enum";
9
9
  export * from "./enum/advice-type.enum";
10
10
  export * from "./enum/investment-duration-type.enum";
11
11
  export * from "./enum/transaction-type.enum";
12
+ export * from "./enum/mutual-funds-risk.enum";
13
+ export * from "./enum/mutual-funds-type.enum";
package/build/@enum.js CHANGED
@@ -25,3 +25,5 @@ __exportStar(require("./enum/advice-status.enum"), exports);
25
25
  __exportStar(require("./enum/advice-type.enum"), exports);
26
26
  __exportStar(require("./enum/investment-duration-type.enum"), exports);
27
27
  __exportStar(require("./enum/transaction-type.enum"), exports);
28
+ __exportStar(require("./enum/mutual-funds-risk.enum"), exports);
29
+ __exportStar(require("./enum/mutual-funds-type.enum"), exports);
@@ -0,0 +1,7 @@
1
+ export declare enum MutualFundsRisk {
2
+ VERY_HIGH = "very_high",
3
+ HIGH = "high",
4
+ MODERATE = "moderate",
5
+ LOW = "low",
6
+ VERY_LOW = "very_low"
7
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MutualFundsRisk = void 0;
4
+ var MutualFundsRisk;
5
+ (function (MutualFundsRisk) {
6
+ MutualFundsRisk["VERY_HIGH"] = "very_high";
7
+ MutualFundsRisk["HIGH"] = "high";
8
+ MutualFundsRisk["MODERATE"] = "moderate";
9
+ MutualFundsRisk["LOW"] = "low";
10
+ MutualFundsRisk["VERY_LOW"] = "very_low";
11
+ })(MutualFundsRisk || (exports.MutualFundsRisk = MutualFundsRisk = {}));
@@ -0,0 +1,7 @@
1
+ export declare enum MutualFundsType {
2
+ EQUITY = "equity",
3
+ DEBT = "debt",
4
+ HYBRID = "hybrid",
5
+ SOLUTION_ORIENTED = "solutionOriented",
6
+ OTHER = "other"
7
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MutualFundsType = void 0;
4
+ var MutualFundsType;
5
+ (function (MutualFundsType) {
6
+ MutualFundsType["EQUITY"] = "equity";
7
+ MutualFundsType["DEBT"] = "debt";
8
+ MutualFundsType["HYBRID"] = "hybrid";
9
+ MutualFundsType["SOLUTION_ORIENTED"] = "solutionOriented";
10
+ MutualFundsType["OTHER"] = "other";
11
+ })(MutualFundsType || (exports.MutualFundsType = MutualFundsType = {}));
@@ -0,0 +1,8 @@
1
+ import { MutualFundsType } from "../../@enum";
2
+ import { IModifyEntity, IMutualFundsEntity, IUploadedMulterFile } from "../../@type";
3
+ export interface IAddMutualFundsResponse extends IModifyEntity<IMutualFundsEntity> {
4
+ }
5
+ export interface IAddMutualFundsRequest {
6
+ mutualFundsType: MutualFundsType;
7
+ mutualFundsFile: IUploadedMulterFile;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -6,3 +6,4 @@ export * from "./bank-details-entity.interface";
6
6
  export * from "./pricing-plan-entity.interface";
7
7
  export * from "./subscription-entity.interface";
8
8
  export * from "./advice-entity.interface";
9
+ export * from "./mutual-funds-entity.interface";
@@ -22,3 +22,4 @@ __exportStar(require("./bank-details-entity.interface"), exports);
22
22
  __exportStar(require("./pricing-plan-entity.interface"), exports);
23
23
  __exportStar(require("./subscription-entity.interface"), exports);
24
24
  __exportStar(require("./advice-entity.interface"), exports);
25
+ __exportStar(require("./mutual-funds-entity.interface"), exports);
@@ -0,0 +1,17 @@
1
+ import { MutualFundsType } from "../../@enum";
2
+ import { IEntityAuditColumn } from "./entity-audit-column.interface";
3
+ export interface IMutualFundsEntity extends IEntityAuditColumn {
4
+ id: number;
5
+ schemeName: string;
6
+ risk: string | null;
7
+ navRegular: number;
8
+ navDirect: number;
9
+ oneYearReturnRegular: number | null;
10
+ oneYearReturnDirect: number | null;
11
+ threeYearReturnRegular: number | null;
12
+ threeYearReturnDirect: number | null;
13
+ fiveYearReturnRegular: number | null;
14
+ fiveYearReturnDirect: number | null;
15
+ dailyAUM: number;
16
+ type: MutualFundsType;
17
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -57,63 +57,3 @@ var BillingCycleModel = /** @class */ (function () {
57
57
  return BillingCycleModel;
58
58
  }());
59
59
  exports.BillingCycleModel = BillingCycleModel;
60
- // export interface IPricingPlanModel {
61
- // id: number;
62
- // effectiveFromDate: number;
63
- // effectiveToDate: number;
64
- // basePrice: number;
65
- // billingCycle: {
66
- // [key: string]: {
67
- // noOfMonths: number;
68
- // discount: string;
69
- // name: string;
70
- // key: string;
71
- // };
72
- // };
73
- // }
74
- // export class PricingPlanModel implements IPricingPlanModel {
75
- // id: number;
76
- // effectiveFromDate: number;
77
- // effectiveToDate: number;
78
- // basePrice: number;
79
- // billingCycle: {
80
- // [key: string]: {
81
- // noOfMonths: number;
82
- // discount: string;
83
- // name: string;
84
- // key: string;
85
- // };
86
- // };
87
- // constructor(data: IGetPricingPlanByDateResponse) {
88
- // Object.assign(this, data);
89
- // }
90
- // getBillingCycleKeys(): string[] {
91
- // return Object.values(this.billingCycle).map(
92
- // (billingCycleObj) => billingCycleObj.key
93
- // );
94
- // }
95
- // getNoOfSubscriptionDays(type: string): number {
96
- // const billingCycleModel = this.getBillCycleByKey(type);
97
- // return billingCycleModel!.noOfMonths * 30 - 1;
98
- // }
99
- // getBillCycleByKey(type: string): {
100
- // noOfMonths: number;
101
- // discount: string;
102
- // name: string;
103
- // key: string;
104
- // } {
105
- // return Object.values(this.billingCycle).filter(
106
- // (billingCycleObj) => billingCycleObj.key === type
107
- // )[0];
108
- // }
109
- // validateBillingCycleKey(key: string): void {
110
- // if (!this.getBillingCycleKeys().includes(key)) {
111
- // throw new AppBadRequestException({
112
- // key: "type",
113
- // message: [
114
- // `subscription with type:'${key}' is wrong,type should be one of the ${this.getBillingCycleKeys()}`,
115
- // ],
116
- // });
117
- // }
118
- // }
119
- // }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ia-common",
3
- "version": "1.0.1-beta.47",
3
+ "version": "1.0.1-beta.49",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",