@bondsports/types 2.1.72 → 2.1.73

Sign up to get free protection for your applications and to get access to all the features.
Files changed (144) 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/SlotHistory.d.ts +2 -2
  6. package/dist/types/entity/user-payment-method.d.ts +1 -0
  7. package/dist/types/entity/user-payment-method.js.map +1 -1
  8. package/dist/types/import/dto/user-payment-method.dto.d.ts +1 -0
  9. package/dist/types/import/dto/user-payment-method.dto.js.map +1 -1
  10. package/dist/types/index.d.ts +0 -1
  11. package/dist/types/index.js +0 -1
  12. package/dist/types/index.js.map +1 -1
  13. package/dist/types/invoice/types/consts/index.d.ts +1 -0
  14. package/dist/types/invoice/types/consts/index.js +1 -0
  15. package/dist/types/invoice/types/consts/index.js.map +1 -1
  16. package/dist/types/invoice/types/consts/invoice.interfaces.d.ts +14 -0
  17. package/dist/types/{models/interfaces/payment.js → invoice/types/consts/invoice.interfaces.js} +1 -1
  18. package/dist/types/invoice/types/consts/invoice.interfaces.js.map +1 -0
  19. package/dist/types/payment/dto/connected-resources.d.ts +13 -0
  20. package/dist/types/payment/dto/connected-resources.js +10 -0
  21. package/dist/types/payment/dto/connected-resources.js.map +1 -0
  22. package/dist/types/payment/dto/index.d.ts +1 -0
  23. package/dist/types/payment/dto/index.js +1 -0
  24. package/dist/types/payment/dto/index.js.map +1 -1
  25. package/dist/types/payment/dto/payment-method.dto.d.ts +25 -0
  26. package/dist/types/payment/dto/payment-method.dto.js +11 -1
  27. package/dist/types/payment/dto/payment-method.dto.js.map +1 -1
  28. package/dist/types/payment/types/enums/connected-resources.enums.d.ts +4 -0
  29. package/dist/types/payment/types/enums/connected-resources.enums.js +9 -0
  30. package/dist/types/payment/types/enums/connected-resources.enums.js.map +1 -0
  31. package/dist/types/payment/types/enums/index.d.ts +1 -0
  32. package/dist/types/payment/types/enums/index.js +1 -0
  33. package/dist/types/payment/types/enums/index.js.map +1 -1
  34. package/dist/types/payment/types/interfaces/connected-resources.interfaces.d.ts +2 -0
  35. package/dist/types/payment/types/interfaces/connected-resources.interfaces.js +3 -0
  36. package/dist/types/payment/types/interfaces/connected-resources.interfaces.js.map +1 -0
  37. package/dist/types/payment/types/interfaces/index.d.ts +1 -0
  38. package/dist/types/payment/types/interfaces/index.js +1 -0
  39. package/dist/types/payment/types/interfaces/index.js.map +1 -1
  40. package/dist/types/payment/types/interfaces/payment.interfaces.d.ts +13 -1
  41. package/dist/types/payment/types/interfaces/void.interfaces.d.ts +1 -1
  42. package/dist/types/pricing/dto/pricing.dto.d.ts +0 -4
  43. package/dist/types/pricing/dto/pricing.dto.js.map +1 -1
  44. package/dist/types/product-pricing/dto/product-pricing.dto.d.ts +22 -1
  45. package/dist/types/product-pricing/dto/product-pricing.dto.js +7 -1
  46. package/dist/types/product-pricing/dto/product-pricing.dto.js.map +1 -1
  47. package/dist/types/product-pricing/dto/product.dto.d.ts +5 -1
  48. package/dist/types/product-pricing/dto/product.dto.js.map +1 -1
  49. package/dist/types/product-pricing/dto/rental-product.dto.d.ts +12 -3
  50. package/dist/types/product-pricing/dto/rental-product.dto.js +7 -1
  51. package/dist/types/product-pricing/dto/rental-product.dto.js.map +1 -1
  52. package/dist/types/product-pricing/entities/Product.d.ts +2 -0
  53. package/dist/types/product-pricing/entities/Product.js.map +1 -1
  54. package/dist/types/product-pricing/types/consts/index.d.ts +1 -0
  55. package/dist/types/{models/interfaces → product-pricing/types/consts}/index.js +1 -2
  56. package/dist/types/product-pricing/types/consts/index.js.map +1 -0
  57. package/dist/types/product-pricing/types/consts/product-pricing.consts.d.ts +1 -0
  58. package/dist/types/product-pricing/types/consts/product-pricing.consts.js +5 -0
  59. package/dist/types/product-pricing/types/consts/product-pricing.consts.js.map +1 -0
  60. package/dist/types/product-pricing/types/enums/product.enums.d.ts +8 -0
  61. package/dist/types/product-pricing/types/enums/product.enums.js +10 -1
  62. package/dist/types/product-pricing/types/enums/product.enums.js.map +1 -1
  63. package/dist/types/product-pricing/types/index.d.ts +1 -0
  64. package/dist/types/product-pricing/types/index.js +1 -0
  65. package/dist/types/product-pricing/types/index.js.map +1 -1
  66. package/dist/types/product-pricing/types/interfaces/product-pricing.interfaces.d.ts +25 -0
  67. package/dist/types/programs-seasons/dto/program-seasons.dto.d.ts +2 -2
  68. package/dist/types/reservations/dto/reservation.dto.d.ts +1 -2
  69. package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
  70. package/dist/types/reservations/dto/slot.dto.d.ts +3 -3
  71. package/dist/types/reservations/dto/slot.dto.js.map +1 -1
  72. package/dist/types/reservations/entities/Slots.d.ts +2 -2
  73. package/dist/types/reservations/index.d.ts +1 -1
  74. package/dist/types/reservations/index.js +1 -1
  75. package/dist/types/reservations/index.js.map +1 -1
  76. package/dist/types/reservations/types/consts/index.d.ts +1 -0
  77. package/dist/types/reservations/{interfaces → types/consts}/index.js +1 -2
  78. package/dist/types/reservations/types/consts/index.js.map +1 -0
  79. package/dist/types/reservations/types/consts/reservation.consts.d.ts +5 -0
  80. package/dist/types/reservations/types/consts/reservation.consts.js +9 -0
  81. package/dist/types/reservations/types/consts/reservation.consts.js.map +1 -0
  82. package/dist/types/reservations/types/enums/index.d.ts +1 -0
  83. package/dist/types/{util/types → reservations/types/enums}/index.js +1 -1
  84. package/dist/types/reservations/types/enums/index.js.map +1 -0
  85. package/dist/types/reservations/types/enums/invoice.enums.d.ts +7 -0
  86. package/dist/types/reservations/{interfaces/invoice.js → types/enums/invoice.enums.js} +2 -3
  87. package/dist/types/reservations/types/enums/invoice.enums.js.map +1 -0
  88. package/dist/types/reservations/types/index.d.ts +3 -0
  89. package/dist/types/reservations/types/index.js +20 -0
  90. package/dist/types/reservations/types/index.js.map +1 -0
  91. package/dist/types/reservations/types/interfaces/index.d.ts +2 -0
  92. package/dist/types/reservations/types/interfaces/index.js +19 -0
  93. package/dist/types/reservations/types/interfaces/index.js.map +1 -0
  94. package/dist/types/reservations/types/interfaces/invoice.interfaces.d.ts +45 -0
  95. package/dist/types/{util/types/general.js → reservations/types/interfaces/invoice.interfaces.js} +1 -1
  96. package/dist/types/reservations/types/interfaces/invoice.interfaces.js.map +1 -0
  97. package/dist/types/reservations/{interfaces/reservation.d.ts → types/interfaces/reservation.interfaces.d.ts} +71 -71
  98. package/dist/types/reservations/types/interfaces/reservation.interfaces.js +7 -0
  99. package/dist/types/reservations/types/interfaces/reservation.interfaces.js.map +1 -0
  100. package/dist/types/resources/dto/resource.dto.d.ts +1 -0
  101. package/dist/types/resources/dto/resource.dto.js.map +1 -1
  102. package/dist/types/resources/types/interfaces/resource.interfaces.d.ts +2 -0
  103. package/dist/types/services/interfaces.service.d.ts +2 -2
  104. package/dist/types/util/index.d.ts +1 -1
  105. package/dist/types/util/index.js +1 -1
  106. package/dist/types/util/index.js.map +1 -1
  107. package/dist/types/util/models/ExitCode.js.map +1 -0
  108. package/dist/types/{models → util/models}/index.d.ts +1 -0
  109. package/dist/types/{models → util/models}/index.js +1 -0
  110. package/dist/types/util/models/index.js.map +1 -0
  111. package/dist/types/util/models/interfaces/date-util.interfaces.js +3 -0
  112. package/dist/types/util/models/interfaces/date-util.interfaces.js.map +1 -0
  113. package/dist/types/util/models/interfaces/general.interfaces.d.ts +4 -0
  114. package/dist/types/util/models/interfaces/general.interfaces.js +3 -0
  115. package/dist/types/util/models/interfaces/general.interfaces.js.map +1 -0
  116. package/dist/types/util/models/interfaces/index.d.ts +2 -0
  117. package/dist/types/util/models/interfaces/index.js +19 -0
  118. package/dist/types/util/models/interfaces/index.js.map +1 -0
  119. package/dist/types/{models/interfaces/date-util.js → util/models/types/general.types.js} +1 -1
  120. package/dist/types/util/models/types/general.types.js.map +1 -0
  121. package/dist/types/util/models/types/index.d.ts +1 -0
  122. package/dist/types/util/models/types/index.js +18 -0
  123. package/dist/types/util/models/types/index.js.map +1 -0
  124. package/package.json +1 -1
  125. package/dist/types/models/ExitCode.js.map +0 -1
  126. package/dist/types/models/index.js.map +0 -1
  127. package/dist/types/models/interfaces/date-util.js.map +0 -1
  128. package/dist/types/models/interfaces/index.d.ts +0 -2
  129. package/dist/types/models/interfaces/index.js.map +0 -1
  130. package/dist/types/models/interfaces/payment.d.ts +0 -13
  131. package/dist/types/models/interfaces/payment.js.map +0 -1
  132. package/dist/types/reservations/interfaces/index.d.ts +0 -2
  133. package/dist/types/reservations/interfaces/index.js.map +0 -1
  134. package/dist/types/reservations/interfaces/invoice.d.ts +0 -53
  135. package/dist/types/reservations/interfaces/invoice.js.map +0 -1
  136. package/dist/types/reservations/interfaces/reservation.js +0 -11
  137. package/dist/types/reservations/interfaces/reservation.js.map +0 -1
  138. package/dist/types/util/types/general.js.map +0 -1
  139. package/dist/types/util/types/index.d.ts +0 -1
  140. package/dist/types/util/types/index.js.map +0 -1
  141. /package/dist/types/{models → util/models}/ExitCode.d.ts +0 -0
  142. /package/dist/types/{models → util/models}/ExitCode.js +0 -0
  143. /package/dist/types/{models/interfaces/date-util.d.ts → util/models/interfaces/date-util.interfaces.d.ts} +0 -0
  144. /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"}
