@bondsports/types 2.4.12-a-1 → 2.4.14-squad-c-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 (120) hide show
  1. package/dist/tsconfig.build.tsbuildinfo +1 -1
  2. package/dist/types/auth/auth-headers-names.enum.d.ts +6 -0
  3. package/dist/types/auth/auth-headers-names.enum.js +8 -1
  4. package/dist/types/auth/auth-headers-names.enum.js.map +1 -1
  5. package/dist/types/cart/dto/cart-item.dto.d.ts +3 -5
  6. package/dist/types/cart/dto/cart-item.dto.js.map +1 -1
  7. package/dist/types/cart/entities/cart-item.entity.d.ts +2 -4
  8. package/dist/types/cart/entities/cart-item.entity.js.map +1 -1
  9. package/dist/types/cart/types/consts/cart.consts.d.ts +2 -0
  10. package/dist/types/cart/types/consts/cart.consts.js +6 -2
  11. package/dist/types/cart/types/consts/cart.consts.js.map +1 -1
  12. package/dist/types/cart/types/interfaces/cart.interfaces.d.ts +0 -1
  13. package/dist/types/customers/dto/add-family-member.dto.d.ts +2 -1
  14. package/dist/types/customers/dto/add-family-member.dto.js.map +1 -1
  15. package/dist/types/customers/dto/customer-response.dto.d.ts +9 -0
  16. package/dist/types/customers/dto/customer-response.dto.js +9 -1
  17. package/dist/types/customers/dto/customer-response.dto.js.map +1 -1
  18. package/dist/types/customers/types/interfaces.d.ts +3 -10
  19. package/dist/types/entity/Invoice.d.ts +2 -0
  20. package/dist/types/entity/Invoice.js.map +1 -1
  21. package/dist/types/invoice/types/consts/index.d.ts +1 -0
  22. package/dist/types/invoice/types/consts/index.js +1 -0
  23. package/dist/types/invoice/types/consts/index.js.map +1 -1
  24. package/dist/types/invoice/types/consts/invoice-visibility.consts.d.ts +11 -0
  25. package/dist/types/invoice/types/consts/invoice-visibility.consts.js +24 -0
  26. package/dist/types/invoice/types/consts/invoice-visibility.consts.js.map +1 -0
  27. package/dist/types/invoice/types/enums/index.d.ts +1 -0
  28. package/dist/types/invoice/types/enums/index.js +18 -0
  29. package/dist/types/invoice/types/enums/index.js.map +1 -0
  30. package/dist/types/invoice/types/enums/invoice-visibility.enums.d.ts +19 -0
  31. package/dist/types/invoice/types/enums/invoice-visibility.enums.js +25 -0
  32. package/dist/types/invoice/types/enums/invoice-visibility.enums.js.map +1 -0
  33. package/dist/types/invoice/types/index.d.ts +1 -0
  34. package/dist/types/invoice/types/index.js +1 -0
  35. package/dist/types/invoice/types/index.js.map +1 -1
  36. package/dist/types/league-standings/interfaces/competition-team.interface.d.ts +10 -0
  37. package/dist/types/league-standings/interfaces/competition-team.interface.js +3 -0
  38. package/dist/types/league-standings/interfaces/competition-team.interface.js.map +1 -0
  39. package/dist/types/league-standings/interfaces/index.d.ts +4 -0
  40. package/dist/types/league-standings/interfaces/index.js +4 -0
  41. package/dist/types/league-standings/interfaces/index.js.map +1 -1
  42. package/dist/types/league-standings/interfaces/standings.interface.d.ts +4 -0
  43. package/dist/types/league-standings/interfaces/standings.interface.js +3 -0
  44. package/dist/types/league-standings/interfaces/standings.interface.js.map +1 -0
  45. package/dist/types/payment/types/interfaces/discount.interfaces.d.ts +0 -4
  46. package/dist/types/payment/types/interfaces/discount.interfaces.js.map +1 -1
  47. package/dist/types/product-pricing/dto/index.d.ts +1 -0
  48. package/dist/types/product-pricing/dto/index.js +1 -0
  49. package/dist/types/product-pricing/dto/index.js.map +1 -1
  50. package/dist/types/product-pricing/dto/product-categories.dto.d.ts +43 -0
  51. package/dist/types/product-pricing/dto/product-categories.dto.js +30 -0
  52. package/dist/types/product-pricing/dto/product-categories.dto.js.map +1 -0
  53. package/dist/types/product-pricing/dto/product-pricing.dto.d.ts +3 -0
  54. package/dist/types/product-pricing/dto/product-pricing.dto.js.map +1 -1
  55. package/dist/types/product-pricing/dto/product.dto.d.ts +2 -0
  56. package/dist/types/product-pricing/dto/product.dto.js.map +1 -1
  57. package/dist/types/product-pricing/entities/index.d.ts +1 -0
  58. package/dist/types/product-pricing/entities/index.js +1 -0
  59. package/dist/types/product-pricing/entities/index.js.map +1 -1
  60. package/dist/types/product-pricing/entities/product-category.entity.d.ts +12 -0
  61. package/dist/types/product-pricing/entities/product-category.entity.js +8 -0
  62. package/dist/types/product-pricing/entities/product-category.entity.js.map +1 -0
  63. package/dist/types/product-pricing/entities/product.entity.d.ts +3 -0
  64. package/dist/types/product-pricing/entities/product.entity.js.map +1 -1
  65. package/dist/types/product-pricing/types/consts/index.d.ts +1 -0
  66. package/dist/types/product-pricing/types/consts/index.js +1 -0
  67. package/dist/types/product-pricing/types/consts/index.js.map +1 -1
  68. package/dist/types/product-pricing/types/consts/product-category.consts.d.ts +510 -0
  69. package/dist/types/product-pricing/types/consts/product-category.consts.js +124 -0
  70. package/dist/types/product-pricing/types/consts/product-category.consts.js.map +1 -0
  71. package/dist/types/product-pricing/types/enums/index.d.ts +1 -0
  72. package/dist/types/product-pricing/types/enums/index.js +1 -0
  73. package/dist/types/product-pricing/types/enums/index.js.map +1 -1
  74. package/dist/types/product-pricing/types/enums/product-categories.enums.d.ts +8 -0
  75. package/dist/types/product-pricing/types/enums/product-categories.enums.js +13 -0
  76. package/dist/types/product-pricing/types/enums/product-categories.enums.js.map +1 -0
  77. package/dist/types/product-pricing/types/enums/product.enums.d.ts +2 -1
  78. package/dist/types/product-pricing/types/enums/product.enums.js +1 -0
  79. package/dist/types/product-pricing/types/enums/product.enums.js.map +1 -1
  80. package/dist/types/product-pricing/types/interfaces/index.d.ts +1 -0
  81. package/dist/types/product-pricing/types/interfaces/index.js +1 -0
  82. package/dist/types/product-pricing/types/interfaces/index.js.map +1 -1
  83. package/dist/types/product-pricing/types/interfaces/product-categories.interfaces.d.ts +25 -0
  84. package/dist/types/product-pricing/types/interfaces/product-categories.interfaces.js +3 -0
  85. package/dist/types/product-pricing/types/interfaces/product-categories.interfaces.js.map +1 -0
  86. package/dist/types/product-pricing/types/interfaces/product-pricing.interfaces.d.ts +3 -2
  87. package/dist/types/product-pricing/types/interfaces/validate-resources.interfaces.d.ts +0 -1
  88. package/dist/types/programs-seasons/dto/program-session.dto.d.ts +1 -0
  89. package/dist/types/programs-seasons/dto/program-session.dto.js.map +1 -1
  90. package/dist/types/programs-seasons/types/interfaces/program-session.interfaces.d.ts +20 -2
  91. package/dist/types/punch-pass/types/interfaces.d.ts +38 -0
  92. package/dist/types/services/enums.service.d.ts +3 -4
  93. package/dist/types/services/enums.service.js +2 -3
  94. package/dist/types/services/enums.service.js.map +1 -1
  95. package/dist/types/services/interfaces.service.d.ts +0 -5
  96. package/dist/types/services/interfaces.service.js.map +1 -1
  97. package/dist/types/session-participants/types/interfaces.d.ts +27 -0
  98. package/dist/types/user/dto/index.d.ts +0 -2
  99. package/dist/types/user/dto/index.js +0 -2
  100. package/dist/types/user/dto/index.js.map +1 -1
  101. package/dist/types/user/dto/user.dto.d.ts +3 -0
  102. package/dist/types/user/dto/user.dto.js +4 -1
  103. package/dist/types/user/dto/user.dto.js.map +1 -1
  104. package/dist/types/user/entities/Athlete.d.ts +0 -2
  105. package/dist/types/user/entities/Athlete.js.map +1 -1
  106. package/dist/types/user/types/index.d.ts +0 -1
  107. package/dist/types/user/types/index.js +0 -1
  108. package/dist/types/user/types/index.js.map +1 -1
  109. package/dist/types/user/types/user.interfaces.d.ts +0 -10
  110. package/package.json +6 -5
  111. package/LICENSE.md +0 -0
  112. package/dist/types/user/dto/athlete.dto.d.ts +0 -14
  113. package/dist/types/user/dto/athlete.dto.js +0 -13
  114. package/dist/types/user/dto/athlete.dto.js.map +0 -1
  115. package/dist/types/user/dto/update-user-profile.dto.d.ts +0 -24
  116. package/dist/types/user/dto/update-user-profile.dto.js +0 -17
  117. package/dist/types/user/dto/update-user-profile.dto.js.map +0 -1
  118. package/dist/types/user/types/user.consts.d.ts +0 -9
  119. package/dist/types/user/types/user.consts.js +0 -25
  120. package/dist/types/user/types/user.consts.js.map +0 -1
