@bondsports/types 2.2.6 → 2.2.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. package/dist/tsconfig.build.tsbuildinfo +1 -1
  2. package/dist/types/cart/entities/cart-item.entity.d.ts +2 -0
  3. package/dist/types/cart/entities/cart-item.entity.js.map +1 -1
  4. package/dist/types/cart/types/interfaces/cart.interfaces.d.ts +6 -2
  5. package/dist/types/entity/Invoice.d.ts +2 -0
  6. package/dist/types/entity/Invoice.js.map +1 -1
  7. package/dist/types/entity/LineItems.d.ts +1 -0
  8. package/dist/types/entity/LineItems.js.map +1 -1
  9. package/dist/types/invoice/dto/index.d.ts +1 -0
  10. package/dist/types/invoice/dto/index.js +1 -0
  11. package/dist/types/invoice/dto/index.js.map +1 -1
  12. package/dist/types/invoice/dto/invoice.dto.d.ts +6 -0
  13. package/dist/types/invoice/dto/invoice.dto.js +7 -0
  14. package/dist/types/invoice/dto/invoice.dto.js.map +1 -0
  15. package/dist/types/invoice/types/consts/index.d.ts +0 -1
  16. package/dist/types/invoice/types/consts/index.js +0 -1
  17. package/dist/types/invoice/types/consts/index.js.map +1 -1
  18. package/dist/types/invoice/types/index.d.ts +1 -0
  19. package/dist/types/invoice/types/index.js +1 -0
  20. package/dist/types/invoice/types/index.js.map +1 -1
  21. package/dist/types/invoice/types/interfaces/index.d.ts +1 -0
  22. package/dist/types/invoice/types/interfaces/index.js +18 -0
  23. package/dist/types/invoice/types/interfaces/index.js.map +1 -0
  24. package/dist/types/invoice/types/interfaces/invoice.interfaces.d.ts +29 -0
  25. package/dist/types/invoice/types/interfaces/invoice.interfaces.js.map +1 -0
  26. package/dist/types/purchase/dto/purchase.dto.d.ts +3 -5
  27. package/dist/types/purchase/dto/purchase.dto.js +2 -1
  28. package/dist/types/purchase/dto/purchase.dto.js.map +1 -1
  29. package/dist/types/purchase/types/interfaces/purchase.interfaces.d.ts +10 -1
  30. package/dist/types/reservations/dto/lineItem.dto.d.ts +1 -0
  31. package/dist/types/reservations/dto/lineItem.dto.js.map +1 -1
  32. package/dist/types/reservations/dto/reservation.dto.d.ts +4 -1
  33. package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
  34. package/dist/types/reservations/entities/Addon.d.ts +1 -1
  35. package/dist/types/reservations/types/consts/reservation.consts.d.ts +9 -2
  36. package/dist/types/reservations/types/consts/reservation.consts.js +9 -2
  37. package/dist/types/reservations/types/consts/reservation.consts.js.map +1 -1
  38. package/dist/types/reservations/types/enums/index.d.ts +1 -1
  39. package/dist/types/reservations/types/enums/index.js +1 -1
  40. package/dist/types/reservations/types/enums/index.js.map +1 -1
  41. package/dist/types/reservations/types/enums/{invoice.enums.d.ts → reservation.enums.d.ts} +1 -1
  42. package/dist/types/reservations/types/enums/reservation.enums.js +12 -0
  43. package/dist/types/reservations/types/enums/reservation.enums.js.map +1 -0
  44. package/dist/types/reservations/types/interfaces/invoice.interfaces.d.ts +0 -17
  45. package/dist/types/reservations/types/interfaces/reservation.interfaces.d.ts +28 -4
  46. package/dist/types/reservations/types/interfaces/reservation.interfaces.js.map +1 -1
  47. package/dist/types/resources/dto/resource.dto.d.ts +7 -7
  48. package/dist/types/resources/dto/resource.dto.js.map +1 -1
  49. package/dist/types/services/enums.service.d.ts +2 -1
  50. package/dist/types/services/enums.service.js +1 -0
  51. package/dist/types/services/enums.service.js.map +1 -1
  52. package/package.json +1 -1
  53. package/dist/types/invoice/types/consts/invoice.interfaces.d.ts +0 -15
  54. package/dist/types/invoice/types/consts/invoice.interfaces.js.map +0 -1
  55. package/dist/types/reservations/types/enums/invoice.enums.js +0 -12
  56. package/dist/types/reservations/types/enums/invoice.enums.js.map +0 -1
  57. /package/dist/types/invoice/types/{consts → interfaces}/invoice.interfaces.js +0 -0
@@ -25,6 +25,7 @@ export declare class CartItem extends OrganizationConnectionBaseEntity {
25
25
  errors?: string[];
26
26
  ordinal?: number;
27
27
  parentOrdinal?: number;
28
+ unique?: string;
28
29
  percentage?: number;
29
30
  isTaxInclusive?: boolean;
30
31
  entitlementGroupId?: number;
@@ -43,5 +44,6 @@ export declare class CartItem extends OrganizationConnectionBaseEntity {
43
44
  reason?: Reason;
44
45
  discountAmount?: number;
45
46
  totalPrice?: number;
47
+ overrideTotalPrice?: number;
46
48
  totalUnitPrice: number;
47
49
  }
@@ -1 +1 @@
1
- {"version":3,"file":"cart-item.entity.js","sourceRoot":"","sources":["../../../../src/types/cart/entities/cart-item.entity.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAWjG,MAAa,QAAS,SAAQ,mEAAgC;CAoE7D;AApED,4BAoEC"}
1
+ {"version":3,"file":"cart-item.entity.js","sourceRoot":"","sources":["../../../../src/types/cart/entities/cart-item.entity.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAWjG,MAAa,QAAS,SAAQ,mEAAgC;CAuE7D;AAvED,4BAuEC"}
@@ -5,7 +5,7 @@ import { CurrencyEnum, PlatformsEnum } from '../../../services/enums.service';
5
5
  import { IPricesOfProductsResults } from '../../../services/interfaces.service';
6
6
  import { Cart } from '../../entities/cart.entity';
7
7
  export interface ICreateCart {
8
- platform: PlatformsEnum;
8
+ platform?: PlatformsEnum;
9
9
  ownerId?: number;
10
10
  currency?: CurrencyEnum;
11
11
  shiftId?: number;
@@ -27,6 +27,8 @@ export interface ICreateCartItem {
27
27
  resources?: ResourceDto[];
28
28
  children?: ICreateCartItem[];
29
29
  errors?: string[];
30
+ unique?: string;
31
+ overrideTotalPrice?: number;
30
32
  }
31
33
  export interface IValidateCartOptions {
32
34
  overridePrice?: boolean;
@@ -34,7 +36,9 @@ export interface IValidateCartOptions {
34
36
  throwError?: boolean;
35
37
  }
36
38
  export interface ICreateCartOptions extends IValidateCartOptions {
37
- skipOnMissingProduct: boolean;
39
+ skipOnMissingProduct?: boolean;
40
+ extendCart?: boolean;
41
+ skipSave?: boolean;
38
42
  }
39
43
  export interface IValidateCartResult {
40
44
  currentPrices: IPricesOfProductsResults[];
@@ -16,6 +16,8 @@ import { LineItemHistory } from './LineItemHistory';
16
16
  import { LineItems } from './LineItems';
17
17
  export declare class Invoice extends BondBaseEntity {
18
18
  invoiceId?: string;
19
+ parentId?: number;
20
+ parent?: Invoice;
19
21
  price: number;
20
22
  status?: InvoiceStatusEnum;
21
23
  sentForClientDate?: Date;
@@ -1 +1 @@
1
- {"version":3,"file":"Invoice.js","sourceRoot":"","sources":["../../../src/types/entity/Invoice.ts"],"names":[],"mappings":";;;AAeA,qDAAkD;AAOlD,MAAa,OAAQ,SAAQ,+BAAc;CAmF1C;AAnFD,0BAmFC"}
1
+ {"version":3,"file":"Invoice.js","sourceRoot":"","sources":["../../../src/types/entity/Invoice.ts"],"names":[],"mappings":";;;AAeA,qDAAkD;AAOlD,MAAa,OAAQ,SAAQ,+BAAc;CAuF1C;AAvFD,0BAuFC"}
@@ -34,6 +34,7 @@ export declare class LineItems extends OrganizationConnectionBaseEntity {
34
34
  type?: LineItemsStatusEnum;
35
35
  ordinal?: number;
36
36
  parentOrdinal?: number;
37
+ unique?: string;
37
38
  entitlementGroupId?: number;
38
39
  entitlementGroups: EntitlementGroup;
39
40
  parentLineItemId?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"LineItems.js","sourceRoot":"","sources":["../../../src/types/entity/LineItems.ts"],"names":[],"mappings":";;;AAyBA,yFAAsF;AAItF,MAAa,SAAU,SAAQ,mEAAgC;CAmI9D;AAnID,8BAmIC"}
1
+ {"version":3,"file":"LineItems.js","sourceRoot":"","sources":["../../../src/types/entity/LineItems.ts"],"names":[],"mappings":";;;AAyBA,yFAAsF;AAItF,MAAa,SAAU,SAAQ,mEAAgC;CAoI9D;AApID,8BAoIC"}
@@ -1 +1,2 @@
1
+ export * from './invoice.dto';
1
2
  export * from './publishInvoice.dto';
@@ -14,5 +14,6 @@ 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("./invoice.dto"), exports);
17
18
  __exportStar(require("./publishInvoice.dto"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,uDAAqC"}
@@ -0,0 +1,6 @@
1
+ import { IInvoiceCart } from '../types/interfaces/invoice.interfaces';
2
+ export declare class InvoiceCartDto implements IInvoiceCart {
3
+ existingInvoiceId?: number;
4
+ existingInvoiceToken?: string;
5
+ shiftId?: number;
6
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InvoiceCartDto = void 0;
4
+ class InvoiceCartDto {
5
+ }
6
+ exports.InvoiceCartDto = InvoiceCartDto;
7
+ //# sourceMappingURL=invoice.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invoice.dto.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/invoice.dto.ts"],"names":[],"mappings":";;;AAEA,MAAa,cAAc;CAM1B;AAND,wCAMC"}
@@ -1,2 +1 @@
1
1
  export * from './invoice.consts';
2
- export * from './invoice.interfaces';
@@ -15,5 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./invoice.consts"), exports);
18
- __exportStar(require("./invoice.interfaces"), exports);
19
18
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/invoice/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,uDAAqC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/invoice/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC"}
@@ -1 +1,2 @@
1
1
  export * from './consts';
2
+ export * from './interfaces';
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./consts"), exports);
18
+ __exportStar(require("./interfaces"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/invoice/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/invoice/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,+CAA6B"}
@@ -0,0 +1 @@
1
+ export * from './invoice.interfaces';
@@ -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("./invoice.interfaces"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/invoice/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC"}
@@ -0,0 +1,29 @@
1
+ import { IValidateCartOptions } from '../../../cart/types/interfaces/cart.interfaces';
2
+ import { Invoice } from '../../../entity/Invoice';
3
+ import { LineItems } from '../../../entity/LineItems';
4
+ import { UserPaymentMethod } from '../../../entity/user-payment-method';
5
+ import { PurchaseProductDto } from '../../../purchase/dto/purchase.dto';
6
+ import { InvoiceStatusEnum } from '../../../services/enums.service';
7
+ export interface InvoiceAndRelatedMethod {
8
+ invoice: Invoice;
9
+ paymentMethod?: DisplayedMethodFields;
10
+ }
11
+ export type DisplayedMethodFields = Pick<UserPaymentMethod, 'ccBrand' | 'ccLast4' | 'paymentMethodType' | 'paymentMethodId'>;
12
+ export interface InvoiceAndMethodIds {
13
+ invoiceId: number;
14
+ pmId: number;
15
+ }
16
+ export interface InvoiceAndRelatedMethodDto {
17
+ pendingInvoices?: InvoiceAndRelatedMethod[];
18
+ futureInvoices?: InvoiceAndRelatedMethod[];
19
+ }
20
+ export interface IInvoiceCart {
21
+ existingInvoiceId?: number;
22
+ existingInvoiceToken?: string;
23
+ shiftId?: number;
24
+ invoiceStatus?: InvoiceStatusEnum;
25
+ parentInvoice?: Invoice;
26
+ }
27
+ export interface IInvoiceCartOptions extends IValidateCartOptions {
28
+ purchasedProductMap?: Map<PurchaseProductDto, LineItems>;
29
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invoice.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/invoice/types/interfaces/invoice.interfaces.ts"],"names":[],"mappings":""}
@@ -2,13 +2,14 @@ import { UserAnswersDto } from '../../dto/application.dto';
2
2
  import { Customer } from '../../entity/Customer';
3
3
  import { Invoice } from '../../entity/Invoice';
4
4
  import { ProductsUsers } from '../../entity/ProductsUsers';
5
+ import { InvoiceCartDto } from '../../invoice/dto/invoice.dto';
5
6
  import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
6
7
  import { ScheduledPaymentDto } from '../../payment/dto/payment-plan.dto';
7
8
  import { Payment } from '../../payment/entities/Payment';
8
9
  import { FuturePaymentStatusEnum, PaymentMethodTypeEnum, PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
9
10
  import { ResourceDto } from '../../resources/dto/resource.dto';
10
11
  import { PlatformsEnum, ResourceNameTypeEnum } from '../../services/enums.service';
11
- import { IPurchasePayment } from '../types/interfaces/purchase.interfaces';
12
+ import { IPurchaseCart, IPurchasePayment } from '../types/interfaces/purchase.interfaces';
12
13
  export declare class PurchasePaymentDto implements IPurchasePayment {
13
14
  type: PaymentMethodTypeEnum;
14
15
  token?: string;
@@ -118,12 +119,9 @@ export declare class PurchaseResultDto {
118
119
  customer?: Customer;
119
120
  productUsers?: ProductsUsers[];
120
121
  }
121
- export declare class PurchaseCartDto {
122
+ export declare class PurchaseCartDto extends InvoiceCartDto implements IPurchaseCart {
122
123
  paymentInfo?: PurchasePaymentDto;
123
124
  amountToPay?: number;
124
- existingInvoiceId?: number;
125
- existingInvoiceToken?: string;
126
- shiftId?: number;
127
125
  installments?: ScheduledPaymentDto[];
128
126
  parentPurchasedId?: number;
129
127
  parentPurchasedType?: ResourceNameTypeEnum;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PurchaseCartDto = exports.PurchaseResultDto = exports.ValidateParticipantDto = exports.PartialPaymentAsUserDto = exports.AddItemsDto = exports.RedeemPunchCardRequestDto = exports.PartialPaymentRequestDto = exports.ScheduledPaymentRequestBodyDto = exports.ScheduledPaymentRequestDto = exports.ScheduledPaymentConsumerRequestDto = exports.PurchaseProductDto = exports.PurchaseResourceDto = exports.PurchaseRequestDto = exports.ChargeRentalsReuqestDto = exports.PurchasePaymentDto = void 0;
4
+ const invoice_dto_1 = require("../../invoice/dto/invoice.dto");
4
5
  const organization_dto_1 = require("../../organization/dto/organization.dto");
5
6
  const resource_dto_1 = require("../../resources/dto/resource.dto");
6
7
  class PurchasePaymentDto {
@@ -49,7 +50,7 @@ exports.ValidateParticipantDto = ValidateParticipantDto;
49
50
  class PurchaseResultDto {
50
51
  }
51
52
  exports.PurchaseResultDto = PurchaseResultDto;
52
- class PurchaseCartDto {
53
+ class PurchaseCartDto extends invoice_dto_1.InvoiceCartDto {
53
54
  }
54
55
  exports.PurchaseCartDto = PurchaseCartDto;
55
56
  //# sourceMappingURL=purchase.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"purchase.dto.js","sourceRoot":"","sources":["../../../../src/types/purchase/dto/purchase.dto.ts"],"names":[],"mappings":";;;AAIA,8EAA8E;AAQ9E,mEAA+D;AAK/D,MAAa,kBAAkB;CAQ9B;AARD,gDAQC;AAED,MAAa,uBAAuB;CAkBnC;AAlBD,0DAkBC;AAED,MAAa,kBAAkB;CAiC9B;AAjCD,gDAiCC;AAED,MAAa,mBAAoB,SAAQ,0BAAW;CAInD;AAJD,kDAIC;AAED,MAAa,kBAAkB;CA6B9B;AA7BD,gDA6BC;AAED,MAAa,kCAAkC;CAM9C;AAND,gFAMC;AAED,MAAa,0BAA2B,SAAQ,sCAAmB;CAIlE;AAJD,gEAIC;AAED,MAAa,8BAA8B;CAU1C;AAVD,wEAUC;AAED,MAAa,wBAAwB;CAgBpC;AAhBD,4DAgBC;AAED,MAAa,yBAAyB;CAQrC;AARD,8DAQC;AAED,MAAa,WAAW;IAAxB;QAGC,qBAAgB,GAAG,KAAK,CAAC;QAEzB,aAAQ,GAAG,KAAK,CAAC;IAClB,CAAC;CAAA;AAND,kCAMC;AAED,MAAa,uBAAuB;CAUnC;AAVD,0DAUC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,iBAAiB;CAU7B;AAVD,8CAUC;AAED,MAAa,eAAe;CAgB3B;AAhBD,0CAgBC"}
1
+ {"version":3,"file":"purchase.dto.js","sourceRoot":"","sources":["../../../../src/types/purchase/dto/purchase.dto.ts"],"names":[],"mappings":";;;AAIA,+DAA+D;AAC/D,8EAA8E;AAQ9E,mEAA+D;AAK/D,MAAa,kBAAkB;CAQ9B;AARD,gDAQC;AAED,MAAa,uBAAuB;CAkBnC;AAlBD,0DAkBC;AAED,MAAa,kBAAkB;CAiC9B;AAjCD,gDAiCC;AAED,MAAa,mBAAoB,SAAQ,0BAAW;CAInD;AAJD,kDAIC;AAED,MAAa,kBAAkB;CA6B9B;AA7BD,gDA6BC;AAED,MAAa,kCAAkC;CAM9C;AAND,gFAMC;AAED,MAAa,0BAA2B,SAAQ,sCAAmB;CAIlE;AAJD,gEAIC;AAED,MAAa,8BAA8B;CAU1C;AAVD,wEAUC;AAED,MAAa,wBAAwB;CAgBpC;AAhBD,4DAgBC;AAED,MAAa,yBAAyB;CAQrC;AARD,8DAQC;AAED,MAAa,WAAW;IAAxB;QAGC,qBAAgB,GAAG,KAAK,CAAC;QAEzB,aAAQ,GAAG,KAAK,CAAC;IAClB,CAAC;CAAA;AAND,kCAMC;AAED,MAAa,uBAAuB;CAUnC;AAVD,0DAUC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,iBAAiB;CAU7B;AAVD,8CAUC;AAED,MAAa,eAAgB,SAAQ,4BAAc;CAUlD;AAVD,0CAUC"}
@@ -1,13 +1,15 @@
1
1
  import { IValidateCartOptions } from '../../../cart/types/interfaces/cart.interfaces';
2
2
  import { Customer } from '../../../entity/Customer';
3
3
  import { Invoice } from '../../../entity/Invoice';
4
+ import { IInvoiceCart } from '../../../invoice/types/interfaces/invoice.interfaces';
4
5
  import { ScheduledPaymentDto } from '../../../payment/dto/payment-plan.dto';
5
6
  import { Payment } from '../../../payment/entities/Payment';
6
7
  import { FuturePaymentStatusEnum, PaymentMethodTypeEnum } from '../../../payment/types/enums/payment.enums';
7
8
  import { ISaveInvoicePayment } from '../../../payment/types/interfaces/payment.interfaces';
8
9
  import { Product } from '../../../product-pricing/entities/Product';
9
- import { CurrencyEnum, LineItemsStatusEnum, ProductSubTypesEnum, ProductTypesEnum, ResourceNameTypeEnum } from '../../../services/enums.service';
10
10
  import { ResourceDto } from '../../../resources/dto/resource.dto';
11
+ import { CurrencyEnum, LineItemsStatusEnum, ProductSubTypesEnum, ProductTypesEnum, ResourceNameTypeEnum } from '../../../services/enums.service';
12
+ import { PurchasePaymentDto } from '../../dto/purchase.dto';
11
13
  export type UserCount = {
12
14
  male: number;
13
15
  female: number;
@@ -56,3 +58,10 @@ export interface IPurchasePayment {
56
58
  type: PaymentMethodTypeEnum;
57
59
  token?: string;
58
60
  }
61
+ export interface IPurchaseCart extends IInvoiceCart {
62
+ paymentInfo?: PurchasePaymentDto;
63
+ amountToPay?: number;
64
+ installments?: ScheduledPaymentDto[];
65
+ parentPurchasedId?: number;
66
+ parentPurchasedType?: ResourceNameTypeEnum;
67
+ }
@@ -26,5 +26,6 @@ export declare class LineItemDto {
26
26
  unitPriceWithTax?: number;
27
27
  unitTaxPrice?: number;
28
28
  parentOrdinal?: number;
29
+ unique?: string;
29
30
  totalPrice?: number;
30
31
  }
@@ -1 +1 @@
1
- {"version":3,"file":"lineItem.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/lineItem.dto.ts"],"names":[],"mappings":";;;AAKA,MAAa,WAAW;CAiDvB;AAjDD,kCAiDC"}
1
+ {"version":3,"file":"lineItem.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/lineItem.dto.ts"],"names":[],"mappings":";;;AAKA,MAAa,WAAW;CAmDvB;AAnDD,kCAmDC"}
@@ -6,6 +6,7 @@ import { Product } from '../../product-pricing/entities/Product';
6
6
  import { PurchasePaymentDto, PurchaseResultDto } from '../../purchase/dto/purchase.dto';
7
7
  import { NotifyMethodEnum, PlatformsEnum, ProgramTypesEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, ReservationTypeEnum, ResourceNameTypeEnum, ResourceTypeEnum, SlotTypeEnum, SportsEnum, UpdatePricesTypeEnum } from '../../services/enums.service';
8
8
  import { Reservation } from '../entities/Reservations';
9
+ import { ISaveReservationOptions } from '../types/interfaces/reservation.interfaces';
9
10
  import { AddonDto } from './addon.dto';
10
11
  import { InvoiceDto } from './invoice.dto';
11
12
  import { SegmentDto } from './segment.dto';
@@ -47,9 +48,11 @@ export declare class ReservationInvoiceDto {
47
48
  invoice: InvoiceDto;
48
49
  debug: any;
49
50
  }
50
- export declare class SaveReservationDto {
51
+ export declare class SaveReservationDto implements ISaveReservationOptions {
51
52
  reservation: ReservationDto;
52
53
  slotType?: SlotTypeEnum;
54
+ platform?: PlatformsEnum;
55
+ shiftId?: number;
53
56
  }
54
57
  export declare class SingleReservationIncludesDto {
55
58
  includeCustomer?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/reservation.dto.ts"],"names":[],"mappings":";;;AACA,uDAAwD;AACxD,8EAA8E;AAI9E,kEAAwF;AAsBxF,MAAM,uBAAuB,GAAG,IAAI,CAAC;AAErC,MAAa,gBAAgB;CAU5B;AAVD,4CAUC;AAED,MAAa,cAAc;CAqD1B;AArDD,wCAqDC;AAED,MAAa,qBAAqB;CAMjC;AAND,sDAMC;AACD,MAAa,kBAAkB;CAI9B;AAJD,gDAIC;AAED,MAAa,4BAA4B;CAcxC;AAdD,oEAcC;AAED,MAAa,iBAAiB;CAI7B;AAJD,8CAIC;AAED,MAAM,cAAc;CAQnB;AAED,MAAa,yBAA0B,SAAQ,cAAc;CAE5D;AAFD,8DAEC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAIvD;AAJD,oDAIC;AAED,MAAa,WAAW;CAUvB;AAVD,kCAUC;AAED,MAAa,UAAW,SAAQ,WAAW;CAI1C;AAJD,gCAIC;AAED,MAAa,0CAA2C,SAAQ,6BAAe;CAY9E;AAZD,gGAYC;AAED,MAAa,kCAAmC,SAAQ,6BAAe;CAUtE;AAVD,gFAUC;AAED,MAAa,+BAA+B;IAA5C;QAKC,UAAK,GAAW,uBAAuB,CAAC;IAqBzC,CAAC;CAAA;AA1BD,0EA0BC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,oBAAqB,SAAQ,sCAAmB;CAE5D;AAFD,oDAEC;AAED,MAAa,iBAAkB,SAAQ,oBAAoB;CAE1D;AAFD,8CAEC;AAED,MAAa,gBAAiB,SAAQ,iBAAiB;CAEtD;AAFD,4CAEC;AAED,MAAa,0BAA2B,SAAQ,oBAAoB;CAEnE;AAFD,gEAEC;AAED,MAAa,aAAc,SAAQ,oBAAoB;CAEtD;AAFD,sCAEC;AAED,MAAa,mBAAmB;CAI/B;AAJD,kDAIC;AAED,MAAa,cAAc;CAE1B;AAFD,wCAEC;AAED,MAAa,sBAAsB;CAMlC;AAND,wDAMC;AAED,MAAa,YAAa,SAAQ,cAAc;CAE/C;AAFD,oCAEC;AAED,MAAa,yBAAyB;CAMrC;AAND,8DAMC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAIvD;AAJD,oDAIC;AACD,MAAa,oBAAoB;CAEhC;AAFD,oDAEC;AAED,MAAa,2BAA2B;CAIvC;AAJD,kEAIC;AAED,MAAa,+BAA+B;CAI3C;AAJD,0EAIC;AAED,MAAa,4BAA4B;CAExC;AAFD,oEAEC;AAED,MAAa,0BAA2B,SAAQ,gCAAiB;CAIhE;AAJD,gEAIC"}
1
+ {"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/reservation.dto.ts"],"names":[],"mappings":";;;AACA,uDAAwD;AACxD,8EAA8E;AAI9E,kEAAwF;AAuBxF,MAAM,uBAAuB,GAAG,IAAI,CAAC;AAErC,MAAa,gBAAgB;CAU5B;AAVD,4CAUC;AAED,MAAa,cAAc;CAqD1B;AArDD,wCAqDC;AAED,MAAa,qBAAqB;CAMjC;AAND,sDAMC;AACD,MAAa,kBAAkB;CAQ9B;AARD,gDAQC;AAED,MAAa,4BAA4B;CAcxC;AAdD,oEAcC;AAED,MAAa,iBAAiB;CAI7B;AAJD,8CAIC;AAED,MAAM,cAAc;CAQnB;AAED,MAAa,yBAA0B,SAAQ,cAAc;CAE5D;AAFD,8DAEC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAIvD;AAJD,oDAIC;AAED,MAAa,WAAW;CAUvB;AAVD,kCAUC;AAED,MAAa,UAAW,SAAQ,WAAW;CAI1C;AAJD,gCAIC;AAED,MAAa,0CAA2C,SAAQ,6BAAe;CAY9E;AAZD,gGAYC;AAED,MAAa,kCAAmC,SAAQ,6BAAe;CAUtE;AAVD,gFAUC;AAED,MAAa,+BAA+B;IAA5C;QAKC,UAAK,GAAW,uBAAuB,CAAC;IAqBzC,CAAC;CAAA;AA1BD,0EA0BC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,oBAAqB,SAAQ,sCAAmB;CAE5D;AAFD,oDAEC;AAED,MAAa,iBAAkB,SAAQ,oBAAoB;CAE1D;AAFD,8CAEC;AAED,MAAa,gBAAiB,SAAQ,iBAAiB;CAEtD;AAFD,4CAEC;AAED,MAAa,0BAA2B,SAAQ,oBAAoB;CAEnE;AAFD,gEAEC;AAED,MAAa,aAAc,SAAQ,oBAAoB;CAEtD;AAFD,sCAEC;AAED,MAAa,mBAAmB;CAI/B;AAJD,kDAIC;AAED,MAAa,cAAc;CAE1B;AAFD,wCAEC;AAED,MAAa,sBAAsB;CAMlC;AAND,wDAMC;AAED,MAAa,YAAa,SAAQ,cAAc;CAE/C;AAFD,oCAEC;AAED,MAAa,yBAAyB;CAMrC;AAND,8DAMC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAIvD;AAJD,oDAIC;AACD,MAAa,oBAAoB;CAEhC;AAFD,oDAEC;AAED,MAAa,2BAA2B;CAIvC;AAJD,kEAIC;AAED,MAAa,+BAA+B;CAI3C;AAJD,0EAIC;AAED,MAAa,4BAA4B;CAExC;AAFD,oEAEC;AAED,MAAa,0BAA2B,SAAQ,gCAAiB;CAIhE;AAJD,gEAIC"}
@@ -2,8 +2,8 @@ import { Invoice } from '../../entity/Invoice';
2
2
  import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
3
3
  import { ProductsUsers } from '../../entity/ProductsUsers';
4
4
  import { Product } from '../../product-pricing/entities/Product';
5
- import { AddonParentTypeEnum, ProductPackageLevelEnum, ReservationPaymentStatusEnum, ReservationStatusEnum } from '../../services/enums.service';
6
5
  import { Resource } from '../../resources/entities/Resource';
6
+ import { AddonParentTypeEnum, ProductPackageLevelEnum, ReservationPaymentStatusEnum, ReservationStatusEnum } from '../../services/enums.service';
7
7
  export declare class Addon extends OrganizationConnectionBaseEntity {
8
8
  deletedAt?: Date;
9
9
  parentId: number;
@@ -1,5 +1,12 @@
1
- import { PriceFieldEnum } from '../../../services/enums.service';
1
+ import { InvoiceStatusEnum, PriceFieldEnum } from '../../../services/enums.service';
2
2
  export declare const RESOURCE_TOTAL_FIELD = PriceFieldEnum.TOTAL_PRICE;
3
- export declare const DEFAULT_ADDON_QUANTITY = 1;
4
3
  export declare const PUBLIC_NOTES_LIMIT = 500;
5
4
  export declare const PRIVATE_NOTES_LIMIT = 500;
5
+ export declare const reservationStatusMapper: {
6
+ Planned: InvoiceStatusEnum;
7
+ Approved: InvoiceStatusEnum;
8
+ "Awaiting Admin": InvoiceStatusEnum;
9
+ "Awaiting Customer": InvoiceStatusEnum;
10
+ Rejected: InvoiceStatusEnum;
11
+ Canceled: InvoiceStatusEnum;
12
+ };
@@ -1,9 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PRIVATE_NOTES_LIMIT = exports.PUBLIC_NOTES_LIMIT = exports.DEFAULT_ADDON_QUANTITY = exports.RESOURCE_TOTAL_FIELD = void 0;
3
+ exports.reservationStatusMapper = exports.PRIVATE_NOTES_LIMIT = exports.PUBLIC_NOTES_LIMIT = exports.RESOURCE_TOTAL_FIELD = void 0;
4
4
  const enums_service_1 = require("../../../services/enums.service");
5
5
  exports.RESOURCE_TOTAL_FIELD = enums_service_1.PriceFieldEnum.TOTAL_PRICE;
6
- exports.DEFAULT_ADDON_QUANTITY = 1;
7
6
  exports.PUBLIC_NOTES_LIMIT = 500;
8
7
  exports.PRIVATE_NOTES_LIMIT = 500;
8
+ exports.reservationStatusMapper = {
9
+ [enums_service_1.ReservationStatusEnum.PLANNED]: enums_service_1.InvoiceStatusEnum.DRAFT,
10
+ [enums_service_1.ReservationStatusEnum.APPROVED]: enums_service_1.InvoiceStatusEnum.ACTIVE,
11
+ [enums_service_1.ReservationStatusEnum.AWAITING_ADMIN]: enums_service_1.InvoiceStatusEnum.WAITING_ADMIN,
12
+ [enums_service_1.ReservationStatusEnum.AWAITING_CUSTOMER]: enums_service_1.InvoiceStatusEnum.WAITING_CLIENT,
13
+ [enums_service_1.ReservationStatusEnum.REJECTED]: enums_service_1.InvoiceStatusEnum.CANCELED,
14
+ [enums_service_1.ReservationStatusEnum.CANCELED]: enums_service_1.InvoiceStatusEnum.CANCELED,
15
+ };
9
16
  //# sourceMappingURL=reservation.consts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"reservation.consts.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/consts/reservation.consts.ts"],"names":[],"mappings":";;;AAAA,mEAAiE;AAEpD,QAAA,oBAAoB,GAAG,8BAAc,CAAC,WAAW,CAAC;AAClD,QAAA,sBAAsB,GAAG,CAAC,CAAC;AAC3B,QAAA,kBAAkB,GAAG,GAAG,CAAC;AACzB,QAAA,mBAAmB,GAAG,GAAG,CAAC"}
1
+ {"version":3,"file":"reservation.consts.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/consts/reservation.consts.ts"],"names":[],"mappings":";;;AAAA,mEAA2G;AAE9F,QAAA,oBAAoB,GAAG,8BAAc,CAAC,WAAW,CAAC;AAClD,QAAA,kBAAkB,GAAG,GAAG,CAAC;AACzB,QAAA,mBAAmB,GAAG,GAAG,CAAC;AAE1B,QAAA,uBAAuB,GAAG;IACtC,CAAC,qCAAqB,CAAC,OAAO,CAAC,EAAE,iCAAiB,CAAC,KAAK;IACxD,CAAC,qCAAqB,CAAC,QAAQ,CAAC,EAAE,iCAAiB,CAAC,MAAM;IAC1D,CAAC,qCAAqB,CAAC,cAAc,CAAC,EAAE,iCAAiB,CAAC,aAAa;IACvE,CAAC,qCAAqB,CAAC,iBAAiB,CAAC,EAAE,iCAAiB,CAAC,cAAc;IAC3E,CAAC,qCAAqB,CAAC,QAAQ,CAAC,EAAE,iCAAiB,CAAC,QAAQ;IAC5D,CAAC,qCAAqB,CAAC,QAAQ,CAAC,EAAE,iCAAiB,CAAC,QAAQ;CAC5D,CAAC"}
@@ -1 +1 @@
1
- export * from './invoice.enums';
1
+ export * from './reservation.enums';
@@ -14,5 +14,5 @@ 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("./invoice.enums"), exports);
17
+ __exportStar(require("./reservation.enums"), exports);
18
18
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC"}
@@ -1,4 +1,4 @@
1
- export declare enum LineItemResourceEnum {
1
+ export declare enum ItemResourceEnum {
2
2
  SEGMENTS = "segments",
3
3
  SERIES = "series",
4
4
  SLOTS = "slots",
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ItemResourceEnum = void 0;
4
+ var ItemResourceEnum;
5
+ (function (ItemResourceEnum) {
6
+ ItemResourceEnum["SEGMENTS"] = "segments";
7
+ ItemResourceEnum["SERIES"] = "series";
8
+ ItemResourceEnum["SLOTS"] = "slots";
9
+ ItemResourceEnum["RESERVATION_ADDONS"] = "reservation_addons";
10
+ ItemResourceEnum["SLOT_ADDONS"] = "slot_addons";
11
+ })(ItemResourceEnum = exports.ItemResourceEnum || (exports.ItemResourceEnum = {}));
12
+ //# sourceMappingURL=reservation.enums.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reservation.enums.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/enums/reservation.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAMX;AAND,WAAY,gBAAgB;IAC3B,yCAAqB,CAAA;IACrB,qCAAiB,CAAA;IACjB,mCAAe,CAAA;IACf,6DAAyC,CAAA;IACzC,+CAA2B,CAAA;AAC5B,CAAC,EANW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAM3B"}
@@ -1,24 +1,7 @@
1
1
  import { Invoice } from '../../../entity/Invoice';
2
- import { Product } from '../../../product-pricing/entities/Product';
3
2
  import { InvoiceDto } from '../../dto/invoice.dto';
4
3
  import { LineItemDto } from '../../dto/lineItem.dto';
5
4
  import { ProductPricesDto } from '../../dto/reservation.dto';
6
- import { SlotDto } from '../../dto/slot.dto';
7
- import { TDtoResource, TResource } from './reservation.interfaces';
8
- export type TSlotAndType = {
9
- type: 'slots' | 'slot_addons';
10
- slotsForProduct: {
11
- [productId: number]: {
12
- product: Product;
13
- slots: SlotDto[];
14
- };
15
- };
16
- };
17
- export interface ILineItemResource {
18
- type: 'segments' | 'series' | 'slots' | 'reservation_addons' | 'slot_addons';
19
- values: TResource[];
20
- dtoValues: TDtoResource[];
21
- }
22
5
  export interface IGeneratedLineItems {
23
6
  lineItems: LineItemDto[];
24
7
  childItemToParent: Map<LineItemDto, LineItemDto>;
@@ -1,4 +1,5 @@
1
1
  import * as moment from 'moment';
2
+ import { ICreateCartOptions } from '../../../cart/types/interfaces/cart.interfaces';
2
3
  import { PaginationQuery } from '../../../dto/general.dto';
3
4
  import { Customer } from '../../../entity/Customer';
4
5
  import { Invoice } from '../../../entity/Invoice';
@@ -7,7 +8,7 @@ import { PaymentStatusEnum } from '../../../payment/types/enums/payment.enums';
7
8
  import { RefundResult } from '../../../payment/types/interfaces/refund.interfaces';
8
9
  import { Product } from '../../../product-pricing/entities/Product';
9
10
  import { Answer } from '../../../questionnaires/entities/Answer';
10
- import { FinancialStepEnum, ReservationStatusEnum, ReservationTypeEnum } from '../../../services/enums.service';
11
+ import { FinancialStepEnum, PlatformsEnum, ReservationStatusEnum, ReservationTypeEnum, SlotTypeEnum } from '../../../services/enums.service';
11
12
  import { IPaymentMethodToFundLeft } from '../../../services/interfaces.service';
12
13
  import { AddonDto } from '../../dto/addon.dto';
13
14
  import { InvoiceDto } from '../../dto/invoice.dto';
@@ -23,6 +24,15 @@ import { Series } from '../../entities/Series';
23
24
  import { Slot } from '../../entities/Slots';
24
25
  export type TDtoResource = ReservationDto | SegmentDto | SeriesDto | SlotDto | AddonDto;
25
26
  export type TResource = Reservation | Segment | Series | Slot | Addon;
27
+ export type TSlotAndType = {
28
+ type: 'slots' | 'slot_addons';
29
+ items: IProductItems;
30
+ };
31
+ export interface IItemResource {
32
+ type: 'segments' | 'series' | 'slots' | 'reservation_addons' | 'slot_addons';
33
+ values: TResource[];
34
+ dtoValues: TDtoResource[];
35
+ }
26
36
  export interface IRevertedResources {
27
37
  slots: Slot[];
28
38
  addons: Addon[];
@@ -257,8 +267,22 @@ export interface IValidateRemoveAddonsResult {
257
267
  invoicedAddons: Addon[];
258
268
  invoice: Invoice;
259
269
  }
260
- export interface ICartReservationOptions {
261
- startOrdinal: number;
262
- keepReservationPrice: boolean;
270
+ export interface ICartReservationOptions extends ICreateCartOptions {
271
+ targetGlobalPrice?: number;
272
+ platform?: PlatformsEnum;
273
+ shiftId?: number;
274
+ }
275
+ export interface IProductItems {
276
+ [productInfo: string]: {
277
+ items: SlotDto[];
278
+ product: Product;
279
+ parent?: Product;
280
+ };
281
+ }
282
+ export interface ISaveReservationOptions {
283
+ storeGlobalReservation?: boolean;
284
+ slotType?: SlotTypeEnum;
285
+ platform?: PlatformsEnum;
286
+ shiftId?: number;
263
287
  }
264
288
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"reservation.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/reservation.interfaces.ts"],"names":[],"mappings":";;;AAkDA,MAAa,YAAY;CAGxB;AAHD,oCAGC"}
1
+ {"version":3,"file":"reservation.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/reservation.interfaces.ts"],"names":[],"mappings":";;;AAsEA,MAAa,YAAY;CAGxB;AAHD,oCAGC"}
@@ -1,14 +1,14 @@
1
- import { IdAndNameDto, IncludeAdditionalDataDto } from '../../dto/general.dto';
2
- import { ActivityEnum, AmenitiesEnum, OrderByEnum, ProgramTypesEnum, ResourceAgesEnum, ResourceNameTypeEnum, ResourceSubTypeEnum, ResourceTypeEnum, SpacePropertiesEnum, SportsEnum, SurfacesEnum } from '../../services/enums.service';
3
- import { Slot } from '../../reservations/entities/Slots';
4
- import { Addon } from '../../reservations/entities/Addon';
1
+ import { ActivityTimesDto } from '../../dto/activityTimes.dto';
5
2
  import { FacilityDto } from '../../dto/facilities.dto';
6
- import { PurchasedResourceDto } from '../../reservations/dto/purcased-resource.dto';
3
+ import { IdAndNameDto, IncludeAdditionalDataDto } from '../../dto/general.dto';
7
4
  import { MediaDto } from '../../media/dto/media.dto';
8
- import { IGetFacilityResourcesOptions, IGetResourceByIdsOptions } from '../types/interfaces/resource.interfaces';
9
5
  import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
6
+ import { PurchasedResourceDto } from '../../reservations/dto/purcased-resource.dto';
7
+ import { Addon } from '../../reservations/entities/Addon';
8
+ import { Slot } from '../../reservations/entities/Slots';
9
+ import { ActivityEnum, AmenitiesEnum, OrderByEnum, ProgramTypesEnum, ResourceAgesEnum, ResourceNameTypeEnum, ResourceSubTypeEnum, ResourceTypeEnum, SpacePropertiesEnum, SportsEnum, SurfacesEnum } from '../../services/enums.service';
10
10
  import { OrderByResourceEnum } from '../types/enums/resources.enums';
11
- import { ActivityTimesDto } from '../../dto/activityTimes.dto';
11
+ import { IGetFacilityResourcesOptions, IGetResourceByIdsOptions } from '../types/interfaces/resource.interfaces';
12
12
  export declare class ResourceDto {
13
13
  id: number;
14
14
  type: ResourceNameTypeEnum;
@@ -1 +1 @@
1
- {"version":3,"file":"resource.dto.js","sourceRoot":"","sources":["../../../../src/types/resources/dto/resource.dto.ts"],"names":[],"mappings":";;;AAAA,uDAA+E;AAoB/E,8EAA8E;AAK9E,MAAa,WAAW;CAIvB;AAJD,kCAIC;AAED,MAAa,iBAAkB,SAAQ,0BAAY;CAAG;AAAtD,8CAAsD;AAEtD,MAAa,gBAAiB,SAAQ,0BAAY;CA8DjD;AA9DD,4CA8DC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,+BAA+B;CAY3C;AAZD,0EAYC;AAED,MAAa,yBAA0B,SAAQ,sCAAwB;CAMtE;AAND,8DAMC;AAED,MAAa,kCAAmC,SAAQ,sCAAmB;CAE1E;AAFD,gFAEC;AAED,MAAa,2BAA4B,SAAQ,sCAAmB;CAEnE;AAFD,kEAEC;AAED,MAAa,uCAAwC,SAAQ,kCAAkC;CAE9F;AAFD,0FAEC;AAED,MAAa,6BAA8B,SAAQ,sCAAmB;CAErE;AAFD,sEAEC;AAED,MAAa,wBAAwB;CAUpC;AAVD,4DAUC;AAED,MAAa,iBAAiB;CAE7B;AAFD,8CAEC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,iBAAiB;CAsB7B;AAtBD,8CAsBC"}
1
+ {"version":3,"file":"resource.dto.js","sourceRoot":"","sources":["../../../../src/types/resources/dto/resource.dto.ts"],"names":[],"mappings":";;;AAEA,uDAA+E;AAE/E,8EAA8E;AAoB9E,MAAa,WAAW;CAIvB;AAJD,kCAIC;AAED,MAAa,iBAAkB,SAAQ,0BAAY;CAAG;AAAtD,8CAAsD;AAEtD,MAAa,gBAAiB,SAAQ,0BAAY;CA8DjD;AA9DD,4CA8DC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,+BAA+B;CAY3C;AAZD,0EAYC;AAED,MAAa,yBAA0B,SAAQ,sCAAwB;CAMtE;AAND,8DAMC;AAED,MAAa,kCAAmC,SAAQ,sCAAmB;CAE1E;AAFD,gFAEC;AAED,MAAa,2BAA4B,SAAQ,sCAAmB;CAEnE;AAFD,kEAEC;AAED,MAAa,uCAAwC,SAAQ,kCAAkC;CAE9F;AAFD,0FAEC;AAED,MAAa,6BAA8B,SAAQ,sCAAmB;CAErE;AAFD,sEAEC;AAED,MAAa,wBAAwB;CAUpC;AAVD,4DAUC;AAED,MAAa,iBAAiB;CAE7B;AAFD,8CAEC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,iBAAiB;CAsB7B;AAtBD,8CAsBC"}
@@ -234,7 +234,8 @@ export declare enum InvoiceStatusEnum {
234
234
  ACTIVE = "active",
235
235
  WAITING_ADMIN = "waitingAdmin",
236
236
  WAITING_CLIENT = "waitingClient",
237
- CANCELED = "canceled"
237
+ CANCELED = "canceled",
238
+ DRAFT = "draft"
238
239
  }
239
240
  export declare enum LineItemsStatusEnum {
240
241
  USER_PRODUCT = "UserProduct",
@@ -260,6 +260,7 @@ var InvoiceStatusEnum;
260
260
  InvoiceStatusEnum["WAITING_ADMIN"] = "waitingAdmin";
261
261
  InvoiceStatusEnum["WAITING_CLIENT"] = "waitingClient";
262
262
  InvoiceStatusEnum["CANCELED"] = "canceled";
263
+ InvoiceStatusEnum["DRAFT"] = "draft";
263
264
  })(InvoiceStatusEnum = exports.InvoiceStatusEnum || (exports.InvoiceStatusEnum = {}));
264
265
  var LineItemsStatusEnum;
265
266
  (function (LineItemsStatusEnum) {