@bondsports/types 2.2.245 → 2.2.247

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. package/dist/tsconfig.build.tsbuildinfo +1 -1
  2. package/dist/types/cart/entities/cart-item.entity.d.ts +3 -3
  3. package/dist/types/cart/types/classes/cart.classes.d.ts +9 -0
  4. package/dist/types/cart/types/classes/cart.classes.js +7 -0
  5. package/dist/types/cart/types/classes/cart.classes.js.map +1 -0
  6. package/dist/types/cart/types/classes/index.d.ts +1 -0
  7. package/dist/types/cart/types/classes/index.js +18 -0
  8. package/dist/types/cart/types/classes/index.js.map +1 -0
  9. package/dist/types/cart/types/index.d.ts +1 -0
  10. package/dist/types/cart/types/index.js +1 -0
  11. package/dist/types/cart/types/index.js.map +1 -1
  12. package/dist/types/cart/types/interfaces/cart.interfaces.d.ts +2 -2
  13. package/dist/types/entity/LineItems.d.ts +3 -0
  14. package/dist/types/entity/LineItems.js.map +1 -1
  15. package/dist/types/invoice/types/interfaces/invoice.interfaces.d.ts +2 -0
  16. package/dist/types/invoice/types/interfaces/invoice.interfaces.js.map +1 -1
  17. package/dist/types/membership/types/membership.interfaces.d.ts +0 -1
  18. package/dist/types/notifications/dto/index.d.ts +1 -0
  19. package/dist/types/notifications/dto/index.js +1 -0
  20. package/dist/types/notifications/dto/index.js.map +1 -1
  21. package/dist/types/notifications/dto/types/enums/index.d.ts +1 -0
  22. package/dist/types/notifications/dto/types/enums/index.js +18 -0
  23. package/dist/types/notifications/dto/types/enums/index.js.map +1 -0
  24. package/dist/types/notifications/dto/types/enums/notification.enums.d.ts +2 -0
  25. package/dist/types/notifications/dto/types/enums/notification.enums.js +8 -0
  26. package/dist/types/notifications/dto/types/enums/notification.enums.js.map +1 -0
  27. package/dist/types/notifications/dto/types/index.d.ts +1 -0
  28. package/dist/types/notifications/dto/types/index.js +18 -0
  29. package/dist/types/notifications/dto/types/index.js.map +1 -0
  30. package/dist/types/payment/dto/payment-plan.dto.d.ts +3 -2
  31. package/dist/types/payment/entities/ProductPaymentPlan.d.ts +3 -2
  32. package/dist/types/payment/types/enums/payment-plan.enums.d.ts +0 -7
  33. package/dist/types/payment/types/enums/payment-plan.enums.js +1 -9
  34. package/dist/types/payment/types/enums/payment-plan.enums.js.map +1 -1
  35. package/dist/types/reservations/dto/addon.dto.d.ts +2 -0
  36. package/dist/types/reservations/dto/addon.dto.js.map +1 -1
  37. package/dist/types/reservations/types/classes/addon.classes.d.ts +1 -0
  38. package/dist/types/reservations/types/classes/addon.classes.js.map +1 -1
  39. package/dist/types/reservations/types/interfaces/reservation.interfaces.d.ts +1 -1
  40. package/dist/types/reservations/types/interfaces/reservation.interfaces.js.map +1 -1
  41. package/dist/types/services/interfaces.service.d.ts +2 -2
  42. package/package.json +1 -1
@@ -9,8 +9,8 @@ import { Product } from '../../product-pricing/entities/Product';
9
9
  import { PurchaseResourceDto } from '../../purchase/dto/purchase.dto';
10
10
  import { ProductTypesEnum } from '../../services/enums.service';
11
11
  import { User } from '../../user/entities/User';
12
+ import { ItemPriceMetadata } from '../types/classes/cart.classes';
12
13
  import { CartStatusEnum } from '../types/enums/cart.enums';
