ia-common 1.0.1-beta.5 → 1.0.1-beta.8
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/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 +7 -0
- package/build/interface/api/create-subscription.interface.js +2 -0
- package/build/interface/api/index.d.ts +7 -0
- package/build/interface/api/index.js +7 -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-pricing-plan.interface.d.ts +13 -0
- package/build/interface/api/update-pricing-plan.interface.js +2 -0
- package/build/interface/api/update-subscription.interface.d.ts +13 -0
- package/build/interface/api/update-subscription.interface.js +2 -0
- package/build/interface/entity/index.d.ts +3 -0
- package/build/interface/entity/index.js +3 -0
- package/package.json +1 -1
|
@@ -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
|
+
}
|
|
@@ -1,3 +1,10 @@
|
|
|
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";
|
|
@@ -17,3 +17,10 @@ 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);
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IPricingPlanEntity, Modify } from "../../@type";
|
|
2
|
+
import { IBillingCycle } from "./create-pricing-plan.interface";
|
|
3
|
+
export interface IUpdatePricingPlanRequest {
|
|
4
|
+
effectiveFromDate?: number;
|
|
5
|
+
effectiveToDate?: number;
|
|
6
|
+
basePrice?: number;
|
|
7
|
+
billingCycle?: IBillingCycle;
|
|
8
|
+
}
|
|
9
|
+
export interface IUpdatePricingPlanResponse extends Modify<IPricingPlanEntity, {
|
|
10
|
+
createdOn: string;
|
|
11
|
+
updatedOn: string;
|
|
12
|
+
}> {
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ISubscriptionEntity, Modify } from "../../@type";
|
|
2
|
+
export interface IUpdateSubscriptionResponse extends Modify<ISubscriptionEntity, {
|
|
3
|
+
from: string;
|
|
4
|
+
to: string;
|
|
5
|
+
createdOn: string;
|
|
6
|
+
updatedOn: string;
|
|
7
|
+
}> {
|
|
8
|
+
advanceAmount?: number;
|
|
9
|
+
}
|
|
10
|
+
export interface IUpdateSubscriptionRequest {
|
|
11
|
+
advanceAmount?: number;
|
|
12
|
+
remarks?: string;
|
|
13
|
+
}
|
|
@@ -2,3 +2,6 @@ export * from "./entity-audit-column.interface";
|
|
|
2
2
|
export * from "./organization-entity.interface";
|
|
3
3
|
export * from "./user-entity.interface";
|
|
4
4
|
export * from "./registration-entity";
|
|
5
|
+
export * from "./bank-details-entity.interface";
|
|
6
|
+
export * from "./pricing-plan-entity.interface";
|
|
7
|
+
export * from "./subscription-entity.interface";
|
|
@@ -18,3 +18,6 @@ __exportStar(require("./entity-audit-column.interface"), exports);
|
|
|
18
18
|
__exportStar(require("./organization-entity.interface"), exports);
|
|
19
19
|
__exportStar(require("./user-entity.interface"), exports);
|
|
20
20
|
__exportStar(require("./registration-entity"), exports);
|
|
21
|
+
__exportStar(require("./bank-details-entity.interface"), exports);
|
|
22
|
+
__exportStar(require("./pricing-plan-entity.interface"), exports);
|
|
23
|
+
__exportStar(require("./subscription-entity.interface"), exports);
|