@bondsports/types 2.1.6 → 2.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. package/dist/tsconfig.build.tsbuildinfo +1 -1
  2. package/dist/types/attendance/dto/attendance.dto.d.ts +23 -0
  3. package/dist/types/attendance/dto/attendance.dto.js +21 -0
  4. package/dist/types/attendance/dto/attendance.dto.js.map +1 -0
  5. package/dist/types/attendance/dto/index.d.ts +1 -0
  6. package/dist/types/attendance/dto/index.js +18 -0
  7. package/dist/types/attendance/dto/index.js.map +1 -0
  8. package/dist/types/attendance/entities/Attendance.d.ts +16 -0
  9. package/dist/types/attendance/entities/Attendance.js +8 -0
  10. package/dist/types/attendance/entities/Attendance.js.map +1 -0
  11. package/dist/types/attendance/entities/index.d.ts +1 -0
  12. package/dist/types/attendance/entities/index.js +18 -0
  13. package/dist/types/attendance/entities/index.js.map +1 -0
  14. package/dist/types/attendance/index.d.ts +3 -0
  15. package/dist/types/attendance/index.js +20 -0
  16. package/dist/types/attendance/index.js.map +1 -0
  17. package/dist/types/attendance/types/attendance.enums.d.ts +6 -0
  18. package/dist/types/attendance/types/attendance.enums.js +12 -0
  19. package/dist/types/attendance/types/attendance.enums.js.map +1 -0
  20. package/dist/types/attendance/types/index.d.ts +1 -0
  21. package/dist/types/attendance/types/index.js +18 -0
  22. package/dist/types/attendance/types/index.js.map +1 -0
  23. package/dist/types/cart/dto/cart-item.dto.d.ts +2 -2
  24. package/dist/types/cart/dto/cart.dto.d.ts +4 -4
  25. package/dist/types/cart/entities/cart-item.entity.d.ts +2 -2
  26. package/dist/types/cart/types/interfaces/cart.interfaces.d.ts +0 -22
  27. package/dist/types/dto/configuration.dto.d.ts +11 -1
  28. package/dist/types/dto/configuration.dto.js +10 -0
  29. package/dist/types/dto/configuration.dto.js.map +1 -1
  30. package/dist/types/dto/general.dto.d.ts +2 -0
  31. package/dist/types/dto/general.dto.js +2 -1
  32. package/dist/types/dto/general.dto.js.map +1 -1
  33. package/dist/types/entity/EventHistory.d.ts +47 -0
  34. package/dist/types/entity/EventHistory.js +8 -0
  35. package/dist/types/entity/EventHistory.js.map +1 -0
  36. package/dist/types/entity/LineItems.d.ts +2 -2
  37. package/dist/types/entity/SlotHistory.d.ts +52 -0
  38. package/dist/types/entity/SlotHistory.js +8 -0
  39. package/dist/types/entity/SlotHistory.js.map +1 -0
  40. package/dist/types/entity/index.d.ts +2 -0
  41. package/dist/types/entity/index.js +2 -0
  42. package/dist/types/entity/index.js.map +1 -1
  43. package/dist/types/index.d.ts +1 -0
  44. package/dist/types/index.js +1 -0
  45. package/dist/types/index.js.map +1 -1
  46. package/dist/types/invoice/types/consts/invoice.consts.d.ts +2 -2
  47. package/dist/types/invoice/types/consts/invoice.consts.js +2 -2
  48. package/dist/types/invoice/types/consts/invoice.consts.js.map +1 -1
  49. package/dist/types/payment/dto/discount.dto.d.ts +7 -6
  50. package/dist/types/payment/dto/discount.dto.js.map +1 -1
  51. package/dist/types/payment/dto/payment-plan.dto.d.ts +1 -0
  52. package/dist/types/payment/dto/payment-plan.dto.js.map +1 -1
  53. package/dist/types/payment/dto/payment.dto.d.ts +1 -1
  54. package/dist/types/payment/types/enums/discount.enums.d.ts +2 -2
  55. package/dist/types/payment/types/enums/discount.enums.js +8 -10
  56. package/dist/types/payment/types/enums/discount.enums.js.map +1 -1
  57. package/dist/types/payment/types/interfaces/discount.interfaces.d.ts +1 -7
  58. package/dist/types/payment/types/interfaces/discount.interfaces.js.map +1 -1
  59. package/dist/types/payment/types/interfaces/void.interfaces.d.ts +2 -2
  60. package/dist/types/purchase/dto/purchase.dto.js.map +1 -1
  61. package/dist/types/user-activities/dto/user-activities.dto.d.ts +6 -0
  62. package/dist/types/user-activities/dto/user-activities.dto.js +4 -1
  63. package/dist/types/user-activities/dto/user-activities.dto.js.map +1 -1
  64. package/dist/types/user-activities/index.d.ts +1 -0
  65. package/dist/types/user-activities/index.js +1 -0
  66. package/dist/types/user-activities/index.js.map +1 -1
  67. package/dist/types/user-activities/types/index.d.ts +1 -0
  68. package/dist/types/user-activities/types/index.js +18 -0
  69. package/dist/types/user-activities/types/index.js.map +1 -0
  70. package/dist/types/user-activities/types/user-activities.enums.d.ts +3 -0
  71. package/dist/types/user-activities/types/user-activities.enums.js +8 -0
  72. package/dist/types/user-activities/types/user-activities.enums.js.map +1 -0
  73. package/package.json +1 -1
