@bondsports/types 2.1.71 → 2.1.73

Sign up to get free protection for your applications and to get access to all the features.
Files changed (166) hide show
  1. package/dist/tsconfig.build.tsbuildinfo +1 -1
  2. package/dist/types/cart/types/interfaces/cart.interfaces.d.ts +4 -1
  3. package/dist/types/dto/general.dto.d.ts +2 -1
  4. package/dist/types/dto/general.dto.js.map +1 -1
  5. package/dist/types/entity/ActivityTimes.d.ts +2 -0
  6. package/dist/types/entity/ActivityTimes.js.map +1 -1
  7. package/dist/types/entity/SlotHistory.d.ts +2 -2
  8. package/dist/types/entity/user-payment-method.d.ts +1 -0
  9. package/dist/types/entity/user-payment-method.js.map +1 -1
  10. package/dist/types/import/dto/user-payment-method.dto.d.ts +1 -0
  11. package/dist/types/import/dto/user-payment-method.dto.js.map +1 -1
  12. package/dist/types/index.d.ts +0 -1
  13. package/dist/types/index.js +0 -1
  14. package/dist/types/index.js.map +1 -1
  15. package/dist/types/invoice/types/consts/index.d.ts +1 -0
  16. package/dist/types/invoice/types/consts/index.js +1 -0
  17. package/dist/types/invoice/types/consts/index.js.map +1 -1
  18. package/dist/types/invoice/types/consts/invoice.interfaces.d.ts +14 -0
  19. package/dist/types/{models/interfaces/payment.js → invoice/types/consts/invoice.interfaces.js} +1 -1
  20. package/dist/types/invoice/types/consts/invoice.interfaces.js.map +1 -0
  21. package/dist/types/payment/dto/connected-resources.d.ts +13 -0
  22. package/dist/types/payment/dto/connected-resources.js +10 -0
  23. package/dist/types/payment/dto/connected-resources.js.map +1 -0
  24. package/dist/types/payment/dto/index.d.ts +1 -0
  25. package/dist/types/payment/dto/index.js +1 -0
  26. package/dist/types/payment/dto/index.js.map +1 -1
  27. package/dist/types/payment/dto/payment-method.dto.d.ts +25 -0
  28. package/dist/types/payment/dto/payment-method.dto.js +11 -1
  29. package/dist/types/payment/dto/payment-method.dto.js.map +1 -1
  30. package/dist/types/payment/types/enums/connected-resources.enums.d.ts +4 -0
  31. package/dist/types/payment/types/enums/connected-resources.enums.js +9 -0
  32. package/dist/types/payment/types/enums/connected-resources.enums.js.map +1 -0
  33. package/dist/types/payment/types/enums/index.d.ts +1 -0
  34. package/dist/types/payment/types/enums/index.js +1 -0
  35. package/dist/types/payment/types/enums/index.js.map +1 -1
  36. package/dist/types/payment/types/interfaces/connected-resources.interfaces.d.ts +2 -0
  37. package/dist/types/payment/types/interfaces/connected-resources.interfaces.js +3 -0
  38. package/dist/types/payment/types/interfaces/connected-resources.interfaces.js.map +1 -0
  39. package/dist/types/payment/types/interfaces/index.d.ts +1 -0
  40. package/dist/types/payment/types/interfaces/index.js +1 -0
  41. package/dist/types/payment/types/interfaces/index.js.map +1 -1
  42. package/dist/types/payment/types/interfaces/payment.interfaces.d.ts +13 -1
  43. package/dist/types/payment/types/interfaces/void.interfaces.d.ts +1 -1
  44. package/dist/types/pricing/dto/pricing.dto.d.ts +3 -0
  45. package/dist/types/pricing/dto/pricing.dto.js.map +1 -1
  46. package/dist/types/pricing/entities/Price.d.ts +2 -0
  47. package/dist/types/pricing/entities/Price.js.map +1 -1
  48. package/dist/types/pricing/index.d.ts +1 -0
  49. package/dist/types/pricing/index.js +1 -0
  50. package/dist/types/pricing/index.js.map +1 -1
  51. package/dist/types/pricing/types/index.d.ts +2 -0
  52. package/dist/types/pricing/types/index.js +19 -0
  53. package/dist/types/pricing/types/index.js.map +1 -0
  54. package/dist/types/pricing/types/pricing.enums.d.ts +5 -0
  55. package/dist/types/pricing/types/pricing.enums.js +10 -0
  56. package/dist/types/pricing/types/pricing.enums.js.map +1 -0
  57. package/dist/types/pricing/types/pricing.interfaces.d.ts +5 -0
  58. package/dist/types/{util/types/general.js → pricing/types/pricing.interfaces.js} +1 -1
  59. package/dist/types/pricing/types/pricing.interfaces.js.map +1 -0
  60. package/dist/types/product-pricing/dto/index.d.ts +1 -0
  61. package/dist/types/product-pricing/dto/index.js +1 -0
  62. package/dist/types/product-pricing/dto/index.js.map +1 -1
  63. package/dist/types/product-pricing/dto/product-pricing.dto.d.ts +22 -1
  64. package/dist/types/product-pricing/dto/product-pricing.dto.js +7 -1
  65. package/dist/types/product-pricing/dto/product-pricing.dto.js.map +1 -1
  66. package/dist/types/product-pricing/dto/product.dto.d.ts +5 -1
  67. package/dist/types/product-pricing/dto/product.dto.js.map +1 -1
  68. package/dist/types/product-pricing/dto/rental-product.dto.d.ts +42 -0
  69. package/dist/types/product-pricing/dto/rental-product.dto.js +16 -0
  70. package/dist/types/product-pricing/dto/rental-product.dto.js.map +1 -0
  71. package/dist/types/product-pricing/entities/Product.d.ts +2 -0
  72. package/dist/types/product-pricing/entities/Product.js.map +1 -1
  73. package/dist/types/product-pricing/types/consts/index.d.ts +1 -0
  74. package/dist/types/{models/interfaces → product-pricing/types/consts}/index.js +1 -2
  75. package/dist/types/product-pricing/types/consts/index.js.map +1 -0
  76. package/dist/types/product-pricing/types/consts/product-pricing.consts.d.ts +1 -0
  77. package/dist/types/product-pricing/types/consts/product-pricing.consts.js +5 -0
  78. package/dist/types/product-pricing/types/consts/product-pricing.consts.js.map +1 -0
  79. package/dist/types/product-pricing/types/enums/product.enums.d.ts +8 -0
  80. package/dist/types/product-pricing/types/enums/product.enums.js +10 -1
  81. package/dist/types/product-pricing/types/enums/product.enums.js.map +1 -1
  82. package/dist/types/product-pricing/types/index.d.ts +1 -0
  83. package/dist/types/product-pricing/types/index.js +1 -0
  84. package/dist/types/product-pricing/types/index.js.map +1 -1
  85. package/dist/types/product-pricing/types/interfaces/product-pricing.interfaces.d.ts +25 -0
  86. package/dist/types/programs-seasons/dto/program-seasons.dto.d.ts +2 -2
  87. package/dist/types/reservations/dto/reservation.dto.d.ts +1 -2
  88. package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
  89. package/dist/types/reservations/dto/slot.dto.d.ts +3 -3
  90. package/dist/types/reservations/dto/slot.dto.js.map +1 -1
  91. package/dist/types/reservations/entities/Slots.d.ts +2 -2
  92. package/dist/types/reservations/index.d.ts +1 -1
  93. package/dist/types/reservations/index.js +1 -1
  94. package/dist/types/reservations/index.js.map +1 -1
  95. package/dist/types/reservations/types/consts/index.d.ts +1 -0
  96. package/dist/types/reservations/{interfaces → types/consts}/index.js +1 -2
  97. package/dist/types/reservations/types/consts/index.js.map +1 -0
  98. package/dist/types/reservations/types/consts/reservation.consts.d.ts +5 -0
  99. package/dist/types/reservations/types/consts/reservation.consts.js +9 -0
  100. package/dist/types/reservations/types/consts/reservation.consts.js.map +1 -0
  101. package/dist/types/reservations/types/enums/index.d.ts +1 -0
  102. package/dist/types/{util/types → reservations/types/enums}/index.js +1 -1
  103. package/dist/types/reservations/types/enums/index.js.map +1 -0
  104. package/dist/types/reservations/types/enums/invoice.enums.d.ts +7 -0
  105. package/dist/types/reservations/{interfaces/invoice.js → types/enums/invoice.enums.js} +2 -3
  106. package/dist/types/reservations/types/enums/invoice.enums.js.map +1 -0
  107. package/dist/types/reservations/types/index.d.ts +3 -0
  108. package/dist/types/reservations/types/index.js +20 -0
  109. package/dist/types/reservations/types/index.js.map +1 -0
  110. package/dist/types/reservations/types/interfaces/index.d.ts +2 -0
  111. package/dist/types/reservations/types/interfaces/index.js +19 -0
  112. package/dist/types/reservations/types/interfaces/index.js.map +1 -0
  113. package/dist/types/reservations/types/interfaces/invoice.interfaces.d.ts +45 -0
  114. package/dist/types/reservations/types/interfaces/invoice.interfaces.js +3 -0
  115. package/dist/types/reservations/types/interfaces/invoice.interfaces.js.map +1 -0
  116. package/dist/types/reservations/{interfaces/reservation.d.ts → types/interfaces/reservation.interfaces.d.ts} +71 -71
  117. package/dist/types/reservations/types/interfaces/reservation.interfaces.js +7 -0
  118. package/dist/types/reservations/types/interfaces/reservation.interfaces.js.map +1 -0
  119. package/dist/types/resources/dto/resource.dto.d.ts +1 -0
  120. package/dist/types/resources/dto/resource.dto.js.map +1 -1
  121. package/dist/types/resources/types/interfaces/resource.interfaces.d.ts +2 -0
  122. package/dist/types/services/enums.service.d.ts +11 -4
  123. package/dist/types/services/enums.service.js +7 -0
  124. package/dist/types/services/enums.service.js.map +1 -1
  125. package/dist/types/services/interfaces.service.d.ts +2 -2
  126. package/dist/types/util/index.d.ts +1 -1
  127. package/dist/types/util/index.js +1 -1
  128. package/dist/types/util/index.js.map +1 -1
  129. package/dist/types/util/models/ExitCode.js.map +1 -0
  130. package/dist/types/{models → util/models}/index.d.ts +1 -0
  131. package/dist/types/{models → util/models}/index.js +1 -0
  132. package/dist/types/util/models/index.js.map +1 -0
  133. package/dist/types/util/models/interfaces/date-util.interfaces.js +3 -0
  134. package/dist/types/util/models/interfaces/date-util.interfaces.js.map +1 -0
  135. package/dist/types/util/models/interfaces/general.interfaces.d.ts +4 -0
  136. package/dist/types/util/models/interfaces/general.interfaces.js +3 -0
  137. package/dist/types/util/models/interfaces/general.interfaces.js.map +1 -0
  138. package/dist/types/util/models/interfaces/index.d.ts +2 -0
  139. package/dist/types/util/models/interfaces/index.js +19 -0
  140. package/dist/types/util/models/interfaces/index.js.map +1 -0
  141. package/dist/types/{models/interfaces/date-util.js → util/models/types/general.types.js} +1 -1
  142. package/dist/types/util/models/types/general.types.js.map +1 -0
  143. package/dist/types/util/models/types/index.d.ts +1 -0
  144. package/dist/types/util/models/types/index.js +18 -0
  145. package/dist/types/util/models/types/index.js.map +1 -0
  146. package/package.json +1 -1
  147. package/dist/types/models/ExitCode.js.map +0 -1
  148. package/dist/types/models/index.js.map +0 -1
  149. package/dist/types/models/interfaces/date-util.js.map +0 -1
  150. package/dist/types/models/interfaces/index.d.ts +0 -2
  151. package/dist/types/models/interfaces/index.js.map +0 -1
  152. package/dist/types/models/interfaces/payment.d.ts +0 -13
  153. package/dist/types/models/interfaces/payment.js.map +0 -1
  154. package/dist/types/reservations/interfaces/index.d.ts +0 -2
  155. package/dist/types/reservations/interfaces/index.js.map +0 -1
  156. package/dist/types/reservations/interfaces/invoice.d.ts +0 -53
  157. package/dist/types/reservations/interfaces/invoice.js.map +0 -1
  158. package/dist/types/reservations/interfaces/reservation.js +0 -11
  159. package/dist/types/reservations/interfaces/reservation.js.map +0 -1
  160. package/dist/types/util/types/general.js.map +0 -1
  161. package/dist/types/util/types/index.d.ts +0 -1
  162. package/dist/types/util/types/index.js.map +0 -1
  163. /package/dist/types/{models → util/models}/ExitCode.d.ts +0 -0
  164. /package/dist/types/{models → util/models}/ExitCode.js +0 -0
  165. /package/dist/types/{models/interfaces/date-util.d.ts → util/models/interfaces/date-util.interfaces.d.ts} +0 -0
  166. /package/dist/types/util/{types/general.d.ts → models/types/general.types.d.ts} +0 -0
