@talkplay/shared-types 1.0.1 → 1.0.3

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/dist/index.d.mts CHANGED
@@ -479,7 +479,7 @@ type PlanEntity = BaseEntity & {
479
479
  name: string;
480
480
  description: string;
481
481
  modules: SystemModuleEntity[];
482
- isPrimary: boolean;
482
+ isMain: boolean;
483
483
  };
484
484
 
485
485
  type LoginPayload = {
@@ -508,6 +508,8 @@ type GetCouponByIdResponse = CouponEntity & {
508
508
  type GetCouponValidationResponse = {
509
509
  isValid: boolean;
510
510
  validUntil: DateString | null;
511
+ discountType: CouponTypesEnum | null;
512
+ discountValue: number | null;
511
513
  };
512
514
 
513
515
  type GetPenaltyValueResponse = {
@@ -638,7 +640,7 @@ type UpsertPlanPayload = {
638
640
  name: string;
639
641
  description: string;
640
642
  modulesIds: string[];
641
- isPrimary: boolean;
643
+ isMain: boolean;
642
644
  };
643
645
  type UpsertPlanResponse = PlanEntity;
644
646
 
package/dist/index.d.ts CHANGED
@@ -479,7 +479,7 @@ type PlanEntity = BaseEntity & {
479
479
  name: string;
480
480
  description: string;
481
481
  modules: SystemModuleEntity[];
482
- isPrimary: boolean;
482
+ isMain: boolean;
483
483
  };
484
484
 
485
485
  type LoginPayload = {
@@ -508,6 +508,8 @@ type GetCouponByIdResponse = CouponEntity & {
508
508
  type GetCouponValidationResponse = {
509
509
  isValid: boolean;
510
510
  validUntil: DateString | null;
511
+ discountType: CouponTypesEnum | null;
512
+ discountValue: number | null;
511
513
  };
512
514
 
513
515
  type GetPenaltyValueResponse = {
@@ -638,7 +640,7 @@ type UpsertPlanPayload = {
638
640
  name: string;
639
641
  description: string;
640
642
  modulesIds: string[];
641
- isPrimary: boolean;
643
+ isMain: boolean;
642
644
  };
643
645
  type UpsertPlanResponse = PlanEntity;
644
646
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talkplay/shared-types",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",