@@ -0,0 +1,23 @@
1
+ import { AttendanceEntityTypeEnum, AttendanceSortByEnum } from '../types/attendance.enums';
2
+ import { PaginationQuery } from '../../dto/general.dto';
3
+ import { OrderByEnum } from '../../services/enums.service';
4
+ export declare class AttendanceDto {
5
+ userId: number;
6
+ checkinDate: Date;
7
+ entityType: AttendanceEntityTypeEnum;
8
+ entityId: number;
9
+ organizationId: number;
10
+ requestingUserId: number;
11
+ facilityId?: number;
12
+ stationId?: number;
13
+ }
14
+ export declare class AttendanceCreateDto {
15
+ entityId: number;
16
+ entityType: AttendanceEntityTypeEnum;
17
+ facilityId?: number;
18
+ stationId?: number;
19
+ }
20
+ export declare class GetUserAttendanceQuery extends PaginationQuery {
21
+ sortBy: AttendanceSortByEnum;
22
+ order: OrderByEnum;
23
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetUserAttendanceQuery = exports.AttendanceCreateDto = exports.AttendanceDto = void 0;
4
+ const attendance_enums_1 = require("../types/attendance.enums");
5
+ const general_dto_1 = require("../../dto/general.dto");
6
+ const enums_service_1 = require("../../services/enums.service");
7
+ class AttendanceDto {
8
+ }
9
+ exports.AttendanceDto = AttendanceDto;
10
+ class AttendanceCreateDto {
11
+ }
12
+ exports.AttendanceCreateDto = AttendanceCreateDto;
13
+ class GetUserAttendanceQuery extends general_dto_1.PaginationQuery {
14
+ constructor() {
15
+ super(...arguments);
16
+ this.sortBy = attendance_enums_1.AttendanceSortByEnum.CHECKIN_DATE;
17
+ this.order = enums_service_1.OrderByEnum.DESC;
18
+ }
19
+ }
20
+ exports.GetUserAttendanceQuery = GetUserAttendanceQuery;
21
+ //# sourceMappingURL=attendance.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attendance.dto.js","sourceRoot":"","sources":["../../../../src/types/attendance/dto/attendance.dto.ts"],"names":[],"mappings":";;;AAAA,gEAA2F;AAC3F,uDAAwD;AACxD,gEAA2D;AAE3D,MAAa,aAAa;CAgBzB;AAhBD,sCAgBC;AAED,MAAa,mBAAmB;CAQ/B;AARD,kDAQC;AAED,MAAa,sBAAuB,SAAQ,6BAAe;IAA3D;;QACC,WAAM,GAAyB,uCAAoB,CAAC,YAAY,CAAC;QAEjE,UAAK,GAAgB,2BAAW,CAAC,IAAI,CAAC;IACvC,CAAC;CAAA;AAJD,wDAIC"}
@@ -0,0 +1 @@
1
+ export * from './attendance.dto';
@@ -0,0 +1,18 @@
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("./attendance.dto"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/attendance/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC"}
@@ -0,0 +1,16 @@
1
+ import { BondBaseEntity } from '../../entity/BondBaseEntity';
2
+ import { User } from '../../user/entities/User';
3
+ import { AttendanceEntityTypeEnum } from '../types/attendance.enums';
4
+ import { Organization } from '../../organization/entities/Organization';
5
+ export declare class Attendance extends BondBaseEntity {
6
+ userId: number;
7
+ user: User;
8
+ checkinDate: Date;
9
+ entityType: AttendanceEntityTypeEnum;
10
+ entityId: number;
11
+ organizationId: number;
12
+ organization: Organization;
13
+ requestingUserId: number;
14
+ facilityId?: number;
15
+ stationId?: number;
16
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Attendance = void 0;
4
+ const BondBaseEntity_1 = require("../../entity/BondBaseEntity");
5
+ class Attendance extends BondBaseEntity_1.BondBaseEntity {
6
+ }
7
+ exports.Attendance = Attendance;
8
+ //# sourceMappingURL=Attendance.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Attendance.js","sourceRoot":"","sources":["../../../../src/types/attendance/entities/Attendance.ts"],"names":[],"mappings":";;;AAAA,gEAA6D;AAM7D,MAAa,UAAW,SAAQ,+BAAc;CAoB7C;AApBD,gCAoBC"}
@@ -0,0 +1 @@
1
+ export * from './Attendance';
@@ -0,0 +1,18 @@
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("./Attendance"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/attendance/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B"}
@@ -0,0 +1,3 @@
1
+ export * from './dto';
2
+ export * from './entities';
3
+ export * from './types';
@@ -0,0 +1,20 @@
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("./dto"), exports);
18
+ __exportStar(require("./entities"), exports);
19
+ __exportStar(require("./types"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/attendance/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,6CAA2B;AAC3B,0CAAwB"}
@@ -0,0 +1,6 @@
1
+ export declare enum AttendanceEntityTypeEnum {
2
+ MEMBERSHIP = 1
3
+ }
4
+ export declare enum AttendanceSortByEnum {
5
+ CHECKIN_DATE = "checkinDate"
6
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AttendanceSortByEnum = exports.AttendanceEntityTypeEnum = void 0;
4
+ var AttendanceEntityTypeEnum;
5
+ (function (AttendanceEntityTypeEnum) {
6
+ AttendanceEntityTypeEnum[AttendanceEntityTypeEnum["MEMBERSHIP"] = 1] = "MEMBERSHIP";
7
+ })(AttendanceEntityTypeEnum = exports.AttendanceEntityTypeEnum || (exports.AttendanceEntityTypeEnum = {}));
8
+ var AttendanceSortByEnum;
9
+ (function (AttendanceSortByEnum) {
10
+ AttendanceSortByEnum["CHECKIN_DATE"] = "checkinDate";
11
+ })(AttendanceSortByEnum = exports.AttendanceSortByEnum || (exports.AttendanceSortByEnum = {}));
12
+ //# sourceMappingURL=attendance.enums.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attendance.enums.js","sourceRoot":"","sources":["../../../../src/types/attendance/types/attendance.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,wBAEX;AAFD,WAAY,wBAAwB;IACnC,mFAAc,CAAA;AACf,CAAC,EAFW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAEnC;AAED,IAAY,oBAEX;AAFD,WAAY,oBAAoB;IAC/B,oDAA4B,CAAA;AAC7B,CAAC,EAFW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAE/B"}
@@ -0,0 +1 @@
1
+ export * from './attendance.enums';
@@ -0,0 +1,18 @@
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("./attendance.enums"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/attendance/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC"}
@@ -4,7 +4,7 @@ import { SimpleProductDto } from '../../product-pricing/dto/product.dto';
4
4
  import { PurchaseResourceDto } from '../../purchase/dto/purchase.dto';
5
5
  import { SimpleUserDto } from '../../user/dto/user.dto';
6
6
  import { CartStatusEnum } from '../types/enums/cart.enums';
7
- import { CartDiscountOnEnum } from '../../payment/types/enums/discount.enums';
7
+ import { DiscountOnEnum } from '../../payment/types/enums/discount.enums';
8
8
  import { ReasonDto } from '../../organization/dto/reason.dto';
9
9
  export declare class CartTaxDto extends OrganizationBaseEntityDto {
10
10
  cartId: number;
@@ -21,7 +21,7 @@ export declare class CartDiscountDto extends OrganizationBaseEntityDto {
21
21
  reasonId?: number;
22
22
  reason?: ReasonDto;
23
23
  percentage?: number;
24
- discountOn: CartDiscountOnEnum;
24
+ discountOn: DiscountOnEnum;
25
25
  quantity?: number;
26
26
  discountAmount: number;
27
27
  unitPrice: number;
@@ -5,7 +5,7 @@ import { CurrencyEnum, PlatformsEnum } from '../../services/enums.service';
5
5
  import { ByOrganizationAndUserDto, SimpleUserDto } from '../../user/dto/user.dto';
6
6
  import { CartStateEnum, CartStatusEnum } from '../types/enums/cart.enums';
7
7
  import { AddCartItemDto, CartDiscountDto, CartItemDto, CartTaxDto, UpdateCartItemDto } from './cart-item.dto';
8
- import { ISetCartDiscount, ISetCartDiscounts } from '../types/interfaces/cart.interfaces';
8
+ import { ISetDiscount, ISetDiscounts } from '../../payment/types/interfaces/discount.interfaces';
9
9
  export declare class CartDto extends OrganizationBaseEntityDto {
10
10
  createdAt: Date;
11
11
  price: number;
@@ -59,13 +59,13 @@ export declare class GetCartsFiltersDto extends PaginationQuery {
59
59
  ownersIds?: number[];
60
60
  shiftId?: number;
61
61
  }
62
- export declare class SetCartDiscountDto implements ISetCartDiscount {
62
+ export declare class SetCartDiscountDto implements ISetDiscount {
63
63
  discountId: number;
64
- cartItemIds?: number[];
64
+ itemsIds?: number[];
65
65
  amount?: number;
66
66
  percentage?: number;
67
67
  }
68
- export declare class SetCartDiscountsDto implements ISetCartDiscounts {
68
+ export declare class SetCartDiscountsDto implements ISetDiscounts {
69
69
  discounts: SetCartDiscountDto[];
70
70
  }
71
71
  export declare class RemoveCartDiscountQueryDto {
@@ -2,7 +2,7 @@ import { EntitlementGroup } from '../../entity/EntitlementGroup';
2
2
  import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
3
3
  import { Reason } from '../../organization/entities/Reason';
4
4
  import { Discount } from '../../payment/entities/Discount';
5
- import { CartDiscountOnEnum } from '../../payment/types/enums/discount.enums';
5
+ import { DiscountOnEnum } from '../../payment/types/enums/discount.enums';
6
6
  import { Product } from '../../product-pricing/entities/Product';
7
7
  import { PurchaseResourceDto } from '../../purchase/dto/purchase.dto';
8
8
  import { ProductTypesEnum } from '../../services/enums.service';
@@ -38,7 +38,7 @@ export declare class CartItem extends OrganizationConnectionBaseEntity {
38
38
  discount?: Discount;
39
39
  resources?: PurchaseResourceDto[];
40
40
  actionId?: string;
41
- discountOn?: CartDiscountOnEnum;
41
+ discountOn?: DiscountOnEnum;
42
42
  reasonId?: number;
43
43
  reason?: Reason;
44
44
  discountAmount?: number;
@@ -4,8 +4,6 @@ import { CurrencyEnum, PlatformsEnum } from '../../../services/enums.service';
4
4
  import { IPricesOfProductsResults } from '../../../services/interfaces.service';
5
5
  import { ResourceDto } from '../../../spaces/dto/resource.dto';
6
6
  import { Cart } from '../../entities/cart.entity';
7
- import { CartDiscountOnEnum } from '../../../payment/types/enums/discount.enums';
8
- import { SimpleDiscountDto } from '../../../payment/dto/discount.dto';
9
7
  export interface ICreateCart {
10
8
  platform: PlatformsEnum;
11
9
  ownerId?: number;
@@ -52,23 +50,3 @@ export interface IDiscountItem {
52
50
  amount: number;
53
51
  percentage?: number;
54
52
  }
55
- export interface DiscountCartItems {
56
- discount: SimpleDiscountDto;
57
- cartItemIds: number[];
58
- discountOn: CartDiscountOnEnum;
59
- amount?: number;
60
- percentage?: number;
61
- }
62
- export interface ISetCartDiscounts {
63
- discounts: ISetCartDiscount[];
64
- }
65
- export interface ISetCartDiscount {
66
- discountId: number;
67
- discountOn?: CartDiscountOnEnum;
68
- cartItemIds?: number[];
69
- amount?: number;
70
- percentage?: number;
71
- allowZeroAmount?: boolean;
72
- isTaxIncluded?: boolean;
73
- reasonId?: number;
74
- }
@@ -3,5 +3,15 @@ export declare enum EConfigurationKeys {
3
3
  }
4
4
  export declare enum EFailedPaymentReasons {
5
5
  CARD_BLOCKED = "card_blocked_by_bond",
6
- UNKNOWN = "unknown"
6
+ UNKNOWN = "unknown",
7
+ GENERIC_DECLINE = "generic_decline",
8
+ INSUFFICIENT_FUNDS = "insufficient_funds",
9
+ LOST_CARD = "lost_card",
10
+ STOLEN_CARD = "stolen_card",
11
+ EXPIRED_CARD = "expired_card",
12
+ INCORRECT_CVC = "incorrect_cvc",
13
+ PROCESSING_ERROR = "processing_error",
14
+ INCORRECT_NUMBER = "incorrect_number",
15
+ CARD_VELOCITY_EXCEEDED = "card_velocity_exceeded",
16
+ RESTRICTED_CARD = "restricted_card"
7
17
  }
@@ -9,5 +9,15 @@ var EFailedPaymentReasons;
9
9
  (function (EFailedPaymentReasons) {
10
10
  EFailedPaymentReasons["CARD_BLOCKED"] = "card_blocked_by_bond";
11
11
  EFailedPaymentReasons["UNKNOWN"] = "unknown";
12
+ EFailedPaymentReasons["GENERIC_DECLINE"] = "generic_decline";
13
+ EFailedPaymentReasons["INSUFFICIENT_FUNDS"] = "insufficient_funds";
14
+ EFailedPaymentReasons["LOST_CARD"] = "lost_card";
15
+ EFailedPaymentReasons["STOLEN_CARD"] = "stolen_card";
16
+ EFailedPaymentReasons["EXPIRED_CARD"] = "expired_card";
17
+ EFailedPaymentReasons["INCORRECT_CVC"] = "incorrect_cvc";
18
+ EFailedPaymentReasons["PROCESSING_ERROR"] = "processing_error";
19
+ EFailedPaymentReasons["INCORRECT_NUMBER"] = "incorrect_number";
20
+ EFailedPaymentReasons["CARD_VELOCITY_EXCEEDED"] = "card_velocity_exceeded";
21
+ EFailedPaymentReasons["RESTRICTED_CARD"] = "restricted_card";
12
22
  })(EFailedPaymentReasons = exports.EFailedPaymentReasons || (exports.EFailedPaymentReasons = {}));
13
23
  //# sourceMappingURL=configuration.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"configuration.dto.js","sourceRoot":"","sources":["../../../src/types/dto/configuration.dto.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAEX;AAFD,WAAY,kBAAkB;IAC7B,uEAAiD,CAAA;AAClD,CAAC,EAFW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAE7B;AAED,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAChC,8DAAqC,CAAA;IACrC,4CAAmB,CAAA;AACpB,CAAC,EAHW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAGhC"}
1
+ {"version":3,"file":"configuration.dto.js","sourceRoot":"","sources":["../../../src/types/dto/configuration.dto.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAEX;AAFD,WAAY,kBAAkB;IAC7B,uEAAiD,CAAA;AAClD,CAAC,EAFW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAE7B;AAED,IAAY,qBAaX;AAbD,WAAY,qBAAqB;IAChC,8DAAqC,CAAA;IACrC,4CAAmB,CAAA;IACnB,4DAAmC,CAAA;IACnC,kEAAyC,CAAA;IACzC,gDAAuB,CAAA;IACvB,oDAA2B,CAAA;IAC3B,sDAA6B,CAAA;IAC7B,wDAA+B,CAAA;IAC/B,8DAAqC,CAAA;IACrC,8DAAqC,CAAA;IACrC,0EAAiD,CAAA;IACjD,4DAAmC,CAAA;AACpC,CAAC,EAbW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAahC"}
@@ -11,6 +11,8 @@ export declare class PaginationQuery {
11
11
  constructor(query?: {
12
12
  page?: number;
13
13
  itemsPerPage?: number;
14
+ min?: number;
15
+ max?: number;
14
16
  });
15
17
  page?: number;
16
18
  itemsPerPage?: number;
@@ -12,10 +12,11 @@ exports.MINIMUM_ALLOWED_PERCENTAGE = 0.01;
12
12
  exports.HUNDRED_PERCENT = 100;
13
13
  class PaginationQuery {
14
14
  constructor(query) {
15
+ var _a, _b;
15
16
  this.page = exports.DEFAULT_PAGE;
16
17
  this.itemsPerPage = exports.DEFAULT_MINIMUM_ITEMS_PER_PAGE;
17
18
  this.page = (query === null || query === void 0 ? void 0 : query.page) || exports.DEFAULT_PAGE;
18
- this.itemsPerPage = Math.min(exports.DEFAULT_MAXIMUM_ITEMS_PER_PAGE, (query === null || query === void 0 ? void 0 : query.itemsPerPage) || exports.DEFAULT_MINIMUM_ITEMS_PER_PAGE);
19
+ this.itemsPerPage = Math.min((_a = query === null || query === void 0 ? void 0 : query.max) !== null && _a !== void 0 ? _a : exports.DEFAULT_MAXIMUM_ITEMS_PER_PAGE, (query === null || query === void 0 ? void 0 : query.itemsPerPage) || ((_b = query === null || query === void 0 ? void 0 : query.min) !== null && _b !== void 0 ? _b : exports.DEFAULT_MINIMUM_ITEMS_PER_PAGE));
19
20
  }
20
21
  }
21
22
  exports.PaginationQuery = PaginationQuery;
@@ -1 +1 @@
1
- {"version":3,"file":"general.dto.js","sourceRoot":"","sources":["../../../src/types/dto/general.dto.ts"],"names":[],"mappings":";;;AACA,MAAa,aAAa;CAEzB;AAFD,sCAEC;AAEY,QAAA,8BAA8B,GAAG,GAAG,CAAC;AACrC,QAAA,8BAA8B,GAAG,EAAE,CAAC;AACpC,QAAA,YAAY,GAAG,CAAC,CAAC;AAEjB,QAAA,qBAAqB,GAAG,GAAG,CAAC;AAC5B,QAAA,0BAA0B,GAAG,IAAI,CAAC;AAClC,QAAA,eAAe,GAAG,GAAG,CAAC;AAEnC,MAAa,eAAe;IAC3B,YAAY,KAAgD;QAK5D,SAAI,GAAI,oBAAY,CAAC;QAErB,iBAAY,GAAI,sCAA8B,CAAC;QAN9C,IAAI,CAAC,IAAI,GAAG,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,KAAI,oBAAY,CAAC;QACxC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,GAAG,CAAC,sCAA8B,EAAE,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,YAAY,KAAI,sCAA8B,CAAC,CAAC;IACrH,CAAC;CAKD;AATD,0CASC;AAED,MAAa,KAAK;CAEjB;AAFD,sBAEC;AAED,MAAa,oBAAoB;IAAjC;QACC,cAAS,GAAG,CAAC,CAAC;QAEd,YAAO,GAAG,CAAC,CAAC;QAEZ,iBAAY,GAAG,GAAG,CAAC;IACpB,CAAC;CAAA;AAND,oDAMC;AAED,MAAa,iBAAiB;CAQ7B;AARD,8CAQC;AAED,MAAa,mBAAmB;IAK/B,YAAY,IAAS,EAAE,IAAuB;QAC7C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IAClB,CAAC;CACD;AATD,kDASC;AAED,MAAa,KAAK;CAEjB;AAFD,sBAEC;AAED,MAAa,YAAa,SAAQ,KAAK;CAEtC;AAFD,oCAEC;AAED,MAAa,uBAAuB;CAEnC;AAFD,0DAEC;AAED,MAAa,MAAM;CAElB;AAFD,wBAEC;AAED,MAAa,WAAW;CAEvB;AAFD,kCAEC;AAED,MAAa,kBAAkB;CAM9B;AAND,gDAMC;AAED,MAAa,kBAAkB;CAE9B;AAFD,gDAEC"}
1
+ {"version":3,"file":"general.dto.js","sourceRoot":"","sources":["../../../src/types/dto/general.dto.ts"],"names":[],"mappings":";;;AACA,MAAa,aAAa;CAEzB;AAFD,sCAEC;AAEY,QAAA,8BAA8B,GAAG,GAAG,CAAC;AACrC,QAAA,8BAA8B,GAAG,EAAE,CAAC;AACpC,QAAA,YAAY,GAAG,CAAC,CAAC;AAEjB,QAAA,qBAAqB,GAAG,GAAG,CAAC;AAC5B,QAAA,0BAA0B,GAAG,IAAI,CAAC;AAClC,QAAA,eAAe,GAAG,GAAG,CAAC;AAEnC,MAAa,eAAe;IAC3B,YAAY,KAA4E;;QAQxF,SAAI,GAAI,oBAAY,CAAC;QAErB,iBAAY,GAAI,sCAA8B,CAAC;QAT9C,IAAI,CAAC,IAAI,GAAG,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,KAAI,oBAAY,CAAC;QACxC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,GAAG,CAC3B,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,GAAG,mCAAI,sCAA8B,EAC5C,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,YAAY,KAAI,CAAC,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,GAAG,mCAAI,sCAA8B,CAAC,CACrE,CAAC;IACH,CAAC;CAKD;AAZD,0CAYC;AAED,MAAa,KAAK;CAEjB;AAFD,sBAEC;AAED,MAAa,oBAAoB;IAAjC;QACC,cAAS,GAAG,CAAC,CAAC;QAEd,YAAO,GAAG,CAAC,CAAC;QAEZ,iBAAY,GAAG,GAAG,CAAC;IACpB,CAAC;CAAA;AAND,oDAMC;AAED,MAAa,iBAAiB;CAQ7B;AARD,8CAQC;AAED,MAAa,mBAAmB;IAK/B,YAAY,IAAS,EAAE,IAAuB;QAC7C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IAClB,CAAC;CACD;AATD,kDASC;AAED,MAAa,KAAK;CAEjB;AAFD,sBAEC;AAED,MAAa,YAAa,SAAQ,KAAK;CAEtC;AAFD,oCAEC;AAED,MAAa,uBAAuB;CAEnC;AAFD,0DAEC;AAED,MAAa,MAAM;CAElB;AAFD,wBAEC;AAED,MAAa,WAAW;CAEvB;AAFD,kCAEC;AAED,MAAa,kBAAkB;CAM9B;AAND,gDAMC;AAED,MAAa,kBAAkB;CAE9B;AAFD,gDAEC"}
@@ -0,0 +1,47 @@
1
+ import { OrganizationConnectionBaseEntity } from './OrganizationConnectionBaseEntity';
2
+ import { EventStatusEnum } from '../services/enums.service';
3
+ export declare class EventHistory extends OrganizationConnectionBaseEntity {
4
+ eventId: number;
5
+ title?: string;
6
+ description?: string;
7
+ eventType?: number;
8
+ startDate?: Date;
9
+ endDate?: Date;
10
+ price?: number;
11
+ venueName?: string;
12
+ status: EventStatusEnum;
13
+ private?: boolean;
14
+ guestsCanInvite?: boolean;
15
+ venueId?: number;
16
+ addressId?: number;
17
+ participantsLimit?: number;
18
+ parentId?: number;
19
+ parentType?: string;
20
+ timezone?: string;
21
+ eventSubType?: string;
22
+ eventSubId?: number;
23
+ metaData?: any;
24
+ groupingId?: string;
25
+ redirectUri?: string;
26
+ externalId?: string;
27
+ paymentSettings?: any;
28
+ whoCanJoin?: string;
29
+ spaceId?: number;
30
+ bookedSessionId?: number;
31
+ creatorId?: number;
32
+ creatorType?: string;
33
+ userCreatorId?: number;
34
+ ownerId?: number;
35
+ sports?: number[];
36
+ isVerified?: boolean;
37
+ mainMediaId?: number;
38
+ minAge?: number;
39
+ maxAge?: number;
40
+ gender?: number;
41
+ questionnaireId?: number;
42
+ deletedAt?: Date;
43
+ publicNotes?: string;
44
+ privateNotes?: string;
45
+ colorCodeId?: number;
46
+ parentHistoryId?: number;
47
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EventHistory = void 0;
4
+ const OrganizationConnectionBaseEntity_1 = require("./OrganizationConnectionBaseEntity");
5
+ class EventHistory extends OrganizationConnectionBaseEntity_1.OrganizationConnectionBaseEntity {
6
+ }
7
+ exports.EventHistory = EventHistory;
8
+ //# sourceMappingURL=EventHistory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EventHistory.js","sourceRoot":"","sources":["../../../src/types/entity/EventHistory.ts"],"names":[],"mappings":";;;AAAA,yFAAsF;AAItF,MAAa,YAAa,SAAQ,mEAAgC;CAsFjE;AAtFD,oCAsFC"}
@@ -2,7 +2,7 @@ import { Reason } from '../organization/entities/Reason';
2
2
  import { ItemDiscountDto, SimpleDiscountDto } from '../payment/dto/discount.dto';
3
3
  import { Discount } from '../payment/entities/Discount';
4
4
  import { Payment } from '../payment/entities/Payment';
5
- import { DiscountOnEnum } from '../payment/types/enums/discount.enums';
5
+ import { InvoiceDiscountOnEnum } from '../payment/types/enums/discount.enums';
6
6
  import { PaymentStatusEnum } from '../payment/types/enums/payment.enums';
7
7
  import { Product } from '../product-pricing/entities/Product';
8
8
  import { LineItemsStatusEnum, ProductTypesEnum } from '../services/enums.service';
@@ -50,7 +50,7 @@ export declare class LineItems extends OrganizationConnectionBaseEntity {
50
50
  discountId?: number;
51
51
  discount?: Discount | SimpleDiscountDto;
52
52
  discountPercentage?: number;
53
- discountOn?: DiscountOnEnum;
53
+ discountOn?: InvoiceDiscountOnEnum;
54
54
  actionId?: string;
55
55
  reasonId?: number;
56
56
  reason?: Reason;
@@ -0,0 +1,52 @@
1
+ import { OrganizationConnectionBaseEntity } from './OrganizationConnectionBaseEntity';
2
+ import { ReservationPaymentStatusEnum, ReservationStatusEnum, SlotTypeEnum } from '../services/enums.service';
3
+ import { AddonMetadata } from '../reservations/interfaces/reservation';
4
+ export declare class SlotHistory extends OrganizationConnectionBaseEntity {
5
+ slotId: number;
6
+ reservationId?: number;
7
+ title?: string;
8
+ creatorId?: number;
9
+ creatorType?: string;
10
+ userCreatorId?: number;
11
+ startDate: Date;
12
+ endDate: Date;
13
+ startTime: string;
14
+ endTime: string;
15
+ timezone?: string;
16
+ spaceId?: number;
17
+ deletedAt?: Date;
18
+ publicNotes?: string;
19
+ privateNotes?: string;
20
+ slotType: SlotTypeEnum;
21
+ productsUserId?: number;
22
+ addonsProductUserIds?: number[];
23
+ addonsMetadata: AddonMetadata[];
24
+ segmentId: number;
25
+ eventId: number;
26
+ sportIds: number[];
27
+ parentSlotId?: number;
28
+ maintenanceDurationdurationType: string;
29
+ maintenanceTiming: number;
30
+ durationValue: number;
31
+ seriesId?: number;
32
+ invoiceId?: number;
33
+ paymentStatus: ReservationPaymentStatusEnum;
34
+ approvalStatus?: ReservationStatusEnum;
35
+ displayName?: string;
36
+ internalName?: string;
37
+ activityTypes?: number[];
38
+ hourlyRate: number;
39
+ totalPrice: number;
40
+ isConsumerVisible: boolean;
41
+ isMonitorVisible: boolean;
42
+ isPrivate?: boolean;
43
+ occurrence?: number;
44
+ productMetadata?: {
45
+ productId: number;
46
+ price: number;
47
+ };
48
+ slotDurationType: string;
49
+ previousProductUsersIds?: number[];
50
+ colorCodeId?: number;
51
+ parentHistoryId?: number;
52
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SlotHistory = void 0;
4
+ const OrganizationConnectionBaseEntity_1 = require("./OrganizationConnectionBaseEntity");
5
+ class SlotHistory extends OrganizationConnectionBaseEntity_1.OrganizationConnectionBaseEntity {
6
+ }
7
+ exports.SlotHistory = SlotHistory;
8
+ //# sourceMappingURL=SlotHistory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SlotHistory.js","sourceRoot":"","sources":["../../../src/types/entity/SlotHistory.ts"],"names":[],"mappings":";;;AACA,yFAAsF;AAItF,MAAa,WAAY,SAAQ,mEAAgC;CAwFhE;AAxFD,kCAwFC"}
@@ -16,6 +16,7 @@ export * from './EmergencyContact';
16
16
  export * from './EntitlementGroup';
17
17
  export * from './EntitlementTerms';
18
18
  export * from './EventAttendees';
19
+ export * from './EventHistory';
19
20
  export * from './Events';
20
21
  export * from './Facility';
21
22
  export * from './FacilityToResource';
@@ -54,6 +55,7 @@ export * from './SeasonAttendees';
54
55
  export * from './SeasonDivisions';
55
56
  export * from './SeasonPool';
56
57
  export * from './SeasonTeam';
58
+ export * from './SlotHistory';
57
59
  export * from './Station';
58
60
  export * from './StationToSubcategory';
59
61
  export * from './Subcategory';
@@ -32,6 +32,7 @@ __exportStar(require("./EmergencyContact"), exports);
32
32
  __exportStar(require("./EntitlementGroup"), exports);
33
33
  __exportStar(require("./EntitlementTerms"), exports);
34
34
  __exportStar(require("./EventAttendees"), exports);
35
+ __exportStar(require("./EventHistory"), exports);
35
36
  __exportStar(require("./Events"), exports);
36
37
  __exportStar(require("./Facility"), exports);
37
38
  __exportStar(require("./FacilityToResource"), exports);
@@ -70,6 +71,7 @@ __exportStar(require("./SeasonAttendees"), exports);
70
71
  __exportStar(require("./SeasonDivisions"), exports);
71
72
  __exportStar(require("./SeasonPool"), exports);
72
73
  __exportStar(require("./SeasonTeam"), exports);
74
+ __exportStar(require("./SlotHistory"), exports);
73
75
  __exportStar(require("./Station"), exports);
74
76
  __exportStar(require("./StationToSubcategory"), exports);
75
77
  __exportStar(require("./Subcategory"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/entity/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,kDAAgC;AAChC,4CAA0B;AAC1B,gDAA8B;AAC9B,mDAAiC;AACjC,uDAAqC;AACrC,8CAA4B;AAC5B,kDAAgC;AAChC,+CAA6B;AAC7B,+CAA6B;AAC7B,6CAA2B;AAC3B,8DAA4C;AAC5C,kDAAgC;AAChC,6CAA2B;AAC3B,qDAAmC;AACnC,qDAAmC;AACnC,qDAAmC;AACnC,mDAAiC;AACjC,2CAAyB;AACzB,6CAA2B;AAC3B,uDAAqC;AACrC,kDAAgC;AAChC,0CAAwB;AACxB,sDAAoC;AACpC,sDAAoC;AACpC,4CAA0B;AAC1B,iDAA+B;AAC/B,gDAA8B;AAC9B,qDAAmC;AACnC,2CAAyB;AACzB,iDAA+B;AAC/B,oDAAkC;AAClC,8CAA4B;AAC5B,mDAAiC;AACjC,+CAA6B;AAC7B,qDAAmC;AACnC,8DAA4C;AAC5C,gDAA8B;AAC9B,qEAAmD;AACnD,8CAA4B;AAC5B,kDAAgC;AAChC,mDAAiC;AACjC,oDAAkC;AAClC,2DAAyC;AACzC,sDAAoC;AACpC,iEAA+C;AAC/C,kDAAgC;AAChC,uDAAqC;AACrC,2DAAyC;AACzC,iDAA+B;AAC/B,kDAAgC;AAChC,2CAAyB;AACzB,oDAAkC;AAClC,oDAAkC;AAClC,+CAA6B;AAC7B,+CAA6B;AAC7B,4CAA0B;AAC1B,yDAAuC;AACvC,gDAA8B;AAC9B,yCAAuB;AACvB,+CAA6B;AAC7B,+CAA6B;AAC7B,qDAAmC;AACnC,uDAAqC;AACrC,wDAAsC;AACtC,iDAA+B;AAC/B,kDAAgC;AAChC,6CAA2B;AAC3B,qEAAmD;AACnD,wDAAsC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/entity/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,kDAAgC;AAChC,4CAA0B;AAC1B,gDAA8B;AAC9B,mDAAiC;AACjC,uDAAqC;AACrC,8CAA4B;AAC5B,kDAAgC;AAChC,+CAA6B;AAC7B,+CAA6B;AAC7B,6CAA2B;AAC3B,8DAA4C;AAC5C,kDAAgC;AAChC,6CAA2B;AAC3B,qDAAmC;AACnC,qDAAmC;AACnC,qDAAmC;AACnC,mDAAiC;AACjC,iDAA+B;AAC/B,2CAAyB;AACzB,6CAA2B;AAC3B,uDAAqC;AACrC,kDAAgC;AAChC,0CAAwB;AACxB,sDAAoC;AACpC,sDAAoC;AACpC,4CAA0B;AAC1B,iDAA+B;AAC/B,gDAA8B;AAC9B,qDAAmC;AACnC,2CAAyB;AACzB,iDAA+B;AAC/B,oDAAkC;AAClC,8CAA4B;AAC5B,mDAAiC;AACjC,+CAA6B;AAC7B,qDAAmC;AACnC,8DAA4C;AAC5C,gDAA8B;AAC9B,qEAAmD;AACnD,8CAA4B;AAC5B,kDAAgC;AAChC,mDAAiC;AACjC,oDAAkC;AAClC,2DAAyC;AACzC,sDAAoC;AACpC,iEAA+C;AAC/C,kDAAgC;AAChC,uDAAqC;AACrC,2DAAyC;AACzC,iDAA+B;AAC/B,kDAAgC;AAChC,2CAAyB;AACzB,oDAAkC;AAClC,oDAAkC;AAClC,+CAA6B;AAC7B,+CAA6B;AAC7B,gDAA8B;AAC9B,4CAA0B;AAC1B,yDAAuC;AACvC,gDAA8B;AAC9B,yCAAuB;AACvB,+CAA6B;AAC7B,+CAA6B;AAC7B,qDAAmC;AACnC,uDAAqC;AACrC,wDAAsC;AACtC,iDAA+B;AAC/B,kDAAgC;AAChC,6CAA2B;AAC3B,qEAAmD;AACnD,wDAAsC"}
@@ -1,5 +1,6 @@
1
1
  export * from './activities';
2
2
  export * from './addons';
3
+ export * from './attendance';
3
4
  export * from './cart';
4
5
  export * from './customers';
5
6
  export * from './dto';
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./activities"), exports);
18
18
  __exportStar(require("./addons"), exports);
19
+ __exportStar(require("./attendance"), exports);
19
20
  __exportStar(require("./cart"), exports);
20
21
  __exportStar(require("./customers"), exports);
21
22
  __exportStar(require("./dto"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,2CAAyB;AACzB,yCAAuB;AACvB,8CAA4B;AAC5B,wCAAsB;AACtB,2CAAyB;AACzB,2CAAyB;AACzB,kDAAgC;AAChC,wCAAsB;AACtB,wDAAsC;AACtC,6CAA2B;AAC3B,2CAAyB;AACzB,gDAA8B;AAC9B,4CAA0B;AAC1B,2CAAyB;AACzB,0CAAwB;AACxB,0CAAwB;AACxB,+CAA6B;AAC7B,2CAAyB;AACzB,mDAAiC;AACjC,0CAAwB;AACxB,kDAAgC;AAChC,iDAA+B;AAC/B,4CAA0B;AAC1B,4CAA0B;AAC1B,oDAAkC;AAClC,6CAA2B;AAC3B,qDAAmC;AACnC,+CAA6B;AAC7B,6CAA2B;AAC3B,mDAAiC;AACjC,iDAA+B;AAC/B,sDAAoC;AACpC,0CAAwB;AACxB,6CAA2B;AAC3B,2CAAyB;AACzB,2CAAyB;AACzB,yCAAuB;AACvB,oDAAkC;AAClC,yCAAuB;AACvB,4CAA0B;AAC1B,6CAA2B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,2CAAyB;AACzB,+CAA6B;AAC7B,yCAAuB;AACvB,8CAA4B;AAC5B,wCAAsB;AACtB,2CAAyB;AACzB,2CAAyB;AACzB,kDAAgC;AAChC,wCAAsB;AACtB,wDAAsC;AACtC,6CAA2B;AAC3B,2CAAyB;AACzB,gDAA8B;AAC9B,4CAA0B;AAC1B,2CAAyB;AACzB,0CAAwB;AACxB,0CAAwB;AACxB,+CAA6B;AAC7B,2CAAyB;AACzB,mDAAiC;AACjC,0CAAwB;AACxB,kDAAgC;AAChC,iDAA+B;AAC/B,4CAA0B;AAC1B,4CAA0B;AAC1B,oDAAkC;AAClC,6CAA2B;AAC3B,qDAAmC;AACnC,+CAA6B;AAC7B,6CAA2B;AAC3B,mDAAiC;AACjC,iDAA+B;AAC/B,sDAAoC;AACpC,0CAAwB;AACxB,6CAA2B;AAC3B,2CAAyB;AACzB,2CAAyB;AACzB,yCAAuB;AACvB,oDAAkC;AAClC,yCAAuB;AACvB,4CAA0B;AAC1B,6CAA2B"}
@@ -1,4 +1,4 @@
1
- import { DiscountOnEnum } from '../../../payment/types/enums/discount.enums';
1
+ import { InvoiceDiscountOnEnum } from '../../../payment/types/enums/discount.enums';
2
2
  export declare const discountOnMapper: {
3
- [key: string]: DiscountOnEnum;
3
+ [key: string]: InvoiceDiscountOnEnum;
4
4
  };
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.discountOnMapper = void 0;
4
4
  const discount_enums_1 = require("../../../payment/types/enums/discount.enums");
5
5
  exports.discountOnMapper = {
6
- [discount_enums_1.CartDiscountOnEnum.ITEM]: discount_enums_1.DiscountOnEnum.LINE_ITEM,
7
- [discount_enums_1.CartDiscountOnEnum.ALL]: discount_enums_1.DiscountOnEnum.INVOICE,
6
+ [discount_enums_1.DiscountOnEnum.ITEM]: discount_enums_1.InvoiceDiscountOnEnum.LINE_ITEM,
7
+ [discount_enums_1.DiscountOnEnum.ALL]: discount_enums_1.InvoiceDiscountOnEnum.INVOICE,
8
8
  };
9
9
  //# sourceMappingURL=invoice.consts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"invoice.consts.js","sourceRoot":"","sources":["../../../../../src/types/invoice/types/consts/invoice.consts.ts"],"names":[],"mappings":";;;AAAA,gFAAiG;AAEpF,QAAA,gBAAgB,GAAsC;IAClE,CAAC,mCAAkB,CAAC,IAAI,CAAC,EAAE,+BAAc,CAAC,SAAS;IACnD,CAAC,mCAAkB,CAAC,GAAG,CAAC,EAAE,+BAAc,CAAC,OAAO;CAChD,CAAC"}
1
+ {"version":3,"file":"invoice.consts.js","sourceRoot":"","sources":["../../../../../src/types/invoice/types/consts/invoice.consts.ts"],"names":[],"mappings":";;;AAAA,gFAAoG;AAEvF,QAAA,gBAAgB,GAA6C;IACzE,CAAC,+BAAc,CAAC,IAAI,CAAC,EAAE,sCAAqB,CAAC,SAAS;IACtD,CAAC,+BAAc,CAAC,GAAG,CAAC,EAAE,sCAAqB,CAAC,OAAO;CACnD,CAAC"}