turf-common 1.0.19-beta.4 → 1.0.19-beta.6

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,5 +1,8 @@
1
- import { ISubscriptionEntity } from "../../@type";
2
- export interface IActivateSubscriptionResponse extends Array<ISubscriptionEntity> {
1
+ import { ISubscriptionEntity, Modify } from "../../@type";
2
+ export interface IActivateSubscriptionResponse extends Array<Modify<ISubscriptionEntity, {
3
+ createdOn: string;
4
+ updatedOn: string;
5
+ }>> {
3
6
  }
4
7
  export interface IActivateSubscriptionRequest {
5
8
  dateCode?: number;
@@ -1,5 +1,8 @@
1
- import { IFaqsEntity } from "../../@type";
2
- export interface ICreateFaqsResponse extends IFaqsEntity {
1
+ import { IFaqsEntity, Modify } from "../../@type";
2
+ export interface ICreateFaqsResponse extends Modify<IFaqsEntity, {
3
+ createdOn: string;
4
+ updatedOn: string;
5
+ }> {
3
6
  }
4
7
  export interface ICreateFaqsRequest {
5
8
  module: string;
@@ -1,8 +1,8 @@
1
1
  import { ISubscriptionEntity, Modify } from "../../@type";
2
- export interface ICreateSubscriptionResponse extends Modify<ISubscriptionEntity, {
2
+ export interface ICreateSubscriptionResponse extends Array<Modify<ISubscriptionEntity, {
3
3
  createdOn: string;
4
4
  updatedOn: string;
5
- }> {
5
+ }>> {
6
6
  }
7
7
  export interface ICreateSubscriptionRequest {
8
8
  from: string;
@@ -1,9 +1,15 @@
1
- import { ICancellationPolicyEntity, ITurfEntity } from "../../@type";
1
+ import { ICancellationPolicyEntity, ITurfEntity, Modify } from "../../@type";
2
2
  export interface IGetCancellationPolicyByOrgIdResponse {
3
3
  turfs: {
4
- [turfId: number]: ITurfEntity;
4
+ [turfId: number]: Modify<ITurfEntity, {
5
+ createdOn: string;
6
+ updatedOn: string;
7
+ }>;
5
8
  };
6
9
  cancellationPolicy: {
7
- [turfId: string]: ICancellationPolicyEntity[];
10
+ [turfId: string]: Modify<ICancellationPolicyEntity, {
11
+ createdOn: string;
12
+ updatedOn: string;
13
+ }>[];
8
14
  };
9
15
  }
@@ -1,5 +1,14 @@
1
- import { ISubscriptionEntity, ISubscriptionPitchMappingEntity } from "../../@type";
2
- export interface IGetCurrentSubscriptionResponse extends ISubscriptionEntity {
3
- details: ISubscriptionPitchMappingEntity[];
4
- next: ISubscriptionEntity | null;
1
+ import { ISubscriptionEntity, ISubscriptionPitchMappingEntity, Modify } from "../../@type";
2
+ export interface IGetCurrentSubscriptionResponse extends Modify<ISubscriptionEntity, {
3
+ createdOn: string;
4
+ updatedOn: string;
5
+ }> {
6
+ details: Modify<ISubscriptionPitchMappingEntity, {
7
+ createdOn: string;
8
+ updatedOn: string;
9
+ }>[];
10
+ next: Modify<ISubscriptionEntity, {
11
+ createdOn: string;
12
+ updatedOn: string;
13
+ }> | null;
5
14
  }
@@ -1,6 +1,6 @@
1
1
  import { ISubscriptionEntity, Modify } from "../../@type";
2
- export interface IGetSubscriptionByOrgIdResponse extends Modify<ISubscriptionEntity, {
2
+ export interface IGetSubscriptionByOrgIdResponse extends Array<Modify<ISubscriptionEntity, {
3
3
  createdOn: string;
4
4
  updatedOn: string;
5
- }> {
5
+ }>> {
6
6
  }
@@ -1,6 +1,6 @@
1
1
  import { ISubscriptionEntity, Modify } from "../../@type";
2
- export interface IGetSubscriptionEntitiesResponse extends Modify<ISubscriptionEntity, {
2
+ export interface IGetSubscriptionEntitiesResponse extends Array<Modify<ISubscriptionEntity, {
3
3
  createdOn: string;
4
4
  updatedOn: string;
5
- }> {
5
+ }>> {
6
6
  }
@@ -1,3 +1,15 @@
1
- import { ITurf } from "../../@type";
2
- export interface IGetTurfEntityResponse extends ITurf {
1
+ import { IPitch, ITurf, Modify } from "../../@type";
2
+ export interface IGetTurfEntityResponse extends Modify<ITurf, {
3
+ createdOn: string;
4
+ updatedOn: string;
5
+ pitches: Modify<IPitch, {
6
+ createdOn: string;
7
+ updatedOn: string;
8
+ }>[];
9
+ }> {
10
+ }
11
+ export interface IGetTurfEntityResponse2test extends Modify<ITurf, {
12
+ createdOn: string;
13
+ updatedOn: string;
14
+ }> {
3
15
  }
@@ -1,5 +1,8 @@
1
- import { ISubscriptionEntity, IUpgrade_details } from "../../@type";
2
- export interface IRenewSubscriptionResponse extends ISubscriptionEntity {
1
+ import { ISubscriptionEntity, IUpgrade_details, Modify } from "../../@type";
2
+ export interface IRenewSubscriptionResponse extends Modify<ISubscriptionEntity, {
3
+ createdOn: string;
4
+ updatedOn: string;
5
+ }> {
3
6
  }
4
7
  export interface IRenewSubscriptionRequest {
5
8
  from: string;
@@ -1,5 +1,8 @@
1
- import { IFaqsEntity } from "../../@type";
2
- export interface IUpdateFaqsStepsResponse extends IFaqsEntity {
1
+ import { IFaqsEntity, Modify } from "../../@type";
2
+ export interface IUpdateFaqsStepsResponse extends Modify<IFaqsEntity, {
3
+ createdOn: string;
4
+ updatedOn: string;
5
+ }> {
3
6
  }
4
7
  export interface IUpdateFaqsRequest {
5
8
  module?: string;
@@ -1,3 +1,6 @@
1
- import { IFaqsEntity } from "../../@type";
2
- export interface IUpdateFaqsResponse extends IFaqsEntity {
1
+ import { IFaqsEntity, Modify } from "../../@type";
2
+ export interface IUpdateFaqsResponse extends Modify<IFaqsEntity, {
3
+ createdOn: string;
4
+ updatedOn: string;
5
+ }> {
3
6
  }
@@ -1,6 +1,9 @@
1
1
  import { SubscriptionStatus } from "../../@enum";
2
- import { ISubscriptionEntity } from "../../@type";
3
- export interface IUpdateSubscriptionResponse extends ISubscriptionEntity {
2
+ import { ISubscriptionEntity, Modify } from "../../@type";
3
+ export interface IUpdateSubscriptionResponse extends Modify<ISubscriptionEntity, {
4
+ createdOn: string;
5
+ updatedOn: string;
6
+ }> {
4
7
  advanceAmount?: number;
5
8
  }
6
9
  export interface IUpdateSubscriptionRequest {
@@ -1,5 +1,8 @@
1
- import { IRenewSubscriptionRequest, ISubscriptionEntity, IUpgradeSubscriptionRequest } from "../../@type";
2
- export interface IUpgradeRenewSubscriptionResponse extends ISubscriptionEntity {
1
+ import { IRenewSubscriptionRequest, ISubscriptionEntity, IUpgradeSubscriptionRequest, Modify } from "../../@type";
2
+ export interface IUpgradeRenewSubscriptionResponse extends Modify<ISubscriptionEntity, {
3
+ createdOn: string;
4
+ updatedOn: string;
5
+ }> {
3
6
  }
4
7
  export interface IUpgradeRenewSubscriptionRequest {
5
8
  upgradeSubscription: IUpgradeSubscriptionRequest;
@@ -1,5 +1,8 @@
1
- import { ISubscriptionEntity, IUpdatePitches } from "../../@type";
2
- export interface IUpgradeSubscriptionResponse extends ISubscriptionEntity {
1
+ import { ISubscriptionEntity, IUpdatePitches, Modify } from "../../@type";
2
+ export interface IUpgradeSubscriptionResponse extends Modify<ISubscriptionEntity, {
3
+ createdOn: string;
4
+ updatedOn: string;
5
+ }> {
3
6
  }
4
7
  export interface IUpgradeSubscriptionRequest {
5
8
  pricingPlanId: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "turf-common",
3
- "version": "1.0.19-beta.4",
3
+ "version": "1.0.19-beta.6",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",