@bondsports/types 2.5.8 → 2.5.9-a-1

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 (116) 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 -41
  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/dist/types/standings-integration/types/consts/roster-rollover.consts.d.ts +1 -1
  90. package/dist/types/standings-integration/types/consts/roster-rollover.consts.js +1 -1
  91. package/dist/types/taxes/dto/default-tax.dto.d.ts +9 -1
  92. package/dist/types/taxes/dto/default-tax.dto.js +7 -1
  93. package/dist/types/taxes/dto/default-tax.dto.js.map +1 -1
  94. package/dist/types/taxes/dto/organization-default-tax.dto.d.ts +9 -5
  95. package/dist/types/taxes/dto/organization-default-tax.dto.js +4 -1
  96. package/dist/types/taxes/dto/organization-default-tax.dto.js.map +1 -1
  97. package/dist/types/taxes/dto/pagination.dto.d.ts +3 -0
  98. package/dist/types/taxes/dto/pagination.dto.js.map +1 -1
  99. package/dist/types/taxes/dto/tax.dto.d.ts +7 -0
  100. package/dist/types/taxes/dto/tax.dto.js.map +1 -1
  101. package/dist/types/taxes/entities/DefaultTax.d.ts +5 -3
  102. package/dist/types/taxes/entities/DefaultTax.js +2 -2
  103. package/dist/types/taxes/entities/DefaultTax.js.map +1 -1
  104. package/dist/types/taxes/entities/Tax.d.ts +2 -0
  105. package/dist/types/taxes/entities/Tax.js.map +1 -1
  106. package/dist/types/taxes/entities/index.d.ts +1 -0
  107. package/dist/types/taxes/entities/index.js +1 -0
  108. package/dist/types/taxes/entities/index.js.map +1 -1
  109. package/dist/types/taxes/entities/tax-to-facility.entity.d.ts +10 -0
  110. package/dist/types/taxes/entities/tax-to-facility.entity.js +8 -0
  111. package/dist/types/taxes/entities/tax-to-facility.entity.js.map +1 -0
  112. package/dist/types/taxes/types/default-tax.classes.d.ts +15 -10
  113. package/dist/types/taxes/types/default-tax.classes.js +4 -1
  114. package/dist/types/taxes/types/default-tax.classes.js.map +1 -1
  115. package/dist/types/taxes/types/tax.interfaces.d.ts +37 -0
  116. package/package.json +1 -1