13
- import { ICartItemPriceMetadata } from '../types/interfaces/cart.interfaces';
14
14
  import { Cart } from './cart.entity';
15
15
  export declare class CartItem extends OrganizationConnectionBaseEntity {
16
16
  deletedAt?: Date;
@@ -44,14 +44,14 @@ export declare class CartItem extends OrganizationConnectionBaseEntity {
44
44
  actionId?: string;
45
45
  discountOn?: DiscountOnEnum;
46
46
  reasonId?: number;
47
+ priceId?: number;
48
+ prices?: ItemPriceMetadata[];
47
49
  reason?: Reason;
48
50
  discountAmount?: number;
49
51
  subtotal?: number;
50
52
  totalPrice?: number;
51
53
  overrideTotalPrice?: number;
52
54
  totalUnitPrice: number;
53
- priceId?: number;
54
55
  activityTimes?: ActivityTimes[];
55
56
  schedules?: ScheduleDto[];
56
- prices?: ICartItemPriceMetadata[];
57
57
  }
@@ -0,0 +1,9 @@
1
+ import { ActivityTimes } from '../../../entity/ActivityTimes';
2
+ import { IItemPriceMetadata } from '../interfaces/cart.interfaces';
3
+ export declare class ItemPriceMetadata implements IItemPriceMetadata {
4
+ priceId: number;
5
+ price: number;
6
+ quantity?: number;
7
+ totalPrice?: number;
8
+ activityTimes?: ActivityTimes[];
9
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ItemPriceMetadata = void 0;
4
+ class ItemPriceMetadata {
5
+ }
6
+ exports.ItemPriceMetadata = ItemPriceMetadata;
7
+ //# sourceMappingURL=cart.classes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cart.classes.js","sourceRoot":"","sources":["../../../../../src/types/cart/types/classes/cart.classes.ts"],"names":[],"mappings":";;;AAGA,MAAa,iBAAiB;CAU7B;AAVD,8CAUC"}
@@ -0,0 +1 @@
1
+ export * from './cart.classes';
@@ -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("./cart.classes"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/cart/types/classes/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B"}
@@ -1,3 +1,4 @@
1
+ export * from './classes';
1
2
  export * from './consts';
2
3
  export * from './enums';
3
4
  export * from './interfaces';
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./classes"), exports);
17
18
  __exportStar(require("./consts"), exports);
18
19
  __exportStar(require("./enums"), exports);
19
20
  __exportStar(require("./interfaces"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/cart/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,0CAAwB;AACxB,+CAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/cart/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,2CAAyB;AACzB,0CAAwB;AACxB,+CAA6B"}
@@ -20,7 +20,7 @@ export interface IAddCartItems {
20
20
  cartItems: ICreateCartItem[];
21
21
  cart?: Cart;
22
22
  }
23
- export interface ICartItemPriceMetadata {
23
+ export interface IItemPriceMetadata {
24
24
  priceId: number;
25
25
  price: number;
26
26
  quantity?: number;
@@ -38,7 +38,7 @@ export interface ICreateCartItem {
38
38
  unique?: string;
39
39
  overrideTotalPrice?: number;
40
40
  product?: Product;
41
- prices?: ICartItemPriceMetadata[];
41
+ prices?: IItemPriceMetadata[];
42
42
  }
43
43
  export interface IValidateCartOptions {
44
44
  overridePrice?: boolean;
@@ -1,3 +1,4 @@
1
+ import { ItemPriceMetadata } from '../cart/types/classes/cart.classes';
1
2
  import { Reason } from '../organization/entities/Reason';
2
3
  import { ItemDiscountDto, SimpleDiscountDto } from '../payment/dto/discount.dto';
3
4
  import { Discount } from '../payment/entities/Discount';
@@ -58,6 +59,8 @@ export declare class LineItems extends OrganizationConnectionBaseEntity {
58
59
  actionId?: string;
59
60
  reasonId?: number;
60
61
  reason?: Reason;
62
+ priceId?: number;
63
+ prices?: ItemPriceMetadata[];
61
64
  lineItemsHistory: LineItemHistory[];
62
65
  purchasedResources: PurchasedResource[];
63
66
  payments: Payment[];
@@ -1 +1 @@
1
- {"version":3,"file":"LineItems.js","sourceRoot":"","sources":["../../../src/types/entity/LineItems.ts"],"names":[],"mappings":";;;AA0BA,yFAAsF;AAItF,MAAa,SAAU,SAAQ,mEAAgC;CAsI9D;AAtID,8BAsIC"}
1
+ {"version":3,"file":"LineItems.js","sourceRoot":"","sources":["../../../src/types/entity/LineItems.ts"],"names":[],"mappings":";;;AA2BA,yFAAsF;AAItF,MAAa,SAAU,SAAQ,mEAAgC;CA0I9D;AA1ID,8BA0IC"}
@@ -1,3 +1,4 @@
1
+ import { Cart } from '../../../cart/entities/cart.entity';
1
2
  import { IValidateCartOptions } from '../../../cart/types/interfaces/cart.interfaces';
2
3
  import { Invoice } from '../../../entity/Invoice';
3
4
  import { LineItems } from '../../../entity/LineItems';
@@ -27,6 +28,7 @@ export interface IInvoiceCart {
27
28
  shiftId?: number;
28
29
  invoiceStatus?: InvoiceStatusEnum;
29
30
  parentInvoice?: Invoice;
31
+ existingCart?: Cart;
30
32
  }
31
33
  export interface IInvoiceCartOptions extends IValidateCartOptions {
32
34
  purchasedProductMap?: Map<PurchaseProductDto, LineItems>;
@@ -1 +1 @@
1
- {"version":3,"file":"invoice.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/invoice/types/interfaces/invoice.interfaces.ts"],"names":[],"mappings":";;;AA8DA,MAAa,0BAA0B;CAEtC;AAFD,gEAEC"}
1
+ {"version":3,"file":"invoice.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/invoice/types/interfaces/invoice.interfaces.ts"],"names":[],"mappings":";;;AAgEA,MAAa,0BAA0B;CAEtC;AAFD,gEAEC"}
@@ -28,7 +28,6 @@ export interface IExpandedMembershipMemberRawData extends Partial<MembershipMemb
28
28
  userId: number;
29
29
  firstName: string;
30
30
  lastName: string;
31
- completePauseEndDate?: Date;
32
31
  customerTypes: CustomerInMembershipTypeEnum[];
33
32
  parentPrice?: number;
34
33
  lineItemId: number;
@@ -2,3 +2,4 @@ export * from './backoffice.notify.dto';
2
2
  export * from './notification.blast.query.dto';
3
3
  export * from './notification.create.dto';
4
4
  export * from './notification.response.dto';
5
+ export * from './types';
@@ -18,4 +18,5 @@ __exportStar(require("./backoffice.notify.dto"), exports);
18
18
  __exportStar(require("./notification.blast.query.dto"), exports);
19
19
  __exportStar(require("./notification.create.dto"), exports);
20
20
  __exportStar(require("./notification.response.dto"), exports);
21
+ __exportStar(require("./types"), exports);
21
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/notifications/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,iEAA+C;AAC/C,4DAA0C;AAC1C,8DAA4C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/notifications/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,iEAA+C;AAC/C,4DAA0C;AAC1C,8DAA4C;AAC5C,0CAAwB"}
@@ -0,0 +1 @@
1
+ export * from './notification.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("./notification.enums"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/types/notifications/dto/types/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC"}
@@ -0,0 +1,2 @@
1
+ import { NotificationClassification, NotificationDeliveryChannel, SendErrorCode } from '@bondsports/notifications-sdk';
2
+ export { NotificationClassification, NotificationDeliveryChannel, SendErrorCode };
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SendErrorCode = exports.NotificationDeliveryChannel = exports.NotificationClassification = void 0;
4
+ const notifications_sdk_1 = require("@bondsports/notifications-sdk");
5
+ Object.defineProperty(exports, "NotificationClassification", { enumerable: true, get: function () { return notifications_sdk_1.NotificationClassification; } });
6
+ Object.defineProperty(exports, "NotificationDeliveryChannel", { enumerable: true, get: function () { return notifications_sdk_1.NotificationDeliveryChannel; } });
7
+ Object.defineProperty(exports, "SendErrorCode", { enumerable: true, get: function () { return notifications_sdk_1.SendErrorCode; } });
8
+ //# sourceMappingURL=notification.enums.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.enums.js","sourceRoot":"","sources":["../../../../../../src/types/notifications/dto/types/enums/notification.enums.ts"],"names":[],"mappings":";;;AAAA,qEAAuH;AAGnH,2GAHK,8CAA0B,OAGL;AAAE,4GAHK,+CAA2B,OAGL;AAAE,8FAHK,iCAAa,OAGL"}
@@ -0,0 +1 @@
1
+ export * from './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("./enums"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/notifications/dto/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB"}
@@ -1,7 +1,8 @@
1
1
  import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
2
2
  import { ProductPaymentPlan } from '../entities/ProductPaymentPlan';
3
- import { PaymentPlanRepetitionEnum, PaymentPlanStatusEnum, PaymentPlanTypeEnum } from '../types/enums/payment-plan.enums';
3
+ import { PaymentPlanStatusEnum, PaymentPlanTypeEnum } from '../types/enums/payment-plan.enums';
4
4
  import { PaymentMethodTypeEnum } from '../types/enums/payment.enums';
5
+ import { RepetitionUnit } from '@bondsports/date-time';
5
6
  export declare class PaymentPlanScheduleDto {
6
7
  date: Date;
7
8
  percent?: number;
@@ -16,7 +17,7 @@ export declare class PaymentPlanDto {
16
17
  status?: PaymentPlanStatusEnum;
17
18
  paymentPlanType?: PaymentPlanTypeEnum;
18
19
  startsInMonths?: number;
19
- installmentRepeat?: PaymentPlanRepetitionEnum;
20
+ installmentRepeat?: RepetitionUnit;
20
21
  }
21
22
  export declare class CreatePaymentPlanDto extends PaymentPlanDto {
22
23
  name: string;
@@ -1,13 +1,14 @@
1
1
  import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
2
2
  import { Product } from '../../product-pricing/entities/Product';
3
- import { PaymentPlanRepetitionEnum, PaymentPlanStatusEnum, PaymentPlanTypeEnum } from '../types/enums/payment-plan.enums';
3
+ import { PaymentPlanStatusEnum, PaymentPlanTypeEnum } from '../types/enums/payment-plan.enums';
4
4
  import { PaymentPlanSchedule } from './PaymentPlanSchedule';
5
+ import { RepetitionUnit } from '@bondsports/date-time';
5
6
  export declare class ProductPaymentPlan extends OrganizationConnectionBaseEntity {
6
7
  productId: number;
7
8
  maxInstallments?: number;
8
9
  dayOfMonth?: number;
9
10
  name: string;
10
- installmentRepeat?: PaymentPlanRepetitionEnum;
11
+ installmentRepeat?: RepetitionUnit;
11
12
  startsInMonths?: number;
12
13
  status: PaymentPlanStatusEnum;
13
14
  paymentPlanType: PaymentPlanTypeEnum;
@@ -1,10 +1,3 @@
1
- export declare enum PaymentPlanRepetitionEnum {
2
- DAY = "day",
3
- WEEK = "week",
4
- MONTH = "month",
5
- QUARTER = "quarter",
6
- YEAR = "year"
7
- }
8
1
  export declare enum PaymentPlanStatusEnum {
9
2
  ACTIVE = "active",
10
3
  INACTIVE = "inactive"
@@ -1,14 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PaymentPlanTypeEnum = exports.PaymentPlanStatusEnum = exports.PaymentPlanRepetitionEnum = void 0;
4
- var PaymentPlanRepetitionEnum;
5
- (function (PaymentPlanRepetitionEnum) {
6
- PaymentPlanRepetitionEnum["DAY"] = "day";
7
- PaymentPlanRepetitionEnum["WEEK"] = "week";
8
- PaymentPlanRepetitionEnum["MONTH"] = "month";
9
- PaymentPlanRepetitionEnum["QUARTER"] = "quarter";
10
- PaymentPlanRepetitionEnum["YEAR"] = "year";
11
- })(PaymentPlanRepetitionEnum = exports.PaymentPlanRepetitionEnum || (exports.PaymentPlanRepetitionEnum = {}));
3
+ exports.PaymentPlanTypeEnum = exports.PaymentPlanStatusEnum = void 0;
12
4
  var PaymentPlanStatusEnum;
13
5
  (function (PaymentPlanStatusEnum) {
14
6
  PaymentPlanStatusEnum["ACTIVE"] = "active";
@@ -1 +1 @@
1
- {"version":3,"file":"payment-plan.enums.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/enums/payment-plan.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,yBAMX;AAND,WAAY,yBAAyB;IACpC,wCAAW,CAAA;IACX,0CAAa,CAAA;IACb,4CAAe,CAAA;IACf,gDAAmB,CAAA;IACnB,0CAAa,CAAA;AACd,CAAC,EANW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAMpC;AAED,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAChC,0CAAiB,CAAA;IACjB,8CAAqB,CAAA;AACtB,CAAC,EAHW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAGhC;AAED,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC9B,0CAAmB,CAAA;IACnB,oDAA6B,CAAA;IAC7B,4CAAqB,CAAA;IACrB,0CAAmB,CAAA;IACnB,wCAAiB,CAAA;AAClB,CAAC,EANW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAM9B"}
1
+ {"version":3,"file":"payment-plan.enums.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/enums/payment-plan.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAChC,0CAAiB,CAAA;IACjB,8CAAqB,CAAA;AACtB,CAAC,EAHW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAGhC;AAED,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC9B,0CAAmB,CAAA;IACnB,oDAA6B,CAAA;IAC7B,4CAAqB,CAAA;IACrB,0CAAmB,CAAA;IACnB,wCAAiB,CAAA;AAClB,CAAC,EANW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAM9B"}
@@ -1,3 +1,4 @@
1
+ import { Product } from '../../product-pricing/entities/Product';
1
2
  import { SimpleProductDto } from '../../product-pricing/dto/product.dto';
2
3
  import { ProductPackageLevelEnum } from '../../services/enums.service';
3
4
  import { IAddon, IBaseAddon, IDraftAddon } from '../types/interfaces/addon.interfaces';
@@ -14,6 +15,7 @@ export declare class AddonDto extends BaseAddonDto implements IAddon {
14
15
  displayTotalPrice?: number;
15
16
  displayUnitTax?: number;
16
17
  level?: ProductPackageLevelEnum;
18
+ product?: Product;
17
19
  }
18
20
  export declare class AddAddonsDto {
19
21
  addons: AddonDto[];
@@ -1 +1 @@
1
- {"version":3,"file":"addon.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/addon.dto.ts"],"names":[],"mappings":";;;AAKA,MAAM,YAAY;CAQjB;AAED,MAAa,QAAS,SAAQ,YAAY;CAUzC;AAVD,4BAUC;AAED,MAAa,YAAY;CAExB;AAFD,oCAEC;AAED,MAAa,aAAa;CAEzB;AAFD,sCAEC;AAED,MAAa,wBAAyB,SAAQ,aAAa;CAE1D;AAFD,4DAEC;AAED,MAAa,YAAY;CAQxB;AARD,oCAQC;AAED,MAAa,mBAAoB,SAAQ,YAAY;CAEpD;AAFD,kDAEC;AAED,MAAa,aAAc,SAAQ,YAAY;CAM9C;AAND,sCAMC"}
1
+ {"version":3,"file":"addon.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/addon.dto.ts"],"names":[],"mappings":";;;AAMA,MAAM,YAAY;CAQjB;AAED,MAAa,QAAS,SAAQ,YAAY;CAYzC;AAZD,4BAYC;AAED,MAAa,YAAY;CAExB;AAFD,oCAEC;AAED,MAAa,aAAa;CAEzB;AAFD,sCAEC;AAED,MAAa,wBAAyB,SAAQ,aAAa;CAE1D;AAFD,4DAEC;AAED,MAAa,YAAY;CAQxB;AARD,oCAQC;AAED,MAAa,mBAAoB,SAAQ,YAAY;CAEpD;AAFD,kDAEC;AAED,MAAa,aAAc,SAAQ,YAAY;CAM9C;AAND,sCAMC"}
@@ -11,5 +11,6 @@ export declare class DraftAddon implements IDraftAddon {
11
11
  parentId?: string;
12
12
  parentType?: AddonParentTypeEnum;
13
13
  level?: ProductPackageLevelEnum;
14
+ addonId?: number;
14
15
  cartItemId?: string;
15
16
  }
@@ -1 +1 @@
1
- {"version":3,"file":"addon.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/addon.classes.ts"],"names":[],"mappings":";;;AAIA,MAAa,UAAU;CAoBtB;AApBD,gCAoBC"}
1
+ {"version":3,"file":"addon.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/addon.classes.ts"],"names":[],"mappings":";;;AAIA,MAAa,UAAU;CAsBtB;AAtBD,gCAsBC"}
@@ -1,3 +1,4 @@
1
+ import { CartItem } from '../../../cart/entities/cart-item.entity';
1
2
  import { Cart } from '../../../cart/entities/cart.entity';
2
3
  import { ICreateCartOptions, IUpdateCartPrices } from '../../../cart/types/interfaces/cart.interfaces';
3
4
  import { PaginationQuery } from '../../../dto/general.dto';
@@ -32,7 +33,6 @@ import { PrivacySettingsEnum, ReservationMigrationStatusEnum, ReservationPayment
32
33
  import { IDraftAddon, ISegmentsAddons } from './addon.interfaces';
33
34
  import { IDraftSegment } from './segment.interfaces';
34
35
  import { ITimeSlot } from './slot.interfaces';
35
- import { CartItem } from '../../../cart/entities/cart-item.entity';
36
36
  export type TDtoResource = ReservationDto | SegmentDto | SeriesDto | SlotDto | AddonDto | DraftReservation | DraftSegment | DraftSeries | DraftSlot | DraftAddon;
37
37
  export type TResource = Reservation | Segment | Series | Slot | Addon;
38
38
  export type TSlotAndType = {
@@ -1 +1 @@
1
- {"version":3,"file":"reservation.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/reservation.interfaces.ts"],"names":[],"mappings":";;;AAqGA,MAAa,SAAS;CAGrB;AAHD,8BAGC"}
1
+ {"version":3,"file":"reservation.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/reservation.interfaces.ts"],"names":[],"mappings":";;;AAoGA,MAAa,SAAS;CAGrB;AAHD,8BAGC"}
@@ -1,4 +1,4 @@
1
- import { ICartItemPriceMetadata } from '../cart/types/interfaces/cart.interfaces';
1
+ import { IItemPriceMetadata } from '../cart/types/interfaces/cart.interfaces';
2
2
  import { ActivityTimes } from '../entity/ActivityTimes';
3
3
  import { Invoice } from '../entity/Invoice';
4
4
  import { ProductsUsers } from '../entity/ProductsUsers';
@@ -120,7 +120,7 @@ export interface IPricesOfProductsResults {
120
120
  tax: number;
121
121
  isTaxInclusive: boolean;
122
122
  originalUnitPrice?: number;
123
- prices?: ICartItemPriceMetadata[];
123
+ prices?: IItemPriceMetadata[];
124
124
  quantity?: number;
125
125
  unique?: string;
126
126
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.2.245",
3
+ "version": "2.2.247",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {