@bondsports/types 2.5.8 → 2.5.9-a-2

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 (131) hide show
  1. package/dist/tsconfig.build.tsbuildinfo +1 -1
  2. package/dist/types/attendance/dto/attendance.dto.d.ts +1 -0
  3. package/dist/types/attendance/dto/attendance.dto.js.map +1 -1
  4. package/dist/types/cart/dto/cart-item-public.dto.d.ts +6 -5
  5. package/dist/types/cart/dto/cart-item-public.dto.js +5 -5
  6. package/dist/types/cart/dto/cart-item-public.dto.js.map +1 -1
  7. package/dist/types/cart/dto/cart-item.dto.d.ts +4 -3
  8. package/dist/types/cart/dto/cart-item.dto.js +4 -3
  9. package/dist/types/cart/dto/cart-item.dto.js.map +1 -1
  10. package/dist/types/cart/types/interfaces/cart.interfaces.d.ts +0 -1
  11. package/dist/types/dto/package.dto.d.ts +2 -0
  12. package/dist/types/dto/package.dto.js.map +1 -1
  13. package/dist/types/import/dto/import-punch-pass.dto.d.ts +11 -3
  14. package/dist/types/import/dto/import-punch-pass.dto.js +7 -1
  15. package/dist/types/import/dto/import-punch-pass.dto.js.map +1 -1
  16. package/dist/types/index.d.ts +1 -0
  17. package/dist/types/index.js +1 -0
  18. package/dist/types/index.js.map +1 -1
  19. package/dist/types/invoice/types/interfaces/invoice.interfaces.d.ts +0 -3
  20. package/dist/types/invoice/types/interfaces/invoice.interfaces.js.map +1 -1
  21. package/dist/types/membership/dto/membership.dto.d.ts +0 -1
  22. package/dist/types/membership/dto/membership.dto.js.map +1 -1
  23. package/dist/types/membership/dto/public-membership.dto.d.ts +2 -0
  24. package/dist/types/membership/dto/public-membership.dto.js.map +1 -1
  25. package/dist/types/membership/entities/membership.entity.d.ts +8 -1
  26. package/dist/types/membership/entities/membership.entity.js.map +1 -1
  27. package/dist/types/membership/types/membership.interfaces.d.ts +0 -5
  28. package/dist/types/payment/dto/refund.dto.d.ts +1 -0
  29. package/dist/types/payment/dto/refund.dto.js.map +1 -1
  30. package/dist/types/payment/dto/void.dto.d.ts +1 -0
  31. package/dist/types/payment/dto/void.dto.js.map +1 -1
  32. package/dist/types/payment/types/interfaces/payment.interfaces.d.ts +1 -8
  33. package/dist/types/payment/types/interfaces/payment.interfaces.js +1 -4
  34. package/dist/types/payment/types/interfaces/payment.interfaces.js.map +1 -1
  35. package/dist/types/payment/types/interfaces/void.interfaces.d.ts +1 -0
  36. package/dist/types/product-pricing/dto/index.d.ts +2 -0
  37. package/dist/types/product-pricing/dto/index.js +2 -0
  38. package/dist/types/product-pricing/dto/index.js.map +1 -1
  39. package/dist/types/product-pricing/dto/product-facility-inventory.dto.d.ts +7 -0
  40. package/dist/types/product-pricing/dto/product-facility-inventory.dto.js +8 -0
  41. package/dist/types/product-pricing/dto/product-facility-inventory.dto.js.map +1 -0
  42. package/dist/types/product-pricing/dto/product-inventory.dto.d.ts +16 -0
  43. package/dist/types/product-pricing/dto/product-inventory.dto.js +17 -0
  44. package/dist/types/product-pricing/dto/product-inventory.dto.js.map +1 -0
  45. package/dist/types/product-pricing/dto/product-pricing.dto.d.ts +3 -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 +7 -0
  48. package/dist/types/product-pricing/dto/product.dto.js.map +1 -1
  49. package/dist/types/product-pricing/entities/index.d.ts +2 -0
  50. package/dist/types/product-pricing/entities/index.js +2 -0
  51. package/dist/types/product-pricing/entities/index.js.map +1 -1
  52. package/dist/types/product-pricing/entities/product-facility-inventory.entity.d.ts +12 -0
  53. package/dist/types/product-pricing/entities/product-facility-inventory.entity.js +8 -0
  54. package/dist/types/product-pricing/entities/product-facility-inventory.entity.js.map +1 -0
  55. package/dist/types/product-pricing/entities/product-inventory-adjustment.entity.d.ts +17 -0
  56. package/dist/types/product-pricing/entities/product-inventory-adjustment.entity.js +8 -0
  57. package/dist/types/product-pricing/entities/product-inventory-adjustment.entity.js.map +1 -0
  58. package/dist/types/product-pricing/entities/product.entity.d.ts +6 -0
  59. package/dist/types/product-pricing/entities/product.entity.js.map +1 -1
  60. package/dist/types/product-pricing/types/consts/index.d.ts +1 -0
  61. package/dist/types/product-pricing/types/consts/index.js +1 -0
  62. package/dist/types/product-pricing/types/consts/index.js.map +1 -1
  63. package/dist/types/product-pricing/types/consts/product-inventory.consts.d.ts +1 -0
  64. package/dist/types/product-pricing/types/consts/product-inventory.consts.js +5 -0
  65. package/dist/types/product-pricing/types/consts/product-inventory.consts.js.map +1 -0
  66. package/dist/types/product-pricing/types/consts/product-resource.consts.d.ts +6 -1
  67. package/dist/types/product-pricing/types/consts/product-resource.consts.js +6 -1
  68. package/dist/types/product-pricing/types/consts/product-resource.consts.js.map +1 -1
  69. package/dist/types/product-pricing/types/enums/index.d.ts +1 -0
  70. package/dist/types/product-pricing/types/enums/index.js +1 -0
  71. package/dist/types/product-pricing/types/enums/index.js.map +1 -1
  72. package/dist/types/product-pricing/types/enums/product-inventory.enums.d.ts +9 -0
  73. package/dist/types/product-pricing/types/enums/product-inventory.enums.js +15 -0
  74. package/dist/types/product-pricing/types/enums/product-inventory.enums.js.map +1 -0
  75. package/dist/types/product-pricing/types/enums/product.enums.d.ts +9 -1
  76. package/dist/types/product-pricing/types/enums/product.enums.js +10 -1
  77. package/dist/types/product-pricing/types/enums/product.enums.js.map +1 -1
  78. package/dist/types/product-pricing/types/interfaces/index.d.ts +1 -0
  79. package/dist/types/product-pricing/types/interfaces/index.js +1 -0
  80. package/dist/types/product-pricing/types/interfaces/index.js.map +1 -1
  81. package/dist/types/product-pricing/types/interfaces/product-inventory.interfaces.d.ts +36 -0
  82. package/dist/types/product-pricing/types/interfaces/product-inventory.interfaces.js +3 -0
  83. package/dist/types/product-pricing/types/interfaces/product-inventory.interfaces.js.map +1 -0
  84. package/dist/types/product-pricing/types/interfaces/product-pricing.interfaces.d.ts +7 -1
  85. package/dist/types/product-pricing/types/interfaces/product-resource.interfaces.d.ts +1 -0
  86. package/dist/types/product-pricing/types/interfaces/validate-resources.interfaces.d.ts +1 -0
  87. package/dist/types/purchase/dto/purchase.dto.d.ts +1 -41
  88. package/dist/types/purchase/dto/purchase.dto.js +1 -10
  89. package/dist/types/purchase/dto/purchase.dto.js.map +1 -1
  90. package/dist/types/purchase/types/interfaces/purchase.interfaces.d.ts +0 -11
  91. package/dist/types/registration/index.d.ts +1 -0
  92. package/dist/types/registration/index.js +18 -0
  93. package/dist/types/registration/index.js.map +1 -0
  94. package/dist/types/registration/types/index.d.ts +1 -0
  95. package/dist/types/registration/types/index.js +18 -0
  96. package/dist/types/registration/types/index.js.map +1 -0
  97. package/dist/types/registration/types/interfaces/index.d.ts +1 -0
  98. package/dist/types/registration/types/interfaces/index.js +18 -0
  99. package/dist/types/registration/types/interfaces/index.js.map +1 -0
  100. package/dist/types/registration/types/interfaces/registration.interfaces.d.ts +10 -0
  101. package/dist/types/registration/types/interfaces/registration.interfaces.js +3 -0
  102. package/dist/types/registration/types/interfaces/registration.interfaces.js.map +1 -0
  103. package/dist/types/services/interfaces.service.d.ts +2 -1
  104. package/dist/types/standings-integration/types/consts/roster-rollover.consts.d.ts +1 -1
  105. package/dist/types/standings-integration/types/consts/roster-rollover.consts.js +1 -1
  106. package/dist/types/taxes/dto/default-tax.dto.d.ts +9 -1
  107. package/dist/types/taxes/dto/default-tax.dto.js +7 -1
  108. package/dist/types/taxes/dto/default-tax.dto.js.map +1 -1
  109. package/dist/types/taxes/dto/organization-default-tax.dto.d.ts +11 -5
  110. package/dist/types/taxes/dto/organization-default-tax.dto.js +4 -1
  111. package/dist/types/taxes/dto/organization-default-tax.dto.js.map +1 -1
  112. package/dist/types/taxes/dto/pagination.dto.d.ts +3 -0
  113. package/dist/types/taxes/dto/pagination.dto.js.map +1 -1
  114. package/dist/types/taxes/dto/tax.dto.d.ts +7 -0
  115. package/dist/types/taxes/dto/tax.dto.js.map +1 -1
  116. package/dist/types/taxes/entities/DefaultTax.d.ts +5 -3
  117. package/dist/types/taxes/entities/DefaultTax.js +2 -2
  118. package/dist/types/taxes/entities/DefaultTax.js.map +1 -1
  119. package/dist/types/taxes/entities/Tax.d.ts +2 -0
  120. package/dist/types/taxes/entities/Tax.js.map +1 -1
  121. package/dist/types/taxes/entities/index.d.ts +1 -0
  122. package/dist/types/taxes/entities/index.js +1 -0
  123. package/dist/types/taxes/entities/index.js.map +1 -1
  124. package/dist/types/taxes/entities/tax-to-facility.entity.d.ts +10 -0
  125. package/dist/types/taxes/entities/tax-to-facility.entity.js +8 -0
  126. package/dist/types/taxes/entities/tax-to-facility.entity.js.map +1 -0
  127. package/dist/types/taxes/types/default-tax.classes.d.ts +17 -10
  128. package/dist/types/taxes/types/default-tax.classes.js +4 -1
  129. package/dist/types/taxes/types/default-tax.classes.js.map +1 -1
  130. package/dist/types/taxes/types/tax.interfaces.d.ts +37 -0
  131. package/package.json +1 -1