@@ -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';
@@ -1,8 +1,6 @@
1
1
  import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
2
2
  import { CurrencyEnum, DiscountMethodsEnum, ResourceNameTypeEnum } from '../../services/enums.service';
3
3
  import { IEntitlementTerms, IQuestionAnswerObject } from '../../services/interfaces.service';
4
- import { PriceTypeEnum } from '../types/pricing.enums';
5
- import { BasicActivityTimesDto } from '../../dto/activityTimes.dto';
6
4
  export declare class CreateEntitlementTermsDto {
7
5
  organizationId: number;
8
6
  entitlementGroupId: number;
@@ -53,9 +51,7 @@ export declare class CreatePriceDto {
53
51
  discountValue?: number;
54
52
  discountMethod?: DiscountMethodsEnum;
55
53
  isDefaultPriceForProduct?: boolean;
56
- type?: PriceTypeEnum;
57
54
  maxQuantity?: number;
58
55
  minQuantity?: number;
59
56
  packageId?: number;
60
- activityTimes?: BasicActivityTimesDto[];
61
57
  }
@@ -1 +1 @@
1
- {"version":3,"file":"pricing.dto.js","sourceRoot":"","sources":["../../../../src/types/pricing/dto/pricing.dto.ts"],"names":[],"mappings":";;;AAAA,8EAA8E;AAM9E,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;CA4B1B;AA5BD,wCA4BC"}
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,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
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.archiveDto = exports.SetStationSubcategoriesDto = exports.GetSubcategoryDto = exports.UpdateSubcategoryDto = exports.CreateSubcategoriesDto = exports.CreateSubcategoryDto = exports.GetBySessionType = exports.GetByCustomerIdDto = exports.GetAllOrganizationAddonsDto = exports.GetByOrgIdInvoiceIdDto = exports.FindByProductUserIdsDto = exports.FindPricesOfProductsDto = exports.FindPriceOfProductDto = void 0;
3
+ exports.GetProductsByTypeQueryDto = exports.GetProductsByTypeDto = exports.archiveDto = exports.SetStationSubcategoriesDto = exports.GetSubcategoryDto = exports.UpdateSubcategoryDto = exports.CreateSubcategoriesDto = exports.CreateSubcategoryDto = exports.GetBySessionType = exports.GetByCustomerIdDto = exports.GetAllOrganizationAddonsDto = exports.GetByOrgIdInvoiceIdDto = exports.FindByProductUserIdsDto = exports.FindPricesOfProductsDto = exports.FindPriceOfProductDto = void 0;
4
4
  const general_dto_1 = require("../../dto/general.dto");
5
5
  const organization_dto_1 = require("../../organization/dto/organization.dto");
6
6
  class FindPriceOfProductDto {
@@ -42,4 +42,10 @@ exports.SetStationSubcategoriesDto = SetStationSubcategoriesDto;
42
42
  class archiveDto {
43
43
  }
44
44
  exports.archiveDto = archiveDto;
45
+ class GetProductsByTypeDto extends organization_dto_1.ByOrganizationIdDto {
46
+ }
47
+ exports.GetProductsByTypeDto = GetProductsByTypeDto;
48
+ class GetProductsByTypeQueryDto extends general_dto_1.PaginationQuery {
49
+ }
50
+ exports.GetProductsByTypeQueryDto = GetProductsByTypeQueryDto;
45
51
  //# sourceMappingURL=product-pricing.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"product-pricing.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product-pricing.dto.ts"],"names":[],"mappings":";;;AACA,uDAAwD;AACxD,8EAA8E;AAI9E,MAAa,qBAAqB;CAUjC;AAVD,sDAUC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,sBAAuB,SAAQ,sCAAmB;CAE9D;AAFD,wDAEC;AAED,MAAa,2BAA4B,SAAQ,sCAAmB;CAAG;AAAvE,kEAAuE;AAEvE,MAAa,kBAAmB,SAAQ,6BAAe;CAEtD;AAFD,gDAEC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,oBAAoB;CAQhC;AARD,oDAQC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,oBAAoB;CAUhC;AAVD,oDAUC;AAED,MAAa,iBAAiB;CAE7B;AAFD,8CAEC;AAED,MAAa,0BAA0B;CAMtC;AAND,gEAMC;AAED,MAAa,UAAU;CAEtB;AAFD,gCAEC"}
1
+ {"version":3,"file":"product-pricing.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product-pricing.dto.ts"],"names":[],"mappings":";;;AACA,uDAAwD;AACxD,8EAA8E;AAM9E,MAAa,qBAAqB;CAUjC;AAVD,sDAUC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,sBAAuB,SAAQ,sCAAmB;CAE9D;AAFD,wDAEC;AAED,MAAa,2BAA4B,SAAQ,sCAAmB;CAAG;AAAvE,kEAAuE;AAEvE,MAAa,kBAAmB,SAAQ,6BAAe;CAEtD;AAFD,gDAEC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,oBAAoB;CAQhC;AARD,oDAQC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,oBAAoB;CAUhC;AAVD,oDAUC;AAED,MAAa,iBAAiB;CAE7B;AAFD,8CAEC;AAED,MAAa,0BAA0B;CAMtC;AAND,gEAMC;AAED,MAAa,UAAU;CAEtB;AAFD,gCAEC;AAED,MAAa,oBAAqB,SAAQ,sCAAmB;CAE5D;AAFD,oDAEC;AAED,MAAa,yBAA0B,SAAQ,6BAAe;CA4B7D;AA5BD,8DA4BC"}
@@ -4,7 +4,7 @@ import { CreatePaymentPlanDto, PaymentPlanDto } from '../../payment/dto/payment-
4
4
  import { ProductPaymentPlan } from '../../payment/entities/ProductPaymentPlan';
5
5
  import { CreateGroupPricingWithProduct, CreatePriceDto } from '../../pricing/dto/pricing.dto';
6
6
  import { CreateOrUpdateResourceSettingDto } from '../../resource-settings/dto/create-or-update-resource-setting.dto';
7
- import { AddonTimePeriodEnum, PackageProductsRelationTypeEnum, PlatformsEnum, ProductPackageLevelEnum, ProductSubTypesEnum, ProductTypesEnum, ResourceNameTypeEnum } from '../../services/enums.service';
7
+ import { ActivityEnum, AddonTimePeriodEnum, PackageProductsRelationTypeEnum, PlatformsEnum, ProductPackageLevelEnum, ProductSubTypesEnum, ProductTypesEnum, ResourceNameTypeEnum } from '../../services/enums.service';
8
8
  import { ProductResourceDto } from './product-resource.dto';
9
9
  import { ResourceGlDto } from '../../gl-codes/dto/resource-to-gl.dto';
10
10
  import { Price } from '../../pricing/entities/Price';
@@ -20,6 +20,7 @@ import { PurchasedResourceDto } from '../../reservations/dto/purcased-resource.d
20
20
  import { ResourceSettingDto } from '../../resource-settings/dto/resource-setting.dto';
21
21
  import { LineItemDto } from '../../reservations/dto/lineItem.dto';
22
22
  import { Product } from '../entities/Product';
23
+ import { IPricingSchedule } from '../types/interfaces/product-pricing.interfaces';
23
24
  export declare class FindByProductIdDto {
24
25
  productId: number;
25
26
  }
@@ -115,6 +116,8 @@ export declare class GetProductsDto extends PaginationQuery {
115
116
  includeAllData?: boolean;
116
117
  resourceIds?: number[];
117
118
  sports?: number[];
119
+ facilitiesIds?: number[];
120
+ statuses?: ActivityEnum[];
118
121
  }
119
122
  export declare class GetExtraProductDataDto {
120
123
  isPublic?: boolean;
@@ -196,4 +199,5 @@ export declare class DeprecatedProductDto extends BaseProductDto {
196
199
  }
197
200
  export declare class ProductDto extends BaseProductDto {
198
201
  productPaymentPlans?: PaymentPlanDto[];
202
+ pricingSchedules?: IPricingSchedule[];
199
203
  }
@@ -1 +1 @@
1
- {"version":3,"file":"product.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product.dto.ts"],"names":[],"mappings":";;;AAAA,uDAAsE;AA+BtE,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,iCAAiC;CAU7C;AAVD,8EAUC;AAED,MAAa,2BAA2B;CAUvC;AAVD,kEAUC;AAED,MAAa,gBAAgB;CAgF5B;AAhFD,4CAgFC;AAED,MAAa,gBAAiB,SAAQ,gBAAgB;CAMrD;AAND,4CAMC;AAED,MAAa,yBAAyB;CAIrC;AAJD,8DAIC;AAED,MAAa,yBAAyB;CAKrC;AALD,8DAKC;AAED,MAAa,sBAAsB;CAGlC;AAHD,wDAGC;AAED,MAAa,cAAe,SAAQ,6BAAe;CAQlD;AARD,wCAQC;AAED,MAAa,cAAe,SAAQ,6BAAe;CAoBlD;AApBD,wCAoBC;AAED,MAAa,sBAAsB;CASlC;AATD,wDASC;AAED,MAAa,0BAA2B,SAAQ,6BAAe;CAM9D;AAND,gEAMC;AAED,MAAa,gBAAiB,SAAQ,0BAAY;CAIjD;AAJD,4CAIC;AAED,MAAa,cAAc;CA8G1B;AA9GD,wCA8GC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAEvD;AAFD,oDAEC;AAED,MAAa,UAAW,SAAQ,cAAc;CAE7C;AAFD,gCAEC"}
1
+ {"version":3,"file":"product.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product.dto.ts"],"names":[],"mappings":";;;AAAA,uDAAsE;AAkCtE,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,iCAAiC;CAU7C;AAVD,8EAUC;AAED,MAAa,2BAA2B;CAUvC;AAVD,kEAUC;AAED,MAAa,gBAAgB;CAgF5B;AAhFD,4CAgFC;AAED,MAAa,gBAAiB,SAAQ,gBAAgB;CAMrD;AAND,4CAMC;AAED,MAAa,yBAAyB;CAIrC;AAJD,8DAIC;AAED,MAAa,yBAAyB;CAKrC;AALD,8DAKC;AAED,MAAa,sBAAsB;CAGlC;AAHD,wDAGC;AAED,MAAa,cAAe,SAAQ,6BAAe;CAQlD;AARD,wCAQC;AAED,MAAa,cAAe,SAAQ,6BAAe;CAwBlD;AAxBD,wCAwBC;AAED,MAAa,sBAAsB;CASlC;AATD,wDASC;AAED,MAAa,0BAA2B,SAAQ,6BAAe;CAM9D;AAND,gEAMC;AAED,MAAa,gBAAiB,SAAQ,0BAAY;CAIjD;AAJD,4CAIC;AAED,MAAa,cAAc;CA8G1B;AA9GD,wCA8GC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAEvD;AAFD,oDAEC;AAED,MAAa,UAAW,SAAQ,cAAc;CAI7C;AAJD,gCAIC"}
@@ -1,8 +1,9 @@
1
1
  import { ActivityEnum, ProductPackageLevelEnum, ProductSubTypesEnum, SportsEnum } from '../../services/enums.service';