@@ -1,8 +1,8 @@
1
1
  import { UserAnswersDto } from '../../../dto/application.dto';
2
2
  import { Product } from '../../../product-pricing/entities/Product';
3
+ import { ResourceDto } from '../../../resources/dto/resource.dto';
3
4
  import { CurrencyEnum, PlatformsEnum } from '../../../services/enums.service';
4
5
  import { IPricesOfProductsResults } from '../../../services/interfaces.service';
5
- import { ResourceDto } from '../../../resources/dto/resource.dto';
6
6
  import { Cart } from '../../entities/cart.entity';
7
7
  export interface ICreateCart {
8
8
  platform: PlatformsEnum;
@@ -33,6 +33,9 @@ export interface IValidateCartOptions {
33
33
  skipValidations?: boolean;
34
34
  throwError?: boolean;
35
35
  }
36
+ export interface ICreateCartOptions extends IValidateCartOptions {
37
+ skipOnMissingProduct: boolean;
38
+ }
36
39
  export interface IValidateCartResult {
37
40
  currentPrices: IPricesOfProductsResults[];
38
41
  productsDict?: {
@@ -1,4 +1,5 @@
1
1
  import { OrderByEnum } from '../services/enums.service';
2
+ import { IPagination } from '../util/models/interfaces/general.interfaces';
2
3
  export declare class FindOneParams {
3
4
  id: number;
4
5
  }
@@ -8,7 +9,7 @@ export declare const DEFAULT_PAGE = 1;
8
9
  export declare const MINIMUM_ALLOWED_PRICE = 0.5;
9
10
  export declare const MINIMUM_ALLOWED_PERCENTAGE = 0.01;
10
11
  export declare const HUNDRED_PERCENT = 100;
11
- export declare class PaginationQuery {
12
+ export declare class PaginationQuery implements IPagination {
12
13
  constructor(query?: {
13
14
  page?: number;
14
15
  itemsPerPage?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"general.dto.js","sourceRoot":"","sources":["../../../src/types/dto/general.dto.ts"],"names":[],"mappings":";;;AAEA,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,cAAc;CAE1B;AAFD,wCAEC;AAED,MAAa,WAAW;CAEvB;AAFD,kCAEC;AAED,MAAa,kBAAkB;CAM9B;AAND,gDAMC;AAED,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,wBAAwB;CAEpC;AAFD,4DAEC;AAED,MAAa,kBAAmB,SAAQ,eAAe;CAMtD;AAND,gDAMC"}
1
+ {"version":3,"file":"general.dto.js","sourceRoot":"","sources":["../../../src/types/dto/general.dto.ts"],"names":[],"mappings":";;;AAGA,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,cAAc;CAE1B;AAFD,wCAEC;AAED,MAAa,WAAW;CAEvB;AAFD,kCAEC;AAED,MAAa,kBAAkB;CAM9B;AAND,gDAMC;AAED,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,wBAAwB;CAEpC;AAFD,4DAEC;AAED,MAAa,kBAAmB,SAAQ,eAAe;CAMtD;AAND,gDAMC"}
@@ -3,6 +3,7 @@ import { BondBaseEntity } from './BondBaseEntity';
3
3
  import { ProgramSeason } from '../programs-seasons/entities/ProgramSeason';
4
4
  import { Product } from '../product-pricing/entities/Product';
5
5
  import { Event } from './Events';
6
+ import { Price } from '../pricing/entities/Price';
6
7
  export declare class ActivityTimes extends BondBaseEntity {
7
8
  parentType: ResourceNameTypeEnum | ProductTypesEnum;
8
9
  parentId: number;
@@ -18,4 +19,5 @@ export declare class ActivityTimes extends BondBaseEntity {
18
19
  availabilityEndDate: string;
19
20
  proudct: Product;
20
21
  event: Event;
22
+ price: Price;
21
23
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ActivityTimes.js","sourceRoot":"","sources":["../../../src/types/entity/ActivityTimes.ts"],"names":[],"mappings":";;;AACA,qDAAkD;AAOlD,MAAa,aAAc,SAAQ,+BAAc;CA4BhD;AA5BD,sCA4BC"}
1
+ {"version":3,"file":"ActivityTimes.js","sourceRoot":"","sources":["../../../src/types/entity/ActivityTimes.ts"],"names":[],"mappings":";;;AACA,qDAAkD;AAQlD,MAAa,aAAc,SAAQ,+BAAc;CA8BhD;AA9BD,sCA8BC"}
@@ -1,6 +1,6 @@
1
1
  import { OrganizationConnectionBaseEntity } from './OrganizationConnectionBaseEntity';
2
2
  import { ReservationPaymentStatusEnum, ReservationStatusEnum, SlotTypeEnum } from '../services/enums.service';
3
- import { AddonMetadata } from '../reservations/interfaces/reservation';
3
+ import { IAddonMetadata } from '../reservations/types/interfaces/reservation.interfaces';
4
4
  export declare class SlotHistory extends OrganizationConnectionBaseEntity {
5
5
  slotId: number;
6
6
  reservationId?: number;
@@ -20,7 +20,7 @@ export declare class SlotHistory extends OrganizationConnectionBaseEntity {
20
20
  slotType: SlotTypeEnum;
21
21
  productsUserId?: number;
22
22
  addonsProductUserIds?: number[];
23
- addonsMetadata: AddonMetadata[];
23
+ addonsMetadata: IAddonMetadata[];
24
24
  segmentId: number;
25
25
  eventId: number;
26
26
  sportIds: number[];
@@ -7,6 +7,7 @@ export declare class UserPaymentMethod extends BondBaseEntity {
7
7
  paymentMethodType: PaymentMethodTypeEnum;
8
8
  subPaymentMethodType?: SubPaymentMethodTypeEnum;
9
9
  paymentMethodId: string;
10
+ fingerprint: string;
10
11
  ccLast4?: string;
11
12
  ccBrand?: string;
12
13
  importedId?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"user-payment-method.js","sourceRoot":"","sources":["../../../src/types/entity/user-payment-method.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAElD,MAAa,iBAAkB,SAAQ,+BAAc;CAwBpD;AAxBD,8CAwBC"}
1
+ {"version":3,"file":"user-payment-method.js","sourceRoot":"","sources":["../../../src/types/entity/user-payment-method.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAElD,MAAa,iBAAkB,SAAQ,+BAAc;CA0BpD;AA1BD,8CA0BC"}
@@ -4,6 +4,7 @@ import { ImportResponseDto } from './import.dto';
4
4
  export declare class ImportUserPaymentMethodDto {
5
5
  importedCustomerId?: string;
6
6
  userId?: number;
7
+ fingerprint?: string;
7
8
  vendorAccountId: string;
8
9
  vendorPaymentMethodId: string;
9
10
  vendorPaymentType: PaymentMethodTypeEnum;
@@ -1 +1 @@
1
- {"version":3,"file":"user-payment-method.dto.js","sourceRoot":"","sources":["../../../../src/types/import/dto/user-payment-method.dto.ts"],"names":[],"mappings":";;;AAEA,6CAAiD;AAEjD,MAAa,0BAA0B;CAgBtC;AAhBD,gEAgBC;AAED,MAAa,kCAAmC,SAAQ,8BAAuC;CAAG;AAAlG,gFAAkG"}
1
+ {"version":3,"file":"user-payment-method.dto.js","sourceRoot":"","sources":["../../../../src/types/import/dto/user-payment-method.dto.ts"],"names":[],"mappings":";;;AAEA,6CAAiD;AAEjD,MAAa,0BAA0B;CAkBtC;AAlBD,gEAkBC;AAED,MAAa,kCAAmC,SAAQ,8BAAuC;CAAG;AAAlG,gFAAkG"}
@@ -17,7 +17,6 @@ export * from './league';
17
17
  export * from './locks';
18
18
  export * from './media';
19
19
  export * from './membership';
20
- export * from './models';
21
20
  export * from './monitor-config';
22
21
  export * from './notes';
23
22
  export * from './notifications';
@@ -33,7 +33,6 @@ __exportStar(require("./league"), exports);
33
33
  __exportStar(require("./locks"), exports);
34
34
  __exportStar(require("./media"), exports);
35
35
  __exportStar(require("./membership"), exports);
36
- __exportStar(require("./models"), exports);
37
36
  __exportStar(require("./monitor-config"), exports);
38
37
  __exportStar(require("./notes"), exports);
39
38
  __exportStar(require("./notifications"), exports);
@@ -1 +1 @@
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,8CAA4B;AAC5B,0CAAwB;AACxB,6CAA2B;AAC3B,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,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,8CAA4B;AAC5B,0CAAwB;AACxB,6CAA2B;AAC3B,2CAAyB;AACzB,yCAAuB;AACvB,oDAAkC;AAClC,yCAAuB;AACvB,4CAA0B;AAC1B,6CAA2B"}
@@ -1 +1,2 @@
1
1
  export * from './invoice.consts';
2
+ export * from './invoice.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("./invoice.consts"), exports);
18
+ __exportStar(require("./invoice.interfaces"), exports);
18
19
  //# 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"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/invoice/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,uDAAqC"}
@@ -0,0 +1,14 @@
1
+ import { Invoice } from '../../../entity/Invoice';
2
+ import { UserPaymentMethod } from '../../../entity/user-payment-method';
3
+ export interface InvoiceAndRelatedMethod {
4
+ invoice: Invoice;
5
+ paymentMethod?: Pick<UserPaymentMethod, 'ccBrand' | 'ccLast4' | 'paymentMethodType'>;
6
+ }
7
+ export interface InvoiceAndMethodIds {
8
+ invoiceId: number;
9
+ pmId: number;
10
+ }
11
+ export interface InvoiceAndRelatedMethodDto {
12
+ pendingInvoices?: InvoiceAndRelatedMethod[];
13
+ futureInvoices?: InvoiceAndRelatedMethod[];
14
+ }
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=payment.js.map
3
+ //# sourceMappingURL=invoice.interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invoice.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/invoice/types/consts/invoice.interfaces.ts"],"names":[],"mappings":""}
@@ -0,0 +1,13 @@
1
+ import { PaginationQuery } from '../../dto/general.dto';
2
+ import { OrderByEnum, ResourceNameTypeEnum } from '../../services/enums.service';
3
+ import { ResourceSortByEnum } from '../types/enums/connected-resources.enums';
4
+ declare class ConnectedResourcesFilters extends PaginationQuery {
5
+ search?: string;
6
+ paymentMethodIds: string[];
7
+ resourceTypes?: ResourceNameTypeEnum[];
8
+ }
9
+ export declare class GetResourcesByFiltersDto extends ConnectedResourcesFilters {
10
+ sortBy?: ResourceSortByEnum[];
11
+ order?: OrderByEnum[];
12
+ }
13
+ export {};
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetResourcesByFiltersDto = void 0;
4
+ const general_dto_1 = require("../../dto/general.dto");
5
+ class ConnectedResourcesFilters extends general_dto_1.PaginationQuery {
6
+ }
7
+ class GetResourcesByFiltersDto extends ConnectedResourcesFilters {
8
+ }
9
+ exports.GetResourcesByFiltersDto = GetResourcesByFiltersDto;
10
+ //# sourceMappingURL=connected-resources.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connected-resources.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/connected-resources.ts"],"names":[],"mappings":";;;AAAA,uDAAwD;AAIxD,MAAM,yBAA0B,SAAQ,6BAAe;CAMtD;AAED,MAAa,wBAAyB,SAAQ,yBAAyB;CAKtE;AALD,4DAKC"}
@@ -1,3 +1,4 @@
1
+ export * from './connected-resources';
1
2
  export * from './discount.dto';
2
3
  export * from './payment-method.dto';
3
4
  export * from './payment-plan.dto';
@@ -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("./connected-resources"), exports);
17
18
  __exportStar(require("./discount.dto"), exports);
18
19
  __exportStar(require("./payment-method.dto"), exports);
19
20
  __exportStar(require("./payment-plan.dto"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,uDAAqC;AACrC,qDAAmC;AACnC,gDAA8B;AAC9B,mDAAiC;AACjC,+CAA6B;AAC7B,6CAA2B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,iDAA+B;AAC/B,uDAAqC;AACrC,qDAAmC;AACnC,gDAA8B;AAC9B,mDAAiC;AACjC,+CAA6B;AAC7B,6CAA2B"}
@@ -2,12 +2,34 @@ import { ResourceNameTypeEnum } from '../../services/enums.service';
2
2
  import { PaymentMethodTypeEnum, SubPaymentMethodTypeEnum } from '../types/enums/payment.enums';
3
3
  import { FeeDto } from '../../fee/dto/fee.dto';
4
4
  import { UserPaymentMethod } from '../../entity/user-payment-method';
5
+ import { UserIdDto } from '../../user/dto/user.dto';
5
6
  export interface IConnectedResource {
6
7
  resourceId: number;
7
8
  resourceType: ResourceNameTypeEnum;
8
9
  organizationId: number;
9
10
  name: string;
10
11
  createdAt: Date;
12
+ paymentMethodType?: PaymentMethodTypeEnum;
13
+ ccBrand?: string;
14
+ ccLast4?: string;
15
+ invoiceId?: number;
16
+ membershipId?: number;
17
+ }
18
+ export declare class UserPaymentMethodSimpleDto {
19
+ paymentMethodId?: string;
20
+ paymentMethodType?: PaymentMethodTypeEnum;
21
+ ccLast4?: string;
22
+ ccBrand?: string;
23
+ }
24
+ export declare class ConnectedResourceDto {
25
+ resourceId: number;
26
+ resourceType: ResourceNameTypeEnum;
27
+ organizationId: number;
28
+ name: string;
29
+ paymentMethod: UserPaymentMethodSimpleDto;
30
+ createdAt: Date;
31
+ invoiceId?: number;
32
+ membershipId?: number;
11
33
  }
12
34
  export declare class UpdateConnectedResourcePaymentMethodDto {
13
35
  resourceId: number;
@@ -37,3 +59,6 @@ export declare class UserPaymentMethodOption {
37
59
  fee?: FeeDto;
38
60
  options?: UserPaymentMethod[];
39
61
  }
62
+ export declare class ByUserAndUserPaymentMethodDto extends UserIdDto {
63
+ paymentMethodId: string;
64
+ }
@@ -1,6 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UserPaymentMethodOption = exports.UserPaymentMethodDto = exports.UpdateConnectedResourcePaymentMethodDto = void 0;
3
+ exports.ByUserAndUserPaymentMethodDto = exports.UserPaymentMethodOption = exports.UserPaymentMethodDto = exports.UpdateConnectedResourcePaymentMethodDto = exports.ConnectedResourceDto = exports.UserPaymentMethodSimpleDto = void 0;
4
+ const user_dto_1 = require("../../user/dto/user.dto");
5
+ class UserPaymentMethodSimpleDto {
6
+ }
7
+ exports.UserPaymentMethodSimpleDto = UserPaymentMethodSimpleDto;
8
+ class ConnectedResourceDto {
9
+ }
10
+ exports.ConnectedResourceDto = ConnectedResourceDto;
4
11
  class UpdateConnectedResourcePaymentMethodDto {
5
12
  }
6
13
  exports.UpdateConnectedResourcePaymentMethodDto = UpdateConnectedResourcePaymentMethodDto;
@@ -10,4 +17,7 @@ exports.UserPaymentMethodDto = UserPaymentMethodDto;
10
17
  class UserPaymentMethodOption {
11
18
  }
12
19
  exports.UserPaymentMethodOption = UserPaymentMethodOption;
20
+ class ByUserAndUserPaymentMethodDto extends user_dto_1.UserIdDto {
21
+ }
22
+ exports.ByUserAndUserPaymentMethodDto = ByUserAndUserPaymentMethodDto;
13
23
  //# sourceMappingURL=payment-method.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"payment-method.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/payment-method.dto.ts"],"names":[],"mappings":";;;AAaA,MAAa,uCAAuC;CAUnD;AAVD,0FAUC;AAED,MAAa,oBAAoB;CA0BhC;AA1BD,oDA0BC;AAED,MAAa,uBAAuB;CAQnC;AARD,0DAQC"}
1
+ {"version":3,"file":"payment-method.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/payment-method.dto.ts"],"names":[],"mappings":";;;AAIA,sDAAoD;AAepD,MAAa,0BAA0B;CAQtC;AARD,gEAQC;AAED,MAAa,oBAAoB;CAgBhC;AAhBD,oDAgBC;AAED,MAAa,uCAAuC;CAUnD;AAVD,0FAUC;AAED,MAAa,oBAAoB;CA0BhC;AA1BD,oDA0BC;AAED,MAAa,uBAAuB;CAQnC;AARD,0DAQC;AAED,MAAa,6BAA8B,SAAQ,oBAAS;CAE3D;AAFD,sEAEC"}
@@ -0,0 +1,4 @@
1
+ export declare enum ResourceSortByEnum {
2
+ NAME = "name",
3
+ RESOURCE_TYPE = "resourceType"
4
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ResourceSortByEnum = void 0;
4
+ var ResourceSortByEnum;
5
+ (function (ResourceSortByEnum) {
6
+ ResourceSortByEnum["NAME"] = "name";
7
+ ResourceSortByEnum["RESOURCE_TYPE"] = "resourceType";
8
+ })(ResourceSortByEnum = exports.ResourceSortByEnum || (exports.ResourceSortByEnum = {}));
9
+ //# sourceMappingURL=connected-resources.enums.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connected-resources.enums.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/enums/connected-resources.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC7B,mCAAa,CAAA;IACb,oDAA8B,CAAA;AAC/B,CAAC,EAHW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAG7B"}
@@ -1,3 +1,4 @@
1
+ export * from './connected-resources.enums';
1
2
  export * from './discount.enums';
2
3
  export * from './linked-account.enums';
3
4
  export * from './payment-plan.enums';
@@ -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("./connected-resources.enums"), exports);
17
18
  __exportStar(require("./discount.enums"), exports);
18
19
  __exportStar(require("./linked-account.enums"), exports);
19
20
  __exportStar(require("./payment-plan.enums"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,yDAAuC;AACvC,uDAAqC;AACrC,kDAAgC;AAChC,iDAA+B;AAC/B,+CAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,mDAAiC;AACjC,yDAAuC;AACvC,uDAAqC;AACrC,kDAAgC;AAChC,iDAA+B;AAC/B,+CAA6B"}
@@ -0,0 +1,2 @@
1
+ import { IConnectedResource } from '../../dto/payment-method.dto';
2
+ export type SortConnectedMethodsByFields = Pick<IConnectedResource, 'name' | 'resourceType'>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=connected-resources.interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connected-resources.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/interfaces/connected-resources.interfaces.ts"],"names":[],"mappings":""}
@@ -1,3 +1,4 @@
1
+ export * from './connected-resources.interfaces';
1
2
  export * from './discount.interfaces';
2
3
  export * from './payment.interfaces';
3
4
  export * from './promo-code.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("./connected-resources.interfaces"), exports);
17
18
  __exportStar(require("./discount.interfaces"), exports);
18
19
  __exportStar(require("./payment.interfaces"), exports);
19
20
  __exportStar(require("./promo-code.interfaces"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,uDAAqC;AACrC,0DAAwC;AACxC,sDAAoC;AACpC,kEAAgD;AAChD,sDAAoC;AACpC,mEAAiD;AACjD,oDAAkC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mEAAiD;AACjD,wDAAsC;AACtC,uDAAqC;AACrC,0DAAwC;AACxC,sDAAoC;AACpC,kEAAgD;AAChD,sDAAoC;AACpC,mEAAiD;AACjD,oDAAkC"}
@@ -3,7 +3,7 @@ import { Customer } from '../../../entity/Customer';
3
3
  import { LineItems } from '../../../entity/LineItems';
4
4
  import { FeeDto } from '../../../fee/dto/fee.dto';
5
5
  import { IPurchasePayment } from '../../../purchase/types/interfaces/purchase.interfaces';
6
- import { PlatformsEnum } from '../../../services/enums.service';
6
+ import { PlatformsEnum, ReservationPaymentStatusEnum, ReservationStatusEnum } from '../../../services/enums.service';
7
7
  import { CreateNoteDto } from '../../dto/payment.dto';
8
8
  import { Payment } from '../../entities/Payment';
9
9
  import { PaymentMethodTypeEnum, SubPaymentMethodTypeEnum } from '../enums/payment.enums';
@@ -95,3 +95,15 @@ export interface IHandleGetPayment {
95
95
  onlyPublicNotes?: boolean;
96
96
  includeInvoice?: boolean;
97
97
  }
98
+ export interface PaymentStatus {
99
+ parentId: number;
100
+ paymentStatus: ReservationPaymentStatusEnum;
101
+ approvalStatus?: ReservationStatusEnum;
102
+ id?: number;
103
+ }
104
+ export interface PaymentStatusesDict {
105
+ [id: number]: PaymentStatus[];
106
+ }
107
+ export interface PaymentStatusDict {
108
+ [id: number]: ReservationPaymentStatusEnum;
109
+ }
@@ -1,6 +1,6 @@
1
1
  import { Invoice } from '../../../entity/Invoice';
2
2
  import { LineItems } from '../../../entity/LineItems';
3
- import { TRevertedResources } from '../../../reservations/interfaces/reservation';
3
+ import { TRevertedResources } from '../../../reservations/types/interfaces/reservation.interfaces';
4
4
  import { ResourceNameTypeEnum } from '../../../services/enums.service';
5
5
  import { CreateNoteDto, RevertMetaDto } from '../../dto/payment.dto';
6
6
  import { InvoiceDiscountOnEnum } from '../enums/discount.enums';
@@ -51,4 +51,7 @@ export declare class CreatePriceDto {
51
51
  discountValue?: number;
52
52
  discountMethod?: DiscountMethodsEnum;
53
53
  isDefaultPriceForProduct?: boolean;
54
+ maxQuantity?: number;
55
+ minQuantity?: number;
56
+ packageId?: number;
54
57
  }
@@ -1 +1 @@
1
- {"version":3,"file":"pricing.dto.js","sourceRoot":"","sources":["../../../../src/types/pricing/dto/pricing.dto.ts"],"names":[],"mappings":";;;AAAA,8EAA8E;AAI9E,MAAa,yBAAyB;CAIrC;AAJD,8DAIC;AAED,MAAa,gCAAgC;CAE5C;AAFD,4EAEC;AAED,MAAa,kCAAkC;CAG9C;AAHD,gFAGC;AAED,MAAa,kBAAmB,SAAQ,sCAAmB;CAQ1D;AARD,gDAQC;AAED,MAAa,yBAAyB;CAGrC;AAHD,8DAGC;AAED,MAAa,yBAAyB;CAErC;AAFD,8DAEC;AAED,MAAa,6BAA6B;CAIzC;AAJD,sEAIC;AAED,MAAa,2BAA2B;CAEvC;AAFD,kEAEC;AAED,MAAa,6BAA6B;CAYzC;AAZD,sEAYC;AAED,MAAa,cAAc;CAkB1B;AAlBD,wCAkBC"}
1
+ {"version":3,"file":"pricing.dto.js","sourceRoot":"","sources":["../../../../src/types/pricing/dto/pricing.dto.ts"],"names":[],"mappings":";;;AAAA,8EAA8E;AAI9E,MAAa,yBAAyB;CAIrC;AAJD,8DAIC;AAED,MAAa,gCAAgC;CAE5C;AAFD,4EAEC;AAED,MAAa,kCAAkC;CAG9C;AAHD,gFAGC;AAED,MAAa,kBAAmB,SAAQ,sCAAmB;CAQ1D;AARD,gDAQC;AAED,MAAa,yBAAyB;CAGrC;AAHD,8DAGC;AAED,MAAa,yBAAyB;CAErC;AAFD,8DAEC;AAED,MAAa,6BAA6B;CAIzC;AAJD,sEAIC;AAED,MAAa,2BAA2B;CAEvC;AAFD,kEAEC;AAED,MAAa,6BAA6B;CAYzC;AAZD,sEAYC;AAED,MAAa,cAAc;CAwB1B;AAxBD,wCAwBC"}
@@ -1,6 +1,7 @@
1
1
  import { Product } from '../../product-pricing/entities/Product';
2
2
  import { CurrencyEnum, DiscountMethodsEnum } from '../../services/enums.service';
3
3
  import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
4
+ import { ActivityTimes } from '../../entity/ActivityTimes';
4
5
  export declare class Price extends OrganizationConnectionBaseEntity {
5
6
  productId: number;
6
7
  product: Product;
@@ -18,4 +19,5 @@ export declare class Price extends OrganizationConnectionBaseEntity {
18
19
  maxQuantity?: number;
19
20
  minQuantity?: number;
20
21
  taxIncludedPrice?: number;
22
+ activityTimes?: ActivityTimes[];
21
23
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Price.js","sourceRoot":"","sources":["../../../../src/types/pricing/entities/Price.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAGjG,MAAa,KAAM,SAAQ,mEAAgC;CA8B1D;AA9BD,sBA8BC"}
1
+ {"version":3,"file":"Price.js","sourceRoot":"","sources":["../../../../src/types/pricing/entities/Price.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAIjG,MAAa,KAAM,SAAQ,mEAAgC;CAgC1D;AAhCD,sBAgCC"}
@@ -1,2 +1,3 @@
1
1
  export * from './dto';
2
2
  export * from './entities';
3
+ export * from './types';
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./dto"), exports);
18
18
  __exportStar(require("./entities"), exports);
19
+ __exportStar(require("./types"), exports);
19
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/pricing/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,6CAA2B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/pricing/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,6CAA2B;AAC3B,0CAAwB"}
@@ -0,0 +1,2 @@
1
+ export * from './pricing.enums';
2
+ export * from './pricing.interfaces';
@@ -0,0 +1,19 @@
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("./pricing.enums"), exports);
18
+ __exportStar(require("./pricing.interfaces"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/pricing/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,uDAAqC"}
@@ -0,0 +1,5 @@
1
+ export declare enum PriceTypeEnum {
2
+ GROUP = "group",
3
+ PER_PARTICIPANT = "per_participant",
4
+ RENTAL = "rental"
5
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PriceTypeEnum = void 0;
4
+ var PriceTypeEnum;
5
+ (function (PriceTypeEnum) {
6
+ PriceTypeEnum["GROUP"] = "group";
7
+ PriceTypeEnum["PER_PARTICIPANT"] = "per_participant";
8
+ PriceTypeEnum["RENTAL"] = "rental";
9
+ })(PriceTypeEnum = exports.PriceTypeEnum || (exports.PriceTypeEnum = {}));
10
+ //# sourceMappingURL=pricing.enums.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pricing.enums.js","sourceRoot":"","sources":["../../../../src/types/pricing/types/pricing.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAIX;AAJD,WAAY,aAAa;IACxB,gCAAe,CAAA;IACf,oDAAmC,CAAA;IACnC,kCAAiB,CAAA;AAClB,CAAC,EAJW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAIxB"}
@@ -0,0 +1,5 @@
1
+ import { Price } from '../entities/Price';
2
+ export interface CreatePricesResult {
3
+ prices: Price[];
4
+ defaultPrice?: Price;
5
+ }
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=general.js.map
3
+ //# sourceMappingURL=pricing.interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pricing.interfaces.js","sourceRoot":"","sources":["../../../../src/types/pricing/types/pricing.interfaces.ts"],"names":[],"mappings":""}
@@ -1,3 +1,4 @@
1
1
  export * from './product-pricing.dto';
2
2
  export * from './product-resource.dto';
3
3
  export * from './product.dto';
4
+ export * from './rental-product.dto';
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./product-pricing.dto"), exports);
18
18
  __exportStar(require("./product-resource.dto"), exports);
19
19
  __exportStar(require("./product.dto"), exports);
20
+ __exportStar(require("./rental-product.dto"), exports);
20
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,yDAAuC;AACvC,gDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,yDAAuC;AACvC,gDAA8B;AAC9B,uDAAqC"}
@@ -1,8 +1,10 @@
1
1
  import { UserAnswersDto } from '../../dto/application.dto';
2
2
  import { PaginationQuery } from '../../dto/general.dto';
3
3
  import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
4
- import { ProductTypesEnum } from '../../services/enums.service';
4
+ import { ActivityEnum, OrderByEnum, ProductTypesEnum, SportsEnum } from '../../services/enums.service';
5
5
  import { ResourceDto } from '../../resources/dto/resource.dto';
6
+ import { OrderByProductEnum } from '../types/enums/product.enums';
7
+ import { IGetProductsByTypeOptions } from '../types/interfaces/product-pricing.interfaces';
6
8
  export declare class FindPriceOfProductDto {
7
9
  id: number;
8
10
  productId: number;
@@ -56,3 +58,22 @@ export declare class SetStationSubcategoriesDto {
56
58
  export declare class archiveDto {
57
59
  isArchive: boolean;
58
60
  }
61
+ export declare class GetProductsByTypeDto extends ByOrganizationIdDto {
62
+ productType: ProductTypesEnum;
63
+ }
64
+ export declare class GetProductsByTypeQueryDto extends PaginationQuery implements IGetProductsByTypeOptions {
65
+ productIds?: number[];
66
+ includeResources?: boolean;
67
+ includeArchived?: boolean;
68
+ includeCurrentPrice?: boolean;
69
+ includePricesSchedule?: boolean;
70
+ facilitiesIds?: number[];
71
+ resourcesIds?: number[];
72
+ excludeResourceIds?: number[];
73
+ excludeProductIds?: number[];
74
+ statuses?: ActivityEnum[];
75
+ sports?: SportsEnum[];
76
+ search?: string;
77
+ sortBy?: OrderByProductEnum;
78
+ order?: OrderByEnum;
79
+ }