turf-common 1.0.16-beta.50 → 1.0.16-beta.52

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.
Files changed (37) hide show
  1. package/build/interface/api/index.d.ts +1 -0
  2. package/build/interface/api/index.js +1 -0
  3. package/build/interface/entity/booking-cancellation-entity.interface.d.ts +1 -1
  4. package/build/interface/entity/user-entity.interface.d.ts +1 -1
  5. package/package.json +1 -1
  6. package/build/enums/enums.d.ts +0 -16
  7. package/build/enums/enums.js +0 -32
  8. package/build/enums/pricing-plan-status.enum copy.d.ts +0 -4
  9. package/build/enums/pricing-plan-status.enum copy.js +0 -8
  10. package/build/interface/booking-details-model.interface.d.ts +0 -5
  11. package/build/interface/booking-details-model.interface.js +0 -2
  12. package/build/interface/booking-entity-model.interface.d.ts +0 -8
  13. package/build/interface/booking-entity-model.interface.js +0 -2
  14. package/build/interface/cancellation-policy-model.interface.d.ts +0 -4
  15. package/build/interface/cancellation-policy-model.interface.js +0 -2
  16. package/build/interface/charge-model.interface.d.ts +0 -12
  17. package/build/interface/charge-model.interface.js +0 -2
  18. package/build/interface/configuration-model.interface.d.ts +0 -4
  19. package/build/interface/configuration-model.interface.js +0 -2
  20. package/build/interface/interface.d.ts +0 -8
  21. package/build/interface/interface.js +0 -24
  22. package/build/interface/price-model.interface.d.ts +0 -3
  23. package/build/interface/price-model.interface.js +0 -2
  24. package/build/interface/pricing-plan-entity-model.interface.d.ts +0 -13
  25. package/build/interface/pricing-plan-entity-model.interface.js +0 -2
  26. package/build/interface/pricing-plan-model.interface.d.ts +0 -15
  27. package/build/interface/pricing-plan-model.interface.js +0 -2
  28. package/build/interface/subscription-status.interface.d.ts +0 -20
  29. package/build/interface/subscription-status.interface.js +0 -24
  30. package/build/interface/turf-model.interface.d.ts +0 -7
  31. package/build/interface/turf-model.interface.js +0 -2
  32. package/build/interface/user-model.interface.d.ts +0 -3
  33. package/build/interface/user-model.interface.js +0 -2
  34. package/build/models/models.d.ts +0 -4
  35. package/build/models/models.js +0 -20
  36. package/build/types/type.d.ts +0 -4
  37. package/build/types/type.js +0 -20
@@ -58,3 +58,4 @@ export * from "./update-turf-transaction-output";
58
58
  export * from "./upgrade-renew-subscription.interface";
59
59
  export * from "./upgrade-subscription.interface";
60
60
  export * from "./userentity-without-password.interface";
61
+ export * from "./update-registration-entities.interface";
@@ -76,3 +76,4 @@ __exportStar(require("./update-turf-transaction-output"), exports);
76
76
  __exportStar(require("./upgrade-renew-subscription.interface"), exports);
77
77
  __exportStar(require("./upgrade-subscription.interface"), exports);
78
78
  __exportStar(require("./userentity-without-password.interface"), exports);
79
+ __exportStar(require("./update-registration-entities.interface"), exports);
@@ -14,7 +14,7 @@ export interface IBookingCancellationEntity extends IEntityAuditColumn {
14
14
  discountedCost: number;
15
15
  amountPaid: number;
16
16
  operationType: BookingHistoryOperationType;
17
- email: string;
17
+ email: string | null;
18
18
  bookingCodes: string;
19
19
  cancellationAmount: number;
20
20
  refundAmount: number;
@@ -17,7 +17,7 @@ export interface IUserEntity extends IEntityAuditColumn, IUserEntityRel {
17
17
  organization_id: number;
18
18
  type: UserType;
19
19
  registrationId: number;
20
- comments: string;
20
+ comments: string | null;
21
21
  imageUrl: string | null;
22
22
  }
23
23
  export interface IUserEntityRel {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "turf-common",
3
- "version": "1.0.16-beta.50",
3
+ "version": "1.0.16-beta.52",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -1,16 +0,0 @@
1
- export * from "./booking-details-status.enum";
2
- export * from "./booking-history-operation-type.enum";
3
- export * from "./configuration-key.enum";
4
- export * from "./cron-jobs-name.enum";
5
- export * from "./cron-jobs-status.enum";
6
- export * from "./faqs-status.enum";
7
- export * from "./modification-discount-policy.enum";
8
- export * from "./organization-status.enum";
9
- export * from "./payment-mode.enum";
10
- export * from "./pitch-status.enum";
11
- export * from "./pricing-plan-status.enum";
12
- export * from "./registration-status-enum";
13
- export * from "./subscription-status.enum";
14
- export * from "./transaction-type.enum";
15
- export * from "./user-status.enum";
16
- export * from "./valid-type.enum";
@@ -1,32 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./booking-details-status.enum"), exports);
18
- __exportStar(require("./booking-history-operation-type.enum"), exports);
19
- __exportStar(require("./configuration-key.enum"), exports);
20
- __exportStar(require("./cron-jobs-name.enum"), exports);
21
- __exportStar(require("./cron-jobs-status.enum"), exports);
22
- __exportStar(require("./faqs-status.enum"), exports);
23
- __exportStar(require("./modification-discount-policy.enum"), exports);
24
- __exportStar(require("./organization-status.enum"), exports);
25
- __exportStar(require("./payment-mode.enum"), exports);
26
- __exportStar(require("./pitch-status.enum"), exports);
27
- __exportStar(require("./pricing-plan-status.enum"), exports);
28
- __exportStar(require("./registration-status-enum"), exports);
29
- __exportStar(require("./subscription-status.enum"), exports);
30
- __exportStar(require("./transaction-type.enum"), exports);
31
- __exportStar(require("./user-status.enum"), exports);
32
- __exportStar(require("./valid-type.enum"), exports);
@@ -1,4 +0,0 @@
1
- export declare enum PricingPlanStatus {
2
- ACTIVE = "active",
3
- DEACTIVE = "deactive"
4
- }
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PricingPlanStatus = void 0;
4
- var PricingPlanStatus;
5
- (function (PricingPlanStatus) {
6
- PricingPlanStatus["ACTIVE"] = "active";
7
- PricingPlanStatus["DEACTIVE"] = "deactive";
8
- })(PricingPlanStatus || (exports.PricingPlanStatus = PricingPlanStatus = {}));
@@ -1,5 +0,0 @@
1
- import { ChargesModel } from "../models/charge-model";
2
- import { IBookingDetailsEntity } from "./entity/booking-details-entity.interface";
3
- export interface IBookingDetailsModel extends IBookingDetailsEntity {
4
- assignCharges(chargeModel: ChargesModel): void;
5
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- import { BookingCode } from "../models/booking-code-model";
2
- import { IBookingsEntity } from "./entity/bookings-entity.interface";
3
- export interface IBookingsEntityModel extends IBookingsEntity {
4
- getTotalCost(): number;
5
- getBookingTimeInMinutes(): number;
6
- isTimeExtended(newBookingEntities: IBookingsEntity[]): boolean;
7
- getBookingCode(): BookingCode;
8
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- import { ICancellationPolicyEntity } from "./entity/cancellation-policy-entity.interface";
2
- export interface ICancellationPolicyModel extends ICancellationPolicyEntity {
3
- unitOfCharges(): string;
4
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
1
- export interface IChargeModel {
2
- initialBookingGrossAmount: number;
3
- additionalBookingGrossAmount: number;
4
- cancelledBookingGrossAmount: number;
5
- totalCancellationCharges: number;
6
- refundPayable: number;
7
- netTotal: number;
8
- amountPaid: number;
9
- amountPayable: number;
10
- totalRefundedAmount: number;
11
- couponCode: string;
12
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- import { IConfigurationsEntity } from "./entity/configurations-entity.interface";
2
- export interface IConfigurationsModel extends IConfigurationsEntity {
3
- isCronJobKey(): boolean;
4
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- export * from "./entity";
2
- export * from "./model";
3
- export * from "./billing-cycle.interface";
4
- export * from "./get-booking-codes-per-thirty-min.interface";
5
- export * from "./get-pricing-plan-by-date-response.interface";
6
- export * from "./get-turf-entity.interface";
7
- export * from "./pitch-slab.interface";
8
- export * from "./pricing-plan.interface";
@@ -1,24 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./entity"), exports);
18
- __exportStar(require("./model"), exports);
19
- __exportStar(require("./billing-cycle.interface"), exports);
20
- __exportStar(require("./get-booking-codes-per-thirty-min.interface"), exports);
21
- __exportStar(require("./get-pricing-plan-by-date-response.interface"), exports);
22
- __exportStar(require("./get-turf-entity.interface"), exports);
23
- __exportStar(require("./pitch-slab.interface"), exports);
24
- __exportStar(require("./pricing-plan.interface"), exports);
@@ -1,3 +0,0 @@
1
- import { IPriceEntity } from "./entity/price-entity.interface";
2
- export interface IPriceModel extends IPriceEntity {
3
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- import { PricingPlanModel } from "../models/pricing-plan-model";
2
- import { IPricingPlanEntity } from "./entity/pricing-plan-entity.interface";
3
- import { GetPricingPlanByDateResponse } from "./get-pricing-plan-by-date-response.interface";
4
- import { IPitchSlab } from "./pitch-slab.interface";
5
- export interface IPricingPlanEntityModel extends IPricingPlanEntity {
6
- getBillingCycleKeys(): string[];
7
- toModel(): PricingPlanModel;
8
- arrayToIndexedObject<T>(arr: T[]): {
9
- [key: string]: T;
10
- };
11
- toObject(): GetPricingPlanByDateResponse;
12
- toPitchSlabs(): IPitchSlab[];
13
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,15 +0,0 @@
1
- import { IBillingCycleModel } from "./billing-cycle.interface";
2
- import { IPitchSlab } from "./pitch-slab.interface";
3
- export interface IPringPlanModel {
4
- id: number;
5
- effective_from_date: number;
6
- effective_to_date: number;
7
- base_price: number;
8
- unit: string;
9
- pitch_slab: {
10
- [key: string]: IPitchSlab;
11
- };
12
- billing_cycle: {
13
- [key: string]: IBillingCycleModel;
14
- };
15
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,20 +0,0 @@
1
- export declare enum SubscriptionStatus {
2
- ACTIVE = "active",
3
- DEACTIVE = "deactive",
4
- SUSPENDED = "suspended",
5
- ONHOLD = "onhold",
6
- UPGRADE = "upgrade",
7
- UPGRADED = "upgraded",
8
- PAYMENT_DONE = "payment_done",
9
- PAYMENT_PENDING = "payment_pending",
10
- DEACTIVE_ACCOUNT_SUSPENDED = "deactive_account_suspended",
11
- DEACTIVE_EXPIRED = "deactive_expired",
12
- UPGRADE_PAYMENT_PENDING = "upgrade_payment_pending",
13
- UPGRADE_PAYMENT_DONE = "upgrade_payment_done",
14
- UPGRADE_RENEW_PAYMENT_PENDING = "upgrade_renew_payment_pending",
15
- UPGRADE_RENEW_PAYMENT_DONE = "upgrade_renew_payment_done",
16
- REJECT = "reject",
17
- SETUP_INVALID = "setup_invalid",
18
- PAYMENT_INVALID = "payment_invalid",
19
- ACCOUNT_SUSPENDED = "account_suspended"
20
- }
@@ -1,24 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SubscriptionStatus = void 0;
4
- var SubscriptionStatus;
5
- (function (SubscriptionStatus) {
6
- SubscriptionStatus["ACTIVE"] = "active";
7
- SubscriptionStatus["DEACTIVE"] = "deactive";
8
- SubscriptionStatus["SUSPENDED"] = "suspended";
9
- SubscriptionStatus["ONHOLD"] = "onhold";
10
- SubscriptionStatus["UPGRADE"] = "upgrade";
11
- SubscriptionStatus["UPGRADED"] = "upgraded";
12
- SubscriptionStatus["PAYMENT_DONE"] = "payment_done";
13
- SubscriptionStatus["PAYMENT_PENDING"] = "payment_pending";
14
- SubscriptionStatus["DEACTIVE_ACCOUNT_SUSPENDED"] = "deactive_account_suspended";
15
- SubscriptionStatus["DEACTIVE_EXPIRED"] = "deactive_expired";
16
- SubscriptionStatus["UPGRADE_PAYMENT_PENDING"] = "upgrade_payment_pending";
17
- SubscriptionStatus["UPGRADE_PAYMENT_DONE"] = "upgrade_payment_done";
18
- SubscriptionStatus["UPGRADE_RENEW_PAYMENT_PENDING"] = "upgrade_renew_payment_pending";
19
- SubscriptionStatus["UPGRADE_RENEW_PAYMENT_DONE"] = "upgrade_renew_payment_done";
20
- SubscriptionStatus["REJECT"] = "reject";
21
- SubscriptionStatus["SETUP_INVALID"] = "setup_invalid";
22
- SubscriptionStatus["PAYMENT_INVALID"] = "payment_invalid";
23
- SubscriptionStatus["ACCOUNT_SUSPENDED"] = "account_suspended";
24
- })(SubscriptionStatus || (exports.SubscriptionStatus = SubscriptionStatus = {}));
@@ -1,7 +0,0 @@
1
- import { IPitchStatus } from "../enums/pitch-status.enum";
2
- import { ITurfEntity } from "./entity/turf-entity.interface";
3
- import { ITurf } from "./get-turf-entity.interface";
4
- export interface ITurfModel extends ITurfEntity {
5
- getPitchStatusCount(): IPitchStatus;
6
- getModifiedTurfEntity(): ITurf;
7
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +0,0 @@
1
- import { IUserEntity } from "./entity/user-entity.interface";
2
- export interface IUserModel extends IUserEntity {
3
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- export * from "./booking-code-model";
2
- export * from "./charge-model";
3
- export * from "./time-slot-model";
4
- export * from "./entity/index";
@@ -1,20 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./booking-code-model"), exports);
18
- __exportStar(require("./charge-model"), exports);
19
- __exportStar(require("./time-slot-model"), exports);
20
- __exportStar(require("./entity/index"), exports);
@@ -1,4 +0,0 @@
1
- export * from "./app-badrequest-exception.type";
2
- export * from "./booking-modification.type";
3
- export * from "./bookingdetails-with-booking.type";
4
- export * from "./date-wise-payment-history-data.types";
@@ -1,20 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./app-badrequest-exception.type"), exports);
18
- __exportStar(require("./booking-modification.type"), exports);
19
- __exportStar(require("./bookingdetails-with-booking.type"), exports);
20
- __exportStar(require("./date-wise-payment-history-data.types"), exports);