@@ -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":""}
@@ -180,11 +180,11 @@ export interface MembershipStatus {
180
180
  export interface ISingleMemberForRenewal {
181
181
  invoice_payingUserId: number;
182
182
  invoice_paymentMethodId: string;
183
+ line_facilityId?: number;
183
184
  member_membershipId: number;
184
185
  member_nextPaymentMethodId?: string;
185
186
  member_organizationId: number;
186
187
  member_userId: number;
187
- membership_facilityId?: number;
188
188
  product_productId: number;
189
189
  createdAt: Date | string;
190
190
  endDate: Date;
@@ -199,6 +199,7 @@ export interface ISingleMemberForRenewal {
199
199
  user_lastName: string;
200
200
  }
201
201
  export interface IFamilyMemberForRenewal extends ISingleMemberForRenewal {
202
+ line2_facilityId?: number;
202
203
  package_parentProductId: number;
203
204
  familyid: number;
204
205
  invoice_id: number;
@@ -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,15 @@
1
+ import { SimpleFacilityDto } from '../../facilities/dto/facilities.dto';
1
2
  import { ProductTypesEnum } from '../../services/enums.service';
2
3
  import { TaxDto } from './tax.dto';
4
+ export declare class DefaultTaxGroupDto {
5
+ facilityIds: number[] | null;
6
+ facilities: SimpleFacilityDto[];
7
+ taxes: TaxDto[];
8
+ }
3
9
  export declare class OrganizationDefaultTaxesDto {
4
- [ProductTypesEnum.RESERVATION]?: TaxDto[];
5
- [ProductTypesEnum.REGISTRATION]?: TaxDto[];
6
- [ProductTypesEnum.MEMBERSHIP]?: TaxDto[];
7
- [ProductTypesEnum.GOODS]?: TaxDto[];
8
- [ProductTypesEnum.PACKAGE]?: TaxDto[];
10
+ [ProductTypesEnum.RESERVATION]?: DefaultTaxGroupDto[];
11
+ [ProductTypesEnum.REGISTRATION]?: DefaultTaxGroupDto[];
12
+ [ProductTypesEnum.MEMBERSHIP]?: DefaultTaxGroupDto[];
13
+ [ProductTypesEnum.GOODS]?: DefaultTaxGroupDto[];
14
+ [ProductTypesEnum.PACKAGE]?: DefaultTaxGroupDto[];
9
15
  }
@@ -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":";;;AAEA,gEAAgE;AAIhE,MAAa,kBAAkB;CAM9B;AAND,gDAMC;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"}
@@ -1,9 +1,11 @@
1
- import { DatedBaseEntity } from '../../entity/DatedBaseEntity';
1
+ import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
2
+ import { Facility } from '../../facilities/entities/Facility';
2
3
  import { ProductTypesEnum } from '../../services/enums.service';
3
4
  import { Tax } from './Tax';
4
- export declare class DefaultTax extends DatedBaseEntity {
5
- organizationId: number;
5
+ export declare class DefaultTax extends OrganizationConnectionBaseEntity {
6
6
  productType: ProductTypesEnum;
7
7
  taxId: number;
8
+ facilityId?: number | null;
8
9
  tax?: Tax;
10
+ facility?: Facility | null;
9
11
  }
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DefaultTax = void 0;
4
- const DatedBaseEntity_1 = require("../../entity/DatedBaseEntity");
5
- class DefaultTax extends DatedBaseEntity_1.DatedBaseEntity {
4
+ const OrganizationConnectionBaseEntity_1 = require("../../entity/OrganizationConnectionBaseEntity");
5
+ class DefaultTax extends OrganizationConnectionBaseEntity_1.OrganizationConnectionBaseEntity {
6
6
  }
7
7
  exports.DefaultTax = DefaultTax;
8
8
  //# sourceMappingURL=DefaultTax.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DefaultTax.js","sourceRoot":"","sources":["../../../../src/types/taxes/entities/DefaultTax.ts"],"names":[],"mappings":";;;AAEA,kEAA+D;AAK/D,MAAa,UAAW,SAAQ,iCAAe;CAS9C;AATD,gCASC"}
1
+ {"version":3,"file":"DefaultTax.js","sourceRoot":"","sources":["../../../../src/types/taxes/entities/DefaultTax.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAMjG,MAAa,UAAW,SAAQ,mEAAgC;CAU/D;AAVD,gCAUC"}
@@ -2,6 +2,7 @@ import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConne
2
2
  import { ResourceGlDto } from '../../gl-codes/dto/resource-to-gl.dto';
3
3
  import { DefaultTax } from './DefaultTax';
4
4
  import { ProductTax } from './ProductTax';
5
+ import { TaxToFacility } from './tax-to-facility.entity';
5
6
  export declare class Tax extends OrganizationConnectionBaseEntity {
6
7
  name: string;
7
8
  rate: number;
@@ -11,6 +12,7 @@ export declare class Tax extends OrganizationConnectionBaseEntity {
11
12
  deletedAt?: Date;
12
13
  productTaxes?: ProductTax[];
13
14
  defaultTaxes?: DefaultTax[];
15
+ taxToFacilities?: TaxToFacility[];
14
16
  productsCount?: number;
15
17
  glCodes?: ResourceGlDto[];
16
18
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Tax.js","sourceRoot":"","sources":["../../../../src/types/taxes/entities/Tax.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAMjG,MAAa,GAAI,SAAQ,mEAAgC;CAsBxD;AAtBD,kBAsBC"}
1
+ {"version":3,"file":"Tax.js","sourceRoot":"","sources":["../../../../src/types/taxes/entities/Tax.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAOjG,MAAa,GAAI,SAAQ,mEAAgC;CAwBxD;AAxBD,kBAwBC"}
@@ -1,3 +1,4 @@
1
1
  export * from './DefaultTax';
2
2
  export * from './ProductTax';
3
3
  export * from './Tax';
4
+ export * from './tax-to-facility.entity';
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./DefaultTax"), exports);
18
18
  __exportStar(require("./ProductTax"), exports);
19
19
  __exportStar(require("./Tax"), exports);
20
+ __exportStar(require("./tax-to-facility.entity"), exports);
20
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/taxes/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,wCAAsB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/taxes/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,wCAAsB;AACtB,2DAAyC"}
@@ -0,0 +1,10 @@
1
+ import { BondBaseEntity } from '../../entity/BondBaseEntity';
2
+ import { Facility } from '../../facilities/entities/Facility';
3
+ import { Tax } from './Tax';
4
+ export declare class TaxToFacility extends BondBaseEntity {
5
+ taxId: number;
6
+ facilityId: number;
7
+ deletedAt?: Date;
8
+ facility?: Facility;
9
+ tax?: Tax;
10
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TaxToFacility = void 0;
4
+ const BondBaseEntity_1 = require("../../entity/BondBaseEntity");
5
+ class TaxToFacility extends BondBaseEntity_1.BondBaseEntity {
6
+ }
7
+ exports.TaxToFacility = TaxToFacility;
8
+ //# sourceMappingURL=tax-to-facility.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tax-to-facility.entity.js","sourceRoot":"","sources":["../../../../src/types/taxes/entities/tax-to-facility.entity.ts"],"names":[],"mappings":";;;AAEA,gEAA6D;AAK7D,MAAa,aAAc,SAAQ,+BAAc;CAUhD;AAVD,sCAUC"}
@@ -1,16 +1,23 @@
1
+ import { Facility } from '../../facilities/entities/Facility';
1
2
  import { ProductTypesEnum } from '../../services/enums.service';
2
3
  import { Tax } from '../entities/Tax';
4
+ import { IDefaultTaxFacilitySet } from './tax.interfaces';
5
+ export declare class DefaultTaxGroup {
6
+ facilityIds: number[] | null;
7
+ facilities?: Facility[];
8
+ taxes: Tax[];
9
+ }
3
10
  export declare class OrganizationDefaultTaxes {
4
- [ProductTypesEnum.GOODS]?: Tax[];
5
- [ProductTypesEnum.MEMBERSHIP]?: Tax[];
6
- [ProductTypesEnum.PACKAGE]?: Tax[];
7
- [ProductTypesEnum.REGISTRATION]?: Tax[];
8
- [ProductTypesEnum.RESERVATION]?: Tax[];
11
+ [ProductTypesEnum.GOODS]?: DefaultTaxGroup[];
12
+ [ProductTypesEnum.MEMBERSHIP]?: DefaultTaxGroup[];
13
+ [ProductTypesEnum.PACKAGE]?: DefaultTaxGroup[];
14
+ [ProductTypesEnum.REGISTRATION]?: DefaultTaxGroup[];
15
+ [ProductTypesEnum.RESERVATION]?: DefaultTaxGroup[];
9
16
  }
10
17
  export declare class DefaultTaxesToTaxIds {
11
- [ProductTypesEnum.GOODS]: number[];
12
- [ProductTypesEnum.MEMBERSHIP]: number[];
13
- [ProductTypesEnum.PACKAGE]: number[];
14
- [ProductTypesEnum.REGISTRATION]: number[];
15
- [ProductTypesEnum.RESERVATION]: number[];
18
+ [ProductTypesEnum.GOODS]: IDefaultTaxFacilitySet[];
19
+ [ProductTypesEnum.MEMBERSHIP]: IDefaultTaxFacilitySet[];
20
+ [ProductTypesEnum.PACKAGE]: IDefaultTaxFacilitySet[];
21
+ [ProductTypesEnum.REGISTRATION]: IDefaultTaxFacilitySet[];
22
+ [ProductTypesEnum.RESERVATION]: IDefaultTaxFacilitySet[];
16
23
  }
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
2
  var _a, _b, _c, _d, _e;
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.DefaultTaxesToTaxIds = exports.OrganizationDefaultTaxes = void 0;
4
+ exports.DefaultTaxesToTaxIds = exports.OrganizationDefaultTaxes = exports.DefaultTaxGroup = void 0;
5
5
  const enums_service_1 = require("../../services/enums.service");
6
+ class DefaultTaxGroup {
7
+ }
8
+ exports.DefaultTaxGroup = DefaultTaxGroup;
6
9
  class OrganizationDefaultTaxes {
7
10
  }
8
11
  exports.OrganizationDefaultTaxes = OrganizationDefaultTaxes;
@@ -1 +1 @@
1
- {"version":3,"file":"default-tax.classes.js","sourceRoot":"","sources":["../../../../src/types/taxes/types/default-tax.classes.ts"],"names":[],"mappings":";;;;AACA,gEAAgE;AAIhE,MAAa,wBAAwB;CAUpC;AAVD,4DAUC;AATC,gCAAgB,CAAC,KAAK,EAEtB,gCAAgB,CAAC,UAAU,EAE3B,gCAAgB,CAAC,OAAO,EAExB,gCAAgB,CAAC,YAAY,EAE7B,gCAAgB,CAAC,WAAW;AAG9B,MAAa,oBAAoB;IAAjC;QAEC,QAAwB,GAAa,EAAE,CAAC;QAExC,QAA6B,GAAa,EAAE,CAAC;QAE7C,QAA0B,GAAa,EAAE,CAAC;QAE1C,QAA+B,GAAa,EAAE,CAAC;QAE/C,QAA8B,GAAa,EAAE,CAAC;IAC/C,CAAC;CAAA;AAXD,oDAWC;KATC,gCAAgB,CAAC,KAAK,OAEtB,gCAAgB,CAAC,UAAU,OAE3B,gCAAgB,CAAC,OAAO,OAExB,gCAAgB,CAAC,YAAY,OAE7B,gCAAgB,CAAC,WAAW"}
1
+ {"version":3,"file":"default-tax.classes.js","sourceRoot":"","sources":["../../../../src/types/taxes/types/default-tax.classes.ts"],"names":[],"mappings":";;;;AAGA,gEAAgE;AAMhE,MAAa,eAAe;CAM3B;AAND,0CAMC;AAED,MAAa,wBAAwB;CAUpC;AAVD,4DAUC;AATC,gCAAgB,CAAC,KAAK,EAEtB,gCAAgB,CAAC,UAAU,EAE3B,gCAAgB,CAAC,OAAO,EAExB,gCAAgB,CAAC,YAAY,EAE7B,gCAAgB,CAAC,WAAW;AAG9B,MAAa,oBAAoB;IAAjC;QAEC,QAAwB,GAA6B,EAAE,CAAC;QAExD,QAA6B,GAA6B,EAAE,CAAC;QAE7D,QAA0B,GAA6B,EAAE,CAAC;QAE1D,QAA+B,GAA6B,EAAE,CAAC;QAE/D,QAA8B,GAA6B,EAAE,CAAC;IAC/D,CAAC;CAAA;AAXD,oDAWC;KATC,gCAAgB,CAAC,KAAK,OAEtB,gCAAgB,CAAC,UAAU,OAE3B,gCAAgB,CAAC,OAAO,OAExB,gCAAgB,CAAC,YAAY,OAE7B,gCAAgB,CAAC,WAAW"}
@@ -1,4 +1,41 @@
1
+ import { ProductTypesEnum } from '../../services/enums.service';
2
+ import { UpdateTaxDto } from '../dto/tax.dto';
3
+ import { DefaultTax } from '../entities/DefaultTax';
1
4
  export interface ILinkedProductCount {
2
5
  id: number;
3
6
  count: number;
4
7
  }
8
+ export interface ITaxFacilityConflict {
9
+ id: number;
10
+ name: string;
11
+ uncoveredFacilityIds: number[];
12
+ }
13
+ export interface IDefaultTaxFacilitySet {
14
+ facilityId: number | null;
15
+ taxIds: number[];
16
+ }
17
+ export interface IDefaultTaxProductUpdate {
18
+ currentTaxIds: number[];
19
+ nextTaxIds: number[];
20
+ /** Null applies the all-facilities default. An array limits the update to products inside those facilities. */
21
+ facilityIds: number[] | null;
22
+ }
23
+ export interface IDefaultTaxRowDiff {
24
+ idsToDelete: number[];
25
+ rowsToInsert: DefaultTax[];
26
+ }
27
+ export interface IDefaultTaxesQueryFilters {
28
+ productTypes?: ProductTypesEnum[];
29
+ /** Undefined skips the facility predicate. An empty array keeps only the all-facilities row. */
30
+ facilityIds?: number[];
31
+ }
32
+ export interface IProductTaxAssignment {
33
+ taxesIds?: number[];
34
+ facilitiesIds?: number[];
35
+ productId?: number;
36
+ }
37
+ export interface IPartitionedTaxUpdates {
38
+ breakingUpdates: UpdateTaxDto[];
39
+ inplaceUpdates: UpdateTaxDto[];
40
+ productTaxesToRemove: Set<number>;
41
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.5.8",
3
+ "version": "2.5.9-a-2",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {