ia-common 1.0.1-beta.80 → 1.0.1-beta.82
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/user-type.enum.d.ts +2 -1
- package/build/enum/user-type.enum.js +1 -0
- package/build/interface/api/delete-bank-details-by-id.interface.d.ts +7 -0
- package/build/interface/api/delete-bank-details-by-id.interface.js +2 -0
- package/build/interface/api/delete-pricing-plan-by-id.interface.d.ts +6 -0
- package/build/interface/api/delete-pricing-plan-by-id.interface.js +2 -0
- package/build/interface/api/get-pricing-plan-by-date.interface.d.ts +2 -14
- package/build/interface/api/index.d.ts +2 -2
- package/build/interface/api/index.js +2 -2
- package/build/interface/entity/user-entity.interface.d.ts +1 -0
- package/build/interface/pricing-plan-model.interface.d.ts +2 -6
- package/build/interface/selected-billing-cycle.interface.d.ts +1 -1
- package/build/model/pricing-plan-model.d.ts +3 -3
- package/build/model/subscribed-pricing-plan-model.d.ts +2 -2
- package/build/model/user-entity-model.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
};
|
|
1
|
+
import { IPricingPlanModel } from "../pricing-plan-model.interface";
|
|
2
|
+
export interface IGetPricingPlanByDateResponse extends IPricingPlanModel {
|
|
15
3
|
}
|
|
@@ -4,7 +4,7 @@ export * from "./update-organization.interface";
|
|
|
4
4
|
export * from "./create-bank-details.interface";
|
|
5
5
|
export * from "./create-pricing-plan.interface";
|
|
6
6
|
export * from "./create-subscription.interface";
|
|
7
|
-
export * from "./
|
|
7
|
+
export * from "./delete-pricing-plan-by-id.interface";
|
|
8
8
|
export * from "./update-bank-details.interface";
|
|
9
9
|
export * from "./update-pricing-plan.interface";
|
|
10
10
|
export * from "./update-subscription.interface";
|
|
@@ -12,7 +12,7 @@ export * from "./get-pricing-plan-by-date.interface";
|
|
|
12
12
|
export * from "./get-bank-details.interface";
|
|
13
13
|
export * from "./get-registration-by-id.interface";
|
|
14
14
|
export * from "./get-registration-with-organization-owners.interface";
|
|
15
|
-
export * from "./
|
|
15
|
+
export * from "./delete-bank-details-by-id.interface";
|
|
16
16
|
export * from "./update-pricing-plan-by-id.interface";
|
|
17
17
|
export * from "./login.interface";
|
|
18
18
|
export * from "./update-registration.interface";
|
|
@@ -20,7 +20,7 @@ __exportStar(require("./update-organization.interface"), exports);
|
|
|
20
20
|
__exportStar(require("./create-bank-details.interface"), exports);
|
|
21
21
|
__exportStar(require("./create-pricing-plan.interface"), exports);
|
|
22
22
|
__exportStar(require("./create-subscription.interface"), exports);
|
|
23
|
-
__exportStar(require("./
|
|
23
|
+
__exportStar(require("./delete-pricing-plan-by-id.interface"), exports);
|
|
24
24
|
__exportStar(require("./update-bank-details.interface"), exports);
|
|
25
25
|
__exportStar(require("./update-pricing-plan.interface"), exports);
|
|
26
26
|
__exportStar(require("./update-subscription.interface"), exports);
|
|
@@ -28,7 +28,7 @@ __exportStar(require("./get-pricing-plan-by-date.interface"), exports);
|
|
|
28
28
|
__exportStar(require("./get-bank-details.interface"), exports);
|
|
29
29
|
__exportStar(require("./get-registration-by-id.interface"), exports);
|
|
30
30
|
__exportStar(require("./get-registration-with-organization-owners.interface"), exports);
|
|
31
|
-
__exportStar(require("./
|
|
31
|
+
__exportStar(require("./delete-bank-details-by-id.interface"), exports);
|
|
32
32
|
__exportStar(require("./update-pricing-plan-by-id.interface"), exports);
|
|
33
33
|
__exportStar(require("./login.interface"), exports);
|
|
34
34
|
__exportStar(require("./update-registration.interface"), exports);
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
+
import { IBillingCycleObj } from "./selected-billing-cycle.interface";
|
|
1
2
|
export interface IPricingPlanModel {
|
|
2
3
|
id: number;
|
|
3
4
|
effectiveFromDate: number;
|
|
4
5
|
effectiveToDate: number;
|
|
5
6
|
basePrice: number;
|
|
6
7
|
billingCycle: {
|
|
7
|
-
[key: string]:
|
|
8
|
-
noOfMonths: number;
|
|
9
|
-
discount: string;
|
|
10
|
-
name: string;
|
|
11
|
-
key: string;
|
|
12
|
-
};
|
|
8
|
+
[key: string]: IBillingCycleObj;
|
|
13
9
|
};
|
|
14
10
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { IGetPricingPlanByDateResponse, IPricingPlanModel,
|
|
1
|
+
import { IGetPricingPlanByDateResponse, IPricingPlanModel, IBillingCycleObj } from "../@type";
|
|
2
2
|
export declare class PricingPlanModel implements IPricingPlanModel {
|
|
3
3
|
id: number;
|
|
4
4
|
effectiveFromDate: number;
|
|
5
5
|
effectiveToDate: number;
|
|
6
6
|
basePrice: number;
|
|
7
7
|
billingCycle: {
|
|
8
|
-
[key: string]:
|
|
8
|
+
[key: string]: IBillingCycleObj;
|
|
9
9
|
};
|
|
10
10
|
constructor(data: IGetPricingPlanByDateResponse);
|
|
11
11
|
getBillingCycleKeys(): string[];
|
|
12
12
|
validateBillingCycleKey(key: string): void;
|
|
13
13
|
getNoOfSubscriptionDays(type: string): number;
|
|
14
|
-
getBillCycleByKey(type: string):
|
|
14
|
+
getBillCycleByKey(type: string): IBillingCycleObj;
|
|
15
15
|
getToDateCode(fromDateCode: number, billingCycleKey: string): number;
|
|
16
16
|
validateGetToDateCode(fromDateCode: number, toDateCode: number, billingCycleKey: string): number;
|
|
17
17
|
getFromToDateCode(billingCycleKey: string, offset?: number): {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IBillingCycleObj } from "../@type";
|
|
2
2
|
import { PricingPlanModel } from "./pricing-plan-model";
|
|
3
3
|
export declare class SubscribedPricingPlanModel {
|
|
4
4
|
billingCycleKey: string;
|
|
5
|
-
selectedBillingCycle:
|
|
5
|
+
selectedBillingCycle: IBillingCycleObj;
|
|
6
6
|
basePrice: number;
|
|
7
7
|
pricingPlanModel: PricingPlanModel;
|
|
8
8
|
constructor(data: PricingPlanModel, billingCycleKey: string);
|
|
@@ -19,6 +19,7 @@ export declare class UserEntityModel implements IUserEntity {
|
|
|
19
19
|
updatedOn: Date;
|
|
20
20
|
createdBy: number;
|
|
21
21
|
updatedBy: number;
|
|
22
|
+
documentUrls: string | null;
|
|
22
23
|
constructor(userEntity: IUserEntity);
|
|
23
24
|
static getEntityInstanceByRegistrationEntityOrganizationId(registrationEntity: IRegistrationEntity, hashPassword: string, organizationId: number): IUserEntity;
|
|
24
25
|
static filterByOrganizationId(userEntities: IUserEntity[], organizationId: number): IUserEntity[];
|