ia-common 1.0.1-beta.35 → 1.0.1-beta.38

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
@@ -5,3 +5,7 @@ export * from "./enum/user-type.enum";
5
5
  export * from "./enum/registration-status.enum";
6
6
  export * from "./enum/pricing-plan-status.enum";
7
7
  export * from "./enum/subscription-status.enum";
8
+ export * from "./enum/advice-status.enum";
9
+ export * from "./enum/advice-type.enum";
10
+ export * from "./enum/investment-duration-type.enum";
11
+ export * from "./enum/transaction-type.enum";
package/build/@enum.js CHANGED
@@ -21,3 +21,7 @@ __exportStar(require("./enum/user-type.enum"), exports);
21
21
  __exportStar(require("./enum/registration-status.enum"), exports);
22
22
  __exportStar(require("./enum/pricing-plan-status.enum"), exports);
23
23
  __exportStar(require("./enum/subscription-status.enum"), exports);
24
+ __exportStar(require("./enum/advice-status.enum"), exports);
25
+ __exportStar(require("./enum/advice-type.enum"), exports);
26
+ __exportStar(require("./enum/investment-duration-type.enum"), exports);
27
+ __exportStar(require("./enum/transaction-type.enum"), exports);
@@ -0,0 +1,5 @@
1
+ export declare enum AdviceStatus {
2
+ PENDING = "pending",
3
+ EXPIRE = "expire",
4
+ ACHIEVED = "achieved"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdviceStatus = void 0;
4
+ var AdviceStatus;
5
+ (function (AdviceStatus) {
6
+ AdviceStatus["PENDING"] = "pending";
7
+ AdviceStatus["EXPIRE"] = "expire";
8
+ AdviceStatus["ACHIEVED"] = "achieved";
9
+ })(AdviceStatus || (exports.AdviceStatus = AdviceStatus = {}));
@@ -0,0 +1,6 @@
1
+ export declare enum AdviceType {
2
+ EQUITY = "equity",
3
+ MF = "mf",
4
+ FUTURE_OPTIONS = "future_options",
5
+ CORPORATE_ACTIONS = "corporate_actions"
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdviceType = void 0;
4
+ var AdviceType;
5
+ (function (AdviceType) {
6
+ AdviceType["EQUITY"] = "equity";
7
+ AdviceType["MF"] = "mf";
8
+ AdviceType["FUTURE_OPTIONS"] = "future_options";
9
+ AdviceType["CORPORATE_ACTIONS"] = "corporate_actions";
10
+ })(AdviceType || (exports.AdviceType = AdviceType = {}));
@@ -0,0 +1,5 @@
1
+ export declare enum InvestDurationType {
2
+ DAY_TRADE = "day_trade",
3
+ SHORT_TERM = "short_term",
4
+ LONG_TERM = "long_term"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InvestDurationType = void 0;
4
+ var InvestDurationType;
5
+ (function (InvestDurationType) {
6
+ InvestDurationType["DAY_TRADE"] = "day_trade";
7
+ InvestDurationType["SHORT_TERM"] = "short_term";
8
+ InvestDurationType["LONG_TERM"] = "long_term";
9
+ })(InvestDurationType || (exports.InvestDurationType = InvestDurationType = {}));
@@ -0,0 +1,5 @@
1
+ export declare enum AdviceTransactionType {
2
+ BUY = "buy",
3
+ SELL = "sell",
4
+ HOLD = "hold"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdviceTransactionType = void 0;
4
+ var AdviceTransactionType;
5
+ (function (AdviceTransactionType) {
6
+ AdviceTransactionType["BUY"] = "buy";
7
+ AdviceTransactionType["SELL"] = "sell";
8
+ AdviceTransactionType["HOLD"] = "hold";
9
+ })(AdviceTransactionType || (exports.AdviceTransactionType = AdviceTransactionType = {}));
@@ -0,0 +1,19 @@
1
+ import { AdviceTransactionType, AdviceType, InvestDurationType } from "../../@enum";
2
+ import { IAdviceEntity } from "../entity";
3
+ import { IModifyEntity } from "../modify-entity.interface";
4
+ export interface ICreateAdviceRequest {
5
+ type: AdviceType;
6
+ stockName: string;
7
+ cmp: number;
8
+ targetPrice: number;
9
+ stopLoss: number;
10
+ investmentDurationType: InvestDurationType;
11
+ transactionType: AdviceTransactionType;
12
+ fromDateCode: number;
13
+ toDateCode: number;
14
+ noteDocument: string;
15
+ videoDocument: string;
16
+ voiceDocument: string;
17
+ }
18
+ export interface ICreateAdviceResponse extends IModifyEntity<IAdviceEntity> {
19
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import { IAdviceEntity } from "../entity/advice-entity.interface";
2
+ import { IModifyEntity } from "../modify-entity.interface";
3
+ export interface IGetAdviceByIdResponse {
4
+ [id: number]: IModifyEntity<IAdviceEntity>;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import { IAdviceEntity } from "../entity/advice-entity.interface";
2
+ import { IModifyEntity } from "../modify-entity.interface";
3
+ export interface IGetAdvicesEntitiesByAdvisorIdsAndStatus {
4
+ [id: number]: IModifyEntity<IAdviceEntity>;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -17,3 +17,6 @@ export * from "./update-pricing-plan-by-id.interface";
17
17
  export * from "./login.interface";
18
18
  export * from "./update-registration.interface";
19
19
  export * from "./get-organization-by-id.interface";
20
+ export * from "./get-advice-by-id.interface";
21
+ export * from "./get-advice-by-ids-status.inteface";
22
+ export * from "./create-advice.interface";
@@ -33,3 +33,6 @@ __exportStar(require("./update-pricing-plan-by-id.interface"), exports);
33
33
  __exportStar(require("./login.interface"), exports);
34
34
  __exportStar(require("./update-registration.interface"), exports);
35
35
  __exportStar(require("./get-organization-by-id.interface"), exports);
36
+ __exportStar(require("./get-advice-by-id.interface"), exports);
37
+ __exportStar(require("./get-advice-by-ids-status.inteface"), exports);
38
+ __exportStar(require("./create-advice.interface"), exports);
@@ -0,0 +1,19 @@
1
+ import { AdviceStatus, AdviceTransactionType, AdviceType, InvestDurationType } from "../../@enum";
2
+ import { IEntityAuditColumn } from "./entity-audit-column.interface";
3
+ export interface IAdviceEntity extends IEntityAuditColumn {
4
+ id: number;
5
+ type: AdviceType;
6
+ advisorId: number;
7
+ stockName: string;
8
+ cmp: number;
9
+ targetPrice: number;
10
+ stopLoss: number;
11
+ investmentDurationType: InvestDurationType;
12
+ transactionType: AdviceTransactionType;
13
+ fromDate: number;
14
+ toDate: number;
15
+ noteDocumentUrl: string | null;
16
+ videoUrl: string | null;
17
+ voiceUrl: string | null;
18
+ status: AdviceStatus;
19
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -5,3 +5,4 @@ export * from "./registration-entity";
5
5
  export * from "./bank-details-entity.interface";
6
6
  export * from "./pricing-plan-entity.interface";
7
7
  export * from "./subscription-entity.interface";
8
+ export * from "./advice-entity.interface";
@@ -21,3 +21,4 @@ __exportStar(require("./registration-entity"), exports);
21
21
  __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
+ __exportStar(require("./advice-entity.interface"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ia-common",
3
- "version": "1.0.1-beta.35",
3
+ "version": "1.0.1-beta.38",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",