ia-common 1.0.1-beta.4 → 1.0.1-beta.40
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 +6 -0
- package/build/@enum.js +6 -0
- package/build/@model.d.ts +3 -0
- package/build/@model.js +19 -0
- package/build/@type.d.ts +5 -0
- package/build/@type.js +5 -0
- package/build/@utils.d.ts +1 -0
- package/build/@utils.js +1 -0
- package/build/enum/advice-status.enum.d.ts +5 -0
- package/build/enum/advice-status.enum.js +9 -0
- package/build/enum/advice-type.enum.d.ts +6 -0
- package/build/enum/advice-type.enum.js +10 -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/organization-status.enum.d.ts +6 -1
- package/build/enum/organization-status.enum.js +5 -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/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/exception/app-badrequest.exception.d.ts +4 -0
- package/build/exception/app-badrequest.exception.js +28 -0
- package/build/interface/api/create-advice.interface.d.ts +19 -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-pricing-plan.interface.d.ts +20 -0
- package/build/interface/api/create-pricing-plan.interface.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/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-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-pricing-plan-by-date.interface.d.ts +15 -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/index.d.ts +19 -0
- package/build/interface/api/index.js +19 -0
- package/build/interface/api/login.interface.js +2 -0
- package/build/interface/api/remove-bank-details-by-id.interface.d.ts +7 -0
- package/build/interface/api/remove-bank-details-by-id.interface.js +2 -0
- package/build/interface/api/remove-pricing-plan-by-id.interface.d.ts +6 -0
- package/build/interface/api/remove-pricing-plan-by-id.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-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-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/entity/advice-entity.interface.d.ts +19 -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/index.d.ts +4 -0
- package/build/interface/entity/index.js +4 -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/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 +14 -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/subscription-data.inteface.d.ts +4 -0
- package/build/interface/subscription-data.inteface.js +2 -0
- 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/pricing-plan-entity-model.d.ts +27 -0
- package/build/model/pricing-plan-entity-model.js +119 -0
- package/build/model/pricing-plan-model.d.ts +15 -0
- package/build/model/pricing-plan-model.js +31 -0
- package/build/model/subscribed-pricing-plan-model.d.ts +20 -0
- package/build/model/subscribed-pricing-plan-model.js +49 -0
- package/build/utils/date-util.d.ts +12 -0
- package/build/utils/date-util.js +63 -0
- package/package.json +4 -1
- /package/build/interface/api/{login-interface.js → create-advice.interface.js} +0 -0
- /package/build/interface/api/{login-interface.d.ts → login.interface.d.ts} +0 -0
package/build/@enum.d.ts
CHANGED
|
@@ -3,3 +3,9 @@ export * from "./enum/organization-type.enum";
|
|
|
3
3
|
export * from "./enum/user-status.enum";
|
|
4
4
|
export * from "./enum/user-type.enum";
|
|
5
5
|
export * from "./enum/registration-status.enum";
|
|
6
|
+
export * from "./enum/pricing-plan-status.enum";
|
|
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
|
@@ -19,3 +19,9 @@ __exportStar(require("./enum/organization-type.enum"), exports);
|
|
|
19
19
|
__exportStar(require("./enum/user-status.enum"), exports);
|
|
20
20
|
__exportStar(require("./enum/user-type.enum"), exports);
|
|
21
21
|
__exportStar(require("./enum/registration-status.enum"), exports);
|
|
22
|
+
__exportStar(require("./enum/pricing-plan-status.enum"), exports);
|
|
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);
|
package/build/@model.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./model/pricing-plan-entity-model"), exports);
|
|
18
|
+
__exportStar(require("./model/subscribed-pricing-plan-model"), exports);
|
|
19
|
+
__exportStar(require("./exception/app-badrequest.exception"), exports);
|
package/build/@type.d.ts
CHANGED
|
@@ -6,3 +6,8 @@ export * from "./interface/without-token-registration-entity.interface";
|
|
|
6
6
|
export * from "./interface/modify-entity.interface";
|
|
7
7
|
export * from "./interface/modify.interface";
|
|
8
8
|
export * from "./interface/update-user-info.interface";
|
|
9
|
+
export * from "./interface/user-entity-without-password.interface";
|
|
10
|
+
export * from "./interface/pricing-plan-model.interface";
|
|
11
|
+
export * from "./interface/ng-date-struct.interface";
|
|
12
|
+
export * from "./interface/subscription-data.inteface";
|
|
13
|
+
export * from "./interface/selected-billing-cycle.interface";
|
package/build/@type.js
CHANGED
|
@@ -22,3 +22,8 @@ __exportStar(require("./interface/without-token-registration-entity.interface"),
|
|
|
22
22
|
__exportStar(require("./interface/modify-entity.interface"), exports);
|
|
23
23
|
__exportStar(require("./interface/modify.interface"), exports);
|
|
24
24
|
__exportStar(require("./interface/update-user-info.interface"), exports);
|
|
25
|
+
__exportStar(require("./interface/user-entity-without-password.interface"), exports);
|
|
26
|
+
__exportStar(require("./interface/pricing-plan-model.interface"), exports);
|
|
27
|
+
__exportStar(require("./interface/ng-date-struct.interface"), exports);
|
|
28
|
+
__exportStar(require("./interface/subscription-data.inteface"), exports);
|
|
29
|
+
__exportStar(require("./interface/selected-billing-cycle.interface"), exports);
|
package/build/@utils.d.ts
CHANGED
package/build/@utils.js
CHANGED
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./utils/string-to-date-conversion-methods"), exports);
|
|
18
18
|
__exportStar(require("./utils/string-utils"), exports);
|
|
19
|
+
__exportStar(require("./utils/date-util"), exports);
|
|
@@ -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,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,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 = {}));
|
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
export declare enum OrganizationStatus {
|
|
2
|
-
REGISTRATION_APPROVED = "registration_approved"
|
|
2
|
+
REGISTRATION_APPROVED = "registration_approved",
|
|
3
|
+
SETUP_DONE = "setup_done",
|
|
4
|
+
ACTIVE = "active",
|
|
5
|
+
SETUP_INVALID = "setup_invalid",
|
|
6
|
+
PAYMENT_INVALID = "payment_invalid",
|
|
7
|
+
ACCOUNT_SUSPENDED = "account_suspended"
|
|
3
8
|
}
|
|
@@ -4,4 +4,9 @@ exports.OrganizationStatus = void 0;
|
|
|
4
4
|
var OrganizationStatus;
|
|
5
5
|
(function (OrganizationStatus) {
|
|
6
6
|
OrganizationStatus["REGISTRATION_APPROVED"] = "registration_approved";
|
|
7
|
+
OrganizationStatus["SETUP_DONE"] = "setup_done";
|
|
8
|
+
OrganizationStatus["ACTIVE"] = "active";
|
|
9
|
+
OrganizationStatus["SETUP_INVALID"] = "setup_invalid";
|
|
10
|
+
OrganizationStatus["PAYMENT_INVALID"] = "payment_invalid";
|
|
11
|
+
OrganizationStatus["ACCOUNT_SUSPENDED"] = "account_suspended";
|
|
7
12
|
})(OrganizationStatus || (exports.OrganizationStatus = OrganizationStatus = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PricingPlanStatus = void 0;
|
|
4
|
+
var PricingPlanStatus;
|
|
5
|
+
(function (PricingPlanStatus) {
|
|
6
|
+
PricingPlanStatus["ACTIVE"] = "active";
|
|
7
|
+
PricingPlanStatus["DEACTIVE"] = "deactive";
|
|
8
|
+
})(PricingPlanStatus || (exports.PricingPlanStatus = PricingPlanStatus = {}));
|
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
export declare enum RegistrationStatus {
|
|
2
|
-
REGISTRATION_APPROVED = "registration_approved"
|
|
2
|
+
REGISTRATION_APPROVED = "registration_approved",
|
|
3
|
+
SETUP_DONE = "setup_done",
|
|
4
|
+
ACTIVE = "active",
|
|
5
|
+
SETUP_INVALID = "setup_invalid",
|
|
6
|
+
PAYMENT_INVALID = "payment_invalid",
|
|
7
|
+
ACCOUNT_SUSPENDED = "account_suspended"
|
|
3
8
|
}
|
|
@@ -4,4 +4,9 @@ exports.RegistrationStatus = void 0;
|
|
|
4
4
|
var RegistrationStatus;
|
|
5
5
|
(function (RegistrationStatus) {
|
|
6
6
|
RegistrationStatus["REGISTRATION_APPROVED"] = "registration_approved";
|
|
7
|
+
RegistrationStatus["SETUP_DONE"] = "setup_done";
|
|
8
|
+
RegistrationStatus["ACTIVE"] = "active";
|
|
9
|
+
RegistrationStatus["SETUP_INVALID"] = "setup_invalid";
|
|
10
|
+
RegistrationStatus["PAYMENT_INVALID"] = "payment_invalid";
|
|
11
|
+
RegistrationStatus["ACCOUNT_SUSPENDED"] = "account_suspended";
|
|
7
12
|
})(RegistrationStatus || (exports.RegistrationStatus = RegistrationStatus = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare enum SubscriptionStatus {
|
|
2
|
+
ACTIVE = "active",
|
|
3
|
+
DEACTIVE = "deactive",
|
|
4
|
+
PAYMENT_DONE = "payment_done",
|
|
5
|
+
PAYMENT_PENDING = "payment_pending",
|
|
6
|
+
REJECT = "reject",
|
|
7
|
+
SETUP_INVALID = "setup_invalid",
|
|
8
|
+
SETUP_DONE = "setup_done",
|
|
9
|
+
PAYMENT_INVALID = "payment_invalid",
|
|
10
|
+
ACCOUNT_SUSPENDED = "account_suspended"
|
|
11
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SubscriptionStatus = void 0;
|
|
4
|
+
var SubscriptionStatus;
|
|
5
|
+
(function (SubscriptionStatus) {
|
|
6
|
+
SubscriptionStatus["ACTIVE"] = "active";
|
|
7
|
+
SubscriptionStatus["DEACTIVE"] = "deactive";
|
|
8
|
+
SubscriptionStatus["PAYMENT_DONE"] = "payment_done";
|
|
9
|
+
SubscriptionStatus["PAYMENT_PENDING"] = "payment_pending";
|
|
10
|
+
SubscriptionStatus["REJECT"] = "reject";
|
|
11
|
+
SubscriptionStatus["SETUP_INVALID"] = "setup_invalid";
|
|
12
|
+
SubscriptionStatus["SETUP_DONE"] = "setup_done";
|
|
13
|
+
SubscriptionStatus["PAYMENT_INVALID"] = "payment_invalid";
|
|
14
|
+
SubscriptionStatus["ACCOUNT_SUSPENDED"] = "account_suspended";
|
|
15
|
+
})(SubscriptionStatus || (exports.SubscriptionStatus = SubscriptionStatus = {}));
|
|
@@ -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 = {}));
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export declare enum UserStatus {
|
|
2
2
|
ACTIVE = "active",
|
|
3
3
|
DEACTIVE = "deactive",
|
|
4
|
-
REGISTRATION_APPROVED = "registration_approved"
|
|
4
|
+
REGISTRATION_APPROVED = "registration_approved",
|
|
5
|
+
SETUP_DONE = "setup_done",
|
|
6
|
+
SETUP_INVALID = "setup_invalid",
|
|
7
|
+
PAYMENT_INVALID = "payment_invalid",
|
|
8
|
+
ACCOUNT_SUSPENDED = "account_suspended"
|
|
5
9
|
}
|
|
@@ -6,4 +6,8 @@ var UserStatus;
|
|
|
6
6
|
UserStatus["ACTIVE"] = "active";
|
|
7
7
|
UserStatus["DEACTIVE"] = "deactive";
|
|
8
8
|
UserStatus["REGISTRATION_APPROVED"] = "registration_approved";
|
|
9
|
+
UserStatus["SETUP_DONE"] = "setup_done";
|
|
10
|
+
UserStatus["SETUP_INVALID"] = "setup_invalid";
|
|
11
|
+
UserStatus["PAYMENT_INVALID"] = "payment_invalid";
|
|
12
|
+
UserStatus["ACCOUNT_SUSPENDED"] = "account_suspended";
|
|
9
13
|
})(UserStatus || (exports.UserStatus = UserStatus = {}));
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.AppBadRequestException = void 0;
|
|
19
|
+
var AppBadRequestException = /** @class */ (function (_super) {
|
|
20
|
+
__extends(AppBadRequestException, _super);
|
|
21
|
+
function AppBadRequestException(appBadRequestException) {
|
|
22
|
+
var _this = _super.call(this) || this;
|
|
23
|
+
_this.message = appBadRequestException.message.join(",");
|
|
24
|
+
return _this;
|
|
25
|
+
}
|
|
26
|
+
return AppBadRequestException;
|
|
27
|
+
}(Error));
|
|
28
|
+
exports.AppBadRequestException = AppBadRequestException;
|
|
@@ -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,22 @@
|
|
|
1
|
+
import { IBankDetailEntity, IUploadedMulterFile, Modify } from "../../@type";
|
|
2
|
+
export interface ICreateBankDetailResponse extends Modify<IBankDetailEntity, {
|
|
3
|
+
createdOn: string;
|
|
4
|
+
updatedOn: string;
|
|
5
|
+
}> {
|
|
6
|
+
}
|
|
7
|
+
export interface ICreateBankDetailRequest {
|
|
8
|
+
qrCode?: IUploadedMulterFile;
|
|
9
|
+
bankName: string;
|
|
10
|
+
accountName: string;
|
|
11
|
+
accountNo: string;
|
|
12
|
+
ifscCode: string;
|
|
13
|
+
upiId?: string;
|
|
14
|
+
bankAddress?: string;
|
|
15
|
+
branch: string;
|
|
16
|
+
files: IFiles[];
|
|
17
|
+
}
|
|
18
|
+
export interface IFiles {
|
|
19
|
+
key: string;
|
|
20
|
+
value: File;
|
|
21
|
+
name: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IPricingPlanEntity, Modify } from "../../@type";
|
|
2
|
+
export interface ICreatePricingPlanRequest {
|
|
3
|
+
effectiveFromDate: number;
|
|
4
|
+
effectiveToDate?: number;
|
|
5
|
+
basePrice: number;
|
|
6
|
+
billingCycle: IBillingCycle;
|
|
7
|
+
}
|
|
8
|
+
export interface IBillingCycle {
|
|
9
|
+
[key: string]: IBilling;
|
|
10
|
+
}
|
|
11
|
+
export interface IBilling {
|
|
12
|
+
noOfMonths: number;
|
|
13
|
+
discount: string;
|
|
14
|
+
name: string;
|
|
15
|
+
}
|
|
16
|
+
export interface ICreatePricingPlanResponse extends Modify<IPricingPlanEntity, {
|
|
17
|
+
createdOn: string;
|
|
18
|
+
updatedOn: string;
|
|
19
|
+
}> {
|
|
20
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ISubscriptionEntity } from "../entity";
|
|
2
|
+
import { Modify } from "../modify.interface";
|
|
3
|
+
export interface ICreateSubscriptionResponse extends Modify<ISubscriptionEntity, {
|
|
4
|
+
createdOn: string;
|
|
5
|
+
updatedOn: string;
|
|
6
|
+
}> {
|
|
7
|
+
}
|
|
8
|
+
export interface ICreateSubscriptionRequest {
|
|
9
|
+
from: number;
|
|
10
|
+
to: number;
|
|
11
|
+
pricingPlanId: number;
|
|
12
|
+
type: string;
|
|
13
|
+
grossAmount: number;
|
|
14
|
+
discount: string;
|
|
15
|
+
netAmount: number;
|
|
16
|
+
amountPaid: number;
|
|
17
|
+
remarks?: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IOrganizationEntity } from "../entity";
|
|
2
|
+
import { IModifyEntity } from "../modify-entity.interface";
|
|
3
|
+
import { IUserEntityWithoutPassword } from "../user-entity-without-password.interface";
|
|
4
|
+
export interface IGetOrganizationByOrgIdResponse extends IModifyEntity<IOrganizationEntity> {
|
|
5
|
+
owners?: IModifyEntity<IUserEntityWithoutPassword>[];
|
|
6
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface IGetPricingPlanByDateResponse {
|
|
2
|
+
id: number;
|
|
3
|
+
effectiveFromDate: number;
|
|
4
|
+
effectiveToDate: number;
|
|
5
|
+
basePrice: number;
|
|
6
|
+
billingCycle: {
|
|
7
|
+
[key: string]: {
|
|
8
|
+
noOfMonths: number;
|
|
9
|
+
discount: string;
|
|
10
|
+
name: string;
|
|
11
|
+
key: string;
|
|
12
|
+
value: number;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IModifyEntity, IOrganizationEntity, IRegistrationEntity, ISubscriptionEntity, IUserEntityWithoutPassword } from "../../@type";
|
|
2
|
+
export interface IOrganizationWithOwners extends IModifyEntity<IOrganizationEntity> {
|
|
3
|
+
owners: {
|
|
4
|
+
[userId: string]: IModifyEntity<IUserEntityWithoutPassword>;
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
export interface IGetRegistrationById {
|
|
8
|
+
registration: IModifyEntity<IRegistrationEntity>;
|
|
9
|
+
organization: {
|
|
10
|
+
[id: string]: IOrganizationWithOwners;
|
|
11
|
+
};
|
|
12
|
+
subscription: {
|
|
13
|
+
[id: string]: IModifyEntity<ISubscriptionEntity>;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IModifyEntity, IOrganizationWithOwners, IRegistrationEntity, ISubscriptionEntity } from "../../@type";
|
|
2
|
+
export interface IGetRegistrationResponse {
|
|
3
|
+
[registrationId: string]: {
|
|
4
|
+
registration: IModifyEntity<IRegistrationEntity>;
|
|
5
|
+
organization: {
|
|
6
|
+
[id: string]: IOrganizationWithOwners;
|
|
7
|
+
};
|
|
8
|
+
subscription: {
|
|
9
|
+
[id: string]: IModifyEntity<ISubscriptionEntity>;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
}
|
|
@@ -1,3 +1,22 @@
|
|
|
1
1
|
export * from "./update-organization.interface";
|
|
2
2
|
export * from "./create-registration.interface";
|
|
3
3
|
export * from "./update-organization.interface";
|
|
4
|
+
export * from "./create-bank-details.interface";
|
|
5
|
+
export * from "./create-pricing-plan.interface";
|
|
6
|
+
export * from "./create-subscription.interface";
|
|
7
|
+
export * from "./remove-pricing-plan-by-id.interface";
|
|
8
|
+
export * from "./update-bank-details.interface";
|
|
9
|
+
export * from "./update-pricing-plan.interface";
|
|
10
|
+
export * from "./update-subscription.interface";
|
|
11
|
+
export * from "./get-pricing-plan-by-date.interface";
|
|
12
|
+
export * from "./get-bank-details.interface";
|
|
13
|
+
export * from "./get-registration-by-id.interface";
|
|
14
|
+
export * from "./get-registration-with-organization-owners.interface";
|
|
15
|
+
export * from "./remove-bank-details-by-id.interface";
|
|
16
|
+
export * from "./update-pricing-plan-by-id.interface";
|
|
17
|
+
export * from "./login.interface";
|
|
18
|
+
export * from "./update-registration.interface";
|
|
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";
|
|
@@ -17,3 +17,22 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./update-organization.interface"), exports);
|
|
18
18
|
__exportStar(require("./create-registration.interface"), exports);
|
|
19
19
|
__exportStar(require("./update-organization.interface"), exports);
|
|
20
|
+
__exportStar(require("./create-bank-details.interface"), exports);
|
|
21
|
+
__exportStar(require("./create-pricing-plan.interface"), exports);
|
|
22
|
+
__exportStar(require("./create-subscription.interface"), exports);
|
|
23
|
+
__exportStar(require("./remove-pricing-plan-by-id.interface"), exports);
|
|
24
|
+
__exportStar(require("./update-bank-details.interface"), exports);
|
|
25
|
+
__exportStar(require("./update-pricing-plan.interface"), exports);
|
|
26
|
+
__exportStar(require("./update-subscription.interface"), exports);
|
|
27
|
+
__exportStar(require("./get-pricing-plan-by-date.interface"), exports);
|
|
28
|
+
__exportStar(require("./get-bank-details.interface"), exports);
|
|
29
|
+
__exportStar(require("./get-registration-by-id.interface"), exports);
|
|
30
|
+
__exportStar(require("./get-registration-with-organization-owners.interface"), exports);
|
|
31
|
+
__exportStar(require("./remove-bank-details-by-id.interface"), exports);
|
|
32
|
+
__exportStar(require("./update-pricing-plan-by-id.interface"), exports);
|
|
33
|
+
__exportStar(require("./login.interface"), exports);
|
|
34
|
+
__exportStar(require("./update-registration.interface"), exports);
|
|
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,18 @@
|
|
|
1
|
+
import { IBankDetailEntity, IUploadedMulterFile, Modify } from "../../@type";
|
|
2
|
+
import { IFiles } from "./create-bank-details.interface";
|
|
3
|
+
export interface IUpdateBankDetailResponse extends Modify<IBankDetailEntity, {
|
|
4
|
+
createdOn: string;
|
|
5
|
+
updatedOn: string;
|
|
6
|
+
}> {
|
|
7
|
+
}
|
|
8
|
+
export interface IUpdateBankDetailRequest {
|
|
9
|
+
qrCode?: IUploadedMulterFile;
|
|
10
|
+
bankName?: string;
|
|
11
|
+
accountName?: string;
|
|
12
|
+
accountNo?: string;
|
|
13
|
+
ifscCode?: string;
|
|
14
|
+
upiId?: string;
|
|
15
|
+
bankAddress?: string;
|
|
16
|
+
branch?: string;
|
|
17
|
+
files: IFiles[];
|
|
18
|
+
}
|