2
2
  import { ResourceDto } from '../../resources/dto/resource.dto';
3
- import { FacilitySchedule } from '../../resources/dto/instructor.dto';
4
3
  import { CreatePriceDto } from '../../pricing/dto/pricing.dto';
5
4
  import { CreateRentalProductAddonDto } from './product.dto';
5
+ import { BasicActivityTimesDto } from '../../dto/activityTimes.dto';
6
+ import { PriceTypeEnum } from '../../pricing/types/pricing.enums';
6
7
  export declare class CreateRentalProductDto {
7
8
  id?: number;
8
9
  name: string;
@@ -22,12 +23,20 @@ export declare class CreateRentalProductDto {
22
23
  level?: ProductPackageLevelEnum;
23
24
  productSubType?: ProductSubTypesEnum;
24
25
  }
26
+ export declare class CreatePricingWithScheduleDto {
27
+ prices: CreatePriceDto[];
28
+ activityTimes?: BasicActivityTimesDto[];
29
+ }
30
+ export declare class CreateRentalPricesDto {
31
+ type: PriceTypeEnum;
32
+ defaultPricing: CreatePricingWithScheduleDto;
33
+ customPricing?: CreatePricingWithScheduleDto[];
34
+ }
25
35
  export declare class CreateRentalProductPackageDto {
26
36
  product: CreateRentalProductDto;
27
37
  facilitiesIds: number[];
28
- prices?: CreatePriceDto[];
38
+ pricing?: CreateRentalPricesDto;
29
39
  resources?: ResourceDto[];
30
- schedule?: FacilitySchedule[];
31
40
  addons?: CreateRentalProductAddonDto[];
32
41
  extraParticipantsPrice?: CreatePriceDto;
33
42
  }
@@ -1,9 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateRentalProductPackageDto = exports.CreateRentalProductDto = void 0;
3
+ exports.CreateRentalProductPackageDto = exports.CreateRentalPricesDto = exports.CreatePricingWithScheduleDto = exports.CreateRentalProductDto = void 0;
4
4
  class CreateRentalProductDto {
5
5
  }
6
6
  exports.CreateRentalProductDto = CreateRentalProductDto;
7
+ class CreatePricingWithScheduleDto {
8
+ }
9
+ exports.CreatePricingWithScheduleDto = CreatePricingWithScheduleDto;
10
+ class CreateRentalPricesDto {
11
+ }
12
+ exports.CreateRentalPricesDto = CreateRentalPricesDto;
7
13
  class CreateRentalProductPackageDto {
8
14
  }
9
15
  exports.CreateRentalProductPackageDto = CreateRentalProductPackageDto;
@@ -1 +1 @@
1
- {"version":3,"file":"rental-product.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/rental-product.dto.ts"],"names":[],"mappings":";;;AAMA,MAAa,sBAAsB;CAkClC;AAlCD,wDAkCC;AAED,MAAa,6BAA6B;CAczC;AAdD,sEAcC"}
1
+ {"version":3,"file":"rental-product.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/rental-product.dto.ts"],"names":[],"mappings":";;;AAOA,MAAa,sBAAsB;CAkClC;AAlCD,wDAkCC;AAED,MAAa,4BAA4B;CAIxC;AAJD,oEAIC;AAED,MAAa,qBAAqB;CAMjC;AAND,sDAMC;AAED,MAAa,6BAA6B;CAYzC;AAZD,sEAYC"}
@@ -20,6 +20,7 @@ import { IChildProduct, IResourcesAvailability } from '../../services/interfaces
20
20
  import { ProductResourceDto } from '../dto/product-resource.dto';
21
21
  import { Facility } from '../../entity/Facility';
22
22
  import { ProductStateEnum } from '../types/enums/product.enums';
23
+ import { IPricingSchedule } from '../types/interfaces/product-pricing.interfaces';
23
24
  export declare class Product extends OrganizationConnectionBaseEntity {
24
25
  name: string;
25
26
  quantity: number;
@@ -76,4 +77,5 @@ export declare class Product extends OrganizationConnectionBaseEntity {
76
77
  productsUsers: ProductsUsers[];
77
78
  purchasedResources: PurchasedResource[];
78
79
  facilities: Facility[];
80
+ pricingSchedules?: IPricingSchedule[];
79
81
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Product.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/Product.ts"],"names":[],"mappings":";;;AAiBA,oGAAiG;AAmBjG,MAAa,OAAQ,SAAQ,mEAAgC;CAsH5D;AAtHD,0BAsHC"}
1
+ {"version":3,"file":"Product.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/Product.ts"],"names":[],"mappings":";;;AAiBA,oGAAiG;AAoBjG,MAAa,OAAQ,SAAQ,mEAAgC;CAwH5D;AAxHD,0BAwHC"}
@@ -0,0 +1 @@
1
+ export * from './product-pricing.consts';