@bondsports/types 2.5.8 → 2.5.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/dist/tsconfig.build.tsbuildinfo +1 -1
  2. package/dist/types/cart/types/interfaces/cart.interfaces.d.ts +0 -1
  3. package/dist/types/dto/package.dto.d.ts +2 -0
  4. package/dist/types/dto/package.dto.js.map +1 -1
  5. package/dist/types/import/dto/import-punch-pass.dto.d.ts +11 -3
  6. package/dist/types/import/dto/import-punch-pass.dto.js +7 -1
  7. package/dist/types/import/dto/import-punch-pass.dto.js.map +1 -1
  8. package/dist/types/index.d.ts +1 -0
  9. package/dist/types/index.js +1 -0
  10. package/dist/types/index.js.map +1 -1
  11. package/dist/types/invoice/types/interfaces/invoice.interfaces.d.ts +0 -3
  12. package/dist/types/invoice/types/interfaces/invoice.interfaces.js.map +1 -1
  13. package/dist/types/membership/types/membership.interfaces.d.ts +0 -5
  14. package/dist/types/payment/dto/refund.dto.d.ts +1 -0
  15. package/dist/types/payment/dto/refund.dto.js.map +1 -1
  16. package/dist/types/payment/dto/void.dto.d.ts +1 -0
  17. package/dist/types/payment/dto/void.dto.js.map +1 -1
  18. package/dist/types/payment/types/interfaces/payment.interfaces.d.ts +1 -8
  19. package/dist/types/payment/types/interfaces/payment.interfaces.js +1 -4
  20. package/dist/types/payment/types/interfaces/payment.interfaces.js.map +1 -1
  21. package/dist/types/payment/types/interfaces/void.interfaces.d.ts +1 -0
  22. package/dist/types/product-pricing/dto/index.d.ts +2 -0
  23. package/dist/types/product-pricing/dto/index.js +2 -0
  24. package/dist/types/product-pricing/dto/index.js.map +1 -1
  25. package/dist/types/product-pricing/dto/product-facility-inventory.dto.d.ts +7 -0
  26. package/dist/types/product-pricing/dto/product-facility-inventory.dto.js +8 -0
  27. package/dist/types/product-pricing/dto/product-facility-inventory.dto.js.map +1 -0
  28. package/dist/types/product-pricing/dto/product-inventory.dto.d.ts +16 -0
  29. package/dist/types/product-pricing/dto/product-inventory.dto.js +17 -0
  30. package/dist/types/product-pricing/dto/product-inventory.dto.js.map +1 -0
  31. package/dist/types/product-pricing/dto/product-pricing.dto.d.ts +3 -1
  32. package/dist/types/product-pricing/dto/product-pricing.dto.js.map +1 -1
  33. package/dist/types/product-pricing/dto/product.dto.d.ts +7 -0
  34. package/dist/types/product-pricing/dto/product.dto.js.map +1 -1
  35. package/dist/types/product-pricing/entities/index.d.ts +2 -0
  36. package/dist/types/product-pricing/entities/index.js +2 -0
  37. package/dist/types/product-pricing/entities/index.js.map +1 -1
  38. package/dist/types/product-pricing/entities/product-facility-inventory.entity.d.ts +12 -0
  39. package/dist/types/product-pricing/entities/product-facility-inventory.entity.js +8 -0
  40. package/dist/types/product-pricing/entities/product-facility-inventory.entity.js.map +1 -0
  41. package/dist/types/product-pricing/entities/product-inventory-adjustment.entity.d.ts +17 -0
  42. package/dist/types/product-pricing/entities/product-inventory-adjustment.entity.js +8 -0
  43. package/dist/types/product-pricing/entities/product-inventory-adjustment.entity.js.map +1 -0
  44. package/dist/types/product-pricing/entities/product.entity.d.ts +6 -0
  45. package/dist/types/product-pricing/entities/product.entity.js.map +1 -1
  46. package/dist/types/product-pricing/types/consts/index.d.ts +1 -0
  47. package/dist/types/product-pricing/types/consts/index.js +1 -0
  48. package/dist/types/product-pricing/types/consts/index.js.map +1 -1
  49. package/dist/types/product-pricing/types/consts/product-inventory.consts.d.ts +1 -0
  50. package/dist/types/product-pricing/types/consts/product-inventory.consts.js +5 -0
  51. package/dist/types/product-pricing/types/consts/product-inventory.consts.js.map +1 -0
  52. package/dist/types/product-pricing/types/consts/product-resource.consts.d.ts +6 -1
  53. package/dist/types/product-pricing/types/consts/product-resource.consts.js +6 -1
  54. package/dist/types/product-pricing/types/consts/product-resource.consts.js.map +1 -1
  55. package/dist/types/product-pricing/types/enums/index.d.ts +1 -0
  56. package/dist/types/product-pricing/types/enums/index.js +1 -0
  57. package/dist/types/product-pricing/types/enums/index.js.map +1 -1
  58. package/dist/types/product-pricing/types/enums/product-inventory.enums.d.ts +9 -0
  59. package/dist/types/product-pricing/types/enums/product-inventory.enums.js +15 -0
  60. package/dist/types/product-pricing/types/enums/product-inventory.enums.js.map +1 -0
  61. package/dist/types/product-pricing/types/enums/product.enums.d.ts +9 -1
  62. package/dist/types/product-pricing/types/enums/product.enums.js +10 -1
  63. package/dist/types/product-pricing/types/enums/product.enums.js.map +1 -1
  64. package/dist/types/product-pricing/types/interfaces/index.d.ts +1 -0
  65. package/dist/types/product-pricing/types/interfaces/index.js +1 -0
  66. package/dist/types/product-pricing/types/interfaces/index.js.map +1 -1
  67. package/dist/types/product-pricing/types/interfaces/product-inventory.interfaces.d.ts +36 -0
  68. package/dist/types/product-pricing/types/interfaces/product-inventory.interfaces.js +3 -0
  69. package/dist/types/product-pricing/types/interfaces/product-inventory.interfaces.js.map +1 -0
  70. package/dist/types/product-pricing/types/interfaces/product-pricing.interfaces.d.ts +7 -1
  71. package/dist/types/product-pricing/types/interfaces/product-resource.interfaces.d.ts +1 -0
  72. package/dist/types/product-pricing/types/interfaces/validate-resources.interfaces.d.ts +1 -0
  73. package/dist/types/purchase/dto/purchase.dto.d.ts +1 -36
  74. package/dist/types/purchase/dto/purchase.dto.js +1 -10
  75. package/dist/types/purchase/dto/purchase.dto.js.map +1 -1
  76. package/dist/types/purchase/types/interfaces/purchase.interfaces.d.ts +0 -11
  77. package/dist/types/registration/index.d.ts +1 -0
  78. package/dist/types/registration/index.js +18 -0
  79. package/dist/types/registration/index.js.map +1 -0
  80. package/dist/types/registration/types/index.d.ts +1 -0
  81. package/dist/types/registration/types/index.js +18 -0
  82. package/dist/types/registration/types/index.js.map +1 -0
  83. package/dist/types/registration/types/interfaces/index.d.ts +1 -0
  84. package/dist/types/registration/types/interfaces/index.js +18 -0
  85. package/dist/types/registration/types/interfaces/index.js.map +1 -0
  86. package/dist/types/registration/types/interfaces/registration.interfaces.d.ts +10 -0
  87. package/dist/types/registration/types/interfaces/registration.interfaces.js +3 -0
  88. package/dist/types/registration/types/interfaces/registration.interfaces.js.map +1 -0
  89. package/package.json +1 -1
