ia-common 1.1.1-beta.28 → 1.1.1-beta.29

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.
@@ -1,4 +1,4 @@
1
- import { IEntityCreateDto, IPricingPlanEntity, Modify } from "../../@type";
1
+ import { IEntityCreateDto, IPricingPlanEntity } from "../../@type";
2
2
  export interface ICreatePricingPlanRequest {
3
3
  effectiveFrom: number;
4
4
  effectiveTo?: number;
@@ -20,8 +20,3 @@ export interface IPricingPlanCreateDtoInclude {
20
20
  export type IPricingPlanCreateDtoExclude = "status" | "billingCycle";
21
21
  export interface IPricingPlanCreateDto extends IEntityCreateDto<Omit<IPricingPlanEntity, IPricingPlanCreateDtoExclude>>, IPricingPlanCreateDtoInclude {
22
22
  }
23
- export interface ICreatePricingPlanResponse extends Modify<IPricingPlanEntity, {
24
- createdOn: string;
25
- updatedOn: string;
26
- }> {
27
- }
@@ -1,5 +1,6 @@
1
- import { EntityEnum, EnumEntityType, IEntityCreateDto, ISubscriptionEntity } from "../entity";
1
+ import { EntityEnum, EnumEntityType, IEntityCreateDto, IOrganizationEntity, IRegistrationEntity, ISubscriptionEntity } from "../entity";
2
2
  import { Modify } from "../modify.interface";
3
+ import { IGetPricingPlanByDateResponse } from "./get-pricing-plan-by-date.interface";
3
4
  export interface ICreateSubscriptionResponse extends Modify<ISubscriptionEntity, {
4
5
  createdOn: string;
5
6
  updatedOn: string;
@@ -8,3 +9,8 @@ export interface ICreateSubscriptionResponse extends Modify<ISubscriptionEntity,
8
9
  export type ISubscriptionEntityCreateDtoExclude = "organizationId" | "status" | "registrationId";
9
10
  export interface ISubscriptionEntityCreateDto extends IEntityCreateDto<Omit<EnumEntityType<EntityEnum.SUBSCRIPTION>, ISubscriptionEntityCreateDtoExclude>> {
10
11
  }
12
+ export interface ISubscriptionCreateDtoValidationData {
13
+ organizationEntity: IOrganizationEntity;
14
+ registrationEntity: IRegistrationEntity;
15
+ pricingPlanData: IGetPricingPlanByDateResponse;
16
+ }
@@ -1,13 +1,10 @@
1
- import { EntityEnum, EnumEntityType, IEntityUpdateDto, ISubscriptionEntity, Modify } from "../../@type";
2
- export interface IUpdateSubscriptionResponse extends Modify<ISubscriptionEntity, {
3
- createdOn: string;
4
- updatedOn: string;
5
- }> {
6
- advanceAmount?: number;
7
- }
1
+ import { EntityEnum, EnumEntityType, IEntityUpdateDto, ISubscriptionEntity } from "../../@type";
8
2
  export interface ISubscriptionEntityUpdateDtoInclude {
9
3
  advanceAmount?: number;
10
4
  remarks?: string;
11
5
  }
12
6
  export interface ISubscriptionEntityUpdateDto extends IEntityUpdateDto<EnumEntityType<EntityEnum.SUBSCRIPTION>>, ISubscriptionEntityUpdateDtoInclude {
13
7
  }
8
+ export interface ISubscriptionUpdateDtoValidationData {
9
+ subscriptionEntity: ISubscriptionEntity;
10
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ia-common",
3
- "version": "1.1.1-beta.28",
3
+ "version": "1.1.1-beta.29",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",