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.
@@ -3,5 +3,6 @@ export declare enum UserType {
3
3
  ADVISOR = "advisor",
4
4
  SUPERADMIN = "superadmin",
5
5
  BOT_USER = "bot_user",
6
- PUBLIC_USER = "public_user"
6
+ PUBLIC_USER = "public_user",
7
+ ADVISOR_CLIENT = "advisor_client"
7
8
  }
@@ -8,4 +8,5 @@ var UserType;
8
8
  UserType["SUPERADMIN"] = "superadmin";
9
9
  UserType["BOT_USER"] = "bot_user";
10
10
  UserType["PUBLIC_USER"] = "public_user";
11
+ UserType["ADVISOR_CLIENT"] = "advisor_client";
11
12
  })(UserType || (exports.UserType = UserType = {}));
@@ -0,0 +1,7 @@
1
+ import { IBankDetailEntity } from "../entity";
2
+ import { Modify } from "../modify.interface";
3
+ export interface IDeleteBankDetailsById extends Modify<IBankDetailEntity, {
4
+ createdOn: string;
5
+ updatedOn: string;
6
+ }> {
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { IPricingPlanEntity, Modify } from "../../@type";
2
+ export interface IDeletePricingPlanById 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 });
@@ -1,15 +1,3 @@
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
- };
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 "./remove-pricing-plan-by-id.interface";
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 "./remove-bank-details-by-id.interface";
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("./remove-pricing-plan-by-id.interface"), exports);
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("./remove-bank-details-by-id.interface"), exports);
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);
@@ -16,4 +16,5 @@ export interface IUserEntity extends IEntityAuditColumn {
16
16
  registrationId: number;
17
17
  organizationId: number;
18
18
  imageUrl: string | null;
19
+ documentUrls: string | null;
19
20
  }
@@ -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,4 +1,4 @@
1
- export interface ISelectedBillingCycle {
1
+ export interface IBillingCycleObj {
2
2
  noOfMonths: number;
3
3
  discount: string;
4
4
  name: string;
@@ -1,17 +1,17 @@
1
- import { IGetPricingPlanByDateResponse, IPricingPlanModel, ISelectedBillingCycle } from "../@type";
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]: ISelectedBillingCycle;
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): ISelectedBillingCycle;
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 { ISelectedBillingCycle } from "../@type";
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: ISelectedBillingCycle;
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[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ia-common",
3
- "version": "1.0.1-beta.80",
3
+ "version": "1.0.1-beta.82",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",