@@ -17,6 +17,7 @@ import { ActivityEnum, AddonTimePeriodEnum, PlatformsEnum, ProductPackageLevelEn
17
17
  import { IChildProduct, IResourcesAvailability } from '../../services/interfaces.service';
18
18
  import { TaxDto } from '../../taxes/dto/tax.dto';
19
19
  import { IGetResourcesProductsOptions, IPricingSchedule } from '../types/interfaces/product-pricing.interfaces';
20
+ import { ProductCategoryDto } from './product-categories.dto';
20
21
  import { ProductResourceDto } from './product-resource.dto';
21
22
  export declare class FindByProductIdDto {
22
23
  productId: number;
@@ -194,6 +195,7 @@ export declare class ProductDto extends BaseProductDto {
194
195
  entitlementDiscounts?: EntitlementDiscountDto[];
195
196
  facilities?: FacilityDto[];
196
197
  punchPass?: PunchPassDto;
198
+ productCategory?: ProductCategoryDto;
197
199
  }
198
200
  export declare class ResourceProductDto {
199
201
  id: number;
@@ -1 +1 @@
1
- {"version":3,"file":"product.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product.dto.ts"],"names":[],"mappings":";;;AAKA,uDAAsE;AAMtE,8EAA8E;AAqB9E,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,sBAAsB;CAIlC;AAJD,wDAIC;AAED,MAAa,cAAe,SAAQ,6BAAe;CAQlD;AARD,wCAQC;AAED,MAAa,cAAe,SAAQ,6BAAe;CAwBlD;AAxBD,wCAwBC;AAED,MAAa,gBAAgB;CAsD5B;AAtDD,4CAsDC;AAED,MAAa,sBAAsB;CAgBlC;AAhBD,wDAgBC;AAED,MAAa,0BAA2B,SAAQ,6BAAe;CAM9D;AAND,gEAMC;AAED,MAAa,gBAAiB,SAAQ,0BAAY;CAQjD;AARD,4CAQC;AAED,MAAa,cAAc;CA4G1B;AA5GD,wCA4GC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAEvD;AAFD,oDAEC;AAED,MAAa,UAAW,SAAQ,cAAc;CAY7C;AAZD,gCAYC;AAED,MAAa,kBAAkB;CAU9B;AAVD,gDAUC;AAED,MAAa,kBAAmB,SAAQ,UAAU;CAMjD;AAND,gDAMC"}
1
+ {"version":3,"file":"product.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product.dto.ts"],"names":[],"mappings":";;;AAKA,uDAAsE;AAMtE,8EAA8E;AAsB9E,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,sBAAsB;CAIlC;AAJD,wDAIC;AAED,MAAa,cAAe,SAAQ,6BAAe;CAQlD;AARD,wCAQC;AAED,MAAa,cAAe,SAAQ,6BAAe;CAwBlD;AAxBD,wCAwBC;AAED,MAAa,gBAAgB;CAsD5B;AAtDD,4CAsDC;AAED,MAAa,sBAAsB;CAgBlC;AAhBD,wDAgBC;AAED,MAAa,0BAA2B,SAAQ,6BAAe;CAM9D;AAND,gEAMC;AAED,MAAa,gBAAiB,SAAQ,0BAAY;CAQjD;AARD,4CAQC;AAED,MAAa,cAAc;CA4G1B;AA5GD,wCA4GC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAEvD;AAFD,oDAEC;AAED,MAAa,UAAW,SAAQ,cAAc;CAc7C;AAdD,gCAcC;AAED,MAAa,kBAAkB;CAU9B;AAVD,gDAUC;AAED,MAAa,kBAAmB,SAAQ,UAAU;CAMjD;AAND,gDAMC"}
@@ -1,2 +1,3 @@
1
+ export * from './product-category.entity';
1
2
  export * from './product-to-facility.entity';
2
3
  export * from './product.entity';
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./product-category.entity"), exports);
17
18
  __exportStar(require("./product-to-facility.entity"), exports);
18
19
  __exportStar(require("./product.entity"), exports);
19
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,mDAAiC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,+DAA6C;AAC7C,mDAAiC"}
@@ -0,0 +1,12 @@
1
+ import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
2
+ import { ProductTypesEnum } from '../../services/enums.service';
3
+ import { Product } from './product.entity';
4
+ export declare class ProductCategory extends OrganizationConnectionBaseEntity {
5
+ name: string;
6
+ description?: string;
7
+ productType: ProductTypesEnum;
8
+ settings?: unknown;
9
+ deletedAt?: Date;
10
+ products?: Product[];
11
+ productsCount?: number;
12
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProductCategory = void 0;
4
+ const OrganizationConnectionBaseEntity_1 = require("../../entity/OrganizationConnectionBaseEntity");
5
+ class ProductCategory extends OrganizationConnectionBaseEntity_1.OrganizationConnectionBaseEntity {
6
+ }
7
+ exports.ProductCategory = ProductCategory;
8
+ //# sourceMappingURL=product-category.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-category.entity.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/product-category.entity.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAKjG,MAAa,eAAgB,SAAQ,mEAAgC;CAcpE;AAdD,0CAcC"}
@@ -23,6 +23,7 @@ import { Tax } from '../../taxes/entities/Tax';
23
23
  import { ProductResourceDto } from '../dto/product-resource.dto';
24
24
  import { ProductStateEnum } from '../types/enums/product.enums';
25
25
  import { IPricingSchedule } from '../types/interfaces/product-pricing.interfaces';
26
+ import { ProductCategory } from './product-category.entity';
26
27
  import { ProductToFacility } from './product-to-facility.entity';
27
28
  export declare class Product extends OrganizationConnectionBaseEntity {
28
29
  name: string;
@@ -63,6 +64,8 @@ export declare class Product extends OrganizationConnectionBaseEntity {
63
64
  defaultPriceId?: number;
64
65
  tax: number;
65
66
  isTaxInclusive: boolean;
67
+ categoryId?: number;
68
+ productCategory?: ProductCategory;
66
69
  defaultPrice?: Price;
67
70
  addOns?: IChildProduct[];
68
71
  productPaymentPlans?: ProductPaymentPlan[];
@@ -1 +1 @@
1
- {"version":3,"file":"product.entity.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/product.entity.ts"],"names":[],"mappings":";;;AAkBA,oGAAiG;AAwBjG,MAAa,OAAQ,SAAQ,mEAAgC;CAiJ5D;AAjJD,0BAiJC"}
1
+ {"version":3,"file":"product.entity.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/product.entity.ts"],"names":[],"mappings":";;;AAkBA,oGAAiG;AAyBjG,MAAa,OAAQ,SAAQ,mEAAgC;CAqJ5D;AArJD,0BAqJC"}
@@ -1,2 +1,3 @@
1
+ export * from './product-category.consts';
1
2
  export * from './product-pricing.consts';
2
3
  export * from './product-resource.consts';
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./product-category.consts"), exports);
17
18
  __exportStar(require("./product-pricing.consts"), exports);
18
19
  __exportStar(require("./product-resource.consts"), exports);
19
20
  //# 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,2DAAyC;AACzC,4DAA0C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,2DAAyC;AACzC,4DAA0C"}
@@ -0,0 +1,510 @@
1
+ import { TimeUnit } from '@bondsports/date-time';
2
+ import { z, ZodNumber } from 'zod';
3
+ import { ResourceSubTypeEnum, ResourceTypeEnum } from '../../../services/enums.service';
4
+ export declare const RESERVATION_SETTINGS_SCHEMA: z.ZodEffects<z.ZodObject<{
5
+ resourceTypes: z.ZodArray<z.ZodNativeEnum<typeof ResourceTypeEnum>, "atleastone">;
6
+ approvalRequired: z.ZodDefault<z.ZodBoolean>;
7
+ allowResourceSelection: z.ZodDefault<z.ZodBoolean>;
8
+ prioritizedResourceAllocation: z.ZodNullable<z.ZodRecord<z.ZodNativeEnum<typeof ResourceSubTypeEnum>, z.ZodArray<z.ZodNumber, "atleastone">>>;
9
+ bookingDurations: z.ZodEffects<z.ZodObject<{
10
+ minDuration: z.ZodObject<{
11
+ amount: z.ZodNumber;
12
+ unit: z.ZodNativeEnum<typeof TimeUnit>;
13
+ }, "strip", z.ZodTypeAny, {
14
+ amount?: number;
15
+ unit?: TimeUnit;
16
+ }, {
17
+ amount?: number;
18
+ unit?: TimeUnit;
19
+ }>;
20
+ maxDuration: z.ZodObject<{
21
+ amount: z.ZodNumber;
22
+ unit: z.ZodNativeEnum<typeof TimeUnit>;
23
+ }, "strip", z.ZodTypeAny, {
24
+ amount?: number;
25
+ unit?: TimeUnit;
26
+ }, {
27
+ amount?: number;
28
+ unit?: TimeUnit;
29
+ }>;
30
+ durationStep: z.ZodObject<{
31
+ amount: z.ZodNumber;
32
+ unit: z.ZodNativeEnum<typeof TimeUnit>;
33
+ }, "strip", z.ZodTypeAny, {
34
+ amount?: number;
35
+ unit?: TimeUnit;
36
+ }, {
37
+ amount?: number;
38
+ unit?: TimeUnit;
39
+ }>;
40
+ defaultDuration: z.ZodObject<{
41
+ amount: z.ZodNumber;
42
+ unit: z.ZodNativeEnum<typeof TimeUnit>;
43
+ }, "strip", z.ZodTypeAny, {
44
+ amount?: number;
45
+ unit?: TimeUnit;
46
+ }, {
47
+ amount?: number;
48
+ unit?: TimeUnit;
49
+ }>;
50
+ }, "strip", z.ZodTypeAny, {
51
+ minDuration?: {
52
+ amount?: number;
53
+ unit?: TimeUnit;
54
+ };
55
+ maxDuration?: {
56
+ amount?: number;
57
+ unit?: TimeUnit;
58
+ };
59
+ durationStep?: {
60
+ amount?: number;
61
+ unit?: TimeUnit;
62
+ };
63
+ defaultDuration?: {
64
+ amount?: number;
65
+ unit?: TimeUnit;
66
+ };
67
+ }, {
68
+ minDuration?: {
69
+ amount?: number;
70
+ unit?: TimeUnit;
71
+ };
72
+ maxDuration?: {
73
+ amount?: number;
74
+ unit?: TimeUnit;
75
+ };
76
+ durationStep?: {
77
+ amount?: number;
78
+ unit?: TimeUnit;
79
+ };
80
+ defaultDuration?: {
81
+ amount?: number;
82
+ unit?: TimeUnit;
83
+ };
84
+ }>, {
85
+ minDuration?: {
86
+ amount?: number;
87
+ unit?: TimeUnit;
88
+ };
89
+ maxDuration?: {
90
+ amount?: number;
91
+ unit?: TimeUnit;
92
+ };
93
+ durationStep?: {
94
+ amount?: number;
95
+ unit?: TimeUnit;
96
+ };
97
+ defaultDuration?: {
98
+ amount?: number;
99
+ unit?: TimeUnit;
100
+ };
101
+ }, {
102
+ minDuration?: {
103
+ amount?: number;
104
+ unit?: TimeUnit;
105
+ };
106
+ maxDuration?: {
107
+ amount?: number;
108
+ unit?: TimeUnit;
109
+ };
110
+ durationStep?: {
111
+ amount?: number;
112
+ unit?: TimeUnit;
113
+ };
114
+ defaultDuration?: {
115
+ amount?: number;
116
+ unit?: TimeUnit;
117
+ };
118
+ }>;
119
+ default: z.ZodObject<{
120
+ advanceBookingWindow: z.ZodObject<{
121
+ amount: z.ZodNumber;
122
+ unit: z.ZodNativeEnum<typeof TimeUnit>;
123
+ }, "strip", z.ZodTypeAny, {
124
+ amount?: number;
125
+ unit?: TimeUnit;
126
+ }, {
127
+ amount?: number;
128
+ unit?: TimeUnit;
129
+ }>;
130
+ minimumBookingNotice: z.ZodObject<{
131
+ amount: z.ZodNumber;
132
+ unit: z.ZodNativeEnum<typeof TimeUnit>;
133
+ }, "strip", z.ZodTypeAny, {
134
+ amount?: number;
135
+ unit?: TimeUnit;
136
+ }, {
137
+ amount?: number;
138
+ unit?: TimeUnit;
139
+ }>;
140
+ maxBookingHours: z.ZodNullable<z.ZodObject<{
141
+ amount: z.ZodNumber;
142
+ unit: z.ZodNativeEnum<typeof TimeUnit>;
143
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
144
+ amount?: number;
145
+ unit?: TimeUnit;
146
+ }, {
147
+ amount?: number;
148
+ unit?: TimeUnit;
149
+ }>>;
150
+ maxSequentialBookings: z.ZodNullable<z.ZodObject<{
151
+ amount: z.ZodNumber;
152
+ unit: z.ZodNativeEnum<typeof TimeUnit>;
153
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
154
+ amount?: number;
155
+ unit?: TimeUnit;
156
+ }, {
157
+ amount?: number;
158
+ unit?: TimeUnit;
159
+ }>>;
160
+ }, "strip", z.ZodTypeAny, {
161
+ advanceBookingWindow?: {
162
+ amount?: number;
163
+ unit?: TimeUnit;
164
+ };
165
+ minimumBookingNotice?: {
166
+ amount?: number;
167
+ unit?: TimeUnit;
168
+ };
169
+ maxBookingHours?: {
170
+ amount?: number;
171
+ unit?: TimeUnit;
172
+ };
173
+ maxSequentialBookings?: {
174
+ amount?: number;
175
+ unit?: TimeUnit;
176
+ };
177
+ }, {
178
+ advanceBookingWindow?: {
179
+ amount?: number;
180
+ unit?: TimeUnit;
181
+ };
182
+ minimumBookingNotice?: {
183
+ amount?: number;
184
+ unit?: TimeUnit;
185
+ };
186
+ maxBookingHours?: {
187
+ amount?: number;
188
+ unit?: TimeUnit;
189
+ };
190
+ maxSequentialBookings?: {
191
+ amount?: number;
192
+ unit?: TimeUnit;
193
+ };
194
+ }>;
195
+ memberships: z.ZodNullable<z.ZodArray<z.ZodObject<{
196
+ id: z.ZodString;
197
+ name: z.ZodString;
198
+ membershipsIds: z.ZodArray<z.ZodNumber, "atleastone">;
199
+ advanceBookingWindow: z.ZodObject<{
200
+ amount: z.ZodNumber;
201
+ unit: z.ZodNativeEnum<typeof TimeUnit>;
202
+ }, "strip", z.ZodTypeAny, {
203
+ amount?: number;
204
+ unit?: TimeUnit;
205
+ }, {
206
+ amount?: number;
207
+ unit?: TimeUnit;
208
+ }>;
209
+ minimumBookingNotice: z.ZodObject<{
210
+ amount: z.ZodNumber;
211
+ unit: z.ZodNativeEnum<typeof TimeUnit>;
212
+ }, "strip", z.ZodTypeAny, {
213
+ amount?: number;
214
+ unit?: TimeUnit;
215
+ }, {
216
+ amount?: number;
217
+ unit?: TimeUnit;
218
+ }>;
219
+ }, "strip", z.ZodTypeAny, {
220
+ name?: string;
221
+ membershipsIds?: [number, ...number[]];
222
+ id?: string;
223
+ advanceBookingWindow?: {
224
+ amount?: number;
225
+ unit?: TimeUnit;
226
+ };
227
+ minimumBookingNotice?: {
228
+ amount?: number;
229
+ unit?: TimeUnit;
230
+ };
231
+ }, {
232
+ name?: string;
233
+ membershipsIds?: [number, ...number[]];
234
+ id?: string;
235
+ advanceBookingWindow?: {
236
+ amount?: number;
237
+ unit?: TimeUnit;
238
+ };
239
+ minimumBookingNotice?: {
240
+ amount?: number;
241
+ unit?: TimeUnit;
242
+ };
243
+ }>, "atleastone">>;
244
+ }, "strip", z.ZodTypeAny, {
245
+ default?: {
246
+ advanceBookingWindow?: {
247
+ amount?: number;
248
+ unit?: TimeUnit;
249
+ };
250
+ minimumBookingNotice?: {
251
+ amount?: number;
252
+ unit?: TimeUnit;
253
+ };
254
+ maxBookingHours?: {
255
+ amount?: number;
256
+ unit?: TimeUnit;
257
+ };
258
+ maxSequentialBookings?: {
259
+ amount?: number;
260
+ unit?: TimeUnit;
261
+ };
262
+ };
263
+ resourceTypes?: [ResourceTypeEnum, ...ResourceTypeEnum[]];
264
+ approvalRequired?: boolean;
265
+ allowResourceSelection?: boolean;
266
+ prioritizedResourceAllocation?: Partial<Record<ResourceSubTypeEnum, [number, ...number[]]>>;
267
+ bookingDurations?: {
268
+ minDuration?: {
269
+ amount?: number;
270
+ unit?: TimeUnit;
271
+ };
272
+ maxDuration?: {
273
+ amount?: number;
274
+ unit?: TimeUnit;
275
+ };
276
+ durationStep?: {
277
+ amount?: number;
278
+ unit?: TimeUnit;
279
+ };
280
+ defaultDuration?: {
281
+ amount?: number;
282
+ unit?: TimeUnit;
283
+ };
284
+ };
285
+ memberships?: [{
286
+ name?: string;
287
+ membershipsIds?: [number, ...number[]];
288
+ id?: string;
289
+ advanceBookingWindow?: {
290
+ amount?: number;
291
+ unit?: TimeUnit;
292
+ };
293
+ minimumBookingNotice?: {
294
+ amount?: number;
295
+ unit?: TimeUnit;
296
+ };
297
+ }, ...{
298
+ name?: string;
299
+ membershipsIds?: [number, ...number[]];
300
+ id?: string;
301
+ advanceBookingWindow?: {
302
+ amount?: number;
303
+ unit?: TimeUnit;
304
+ };
305
+ minimumBookingNotice?: {
306
+ amount?: number;
307
+ unit?: TimeUnit;
308
+ };
309
+ }[]];
310
+ }, {
311
+ default?: {
312
+ advanceBookingWindow?: {
313
+ amount?: number;
314
+ unit?: TimeUnit;
315
+ };
316
+ minimumBookingNotice?: {
317
+ amount?: number;
318
+ unit?: TimeUnit;
319
+ };
320
+ maxBookingHours?: {
321
+ amount?: number;
322
+ unit?: TimeUnit;
323
+ };
324
+ maxSequentialBookings?: {
325
+ amount?: number;
326
+ unit?: TimeUnit;
327
+ };
328
+ };
329
+ resourceTypes?: [ResourceTypeEnum, ...ResourceTypeEnum[]];
330
+ approvalRequired?: boolean;
331
+ allowResourceSelection?: boolean;
332
+ prioritizedResourceAllocation?: Partial<Record<ResourceSubTypeEnum, [number, ...number[]]>>;
333
+ bookingDurations?: {
334
+ minDuration?: {
335
+ amount?: number;
336
+ unit?: TimeUnit;
337
+ };
338
+ maxDuration?: {
339
+ amount?: number;
340
+ unit?: TimeUnit;
341
+ };
342
+ durationStep?: {
343
+ amount?: number;
344
+ unit?: TimeUnit;
345
+ };
346
+ defaultDuration?: {
347
+ amount?: number;
348
+ unit?: TimeUnit;
349
+ };
350
+ };
351
+ memberships?: [{
352
+ name?: string;
353
+ membershipsIds?: [number, ...number[]];
354
+ id?: string;
355
+ advanceBookingWindow?: {
356
+ amount?: number;
357
+ unit?: TimeUnit;
358
+ };
359
+ minimumBookingNotice?: {
360
+ amount?: number;
361
+ unit?: TimeUnit;
362
+ };
363
+ }, ...{
364
+ name?: string;
365
+ membershipsIds?: [number, ...number[]];
366
+ id?: string;
367
+ advanceBookingWindow?: {
368
+ amount?: number;
369
+ unit?: TimeUnit;
370
+ };
371
+ minimumBookingNotice?: {
372
+ amount?: number;
373
+ unit?: TimeUnit;
374
+ };
375
+ }[]];
376
+ }>, {
377
+ default?: {
378
+ advanceBookingWindow?: {
379
+ amount?: number;
380
+ unit?: TimeUnit;
381
+ };
382
+ minimumBookingNotice?: {
383
+ amount?: number;
384
+ unit?: TimeUnit;
385
+ };
386
+ maxBookingHours?: {
387
+ amount?: number;
388
+ unit?: TimeUnit;
389
+ };
390
+ maxSequentialBookings?: {
391
+ amount?: number;
392
+ unit?: TimeUnit;
393
+ };
394
+ };
395
+ resourceTypes?: [ResourceTypeEnum, ...ResourceTypeEnum[]];
396
+ approvalRequired?: boolean;
397
+ allowResourceSelection?: boolean;
398
+ prioritizedResourceAllocation?: Partial<Record<ResourceSubTypeEnum, [number, ...number[]]>>;
399
+ bookingDurations?: {
400
+ minDuration?: {
401
+ amount?: number;
402
+ unit?: TimeUnit;
403
+ };
404
+ maxDuration?: {
405
+ amount?: number;
406
+ unit?: TimeUnit;
407
+ };
408
+ durationStep?: {
409
+ amount?: number;
410
+ unit?: TimeUnit;
411
+ };
412
+ defaultDuration?: {
413
+ amount?: number;
414
+ unit?: TimeUnit;
415
+ };
416
+ };
417
+ memberships?: [{
418
+ name?: string;
419
+ membershipsIds?: [number, ...number[]];
420
+ id?: string;
421
+ advanceBookingWindow?: {
422
+ amount?: number;
423
+ unit?: TimeUnit;
424
+ };
425
+ minimumBookingNotice?: {
426
+ amount?: number;
427
+ unit?: TimeUnit;
428
+ };
429
+ }, ...{
430
+ name?: string;
431
+ membershipsIds?: [number, ...number[]];
432
+ id?: string;
433
+ advanceBookingWindow?: {
434
+ amount?: number;
435
+ unit?: TimeUnit;
436
+ };
437
+ minimumBookingNotice?: {
438
+ amount?: number;
439
+ unit?: TimeUnit;
440
+ };
441
+ }[]];
442
+ }, {
443
+ default?: {
444
+ advanceBookingWindow?: {
445
+ amount?: number;
446
+ unit?: TimeUnit;
447
+ };
448
+ minimumBookingNotice?: {
449
+ amount?: number;
450
+ unit?: TimeUnit;
451
+ };
452
+ maxBookingHours?: {
453
+ amount?: number;
454
+ unit?: TimeUnit;
455
+ };
456
+ maxSequentialBookings?: {
457
+ amount?: number;
458
+ unit?: TimeUnit;
459
+ };
460
+ };
461
+ resourceTypes?: [ResourceTypeEnum, ...ResourceTypeEnum[]];
462
+ approvalRequired?: boolean;
463
+ allowResourceSelection?: boolean;
464
+ prioritizedResourceAllocation?: Partial<Record<ResourceSubTypeEnum, [number, ...number[]]>>;
465
+ bookingDurations?: {
466
+ minDuration?: {
467
+ amount?: number;
468
+ unit?: TimeUnit;
469
+ };
470
+ maxDuration?: {
471
+ amount?: number;
472
+ unit?: TimeUnit;
473
+ };
474
+ durationStep?: {
475
+ amount?: number;
476
+ unit?: TimeUnit;
477
+ };
478
+ defaultDuration?: {
479
+ amount?: number;
480
+ unit?: TimeUnit;
481
+ };
482
+ };
483
+ memberships?: [{
484
+ name?: string;
485
+ membershipsIds?: [number, ...number[]];
486
+ id?: string;
487
+ advanceBookingWindow?: {
488
+ amount?: number;
489
+ unit?: TimeUnit;
490
+ };
491
+ minimumBookingNotice?: {
492
+ amount?: number;
493
+ unit?: TimeUnit;
494
+ };
495
+ }, ...{
496
+ name?: string;
497
+ membershipsIds?: [number, ...number[]];
498
+ id?: string;
499
+ advanceBookingWindow?: {
500
+ amount?: number;
501
+ unit?: TimeUnit;
502
+ };
503
+ minimumBookingNotice?: {
504
+ amount?: number;
505
+ unit?: TimeUnit;
506
+ };
507
+ }[]];
508
+ }>;
509
+ export type TProductCategoryOnlineBookingSettings = z.infer<typeof RESERVATION_SETTINGS_SCHEMA>;
510
+ export declare const RESERVATION_DEFAULT_SETTINGS: TProductCategoryOnlineBookingSettings;