@@ -75,7 +75,6 @@ export interface ICreateCartOptions extends IValidateCartOptions {
75
75
  }
76
76
  export interface IValidateCartResult {
77
77
  currentPrices: IPricesOfProductsResults[];
78
- productsDataDeprecated?: Product[];
79
78
  productsDict?: {
80
79
  [key: number]: Product;
81
80
  };
@@ -2,6 +2,7 @@ import { MediaDto } from '../media/dto/media.dto';
2
2
  import { CreatePaymentPlanDto } from '../payment/dto/payment-plan.dto';
3
3
  import { CreateGroupPricingWithProduct, CreatePriceDto } from '../pricing/dto/pricing.dto';
4
4
  import { CreateProductAvailabilityTimesDto, CreateRentalProductAddonDto } from '../product-pricing/dto/product.dto';
5
+ import { ProductVariantInventoryScopeEnum } from '../product-pricing/types/enums/product-inventory.enums';
5
6
  import { CreateOrUpdateResourceSettingDto } from '../resource-settings/dto/create-or-update-resource-setting.dto';
6
7
  import { AddonTimePeriodEnum, PackageProductsRelationTypeEnum, ProductPackageLevelEnum, ProductSubTypesEnum, ProductTypesEnum, ResourceNameTypeEnum } from '../services/enums.service';
7
8
  import { VariantWithPrice } from './product-variants.dto';
@@ -33,6 +34,7 @@ export declare class CreateProductDto {
33
34
  variantTitleIds?: number[];
34
35
  variants?: VariantWithPrice[];
35
36
  variantParentId?: number;
37
+ variantInventoryScope?: ProductVariantInventoryScopeEnum;
36
38
  isAddon?: boolean;
37
39
  isArchive?: boolean;
38
40
  timePeriod?: AddonTimePeriodEnum;
@@ -1 +1 @@
1
- {"version":3,"file":"package.dto.js","sourceRoot":"","sources":["../../../src/types/dto/package.dto.ts"],"names":[],"mappings":";;;AAiBA,MAAa,gBAAgB;CA6F5B;AA7FD,4CA6FC;AAED,MAAa,gBAAiB,SAAQ,gBAAgB;CAMrD;AAND,4CAMC;AAED,MAAa,2BAA2B;CAQvC;AARD,kEAQC;AAED,MAAa,gBAAgB;CAM5B;AAND,4CAMC;AAED,MAAa,wBAAwB;CAIpC;AAJD,4DAIC;AAED,MAAa,uCAAwC,SAAQ,wBAAwB;CAEpF;AAFD,0FAEC;AAED,MAAa,0BAA0B;CAMtC;AAND,gEAMC;AAED,MAAa,iBAAiB;CAM7B;AAND,8CAMC"}
1
+ {"version":3,"file":"package.dto.js","sourceRoot":"","sources":["../../../src/types/dto/package.dto.ts"],"names":[],"mappings":";;;AAkBA,MAAa,gBAAgB;CA+F5B;AA/FD,4CA+FC;AAED,MAAa,gBAAiB,SAAQ,gBAAgB;CAMrD;AAND,4CAMC;AAED,MAAa,2BAA2B;CAQvC;AARD,kEAQC;AAED,MAAa,gBAAgB;CAM5B;AAND,4CAMC;AAED,MAAa,wBAAwB;CAIpC;AAJD,4DAIC;AAED,MAAa,uCAAwC,SAAQ,wBAAwB;CAEpF;AAFD,0FAEC;AAED,MAAa,0BAA0B;CAMtC;AAND,gEAMC;AAED,MAAa,iBAAiB;CAM7B;AAND,8CAMC"}
@@ -1,7 +1,15 @@
1
1
  export declare class ImportPunchPassDto {
2
2
  CustomerID: string;
3
- QuantityLeft: number;
4
- BondProgramID: number;
5
- BondSessionID: number;
6
3
  ProductID: number;
4
+ QuantityLeft: number;
5
+ }
6
+ export declare class PunchPassImportProblemDto {
7
+ label: string;
8
+ description: string;
9
+ importedId?: string;
10
+ errorCode: number;
11
+ }
12
+ export declare class PunchPassImportResponseDto {
13
+ problems: PunchPassImportProblemDto[];
14
+ importedCount: number;
7
15
  }
@@ -1,7 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ImportPunchPassDto = void 0;
3
+ exports.PunchPassImportResponseDto = exports.PunchPassImportProblemDto = exports.ImportPunchPassDto = void 0;
4
4
  class ImportPunchPassDto {
5
5
  }
6
6
  exports.ImportPunchPassDto = ImportPunchPassDto;
7
+ class PunchPassImportProblemDto {
8
+ }
9
+ exports.PunchPassImportProblemDto = PunchPassImportProblemDto;
10
+ class PunchPassImportResponseDto {
11
+ }
12
+ exports.PunchPassImportResponseDto = PunchPassImportResponseDto;
7
13
  //# sourceMappingURL=import-punch-pass.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"import-punch-pass.dto.js","sourceRoot":"","sources":["../../../../src/types/import/dto/import-punch-pass.dto.ts"],"names":[],"mappings":";;;AACA,MAAa,kBAAkB;CAU9B;AAVD,gDAUC"}
1
+ {"version":3,"file":"import-punch-pass.dto.js","sourceRoot":"","sources":["../../../../src/types/import/dto/import-punch-pass.dto.ts"],"names":[],"mappings":";;;AACA,MAAa,kBAAkB;CAM9B;AAND,gDAMC;AAED,MAAa,yBAAyB;CAQrC;AARD,8DAQC;AAED,MAAa,0BAA0B;CAItC;AAJD,gEAIC"}
@@ -51,6 +51,7 @@ export * from './punch-pass';
51
51
  export * from './purchase';
52
52
  export * from './questionnaires';
53
53
  export * from './react';
54
+ export * from './registration';
54
55
  export * from './repositories';
55
56
  export * from './reservations';
56
57
  export * from './resource-settings';
@@ -67,6 +67,7 @@ __exportStar(require("./punch-pass"), exports);
67
67
  __exportStar(require("./purchase"), exports);
68
68
  __exportStar(require("./questionnaires"), exports);
69
69
  __exportStar(require("./react"), exports);
70
+ __exportStar(require("./registration"), exports);
70
71
  __exportStar(require("./repositories"), exports);
71
72
  __exportStar(require("./reservations"), exports);
72
73
  __exportStar(require("./resource-settings"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,2CAAyB;AACzB,4CAA0B;AAC1B,+CAA6B;AAC7B,yCAAuB;AACvB,yCAAuB;AACvB,4DAA0C;AAC1C,sDAAoC;AACpC,8CAA4B;AAC5B,oDAAkC;AAClC,wCAAsB;AACtB,8CAA4B;AAC5B,sDAAoC;AACpC,2CAAyB;AACzB,2CAAyB;AACzB,2CAAyB;AACzB,+CAA6B;AAC7B,kDAAgC;AAChC,wCAAsB;AACtB,4CAA0B;AAC1B,4CAA0B;AAC1B,wDAAsC;AACtC,6CAA2B;AAC3B,uDAAqC;AACrC,2CAAyB;AACzB,iDAA+B;AAC/B,gDAA8B;AAC9B,4CAA0B;AAC1B,4CAA0B;AAC1B,2CAAyB;AACzB,qDAAmC;AACnC,sDAAoC;AACpC,0CAAwB;AACxB,0CAAwB;AACxB,+CAA6B;AAC7B,mDAAiC;AACjC,0CAAwB;AACxB,kDAAgC;AAChC,mDAAiC;AACjC,iDAA+B;AAC/B,4CAA0B;AAC1B,oDAAkC;AAClC,4CAA0B;AAC1B,oDAAkC;AAClC,oDAAkC;AAClC,6CAA2B;AAC3B,qDAAmC;AACnC,+CAA6B;AAC7B,+CAA6B;AAC7B,6CAA2B;AAC3B,mDAAiC;AACjC,0CAAwB;AACxB,iDAA+B;AAC/B,iDAA+B;AAC/B,sDAAoC;AACpC,8CAA4B;AAC5B,0CAAwB;AACxB,iDAA+B;AAC/B,6CAA2B;AAC3B,yDAAuC;AACvC,2CAAyB;AACzB,0DAAwC;AACxC,6CAA2B;AAC3B,0CAAwB;AACxB,0CAAwB;AACxB,8CAA4B;AAC5B,6CAA2B;AAC3B,uDAAqC;AACrC,yCAAuB;AACvB,oDAAkC;AAClC,wDAAsC;AACtC,yCAAuB;AACvB,4CAA0B;AAC1B,6CAA2B;AAC3B,4CAA0B;AAC1B,6CAA2B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,2CAAyB;AACzB,4CAA0B;AAC1B,+CAA6B;AAC7B,yCAAuB;AACvB,yCAAuB;AACvB,4DAA0C;AAC1C,sDAAoC;AACpC,8CAA4B;AAC5B,oDAAkC;AAClC,wCAAsB;AACtB,8CAA4B;AAC5B,sDAAoC;AACpC,2CAAyB;AACzB,2CAAyB;AACzB,2CAAyB;AACzB,+CAA6B;AAC7B,kDAAgC;AAChC,wCAAsB;AACtB,4CAA0B;AAC1B,4CAA0B;AAC1B,wDAAsC;AACtC,6CAA2B;AAC3B,uDAAqC;AACrC,2CAAyB;AACzB,iDAA+B;AAC/B,gDAA8B;AAC9B,4CAA0B;AAC1B,4CAA0B;AAC1B,2CAAyB;AACzB,qDAAmC;AACnC,sDAAoC;AACpC,0CAAwB;AACxB,0CAAwB;AACxB,+CAA6B;AAC7B,mDAAiC;AACjC,0CAAwB;AACxB,kDAAgC;AAChC,mDAAiC;AACjC,iDAA+B;AAC/B,4CAA0B;AAC1B,oDAAkC;AAClC,4CAA0B;AAC1B,oDAAkC;AAClC,oDAAkC;AAClC,6CAA2B;AAC3B,qDAAmC;AACnC,+CAA6B;AAC7B,+CAA6B;AAC7B,6CAA2B;AAC3B,mDAAiC;AACjC,0CAAwB;AACxB,iDAA+B;AAC/B,iDAA+B;AAC/B,iDAA+B;AAC/B,sDAAoC;AACpC,8CAA4B;AAC5B,0CAAwB;AACxB,iDAA+B;AAC/B,6CAA2B;AAC3B,yDAAuC;AACvC,2CAAyB;AACzB,0DAAwC;AACxC,6CAA2B;AAC3B,0CAAwB;AACxB,0CAAwB;AACxB,8CAA4B;AAC5B,6CAA2B;AAC3B,uDAAqC;AACrC,yCAAuB;AACvB,oDAAkC;AAClC,wDAAsC;AACtC,yCAAuB;AACvB,4CAA0B;AAC1B,6CAA2B;AAC3B,4CAA0B;AAC1B,6CAA2B"}
@@ -1,10 +1,8 @@
1
1
  import { Cart } from '../../../cart/entities/cart.entity';
2
2
  import { IValidateCartOptions } from '../../../cart/types/interfaces/cart.interfaces';
3
3
  import { Invoice } from '../../../entity/Invoice';
4
- import { LineItems } from '../../../entity/LineItems';
5
4
  import { UserPaymentMethod } from '../../../entity/user-payment-method';
6
5
  import { DueDateTypeEnum } from '../../../payment/types/enums/payment.enums';
7
- import { PurchaseProductDto } from '../../../purchase/dto/purchase.dto';
8
6
  import { ProductPricesDto } from '../../../reservations/dto/reservation.dto';
9
7
  import { IOverrideProductsPricing } from '../../../reservations/types/interfaces/reservation.interfaces';
10
8
  import { CustomerTypeEnum, InvoiceStatusEnum } from '../../../services/enums.service';
@@ -55,7 +53,6 @@ export interface IInvoiceUpdate {
55
53
  dueDateType?: DueDateTypeEnum;
56
54
  }
57
55
  export interface IInvoiceCartOptions extends IValidateCartOptions {
58
- purchasedProductMap?: Map<PurchaseProductDto, LineItems>;
59
56
  resourceKey?: string;
60
57
  }
61
58
  export interface IOverridePricingResult {
@@ -1 +1 @@
1
- {"version":3,"file":"invoice.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/invoice/types/interfaces/invoice.interfaces.ts"],"names":[],"mappings":";;;AAgFA,MAAa,0BAA0B;CAEtC;AAFD,gEAEC"}
1
+ {"version":3,"file":"invoice.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/invoice/types/interfaces/invoice.interfaces.ts"],"names":[],"mappings":";;;AA6EA,MAAa,0BAA0B;CAEtC;AAFD,gEAEC"}
@@ -168,11 +168,6 @@ export interface IProductRelatedMembership {
168
168
  productId: number;
169
169
  membershipType: MembershipTypeEnum;
170
170
  }
171
- export interface IValidateMembershipRegistrationOptions {
172
- isAutoRenewal?: boolean;
173
- membership?: Membership;
174
- skipRegistrationDates?: boolean;
175
- }
176
171
  export interface ICancelCommonInfo {
177
172
  cancellationReason?: string;
178
173
  cancellationStatus: CancellationStatusEnum;
@@ -47,4 +47,5 @@ export declare class RefundAndVoidLineItemDto extends VoidLineItemDto {
47
47
  export declare class RefundAndVoidDto extends RefundBaseDto {
48
48
  lineItems: RefundAndVoidLineItemDto[];
49
49
  meta?: RevertMetaDto;
50
+ replenishStock?: boolean;
50
51
  }
@@ -1 +1 @@
1
- {"version":3,"file":"refund.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/refund.dto.ts"],"names":[],"mappings":";;;AAMA,yCAA6C;AAE7C,MAAa,iBAAiB;CAY7B;AAZD,8CAYC;AAED,MAAa,eAAe;CAM3B;AAND,0CAMC;AAED,MAAa,gBAAgB;CAQ5B;AARD,4CAQC;AAED,MAAa,aAAa;CAczB;AAdD,sCAcC;AAED,MAAa,SAAU,SAAQ,aAAa;CAE3C;AAFD,8BAEC;AAED;GACG;AACH,MAAa,wBAAyB,SAAQ,0BAAe;CAE5D;AAFD,4DAEC;AAED;;GAEG;AACH,MAAa,gBAAiB,SAAQ,aAAa;CAIlD;AAJD,4CAIC"}
1
+ {"version":3,"file":"refund.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/refund.dto.ts"],"names":[],"mappings":";;;AAMA,yCAA6C;AAE7C,MAAa,iBAAiB;CAY7B;AAZD,8CAYC;AAED,MAAa,eAAe;CAM3B;AAND,0CAMC;AAED,MAAa,gBAAgB;CAQ5B;AARD,4CAQC;AAED,MAAa,aAAa;CAczB;AAdD,sCAcC;AAED,MAAa,SAAU,SAAQ,aAAa;CAE3C;AAFD,8BAEC;AAED;GACG;AACH,MAAa,wBAAyB,SAAQ,0BAAe;CAE5D;AAFD,4DAEC;AAED;;GAEG;AACH,MAAa,gBAAiB,SAAQ,aAAa;CAMlD;AAND,4CAMC"}
@@ -13,4 +13,5 @@ export declare class VoidDto implements IVoid {
13
13
  reasonId?: number;
14
14
  notes?: CreateNoteDto[];
15
15
  meta?: RevertMetaDto;
16
+ replenishStock?: boolean;
16
17
  }
@@ -1 +1 @@
1
- {"version":3,"file":"void.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/void.dto.ts"],"names":[],"mappings":";;;AAKA,MAAa,eAAe;CAU3B;AAVD,0CAUC;AAED,MAAa,OAAO;CAUnB;AAVD,0BAUC"}
1
+ {"version":3,"file":"void.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/void.dto.ts"],"names":[],"mappings":";;;AAKA,MAAa,eAAe;CAU3B;AAVD,0CAUC;AAED,MAAa,OAAO;CAYnB;AAZD,0BAYC"}
@@ -1,13 +1,12 @@
1
1
  import { Stripe } from 'stripe';
2
2
  import { LineItems } from '../../../entity/LineItems';
3
- import { FeeDto } from '../../../fee/dto/fee.dto';
4
3
  import { IPurchasePayment } from '../../../purchase/types/interfaces/purchase.interfaces';
5
4
  import { ReservationPaymentStatusEnum, ReservationStatusEnum } from '../../../reservations/types/enums/reservation.enums';
6
5
  import { PlatformsEnum } from '../../../services/enums.service';
7
6
  import { LockModeEnum } from '../../../util/models/types/orm.types';
8
7
  import { CreateNoteDto } from '../../dto/payment.dto';
9
8
  import { Payment } from '../../entities/Payment';
10
- import { PaymentMethodTypeEnum, SubPaymentMethodTypeEnum } from '../enums/payment.enums';
9
+ import { PaymentMethodTypeEnum } from '../enums/payment.enums';
11
10
  import { RefundBuilderErrorCodesEnum, RefundTypeEnum } from '../enums/refund.enums';
12
11
  import type { IRefundOperation } from './refund.interfaces';
13
12
  export declare class PaymentResult {
@@ -36,12 +35,6 @@ export interface GetPaymentMethodsMapsFilters {
36
35
  types?: PaymentMethodTypeEnum[];
37
36
  withDeleted: boolean;
38
37
  }
39
- export declare class PaymentMethodOption {
40
- paymentMethodType: PaymentMethodTypeEnum;
41
- subPaymentMethodType?: SubPaymentMethodTypeEnum;
42
- fee?: FeeDto;
43
- options?: Stripe.PaymentMethod[];
44
- }
45
38
  export interface GetExtendedInvoice {
46
39
  organizationId?: number;
47
40
  userId?: number;
@@ -1,13 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PaymentMethodOption = exports.PaymentsResults = exports.PaymentResult = void 0;
3
+ exports.PaymentsResults = exports.PaymentResult = void 0;
4
4
  class PaymentResult {
5
5
  }
6
6
  exports.PaymentResult = PaymentResult;
7
7
  class PaymentsResults {
8
8
  }
9
9
  exports.PaymentsResults = PaymentsResults;
10
- class PaymentMethodOption {
11
- }
12
- exports.PaymentMethodOption = PaymentMethodOption;
13
10
  //# sourceMappingURL=payment.interfaces.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"payment.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/interfaces/payment.interfaces.ts"],"names":[],"mappings":";;;AAkBA,MAAa,aAAa;CAczB;AAdD,sCAcC;AAED,MAAa,eAAe;CAI3B;AAJD,0CAIC;AAiBD,MAAa,mBAAmB;CAQ/B;AARD,kDAQC"}
1
+ {"version":3,"file":"payment.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/interfaces/payment.interfaces.ts"],"names":[],"mappings":";;;AAiBA,MAAa,aAAa;CAczB;AAdD,sCAcC;AAED,MAAa,eAAe;CAI3B;AAJD,0CAIC"}
@@ -28,6 +28,7 @@ export interface IVoid {
28
28
  meta?: RevertMetaDto;
29
29
  notes?: CreateNoteDto[];
30
30
  type?: VoidTypeEnum;
31
+ replenishStock?: boolean;
31
32
  }
32
33
  export interface IVoidDiscount {
33
34
  id?: number;
@@ -1,4 +1,6 @@
1
1
  export * from './product-categories.dto';
2
+ export * from './product-facility-inventory.dto';
3
+ export * from './product-inventory.dto';
2
4
  export * from './product-pricing.dto';
3
5
  export * from './product-resource.dto';
4
6
  export * from './product.dto';
@@ -15,6 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./product-categories.dto"), exports);
18
+ __exportStar(require("./product-facility-inventory.dto"), exports);
19
+ __exportStar(require("./product-inventory.dto"), exports);
18
20
  __exportStar(require("./product-pricing.dto"), exports);
19
21
  __exportStar(require("./product-resource.dto"), exports);
20
22
  __exportStar(require("./product.dto"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,wDAAsC;AACtC,yDAAuC;AACvC,gDAA8B;AAC9B,kEAAgD;AAChD,uDAAqC;AACrC,2DAAyC;AACzC,uDAAqC;AACrC,kEAAgD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,mEAAiD;AACjD,0DAAwC;AACxC,wDAAsC;AACtC,yDAAuC;AACvC,gDAA8B;AAC9B,kEAAgD;AAChD,uDAAqC;AACrC,2DAAyC;AACzC,uDAAqC;AACrC,kEAAgD"}
@@ -0,0 +1,7 @@
1
+ import { OrganizationBaseEntityDto } from '../../organization/dto/organization.dto';
2
+ export declare class ProductFacilityInventoryDto extends OrganizationBaseEntityDto {
3
+ productId: number;
4
+ facilityId: number;
5
+ inventoryQuantity?: number;
6
+ lowInventoryThreshold?: number;
7
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProductFacilityInventoryDto = void 0;
4
+ const organization_dto_1 = require("../../organization/dto/organization.dto");
5
+ class ProductFacilityInventoryDto extends organization_dto_1.OrganizationBaseEntityDto {
6
+ }
7
+ exports.ProductFacilityInventoryDto = ProductFacilityInventoryDto;
8
+ //# sourceMappingURL=product-facility-inventory.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-facility-inventory.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product-facility-inventory.dto.ts"],"names":[],"mappings":";;;AACA,8EAAoF;AAEpF,MAAa,2BAA4B,SAAQ,4CAAyB;CAQzE;AARD,kEAQC"}
@@ -0,0 +1,16 @@
1
+ import { ByProductAndOrgDto } from './product.dto';
2
+ export declare class ByProductFacilityInventoryDto extends ByProductAndOrgDto {
3
+ facilityId: number;
4
+ }
5
+ export declare class BatchUpdateProductFacilityInventoryItemDto {
6
+ productId: number;
7
+ inventoryQuantity?: number;
8
+ lowInventoryThreshold?: number | null;
9
+ }
10
+ export declare class BatchUpdateProductFacilityInventoryDto {
11
+ items: BatchUpdateProductFacilityInventoryItemDto[];
12
+ }
13
+ export declare class GetProductFacilityInventoriesQueryDto {
14
+ productIds?: number[];
15
+ facilityIds?: number[];
16
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetProductFacilityInventoriesQueryDto = exports.BatchUpdateProductFacilityInventoryDto = exports.BatchUpdateProductFacilityInventoryItemDto = exports.ByProductFacilityInventoryDto = void 0;
4
+ const product_dto_1 = require("./product.dto");
5
+ class ByProductFacilityInventoryDto extends product_dto_1.ByProductAndOrgDto {
6
+ }
7
+ exports.ByProductFacilityInventoryDto = ByProductFacilityInventoryDto;
8
+ class BatchUpdateProductFacilityInventoryItemDto {
9
+ }
10
+ exports.BatchUpdateProductFacilityInventoryItemDto = BatchUpdateProductFacilityInventoryItemDto;
11
+ class BatchUpdateProductFacilityInventoryDto {
12
+ }
13
+ exports.BatchUpdateProductFacilityInventoryDto = BatchUpdateProductFacilityInventoryDto;
14
+ class GetProductFacilityInventoriesQueryDto {
15
+ }
16
+ exports.GetProductFacilityInventoriesQueryDto = GetProductFacilityInventoriesQueryDto;
17
+ //# sourceMappingURL=product-inventory.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-inventory.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product-inventory.dto.ts"],"names":[],"mappings":";;;AAEA,+CAAmD;AAEnD,MAAa,6BAA8B,SAAQ,gCAAkB;CAEpE;AAFD,sEAEC;AAED,MAAa,0CAA0C;CAMtD;AAND,gGAMC;AAED,MAAa,sCAAsC;CAElD;AAFD,wFAEC;AAED,MAAa,qCAAqC;CAIjD;AAJD,sFAIC"}
@@ -5,7 +5,7 @@ import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
5
5
  import { ProgramTypesEnum } from '../../programs/types/enums/program.enums';
6
6
  import { ResourceDto } from '../../resources/dto/resource.dto';
7
7
  import { ActivityEnum, OrderByEnum, ProductTypesEnum, ResourceNameTypeEnum } from '../../services/enums.service';
8
- import { OrderByProductEnum, ProductExpandEnum } from '../types/enums/product.enums';
8
+ import { CommerceProductInventoryFilterStatusEnum, OrderByProductEnum, ProductExpandEnum } from '../types/enums/product.enums';
9
9
  import { IFindPriceOfProduct, IGetProductsByTypeOptions, IGetPunchPassProductsOptions } from '../types/interfaces/product-pricing.interfaces';
10
10
  export declare class FindPriceOfProductDto implements IFindPriceOfProduct {
11
11
  id?: number;
@@ -53,6 +53,7 @@ export declare class GetProductsByTypeDto extends ByOrganizationIdDto {
53
53
  export declare class GetProductsByTypeQueryDto extends PaginationQuery implements IGetProductsByTypeOptions {
54
54
  productIds?: number[];
55
55
  expand?: ProductExpandEnum[];
56
+ facilityId?: number;
56
57
  includeAddons?: boolean;
57
58
  includeArchived?: boolean;
58
59
  onlyNonGatedProducts?: boolean;
@@ -77,6 +78,7 @@ export declare class GetProductsByTypeQueryDto extends PaginationQuery implement
77
78
  stationId?: number;
78
79
  includeOnlyNotAssignedToCategory?: boolean;
79
80
  isAvailableOnline?: boolean;
81
+ inventoryStatuses?: CommerceProductInventoryFilterStatusEnum[];
80
82
  }
81
83
  export declare class GetPunchPassProductsByTypeQueryDto extends PaginationQuery implements IGetPunchPassProductsOptions {
82
84
  search?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"product-pricing.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product-pricing.dto.ts"],"names":[],"mappings":";;;AAGA,uDAAwD;AACxD,8EAA8E;AAW9E,MAAa,qBAAqB;CAUjC;AAVD,sDAUC;AAED,MAAa,kBAAkB;CAQ9B;AARD,gDAQC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,sBAAuB,SAAQ,sCAAmB;CAE9D;AAFD,wDAEC;AAED,MAAa,kCAAkC;CAI9C;AAJD,gFAIC;AAED,MAAa,kBAAmB,SAAQ,6BAAe;CAEtD;AAFD,gDAEC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,UAAU;CAEtB;AAFD,gCAEC;AAED,MAAa,0BAA2B,SAAQ,UAAU;CAEzD;AAFD,gEAEC;AAED,MAAa,oBAAqB,SAAQ,sCAAmB;CAE5D;AAFD,oDAEC;AAED,MAAa,yBAA0B,SAAQ,6BAAe;CAoD7D;AApDD,8DAoDC;AAED,MAAa,kCAAmC,SAAQ,6BAAe;CAsBtE;AAtBD,gFAsBC"}
1
+ {"version":3,"file":"product-pricing.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product-pricing.dto.ts"],"names":[],"mappings":";;;AAGA,uDAAwD;AACxD,8EAA8E;AAe9E,MAAa,qBAAqB;CAUjC;AAVD,sDAUC;AAED,MAAa,kBAAkB;CAQ9B;AARD,gDAQC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,sBAAuB,SAAQ,sCAAmB;CAE9D;AAFD,wDAEC;AAED,MAAa,kCAAkC;CAI9C;AAJD,gFAIC;AAED,MAAa,kBAAmB,SAAQ,6BAAe;CAEtD;AAFD,gDAEC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,UAAU;CAEtB;AAFD,gCAEC;AAED,MAAa,0BAA2B,SAAQ,UAAU;CAEzD;AAFD,gEAEC;AAED,MAAa,oBAAqB,SAAQ,sCAAmB;CAE5D;AAFD,oDAEC;AAED,MAAa,yBAA0B,SAAQ,6BAAe;CAwD7D;AAxDD,8DAwDC;AAED,MAAa,kCAAmC,SAAQ,6BAAe;CAsBtE;AAtBD,gFAsBC"}
@@ -16,8 +16,10 @@ import { ResourceSettingDto } from '../../resource-settings/dto/resource-setting
16
16
  import { ActivityEnum, AddonTimePeriodEnum, PackageProductsRelationTypeEnum, PlatformsEnum, ProductPackageLevelEnum, ProductSubTypesEnum, ProductTypesEnum, ResourceNameTypeEnum } from '../../services/enums.service';
17
17
  import { IResourcesAvailability } from '../../services/interfaces.service';
18
18
  import { TaxDto } from '../../taxes/dto/tax.dto';
19
+ import { ProductVariantInventoryScopeEnum } from '../types/enums/product-inventory.enums';
19
20
  import { IGetResourcesProductsOptions, IPricingSchedule } from '../types/interfaces/product-pricing.interfaces';
20
21
  import { ProductCategoryDto } from './product-categories.dto';
22
+ import { ProductFacilityInventoryDto } from './product-facility-inventory.dto';
21
23
  import { ProductResourceDto } from './product-resource.dto';
22
24
  export declare class FindByProductIdDto {
23
25
  productId: number;
@@ -84,6 +86,7 @@ export declare class ProductFieldsDto {
84
86
  punchCard: boolean;
85
87
  requiredProductIds?: number[];
86
88
  variantParentId?: number;
89
+ variantInventoryScope?: ProductVariantInventoryScopeEnum;
87
90
  isAddon: boolean;
88
91
  isArchive: boolean;
89
92
  timePeriod?: AddonTimePeriodEnum;
@@ -126,6 +129,7 @@ export declare class ProductVariantDto extends IdAndNameDto {
126
129
  prices?: PriceDto[];
127
130
  variantsObj: VariantDto[];
128
131
  variantTitlesObj: VariantTitleDto[];
132
+ facilityInventory?: ProductFacilityInventoryDto;
129
133
  }
130
134
  export declare class AddOnProductDto extends IdAndNameDto {
131
135
  prices?: PriceDto[];
@@ -182,6 +186,7 @@ export declare class BaseProductDto {
182
186
  activityTimes?: ActivityTimesDto[];
183
187
  resourceSettings: ResourceSettingDto[];
184
188
  timezone?: string;
189
+ variantInventoryScope?: ProductVariantInventoryScopeEnum;
185
190
  }
186
191
  export declare class DeprecatedProductDto extends BaseProductDto {
187
192
  productPaymentPlan?: PaymentPlanDto;
@@ -198,6 +203,8 @@ export declare class ProductDto extends BaseProductDto {
198
203
  facilityIds?: number[];
199
204
  isAllFacilities?: boolean;
200
205
  requiredProducts?: ProductDto[];
206
+ inventoryTracked?: boolean;
207
+ facilityInventory?: ProductFacilityInventoryDto;
201
208
  }
202
209
  export declare class ResourceProductDto {
203
210
  id: number;
@@ -1 +1 @@
1
- {"version":3,"file":"product.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product.dto.ts"],"names":[],"mappings":";;;AAGA,uDAAmF;AAOnF,8EAA8E;AAuB9E,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,iCAAiC;CAU7C;AAVD,8EAUC;AAED,MAAa,kBAAmB,SAAQ,sCAAmB;CAE1D;AAFD,gDAEC;AAED,MAAa,2BAA2B;CAYvC;AAZD,kEAYC;AAED,MAAa,yBAAyB;CAMrC;AAND,8DAMC;AAED,MAAa,yBAAyB;CAMrC;AAND,8DAMC;AAED,MAAa,wBAAwB;CAMpC;AAND,4DAMC;AAED,MAAa,oCAAoC;CAMhD;AAND,oFAMC;AAED,MAAa,cAAe,SAAQ,6BAAe;CAQlD;AARD,wCAQC;AAED,MAAa,gBAAgB;CAwD5B;AAxDD,4CAwDC;AAED,MAAa,sBAAsB;CAkBlC;AAlBD,wDAkBC;AAED,MAAa,0BAA2B,SAAQ,6BAAe;CAM9D;AAND,gEAMC;AAED,MAAa,gBAAiB,SAAQ,0BAAY;CAcjD;AAdD,4CAcC;AAED,MAAa,iBAAkB,SAAQ,0BAAY;CAQlD;AARD,8CAQC;AAED,MAAa,eAAgB,SAAQ,0BAAY;CAIhD;AAJD,0CAIC;AAED,MAAa,eAAe;CAM3B;AAND,0CAMC;AAED,MAAa,cAAc;CA0F1B;AA1FD,wCA0FC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAEvD;AAFD,oDAEC;AAED,MAAa,UAAW,SAAQ,cAAc;CAsB7C;AAtBD,gCAsBC;AAED,MAAa,kBAAkB;CAU9B;AAVD,gDAUC;AAED,MAAa,kBAAmB,SAAQ,UAAU;CAQjD;AARD,gDAQC;AAED,MAAa,8BAA8B;CAI1C;AAJD,wEAIC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC"}
1
+ {"version":3,"file":"product.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product.dto.ts"],"names":[],"mappings":";;;AAGA,uDAAmF;AAOnF,8EAA8E;AAyB9E,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,iCAAiC;CAU7C;AAVD,8EAUC;AAED,MAAa,kBAAmB,SAAQ,sCAAmB;CAE1D;AAFD,gDAEC;AAED,MAAa,2BAA2B;CAYvC;AAZD,kEAYC;AAED,MAAa,yBAAyB;CAMrC;AAND,8DAMC;AAED,MAAa,yBAAyB;CAMrC;AAND,8DAMC;AAED,MAAa,wBAAwB;CAMpC;AAND,4DAMC;AAED,MAAa,oCAAoC;CAMhD;AAND,oFAMC;AAED,MAAa,cAAe,SAAQ,6BAAe;CAQlD;AARD,wCAQC;AAED,MAAa,gBAAgB;CA0D5B;AA1DD,4CA0DC;AAED,MAAa,sBAAsB;CAkBlC;AAlBD,wDAkBC;AAED,MAAa,0BAA2B,SAAQ,6BAAe;CAM9D;AAND,gEAMC;AAED,MAAa,gBAAiB,SAAQ,0BAAY;CAcjD;AAdD,4CAcC;AAED,MAAa,iBAAkB,SAAQ,0BAAY;CAUlD;AAVD,8CAUC;AAED,MAAa,eAAgB,SAAQ,0BAAY;CAIhD;AAJD,0CAIC;AAED,MAAa,eAAe;CAM3B;AAND,0CAMC;AAED,MAAa,cAAc;CA4F1B;AA5FD,wCA4FC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAEvD;AAFD,oDAEC;AAED,MAAa,UAAW,SAAQ,cAAc;CA0B7C;AA1BD,gCA0BC;AAED,MAAa,kBAAkB;CAU9B;AAVD,gDAUC;AAED,MAAa,kBAAmB,SAAQ,UAAU;CAQjD;AARD,gDAQC;AAED,MAAa,8BAA8B;CAI1C;AAJD,wEAIC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC"}
@@ -1,4 +1,6 @@
1
1
  export * from './product-category.entity';
2
+ export * from './product-facility-inventory.entity';
3
+ export * from './product-inventory-adjustment.entity';
2
4
  export * from './product-to-facility.entity';
3
5
  export * from './product.entity';
4
6
  export * from './station-to-product-category.entity';
@@ -15,6 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./product-category.entity"), exports);
18
+ __exportStar(require("./product-facility-inventory.entity"), exports);
19
+ __exportStar(require("./product-inventory-adjustment.entity"), exports);
18
20
  __exportStar(require("./product-to-facility.entity"), exports);
19
21
  __exportStar(require("./product.entity"), exports);
20
22
  __exportStar(require("./station-to-product-category.entity"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,+DAA6C;AAC7C,mDAAiC;AACjC,uEAAqD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,sEAAoD;AACpD,wEAAsD;AACtD,+DAA6C;AAC7C,mDAAiC;AACjC,uEAAqD"}
@@ -0,0 +1,12 @@
1
+ import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
2
+ import { Facility } from '../../facilities/entities/Facility';
3
+ import { Product } from './product.entity';
4
+ export declare class ProductFacilityInventory extends OrganizationConnectionBaseEntity {
5
+ productId: number;
6
+ facilityId: number;
7
+ inventoryQuantity?: number;
8
+ lowInventoryThreshold?: number;
9
+ deletedAt?: Date;
10
+ facility: Facility;
11
+ product: Product;
12
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProductFacilityInventory = void 0;
4
+ const OrganizationConnectionBaseEntity_1 = require("../../entity/OrganizationConnectionBaseEntity");
5
+ class ProductFacilityInventory extends OrganizationConnectionBaseEntity_1.OrganizationConnectionBaseEntity {
6
+ }
7
+ exports.ProductFacilityInventory = ProductFacilityInventory;
8
+ //# sourceMappingURL=product-facility-inventory.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-facility-inventory.entity.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/product-facility-inventory.entity.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAKjG,MAAa,wBAAyB,SAAQ,mEAAgC;CAc7E;AAdD,4DAcC"}
@@ -0,0 +1,17 @@
1
+ import { LineItems } from '../../entity/LineItems';
2
+ import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
3
+ import { Facility } from '../../facilities/entities/Facility';
4
+ import { ProductInventoryAdjustmentSourceEnum } from '../types/enums/product-inventory.enums';
5
+ import { Product } from './product.entity';
6
+ export declare class ProductInventoryAdjustment extends OrganizationConnectionBaseEntity {
7
+ productId: number;
8
+ facilityId: number;
9
+ lineItemId?: number;
10
+ quantityDelta: number;
11
+ quantityAfter: number;
12
+ source: ProductInventoryAdjustmentSourceEnum;
13
+ idempotencyKey: string;
14
+ product: Product;
15
+ facility: Facility;
16
+ lineItem?: LineItems;
17
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProductInventoryAdjustment = void 0;
4
+ const OrganizationConnectionBaseEntity_1 = require("../../entity/OrganizationConnectionBaseEntity");
5
+ class ProductInventoryAdjustment extends OrganizationConnectionBaseEntity_1.OrganizationConnectionBaseEntity {
6
+ }
7
+ exports.ProductInventoryAdjustment = ProductInventoryAdjustment;
8
+ //# sourceMappingURL=product-inventory-adjustment.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-inventory-adjustment.entity.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/product-inventory-adjustment.entity.ts"],"names":[],"mappings":";;;AAGA,oGAAiG;AAMjG,MAAa,0BAA2B,SAAQ,mEAAgC;CAoB/E;AApBD,gEAoBC"}
@@ -25,8 +25,10 @@ import { IChildProduct, IResourcesAvailability } from '../../services/interfaces
25
25
  import { Tax } from '../../taxes/entities/Tax';
26
26
  import { ProductResourceDto } from '../dto/product-resource.dto';
27
27
  import { ProductStateEnum } from '../types/enums/product.enums';
28
+ import { ProductVariantInventoryScopeEnum } from '../types/enums/product-inventory.enums';
28
29
  import { IPricingSchedule } from '../types/interfaces/product-pricing.interfaces';
29
30
  import { ProductCategory } from './product-category.entity';
31
+ import { ProductFacilityInventory } from './product-facility-inventory.entity';
30
32
  import { ProductToFacility } from './product-to-facility.entity';
31
33
  export declare class Product extends OrganizationConnectionBaseEntity {
32
34
  name: string;
@@ -103,4 +105,8 @@ export declare class Product extends OrganizationConnectionBaseEntity {
103
105
  required?: boolean;
104
106
  existingMember?: MembershipMember;
105
107
  isAvailableOnline: boolean;
108
+ variantInventoryScope: ProductVariantInventoryScopeEnum;
109
+ inventoryTracked?: boolean;
110
+ facilityInventory?: ProductFacilityInventory;
111
+ productFacilityInventories: ProductFacilityInventory[];
106
112
  }
@@ -1 +1 @@
1
- {"version":3,"file":"product.entity.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/product.entity.ts"],"names":[],"mappings":";;;AAiBA,oGAAiG;AA6BjG,MAAa,OAAQ,SAAQ,mEAAgC;CA+J5D;AA/JD,0BA+JC"}
1
+ {"version":3,"file":"product.entity.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/product.entity.ts"],"names":[],"mappings":";;;AAiBA,oGAAiG;AA+BjG,MAAa,OAAQ,SAAQ,mEAAgC;CAuK5D;AAvKD,0BAuKC"}
@@ -1,3 +1,4 @@
1
1
  export * from './product-category.consts';
2
+ export * from './product-inventory.consts';
2
3
  export * from './product-pricing.consts';
3
4
  export * from './product-resource.consts';
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./product-category.consts"), exports);
18
+ __exportStar(require("./product-inventory.consts"), exports);
18
19
  __exportStar(require("./product-pricing.consts"), exports);
19
20
  __exportStar(require("./product-resource.consts"), exports);
20
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,2DAAyC;AACzC,4DAA0C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,6DAA2C;AAC3C,2DAAyC;AACzC,4DAA0C"}
@@ -0,0 +1 @@
1
+ export declare const INITIAL_CLAIMED_QUANTITY_AFTER = 0;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.INITIAL_CLAIMED_QUANTITY_AFTER = void 0;
4
+ exports.INITIAL_CLAIMED_QUANTITY_AFTER = 0;
5
+ //# sourceMappingURL=product-inventory.consts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-inventory.consts.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/consts/product-inventory.consts.ts"],"names":[],"mappings":";;;AAAa,QAAA,8BAA8B,GAAG,CAAC,CAAC"}
@@ -1,7 +1,12 @@
1
- import { ResourceNameTypeEnum } from '../../../services/enums.service';
1
+ import { PlatformsEnum, ResourceNameTypeEnum } from '../../../services/enums.service';
2
2
  import { IProductResource, IResource } from '../interfaces/product-resource.interfaces';
3
3
  export declare const uniqueByProductResource: (resource: IProductResource) => string;
4
4
  export declare const getUniqueByResource: (resource: IResource) => string;
5
+ /**
6
+ * Platforms whose incoming membership resource fields (resourceIdToRenew, startDate, endDate)
7
+ * survive the catalog rebuild. Other platforms get the catalog resource only.
8
+ */
9
+ export declare const MEMBERSHIP_RESOURCE_OVERRIDE_PLATFORMS: PlatformsEnum[];
5
10
  export declare const PRODUCT_RESOURCE_PARENT_TYPES: ResourceNameTypeEnum[];
6
11
  /**
7
12
  * Returns a query that checks if a product resource is a program season.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.productResourceToProgramQuery = exports.productResourceToProgramSeasonQuery = exports.PRODUCT_RESOURCE_PARENT_TYPES = exports.getUniqueByResource = exports.uniqueByProductResource = void 0;
3
+ exports.productResourceToProgramQuery = exports.productResourceToProgramSeasonQuery = exports.PRODUCT_RESOURCE_PARENT_TYPES = exports.MEMBERSHIP_RESOURCE_OVERRIDE_PLATFORMS = exports.getUniqueByResource = exports.uniqueByProductResource = void 0;
4
4
  const enums_service_1 = require("../../../services/enums.service");
5
5
  const uniqueByProductResource = (resource) => {
6
6
  return `${resource.productId}_${resource.type}_${resource.id}`;
@@ -8,6 +8,11 @@ const uniqueByProductResource = (resource) => {
8
8
  exports.uniqueByProductResource = uniqueByProductResource;
9
9
  const getUniqueByResource = (resource) => `${resource.type}_${resource.id}`;
10
10
  exports.getUniqueByResource = getUniqueByResource;
11
+ /**
12
+ * Platforms whose incoming membership resource fields (resourceIdToRenew, startDate, endDate)
13
+ * survive the catalog rebuild. Other platforms get the catalog resource only.
14
+ */
15
+ exports.MEMBERSHIP_RESOURCE_OVERRIDE_PLATFORMS = [enums_service_1.PlatformsEnum.BO, enums_service_1.PlatformsEnum.IMPORT];
11
16
  exports.PRODUCT_RESOURCE_PARENT_TYPES = [
12
17
  enums_service_1.ResourceNameTypeEnum.RESERVATION,
13
18
  enums_service_1.ResourceNameTypeEnum.PROGRAM_SEASON,
@@ -1 +1 @@
1
- {"version":3,"file":"product-resource.consts.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/consts/product-resource.consts.ts"],"names":[],"mappings":";;;AAAA,mEAAuE;AAGhE,MAAM,uBAAuB,GAAG,CAAC,QAA0B,EAAU,EAAE;IAC7E,OAAO,GAAG,QAAQ,CAAC,SAAS,IAAI,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,EAAE,EAAE,CAAC;AAChE,CAAC,CAAC;AAFW,QAAA,uBAAuB,2BAElC;AAEK,MAAM,mBAAmB,GAAG,CAAC,QAAmB,EAAU,EAAE,CAAC,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,EAAE,EAAE,CAAC;AAAzF,QAAA,mBAAmB,uBAAsE;AAEzF,QAAA,6BAA6B,GAAG;IAC5C,oCAAoB,CAAC,WAAW;IAChC,oCAAoB,CAAC,cAAc;IACnC,oCAAoB,CAAC,OAAO;IAC5B,oCAAoB,CAAC,UAAU;CAC/B,CAAC;AAEF;;;;GAIG;AACI,MAAM,mCAAmC,GAAG,CAAC,QAAgB,IAAI,EAAE,eAAuB,SAAS,EAAU,EAAE,CACrH,IAAI,YAAY,yBAAyB,KAAK,6BAA6B,KAAK,qBAAqB,YAAY,eAAe,KAAK,uBAAuB,oCAAoB,CAAC,cAAc,WAAW,KAAK,qBAAqB,YAAY,sBAAsB,KAAK,uBAAuB,oCAAoB,CAAC,OAAO,WAAW,KAAK,qBAAqB,YAAY,wBAAwB,KAAK,uBAAuB,oCAAoB,CAAC,YAAY,KAAK,CAAC;AAD9b,QAAA,mCAAmC,uCAC2Z;AAE3c;;;;GAIG;AACI,MAAM,6BAA6B,GAAG,CAAC,QAAgB,IAAI,EAAE,eAAuB,SAAS,EAAU,EAAE,CAC/G,IAAI,KAAK,yBAAyB,YAAY,6BAA6B,KAAK,qBAAqB,YAAY,eAAe,KAAK,uBAAuB,oCAAoB,CAAC,OAAO,WAAW,YAAY,eAAe,KAAK,uBAAuB,KAAK,uBAAuB,oCAAoB,CAAC,YAAY,KAAK,CAAC;AADjT,QAAA,6BAA6B,iCACoR"}
1
+ {"version":3,"file":"product-resource.consts.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/consts/product-resource.consts.ts"],"names":[],"mappings":";;;AAAA,mEAAsF;AAG/E,MAAM,uBAAuB,GAAG,CAAC,QAA0B,EAAU,EAAE;IAC7E,OAAO,GAAG,QAAQ,CAAC,SAAS,IAAI,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,EAAE,EAAE,CAAC;AAChE,CAAC,CAAC;AAFW,QAAA,uBAAuB,2BAElC;AAEK,MAAM,mBAAmB,GAAG,CAAC,QAAmB,EAAU,EAAE,CAAC,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,EAAE,EAAE,CAAC;AAAzF,QAAA,mBAAmB,uBAAsE;AAEtG;;;GAGG;AACU,QAAA,sCAAsC,GAAoB,CAAC,6BAAa,CAAC,EAAE,EAAE,6BAAa,CAAC,MAAM,CAAC,CAAC;AAEnG,QAAA,6BAA6B,GAAG;IAC5C,oCAAoB,CAAC,WAAW;IAChC,oCAAoB,CAAC,cAAc;IACnC,oCAAoB,CAAC,OAAO;IAC5B,oCAAoB,CAAC,UAAU;CAC/B,CAAC;AAEF;;;;GAIG;AACI,MAAM,mCAAmC,GAAG,CAAC,QAAgB,IAAI,EAAE,eAAuB,SAAS,EAAU,EAAE,CACrH,IAAI,YAAY,yBAAyB,KAAK,6BAA6B,KAAK,qBAAqB,YAAY,eAAe,KAAK,uBAAuB,oCAAoB,CAAC,cAAc,WAAW,KAAK,qBAAqB,YAAY,sBAAsB,KAAK,uBAAuB,oCAAoB,CAAC,OAAO,WAAW,KAAK,qBAAqB,YAAY,wBAAwB,KAAK,uBAAuB,oCAAoB,CAAC,YAAY,KAAK,CAAC;AAD9b,QAAA,mCAAmC,uCAC2Z;AAE3c;;;;GAIG;AACI,MAAM,6BAA6B,GAAG,CAAC,QAAgB,IAAI,EAAE,eAAuB,SAAS,EAAU,EAAE,CAC/G,IAAI,KAAK,yBAAyB,YAAY,6BAA6B,KAAK,qBAAqB,YAAY,eAAe,KAAK,uBAAuB,oCAAoB,CAAC,OAAO,WAAW,YAAY,eAAe,KAAK,uBAAuB,KAAK,uBAAuB,oCAAoB,CAAC,YAAY,KAAK,CAAC;AADjT,QAAA,6BAA6B,iCACoR"}
@@ -1,2 +1,3 @@
1
1
  export * from './product-categories.enums';
2
+ export * from './product-inventory.enums';
2
3
  export * from './product.enums';
@@ -15,5 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./product-categories.enums"), exports);
18
+ __exportStar(require("./product-inventory.enums"), exports);
18
19
  __exportStar(require("./product.enums"), exports);
19
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,kDAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,4DAA0C;AAC1C,kDAAgC"}