@@ -0,0 +1,9 @@
1
+ export declare enum ProductInventoryAdjustmentSourceEnum {
2
+ MANUAL_SET = "manual_set",
3
+ SALE = "sale",
4
+ VOID = "void"
5
+ }
6
+ export declare enum ProductVariantInventoryScopeEnum {
7
+ SHARED = "shared",
8
+ PER_VARIANT = "per_variant"
9
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProductVariantInventoryScopeEnum = exports.ProductInventoryAdjustmentSourceEnum = void 0;
4
+ var ProductInventoryAdjustmentSourceEnum;
5
+ (function (ProductInventoryAdjustmentSourceEnum) {
6
+ ProductInventoryAdjustmentSourceEnum["MANUAL_SET"] = "manual_set";
7
+ ProductInventoryAdjustmentSourceEnum["SALE"] = "sale";
8
+ ProductInventoryAdjustmentSourceEnum["VOID"] = "void";
9
+ })(ProductInventoryAdjustmentSourceEnum = exports.ProductInventoryAdjustmentSourceEnum || (exports.ProductInventoryAdjustmentSourceEnum = {}));
10
+ var ProductVariantInventoryScopeEnum;
11
+ (function (ProductVariantInventoryScopeEnum) {
12
+ ProductVariantInventoryScopeEnum["SHARED"] = "shared";
13
+ ProductVariantInventoryScopeEnum["PER_VARIANT"] = "per_variant";
14
+ })(ProductVariantInventoryScopeEnum = exports.ProductVariantInventoryScopeEnum || (exports.ProductVariantInventoryScopeEnum = {}));
15
+ //# sourceMappingURL=product-inventory.enums.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-inventory.enums.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/enums/product-inventory.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,oCAIX;AAJD,WAAY,oCAAoC;IAC/C,iEAAyB,CAAA;IACzB,qDAAa,CAAA;IACb,qDAAa,CAAA;AACd,CAAC,EAJW,oCAAoC,GAApC,4CAAoC,KAApC,4CAAoC,QAI/C;AAED,IAAY,gCAGX;AAHD,WAAY,gCAAgC;IAC3C,qDAAiB,CAAA;IACjB,+DAA2B,CAAA;AAC5B,CAAC,EAHW,gCAAgC,GAAhC,wCAAgC,KAAhC,wCAAgC,QAG3C"}
@@ -34,7 +34,8 @@ export declare enum ProductExpandEnum {
34
34
  RESOURCE_SETTINGS = "resourceSettings",
35
35
  PUNCH_PASS = "punchPass",
36
36
  PUNCH_PASS_HOLDERS = "punchPass.holders",
37
- VARIANTS = "variants"
37
+ VARIANTS = "variants",
38
+ INVENTORY = "inventory"
38
39
  }
39
40
  export declare const PUBLIC_PRODUCT_EXPAND_VALUES: ProductExpandEnum[];
40
41
  /**
@@ -47,3 +48,10 @@ export declare enum ProductBuilderTypeEnum {
47
48
  PROGRAM_PUNCH_PASS = "program_punch_pass",
48
49
  RENTAL_PUNCH_PASS = "rental_punch_pass"
49
50
  }
51
+ export declare enum CommerceProductInventoryFilterStatusEnum {
52
+ NOT_TRACKED = "not_tracked",
53
+ SOLD_OUT = "sold_out",
54
+ LOW_STOCK = "low_stock",
55
+ IN_STOCK = "in_stock",
56
+ OVERSOLD = "oversold"
57
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ProductBuilderTypeEnum = exports.PRODUCT_EXPAND_CREATE_RESPONSE = exports.PUBLIC_PRODUCT_EXPAND_VALUES = exports.ProductExpandEnum = exports.OrderByProductEnum = exports.ProductStateEnum = void 0;
3
+ exports.CommerceProductInventoryFilterStatusEnum = exports.ProductBuilderTypeEnum = exports.PRODUCT_EXPAND_CREATE_RESPONSE = exports.PUBLIC_PRODUCT_EXPAND_VALUES = exports.ProductExpandEnum = exports.OrderByProductEnum = exports.ProductStateEnum = void 0;
4
4
  var ProductStateEnum;
5
5
  (function (ProductStateEnum) {
6
6
  ProductStateEnum["VALID"] = "valid";
@@ -41,6 +41,7 @@ var ProductExpandEnum;
41
41
  ProductExpandEnum["PUNCH_PASS"] = "punchPass";
42
42
  ProductExpandEnum["PUNCH_PASS_HOLDERS"] = "punchPass.holders";
43
43
  ProductExpandEnum["VARIANTS"] = "variants";
44
+ ProductExpandEnum["INVENTORY"] = "inventory";
44
45
  })(ProductExpandEnum = exports.ProductExpandEnum || (exports.ProductExpandEnum = {}));
45
46
  exports.PUBLIC_PRODUCT_EXPAND_VALUES = [
46
47
  ProductExpandEnum.PRICES,
@@ -73,4 +74,12 @@ var ProductBuilderTypeEnum;
73
74
  ProductBuilderTypeEnum["PROGRAM_PUNCH_PASS"] = "program_punch_pass";
74
75
  ProductBuilderTypeEnum["RENTAL_PUNCH_PASS"] = "rental_punch_pass";
75
76
  })(ProductBuilderTypeEnum = exports.ProductBuilderTypeEnum || (exports.ProductBuilderTypeEnum = {}));
77
+ var CommerceProductInventoryFilterStatusEnum;
78
+ (function (CommerceProductInventoryFilterStatusEnum) {
79
+ CommerceProductInventoryFilterStatusEnum["NOT_TRACKED"] = "not_tracked";
80
+ CommerceProductInventoryFilterStatusEnum["SOLD_OUT"] = "sold_out";
81
+ CommerceProductInventoryFilterStatusEnum["LOW_STOCK"] = "low_stock";
82
+ CommerceProductInventoryFilterStatusEnum["IN_STOCK"] = "in_stock";
83
+ CommerceProductInventoryFilterStatusEnum["OVERSOLD"] = "oversold";
84
+ })(CommerceProductInventoryFilterStatusEnum = exports.CommerceProductInventoryFilterStatusEnum || (exports.CommerceProductInventoryFilterStatusEnum = {}));
76
85
  //# sourceMappingURL=product.enums.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"product.enums.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/enums/product.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC3B,mCAAe,CAAA;IACf,+CAA2B,CAAA;AAC5B,CAAC,EAHW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAG3B;AAED,IAAY,kBAUX;AAVD,WAAY,kBAAkB;IAC7B,+BAAS,CAAA;IACT,mCAAa,CAAA;IACb,qCAAe,CAAA;IACf,2CAAqB,CAAA;IACrB,yDAAmC,CAAA;IACnC,uCAAiB,CAAA;IACjB,sDAAgC,CAAA;IAChC,2DAAqC,CAAA;IACrC,+DAAyC,CAAA;AAC1C,CAAC,EAVW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAU7B;AAED,IAAY,iBAsBX;AAtBD,WAAY,iBAAiB;IAC5B,sCAAiB,CAAA;IACjB,2DAAsC,CAAA;IACtC,mEAA8C,CAAA;IAC9C,yDAAoC,CAAA;IACpC,kDAA6B,CAAA;IAC7B,yDAAoC,CAAA;IACpC,qDAAgC,CAAA;IAChC,oCAAe,CAAA;IACf,4CAAuB,CAAA;IACvB,2DAAsC,CAAA;IACtC,8CAAyB,CAAA;IACzB,iDAA4B,CAAA;IAC5B,yCAAoB,CAAA;IACpB,6DAAwC,CAAA;IACxC,4CAAuB,CAAA;IACvB,iDAA4B,CAAA;IAC5B,mDAA8B,CAAA;IAC9B,2DAAsC,CAAA;IACtC,6CAAwB,CAAA;IACxB,6DAAwC,CAAA;IACxC,0CAAqB,CAAA;AACtB,CAAC,EAtBW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAsB5B;AAEY,QAAA,4BAA4B,GAAwB;IAChE,iBAAiB,CAAC,MAAM;IACxB,iBAAiB,CAAC,iBAAiB;IACnC,iBAAiB,CAAC,qBAAqB;IACvC,iBAAiB,CAAC,gBAAgB;IAClC,iBAAiB,CAAC,gBAAgB;IAClC,iBAAiB,CAAC,gBAAgB;IAClC,iBAAiB,CAAC,cAAc;IAChC,iBAAiB,CAAC,KAAK;CACvB,CAAC;AAEF;;;GAGG;AACU,QAAA,8BAA8B,GAAwB;IAClE,iBAAiB,CAAC,QAAQ;IAC1B,iBAAiB,CAAC,SAAS;IAC3B,iBAAiB,CAAC,UAAU;IAC5B,iBAAiB,CAAC,iBAAiB;IACnC,iBAAiB,CAAC,iBAAiB;IACnC,iBAAiB,CAAC,MAAM;IACxB,iBAAiB,CAAC,gBAAgB;IAClC,iBAAiB,CAAC,qBAAqB;IACvC,iBAAiB,CAAC,KAAK;CACvB,CAAC;AAEF,IAAY,sBAIX;AAJD,WAAY,sBAAsB;IACjC,2CAAiB,CAAA;IACjB,mEAAyC,CAAA;IACzC,iEAAuC,CAAA;AACxC,CAAC,EAJW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAIjC"}
1
+ {"version":3,"file":"product.enums.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/enums/product.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC3B,mCAAe,CAAA;IACf,+CAA2B,CAAA;AAC5B,CAAC,EAHW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAG3B;AAED,IAAY,kBAUX;AAVD,WAAY,kBAAkB;IAC7B,+BAAS,CAAA;IACT,mCAAa,CAAA;IACb,qCAAe,CAAA;IACf,2CAAqB,CAAA;IACrB,yDAAmC,CAAA;IACnC,uCAAiB,CAAA;IACjB,sDAAgC,CAAA;IAChC,2DAAqC,CAAA;IACrC,+DAAyC,CAAA;AAC1C,CAAC,EAVW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAU7B;AAED,IAAY,iBAuBX;AAvBD,WAAY,iBAAiB;IAC5B,sCAAiB,CAAA;IACjB,2DAAsC,CAAA;IACtC,mEAA8C,CAAA;IAC9C,yDAAoC,CAAA;IACpC,kDAA6B,CAAA;IAC7B,yDAAoC,CAAA;IACpC,qDAAgC,CAAA;IAChC,oCAAe,CAAA;IACf,4CAAuB,CAAA;IACvB,2DAAsC,CAAA;IACtC,8CAAyB,CAAA;IACzB,iDAA4B,CAAA;IAC5B,yCAAoB,CAAA;IACpB,6DAAwC,CAAA;IACxC,4CAAuB,CAAA;IACvB,iDAA4B,CAAA;IAC5B,mDAA8B,CAAA;IAC9B,2DAAsC,CAAA;IACtC,6CAAwB,CAAA;IACxB,6DAAwC,CAAA;IACxC,0CAAqB,CAAA;IACrB,4CAAuB,CAAA;AACxB,CAAC,EAvBW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAuB5B;AAEY,QAAA,4BAA4B,GAAwB;IAChE,iBAAiB,CAAC,MAAM;IACxB,iBAAiB,CAAC,iBAAiB;IACnC,iBAAiB,CAAC,qBAAqB;IACvC,iBAAiB,CAAC,gBAAgB;IAClC,iBAAiB,CAAC,gBAAgB;IAClC,iBAAiB,CAAC,gBAAgB;IAClC,iBAAiB,CAAC,cAAc;IAChC,iBAAiB,CAAC,KAAK;CACvB,CAAC;AAEF;;;GAGG;AACU,QAAA,8BAA8B,GAAwB;IAClE,iBAAiB,CAAC,QAAQ;IAC1B,iBAAiB,CAAC,SAAS;IAC3B,iBAAiB,CAAC,UAAU;IAC5B,iBAAiB,CAAC,iBAAiB;IACnC,iBAAiB,CAAC,iBAAiB;IACnC,iBAAiB,CAAC,MAAM;IACxB,iBAAiB,CAAC,gBAAgB;IAClC,iBAAiB,CAAC,qBAAqB;IACvC,iBAAiB,CAAC,KAAK;CACvB,CAAC;AAEF,IAAY,sBAIX;AAJD,WAAY,sBAAsB;IACjC,2CAAiB,CAAA;IACjB,mEAAyC,CAAA;IACzC,iEAAuC,CAAA;AACxC,CAAC,EAJW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAIjC;AAED,IAAY,wCAMX;AAND,WAAY,wCAAwC;IACnD,uEAA2B,CAAA;IAC3B,iEAAqB,CAAA;IACrB,mEAAuB,CAAA;IACvB,iEAAqB,CAAA;IACrB,iEAAqB,CAAA;AACtB,CAAC,EANW,wCAAwC,GAAxC,gDAAwC,KAAxC,gDAAwC,QAMnD"}
@@ -1,5 +1,6 @@
1
1
  export * from './product-categories.interfaces';
2
2
  export * from './product-creation.interfaces';
3
+ export * from './product-inventory.interfaces';
3
4
  export * from './product-pricing.interfaces';
4
5
  export * from './product-resource.interfaces';
5
6
  export * from './validate-resources.interfaces';
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./product-categories.interfaces"), exports);
18
18
  __exportStar(require("./product-creation.interfaces"), exports);
19
+ __exportStar(require("./product-inventory.interfaces"), exports);
19
20
  __exportStar(require("./product-pricing.interfaces"), exports);
20
21
  __exportStar(require("./product-resource.interfaces"), exports);
21
22
  __exportStar(require("./validate-resources.interfaces"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kEAAgD;AAChD,gEAA8C;AAC9C,+DAA6C;AAC7C,gEAA8C;AAC9C,kEAAgD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kEAAgD;AAChD,gEAA8C;AAC9C,iEAA+C;AAC/C,+DAA6C;AAC7C,gEAA8C;AAC9C,kEAAgD"}
@@ -0,0 +1,36 @@
1
+ import { ProductInventoryAdjustmentSourceEnum } from '../enums/product-inventory.enums';
2
+ /**
3
+ * One claimed facility inventory mutation.
4
+ * `lowInventoryThreshold` undefined leaves the stored threshold unchanged; `null` clears it.
5
+ */
6
+ export interface IFacilityInventoryAdjustmentInput {
7
+ organizationId: number;
8
+ facilityId: number;
9
+ lineItemId?: number;
10
+ productId: number;
11
+ idempotencyKey: string;
12
+ lowInventoryThreshold?: number | null;
13
+ quantityDelta: number;
14
+ /**
15
+ * When set, the mutation applies only to a facility row created at or before this instant.
16
+ */
17
+ saleCreatedAt?: Date;
18
+ source: ProductInventoryAdjustmentSourceEnum;
19
+ /**
20
+ * When set, the facility quantity is overwritten to this value.
21
+ * The ledger `quantityDelta` is rewritten after the locked read.
22
+ */
23
+ targetQuantity?: number;
24
+ }
25
+ export interface ITrackedProductFamilyRow {
26
+ productId: number;
27
+ variantParentId: number | null;
28
+ }
29
+ export interface ILineItemQuantityOverride {
30
+ lineItemId: number;
31
+ quantity?: number;
32
+ }
33
+ export interface IReplenishLineItemsOptions {
34
+ idempotencyScope: string;
35
+ quantityOverrides?: ILineItemQuantityOverride[];
36
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=product-inventory.interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-inventory.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/interfaces/product-inventory.interfaces.ts"],"names":[],"mappings":""}
@@ -9,7 +9,7 @@ import { ActivityEnum, CancellationStatusEnum, OrderByEnum } from '../../../serv
9
9
  import { ICalculatedTax } from '../../../services/interfaces.service';
10
10
  import { IPagination } from '../../../util/models/interfaces/general.interfaces';
11
11
  import { Product } from '../../entities/product.entity';
12
- import { OrderByProductEnum, ProductExpandEnum } from '../enums/product.enums';
12
+ import { CommerceProductInventoryFilterStatusEnum, OrderByProductEnum, ProductExpandEnum } from '../enums/product.enums';
13
13
  import { IProductResource } from './product-resource.interfaces';
14
14
  export interface IGetCurrentPricesOptions {
15
15
  userId?: number;
@@ -24,6 +24,7 @@ export interface IGetCurrentPricesOptions {
24
24
  */
25
25
  export interface IGetExtendedProductsOptions {
26
26
  expand?: ProductExpandEnum[];
27
+ facilityId?: number;
27
28
  skipProrated?: boolean;
28
29
  }
29
30
  export interface IGetProductsByTypeOptions extends IPagination {
@@ -35,8 +36,13 @@ export interface IGetProductsByTypeOptions extends IPagination {
35
36
  excludeResourceIds?: number[];
36
37
  expand?: ProductExpandEnum[];
37
38
  facilitiesIds?: number[];
39
+ /**
40
+ * When set, list and detail responses attach `facilityInventory` for this facility.
41
+ */
42
+ facilityId?: number;
38
43
  includeAddons?: boolean;
39
44
  includeArchived?: boolean;
45
+ inventoryStatuses?: CommerceProductInventoryFilterStatusEnum[];
40
46
  includeOnlyNotAssignedToCategory?: boolean;
41
47
  inclusion?: boolean;
42
48
  instructorsIds?: number[];
@@ -5,6 +5,7 @@ import { OrderByEnum, PlatformsEnum, ProductSubTypesEnum, ProductTypesEnum, Reso
5
5
  import { IPagination } from '../../../util/models/interfaces/general.interfaces';
6
6
  export interface IResource {
7
7
  id?: number;
8
+ endDate?: DateInput;
8
9
  excludedIds?: number[];
9
10
  includedIds?: number[];
10
11
  isAll?: boolean;
@@ -21,4 +21,5 @@ export interface IValidateResourcesOptions {
21
21
  platform?: PlatformsEnum;
22
22
  skipExistingRegistrationValidations?: boolean;
23
23
  skipOptionalValidations?: boolean;
24
+ skipRegistrationDates?: boolean;
24
25
  }
@@ -1,6 +1,5 @@
1
1
  import { AddCartItemDto } from '../../cart/dto/cart-item.dto';
2
2
  import { UpdateCartPricesDto } from '../../cart/dto/cart.dto';
3
- import { UserAnswersDto } from '../../dto/application.dto';
4
3
  import { SaveCardTerminalInputDto } from '../../dto/userPaymentMethod.dto';
5
4
  import { Customer } from '../../entity/Customer';
6
5
  import { ProductsUsers } from '../../entity/ProductsUsers';
@@ -22,35 +21,6 @@ export declare class PurchasePaymentDto implements IPurchasePayment {
22
21
  allowRedisplay?: AllowRedisplayEnum;
23
22
  cardSaveTerminalData?: SaveCardTerminalInputDto;
24
23
  }
25
- export declare class ChargeRentalsReuqestDto {
26
- organizationId: number;
27
- userId?: number;
28
- customerId?: number;
29
- invoiceId: number;
30
- paymentData?: PurchasePaymentDto;
31
- amountToPay: number;
32
- total: number;
33
- platform: PlatformsEnum;
34
- shiftId?: number;
35
- }
36
- export declare class PurchaseRequestDto {
37
- purchasingUserId: number;
38
- customerId?: number;
39
- products: PurchaseProductDto[];
40
- paymentData?: PurchasePaymentDto;
41
- platform: PlatformsEnum;
42
- answers: UserAnswersDto[];
43
- amountToPay: number;
44
- parentPurchasedType?: ResourceNameTypeEnum;
45
- parentPurchasedId?: number;
46
- existingInvoiceToken?: string;
47
- installments?: ScheduledPaymentDto[];
48
- shiftId?: number;
49
- invoiceId?: number;
50
- existingInvoiceId?: number;
51
- installmentId?: number;
52
- isAutoRenewal?: boolean;
53
- }
54
24
  /**
55
25
  * Resource selection shared by public and backoffice request surfaces. Revenue attribution
56
26
  * (`facilityId`) is server-stamped and lives on `PurchaseResourceDto` only.
@@ -59,6 +29,7 @@ export declare class BasePurchaseResourceDto {
59
29
  id?: number;
60
30
  type: ResourceNameTypeEnum;
61
31
  startDate?: Date;
32
+ endDate?: Date;
62
33
  resourceIdToRenew?: number;
63
34
  isAll?: boolean;
64
35
  includedIds?: number[];
@@ -78,14 +49,9 @@ export declare class PurchaseProductDto {
78
49
  resources?: PurchaseResourceDto[];
79
50
  userId?: number;
80
51
  paymentStatus?: PaymentStatusEnum;
81
- amountToPay?: number;
82
- paidAmount?: number;
83
- unitPrice?: number;
84
- ordinal?: number;
85
52
  startDate?: Date;
86
53
  endDate?: Date;
87
54
  quantity?: number;
88
- parentProductId?: number;
89
55
  resourceIdToRenew?: number;
90
56
  parentResourceId?: string;
91
57
  parentResourceType?: ResourceNameTypeEnum;
@@ -117,12 +83,6 @@ export declare class PartialPaymentRequestDto {
117
83
  installmentIds?: number[];
118
84
  tipAmount?: number;
119
85
  }
120
- export declare class RedeemPunchCardRequestDto {
121
- products: PurchaseProductDto[];
122
- answersTitlesIds: number[];
123
- organizationId: number;
124
- purchasingUserId: number;
125
- }
126
86
  export declare class AddCartItemsToInvoiceDto {
127
87
  cartItems: AddCartItemDto[];
128
88
  shiftId?: number;
@@ -1,17 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PurchaseCartDto = exports.BasicPurchaseDto = exports.PurchaseResultDto = exports.ValidateParticipantDto = exports.PartialPaymentAsUserDto = exports.AddCartItemsToInvoiceDto = exports.RedeemPunchCardRequestDto = exports.PartialPaymentRequestDto = exports.ScheduledPaymentRequestBodyDto = exports.ScheduledPaymentRequestDto = exports.ScheduledPaymentConsumerRequestDto = exports.PurchaseProductDto = exports.PurchaseResourceDto = exports.BasePurchaseResourceDto = exports.PurchaseRequestDto = exports.ChargeRentalsReuqestDto = exports.PurchasePaymentDto = void 0;
3
+ exports.PurchaseCartDto = exports.BasicPurchaseDto = exports.PurchaseResultDto = exports.ValidateParticipantDto = exports.PartialPaymentAsUserDto = exports.AddCartItemsToInvoiceDto = exports.PartialPaymentRequestDto = exports.ScheduledPaymentRequestBodyDto = exports.ScheduledPaymentRequestDto = exports.ScheduledPaymentConsumerRequestDto = exports.PurchaseProductDto = exports.PurchaseResourceDto = exports.BasePurchaseResourceDto = exports.PurchasePaymentDto = void 0;
4
4
  const invoice_cart_dto_1 = require("../../invoice/dto/invoice-cart.dto");
5
5
  const organization_dto_1 = require("../../organization/dto/organization.dto");
6
6
  class PurchasePaymentDto {
7
7
  }
8
8
  exports.PurchasePaymentDto = PurchasePaymentDto;
9
- class ChargeRentalsReuqestDto {
10
- }
11
- exports.ChargeRentalsReuqestDto = ChargeRentalsReuqestDto;
12
- class PurchaseRequestDto {
13
- }
14
- exports.PurchaseRequestDto = PurchaseRequestDto;
15
9
  /**
16
10
  * Resource selection shared by public and backoffice request surfaces. Revenue attribution
17
11
  * (`facilityId`) is server-stamped and lives on `PurchaseResourceDto` only.
@@ -37,9 +31,6 @@ exports.ScheduledPaymentRequestBodyDto = ScheduledPaymentRequestBodyDto;
37
31
  class PartialPaymentRequestDto {
38
32
  }
39
33
  exports.PartialPaymentRequestDto = PartialPaymentRequestDto;
40
- class RedeemPunchCardRequestDto {
41
- }
42
- exports.RedeemPunchCardRequestDto = RedeemPunchCardRequestDto;
43
34
  class AddCartItemsToInvoiceDto {
44
35
  }
45
36
  exports.AddCartItemsToInvoiceDto = AddCartItemsToInvoiceDto;
@@ -1 +1 @@
1
- {"version":3,"file":"purchase.dto.js","sourceRoot":"","sources":["../../../../src/types/purchase/dto/purchase.dto.ts"],"names":[],"mappings":";;;AASA,yEAAoE;AAEpE,8EAA8E;AAe9E,MAAa,kBAAkB;CAY9B;AAZD,gDAYC;AAED,MAAa,uBAAuB;CAkBnC;AAlBD,0DAkBC;AAED,MAAa,kBAAkB;CAiC9B;AAjCD,gDAiCC;AAED;;;GAGG;AACH,MAAa,uBAAuB;CAoBnC;AApBD,0DAoBC;AAED,MAAa,mBAAoB,SAAQ,uBAAuB;CAE/D;AAFD,kDAEC;AAED,MAAa,kBAAkB;CAqC9B;AArCD,gDAqCC;AAED,MAAa,kCAAkC;CAM9C;AAND,gFAMC;AAED,MAAa,0BAA2B,SAAQ,sCAAmB;CAIlE;AAJD,gEAIC;AAED,MAAa,8BAA8B;CAU1C;AAVD,wEAUC;AAED,MAAa,wBAAwB;CAkBpC;AAlBD,4DAkBC;AAED,MAAa,yBAAyB;CAQrC;AARD,8DAQC;AAED,MAAa,wBAAwB;CAUpC;AAVD,4DAUC;AAED,MAAa,uBAAuB;CAUnC;AAVD,0DAUC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,iBAAiB;CAU7B;AAVD,8CAUC;AAED,MAAa,gBAAgB;CAI5B;AAJD,4CAIC;AAED,MAAa,eAAgB,SAAQ,iCAAc;CAkBlD;AAlBD,0CAkBC"}
1
+ {"version":3,"file":"purchase.dto.js","sourceRoot":"","sources":["../../../../src/types/purchase/dto/purchase.dto.ts"],"names":[],"mappings":";;;AAQA,yEAAoE;AAEpE,8EAA8E;AAe9E,MAAa,kBAAkB;CAY9B;AAZD,gDAYC;AAED;;;GAGG;AACH,MAAa,uBAAuB;CAsBnC;AAtBD,0DAsBC;AAED,MAAa,mBAAoB,SAAQ,uBAAuB;CAE/D;AAFD,kDAEC;AAED,MAAa,kBAAkB;CA2B9B;AA3BD,gDA2BC;AAED,MAAa,kCAAkC;CAM9C;AAND,gFAMC;AAED,MAAa,0BAA2B,SAAQ,sCAAmB;CAIlE;AAJD,gEAIC;AAED,MAAa,8BAA8B;CAU1C;AAVD,wEAUC;AAED,MAAa,wBAAwB;CAkBpC;AAlBD,4DAkBC;AAED,MAAa,wBAAwB;CAUpC;AAVD,4DAUC;AAED,MAAa,uBAAuB;CAUnC;AAVD,0DAUC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,iBAAiB;CAU7B;AAVD,8CAUC;AAED,MAAa,gBAAgB;CAI5B;AAJD,4CAIC;AAED,MAAa,eAAgB,SAAQ,iCAAc;CAkBlD;AAlBD,0CAkBC"}
@@ -1,12 +1,9 @@
1
1
  import { IUpdateCartPrices, IValidateCartOptions } from '../../../cart/types/interfaces/cart.interfaces';
2
2
  import { UserAnswersDto } from '../../../dto/application.dto';
3
3
  import { Customer } from '../../../entity/Customer';
4
- import { EventAttendee } from '../../../entity/EventAttendees';
5
4
  import { Invoice } from '../../../entity/Invoice';
6
5
  import { ProductsUsers } from '../../../entity/ProductsUsers';
7
- import { PurchasedResource } from '../../../entity/PurchasedResources';
8
6
  import { IInvoiceCart } from '../../../invoice/types/interfaces/invoice.interfaces';
9
- import { IMembershipMemberAndRenewalRecord } from '../../../membership/types/membership.interfaces';
10
7
  import { Organization } from '../../../organization/entities/Organization';
11
8
  import { ScheduledPaymentDto } from '../../../payment/dto/payment-plan.dto';
12
9
  import { Payment } from '../../../payment/entities/Payment';
@@ -15,7 +12,6 @@ import { ISaveInvoicePayment } from '../../../payment/types/interfaces/payment.i
15
12
  import { ISaveCardTerminalInput } from '../../../payment/types/interfaces/user-payment-method.interfaces';
16
13
  import { Product } from '../../../product-pricing/entities/product.entity';
17
14
  import { IResource } from '../../../product-pricing/types/interfaces/product-resource.interfaces';
18
- import { UserPunchPass } from '../../../punch-pass/entities';
19
15
  import { CurrencyEnum, GenderEnum, LineItemsStatusEnum, ProductSubTypesEnum, ProductTypesEnum, ResourceNameTypeEnum } from '../../../services/enums.service';
20
16
  import { Tax } from '../../../taxes/entities/Tax';
21
17
  import { User } from '../../../user/entities/User';
@@ -88,7 +84,6 @@ export interface IPurchaseResult extends ChargeInvoiceResult {
88
84
  export interface IPurchaseOptions extends IValidateCartOptions {
89
85
  allowWaitlistCartPurchase?: boolean;
90
86
  isImport?: boolean;
91
- overrideQuantity?: number;
92
87
  skipMail?: boolean;
93
88
  }
94
89
  export interface IPurchasePayment {
@@ -113,12 +108,6 @@ export interface IPurchaseCart extends IInvoiceCart {
113
108
  tipAmount?: number;
114
109
  updatePrices?: IUpdateCartPrices;
115
110
  }
116
- export interface IRegisteredResourcesResult {
117
- eventAttendees: EventAttendee[];
118
- membershipMembers: IMembershipMemberAndRenewalRecord[];
119
- purchasedResources: PurchasedResource[];
120
- userPunchPass?: UserPunchPass;
121
- }
122
111
  export interface IAnswersParentResource extends IResource {
123
112
  answers?: UserAnswersDto[];
124
113
  }
@@ -0,0 +1 @@
1
+ export * from './types';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/registration/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB"}
@@ -0,0 +1 @@
1
+ export * from './interfaces';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./interfaces"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/registration/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B"}
@@ -0,0 +1 @@
1
+ export * from './registration.interfaces';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./registration.interfaces"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/registration/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C"}
@@ -0,0 +1,10 @@
1
+ import { PaymentStatusEnum } from '../../../payment/types/enums/payment.enums';
2
+ /**
3
+ * The product and user a registration is created for.
4
+ * Cart items already carry these fields.
5
+ */
6
+ export interface IRegistrationItem {
7
+ productId: number;
8
+ userId: number;
9
+ paymentStatus?: PaymentStatusEnum;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=registration.interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registration.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/registration/types/interfaces/registration.interfaces.ts"],"names":[],"mappings":""}
@@ -2,7 +2,7 @@
2
2
  export declare const ROLLOVER_MANAGE_PERMISSION = "programs.sessions.edit";
3
3
  /**
4
4
  * Max players rolled over concurrently within one batch request. Each player runs
5
- * in its own transaction (and may run a full `purchase()`), so this is kept well
5
+ * in its own transaction (and may run a full `purchaseUnsavedCart`), so this is kept well
6
6
  * below the Postgres connection pool size to avoid exhausting it under load.
7
7
  */
8
8
  export declare const ROLLOVER_PLAYER_CONCURRENCY = 5;
@@ -5,7 +5,7 @@ exports.ROLLOVER_PLAYER_CONCURRENCY = exports.ROLLOVER_MANAGE_PERMISSION = void
5
5
  exports.ROLLOVER_MANAGE_PERMISSION = 'programs.sessions.edit';
6
6
  /**
7
7
  * Max players rolled over concurrently within one batch request. Each player runs
8
- * in its own transaction (and may run a full `purchase()`), so this is kept well
8
+ * in its own transaction (and may run a full `purchaseUnsavedCart`), so this is kept well
9
9
  * below the Postgres connection pool size to avoid exhausting it under load.
10
10
  */
11
11
  exports.ROLLOVER_PLAYER_CONCURRENCY = 5;
@@ -2,13 +2,21 @@ import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
2
2
  import { ProductTypesEnum } from '../../services/enums.service';
3
3
  export declare class GetDefaultTaxesFiltersDto {
4
4
  productTypes?: ProductTypesEnum[];
5
+ facilitiesIds?: number[];
5
6
  }
6
7
  export declare class GetSingleDefaultTaxDto extends ByOrganizationIdDto {
7
8
  productType: ProductTypesEnum;
8
9
  }
10
+ export declare class ResolveDefaultTaxesQueryDto {
11
+ facilitiesIds?: number[];
12
+ }
13
+ export declare class DefaultTaxRowDto {
14
+ facilitiesIds: number[];
15
+ taxesIds: number[];
16
+ }
9
17
  export declare class UpdateDefaultTaxesDto {
10
18
  productType: ProductTypesEnum;
11
- taxesIds: number[];
19
+ rows: DefaultTaxRowDto[];
12
20
  updateProducts?: boolean;
13
21
  }
14
22
  export declare class DefaultTaxUpdatesDto {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DefaultTaxUpdatesDto = exports.UpdateDefaultTaxesDto = exports.GetSingleDefaultTaxDto = exports.GetDefaultTaxesFiltersDto = void 0;
3
+ exports.DefaultTaxUpdatesDto = exports.UpdateDefaultTaxesDto = exports.DefaultTaxRowDto = exports.ResolveDefaultTaxesQueryDto = exports.GetSingleDefaultTaxDto = exports.GetDefaultTaxesFiltersDto = void 0;
4
4
  const organization_dto_1 = require("../../organization/dto/organization.dto");
5
5
  class GetDefaultTaxesFiltersDto {
6
6
  }
@@ -8,6 +8,12 @@ exports.GetDefaultTaxesFiltersDto = GetDefaultTaxesFiltersDto;
8
8
  class GetSingleDefaultTaxDto extends organization_dto_1.ByOrganizationIdDto {
9
9
  }
10
10
  exports.GetSingleDefaultTaxDto = GetSingleDefaultTaxDto;
11
+ class ResolveDefaultTaxesQueryDto {
12
+ }
13
+ exports.ResolveDefaultTaxesQueryDto = ResolveDefaultTaxesQueryDto;
14
+ class DefaultTaxRowDto {
15
+ }
16
+ exports.DefaultTaxRowDto = DefaultTaxRowDto;
11
17
  class UpdateDefaultTaxesDto {
12
18
  }
13
19
  exports.UpdateDefaultTaxesDto = UpdateDefaultTaxesDto;
@@ -1 +1 @@
1
- {"version":3,"file":"default-tax.dto.js","sourceRoot":"","sources":["../../../../src/types/taxes/dto/default-tax.dto.ts"],"names":[],"mappings":";;;AACA,8EAA8E;AAG9E,MAAa,yBAAyB;CAErC;AAFD,8DAEC;AAED,MAAa,sBAAuB,SAAQ,sCAAmB;CAE9D;AAFD,wDAEC;AAED,MAAa,qBAAqB;CAMjC;AAND,sDAMC;AAED,MAAa,oBAAoB;CAEhC;AAFD,oDAEC"}
1
+ {"version":3,"file":"default-tax.dto.js","sourceRoot":"","sources":["../../../../src/types/taxes/dto/default-tax.dto.ts"],"names":[],"mappings":";;;AACA,8EAA8E;AAG9E,MAAa,yBAAyB;CAIrC;AAJD,8DAIC;AAED,MAAa,sBAAuB,SAAQ,sCAAmB;CAE9D;AAFD,wDAEC;AAED,MAAa,2BAA2B;CAEvC;AAFD,kEAEC;AAED,MAAa,gBAAgB;CAI5B;AAJD,4CAIC;AAED,MAAa,qBAAqB;CAMjC;AAND,sDAMC;AAED,MAAa,oBAAoB;CAEhC;AAFD,oDAEC"}
@@ -1,9 +1,13 @@
1
1
  import { ProductTypesEnum } from '../../services/enums.service';
2
2
  import { TaxDto } from './tax.dto';
3
+ export declare class DefaultTaxGroupDto {
4
+ facilityIds: number[] | null;
5
+ taxes: TaxDto[];
6
+ }
3
7
  export declare class OrganizationDefaultTaxesDto {
4
- [ProductTypesEnum.RESERVATION]?: TaxDto[];
5
- [ProductTypesEnum.REGISTRATION]?: TaxDto[];
6
- [ProductTypesEnum.MEMBERSHIP]?: TaxDto[];
7
- [ProductTypesEnum.GOODS]?: TaxDto[];
8
- [ProductTypesEnum.PACKAGE]?: TaxDto[];
8
+ [ProductTypesEnum.RESERVATION]?: DefaultTaxGroupDto[];
9
+ [ProductTypesEnum.REGISTRATION]?: DefaultTaxGroupDto[];
10
+ [ProductTypesEnum.MEMBERSHIP]?: DefaultTaxGroupDto[];
11
+ [ProductTypesEnum.GOODS]?: DefaultTaxGroupDto[];
12
+ [ProductTypesEnum.PACKAGE]?: DefaultTaxGroupDto[];
9
13
  }
@@ -1,7 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OrganizationDefaultTaxesDto = void 0;
3
+ exports.OrganizationDefaultTaxesDto = exports.DefaultTaxGroupDto = void 0;
4
4
  const enums_service_1 = require("../../services/enums.service");
5
+ class DefaultTaxGroupDto {
6
+ }
7
+ exports.DefaultTaxGroupDto = DefaultTaxGroupDto;
5
8
  class OrganizationDefaultTaxesDto {
6
9
  }
7
10
  exports.OrganizationDefaultTaxesDto = OrganizationDefaultTaxesDto;
@@ -1 +1 @@
1
- {"version":3,"file":"organization-default-tax.dto.js","sourceRoot":"","sources":["../../../../src/types/taxes/dto/organization-default-tax.dto.ts"],"names":[],"mappings":";;;AACA,gEAAgE;AAIhE,MAAa,2BAA2B;CAUvC;AAVD,kEAUC;AATC,gCAAgB,CAAC,WAAW,EAE5B,gCAAgB,CAAC,YAAY,EAE7B,gCAAgB,CAAC,UAAU,EAE3B,gCAAgB,CAAC,KAAK,EAEtB,gCAAgB,CAAC,OAAO"}
1
+ {"version":3,"file":"organization-default-tax.dto.js","sourceRoot":"","sources":["../../../../src/types/taxes/dto/organization-default-tax.dto.ts"],"names":[],"mappings":";;;AACA,gEAAgE;AAIhE,MAAa,kBAAkB;CAI9B;AAJD,gDAIC;AAED,MAAa,2BAA2B;CAUvC;AAVD,kEAUC;AATC,gCAAgB,CAAC,WAAW,EAE5B,gCAAgB,CAAC,YAAY,EAE7B,gCAAgB,CAAC,UAAU,EAE3B,gCAAgB,CAAC,KAAK,EAEtB,gCAAgB,CAAC,OAAO"}
@@ -6,5 +6,8 @@ export declare class GetTaxesFiltersDto extends PaginationSearchQuery<TaxOrderBy
6
6
  isInclusive?: boolean;
7
7
  isActive?: boolean;
8
8
  expand?: TaxesExpandEnum[];
9
+ facilitiesIds?: number[];
10
+ coverFacilitiesIds?: number[];
11
+ onlyAllFacilities?: boolean;
9
12
  orderBy?: TaxOrderByFieldEnum;
10
13
  }
@@ -1 +1 @@
1
- {"version":3,"file":"pagination.dto.js","sourceRoot":"","sources":["../../../../src/types/taxes/dto/pagination.dto.ts"],"names":[],"mappings":";;;AACA,uDAA8D;AAG9D,MAAa,kBAAmB,SAAQ,mCAA0C;CAYjF;AAZD,gDAYC"}
1
+ {"version":3,"file":"pagination.dto.js","sourceRoot":"","sources":["../../../../src/types/taxes/dto/pagination.dto.ts"],"names":[],"mappings":";;;AACA,uDAA8D;AAG9D,MAAa,kBAAmB,SAAQ,mCAA0C;CAkBjF;AAlBD,gDAkBC"}
@@ -1,3 +1,4 @@
1
+ import { SimpleFacilityDto } from '../../facilities/dto/facilities.dto';
1
2
  import { ResourceGlDto } from '../../gl-codes/dto/resource-to-gl.dto';
2
3
  import { ProductTypesEnum } from '../../services/enums.service';
3
4
  export declare class CreateTaxDto {
@@ -6,6 +7,7 @@ export declare class CreateTaxDto {
6
7
  isInclusive: boolean;
7
8
  description?: string;
8
9
  glIds?: number[];
10
+ facilitiesIds?: number[];
9
11
  }
10
12
  export declare class UpdateTaxDto {
11
13
  id: number;
@@ -16,11 +18,16 @@ export declare class UpdateTaxDto {
16
18
  isActive?: boolean;
17
19
  glIds?: number[];
18
20
  removeProducts?: boolean;
21
+ facilitiesIds?: number[];
22
+ detachProducts?: boolean;
19
23
  }
20
24
  export declare class TaxDto extends CreateTaxDto {
21
25
  id: number;
22
26
  organizationId: number;
23
27
  isActive: boolean;
28
+ facilityIds?: number[];
29
+ facilities?: SimpleFacilityDto[];
30
+ isAllFacilities?: boolean;
24
31
  updatedAt: Date;
25
32
  productsCount?: number;
26
33
  defaultTaxes?: ProductTypesEnum[];
@@ -1 +1 @@
1
- {"version":3,"file":"tax.dto.js","sourceRoot":"","sources":["../../../../src/types/taxes/dto/tax.dto.ts"],"names":[],"mappings":";;;AAIA,MAAa,YAAY;CAUxB;AAVD,oCAUC;AAED,MAAa,YAAY;CAiBxB;AAjBD,oCAiBC;AAED,MAAa,MAAO,SAAQ,YAAY;CAcvC;AAdD,wBAcC;AAED,MAAa,gBAAiB,SAAQ,MAAM;CAQ3C;AARD,4CAQC"}
1
+ {"version":3,"file":"tax.dto.js","sourceRoot":"","sources":["../../../../src/types/taxes/dto/tax.dto.ts"],"names":[],"mappings":";;;AAKA,MAAa,YAAY;CAYxB;AAZD,oCAYC;AAED,MAAa,YAAY;CAqBxB;AArBD,oCAqBC;AAED,MAAa,MAAO,SAAQ,YAAY;CAoBvC;AApBD,wBAoBC;AAED,MAAa,gBAAiB,SAAQ,MAAM;CAQ3C;AARD,4CAQC"}