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.
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,6 @@
1
+ import { IPricingPlanEntity, Modify } from "../../@type";
2
+ export interface IRemovePricingPlanById extends Modify<IPricingPlanEntity, {
3
+ createdOn: string;
4
+ updatedOn: string;
5
+ }> {
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ia-common",
3
- "version": "1.0.1-beta.5",
3
+ "version": "1.0.1-beta.8",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",